@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 +2 -2
- package/dist/apis/AuditApi.js +3 -3
- package/dist/apis/VaultApi.js +3 -3
- package/dist/models/APIKey.js +10 -10
- package/dist/models/APIKeysResponse.js +4 -4
- package/dist/models/AuditLog.js +8 -8
- package/dist/models/AuditLogsResponse.js +4 -4
- package/dist/models/CreateAPIKeyRequest.js +4 -4
- package/dist/models/CreateAPIKeyResponse.js +2 -2
- package/dist/models/UpdateAPIKeyRequest.js +6 -6
- package/dist/models/Vault.js +8 -8
- package/dist/models/VaultLite.js +4 -4
- package/package.json +1 -1
- package/src/apis/AuditApi.ts +3 -3
- package/src/apis/VaultApi.ts +3 -3
- package/src/models/APIKey.ts +10 -10
- package/src/models/APIKeysResponse.ts +4 -4
- package/src/models/AuditLog.ts +8 -8
- package/src/models/AuditLogsResponse.ts +4 -4
- package/src/models/CreateAPIKeyRequest.ts +4 -4
- package/src/models/CreateAPIKeyResponse.ts +2 -2
- package/src/models/UpdateAPIKeyRequest.ts +6 -6
- package/src/models/Vault.ts +8 -8
- package/src/models/VaultLite.ts +4 -4
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @lwshen/vault-hub-ts-fetch-client@0.20250729.
|
|
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.
|
|
39
|
+
npm install @lwshen/vault-hub-ts-fetch-client@0.20250729.161501 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/dist/apis/AuditApi.js
CHANGED
|
@@ -92,13 +92,13 @@ var AuditApi = /** @class */ (function (_super) {
|
|
|
92
92
|
}
|
|
93
93
|
queryParameters = {};
|
|
94
94
|
if (requestParameters['startDate'] != null) {
|
|
95
|
-
queryParameters['
|
|
95
|
+
queryParameters['startDate'] = requestParameters['startDate'].toISOString();
|
|
96
96
|
}
|
|
97
97
|
if (requestParameters['endDate'] != null) {
|
|
98
|
-
queryParameters['
|
|
98
|
+
queryParameters['endDate'] = requestParameters['endDate'].toISOString();
|
|
99
99
|
}
|
|
100
100
|
if (requestParameters['vaultUniqueId'] != null) {
|
|
101
|
-
queryParameters['
|
|
101
|
+
queryParameters['vaultUniqueId'] = requestParameters['vaultUniqueId'];
|
|
102
102
|
}
|
|
103
103
|
if (requestParameters['pageSize'] != null) {
|
|
104
104
|
queryParameters['pageSize'] = requestParameters['pageSize'];
|
package/dist/apis/VaultApi.js
CHANGED
|
@@ -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/{
|
|
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/{
|
|
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/{
|
|
270
|
+
path: "/api/vaults/{uniqueId}".replace("{".concat("uniqueId", "}"), encodeURIComponent(String(requestParameters['uniqueId']))),
|
|
271
271
|
method: 'PUT',
|
|
272
272
|
headers: headerParameters,
|
|
273
273
|
query: queryParameters,
|
package/dist/models/APIKey.js
CHANGED
|
@@ -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['
|
|
48
|
-
'lastUsedAt': json['
|
|
49
|
-
'isActive': json['
|
|
50
|
-
'createdAt': (new Date(json['
|
|
51
|
-
'updatedAt': json['
|
|
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
|
-
'
|
|
67
|
-
'
|
|
68
|
-
'
|
|
69
|
-
'
|
|
70
|
-
'
|
|
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['
|
|
45
|
-
'totalCount': json['
|
|
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
|
-
'
|
|
60
|
-
'
|
|
59
|
+
'apiKeys': (value['apiKeys'].map(APIKey_1.APIKeyToJSON)),
|
|
60
|
+
'totalCount': value['totalCount'],
|
|
61
61
|
'pageSize': value['pageSize'],
|
|
62
62
|
'pageIndex': value['pageIndex'],
|
|
63
63
|
};
|
package/dist/models/AuditLog.js
CHANGED
|
@@ -54,12 +54,12 @@ function AuditLogFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
54
|
return json;
|
|
55
55
|
}
|
|
56
56
|
return {
|
|
57
|
-
'createdAt': (new Date(json['
|
|
57
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
58
58
|
'vault': json['vault'] == null ? undefined : (0, VaultLite_1.VaultLiteFromJSON)(json['vault']),
|
|
59
|
-
'apiKey': json['
|
|
59
|
+
'apiKey': json['apiKey'] == null ? undefined : (0, APIKey_1.APIKeyFromJSON)(json['apiKey']),
|
|
60
60
|
'action': json['action'],
|
|
61
|
-
'ipAddress': json['
|
|
62
|
-
'userAgent': json['
|
|
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
|
-
'
|
|
74
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
75
75
|
'vault': (0, VaultLite_1.VaultLiteToJSON)(value['vault']),
|
|
76
|
-
'
|
|
76
|
+
'apiKey': (0, APIKey_1.APIKeyToJSON)(value['apiKey']),
|
|
77
77
|
'action': value['action'],
|
|
78
|
-
'
|
|
79
|
-
'
|
|
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['
|
|
45
|
-
'totalCount': json['
|
|
44
|
+
'auditLogs': (json['auditLogs'].map(AuditLog_1.AuditLogFromJSON)),
|
|
45
|
+
'totalCount': json['totalCount'],
|
|
46
46
|
'pageSize': json['pageSize'],
|
|
47
47
|
'pageIndex': json['pageIndex'],
|
|
48
48
|
};
|
|
@@ -56,8 +56,8 @@ function AuditLogsResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
|
56
56
|
return value;
|
|
57
57
|
}
|
|
58
58
|
return {
|
|
59
|
-
'
|
|
60
|
-
'
|
|
59
|
+
'auditLogs': (value['auditLogs'].map(AuditLog_1.AuditLogToJSON)),
|
|
60
|
+
'totalCount': value['totalCount'],
|
|
61
61
|
'pageSize': value['pageSize'],
|
|
62
62
|
'pageIndex': value['pageIndex'],
|
|
63
63
|
};
|
|
@@ -35,8 +35,8 @@ function CreateAPIKeyRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
35
|
}
|
|
36
36
|
return {
|
|
37
37
|
'name': json['name'],
|
|
38
|
-
'vaultUniqueIds': json['
|
|
39
|
-
'expiresAt': json['
|
|
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
|
-
'
|
|
53
|
-
'
|
|
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['
|
|
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
|
-
'
|
|
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['
|
|
37
|
-
'expiresAt': json['
|
|
38
|
-
'isActive': json['
|
|
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
|
-
'
|
|
52
|
-
'
|
|
53
|
-
'
|
|
51
|
+
'vaultUniqueIds': value['vaultUniqueIds'],
|
|
52
|
+
'expiresAt': value['expiresAt'] == null ? undefined : ((value['expiresAt']).toISOString()),
|
|
53
|
+
'isActive': value['isActive'],
|
|
54
54
|
};
|
|
55
55
|
}
|
package/dist/models/Vault.js
CHANGED
|
@@ -38,14 +38,14 @@ function VaultFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
return json;
|
|
39
39
|
}
|
|
40
40
|
return {
|
|
41
|
-
'uniqueId': json['
|
|
42
|
-
'userId': json['
|
|
41
|
+
'uniqueId': json['uniqueId'],
|
|
42
|
+
'userId': json['userId'] == null ? undefined : json['userId'],
|
|
43
43
|
'name': json['name'],
|
|
44
44
|
'value': json['value'],
|
|
45
45
|
'description': json['description'] == null ? undefined : json['description'],
|
|
46
46
|
'category': json['category'] == null ? undefined : json['category'],
|
|
47
|
-
'createdAt': json['
|
|
48
|
-
'updatedAt': json['
|
|
47
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
48
|
+
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
51
|
function VaultToJSON(json) {
|
|
@@ -57,13 +57,13 @@ function VaultToJSONTyped(value, ignoreDiscriminator) {
|
|
|
57
57
|
return value;
|
|
58
58
|
}
|
|
59
59
|
return {
|
|
60
|
-
'
|
|
61
|
-
'
|
|
60
|
+
'uniqueId': value['uniqueId'],
|
|
61
|
+
'userId': value['userId'],
|
|
62
62
|
'name': value['name'],
|
|
63
63
|
'value': value['value'],
|
|
64
64
|
'description': value['description'],
|
|
65
65
|
'category': value['category'],
|
|
66
|
-
'
|
|
67
|
-
'
|
|
66
|
+
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
67
|
+
'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
|
|
68
68
|
};
|
|
69
69
|
}
|
package/dist/models/VaultLite.js
CHANGED
|
@@ -36,11 +36,11 @@ function VaultLiteFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
36
|
return json;
|
|
37
37
|
}
|
|
38
38
|
return {
|
|
39
|
-
'uniqueId': json['
|
|
39
|
+
'uniqueId': json['uniqueId'],
|
|
40
40
|
'name': json['name'],
|
|
41
41
|
'description': json['description'] == null ? undefined : json['description'],
|
|
42
42
|
'category': json['category'] == null ? undefined : json['category'],
|
|
43
|
-
'updatedAt': json['
|
|
43
|
+
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
46
|
function VaultLiteToJSON(json) {
|
|
@@ -52,10 +52,10 @@ function VaultLiteToJSONTyped(value, ignoreDiscriminator) {
|
|
|
52
52
|
return value;
|
|
53
53
|
}
|
|
54
54
|
return {
|
|
55
|
-
'
|
|
55
|
+
'uniqueId': value['uniqueId'],
|
|
56
56
|
'name': value['name'],
|
|
57
57
|
'description': value['description'],
|
|
58
58
|
'category': value['category'],
|
|
59
|
-
'
|
|
59
|
+
'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
|
|
60
60
|
};
|
|
61
61
|
}
|
package/package.json
CHANGED
package/src/apis/AuditApi.ts
CHANGED
|
@@ -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['
|
|
59
|
+
queryParameters['startDate'] = (requestParameters['startDate'] as any).toISOString();
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
if (requestParameters['endDate'] != null) {
|
|
63
|
-
queryParameters['
|
|
63
|
+
queryParameters['endDate'] = (requestParameters['endDate'] as any).toISOString();
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
if (requestParameters['vaultUniqueId'] != null) {
|
|
67
|
-
queryParameters['
|
|
67
|
+
queryParameters['vaultUniqueId'] = requestParameters['vaultUniqueId'];
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
if (requestParameters['pageSize'] != null) {
|
package/src/apis/VaultApi.ts
CHANGED
|
@@ -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/{
|
|
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/{
|
|
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/{
|
|
208
|
+
path: `/api/vaults/{uniqueId}`.replace(`{${"uniqueId"}}`, encodeURIComponent(String(requestParameters['uniqueId']))),
|
|
209
209
|
method: 'PUT',
|
|
210
210
|
headers: headerParameters,
|
|
211
211
|
query: queryParameters,
|
package/src/models/APIKey.ts
CHANGED
|
@@ -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['
|
|
105
|
-
'lastUsedAt': json['
|
|
106
|
-
'isActive': json['
|
|
107
|
-
'createdAt': (new Date(json['
|
|
108
|
-
'updatedAt': json['
|
|
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
|
-
'
|
|
127
|
-
'
|
|
128
|
-
'
|
|
129
|
-
'
|
|
130
|
-
'
|
|
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['
|
|
78
|
-
'totalCount': json['
|
|
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
|
-
'
|
|
96
|
-
'
|
|
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
|
};
|
package/src/models/AuditLog.ts
CHANGED
|
@@ -110,12 +110,12 @@ export function AuditLogFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
110
110
|
}
|
|
111
111
|
return {
|
|
112
112
|
|
|
113
|
-
'createdAt': (new Date(json['
|
|
113
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
114
114
|
'vault': json['vault'] == null ? undefined : VaultLiteFromJSON(json['vault']),
|
|
115
|
-
'apiKey': json['
|
|
115
|
+
'apiKey': json['apiKey'] == null ? undefined : APIKeyFromJSON(json['apiKey']),
|
|
116
116
|
'action': json['action'],
|
|
117
|
-
'ipAddress': json['
|
|
118
|
-
'userAgent': json['
|
|
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
|
-
'
|
|
133
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
134
134
|
'vault': VaultLiteToJSON(value['vault']),
|
|
135
|
-
'
|
|
135
|
+
'apiKey': APIKeyToJSON(value['apiKey']),
|
|
136
136
|
'action': value['action'],
|
|
137
|
-
'
|
|
138
|
-
'
|
|
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['
|
|
78
|
-
'totalCount': json['
|
|
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
|
-
'
|
|
96
|
-
'
|
|
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['
|
|
62
|
-
'expiresAt': json['
|
|
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
|
-
'
|
|
79
|
-
'
|
|
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['
|
|
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
|
-
'
|
|
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['
|
|
67
|
-
'expiresAt': json['
|
|
68
|
-
'isActive': json['
|
|
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
|
-
'
|
|
85
|
-
'
|
|
86
|
-
'
|
|
84
|
+
'vaultUniqueIds': value['vaultUniqueIds'],
|
|
85
|
+
'expiresAt': value['expiresAt'] == null ? undefined : ((value['expiresAt']).toISOString()),
|
|
86
|
+
'isActive': value['isActive'],
|
|
87
87
|
};
|
|
88
88
|
}
|
|
89
89
|
|
package/src/models/Vault.ts
CHANGED
|
@@ -89,14 +89,14 @@ export function VaultFromJSONTyped(json: any, ignoreDiscriminator: boolean): Vau
|
|
|
89
89
|
}
|
|
90
90
|
return {
|
|
91
91
|
|
|
92
|
-
'uniqueId': json['
|
|
93
|
-
'userId': json['
|
|
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['
|
|
99
|
-
'updatedAt': json['
|
|
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
|
-
'
|
|
115
|
-
'
|
|
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
|
-
'
|
|
121
|
-
'
|
|
120
|
+
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
121
|
+
'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
124
|
|
package/src/models/VaultLite.ts
CHANGED
|
@@ -70,11 +70,11 @@ export function VaultLiteFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
70
70
|
}
|
|
71
71
|
return {
|
|
72
72
|
|
|
73
|
-
'uniqueId': json['
|
|
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['
|
|
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
|
-
'
|
|
92
|
+
'uniqueId': value['uniqueId'],
|
|
93
93
|
'name': value['name'],
|
|
94
94
|
'description': value['description'],
|
|
95
95
|
'category': value['category'],
|
|
96
|
-
'
|
|
96
|
+
'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
|
|
97
97
|
};
|
|
98
98
|
}
|
|
99
99
|
|