@venizia/ignis-helpers 0.1.1-0 → 0.1.1-2

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.
Files changed (93) hide show
  1. package/dist/common/redact.d.ts.map +1 -1
  2. package/dist/common/redact.js +27 -2
  3. package/dist/common/redact.js.map +1 -1
  4. package/dist/modules/env/app-env.d.ts +4 -0
  5. package/dist/modules/env/app-env.d.ts.map +1 -1
  6. package/dist/modules/env/app-env.js +7 -1
  7. package/dist/modules/env/app-env.js.map +1 -1
  8. package/dist/modules/error/index.d.ts +19 -2
  9. package/dist/modules/error/index.d.ts.map +1 -1
  10. package/dist/modules/error/index.js +24 -2
  11. package/dist/modules/error/index.js.map +1 -1
  12. package/dist/modules/error/types.d.ts +19 -4
  13. package/dist/modules/error/types.d.ts.map +1 -1
  14. package/dist/modules/error/types.js +29 -7
  15. package/dist/modules/error/types.js.map +1 -1
  16. package/dist/modules/index.d.ts +1 -0
  17. package/dist/modules/index.d.ts.map +1 -1
  18. package/dist/modules/index.js +1 -0
  19. package/dist/modules/index.js.map +1 -1
  20. package/dist/modules/logger/formatters/deep-splat.d.ts.map +1 -1
  21. package/dist/modules/logger/formatters/deep-splat.js +6 -1
  22. package/dist/modules/logger/formatters/deep-splat.js.map +1 -1
  23. package/dist/modules/secrets/base/abstract.helper.d.ts +64 -0
  24. package/dist/modules/secrets/base/abstract.helper.d.ts.map +1 -0
  25. package/dist/modules/secrets/base/abstract.helper.js +251 -0
  26. package/dist/modules/secrets/base/abstract.helper.js.map +1 -0
  27. package/dist/modules/secrets/base/index.d.ts +2 -0
  28. package/dist/modules/secrets/base/index.d.ts.map +1 -0
  29. package/dist/modules/secrets/base/index.js +18 -0
  30. package/dist/modules/secrets/base/index.js.map +1 -0
  31. package/dist/modules/secrets/common/constants.d.ts +18 -0
  32. package/dist/modules/secrets/common/constants.d.ts.map +1 -0
  33. package/dist/modules/secrets/common/constants.js +24 -0
  34. package/dist/modules/secrets/common/constants.js.map +1 -0
  35. package/dist/modules/secrets/common/index.d.ts +3 -0
  36. package/dist/modules/secrets/common/index.d.ts.map +1 -0
  37. package/dist/modules/secrets/common/index.js +19 -0
  38. package/dist/modules/secrets/common/index.js.map +1 -0
  39. package/dist/modules/secrets/common/types.d.ts +82 -0
  40. package/dist/modules/secrets/common/types.d.ts.map +1 -0
  41. package/dist/modules/secrets/common/types.js +3 -0
  42. package/dist/modules/secrets/common/types.js.map +1 -0
  43. package/dist/modules/secrets/dotenv/dotenv.helper.d.ts +31 -0
  44. package/dist/modules/secrets/dotenv/dotenv.helper.d.ts.map +1 -0
  45. package/dist/modules/secrets/dotenv/dotenv.helper.js +46 -0
  46. package/dist/modules/secrets/dotenv/dotenv.helper.js.map +1 -0
  47. package/dist/modules/secrets/dotenv/index.d.ts +2 -0
  48. package/dist/modules/secrets/dotenv/index.d.ts.map +1 -0
  49. package/dist/modules/secrets/dotenv/index.js +18 -0
  50. package/dist/modules/secrets/dotenv/index.js.map +1 -0
  51. package/dist/modules/secrets/factory.d.ts +5 -0
  52. package/dist/modules/secrets/factory.d.ts.map +1 -0
  53. package/dist/modules/secrets/factory.js +38 -0
  54. package/dist/modules/secrets/factory.js.map +1 -0
  55. package/dist/modules/secrets/hashicorp/auth.d.ts +17 -0
  56. package/dist/modules/secrets/hashicorp/auth.d.ts.map +1 -0
  57. package/dist/modules/secrets/hashicorp/auth.js +21 -0
  58. package/dist/modules/secrets/hashicorp/auth.js.map +1 -0
  59. package/dist/modules/secrets/hashicorp/hashicorp.helper.d.ts +71 -0
  60. package/dist/modules/secrets/hashicorp/hashicorp.helper.d.ts.map +1 -0
  61. package/dist/modules/secrets/hashicorp/hashicorp.helper.js +206 -0
  62. package/dist/modules/secrets/hashicorp/hashicorp.helper.js.map +1 -0
  63. package/dist/modules/secrets/hashicorp/index.d.ts +3 -0
  64. package/dist/modules/secrets/hashicorp/index.d.ts.map +1 -0
  65. package/dist/modules/secrets/hashicorp/index.js +19 -0
  66. package/dist/modules/secrets/hashicorp/index.js.map +1 -0
  67. package/dist/modules/secrets/index.d.ts +5 -0
  68. package/dist/modules/secrets/index.d.ts.map +1 -0
  69. package/dist/modules/secrets/index.js +23 -0
  70. package/dist/modules/secrets/index.js.map +1 -0
  71. package/dist/modules/secrets/system-envs/index.d.ts +2 -0
  72. package/dist/modules/secrets/system-envs/index.d.ts.map +1 -0
  73. package/dist/modules/secrets/system-envs/index.js +18 -0
  74. package/dist/modules/secrets/system-envs/index.js.map +1 -0
  75. package/dist/modules/secrets/system-envs/system-envs.helper.d.ts +19 -0
  76. package/dist/modules/secrets/system-envs/system-envs.helper.d.ts.map +1 -0
  77. package/dist/modules/secrets/system-envs/system-envs.helper.js +37 -0
  78. package/dist/modules/secrets/system-envs/system-envs.helper.js.map +1 -0
  79. package/dist/modules/uid/helper.js +7 -7
  80. package/dist/modules/uid/helper.js.map +1 -1
  81. package/dist/utilities/module.utility.d.ts +9 -0
  82. package/dist/utilities/module.utility.d.ts.map +1 -1
  83. package/dist/utilities/module.utility.js +20 -1
  84. package/dist/utilities/module.utility.js.map +1 -1
  85. package/package.json +21 -3
  86. package/dist/modules/error/app-error.d.ts +0 -21
  87. package/dist/modules/error/app-error.d.ts.map +0 -1
  88. package/dist/modules/error/app-error.js +0 -41
  89. package/dist/modules/error/app-error.js.map +0 -1
  90. package/dist/modules/error/message-code.d.ts +0 -18
  91. package/dist/modules/error/message-code.d.ts.map +0 -1
  92. package/dist/modules/error/message-code.js +0 -44
  93. package/dist/modules/error/message-code.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"redact.d.ts","sourceRoot":"","sources":["../../src/common/redact.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,QAAQ,eAAe,CAAC;AAErC;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,OAAO,EAAE,sBAA4B,KAAG,OA+B5E,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,GAAI,KAAK,MAAM,KAAG,MAelD,CAAC"}
