@quantum-hub/qhubctl 1.0.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.
- package/LICENSE +201 -0
- package/README.md +41 -0
- package/bin/dev.cmd +3 -0
- package/bin/dev.js +15 -0
- package/bin/run.cmd +3 -0
- package/bin/run.js +12 -0
- package/dist/client/kqh/apis/ServicePlatformApplicationsApi.d.ts +89 -0
- package/dist/client/kqh/apis/ServicePlatformApplicationsApi.js +259 -0
- package/dist/client/kqh/apis/ServicePlatformDashboardApi.d.ts +44 -0
- package/dist/client/kqh/apis/ServicePlatformDashboardApi.js +143 -0
- package/dist/client/kqh/apis/ServicePlatformDataPoolsApi.d.ts +133 -0
- package/dist/client/kqh/apis/ServicePlatformDataPoolsApi.js +410 -0
- package/dist/client/kqh/apis/ServicePlatformJobsApi.d.ts +101 -0
- package/dist/client/kqh/apis/ServicePlatformJobsApi.js +298 -0
- package/dist/client/kqh/apis/ServicePlatformMarketplaceApi.d.ts +48 -0
- package/dist/client/kqh/apis/ServicePlatformMarketplaceApi.js +152 -0
- package/dist/client/kqh/apis/ServicePlatformMeteringAPIApi.d.ts +29 -0
- package/dist/client/kqh/apis/ServicePlatformMeteringAPIApi.js +90 -0
- package/dist/client/kqh/apis/ServicePlatformServicesApi.d.ts +501 -0
- package/dist/client/kqh/apis/ServicePlatformServicesApi.js +1509 -0
- package/dist/client/kqh/apis/ServicePlatformSubscriptionsApi.d.ts +66 -0
- package/dist/client/kqh/apis/ServicePlatformSubscriptionsApi.js +194 -0
- package/dist/client/kqh/apis/TaxonomiesApi.d.ts +90 -0
- package/dist/client/kqh/apis/TaxonomiesApi.js +309 -0
- package/dist/client/kqh/apis/index.d.ts +9 -0
- package/dist/client/kqh/apis/index.js +27 -0
- package/dist/client/kqh/index.d.ts +3 -0
- package/dist/client/kqh/index.js +21 -0
- package/dist/client/kqh/models/AccessTokenDto.d.ts +81 -0
- package/dist/client/kqh/models/AccessTokenDto.js +66 -0
- package/dist/client/kqh/models/AmountMajorDto.d.ts +37 -0
- package/dist/client/kqh/models/AmountMajorDto.js +46 -0
- package/dist/client/kqh/models/ApiDto.d.ts +144 -0
- package/dist/client/kqh/models/ApiDto.js +99 -0
- package/dist/client/kqh/models/ApiOverviewDto.d.ts +119 -0
- package/dist/client/kqh/models/ApiOverviewDto.js +90 -0
- package/dist/client/kqh/models/ApplicationDto.d.ts +64 -0
- package/dist/client/kqh/models/ApplicationDto.js +60 -0
- package/dist/client/kqh/models/BuildJobDto.d.ts +75 -0
- package/dist/client/kqh/models/BuildJobDto.js +71 -0
- package/dist/client/kqh/models/CpuConfiguration.d.ts +38 -0
- package/dist/client/kqh/models/CpuConfiguration.js +49 -0
- package/dist/client/kqh/models/CreateApplicationRequest.d.ts +31 -0
- package/dist/client/kqh/models/CreateApplicationRequest.js +44 -0
- package/dist/client/kqh/models/CreateDataPoolRequest.d.ts +31 -0
- package/dist/client/kqh/models/CreateDataPoolRequest.js +46 -0
- package/dist/client/kqh/models/CreateExternalServicePricingPlanRequest.d.ts +46 -0
- package/dist/client/kqh/models/CreateExternalServicePricingPlanRequest.js +57 -0
- package/dist/client/kqh/models/CreateJobRequest.d.ts +62 -0
- package/dist/client/kqh/models/CreateJobRequest.js +57 -0
- package/dist/client/kqh/models/CreateManagedServicePricingPlanRequest.d.ts +73 -0
- package/dist/client/kqh/models/CreateManagedServicePricingPlanRequest.js +79 -0
- package/dist/client/kqh/models/CreateProductRequest.d.ts +43 -0
- package/dist/client/kqh/models/CreateProductRequest.js +52 -0
- package/dist/client/kqh/models/CreateSubscriptionRequest.d.ts +37 -0
- package/dist/client/kqh/models/CreateSubscriptionRequest.js +50 -0
- package/dist/client/kqh/models/CreateWorkflowServiceRequest.d.ts +37 -0
- package/dist/client/kqh/models/CreateWorkflowServiceRequest.js +48 -0
- package/dist/client/kqh/models/DataPoolDto.d.ts +166 -0
- package/dist/client/kqh/models/DataPoolDto.js +105 -0
- package/dist/client/kqh/models/DataPoolRef.d.ts +43 -0
- package/dist/client/kqh/models/DataPoolRef.js +48 -0
- package/dist/client/kqh/models/DataSourceDescriptorDto.d.ts +89 -0
- package/dist/client/kqh/models/DataSourceDescriptorDto.js +69 -0
- package/dist/client/kqh/models/FileDto.d.ts +73 -0
- package/dist/client/kqh/models/FileDto.js +51 -0
- package/dist/client/kqh/models/FileSource.d.ts +26 -0
- package/dist/client/kqh/models/FileSource.js +34 -0
- package/dist/client/kqh/models/GpuConfiguration.d.ts +49 -0
- package/dist/client/kqh/models/GpuConfiguration.js +60 -0
- package/dist/client/kqh/models/JobDto.d.ts +117 -0
- package/dist/client/kqh/models/JobDto.js +82 -0
- package/dist/client/kqh/models/JobOverviewDto.d.ts +74 -0
- package/dist/client/kqh/models/JobOverviewDto.js +67 -0
- package/dist/client/kqh/models/MemoryConfiguration.d.ts +38 -0
- package/dist/client/kqh/models/MemoryConfiguration.js +49 -0
- package/dist/client/kqh/models/MeteringRequest.d.ts +43 -0
- package/dist/client/kqh/models/MeteringRequest.js +48 -0
- package/dist/client/kqh/models/MeteringResponse.d.ts +49 -0
- package/dist/client/kqh/models/MeteringResponse.js +50 -0
- package/dist/client/kqh/models/MonthAmountDto.d.ts +51 -0
- package/dist/client/kqh/models/MonthAmountDto.js +52 -0
- package/dist/client/kqh/models/OwnerDto.d.ts +67 -0
- package/dist/client/kqh/models/OwnerDto.js +56 -0
- package/dist/client/kqh/models/PageDataPoolDto.d.ts +94 -0
- package/dist/client/kqh/models/PageDataPoolDto.js +67 -0
- package/dist/client/kqh/models/PageableObject.d.ts +62 -0
- package/dist/client/kqh/models/PageableObject.js +55 -0
- package/dist/client/kqh/models/PricingPlanDto.d.ts +52 -0
- package/dist/client/kqh/models/PricingPlanDto.js +57 -0
- package/dist/client/kqh/models/ProductAmountDto.d.ts +38 -0
- package/dist/client/kqh/models/ProductAmountDto.js +47 -0
- package/dist/client/kqh/models/ProductDto.d.ts +83 -0
- package/dist/client/kqh/models/ProductDto.js +76 -0
- package/dist/client/kqh/models/ProductGroupDto.d.ts +45 -0
- package/dist/client/kqh/models/ProductGroupDto.js +50 -0
- package/dist/client/kqh/models/ProductUsageDto.d.ts +61 -0
- package/dist/client/kqh/models/ProductUsageDto.js +54 -0
- package/dist/client/kqh/models/RegistrySource.d.ts +52 -0
- package/dist/client/kqh/models/RegistrySource.js +55 -0
- package/dist/client/kqh/models/RepositorySource.d.ts +32 -0
- package/dist/client/kqh/models/RepositorySource.js +47 -0
- package/dist/client/kqh/models/ResourceConfiguration.d.ts +31 -0
- package/dist/client/kqh/models/ResourceConfiguration.js +58 -0
- package/dist/client/kqh/models/ReviewDto.d.ts +51 -0
- package/dist/client/kqh/models/ReviewDto.js +56 -0
- package/dist/client/kqh/models/RuntimeConfiguration.d.ts +53 -0
- package/dist/client/kqh/models/RuntimeConfiguration.js +56 -0
- package/dist/client/kqh/models/ServiceDefinitionCommand.d.ts +39 -0
- package/dist/client/kqh/models/ServiceDefinitionCommand.js +52 -0
- package/dist/client/kqh/models/ServiceDefinitionDto.d.ts +180 -0
- package/dist/client/kqh/models/ServiceDefinitionDto.js +108 -0
- package/dist/client/kqh/models/ServiceDefinitionDtoSource.d.ts +23 -0
- package/dist/client/kqh/models/ServiceDefinitionDtoSource.js +54 -0
- package/dist/client/kqh/models/ServiceDefinitionOverviewDto.d.ts +79 -0
- package/dist/client/kqh/models/ServiceDefinitionOverviewDto.js +71 -0
- package/dist/client/kqh/models/ServiceDto.d.ts +59 -0
- package/dist/client/kqh/models/ServiceDto.js +59 -0
- package/dist/client/kqh/models/ServiceExecutionConsumerDto.d.ts +67 -0
- package/dist/client/kqh/models/ServiceExecutionConsumerDto.js +64 -0
- package/dist/client/kqh/models/ServiceExecutionDto.d.ts +49 -0
- package/dist/client/kqh/models/ServiceExecutionDto.js +50 -0
- package/dist/client/kqh/models/ServiceOverviewDto.d.ts +115 -0
- package/dist/client/kqh/models/ServiceOverviewDto.js +92 -0
- package/dist/client/kqh/models/ServiceSource.d.ts +31 -0
- package/dist/client/kqh/models/ServiceSource.js +58 -0
- package/dist/client/kqh/models/SortObject.d.ts +43 -0
- package/dist/client/kqh/models/SortObject.js +48 -0
- package/dist/client/kqh/models/SubscriptionDto.d.ts +58 -0
- package/dist/client/kqh/models/SubscriptionDto.js +55 -0
- package/dist/client/kqh/models/TaxonomyElement.d.ts +43 -0
- package/dist/client/kqh/models/TaxonomyElement.js +48 -0
- package/dist/client/kqh/models/UpdateDataPoolRequest.d.ts +109 -0
- package/dist/client/kqh/models/UpdateDataPoolRequest.js +72 -0
- package/dist/client/kqh/models/UpdateResourceConfigurationRequest.d.ts +23 -0
- package/dist/client/kqh/models/UpdateResourceConfigurationRequest.js +54 -0
- package/dist/client/kqh/models/UpdateVersionRequest.d.ts +44 -0
- package/dist/client/kqh/models/UpdateVersionRequest.js +49 -0
- package/dist/client/kqh/models/UpdateWorkflowServiceRequest.d.ts +31 -0
- package/dist/client/kqh/models/UpdateWorkflowServiceRequest.js +44 -0
- package/dist/client/kqh/models/ValidationResult.d.ts +52 -0
- package/dist/client/kqh/models/ValidationResult.js +57 -0
- package/dist/client/kqh/models/index.d.ts +57 -0
- package/dist/client/kqh/models/index.js +75 -0
- package/dist/client/kqh/runtime.d.ts +181 -0
- package/dist/client/kqh/runtime.js +340 -0
- package/dist/client/users/apis/AuthenticationApi.d.ts +31 -0
- package/dist/client/users/apis/AuthenticationApi.js +83 -0
- package/dist/client/users/apis/ExpertsApi.d.ts +44 -0
- package/dist/client/users/apis/ExpertsApi.js +112 -0
- package/dist/client/users/apis/SearchApi.d.ts +46 -0
- package/dist/client/users/apis/SearchApi.js +134 -0
- package/dist/client/users/apis/UserSettingsApi.d.ts +139 -0
- package/dist/client/users/apis/UserSettingsApi.js +417 -0
- package/dist/client/users/apis/UserSettingsPersonalAccessTokensApi.d.ts +64 -0
- package/dist/client/users/apis/UserSettingsPersonalAccessTokensApi.js +184 -0
- package/dist/client/users/apis/UsersApi.d.ts +70 -0
- package/dist/client/users/apis/UsersApi.js +170 -0
- package/dist/client/users/apis/index.d.ts +6 -0
- package/dist/client/users/apis/index.js +24 -0
- package/dist/client/users/index.d.ts +3 -0
- package/dist/client/users/index.js +21 -0
- package/dist/client/users/models/AccessTokenCreateRequest.d.ts +51 -0
- package/dist/client/users/models/AccessTokenCreateRequest.js +60 -0
- package/dist/client/users/models/AccessTokenDto.d.ts +75 -0
- package/dist/client/users/models/AccessTokenDto.js +68 -0
- package/dist/client/users/models/AccessTokensResponse.d.ts +38 -0
- package/dist/client/users/models/AccessTokensResponse.js +47 -0
- package/dist/client/users/models/DefaultAccessTokenResponse.d.ts +31 -0
- package/dist/client/users/models/DefaultAccessTokenResponse.js +44 -0
- package/dist/client/users/models/Language.d.ts +31 -0
- package/dist/client/users/models/Language.js +44 -0
- package/dist/client/users/models/PageUserDto.d.ts +94 -0
- package/dist/client/users/models/PageUserDto.js +67 -0
- package/dist/client/users/models/Pageable.d.ts +43 -0
- package/dist/client/users/models/Pageable.js +48 -0
- package/dist/client/users/models/PageableObject.d.ts +62 -0
- package/dist/client/users/models/PageableObject.js +55 -0
- package/dist/client/users/models/PersonalAccessTokenPrincipal.d.ts +38 -0
- package/dist/client/users/models/PersonalAccessTokenPrincipal.js +47 -0
- package/dist/client/users/models/Skill.d.ts +31 -0
- package/dist/client/users/models/Skill.js +44 -0
- package/dist/client/users/models/SortObject.d.ts +43 -0
- package/dist/client/users/models/SortObject.js +48 -0
- package/dist/client/users/models/UpdateUserRequest.d.ts +61 -0
- package/dist/client/users/models/UpdateUserRequest.js +54 -0
- package/dist/client/users/models/UserDto.d.ts +111 -0
- package/dist/client/users/models/UserDto.js +72 -0
- package/dist/client/users/models/UserOverviewDto.d.ts +67 -0
- package/dist/client/users/models/UserOverviewDto.js +56 -0
- package/dist/client/users/models/index.d.ts +14 -0
- package/dist/client/users/models/index.js +32 -0
- package/dist/client/users/runtime.d.ts +181 -0
- package/dist/client/users/runtime.js +340 -0
- package/dist/commands/compress/index.d.ts +6 -0
- package/dist/commands/compress/index.js +31 -0
- package/dist/commands/datapool/upload.d.ts +23 -0
- package/dist/commands/datapool/upload.js +266 -0
- package/dist/commands/get-context/index.d.ts +6 -0
- package/dist/commands/get-context/index.js +13 -0
- package/dist/commands/init/index.d.ts +10 -0
- package/dist/commands/init/index.js +81 -0
- package/dist/commands/list-contexts/index.d.ts +9 -0
- package/dist/commands/list-contexts/index.js +36 -0
- package/dist/commands/login/index.d.ts +10 -0
- package/dist/commands/login/index.js +68 -0
- package/dist/commands/logout/index.d.ts +6 -0
- package/dist/commands/logout/index.js +21 -0
- package/dist/commands/openapi/index.d.ts +26 -0
- package/dist/commands/openapi/index.js +313 -0
- package/dist/commands/run/index.d.ts +18 -0
- package/dist/commands/run/index.js +155 -0
- package/dist/commands/serve/index.d.ts +13 -0
- package/dist/commands/serve/index.js +93 -0
- package/dist/commands/services/index.d.ts +14 -0
- package/dist/commands/services/index.js +71 -0
- package/dist/commands/set-context/index.d.ts +17 -0
- package/dist/commands/set-context/index.js +69 -0
- package/dist/commands/up/index.d.ts +19 -0
- package/dist/commands/up/index.js +196 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -0
- package/dist/lib/command.d.ts +6 -0
- package/dist/lib/command.js +21 -0
- package/dist/lib/debug.d.ts +1 -0
- package/dist/lib/debug.js +5 -0
- package/dist/lib/entrypoint-resolver.d.ts +52 -0
- package/dist/lib/entrypoint-resolver.js +125 -0
- package/dist/lib/error.d.ts +1 -0
- package/dist/lib/error.js +20 -0
- package/dist/lib/fetch.d.ts +7 -0
- package/dist/lib/fetch.js +43 -0
- package/dist/lib/init-user-input.d.ts +18 -0
- package/dist/lib/init-user-input.js +87 -0
- package/dist/lib/random-name.d.ts +1 -0
- package/dist/lib/random-name.js +161 -0
- package/dist/lib/random-string.d.ts +1 -0
- package/dist/lib/random-string.js +12 -0
- package/dist/lib/repository.d.ts +3 -0
- package/dist/lib/repository.js +51 -0
- package/dist/lib/stream-to-blob.d.ts +2 -0
- package/dist/lib/stream-to-blob.js +27 -0
- package/dist/lib/up/get-description.d.ts +1 -0
- package/dist/lib/up/get-description.js +29 -0
- package/dist/lib/up/ignore.d.ts +1 -0
- package/dist/lib/up/ignore.js +21 -0
- package/dist/lib/up/zip.d.ts +1 -0
- package/dist/lib/up/zip.js +40 -0
- package/dist/model/account.d.ts +5 -0
- package/dist/model/account.js +2 -0
- package/dist/model/command.d.ts +12 -0
- package/dist/model/command.js +55 -0
- package/dist/model/managed-service-config.d.ts +28 -0
- package/dist/model/managed-service-config.js +16 -0
- package/dist/model/user-config.d.ts +22 -0
- package/dist/model/user-config.js +8 -0
- package/dist/service/auth-service.d.ts +9 -0
- package/dist/service/auth-service.js +38 -0
- package/dist/service/command-service.d.ts +9 -0
- package/dist/service/command-service.js +14 -0
- package/dist/service/quantum-hub-service.d.ts +24 -0
- package/dist/service/quantum-hub-service.js +222 -0
- package/dist/service/service-config-service.d.ts +3 -0
- package/dist/service/service-config-service.js +26 -0
- package/dist/service/user-config-service.d.ts +3 -0
- package/dist/service/user-config-service.js +26 -0
- package/dist/service/user-service.d.ts +9 -0
- package/dist/service/user-service.js +35 -0
- package/oclif.manifest.json +530 -0
- package/package.json +107 -0
|
@@ -0,0 +1,70 @@
|
|
|
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';
|
|
13
|
+
import type { UserOverviewDto } from '../models/index';
|
|
14
|
+
export interface ExistsByIdRequest {
|
|
15
|
+
id: string;
|
|
16
|
+
}
|
|
17
|
+
export interface FindByIdRequest {
|
|
18
|
+
id: string;
|
|
19
|
+
}
|
|
20
|
+
export interface GetBackgroundImageRequest {
|
|
21
|
+
id: string;
|
|
22
|
+
}
|
|
23
|
+
export interface GetProfileImageRequest {
|
|
24
|
+
id: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
export declare class UsersApi extends runtime.BaseAPI {
|
|
30
|
+
/**
|
|
31
|
+
* Checks if a user with the given id exists.
|
|
32
|
+
* Checks if a user with the given id exists.
|
|
33
|
+
*/
|
|
34
|
+
existsByIdRaw(requestParameters: ExistsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
35
|
+
/**
|
|
36
|
+
* Checks if a user with the given id exists.
|
|
37
|
+
* Checks if a user with the given id exists.
|
|
38
|
+
*/
|
|
39
|
+
existsById(requestParameters: ExistsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
40
|
+
/**
|
|
41
|
+
* Returns the user details of the user with the given id.
|
|
42
|
+
* Returns the user details of the user with the given id.
|
|
43
|
+
*/
|
|
44
|
+
findByIdRaw(requestParameters: FindByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserOverviewDto>>;
|
|
45
|
+
/**
|
|
46
|
+
* Returns the user details of the user with the given id.
|
|
47
|
+
* Returns the user details of the user with the given id.
|
|
48
|
+
*/
|
|
49
|
+
findById(requestParameters: FindByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserOverviewDto>;
|
|
50
|
+
/**
|
|
51
|
+
* Returns the current background image of the given user.
|
|
52
|
+
* Returns the current background image of the given user.
|
|
53
|
+
*/
|
|
54
|
+
getBackgroundImageRaw(requestParameters: GetBackgroundImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
|
|
55
|
+
/**
|
|
56
|
+
* Returns the current background image of the given user.
|
|
57
|
+
* Returns the current background image of the given user.
|
|
58
|
+
*/
|
|
59
|
+
getBackgroundImage(requestParameters: GetBackgroundImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
|
|
60
|
+
/**
|
|
61
|
+
* Returns the current profile image of the given user.
|
|
62
|
+
* Returns the current profile image of the given user.
|
|
63
|
+
*/
|
|
64
|
+
getProfileImageRaw(requestParameters: GetProfileImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
|
|
65
|
+
/**
|
|
66
|
+
* Returns the current profile image of the given user.
|
|
67
|
+
* Returns the current profile image of the given user.
|
|
68
|
+
*/
|
|
69
|
+
getProfileImage(requestParameters: GetProfileImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
|
|
70
|
+
}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Quantum Platform User Service API
|
|
6
|
+
* Part of the OpenAPI specification for the Quantum Platform.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: support-hub@kipu-quantum.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
+
}) : function(o, v) {
|
|
29
|
+
o["default"] = v;
|
|
30
|
+
});
|
|
31
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
32
|
+
var ownKeys = function(o) {
|
|
33
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
34
|
+
var ar = [];
|
|
35
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
36
|
+
return ar;
|
|
37
|
+
};
|
|
38
|
+
return ownKeys(o);
|
|
39
|
+
};
|
|
40
|
+
return function (mod) {
|
|
41
|
+
if (mod && mod.__esModule) return mod;
|
|
42
|
+
var result = {};
|
|
43
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
+
__setModuleDefault(result, mod);
|
|
45
|
+
return result;
|
|
46
|
+
};
|
|
47
|
+
})();
|
|
48
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
+
exports.UsersApi = void 0;
|
|
50
|
+
const runtime = __importStar(require("../runtime"));
|
|
51
|
+
const index_1 = require("../models/index");
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
class UsersApi extends runtime.BaseAPI {
|
|
56
|
+
/**
|
|
57
|
+
* Checks if a user with the given id exists.
|
|
58
|
+
* Checks if a user with the given id exists.
|
|
59
|
+
*/
|
|
60
|
+
async existsByIdRaw(requestParameters, initOverrides) {
|
|
61
|
+
if (requestParameters['id'] == null) {
|
|
62
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling existsById().');
|
|
63
|
+
}
|
|
64
|
+
const queryParameters = {};
|
|
65
|
+
const headerParameters = {};
|
|
66
|
+
const response = await this.request({
|
|
67
|
+
path: `/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
68
|
+
method: 'HEAD',
|
|
69
|
+
headers: headerParameters,
|
|
70
|
+
query: queryParameters,
|
|
71
|
+
}, initOverrides);
|
|
72
|
+
return new runtime.VoidApiResponse(response);
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Checks if a user with the given id exists.
|
|
76
|
+
* Checks if a user with the given id exists.
|
|
77
|
+
*/
|
|
78
|
+
async existsById(requestParameters, initOverrides) {
|
|
79
|
+
await this.existsByIdRaw(requestParameters, initOverrides);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Returns the user details of the user with the given id.
|
|
83
|
+
* Returns the user details of the user with the given id.
|
|
84
|
+
*/
|
|
85
|
+
async findByIdRaw(requestParameters, initOverrides) {
|
|
86
|
+
if (requestParameters['id'] == null) {
|
|
87
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling findById().');
|
|
88
|
+
}
|
|
89
|
+
const queryParameters = {};
|
|
90
|
+
const headerParameters = {};
|
|
91
|
+
const response = await this.request({
|
|
92
|
+
path: `/users/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
93
|
+
method: 'GET',
|
|
94
|
+
headers: headerParameters,
|
|
95
|
+
query: queryParameters,
|
|
96
|
+
}, initOverrides);
|
|
97
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UserOverviewDtoFromJSON)(jsonValue));
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Returns the user details of the user with the given id.
|
|
101
|
+
* Returns the user details of the user with the given id.
|
|
102
|
+
*/
|
|
103
|
+
async findById(requestParameters, initOverrides) {
|
|
104
|
+
const response = await this.findByIdRaw(requestParameters, initOverrides);
|
|
105
|
+
return await response.value();
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Returns the current background image of the given user.
|
|
109
|
+
* Returns the current background image of the given user.
|
|
110
|
+
*/
|
|
111
|
+
async getBackgroundImageRaw(requestParameters, initOverrides) {
|
|
112
|
+
if (requestParameters['id'] == null) {
|
|
113
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getBackgroundImage().');
|
|
114
|
+
}
|
|
115
|
+
const queryParameters = {};
|
|
116
|
+
const headerParameters = {};
|
|
117
|
+
const response = await this.request({
|
|
118
|
+
path: `/{id}/background-image`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
119
|
+
method: 'GET',
|
|
120
|
+
headers: headerParameters,
|
|
121
|
+
query: queryParameters,
|
|
122
|
+
}, initOverrides);
|
|
123
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
124
|
+
return new runtime.JSONApiResponse(response);
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
return new runtime.TextApiResponse(response);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Returns the current background image of the given user.
|
|
132
|
+
* Returns the current background image of the given user.
|
|
133
|
+
*/
|
|
134
|
+
async getBackgroundImage(requestParameters, initOverrides) {
|
|
135
|
+
const response = await this.getBackgroundImageRaw(requestParameters, initOverrides);
|
|
136
|
+
return await response.value();
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Returns the current profile image of the given user.
|
|
140
|
+
* Returns the current profile image of the given user.
|
|
141
|
+
*/
|
|
142
|
+
async getProfileImageRaw(requestParameters, initOverrides) {
|
|
143
|
+
if (requestParameters['id'] == null) {
|
|
144
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getProfileImage().');
|
|
145
|
+
}
|
|
146
|
+
const queryParameters = {};
|
|
147
|
+
const headerParameters = {};
|
|
148
|
+
const response = await this.request({
|
|
149
|
+
path: `/{id}/profile-image`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
150
|
+
method: 'GET',
|
|
151
|
+
headers: headerParameters,
|
|
152
|
+
query: queryParameters,
|
|
153
|
+
}, initOverrides);
|
|
154
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
155
|
+
return new runtime.JSONApiResponse(response);
|
|
156
|
+
}
|
|
157
|
+
else {
|
|
158
|
+
return new runtime.TextApiResponse(response);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Returns the current profile image of the given user.
|
|
163
|
+
* Returns the current profile image of the given user.
|
|
164
|
+
*/
|
|
165
|
+
async getProfileImage(requestParameters, initOverrides) {
|
|
166
|
+
const response = await this.getProfileImageRaw(requestParameters, initOverrides);
|
|
167
|
+
return await response.value();
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
exports.UsersApi = UsersApi;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/* tslint:disable */
|
|
18
|
+
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./AuthenticationApi"), exports);
|
|
20
|
+
__exportStar(require("./ExpertsApi"), exports);
|
|
21
|
+
__exportStar(require("./SearchApi"), exports);
|
|
22
|
+
__exportStar(require("./UserSettingsApi"), exports);
|
|
23
|
+
__exportStar(require("./UserSettingsPersonalAccessTokensApi"), exports);
|
|
24
|
+
__exportStar(require("./UsersApi"), exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/* tslint:disable */
|
|
18
|
+
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./runtime"), exports);
|
|
20
|
+
__exportStar(require("./apis/index"), exports);
|
|
21
|
+
__exportStar(require("./models/index"), exports);
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AccessTokenCreateRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AccessTokenCreateRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AccessTokenCreateRequest
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Set<string>}
|
|
27
|
+
* @memberof AccessTokenCreateRequest
|
|
28
|
+
*/
|
|
29
|
+
scopes: Set<AccessTokenCreateRequestScopesEnum>;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AccessTokenCreateRequest
|
|
34
|
+
*/
|
|
35
|
+
expiresAt?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const AccessTokenCreateRequestScopesEnum: {
|
|
41
|
+
readonly Api: "API";
|
|
42
|
+
readonly QuantumTokens: "QUANTUM_TOKENS";
|
|
43
|
+
};
|
|
44
|
+
export type AccessTokenCreateRequestScopesEnum = typeof AccessTokenCreateRequestScopesEnum[keyof typeof AccessTokenCreateRequestScopesEnum];
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the AccessTokenCreateRequest interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfAccessTokenCreateRequest(value: object): value is AccessTokenCreateRequest;
|
|
49
|
+
export declare function AccessTokenCreateRequestFromJSON(json: any): AccessTokenCreateRequest;
|
|
50
|
+
export declare function AccessTokenCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccessTokenCreateRequest;
|
|
51
|
+
export declare function AccessTokenCreateRequestToJSON(value?: AccessTokenCreateRequest | null): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Quantum Platform User Service API
|
|
6
|
+
* Part of the OpenAPI specification for the Quantum Platform.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: support-hub@kipu-quantum.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AccessTokenCreateRequestScopesEnum = void 0;
|
|
17
|
+
exports.instanceOfAccessTokenCreateRequest = instanceOfAccessTokenCreateRequest;
|
|
18
|
+
exports.AccessTokenCreateRequestFromJSON = AccessTokenCreateRequestFromJSON;
|
|
19
|
+
exports.AccessTokenCreateRequestFromJSONTyped = AccessTokenCreateRequestFromJSONTyped;
|
|
20
|
+
exports.AccessTokenCreateRequestToJSON = AccessTokenCreateRequestToJSON;
|
|
21
|
+
/**
|
|
22
|
+
* @export
|
|
23
|
+
*/
|
|
24
|
+
exports.AccessTokenCreateRequestScopesEnum = {
|
|
25
|
+
Api: 'API',
|
|
26
|
+
QuantumTokens: 'QUANTUM_TOKENS'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the AccessTokenCreateRequest interface.
|
|
30
|
+
*/
|
|
31
|
+
function instanceOfAccessTokenCreateRequest(value) {
|
|
32
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('scopes' in value) || value['scopes'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function AccessTokenCreateRequestFromJSON(json) {
|
|
39
|
+
return AccessTokenCreateRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function AccessTokenCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'name': json['name'],
|
|
47
|
+
'scopes': json['scopes'],
|
|
48
|
+
'expiresAt': json['expiresAt'] == null ? undefined : json['expiresAt'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function AccessTokenCreateRequestToJSON(value) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'name': value['name'],
|
|
57
|
+
'scopes': Array.from(value['scopes']),
|
|
58
|
+
'expiresAt': value['expiresAt'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AccessTokenDto
|
|
16
|
+
*/
|
|
17
|
+
export interface AccessTokenDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AccessTokenDto
|
|
22
|
+
*/
|
|
23
|
+
id?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AccessTokenDto
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Set<string>}
|
|
33
|
+
* @memberof AccessTokenDto
|
|
34
|
+
*/
|
|
35
|
+
scopes: Set<AccessTokenDtoScopesEnum>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AccessTokenDto
|
|
40
|
+
*/
|
|
41
|
+
createdAt?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof AccessTokenDto
|
|
46
|
+
*/
|
|
47
|
+
usedAt?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof AccessTokenDto
|
|
52
|
+
*/
|
|
53
|
+
expiresAt?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Only available after creation.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof AccessTokenDto
|
|
58
|
+
*/
|
|
59
|
+
value?: string;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export declare const AccessTokenDtoScopesEnum: {
|
|
65
|
+
readonly Api: "API";
|
|
66
|
+
readonly QuantumTokens: "QUANTUM_TOKENS";
|
|
67
|
+
};
|
|
68
|
+
export type AccessTokenDtoScopesEnum = typeof AccessTokenDtoScopesEnum[keyof typeof AccessTokenDtoScopesEnum];
|
|
69
|
+
/**
|
|
70
|
+
* Check if a given object implements the AccessTokenDto interface.
|
|
71
|
+
*/
|
|
72
|
+
export declare function instanceOfAccessTokenDto(value: object): value is AccessTokenDto;
|
|
73
|
+
export declare function AccessTokenDtoFromJSON(json: any): AccessTokenDto;
|
|
74
|
+
export declare function AccessTokenDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccessTokenDto;
|
|
75
|
+
export declare function AccessTokenDtoToJSON(value?: AccessTokenDto | null): any;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Quantum Platform User Service API
|
|
6
|
+
* Part of the OpenAPI specification for the Quantum Platform.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: support-hub@kipu-quantum.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AccessTokenDtoScopesEnum = void 0;
|
|
17
|
+
exports.instanceOfAccessTokenDto = instanceOfAccessTokenDto;
|
|
18
|
+
exports.AccessTokenDtoFromJSON = AccessTokenDtoFromJSON;
|
|
19
|
+
exports.AccessTokenDtoFromJSONTyped = AccessTokenDtoFromJSONTyped;
|
|
20
|
+
exports.AccessTokenDtoToJSON = AccessTokenDtoToJSON;
|
|
21
|
+
/**
|
|
22
|
+
* @export
|
|
23
|
+
*/
|
|
24
|
+
exports.AccessTokenDtoScopesEnum = {
|
|
25
|
+
Api: 'API',
|
|
26
|
+
QuantumTokens: 'QUANTUM_TOKENS'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the AccessTokenDto interface.
|
|
30
|
+
*/
|
|
31
|
+
function instanceOfAccessTokenDto(value) {
|
|
32
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('scopes' in value) || value['scopes'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function AccessTokenDtoFromJSON(json) {
|
|
39
|
+
return AccessTokenDtoFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function AccessTokenDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
47
|
+
'name': json['name'],
|
|
48
|
+
'scopes': json['scopes'],
|
|
49
|
+
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
50
|
+
'usedAt': json['usedAt'] == null ? undefined : json['usedAt'],
|
|
51
|
+
'expiresAt': json['expiresAt'] == null ? undefined : json['expiresAt'],
|
|
52
|
+
'value': json['value'] == null ? undefined : json['value'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function AccessTokenDtoToJSON(value) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'id': value['id'],
|
|
61
|
+
'name': value['name'],
|
|
62
|
+
'scopes': Array.from(value['scopes']),
|
|
63
|
+
'createdAt': value['createdAt'],
|
|
64
|
+
'usedAt': value['usedAt'],
|
|
65
|
+
'expiresAt': value['expiresAt'],
|
|
66
|
+
'value': value['value'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 type { AccessTokenDto } from './AccessTokenDto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AccessTokensResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface AccessTokensResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AccessTokensResponse
|
|
23
|
+
*/
|
|
24
|
+
defaultToken?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<AccessTokenDto>}
|
|
28
|
+
* @memberof AccessTokensResponse
|
|
29
|
+
*/
|
|
30
|
+
accessTokens?: Array<AccessTokenDto>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the AccessTokensResponse interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfAccessTokensResponse(value: object): value is AccessTokensResponse;
|
|
36
|
+
export declare function AccessTokensResponseFromJSON(json: any): AccessTokensResponse;
|
|
37
|
+
export declare function AccessTokensResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccessTokensResponse;
|
|
38
|
+
export declare function AccessTokensResponseToJSON(value?: AccessTokensResponse | null): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Quantum Platform User Service API
|
|
6
|
+
* Part of the OpenAPI specification for the Quantum Platform.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: support-hub@kipu-quantum.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAccessTokensResponse = instanceOfAccessTokensResponse;
|
|
17
|
+
exports.AccessTokensResponseFromJSON = AccessTokensResponseFromJSON;
|
|
18
|
+
exports.AccessTokensResponseFromJSONTyped = AccessTokensResponseFromJSONTyped;
|
|
19
|
+
exports.AccessTokensResponseToJSON = AccessTokensResponseToJSON;
|
|
20
|
+
const AccessTokenDto_1 = require("./AccessTokenDto");
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AccessTokensResponse interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAccessTokensResponse(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function AccessTokensResponseFromJSON(json) {
|
|
28
|
+
return AccessTokensResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function AccessTokensResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'defaultToken': json['defaultToken'] == null ? undefined : json['defaultToken'],
|
|
36
|
+
'accessTokens': json['accessTokens'] == null ? undefined : (json['accessTokens'].map(AccessTokenDto_1.AccessTokenDtoFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function AccessTokensResponseToJSON(value) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'defaultToken': value['defaultToken'],
|
|
45
|
+
'accessTokens': value['accessTokens'] == null ? undefined : (value['accessTokens'].map(AccessTokenDto_1.AccessTokenDtoToJSON)),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface DefaultAccessTokenResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface DefaultAccessTokenResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof DefaultAccessTokenResponse
|
|
22
|
+
*/
|
|
23
|
+
defaultToken?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the DefaultAccessTokenResponse interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfDefaultAccessTokenResponse(value: object): value is DefaultAccessTokenResponse;
|
|
29
|
+
export declare function DefaultAccessTokenResponseFromJSON(json: any): DefaultAccessTokenResponse;
|
|
30
|
+
export declare function DefaultAccessTokenResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DefaultAccessTokenResponse;
|
|
31
|
+
export declare function DefaultAccessTokenResponseToJSON(value?: DefaultAccessTokenResponse | null): any;
|