@zyno-io/ts-server-foundation 26.1030.133 → 26.1102.1949

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 (36) hide show
  1. package/dist/src/app/base.js +2 -2
  2. package/dist/src/database/query.js +1 -1
  3. package/dist/src/http/base.js +2 -2
  4. package/dist/src/http/index.d.ts +2 -0
  5. package/dist/src/http/index.d.ts.map +1 -1
  6. package/dist/src/http/index.js +3 -1
  7. package/dist/src/http/index.js.map +1 -1
  8. package/dist/src/http/middleware.d.ts +8 -0
  9. package/dist/src/http/middleware.d.ts.map +1 -1
  10. package/dist/src/http/middleware.js +30 -2
  11. package/dist/src/http/middleware.js.map +1 -1
  12. package/dist/src/http/payload-redaction.d.ts +25 -0
  13. package/dist/src/http/payload-redaction.d.ts.map +1 -0
  14. package/dist/src/http/payload-redaction.js +122 -0
  15. package/dist/src/http/payload-redaction.js.map +1 -0
  16. package/dist/src/http/query-redaction.d.ts +31 -0
  17. package/dist/src/http/query-redaction.d.ts.map +1 -0
  18. package/dist/src/http/query-redaction.js +114 -0
  19. package/dist/src/http/query-redaction.js.map +1 -0
  20. package/dist/src/http/request-logging.d.ts +10 -0
  21. package/dist/src/http/request-logging.d.ts.map +1 -1
  22. package/dist/src/http/request-logging.js +15 -8
  23. package/dist/src/http/request-logging.js.map +1 -1
  24. package/dist/src/index.js +1 -1
  25. package/dist/src/telemetry/otel/index.d.ts +8 -0
  26. package/dist/src/telemetry/otel/index.d.ts.map +1 -1
  27. package/dist/src/telemetry/otel/index.js +13 -3
  28. package/dist/src/telemetry/otel/index.js.map +1 -1
  29. package/dist/src/telemetry/otel/query-redaction.d.ts +17 -0
  30. package/dist/src/telemetry/otel/query-redaction.d.ts.map +1 -0
  31. package/dist/src/telemetry/otel/query-redaction.js +57 -0
  32. package/dist/src/telemetry/otel/query-redaction.js.map +1 -0
  33. package/docs/content/http.md +23 -1
  34. package/docs/content/telemetry.md +3 -0
  35. package/package.json +3 -3
  36. package/template-app/package.json.tmpl +1 -1
@@ -604,7 +604,7 @@ Examples:
604
604
  }
605
605
  this.signalHandlers = undefined;
606
606
  }
607
- static __tsfType = _AppMetadata_1 = _a.decodeCompactMetadataV2("[2,{\"kind\":16,\"name\":\"App\",\"typeName\":\"App\",\"classType\":{\"$tsf\":0},\"properties\":[{\"name\":\"container\",\"type\":{\"$tsfNode\":0},\"optional\":false},{\"name\":\"events\",\"type\":{\"kind\":16,\"typeName\":\"EventBus\",\"classType\":{\"$tsfImport\":[1,\"../events/index\",\"EventBus\"]}},\"optional\":false},{\"name\":\"config\",\"type\":{\"$tsfType\":0},\"optional\":false},{\"name\":\"router\",\"type\":{\"kind\":16,\"typeName\":\"HttpRouter\",\"classType\":{\"$tsfImport\":[1,\"../http/index\",\"HttpRouter\"]}},\"optional\":false},{\"name\":\"http\",\"type\":{\"kind\":16,\"typeName\":\"HttpServerRuntime\",\"classType\":{\"$tsfImport\":[1,\"../http/index\",\"HttpServerRuntime\"]},\"typeArguments\":[{\"kind\":2,\"typeName\":\"C\"}]},\"optional\":false}],\"methods\":[{\"name\":\"get\",\"parameters\":[{\"name\":\"token\",\"type\":{\"$tsfType\":1},\"optional\":false,\"default\":false}],\"returnType\":{\"$tsfType\":2}},{\"name\":\"getInjectorContext\",\"parameters\":[],\"returnType\":{\"$tsfNode\":0}},{\"name\":\"on\",\"parameters\":[{\"name\":\"token\",\"type\":{\"kind\":16,\"typeName\":\"EventToken\",\"classType\":{\"$tsfImport\":[1,\"../events/index\",\"EventToken\"]},\"typeArguments\":[{\"kind\":16,\"typeName\":\"TEvent\",\"classType\":{\"$tsf\":2}}]},\"optional\":false,\"default\":false},{\"name\":\"handler\",\"type\":{\"$tsfType\":3},\"optional\":false,\"default\":false},{\"name\":\"order\",\"type\":{\"$tsfType\":4},\"optional\":true,\"default\":true}],\"returnType\":{\"$tsfType\":5}},{\"name\":\"registerCleanup\",\"parameters\":[{\"name\":\"cleanup\",\"type\":{\"$tsfType\":6},\"optional\":false,\"default\":false}],\"returnType\":{\"$tsfType\":5},\"description\":\"Register cleanup for a resource acquired by this application.\"},{\"name\":\"registerShutdownDrain\",\"parameters\":[{\"name\":\"drain\",\"type\":{\"$tsfType\":6},\"optional\":false,\"default\":false}],\"returnType\":{\"$tsfType\":5},\"description\":\"Register work that must finish before registered application cleanups run.\"},{\"name\":\"start\",\"parameters\":[],\"returnType\":{\"$tsfType\":7}},{\"name\":\"stop\",\"parameters\":[],\"returnType\":{\"$tsfType\":7}},{\"name\":\"run\",\"parameters\":[{\"name\":\"port\",\"type\":{\"$tsfType\":8},\"optional\":true,\"default\":false},{\"name\":\"host\",\"type\":{\"$tsfType\":9},\"optional\":true,\"default\":false}],\"returnType\":{\"$tsfType\":7}},{\"name\":\"configureForCliService\",\"parameters\":[],\"returnType\":{\"$tsfType\":10}},{\"name\":\"configureForRepl\",\"parameters\":[],\"returnType\":{\"$tsfType\":10}},{\"name\":\"request\",\"parameters\":[{\"name\":\"request\",\"type\":{\"kind\":16,\"typeName\":\"HttpRequest\",\"classType\":{\"$tsfImport\":[1,\"../http/index\",\"HttpRequest\"]}},\"optional\":false,\"default\":false},{\"name\":\"response\",\"type\":{\"$tsfNode\":1},\"optional\":true,\"default\":true}],\"returnType\":{\"kind\":22,\"type\":{\"$tsfNode\":1}}}],\"hasConstructor\":true,\"constructorParameters\":[{\"name\":\"options\",\"type\":{\"kind\":18,\"typeName\":\"CreateAppOptions\",\"types\":[{\"$tsfNode\":2},{\"$tsfNode\":3},{\"kind\":20,\"name\":\"imports\",\"type\":{\"kind\":12,\"types\":[{\"kind\":14,\"type\":{\"kind\":12,\"types\":[{\"kind\":18,\"typeName\":\"ModuleDefinition\",\"types\":[{\"$tsfNode\":2},{\"$tsfNode\":3},{\"kind\":20,\"name\":\"imports\",\"type\":{\"kind\":12,\"types\":[{\"kind\":14,\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"ModuleDefinition\"},{\"kind\":2,\"typeName\":\"ClassType\"},{\"kind\":18,\"typeName\":\"ModuleInstance\",\"types\":[{\"kind\":20,\"name\":\"definition\",\"type\":{\"kind\":2,\"typeName\":\"ModuleDefinition\"},\"optional\":false}]}],\"typeName\":\"ModuleLike\"}},{\"kind\":4}]},\"optional\":true},{\"$tsfNode\":4},{\"$tsfNode\":5},{\"$tsfNode\":6},{\"$tsfNode\":7},{\"$tsfNode\":8}],\"typeParameters\":[\"C\"]},{\"kind\":2,\"typeName\":\"ClassType\"},{\"kind\":18,\"typeName\":\"ModuleInstance\",\"types\":[{\"kind\":20,\"name\":\"definition\",\"type\":{\"kind\":18,\"typeName\":\"ModuleDefinition\",\"types\":[{\"$tsfNode\":2},{\"$tsfNode\":3},{\"kind\":20,\"name\":\"imports\",\"type\":{\"kind\":12,\"types\":[{\"kind\":14,\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"ModuleDefinition\"},{\"kind\":2,\"typeName\":\"ClassType\"},{\"kind\":2,\"typeName\":\"ModuleInstance\"}],\"typeName\":\"ModuleLike\"}},{\"kind\":4}]},\"optional\":true},{\"$tsfNode\":4},{\"$tsfNode\":5},{\"$tsfNode\":6},{\"$tsfNode\":7},{\"$tsfNode\":8}],\"typeParameters\":[\"C\"]},\"optional\":false}]}],\"typeName\":\"ModuleLike\"}},{\"kind\":4}]},\"optional\":true},{\"$tsfNode\":4},{\"$tsfNode\":5},{\"$tsfNode\":6},{\"$tsfNode\":7},{\"$tsfNode\":8},{\"$tsfNode\":2},{\"$tsfNode\":3},{\"kind\":20,\"name\":\"envPassthrough\",\"type\":{\"kind\":12,\"types\":[{\"kind\":14,\"type\":{\"$tsfNode\":9}},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"db\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"ClassType\"},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"frameworkConfig\",\"type\":{\"$tsfNode\":10},\"optional\":true},{\"kind\":20,\"name\":\"serverConfig\",\"type\":{\"$tsfNode\":10},\"optional\":true},{\"kind\":20,\"name\":\"cors\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"HttpCorsConfig\",\"typeArguments\":[{\"kind\":2,\"typeName\":\"C\"}]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"staticFiles\",\"type\":{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"kind\":8},{\"kind\":18,\"typeName\":\"StaticFilesOptions\",\"types\":[{\"kind\":20,\"name\":\"directory\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"index\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"spaFallback\",\"type\":{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":10,\"literal\":false}]},{\"kind\":4}]},\"optional\":true}]}]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"requestLogging\",\"type\":{\"kind\":12,\"types\":[{\"kind\":18,\"typeName\":\"HttpRequestLoggingOptions\",\"types\":[{\"kind\":20,\"name\":\"excludePaths\",\"type\":{\"kind\":12,\"types\":[{\"kind\":14,\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"$tsfNode\":9}]}},{\"kind\":4}]},\"optional\":true}]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"httpResolvers\",\"type\":{\"kind\":12,\"types\":[{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":2,\"typeName\":\"RouteParameterResolverInput\"}],\"index\":{\"kind\":2,\"typeName\":\"RouteParameterResolverInput\"},\"types\":[],\"typeName\":\"RouteParameterResolverRegistry\"},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"fallbackController\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"new (...args: any[]) =\\u003e HttpFallbackController\",\"typeName\":\"ClassType\"},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"enableHealthcheck\",\"type\":{\"kind\":12,\"types\":[{\"kind\":8},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"enableWorker\",\"type\":{\"kind\":12,\"types\":[{\"kind\":8},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"enableDkRpc\",\"type\":{\"kind\":12,\"types\":[{\"kind\":8},{\"kind\":4}]},\"optional\":true}]},\"optional\":false,\"default\":false}]},[{\"kind\":16,\"typeName\":\"Container\",\"classType\":{\"$tsfImport\":[1,\"../di/index\",\"Container\"]}},{\"kind\":16,\"typeName\":\"HttpResponse\",\"classType\":{\"$tsfImport\":[1,\"../http/index\",\"HttpResponse\"]}},{\"kind\":20,\"name\":\"config\",\"type\":{\"$tsfNode\":11},\"optional\":true},{\"kind\":20,\"name\":\"defaultConfig\",\"type\":{\"$tsfNode\":12},\"optional\":true},{\"kind\":20,\"name\":\"exports\",\"type\":{\"$tsfNode\":13},\"optional\":true},{\"kind\":20,\"name\":\"providers\",\"type\":{\"$tsfNode\":14},\"optional\":true},{\"kind\":20,\"name\":\"controllers\",\"type\":{\"$tsfNode\":15},\"optional\":true},{\"kind\":20,\"name\":\"listeners\",\"type\":{\"$tsfNode\":15},\"optional\":true},{\"kind\":20,\"name\":\"commands\",\"type\":{\"$tsfNode\":15},\"optional\":true},{\"kind\":16,\"typeName\":\"RegExp\",\"classType\":{\"$tsf\":3}},{\"kind\":12,\"types\":{\"$tsfNode\":16}},{\"kind\":12,\"types\":{\"$tsfNode\":17}},{\"kind\":12,\"types\":{\"$tsfNode\":18}},{\"kind\":12,\"types\":{\"$tsfNode\":19}},{\"kind\":12,\"types\":{\"$tsfNode\":20}},{\"kind\":12,\"types\":{\"$tsfNode\":21}},[{\"$tsfNode\":22},{\"kind\":4}],[{\"$tsfNode\":23},{\"kind\":4}],[{\"$tsfNode\":24},{\"kind\":4}],[{\"kind\":14,\"type\":{\"kind\":2,\"typeName\":\"Token\"}},{\"kind\":4}],[{\"kind\":14,\"type\":{\"kind\":2,\"typeName\":\"Provider\"}},{\"kind\":4}],[{\"kind\":14,\"type\":{\"kind\":2,\"typeName\":\"ClassType\"}},{\"kind\":4}],{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":2}],\"index\":{\"kind\":2},\"types\":[]},{\"kind\":2,\"typeName\":\"new (...args: any[]) =\\u003e C\",\"typeName\":\"ClassType\"},{\"kind\":18,\"typeName\":\"Partial\",\"utilityType\":\"Partial\",\"typeArguments\":[{\"kind\":2,\"typeName\":\"C\"}],\"utilityKeys\":[],\"types\":[]}]]", [() => App, require, () => (typeof TEvent !== "undefined" ? TEvent : (typeof exports !== "undefined" ? exports.TEvent : undefined)), () => (typeof RegExp !== "undefined" ? RegExp : (typeof exports !== "undefined" ? exports.RegExp : undefined))], __tsf_metadata_type);
607
+ static __tsfType = _AppMetadata_1 = _a.decodeCompactMetadataV2("[2,{\"kind\":16,\"name\":\"App\",\"typeName\":\"App\",\"classType\":{\"$tsf\":0},\"properties\":[{\"name\":\"container\",\"type\":{\"$tsfNode\":0},\"optional\":false},{\"name\":\"events\",\"type\":{\"kind\":16,\"typeName\":\"EventBus\",\"classType\":{\"$tsfImport\":[1,\"../events/index\",\"EventBus\"]}},\"optional\":false},{\"name\":\"config\",\"type\":{\"$tsfType\":0},\"optional\":false},{\"name\":\"router\",\"type\":{\"kind\":16,\"typeName\":\"HttpRouter\",\"classType\":{\"$tsfImport\":[1,\"../http/index\",\"HttpRouter\"]}},\"optional\":false},{\"name\":\"http\",\"type\":{\"kind\":16,\"typeName\":\"HttpServerRuntime\",\"classType\":{\"$tsfImport\":[1,\"../http/index\",\"HttpServerRuntime\"]},\"typeArguments\":[{\"kind\":2,\"typeName\":\"C\"}]},\"optional\":false}],\"methods\":[{\"name\":\"get\",\"parameters\":[{\"name\":\"token\",\"type\":{\"$tsfType\":1},\"optional\":false,\"default\":false}],\"returnType\":{\"$tsfType\":2}},{\"name\":\"getInjectorContext\",\"parameters\":[],\"returnType\":{\"$tsfNode\":0}},{\"name\":\"on\",\"parameters\":[{\"name\":\"token\",\"type\":{\"kind\":16,\"typeName\":\"EventToken\",\"classType\":{\"$tsfImport\":[1,\"../events/index\",\"EventToken\"]},\"typeArguments\":[{\"kind\":16,\"typeName\":\"TEvent\",\"classType\":{\"$tsf\":2}}]},\"optional\":false,\"default\":false},{\"name\":\"handler\",\"type\":{\"$tsfType\":3},\"optional\":false,\"default\":false},{\"name\":\"order\",\"type\":{\"$tsfType\":4},\"optional\":true,\"default\":true}],\"returnType\":{\"$tsfType\":5}},{\"name\":\"registerCleanup\",\"parameters\":[{\"name\":\"cleanup\",\"type\":{\"$tsfType\":6},\"optional\":false,\"default\":false}],\"returnType\":{\"$tsfType\":5},\"description\":\"Register cleanup for a resource acquired by this application.\"},{\"name\":\"registerShutdownDrain\",\"parameters\":[{\"name\":\"drain\",\"type\":{\"$tsfType\":6},\"optional\":false,\"default\":false}],\"returnType\":{\"$tsfType\":5},\"description\":\"Register work that must finish before registered application cleanups run.\"},{\"name\":\"start\",\"parameters\":[],\"returnType\":{\"$tsfType\":7}},{\"name\":\"stop\",\"parameters\":[],\"returnType\":{\"$tsfType\":7}},{\"name\":\"run\",\"parameters\":[{\"name\":\"port\",\"type\":{\"$tsfType\":8},\"optional\":true,\"default\":false},{\"name\":\"host\",\"type\":{\"$tsfType\":9},\"optional\":true,\"default\":false}],\"returnType\":{\"$tsfType\":7}},{\"name\":\"configureForCliService\",\"parameters\":[],\"returnType\":{\"$tsfType\":10}},{\"name\":\"configureForRepl\",\"parameters\":[],\"returnType\":{\"$tsfType\":10}},{\"name\":\"request\",\"parameters\":[{\"name\":\"request\",\"type\":{\"kind\":16,\"typeName\":\"HttpRequest\",\"classType\":{\"$tsfImport\":[1,\"../http/index\",\"HttpRequest\"]}},\"optional\":false,\"default\":false},{\"name\":\"response\",\"type\":{\"$tsfNode\":1},\"optional\":true,\"default\":true}],\"returnType\":{\"kind\":22,\"type\":{\"$tsfNode\":1}}}],\"hasConstructor\":true,\"constructorParameters\":[{\"name\":\"options\",\"type\":{\"kind\":18,\"typeName\":\"CreateAppOptions\",\"types\":[{\"$tsfNode\":2},{\"$tsfNode\":3},{\"kind\":20,\"name\":\"imports\",\"type\":{\"kind\":12,\"types\":[{\"kind\":14,\"type\":{\"kind\":12,\"types\":[{\"kind\":18,\"typeName\":\"ModuleDefinition\",\"types\":[{\"$tsfNode\":2},{\"$tsfNode\":3},{\"kind\":20,\"name\":\"imports\",\"type\":{\"kind\":12,\"types\":[{\"kind\":14,\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"ModuleDefinition\"},{\"kind\":2,\"typeName\":\"ClassType\"},{\"kind\":18,\"typeName\":\"ModuleInstance\",\"types\":[{\"kind\":20,\"name\":\"definition\",\"type\":{\"kind\":2,\"typeName\":\"ModuleDefinition\"},\"optional\":false}]}],\"typeName\":\"ModuleLike\"}},{\"kind\":4}]},\"optional\":true},{\"$tsfNode\":4},{\"$tsfNode\":5},{\"$tsfNode\":6},{\"$tsfNode\":7},{\"$tsfNode\":8}],\"typeParameters\":[\"C\"]},{\"kind\":2,\"typeName\":\"ClassType\"},{\"kind\":18,\"typeName\":\"ModuleInstance\",\"types\":[{\"kind\":20,\"name\":\"definition\",\"type\":{\"kind\":18,\"typeName\":\"ModuleDefinition\",\"types\":[{\"$tsfNode\":2},{\"$tsfNode\":3},{\"kind\":20,\"name\":\"imports\",\"type\":{\"kind\":12,\"types\":[{\"kind\":14,\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"ModuleDefinition\"},{\"kind\":2,\"typeName\":\"ClassType\"},{\"kind\":2,\"typeName\":\"ModuleInstance\"}],\"typeName\":\"ModuleLike\"}},{\"kind\":4}]},\"optional\":true},{\"$tsfNode\":4},{\"$tsfNode\":5},{\"$tsfNode\":6},{\"$tsfNode\":7},{\"$tsfNode\":8}],\"typeParameters\":[\"C\"]},\"optional\":false}]}],\"typeName\":\"ModuleLike\"}},{\"kind\":4}]},\"optional\":true},{\"$tsfNode\":4},{\"$tsfNode\":5},{\"$tsfNode\":6},{\"$tsfNode\":7},{\"$tsfNode\":8},{\"$tsfNode\":2},{\"$tsfNode\":3},{\"kind\":20,\"name\":\"envPassthrough\",\"type\":{\"kind\":12,\"types\":[{\"kind\":14,\"type\":{\"$tsfNode\":9}},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"db\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"ClassType\"},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"frameworkConfig\",\"type\":{\"$tsfNode\":10},\"optional\":true},{\"kind\":20,\"name\":\"serverConfig\",\"type\":{\"$tsfNode\":10},\"optional\":true},{\"kind\":20,\"name\":\"cors\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"HttpCorsConfig\",\"typeArguments\":[{\"kind\":2,\"typeName\":\"C\"}]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"staticFiles\",\"type\":{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"kind\":8},{\"kind\":18,\"typeName\":\"StaticFilesOptions\",\"types\":[{\"kind\":20,\"name\":\"directory\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"index\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"spaFallback\",\"type\":{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":10,\"literal\":false}]},{\"kind\":4}]},\"optional\":true}]}]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"requestLogging\",\"type\":{\"kind\":12,\"types\":[{\"kind\":18,\"typeName\":\"HttpRequestLoggingOptions\",\"types\":[{\"kind\":20,\"name\":\"excludePaths\",\"type\":{\"kind\":12,\"types\":[{\"kind\":14,\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"$tsfNode\":9}]}},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"redactQueryKeys\",\"type\":{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"kind\":8},{\"kind\":14,\"type\":{\"kind\":6}}],\"typeName\":\"RedactQueryKeys\"},{\"kind\":4}]},\"optional\":true}]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"httpResolvers\",\"type\":{\"kind\":12,\"types\":[{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":2,\"typeName\":\"RouteParameterResolverInput\"}],\"index\":{\"kind\":2,\"typeName\":\"RouteParameterResolverInput\"},\"types\":[],\"typeName\":\"RouteParameterResolverRegistry\"},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"fallbackController\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"new (...args: any[]) =\\u003e HttpFallbackController\",\"typeName\":\"ClassType\"},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"enableHealthcheck\",\"type\":{\"kind\":12,\"types\":[{\"kind\":8},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"enableWorker\",\"type\":{\"kind\":12,\"types\":[{\"kind\":8},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"enableDkRpc\",\"type\":{\"kind\":12,\"types\":[{\"kind\":8},{\"kind\":4}]},\"optional\":true}]},\"optional\":false,\"default\":false}]},[{\"kind\":16,\"typeName\":\"Container\",\"classType\":{\"$tsfImport\":[1,\"../di/index\",\"Container\"]}},{\"kind\":16,\"typeName\":\"HttpResponse\",\"classType\":{\"$tsfImport\":[1,\"../http/index\",\"HttpResponse\"]}},{\"kind\":20,\"name\":\"config\",\"type\":{\"$tsfNode\":11},\"optional\":true},{\"kind\":20,\"name\":\"defaultConfig\",\"type\":{\"$tsfNode\":12},\"optional\":true},{\"kind\":20,\"name\":\"exports\",\"type\":{\"$tsfNode\":13},\"optional\":true},{\"kind\":20,\"name\":\"providers\",\"type\":{\"$tsfNode\":14},\"optional\":true},{\"kind\":20,\"name\":\"controllers\",\"type\":{\"$tsfNode\":15},\"optional\":true},{\"kind\":20,\"name\":\"listeners\",\"type\":{\"$tsfNode\":15},\"optional\":true},{\"kind\":20,\"name\":\"commands\",\"type\":{\"$tsfNode\":15},\"optional\":true},{\"kind\":16,\"typeName\":\"RegExp\",\"classType\":{\"$tsf\":3}},{\"kind\":12,\"types\":{\"$tsfNode\":16}},{\"kind\":12,\"types\":{\"$tsfNode\":17}},{\"kind\":12,\"types\":{\"$tsfNode\":18}},{\"kind\":12,\"types\":{\"$tsfNode\":19}},{\"kind\":12,\"types\":{\"$tsfNode\":20}},{\"kind\":12,\"types\":{\"$tsfNode\":21}},[{\"$tsfNode\":22},{\"kind\":4}],[{\"$tsfNode\":23},{\"kind\":4}],[{\"$tsfNode\":24},{\"kind\":4}],[{\"kind\":14,\"type\":{\"kind\":2,\"typeName\":\"Token\"}},{\"kind\":4}],[{\"kind\":14,\"type\":{\"kind\":2,\"typeName\":\"Provider\"}},{\"kind\":4}],[{\"kind\":14,\"type\":{\"kind\":2,\"typeName\":\"ClassType\"}},{\"kind\":4}],{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":2}],\"index\":{\"kind\":2},\"types\":[]},{\"kind\":2,\"typeName\":\"new (...args: any[]) =\\u003e C\",\"typeName\":\"ClassType\"},{\"kind\":18,\"typeName\":\"Partial\",\"utilityType\":\"Partial\",\"typeArguments\":[{\"kind\":2,\"typeName\":\"C\"}],\"utilityKeys\":[],\"types\":[]}]]", [() => App, require, () => (typeof TEvent !== "undefined" ? TEvent : (typeof exports !== "undefined" ? exports.TEvent : undefined)), () => (typeof RegExp !== "undefined" ? RegExp : (typeof exports !== "undefined" ? exports.RegExp : undefined))], __tsf_metadata_type);
608
608
  }
