@lwshen/vault-hub-ts-fetch-client 0.20250620.144136

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 (39) hide show
  1. package/.openapi-generator/FILES +17 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +46 -0
  5. package/dist/apis/AuthApi.d.ts +48 -0
  6. package/dist/apis/AuthApi.js +211 -0
  7. package/dist/apis/DefaultApi.d.ts +26 -0
  8. package/dist/apis/DefaultApi.js +121 -0
  9. package/dist/apis/index.d.ts +2 -0
  10. package/dist/apis/index.js +20 -0
  11. package/dist/index.d.ts +3 -0
  12. package/dist/index.js +21 -0
  13. package/dist/models/HealthCheckResponse.d.ts +38 -0
  14. package/dist/models/HealthCheckResponse.js +51 -0
  15. package/dist/models/LoginRequest.d.ts +38 -0
  16. package/dist/models/LoginRequest.js +55 -0
  17. package/dist/models/LoginResponse.d.ts +32 -0
  18. package/dist/models/LoginResponse.js +51 -0
  19. package/dist/models/SignupRequest.d.ts +44 -0
  20. package/dist/models/SignupRequest.js +59 -0
  21. package/dist/models/SignupResponse.d.ts +32 -0
  22. package/dist/models/SignupResponse.js +51 -0
  23. package/dist/models/index.d.ts +5 -0
  24. package/dist/models/index.js +23 -0
  25. package/dist/runtime.d.ts +184 -0
  26. package/dist/runtime.js +564 -0
  27. package/package.json +19 -0
  28. package/src/apis/AuthApi.ts +144 -0
  29. package/src/apis/DefaultApi.ts +56 -0
  30. package/src/apis/index.ts +4 -0
  31. package/src/index.ts +5 -0
  32. package/src/models/HealthCheckResponse.ts +73 -0
  33. package/src/models/LoginRequest.ts +75 -0
  34. package/src/models/LoginResponse.ts +66 -0
  35. package/src/models/SignupRequest.ts +84 -0
  36. package/src/models/SignupResponse.ts +66 -0
  37. package/src/models/index.ts +7 -0
  38. package/src/runtime.ts +432 -0
  39. package/tsconfig.json +20 -0
