|
@@ -4,7 +4,7 @@
|
|
|
* Immich
|
|
|
* Immich API
|
|
|
*
|
|
|
- * The version of the OpenAPI document: 1.83.0
|
|
|
+ * The version of the OpenAPI document: 1.84.0
|
|
|
*
|
|
|
*
|
|
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4255,12 +4255,6 @@ export interface UpdateTagDto {
|
|
|
* @interface UpdateUserDto
|
|
|
*/
|
|
|
export interface UpdateUserDto {
|
|
|
- /**
|
|
|
- *
|
|
|
- * @type {UserAvatarColor}
|
|
|
- * @memberof UpdateUserDto
|
|
|
- */
|
|
|
- 'avatarColor'?: UserAvatarColor;
|
|
|
/**
|
|
|
*
|
|
|
* @type {string}
|
|
@@ -4322,8 +4316,6 @@ export interface UpdateUserDto {
|
|
|
*/
|
|
|
'storageLabel'?: string;
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
/**
|
|
|
*
|
|
|
* @export
|
|
@@ -4367,40 +4359,12 @@ export interface UsageByUserDto {
|
|
|
*/
|
|
|
'videos': number;
|
|
|
}
|
|
|
-/**
|
|
|
- *
|
|
|
- * @export
|
|
|
- * @enum {string}
|
|
|
- */
|
|
|
-
|
|
|
-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
|
|
|
* @interface UserDto
|
|
|
*/
|
|
|
export interface UserDto {
|
|
|
- /**
|
|
|
- *
|
|
|
- * @type {string}
|
|
|
- * @memberof UserDto
|
|
|
- */
|
|
|
- 'avatarColor': UserDtoAvatarColorEnum;
|
|
|
/**
|
|
|
*
|
|
|
* @type {string}
|
|
@@ -4432,34 +4396,12 @@ export interface UserDto {
|
|
|
*/
|
|
|
'profileImagePath': string;
|
|
|
}
|
|
|
-
|
|
|
-export const UserDtoAvatarColorEnum = {
|
|
|
- Primary: 'primary',
|
|
|
- Pink: 'pink',
|
|
|
- Red: 'red',
|
|
|
- Yellow: 'yellow',
|
|
|
- Blue: 'blue',
|
|
|
- Green: 'green',
|
|
|
- Purple: 'purple',
|
|
|
- Orange: 'orange',
|
|
|
- Gray: 'gray',
|
|
|
- Amber: 'amber'
|
|
|
-} as const;
|
|
|
-
|
|
|
-export type UserDtoAvatarColorEnum = typeof UserDtoAvatarColorEnum[keyof typeof UserDtoAvatarColorEnum];
|
|
|
-
|
|
|
/**
|
|
|
*
|
|
|
* @export
|
|
|
* @interface UserResponseDto
|
|
|
*/
|
|
|
export interface UserResponseDto {
|
|
|
- /**
|
|
|
- *
|
|
|
- * @type {string}
|
|
|
- * @memberof UserResponseDto
|
|
|
- */
|
|
|
- 'avatarColor': UserResponseDtoAvatarColorEnum;
|
|
|
/**
|
|
|
*
|
|
|
* @type {string}
|
|
@@ -4545,22 +4487,6 @@ export interface UserResponseDto {
|
|
|
*/
|
|
|
'updatedAt': string;
|
|
|
}
|
|
|
-
|
|
|
-export const UserResponseDtoAvatarColorEnum = {
|
|
|
- Primary: 'primary',
|
|
|
- Pink: 'pink',
|
|
|
- Red: 'red',
|
|
|
- Yellow: 'yellow',
|
|
|
- Blue: 'blue',
|
|
|
- Green: 'green',
|
|
|
- Purple: 'purple',
|
|
|
- Orange: 'orange',
|
|
|
- Gray: 'gray',
|
|
|
- Amber: 'amber'
|
|
|
-} as const;
|
|
|
-
|
|
|
-export type UserResponseDtoAvatarColorEnum = typeof UserResponseDtoAvatarColorEnum[keyof typeof UserResponseDtoAvatarColorEnum];
|
|
|
-
|
|
|
/**
|
|
|
*
|
|
|
* @export
|
|
@@ -5150,10 +5076,11 @@ export const ActivityApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
* @param {string} albumId
|
|
|
* @param {string} [assetId]
|
|
|
* @param {ReactionType} [type]
|
|
|
+ * @param {string} [userId]
|
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
|
*/
|
|
|
- getActivities: async (albumId: string, assetId?: string, type?: ReactionType, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
+ getActivities: async (albumId: string, assetId?: string, type?: ReactionType, userId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
// verify required parameter 'albumId' is not null or undefined
|
|
|
assertParamExists('getActivities', 'albumId', albumId)
|
|
|
const localVarPath = `/activity`;
|
|
@@ -5189,6 +5116,10 @@ export const ActivityApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
localVarQueryParameter['type'] = type;
|
|
|
}
|
|
|
|
|
|
+ if (userId !== undefined) {
|
|
|
+ localVarQueryParameter['userId'] = userId;
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
|
|
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -5285,11 +5216,12 @@ export const ActivityApiFp = function(configuration?: Configuration) {
|
|
|
* @param {string} albumId
|
|
|
* @param {string} [assetId]
|
|
|
* @param {ReactionType} [type]
|
|
|
+ * @param {string} [userId]
|
|
|
* @param {*} [options] Override http request option.
|
|
|
* @throws {RequiredError}
|
|
|
*/
|
|
|
- async getActivities(albumId: string, assetId?: string, type?: ReactionType, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ActivityResponseDto>>> {
|
|
|
- const localVarAxiosArgs = await localVarAxiosParamCreator.getActivities(albumId, assetId, type, options);
|
|
|
+ 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);
|
|
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
|
},
|
|
|
/**
|
|
@@ -5338,7 +5270,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, options).then((request) => request(axios, basePath));
|
|
|
+ return localVarFp.getActivities(requestParameters.albumId, requestParameters.assetId, requestParameters.type, requestParameters.userId, options).then((request) => request(axios, basePath));
|
|
|
},
|
|
|
/**
|
|
|
*
|
|
@@ -5406,6 +5338,13 @@ export interface ActivityApiGetActivitiesRequest {
|
|
|
* @memberof ActivityApiGetActivities
|
|
|
*/
|
|
|
readonly type?: ReactionType
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @type {string}
|
|
|
+ * @memberof ActivityApiGetActivities
|
|
|
+ */
|
|
|
+ readonly userId?: string
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -5466,7 +5405,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, options).then((request) => request(this.axios, this.basePath));
|
|
|
+ return ActivityApiFp(this.configuration).getActivities(requestParameters.albumId, requestParameters.assetId, requestParameters.type, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -16219,44 +16158,6 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
options: localVarRequestOptions,
|
|
|
};
|
|
|
},
|
|
|
- /**
|
|
|
- *
|
|
|
- * @param {*} [options] Override http request option.
|
|
|
- * @throws {RequiredError}
|
|
|
- */
|
|
|
- deleteProfileImage: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
- const localVarPath = `/user/profile-image`;
|
|
|
- // 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: 'DELETE', ...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)
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
|
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
|
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
|
-
|
|
|
- return {
|
|
|
- url: toPathString(localVarUrlObj),
|
|
|
- options: localVarRequestOptions,
|
|
|
- };
|
|
|
- },
|
|
|
/**
|
|
|
*
|
|
|
* @param {string} id
|
|
@@ -16582,15 +16483,6 @@ export const UserApiFp = function(configuration?: Configuration) {
|
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createUser(createUserDto, options);
|
|
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
|
},
|
|
|
- /**
|
|
|
- *
|
|
|
- * @param {*} [options] Override http request option.
|
|
|
- * @throws {RequiredError}
|
|
|
- */
|
|
|
- async deleteProfileImage(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
|
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProfileImage(options);
|
|
|
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
|
- },
|
|
|
/**
|
|
|
*
|
|
|
* @param {string} id
|
|
@@ -16688,14 +16580,6 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
|
|
|
createUser(requestParameters: UserApiCreateUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
|
|
|
return localVarFp.createUser(requestParameters.createUserDto, options).then((request) => request(axios, basePath));
|
|
|
},
|
|
|
- /**
|
|
|
- *
|
|
|
- * @param {*} [options] Override http request option.
|
|
|
- * @throws {RequiredError}
|
|
|
- */
|
|
|
- deleteProfileImage(options?: AxiosRequestConfig): AxiosPromise<void> {
|
|
|
- return localVarFp.deleteProfileImage(options).then((request) => request(axios, basePath));
|
|
|
- },
|
|
|
/**
|
|
|
*
|
|
|
* @param {UserApiDeleteUserRequest} requestParameters Request parameters.
|
|
@@ -16902,16 +16786,6 @@ export class UserApi extends BaseAPI {
|
|
|
return UserApiFp(this.configuration).createUser(requestParameters.createUserDto, options).then((request) => request(this.axios, this.basePath));
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- *
|
|
|
- * @param {*} [options] Override http request option.
|
|
|
- * @throws {RequiredError}
|
|
|
- * @memberof UserApi
|
|
|
- */
|
|
|
- public deleteProfileImage(options?: AxiosRequestConfig) {
|
|
|
- return UserApiFp(this.configuration).deleteProfileImage(options).then((request) => request(this.axios, this.basePath));
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
*
|
|
|
* @param {UserApiDeleteUserRequest} requestParameters Request parameters.
|