@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.
Files changed (93) hide show
  1. package/.openapi-generator/FILES +35 -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/APIKeyApi.d.ts +64 -0
  6. package/dist/apis/APIKeyApi.js +270 -0
  7. package/dist/apis/AuditApi.d.ts +33 -0
  8. package/dist/apis/AuditApi.js +142 -0
  9. package/dist/apis/AuthApi.d.ts +48 -0
  10. package/dist/apis/AuthApi.js +211 -0
  11. package/dist/apis/CliApi.d.ts +48 -0
  12. package/dist/apis/CliApi.js +209 -0
  13. package/dist/apis/DefaultApi.d.ts +26 -0
  14. package/dist/apis/DefaultApi.js +121 -0
  15. package/dist/apis/UserApi.d.ts +26 -0
  16. package/dist/apis/UserApi.js +121 -0
  17. package/dist/apis/VaultApi.d.ts +71 -0
  18. package/dist/apis/VaultApi.js +302 -0
  19. package/dist/apis/index.d.ts +7 -0
  20. package/dist/apis/index.js +25 -0
  21. package/dist/index.d.ts +3 -0
  22. package/dist/index.js +21 -0
  23. package/dist/models/APIKeysResponse.d.ts +51 -0
  24. package/dist/models/APIKeysResponse.js +64 -0
  25. package/dist/models/AuditLog.d.ts +80 -0
  26. package/dist/models/AuditLog.js +81 -0
  27. package/dist/models/AuditLogsResponse.d.ts +51 -0
  28. package/dist/models/AuditLogsResponse.js +64 -0
  29. package/dist/models/CreateAPIKeyRequest.d.ts +44 -0
  30. package/dist/models/CreateAPIKeyRequest.js +55 -0
  31. package/dist/models/CreateAPIKeyResponse.d.ts +39 -0
  32. package/dist/models/CreateAPIKeyResponse.js +56 -0
  33. package/dist/models/CreateVaultRequest.d.ts +50 -0
  34. package/dist/models/CreateVaultRequest.js +59 -0
  35. package/dist/models/EnableClientEncryption.d.ts +25 -0
  36. package/dist/models/EnableClientEncryption.js +51 -0
  37. package/dist/models/GetUserResponse.d.ts +44 -0
  38. package/dist/models/GetUserResponse.js +55 -0
  39. package/dist/models/HealthCheckResponse.d.ts +38 -0
  40. package/dist/models/HealthCheckResponse.js +51 -0
  41. package/dist/models/LoginRequest.d.ts +38 -0
  42. package/dist/models/LoginRequest.js +55 -0
  43. package/dist/models/LoginResponse.d.ts +32 -0
  44. package/dist/models/LoginResponse.js +51 -0
  45. package/dist/models/SignupRequest.d.ts +44 -0
  46. package/dist/models/SignupRequest.js +59 -0
  47. package/dist/models/SignupResponse.d.ts +32 -0
  48. package/dist/models/SignupResponse.js +51 -0
  49. package/dist/models/UpdateAPIKeyRequest.d.ts +50 -0
  50. package/dist/models/UpdateAPIKeyRequest.js +55 -0
  51. package/dist/models/UpdateVaultRequest.d.ts +50 -0
  52. package/dist/models/UpdateVaultRequest.js +55 -0
  53. package/dist/models/Vault.d.ts +74 -0
  54. package/dist/models/Vault.js +69 -0
  55. package/dist/models/VaultAPIKey.d.ts +75 -0
  56. package/dist/models/VaultAPIKey.js +72 -0
  57. package/dist/models/VaultLite.d.ts +56 -0
  58. package/dist/models/VaultLite.js +61 -0
  59. package/dist/models/index.d.ts +18 -0
  60. package/dist/models/index.js +36 -0
  61. package/dist/runtime.d.ts +184 -0
  62. package/dist/runtime.js +564 -0
  63. package/package.json +19 -0
  64. package/src/apis/APIKeyApi.ts +219 -0
  65. package/src/apis/AuditApi.ts +98 -0
  66. package/src/apis/AuthApi.ts +144 -0
  67. package/src/apis/CliApi.ts +133 -0
  68. package/src/apis/DefaultApi.ts +56 -0
  69. package/src/apis/UserApi.ts +56 -0
  70. package/src/apis/VaultApi.ts +226 -0
  71. package/src/apis/index.ts +9 -0
  72. package/src/index.ts +5 -0
  73. package/src/models/APIKeysResponse.ts +101 -0
  74. package/src/models/AuditLog.ts +141 -0
  75. package/src/models/AuditLogsResponse.ts +101 -0
  76. package/src/models/CreateAPIKeyRequest.ts +82 -0
  77. package/src/models/CreateAPIKeyResponse.ts +83 -0
  78. package/src/models/CreateVaultRequest.ts +91 -0
  79. package/src/models/EnableClientEncryption.ts +53 -0
  80. package/src/models/GetUserResponse.ts +82 -0
  81. package/src/models/HealthCheckResponse.ts +73 -0
  82. package/src/models/LoginRequest.ts +75 -0
  83. package/src/models/LoginResponse.ts +66 -0
  84. package/src/models/SignupRequest.ts +84 -0
  85. package/src/models/SignupResponse.ts +66 -0
  86. package/src/models/UpdateAPIKeyRequest.ts +89 -0
  87. package/src/models/UpdateVaultRequest.ts +89 -0
  88. package/src/models/Vault.ts +124 -0
  89. package/src/models/VaultAPIKey.ts +133 -0
  90. package/src/models/VaultLite.ts +99 -0
  91. package/src/models/index.ts +20 -0
  92. package/src/runtime.ts +432 -0
  93. package/tsconfig.json +20 -0