609
609
  exports.App = App;
610
610
  _AppMetadata_1.classType = App;
@@ -734,5 +734,5 @@ function assertCommandClasses(commands) {
734
734
  function getClassName(classType) {
735
735
  return typeof classType === 'function' && classType.name ? classType.name : '<anonymous>';
736
736
  }
737
- exports.__tsfTypeAliases = _a.decodeCompactMetadataV2("[2,{\"AppCleanup\":{\"kind\":2,\"typeName\":\"() =\\u003e void | Promise\\u003cvoid\\u003e\",\"typeName\":\"AppCleanup\"},\"CreateAppOptions\":{\"kind\":18,\"typeName\":\"CreateAppOptions\",\"types\":[{\"$tsfNode\":0},{\"$tsfNode\":1},{\"kind\":20,\"name\":\"imports\",\"type\":{\"kind\":12,\"types\":[{\"kind\":14,\"type\":{\"kind\":12,\"types\":[{\"kind\":18,\"typeName\":\"ModuleDefinition\",\"types\":[{\"$tsfNode\":0},{\"$tsfNode\":1},{\"kind\":20,\"name\":\"imports\",\"type\":{\"kind\":12,\"types\":[{\"kind\":14,\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"ModuleDefinition\"},{\"kind\":2,\"typeName\":\"ClassType\"},{\"kind\":18,\"typeName\":\"ModuleInstance\",\"types\":[{\"kind\":20,\"name\":\"definition\",\"type\":{\"kind\":2,\"typeName\":\"ModuleDefinition\"},\"optional\":false}]}],\"typeName\":\"ModuleLike\"}},{\"kind\":4}]},\"optional\":true},{\"$tsfNode\":2},{\"$tsfNode\":3},{\"$tsfNode\":4},{\"$tsfNode\":5},{\"$tsfNode\":6}],\"typeParameters\":[\"C\"]},{\"kind\":2,\"typeName\":\"ClassType\"},{\"kind\":18,\"typeName\":\"ModuleInstance\",\"types\":[{\"kind\":20,\"name\":\"definition\",\"type\":{\"kind\":18,\"typeName\":\"ModuleDefinition\",\"types\":[{\"$tsfNode\":0},{\"$tsfNode\":1},{\"kind\":20,\"name\":\"imports\",\"type\":{\"kind\":12,\"types\":[{\"kind\":14,\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"ModuleDefinition\"},{\"kind\":2,\"typeName\":\"ClassType\"},{\"kind\":2,\"typeName\":\"ModuleInstance\"}],\"typeName\":\"ModuleLike\"}},{\"kind\":4}]},\"optional\":true},{\"$tsfNode\":2},{\"$tsfNode\":3},{\"$tsfNode\":4},{\"$tsfNode\":5},{\"$tsfNode\":6}],\"typeParameters\":[\"C\"]},\"optional\":false}]}],\"typeName\":\"ModuleLike\"}},{\"kind\":4}]},\"optional\":true},{\"$tsfNode\":2},{\"$tsfNode\":3},{\"$tsfNode\":4},{\"$tsfNode\":5},{\"$tsfNode\":6},{\"$tsfNode\":0},{\"$tsfNode\":1},{\"kind\":20,\"name\":\"envPassthrough\",\"type\":{\"kind\":12,\"types\":[{\"kind\":14,\"type\":{\"$tsfNode\":7}},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"db\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"ClassType\"},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"frameworkConfig\",\"type\":{\"$tsfNode\":8},\"optional\":true},{\"kind\":20,\"name\":\"serverConfig\",\"type\":{\"$tsfNode\":8},\"optional\":true},{\"kind\":20,\"name\":\"cors\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"HttpCorsConfig\",\"typeArguments\":[{\"kind\":2,\"typeName\":\"C\"}]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"staticFiles\",\"type\":{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"kind\":8},{\"kind\":18,\"typeName\":\"StaticFilesOptions\",\"types\":[{\"kind\":20,\"name\":\"directory\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"index\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"spaFallback\",\"type\":{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":10,\"literal\":false}]},{\"kind\":4}]},\"optional\":true}]}]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"requestLogging\",\"type\":{\"kind\":12,\"types\":[{\"kind\":18,\"typeName\":\"HttpRequestLoggingOptions\",\"types\":[{\"kind\":20,\"name\":\"excludePaths\",\"type\":{\"kind\":12,\"types\":[{\"kind\":14,\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"$tsfNode\":7}]}},{\"kind\":4}]},\"optional\":true}]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"httpResolvers\",\"type\":{\"kind\":12,\"types\":[{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":2,\"typeName\":\"RouteParameterResolverInput\"}],\"index\":{\"kind\":2,\"typeName\":\"RouteParameterResolverInput\"},\"types\":[],\"typeName\":\"RouteParameterResolverRegistry\"},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"fallbackController\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"new (...args: any[]) =\\u003e HttpFallbackController\",\"typeName\":\"ClassType\"},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"enableHealthcheck\",\"type\":{\"kind\":12,\"types\":[{\"kind\":8},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"enableWorker\",\"type\":{\"kind\":12,\"types\":[{\"kind\":8},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"enableDkRpc\",\"type\":{\"kind\":12,\"types\":[{\"kind\":8},{\"kind\":4}]},\"optional\":true}],\"typeParameters\":[\"C\"]}},[{\"kind\":20,\"name\":\"config\",\"type\":{\"$tsfNode\":9},\"optional\":true},{\"kind\":20,\"name\":\"defaultConfig\",\"type\":{\"$tsfNode\":10},\"optional\":true},{\"kind\":20,\"name\":\"exports\",\"type\":{\"$tsfNode\":11},\"optional\":true},{\"kind\":20,\"name\":\"providers\",\"type\":{\"$tsfNode\":12},\"optional\":true},{\"kind\":20,\"name\":\"controllers\",\"type\":{\"$tsfNode\":13},\"optional\":true},{\"kind\":20,\"name\":\"listeners\",\"type\":{\"$tsfNode\":13},\"optional\":true},{\"kind\":20,\"name\":\"commands\",\"type\":{\"$tsfNode\":13},\"optional\":true},{\"kind\":16,\"typeName\":\"RegExp\",\"classType\":{\"$tsf\":0}},{\"kind\":12,\"types\":{\"$tsfNode\":14}},{\"kind\":12,\"types\":{\"$tsfNode\":15}},{\"kind\":12,\"types\":{\"$tsfNode\":16}},{\"kind\":12,\"types\":{\"$tsfNode\":17}},{\"kind\":12,\"types\":{\"$tsfNode\":18}},{\"kind\":12,\"types\":{\"$tsfNode\":19}},[{\"$tsfNode\":20},{\"kind\":4}],[{\"$tsfNode\":21},{\"kind\":4}],[{\"$tsfNode\":22},{\"kind\":4}],[{\"kind\":14,\"type\":{\"kind\":2,\"typeName\":\"Token\"}},{\"kind\":4}],[{\"kind\":14,\"type\":{\"kind\":2,\"typeName\":\"Provider\"}},{\"kind\":4}],[{\"kind\":14,\"type\":{\"kind\":2,\"typeName\":\"ClassType\"}},{\"kind\":4}],{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":2}],\"index\":{\"kind\":2},\"types\":[]},{\"kind\":2,\"typeName\":\"new (...args: any[]) =\\u003e C\",\"typeName\":\"ClassType\"},{\"kind\":18,\"typeName\":\"Partial\",\"utilityType\":\"Partial\",\"typeArguments\":[{\"kind\":2,\"typeName\":\"C\"}],\"utilityKeys\":[],\"types\":[]}]]", [() => (typeof RegExp !== "undefined" ? RegExp : (typeof exports !== "undefined" ? exports.RegExp : undefined))], __tsf_metadata_type);
737
+ exports.__tsfTypeAliases = _a.decodeCompactMetadataV2("[2,{\"AppCleanup\":{\"kind\":2,\"typeName\":\"() =\\u003e void | Promise\\u003cvoid\\u003e\",\"typeName\":\"AppCleanup\"},\"CreateAppOptions\":{\"kind\":18,\"typeName\":\"CreateAppOptions\",\"types\":[{\"$tsfNode\":0},{\"$tsfNode\":1},{\"kind\":20,\"name\":\"imports\",\"type\":{\"kind\":12,\"types\":[{\"kind\":14,\"type\":{\"kind\":12,\"types\":[{\"kind\":18,\"typeName\":\"ModuleDefinition\",\"types\":[{\"$tsfNode\":0},{\"$tsfNode\":1},{\"kind\":20,\"name\":\"imports\",\"type\":{\"kind\":12,\"types\":[{\"kind\":14,\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"ModuleDefinition\"},{\"kind\":2,\"typeName\":\"ClassType\"},{\"kind\":18,\"typeName\":\"ModuleInstance\",\"types\":[{\"kind\":20,\"name\":\"definition\",\"type\":{\"kind\":2,\"typeName\":\"ModuleDefinition\"},\"optional\":false}]}],\"typeName\":\"ModuleLike\"}},{\"kind\":4}]},\"optional\":true},{\"$tsfNode\":2},{\"$tsfNode\":3},{\"$tsfNode\":4},{\"$tsfNode\":5},{\"$tsfNode\":6}],\"typeParameters\":[\"C\"]},{\"kind\":2,\"typeName\":\"ClassType\"},{\"kind\":18,\"typeName\":\"ModuleInstance\",\"types\":[{\"kind\":20,\"name\":\"definition\",\"type\":{\"kind\":18,\"typeName\":\"ModuleDefinition\",\"types\":[{\"$tsfNode\":0},{\"$tsfNode\":1},{\"kind\":20,\"name\":\"imports\",\"type\":{\"kind\":12,\"types\":[{\"kind\":14,\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"ModuleDefinition\"},{\"kind\":2,\"typeName\":\"ClassType\"},{\"kind\":2,\"typeName\":\"ModuleInstance\"}],\"typeName\":\"ModuleLike\"}},{\"kind\":4}]},\"optional\":true},{\"$tsfNode\":2},{\"$tsfNode\":3},{\"$tsfNode\":4},{\"$tsfNode\":5},{\"$tsfNode\":6}],\"typeParameters\":[\"C\"]},\"optional\":false}]}],\"typeName\":\"ModuleLike\"}},{\"kind\":4}]},\"optional\":true},{\"$tsfNode\":2},{\"$tsfNode\":3},{\"$tsfNode\":4},{\"$tsfNode\":5},{\"$tsfNode\":6},{\"$tsfNode\":0},{\"$tsfNode\":1},{\"kind\":20,\"name\":\"envPassthrough\",\"type\":{\"kind\":12,\"types\":[{\"kind\":14,\"type\":{\"$tsfNode\":7}},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"db\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"ClassType\"},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"frameworkConfig\",\"type\":{\"$tsfNode\":8},\"optional\":true},{\"kind\":20,\"name\":\"serverConfig\",\"type\":{\"$tsfNode\":8},\"optional\":true},{\"kind\":20,\"name\":\"cors\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"HttpCorsConfig\",\"typeArguments\":[{\"kind\":2,\"typeName\":\"C\"}]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"staticFiles\",\"type\":{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"kind\":8},{\"kind\":18,\"typeName\":\"StaticFilesOptions\",\"types\":[{\"kind\":20,\"name\":\"directory\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"index\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"spaFallback\",\"type\":{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":10,\"literal\":false}]},{\"kind\":4}]},\"optional\":true}]}]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"requestLogging\",\"type\":{\"kind\":12,\"types\":[{\"kind\":18,\"typeName\":\"HttpRequestLoggingOptions\",\"types\":[{\"kind\":20,\"name\":\"excludePaths\",\"type\":{\"kind\":12,\"types\":[{\"kind\":14,\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"$tsfNode\":7}]}},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"redactQueryKeys\",\"type\":{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"kind\":8},{\"kind\":14,\"type\":{\"kind\":6}}],\"typeName\":\"RedactQueryKeys\"},{\"kind\":4}]},\"optional\":true}]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"httpResolvers\",\"type\":{\"kind\":12,\"types\":[{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":2,\"typeName\":\"RouteParameterResolverInput\"}],\"index\":{\"kind\":2,\"typeName\":\"RouteParameterResolverInput\"},\"types\":[],\"typeName\":\"RouteParameterResolverRegistry\"},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"fallbackController\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"new (...args: any[]) =\\u003e HttpFallbackController\",\"typeName\":\"ClassType\"},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"enableHealthcheck\",\"type\":{\"kind\":12,\"types\":[{\"kind\":8},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"enableWorker\",\"type\":{\"kind\":12,\"types\":[{\"kind\":8},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"enableDkRpc\",\"type\":{\"kind\":12,\"types\":[{\"kind\":8},{\"kind\":4}]},\"optional\":true}],\"typeParameters\":[\"C\"]}},[{\"kind\":20,\"name\":\"config\",\"type\":{\"$tsfNode\":9},\"optional\":true},{\"kind\":20,\"name\":\"defaultConfig\",\"type\":{\"$tsfNode\":10},\"optional\":true},{\"kind\":20,\"name\":\"exports\",\"type\":{\"$tsfNode\":11},\"optional\":true},{\"kind\":20,\"name\":\"providers\",\"type\":{\"$tsfNode\":12},\"optional\":true},{\"kind\":20,\"name\":\"controllers\",\"type\":{\"$tsfNode\":13},\"optional\":true},{\"kind\":20,\"name\":\"listeners\",\"type\":{\"$tsfNode\":13},\"optional\":true},{\"kind\":20,\"name\":\"commands\",\"type\":{\"$tsfNode\":13},\"optional\":true},{\"kind\":16,\"typeName\":\"RegExp\",\"classType\":{\"$tsf\":0}},{\"kind\":12,\"types\":{\"$tsfNode\":14}},{\"kind\":12,\"types\":{\"$tsfNode\":15}},{\"kind\":12,\"types\":{\"$tsfNode\":16}},{\"kind\":12,\"types\":{\"$tsfNode\":17}},{\"kind\":12,\"types\":{\"$tsfNode\":18}},{\"kind\":12,\"types\":{\"$tsfNode\":19}},[{\"$tsfNode\":20},{\"kind\":4}],[{\"$tsfNode\":21},{\"kind\":4}],[{\"$tsfNode\":22},{\"kind\":4}],[{\"kind\":14,\"type\":{\"kind\":2,\"typeName\":\"Token\"}},{\"kind\":4}],[{\"kind\":14,\"type\":{\"kind\":2,\"typeName\":\"Provider\"}},{\"kind\":4}],[{\"kind\":14,\"type\":{\"kind\":2,\"typeName\":\"ClassType\"}},{\"kind\":4}],{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":2}],\"index\":{\"kind\":2},\"types\":[]},{\"kind\":2,\"typeName\":\"new (...args: any[]) =\\u003e C\",\"typeName\":\"ClassType\"},{\"kind\":18,\"typeName\":\"Partial\",\"utilityType\":\"Partial\",\"typeArguments\":[{\"kind\":2,\"typeName\":\"C\"}],\"utilityKeys\":[],\"types\":[]}]]", [() => (typeof RegExp !== "undefined" ? RegExp : (typeof exports !== "undefined" ? exports.RegExp : undefined))], __tsf_metadata_type);
738
738
  //# sourceMappingURL=base.js.map