1
+ {"version":3,"file":"redact.d.ts","sourceRoot":"","sources":["../../src/common/redact.ts"],"names":[],"mappings":"AAgCA,eAAO,MAAM,QAAQ,eAAe,CAAC;AAErC;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,OAAO,EAAE,sBAA4B,KAAG,OAgD5E,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,GAAI,KAAK,MAAM,KAAG,MAelD,CAAC"}
@@ -10,9 +10,18 @@ const SECRET_KEY_PATTERN = new RegExp([
10
10
  '^(pass|password|passphrase|secret|token|apiKey|api_key|accessKey|access_key',
11
11
  '|secretKey|secret_key|privateKey|private_key|key|cert|ca|pfx|credentials',
12
12
  '|authorization|auth|jwtSecret|applicationSecret|connectionString)$',
13
+ // Vault wire spellings (snake_case). node-vault's AppRole login/response bodies carry these
14
+ // exact keys; `secret_id`/`role_id` are the AppRole credential pair and `client_token` is the
15
+ // minted session token. None are matched by the anchored options list above.
16
+ '|^(client_token|secret_id|role_id)$',
17
+ // Any `*_token` (snake_case) or `*Token` (camelCase) key - access_token, refresh_token,
18
+ // vaultToken, ... A preceding character is required so the bare word `token` (already covered
19
+ // above) is not the whole match, and so ordinary words are not swallowed.
20
+ '|_token$|[a-z0-9]token$',
13
21
  // HTTP HEADER spellings. A header set is logged on every outbound request, and its names are
14
- // kebab-case and often `x-`-prefixed - none of which the camelCase list above matches.
15
- '|^(x-)?(api|auth|access|secret|session|csrf|xsrf)-(key|token|secret|id)$',
22
+ // kebab-case and often `x-`-prefixed - none of which the camelCase list above matches. `vault`
23
+ // is included so `X-Vault-Token` (node-vault's auth header) is caught.
24
+ '|^(x-)?(api|auth|access|secret|session|csrf|xsrf|vault)-(key|token|secret|id)$',
16
25
  '|^(cookie|set-cookie|proxy-authorization|www-authenticate)$',
17
26
  ].join(''), 'i');
