@quantum-hub/qhubctl 1.12.1 → 1.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/README.md +1 -1
  2. package/dist/lib/error.js +3 -2
  3. package/dist/service/auth-service.d.ts +2 -2
  4. package/dist/service/quantum-hub-service.js +1 -1
  5. package/dist/service/user-service.d.ts +3 -3
  6. package/dist/service/user-service.js +9 -9
  7. package/package.json +1 -1
  8. package/dist/client/users/apis/AuthenticationApi.d.ts +0 -31
  9. package/dist/client/users/apis/AuthenticationApi.js +0 -46
  10. package/dist/client/users/apis/ExpertsApi.d.ts +0 -44
  11. package/dist/client/users/apis/ExpertsApi.js +0 -75
  12. package/dist/client/users/apis/SearchApi.d.ts +0 -46
  13. package/dist/client/users/apis/SearchApi.js +0 -97
  14. package/dist/client/users/apis/UserSettingsApi.d.ts +0 -139
  15. package/dist/client/users/apis/UserSettingsApi.js +0 -380
  16. package/dist/client/users/apis/UserSettingsPersonalAccessTokensApi.d.ts +0 -64
  17. package/dist/client/users/apis/UserSettingsPersonalAccessTokensApi.js +0 -147
  18. package/dist/client/users/apis/UsersApi.d.ts +0 -70
  19. package/dist/client/users/apis/UsersApi.js +0 -133
  20. package/dist/client/users/apis/index.d.ts +0 -6
  21. package/dist/client/users/apis/index.js +0 -8
  22. package/dist/client/users/index.d.ts +0 -3
  23. package/dist/client/users/index.js +0 -5
  24. package/dist/client/users/models/AccessTokenCreateRequest.d.ts +0 -51
  25. package/dist/client/users/models/AccessTokenCreateRequest.js +0 -53
  26. package/dist/client/users/models/AccessTokenDto.d.ts +0 -75
  27. package/dist/client/users/models/AccessTokenDto.js +0 -61
  28. package/dist/client/users/models/AccessTokensResponse.d.ts +0 -38
  29. package/dist/client/users/models/AccessTokensResponse.js +0 -41
  30. package/dist/client/users/models/DefaultAccessTokenResponse.d.ts +0 -31
  31. package/dist/client/users/models/DefaultAccessTokenResponse.js +0 -38
  32. package/dist/client/users/models/Language.d.ts +0 -31
  33. package/dist/client/users/models/Language.js +0 -38
  34. package/dist/client/users/models/PageUserDto.d.ts +0 -94
  35. package/dist/client/users/models/PageUserDto.js +0 -61
  36. package/dist/client/users/models/Pageable.d.ts +0 -43
  37. package/dist/client/users/models/Pageable.js +0 -42
  38. package/dist/client/users/models/PageableObject.d.ts +0 -62
  39. package/dist/client/users/models/PageableObject.js +0 -49
  40. package/dist/client/users/models/PersonalAccessTokenPrincipal.d.ts +0 -38
  41. package/dist/client/users/models/PersonalAccessTokenPrincipal.js +0 -41
  42. package/dist/client/users/models/Skill.d.ts +0 -31
  43. package/dist/client/users/models/Skill.js +0 -38
  44. package/dist/client/users/models/SortObject.d.ts +0 -43
  45. package/dist/client/users/models/SortObject.js +0 -42
  46. package/dist/client/users/models/UpdateUserRequest.d.ts +0 -61
  47. package/dist/client/users/models/UpdateUserRequest.js +0 -48
  48. package/dist/client/users/models/UserDto.d.ts +0 -111
  49. package/dist/client/users/models/UserDto.js +0 -66
  50. package/dist/client/users/models/UserOverviewDto.d.ts +0 -67
  51. package/dist/client/users/models/UserOverviewDto.js +0 -50
  52. package/dist/client/users/models/index.d.ts +0 -14
  53. package/dist/client/users/models/index.js +0 -16
  54. package/dist/client/users/runtime.d.ts +0 -181
  55. package/dist/client/users/runtime.js +0 -325
package/README.md CHANGED
@@ -80,7 +80,7 @@ npm link
80
80
  ### Run against staging
81
81
 
82
82
  ```bash
83
- node dist/main.js login --base-path https://api.hub.34.90.225.20.nip.io -t <personal access token>
83
+ node dist/main.js login --base-path https://api.hub.34.6.228.233.nip.io -t <personal access token>
84
84
  ```
