sdk-aws-lambda 0.4.1 → 0.5.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 (161) 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.forAskEndpoint/genLambdaEndpoint.forAskEndpoint.d.ts +9 -7
  42. package/dist/domain.operations/genLambdaEndpoint/genLambdaEndpoint.forAskEndpoint/genLambdaEndpoint.forAskEndpoint.js.map +1 -1
  43. package/dist/domain.operations/genLambdaEndpoint/middleware/getErrorResponseBody.d.ts +6 -19
  44. package/dist/domain.operations/genLambdaEndpoint/middleware/getErrorResponseBody.js +6 -1
  45. package/dist/domain.operations/genLambdaEndpoint/middleware/getErrorResponseBody.js.map +1 -1
  46. package/dist/domain.operations/genLambdaEndpoint/middleware/getUnwrappedEventWithExid.d.ts +1 -1
  47. package/dist/domain.operations/genLambdaEndpoint/middleware/getUnwrappedEventWithExid.js +1 -1
  48. package/dist/domain.operations/genLambdaEndpoint/middleware/getUnwrappedEventWithExid.js.map +1 -1
  49. package/dist/domain.operations/getAllLambdaContracts/getAllLambdaContracts.js +16 -35
  50. package/dist/domain.operations/getAllLambdaContracts/getAllLambdaContracts.js.map +1 -1
  51. package/dist/domain.operations/lambdaEndpointWire/context/getExidFromContext.js.map +1 -0
  52. package/dist/domain.operations/lambdaEndpointWire/context/getLogForExidExtraction.js.map +1 -0
  53. package/dist/domain.operations/lambdaEndpointWire/context/getOneTrailExid.d.ts +36 -0
  54. package/dist/domain.operations/lambdaEndpointWire/context/getOneTrailExid.js +53 -0
  55. package/dist/domain.operations/lambdaEndpointWire/context/getOneTrailExid.js.map +1 -0
  56. package/dist/domain.operations/lambdaEndpointWire/error/getIsContempErrorTagged.d.ts +1 -0
  57. package/dist/domain.operations/lambdaEndpointWire/error/getIsContempErrorTagged.js +32 -0
  58. package/dist/domain.operations/lambdaEndpointWire/error/getIsContempErrorTagged.js.map +1 -0
  59. package/dist/domain.operations/lambdaEndpointWire/error/getIsLambdaErrorResponse.d.ts +63 -0
  60. package/dist/domain.operations/lambdaEndpointWire/error/getIsLambdaErrorResponse.js +39 -0
  61. package/dist/domain.operations/lambdaEndpointWire/error/getIsLambdaErrorResponse.js.map +1 -0
  62. package/dist/domain.operations/lambdaEndpointWire/error/getLambdaErrorMetadata.js.map +1 -0
  63. package/dist/domain.operations/lambdaEndpointWire/error/getStackTraceString.js.map +1 -0
  64. package/dist/domain.operations/lambdaEndpointWire/error/throwIfCredentialsError.d.ts +54 -0
  65. package/dist/domain.operations/lambdaEndpointWire/error/throwIfCredentialsError.js +107 -0
  66. package/dist/domain.operations/lambdaEndpointWire/error/throwIfCredentialsError.js.map +1 -0
  67. package/dist/domain.operations/{genLambdaEndpoint/middleware → lambdaEndpointWire/frame}/getIsWrappedPayload.d.ts +6 -0
  68. package/dist/domain.operations/lambdaEndpointWire/frame/getIsWrappedPayload.js.map +1 -0
  69. package/dist/domain.operations/lambdaEndpointWire/getParsedResponse.d.ts +45 -0
  70. package/dist/domain.operations/lambdaEndpointWire/getParsedResponse.js +173 -0
  71. package/dist/domain.operations/lambdaEndpointWire/getParsedResponse.js.map +1 -0
  72. package/dist/domain.operations/lambdaEndpointWire/serde/asUnprefixedErrorMessage.d.ts +21 -0
  73. package/dist/domain.operations/lambdaEndpointWire/serde/asUnprefixedErrorMessage.js +33 -0
  74. package/dist/domain.operations/lambdaEndpointWire/serde/asUnprefixedErrorMessage.js.map +1 -0
  75. package/dist/domain.operations/lambdaEndpointWire/serde/getDecodedPayload.js.map +1 -0
  76. package/dist/domain.operations/lambdaEndpointWire/serde/getParsedJson.js.map +1 -0
  77. package/dist/domain.operations/runLambdaEndpoint/context/asLambdaContext.d.ts +24 -0
  78. package/dist/domain.operations/runLambdaEndpoint/context/asLambdaContext.js +70 -0
  79. package/dist/domain.operations/runLambdaEndpoint/context/asLambdaContext.js.map +1 -0
  80. package/dist/domain.operations/runLambdaEndpoint/dialect/LambdaEndpointRunOutput.d.ts +67 -0
  81. package/dist/domain.operations/runLambdaEndpoint/dialect/LambdaEndpointRunOutput.js +3 -0
  82. package/dist/domain.operations/runLambdaEndpoint/dialect/LambdaEndpointRunOutput.js.map +1 -0
  83. package/dist/domain.operations/runLambdaEndpoint/dialect/asLambdaEndpointDialect.d.ts +26 -0
  84. package/dist/domain.operations/runLambdaEndpoint/dialect/asLambdaEndpointDialect.js +43 -0
  85. package/dist/domain.operations/runLambdaEndpoint/dialect/asLambdaEndpointDialect.js.map +1 -0
  86. package/dist/domain.operations/runLambdaEndpoint/dialect/asLambdaEndpointOutput.d.ts +47 -0
  87. package/dist/domain.operations/runLambdaEndpoint/dialect/asLambdaEndpointOutput.js +89 -0
  88. package/dist/domain.operations/runLambdaEndpoint/dialect/asLambdaEndpointOutput.js.map +1 -0
  89. package/dist/domain.operations/runLambdaEndpoint/dialect/isLambdaEndpointErrorEnvelope.d.ts +73 -0
  90. package/dist/domain.operations/runLambdaEndpoint/dialect/isLambdaEndpointErrorEnvelope.js +108 -0
  91. package/dist/domain.operations/runLambdaEndpoint/dialect/isLambdaEndpointErrorEnvelope.js.map +1 -0
  92. package/dist/domain.operations/runLambdaEndpoint/error/isErrorLike.d.ts +50 -0
  93. package/dist/domain.operations/runLambdaEndpoint/error/isErrorLike.js +55 -0
  94. package/dist/domain.operations/runLambdaEndpoint/error/isErrorLike.js.map +1 -0
  95. package/dist/domain.operations/runLambdaEndpoint/guard/assertEventIsGiven.d.ts +56 -0
  96. package/dist/domain.operations/runLambdaEndpoint/guard/assertEventIsGiven.js +57 -0
  97. package/dist/domain.operations/runLambdaEndpoint/guard/assertEventIsGiven.js.map +1 -0
  98. package/dist/domain.operations/runLambdaEndpoint/guard/assertHandlerIsRunnable.d.ts +16 -0
  99. package/dist/domain.operations/runLambdaEndpoint/guard/assertHandlerIsRunnable.js +71 -0
  100. package/dist/domain.operations/runLambdaEndpoint/guard/assertHandlerIsRunnable.js.map +1 -0
  101. package/dist/domain.operations/runLambdaEndpoint/local/asLocalRunIdentity.d.ts +48 -0
  102. package/dist/domain.operations/runLambdaEndpoint/local/asLocalRunIdentity.js +57 -0
  103. package/dist/domain.operations/runLambdaEndpoint/local/asLocalRunIdentity.js.map +1 -0
  104. package/dist/domain.operations/runLambdaEndpoint/local/getOneHandlerFromServerlessYml.d.ts +18 -0
  105. package/dist/domain.operations/runLambdaEndpoint/local/getOneHandlerFromServerlessYml.js +239 -0
  106. package/dist/domain.operations/runLambdaEndpoint/local/getOneHandlerFromServerlessYml.js.map +1 -0
  107. package/dist/domain.operations/runLambdaEndpoint/runLambdaEndpoint.d.ts +82 -0
  108. package/dist/domain.operations/runLambdaEndpoint/runLambdaEndpoint.js +67 -0
  109. package/dist/domain.operations/runLambdaEndpoint/runLambdaEndpoint.js.map +1 -0
  110. package/dist/domain.operations/runLambdaEndpoint/runLambdaEndpoint.onReferenced.d.ts +120 -0
  111. package/dist/domain.operations/runLambdaEndpoint/runLambdaEndpoint.onReferenced.js +119 -0
  112. package/dist/domain.operations/runLambdaEndpoint/runLambdaEndpoint.onReferenced.js.map +1 -0
  113. package/dist/domain.operations/runLambdaEndpoint/runLambdaEndpoint.onSerialized.d.ts +98 -0
  114. package/dist/domain.operations/runLambdaEndpoint/runLambdaEndpoint.onSerialized.js +176 -0
  115. package/dist/domain.operations/runLambdaEndpoint/runLambdaEndpoint.onSerialized.js.map +1 -0
  116. package/dist/domain.operations/runLambdaEndpoint/serde/asFramedPayload.d.ts +41 -0
  117. package/dist/domain.operations/runLambdaEndpoint/serde/asFramedPayload.js +62 -0
  118. package/dist/domain.operations/runLambdaEndpoint/serde/asFramedPayload.js.map +1 -0
  119. package/dist/domain.operations/runLambdaEndpoint/serde/asWireFunctionErrorPayload.d.ts +40 -0
  120. package/dist/domain.operations/runLambdaEndpoint/serde/asWireFunctionErrorPayload.js +68 -0
  121. package/dist/domain.operations/runLambdaEndpoint/serde/asWireFunctionErrorPayload.js.map +1 -0
  122. package/dist/domain.operations/runLambdaEndpoint/serde/asWirePayload.d.ts +34 -0
  123. package/dist/domain.operations/runLambdaEndpoint/serde/asWirePayload.js +39 -0
  124. package/dist/domain.operations/runLambdaEndpoint/serde/asWirePayload.js.map +1 -0
  125. package/dist/domain.operations/runLambdaEndpoint/serde/asWireStripped.d.ts +25 -0
  126. package/dist/domain.operations/runLambdaEndpoint/serde/asWireStripped.js +85 -0
  127. package/dist/domain.operations/runLambdaEndpoint/serde/asWireStripped.js.map +1 -0
  128. package/dist/index.d.ts +9 -0
  129. package/dist/index.js +25 -1
  130. package/dist/index.js.map +1 -1
  131. package/package.json +2 -1
  132. package/readme.md +108 -49
  133. package/dist/domain.operations/askLambdaEndpoint/context/getExidFromContext.js.map +0 -1
  134. package/dist/domain.operations/askLambdaEndpoint/context/getLogForExidExtraction.js.map +0 -1
  135. package/dist/domain.operations/askLambdaEndpoint/error/getIsLambdaErrorResponse.d.ts +0 -42
  136. package/dist/domain.operations/askLambdaEndpoint/error/getIsLambdaErrorResponse.js +0 -21
  137. package/dist/domain.operations/askLambdaEndpoint/error/getIsLambdaErrorResponse.js.map +0 -1
  138. package/dist/domain.operations/askLambdaEndpoint/error/getLambdaErrorMetadata.js.map +0 -1
  139. package/dist/domain.operations/askLambdaEndpoint/error/getStackTraceString.js.map +0 -1
  140. package/dist/domain.operations/askLambdaEndpoint/serde/asUnprefixedErrorMessage.d.ts +0 -13
  141. package/dist/domain.operations/askLambdaEndpoint/serde/asUnprefixedErrorMessage.js +0 -26
  142. package/dist/domain.operations/askLambdaEndpoint/serde/asUnprefixedErrorMessage.js.map +0 -1
  143. package/dist/domain.operations/askLambdaEndpoint/serde/getDecodedPayload.js.map +0 -1
  144. package/dist/domain.operations/askLambdaEndpoint/serde/getParsedJson.js.map +0 -1
  145. package/dist/domain.operations/askLambdaEndpoint/serde/getParsedResponse.d.ts +0 -15
  146. package/dist/domain.operations/askLambdaEndpoint/serde/getParsedResponse.js +0 -100
  147. package/dist/domain.operations/askLambdaEndpoint/serde/getParsedResponse.js.map +0 -1
  148. package/dist/domain.operations/genLambdaEndpoint/middleware/getIsWrappedPayload.js.map +0 -1
  149. /package/dist/domain.operations/{askLambdaEndpoint → lambdaEndpointWire}/context/getExidFromContext.d.ts +0 -0
  150. /package/dist/domain.operations/{askLambdaEndpoint → lambdaEndpointWire}/context/getExidFromContext.js +0 -0
  151. /package/dist/domain.operations/{askLambdaEndpoint → lambdaEndpointWire}/context/getLogForExidExtraction.d.ts +0 -0
  152. /package/dist/domain.operations/{askLambdaEndpoint → lambdaEndpointWire}/context/getLogForExidExtraction.js +0 -0
  153. /package/dist/domain.operations/{askLambdaEndpoint → lambdaEndpointWire}/error/getLambdaErrorMetadata.d.ts +0 -0
  154. /package/dist/domain.operations/{askLambdaEndpoint → lambdaEndpointWire}/error/getLambdaErrorMetadata.js +0 -0
  155. /package/dist/domain.operations/{askLambdaEndpoint → lambdaEndpointWire}/error/getStackTraceString.d.ts +0 -0
  156. /package/dist/domain.operations/{askLambdaEndpoint → lambdaEndpointWire}/error/getStackTraceString.js +0 -0
  157. /package/dist/domain.operations/{genLambdaEndpoint/middleware → lambdaEndpointWire/frame}/getIsWrappedPayload.js +0 -0
  158. /package/dist/domain.operations/{askLambdaEndpoint → lambdaEndpointWire}/serde/getDecodedPayload.d.ts +0 -0
  159. /package/dist/domain.operations/{askLambdaEndpoint → lambdaEndpointWire}/serde/getDecodedPayload.js +0 -0
  160. /package/dist/domain.operations/{askLambdaEndpoint → lambdaEndpointWire}/serde/getParsedJson.d.ts +0 -0
  161. /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,EAAE,OAAO,CAAC,GAAG,CAAC,MAAM;QAC1B,QAAQ,EAAE,KAAK,CAAC,KAAK,CAAC,QAAQ;KAC/B,CAAC,CAAC;IAEH,6EAA6E;IAC7E,MAAM,eAAe,GAAG,KAAK,CAAC,MAAM,EAAE,OAAO,IAAI,SAAS,CAAC;IAC3D,MAAM,OAAO,GACX,eAAe,KAAK,SAAS;QAC3B,CAAC,CAAC,KAAK,CAAC,KAAK;QACb,CAAC,CAAC,IAAA,mCAAgB,EAAC,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,E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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,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,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C;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"}