@@ -9,7 +9,7 @@ const sql_1 = require("./sql");
9
9
  const entity_1 = require("./entity");
10
10
  const metadata_1 = require("./metadata");
11
11
  const values_1 = require("./values");
12
- const __tsf_metadata_type = _a.createCompactMetadataRegistryV2("[2,[{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"$tsfNode\":0}],\"index\":{\"$tsfNode\":0},\"types\":[],\"typeName\":\"FilterRecord\"},{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"keyof T\"},{\"kind\":6}]},{\"$tsfNode\":0},{\"kind\":14,\"type\":{\"kind\":6}},{\"kind\":6},{\"$tsfNode\":1},{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"$tsfNode\":1}],\"index\":{\"$tsfNode\":1},\"types\":[]}]},{\"kind\":7},{\"kind\":22,\"type\":{\"kind\":14,\"type\":{\"kind\":2,\"typeName\":\"T\"}}},{\"kind\":2,\"typeName\":\"K\"},{\"kind\":22,\"type\":{\"kind\":14,\"type\":{\"kind\":2,\"typeName\":\"T[K]\"}}},{\"kind\":22,\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"T[K]\"},{\"kind\":4}]}},{\"kind\":22,\"type\":{\"kind\":2,\"typeName\":\"T[K]\"}},{\"kind\":22,\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"T\"},{\"kind\":4}]}},{\"kind\":22,\"type\":{\"kind\":2,\"typeName\":\"T\"}},{\"kind\":22,\"type\":{\"kind\":8}},{\"kind\":22,\"type\":{\"kind\":7}},{\"kind\":18,\"typeName\":\"PatchRecord\\u003cT\\u003e\",\"index\":{\"kind\":1},\"types\":[]},{\"kind\":22,\"type\":{\"kind\":18,\"typeName\":\"QueryMutationResult\",\"types\":[{\"kind\":20,\"name\":\"affectedRows\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"modified\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"primaryKeys\",\"type\":{\"kind\":14,\"type\":{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":2}],\"index\":{\"kind\":2},\"types\":[]}},\"optional\":false}]}},{\"kind\":18,\"typeName\":\"SqlQuery\",\"types\":[{\"kind\":20,\"name\":\"kind\",\"type\":{\"kind\":10,\"literal\":\"sql\"},\"optional\":false},{\"kind\":20,\"name\":\"chunks\",\"type\":{\"kind\":14,\"type\":{\"kind\":6}},\"optional\":false},{\"kind\":20,\"name\":\"values\",\"type\":{\"kind\":14,\"type\":{\"kind\":2,\"typeName\":\"SqlValue\"}},\"optional\":false}]},{\"kind\":2,\"typeName\":\"EntityClass\",\"typeArguments\":[{\"kind\":2,\"typeName\":\"T\"}]}],[{\"kind\":12,\"types\":{\"$tsfNode\":2},\"typeName\":\"FilterValue\"},{\"kind\":12,\"types\":{\"$tsfNode\":3},\"typeName\":\"DirectionInput\"},[{\"kind\":2},{\"$tsfNode\":4}],[{\"$tsfNode\":5},{\"kind\":10,\"literal\":\"ASC\"},{\"kind\":10,\"literal\":\"DESC\"},{\"kind\":10,\"literal\":1},{\"kind\":10,\"literal\":-1}],{\"kind\":18,\"types\":{\"$tsfNode\":6}},{\"kind\":12,\"types\":[{\"kind\":10,\"literal\":\"asc\"},{\"kind\":10,\"literal\":\"desc\"}],\"typeName\":\"Direction\"},[{\"$tsfNode\":7},{\"$tsfNode\":8},{\"$tsfNode\":9},{\"$tsfNode\":10},{\"$tsfNode\":11},{\"$tsfNode\":12},{\"$tsfNode\":13},{\"$tsfNode\":14},{\"$tsfNode\":15}],{\"kind\":20,\"name\":\"$in\",\"type\":{\"$tsfNode\":16},\"optional\":true},{\"kind\":20,\"name\":\"$nin\",\"type\":{\"$tsfNode\":16},\"optional\":true},{\"kind\":20,\"name\":\"$ne\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"$gt\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"$gte\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"$lt\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"$lte\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"$like\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"$notLike\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2},{\"kind\":4}]},\"optional\":true},{\"kind\":12,\"types\":[{\"kind\":14,\"type\":{\"kind\":2}},{\"kind\":4}]}]]", []);
12
+ const __tsf_metadata_type = _a.createCompactMetadataRegistryV2("[2,[{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"$tsfNode\":0}],\"index\":{\"$tsfNode\":0},\"types\":[],\"typeName\":\"FilterRecord\"},{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"keyof T\"},{\"kind\":6}]},{\"kind\":1,\"typeName\":\"FilterValue\"},{\"kind\":14,\"type\":{\"kind\":6}},{\"kind\":6},{\"$tsfNode\":1},{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"$tsfNode\":1}],\"index\":{\"$tsfNode\":1},\"types\":[]}]},{\"kind\":7},{\"kind\":22,\"type\":{\"kind\":14,\"type\":{\"kind\":2,\"typeName\":\"T\"}}},{\"kind\":2,\"typeName\":\"K\"},{\"kind\":22,\"type\":{\"kind\":14,\"type\":{\"kind\":2,\"typeName\":\"T[K]\"}}},{\"kind\":22,\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"T[K]\"},{\"kind\":4}]}},{\"kind\":22,\"type\":{\"kind\":2,\"typeName\":\"T[K]\"}},{\"kind\":22,\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"T\"},{\"kind\":4}]}},{\"kind\":22,\"type\":{\"kind\":2,\"typeName\":\"T\"}},{\"kind\":22,\"type\":{\"kind\":8}},{\"kind\":22,\"type\":{\"kind\":7}},{\"kind\":18,\"typeName\":\"PatchRecord\\u003cT\\u003e\",\"index\":{\"kind\":1},\"types\":[]},{\"kind\":22,\"type\":{\"kind\":18,\"typeName\":\"QueryMutationResult\",\"types\":[{\"kind\":20,\"name\":\"affectedRows\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"modified\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"primaryKeys\",\"type\":{\"kind\":14,\"type\":{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":2}],\"index\":{\"kind\":2},\"types\":[]}},\"optional\":false}]}},{\"kind\":18,\"typeName\":\"SqlQuery\",\"types\":[{\"kind\":20,\"name\":\"kind\",\"type\":{\"kind\":10,\"literal\":\"sql\"},\"optional\":false},{\"kind\":20,\"name\":\"chunks\",\"type\":{\"kind\":14,\"type\":{\"kind\":6}},\"optional\":false},{\"kind\":20,\"name\":\"values\",\"type\":{\"kind\":14,\"type\":{\"kind\":2,\"typeName\":\"SqlValue\"}},\"optional\":false}]},{\"kind\":2,\"typeName\":\"EntityClass\",\"typeArguments\":[{\"kind\":2,\"typeName\":\"T\"}]}],[{\"kind\":12,\"types\":{\"$tsfNode\":2},\"typeName\":\"FilterValue\"},{\"kind\":12,\"types\":{\"$tsfNode\":3},\"typeName\":\"DirectionInput\"},[{\"kind\":2},{\"$tsfNode\":4}],[{\"$tsfNode\":5},{\"kind\":10,\"literal\":\"ASC\"},{\"kind\":10,\"literal\":\"DESC\"},{\"kind\":10,\"literal\":1},{\"kind\":10,\"literal\":-1}],{\"kind\":18,\"types\":{\"$tsfNode\":6}},{\"kind\":12,\"types\":[{\"kind\":10,\"literal\":\"asc\"},{\"kind\":10,\"literal\":\"desc\"}],\"typeName\":\"Direction\"},[{\"$tsfNode\":7},{\"$tsfNode\":8},{\"$tsfNode\":9},{\"$tsfNode\":10},{\"$tsfNode\":11},{\"$tsfNode\":12},{\"$tsfNode\":13},{\"$tsfNode\":14},{\"$tsfNode\":15}],{\"kind\":20,\"name\":\"$in\",\"type\":{\"$tsfNode\":16},\"optional\":true},{\"kind\":20,\"name\":\"$nin\",\"type\":{\"$tsfNode\":16},\"optional\":true},{\"kind\":20,\"name\":\"$ne\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"$gt\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"$gte\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"$lt\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"$lte\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"$like\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"$notLike\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2},{\"kind\":4}]},\"optional\":true},{\"kind\":12,\"types\":[{\"kind\":14,\"type\":{\"kind\":2}},{\"kind\":4}]}]]", []);
13
13
  const MYSQL_OFFSET_ONLY_LIMIT = '18446744073709551615';
