|
@@ -4,7 +4,7 @@
|
|
|
* Immich
|
|
|
* Immich API
|
|
|
*
|
|
|
- * The version of the OpenAPI document: 1.84.0
|
|
|
+ * The version of the OpenAPI document: 1.85.0
|
|
|
*
|
|
|
*
|
|
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -209,43 +209,6 @@ export interface AddUsersDto {
|
|
|
*/
|
|
|
'sharedUserIds': Array<string>;
|
|
|
}
|
|
|
-/**
|
|
|
- *
|
|
|
- * @export
|
|
|
- * @interface AdminSignupResponseDto
|
|
|
- */
|
|
|
-export interface AdminSignupResponseDto {
|
|
|
- /**
|
|
|
- *
|
|
|
- * @type {string}
|
|
|
- * @memberof AdminSignupResponseDto
|
|
|
- */
|
|
|
- 'createdAt': string;
|
|
|
- /**
|
|
|
- *
|
|
|
- * @type {string}
|
|
|
- * @memberof AdminSignupResponseDto
|
|
|
- */
|
|
|
- 'email': string;
|
|
|
- /**
|
|
|
- *
|
|
|
- * @type {string}
|
|
|
- * @memberof AdminSignupResponseDto
|
|
|
- */
|
|
|
- 'firstName': string;
|
|
|
- /**
|
|
|
- *
|
|
|
- * @type {string}
|
|
|
- * @memberof AdminSignupResponseDto
|
|
|
- */
|
|
|
- 'id': string;
|
|
|
- /**
|
|
|
- *
|
|
|
- * @type {string}
|
|
|
- * @memberof AdminSignupResponseDto
|
|
|
- */
|
|
|
- 'lastName': string;
|
|
|
-}
|
|
|
/**
|
|
|
*
|
|
|
* @export
|
|
@@ -2261,6 +2224,20 @@ export interface MapMarkerResponseDto {
|
|
|
*/
|
|
|
'lon': number;
|
|
|
}
|
|
|
+/**
|
|
|
+ *
|
|
|
+ * @export
|
|
|
+ * @enum {string}
|
|
|
+ */
|
|
|
+
|
|
|
+export const MapTheme = {
|
|
|
+ Light: 'light',
|
|
|
+ Dark: 'dark'
|
|
|
+} as const;
|
|
|
+
|
|
|
+export type MapTheme = typeof MapTheme[keyof typeof MapTheme];
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
*
|
|
|
* @export
|
|
@@ -2593,6 +2570,20 @@ export interface QueueStatusDto {
|
|
|
*/
|
|
|
'isPaused': boolean;
|
|
|
}
|
|
|
+/**
|
|
|
+ *
|
|
|
+ * @export
|
|
|
+ * @enum {string}
|
|
|
+ */
|
|
|
+
|
|
|
+export const ReactionLevel = {
|
|
|
+ Album: 'album',
|
|
|
+ Asset: 'asset'
|
|
|
+} as const;
|
|
|
+
|
|
|
+export type ReactionLevel = typeof ReactionLevel[keyof typeof ReactionLevel];
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
*
|
|
|
* @export
|
|
@@ -2859,12 +2850,6 @@ export interface ServerConfigDto {
|
|
|
* @memberof ServerConfigDto
|
|
|
*/
|
|
|
'loginPageMessage': string;
|
|
|
- /**
|
|
|
- *
|
|
|
- * @type {string}
|
|
|
- * @memberof ServerConfigDto
|
|
|
- */
|
|
|
- 'mapTileUrl': string;
|
|
|
/**
|
|
|
*
|
|
|
* @type {string}
|
|
@@ -3732,6 +3717,12 @@ export interface SystemConfigMachineLearningDto {
|
|
|
* @interface SystemConfigMapDto
|
|
|
*/
|
|
|
export interface SystemConfigMapDto {
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @type {string}
|
|
|
+ * @memberof SystemConfigMapDto
|
|
|
+ */
|
|
|
+ 'darkStyle': string;
|
|
|
/**
|
|
|
*
|
|
|
* @type {boolean}
|
|
@@ -3743,7 +3734,7 @@ export interface SystemConfigMapDto {
|
|
|
* @type {string}
|
|
|
* @memberof SystemConfigMapDto
|
|
|
*/
|
|
|
- 'tileUrl': string;
|
|
|
+ 'lightStyle': string;
|
|
|
}
|
|
|
/**
|
|
|
*
|
|
@@ -5088,11 +5079,12 @@ export const ActivityApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
* @param {string} albumId
|
|
|
* @param {string} [assetId]
|
|
|
* @param {ReactionType} [type]
|
|
|
+ * @param {ReactionLevel} [level]
|
|
|
* @param {string} [userId]
|
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
|
*/
|
|
|
- getActivities: async (albumId: string, assetId?: string, type?: ReactionType, userId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
+ getActivities: async (albumId: string, assetId?: string, type?: ReactionType, level?: ReactionLevel, userId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
// verify required parameter 'albumId' is not null or undefined
|
|
|
assertParamExists('getActivities', 'albumId', albumId)
|
|
|
const localVarPath = `/activity`;
|
|
@@ -5128,6 +5120,10 @@ export const ActivityApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
localVarQueryParameter['type'] = type;
|
|
|
}
|
|
|
|
|
|
+ if (level !== undefined) {
|
|
|
+ localVarQueryParameter['level'] = level;
|
|
|
+ }
|
|
|
+
|
|
|
if (userId !== undefined) {
|
|
|
localVarQueryParameter['userId'] = userId;
|
|
|
}
|
|
@@ -5228,12 +5224,13 @@ export const ActivityApiFp = function(configuration?: Configuration) {
|
|
|
* @param {string} albumId
|
|
|
* @param {string} [assetId]
|
|
|
* @param {ReactionType} [type]
|
|
|
+ * @param {ReactionLevel} [level]
|
|
|
* @param {string} [userId]
|
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
|
*/
|
|
|
- async getActivities(albumId: string, assetId?: string, type?: ReactionType, userId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ActivityResponseDto>>> {
|
|
|
- const localVarAxiosArgs = await localVarAxiosParamCreator.getActivities(albumId, assetId, type, userId, options);
|
|
|
+ async getActivities(albumId: string, assetId?: string, type?: ReactionType, level?: ReactionLevel, userId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ActivityResponseDto>>> {
|
|
|
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getActivities(albumId, assetId, type, level, userId, options);
|
|
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
|
},
|
|
|
/**
|
|
@@ -5282,7 +5279,7 @@ export const ActivityApiFactory = function (configuration?: Configuration, baseP
|
|
|
* @throws {RequiredError}
|
|
|
*/
|
|
|
getActivities(requestParameters: ActivityApiGetActivitiesRequest, options?: AxiosRequestConfig): AxiosPromise<Array<ActivityResponseDto>> {
|
|
|
- return localVarFp.getActivities(requestParameters.albumId, requestParameters.assetId, requestParameters.type, requestParameters.userId, options).then((request) => request(axios, basePath));
|
|
|
+ return localVarFp.getActivities(requestParameters.albumId, requestParameters.assetId, requestParameters.type, requestParameters.level, requestParameters.userId, options).then((request) => request(axios, basePath));
|
|
|
},
|
|
|
/**
|
|
|
*
|
|
@@ -5351,6 +5348,13 @@ export interface ActivityApiGetActivitiesRequest {
|
|
|
*/
|
|
|
readonly type?: ReactionType
|
|
|
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @type {ReactionLevel}
|
|
|
+ * @memberof ActivityApiGetActivities
|
|
|
+ */
|
|
|
+ readonly level?: ReactionLevel
|
|
|
+
|
|
|
/**
|
|
|
*
|
|
|
* @type {string}
|
|
@@ -5417,7 +5421,7 @@ export class ActivityApi extends BaseAPI {
|
|
|
* @memberof ActivityApi
|
|
|
*/
|
|
|
public getActivities(requestParameters: ActivityApiGetActivitiesRequest, options?: AxiosRequestConfig) {
|
|
|
- return ActivityApiFp(this.configuration).getActivities(requestParameters.albumId, requestParameters.assetId, requestParameters.type, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
|
+ return ActivityApiFp(this.configuration).getActivities(requestParameters.albumId, requestParameters.assetId, requestParameters.type, requestParameters.level, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -10509,7 +10513,7 @@ export const AuthenticationApiFp = function(configuration?: Configuration) {
|
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
|
*/
|
|
|
- async signUpAdmin(signUpDto: SignUpDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminSignupResponseDto>> {
|
|
|
+ async signUpAdmin(signUpDto: SignUpDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
|
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.signUpAdmin(signUpDto, options);
|
|
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
|
},
|
|
@@ -10589,7 +10593,7 @@ export const AuthenticationApiFactory = function (configuration?: Configuration,
|
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
|
*/
|
|
|
- signUpAdmin(requestParameters: AuthenticationApiSignUpAdminRequest, options?: AxiosRequestConfig): AxiosPromise<AdminSignupResponseDto> {
|
|
|
+ signUpAdmin(requestParameters: AuthenticationApiSignUpAdminRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
|
|
|
return localVarFp.signUpAdmin(requestParameters.signUpDto, options).then((request) => request(axios, basePath));
|
|
|
},
|
|
|
/**
|
|
@@ -15100,6 +15104,51 @@ export const SystemConfigApiAxiosParamCreator = function (configuration?: Config
|
|
|
|
|
|
|
|
|
|
|
|
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
|
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
|
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
|
+
|
|
|
+ return {
|
|
|
+ url: toPathString(localVarUrlObj),
|
|
|
+ options: localVarRequestOptions,
|
|
|
+ };
|
|
|
+ },
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param {MapTheme} theme
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ */
|
|
|
+ getMapStyle: async (theme: MapTheme, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
+ // verify required parameter 'theme' is not null or undefined
|
|
|
+ assertParamExists('getMapStyle', 'theme', theme)
|
|
|
+ const localVarPath = `/system-config/map/style.json`;
|
|
|
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
|
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
|
+ let baseOptions;
|
|
|
+ if (configuration) {
|
|
|
+ baseOptions = configuration.baseOptions;
|
|
|
+ }
|
|
|
+
|
|
|
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
|
+ const localVarHeaderParameter = {} as any;
|
|
|
+ const localVarQueryParameter = {} as any;
|
|
|
+
|
|
|
+ // authentication cookie required
|
|
|
+
|
|
|
+ // authentication api_key required
|
|
|
+ await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
|
|
|
+
|
|
|
+ // authentication bearer required
|
|
|
+ // http bearer authentication required
|
|
|
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
|
+
|
|
|
+ if (theme !== undefined) {
|
|
|
+ localVarQueryParameter['theme'] = theme;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -15219,6 +15268,16 @@ export const SystemConfigApiFp = function(configuration?: Configuration) {
|
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getConfigDefaults(options);
|
|
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
|
},
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param {MapTheme} theme
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ */
|
|
|
+ async getMapStyle(theme: MapTheme, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
|
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getMapStyle(theme, options);
|
|
|
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
|
+ },
|
|
|
/**
|
|
|
*
|
|
|
* @param {*} [options] Override http request option.
|
|
@@ -15264,6 +15323,15 @@ export const SystemConfigApiFactory = function (configuration?: Configuration, b
|
|
|
getConfigDefaults(options?: AxiosRequestConfig): AxiosPromise<SystemConfigDto> {
|
|
|
return localVarFp.getConfigDefaults(options).then((request) => request(axios, basePath));
|
|
|
},
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param {SystemConfigApiGetMapStyleRequest} requestParameters Request parameters.
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ */
|
|
|
+ getMapStyle(requestParameters: SystemConfigApiGetMapStyleRequest, options?: AxiosRequestConfig): AxiosPromise<object> {
|
|
|
+ return localVarFp.getMapStyle(requestParameters.theme, options).then((request) => request(axios, basePath));
|
|
|
+ },
|
|
|
/**
|
|
|
*
|
|
|
* @param {*} [options] Override http request option.
|
|
@@ -15284,6 +15352,20 @@ export const SystemConfigApiFactory = function (configuration?: Configuration, b
|
|
|
};
|
|
|
};
|
|
|
|
|
|
+/**
|
|
|
+ * Request parameters for getMapStyle operation in SystemConfigApi.
|
|
|
+ * @export
|
|
|
+ * @interface SystemConfigApiGetMapStyleRequest
|
|
|
+ */
|
|
|
+export interface SystemConfigApiGetMapStyleRequest {
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @type {MapTheme}
|
|
|
+ * @memberof SystemConfigApiGetMapStyle
|
|
|
+ */
|
|
|
+ readonly theme: MapTheme
|
|
|
+}
|
|
|
+
|
|
|
/**
|
|
|
* Request parameters for updateConfig operation in SystemConfigApi.
|
|
|
* @export
|
|
@@ -15325,6 +15407,17 @@ export class SystemConfigApi extends BaseAPI {
|
|
|
return SystemConfigApiFp(this.configuration).getConfigDefaults(options).then((request) => request(this.axios, this.basePath));
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param {SystemConfigApiGetMapStyleRequest} requestParameters Request parameters.
|
|
|
+ * @param {*} [options] Override http request option.
|
|
|
+ * @throws {RequiredError}
|
|
|
+ * @memberof SystemConfigApi
|
|
|
+ */
|
|
|
+ public getMapStyle(requestParameters: SystemConfigApiGetMapStyleRequest, options?: AxiosRequestConfig) {
|
|
|
+ return SystemConfigApiFp(this.configuration).getMapStyle(requestParameters.theme, options).then((request) => request(this.axios, this.basePath));
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
*
|
|
|
* @param {*} [options] Override http request option.
|