@lwshen/vault-hub-ts-fetch-client 1.2.6 → 1.2.8
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/.openapi-generator/FILES +2 -2
- package/README.md +2 -2
- package/dist/apis/StatusApi.d.ts +28 -0
- package/dist/apis/{VersionApi.js → StatusApi.js} +15 -15
- package/dist/apis/index.d.ts +1 -1
- package/dist/apis/index.js +1 -1
- package/dist/models/StatusResponse.d.ts +68 -0
- package/dist/models/StatusResponse.js +80 -0
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.js +1 -1
- package/package.json +1 -1
- package/src/apis/{VersionApi.ts → StatusApi.ts} +13 -13
- package/src/apis/index.ts +1 -1
- package/src/models/StatusResponse.ts +115 -0
- package/src/models/index.ts +1 -1
- package/dist/apis/VersionApi.d.ts +0 -28
- package/dist/models/VersionResponse.d.ts +0 -38
- package/dist/models/VersionResponse.js +0 -55
- package/src/models/VersionResponse.ts +0 -75
package/.openapi-generator/FILES
CHANGED
|
@@ -8,9 +8,9 @@ src/apis/AuditApi.ts
|
|
|
8
8
|
src/apis/AuthApi.ts
|
|
9
9
|
src/apis/CliApi.ts
|
|
10
10
|
src/apis/DefaultApi.ts
|
|
11
|
+
src/apis/StatusApi.ts
|
|
11
12
|
src/apis/UserApi.ts
|
|
12
13
|
src/apis/VaultApi.ts
|
|
13
|
-
src/apis/VersionApi.ts
|
|
14
14
|
src/apis/index.ts
|
|
15
15
|
src/index.ts
|
|
16
16
|
src/models/APIKeysResponse.ts
|
|
@@ -27,12 +27,12 @@ src/models/LoginRequest.ts
|
|
|
27
27
|
src/models/LoginResponse.ts
|
|
28
28
|
src/models/SignupRequest.ts
|
|
29
29
|
src/models/SignupResponse.ts
|
|
30
|
+
src/models/StatusResponse.ts
|
|
30
31
|
src/models/UpdateAPIKeyRequest.ts
|
|
31
32
|
src/models/UpdateVaultRequest.ts
|
|
32
33
|
src/models/Vault.ts
|
|
33
34
|
src/models/VaultAPIKey.ts
|
|
34
35
|
src/models/VaultLite.ts
|
|
35
|
-
src/models/VersionResponse.ts
|
|
36
36
|
src/models/index.ts
|
|
37
37
|
src/runtime.ts
|
|
38
38
|
tsconfig.json
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @lwshen/vault-hub-ts-fetch-client@v1.2.
|
|
1
|
+
## @lwshen/vault-hub-ts-fetch-client@v1.2.8
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @lwshen/vault-hub-ts-fetch-client@v1.2.
|
|
39
|
+
npm install @lwshen/vault-hub-ts-fetch-client@v1.2.8 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vault Hub Server
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
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 { StatusResponse } from '../models/index';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
export declare class StatusApi extends runtime.BaseAPI {
|
|
18
|
+
/**
|
|
19
|
+
* Returns comprehensive system status including version, health, and performance metrics
|
|
20
|
+
* Get system status
|
|
21
|
+
*/
|
|
22
|
+
getStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<StatusResponse>>;
|
|
23
|
+
/**
|
|
24
|
+
* Returns comprehensive system status including version, health, and performance metrics
|
|
25
|
+
* Get system status
|
|
26
|
+
*/
|
|
27
|
+
getStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<StatusResponse>;
|
|
28
|
+
}
|
|
@@ -64,22 +64,22 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
-
exports.
|
|
67
|
+
exports.StatusApi = void 0;
|
|
68
68
|
var runtime = require("../runtime");
|
|
69
69
|
var index_1 = require("../models/index");
|
|
70
70
|
/**
|
|
71
71
|
*
|
|
72
72
|
*/
|
|
73
|
-
var
|
|
74
|
-
__extends(
|
|
75
|
-
function
|
|
73
|
+
var StatusApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(StatusApi, _super);
|
|
75
|
+
function StatusApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
|
-
* Returns
|
|
80
|
-
* Get
|
|
79
|
+
* Returns comprehensive system status including version, health, and performance metrics
|
|
80
|
+
* Get system status
|
|
81
81
|
*/
|
|
82
|
-
|
|
82
|
+
StatusApi.prototype.getStatusRaw = function (initOverrides) {
|
|
83
83
|
return __awaiter(this, void 0, void 0, function () {
|
|
84
84
|
var queryParameters, headerParameters, response;
|
|
85
85
|
return __generator(this, function (_a) {
|
|
@@ -88,28 +88,28 @@ var VersionApi = /** @class */ (function (_super) {
|
|
|
88
88
|
queryParameters = {};
|
|
89
89
|
headerParameters = {};
|
|
90
90
|
return [4 /*yield*/, this.request({
|
|
91
|
-
path: "/api/
|
|
91
|
+
path: "/api/status",
|
|
92
92
|
method: 'GET',
|
|
93
93
|
headers: headerParameters,
|
|
94
94
|
query: queryParameters,
|
|
95
95
|
}, initOverrides)];
|
|
96
96
|
case 1:
|
|
97
97
|
response = _a.sent();
|
|
98
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
98
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.StatusResponseFromJSON)(jsonValue); })];
|
|
99
99
|
}
|
|
100
100
|
});
|
|
101
101
|
});
|
|
102
102
|
};
|
|
103
103
|
/**
|
|
104
|
-
* Returns
|
|
105
|
-
* Get
|
|
104
|
+
* Returns comprehensive system status including version, health, and performance metrics
|
|
105
|
+
* Get system status
|
|
106
106
|
*/
|
|
107
|
-
|
|
107
|
+
StatusApi.prototype.getStatus = function (initOverrides) {
|
|
108
108
|
return __awaiter(this, void 0, void 0, function () {
|
|
109
109
|
var response;
|
|
110
110
|
return __generator(this, function (_a) {
|
|
111
111
|
switch (_a.label) {
|
|
112
|
-
case 0: return [4 /*yield*/, this.
|
|
112
|
+
case 0: return [4 /*yield*/, this.getStatusRaw(initOverrides)];
|
|
113
113
|
case 1:
|
|
114
114
|
response = _a.sent();
|
|
115
115
|
return [4 /*yield*/, response.value()];
|
|
@@ -118,6 +118,6 @@ var VersionApi = /** @class */ (function (_super) {
|
|
|
118
118
|
});
|
|
119
119
|
});
|
|
120
120
|
};
|
|
121
|
-
return
|
|
121
|
+
return StatusApi;
|
|
122
122
|
}(runtime.BaseAPI));
|
|
123
|
-
exports.
|
|
123
|
+
exports.StatusApi = StatusApi;
|
package/dist/apis/index.d.ts
CHANGED
package/dist/apis/index.js
CHANGED
|
@@ -21,6 +21,6 @@ __exportStar(require("./AuditApi"), exports);
|
|
|
21
21
|
__exportStar(require("./AuthApi"), exports);
|
|
22
22
|
__exportStar(require("./CliApi"), exports);
|
|
23
23
|
__exportStar(require("./DefaultApi"), exports);
|
|
24
|
+
__exportStar(require("./StatusApi"), exports);
|
|
24
25
|
__exportStar(require("./UserApi"), exports);
|
|
25
26
|
__exportStar(require("./VaultApi"), exports);
|
|
26
|
-
__exportStar(require("./VersionApi"), exports);
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vault Hub Server
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
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 StatusResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface StatusResponse {
|
|
18
|
+
/**
|
|
19
|
+
* Application version
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof StatusResponse
|
|
22
|
+
*/
|
|
23
|
+
version: string;
|
|
24
|
+
/**
|
|
25
|
+
* Git commit hash
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof StatusResponse
|
|
28
|
+
*/
|
|
29
|
+
commit: string;
|
|
30
|
+
/**
|
|
31
|
+
* System operational status
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof StatusResponse
|
|
34
|
+
*/
|
|
35
|
+
systemStatus: StatusResponseSystemStatusEnum;
|
|
36
|
+
/**
|
|
37
|
+
* Database connection status
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof StatusResponse
|
|
40
|
+
*/
|
|
41
|
+
databaseStatus: StatusResponseDatabaseStatusEnum;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const StatusResponseSystemStatusEnum: {
|
|
47
|
+
readonly Healthy: "healthy";
|
|
48
|
+
readonly Degraded: "degraded";
|
|
49
|
+
readonly Unavailable: "unavailable";
|
|
50
|
+
};
|
|
51
|
+
export type StatusResponseSystemStatusEnum = typeof StatusResponseSystemStatusEnum[keyof typeof StatusResponseSystemStatusEnum];
|
|
52
|
+
/**
|
|
53
|
+
* @export
|
|
54
|
+
*/
|
|
55
|
+
export declare const StatusResponseDatabaseStatusEnum: {
|
|
56
|
+
readonly Healthy: "healthy";
|
|
57
|
+
readonly Degraded: "degraded";
|
|
58
|
+
readonly Unavailable: "unavailable";
|
|
59
|
+
};
|
|
60
|
+
export type StatusResponseDatabaseStatusEnum = typeof StatusResponseDatabaseStatusEnum[keyof typeof StatusResponseDatabaseStatusEnum];
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the StatusResponse interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfStatusResponse(value: object): value is StatusResponse;
|
|
65
|
+
export declare function StatusResponseFromJSON(json: any): StatusResponse;
|
|
66
|
+
export declare function StatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StatusResponse;
|
|
67
|
+
export declare function StatusResponseToJSON(json: any): StatusResponse;
|
|
68
|
+
export declare function StatusResponseToJSONTyped(value?: StatusResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Vault Hub Server
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
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.StatusResponseDatabaseStatusEnum = exports.StatusResponseSystemStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfStatusResponse = instanceOfStatusResponse;
|
|
18
|
+
exports.StatusResponseFromJSON = StatusResponseFromJSON;
|
|
19
|
+
exports.StatusResponseFromJSONTyped = StatusResponseFromJSONTyped;
|
|
20
|
+
exports.StatusResponseToJSON = StatusResponseToJSON;
|
|
21
|
+
exports.StatusResponseToJSONTyped = StatusResponseToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.StatusResponseSystemStatusEnum = {
|
|
26
|
+
Healthy: 'healthy',
|
|
27
|
+
Degraded: 'degraded',
|
|
28
|
+
Unavailable: 'unavailable'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
exports.StatusResponseDatabaseStatusEnum = {
|
|
34
|
+
Healthy: 'healthy',
|
|
35
|
+
Degraded: 'degraded',
|
|
36
|
+
Unavailable: 'unavailable'
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the StatusResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
function instanceOfStatusResponse(value) {
|
|
42
|
+
if (!('version' in value) || value['version'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('commit' in value) || value['commit'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('systemStatus' in value) || value['systemStatus'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('databaseStatus' in value) || value['databaseStatus'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
function StatusResponseFromJSON(json) {
|
|
53
|
+
return StatusResponseFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function StatusResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'version': json['version'],
|
|
61
|
+
'commit': json['commit'],
|
|
62
|
+
'systemStatus': json['systemStatus'],
|
|
63
|
+
'databaseStatus': json['databaseStatus'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
function StatusResponseToJSON(json) {
|
|
67
|
+
return StatusResponseToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
function StatusResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
70
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
'version': value['version'],
|
|
76
|
+
'commit': value['commit'],
|
|
77
|
+
'systemStatus': value['systemStatus'],
|
|
78
|
+
'databaseStatus': value['databaseStatus'],
|
|
79
|
+
};
|
|
80
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -12,9 +12,9 @@ export * from './LoginRequest';
|
|
|
12
12
|
export * from './LoginResponse';
|
|
13
13
|
export * from './SignupRequest';
|
|
14
14
|
export * from './SignupResponse';
|
|
15
|
+
export * from './StatusResponse';
|
|
15
16
|
export * from './UpdateAPIKeyRequest';
|
|
16
17
|
export * from './UpdateVaultRequest';
|
|
17
18
|
export * from './Vault';
|
|
18
19
|
export * from './VaultAPIKey';
|
|
19
20
|
export * from './VaultLite';
|
|
20
|
-
export * from './VersionResponse';
|
package/dist/models/index.js
CHANGED
|
@@ -30,9 +30,9 @@ __exportStar(require("./LoginRequest"), exports);
|
|
|
30
30
|
__exportStar(require("./LoginResponse"), exports);
|
|
31
31
|
__exportStar(require("./SignupRequest"), exports);
|
|
32
32
|
__exportStar(require("./SignupResponse"), exports);
|
|
33
|
+
__exportStar(require("./StatusResponse"), exports);
|
|
33
34
|
__exportStar(require("./UpdateAPIKeyRequest"), exports);
|
|
34
35
|
__exportStar(require("./UpdateVaultRequest"), exports);
|
|
35
36
|
__exportStar(require("./Vault"), exports);
|
|
36
37
|
__exportStar(require("./VaultAPIKey"), exports);
|
|
37
38
|
__exportStar(require("./VaultLite"), exports);
|
|
38
|
-
__exportStar(require("./VersionResponse"), exports);
|
package/package.json
CHANGED
|
@@ -15,43 +15,43 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
-
|
|
18
|
+
StatusResponse,
|
|
19
19
|
} from '../models/index';
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
StatusResponseFromJSON,
|
|
22
|
+
StatusResponseToJSON,
|
|
23
23
|
} from '../models/index';
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
|
-
export class
|
|
28
|
+
export class StatusApi extends runtime.BaseAPI {
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
* Returns
|
|
32
|
-
* Get
|
|
31
|
+
* Returns comprehensive system status including version, health, and performance metrics
|
|
32
|
+
* Get system status
|
|
33
33
|
*/
|
|
34
|
-
async
|
|
34
|
+
async getStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<StatusResponse>> {
|
|
35
35
|
const queryParameters: any = {};
|
|
36
36
|
|
|
37
37
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
38
38
|
|
|
39
39
|
const response = await this.request({
|
|
40
|
-
path: `/api/
|
|
40
|
+
path: `/api/status`,
|
|
41
41
|
method: 'GET',
|
|
42
42
|
headers: headerParameters,
|
|
43
43
|
query: queryParameters,
|
|
44
44
|
}, initOverrides);
|
|
45
45
|
|
|
46
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
46
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => StatusResponseFromJSON(jsonValue));
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
|
-
* Returns
|
|
51
|
-
* Get
|
|
50
|
+
* Returns comprehensive system status including version, health, and performance metrics
|
|
51
|
+
* Get system status
|
|
52
52
|
*/
|
|
53
|
-
async
|
|
54
|
-
const response = await this.
|
|
53
|
+
async getStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<StatusResponse> {
|
|
54
|
+
const response = await this.getStatusRaw(initOverrides);
|
|
55
55
|
return await response.value();
|
|
56
56
|
}
|
|
57
57
|
|
package/src/apis/index.ts
CHANGED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Vault Hub Server
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
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
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface StatusResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface StatusResponse {
|
|
22
|
+
/**
|
|
23
|
+
* Application version
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof StatusResponse
|
|
26
|
+
*/
|
|
27
|
+
version: string;
|
|
28
|
+
/**
|
|
29
|
+
* Git commit hash
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof StatusResponse
|
|
32
|
+
*/
|
|
33
|
+
commit: string;
|
|
34
|
+
/**
|
|
35
|
+
* System operational status
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof StatusResponse
|
|
38
|
+
*/
|
|
39
|
+
systemStatus: StatusResponseSystemStatusEnum;
|
|
40
|
+
/**
|
|
41
|
+
* Database connection status
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof StatusResponse
|
|
44
|
+
*/
|
|
45
|
+
databaseStatus: StatusResponseDatabaseStatusEnum;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export const StatusResponseSystemStatusEnum = {
|
|
53
|
+
Healthy: 'healthy',
|
|
54
|
+
Degraded: 'degraded',
|
|
55
|
+
Unavailable: 'unavailable'
|
|
56
|
+
} as const;
|
|
57
|
+
export type StatusResponseSystemStatusEnum = typeof StatusResponseSystemStatusEnum[keyof typeof StatusResponseSystemStatusEnum];
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @export
|
|
61
|
+
*/
|
|
62
|
+
export const StatusResponseDatabaseStatusEnum = {
|
|
63
|
+
Healthy: 'healthy',
|
|
64
|
+
Degraded: 'degraded',
|
|
65
|
+
Unavailable: 'unavailable'
|
|
66
|
+
} as const;
|
|
67
|
+
export type StatusResponseDatabaseStatusEnum = typeof StatusResponseDatabaseStatusEnum[keyof typeof StatusResponseDatabaseStatusEnum];
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Check if a given object implements the StatusResponse interface.
|
|
72
|
+
*/
|
|
73
|
+
export function instanceOfStatusResponse(value: object): value is StatusResponse {
|
|
74
|
+
if (!('version' in value) || value['version'] === undefined) return false;
|
|
75
|
+
if (!('commit' in value) || value['commit'] === undefined) return false;
|
|
76
|
+
if (!('systemStatus' in value) || value['systemStatus'] === undefined) return false;
|
|
77
|
+
if (!('databaseStatus' in value) || value['databaseStatus'] === undefined) return false;
|
|
78
|
+
return true;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function StatusResponseFromJSON(json: any): StatusResponse {
|
|
82
|
+
return StatusResponseFromJSONTyped(json, false);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function StatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StatusResponse {
|
|
86
|
+
if (json == null) {
|
|
87
|
+
return json;
|
|
88
|
+
}
|
|
89
|
+
return {
|
|
90
|
+
|
|
91
|
+
'version': json['version'],
|
|
92
|
+
'commit': json['commit'],
|
|
93
|
+
'systemStatus': json['systemStatus'],
|
|
94
|
+
'databaseStatus': json['databaseStatus'],
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function StatusResponseToJSON(json: any): StatusResponse {
|
|
99
|
+
return StatusResponseToJSONTyped(json, false);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function StatusResponseToJSONTyped(value?: StatusResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
103
|
+
if (value == null) {
|
|
104
|
+
return value;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
return {
|
|
108
|
+
|
|
109
|
+
'version': value['version'],
|
|
110
|
+
'commit': value['commit'],
|
|
111
|
+
'systemStatus': value['systemStatus'],
|
|
112
|
+
'databaseStatus': value['databaseStatus'],
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -14,9 +14,9 @@ export * from './LoginRequest';
|
|
|
14
14
|
export * from './LoginResponse';
|
|
15
15
|
export * from './SignupRequest';
|
|
16
16
|
export * from './SignupResponse';
|
|
17
|
+
export * from './StatusResponse';
|
|
17
18
|
export * from './UpdateAPIKeyRequest';
|
|
18
19
|
export * from './UpdateVaultRequest';
|
|
19
20
|
export * from './Vault';
|
|
20
21
|
export * from './VaultAPIKey';
|
|
21
22
|
export * from './VaultLite';
|
|
22
|
-
export * from './VersionResponse';
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Vault Hub Server
|
|
3
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
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 { VersionResponse } from '../models/index';
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
*/
|
|
17
|
-
export declare class VersionApi extends runtime.BaseAPI {
|
|
18
|
-
/**
|
|
19
|
-
* Returns the current version and commit hash of the application
|
|
20
|
-
* Get version information
|
|
21
|
-
*/
|
|
22
|
-
getVersionRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VersionResponse>>;
|
|
23
|
-
/**
|
|
24
|
-
* Returns the current version and commit hash of the application
|
|
25
|
-
* Get version information
|
|
26
|
-
*/
|
|
27
|
-
getVersion(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VersionResponse>;
|
|
28
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Vault Hub Server
|
|
3
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
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 VersionResponse
|
|
16
|
-
*/
|
|
17
|
-
export interface VersionResponse {
|
|
18
|
-
/**
|
|
19
|
-
* Application version
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof VersionResponse
|
|
22
|
-
*/
|
|
23
|
-
version: string;
|
|
24
|
-
/**
|
|
25
|
-
* Git commit hash
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof VersionResponse
|
|
28
|
-
*/
|
|
29
|
-
commit: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the VersionResponse interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfVersionResponse(value: object): value is VersionResponse;
|
|
35
|
-
export declare function VersionResponseFromJSON(json: any): VersionResponse;
|
|
36
|
-
export declare function VersionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VersionResponse;
|
|
37
|
-
export declare function VersionResponseToJSON(json: any): VersionResponse;
|
|
38
|
-
export declare function VersionResponseToJSONTyped(value?: VersionResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Vault Hub Server
|
|
6
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
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.instanceOfVersionResponse = instanceOfVersionResponse;
|
|
17
|
-
exports.VersionResponseFromJSON = VersionResponseFromJSON;
|
|
18
|
-
exports.VersionResponseFromJSONTyped = VersionResponseFromJSONTyped;
|
|
19
|
-
exports.VersionResponseToJSON = VersionResponseToJSON;
|
|
20
|
-
exports.VersionResponseToJSONTyped = VersionResponseToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the VersionResponse interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfVersionResponse(value) {
|
|
25
|
-
if (!('version' in value) || value['version'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('commit' in value) || value['commit'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
return true;
|
|
30
|
-
}
|
|
31
|
-
function VersionResponseFromJSON(json) {
|
|
32
|
-
return VersionResponseFromJSONTyped(json, false);
|
|
33
|
-
}
|
|
34
|
-
function VersionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
-
if (json == null) {
|
|
36
|
-
return json;
|
|
37
|
-
}
|
|
38
|
-
return {
|
|
39
|
-
'version': json['version'],
|
|
40
|
-
'commit': json['commit'],
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
function VersionResponseToJSON(json) {
|
|
44
|
-
return VersionResponseToJSONTyped(json, false);
|
|
45
|
-
}
|
|
46
|
-
function VersionResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
-
if (value == null) {
|
|
49
|
-
return value;
|
|
50
|
-
}
|
|
51
|
-
return {
|
|
52
|
-
'version': value['version'],
|
|
53
|
-
'commit': value['commit'],
|
|
54
|
-
};
|
|
55
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Vault Hub Server
|
|
5
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
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
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface VersionResponse
|
|
20
|
-
*/
|
|
21
|
-
export interface VersionResponse {
|
|
22
|
-
/**
|
|
23
|
-
* Application version
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof VersionResponse
|
|
26
|
-
*/
|
|
27
|
-
version: string;
|
|
28
|
-
/**
|
|
29
|
-
* Git commit hash
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof VersionResponse
|
|
32
|
-
*/
|
|
33
|
-
commit: string;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Check if a given object implements the VersionResponse interface.
|
|
38
|
-
*/
|
|
39
|
-
export function instanceOfVersionResponse(value: object): value is VersionResponse {
|
|
40
|
-
if (!('version' in value) || value['version'] === undefined) return false;
|
|
41
|
-
if (!('commit' in value) || value['commit'] === undefined) return false;
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function VersionResponseFromJSON(json: any): VersionResponse {
|
|
46
|
-
return VersionResponseFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function VersionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VersionResponse {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'version': json['version'],
|
|
56
|
-
'commit': json['commit'],
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function VersionResponseToJSON(json: any): VersionResponse {
|
|
61
|
-
return VersionResponseToJSONTyped(json, false);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function VersionResponseToJSONTyped(value?: VersionResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
-
if (value == null) {
|
|
66
|
-
return value;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
return {
|
|
70
|
-
|
|
71
|
-
'version': value['version'],
|
|
72
|
-
'commit': value['commit'],
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
|