@lwshen/vault-hub-ts-fetch-client 0.20250729.150120 → 0.20250729.161501

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @lwshen/vault-hub-ts-fetch-client@0.20250729.150120
1
+ ## @lwshen/vault-hub-ts-fetch-client@0.20250729.161501
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @lwshen/vault-hub-ts-fetch-client@0.20250729.150120 --save
39
+ npm install @lwshen/vault-hub-ts-fetch-client@0.20250729.161501 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -92,13 +92,13 @@ var AuditApi = /** @class */ (function (_super) {
92
92
  }
93
93
  queryParameters = {};
94
94
  if (requestParameters['startDate'] != null) {
95
- queryParameters['start_date'] = requestParameters['startDate'].toISOString();
95
+ queryParameters['startDate'] = requestParameters['startDate'].toISOString();
96
96
  }
97
97
  if (requestParameters['endDate'] != null) {
98
- queryParameters['end_date'] = requestParameters['endDate'].toISOString();
98
+ queryParameters['endDate'] = requestParameters['endDate'].toISOString();
99
99
  }
100
100
  if (requestParameters['vaultUniqueId'] != null) {
101
- queryParameters['vault_unique_id'] = requestParameters['vaultUniqueId'];
101
+ queryParameters['vaultUniqueId'] = requestParameters['vaultUniqueId'];
102
102
  }
103
103
  if (requestParameters['pageSize'] != null) {
104
104
  queryParameters['pageSize'] = requestParameters['pageSize'];
@@ -136,7 +136,7 @@ var VaultApi = /** @class */ (function (_super) {
136
136
  queryParameters = {};
137
137
  headerParameters = {};
138
138
  return [4 /*yield*/, this.request({
139
- path: "/api/vaults/{unique_id}".replace("{".concat("unique_id", "}"), encodeURIComponent(String(requestParameters['uniqueId']))),
139
+ path: "/api/vaults/{uniqueId}".replace("{".concat("uniqueId", "}"), encodeURIComponent(String(requestParameters['uniqueId']))),
140
140
  method: 'DELETE',
141
141
  headers: headerParameters,
142
142
  query: queryParameters,
@@ -178,7 +178,7 @@ var VaultApi = /** @class */ (function (_super) {
178
178
  queryParameters = {};
179
179
  headerParameters = {};
180
180
  return [4 /*yield*/, this.request({
181
- path: "/api/vaults/{unique_id}".replace("{".concat("unique_id", "}"), encodeURIComponent(String(requestParameters['uniqueId']))),
181
+ path: "/api/vaults/{uniqueId}".replace("{".concat("uniqueId", "}"), encodeURIComponent(String(requestParameters['uniqueId']))),
182
182
  method: 'GET',
183
183
  headers: headerParameters,
184
184
  query: queryParameters,
@@ -267,7 +267,7 @@ var VaultApi = /** @class */ (function (_super) {
267
267
  headerParameters = {};
268
268
  headerParameters['Content-Type'] = 'application/json';
269
269
  return [4 /*yield*/, this.request({
270
- path: "/api/vaults/{unique_id}".replace("{".concat("unique_id", "}"), encodeURIComponent(String(requestParameters['uniqueId']))),
270
+ path: "/api/vaults/{uniqueId}".replace("{".concat("uniqueId", "}"), encodeURIComponent(String(requestParameters['uniqueId']))),
271
271
  method: 'PUT',
272
272
  headers: headerParameters,
273
273
  query: queryParameters,
@@ -44,11 +44,11 @@ function APIKeyFromJSONTyped(json, ignoreDiscriminator) {
44
44
  'id': json['id'],
45
45
  'name': json['name'],
46
46
  'vaults': json['vaults'] == null ? undefined : (json['vaults'].map(VaultLite_1.VaultLiteFromJSON)),
47
- 'expiresAt': json['expires_at'] == null ? undefined : (new Date(json['expires_at'])),
48
- 'lastUsedAt': json['last_used_at'] == null ? undefined : (new Date(json['last_used_at'])),
49
- 'isActive': json['is_active'],
50
- 'createdAt': (new Date(json['created_at'])),
51
- 'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
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
52
  };
53
53
  }
54
54
  function APIKeyToJSON(json) {
@@ -63,10 +63,10 @@ function APIKeyToJSONTyped(value, ignoreDiscriminator) {
63
63
  'id': value['id'],
64
64
  'name': value['name'],
65
65
  'vaults': value['vaults'] == null ? undefined : (value['vaults'].map(VaultLite_1.VaultLiteToJSON)),
66
- 'expires_at': value['expiresAt'] == null ? undefined : ((value['expiresAt']).toISOString()),
67
- 'last_used_at': value['lastUsedAt'] == null ? undefined : ((value['lastUsedAt']).toISOString()),
68
- 'is_active': value['isActive'],
69
- 'created_at': ((value['createdAt']).toISOString()),
70
- 'updated_at': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
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
71
  };
72
72
  }
@@ -41,8 +41,8 @@ function APIKeysResponseFromJSONTyped(json, ignoreDiscriminator) {
41
41
  return json;
42
42
  }
43
43
  return {
44
- 'apiKeys': (json['api_keys'].map(APIKey_1.APIKeyFromJSON)),
45
- 'totalCount': json['total_count'],
44
+ 'apiKeys': (json['apiKeys'].map(APIKey_1.APIKeyFromJSON)),
45
+ 'totalCount': json['totalCount'],
46
46
  'pageSize': json['pageSize'],
47
47
  'pageIndex': json['pageIndex'],
48
48
  };
@@ -56,8 +56,8 @@ function APIKeysResponseToJSONTyped(value, ignoreDiscriminator) {
56
56
  return value;
57
57
  }
58
58
  return {
59
- 'api_keys': (value['apiKeys'].map(APIKey_1.APIKeyToJSON)),
60
- 'total_count': value['totalCount'],
59
+ 'apiKeys': (value['apiKeys'].map(APIKey_1.APIKeyToJSON)),
60
+ 'totalCount': value['totalCount'],
61
61
  'pageSize': value['pageSize'],
62
62
  'pageIndex': value['pageIndex'],
63
63
  };
@@ -54,12 +54,12 @@ function AuditLogFromJSONTyped(json, ignoreDiscriminator) {
54
54
  return json;
55
55
  }
56
56
  return {
57
- 'createdAt': (new Date(json['created_at'])),
57
+ 'createdAt': (new Date(json['createdAt'])),
58
58
  'vault': json['vault'] == null ? undefined : (0, VaultLite_1.VaultLiteFromJSON)(json['vault']),
59
- 'apiKey': json['api_key'] == null ? undefined : (0, APIKey_1.APIKeyFromJSON)(json['api_key']),
59
+ 'apiKey': json['apiKey'] == null ? undefined : (0, APIKey_1.APIKeyFromJSON)(json['apiKey']),
60
60
  'action': json['action'],
61
- 'ipAddress': json['ip_address'] == null ? undefined : json['ip_address'],
62
- 'userAgent': json['user_agent'] == null ? undefined : json['user_agent'],
61
+ 'ipAddress': json['ipAddress'] == null ? undefined : json['ipAddress'],
62
+ 'userAgent': json['userAgent'] == null ? undefined : json['userAgent'],
63
63
  };
64
64
  }
65
65
  function AuditLogToJSON(json) {
@@ -71,11 +71,11 @@ function AuditLogToJSONTyped(value, ignoreDiscriminator) {
71
71
  return value;
72
72
  }
73
73
  return {
74
- 'created_at': ((value['createdAt']).toISOString()),
74
+ 'createdAt': ((value['createdAt']).toISOString()),
75
75
  'vault': (0, VaultLite_1.VaultLiteToJSON)(value['vault']),
76
- 'api_key': (0, APIKey_1.APIKeyToJSON)(value['apiKey']),
76
+ 'apiKey': (0, APIKey_1.APIKeyToJSON)(value['apiKey']),
77
77
  'action': value['action'],
78
- 'ip_address': value['ipAddress'],
79
- 'user_agent': value['userAgent'],
78
+ 'ipAddress': value['ipAddress'],
79
+ 'userAgent': value['userAgent'],
80
80
  };
81
81
  }
@@ -41,8 +41,8 @@ function AuditLogsResponseFromJSONTyped(json, ignoreDiscriminator) {
41
41
  return json;
42
42
  }
43
43
  return {
44
- 'auditLogs': (json['audit_logs'].map(AuditLog_1.AuditLogFromJSON)),
45
- 'totalCount': json['total_count'],
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
- 'audit_logs': (value['auditLogs'].map(AuditLog_1.AuditLogToJSON)),
60
- 'total_count': value['totalCount'],
59
+ 'auditLogs': (value['auditLogs'].map(AuditLog_1.AuditLogToJSON)),
60
+ 'totalCount': value['totalCount'],
61
61
  'pageSize': value['pageSize'],
62
62
  'pageIndex': value['pageIndex'],
63
63
  };
@@ -35,8 +35,8 @@ function CreateAPIKeyRequestFromJSONTyped(json, ignoreDiscriminator) {
35
35
  }
36
36
  return {
37
37
  'name': json['name'],
38
- 'vaultUniqueIds': json['vault_unique_ids'] == null ? undefined : json['vault_unique_ids'],
39
- 'expiresAt': json['expires_at'] == null ? undefined : (new Date(json['expires_at'])),
38
+ 'vaultUniqueIds': json['vaultUniqueIds'] == null ? undefined : json['vaultUniqueIds'],
39
+ 'expiresAt': json['expiresAt'] == null ? undefined : (new Date(json['expiresAt'])),
40
40
  };
41
41
  }
42
42
  function CreateAPIKeyRequestToJSON(json) {
@@ -49,7 +49,7 @@ function CreateAPIKeyRequestToJSONTyped(value, ignoreDiscriminator) {
49
49
  }
50
50
  return {
51
51
  'name': value['name'],
52
- 'vault_unique_ids': value['vaultUniqueIds'],
53
- 'expires_at': value['expiresAt'] == null ? undefined : ((value['expiresAt']).toISOString()),
52
+ 'vaultUniqueIds': value['vaultUniqueIds'],
53
+ 'expiresAt': value['expiresAt'] == null ? undefined : ((value['expiresAt']).toISOString()),
54
54
  };
55
55
  }
@@ -37,7 +37,7 @@ function CreateAPIKeyResponseFromJSONTyped(json, ignoreDiscriminator) {
37
37
  return json;
38
38
  }
39
39
  return {
40
- 'apiKey': (0, APIKey_1.APIKeyFromJSON)(json['api_key']),
40
+ 'apiKey': (0, APIKey_1.APIKeyFromJSON)(json['apiKey']),
41
41
  'key': json['key'],
42
42
  };
43
43
  }
@@ -50,7 +50,7 @@ function CreateAPIKeyResponseToJSONTyped(value, ignoreDiscriminator) {
50
50
  return value;
51
51
  }
52
52
  return {
53
- 'api_key': (0, APIKey_1.APIKeyToJSON)(value['apiKey']),
53
+ 'apiKey': (0, APIKey_1.APIKeyToJSON)(value['apiKey']),
54
54
  'key': value['key'],
55
55
  };
56
56
  }
@@ -33,9 +33,9 @@ function UpdateAPIKeyRequestFromJSONTyped(json, ignoreDiscriminator) {
33
33
  }
34
34
  return {
35
35
  'name': json['name'] == null ? undefined : json['name'],
36
- 'vaultUniqueIds': json['vault_unique_ids'] == null ? undefined : json['vault_unique_ids'],
37
- 'expiresAt': json['expires_at'] == null ? undefined : (new Date(json['expires_at'])),
38
- 'isActive': json['is_active'] == null ? undefined : json['is_active'],
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
39
  };
40
40
  }
41
41
  function UpdateAPIKeyRequestToJSON(json) {
@@ -48,8 +48,8 @@ function UpdateAPIKeyRequestToJSONTyped(value, ignoreDiscriminator) {
48
48
  }
49
49
  return {
50
50
  'name': value['name'],
51
- 'vault_unique_ids': value['vaultUniqueIds'],
52
- 'expires_at': value['expiresAt'] == null ? undefined : ((value['expiresAt']).toISOString()),
53
- 'is_active': value['isActive'],
51
+ 'vaultUniqueIds': value['vaultUniqueIds'],
52
+ 'expiresAt': value['expiresAt'] == null ? undefined : ((value['expiresAt']).toISOString()),
53
+ 'isActive': value['isActive'],
54
54
  };
55
55
  }
@@ -38,14 +38,14 @@ function VaultFromJSONTyped(json, ignoreDiscriminator) {
38
38
  return json;
39
39
  }
40
40
  return {
41
- 'uniqueId': json['unique_id'],
42
- 'userId': json['user_id'] == null ? undefined : json['user_id'],
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['created_at'] == null ? undefined : (new Date(json['created_at'])),
48
- 'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
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
- 'unique_id': value['uniqueId'],
61
- 'user_id': value['userId'],
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
- 'created_at': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
67
- 'updated_at': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
66
+ 'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
67
+ 'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
68
68
  };
69
69
  }
@@ -36,11 +36,11 @@ function VaultLiteFromJSONTyped(json, ignoreDiscriminator) {
36
36
  return json;
37
37
  }
38
38
  return {
39
- 'uniqueId': json['unique_id'],
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['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
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
- 'unique_id': value['uniqueId'],
55
+ 'uniqueId': value['uniqueId'],
56
56
  'name': value['name'],
57
57
  'description': value['description'],
58
58
  'category': value['category'],
59
- 'updated_at': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
59
+ 'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
60
60
  };
61
61
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lwshen/vault-hub-ts-fetch-client",
3
- "version": "0.20250729.150120",
3
+ "version": "0.20250729.161501",
4
4
  "description": "OpenAPI client for @lwshen/vault-hub-ts-fetch-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -56,15 +56,15 @@ export class AuditApi extends runtime.BaseAPI {
56
56
  const queryParameters: any = {};
57
57
 
58
58
  if (requestParameters['startDate'] != null) {
59
- queryParameters['start_date'] = (requestParameters['startDate'] as any).toISOString();
59
+ queryParameters['startDate'] = (requestParameters['startDate'] as any).toISOString();
60
60
  }
61
61
 
62
62
  if (requestParameters['endDate'] != null) {
63
- queryParameters['end_date'] = (requestParameters['endDate'] as any).toISOString();
63
+ queryParameters['endDate'] = (requestParameters['endDate'] as any).toISOString();
64
64
  }
65
65
 
66
66
  if (requestParameters['vaultUniqueId'] != null) {
67
- queryParameters['vault_unique_id'] = requestParameters['vaultUniqueId'];
67
+ queryParameters['vaultUniqueId'] = requestParameters['vaultUniqueId'];
68
68
  }
69
69
 
70
70
  if (requestParameters['pageSize'] != null) {
@@ -105,7 +105,7 @@ export class VaultApi extends runtime.BaseAPI {
105
105
  const headerParameters: runtime.HTTPHeaders = {};
106
106
 
107
107
  const response = await this.request({
108
- path: `/api/vaults/{unique_id}`.replace(`{${"unique_id"}}`, encodeURIComponent(String(requestParameters['uniqueId']))),
108
+ path: `/api/vaults/{uniqueId}`.replace(`{${"uniqueId"}}`, encodeURIComponent(String(requestParameters['uniqueId']))),
109
109
  method: 'DELETE',
110
110
  headers: headerParameters,
111
111
  query: queryParameters,
@@ -137,7 +137,7 @@ export class VaultApi extends runtime.BaseAPI {
137
137
  const headerParameters: runtime.HTTPHeaders = {};
138
138
 
139
139
  const response = await this.request({
140
- path: `/api/vaults/{unique_id}`.replace(`{${"unique_id"}}`, encodeURIComponent(String(requestParameters['uniqueId']))),
140
+ path: `/api/vaults/{uniqueId}`.replace(`{${"uniqueId"}}`, encodeURIComponent(String(requestParameters['uniqueId']))),
141
141
  method: 'GET',
142
142
  headers: headerParameters,
143
143
  query: queryParameters,
@@ -205,7 +205,7 @@ export class VaultApi extends runtime.BaseAPI {
205
205
  headerParameters['Content-Type'] = 'application/json';
206
206
 
207
207
  const response = await this.request({
208
- path: `/api/vaults/{unique_id}`.replace(`{${"unique_id"}}`, encodeURIComponent(String(requestParameters['uniqueId']))),
208
+ path: `/api/vaults/{uniqueId}`.replace(`{${"uniqueId"}}`, encodeURIComponent(String(requestParameters['uniqueId']))),
209
209
  method: 'PUT',
210
210
  headers: headerParameters,
211
211
  query: queryParameters,
@@ -101,11 +101,11 @@ export function APIKeyFromJSONTyped(json: any, ignoreDiscriminator: boolean): AP
101
101
  'id': json['id'],
102
102
  'name': json['name'],
103
103
  'vaults': json['vaults'] == null ? undefined : ((json['vaults'] as Array<any>).map(VaultLiteFromJSON)),
104
- 'expiresAt': json['expires_at'] == null ? undefined : (new Date(json['expires_at'])),
105
- 'lastUsedAt': json['last_used_at'] == null ? undefined : (new Date(json['last_used_at'])),
106
- 'isActive': json['is_active'],
107
- 'createdAt': (new Date(json['created_at'])),
108
- 'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
104
+ 'expiresAt': json['expiresAt'] == null ? undefined : (new Date(json['expiresAt'])),
105
+ 'lastUsedAt': json['lastUsedAt'] == null ? undefined : (new Date(json['lastUsedAt'])),
106
+ 'isActive': json['isActive'],
107
+ 'createdAt': (new Date(json['createdAt'])),
108
+ 'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
109
109
  };
110
110
  }
111
111
 
@@ -123,11 +123,11 @@ export function APIKeyToJSONTyped(value?: APIKey | null, ignoreDiscriminator: bo
123
123
  'id': value['id'],
124
124
  'name': value['name'],
125
125
  'vaults': value['vaults'] == null ? undefined : ((value['vaults'] as Array<any>).map(VaultLiteToJSON)),
126
- 'expires_at': value['expiresAt'] == null ? undefined : ((value['expiresAt']).toISOString()),
127
- 'last_used_at': value['lastUsedAt'] == null ? undefined : ((value['lastUsedAt']).toISOString()),
128
- 'is_active': value['isActive'],
129
- 'created_at': ((value['createdAt']).toISOString()),
130
- 'updated_at': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
126
+ 'expiresAt': value['expiresAt'] == null ? undefined : ((value['expiresAt']).toISOString()),
127
+ 'lastUsedAt': value['lastUsedAt'] == null ? undefined : ((value['lastUsedAt']).toISOString()),
128
+ 'isActive': value['isActive'],
129
+ 'createdAt': ((value['createdAt']).toISOString()),
130
+ 'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
131
131
  };
132
132
  }
133
133
 
@@ -74,8 +74,8 @@ export function APIKeysResponseFromJSONTyped(json: any, ignoreDiscriminator: boo
74
74
  }
75
75
  return {
76
76
 
77
- 'apiKeys': ((json['api_keys'] as Array<any>).map(APIKeyFromJSON)),
78
- 'totalCount': json['total_count'],
77
+ 'apiKeys': ((json['apiKeys'] as Array<any>).map(APIKeyFromJSON)),
78
+ 'totalCount': json['totalCount'],
79
79
  'pageSize': json['pageSize'],
80
80
  'pageIndex': json['pageIndex'],
81
81
  };
@@ -92,8 +92,8 @@ export function APIKeysResponseToJSONTyped(value?: APIKeysResponse | null, ignor
92
92
 
93
93
  return {
94
94
 
95
- 'api_keys': ((value['apiKeys'] as Array<any>).map(APIKeyToJSON)),
96
- 'total_count': value['totalCount'],
95
+ 'apiKeys': ((value['apiKeys'] as Array<any>).map(APIKeyToJSON)),
96
+ 'totalCount': value['totalCount'],
97
97
  'pageSize': value['pageSize'],
98
98
  'pageIndex': value['pageIndex'],
99
99
  };
@@ -110,12 +110,12 @@ export function AuditLogFromJSONTyped(json: any, ignoreDiscriminator: boolean):
110
110
  }
111
111
  return {
112
112
 
113
- 'createdAt': (new Date(json['created_at'])),
113
+ 'createdAt': (new Date(json['createdAt'])),
114
114
  'vault': json['vault'] == null ? undefined : VaultLiteFromJSON(json['vault']),
115
- 'apiKey': json['api_key'] == null ? undefined : APIKeyFromJSON(json['api_key']),
115
+ 'apiKey': json['apiKey'] == null ? undefined : APIKeyFromJSON(json['apiKey']),
116
116
  'action': json['action'],
117
- 'ipAddress': json['ip_address'] == null ? undefined : json['ip_address'],
118
- 'userAgent': json['user_agent'] == null ? undefined : json['user_agent'],
117
+ 'ipAddress': json['ipAddress'] == null ? undefined : json['ipAddress'],
118
+ 'userAgent': json['userAgent'] == null ? undefined : json['userAgent'],
119
119
  };
120
120
  }
121
121
 
@@ -130,12 +130,12 @@ export function AuditLogToJSONTyped(value?: AuditLog | null, ignoreDiscriminator
130
130
 
131
131
  return {
132
132
 
133
- 'created_at': ((value['createdAt']).toISOString()),
133
+ 'createdAt': ((value['createdAt']).toISOString()),
134
134
  'vault': VaultLiteToJSON(value['vault']),
135
- 'api_key': APIKeyToJSON(value['apiKey']),
135
+ 'apiKey': APIKeyToJSON(value['apiKey']),
136
136
  'action': value['action'],
137
- 'ip_address': value['ipAddress'],
138
- 'user_agent': value['userAgent'],
137
+ 'ipAddress': value['ipAddress'],
138
+ 'userAgent': value['userAgent'],
139
139
  };
140
140
  }
141
141
 
@@ -74,8 +74,8 @@ export function AuditLogsResponseFromJSONTyped(json: any, ignoreDiscriminator: b
74
74
  }
75
75
  return {
76
76
 
77
- 'auditLogs': ((json['audit_logs'] as Array<any>).map(AuditLogFromJSON)),
78
- 'totalCount': json['total_count'],
77
+ 'auditLogs': ((json['auditLogs'] as Array<any>).map(AuditLogFromJSON)),
78
+ 'totalCount': json['totalCount'],
79
79
  'pageSize': json['pageSize'],
80
80
  'pageIndex': json['pageIndex'],
81
81
  };
@@ -92,8 +92,8 @@ export function AuditLogsResponseToJSONTyped(value?: AuditLogsResponse | null, i
92
92
 
93
93
  return {
94
94
 
95
- 'audit_logs': ((value['auditLogs'] as Array<any>).map(AuditLogToJSON)),
96
- 'total_count': value['totalCount'],
95
+ 'auditLogs': ((value['auditLogs'] as Array<any>).map(AuditLogToJSON)),
96
+ 'totalCount': value['totalCount'],
97
97
  'pageSize': value['pageSize'],
98
98
  'pageIndex': value['pageIndex'],
99
99
  };
@@ -58,8 +58,8 @@ export function CreateAPIKeyRequestFromJSONTyped(json: any, ignoreDiscriminator:
58
58
  return {
59
59
 
60
60
  'name': json['name'],
61
- 'vaultUniqueIds': json['vault_unique_ids'] == null ? undefined : json['vault_unique_ids'],
62
- 'expiresAt': json['expires_at'] == null ? undefined : (new Date(json['expires_at'])),
61
+ 'vaultUniqueIds': json['vaultUniqueIds'] == null ? undefined : json['vaultUniqueIds'],
62
+ 'expiresAt': json['expiresAt'] == null ? undefined : (new Date(json['expiresAt'])),
63
63
  };
64
64
  }
65
65
 
@@ -75,8 +75,8 @@ export function CreateAPIKeyRequestToJSONTyped(value?: CreateAPIKeyRequest | nul
75
75
  return {
76
76
 
77
77
  'name': value['name'],
78
- 'vault_unique_ids': value['vaultUniqueIds'],
79
- 'expires_at': value['expiresAt'] == null ? undefined : ((value['expiresAt']).toISOString()),
78
+ 'vaultUniqueIds': value['vaultUniqueIds'],
79
+ 'expiresAt': value['expiresAt'] == null ? undefined : ((value['expiresAt']).toISOString()),
80
80
  };
81
81
  }
82
82
 
@@ -60,7 +60,7 @@ export function CreateAPIKeyResponseFromJSONTyped(json: any, ignoreDiscriminator
60
60
  }
61
61
  return {
62
62
 
63
- 'apiKey': APIKeyFromJSON(json['api_key']),
63
+ 'apiKey': APIKeyFromJSON(json['apiKey']),
64
64
  'key': json['key'],
65
65
  };
66
66
  }
@@ -76,7 +76,7 @@ export function CreateAPIKeyResponseToJSONTyped(value?: CreateAPIKeyResponse | n
76
76
 
77
77
  return {
78
78
 
79
- 'api_key': APIKeyToJSON(value['apiKey']),
79
+ 'apiKey': APIKeyToJSON(value['apiKey']),
80
80
  'key': value['key'],
81
81
  };
82
82
  }
@@ -63,9 +63,9 @@ export function UpdateAPIKeyRequestFromJSONTyped(json: any, ignoreDiscriminator:
63
63
  return {
64
64
 
65
65
  'name': json['name'] == null ? undefined : json['name'],
66
- 'vaultUniqueIds': json['vault_unique_ids'] == null ? undefined : json['vault_unique_ids'],
67
- 'expiresAt': json['expires_at'] == null ? undefined : (new Date(json['expires_at'])),
68
- 'isActive': json['is_active'] == null ? undefined : json['is_active'],
66
+ 'vaultUniqueIds': json['vaultUniqueIds'] == null ? undefined : json['vaultUniqueIds'],
67
+ 'expiresAt': json['expiresAt'] == null ? undefined : (new Date(json['expiresAt'])),
68
+ 'isActive': json['isActive'] == null ? undefined : json['isActive'],
69
69
  };
70
70
  }
71
71
 
@@ -81,9 +81,9 @@ export function UpdateAPIKeyRequestToJSONTyped(value?: UpdateAPIKeyRequest | nul
81
81
  return {
82
82
 
83
83
  'name': value['name'],
84
- 'vault_unique_ids': value['vaultUniqueIds'],
85
- 'expires_at': value['expiresAt'] == null ? undefined : ((value['expiresAt']).toISOString()),
86
- 'is_active': value['isActive'],
84
+ 'vaultUniqueIds': value['vaultUniqueIds'],
85
+ 'expiresAt': value['expiresAt'] == null ? undefined : ((value['expiresAt']).toISOString()),
86
+ 'isActive': value['isActive'],
87
87
  };
88
88
  }
89
89
 
@@ -89,14 +89,14 @@ export function VaultFromJSONTyped(json: any, ignoreDiscriminator: boolean): Vau
89
89
  }
90
90
  return {
91
91
 
92
- 'uniqueId': json['unique_id'],
93
- 'userId': json['user_id'] == null ? undefined : json['user_id'],
92
+ 'uniqueId': json['uniqueId'],
93
+ 'userId': json['userId'] == null ? undefined : json['userId'],
94
94
  'name': json['name'],
95
95
  'value': json['value'],
96
96
  'description': json['description'] == null ? undefined : json['description'],
97
97
  'category': json['category'] == null ? undefined : json['category'],
98
- 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
99
- 'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
98
+ 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
99
+ 'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
100
100
  };
101
101
  }
102
102
 
@@ -111,14 +111,14 @@ export function VaultToJSONTyped(value?: Vault | null, ignoreDiscriminator: bool
111
111
 
112
112
  return {
113
113
 
114
- 'unique_id': value['uniqueId'],
115
- 'user_id': value['userId'],
114
+ 'uniqueId': value['uniqueId'],
115
+ 'userId': value['userId'],
116
116
  'name': value['name'],
117
117
  'value': value['value'],
118
118
  'description': value['description'],
119
119
  'category': value['category'],
120
- 'created_at': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
121
- 'updated_at': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
120
+ 'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
121
+ 'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
122
122
  };
123
123
  }
124
124
 
@@ -70,11 +70,11 @@ export function VaultLiteFromJSONTyped(json: any, ignoreDiscriminator: boolean):
70
70
  }
71
71
  return {
72
72
 
73
- 'uniqueId': json['unique_id'],
73
+ 'uniqueId': json['uniqueId'],
74
74
  'name': json['name'],
75
75
  'description': json['description'] == null ? undefined : json['description'],
76
76
  'category': json['category'] == null ? undefined : json['category'],
77
- 'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
77
+ 'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
78
78
  };
79
79
  }
80
80
 
@@ -89,11 +89,11 @@ export function VaultLiteToJSONTyped(value?: VaultLite | null, ignoreDiscriminat
89
89
 
90
90
  return {
91
91
 
92
- 'unique_id': value['uniqueId'],
92
+ 'uniqueId': value['uniqueId'],
93
93
  'name': value['name'],
94
94
  'description': value['description'],
95
95
  'category': value['category'],
96
- 'updated_at': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
96
+ 'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
97
97
  };
98
98
  }
99
99