85
85
 
86
86
  ### Debug output
package/dist/lib/error.js CHANGED
@@ -1,7 +1,8 @@
1
1
  import { HubPlatformError, HubPlatformTimeoutError } from '@quantum-hub/qhub-api/platform';
2
+ import { HubUserError, HubUserTimeoutError } from '@quantum-hub/qhub-api/user';
2
3
  import { debugEnabled } from './debug.js';
3
4
  export const handleError = async (error) => {
4
- if (error instanceof HubPlatformError) {
5
+ if (error instanceof HubPlatformError || error instanceof HubUserError) {
5
6
  const httpStatus = error.statusCode;
6
7
  // message is either in body.errorMessage, body.error or body.detail
7
8
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -18,7 +19,7 @@ export const handleError = async (error) => {
18
19
  }
19
20
  return errorMessage ? `${errorMessage} (${httpStatus})` : `${httpStatus}`;
20
21
  }
21
- if (error instanceof HubPlatformTimeoutError) {
22
+ if (error instanceof HubPlatformTimeoutError || error instanceof HubUserTimeoutError) {
22
23
  return `Internal error occurred, please try again later (${error.message})`;
23
24
  }
24
25
  if (debugEnabled()) {
@@ -1,9 +1,9 @@
1
- import { UserDto } from '../client/users/index.js';
1
+ import { HubUser } from '@quantum-hub/qhub-api/user';
2
2
  import UserConfig from '../model/user-config.js';
3
3
  import UserService from './user-service.js';
4
4
  export default class AuthService {
5
5
  userConfig: UserConfig;
6
6
  userService: UserService;
7
7
  constructor(userConfig: UserConfig);
8
- authenticate(apiKey: string): Promise<UserDto>;
8
+ authenticate(apiKey: string): Promise<HubUser.UserDto>;
9
9
  }
@@ -19,7 +19,7 @@ export default class QuantumHubService extends CommandService {
19
19
  }
20
20
  async getAccounts() {
21
21
  try {
22
- return await this.apiClient.users.getAccounts();
22
+ return await this.apiClient.users.getMyAccounts();
23
23
  }
24
24
  catch (error) {
25
25
  const errorMessage = await handleError(error);
@@ -1,9 +1,9 @@
1
- import { UserDto, UserSettingsApi } from '../client/users/index.js';
1
+ import { HubUser, HubUserClient } from '@quantum-hub/qhub-api/user';
2
2
  import UserConfig from '../model/user-config.js';
3
3
  export default class UserService {
4
4
  basePath: string;
5
5
  defaultHeaders: Record<string, string>;
6
- userSettingsApi: UserSettingsApi;
6
+ apiClient: HubUserClient;
7
7
  constructor(userConfig: UserConfig);
8
- getCurrentUser(apiKey: string): Promise<UserDto>;
8
+ getCurrentUser(apiKey: string): Promise<HubUser.UserDto>;
9
9
  }
@@ -1,28 +1,28 @@
1
- import { Configuration, UserSettingsApi } from '../client/users/index.js';
1
+ import { HubUserClient } from '@quantum-hub/qhub-api/user';
2
2
  import { handleError } from '../lib/error.js';
3
3
  import { defaultBasePath } from '../model/user-config.js';
4
4
  export default class UserService {
5
5
  basePath;
6
6
  defaultHeaders;
7
- userSettingsApi;
7
+ apiClient;
8
8
  constructor(userConfig) {
9
9
  this.basePath = (userConfig.endpoint?.basePath || defaultBasePath) + '/user-service';
10
10
  this.defaultHeaders = userConfig.endpoint?.defaultHeaders || {};
11
11
  const apiKey = userConfig.auth?.value;
12
- this.userSettingsApi = new UserSettingsApi(new Configuration({
12
+ this.apiClient = new HubUserClient({
13
13
  apiKey,
14
- basePath: this.basePath,
14
+ baseUrl: this.basePath,
15
15
  headers: this.defaultHeaders,
16
- }));
16
+ });
17
17
  }
18
18
  async getCurrentUser(apiKey) {
19
- const userSettingsApi = new UserSettingsApi(new Configuration({
19
+ const apiClient = new HubUserClient({
20
20
  apiKey,
21
- basePath: this.basePath,
21
+ baseUrl: this.basePath,
22
22
  headers: this.defaultHeaders,
23
- }));
23
+ });
24
24
  try {
25
- return await userSettingsApi.getUser();
25
+ return await apiClient.userSettings.getCurrentUser();
26
26
  }
27
27
  catch (error) {
28
28
  const errorMessage = await handleError(error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quantum-hub/qhubctl",
3
- "version": "1.12.1",
3
+ "version": "1.13.0",
4
4
  "description": "Kipu Quantum Hub CLI",
5
5
  "author": "Kipu Quantum GmbH",
6
6
  "contributors": [
@@ -1,31 +0,0 @@
1
- /**
2
- * Quantum Platform User Service API
3
- * Part of the OpenAPI specification for the Quantum Platform.
4
- *
5
- * The version of the OpenAPI document: 1.0
6
- * Contact: support-hub@kipu-quantum.com
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import * as runtime from '../runtime.js';
13
- import type { PersonalAccessTokenPrincipal } from '../models/index.js';
14
- export interface AuthorizeUserRequest {
15
- xAuthToken?: string;
16
- }
17
- /**
18
- *
19
- */
20
- export declare class AuthenticationApi extends runtime.BaseAPI {
21
- /**
22
- * Checks the given personal access token and returns the user details.
23
- * Checks the given personal access token and returns the user details.
24
- */
25
- authorizeUserRaw(requestParameters: AuthorizeUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PersonalAccessTokenPrincipal>>;
26
- /**
27
- * Checks the given personal access token and returns the user details.
28
- * Checks the given personal access token and returns the user details.
29
- */
30
- authorizeUser(requestParameters?: AuthorizeUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PersonalAccessTokenPrincipal>;
31
- }
@@ -1,46 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Quantum Platform User Service API
5
- * Part of the OpenAPI specification for the Quantum Platform.
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- * Contact: support-hub@kipu-quantum.com
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- import * as runtime from '../runtime.js';
15
- import { PersonalAccessTokenPrincipalFromJSON, } from '../models/index.js';
16
- /**
17
- *
18
- */
19
- export class AuthenticationApi extends runtime.BaseAPI {
20
- /**
21
- * Checks the given personal access token and returns the user details.
22
- * Checks the given personal access token and returns the user details.
23
- */
24
- async authorizeUserRaw(requestParameters, initOverrides) {
25
- const queryParameters = {};
26
- const headerParameters = {};
27
- if (requestParameters['xAuthToken'] != null) {
28
- headerParameters['X-Auth-Token'] = String(requestParameters['xAuthToken']);
29
- }
30
- const response = await this.request({
31
- path: `/authorize`,
32
- method: 'POST',
33
- headers: headerParameters,
34
- query: queryParameters,
35
- }, initOverrides);
36
- return new runtime.JSONApiResponse(response, (jsonValue) => PersonalAccessTokenPrincipalFromJSON(jsonValue));
37
- }
38
- /**
39
- * Checks the given personal access token and returns the user details.
40
- * Checks the given personal access token and returns the user details.
41
- */
42
- async authorizeUser(requestParameters = {}, initOverrides) {
43
- const response = await this.authorizeUserRaw(requestParameters, initOverrides);
44
- return await response.value();
45
- }
46
- }
@@ -1,44 +0,0 @@
1
- /**
2
- * Quantum Platform User Service API
3
- * Part of the OpenAPI specification for the Quantum Platform.
4
- *
5
- * The version of the OpenAPI document: 1.0
6
- * Contact: support-hub@kipu-quantum.com
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import * as runtime from '../runtime.js';
13
- import type { PageUserDto, Pageable, UserDto } from '../models/index.js';
14
- export interface FindExpertByIdRequest {
15
- id: string;
16
- }
17
- export interface GetExpertsRequest {
18
- pageable: Pageable;
19
- }
20
- /**
21
- *
22
- */
23
- export declare class ExpertsApi extends runtime.BaseAPI {
24
- /**
25
- * Returns the expert details with the given id.
26
- * Returns the expert details with the given id.
27
- */
28
- findExpertByIdRaw(requestParameters: FindExpertByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserDto>>;
29
- /**
30
- * Returns the expert details with the given id.
31
- * Returns the expert details with the given id.
32
- */
33
- findExpertById(requestParameters: FindExpertByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserDto>;
34
- /**
35
- * Lists all experts.
36
- * Lists all experts.
37
- */
38
- getExpertsRaw(requestParameters: GetExpertsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PageUserDto>>;
39
- /**
40
- * Lists all experts.
41
- * Lists all experts.
42
- */
43
- getExperts(requestParameters: GetExpertsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PageUserDto>;
44
- }
@@ -1,75 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Quantum Platform User Service API
5
- * Part of the OpenAPI specification for the Quantum Platform.
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- * Contact: support-hub@kipu-quantum.com
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- import * as runtime from '../runtime.js';
15
- import { PageUserDtoFromJSON, UserDtoFromJSON, } from '../models/index.js';
16
- /**
17
- *
18
- */
19
- export class ExpertsApi extends runtime.BaseAPI {
20
- /**
21
- * Returns the expert details with the given id.
22
- * Returns the expert details with the given id.
23
- */
24
- async findExpertByIdRaw(requestParameters, initOverrides) {
25
- if (requestParameters['id'] == null) {
26
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling findExpertById().');
27
- }
28
- const queryParameters = {};
29
- const headerParameters = {};
30
- const response = await this.request({
31
- path: `/experts/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
32
- method: 'GET',
33
- headers: headerParameters,
34
- query: queryParameters,
35
- }, initOverrides);
36
- return new runtime.JSONApiResponse(response, (jsonValue) => UserDtoFromJSON(jsonValue));
37
- }
38
- /**
39
- * Returns the expert details with the given id.
40
- * Returns the expert details with the given id.
41
- */
42
- async findExpertById(requestParameters, initOverrides) {
43
- const response = await this.findExpertByIdRaw(requestParameters, initOverrides);
44
- return await response.value();
45
- }
46
- /**
47
- * Lists all experts.
48
- * Lists all experts.
49
- */
50
- async getExpertsRaw(requestParameters, initOverrides) {
51
- if (requestParameters['pageable'] == null) {
52
- throw new runtime.RequiredError('pageable', 'Required parameter "pageable" was null or undefined when calling getExperts().');
53
- }
54
- const queryParameters = {};
55
- if (requestParameters['pageable'] != null) {
56
- queryParameters['pageable'] = requestParameters['pageable'];
57
- }
58
- const headerParameters = {};
59
- const response = await this.request({
60
- path: `/experts`,
61
- method: 'GET',
62
- headers: headerParameters,
63
- query: queryParameters,
64
- }, initOverrides);
65
- return new runtime.JSONApiResponse(response, (jsonValue) => PageUserDtoFromJSON(jsonValue));
66
- }
67
- /**
68
- * Lists all experts.
69
- * Lists all experts.
70
- */
71
- async getExperts(requestParameters, initOverrides) {
72
- const response = await this.getExpertsRaw(requestParameters, initOverrides);
73
- return await response.value();
74
- }
75
- }
@@ -1,46 +0,0 @@
1
- /**
2
- * Quantum Platform User Service API
3
- * Part of the OpenAPI specification for the Quantum Platform.
4
- *
5
- * The version of the OpenAPI document: 1.0
6
- * Contact: support-hub@kipu-quantum.com
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import * as runtime from '../runtime.js';
13
- import type { PageUserDto, UserDto } from '../models/index.js';
14
- export interface FindByLastname11Request {
15
- lastname: string;
16
- firstname: string;
17
- email: string;
18
- }
19
- export interface SearchExpertsRequest {
20
- q: string;
21
- }
22
- /**
23
- *
24
- */
25
- export declare class SearchApi extends runtime.BaseAPI {
26
- /**
27
- * Search for users based on the given query parameter.
28
- * Search for users based on the given query parameter.
29
- */
30
- findByLastname11Raw(requestParameters: FindByLastname11Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<UserDto>>>;
31
- /**
32
- * Search for users based on the given query parameter.
33
- * Search for users based on the given query parameter.
34
- */
35
- findByLastname11(requestParameters: FindByLastname11Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<UserDto>>;
36
- /**
37
- * Search for experts based on the given query parameter.
38
- * Search for experts based on the given query parameter.
39
- */
40
- searchExpertsRaw(requestParameters: SearchExpertsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PageUserDto>>;
41
- /**
42
- * Search for experts based on the given query parameter.
43
- * Search for experts based on the given query parameter.
44
- */
45
- searchExperts(requestParameters: SearchExpertsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PageUserDto>;
46
- }
@@ -1,97 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Quantum Platform User Service API
5
- * Part of the OpenAPI specification for the Quantum Platform.
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- * Contact: support-hub@kipu-quantum.com
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- import * as runtime from '../runtime.js';
15
- import { PageUserDtoFromJSON, UserDtoFromJSON, } from '../models/index.js';
16
- /**
17
- *
18
- */
19
- export class SearchApi extends runtime.BaseAPI {
20
- /**
21
- * Search for users based on the given query parameter.
22
- * Search for users based on the given query parameter.
23
- */
24
- async findByLastname11Raw(requestParameters, initOverrides) {
25
- if (requestParameters['lastname'] == null) {
26
- throw new runtime.RequiredError('lastname', 'Required parameter "lastname" was null or undefined when calling findByLastname11().');
27
- }
28
- if (requestParameters['firstname'] == null) {
29
- throw new runtime.RequiredError('firstname', 'Required parameter "firstname" was null or undefined when calling findByLastname11().');
30
- }
31
- if (requestParameters['email'] == null) {
32
- throw new runtime.RequiredError('email', 'Required parameter "email" was null or undefined when calling findByLastname11().');
33
- }
34
- const queryParameters = {};
35
- if (requestParameters['lastname'] != null) {
36
- queryParameters['lastname'] = requestParameters['lastname'];
37
- }
38
- if (requestParameters['firstname'] != null) {
39
- queryParameters['firstname'] = requestParameters['firstname'];
40
- }
41
- if (requestParameters['email'] != null) {
42
- queryParameters['email'] = requestParameters['email'];
43
- }
44
- const headerParameters = {};
45
- if (this.configuration && this.configuration.apiKey) {
46
- headerParameters["X-Auth-Token"] = await this.configuration.apiKey("X-Auth-Token"); // apiKey authentication
47
- }
48
- if (this.configuration && this.configuration.accessToken) {
49
- // oauth required
50
- headerParameters["Authorization"] = await this.configuration.accessToken("oauth2", []);
51
- }
52
- const response = await this.request({
53
- path: `/search`,
54
- method: 'GET',
55
- headers: headerParameters,
56
- query: queryParameters,
57
- }, initOverrides);
58
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UserDtoFromJSON));
59
- }
60
- /**
61
- * Search for users based on the given query parameter.
62
- * Search for users based on the given query parameter.
63
- */
64
- async findByLastname11(requestParameters, initOverrides) {
65
- const response = await this.findByLastname11Raw(requestParameters, initOverrides);
66
- return await response.value();
67
- }
68
- /**
69
- * Search for experts based on the given query parameter.
70
- * Search for experts based on the given query parameter.
71
- */
72
- async searchExpertsRaw(requestParameters, initOverrides) {
73
- if (requestParameters['q'] == null) {
74
- throw new runtime.RequiredError('q', 'Required parameter "q" was null or undefined when calling searchExperts().');
75
- }
76
- const queryParameters = {};
77
- if (requestParameters['q'] != null) {
78
- queryParameters['q'] = requestParameters['q'];
79
- }
80
- const headerParameters = {};
81
- const response = await this.request({
82
- path: `/search/experts`,
83
- method: 'GET',
84
- headers: headerParameters,
85
- query: queryParameters,
86
- }, initOverrides);
87
- return new runtime.JSONApiResponse(response, (jsonValue) => PageUserDtoFromJSON(jsonValue));
88
- }
89
- /**
90
- * Search for experts based on the given query parameter.
91
- * Search for experts based on the given query parameter.
92
- */
93
- async searchExperts(requestParameters, initOverrides) {
94
- const response = await this.searchExpertsRaw(requestParameters, initOverrides);
95
- return await response.value();
96
- }
97
- }
@@ -1,139 +0,0 @@
1
- /**
2
- * Quantum Platform User Service API
3
- * Part of the OpenAPI specification for the Quantum Platform.
4
- *
5
- * The version of the OpenAPI document: 1.0
6
- * Contact: support-hub@kipu-quantum.com
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import * as runtime from '../runtime.js';
13
- import type { Language, Skill, UpdateUserRequest, UserDto } from '../models/index.js';
14
- export interface AddLanguageRequest {
15
- language: Language;
16
- }
17
- export interface AddSkillRequest {
18
- skill: Skill;
19
- }
20
- export interface DeleteLanguageRequest {
21
- isoCode: string;
22
- }
23
- export interface DeleteSkillRequest {
24
- name: string;
25
- }
26
- export interface UpdateBackgroundImageRequest {
27
- file: Blob;
28
- }
29
- export interface UpdateProfileImageRequest {
30
- file: Blob;
31
- }
32
- export interface UpdateUserOperationRequest {
33
- updateUserRequest: UpdateUserRequest;
34
- }
35
- /**
36
- *
37
- */
38
- export declare class UserSettingsApi extends runtime.BaseAPI {
39
- /**
40
- * Adds a new language to the currently logged-in user\'s profile.
41
- * Adds a new language to the currently logged-in user\'s profile.
42
- */
43
- addLanguageRaw(requestParameters: AddLanguageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserDto>>;
44
- /**
45
- * Adds a new language to the currently logged-in user\'s profile.
46
- * Adds a new language to the currently logged-in user\'s profile.
47
- */
48
- addLanguage(requestParameters: AddLanguageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserDto>;
49
- /**
50
- * Adds a new skill to the currently logged-in user\'s profile.
51
- * Adds a new skill to the currently logged-in user\'s profile.
52
- */
53
- addSkillRaw(requestParameters: AddSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserDto>>;
54
- /**
55
- * Adds a new skill to the currently logged-in user\'s profile.
56
- * Adds a new skill to the currently logged-in user\'s profile.
57
- */
58
- addSkill(requestParameters: AddSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserDto>;
59
- /**
60
- * Deletes a language from the currently logged-in user\'s profile.
61
- * Deletes a language from the currently logged-in user\'s profile.
62
- */
63
- deleteLanguageRaw(requestParameters: DeleteLanguageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
64
- /**
65
- * Deletes a language from the currently logged-in user\'s profile.
66
- * Deletes a language from the currently logged-in user\'s profile.
67
- */
68
- deleteLanguage(requestParameters: DeleteLanguageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
69
- /**
70
- * Deletes a skill from the currently logged-in user\'s profile.
71
- * Deletes a skill from the currently logged-in user\'s profile.
72
- */
73
- deleteSkillRaw(requestParameters: DeleteSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
74
- /**
75
- * Deletes a skill from the currently logged-in user\'s profile.
76
- * Deletes a skill from the currently logged-in user\'s profile.
77
- */
78
- deleteSkill(requestParameters: DeleteSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
79
- /**
80
- * Deletes the currently logged-in user.
81
- * Deletes the currently logged-in user.
82
- */
83
- deleteUserRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
84
- /**
85
- * Deletes the currently logged-in user.
86
- * Deletes the currently logged-in user.
87
- */
88
- deleteUser(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
89
- /**
90
- * Returns the user details of the currently logged-in user.
91
- * Returns the user details of the currently logged-in user.
92
- */
93
- getUserRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserDto>>;
94
- /**
95
- * Returns the user details of the currently logged-in user.
96
- * Returns the user details of the currently logged-in user.
97
- */
98
- getUser(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserDto>;
99
- /**
100
- * Updates the background image (profile page) of the currently logged-in user.
101
- * Updates the background image (profile page) of the currently logged-in user.
102
- */
103
- updateBackgroundImageRaw(requestParameters: UpdateBackgroundImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
104
- /**
105
- * Updates the background image (profile page) of the currently logged-in user.
106
- * Updates the background image (profile page) of the currently logged-in user.
107
- */
108
- updateBackgroundImage(requestParameters: UpdateBackgroundImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
109
- /**
110
- * Updates the notification settings of the currently logged-in user.
111
- * Updates the notification settings of the currently logged-in user.
112
- */
113
- updateNotificationSettingsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserDto>>;
114
- /**
115
- * Updates the notification settings of the currently logged-in user.
116
- * Updates the notification settings of the currently logged-in user.
117
- */
118
- updateNotificationSettings(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserDto>;
119
- /**
120
- * Updates the profile image of the currently logged-in user.
121
- * Updates the profile image of the currently logged-in user.
122
- */
123
- updateProfileImageRaw(requestParameters: UpdateProfileImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
124
- /**
125
- * Updates the profile image of the currently logged-in user.
126
- * Updates the profile image of the currently logged-in user.
127
- */
128
- updateProfileImage(requestParameters: UpdateProfileImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
129
- /**
130
- * Updates the user details of the currently logged-in user.
131
- * Updates the user details of the currently logged-in user.
132
- */
133
- updateUserRaw(requestParameters: UpdateUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserDto>>;
134
- /**
135
- * Updates the user details of the currently logged-in user.
136
- * Updates the user details of the currently logged-in user.
137
- */
138
- updateUser(requestParameters: UpdateUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserDto>;
139
- }