@lwshen/vault-hub-ts-fetch-client 0.20250716.150014 → 0.20250717.123824

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.
@@ -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;
@@ -13,15 +13,15 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.instanceOfConfigurationItem = instanceOfConfigurationItem;
17
- exports.ConfigurationItemFromJSON = ConfigurationItemFromJSON;
18
- exports.ConfigurationItemFromJSONTyped = ConfigurationItemFromJSONTyped;
19
- exports.ConfigurationItemToJSON = ConfigurationItemToJSON;
20
- exports.ConfigurationItemToJSONTyped = ConfigurationItemToJSONTyped;
16
+ exports.instanceOfVault = instanceOfVault;
17
+ exports.VaultFromJSON = VaultFromJSON;
18
+ exports.VaultFromJSONTyped = VaultFromJSONTyped;
19
+ exports.VaultToJSON = VaultToJSON;
20
+ exports.VaultToJSONTyped = VaultToJSONTyped;
21
21
  /**
22
- * Check if a given object implements the ConfigurationItem interface.
22
+ * Check if a given object implements the Vault interface.
23
23
  */
24
- function instanceOfConfigurationItem(value) {
24
+ function instanceOfVault(value) {
25
25
  if (!('uniqueId' in value) || value['uniqueId'] === undefined)
26
26
  return false;
27
27
  if (!('name' in value) || value['name'] === undefined)
@@ -30,10 +30,10 @@ function instanceOfConfigurationItem(value) {
30
30
  return false;
31
31
  return true;
32
32
  }
33
- function ConfigurationItemFromJSON(json) {
34
- return ConfigurationItemFromJSONTyped(json, false);
33
+ function VaultFromJSON(json) {
34
+ return VaultFromJSONTyped(json, false);
35
35
  }
36
- function ConfigurationItemFromJSONTyped(json, ignoreDiscriminator) {
36
+ function VaultFromJSONTyped(json, ignoreDiscriminator) {
37
37
  if (json == null) {
38
38
  return json;
39
39
  }
@@ -48,10 +48,10 @@ function ConfigurationItemFromJSONTyped(json, ignoreDiscriminator) {
48
48
  'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
49
49
  };
50
50
  }
51
- function ConfigurationItemToJSON(json) {
52
- return ConfigurationItemToJSONTyped(json, false);
51
+ function VaultToJSON(json) {
52
+ return VaultToJSONTyped(json, false);
53
53
  }
54
- function ConfigurationItemToJSONTyped(value, ignoreDiscriminator) {
54
+ function VaultToJSONTyped(value, ignoreDiscriminator) {
55
55
  if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
56
56
  if (value == null) {
57
57
  return value;
@@ -1,9 +1,9 @@
1
- export * from './ConfigurationItem';
2
- export * from './CreateConfigurationRequest';
1
+ export * from './CreateVaultRequest';
3
2
  export * from './GetUserResponse';
4
3
  export * from './HealthCheckResponse';
5
4
  export * from './LoginRequest';
6
5
  export * from './LoginResponse';
7
6
  export * from './SignupRequest';
8
7
  export * from './SignupResponse';
9
- export * from './UpdateConfigurationRequest';
8
+ export * from './UpdateVaultRequest';
9
+ export * from './Vault';
@@ -16,12 +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("./ConfigurationItem"), exports);
20
- __exportStar(require("./CreateConfigurationRequest"), exports);
19
+ __exportStar(require("./CreateVaultRequest"), exports);
21
20
  __exportStar(require("./GetUserResponse"), exports);
22
21
  __exportStar(require("./HealthCheckResponse"), exports);
23
22
  __exportStar(require("./LoginRequest"), exports);
24
23
  __exportStar(require("./LoginResponse"), exports);
25
24
  __exportStar(require("./SignupRequest"), exports);
26
25
  __exportStar(require("./SignupResponse"), exports);
27
- __exportStar(require("./UpdateConfigurationRequest"), exports);
26
+ __exportStar(require("./UpdateVaultRequest"), exports);
27
+ __exportStar(require("./Vault"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lwshen/vault-hub-ts-fetch-client",
3
- "version": "0.20250716.150014",
3
+ "version": "0.20250717.123824",
4
4
  "description": "OpenAPI client for @lwshen/vault-hub-ts-fetch-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -0,0 +1,231 @@
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
+ import * as runtime from '../runtime';
17
+ import type {
18
+ CreateVaultRequest,
19
+ UpdateVaultRequest,
20
+ Vault,
21
+ } from '../models/index';
22
+ import {
23
+ CreateVaultRequestFromJSON,
24
+ CreateVaultRequestToJSON,
25
+ UpdateVaultRequestFromJSON,
26
+ UpdateVaultRequestToJSON,
27
+ VaultFromJSON,
28
+ VaultToJSON,
29
+ } from '../models/index';
30
+
31
+ export interface CreateVaultOperationRequest {
32
+ createVaultRequest: CreateVaultRequest;
33
+ }
34
+
35
+ export interface DeleteVaultRequest {
36
+ id: number;
37
+ }
38
+
39
+ export interface GetVaultRequest {
40
+ id: number;
41
+ }
42
+
43
+ export interface GetVaultsRequest {
44
+ category?: string;
45
+ }
46
+
47
+ export interface UpdateVaultOperationRequest {
48
+ id: number;
49
+ updateVaultRequest: UpdateVaultRequest;
50
+ }
51
+
52
+ /**
53
+ *
54
+ */
55
+ export class VaultApi extends runtime.BaseAPI {
56
+
57
+ /**
58
+ * Create a new vault
59
+ */
60
+ async createVaultRaw(requestParameters: CreateVaultOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Vault>> {
61
+ if (requestParameters['createVaultRequest'] == null) {
62
+ throw new runtime.RequiredError(
63
+ 'createVaultRequest',
64
+ 'Required parameter "createVaultRequest" was null or undefined when calling createVault().'
65
+ );
66
+ }
67
+
68
+ const queryParameters: any = {};
69
+
70
+ const headerParameters: runtime.HTTPHeaders = {};
71
+
72
+ headerParameters['Content-Type'] = 'application/json';
73
+
74
+ const response = await this.request({
75
+ path: `/api/vaults`,
76
+ method: 'POST',
77
+ headers: headerParameters,
78
+ query: queryParameters,
79
+ body: CreateVaultRequestToJSON(requestParameters['createVaultRequest']),
80
+ }, initOverrides);
81
+
82
+ return new runtime.JSONApiResponse(response, (jsonValue) => VaultFromJSON(jsonValue));
83
+ }
84
+
85
+ /**
86
+ * Create a new vault
87
+ */
88
+ async createVault(createVaultRequest: CreateVaultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Vault> {
89
+ const response = await this.createVaultRaw({ createVaultRequest: createVaultRequest }, initOverrides);
90
+ return await response.value();
91
+ }
92
+
93
+ /**
94
+ * Delete a vault
95
+ */
96
+ async deleteVaultRaw(requestParameters: DeleteVaultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
97
+ if (requestParameters['id'] == null) {
98
+ throw new runtime.RequiredError(
99
+ 'id',
100
+ 'Required parameter "id" was null or undefined when calling deleteVault().'
101
+ );
102
+ }
103
+
104
+ const queryParameters: any = {};
105
+
106
+ const headerParameters: runtime.HTTPHeaders = {};
107
+
108
+ const response = await this.request({
109
+ path: `/api/vaults/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
110
+ method: 'DELETE',
111
+ headers: headerParameters,
112
+ query: queryParameters,
113
+ }, initOverrides);
114
+
115
+ return new runtime.VoidApiResponse(response);
116
+ }
117
+
118
+ /**
119
+ * Delete a vault
120
+ */
121
+ async deleteVault(id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
122
+ await this.deleteVaultRaw({ id: id }, initOverrides);
123
+ }
124
+
125
+ /**
126
+ * Get a specific vault by ID
127
+ */
128
+ async getVaultRaw(requestParameters: GetVaultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Vault>> {
129
+ if (requestParameters['id'] == null) {
130
+ throw new runtime.RequiredError(
131
+ 'id',
132
+ 'Required parameter "id" was null or undefined when calling getVault().'
133
+ );
134
+ }
135
+
136
+ const queryParameters: any = {};
137
+
138
+ const headerParameters: runtime.HTTPHeaders = {};
139
+
140
+ const response = await this.request({
141
+ path: `/api/vaults/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
142
+ method: 'GET',
143
+ headers: headerParameters,
144
+ query: queryParameters,
145
+ }, initOverrides);
146
+
147
+ return new runtime.JSONApiResponse(response, (jsonValue) => VaultFromJSON(jsonValue));
148
+ }
149
+
150
+ /**
151
+ * Get a specific vault by ID
152
+ */
153
+ async getVault(id: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Vault> {
154
+ const response = await this.getVaultRaw({ id: id }, initOverrides);
155
+ return await response.value();
156
+ }
157
+
158
+ /**
159
+ * Get all vaults for the current user
160
+ */
161
+ async getVaultsRaw(requestParameters: GetVaultsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Vault>>> {
162
+ const queryParameters: any = {};
163
+
164
+ if (requestParameters['category'] != null) {
165
+ queryParameters['category'] = requestParameters['category'];
166
+ }
167
+
168
+ const headerParameters: runtime.HTTPHeaders = {};
169
+
170
+ const response = await this.request({
171
+ path: `/api/vaults`,
172
+ method: 'GET',
173
+ headers: headerParameters,
174
+ query: queryParameters,
175
+ }, initOverrides);
176
+
177
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(VaultFromJSON));
178
+ }
179
+
180
+ /**
181
+ * Get all vaults for the current user
182
+ */
183
+ async getVaults(category?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Vault>> {
184
+ const response = await this.getVaultsRaw({ category: category }, initOverrides);
185
+ return await response.value();
186
+ }
187
+
188
+ /**
189
+ * Update a vault
190
+ */
191
+ async updateVaultRaw(requestParameters: UpdateVaultOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Vault>> {
192
+ if (requestParameters['id'] == null) {
193
+ throw new runtime.RequiredError(
194
+ 'id',
195
+ 'Required parameter "id" was null or undefined when calling updateVault().'
196
+ );
197
+ }
198
+
199
+ if (requestParameters['updateVaultRequest'] == null) {
200
+ throw new runtime.RequiredError(
201
+ 'updateVaultRequest',
202
+ 'Required parameter "updateVaultRequest" was null or undefined when calling updateVault().'
203
+ );
204
+ }
205
+
206
+ const queryParameters: any = {};
207
+
208
+ const headerParameters: runtime.HTTPHeaders = {};
209
+
210
+ headerParameters['Content-Type'] = 'application/json';
211
+
212
+ const response = await this.request({
213
+ path: `/api/vaults/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
214
+ method: 'PUT',
215
+ headers: headerParameters,
216
+ query: queryParameters,
217
+ body: UpdateVaultRequestToJSON(requestParameters['updateVaultRequest']),
218
+ }, initOverrides);
219
+
220
+ return new runtime.JSONApiResponse(response, (jsonValue) => VaultFromJSON(jsonValue));
221
+ }
222
+
223
+ /**
224
+ * Update a vault
225
+ */
226
+ async updateVault(id: number, updateVaultRequest: UpdateVaultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Vault> {
227
+ const response = await this.updateVaultRaw({ id: id, updateVaultRequest: updateVaultRequest }, initOverrides);
228
+ return await response.value();
229
+ }
230
+
231
+ }
package/src/apis/index.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export * from './AuthApi';
4
- export * from './ConfigurationApi';
5
4
  export * from './DefaultApi';
6
5
  export * from './UserApi';
6
+ export * from './VaultApi';
@@ -16,56 +16,56 @@ import { mapValues } from '../runtime';
16
16
  /**
17
17
  *
18
18
  * @export
19
- * @interface CreateConfigurationRequest
19
+ * @interface CreateVaultRequest
20
20
  */
21
- export interface CreateConfigurationRequest {
21
+ export interface CreateVaultRequest {
22
22
  /**
23
- * Unique identifier for the config
23
+ * Unique identifier for the vault
24
24
  * @type {string}
25
- * @memberof CreateConfigurationRequest
25
+ * @memberof CreateVaultRequest
26
26
  */
27
27
  uniqueId: string;
28
28
  /**
29
29
  * Human-readable name
30
30
  * @type {string}
31
- * @memberof CreateConfigurationRequest
31
+ * @memberof CreateVaultRequest
32
32
  */
33
33
  name: string;
34
34
  /**
35
35
  * Value to be encrypted and stored
36
36
  * @type {string}
37
- * @memberof CreateConfigurationRequest
37
+ * @memberof CreateVaultRequest
38
38
  */
39
39
  value: string;
40
40
  /**
41
41
  * Human-readable description
42
42
  * @type {string}
43
- * @memberof CreateConfigurationRequest
43
+ * @memberof CreateVaultRequest
44
44
  */
45
45
  description?: string;
46
46
  /**
47
- * Category/type of config
47
+ * Category/type of vault
48
48
  * @type {string}
49
- * @memberof CreateConfigurationRequest
49
+ * @memberof CreateVaultRequest
50
50
  */
51
51
  category?: string;
52
52
  }
53
53
 
54
54
  /**
55
- * Check if a given object implements the CreateConfigurationRequest interface.
55
+ * Check if a given object implements the CreateVaultRequest interface.
56
56
  */
57
- export function instanceOfCreateConfigurationRequest(value: object): value is CreateConfigurationRequest {
57
+ export function instanceOfCreateVaultRequest(value: object): value is CreateVaultRequest {
58
58
  if (!('uniqueId' in value) || value['uniqueId'] === undefined) return false;
59
59
  if (!('name' in value) || value['name'] === undefined) return false;
60
60
  if (!('value' in value) || value['value'] === undefined) return false;
61
61
  return true;
62
62
  }
63
63
 
64
- export function CreateConfigurationRequestFromJSON(json: any): CreateConfigurationRequest {
65
- return CreateConfigurationRequestFromJSONTyped(json, false);
64
+ export function CreateVaultRequestFromJSON(json: any): CreateVaultRequest {
65
+ return CreateVaultRequestFromJSONTyped(json, false);
66
66
  }
67
67
 
68
- export function CreateConfigurationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateConfigurationRequest {
68
+ export function CreateVaultRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateVaultRequest {
69
69
  if (json == null) {
70
70
  return json;
71
71
  }
@@ -79,11 +79,11 @@ export function CreateConfigurationRequestFromJSONTyped(json: any, ignoreDiscrim
79
79
  };
80
80
  }
81
81
 
82
- export function CreateConfigurationRequestToJSON(json: any): CreateConfigurationRequest {
83
- return CreateConfigurationRequestToJSONTyped(json, false);
82
+ export function CreateVaultRequestToJSON(json: any): CreateVaultRequest {
83
+ return CreateVaultRequestToJSONTyped(json, false);
84
84
  }
85
85
 
86
- export function CreateConfigurationRequestToJSONTyped(value?: CreateConfigurationRequest | null, ignoreDiscriminator: boolean = false): any {
86
+ export function CreateVaultRequestToJSONTyped(value?: CreateVaultRequest | null, ignoreDiscriminator: boolean = false): any {
87
87
  if (value == null) {
88
88
  return value;
89
89
  }
@@ -16,47 +16,47 @@ import { mapValues } from '../runtime';
16
16
  /**
17
17
  *
18
18
  * @export
19
- * @interface UpdateConfigurationRequest
19
+ * @interface UpdateVaultRequest
20
20
  */
21
- export interface UpdateConfigurationRequest {
21
+ export interface UpdateVaultRequest {
22
22
  /**
23
23
  * Human-readable name
24
24
  * @type {string}
25
- * @memberof UpdateConfigurationRequest
25
+ * @memberof UpdateVaultRequest
26
26
  */
27
27
  name?: string;
28
28
  /**
29
29
  * Value to be encrypted and stored
30
30
  * @type {string}
31
- * @memberof UpdateConfigurationRequest
31
+ * @memberof UpdateVaultRequest
32
32
  */
33
33
  value?: string;
34
34
  /**
35
35
  * Human-readable description
36
36
  * @type {string}
37
- * @memberof UpdateConfigurationRequest
37
+ * @memberof UpdateVaultRequest
38
38
  */
39
39
  description?: string;
40
40
  /**
41
- * Category/type of config
41
+ * Category/type of vault
42
42
  * @type {string}
43
- * @memberof UpdateConfigurationRequest
43
+ * @memberof UpdateVaultRequest
44
44
  */
45
45
  category?: string;
46
46
  }
47
47
 
48
48
  /**
49
- * Check if a given object implements the UpdateConfigurationRequest interface.
49
+ * Check if a given object implements the UpdateVaultRequest interface.
50
50
  */
51
- export function instanceOfUpdateConfigurationRequest(value: object): value is UpdateConfigurationRequest {
51
+ export function instanceOfUpdateVaultRequest(value: object): value is UpdateVaultRequest {
52
52
  return true;
53
53
  }
54
54
 
55
- export function UpdateConfigurationRequestFromJSON(json: any): UpdateConfigurationRequest {
56
- return UpdateConfigurationRequestFromJSONTyped(json, false);
55
+ export function UpdateVaultRequestFromJSON(json: any): UpdateVaultRequest {
56
+ return UpdateVaultRequestFromJSONTyped(json, false);
57
57
  }
58
58
 
59
- export function UpdateConfigurationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateConfigurationRequest {
59
+ export function UpdateVaultRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateVaultRequest {
60
60
  if (json == null) {
61
61
  return json;
62
62
  }
@@ -69,11 +69,11 @@ export function UpdateConfigurationRequestFromJSONTyped(json: any, ignoreDiscrim
69
69
  };
70
70
  }
71
71
 
72
- export function UpdateConfigurationRequestToJSON(json: any): UpdateConfigurationRequest {
73
- return UpdateConfigurationRequestToJSONTyped(json, false);
72
+ export function UpdateVaultRequestToJSON(json: any): UpdateVaultRequest {
73
+ return UpdateVaultRequestToJSONTyped(json, false);
74
74
  }
75
75
 
76
- export function UpdateConfigurationRequestToJSONTyped(value?: UpdateConfigurationRequest | null, ignoreDiscriminator: boolean = false): any {
76
+ export function UpdateVaultRequestToJSONTyped(value?: UpdateVaultRequest | null, ignoreDiscriminator: boolean = false): any {
77
77
  if (value == null) {
78
78
  return value;
79
79
  }
@@ -16,74 +16,74 @@ import { mapValues } from '../runtime';
16
16
  /**
17
17
  *
18
18
  * @export
19
- * @interface ConfigurationItem
19
+ * @interface Vault
20
20
  */
21
- export interface ConfigurationItem {
21
+ export interface Vault {
22
22
  /**
23
- * Unique identifier for the config
23
+ * Unique identifier for the vault
24
24
  * @type {string}
25
- * @memberof ConfigurationItem
25
+ * @memberof Vault
26
26
  */
27
27
  uniqueId: string;
28
28
  /**
29
- * ID of the user who owns this configuration
29
+ * ID of the user who owns this vault
30
30
  * @type {number}
31
- * @memberof ConfigurationItem
31
+ * @memberof Vault
32
32
  */
33
33
  userId?: number;
34
34
  /**
35
35
  * Human-readable name
36
36
  * @type {string}
37
- * @memberof ConfigurationItem
37
+ * @memberof Vault
38
38
  */
39
39
  name: string;
40
40
  /**
41
41
  * Encrypted value
42
42
  * @type {string}
43
- * @memberof ConfigurationItem
43
+ * @memberof Vault
44
44
  */
45
45
  value: string;
46
46
  /**
47
47
  * Human-readable description
48
48
  * @type {string}
49
- * @memberof ConfigurationItem
49
+ * @memberof Vault
50
50
  */
51
51
  description?: string;
52
52
  /**
53
- * Category/type of config
53
+ * Category/type of vault
54
54
  * @type {string}
55
- * @memberof ConfigurationItem
55
+ * @memberof Vault
56
56
  */
57
57
  category?: string;
58
58
  /**
59
59
  *
60
60
  * @type {Date}
61
- * @memberof ConfigurationItem
61
+ * @memberof Vault
62
62
  */
63
63
  createdAt?: Date;
64
64
  /**
65
65
  *
66
66
  * @type {Date}
67
- * @memberof ConfigurationItem
67
+ * @memberof Vault
68
68
  */
69
69
  updatedAt?: Date;
70
70
  }
71
71
 
72
72
  /**
73
- * Check if a given object implements the ConfigurationItem interface.
73
+ * Check if a given object implements the Vault interface.
74
74
  */
75
- export function instanceOfConfigurationItem(value: object): value is ConfigurationItem {
75
+ export function instanceOfVault(value: object): value is Vault {
76
76
  if (!('uniqueId' in value) || value['uniqueId'] === undefined) return false;
77
77
  if (!('name' in value) || value['name'] === undefined) return false;
78
78
  if (!('value' in value) || value['value'] === undefined) return false;
79
79
  return true;
80
80
  }
81
81
 
82
- export function ConfigurationItemFromJSON(json: any): ConfigurationItem {
83
- return ConfigurationItemFromJSONTyped(json, false);
82
+ export function VaultFromJSON(json: any): Vault {
83
+ return VaultFromJSONTyped(json, false);
84
84
  }
85
85
 
86
- export function ConfigurationItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConfigurationItem {
86
+ export function VaultFromJSONTyped(json: any, ignoreDiscriminator: boolean): Vault {
87
87
  if (json == null) {
88
88
  return json;
89
89
  }
@@ -100,11 +100,11 @@ export function ConfigurationItemFromJSONTyped(json: any, ignoreDiscriminator: b
100
100
  };
101
101
  }
102
102
 
103
- export function ConfigurationItemToJSON(json: any): ConfigurationItem {
104
- return ConfigurationItemToJSONTyped(json, false);
103
+ export function VaultToJSON(json: any): Vault {
104
+ return VaultToJSONTyped(json, false);
105
105
  }
106
106
 
107
- export function ConfigurationItemToJSONTyped(value?: ConfigurationItem | null, ignoreDiscriminator: boolean = false): any {
107
+ export function VaultToJSONTyped(value?: Vault | null, ignoreDiscriminator: boolean = false): any {
108
108
  if (value == null) {
109
109
  return value;
110
110
  }