@@ -0,0 +1,17 @@
1
+ .gitignore
2
+ .npmignore
3
+ .openapi-generator-ignore
4
+ README.md
5
+ package.json
6
+ src/apis/AuthApi.ts
7
+ src/apis/DefaultApi.ts
8
+ src/apis/index.ts
9
+ src/index.ts
10
+ src/models/HealthCheckResponse.ts
11
+ src/models/LoginRequest.ts
12
+ src/models/LoginResponse.ts
13
+ src/models/SignupRequest.ts
14
+ src/models/SignupResponse.ts
15
+ src/models/index.ts
16
+ src/runtime.ts
17
+ tsconfig.json
@@ -0,0 +1 @@
1
+ 7.13.0
@@ -0,0 +1,23 @@
1
+ # OpenAPI Generator Ignore
2
+ # Generated by openapi-generator https://github.com/openapitools/openapi-generator
3
+
4
+ # Use this file to prevent files from being overwritten by the generator.
5
+ # The patterns follow closely to .gitignore or .dockerignore.
6
+
7
+ # As an example, the C# client generator defines ApiClient.cs.
8
+ # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9
+ #ApiClient.cs
10
+
11
+ # You can match any string of characters against a directory, file or extension with a single asterisk (*):
12
+ #foo/*/qux
13
+ # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14
+
15
+ # You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16
+ #foo/**/qux
17
+ # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18
+
19
+ # You can also negate patterns with an exclamation (!).
20
+ # For example, you can ignore all files in a docs folder with the file extension .md:
21
+ #docs/*.md
22
+ # Then explicitly reverse the ignore rule for a single file:
23
+ #!docs/README.md
package/README.md ADDED
@@ -0,0 +1,46 @@
1
+ ## @lwshen/vault-hub-ts-fetch-client@0.20250620.144136
2
+
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
+
5
+ Environment
6
+ * Node.js
7
+ * Webpack
8
+ * Browserify
9
+
10
+ Language level
11
+ * ES5 - you must have a Promises/A+ library installed
12
+ * ES6
13
+
14
+ Module system
15
+ * CommonJS
16
+ * ES6 module system
17
+
18
+ It can be used in both TypeScript and JavaScript. In TypeScript, the definition will be automatically resolved via `package.json`. ([Reference](https://www.typescriptlang.org/docs/handbook/declaration-files/consumption.html))
19
+
20
+ ### Building
21
+
22
+ To build and compile the typescript sources to javascript use:
23
+ ```
24
+ npm install
25
+ npm run build
26
+ ```
27
+
28
+ ### Publishing
29
+
30
+ First build the package then run `npm publish`
31
+
32
+ ### Consuming
33
+
34
+ navigate to the folder of your consuming project and run one of the following commands.
35
+
36
+ _published:_
37
+
38
+ ```
39
+ npm install @lwshen/vault-hub-ts-fetch-client@0.20250620.144136 --save
40
+ ```
41
+
42
+ _unPublished (not recommended):_
43
+
44
+ ```
45
+ npm install PATH_TO_GENERATED_PACKAGE --save
46
+ ```
@@ -0,0 +1,48 @@
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 { LoginRequest, LoginResponse, SignupRequest, SignupResponse } from '../models/index';
14
+ export interface LoginOperationRequest {
15
+ loginRequest: LoginRequest;
16
+ }
17
+ export interface SignupOperationRequest {
18
+ signupRequest: SignupRequest;
19
+ }
20
+ /**
21
+ *
22
+ */
23
+ export declare class AuthApi extends runtime.BaseAPI {
24
+ /**
25
+ * Login with email and password
26
+ */
27
+ loginRaw(requestParameters: LoginOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LoginResponse>>;
28
+ /**
29
+ * Login with email and password
30
+ */
31
+ login(requestParameters: LoginOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LoginResponse>;
32
+ /**
33
+ * Logout
34
+ */
35
+ logoutRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
36
+ /**
37
+ * Logout
38
+ */
39
+ logout(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
40
+ /**
41
+ * Sign up a new user
42
+ */
43
+ signupRaw(requestParameters: SignupOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SignupResponse>>;
44
+ /**
45
+ * Sign up a new user
46
+ */
47
+ signup(requestParameters: SignupOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SignupResponse>;
48
+ }
@@ -0,0 +1,211 @@
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
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
31
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
32
+ return new (P || (P = Promise))(function (resolve, reject) {
33
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
34
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
35
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
36
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
37
+ });
38
+ };
39
+ var __generator = (this && this.__generator) || function (thisArg, body) {
40
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
41
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
42
+ function verb(n) { return function (v) { return step([n, v]); }; }
43
+ function step(op) {
44
+ if (f) throw new TypeError("Generator is already executing.");
45
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
46
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
47
+ if (y = 0, t) op = [op[0] & 2, t.value];
48
+ switch (op[0]) {
49
+ case 0: case 1: t = op; break;
50
+ case 4: _.label++; return { value: op[1], done: false };
51
+ case 5: _.label++; y = op[1]; op = [0]; continue;
52
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
53
+ default:
54
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
55
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
56
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
57
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
58
+ if (t[2]) _.ops.pop();
59
+ _.trys.pop(); continue;
60
+ }
61
+ op = body.call(thisArg, _);
62
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
63
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
64
+ }
65
+ };
66
+ Object.defineProperty(exports, "__esModule", { value: true });
67
+ exports.AuthApi = void 0;
68
+ var runtime = require("../runtime");
69
+ var index_1 = require("../models/index");
70
+ /**
71
+ *
72
+ */
73
+ var AuthApi = /** @class */ (function (_super) {
74
+ __extends(AuthApi, _super);
75
+ function AuthApi() {
76
+ return _super !== null && _super.apply(this, arguments) || this;
77
+ }
78
+ /**
79
+ * Login with email and password
80
+ */
81
+ AuthApi.prototype.loginRaw = function (requestParameters, initOverrides) {
82
+ return __awaiter(this, void 0, void 0, function () {
83
+ var queryParameters, headerParameters, response;
84
+ return __generator(this, function (_a) {
85
+ switch (_a.label) {
86
+ case 0:
87
+ if (requestParameters['loginRequest'] == null) {
88
+ throw new runtime.RequiredError('loginRequest', 'Required parameter "loginRequest" was null or undefined when calling login().');
89
+ }
90
+ queryParameters = {};
91
+ headerParameters = {};
92
+ headerParameters['Content-Type'] = 'application/json';
93
+ return [4 /*yield*/, this.request({
94
+ path: "/api/auth/login",
95
+ method: 'POST',
96
+ headers: headerParameters,
97
+ query: queryParameters,
98
+ body: (0, index_1.LoginRequestToJSON)(requestParameters['loginRequest']),
99
+ }, initOverrides)];
100
+ case 1:
101
+ response = _a.sent();
102
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.LoginResponseFromJSON)(jsonValue); })];
103
+ }
104
+ });
105
+ });
106
+ };
107
+ /**
108
+ * Login with email and password
109
+ */
110
+ AuthApi.prototype.login = function (requestParameters, initOverrides) {
111
+ return __awaiter(this, void 0, void 0, function () {
112
+ var response;
113
+ return __generator(this, function (_a) {
114
+ switch (_a.label) {
115
+ case 0: return [4 /*yield*/, this.loginRaw(requestParameters, initOverrides)];
116
+ case 1:
117
+ response = _a.sent();
118
+ return [4 /*yield*/, response.value()];
119
+ case 2: return [2 /*return*/, _a.sent()];
120
+ }
121
+ });
122
+ });
123
+ };
124
+ /**
125
+ * Logout
126
+ */
127
+ AuthApi.prototype.logoutRaw = function (initOverrides) {
128
+ return __awaiter(this, void 0, void 0, function () {
129
+ var queryParameters, headerParameters, response;
130
+ return __generator(this, function (_a) {
131
+ switch (_a.label) {
132
+ case 0:
133
+ queryParameters = {};
134
+ headerParameters = {};
135
+ return [4 /*yield*/, this.request({
136
+ path: "/api/auth/logout",
137
+ method: 'GET',
138
+ headers: headerParameters,
139
+ query: queryParameters,
140
+ }, initOverrides)];
141
+ case 1:
142
+ response = _a.sent();
143
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
144
+ }
145
+ });
146
+ });
147
+ };
148
+ /**
149
+ * Logout
150
+ */
151
+ AuthApi.prototype.logout = function (initOverrides) {
152
+ return __awaiter(this, void 0, void 0, function () {
153
+ return __generator(this, function (_a) {
154
+ switch (_a.label) {
155
+ case 0: return [4 /*yield*/, this.logoutRaw(initOverrides)];
156
+ case 1:
157
+ _a.sent();
158
+ return [2 /*return*/];
159
+ }
160
+ });
161
+ });
162
+ };
163
+ /**
164
+ * Sign up a new user
165
+ */
166
+ AuthApi.prototype.signupRaw = function (requestParameters, initOverrides) {
167
+ return __awaiter(this, void 0, void 0, function () {
168
+ var queryParameters, headerParameters, response;
169
+ return __generator(this, function (_a) {
170
+ switch (_a.label) {
171
+ case 0:
172
+ if (requestParameters['signupRequest'] == null) {
173
+ throw new runtime.RequiredError('signupRequest', 'Required parameter "signupRequest" was null or undefined when calling signup().');
174
+ }
175
+ queryParameters = {};
176
+ headerParameters = {};
177
+ headerParameters['Content-Type'] = 'application/json';
178
+ return [4 /*yield*/, this.request({
179
+ path: "/api/auth/signup",
180
+ method: 'POST',
181
+ headers: headerParameters,
182
+ query: queryParameters,
183
+ body: (0, index_1.SignupRequestToJSON)(requestParameters['signupRequest']),
184
+ }, initOverrides)];
185
+ case 1:
186
+ response = _a.sent();
187
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.SignupResponseFromJSON)(jsonValue); })];
188
+ }
189
+ });
190
+ });
191
+ };
192
+ /**
193
+ * Sign up a new user
194
+ */
195
+ AuthApi.prototype.signup = function (requestParameters, initOverrides) {
196
+ return __awaiter(this, void 0, void 0, function () {
197
+ var response;
198
+ return __generator(this, function (_a) {
199
+ switch (_a.label) {
200
+ case 0: return [4 /*yield*/, this.signupRaw(requestParameters, initOverrides)];
201
+ case 1:
202
+ response = _a.sent();
203
+ return [4 /*yield*/, response.value()];
204
+ case 2: return [2 /*return*/, _a.sent()];
205
+ }
206
+ });
207
+ });
208
+ };
209
+ return AuthApi;
210
+ }(runtime.BaseAPI));
211
+ exports.AuthApi = AuthApi;
@@ -0,0 +1,26 @@
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 { HealthCheckResponse } from '../models/index';
14
+ /**
15
+ *
16
+ */
17
+ export declare class DefaultApi extends runtime.BaseAPI {
18
+ /**
19
+ * Check the health status of backend
20
+ */
21
+ healthRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<HealthCheckResponse>>;
22
+ /**
23
+ * Check the health status of backend
24
+ */
25
+ health(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<HealthCheckResponse>;
26
+ }
@@ -0,0 +1,121 @@
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
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
31
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
32
+ return new (P || (P = Promise))(function (resolve, reject) {
33
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
34
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
35
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
36
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
37
+ });
38
+ };
39
+ var __generator = (this && this.__generator) || function (thisArg, body) {
40
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
41
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
42
+ function verb(n) { return function (v) { return step([n, v]); }; }
43
+ function step(op) {
44
+ if (f) throw new TypeError("Generator is already executing.");
45
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
46
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
47
+ if (y = 0, t) op = [op[0] & 2, t.value];
48
+ switch (op[0]) {
49
+ case 0: case 1: t = op; break;
50
+ case 4: _.label++; return { value: op[1], done: false };
51
+ case 5: _.label++; y = op[1]; op = [0]; continue;
52
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
53
+ default:
54
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
55
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
56
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
57
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
58
+ if (t[2]) _.ops.pop();
59
+ _.trys.pop(); continue;
60
+ }
61
+ op = body.call(thisArg, _);
62
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
63
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
64
+ }
65
+ };
66
+ Object.defineProperty(exports, "__esModule", { value: true });
67
+ exports.DefaultApi = void 0;
68
+ var runtime = require("../runtime");
69
+ var index_1 = require("../models/index");
70
+ /**
71
+ *
72
+ */
73
+ var DefaultApi = /** @class */ (function (_super) {
74
+ __extends(DefaultApi, _super);
75
+ function DefaultApi() {
76
+ return _super !== null && _super.apply(this, arguments) || this;
77
+ }
78
+ /**
79
+ * Check the health status of backend
80
+ */
81
+ DefaultApi.prototype.healthRaw = function (initOverrides) {
82
+ return __awaiter(this, void 0, void 0, function () {
83
+ var queryParameters, headerParameters, response;
84
+ return __generator(this, function (_a) {
85
+ switch (_a.label) {
86
+ case 0:
87
+ queryParameters = {};
88
+ headerParameters = {};
89
+ return [4 /*yield*/, this.request({
90
+ path: "/api/health",
91
+ method: 'GET',
92
+ headers: headerParameters,
93
+ query: queryParameters,
94
+ }, initOverrides)];
95
+ case 1:
96
+ response = _a.sent();
97
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.HealthCheckResponseFromJSON)(jsonValue); })];
98
+ }
99
+ });
100
+ });
101
+ };
102
+ /**
103
+ * Check the health status of backend
104
+ */
105
+ DefaultApi.prototype.health = function (initOverrides) {
106
+ return __awaiter(this, void 0, void 0, function () {
107
+ var response;
108
+ return __generator(this, function (_a) {
109
+ switch (_a.label) {
110
+ case 0: return [4 /*yield*/, this.healthRaw(initOverrides)];
111
+ case 1:
112
+ response = _a.sent();
113
+ return [4 /*yield*/, response.value()];
114
+ case 2: return [2 /*return*/, _a.sent()];
115
+ }
116
+ });
117
+ });
118
+ };
119
+ return DefaultApi;
120
+ }(runtime.BaseAPI));
121
+ exports.DefaultApi = DefaultApi;
@@ -0,0 +1,2 @@
1
+ export * from './AuthApi';
2
+ export * from './DefaultApi';
@@ -0,0 +1,20 @@
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("./AuthApi"), exports);
20
+ __exportStar(require("./DefaultApi"), exports);
@@ -0,0 +1,3 @@
1
+ export * from './runtime';
2
+ export * from './apis/index';
3
+ export * from './models/index';
package/dist/index.js ADDED
@@ -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,38 @@
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 HealthCheckResponse
16
+ */
17
+ export interface HealthCheckResponse {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof HealthCheckResponse
22
+ */
23
+ status?: string;
24
+ /**
25
+ *
26
+ * @type {Date}
27
+ * @memberof HealthCheckResponse
28
+ */
29
+ timestamp?: Date;
30
+ }
31
+ /**
32
+ * Check if a given object implements the HealthCheckResponse interface.
33
+ */
34
+ export declare function instanceOfHealthCheckResponse(value: object): value is HealthCheckResponse;
35
+ export declare function HealthCheckResponseFromJSON(json: any): HealthCheckResponse;
36
+ export declare function HealthCheckResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): HealthCheckResponse;
37
+ export declare function HealthCheckResponseToJSON(json: any): HealthCheckResponse;
38
+ export declare function HealthCheckResponseToJSONTyped(value?: HealthCheckResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
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.instanceOfHealthCheckResponse = instanceOfHealthCheckResponse;
17
+ exports.HealthCheckResponseFromJSON = HealthCheckResponseFromJSON;
18
+ exports.HealthCheckResponseFromJSONTyped = HealthCheckResponseFromJSONTyped;
19
+ exports.HealthCheckResponseToJSON = HealthCheckResponseToJSON;
20
+ exports.HealthCheckResponseToJSONTyped = HealthCheckResponseToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the HealthCheckResponse interface.
23
+ */
24
+ function instanceOfHealthCheckResponse(value) {
25
+ return true;
26
+ }
27
+ function HealthCheckResponseFromJSON(json) {
28
+ return HealthCheckResponseFromJSONTyped(json, false);
29
+ }
30
+ function HealthCheckResponseFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'status': json['status'] == null ? undefined : json['status'],
36
+ 'timestamp': json['timestamp'] == null ? undefined : (new Date(json['timestamp'])),
37
+ };
38
+ }
39
+ function HealthCheckResponseToJSON(json) {
40
+ return HealthCheckResponseToJSONTyped(json, false);
41
+ }
42
+ function HealthCheckResponseToJSONTyped(value, ignoreDiscriminator) {
43
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'status': value['status'],
49
+ 'timestamp': value['timestamp'] == null ? undefined : ((value['timestamp']).toISOString()),
50
+ };
51
+ }