14
14
  let _QueryBuilderMetadata_1;
15
15
  class QueryBuilder {
@@ -242,7 +242,7 @@ class HttpServerRuntime {
242
242
  }
243
243
  });
244
244
  }
245
- static __tsfType = _HttpServerRuntimeMetadata_1 = _a.decodeCompactMetadataV2("[2,{\"kind\":16,\"name\":\"HttpServerRuntime\",\"typeName\":\"HttpServerRuntime\",\"classType\":{\"$tsf\":0},\"properties\":[],\"methods\":[{\"name\":\"request\",\"parameters\":[{\"name\":\"request\",\"type\":{\"kind\":16,\"typeName\":\"HttpRequest\",\"classType\":{\"$tsfImport\":[1,\"./request\",\"HttpRequest\"]}},\"optional\":false,\"default\":false},{\"name\":\"response\",\"type\":{\"$tsfNode\":0},\"optional\":true,\"default\":true}],\"returnType\":{\"kind\":22,\"type\":{\"$tsfNode\":0}}},{\"name\":\"listen\",\"parameters\":[{\"name\":\"port\",\"type\":{\"$tsfType\":0},\"optional\":true,\"default\":false},{\"name\":\"host\",\"type\":{\"$tsfType\":1},\"optional\":true,\"default\":false},{\"name\":\"hooks\",\"type\":{\"$tsfType\":2},\"optional\":true,\"default\":true}],\"returnType\":{\"kind\":22,\"type\":{\"$tsfAlias\":[1,\"node:http\",\"Server\",\"Server\"]}}},{\"name\":\"registerUpgradeHandler\",\"parameters\":[{\"name\":\"handler\",\"type\":{\"$tsfType\":3},\"optional\":false,\"default\":false}],\"returnType\":{\"$tsfType\":4}},{\"name\":\"registerObserver\",\"parameters\":[{\"name\":\"observer\",\"type\":{\"$tsfType\":5},\"optional\":false,\"default\":false},{\"name\":\"options\",\"type\":{\"$tsfType\":6},\"optional\":true,\"default\":true}],\"returnType\":{\"$tsfType\":4}},{\"name\":\"close\",\"parameters\":[],\"returnType\":{\"$tsfType\":7}},{\"name\":\"getPort\",\"parameters\":[{\"name\":\"explicitPort\",\"type\":{\"$tsfType\":0},\"optional\":true,\"default\":false}],\"returnType\":{\"$tsfType\":0}},{\"name\":\"getAddress\",\"parameters\":[],\"returnType\":{\"$tsfType\":8}}],\"hasConstructor\":true,\"constructorParameters\":[{\"name\":\"options\",\"type\":{\"kind\":18,\"typeName\":\"HttpServerRuntimeOptions\",\"types\":[{\"kind\":20,\"name\":\"config\",\"type\":{\"kind\":2,\"typeName\":\"C\"},\"optional\":false},{\"kind\":20,\"name\":\"router\",\"type\":{\"kind\":16,\"typeName\":\"HttpRouter\",\"classType\":{\"$tsfImport\":[1,\"./router\",\"HttpRouter\"]}},\"optional\":false},{\"kind\":20,\"name\":\"logger\",\"type\":{\"kind\":16,\"typeName\":\"ScopedLogger\",\"classType\":{\"$tsfImport\":[1,\"../services/index\",\"ScopedLogger\"]}},\"optional\":false},{\"kind\":20,\"name\":\"frameworkConfig\",\"type\":{\"$tsfNode\":1},\"optional\":true},{\"kind\":20,\"name\":\"serverConfig\",\"type\":{\"$tsfNode\":1},\"optional\":true},{\"kind\":20,\"name\":\"cors\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"HttpCorsConfig\",\"typeArguments\":[{\"kind\":2,\"typeName\":\"C\"}]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"staticFiles\",\"type\":{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"kind\":8},{\"kind\":18,\"typeName\":\"StaticFilesOptions\",\"types\":[{\"kind\":20,\"name\":\"directory\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"index\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"spaFallback\",\"type\":{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":10,\"literal\":false}]},{\"kind\":4}]},\"optional\":true}]}]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"requestLogging\",\"type\":{\"kind\":12,\"types\":[{\"kind\":18,\"typeName\":\"HttpRequestLoggingOptions\",\"types\":[{\"kind\":20,\"name\":\"excludePaths\",\"type\":{\"kind\":12,\"types\":[{\"kind\":14,\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":16,\"typeName\":\"RegExp\",\"classType\":{\"$tsf\":2}}]}},{\"kind\":4}]},\"optional\":true}]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"packageName\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"devConsoleEnabled\",\"type\":{\"kind\":12,\"types\":[{\"kind\":8},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"listenHooks\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"HttpServerListenHooks | (() =\\u003e HttpServerListenHooks)\"},{\"kind\":4}]},\"optional\":true}]},\"optional\":false,\"default\":false}]},[{\"kind\":16,\"typeName\":\"HttpResponse\",\"classType\":{\"$tsfImport\":[1,\"./response\",\"HttpResponse\"]}},{\"kind\":12,\"types\":{\"$tsfNode\":2}},[{\"$tsfNode\":3},{\"kind\":4}],{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":2}],\"index\":{\"kind\":2},\"types\":[]}]]", [() => HttpServerRuntime, require, () => (typeof RegExp !== "undefined" ? RegExp : (typeof exports !== "undefined" ? exports.RegExp : undefined))], __tsf_metadata_type);
245
+ static __tsfType = _HttpServerRuntimeMetadata_1 = _a.decodeCompactMetadataV2("[2,{\"kind\":16,\"name\":\"HttpServerRuntime\",\"typeName\":\"HttpServerRuntime\",\"classType\":{\"$tsf\":0},\"properties\":[],\"methods\":[{\"name\":\"request\",\"parameters\":[{\"name\":\"request\",\"type\":{\"kind\":16,\"typeName\":\"HttpRequest\",\"classType\":{\"$tsfImport\":[1,\"./request\",\"HttpRequest\"]}},\"optional\":false,\"default\":false},{\"name\":\"response\",\"type\":{\"$tsfNode\":0},\"optional\":true,\"default\":true}],\"returnType\":{\"kind\":22,\"type\":{\"$tsfNode\":0}}},{\"name\":\"listen\",\"parameters\":[{\"name\":\"port\",\"type\":{\"$tsfType\":0},\"optional\":true,\"default\":false},{\"name\":\"host\",\"type\":{\"$tsfType\":1},\"optional\":true,\"default\":false},{\"name\":\"hooks\",\"type\":{\"$tsfType\":2},\"optional\":true,\"default\":true}],\"returnType\":{\"kind\":22,\"type\":{\"$tsfAlias\":[1,\"node:http\",\"Server\",\"Server\"]}}},{\"name\":\"registerUpgradeHandler\",\"parameters\":[{\"name\":\"handler\",\"type\":{\"$tsfType\":3},\"optional\":false,\"default\":false}],\"returnType\":{\"$tsfType\":4}},{\"name\":\"registerObserver\",\"parameters\":[{\"name\":\"observer\",\"type\":{\"$tsfType\":5},\"optional\":false,\"default\":false},{\"name\":\"options\",\"type\":{\"$tsfType\":6},\"optional\":true,\"default\":true}],\"returnType\":{\"$tsfType\":4}},{\"name\":\"close\",\"parameters\":[],\"returnType\":{\"$tsfType\":7}},{\"name\":\"getPort\",\"parameters\":[{\"name\":\"explicitPort\",\"type\":{\"$tsfType\":0},\"optional\":true,\"default\":false}],\"returnType\":{\"$tsfType\":0}},{\"name\":\"getAddress\",\"parameters\":[],\"returnType\":{\"$tsfType\":8}}],\"hasConstructor\":true,\"constructorParameters\":[{\"name\":\"options\",\"type\":{\"kind\":18,\"typeName\":\"HttpServerRuntimeOptions\",\"types\":[{\"kind\":20,\"name\":\"config\",\"type\":{\"kind\":2,\"typeName\":\"C\"},\"optional\":false},{\"kind\":20,\"name\":\"router\",\"type\":{\"kind\":16,\"typeName\":\"HttpRouter\",\"classType\":{\"$tsfImport\":[1,\"./router\",\"HttpRouter\"]}},\"optional\":false},{\"kind\":20,\"name\":\"logger\",\"type\":{\"kind\":16,\"typeName\":\"ScopedLogger\",\"classType\":{\"$tsfImport\":[1,\"../services/index\",\"ScopedLogger\"]}},\"optional\":false},{\"kind\":20,\"name\":\"frameworkConfig\",\"type\":{\"$tsfNode\":1},\"optional\":true},{\"kind\":20,\"name\":\"serverConfig\",\"type\":{\"$tsfNode\":1},\"optional\":true},{\"kind\":20,\"name\":\"cors\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"HttpCorsConfig\",\"typeArguments\":[{\"kind\":2,\"typeName\":\"C\"}]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"staticFiles\",\"type\":{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"kind\":8},{\"kind\":18,\"typeName\":\"StaticFilesOptions\",\"types\":[{\"kind\":20,\"name\":\"directory\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"index\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"spaFallback\",\"type\":{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":10,\"literal\":false}]},{\"kind\":4}]},\"optional\":true}]}]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"requestLogging\",\"type\":{\"kind\":12,\"types\":[{\"kind\":18,\"typeName\":\"HttpRequestLoggingOptions\",\"types\":[{\"kind\":20,\"name\":\"excludePaths\",\"type\":{\"kind\":12,\"types\":[{\"kind\":14,\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":16,\"typeName\":\"RegExp\",\"classType\":{\"$tsf\":2}}]}},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"redactQueryKeys\",\"type\":{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"kind\":8},{\"kind\":14,\"type\":{\"kind\":6}}],\"typeName\":\"RedactQueryKeys\"},{\"kind\":4}]},\"optional\":true}]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"packageName\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"devConsoleEnabled\",\"type\":{\"kind\":12,\"types\":[{\"kind\":8},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"listenHooks\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"HttpServerListenHooks | (() =\\u003e HttpServerListenHooks)\"},{\"kind\":4}]},\"optional\":true}]},\"optional\":false,\"default\":false}]},[{\"kind\":16,\"typeName\":\"HttpResponse\",\"classType\":{\"$tsfImport\":[1,\"./response\",\"HttpResponse\"]}},{\"kind\":12,\"types\":{\"$tsfNode\":2}},[{\"$tsfNode\":3},{\"kind\":4}],{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":2}],\"index\":{\"kind\":2},\"types\":[]}]]", [() => HttpServerRuntime, require, () => (typeof RegExp !== "undefined" ? RegExp : (typeof exports !== "undefined" ? exports.RegExp : undefined))], __tsf_metadata_type);
246
246
  }
