@lwshen/vault-hub-ts-fetch-client 0.0.1-beta.2
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 +35 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +46 -0
- package/dist/apis/APIKeyApi.d.ts +64 -0
- package/dist/apis/APIKeyApi.js +270 -0
- package/dist/apis/AuditApi.d.ts +33 -0
- package/dist/apis/AuditApi.js +142 -0
- package/dist/apis/AuthApi.d.ts +48 -0
- package/dist/apis/AuthApi.js +211 -0
- package/dist/apis/CliApi.d.ts +48 -0
- package/dist/apis/CliApi.js +209 -0
- package/dist/apis/DefaultApi.d.ts +26 -0
- package/dist/apis/DefaultApi.js +121 -0
- package/dist/apis/UserApi.d.ts +26 -0
- package/dist/apis/UserApi.js +121 -0
- package/dist/apis/VaultApi.d.ts +71 -0
- package/dist/apis/VaultApi.js +302 -0
- package/dist/apis/index.d.ts +7 -0
- package/dist/apis/index.js +25 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/APIKeysResponse.d.ts +51 -0
- package/dist/models/APIKeysResponse.js +64 -0
- package/dist/models/AuditLog.d.ts +80 -0
- package/dist/models/AuditLog.js +81 -0
- package/dist/models/AuditLogsResponse.d.ts +51 -0
- package/dist/models/AuditLogsResponse.js +64 -0
- package/dist/models/CreateAPIKeyRequest.d.ts +44 -0
- package/dist/models/CreateAPIKeyRequest.js +55 -0
- package/dist/models/CreateAPIKeyResponse.d.ts +39 -0
- package/dist/models/CreateAPIKeyResponse.js +56 -0
- package/dist/models/CreateVaultRequest.d.ts +50 -0
- package/dist/models/CreateVaultRequest.js +59 -0
- package/dist/models/EnableClientEncryption.d.ts +25 -0
- package/dist/models/EnableClientEncryption.js +51 -0
- package/dist/models/GetUserResponse.d.ts +44 -0
- package/dist/models/GetUserResponse.js +55 -0
- package/dist/models/HealthCheckResponse.d.ts +38 -0
- package/dist/models/HealthCheckResponse.js +51 -0
- package/dist/models/LoginRequest.d.ts +38 -0
- package/dist/models/LoginRequest.js +55 -0
- package/dist/models/LoginResponse.d.ts +32 -0
- package/dist/models/LoginResponse.js +51 -0
- package/dist/models/SignupRequest.d.ts +44 -0
- package/dist/models/SignupRequest.js +59 -0
- package/dist/models/SignupResponse.d.ts +32 -0
- package/dist/models/SignupResponse.js +51 -0
- package/dist/models/UpdateAPIKeyRequest.d.ts +50 -0
- package/dist/models/UpdateAPIKeyRequest.js +55 -0
- package/dist/models/UpdateVaultRequest.d.ts +50 -0
- package/dist/models/UpdateVaultRequest.js +55 -0
- package/dist/models/Vault.d.ts +74 -0
- package/dist/models/Vault.js +69 -0
- package/dist/models/VaultAPIKey.d.ts +75 -0
- package/dist/models/VaultAPIKey.js +72 -0
- package/dist/models/VaultLite.d.ts +56 -0
- package/dist/models/VaultLite.js +61 -0
- package/dist/models/index.d.ts +18 -0
- package/dist/models/index.js +36 -0
- package/dist/runtime.d.ts +184 -0
- package/dist/runtime.js +564 -0
- package/package.json +19 -0
- package/src/apis/APIKeyApi.ts +219 -0
- package/src/apis/AuditApi.ts +98 -0
- package/src/apis/AuthApi.ts +144 -0
- package/src/apis/CliApi.ts +133 -0
- package/src/apis/DefaultApi.ts +56 -0
- package/src/apis/UserApi.ts +56 -0
- package/src/apis/VaultApi.ts +226 -0
- package/src/apis/index.ts +9 -0
- package/src/index.ts +5 -0
- package/src/models/APIKeysResponse.ts +101 -0
- package/src/models/AuditLog.ts +141 -0
- package/src/models/AuditLogsResponse.ts +101 -0
- package/src/models/CreateAPIKeyRequest.ts +82 -0
- package/src/models/CreateAPIKeyResponse.ts +83 -0
- package/src/models/CreateVaultRequest.ts +91 -0
- package/src/models/EnableClientEncryption.ts +53 -0
- package/src/models/GetUserResponse.ts +82 -0
- package/src/models/HealthCheckResponse.ts +73 -0
- package/src/models/LoginRequest.ts +75 -0
- package/src/models/LoginResponse.ts +66 -0
- package/src/models/SignupRequest.ts +84 -0
- package/src/models/SignupResponse.ts +66 -0
- package/src/models/UpdateAPIKeyRequest.ts +89 -0
- package/src/models/UpdateVaultRequest.ts +89 -0
- package/src/models/Vault.ts +124 -0
- package/src/models/VaultAPIKey.ts +133 -0
- package/src/models/VaultLite.ts +99 -0
- package/src/models/index.ts +20 -0
- package/src/runtime.ts +432 -0
- package/tsconfig.json +20 -0
|
@@ -0,0 +1,82 @@
|
|
|
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 CreateAPIKeyRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateAPIKeyRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Human-readable name for the API key
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CreateAPIKeyRequest
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
* Array of vault unique IDs this key can access (empty = all user's vaults)
|
|
30
|
+
* @type {Array<string>}
|
|
31
|
+
* @memberof CreateAPIKeyRequest
|
|
32
|
+
*/
|
|
33
|
+
vaultUniqueIds?: Array<string>;
|
|
34
|
+
/**
|
|
35
|
+
* Optional expiration date
|
|
36
|
+
* @type {Date}
|
|
37
|
+
* @memberof CreateAPIKeyRequest
|
|
38
|
+
*/
|
|
39
|
+
expiresAt?: Date;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the CreateAPIKeyRequest interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfCreateAPIKeyRequest(value: object): value is CreateAPIKeyRequest {
|
|
46
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function CreateAPIKeyRequestFromJSON(json: any): CreateAPIKeyRequest {
|
|
51
|
+
return CreateAPIKeyRequestFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function CreateAPIKeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAPIKeyRequest {
|
|
55
|
+
if (json == null) {
|
|
56
|
+
return json;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
|
|
60
|
+
'name': json['name'],
|
|
61
|
+
'vaultUniqueIds': json['vaultUniqueIds'] == null ? undefined : json['vaultUniqueIds'],
|
|
62
|
+
'expiresAt': json['expiresAt'] == null ? undefined : (new Date(json['expiresAt'])),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function CreateAPIKeyRequestToJSON(json: any): CreateAPIKeyRequest {
|
|
67
|
+
return CreateAPIKeyRequestToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function CreateAPIKeyRequestToJSONTyped(value?: CreateAPIKeyRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'name': value['name'],
|
|
78
|
+
'vaultUniqueIds': value['vaultUniqueIds'],
|
|
79
|
+
'expiresAt': value['expiresAt'] == null ? undefined : ((value['expiresAt']).toISOString()),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
@@ -0,0 +1,83 @@
|
|
|
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
|
+
import type { VaultAPIKey } from './VaultAPIKey';
|
|
17
|
+
import {
|
|
18
|
+
VaultAPIKeyFromJSON,
|
|
19
|
+
VaultAPIKeyFromJSONTyped,
|
|
20
|
+
VaultAPIKeyToJSON,
|
|
21
|
+
VaultAPIKeyToJSONTyped,
|
|
22
|
+
} from './VaultAPIKey';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface CreateAPIKeyResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface CreateAPIKeyResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {VaultAPIKey}
|
|
33
|
+
* @memberof CreateAPIKeyResponse
|
|
34
|
+
*/
|
|
35
|
+
apiKey: VaultAPIKey;
|
|
36
|
+
/**
|
|
37
|
+
* The generated API key (only shown once)
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CreateAPIKeyResponse
|
|
40
|
+
*/
|
|
41
|
+
key: string;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the CreateAPIKeyResponse interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfCreateAPIKeyResponse(value: object): value is CreateAPIKeyResponse {
|
|
48
|
+
if (!('apiKey' in value) || value['apiKey'] === undefined) return false;
|
|
49
|
+
if (!('key' in value) || value['key'] === undefined) return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function CreateAPIKeyResponseFromJSON(json: any): CreateAPIKeyResponse {
|
|
54
|
+
return CreateAPIKeyResponseFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function CreateAPIKeyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAPIKeyResponse {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'apiKey': VaultAPIKeyFromJSON(json['apiKey']),
|
|
64
|
+
'key': json['key'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function CreateAPIKeyResponseToJSON(json: any): CreateAPIKeyResponse {
|
|
69
|
+
return CreateAPIKeyResponseToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function CreateAPIKeyResponseToJSONTyped(value?: CreateAPIKeyResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'apiKey': VaultAPIKeyToJSON(value['apiKey']),
|
|
80
|
+
'key': value['key'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -0,0 +1,91 @@
|
|
|
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 CreateVaultRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateVaultRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Human-readable name
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CreateVaultRequest
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
* Value to be encrypted and stored
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CreateVaultRequest
|
|
32
|
+
*/
|
|
33
|
+
value: string;
|
|
34
|
+
/**
|
|
35
|
+
* Human-readable description
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof CreateVaultRequest
|
|
38
|
+
*/
|
|
39
|
+
description?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Category/type of vault
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof CreateVaultRequest
|
|
44
|
+
*/
|
|
45
|
+
category?: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the CreateVaultRequest interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfCreateVaultRequest(value: object): value is CreateVaultRequest {
|
|
52
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
53
|
+
if (!('value' in value) || value['value'] === undefined) return false;
|
|
54
|
+
return true;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function CreateVaultRequestFromJSON(json: any): CreateVaultRequest {
|
|
58
|
+
return CreateVaultRequestFromJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function CreateVaultRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateVaultRequest {
|
|
62
|
+
if (json == null) {
|
|
63
|
+
return json;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
|
|
67
|
+
'name': json['name'],
|
|
68
|
+
'value': json['value'],
|
|
69
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
70
|
+
'category': json['category'] == null ? undefined : json['category'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function CreateVaultRequestToJSON(json: any): CreateVaultRequest {
|
|
75
|
+
return CreateVaultRequestToJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function CreateVaultRequestToJSONTyped(value?: CreateVaultRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
79
|
+
if (value == null) {
|
|
80
|
+
return value;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return {
|
|
84
|
+
|
|
85
|
+
'name': value['name'],
|
|
86
|
+
'value': value['value'],
|
|
87
|
+
'description': value['description'],
|
|
88
|
+
'category': value['category'],
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Enable additional client-side encryption using key derived from API key + vault unique ID
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const EnableClientEncryption = {
|
|
21
|
+
True: 'true',
|
|
22
|
+
False: 'false'
|
|
23
|
+
} as const;
|
|
24
|
+
export type EnableClientEncryption = typeof EnableClientEncryption[keyof typeof EnableClientEncryption];
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export function instanceOfEnableClientEncryption(value: any): boolean {
|
|
28
|
+
for (const key in EnableClientEncryption) {
|
|
29
|
+
if (Object.prototype.hasOwnProperty.call(EnableClientEncryption, key)) {
|
|
30
|
+
if (EnableClientEncryption[key as keyof typeof EnableClientEncryption] === value) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function EnableClientEncryptionFromJSON(json: any): EnableClientEncryption {
|
|
39
|
+
return EnableClientEncryptionFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function EnableClientEncryptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): EnableClientEncryption {
|
|
43
|
+
return json as EnableClientEncryption;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function EnableClientEncryptionToJSON(value?: EnableClientEncryption | null): any {
|
|
47
|
+
return value as any;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function EnableClientEncryptionToJSONTyped(value: any, ignoreDiscriminator: boolean): EnableClientEncryption {
|
|
51
|
+
return value as EnableClientEncryption;
|
|
52
|
+
}
|
|
53
|
+
|
|
@@ -0,0 +1,82 @@
|
|
|
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 GetUserResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface GetUserResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof GetUserResponse
|
|
26
|
+
*/
|
|
27
|
+
email: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof GetUserResponse
|
|
32
|
+
*/
|
|
33
|
+
name?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof GetUserResponse
|
|
38
|
+
*/
|
|
39
|
+
avatar?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the GetUserResponse interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfGetUserResponse(value: object): value is GetUserResponse {
|
|
46
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function GetUserResponseFromJSON(json: any): GetUserResponse {
|
|
51
|
+
return GetUserResponseFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function GetUserResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetUserResponse {
|
|
55
|
+
if (json == null) {
|
|
56
|
+
return json;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
|
|
60
|
+
'email': json['email'],
|
|
61
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
62
|
+
'avatar': json['avatar'] == null ? undefined : json['avatar'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function GetUserResponseToJSON(json: any): GetUserResponse {
|
|
67
|
+
return GetUserResponseToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function GetUserResponseToJSONTyped(value?: GetUserResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'email': value['email'],
|
|
78
|
+
'name': value['name'],
|
|
79
|
+
'avatar': value['avatar'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
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 HealthCheckResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface HealthCheckResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof HealthCheckResponse
|
|
26
|
+
*/
|
|
27
|
+
status?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {Date}
|
|
31
|
+
* @memberof HealthCheckResponse
|
|
32
|
+
*/
|
|
33
|
+
timestamp?: Date;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the HealthCheckResponse interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfHealthCheckResponse(value: object): value is HealthCheckResponse {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function HealthCheckResponseFromJSON(json: any): HealthCheckResponse {
|
|
44
|
+
return HealthCheckResponseFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function HealthCheckResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): HealthCheckResponse {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
54
|
+
'timestamp': json['timestamp'] == null ? undefined : (new Date(json['timestamp'])),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function HealthCheckResponseToJSON(json: any): HealthCheckResponse {
|
|
59
|
+
return HealthCheckResponseToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function HealthCheckResponseToJSONTyped(value?: HealthCheckResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'status': value['status'],
|
|
70
|
+
'timestamp': value['timestamp'] == null ? undefined : ((value['timestamp']).toISOString()),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
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 LoginRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface LoginRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof LoginRequest
|
|
26
|
+
*/
|
|
27
|
+
email: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof LoginRequest
|
|
32
|
+
*/
|
|
33
|
+
password: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the LoginRequest interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfLoginRequest(value: object): value is LoginRequest {
|
|
40
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
41
|
+
if (!('password' in value) || value['password'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function LoginRequestFromJSON(json: any): LoginRequest {
|
|
46
|
+
return LoginRequestFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function LoginRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginRequest {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'email': json['email'],
|
|
56
|
+
'password': json['password'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function LoginRequestToJSON(json: any): LoginRequest {
|
|
61
|
+
return LoginRequestToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function LoginRequestToJSONTyped(value?: LoginRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'email': value['email'],
|
|
72
|
+
'password': value['password'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
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 LoginResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface LoginResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof LoginResponse
|
|
26
|
+
*/
|
|
27
|
+
token: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the LoginResponse interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfLoginResponse(value: object): value is LoginResponse {
|
|
34
|
+
if (!('token' in value) || value['token'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function LoginResponseFromJSON(json: any): LoginResponse {
|
|
39
|
+
return LoginResponseFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function LoginResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginResponse {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'token': json['token'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function LoginResponseToJSON(json: any): LoginResponse {
|
|
53
|
+
return LoginResponseToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function LoginResponseToJSONTyped(value?: LoginResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'token': value['token'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
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 SignupRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface SignupRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SignupRequest
|
|
26
|
+
*/
|
|
27
|
+
email: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof SignupRequest
|
|
32
|
+
*/
|
|
33
|
+
password: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof SignupRequest
|
|
38
|
+
*/
|
|
39
|
+
name: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the SignupRequest interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfSignupRequest(value: object): value is SignupRequest {
|
|
46
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
47
|
+
if (!('password' in value) || value['password'] === undefined) return false;
|
|
48
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function SignupRequestFromJSON(json: any): SignupRequest {
|
|
53
|
+
return SignupRequestFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function SignupRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignupRequest {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'email': json['email'],
|
|
63
|
+
'password': json['password'],
|
|
64
|
+
'name': json['name'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function SignupRequestToJSON(json: any): SignupRequest {
|
|
69
|
+
return SignupRequestToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function SignupRequestToJSONTyped(value?: SignupRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'email': value['email'],
|
|
80
|
+
'password': value['password'],
|
|
81
|
+
'name': value['name'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|