@open-wa/api 5.2.0 → 5.4.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 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.2.0";
199
+ const API_VERSION = "5.4.0";
200
200
  //#endregion
201
201
  //#region src/docs/openapi.ts
202
202
  function schemaToOpenApi(schema) {
@@ -814,7 +814,11 @@ function registerDebugRoutes(app, options) {
814
814
  "apiKey",
815
815
  "licenseKey",
816
816
  "elasticPassword",
817
- "elasticUsername"
817
+ "elasticUsername",
818
+ "sessionData",
819
+ "sessionDataBucketAuth",
820
+ "sessionDataEncryptionKey",
821
+ "sessionDataEncryptionKeyFile"
818
822
  ]) if (redacted[key]) redacted[key] = "***REDACTED***";
819
823
  if (redacted.proxyServerCredentials) redacted.proxyServerCredentials = {
820
824
  ...redacted.proxyServerCredentials,
@@ -822,7 +826,10 @@ function registerDebugRoutes(app, options) {
822
826
  };
823
827
  if (redacted.s3Sync) redacted.s3Sync = {
824
828
  ...redacted.s3Sync,
825
- secretAccessKey: "***REDACTED***"
829
+ accessKeyId: "***REDACTED***",
830
+ secretAccessKey: "***REDACTED***",
831
+ sessionToken: "***REDACTED***",
832
+ headers: "***REDACTED***"
826
833
  };
827
834
  return c.json(redacted);
828
835
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wa/api",
3
- "version": "5.2.0",
3
+ "version": "5.4.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.2.0",
23
- "@open-wa/schema": "5.2.0",
24
- "@open-wa/screencaster": "5.2.0",
22
+ "@open-wa/mcp": "5.4.0",
23
+ "@open-wa/schema": "5.4.0",
24
+ "@open-wa/screencaster": "5.4.0",
25
25
  "hono": "^4.13.9",
26
26
  "tree-kill": "^1.2.2",
27
27
  "ws": "^8.22.0"
@@ -47,7 +47,8 @@ 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
+ 'sessionDataEncryptionKey', 'sessionDataEncryptionKeyFile'];
51
52
  for (const key of sensitiveKeys) {
52
53
  if (redacted[key]) {
53
54
  redacted[key] = '***REDACTED***';
@@ -58,7 +59,7 @@ export function registerDebugRoutes(
58
59
  redacted.proxyServerCredentials = { ...redacted.proxyServerCredentials as Record<string, unknown>, password: '***REDACTED***' };
59
60
  }
60
61
  if (redacted.s3Sync) {
61
- redacted.s3Sync = { ...redacted.s3Sync as Record<string, unknown>, secretAccessKey: '***REDACTED***' };
62
+ redacted.s3Sync = { ...redacted.s3Sync as Record<string, unknown>, accessKeyId: '***REDACTED***', secretAccessKey: '***REDACTED***', sessionToken: '***REDACTED***', headers: '***REDACTED***' };
62
63
  }
63
64
  return c.json(redacted);
64
65
  });