@open-wa/api 5.2.0 → 5.3.0
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/dist/index.cjs +8 -3
- package/package.json +4 -4
- package/src/routes/debug.ts +2 -2
package/dist/index.cjs
CHANGED
|
@@ -196,7 +196,7 @@ function createApiMiddleware(clientSource, options) {
|
|
|
196
196
|
//#endregion
|
|
197
197
|
//#region src/version.ts
|
|
198
198
|
/** Version of the API package running the Easy API server. */
|
|
199
|
-
const API_VERSION = "5.
|
|
199
|
+
const API_VERSION = "5.3.0";
|
|
200
200
|
//#endregion
|
|
201
201
|
//#region src/docs/openapi.ts
|
|
202
202
|
function schemaToOpenApi(schema) {
|
|
@@ -814,7 +814,9 @@ function registerDebugRoutes(app, options) {
|
|
|
814
814
|
"apiKey",
|
|
815
815
|
"licenseKey",
|
|
816
816
|
"elasticPassword",
|
|
817
|
-
"elasticUsername"
|
|
817
|
+
"elasticUsername",
|
|
818
|
+
"sessionData",
|
|
819
|
+
"sessionDataBucketAuth"
|
|
818
820
|
]) if (redacted[key]) redacted[key] = "***REDACTED***";
|
|
819
821
|
if (redacted.proxyServerCredentials) redacted.proxyServerCredentials = {
|
|
820
822
|
...redacted.proxyServerCredentials,
|
|
@@ -822,7 +824,10 @@ function registerDebugRoutes(app, options) {
|
|
|
822
824
|
};
|
|
823
825
|
if (redacted.s3Sync) redacted.s3Sync = {
|
|
824
826
|
...redacted.s3Sync,
|
|
825
|
-
|
|
827
|
+
accessKeyId: "***REDACTED***",
|
|
828
|
+
secretAccessKey: "***REDACTED***",
|
|
829
|
+
sessionToken: "***REDACTED***",
|
|
830
|
+
headers: "***REDACTED***"
|
|
826
831
|
};
|
|
827
832
|
return c.json(redacted);
|
|
828
833
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-wa/api",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.0",
|
|
4
4
|
"description": "Reusable Easy API transport and runtime explorer layer for open-wa",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"types": "./dist/index.d.cts",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@elastic/elasticsearch": "^9.5.1",
|
|
21
21
|
"@hono/node-server": "^2.1.1",
|
|
22
|
-
"@open-wa/mcp": "5.
|
|
23
|
-
"@open-wa/schema": "5.
|
|
24
|
-
"@open-wa/screencaster": "5.
|
|
22
|
+
"@open-wa/mcp": "5.3.0",
|
|
23
|
+
"@open-wa/schema": "5.3.0",
|
|
24
|
+
"@open-wa/screencaster": "5.3.0",
|
|
25
25
|
"hono": "^4.13.9",
|
|
26
26
|
"tree-kill": "^1.2.2",
|
|
27
27
|
"ws": "^8.22.0"
|
package/src/routes/debug.ts
CHANGED
|
@@ -47,7 +47,7 @@ export function registerDebugRoutes(
|
|
|
47
47
|
const config = options.getConfig();
|
|
48
48
|
// Redact sensitive fields
|
|
49
49
|
const redacted = { ...config } as Record<string, unknown>;
|
|
50
|
-
const sensitiveKeys = ['apiKey', 'licenseKey', 'elasticPassword', 'elasticUsername'];
|
|
50
|
+
const sensitiveKeys = ['apiKey', 'licenseKey', 'elasticPassword', 'elasticUsername', 'sessionData', 'sessionDataBucketAuth'];
|
|
51
51
|
for (const key of sensitiveKeys) {
|
|
52
52
|
if (redacted[key]) {
|
|
53
53
|
redacted[key] = '***REDACTED***';
|
|
@@ -58,7 +58,7 @@ export function registerDebugRoutes(
|
|
|
58
58
|
redacted.proxyServerCredentials = { ...redacted.proxyServerCredentials as Record<string, unknown>, password: '***REDACTED***' };
|
|
59
59
|
}
|
|
60
60
|
if (redacted.s3Sync) {
|
|
61
|
-
redacted.s3Sync = { ...redacted.s3Sync as Record<string, unknown>, secretAccessKey: '***REDACTED***' };
|
|
61
|
+
redacted.s3Sync = { ...redacted.s3Sync as Record<string, unknown>, accessKeyId: '***REDACTED***', secretAccessKey: '***REDACTED***', sessionToken: '***REDACTED***', headers: '***REDACTED***' };
|
|
62
62
|
}
|
|
63
63
|
return c.json(redacted);
|
|
64
64
|
});
|