@@ -0,0 +1,80 @@
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 { VaultAPIKey } from './VaultAPIKey';
13
+ import type { VaultLite } from './VaultLite';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface AuditLog
18
+ */
19
+ export interface AuditLog {
20
+ /**
21
+ * When the action occurred
22
+ * @type {Date}
23
+ * @memberof AuditLog
24
+ */
25
+ createdAt: Date;
26
+ /**
27
+ *
28
+ * @type {VaultLite}
29
+ * @memberof AuditLog
30
+ */
31
+ vault?: VaultLite;
32
+ /**
33
+ *
34
+ * @type {VaultAPIKey}
35
+ * @memberof AuditLog
36
+ */
37
+ apiKey?: VaultAPIKey;
38
+ /**
39
+ * Type of action performed
40
+ * @type {string}
41
+ * @memberof AuditLog
42
+ */
43
+ action: AuditLogActionEnum;
44
+ /**
45
+ * IP address from which the action was performed
46
+ * @type {string}
47
+ * @memberof AuditLog
48
+ */
49
+ ipAddress?: string;
50
+ /**
51
+ * User agent string from the client
52
+ * @type {string}
53
+ * @memberof AuditLog
54
+ */
55
+ userAgent?: string;
56
+ }
57
+ /**
58
+ * @export
59
+ */
60
+ export declare const AuditLogActionEnum: {
61
+ readonly ReadVault: "read_vault";
62
+ readonly UpdateVault: "update_vault";
63
+ readonly DeleteVault: "delete_vault";
64
+ readonly CreateVault: "create_vault";
65
+ readonly LoginUser: "login_user";
66
+ readonly RegisterUser: "register_user";
67
+ readonly LogoutUser: "logout_user";
68
+ readonly CreateApiKey: "create_api_key";
69
+ readonly UpdateApiKey: "update_api_key";
70
+ readonly DeleteApiKey: "delete_api_key";
71
+ };
72
+ export type AuditLogActionEnum = typeof AuditLogActionEnum[keyof typeof AuditLogActionEnum];
73
+ /**
74
+ * Check if a given object implements the AuditLog interface.
75
+ */
76
+ export declare function instanceOfAuditLog(value: object): value is AuditLog;
77
+ export declare function AuditLogFromJSON(json: any): AuditLog;
78
+ export declare function AuditLogFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLog;
79
+ export declare function AuditLogToJSON(json: any): AuditLog;
80
+ export declare function AuditLogToJSONTyped(value?: AuditLog | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,81 @@
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.AuditLogActionEnum = void 0;
17
+ exports.instanceOfAuditLog = instanceOfAuditLog;
18
+ exports.AuditLogFromJSON = AuditLogFromJSON;
19
+ exports.AuditLogFromJSONTyped = AuditLogFromJSONTyped;
20
+ exports.AuditLogToJSON = AuditLogToJSON;
21
+ exports.AuditLogToJSONTyped = AuditLogToJSONTyped;
22
+ var VaultAPIKey_1 = require("./VaultAPIKey");
23
+ var VaultLite_1 = require("./VaultLite");
24
+ /**
25
+ * @export
26
+ */
27
+ exports.AuditLogActionEnum = {
28
+ ReadVault: 'read_vault',
29
+ UpdateVault: 'update_vault',
30
+ DeleteVault: 'delete_vault',
31
+ CreateVault: 'create_vault',
32
+ LoginUser: 'login_user',
33
+ RegisterUser: 'register_user',
34
+ LogoutUser: 'logout_user',
35
+ CreateApiKey: 'create_api_key',
36
+ UpdateApiKey: 'update_api_key',
37
+ DeleteApiKey: 'delete_api_key'
38
+ };
39
+ /**
40
+ * Check if a given object implements the AuditLog interface.
41
+ */
42
+ function instanceOfAuditLog(value) {
43
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
44
+ return false;
45
+ if (!('action' in value) || value['action'] === undefined)
46
+ return false;
47
+ return true;
48
+ }
49
+ function AuditLogFromJSON(json) {
50
+ return AuditLogFromJSONTyped(json, false);
51
+ }
52
+ function AuditLogFromJSONTyped(json, ignoreDiscriminator) {
53
+ if (json == null) {
54
+ return json;
55
+ }
56
+ return {
57
+ 'createdAt': (new Date(json['createdAt'])),
58
+ 'vault': json['vault'] == null ? undefined : (0, VaultLite_1.VaultLiteFromJSON)(json['vault']),
59
+ 'apiKey': json['apiKey'] == null ? undefined : (0, VaultAPIKey_1.VaultAPIKeyFromJSON)(json['apiKey']),
60
+ 'action': json['action'],
61
+ 'ipAddress': json['ipAddress'] == null ? undefined : json['ipAddress'],
62
+ 'userAgent': json['userAgent'] == null ? undefined : json['userAgent'],
63
+ };
64
+ }
65
+ function AuditLogToJSON(json) {
66
+ return AuditLogToJSONTyped(json, false);
67
+ }
68
+ function AuditLogToJSONTyped(value, ignoreDiscriminator) {
69
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
70
+ if (value == null) {
71
+ return value;
72
+ }
73
+ return {
74
+ 'createdAt': ((value['createdAt']).toISOString()),
75
+ 'vault': (0, VaultLite_1.VaultLiteToJSON)(value['vault']),
76
+ 'apiKey': (0, VaultAPIKey_1.VaultAPIKeyToJSON)(value['apiKey']),
77
+ 'action': value['action'],
78
+ 'ipAddress': value['ipAddress'],
79
+ 'userAgent': value['userAgent'],
80
+ };
81
+ }
@@ -0,0 +1,51 @@
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 { AuditLog } from './AuditLog';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AuditLogsResponse
17
+ */
18
+ export interface AuditLogsResponse {
19
+ /**
20
+ *
21
+ * @type {Array<AuditLog>}
22
+ * @memberof AuditLogsResponse
23
+ */
24
+ auditLogs: Array<AuditLog>;
25
+ /**
26
+ * Total number of logs matching the filter criteria
27
+ * @type {number}
28
+ * @memberof AuditLogsResponse
29
+ */
30
+ totalCount: number;
31
+ /**
32
+ * Number of logs per page
33
+ * @type {number}
34
+ * @memberof AuditLogsResponse
35
+ */
36
+ pageSize: number;
37
+ /**
38
+ * Current page index (starting from 0)
39
+ * @type {number}
40
+ * @memberof AuditLogsResponse
41
+ */
42
+ pageIndex: number;
43
+ }
44
+ /**
45
+ * Check if a given object implements the AuditLogsResponse interface.
46
+ */
47
+ export declare function instanceOfAuditLogsResponse(value: object): value is AuditLogsResponse;
48
+ export declare function AuditLogsResponseFromJSON(json: any): AuditLogsResponse;
49
+ export declare function AuditLogsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsResponse;
50
+ export declare function AuditLogsResponseToJSON(json: any): AuditLogsResponse;
51
+ export declare function AuditLogsResponseToJSONTyped(value?: AuditLogsResponse | null, ignoreDiscriminator?: boolean): any;
@@ -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.instanceOfAuditLogsResponse = instanceOfAuditLogsResponse;
17
+ exports.AuditLogsResponseFromJSON = AuditLogsResponseFromJSON;
18
+ exports.AuditLogsResponseFromJSONTyped = AuditLogsResponseFromJSONTyped;
19
+ exports.AuditLogsResponseToJSON = AuditLogsResponseToJSON;
20
+ exports.AuditLogsResponseToJSONTyped = AuditLogsResponseToJSONTyped;
21
+ var AuditLog_1 = require("./AuditLog");
22
+ /**
23
+ * Check if a given object implements the AuditLogsResponse interface.
24
+ */
25
+ function instanceOfAuditLogsResponse(value) {
26
+ if (!('auditLogs' in value) || value['auditLogs'] === 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 AuditLogsResponseFromJSON(json) {
37
+ return AuditLogsResponseFromJSONTyped(json, false);
38
+ }
39
+ function AuditLogsResponseFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'auditLogs': (json['auditLogs'].map(AuditLog_1.AuditLogFromJSON)),
45
+ 'totalCount': json['totalCount'],
46
+ 'pageSize': json['pageSize'],
47
+ 'pageIndex': json['pageIndex'],
48
+ };
49
+ }
50
+ function AuditLogsResponseToJSON(json) {
51
+ return AuditLogsResponseToJSONTyped(json, false);
52
+ }
53
+ function AuditLogsResponseToJSONTyped(value, ignoreDiscriminator) {
54
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'auditLogs': (value['auditLogs'].map(AuditLog_1.AuditLogToJSON)),
60
+ 'totalCount': value['totalCount'],
61
+ 'pageSize': value['pageSize'],
62
+ 'pageIndex': value['pageIndex'],
63
+ };
64
+ }
@@ -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 { VaultAPIKey } from './VaultAPIKey';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CreateAPIKeyResponse
17
+ */
18
+ export interface CreateAPIKeyResponse {
19
+ /**
20
+ *
21
+ * @type {VaultAPIKey}
22
+ * @memberof CreateAPIKeyResponse
23
+ */
24
+ apiKey: VaultAPIKey;
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 VaultAPIKey_1 = require("./VaultAPIKey");
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, VaultAPIKey_1.VaultAPIKeyFromJSON)(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, VaultAPIKey_1.VaultAPIKeyToJSON)(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 CreateVaultRequest
16
+ */
17
+ export interface CreateVaultRequest {
18
+ /**
19
+ * Human-readable name
20
+ * @type {string}
21
+ * @memberof CreateVaultRequest
22
+ */
23
+ name: string;
24
+ /**
25
+ * Value to be encrypted and stored
26
+ * @type {string}
27
+ * @memberof CreateVaultRequest
28
+ */
29
+ value: string;
30
+ /**
31
+ * Human-readable description
32
+ * @type {string}
33
+ * @memberof CreateVaultRequest
34
+ */
35
+ description?: string;
36
+ /**
37
+ * Category/type of vault
38
+ * @type {string}
39
+ * @memberof CreateVaultRequest
40
+ */
41
+ category?: string;
42
+ }
43
+ /**
44
+ * Check if a given object implements the CreateVaultRequest interface.
45
+ */
46
+ export declare function instanceOfCreateVaultRequest(value: object): value is CreateVaultRequest;
47
+ export declare function CreateVaultRequestFromJSON(json: any): CreateVaultRequest;
48
+ export declare function CreateVaultRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateVaultRequest;
49
+ export declare function CreateVaultRequestToJSON(json: any): CreateVaultRequest;
50
+ export declare function CreateVaultRequestToJSONTyped(value?: CreateVaultRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
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.instanceOfCreateVaultRequest = instanceOfCreateVaultRequest;
17
+ exports.CreateVaultRequestFromJSON = CreateVaultRequestFromJSON;
18
+ exports.CreateVaultRequestFromJSONTyped = CreateVaultRequestFromJSONTyped;
19
+ exports.CreateVaultRequestToJSON = CreateVaultRequestToJSON;
20
+ exports.CreateVaultRequestToJSONTyped = CreateVaultRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the CreateVaultRequest interface.
23
+ */
24
+ function instanceOfCreateVaultRequest(value) {
25
+ if (!('name' in value) || value['name'] === undefined)
26
+ return false;
27
+ if (!('value' in value) || value['value'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function CreateVaultRequestFromJSON(json) {
32
+ return CreateVaultRequestFromJSONTyped(json, false);
33
+ }
34
+ function CreateVaultRequestFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'name': json['name'],
40
+ 'value': json['value'],
41
+ 'description': json['description'] == null ? undefined : json['description'],
42
+ 'category': json['category'] == null ? undefined : json['category'],
43
+ };
44
+ }
45
+ function CreateVaultRequestToJSON(json) {
46
+ return CreateVaultRequestToJSONTyped(json, false);
47
+ }
48
+ function CreateVaultRequestToJSONTyped(value, ignoreDiscriminator) {
49
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'name': value['name'],
55
+ 'value': value['value'],
56
+ 'description': value['description'],
57
+ 'category': value['category'],
58
+ };
59
+ }
@@ -0,0 +1,25 @@
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
+ * Enable additional client-side encryption using key derived from API key + vault unique ID
14
+ * @export
15
+ */
16
+ export declare const EnableClientEncryption: {
17
+ readonly True: "true";
18
+ readonly False: "false";
19
+ };
20
+ export type EnableClientEncryption = typeof EnableClientEncryption[keyof typeof EnableClientEncryption];
21
+ export declare function instanceOfEnableClientEncryption(value: any): boolean;
22
+ export declare function EnableClientEncryptionFromJSON(json: any): EnableClientEncryption;
23
+ export declare function EnableClientEncryptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): EnableClientEncryption;
24
+ export declare function EnableClientEncryptionToJSON(value?: EnableClientEncryption | null): any;
25
+ export declare function EnableClientEncryptionToJSONTyped(value: any, ignoreDiscriminator: boolean): EnableClientEncryption;
@@ -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.EnableClientEncryption = void 0;
17
+ exports.instanceOfEnableClientEncryption = instanceOfEnableClientEncryption;
18
+ exports.EnableClientEncryptionFromJSON = EnableClientEncryptionFromJSON;
19
+ exports.EnableClientEncryptionFromJSONTyped = EnableClientEncryptionFromJSONTyped;
20
+ exports.EnableClientEncryptionToJSON = EnableClientEncryptionToJSON;
21
+ exports.EnableClientEncryptionToJSONTyped = EnableClientEncryptionToJSONTyped;
22
+ /**
23
+ * Enable additional client-side encryption using key derived from API key + vault unique ID
24
+ * @export
25
+ */
26
+ exports.EnableClientEncryption = {
27
+ True: 'true',
28
+ False: 'false'
29
+ };
30
+ function instanceOfEnableClientEncryption(value) {
31
+ for (var key in exports.EnableClientEncryption) {
32
+ if (Object.prototype.hasOwnProperty.call(exports.EnableClientEncryption, key)) {
33
+ if (exports.EnableClientEncryption[key] === value) {
34
+ return true;
35
+ }
36
+ }
37
+ }
38
+ return false;
39
+ }
40
+ function EnableClientEncryptionFromJSON(json) {
41
+ return EnableClientEncryptionFromJSONTyped(json, false);
42
+ }
43
+ function EnableClientEncryptionFromJSONTyped(json, ignoreDiscriminator) {
44
+ return json;
45
+ }
46
+ function EnableClientEncryptionToJSON(value) {
47
+ return value;
48
+ }
49
+ function EnableClientEncryptionToJSONTyped(value, ignoreDiscriminator) {
50
+ return value;
51
+ }