Skip to content

High performance self-hosted photo and video management solution.

chore: tree shake unused API methods from CLI (#6973)

Ben McCannaff71a10e55c
diff --git a/cli/package-lock.json b/cli/package-lock.json
index c1adaf4571..cbad0b2174 100644
--- a/cli/package-lock.json
+++ b/cli/package-lock.json
@@ -33,7 +33,7 @@
"mock-fs": "^5.2.0",
"typescript": "^5.3.3",
"vite": "^5.0.12",
- "vitest": "^1.2.1",
+ "vitest": "^1.2.2",
"yaml": "^2.3.1"
},
"engines": {
@@ -47,6 +47,7 @@
"license": "MIT",
"devDependencies": {
"@types/node": "^20.11.0",
+ "oazapfts": "^5.1.4",
"typescript": "^5.3.3"
},
"peerDependencies": {
@@ -6112,6 +6113,7 @@
"version": "file:../open-api/typescript-sdk",
"requires": {
"@types/node": "^20.11.0",
+ "oazapfts": "^5.1.4",
"typescript": "^5.3.3"
}
},
diff --git a/cli/package.json b/cli/package.json
index 2f9d436d74..caa59b2027 100644
--- a/cli/package.json
+++ b/cli/package.json
@@ -34,7 +34,7 @@
"mock-fs": "^5.2.0",
"typescript": "^5.3.3",
"vite": "^5.0.12",
- "vitest": "^1.2.1",
+ "vitest": "^1.2.2",
"yaml": "^2.3.1"
},
"scripts": {
diff --git a/cli/src/commands/base-command.ts b/cli/src/commands/base-command.ts
index 30da229418..cc76f4a7ea 100644
--- a/cli/src/commands/base-command.ts
+++ b/cli/src/commands/base-command.ts
@@ -1,10 +1,9 @@
import { ServerVersionResponseDto, UserResponseDto } from '@immich/sdk';
-import { ImmichApi } from '../services/api.service';
import { SessionService } from '../services/session.service';
+import { ImmichApi } from 'src/services/api.service';
export abstract class BaseCommand {
protected sessionService!: SessionService;
- protected immichApi!: ImmichApi;
protected user!: UserResponseDto;
protected serverVersion!: ServerVersionResponseDto;
@@ -15,7 +14,7 @@ export abstract class BaseCommand {
this.sessionService = new SessionService(options.configDirectory);
}
- public async connect(): Promise<void> {
- this.immichApi = await this.sessionService.connect();
+ public async connect(): Promise<ImmichApi> {
+ return await this.sessionService.connect();
}
}
diff --git a/cli/src/commands/server-info.command.ts b/cli/src/commands/server-info.command.ts
index f4a256eda8..c6029b1306 100644
--- a/cli/src/commands/server-info.command.ts
+++ b/cli/src/commands/server-info.command.ts
@@ -2,10 +2,10 @@ import { BaseCommand } from './base-command';
export class ServerInfoCommand extends BaseCommand {
public async run() {
- await this.connect();
- const versionInfo = await this.immichApi.serverInfoApi.getServerVersion();
- const mediaTypes = await this.immichApi.serverInfoApi.getSupportedMediaTypes();
- const statistics = await this.immichApi.assetApi.getAssetStatistics();
+ const api = await this.connect();
+ const versionInfo = await api.getServerVersion();
+ const mediaTypes = await api.getSupportedMediaTypes();
+ const statistics = await api.getAssetStatistics();
console.log(`Server Version: ${versionInfo.major}.${versionInfo.minor}.${versionInfo.patch}`);
console.log(`Image Types: ${mediaTypes.image.map((extension) => extension.replace('.', ''))}`);
diff --git a/cli/src/commands/upload.command.ts b/cli/src/commands/upload.command.ts
index 955d8768f5..f26f297a29 100644
--- a/cli/src/commands/upload.command.ts
+++ b/cli/src/commands/upload.command.ts
@@ -7,7 +7,7 @@ import { basename } from 'node:path';
import { access, constants, stat, unlink } from 'node:fs/promises';
import { createHash } from 'node:crypto';
import os from 'node:os';
-import { UploadFileRequest } from '@immich/sdk';
+import { ImmichApi } from 'src/services/api.service';
class Asset {
readonly path: string;
@@ -33,7 +33,7 @@ class Asset {
this.albumName = this.extractAlbumName();
}
- async getUploadFileRequest(): Promise<UploadFileRequest> {
+ async getUploadFormData(): Promise<FormData> {
if (!this.deviceAssetId) {
throw new Error('Device asset id not set');
}
@@ -52,15 +52,25 @@ class Asset {
sidecarData = new File([await fs.openAsBlob(sideCarPath)], basename(sideCarPath));
} catch {}
- return {
+ const data: any = {
assetData: new File([await fs.openAsBlob(this.path)], basename(this.path)),
deviceAssetId: this.deviceAssetId,
deviceId: 'CLI',
fileCreatedAt: this.fileCreatedAt,
fileModifiedAt: this.fileModifiedAt,
- isFavorite: false,
- sidecarData,
+ isFavorite: String(false),
};
+ const formData = new FormData();
+
+ for (const property in data) {
+ formData.append(property, data[property]);
+ }
+
+ if (sidecarData) {
+ formData.append('sidecarData', sidecarData);
+ }
+
+ return formData;
}
async delete(): Promise<void> {
@@ -101,9 +111,9 @@ export class UploadCommand extends BaseCommand {
uploadLength!: number;
public async run(paths: string[], options: UploadOptionsDto): Promise<void> {
- await this.connect();
+ const api = await this.connect();
- const formatResponse = await this.immichApi.serverInfoApi.getSupportedMediaTypes();
+ const formatResponse = await api.getSupportedMediaTypes();
const crawlService = new CrawlService(formatResponse.image, formatResponse.video);
const inputFiles: string[] = [];
@@ -153,7 +163,7 @@ export class UploadCommand extends BaseCommand {
}
}
- const existingAlbums = await this.immichApi.albumApi.getAllAlbums();
+ const existingAlbums = await api.getAllAlbums();
uploadProgress.start(totalSize, 0);
uploadProgress.update({ value_formatted: 0, total_formatted: byteSize(totalSize) });
@@ -172,9 +182,7 @@ export class UploadCommand extends BaseCommand {
if (!options.skipHash) {
const assetBulkUploadCheckDto = { assets: [{ id: asset.path, checksum: await asset.hash() }] };
- const checkResponse = await this.immichApi.assetApi.checkBulkUpload({
- assetBulkUploadCheckDto,
- });
+ const checkResponse = await api.checkBulkUpload(assetBulkUploadCheckDto);
skipUpload = checkResponse.results[0].action === 'reject';
@@ -188,9 +196,10 @@ export class UploadCommand extends BaseCommand {
if (!skipAsset && !options.dryRun) {
if (!skipUpload) {
- const fileRequest = await asset.getUploadFileRequest();
- const response = await this.immichApi.assetApi.uploadFile(fileRequest);
- existingAssetId = response.id;
+ const formData = await asset.getUploadFormData();
+ const response = await this.uploadAsset(api, formData);
+ const json = await response.json();
+ existingAssetId = json.id;
uploadCounter++;
totalSizeUploaded += asset.fileSize;
}
@@ -198,17 +207,14 @@ export class UploadCommand extends BaseCommand {
if ((options.album || options.albumName) && asset.albumName !== undefined) {
let album = existingAlbums.find((album) => album.albumName === asset.albumName);
if (!album) {
- const response = await this.immichApi.albumApi.createAlbum({
- createAlbumDto: { albumName: asset.albumName },
- });
+ const response = await api.createAlbum({ albumName: asset.albumName });
album = response;
existingAlbums.push(album);
}
if (existingAssetId) {
- await this.immichApi.albumApi.addAssetsToAlbum({
- id: album.id,
- bulkIdsDto: { ids: [existingAssetId] },
+ await api.addAssetsToAlbum(album.id, {
+ ids: [existingAssetId],
});
}
}
@@ -248,4 +254,21 @@ export class UploadCommand extends BaseCommand {
}
}
}
+
+ private async uploadAsset(api: ImmichApi, data: FormData): Promise<Response> {
+ const url = api.instanceUrl + '/asset/upload';
+
+ const response = await fetch(url, {
+ method: 'post',
+ redirect: 'error',
+ headers: {
+ 'x-api-key': api.apiKey,
+ },
+ body: data,
+ });
+ if (response.status !== 200 && response.status !== 201) {
+ throw new Error(await response.text());
+ }
+ return response;
+ }
}
diff --git a/cli/src/services/api.service.ts b/cli/src/services/api.service.ts
index 5626a50659..1c4f24e790 100644
--- a/cli/src/services/api.service.ts
+++ b/cli/src/services/api.service.ts
@@ -1,56 +1,106 @@
import {
- AlbumApi,
- APIKeyApi,
- AssetApi,
- AuthenticationApi,
- Configuration,
- JobApi,
- OAuthApi,
- ServerInfoApi,
- SystemConfigApi,
- UserApi,
+ addAssetsToAlbum,
+ checkBulkUpload,
+ createAlbum,
+ createApiKey,
+ getAllAlbums,
+ getAllAssets,
+ getAssetStatistics,
+ getMyUserInfo,
+ getServerVersion,
+ getSupportedMediaTypes,
+ login,
+ pingServer,
+ signUpAdmin,
+ uploadFile,
+ ApiKeyCreateDto,
+ AssetBulkUploadCheckDto,
+ BulkIdsDto,
+ CreateAlbumDto,
+ CreateAssetDto,
+ LoginCredentialDto,
+ SignUpDto,
} from '@immich/sdk';
+/**
+ * Wraps the underlying API to abstract away the options and make API calls mockable for testing.
+ */
export class ImmichApi {
- public userApi: UserApi;
- public albumApi: AlbumApi;
- public assetApi: AssetApi;
- public authenticationApi: AuthenticationApi;
- public oauthApi: OAuthApi;
- public serverInfoApi: ServerInfoApi;
- public jobApi: JobApi;
- public keyApi: APIKeyApi;
- public systemConfigApi: SystemConfigApi;
-
- private readonly config;
+ private readonly options;
constructor(
public instanceUrl: string,
public apiKey: string,
) {
- this.config = new Configuration({
- basePath: instanceUrl,
+ this.options = {
+ baseUrl: instanceUrl,
headers: {
'x-api-key': apiKey,
},
- });
-
- this.userApi = new UserApi(this.config);
- this.albumApi = new AlbumApi(this.config);
- this.assetApi = new AssetApi(this.config);
- this.authenticationApi = new AuthenticationApi(this.config);
- this.oauthApi = new OAuthApi(this.config);
- this.serverInfoApi = new ServerInfoApi(this.config);
- this.jobApi = new JobApi(this.config);
- this.keyApi = new APIKeyApi(this.config);
- this.systemConfigApi = new SystemConfigApi(this.config);
+ };
}
setApiKey(apiKey: string) {
this.apiKey = apiKey;
- if (!this.config.headers) {
+ if (!this.options.headers) {
throw new Error('missing headers');
}
- this.config.headers['x-api-key'] = apiKey;
+ this.options.headers['x-api-key'] = apiKey;
+ }
+
+ async addAssetsToAlbum(id: string, bulkIdsDto: BulkIdsDto) {
+ return await addAssetsToAlbum({ id, bulkIdsDto }, this.options);
+ }
+
+ async checkBulkUpload(assetBulkUploadCheckDto: AssetBulkUploadCheckDto) {
+ return await checkBulkUpload({ assetBulkUploadCheckDto }, this.options);
+ }
+
+ async createAlbum(createAlbumDto: CreateAlbumDto) {
+ return await createAlbum({ createAlbumDto }, this.options);
+ }
+
+ async createApiKey(apiKeyCreateDto: ApiKeyCreateDto, options: { headers: { Authorization: string } }) {
+ return await createApiKey({ apiKeyCreateDto }, { ...this.options, ...options });
+ }
+
+ async getAllAlbums() {
+ return await getAllAlbums({}, this.options);
+ }
+
+ async getAllAssets() {
+ return await getAllAssets({}, this.options);
+ }
+
+ async getAssetStatistics() {
+ return await getAssetStatistics({}, this.options);
+ }
+
+ async getMyUserInfo() {
+ return await getMyUserInfo(this.options);
+ }
+
+ async getServerVersion() {
+ return await getServerVersion(this.options);
+ }
+
+ async getSupportedMediaTypes() {
+ return await getSupportedMediaTypes(this.options);
+ }
+
+ async login(loginCredentialDto: LoginCredentialDto) {
+ return await login({ loginCredentialDto }, this.options);
+ }
+
+ async pingServer() {
+ return await pingServer(this.options);
+ }
+
+ async signUpAdmin(signUpDto: SignUpDto) {
+ return await signUpAdmin({ signUpDto }, this.options);
+ }
+
+ async uploadFile(createAssetDto: CreateAssetDto) {
+ return await uploadFile({ createAssetDto }, this.options);
}
}
diff --git a/cli/src/services/session.service.spec.ts b/cli/src/services/session.service.spec.ts
index 7013e9f1eb..f6ef709bfc 100644
--- a/cli/src/services/session.service.spec.ts
+++ b/cli/src/services/session.service.spec.ts
@@ -12,18 +12,20 @@ import {
spyOnConsole,
} from '../../test/cli-test-utils';
-const mockPingServer = vi.fn(() => Promise.resolve({ res: 'pong' }));
-const mockUserInfo = vi.fn(() => Promise.resolve({ email: '[email protected]' }));
-
-vi.mock('@immich/sdk', async () => ({
- ...(await vi.importActual('@immich/sdk')),
- UserApi: vi.fn().mockImplementation(() => {
- return { getMyUserInfo: mockUserInfo };
- }),
- ServerInfoApi: vi.fn().mockImplementation(() => {
- return { pingServer: mockPingServer };
- }),
-}));
+const mocks = vi.hoisted(() => {
+ return {
+ getMyUserInfo: vi.fn(() => Promise.resolve({ email: '[email protected]' })),
+ pingServer: vi.fn(() => Promise.resolve({ res: 'pong' })),
+ };
+});
+
+vi.mock('./api.service', async (importOriginal) => {
+ const module = await importOriginal<typeof import('./api.service')>();
+ // @ts-expect-error this is only a partial implementation of the return value
+ module.ImmichApi.prototype.getMyUserInfo = mocks.getMyUserInfo;
+ module.ImmichApi.prototype.pingServer = mocks.pingServer;
+ return module;
+});
describe('SessionService', () => {
let sessionService: SessionService;
@@ -46,7 +48,7 @@ describe('SessionService', () => {
);
await sessionService.connect();
- expect(mockPingServer).toHaveBeenCalledTimes(1);
+ expect(mocks.pingServer).toHaveBeenCalledTimes(1);
});
it('should error if no auth file exists', async () => {
diff --git a/cli/src/services/session.service.ts b/cli/src/services/session.service.ts
index 940cc94d25..c9eae671fd 100644
--- a/cli/src/services/session.service.ts
+++ b/cli/src/services/session.service.ts
@@ -3,7 +3,6 @@ import { access, constants, mkdir, readFile, unlink, writeFile } from 'node:fs/p
import path from 'node:path';
import yaml from 'yaml';
import { ImmichApi } from './api.service';
-
class LoginError extends Error {
constructor(message: string) {
super(message);
@@ -51,12 +50,12 @@ export class SessionService {
const api = new ImmichApi(instanceUrl, apiKey);
- const pingResponse = await api.serverInfoApi.pingServer().catch((error) => {
- throw new Error(`Failed to connect to server ${api.instanceUrl}: ${error.message}`);
+ const pingResponse = await api.pingServer().catch((error) => {
+ throw new Error(`Failed to connect to server ${instanceUrl}: ${error.message}`, error);
});
if (pingResponse.res !== 'pong') {
- throw new Error(`Could not parse response. Is Immich listening on ${api.instanceUrl}?`);
+ throw new Error(`Could not parse response. Is Immich listening on ${instanceUrl}?`);
}
return api;
@@ -68,7 +67,7 @@ export class SessionService {
const api = new ImmichApi(instanceUrl, apiKey);
// Check if server and api key are valid
- const userInfo = await api.userApi.getMyUserInfo().catch((error) => {
+ const userInfo = await api.getMyUserInfo().catch((error) => {
throw new LoginError(`Failed to connect to server ${instanceUrl}: ${error.message}`);
});
diff --git a/cli/test/cli-test-utils.ts b/cli/test/cli-test-utils.ts
index cce81c5ffd..cc3e29d27d 100644
--- a/cli/test/cli-test-utils.ts
+++ b/cli/test/cli-test-utils.ts
@@ -1,6 +1,6 @@
import fs from 'node:fs';
import path from 'node:path';
-import { ImmichApi } from '../src/services/api.service';
+import { ImmichApi } from 'src/services/api.service';
export const TEST_CONFIG_DIR = '/tmp/immich/';
export const TEST_AUTH_FILE = path.join(TEST_CONFIG_DIR, 'auth.yml');
@@ -11,14 +11,10 @@ export const CLI_BASE_OPTIONS = { configDirectory: TEST_CONFIG_DIR };
export const setup = async () => {
const api = new ImmichApi(process.env.IMMICH_INSTANCE_URL as string, '');
- await api.authenticationApi.signUpAdmin({
- signUpDto: { email: '[email protected]', password: 'password', name: 'Administrator' },
- });
- const admin = await api.authenticationApi.login({
- loginCredentialDto: { email: '[email protected]', password: 'password' },
- });
- const apiKey = await api.keyApi.createApiKey(
- { aPIKeyCreateDto: { name: 'CLI Test' } },
+ await api.signUpAdmin({ email: '[email protected]', password: 'password', name: 'Administrator' });
+ const admin = await api.login({ email: '[email protected]', password: 'password' });
+ const apiKey = await api.createApiKey(
+ { name: 'CLI Test' },
{ headers: { Authorization: `Bearer ${admin.accessToken}` } },
);
diff --git a/cli/test/e2e/login-key.e2e-spec.ts b/cli/test/e2e/login-key.e2e-spec.ts
index 9d69579610..acbce5c244 100644
--- a/cli/test/e2e/login-key.e2e-spec.ts
+++ b/cli/test/e2e/login-key.e2e-spec.ts
@@ -37,7 +37,7 @@ describe(`login-key (e2e)`, () => {
it('should error when providing an invalid API key', async () => {
await expect(new LoginCommand(CLI_BASE_OPTIONS).run(instanceUrl, 'invalid')).rejects.toThrow(
- `Failed to connect to server ${instanceUrl}: Response returned an error code`,
+ `Failed to connect to server ${instanceUrl}: Error: 401`,
);
});
diff --git a/cli/test/e2e/upload.e2e-spec.ts b/cli/test/e2e/upload.e2e-spec.ts
index 0c6e87ce5a..81b20ad749 100644
--- a/cli/test/e2e/upload.e2e-spec.ts
+++ b/cli/test/e2e/upload.e2e-spec.ts
@@ -1,7 +1,7 @@
import { IMMICH_TEST_ASSET_PATH, restoreTempFolder, testApp } from '@test-utils';
import { CLI_BASE_OPTIONS, setup, spyOnConsole } from 'test/cli-test-utils';
import { UploadCommand } from '../../src/commands/upload.command';
-import { ImmichApi } from '../../src/services/api.service';
+import { ImmichApi } from 'src/services/api.service';
describe(`upload (e2e)`, () => {
let api: ImmichApi;
@@ -26,13 +26,13 @@ describe(`upload (e2e)`, () => {
it('should upload a folder recursively', async () => {
await new UploadCommand(CLI_BASE_OPTIONS).run([`${IMMICH_TEST_ASSET_PATH}/albums/nature/`], { recursive: true });
- const assets = await api.assetApi.getAllAssets({}, { headers: { 'x-api-key': api.apiKey } });
+ const assets = await api.getAllAssets();
expect(assets.length).toBeGreaterThan(4);
});
it('should not create a new album', async () => {
await new UploadCommand(CLI_BASE_OPTIONS).run([`${IMMICH_TEST_ASSET_PATH}/albums/nature/`], { recursive: true });
- const albums = await api.albumApi.getAllAlbums({}, { headers: { 'x-api-key': api.apiKey } });
+ const albums = await api.getAllAlbums();
expect(albums.length).toEqual(0);
});
@@ -42,7 +42,7 @@ describe(`upload (e2e)`, () => {
album: true,
});
- const albums = await api.albumApi.getAllAlbums({}, { headers: { 'x-api-key': api.apiKey } });
+ const albums = await api.getAllAlbums();
expect(albums.length).toEqual(1);
const natureAlbum = albums[0];
expect(natureAlbum.albumName).toEqual('nature');
@@ -59,7 +59,7 @@ describe(`upload (e2e)`, () => {
album: true,
});
- const albums = await api.albumApi.getAllAlbums({}, { headers: { 'x-api-key': api.apiKey } });
+ const albums = await api.getAllAlbums();
expect(albums.length).toEqual(1);
const natureAlbum = albums[0];
expect(natureAlbum.albumName).toEqual('nature');
@@ -71,7 +71,7 @@ describe(`upload (e2e)`, () => {
albumName: 'testAlbum',
});
- const albums = await api.albumApi.getAllAlbums({}, { headers: { 'x-api-key': api.apiKey } });
+ const albums = await api.getAllAlbums();
expect(albums.length).toEqual(1);
const testAlbum = albums[0];
expect(testAlbum.albumName).toEqual('testAlbum');
diff --git a/open-api/bin/generate-open-api.sh b/open-api/bin/generate-open-api.sh
index efc83aee9c..a3b9cccb0d 100755
--- a/open-api/bin/generate-open-api.sh
+++ b/open-api/bin/generate-open-api.sh
@@ -19,7 +19,7 @@ function dart {
function typescript {
rm -rf ./typescript-sdk/client
npx --yes @openapitools/openapi-generator-cli generate -g typescript-axios -i ./immich-openapi-specs.json -o ./typescript-sdk/axios-client --additional-properties=useSingleRequestParameter=true,supportsES6=true
- npx --yes @openapitools/openapi-generator-cli generate -g typescript-fetch -i ./immich-openapi-specs.json -o ./typescript-sdk/fetch-client --additional-properties=useSingleRequestParameter=true,supportsES6=true
+ npx oazapfts --optimistic --argumentStyle=object immich-openapi-specs.json typescript-sdk/fetch-client.ts
npm --prefix typescript-sdk ci && npm --prefix typescript-sdk run build
}
diff --git a/open-api/typescript-sdk/fetch-client.ts b/open-api/typescript-sdk/fetch-client.ts
new file mode 100644
index 0000000000..cb2c42f5dd
--- /dev/null
+++ b/open-api/typescript-sdk/fetch-client.ts
@@ -0,0 +1,2526 @@
+/**
+ * Immich
+ * 1.94.1
+ * DO NOT MODIFY - This file has been generated using oazapfts.
+ * See https://www.npmjs.com/package/oazapfts
+ */
+import * as Oazapfts from "oazapfts/lib/runtime";
+import * as QS from "oazapfts/lib/runtime/query";
+export const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders> = {
+ headers: {},
+ baseUrl: "/api",
+};
+const oazapfts = Oazapfts.runtime(defaults);
+export const servers = {
+ server1: "/api"
+};
+export type ReactionLevel = "album" | "asset";
+export type ReactionType = "comment" | "like";
+export type UserAvatarColor = "primary" | "pink" | "red" | "yellow" | "blue" | "green" | "purple" | "orange" | "gray" | "amber";
+export type UserDto = {
+ avatarColor: UserAvatarColor;
+ email: string;
+ id: string;
+ name: string;
+ profileImagePath: string;
+};
+export type ActivityResponseDto = {
+ assetId: string | null;
+ comment?: string | null;
+ createdAt: string;
+ id: string;
+ "type": "comment" | "like";
+ user: UserDto;
+};
+export type ActivityCreateDto = {
+ albumId: string;
+ assetId?: string;
+ comment?: string;
+ "type": ReactionType;
+};
+export type ActivityStatisticsResponseDto = {
+ comments: number;
+};
+export type ExifResponseDto = {
+ city?: string | null;
+ country?: string | null;
+ dateTimeOriginal?: string | null;
+ description?: string | null;
+ exifImageHeight?: number | null;
+ exifImageWidth?: number | null;
+ exposureTime?: string | null;
+ fNumber?: number | null;
+ fileSizeInByte?: number | null;
+ focalLength?: number | null;
+ iso?: number | null;
+ latitude?: number | null;
+ lensModel?: string | null;
+ longitude?: number | null;
+ make?: string | null;
+ model?: string | null;
+ modifyDate?: string | null;
+ orientation?: string | null;
+ projectionType?: string | null;
+ state?: string | null;
+ timeZone?: string | null;
+};
+export type UserResponseDto = {
+ avatarColor: UserAvatarColor;
+ createdAt: string;
+ deletedAt: string | null;
+ email: string;
+ externalPath: string | null;
+ id: string;
+ isAdmin: boolean;
+ memoriesEnabled?: boolean;
+ name: string;
+ oauthId: string;
+ profileImagePath: string;
+ quotaSizeInBytes: number | null;
+ quotaUsageInBytes: number | null;
+ shouldChangePassword: boolean;
+ storageLabel: string | null;
+ updatedAt: string;
+};
+export type AssetFaceWithoutPersonResponseDto = {
+ boundingBoxX1: number;
+ boundingBoxX2: number;
+ boundingBoxY1: number;
+ boundingBoxY2: number;
+ id: string;
+ imageHeight: number;
+ imageWidth: number;
+};
+export type PersonWithFacesResponseDto = {
+ birthDate: string | null;
+ faces: AssetFaceWithoutPersonResponseDto[];
+ id: string;
+ isHidden: boolean;
+ name: string;
+ thumbnailPath: string;
+};
+export type SmartInfoResponseDto = {
+ objects?: string[] | null;
+ tags?: string[] | null;
+};
+export type TagTypeEnum = "OBJECT" | "FACE" | "CUSTOM";
+export type TagResponseDto = {
+ id: string;
+ name: string;
+ "type": TagTypeEnum;
+ userId: string;
+};
+export type AssetTypeEnum = "IMAGE" | "VIDEO" | "AUDIO" | "OTHER";
+export type AssetResponseDto = {
+ /** base64 encoded sha1 hash */
+ checksum: string;
+ deviceAssetId: string;
+ deviceId: string;
+ duration: string;
+ exifInfo?: ExifResponseDto;
+ fileCreatedAt: string;
+ fileModifiedAt: string;
+ hasMetadata: boolean;
+ id: string;
+ isArchived: boolean;
+ isExternal: boolean;
+ isFavorite: boolean;
+ isOffline: boolean;
+ isReadOnly: boolean;
+ isTrashed: boolean;
+ libraryId: string;
+ livePhotoVideoId?: string | null;
+ localDateTime: string;
+ originalFileName: string;
+ originalPath: string;
+ owner?: UserResponseDto;
+ ownerId: string;
+ people?: PersonWithFacesResponseDto[];
+ resized: boolean;
+ smartInfo?: SmartInfoResponseDto;
+ stack?: AssetResponseDto[];
+ stackCount: number | null;
+ stackParentId?: string | null;
+ tags?: TagResponseDto[];
+ thumbhash: string | null;
+ "type": AssetTypeEnum;
+ updatedAt: string;
+};
+export type AlbumResponseDto = {
+ albumName: string;
+ albumThumbnailAssetId: string | null;
+ assetCount: number;
+ assets: AssetResponseDto[];
+ createdAt: string;
+ description: string;
+ endDate?: string;
+ hasSharedLink: boolean;
+ id: string;
+ isActivityEnabled: boolean;
+ lastModifiedAssetTimestamp?: string;
+ owner: UserResponseDto;
+ ownerId: string;
+ shared: boolean;
+ sharedUsers: UserResponseDto[];
+ startDate?: string;
+ updatedAt: string;
+};
+export type CreateAlbumDto = {
+ albumName: string;
+ assetIds?: string[];
+ description?: string;
+ sharedWithUserIds?: string[];
+};
+export type AlbumCountResponseDto = {
+ notShared: number;
+ owned: number;
+ shared: number;
+};
+export type UpdateAlbumDto = {
+ albumName?: string;
+ albumThumbnailAssetId?: string;
+ description?: string;
+ isActivityEnabled?: boolean;
+};
+export type BulkIdsDto = {
+ ids: string[];
+};
+export type BulkIdResponseDto = {
+ error?: "duplicate" | "no_permission" | "not_found" | "unknown";
+ id: string;
+ success: boolean;
+};
+export type AddUsersDto = {
+ sharedUserIds: string[];
+};
+export type ApiKeyResponseDto = {
+ createdAt: string;
+ id: string;
+ name: string;
+ updatedAt: string;
+};
+export type ApiKeyCreateDto = {
+ name?: string;
+};
+export type ApiKeyCreateResponseDto = {
+ apiKey: ApiKeyResponseDto;
+ secret: string;
+};
+export type ApiKeyUpdateDto = {
+ name: string;
+};
+export type AssetBulkDeleteDto = {
+ force?: boolean;
+ ids: string[];
+};
+export type AssetBulkUpdateDto = {
+ dateTimeOriginal?: string;
+ ids: string[];
+ isArchived?: boolean;
+ isFavorite?: boolean;
+ latitude?: number;
+ longitude?: number;
+ removeParent?: boolean;
+ stackParentId?: string;
+};
+export type AssetBulkUploadCheckItem = {
+ /** base64 or hex encoded sha1 hash */
+ checksum: string;
+ id: string;
+};
+export type AssetBulkUploadCheckDto = {
+ assets: AssetBulkUploadCheckItem[];
+};
+export type AssetBulkUploadCheckResult = {
+ action: "accept" | "reject";
+ assetId?: string;
+ id: string;
+ reason?: "duplicate" | "unsupported-format";
+};
+export type AssetBulkUploadCheckResponseDto = {
+ results: AssetBulkUploadCheckResult[];
+};
+export type CuratedLocationsResponseDto = {
+ city: string;
+ deviceAssetId: string;
+ deviceId: string;
+ id: string;
+ resizePath: string;
+};
+export type CuratedObjectsResponseDto = {
+ deviceAssetId: string;
+ deviceId: string;
+ id: string;
+ "object": string;
+ resizePath: string;
+};
+export type CheckExistingAssetsDto = {
+ deviceAssetIds: string[];
+ deviceId: string;
+};
+export type CheckExistingAssetsResponseDto = {
+ existingIds: string[];
+};
+export type AssetJobName = "regenerate-thumbnail" | "refresh-metadata" | "transcode-video";
+export type AssetJobsDto = {
+ assetIds: string[];
+ name: AssetJobName;
+};
+export type MapMarkerResponseDto = {
+ id: string;
+ lat: number;
+ lon: number;
+};
+export type MemoryLaneResponseDto = {
+ assets: AssetResponseDto[];
+ title: string;
+};
+export type UpdateStackParentDto = {
+ newParentId: string;
+ oldParentId: string;
+};
+export type AssetStatsResponseDto = {
+ images: number;
+ total: number;
+ videos: number;
+};
+export type ThumbnailFormat = "JPEG" | "WEBP";
+export type TimeBucketSize = "DAY" | "MONTH";
+export type TimeBucketResponseDto = {
+ count: number;
+ timeBucket: string;
+};
+export type CreateAssetDto = {
+ assetData: Blob;
+ deviceAssetId: string;
+ deviceId: string;
+ duration?: string;
+ fileCreatedAt: string;
+ fileModifiedAt: string;
+ isArchived?: boolean;
+ isExternal?: boolean;
+ isFavorite?: boolean;
+ isOffline?: boolean;
+ isReadOnly?: boolean;
+ isVisible?: boolean;
+ libraryId?: string;
+ livePhotoData?: Blob;
+ sidecarData?: Blob;
+};
+export type AssetFileUploadResponseDto = {
+ duplicate: boolean;
+ id: string;
+};
+export type UpdateAssetDto = {
+ dateTimeOriginal?: string;
+ description?: string;
+ isArchived?: boolean;
+ isFavorite?: boolean;
+ latitude?: number;
+ longitude?: number;
+};
+export type AssetOrder = "asc" | "desc";
+export type EntityType = "ASSET" | "ALBUM";
+export type AuditDeletesResponseDto = {
+ ids: string[];
+ needsFullSync: boolean;
+};
+export type PathEntityType = "asset" | "person" | "user";
+export type PathType = "original" | "jpeg_thumbnail" | "webp_thumbnail" | "encoded_video" | "sidecar" | "face" | "profile";
+export type FileReportItemDto = {
+ checksum?: string;
+ entityId: string;
+ entityType: PathEntityType;
+ pathType: PathType;
+ pathValue: string;
+};
+export type FileReportDto = {
+ extras: string[];
+ orphans: FileReportItemDto[];
+};
+export type FileChecksumDto = {
+ filenames: string[];
+};
+export type FileChecksumResponseDto = {
+ checksum: string;
+ filename: string;
+};
+export type FileReportFixDto = {
+ items: FileReportItemDto[];
+};
+export type SignUpDto = {
+ email: string;
+ name: string;
+ password: string;
+};
+export type ChangePasswordDto = {
+ newPassword: string;
+ password: string;
+};
+export type AuthDeviceResponseDto = {
+ createdAt: string;
+ current: boolean;
+ deviceOS: string;
+ deviceType: string;
+ id: string;
+ updatedAt: string;
+};
+export type LoginCredentialDto = {
+ email: string;
+ password: string;
+};
+export type LoginResponseDto = {
+ accessToken: string;
+ isAdmin: boolean;
+ name: string;
+ profileImagePath: string;
+ shouldChangePassword: boolean;
+ userEmail: string;
+ userId: string;
+};
+export type LogoutResponseDto = {
+ redirectUri: string;
+ successful: boolean;
+};
+export type ValidateAccessTokenResponseDto = {
+ authStatus: boolean;
+};
+export type AssetIdsDto = {
+ assetIds: string[];
+};
+export type DownloadInfoDto = {
+ albumId?: string;
+ archiveSize?: number;
+ assetIds?: string[];
+ userId?: string;
+};
+export type DownloadArchiveInfo = {
+ assetIds: string[];
+ size: number;
+};
+export type DownloadResponseDto = {
+ archives: DownloadArchiveInfo[];
+ totalSize: number;
+};
+export type PersonResponseDto = {
+ birthDate: string | null;
+ id: string;
+ isHidden: boolean;
+ name: string;
+ thumbnailPath: string;
+};
+export type AssetFaceResponseDto = {
+ boundingBoxX1: number;
+ boundingBoxX2: number;
+ boundingBoxY1: number;
+ boundingBoxY2: number;
+ id: string;
+ imageHeight: number;
+ imageWidth: number;
+ person: (PersonResponseDto) | null;
+};
+export type FaceDto = {
+ id: string;
+};
+export type JobCountsDto = {
+ active: number;
+ completed: number;
+ delayed: number;
+ failed: number;
+ paused: number;
+ waiting: number;
+};
+export type QueueStatusDto = {
+ isActive: boolean;
+ isPaused: boolean;
+};
+export type JobStatusDto = {
+ jobCounts: JobCountsDto;
+ queueStatus: QueueStatusDto;
+};
+export type AllJobStatusResponseDto = {
+ backgroundTask: JobStatusDto;
+ faceDetection: JobStatusDto;
+ facialRecognition: JobStatusDto;
+ library: JobStatusDto;
+ metadataExtraction: JobStatusDto;
+ migration: JobStatusDto;
+ search: JobStatusDto;
+ sidecar: JobStatusDto;
+ smartSearch: JobStatusDto;
+ storageTemplateMigration: JobStatusDto;
+ thumbnailGeneration: JobStatusDto;
+ videoConversion: JobStatusDto;
+};
+export type JobName = "thumbnailGeneration" | "metadataExtraction" | "videoConversion" | "faceDetection" | "facialRecognition" | "smartSearch" | "backgroundTask" | "storageTemplateMigration" | "migration" | "search" | "sidecar" | "library";
+export type JobCommand = "start" | "pause" | "resume" | "empty" | "clear-failed";
+export type JobCommandDto = {
+ command: JobCommand;
+ force: boolean;
+};
+export type LibraryType = "UPLOAD" | "EXTERNAL";
+export type LibraryResponseDto = {
+ assetCount: number;
+ createdAt: string;
+ exclusionPatterns: string[];
+ id: string;
+ importPaths: string[];
+ name: string;
+ ownerId: string;
+ refreshedAt: string | null;
+ "type": LibraryType;
+ updatedAt: string;
+};
+export type CreateLibraryDto = {
+ exclusionPatterns?: string[];
+ importPaths?: string[];
+ isVisible?: boolean;
+ isWatched?: boolean;
+ name?: string;
+ "type": LibraryType;
+};
+export type UpdateLibraryDto = {
+ exclusionPatterns?: string[];
+ importPaths?: string[];
+ isVisible?: boolean;
+ name?: string;
+};
+export type ScanLibraryDto = {
+ refreshAllFiles?: boolean;
+ refreshModifiedFiles?: boolean;
+};
+export type LibraryStatsResponseDto = {
+ photos: number;
+ total: number;
+ usage: number;
+ videos: number;
+};
+export type OAuthConfigDto = {
+ redirectUri: string;
+};
+export type OAuthAuthorizeResponseDto = {
+ url: string;
+};
+export type OAuthCallbackDto = {
+ url: string;
+};
+export type PartnerResponseDto = {
+ avatarColor: UserAvatarColor;
+ createdAt: string;
+ deletedAt: string | null;
+ email: string;
+ externalPath: string | null;
+ id: string;
+ inTimeline?: boolean;
+ isAdmin: boolean;
+ memoriesEnabled?: boolean;
+ name: string;
+ oauthId: string;
+ profileImagePath: string;
+ quotaSizeInBytes: number | null;
+ quotaUsageInBytes: number | null;
+ shouldChangePassword: boolean;
+ storageLabel: string | null;
+ updatedAt: string;
+};
+export type UpdatePartnerDto = {
+ inTimeline: boolean;
+};
+export type PeopleResponseDto = {
+ people: PersonResponseDto[];
+ total: number;
+};
+export type PeopleUpdateItem = {
+ /** Person date of birth.
+ Note: the mobile app cannot currently set the birth date to null. */
+ birthDate?: string | null;
+ /** Asset is used to get the feature face thumbnail. */
+ featureFaceAssetId?: string;
+ /** Person id. */
+ id: string;
+ /** Person visibility */
+ isHidden?: boolean;
+ /** Person name. */
+ name?: string;
+};
+export type PeopleUpdateDto = {
+ people: PeopleUpdateItem[];
+};
+export type PersonUpdateDto = {
+ /** Person date of birth.
+ Note: the mobile app cannot currently set the birth date to null. */
+ birthDate?: string | null;
+ /** Asset is used to get the feature face thumbnail. */
+ featureFaceAssetId?: string;
+ /** Person visibility */
+ isHidden?: boolean;
+ /** Person name. */
+ name?: string;
+};
+export type MergePersonDto = {
+ ids: string[];
+};
+export type AssetFaceUpdateItem = {
+ assetId: string;
+ personId: string;
+};
+export type AssetFaceUpdateDto = {
+ data: AssetFaceUpdateItem[];
+};
+export type PersonStatisticsResponseDto = {
+ assets: number;
+};
+export type SearchFacetCountResponseDto = {
+ count: number;
+ value: string;
+};
+export type SearchFacetResponseDto = {
+ counts: SearchFacetCountResponseDto[];
+ fieldName: string;
+};
+export type SearchAlbumResponseDto = {
+ count: number;
+ facets: SearchFacetResponseDto[];
+ items: AlbumResponseDto[];
+ total: number;
+};
+export type SearchAssetResponseDto = {
+ count: number;
+ facets: SearchFacetResponseDto[];
+ items: AssetResponseDto[];
+ total: number;
+};
+export type SearchResponseDto = {
+ albums: SearchAlbumResponseDto;
+ assets: SearchAssetResponseDto;
+};
+export type SearchExploreItem = {
+ data: AssetResponseDto;
+ value: string;
+};
+export type SearchExploreResponseDto = {
+ fieldName: string;
+ items: SearchExploreItem[];
+};
+export type ServerInfoResponseDto = {
+ diskAvailable: string;
+ diskAvailableRaw: number;
+ diskSize: string;
+ diskSizeRaw: number;
+ diskUsagePercentage: number;
+ diskUse: string;
+ diskUseRaw: number;
+};
+export type ServerConfigDto = {
+ externalDomain: string;
+ isInitialized: boolean;
+ isOnboarded: boolean;
+ loginPageMessage: string;
+ oauthButtonText: string;
+ trashDays: number;
+};
+export type ServerFeaturesDto = {
+ configFile: boolean;
+ facialRecognition: boolean;
+ map: boolean;
+ oauth: boolean;
+ oauthAutoLaunch: boolean;
+ passwordLogin: boolean;
+ reverseGeocoding: boolean;
+ search: boolean;
+ sidecar: boolean;
+ smartSearch: boolean;
+ trash: boolean;
+};
+export type ServerMediaTypesResponseDto = {
+ image: string[];
+ sidecar: string[];
+ video: string[];
+};
+export type ServerPingResponse = {};
+export type ServerPingResponseRead = {
+ res: string;
+};
+export type UsageByUserDto = {
+ photos: number;
+ quotaSizeInBytes: number | null;
+ usage: number;
+ userId: string;
+ userName: string;
+ videos: number;
+};
+export type ServerStatsResponseDto = {
+ photos: number;
+ usage: number;
+ usageByUser: UsageByUserDto[];
+ videos: number;
+};
+export type ServerThemeDto = {
+ customCss: string;
+};
+export type ServerVersionResponseDto = {
+ major: number;
+ minor: number;
+ patch: number;
+};
+export type SharedLinkType = "ALBUM" | "INDIVIDUAL";
+export type SharedLinkResponseDto = {
+ album?: AlbumResponseDto;
+ allowDownload: boolean;
+ allowUpload: boolean;
+ assets: AssetResponseDto[];
+ createdAt: string;
+ description: string | null;
+ expiresAt: string | null;
+ id: string;
+ key: string;
+ password: string | null;
+ showMetadata: boolean;
+ token?: string | null;
+ "type": SharedLinkType;
+ userId: string;
+};
+export type SharedLinkCreateDto = {
+ albumId?: string;
+ allowDownload?: boolean;
+ allowUpload?: boolean;
+ assetIds?: string[];
+ description?: string;
+ expiresAt?: string | null;
+ password?: string;
+ showMetadata?: boolean;
+ "type": SharedLinkType;
+};
+export type SharedLinkEditDto = {
+ allowDownload?: boolean;
+ allowUpload?: boolean;
+ /** Few clients cannot send null to set the expiryTime to never.
+ Setting this flag and not sending expiryAt is considered as null instead.
+ Clients that can send null values can ignore this. */
+ changeExpiryTime?: boolean;
+ description?: string;
+ expiresAt?: string | null;
+ password?: string;
+ showMetadata?: boolean;
+};
+export type AssetIdsResponseDto = {
+ assetId: string;
+ error?: "duplicate" | "no_permission" | "not_found";
+ success: boolean;
+};
+export type TranscodeHwAccel = "nvenc" | "qsv" | "vaapi" | "rkmpp" | "disabled";
+export type AudioCodec = "mp3" | "aac" | "libopus";
+export type VideoCodec = "h264" | "hevc" | "vp9";
+export type CqMode = "auto" | "cqp" | "icq";
+export type ToneMapping = "hable" | "mobius" | "reinhard" | "disabled";
+export type TranscodePolicy = "all" | "optimal" | "bitrate" | "required" | "disabled";
+export type SystemConfigFFmpegDto = {
+ accel: TranscodeHwAccel;
+ acceptedAudioCodecs: AudioCodec[];
+ acceptedVideoCodecs: VideoCodec[];
+ bframes: number;
+ cqMode: CqMode;
+ crf: number;
+ gopSize: number;
+ maxBitrate: string;
+ npl: number;
+ preferredHwDevice: string;
+ preset: string;
+ refs: number;
+ targetAudioCodec: AudioCodec;
+ targetResolution: string;
+ targetVideoCodec: VideoCodec;
+ temporalAQ: boolean;
+ threads: number;
+ tonemap: ToneMapping;
+ transcode: TranscodePolicy;
+ twoPass: boolean;
+};
+export type JobSettingsDto = {
+ concurrency: number;
+};
+export type SystemConfigJobDto = {
+ backgroundTask: JobSettingsDto;
+ faceDetection: JobSettingsDto;
+ library: JobSettingsDto;
+ metadataExtraction: JobSettingsDto;
+ migration: JobSettingsDto;
+ search: JobSettingsDto;
+ sidecar: JobSettingsDto;
+ smartSearch: JobSettingsDto;
+ thumbnailGeneration: JobSettingsDto;
+ videoConversion: JobSettingsDto;
+};
+export type SystemConfigLibraryScanDto = {
+ cronExpression: string;
+ enabled: boolean;
+};
+export type SystemConfigLibraryWatchDto = {
+ enabled: boolean;
+ interval: number;
+ usePolling: boolean;
+};
+export type SystemConfigLibraryDto = {
+ scan: SystemConfigLibraryScanDto;
+ watch: SystemConfigLibraryWatchDto;
+};
+export type LogLevel = "verbose" | "debug" | "log" | "warn" | "error" | "fatal";
+export type SystemConfigLoggingDto = {
+ enabled: boolean;
+ level: LogLevel;
+};
+export type ClipMode = "vision" | "text";
+export type ModelType = "facial-recognition" | "clip";
+export type ClipConfig = {
+ enabled: boolean;
+ mode?: ClipMode;
+ modelName: string;
+ modelType?: ModelType;
+};
+export type RecognitionConfig = {
+ enabled: boolean;
+ maxDistance: number;
+ minFaces: number;
+ minScore: number;
+ modelName: string;
+ modelType?: ModelType;
+};
+export type SystemConfigMachineLearningDto = {
+ clip: ClipConfig;
+ enabled: boolean;
+ facialRecognition: RecognitionConfig;
+ url: string;
+};
+export type SystemConfigMapDto = {
+ darkStyle: string;
+ enabled: boolean;
+ lightStyle: string;
+};
+export type SystemConfigNewVersionCheckDto = {
+ enabled: boolean;
+};
+export type SystemConfigOAuthDto = {
+ autoLaunch: boolean;
+ autoRegister: boolean;
+ buttonText: string;
+ clientId: string;
+ clientSecret: string;
+ enabled: boolean;
+ issuerUrl: string;
+ mobileOverrideEnabled: boolean;
+ mobileRedirectUri: string;
+ scope: string;
+ signingAlgorithm: string;
+ storageLabelClaim: string;
+};
+export type SystemConfigPasswordLoginDto = {
+ enabled: boolean;
+};
+export type SystemConfigReverseGeocodingDto = {
+ enabled: boolean;
+};
+export type SystemConfigServerDto = {
+ externalDomain: string;
+ loginPageMessage: string;
+};
+export type SystemConfigStorageTemplateDto = {
+ enabled: boolean;
+ hashVerificationEnabled: boolean;
+ template: string;
+};
+export type SystemConfigThemeDto = {
+ customCss: string;
+};
+export type Colorspace = "srgb" | "p3";
+export type SystemConfigThumbnailDto = {
+ colorspace: Colorspace;
+ jpegSize: number;
+ quality: number;
+ webpSize: number;
+};
+export type SystemConfigTrashDto = {
+ days: number;
+ enabled: boolean;
+};
+export type SystemConfigDto = {
+ ffmpeg: SystemConfigFFmpegDto;
+ job: SystemConfigJobDto;
+ library: SystemConfigLibraryDto;
+ logging: SystemConfigLoggingDto;
+ machineLearning: SystemConfigMachineLearningDto;
+ map: SystemConfigMapDto;
+ newVersionCheck: SystemConfigNewVersionCheckDto;
+ oauth: SystemConfigOAuthDto;
+ passwordLogin: SystemConfigPasswordLoginDto;
+ reverseGeocoding: SystemConfigReverseGeocodingDto;
+ server: SystemConfigServerDto;
+ storageTemplate: SystemConfigStorageTemplateDto;
+ theme: SystemConfigThemeDto;
+ thumbnail: SystemConfigThumbnailDto;
+ trash: SystemConfigTrashDto;
+};
+export type MapTheme = "light" | "dark";
+export type SystemConfigTemplateStorageOptionDto = {
+ dayOptions: string[];
+ hourOptions: string[];
+ minuteOptions: string[];
+ monthOptions: string[];
+ presetOptions: string[];
+ secondOptions: string[];
+ weekOptions: string[];
+ yearOptions: string[];
+};
+export type CreateTagDto = {
+ name: string;
+ "type": TagTypeEnum;
+};
+export type UpdateTagDto = {
+ name?: string;
+};
+export type CreateUserDto = {
+ email: string;
+ externalPath?: string | null;
+ memoriesEnabled?: boolean;
+ name: string;
+ password: string;
+ quotaSizeInBytes?: number | null;
+ storageLabel?: string | null;
+};
+export type UpdateUserDto = {
+ avatarColor?: UserAvatarColor;
+ email?: string;
+ externalPath?: string;
+ id: string;
+ isAdmin?: boolean;
+ memoriesEnabled?: boolean;
+ name?: string;
+ password?: string;
+ quotaSizeInBytes?: number | null;
+ shouldChangePassword?: boolean;
+ storageLabel?: string;
+};
+export type CreateProfileImageDto = {
+ file: Blob;
+};
+export type CreateProfileImageResponseDto = {
+ profileImagePath: string;
+ userId: string;
+};
+export function getActivities({ albumId, assetId, level, $type, userId }: {
+ albumId: string;
+ assetId?: string;
+ level?: ReactionLevel;
+ $type?: ReactionType;
+ userId?: string;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: ActivityResponseDto[];
+ }>(`/activity${QS.query(QS.explode({
+ albumId,
+ assetId,
+ level,
+ "type": $type,
+ userId
+ }))}`, {
+ ...opts
+ }));
+}
+export function createActivity({ activityCreateDto }: {
+ activityCreateDto: ActivityCreateDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 201;
+ data: ActivityResponseDto;
+ }>("/activity", oazapfts.json({
+ ...opts,
+ method: "POST",
+ body: activityCreateDto
+ })));
+}
+export function getActivityStatistics({ albumId, assetId }: {
+ albumId: string;
+ assetId?: string;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: ActivityStatisticsResponseDto;
+ }>(`/activity/statistics${QS.query(QS.explode({
+ albumId,
+ assetId
+ }))}`, {
+ ...opts
+ }));
+}
+export function deleteActivity({ id }: {
+ id: string;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchText(`/activity/${encodeURIComponent(id)}`, {
+ ...opts,
+ method: "DELETE"
+ }));
+}
+export function getAllAlbums({ assetId, shared }: {
+ assetId?: string;
+ shared?: boolean;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: AlbumResponseDto[];
+ }>(`/album${QS.query(QS.explode({
+ assetId,
+ shared
+ }))}`, {
+ ...opts
+ }));
+}
+export function createAlbum({ createAlbumDto }: {
+ createAlbumDto: CreateAlbumDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 201;
+ data: AlbumResponseDto;
+ }>("/album", oazapfts.json({
+ ...opts,
+ method: "POST",
+ body: createAlbumDto
+ })));
+}
+export function getAlbumCount(opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: AlbumCountResponseDto;
+ }>("/album/count", {
+ ...opts
+ }));
+}
+export function deleteAlbum({ id }: {
+ id: string;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchText(`/album/${encodeURIComponent(id)}`, {
+ ...opts,
+ method: "DELETE"
+ }));
+}
+export function getAlbumInfo({ id, key, withoutAssets }: {
+ id: string;
+ key?: string;
+ withoutAssets?: boolean;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: AlbumResponseDto;
+ }>(`/album/${encodeURIComponent(id)}${QS.query(QS.explode({
+ key,
+ withoutAssets
+ }))}`, {
+ ...opts
+ }));
+}
+export function updateAlbumInfo({ id, updateAlbumDto }: {
+ id: string;
+ updateAlbumDto: UpdateAlbumDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: AlbumResponseDto;
+ }>(`/album/${encodeURIComponent(id)}`, oazapfts.json({
+ ...opts,
+ method: "PATCH",
+ body: updateAlbumDto
+ })));
+}
+export function removeAssetFromAlbum({ id, bulkIdsDto }: {
+ id: string;
+ bulkIdsDto: BulkIdsDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: BulkIdResponseDto[];
+ }>(`/album/${encodeURIComponent(id)}/assets`, oazapfts.json({
+ ...opts,
+ method: "DELETE",
+ body: bulkIdsDto
+ })));
+}
+export function addAssetsToAlbum({ id, key, bulkIdsDto }: {
+ id: string;
+ key?: string;
+ bulkIdsDto: BulkIdsDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: BulkIdResponseDto[];
+ }>(`/album/${encodeURIComponent(id)}/assets${QS.query(QS.explode({
+ key
+ }))}`, oazapfts.json({
+ ...opts,
+ method: "PUT",
+ body: bulkIdsDto
+ })));
+}
+export function removeUserFromAlbum({ id, userId }: {
+ id: string;
+ userId: string;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchText(`/album/${encodeURIComponent(id)}/user/${encodeURIComponent(userId)}`, {
+ ...opts,
+ method: "DELETE"
+ }));
+}
+export function addUsersToAlbum({ id, addUsersDto }: {
+ id: string;
+ addUsersDto: AddUsersDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: AlbumResponseDto;
+ }>(`/album/${encodeURIComponent(id)}/users`, oazapfts.json({
+ ...opts,
+ method: "PUT",
+ body: addUsersDto
+ })));
+}
+export function getApiKeys(opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: ApiKeyResponseDto[];
+ }>("/api-key", {
+ ...opts
+ }));
+}
+export function createApiKey({ apiKeyCreateDto }: {
+ apiKeyCreateDto: ApiKeyCreateDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 201;
+ data: ApiKeyCreateResponseDto;
+ }>("/api-key", oazapfts.json({
+ ...opts,
+ method: "POST",
+ body: apiKeyCreateDto
+ })));
+}
+export function deleteApiKey({ id }: {
+ id: string;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchText(`/api-key/${encodeURIComponent(id)}`, {
+ ...opts,
+ method: "DELETE"
+ }));
+}
+export function getApiKey({ id }: {
+ id: string;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: ApiKeyResponseDto;
+ }>(`/api-key/${encodeURIComponent(id)}`, {
+ ...opts
+ }));
+}
+export function updateApiKey({ id, apiKeyUpdateDto }: {
+ id: string;
+ apiKeyUpdateDto: ApiKeyUpdateDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: ApiKeyResponseDto;
+ }>(`/api-key/${encodeURIComponent(id)}`, oazapfts.json({
+ ...opts,
+ method: "PUT",
+ body: apiKeyUpdateDto
+ })));
+}
+export function deleteAssets({ assetBulkDeleteDto }: {
+ assetBulkDeleteDto: AssetBulkDeleteDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchText("/asset", oazapfts.json({
+ ...opts,
+ method: "DELETE",
+ body: assetBulkDeleteDto
+ })));
+}
+/**
+ * Get all AssetEntity belong to the user
+ */
+export function getAllAssets({ ifNoneMatch, isArchived, isFavorite, skip, take, updatedAfter, updatedBefore, userId }: {
+ ifNoneMatch?: string;
+ isArchived?: boolean;
+ isFavorite?: boolean;
+ skip?: number;
+ take?: number;
+ updatedAfter?: string;
+ updatedBefore?: string;
+ userId?: string;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: AssetResponseDto[];
+ }>(`/asset${QS.query(QS.explode({
+ isArchived,
+ isFavorite,
+ skip,
+ take,
+ updatedAfter,
+ updatedBefore,
+ userId
+ }))}`, {
+ ...opts,
+ headers: oazapfts.mergeHeaders(opts?.headers, {
+ "if-none-match": ifNoneMatch
+ })
+ }));
+}
+export function updateAssets({ assetBulkUpdateDto }: {
+ assetBulkUpdateDto: AssetBulkUpdateDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchText("/asset", oazapfts.json({
+ ...opts,
+ method: "PUT",
+ body: assetBulkUpdateDto
+ })));
+}
+/**
+ * Checks if assets exist by checksums
+ */
+export function checkBulkUpload({ assetBulkUploadCheckDto }: {
+ assetBulkUploadCheckDto: AssetBulkUploadCheckDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: AssetBulkUploadCheckResponseDto;
+ }>("/asset/bulk-upload-check", oazapfts.json({
+ ...opts,
+ method: "POST",
+ body: assetBulkUploadCheckDto
+ })));
+}
+export function getCuratedLocations(opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: CuratedLocationsResponseDto[];
+ }>("/asset/curated-locations", {
+ ...opts
+ }));
+}
+export function getCuratedObjects(opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: CuratedObjectsResponseDto[];
+ }>("/asset/curated-objects", {
+ ...opts
+ }));
+}
+/**
+ * Get all asset of a device that are in the database, ID only.
+ */
+export function getAllUserAssetsByDeviceId({ deviceId }: {
+ deviceId: string;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: string[];
+ }>(`/asset/device/${encodeURIComponent(deviceId)}`, {
+ ...opts
+ }));
+}
+/**
+ * Checks if multiple assets exist on the server and returns all existing - used by background backup
+ */
+export function checkExistingAssets({ checkExistingAssetsDto }: {
+ checkExistingAssetsDto: CheckExistingAssetsDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: CheckExistingAssetsResponseDto;
+ }>("/asset/exist", oazapfts.json({
+ ...opts,
+ method: "POST",
+ body: checkExistingAssetsDto
+ })));
+}
+export function serveFile({ id, isThumb, isWeb, key }: {
+ id: string;
+ isThumb?: boolean;
+ isWeb?: boolean;
+ key?: string;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchBlob<{
+ status: 200;
+ data: Blob;
+ }>(`/asset/file/${encodeURIComponent(id)}${QS.query(QS.explode({
+ isThumb,
+ isWeb,
+ key
+ }))}`, {
+ ...opts
+ }));
+}
+export function runAssetJobs({ assetJobsDto }: {
+ assetJobsDto: AssetJobsDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchText("/asset/jobs", oazapfts.json({
+ ...opts,
+ method: "POST",
+ body: assetJobsDto
+ })));
+}
+export function getMapMarkers({ fileCreatedAfter, fileCreatedBefore, isArchived, isFavorite }: {
+ fileCreatedAfter?: string;
+ fileCreatedBefore?: string;
+ isArchived?: boolean;
+ isFavorite?: boolean;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: MapMarkerResponseDto[];
+ }>(`/asset/map-marker${QS.query(QS.explode({
+ fileCreatedAfter,
+ fileCreatedBefore,
+ isArchived,
+ isFavorite
+ }))}`, {
+ ...opts
+ }));
+}
+export function getMemoryLane({ day, month }: {
+ day: number;
+ month: number;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: MemoryLaneResponseDto[];
+ }>(`/asset/memory-lane${QS.query(QS.explode({
+ day,
+ month
+ }))}`, {
+ ...opts
+ }));
+}
+export function getRandom({ count }: {
+ count?: number;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: AssetResponseDto[];
+ }>(`/asset/random${QS.query(QS.explode({
+ count
+ }))}`, {
+ ...opts
+ }));
+}
+export function getAssetSearchTerms(opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: string[];
+ }>("/asset/search-terms", {
+ ...opts
+ }));
+}
+export function updateStackParent({ updateStackParentDto }: {
+ updateStackParentDto: UpdateStackParentDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchText("/asset/stack/parent", oazapfts.json({
+ ...opts,
+ method: "PUT",
+ body: updateStackParentDto
+ })));
+}
+export function getAssetStatistics({ isArchived, isFavorite, isTrashed }: {
+ isArchived?: boolean;
+ isFavorite?: boolean;
+ isTrashed?: boolean;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: AssetStatsResponseDto;
+ }>(`/asset/statistics${QS.query(QS.explode({
+ isArchived,
+ isFavorite,
+ isTrashed
+ }))}`, {
+ ...opts
+ }));
+}
+export function getAssetThumbnail({ format, id, key }: {
+ format?: ThumbnailFormat;
+ id: string;
+ key?: string;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchBlob<{
+ status: 200;
+ data: Blob;
+ }>(`/asset/thumbnail/${encodeURIComponent(id)}${QS.query(QS.explode({
+ format,
+ key
+ }))}`, {
+ ...opts
+ }));
+}
+export function getTimeBucket({ albumId, isArchived, isFavorite, isTrashed, key, personId, size, timeBucket, userId, withPartners, withStacked }: {
+ albumId?: string;
+ isArchived?: boolean;
+ isFavorite?: boolean;
+ isTrashed?: boolean;
+ key?: string;
+ personId?: string;
+ size: TimeBucketSize;
+ timeBucket: string;
+ userId?: string;
+ withPartners?: boolean;
+ withStacked?: boolean;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: AssetResponseDto[];
+ }>(`/asset/time-bucket${QS.query(QS.explode({
+ albumId,
+ isArchived,
+ isFavorite,
+ isTrashed,
+ key,
+ personId,
+ size,
+ timeBucket,
+ userId,
+ withPartners,
+ withStacked
+ }))}`, {
+ ...opts
+ }));
+}
+export function getTimeBuckets({ albumId, isArchived, isFavorite, isTrashed, key, personId, size, userId, withPartners, withStacked }: {
+ albumId?: string;
+ isArchived?: boolean;
+ isFavorite?: boolean;
+ isTrashed?: boolean;
+ key?: string;
+ personId?: string;
+ size: TimeBucketSize;
+ userId?: string;
+ withPartners?: boolean;
+ withStacked?: boolean;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: TimeBucketResponseDto[];
+ }>(`/asset/time-buckets${QS.query(QS.explode({
+ albumId,
+ isArchived,
+ isFavorite,
+ isTrashed,
+ key,
+ personId,
+ size,
+ userId,
+ withPartners,
+ withStacked
+ }))}`, {
+ ...opts
+ }));
+}
+export function uploadFile({ key, createAssetDto }: {
+ key?: string;
+ createAssetDto: CreateAssetDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 201;
+ data: AssetFileUploadResponseDto;
+ }>(`/asset/upload${QS.query(QS.explode({
+ key
+ }))}`, oazapfts.multipart({
+ ...opts,
+ method: "POST",
+ body: createAssetDto
+ })));
+}
+export function getAssetInfo({ id, key }: {
+ id: string;
+ key?: string;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: AssetResponseDto;
+ }>(`/asset/${encodeURIComponent(id)}${QS.query(QS.explode({
+ key
+ }))}`, {
+ ...opts
+ }));
+}
+export function updateAsset({ id, updateAssetDto }: {
+ id: string;
+ updateAssetDto: UpdateAssetDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: AssetResponseDto;
+ }>(`/asset/${encodeURIComponent(id)}`, oazapfts.json({
+ ...opts,
+ method: "PUT",
+ body: updateAssetDto
+ })));
+}
+export function searchAssets({ checksum, city, country, createdAfter, createdBefore, deviceAssetId, deviceId, encodedVideoPath, id, isArchived, isEncoded, isExternal, isFavorite, isMotion, isOffline, isReadOnly, isVisible, lensModel, libraryId, make, model, order, originalFileName, originalPath, page, resizePath, size, state, takenAfter, takenBefore, trashedAfter, trashedBefore, $type, updatedAfter, updatedBefore, webpPath, withDeleted, withExif, withPeople, withStacked }: {
+ checksum?: string;
+ city?: string;
+ country?: string;
+ createdAfter?: string;
+ createdBefore?: string;
+ deviceAssetId?: string;
+ deviceId?: string;
+ encodedVideoPath?: string;
+ id?: string;
+ isArchived?: boolean;
+ isEncoded?: boolean;
+ isExternal?: boolean;
+ isFavorite?: boolean;
+ isMotion?: boolean;
+ isOffline?: boolean;
+ isReadOnly?: boolean;
+ isVisible?: boolean;
+ lensModel?: string;
+ libraryId?: string;
+ make?: string;
+ model?: string;
+ order?: AssetOrder;
+ originalFileName?: string;
+ originalPath?: string;
+ page?: number;
+ resizePath?: string;
+ size?: number;
+ state?: string;
+ takenAfter?: string;
+ takenBefore?: string;
+ trashedAfter?: string;
+ trashedBefore?: string;
+ $type?: AssetTypeEnum;
+ updatedAfter?: string;
+ updatedBefore?: string;
+ webpPath?: string;
+ withDeleted?: boolean;
+ withExif?: boolean;
+ withPeople?: boolean;
+ withStacked?: boolean;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: AssetResponseDto[];
+ }>(`/assets${QS.query(QS.explode({
+ checksum,
+ city,
+ country,
+ createdAfter,
+ createdBefore,
+ deviceAssetId,
+ deviceId,
+ encodedVideoPath,
+ id,
+ isArchived,
+ isEncoded,
+ isExternal,
+ isFavorite,
+ isMotion,
+ isOffline,
+ isReadOnly,
+ isVisible,
+ lensModel,
+ libraryId,
+ make,
+ model,
+ order,
+ originalFileName,
+ originalPath,
+ page,
+ resizePath,
+ size,
+ state,
+ takenAfter,
+ takenBefore,
+ trashedAfter,
+ trashedBefore,
+ "type": $type,
+ updatedAfter,
+ updatedBefore,
+ webpPath,
+ withDeleted,
+ withExif,
+ withPeople,
+ withStacked
+ }))}`, {
+ ...opts
+ }));
+}
+export function getAuditDeletes({ after, entityType, userId }: {
+ after: string;
+ entityType: EntityType;
+ userId?: string;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: AuditDeletesResponseDto;
+ }>(`/audit/deletes${QS.query(QS.explode({
+ after,
+ entityType,
+ userId
+ }))}`, {
+ ...opts
+ }));
+}
+export function getAuditFiles(opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: FileReportDto;
+ }>("/audit/file-report", {
+ ...opts
+ }));
+}
+export function getFileChecksums({ fileChecksumDto }: {
+ fileChecksumDto: FileChecksumDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 201;
+ data: FileChecksumResponseDto[];
+ }>("/audit/file-report/checksum", oazapfts.json({
+ ...opts,
+ method: "POST",
+ body: fileChecksumDto
+ })));
+}
+export function fixAuditFiles({ fileReportFixDto }: {
+ fileReportFixDto: FileReportFixDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchText("/audit/file-report/fix", oazapfts.json({
+ ...opts,
+ method: "POST",
+ body: fileReportFixDto
+ })));
+}
+export function signUpAdmin({ signUpDto }: {
+ signUpDto: SignUpDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 201;
+ data: UserResponseDto;
+ }>("/auth/admin-sign-up", oazapfts.json({
+ ...opts,
+ method: "POST",
+ body: signUpDto
+ })));
+}
+export function changePassword({ changePasswordDto }: {
+ changePasswordDto: ChangePasswordDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: UserResponseDto;
+ }>("/auth/change-password", oazapfts.json({
+ ...opts,
+ method: "POST",
+ body: changePasswordDto
+ })));
+}
+export function logoutAuthDevices(opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchText("/auth/devices", {
+ ...opts,
+ method: "DELETE"
+ }));
+}
+export function getAuthDevices(opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: AuthDeviceResponseDto[];
+ }>("/auth/devices", {
+ ...opts
+ }));
+}
+export function logoutAuthDevice({ id }: {
+ id: string;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchText(`/auth/devices/${encodeURIComponent(id)}`, {
+ ...opts,
+ method: "DELETE"
+ }));
+}
+export function login({ loginCredentialDto }: {
+ loginCredentialDto: LoginCredentialDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 201;
+ data: LoginResponseDto;
+ }>("/auth/login", oazapfts.json({
+ ...opts,
+ method: "POST",
+ body: loginCredentialDto
+ })));
+}
+export function logout(opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: LogoutResponseDto;
+ }>("/auth/logout", {
+ ...opts,
+ method: "POST"
+ }));
+}
+export function validateAccessToken(opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: ValidateAccessTokenResponseDto;
+ }>("/auth/validateToken", {
+ ...opts,
+ method: "POST"
+ }));
+}
+export function downloadArchive({ key, assetIdsDto }: {
+ key?: string;
+ assetIdsDto: AssetIdsDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchBlob<{
+ status: 200;
+ data: Blob;
+ }>(`/download/archive${QS.query(QS.explode({
+ key
+ }))}`, oazapfts.json({
+ ...opts,
+ method: "POST",
+ body: assetIdsDto
+ })));
+}
+export function downloadFile({ id, key }: {
+ id: string;
+ key?: string;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchBlob<{
+ status: 200;
+ data: Blob;
+ }>(`/download/asset/${encodeURIComponent(id)}${QS.query(QS.explode({
+ key
+ }))}`, {
+ ...opts,
+ method: "POST"
+ }));
+}
+export function getDownloadInfo({ key, downloadInfoDto }: {
+ key?: string;
+ downloadInfoDto: DownloadInfoDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 201;
+ data: DownloadResponseDto;
+ }>(`/download/info${QS.query(QS.explode({
+ key
+ }))}`, oazapfts.json({
+ ...opts,
+ method: "POST",
+ body: downloadInfoDto
+ })));
+}
+export function getFaces({ id }: {
+ id: string;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: AssetFaceResponseDto[];
+ }>(`/face${QS.query(QS.explode({
+ id
+ }))}`, {
+ ...opts
+ }));
+}
+export function reassignFacesById({ id, faceDto }: {
+ id: string;
+ faceDto: FaceDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: PersonResponseDto;
+ }>(`/face/${encodeURIComponent(id)}`, oazapfts.json({
+ ...opts,
+ method: "PUT",
+ body: faceDto
+ })));
+}
+export function getAllJobsStatus(opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: AllJobStatusResponseDto;
+ }>("/jobs", {
+ ...opts
+ }));
+}
+export function sendJobCommand({ id, jobCommandDto }: {
+ id: JobName;
+ jobCommandDto: JobCommandDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: JobStatusDto;
+ }>(`/jobs/${encodeURIComponent(id)}`, oazapfts.json({
+ ...opts,
+ method: "PUT",
+ body: jobCommandDto
+ })));
+}
+export function getLibraries(opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: LibraryResponseDto[];
+ }>("/library", {
+ ...opts
+ }));
+}
+export function createLibrary({ createLibraryDto }: {
+ createLibraryDto: CreateLibraryDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 201;
+ data: LibraryResponseDto;
+ }>("/library", oazapfts.json({
+ ...opts,
+ method: "POST",
+ body: createLibraryDto
+ })));
+}
+export function deleteLibrary({ id }: {
+ id: string;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchText(`/library/${encodeURIComponent(id)}`, {
+ ...opts,
+ method: "DELETE"
+ }));
+}
+export function getLibraryInfo({ id }: {
+ id: string;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: LibraryResponseDto;
+ }>(`/library/${encodeURIComponent(id)}`, {
+ ...opts
+ }));
+}
+export function updateLibrary({ id, updateLibraryDto }: {
+ id: string;
+ updateLibraryDto: UpdateLibraryDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: LibraryResponseDto;
+ }>(`/library/${encodeURIComponent(id)}`, oazapfts.json({
+ ...opts,
+ method: "PUT",
+ body: updateLibraryDto
+ })));
+}
+export function removeOfflineFiles({ id }: {
+ id: string;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchText(`/library/${encodeURIComponent(id)}/removeOffline`, {
+ ...opts,
+ method: "POST"
+ }));
+}
+export function scanLibrary({ id, scanLibraryDto }: {
+ id: string;
+ scanLibraryDto: ScanLibraryDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchText(`/library/${encodeURIComponent(id)}/scan`, oazapfts.json({
+ ...opts,
+ method: "POST",
+ body: scanLibraryDto
+ })));
+}
+export function getLibraryStatistics({ id }: {
+ id: string;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: LibraryStatsResponseDto;
+ }>(`/library/${encodeURIComponent(id)}/statistics`, {
+ ...opts
+ }));
+}
+export function startOAuth({ oAuthConfigDto }: {
+ oAuthConfigDto: OAuthConfigDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 201;
+ data: OAuthAuthorizeResponseDto;
+ }>("/oauth/authorize", oazapfts.json({
+ ...opts,
+ method: "POST",
+ body: oAuthConfigDto
+ })));
+}
+export function finishOAuth({ oAuthCallbackDto }: {
+ oAuthCallbackDto: OAuthCallbackDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 201;
+ data: LoginResponseDto;
+ }>("/oauth/callback", oazapfts.json({
+ ...opts,
+ method: "POST",
+ body: oAuthCallbackDto
+ })));
+}
+export function linkOAuthAccount({ oAuthCallbackDto }: {
+ oAuthCallbackDto: OAuthCallbackDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 201;
+ data: UserResponseDto;
+ }>("/oauth/link", oazapfts.json({
+ ...opts,
+ method: "POST",
+ body: oAuthCallbackDto
+ })));
+}
+export function redirectOAuthToMobile(opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchText("/oauth/mobile-redirect", {
+ ...opts
+ }));
+}
+export function unlinkOAuthAccount(opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 201;
+ data: UserResponseDto;
+ }>("/oauth/unlink", {
+ ...opts,
+ method: "POST"
+ }));
+}
+export function getPartners({ direction }: {
+ direction: "shared-by" | "shared-with";
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: PartnerResponseDto[];
+ }>(`/partner${QS.query(QS.explode({
+ direction
+ }))}`, {
+ ...opts
+ }));
+}
+export function removePartner({ id }: {
+ id: string;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchText(`/partner/${encodeURIComponent(id)}`, {
+ ...opts,
+ method: "DELETE"
+ }));
+}
+export function createPartner({ id }: {
+ id: string;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 201;
+ data: PartnerResponseDto;
+ }>(`/partner/${encodeURIComponent(id)}`, {
+ ...opts,
+ method: "POST"
+ }));
+}
+export function updatePartner({ id, updatePartnerDto }: {
+ id: string;
+ updatePartnerDto: UpdatePartnerDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: PartnerResponseDto;
+ }>(`/partner/${encodeURIComponent(id)}`, oazapfts.json({
+ ...opts,
+ method: "PUT",
+ body: updatePartnerDto
+ })));
+}
+export function getAllPeople({ withHidden }: {
+ withHidden?: boolean;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: PeopleResponseDto;
+ }>(`/person${QS.query(QS.explode({
+ withHidden
+ }))}`, {
+ ...opts
+ }));
+}
+export function createPerson(opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 201;
+ data: PersonResponseDto;
+ }>("/person", {
+ ...opts,
+ method: "POST"
+ }));
+}
+export function updatePeople({ peopleUpdateDto }: {
+ peopleUpdateDto: PeopleUpdateDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: BulkIdResponseDto[];
+ }>("/person", oazapfts.json({
+ ...opts,
+ method: "PUT",
+ body: peopleUpdateDto
+ })));
+}
+export function getPerson({ id }: {
+ id: string;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: PersonResponseDto;
+ }>(`/person/${encodeURIComponent(id)}`, {
+ ...opts
+ }));
+}
+export function updatePerson({ id, personUpdateDto }: {
+ id: string;
+ personUpdateDto: PersonUpdateDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: PersonResponseDto;
+ }>(`/person/${encodeURIComponent(id)}`, oazapfts.json({
+ ...opts,
+ method: "PUT",
+ body: personUpdateDto
+ })));
+}
+export function getPersonAssets({ id }: {
+ id: string;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: AssetResponseDto[];
+ }>(`/person/${encodeURIComponent(id)}/assets`, {
+ ...opts
+ }));
+}
+export function mergePerson({ id, mergePersonDto }: {
+ id: string;
+ mergePersonDto: MergePersonDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 201;
+ data: BulkIdResponseDto[];
+ }>(`/person/${encodeURIComponent(id)}/merge`, oazapfts.json({
+ ...opts,
+ method: "POST",
+ body: mergePersonDto
+ })));
+}
+export function reassignFaces({ id, assetFaceUpdateDto }: {
+ id: string;
+ assetFaceUpdateDto: AssetFaceUpdateDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: PersonResponseDto[];
+ }>(`/person/${encodeURIComponent(id)}/reassign`, oazapfts.json({
+ ...opts,
+ method: "PUT",
+ body: assetFaceUpdateDto
+ })));
+}
+export function getPersonStatistics({ id }: {
+ id: string;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: PersonStatisticsResponseDto;
+ }>(`/person/${encodeURIComponent(id)}/statistics`, {
+ ...opts
+ }));
+}
+export function getPersonThumbnail({ id }: {
+ id: string;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchBlob<{
+ status: 200;
+ data: Blob;
+ }>(`/person/${encodeURIComponent(id)}/thumbnail`, {
+ ...opts
+ }));
+}
+export function search({ clip, motion, q, query, recent, smart, $type, withArchived }: {
+ clip?: boolean;
+ motion?: boolean;
+ q?: string;
+ query?: string;
+ recent?: boolean;
+ smart?: boolean;
+ $type?: "IMAGE" | "VIDEO" | "AUDIO" | "OTHER";
+ withArchived?: boolean;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: SearchResponseDto;
+ }>(`/search${QS.query(QS.explode({
+ clip,
+ motion,
+ q,
+ query,
+ recent,
+ smart,
+ "type": $type,
+ withArchived
+ }))}`, {
+ ...opts
+ }));
+}
+export function getExploreData(opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: SearchExploreResponseDto[];
+ }>("/search/explore", {
+ ...opts
+ }));
+}
+export function searchPerson({ name, withHidden }: {
+ name: string;
+ withHidden?: boolean;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: PersonResponseDto[];
+ }>(`/search/person${QS.query(QS.explode({
+ name,
+ withHidden
+ }))}`, {
+ ...opts
+ }));
+}
+export function getServerInfo(opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: ServerInfoResponseDto;
+ }>("/server-info", {
+ ...opts
+ }));
+}
+export function setAdminOnboarding(opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchText("/server-info/admin-onboarding", {
+ ...opts,
+ method: "POST"
+ }));
+}
+export function getServerConfig(opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: ServerConfigDto;
+ }>("/server-info/config", {
+ ...opts
+ }));
+}
+export function getServerFeatures(opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: ServerFeaturesDto;
+ }>("/server-info/features", {
+ ...opts
+ }));
+}
+export function getSupportedMediaTypes(opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: ServerMediaTypesResponseDto;
+ }>("/server-info/media-types", {
+ ...opts
+ }));
+}
+export function pingServer(opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: ServerPingResponseRead;
+ }>("/server-info/ping", {
+ ...opts
+ }));
+}
+export function getServerStatistics(opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: ServerStatsResponseDto;
+ }>("/server-info/statistics", {
+ ...opts
+ }));
+}
+export function getTheme(opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: ServerThemeDto;
+ }>("/server-info/theme", {
+ ...opts
+ }));
+}
+export function getServerVersion(opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: ServerVersionResponseDto;
+ }>("/server-info/version", {
+ ...opts
+ }));
+}
+export function getAllSharedLinks(opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: SharedLinkResponseDto[];
+ }>("/shared-link", {
+ ...opts
+ }));
+}
+export function createSharedLink({ sharedLinkCreateDto }: {
+ sharedLinkCreateDto: SharedLinkCreateDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 201;
+ data: SharedLinkResponseDto;
+ }>("/shared-link", oazapfts.json({
+ ...opts,
+ method: "POST",
+ body: sharedLinkCreateDto
+ })));
+}
+export function getMySharedLink({ key, password, token }: {
+ key?: string;
+ password?: string;
+ token?: string;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: SharedLinkResponseDto;
+ }>(`/shared-link/me${QS.query(QS.explode({
+ key,
+ password,
+ token
+ }))}`, {
+ ...opts
+ }));
+}
+export function removeSharedLink({ id }: {
+ id: string;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchText(`/shared-link/${encodeURIComponent(id)}`, {
+ ...opts,
+ method: "DELETE"
+ }));
+}
+export function getSharedLinkById({ id }: {
+ id: string;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: SharedLinkResponseDto;
+ }>(`/shared-link/${encodeURIComponent(id)}`, {
+ ...opts
+ }));
+}
+export function updateSharedLink({ id, sharedLinkEditDto }: {
+ id: string;
+ sharedLinkEditDto: SharedLinkEditDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: SharedLinkResponseDto;
+ }>(`/shared-link/${encodeURIComponent(id)}`, oazapfts.json({
+ ...opts,
+ method: "PATCH",
+ body: sharedLinkEditDto
+ })));
+}
+export function removeSharedLinkAssets({ id, key, assetIdsDto }: {
+ id: string;
+ key?: string;
+ assetIdsDto: AssetIdsDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: AssetIdsResponseDto[];
+ }>(`/shared-link/${encodeURIComponent(id)}/assets${QS.query(QS.explode({
+ key
+ }))}`, oazapfts.json({
+ ...opts,
+ method: "DELETE",
+ body: assetIdsDto
+ })));
+}
+export function addSharedLinkAssets({ id, key, assetIdsDto }: {
+ id: string;
+ key?: string;
+ assetIdsDto: AssetIdsDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: AssetIdsResponseDto[];
+ }>(`/shared-link/${encodeURIComponent(id)}/assets${QS.query(QS.explode({
+ key
+ }))}`, oazapfts.json({
+ ...opts,
+ method: "PUT",
+ body: assetIdsDto
+ })));
+}
+export function getConfig(opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: SystemConfigDto;
+ }>("/system-config", {
+ ...opts
+ }));
+}
+export function updateConfig({ systemConfigDto }: {
+ systemConfigDto: SystemConfigDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: SystemConfigDto;
+ }>("/system-config", oazapfts.json({
+ ...opts,
+ method: "PUT",
+ body: systemConfigDto
+ })));
+}
+export function getConfigDefaults(opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: SystemConfigDto;
+ }>("/system-config/defaults", {
+ ...opts
+ }));
+}
+export function getMapStyle({ theme }: {
+ theme: MapTheme;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: object;
+ }>(`/system-config/map/style.json${QS.query(QS.explode({
+ theme
+ }))}`, {
+ ...opts
+ }));
+}
+export function getStorageTemplateOptions(opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: SystemConfigTemplateStorageOptionDto;
+ }>("/system-config/storage-template-options", {
+ ...opts
+ }));
+}
+export function getAllTags(opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: TagResponseDto[];
+ }>("/tag", {
+ ...opts
+ }));
+}
+export function createTag({ createTagDto }: {
+ createTagDto: CreateTagDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 201;
+ data: TagResponseDto;
+ }>("/tag", oazapfts.json({
+ ...opts,
+ method: "POST",
+ body: createTagDto
+ })));
+}
+export function deleteTag({ id }: {
+ id: string;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchText(`/tag/${encodeURIComponent(id)}`, {
+ ...opts,
+ method: "DELETE"
+ }));
+}
+export function getTagById({ id }: {
+ id: string;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: TagResponseDto;
+ }>(`/tag/${encodeURIComponent(id)}`, {
+ ...opts
+ }));
+}
+export function updateTag({ id, updateTagDto }: {
+ id: string;
+ updateTagDto: UpdateTagDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: TagResponseDto;
+ }>(`/tag/${encodeURIComponent(id)}`, oazapfts.json({
+ ...opts,
+ method: "PATCH",
+ body: updateTagDto
+ })));
+}
+export function untagAssets({ id, assetIdsDto }: {
+ id: string;
+ assetIdsDto: AssetIdsDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: AssetIdsResponseDto[];
+ }>(`/tag/${encodeURIComponent(id)}/assets`, oazapfts.json({
+ ...opts,
+ method: "DELETE",
+ body: assetIdsDto
+ })));
+}
+export function getTagAssets({ id }: {
+ id: string;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: AssetResponseDto[];
+ }>(`/tag/${encodeURIComponent(id)}/assets`, {
+ ...opts
+ }));
+}
+export function tagAssets({ id, assetIdsDto }: {
+ id: string;
+ assetIdsDto: AssetIdsDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: AssetIdsResponseDto[];
+ }>(`/tag/${encodeURIComponent(id)}/assets`, oazapfts.json({
+ ...opts,
+ method: "PUT",
+ body: assetIdsDto
+ })));
+}
+export function emptyTrash(opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchText("/trash/empty", {
+ ...opts,
+ method: "POST"
+ }));
+}
+export function restoreTrash(opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchText("/trash/restore", {
+ ...opts,
+ method: "POST"
+ }));
+}
+export function restoreAssets({ bulkIdsDto }: {
+ bulkIdsDto: BulkIdsDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchText("/trash/restore/assets", oazapfts.json({
+ ...opts,
+ method: "POST",
+ body: bulkIdsDto
+ })));
+}
+export function getAllUsers({ isAll }: {
+ isAll: boolean;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: UserResponseDto[];
+ }>(`/user${QS.query(QS.explode({
+ isAll
+ }))}`, {
+ ...opts
+ }));
+}
+export function createUser({ createUserDto }: {
+ createUserDto: CreateUserDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 201;
+ data: UserResponseDto;
+ }>("/user", oazapfts.json({
+ ...opts,
+ method: "POST",
+ body: createUserDto
+ })));
+}
+export function updateUser({ updateUserDto }: {
+ updateUserDto: UpdateUserDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: UserResponseDto;
+ }>("/user", oazapfts.json({
+ ...opts,
+ method: "PUT",
+ body: updateUserDto
+ })));
+}
+export function getUserById({ id }: {
+ id: string;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: UserResponseDto;
+ }>(`/user/info/${encodeURIComponent(id)}`, {
+ ...opts
+ }));
+}
+export function getMyUserInfo(opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: UserResponseDto;
+ }>("/user/me", {
+ ...opts
+ }));
+}
+export function deleteProfileImage(opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchText("/user/profile-image", {
+ ...opts,
+ method: "DELETE"
+ }));
+}
+export function createProfileImage({ createProfileImageDto }: {
+ createProfileImageDto: CreateProfileImageDto;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 201;
+ data: CreateProfileImageResponseDto;
+ }>("/user/profile-image", oazapfts.multipart({
+ ...opts,
+ method: "POST",
+ body: createProfileImageDto
+ })));
+}
+export function getProfileImage({ id }: {
+ id: string;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchBlob<{
+ status: 200;
+ data: Blob;
+ }>(`/user/profile-image/${encodeURIComponent(id)}`, {
+ ...opts
+ }));
+}
+export function deleteUser({ id }: {
+ id: string;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 200;
+ data: UserResponseDto;
+ }>(`/user/${encodeURIComponent(id)}`, {
+ ...opts,
+ method: "DELETE"
+ }));
+}
+export function restoreUser({ id }: {
+ id: string;
+}, opts?: Oazapfts.RequestOpts) {
+ return oazapfts.ok(oazapfts.fetchJson<{
+ status: 201;
+ data: UserResponseDto;
+ }>(`/user/${encodeURIComponent(id)}/restore`, {
+ ...opts,
+ method: "POST"
+ }));
+}
diff --git a/open-api/typescript-sdk/fetch-client/.openapi-generator-ignore b/open-api/typescript-sdk/fetch-client/.openapi-generator-ignore
deleted file mode 100644
index 7484ee590a..0000000000
--- a/open-api/typescript-sdk/fetch-client/.openapi-generator-ignore
+++ /dev/null
@@ -1,23 +0,0 @@
-# OpenAPI Generator Ignore
-# Generated by openapi-generator https://github.com/openapitools/openapi-generator
-
-# Use this file to prevent files from being overwritten by the generator.
-# The patterns follow closely to .gitignore or .dockerignore.
-
-# As an example, the C# client generator defines ApiClient.cs.
-# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
-#ApiClient.cs
-
-# You can match any string of characters against a directory, file or extension with a single asterisk (*):
-#foo/*/qux
-# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
-
-# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
-#foo/**/qux
-# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
-
-# You can also negate patterns with an exclamation (!).
-# For example, you can ignore all files in a docs folder with the file extension .md:
-#docs/*.md
-# Then explicitly reverse the ignore rule for a single file:
-#!docs/README.md
diff --git a/open-api/typescript-sdk/fetch-client/.openapi-generator/FILES b/open-api/typescript-sdk/fetch-client/.openapi-generator/FILES
deleted file mode 100644
index 404449e74d..0000000000
--- a/open-api/typescript-sdk/fetch-client/.openapi-generator/FILES
+++ /dev/null
@@ -1,181 +0,0 @@
-apis/APIKeyApi.ts
-apis/ActivityApi.ts
-apis/AlbumApi.ts
-apis/AssetApi.ts
-apis/AuditApi.ts
-apis/AuthenticationApi.ts
-apis/DownloadApi.ts
-apis/FaceApi.ts
-apis/JobApi.ts
-apis/LibraryApi.ts
-apis/OAuthApi.ts
-apis/PartnerApi.ts
-apis/PersonApi.ts
-apis/SearchApi.ts
-apis/ServerInfoApi.ts
-apis/SharedLinkApi.ts
-apis/SystemConfigApi.ts
-apis/TagApi.ts
-apis/TrashApi.ts
-apis/UserApi.ts
-apis/index.ts
-index.ts
-models/APIKeyCreateDto.ts
-models/APIKeyCreateResponseDto.ts
-models/APIKeyResponseDto.ts
-models/APIKeyUpdateDto.ts
-models/ActivityCreateDto.ts
-models/ActivityResponseDto.ts
-models/ActivityStatisticsResponseDto.ts
-models/AddUsersDto.ts
-models/AlbumCountResponseDto.ts
-models/AlbumResponseDto.ts
-models/AllJobStatusResponseDto.ts
-models/AssetBulkDeleteDto.ts
-models/AssetBulkUpdateDto.ts
-models/AssetBulkUploadCheckDto.ts
-models/AssetBulkUploadCheckItem.ts
-models/AssetBulkUploadCheckResponseDto.ts
-models/AssetBulkUploadCheckResult.ts
-models/AssetFaceResponseDto.ts
-models/AssetFaceUpdateDto.ts
-models/AssetFaceUpdateItem.ts
-models/AssetFaceWithoutPersonResponseDto.ts
-models/AssetFileUploadResponseDto.ts
-models/AssetIdsDto.ts
-models/AssetIdsResponseDto.ts
-models/AssetJobName.ts
-models/AssetJobsDto.ts
-models/AssetOrder.ts
-models/AssetResponseDto.ts
-models/AssetStatsResponseDto.ts
-models/AssetTypeEnum.ts
-models/AudioCodec.ts
-models/AuditDeletesResponseDto.ts
-models/AuthDeviceResponseDto.ts
-models/BulkIdResponseDto.ts
-models/BulkIdsDto.ts
-models/CLIPConfig.ts
-models/CLIPMode.ts
-models/CQMode.ts
-models/ChangePasswordDto.ts
-models/CheckExistingAssetsDto.ts
-models/CheckExistingAssetsResponseDto.ts
-models/Colorspace.ts
-models/CreateAlbumDto.ts
-models/CreateLibraryDto.ts
-models/CreateProfileImageResponseDto.ts
-models/CreateTagDto.ts
-models/CreateUserDto.ts
-models/CuratedLocationsResponseDto.ts
-models/CuratedObjectsResponseDto.ts
-models/DownloadArchiveInfo.ts
-models/DownloadInfoDto.ts
-models/DownloadResponseDto.ts
-models/EntityType.ts
-models/ExifResponseDto.ts
-models/FaceDto.ts
-models/FileChecksumDto.ts
-models/FileChecksumResponseDto.ts
-models/FileReportDto.ts
-models/FileReportFixDto.ts
-models/FileReportItemDto.ts
-models/JobCommand.ts
-models/JobCommandDto.ts
-models/JobCountsDto.ts
-models/JobName.ts
-models/JobSettingsDto.ts
-models/JobStatusDto.ts
-models/LibraryResponseDto.ts
-models/LibraryStatsResponseDto.ts
-models/LibraryType.ts
-models/LogLevel.ts
-models/LoginCredentialDto.ts
-models/LoginResponseDto.ts
-models/LogoutResponseDto.ts
-models/MapMarkerResponseDto.ts
-models/MapTheme.ts
-models/MemoryLaneResponseDto.ts
-models/MergePersonDto.ts
-models/ModelType.ts
-models/OAuthAuthorizeResponseDto.ts
-models/OAuthCallbackDto.ts
-models/OAuthConfigDto.ts
-models/PartnerResponseDto.ts
-models/PathEntityType.ts
-models/PathType.ts
-models/PeopleResponseDto.ts
-models/PeopleUpdateDto.ts
-models/PeopleUpdateItem.ts
-models/PersonResponseDto.ts
-models/PersonStatisticsResponseDto.ts
-models/PersonUpdateDto.ts
-models/PersonWithFacesResponseDto.ts
-models/QueueStatusDto.ts
-models/ReactionLevel.ts
-models/ReactionType.ts
-models/RecognitionConfig.ts
-models/ScanLibraryDto.ts
-models/SearchAlbumResponseDto.ts
-models/SearchAssetResponseDto.ts
-models/SearchExploreItem.ts
-models/SearchExploreResponseDto.ts
-models/SearchFacetCountResponseDto.ts
-models/SearchFacetResponseDto.ts
-models/SearchResponseDto.ts
-models/ServerConfigDto.ts
-models/ServerFeaturesDto.ts
-models/ServerInfoResponseDto.ts
-models/ServerMediaTypesResponseDto.ts
-models/ServerPingResponse.ts
-models/ServerStatsResponseDto.ts
-models/ServerThemeDto.ts
-models/ServerVersionResponseDto.ts
-models/SharedLinkCreateDto.ts
-models/SharedLinkEditDto.ts
-models/SharedLinkResponseDto.ts
-models/SharedLinkType.ts
-models/SignUpDto.ts
-models/SmartInfoResponseDto.ts
-models/SystemConfigDto.ts
-models/SystemConfigFFmpegDto.ts
-models/SystemConfigJobDto.ts
-models/SystemConfigLibraryDto.ts
-models/SystemConfigLibraryScanDto.ts
-models/SystemConfigLibraryWatchDto.ts
-models/SystemConfigLoggingDto.ts
-models/SystemConfigMachineLearningDto.ts
-models/SystemConfigMapDto.ts
-models/SystemConfigNewVersionCheckDto.ts
-models/SystemConfigOAuthDto.ts
-models/SystemConfigPasswordLoginDto.ts
-models/SystemConfigReverseGeocodingDto.ts
-models/SystemConfigServerDto.ts
-models/SystemConfigStorageTemplateDto.ts
-models/SystemConfigTemplateStorageOptionDto.ts
-models/SystemConfigThemeDto.ts
-models/SystemConfigThumbnailDto.ts
-models/SystemConfigTrashDto.ts
-models/TagResponseDto.ts
-models/TagTypeEnum.ts
-models/ThumbnailFormat.ts
-models/TimeBucketResponseDto.ts
-models/TimeBucketSize.ts
-models/ToneMapping.ts
-models/TranscodeHWAccel.ts
-models/TranscodePolicy.ts
-models/UpdateAlbumDto.ts
-models/UpdateAssetDto.ts
-models/UpdateLibraryDto.ts
-models/UpdatePartnerDto.ts
-models/UpdateStackParentDto.ts
-models/UpdateTagDto.ts
-models/UpdateUserDto.ts
-models/UsageByUserDto.ts
-models/UserAvatarColor.ts
-models/UserDto.ts
-models/UserResponseDto.ts
-models/ValidateAccessTokenResponseDto.ts
-models/VideoCodec.ts
-models/index.ts
-runtime.ts
diff --git a/open-api/typescript-sdk/fetch-client/.openapi-generator/VERSION b/open-api/typescript-sdk/fetch-client/.openapi-generator/VERSION
deleted file mode 100644
index 4b49d9bb63..0000000000
--- a/open-api/typescript-sdk/fetch-client/.openapi-generator/VERSION
+++ /dev/null
@@ -1 +0,0 @@
-7.2.0
\ No newline at end of file
diff --git a/open-api/typescript-sdk/fetch-client/apis/APIKeyApi.ts b/open-api/typescript-sdk/fetch-client/apis/APIKeyApi.ts
deleted file mode 100644
index 2a7b51f395..0000000000
--- a/open-api/typescript-sdk/fetch-client/apis/APIKeyApi.ts
+++ /dev/null
@@ -1,261 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-import * as runtime from '../runtime';
-import type {
- APIKeyCreateDto,
- APIKeyCreateResponseDto,
- APIKeyResponseDto,
- APIKeyUpdateDto,
-} from '../models/index';
-import {
- APIKeyCreateDtoFromJSON,
- APIKeyCreateDtoToJSON,
- APIKeyCreateResponseDtoFromJSON,
- APIKeyCreateResponseDtoToJSON,
- APIKeyResponseDtoFromJSON,
- APIKeyResponseDtoToJSON,
- APIKeyUpdateDtoFromJSON,
- APIKeyUpdateDtoToJSON,
-} from '../models/index';
-
-export interface CreateApiKeyRequest {
- aPIKeyCreateDto: APIKeyCreateDto;
-}
-
-export interface DeleteApiKeyRequest {
- id: string;
-}
-
-export interface GetApiKeyRequest {
- id: string;
-}
-
-export interface UpdateApiKeyRequest {
- id: string;
- aPIKeyUpdateDto: APIKeyUpdateDto;
-}
-
-/**
- *
- */
-export class APIKeyApi extends runtime.BaseAPI {
-
- /**
- */
- async createApiKeyRaw(requestParameters: CreateApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<APIKeyCreateResponseDto>> {
- if (requestParameters.aPIKeyCreateDto === null || requestParameters.aPIKeyCreateDto === undefined) {
- throw new runtime.RequiredError('aPIKeyCreateDto','Required parameter requestParameters.aPIKeyCreateDto was null or undefined when calling createApiKey.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- headerParameters['Content-Type'] = 'application/json';
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/api-key`,
- method: 'POST',
- headers: headerParameters,
- query: queryParameters,
- body: APIKeyCreateDtoToJSON(requestParameters.aPIKeyCreateDto),
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => APIKeyCreateResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async createApiKey(requestParameters: CreateApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<APIKeyCreateResponseDto> {
- const response = await this.createApiKeyRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async deleteApiKeyRaw(requestParameters: DeleteApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling deleteApiKey.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/api-key/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'DELETE',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.VoidApiResponse(response);
- }
-
- /**
- */
- async deleteApiKey(requestParameters: DeleteApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
- await this.deleteApiKeyRaw(requestParameters, initOverrides);
- }
-
- /**
- */
- async getApiKeyRaw(requestParameters: GetApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<APIKeyResponseDto>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getApiKey.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/api-key/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => APIKeyResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async getApiKey(requestParameters: GetApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<APIKeyResponseDto> {
- const response = await this.getApiKeyRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async getApiKeysRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<APIKeyResponseDto>>> {
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/api-key`,
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(APIKeyResponseDtoFromJSON));
- }
-
- /**
- */
- async getApiKeys(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<APIKeyResponseDto>> {
- const response = await this.getApiKeysRaw(initOverrides);
- return await response.value();
- }
-
- /**
- */
- async updateApiKeyRaw(requestParameters: UpdateApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<APIKeyResponseDto>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling updateApiKey.');
- }
-
- if (requestParameters.aPIKeyUpdateDto === null || requestParameters.aPIKeyUpdateDto === undefined) {
- throw new runtime.RequiredError('aPIKeyUpdateDto','Required parameter requestParameters.aPIKeyUpdateDto was null or undefined when calling updateApiKey.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- headerParameters['Content-Type'] = 'application/json';
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/api-key/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'PUT',
- headers: headerParameters,
- query: queryParameters,
- body: APIKeyUpdateDtoToJSON(requestParameters.aPIKeyUpdateDto),
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => APIKeyResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async updateApiKey(requestParameters: UpdateApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<APIKeyResponseDto> {
- const response = await this.updateApiKeyRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
-}
diff --git a/open-api/typescript-sdk/fetch-client/apis/ActivityApi.ts b/open-api/typescript-sdk/fetch-client/apis/ActivityApi.ts
deleted file mode 100644
index 321f58ca9c..0000000000
--- a/open-api/typescript-sdk/fetch-client/apis/ActivityApi.ts
+++ /dev/null
@@ -1,253 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-import * as runtime from '../runtime';
-import type {
- ActivityCreateDto,
- ActivityResponseDto,
- ActivityStatisticsResponseDto,
- ReactionLevel,
- ReactionType,
-} from '../models/index';
-import {
- ActivityCreateDtoFromJSON,
- ActivityCreateDtoToJSON,
- ActivityResponseDtoFromJSON,
- ActivityResponseDtoToJSON,
- ActivityStatisticsResponseDtoFromJSON,
- ActivityStatisticsResponseDtoToJSON,
- ReactionLevelFromJSON,
- ReactionLevelToJSON,
- ReactionTypeFromJSON,
- ReactionTypeToJSON,
-} from '../models/index';
-
-export interface CreateActivityRequest {
- activityCreateDto: ActivityCreateDto;
-}
-
-export interface DeleteActivityRequest {
- id: string;
-}
-
-export interface GetActivitiesRequest {
- albumId: string;
- assetId?: string;
- level?: ReactionLevel;
- type?: ReactionType;
- userId?: string;
-}
-
-export interface GetActivityStatisticsRequest {
- albumId: string;
- assetId?: string;
-}
-
-/**
- *
- */
-export class ActivityApi extends runtime.BaseAPI {
-
- /**
- */
- async createActivityRaw(requestParameters: CreateActivityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ActivityResponseDto>> {
- if (requestParameters.activityCreateDto === null || requestParameters.activityCreateDto === undefined) {
- throw new runtime.RequiredError('activityCreateDto','Required parameter requestParameters.activityCreateDto was null or undefined when calling createActivity.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- headerParameters['Content-Type'] = 'application/json';
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/activity`,
- method: 'POST',
- headers: headerParameters,
- query: queryParameters,
- body: ActivityCreateDtoToJSON(requestParameters.activityCreateDto),
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => ActivityResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async createActivity(requestParameters: CreateActivityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ActivityResponseDto> {
- const response = await this.createActivityRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async deleteActivityRaw(requestParameters: DeleteActivityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling deleteActivity.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/activity/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'DELETE',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.VoidApiResponse(response);
- }
-
- /**
- */
- async deleteActivity(requestParameters: DeleteActivityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
- await this.deleteActivityRaw(requestParameters, initOverrides);
- }
-
- /**
- */
- async getActivitiesRaw(requestParameters: GetActivitiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ActivityResponseDto>>> {
- if (requestParameters.albumId === null || requestParameters.albumId === undefined) {
- throw new runtime.RequiredError('albumId','Required parameter requestParameters.albumId was null or undefined when calling getActivities.');
- }
-
- const queryParameters: any = {};
-
- if (requestParameters.albumId !== undefined) {
- queryParameters['albumId'] = requestParameters.albumId;
- }
-
- if (requestParameters.assetId !== undefined) {
- queryParameters['assetId'] = requestParameters.assetId;
- }
-
- if (requestParameters.level !== undefined) {
- queryParameters['level'] = requestParameters.level;
- }
-
- if (requestParameters.type !== undefined) {
- queryParameters['type'] = requestParameters.type;
- }
-
- if (requestParameters.userId !== undefined) {
- queryParameters['userId'] = requestParameters.userId;
- }
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/activity`,
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ActivityResponseDtoFromJSON));
- }
-
- /**
- */
- async getActivities(requestParameters: GetActivitiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ActivityResponseDto>> {
- const response = await this.getActivitiesRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async getActivityStatisticsRaw(requestParameters: GetActivityStatisticsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ActivityStatisticsResponseDto>> {
- if (requestParameters.albumId === null || requestParameters.albumId === undefined) {
- throw new runtime.RequiredError('albumId','Required parameter requestParameters.albumId was null or undefined when calling getActivityStatistics.');
- }
-
- const queryParameters: any = {};
-
- if (requestParameters.albumId !== undefined) {
- queryParameters['albumId'] = requestParameters.albumId;
- }
-
- if (requestParameters.assetId !== undefined) {
- queryParameters['assetId'] = requestParameters.assetId;
- }
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/activity/statistics`,
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => ActivityStatisticsResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async getActivityStatistics(requestParameters: GetActivityStatisticsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ActivityStatisticsResponseDto> {
- const response = await this.getActivityStatisticsRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
-}
diff --git a/open-api/typescript-sdk/fetch-client/apis/AlbumApi.ts b/open-api/typescript-sdk/fetch-client/apis/AlbumApi.ts
deleted file mode 100644
index de5b88f716..0000000000
--- a/open-api/typescript-sdk/fetch-client/apis/AlbumApi.ts
+++ /dev/null
@@ -1,538 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-import * as runtime from '../runtime';
-import type {
- AddUsersDto,
- AlbumCountResponseDto,
- AlbumResponseDto,
- BulkIdResponseDto,
- BulkIdsDto,
- CreateAlbumDto,
- UpdateAlbumDto,
-} from '../models/index';
-import {
- AddUsersDtoFromJSON,
- AddUsersDtoToJSON,
- AlbumCountResponseDtoFromJSON,
- AlbumCountResponseDtoToJSON,
- AlbumResponseDtoFromJSON,
- AlbumResponseDtoToJSON,
- BulkIdResponseDtoFromJSON,
- BulkIdResponseDtoToJSON,
- BulkIdsDtoFromJSON,
- BulkIdsDtoToJSON,
- CreateAlbumDtoFromJSON,
- CreateAlbumDtoToJSON,
- UpdateAlbumDtoFromJSON,
- UpdateAlbumDtoToJSON,
-} from '../models/index';
-
-export interface AddAssetsToAlbumRequest {
- id: string;
- bulkIdsDto: BulkIdsDto;
- key?: string;
-}
-
-export interface AddUsersToAlbumRequest {
- id: string;
- addUsersDto: AddUsersDto;
-}
-
-export interface CreateAlbumRequest {
- createAlbumDto: CreateAlbumDto;
-}
-
-export interface DeleteAlbumRequest {
- id: string;
-}
-
-export interface GetAlbumInfoRequest {
- id: string;
- key?: string;
- withoutAssets?: boolean;
-}
-
-export interface GetAllAlbumsRequest {
- assetId?: string;
- shared?: boolean;
-}
-
-export interface RemoveAssetFromAlbumRequest {
- id: string;
- bulkIdsDto: BulkIdsDto;
-}
-
-export interface RemoveUserFromAlbumRequest {
- id: string;
- userId: string;
-}
-
-export interface UpdateAlbumInfoRequest {
- id: string;
- updateAlbumDto: UpdateAlbumDto;
-}
-
-/**
- *
- */
-export class AlbumApi extends runtime.BaseAPI {
-
- /**
- */
- async addAssetsToAlbumRaw(requestParameters: AddAssetsToAlbumRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<BulkIdResponseDto>>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling addAssetsToAlbum.');
- }
-
- if (requestParameters.bulkIdsDto === null || requestParameters.bulkIdsDto === undefined) {
- throw new runtime.RequiredError('bulkIdsDto','Required parameter requestParameters.bulkIdsDto was null or undefined when calling addAssetsToAlbum.');
- }
-
- const queryParameters: any = {};
-
- if (requestParameters.key !== undefined) {
- queryParameters['key'] = requestParameters.key;
- }
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- headerParameters['Content-Type'] = 'application/json';
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/album/{id}/assets`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'PUT',
- headers: headerParameters,
- query: queryParameters,
- body: BulkIdsDtoToJSON(requestParameters.bulkIdsDto),
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(BulkIdResponseDtoFromJSON));
- }
-
- /**
- */
- async addAssetsToAlbum(requestParameters: AddAssetsToAlbumRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<BulkIdResponseDto>> {
- const response = await this.addAssetsToAlbumRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async addUsersToAlbumRaw(requestParameters: AddUsersToAlbumRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AlbumResponseDto>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling addUsersToAlbum.');
- }
-
- if (requestParameters.addUsersDto === null || requestParameters.addUsersDto === undefined) {
- throw new runtime.RequiredError('addUsersDto','Required parameter requestParameters.addUsersDto was null or undefined when calling addUsersToAlbum.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- headerParameters['Content-Type'] = 'application/json';
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/album/{id}/users`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'PUT',
- headers: headerParameters,
- query: queryParameters,
- body: AddUsersDtoToJSON(requestParameters.addUsersDto),
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => AlbumResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async addUsersToAlbum(requestParameters: AddUsersToAlbumRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AlbumResponseDto> {
- const response = await this.addUsersToAlbumRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async createAlbumRaw(requestParameters: CreateAlbumRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AlbumResponseDto>> {
- if (requestParameters.createAlbumDto === null || requestParameters.createAlbumDto === undefined) {
- throw new runtime.RequiredError('createAlbumDto','Required parameter requestParameters.createAlbumDto was null or undefined when calling createAlbum.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- headerParameters['Content-Type'] = 'application/json';
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/album`,
- method: 'POST',
- headers: headerParameters,
- query: queryParameters,
- body: CreateAlbumDtoToJSON(requestParameters.createAlbumDto),
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => AlbumResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async createAlbum(requestParameters: CreateAlbumRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AlbumResponseDto> {
- const response = await this.createAlbumRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async deleteAlbumRaw(requestParameters: DeleteAlbumRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling deleteAlbum.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/album/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'DELETE',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.VoidApiResponse(response);
- }
-
- /**
- */
- async deleteAlbum(requestParameters: DeleteAlbumRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
- await this.deleteAlbumRaw(requestParameters, initOverrides);
- }
-
- /**
- */
- async getAlbumCountRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AlbumCountResponseDto>> {
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/album/count`,
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => AlbumCountResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async getAlbumCount(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AlbumCountResponseDto> {
- const response = await this.getAlbumCountRaw(initOverrides);
- return await response.value();
- }
-
- /**
- */
- async getAlbumInfoRaw(requestParameters: GetAlbumInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AlbumResponseDto>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getAlbumInfo.');
- }
-
- const queryParameters: any = {};
-
- if (requestParameters.key !== undefined) {
- queryParameters['key'] = requestParameters.key;
- }
-
- if (requestParameters.withoutAssets !== undefined) {
- queryParameters['withoutAssets'] = requestParameters.withoutAssets;
- }
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/album/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => AlbumResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async getAlbumInfo(requestParameters: GetAlbumInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AlbumResponseDto> {
- const response = await this.getAlbumInfoRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async getAllAlbumsRaw(requestParameters: GetAllAlbumsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AlbumResponseDto>>> {
- const queryParameters: any = {};
-
- if (requestParameters.assetId !== undefined) {
- queryParameters['assetId'] = requestParameters.assetId;
- }
-
- if (requestParameters.shared !== undefined) {
- queryParameters['shared'] = requestParameters.shared;
- }
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/album`,
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AlbumResponseDtoFromJSON));
- }
-
- /**
- */
- async getAllAlbums(requestParameters: GetAllAlbumsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AlbumResponseDto>> {
- const response = await this.getAllAlbumsRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async removeAssetFromAlbumRaw(requestParameters: RemoveAssetFromAlbumRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<BulkIdResponseDto>>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling removeAssetFromAlbum.');
- }
-
- if (requestParameters.bulkIdsDto === null || requestParameters.bulkIdsDto === undefined) {
- throw new runtime.RequiredError('bulkIdsDto','Required parameter requestParameters.bulkIdsDto was null or undefined when calling removeAssetFromAlbum.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- headerParameters['Content-Type'] = 'application/json';
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/album/{id}/assets`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'DELETE',
- headers: headerParameters,
- query: queryParameters,
- body: BulkIdsDtoToJSON(requestParameters.bulkIdsDto),
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(BulkIdResponseDtoFromJSON));
- }
-
- /**
- */
- async removeAssetFromAlbum(requestParameters: RemoveAssetFromAlbumRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<BulkIdResponseDto>> {
- const response = await this.removeAssetFromAlbumRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async removeUserFromAlbumRaw(requestParameters: RemoveUserFromAlbumRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling removeUserFromAlbum.');
- }
-
- if (requestParameters.userId === null || requestParameters.userId === undefined) {
- throw new runtime.RequiredError('userId','Required parameter requestParameters.userId was null or undefined when calling removeUserFromAlbum.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/album/{id}/user/{userId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters.userId))),
- method: 'DELETE',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.VoidApiResponse(response);
- }
-
- /**
- */
- async removeUserFromAlbum(requestParameters: RemoveUserFromAlbumRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
- await this.removeUserFromAlbumRaw(requestParameters, initOverrides);
- }
-
- /**
- */
- async updateAlbumInfoRaw(requestParameters: UpdateAlbumInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AlbumResponseDto>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling updateAlbumInfo.');
- }
-
- if (requestParameters.updateAlbumDto === null || requestParameters.updateAlbumDto === undefined) {
- throw new runtime.RequiredError('updateAlbumDto','Required parameter requestParameters.updateAlbumDto was null or undefined when calling updateAlbumInfo.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- headerParameters['Content-Type'] = 'application/json';
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/album/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'PATCH',
- headers: headerParameters,
- query: queryParameters,
- body: UpdateAlbumDtoToJSON(requestParameters.updateAlbumDto),
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => AlbumResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async updateAlbumInfo(requestParameters: UpdateAlbumInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AlbumResponseDto> {
- const response = await this.updateAlbumInfoRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
-}
diff --git a/open-api/typescript-sdk/fetch-client/apis/AssetApi.ts b/open-api/typescript-sdk/fetch-client/apis/AssetApi.ts
deleted file mode 100644
index 38f7babb47..0000000000
--- a/open-api/typescript-sdk/fetch-client/apis/AssetApi.ts
+++ /dev/null
@@ -1,1629 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-import * as runtime from '../runtime';
-import type {
- AssetBulkDeleteDto,
- AssetBulkUpdateDto,
- AssetBulkUploadCheckDto,
- AssetBulkUploadCheckResponseDto,
- AssetFileUploadResponseDto,
- AssetJobsDto,
- AssetOrder,
- AssetResponseDto,
- AssetStatsResponseDto,
- AssetTypeEnum,
- CheckExistingAssetsDto,
- CheckExistingAssetsResponseDto,
- CuratedLocationsResponseDto,
- CuratedObjectsResponseDto,
- MapMarkerResponseDto,
- MemoryLaneResponseDto,
- ThumbnailFormat,
- TimeBucketResponseDto,
- TimeBucketSize,
- UpdateAssetDto,
- UpdateStackParentDto,
-} from '../models/index';
-import {
- AssetBulkDeleteDtoFromJSON,
- AssetBulkDeleteDtoToJSON,
- AssetBulkUpdateDtoFromJSON,
- AssetBulkUpdateDtoToJSON,
- AssetBulkUploadCheckDtoFromJSON,
- AssetBulkUploadCheckDtoToJSON,
- AssetBulkUploadCheckResponseDtoFromJSON,
- AssetBulkUploadCheckResponseDtoToJSON,
- AssetFileUploadResponseDtoFromJSON,
- AssetFileUploadResponseDtoToJSON,
- AssetJobsDtoFromJSON,
- AssetJobsDtoToJSON,
- AssetOrderFromJSON,
- AssetOrderToJSON,
- AssetResponseDtoFromJSON,
- AssetResponseDtoToJSON,
- AssetStatsResponseDtoFromJSON,
- AssetStatsResponseDtoToJSON,
- AssetTypeEnumFromJSON,
- AssetTypeEnumToJSON,
- CheckExistingAssetsDtoFromJSON,
- CheckExistingAssetsDtoToJSON,
- CheckExistingAssetsResponseDtoFromJSON,
- CheckExistingAssetsResponseDtoToJSON,
- CuratedLocationsResponseDtoFromJSON,
- CuratedLocationsResponseDtoToJSON,
- CuratedObjectsResponseDtoFromJSON,
- CuratedObjectsResponseDtoToJSON,
- MapMarkerResponseDtoFromJSON,
- MapMarkerResponseDtoToJSON,
- MemoryLaneResponseDtoFromJSON,
- MemoryLaneResponseDtoToJSON,
- ThumbnailFormatFromJSON,
- ThumbnailFormatToJSON,
- TimeBucketResponseDtoFromJSON,
- TimeBucketResponseDtoToJSON,
- TimeBucketSizeFromJSON,
- TimeBucketSizeToJSON,
- UpdateAssetDtoFromJSON,
- UpdateAssetDtoToJSON,
- UpdateStackParentDtoFromJSON,
- UpdateStackParentDtoToJSON,
-} from '../models/index';
-
-export interface CheckBulkUploadRequest {
- assetBulkUploadCheckDto: AssetBulkUploadCheckDto;
-}
-
-export interface CheckExistingAssetsRequest {
- checkExistingAssetsDto: CheckExistingAssetsDto;
-}
-
-export interface DeleteAssetsRequest {
- assetBulkDeleteDto: AssetBulkDeleteDto;
-}
-
-export interface GetAllAssetsRequest {
- ifNoneMatch?: string;
- isArchived?: boolean;
- isFavorite?: boolean;
- skip?: number;
- take?: number;
- updatedAfter?: Date;
- updatedBefore?: Date;
- userId?: string;
-}
-
-export interface GetAllUserAssetsByDeviceIdRequest {
- deviceId: string;
-}
-
-export interface GetAssetInfoRequest {
- id: string;
- key?: string;
-}
-
-export interface GetAssetStatisticsRequest {
- isArchived?: boolean;
- isFavorite?: boolean;
- isTrashed?: boolean;
-}
-
-export interface GetAssetThumbnailRequest {
- id: string;
- format?: ThumbnailFormat;
- key?: string;
-}
-
-export interface GetMapMarkersRequest {
- fileCreatedAfter?: Date;
- fileCreatedBefore?: Date;
- isArchived?: boolean;
- isFavorite?: boolean;
-}
-
-export interface GetMemoryLaneRequest {
- day: number;
- month: number;
-}
-
-export interface GetRandomRequest {
- count?: number;
-}
-
-export interface GetTimeBucketRequest {
- size: TimeBucketSize;
- timeBucket: string;
- albumId?: string;
- isArchived?: boolean;
- isFavorite?: boolean;
- isTrashed?: boolean;
- key?: string;
- personId?: string;
- userId?: string;
- withPartners?: boolean;
- withStacked?: boolean;
-}
-
-export interface GetTimeBucketsRequest {
- size: TimeBucketSize;
- albumId?: string;
- isArchived?: boolean;
- isFavorite?: boolean;
- isTrashed?: boolean;
- key?: string;
- personId?: string;
- userId?: string;
- withPartners?: boolean;
- withStacked?: boolean;
-}
-
-export interface RunAssetJobsRequest {
- assetJobsDto: AssetJobsDto;
-}
-
-export interface SearchAssetsRequest {
- checksum?: string;
- city?: string;
- country?: string;
- createdAfter?: Date;
- createdBefore?: Date;
- deviceAssetId?: string;
- deviceId?: string;
- encodedVideoPath?: string;
- id?: string;
- isArchived?: boolean;
- isEncoded?: boolean;
- isExternal?: boolean;
- isFavorite?: boolean;
- isMotion?: boolean;
- isOffline?: boolean;
- isReadOnly?: boolean;
- isVisible?: boolean;
- lensModel?: string;
- libraryId?: string;
- make?: string;
- model?: string;
- order?: AssetOrder;
- originalFileName?: string;
- originalPath?: string;
- page?: number;
- resizePath?: string;
- size?: number;
- state?: string;
- takenAfter?: Date;
- takenBefore?: Date;
- trashedAfter?: Date;
- trashedBefore?: Date;
- type?: AssetTypeEnum;
- updatedAfter?: Date;
- updatedBefore?: Date;
- webpPath?: string;
- withDeleted?: boolean;
- withExif?: boolean;
- withPeople?: boolean;
- withStacked?: boolean;
-}
-
-export interface ServeFileRequest {
- id: string;
- isThumb?: boolean;
- isWeb?: boolean;
- key?: string;
-}
-
-export interface UpdateAssetRequest {
- id: string;
- updateAssetDto: UpdateAssetDto;
-}
-
-export interface UpdateAssetsRequest {
- assetBulkUpdateDto: AssetBulkUpdateDto;
-}
-
-export interface UpdateStackParentRequest {
- updateStackParentDto: UpdateStackParentDto;
-}
-
-export interface UploadFileRequest {
- assetData: Blob;
- deviceAssetId: string;
- deviceId: string;
- fileCreatedAt: Date;
- fileModifiedAt: Date;
- key?: string;
- duration?: string;
- isArchived?: boolean;
- isExternal?: boolean;
- isFavorite?: boolean;
- isOffline?: boolean;
- isReadOnly?: boolean;
- isVisible?: boolean;
- libraryId?: string;
- livePhotoData?: Blob;
- sidecarData?: Blob;
-}
-
-/**
- *
- */
-export class AssetApi extends runtime.BaseAPI {
-
- /**
- * Checks if assets exist by checksums
- */
- async checkBulkUploadRaw(requestParameters: CheckBulkUploadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssetBulkUploadCheckResponseDto>> {
- if (requestParameters.assetBulkUploadCheckDto === null || requestParameters.assetBulkUploadCheckDto === undefined) {
- throw new runtime.RequiredError('assetBulkUploadCheckDto','Required parameter requestParameters.assetBulkUploadCheckDto was null or undefined when calling checkBulkUpload.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- headerParameters['Content-Type'] = 'application/json';
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/asset/bulk-upload-check`,
- method: 'POST',
- headers: headerParameters,
- query: queryParameters,
- body: AssetBulkUploadCheckDtoToJSON(requestParameters.assetBulkUploadCheckDto),
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => AssetBulkUploadCheckResponseDtoFromJSON(jsonValue));
- }
-
- /**
- * Checks if assets exist by checksums
- */
- async checkBulkUpload(requestParameters: CheckBulkUploadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssetBulkUploadCheckResponseDto> {
- const response = await this.checkBulkUploadRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- * Checks if multiple assets exist on the server and returns all existing - used by background backup
- */
- async checkExistingAssetsRaw(requestParameters: CheckExistingAssetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CheckExistingAssetsResponseDto>> {
- if (requestParameters.checkExistingAssetsDto === null || requestParameters.checkExistingAssetsDto === undefined) {
- throw new runtime.RequiredError('checkExistingAssetsDto','Required parameter requestParameters.checkExistingAssetsDto was null or undefined when calling checkExistingAssets.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- headerParameters['Content-Type'] = 'application/json';
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/asset/exist`,
- method: 'POST',
- headers: headerParameters,
- query: queryParameters,
- body: CheckExistingAssetsDtoToJSON(requestParameters.checkExistingAssetsDto),
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => CheckExistingAssetsResponseDtoFromJSON(jsonValue));
- }
-
- /**
- * Checks if multiple assets exist on the server and returns all existing - used by background backup
- */
- async checkExistingAssets(requestParameters: CheckExistingAssetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CheckExistingAssetsResponseDto> {
- const response = await this.checkExistingAssetsRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async deleteAssetsRaw(requestParameters: DeleteAssetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
- if (requestParameters.assetBulkDeleteDto === null || requestParameters.assetBulkDeleteDto === undefined) {
- throw new runtime.RequiredError('assetBulkDeleteDto','Required parameter requestParameters.assetBulkDeleteDto was null or undefined when calling deleteAssets.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- headerParameters['Content-Type'] = 'application/json';
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/asset`,
- method: 'DELETE',
- headers: headerParameters,
- query: queryParameters,
- body: AssetBulkDeleteDtoToJSON(requestParameters.assetBulkDeleteDto),
- }, initOverrides);
-
- return new runtime.VoidApiResponse(response);
- }
-
- /**
- */
- async deleteAssets(requestParameters: DeleteAssetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
- await this.deleteAssetsRaw(requestParameters, initOverrides);
- }
-
- /**
- * Get all AssetEntity belong to the user
- */
- async getAllAssetsRaw(requestParameters: GetAllAssetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssetResponseDto>>> {
- const queryParameters: any = {};
-
- if (requestParameters.isArchived !== undefined) {
- queryParameters['isArchived'] = requestParameters.isArchived;
- }
-
- if (requestParameters.isFavorite !== undefined) {
- queryParameters['isFavorite'] = requestParameters.isFavorite;
- }
-
- if (requestParameters.skip !== undefined) {
- queryParameters['skip'] = requestParameters.skip;
- }
-
- if (requestParameters.take !== undefined) {
- queryParameters['take'] = requestParameters.take;
- }
-
- if (requestParameters.updatedAfter !== undefined) {
- queryParameters['updatedAfter'] = (requestParameters.updatedAfter as any).toISOString();
- }
-
- if (requestParameters.updatedBefore !== undefined) {
- queryParameters['updatedBefore'] = (requestParameters.updatedBefore as any).toISOString();
- }
-
- if (requestParameters.userId !== undefined) {
- queryParameters['userId'] = requestParameters.userId;
- }
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (requestParameters.ifNoneMatch !== undefined && requestParameters.ifNoneMatch !== null) {
- headerParameters['if-none-match'] = String(requestParameters.ifNoneMatch);
- }
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/asset`,
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AssetResponseDtoFromJSON));
- }
-
- /**
- * Get all AssetEntity belong to the user
- */
- async getAllAssets(requestParameters: GetAllAssetsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssetResponseDto>> {
- const response = await this.getAllAssetsRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- * Get all asset of a device that are in the database, ID only.
- */
- async getAllUserAssetsByDeviceIdRaw(requestParameters: GetAllUserAssetsByDeviceIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<string>>> {
- if (requestParameters.deviceId === null || requestParameters.deviceId === undefined) {
- throw new runtime.RequiredError('deviceId','Required parameter requestParameters.deviceId was null or undefined when calling getAllUserAssetsByDeviceId.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/asset/device/{deviceId}`.replace(`{${"deviceId"}}`, encodeURIComponent(String(requestParameters.deviceId))),
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse<any>(response);
- }
-
- /**
- * Get all asset of a device that are in the database, ID only.
- */
- async getAllUserAssetsByDeviceId(requestParameters: GetAllUserAssetsByDeviceIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<string>> {
- const response = await this.getAllUserAssetsByDeviceIdRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async getAssetInfoRaw(requestParameters: GetAssetInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssetResponseDto>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getAssetInfo.');
- }
-
- const queryParameters: any = {};
-
- if (requestParameters.key !== undefined) {
- queryParameters['key'] = requestParameters.key;
- }
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/asset/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => AssetResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async getAssetInfo(requestParameters: GetAssetInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssetResponseDto> {
- const response = await this.getAssetInfoRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async getAssetSearchTermsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<string>>> {
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/asset/search-terms`,
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse<any>(response);
- }
-
- /**
- */
- async getAssetSearchTerms(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<string>> {
- const response = await this.getAssetSearchTermsRaw(initOverrides);
- return await response.value();
- }
-
- /**
- */
- async getAssetStatisticsRaw(requestParameters: GetAssetStatisticsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssetStatsResponseDto>> {
- const queryParameters: any = {};
-
- if (requestParameters.isArchived !== undefined) {
- queryParameters['isArchived'] = requestParameters.isArchived;
- }
-
- if (requestParameters.isFavorite !== undefined) {
- queryParameters['isFavorite'] = requestParameters.isFavorite;
- }
-
- if (requestParameters.isTrashed !== undefined) {
- queryParameters['isTrashed'] = requestParameters.isTrashed;
- }
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/asset/statistics`,
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => AssetStatsResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async getAssetStatistics(requestParameters: GetAssetStatisticsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssetStatsResponseDto> {
- const response = await this.getAssetStatisticsRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async getAssetThumbnailRaw(requestParameters: GetAssetThumbnailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getAssetThumbnail.');
- }
-
- const queryParameters: any = {};
-
- if (requestParameters.format !== undefined) {
- queryParameters['format'] = requestParameters.format;
- }
-
- if (requestParameters.key !== undefined) {
- queryParameters['key'] = requestParameters.key;
- }
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/asset/thumbnail/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.BlobApiResponse(response);
- }
-
- /**
- */
- async getAssetThumbnail(requestParameters: GetAssetThumbnailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob> {
- const response = await this.getAssetThumbnailRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async getCuratedLocationsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<CuratedLocationsResponseDto>>> {
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/asset/curated-locations`,
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(CuratedLocationsResponseDtoFromJSON));
- }
-
- /**
- */
- async getCuratedLocations(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<CuratedLocationsResponseDto>> {
- const response = await this.getCuratedLocationsRaw(initOverrides);
- return await response.value();
- }
-
- /**
- */
- async getCuratedObjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<CuratedObjectsResponseDto>>> {
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/asset/curated-objects`,
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(CuratedObjectsResponseDtoFromJSON));
- }
-
- /**
- */
- async getCuratedObjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<CuratedObjectsResponseDto>> {
- const response = await this.getCuratedObjectsRaw(initOverrides);
- return await response.value();
- }
-
- /**
- */
- async getMapMarkersRaw(requestParameters: GetMapMarkersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<MapMarkerResponseDto>>> {
- const queryParameters: any = {};
-
- if (requestParameters.fileCreatedAfter !== undefined) {
- queryParameters['fileCreatedAfter'] = (requestParameters.fileCreatedAfter as any).toISOString();
- }
-
- if (requestParameters.fileCreatedBefore !== undefined) {
- queryParameters['fileCreatedBefore'] = (requestParameters.fileCreatedBefore as any).toISOString();
- }
-
- if (requestParameters.isArchived !== undefined) {
- queryParameters['isArchived'] = requestParameters.isArchived;
- }
-
- if (requestParameters.isFavorite !== undefined) {
- queryParameters['isFavorite'] = requestParameters.isFavorite;
- }
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/asset/map-marker`,
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(MapMarkerResponseDtoFromJSON));
- }
-
- /**
- */
- async getMapMarkers(requestParameters: GetMapMarkersRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<MapMarkerResponseDto>> {
- const response = await this.getMapMarkersRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async getMemoryLaneRaw(requestParameters: GetMemoryLaneRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<MemoryLaneResponseDto>>> {
- if (requestParameters.day === null || requestParameters.day === undefined) {
- throw new runtime.RequiredError('day','Required parameter requestParameters.day was null or undefined when calling getMemoryLane.');
- }
-
- if (requestParameters.month === null || requestParameters.month === undefined) {
- throw new runtime.RequiredError('month','Required parameter requestParameters.month was null or undefined when calling getMemoryLane.');
- }
-
- const queryParameters: any = {};
-
- if (requestParameters.day !== undefined) {
- queryParameters['day'] = requestParameters.day;
- }
-
- if (requestParameters.month !== undefined) {
- queryParameters['month'] = requestParameters.month;
- }
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/asset/memory-lane`,
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(MemoryLaneResponseDtoFromJSON));
- }
-
- /**
- */
- async getMemoryLane(requestParameters: GetMemoryLaneRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<MemoryLaneResponseDto>> {
- const response = await this.getMemoryLaneRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async getRandomRaw(requestParameters: GetRandomRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssetResponseDto>>> {
- const queryParameters: any = {};
-
- if (requestParameters.count !== undefined) {
- queryParameters['count'] = requestParameters.count;
- }
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/asset/random`,
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AssetResponseDtoFromJSON));
- }
-
- /**
- */
- async getRandom(requestParameters: GetRandomRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssetResponseDto>> {
- const response = await this.getRandomRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async getTimeBucketRaw(requestParameters: GetTimeBucketRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssetResponseDto>>> {
- if (requestParameters.size === null || requestParameters.size === undefined) {
- throw new runtime.RequiredError('size','Required parameter requestParameters.size was null or undefined when calling getTimeBucket.');
- }
-
- if (requestParameters.timeBucket === null || requestParameters.timeBucket === undefined) {
- throw new runtime.RequiredError('timeBucket','Required parameter requestParameters.timeBucket was null or undefined when calling getTimeBucket.');
- }
-
- const queryParameters: any = {};
-
- if (requestParameters.albumId !== undefined) {
- queryParameters['albumId'] = requestParameters.albumId;
- }
-
- if (requestParameters.isArchived !== undefined) {
- queryParameters['isArchived'] = requestParameters.isArchived;
- }
-
- if (requestParameters.isFavorite !== undefined) {
- queryParameters['isFavorite'] = requestParameters.isFavorite;
- }
-
- if (requestParameters.isTrashed !== undefined) {
- queryParameters['isTrashed'] = requestParameters.isTrashed;
- }
-
- if (requestParameters.key !== undefined) {
- queryParameters['key'] = requestParameters.key;
- }
-
- if (requestParameters.personId !== undefined) {
- queryParameters['personId'] = requestParameters.personId;
- }
-
- if (requestParameters.size !== undefined) {
- queryParameters['size'] = requestParameters.size;
- }
-
- if (requestParameters.timeBucket !== undefined) {
- queryParameters['timeBucket'] = requestParameters.timeBucket;
- }
-
- if (requestParameters.userId !== undefined) {
- queryParameters['userId'] = requestParameters.userId;
- }
-
- if (requestParameters.withPartners !== undefined) {
- queryParameters['withPartners'] = requestParameters.withPartners;
- }
-
- if (requestParameters.withStacked !== undefined) {
- queryParameters['withStacked'] = requestParameters.withStacked;
- }
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/asset/time-bucket`,
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AssetResponseDtoFromJSON));
- }
-
- /**
- */
- async getTimeBucket(requestParameters: GetTimeBucketRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssetResponseDto>> {
- const response = await this.getTimeBucketRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async getTimeBucketsRaw(requestParameters: GetTimeBucketsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<TimeBucketResponseDto>>> {
- if (requestParameters.size === null || requestParameters.size === undefined) {
- throw new runtime.RequiredError('size','Required parameter requestParameters.size was null or undefined when calling getTimeBuckets.');
- }
-
- const queryParameters: any = {};
-
- if (requestParameters.albumId !== undefined) {
- queryParameters['albumId'] = requestParameters.albumId;
- }
-
- if (requestParameters.isArchived !== undefined) {
- queryParameters['isArchived'] = requestParameters.isArchived;
- }
-
- if (requestParameters.isFavorite !== undefined) {
- queryParameters['isFavorite'] = requestParameters.isFavorite;
- }
-
- if (requestParameters.isTrashed !== undefined) {
- queryParameters['isTrashed'] = requestParameters.isTrashed;
- }
-
- if (requestParameters.key !== undefined) {
- queryParameters['key'] = requestParameters.key;
- }
-
- if (requestParameters.personId !== undefined) {
- queryParameters['personId'] = requestParameters.personId;
- }
-
- if (requestParameters.size !== undefined) {
- queryParameters['size'] = requestParameters.size;
- }
-
- if (requestParameters.userId !== undefined) {
- queryParameters['userId'] = requestParameters.userId;
- }
-
- if (requestParameters.withPartners !== undefined) {
- queryParameters['withPartners'] = requestParameters.withPartners;
- }
-
- if (requestParameters.withStacked !== undefined) {
- queryParameters['withStacked'] = requestParameters.withStacked;
- }
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/asset/time-buckets`,
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(TimeBucketResponseDtoFromJSON));
- }
-
- /**
- */
- async getTimeBuckets(requestParameters: GetTimeBucketsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<TimeBucketResponseDto>> {
- const response = await this.getTimeBucketsRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async runAssetJobsRaw(requestParameters: RunAssetJobsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
- if (requestParameters.assetJobsDto === null || requestParameters.assetJobsDto === undefined) {
- throw new runtime.RequiredError('assetJobsDto','Required parameter requestParameters.assetJobsDto was null or undefined when calling runAssetJobs.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- headerParameters['Content-Type'] = 'application/json';
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/asset/jobs`,
- method: 'POST',
- headers: headerParameters,
- query: queryParameters,
- body: AssetJobsDtoToJSON(requestParameters.assetJobsDto),
- }, initOverrides);
-
- return new runtime.VoidApiResponse(response);
- }
-
- /**
- */
- async runAssetJobs(requestParameters: RunAssetJobsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
- await this.runAssetJobsRaw(requestParameters, initOverrides);
- }
-
- /**
- */
- async searchAssetsRaw(requestParameters: SearchAssetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssetResponseDto>>> {
- const queryParameters: any = {};
-
- if (requestParameters.checksum !== undefined) {
- queryParameters['checksum'] = requestParameters.checksum;
- }
-
- if (requestParameters.city !== undefined) {
- queryParameters['city'] = requestParameters.city;
- }
-
- if (requestParameters.country !== undefined) {
- queryParameters['country'] = requestParameters.country;
- }
-
- if (requestParameters.createdAfter !== undefined) {
- queryParameters['createdAfter'] = (requestParameters.createdAfter as any).toISOString();
- }
-
- if (requestParameters.createdBefore !== undefined) {
- queryParameters['createdBefore'] = (requestParameters.createdBefore as any).toISOString();
- }
-
- if (requestParameters.deviceAssetId !== undefined) {
- queryParameters['deviceAssetId'] = requestParameters.deviceAssetId;
- }
-
- if (requestParameters.deviceId !== undefined) {
- queryParameters['deviceId'] = requestParameters.deviceId;
- }
-
- if (requestParameters.encodedVideoPath !== undefined) {
- queryParameters['encodedVideoPath'] = requestParameters.encodedVideoPath;
- }
-
- if (requestParameters.id !== undefined) {
- queryParameters['id'] = requestParameters.id;
- }
-
- if (requestParameters.isArchived !== undefined) {
- queryParameters['isArchived'] = requestParameters.isArchived;
- }
-
- if (requestParameters.isEncoded !== undefined) {
- queryParameters['isEncoded'] = requestParameters.isEncoded;
- }
-
- if (requestParameters.isExternal !== undefined) {
- queryParameters['isExternal'] = requestParameters.isExternal;
- }
-
- if (requestParameters.isFavorite !== undefined) {
- queryParameters['isFavorite'] = requestParameters.isFavorite;
- }
-
- if (requestParameters.isMotion !== undefined) {
- queryParameters['isMotion'] = requestParameters.isMotion;
- }
-
- if (requestParameters.isOffline !== undefined) {
- queryParameters['isOffline'] = requestParameters.isOffline;
- }
-
- if (requestParameters.isReadOnly !== undefined) {
- queryParameters['isReadOnly'] = requestParameters.isReadOnly;
- }
-
- if (requestParameters.isVisible !== undefined) {
- queryParameters['isVisible'] = requestParameters.isVisible;
- }
-
- if (requestParameters.lensModel !== undefined) {
- queryParameters['lensModel'] = requestParameters.lensModel;
- }
-
- if (requestParameters.libraryId !== undefined) {
- queryParameters['libraryId'] = requestParameters.libraryId;
- }
-
- if (requestParameters.make !== undefined) {
- queryParameters['make'] = requestParameters.make;
- }
-
- if (requestParameters.model !== undefined) {
- queryParameters['model'] = requestParameters.model;
- }
-
- if (requestParameters.order !== undefined) {
- queryParameters['order'] = requestParameters.order;
- }
-
- if (requestParameters.originalFileName !== undefined) {
- queryParameters['originalFileName'] = requestParameters.originalFileName;
- }
-
- if (requestParameters.originalPath !== undefined) {
- queryParameters['originalPath'] = requestParameters.originalPath;
- }
-
- if (requestParameters.page !== undefined) {
- queryParameters['page'] = requestParameters.page;
- }
-
- if (requestParameters.resizePath !== undefined) {
- queryParameters['resizePath'] = requestParameters.resizePath;
- }
-
- if (requestParameters.size !== undefined) {
- queryParameters['size'] = requestParameters.size;
- }
-
- if (requestParameters.state !== undefined) {
- queryParameters['state'] = requestParameters.state;
- }
-
- if (requestParameters.takenAfter !== undefined) {
- queryParameters['takenAfter'] = (requestParameters.takenAfter as any).toISOString();
- }
-
- if (requestParameters.takenBefore !== undefined) {
- queryParameters['takenBefore'] = (requestParameters.takenBefore as any).toISOString();
- }
-
- if (requestParameters.trashedAfter !== undefined) {
- queryParameters['trashedAfter'] = (requestParameters.trashedAfter as any).toISOString();
- }
-
- if (requestParameters.trashedBefore !== undefined) {
- queryParameters['trashedBefore'] = (requestParameters.trashedBefore as any).toISOString();
- }
-
- if (requestParameters.type !== undefined) {
- queryParameters['type'] = requestParameters.type;
- }
-
- if (requestParameters.updatedAfter !== undefined) {
- queryParameters['updatedAfter'] = (requestParameters.updatedAfter as any).toISOString();
- }
-
- if (requestParameters.updatedBefore !== undefined) {
- queryParameters['updatedBefore'] = (requestParameters.updatedBefore as any).toISOString();
- }
-
- if (requestParameters.webpPath !== undefined) {
- queryParameters['webpPath'] = requestParameters.webpPath;
- }
-
- if (requestParameters.withDeleted !== undefined) {
- queryParameters['withDeleted'] = requestParameters.withDeleted;
- }
-
- if (requestParameters.withExif !== undefined) {
- queryParameters['withExif'] = requestParameters.withExif;
- }
-
- if (requestParameters.withPeople !== undefined) {
- queryParameters['withPeople'] = requestParameters.withPeople;
- }
-
- if (requestParameters.withStacked !== undefined) {
- queryParameters['withStacked'] = requestParameters.withStacked;
- }
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/assets`,
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AssetResponseDtoFromJSON));
- }
-
- /**
- */
- async searchAssets(requestParameters: SearchAssetsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssetResponseDto>> {
- const response = await this.searchAssetsRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async serveFileRaw(requestParameters: ServeFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling serveFile.');
- }
-
- const queryParameters: any = {};
-
- if (requestParameters.isThumb !== undefined) {
- queryParameters['isThumb'] = requestParameters.isThumb;
- }
-
- if (requestParameters.isWeb !== undefined) {
- queryParameters['isWeb'] = requestParameters.isWeb;
- }
-
- if (requestParameters.key !== undefined) {
- queryParameters['key'] = requestParameters.key;
- }
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/asset/file/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.BlobApiResponse(response);
- }
-
- /**
- */
- async serveFile(requestParameters: ServeFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob> {
- const response = await this.serveFileRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async updateAssetRaw(requestParameters: UpdateAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssetResponseDto>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling updateAsset.');
- }
-
- if (requestParameters.updateAssetDto === null || requestParameters.updateAssetDto === undefined) {
- throw new runtime.RequiredError('updateAssetDto','Required parameter requestParameters.updateAssetDto was null or undefined when calling updateAsset.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- headerParameters['Content-Type'] = 'application/json';
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/asset/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'PUT',
- headers: headerParameters,
- query: queryParameters,
- body: UpdateAssetDtoToJSON(requestParameters.updateAssetDto),
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => AssetResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async updateAsset(requestParameters: UpdateAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssetResponseDto> {
- const response = await this.updateAssetRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async updateAssetsRaw(requestParameters: UpdateAssetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
- if (requestParameters.assetBulkUpdateDto === null || requestParameters.assetBulkUpdateDto === undefined) {
- throw new runtime.RequiredError('assetBulkUpdateDto','Required parameter requestParameters.assetBulkUpdateDto was null or undefined when calling updateAssets.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- headerParameters['Content-Type'] = 'application/json';
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/asset`,
- method: 'PUT',
- headers: headerParameters,
- query: queryParameters,
- body: AssetBulkUpdateDtoToJSON(requestParameters.assetBulkUpdateDto),
- }, initOverrides);
-
- return new runtime.VoidApiResponse(response);
- }
-
- /**
- */
- async updateAssets(requestParameters: UpdateAssetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
- await this.updateAssetsRaw(requestParameters, initOverrides);
- }
-
- /**
- */
- async updateStackParentRaw(requestParameters: UpdateStackParentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
- if (requestParameters.updateStackParentDto === null || requestParameters.updateStackParentDto === undefined) {
- throw new runtime.RequiredError('updateStackParentDto','Required parameter requestParameters.updateStackParentDto was null or undefined when calling updateStackParent.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- headerParameters['Content-Type'] = 'application/json';
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/asset/stack/parent`,
- method: 'PUT',
- headers: headerParameters,
- query: queryParameters,
- body: UpdateStackParentDtoToJSON(requestParameters.updateStackParentDto),
- }, initOverrides);
-
- return new runtime.VoidApiResponse(response);
- }
-
- /**
- */
- async updateStackParent(requestParameters: UpdateStackParentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
- await this.updateStackParentRaw(requestParameters, initOverrides);
- }
-
- /**
- */
- async uploadFileRaw(requestParameters: UploadFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssetFileUploadResponseDto>> {
- if (requestParameters.assetData === null || requestParameters.assetData === undefined) {
- throw new runtime.RequiredError('assetData','Required parameter requestParameters.assetData was null or undefined when calling uploadFile.');
- }
-
- if (requestParameters.deviceAssetId === null || requestParameters.deviceAssetId === undefined) {
- throw new runtime.RequiredError('deviceAssetId','Required parameter requestParameters.deviceAssetId was null or undefined when calling uploadFile.');
- }
-
- if (requestParameters.deviceId === null || requestParameters.deviceId === undefined) {
- throw new runtime.RequiredError('deviceId','Required parameter requestParameters.deviceId was null or undefined when calling uploadFile.');
- }
-
- if (requestParameters.fileCreatedAt === null || requestParameters.fileCreatedAt === undefined) {
- throw new runtime.RequiredError('fileCreatedAt','Required parameter requestParameters.fileCreatedAt was null or undefined when calling uploadFile.');
- }
-
- if (requestParameters.fileModifiedAt === null || requestParameters.fileModifiedAt === undefined) {
- throw new runtime.RequiredError('fileModifiedAt','Required parameter requestParameters.fileModifiedAt was null or undefined when calling uploadFile.');
- }
-
- const queryParameters: any = {};
-
- if (requestParameters.key !== undefined) {
- queryParameters['key'] = requestParameters.key;
- }
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const consumes: runtime.Consume[] = [
- { contentType: 'multipart/form-data' },
- ];
- // @ts-ignore: canConsumeForm may be unused
- const canConsumeForm = runtime.canConsumeForm(consumes);
-
- let formParams: { append(param: string, value: any): any };
- let useForm = false;
- // use FormData to transmit files using content-type "multipart/form-data"
- useForm = canConsumeForm;
- // use FormData to transmit files using content-type "multipart/form-data"
- useForm = canConsumeForm;
- // use FormData to transmit files using content-type "multipart/form-data"
- useForm = canConsumeForm;
- if (useForm) {
- formParams = new FormData();
- } else {
- formParams = new URLSearchParams();
- }
-
- if (requestParameters.assetData !== undefined) {
- formParams.append('assetData', requestParameters.assetData as any);
- }
-
- if (requestParameters.deviceAssetId !== undefined) {
- formParams.append('deviceAssetId', requestParameters.deviceAssetId as any);
- }
-
- if (requestParameters.deviceId !== undefined) {
- formParams.append('deviceId', requestParameters.deviceId as any);
- }
-
- if (requestParameters.duration !== undefined) {
- formParams.append('duration', requestParameters.duration as any);
- }
-
- if (requestParameters.fileCreatedAt !== undefined) {
- formParams.append('fileCreatedAt', requestParameters.fileCreatedAt as any);
- }
-
- if (requestParameters.fileModifiedAt !== undefined) {
- formParams.append('fileModifiedAt', requestParameters.fileModifiedAt as any);
- }
-
- if (requestParameters.isArchived !== undefined) {
- formParams.append('isArchived', requestParameters.isArchived as any);
- }
-
- if (requestParameters.isExternal !== undefined) {
- formParams.append('isExternal', requestParameters.isExternal as any);
- }
-
- if (requestParameters.isFavorite !== undefined) {
- formParams.append('isFavorite', requestParameters.isFavorite as any);
- }
-
- if (requestParameters.isOffline !== undefined) {
- formParams.append('isOffline', requestParameters.isOffline as any);
- }
-
- if (requestParameters.isReadOnly !== undefined) {
- formParams.append('isReadOnly', requestParameters.isReadOnly as any);
- }
-
- if (requestParameters.isVisible !== undefined) {
- formParams.append('isVisible', requestParameters.isVisible as any);
- }
-
- if (requestParameters.libraryId !== undefined) {
- formParams.append('libraryId', requestParameters.libraryId as any);
- }
-
- if (requestParameters.livePhotoData !== undefined) {
- formParams.append('livePhotoData', requestParameters.livePhotoData as any);
- }
-
- if (requestParameters.sidecarData !== undefined) {
- formParams.append('sidecarData', requestParameters.sidecarData as any);
- }
-
- const response = await this.request({
- path: `/asset/upload`,
- method: 'POST',
- headers: headerParameters,
- query: queryParameters,
- body: formParams,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => AssetFileUploadResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async uploadFile(requestParameters: UploadFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssetFileUploadResponseDto> {
- const response = await this.uploadFileRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
-}
diff --git a/open-api/typescript-sdk/fetch-client/apis/AuditApi.ts b/open-api/typescript-sdk/fetch-client/apis/AuditApi.ts
deleted file mode 100644
index 5c8fd0f4a3..0000000000
--- a/open-api/typescript-sdk/fetch-client/apis/AuditApi.ts
+++ /dev/null
@@ -1,236 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-import * as runtime from '../runtime';
-import type {
- AuditDeletesResponseDto,
- EntityType,
- FileChecksumDto,
- FileChecksumResponseDto,
- FileReportDto,
- FileReportFixDto,
-} from '../models/index';
-import {
- AuditDeletesResponseDtoFromJSON,
- AuditDeletesResponseDtoToJSON,
- EntityTypeFromJSON,
- EntityTypeToJSON,
- FileChecksumDtoFromJSON,
- FileChecksumDtoToJSON,
- FileChecksumResponseDtoFromJSON,
- FileChecksumResponseDtoToJSON,
- FileReportDtoFromJSON,
- FileReportDtoToJSON,
- FileReportFixDtoFromJSON,
- FileReportFixDtoToJSON,
-} from '../models/index';
-
-export interface FixAuditFilesRequest {
- fileReportFixDto: FileReportFixDto;
-}
-
-export interface GetAuditDeletesRequest {
- after: Date;
- entityType: EntityType;
- userId?: string;
-}
-
-export interface GetFileChecksumsRequest {
- fileChecksumDto: FileChecksumDto;
-}
-
-/**
- *
- */
-export class AuditApi extends runtime.BaseAPI {
-
- /**
- */
- async fixAuditFilesRaw(requestParameters: FixAuditFilesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
- if (requestParameters.fileReportFixDto === null || requestParameters.fileReportFixDto === undefined) {
- throw new runtime.RequiredError('fileReportFixDto','Required parameter requestParameters.fileReportFixDto was null or undefined when calling fixAuditFiles.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- headerParameters['Content-Type'] = 'application/json';
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/audit/file-report/fix`,
- method: 'POST',
- headers: headerParameters,
- query: queryParameters,
- body: FileReportFixDtoToJSON(requestParameters.fileReportFixDto),
- }, initOverrides);
-
- return new runtime.VoidApiResponse(response);
- }
-
- /**
- */
- async fixAuditFiles(requestParameters: FixAuditFilesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
- await this.fixAuditFilesRaw(requestParameters, initOverrides);
- }
-
- /**
- */
- async getAuditDeletesRaw(requestParameters: GetAuditDeletesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AuditDeletesResponseDto>> {
- if (requestParameters.after === null || requestParameters.after === undefined) {
- throw new runtime.RequiredError('after','Required parameter requestParameters.after was null or undefined when calling getAuditDeletes.');
- }
-
- if (requestParameters.entityType === null || requestParameters.entityType === undefined) {
- throw new runtime.RequiredError('entityType','Required parameter requestParameters.entityType was null or undefined when calling getAuditDeletes.');
- }
-
- const queryParameters: any = {};
-
- if (requestParameters.after !== undefined) {
- queryParameters['after'] = (requestParameters.after as any).toISOString();
- }
-
- if (requestParameters.entityType !== undefined) {
- queryParameters['entityType'] = requestParameters.entityType;
- }
-
- if (requestParameters.userId !== undefined) {
- queryParameters['userId'] = requestParameters.userId;
- }
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/audit/deletes`,
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => AuditDeletesResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async getAuditDeletes(requestParameters: GetAuditDeletesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AuditDeletesResponseDto> {
- const response = await this.getAuditDeletesRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async getAuditFilesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FileReportDto>> {
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/audit/file-report`,
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => FileReportDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async getAuditFiles(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileReportDto> {
- const response = await this.getAuditFilesRaw(initOverrides);
- return await response.value();
- }
-
- /**
- */
- async getFileChecksumsRaw(requestParameters: GetFileChecksumsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<FileChecksumResponseDto>>> {
- if (requestParameters.fileChecksumDto === null || requestParameters.fileChecksumDto === undefined) {
- throw new runtime.RequiredError('fileChecksumDto','Required parameter requestParameters.fileChecksumDto was null or undefined when calling getFileChecksums.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- headerParameters['Content-Type'] = 'application/json';
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/audit/file-report/checksum`,
- method: 'POST',
- headers: headerParameters,
- query: queryParameters,
- body: FileChecksumDtoToJSON(requestParameters.fileChecksumDto),
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(FileChecksumResponseDtoFromJSON));
- }
-
- /**
- */
- async getFileChecksums(requestParameters: GetFileChecksumsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<FileChecksumResponseDto>> {
- const response = await this.getFileChecksumsRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
-}
diff --git a/open-api/typescript-sdk/fetch-client/apis/AuthenticationApi.ts b/open-api/typescript-sdk/fetch-client/apis/AuthenticationApi.ts
deleted file mode 100644
index 3580a35a59..0000000000
--- a/open-api/typescript-sdk/fetch-client/apis/AuthenticationApi.ts
+++ /dev/null
@@ -1,354 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-import * as runtime from '../runtime';
-import type {
- AuthDeviceResponseDto,
- ChangePasswordDto,
- LoginCredentialDto,
- LoginResponseDto,
- LogoutResponseDto,
- SignUpDto,
- UserResponseDto,
- ValidateAccessTokenResponseDto,
-} from '../models/index';
-import {
- AuthDeviceResponseDtoFromJSON,
- AuthDeviceResponseDtoToJSON,
- ChangePasswordDtoFromJSON,
- ChangePasswordDtoToJSON,
- LoginCredentialDtoFromJSON,
- LoginCredentialDtoToJSON,
- LoginResponseDtoFromJSON,
- LoginResponseDtoToJSON,
- LogoutResponseDtoFromJSON,
- LogoutResponseDtoToJSON,
- SignUpDtoFromJSON,
- SignUpDtoToJSON,
- UserResponseDtoFromJSON,
- UserResponseDtoToJSON,
- ValidateAccessTokenResponseDtoFromJSON,
- ValidateAccessTokenResponseDtoToJSON,
-} from '../models/index';
-
-export interface ChangePasswordRequest {
- changePasswordDto: ChangePasswordDto;
-}
-
-export interface LoginRequest {
- loginCredentialDto: LoginCredentialDto;
-}
-
-export interface LogoutAuthDeviceRequest {
- id: string;
-}
-
-export interface SignUpAdminRequest {
- signUpDto: SignUpDto;
-}
-
-/**
- *
- */
-export class AuthenticationApi extends runtime.BaseAPI {
-
- /**
- */
- async changePasswordRaw(requestParameters: ChangePasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponseDto>> {
- if (requestParameters.changePasswordDto === null || requestParameters.changePasswordDto === undefined) {
- throw new runtime.RequiredError('changePasswordDto','Required parameter requestParameters.changePasswordDto was null or undefined when calling changePassword.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- headerParameters['Content-Type'] = 'application/json';
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/auth/change-password`,
- method: 'POST',
- headers: headerParameters,
- query: queryParameters,
- body: ChangePasswordDtoToJSON(requestParameters.changePasswordDto),
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => UserResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async changePassword(requestParameters: ChangePasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponseDto> {
- const response = await this.changePasswordRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async getAuthDevicesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AuthDeviceResponseDto>>> {
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/auth/devices`,
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AuthDeviceResponseDtoFromJSON));
- }
-
- /**
- */
- async getAuthDevices(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AuthDeviceResponseDto>> {
- const response = await this.getAuthDevicesRaw(initOverrides);
- return await response.value();
- }
-
- /**
- */
- async loginRaw(requestParameters: LoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LoginResponseDto>> {
- if (requestParameters.loginCredentialDto === null || requestParameters.loginCredentialDto === undefined) {
- throw new runtime.RequiredError('loginCredentialDto','Required parameter requestParameters.loginCredentialDto was null or undefined when calling login.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- headerParameters['Content-Type'] = 'application/json';
-
- const response = await this.request({
- path: `/auth/login`,
- method: 'POST',
- headers: headerParameters,
- query: queryParameters,
- body: LoginCredentialDtoToJSON(requestParameters.loginCredentialDto),
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => LoginResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async login(requestParameters: LoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LoginResponseDto> {
- const response = await this.loginRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async logoutRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LogoutResponseDto>> {
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/auth/logout`,
- method: 'POST',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => LogoutResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async logout(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LogoutResponseDto> {
- const response = await this.logoutRaw(initOverrides);
- return await response.value();
- }
-
- /**
- */
- async logoutAuthDeviceRaw(requestParameters: LogoutAuthDeviceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling logoutAuthDevice.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/auth/devices/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'DELETE',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.VoidApiResponse(response);
- }
-
- /**
- */
- async logoutAuthDevice(requestParameters: LogoutAuthDeviceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
- await this.logoutAuthDeviceRaw(requestParameters, initOverrides);
- }
-
- /**
- */
- async logoutAuthDevicesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/auth/devices`,
- method: 'DELETE',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.VoidApiResponse(response);
- }
-
- /**
- */
- async logoutAuthDevices(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
- await this.logoutAuthDevicesRaw(initOverrides);
- }
-
- /**
- */
- async signUpAdminRaw(requestParameters: SignUpAdminRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponseDto>> {
- if (requestParameters.signUpDto === null || requestParameters.signUpDto === undefined) {
- throw new runtime.RequiredError('signUpDto','Required parameter requestParameters.signUpDto was null or undefined when calling signUpAdmin.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- headerParameters['Content-Type'] = 'application/json';
-
- const response = await this.request({
- path: `/auth/admin-sign-up`,
- method: 'POST',
- headers: headerParameters,
- query: queryParameters,
- body: SignUpDtoToJSON(requestParameters.signUpDto),
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => UserResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async signUpAdmin(requestParameters: SignUpAdminRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponseDto> {
- const response = await this.signUpAdminRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async validateAccessTokenRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ValidateAccessTokenResponseDto>> {
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/auth/validateToken`,
- method: 'POST',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => ValidateAccessTokenResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async validateAccessToken(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ValidateAccessTokenResponseDto> {
- const response = await this.validateAccessTokenRaw(initOverrides);
- return await response.value();
- }
-
-}
diff --git a/open-api/typescript-sdk/fetch-client/apis/DownloadApi.ts b/open-api/typescript-sdk/fetch-client/apis/DownloadApi.ts
deleted file mode 100644
index 7884b9848f..0000000000
--- a/open-api/typescript-sdk/fetch-client/apis/DownloadApi.ts
+++ /dev/null
@@ -1,189 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-import * as runtime from '../runtime';
-import type {
- AssetIdsDto,
- DownloadInfoDto,
- DownloadResponseDto,
-} from '../models/index';
-import {
- AssetIdsDtoFromJSON,
- AssetIdsDtoToJSON,
- DownloadInfoDtoFromJSON,
- DownloadInfoDtoToJSON,
- DownloadResponseDtoFromJSON,
- DownloadResponseDtoToJSON,
-} from '../models/index';
-
-export interface DownloadArchiveRequest {
- assetIdsDto: AssetIdsDto;
- key?: string;
-}
-
-export interface DownloadFileRequest {
- id: string;
- key?: string;
-}
-
-export interface GetDownloadInfoRequest {
- downloadInfoDto: DownloadInfoDto;
- key?: string;
-}
-
-/**
- *
- */
-export class DownloadApi extends runtime.BaseAPI {
-
- /**
- */
- async downloadArchiveRaw(requestParameters: DownloadArchiveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>> {
- if (requestParameters.assetIdsDto === null || requestParameters.assetIdsDto === undefined) {
- throw new runtime.RequiredError('assetIdsDto','Required parameter requestParameters.assetIdsDto was null or undefined when calling downloadArchive.');
- }
-
- const queryParameters: any = {};
-
- if (requestParameters.key !== undefined) {
- queryParameters['key'] = requestParameters.key;
- }
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- headerParameters['Content-Type'] = 'application/json';
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/download/archive`,
- method: 'POST',
- headers: headerParameters,
- query: queryParameters,
- body: AssetIdsDtoToJSON(requestParameters.assetIdsDto),
- }, initOverrides);
-
- return new runtime.BlobApiResponse(response);
- }
-
- /**
- */
- async downloadArchive(requestParameters: DownloadArchiveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob> {
- const response = await this.downloadArchiveRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async downloadFileRaw(requestParameters: DownloadFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling downloadFile.');
- }
-
- const queryParameters: any = {};
-
- if (requestParameters.key !== undefined) {
- queryParameters['key'] = requestParameters.key;
- }
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/download/asset/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'POST',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.BlobApiResponse(response);
- }
-
- /**
- */
- async downloadFile(requestParameters: DownloadFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob> {
- const response = await this.downloadFileRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async getDownloadInfoRaw(requestParameters: GetDownloadInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DownloadResponseDto>> {
- if (requestParameters.downloadInfoDto === null || requestParameters.downloadInfoDto === undefined) {
- throw new runtime.RequiredError('downloadInfoDto','Required parameter requestParameters.downloadInfoDto was null or undefined when calling getDownloadInfo.');
- }
-
- const queryParameters: any = {};
-
- if (requestParameters.key !== undefined) {
- queryParameters['key'] = requestParameters.key;
- }
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- headerParameters['Content-Type'] = 'application/json';
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/download/info`,
- method: 'POST',
- headers: headerParameters,
- query: queryParameters,
- body: DownloadInfoDtoToJSON(requestParameters.downloadInfoDto),
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => DownloadResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async getDownloadInfo(requestParameters: GetDownloadInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DownloadResponseDto> {
- const response = await this.getDownloadInfoRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
-}
diff --git a/open-api/typescript-sdk/fetch-client/apis/FaceApi.ts b/open-api/typescript-sdk/fetch-client/apis/FaceApi.ts
deleted file mode 100644
index 2f86896b66..0000000000
--- a/open-api/typescript-sdk/fetch-client/apis/FaceApi.ts
+++ /dev/null
@@ -1,136 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-import * as runtime from '../runtime';
-import type {
- AssetFaceResponseDto,
- FaceDto,
- PersonResponseDto,
-} from '../models/index';
-import {
- AssetFaceResponseDtoFromJSON,
- AssetFaceResponseDtoToJSON,
- FaceDtoFromJSON,
- FaceDtoToJSON,
- PersonResponseDtoFromJSON,
- PersonResponseDtoToJSON,
-} from '../models/index';
-
-export interface GetFacesRequest {
- id: string;
-}
-
-export interface ReassignFacesByIdRequest {
- id: string;
- faceDto: FaceDto;
-}
-
-/**
- *
- */
-export class FaceApi extends runtime.BaseAPI {
-
- /**
- */
- async getFacesRaw(requestParameters: GetFacesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssetFaceResponseDto>>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getFaces.');
- }
-
- const queryParameters: any = {};
-
- if (requestParameters.id !== undefined) {
- queryParameters['id'] = requestParameters.id;
- }
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/face`,
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AssetFaceResponseDtoFromJSON));
- }
-
- /**
- */
- async getFaces(requestParameters: GetFacesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssetFaceResponseDto>> {
- const response = await this.getFacesRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async reassignFacesByIdRaw(requestParameters: ReassignFacesByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PersonResponseDto>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling reassignFacesById.');
- }
-
- if (requestParameters.faceDto === null || requestParameters.faceDto === undefined) {
- throw new runtime.RequiredError('faceDto','Required parameter requestParameters.faceDto was null or undefined when calling reassignFacesById.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- headerParameters['Content-Type'] = 'application/json';
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/face/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'PUT',
- headers: headerParameters,
- query: queryParameters,
- body: FaceDtoToJSON(requestParameters.faceDto),
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => PersonResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async reassignFacesById(requestParameters: ReassignFacesByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PersonResponseDto> {
- const response = await this.reassignFacesByIdRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
-}
diff --git a/open-api/typescript-sdk/fetch-client/apis/JobApi.ts b/open-api/typescript-sdk/fetch-client/apis/JobApi.ts
deleted file mode 100644
index 3ec0b2f4e6..0000000000
--- a/open-api/typescript-sdk/fetch-client/apis/JobApi.ts
+++ /dev/null
@@ -1,127 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-import * as runtime from '../runtime';
-import type {
- AllJobStatusResponseDto,
- JobCommandDto,
- JobName,
- JobStatusDto,
-} from '../models/index';
-import {
- AllJobStatusResponseDtoFromJSON,
- AllJobStatusResponseDtoToJSON,
- JobCommandDtoFromJSON,
- JobCommandDtoToJSON,
- JobNameFromJSON,
- JobNameToJSON,
- JobStatusDtoFromJSON,
- JobStatusDtoToJSON,
-} from '../models/index';
-
-export interface SendJobCommandRequest {
- id: JobName;
- jobCommandDto: JobCommandDto;
-}
-
-/**
- *
- */
-export class JobApi extends runtime.BaseAPI {
-
- /**
- */
- async getAllJobsStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AllJobStatusResponseDto>> {
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/jobs`,
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => AllJobStatusResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async getAllJobsStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AllJobStatusResponseDto> {
- const response = await this.getAllJobsStatusRaw(initOverrides);
- return await response.value();
- }
-
- /**
- */
- async sendJobCommandRaw(requestParameters: SendJobCommandRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JobStatusDto>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling sendJobCommand.');
- }
-
- if (requestParameters.jobCommandDto === null || requestParameters.jobCommandDto === undefined) {
- throw new runtime.RequiredError('jobCommandDto','Required parameter requestParameters.jobCommandDto was null or undefined when calling sendJobCommand.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- headerParameters['Content-Type'] = 'application/json';
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/jobs/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'PUT',
- headers: headerParameters,
- query: queryParameters,
- body: JobCommandDtoToJSON(requestParameters.jobCommandDto),
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => JobStatusDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async sendJobCommand(requestParameters: SendJobCommandRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JobStatusDto> {
- const response = await this.sendJobCommandRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
-}
diff --git a/open-api/typescript-sdk/fetch-client/apis/LibraryApi.ts b/open-api/typescript-sdk/fetch-client/apis/LibraryApi.ts
deleted file mode 100644
index 7a3f06b680..0000000000
--- a/open-api/typescript-sdk/fetch-client/apis/LibraryApi.ts
+++ /dev/null
@@ -1,402 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-import * as runtime from '../runtime';
-import type {
- CreateLibraryDto,
- LibraryResponseDto,
- LibraryStatsResponseDto,
- ScanLibraryDto,
- UpdateLibraryDto,
-} from '../models/index';
-import {
- CreateLibraryDtoFromJSON,
- CreateLibraryDtoToJSON,
- LibraryResponseDtoFromJSON,
- LibraryResponseDtoToJSON,
- LibraryStatsResponseDtoFromJSON,
- LibraryStatsResponseDtoToJSON,
- ScanLibraryDtoFromJSON,
- ScanLibraryDtoToJSON,
- UpdateLibraryDtoFromJSON,
- UpdateLibraryDtoToJSON,
-} from '../models/index';
-
-export interface CreateLibraryRequest {
- createLibraryDto: CreateLibraryDto;
-}
-
-export interface DeleteLibraryRequest {
- id: string;
-}
-
-export interface GetLibraryInfoRequest {
- id: string;
-}
-
-export interface GetLibraryStatisticsRequest {
- id: string;
-}
-
-export interface RemoveOfflineFilesRequest {
- id: string;
-}
-
-export interface ScanLibraryRequest {
- id: string;
- scanLibraryDto: ScanLibraryDto;
-}
-
-export interface UpdateLibraryRequest {
- id: string;
- updateLibraryDto: UpdateLibraryDto;
-}
-
-/**
- *
- */
-export class LibraryApi extends runtime.BaseAPI {
-
- /**
- */
- async createLibraryRaw(requestParameters: CreateLibraryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LibraryResponseDto>> {
- if (requestParameters.createLibraryDto === null || requestParameters.createLibraryDto === undefined) {
- throw new runtime.RequiredError('createLibraryDto','Required parameter requestParameters.createLibraryDto was null or undefined when calling createLibrary.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- headerParameters['Content-Type'] = 'application/json';
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/library`,
- method: 'POST',
- headers: headerParameters,
- query: queryParameters,
- body: CreateLibraryDtoToJSON(requestParameters.createLibraryDto),
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => LibraryResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async createLibrary(requestParameters: CreateLibraryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LibraryResponseDto> {
- const response = await this.createLibraryRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async deleteLibraryRaw(requestParameters: DeleteLibraryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling deleteLibrary.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/library/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'DELETE',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.VoidApiResponse(response);
- }
-
- /**
- */
- async deleteLibrary(requestParameters: DeleteLibraryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
- await this.deleteLibraryRaw(requestParameters, initOverrides);
- }
-
- /**
- */
- async getLibrariesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<LibraryResponseDto>>> {
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/library`,
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(LibraryResponseDtoFromJSON));
- }
-
- /**
- */
- async getLibraries(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<LibraryResponseDto>> {
- const response = await this.getLibrariesRaw(initOverrides);
- return await response.value();
- }
-
- /**
- */
- async getLibraryInfoRaw(requestParameters: GetLibraryInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LibraryResponseDto>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getLibraryInfo.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/library/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => LibraryResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async getLibraryInfo(requestParameters: GetLibraryInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LibraryResponseDto> {
- const response = await this.getLibraryInfoRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async getLibraryStatisticsRaw(requestParameters: GetLibraryStatisticsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LibraryStatsResponseDto>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getLibraryStatistics.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/library/{id}/statistics`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => LibraryStatsResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async getLibraryStatistics(requestParameters: GetLibraryStatisticsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LibraryStatsResponseDto> {
- const response = await this.getLibraryStatisticsRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async removeOfflineFilesRaw(requestParameters: RemoveOfflineFilesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling removeOfflineFiles.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/library/{id}/removeOffline`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'POST',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.VoidApiResponse(response);
- }
-
- /**
- */
- async removeOfflineFiles(requestParameters: RemoveOfflineFilesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
- await this.removeOfflineFilesRaw(requestParameters, initOverrides);
- }
-
- /**
- */
- async scanLibraryRaw(requestParameters: ScanLibraryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling scanLibrary.');
- }
-
- if (requestParameters.scanLibraryDto === null || requestParameters.scanLibraryDto === undefined) {
- throw new runtime.RequiredError('scanLibraryDto','Required parameter requestParameters.scanLibraryDto was null or undefined when calling scanLibrary.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- headerParameters['Content-Type'] = 'application/json';
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/library/{id}/scan`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'POST',
- headers: headerParameters,
- query: queryParameters,
- body: ScanLibraryDtoToJSON(requestParameters.scanLibraryDto),
- }, initOverrides);
-
- return new runtime.VoidApiResponse(response);
- }
-
- /**
- */
- async scanLibrary(requestParameters: ScanLibraryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
- await this.scanLibraryRaw(requestParameters, initOverrides);
- }
-
- /**
- */
- async updateLibraryRaw(requestParameters: UpdateLibraryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LibraryResponseDto>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling updateLibrary.');
- }
-
- if (requestParameters.updateLibraryDto === null || requestParameters.updateLibraryDto === undefined) {
- throw new runtime.RequiredError('updateLibraryDto','Required parameter requestParameters.updateLibraryDto was null or undefined when calling updateLibrary.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- headerParameters['Content-Type'] = 'application/json';
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/library/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'PUT',
- headers: headerParameters,
- query: queryParameters,
- body: UpdateLibraryDtoToJSON(requestParameters.updateLibraryDto),
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => LibraryResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async updateLibrary(requestParameters: UpdateLibraryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LibraryResponseDto> {
- const response = await this.updateLibraryRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
-}
diff --git a/open-api/typescript-sdk/fetch-client/apis/OAuthApi.ts b/open-api/typescript-sdk/fetch-client/apis/OAuthApi.ts
deleted file mode 100644
index 295ebbebfd..0000000000
--- a/open-api/typescript-sdk/fetch-client/apis/OAuthApi.ts
+++ /dev/null
@@ -1,218 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-import * as runtime from '../runtime';
-import type {
- LoginResponseDto,
- OAuthAuthorizeResponseDto,
- OAuthCallbackDto,
- OAuthConfigDto,
- UserResponseDto,
-} from '../models/index';
-import {
- LoginResponseDtoFromJSON,
- LoginResponseDtoToJSON,
- OAuthAuthorizeResponseDtoFromJSON,
- OAuthAuthorizeResponseDtoToJSON,
- OAuthCallbackDtoFromJSON,
- OAuthCallbackDtoToJSON,
- OAuthConfigDtoFromJSON,
- OAuthConfigDtoToJSON,
- UserResponseDtoFromJSON,
- UserResponseDtoToJSON,
-} from '../models/index';
-
-export interface FinishOAuthRequest {
- oAuthCallbackDto: OAuthCallbackDto;
-}
-
-export interface LinkOAuthAccountRequest {
- oAuthCallbackDto: OAuthCallbackDto;
-}
-
-export interface StartOAuthRequest {
- oAuthConfigDto: OAuthConfigDto;
-}
-
-/**
- *
- */
-export class OAuthApi extends runtime.BaseAPI {
-
- /**
- */
- async finishOAuthRaw(requestParameters: FinishOAuthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LoginResponseDto>> {
- if (requestParameters.oAuthCallbackDto === null || requestParameters.oAuthCallbackDto === undefined) {
- throw new runtime.RequiredError('oAuthCallbackDto','Required parameter requestParameters.oAuthCallbackDto was null or undefined when calling finishOAuth.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- headerParameters['Content-Type'] = 'application/json';
-
- const response = await this.request({
- path: `/oauth/callback`,
- method: 'POST',
- headers: headerParameters,
- query: queryParameters,
- body: OAuthCallbackDtoToJSON(requestParameters.oAuthCallbackDto),
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => LoginResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async finishOAuth(requestParameters: FinishOAuthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LoginResponseDto> {
- const response = await this.finishOAuthRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async linkOAuthAccountRaw(requestParameters: LinkOAuthAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponseDto>> {
- if (requestParameters.oAuthCallbackDto === null || requestParameters.oAuthCallbackDto === undefined) {
- throw new runtime.RequiredError('oAuthCallbackDto','Required parameter requestParameters.oAuthCallbackDto was null or undefined when calling linkOAuthAccount.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- headerParameters['Content-Type'] = 'application/json';
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/oauth/link`,
- method: 'POST',
- headers: headerParameters,
- query: queryParameters,
- body: OAuthCallbackDtoToJSON(requestParameters.oAuthCallbackDto),
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => UserResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async linkOAuthAccount(requestParameters: LinkOAuthAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponseDto> {
- const response = await this.linkOAuthAccountRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async redirectOAuthToMobileRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- const response = await this.request({
- path: `/oauth/mobile-redirect`,
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.VoidApiResponse(response);
- }
-
- /**
- */
- async redirectOAuthToMobile(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
- await this.redirectOAuthToMobileRaw(initOverrides);
- }
-
- /**
- */
- async startOAuthRaw(requestParameters: StartOAuthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OAuthAuthorizeResponseDto>> {
- if (requestParameters.oAuthConfigDto === null || requestParameters.oAuthConfigDto === undefined) {
- throw new runtime.RequiredError('oAuthConfigDto','Required parameter requestParameters.oAuthConfigDto was null or undefined when calling startOAuth.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- headerParameters['Content-Type'] = 'application/json';
-
- const response = await this.request({
- path: `/oauth/authorize`,
- method: 'POST',
- headers: headerParameters,
- query: queryParameters,
- body: OAuthConfigDtoToJSON(requestParameters.oAuthConfigDto),
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => OAuthAuthorizeResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async startOAuth(requestParameters: StartOAuthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OAuthAuthorizeResponseDto> {
- const response = await this.startOAuthRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async unlinkOAuthAccountRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponseDto>> {
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/oauth/unlink`,
- method: 'POST',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => UserResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async unlinkOAuthAccount(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponseDto> {
- const response = await this.unlinkOAuthAccountRaw(initOverrides);
- return await response.value();
- }
-
-}
diff --git a/open-api/typescript-sdk/fetch-client/apis/PartnerApi.ts b/open-api/typescript-sdk/fetch-client/apis/PartnerApi.ts
deleted file mode 100644
index 8dc49f5d7a..0000000000
--- a/open-api/typescript-sdk/fetch-client/apis/PartnerApi.ts
+++ /dev/null
@@ -1,229 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-import * as runtime from '../runtime';
-import type {
- PartnerResponseDto,
- UpdatePartnerDto,
-} from '../models/index';
-import {
- PartnerResponseDtoFromJSON,
- PartnerResponseDtoToJSON,
- UpdatePartnerDtoFromJSON,
- UpdatePartnerDtoToJSON,
-} from '../models/index';
-
-export interface CreatePartnerRequest {
- id: string;
-}
-
-export interface GetPartnersRequest {
- direction: GetPartnersDirectionEnum;
-}
-
-export interface RemovePartnerRequest {
- id: string;
-}
-
-export interface UpdatePartnerRequest {
- id: string;
- updatePartnerDto: UpdatePartnerDto;
-}
-
-/**
- *
- */
-export class PartnerApi extends runtime.BaseAPI {
-
- /**
- */
- async createPartnerRaw(requestParameters: CreatePartnerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerResponseDto>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling createPartner.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/partner/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'POST',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => PartnerResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async createPartner(requestParameters: CreatePartnerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerResponseDto> {
- const response = await this.createPartnerRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async getPartnersRaw(requestParameters: GetPartnersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PartnerResponseDto>>> {
- if (requestParameters.direction === null || requestParameters.direction === undefined) {
- throw new runtime.RequiredError('direction','Required parameter requestParameters.direction was null or undefined when calling getPartners.');
- }
-
- const queryParameters: any = {};
-
- if (requestParameters.direction !== undefined) {
- queryParameters['direction'] = requestParameters.direction;
- }
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/partner`,
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PartnerResponseDtoFromJSON));
- }
-
- /**
- */
- async getPartners(requestParameters: GetPartnersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PartnerResponseDto>> {
- const response = await this.getPartnersRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async removePartnerRaw(requestParameters: RemovePartnerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling removePartner.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/partner/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'DELETE',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.VoidApiResponse(response);
- }
-
- /**
- */
- async removePartner(requestParameters: RemovePartnerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
- await this.removePartnerRaw(requestParameters, initOverrides);
- }
-
- /**
- */
- async updatePartnerRaw(requestParameters: UpdatePartnerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerResponseDto>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling updatePartner.');
- }
-
- if (requestParameters.updatePartnerDto === null || requestParameters.updatePartnerDto === undefined) {
- throw new runtime.RequiredError('updatePartnerDto','Required parameter requestParameters.updatePartnerDto was null or undefined when calling updatePartner.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- headerParameters['Content-Type'] = 'application/json';
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/partner/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'PUT',
- headers: headerParameters,
- query: queryParameters,
- body: UpdatePartnerDtoToJSON(requestParameters.updatePartnerDto),
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => PartnerResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async updatePartner(requestParameters: UpdatePartnerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerResponseDto> {
- const response = await this.updatePartnerRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
-}
-
-/**
- * @export
- */
-export const GetPartnersDirectionEnum = {
- By: 'shared-by',
- With: 'shared-with'
-} as const;
-export type GetPartnersDirectionEnum = typeof GetPartnersDirectionEnum[keyof typeof GetPartnersDirectionEnum];
diff --git a/open-api/typescript-sdk/fetch-client/apis/PersonApi.ts b/open-api/typescript-sdk/fetch-client/apis/PersonApi.ts
deleted file mode 100644
index d56b639639..0000000000
--- a/open-api/typescript-sdk/fetch-client/apis/PersonApi.ts
+++ /dev/null
@@ -1,513 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-import * as runtime from '../runtime';
-import type {
- AssetFaceUpdateDto,
- AssetResponseDto,
- BulkIdResponseDto,
- MergePersonDto,
- PeopleResponseDto,
- PeopleUpdateDto,
- PersonResponseDto,
- PersonStatisticsResponseDto,
- PersonUpdateDto,
-} from '../models/index';
-import {
- AssetFaceUpdateDtoFromJSON,
- AssetFaceUpdateDtoToJSON,
- AssetResponseDtoFromJSON,
- AssetResponseDtoToJSON,
- BulkIdResponseDtoFromJSON,
- BulkIdResponseDtoToJSON,
- MergePersonDtoFromJSON,
- MergePersonDtoToJSON,
- PeopleResponseDtoFromJSON,
- PeopleResponseDtoToJSON,
- PeopleUpdateDtoFromJSON,
- PeopleUpdateDtoToJSON,
- PersonResponseDtoFromJSON,
- PersonResponseDtoToJSON,
- PersonStatisticsResponseDtoFromJSON,
- PersonStatisticsResponseDtoToJSON,
- PersonUpdateDtoFromJSON,
- PersonUpdateDtoToJSON,
-} from '../models/index';
-
-export interface GetAllPeopleRequest {
- withHidden?: boolean;
-}
-
-export interface GetPersonRequest {
- id: string;
-}
-
-export interface GetPersonAssetsRequest {
- id: string;
-}
-
-export interface GetPersonStatisticsRequest {
- id: string;
-}
-
-export interface GetPersonThumbnailRequest {
- id: string;
-}
-
-export interface MergePersonRequest {
- id: string;
- mergePersonDto: MergePersonDto;
-}
-
-export interface ReassignFacesRequest {
- id: string;
- assetFaceUpdateDto: AssetFaceUpdateDto;
-}
-
-export interface UpdatePeopleRequest {
- peopleUpdateDto: PeopleUpdateDto;
-}
-
-export interface UpdatePersonRequest {
- id: string;
- personUpdateDto: PersonUpdateDto;
-}
-
-/**
- *
- */
-export class PersonApi extends runtime.BaseAPI {
-
- /**
- */
- async createPersonRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PersonResponseDto>> {
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/person`,
- method: 'POST',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => PersonResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async createPerson(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PersonResponseDto> {
- const response = await this.createPersonRaw(initOverrides);
- return await response.value();
- }
-
- /**
- */
- async getAllPeopleRaw(requestParameters: GetAllPeopleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PeopleResponseDto>> {
- const queryParameters: any = {};
-
- if (requestParameters.withHidden !== undefined) {
- queryParameters['withHidden'] = requestParameters.withHidden;
- }
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/person`,
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => PeopleResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async getAllPeople(requestParameters: GetAllPeopleRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PeopleResponseDto> {
- const response = await this.getAllPeopleRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async getPersonRaw(requestParameters: GetPersonRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PersonResponseDto>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getPerson.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/person/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => PersonResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async getPerson(requestParameters: GetPersonRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PersonResponseDto> {
- const response = await this.getPersonRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async getPersonAssetsRaw(requestParameters: GetPersonAssetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssetResponseDto>>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getPersonAssets.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/person/{id}/assets`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AssetResponseDtoFromJSON));
- }
-
- /**
- */
- async getPersonAssets(requestParameters: GetPersonAssetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssetResponseDto>> {
- const response = await this.getPersonAssetsRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async getPersonStatisticsRaw(requestParameters: GetPersonStatisticsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PersonStatisticsResponseDto>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getPersonStatistics.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/person/{id}/statistics`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => PersonStatisticsResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async getPersonStatistics(requestParameters: GetPersonStatisticsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PersonStatisticsResponseDto> {
- const response = await this.getPersonStatisticsRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async getPersonThumbnailRaw(requestParameters: GetPersonThumbnailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getPersonThumbnail.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/person/{id}/thumbnail`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.BlobApiResponse(response);
- }
-
- /**
- */
- async getPersonThumbnail(requestParameters: GetPersonThumbnailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob> {
- const response = await this.getPersonThumbnailRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async mergePersonRaw(requestParameters: MergePersonRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<BulkIdResponseDto>>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling mergePerson.');
- }
-
- if (requestParameters.mergePersonDto === null || requestParameters.mergePersonDto === undefined) {
- throw new runtime.RequiredError('mergePersonDto','Required parameter requestParameters.mergePersonDto was null or undefined when calling mergePerson.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- headerParameters['Content-Type'] = 'application/json';
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/person/{id}/merge`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'POST',
- headers: headerParameters,
- query: queryParameters,
- body: MergePersonDtoToJSON(requestParameters.mergePersonDto),
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(BulkIdResponseDtoFromJSON));
- }
-
- /**
- */
- async mergePerson(requestParameters: MergePersonRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<BulkIdResponseDto>> {
- const response = await this.mergePersonRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async reassignFacesRaw(requestParameters: ReassignFacesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PersonResponseDto>>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling reassignFaces.');
- }
-
- if (requestParameters.assetFaceUpdateDto === null || requestParameters.assetFaceUpdateDto === undefined) {
- throw new runtime.RequiredError('assetFaceUpdateDto','Required parameter requestParameters.assetFaceUpdateDto was null or undefined when calling reassignFaces.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- headerParameters['Content-Type'] = 'application/json';
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/person/{id}/reassign`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'PUT',
- headers: headerParameters,
- query: queryParameters,
- body: AssetFaceUpdateDtoToJSON(requestParameters.assetFaceUpdateDto),
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PersonResponseDtoFromJSON));
- }
-
- /**
- */
- async reassignFaces(requestParameters: ReassignFacesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PersonResponseDto>> {
- const response = await this.reassignFacesRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async updatePeopleRaw(requestParameters: UpdatePeopleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<BulkIdResponseDto>>> {
- if (requestParameters.peopleUpdateDto === null || requestParameters.peopleUpdateDto === undefined) {
- throw new runtime.RequiredError('peopleUpdateDto','Required parameter requestParameters.peopleUpdateDto was null or undefined when calling updatePeople.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- headerParameters['Content-Type'] = 'application/json';
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/person`,
- method: 'PUT',
- headers: headerParameters,
- query: queryParameters,
- body: PeopleUpdateDtoToJSON(requestParameters.peopleUpdateDto),
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(BulkIdResponseDtoFromJSON));
- }
-
- /**
- */
- async updatePeople(requestParameters: UpdatePeopleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<BulkIdResponseDto>> {
- const response = await this.updatePeopleRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async updatePersonRaw(requestParameters: UpdatePersonRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PersonResponseDto>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling updatePerson.');
- }
-
- if (requestParameters.personUpdateDto === null || requestParameters.personUpdateDto === undefined) {
- throw new runtime.RequiredError('personUpdateDto','Required parameter requestParameters.personUpdateDto was null or undefined when calling updatePerson.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- headerParameters['Content-Type'] = 'application/json';
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/person/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'PUT',
- headers: headerParameters,
- query: queryParameters,
- body: PersonUpdateDtoToJSON(requestParameters.personUpdateDto),
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => PersonResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async updatePerson(requestParameters: UpdatePersonRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PersonResponseDto> {
- const response = await this.updatePersonRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
-}
diff --git a/open-api/typescript-sdk/fetch-client/apis/SearchApi.ts b/open-api/typescript-sdk/fetch-client/apis/SearchApi.ts
deleted file mode 100644
index 616501b08f..0000000000
--- a/open-api/typescript-sdk/fetch-client/apis/SearchApi.ts
+++ /dev/null
@@ -1,215 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-import * as runtime from '../runtime';
-import type {
- PersonResponseDto,
- SearchExploreResponseDto,
- SearchResponseDto,
-} from '../models/index';
-import {
- PersonResponseDtoFromJSON,
- PersonResponseDtoToJSON,
- SearchExploreResponseDtoFromJSON,
- SearchExploreResponseDtoToJSON,
- SearchResponseDtoFromJSON,
- SearchResponseDtoToJSON,
-} from '../models/index';
-
-export interface SearchRequest {
- clip?: boolean;
- motion?: boolean;
- q?: string;
- query?: string;
- recent?: boolean;
- smart?: boolean;
- type?: SearchTypeEnum;
- withArchived?: boolean;
-}
-
-export interface SearchPersonRequest {
- name: string;
- withHidden?: boolean;
-}
-
-/**
- *
- */
-export class SearchApi extends runtime.BaseAPI {
-
- /**
- */
- async getExploreDataRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SearchExploreResponseDto>>> {
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/search/explore`,
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(SearchExploreResponseDtoFromJSON));
- }
-
- /**
- */
- async getExploreData(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SearchExploreResponseDto>> {
- const response = await this.getExploreDataRaw(initOverrides);
- return await response.value();
- }
-
- /**
- */
- async searchRaw(requestParameters: SearchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SearchResponseDto>> {
- const queryParameters: any = {};
-
- if (requestParameters.clip !== undefined) {
- queryParameters['clip'] = requestParameters.clip;
- }
-
- if (requestParameters.motion !== undefined) {
- queryParameters['motion'] = requestParameters.motion;
- }
-
- if (requestParameters.q !== undefined) {
- queryParameters['q'] = requestParameters.q;
- }
-
- if (requestParameters.query !== undefined) {
- queryParameters['query'] = requestParameters.query;
- }
-
- if (requestParameters.recent !== undefined) {
- queryParameters['recent'] = requestParameters.recent;
- }
-
- if (requestParameters.smart !== undefined) {
- queryParameters['smart'] = requestParameters.smart;
- }
-
- if (requestParameters.type !== undefined) {
- queryParameters['type'] = requestParameters.type;
- }
-
- if (requestParameters.withArchived !== undefined) {
- queryParameters['withArchived'] = requestParameters.withArchived;
- }
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/search`,
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => SearchResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async search(requestParameters: SearchRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SearchResponseDto> {
- const response = await this.searchRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async searchPersonRaw(requestParameters: SearchPersonRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PersonResponseDto>>> {
- if (requestParameters.name === null || requestParameters.name === undefined) {
- throw new runtime.RequiredError('name','Required parameter requestParameters.name was null or undefined when calling searchPerson.');
- }
-
- const queryParameters: any = {};
-
- if (requestParameters.name !== undefined) {
- queryParameters['name'] = requestParameters.name;
- }
-
- if (requestParameters.withHidden !== undefined) {
- queryParameters['withHidden'] = requestParameters.withHidden;
- }
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/search/person`,
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PersonResponseDtoFromJSON));
- }
-
- /**
- */
- async searchPerson(requestParameters: SearchPersonRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PersonResponseDto>> {
- const response = await this.searchPersonRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
-}
-
-/**
- * @export
- */
-export const SearchTypeEnum = {
- Image: 'IMAGE',
- Video: 'VIDEO',
- Audio: 'AUDIO',
- Other: 'OTHER'
-} as const;
-export type SearchTypeEnum = typeof SearchTypeEnum[keyof typeof SearchTypeEnum];
diff --git a/open-api/typescript-sdk/fetch-client/apis/ServerInfoApi.ts b/open-api/typescript-sdk/fetch-client/apis/ServerInfoApi.ts
deleted file mode 100644
index 2cff067147..0000000000
--- a/open-api/typescript-sdk/fetch-client/apis/ServerInfoApi.ts
+++ /dev/null
@@ -1,302 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-import * as runtime from '../runtime';
-import type {
- ServerConfigDto,
- ServerFeaturesDto,
- ServerInfoResponseDto,
- ServerMediaTypesResponseDto,
- ServerPingResponse,
- ServerStatsResponseDto,
- ServerThemeDto,
- ServerVersionResponseDto,
-} from '../models/index';
-import {
- ServerConfigDtoFromJSON,
- ServerConfigDtoToJSON,
- ServerFeaturesDtoFromJSON,
- ServerFeaturesDtoToJSON,
- ServerInfoResponseDtoFromJSON,
- ServerInfoResponseDtoToJSON,
- ServerMediaTypesResponseDtoFromJSON,
- ServerMediaTypesResponseDtoToJSON,
- ServerPingResponseFromJSON,
- ServerPingResponseToJSON,
- ServerStatsResponseDtoFromJSON,
- ServerStatsResponseDtoToJSON,
- ServerThemeDtoFromJSON,
- ServerThemeDtoToJSON,
- ServerVersionResponseDtoFromJSON,
- ServerVersionResponseDtoToJSON,
-} from '../models/index';
-
-/**
- *
- */
-export class ServerInfoApi extends runtime.BaseAPI {
-
- /**
- */
- async getServerConfigRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ServerConfigDto>> {
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- const response = await this.request({
- path: `/server-info/config`,
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => ServerConfigDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async getServerConfig(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ServerConfigDto> {
- const response = await this.getServerConfigRaw(initOverrides);
- return await response.value();
- }
-
- /**
- */
- async getServerFeaturesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ServerFeaturesDto>> {
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- const response = await this.request({
- path: `/server-info/features`,
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => ServerFeaturesDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async getServerFeatures(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ServerFeaturesDto> {
- const response = await this.getServerFeaturesRaw(initOverrides);
- return await response.value();
- }
-
- /**
- */
- async getServerInfoRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ServerInfoResponseDto>> {
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/server-info`,
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => ServerInfoResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async getServerInfo(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ServerInfoResponseDto> {
- const response = await this.getServerInfoRaw(initOverrides);
- return await response.value();
- }
-
- /**
- */
- async getServerStatisticsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ServerStatsResponseDto>> {
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/server-info/statistics`,
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => ServerStatsResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async getServerStatistics(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ServerStatsResponseDto> {
- const response = await this.getServerStatisticsRaw(initOverrides);
- return await response.value();
- }
-
- /**
- */
- async getServerVersionRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ServerVersionResponseDto>> {
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- const response = await this.request({
- path: `/server-info/version`,
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => ServerVersionResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async getServerVersion(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ServerVersionResponseDto> {
- const response = await this.getServerVersionRaw(initOverrides);
- return await response.value();
- }
-
- /**
- */
- async getSupportedMediaTypesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ServerMediaTypesResponseDto>> {
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- const response = await this.request({
- path: `/server-info/media-types`,
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => ServerMediaTypesResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async getSupportedMediaTypes(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ServerMediaTypesResponseDto> {
- const response = await this.getSupportedMediaTypesRaw(initOverrides);
- return await response.value();
- }
-
- /**
- */
- async getThemeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ServerThemeDto>> {
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- const response = await this.request({
- path: `/server-info/theme`,
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => ServerThemeDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async getTheme(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ServerThemeDto> {
- const response = await this.getThemeRaw(initOverrides);
- return await response.value();
- }
-
- /**
- */
- async pingServerRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ServerPingResponse>> {
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- const response = await this.request({
- path: `/server-info/ping`,
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => ServerPingResponseFromJSON(jsonValue));
- }
-
- /**
- */
- async pingServer(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ServerPingResponse> {
- const response = await this.pingServerRaw(initOverrides);
- return await response.value();
- }
-
- /**
- */
- async setAdminOnboardingRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/server-info/admin-onboarding`,
- method: 'POST',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.VoidApiResponse(response);
- }
-
- /**
- */
- async setAdminOnboarding(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
- await this.setAdminOnboardingRaw(initOverrides);
- }
-
-}
diff --git a/open-api/typescript-sdk/fetch-client/apis/SharedLinkApi.ts b/open-api/typescript-sdk/fetch-client/apis/SharedLinkApi.ts
deleted file mode 100644
index c3ba1388a9..0000000000
--- a/open-api/typescript-sdk/fetch-client/apis/SharedLinkApi.ts
+++ /dev/null
@@ -1,432 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-import * as runtime from '../runtime';
-import type {
- AssetIdsDto,
- AssetIdsResponseDto,
- SharedLinkCreateDto,
- SharedLinkEditDto,
- SharedLinkResponseDto,
-} from '../models/index';
-import {
- AssetIdsDtoFromJSON,
- AssetIdsDtoToJSON,
- AssetIdsResponseDtoFromJSON,
- AssetIdsResponseDtoToJSON,
- SharedLinkCreateDtoFromJSON,
- SharedLinkCreateDtoToJSON,
- SharedLinkEditDtoFromJSON,
- SharedLinkEditDtoToJSON,
- SharedLinkResponseDtoFromJSON,
- SharedLinkResponseDtoToJSON,
-} from '../models/index';
-
-export interface AddSharedLinkAssetsRequest {
- id: string;
- assetIdsDto: AssetIdsDto;
- key?: string;
-}
-
-export interface CreateSharedLinkRequest {
- sharedLinkCreateDto: SharedLinkCreateDto;
-}
-
-export interface GetMySharedLinkRequest {
- key?: string;
- password?: string;
- token?: string;
-}
-
-export interface GetSharedLinkByIdRequest {
- id: string;
-}
-
-export interface RemoveSharedLinkRequest {
- id: string;
-}
-
-export interface RemoveSharedLinkAssetsRequest {
- id: string;
- assetIdsDto: AssetIdsDto;
- key?: string;
-}
-
-export interface UpdateSharedLinkRequest {
- id: string;
- sharedLinkEditDto: SharedLinkEditDto;
-}
-
-/**
- *
- */
-export class SharedLinkApi extends runtime.BaseAPI {
-
- /**
- */
- async addSharedLinkAssetsRaw(requestParameters: AddSharedLinkAssetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssetIdsResponseDto>>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling addSharedLinkAssets.');
- }
-
- if (requestParameters.assetIdsDto === null || requestParameters.assetIdsDto === undefined) {
- throw new runtime.RequiredError('assetIdsDto','Required parameter requestParameters.assetIdsDto was null or undefined when calling addSharedLinkAssets.');
- }
-
- const queryParameters: any = {};
-
- if (requestParameters.key !== undefined) {
- queryParameters['key'] = requestParameters.key;
- }
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- headerParameters['Content-Type'] = 'application/json';
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/shared-link/{id}/assets`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'PUT',
- headers: headerParameters,
- query: queryParameters,
- body: AssetIdsDtoToJSON(requestParameters.assetIdsDto),
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AssetIdsResponseDtoFromJSON));
- }
-
- /**
- */
- async addSharedLinkAssets(requestParameters: AddSharedLinkAssetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssetIdsResponseDto>> {
- const response = await this.addSharedLinkAssetsRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async createSharedLinkRaw(requestParameters: CreateSharedLinkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SharedLinkResponseDto>> {
- if (requestParameters.sharedLinkCreateDto === null || requestParameters.sharedLinkCreateDto === undefined) {
- throw new runtime.RequiredError('sharedLinkCreateDto','Required parameter requestParameters.sharedLinkCreateDto was null or undefined when calling createSharedLink.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- headerParameters['Content-Type'] = 'application/json';
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/shared-link`,
- method: 'POST',
- headers: headerParameters,
- query: queryParameters,
- body: SharedLinkCreateDtoToJSON(requestParameters.sharedLinkCreateDto),
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => SharedLinkResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async createSharedLink(requestParameters: CreateSharedLinkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SharedLinkResponseDto> {
- const response = await this.createSharedLinkRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async getAllSharedLinksRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SharedLinkResponseDto>>> {
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/shared-link`,
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(SharedLinkResponseDtoFromJSON));
- }
-
- /**
- */
- async getAllSharedLinks(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SharedLinkResponseDto>> {
- const response = await this.getAllSharedLinksRaw(initOverrides);
- return await response.value();
- }
-
- /**
- */
- async getMySharedLinkRaw(requestParameters: GetMySharedLinkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SharedLinkResponseDto>> {
- const queryParameters: any = {};
-
- if (requestParameters.key !== undefined) {
- queryParameters['key'] = requestParameters.key;
- }
-
- if (requestParameters.password !== undefined) {
- queryParameters['password'] = requestParameters.password;
- }
-
- if (requestParameters.token !== undefined) {
- queryParameters['token'] = requestParameters.token;
- }
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/shared-link/me`,
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => SharedLinkResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async getMySharedLink(requestParameters: GetMySharedLinkRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SharedLinkResponseDto> {
- const response = await this.getMySharedLinkRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async getSharedLinkByIdRaw(requestParameters: GetSharedLinkByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SharedLinkResponseDto>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getSharedLinkById.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/shared-link/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => SharedLinkResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async getSharedLinkById(requestParameters: GetSharedLinkByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SharedLinkResponseDto> {
- const response = await this.getSharedLinkByIdRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async removeSharedLinkRaw(requestParameters: RemoveSharedLinkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling removeSharedLink.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/shared-link/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'DELETE',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.VoidApiResponse(response);
- }
-
- /**
- */
- async removeSharedLink(requestParameters: RemoveSharedLinkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
- await this.removeSharedLinkRaw(requestParameters, initOverrides);
- }
-
- /**
- */
- async removeSharedLinkAssetsRaw(requestParameters: RemoveSharedLinkAssetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssetIdsResponseDto>>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling removeSharedLinkAssets.');
- }
-
- if (requestParameters.assetIdsDto === null || requestParameters.assetIdsDto === undefined) {
- throw new runtime.RequiredError('assetIdsDto','Required parameter requestParameters.assetIdsDto was null or undefined when calling removeSharedLinkAssets.');
- }
-
- const queryParameters: any = {};
-
- if (requestParameters.key !== undefined) {
- queryParameters['key'] = requestParameters.key;
- }
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- headerParameters['Content-Type'] = 'application/json';
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/shared-link/{id}/assets`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'DELETE',
- headers: headerParameters,
- query: queryParameters,
- body: AssetIdsDtoToJSON(requestParameters.assetIdsDto),
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AssetIdsResponseDtoFromJSON));
- }
-
- /**
- */
- async removeSharedLinkAssets(requestParameters: RemoveSharedLinkAssetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssetIdsResponseDto>> {
- const response = await this.removeSharedLinkAssetsRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async updateSharedLinkRaw(requestParameters: UpdateSharedLinkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SharedLinkResponseDto>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling updateSharedLink.');
- }
-
- if (requestParameters.sharedLinkEditDto === null || requestParameters.sharedLinkEditDto === undefined) {
- throw new runtime.RequiredError('sharedLinkEditDto','Required parameter requestParameters.sharedLinkEditDto was null or undefined when calling updateSharedLink.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- headerParameters['Content-Type'] = 'application/json';
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/shared-link/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'PATCH',
- headers: headerParameters,
- query: queryParameters,
- body: SharedLinkEditDtoToJSON(requestParameters.sharedLinkEditDto),
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => SharedLinkResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async updateSharedLink(requestParameters: UpdateSharedLinkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SharedLinkResponseDto> {
- const response = await this.updateSharedLinkRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
-}
diff --git a/open-api/typescript-sdk/fetch-client/apis/SystemConfigApi.ts b/open-api/typescript-sdk/fetch-client/apis/SystemConfigApi.ts
deleted file mode 100644
index adafb3de95..0000000000
--- a/open-api/typescript-sdk/fetch-client/apis/SystemConfigApi.ts
+++ /dev/null
@@ -1,239 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-import * as runtime from '../runtime';
-import type {
- MapTheme,
- SystemConfigDto,
- SystemConfigTemplateStorageOptionDto,
-} from '../models/index';
-import {
- MapThemeFromJSON,
- MapThemeToJSON,
- SystemConfigDtoFromJSON,
- SystemConfigDtoToJSON,
- SystemConfigTemplateStorageOptionDtoFromJSON,
- SystemConfigTemplateStorageOptionDtoToJSON,
-} from '../models/index';
-
-export interface GetMapStyleRequest {
- theme: MapTheme;
-}
-
-export interface UpdateConfigRequest {
- systemConfigDto: SystemConfigDto;
-}
-
-/**
- *
- */
-export class SystemConfigApi extends runtime.BaseAPI {
-
- /**
- */
- async getConfigRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SystemConfigDto>> {
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/system-config`,
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => SystemConfigDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async getConfig(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SystemConfigDto> {
- const response = await this.getConfigRaw(initOverrides);
- return await response.value();
- }
-
- /**
- */
- async getConfigDefaultsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SystemConfigDto>> {
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/system-config/defaults`,
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => SystemConfigDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async getConfigDefaults(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SystemConfigDto> {
- const response = await this.getConfigDefaultsRaw(initOverrides);
- return await response.value();
- }
-
- /**
- */
- async getMapStyleRaw(requestParameters: GetMapStyleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>> {
- if (requestParameters.theme === null || requestParameters.theme === undefined) {
- throw new runtime.RequiredError('theme','Required parameter requestParameters.theme was null or undefined when calling getMapStyle.');
- }
-
- const queryParameters: any = {};
-
- if (requestParameters.theme !== undefined) {
- queryParameters['theme'] = requestParameters.theme;
- }
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/system-config/map/style.json`,
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse<any>(response);
- }
-
- /**
- */
- async getMapStyle(requestParameters: GetMapStyleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object> {
- const response = await this.getMapStyleRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async getStorageTemplateOptionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SystemConfigTemplateStorageOptionDto>> {
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/system-config/storage-template-options`,
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => SystemConfigTemplateStorageOptionDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async getStorageTemplateOptions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SystemConfigTemplateStorageOptionDto> {
- const response = await this.getStorageTemplateOptionsRaw(initOverrides);
- return await response.value();
- }
-
- /**
- */
- async updateConfigRaw(requestParameters: UpdateConfigRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SystemConfigDto>> {
- if (requestParameters.systemConfigDto === null || requestParameters.systemConfigDto === undefined) {
- throw new runtime.RequiredError('systemConfigDto','Required parameter requestParameters.systemConfigDto was null or undefined when calling updateConfig.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- headerParameters['Content-Type'] = 'application/json';
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/system-config`,
- method: 'PUT',
- headers: headerParameters,
- query: queryParameters,
- body: SystemConfigDtoToJSON(requestParameters.systemConfigDto),
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => SystemConfigDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async updateConfig(requestParameters: UpdateConfigRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SystemConfigDto> {
- const response = await this.updateConfigRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
-}
diff --git a/open-api/typescript-sdk/fetch-client/apis/TagApi.ts b/open-api/typescript-sdk/fetch-client/apis/TagApi.ts
deleted file mode 100644
index 9fdeecd7e7..0000000000
--- a/open-api/typescript-sdk/fetch-client/apis/TagApi.ts
+++ /dev/null
@@ -1,415 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-import * as runtime from '../runtime';
-import type {
- AssetIdsDto,
- AssetIdsResponseDto,
- AssetResponseDto,
- CreateTagDto,
- TagResponseDto,
- UpdateTagDto,
-} from '../models/index';
-import {
- AssetIdsDtoFromJSON,
- AssetIdsDtoToJSON,
- AssetIdsResponseDtoFromJSON,
- AssetIdsResponseDtoToJSON,
- AssetResponseDtoFromJSON,
- AssetResponseDtoToJSON,
- CreateTagDtoFromJSON,
- CreateTagDtoToJSON,
- TagResponseDtoFromJSON,
- TagResponseDtoToJSON,
- UpdateTagDtoFromJSON,
- UpdateTagDtoToJSON,
-} from '../models/index';
-
-export interface CreateTagRequest {
- createTagDto: CreateTagDto;
-}
-
-export interface DeleteTagRequest {
- id: string;
-}
-
-export interface GetTagAssetsRequest {
- id: string;
-}
-
-export interface GetTagByIdRequest {
- id: string;
-}
-
-export interface TagAssetsRequest {
- id: string;
- assetIdsDto: AssetIdsDto;
-}
-
-export interface UntagAssetsRequest {
- id: string;
- assetIdsDto: AssetIdsDto;
-}
-
-export interface UpdateTagRequest {
- id: string;
- updateTagDto: UpdateTagDto;
-}
-
-/**
- *
- */
-export class TagApi extends runtime.BaseAPI {
-
- /**
- */
- async createTagRaw(requestParameters: CreateTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TagResponseDto>> {
- if (requestParameters.createTagDto === null || requestParameters.createTagDto === undefined) {
- throw new runtime.RequiredError('createTagDto','Required parameter requestParameters.createTagDto was null or undefined when calling createTag.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- headerParameters['Content-Type'] = 'application/json';
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/tag`,
- method: 'POST',
- headers: headerParameters,
- query: queryParameters,
- body: CreateTagDtoToJSON(requestParameters.createTagDto),
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => TagResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async createTag(requestParameters: CreateTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TagResponseDto> {
- const response = await this.createTagRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async deleteTagRaw(requestParameters: DeleteTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling deleteTag.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/tag/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'DELETE',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.VoidApiResponse(response);
- }
-
- /**
- */
- async deleteTag(requestParameters: DeleteTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
- await this.deleteTagRaw(requestParameters, initOverrides);
- }
-
- /**
- */
- async getAllTagsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<TagResponseDto>>> {
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/tag`,
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(TagResponseDtoFromJSON));
- }
-
- /**
- */
- async getAllTags(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<TagResponseDto>> {
- const response = await this.getAllTagsRaw(initOverrides);
- return await response.value();
- }
-
- /**
- */
- async getTagAssetsRaw(requestParameters: GetTagAssetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssetResponseDto>>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getTagAssets.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/tag/{id}/assets`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AssetResponseDtoFromJSON));
- }
-
- /**
- */
- async getTagAssets(requestParameters: GetTagAssetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssetResponseDto>> {
- const response = await this.getTagAssetsRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async getTagByIdRaw(requestParameters: GetTagByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TagResponseDto>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getTagById.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/tag/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => TagResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async getTagById(requestParameters: GetTagByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TagResponseDto> {
- const response = await this.getTagByIdRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async tagAssetsRaw(requestParameters: TagAssetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssetIdsResponseDto>>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling tagAssets.');
- }
-
- if (requestParameters.assetIdsDto === null || requestParameters.assetIdsDto === undefined) {
- throw new runtime.RequiredError('assetIdsDto','Required parameter requestParameters.assetIdsDto was null or undefined when calling tagAssets.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- headerParameters['Content-Type'] = 'application/json';
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/tag/{id}/assets`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'PUT',
- headers: headerParameters,
- query: queryParameters,
- body: AssetIdsDtoToJSON(requestParameters.assetIdsDto),
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AssetIdsResponseDtoFromJSON));
- }
-
- /**
- */
- async tagAssets(requestParameters: TagAssetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssetIdsResponseDto>> {
- const response = await this.tagAssetsRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async untagAssetsRaw(requestParameters: UntagAssetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssetIdsResponseDto>>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling untagAssets.');
- }
-
- if (requestParameters.assetIdsDto === null || requestParameters.assetIdsDto === undefined) {
- throw new runtime.RequiredError('assetIdsDto','Required parameter requestParameters.assetIdsDto was null or undefined when calling untagAssets.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- headerParameters['Content-Type'] = 'application/json';
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/tag/{id}/assets`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'DELETE',
- headers: headerParameters,
- query: queryParameters,
- body: AssetIdsDtoToJSON(requestParameters.assetIdsDto),
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AssetIdsResponseDtoFromJSON));
- }
-
- /**
- */
- async untagAssets(requestParameters: UntagAssetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssetIdsResponseDto>> {
- const response = await this.untagAssetsRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async updateTagRaw(requestParameters: UpdateTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TagResponseDto>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling updateTag.');
- }
-
- if (requestParameters.updateTagDto === null || requestParameters.updateTagDto === undefined) {
- throw new runtime.RequiredError('updateTagDto','Required parameter requestParameters.updateTagDto was null or undefined when calling updateTag.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- headerParameters['Content-Type'] = 'application/json';
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/tag/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'PATCH',
- headers: headerParameters,
- query: queryParameters,
- body: UpdateTagDtoToJSON(requestParameters.updateTagDto),
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => TagResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async updateTag(requestParameters: UpdateTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TagResponseDto> {
- const response = await this.updateTagRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
-}
diff --git a/open-api/typescript-sdk/fetch-client/apis/TrashApi.ts b/open-api/typescript-sdk/fetch-client/apis/TrashApi.ts
deleted file mode 100644
index d0f068be49..0000000000
--- a/open-api/typescript-sdk/fetch-client/apis/TrashApi.ts
+++ /dev/null
@@ -1,146 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-import * as runtime from '../runtime';
-import type {
- BulkIdsDto,
-} from '../models/index';
-import {
- BulkIdsDtoFromJSON,
- BulkIdsDtoToJSON,
-} from '../models/index';
-
-export interface RestoreAssetsRequest {
- bulkIdsDto: BulkIdsDto;
-}
-
-/**
- *
- */
-export class TrashApi extends runtime.BaseAPI {
-
- /**
- */
- async emptyTrashRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/trash/empty`,
- method: 'POST',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.VoidApiResponse(response);
- }
-
- /**
- */
- async emptyTrash(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
- await this.emptyTrashRaw(initOverrides);
- }
-
- /**
- */
- async restoreAssetsRaw(requestParameters: RestoreAssetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
- if (requestParameters.bulkIdsDto === null || requestParameters.bulkIdsDto === undefined) {
- throw new runtime.RequiredError('bulkIdsDto','Required parameter requestParameters.bulkIdsDto was null or undefined when calling restoreAssets.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- headerParameters['Content-Type'] = 'application/json';
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/trash/restore/assets`,
- method: 'POST',
- headers: headerParameters,
- query: queryParameters,
- body: BulkIdsDtoToJSON(requestParameters.bulkIdsDto),
- }, initOverrides);
-
- return new runtime.VoidApiResponse(response);
- }
-
- /**
- */
- async restoreAssets(requestParameters: RestoreAssetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
- await this.restoreAssetsRaw(requestParameters, initOverrides);
- }
-
- /**
- */
- async restoreTrashRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/trash/restore`,
- method: 'POST',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.VoidApiResponse(response);
- }
-
- /**
- */
- async restoreTrash(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
- await this.restoreTrashRaw(initOverrides);
- }
-
-}
diff --git a/open-api/typescript-sdk/fetch-client/apis/UserApi.ts b/open-api/typescript-sdk/fetch-client/apis/UserApi.ts
deleted file mode 100644
index d2af7f3edd..0000000000
--- a/open-api/typescript-sdk/fetch-client/apis/UserApi.ts
+++ /dev/null
@@ -1,493 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-import * as runtime from '../runtime';
-import type {
- CreateProfileImageResponseDto,
- CreateUserDto,
- UpdateUserDto,
- UserResponseDto,
-} from '../models/index';
-import {
- CreateProfileImageResponseDtoFromJSON,
- CreateProfileImageResponseDtoToJSON,
- CreateUserDtoFromJSON,
- CreateUserDtoToJSON,
- UpdateUserDtoFromJSON,
- UpdateUserDtoToJSON,
- UserResponseDtoFromJSON,
- UserResponseDtoToJSON,
-} from '../models/index';
-
-export interface CreateProfileImageRequest {
- file: Blob;
-}
-
-export interface CreateUserRequest {
- createUserDto: CreateUserDto;
-}
-
-export interface DeleteUserRequest {
- id: string;
-}
-
-export interface GetAllUsersRequest {
- isAll: boolean;
-}
-
-export interface GetProfileImageRequest {
- id: string;
-}
-
-export interface GetUserByIdRequest {
- id: string;
-}
-
-export interface RestoreUserRequest {
- id: string;
-}
-
-export interface UpdateUserRequest {
- updateUserDto: UpdateUserDto;
-}
-
-/**
- *
- */
-export class UserApi extends runtime.BaseAPI {
-
- /**
- */
- async createProfileImageRaw(requestParameters: CreateProfileImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateProfileImageResponseDto>> {
- if (requestParameters.file === null || requestParameters.file === undefined) {
- throw new runtime.RequiredError('file','Required parameter requestParameters.file was null or undefined when calling createProfileImage.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const consumes: runtime.Consume[] = [
- { contentType: 'multipart/form-data' },
- ];
- // @ts-ignore: canConsumeForm may be unused
- const canConsumeForm = runtime.canConsumeForm(consumes);
-
- let formParams: { append(param: string, value: any): any };
- let useForm = false;
- // use FormData to transmit files using content-type "multipart/form-data"
- useForm = canConsumeForm;
- if (useForm) {
- formParams = new FormData();
- } else {
- formParams = new URLSearchParams();
- }
-
- if (requestParameters.file !== undefined) {
- formParams.append('file', requestParameters.file as any);
- }
-
- const response = await this.request({
- path: `/user/profile-image`,
- method: 'POST',
- headers: headerParameters,
- query: queryParameters,
- body: formParams,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => CreateProfileImageResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async createProfileImage(requestParameters: CreateProfileImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateProfileImageResponseDto> {
- const response = await this.createProfileImageRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async createUserRaw(requestParameters: CreateUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponseDto>> {
- if (requestParameters.createUserDto === null || requestParameters.createUserDto === undefined) {
- throw new runtime.RequiredError('createUserDto','Required parameter requestParameters.createUserDto was null or undefined when calling createUser.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- headerParameters['Content-Type'] = 'application/json';
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/user`,
- method: 'POST',
- headers: headerParameters,
- query: queryParameters,
- body: CreateUserDtoToJSON(requestParameters.createUserDto),
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => UserResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async createUser(requestParameters: CreateUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponseDto> {
- const response = await this.createUserRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async deleteProfileImageRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/user/profile-image`,
- method: 'DELETE',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.VoidApiResponse(response);
- }
-
- /**
- */
- async deleteProfileImage(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
- await this.deleteProfileImageRaw(initOverrides);
- }
-
- /**
- */
- async deleteUserRaw(requestParameters: DeleteUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponseDto>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling deleteUser.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/user/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'DELETE',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => UserResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async deleteUser(requestParameters: DeleteUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponseDto> {
- const response = await this.deleteUserRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async getAllUsersRaw(requestParameters: GetAllUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<UserResponseDto>>> {
- if (requestParameters.isAll === null || requestParameters.isAll === undefined) {
- throw new runtime.RequiredError('isAll','Required parameter requestParameters.isAll was null or undefined when calling getAllUsers.');
- }
-
- const queryParameters: any = {};
-
- if (requestParameters.isAll !== undefined) {
- queryParameters['isAll'] = requestParameters.isAll;
- }
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/user`,
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UserResponseDtoFromJSON));
- }
-
- /**
- */
- async getAllUsers(requestParameters: GetAllUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<UserResponseDto>> {
- const response = await this.getAllUsersRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async getMyUserInfoRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponseDto>> {
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/user/me`,
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => UserResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async getMyUserInfo(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponseDto> {
- const response = await this.getMyUserInfoRaw(initOverrides);
- return await response.value();
- }
-
- /**
- */
- async getProfileImageRaw(requestParameters: GetProfileImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getProfileImage.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/user/profile-image/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.BlobApiResponse(response);
- }
-
- /**
- */
- async getProfileImage(requestParameters: GetProfileImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob> {
- const response = await this.getProfileImageRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async getUserByIdRaw(requestParameters: GetUserByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponseDto>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getUserById.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/user/info/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'GET',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => UserResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async getUserById(requestParameters: GetUserByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponseDto> {
- const response = await this.getUserByIdRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async restoreUserRaw(requestParameters: RestoreUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponseDto>> {
- if (requestParameters.id === null || requestParameters.id === undefined) {
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling restoreUser.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/user/{id}/restore`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
- method: 'POST',
- headers: headerParameters,
- query: queryParameters,
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => UserResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async restoreUser(requestParameters: RestoreUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponseDto> {
- const response = await this.restoreUserRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
- /**
- */
- async updateUserRaw(requestParameters: UpdateUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponseDto>> {
- if (requestParameters.updateUserDto === null || requestParameters.updateUserDto === undefined) {
- throw new runtime.RequiredError('updateUserDto','Required parameter requestParameters.updateUserDto was null or undefined when calling updateUser.');
- }
-
- const queryParameters: any = {};
-
- const headerParameters: runtime.HTTPHeaders = {};
-
- headerParameters['Content-Type'] = 'application/json';
-
- if (this.configuration && this.configuration.apiKey) {
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
- }
-
- if (this.configuration && this.configuration.accessToken) {
- const token = this.configuration.accessToken;
- const tokenString = await token("bearer", []);
-
- if (tokenString) {
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
- }
- }
- const response = await this.request({
- path: `/user`,
- method: 'PUT',
- headers: headerParameters,
- query: queryParameters,
- body: UpdateUserDtoToJSON(requestParameters.updateUserDto),
- }, initOverrides);
-
- return new runtime.JSONApiResponse(response, (jsonValue) => UserResponseDtoFromJSON(jsonValue));
- }
-
- /**
- */
- async updateUser(requestParameters: UpdateUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponseDto> {
- const response = await this.updateUserRaw(requestParameters, initOverrides);
- return await response.value();
- }
-
-}
diff --git a/open-api/typescript-sdk/fetch-client/apis/index.ts b/open-api/typescript-sdk/fetch-client/apis/index.ts
deleted file mode 100644
index 465777a562..0000000000
--- a/open-api/typescript-sdk/fetch-client/apis/index.ts
+++ /dev/null
@@ -1,22 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-export * from './APIKeyApi';
-export * from './ActivityApi';
-export * from './AlbumApi';
-export * from './AssetApi';
-export * from './AuditApi';
-export * from './AuthenticationApi';
-export * from './DownloadApi';
-export * from './FaceApi';
-export * from './JobApi';
-export * from './LibraryApi';
-export * from './OAuthApi';
-export * from './PartnerApi';
-export * from './PersonApi';
-export * from './SearchApi';
-export * from './ServerInfoApi';
-export * from './SharedLinkApi';
-export * from './SystemConfigApi';
-export * from './TagApi';
-export * from './TrashApi';
-export * from './UserApi';
diff --git a/open-api/typescript-sdk/fetch-client/index.ts b/open-api/typescript-sdk/fetch-client/index.ts
deleted file mode 100644
index bebe8bbbe2..0000000000
--- a/open-api/typescript-sdk/fetch-client/index.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-export * from './runtime';
-export * from './apis/index';
-export * from './models/index';
diff --git a/open-api/typescript-sdk/fetch-client/models/APIKeyCreateDto.ts b/open-api/typescript-sdk/fetch-client/models/APIKeyCreateDto.ts
deleted file mode 100644
index ed88f1d622..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/APIKeyCreateDto.ts
+++ /dev/null
@@ -1,65 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface APIKeyCreateDto
- */
-export interface APIKeyCreateDto {
- /**
- *
- * @type {string}
- * @memberof APIKeyCreateDto
- */
- name?: string;
-}
-
-/**
- * Check if a given object implements the APIKeyCreateDto interface.
- */
-export function instanceOfAPIKeyCreateDto(value: object): boolean {
- let isInstance = true;
-
- return isInstance;
-}
-
-export function APIKeyCreateDtoFromJSON(json: any): APIKeyCreateDto {
- return APIKeyCreateDtoFromJSONTyped(json, false);
-}
-
-export function APIKeyCreateDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): APIKeyCreateDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'name': !exists(json, 'name') ? undefined : json['name'],
- };
-}
-
-export function APIKeyCreateDtoToJSON(value?: APIKeyCreateDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'name': value.name,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/APIKeyCreateResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/APIKeyCreateResponseDto.ts
deleted file mode 100644
index d0c0bd3426..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/APIKeyCreateResponseDto.ts
+++ /dev/null
@@ -1,82 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-import type { APIKeyResponseDto } from './APIKeyResponseDto';
-import {
- APIKeyResponseDtoFromJSON,
- APIKeyResponseDtoFromJSONTyped,
- APIKeyResponseDtoToJSON,
-} from './APIKeyResponseDto';
-
-/**
- *
- * @export
- * @interface APIKeyCreateResponseDto
- */
-export interface APIKeyCreateResponseDto {
- /**
- *
- * @type {APIKeyResponseDto}
- * @memberof APIKeyCreateResponseDto
- */
- apiKey: APIKeyResponseDto;
- /**
- *
- * @type {string}
- * @memberof APIKeyCreateResponseDto
- */
- secret: string;
-}
-
-/**
- * Check if a given object implements the APIKeyCreateResponseDto interface.
- */
-export function instanceOfAPIKeyCreateResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "apiKey" in value;
- isInstance = isInstance && "secret" in value;
-
- return isInstance;
-}
-
-export function APIKeyCreateResponseDtoFromJSON(json: any): APIKeyCreateResponseDto {
- return APIKeyCreateResponseDtoFromJSONTyped(json, false);
-}
-
-export function APIKeyCreateResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): APIKeyCreateResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'apiKey': APIKeyResponseDtoFromJSON(json['apiKey']),
- 'secret': json['secret'],
- };
-}
-
-export function APIKeyCreateResponseDtoToJSON(value?: APIKeyCreateResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'apiKey': APIKeyResponseDtoToJSON(value.apiKey),
- 'secret': value.secret,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/APIKeyResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/APIKeyResponseDto.ts
deleted file mode 100644
index 72ed62793c..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/APIKeyResponseDto.ts
+++ /dev/null
@@ -1,93 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface APIKeyResponseDto
- */
-export interface APIKeyResponseDto {
- /**
- *
- * @type {Date}
- * @memberof APIKeyResponseDto
- */
- createdAt: Date;
- /**
- *
- * @type {string}
- * @memberof APIKeyResponseDto
- */
- id: string;
- /**
- *
- * @type {string}
- * @memberof APIKeyResponseDto
- */
- name: string;
- /**
- *
- * @type {Date}
- * @memberof APIKeyResponseDto
- */
- updatedAt: Date;
-}
-
-/**
- * Check if a given object implements the APIKeyResponseDto interface.
- */
-export function instanceOfAPIKeyResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "createdAt" in value;
- isInstance = isInstance && "id" in value;
- isInstance = isInstance && "name" in value;
- isInstance = isInstance && "updatedAt" in value;
-
- return isInstance;
-}
-
-export function APIKeyResponseDtoFromJSON(json: any): APIKeyResponseDto {
- return APIKeyResponseDtoFromJSONTyped(json, false);
-}
-
-export function APIKeyResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): APIKeyResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'createdAt': (new Date(json['createdAt'])),
- 'id': json['id'],
- 'name': json['name'],
- 'updatedAt': (new Date(json['updatedAt'])),
- };
-}
-
-export function APIKeyResponseDtoToJSON(value?: APIKeyResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'createdAt': (value.createdAt.toISOString()),
- 'id': value.id,
- 'name': value.name,
- 'updatedAt': (value.updatedAt.toISOString()),
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/APIKeyUpdateDto.ts b/open-api/typescript-sdk/fetch-client/models/APIKeyUpdateDto.ts
deleted file mode 100644
index d32e13c865..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/APIKeyUpdateDto.ts
+++ /dev/null
@@ -1,66 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface APIKeyUpdateDto
- */
-export interface APIKeyUpdateDto {
- /**
- *
- * @type {string}
- * @memberof APIKeyUpdateDto
- */
- name: string;
-}
-
-/**
- * Check if a given object implements the APIKeyUpdateDto interface.
- */
-export function instanceOfAPIKeyUpdateDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "name" in value;
-
- return isInstance;
-}
-
-export function APIKeyUpdateDtoFromJSON(json: any): APIKeyUpdateDto {
- return APIKeyUpdateDtoFromJSONTyped(json, false);
-}
-
-export function APIKeyUpdateDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): APIKeyUpdateDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'name': json['name'],
- };
-}
-
-export function APIKeyUpdateDtoToJSON(value?: APIKeyUpdateDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'name': value.name,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/ActivityCreateDto.ts b/open-api/typescript-sdk/fetch-client/models/ActivityCreateDto.ts
deleted file mode 100644
index 7f27de3537..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/ActivityCreateDto.ts
+++ /dev/null
@@ -1,98 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-import type { ReactionType } from './ReactionType';
-import {
- ReactionTypeFromJSON,
- ReactionTypeFromJSONTyped,
- ReactionTypeToJSON,
-} from './ReactionType';
-
-/**
- *
- * @export
- * @interface ActivityCreateDto
- */
-export interface ActivityCreateDto {
- /**
- *
- * @type {string}
- * @memberof ActivityCreateDto
- */
- albumId: string;
- /**
- *
- * @type {string}
- * @memberof ActivityCreateDto
- */
- assetId?: string;
- /**
- *
- * @type {string}
- * @memberof ActivityCreateDto
- */
- comment?: string;
- /**
- *
- * @type {ReactionType}
- * @memberof ActivityCreateDto
- */
- type: ReactionType;
-}
-
-/**
- * Check if a given object implements the ActivityCreateDto interface.
- */
-export function instanceOfActivityCreateDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "albumId" in value;
- isInstance = isInstance && "type" in value;
-
- return isInstance;
-}
-
-export function ActivityCreateDtoFromJSON(json: any): ActivityCreateDto {
- return ActivityCreateDtoFromJSONTyped(json, false);
-}
-
-export function ActivityCreateDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActivityCreateDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'albumId': json['albumId'],
- 'assetId': !exists(json, 'assetId') ? undefined : json['assetId'],
- 'comment': !exists(json, 'comment') ? undefined : json['comment'],
- 'type': ReactionTypeFromJSON(json['type']),
- };
-}
-
-export function ActivityCreateDtoToJSON(value?: ActivityCreateDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'albumId': value.albumId,
- 'assetId': value.assetId,
- 'comment': value.comment,
- 'type': ReactionTypeToJSON(value.type),
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/ActivityResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/ActivityResponseDto.ts
deleted file mode 100644
index 762bd62aa9..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/ActivityResponseDto.ts
+++ /dev/null
@@ -1,128 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-import type { UserDto } from './UserDto';
-import {
- UserDtoFromJSON,
- UserDtoFromJSONTyped,
- UserDtoToJSON,
-} from './UserDto';
-
-/**
- *
- * @export
- * @interface ActivityResponseDto
- */
-export interface ActivityResponseDto {
- /**
- *
- * @type {string}
- * @memberof ActivityResponseDto
- */
- assetId: string | null;
- /**
- *
- * @type {string}
- * @memberof ActivityResponseDto
- */
- comment?: string | null;
- /**
- *
- * @type {Date}
- * @memberof ActivityResponseDto
- */
- createdAt: Date;
- /**
- *
- * @type {string}
- * @memberof ActivityResponseDto
- */
- id: string;
- /**
- *
- * @type {string}
- * @memberof ActivityResponseDto
- */
- type: ActivityResponseDtoTypeEnum;
- /**
- *
- * @type {UserDto}
- * @memberof ActivityResponseDto
- */
- user: UserDto;
-}
-
-
-/**
- * @export
- */
-export const ActivityResponseDtoTypeEnum = {
- Comment: 'comment',
- Like: 'like'
-} as const;
-export type ActivityResponseDtoTypeEnum = typeof ActivityResponseDtoTypeEnum[keyof typeof ActivityResponseDtoTypeEnum];
-
-
-/**
- * Check if a given object implements the ActivityResponseDto interface.
- */
-export function instanceOfActivityResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "assetId" in value;
- isInstance = isInstance && "createdAt" in value;
- isInstance = isInstance && "id" in value;
- isInstance = isInstance && "type" in value;
- isInstance = isInstance && "user" in value;
-
- return isInstance;
-}
-
-export function ActivityResponseDtoFromJSON(json: any): ActivityResponseDto {
- return ActivityResponseDtoFromJSONTyped(json, false);
-}
-
-export function ActivityResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActivityResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'assetId': json['assetId'],
- 'comment': !exists(json, 'comment') ? undefined : json['comment'],
- 'createdAt': (new Date(json['createdAt'])),
- 'id': json['id'],
- 'type': json['type'],
- 'user': UserDtoFromJSON(json['user']),
- };
-}
-
-export function ActivityResponseDtoToJSON(value?: ActivityResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'assetId': value.assetId,
- 'comment': value.comment,
- 'createdAt': (value.createdAt.toISOString()),
- 'id': value.id,
- 'type': value.type,
- 'user': UserDtoToJSON(value.user),
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/ActivityStatisticsResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/ActivityStatisticsResponseDto.ts
deleted file mode 100644
index 21523f4167..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/ActivityStatisticsResponseDto.ts
+++ /dev/null
@@ -1,66 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface ActivityStatisticsResponseDto
- */
-export interface ActivityStatisticsResponseDto {
- /**
- *
- * @type {number}
- * @memberof ActivityStatisticsResponseDto
- */
- comments: number;
-}
-
-/**
- * Check if a given object implements the ActivityStatisticsResponseDto interface.
- */
-export function instanceOfActivityStatisticsResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "comments" in value;
-
- return isInstance;
-}
-
-export function ActivityStatisticsResponseDtoFromJSON(json: any): ActivityStatisticsResponseDto {
- return ActivityStatisticsResponseDtoFromJSONTyped(json, false);
-}
-
-export function ActivityStatisticsResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActivityStatisticsResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'comments': json['comments'],
- };
-}
-
-export function ActivityStatisticsResponseDtoToJSON(value?: ActivityStatisticsResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'comments': value.comments,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/AddUsersDto.ts b/open-api/typescript-sdk/fetch-client/models/AddUsersDto.ts
deleted file mode 100644
index 54f1857a0c..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/AddUsersDto.ts
+++ /dev/null
@@ -1,66 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface AddUsersDto
- */
-export interface AddUsersDto {
- /**
- *
- * @type {Array<string>}
- * @memberof AddUsersDto
- */
- sharedUserIds: Array<string>;
-}
-
-/**
- * Check if a given object implements the AddUsersDto interface.
- */
-export function instanceOfAddUsersDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "sharedUserIds" in value;
-
- return isInstance;
-}
-
-export function AddUsersDtoFromJSON(json: any): AddUsersDto {
- return AddUsersDtoFromJSONTyped(json, false);
-}
-
-export function AddUsersDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddUsersDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'sharedUserIds': json['sharedUserIds'],
- };
-}
-
-export function AddUsersDtoToJSON(value?: AddUsersDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'sharedUserIds': value.sharedUserIds,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/AlbumCountResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/AlbumCountResponseDto.ts
deleted file mode 100644
index 3ba3649a14..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/AlbumCountResponseDto.ts
+++ /dev/null
@@ -1,84 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface AlbumCountResponseDto
- */
-export interface AlbumCountResponseDto {
- /**
- *
- * @type {number}
- * @memberof AlbumCountResponseDto
- */
- notShared: number;
- /**
- *
- * @type {number}
- * @memberof AlbumCountResponseDto
- */
- owned: number;
- /**
- *
- * @type {number}
- * @memberof AlbumCountResponseDto
- */
- shared: number;
-}
-
-/**
- * Check if a given object implements the AlbumCountResponseDto interface.
- */
-export function instanceOfAlbumCountResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "notShared" in value;
- isInstance = isInstance && "owned" in value;
- isInstance = isInstance && "shared" in value;
-
- return isInstance;
-}
-
-export function AlbumCountResponseDtoFromJSON(json: any): AlbumCountResponseDto {
- return AlbumCountResponseDtoFromJSONTyped(json, false);
-}
-
-export function AlbumCountResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AlbumCountResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'notShared': json['notShared'],
- 'owned': json['owned'],
- 'shared': json['shared'],
- };
-}
-
-export function AlbumCountResponseDtoToJSON(value?: AlbumCountResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'notShared': value.notShared,
- 'owned': value.owned,
- 'shared': value.shared,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/AlbumResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/AlbumResponseDto.ts
deleted file mode 100644
index af559f1584..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/AlbumResponseDto.ts
+++ /dev/null
@@ -1,220 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-import type { AssetResponseDto } from './AssetResponseDto';
-import {
- AssetResponseDtoFromJSON,
- AssetResponseDtoFromJSONTyped,
- AssetResponseDtoToJSON,
-} from './AssetResponseDto';
-import type { UserResponseDto } from './UserResponseDto';
-import {
- UserResponseDtoFromJSON,
- UserResponseDtoFromJSONTyped,
- UserResponseDtoToJSON,
-} from './UserResponseDto';
-
-/**
- *
- * @export
- * @interface AlbumResponseDto
- */
-export interface AlbumResponseDto {
- /**
- *
- * @type {string}
- * @memberof AlbumResponseDto
- */
- albumName: string;
- /**
- *
- * @type {string}
- * @memberof AlbumResponseDto
- */
- albumThumbnailAssetId: string | null;
- /**
- *
- * @type {number}
- * @memberof AlbumResponseDto
- */
- assetCount: number;
- /**
- *
- * @type {Array<AssetResponseDto>}
- * @memberof AlbumResponseDto
- */
- assets: Array<AssetResponseDto>;
- /**
- *
- * @type {Date}
- * @memberof AlbumResponseDto
- */
- createdAt: Date;
- /**
- *
- * @type {string}
- * @memberof AlbumResponseDto
- */
- description: string;
- /**
- *
- * @type {Date}
- * @memberof AlbumResponseDto
- */
- endDate?: Date;
- /**
- *
- * @type {boolean}
- * @memberof AlbumResponseDto
- */
- hasSharedLink: boolean;
- /**
- *
- * @type {string}
- * @memberof AlbumResponseDto
- */
- id: string;
- /**
- *
- * @type {boolean}
- * @memberof AlbumResponseDto
- */
- isActivityEnabled: boolean;
- /**
- *
- * @type {Date}
- * @memberof AlbumResponseDto
- */
- lastModifiedAssetTimestamp?: Date;
- /**
- *
- * @type {UserResponseDto}
- * @memberof AlbumResponseDto
- */
- owner: UserResponseDto;
- /**
- *
- * @type {string}
- * @memberof AlbumResponseDto
- */
- ownerId: string;
- /**
- *
- * @type {boolean}
- * @memberof AlbumResponseDto
- */
- shared: boolean;
- /**
- *
- * @type {Array<UserResponseDto>}
- * @memberof AlbumResponseDto
- */
- sharedUsers: Array<UserResponseDto>;
- /**
- *
- * @type {Date}
- * @memberof AlbumResponseDto
- */
- startDate?: Date;
- /**
- *
- * @type {Date}
- * @memberof AlbumResponseDto
- */
- updatedAt: Date;
-}
-
-/**
- * Check if a given object implements the AlbumResponseDto interface.
- */
-export function instanceOfAlbumResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "albumName" in value;
- isInstance = isInstance && "albumThumbnailAssetId" in value;
- isInstance = isInstance && "assetCount" in value;
- isInstance = isInstance && "assets" in value;
- isInstance = isInstance && "createdAt" in value;
- isInstance = isInstance && "description" in value;
- isInstance = isInstance && "hasSharedLink" in value;
- isInstance = isInstance && "id" in value;
- isInstance = isInstance && "isActivityEnabled" in value;
- isInstance = isInstance && "owner" in value;
- isInstance = isInstance && "ownerId" in value;
- isInstance = isInstance && "shared" in value;
- isInstance = isInstance && "sharedUsers" in value;
- isInstance = isInstance && "updatedAt" in value;
-
- return isInstance;
-}
-
-export function AlbumResponseDtoFromJSON(json: any): AlbumResponseDto {
- return AlbumResponseDtoFromJSONTyped(json, false);
-}
-
-export function AlbumResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AlbumResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'albumName': json['albumName'],
- 'albumThumbnailAssetId': json['albumThumbnailAssetId'],
- 'assetCount': json['assetCount'],
- 'assets': ((json['assets'] as Array<any>).map(AssetResponseDtoFromJSON)),
- 'createdAt': (new Date(json['createdAt'])),
- 'description': json['description'],
- 'endDate': !exists(json, 'endDate') ? undefined : (new Date(json['endDate'])),
- 'hasSharedLink': json['hasSharedLink'],
- 'id': json['id'],
- 'isActivityEnabled': json['isActivityEnabled'],
- 'lastModifiedAssetTimestamp': !exists(json, 'lastModifiedAssetTimestamp') ? undefined : (new Date(json['lastModifiedAssetTimestamp'])),
- 'owner': UserResponseDtoFromJSON(json['owner']),
- 'ownerId': json['ownerId'],
- 'shared': json['shared'],
- 'sharedUsers': ((json['sharedUsers'] as Array<any>).map(UserResponseDtoFromJSON)),
- 'startDate': !exists(json, 'startDate') ? undefined : (new Date(json['startDate'])),
- 'updatedAt': (new Date(json['updatedAt'])),
- };
-}
-
-export function AlbumResponseDtoToJSON(value?: AlbumResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'albumName': value.albumName,
- 'albumThumbnailAssetId': value.albumThumbnailAssetId,
- 'assetCount': value.assetCount,
- 'assets': ((value.assets as Array<any>).map(AssetResponseDtoToJSON)),
- 'createdAt': (value.createdAt.toISOString()),
- 'description': value.description,
- 'endDate': value.endDate === undefined ? undefined : (value.endDate.toISOString()),
- 'hasSharedLink': value.hasSharedLink,
- 'id': value.id,
- 'isActivityEnabled': value.isActivityEnabled,
- 'lastModifiedAssetTimestamp': value.lastModifiedAssetTimestamp === undefined ? undefined : (value.lastModifiedAssetTimestamp.toISOString()),
- 'owner': UserResponseDtoToJSON(value.owner),
- 'ownerId': value.ownerId,
- 'shared': value.shared,
- 'sharedUsers': ((value.sharedUsers as Array<any>).map(UserResponseDtoToJSON)),
- 'startDate': value.startDate === undefined ? undefined : (value.startDate.toISOString()),
- 'updatedAt': (value.updatedAt.toISOString()),
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/AllJobStatusResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/AllJobStatusResponseDto.ts
deleted file mode 100644
index 69cdb72f65..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/AllJobStatusResponseDto.ts
+++ /dev/null
@@ -1,172 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-import type { JobStatusDto } from './JobStatusDto';
-import {
- JobStatusDtoFromJSON,
- JobStatusDtoFromJSONTyped,
- JobStatusDtoToJSON,
-} from './JobStatusDto';
-
-/**
- *
- * @export
- * @interface AllJobStatusResponseDto
- */
-export interface AllJobStatusResponseDto {
- /**
- *
- * @type {JobStatusDto}
- * @memberof AllJobStatusResponseDto
- */
- backgroundTask: JobStatusDto;
- /**
- *
- * @type {JobStatusDto}
- * @memberof AllJobStatusResponseDto
- */
- faceDetection: JobStatusDto;
- /**
- *
- * @type {JobStatusDto}
- * @memberof AllJobStatusResponseDto
- */
- facialRecognition: JobStatusDto;
- /**
- *
- * @type {JobStatusDto}
- * @memberof AllJobStatusResponseDto
- */
- library: JobStatusDto;
- /**
- *
- * @type {JobStatusDto}
- * @memberof AllJobStatusResponseDto
- */
- metadataExtraction: JobStatusDto;
- /**
- *
- * @type {JobStatusDto}
- * @memberof AllJobStatusResponseDto
- */
- migration: JobStatusDto;
- /**
- *
- * @type {JobStatusDto}
- * @memberof AllJobStatusResponseDto
- */
- search: JobStatusDto;
- /**
- *
- * @type {JobStatusDto}
- * @memberof AllJobStatusResponseDto
- */
- sidecar: JobStatusDto;
- /**
- *
- * @type {JobStatusDto}
- * @memberof AllJobStatusResponseDto
- */
- smartSearch: JobStatusDto;
- /**
- *
- * @type {JobStatusDto}
- * @memberof AllJobStatusResponseDto
- */
- storageTemplateMigration: JobStatusDto;
- /**
- *
- * @type {JobStatusDto}
- * @memberof AllJobStatusResponseDto
- */
- thumbnailGeneration: JobStatusDto;
- /**
- *
- * @type {JobStatusDto}
- * @memberof AllJobStatusResponseDto
- */
- videoConversion: JobStatusDto;
-}
-
-/**
- * Check if a given object implements the AllJobStatusResponseDto interface.
- */
-export function instanceOfAllJobStatusResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "backgroundTask" in value;
- isInstance = isInstance && "faceDetection" in value;
- isInstance = isInstance && "facialRecognition" in value;
- isInstance = isInstance && "library" in value;
- isInstance = isInstance && "metadataExtraction" in value;
- isInstance = isInstance && "migration" in value;
- isInstance = isInstance && "search" in value;
- isInstance = isInstance && "sidecar" in value;
- isInstance = isInstance && "smartSearch" in value;
- isInstance = isInstance && "storageTemplateMigration" in value;
- isInstance = isInstance && "thumbnailGeneration" in value;
- isInstance = isInstance && "videoConversion" in value;
-
- return isInstance;
-}
-
-export function AllJobStatusResponseDtoFromJSON(json: any): AllJobStatusResponseDto {
- return AllJobStatusResponseDtoFromJSONTyped(json, false);
-}
-
-export function AllJobStatusResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AllJobStatusResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'backgroundTask': JobStatusDtoFromJSON(json['backgroundTask']),
- 'faceDetection': JobStatusDtoFromJSON(json['faceDetection']),
- 'facialRecognition': JobStatusDtoFromJSON(json['facialRecognition']),
- 'library': JobStatusDtoFromJSON(json['library']),
- 'metadataExtraction': JobStatusDtoFromJSON(json['metadataExtraction']),
- 'migration': JobStatusDtoFromJSON(json['migration']),
- 'search': JobStatusDtoFromJSON(json['search']),
- 'sidecar': JobStatusDtoFromJSON(json['sidecar']),
- 'smartSearch': JobStatusDtoFromJSON(json['smartSearch']),
- 'storageTemplateMigration': JobStatusDtoFromJSON(json['storageTemplateMigration']),
- 'thumbnailGeneration': JobStatusDtoFromJSON(json['thumbnailGeneration']),
- 'videoConversion': JobStatusDtoFromJSON(json['videoConversion']),
- };
-}
-
-export function AllJobStatusResponseDtoToJSON(value?: AllJobStatusResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'backgroundTask': JobStatusDtoToJSON(value.backgroundTask),
- 'faceDetection': JobStatusDtoToJSON(value.faceDetection),
- 'facialRecognition': JobStatusDtoToJSON(value.facialRecognition),
- 'library': JobStatusDtoToJSON(value.library),
- 'metadataExtraction': JobStatusDtoToJSON(value.metadataExtraction),
- 'migration': JobStatusDtoToJSON(value.migration),
- 'search': JobStatusDtoToJSON(value.search),
- 'sidecar': JobStatusDtoToJSON(value.sidecar),
- 'smartSearch': JobStatusDtoToJSON(value.smartSearch),
- 'storageTemplateMigration': JobStatusDtoToJSON(value.storageTemplateMigration),
- 'thumbnailGeneration': JobStatusDtoToJSON(value.thumbnailGeneration),
- 'videoConversion': JobStatusDtoToJSON(value.videoConversion),
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/AssetBulkDeleteDto.ts b/open-api/typescript-sdk/fetch-client/models/AssetBulkDeleteDto.ts
deleted file mode 100644
index d11f7f0632..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/AssetBulkDeleteDto.ts
+++ /dev/null
@@ -1,74 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface AssetBulkDeleteDto
- */
-export interface AssetBulkDeleteDto {
- /**
- *
- * @type {boolean}
- * @memberof AssetBulkDeleteDto
- */
- force?: boolean;
- /**
- *
- * @type {Array<string>}
- * @memberof AssetBulkDeleteDto
- */
- ids: Array<string>;
-}
-
-/**
- * Check if a given object implements the AssetBulkDeleteDto interface.
- */
-export function instanceOfAssetBulkDeleteDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "ids" in value;
-
- return isInstance;
-}
-
-export function AssetBulkDeleteDtoFromJSON(json: any): AssetBulkDeleteDto {
- return AssetBulkDeleteDtoFromJSONTyped(json, false);
-}
-
-export function AssetBulkDeleteDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetBulkDeleteDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'force': !exists(json, 'force') ? undefined : json['force'],
- 'ids': json['ids'],
- };
-}
-
-export function AssetBulkDeleteDtoToJSON(value?: AssetBulkDeleteDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'force': value.force,
- 'ids': value.ids,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/AssetBulkUpdateDto.ts b/open-api/typescript-sdk/fetch-client/models/AssetBulkUpdateDto.ts
deleted file mode 100644
index 53fedefba4..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/AssetBulkUpdateDto.ts
+++ /dev/null
@@ -1,122 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface AssetBulkUpdateDto
- */
-export interface AssetBulkUpdateDto {
- /**
- *
- * @type {string}
- * @memberof AssetBulkUpdateDto
- */
- dateTimeOriginal?: string;
- /**
- *
- * @type {Array<string>}
- * @memberof AssetBulkUpdateDto
- */
- ids: Array<string>;
- /**
- *
- * @type {boolean}
- * @memberof AssetBulkUpdateDto
- */
- isArchived?: boolean;
- /**
- *
- * @type {boolean}
- * @memberof AssetBulkUpdateDto
- */
- isFavorite?: boolean;
- /**
- *
- * @type {number}
- * @memberof AssetBulkUpdateDto
- */
- latitude?: number;
- /**
- *
- * @type {number}
- * @memberof AssetBulkUpdateDto
- */
- longitude?: number;
- /**
- *
- * @type {boolean}
- * @memberof AssetBulkUpdateDto
- */
- removeParent?: boolean;
- /**
- *
- * @type {string}
- * @memberof AssetBulkUpdateDto
- */
- stackParentId?: string;
-}
-
-/**
- * Check if a given object implements the AssetBulkUpdateDto interface.
- */
-export function instanceOfAssetBulkUpdateDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "ids" in value;
-
- return isInstance;
-}
-
-export function AssetBulkUpdateDtoFromJSON(json: any): AssetBulkUpdateDto {
- return AssetBulkUpdateDtoFromJSONTyped(json, false);
-}
-
-export function AssetBulkUpdateDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetBulkUpdateDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'dateTimeOriginal': !exists(json, 'dateTimeOriginal') ? undefined : json['dateTimeOriginal'],
- 'ids': json['ids'],
- 'isArchived': !exists(json, 'isArchived') ? undefined : json['isArchived'],
- 'isFavorite': !exists(json, 'isFavorite') ? undefined : json['isFavorite'],
- 'latitude': !exists(json, 'latitude') ? undefined : json['latitude'],
- 'longitude': !exists(json, 'longitude') ? undefined : json['longitude'],
- 'removeParent': !exists(json, 'removeParent') ? undefined : json['removeParent'],
- 'stackParentId': !exists(json, 'stackParentId') ? undefined : json['stackParentId'],
- };
-}
-
-export function AssetBulkUpdateDtoToJSON(value?: AssetBulkUpdateDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'dateTimeOriginal': value.dateTimeOriginal,
- 'ids': value.ids,
- 'isArchived': value.isArchived,
- 'isFavorite': value.isFavorite,
- 'latitude': value.latitude,
- 'longitude': value.longitude,
- 'removeParent': value.removeParent,
- 'stackParentId': value.stackParentId,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/AssetBulkUploadCheckDto.ts b/open-api/typescript-sdk/fetch-client/models/AssetBulkUploadCheckDto.ts
deleted file mode 100644
index 0e509e24ce..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/AssetBulkUploadCheckDto.ts
+++ /dev/null
@@ -1,73 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-import type { AssetBulkUploadCheckItem } from './AssetBulkUploadCheckItem';
-import {
- AssetBulkUploadCheckItemFromJSON,
- AssetBulkUploadCheckItemFromJSONTyped,
- AssetBulkUploadCheckItemToJSON,
-} from './AssetBulkUploadCheckItem';
-
-/**
- *
- * @export
- * @interface AssetBulkUploadCheckDto
- */
-export interface AssetBulkUploadCheckDto {
- /**
- *
- * @type {Array<AssetBulkUploadCheckItem>}
- * @memberof AssetBulkUploadCheckDto
- */
- assets: Array<AssetBulkUploadCheckItem>;
-}
-
-/**
- * Check if a given object implements the AssetBulkUploadCheckDto interface.
- */
-export function instanceOfAssetBulkUploadCheckDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "assets" in value;
-
- return isInstance;
-}
-
-export function AssetBulkUploadCheckDtoFromJSON(json: any): AssetBulkUploadCheckDto {
- return AssetBulkUploadCheckDtoFromJSONTyped(json, false);
-}
-
-export function AssetBulkUploadCheckDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetBulkUploadCheckDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'assets': ((json['assets'] as Array<any>).map(AssetBulkUploadCheckItemFromJSON)),
- };
-}
-
-export function AssetBulkUploadCheckDtoToJSON(value?: AssetBulkUploadCheckDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'assets': ((value.assets as Array<any>).map(AssetBulkUploadCheckItemToJSON)),
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/AssetBulkUploadCheckItem.ts b/open-api/typescript-sdk/fetch-client/models/AssetBulkUploadCheckItem.ts
deleted file mode 100644
index 6fc8bb09cf..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/AssetBulkUploadCheckItem.ts
+++ /dev/null
@@ -1,75 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface AssetBulkUploadCheckItem
- */
-export interface AssetBulkUploadCheckItem {
- /**
- * base64 or hex encoded sha1 hash
- * @type {string}
- * @memberof AssetBulkUploadCheckItem
- */
- checksum: string;
- /**
- *
- * @type {string}
- * @memberof AssetBulkUploadCheckItem
- */
- id: string;
-}
-
-/**
- * Check if a given object implements the AssetBulkUploadCheckItem interface.
- */
-export function instanceOfAssetBulkUploadCheckItem(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "checksum" in value;
- isInstance = isInstance && "id" in value;
-
- return isInstance;
-}
-
-export function AssetBulkUploadCheckItemFromJSON(json: any): AssetBulkUploadCheckItem {
- return AssetBulkUploadCheckItemFromJSONTyped(json, false);
-}
-
-export function AssetBulkUploadCheckItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetBulkUploadCheckItem {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'checksum': json['checksum'],
- 'id': json['id'],
- };
-}
-
-export function AssetBulkUploadCheckItemToJSON(value?: AssetBulkUploadCheckItem | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'checksum': value.checksum,
- 'id': value.id,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/AssetBulkUploadCheckResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/AssetBulkUploadCheckResponseDto.ts
deleted file mode 100644
index caa6e62374..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/AssetBulkUploadCheckResponseDto.ts
+++ /dev/null
@@ -1,73 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-import type { AssetBulkUploadCheckResult } from './AssetBulkUploadCheckResult';
-import {
- AssetBulkUploadCheckResultFromJSON,
- AssetBulkUploadCheckResultFromJSONTyped,
- AssetBulkUploadCheckResultToJSON,
-} from './AssetBulkUploadCheckResult';
-
-/**
- *
- * @export
- * @interface AssetBulkUploadCheckResponseDto
- */
-export interface AssetBulkUploadCheckResponseDto {
- /**
- *
- * @type {Array<AssetBulkUploadCheckResult>}
- * @memberof AssetBulkUploadCheckResponseDto
- */
- results: Array<AssetBulkUploadCheckResult>;
-}
-
-/**
- * Check if a given object implements the AssetBulkUploadCheckResponseDto interface.
- */
-export function instanceOfAssetBulkUploadCheckResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "results" in value;
-
- return isInstance;
-}
-
-export function AssetBulkUploadCheckResponseDtoFromJSON(json: any): AssetBulkUploadCheckResponseDto {
- return AssetBulkUploadCheckResponseDtoFromJSONTyped(json, false);
-}
-
-export function AssetBulkUploadCheckResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetBulkUploadCheckResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'results': ((json['results'] as Array<any>).map(AssetBulkUploadCheckResultFromJSON)),
- };
-}
-
-export function AssetBulkUploadCheckResponseDtoToJSON(value?: AssetBulkUploadCheckResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'results': ((value.results as Array<any>).map(AssetBulkUploadCheckResultToJSON)),
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/AssetBulkUploadCheckResult.ts b/open-api/typescript-sdk/fetch-client/models/AssetBulkUploadCheckResult.ts
deleted file mode 100644
index ad106b2723..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/AssetBulkUploadCheckResult.ts
+++ /dev/null
@@ -1,111 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface AssetBulkUploadCheckResult
- */
-export interface AssetBulkUploadCheckResult {
- /**
- *
- * @type {string}
- * @memberof AssetBulkUploadCheckResult
- */
- action: AssetBulkUploadCheckResultActionEnum;
- /**
- *
- * @type {string}
- * @memberof AssetBulkUploadCheckResult
- */
- assetId?: string;
- /**
- *
- * @type {string}
- * @memberof AssetBulkUploadCheckResult
- */
- id: string;
- /**
- *
- * @type {string}
- * @memberof AssetBulkUploadCheckResult
- */
- reason?: AssetBulkUploadCheckResultReasonEnum;
-}
-
-
-/**
- * @export
- */
-export const AssetBulkUploadCheckResultActionEnum = {
- Accept: 'accept',
- Reject: 'reject'
-} as const;
-export type AssetBulkUploadCheckResultActionEnum = typeof AssetBulkUploadCheckResultActionEnum[keyof typeof AssetBulkUploadCheckResultActionEnum];
-
-/**
- * @export
- */
-export const AssetBulkUploadCheckResultReasonEnum = {
- Duplicate: 'duplicate',
- UnsupportedFormat: 'unsupported-format'
-} as const;
-export type AssetBulkUploadCheckResultReasonEnum = typeof AssetBulkUploadCheckResultReasonEnum[keyof typeof AssetBulkUploadCheckResultReasonEnum];
-
-
-/**
- * Check if a given object implements the AssetBulkUploadCheckResult interface.
- */
-export function instanceOfAssetBulkUploadCheckResult(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "action" in value;
- isInstance = isInstance && "id" in value;
-
- return isInstance;
-}
-
-export function AssetBulkUploadCheckResultFromJSON(json: any): AssetBulkUploadCheckResult {
- return AssetBulkUploadCheckResultFromJSONTyped(json, false);
-}
-
-export function AssetBulkUploadCheckResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetBulkUploadCheckResult {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'action': json['action'],
- 'assetId': !exists(json, 'assetId') ? undefined : json['assetId'],
- 'id': json['id'],
- 'reason': !exists(json, 'reason') ? undefined : json['reason'],
- };
-}
-
-export function AssetBulkUploadCheckResultToJSON(value?: AssetBulkUploadCheckResult | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'action': value.action,
- 'assetId': value.assetId,
- 'id': value.id,
- 'reason': value.reason,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/AssetFaceResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/AssetFaceResponseDto.ts
deleted file mode 100644
index e4a34b512c..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/AssetFaceResponseDto.ts
+++ /dev/null
@@ -1,136 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-import type { PersonResponseDto } from './PersonResponseDto';
-import {
- PersonResponseDtoFromJSON,
- PersonResponseDtoFromJSONTyped,
- PersonResponseDtoToJSON,
-} from './PersonResponseDto';
-
-/**
- *
- * @export
- * @interface AssetFaceResponseDto
- */
-export interface AssetFaceResponseDto {
- /**
- *
- * @type {number}
- * @memberof AssetFaceResponseDto
- */
- boundingBoxX1: number;
- /**
- *
- * @type {number}
- * @memberof AssetFaceResponseDto
- */
- boundingBoxX2: number;
- /**
- *
- * @type {number}
- * @memberof AssetFaceResponseDto
- */
- boundingBoxY1: number;
- /**
- *
- * @type {number}
- * @memberof AssetFaceResponseDto
- */
- boundingBoxY2: number;
- /**
- *
- * @type {string}
- * @memberof AssetFaceResponseDto
- */
- id: string;
- /**
- *
- * @type {number}
- * @memberof AssetFaceResponseDto
- */
- imageHeight: number;
- /**
- *
- * @type {number}
- * @memberof AssetFaceResponseDto
- */
- imageWidth: number;
- /**
- *
- * @type {PersonResponseDto}
- * @memberof AssetFaceResponseDto
- */
- person: PersonResponseDto | null;
-}
-
-/**
- * Check if a given object implements the AssetFaceResponseDto interface.
- */
-export function instanceOfAssetFaceResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "boundingBoxX1" in value;
- isInstance = isInstance && "boundingBoxX2" in value;
- isInstance = isInstance && "boundingBoxY1" in value;
- isInstance = isInstance && "boundingBoxY2" in value;
- isInstance = isInstance && "id" in value;
- isInstance = isInstance && "imageHeight" in value;
- isInstance = isInstance && "imageWidth" in value;
- isInstance = isInstance && "person" in value;
-
- return isInstance;
-}
-
-export function AssetFaceResponseDtoFromJSON(json: any): AssetFaceResponseDto {
- return AssetFaceResponseDtoFromJSONTyped(json, false);
-}
-
-export function AssetFaceResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetFaceResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'boundingBoxX1': json['boundingBoxX1'],
- 'boundingBoxX2': json['boundingBoxX2'],
- 'boundingBoxY1': json['boundingBoxY1'],
- 'boundingBoxY2': json['boundingBoxY2'],
- 'id': json['id'],
- 'imageHeight': json['imageHeight'],
- 'imageWidth': json['imageWidth'],
- 'person': PersonResponseDtoFromJSON(json['person']),
- };
-}
-
-export function AssetFaceResponseDtoToJSON(value?: AssetFaceResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'boundingBoxX1': value.boundingBoxX1,
- 'boundingBoxX2': value.boundingBoxX2,
- 'boundingBoxY1': value.boundingBoxY1,
- 'boundingBoxY2': value.boundingBoxY2,
- 'id': value.id,
- 'imageHeight': value.imageHeight,
- 'imageWidth': value.imageWidth,
- 'person': PersonResponseDtoToJSON(value.person),
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/AssetFaceUpdateDto.ts b/open-api/typescript-sdk/fetch-client/models/AssetFaceUpdateDto.ts
deleted file mode 100644
index 4aac731fdd..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/AssetFaceUpdateDto.ts
+++ /dev/null
@@ -1,73 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-import type { AssetFaceUpdateItem } from './AssetFaceUpdateItem';
-import {
- AssetFaceUpdateItemFromJSON,
- AssetFaceUpdateItemFromJSONTyped,
- AssetFaceUpdateItemToJSON,
-} from './AssetFaceUpdateItem';
-
-/**
- *
- * @export
- * @interface AssetFaceUpdateDto
- */
-export interface AssetFaceUpdateDto {
- /**
- *
- * @type {Array<AssetFaceUpdateItem>}
- * @memberof AssetFaceUpdateDto
- */
- data: Array<AssetFaceUpdateItem>;
-}
-
-/**
- * Check if a given object implements the AssetFaceUpdateDto interface.
- */
-export function instanceOfAssetFaceUpdateDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "data" in value;
-
- return isInstance;
-}
-
-export function AssetFaceUpdateDtoFromJSON(json: any): AssetFaceUpdateDto {
- return AssetFaceUpdateDtoFromJSONTyped(json, false);
-}
-
-export function AssetFaceUpdateDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetFaceUpdateDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'data': ((json['data'] as Array<any>).map(AssetFaceUpdateItemFromJSON)),
- };
-}
-
-export function AssetFaceUpdateDtoToJSON(value?: AssetFaceUpdateDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'data': ((value.data as Array<any>).map(AssetFaceUpdateItemToJSON)),
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/AssetFaceUpdateItem.ts b/open-api/typescript-sdk/fetch-client/models/AssetFaceUpdateItem.ts
deleted file mode 100644
index 14637b5205..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/AssetFaceUpdateItem.ts
+++ /dev/null
@@ -1,75 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface AssetFaceUpdateItem
- */
-export interface AssetFaceUpdateItem {
- /**
- *
- * @type {string}
- * @memberof AssetFaceUpdateItem
- */
- assetId: string;
- /**
- *
- * @type {string}
- * @memberof AssetFaceUpdateItem
- */
- personId: string;
-}
-
-/**
- * Check if a given object implements the AssetFaceUpdateItem interface.
- */
-export function instanceOfAssetFaceUpdateItem(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "assetId" in value;
- isInstance = isInstance && "personId" in value;
-
- return isInstance;
-}
-
-export function AssetFaceUpdateItemFromJSON(json: any): AssetFaceUpdateItem {
- return AssetFaceUpdateItemFromJSONTyped(json, false);
-}
-
-export function AssetFaceUpdateItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetFaceUpdateItem {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'assetId': json['assetId'],
- 'personId': json['personId'],
- };
-}
-
-export function AssetFaceUpdateItemToJSON(value?: AssetFaceUpdateItem | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'assetId': value.assetId,
- 'personId': value.personId,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/AssetFaceWithoutPersonResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/AssetFaceWithoutPersonResponseDto.ts
deleted file mode 100644
index b84e7893c0..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/AssetFaceWithoutPersonResponseDto.ts
+++ /dev/null
@@ -1,120 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface AssetFaceWithoutPersonResponseDto
- */
-export interface AssetFaceWithoutPersonResponseDto {
- /**
- *
- * @type {number}
- * @memberof AssetFaceWithoutPersonResponseDto
- */
- boundingBoxX1: number;
- /**
- *
- * @type {number}
- * @memberof AssetFaceWithoutPersonResponseDto
- */
- boundingBoxX2: number;
- /**
- *
- * @type {number}
- * @memberof AssetFaceWithoutPersonResponseDto
- */
- boundingBoxY1: number;
- /**
- *
- * @type {number}
- * @memberof AssetFaceWithoutPersonResponseDto
- */
- boundingBoxY2: number;
- /**
- *
- * @type {string}
- * @memberof AssetFaceWithoutPersonResponseDto
- */
- id: string;
- /**
- *
- * @type {number}
- * @memberof AssetFaceWithoutPersonResponseDto
- */
- imageHeight: number;
- /**
- *
- * @type {number}
- * @memberof AssetFaceWithoutPersonResponseDto
- */
- imageWidth: number;
-}
-
-/**
- * Check if a given object implements the AssetFaceWithoutPersonResponseDto interface.
- */
-export function instanceOfAssetFaceWithoutPersonResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "boundingBoxX1" in value;
- isInstance = isInstance && "boundingBoxX2" in value;
- isInstance = isInstance && "boundingBoxY1" in value;
- isInstance = isInstance && "boundingBoxY2" in value;
- isInstance = isInstance && "id" in value;
- isInstance = isInstance && "imageHeight" in value;
- isInstance = isInstance && "imageWidth" in value;
-
- return isInstance;
-}
-
-export function AssetFaceWithoutPersonResponseDtoFromJSON(json: any): AssetFaceWithoutPersonResponseDto {
- return AssetFaceWithoutPersonResponseDtoFromJSONTyped(json, false);
-}
-
-export function AssetFaceWithoutPersonResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetFaceWithoutPersonResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'boundingBoxX1': json['boundingBoxX1'],
- 'boundingBoxX2': json['boundingBoxX2'],
- 'boundingBoxY1': json['boundingBoxY1'],
- 'boundingBoxY2': json['boundingBoxY2'],
- 'id': json['id'],
- 'imageHeight': json['imageHeight'],
- 'imageWidth': json['imageWidth'],
- };
-}
-
-export function AssetFaceWithoutPersonResponseDtoToJSON(value?: AssetFaceWithoutPersonResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'boundingBoxX1': value.boundingBoxX1,
- 'boundingBoxX2': value.boundingBoxX2,
- 'boundingBoxY1': value.boundingBoxY1,
- 'boundingBoxY2': value.boundingBoxY2,
- 'id': value.id,
- 'imageHeight': value.imageHeight,
- 'imageWidth': value.imageWidth,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/AssetFileUploadResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/AssetFileUploadResponseDto.ts
deleted file mode 100644
index 53155c930d..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/AssetFileUploadResponseDto.ts
+++ /dev/null
@@ -1,75 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface AssetFileUploadResponseDto
- */
-export interface AssetFileUploadResponseDto {
- /**
- *
- * @type {boolean}
- * @memberof AssetFileUploadResponseDto
- */
- duplicate: boolean;
- /**
- *
- * @type {string}
- * @memberof AssetFileUploadResponseDto
- */
- id: string;
-}
-
-/**
- * Check if a given object implements the AssetFileUploadResponseDto interface.
- */
-export function instanceOfAssetFileUploadResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "duplicate" in value;
- isInstance = isInstance && "id" in value;
-
- return isInstance;
-}
-
-export function AssetFileUploadResponseDtoFromJSON(json: any): AssetFileUploadResponseDto {
- return AssetFileUploadResponseDtoFromJSONTyped(json, false);
-}
-
-export function AssetFileUploadResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetFileUploadResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'duplicate': json['duplicate'],
- 'id': json['id'],
- };
-}
-
-export function AssetFileUploadResponseDtoToJSON(value?: AssetFileUploadResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'duplicate': value.duplicate,
- 'id': value.id,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/AssetIdsDto.ts b/open-api/typescript-sdk/fetch-client/models/AssetIdsDto.ts
deleted file mode 100644
index ad33322ea3..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/AssetIdsDto.ts
+++ /dev/null
@@ -1,66 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface AssetIdsDto
- */
-export interface AssetIdsDto {
- /**
- *
- * @type {Array<string>}
- * @memberof AssetIdsDto
- */
- assetIds: Array<string>;
-}
-
-/**
- * Check if a given object implements the AssetIdsDto interface.
- */
-export function instanceOfAssetIdsDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "assetIds" in value;
-
- return isInstance;
-}
-
-export function AssetIdsDtoFromJSON(json: any): AssetIdsDto {
- return AssetIdsDtoFromJSONTyped(json, false);
-}
-
-export function AssetIdsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetIdsDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'assetIds': json['assetIds'],
- };
-}
-
-export function AssetIdsDtoToJSON(value?: AssetIdsDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'assetIds': value.assetIds,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/AssetIdsResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/AssetIdsResponseDto.ts
deleted file mode 100644
index 5e6ba5a5b0..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/AssetIdsResponseDto.ts
+++ /dev/null
@@ -1,95 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface AssetIdsResponseDto
- */
-export interface AssetIdsResponseDto {
- /**
- *
- * @type {string}
- * @memberof AssetIdsResponseDto
- */
- assetId: string;
- /**
- *
- * @type {string}
- * @memberof AssetIdsResponseDto
- */
- error?: AssetIdsResponseDtoErrorEnum;
- /**
- *
- * @type {boolean}
- * @memberof AssetIdsResponseDto
- */
- success: boolean;
-}
-
-
-/**
- * @export
- */
-export const AssetIdsResponseDtoErrorEnum = {
- Duplicate: 'duplicate',
- NoPermission: 'no_permission',
- NotFound: 'not_found'
-} as const;
-export type AssetIdsResponseDtoErrorEnum = typeof AssetIdsResponseDtoErrorEnum[keyof typeof AssetIdsResponseDtoErrorEnum];
-
-
-/**
- * Check if a given object implements the AssetIdsResponseDto interface.
- */
-export function instanceOfAssetIdsResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "assetId" in value;
- isInstance = isInstance && "success" in value;
-
- return isInstance;
-}
-
-export function AssetIdsResponseDtoFromJSON(json: any): AssetIdsResponseDto {
- return AssetIdsResponseDtoFromJSONTyped(json, false);
-}
-
-export function AssetIdsResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetIdsResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'assetId': json['assetId'],
- 'error': !exists(json, 'error') ? undefined : json['error'],
- 'success': json['success'],
- };
-}
-
-export function AssetIdsResponseDtoToJSON(value?: AssetIdsResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'assetId': value.assetId,
- 'error': value.error,
- 'success': value.success,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/AssetJobName.ts b/open-api/typescript-sdk/fetch-client/models/AssetJobName.ts
deleted file mode 100644
index 7653107ee9..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/AssetJobName.ts
+++ /dev/null
@@ -1,39 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-/**
- *
- * @export
- */
-export const AssetJobName = {
- RegenerateThumbnail: 'regenerate-thumbnail',
- RefreshMetadata: 'refresh-metadata',
- TranscodeVideo: 'transcode-video'
-} as const;
-export type AssetJobName = typeof AssetJobName[keyof typeof AssetJobName];
-
-
-export function AssetJobNameFromJSON(json: any): AssetJobName {
- return AssetJobNameFromJSONTyped(json, false);
-}
-
-export function AssetJobNameFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetJobName {
- return json as AssetJobName;
-}
-
-export function AssetJobNameToJSON(value?: AssetJobName | null): any {
- return value as any;
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/AssetJobsDto.ts b/open-api/typescript-sdk/fetch-client/models/AssetJobsDto.ts
deleted file mode 100644
index 0a5edbf18a..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/AssetJobsDto.ts
+++ /dev/null
@@ -1,82 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-import type { AssetJobName } from './AssetJobName';
-import {
- AssetJobNameFromJSON,
- AssetJobNameFromJSONTyped,
- AssetJobNameToJSON,
-} from './AssetJobName';
-
-/**
- *
- * @export
- * @interface AssetJobsDto
- */
-export interface AssetJobsDto {
- /**
- *
- * @type {Array<string>}
- * @memberof AssetJobsDto
- */
- assetIds: Array<string>;
- /**
- *
- * @type {AssetJobName}
- * @memberof AssetJobsDto
- */
- name: AssetJobName;
-}
-
-/**
- * Check if a given object implements the AssetJobsDto interface.
- */
-export function instanceOfAssetJobsDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "assetIds" in value;
- isInstance = isInstance && "name" in value;
-
- return isInstance;
-}
-
-export function AssetJobsDtoFromJSON(json: any): AssetJobsDto {
- return AssetJobsDtoFromJSONTyped(json, false);
-}
-
-export function AssetJobsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetJobsDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'assetIds': json['assetIds'],
- 'name': AssetJobNameFromJSON(json['name']),
- };
-}
-
-export function AssetJobsDtoToJSON(value?: AssetJobsDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'assetIds': value.assetIds,
- 'name': AssetJobNameToJSON(value.name),
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/AssetOrder.ts b/open-api/typescript-sdk/fetch-client/models/AssetOrder.ts
deleted file mode 100644
index 6d11fef5d4..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/AssetOrder.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-/**
- *
- * @export
- */
-export const AssetOrder = {
- Asc: 'asc',
- Desc: 'desc'
-} as const;
-export type AssetOrder = typeof AssetOrder[keyof typeof AssetOrder];
-
-
-export function AssetOrderFromJSON(json: any): AssetOrder {
- return AssetOrderFromJSONTyped(json, false);
-}
-
-export function AssetOrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetOrder {
- return json as AssetOrder;
-}
-
-export function AssetOrderToJSON(value?: AssetOrder | null): any {
- return value as any;
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/AssetResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/AssetResponseDto.ts
deleted file mode 100644
index 16193beb50..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/AssetResponseDto.ts
+++ /dev/null
@@ -1,374 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-import type { AssetTypeEnum } from './AssetTypeEnum';
-import {
- AssetTypeEnumFromJSON,
- AssetTypeEnumFromJSONTyped,
- AssetTypeEnumToJSON,
-} from './AssetTypeEnum';
-import type { ExifResponseDto } from './ExifResponseDto';
-import {
- ExifResponseDtoFromJSON,
- ExifResponseDtoFromJSONTyped,
- ExifResponseDtoToJSON,
-} from './ExifResponseDto';
-import type { PersonWithFacesResponseDto } from './PersonWithFacesResponseDto';
-import {
- PersonWithFacesResponseDtoFromJSON,
- PersonWithFacesResponseDtoFromJSONTyped,
- PersonWithFacesResponseDtoToJSON,
-} from './PersonWithFacesResponseDto';
-import type { SmartInfoResponseDto } from './SmartInfoResponseDto';
-import {
- SmartInfoResponseDtoFromJSON,
- SmartInfoResponseDtoFromJSONTyped,
- SmartInfoResponseDtoToJSON,
-} from './SmartInfoResponseDto';
-import type { TagResponseDto } from './TagResponseDto';
-import {
- TagResponseDtoFromJSON,
- TagResponseDtoFromJSONTyped,
- TagResponseDtoToJSON,
-} from './TagResponseDto';
-import type { UserResponseDto } from './UserResponseDto';
-import {
- UserResponseDtoFromJSON,
- UserResponseDtoFromJSONTyped,
- UserResponseDtoToJSON,
-} from './UserResponseDto';
-
-/**
- *
- * @export
- * @interface AssetResponseDto
- */
-export interface AssetResponseDto {
- /**
- * base64 encoded sha1 hash
- * @type {string}
- * @memberof AssetResponseDto
- */
- checksum: string;
- /**
- *
- * @type {string}
- * @memberof AssetResponseDto
- */
- deviceAssetId: string;
- /**
- *
- * @type {string}
- * @memberof AssetResponseDto
- */
- deviceId: string;
- /**
- *
- * @type {string}
- * @memberof AssetResponseDto
- */
- duration: string;
- /**
- *
- * @type {ExifResponseDto}
- * @memberof AssetResponseDto
- */
- exifInfo?: ExifResponseDto;
- /**
- *
- * @type {Date}
- * @memberof AssetResponseDto
- */
- fileCreatedAt: Date;
- /**
- *
- * @type {Date}
- * @memberof AssetResponseDto
- */
- fileModifiedAt: Date;
- /**
- *
- * @type {boolean}
- * @memberof AssetResponseDto
- */
- hasMetadata: boolean;
- /**
- *
- * @type {string}
- * @memberof AssetResponseDto
- */
- id: string;
- /**
- *
- * @type {boolean}
- * @memberof AssetResponseDto
- */
- isArchived: boolean;
- /**
- *
- * @type {boolean}
- * @memberof AssetResponseDto
- */
- isExternal: boolean;
- /**
- *
- * @type {boolean}
- * @memberof AssetResponseDto
- */
- isFavorite: boolean;
- /**
- *
- * @type {boolean}
- * @memberof AssetResponseDto
- */
- isOffline: boolean;
- /**
- *
- * @type {boolean}
- * @memberof AssetResponseDto
- */
- isReadOnly: boolean;
- /**
- *
- * @type {boolean}
- * @memberof AssetResponseDto
- */
- isTrashed: boolean;
- /**
- *
- * @type {string}
- * @memberof AssetResponseDto
- */
- libraryId: string;
- /**
- *
- * @type {string}
- * @memberof AssetResponseDto
- */
- livePhotoVideoId?: string | null;
- /**
- *
- * @type {Date}
- * @memberof AssetResponseDto
- */
- localDateTime: Date;
- /**
- *
- * @type {string}
- * @memberof AssetResponseDto
- */
- originalFileName: string;
- /**
- *
- * @type {string}
- * @memberof AssetResponseDto
- */
- originalPath: string;
- /**
- *
- * @type {UserResponseDto}
- * @memberof AssetResponseDto
- */
- owner?: UserResponseDto;
- /**
- *
- * @type {string}
- * @memberof AssetResponseDto
- */
- ownerId: string;
- /**
- *
- * @type {Array<PersonWithFacesResponseDto>}
- * @memberof AssetResponseDto
- */
- people?: Array<PersonWithFacesResponseDto>;
- /**
- *
- * @type {boolean}
- * @memberof AssetResponseDto
- */
- resized: boolean;
- /**
- *
- * @type {SmartInfoResponseDto}
- * @memberof AssetResponseDto
- */
- smartInfo?: SmartInfoResponseDto;
- /**
- *
- * @type {Array<AssetResponseDto>}
- * @memberof AssetResponseDto
- */
- stack?: Array<AssetResponseDto>;
- /**
- *
- * @type {number}
- * @memberof AssetResponseDto
- */
- stackCount: number | null;
- /**
- *
- * @type {string}
- * @memberof AssetResponseDto
- */
- stackParentId?: string | null;
- /**
- *
- * @type {Array<TagResponseDto>}
- * @memberof AssetResponseDto
- */
- tags?: Array<TagResponseDto>;
- /**
- *
- * @type {string}
- * @memberof AssetResponseDto
- */
- thumbhash: string | null;
- /**
- *
- * @type {AssetTypeEnum}
- * @memberof AssetResponseDto
- */
- type: AssetTypeEnum;
- /**
- *
- * @type {Date}
- * @memberof AssetResponseDto
- */
- updatedAt: Date;
-}
-
-/**
- * Check if a given object implements the AssetResponseDto interface.
- */
-export function instanceOfAssetResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "checksum" in value;
- isInstance = isInstance && "deviceAssetId" in value;
- isInstance = isInstance && "deviceId" in value;
- isInstance = isInstance && "duration" in value;
- isInstance = isInstance && "fileCreatedAt" in value;
- isInstance = isInstance && "fileModifiedAt" in value;
- isInstance = isInstance && "hasMetadata" in value;
- isInstance = isInstance && "id" in value;
- isInstance = isInstance && "isArchived" in value;
- isInstance = isInstance && "isExternal" in value;
- isInstance = isInstance && "isFavorite" in value;
- isInstance = isInstance && "isOffline" in value;
- isInstance = isInstance && "isReadOnly" in value;
- isInstance = isInstance && "isTrashed" in value;
- isInstance = isInstance && "libraryId" in value;
- isInstance = isInstance && "localDateTime" in value;
- isInstance = isInstance && "originalFileName" in value;
- isInstance = isInstance && "originalPath" in value;
- isInstance = isInstance && "ownerId" in value;
- isInstance = isInstance && "resized" in value;
- isInstance = isInstance && "stackCount" in value;
- isInstance = isInstance && "thumbhash" in value;
- isInstance = isInstance && "type" in value;
- isInstance = isInstance && "updatedAt" in value;
-
- return isInstance;
-}
-
-export function AssetResponseDtoFromJSON(json: any): AssetResponseDto {
- return AssetResponseDtoFromJSONTyped(json, false);
-}
-
-export function AssetResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'checksum': json['checksum'],
- 'deviceAssetId': json['deviceAssetId'],
- 'deviceId': json['deviceId'],
- 'duration': json['duration'],
- 'exifInfo': !exists(json, 'exifInfo') ? undefined : ExifResponseDtoFromJSON(json['exifInfo']),
- 'fileCreatedAt': (new Date(json['fileCreatedAt'])),
- 'fileModifiedAt': (new Date(json['fileModifiedAt'])),
- 'hasMetadata': json['hasMetadata'],
- 'id': json['id'],
- 'isArchived': json['isArchived'],
- 'isExternal': json['isExternal'],
- 'isFavorite': json['isFavorite'],
- 'isOffline': json['isOffline'],
- 'isReadOnly': json['isReadOnly'],
- 'isTrashed': json['isTrashed'],
- 'libraryId': json['libraryId'],
- 'livePhotoVideoId': !exists(json, 'livePhotoVideoId') ? undefined : json['livePhotoVideoId'],
- 'localDateTime': (new Date(json['localDateTime'])),
- 'originalFileName': json['originalFileName'],
- 'originalPath': json['originalPath'],
- 'owner': !exists(json, 'owner') ? undefined : UserResponseDtoFromJSON(json['owner']),
- 'ownerId': json['ownerId'],
- 'people': !exists(json, 'people') ? undefined : ((json['people'] as Array<any>).map(PersonWithFacesResponseDtoFromJSON)),
- 'resized': json['resized'],
- 'smartInfo': !exists(json, 'smartInfo') ? undefined : SmartInfoResponseDtoFromJSON(json['smartInfo']),
- 'stack': !exists(json, 'stack') ? undefined : ((json['stack'] as Array<any>).map(AssetResponseDtoFromJSON)),
- 'stackCount': json['stackCount'],
- 'stackParentId': !exists(json, 'stackParentId') ? undefined : json['stackParentId'],
- 'tags': !exists(json, 'tags') ? undefined : ((json['tags'] as Array<any>).map(TagResponseDtoFromJSON)),
- 'thumbhash': json['thumbhash'],
- 'type': AssetTypeEnumFromJSON(json['type']),
- 'updatedAt': (new Date(json['updatedAt'])),
- };
-}
-
-export function AssetResponseDtoToJSON(value?: AssetResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'checksum': value.checksum,
- 'deviceAssetId': value.deviceAssetId,
- 'deviceId': value.deviceId,
- 'duration': value.duration,
- 'exifInfo': ExifResponseDtoToJSON(value.exifInfo),
- 'fileCreatedAt': (value.fileCreatedAt.toISOString()),
- 'fileModifiedAt': (value.fileModifiedAt.toISOString()),
- 'hasMetadata': value.hasMetadata,
- 'id': value.id,
- 'isArchived': value.isArchived,
- 'isExternal': value.isExternal,
- 'isFavorite': value.isFavorite,
- 'isOffline': value.isOffline,
- 'isReadOnly': value.isReadOnly,
- 'isTrashed': value.isTrashed,
- 'libraryId': value.libraryId,
- 'livePhotoVideoId': value.livePhotoVideoId,
- 'localDateTime': (value.localDateTime.toISOString()),
- 'originalFileName': value.originalFileName,
- 'originalPath': value.originalPath,
- 'owner': UserResponseDtoToJSON(value.owner),
- 'ownerId': value.ownerId,
- 'people': value.people === undefined ? undefined : ((value.people as Array<any>).map(PersonWithFacesResponseDtoToJSON)),
- 'resized': value.resized,
- 'smartInfo': SmartInfoResponseDtoToJSON(value.smartInfo),
- 'stack': value.stack === undefined ? undefined : ((value.stack as Array<any>).map(AssetResponseDtoToJSON)),
- 'stackCount': value.stackCount,
- 'stackParentId': value.stackParentId,
- 'tags': value.tags === undefined ? undefined : ((value.tags as Array<any>).map(TagResponseDtoToJSON)),
- 'thumbhash': value.thumbhash,
- 'type': AssetTypeEnumToJSON(value.type),
- 'updatedAt': (value.updatedAt.toISOString()),
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/AssetStatsResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/AssetStatsResponseDto.ts
deleted file mode 100644
index 4907cb4ca9..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/AssetStatsResponseDto.ts
+++ /dev/null
@@ -1,84 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface AssetStatsResponseDto
- */
-export interface AssetStatsResponseDto {
- /**
- *
- * @type {number}
- * @memberof AssetStatsResponseDto
- */
- images: number;
- /**
- *
- * @type {number}
- * @memberof AssetStatsResponseDto
- */
- total: number;
- /**
- *
- * @type {number}
- * @memberof AssetStatsResponseDto
- */
- videos: number;
-}
-
-/**
- * Check if a given object implements the AssetStatsResponseDto interface.
- */
-export function instanceOfAssetStatsResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "images" in value;
- isInstance = isInstance && "total" in value;
- isInstance = isInstance && "videos" in value;
-
- return isInstance;
-}
-
-export function AssetStatsResponseDtoFromJSON(json: any): AssetStatsResponseDto {
- return AssetStatsResponseDtoFromJSONTyped(json, false);
-}
-
-export function AssetStatsResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetStatsResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'images': json['images'],
- 'total': json['total'],
- 'videos': json['videos'],
- };
-}
-
-export function AssetStatsResponseDtoToJSON(value?: AssetStatsResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'images': value.images,
- 'total': value.total,
- 'videos': value.videos,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/AssetTypeEnum.ts b/open-api/typescript-sdk/fetch-client/models/AssetTypeEnum.ts
deleted file mode 100644
index cfbf259855..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/AssetTypeEnum.ts
+++ /dev/null
@@ -1,40 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-/**
- *
- * @export
- */
-export const AssetTypeEnum = {
- Image: 'IMAGE',
- Video: 'VIDEO',
- Audio: 'AUDIO',
- Other: 'OTHER'
-} as const;
-export type AssetTypeEnum = typeof AssetTypeEnum[keyof typeof AssetTypeEnum];
-
-
-export function AssetTypeEnumFromJSON(json: any): AssetTypeEnum {
- return AssetTypeEnumFromJSONTyped(json, false);
-}
-
-export function AssetTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetTypeEnum {
- return json as AssetTypeEnum;
-}
-
-export function AssetTypeEnumToJSON(value?: AssetTypeEnum | null): any {
- return value as any;
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/AudioCodec.ts b/open-api/typescript-sdk/fetch-client/models/AudioCodec.ts
deleted file mode 100644
index 586e8f1591..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/AudioCodec.ts
+++ /dev/null
@@ -1,39 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-/**
- *
- * @export
- */
-export const AudioCodec = {
- Mp3: 'mp3',
- Aac: 'aac',
- Libopus: 'libopus'
-} as const;
-export type AudioCodec = typeof AudioCodec[keyof typeof AudioCodec];
-
-
-export function AudioCodecFromJSON(json: any): AudioCodec {
- return AudioCodecFromJSONTyped(json, false);
-}
-
-export function AudioCodecFromJSONTyped(json: any, ignoreDiscriminator: boolean): AudioCodec {
- return json as AudioCodec;
-}
-
-export function AudioCodecToJSON(value?: AudioCodec | null): any {
- return value as any;
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/AuditDeletesResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/AuditDeletesResponseDto.ts
deleted file mode 100644
index 0d6b6e167b..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/AuditDeletesResponseDto.ts
+++ /dev/null
@@ -1,75 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface AuditDeletesResponseDto
- */
-export interface AuditDeletesResponseDto {
- /**
- *
- * @type {Array<string>}
- * @memberof AuditDeletesResponseDto
- */
- ids: Array<string>;
- /**
- *
- * @type {boolean}
- * @memberof AuditDeletesResponseDto
- */
- needsFullSync: boolean;
-}
-
-/**
- * Check if a given object implements the AuditDeletesResponseDto interface.
- */
-export function instanceOfAuditDeletesResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "ids" in value;
- isInstance = isInstance && "needsFullSync" in value;
-
- return isInstance;
-}
-
-export function AuditDeletesResponseDtoFromJSON(json: any): AuditDeletesResponseDto {
- return AuditDeletesResponseDtoFromJSONTyped(json, false);
-}
-
-export function AuditDeletesResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditDeletesResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'ids': json['ids'],
- 'needsFullSync': json['needsFullSync'],
- };
-}
-
-export function AuditDeletesResponseDtoToJSON(value?: AuditDeletesResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'ids': value.ids,
- 'needsFullSync': value.needsFullSync,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/AuthDeviceResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/AuthDeviceResponseDto.ts
deleted file mode 100644
index 252180dd71..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/AuthDeviceResponseDto.ts
+++ /dev/null
@@ -1,111 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface AuthDeviceResponseDto
- */
-export interface AuthDeviceResponseDto {
- /**
- *
- * @type {string}
- * @memberof AuthDeviceResponseDto
- */
- createdAt: string;
- /**
- *
- * @type {boolean}
- * @memberof AuthDeviceResponseDto
- */
- current: boolean;
- /**
- *
- * @type {string}
- * @memberof AuthDeviceResponseDto
- */
- deviceOS: string;
- /**
- *
- * @type {string}
- * @memberof AuthDeviceResponseDto
- */
- deviceType: string;
- /**
- *
- * @type {string}
- * @memberof AuthDeviceResponseDto
- */
- id: string;
- /**
- *
- * @type {string}
- * @memberof AuthDeviceResponseDto
- */
- updatedAt: string;
-}
-
-/**
- * Check if a given object implements the AuthDeviceResponseDto interface.
- */
-export function instanceOfAuthDeviceResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "createdAt" in value;
- isInstance = isInstance && "current" in value;
- isInstance = isInstance && "deviceOS" in value;
- isInstance = isInstance && "deviceType" in value;
- isInstance = isInstance && "id" in value;
- isInstance = isInstance && "updatedAt" in value;
-
- return isInstance;
-}
-
-export function AuthDeviceResponseDtoFromJSON(json: any): AuthDeviceResponseDto {
- return AuthDeviceResponseDtoFromJSONTyped(json, false);
-}
-
-export function AuthDeviceResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthDeviceResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'createdAt': json['createdAt'],
- 'current': json['current'],
- 'deviceOS': json['deviceOS'],
- 'deviceType': json['deviceType'],
- 'id': json['id'],
- 'updatedAt': json['updatedAt'],
- };
-}
-
-export function AuthDeviceResponseDtoToJSON(value?: AuthDeviceResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'createdAt': value.createdAt,
- 'current': value.current,
- 'deviceOS': value.deviceOS,
- 'deviceType': value.deviceType,
- 'id': value.id,
- 'updatedAt': value.updatedAt,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/BulkIdResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/BulkIdResponseDto.ts
deleted file mode 100644
index 7c0fb036f8..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/BulkIdResponseDto.ts
+++ /dev/null
@@ -1,96 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface BulkIdResponseDto
- */
-export interface BulkIdResponseDto {
- /**
- *
- * @type {string}
- * @memberof BulkIdResponseDto
- */
- error?: BulkIdResponseDtoErrorEnum;
- /**
- *
- * @type {string}
- * @memberof BulkIdResponseDto
- */
- id: string;
- /**
- *
- * @type {boolean}
- * @memberof BulkIdResponseDto
- */
- success: boolean;
-}
-
-
-/**
- * @export
- */
-export const BulkIdResponseDtoErrorEnum = {
- Duplicate: 'duplicate',
- NoPermission: 'no_permission',
- NotFound: 'not_found',
- Unknown: 'unknown'
-} as const;
-export type BulkIdResponseDtoErrorEnum = typeof BulkIdResponseDtoErrorEnum[keyof typeof BulkIdResponseDtoErrorEnum];
-
-
-/**
- * Check if a given object implements the BulkIdResponseDto interface.
- */
-export function instanceOfBulkIdResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "id" in value;
- isInstance = isInstance && "success" in value;
-
- return isInstance;
-}
-
-export function BulkIdResponseDtoFromJSON(json: any): BulkIdResponseDto {
- return BulkIdResponseDtoFromJSONTyped(json, false);
-}
-
-export function BulkIdResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkIdResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'error': !exists(json, 'error') ? undefined : json['error'],
- 'id': json['id'],
- 'success': json['success'],
- };
-}
-
-export function BulkIdResponseDtoToJSON(value?: BulkIdResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'error': value.error,
- 'id': value.id,
- 'success': value.success,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/BulkIdsDto.ts b/open-api/typescript-sdk/fetch-client/models/BulkIdsDto.ts
deleted file mode 100644
index 3aae1f4323..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/BulkIdsDto.ts
+++ /dev/null
@@ -1,66 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface BulkIdsDto
- */
-export interface BulkIdsDto {
- /**
- *
- * @type {Array<string>}
- * @memberof BulkIdsDto
- */
- ids: Array<string>;
-}
-
-/**
- * Check if a given object implements the BulkIdsDto interface.
- */
-export function instanceOfBulkIdsDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "ids" in value;
-
- return isInstance;
-}
-
-export function BulkIdsDtoFromJSON(json: any): BulkIdsDto {
- return BulkIdsDtoFromJSONTyped(json, false);
-}
-
-export function BulkIdsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkIdsDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'ids': json['ids'],
- };
-}
-
-export function BulkIdsDtoToJSON(value?: BulkIdsDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'ids': value.ids,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/CLIPConfig.ts b/open-api/typescript-sdk/fetch-client/models/CLIPConfig.ts
deleted file mode 100644
index 30175e3365..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/CLIPConfig.ts
+++ /dev/null
@@ -1,104 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-import type { CLIPMode } from './CLIPMode';
-import {
- CLIPModeFromJSON,
- CLIPModeFromJSONTyped,
- CLIPModeToJSON,
-} from './CLIPMode';
-import type { ModelType } from './ModelType';
-import {
- ModelTypeFromJSON,
- ModelTypeFromJSONTyped,
- ModelTypeToJSON,
-} from './ModelType';
-
-/**
- *
- * @export
- * @interface CLIPConfig
- */
-export interface CLIPConfig {
- /**
- *
- * @type {boolean}
- * @memberof CLIPConfig
- */
- enabled: boolean;
- /**
- *
- * @type {CLIPMode}
- * @memberof CLIPConfig
- */
- mode?: CLIPMode;
- /**
- *
- * @type {string}
- * @memberof CLIPConfig
- */
- modelName: string;
- /**
- *
- * @type {ModelType}
- * @memberof CLIPConfig
- */
- modelType?: ModelType;
-}
-
-/**
- * Check if a given object implements the CLIPConfig interface.
- */
-export function instanceOfCLIPConfig(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "enabled" in value;
- isInstance = isInstance && "modelName" in value;
-
- return isInstance;
-}
-
-export function CLIPConfigFromJSON(json: any): CLIPConfig {
- return CLIPConfigFromJSONTyped(json, false);
-}
-
-export function CLIPConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): CLIPConfig {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'enabled': json['enabled'],
- 'mode': !exists(json, 'mode') ? undefined : CLIPModeFromJSON(json['mode']),
- 'modelName': json['modelName'],
- 'modelType': !exists(json, 'modelType') ? undefined : ModelTypeFromJSON(json['modelType']),
- };
-}
-
-export function CLIPConfigToJSON(value?: CLIPConfig | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'enabled': value.enabled,
- 'mode': CLIPModeToJSON(value.mode),
- 'modelName': value.modelName,
- 'modelType': ModelTypeToJSON(value.modelType),
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/CLIPMode.ts b/open-api/typescript-sdk/fetch-client/models/CLIPMode.ts
deleted file mode 100644
index e47c82235f..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/CLIPMode.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-/**
- *
- * @export
- */
-export const CLIPMode = {
- Vision: 'vision',
- Text: 'text'
-} as const;
-export type CLIPMode = typeof CLIPMode[keyof typeof CLIPMode];
-
-
-export function CLIPModeFromJSON(json: any): CLIPMode {
- return CLIPModeFromJSONTyped(json, false);
-}
-
-export function CLIPModeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CLIPMode {
- return json as CLIPMode;
-}
-
-export function CLIPModeToJSON(value?: CLIPMode | null): any {
- return value as any;
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/CQMode.ts b/open-api/typescript-sdk/fetch-client/models/CQMode.ts
deleted file mode 100644
index d04202d767..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/CQMode.ts
+++ /dev/null
@@ -1,39 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-/**
- *
- * @export
- */
-export const CQMode = {
- Auto: 'auto',
- Cqp: 'cqp',
- Icq: 'icq'
-} as const;
-export type CQMode = typeof CQMode[keyof typeof CQMode];
-
-
-export function CQModeFromJSON(json: any): CQMode {
- return CQModeFromJSONTyped(json, false);
-}
-
-export function CQModeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CQMode {
- return json as CQMode;
-}
-
-export function CQModeToJSON(value?: CQMode | null): any {
- return value as any;
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/ChangePasswordDto.ts b/open-api/typescript-sdk/fetch-client/models/ChangePasswordDto.ts
deleted file mode 100644
index 3ff18fa91a..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/ChangePasswordDto.ts
+++ /dev/null
@@ -1,75 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface ChangePasswordDto
- */
-export interface ChangePasswordDto {
- /**
- *
- * @type {string}
- * @memberof ChangePasswordDto
- */
- newPassword: string;
- /**
- *
- * @type {string}
- * @memberof ChangePasswordDto
- */
- password: string;
-}
-
-/**
- * Check if a given object implements the ChangePasswordDto interface.
- */
-export function instanceOfChangePasswordDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "newPassword" in value;
- isInstance = isInstance && "password" in value;
-
- return isInstance;
-}
-
-export function ChangePasswordDtoFromJSON(json: any): ChangePasswordDto {
- return ChangePasswordDtoFromJSONTyped(json, false);
-}
-
-export function ChangePasswordDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChangePasswordDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'newPassword': json['newPassword'],
- 'password': json['password'],
- };
-}
-
-export function ChangePasswordDtoToJSON(value?: ChangePasswordDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'newPassword': value.newPassword,
- 'password': value.password,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/CheckExistingAssetsDto.ts b/open-api/typescript-sdk/fetch-client/models/CheckExistingAssetsDto.ts
deleted file mode 100644
index 8d137d9da9..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/CheckExistingAssetsDto.ts
+++ /dev/null
@@ -1,75 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface CheckExistingAssetsDto
- */
-export interface CheckExistingAssetsDto {
- /**
- *
- * @type {Array<string>}
- * @memberof CheckExistingAssetsDto
- */
- deviceAssetIds: Array<string>;
- /**
- *
- * @type {string}
- * @memberof CheckExistingAssetsDto
- */
- deviceId: string;
-}
-
-/**
- * Check if a given object implements the CheckExistingAssetsDto interface.
- */
-export function instanceOfCheckExistingAssetsDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "deviceAssetIds" in value;
- isInstance = isInstance && "deviceId" in value;
-
- return isInstance;
-}
-
-export function CheckExistingAssetsDtoFromJSON(json: any): CheckExistingAssetsDto {
- return CheckExistingAssetsDtoFromJSONTyped(json, false);
-}
-
-export function CheckExistingAssetsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckExistingAssetsDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'deviceAssetIds': json['deviceAssetIds'],
- 'deviceId': json['deviceId'],
- };
-}
-
-export function CheckExistingAssetsDtoToJSON(value?: CheckExistingAssetsDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'deviceAssetIds': value.deviceAssetIds,
- 'deviceId': value.deviceId,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/CheckExistingAssetsResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/CheckExistingAssetsResponseDto.ts
deleted file mode 100644
index 54bac21ca1..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/CheckExistingAssetsResponseDto.ts
+++ /dev/null
@@ -1,66 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface CheckExistingAssetsResponseDto
- */
-export interface CheckExistingAssetsResponseDto {
- /**
- *
- * @type {Array<string>}
- * @memberof CheckExistingAssetsResponseDto
- */
- existingIds: Array<string>;
-}
-
-/**
- * Check if a given object implements the CheckExistingAssetsResponseDto interface.
- */
-export function instanceOfCheckExistingAssetsResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "existingIds" in value;
-
- return isInstance;
-}
-
-export function CheckExistingAssetsResponseDtoFromJSON(json: any): CheckExistingAssetsResponseDto {
- return CheckExistingAssetsResponseDtoFromJSONTyped(json, false);
-}
-
-export function CheckExistingAssetsResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckExistingAssetsResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'existingIds': json['existingIds'],
- };
-}
-
-export function CheckExistingAssetsResponseDtoToJSON(value?: CheckExistingAssetsResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'existingIds': value.existingIds,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/Colorspace.ts b/open-api/typescript-sdk/fetch-client/models/Colorspace.ts
deleted file mode 100644
index e10cde234e..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/Colorspace.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-/**
- *
- * @export
- */
-export const Colorspace = {
- Srgb: 'srgb',
- P3: 'p3'
-} as const;
-export type Colorspace = typeof Colorspace[keyof typeof Colorspace];
-
-
-export function ColorspaceFromJSON(json: any): Colorspace {
- return ColorspaceFromJSONTyped(json, false);
-}
-
-export function ColorspaceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Colorspace {
- return json as Colorspace;
-}
-
-export function ColorspaceToJSON(value?: Colorspace | null): any {
- return value as any;
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/CreateAlbumDto.ts b/open-api/typescript-sdk/fetch-client/models/CreateAlbumDto.ts
deleted file mode 100644
index d3f3c9f20e..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/CreateAlbumDto.ts
+++ /dev/null
@@ -1,90 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface CreateAlbumDto
- */
-export interface CreateAlbumDto {
- /**
- *
- * @type {string}
- * @memberof CreateAlbumDto
- */
- albumName: string;
- /**
- *
- * @type {Array<string>}
- * @memberof CreateAlbumDto
- */
- assetIds?: Array<string>;
- /**
- *
- * @type {string}
- * @memberof CreateAlbumDto
- */
- description?: string;
- /**
- *
- * @type {Array<string>}
- * @memberof CreateAlbumDto
- */
- sharedWithUserIds?: Array<string>;
-}
-
-/**
- * Check if a given object implements the CreateAlbumDto interface.
- */
-export function instanceOfCreateAlbumDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "albumName" in value;
-
- return isInstance;
-}
-
-export function CreateAlbumDtoFromJSON(json: any): CreateAlbumDto {
- return CreateAlbumDtoFromJSONTyped(json, false);
-}
-
-export function CreateAlbumDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAlbumDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'albumName': json['albumName'],
- 'assetIds': !exists(json, 'assetIds') ? undefined : json['assetIds'],
- 'description': !exists(json, 'description') ? undefined : json['description'],
- 'sharedWithUserIds': !exists(json, 'sharedWithUserIds') ? undefined : json['sharedWithUserIds'],
- };
-}
-
-export function CreateAlbumDtoToJSON(value?: CreateAlbumDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'albumName': value.albumName,
- 'assetIds': value.assetIds,
- 'description': value.description,
- 'sharedWithUserIds': value.sharedWithUserIds,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/CreateLibraryDto.ts b/open-api/typescript-sdk/fetch-client/models/CreateLibraryDto.ts
deleted file mode 100644
index ef75f32fa8..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/CreateLibraryDto.ts
+++ /dev/null
@@ -1,113 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-import type { LibraryType } from './LibraryType';
-import {
- LibraryTypeFromJSON,
- LibraryTypeFromJSONTyped,
- LibraryTypeToJSON,
-} from './LibraryType';
-
-/**
- *
- * @export
- * @interface CreateLibraryDto
- */
-export interface CreateLibraryDto {
- /**
- *
- * @type {Array<string>}
- * @memberof CreateLibraryDto
- */
- exclusionPatterns?: Array<string>;
- /**
- *
- * @type {Array<string>}
- * @memberof CreateLibraryDto
- */
- importPaths?: Array<string>;
- /**
- *
- * @type {boolean}
- * @memberof CreateLibraryDto
- */
- isVisible?: boolean;
- /**
- *
- * @type {boolean}
- * @memberof CreateLibraryDto
- */
- isWatched?: boolean;
- /**
- *
- * @type {string}
- * @memberof CreateLibraryDto
- */
- name?: string;
- /**
- *
- * @type {LibraryType}
- * @memberof CreateLibraryDto
- */
- type: LibraryType;
-}
-
-/**
- * Check if a given object implements the CreateLibraryDto interface.
- */
-export function instanceOfCreateLibraryDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "type" in value;
-
- return isInstance;
-}
-
-export function CreateLibraryDtoFromJSON(json: any): CreateLibraryDto {
- return CreateLibraryDtoFromJSONTyped(json, false);
-}
-
-export function CreateLibraryDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateLibraryDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'exclusionPatterns': !exists(json, 'exclusionPatterns') ? undefined : json['exclusionPatterns'],
- 'importPaths': !exists(json, 'importPaths') ? undefined : json['importPaths'],
- 'isVisible': !exists(json, 'isVisible') ? undefined : json['isVisible'],
- 'isWatched': !exists(json, 'isWatched') ? undefined : json['isWatched'],
- 'name': !exists(json, 'name') ? undefined : json['name'],
- 'type': LibraryTypeFromJSON(json['type']),
- };
-}
-
-export function CreateLibraryDtoToJSON(value?: CreateLibraryDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'exclusionPatterns': value.exclusionPatterns,
- 'importPaths': value.importPaths,
- 'isVisible': value.isVisible,
- 'isWatched': value.isWatched,
- 'name': value.name,
- 'type': LibraryTypeToJSON(value.type),
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/CreateProfileImageResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/CreateProfileImageResponseDto.ts
deleted file mode 100644
index bcc8895693..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/CreateProfileImageResponseDto.ts
+++ /dev/null
@@ -1,75 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface CreateProfileImageResponseDto
- */
-export interface CreateProfileImageResponseDto {
- /**
- *
- * @type {string}
- * @memberof CreateProfileImageResponseDto
- */
- profileImagePath: string;
- /**
- *
- * @type {string}
- * @memberof CreateProfileImageResponseDto
- */
- userId: string;
-}
-
-/**
- * Check if a given object implements the CreateProfileImageResponseDto interface.
- */
-export function instanceOfCreateProfileImageResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "profileImagePath" in value;
- isInstance = isInstance && "userId" in value;
-
- return isInstance;
-}
-
-export function CreateProfileImageResponseDtoFromJSON(json: any): CreateProfileImageResponseDto {
- return CreateProfileImageResponseDtoFromJSONTyped(json, false);
-}
-
-export function CreateProfileImageResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProfileImageResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'profileImagePath': json['profileImagePath'],
- 'userId': json['userId'],
- };
-}
-
-export function CreateProfileImageResponseDtoToJSON(value?: CreateProfileImageResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'profileImagePath': value.profileImagePath,
- 'userId': value.userId,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/CreateTagDto.ts b/open-api/typescript-sdk/fetch-client/models/CreateTagDto.ts
deleted file mode 100644
index fc52e0e5bc..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/CreateTagDto.ts
+++ /dev/null
@@ -1,82 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-import type { TagTypeEnum } from './TagTypeEnum';
-import {
- TagTypeEnumFromJSON,
- TagTypeEnumFromJSONTyped,
- TagTypeEnumToJSON,
-} from './TagTypeEnum';
-
-/**
- *
- * @export
- * @interface CreateTagDto
- */
-export interface CreateTagDto {
- /**
- *
- * @type {string}
- * @memberof CreateTagDto
- */
- name: string;
- /**
- *
- * @type {TagTypeEnum}
- * @memberof CreateTagDto
- */
- type: TagTypeEnum;
-}
-
-/**
- * Check if a given object implements the CreateTagDto interface.
- */
-export function instanceOfCreateTagDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "name" in value;
- isInstance = isInstance && "type" in value;
-
- return isInstance;
-}
-
-export function CreateTagDtoFromJSON(json: any): CreateTagDto {
- return CreateTagDtoFromJSONTyped(json, false);
-}
-
-export function CreateTagDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateTagDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'name': json['name'],
- 'type': TagTypeEnumFromJSON(json['type']),
- };
-}
-
-export function CreateTagDtoToJSON(value?: CreateTagDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'name': value.name,
- 'type': TagTypeEnumToJSON(value.type),
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/CreateUserDto.ts b/open-api/typescript-sdk/fetch-client/models/CreateUserDto.ts
deleted file mode 100644
index df8efbc298..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/CreateUserDto.ts
+++ /dev/null
@@ -1,116 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface CreateUserDto
- */
-export interface CreateUserDto {
- /**
- *
- * @type {string}
- * @memberof CreateUserDto
- */
- email: string;
- /**
- *
- * @type {string}
- * @memberof CreateUserDto
- */
- externalPath?: string | null;
- /**
- *
- * @type {boolean}
- * @memberof CreateUserDto
- */
- memoriesEnabled?: boolean;
- /**
- *
- * @type {string}
- * @memberof CreateUserDto
- */
- name: string;
- /**
- *
- * @type {string}
- * @memberof CreateUserDto
- */
- password: string;
- /**
- *
- * @type {number}
- * @memberof CreateUserDto
- */
- quotaSizeInBytes?: number | null;
- /**
- *
- * @type {string}
- * @memberof CreateUserDto
- */
- storageLabel?: string | null;
-}
-
-/**
- * Check if a given object implements the CreateUserDto interface.
- */
-export function instanceOfCreateUserDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "email" in value;
- isInstance = isInstance && "name" in value;
- isInstance = isInstance && "password" in value;
-
- return isInstance;
-}
-
-export function CreateUserDtoFromJSON(json: any): CreateUserDto {
- return CreateUserDtoFromJSONTyped(json, false);
-}
-
-export function CreateUserDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateUserDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'email': json['email'],
- 'externalPath': !exists(json, 'externalPath') ? undefined : json['externalPath'],
- 'memoriesEnabled': !exists(json, 'memoriesEnabled') ? undefined : json['memoriesEnabled'],
- 'name': json['name'],
- 'password': json['password'],
- 'quotaSizeInBytes': !exists(json, 'quotaSizeInBytes') ? undefined : json['quotaSizeInBytes'],
- 'storageLabel': !exists(json, 'storageLabel') ? undefined : json['storageLabel'],
- };
-}
-
-export function CreateUserDtoToJSON(value?: CreateUserDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'email': value.email,
- 'externalPath': value.externalPath,
- 'memoriesEnabled': value.memoriesEnabled,
- 'name': value.name,
- 'password': value.password,
- 'quotaSizeInBytes': value.quotaSizeInBytes,
- 'storageLabel': value.storageLabel,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/CuratedLocationsResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/CuratedLocationsResponseDto.ts
deleted file mode 100644
index dc4940e7ea..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/CuratedLocationsResponseDto.ts
+++ /dev/null
@@ -1,102 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface CuratedLocationsResponseDto
- */
-export interface CuratedLocationsResponseDto {
- /**
- *
- * @type {string}
- * @memberof CuratedLocationsResponseDto
- */
- city: string;
- /**
- *
- * @type {string}
- * @memberof CuratedLocationsResponseDto
- */
- deviceAssetId: string;
- /**
- *
- * @type {string}
- * @memberof CuratedLocationsResponseDto
- */
- deviceId: string;
- /**
- *
- * @type {string}
- * @memberof CuratedLocationsResponseDto
- */
- id: string;
- /**
- *
- * @type {string}
- * @memberof CuratedLocationsResponseDto
- */
- resizePath: string;
-}
-
-/**
- * Check if a given object implements the CuratedLocationsResponseDto interface.
- */
-export function instanceOfCuratedLocationsResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "city" in value;
- isInstance = isInstance && "deviceAssetId" in value;
- isInstance = isInstance && "deviceId" in value;
- isInstance = isInstance && "id" in value;
- isInstance = isInstance && "resizePath" in value;
-
- return isInstance;
-}
-
-export function CuratedLocationsResponseDtoFromJSON(json: any): CuratedLocationsResponseDto {
- return CuratedLocationsResponseDtoFromJSONTyped(json, false);
-}
-
-export function CuratedLocationsResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CuratedLocationsResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'city': json['city'],
- 'deviceAssetId': json['deviceAssetId'],
- 'deviceId': json['deviceId'],
- 'id': json['id'],
- 'resizePath': json['resizePath'],
- };
-}
-
-export function CuratedLocationsResponseDtoToJSON(value?: CuratedLocationsResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'city': value.city,
- 'deviceAssetId': value.deviceAssetId,
- 'deviceId': value.deviceId,
- 'id': value.id,
- 'resizePath': value.resizePath,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/CuratedObjectsResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/CuratedObjectsResponseDto.ts
deleted file mode 100644
index 6366d2128b..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/CuratedObjectsResponseDto.ts
+++ /dev/null
@@ -1,102 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface CuratedObjectsResponseDto
- */
-export interface CuratedObjectsResponseDto {
- /**
- *
- * @type {string}
- * @memberof CuratedObjectsResponseDto
- */
- deviceAssetId: string;
- /**
- *
- * @type {string}
- * @memberof CuratedObjectsResponseDto
- */
- deviceId: string;
- /**
- *
- * @type {string}
- * @memberof CuratedObjectsResponseDto
- */
- id: string;
- /**
- *
- * @type {string}
- * @memberof CuratedObjectsResponseDto
- */
- object: string;
- /**
- *
- * @type {string}
- * @memberof CuratedObjectsResponseDto
- */
- resizePath: string;
-}
-
-/**
- * Check if a given object implements the CuratedObjectsResponseDto interface.
- */
-export function instanceOfCuratedObjectsResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "deviceAssetId" in value;
- isInstance = isInstance && "deviceId" in value;
- isInstance = isInstance && "id" in value;
- isInstance = isInstance && "object" in value;
- isInstance = isInstance && "resizePath" in value;
-
- return isInstance;
-}
-
-export function CuratedObjectsResponseDtoFromJSON(json: any): CuratedObjectsResponseDto {
- return CuratedObjectsResponseDtoFromJSONTyped(json, false);
-}
-
-export function CuratedObjectsResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CuratedObjectsResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'deviceAssetId': json['deviceAssetId'],
- 'deviceId': json['deviceId'],
- 'id': json['id'],
- 'object': json['object'],
- 'resizePath': json['resizePath'],
- };
-}
-
-export function CuratedObjectsResponseDtoToJSON(value?: CuratedObjectsResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'deviceAssetId': value.deviceAssetId,
- 'deviceId': value.deviceId,
- 'id': value.id,
- 'object': value.object,
- 'resizePath': value.resizePath,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/DownloadArchiveInfo.ts b/open-api/typescript-sdk/fetch-client/models/DownloadArchiveInfo.ts
deleted file mode 100644
index 916b4f932f..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/DownloadArchiveInfo.ts
+++ /dev/null
@@ -1,75 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface DownloadArchiveInfo
- */
-export interface DownloadArchiveInfo {
- /**
- *
- * @type {Array<string>}
- * @memberof DownloadArchiveInfo
- */
- assetIds: Array<string>;
- /**
- *
- * @type {number}
- * @memberof DownloadArchiveInfo
- */
- size: number;
-}
-
-/**
- * Check if a given object implements the DownloadArchiveInfo interface.
- */
-export function instanceOfDownloadArchiveInfo(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "assetIds" in value;
- isInstance = isInstance && "size" in value;
-
- return isInstance;
-}
-
-export function DownloadArchiveInfoFromJSON(json: any): DownloadArchiveInfo {
- return DownloadArchiveInfoFromJSONTyped(json, false);
-}
-
-export function DownloadArchiveInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DownloadArchiveInfo {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'assetIds': json['assetIds'],
- 'size': json['size'],
- };
-}
-
-export function DownloadArchiveInfoToJSON(value?: DownloadArchiveInfo | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'assetIds': value.assetIds,
- 'size': value.size,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/DownloadInfoDto.ts b/open-api/typescript-sdk/fetch-client/models/DownloadInfoDto.ts
deleted file mode 100644
index 7fbd55ed46..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/DownloadInfoDto.ts
+++ /dev/null
@@ -1,89 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface DownloadInfoDto
- */
-export interface DownloadInfoDto {
- /**
- *
- * @type {string}
- * @memberof DownloadInfoDto
- */
- albumId?: string;
- /**
- *
- * @type {number}
- * @memberof DownloadInfoDto
- */
- archiveSize?: number;
- /**
- *
- * @type {Array<string>}
- * @memberof DownloadInfoDto
- */
- assetIds?: Array<string>;
- /**
- *
- * @type {string}
- * @memberof DownloadInfoDto
- */
- userId?: string;
-}
-
-/**
- * Check if a given object implements the DownloadInfoDto interface.
- */
-export function instanceOfDownloadInfoDto(value: object): boolean {
- let isInstance = true;
-
- return isInstance;
-}
-
-export function DownloadInfoDtoFromJSON(json: any): DownloadInfoDto {
- return DownloadInfoDtoFromJSONTyped(json, false);
-}
-
-export function DownloadInfoDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DownloadInfoDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'albumId': !exists(json, 'albumId') ? undefined : json['albumId'],
- 'archiveSize': !exists(json, 'archiveSize') ? undefined : json['archiveSize'],
- 'assetIds': !exists(json, 'assetIds') ? undefined : json['assetIds'],
- 'userId': !exists(json, 'userId') ? undefined : json['userId'],
- };
-}
-
-export function DownloadInfoDtoToJSON(value?: DownloadInfoDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'albumId': value.albumId,
- 'archiveSize': value.archiveSize,
- 'assetIds': value.assetIds,
- 'userId': value.userId,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/DownloadResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/DownloadResponseDto.ts
deleted file mode 100644
index a0887dab8e..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/DownloadResponseDto.ts
+++ /dev/null
@@ -1,82 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-import type { DownloadArchiveInfo } from './DownloadArchiveInfo';
-import {
- DownloadArchiveInfoFromJSON,
- DownloadArchiveInfoFromJSONTyped,
- DownloadArchiveInfoToJSON,
-} from './DownloadArchiveInfo';
-
-/**
- *
- * @export
- * @interface DownloadResponseDto
- */
-export interface DownloadResponseDto {
- /**
- *
- * @type {Array<DownloadArchiveInfo>}
- * @memberof DownloadResponseDto
- */
- archives: Array<DownloadArchiveInfo>;
- /**
- *
- * @type {number}
- * @memberof DownloadResponseDto
- */
- totalSize: number;
-}
-
-/**
- * Check if a given object implements the DownloadResponseDto interface.
- */
-export function instanceOfDownloadResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "archives" in value;
- isInstance = isInstance && "totalSize" in value;
-
- return isInstance;
-}
-
-export function DownloadResponseDtoFromJSON(json: any): DownloadResponseDto {
- return DownloadResponseDtoFromJSONTyped(json, false);
-}
-
-export function DownloadResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DownloadResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'archives': ((json['archives'] as Array<any>).map(DownloadArchiveInfoFromJSON)),
- 'totalSize': json['totalSize'],
- };
-}
-
-export function DownloadResponseDtoToJSON(value?: DownloadResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'archives': ((value.archives as Array<any>).map(DownloadArchiveInfoToJSON)),
- 'totalSize': value.totalSize,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/EntityType.ts b/open-api/typescript-sdk/fetch-client/models/EntityType.ts
deleted file mode 100644
index c5b9abb9ac..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/EntityType.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-/**
- *
- * @export
- */
-export const EntityType = {
- Asset: 'ASSET',
- Album: 'ALBUM'
-} as const;
-export type EntityType = typeof EntityType[keyof typeof EntityType];
-
-
-export function EntityTypeFromJSON(json: any): EntityType {
- return EntityTypeFromJSONTyped(json, false);
-}
-
-export function EntityTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): EntityType {
- return json as EntityType;
-}
-
-export function EntityTypeToJSON(value?: EntityType | null): any {
- return value as any;
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/ExifResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/ExifResponseDto.ts
deleted file mode 100644
index c0ce31edc3..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/ExifResponseDto.ts
+++ /dev/null
@@ -1,225 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface ExifResponseDto
- */
-export interface ExifResponseDto {
- /**
- *
- * @type {string}
- * @memberof ExifResponseDto
- */
- city?: string | null;
- /**
- *
- * @type {string}
- * @memberof ExifResponseDto
- */
- country?: string | null;
- /**
- *
- * @type {Date}
- * @memberof ExifResponseDto
- */
- dateTimeOriginal?: Date | null;
- /**
- *
- * @type {string}
- * @memberof ExifResponseDto
- */
- description?: string | null;
- /**
- *
- * @type {number}
- * @memberof ExifResponseDto
- */
- exifImageHeight?: number | null;
- /**
- *
- * @type {number}
- * @memberof ExifResponseDto
- */
- exifImageWidth?: number | null;
- /**
- *
- * @type {string}
- * @memberof ExifResponseDto
- */
- exposureTime?: string | null;
- /**
- *
- * @type {number}
- * @memberof ExifResponseDto
- */
- fNumber?: number | null;
- /**
- *
- * @type {number}
- * @memberof ExifResponseDto
- */
- fileSizeInByte?: number | null;
- /**
- *
- * @type {number}
- * @memberof ExifResponseDto
- */
- focalLength?: number | null;
- /**
- *
- * @type {number}
- * @memberof ExifResponseDto
- */
- iso?: number | null;
- /**
- *
- * @type {number}
- * @memberof ExifResponseDto
- */
- latitude?: number | null;
- /**
- *
- * @type {string}
- * @memberof ExifResponseDto
- */
- lensModel?: string | null;
- /**
- *
- * @type {number}
- * @memberof ExifResponseDto
- */
- longitude?: number | null;
- /**
- *
- * @type {string}
- * @memberof ExifResponseDto
- */
- make?: string | null;
- /**
- *
- * @type {string}
- * @memberof ExifResponseDto
- */
- model?: string | null;
- /**
- *
- * @type {Date}
- * @memberof ExifResponseDto
- */
- modifyDate?: Date | null;
- /**
- *
- * @type {string}
- * @memberof ExifResponseDto
- */
- orientation?: string | null;
- /**
- *
- * @type {string}
- * @memberof ExifResponseDto
- */
- projectionType?: string | null;
- /**
- *
- * @type {string}
- * @memberof ExifResponseDto
- */
- state?: string | null;
- /**
- *
- * @type {string}
- * @memberof ExifResponseDto
- */
- timeZone?: string | null;
-}
-
-/**
- * Check if a given object implements the ExifResponseDto interface.
- */
-export function instanceOfExifResponseDto(value: object): boolean {
- let isInstance = true;
-
- return isInstance;
-}
-
-export function ExifResponseDtoFromJSON(json: any): ExifResponseDto {
- return ExifResponseDtoFromJSONTyped(json, false);
-}
-
-export function ExifResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExifResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'city': !exists(json, 'city') ? undefined : json['city'],
- 'country': !exists(json, 'country') ? undefined : json['country'],
- 'dateTimeOriginal': !exists(json, 'dateTimeOriginal') ? undefined : (json['dateTimeOriginal'] === null ? null : new Date(json['dateTimeOriginal'])),
- 'description': !exists(json, 'description') ? undefined : json['description'],
- 'exifImageHeight': !exists(json, 'exifImageHeight') ? undefined : json['exifImageHeight'],
- 'exifImageWidth': !exists(json, 'exifImageWidth') ? undefined : json['exifImageWidth'],
- 'exposureTime': !exists(json, 'exposureTime') ? undefined : json['exposureTime'],
- 'fNumber': !exists(json, 'fNumber') ? undefined : json['fNumber'],
- 'fileSizeInByte': !exists(json, 'fileSizeInByte') ? undefined : json['fileSizeInByte'],
- 'focalLength': !exists(json, 'focalLength') ? undefined : json['focalLength'],
- 'iso': !exists(json, 'iso') ? undefined : json['iso'],
- 'latitude': !exists(json, 'latitude') ? undefined : json['latitude'],
- 'lensModel': !exists(json, 'lensModel') ? undefined : json['lensModel'],
- 'longitude': !exists(json, 'longitude') ? undefined : json['longitude'],
- 'make': !exists(json, 'make') ? undefined : json['make'],
- 'model': !exists(json, 'model') ? undefined : json['model'],
- 'modifyDate': !exists(json, 'modifyDate') ? undefined : (json['modifyDate'] === null ? null : new Date(json['modifyDate'])),
- 'orientation': !exists(json, 'orientation') ? undefined : json['orientation'],
- 'projectionType': !exists(json, 'projectionType') ? undefined : json['projectionType'],
- 'state': !exists(json, 'state') ? undefined : json['state'],
- 'timeZone': !exists(json, 'timeZone') ? undefined : json['timeZone'],
- };
-}
-
-export function ExifResponseDtoToJSON(value?: ExifResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'city': value.city,
- 'country': value.country,
- 'dateTimeOriginal': value.dateTimeOriginal === undefined ? undefined : (value.dateTimeOriginal === null ? null : value.dateTimeOriginal.toISOString()),
- 'description': value.description,
- 'exifImageHeight': value.exifImageHeight,
- 'exifImageWidth': value.exifImageWidth,
- 'exposureTime': value.exposureTime,
- 'fNumber': value.fNumber,
- 'fileSizeInByte': value.fileSizeInByte,
- 'focalLength': value.focalLength,
- 'iso': value.iso,
- 'latitude': value.latitude,
- 'lensModel': value.lensModel,
- 'longitude': value.longitude,
- 'make': value.make,
- 'model': value.model,
- 'modifyDate': value.modifyDate === undefined ? undefined : (value.modifyDate === null ? null : value.modifyDate.toISOString()),
- 'orientation': value.orientation,
- 'projectionType': value.projectionType,
- 'state': value.state,
- 'timeZone': value.timeZone,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/FaceDto.ts b/open-api/typescript-sdk/fetch-client/models/FaceDto.ts
deleted file mode 100644
index 01a18d6efd..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/FaceDto.ts
+++ /dev/null
@@ -1,66 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface FaceDto
- */
-export interface FaceDto {
- /**
- *
- * @type {string}
- * @memberof FaceDto
- */
- id: string;
-}
-
-/**
- * Check if a given object implements the FaceDto interface.
- */
-export function instanceOfFaceDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "id" in value;
-
- return isInstance;
-}
-
-export function FaceDtoFromJSON(json: any): FaceDto {
- return FaceDtoFromJSONTyped(json, false);
-}
-
-export function FaceDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): FaceDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'id': json['id'],
- };
-}
-
-export function FaceDtoToJSON(value?: FaceDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'id': value.id,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/FileChecksumDto.ts b/open-api/typescript-sdk/fetch-client/models/FileChecksumDto.ts
deleted file mode 100644
index 9c924bfe88..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/FileChecksumDto.ts
+++ /dev/null
@@ -1,66 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface FileChecksumDto
- */
-export interface FileChecksumDto {
- /**
- *
- * @type {Array<string>}
- * @memberof FileChecksumDto
- */
- filenames: Array<string>;
-}
-
-/**
- * Check if a given object implements the FileChecksumDto interface.
- */
-export function instanceOfFileChecksumDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "filenames" in value;
-
- return isInstance;
-}
-
-export function FileChecksumDtoFromJSON(json: any): FileChecksumDto {
- return FileChecksumDtoFromJSONTyped(json, false);
-}
-
-export function FileChecksumDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): FileChecksumDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'filenames': json['filenames'],
- };
-}
-
-export function FileChecksumDtoToJSON(value?: FileChecksumDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'filenames': value.filenames,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/FileChecksumResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/FileChecksumResponseDto.ts
deleted file mode 100644
index 734822c48b..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/FileChecksumResponseDto.ts
+++ /dev/null
@@ -1,75 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface FileChecksumResponseDto
- */
-export interface FileChecksumResponseDto {
- /**
- *
- * @type {string}
- * @memberof FileChecksumResponseDto
- */
- checksum: string;
- /**
- *
- * @type {string}
- * @memberof FileChecksumResponseDto
- */
- filename: string;
-}
-
-/**
- * Check if a given object implements the FileChecksumResponseDto interface.
- */
-export function instanceOfFileChecksumResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "checksum" in value;
- isInstance = isInstance && "filename" in value;
-
- return isInstance;
-}
-
-export function FileChecksumResponseDtoFromJSON(json: any): FileChecksumResponseDto {
- return FileChecksumResponseDtoFromJSONTyped(json, false);
-}
-
-export function FileChecksumResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): FileChecksumResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'checksum': json['checksum'],
- 'filename': json['filename'],
- };
-}
-
-export function FileChecksumResponseDtoToJSON(value?: FileChecksumResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'checksum': value.checksum,
- 'filename': value.filename,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/FileReportDto.ts b/open-api/typescript-sdk/fetch-client/models/FileReportDto.ts
deleted file mode 100644
index 5dd66d63a5..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/FileReportDto.ts
+++ /dev/null
@@ -1,82 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-import type { FileReportItemDto } from './FileReportItemDto';
-import {
- FileReportItemDtoFromJSON,
- FileReportItemDtoFromJSONTyped,
- FileReportItemDtoToJSON,
-} from './FileReportItemDto';
-
-/**
- *
- * @export
- * @interface FileReportDto
- */
-export interface FileReportDto {
- /**
- *
- * @type {Array<string>}
- * @memberof FileReportDto
- */
- extras: Array<string>;
- /**
- *
- * @type {Array<FileReportItemDto>}
- * @memberof FileReportDto
- */
- orphans: Array<FileReportItemDto>;
-}
-
-/**
- * Check if a given object implements the FileReportDto interface.
- */
-export function instanceOfFileReportDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "extras" in value;
- isInstance = isInstance && "orphans" in value;
-
- return isInstance;
-}
-
-export function FileReportDtoFromJSON(json: any): FileReportDto {
- return FileReportDtoFromJSONTyped(json, false);
-}
-
-export function FileReportDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): FileReportDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'extras': json['extras'],
- 'orphans': ((json['orphans'] as Array<any>).map(FileReportItemDtoFromJSON)),
- };
-}
-
-export function FileReportDtoToJSON(value?: FileReportDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'extras': value.extras,
- 'orphans': ((value.orphans as Array<any>).map(FileReportItemDtoToJSON)),
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/FileReportFixDto.ts b/open-api/typescript-sdk/fetch-client/models/FileReportFixDto.ts
deleted file mode 100644
index ec651a58dd..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/FileReportFixDto.ts
+++ /dev/null
@@ -1,73 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-import type { FileReportItemDto } from './FileReportItemDto';
-import {
- FileReportItemDtoFromJSON,
- FileReportItemDtoFromJSONTyped,
- FileReportItemDtoToJSON,
-} from './FileReportItemDto';
-
-/**
- *
- * @export
- * @interface FileReportFixDto
- */
-export interface FileReportFixDto {
- /**
- *
- * @type {Array<FileReportItemDto>}
- * @memberof FileReportFixDto
- */
- items: Array<FileReportItemDto>;
-}
-
-/**
- * Check if a given object implements the FileReportFixDto interface.
- */
-export function instanceOfFileReportFixDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "items" in value;
-
- return isInstance;
-}
-
-export function FileReportFixDtoFromJSON(json: any): FileReportFixDto {
- return FileReportFixDtoFromJSONTyped(json, false);
-}
-
-export function FileReportFixDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): FileReportFixDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'items': ((json['items'] as Array<any>).map(FileReportItemDtoFromJSON)),
- };
-}
-
-export function FileReportFixDtoToJSON(value?: FileReportFixDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'items': ((value.items as Array<any>).map(FileReportItemDtoToJSON)),
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/FileReportItemDto.ts b/open-api/typescript-sdk/fetch-client/models/FileReportItemDto.ts
deleted file mode 100644
index 12652f9a69..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/FileReportItemDto.ts
+++ /dev/null
@@ -1,114 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-import type { PathEntityType } from './PathEntityType';
-import {
- PathEntityTypeFromJSON,
- PathEntityTypeFromJSONTyped,
- PathEntityTypeToJSON,
-} from './PathEntityType';
-import type { PathType } from './PathType';
-import {
- PathTypeFromJSON,
- PathTypeFromJSONTyped,
- PathTypeToJSON,
-} from './PathType';
-
-/**
- *
- * @export
- * @interface FileReportItemDto
- */
-export interface FileReportItemDto {
- /**
- *
- * @type {string}
- * @memberof FileReportItemDto
- */
- checksum?: string;
- /**
- *
- * @type {string}
- * @memberof FileReportItemDto
- */
- entityId: string;
- /**
- *
- * @type {PathEntityType}
- * @memberof FileReportItemDto
- */
- entityType: PathEntityType;
- /**
- *
- * @type {PathType}
- * @memberof FileReportItemDto
- */
- pathType: PathType;
- /**
- *
- * @type {string}
- * @memberof FileReportItemDto
- */
- pathValue: string;
-}
-
-/**
- * Check if a given object implements the FileReportItemDto interface.
- */
-export function instanceOfFileReportItemDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "entityId" in value;
- isInstance = isInstance && "entityType" in value;
- isInstance = isInstance && "pathType" in value;
- isInstance = isInstance && "pathValue" in value;
-
- return isInstance;
-}
-
-export function FileReportItemDtoFromJSON(json: any): FileReportItemDto {
- return FileReportItemDtoFromJSONTyped(json, false);
-}
-
-export function FileReportItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): FileReportItemDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'checksum': !exists(json, 'checksum') ? undefined : json['checksum'],
- 'entityId': json['entityId'],
- 'entityType': PathEntityTypeFromJSON(json['entityType']),
- 'pathType': PathTypeFromJSON(json['pathType']),
- 'pathValue': json['pathValue'],
- };
-}
-
-export function FileReportItemDtoToJSON(value?: FileReportItemDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'checksum': value.checksum,
- 'entityId': value.entityId,
- 'entityType': PathEntityTypeToJSON(value.entityType),
- 'pathType': PathTypeToJSON(value.pathType),
- 'pathValue': value.pathValue,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/JobCommand.ts b/open-api/typescript-sdk/fetch-client/models/JobCommand.ts
deleted file mode 100644
index 5f4c03d41b..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/JobCommand.ts
+++ /dev/null
@@ -1,41 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-/**
- *
- * @export
- */
-export const JobCommand = {
- Start: 'start',
- Pause: 'pause',
- Resume: 'resume',
- Empty: 'empty',
- ClearFailed: 'clear-failed'
-} as const;
-export type JobCommand = typeof JobCommand[keyof typeof JobCommand];
-
-
-export function JobCommandFromJSON(json: any): JobCommand {
- return JobCommandFromJSONTyped(json, false);
-}
-
-export function JobCommandFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobCommand {
- return json as JobCommand;
-}
-
-export function JobCommandToJSON(value?: JobCommand | null): any {
- return value as any;
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/JobCommandDto.ts b/open-api/typescript-sdk/fetch-client/models/JobCommandDto.ts
deleted file mode 100644
index 7faf938249..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/JobCommandDto.ts
+++ /dev/null
@@ -1,82 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-import type { JobCommand } from './JobCommand';
-import {
- JobCommandFromJSON,
- JobCommandFromJSONTyped,
- JobCommandToJSON,
-} from './JobCommand';
-
-/**
- *
- * @export
- * @interface JobCommandDto
- */
-export interface JobCommandDto {
- /**
- *
- * @type {JobCommand}
- * @memberof JobCommandDto
- */
- command: JobCommand;
- /**
- *
- * @type {boolean}
- * @memberof JobCommandDto
- */
- force: boolean;
-}
-
-/**
- * Check if a given object implements the JobCommandDto interface.
- */
-export function instanceOfJobCommandDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "command" in value;
- isInstance = isInstance && "force" in value;
-
- return isInstance;
-}
-
-export function JobCommandDtoFromJSON(json: any): JobCommandDto {
- return JobCommandDtoFromJSONTyped(json, false);
-}
-
-export function JobCommandDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobCommandDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'command': JobCommandFromJSON(json['command']),
- 'force': json['force'],
- };
-}
-
-export function JobCommandDtoToJSON(value?: JobCommandDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'command': JobCommandToJSON(value.command),
- 'force': value.force,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/JobCountsDto.ts b/open-api/typescript-sdk/fetch-client/models/JobCountsDto.ts
deleted file mode 100644
index 48645a27ca..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/JobCountsDto.ts
+++ /dev/null
@@ -1,111 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface JobCountsDto
- */
-export interface JobCountsDto {
- /**
- *
- * @type {number}
- * @memberof JobCountsDto
- */
- active: number;
- /**
- *
- * @type {number}
- * @memberof JobCountsDto
- */
- completed: number;
- /**
- *
- * @type {number}
- * @memberof JobCountsDto
- */
- delayed: number;
- /**
- *
- * @type {number}
- * @memberof JobCountsDto
- */
- failed: number;
- /**
- *
- * @type {number}
- * @memberof JobCountsDto
- */
- paused: number;
- /**
- *
- * @type {number}
- * @memberof JobCountsDto
- */
- waiting: number;
-}
-
-/**
- * Check if a given object implements the JobCountsDto interface.
- */
-export function instanceOfJobCountsDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "active" in value;
- isInstance = isInstance && "completed" in value;
- isInstance = isInstance && "delayed" in value;
- isInstance = isInstance && "failed" in value;
- isInstance = isInstance && "paused" in value;
- isInstance = isInstance && "waiting" in value;
-
- return isInstance;
-}
-
-export function JobCountsDtoFromJSON(json: any): JobCountsDto {
- return JobCountsDtoFromJSONTyped(json, false);
-}
-
-export function JobCountsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobCountsDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'active': json['active'],
- 'completed': json['completed'],
- 'delayed': json['delayed'],
- 'failed': json['failed'],
- 'paused': json['paused'],
- 'waiting': json['waiting'],
- };
-}
-
-export function JobCountsDtoToJSON(value?: JobCountsDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'active': value.active,
- 'completed': value.completed,
- 'delayed': value.delayed,
- 'failed': value.failed,
- 'paused': value.paused,
- 'waiting': value.waiting,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/JobName.ts b/open-api/typescript-sdk/fetch-client/models/JobName.ts
deleted file mode 100644
index 714e077d9e..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/JobName.ts
+++ /dev/null
@@ -1,48 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-/**
- *
- * @export
- */
-export const JobName = {
- ThumbnailGeneration: 'thumbnailGeneration',
- MetadataExtraction: 'metadataExtraction',
- VideoConversion: 'videoConversion',
- FaceDetection: 'faceDetection',
- FacialRecognition: 'facialRecognition',
- SmartSearch: 'smartSearch',
- BackgroundTask: 'backgroundTask',
- StorageTemplateMigration: 'storageTemplateMigration',
- Migration: 'migration',
- Search: 'search',
- Sidecar: 'sidecar',
- Library: 'library'
-} as const;
-export type JobName = typeof JobName[keyof typeof JobName];
-
-
-export function JobNameFromJSON(json: any): JobName {
- return JobNameFromJSONTyped(json, false);
-}
-
-export function JobNameFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobName {
- return json as JobName;
-}
-
-export function JobNameToJSON(value?: JobName | null): any {
- return value as any;
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/JobSettingsDto.ts b/open-api/typescript-sdk/fetch-client/models/JobSettingsDto.ts
deleted file mode 100644
index bbbc819d0e..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/JobSettingsDto.ts
+++ /dev/null
@@ -1,66 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface JobSettingsDto
- */
-export interface JobSettingsDto {
- /**
- *
- * @type {number}
- * @memberof JobSettingsDto
- */
- concurrency: number;
-}
-
-/**
- * Check if a given object implements the JobSettingsDto interface.
- */
-export function instanceOfJobSettingsDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "concurrency" in value;
-
- return isInstance;
-}
-
-export function JobSettingsDtoFromJSON(json: any): JobSettingsDto {
- return JobSettingsDtoFromJSONTyped(json, false);
-}
-
-export function JobSettingsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobSettingsDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'concurrency': json['concurrency'],
- };
-}
-
-export function JobSettingsDtoToJSON(value?: JobSettingsDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'concurrency': value.concurrency,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/JobStatusDto.ts b/open-api/typescript-sdk/fetch-client/models/JobStatusDto.ts
deleted file mode 100644
index 32c29e10fc..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/JobStatusDto.ts
+++ /dev/null
@@ -1,88 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-import type { JobCountsDto } from './JobCountsDto';
-import {
- JobCountsDtoFromJSON,
- JobCountsDtoFromJSONTyped,
- JobCountsDtoToJSON,
-} from './JobCountsDto';
-import type { QueueStatusDto } from './QueueStatusDto';
-import {
- QueueStatusDtoFromJSON,
- QueueStatusDtoFromJSONTyped,
- QueueStatusDtoToJSON,
-} from './QueueStatusDto';
-
-/**
- *
- * @export
- * @interface JobStatusDto
- */
-export interface JobStatusDto {
- /**
- *
- * @type {JobCountsDto}
- * @memberof JobStatusDto
- */
- jobCounts: JobCountsDto;
- /**
- *
- * @type {QueueStatusDto}
- * @memberof JobStatusDto
- */
- queueStatus: QueueStatusDto;
-}
-
-/**
- * Check if a given object implements the JobStatusDto interface.
- */
-export function instanceOfJobStatusDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "jobCounts" in value;
- isInstance = isInstance && "queueStatus" in value;
-
- return isInstance;
-}
-
-export function JobStatusDtoFromJSON(json: any): JobStatusDto {
- return JobStatusDtoFromJSONTyped(json, false);
-}
-
-export function JobStatusDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobStatusDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'jobCounts': JobCountsDtoFromJSON(json['jobCounts']),
- 'queueStatus': QueueStatusDtoFromJSON(json['queueStatus']),
- };
-}
-
-export function JobStatusDtoToJSON(value?: JobStatusDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'jobCounts': JobCountsDtoToJSON(value.jobCounts),
- 'queueStatus': QueueStatusDtoToJSON(value.queueStatus),
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/LibraryResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/LibraryResponseDto.ts
deleted file mode 100644
index 0f64540b4b..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/LibraryResponseDto.ts
+++ /dev/null
@@ -1,154 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-import type { LibraryType } from './LibraryType';
-import {
- LibraryTypeFromJSON,
- LibraryTypeFromJSONTyped,
- LibraryTypeToJSON,
-} from './LibraryType';
-
-/**
- *
- * @export
- * @interface LibraryResponseDto
- */
-export interface LibraryResponseDto {
- /**
- *
- * @type {number}
- * @memberof LibraryResponseDto
- */
- assetCount: number;
- /**
- *
- * @type {Date}
- * @memberof LibraryResponseDto
- */
- createdAt: Date;
- /**
- *
- * @type {Array<string>}
- * @memberof LibraryResponseDto
- */
- exclusionPatterns: Array<string>;
- /**
- *
- * @type {string}
- * @memberof LibraryResponseDto
- */
- id: string;
- /**
- *
- * @type {Array<string>}
- * @memberof LibraryResponseDto
- */
- importPaths: Array<string>;
- /**
- *
- * @type {string}
- * @memberof LibraryResponseDto
- */
- name: string;
- /**
- *
- * @type {string}
- * @memberof LibraryResponseDto
- */
- ownerId: string;
- /**
- *
- * @type {Date}
- * @memberof LibraryResponseDto
- */
- refreshedAt: Date | null;
- /**
- *
- * @type {LibraryType}
- * @memberof LibraryResponseDto
- */
- type: LibraryType;
- /**
- *
- * @type {Date}
- * @memberof LibraryResponseDto
- */
- updatedAt: Date;
-}
-
-/**
- * Check if a given object implements the LibraryResponseDto interface.
- */
-export function instanceOfLibraryResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "assetCount" in value;
- isInstance = isInstance && "createdAt" in value;
- isInstance = isInstance && "exclusionPatterns" in value;
- isInstance = isInstance && "id" in value;
- isInstance = isInstance && "importPaths" in value;
- isInstance = isInstance && "name" in value;
- isInstance = isInstance && "ownerId" in value;
- isInstance = isInstance && "refreshedAt" in value;
- isInstance = isInstance && "type" in value;
- isInstance = isInstance && "updatedAt" in value;
-
- return isInstance;
-}
-
-export function LibraryResponseDtoFromJSON(json: any): LibraryResponseDto {
- return LibraryResponseDtoFromJSONTyped(json, false);
-}
-
-export function LibraryResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LibraryResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'assetCount': json['assetCount'],
- 'createdAt': (new Date(json['createdAt'])),
- 'exclusionPatterns': json['exclusionPatterns'],
- 'id': json['id'],
- 'importPaths': json['importPaths'],
- 'name': json['name'],
- 'ownerId': json['ownerId'],
- 'refreshedAt': (json['refreshedAt'] === null ? null : new Date(json['refreshedAt'])),
- 'type': LibraryTypeFromJSON(json['type']),
- 'updatedAt': (new Date(json['updatedAt'])),
- };
-}
-
-export function LibraryResponseDtoToJSON(value?: LibraryResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'assetCount': value.assetCount,
- 'createdAt': (value.createdAt.toISOString()),
- 'exclusionPatterns': value.exclusionPatterns,
- 'id': value.id,
- 'importPaths': value.importPaths,
- 'name': value.name,
- 'ownerId': value.ownerId,
- 'refreshedAt': (value.refreshedAt === null ? null : value.refreshedAt.toISOString()),
- 'type': LibraryTypeToJSON(value.type),
- 'updatedAt': (value.updatedAt.toISOString()),
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/LibraryStatsResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/LibraryStatsResponseDto.ts
deleted file mode 100644
index 94639c35fa..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/LibraryStatsResponseDto.ts
+++ /dev/null
@@ -1,93 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface LibraryStatsResponseDto
- */
-export interface LibraryStatsResponseDto {
- /**
- *
- * @type {number}
- * @memberof LibraryStatsResponseDto
- */
- photos: number;
- /**
- *
- * @type {number}
- * @memberof LibraryStatsResponseDto
- */
- total: number;
- /**
- *
- * @type {number}
- * @memberof LibraryStatsResponseDto
- */
- usage: number;
- /**
- *
- * @type {number}
- * @memberof LibraryStatsResponseDto
- */
- videos: number;
-}
-
-/**
- * Check if a given object implements the LibraryStatsResponseDto interface.
- */
-export function instanceOfLibraryStatsResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "photos" in value;
- isInstance = isInstance && "total" in value;
- isInstance = isInstance && "usage" in value;
- isInstance = isInstance && "videos" in value;
-
- return isInstance;
-}
-
-export function LibraryStatsResponseDtoFromJSON(json: any): LibraryStatsResponseDto {
- return LibraryStatsResponseDtoFromJSONTyped(json, false);
-}
-
-export function LibraryStatsResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LibraryStatsResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'photos': json['photos'],
- 'total': json['total'],
- 'usage': json['usage'],
- 'videos': json['videos'],
- };
-}
-
-export function LibraryStatsResponseDtoToJSON(value?: LibraryStatsResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'photos': value.photos,
- 'total': value.total,
- 'usage': value.usage,
- 'videos': value.videos,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/LibraryType.ts b/open-api/typescript-sdk/fetch-client/models/LibraryType.ts
deleted file mode 100644
index 99d66218b6..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/LibraryType.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-/**
- *
- * @export
- */
-export const LibraryType = {
- Upload: 'UPLOAD',
- External: 'EXTERNAL'
-} as const;
-export type LibraryType = typeof LibraryType[keyof typeof LibraryType];
-
-
-export function LibraryTypeFromJSON(json: any): LibraryType {
- return LibraryTypeFromJSONTyped(json, false);
-}
-
-export function LibraryTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): LibraryType {
- return json as LibraryType;
-}
-
-export function LibraryTypeToJSON(value?: LibraryType | null): any {
- return value as any;
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/LogLevel.ts b/open-api/typescript-sdk/fetch-client/models/LogLevel.ts
deleted file mode 100644
index 0c4333893d..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/LogLevel.ts
+++ /dev/null
@@ -1,42 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-/**
- *
- * @export
- */
-export const LogLevel = {
- Verbose: 'verbose',
- Debug: 'debug',
- Log: 'log',
- Warn: 'warn',
- Error: 'error',
- Fatal: 'fatal'
-} as const;
-export type LogLevel = typeof LogLevel[keyof typeof LogLevel];
-
-
-export function LogLevelFromJSON(json: any): LogLevel {
- return LogLevelFromJSONTyped(json, false);
-}
-
-export function LogLevelFromJSONTyped(json: any, ignoreDiscriminator: boolean): LogLevel {
- return json as LogLevel;
-}
-
-export function LogLevelToJSON(value?: LogLevel | null): any {
- return value as any;
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/LoginCredentialDto.ts b/open-api/typescript-sdk/fetch-client/models/LoginCredentialDto.ts
deleted file mode 100644
index 2bf85ca350..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/LoginCredentialDto.ts
+++ /dev/null
@@ -1,75 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface LoginCredentialDto
- */
-export interface LoginCredentialDto {
- /**
- *
- * @type {string}
- * @memberof LoginCredentialDto
- */
- email: string;
- /**
- *
- * @type {string}
- * @memberof LoginCredentialDto
- */
- password: string;
-}
-
-/**
- * Check if a given object implements the LoginCredentialDto interface.
- */
-export function instanceOfLoginCredentialDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "email" in value;
- isInstance = isInstance && "password" in value;
-
- return isInstance;
-}
-
-export function LoginCredentialDtoFromJSON(json: any): LoginCredentialDto {
- return LoginCredentialDtoFromJSONTyped(json, false);
-}
-
-export function LoginCredentialDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginCredentialDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'email': json['email'],
- 'password': json['password'],
- };
-}
-
-export function LoginCredentialDtoToJSON(value?: LoginCredentialDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'email': value.email,
- 'password': value.password,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/LoginResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/LoginResponseDto.ts
deleted file mode 100644
index 355e57e238..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/LoginResponseDto.ts
+++ /dev/null
@@ -1,120 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface LoginResponseDto
- */
-export interface LoginResponseDto {
- /**
- *
- * @type {string}
- * @memberof LoginResponseDto
- */
- accessToken: string;
- /**
- *
- * @type {boolean}
- * @memberof LoginResponseDto
- */
- isAdmin: boolean;
- /**
- *
- * @type {string}
- * @memberof LoginResponseDto
- */
- name: string;
- /**
- *
- * @type {string}
- * @memberof LoginResponseDto
- */
- profileImagePath: string;
- /**
- *
- * @type {boolean}
- * @memberof LoginResponseDto
- */
- shouldChangePassword: boolean;
- /**
- *
- * @type {string}
- * @memberof LoginResponseDto
- */
- userEmail: string;
- /**
- *
- * @type {string}
- * @memberof LoginResponseDto
- */
- userId: string;
-}
-
-/**
- * Check if a given object implements the LoginResponseDto interface.
- */
-export function instanceOfLoginResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "accessToken" in value;
- isInstance = isInstance && "isAdmin" in value;
- isInstance = isInstance && "name" in value;
- isInstance = isInstance && "profileImagePath" in value;
- isInstance = isInstance && "shouldChangePassword" in value;
- isInstance = isInstance && "userEmail" in value;
- isInstance = isInstance && "userId" in value;
-
- return isInstance;
-}
-
-export function LoginResponseDtoFromJSON(json: any): LoginResponseDto {
- return LoginResponseDtoFromJSONTyped(json, false);
-}
-
-export function LoginResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'accessToken': json['accessToken'],
- 'isAdmin': json['isAdmin'],
- 'name': json['name'],
- 'profileImagePath': json['profileImagePath'],
- 'shouldChangePassword': json['shouldChangePassword'],
- 'userEmail': json['userEmail'],
- 'userId': json['userId'],
- };
-}
-
-export function LoginResponseDtoToJSON(value?: LoginResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'accessToken': value.accessToken,
- 'isAdmin': value.isAdmin,
- 'name': value.name,
- 'profileImagePath': value.profileImagePath,
- 'shouldChangePassword': value.shouldChangePassword,
- 'userEmail': value.userEmail,
- 'userId': value.userId,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/LogoutResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/LogoutResponseDto.ts
deleted file mode 100644
index 1d854ce928..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/LogoutResponseDto.ts
+++ /dev/null
@@ -1,75 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface LogoutResponseDto
- */
-export interface LogoutResponseDto {
- /**
- *
- * @type {string}
- * @memberof LogoutResponseDto
- */
- redirectUri: string;
- /**
- *
- * @type {boolean}
- * @memberof LogoutResponseDto
- */
- successful: boolean;
-}
-
-/**
- * Check if a given object implements the LogoutResponseDto interface.
- */
-export function instanceOfLogoutResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "redirectUri" in value;
- isInstance = isInstance && "successful" in value;
-
- return isInstance;
-}
-
-export function LogoutResponseDtoFromJSON(json: any): LogoutResponseDto {
- return LogoutResponseDtoFromJSONTyped(json, false);
-}
-
-export function LogoutResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LogoutResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'redirectUri': json['redirectUri'],
- 'successful': json['successful'],
- };
-}
-
-export function LogoutResponseDtoToJSON(value?: LogoutResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'redirectUri': value.redirectUri,
- 'successful': value.successful,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/MapMarkerResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/MapMarkerResponseDto.ts
deleted file mode 100644
index 031adc12be..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/MapMarkerResponseDto.ts
+++ /dev/null
@@ -1,84 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface MapMarkerResponseDto
- */
-export interface MapMarkerResponseDto {
- /**
- *
- * @type {string}
- * @memberof MapMarkerResponseDto
- */
- id: string;
- /**
- *
- * @type {number}
- * @memberof MapMarkerResponseDto
- */
- lat: number;
- /**
- *
- * @type {number}
- * @memberof MapMarkerResponseDto
- */
- lon: number;
-}
-
-/**
- * Check if a given object implements the MapMarkerResponseDto interface.
- */
-export function instanceOfMapMarkerResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "id" in value;
- isInstance = isInstance && "lat" in value;
- isInstance = isInstance && "lon" in value;
-
- return isInstance;
-}
-
-export function MapMarkerResponseDtoFromJSON(json: any): MapMarkerResponseDto {
- return MapMarkerResponseDtoFromJSONTyped(json, false);
-}
-
-export function MapMarkerResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): MapMarkerResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'id': json['id'],
- 'lat': json['lat'],
- 'lon': json['lon'],
- };
-}
-
-export function MapMarkerResponseDtoToJSON(value?: MapMarkerResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'id': value.id,
- 'lat': value.lat,
- 'lon': value.lon,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/MapTheme.ts b/open-api/typescript-sdk/fetch-client/models/MapTheme.ts
deleted file mode 100644
index 737b9b4060..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/MapTheme.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-/**
- *
- * @export
- */
-export const MapTheme = {
- Light: 'light',
- Dark: 'dark'
-} as const;
-export type MapTheme = typeof MapTheme[keyof typeof MapTheme];
-
-
-export function MapThemeFromJSON(json: any): MapTheme {
- return MapThemeFromJSONTyped(json, false);
-}
-
-export function MapThemeFromJSONTyped(json: any, ignoreDiscriminator: boolean): MapTheme {
- return json as MapTheme;
-}
-
-export function MapThemeToJSON(value?: MapTheme | null): any {
- return value as any;
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/MemoryLaneResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/MemoryLaneResponseDto.ts
deleted file mode 100644
index 2898ace78c..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/MemoryLaneResponseDto.ts
+++ /dev/null
@@ -1,82 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-import type { AssetResponseDto } from './AssetResponseDto';
-import {
- AssetResponseDtoFromJSON,
- AssetResponseDtoFromJSONTyped,
- AssetResponseDtoToJSON,
-} from './AssetResponseDto';
-
-/**
- *
- * @export
- * @interface MemoryLaneResponseDto
- */
-export interface MemoryLaneResponseDto {
- /**
- *
- * @type {Array<AssetResponseDto>}
- * @memberof MemoryLaneResponseDto
- */
- assets: Array<AssetResponseDto>;
- /**
- *
- * @type {string}
- * @memberof MemoryLaneResponseDto
- */
- title: string;
-}
-
-/**
- * Check if a given object implements the MemoryLaneResponseDto interface.
- */
-export function instanceOfMemoryLaneResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "assets" in value;
- isInstance = isInstance && "title" in value;
-
- return isInstance;
-}
-
-export function MemoryLaneResponseDtoFromJSON(json: any): MemoryLaneResponseDto {
- return MemoryLaneResponseDtoFromJSONTyped(json, false);
-}
-
-export function MemoryLaneResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): MemoryLaneResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'assets': ((json['assets'] as Array<any>).map(AssetResponseDtoFromJSON)),
- 'title': json['title'],
- };
-}
-
-export function MemoryLaneResponseDtoToJSON(value?: MemoryLaneResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'assets': ((value.assets as Array<any>).map(AssetResponseDtoToJSON)),
- 'title': value.title,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/MergePersonDto.ts b/open-api/typescript-sdk/fetch-client/models/MergePersonDto.ts
deleted file mode 100644
index dbbbcc8729..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/MergePersonDto.ts
+++ /dev/null
@@ -1,66 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface MergePersonDto
- */
-export interface MergePersonDto {
- /**
- *
- * @type {Array<string>}
- * @memberof MergePersonDto
- */
- ids: Array<string>;
-}
-
-/**
- * Check if a given object implements the MergePersonDto interface.
- */
-export function instanceOfMergePersonDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "ids" in value;
-
- return isInstance;
-}
-
-export function MergePersonDtoFromJSON(json: any): MergePersonDto {
- return MergePersonDtoFromJSONTyped(json, false);
-}
-
-export function MergePersonDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): MergePersonDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'ids': json['ids'],
- };
-}
-
-export function MergePersonDtoToJSON(value?: MergePersonDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'ids': value.ids,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/ModelType.ts b/open-api/typescript-sdk/fetch-client/models/ModelType.ts
deleted file mode 100644
index 6fbc6e55f3..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/ModelType.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-/**
- *
- * @export
- */
-export const ModelType = {
- FacialRecognition: 'facial-recognition',
- Clip: 'clip'
-} as const;
-export type ModelType = typeof ModelType[keyof typeof ModelType];
-
-
-export function ModelTypeFromJSON(json: any): ModelType {
- return ModelTypeFromJSONTyped(json, false);
-}
-
-export function ModelTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelType {
- return json as ModelType;
-}
-
-export function ModelTypeToJSON(value?: ModelType | null): any {
- return value as any;
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/OAuthAuthorizeResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/OAuthAuthorizeResponseDto.ts
deleted file mode 100644
index 2e62143f9c..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/OAuthAuthorizeResponseDto.ts
+++ /dev/null
@@ -1,66 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface OAuthAuthorizeResponseDto
- */
-export interface OAuthAuthorizeResponseDto {
- /**
- *
- * @type {string}
- * @memberof OAuthAuthorizeResponseDto
- */
- url: string;
-}
-
-/**
- * Check if a given object implements the OAuthAuthorizeResponseDto interface.
- */
-export function instanceOfOAuthAuthorizeResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "url" in value;
-
- return isInstance;
-}
-
-export function OAuthAuthorizeResponseDtoFromJSON(json: any): OAuthAuthorizeResponseDto {
- return OAuthAuthorizeResponseDtoFromJSONTyped(json, false);
-}
-
-export function OAuthAuthorizeResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): OAuthAuthorizeResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'url': json['url'],
- };
-}
-
-export function OAuthAuthorizeResponseDtoToJSON(value?: OAuthAuthorizeResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'url': value.url,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/OAuthCallbackDto.ts b/open-api/typescript-sdk/fetch-client/models/OAuthCallbackDto.ts
deleted file mode 100644
index 5e119d9f87..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/OAuthCallbackDto.ts
+++ /dev/null
@@ -1,66 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface OAuthCallbackDto
- */
-export interface OAuthCallbackDto {
- /**
- *
- * @type {string}
- * @memberof OAuthCallbackDto
- */
- url: string;
-}
-
-/**
- * Check if a given object implements the OAuthCallbackDto interface.
- */
-export function instanceOfOAuthCallbackDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "url" in value;
-
- return isInstance;
-}
-
-export function OAuthCallbackDtoFromJSON(json: any): OAuthCallbackDto {
- return OAuthCallbackDtoFromJSONTyped(json, false);
-}
-
-export function OAuthCallbackDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): OAuthCallbackDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'url': json['url'],
- };
-}
-
-export function OAuthCallbackDtoToJSON(value?: OAuthCallbackDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'url': value.url,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/OAuthConfigDto.ts b/open-api/typescript-sdk/fetch-client/models/OAuthConfigDto.ts
deleted file mode 100644
index c81cb6cb0d..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/OAuthConfigDto.ts
+++ /dev/null
@@ -1,66 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface OAuthConfigDto
- */
-export interface OAuthConfigDto {
- /**
- *
- * @type {string}
- * @memberof OAuthConfigDto
- */
- redirectUri: string;
-}
-
-/**
- * Check if a given object implements the OAuthConfigDto interface.
- */
-export function instanceOfOAuthConfigDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "redirectUri" in value;
-
- return isInstance;
-}
-
-export function OAuthConfigDtoFromJSON(json: any): OAuthConfigDto {
- return OAuthConfigDtoFromJSONTyped(json, false);
-}
-
-export function OAuthConfigDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): OAuthConfigDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'redirectUri': json['redirectUri'],
- };
-}
-
-export function OAuthConfigDtoToJSON(value?: OAuthConfigDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'redirectUri': value.redirectUri,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/OAuthConfigResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/OAuthConfigResponseDto.ts
deleted file mode 100644
index bb7714b6f8..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/OAuthConfigResponseDto.ts
+++ /dev/null
@@ -1,99 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface OAuthConfigResponseDto
- */
-export interface OAuthConfigResponseDto {
- /**
- *
- * @type {boolean}
- * @memberof OAuthConfigResponseDto
- */
- autoLaunch?: boolean;
- /**
- *
- * @type {string}
- * @memberof OAuthConfigResponseDto
- */
- buttonText?: string;
- /**
- *
- * @type {boolean}
- * @memberof OAuthConfigResponseDto
- */
- enabled: boolean;
- /**
- *
- * @type {boolean}
- * @memberof OAuthConfigResponseDto
- */
- passwordLoginEnabled: boolean;
- /**
- *
- * @type {string}
- * @memberof OAuthConfigResponseDto
- */
- url?: string;
-}
-
-/**
- * Check if a given object implements the OAuthConfigResponseDto interface.
- */
-export function instanceOfOAuthConfigResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "enabled" in value;
- isInstance = isInstance && "passwordLoginEnabled" in value;
-
- return isInstance;
-}
-
-export function OAuthConfigResponseDtoFromJSON(json: any): OAuthConfigResponseDto {
- return OAuthConfigResponseDtoFromJSONTyped(json, false);
-}
-
-export function OAuthConfigResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): OAuthConfigResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'autoLaunch': !exists(json, 'autoLaunch') ? undefined : json['autoLaunch'],
- 'buttonText': !exists(json, 'buttonText') ? undefined : json['buttonText'],
- 'enabled': json['enabled'],
- 'passwordLoginEnabled': json['passwordLoginEnabled'],
- 'url': !exists(json, 'url') ? undefined : json['url'],
- };
-}
-
-export function OAuthConfigResponseDtoToJSON(value?: OAuthConfigResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'autoLaunch': value.autoLaunch,
- 'buttonText': value.buttonText,
- 'enabled': value.enabled,
- 'passwordLoginEnabled': value.passwordLoginEnabled,
- 'url': value.url,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/PartnerResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/PartnerResponseDto.ts
deleted file mode 100644
index 646deb4d04..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/PartnerResponseDto.ts
+++ /dev/null
@@ -1,215 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-import type { UserAvatarColor } from './UserAvatarColor';
-import {
- UserAvatarColorFromJSON,
- UserAvatarColorFromJSONTyped,
- UserAvatarColorToJSON,
-} from './UserAvatarColor';
-
-/**
- *
- * @export
- * @interface PartnerResponseDto
- */
-export interface PartnerResponseDto {
- /**
- *
- * @type {UserAvatarColor}
- * @memberof PartnerResponseDto
- */
- avatarColor: UserAvatarColor;
- /**
- *
- * @type {Date}
- * @memberof PartnerResponseDto
- */
- createdAt: Date;
- /**
- *
- * @type {Date}
- * @memberof PartnerResponseDto
- */
- deletedAt: Date | null;
- /**
- *
- * @type {string}
- * @memberof PartnerResponseDto
- */
- email: string;
- /**
- *
- * @type {string}
- * @memberof PartnerResponseDto
- */
- externalPath: string | null;
- /**
- *
- * @type {string}
- * @memberof PartnerResponseDto
- */
- id: string;
- /**
- *
- * @type {boolean}
- * @memberof PartnerResponseDto
- */
- inTimeline?: boolean;
- /**
- *
- * @type {boolean}
- * @memberof PartnerResponseDto
- */
- isAdmin: boolean;
- /**
- *
- * @type {boolean}
- * @memberof PartnerResponseDto
- */
- memoriesEnabled?: boolean;
- /**
- *
- * @type {string}
- * @memberof PartnerResponseDto
- */
- name: string;
- /**
- *
- * @type {string}
- * @memberof PartnerResponseDto
- */
- oauthId: string;
- /**
- *
- * @type {string}
- * @memberof PartnerResponseDto
- */
- profileImagePath: string;
- /**
- *
- * @type {number}
- * @memberof PartnerResponseDto
- */
- quotaSizeInBytes: number | null;
- /**
- *
- * @type {number}
- * @memberof PartnerResponseDto
- */
- quotaUsageInBytes: number | null;
- /**
- *
- * @type {boolean}
- * @memberof PartnerResponseDto
- */
- shouldChangePassword: boolean;
- /**
- *
- * @type {string}
- * @memberof PartnerResponseDto
- */
- storageLabel: string | null;
- /**
- *
- * @type {Date}
- * @memberof PartnerResponseDto
- */
- updatedAt: Date;
-}
-
-/**
- * Check if a given object implements the PartnerResponseDto interface.
- */
-export function instanceOfPartnerResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "avatarColor" in value;
- isInstance = isInstance && "createdAt" in value;
- isInstance = isInstance && "deletedAt" in value;
- isInstance = isInstance && "email" in value;
- isInstance = isInstance && "externalPath" in value;
- isInstance = isInstance && "id" in value;
- isInstance = isInstance && "isAdmin" in value;
- isInstance = isInstance && "name" in value;
- isInstance = isInstance && "oauthId" in value;
- isInstance = isInstance && "profileImagePath" in value;
- isInstance = isInstance && "quotaSizeInBytes" in value;
- isInstance = isInstance && "quotaUsageInBytes" in value;
- isInstance = isInstance && "shouldChangePassword" in value;
- isInstance = isInstance && "storageLabel" in value;
- isInstance = isInstance && "updatedAt" in value;
-
- return isInstance;
-}
-
-export function PartnerResponseDtoFromJSON(json: any): PartnerResponseDto {
- return PartnerResponseDtoFromJSONTyped(json, false);
-}
-
-export function PartnerResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PartnerResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'avatarColor': UserAvatarColorFromJSON(json['avatarColor']),
- 'createdAt': (new Date(json['createdAt'])),
- 'deletedAt': (json['deletedAt'] === null ? null : new Date(json['deletedAt'])),
- 'email': json['email'],
- 'externalPath': json['externalPath'],
- 'id': json['id'],
- 'inTimeline': !exists(json, 'inTimeline') ? undefined : json['inTimeline'],
- 'isAdmin': json['isAdmin'],
- 'memoriesEnabled': !exists(json, 'memoriesEnabled') ? undefined : json['memoriesEnabled'],
- 'name': json['name'],
- 'oauthId': json['oauthId'],
- 'profileImagePath': json['profileImagePath'],
- 'quotaSizeInBytes': json['quotaSizeInBytes'],
- 'quotaUsageInBytes': json['quotaUsageInBytes'],
- 'shouldChangePassword': json['shouldChangePassword'],
- 'storageLabel': json['storageLabel'],
- 'updatedAt': (new Date(json['updatedAt'])),
- };
-}
-
-export function PartnerResponseDtoToJSON(value?: PartnerResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'avatarColor': UserAvatarColorToJSON(value.avatarColor),
- 'createdAt': (value.createdAt.toISOString()),
- 'deletedAt': (value.deletedAt === null ? null : value.deletedAt.toISOString()),
- 'email': value.email,
- 'externalPath': value.externalPath,
- 'id': value.id,
- 'inTimeline': value.inTimeline,
- 'isAdmin': value.isAdmin,
- 'memoriesEnabled': value.memoriesEnabled,
- 'name': value.name,
- 'oauthId': value.oauthId,
- 'profileImagePath': value.profileImagePath,
- 'quotaSizeInBytes': value.quotaSizeInBytes,
- 'quotaUsageInBytes': value.quotaUsageInBytes,
- 'shouldChangePassword': value.shouldChangePassword,
- 'storageLabel': value.storageLabel,
- 'updatedAt': (value.updatedAt.toISOString()),
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/PathEntityType.ts b/open-api/typescript-sdk/fetch-client/models/PathEntityType.ts
deleted file mode 100644
index 5567f3f514..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/PathEntityType.ts
+++ /dev/null
@@ -1,39 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-/**
- *
- * @export
- */
-export const PathEntityType = {
- Asset: 'asset',
- Person: 'person',
- User: 'user'
-} as const;
-export type PathEntityType = typeof PathEntityType[keyof typeof PathEntityType];
-
-
-export function PathEntityTypeFromJSON(json: any): PathEntityType {
- return PathEntityTypeFromJSONTyped(json, false);
-}
-
-export function PathEntityTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): PathEntityType {
- return json as PathEntityType;
-}
-
-export function PathEntityTypeToJSON(value?: PathEntityType | null): any {
- return value as any;
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/PathType.ts b/open-api/typescript-sdk/fetch-client/models/PathType.ts
deleted file mode 100644
index 8a8a41811b..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/PathType.ts
+++ /dev/null
@@ -1,43 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-/**
- *
- * @export
- */
-export const PathType = {
- Original: 'original',
- JpegThumbnail: 'jpeg_thumbnail',
- WebpThumbnail: 'webp_thumbnail',
- EncodedVideo: 'encoded_video',
- Sidecar: 'sidecar',
- Face: 'face',
- Profile: 'profile'
-} as const;
-export type PathType = typeof PathType[keyof typeof PathType];
-
-
-export function PathTypeFromJSON(json: any): PathType {
- return PathTypeFromJSONTyped(json, false);
-}
-
-export function PathTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): PathType {
- return json as PathType;
-}
-
-export function PathTypeToJSON(value?: PathType | null): any {
- return value as any;
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/PeopleResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/PeopleResponseDto.ts
deleted file mode 100644
index 6892308a93..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/PeopleResponseDto.ts
+++ /dev/null
@@ -1,82 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-import type { PersonResponseDto } from './PersonResponseDto';
-import {
- PersonResponseDtoFromJSON,
- PersonResponseDtoFromJSONTyped,
- PersonResponseDtoToJSON,
-} from './PersonResponseDto';
-
-/**
- *
- * @export
- * @interface PeopleResponseDto
- */
-export interface PeopleResponseDto {
- /**
- *
- * @type {Array<PersonResponseDto>}
- * @memberof PeopleResponseDto
- */
- people: Array<PersonResponseDto>;
- /**
- *
- * @type {number}
- * @memberof PeopleResponseDto
- */
- total: number;
-}
-
-/**
- * Check if a given object implements the PeopleResponseDto interface.
- */
-export function instanceOfPeopleResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "people" in value;
- isInstance = isInstance && "total" in value;
-
- return isInstance;
-}
-
-export function PeopleResponseDtoFromJSON(json: any): PeopleResponseDto {
- return PeopleResponseDtoFromJSONTyped(json, false);
-}
-
-export function PeopleResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PeopleResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'people': ((json['people'] as Array<any>).map(PersonResponseDtoFromJSON)),
- 'total': json['total'],
- };
-}
-
-export function PeopleResponseDtoToJSON(value?: PeopleResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'people': ((value.people as Array<any>).map(PersonResponseDtoToJSON)),
- 'total': value.total,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/PeopleUpdateDto.ts b/open-api/typescript-sdk/fetch-client/models/PeopleUpdateDto.ts
deleted file mode 100644
index 0a3605b59a..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/PeopleUpdateDto.ts
+++ /dev/null
@@ -1,73 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-import type { PeopleUpdateItem } from './PeopleUpdateItem';
-import {
- PeopleUpdateItemFromJSON,
- PeopleUpdateItemFromJSONTyped,
- PeopleUpdateItemToJSON,
-} from './PeopleUpdateItem';
-
-/**
- *
- * @export
- * @interface PeopleUpdateDto
- */
-export interface PeopleUpdateDto {
- /**
- *
- * @type {Array<PeopleUpdateItem>}
- * @memberof PeopleUpdateDto
- */
- people: Array<PeopleUpdateItem>;
-}
-
-/**
- * Check if a given object implements the PeopleUpdateDto interface.
- */
-export function instanceOfPeopleUpdateDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "people" in value;
-
- return isInstance;
-}
-
-export function PeopleUpdateDtoFromJSON(json: any): PeopleUpdateDto {
- return PeopleUpdateDtoFromJSONTyped(json, false);
-}
-
-export function PeopleUpdateDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PeopleUpdateDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'people': ((json['people'] as Array<any>).map(PeopleUpdateItemFromJSON)),
- };
-}
-
-export function PeopleUpdateDtoToJSON(value?: PeopleUpdateDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'people': ((value.people as Array<any>).map(PeopleUpdateItemToJSON)),
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/PeopleUpdateItem.ts b/open-api/typescript-sdk/fetch-client/models/PeopleUpdateItem.ts
deleted file mode 100644
index 5376f9e4bb..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/PeopleUpdateItem.ts
+++ /dev/null
@@ -1,99 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface PeopleUpdateItem
- */
-export interface PeopleUpdateItem {
- /**
- * Person date of birth.
- * Note: the mobile app cannot currently set the birth date to null.
- * @type {Date}
- * @memberof PeopleUpdateItem
- */
- birthDate?: Date | null;
- /**
- * Asset is used to get the feature face thumbnail.
- * @type {string}
- * @memberof PeopleUpdateItem
- */
- featureFaceAssetId?: string;
- /**
- * Person id.
- * @type {string}
- * @memberof PeopleUpdateItem
- */
- id: string;
- /**
- * Person visibility
- * @type {boolean}
- * @memberof PeopleUpdateItem
- */
- isHidden?: boolean;
- /**
- * Person name.
- * @type {string}
- * @memberof PeopleUpdateItem
- */
- name?: string;
-}
-
-/**
- * Check if a given object implements the PeopleUpdateItem interface.
- */
-export function instanceOfPeopleUpdateItem(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "id" in value;
-
- return isInstance;
-}
-
-export function PeopleUpdateItemFromJSON(json: any): PeopleUpdateItem {
- return PeopleUpdateItemFromJSONTyped(json, false);
-}
-
-export function PeopleUpdateItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): PeopleUpdateItem {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'birthDate': !exists(json, 'birthDate') ? undefined : (json['birthDate'] === null ? null : new Date(json['birthDate'])),
- 'featureFaceAssetId': !exists(json, 'featureFaceAssetId') ? undefined : json['featureFaceAssetId'],
- 'id': json['id'],
- 'isHidden': !exists(json, 'isHidden') ? undefined : json['isHidden'],
- 'name': !exists(json, 'name') ? undefined : json['name'],
- };
-}
-
-export function PeopleUpdateItemToJSON(value?: PeopleUpdateItem | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'birthDate': value.birthDate === undefined ? undefined : (value.birthDate === null ? null : value.birthDate.toISOString().substring(0,10)),
- 'featureFaceAssetId': value.featureFaceAssetId,
- 'id': value.id,
- 'isHidden': value.isHidden,
- 'name': value.name,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/PersonResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/PersonResponseDto.ts
deleted file mode 100644
index ae54ad5676..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/PersonResponseDto.ts
+++ /dev/null
@@ -1,102 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface PersonResponseDto
- */
-export interface PersonResponseDto {
- /**
- *
- * @type {Date}
- * @memberof PersonResponseDto
- */
- birthDate: Date | null;
- /**
- *
- * @type {string}
- * @memberof PersonResponseDto
- */
- id: string;
- /**
- *
- * @type {boolean}
- * @memberof PersonResponseDto
- */
- isHidden: boolean;
- /**
- *
- * @type {string}
- * @memberof PersonResponseDto
- */
- name: string;
- /**
- *
- * @type {string}
- * @memberof PersonResponseDto
- */
- thumbnailPath: string;
-}
-
-/**
- * Check if a given object implements the PersonResponseDto interface.
- */
-export function instanceOfPersonResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "birthDate" in value;
- isInstance = isInstance && "id" in value;
- isInstance = isInstance && "isHidden" in value;
- isInstance = isInstance && "name" in value;
- isInstance = isInstance && "thumbnailPath" in value;
-
- return isInstance;
-}
-
-export function PersonResponseDtoFromJSON(json: any): PersonResponseDto {
- return PersonResponseDtoFromJSONTyped(json, false);
-}
-
-export function PersonResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PersonResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'birthDate': (json['birthDate'] === null ? null : new Date(json['birthDate'])),
- 'id': json['id'],
- 'isHidden': json['isHidden'],
- 'name': json['name'],
- 'thumbnailPath': json['thumbnailPath'],
- };
-}
-
-export function PersonResponseDtoToJSON(value?: PersonResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'birthDate': (value.birthDate === null ? null : value.birthDate.toISOString().substring(0,10)),
- 'id': value.id,
- 'isHidden': value.isHidden,
- 'name': value.name,
- 'thumbnailPath': value.thumbnailPath,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/PersonStatisticsResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/PersonStatisticsResponseDto.ts
deleted file mode 100644
index 8497a95424..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/PersonStatisticsResponseDto.ts
+++ /dev/null
@@ -1,66 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface PersonStatisticsResponseDto
- */
-export interface PersonStatisticsResponseDto {
- /**
- *
- * @type {number}
- * @memberof PersonStatisticsResponseDto
- */
- assets: number;
-}
-
-/**
- * Check if a given object implements the PersonStatisticsResponseDto interface.
- */
-export function instanceOfPersonStatisticsResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "assets" in value;
-
- return isInstance;
-}
-
-export function PersonStatisticsResponseDtoFromJSON(json: any): PersonStatisticsResponseDto {
- return PersonStatisticsResponseDtoFromJSONTyped(json, false);
-}
-
-export function PersonStatisticsResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PersonStatisticsResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'assets': json['assets'],
- };
-}
-
-export function PersonStatisticsResponseDtoToJSON(value?: PersonStatisticsResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'assets': value.assets,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/PersonUpdateDto.ts b/open-api/typescript-sdk/fetch-client/models/PersonUpdateDto.ts
deleted file mode 100644
index a26f0c1658..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/PersonUpdateDto.ts
+++ /dev/null
@@ -1,90 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface PersonUpdateDto
- */
-export interface PersonUpdateDto {
- /**
- * Person date of birth.
- * Note: the mobile app cannot currently set the birth date to null.
- * @type {Date}
- * @memberof PersonUpdateDto
- */
- birthDate?: Date | null;
- /**
- * Asset is used to get the feature face thumbnail.
- * @type {string}
- * @memberof PersonUpdateDto
- */
- featureFaceAssetId?: string;
- /**
- * Person visibility
- * @type {boolean}
- * @memberof PersonUpdateDto
- */
- isHidden?: boolean;
- /**
- * Person name.
- * @type {string}
- * @memberof PersonUpdateDto
- */
- name?: string;
-}
-
-/**
- * Check if a given object implements the PersonUpdateDto interface.
- */
-export function instanceOfPersonUpdateDto(value: object): boolean {
- let isInstance = true;
-
- return isInstance;
-}
-
-export function PersonUpdateDtoFromJSON(json: any): PersonUpdateDto {
- return PersonUpdateDtoFromJSONTyped(json, false);
-}
-
-export function PersonUpdateDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PersonUpdateDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'birthDate': !exists(json, 'birthDate') ? undefined : (json['birthDate'] === null ? null : new Date(json['birthDate'])),
- 'featureFaceAssetId': !exists(json, 'featureFaceAssetId') ? undefined : json['featureFaceAssetId'],
- 'isHidden': !exists(json, 'isHidden') ? undefined : json['isHidden'],
- 'name': !exists(json, 'name') ? undefined : json['name'],
- };
-}
-
-export function PersonUpdateDtoToJSON(value?: PersonUpdateDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'birthDate': value.birthDate === undefined ? undefined : (value.birthDate === null ? null : value.birthDate.toISOString().substring(0,10)),
- 'featureFaceAssetId': value.featureFaceAssetId,
- 'isHidden': value.isHidden,
- 'name': value.name,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/PersonWithFacesResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/PersonWithFacesResponseDto.ts
deleted file mode 100644
index cb614f405c..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/PersonWithFacesResponseDto.ts
+++ /dev/null
@@ -1,118 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-import type { AssetFaceWithoutPersonResponseDto } from './AssetFaceWithoutPersonResponseDto';
-import {
- AssetFaceWithoutPersonResponseDtoFromJSON,
- AssetFaceWithoutPersonResponseDtoFromJSONTyped,
- AssetFaceWithoutPersonResponseDtoToJSON,
-} from './AssetFaceWithoutPersonResponseDto';
-
-/**
- *
- * @export
- * @interface PersonWithFacesResponseDto
- */
-export interface PersonWithFacesResponseDto {
- /**
- *
- * @type {Date}
- * @memberof PersonWithFacesResponseDto
- */
- birthDate: Date | null;
- /**
- *
- * @type {Array<AssetFaceWithoutPersonResponseDto>}
- * @memberof PersonWithFacesResponseDto
- */
- faces: Array<AssetFaceWithoutPersonResponseDto>;
- /**
- *
- * @type {string}
- * @memberof PersonWithFacesResponseDto
- */
- id: string;
- /**
- *
- * @type {boolean}
- * @memberof PersonWithFacesResponseDto
- */
- isHidden: boolean;
- /**
- *
- * @type {string}
- * @memberof PersonWithFacesResponseDto
- */
- name: string;
- /**
- *
- * @type {string}
- * @memberof PersonWithFacesResponseDto
- */
- thumbnailPath: string;
-}
-
-/**
- * Check if a given object implements the PersonWithFacesResponseDto interface.
- */
-export function instanceOfPersonWithFacesResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "birthDate" in value;
- isInstance = isInstance && "faces" in value;
- isInstance = isInstance && "id" in value;
- isInstance = isInstance && "isHidden" in value;
- isInstance = isInstance && "name" in value;
- isInstance = isInstance && "thumbnailPath" in value;
-
- return isInstance;
-}
-
-export function PersonWithFacesResponseDtoFromJSON(json: any): PersonWithFacesResponseDto {
- return PersonWithFacesResponseDtoFromJSONTyped(json, false);
-}
-
-export function PersonWithFacesResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PersonWithFacesResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'birthDate': (json['birthDate'] === null ? null : new Date(json['birthDate'])),
- 'faces': ((json['faces'] as Array<any>).map(AssetFaceWithoutPersonResponseDtoFromJSON)),
- 'id': json['id'],
- 'isHidden': json['isHidden'],
- 'name': json['name'],
- 'thumbnailPath': json['thumbnailPath'],
- };
-}
-
-export function PersonWithFacesResponseDtoToJSON(value?: PersonWithFacesResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'birthDate': (value.birthDate === null ? null : value.birthDate.toISOString().substring(0,10)),
- 'faces': ((value.faces as Array<any>).map(AssetFaceWithoutPersonResponseDtoToJSON)),
- 'id': value.id,
- 'isHidden': value.isHidden,
- 'name': value.name,
- 'thumbnailPath': value.thumbnailPath,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/QueueStatusDto.ts b/open-api/typescript-sdk/fetch-client/models/QueueStatusDto.ts
deleted file mode 100644
index 4cfa0fc37f..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/QueueStatusDto.ts
+++ /dev/null
@@ -1,75 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface QueueStatusDto
- */
-export interface QueueStatusDto {
- /**
- *
- * @type {boolean}
- * @memberof QueueStatusDto
- */
- isActive: boolean;
- /**
- *
- * @type {boolean}
- * @memberof QueueStatusDto
- */
- isPaused: boolean;
-}
-
-/**
- * Check if a given object implements the QueueStatusDto interface.
- */
-export function instanceOfQueueStatusDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "isActive" in value;
- isInstance = isInstance && "isPaused" in value;
-
- return isInstance;
-}
-
-export function QueueStatusDtoFromJSON(json: any): QueueStatusDto {
- return QueueStatusDtoFromJSONTyped(json, false);
-}
-
-export function QueueStatusDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): QueueStatusDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'isActive': json['isActive'],
- 'isPaused': json['isPaused'],
- };
-}
-
-export function QueueStatusDtoToJSON(value?: QueueStatusDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'isActive': value.isActive,
- 'isPaused': value.isPaused,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/ReactionLevel.ts b/open-api/typescript-sdk/fetch-client/models/ReactionLevel.ts
deleted file mode 100644
index df09b8d802..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/ReactionLevel.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-/**
- *
- * @export
- */
-export const ReactionLevel = {
- Album: 'album',
- Asset: 'asset'
-} as const;
-export type ReactionLevel = typeof ReactionLevel[keyof typeof ReactionLevel];
-
-
-export function ReactionLevelFromJSON(json: any): ReactionLevel {
- return ReactionLevelFromJSONTyped(json, false);
-}
-
-export function ReactionLevelFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReactionLevel {
- return json as ReactionLevel;
-}
-
-export function ReactionLevelToJSON(value?: ReactionLevel | null): any {
- return value as any;
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/ReactionType.ts b/open-api/typescript-sdk/fetch-client/models/ReactionType.ts
deleted file mode 100644
index 5f64ed3180..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/ReactionType.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-/**
- *
- * @export
- */
-export const ReactionType = {
- Comment: 'comment',
- Like: 'like'
-} as const;
-export type ReactionType = typeof ReactionType[keyof typeof ReactionType];
-
-
-export function ReactionTypeFromJSON(json: any): ReactionType {
- return ReactionTypeFromJSONTyped(json, false);
-}
-
-export function ReactionTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReactionType {
- return json as ReactionType;
-}
-
-export function ReactionTypeToJSON(value?: ReactionType | null): any {
- return value as any;
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/RecognitionConfig.ts b/open-api/typescript-sdk/fetch-client/models/RecognitionConfig.ts
deleted file mode 100644
index 007be641a6..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/RecognitionConfig.ts
+++ /dev/null
@@ -1,117 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-import type { ModelType } from './ModelType';
-import {
- ModelTypeFromJSON,
- ModelTypeFromJSONTyped,
- ModelTypeToJSON,
-} from './ModelType';
-
-/**
- *
- * @export
- * @interface RecognitionConfig
- */
-export interface RecognitionConfig {
- /**
- *
- * @type {boolean}
- * @memberof RecognitionConfig
- */
- enabled: boolean;
- /**
- *
- * @type {number}
- * @memberof RecognitionConfig
- */
- maxDistance: number;
- /**
- *
- * @type {number}
- * @memberof RecognitionConfig
- */
- minFaces: number;
- /**
- *
- * @type {number}
- * @memberof RecognitionConfig
- */
- minScore: number;
- /**
- *
- * @type {string}
- * @memberof RecognitionConfig
- */
- modelName: string;
- /**
- *
- * @type {ModelType}
- * @memberof RecognitionConfig
- */
- modelType?: ModelType;
-}
-
-/**
- * Check if a given object implements the RecognitionConfig interface.
- */
-export function instanceOfRecognitionConfig(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "enabled" in value;
- isInstance = isInstance && "maxDistance" in value;
- isInstance = isInstance && "minFaces" in value;
- isInstance = isInstance && "minScore" in value;
- isInstance = isInstance && "modelName" in value;
-
- return isInstance;
-}
-
-export function RecognitionConfigFromJSON(json: any): RecognitionConfig {
- return RecognitionConfigFromJSONTyped(json, false);
-}
-
-export function RecognitionConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecognitionConfig {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'enabled': json['enabled'],
- 'maxDistance': json['maxDistance'],
- 'minFaces': json['minFaces'],
- 'minScore': json['minScore'],
- 'modelName': json['modelName'],
- 'modelType': !exists(json, 'modelType') ? undefined : ModelTypeFromJSON(json['modelType']),
- };
-}
-
-export function RecognitionConfigToJSON(value?: RecognitionConfig | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'enabled': value.enabled,
- 'maxDistance': value.maxDistance,
- 'minFaces': value.minFaces,
- 'minScore': value.minScore,
- 'modelName': value.modelName,
- 'modelType': ModelTypeToJSON(value.modelType),
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/ScanLibraryDto.ts b/open-api/typescript-sdk/fetch-client/models/ScanLibraryDto.ts
deleted file mode 100644
index 683613b806..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/ScanLibraryDto.ts
+++ /dev/null
@@ -1,73 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface ScanLibraryDto
- */
-export interface ScanLibraryDto {
- /**
- *
- * @type {boolean}
- * @memberof ScanLibraryDto
- */
- refreshAllFiles?: boolean;
- /**
- *
- * @type {boolean}
- * @memberof ScanLibraryDto
- */
- refreshModifiedFiles?: boolean;
-}
-
-/**
- * Check if a given object implements the ScanLibraryDto interface.
- */
-export function instanceOfScanLibraryDto(value: object): boolean {
- let isInstance = true;
-
- return isInstance;
-}
-
-export function ScanLibraryDtoFromJSON(json: any): ScanLibraryDto {
- return ScanLibraryDtoFromJSONTyped(json, false);
-}
-
-export function ScanLibraryDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScanLibraryDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'refreshAllFiles': !exists(json, 'refreshAllFiles') ? undefined : json['refreshAllFiles'],
- 'refreshModifiedFiles': !exists(json, 'refreshModifiedFiles') ? undefined : json['refreshModifiedFiles'],
- };
-}
-
-export function ScanLibraryDtoToJSON(value?: ScanLibraryDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'refreshAllFiles': value.refreshAllFiles,
- 'refreshModifiedFiles': value.refreshModifiedFiles,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/SearchAlbumResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/SearchAlbumResponseDto.ts
deleted file mode 100644
index fd20430e2e..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/SearchAlbumResponseDto.ts
+++ /dev/null
@@ -1,106 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-import type { AlbumResponseDto } from './AlbumResponseDto';
-import {
- AlbumResponseDtoFromJSON,
- AlbumResponseDtoFromJSONTyped,
- AlbumResponseDtoToJSON,
-} from './AlbumResponseDto';
-import type { SearchFacetResponseDto } from './SearchFacetResponseDto';
-import {
- SearchFacetResponseDtoFromJSON,
- SearchFacetResponseDtoFromJSONTyped,
- SearchFacetResponseDtoToJSON,
-} from './SearchFacetResponseDto';
-
-/**
- *
- * @export
- * @interface SearchAlbumResponseDto
- */
-export interface SearchAlbumResponseDto {
- /**
- *
- * @type {number}
- * @memberof SearchAlbumResponseDto
- */
- count: number;
- /**
- *
- * @type {Array<SearchFacetResponseDto>}
- * @memberof SearchAlbumResponseDto
- */
- facets: Array<SearchFacetResponseDto>;
- /**
- *
- * @type {Array<AlbumResponseDto>}
- * @memberof SearchAlbumResponseDto
- */
- items: Array<AlbumResponseDto>;
- /**
- *
- * @type {number}
- * @memberof SearchAlbumResponseDto
- */
- total: number;
-}
-
-/**
- * Check if a given object implements the SearchAlbumResponseDto interface.
- */
-export function instanceOfSearchAlbumResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "count" in value;
- isInstance = isInstance && "facets" in value;
- isInstance = isInstance && "items" in value;
- isInstance = isInstance && "total" in value;
-
- return isInstance;
-}
-
-export function SearchAlbumResponseDtoFromJSON(json: any): SearchAlbumResponseDto {
- return SearchAlbumResponseDtoFromJSONTyped(json, false);
-}
-
-export function SearchAlbumResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchAlbumResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'count': json['count'],
- 'facets': ((json['facets'] as Array<any>).map(SearchFacetResponseDtoFromJSON)),
- 'items': ((json['items'] as Array<any>).map(AlbumResponseDtoFromJSON)),
- 'total': json['total'],
- };
-}
-
-export function SearchAlbumResponseDtoToJSON(value?: SearchAlbumResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'count': value.count,
- 'facets': ((value.facets as Array<any>).map(SearchFacetResponseDtoToJSON)),
- 'items': ((value.items as Array<any>).map(AlbumResponseDtoToJSON)),
- 'total': value.total,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/SearchAssetResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/SearchAssetResponseDto.ts
deleted file mode 100644
index e55d720273..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/SearchAssetResponseDto.ts
+++ /dev/null
@@ -1,106 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-import type { AssetResponseDto } from './AssetResponseDto';
-import {
- AssetResponseDtoFromJSON,
- AssetResponseDtoFromJSONTyped,
- AssetResponseDtoToJSON,
-} from './AssetResponseDto';
-import type { SearchFacetResponseDto } from './SearchFacetResponseDto';
-import {
- SearchFacetResponseDtoFromJSON,
- SearchFacetResponseDtoFromJSONTyped,
- SearchFacetResponseDtoToJSON,
-} from './SearchFacetResponseDto';
-
-/**
- *
- * @export
- * @interface SearchAssetResponseDto
- */
-export interface SearchAssetResponseDto {
- /**
- *
- * @type {number}
- * @memberof SearchAssetResponseDto
- */
- count: number;
- /**
- *
- * @type {Array<SearchFacetResponseDto>}
- * @memberof SearchAssetResponseDto
- */
- facets: Array<SearchFacetResponseDto>;
- /**
- *
- * @type {Array<AssetResponseDto>}
- * @memberof SearchAssetResponseDto
- */
- items: Array<AssetResponseDto>;
- /**
- *
- * @type {number}
- * @memberof SearchAssetResponseDto
- */
- total: number;
-}
-
-/**
- * Check if a given object implements the SearchAssetResponseDto interface.
- */
-export function instanceOfSearchAssetResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "count" in value;
- isInstance = isInstance && "facets" in value;
- isInstance = isInstance && "items" in value;
- isInstance = isInstance && "total" in value;
-
- return isInstance;
-}
-
-export function SearchAssetResponseDtoFromJSON(json: any): SearchAssetResponseDto {
- return SearchAssetResponseDtoFromJSONTyped(json, false);
-}
-
-export function SearchAssetResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchAssetResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'count': json['count'],
- 'facets': ((json['facets'] as Array<any>).map(SearchFacetResponseDtoFromJSON)),
- 'items': ((json['items'] as Array<any>).map(AssetResponseDtoFromJSON)),
- 'total': json['total'],
- };
-}
-
-export function SearchAssetResponseDtoToJSON(value?: SearchAssetResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'count': value.count,
- 'facets': ((value.facets as Array<any>).map(SearchFacetResponseDtoToJSON)),
- 'items': ((value.items as Array<any>).map(AssetResponseDtoToJSON)),
- 'total': value.total,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/SearchExploreItem.ts b/open-api/typescript-sdk/fetch-client/models/SearchExploreItem.ts
deleted file mode 100644
index 3da965014b..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/SearchExploreItem.ts
+++ /dev/null
@@ -1,82 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-import type { AssetResponseDto } from './AssetResponseDto';
-import {
- AssetResponseDtoFromJSON,
- AssetResponseDtoFromJSONTyped,
- AssetResponseDtoToJSON,
-} from './AssetResponseDto';
-
-/**
- *
- * @export
- * @interface SearchExploreItem
- */
-export interface SearchExploreItem {
- /**
- *
- * @type {AssetResponseDto}
- * @memberof SearchExploreItem
- */
- data: AssetResponseDto;
- /**
- *
- * @type {string}
- * @memberof SearchExploreItem
- */
- value: string;
-}
-
-/**
- * Check if a given object implements the SearchExploreItem interface.
- */
-export function instanceOfSearchExploreItem(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "data" in value;
- isInstance = isInstance && "value" in value;
-
- return isInstance;
-}
-
-export function SearchExploreItemFromJSON(json: any): SearchExploreItem {
- return SearchExploreItemFromJSONTyped(json, false);
-}
-
-export function SearchExploreItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchExploreItem {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'data': AssetResponseDtoFromJSON(json['data']),
- 'value': json['value'],
- };
-}
-
-export function SearchExploreItemToJSON(value?: SearchExploreItem | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'data': AssetResponseDtoToJSON(value.data),
- 'value': value.value,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/SearchExploreResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/SearchExploreResponseDto.ts
deleted file mode 100644
index d2671e02fe..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/SearchExploreResponseDto.ts
+++ /dev/null
@@ -1,82 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-import type { SearchExploreItem } from './SearchExploreItem';
-import {
- SearchExploreItemFromJSON,
- SearchExploreItemFromJSONTyped,
- SearchExploreItemToJSON,
-} from './SearchExploreItem';
-
-/**
- *
- * @export
- * @interface SearchExploreResponseDto
- */
-export interface SearchExploreResponseDto {
- /**
- *
- * @type {string}
- * @memberof SearchExploreResponseDto
- */
- fieldName: string;
- /**
- *
- * @type {Array<SearchExploreItem>}
- * @memberof SearchExploreResponseDto
- */
- items: Array<SearchExploreItem>;
-}
-
-/**
- * Check if a given object implements the SearchExploreResponseDto interface.
- */
-export function instanceOfSearchExploreResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "fieldName" in value;
- isInstance = isInstance && "items" in value;
-
- return isInstance;
-}
-
-export function SearchExploreResponseDtoFromJSON(json: any): SearchExploreResponseDto {
- return SearchExploreResponseDtoFromJSONTyped(json, false);
-}
-
-export function SearchExploreResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchExploreResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'fieldName': json['fieldName'],
- 'items': ((json['items'] as Array<any>).map(SearchExploreItemFromJSON)),
- };
-}
-
-export function SearchExploreResponseDtoToJSON(value?: SearchExploreResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'fieldName': value.fieldName,
- 'items': ((value.items as Array<any>).map(SearchExploreItemToJSON)),
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/SearchFacetCountResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/SearchFacetCountResponseDto.ts
deleted file mode 100644
index e18fa3d84d..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/SearchFacetCountResponseDto.ts
+++ /dev/null
@@ -1,75 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface SearchFacetCountResponseDto
- */
-export interface SearchFacetCountResponseDto {
- /**
- *
- * @type {number}
- * @memberof SearchFacetCountResponseDto
- */
- count: number;
- /**
- *
- * @type {string}
- * @memberof SearchFacetCountResponseDto
- */
- value: string;
-}
-
-/**
- * Check if a given object implements the SearchFacetCountResponseDto interface.
- */
-export function instanceOfSearchFacetCountResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "count" in value;
- isInstance = isInstance && "value" in value;
-
- return isInstance;
-}
-
-export function SearchFacetCountResponseDtoFromJSON(json: any): SearchFacetCountResponseDto {
- return SearchFacetCountResponseDtoFromJSONTyped(json, false);
-}
-
-export function SearchFacetCountResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchFacetCountResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'count': json['count'],
- 'value': json['value'],
- };
-}
-
-export function SearchFacetCountResponseDtoToJSON(value?: SearchFacetCountResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'count': value.count,
- 'value': value.value,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/SearchFacetResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/SearchFacetResponseDto.ts
deleted file mode 100644
index 14b41751ab..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/SearchFacetResponseDto.ts
+++ /dev/null
@@ -1,82 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-import type { SearchFacetCountResponseDto } from './SearchFacetCountResponseDto';
-import {
- SearchFacetCountResponseDtoFromJSON,
- SearchFacetCountResponseDtoFromJSONTyped,
- SearchFacetCountResponseDtoToJSON,
-} from './SearchFacetCountResponseDto';
-
-/**
- *
- * @export
- * @interface SearchFacetResponseDto
- */
-export interface SearchFacetResponseDto {
- /**
- *
- * @type {Array<SearchFacetCountResponseDto>}
- * @memberof SearchFacetResponseDto
- */
- counts: Array<SearchFacetCountResponseDto>;
- /**
- *
- * @type {string}
- * @memberof SearchFacetResponseDto
- */
- fieldName: string;
-}
-
-/**
- * Check if a given object implements the SearchFacetResponseDto interface.
- */
-export function instanceOfSearchFacetResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "counts" in value;
- isInstance = isInstance && "fieldName" in value;
-
- return isInstance;
-}
-
-export function SearchFacetResponseDtoFromJSON(json: any): SearchFacetResponseDto {
- return SearchFacetResponseDtoFromJSONTyped(json, false);
-}
-
-export function SearchFacetResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchFacetResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'counts': ((json['counts'] as Array<any>).map(SearchFacetCountResponseDtoFromJSON)),
- 'fieldName': json['fieldName'],
- };
-}
-
-export function SearchFacetResponseDtoToJSON(value?: SearchFacetResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'counts': ((value.counts as Array<any>).map(SearchFacetCountResponseDtoToJSON)),
- 'fieldName': value.fieldName,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/SearchResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/SearchResponseDto.ts
deleted file mode 100644
index 89fa47062f..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/SearchResponseDto.ts
+++ /dev/null
@@ -1,88 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-import type { SearchAlbumResponseDto } from './SearchAlbumResponseDto';
-import {
- SearchAlbumResponseDtoFromJSON,
- SearchAlbumResponseDtoFromJSONTyped,
- SearchAlbumResponseDtoToJSON,
-} from './SearchAlbumResponseDto';
-import type { SearchAssetResponseDto } from './SearchAssetResponseDto';
-import {
- SearchAssetResponseDtoFromJSON,
- SearchAssetResponseDtoFromJSONTyped,
- SearchAssetResponseDtoToJSON,
-} from './SearchAssetResponseDto';
-
-/**
- *
- * @export
- * @interface SearchResponseDto
- */
-export interface SearchResponseDto {
- /**
- *
- * @type {SearchAlbumResponseDto}
- * @memberof SearchResponseDto
- */
- albums: SearchAlbumResponseDto;
- /**
- *
- * @type {SearchAssetResponseDto}
- * @memberof SearchResponseDto
- */
- assets: SearchAssetResponseDto;
-}
-
-/**
- * Check if a given object implements the SearchResponseDto interface.
- */
-export function instanceOfSearchResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "albums" in value;
- isInstance = isInstance && "assets" in value;
-
- return isInstance;
-}
-
-export function SearchResponseDtoFromJSON(json: any): SearchResponseDto {
- return SearchResponseDtoFromJSONTyped(json, false);
-}
-
-export function SearchResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'albums': SearchAlbumResponseDtoFromJSON(json['albums']),
- 'assets': SearchAssetResponseDtoFromJSON(json['assets']),
- };
-}
-
-export function SearchResponseDtoToJSON(value?: SearchResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'albums': SearchAlbumResponseDtoToJSON(value.albums),
- 'assets': SearchAssetResponseDtoToJSON(value.assets),
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/ServerConfigDto.ts b/open-api/typescript-sdk/fetch-client/models/ServerConfigDto.ts
deleted file mode 100644
index 4db3fd3536..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/ServerConfigDto.ts
+++ /dev/null
@@ -1,111 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface ServerConfigDto
- */
-export interface ServerConfigDto {
- /**
- *
- * @type {string}
- * @memberof ServerConfigDto
- */
- externalDomain: string;
- /**
- *
- * @type {boolean}
- * @memberof ServerConfigDto
- */
- isInitialized: boolean;
- /**
- *
- * @type {boolean}
- * @memberof ServerConfigDto
- */
- isOnboarded: boolean;
- /**
- *
- * @type {string}
- * @memberof ServerConfigDto
- */
- loginPageMessage: string;
- /**
- *
- * @type {string}
- * @memberof ServerConfigDto
- */
- oauthButtonText: string;
- /**
- *
- * @type {number}
- * @memberof ServerConfigDto
- */
- trashDays: number;
-}
-
-/**
- * Check if a given object implements the ServerConfigDto interface.
- */
-export function instanceOfServerConfigDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "externalDomain" in value;
- isInstance = isInstance && "isInitialized" in value;
- isInstance = isInstance && "isOnboarded" in value;
- isInstance = isInstance && "loginPageMessage" in value;
- isInstance = isInstance && "oauthButtonText" in value;
- isInstance = isInstance && "trashDays" in value;
-
- return isInstance;
-}
-
-export function ServerConfigDtoFromJSON(json: any): ServerConfigDto {
- return ServerConfigDtoFromJSONTyped(json, false);
-}
-
-export function ServerConfigDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ServerConfigDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'externalDomain': json['externalDomain'],
- 'isInitialized': json['isInitialized'],
- 'isOnboarded': json['isOnboarded'],
- 'loginPageMessage': json['loginPageMessage'],
- 'oauthButtonText': json['oauthButtonText'],
- 'trashDays': json['trashDays'],
- };
-}
-
-export function ServerConfigDtoToJSON(value?: ServerConfigDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'externalDomain': value.externalDomain,
- 'isInitialized': value.isInitialized,
- 'isOnboarded': value.isOnboarded,
- 'loginPageMessage': value.loginPageMessage,
- 'oauthButtonText': value.oauthButtonText,
- 'trashDays': value.trashDays,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/ServerFeaturesDto.ts b/open-api/typescript-sdk/fetch-client/models/ServerFeaturesDto.ts
deleted file mode 100644
index 8c127dce76..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/ServerFeaturesDto.ts
+++ /dev/null
@@ -1,156 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface ServerFeaturesDto
- */
-export interface ServerFeaturesDto {
- /**
- *
- * @type {boolean}
- * @memberof ServerFeaturesDto
- */
- configFile: boolean;
- /**
- *
- * @type {boolean}
- * @memberof ServerFeaturesDto
- */
- facialRecognition: boolean;
- /**
- *
- * @type {boolean}
- * @memberof ServerFeaturesDto
- */
- map: boolean;
- /**
- *
- * @type {boolean}
- * @memberof ServerFeaturesDto
- */
- oauth: boolean;
- /**
- *
- * @type {boolean}
- * @memberof ServerFeaturesDto
- */
- oauthAutoLaunch: boolean;
- /**
- *
- * @type {boolean}
- * @memberof ServerFeaturesDto
- */
- passwordLogin: boolean;
- /**
- *
- * @type {boolean}
- * @memberof ServerFeaturesDto
- */
- reverseGeocoding: boolean;
- /**
- *
- * @type {boolean}
- * @memberof ServerFeaturesDto
- */
- search: boolean;
- /**
- *
- * @type {boolean}
- * @memberof ServerFeaturesDto
- */
- sidecar: boolean;
- /**
- *
- * @type {boolean}
- * @memberof ServerFeaturesDto
- */
- smartSearch: boolean;
- /**
- *
- * @type {boolean}
- * @memberof ServerFeaturesDto
- */
- trash: boolean;
-}
-
-/**
- * Check if a given object implements the ServerFeaturesDto interface.
- */
-export function instanceOfServerFeaturesDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "configFile" in value;
- isInstance = isInstance && "facialRecognition" in value;
- isInstance = isInstance && "map" in value;
- isInstance = isInstance && "oauth" in value;
- isInstance = isInstance && "oauthAutoLaunch" in value;
- isInstance = isInstance && "passwordLogin" in value;
- isInstance = isInstance && "reverseGeocoding" in value;
- isInstance = isInstance && "search" in value;
- isInstance = isInstance && "sidecar" in value;
- isInstance = isInstance && "smartSearch" in value;
- isInstance = isInstance && "trash" in value;
-
- return isInstance;
-}
-
-export function ServerFeaturesDtoFromJSON(json: any): ServerFeaturesDto {
- return ServerFeaturesDtoFromJSONTyped(json, false);
-}
-
-export function ServerFeaturesDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ServerFeaturesDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'configFile': json['configFile'],
- 'facialRecognition': json['facialRecognition'],
- 'map': json['map'],
- 'oauth': json['oauth'],
- 'oauthAutoLaunch': json['oauthAutoLaunch'],
- 'passwordLogin': json['passwordLogin'],
- 'reverseGeocoding': json['reverseGeocoding'],
- 'search': json['search'],
- 'sidecar': json['sidecar'],
- 'smartSearch': json['smartSearch'],
- 'trash': json['trash'],
- };
-}
-
-export function ServerFeaturesDtoToJSON(value?: ServerFeaturesDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'configFile': value.configFile,
- 'facialRecognition': value.facialRecognition,
- 'map': value.map,
- 'oauth': value.oauth,
- 'oauthAutoLaunch': value.oauthAutoLaunch,
- 'passwordLogin': value.passwordLogin,
- 'reverseGeocoding': value.reverseGeocoding,
- 'search': value.search,
- 'sidecar': value.sidecar,
- 'smartSearch': value.smartSearch,
- 'trash': value.trash,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/ServerInfoResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/ServerInfoResponseDto.ts
deleted file mode 100644
index fd1a94eaf4..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/ServerInfoResponseDto.ts
+++ /dev/null
@@ -1,120 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface ServerInfoResponseDto
- */
-export interface ServerInfoResponseDto {
- /**
- *
- * @type {string}
- * @memberof ServerInfoResponseDto
- */
- diskAvailable: string;
- /**
- *
- * @type {number}
- * @memberof ServerInfoResponseDto
- */
- diskAvailableRaw: number;
- /**
- *
- * @type {string}
- * @memberof ServerInfoResponseDto
- */
- diskSize: string;
- /**
- *
- * @type {number}
- * @memberof ServerInfoResponseDto
- */
- diskSizeRaw: number;
- /**
- *
- * @type {number}
- * @memberof ServerInfoResponseDto
- */
- diskUsagePercentage: number;
- /**
- *
- * @type {string}
- * @memberof ServerInfoResponseDto
- */
- diskUse: string;
- /**
- *
- * @type {number}
- * @memberof ServerInfoResponseDto
- */
- diskUseRaw: number;
-}
-
-/**
- * Check if a given object implements the ServerInfoResponseDto interface.
- */
-export function instanceOfServerInfoResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "diskAvailable" in value;
- isInstance = isInstance && "diskAvailableRaw" in value;
- isInstance = isInstance && "diskSize" in value;
- isInstance = isInstance && "diskSizeRaw" in value;
- isInstance = isInstance && "diskUsagePercentage" in value;
- isInstance = isInstance && "diskUse" in value;
- isInstance = isInstance && "diskUseRaw" in value;
-
- return isInstance;
-}
-
-export function ServerInfoResponseDtoFromJSON(json: any): ServerInfoResponseDto {
- return ServerInfoResponseDtoFromJSONTyped(json, false);
-}
-
-export function ServerInfoResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ServerInfoResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'diskAvailable': json['diskAvailable'],
- 'diskAvailableRaw': json['diskAvailableRaw'],
- 'diskSize': json['diskSize'],
- 'diskSizeRaw': json['diskSizeRaw'],
- 'diskUsagePercentage': json['diskUsagePercentage'],
- 'diskUse': json['diskUse'],
- 'diskUseRaw': json['diskUseRaw'],
- };
-}
-
-export function ServerInfoResponseDtoToJSON(value?: ServerInfoResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'diskAvailable': value.diskAvailable,
- 'diskAvailableRaw': value.diskAvailableRaw,
- 'diskSize': value.diskSize,
- 'diskSizeRaw': value.diskSizeRaw,
- 'diskUsagePercentage': value.diskUsagePercentage,
- 'diskUse': value.diskUse,
- 'diskUseRaw': value.diskUseRaw,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/ServerMediaTypesResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/ServerMediaTypesResponseDto.ts
deleted file mode 100644
index 9503801818..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/ServerMediaTypesResponseDto.ts
+++ /dev/null
@@ -1,84 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface ServerMediaTypesResponseDto
- */
-export interface ServerMediaTypesResponseDto {
- /**
- *
- * @type {Array<string>}
- * @memberof ServerMediaTypesResponseDto
- */
- image: Array<string>;
- /**
- *
- * @type {Array<string>}
- * @memberof ServerMediaTypesResponseDto
- */
- sidecar: Array<string>;
- /**
- *
- * @type {Array<string>}
- * @memberof ServerMediaTypesResponseDto
- */
- video: Array<string>;
-}
-
-/**
- * Check if a given object implements the ServerMediaTypesResponseDto interface.
- */
-export function instanceOfServerMediaTypesResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "image" in value;
- isInstance = isInstance && "sidecar" in value;
- isInstance = isInstance && "video" in value;
-
- return isInstance;
-}
-
-export function ServerMediaTypesResponseDtoFromJSON(json: any): ServerMediaTypesResponseDto {
- return ServerMediaTypesResponseDtoFromJSONTyped(json, false);
-}
-
-export function ServerMediaTypesResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ServerMediaTypesResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'image': json['image'],
- 'sidecar': json['sidecar'],
- 'video': json['video'],
- };
-}
-
-export function ServerMediaTypesResponseDtoToJSON(value?: ServerMediaTypesResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'image': value.image,
- 'sidecar': value.sidecar,
- 'video': value.video,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/ServerPingResponse.ts b/open-api/typescript-sdk/fetch-client/models/ServerPingResponse.ts
deleted file mode 100644
index 1ab7605639..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/ServerPingResponse.ts
+++ /dev/null
@@ -1,65 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface ServerPingResponse
- */
-export interface ServerPingResponse {
- /**
- *
- * @type {string}
- * @memberof ServerPingResponse
- */
- readonly res: string;
-}
-
-/**
- * Check if a given object implements the ServerPingResponse interface.
- */
-export function instanceOfServerPingResponse(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "res" in value;
-
- return isInstance;
-}
-
-export function ServerPingResponseFromJSON(json: any): ServerPingResponse {
- return ServerPingResponseFromJSONTyped(json, false);
-}
-
-export function ServerPingResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ServerPingResponse {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'res': json['res'],
- };
-}
-
-export function ServerPingResponseToJSON(value?: ServerPingResponse | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/ServerStatsResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/ServerStatsResponseDto.ts
deleted file mode 100644
index 10867eec5a..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/ServerStatsResponseDto.ts
+++ /dev/null
@@ -1,100 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-import type { UsageByUserDto } from './UsageByUserDto';
-import {
- UsageByUserDtoFromJSON,
- UsageByUserDtoFromJSONTyped,
- UsageByUserDtoToJSON,
-} from './UsageByUserDto';
-
-/**
- *
- * @export
- * @interface ServerStatsResponseDto
- */
-export interface ServerStatsResponseDto {
- /**
- *
- * @type {number}
- * @memberof ServerStatsResponseDto
- */
- photos: number;
- /**
- *
- * @type {number}
- * @memberof ServerStatsResponseDto
- */
- usage: number;
- /**
- *
- * @type {Array<UsageByUserDto>}
- * @memberof ServerStatsResponseDto
- */
- usageByUser: Array<UsageByUserDto>;
- /**
- *
- * @type {number}
- * @memberof ServerStatsResponseDto
- */
- videos: number;
-}
-
-/**
- * Check if a given object implements the ServerStatsResponseDto interface.
- */
-export function instanceOfServerStatsResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "photos" in value;
- isInstance = isInstance && "usage" in value;
- isInstance = isInstance && "usageByUser" in value;
- isInstance = isInstance && "videos" in value;
-
- return isInstance;
-}
-
-export function ServerStatsResponseDtoFromJSON(json: any): ServerStatsResponseDto {
- return ServerStatsResponseDtoFromJSONTyped(json, false);
-}
-
-export function ServerStatsResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ServerStatsResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'photos': json['photos'],
- 'usage': json['usage'],
- 'usageByUser': ((json['usageByUser'] as Array<any>).map(UsageByUserDtoFromJSON)),
- 'videos': json['videos'],
- };
-}
-
-export function ServerStatsResponseDtoToJSON(value?: ServerStatsResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'photos': value.photos,
- 'usage': value.usage,
- 'usageByUser': ((value.usageByUser as Array<any>).map(UsageByUserDtoToJSON)),
- 'videos': value.videos,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/ServerThemeDto.ts b/open-api/typescript-sdk/fetch-client/models/ServerThemeDto.ts
deleted file mode 100644
index 8163273ba5..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/ServerThemeDto.ts
+++ /dev/null
@@ -1,66 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface ServerThemeDto
- */
-export interface ServerThemeDto {
- /**
- *
- * @type {string}
- * @memberof ServerThemeDto
- */
- customCss: string;
-}
-
-/**
- * Check if a given object implements the ServerThemeDto interface.
- */
-export function instanceOfServerThemeDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "customCss" in value;
-
- return isInstance;
-}
-
-export function ServerThemeDtoFromJSON(json: any): ServerThemeDto {
- return ServerThemeDtoFromJSONTyped(json, false);
-}
-
-export function ServerThemeDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ServerThemeDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'customCss': json['customCss'],
- };
-}
-
-export function ServerThemeDtoToJSON(value?: ServerThemeDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'customCss': value.customCss,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/ServerVersionResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/ServerVersionResponseDto.ts
deleted file mode 100644
index 8d0198df79..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/ServerVersionResponseDto.ts
+++ /dev/null
@@ -1,84 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface ServerVersionResponseDto
- */
-export interface ServerVersionResponseDto {
- /**
- *
- * @type {number}
- * @memberof ServerVersionResponseDto
- */
- major: number;
- /**
- *
- * @type {number}
- * @memberof ServerVersionResponseDto
- */
- minor: number;
- /**
- *
- * @type {number}
- * @memberof ServerVersionResponseDto
- */
- patch: number;
-}
-
-/**
- * Check if a given object implements the ServerVersionResponseDto interface.
- */
-export function instanceOfServerVersionResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "major" in value;
- isInstance = isInstance && "minor" in value;
- isInstance = isInstance && "patch" in value;
-
- return isInstance;
-}
-
-export function ServerVersionResponseDtoFromJSON(json: any): ServerVersionResponseDto {
- return ServerVersionResponseDtoFromJSONTyped(json, false);
-}
-
-export function ServerVersionResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ServerVersionResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'major': json['major'],
- 'minor': json['minor'],
- 'patch': json['patch'],
- };
-}
-
-export function ServerVersionResponseDtoToJSON(value?: ServerVersionResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'major': value.major,
- 'minor': value.minor,
- 'patch': value.patch,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/SharedLinkCreateDto.ts b/open-api/typescript-sdk/fetch-client/models/SharedLinkCreateDto.ts
deleted file mode 100644
index af4d43f456..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/SharedLinkCreateDto.ts
+++ /dev/null
@@ -1,137 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-import type { SharedLinkType } from './SharedLinkType';
-import {
- SharedLinkTypeFromJSON,
- SharedLinkTypeFromJSONTyped,
- SharedLinkTypeToJSON,
-} from './SharedLinkType';
-
-/**
- *
- * @export
- * @interface SharedLinkCreateDto
- */
-export interface SharedLinkCreateDto {
- /**
- *
- * @type {string}
- * @memberof SharedLinkCreateDto
- */
- albumId?: string;
- /**
- *
- * @type {boolean}
- * @memberof SharedLinkCreateDto
- */
- allowDownload?: boolean;
- /**
- *
- * @type {boolean}
- * @memberof SharedLinkCreateDto
- */
- allowUpload?: boolean;
- /**
- *
- * @type {Array<string>}
- * @memberof SharedLinkCreateDto
- */
- assetIds?: Array<string>;
- /**
- *
- * @type {string}
- * @memberof SharedLinkCreateDto
- */
- description?: string;
- /**
- *
- * @type {Date}
- * @memberof SharedLinkCreateDto
- */
- expiresAt?: Date | null;
- /**
- *
- * @type {string}
- * @memberof SharedLinkCreateDto
- */
- password?: string;
- /**
- *
- * @type {boolean}
- * @memberof SharedLinkCreateDto
- */
- showMetadata?: boolean;
- /**
- *
- * @type {SharedLinkType}
- * @memberof SharedLinkCreateDto
- */
- type: SharedLinkType;
-}
-
-/**
- * Check if a given object implements the SharedLinkCreateDto interface.
- */
-export function instanceOfSharedLinkCreateDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "type" in value;
-
- return isInstance;
-}
-
-export function SharedLinkCreateDtoFromJSON(json: any): SharedLinkCreateDto {
- return SharedLinkCreateDtoFromJSONTyped(json, false);
-}
-
-export function SharedLinkCreateDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SharedLinkCreateDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'albumId': !exists(json, 'albumId') ? undefined : json['albumId'],
- 'allowDownload': !exists(json, 'allowDownload') ? undefined : json['allowDownload'],
- 'allowUpload': !exists(json, 'allowUpload') ? undefined : json['allowUpload'],
- 'assetIds': !exists(json, 'assetIds') ? undefined : json['assetIds'],
- 'description': !exists(json, 'description') ? undefined : json['description'],
- 'expiresAt': !exists(json, 'expiresAt') ? undefined : (json['expiresAt'] === null ? null : new Date(json['expiresAt'])),
- 'password': !exists(json, 'password') ? undefined : json['password'],
- 'showMetadata': !exists(json, 'showMetadata') ? undefined : json['showMetadata'],
- 'type': SharedLinkTypeFromJSON(json['type']),
- };
-}
-
-export function SharedLinkCreateDtoToJSON(value?: SharedLinkCreateDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'albumId': value.albumId,
- 'allowDownload': value.allowDownload,
- 'allowUpload': value.allowUpload,
- 'assetIds': value.assetIds,
- 'description': value.description,
- 'expiresAt': value.expiresAt === undefined ? undefined : (value.expiresAt === null ? null : value.expiresAt.toISOString()),
- 'password': value.password,
- 'showMetadata': value.showMetadata,
- 'type': SharedLinkTypeToJSON(value.type),
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/SharedLinkEditDto.ts b/open-api/typescript-sdk/fetch-client/models/SharedLinkEditDto.ts
deleted file mode 100644
index 12eb5da76f..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/SharedLinkEditDto.ts
+++ /dev/null
@@ -1,115 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface SharedLinkEditDto
- */
-export interface SharedLinkEditDto {
- /**
- *
- * @type {boolean}
- * @memberof SharedLinkEditDto
- */
- allowDownload?: boolean;
- /**
- *
- * @type {boolean}
- * @memberof SharedLinkEditDto
- */
- allowUpload?: boolean;
- /**
- * Few clients cannot send null to set the expiryTime to never.
- * Setting this flag and not sending expiryAt is considered as null instead.
- * Clients that can send null values can ignore this.
- * @type {boolean}
- * @memberof SharedLinkEditDto
- */
- changeExpiryTime?: boolean;
- /**
- *
- * @type {string}
- * @memberof SharedLinkEditDto
- */
- description?: string;
- /**
- *
- * @type {Date}
- * @memberof SharedLinkEditDto
- */
- expiresAt?: Date | null;
- /**
- *
- * @type {string}
- * @memberof SharedLinkEditDto
- */
- password?: string;
- /**
- *
- * @type {boolean}
- * @memberof SharedLinkEditDto
- */
- showMetadata?: boolean;
-}
-
-/**
- * Check if a given object implements the SharedLinkEditDto interface.
- */
-export function instanceOfSharedLinkEditDto(value: object): boolean {
- let isInstance = true;
-
- return isInstance;
-}
-
-export function SharedLinkEditDtoFromJSON(json: any): SharedLinkEditDto {
- return SharedLinkEditDtoFromJSONTyped(json, false);
-}
-
-export function SharedLinkEditDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SharedLinkEditDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'allowDownload': !exists(json, 'allowDownload') ? undefined : json['allowDownload'],
- 'allowUpload': !exists(json, 'allowUpload') ? undefined : json['allowUpload'],
- 'changeExpiryTime': !exists(json, 'changeExpiryTime') ? undefined : json['changeExpiryTime'],
- 'description': !exists(json, 'description') ? undefined : json['description'],
- 'expiresAt': !exists(json, 'expiresAt') ? undefined : (json['expiresAt'] === null ? null : new Date(json['expiresAt'])),
- 'password': !exists(json, 'password') ? undefined : json['password'],
- 'showMetadata': !exists(json, 'showMetadata') ? undefined : json['showMetadata'],
- };
-}
-
-export function SharedLinkEditDtoToJSON(value?: SharedLinkEditDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'allowDownload': value.allowDownload,
- 'allowUpload': value.allowUpload,
- 'changeExpiryTime': value.changeExpiryTime,
- 'description': value.description,
- 'expiresAt': value.expiresAt === undefined ? undefined : (value.expiresAt === null ? null : value.expiresAt.toISOString()),
- 'password': value.password,
- 'showMetadata': value.showMetadata,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/SharedLinkResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/SharedLinkResponseDto.ts
deleted file mode 100644
index 6f56c90176..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/SharedLinkResponseDto.ts
+++ /dev/null
@@ -1,200 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-import type { AlbumResponseDto } from './AlbumResponseDto';
-import {
- AlbumResponseDtoFromJSON,
- AlbumResponseDtoFromJSONTyped,
- AlbumResponseDtoToJSON,
-} from './AlbumResponseDto';
-import type { AssetResponseDto } from './AssetResponseDto';
-import {
- AssetResponseDtoFromJSON,
- AssetResponseDtoFromJSONTyped,
- AssetResponseDtoToJSON,
-} from './AssetResponseDto';
-import type { SharedLinkType } from './SharedLinkType';
-import {
- SharedLinkTypeFromJSON,
- SharedLinkTypeFromJSONTyped,
- SharedLinkTypeToJSON,
-} from './SharedLinkType';
-
-/**
- *
- * @export
- * @interface SharedLinkResponseDto
- */
-export interface SharedLinkResponseDto {
- /**
- *
- * @type {AlbumResponseDto}
- * @memberof SharedLinkResponseDto
- */
- album?: AlbumResponseDto;
- /**
- *
- * @type {boolean}
- * @memberof SharedLinkResponseDto
- */
- allowDownload: boolean;
- /**
- *
- * @type {boolean}
- * @memberof SharedLinkResponseDto
- */
- allowUpload: boolean;
- /**
- *
- * @type {Array<AssetResponseDto>}
- * @memberof SharedLinkResponseDto
- */
- assets: Array<AssetResponseDto>;
- /**
- *
- * @type {Date}
- * @memberof SharedLinkResponseDto
- */
- createdAt: Date;
- /**
- *
- * @type {string}
- * @memberof SharedLinkResponseDto
- */
- description: string | null;
- /**
- *
- * @type {Date}
- * @memberof SharedLinkResponseDto
- */
- expiresAt: Date | null;
- /**
- *
- * @type {string}
- * @memberof SharedLinkResponseDto
- */
- id: string;
- /**
- *
- * @type {string}
- * @memberof SharedLinkResponseDto
- */
- key: string;
- /**
- *
- * @type {string}
- * @memberof SharedLinkResponseDto
- */
- password: string | null;
- /**
- *
- * @type {boolean}
- * @memberof SharedLinkResponseDto
- */
- showMetadata: boolean;
- /**
- *
- * @type {string}
- * @memberof SharedLinkResponseDto
- */
- token?: string | null;
- /**
- *
- * @type {SharedLinkType}
- * @memberof SharedLinkResponseDto
- */
- type: SharedLinkType;
- /**
- *
- * @type {string}
- * @memberof SharedLinkResponseDto
- */
- userId: string;
-}
-
-/**
- * Check if a given object implements the SharedLinkResponseDto interface.
- */
-export function instanceOfSharedLinkResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "allowDownload" in value;
- isInstance = isInstance && "allowUpload" in value;
- isInstance = isInstance && "assets" in value;
- isInstance = isInstance && "createdAt" in value;
- isInstance = isInstance && "description" in value;
- isInstance = isInstance && "expiresAt" in value;
- isInstance = isInstance && "id" in value;
- isInstance = isInstance && "key" in value;
- isInstance = isInstance && "password" in value;
- isInstance = isInstance && "showMetadata" in value;
- isInstance = isInstance && "type" in value;
- isInstance = isInstance && "userId" in value;
-
- return isInstance;
-}
-
-export function SharedLinkResponseDtoFromJSON(json: any): SharedLinkResponseDto {
- return SharedLinkResponseDtoFromJSONTyped(json, false);
-}
-
-export function SharedLinkResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SharedLinkResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'album': !exists(json, 'album') ? undefined : AlbumResponseDtoFromJSON(json['album']),
- 'allowDownload': json['allowDownload'],
- 'allowUpload': json['allowUpload'],
- 'assets': ((json['assets'] as Array<any>).map(AssetResponseDtoFromJSON)),
- 'createdAt': (new Date(json['createdAt'])),
- 'description': json['description'],
- 'expiresAt': (json['expiresAt'] === null ? null : new Date(json['expiresAt'])),
- 'id': json['id'],
- 'key': json['key'],
- 'password': json['password'],
- 'showMetadata': json['showMetadata'],
- 'token': !exists(json, 'token') ? undefined : json['token'],
- 'type': SharedLinkTypeFromJSON(json['type']),
- 'userId': json['userId'],
- };
-}
-
-export function SharedLinkResponseDtoToJSON(value?: SharedLinkResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'album': AlbumResponseDtoToJSON(value.album),
- 'allowDownload': value.allowDownload,
- 'allowUpload': value.allowUpload,
- 'assets': ((value.assets as Array<any>).map(AssetResponseDtoToJSON)),
- 'createdAt': (value.createdAt.toISOString()),
- 'description': value.description,
- 'expiresAt': (value.expiresAt === null ? null : value.expiresAt.toISOString()),
- 'id': value.id,
- 'key': value.key,
- 'password': value.password,
- 'showMetadata': value.showMetadata,
- 'token': value.token,
- 'type': SharedLinkTypeToJSON(value.type),
- 'userId': value.userId,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/SharedLinkType.ts b/open-api/typescript-sdk/fetch-client/models/SharedLinkType.ts
deleted file mode 100644
index 901c73c9c0..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/SharedLinkType.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-/**
- *
- * @export
- */
-export const SharedLinkType = {
- Album: 'ALBUM',
- Individual: 'INDIVIDUAL'
-} as const;
-export type SharedLinkType = typeof SharedLinkType[keyof typeof SharedLinkType];
-
-
-export function SharedLinkTypeFromJSON(json: any): SharedLinkType {
- return SharedLinkTypeFromJSONTyped(json, false);
-}
-
-export function SharedLinkTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SharedLinkType {
- return json as SharedLinkType;
-}
-
-export function SharedLinkTypeToJSON(value?: SharedLinkType | null): any {
- return value as any;
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/SignUpDto.ts b/open-api/typescript-sdk/fetch-client/models/SignUpDto.ts
deleted file mode 100644
index 681fbf7519..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/SignUpDto.ts
+++ /dev/null
@@ -1,84 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface SignUpDto
- */
-export interface SignUpDto {
- /**
- *
- * @type {string}
- * @memberof SignUpDto
- */
- email: string;
- /**
- *
- * @type {string}
- * @memberof SignUpDto
- */
- name: string;
- /**
- *
- * @type {string}
- * @memberof SignUpDto
- */
- password: string;
-}
-
-/**
- * Check if a given object implements the SignUpDto interface.
- */
-export function instanceOfSignUpDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "email" in value;
- isInstance = isInstance && "name" in value;
- isInstance = isInstance && "password" in value;
-
- return isInstance;
-}
-
-export function SignUpDtoFromJSON(json: any): SignUpDto {
- return SignUpDtoFromJSONTyped(json, false);
-}
-
-export function SignUpDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignUpDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'email': json['email'],
- 'name': json['name'],
- 'password': json['password'],
- };
-}
-
-export function SignUpDtoToJSON(value?: SignUpDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'email': value.email,
- 'name': value.name,
- 'password': value.password,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/SmartInfoResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/SmartInfoResponseDto.ts
deleted file mode 100644
index 0b652fe7c2..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/SmartInfoResponseDto.ts
+++ /dev/null
@@ -1,73 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface SmartInfoResponseDto
- */
-export interface SmartInfoResponseDto {
- /**
- *
- * @type {Array<string>}
- * @memberof SmartInfoResponseDto
- */
- objects?: Array<string> | null;
- /**
- *
- * @type {Array<string>}
- * @memberof SmartInfoResponseDto
- */
- tags?: Array<string> | null;
-}
-
-/**
- * Check if a given object implements the SmartInfoResponseDto interface.
- */
-export function instanceOfSmartInfoResponseDto(value: object): boolean {
- let isInstance = true;
-
- return isInstance;
-}
-
-export function SmartInfoResponseDtoFromJSON(json: any): SmartInfoResponseDto {
- return SmartInfoResponseDtoFromJSONTyped(json, false);
-}
-
-export function SmartInfoResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SmartInfoResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'objects': !exists(json, 'objects') ? undefined : json['objects'],
- 'tags': !exists(json, 'tags') ? undefined : json['tags'],
- };
-}
-
-export function SmartInfoResponseDtoToJSON(value?: SmartInfoResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'objects': value.objects,
- 'tags': value.tags,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/SystemConfigDto.ts b/open-api/typescript-sdk/fetch-client/models/SystemConfigDto.ts
deleted file mode 100644
index 99504d6f51..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/SystemConfigDto.ts
+++ /dev/null
@@ -1,283 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-import type { SystemConfigFFmpegDto } from './SystemConfigFFmpegDto';
-import {
- SystemConfigFFmpegDtoFromJSON,
- SystemConfigFFmpegDtoFromJSONTyped,
- SystemConfigFFmpegDtoToJSON,
-} from './SystemConfigFFmpegDto';
-import type { SystemConfigJobDto } from './SystemConfigJobDto';
-import {
- SystemConfigJobDtoFromJSON,
- SystemConfigJobDtoFromJSONTyped,
- SystemConfigJobDtoToJSON,
-} from './SystemConfigJobDto';
-import type { SystemConfigLibraryDto } from './SystemConfigLibraryDto';
-import {
- SystemConfigLibraryDtoFromJSON,
- SystemConfigLibraryDtoFromJSONTyped,
- SystemConfigLibraryDtoToJSON,
-} from './SystemConfigLibraryDto';
-import type { SystemConfigLoggingDto } from './SystemConfigLoggingDto';
-import {
- SystemConfigLoggingDtoFromJSON,
- SystemConfigLoggingDtoFromJSONTyped,
- SystemConfigLoggingDtoToJSON,
-} from './SystemConfigLoggingDto';
-import type { SystemConfigMachineLearningDto } from './SystemConfigMachineLearningDto';
-import {
- SystemConfigMachineLearningDtoFromJSON,
- SystemConfigMachineLearningDtoFromJSONTyped,
- SystemConfigMachineLearningDtoToJSON,
-} from './SystemConfigMachineLearningDto';
-import type { SystemConfigMapDto } from './SystemConfigMapDto';
-import {
- SystemConfigMapDtoFromJSON,
- SystemConfigMapDtoFromJSONTyped,
- SystemConfigMapDtoToJSON,
-} from './SystemConfigMapDto';
-import type { SystemConfigNewVersionCheckDto } from './SystemConfigNewVersionCheckDto';
-import {
- SystemConfigNewVersionCheckDtoFromJSON,
- SystemConfigNewVersionCheckDtoFromJSONTyped,
- SystemConfigNewVersionCheckDtoToJSON,
-} from './SystemConfigNewVersionCheckDto';
-import type { SystemConfigOAuthDto } from './SystemConfigOAuthDto';
-import {
- SystemConfigOAuthDtoFromJSON,
- SystemConfigOAuthDtoFromJSONTyped,
- SystemConfigOAuthDtoToJSON,
-} from './SystemConfigOAuthDto';
-import type { SystemConfigPasswordLoginDto } from './SystemConfigPasswordLoginDto';
-import {
- SystemConfigPasswordLoginDtoFromJSON,
- SystemConfigPasswordLoginDtoFromJSONTyped,
- SystemConfigPasswordLoginDtoToJSON,
-} from './SystemConfigPasswordLoginDto';
-import type { SystemConfigReverseGeocodingDto } from './SystemConfigReverseGeocodingDto';
-import {
- SystemConfigReverseGeocodingDtoFromJSON,
- SystemConfigReverseGeocodingDtoFromJSONTyped,
- SystemConfigReverseGeocodingDtoToJSON,
-} from './SystemConfigReverseGeocodingDto';
-import type { SystemConfigServerDto } from './SystemConfigServerDto';
-import {
- SystemConfigServerDtoFromJSON,
- SystemConfigServerDtoFromJSONTyped,
- SystemConfigServerDtoToJSON,
-} from './SystemConfigServerDto';
-import type { SystemConfigStorageTemplateDto } from './SystemConfigStorageTemplateDto';
-import {
- SystemConfigStorageTemplateDtoFromJSON,
- SystemConfigStorageTemplateDtoFromJSONTyped,
- SystemConfigStorageTemplateDtoToJSON,
-} from './SystemConfigStorageTemplateDto';
-import type { SystemConfigThemeDto } from './SystemConfigThemeDto';
-import {
- SystemConfigThemeDtoFromJSON,
- SystemConfigThemeDtoFromJSONTyped,
- SystemConfigThemeDtoToJSON,
-} from './SystemConfigThemeDto';
-import type { SystemConfigThumbnailDto } from './SystemConfigThumbnailDto';
-import {
- SystemConfigThumbnailDtoFromJSON,
- SystemConfigThumbnailDtoFromJSONTyped,
- SystemConfigThumbnailDtoToJSON,
-} from './SystemConfigThumbnailDto';
-import type { SystemConfigTrashDto } from './SystemConfigTrashDto';
-import {
- SystemConfigTrashDtoFromJSON,
- SystemConfigTrashDtoFromJSONTyped,
- SystemConfigTrashDtoToJSON,
-} from './SystemConfigTrashDto';
-
-/**
- *
- * @export
- * @interface SystemConfigDto
- */
-export interface SystemConfigDto {
- /**
- *
- * @type {SystemConfigFFmpegDto}
- * @memberof SystemConfigDto
- */
- ffmpeg: SystemConfigFFmpegDto;
- /**
- *
- * @type {SystemConfigJobDto}
- * @memberof SystemConfigDto
- */
- job: SystemConfigJobDto;
- /**
- *
- * @type {SystemConfigLibraryDto}
- * @memberof SystemConfigDto
- */
- library: SystemConfigLibraryDto;
- /**
- *
- * @type {SystemConfigLoggingDto}
- * @memberof SystemConfigDto
- */
- logging: SystemConfigLoggingDto;
- /**
- *
- * @type {SystemConfigMachineLearningDto}
- * @memberof SystemConfigDto
- */
- machineLearning: SystemConfigMachineLearningDto;
- /**
- *
- * @type {SystemConfigMapDto}
- * @memberof SystemConfigDto
- */
- map: SystemConfigMapDto;
- /**
- *
- * @type {SystemConfigNewVersionCheckDto}
- * @memberof SystemConfigDto
- */
- newVersionCheck: SystemConfigNewVersionCheckDto;
- /**
- *
- * @type {SystemConfigOAuthDto}
- * @memberof SystemConfigDto
- */
- oauth: SystemConfigOAuthDto;
- /**
- *
- * @type {SystemConfigPasswordLoginDto}
- * @memberof SystemConfigDto
- */
- passwordLogin: SystemConfigPasswordLoginDto;
- /**
- *
- * @type {SystemConfigReverseGeocodingDto}
- * @memberof SystemConfigDto
- */
- reverseGeocoding: SystemConfigReverseGeocodingDto;
- /**
- *
- * @type {SystemConfigServerDto}
- * @memberof SystemConfigDto
- */
- server: SystemConfigServerDto;
- /**
- *
- * @type {SystemConfigStorageTemplateDto}
- * @memberof SystemConfigDto
- */
- storageTemplate: SystemConfigStorageTemplateDto;
- /**
- *
- * @type {SystemConfigThemeDto}
- * @memberof SystemConfigDto
- */
- theme: SystemConfigThemeDto;
- /**
- *
- * @type {SystemConfigThumbnailDto}
- * @memberof SystemConfigDto
- */
- thumbnail: SystemConfigThumbnailDto;
- /**
- *
- * @type {SystemConfigTrashDto}
- * @memberof SystemConfigDto
- */
- trash: SystemConfigTrashDto;
-}
-
-/**
- * Check if a given object implements the SystemConfigDto interface.
- */
-export function instanceOfSystemConfigDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "ffmpeg" in value;
- isInstance = isInstance && "job" in value;
- isInstance = isInstance && "library" in value;
- isInstance = isInstance && "logging" in value;
- isInstance = isInstance && "machineLearning" in value;
- isInstance = isInstance && "map" in value;
- isInstance = isInstance && "newVersionCheck" in value;
- isInstance = isInstance && "oauth" in value;
- isInstance = isInstance && "passwordLogin" in value;
- isInstance = isInstance && "reverseGeocoding" in value;
- isInstance = isInstance && "server" in value;
- isInstance = isInstance && "storageTemplate" in value;
- isInstance = isInstance && "theme" in value;
- isInstance = isInstance && "thumbnail" in value;
- isInstance = isInstance && "trash" in value;
-
- return isInstance;
-}
-
-export function SystemConfigDtoFromJSON(json: any): SystemConfigDto {
- return SystemConfigDtoFromJSONTyped(json, false);
-}
-
-export function SystemConfigDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemConfigDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'ffmpeg': SystemConfigFFmpegDtoFromJSON(json['ffmpeg']),
- 'job': SystemConfigJobDtoFromJSON(json['job']),
- 'library': SystemConfigLibraryDtoFromJSON(json['library']),
- 'logging': SystemConfigLoggingDtoFromJSON(json['logging']),
- 'machineLearning': SystemConfigMachineLearningDtoFromJSON(json['machineLearning']),
- 'map': SystemConfigMapDtoFromJSON(json['map']),
- 'newVersionCheck': SystemConfigNewVersionCheckDtoFromJSON(json['newVersionCheck']),
- 'oauth': SystemConfigOAuthDtoFromJSON(json['oauth']),
- 'passwordLogin': SystemConfigPasswordLoginDtoFromJSON(json['passwordLogin']),
- 'reverseGeocoding': SystemConfigReverseGeocodingDtoFromJSON(json['reverseGeocoding']),
- 'server': SystemConfigServerDtoFromJSON(json['server']),
- 'storageTemplate': SystemConfigStorageTemplateDtoFromJSON(json['storageTemplate']),
- 'theme': SystemConfigThemeDtoFromJSON(json['theme']),
- 'thumbnail': SystemConfigThumbnailDtoFromJSON(json['thumbnail']),
- 'trash': SystemConfigTrashDtoFromJSON(json['trash']),
- };
-}
-
-export function SystemConfigDtoToJSON(value?: SystemConfigDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'ffmpeg': SystemConfigFFmpegDtoToJSON(value.ffmpeg),
- 'job': SystemConfigJobDtoToJSON(value.job),
- 'library': SystemConfigLibraryDtoToJSON(value.library),
- 'logging': SystemConfigLoggingDtoToJSON(value.logging),
- 'machineLearning': SystemConfigMachineLearningDtoToJSON(value.machineLearning),
- 'map': SystemConfigMapDtoToJSON(value.map),
- 'newVersionCheck': SystemConfigNewVersionCheckDtoToJSON(value.newVersionCheck),
- 'oauth': SystemConfigOAuthDtoToJSON(value.oauth),
- 'passwordLogin': SystemConfigPasswordLoginDtoToJSON(value.passwordLogin),
- 'reverseGeocoding': SystemConfigReverseGeocodingDtoToJSON(value.reverseGeocoding),
- 'server': SystemConfigServerDtoToJSON(value.server),
- 'storageTemplate': SystemConfigStorageTemplateDtoToJSON(value.storageTemplate),
- 'theme': SystemConfigThemeDtoToJSON(value.theme),
- 'thumbnail': SystemConfigThumbnailDtoToJSON(value.thumbnail),
- 'trash': SystemConfigTrashDtoToJSON(value.trash),
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/SystemConfigFFmpegDto.ts b/open-api/typescript-sdk/fetch-client/models/SystemConfigFFmpegDto.ts
deleted file mode 100644
index aec8ff48d7..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/SystemConfigFFmpegDto.ts
+++ /dev/null
@@ -1,274 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-import type { AudioCodec } from './AudioCodec';
-import {
- AudioCodecFromJSON,
- AudioCodecFromJSONTyped,
- AudioCodecToJSON,
-} from './AudioCodec';
-import type { CQMode } from './CQMode';
-import {
- CQModeFromJSON,
- CQModeFromJSONTyped,
- CQModeToJSON,
-} from './CQMode';
-import type { ToneMapping } from './ToneMapping';
-import {
- ToneMappingFromJSON,
- ToneMappingFromJSONTyped,
- ToneMappingToJSON,
-} from './ToneMapping';
-import type { TranscodeHWAccel } from './TranscodeHWAccel';
-import {
- TranscodeHWAccelFromJSON,
- TranscodeHWAccelFromJSONTyped,
- TranscodeHWAccelToJSON,
-} from './TranscodeHWAccel';
-import type { TranscodePolicy } from './TranscodePolicy';
-import {
- TranscodePolicyFromJSON,
- TranscodePolicyFromJSONTyped,
- TranscodePolicyToJSON,
-} from './TranscodePolicy';
-import type { VideoCodec } from './VideoCodec';
-import {
- VideoCodecFromJSON,
- VideoCodecFromJSONTyped,
- VideoCodecToJSON,
-} from './VideoCodec';
-
-/**
- *
- * @export
- * @interface SystemConfigFFmpegDto
- */
-export interface SystemConfigFFmpegDto {
- /**
- *
- * @type {TranscodeHWAccel}
- * @memberof SystemConfigFFmpegDto
- */
- accel: TranscodeHWAccel;
- /**
- *
- * @type {Array<AudioCodec>}
- * @memberof SystemConfigFFmpegDto
- */
- acceptedAudioCodecs: Array<AudioCodec>;
- /**
- *
- * @type {Array<VideoCodec>}
- * @memberof SystemConfigFFmpegDto
- */
- acceptedVideoCodecs: Array<VideoCodec>;
- /**
- *
- * @type {number}
- * @memberof SystemConfigFFmpegDto
- */
- bframes: number;
- /**
- *
- * @type {CQMode}
- * @memberof SystemConfigFFmpegDto
- */
- cqMode: CQMode;
- /**
- *
- * @type {number}
- * @memberof SystemConfigFFmpegDto
- */
- crf: number;
- /**
- *
- * @type {number}
- * @memberof SystemConfigFFmpegDto
- */
- gopSize: number;
- /**
- *
- * @type {string}
- * @memberof SystemConfigFFmpegDto
- */
- maxBitrate: string;
- /**
- *
- * @type {number}
- * @memberof SystemConfigFFmpegDto
- */
- npl: number;
- /**
- *
- * @type {string}
- * @memberof SystemConfigFFmpegDto
- */
- preferredHwDevice: string;
- /**
- *
- * @type {string}
- * @memberof SystemConfigFFmpegDto
- */
- preset: string;
- /**
- *
- * @type {number}
- * @memberof SystemConfigFFmpegDto
- */
- refs: number;
- /**
- *
- * @type {AudioCodec}
- * @memberof SystemConfigFFmpegDto
- */
- targetAudioCodec: AudioCodec;
- /**
- *
- * @type {string}
- * @memberof SystemConfigFFmpegDto
- */
- targetResolution: string;
- /**
- *
- * @type {VideoCodec}
- * @memberof SystemConfigFFmpegDto
- */
- targetVideoCodec: VideoCodec;
- /**
- *
- * @type {boolean}
- * @memberof SystemConfigFFmpegDto
- */
- temporalAQ: boolean;
- /**
- *
- * @type {number}
- * @memberof SystemConfigFFmpegDto
- */
- threads: number;
- /**
- *
- * @type {ToneMapping}
- * @memberof SystemConfigFFmpegDto
- */
- tonemap: ToneMapping;
- /**
- *
- * @type {TranscodePolicy}
- * @memberof SystemConfigFFmpegDto
- */
- transcode: TranscodePolicy;
- /**
- *
- * @type {boolean}
- * @memberof SystemConfigFFmpegDto
- */
- twoPass: boolean;
-}
-
-/**
- * Check if a given object implements the SystemConfigFFmpegDto interface.
- */
-export function instanceOfSystemConfigFFmpegDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "accel" in value;
- isInstance = isInstance && "acceptedAudioCodecs" in value;
- isInstance = isInstance && "acceptedVideoCodecs" in value;
- isInstance = isInstance && "bframes" in value;
- isInstance = isInstance && "cqMode" in value;
- isInstance = isInstance && "crf" in value;
- isInstance = isInstance && "gopSize" in value;
- isInstance = isInstance && "maxBitrate" in value;
- isInstance = isInstance && "npl" in value;
- isInstance = isInstance && "preferredHwDevice" in value;
- isInstance = isInstance && "preset" in value;
- isInstance = isInstance && "refs" in value;
- isInstance = isInstance && "targetAudioCodec" in value;
- isInstance = isInstance && "targetResolution" in value;
- isInstance = isInstance && "targetVideoCodec" in value;
- isInstance = isInstance && "temporalAQ" in value;
- isInstance = isInstance && "threads" in value;
- isInstance = isInstance && "tonemap" in value;
- isInstance = isInstance && "transcode" in value;
- isInstance = isInstance && "twoPass" in value;
-
- return isInstance;
-}
-
-export function SystemConfigFFmpegDtoFromJSON(json: any): SystemConfigFFmpegDto {
- return SystemConfigFFmpegDtoFromJSONTyped(json, false);
-}
-
-export function SystemConfigFFmpegDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemConfigFFmpegDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'accel': TranscodeHWAccelFromJSON(json['accel']),
- 'acceptedAudioCodecs': ((json['acceptedAudioCodecs'] as Array<any>).map(AudioCodecFromJSON)),
- 'acceptedVideoCodecs': ((json['acceptedVideoCodecs'] as Array<any>).map(VideoCodecFromJSON)),
- 'bframes': json['bframes'],
- 'cqMode': CQModeFromJSON(json['cqMode']),
- 'crf': json['crf'],
- 'gopSize': json['gopSize'],
- 'maxBitrate': json['maxBitrate'],
- 'npl': json['npl'],
- 'preferredHwDevice': json['preferredHwDevice'],
- 'preset': json['preset'],
- 'refs': json['refs'],
- 'targetAudioCodec': AudioCodecFromJSON(json['targetAudioCodec']),
- 'targetResolution': json['targetResolution'],
- 'targetVideoCodec': VideoCodecFromJSON(json['targetVideoCodec']),
- 'temporalAQ': json['temporalAQ'],
- 'threads': json['threads'],
- 'tonemap': ToneMappingFromJSON(json['tonemap']),
- 'transcode': TranscodePolicyFromJSON(json['transcode']),
- 'twoPass': json['twoPass'],
- };
-}
-
-export function SystemConfigFFmpegDtoToJSON(value?: SystemConfigFFmpegDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'accel': TranscodeHWAccelToJSON(value.accel),
- 'acceptedAudioCodecs': ((value.acceptedAudioCodecs as Array<any>).map(AudioCodecToJSON)),
- 'acceptedVideoCodecs': ((value.acceptedVideoCodecs as Array<any>).map(VideoCodecToJSON)),
- 'bframes': value.bframes,
- 'cqMode': CQModeToJSON(value.cqMode),
- 'crf': value.crf,
- 'gopSize': value.gopSize,
- 'maxBitrate': value.maxBitrate,
- 'npl': value.npl,
- 'preferredHwDevice': value.preferredHwDevice,
- 'preset': value.preset,
- 'refs': value.refs,
- 'targetAudioCodec': AudioCodecToJSON(value.targetAudioCodec),
- 'targetResolution': value.targetResolution,
- 'targetVideoCodec': VideoCodecToJSON(value.targetVideoCodec),
- 'temporalAQ': value.temporalAQ,
- 'threads': value.threads,
- 'tonemap': ToneMappingToJSON(value.tonemap),
- 'transcode': TranscodePolicyToJSON(value.transcode),
- 'twoPass': value.twoPass,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/SystemConfigJobDto.ts b/open-api/typescript-sdk/fetch-client/models/SystemConfigJobDto.ts
deleted file mode 100644
index df18ca0c19..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/SystemConfigJobDto.ts
+++ /dev/null
@@ -1,154 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-import type { JobSettingsDto } from './JobSettingsDto';
-import {
- JobSettingsDtoFromJSON,
- JobSettingsDtoFromJSONTyped,
- JobSettingsDtoToJSON,
-} from './JobSettingsDto';
-
-/**
- *
- * @export
- * @interface SystemConfigJobDto
- */
-export interface SystemConfigJobDto {
- /**
- *
- * @type {JobSettingsDto}
- * @memberof SystemConfigJobDto
- */
- backgroundTask: JobSettingsDto;
- /**
- *
- * @type {JobSettingsDto}
- * @memberof SystemConfigJobDto
- */
- faceDetection: JobSettingsDto;
- /**
- *
- * @type {JobSettingsDto}
- * @memberof SystemConfigJobDto
- */
- library: JobSettingsDto;
- /**
- *
- * @type {JobSettingsDto}
- * @memberof SystemConfigJobDto
- */
- metadataExtraction: JobSettingsDto;
- /**
- *
- * @type {JobSettingsDto}
- * @memberof SystemConfigJobDto
- */
- migration: JobSettingsDto;
- /**
- *
- * @type {JobSettingsDto}
- * @memberof SystemConfigJobDto
- */
- search: JobSettingsDto;
- /**
- *
- * @type {JobSettingsDto}
- * @memberof SystemConfigJobDto
- */
- sidecar: JobSettingsDto;
- /**
- *
- * @type {JobSettingsDto}
- * @memberof SystemConfigJobDto
- */
- smartSearch: JobSettingsDto;
- /**
- *
- * @type {JobSettingsDto}
- * @memberof SystemConfigJobDto
- */
- thumbnailGeneration: JobSettingsDto;
- /**
- *
- * @type {JobSettingsDto}
- * @memberof SystemConfigJobDto
- */
- videoConversion: JobSettingsDto;
-}
-
-/**
- * Check if a given object implements the SystemConfigJobDto interface.
- */
-export function instanceOfSystemConfigJobDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "backgroundTask" in value;
- isInstance = isInstance && "faceDetection" in value;
- isInstance = isInstance && "library" in value;
- isInstance = isInstance && "metadataExtraction" in value;
- isInstance = isInstance && "migration" in value;
- isInstance = isInstance && "search" in value;
- isInstance = isInstance && "sidecar" in value;
- isInstance = isInstance && "smartSearch" in value;
- isInstance = isInstance && "thumbnailGeneration" in value;
- isInstance = isInstance && "videoConversion" in value;
-
- return isInstance;
-}
-
-export function SystemConfigJobDtoFromJSON(json: any): SystemConfigJobDto {
- return SystemConfigJobDtoFromJSONTyped(json, false);
-}
-
-export function SystemConfigJobDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemConfigJobDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'backgroundTask': JobSettingsDtoFromJSON(json['backgroundTask']),
- 'faceDetection': JobSettingsDtoFromJSON(json['faceDetection']),
- 'library': JobSettingsDtoFromJSON(json['library']),
- 'metadataExtraction': JobSettingsDtoFromJSON(json['metadataExtraction']),
- 'migration': JobSettingsDtoFromJSON(json['migration']),
- 'search': JobSettingsDtoFromJSON(json['search']),
- 'sidecar': JobSettingsDtoFromJSON(json['sidecar']),
- 'smartSearch': JobSettingsDtoFromJSON(json['smartSearch']),
- 'thumbnailGeneration': JobSettingsDtoFromJSON(json['thumbnailGeneration']),
- 'videoConversion': JobSettingsDtoFromJSON(json['videoConversion']),
- };
-}
-
-export function SystemConfigJobDtoToJSON(value?: SystemConfigJobDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'backgroundTask': JobSettingsDtoToJSON(value.backgroundTask),
- 'faceDetection': JobSettingsDtoToJSON(value.faceDetection),
- 'library': JobSettingsDtoToJSON(value.library),
- 'metadataExtraction': JobSettingsDtoToJSON(value.metadataExtraction),
- 'migration': JobSettingsDtoToJSON(value.migration),
- 'search': JobSettingsDtoToJSON(value.search),
- 'sidecar': JobSettingsDtoToJSON(value.sidecar),
- 'smartSearch': JobSettingsDtoToJSON(value.smartSearch),
- 'thumbnailGeneration': JobSettingsDtoToJSON(value.thumbnailGeneration),
- 'videoConversion': JobSettingsDtoToJSON(value.videoConversion),
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/SystemConfigLibraryDto.ts b/open-api/typescript-sdk/fetch-client/models/SystemConfigLibraryDto.ts
deleted file mode 100644
index 78183bd3a2..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/SystemConfigLibraryDto.ts
+++ /dev/null
@@ -1,88 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-import type { SystemConfigLibraryScanDto } from './SystemConfigLibraryScanDto';
-import {
- SystemConfigLibraryScanDtoFromJSON,
- SystemConfigLibraryScanDtoFromJSONTyped,
- SystemConfigLibraryScanDtoToJSON,
-} from './SystemConfigLibraryScanDto';
-import type { SystemConfigLibraryWatchDto } from './SystemConfigLibraryWatchDto';
-import {
- SystemConfigLibraryWatchDtoFromJSON,
- SystemConfigLibraryWatchDtoFromJSONTyped,
- SystemConfigLibraryWatchDtoToJSON,
-} from './SystemConfigLibraryWatchDto';
-
-/**
- *
- * @export
- * @interface SystemConfigLibraryDto
- */
-export interface SystemConfigLibraryDto {
- /**
- *
- * @type {SystemConfigLibraryScanDto}
- * @memberof SystemConfigLibraryDto
- */
- scan: SystemConfigLibraryScanDto;
- /**
- *
- * @type {SystemConfigLibraryWatchDto}
- * @memberof SystemConfigLibraryDto
- */
- watch: SystemConfigLibraryWatchDto;
-}
-
-/**
- * Check if a given object implements the SystemConfigLibraryDto interface.
- */
-export function instanceOfSystemConfigLibraryDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "scan" in value;
- isInstance = isInstance && "watch" in value;
-
- return isInstance;
-}
-
-export function SystemConfigLibraryDtoFromJSON(json: any): SystemConfigLibraryDto {
- return SystemConfigLibraryDtoFromJSONTyped(json, false);
-}
-
-export function SystemConfigLibraryDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemConfigLibraryDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'scan': SystemConfigLibraryScanDtoFromJSON(json['scan']),
- 'watch': SystemConfigLibraryWatchDtoFromJSON(json['watch']),
- };
-}
-
-export function SystemConfigLibraryDtoToJSON(value?: SystemConfigLibraryDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'scan': SystemConfigLibraryScanDtoToJSON(value.scan),
- 'watch': SystemConfigLibraryWatchDtoToJSON(value.watch),
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/SystemConfigLibraryScanDto.ts b/open-api/typescript-sdk/fetch-client/models/SystemConfigLibraryScanDto.ts
deleted file mode 100644
index bd079fe202..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/SystemConfigLibraryScanDto.ts
+++ /dev/null
@@ -1,75 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface SystemConfigLibraryScanDto
- */
-export interface SystemConfigLibraryScanDto {
- /**
- *
- * @type {string}
- * @memberof SystemConfigLibraryScanDto
- */
- cronExpression: string;
- /**
- *
- * @type {boolean}
- * @memberof SystemConfigLibraryScanDto
- */
- enabled: boolean;
-}
-
-/**
- * Check if a given object implements the SystemConfigLibraryScanDto interface.
- */
-export function instanceOfSystemConfigLibraryScanDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "cronExpression" in value;
- isInstance = isInstance && "enabled" in value;
-
- return isInstance;
-}
-
-export function SystemConfigLibraryScanDtoFromJSON(json: any): SystemConfigLibraryScanDto {
- return SystemConfigLibraryScanDtoFromJSONTyped(json, false);
-}
-
-export function SystemConfigLibraryScanDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemConfigLibraryScanDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'cronExpression': json['cronExpression'],
- 'enabled': json['enabled'],
- };
-}
-
-export function SystemConfigLibraryScanDtoToJSON(value?: SystemConfigLibraryScanDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'cronExpression': value.cronExpression,
- 'enabled': value.enabled,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/SystemConfigLibraryWatchDto.ts b/open-api/typescript-sdk/fetch-client/models/SystemConfigLibraryWatchDto.ts
deleted file mode 100644
index 3c69b99ed2..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/SystemConfigLibraryWatchDto.ts
+++ /dev/null
@@ -1,84 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface SystemConfigLibraryWatchDto
- */
-export interface SystemConfigLibraryWatchDto {
- /**
- *
- * @type {boolean}
- * @memberof SystemConfigLibraryWatchDto
- */
- enabled: boolean;
- /**
- *
- * @type {number}
- * @memberof SystemConfigLibraryWatchDto
- */
- interval: number;
- /**
- *
- * @type {boolean}
- * @memberof SystemConfigLibraryWatchDto
- */
- usePolling: boolean;
-}
-
-/**
- * Check if a given object implements the SystemConfigLibraryWatchDto interface.
- */
-export function instanceOfSystemConfigLibraryWatchDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "enabled" in value;
- isInstance = isInstance && "interval" in value;
- isInstance = isInstance && "usePolling" in value;
-
- return isInstance;
-}
-
-export function SystemConfigLibraryWatchDtoFromJSON(json: any): SystemConfigLibraryWatchDto {
- return SystemConfigLibraryWatchDtoFromJSONTyped(json, false);
-}
-
-export function SystemConfigLibraryWatchDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemConfigLibraryWatchDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'enabled': json['enabled'],
- 'interval': json['interval'],
- 'usePolling': json['usePolling'],
- };
-}
-
-export function SystemConfigLibraryWatchDtoToJSON(value?: SystemConfigLibraryWatchDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'enabled': value.enabled,
- 'interval': value.interval,
- 'usePolling': value.usePolling,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/SystemConfigLoggingDto.ts b/open-api/typescript-sdk/fetch-client/models/SystemConfigLoggingDto.ts
deleted file mode 100644
index 5f9b4bc028..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/SystemConfigLoggingDto.ts
+++ /dev/null
@@ -1,82 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-import type { LogLevel } from './LogLevel';
-import {
- LogLevelFromJSON,
- LogLevelFromJSONTyped,
- LogLevelToJSON,
-} from './LogLevel';
-
-/**
- *
- * @export
- * @interface SystemConfigLoggingDto
- */
-export interface SystemConfigLoggingDto {
- /**
- *
- * @type {boolean}
- * @memberof SystemConfigLoggingDto
- */
- enabled: boolean;
- /**
- *
- * @type {LogLevel}
- * @memberof SystemConfigLoggingDto
- */
- level: LogLevel;
-}
-
-/**
- * Check if a given object implements the SystemConfigLoggingDto interface.
- */
-export function instanceOfSystemConfigLoggingDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "enabled" in value;
- isInstance = isInstance && "level" in value;
-
- return isInstance;
-}
-
-export function SystemConfigLoggingDtoFromJSON(json: any): SystemConfigLoggingDto {
- return SystemConfigLoggingDtoFromJSONTyped(json, false);
-}
-
-export function SystemConfigLoggingDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemConfigLoggingDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'enabled': json['enabled'],
- 'level': LogLevelFromJSON(json['level']),
- };
-}
-
-export function SystemConfigLoggingDtoToJSON(value?: SystemConfigLoggingDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'enabled': value.enabled,
- 'level': LogLevelToJSON(value.level),
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/SystemConfigMachineLearningDto.ts b/open-api/typescript-sdk/fetch-client/models/SystemConfigMachineLearningDto.ts
deleted file mode 100644
index 16acca93d4..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/SystemConfigMachineLearningDto.ts
+++ /dev/null
@@ -1,106 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-import type { CLIPConfig } from './CLIPConfig';
-import {
- CLIPConfigFromJSON,
- CLIPConfigFromJSONTyped,
- CLIPConfigToJSON,
-} from './CLIPConfig';
-import type { RecognitionConfig } from './RecognitionConfig';
-import {
- RecognitionConfigFromJSON,
- RecognitionConfigFromJSONTyped,
- RecognitionConfigToJSON,
-} from './RecognitionConfig';
-
-/**
- *
- * @export
- * @interface SystemConfigMachineLearningDto
- */
-export interface SystemConfigMachineLearningDto {
- /**
- *
- * @type {CLIPConfig}
- * @memberof SystemConfigMachineLearningDto
- */
- clip: CLIPConfig;
- /**
- *
- * @type {boolean}
- * @memberof SystemConfigMachineLearningDto
- */
- enabled: boolean;
- /**
- *
- * @type {RecognitionConfig}
- * @memberof SystemConfigMachineLearningDto
- */
- facialRecognition: RecognitionConfig;
- /**
- *
- * @type {string}
- * @memberof SystemConfigMachineLearningDto
- */
- url: string;
-}
-
-/**
- * Check if a given object implements the SystemConfigMachineLearningDto interface.
- */
-export function instanceOfSystemConfigMachineLearningDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "clip" in value;
- isInstance = isInstance && "enabled" in value;
- isInstance = isInstance && "facialRecognition" in value;
- isInstance = isInstance && "url" in value;
-
- return isInstance;
-}
-
-export function SystemConfigMachineLearningDtoFromJSON(json: any): SystemConfigMachineLearningDto {
- return SystemConfigMachineLearningDtoFromJSONTyped(json, false);
-}
-
-export function SystemConfigMachineLearningDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemConfigMachineLearningDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'clip': CLIPConfigFromJSON(json['clip']),
- 'enabled': json['enabled'],
- 'facialRecognition': RecognitionConfigFromJSON(json['facialRecognition']),
- 'url': json['url'],
- };
-}
-
-export function SystemConfigMachineLearningDtoToJSON(value?: SystemConfigMachineLearningDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'clip': CLIPConfigToJSON(value.clip),
- 'enabled': value.enabled,
- 'facialRecognition': RecognitionConfigToJSON(value.facialRecognition),
- 'url': value.url,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/SystemConfigMapDto.ts b/open-api/typescript-sdk/fetch-client/models/SystemConfigMapDto.ts
deleted file mode 100644
index 0691fdafa5..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/SystemConfigMapDto.ts
+++ /dev/null
@@ -1,84 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface SystemConfigMapDto
- */
-export interface SystemConfigMapDto {
- /**
- *
- * @type {string}
- * @memberof SystemConfigMapDto
- */
- darkStyle: string;
- /**
- *
- * @type {boolean}
- * @memberof SystemConfigMapDto
- */
- enabled: boolean;
- /**
- *
- * @type {string}
- * @memberof SystemConfigMapDto
- */
- lightStyle: string;
-}
-
-/**
- * Check if a given object implements the SystemConfigMapDto interface.
- */
-export function instanceOfSystemConfigMapDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "darkStyle" in value;
- isInstance = isInstance && "enabled" in value;
- isInstance = isInstance && "lightStyle" in value;
-
- return isInstance;
-}
-
-export function SystemConfigMapDtoFromJSON(json: any): SystemConfigMapDto {
- return SystemConfigMapDtoFromJSONTyped(json, false);
-}
-
-export function SystemConfigMapDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemConfigMapDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'darkStyle': json['darkStyle'],
- 'enabled': json['enabled'],
- 'lightStyle': json['lightStyle'],
- };
-}
-
-export function SystemConfigMapDtoToJSON(value?: SystemConfigMapDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'darkStyle': value.darkStyle,
- 'enabled': value.enabled,
- 'lightStyle': value.lightStyle,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/SystemConfigNewVersionCheckDto.ts b/open-api/typescript-sdk/fetch-client/models/SystemConfigNewVersionCheckDto.ts
deleted file mode 100644
index c8a4e5edb0..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/SystemConfigNewVersionCheckDto.ts
+++ /dev/null
@@ -1,66 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface SystemConfigNewVersionCheckDto
- */
-export interface SystemConfigNewVersionCheckDto {
- /**
- *
- * @type {boolean}
- * @memberof SystemConfigNewVersionCheckDto
- */
- enabled: boolean;
-}
-
-/**
- * Check if a given object implements the SystemConfigNewVersionCheckDto interface.
- */
-export function instanceOfSystemConfigNewVersionCheckDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "enabled" in value;
-
- return isInstance;
-}
-
-export function SystemConfigNewVersionCheckDtoFromJSON(json: any): SystemConfigNewVersionCheckDto {
- return SystemConfigNewVersionCheckDtoFromJSONTyped(json, false);
-}
-
-export function SystemConfigNewVersionCheckDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemConfigNewVersionCheckDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'enabled': json['enabled'],
- };
-}
-
-export function SystemConfigNewVersionCheckDtoToJSON(value?: SystemConfigNewVersionCheckDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'enabled': value.enabled,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/SystemConfigOAuthDto.ts b/open-api/typescript-sdk/fetch-client/models/SystemConfigOAuthDto.ts
deleted file mode 100644
index 784d229eef..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/SystemConfigOAuthDto.ts
+++ /dev/null
@@ -1,165 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface SystemConfigOAuthDto
- */
-export interface SystemConfigOAuthDto {
- /**
- *
- * @type {boolean}
- * @memberof SystemConfigOAuthDto
- */
- autoLaunch: boolean;
- /**
- *
- * @type {boolean}
- * @memberof SystemConfigOAuthDto
- */
- autoRegister: boolean;
- /**
- *
- * @type {string}
- * @memberof SystemConfigOAuthDto
- */
- buttonText: string;
- /**
- *
- * @type {string}
- * @memberof SystemConfigOAuthDto
- */
- clientId: string;
- /**
- *
- * @type {string}
- * @memberof SystemConfigOAuthDto
- */
- clientSecret: string;
- /**
- *
- * @type {boolean}
- * @memberof SystemConfigOAuthDto
- */
- enabled: boolean;
- /**
- *
- * @type {string}
- * @memberof SystemConfigOAuthDto
- */
- issuerUrl: string;
- /**
- *
- * @type {boolean}
- * @memberof SystemConfigOAuthDto
- */
- mobileOverrideEnabled: boolean;
- /**
- *
- * @type {string}
- * @memberof SystemConfigOAuthDto
- */
- mobileRedirectUri: string;
- /**
- *
- * @type {string}
- * @memberof SystemConfigOAuthDto
- */
- scope: string;
- /**
- *
- * @type {string}
- * @memberof SystemConfigOAuthDto
- */
- signingAlgorithm: string;
- /**
- *
- * @type {string}
- * @memberof SystemConfigOAuthDto
- */
- storageLabelClaim: string;
-}
-
-/**
- * Check if a given object implements the SystemConfigOAuthDto interface.
- */
-export function instanceOfSystemConfigOAuthDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "autoLaunch" in value;
- isInstance = isInstance && "autoRegister" in value;
- isInstance = isInstance && "buttonText" in value;
- isInstance = isInstance && "clientId" in value;
- isInstance = isInstance && "clientSecret" in value;
- isInstance = isInstance && "enabled" in value;
- isInstance = isInstance && "issuerUrl" in value;
- isInstance = isInstance && "mobileOverrideEnabled" in value;
- isInstance = isInstance && "mobileRedirectUri" in value;
- isInstance = isInstance && "scope" in value;
- isInstance = isInstance && "signingAlgorithm" in value;
- isInstance = isInstance && "storageLabelClaim" in value;
-
- return isInstance;
-}
-
-export function SystemConfigOAuthDtoFromJSON(json: any): SystemConfigOAuthDto {
- return SystemConfigOAuthDtoFromJSONTyped(json, false);
-}
-
-export function SystemConfigOAuthDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemConfigOAuthDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'autoLaunch': json['autoLaunch'],
- 'autoRegister': json['autoRegister'],
- 'buttonText': json['buttonText'],
- 'clientId': json['clientId'],
- 'clientSecret': json['clientSecret'],
- 'enabled': json['enabled'],
- 'issuerUrl': json['issuerUrl'],
- 'mobileOverrideEnabled': json['mobileOverrideEnabled'],
- 'mobileRedirectUri': json['mobileRedirectUri'],
- 'scope': json['scope'],
- 'signingAlgorithm': json['signingAlgorithm'],
- 'storageLabelClaim': json['storageLabelClaim'],
- };
-}
-
-export function SystemConfigOAuthDtoToJSON(value?: SystemConfigOAuthDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'autoLaunch': value.autoLaunch,
- 'autoRegister': value.autoRegister,
- 'buttonText': value.buttonText,
- 'clientId': value.clientId,
- 'clientSecret': value.clientSecret,
- 'enabled': value.enabled,
- 'issuerUrl': value.issuerUrl,
- 'mobileOverrideEnabled': value.mobileOverrideEnabled,
- 'mobileRedirectUri': value.mobileRedirectUri,
- 'scope': value.scope,
- 'signingAlgorithm': value.signingAlgorithm,
- 'storageLabelClaim': value.storageLabelClaim,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/SystemConfigPasswordLoginDto.ts b/open-api/typescript-sdk/fetch-client/models/SystemConfigPasswordLoginDto.ts
deleted file mode 100644
index 2e76b27a9e..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/SystemConfigPasswordLoginDto.ts
+++ /dev/null
@@ -1,66 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface SystemConfigPasswordLoginDto
- */
-export interface SystemConfigPasswordLoginDto {
- /**
- *
- * @type {boolean}
- * @memberof SystemConfigPasswordLoginDto
- */
- enabled: boolean;
-}
-
-/**
- * Check if a given object implements the SystemConfigPasswordLoginDto interface.
- */
-export function instanceOfSystemConfigPasswordLoginDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "enabled" in value;
-
- return isInstance;
-}
-
-export function SystemConfigPasswordLoginDtoFromJSON(json: any): SystemConfigPasswordLoginDto {
- return SystemConfigPasswordLoginDtoFromJSONTyped(json, false);
-}
-
-export function SystemConfigPasswordLoginDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemConfigPasswordLoginDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'enabled': json['enabled'],
- };
-}
-
-export function SystemConfigPasswordLoginDtoToJSON(value?: SystemConfigPasswordLoginDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'enabled': value.enabled,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/SystemConfigReverseGeocodingDto.ts b/open-api/typescript-sdk/fetch-client/models/SystemConfigReverseGeocodingDto.ts
deleted file mode 100644
index 95928108f6..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/SystemConfigReverseGeocodingDto.ts
+++ /dev/null
@@ -1,66 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface SystemConfigReverseGeocodingDto
- */
-export interface SystemConfigReverseGeocodingDto {
- /**
- *
- * @type {boolean}
- * @memberof SystemConfigReverseGeocodingDto
- */
- enabled: boolean;
-}
-
-/**
- * Check if a given object implements the SystemConfigReverseGeocodingDto interface.
- */
-export function instanceOfSystemConfigReverseGeocodingDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "enabled" in value;
-
- return isInstance;
-}
-
-export function SystemConfigReverseGeocodingDtoFromJSON(json: any): SystemConfigReverseGeocodingDto {
- return SystemConfigReverseGeocodingDtoFromJSONTyped(json, false);
-}
-
-export function SystemConfigReverseGeocodingDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemConfigReverseGeocodingDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'enabled': json['enabled'],
- };
-}
-
-export function SystemConfigReverseGeocodingDtoToJSON(value?: SystemConfigReverseGeocodingDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'enabled': value.enabled,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/SystemConfigServerDto.ts b/open-api/typescript-sdk/fetch-client/models/SystemConfigServerDto.ts
deleted file mode 100644
index ec54fa36d1..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/SystemConfigServerDto.ts
+++ /dev/null
@@ -1,75 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface SystemConfigServerDto
- */
-export interface SystemConfigServerDto {
- /**
- *
- * @type {string}
- * @memberof SystemConfigServerDto
- */
- externalDomain: string;
- /**
- *
- * @type {string}
- * @memberof SystemConfigServerDto
- */
- loginPageMessage: string;
-}
-
-/**
- * Check if a given object implements the SystemConfigServerDto interface.
- */
-export function instanceOfSystemConfigServerDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "externalDomain" in value;
- isInstance = isInstance && "loginPageMessage" in value;
-
- return isInstance;
-}
-
-export function SystemConfigServerDtoFromJSON(json: any): SystemConfigServerDto {
- return SystemConfigServerDtoFromJSONTyped(json, false);
-}
-
-export function SystemConfigServerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemConfigServerDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'externalDomain': json['externalDomain'],
- 'loginPageMessage': json['loginPageMessage'],
- };
-}
-
-export function SystemConfigServerDtoToJSON(value?: SystemConfigServerDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'externalDomain': value.externalDomain,
- 'loginPageMessage': value.loginPageMessage,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/SystemConfigStorageTemplateDto.ts b/open-api/typescript-sdk/fetch-client/models/SystemConfigStorageTemplateDto.ts
deleted file mode 100644
index b55172ceb6..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/SystemConfigStorageTemplateDto.ts
+++ /dev/null
@@ -1,84 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface SystemConfigStorageTemplateDto
- */
-export interface SystemConfigStorageTemplateDto {
- /**
- *
- * @type {boolean}
- * @memberof SystemConfigStorageTemplateDto
- */
- enabled: boolean;
- /**
- *
- * @type {boolean}
- * @memberof SystemConfigStorageTemplateDto
- */
- hashVerificationEnabled: boolean;
- /**
- *
- * @type {string}
- * @memberof SystemConfigStorageTemplateDto
- */
- template: string;
-}
-
-/**
- * Check if a given object implements the SystemConfigStorageTemplateDto interface.
- */
-export function instanceOfSystemConfigStorageTemplateDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "enabled" in value;
- isInstance = isInstance && "hashVerificationEnabled" in value;
- isInstance = isInstance && "template" in value;
-
- return isInstance;
-}
-
-export function SystemConfigStorageTemplateDtoFromJSON(json: any): SystemConfigStorageTemplateDto {
- return SystemConfigStorageTemplateDtoFromJSONTyped(json, false);
-}
-
-export function SystemConfigStorageTemplateDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemConfigStorageTemplateDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'enabled': json['enabled'],
- 'hashVerificationEnabled': json['hashVerificationEnabled'],
- 'template': json['template'],
- };
-}
-
-export function SystemConfigStorageTemplateDtoToJSON(value?: SystemConfigStorageTemplateDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'enabled': value.enabled,
- 'hashVerificationEnabled': value.hashVerificationEnabled,
- 'template': value.template,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/SystemConfigTemplateStorageOptionDto.ts b/open-api/typescript-sdk/fetch-client/models/SystemConfigTemplateStorageOptionDto.ts
deleted file mode 100644
index f38d86a000..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/SystemConfigTemplateStorageOptionDto.ts
+++ /dev/null
@@ -1,129 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface SystemConfigTemplateStorageOptionDto
- */
-export interface SystemConfigTemplateStorageOptionDto {
- /**
- *
- * @type {Array<string>}
- * @memberof SystemConfigTemplateStorageOptionDto
- */
- dayOptions: Array<string>;
- /**
- *
- * @type {Array<string>}
- * @memberof SystemConfigTemplateStorageOptionDto
- */
- hourOptions: Array<string>;
- /**
- *
- * @type {Array<string>}
- * @memberof SystemConfigTemplateStorageOptionDto
- */
- minuteOptions: Array<string>;
- /**
- *
- * @type {Array<string>}
- * @memberof SystemConfigTemplateStorageOptionDto
- */
- monthOptions: Array<string>;
- /**
- *
- * @type {Array<string>}
- * @memberof SystemConfigTemplateStorageOptionDto
- */
- presetOptions: Array<string>;
- /**
- *
- * @type {Array<string>}
- * @memberof SystemConfigTemplateStorageOptionDto
- */
- secondOptions: Array<string>;
- /**
- *
- * @type {Array<string>}
- * @memberof SystemConfigTemplateStorageOptionDto
- */
- weekOptions: Array<string>;
- /**
- *
- * @type {Array<string>}
- * @memberof SystemConfigTemplateStorageOptionDto
- */
- yearOptions: Array<string>;
-}
-
-/**
- * Check if a given object implements the SystemConfigTemplateStorageOptionDto interface.
- */
-export function instanceOfSystemConfigTemplateStorageOptionDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "dayOptions" in value;
- isInstance = isInstance && "hourOptions" in value;
- isInstance = isInstance && "minuteOptions" in value;
- isInstance = isInstance && "monthOptions" in value;
- isInstance = isInstance && "presetOptions" in value;
- isInstance = isInstance && "secondOptions" in value;
- isInstance = isInstance && "weekOptions" in value;
- isInstance = isInstance && "yearOptions" in value;
-
- return isInstance;
-}
-
-export function SystemConfigTemplateStorageOptionDtoFromJSON(json: any): SystemConfigTemplateStorageOptionDto {
- return SystemConfigTemplateStorageOptionDtoFromJSONTyped(json, false);
-}
-
-export function SystemConfigTemplateStorageOptionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemConfigTemplateStorageOptionDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'dayOptions': json['dayOptions'],
- 'hourOptions': json['hourOptions'],
- 'minuteOptions': json['minuteOptions'],
- 'monthOptions': json['monthOptions'],
- 'presetOptions': json['presetOptions'],
- 'secondOptions': json['secondOptions'],
- 'weekOptions': json['weekOptions'],
- 'yearOptions': json['yearOptions'],
- };
-}
-
-export function SystemConfigTemplateStorageOptionDtoToJSON(value?: SystemConfigTemplateStorageOptionDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'dayOptions': value.dayOptions,
- 'hourOptions': value.hourOptions,
- 'minuteOptions': value.minuteOptions,
- 'monthOptions': value.monthOptions,
- 'presetOptions': value.presetOptions,
- 'secondOptions': value.secondOptions,
- 'weekOptions': value.weekOptions,
- 'yearOptions': value.yearOptions,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/SystemConfigThemeDto.ts b/open-api/typescript-sdk/fetch-client/models/SystemConfigThemeDto.ts
deleted file mode 100644
index 73ec8ea633..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/SystemConfigThemeDto.ts
+++ /dev/null
@@ -1,66 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface SystemConfigThemeDto
- */
-export interface SystemConfigThemeDto {
- /**
- *
- * @type {string}
- * @memberof SystemConfigThemeDto
- */
- customCss: string;
-}
-
-/**
- * Check if a given object implements the SystemConfigThemeDto interface.
- */
-export function instanceOfSystemConfigThemeDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "customCss" in value;
-
- return isInstance;
-}
-
-export function SystemConfigThemeDtoFromJSON(json: any): SystemConfigThemeDto {
- return SystemConfigThemeDtoFromJSONTyped(json, false);
-}
-
-export function SystemConfigThemeDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemConfigThemeDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'customCss': json['customCss'],
- };
-}
-
-export function SystemConfigThemeDtoToJSON(value?: SystemConfigThemeDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'customCss': value.customCss,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/SystemConfigThumbnailDto.ts b/open-api/typescript-sdk/fetch-client/models/SystemConfigThumbnailDto.ts
deleted file mode 100644
index c2f32782c4..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/SystemConfigThumbnailDto.ts
+++ /dev/null
@@ -1,100 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-import type { Colorspace } from './Colorspace';
-import {
- ColorspaceFromJSON,
- ColorspaceFromJSONTyped,
- ColorspaceToJSON,
-} from './Colorspace';
-
-/**
- *
- * @export
- * @interface SystemConfigThumbnailDto
- */
-export interface SystemConfigThumbnailDto {
- /**
- *
- * @type {Colorspace}
- * @memberof SystemConfigThumbnailDto
- */
- colorspace: Colorspace;
- /**
- *
- * @type {number}
- * @memberof SystemConfigThumbnailDto
- */
- jpegSize: number;
- /**
- *
- * @type {number}
- * @memberof SystemConfigThumbnailDto
- */
- quality: number;
- /**
- *
- * @type {number}
- * @memberof SystemConfigThumbnailDto
- */
- webpSize: number;
-}
-
-/**
- * Check if a given object implements the SystemConfigThumbnailDto interface.
- */
-export function instanceOfSystemConfigThumbnailDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "colorspace" in value;
- isInstance = isInstance && "jpegSize" in value;
- isInstance = isInstance && "quality" in value;
- isInstance = isInstance && "webpSize" in value;
-
- return isInstance;
-}
-
-export function SystemConfigThumbnailDtoFromJSON(json: any): SystemConfigThumbnailDto {
- return SystemConfigThumbnailDtoFromJSONTyped(json, false);
-}
-
-export function SystemConfigThumbnailDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemConfigThumbnailDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'colorspace': ColorspaceFromJSON(json['colorspace']),
- 'jpegSize': json['jpegSize'],
- 'quality': json['quality'],
- 'webpSize': json['webpSize'],
- };
-}
-
-export function SystemConfigThumbnailDtoToJSON(value?: SystemConfigThumbnailDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'colorspace': ColorspaceToJSON(value.colorspace),
- 'jpegSize': value.jpegSize,
- 'quality': value.quality,
- 'webpSize': value.webpSize,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/SystemConfigTrashDto.ts b/open-api/typescript-sdk/fetch-client/models/SystemConfigTrashDto.ts
deleted file mode 100644
index 704ae17e2f..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/SystemConfigTrashDto.ts
+++ /dev/null
@@ -1,75 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface SystemConfigTrashDto
- */
-export interface SystemConfigTrashDto {
- /**
- *
- * @type {number}
- * @memberof SystemConfigTrashDto
- */
- days: number;
- /**
- *
- * @type {boolean}
- * @memberof SystemConfigTrashDto
- */
- enabled: boolean;
-}
-
-/**
- * Check if a given object implements the SystemConfigTrashDto interface.
- */
-export function instanceOfSystemConfigTrashDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "days" in value;
- isInstance = isInstance && "enabled" in value;
-
- return isInstance;
-}
-
-export function SystemConfigTrashDtoFromJSON(json: any): SystemConfigTrashDto {
- return SystemConfigTrashDtoFromJSONTyped(json, false);
-}
-
-export function SystemConfigTrashDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemConfigTrashDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'days': json['days'],
- 'enabled': json['enabled'],
- };
-}
-
-export function SystemConfigTrashDtoToJSON(value?: SystemConfigTrashDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'days': value.days,
- 'enabled': value.enabled,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/TagResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/TagResponseDto.ts
deleted file mode 100644
index 9cada1cecc..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/TagResponseDto.ts
+++ /dev/null
@@ -1,100 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-import type { TagTypeEnum } from './TagTypeEnum';
-import {
- TagTypeEnumFromJSON,
- TagTypeEnumFromJSONTyped,
- TagTypeEnumToJSON,
-} from './TagTypeEnum';
-
-/**
- *
- * @export
- * @interface TagResponseDto
- */
-export interface TagResponseDto {
- /**
- *
- * @type {string}
- * @memberof TagResponseDto
- */
- id: string;
- /**
- *
- * @type {string}
- * @memberof TagResponseDto
- */
- name: string;
- /**
- *
- * @type {TagTypeEnum}
- * @memberof TagResponseDto
- */
- type: TagTypeEnum;
- /**
- *
- * @type {string}
- * @memberof TagResponseDto
- */
- userId: string;
-}
-
-/**
- * Check if a given object implements the TagResponseDto interface.
- */
-export function instanceOfTagResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "id" in value;
- isInstance = isInstance && "name" in value;
- isInstance = isInstance && "type" in value;
- isInstance = isInstance && "userId" in value;
-
- return isInstance;
-}
-
-export function TagResponseDtoFromJSON(json: any): TagResponseDto {
- return TagResponseDtoFromJSONTyped(json, false);
-}
-
-export function TagResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TagResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'id': json['id'],
- 'name': json['name'],
- 'type': TagTypeEnumFromJSON(json['type']),
- 'userId': json['userId'],
- };
-}
-
-export function TagResponseDtoToJSON(value?: TagResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'id': value.id,
- 'name': value.name,
- 'type': TagTypeEnumToJSON(value.type),
- 'userId': value.userId,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/TagTypeEnum.ts b/open-api/typescript-sdk/fetch-client/models/TagTypeEnum.ts
deleted file mode 100644
index e2677cb88b..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/TagTypeEnum.ts
+++ /dev/null
@@ -1,39 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-/**
- *
- * @export
- */
-export const TagTypeEnum = {
- Object: 'OBJECT',
- Face: 'FACE',
- Custom: 'CUSTOM'
-} as const;
-export type TagTypeEnum = typeof TagTypeEnum[keyof typeof TagTypeEnum];
-
-
-export function TagTypeEnumFromJSON(json: any): TagTypeEnum {
- return TagTypeEnumFromJSONTyped(json, false);
-}
-
-export function TagTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): TagTypeEnum {
- return json as TagTypeEnum;
-}
-
-export function TagTypeEnumToJSON(value?: TagTypeEnum | null): any {
- return value as any;
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/ThumbnailFormat.ts b/open-api/typescript-sdk/fetch-client/models/ThumbnailFormat.ts
deleted file mode 100644
index 653f0f6a97..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/ThumbnailFormat.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-/**
- *
- * @export
- */
-export const ThumbnailFormat = {
- Jpeg: 'JPEG',
- Webp: 'WEBP'
-} as const;
-export type ThumbnailFormat = typeof ThumbnailFormat[keyof typeof ThumbnailFormat];
-
-
-export function ThumbnailFormatFromJSON(json: any): ThumbnailFormat {
- return ThumbnailFormatFromJSONTyped(json, false);
-}
-
-export function ThumbnailFormatFromJSONTyped(json: any, ignoreDiscriminator: boolean): ThumbnailFormat {
- return json as ThumbnailFormat;
-}
-
-export function ThumbnailFormatToJSON(value?: ThumbnailFormat | null): any {
- return value as any;
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/TimeBucketResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/TimeBucketResponseDto.ts
deleted file mode 100644
index 325691f47e..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/TimeBucketResponseDto.ts
+++ /dev/null
@@ -1,75 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface TimeBucketResponseDto
- */
-export interface TimeBucketResponseDto {
- /**
- *
- * @type {number}
- * @memberof TimeBucketResponseDto
- */
- count: number;
- /**
- *
- * @type {string}
- * @memberof TimeBucketResponseDto
- */
- timeBucket: string;
-}
-
-/**
- * Check if a given object implements the TimeBucketResponseDto interface.
- */
-export function instanceOfTimeBucketResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "count" in value;
- isInstance = isInstance && "timeBucket" in value;
-
- return isInstance;
-}
-
-export function TimeBucketResponseDtoFromJSON(json: any): TimeBucketResponseDto {
- return TimeBucketResponseDtoFromJSONTyped(json, false);
-}
-
-export function TimeBucketResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimeBucketResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'count': json['count'],
- 'timeBucket': json['timeBucket'],
- };
-}
-
-export function TimeBucketResponseDtoToJSON(value?: TimeBucketResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'count': value.count,
- 'timeBucket': value.timeBucket,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/TimeBucketSize.ts b/open-api/typescript-sdk/fetch-client/models/TimeBucketSize.ts
deleted file mode 100644
index d21da0cf1b..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/TimeBucketSize.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-/**
- *
- * @export
- */
-export const TimeBucketSize = {
- Day: 'DAY',
- Month: 'MONTH'
-} as const;
-export type TimeBucketSize = typeof TimeBucketSize[keyof typeof TimeBucketSize];
-
-
-export function TimeBucketSizeFromJSON(json: any): TimeBucketSize {
- return TimeBucketSizeFromJSONTyped(json, false);
-}
-
-export function TimeBucketSizeFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimeBucketSize {
- return json as TimeBucketSize;
-}
-
-export function TimeBucketSizeToJSON(value?: TimeBucketSize | null): any {
- return value as any;
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/ToneMapping.ts b/open-api/typescript-sdk/fetch-client/models/ToneMapping.ts
deleted file mode 100644
index 48a42cd328..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/ToneMapping.ts
+++ /dev/null
@@ -1,40 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-/**
- *
- * @export
- */
-export const ToneMapping = {
- Hable: 'hable',
- Mobius: 'mobius',
- Reinhard: 'reinhard',
- Disabled: 'disabled'
-} as const;
-export type ToneMapping = typeof ToneMapping[keyof typeof ToneMapping];
-
-
-export function ToneMappingFromJSON(json: any): ToneMapping {
- return ToneMappingFromJSONTyped(json, false);
-}
-
-export function ToneMappingFromJSONTyped(json: any, ignoreDiscriminator: boolean): ToneMapping {
- return json as ToneMapping;
-}
-
-export function ToneMappingToJSON(value?: ToneMapping | null): any {
- return value as any;
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/TranscodeHWAccel.ts b/open-api/typescript-sdk/fetch-client/models/TranscodeHWAccel.ts
deleted file mode 100644
index 7de80988da..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/TranscodeHWAccel.ts
+++ /dev/null
@@ -1,41 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-/**
- *
- * @export
- */
-export const TranscodeHWAccel = {
- Nvenc: 'nvenc',
- Qsv: 'qsv',
- Vaapi: 'vaapi',
- Rkmpp: 'rkmpp',
- Disabled: 'disabled'
-} as const;
-export type TranscodeHWAccel = typeof TranscodeHWAccel[keyof typeof TranscodeHWAccel];
-
-
-export function TranscodeHWAccelFromJSON(json: any): TranscodeHWAccel {
- return TranscodeHWAccelFromJSONTyped(json, false);
-}
-
-export function TranscodeHWAccelFromJSONTyped(json: any, ignoreDiscriminator: boolean): TranscodeHWAccel {
- return json as TranscodeHWAccel;
-}
-
-export function TranscodeHWAccelToJSON(value?: TranscodeHWAccel | null): any {
- return value as any;
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/TranscodePolicy.ts b/open-api/typescript-sdk/fetch-client/models/TranscodePolicy.ts
deleted file mode 100644
index 96afdbd608..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/TranscodePolicy.ts
+++ /dev/null
@@ -1,41 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-/**
- *
- * @export
- */
-export const TranscodePolicy = {
- All: 'all',
- Optimal: 'optimal',
- Bitrate: 'bitrate',
- Required: 'required',
- Disabled: 'disabled'
-} as const;
-export type TranscodePolicy = typeof TranscodePolicy[keyof typeof TranscodePolicy];
-
-
-export function TranscodePolicyFromJSON(json: any): TranscodePolicy {
- return TranscodePolicyFromJSONTyped(json, false);
-}
-
-export function TranscodePolicyFromJSONTyped(json: any, ignoreDiscriminator: boolean): TranscodePolicy {
- return json as TranscodePolicy;
-}
-
-export function TranscodePolicyToJSON(value?: TranscodePolicy | null): any {
- return value as any;
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/UpdateAlbumDto.ts b/open-api/typescript-sdk/fetch-client/models/UpdateAlbumDto.ts
deleted file mode 100644
index d6fe84172b..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/UpdateAlbumDto.ts
+++ /dev/null
@@ -1,89 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface UpdateAlbumDto
- */
-export interface UpdateAlbumDto {
- /**
- *
- * @type {string}
- * @memberof UpdateAlbumDto
- */
- albumName?: string;
- /**
- *
- * @type {string}
- * @memberof UpdateAlbumDto
- */
- albumThumbnailAssetId?: string;
- /**
- *
- * @type {string}
- * @memberof UpdateAlbumDto
- */
- description?: string;
- /**
- *
- * @type {boolean}
- * @memberof UpdateAlbumDto
- */
- isActivityEnabled?: boolean;
-}
-
-/**
- * Check if a given object implements the UpdateAlbumDto interface.
- */
-export function instanceOfUpdateAlbumDto(value: object): boolean {
- let isInstance = true;
-
- return isInstance;
-}
-
-export function UpdateAlbumDtoFromJSON(json: any): UpdateAlbumDto {
- return UpdateAlbumDtoFromJSONTyped(json, false);
-}
-
-export function UpdateAlbumDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAlbumDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'albumName': !exists(json, 'albumName') ? undefined : json['albumName'],
- 'albumThumbnailAssetId': !exists(json, 'albumThumbnailAssetId') ? undefined : json['albumThumbnailAssetId'],
- 'description': !exists(json, 'description') ? undefined : json['description'],
- 'isActivityEnabled': !exists(json, 'isActivityEnabled') ? undefined : json['isActivityEnabled'],
- };
-}
-
-export function UpdateAlbumDtoToJSON(value?: UpdateAlbumDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'albumName': value.albumName,
- 'albumThumbnailAssetId': value.albumThumbnailAssetId,
- 'description': value.description,
- 'isActivityEnabled': value.isActivityEnabled,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/UpdateAssetDto.ts b/open-api/typescript-sdk/fetch-client/models/UpdateAssetDto.ts
deleted file mode 100644
index de19f0acca..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/UpdateAssetDto.ts
+++ /dev/null
@@ -1,105 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface UpdateAssetDto
- */
-export interface UpdateAssetDto {
- /**
- *
- * @type {string}
- * @memberof UpdateAssetDto
- */
- dateTimeOriginal?: string;
- /**
- *
- * @type {string}
- * @memberof UpdateAssetDto
- */
- description?: string;
- /**
- *
- * @type {boolean}
- * @memberof UpdateAssetDto
- */
- isArchived?: boolean;
- /**
- *
- * @type {boolean}
- * @memberof UpdateAssetDto
- */
- isFavorite?: boolean;
- /**
- *
- * @type {number}
- * @memberof UpdateAssetDto
- */
- latitude?: number;
- /**
- *
- * @type {number}
- * @memberof UpdateAssetDto
- */
- longitude?: number;
-}
-
-/**
- * Check if a given object implements the UpdateAssetDto interface.
- */
-export function instanceOfUpdateAssetDto(value: object): boolean {
- let isInstance = true;
-
- return isInstance;
-}
-
-export function UpdateAssetDtoFromJSON(json: any): UpdateAssetDto {
- return UpdateAssetDtoFromJSONTyped(json, false);
-}
-
-export function UpdateAssetDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAssetDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'dateTimeOriginal': !exists(json, 'dateTimeOriginal') ? undefined : json['dateTimeOriginal'],
- 'description': !exists(json, 'description') ? undefined : json['description'],
- 'isArchived': !exists(json, 'isArchived') ? undefined : json['isArchived'],
- 'isFavorite': !exists(json, 'isFavorite') ? undefined : json['isFavorite'],
- 'latitude': !exists(json, 'latitude') ? undefined : json['latitude'],
- 'longitude': !exists(json, 'longitude') ? undefined : json['longitude'],
- };
-}
-
-export function UpdateAssetDtoToJSON(value?: UpdateAssetDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'dateTimeOriginal': value.dateTimeOriginal,
- 'description': value.description,
- 'isArchived': value.isArchived,
- 'isFavorite': value.isFavorite,
- 'latitude': value.latitude,
- 'longitude': value.longitude,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/UpdateLibraryDto.ts b/open-api/typescript-sdk/fetch-client/models/UpdateLibraryDto.ts
deleted file mode 100644
index 4a7c42f45d..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/UpdateLibraryDto.ts
+++ /dev/null
@@ -1,89 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface UpdateLibraryDto
- */
-export interface UpdateLibraryDto {
- /**
- *
- * @type {Array<string>}
- * @memberof UpdateLibraryDto
- */
- exclusionPatterns?: Array<string>;
- /**
- *
- * @type {Array<string>}
- * @memberof UpdateLibraryDto
- */
- importPaths?: Array<string>;
- /**
- *
- * @type {boolean}
- * @memberof UpdateLibraryDto
- */
- isVisible?: boolean;
- /**
- *
- * @type {string}
- * @memberof UpdateLibraryDto
- */
- name?: string;
-}
-
-/**
- * Check if a given object implements the UpdateLibraryDto interface.
- */
-export function instanceOfUpdateLibraryDto(value: object): boolean {
- let isInstance = true;
-
- return isInstance;
-}
-
-export function UpdateLibraryDtoFromJSON(json: any): UpdateLibraryDto {
- return UpdateLibraryDtoFromJSONTyped(json, false);
-}
-
-export function UpdateLibraryDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateLibraryDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'exclusionPatterns': !exists(json, 'exclusionPatterns') ? undefined : json['exclusionPatterns'],
- 'importPaths': !exists(json, 'importPaths') ? undefined : json['importPaths'],
- 'isVisible': !exists(json, 'isVisible') ? undefined : json['isVisible'],
- 'name': !exists(json, 'name') ? undefined : json['name'],
- };
-}
-
-export function UpdateLibraryDtoToJSON(value?: UpdateLibraryDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'exclusionPatterns': value.exclusionPatterns,
- 'importPaths': value.importPaths,
- 'isVisible': value.isVisible,
- 'name': value.name,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/UpdatePartnerDto.ts b/open-api/typescript-sdk/fetch-client/models/UpdatePartnerDto.ts
deleted file mode 100644
index 7f07462230..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/UpdatePartnerDto.ts
+++ /dev/null
@@ -1,66 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface UpdatePartnerDto
- */
-export interface UpdatePartnerDto {
- /**
- *
- * @type {boolean}
- * @memberof UpdatePartnerDto
- */
- inTimeline: boolean;
-}
-
-/**
- * Check if a given object implements the UpdatePartnerDto interface.
- */
-export function instanceOfUpdatePartnerDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "inTimeline" in value;
-
- return isInstance;
-}
-
-export function UpdatePartnerDtoFromJSON(json: any): UpdatePartnerDto {
- return UpdatePartnerDtoFromJSONTyped(json, false);
-}
-
-export function UpdatePartnerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdatePartnerDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'inTimeline': json['inTimeline'],
- };
-}
-
-export function UpdatePartnerDtoToJSON(value?: UpdatePartnerDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'inTimeline': value.inTimeline,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/UpdateStackParentDto.ts b/open-api/typescript-sdk/fetch-client/models/UpdateStackParentDto.ts
deleted file mode 100644
index 930d6f4ad6..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/UpdateStackParentDto.ts
+++ /dev/null
@@ -1,75 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface UpdateStackParentDto
- */
-export interface UpdateStackParentDto {
- /**
- *
- * @type {string}
- * @memberof UpdateStackParentDto
- */
- newParentId: string;
- /**
- *
- * @type {string}
- * @memberof UpdateStackParentDto
- */
- oldParentId: string;
-}
-
-/**
- * Check if a given object implements the UpdateStackParentDto interface.
- */
-export function instanceOfUpdateStackParentDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "newParentId" in value;
- isInstance = isInstance && "oldParentId" in value;
-
- return isInstance;
-}
-
-export function UpdateStackParentDtoFromJSON(json: any): UpdateStackParentDto {
- return UpdateStackParentDtoFromJSONTyped(json, false);
-}
-
-export function UpdateStackParentDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateStackParentDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'newParentId': json['newParentId'],
- 'oldParentId': json['oldParentId'],
- };
-}
-
-export function UpdateStackParentDtoToJSON(value?: UpdateStackParentDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'newParentId': value.newParentId,
- 'oldParentId': value.oldParentId,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/UpdateTagDto.ts b/open-api/typescript-sdk/fetch-client/models/UpdateTagDto.ts
deleted file mode 100644
index dcc606048c..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/UpdateTagDto.ts
+++ /dev/null
@@ -1,65 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface UpdateTagDto
- */
-export interface UpdateTagDto {
- /**
- *
- * @type {string}
- * @memberof UpdateTagDto
- */
- name?: string;
-}
-
-/**
- * Check if a given object implements the UpdateTagDto interface.
- */
-export function instanceOfUpdateTagDto(value: object): boolean {
- let isInstance = true;
-
- return isInstance;
-}
-
-export function UpdateTagDtoFromJSON(json: any): UpdateTagDto {
- return UpdateTagDtoFromJSONTyped(json, false);
-}
-
-export function UpdateTagDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateTagDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'name': !exists(json, 'name') ? undefined : json['name'],
- };
-}
-
-export function UpdateTagDtoToJSON(value?: UpdateTagDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'name': value.name,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/UpdateUserDto.ts b/open-api/typescript-sdk/fetch-client/models/UpdateUserDto.ts
deleted file mode 100644
index 8b6bc2fa97..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/UpdateUserDto.ts
+++ /dev/null
@@ -1,153 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-import type { UserAvatarColor } from './UserAvatarColor';
-import {
- UserAvatarColorFromJSON,
- UserAvatarColorFromJSONTyped,
- UserAvatarColorToJSON,
-} from './UserAvatarColor';
-
-/**
- *
- * @export
- * @interface UpdateUserDto
- */
-export interface UpdateUserDto {
- /**
- *
- * @type {UserAvatarColor}
- * @memberof UpdateUserDto
- */
- avatarColor?: UserAvatarColor;
- /**
- *
- * @type {string}
- * @memberof UpdateUserDto
- */
- email?: string;
- /**
- *
- * @type {string}
- * @memberof UpdateUserDto
- */
- externalPath?: string;
- /**
- *
- * @type {string}
- * @memberof UpdateUserDto
- */
- id: string;
- /**
- *
- * @type {boolean}
- * @memberof UpdateUserDto
- */
- isAdmin?: boolean;
- /**
- *
- * @type {boolean}
- * @memberof UpdateUserDto
- */
- memoriesEnabled?: boolean;
- /**
- *
- * @type {string}
- * @memberof UpdateUserDto
- */
- name?: string;
- /**
- *
- * @type {string}
- * @memberof UpdateUserDto
- */
- password?: string;
- /**
- *
- * @type {number}
- * @memberof UpdateUserDto
- */
- quotaSizeInBytes?: number | null;
- /**
- *
- * @type {boolean}
- * @memberof UpdateUserDto
- */
- shouldChangePassword?: boolean;
- /**
- *
- * @type {string}
- * @memberof UpdateUserDto
- */
- storageLabel?: string;
-}
-
-/**
- * Check if a given object implements the UpdateUserDto interface.
- */
-export function instanceOfUpdateUserDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "id" in value;
-
- return isInstance;
-}
-
-export function UpdateUserDtoFromJSON(json: any): UpdateUserDto {
- return UpdateUserDtoFromJSONTyped(json, false);
-}
-
-export function UpdateUserDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateUserDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'avatarColor': !exists(json, 'avatarColor') ? undefined : UserAvatarColorFromJSON(json['avatarColor']),
- 'email': !exists(json, 'email') ? undefined : json['email'],
- 'externalPath': !exists(json, 'externalPath') ? undefined : json['externalPath'],
- 'id': json['id'],
- 'isAdmin': !exists(json, 'isAdmin') ? undefined : json['isAdmin'],
- 'memoriesEnabled': !exists(json, 'memoriesEnabled') ? undefined : json['memoriesEnabled'],
- 'name': !exists(json, 'name') ? undefined : json['name'],
- 'password': !exists(json, 'password') ? undefined : json['password'],
- 'quotaSizeInBytes': !exists(json, 'quotaSizeInBytes') ? undefined : json['quotaSizeInBytes'],
- 'shouldChangePassword': !exists(json, 'shouldChangePassword') ? undefined : json['shouldChangePassword'],
- 'storageLabel': !exists(json, 'storageLabel') ? undefined : json['storageLabel'],
- };
-}
-
-export function UpdateUserDtoToJSON(value?: UpdateUserDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'avatarColor': UserAvatarColorToJSON(value.avatarColor),
- 'email': value.email,
- 'externalPath': value.externalPath,
- 'id': value.id,
- 'isAdmin': value.isAdmin,
- 'memoriesEnabled': value.memoriesEnabled,
- 'name': value.name,
- 'password': value.password,
- 'quotaSizeInBytes': value.quotaSizeInBytes,
- 'shouldChangePassword': value.shouldChangePassword,
- 'storageLabel': value.storageLabel,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/UsageByUserDto.ts b/open-api/typescript-sdk/fetch-client/models/UsageByUserDto.ts
deleted file mode 100644
index bb66d92654..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/UsageByUserDto.ts
+++ /dev/null
@@ -1,111 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface UsageByUserDto
- */
-export interface UsageByUserDto {
- /**
- *
- * @type {number}
- * @memberof UsageByUserDto
- */
- photos: number;
- /**
- *
- * @type {number}
- * @memberof UsageByUserDto
- */
- quotaSizeInBytes: number | null;
- /**
- *
- * @type {number}
- * @memberof UsageByUserDto
- */
- usage: number;
- /**
- *
- * @type {string}
- * @memberof UsageByUserDto
- */
- userId: string;
- /**
- *
- * @type {string}
- * @memberof UsageByUserDto
- */
- userName: string;
- /**
- *
- * @type {number}
- * @memberof UsageByUserDto
- */
- videos: number;
-}
-
-/**
- * Check if a given object implements the UsageByUserDto interface.
- */
-export function instanceOfUsageByUserDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "photos" in value;
- isInstance = isInstance && "quotaSizeInBytes" in value;
- isInstance = isInstance && "usage" in value;
- isInstance = isInstance && "userId" in value;
- isInstance = isInstance && "userName" in value;
- isInstance = isInstance && "videos" in value;
-
- return isInstance;
-}
-
-export function UsageByUserDtoFromJSON(json: any): UsageByUserDto {
- return UsageByUserDtoFromJSONTyped(json, false);
-}
-
-export function UsageByUserDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UsageByUserDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'photos': json['photos'],
- 'quotaSizeInBytes': json['quotaSizeInBytes'],
- 'usage': json['usage'],
- 'userId': json['userId'],
- 'userName': json['userName'],
- 'videos': json['videos'],
- };
-}
-
-export function UsageByUserDtoToJSON(value?: UsageByUserDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'photos': value.photos,
- 'quotaSizeInBytes': value.quotaSizeInBytes,
- 'usage': value.usage,
- 'userId': value.userId,
- 'userName': value.userName,
- 'videos': value.videos,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/UserAvatarColor.ts b/open-api/typescript-sdk/fetch-client/models/UserAvatarColor.ts
deleted file mode 100644
index cf7632a3f3..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/UserAvatarColor.ts
+++ /dev/null
@@ -1,46 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-/**
- *
- * @export
- */
-export const UserAvatarColor = {
- Primary: 'primary',
- Pink: 'pink',
- Red: 'red',
- Yellow: 'yellow',
- Blue: 'blue',
- Green: 'green',
- Purple: 'purple',
- Orange: 'orange',
- Gray: 'gray',
- Amber: 'amber'
-} as const;
-export type UserAvatarColor = typeof UserAvatarColor[keyof typeof UserAvatarColor];
-
-
-export function UserAvatarColorFromJSON(json: any): UserAvatarColor {
- return UserAvatarColorFromJSONTyped(json, false);
-}
-
-export function UserAvatarColorFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserAvatarColor {
- return json as UserAvatarColor;
-}
-
-export function UserAvatarColorToJSON(value?: UserAvatarColor | null): any {
- return value as any;
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/UserDto.ts b/open-api/typescript-sdk/fetch-client/models/UserDto.ts
deleted file mode 100644
index 40d35810a8..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/UserDto.ts
+++ /dev/null
@@ -1,109 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-import type { UserAvatarColor } from './UserAvatarColor';
-import {
- UserAvatarColorFromJSON,
- UserAvatarColorFromJSONTyped,
- UserAvatarColorToJSON,
-} from './UserAvatarColor';
-
-/**
- *
- * @export
- * @interface UserDto
- */
-export interface UserDto {
- /**
- *
- * @type {UserAvatarColor}
- * @memberof UserDto
- */
- avatarColor: UserAvatarColor;
- /**
- *
- * @type {string}
- * @memberof UserDto
- */
- email: string;
- /**
- *
- * @type {string}
- * @memberof UserDto
- */
- id: string;
- /**
- *
- * @type {string}
- * @memberof UserDto
- */
- name: string;
- /**
- *
- * @type {string}
- * @memberof UserDto
- */
- profileImagePath: string;
-}
-
-/**
- * Check if a given object implements the UserDto interface.
- */
-export function instanceOfUserDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "avatarColor" in value;
- isInstance = isInstance && "email" in value;
- isInstance = isInstance && "id" in value;
- isInstance = isInstance && "name" in value;
- isInstance = isInstance && "profileImagePath" in value;
-
- return isInstance;
-}
-
-export function UserDtoFromJSON(json: any): UserDto {
- return UserDtoFromJSONTyped(json, false);
-}
-
-export function UserDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'avatarColor': UserAvatarColorFromJSON(json['avatarColor']),
- 'email': json['email'],
- 'id': json['id'],
- 'name': json['name'],
- 'profileImagePath': json['profileImagePath'],
- };
-}
-
-export function UserDtoToJSON(value?: UserDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'avatarColor': UserAvatarColorToJSON(value.avatarColor),
- 'email': value.email,
- 'id': value.id,
- 'name': value.name,
- 'profileImagePath': value.profileImagePath,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/UserResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/UserResponseDto.ts
deleted file mode 100644
index b606a3052c..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/UserResponseDto.ts
+++ /dev/null
@@ -1,207 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-import type { UserAvatarColor } from './UserAvatarColor';
-import {
- UserAvatarColorFromJSON,
- UserAvatarColorFromJSONTyped,
- UserAvatarColorToJSON,
-} from './UserAvatarColor';
-
-/**
- *
- * @export
- * @interface UserResponseDto
- */
-export interface UserResponseDto {
- /**
- *
- * @type {UserAvatarColor}
- * @memberof UserResponseDto
- */
- avatarColor: UserAvatarColor;
- /**
- *
- * @type {Date}
- * @memberof UserResponseDto
- */
- createdAt: Date;
- /**
- *
- * @type {Date}
- * @memberof UserResponseDto
- */
- deletedAt: Date | null;
- /**
- *
- * @type {string}
- * @memberof UserResponseDto
- */
- email: string;
- /**
- *
- * @type {string}
- * @memberof UserResponseDto
- */
- externalPath: string | null;
- /**
- *
- * @type {string}
- * @memberof UserResponseDto
- */
- id: string;
- /**
- *
- * @type {boolean}
- * @memberof UserResponseDto
- */
- isAdmin: boolean;
- /**
- *
- * @type {boolean}
- * @memberof UserResponseDto
- */
- memoriesEnabled?: boolean;
- /**
- *
- * @type {string}
- * @memberof UserResponseDto
- */
- name: string;
- /**
- *
- * @type {string}
- * @memberof UserResponseDto
- */
- oauthId: string;
- /**
- *
- * @type {string}
- * @memberof UserResponseDto
- */
- profileImagePath: string;
- /**
- *
- * @type {number}
- * @memberof UserResponseDto
- */
- quotaSizeInBytes: number | null;
- /**
- *
- * @type {number}
- * @memberof UserResponseDto
- */
- quotaUsageInBytes: number | null;
- /**
- *
- * @type {boolean}
- * @memberof UserResponseDto
- */
- shouldChangePassword: boolean;
- /**
- *
- * @type {string}
- * @memberof UserResponseDto
- */
- storageLabel: string | null;
- /**
- *
- * @type {Date}
- * @memberof UserResponseDto
- */
- updatedAt: Date;
-}
-
-/**
- * Check if a given object implements the UserResponseDto interface.
- */
-export function instanceOfUserResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "avatarColor" in value;
- isInstance = isInstance && "createdAt" in value;
- isInstance = isInstance && "deletedAt" in value;
- isInstance = isInstance && "email" in value;
- isInstance = isInstance && "externalPath" in value;
- isInstance = isInstance && "id" in value;
- isInstance = isInstance && "isAdmin" in value;
- isInstance = isInstance && "name" in value;
- isInstance = isInstance && "oauthId" in value;
- isInstance = isInstance && "profileImagePath" in value;
- isInstance = isInstance && "quotaSizeInBytes" in value;
- isInstance = isInstance && "quotaUsageInBytes" in value;
- isInstance = isInstance && "shouldChangePassword" in value;
- isInstance = isInstance && "storageLabel" in value;
- isInstance = isInstance && "updatedAt" in value;
-
- return isInstance;
-}
-
-export function UserResponseDtoFromJSON(json: any): UserResponseDto {
- return UserResponseDtoFromJSONTyped(json, false);
-}
-
-export function UserResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'avatarColor': UserAvatarColorFromJSON(json['avatarColor']),
- 'createdAt': (new Date(json['createdAt'])),
- 'deletedAt': (json['deletedAt'] === null ? null : new Date(json['deletedAt'])),
- 'email': json['email'],
- 'externalPath': json['externalPath'],
- 'id': json['id'],
- 'isAdmin': json['isAdmin'],
- 'memoriesEnabled': !exists(json, 'memoriesEnabled') ? undefined : json['memoriesEnabled'],
- 'name': json['name'],
- 'oauthId': json['oauthId'],
- 'profileImagePath': json['profileImagePath'],
- 'quotaSizeInBytes': json['quotaSizeInBytes'],
- 'quotaUsageInBytes': json['quotaUsageInBytes'],
- 'shouldChangePassword': json['shouldChangePassword'],
- 'storageLabel': json['storageLabel'],
- 'updatedAt': (new Date(json['updatedAt'])),
- };
-}
-
-export function UserResponseDtoToJSON(value?: UserResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'avatarColor': UserAvatarColorToJSON(value.avatarColor),
- 'createdAt': (value.createdAt.toISOString()),
- 'deletedAt': (value.deletedAt === null ? null : value.deletedAt.toISOString()),
- 'email': value.email,
- 'externalPath': value.externalPath,
- 'id': value.id,
- 'isAdmin': value.isAdmin,
- 'memoriesEnabled': value.memoriesEnabled,
- 'name': value.name,
- 'oauthId': value.oauthId,
- 'profileImagePath': value.profileImagePath,
- 'quotaSizeInBytes': value.quotaSizeInBytes,
- 'quotaUsageInBytes': value.quotaUsageInBytes,
- 'shouldChangePassword': value.shouldChangePassword,
- 'storageLabel': value.storageLabel,
- 'updatedAt': (value.updatedAt.toISOString()),
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/ValidateAccessTokenResponseDto.ts b/open-api/typescript-sdk/fetch-client/models/ValidateAccessTokenResponseDto.ts
deleted file mode 100644
index 028be01f2c..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/ValidateAccessTokenResponseDto.ts
+++ /dev/null
@@ -1,66 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-import { exists, mapValues } from '../runtime';
-/**
- *
- * @export
- * @interface ValidateAccessTokenResponseDto
- */
-export interface ValidateAccessTokenResponseDto {
- /**
- *
- * @type {boolean}
- * @memberof ValidateAccessTokenResponseDto
- */
- authStatus: boolean;
-}
-
-/**
- * Check if a given object implements the ValidateAccessTokenResponseDto interface.
- */
-export function instanceOfValidateAccessTokenResponseDto(value: object): boolean {
- let isInstance = true;
- isInstance = isInstance && "authStatus" in value;
-
- return isInstance;
-}
-
-export function ValidateAccessTokenResponseDtoFromJSON(json: any): ValidateAccessTokenResponseDto {
- return ValidateAccessTokenResponseDtoFromJSONTyped(json, false);
-}
-
-export function ValidateAccessTokenResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidateAccessTokenResponseDto {
- if ((json === undefined) || (json === null)) {
- return json;
- }
- return {
-
- 'authStatus': json['authStatus'],
- };
-}
-
-export function ValidateAccessTokenResponseDtoToJSON(value?: ValidateAccessTokenResponseDto | null): any {
- if (value === undefined) {
- return undefined;
- }
- if (value === null) {
- return null;
- }
- return {
-
- 'authStatus': value.authStatus,
- };
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/VideoCodec.ts b/open-api/typescript-sdk/fetch-client/models/VideoCodec.ts
deleted file mode 100644
index 820491caa0..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/VideoCodec.ts
+++ /dev/null
@@ -1,39 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-/**
- *
- * @export
- */
-export const VideoCodec = {
- H264: 'h264',
- Hevc: 'hevc',
- Vp9: 'vp9'
-} as const;
-export type VideoCodec = typeof VideoCodec[keyof typeof VideoCodec];
-
-
-export function VideoCodecFromJSON(json: any): VideoCodec {
- return VideoCodecFromJSONTyped(json, false);
-}
-
-export function VideoCodecFromJSONTyped(json: any, ignoreDiscriminator: boolean): VideoCodec {
- return json as VideoCodec;
-}
-
-export function VideoCodecToJSON(value?: VideoCodec | null): any {
- return value as any;
-}
-
diff --git a/open-api/typescript-sdk/fetch-client/models/index.ts b/open-api/typescript-sdk/fetch-client/models/index.ts
deleted file mode 100644
index 19e4f387fe..0000000000
--- a/open-api/typescript-sdk/fetch-client/models/index.ts
+++ /dev/null
@@ -1,159 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-export * from './APIKeyCreateDto';
-export * from './APIKeyCreateResponseDto';
-export * from './APIKeyResponseDto';
-export * from './APIKeyUpdateDto';
-export * from './ActivityCreateDto';
-export * from './ActivityResponseDto';
-export * from './ActivityStatisticsResponseDto';
-export * from './AddUsersDto';
-export * from './AlbumCountResponseDto';
-export * from './AlbumResponseDto';
-export * from './AllJobStatusResponseDto';
-export * from './AssetBulkDeleteDto';
-export * from './AssetBulkUpdateDto';
-export * from './AssetBulkUploadCheckDto';
-export * from './AssetBulkUploadCheckItem';
-export * from './AssetBulkUploadCheckResponseDto';
-export * from './AssetBulkUploadCheckResult';
-export * from './AssetFaceResponseDto';
-export * from './AssetFaceUpdateDto';
-export * from './AssetFaceUpdateItem';
-export * from './AssetFaceWithoutPersonResponseDto';
-export * from './AssetFileUploadResponseDto';
-export * from './AssetIdsDto';
-export * from './AssetIdsResponseDto';
-export * from './AssetJobName';
-export * from './AssetJobsDto';
-export * from './AssetOrder';
-export * from './AssetResponseDto';
-export * from './AssetStatsResponseDto';
-export * from './AssetTypeEnum';
-export * from './AudioCodec';
-export * from './AuditDeletesResponseDto';
-export * from './AuthDeviceResponseDto';
-export * from './BulkIdResponseDto';
-export * from './BulkIdsDto';
-export * from './CLIPConfig';
-export * from './CLIPMode';
-export * from './CQMode';
-export * from './ChangePasswordDto';
-export * from './CheckExistingAssetsDto';
-export * from './CheckExistingAssetsResponseDto';
-export * from './Colorspace';
-export * from './CreateAlbumDto';
-export * from './CreateLibraryDto';
-export * from './CreateProfileImageResponseDto';
-export * from './CreateTagDto';
-export * from './CreateUserDto';
-export * from './CuratedLocationsResponseDto';
-export * from './CuratedObjectsResponseDto';
-export * from './DownloadArchiveInfo';
-export * from './DownloadInfoDto';
-export * from './DownloadResponseDto';
-export * from './EntityType';
-export * from './ExifResponseDto';
-export * from './FaceDto';
-export * from './FileChecksumDto';
-export * from './FileChecksumResponseDto';
-export * from './FileReportDto';
-export * from './FileReportFixDto';
-export * from './FileReportItemDto';
-export * from './JobCommand';
-export * from './JobCommandDto';
-export * from './JobCountsDto';
-export * from './JobName';
-export * from './JobSettingsDto';
-export * from './JobStatusDto';
-export * from './LibraryResponseDto';
-export * from './LibraryStatsResponseDto';
-export * from './LibraryType';
-export * from './LogLevel';
-export * from './LoginCredentialDto';
-export * from './LoginResponseDto';
-export * from './LogoutResponseDto';
-export * from './MapMarkerResponseDto';
-export * from './MapTheme';
-export * from './MemoryLaneResponseDto';
-export * from './MergePersonDto';
-export * from './ModelType';
-export * from './OAuthAuthorizeResponseDto';
-export * from './OAuthCallbackDto';
-export * from './OAuthConfigDto';
-export * from './PartnerResponseDto';
-export * from './PathEntityType';
-export * from './PathType';
-export * from './PeopleResponseDto';
-export * from './PeopleUpdateDto';
-export * from './PeopleUpdateItem';
-export * from './PersonResponseDto';
-export * from './PersonStatisticsResponseDto';
-export * from './PersonUpdateDto';
-export * from './PersonWithFacesResponseDto';
-export * from './QueueStatusDto';
-export * from './ReactionLevel';
-export * from './ReactionType';
-export * from './RecognitionConfig';
-export * from './ScanLibraryDto';
-export * from './SearchAlbumResponseDto';
-export * from './SearchAssetResponseDto';
-export * from './SearchExploreItem';
-export * from './SearchExploreResponseDto';
-export * from './SearchFacetCountResponseDto';
-export * from './SearchFacetResponseDto';
-export * from './SearchResponseDto';
-export * from './ServerConfigDto';
-export * from './ServerFeaturesDto';
-export * from './ServerInfoResponseDto';
-export * from './ServerMediaTypesResponseDto';
-export * from './ServerPingResponse';
-export * from './ServerStatsResponseDto';
-export * from './ServerThemeDto';
-export * from './ServerVersionResponseDto';
-export * from './SharedLinkCreateDto';
-export * from './SharedLinkEditDto';
-export * from './SharedLinkResponseDto';
-export * from './SharedLinkType';
-export * from './SignUpDto';
-export * from './SmartInfoResponseDto';
-export * from './SystemConfigDto';
-export * from './SystemConfigFFmpegDto';
-export * from './SystemConfigJobDto';
-export * from './SystemConfigLibraryDto';
-export * from './SystemConfigLibraryScanDto';
-export * from './SystemConfigLibraryWatchDto';
-export * from './SystemConfigLoggingDto';
-export * from './SystemConfigMachineLearningDto';
-export * from './SystemConfigMapDto';
-export * from './SystemConfigNewVersionCheckDto';
-export * from './SystemConfigOAuthDto';
-export * from './SystemConfigPasswordLoginDto';
-export * from './SystemConfigReverseGeocodingDto';
-export * from './SystemConfigServerDto';
-export * from './SystemConfigStorageTemplateDto';
-export * from './SystemConfigTemplateStorageOptionDto';
-export * from './SystemConfigThemeDto';
-export * from './SystemConfigThumbnailDto';
-export * from './SystemConfigTrashDto';
-export * from './TagResponseDto';
-export * from './TagTypeEnum';
-export * from './ThumbnailFormat';
-export * from './TimeBucketResponseDto';
-export * from './TimeBucketSize';
-export * from './ToneMapping';
-export * from './TranscodeHWAccel';
-export * from './TranscodePolicy';
-export * from './UpdateAlbumDto';
-export * from './UpdateAssetDto';
-export * from './UpdateLibraryDto';
-export * from './UpdatePartnerDto';
-export * from './UpdateStackParentDto';
-export * from './UpdateTagDto';
-export * from './UpdateUserDto';
-export * from './UsageByUserDto';
-export * from './UserAvatarColor';
-export * from './UserDto';
-export * from './UserResponseDto';
-export * from './ValidateAccessTokenResponseDto';
-export * from './VideoCodec';
diff --git a/open-api/typescript-sdk/fetch-client/runtime.ts b/open-api/typescript-sdk/fetch-client/runtime.ts
deleted file mode 100644
index 0661620add..0000000000
--- a/open-api/typescript-sdk/fetch-client/runtime.ts
+++ /dev/null
@@ -1,431 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
- * Immich
- * Immich API
- *
- * The version of the OpenAPI document: 1.94.1
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-export const BASE_PATH = "/api".replace(/\/+$/, "");
-
-export interface ConfigurationParameters {
- basePath?: string; // override base path
- fetchApi?: FetchAPI; // override for fetch implementation
- middleware?: Middleware[]; // middleware to apply before/after fetch requests
- queryParamsStringify?: (params: HTTPQuery) => string; // stringify function for query strings
- username?: string; // parameter for basic security
- password?: string; // parameter for basic security
- apiKey?: string | ((name: string) => string); // parameter for apiKey security
- accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>); // parameter for oauth2 security
- headers?: HTTPHeaders; //header params we want to use on every request
- credentials?: RequestCredentials; //value for the credentials param we want to use on each request
-}
-
-export class Configuration {
- constructor(private configuration: ConfigurationParameters = {}) {}
-
- set config(configuration: Configuration) {
- this.configuration = configuration;
- }
-
- get basePath(): string {
- return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH;
- }
-
- get fetchApi(): FetchAPI | undefined {
- return this.configuration.fetchApi;
- }
-
- get middleware(): Middleware[] {
- return this.configuration.middleware || [];
- }
-
- get queryParamsStringify(): (params: HTTPQuery) => string {
- return this.configuration.queryParamsStringify || querystring;
- }
-
- get username(): string | undefined {
- return this.configuration.username;
- }
-
- get password(): string | undefined {
- return this.configuration.password;
- }
-
- get apiKey(): ((name: string) => string) | undefined {
- const apiKey = this.configuration.apiKey;
- if (apiKey) {
- return typeof apiKey === 'function' ? apiKey : () => apiKey;
- }
- return undefined;
- }
-
- get accessToken(): ((name?: string, scopes?: string[]) => string | Promise<string>) | undefined {
- const accessToken = this.configuration.accessToken;
- if (accessToken) {
- return typeof accessToken === 'function' ? accessToken : async () => accessToken;
- }
- return undefined;
- }
-
- get headers(): HTTPHeaders | undefined {
- return this.configuration.headers;
- }
-
- get credentials(): RequestCredentials | undefined {
- return this.configuration.credentials;
- }
-}
-
-export const DefaultConfig = new Configuration();
-
-/**
- * This is the base class for all generated API classes.
- */
-export class BaseAPI {
-
- private static readonly jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i');
- private middleware: Middleware[];
-
- constructor(protected configuration = DefaultConfig) {
- this.middleware = configuration.middleware;
- }
-
- withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]) {
- const next = this.clone<T>();
- next.middleware = next.middleware.concat(...middlewares);
- return next;
- }
-
- withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware['pre']>) {
- const middlewares = preMiddlewares.map((pre) => ({ pre }));
- return this.withMiddleware<T>(...middlewares);
- }
-
- withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware['post']>) {
- const middlewares = postMiddlewares.map((post) => ({ post }));
- return this.withMiddleware<T>(...middlewares);
- }
-
- /**
- * Check if the given MIME is a JSON MIME.
- * JSON MIME examples:
- * application/json
- * application/json; charset=UTF8
- * APPLICATION/JSON
- * application/vnd.company+json
- * @param mime - MIME (Multipurpose Internet Mail Extensions)
- * @return True if the given MIME is JSON, false otherwise.
- */
- protected isJsonMime(mime: string | null | undefined): boolean {
- if (!mime) {
- return false;
- }
- return BaseAPI.jsonRegex.test(mime);
- }
-
- protected async request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise<Response> {
- const { url, init } = await this.createFetchParams(context, initOverrides);
- const response = await this.fetchApi(url, init);
- if (response && (response.status >= 200 && response.status < 300)) {
- return response;
- }
- throw new ResponseError(response, 'Response returned an error code');
- }
-
- private async createFetchParams(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction) {
- let url = this.configuration.basePath + context.path;
- if (context.query !== undefined && Object.keys(context.query).length !== 0) {
- // only add the querystring to the URL if there are query parameters.
- // this is done to avoid urls ending with a "?" character which buggy webservers
- // do not handle correctly sometimes.
- url += '?' + this.configuration.queryParamsStringify(context.query);
- }
-
- const headers = Object.assign({}, this.configuration.headers, context.headers);
- Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {});
-
- const initOverrideFn =
- typeof initOverrides === "function"
- ? initOverrides
- : async () => initOverrides;
-
- const initParams = {
- method: context.method,
- headers,
- body: context.body,
- credentials: this.configuration.credentials,
- };
-
- const overriddenInit: RequestInit = {
- ...initParams,
- ...(await initOverrideFn({
- init: initParams,
- context,
- }))
- };
-
- let body: any;
- if (isFormData(overriddenInit.body)
- || (overriddenInit.body instanceof URLSearchParams)
- || isBlob(overriddenInit.body)) {
- body = overriddenInit.body;
- } else if (this.isJsonMime(headers['Content-Type'])) {
- body = JSON.stringify(overriddenInit.body);
- } else {
- body = overriddenInit.body;
- }
-
- const init: RequestInit = {
- ...overriddenInit,
- body
- };
-
- return { url, init };
- }
-
- private fetchApi = async (url: string, init: RequestInit) => {
- let fetchParams = { url, init };
- for (const middleware of this.middleware) {
- if (middleware.pre) {
- fetchParams = await middleware.pre({
- fetch: this.fetchApi,
- ...fetchParams,
- }) || fetchParams;
- }
- }
- let response: Response | undefined = undefined;
- try {
- response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);
- } catch (e) {
- for (const middleware of this.middleware) {
- if (middleware.onError) {
- response = await middleware.onError({
- fetch: this.fetchApi,
- url: fetchParams.url,
- init: fetchParams.init,
- error: e,
- response: response ? response.clone() : undefined,
- }) || response;
- }
- }
- if (response === undefined) {
- if (e instanceof Error) {
- throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response');
- } else {
- throw e;
- }
- }
- }
- for (const middleware of this.middleware) {
- if (middleware.post) {
- response = await middleware.post({
- fetch: this.fetchApi,
- url: fetchParams.url,
- init: fetchParams.init,
- response: response.clone(),
- }) || response;
- }
- }
- return response;
- }
-
- /**
- * Create a shallow clone of `this` by constructing a new instance
- * and then shallow cloning data members.
- */
- private clone<T extends BaseAPI>(this: T): T {
- const constructor = this.constructor as any;
- const next = new constructor(this.configuration);
- next.middleware = this.middleware.slice();
- return next;
- }
-};
-
-function isBlob(value: any): value is Blob {
- return typeof Blob !== 'undefined' && value instanceof Blob;
-}
-
-function isFormData(value: any): value is FormData {
- return typeof FormData !== "undefined" && value instanceof FormData;
-}
-
-export class ResponseError extends Error {
- override name: "ResponseError" = "ResponseError";
- constructor(public response: Response, msg?: string) {
- super(msg);
- }
-}
-
-export class FetchError extends Error {
- override name: "FetchError" = "FetchError";
- constructor(public cause: Error, msg?: string) {
- super(msg);
- }
-}
-
-export class RequiredError extends Error {
- override name: "RequiredError" = "RequiredError";
- constructor(public field: string, msg?: string) {
- super(msg);
- }
-}
-
-export const COLLECTION_FORMATS = {
- csv: ",",
- ssv: " ",
- tsv: "\t",
- pipes: "|",
-};
-
-export type FetchAPI = WindowOrWorkerGlobalScope['fetch'];
-
-export type Json = any;
-export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD';
-export type HTTPHeaders = { [key: string]: string };
-export type HTTPQuery = { [key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery };
-export type HTTPBody = Json | FormData | URLSearchParams;
-export type HTTPRequestInit = { headers?: HTTPHeaders; method: HTTPMethod; credentials?: RequestCredentials; body?: HTTPBody };
-export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
-
-export type InitOverrideFunction = (requestContext: { init: HTTPRequestInit, context: RequestOpts }) => Promise<RequestInit>
-
-export interface FetchParams {
- url: string;
- init: RequestInit;
-}
-
-export interface RequestOpts {
- path: string;
- method: HTTPMethod;
- headers: HTTPHeaders;
- query?: HTTPQuery;
- body?: HTTPBody;
-}
-
-export function exists(json: any, key: string) {
- const value = json[key];
- return value !== null && value !== undefined;
-}
-
-export function querystring(params: HTTPQuery, prefix: string = ''): string {
- return Object.keys(params)
- .map(key => querystringSingleKey(key, params[key], prefix))
- .filter(part => part.length > 0)
- .join('&');
-}
-
-function querystringSingleKey(key: string, value: string | number | null | undefined | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery, keyPrefix: string = ''): string {
- const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);
- if (value instanceof Array) {
- const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue)))
- .join(`&${encodeURIComponent(fullKey)}=`);
- return `${encodeURIComponent(fullKey)}=${multiValue}`;
- }
- if (value instanceof Set) {
- const valueAsArray = Array.from(value);
- return querystringSingleKey(key, valueAsArray, keyPrefix);
- }
- if (value instanceof Date) {
- return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;
- }
- if (value instanceof Object) {
- return querystring(value as HTTPQuery, fullKey);
- }
- return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
-}
-
-export function mapValues(data: any, fn: (item: any) => any) {
- return Object.keys(data).reduce(
- (acc, key) => ({ ...acc, [key]: fn(data[key]) }),
- {}
- );
-}
-
-export function canConsumeForm(consumes: Consume[]): boolean {
- for (const consume of consumes) {
- if ('multipart/form-data' === consume.contentType) {
- return true;
- }
- }
- return false;
-}
-
-export interface Consume {
- contentType: string;
-}
-
-export interface RequestContext {
- fetch: FetchAPI;
- url: string;
- init: RequestInit;
-}
-
-export interface ResponseContext {
- fetch: FetchAPI;
- url: string;
- init: RequestInit;
- response: Response;
-}
-
-export interface ErrorContext {
- fetch: FetchAPI;
- url: string;
- init: RequestInit;
- error: unknown;
- response?: Response;
-}
-
-export interface Middleware {
- pre?(context: RequestContext): Promise<FetchParams | void>;
- post?(context: ResponseContext): Promise<Response | void>;
- onError?(context: ErrorContext): Promise<Response | void>;
-}
-
-export interface ApiResponse<T> {
- raw: Response;
- value(): Promise<T>;
-}
-
-export interface ResponseTransformer<T> {
- (json: any): T;
-}
-
-export class JSONApiResponse<T> {
- constructor(public raw: Response, private transformer: ResponseTransformer<T> = (jsonValue: any) => jsonValue) {}
-
- async value(): Promise<T> {
- return this.transformer(await this.raw.json());
- }
-}
-
-export class VoidApiResponse {
- constructor(public raw: Response) {}
-
- async value(): Promise<void> {
- return undefined;
- }
-}
-
-export class BlobApiResponse {
- constructor(public raw: Response) {}
-
- async value(): Promise<Blob> {
- return await this.raw.blob();
- };
-}
-
-export class TextApiResponse {
- constructor(public raw: Response) {}
-
- async value(): Promise<string> {
- return await this.raw.text();
- };
-}
diff --git a/open-api/typescript-sdk/package-lock.json b/open-api/typescript-sdk/package-lock.json
index dc9392cabf..dfac2e0679 100644
--- a/open-api/typescript-sdk/package-lock.json
+++ b/open-api/typescript-sdk/package-lock.json
@@ -10,6 +10,7 @@
"license": "MIT",
"devDependencies": {
"@types/node": "^20.11.0",
+ "oazapfts": "^5.1.4",
"typescript": "^5.3.3"
},
"peerDependencies": {
@@ -21,6 +22,62 @@
}
}
},
+ "node_modules/@apidevtools/json-schema-ref-parser": {
+ "version": "9.0.6",
+ "resolved": "https://registry.npmjs.org/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-9.0.6.tgz",
+ "integrity": "sha512-M3YgsLjI0lZxvrpeGVk9Ap032W6TPQkH6pRAZz81Ac3WUNF79VQooAFnp8umjvVzUmD93NkogxEwbSce7qMsUg==",
+ "dev": true,
+ "dependencies": {
+ "@jsdevtools/ono": "^7.1.3",
+ "call-me-maybe": "^1.0.1",
+ "js-yaml": "^3.13.1"
+ }
+ },
+ "node_modules/@apidevtools/openapi-schemas": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@apidevtools/openapi-schemas/-/openapi-schemas-2.1.0.tgz",
+ "integrity": "sha512-Zc1AlqrJlX3SlpupFGpiLi2EbteyP7fXmUOGup6/DnkRgjP9bgMM/ag+n91rsv0U1Gpz0H3VILA/o3bW7Ua6BQ==",
+ "dev": true,
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@apidevtools/swagger-methods": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/@apidevtools/swagger-methods/-/swagger-methods-3.0.2.tgz",
+ "integrity": "sha512-QAkD5kK2b1WfjDS/UQn/qQkbwF31uqRjPTrsCs5ZG9BQGAkjwvqGFjjPqAuzac/IYzpPtRzjCP1WrTuAIjMrXg==",
+ "dev": true
+ },
+ "node_modules/@apidevtools/swagger-parser": {
+ "version": "10.1.0",
+ "resolved": "https://registry.npmjs.org/@apidevtools/swagger-parser/-/swagger-parser-10.1.0.tgz",
+ "integrity": "sha512-9Kt7EuS/7WbMAUv2gSziqjvxwDbFSg3Xeyfuj5laUODX8o/k/CpsAKiQ8W7/R88eXFTMbJYg6+7uAmOWNKmwnw==",
+ "dev": true,
+ "dependencies": {
+ "@apidevtools/json-schema-ref-parser": "9.0.6",
+ "@apidevtools/openapi-schemas": "^2.1.0",
+ "@apidevtools/swagger-methods": "^3.0.2",
+ "@jsdevtools/ono": "^7.1.3",
+ "ajv": "^8.6.3",
+ "ajv-draft-04": "^1.0.0",
+ "call-me-maybe": "^1.0.1"
+ },
+ "peerDependencies": {
+ "openapi-types": ">=7"
+ }
+ },
+ "node_modules/@exodus/schemasafe": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/@exodus/schemasafe/-/schemasafe-1.3.0.tgz",
+ "integrity": "sha512-5Aap/GaRupgNx/feGBwLLTVv8OQFfv3pq2lPRzPg9R+IOBnDgghTGW7l7EuVXOvg5cc/xSAlRW8rBrjIC3Nvqw==",
+ "dev": true
+ },
+ "node_modules/@jsdevtools/ono": {
+ "version": "7.1.3",
+ "resolved": "https://registry.npmjs.org/@jsdevtools/ono/-/ono-7.1.3.tgz",
+ "integrity": "sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg==",
+ "dev": true
+ },
"node_modules/@types/node": {
"version": "20.11.16",
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.16.tgz",
@@ -30,6 +87,69 @@
"undici-types": "~5.26.4"
}
},
+ "node_modules/ajv": {
+ "version": "8.12.0",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz",
+ "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==",
+ "dev": true,
+ "dependencies": {
+ "fast-deep-equal": "^3.1.1",
+ "json-schema-traverse": "^1.0.0",
+ "require-from-string": "^2.0.2",
+ "uri-js": "^4.2.2"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/epoberezkin"
+ }
+ },
+ "node_modules/ajv-draft-04": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/ajv-draft-04/-/ajv-draft-04-1.0.0.tgz",
+ "integrity": "sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw==",
+ "dev": true,
+ "peerDependencies": {
+ "ajv": "^8.5.0"
+ },
+ "peerDependenciesMeta": {
+ "ajv": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/ansi-regex": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
+ "dev": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/ansi-styles": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
+ "dev": true,
+ "dependencies": {
+ "color-convert": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+ }
+ },
+ "node_modules/argparse": {
+ "version": "1.0.10",
+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",
+ "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",
+ "dev": true,
+ "dependencies": {
+ "sprintf-js": "~1.0.2"
+ }
+ },
"node_modules/asynckit": {
"version": "0.4.0",
"resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
@@ -49,6 +169,44 @@
"proxy-from-env": "^1.1.0"
}
},
+ "node_modules/call-me-maybe": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/call-me-maybe/-/call-me-maybe-1.0.2.tgz",
+ "integrity": "sha512-HpX65o1Hnr9HH25ojC1YGs7HCQLq0GCOibSaWER0eNpgJ/Z1MZv2mTc7+xh6WOPxbRVcmgbv4hGU+uSQ/2xFZQ==",
+ "dev": true
+ },
+ "node_modules/cliui": {
+ "version": "8.0.1",
+ "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",
+ "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==",
+ "dev": true,
+ "dependencies": {
+ "string-width": "^4.2.0",
+ "strip-ansi": "^6.0.1",
+ "wrap-ansi": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/color-convert": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+ "dev": true,
+ "dependencies": {
+ "color-name": "~1.1.4"
+ },
+ "engines": {
+ "node": ">=7.0.0"
+ }
+ },
+ "node_modules/color-name": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
+ "dev": true
+ },
"node_modules/combined-stream": {
"version": "1.0.8",
"resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
@@ -72,6 +230,52 @@
"node": ">=0.4.0"
}
},
+ "node_modules/emoji-regex": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
+ "dev": true
+ },
+ "node_modules/es6-promise": {
+ "version": "3.3.1",
+ "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-3.3.1.tgz",
+ "integrity": "sha512-SOp9Phqvqn7jtEUxPWdWfWoLmyt2VaJ6MpvP9Comy1MceMXqE6bxvaTu4iaxpYYPzhny28Lc+M87/c2cPK6lDg==",
+ "dev": true
+ },
+ "node_modules/escalade": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz",
+ "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==",
+ "dev": true,
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/esprima": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
+ "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==",
+ "dev": true,
+ "bin": {
+ "esparse": "bin/esparse.js",
+ "esvalidate": "bin/esvalidate.js"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/fast-deep-equal": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
+ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
+ "dev": true
+ },
+ "node_modules/fast-safe-stringify": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz",
+ "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==",
+ "dev": true
+ },
"node_modules/follow-redirects": {
"version": "1.15.5",
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.5.tgz",
@@ -108,6 +312,55 @@
"node": ">= 6"
}
},
+ "node_modules/get-caller-file": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",
+ "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",
+ "dev": true,
+ "engines": {
+ "node": "6.* || 8.* || >= 10.*"
+ }
+ },
+ "node_modules/http2-client": {
+ "version": "1.3.5",
+ "resolved": "https://registry.npmjs.org/http2-client/-/http2-client-1.3.5.tgz",
+ "integrity": "sha512-EC2utToWl4RKfs5zd36Mxq7nzHHBuomZboI0yYL6Y0RmBgT7Sgkq4rQ0ezFTYoIsSs7Tm9SJe+o2FcAg6GBhGA==",
+ "dev": true
+ },
+ "node_modules/is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
+ "dev": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/js-yaml": {
+ "version": "3.14.1",
+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz",
+ "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==",
+ "dev": true,
+ "dependencies": {
+ "argparse": "^1.0.7",
+ "esprima": "^4.0.0"
+ },
+ "bin": {
+ "js-yaml": "bin/js-yaml.js"
+ }
+ },
+ "node_modules/json-schema-traverse": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
+ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",
+ "dev": true
+ },
+ "node_modules/lodash": {
+ "version": "4.17.21",
+ "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
+ "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",
+ "dev": true
+ },
"node_modules/mime-db": {
"version": "1.52.0",
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
@@ -131,6 +384,149 @@
"node": ">= 0.6"
}
},
+ "node_modules/minimist": {
+ "version": "1.2.8",
+ "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz",
+ "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==",
+ "dev": true,
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/node-fetch": {
+ "version": "2.7.0",
+ "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz",
+ "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==",
+ "dev": true,
+ "dependencies": {
+ "whatwg-url": "^5.0.0"
+ },
+ "engines": {
+ "node": "4.x || >=6.0.0"
+ },
+ "peerDependencies": {
+ "encoding": "^0.1.0"
+ },
+ "peerDependenciesMeta": {
+ "encoding": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/node-fetch-h2": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/node-fetch-h2/-/node-fetch-h2-2.3.0.tgz",
+ "integrity": "sha512-ofRW94Ab0T4AOh5Fk8t0h8OBWrmjb0SSB20xh1H8YnPV9EJ+f5AMoYSUQ2zgJ4Iq2HAK0I2l5/Nequ8YzFS3Hg==",
+ "dev": true,
+ "dependencies": {
+ "http2-client": "^1.2.5"
+ },
+ "engines": {
+ "node": "4.x || >=6.0.0"
+ }
+ },
+ "node_modules/node-readfiles": {
+ "version": "0.2.0",
+ "resolved": "https://registry.npmjs.org/node-readfiles/-/node-readfiles-0.2.0.tgz",
+ "integrity": "sha512-SU00ZarexNlE4Rjdm83vglt5Y9yiQ+XI1XpflWlb7q7UTN1JUItm69xMeiQCTxtTfnzt+83T8Cx+vI2ED++VDA==",
+ "dev": true,
+ "dependencies": {
+ "es6-promise": "^3.2.1"
+ }
+ },
+ "node_modules/oas-kit-common": {
+ "version": "1.0.8",
+ "resolved": "https://registry.npmjs.org/oas-kit-common/-/oas-kit-common-1.0.8.tgz",
+ "integrity": "sha512-pJTS2+T0oGIwgjGpw7sIRU8RQMcUoKCDWFLdBqKB2BNmGpbBMH2sdqAaOXUg8OzonZHU0L7vfJu1mJFEiYDWOQ==",
+ "dev": true,
+ "dependencies": {
+ "fast-safe-stringify": "^2.0.7"
+ }
+ },
+ "node_modules/oas-linter": {
+ "version": "3.2.2",
+ "resolved": "https://registry.npmjs.org/oas-linter/-/oas-linter-3.2.2.tgz",
+ "integrity": "sha512-KEGjPDVoU5K6swgo9hJVA/qYGlwfbFx+Kg2QB/kd7rzV5N8N5Mg6PlsoCMohVnQmo+pzJap/F610qTodKzecGQ==",
+ "dev": true,
+ "dependencies": {
+ "@exodus/schemasafe": "^1.0.0-rc.2",
+ "should": "^13.2.1",
+ "yaml": "^1.10.0"
+ },
+ "funding": {
+ "url": "https://github.com/Mermade/oas-kit?sponsor=1"
+ }
+ },
+ "node_modules/oas-resolver": {
+ "version": "2.5.6",
+ "resolved": "https://registry.npmjs.org/oas-resolver/-/oas-resolver-2.5.6.tgz",
+ "integrity": "sha512-Yx5PWQNZomfEhPPOphFbZKi9W93CocQj18NlD2Pa4GWZzdZpSJvYwoiuurRI7m3SpcChrnO08hkuQDL3FGsVFQ==",
+ "dev": true,
+ "dependencies": {
+ "node-fetch-h2": "^2.3.0",
+ "oas-kit-common": "^1.0.8",
+ "reftools": "^1.1.9",
+ "yaml": "^1.10.0",
+ "yargs": "^17.0.1"
+ },
+ "bin": {
+ "resolve": "resolve.js"
+ },
+ "funding": {
+ "url": "https://github.com/Mermade/oas-kit?sponsor=1"
+ }
+ },
+ "node_modules/oas-schema-walker": {
+ "version": "1.1.5",
+ "resolved": "https://registry.npmjs.org/oas-schema-walker/-/oas-schema-walker-1.1.5.tgz",
+ "integrity": "sha512-2yucenq1a9YPmeNExoUa9Qwrt9RFkjqaMAA1X+U7sbb0AqBeTIdMHky9SQQ6iN94bO5NW0W4TRYXerG+BdAvAQ==",
+ "dev": true,
+ "funding": {
+ "url": "https://github.com/Mermade/oas-kit?sponsor=1"
+ }
+ },
+ "node_modules/oas-validator": {
+ "version": "5.0.8",
+ "resolved": "https://registry.npmjs.org/oas-validator/-/oas-validator-5.0.8.tgz",
+ "integrity": "sha512-cu20/HE5N5HKqVygs3dt94eYJfBi0TsZvPVXDhbXQHiEityDN+RROTleefoKRKKJ9dFAF2JBkDHgvWj0sjKGmw==",
+ "dev": true,
+ "dependencies": {
+ "call-me-maybe": "^1.0.1",
+ "oas-kit-common": "^1.0.8",
+ "oas-linter": "^3.2.2",
+ "oas-resolver": "^2.5.6",
+ "oas-schema-walker": "^1.1.5",
+ "reftools": "^1.1.9",
+ "should": "^13.2.1",
+ "yaml": "^1.10.0"
+ },
+ "funding": {
+ "url": "https://github.com/Mermade/oas-kit?sponsor=1"
+ }
+ },
+ "node_modules/oazapfts": {
+ "version": "5.1.4",
+ "resolved": "https://registry.npmjs.org/oazapfts/-/oazapfts-5.1.4.tgz",
+ "integrity": "sha512-2SxNV4rLm8MWoBnnVD9aeM22yZfzX3mJ7UPt8WXM7656XVsXCM4q8h29kP5rK2XNNf90FJ0quQ0T+Mx9wDhQyg==",
+ "dev": true,
+ "dependencies": {
+ "@apidevtools/swagger-parser": "^10.1.0",
+ "lodash": "^4.17.21",
+ "minimist": "^1.2.8",
+ "swagger2openapi": "^7.0.8",
+ "typescript": "^5.3.3"
+ },
+ "bin": {
+ "oazapfts": "lib/codegen/cli.js"
+ }
+ },
+ "node_modules/openapi-types": {
+ "version": "12.1.3",
+ "resolved": "https://registry.npmjs.org/openapi-types/-/openapi-types-12.1.3.tgz",
+ "integrity": "sha512-N4YtSYJqghVu4iek2ZUvcN/0aqH1kRDuNqzcycDxhOUpg7GdvLa2F3DgS6yBNhInhv2r/6I0Flkn7CqL8+nIcw==",
+ "dev": true,
+ "peer": true
+ },
"node_modules/proxy-from-env": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz",
@@ -138,6 +534,161 @@
"optional": true,
"peer": true
},
+ "node_modules/punycode": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",
+ "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",
+ "dev": true,
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/reftools": {
+ "version": "1.1.9",
+ "resolved": "https://registry.npmjs.org/reftools/-/reftools-1.1.9.tgz",
+ "integrity": "sha512-OVede/NQE13xBQ+ob5CKd5KyeJYU2YInb1bmV4nRoOfquZPkAkxuOXicSe1PvqIuZZ4kD13sPKBbR7UFDmli6w==",
+ "dev": true,
+ "funding": {
+ "url": "https://github.com/Mermade/oas-kit?sponsor=1"
+ }
+ },
+ "node_modules/require-directory": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
+ "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==",
+ "dev": true,
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/require-from-string": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",
+ "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==",
+ "dev": true,
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/should": {
+ "version": "13.2.3",
+ "resolved": "https://registry.npmjs.org/should/-/should-13.2.3.tgz",
+ "integrity": "sha512-ggLesLtu2xp+ZxI+ysJTmNjh2U0TsC+rQ/pfED9bUZZ4DKefP27D+7YJVVTvKsmjLpIi9jAa7itwDGkDDmt1GQ==",
+ "dev": true,
+ "dependencies": {
+ "should-equal": "^2.0.0",
+ "should-format": "^3.0.3",
+ "should-type": "^1.4.0",
+ "should-type-adaptors": "^1.0.1",
+ "should-util": "^1.0.0"
+ }
+ },
+ "node_modules/should-equal": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/should-equal/-/should-equal-2.0.0.tgz",
+ "integrity": "sha512-ZP36TMrK9euEuWQYBig9W55WPC7uo37qzAEmbjHz4gfyuXrEUgF8cUvQVO+w+d3OMfPvSRQJ22lSm8MQJ43LTA==",
+ "dev": true,
+ "dependencies": {
+ "should-type": "^1.4.0"
+ }
+ },
+ "node_modules/should-format": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/should-format/-/should-format-3.0.3.tgz",
+ "integrity": "sha512-hZ58adtulAk0gKtua7QxevgUaXTTXxIi8t41L3zo9AHvjXO1/7sdLECuHeIN2SRtYXpNkmhoUP2pdeWgricQ+Q==",
+ "dev": true,
+ "dependencies": {
+ "should-type": "^1.3.0",
+ "should-type-adaptors": "^1.0.1"
+ }
+ },
+ "node_modules/should-type": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/should-type/-/should-type-1.4.0.tgz",
+ "integrity": "sha512-MdAsTu3n25yDbIe1NeN69G4n6mUnJGtSJHygX3+oN0ZbO3DTiATnf7XnYJdGT42JCXurTb1JI0qOBR65shvhPQ==",
+ "dev": true
+ },
+ "node_modules/should-type-adaptors": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/should-type-adaptors/-/should-type-adaptors-1.1.0.tgz",
+ "integrity": "sha512-JA4hdoLnN+kebEp2Vs8eBe9g7uy0zbRo+RMcU0EsNy+R+k049Ki+N5tT5Jagst2g7EAja+euFuoXFCa8vIklfA==",
+ "dev": true,
+ "dependencies": {
+ "should-type": "^1.3.0",
+ "should-util": "^1.0.0"
+ }
+ },
+ "node_modules/should-util": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/should-util/-/should-util-1.0.1.tgz",
+ "integrity": "sha512-oXF8tfxx5cDk8r2kYqlkUJzZpDBqVY/II2WhvU0n9Y3XYvAYRmeaf1PvvIvTgPnv4KJ+ES5M0PyDq5Jp+Ygy2g==",
+ "dev": true
+ },
+ "node_modules/sprintf-js": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
+ "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==",
+ "dev": true
+ },
+ "node_modules/string-width": {
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
+ "dev": true,
+ "dependencies": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/strip-ansi": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
+ "dev": true,
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/swagger2openapi": {
+ "version": "7.0.8",
+ "resolved": "https://registry.npmjs.org/swagger2openapi/-/swagger2openapi-7.0.8.tgz",
+ "integrity": "sha512-upi/0ZGkYgEcLeGieoz8gT74oWHA0E7JivX7aN9mAf+Tc7BQoRBvnIGHoPDw+f9TXTW4s6kGYCZJtauP6OYp7g==",
+ "dev": true,
+ "dependencies": {
+ "call-me-maybe": "^1.0.1",
+ "node-fetch": "^2.6.1",
+ "node-fetch-h2": "^2.3.0",
+ "node-readfiles": "^0.2.0",
+ "oas-kit-common": "^1.0.8",
+ "oas-resolver": "^2.5.6",
+ "oas-schema-walker": "^1.1.5",
+ "oas-validator": "^5.0.8",
+ "reftools": "^1.1.9",
+ "yaml": "^1.10.0",
+ "yargs": "^17.0.1"
+ },
+ "bin": {
+ "boast": "boast.js",
+ "oas-validate": "oas-validate.js",
+ "swagger2openapi": "swagger2openapi.js"
+ },
+ "funding": {
+ "url": "https://github.com/Mermade/oas-kit?sponsor=1"
+ }
+ },
+ "node_modules/tr46": {
+ "version": "0.0.3",
+ "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
+ "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==",
+ "dev": true
+ },
"node_modules/typescript": {
"version": "5.3.3",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz",
@@ -156,6 +707,93 @@
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz",
"integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==",
"dev": true
+ },
+ "node_modules/uri-js": {
+ "version": "4.4.1",
+ "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",
+ "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",
+ "dev": true,
+ "dependencies": {
+ "punycode": "^2.1.0"
+ }
+ },
+ "node_modules/webidl-conversions": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
+ "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==",
+ "dev": true
+ },
+ "node_modules/whatwg-url": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",
+ "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",
+ "dev": true,
+ "dependencies": {
+ "tr46": "~0.0.3",
+ "webidl-conversions": "^3.0.0"
+ }
+ },
+ "node_modules/wrap-ansi": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
+ "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
+ "dev": true,
+ "dependencies": {
+ "ansi-styles": "^4.0.0",
+ "string-width": "^4.1.0",
+ "strip-ansi": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
+ }
+ },
+ "node_modules/y18n": {
+ "version": "5.0.8",
+ "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",
+ "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",
+ "dev": true,
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/yaml": {
+ "version": "1.10.2",
+ "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz",
+ "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==",
+ "dev": true,
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/yargs": {
+ "version": "17.7.2",
+ "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz",
+ "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==",
+ "dev": true,
+ "dependencies": {
+ "cliui": "^8.0.1",
+ "escalade": "^3.1.1",
+ "get-caller-file": "^2.0.5",
+ "require-directory": "^2.1.1",
+ "string-width": "^4.2.3",
+ "y18n": "^5.0.5",
+ "yargs-parser": "^21.1.1"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/yargs-parser": {
+ "version": "21.1.1",
+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz",
+ "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==",
+ "dev": true,
+ "engines": {
+ "node": ">=12"
+ }
}
}
}
diff --git a/open-api/typescript-sdk/package.json b/open-api/typescript-sdk/package.json
index 5175fcf4a1..41d9a43f19 100644
--- a/open-api/typescript-sdk/package.json
+++ b/open-api/typescript-sdk/package.json
@@ -21,9 +21,10 @@
"license": "MIT",
"devDependencies": {
"@types/node": "^20.11.0",
+ "oazapfts": "^5.1.4",
"typescript": "^5.3.3"
},
- "peerDependencies": {
+ "peerDependencies": {
"axios": "^1.6.7"
},
"peerDependenciesMeta": {