@lwshen/vault-hub-ts-fetch-client 1.2.5 → 1.2.7

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@v1.2.5
1
+ ## @lwshen/vault-hub-ts-fetch-client@v1.2.7
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@v1.2.5 --save
39
+ npm install @lwshen/vault-hub-ts-fetch-client@v1.2.7 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -41,6 +41,12 @@ export interface AuditLog {
41
41
  * @memberof AuditLog
42
42
  */
43
43
  action: AuditLogActionEnum;
44
+ /**
45
+ * Source of the request (web interface or CLI)
46
+ * @type {string}
47
+ * @memberof AuditLog
48
+ */
49
+ source: AuditLogSourceEnum;
44
50
  /**
45
51
  * IP address from which the action was performed
46
52
  * @type {string}
@@ -70,6 +76,14 @@ export declare const AuditLogActionEnum: {
70
76
  readonly DeleteApiKey: "delete_api_key";
71
77
  };
72
78
  export type AuditLogActionEnum = typeof AuditLogActionEnum[keyof typeof AuditLogActionEnum];
79
+ /**
80
+ * @export
81
+ */
82
+ export declare const AuditLogSourceEnum: {
83
+ readonly Web: "web";
84
+ readonly Cli: "cli";
85
+ };
86
+ export type AuditLogSourceEnum = typeof AuditLogSourceEnum[keyof typeof AuditLogSourceEnum];
73
87
  /**
74
88
  * Check if a given object implements the AuditLog interface.
75
89
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.AuditLogActionEnum = void 0;
16
+ exports.AuditLogSourceEnum = exports.AuditLogActionEnum = void 0;
17
17
  exports.instanceOfAuditLog = instanceOfAuditLog;
18
18
  exports.AuditLogFromJSON = AuditLogFromJSON;
19
19
  exports.AuditLogFromJSONTyped = AuditLogFromJSONTyped;
@@ -36,6 +36,13 @@ exports.AuditLogActionEnum = {
36
36
  UpdateApiKey: 'update_api_key',
37
37
  DeleteApiKey: 'delete_api_key'
38
38
  };
39
+ /**
40
+ * @export
41
+ */
42
+ exports.AuditLogSourceEnum = {
43
+ Web: 'web',
44
+ Cli: 'cli'
45
+ };
39
46
  /**
40
47
  * Check if a given object implements the AuditLog interface.
41
48
  */
@@ -44,6 +51,8 @@ function instanceOfAuditLog(value) {
44
51
  return false;
45
52
  if (!('action' in value) || value['action'] === undefined)
46
53
  return false;
54
+ if (!('source' in value) || value['source'] === undefined)
55
+ return false;
47
56
  return true;
48
57
  }
49
58
  function AuditLogFromJSON(json) {
@@ -58,6 +67,7 @@ function AuditLogFromJSONTyped(json, ignoreDiscriminator) {
58
67
  'vault': json['vault'] == null ? undefined : (0, VaultLite_1.VaultLiteFromJSON)(json['vault']),
59
68
  'apiKey': json['apiKey'] == null ? undefined : (0, VaultAPIKey_1.VaultAPIKeyFromJSON)(json['apiKey']),
60
69
  'action': json['action'],
70
+ 'source': json['source'],
61
71
  'ipAddress': json['ipAddress'] == null ? undefined : json['ipAddress'],
62
72
  'userAgent': json['userAgent'] == null ? undefined : json['userAgent'],
63
73
  };
@@ -75,6 +85,7 @@ function AuditLogToJSONTyped(value, ignoreDiscriminator) {
75
85
  'vault': (0, VaultLite_1.VaultLiteToJSON)(value['vault']),
76
86
  'apiKey': (0, VaultAPIKey_1.VaultAPIKeyToJSON)(value['apiKey']),
77
87
  'action': value['action'],
88
+ 'source': value['source'],
78
89
  'ipAddress': value['ipAddress'],
79
90
  'userAgent': value['userAgent'],
80
91
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lwshen/vault-hub-ts-fetch-client",
3
- "version": "v1.2.5",
3
+ "version": "v1.2.7",
4
4
  "description": "OpenAPI client for @lwshen/vault-hub-ts-fetch-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -58,6 +58,12 @@ export interface AuditLog {
58
58
  * @memberof AuditLog
59
59
  */
60
60
  action: AuditLogActionEnum;
61
+ /**
62
+ * Source of the request (web interface or CLI)
63
+ * @type {string}
64
+ * @memberof AuditLog
65
+ */
66
+ source: AuditLogSourceEnum;
61
67
  /**
62
68
  * IP address from which the action was performed
63
69
  * @type {string}
@@ -90,6 +96,15 @@ export const AuditLogActionEnum = {
90
96
  } as const;
91
97
  export type AuditLogActionEnum = typeof AuditLogActionEnum[keyof typeof AuditLogActionEnum];
92
98
 
99
+ /**
100
+ * @export
101
+ */
102
+ export const AuditLogSourceEnum = {
103
+ Web: 'web',
104
+ Cli: 'cli'
105
+ } as const;
106
+ export type AuditLogSourceEnum = typeof AuditLogSourceEnum[keyof typeof AuditLogSourceEnum];
107
+
93
108
 
94
109
  /**
95
110
  * Check if a given object implements the AuditLog interface.
@@ -97,6 +112,7 @@ export type AuditLogActionEnum = typeof AuditLogActionEnum[keyof typeof AuditLog
97
112
  export function instanceOfAuditLog(value: object): value is AuditLog {
98
113
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
99
114
  if (!('action' in value) || value['action'] === undefined) return false;
115
+ if (!('source' in value) || value['source'] === undefined) return false;
100
116
  return true;
101
117
  }
102
118
 
@@ -114,6 +130,7 @@ export function AuditLogFromJSONTyped(json: any, ignoreDiscriminator: boolean):
114
130
  'vault': json['vault'] == null ? undefined : VaultLiteFromJSON(json['vault']),
115
131
  'apiKey': json['apiKey'] == null ? undefined : VaultAPIKeyFromJSON(json['apiKey']),
116
132
  'action': json['action'],
133
+ 'source': json['source'],
117
134
  'ipAddress': json['ipAddress'] == null ? undefined : json['ipAddress'],
118
135
  'userAgent': json['userAgent'] == null ? undefined : json['userAgent'],
119
136
  };
@@ -134,6 +151,7 @@ export function AuditLogToJSONTyped(value?: AuditLog | null, ignoreDiscriminator
134
151
  'vault': VaultLiteToJSON(value['vault']),
135
152
  'apiKey': VaultAPIKeyToJSON(value['apiKey']),
136
153
  'action': value['action'],
154
+ 'source': value['source'],
137
155
  'ipAddress': value['ipAddress'],
138
156
  'userAgent': value['userAgent'],
139
157
  };