247
247
  exports.HttpServerRuntime = HttpServerRuntime;
248
248
  _HttpServerRuntimeMetadata_1.classType = HttpServerRuntime;
@@ -442,5 +442,5 @@ HttpTlsContextWatcher.__tsfType = _HttpTlsContextWatcherMetadata_1;
442
442
  function didTlsFileChange(current, previous) {
443
443
  return (current.ctimeMs !== previous.ctimeMs || current.ino !== previous.ino || current.mtimeMs !== previous.mtimeMs || current.size !== previous.size);
444
444
  }
445
- exports.__tsfTypeAliases = _a.decodeCompactMetadataV2("[2,{\"HttpRequestObservation\":{\"kind\":18,\"typeName\":\"HttpRequestObservation\",\"types\":[{\"kind\":20,\"name\":\"request\",\"type\":{\"kind\":16,\"typeName\":\"HttpRequest\",\"classType\":{\"$tsfImport\":[0,\"./request\",\"HttpRequest\"]}},\"optional\":false},{\"kind\":20,\"name\":\"response\",\"type\":{\"kind\":16,\"typeName\":\"HttpResponse\",\"classType\":{\"$tsfImport\":[0,\"./response\",\"HttpResponse\"]}},\"optional\":false},{\"kind\":20,\"name\":\"startedAt\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"durationMs\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"error\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2},{\"kind\":4}]},\"optional\":true}]},\"HttpRequestObserver\":{\"kind\":2,\"typeName\":\"(entry: HttpRequestObservation) =\\u003e void\",\"typeName\":\"HttpRequestObserver\"},\"HttpRequestObserverOptions\":{\"kind\":18,\"typeName\":\"HttpRequestObserverOptions\",\"types\":[{\"kind\":20,\"name\":\"captureRequestBodyBytes\",\"type\":{\"kind\":12,\"types\":[{\"kind\":7},{\"kind\":4}]},\"optional\":true}]},\"HttpServerListenHooks\":{\"$tsfNode\":0},\"HttpServerRuntimeOptions\":{\"kind\":18,\"typeName\":\"HttpServerRuntimeOptions\",\"types\":[{\"kind\":20,\"name\":\"config\",\"type\":{\"kind\":2,\"typeName\":\"C\"},\"optional\":false},{\"kind\":20,\"name\":\"router\",\"type\":{\"kind\":16,\"typeName\":\"HttpRouter\",\"classType\":{\"$tsfImport\":[0,\"./router\",\"HttpRouter\"]}},\"optional\":false},{\"kind\":20,\"name\":\"logger\",\"type\":{\"kind\":16,\"typeName\":\"ScopedLogger\",\"classType\":{\"$tsfImport\":[0,\"../services/index\",\"ScopedLogger\"]}},\"optional\":false},{\"kind\":20,\"name\":\"frameworkConfig\",\"type\":{\"$tsfNode\":1},\"optional\":true},{\"kind\":20,\"name\":\"serverConfig\",\"type\":{\"$tsfNode\":1},\"optional\":true},{\"kind\":20,\"name\":\"cors\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"HttpCorsConfig\",\"typeArguments\":[{\"kind\":2,\"typeName\":\"C\"}]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"staticFiles\",\"type\":{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"kind\":8},{\"kind\":18,\"typeName\":\"StaticFilesOptions\",\"types\":[{\"kind\":20,\"name\":\"directory\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"index\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"spaFallback\",\"type\":{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":10,\"literal\":false}]},{\"kind\":4}]},\"optional\":true}]}]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"requestLogging\",\"type\":{\"kind\":12,\"types\":[{\"kind\":18,\"typeName\":\"HttpRequestLoggingOptions\",\"types\":[{\"kind\":20,\"name\":\"excludePaths\",\"type\":{\"kind\":12,\"types\":[{\"kind\":14,\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":16,\"typeName\":\"RegExp\",\"classType\":{\"$tsf\":1}}]}},{\"kind\":4}]},\"optional\":true}]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"packageName\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"devConsoleEnabled\",\"type\":{\"kind\":12,\"types\":[{\"kind\":8},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"listenHooks\",\"type\":{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"$tsfNode\":0},{\"kind\":2,\"typeName\":\"() =\\u003e HttpServerListenHooks\"}]},{\"kind\":4}]},\"optional\":true}],\"typeParameters\":[\"C\"]}},[{\"kind\":18,\"typeName\":\"HttpServerListenHooks\",\"types\":{\"$tsfNode\":2}},{\"kind\":12,\"types\":{\"$tsfNode\":3}},[{\"$tsfNode\":4},{\"$tsfNode\":5},{\"$tsfNode\":6}],[{\"$tsfNode\":7},{\"kind\":4}],{\"kind\":20,\"name\":\"start\",\"type\":{\"$tsfNode\":8},\"optional\":true},{\"kind\":20,\"name\":\"afterListen\",\"type\":{\"$tsfNode\":9},\"optional\":true},{\"kind\":20,\"name\":\"onListenError\",\"type\":{\"$tsfNode\":10},\"optional\":true},{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":2}],\"index\":{\"kind\":2},\"types\":[]},{\"kind\":12,\"types\":{\"$tsfNode\":11}},{\"kind\":12,\"types\":{\"$tsfNode\":12}},{\"kind\":12,\"types\":{\"$tsfNode\":13}},[{\"kind\":2,\"typeName\":\"() =\\u003e Promise\\u003cvoid\\u003e\"},{\"kind\":4}],[{\"$tsfNode\":14},{\"kind\":4}],[{\"$tsfNode\":15},{\"kind\":4}],{\"kind\":2,\"typeName\":\"(server: Server) =\\u003e Promise\\u003cvoid\\u003e\"},{\"kind\":2,\"typeName\":\"(error: unknown) =\\u003e Promise\\u003cvoid\\u003e\"}]]", [require, () => (typeof RegExp !== "undefined" ? RegExp : (typeof exports !== "undefined" ? exports.RegExp : undefined))], __tsf_metadata_type);
445
+ exports.__tsfTypeAliases = _a.decodeCompactMetadataV2("[2,{\"HttpRequestObservation\":{\"kind\":18,\"typeName\":\"HttpRequestObservation\",\"types\":[{\"kind\":20,\"name\":\"request\",\"type\":{\"kind\":16,\"typeName\":\"HttpRequest\",\"classType\":{\"$tsfImport\":[0,\"./request\",\"HttpRequest\"]}},\"optional\":false},{\"kind\":20,\"name\":\"response\",\"type\":{\"kind\":16,\"typeName\":\"HttpResponse\",\"classType\":{\"$tsfImport\":[0,\"./response\",\"HttpResponse\"]}},\"optional\":false},{\"kind\":20,\"name\":\"startedAt\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"durationMs\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"error\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2},{\"kind\":4}]},\"optional\":true}]},\"HttpRequestObserver\":{\"kind\":2,\"typeName\":\"(entry: HttpRequestObservation) =\\u003e void\",\"typeName\":\"HttpRequestObserver\"},\"HttpRequestObserverOptions\":{\"kind\":18,\"typeName\":\"HttpRequestObserverOptions\",\"types\":[{\"kind\":20,\"name\":\"captureRequestBodyBytes\",\"type\":{\"kind\":12,\"types\":[{\"kind\":7},{\"kind\":4}]},\"optional\":true}]},\"HttpServerListenHooks\":{\"$tsfNode\":0},\"HttpServerRuntimeOptions\":{\"kind\":18,\"typeName\":\"HttpServerRuntimeOptions\",\"types\":[{\"kind\":20,\"name\":\"config\",\"type\":{\"kind\":2,\"typeName\":\"C\"},\"optional\":false},{\"kind\":20,\"name\":\"router\",\"type\":{\"kind\":16,\"typeName\":\"HttpRouter\",\"classType\":{\"$tsfImport\":[0,\"./router\",\"HttpRouter\"]}},\"optional\":false},{\"kind\":20,\"name\":\"logger\",\"type\":{\"kind\":16,\"typeName\":\"ScopedLogger\",\"classType\":{\"$tsfImport\":[0,\"../services/index\",\"ScopedLogger\"]}},\"optional\":false},{\"kind\":20,\"name\":\"frameworkConfig\",\"type\":{\"$tsfNode\":1},\"optional\":true},{\"kind\":20,\"name\":\"serverConfig\",\"type\":{\"$tsfNode\":1},\"optional\":true},{\"kind\":20,\"name\":\"cors\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"HttpCorsConfig\",\"typeArguments\":[{\"kind\":2,\"typeName\":\"C\"}]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"staticFiles\",\"type\":{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"kind\":8},{\"kind\":18,\"typeName\":\"StaticFilesOptions\",\"types\":[{\"kind\":20,\"name\":\"directory\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"index\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"spaFallback\",\"type\":{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":10,\"literal\":false}]},{\"kind\":4}]},\"optional\":true}]}]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"requestLogging\",\"type\":{\"kind\":12,\"types\":[{\"kind\":18,\"typeName\":\"HttpRequestLoggingOptions\",\"types\":[{\"kind\":20,\"name\":\"excludePaths\",\"type\":{\"kind\":12,\"types\":[{\"kind\":14,\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":16,\"typeName\":\"RegExp\",\"classType\":{\"$tsf\":1}}]}},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"redactQueryKeys\",\"type\":{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"kind\":8},{\"kind\":14,\"type\":{\"kind\":6}}],\"typeName\":\"RedactQueryKeys\"},{\"kind\":4}]},\"optional\":true}]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"packageName\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"devConsoleEnabled\",\"type\":{\"kind\":12,\"types\":[{\"kind\":8},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"listenHooks\",\"type\":{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"$tsfNode\":0},{\"kind\":2,\"typeName\":\"() =\\u003e HttpServerListenHooks\"}]},{\"kind\":4}]},\"optional\":true}],\"typeParameters\":[\"C\"]}},[{\"kind\":18,\"typeName\":\"HttpServerListenHooks\",\"types\":{\"$tsfNode\":2}},{\"kind\":12,\"types\":{\"$tsfNode\":3}},[{\"$tsfNode\":4},{\"$tsfNode\":5},{\"$tsfNode\":6}],[{\"$tsfNode\":7},{\"kind\":4}],{\"kind\":20,\"name\":\"start\",\"type\":{\"$tsfNode\":8},\"optional\":true},{\"kind\":20,\"name\":\"afterListen\",\"type\":{\"$tsfNode\":9},\"optional\":true},{\"kind\":20,\"name\":\"onListenError\",\"type\":{\"$tsfNode\":10},\"optional\":true},{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":2}],\"index\":{\"kind\":2},\"types\":[]},{\"kind\":12,\"types\":{\"$tsfNode\":11}},{\"kind\":12,\"types\":{\"$tsfNode\":12}},{\"kind\":12,\"types\":{\"$tsfNode\":13}},[{\"kind\":2,\"typeName\":\"() =\\u003e Promise\\u003cvoid\\u003e\"},{\"kind\":4}],[{\"$tsfNode\":14},{\"kind\":4}],[{\"$tsfNode\":15},{\"kind\":4}],{\"kind\":2,\"typeName\":\"(server: Server) =\\u003e Promise\\u003cvoid\\u003e\"},{\"kind\":2,\"typeName\":\"(error: unknown) =\\u003e Promise\\u003cvoid\\u003e\"}]]", [require, () => (typeof RegExp !== "undefined" ? RegExp : (typeof exports !== "undefined" ? exports.RegExp : undefined))], __tsf_metadata_type);
446
446
  //# sourceMappingURL=base.js.map
@@ -13,6 +13,8 @@ export * from './base';
13
13
  export * from './context';
14
14
  export * from './uploads';
15
15
  export * from './request-logging';
16
+ export * from './query-redaction';
17
+ export * from './payload-redaction';
16
18
  export * from './parameter-resolvers';
17
19
  export * from './startup-logging';
18
20
  export * from './static-files';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/http/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAE7C,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAE3B,eAAO,MAAM,UAAU;IAAK,EAAE;CAAQ,CAAC;AACvC,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC;IAAE,EAAE,EAAE,IAAI,CAAA;CAAE,CAAC,CAAC;AAC/C,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AAC7C,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AAC1C,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;AACvC,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/http/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAE7C,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAE3B,eAAO,MAAM,UAAU;IAAK,EAAE;CAAQ,CAAC;AACvC,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC;IAAE,EAAE,EAAE,IAAI,CAAA;CAAE,CAAC,CAAC;AAC/C,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AAC7C,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AAC1C,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;AACvC,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC"}
@@ -17,11 +17,13 @@ tslib_1.__exportStar(require("./base"), exports);
17
17
  tslib_1.__exportStar(require("./context"), exports);
18
18
  tslib_1.__exportStar(require("./uploads"), exports);
