sdk-aws-lambda 0.4.2 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (204) hide show
  1. package/dist/contract/cli/gen.js +18 -0
  2. package/dist/contract/cli/gen.js.map +1 -1
  3. package/dist/domain.objects/AwsIdentitySynthetic.d.ts +20 -0
  4. package/dist/domain.objects/AwsIdentitySynthetic.js +24 -0
  5. package/dist/domain.objects/AwsIdentitySynthetic.js.map +1 -0
  6. package/dist/domain.objects/LambdaEndpointDialect.d.ts +19 -0
  7. package/dist/domain.objects/LambdaEndpointDialect.js +3 -0
  8. package/dist/domain.objects/LambdaEndpointDialect.js.map +1 -0
  9. package/dist/domain.objects/LambdaEndpointErrorResponseBody.d.ts +70 -0
  10. package/dist/domain.objects/LambdaEndpointErrorResponseBody.js +41 -0
  11. package/dist/domain.objects/LambdaEndpointErrorResponseBody.js.map +1 -0
  12. package/dist/domain.operations/asLambdaEvent/asLambdaEvent.asExampleUuid.d.ts +7 -0
  13. package/dist/domain.operations/asLambdaEvent/asLambdaEvent.asExampleUuid.js +13 -0
  14. package/dist/domain.operations/asLambdaEvent/asLambdaEvent.asExampleUuid.js.map +1 -0
  15. package/dist/domain.operations/asLambdaEvent/asLambdaEvent.constants.d.ts +36 -0
  16. package/dist/domain.operations/asLambdaEvent/asLambdaEvent.constants.js +88 -0
  17. package/dist/domain.operations/asLambdaEvent/asLambdaEvent.constants.js.map +1 -0
  18. package/dist/domain.operations/asLambdaEvent/asLambdaEvent.d.ts +81 -0
  19. package/dist/domain.operations/asLambdaEvent/asLambdaEvent.fromApiGateway.d.ts +75 -0
  20. package/dist/domain.operations/asLambdaEvent/asLambdaEvent.fromApiGateway.js +163 -0
  21. package/dist/domain.operations/asLambdaEvent/asLambdaEvent.fromApiGateway.js.map +1 -0
  22. package/dist/domain.operations/asLambdaEvent/asLambdaEvent.fromKinesis.d.ts +32 -0
  23. package/dist/domain.operations/asLambdaEvent/asLambdaEvent.fromKinesis.js +55 -0
  24. package/dist/domain.operations/asLambdaEvent/asLambdaEvent.fromKinesis.js.map +1 -0
  25. package/dist/domain.operations/asLambdaEvent/asLambdaEvent.fromS3.d.ts +40 -0
  26. package/dist/domain.operations/asLambdaEvent/asLambdaEvent.fromS3.js +71 -0
  27. package/dist/domain.operations/asLambdaEvent/asLambdaEvent.fromS3.js.map +1 -0
  28. package/dist/domain.operations/asLambdaEvent/asLambdaEvent.fromSns.d.ts +27 -0
  29. package/dist/domain.operations/asLambdaEvent/asLambdaEvent.fromSns.js +51 -0
  30. package/dist/domain.operations/asLambdaEvent/asLambdaEvent.fromSns.js.map +1 -0
  31. package/dist/domain.operations/asLambdaEvent/asLambdaEvent.fromSqs.d.ts +35 -0
  32. package/dist/domain.operations/asLambdaEvent/asLambdaEvent.fromSqs.js +50 -0
  33. package/dist/domain.operations/asLambdaEvent/asLambdaEvent.fromSqs.js.map +1 -0
  34. package/dist/domain.operations/asLambdaEvent/asLambdaEvent.js +59 -0
  35. package/dist/domain.operations/asLambdaEvent/asLambdaEvent.js.map +1 -0
  36. package/dist/domain.operations/askLambdaEndpoint/askLambdaEndpoint.d.ts +2 -1
  37. package/dist/domain.operations/askLambdaEndpoint/askLambdaEndpoint.js +19 -18
  38. package/dist/domain.operations/askLambdaEndpoint/askLambdaEndpoint.js.map +1 -1
  39. package/dist/domain.operations/askLambdaEndpoint/invoke/executeLambdaInvocation.js +1 -1
  40. package/dist/domain.operations/askLambdaEndpoint/invoke/executeLambdaInvocation.js.map +1 -1
  41. package/dist/domain.operations/genLambdaEndpoint/genLambdaEndpoint.forApiGateway/asApiGatewayResponseSchema.d.ts +24 -0
  42. package/dist/domain.operations/genLambdaEndpoint/genLambdaEndpoint.forApiGateway/asApiGatewayResponseSchema.js +24 -0
  43. package/dist/domain.operations/genLambdaEndpoint/genLambdaEndpoint.forApiGateway/asApiGatewayResponseSchema.js.map +1 -1
  44. package/dist/domain.operations/genLambdaEndpoint/genLambdaEndpoint.forApiGateway/genLambdaEndpoint.forApiGateway.d.ts +19 -0
  45. package/dist/domain.operations/genLambdaEndpoint/genLambdaEndpoint.forApiGateway/genLambdaEndpoint.forApiGateway.js.map +1 -1
  46. package/dist/domain.operations/genLambdaEndpoint/genLambdaEndpoint.forApiGateway/middleware/genZodBodyValidationMiddleware.js +7 -7
  47. package/dist/domain.operations/genLambdaEndpoint/genLambdaEndpoint.forApiGateway/middleware/genZodBodyValidationMiddleware.js.map +1 -1
  48. package/dist/domain.operations/genLambdaEndpoint/genLambdaEndpoint.forAskEndpoint/genLambdaEndpoint.forAskEndpoint.d.ts +37 -10
  49. package/dist/domain.operations/genLambdaEndpoint/genLambdaEndpoint.forAskEndpoint/genLambdaEndpoint.forAskEndpoint.js +3 -2
  50. package/dist/domain.operations/genLambdaEndpoint/genLambdaEndpoint.forAskEndpoint/genLambdaEndpoint.forAskEndpoint.js.map +1 -1
  51. package/dist/domain.operations/genLambdaEndpoint/genLambdaEndpoint.forAskEndpoint/middleware/genZodEventValidationMiddleware.js +6 -6
  52. package/dist/domain.operations/genLambdaEndpoint/genLambdaEndpoint.forAskEndpoint/middleware/genZodEventValidationMiddleware.js.map +1 -1
  53. package/dist/domain.operations/genLambdaEndpoint/middleware/genInternalServiceErrorMiddleware.d.ts +1 -1
  54. package/dist/domain.operations/genLambdaEndpoint/middleware/genInternalServiceErrorMiddleware.js +19 -1
  55. package/dist/domain.operations/genLambdaEndpoint/middleware/genInternalServiceErrorMiddleware.js.map +1 -1
  56. package/dist/domain.operations/genLambdaEndpoint/middleware/genIntrospectionMiddleware.getJsonSchemaFromZod.d.ts +0 -4
  57. package/dist/domain.operations/genLambdaEndpoint/middleware/genIntrospectionMiddleware.getJsonSchemaFromZod.js +224 -3
  58. package/dist/domain.operations/genLambdaEndpoint/middleware/genIntrospectionMiddleware.getJsonSchemaFromZod.js.map +1 -1
  59. package/dist/domain.operations/genLambdaEndpoint/middleware/genZodOutputValidationMiddleware.d.ts +12 -4
  60. package/dist/domain.operations/genLambdaEndpoint/middleware/genZodOutputValidationMiddleware.js +12 -4
  61. package/dist/domain.operations/genLambdaEndpoint/middleware/genZodOutputValidationMiddleware.js.map +1 -1
  62. package/dist/domain.operations/genLambdaEndpoint/middleware/getErrorResponseBody.d.ts +6 -19
  63. package/dist/domain.operations/genLambdaEndpoint/middleware/getErrorResponseBody.js +6 -1
  64. package/dist/domain.operations/genLambdaEndpoint/middleware/getErrorResponseBody.js.map +1 -1
  65. package/dist/domain.operations/genLambdaEndpoint/middleware/getUnwrappedEventWithExid.d.ts +1 -1
  66. package/dist/domain.operations/genLambdaEndpoint/middleware/getUnwrappedEventWithExid.js +1 -1
  67. package/dist/domain.operations/genLambdaEndpoint/middleware/getUnwrappedEventWithExid.js.map +1 -1
  68. package/dist/domain.operations/genLambdaEndpoint/middleware/getValidatedInput.d.ts +22 -0
  69. package/dist/domain.operations/genLambdaEndpoint/middleware/getValidatedInput.js +29 -0
  70. package/dist/domain.operations/genLambdaEndpoint/middleware/getValidatedInput.js.map +1 -0
  71. package/dist/domain.operations/genLambdaEndpoint/middleware/getValidatedOutput.d.ts +35 -0
  72. package/dist/domain.operations/genLambdaEndpoint/middleware/getValidatedOutput.js +58 -1
  73. package/dist/domain.operations/genLambdaEndpoint/middleware/getValidatedOutput.js.map +1 -1
  74. package/dist/domain.operations/genLambdaEndpoint/middleware/getValidationError.d.ts +1 -0
  75. package/dist/domain.operations/genLambdaEndpoint/middleware/getValidationError.js +65 -9
  76. package/dist/domain.operations/genLambdaEndpoint/middleware/getValidationError.js.map +1 -1
  77. package/dist/domain.operations/genLambdaEndpoint/middleware/getZodIssuesSummary.d.ts +20 -0
  78. package/dist/domain.operations/genLambdaEndpoint/middleware/getZodIssuesSummary.js +31 -2
  79. package/dist/domain.operations/genLambdaEndpoint/middleware/getZodIssuesSummary.js.map +1 -1
  80. package/dist/domain.operations/genServiceSdk/gen.mechanism/getTypescriptFromJsonSchema.js +24 -19
  81. package/dist/domain.operations/genServiceSdk/gen.mechanism/getTypescriptFromJsonSchema.js.map +1 -1
  82. package/dist/domain.operations/genServiceSdk/gen.resource/asDomainObjectPragma.d.ts +10 -3
  83. package/dist/domain.operations/genServiceSdk/gen.resource/asDomainObjectPragma.js +10 -3
  84. package/dist/domain.operations/genServiceSdk/gen.resource/asDomainObjectPragma.js.map +1 -1
  85. package/dist/domain.operations/genServiceSdk/gen.resource/assertAllDomainObjectRefsBind.js +9 -23
  86. package/dist/domain.operations/genServiceSdk/gen.resource/assertAllDomainObjectRefsBind.js.map +1 -1
  87. package/dist/domain.operations/genServiceSdk/gen.resource/getAllDomainObjectsFromContracts.js +11 -18
  88. package/dist/domain.operations/genServiceSdk/gen.resource/getAllDomainObjectsFromContracts.js.map +1 -1
  89. package/dist/domain.operations/genServiceSdk/getAllJsonSchemaNodes.d.ts +59 -0
  90. package/dist/domain.operations/genServiceSdk/getAllJsonSchemaNodes.js +87 -0
  91. package/dist/domain.operations/genServiceSdk/getAllJsonSchemaNodes.js.map +1 -0
  92. package/dist/domain.operations/getAllLambdaContracts/getAllLambdaContracts.js +16 -35
  93. package/dist/domain.operations/getAllLambdaContracts/getAllLambdaContracts.js.map +1 -1
  94. package/dist/domain.operations/lambdaEndpointWire/context/getExidFromContext.js.map +1 -0
  95. package/dist/domain.operations/lambdaEndpointWire/context/getLogForExidExtraction.js.map +1 -0
  96. package/dist/domain.operations/lambdaEndpointWire/context/getOneTrailExid.d.ts +36 -0
  97. package/dist/domain.operations/lambdaEndpointWire/context/getOneTrailExid.js +53 -0
  98. package/dist/domain.operations/lambdaEndpointWire/context/getOneTrailExid.js.map +1 -0
  99. package/dist/domain.operations/lambdaEndpointWire/error/getIsContempErrorTagged.d.ts +1 -0
  100. package/dist/domain.operations/lambdaEndpointWire/error/getIsContempErrorTagged.js +32 -0
  101. package/dist/domain.operations/lambdaEndpointWire/error/getIsContempErrorTagged.js.map +1 -0
  102. package/dist/domain.operations/lambdaEndpointWire/error/getIsLambdaErrorResponse.d.ts +63 -0
  103. package/dist/domain.operations/lambdaEndpointWire/error/getIsLambdaErrorResponse.js +39 -0
  104. package/dist/domain.operations/lambdaEndpointWire/error/getIsLambdaErrorResponse.js.map +1 -0
  105. package/dist/domain.operations/lambdaEndpointWire/error/getLambdaErrorMetadata.js.map +1 -0
  106. package/dist/domain.operations/lambdaEndpointWire/error/getStackTraceString.js.map +1 -0
  107. package/dist/domain.operations/lambdaEndpointWire/error/throwIfCredentialsError.d.ts +54 -0
  108. package/dist/domain.operations/lambdaEndpointWire/error/throwIfCredentialsError.js +107 -0
  109. package/dist/domain.operations/lambdaEndpointWire/error/throwIfCredentialsError.js.map +1 -0
  110. package/dist/domain.operations/{genLambdaEndpoint/middleware → lambdaEndpointWire/frame}/getIsWrappedPayload.d.ts +6 -0
  111. package/dist/domain.operations/lambdaEndpointWire/frame/getIsWrappedPayload.js.map +1 -0
  112. package/dist/domain.operations/lambdaEndpointWire/getParsedResponse.d.ts +45 -0
  113. package/dist/domain.operations/lambdaEndpointWire/getParsedResponse.js +173 -0
  114. package/dist/domain.operations/lambdaEndpointWire/getParsedResponse.js.map +1 -0
  115. package/dist/domain.operations/lambdaEndpointWire/serde/asUnprefixedErrorMessage.d.ts +21 -0
  116. package/dist/domain.operations/lambdaEndpointWire/serde/asUnprefixedErrorMessage.js +33 -0
  117. package/dist/domain.operations/lambdaEndpointWire/serde/asUnprefixedErrorMessage.js.map +1 -0
  118. package/dist/domain.operations/lambdaEndpointWire/serde/getDecodedPayload.js.map +1 -0
  119. package/dist/domain.operations/lambdaEndpointWire/serde/getParsedJson.js.map +1 -0
  120. package/dist/domain.operations/runLambdaEndpoint/context/asLambdaContext.d.ts +24 -0
  121. package/dist/domain.operations/runLambdaEndpoint/context/asLambdaContext.js +70 -0
  122. package/dist/domain.operations/runLambdaEndpoint/context/asLambdaContext.js.map +1 -0
  123. package/dist/domain.operations/runLambdaEndpoint/dialect/LambdaEndpointRunOutput.d.ts +67 -0
  124. package/dist/domain.operations/runLambdaEndpoint/dialect/LambdaEndpointRunOutput.js +3 -0
  125. package/dist/domain.operations/runLambdaEndpoint/dialect/LambdaEndpointRunOutput.js.map +1 -0
  126. package/dist/domain.operations/runLambdaEndpoint/dialect/asLambdaEndpointDialect.d.ts +26 -0
  127. package/dist/domain.operations/runLambdaEndpoint/dialect/asLambdaEndpointDialect.js +43 -0
  128. package/dist/domain.operations/runLambdaEndpoint/dialect/asLambdaEndpointDialect.js.map +1 -0
  129. package/dist/domain.operations/runLambdaEndpoint/dialect/asLambdaEndpointOutput.d.ts +47 -0
  130. package/dist/domain.operations/runLambdaEndpoint/dialect/asLambdaEndpointOutput.js +89 -0
  131. package/dist/domain.operations/runLambdaEndpoint/dialect/asLambdaEndpointOutput.js.map +1 -0
  132. package/dist/domain.operations/runLambdaEndpoint/dialect/isLambdaEndpointErrorEnvelope.d.ts +73 -0
  133. package/dist/domain.operations/runLambdaEndpoint/dialect/isLambdaEndpointErrorEnvelope.js +108 -0
  134. package/dist/domain.operations/runLambdaEndpoint/dialect/isLambdaEndpointErrorEnvelope.js.map +1 -0
  135. package/dist/domain.operations/runLambdaEndpoint/error/isErrorLike.d.ts +50 -0
  136. package/dist/domain.operations/runLambdaEndpoint/error/isErrorLike.js +55 -0
  137. package/dist/domain.operations/runLambdaEndpoint/error/isErrorLike.js.map +1 -0
  138. package/dist/domain.operations/runLambdaEndpoint/guard/assertEventIsGiven.d.ts +56 -0
  139. package/dist/domain.operations/runLambdaEndpoint/guard/assertEventIsGiven.js +57 -0
  140. package/dist/domain.operations/runLambdaEndpoint/guard/assertEventIsGiven.js.map +1 -0
  141. package/dist/domain.operations/runLambdaEndpoint/guard/assertHandlerIsRunnable.d.ts +16 -0
  142. package/dist/domain.operations/runLambdaEndpoint/guard/assertHandlerIsRunnable.js +71 -0
  143. package/dist/domain.operations/runLambdaEndpoint/guard/assertHandlerIsRunnable.js.map +1 -0
  144. package/dist/domain.operations/runLambdaEndpoint/local/asLocalRunIdentity.d.ts +48 -0
  145. package/dist/domain.operations/runLambdaEndpoint/local/asLocalRunIdentity.js +57 -0
  146. package/dist/domain.operations/runLambdaEndpoint/local/asLocalRunIdentity.js.map +1 -0
  147. package/dist/domain.operations/runLambdaEndpoint/local/getOneHandlerFromServerlessYml.d.ts +18 -0
  148. package/dist/domain.operations/runLambdaEndpoint/local/getOneHandlerFromServerlessYml.js +239 -0
  149. package/dist/domain.operations/runLambdaEndpoint/local/getOneHandlerFromServerlessYml.js.map +1 -0
  150. package/dist/domain.operations/runLambdaEndpoint/runLambdaEndpoint.d.ts +82 -0
  151. package/dist/domain.operations/runLambdaEndpoint/runLambdaEndpoint.js +67 -0
  152. package/dist/domain.operations/runLambdaEndpoint/runLambdaEndpoint.js.map +1 -0
  153. package/dist/domain.operations/runLambdaEndpoint/runLambdaEndpoint.onReferenced.d.ts +120 -0
  154. package/dist/domain.operations/runLambdaEndpoint/runLambdaEndpoint.onReferenced.js +119 -0
  155. package/dist/domain.operations/runLambdaEndpoint/runLambdaEndpoint.onReferenced.js.map +1 -0
  156. package/dist/domain.operations/runLambdaEndpoint/runLambdaEndpoint.onSerialized.d.ts +98 -0
  157. package/dist/domain.operations/runLambdaEndpoint/runLambdaEndpoint.onSerialized.js +176 -0
  158. package/dist/domain.operations/runLambdaEndpoint/runLambdaEndpoint.onSerialized.js.map +1 -0
  159. package/dist/domain.operations/runLambdaEndpoint/serde/asFramedPayload.d.ts +41 -0
  160. package/dist/domain.operations/runLambdaEndpoint/serde/asFramedPayload.js +62 -0
  161. package/dist/domain.operations/runLambdaEndpoint/serde/asFramedPayload.js.map +1 -0
  162. package/dist/domain.operations/runLambdaEndpoint/serde/asWireFunctionErrorPayload.d.ts +40 -0
  163. package/dist/domain.operations/runLambdaEndpoint/serde/asWireFunctionErrorPayload.js +68 -0
  164. package/dist/domain.operations/runLambdaEndpoint/serde/asWireFunctionErrorPayload.js.map +1 -0
  165. package/dist/domain.operations/runLambdaEndpoint/serde/asWirePayload.d.ts +34 -0
  166. package/dist/domain.operations/runLambdaEndpoint/serde/asWirePayload.js +39 -0
  167. package/dist/domain.operations/runLambdaEndpoint/serde/asWirePayload.js.map +1 -0
  168. package/dist/domain.operations/runLambdaEndpoint/serde/asWireStripped.d.ts +25 -0
  169. package/dist/domain.operations/runLambdaEndpoint/serde/asWireStripped.js +85 -0
  170. package/dist/domain.operations/runLambdaEndpoint/serde/asWireStripped.js.map +1 -0
  171. package/dist/index.d.ts +34 -0
  172. package/dist/index.js +50 -1
  173. package/dist/index.js.map +1 -1
  174. package/package.json +4 -3
  175. package/readme.md +188 -48
  176. package/dist/domain.operations/askLambdaEndpoint/context/getExidFromContext.js.map +0 -1
  177. package/dist/domain.operations/askLambdaEndpoint/context/getLogForExidExtraction.js.map +0 -1
  178. package/dist/domain.operations/askLambdaEndpoint/error/getIsLambdaErrorResponse.d.ts +0 -42
  179. package/dist/domain.operations/askLambdaEndpoint/error/getIsLambdaErrorResponse.js +0 -21
  180. package/dist/domain.operations/askLambdaEndpoint/error/getIsLambdaErrorResponse.js.map +0 -1
  181. package/dist/domain.operations/askLambdaEndpoint/error/getLambdaErrorMetadata.js.map +0 -1
  182. package/dist/domain.operations/askLambdaEndpoint/error/getStackTraceString.js.map +0 -1
  183. package/dist/domain.operations/askLambdaEndpoint/serde/asUnprefixedErrorMessage.d.ts +0 -13
  184. package/dist/domain.operations/askLambdaEndpoint/serde/asUnprefixedErrorMessage.js +0 -26
  185. package/dist/domain.operations/askLambdaEndpoint/serde/asUnprefixedErrorMessage.js.map +0 -1
  186. package/dist/domain.operations/askLambdaEndpoint/serde/getDecodedPayload.js.map +0 -1
  187. package/dist/domain.operations/askLambdaEndpoint/serde/getParsedJson.js.map +0 -1
  188. package/dist/domain.operations/askLambdaEndpoint/serde/getParsedResponse.d.ts +0 -15
  189. package/dist/domain.operations/askLambdaEndpoint/serde/getParsedResponse.js +0 -100
  190. package/dist/domain.operations/askLambdaEndpoint/serde/getParsedResponse.js.map +0 -1
  191. package/dist/domain.operations/genLambdaEndpoint/middleware/getIsWrappedPayload.js.map +0 -1
  192. /package/dist/domain.operations/{askLambdaEndpoint → lambdaEndpointWire}/context/getExidFromContext.d.ts +0 -0
  193. /package/dist/domain.operations/{askLambdaEndpoint → lambdaEndpointWire}/context/getExidFromContext.js +0 -0
  194. /package/dist/domain.operations/{askLambdaEndpoint → lambdaEndpointWire}/context/getLogForExidExtraction.d.ts +0 -0
  195. /package/dist/domain.operations/{askLambdaEndpoint → lambdaEndpointWire}/context/getLogForExidExtraction.js +0 -0
  196. /package/dist/domain.operations/{askLambdaEndpoint → lambdaEndpointWire}/error/getLambdaErrorMetadata.d.ts +0 -0
  197. /package/dist/domain.operations/{askLambdaEndpoint → lambdaEndpointWire}/error/getLambdaErrorMetadata.js +0 -0
  198. /package/dist/domain.operations/{askLambdaEndpoint → lambdaEndpointWire}/error/getStackTraceString.d.ts +0 -0
  199. /package/dist/domain.operations/{askLambdaEndpoint → lambdaEndpointWire}/error/getStackTraceString.js +0 -0
  200. /package/dist/domain.operations/{genLambdaEndpoint/middleware → lambdaEndpointWire/frame}/getIsWrappedPayload.js +0 -0
  201. /package/dist/domain.operations/{askLambdaEndpoint → lambdaEndpointWire}/serde/getDecodedPayload.d.ts +0 -0
  202. /package/dist/domain.operations/{askLambdaEndpoint → lambdaEndpointWire}/serde/getDecodedPayload.js +0 -0
  203. /package/dist/domain.operations/{askLambdaEndpoint → lambdaEndpointWire}/serde/getParsedJson.d.ts +0 -0
  204. /package/dist/domain.operations/{askLambdaEndpoint → lambdaEndpointWire}/serde/getParsedJson.js +0 -0