@@ -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
@@ -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;AACzE,KAA8C,EAC9C,OAAgC,EAMhC,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;;;;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;AAyD/F;;;;;GAKG;AACI,MAAM,iBAAiB,GAAG;AAC/B,8FAA8F;AAC9F,yEAAyE;AACzE,KAA8C,EAC9C,OAAgC,EAMhC,EAAE;IACF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,EACV,KAGqB,CACtB,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;AACrB,CAAC,CAAC;AA/DW,QAAA,iBAAiB,qBA+D5B"}
@@ -1,24 +1,11 @@
1
+ import { type LambdaEndpointErrorResponseBodyAncient, type LambdaEndpointErrorResponseBodyContemp } from '../../../domain.objects/LambdaEndpointErrorResponseBody';
1
2
  /**
2
- * ancient error response body (flat format, backwards compat)
3
+ * .what = re-exports the envelope shapes this module WRITES
4
+ * .why = they are DECLARED in `domain.objects/`, because a peer operation types
5
+ * its public return against them. this module is their producer, never their
6
+ * owner — the re-export keeps its own consumers on one import.
3
7
  */
4
- export interface LambdaEndpointErrorResponseBodyAncient {
5
- errorMessage: string;
6
- errorType: string;
7
- causeMessage?: string;
8
- details?: unknown;
9
- }
10
- /**
11
- * contemp error response body (nested under error with explicit serde tag)
12
- */
13
- export interface LambdaEndpointErrorResponseBodyContemp {
14
- error: {
15
- _serde: 'LambdaEndpointError::contemp';
16
- class: string;
17
- message: string;
18
- cause?: string;
19
- details?: unknown;
20
- };
21
- }
8
+ export type { LambdaEndpointErrorResponseBodyAncient, LambdaEndpointErrorResponseBodyContemp, };
22
9
  /**
23
10
  * .what = constructs ancient error response body (flat format)
24
11
  * .why = backwards compat for ancient callers that expect errorType/errorMessage
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getErrorResponseBodyContemp = exports.getErrorResponseBodyAncient = void 0;
4
+ const LambdaEndpointErrorResponseBody_1 = require("../../../domain.objects/LambdaEndpointErrorResponseBody");
4
5
  /**
5
6
  * .what = extracts cause message from error if error has error cause
6
7
  * .why = named transformer for clear narrative
@@ -46,7 +47,11 @@ const getErrorResponseBodyContemp = (input) => {
46
47
  const details = getErrorMetadata({ error: input.error });
47
48
  return {
48
49
  error: {
49
- _serde: 'LambdaEndpointError::contemp',
50
+ // the tag is the whole discriminator, so it has ONE writer — a producer
51
+ // that spells it by hand can fork from the detectors, and that fork fails
52
+ // silent: the envelope stops to be recognized and a caller fault reads as
53
+ // a success payload.
54
+ _serde: LambdaEndpointErrorResponseBody_1.LAMBDA_ENDPOINT_ERROR_SERDE_CONTEMP,
50
55
  class: input.errorClass,
51
56
  message: input.error.message,
52
57
  ...(cause !== undefined ? { cause } : {}),
@@ -1 +1 @@
1
- {"version":3,"file":"getErrorResponseBody.js","sourceRoot":"","sources":["../../../../src/domain.operations/genLambdaEndpoint/middleware/getErrorResponseBody.ts"],"names":[],"mappings":";;;AAuBA;;;GAGG;AACH,MAAM,eAAe,GAAG,CAAC,KAAuB,EAAsB,EAAE;IACtE,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,YAAY,KAAK,EAAE,CAAC;QACvC,OAAO,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC;IACnC,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,gBAAgB,GAAG,CAAC,KAAuB,EAAuB,EAAE;IACxE,8EAA8E;IAC9E,IAAI,UAAU,IAAI,KAAK,CAAC,KAAK,EAAE,CAAC;QAC9B,OAAO,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC;IAC9B,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAEF;;;GAGG;AACI,MAAM,2BAA2B,GAAG,CAAC,KAG3C,EAA0C,EAAE;IAC3C,MAAM,YAAY,GAAG,eAAe,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC;IAC7D,MAAM,QAAQ,GAAG,gBAAgB,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC;IAE1D,OAAO;QACL,YAAY,EAAE,KAAK,CAAC,KAAK,CAAC,OAAO;QACjC,SAAS,EAAE,KAAK,CAAC,SAAS;QAC1B,GAAG,CAAC,YAAY,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACvD,GAAG,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACzD,CAAC;AACJ,CAAC,CAAC;AAbW,QAAA,2BAA2B,+BAatC;AAEF;;;GAGG;AACI,MAAM,2BAA2B,GAAG,CAAC,KAG3C,EAA0C,EAAE;IAC3C,MAAM,KAAK,GAAG,eAAe,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC;IACtD,MAAM,OAAO,GAAG,gBAAgB,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC;IAEzD,OAAO;QACL,KAAK,EAAE;YACL,MAAM,EAAE,8BAA8B;YACtC,KAAK,EAAE,KAAK,CAAC,UAAU;YACvB,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,OAAO;YAC5B,GAAG,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACzC,GAAG,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SAC9C;KACF,CAAC;AACJ,CAAC,CAAC;AAhBW,QAAA,2BAA2B,+BAgBtC"}
1
+ {"version":3,"file":"getErrorResponseBody.js","sourceRoot":"","sources":["../../../../src/domain.operations/genLambdaEndpoint/middleware/getErrorResponseBody.ts"],"names":[],"mappings":";;;AAAA,6GAIiE;AAajE;;;GAGG;AACH,MAAM,eAAe,GAAG,CAAC,KAAuB,EAAsB,EAAE;IACtE,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,YAAY,KAAK,EAAE,CAAC;QACvC,OAAO,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC;IACnC,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC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C;YAC3C,KAAK,EAAE,KAAK,CAAC,UAAU;YACvB,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,OAAO;YAC5B,GAAG,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACzC,GAAG,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SAC9C;KACF,CAAC;AACJ,CAAC,CAAC;AApBW,QAAA,2BAA2B,+BAoBtC"}
@@ -1,4 +1,4 @@
1
- import { type WrappedPayload } from './getIsWrappedPayload';
1
+ import { type WrappedPayload } from '../../lambdaEndpointWire/frame/getIsWrappedPayload';
2
2
  /**
3
3
  * .what = extracts exid and unwrapped event from payload, detects caller version
4
4
  * .why = handlers accept wrapped (with trail) or raw (without trail) payloads
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getUnwrappedEventWithExid = void 0;
4
- const getIsWrappedPayload_1 = require("./getIsWrappedPayload");
4
+ const getIsWrappedPayload_1 = require("../../lambdaEndpointWire/frame/getIsWrappedPayload");
5
5
  /**
6
6
  * .what = extracts exid and unwrapped event from payload, detects caller version
7
7
  * .why = handlers accept wrapped (with trail) or raw (without trail) payloads
@@ -1 +1 @@
1
- {"version":3,"file":"getUnwrappedEventWithExid.js","sourceRoot":"","sources":["../../../../src/domain.operations/genLambdaEndpoint/middleware/getUnwrappedEventWithExid.ts"],"names":[],"mappings":";;;AAAA,+DAG+B;AAE/B;;;;GAIG;AACI,MAAM,yBAAyB,GAAG,CAAS,KAEjD,EAIC,EAAE;IACF,IAAI,IAAA,yCAAmB,EAAC,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC;QACvC,OAAO;YACL,eAAe,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,IAAI,IAAI;YAClD,cAAc,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK;YACnC,eAAe,EAAE,IAAI;SACtB,CAAC;IACJ,CAAC;IACD,OAAO;QACL,eAAe,EAAE,IAAI;QACrB,cAAc,EAAE,KAAK,CAAC,OAAO;QAC7B,eAAe,EAAE,KAAK;KACvB,CAAC;AACJ,CAAC,CAAC;AAnBW,QAAA,yBAAyB,6BAmBpC"}
1
+ {"version":3,"file":"getUnwrappedEventWithExid.js","sourceRoot":"","sources":["../../../../src/domain.operations/genLambdaEndpoint/middleware/getUnwrappedEventWithExid.ts"],"names":[],"mappings":";;;AAAA,4FAG4D;AAE5D;;;;GAIG;AACI,MAAM,yBAAyB,GAAG,CAAS,KAEjD,EAIC,EAAE;IACF,IAAI,IAAA,yCAAmB,EAAC,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC;QACvC,OAAO;YACL,eAAe,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,IAAI,IAAI;YAClD,cAAc,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK;YACnC,eAAe,EAAE,IAAI;SACtB,CAAC;IACJ,CAAC;IACD,OAAO;QACL,eAAe,EAAE,IAAI;QACrB,cAAc,EAAE,KAAK,CAAC,OAAO;QAC7B,eAAe,EAAE,KAAK;KACvB,CAAC;AACJ,CAAC,CAAC;AAnBW,QAAA,yBAAyB,6BAmBpC"}
@@ -24,11 +24,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.getAllLambdaContracts = void 0;
27
- const LambdaCredentialsAbsentError_1 = require("../../domain.objects/LambdaCredentialsAbsentError");
28
27
  const LambdaIntrospectionBlockedError_1 = require("../../domain.objects/LambdaIntrospectionBlockedError");
29
28
  const LambdaServiceNotFoundError_1 = require("../../domain.objects/LambdaServiceNotFoundError");
30
29
  const asLambdaEndpoint_1 = require("../asLambdaEndpoint/asLambdaEndpoint");
31
30
  const getOneLambdaContract_1 = require("../getOneLambdaContract/getOneLambdaContract");
31
+ const throwIfCredentialsError_1 = require("../lambdaEndpointWire/error/throwIfCredentialsError");
32
32
  const asContractRecord_1 = require("./lambdaContract/asContractRecord");
33
33
  const getAllLambdaFunctionsByPrefix_1 = require("./lambdaFunction/getAllLambdaFunctionsByPrefix");
34
34
  /**
@@ -57,18 +57,29 @@ const getAllLambdaContracts = async (input, context) => {
57
57
  hint: 're-run with --env prep',
58
58
  });
59
59
  }
60
- // build prefix from service + access
61
- const prefix = `${input.which.service}-${context.env.access}-`;
60
+ // build prefix through asLambdaEndpoint — the SINGLE owner of the slug format
61
+ // (define.lambda-endpoint-ubiqlang). the prefix is the slug of an endpoint with
62
+ // an empty function: '{service}-{access}-'. a slug built through the owner cannot
63
+ // fork the join convention here (this was the 2nd hand-rolled speaker; now one).
64
+ const prefix = (0, asLambdaEndpoint_1.asLambdaEndpoint)({
65
+ service: input.which.service,
66
+ access: context.env.access,
67
+ function: '',
68
+ }).slug;
62
69
  // get or create LambdaClient (genLambdaSdk always returns valid client)
63
70
  const sdkLambda = context.aws?.lambda?.sdk ??
64
71
  (await Promise.resolve().then(() => __importStar(require('../../access/sdks/lambda/genLambdaSdk'))).then((m) => m.genLambdaSdk({ env: { region: context.env.region } })));
65
72
  // discover endpoint slugs by prefix. a creds failure surfaces on this first aws
66
73
  // call — map it to a caller-must-fix LambdaCredentialsAbsentError (with an unlock
67
74
  // hint), not a raw aws CredentialsProviderError
68
- const slugs = await (0, getAllLambdaFunctionsByPrefix_1.getAllLambdaFunctionsByPrefix)({ prefix }, { sdkLambda }).catch((error) => throwIfCredentialsError({
75
+ const slugs = await (0, getAllLambdaFunctionsByPrefix_1.getAllLambdaFunctionsByPrefix)({ prefix }, { sdkLambda }).catch((error) => (0, throwIfCredentialsError_1.throwIfCredentialsError)({
69
76
  error,
70
- service: input.which.service,
77
+ message: 'aws credentials are absent or expired; cannot introspect',
71
78
  access: context.env.access,
79
+ metadata: {
80
+ service: input.which.service,
81
+ access: context.env.access,
82
+ },
72
83
  }));
73
84
  // throw if no endpoints found
74
85
  if (slugs.length === 0) {
@@ -101,34 +112,4 @@ const getAllLambdaContracts = async (input, context) => {
101
112
  return (0, asContractRecord_1.asContractRecord)(entries);
102
113
  };
103
114
  exports.getAllLambdaContracts = getAllLambdaContracts;
104
- /**
105
- * .what = decide whether an error is an aws sdk credentials failure
106
- * .why = a creds failure is caller-must-fix (unlock + retry), not a malfunction —
107
- * the discovery boundary maps it to a hinted LambdaCredentialsAbsentError
108
- */
109
- const getIsCredentialsError = (error) => {
110
- if (!(error instanceof Error))
111
- return false;
112
- const name = error.name.toLowerCase();
113
- const message = error.message.toLowerCase();
114
- return (name.includes('credential') ||
115
- message.includes('credential') ||
116
- (message.includes('security token') && message.includes('expired')));
117
- };
118
- /**
119
- * .what = map an aws credentials failure to a hinted LambdaCredentialsAbsentError
120
- * .why = surface a creds failure with an unlock hint (caller-must-fix) rather than a
121
- * raw aws error; any non-creds error rethrows unchanged. returns `never` — it
122
- * always throws — so the caller keeps a non-null slug list.
123
- */
124
- const throwIfCredentialsError = (input) => {
125
- if (!getIsCredentialsError(input.error))
126
- throw input.error;
127
- throw new LambdaCredentialsAbsentError_1.LambdaCredentialsAbsentError('aws credentials are absent or expired; cannot introspect', {
128
- service: input.service,
129
- access: input.access,
130
- hint: 'unlock prep creds (e.g. `rhx keyrack unlock --owner ehmpath --env prep`), then re-run',
131
- cause: input.error instanceof Error ? input.error : undefined,
132
- });
133
- };
134
115
  //# sourceMappingURL=getAllLambdaContracts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getAllLambdaContracts.js","sourceRoot":"","sources":["../../../src/domain.operations/getAllLambdaContracts/getAllLambdaContracts.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,oGAAiG;AAEjG,0GAAuG;AACvG,gGAA6F;AAC7F,2EAAwE;AACxE,uFAAoF;AACpF,wEAAqE;AACrE,kGAA+F;AAE/F;;;;;;;;;;;;;;;GAeG;AACI,M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IAC5C,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;IACtC,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;IAC5C,OAAO,CACL,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC;QAC3B,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC;QAC9B,CAAC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC,IAAI,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CACpE,CAAC;AACJ,CAAC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,uBAAuB,GAAG,CAAC,KAIhC,EAAS,EAAE;IACV,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,KAAK,CAAC;QAAE,MAAM,KAAK,CAAC,KAAK,CAAC;IAC3D,MAAM,IAAI,2DAA4B,CACpC,0DAA0D,EAC1D;QACE,OAAO,EAAE,KAAK,CAAC,OAAO;QACtB,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,IAAI,EAAE,uFAAuF;QAC7F,KAAK,EAAE,KAAK,CAAC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS;KAC9D,CACF,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"getAllLambdaContracts.js","sourceRoot":"","sources":["../../../src/domain.operations/getAllLambdaContracts/getAllLambdaContracts.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,0GAAuG;AACvG,gGAA6F;AAC7F,2EAAwE;AACxE,uFAAoF;AACpF,iGAA8F;AAC9F,wEAAqE;AACrE,kGAA+F;AAE/F;;;;;;;;;;;;;;;GAeG;AACI,MAAM,qBAAqB,GAAG,KAAK,EACxC,KAIC,EACD,OAA+B,EACgB,EAAE;IACjD,mEAAmE;IACnE,+DAA+D;IAC/D,IAAI,OAAO,CAAC,GAAG,CAAC,MAAM,KAA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ExidFromContext.js","sourceRoot":"","sources":["../../../../src/domain.operations/lambdaEndpointWire/context/getExidFromContext.ts"],"names":[],"mappings":";;;AAAA,mCAAoC;AAEpC;;;;;GAKG;AACI,MAAM,kBAAkB,GAAG,CAAC,KAElC,EAAuD,EAAE;IACxD,8BAA8B;IAC9B,MAAM,IAAI,GAAG,KAAK,CAAC,GAAG,EAAE,KAAK,EAAE,IAAI,CAAC;IACpC,IAAI,IAAI;QAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC;IAE/C,kDAAkD;IAClD,OAAO,EAAE,IAAI,EAAE,QAAQ,IAAA,mBAAU,GAAE,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC;AAC/D,CAAC,CAAC;AATW,QAAA,kBAAkB,sBAS7B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getLogForExidExtraction.js","sourceRoot":"","sources":["../../../../src/domain.operations/lambdaEndpointWire/context/getLogForExidExtraction.ts"],"names":[],"mappings":";;;AAUA;;;;;;;GAOG;AACI,MAAM,uBAAuB,GAAG,CAAC,KAEvC,EAAoD,EAAE;IACrD,IAAI,CAAC,KAAK,CAAC,GAAG;QAAE,OAAO,IAAI,CAAC;IAC5B,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK;QAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;IAC7C,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,IAAI,IAAI,EAAE,EAAE,CAAC;AAC3D,CAAC,CAAC;AANW,QAAA,uBAAuB,2BAMlC"}