19
19
  tslib_1.__exportStar(require("./request-logging"), exports);
20
+ tslib_1.__exportStar(require("./query-redaction"), exports);
21
+ tslib_1.__exportStar(require("./payload-redaction"), exports);
20
22
  tslib_1.__exportStar(require("./parameter-resolvers"), exports);
21
23
  tslib_1.__exportStar(require("./startup-logging"), exports);
22
24
  tslib_1.__exportStar(require("./static-files"), exports);
23
25
  tslib_1.__exportStar(require("./upgrade"), exports);
24
26
  tslib_1.__exportStar(require("./workflow"), exports);
25
27
  exports.OkResponse = { ok: true };
26
- exports.__tsfTypeAliases = _a.decodeCompactMetadataV2("[2,{\"AnyResponse\":{\"kind\":22,\"type\":{\"kind\":1},\"typeName\":\"AnyResponse\"},\"ControllerMetadata\":{\"$tsfAlias\":[0,\"./decorators.js\",\"ControllerMetadata\",\"ControllerMetadata\"]},\"EmptyResponse\":{\"kind\":22,\"type\":{\"kind\":3},\"typeName\":\"EmptyResponse\"},\"EntityValidator\":{\"$tsfAlias\":[0,\"./auth.js\",\"EntityValidator\",\"EntityValidator\"]},\"FallbackControllerMetadata\":{\"$tsfAlias\":[0,\"./decorators.js\",\"FallbackControllerMetadata\",\"FallbackControllerMetadata\"]},\"FileUploadAllowedTypes\":{\"$tsfAlias\":[0,\"./uploads.js\",\"FileUploadAllowedTypes\",\"FileUploadAllowedTypes\"]},\"FileUploadOptions\":{\"$tsfAlias\":[0,\"./uploads.js\",\"FileUploadOptions\",\"FileUploadOptions\"]},\"FileUploadPolicy\":{\"$tsfAlias\":[0,\"./uploads.js\",\"FileUploadPolicy\",\"FileUploadPolicy\"]},\"HttpControllerWorkflowEvent\":{\"$tsfAlias\":[0,\"./workflow.js\",\"HttpControllerWorkflowEvent\",\"HttpControllerWorkflowEvent\"]},\"HttpFallbackController\":{\"$tsfAlias\":[0,\"./decorators.js\",\"HttpFallbackController\",\"HttpFallbackController\"]},\"HttpHeaderInput\":{\"$tsfAlias\":[0,\"./request.js\",\"HttpHeaderInput\",\"HttpHeaderInput\"]},\"HttpHeaderOutput\":{\"$tsfAlias\":[0,\"./response.js\",\"HttpHeaderOutput\",\"HttpHeaderOutput\"]},\"HttpMethod\":{\"$tsfAlias\":[0,\"./request.js\",\"HttpMethod\",\"HttpMethod\"]},\"HttpMiddlewareFunction\":{\"$tsfAlias\":[0,\"./middleware.js\",\"HttpMiddlewareFunction\",\"HttpMiddlewareFunction\"]},\"HttpMiddlewareInput\":{\"$tsfAlias\":[0,\"./middleware.js\",\"HttpMiddlewareInput\",\"HttpMiddlewareInput\"]},\"HttpMiddlewareResult\":{\"$tsfAlias\":[0,\"./middleware.js\",\"HttpMiddlewareResult\",\"HttpMiddlewareResult\"]},\"HttpRequestBodyCapture\":{\"$tsfAlias\":[0,\"./request.js\",\"HttpRequestBodyCapture\",\"HttpRequestBodyCapture\"]},\"HttpRequestBodyLimits\":{\"$tsfAlias\":[0,\"./request.js\",\"HttpRequestBodyLimits\",\"HttpRequestBodyLimits\"]},\"HttpRequestHeaders\":{\"$tsfAlias\":[0,\"./request.js\",\"HttpRequestHeaders\",\"HttpRequestHeaders\"]},\"HttpRequestLoggingOptions\":{\"$tsfAlias\":[0,\"./request-logging.js\",\"HttpRequestLoggingOptions\",\"HttpRequestLoggingOptions\"]},\"HttpRequestObservation\":{\"$tsfAlias\":[0,\"./base.js\",\"HttpRequestObservation\",\"HttpRequestObservation\"]},\"HttpRequestObserver\":{\"$tsfAlias\":[0,\"./base.js\",\"HttpRequestObserver\",\"HttpRequestObserver\"]},\"HttpRequestObserverOptions\":{\"$tsfAlias\":[0,\"./base.js\",\"HttpRequestObserverOptions\",\"HttpRequestObserverOptions\"]},\"HttpResponseResult\":{\"$tsfAlias\":[0,\"./response.js\",\"HttpResponseResult\",\"HttpResponseResult\"]},\"HttpResponseWorkflowEvent\":{\"$tsfAlias\":[0,\"./workflow.js\",\"HttpResponseWorkflowEvent\",\"HttpResponseWorkflowEvent\"]},\"HttpRouteNotFoundWorkflowEvent\":{\"$tsfAlias\":[0,\"./workflow.js\",\"HttpRouteNotFoundWorkflowEvent\",\"HttpRouteNotFoundWorkflowEvent\"]},\"HttpRouteParameterPlan\":{\"$tsfAlias\":[0,\"./router.js\",\"HttpRouteParameterPlan\",\"HttpRouteParameterPlan\"]},\"HttpRoutePlan\":{\"$tsfAlias\":[0,\"./router.js\",\"HttpRoutePlan\",\"HttpRoutePlan\"]},\"HttpRouteWorkflowEvent\":{\"$tsfAlias\":[0,\"./workflow.js\",\"HttpRouteWorkflowEvent\",\"HttpRouteWorkflowEvent\"]},\"HttpServerListenHooks\":{\"$tsfAlias\":[0,\"./base.js\",\"HttpServerListenHooks\",\"HttpServerListenHooks\"]},\"HttpServerRuntimeOptions\":{\"$tsfAlias\":[0,\"./base.js\",\"HttpServerRuntimeOptions\",\"HttpServerRuntimeOptions\"]},\"HttpUpgradeHandler\":{\"$tsfAlias\":[0,\"./upgrade.js\",\"HttpUpgradeHandler\",\"HttpUpgradeHandler\"]},\"HttpWorkflowEvent\":{\"$tsfAlias\":[0,\"./workflow.js\",\"HttpWorkflowEvent\",\"HttpWorkflowEvent\"]},\"HttpWriteHeadHeaders\":{\"$tsfAlias\":[0,\"./response.js\",\"HttpWriteHeadHeaders\",\"HttpWriteHeadHeaders\"]},\"InstallWebSocketUpgradeHandlerOptions\":{\"$tsfAlias\":[0,\"./upgrade.js\",\"InstallWebSocketUpgradeHandlerOptions\",\"InstallWebSocketUpgradeHandlerOptions\"]},\"KnownHttpMethod\":{\"$tsfAlias\":[0,\"./request.js\",\"KnownHttpMethod\",\"KnownHttpMethod\"]},\"MultipartRequestPart\":{\"$tsfAlias\":[0,\"./request.js\",\"MultipartRequestPart\",\"MultipartRequestPart\"]},\"MultipartRequestPolicy\":{\"$tsfAlias\":[0,\"./uploads.js\",\"MultipartRequestPolicy\",\"MultipartRequestPolicy\"]},\"OkResponse\":{\"kind\":22,\"type\":{\"kind\":18,\"types\":[{\"kind\":20,\"name\":\"ok\",\"type\":{\"kind\":10,\"literal\":true},\"optional\":false}]},\"typeName\":\"OkResponse\"},\"ParsedMultipartBody\":{\"$tsfAlias\":[0,\"./uploads.js\",\"ParsedMultipartBody\",\"ParsedMultipartBody\"]},\"RedirectResponse\":{\"kind\":22,\"type\":{\"kind\":3},\"typeName\":\"RedirectResponse\"},\"RequestBuilder\":{\"kind\":16,\"typeName\":\"HttpRequest\",\"classType\":{\"$tsfImport\":[0,\"./request\",\"HttpRequest\"]},\"typeName\":\"RequestBuilder\"},\"ResolvedStaticFilesOptions\":{\"$tsfAlias\":[0,\"./static-files.js\",\"ResolvedStaticFilesOptions\",\"ResolvedStaticFilesOptions\"]},\"RouteMetadata\":{\"$tsfAlias\":[0,\"./decorators.js\",\"RouteMetadata\",\"RouteMetadata\"]},\"RouteParameterResolver\":{\"$tsfAlias\":[0,\"./decorators.js\",\"RouteParameterResolver\",\"RouteParameterResolver\"]},\"RouteParameterResolverContext\":{\"$tsfAlias\":[0,\"./decorators.js\",\"RouteParameterResolverContext\",\"RouteParameterResolverContext\"]},\"RouteParameterResolverMetadata\":{\"$tsfAlias\":[0,\"./decorators.js\",\"RouteParameterResolverMetadata\",\"RouteParameterResolverMetadata\"]},\"RouteParameterResolverRegistry\":{\"$tsfAlias\":[0,\"./decorators.js\",\"RouteParameterResolverRegistry\",\"RouteParameterResolverRegistry\"]},\"StaticFilesOptions\":{\"$tsfAlias\":[0,\"./static-files.js\",\"StaticFilesOptions\",\"StaticFilesOptions\"]},\"UploadedFiles\":{\"$tsfAlias\":[0,\"./uploads.js\",\"UploadedFiles\",\"UploadedFiles\"]},\"VerifyClientFn\":{\"$tsfAlias\":[0,\"./upgrade.js\",\"VerifyClientFn\",\"VerifyClientFn\"]},\"WebSocketUpgradeHandlerOptions\":{\"$tsfAlias\":[0,\"./upgrade.js\",\"WebSocketUpgradeHandlerOptions\",\"WebSocketUpgradeHandlerOptions\"]}},[]]", [require]);
28
+ exports.__tsfTypeAliases = _a.decodeCompactMetadataV2("[2,{\"AnyResponse\":{\"kind\":22,\"type\":{\"kind\":1},\"typeName\":\"AnyResponse\"},\"ControllerMetadata\":{\"$tsfAlias\":[0,\"./decorators.js\",\"ControllerMetadata\",\"ControllerMetadata\"]},\"EmptyResponse\":{\"kind\":22,\"type\":{\"kind\":3},\"typeName\":\"EmptyResponse\"},\"EntityValidator\":{\"$tsfAlias\":[0,\"./auth.js\",\"EntityValidator\",\"EntityValidator\"]},\"FallbackControllerMetadata\":{\"$tsfAlias\":[0,\"./decorators.js\",\"FallbackControllerMetadata\",\"FallbackControllerMetadata\"]},\"FileUploadAllowedTypes\":{\"$tsfAlias\":[0,\"./uploads.js\",\"FileUploadAllowedTypes\",\"FileUploadAllowedTypes\"]},\"FileUploadOptions\":{\"$tsfAlias\":[0,\"./uploads.js\",\"FileUploadOptions\",\"FileUploadOptions\"]},\"FileUploadPolicy\":{\"$tsfAlias\":[0,\"./uploads.js\",\"FileUploadPolicy\",\"FileUploadPolicy\"]},\"HttpControllerWorkflowEvent\":{\"$tsfAlias\":[0,\"./workflow.js\",\"HttpControllerWorkflowEvent\",\"HttpControllerWorkflowEvent\"]},\"HttpFallbackController\":{\"$tsfAlias\":[0,\"./decorators.js\",\"HttpFallbackController\",\"HttpFallbackController\"]},\"HttpHeaderInput\":{\"$tsfAlias\":[0,\"./request.js\",\"HttpHeaderInput\",\"HttpHeaderInput\"]},\"HttpHeaderOutput\":{\"$tsfAlias\":[0,\"./response.js\",\"HttpHeaderOutput\",\"HttpHeaderOutput\"]},\"HttpMethod\":{\"$tsfAlias\":[0,\"./request.js\",\"HttpMethod\",\"HttpMethod\"]},\"HttpMiddlewareFunction\":{\"$tsfAlias\":[0,\"./middleware.js\",\"HttpMiddlewareFunction\",\"HttpMiddlewareFunction\"]},\"HttpMiddlewareInput\":{\"$tsfAlias\":[0,\"./middleware.js\",\"HttpMiddlewareInput\",\"HttpMiddlewareInput\"]},\"HttpMiddlewareResult\":{\"$tsfAlias\":[0,\"./middleware.js\",\"HttpMiddlewareResult\",\"HttpMiddlewareResult\"]},\"HttpRequestBodyCapture\":{\"$tsfAlias\":[0,\"./request.js\",\"HttpRequestBodyCapture\",\"HttpRequestBodyCapture\"]},\"HttpRequestBodyLimits\":{\"$tsfAlias\":[0,\"./request.js\",\"HttpRequestBodyLimits\",\"HttpRequestBodyLimits\"]},\"HttpRequestHeaders\":{\"$tsfAlias\":[0,\"./request.js\",\"HttpRequestHeaders\",\"HttpRequestHeaders\"]},\"HttpRequestLoggingOptions\":{\"$tsfAlias\":[0,\"./request-logging.js\",\"HttpRequestLoggingOptions\",\"HttpRequestLoggingOptions\"]},\"HttpRequestObservation\":{\"$tsfAlias\":[0,\"./base.js\",\"HttpRequestObservation\",\"HttpRequestObservation\"]},\"HttpRequestObserver\":{\"$tsfAlias\":[0,\"./base.js\",\"HttpRequestObserver\",\"HttpRequestObserver\"]},\"HttpRequestObserverOptions\":{\"$tsfAlias\":[0,\"./base.js\",\"HttpRequestObserverOptions\",\"HttpRequestObserverOptions\"]},\"HttpResponseResult\":{\"$tsfAlias\":[0,\"./response.js\",\"HttpResponseResult\",\"HttpResponseResult\"]},\"HttpResponseWorkflowEvent\":{\"$tsfAlias\":[0,\"./workflow.js\",\"HttpResponseWorkflowEvent\",\"HttpResponseWorkflowEvent\"]},\"HttpRouteNotFoundWorkflowEvent\":{\"$tsfAlias\":[0,\"./workflow.js\",\"HttpRouteNotFoundWorkflowEvent\",\"HttpRouteNotFoundWorkflowEvent\"]},\"HttpRouteParameterPlan\":{\"$tsfAlias\":[0,\"./router.js\",\"HttpRouteParameterPlan\",\"HttpRouteParameterPlan\"]},\"HttpRoutePlan\":{\"$tsfAlias\":[0,\"./router.js\",\"HttpRoutePlan\",\"HttpRoutePlan\"]},\"HttpRouteWorkflowEvent\":{\"$tsfAlias\":[0,\"./workflow.js\",\"HttpRouteWorkflowEvent\",\"HttpRouteWorkflowEvent\"]},\"HttpServerListenHooks\":{\"$tsfAlias\":[0,\"./base.js\",\"HttpServerListenHooks\",\"HttpServerListenHooks\"]},\"HttpServerRuntimeOptions\":{\"$tsfAlias\":[0,\"./base.js\",\"HttpServerRuntimeOptions\",\"HttpServerRuntimeOptions\"]},\"HttpUpgradeHandler\":{\"$tsfAlias\":[0,\"./upgrade.js\",\"HttpUpgradeHandler\",\"HttpUpgradeHandler\"]},\"HttpWorkflowEvent\":{\"$tsfAlias\":[0,\"./workflow.js\",\"HttpWorkflowEvent\",\"HttpWorkflowEvent\"]},\"HttpWriteHeadHeaders\":{\"$tsfAlias\":[0,\"./response.js\",\"HttpWriteHeadHeaders\",\"HttpWriteHeadHeaders\"]},\"IRedactedRequestBodyLog\":{\"$tsfAlias\":[0,\"./payload-redaction.js\",\"IRedactedRequestBodyLog\",\"IRedactedRequestBodyLog\"]},\"InstallWebSocketUpgradeHandlerOptions\":{\"$tsfAlias\":[0,\"./upgrade.js\",\"InstallWebSocketUpgradeHandlerOptions\",\"InstallWebSocketUpgradeHandlerOptions\"]},\"KnownHttpMethod\":{\"$tsfAlias\":[0,\"./request.js\",\"KnownHttpMethod\",\"KnownHttpMethod\"]},\"MultipartRequestPart\":{\"$tsfAlias\":[0,\"./request.js\",\"MultipartRequestPart\",\"MultipartRequestPart\"]},\"MultipartRequestPolicy\":{\"$tsfAlias\":[0,\"./uploads.js\",\"MultipartRequestPolicy\",\"MultipartRequestPolicy\"]},\"OkResponse\":{\"kind\":22,\"type\":{\"kind\":18,\"types\":[{\"kind\":20,\"name\":\"ok\",\"type\":{\"kind\":10,\"literal\":true},\"optional\":false}]},\"typeName\":\"OkResponse\"},\"ParsedMultipartBody\":{\"$tsfAlias\":[0,\"./uploads.js\",\"ParsedMultipartBody\",\"ParsedMultipartBody\"]},\"PayloadRedactionPolicy\":{\"$tsfAlias\":[0,\"./payload-redaction.js\",\"PayloadRedactionPolicy\",\"PayloadRedactionPolicy\"]},\"QueryKeyMatcher\":{\"$tsfAlias\":[0,\"./query-redaction.js\",\"QueryKeyMatcher\",\"QueryKeyMatcher\"]},\"RedactQueryKeys\":{\"$tsfAlias\":[0,\"./query-redaction.js\",\"RedactQueryKeys\",\"RedactQueryKeys\"]},\"RedirectResponse\":{\"kind\":22,\"type\":{\"kind\":3},\"typeName\":\"RedirectResponse\"},\"RequestBuilder\":{\"kind\":16,\"typeName\":\"HttpRequest\",\"classType\":{\"$tsfImport\":[0,\"./request\",\"HttpRequest\"]},\"typeName\":\"RequestBuilder\"},\"ResolvedStaticFilesOptions\":{\"$tsfAlias\":[0,\"./static-files.js\",\"ResolvedStaticFilesOptions\",\"ResolvedStaticFilesOptions\"]},\"RouteMetadata\":{\"$tsfAlias\":[0,\"./decorators.js\",\"RouteMetadata\",\"RouteMetadata\"]},\"RouteParameterResolver\":{\"$tsfAlias\":[0,\"./decorators.js\",\"RouteParameterResolver\",\"RouteParameterResolver\"]},\"RouteParameterResolverContext\":{\"$tsfAlias\":[0,\"./decorators.js\",\"RouteParameterResolverContext\",\"RouteParameterResolverContext\"]},\"RouteParameterResolverMetadata\":{\"$tsfAlias\":[0,\"./decorators.js\",\"RouteParameterResolverMetadata\",\"RouteParameterResolverMetadata\"]},\"RouteParameterResolverRegistry\":{\"$tsfAlias\":[0,\"./decorators.js\",\"RouteParameterResolverRegistry\",\"RouteParameterResolverRegistry\"]},\"StaticFilesOptions\":{\"$tsfAlias\":[0,\"./static-files.js\",\"StaticFilesOptions\",\"StaticFilesOptions\"]},\"UploadedFiles\":{\"$tsfAlias\":[0,\"./uploads.js\",\"UploadedFiles\",\"UploadedFiles\"]},\"VerifyClientFn\":{\"$tsfAlias\":[0,\"./upgrade.js\",\"VerifyClientFn\",\"VerifyClientFn\"]},\"WebSocketUpgradeHandlerOptions\":{\"$tsfAlias\":[0,\"./upgrade.js\",\"WebSocketUpgradeHandlerOptions\",\"WebSocketUpgradeHandlerOptions\"]}},[]]", [require]);
27
29
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/http/index.ts"],"names":[],"mappings":";;;;;AAEA,uDAA6B;AAC7B,iDAAuB;AACvB,mDAAyB;AACzB,uDAA6B;AAC7B,oDAA0B;AAC1B,qDAA2B;AAC3B,mDAAyB;AACzB,kDAAwB;AACxB,kDAAwB;AACxB,iDAAuB;AACvB,iDAAuB;AACvB,oDAA0B;AAC1B,oDAA0B;AAC1B,4DAAkC;AAClC,gEAAsC;AACtC,4DAAkC;AAClC,yDAA+B;AAC/B,oDAA0B;AAC1B,qDAA2B;AAEd,QAAA,UAAU,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/http/index.ts"],"names":[],"mappings":";;;;;AAEA,uDAA6B;AAC7B,iDAAuB;AACvB,mDAAyB;AACzB,uDAA6B;AAC7B,oDAA0B;AAC1B,qDAA2B;AAC3B,mDAAyB;AACzB,kDAAwB;AACxB,kDAAwB;AACxB,iDAAuB;AACvB,iDAAuB;AACvB,oDAA0B;AAC1B,oDAA0B;AAC1B,4DAAkC;AAClC,4DAAkC;AAClC,8DAAoC;AACpC,gEAAsC;AACtC,4DAAkC;AAClC,yDAA+B;AAC/B,oDAA0B;AAC1B,qDAA2B;AAEd,QAAA,UAAU,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC"}
@@ -2,6 +2,7 @@ import type { HttpRequest } from './request';
2
2
  import type { HttpResponse, HttpResponseResult } from './response';
