@lwshen/vault-hub-ts-fetch-client 0.20250728.154349 → 0.20250729.153154
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 +6 -0
- package/README.md +2 -2
- package/dist/apis/APIKeyApi.d.ts +64 -0
- package/dist/apis/APIKeyApi.js +270 -0
- package/dist/apis/AuditApi.js +3 -3
- package/dist/apis/VaultApi.js +3 -3
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/APIKey.d.ts +75 -0
- package/dist/models/APIKey.js +72 -0
- package/dist/models/APIKeysResponse.d.ts +51 -0
- package/dist/models/APIKeysResponse.js +64 -0
- package/dist/models/AuditLog.d.ts +10 -0
- package/dist/models/AuditLog.js +13 -7
- package/dist/models/AuditLogsResponse.js +4 -4
- 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/UpdateAPIKeyRequest.d.ts +50 -0
- package/dist/models/UpdateAPIKeyRequest.js +55 -0
- package/dist/models/Vault.js +8 -8
- package/dist/models/VaultLite.js +4 -4
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/package.json +1 -1
- package/src/apis/APIKeyApi.ts +219 -0
- package/src/apis/AuditApi.ts +3 -3
- package/src/apis/VaultApi.ts +3 -3
- package/src/apis/index.ts +1 -0
- package/src/models/APIKey.ts +133 -0
- package/src/models/APIKeysResponse.ts +101 -0
- package/src/models/AuditLog.ts +25 -7
- package/src/models/AuditLogsResponse.ts +4 -4
- package/src/models/CreateAPIKeyRequest.ts +82 -0
- package/src/models/CreateAPIKeyResponse.ts +83 -0
- package/src/models/UpdateAPIKeyRequest.ts +89 -0
- package/src/models/Vault.ts +8 -8
- package/src/models/VaultLite.ts +4 -4
- package/src/models/index.ts +5 -0
|
@@ -0,0 +1,64 @@
|
|
|
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.instanceOfAPIKeysResponse = instanceOfAPIKeysResponse;
|
|
17
|
+
exports.APIKeysResponseFromJSON = APIKeysResponseFromJSON;
|
|
18
|
+
exports.APIKeysResponseFromJSONTyped = APIKeysResponseFromJSONTyped;
|
|
19
|
+
exports.APIKeysResponseToJSON = APIKeysResponseToJSON;
|
|
20
|
+
exports.APIKeysResponseToJSONTyped = APIKeysResponseToJSONTyped;
|
|
21
|
+
var APIKey_1 = require("./APIKey");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the APIKeysResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAPIKeysResponse(value) {
|
|
26
|
+
if (!('apiKeys' in value) || value['apiKeys'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('totalCount' in value) || value['totalCount'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('pageSize' in value) || value['pageSize'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('pageIndex' in value) || value['pageIndex'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function APIKeysResponseFromJSON(json) {
|
|
37
|
+
return APIKeysResponseFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function APIKeysResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'apiKeys': (json['apiKeys'].map(APIKey_1.APIKeyFromJSON)),
|
|
45
|
+
'totalCount': json['totalCount'],
|
|
46
|
+
'pageSize': json['pageSize'],
|
|
47
|
+
'pageIndex': json['pageIndex'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function APIKeysResponseToJSON(json) {
|
|
51
|
+
return APIKeysResponseToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function APIKeysResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
54
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'apiKeys': (value['apiKeys'].map(APIKey_1.APIKeyToJSON)),
|
|
60
|
+
'totalCount': value['totalCount'],
|
|
61
|
+
'pageSize': value['pageSize'],
|
|
62
|
+
'pageIndex': value['pageIndex'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { APIKey } from './APIKey';
|
|
12
13
|
import type { VaultLite } from './VaultLite';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -28,6 +29,12 @@ export interface AuditLog {
|
|
|
28
29
|
* @memberof AuditLog
|
|
29
30
|
*/
|
|
30
31
|
vault?: VaultLite;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {APIKey}
|
|
35
|
+
* @memberof AuditLog
|
|
36
|
+
*/
|
|
37
|
+
apiKey?: APIKey;
|
|
31
38
|
/**
|
|
32
39
|
* Type of action performed
|
|
33
40
|
* @type {string}
|
|
@@ -58,6 +65,9 @@ export declare const AuditLogActionEnum: {
|
|
|
58
65
|
readonly LoginUser: "login_user";
|
|
59
66
|
readonly RegisterUser: "register_user";
|
|
60
67
|
readonly LogoutUser: "logout_user";
|
|
68
|
+
readonly CreateApiKey: "create_api_key";
|
|
69
|
+
readonly UpdateApiKey: "update_api_key";
|
|
70
|
+
readonly DeleteApiKey: "delete_api_key";
|
|
61
71
|
};
|
|
62
72
|
export type AuditLogActionEnum = typeof AuditLogActionEnum[keyof typeof AuditLogActionEnum];
|
|
63
73
|
/**
|
package/dist/models/AuditLog.js
CHANGED
|
@@ -19,6 +19,7 @@ exports.AuditLogFromJSON = AuditLogFromJSON;
|
|
|
19
19
|
exports.AuditLogFromJSONTyped = AuditLogFromJSONTyped;
|
|
20
20
|
exports.AuditLogToJSON = AuditLogToJSON;
|
|
21
21
|
exports.AuditLogToJSONTyped = AuditLogToJSONTyped;
|
|
22
|
+
var APIKey_1 = require("./APIKey");
|
|
22
23
|
var VaultLite_1 = require("./VaultLite");
|
|
23
24
|
/**
|
|
24
25
|
* @export
|
|
@@ -30,7 +31,10 @@ exports.AuditLogActionEnum = {
|
|
|
30
31
|
CreateVault: 'create_vault',
|
|
31
32
|
LoginUser: 'login_user',
|
|
32
33
|
RegisterUser: 'register_user',
|
|
33
|
-
LogoutUser: 'logout_user'
|
|
34
|
+
LogoutUser: 'logout_user',
|
|
35
|
+
CreateApiKey: 'create_api_key',
|
|
36
|
+
UpdateApiKey: 'update_api_key',
|
|
37
|
+
DeleteApiKey: 'delete_api_key'
|
|
34
38
|
};
|
|
35
39
|
/**
|
|
36
40
|
* Check if a given object implements the AuditLog interface.
|
|
@@ -50,11 +54,12 @@ function AuditLogFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
54
|
return json;
|
|
51
55
|
}
|
|
52
56
|
return {
|
|
53
|
-
'createdAt': (new Date(json['
|
|
57
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
54
58
|
'vault': json['vault'] == null ? undefined : (0, VaultLite_1.VaultLiteFromJSON)(json['vault']),
|
|
59
|
+
'apiKey': json['apiKey'] == null ? undefined : (0, APIKey_1.APIKeyFromJSON)(json['apiKey']),
|
|
55
60
|
'action': json['action'],
|
|
56
|
-
'ipAddress': json['
|
|
57
|
-
'userAgent': json['
|
|
61
|
+
'ipAddress': json['ipAddress'] == null ? undefined : json['ipAddress'],
|
|
62
|
+
'userAgent': json['userAgent'] == null ? undefined : json['userAgent'],
|
|
58
63
|
};
|
|
59
64
|
}
|
|
60
65
|
function AuditLogToJSON(json) {
|
|
@@ -66,10 +71,11 @@ function AuditLogToJSONTyped(value, ignoreDiscriminator) {
|
|
|
66
71
|
return value;
|
|
67
72
|
}
|
|
68
73
|
return {
|
|
69
|
-
'
|
|
74
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
70
75
|
'vault': (0, VaultLite_1.VaultLiteToJSON)(value['vault']),
|
|
76
|
+
'apiKey': (0, APIKey_1.APIKeyToJSON)(value['apiKey']),
|
|
71
77
|
'action': value['action'],
|
|
72
|
-
'
|
|
73
|
-
'
|
|
78
|
+
'ipAddress': value['ipAddress'],
|
|
79
|
+
'userAgent': value['userAgent'],
|
|
74
80
|
};
|
|
75
81
|
}
|
|
@@ -41,8 +41,8 @@ function AuditLogsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
41
|
return json;
|
|
42
42
|
}
|
|
43
43
|
return {
|
|
44
|
-
'auditLogs': (json['
|
|
45
|
-
'totalCount': json['
|
|
44
|
+
'auditLogs': (json['auditLogs'].map(AuditLog_1.AuditLogFromJSON)),
|
|
45
|
+
'totalCount': json['totalCount'],
|
|
46
46
|
'pageSize': json['pageSize'],
|
|
47
47
|
'pageIndex': json['pageIndex'],
|
|
48
48
|
};
|
|
@@ -56,8 +56,8 @@ function AuditLogsResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
|
56
56
|
return value;
|
|
57
57
|
}
|
|
58
58
|
return {
|
|
59
|
-
'
|
|
60
|
-
'
|
|
59
|
+
'auditLogs': (value['auditLogs'].map(AuditLog_1.AuditLogToJSON)),
|
|
60
|
+
'totalCount': value['totalCount'],
|
|
61
61
|
'pageSize': value['pageSize'],
|
|
62
62
|
'pageIndex': value['pageIndex'],
|
|
63
63
|
};
|
|
@@ -0,0 +1,44 @@
|
|
|
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 CreateAPIKeyRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateAPIKeyRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Human-readable name for the API key
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateAPIKeyRequest
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* Array of vault unique IDs this key can access (empty = all user's vaults)
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof CreateAPIKeyRequest
|
|
28
|
+
*/
|
|
29
|
+
vaultUniqueIds?: Array<string>;
|
|
30
|
+
/**
|
|
31
|
+
* Optional expiration date
|
|
32
|
+
* @type {Date}
|
|
33
|
+
* @memberof CreateAPIKeyRequest
|
|
34
|
+
*/
|
|
35
|
+
expiresAt?: Date;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the CreateAPIKeyRequest interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfCreateAPIKeyRequest(value: object): value is CreateAPIKeyRequest;
|
|
41
|
+
export declare function CreateAPIKeyRequestFromJSON(json: any): CreateAPIKeyRequest;
|
|
42
|
+
export declare function CreateAPIKeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAPIKeyRequest;
|
|
43
|
+
export declare function CreateAPIKeyRequestToJSON(json: any): CreateAPIKeyRequest;
|
|
44
|
+
export declare function CreateAPIKeyRequestToJSONTyped(value?: CreateAPIKeyRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.instanceOfCreateAPIKeyRequest = instanceOfCreateAPIKeyRequest;
|
|
17
|
+
exports.CreateAPIKeyRequestFromJSON = CreateAPIKeyRequestFromJSON;
|
|
18
|
+
exports.CreateAPIKeyRequestFromJSONTyped = CreateAPIKeyRequestFromJSONTyped;
|
|
19
|
+
exports.CreateAPIKeyRequestToJSON = CreateAPIKeyRequestToJSON;
|
|
20
|
+
exports.CreateAPIKeyRequestToJSONTyped = CreateAPIKeyRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CreateAPIKeyRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCreateAPIKeyRequest(value) {
|
|
25
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function CreateAPIKeyRequestFromJSON(json) {
|
|
30
|
+
return CreateAPIKeyRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function CreateAPIKeyRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'name': json['name'],
|
|
38
|
+
'vaultUniqueIds': json['vaultUniqueIds'] == null ? undefined : json['vaultUniqueIds'],
|
|
39
|
+
'expiresAt': json['expiresAt'] == null ? undefined : (new Date(json['expiresAt'])),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function CreateAPIKeyRequestToJSON(json) {
|
|
43
|
+
return CreateAPIKeyRequestToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function CreateAPIKeyRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
46
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'name': value['name'],
|
|
52
|
+
'vaultUniqueIds': value['vaultUniqueIds'],
|
|
53
|
+
'expiresAt': value['expiresAt'] == null ? undefined : ((value['expiresAt']).toISOString()),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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 type { APIKey } from './APIKey';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CreateAPIKeyResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface CreateAPIKeyResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {APIKey}
|
|
22
|
+
* @memberof CreateAPIKeyResponse
|
|
23
|
+
*/
|
|
24
|
+
apiKey: APIKey;
|
|
25
|
+
/**
|
|
26
|
+
* The generated API key (only shown once)
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof CreateAPIKeyResponse
|
|
29
|
+
*/
|
|
30
|
+
key: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the CreateAPIKeyResponse interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfCreateAPIKeyResponse(value: object): value is CreateAPIKeyResponse;
|
|
36
|
+
export declare function CreateAPIKeyResponseFromJSON(json: any): CreateAPIKeyResponse;
|
|
37
|
+
export declare function CreateAPIKeyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAPIKeyResponse;
|
|
38
|
+
export declare function CreateAPIKeyResponseToJSON(json: any): CreateAPIKeyResponse;
|
|
39
|
+
export declare function CreateAPIKeyResponseToJSONTyped(value?: CreateAPIKeyResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
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.instanceOfCreateAPIKeyResponse = instanceOfCreateAPIKeyResponse;
|
|
17
|
+
exports.CreateAPIKeyResponseFromJSON = CreateAPIKeyResponseFromJSON;
|
|
18
|
+
exports.CreateAPIKeyResponseFromJSONTyped = CreateAPIKeyResponseFromJSONTyped;
|
|
19
|
+
exports.CreateAPIKeyResponseToJSON = CreateAPIKeyResponseToJSON;
|
|
20
|
+
exports.CreateAPIKeyResponseToJSONTyped = CreateAPIKeyResponseToJSONTyped;
|
|
21
|
+
var APIKey_1 = require("./APIKey");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the CreateAPIKeyResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfCreateAPIKeyResponse(value) {
|
|
26
|
+
if (!('apiKey' in value) || value['apiKey'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('key' in value) || value['key'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function CreateAPIKeyResponseFromJSON(json) {
|
|
33
|
+
return CreateAPIKeyResponseFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function CreateAPIKeyResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'apiKey': (0, APIKey_1.APIKeyFromJSON)(json['apiKey']),
|
|
41
|
+
'key': json['key'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function CreateAPIKeyResponseToJSON(json) {
|
|
45
|
+
return CreateAPIKeyResponseToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function CreateAPIKeyResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
48
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'apiKey': (0, APIKey_1.APIKeyToJSON)(value['apiKey']),
|
|
54
|
+
'key': value['key'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 UpdateAPIKeyRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateAPIKeyRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Human-readable name for the API key
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UpdateAPIKeyRequest
|
|
22
|
+
*/
|
|
23
|
+
name?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Array of vault unique IDs this key can access (empty = all user's vaults)
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof UpdateAPIKeyRequest
|
|
28
|
+
*/
|
|
29
|
+
vaultUniqueIds?: Array<string>;
|
|
30
|
+
/**
|
|
31
|
+
* Optional expiration date
|
|
32
|
+
* @type {Date}
|
|
33
|
+
* @memberof UpdateAPIKeyRequest
|
|
34
|
+
*/
|
|
35
|
+
expiresAt?: Date;
|
|
36
|
+
/**
|
|
37
|
+
* Enable or disable the API key
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof UpdateAPIKeyRequest
|
|
40
|
+
*/
|
|
41
|
+
isActive?: boolean;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the UpdateAPIKeyRequest interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfUpdateAPIKeyRequest(value: object): value is UpdateAPIKeyRequest;
|
|
47
|
+
export declare function UpdateAPIKeyRequestFromJSON(json: any): UpdateAPIKeyRequest;
|
|
48
|
+
export declare function UpdateAPIKeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAPIKeyRequest;
|
|
49
|
+
export declare function UpdateAPIKeyRequestToJSON(json: any): UpdateAPIKeyRequest;
|
|
50
|
+
export declare function UpdateAPIKeyRequestToJSONTyped(value?: UpdateAPIKeyRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.instanceOfUpdateAPIKeyRequest = instanceOfUpdateAPIKeyRequest;
|
|
17
|
+
exports.UpdateAPIKeyRequestFromJSON = UpdateAPIKeyRequestFromJSON;
|
|
18
|
+
exports.UpdateAPIKeyRequestFromJSONTyped = UpdateAPIKeyRequestFromJSONTyped;
|
|
19
|
+
exports.UpdateAPIKeyRequestToJSON = UpdateAPIKeyRequestToJSON;
|
|
20
|
+
exports.UpdateAPIKeyRequestToJSONTyped = UpdateAPIKeyRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UpdateAPIKeyRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUpdateAPIKeyRequest(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function UpdateAPIKeyRequestFromJSON(json) {
|
|
28
|
+
return UpdateAPIKeyRequestFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function UpdateAPIKeyRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
36
|
+
'vaultUniqueIds': json['vaultUniqueIds'] == null ? undefined : json['vaultUniqueIds'],
|
|
37
|
+
'expiresAt': json['expiresAt'] == null ? undefined : (new Date(json['expiresAt'])),
|
|
38
|
+
'isActive': json['isActive'] == null ? undefined : json['isActive'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function UpdateAPIKeyRequestToJSON(json) {
|
|
42
|
+
return UpdateAPIKeyRequestToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function UpdateAPIKeyRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'name': value['name'],
|
|
51
|
+
'vaultUniqueIds': value['vaultUniqueIds'],
|
|
52
|
+
'expiresAt': value['expiresAt'] == null ? undefined : ((value['expiresAt']).toISOString()),
|
|
53
|
+
'isActive': value['isActive'],
|
|
54
|
+
};
|
|
55
|
+
}
|
package/dist/models/Vault.js
CHANGED
|
@@ -38,14 +38,14 @@ function VaultFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
return json;
|
|
39
39
|
}
|
|
40
40
|
return {
|
|
41
|
-
'uniqueId': json['
|
|
42
|
-
'userId': json['
|
|
41
|
+
'uniqueId': json['uniqueId'],
|
|
42
|
+
'userId': json['userId'] == null ? undefined : json['userId'],
|
|
43
43
|
'name': json['name'],
|
|
44
44
|
'value': json['value'],
|
|
45
45
|
'description': json['description'] == null ? undefined : json['description'],
|
|
46
46
|
'category': json['category'] == null ? undefined : json['category'],
|
|
47
|
-
'createdAt': json['
|
|
48
|
-
'updatedAt': json['
|
|
47
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
48
|
+
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
51
|
function VaultToJSON(json) {
|
|
@@ -57,13 +57,13 @@ function VaultToJSONTyped(value, ignoreDiscriminator) {
|
|
|
57
57
|
return value;
|
|
58
58
|
}
|
|
59
59
|
return {
|
|
60
|
-
'
|
|
61
|
-
'
|
|
60
|
+
'uniqueId': value['uniqueId'],
|
|
61
|
+
'userId': value['userId'],
|
|
62
62
|
'name': value['name'],
|
|
63
63
|
'value': value['value'],
|
|
64
64
|
'description': value['description'],
|
|
65
65
|
'category': value['category'],
|
|
66
|
-
'
|
|
67
|
-
'
|
|
66
|
+
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
67
|
+
'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
|
|
68
68
|
};
|
|
69
69
|
}
|
package/dist/models/VaultLite.js
CHANGED
|
@@ -36,11 +36,11 @@ function VaultLiteFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
36
|
return json;
|
|
37
37
|
}
|
|
38
38
|
return {
|
|
39
|
-
'uniqueId': json['
|
|
39
|
+
'uniqueId': json['uniqueId'],
|
|
40
40
|
'name': json['name'],
|
|
41
41
|
'description': json['description'] == null ? undefined : json['description'],
|
|
42
42
|
'category': json['category'] == null ? undefined : json['category'],
|
|
43
|
-
'updatedAt': json['
|
|
43
|
+
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
46
|
function VaultLiteToJSON(json) {
|
|
@@ -52,10 +52,10 @@ function VaultLiteToJSONTyped(value, ignoreDiscriminator) {
|
|
|
52
52
|
return value;
|
|
53
53
|
}
|
|
54
54
|
return {
|
|
55
|
-
'
|
|
55
|
+
'uniqueId': value['uniqueId'],
|
|
56
56
|
'name': value['name'],
|
|
57
57
|
'description': value['description'],
|
|
58
58
|
'category': value['category'],
|
|
59
|
-
'
|
|
59
|
+
'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
|
|
60
60
|
};
|
|
61
61
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
export * from './APIKey';
|
|
2
|
+
export * from './APIKeysResponse';
|
|
1
3
|
export * from './AuditLog';
|
|
2
4
|
export * from './AuditLogsResponse';
|
|
5
|
+
export * from './CreateAPIKeyRequest';
|
|
6
|
+
export * from './CreateAPIKeyResponse';
|
|
3
7
|
export * from './CreateVaultRequest';
|
|
4
8
|
export * from './GetUserResponse';
|
|
5
9
|
export * from './HealthCheckResponse';
|
|
@@ -7,6 +11,7 @@ export * from './LoginRequest';
|
|
|
7
11
|
export * from './LoginResponse';
|
|
8
12
|
export * from './SignupRequest';
|
|
9
13
|
export * from './SignupResponse';
|
|
14
|
+
export * from './UpdateAPIKeyRequest';
|
|
10
15
|
export * from './UpdateVaultRequest';
|
|
11
16
|
export * from './Vault';
|
|
12
17
|
export * from './VaultLite';
|
package/dist/models/index.js
CHANGED
|
@@ -16,8 +16,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./APIKey"), exports);
|
|
20
|
+
__exportStar(require("./APIKeysResponse"), exports);
|
|
19
21
|
__exportStar(require("./AuditLog"), exports);
|
|
20
22
|
__exportStar(require("./AuditLogsResponse"), exports);
|
|
23
|
+
__exportStar(require("./CreateAPIKeyRequest"), exports);
|
|
24
|
+
__exportStar(require("./CreateAPIKeyResponse"), exports);
|
|
21
25
|
__exportStar(require("./CreateVaultRequest"), exports);
|
|
22
26
|
__exportStar(require("./GetUserResponse"), exports);
|
|
23
27
|
__exportStar(require("./HealthCheckResponse"), exports);
|
|
@@ -25,6 +29,7 @@ __exportStar(require("./LoginRequest"), exports);
|
|
|
25
29
|
__exportStar(require("./LoginResponse"), exports);
|
|
26
30
|
__exportStar(require("./SignupRequest"), exports);
|
|
27
31
|
__exportStar(require("./SignupResponse"), exports);
|
|
32
|
+
__exportStar(require("./UpdateAPIKeyRequest"), exports);
|
|
28
33
|
__exportStar(require("./UpdateVaultRequest"), exports);
|
|
29
34
|
__exportStar(require("./Vault"), exports);
|
|
30
35
|
__exportStar(require("./VaultLite"), exports);
|
package/package.json
CHANGED