18
27
  exports.REDACTED = '[REDACTED]';
@@ -32,6 +41,22 @@ const redactSecrets = (value, seen = new WeakSet()) => {
32
41
  return '[Circular]';
33
42
  }
34
43
  seen.add(value);
44
+ // An Error keeps `name`/`message`/`stack` as NON-enumerable, so `Object.keys()` skips them and a
45
+ // naive redaction would DROP the very message the log line is about. Reproject the error into a
46
+ // plain object that STILL carries those fields, plus its redacted enumerable own-props
47
+ // (`config`/`response`/... where a nested `X-Vault-Token` or `secret_id` becomes [REDACTED]).
48
+ if (value instanceof Error) {
49
+ const source = value;
50
+ const result = {
51
+ name: value.name,
52
+ message: value.message,
53
+ stack: value.stack,
54
+ };
55
+ for (const key of Object.keys(source)) {
56
+ result[key] = SECRET_KEY_PATTERN.test(key) ? exports.REDACTED : (0, exports.redactSecrets)(source[key], seen);
57
+ }
58
+ return result;
59
+ }
35
60
  if (Array.isArray(value)) {
36
61
  return value.map(entry => (0, exports.redactSecrets)(entry, seen));
37
62
  }
@@ -1 +1 @@
1
- {"version":3,"file":"redact.js","sourceRoot":"","sources":["../../src/common/redact.ts"],"names":[],"mappings":";;;AAEA;;;GAGG;AACH,MAAM,kBAAkB,GAAG,IAAI,MAAM,CACnC;IACE,qDAAqD;IACrD,6EAA6E;IAC7E,0EAA0E;IAC1E,oEAAoE;IAEpE,6FAA6F;IAC7F,uFAAuF;IACvF,0EAA0E;IAC1E,6DAA6D;CAC9D,CAAC,IAAI,CAAC,EAAE,CAAC,EACV,GAAG,CACJ,CAAC;AAEW,QAAA,QAAQ,GAAG,YAAY,CAAC;AAErC;;;;;;;GAOG;AACI,MAAM,aAAa,GAAG,CAAC,KAAc,EAAE,OAAO,IAAI,OAAO,EAAU,EAAW,EAAE;IACrF,IAAI,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAChD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,IAAI,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;QACpB,OAAO,YAAY,CAAC;IACtB,CAAC;IACD,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAE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C;IACxB,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,GAAG,CAAC;IACb,CAAC;IAED,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;QACrB,OAAO,GAAG,CAAC;IACb,CAAC;IAED,MAAM,CAAC,QAAQ,GAAG,gBAAQ,CAAC;IAC3B,OAAO,kBAAkB,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC;AAC/C,CAAC,CAAC;AAfW,QAAA,oBAAoB,wBAe/B"}
@@ -35,9 +35,13 @@ export declare class ApplicationEnvironment implements IApplicationEnvironment {
35
35
  transform?: (value: BeforeTransformType) => ReturnType;
36
36
  }): ReturnType;
37
37
  set<ValueType>(key: string, value: ValueType): void;
38
+ merge(opts: {
39
+ envs: Record<string, string>;
40
+ }): void;
38
41
  isDevelopment(): boolean;
39
42
  keys(): string[];
40
43
  }
41
44
  export declare const applicationEnvironment: ApplicationEnvironment;
45
+ export declare const AppEnvs: ApplicationEnvironment;
42
46
  export declare const Envs: ApplicationEnvironment;