3
3
  import type { ScopedLogger } from '../services/logger';
4
4
  import type { ClassType } from '../types';
5
+ import { type PayloadRedactionPolicy } from './payload-redaction';
5
6
  export type HttpMiddlewareResult = void | HttpResponseResult | Promise<void | HttpResponseResult>;
6
7
  export type HttpMiddlewareFunction = (request: HttpRequest, response: HttpResponse) => HttpMiddlewareResult;
7
8
  export declare abstract class HttpMiddleware {
@@ -13,4 +14,11 @@ export declare class HttpLogPayloadMiddleware extends HttpMiddleware {
13
14
  constructor(logger: ScopedLogger);
14
15
  handle(request: HttpRequest, _response: HttpResponse): Promise<void>;
15
16
  }
17
+ /** Logs a policy-redacted body, or redacts it wholesale when no policy is provided. Query strings are omitted. */
18
+ export declare class RedactedPayloadLogMiddleware extends HttpMiddleware {
19
+ private readonly logger;
20
+ private readonly policy?;
21
+ constructor(logger: ScopedLogger, policy?: PayloadRedactionPolicy | undefined);
22
+ handle(request: HttpRequest, _response: HttpResponse): Promise<void>;
23
+ }
16
24
  //# sourceMappingURL=middleware.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../../../src/http/middleware.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C,MAAM,MAAM,oBAAoB,GAAG,IAAI,GAAG,kBAAkB,GAAG,OAAO,CAAC,IAAI,GAAG,kBAAkB,CAAC,CAAC;AAElG,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,YAAY,KAAK,oBAAoB,CAAC;AAE5G,8BAAsB,cAAc;IAChC,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,YAAY,GAAG,oBAAoB,CAAC;CACvF;AAED,MAAM,MAAM,mBAAmB,GAAG,SAAS,CAAC,cAAc,CAAC,GAAG,sBAAsB,CAAC;AAErF,qBAAa,wBAAyB,SAAQ,cAAc;IAC5C,OAAO,CAAC,QAAQ,CAAC,MAAM;IAAnC,YAA6B,MAAM,EAAE,YAAY,EAEhD;IAEK,MAAM,CAAC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAOzE;CACJ"}
1
+ {"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../../../src/http/middleware.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAmE,KAAK,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAEnI,MAAM,MAAM,oBAAoB,GAAG,IAAI,GAAG,kBAAkB,GAAG,OAAO,CAAC,IAAI,GAAG,kBAAkB,CAAC,CAAC;AAElG,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,YAAY,KAAK,oBAAoB,CAAC;AAE5G,8BAAsB,cAAc;IAChC,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,YAAY,GAAG,oBAAoB,CAAC;CACvF;AAED,MAAM,MAAM,mBAAmB,GAAG,SAAS,CAAC,cAAc,CAAC,GAAG,sBAAsB,CAAC;AAErF,qBAAa,wBAAyB,SAAQ,cAAc;IAC5C,OAAO,CAAC,QAAQ,CAAC,MAAM;IAAnC,YAA6B,MAAM,EAAE,YAAY,EAEhD;IAEK,MAAM,CAAC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAOzE;CACJ;AAED,kHAAkH;AAClH,qBAAa,4BAA6B,SAAQ,cAAc;IAExD,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC;IAF5B,YACqB,MAAM,EAAE,YAAY,EACpB,MAAM,CAAC,EAAE,sBAAsB,YAAA,EAGnD;IAEK,MAAM,CAAC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAUzE;CACJ"}
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.__tsfTypeAliases = exports.HttpLogPayloadMiddleware = exports.HttpMiddleware = void 0;
3
+ exports.__tsfTypeAliases = exports.RedactedPayloadLogMiddleware = exports.HttpLogPayloadMiddleware = exports.HttpMiddleware = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const _a = tslib_1.__importStar(require("@zyno-io/ts-reflection/type-metadata-runtime"));
6
- const __tsf_metadata_type = _a.createCompactMetadataRegistryV2("[2,[{\"kind\":12,\"types\":[{\"kind\":3},{\"kind\":18,\"typeName\":\"HttpResponseResult\",\"types\":[]},{\"kind\":22,\"type\":{\"kind\":12,\"types\":[{\"kind\":3},{\"kind\":18,\"typeName\":\"HttpResponseResult\",\"types\":[]}]}}],\"typeName\":\"HttpMiddlewareResult\"},{\"kind\":22,\"type\":{\"kind\":3}}],[]]", []);
6
+ const payload_redaction_1 = require("./payload-redaction");
7
+ const __tsf_metadata_type = _a.createCompactMetadataRegistryV2("[2,[{\"kind\":12,\"types\":[{\"kind\":3},{\"kind\":18,\"typeName\":\"HttpResponseResult\",\"types\":[]},{\"kind\":22,\"type\":{\"kind\":12,\"types\":[{\"kind\":3},{\"kind\":18,\"typeName\":\"HttpResponseResult\",\"types\":[]}]}}],\"typeName\":\"HttpMiddlewareResult\"},{\"kind\":22,\"type\":{\"kind\":3}},{\"kind\":18,\"typeName\":\"PayloadRedactionPolicy\",\"types\":[]}],[]]", []);
7
8
  let _HttpMiddlewareMetadata_1;
8
9
  class HttpMiddleware {
9
10
  static __tsfType = _HttpMiddlewareMetadata_1 = _a.decodeCompactMetadataV2("[2,{\"kind\":16,\"name\":\"HttpMiddleware\",\"typeName\":\"HttpMiddleware\",\"classType\":{\"$tsf\":0},\"properties\":[],\"methods\":[{\"name\":\"handle\",\"parameters\":[{\"name\":\"request\",\"type\":{\"kind\":16,\"typeName\":\"HttpRequest\",\"classType\":{\"$tsfImport\":[1,\"./request\",\"HttpRequest\"]}},\"optional\":false,\"default\":false},{\"name\":\"response\",\"type\":{\"kind\":16,\"typeName\":\"HttpResponse\",\"classType\":{\"$tsfImport\":[1,\"./response\",\"HttpResponse\"]}},\"optional\":false,\"default\":false}],\"returnType\":{\"$tsfType\":0}}],\"hasConstructor\":false,\"constructorParameters\":[]},[]]", [() => HttpMiddleware, require], __tsf_metadata_type);
@@ -31,5 +32,32 @@ class HttpLogPayloadMiddleware extends HttpMiddleware {
31
32
  exports.HttpLogPayloadMiddleware = HttpLogPayloadMiddleware;
32
33
  _HttpLogPayloadMiddlewareMetadata_1.classType = HttpLogPayloadMiddleware;
33
34
  HttpLogPayloadMiddleware.__tsfType = _HttpLogPayloadMiddlewareMetadata_1;
35
+ let _RedactedPayloadLogMiddlewareMetadata_1;
36
+ /** Logs a policy-redacted body, or redacts it wholesale when no policy is provided. Query strings are omitted. */
37
+ class RedactedPayloadLogMiddleware extends HttpMiddleware {
38
+ logger;
39
+ policy;
40
+ constructor(logger, policy) {
41
+ super();
42
+ this.logger = logger;
43
+ this.policy = policy;
44
+ }
45
+ async handle(request, _response) {
46
+ const contentType = request.headers['content-type'] ?? '';
47
+ let body;
48
+ try {
49
+ const rawBody = await request.readBodyBuffer();
50
+ body = (0, payload_redaction_1.redactRequestBodyForLog)(contentType, rawBody, this.policy);
51
+ }
52
+ catch {
53
+ body = { body: payload_redaction_1.REDACTED, bodyUnavailable: true };
54
+ }
55
+ this.logger.info('Logging request', { method: request.method, url: request.path, contentType, ...body });
56
+ }
57
+ static __tsfType = _RedactedPayloadLogMiddlewareMetadata_1 = _a.decodeCompactMetadataV2("[2,{\"kind\":16,\"name\":\"RedactedPayloadLogMiddleware\",\"typeName\":\"RedactedPayloadLogMiddleware\",\"classType\":{\"$tsf\":0},\"properties\":[],\"methods\":[{\"name\":\"handle\",\"parameters\":[{\"name\":\"request\",\"type\":{\"kind\":16,\"typeName\":\"HttpRequest\",\"classType\":{\"$tsfImport\":[1,\"./request\",\"HttpRequest\"]}},\"optional\":false,\"default\":false},{\"name\":\"_response\",\"type\":{\"kind\":16,\"typeName\":\"HttpResponse\",\"classType\":{\"$tsfImport\":[1,\"./response\",\"HttpResponse\"]}},\"optional\":false,\"default\":false}],\"returnType\":{\"$tsfType\":1}}],\"hasConstructor\":true,\"constructorParameters\":[{\"name\":\"logger\",\"type\":{\"kind\":16,\"typeName\":\"ScopedLogger\",\"classType\":{\"$tsfImport\":[1,\"../services/logger\",\"ScopedLogger\"]}},\"optional\":false,\"default\":false},{\"name\":\"policy\",\"type\":{\"$tsfType\":2},\"optional\":true,\"default\":false}]},[]]", [() => RedactedPayloadLogMiddleware, require], __tsf_metadata_type);
58
+ }
59
+ exports.RedactedPayloadLogMiddleware = RedactedPayloadLogMiddleware;
60
+ _RedactedPayloadLogMiddlewareMetadata_1.classType = RedactedPayloadLogMiddleware;
61
+ RedactedPayloadLogMiddleware.__tsfType = _RedactedPayloadLogMiddlewareMetadata_1;
34
62
  exports.__tsfTypeAliases = _a.decodeCompactMetadataV2("[2,{\"HttpMiddlewareFunction\":{\"$tsfNode\":0},\"HttpMiddlewareInput\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"new (...args: any[]) =\\u003e HttpMiddleware\",\"typeName\":\"ClassType\"},{\"$tsfNode\":0}],\"typeName\":\"HttpMiddlewareInput\"},\"HttpMiddlewareResult\":{\"kind\":12,\"types\":[{\"kind\":3},{\"kind\":18,\"typeName\":\"HttpResponseResult\",\"types\":[]},{\"kind\":22,\"type\":{\"kind\":12,\"types\":[{\"kind\":3},{\"kind\":18,\"typeName\":\"HttpResponseResult\",\"types\":[]}]}}],\"typeName\":\"HttpMiddlewareResult\"}},[{\"kind\":2,\"typeName\":\"(request: HttpRequest, response: HttpResponse) =\\u003e HttpMiddlewareResult\",\"typeName\":\"HttpMiddlewareFunction\"}]]", [], __tsf_metadata_type);
35
63
  //# sourceMappingURL=middleware.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"middleware.js","sourceRoot":"","sources":["../../../src/http/middleware.ts"],"names":[],"mappings":";;;;;;;AASA;;CAEC;;;;;AAID,8BAAsC,SAAQ,cAAc;IAC3B,MAAM;IAAnC,YAA6B,MAAoB;QAC7C,KAAK,EAAE,CAAC;sBADiB,MAAM;IAEnC,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,OAAoB,EAAE,SAAuB;QACtD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,iBAAiB,EAAE;YAChC,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,GAAG,EAAE,OAAO,CAAC,GAAG;YAChB,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI,EAAE;YAClD,IAAI,EAAE,MAAM,OAAO,CAAC,YAAY,EAAE;SACrC,CAAC,CAAC;IACP,CAAC;;CACJ"}
1
+ {"version":3,"file":"middleware.js","sourceRoot":"","sources":["../../../src/http/middleware.ts"],"names":[],"mappings":";;;;;AAIA,2DAAmI;;;AAMnI;;CAEC;;;;;AAID,8BAAsC,SAAQ,cAAc;IAC3B,MAAM;IAAnC,YAA6B,MAAoB;QAC7C,KAAK,EAAE,CAAC;sBADiB,MAAM;IAEnC,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,OAAoB,EAAE,SAAuB;QACtD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,iBAAiB,EAAE;YAChC,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,GAAG,EAAE,OAAO,CAAC,GAAG;YAChB,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI,EAAE;YAClD,IAAI,EAAE,MAAM,OAAO,CAAC,YAAY,EAAE;SACrC,CAAC,CAAC;IACP,CAAC;;CACJ;;;;;AAED,kHAAkH;AAClH,kCAA0C,SAAQ,cAAc;IAEvC,MAAM;IACN,MAAM;IAF3B,YACqB,MAAoB,EACpB,MAA+B;QAEhD,KAAK,EAAE,CAAC;sBAHS,MAAM;sBACN,MAAM;IAG3B,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,OAAoB,EAAE,SAAuB;QACtD,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC;QAC1D,IAAI,IAAuE,CAAC;QAC5E,IAAI,CAAC;YACD,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,cAAc,EAAE,CAAC;YAC/C,IAAI,GAAG,IAAA,2CAAuB,EAAC,WAAW,EAAE,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;QACtE,CAAC;QAAC,MAAM,CAAC;YACL,IAAI,GAAG,EAAE,IAAI,EAAE,4BAAQ,EAAE,eAAe,EAAE,IAAI,EAAE,CAAC;QACrD,CAAC;QACD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,GAAG,EAAE,OAAO,CAAC,IAAI,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,CAAC,CAAC;IAC7G,CAAC;;CACJ"}
@@ -0,0 +1,25 @@
1
+ /** Replacement used for redacted values. */
2
+ export declare const REDACTED = "REDACTED";
3
+ /**
4
+ * Return safe leaf keys for a protected subtree, or undefined when the field is not protected.
5
+ * Keys passed to `classifyKey` and returned as safe keys are normalized to lowercase with `_` and `-` removed.
6
+ * An empty array protects all leaves. The optional object rule supports schema-specific array elements.
7
+ */
8
+ export interface PayloadRedactionPolicy {
9
+ classifyKey(key: string): readonly string[] | undefined;
10
+ classifyObject?(value: Record<string, unknown>): readonly string[] | undefined;
11
+ }
12
+ /** Returns a deep copy with values selected by the policy redacted. */
13
+ export declare function redactPayload<T>(value: T, policy: PayloadRedactionPolicy): T;
14
+ export interface IRedactedRequestBodyLog {
15
+ body: string;
16
+ /** Present when the body was redacted wholesale. */
17
+ bodyBytes?: number;
18
+ }
19
+ /**
20
+ * Produces the loggable form of a raw request body. JSON and `application/x-www-form-urlencoded` bodies are
21
+ * parsed, redacted and re-serialized in their original format (same key order). Anything else, including a
22
+ * body that fails to parse or a bare JSON scalar, is never logged raw: it becomes `REDACTED` plus its byte length.
23
+ */
24
+ export declare function redactRequestBodyForLog(contentType: string, rawBody: Buffer, policy?: PayloadRedactionPolicy): IRedactedRequestBodyLog;
25
+ //# sourceMappingURL=payload-redaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload-redaction.d.ts","sourceRoot":"","sources":["../../../src/http/payload-redaction.ts"],"names":[],"mappings":"AAAA,4CAA4C;AAC5C,eAAO,MAAM,QAAQ,aAAa,CAAC;AAEnC;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACnC,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;IACxD,cAAc,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;CAClF;AA2CD,uEAAuE;AACvE,wBAAgB,aAAa,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,sBAAsB,GAAG,CAAC,CAE5E;AAmBD,MAAM,WAAW,uBAAuB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,oDAAoD;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AASD;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,sBAAsB,GAAG,uBAAuB,CAUtI"}
@@ -0,0 +1,122 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.__tsfTypeAliases = exports.REDACTED = void 0;
4
+ exports.redactPayload = redactPayload;
5
+ exports.redactRequestBodyForLog = redactRequestBodyForLog;
6
+ const tslib_1 = require("tslib");
7
+ const _a = tslib_1.__importStar(require("@zyno-io/ts-reflection/type-metadata-runtime"));
8
+ /** Replacement used for redacted values. */
9
+ exports.REDACTED = 'REDACTED';
10
+ function normalizeKey(key) {
11
+ return key.toLowerCase().replace(/[_-]/g, '');
12
+ }
13
+ /** Any protected segment of a bracketed form key protects its value. */
14
+ function isProtectedFormKey(key, policy) {
15
+ return key
16
+ .split(/[[\]]+/)
17
+ .filter(Boolean)
18
+ .some(segment => policy.classifyKey(normalizeKey(segment)) !== undefined);
19
+ }
20
+ /** Defines an own key, so a `__proto__` key is kept as an ordinary key instead of hitting the prototype setter. */
21
+ function setKey(target, key, value) {
22
+ Object.defineProperty(target, key, { value, enumerable: true, writable: true, configurable: true });
23
+ }
24
+ function isPlainObject(value) {
25
+ return typeof value === 'object' && value !== null && !Array.isArray(value);
26
+ }
27
+ /** Absent and empty values are kept as-is. */
28
+ function isEmptyLeaf(value) {
29
+ return value === null || value === undefined || value === '';
30
+ }
31
+ /** Redacts every leaf of a protected value, keeping object/array structure and safe descriptors. */
32
+ function redactSubtree(value, safeKeys) {
33
+ if (isEmptyLeaf(value))
34
+ return value;
35
+ if (Array.isArray(value))
36
+ return value.map(item => redactSubtree(item, safeKeys));
37
+ if (isPlainObject(value)) {
38
+ const out = {};
39
+ for (const [key, child] of Object.entries(value)) {
40
+ const keepAsIs = safeKeys.has(normalizeKey(key)) && !isPlainObject(child) && !Array.isArray(child);
41
+ setKey(out, key, keepAsIs ? child : redactSubtree(child, safeKeys));
42
+ }
43
+ return out;
44
+ }
45
+ return exports.REDACTED;
46
+ }
47
+ /** Returns a deep copy with values selected by the policy redacted. */
48
+ function redactPayload(value, policy) {
49
+ return redactNode(value, policy);
50
+ }
51
+ function redactNode(value, policy) {
52
+ if (Array.isArray(value))
53
+ return value.map(item => {
54
+ const safe = isPlainObject(item) ? policy.classifyObject?.(item) : undefined;
55
+ return safe === undefined ? redactNode(item, policy) : redactSubtree(item, new Set(safe.map(normalizeKey)));
56
+ });
57
+ if (isPlainObject(value)) {
58
+ const out = {};
59
+ for (const [key, child] of Object.entries(value)) {
60
+ const safe = policy.classifyKey(normalizeKey(key));
61
+ setKey(out, key, safe === undefined ? redactNode(child, policy) : redactSubtree(child, new Set(safe.map(normalizeKey))));
62
+ }
63
+ return out;
64
+ }
65
+ return value;
66
+ }
67
+ /** A decoded form key must look like a parameter name (`itemId`, `data[secret]`), never free text. */
68
+ const FORM_KEY_PATTERN = /^[A-Za-z0-9_.\-[\]]{1,128}$/;
69
+ function mimeType(contentType) {
70
+ return contentType.split(';')[0].trim().toLowerCase();
71
+ }
72
+ /**
73
+ * Produces the loggable form of a raw request body. JSON and `application/x-www-form-urlencoded` bodies are
74
+ * parsed, redacted and re-serialized in their original format (same key order). Anything else, including a
75
+ * body that fails to parse or a bare JSON scalar, is never logged raw: it becomes `REDACTED` plus its byte length.
76
+ */
77
+ function redactRequestBodyForLog(contentType, rawBody, policy) {
78
+ if (rawBody.length === 0)
79
+ return { body: '' };
80
+ const unparseable = { body: exports.REDACTED, bodyBytes: rawBody.length };
81
+ if (!policy)
82
+ return unparseable;
83
+ try {
84
+ return redactParsedBody(contentType, rawBody, policy) ?? unparseable;
85
+ }
86
+ catch {
87
+ // Pathological input (e.g. nesting deep enough to overflow the recursion) must fail safe, not fail the request.
88
+ return unparseable;
89
+ }
90
+ }
91
+ /** Returns the redacted body, or undefined when the body cannot be safely parsed. */
92
+ function redactParsedBody(contentType, rawBody, policy) {
93
+ const mime = mimeType(contentType);
94
+ const text = rawBody.toString('utf8');
95
+ // TSF parses unlabelled/text bodies as JSON, so mislabelled JSON is redacted rather than fully hidden.
96
+ const looksLikeJson = (mime === '' || mime === 'text/plain') && /^\s*[[{]/.test(text);
97
+ if (mime === 'application/json' || mime.endsWith('+json') || looksLikeJson) {
98
+ const parsed = JSON.parse(text);
99
+ // Bare values (top-level or directly inside a top-level array) have no key to judge them by.
100
+ if (isPlainObject(parsed) || (Array.isArray(parsed) && parsed.every(isPlainObject))) {
101
+ return { body: JSON.stringify(redactPayload(parsed, policy)) };
102
+ }
103
+ return undefined;
104
+ }
105
+ if (mime === 'application/x-www-form-urlencoded') {
106
+ // Free text posted with a form content type would otherwise survive in key position, so only bodies
107
+ // whose every pair is `identifier=value` (and that carry at least one value) are treated as a form.
108
+ if (text.split('&').some(pair => pair !== '' && !pair.includes('=')))
109
+ return undefined;
110
+ const pairs = [...new URLSearchParams(text)];
111
+ if (!pairs.every(([key]) => FORM_KEY_PATTERN.test(key)) || !pairs.some(([, value]) => value !== ''))
112
+ return undefined;
113
+ const redacted = new URLSearchParams();
114
+ for (const [key, value] of pairs) {
115
+ redacted.append(key, isProtectedFormKey(key, policy) && !isEmptyLeaf(value) ? exports.REDACTED : value);
116
+ }
117
+ return { body: redacted.toString() };
118
+ }
119
+ return undefined;
120
+ }
121
+ exports.__tsfTypeAliases = _a.decodeCompactMetadataV2("[2,{\"IRedactedRequestBodyLog\":{\"kind\":18,\"typeName\":\"IRedactedRequestBodyLog\",\"types\":[{\"kind\":20,\"name\":\"body\",\"type\":{\"kind\":6},\"optional\":false},{\"kind\":20,\"name\":\"bodyBytes\",\"type\":{\"kind\":12,\"types\":[{\"kind\":7},{\"kind\":4}]},\"optional\":true}]},\"PayloadRedactionPolicy\":{\"kind\":18,\"typeName\":\"PayloadRedactionPolicy\",\"types\":[]}},[]]", []);
122
+ //# sourceMappingURL=payload-redaction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload-redaction.js","sourceRoot":"","sources":["../../../src/http/payload-redaction.ts"],"names":[],"mappings":"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"}