@@ -0,0 +1,36 @@
1
+ import type { ContextLogTrail } from 'sdk-logs';
2
+ /**
3
+ * .what = gets the caller's trail exid, and reports when one had to be generated
4
+ * .why = every caller that addresses an endpoint owes BOTH halves, and the second
5
+ * half is the one that gets dropped
6
+ *
7
+ * 🔴 **this exists because the two halves were a stated PARITY REQUIREMENT rather
8
+ * than a structural one.** `getExidFromContext` deliberately emits no log of
9
+ * its own — it returns `source` so each caller may report the fallback (see
10
+ * its docblock). that design is right, and it means every caller must
11
+ * remember to act on `source` — an obligation a reader cannot catch
12
+ * themselves miss.
13
+ *
14
+ * ⚠️ **and a caller that forgets diverges on an OBSERVABLE, with no test to
15
+ * catch it:**
16
+ *
17
+ * | if `source` were dropped at one locus | a caller who sent no trail exid sees |
18
+ * |---|---|
19
+ * | the locus that reports | `trail.exid.generated` on the debug log |
20
+ * | the locus that forgot | silence |
21
+ *
22
+ * ⇒ a migrant who omitted the trail would meet a clean run at one locus and a log
23
+ * full of the warn at the other — the exact surprise the locus-parity design
24
+ * exists to prevent, and no assertion anywhere would go red.
25
+ *
26
+ * ✅ **so the parity is now held by the CALL, never by a comment.** both callers
27
+ * invoke this one operation, so a change to the report reaches both at once and
28
+ * neither can drift from the other.
29
+ *
30
+ * .note = the debug emission is the sdk's own diagnostic. no payload, no output
31
+ * type, and no error stance moves with it, so this is observable to an operator
32
+ * and invisible to the wire.
33
+ */
34
+ export declare const getOneTrailExid: (input: {
35
+ log: ContextLogTrail['log'];
36
+ }) => string;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getOneTrailExid = void 0;
4
+ const getExidFromContext_1 = require("./getExidFromContext");
5
+ const getLogForExidExtraction_1 = require("./getLogForExidExtraction");
6
+ /**
7
+ * .what = gets the caller's trail exid, and reports when one had to be generated
8
+ * .why = every caller that addresses an endpoint owes BOTH halves, and the second
9
+ * half is the one that gets dropped
10
+ *
11
+ * 🔴 **this exists because the two halves were a stated PARITY REQUIREMENT rather
12
+ * than a structural one.** `getExidFromContext` deliberately emits no log of
13
+ * its own — it returns `source` so each caller may report the fallback (see
14
+ * its docblock). that design is right, and it means every caller must
15
+ * remember to act on `source` — an obligation a reader cannot catch
16
+ * themselves miss.
17
+ *
18
+ * ⚠️ **and a caller that forgets diverges on an OBSERVABLE, with no test to
19
+ * catch it:**
20
+ *
21
+ * | if `source` were dropped at one locus | a caller who sent no trail exid sees |
22
+ * |---|---|
23
+ * | the locus that reports | `trail.exid.generated` on the debug log |
24
+ * | the locus that forgot | silence |
25
+ *
26
+ * ⇒ a migrant who omitted the trail would meet a clean run at one locus and a log
27
+ * full of the warn at the other — the exact surprise the locus-parity design
28
+ * exists to prevent, and no assertion anywhere would go red.
29
+ *
30
+ * ✅ **so the parity is now held by the CALL, never by a comment.** both callers
31
+ * invoke this one operation, so a change to the report reaches both at once and
32
+ * neither can drift from the other.
33
+ *
34
+ * .note = the debug emission is the sdk's own diagnostic. no payload, no output
35
+ * type, and no error stance moves with it, so this is observable to an operator
36
+ * and invisible to the wire.
37
+ */
38
+ const getOneTrailExid = (input) => {
39
+ const { exid, source } = (0, getExidFromContext_1.getExidFromContext)({
40
+ log: (0, getLogForExidExtraction_1.getLogForExidExtraction)({ log: input.log }),
41
+ });
42
+ // report the fallback, so a caller that did not propagate a trail can see why
43
+ // their traces do not join up
44
+ if (source === 'generated') {
45
+ input.log.debug('trail.exid.generated', {
46
+ exid,
47
+ note: 'no trail exid in context, generated new one',
48
+ });
49
+ }
50
+ return exid;
51
+ };
52
+ exports.getOneTrailExid = getOneTrailExid;
53
+ //# sourceMappingURL=getOneTrailExid.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getOneTrailExid.js","sourceRoot":"","sources":["../../../../src/domain.operations/lambdaEndpointWire/context/getOneTrailExid.ts"],"names":[],"mappings":";;;AAEA,6DAA0D;AAC1D,uEAAoE;AAEpE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACI,MAAM,eAAe,GAAG,CAAC,KAE/B,EAAU,EAAE;IACX,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,IAAA,uCAAkB,EAAC;QAC1C,GAAG,EAAE,IAAA,iDAAuB,EAAC,EAAE,GAAG,EAAE,KAAK,CAAC,GAAG,EAAE,CAAC;KACjD,CAAC,CAAC;IAEH,8EAA8E;IAC9E,8BAA8B;IAC9B,IAAI,MAAM,KAAK,WAAW,EAAE,CAAC;QAC3B,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,sBAAsB,EAAE;YACtC,IAAI;YACJ,IAAI,EAAE,6CAA6C;SACpD,CAAC,CAAC;IACL,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAjBW,QAAA,eAAe,mBAiB1B"}
@@ -0,0 +1 @@
1
+ export declare const getIsContempErrorTagged: (value: unknown) => boolean;
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getIsContempErrorTagged = void 0;
4
+ const LambdaEndpointErrorResponseBody_1 = require("../../../domain.objects/LambdaEndpointErrorResponseBody");
5
+ /**
6
+ * .what = the contemp half of "is this an error envelope" — one shared tag check
7
+ * .why = both boundaries (wire + run) ask the identical question of a tag, so one
8
+ * writer. a fork between a producer and a detector fails SILENT: the detector
9
+ * stops to recognize the envelope, and a caller fault reads as a success payload.
10
+ *
11
+ * 🔴 matches the PREFIX, never the full tag. a decoder must accept an envelope from
12
+ * ANY codec version; an equality check would stop to recognize a `v2` envelope
13
+ * the day a `v1` service met one — the silent break above.
14
+ *
15
+ * 🔴 an ABSENT `@version` is version 0 — the v0.3.0 producer, already deployed,
16
+ * emits a bare `…::contemp`. tolerance is finite; it dies once every producer
17
+ * stamps a version.
18
+ *
19
+ * .note = the match is prefix + (`@` | end). a bare `startsWith` would admit a peer
20
+ * codec named `…::contempFOO`.
21
+ */
22
+ const CONTEMP_TAG_BOUNDARY = new RegExp(`^${LambdaEndpointErrorResponseBody_1.LAMBDA_ENDPOINT_ERROR_SERDE_CONTEMP_PREFIX}(@|$)`);
23
+ const getIsContempErrorTagged = (value) => {
24
+ if (typeof value !== 'object' || value === null)
25
+ return false;
26
+ const serde = value.error?._serde;
27
+ if (typeof serde !== 'string')
28
+ return false;
29
+ return CONTEMP_TAG_BOUNDARY.test(serde);
30
+ };
31
+ exports.getIsContempErrorTagged = getIsContempErrorTagged;
32
+ //# sourceMappingURL=getIsContempErrorTagged.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getIsContempErrorTagged.js","sourceRoot":"","sources":["../../../../src/domain.operations/lambdaEndpointWire/error/getIsContempErrorTagged.ts"],"names":[],"mappings":";;;AAAA,6GAAqH;AAErH;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,oBAAoB,GAAG,IAAI,MAAM,CACrC,IAAI,4EAA0C,OAAO,CACtD,CAAC;AAEK,MAAM,uBAAuB,GAAG,CAAC,KAAc,EAAW,EAAE;IACjE,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI;QAAE,OAAO,KAAK,CAAC;IAC9D,MAAM,KAAK,GAAI,KAA0C,CAAC,KAAK,EAAE,MAAM,CAAC;IACxE,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC;IAC5C,OAAO,oBAAoB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC1C,CAAC,CAAC;AALW,QAAA,uBAAuB,2BAKlC"}
@@ -0,0 +1,63 @@
1
+ import type { LambdaEndpointErrorResponseBodyAncient, LambdaEndpointErrorResponseBodyContemp } from '../../../domain.objects/LambdaEndpointErrorResponseBody';
2
+ /**
3
+ * contemp error response shape from genLambdaEndpoint
4
+ * .note = an ALIAS of the canonical shape, never a copy — so a field added
5
+ * there arrives here rather than waits for someone to notice.
6
+ */
7
+ export type LambdaErrorResponseContemp = LambdaEndpointErrorResponseBodyContemp;
8
+ /**
9
+ * ancient error response shape from AWS Lambda or old genLambdaEndpoint
10
+ * .note = stackTrace can be string[] (aws native) or string (genLambdaEndpoint)
11
+ *
12
+ * 🔴 **DERIVED from the canonical shape rather than hand-declared**, so the two
13
+ * can diverge only where this file says they may:
14
+ *
15
+ * | field | why it differs from the canonical |
16
+ * |---|---|
17
+ * | `errorType?` | **optional here.** aws emits a duration-exceeded fault with a message and no type — see `getIsAncientErrorResponse` below |
18
+ * | `stackTrace?` | **added here.** aws sends it on the wire; this package's own emitter does not (`getErrorResponseBodyAncient`) |
19
+ *
20
+ * 🟡 it is WIDER than the canonical, one-directionally and on purpose: it models
21
+ * what comes OFF a wire (aws, this package, or a legacy handler) where the
22
+ * canonical models what this package PUTS ON one. the derivation adds and
23
+ * never removes, and every other field tracks the canonical automatically.
24
+ */
25
+ export type LambdaErrorResponseAncient = Omit<LambdaEndpointErrorResponseBodyAncient, 'errorType'> & {
26
+ errorType?: string;
27
+ /**
28
+ * .note = string[] (aws native) or string (a legacy genLambdaEndpoint handler)
29
+ */
30
+ stackTrace?: string[] | string;
31
+ };
32
+ /**
33
+ * .what = checks if parsed response is a contemp lambda error response, and narrows it
34
+ * .why = the wire boundary needs the NARROW; the tag read itself is shared
35
+ *
36
+ * .note = the predicate body is `getIsContempErrorTagged`, which the run boundary
37
+ * calls too. what stays here is only the `parsed is …` narrow, because the two
38
+ * boundaries narrow to different declared types — see that operation for why
39
+ * the contemp halves share and the ancient halves do not.
40
+ */
41
+ export declare const getIsContempErrorResponse: (parsed: unknown) => parsed is LambdaEndpointErrorResponseBodyContemp;
42
+ /**
43
+ * .what = checks if parsed response is an ancient lambda error response
44
+ * .why = ancient errors have flat errorMessage property
45
+ *
46
+ * 🔴 the single-field check is DELIBERATE — it is not the question
47
+ * `isLambdaEndpointErrorEnvelope` asks:
48
+ *
49
+ * | predicate | requires | answers |
50
+ * |---|---|---|
51
+ * | this one, on the WIRE | `errorMessage` alone | *"did the UPSTREAM fault, by any route?"* |
52
+ * | `isLambdaEndpointErrorEnvelope`, on a RUN | both fields, both `string` | *"did MY HANDLER return an envelope?"* |
53
+ *
54
+ * ⚠️ `errorType` is optional because AWS makes it so — a lambda that exceeds its
55
+ * duration answers with an `errorMessage` and no type. a check that demanded
56
+ * both would refuse a payload this package's own types declare legal, and the
57
+ * downgrade is QUIET: the rich message is replaced by the generic
58
+ * fall-through one on the commonest production failure.
59
+ *
60
+ * .note = so this is intentionally LOOSER than its run-side peer. to "reconcile"
61
+ * the two is to delete a case, never to remove a drift.
62
+ */
63
+ export declare const getIsAncientErrorResponse: (parsed: unknown) => parsed is LambdaErrorResponseAncient;
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getIsAncientErrorResponse = exports.getIsContempErrorResponse = void 0;
4
+ const getIsContempErrorTagged_1 = require("./getIsContempErrorTagged");
5
+ /**
6
+ * .what = checks if parsed response is a contemp lambda error response, and narrows it
7
+ * .why = the wire boundary needs the NARROW; the tag read itself is shared
8
+ *
9
+ * .note = the predicate body is `getIsContempErrorTagged`, which the run boundary
10
+ * calls too. what stays here is only the `parsed is …` narrow, because the two
11
+ * boundaries narrow to different declared types — see that operation for why
12
+ * the contemp halves share and the ancient halves do not.
13
+ */
14
+ const getIsContempErrorResponse = (parsed) => (0, getIsContempErrorTagged_1.getIsContempErrorTagged)(parsed);
15
+ exports.getIsContempErrorResponse = getIsContempErrorResponse;
16
+ /**
17
+ * .what = checks if parsed response is an ancient lambda error response
18
+ * .why = ancient errors have flat errorMessage property
19
+ *
20
+ * 🔴 the single-field check is DELIBERATE — it is not the question
21
+ * `isLambdaEndpointErrorEnvelope` asks:
22
+ *
23
+ * | predicate | requires | answers |
24
+ * |---|---|---|
25
+ * | this one, on the WIRE | `errorMessage` alone | *"did the UPSTREAM fault, by any route?"* |
26
+ * | `isLambdaEndpointErrorEnvelope`, on a RUN | both fields, both `string` | *"did MY HANDLER return an envelope?"* |
27
+ *
28
+ * ⚠️ `errorType` is optional because AWS makes it so — a lambda that exceeds its
29
+ * duration answers with an `errorMessage` and no type. a check that demanded
30
+ * both would refuse a payload this package's own types declare legal, and the
31
+ * downgrade is QUIET: the rich message is replaced by the generic
32
+ * fall-through one on the commonest production failure.
33
+ *
34
+ * .note = so this is intentionally LOOSER than its run-side peer. to "reconcile"
35
+ * the two is to delete a case, never to remove a drift.
36
+ */
37
+ const getIsAncientErrorResponse = (parsed) => typeof parsed === 'object' && parsed !== null && 'errorMessage' in parsed;
38
+ exports.getIsAncientErrorResponse = getIsAncientErrorResponse;
39
+ //# sourceMappingURL=getIsLambdaErrorResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getIsLambdaErrorResponse.js","sourceRoot":"","sources":["../../../../src/domain.operations/lambdaEndpointWire/error/getIsLambdaErrorResponse.ts"],"names":[],"mappings":";;;AAIA,uEAAoE;AAqCpE;;;;;;;;GAQG;AACI,MAAM,yBAAyB,GAAG,CACvC,MAAe,EACuB,EAAE,CAAC,IAAA,iDAAuB,EAAC,MAAM,CAAC,CAAC;AAF9D,QAAA,yBAAyB,6BAEqC;AAE3E;;;;;;;;;;;;;;;;;;;;GAoBG;AACI,MAAM,yBAAyB,GAAG,CACvC,MAAe,EACuB,EAAE,CACxC,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,IAAI,IAAI,cAAc,IAAI,MAAM,CAAC;AAH/D,QAAA,yBAAyB,6BAGsC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getLambdaErrorMetadata.js","sourceRoot":"","sources":["../../../../src/domain.operations/lambdaEndpointWire/error/getLambdaErrorMetadata.ts"],"names":[],"mappings":";;;AAWA;;;GAGG;AACI,MAAM,sBAAsB,GAAG,CAAC,KAEtC,EAAuB,EAAE;IACxB,OAAO;QACL,GAAG,CAAC,KAAK,CAAC,aAAa,CAAC,OAAO,KAAK,SAAS,IAAI;YAC/C,OAAO,EAAE,KAAK,CAAC,aAAa,CAAC,OAAO;SACrC,CAAC;QACF,GAAG,CAAC,KAAK,CAAC,aAAa,CAAC,YAAY,KAAK,SAAS,IAAI;YACpD,YAAY,EAAE,KAAK,CAAC,aAAa,CAAC,YAAY;SAC/C,CAAC;KACH,CAAC;AACJ,CAAC,CAAC;AAXW,QAAA,sBAAsB,0BAWjC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getStackTraceString.js","sourceRoot":"","sources":["../../../../src/domain.operations/lambdaEndpointWire/error/getStackTraceString.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACI,MAAM,mBAAmB,GAAG,CAAC,KAEnC,EAAsB,EAAE;IACvB,IAAI,KAAK,CAAC,UAAU,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC;IACrD,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC;QAAE,OAAO,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACxE,OAAO,KAAK,CAAC,UAAU,CAAC;AAC1B,CAAC,CAAC;AANW,QAAA,mBAAmB,uBAM9B"}