43
47
  //# sourceMappingURL=app-env.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app-env.d.ts","sourceRoot":"","sources":["../../../src/modules/env/app-env.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAElD,qBAAa,WAAW;IACtB,MAAM,CAAC,QAAQ,CAAC,KAAK,WAAW;IAChC,MAAM,CAAC,QAAQ,CAAC,KAAK,WAAW;IAEhC,MAAM,CAAC,QAAQ,CAAC,WAAW,iBAAiB;IAC5C,gGAAgG;IAChG,MAAM,CAAC,QAAQ,CAAC,GAAG,SAAS;IAC5B,MAAM,CAAC,QAAQ,CAAC,GAAG,SAAS;IAE5B,MAAM,CAAC,QAAQ,CAAC,GAAG,SAAS;IAC5B,MAAM,CAAC,QAAQ,CAAC,KAAK,WAAW;IAChC,MAAM,CAAC,QAAQ,CAAC,IAAI,UAAU;IAC9B,MAAM,CAAC,QAAQ,CAAC,O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9C,eAAO,MAAM,IAAI,wBAAyB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Envs = exports.applicationEnvironment = exports.ApplicationEnvironment = exports.Environment = void 0;
3
+ exports.Envs = exports.AppEnvs = exports.applicationEnvironment = exports.ApplicationEnvironment = exports.Environment = void 0;
4
4
  class Environment {
5
5
  static { this.LOCAL = 'local'; }
6
6
  static { this.DEBUG = 'debug'; }
@@ -65,6 +65,11 @@ class ApplicationEnvironment {
65
65
  set(key, value) {
66
66
  this.arguments[key] = value;
67
67
  }
68
+ merge(opts) {
69
+ for (const [key, value] of Object.entries(opts.envs)) {
70
+ this.arguments[key] = value;
71
+ }
72
+ }
68
73
  isDevelopment() {
69
74
  const { NODE_ENV } = process.env;
70
75
  return NODE_ENV === 'development';
@@ -78,5 +83,6 @@ exports.applicationEnvironment = new ApplicationEnvironment({
78
83
  prefix: process.env.APPLICATION_ENV_PREFIX ?? 'APP_ENV',
79
84
  envs: process.env,
80
85
  });
86
+ exports.AppEnvs = exports.applicationEnvironment;
81
87
  exports.Envs = exports.applicationEnvironment;
82
88
  //# sourceMappingURL=app-env.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"app-env.js","sourceRoot":"","sources":["../../../src/modules/env/app-env.ts"],"names":[],"mappings":";;;AAEA,MAAa,WAAW;aACN,UAAK,GAAG,OAAO,CAAC;aAChB,UAAK,GAAG,OAAO,CAAC;aAEhB,gBAAW,GAAG,aAAa,CAAC;IAC5C,gGAAgG;aAChF,QAAG,GAAG,KAAK,CAAC;aACZ,QAAG,GAAG,KAAK,CAAC;aAEZ,QAAG,GAAG,KAAK,CAAC;aACZ,UAAK,GAAG,OAAO,CAAC;aAChB,SAAI,GAAG,MAAM,CAAC;aACd,YAAO,GAAG,SAAS,CAAC;aAEpB,eAAU,GAAG,YAAY,CAAC;aAEnC,gBAAW,GAAG,IAAI,GAAG,CAAC;QAC3B,IAAI,CAAC,KAA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`@venizia/ignis-inversion`, not here.
3
+ *
4
+ * It moved there so a browser application - which already depends on inversion for its DI, and
5
+ * cannot depend on helpers - raises and reads errors through the SAME class the server does.
6
+ * Before, inversion carried a second, divergent `ApplicationError` whose `messageCode` was never
7
+ * resolved. Backend code keeps importing from `@venizia/ignis-helpers` and sees no difference.
8
+ *
9
+ * Re-exported by name rather than `export *`: inversion's barrel also carries the DI container, and
10
+ * a blanket re-export would drag `Container`, `inject` and the rest into the helpers surface.
11
+ *
12
+ * Key registration works through this re-export: `declare module '@venizia/ignis-helpers'` merges
13
+ * into `IErrorKeyRegistry` exactly as augmenting inversion directly would, because merging follows
14
+ * the re-exported declaration. Augment whichever module the file already imports - TypeScript only
15
+ * treats `declare module` as an augmentation when the target is imported, and silently downgrades
16
+ * it to an inert ambient declaration otherwise. See `registry-augmentation.test.ts`.
17
+ */
18
+ export { ApplicationError, ErrorScopes, getError, isApplicationError, MessageCode, } from '@venizia/ignis-inversion';
19
+ export type { IErrorKeyRegistry, TError, TErrorByDefinition, TErrorByField, TErrorDefinition, TErrorDefinitionMessage, TErrorKey, TErrorMessage, TErrorMessageInput, TErrorMessageOverride, TErrorNormalized, TErrorNormalizeTransformFn, TErrorScope, TRegisterErrors, } from '@venizia/ignis-inversion';
3
20
  export * from './types';
4
21
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/error/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/error/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,QAAQ,EACR,kBAAkB,EAClB,WAAW,GACZ,MAAM,0BAA0B,CAAC;AAElC,YAAY,EACV,iBAAiB,EACjB,MAAM,EACN,kBAAkB,EAClB,aAAa,EACb,gBAAgB,EAChB,uBAAuB,EACvB,SAAS,EACT,aAAa,EACb,kBAAkB,EAClB,qBAAqB,EACrB,gBAAgB,EAChB,0BAA0B,EAC1B,WAAW,EACX,eAAe,GAChB,MAAM,0BAA0B,CAAC;AAElC,cAAc,SAAS,CAAC"}
@@ -14,7 +14,29 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./app-error"), exports);
18
- __exportStar(require("./message-code"), exports);
17
+ exports.MessageCode = exports.isApplicationError = exports.getError = exports.ErrorScopes = exports.ApplicationError = void 0;
18
+ /**
19
+ * The error layer itself lives in `@venizia/ignis-inversion`, not here.
20
+ *
21
+ * It moved there so a browser application - which already depends on inversion for its DI, and
22
+ * cannot depend on helpers - raises and reads errors through the SAME class the server does.
23
+ * Before, inversion carried a second, divergent `ApplicationError` whose `messageCode` was never
24
+ * resolved. Backend code keeps importing from `@venizia/ignis-helpers` and sees no difference.
25
+ *
26
+ * Re-exported by name rather than `export *`: inversion's barrel also carries the DI container, and
27
+ * a blanket re-export would drag `Container`, `inject` and the rest into the helpers surface.
28
+ *
29
+ * Key registration works through this re-export: `declare module '@venizia/ignis-helpers'` merges
30
+ * into `IErrorKeyRegistry` exactly as augmenting inversion directly would, because merging follows
31
+ * the re-exported declaration. Augment whichever module the file already imports - TypeScript only
32
+ * treats `declare module` as an augmentation when the target is imported, and silently downgrades
33
+ * it to an inert ambient declaration otherwise. See `registry-augmentation.test.ts`.
34
+ */
35
+ var ignis_inversion_1 = require("@venizia/ignis-inversion");
36
+ Object.defineProperty(exports, "ApplicationError", { enumerable: true, get: function () { return ignis_inversion_1.ApplicationError; } });
37
+ Object.defineProperty(exports, "ErrorScopes", { enumerable: true, get: function () { return ignis_inversion_1.ErrorScopes; } });
38
+ Object.defineProperty(exports, "getError", { enumerable: true, get: function () { return ignis_inversion_1.getError; } });
39
+ Object.defineProperty(exports, "isApplicationError", { enumerable: true, get: function () { return ignis_inversion_1.isApplicationError; } });
40
+ Object.defineProperty(exports, "MessageCode", { enumerable: true, get: function () { return ignis_inversion_1.MessageCode; } });
19
41
  __exportStar(require("./types"), exports);
20
42
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/error/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,iDAA+B;AAC/B,0CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/error/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,4DAMkC;AALhC,mHAAA,gBAAgB,OAAA;AAChB,8GAAA,WAAW,OAAA;AACX,2GAAA,QAAQ,OAAA;AACR,qHAAA,kBAAkB,OAAA;AAClB,8GAAA,WAAW,OAAA;AAoBb,0CAAwB"}
@@ -1,9 +1,24 @@
1
1
  import { z } from '@hono/zod-openapi';
2
+ /**
3
+ * The error RESPONSE, for OpenAPI documentation - NOT the input to `getError`.
4
+ *
5
+ * The two used to be the same type, and that conflation is what let `getError` accept anything: the
6
+ * schema ended in `.catchall(z.any())` so the docs could describe `extra`, and the catchall then
7
+ * silently swallowed every mistyped field at every throw site. The input now lives in
8
+ * `@venizia/ignis-inversion` as a hand-written union with no index signature; this stays here
9
+ * because it needs `@hono/zod-openapi`, which inversion must not depend on - it ships to browsers.
10
+ */
2
11
  export declare const ErrorSchema: z.ZodObject<{
3
- name: z.ZodOptional<z.ZodString>;
4
12
  statusCode: z.ZodOptional<z.ZodNumber>;
5
- messageCode: z.ZodOptional<z.ZodString>;
6
13
  message: z.ZodString;
7
- }, z.core.$catchall<z.ZodAny>>;
8
- export type TError = z.infer<typeof ErrorSchema>;
14
+ normalized: z.ZodOptional<z.ZodObject<{
15
+ text: z.ZodString;
16
+ code: z.ZodString;
17
+ args: z.ZodRecord<z.ZodString, z.ZodAny>;
18
+ }, z.core.$strip>>;
19
+ extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
20
+ requestId: z.ZodOptional<z.ZodString>;
21
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
22
+ }, z.core.$strip>;
23
+ export type TErrorResponse = z.infer<typeof ErrorSchema>;
9
24
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/modules/error/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAEtC,eAAO,MAAM,WAAW;;;;;8BAgBpB,CAAC;AAEL,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/modules/error/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAEtC;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;iBA6BpB,CAAC;AAEL,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC"}
@@ -2,21 +2,43 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ErrorSchema = void 0;
4
4
  const zod_openapi_1 = require("@hono/zod-openapi");
5
+ /**
6
+ * The error RESPONSE, for OpenAPI documentation - NOT the input to `getError`.
7
+ *
8
+ * The two used to be the same type, and that conflation is what let `getError` accept anything: the
9
+ * schema ended in `.catchall(z.any())` so the docs could describe `extra`, and the catchall then
10
+ * silently swallowed every mistyped field at every throw site. The input now lives in
11
+ * `@venizia/ignis-inversion` as a hand-written union with no index signature; this stays here
12
+ * because it needs `@hono/zod-openapi`, which inversion must not depend on - it ships to browsers.
13
+ */
5
14
  exports.ErrorSchema = zod_openapi_1.z
6
15
  .object({
7
- name: zod_openapi_1.z.string().optional(),
8
16
  statusCode: zod_openapi_1.z.number().optional(),
9
- messageCode: zod_openapi_1.z.string().optional(),
10
17
  message: zod_openapi_1.z.string(),
18
+ normalized: zod_openapi_1.z
19
+ .object({
20
+ text: zod_openapi_1.z.string(),
21
+ code: zod_openapi_1.z.string(),
22
+ args: zod_openapi_1.z.record(zod_openapi_1.z.string(), zod_openapi_1.z.any()),
23
+ })
24
+ .optional(),
25
+ extra: zod_openapi_1.z.record(zod_openapi_1.z.string(), zod_openapi_1.z.any()).optional(),
26
+ requestId: zod_openapi_1.z.string().optional(),
27
+ details: zod_openapi_1.z.record(zod_openapi_1.z.string(), zod_openapi_1.z.any()).optional(),
11
28
  })
12
- .catchall(zod_openapi_1.z.any())
13
29
  .openapi({
14
30
  description: 'Error Schema',
15
31
  example: {
16
- name: 'ErrorName',
17
- statusCode: '4xx | 5xx | ...',
18
- messageCode: 'app.example.error_code',
19
- message: 'Example Message',
32
+ statusCode: 409,
33
+ message: 'A category named %{name} already exists.',
34
+ normalized: {
35
+ text: 'A category named %{name} already exists.',
36
+ code: 'server.commerce.category.create.duplicate_name',
37
+ args: { name: 'Ticket' },
38
+ },
39
+ extra: { categoryId: 42 },
40
+ requestId: 'abc-123-def',
41
+ details: { url: 'http://localhost:3000/categories', path: '/categories' },
20
42
  },
21
43
  });
22
44
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/modules/error/types.ts"],"names":[],"mappings":";;;AAAA,mDAAsC;AAEzB,QAAA,WAAW,GAAG,eAAC;KACzB,MAAM,CAAC;IACN,IAAI,EAAE,eAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,UAAU,EAAE,eAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,WAAW,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ACP,UAAU,EAAE,GAAG;QACf,OAAO,EAAE,0CAA0C;QACnD,UAAU,EAAE;YACV,IAAI,EAAE,0CAA0C;YAChD,IAAI,EAAE,gDAAgD;YACtD,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;SACzB;QACD,KAAK,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE;QACzB,SAAS,EAAE,aAAa;QACxB,OAAO,EAAE,EAAE,GAAG,EAAE,kCAAkC,EAAE,IAAI,EAAE,aAAa,EAAE;KAC1E;CACF,CAAC,CAAC"}
@@ -7,6 +7,7 @@ export * from './network';
7
7
  export * from './pool';
8
8
  export * from './queue';
9
9
  export * from './redis';
10
+ export * from './secrets';
10
11
  export * from './socket';
11
12
  export * from './storage';
12
13
  export * from './uid';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/modules/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AAEvB,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,OAAO,CAAC;AACtB,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/modules/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AAEvB,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,OAAO,CAAC;AACtB,cAAc,iBAAiB,CAAC"}
@@ -23,6 +23,7 @@ __exportStar(require("./network"), exports);
23
23
  __exportStar(require("./pool"), exports);
24
24
  __exportStar(require("./queue"), exports);
25
25
  __exportStar(require("./redis"), exports);
26
+ __exportStar(require("./secrets"), exports);
26
27
  __exportStar(require("./socket"), exports);
27
28
  __exportStar(require("./storage"), exports);
28
29
  __exportStar(require("./uid"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/modules/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AAEvB,2CAAyB;AACzB,wCAAsB;AACtB,0CAAwB;AACxB,2CAAyB;AACzB,4CAA0B;AAC1B,yCAAuB;AACvB,0CAAwB;AACxB,0CAAwB;AACxB,2CAAyB;AACzB,4CAA0B;AAC1B,wCAAsB;AACtB,kDAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/modules/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AAEvB,2CAAyB;AACzB,wCAAsB;AACtB,0CAAwB;AACxB,2CAAyB;AACzB,4CAA0B;AAC1B,yCAAuB;AACvB,0CAAwB;AACxB,0CAAwB;AACxB,4CAA0B;AAC1B,2CAAyB;AACzB,4CAA0B;AAC1B,wCAAsB;AACtB,kDAAgC"}
@@ -1 +1 @@
1
- {"version":3,"file":"deep-splat.d.ts","sourceRoot":"","sources":["../../../../src/modules/logger/formatters/deep-splat.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,OAAO,MAAM,SAAS,CAAC;AAkD9B;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,GAAI,MAAM;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IACrB,cAAc,CAAC,EAAE,IAAI,CAAC,cAAc,CAAC;CACtC,KAAG,MAiBH,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,SAAS,4BASpB,CAAC"}
1
+ {"version":3,"file":"deep-splat.d.ts","sourceRoot":"","sources":["../../../../src/modules/logger/formatters/deep-splat.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,OAAO,MAAM,SAAS,CAAC;AAmD9B;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,GAAI,MAAM;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IACrB,cAAc,CAAC,EAAE,IAAI,CAAC,cAAc,CAAC;CACtC,KAAG,MAqBH,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,SAAS,4BASpB,CAAC"}
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.deepSplat = exports.formatLogMessage = void 0;
7
7
  const node_util_1 = __importDefault(require("node:util"));
8
8
  const winston_1 = __importDefault(require("winston"));
9
+ const redact_1 = require("../../../common/redact");
9
10
  /** Winston stashes the extra arguments of `logger.error(msg, ...args)` under this well-known key. */
10
11
  const SPLAT = Symbol.for('splat');
11
12
  /** The placeholders `util.format` understands. `%%` is an escape, not a placeholder. */
@@ -63,7 +64,11 @@ const formatLogMessage = (opts) => {
63
64
  if (!isStringPlaceholder || !isInspectable) {
64
65
  return arg;
65
66
  }
66
- return node_util_1.default.inspect(arg, inspectOptions);
67
+ // Redact before inspecting: any object deep-inspected into a log line (a node-vault AxiosError
68
+ // carrying a live `X-Vault-Token`, a driver payload with a password) is stripped of its secret
69
+ // KEYS here. `redactSecrets` copies non-secret fields through unchanged, so the diagnosis the
70
+ // line was opened for still renders at full depth.
71
+ return node_util_1.default.inspect((0, redact_1.redactSecrets)(arg), inspectOptions);
67
72
  });
68
73
  return node_util_1.default.formatWithOptions(inspectOptions, message, ...widened);
69
74
  };
@@ -1 +1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AAC,CAAC;IAEhG,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE;QACtC,MAAM,mBAAmB,GAAG,YAAY,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC;QACzD,MAAM,aAAa,GAAG,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,IAAI,CAAC;QAE9D,IAAI,CAAC,mBAAmB,IAAI,CAAC,aAAa,EAAE,CAAC;YAC3C,OAAO,GAAG,CAAC;QACb,CAAC;QAED,+FAA+F;QAC/F,+FAA+F;QAC/F,8FAA8F;QAC9F,mDAAmD;QACnD,OAAO,mBAAI,CAAC,OAAO,CAAC,IAAA,sBAAa,EAAC,GAAG,CAAC,EAAE,cAAc,CAAC,CAAC;IAC1D,CAAC,CAAC,CAAC;IAEH,OAAO,mBAAI,CAAC,iBAAiB,CAAC,cAAc,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,CAAC;AACrE,CAAC,CAAC;AAzBW,QAAA,gBAAgB,oBAyB3B;AAEF;;;GAGG;AACU,QAAA,SAAS,GAAG,iBAAO,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE;IAC7C,MAAM,IAAI,GAAI,IAAgB,CAAC,KAAK,CAA+B,CAAC;IAEpE,IAAI,CAAC,IAAI,EAAE,MAAM,IAAI,OAAO,IAAI,CAAC,OAAO,KAAK,QAAQ,EAAE,CAAC;QACtD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,CAAC,OAAO,GAAG,IAAA,wBAAgB,EAAC,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IACjE,OAAO,IAAI,CAAC;AACd,CAAC,CAAC,CAAC"}
@@ -0,0 +1,64 @@
1
+ import { BaseHelper } from '../../../modules/base';
2
+ import type { IClock, IGetSecretOptions, ISecretLease, ISecretRotatable, ISecretsHelper, ISecretsHelperOptions, ITimerAdapter, TSecretRotationHandler } from '../common';
3
+ interface IRawFetchResult {
4
+ value: Record<string, string>;
5
+ lease?: {
6
+ leaseId: string;
7
+ ttlSeconds: number;
8
+ renewable: boolean;
9
+ };
10
+ }
11
+ export declare abstract class AbstractSecretsHelper extends BaseHelper implements ISecretsHelper {
12
+ protected readonly clock: IClock;
13
+ protected readonly timers: ITimerAdapter;
14
+ protected readonly cacheTtlSeconds: number;
15
+ protected readonly renewBeforeRatio: number;
16
+ private readonly cache;
17
+ private readonly leases;
18
+ private readonly leasePaths;
19
+ private readonly timerHandles;
20
+ private readonly rotatables;
21
+ private readonly rotateHandlers;
22
+ private readonly backoffAttempts;
23
+ private closed;
24
+ constructor(opts: ISecretsHelperOptions);
25
+ protected abstract fetchRaw(opts: {
26
+ path: string;
27
+ }): Promise<IRawFetchResult>;
28
+ protected abstract renewRaw(opts: {
29
+ leaseId: string;
30
+ ttlSeconds: number;
31
+ }): Promise<{
32
+ ttlSeconds: number;
33
+ } | null>;
34
+ protected abstract revokeRaw(opts: {
35
+ leaseId: string;
36
+ }): Promise<void>;
37
+ configure(): Promise<void>;
38
+ getBundle(opts: {
39
+ path: string;
40
+ }): Promise<Record<string, string>>;
41
+ get(opts: IGetSecretOptions<string>): Promise<string>;
42
+ get<TValue>(opts: IGetSecretOptions<TValue>): Promise<TValue>;
43
+ lease(opts: {
44
+ path: string;
45
+ key: string;
46
+ }): Promise<ISecretLease>;
47
+ onRotate(handler: TSecretRotationHandler): void;
48
+ registerRotatable(opts: {
49
+ key: string;
50
+ target: ISecretRotatable;
51
+ }): void;
52
+ shutdown(): Promise<void>;
53
+ private writeCache;
54
+ private evictExpiredCache;
55
+ private clampDelayMs;
56
+ private armTimer;
57
+ private scheduleRenewal;
58
+ private scheduleBackoffRetry;
59
+ private handleRenewal;
60
+ private rotate;
61
+ private dispatchRotation;
62
+ }
63
+ export {};
64
+ //# sourceMappingURL=abstract.helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"abstract.helper.d.ts","sourceRoot":"","sources":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