@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,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 UpdateVaultRequest
16
+ */
17
+ export interface UpdateVaultRequest {
18
+ /**
19
+ * Human-readable name
20
+ * @type {string}
21
+ * @memberof UpdateVaultRequest
22
+ */
23
+ name?: string;
24
+ /**
25
+ * Value to be encrypted and stored
26
+ * @type {string}
27
+ * @memberof UpdateVaultRequest
28
+ */
29
+ value?: string;
30
+ /**
31
+ * Human-readable description
32
+ * @type {string}
33
+ * @memberof UpdateVaultRequest
34
+ */
35
+ description?: string;
36
+ /**
37
+ * Category/type of vault
38
+ * @type {string}
39
+ * @memberof UpdateVaultRequest
40
+ */
41
+ category?: string;
42
+ }
43
+ /**
44
+ * Check if a given object implements the UpdateVaultRequest interface.
45
+ */
46
+ export declare function instanceOfUpdateVaultRequest(value: object): value is UpdateVaultRequest;
47
+ export declare function UpdateVaultRequestFromJSON(json: any): UpdateVaultRequest;
48
+ export declare function UpdateVaultRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateVaultRequest;
49
+ export declare function UpdateVaultRequestToJSON(json: any): UpdateVaultRequest;
50
+ export declare function UpdateVaultRequestToJSONTyped(value?: UpdateVaultRequest | 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.instanceOfUpdateVaultRequest = instanceOfUpdateVaultRequest;
17
+ exports.UpdateVaultRequestFromJSON = UpdateVaultRequestFromJSON;
18
+ exports.UpdateVaultRequestFromJSONTyped = UpdateVaultRequestFromJSONTyped;
19
+ exports.UpdateVaultRequestToJSON = UpdateVaultRequestToJSON;
20
+ exports.UpdateVaultRequestToJSONTyped = UpdateVaultRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the UpdateVaultRequest interface.
23
+ */
24
+ function instanceOfUpdateVaultRequest(value) {
25
+ return true;
26
+ }
27
+ function UpdateVaultRequestFromJSON(json) {
28
+ return UpdateVaultRequestFromJSONTyped(json, false);
29
+ }
30
+ function UpdateVaultRequestFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'name': json['name'] == null ? undefined : json['name'],
36
+ 'value': json['value'] == null ? undefined : json['value'],
37
+ 'description': json['description'] == null ? undefined : json['description'],
38
+ 'category': json['category'] == null ? undefined : json['category'],
39
+ };
40
+ }
41
+ function UpdateVaultRequestToJSON(json) {
42
+ return UpdateVaultRequestToJSONTyped(json, false);
43
+ }
44
+ function UpdateVaultRequestToJSONTyped(value, ignoreDiscriminator) {
45
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'name': value['name'],
51
+ 'value': value['value'],
52
+ 'description': value['description'],
53
+ 'category': value['category'],
54
+ };
55
+ }
@@ -0,0 +1,74 @@
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 Vault
16
+ */
17
+ export interface Vault {
18
+ /**
19
+ * Unique identifier for the vault
20
+ * @type {string}
21
+ * @memberof Vault
22
+ */
23
+ uniqueId: string;
24
+ /**
25
+ * ID of the user who owns this vault
26
+ * @type {number}
27
+ * @memberof Vault
28
+ */
29
+ userId?: number;
30
+ /**
31
+ * Human-readable name
32
+ * @type {string}
33
+ * @memberof Vault
34
+ */
35
+ name: string;
36
+ /**
37
+ * Encrypted value
38
+ * @type {string}
39
+ * @memberof Vault
40
+ */
41
+ value: string;
42
+ /**
43
+ * Human-readable description
44
+ * @type {string}
45
+ * @memberof Vault
46
+ */
47
+ description?: string;
48
+ /**
49
+ * Category/type of vault
50
+ * @type {string}
51
+ * @memberof Vault
52
+ */
53
+ category?: string;
54
+ /**
55
+ *
56
+ * @type {Date}
57
+ * @memberof Vault
58
+ */
59
+ createdAt?: Date;
60
+ /**
61
+ *
62
+ * @type {Date}
63
+ * @memberof Vault
64
+ */
65
+ updatedAt?: Date;
66
+ }
67
+ /**
68
+ * Check if a given object implements the Vault interface.
69
+ */
70
+ export declare function instanceOfVault(value: object): value is Vault;
71
+ export declare function VaultFromJSON(json: any): Vault;
72
+ export declare function VaultFromJSONTyped(json: any, ignoreDiscriminator: boolean): Vault;
73
+ export declare function VaultToJSON(json: any): Vault;
74
+ export declare function VaultToJSONTyped(value?: Vault | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,69 @@
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.instanceOfVault = instanceOfVault;
17
+ exports.VaultFromJSON = VaultFromJSON;
18
+ exports.VaultFromJSONTyped = VaultFromJSONTyped;
19
+ exports.VaultToJSON = VaultToJSON;
20
+ exports.VaultToJSONTyped = VaultToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the Vault interface.
23
+ */
24
+ function instanceOfVault(value) {
25
+ if (!('uniqueId' in value) || value['uniqueId'] === undefined)
26
+ return false;
27
+ if (!('name' in value) || value['name'] === undefined)
28
+ return false;
29
+ if (!('value' in value) || value['value'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function VaultFromJSON(json) {
34
+ return VaultFromJSONTyped(json, false);
35
+ }
36
+ function VaultFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'uniqueId': json['uniqueId'],
42
+ 'userId': json['userId'] == null ? undefined : json['userId'],
43
+ 'name': json['name'],
44
+ 'value': json['value'],
45
+ 'description': json['description'] == null ? undefined : json['description'],
46
+ 'category': json['category'] == null ? undefined : json['category'],
47
+ 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
48
+ 'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
49
+ };
50
+ }
51
+ function VaultToJSON(json) {
52
+ return VaultToJSONTyped(json, false);
53
+ }
54
+ function VaultToJSONTyped(value, ignoreDiscriminator) {
55
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'uniqueId': value['uniqueId'],
61
+ 'userId': value['userId'],
62
+ 'name': value['name'],
63
+ 'value': value['value'],
64
+ 'description': value['description'],
65
+ 'category': value['category'],
66
+ 'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
67
+ 'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
68
+ };
69
+ }
@@ -0,0 +1,75 @@
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 { VaultLite } from './VaultLite';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface VaultAPIKey
17
+ */
18
+ export interface VaultAPIKey {
19
+ /**
20
+ * Unique API key ID
21
+ * @type {number}
22
+ * @memberof VaultAPIKey
23
+ */
24
+ id: number;
25
+ /**
26
+ * Human-readable name for the API key
27
+ * @type {string}
28
+ * @memberof VaultAPIKey
29
+ */
30
+ name: string;
31
+ /**
32
+ * Array of vaults this key can access (null/empty = all user's vaults)
33
+ * @type {Array<VaultLite>}
34
+ * @memberof VaultAPIKey
35
+ */
36
+ vaults?: Array<VaultLite>;
37
+ /**
38
+ * Optional expiration date
39
+ * @type {Date}
40
+ * @memberof VaultAPIKey
41
+ */
42
+ expiresAt?: Date;
43
+ /**
44
+ * When the key was last used
45
+ * @type {Date}
46
+ * @memberof VaultAPIKey
47
+ */
48
+ lastUsedAt?: Date;
49
+ /**
50
+ * Whether the key is currently active
51
+ * @type {boolean}
52
+ * @memberof VaultAPIKey
53
+ */
54
+ isActive: boolean;
55
+ /**
56
+ * When the key was created
57
+ * @type {Date}
58
+ * @memberof VaultAPIKey
59
+ */
60
+ createdAt: Date;
61
+ /**
62
+ * When the key was last updated
63
+ * @type {Date}
64
+ * @memberof VaultAPIKey
65
+ */
66
+ updatedAt?: Date;
67
+ }
68
+ /**
69
+ * Check if a given object implements the VaultAPIKey interface.
70
+ */
71
+ export declare function instanceOfVaultAPIKey(value: object): value is VaultAPIKey;
72
+ export declare function VaultAPIKeyFromJSON(json: any): VaultAPIKey;
73
+ export declare function VaultAPIKeyFromJSONTyped(json: any, ignoreDiscriminator: boolean): VaultAPIKey;
74
+ export declare function VaultAPIKeyToJSON(json: any): VaultAPIKey;
75
+ export declare function VaultAPIKeyToJSONTyped(value?: VaultAPIKey | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,72 @@
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.instanceOfVaultAPIKey = instanceOfVaultAPIKey;
17
+ exports.VaultAPIKeyFromJSON = VaultAPIKeyFromJSON;
18
+ exports.VaultAPIKeyFromJSONTyped = VaultAPIKeyFromJSONTyped;
19
+ exports.VaultAPIKeyToJSON = VaultAPIKeyToJSON;
20
+ exports.VaultAPIKeyToJSONTyped = VaultAPIKeyToJSONTyped;
21
+ var VaultLite_1 = require("./VaultLite");
22
+ /**
23
+ * Check if a given object implements the VaultAPIKey interface.
24
+ */
25
+ function instanceOfVaultAPIKey(value) {
26
+ if (!('id' in value) || value['id'] === undefined)
27
+ return false;
28
+ if (!('name' in value) || value['name'] === undefined)
29
+ return false;
30
+ if (!('isActive' in value) || value['isActive'] === undefined)
31
+ return false;
32
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ function VaultAPIKeyFromJSON(json) {
37
+ return VaultAPIKeyFromJSONTyped(json, false);
38
+ }
39
+ function VaultAPIKeyFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'id': json['id'],
45
+ 'name': json['name'],
46
+ 'vaults': json['vaults'] == null ? undefined : (json['vaults'].map(VaultLite_1.VaultLiteFromJSON)),
47
+ 'expiresAt': json['expiresAt'] == null ? undefined : (new Date(json['expiresAt'])),
48
+ 'lastUsedAt': json['lastUsedAt'] == null ? undefined : (new Date(json['lastUsedAt'])),
49
+ 'isActive': json['isActive'],
50
+ 'createdAt': (new Date(json['createdAt'])),
51
+ 'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
52
+ };
53
+ }
54
+ function VaultAPIKeyToJSON(json) {
55
+ return VaultAPIKeyToJSONTyped(json, false);
56
+ }
57
+ function VaultAPIKeyToJSONTyped(value, ignoreDiscriminator) {
58
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+ 'id': value['id'],
64
+ 'name': value['name'],
65
+ 'vaults': value['vaults'] == null ? undefined : (value['vaults'].map(VaultLite_1.VaultLiteToJSON)),
66
+ 'expiresAt': value['expiresAt'] == null ? undefined : ((value['expiresAt']).toISOString()),
67
+ 'lastUsedAt': value['lastUsedAt'] == null ? undefined : ((value['lastUsedAt']).toISOString()),
68
+ 'isActive': value['isActive'],
69
+ 'createdAt': ((value['createdAt']).toISOString()),
70
+ 'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
71
+ };
72
+ }
@@ -0,0 +1,56 @@
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 VaultLite
16
+ */
17
+ export interface VaultLite {
18
+ /**
19
+ * Unique identifier for the vault
20
+ * @type {string}
21
+ * @memberof VaultLite
22
+ */
23
+ uniqueId: string;
24
+ /**
25
+ * Human-readable name
26
+ * @type {string}
27
+ * @memberof VaultLite
28
+ */
29
+ name: string;
30
+ /**
31
+ * Human-readable description
32
+ * @type {string}
33
+ * @memberof VaultLite
34
+ */
35
+ description?: string;
36
+ /**
37
+ * Category/type of vault
38
+ * @type {string}
39
+ * @memberof VaultLite
40
+ */
41
+ category?: string;
42
+ /**
43
+ *
44
+ * @type {Date}
45
+ * @memberof VaultLite
46
+ */
47
+ updatedAt?: Date;
48
+ }
49
+ /**
50
+ * Check if a given object implements the VaultLite interface.
51
+ */
52
+ export declare function instanceOfVaultLite(value: object): value is VaultLite;
53
+ export declare function VaultLiteFromJSON(json: any): VaultLite;
54
+ export declare function VaultLiteFromJSONTyped(json: any, ignoreDiscriminator: boolean): VaultLite;
55
+ export declare function VaultLiteToJSON(json: any): VaultLite;
56
+ export declare function VaultLiteToJSONTyped(value?: VaultLite | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,61 @@
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.instanceOfVaultLite = instanceOfVaultLite;
17
+ exports.VaultLiteFromJSON = VaultLiteFromJSON;
18
+ exports.VaultLiteFromJSONTyped = VaultLiteFromJSONTyped;
19
+ exports.VaultLiteToJSON = VaultLiteToJSON;
20
+ exports.VaultLiteToJSONTyped = VaultLiteToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the VaultLite interface.
23
+ */
24
+ function instanceOfVaultLite(value) {
25
+ if (!('uniqueId' in value) || value['uniqueId'] === undefined)
26
+ return false;
27
+ if (!('name' in value) || value['name'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function VaultLiteFromJSON(json) {
32
+ return VaultLiteFromJSONTyped(json, false);
33
+ }
34
+ function VaultLiteFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'uniqueId': json['uniqueId'],
40
+ 'name': json['name'],
41
+ 'description': json['description'] == null ? undefined : json['description'],
42
+ 'category': json['category'] == null ? undefined : json['category'],
43
+ 'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
44
+ };
45
+ }
46
+ function VaultLiteToJSON(json) {
47
+ return VaultLiteToJSONTyped(json, false);
48
+ }
49
+ function VaultLiteToJSONTyped(value, ignoreDiscriminator) {
50
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'uniqueId': value['uniqueId'],
56
+ 'name': value['name'],
57
+ 'description': value['description'],
58
+ 'category': value['category'],
59
+ 'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
60
+ };
61
+ }
@@ -0,0 +1,18 @@
1
+ export * from './APIKeysResponse';
2
+ export * from './AuditLog';
3
+ export * from './AuditLogsResponse';
4
+ export * from './CreateAPIKeyRequest';
5
+ export * from './CreateAPIKeyResponse';
6
+ export * from './CreateVaultRequest';
7
+ export * from './EnableClientEncryption';
8
+ export * from './GetUserResponse';
9
+ export * from './HealthCheckResponse';
10
+ export * from './LoginRequest';
11
+ export * from './LoginResponse';
12
+ export * from './SignupRequest';
13
+ export * from './SignupResponse';
14
+ export * from './UpdateAPIKeyRequest';
15
+ export * from './UpdateVaultRequest';
16
+ export * from './Vault';
17
+ export * from './VaultAPIKey';
18
+ export * from './VaultLite';
@@ -0,0 +1,36 @@
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("./APIKeysResponse"), exports);
20
+ __exportStar(require("./AuditLog"), exports);
21
+ __exportStar(require("./AuditLogsResponse"), exports);
22
+ __exportStar(require("./CreateAPIKeyRequest"), exports);
23
+ __exportStar(require("./CreateAPIKeyResponse"), exports);
24
+ __exportStar(require("./CreateVaultRequest"), exports);
25
+ __exportStar(require("./EnableClientEncryption"), exports);
26
+ __exportStar(require("./GetUserResponse"), exports);
27
+ __exportStar(require("./HealthCheckResponse"), exports);
28
+ __exportStar(require("./LoginRequest"), exports);
29
+ __exportStar(require("./LoginResponse"), exports);
30
+ __exportStar(require("./SignupRequest"), exports);
31
+ __exportStar(require("./SignupResponse"), exports);
32
+ __exportStar(require("./UpdateAPIKeyRequest"), exports);
33
+ __exportStar(require("./UpdateVaultRequest"), exports);
34
+ __exportStar(require("./Vault"), exports);
35
+ __exportStar(require("./VaultAPIKey"), exports);
36
+ __exportStar(require("./VaultLite"), exports);