@@ -3,10 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.askLambdaEndpoint = void 0;
4
4
  const genLambdaSdk_1 = require("../../access/sdks/lambda/genLambdaSdk");
5
5
  const asLambdaEndpoint_1 = require("../asLambdaEndpoint/asLambdaEndpoint");
6
+ const getOneTrailExid_1 = require("../lambdaEndpointWire/context/getOneTrailExid");
6
7
  const asCachedExecutor_1 = require("./cache/asCachedExecutor");
7
8
  const getAskLambdaCacheKey_1 = require("./cache/getAskLambdaCacheKey");
8
- const getExidFromContext_1 = require("./context/getExidFromContext");
9
- const getLogForExidExtraction_1 = require("./context/getLogForExidExtraction");
10
9
  const getLambdaPayload_1 = require("./serde/getLambdaPayload");
11
10
  /**
12
11
  * .what = invokes a lambda endpoint with trail propagation
@@ -16,29 +15,31 @@ const getLambdaPayload_1 = require("./serde/getLambdaPayload");
16
15
  * .note = use struct: 'ancient' for handlers that don't understand wrapped payloads
17
16
  */
18
17
  const askLambdaEndpoint = async (input, context) => {
19
- // extract or generate trail exid
20
- const logForExidExtraction = (0, getLogForExidExtraction_1.getLogForExidExtraction)({ log: context.log });
21
- const { exid, source: exidSource } = (0, getExidFromContext_1.getExidFromContext)({
22
- log: logForExidExtraction,
23
- });
24
- // log when trail exid was generated (indicates caller did not propagate trail)
25
- if (exidSource === 'generated') {
26
- context.log.debug('trail.exid.generated', {
27
- exid,
28
- note: 'no trail exid in context, generated new one',
29
- });
30
- }
18
+ // extract or generate the trail exid, and report the fallback if one was made.
19
+ // shared with `runLambdaEndpoint.onSerialized` so the two loci cannot diverge
20
+ // on the diagnostic — see `getOneTrailExid` for why that parity is structural
21
+ // rather than a comment.
22
+ const exid = (0, getOneTrailExid_1.getOneTrailExid)({ log: context.log });
31
23
  // build the endpoint from the selector + ambient access (computes slug)
32
24
  const endpoint = (0, asLambdaEndpoint_1.asLambdaEndpoint)({
33
25
  service: input.which.service,
34
26
  access: context.env.access,
35
27
  function: input.which.function,
36
28
  });
37
- // build payload (ancient handlers expect flat event, contemp expect wrapped)
29
+ // build payload — contemp wraps in `{ event, trail }`, ancient sends it flat
30
+ //
31
+ // 🔴 the branch tests for CONTEMP, so an unrecognized dialect falls to ANCIENT
32
+ // (rule.require.contemp-must-self-identify). we author every contemp caller,
33
+ // so a value we do not recognize was not written by one — and the fallback
34
+ // must be the dialect that assumes less. a fall to contemp would wrap a
35
+ // payload for a handler that never learned to unwrap it.
36
+ //
37
+ // ⚠️ ABSENT is not unrecognized: it is the documented default, and it stays
38
+ // contemp so trail propagation holds for every caller that omits `struct`.
38
39
  const structOfPayload = input.struct?.payload ?? 'contemp';
39
- const payload = structOfPayload === 'ancient'
40
- ? input.event
41
- : (0, getLambdaPayload_1.getLambdaPayload)({ event: input.event, trail: { exid } });
40
+ const payload = structOfPayload === 'contemp'
41
+ ? (0, getLambdaPayload_1.getLambdaPayload)({ event: input.event, trail: { exid } })
42
+ : input.event;
42
43
  // get or create LambdaClient
43
44
  const sdkLambda = (0, genLambdaSdk_1.genLambdaSdk)({
44
45
  sdk: context.aws?.lambda?.sdk,
@@ -1 +1 @@
1
- {"version":3,"file":"askLambdaEndpoint.js","sourceRoot":"","sources":["../../../src/domain.operations/askLambdaEndpoint/askLambdaEndpoint.ts"],"names":[],"mappings":";;;AAGA,wEAAqE;AAErE,2EAAwE;AACxE,+DAA4D;AAC5D,uEAAoE;AACpE,qEAAkE;AAClE,+EAA4E;AAK5E,+DAA4D;AAE5D;;;;;;GAMG;AACI,MAAM,iBAAiB,GAAG,KAAK,EACpC,KAkBC,EACD,OAKC,EACmB,EAAE;IACtB,iCAAiC;IACjC,MAAM,oBAAoB,GAAG,IAAA,iDAAuB,EAAC,EAAE,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;IAC3E,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,IAAA,uCAAkB,EAAC;QACtD,GAAG,EAAE,oBAAoB;KAC1B,CAAC,CAAC;IAEH,+EAA+E;IAC/E,IAAI,UAAU,KAAK,WAAW,EAAE,CAAC;QAC/B,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,sBAAsB,EAAE;YACxC,IAAI;YACJ,IAAI,EAAE,6CAA6C;SACpD,CAAC,CAAC;IACL,CAAC;IAED,wEAAwE;IACxE,MAAM,QAAQ,GAAG,IAAA,mCAAgB,EAAC;QAChC,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,OAAO;QAC5B,MAAM,E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AAM,EAAE;KACpC,CAAC,CAAC;IAEH,qCAAqC;IACrC,MAAM,eAAe,GAAoB,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IACrE,MAAM,iBAAiB,GAAsB;QAC3C,SAAS;QACT,GAAG,EAAE,OAAO,CAAC,GAAG;KACjB,CAAC;IAEF,4BAA4B;IAC5B,MAAM,WAAW,GAAG,GAAW,EAAE,CAC/B,IAAA,2CAAoB,EAAC;QACnB,QAAQ;QACR,KAAK,EAAE,KAAK,CAAC,KAAgC;KAC9C,CAAC,CAAC;IAEL,kCAAkC;IAClC,MAAM,OAAO,GAAG,IAAA,mCAAgB,EAAY;QAC1C,GAAG,OAAO,CAAC,KAAK;QAChB,WAAW;KACZ,CAAC,CAAC;IAEH,qBAAqB;IACrB,OAAO,OAAO,CAAC,eAAe,EAAE,iBAAiB,CAAC,CAAC;AACrD,CAAC,CAAC;AApFW,QAAA,iBAAiB,qBAoF5B"}
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.executeLambdaInvocation = void 0;
4
4
  const sdkLambdaInvoke_1 = require("../../../access/sdks/lambda/sdkLambdaInvoke");
5
5
  const LambdaEndpointError_1 = require("../../../domain.objects/LambdaEndpointError");
6
+ const getParsedResponse_1 = require("../../lambdaEndpointWire/getParsedResponse");
6
7
  const getStatusCodeHint_1 = require("../error/getStatusCodeHint");
7
- const getParsedResponse_1 = require("../serde/getParsedResponse");
8
8
  /**
9
9
  * .what = the core lambda invocation logic
10
10
  * .why = extracted to enable cache wrapper composition
@@ -1 +1 @@
1
- {"version":3,"file":"executeLambdaInvocation.js","sourceRoot":"","sources":["../../../../src/domain.operations/askLambdaEndpoint/invoke/executeLambdaInvocation.ts"],"names":[],"mappings":";;;AAEA,iFAA8E;AAE9E,qFAAkF;AAClF,kEAA+D;AAC/D,kEAA+D;AA6B/D;;;GAGG;AACI,MAAM,uBAAuB,GAAG,KAAK,EAC1C,KAAsB,EACtB,OAA0B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G,IAAA,qCAAiB,EAAY;QAC5C,OAAO,EAAE,MAAM,CAAC,OAAO;QACvB,aAAa,EAAE,MAAM,CAAC,aAAa;QACnC,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,IAAI,EAAE,KAAK,CAAC,IAAI;KACjB,CAAC,CAAC;IAEH,aAAa;IACb,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,0BAA0B,EAAE;QAC7C,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC,IAAI;QACzB,UAAU,EAAE,MAAM,CAAC,UAAU;KAC9B,CAAC,CAAC;IAEH,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC;AA1DW,QAAA,uBAAuB,2BA0DlC"}
1
+ {"version":3,"file":"executeLambdaInvocation.js","sourceRoot":"","sources":["../../../../src/domain.operations/askLambdaEndpoint/invoke/executeLambdaInvocation.ts"],"names":[],"mappings":";;;AAEA,iFAA8E;AAE9E,qFAAkF;AAClF,kFAA+E;AAC/E,kEAA+D;AA6B/D;;;GAGG;AACI,MAAM,uBAAuB,GAAG,KAAK,EAC1C,KAAsB,EACtB,OAA0B,EACN,EAAE;IACtB,iBAAiB;IACjB,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,0BAA0B,EAAE;QAC7C,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC,IAAI;QACzB,IAAI,EAAE,KAAK,CAAC,IAAI;KACjB,CAAC,CAAC;IAEH,iCAAiC;IACjC,8EAA8E;IAC9E,iFAAiF;IACjF,gEAAgE;IAChE,uDAAuD;IACvD,MAAM,MAAM,GAAG,MAAM,IAAA,iCAAe,EAClC,EAAE,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,EACrD,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,EAAE,CACjC,CAAC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE;QACzB,sCAAsC;QACtC,IAAI,CAAC,CAAC,KAAK,YAAY,KAAK,CAAC;YAAE,MAAM,KAAK,CAAC;QAE3C,+DAA+D;QAC/D,MAAM,IAAI,yCAAmB,CAAC,4BAA4B,KAAK,CAAC,OAAO,EAAE,EAAE;YACzE,QAAQ,EAAE,KAAK,CAAC,QAAQ;YACxB,IAAI,EAAE,KAAK,CAAC,IAAI;YAChB,KAAK,EAAE,KAAK;SACb,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,gFAAgF;IAChF,6EAA6E;IAC7E,MAAM,UAAU,GAAG,MAAM,CAAC,UAAU,IAAI,CAAC,CAAC;IAC1C,IAAI,UAAU,KAAK,GAAG,EAAE,CAAC;QACvB,0DAA0D;QAC1D,MAAM,UAAU,GAAG,IAAA,qCAAiB,EAAC,UAAU,CAAC,CAAC;QACjD,MAAM,IAAI,yCAAmB,CAAC,6BAA6B,UAAU,EAAE,EAAE;YACvE,QAAQ,EAAE,KAAK,CAAC,QAAQ;YACxB,IAAI,EAAE,KAAK,CAAC,IAAI;YAChB,UAAU;SACX,CAAC,CAAC;IACL,CAAC;IAED,iBAAiB;IACjB,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAY;QAC5C,OAAO,EAAE,MAAM,CAAC,OAAO;QACvB,aAAa,EAAE,MAAM,CAAC,aAAa;QACnC,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,IAAI,EAAE,KAAK,CAAC,IAAI;KACjB,CAAC,CAAC;IAEH,aAAa;IACb,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,0BAA0B,EAAE;QAC7C,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC,IAAI;QACzB,UAAU,EAAE,MAAM,CAAC,UAAU;KAC9B,CAAC,CAAC;IAEH,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC;AA1DW,QAAA,uBAAuB,2BA0DlC"}
@@ -13,6 +13,30 @@ import type { ApiGatewayResponse } from '../../../domain.objects/ApiGatewayRespo
13
13
  * any non-empty subset. the at-least-one rule is held by the TYPE at compile
14
14
  * time; this schema guards the field types
15
15
  *
16
+ * .note for a BODY-LESS response = `z.undefined()`, `z.void()` and `z.never()` are now
17
+ * EQUIVALENT, and each publishes honestly. all three accept `{ status: 204 }`, all
18
+ * three refuse an accidental `{ body: 'oops' }`, and all three serialize to
19
+ * `{ "not": {} }` — "no body is ever carried". there is no introspection penalty
20
+ * for any of them
21
+ *
22
+ * ⇒ **`z.undefined()` is the named idiom** — the readme states it, this spec's
23
+ * cases declare it, and it names what the value IS: the `body` key is absent, and
24
+ * `undefined` is the js word for absent. `z.never()` is a type-theory bottom type,
25
+ * which claims more than the domain means
26
+ *
27
+ * what to AVOID is `z.any()` / `z.unknown()`, which publish `{}` — a rubber-stamp
28
+ * that tells a caller ANY body may arrive, the one your handler never sends as well
29
+ *
30
+ * ⚠️ .this was NOT always so = `z.undefined()` and `z.void()` used to throw
31
+ * `Undefined cannot be represented in JSON Schema`, and the throw took down
32
+ * `getAllLambdaContracts` for the WHOLE service once `{ introspect: 'schema' }`
33
+ * arrived in `prep`. it was position-INDEPENDENT, so the `.optional()` this function
34
+ * adds was no shelter. `getJsonSchemaFromZod` now renders both shapes via an
35
+ * `override`, so the hazard is closed at the one door rather than dodged per schema
36
+ * .measured = `[case17]` of the peer spec drives all three candidates through a REAL
37
+ * introspection request and grades each. `[t1]` goes red if the render
38
+ * regresses to a throw
39
+ *
16
40
  * .as = zod cannot express "at least one key present", so it infers `{ status?, headers?,
17
41
  * body? }` — a superset of `PickAny` by exactly one member, `{}` — and no structural
18
42
  * assignment relates the two
@@ -15,6 +15,30 @@ const zod_1 = require("zod");
15
15
  * any non-empty subset. the at-least-one rule is held by the TYPE at compile
16
16
  * time; this schema guards the field types
17
17
  *
18
+ * .note for a BODY-LESS response = `z.undefined()`, `z.void()` and `z.never()` are now
19
+ * EQUIVALENT, and each publishes honestly. all three accept `{ status: 204 }`, all
20
+ * three refuse an accidental `{ body: 'oops' }`, and all three serialize to
21
+ * `{ "not": {} }` — "no body is ever carried". there is no introspection penalty
22
+ * for any of them
23
+ *
24
+ * ⇒ **`z.undefined()` is the named idiom** — the readme states it, this spec's
25
+ * cases declare it, and it names what the value IS: the `body` key is absent, and
26
+ * `undefined` is the js word for absent. `z.never()` is a type-theory bottom type,
27
+ * which claims more than the domain means
28
+ *
29
+ * what to AVOID is `z.any()` / `z.unknown()`, which publish `{}` — a rubber-stamp
30
+ * that tells a caller ANY body may arrive, the one your handler never sends as well
31
+ *
32
+ * ⚠️ .this was NOT always so = `z.undefined()` and `z.void()` used to throw
33
+ * `Undefined cannot be represented in JSON Schema`, and the throw took down
34
+ * `getAllLambdaContracts` for the WHOLE service once `{ introspect: 'schema' }`
35
+ * arrived in `prep`. it was position-INDEPENDENT, so the `.optional()` this function
36
+ * adds was no shelter. `getJsonSchemaFromZod` now renders both shapes via an
37
+ * `override`, so the hazard is closed at the one door rather than dodged per schema
38
+ * .measured = `[case17]` of the peer spec drives all three candidates through a REAL
39
+ * introspection request and grades each. `[t1]` goes red if the render
40
+ * regresses to a throw
41
+ *
18
42
  * .as = zod cannot express "at least one key present", so it infers `{ status?, headers?,
19
43
  * body? }` — a superset of `PickAny` by exactly one member, `{}` — and no structural
20
44
  * assignment relates the two
@@ -1 +1 @@
1
- {"version":3,"file":"asApiGatewayResponseSchema.js","sourceRoot":"","sources":["../../../../src/domain.operations/genLambdaEndpoint/genLambdaEndpoint.forApiGateway/asApiGatewayResponseSchema.ts"],"names":[],"mappings":";;;AAAA,6BAAwC;AAIxC;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACI,MAAM,0BAA0B,GAAG,CAAQ,KAEjD,EAAwC,EAAE,CACzC,OAAC,CAAC,MAAM,CAAC;IACP,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACpD,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE;CAC5B,CAAoD,CAAC;AAP3C,QAAA,0BAA0B,8BAOiB"}
1
+ {"version":3,"file":"asApiGatewayResponseSchema.js","sourceRoot":"","sources":["../../../../src/domain.operations/genLambdaEndpoint/genLambdaEndpoint.forApiGateway/asApiGatewayResponseSchema.ts"],"names":[],"mappings":";;;AAAA,6BAAwC;AAIxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACI,MAAM,0BAA0B,GAAG,CAAQ,KAEjD,EAAwC,EAAE,CACzC,OAAC,CAAC,MAAM,CAAC;IACP,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACpD,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE;CAC5B,CAAoD,CAAC;AAP3C,QAAA,0BAA0B,8BAOiB"}
@@ -64,6 +64,25 @@ export type ForApiGatewayInput<TInput, TBody> = {
64
64
  * .what = describes `inputAfter` — what `invoke` receives
65
65
  * .why = guards the point of consequence on the way in: a caller who sent the wrong
66
66
  * shape is refused before the handler runs
67
+ *
68
+ * ⚠️ .why ONE type param here, where the twin carries TWO = this asymmetry is CORRECT, and
69
+ * it reads like a missed parity fix. the twin declares
70
+ * `input: ZodSchema<TInput, TInputBefore>` (`forAskEndpoint.ts:80`) to track the
71
+ * codec's two faces — the wire face a caller sends, and the instance face `invoke`
72
+ * receives after a coerce.
73
+ *
74
+ * .why the twin NEEDS it = its returned handler is typed
75
+ * `LambdaHandlerInput<TInputBefore>` (`forAskEndpoint.ts:108`), so the WIRE face
76
+ * carries weight in its own public signature — a caller of the generated handler is
77
+ * typed against what they put on the wire
78
+ * .why this family does NOT = the handler this returns is pinned to
79
+ * `ApiGatewayRequestPayload` (`:196`), an envelope fixed by aws that does not vary
80
+ * with the schema. so the wire face has no slot to land in, and a `TInputBefore`
81
+ * declared here would be unused — it changes `TInput` inference not at all, since
82
+ * zod's `ZodType<Output, Input>` infers `TInput` from the Output position either way
83
+ *
84
+ * ⇒ so do NOT "fix" this to match the twin. the two families differ because their PUBLIC
85
+ * HANDLER TYPES differ, never because one of them was overlooked
67
86
  */
68
87
  input: ZodSchema<TInput>;
69
88
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"genLambdaEndpoint.forApiGateway.js","sourceRoot":"","sources":["../../../../src/domain.operations/genLambdaEndpoint/genLambdaEndpoint.forApiGateway/genLambdaEndpoint.forApiGateway.ts"],"names":[],"mappings":";;;;;;AAAA,uDAAgC;AAChC,iEAAwC;AACxC,+FAAqE;AACrE,yFAA+D;AAE/D,mDAAkD;AAQlD,4DAAyD;AACzD,6FAA0F;AAC1F,uGAAoG;AACpG,yFAAsF;AACtF,+EAA4E;AAC5E,yEAAsE;AACtE,yEAAsE;AAEtE,+EAA4E;AAC5E,uFAAoF;AACpF,yEAAiE;AACjE,6EAA0E;AAC1E,iEAA8D;AAC9D,sHAAmH;AACnH,sGAAmG;AACnG,gGAA6F;AAgI7F,8EAA8E;AAC9E,MAAM,qBAAqB,GAAG,CAAC,IAAgB,EAAE,EAAE;IACjD,OAAO;QACL;;;;;;;WAOG;QACH,GAAG,CAAC,IAAI,CAAC,OAAO,KAAK,GAAG,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC;QACvE,WAAW,EAAE,IAAI,CAAC,WAAW;QAC7B,OAAO,EAAE,IAAI,CAAC,OAAO,IAAI,4BAA4B;QAErD;;;;;WAKG;KACJ,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,WAAW,GAAG;IAClB;QACE,KAAK,EAAE,qBAAqB;QAC5B,UAAU,EAAE,CAAC,E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YACrB,WAAW;YACX,kBAAkB,EAAE,kBAAkB;SACvC,CAAC;QACF;;;;;WAKG;QACH,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAA,mBAAQ,EAAC,qBAAqB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACtE,IAAA,+BAAmB,EAAC;YAClB,YAAY,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE;SACjC,CAAC;QACF,IAAA,qFAAyC,EAAC,EAAE,SAAS,EAAE,WAAW,CAAC,IAAI,EAAE,CAAC;QAC1E,IAAA,uCAAkB,GAAE;QACpB,IAAA,uDAA0B,EAAC;YACzB,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,GAAG,EAAE,OAAO,EAAE,GAAG;YACjB;;;;;eAKG;YACH,YAAY,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI;YAC9C,aAAa,EAAE,CAAC,MAAM,EAAE,EAAE,CACxB,IAAA,iEAA+B,EAAC,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;SACjE,CAAC;QACF,IAAA,+DAA8B,EAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;KAChE,CAAC;IAEF;;;;;;;;OAQG;IACH,OAAO,IAAA,cAAK,EACV,KAGuC,CACxC,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;AACrB,CAAC,CAAC;AA3LW,QAAA,aAAa,iBA2LxB"}
1
+ {"version":3,"file":"genLambdaEndpoint.forApiGateway.js","sourceRoot":"","sources":["../../../../src/domain.operations/genLambdaEndpoint/genLambdaEndpoint.forApiGateway/genLambdaEndpoint.forApiGateway.ts"],"names":[],"mappings":";;;;;;AAAA,uDAAgC;AAChC,iEAAwC;AACxC,+FAAqE;AACrE,yFAA+D;AAE/D,mDAAkD;AAQlD,4DAAy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EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI;YAC9C,aAAa,EAAE,CAAC,MAAM,EAAE,EAAE,CACxB,IAAA,iEAA+B,EAAC,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;SACjE,CAAC;QACF,IAAA,+DAA8B,EAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;KAChE,CAAC;IAEF;;;;;;;;OAQG;IACH,OAAO,IAAA,cAAK,EACV,KAGuC,CACxC,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;AACrB,CAAC,CAAC;AA3LW,QAAA,aAAa,iBA2LxB"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.genZodBodyValidationMiddleware = void 0;
4
- const getValidationError_1 = require("../../middleware/getValidationError");
4
+ const getValidatedInput_1 = require("../../middleware/getValidatedInput");
5
5
  /**
6
6
  * .what = validates event.body against zod schema for API Gateway
7
7
  * .why = API Gateway events have body as separate property, validate just the body
@@ -25,10 +25,10 @@ const getValidationError_1 = require("../../middleware/getValidationError");
25
25
  const genZodBodyValidationMiddleware = (input) => {
26
26
  const before = async (request) => {
27
27
  const event = request.event;
28
- const result = input.schema.safeParse(event.body);
29
- if (!result.success) {
30
- throw (0, getValidationError_1.getValidationError)({ error: result.error });
31
- }
28
+ const inputAfter = (0, getValidatedInput_1.getValidatedInput)({
29
+ schema: input.schema,
30
+ value: event.body,
31
+ });
32
32
  // replace body with parsed (transformed) result
33
33
  /**
34
34
  * .note = DELIBERATE MUTATION — `request` is middy's only channel to hand a value onward,
@@ -40,13 +40,13 @@ const genZodBodyValidationMiddleware = (input) => {
40
40
  * (`^\s*(event|response|payload)\.\w+\s*=`), which finds exactly this one
41
41
  *
42
42
  * .as = `UnifiedApiGatewayEvent.body` is the PRE-validation shape (a string, or a parsed
43
- * json value), while `result.data` is `TInput` — the POST-validation domain shape.
43
+ * json value), while `inputAfter` is `TInput` — the POST-validation domain shape.
44
44
  * the two are unrelated by declaration, which is exactly right: this assignment IS
45
45
  * the step that changes which of them lives in the slot
46
46
  * .removal = drops once the input-side translator lands and the chain carries `inputAfter`
47
47
  * in its own slot rather than back in the event's `body` — the 🚧 F31 fulcrum
48
48
  */
49
- event.body = result.data;
49
+ event.body = inputAfter;
50
50
  };
51
51
  return { before };
52
52
  };
@@ -1 +1 @@
1
- {"version":3,"file":"genZodBodyValidationMiddleware.js","sourceRoot":"","sources":["../../../../../src/domain.operations/genLambdaEndpoint/genLambdaEndpoint.forApiGateway/middleware/genZodBodyValidationMiddleware.ts"],"names":[],"mappings":";;;AAGA,4EAAyE;AAGzE;;;;;;;;;;;;;;;;;;;GAmBG;AACI,MAAM,8BAA8B,GAAG,CAAS,KAEtD,EAEC,EAAE;IACF,MAAM,MAAM,GAAiC,KAAK,EAAE,OAAO,EAAE,EAAE;QAC7D,MAAM,KAAK,GAAG,OAAO,CAAC,KAA+B,CAAC;QACtD,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAClD,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;YACpB,MAAM,IAAA,uCAAkB,EAAC,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC;QACpD,CAAC;QACD,gDAAgD;QAChD;;;;;;;;;;;;;;;WAeG;QACH,KAAK,CAAC,IAAI,GAAG,MAAM,CAAC,IAAoC,CAAC;IAC3D,CAAC,CAAC;IAEF,OAAO,EAAE,MAAM,EAAE,CAAC;AACpB,CAAC,CAAC;AAhCW,QAAA,8BAA8B,kCAgCzC"}
1
+ {"version":3,"file":"genZodBodyValidationMiddleware.js","sourceRoot":"","sources":["../../../../../src/domain.operations/genLambdaEndpoint/genLambdaEndpoint.forApiGateway/middleware/genZodBodyValidationMiddleware.ts"],"names":[],"mappings":";;;AAGA,0EAAuE;AAGvE;;;;;;;;;;;;;;;;;;;GAmBG;AACI,MAAM,8BAA8B,GAAG,CAAS,KAEtD,EAEC,EAAE;IACF,MAAM,MAAM,GAAiC,KAAK,EAAE,OAAO,EAAE,EAAE;QAC7D,MAAM,KAAK,GAAG,OAAO,CAAC,KAA+B,CAAC;QACtD,MAAM,UAAU,GAAG,IAAA,qCAAiB,EAAC;YACnC,MAAM,EAAE,KAAK,CAAC,MAAM;YACpB,KAAK,EAAE,KAAK,CAAC,IAAI;SAClB,CAAC,CAAC;QAEH,gDAAgD;QAChD;;;;;;;;;;;;;;;WAeG;QACH,KAAK,CAAC,IAAI,GAAG,UAA0C,CAAC;IAC1D,CAAC,CAAC;IAEF,OAAO,EAAE,MAAM,EAAE,CAAC;AACpB,CAAC,CAAC;AAjCW,QAAA,8BAA8B,kCAiCzC"}
@@ -3,17 +3,19 @@ import type { Context } from 'aws-lambda';
3
3
  import type { ContextLogTrail } from 'sdk-logs';
4
4
  import type { ZodSchema } from 'zod';
5
5
  import type { ContextAwsLambdaServer } from '../../../domain.objects/ContextAwsLambdaServer';
6
+ import type { WrappedPayload } from '../../lambdaEndpointWire/frame/getIsWrappedPayload';
6
7
  import type { TranslateLog } from '../TranslateLog';
7
8
  /**
8
9
  * .what = wrapped payload format: event nested under `event` key with trail
9
- * .why = askLambdaEndpoint sends this format for trail propagation
10
+ * .why = re-exported from its canonical owner (`lambdaEndpointWire/frame`) so the
11
+ * public barrel surfaces the ONE declaration, never a structural twin.
12
+ * F16 lifted this shape to the common ancestor of the three contexts that
13
+ * touch the frame — askLambdaEndpoint emits it over the wire,
14
+ * runLambdaEndpoint/serde emits it in-process, getUnwrappedEventWithExid
15
+ * reads it. a second local declaration here would be the exact duplication
16
+ * that lift removed (`rule.prefer.most-common-denominator`).
10
17
  */
11
- export type WrappedPayload<TInput> = {
12
- event: TInput;
13
- trail: {
14
- exid?: string;
15
- };
16
- };
18
+ export type { WrappedPayload };
17
19
  /**
18
20
  * .what = flat payload format: trail mixed into input
19
21
  * .why = direct invocation or legacy callers may send this format
@@ -38,10 +40,35 @@ export type EndpointOperation<TInput, TOutput> = (input: {
38
40
  /**
39
41
  * .what = sdk contract type for genLambdaEndpoint input
40
42
  * .why = exported for consumer type inference
43
+ *
44
+ * ⚠️ .why `TInputBefore` exists = a zod schema is a CODEC, so it holds two faces, and they
45
+ * differ the moment a `.transform()` or an `X.contract()` sits in it. `ZodSchema<T>`
46
+ * is `ZodType<Output, Input>` with `Input` left at `unknown` — so one parameter named
47
+ * only the face the HANDLER sees, and the face the CALLER sends had no name at all
48
+ *
49
+ * - `TInput` = `inputAfter` — what `invoke` receives. an `X.contract()` position
50
+ * yields `WithImmute<Surfer>` here
51
+ * - `TInputBefore` = the WIRE face — what a caller puts on the wire. the same position
52
+ * yields the plain `Surfer` shape here
53
+ *
54
+ * ⇒ this is the TYPE-side twin of the `{ io: 'input' }` publish repair: both say the wire
55
+ * face is what crosses the border, and both were wrong in the same direction before.
56
+ * measured — a `[case11]` payload of plain objects failed to compile against a schema
57
+ * with three `X.contract()` positions, because the handler's own parameter demanded the
58
+ * instance face it is the codec's job to PRODUCE
59
+ *
60
+ * .note = it defaults to `TInput`, so every schema with no codec in it binds both to one type
61
+ * and no extant consumer sees a change (rule.require.retest-the-model-on-every-family
62
+ * — the pair collapses per-consumer here, which that rule names as the legitimate case)
63
+ *
64
+ * .note = the names trace to this repo's extant position vocabulary — `inputBefore` /
65
+ * `inputAfter`, as `genZodBodyValidationMiddleware`'s F31 `.removal` uses them. the
66
+ * rename of `TInput` to `TInputAfter` belongs with F31, which collapses both families'
67
+ * validators at their common ancestor (rule.prefer.names-by-position-over-claim)
41
68
  */
42
- export type GenLambdaEndpointInput<TInput, TOutput> = {
69
+ export type GenLambdaEndpointInput<TInput, TOutput, TInputBefore = TInput> = {
43
70
  schema: {
44
- input: ZodSchema<TInput>;
71
+ input: ZodSchema<TInput, TInputBefore>;
45
72
  output: ZodSchema<TOutput>;
46
73
  };
47
74
  invoke: EndpointOperation<TInput, TOutput>;
@@ -59,4 +86,4 @@ export type GenLambdaEndpointContext = ContextAwsLambdaServer;
59
86
  * constraint error (a caller fault becomes a response object, never a throw), internal
60
87
  * service error (logs loudly), io logger, trail, input + output validation
61
88
  */
62
- export declare const genLambdaEndpoint: <TInput, TOutput>(input: GenLambdaEndpointInput<TInput, TOutput>, context?: ContextAwsLambdaServer) => middy.MiddyfiedHandler<LambdaHandlerInput<TInput>, TOutput, Error, Context>;
89
+ export declare const genLambdaEndpoint: <TInput, TOutput, TInputBefore = TInput>(input: GenLambdaEndpointInput<TInput, TOutput, TInputBefore>, context?: ContextAwsLambdaServer) => middy.MiddyfiedHandler<LambdaHandlerInput<TInputBefore>, TOutput, Error, Context>;
@@ -58,8 +58,9 @@ input, context) => {
58
58
  (0, genZodEventValidationMiddleware_1.genZodEventValidationMiddleware)({ schema: input.schema.input }),
59
59
  ];
60
60
  /**
61
- * .as = assertion needed because middleware transforms LambdaHandlerInput<TInput> to TInput
62
- * before logic runs, but typescript cannot track this transformation through middy
61
+ * .as = assertion needed because middleware transforms LambdaHandlerInput<TInputBefore> into
62
+ * TInput before logic runs — it unwraps the envelope AND runs the codec — but
63
+ * typescript cannot track either transformation through middy
63
64
  * .removal = if middy gains typed middleware inference, remove cast
64
65
  */
65
66
  return (0, core_1.default)(logic).use(middlewares);
@@ -1 +1 @@
1
- {"version":3,"file":"genLambdaEndpoint.forAskEndpoint.js","sourceRoot":"","sources":["../../../../src/domain.operations/genLambdaEndpoint/genLambdaEndpoint.forAskEndpoint/genLambdaEndpoint.forAskEndpoint.ts"],"names":[],"mappings":";;;;;;AAAA,uDAAgC;AAMhC,4DAAyD;AACzD,6FAA0F;AAC1F,uGAAoG;AACpG,yFAAsF;AACtF,+EAA4E;AAC5E,yEAAsE;AACtE,yEAAsE;AAEtE,kGAA+F;AAsD/F;;;;;GAKG;AACI,MAAM,iBAAiB,GAAG;AAC/B,8FAA8F;AAC9F,yEAAyE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E,CAAC;IAEF;;;;OAIG;IACH,OAAO,IAAA,cAAK,EACV,KAGqB,CACtB,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;AACrB,CAAC,CAAC;AA/DW,QAAA,iBAAiB,qBA+D5B"}
1
+ {"version":3,"file":"genLambdaEndpoint.forAskEndpoint.js","sourceRoot":"","sources":["../../../../src/domain.operations/genLambdaEndpoint/genLambdaEndpoint.forAskEndpoint/genLambdaEndpoint.forAskEndpoint.ts"],"names":[],"mappings":";;;;;;AAAA,uDAAgC;AAOhC,4DAAyD;AACzD,6FAA0F;AAC1F,uGAAoG;AACpG,yFAAsF;AACtF,+EAA4E;AAC5E,yEAAsE;AACtE,yEAAsE;AAEtE,kGAA+F;AAkF/F;;;;;GAKG;AACI,MAAM,iBAAiB,GAAG;AAC/B,8FAA8F;AAC9F,yEAAyE;AACzE,KAA4D,EAC5D,OAAgC,EAQhC,EAAE;IACF,6DAA6D;IAC7D,MAAM,KAAK,GAAG,KAAK,EACjB,KAAa,EACb,aAAsB,EACJ,EAAE;QACpB,qFAAqF;QACrF,MAAM,EAAE,GAAG,EAAE,GAAG,IAAA,qCAAiB,EAAC,EAAE,OAAO,EAAE,aAAa,EAAE,CAAC,CAAC;QAE9D,sBAAsB;QACtB,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;QAExD,0CAA0C;QAC1C,OAAO,IAAA,uCAAkB,EAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;IACvE,CAAC,CAAC;IAEF,4BAA4B;IAC5B,wFAAwF;IACxF,2GAA2G;IAC3G,6CAA6C;IAC7C,+EAA+E;IAC/E,4DAA4D;IAC5D,MAAM,WAAW,GAAG;QAClB;;;;WAIG;QACH,IAAA,2DAA4B,EAAC,EAAE,aAAa,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC;QAC/D,IAAA,qEAAiC,EAAC,EAAE,aAAa,EAAE,KAAK,EAAE,CAAC;QAC3D,IAAA,uCAAkB,GAAE;QACpB,IAAA,6CAAqB,EAAC,EAAE,YAAY,EAAE,KAAK,CAAC,YAAY,EAAE,CAAC;QAC3D,IAAA,uDAA0B,EAAC;YACzB,MAAM,EAAE,KAAK,CAAC,MAAM;YACpB,GAAG,EAAE,OAAO,EAAE,GAAG;YACjB,sFAAsF;YACtF,YAAY,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK;YACxC,aAAa,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM;SAClC,CAAC;QACF,IAAA,iEAA+B,EAAC,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;KAChE,CAAC;IAEF;;;;;OAKG;IACH,OAAO,IAAA,cAAK,EACV,KAGqB,CACtB,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;AACrB,CAAC,CAAC;AAlEW,QAAA,iBAAiB,qBAkE5B"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.genZodEventValidationMiddleware = void 0;
4
- const getValidationError_1 = require("../../middleware/getValidationError");
4
+ const getValidatedInput_1 = require("../../middleware/getValidatedInput");
5
5
  /**
6
6
  * .what = validates the entire event against a zod schema
7
7
  * .why = the ask-endpoint family reaches this step with the caller's value AT `request.event`,
@@ -17,13 +17,13 @@ const getValidationError_1 = require("../../middleware/getValidationError");
17
17
  */
18
18
  const genZodEventValidationMiddleware = (input) => {
19
19
  const before = async (request) => {
20
- const result = input.schema.safeParse(request.event);
21
- if (!result.success) {
22
- throw (0, getValidationError_1.getValidationError)({ error: result.error });
23
- }
20
+ const inputAfter = (0, getValidatedInput_1.getValidatedInput)({
21
+ schema: input.schema,
22
+ value: request.event,
23
+ });
24
24
  // replace event with parsed (transformed) result
25
25
  // .note = DELIBERATE MUTATION — `request` is middy's only channel to hand a value onward
26
- request.event = result.data;
26
+ request.event = inputAfter;
27
27
  };
28
28
  return { before };
29
29
  };
@@ -1 +1 @@
1
- {"version":3,"file":"genZodEventValidationMiddleware.js","sourceRoot":"","sources":["../../../../../src/domain.operations/genLambdaEndpoint/genLambdaEndpoint.forAskEndpoint/middleware/genZodEventValidationMiddleware.ts"],"names":[],"mappings":";;;AAGA,4EAAyE;AAEzE;;;;;;;;;;;;GAYG;AACI,MAAM,+BAA+B,GAAG,CAAS,KAEvD,EAEC,EAAE;IACF,MAAM,MAAM,GAAiC,KAAK,EAAE,OAAO,EAAE,EAAE;QAC7D,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACrD,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;YACpB,MAAM,IAAA,uCAAkB,EAAC,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC;QACpD,CAAC;QACD,iDAAiD;QACjD,yFAAyF;QACzF,OAAO,CAAC,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC;IAC9B,CAAC,CAAC;IAEF,OAAO,EAAE,MAAM,EAAE,CAAC;AACpB,CAAC,CAAC;AAhBW,QAAA,+BAA+B,mCAgB1C"}
1
+ {"version":3,"file":"genZodEventValidationMiddleware.js","sourceRoot":"","sources":["../../../../../src/domain.operations/genLambdaEndpoint/genLambdaEndpoint.forAskEndpoint/middleware/genZodEventValidationMiddleware.ts"],"names":[],"mappings":";;;AAGA,0EAAuE;AAEvE;;;;;;;;;;;;GAYG;AACI,MAAM,+BAA+B,GAAG,CAAS,KAEvD,EAEC,EAAE;IACF,MAAM,MAAM,GAAiC,KAAK,EAAE,OAAO,EAAE,EAAE;QAC7D,MAAM,UAAU,GAAG,IAAA,qCAAiB,EAAC;YACnC,MAAM,EAAE,KAAK,CAAC,MAAM;YACpB,KAAK,EAAE,OAAO,CAAC,KAAK;SACrB,CAAC,CAAC;QAEH,iDAAiD;QACjD,yFAAyF;QACzF,OAAO,CAAC,KAAK,GAAG,UAAU,CAAC;IAC7B,CAAC,CAAC;IAEF,OAAO,EAAE,MAAM,EAAE,CAAC;AACpB,CAAC,CAAC;AAjBW,QAAA,+BAA+B,mCAiB1C"}
@@ -20,7 +20,7 @@ export declare const genInternalServiceErrorMiddleware: (opts: {
20
20
  * a response and a hung request is worse than a 500
21
21
  * false -> DISARMED; rethrow, so the invocation FAILS, cloudwatch records the error, and
22
22
  * the caller may retry — which is the right contract for a server fault when no
23
- * http client waits on it
23
+ * http caller waits on it
24
24
  *
25
25
  * .note = the off-state is `false`, never absent. an absent field would disable a guarantee by
26
26
  * omission, so a caller who forgot it would be indistinguishable from one who chose it
@@ -25,9 +25,27 @@ const genInternalServiceErrorMiddleware = (opts) => {
25
25
  return;
26
26
  // read the sdk-managed context once — trail may not have run yet
27
27
  const { log } = (0, asContextTrailed_1.asContextTrailed)({ context: request.context });
28
- // log the error via context.log or fallback to console
28
+ /**
29
+ * .what = log the fault, and name WHICH endpoint raised it
30
+ * .why = the wire body a caller meets is deliberately generic — no internal detail, no
31
+ * secret — so cloudwatch is the only surface that can carry a diagnosis. it carried
32
+ * the message and the stack and never the endpoint, which is the half that matters
33
+ * most where the fault is service-wide: one bad schema position 500s
34
+ * `getAllLambdaContracts` for every endpoint beside it, and the log said WHAT broke
35
+ * without WHERE
36
+ *
37
+ * .note = `functionName` is aws's own field on the lambda `Context`, never one this sdk
38
+ * writes — so it is read straight off `request.context` rather than through
39
+ * `asContextTrailed`, which exists for the sdk-added fields only
40
+ *
41
+ * ⚠️ .why the WIRE body is still bare = whether a 500 may name an internal schema position
42
+ * at all is a disclosure call, and it belongs to the wisher — tracked as `F02`.
43
+ * a log line crosses no trust boundary, so THIS half needed no such call
44
+ */
29
45
  const logError = log?.error ?? console.error;
30
46
  logError('handler.error', {
47
+ endpoint: request.context
48
+ ?.functionName ?? null,
31
49
  errorMessage: error.message,
32
50
  stackTrace: error.stack,
33
51
  });
@@ -1 +1 @@
1
- {"version":3,"file":"genInternalServiceErrorMiddleware.js","sourceRoot":"","sources":["../../../../src/domain.operations/genLambdaEndpoint/middleware/genInternalServiceErrorMiddleware.ts"],"names":[],"mappings":";;;AAEA,yDAAsD;AACtD,iEAA8D;AAE9D;;;;;;;;;GASG;AACI,MAAM,iCAAiC,GAAG,CAAC,IAqBjD,EAEC,EAAE;IACF,MAAM,OAAO,GAAiC,KAAK,EAAE,OAAO,EAAE,EAAE;QAC9D,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC;QAC5B,IAAI,CAAC,KAAK;YAAE,OAAO;QAEnB,4DAA4D;QAC5D,yEAAyE;QACzE,MAAM,YAAY,GAAG,IAAA,2CAAoB,EAAC,EAAE,KAAK,EAAE,CAAC,CAAC;QACrD,IAAI,YAAY;YAAE,OAAO;QAEzB,iEAAiE;QACjE,MAAM,EAAE,GAAG,EAAE,GAAG,IAAA,mCAAgB,EAAC,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;QAE/D,uDAAuD;QACvD,MAAM,QAAQ,GAAG,GAAG,EAAE,KAAK,IAAI,OAAO,CAAC,KAAK,CAAC;QAC7C,QAAQ,CAAC,eAAe,EAAE;YACxB,YAAY,EAAE,KAAK,CAAC,OAAO;YAC3B,UAAU,EAAE,KAAK,CAAC,KAAK;SACxB,CAAC,CAAC;QAEH,sFAAsF;QACtF,IAAI,IAAI,CAAC,aAAa,KAAK,KAAK;YAAE,MAAM,KAAK,CAAC;QAE9C,2DAA2D;QAC3D,MAAM,IAAI,GAAG,GAAG,EAAE,KAAK,EAAE,IAAI,IAAI,IAAI,CAAC;QAEtC;;;;;;WAMG;QACH,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,aAAa,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;IACzD,CAAC,CAAC;IACF,OAAO,EAAE,OAAO,EAAE,CAAC;AACrB,CAAC,CAAC;AA3DW,QAAA,iCAAiC,qCA2D5C"}
1
+ {"version":3,"file":"genInternalServiceErrorMiddleware.js","sourceRoot":"","sources":["../../../../src/domain.operations/genLambdaEndpoint/middleware/genInternalServiceErrorMiddleware.ts"],"names":[],"mappings":";;;AAEA,yDAAsD;AACtD,iEAA8D;AAE9D;;;;;;;;;GASG;AACI,MAAM,iCAAiC,GAAG,CAAC,IAqBjD,EAEC,EAAE;IACF,MAAM,OAAO,GAAiC,KAAK,EAAE,OAAO,EAAE,EAAE;QAC9D,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC;QAC5B,IAAI,CAAC,KAAK;YAAE,OAAO;QAEnB,4DAA4D;QAC5D,yEAAyE;QACzE,MAAM,YAAY,GAAG,IAAA,2CAAoB,EAAC,EAAE,KAAK,EAAE,CAAC,CAAC;QACrD,IAAI,YAAY;YAAE,OAAO;QAEzB,iEAAiE;QACjE,MAAM,EAAE,GAAG,EAAE,GAAG,IAAA,mCAAgB,EAAC,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;QAE/D;;;;;;;;;;;;;;;;WAgBG;QACH,MAAM,QAAQ,GAAG,GAAG,EAAE,KAAK,IAAI,OAAO,CAAC,KAAK,CAAC;QAC7C,QAAQ,CAAC,eAAe,EAAE;YACxB,QAAQ,EACL,OAAO,CAAC,OAAiD;gBACxD,EAAE,YAAY,IAAI,IAAI;YAC1B,YAAY,EAAE,KAAK,CAAC,OAAO;YAC3B,UAAU,EAAE,KAAK,CAAC,KAAK;SACxB,CAAC,CAAC;QAEH,sFAAsF;QACtF,IAAI,IAAI,CAAC,aAAa,KAAK,KAAK;YAAE,MAAM,KAAK,CAAC;QAE9C,2DAA2D;QAC3D,MAAM,IAAI,GAAG,GAAG,EAAE,KAAK,EAAE,IAAI,IAAI,IAAI,CAAC;QAEtC;;;;;;WAMG;QACH,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,aAAa,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;IACzD,CAAC,CAAC;IACF,OAAO,EAAE,OAAO,EAAE,CAAC;AACrB,CAAC,CAAC;AA9EW,QAAA,iCAAiC,qCA8E5C"}
@@ -1,7 +1,3 @@
1
1
  import { z } from 'zod';
2
2
  import type { JSONSchema } from 'zod/v4/core/json-schema';
3
- /**
4
- * .what = convert zod schema to JSON schema
5
- * .why = encapsulates zod api for future error handler if needed
6
- */
7
3
  export declare const getJsonSchemaFromZod: <T extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>(schema: T) => JSONSchema;