@geekmidas/constructs 3.0.7 → 3.0.9

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 (467) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/{Construct-BXG8cFSm.cjs → Construct-B14miJ6P.cjs} +95 -10
  3. package/dist/Construct-B14miJ6P.cjs.map +1 -0
  4. package/dist/{Construct-BjpXFNxy.d.mts → Construct-CXqvzglu.d.cts} +11 -6
  5. package/dist/{Construct-BjpXFNxy.d.mts.map → Construct-CXqvzglu.d.cts.map} +1 -1
  6. package/dist/{Construct-CQ9zV58W.mjs → Construct-CdJY2DJS.mjs} +83 -9
  7. package/dist/Construct-CdJY2DJS.mjs.map +1 -0
  8. package/dist/{Construct-CX7HyFfT.d.cts → Construct-D0n7QTaI.d.mts} +13 -8
  9. package/dist/Construct-D0n7QTaI.d.mts.map +1 -0
  10. package/dist/{Endpoint-CGdCGJkC.d.cts → Endpoint-CE7qHX5S.d.cts} +143 -28
  11. package/dist/Endpoint-CE7qHX5S.d.cts.map +1 -0
  12. package/dist/{Endpoint-BET0JSZK.d.mts → Endpoint-NvjIednd.d.mts} +143 -28
  13. package/dist/Endpoint-NvjIednd.d.mts.map +1 -0
  14. package/dist/{HonoEndpointAdaptor-B5fKdLi7.cjs → HonoEndpointAdaptor-Dl8BW_9u.cjs} +91 -25
  15. package/dist/HonoEndpointAdaptor-Dl8BW_9u.cjs.map +1 -0
  16. package/dist/{HonoEndpointAdaptor-DOUODM7n.mjs → HonoEndpointAdaptor-nHYMdbBi.mjs} +74 -8
  17. package/dist/HonoEndpointAdaptor-nHYMdbBi.mjs.map +1 -0
  18. package/dist/{Subscriber-1rDE7HuM.d.cts → Subscriber-D8WkA8np.d.cts} +3 -3
  19. package/dist/{Subscriber-1rDE7HuM.d.cts.map → Subscriber-D8WkA8np.d.cts.map} +1 -1
  20. package/dist/{Subscriber-9ObcUdcC.d.mts → Subscriber-Tft61-YG.d.mts} +5 -5
  21. package/dist/Subscriber-Tft61-YG.d.mts.map +1 -0
  22. package/dist/adaptors/aws.cjs +742 -21
  23. package/dist/adaptors/aws.cjs.map +1 -0
  24. package/dist/adaptors/aws.d.cts +221 -17
  25. package/dist/adaptors/aws.d.cts.map +1 -0
  26. package/dist/adaptors/aws.d.mts +221 -17
  27. package/dist/adaptors/aws.d.mts.map +1 -0
  28. package/dist/adaptors/aws.mjs +739 -18
  29. package/dist/adaptors/aws.mjs.map +1 -0
  30. package/dist/adaptors/hono.cjs +5 -12
  31. package/dist/adaptors/hono.d.cts +52 -10
  32. package/dist/adaptors/hono.d.cts.map +1 -0
  33. package/dist/adaptors/hono.d.mts +52 -10
  34. package/dist/adaptors/hono.d.mts.map +1 -0
  35. package/dist/adaptors/hono.mjs +5 -12
  36. package/dist/adaptors/testing.cjs +392 -21
  37. package/dist/adaptors/testing.cjs.map +1 -0
  38. package/dist/adaptors/testing.d.cts +177 -14
  39. package/dist/adaptors/testing.d.cts.map +1 -0
  40. package/dist/adaptors/testing.d.mts +177 -14
  41. package/dist/adaptors/testing.d.mts.map +1 -0
  42. package/dist/adaptors/testing.mjs +388 -17
  43. package/dist/adaptors/testing.mjs.map +1 -0
  44. package/dist/crons/index.cjs +82 -10
  45. package/dist/crons/index.cjs.map +1 -1
  46. package/dist/crons/index.d.cts +44 -7
  47. package/dist/crons/index.d.cts.map +1 -1
  48. package/dist/crons/index.d.mts +45 -11
  49. package/dist/crons/index.d.mts.map +1 -1
  50. package/dist/crons/index.mjs +79 -7
  51. package/dist/crons/index.mjs.map +1 -1
  52. package/dist/endpoints/index.cjs +741 -23
  53. package/dist/endpoints/index.cjs.map +1 -1
  54. package/dist/endpoints/index.d.cts +336 -14
  55. package/dist/endpoints/index.d.cts.map +1 -1
  56. package/dist/endpoints/index.d.mts +335 -14
  57. package/dist/endpoints/index.d.mts.map +1 -1
  58. package/dist/endpoints/index.mjs +730 -12
  59. package/dist/endpoints/index.mjs.map +1 -1
  60. package/dist/functions/index.cjs +5 -8
  61. package/dist/functions/index.d.cts +2 -5
  62. package/dist/functions/index.d.mts +2 -5
  63. package/dist/functions/index.mjs +2 -5
  64. package/dist/functions-DiaRAdfp.cjs +2893 -0
  65. package/dist/functions-DiaRAdfp.cjs.map +1 -0
  66. package/dist/functions-GmSHFbpr.mjs +2864 -0
  67. package/dist/functions-GmSHFbpr.mjs.map +1 -0
  68. package/dist/index-Cq4fz8uM.d.mts +132 -0
  69. package/dist/index-Cq4fz8uM.d.mts.map +1 -0
  70. package/dist/index-CzIMpK-e.d.cts +135 -0
  71. package/dist/index-CzIMpK-e.d.cts.map +1 -0
  72. package/dist/index.cjs +1 -1
  73. package/dist/index.d.cts +3 -3
  74. package/dist/index.d.mts +3 -3
  75. package/dist/index.mjs +1 -1
  76. package/dist/lazyAccessors-5h-aWohM.mjs +1894 -0
  77. package/dist/lazyAccessors-5h-aWohM.mjs.map +1 -0
  78. package/dist/lazyAccessors-Bc1u42WC.cjs +1971 -0
  79. package/dist/lazyAccessors-Bc1u42WC.cjs.map +1 -0
  80. package/dist/processAudits-B0PbJf1Z.mjs +80 -0
  81. package/dist/processAudits-B0PbJf1Z.mjs.map +1 -0
  82. package/dist/processAudits-CUko08pi.cjs +92 -0
  83. package/dist/processAudits-CUko08pi.cjs.map +1 -0
  84. package/dist/subscribers/index.cjs +77 -6
  85. package/dist/subscribers/index.cjs.map +1 -1
  86. package/dist/subscribers/index.d.cts +27 -5
  87. package/dist/subscribers/index.d.cts.map +1 -1
  88. package/dist/subscribers/index.d.mts +26 -5
  89. package/dist/subscribers/index.d.mts.map +1 -1
  90. package/dist/subscribers/index.mjs +74 -3
  91. package/dist/subscribers/index.mjs.map +1 -1
  92. package/dist/{telemetry-BTaiRqPo.d.cts → telemetry-Bt0vK4ma.d.cts} +1 -1
  93. package/dist/{telemetry-BJo1gcV1.d.mts.map → telemetry-Bt0vK4ma.d.cts.map} +1 -1
  94. package/dist/{telemetry-BJo1gcV1.d.mts → telemetry-COvVBKBM.d.mts} +1 -1
  95. package/dist/{telemetry-BTaiRqPo.d.cts.map → telemetry-COvVBKBM.d.mts.map} +1 -1
  96. package/dist/{types-B5H3piDg.d.cts → types-B8YlI4cx.d.cts} +1 -1
  97. package/dist/{types-B5H3piDg.d.cts.map → types-B8YlI4cx.d.cts.map} +1 -1
  98. package/dist/{types-BqPOdHEm.d.mts → types-BA3eK4xj.d.mts} +1 -1
  99. package/dist/{types-BqPOdHEm.d.mts.map → types-BA3eK4xj.d.mts.map} +1 -1
  100. package/dist/types.d.cts +1 -1
  101. package/dist/types.d.mts +1 -1
  102. package/package.json +12 -12
  103. package/src/Construct.ts +26 -8
  104. package/src/__tests__/Construct.environment.spec.ts +123 -0
  105. package/src/endpoints/AmazonApiGatewayEndpointAdaptor.ts +23 -4
  106. package/src/endpoints/Endpoint.ts +14 -1
  107. package/src/endpoints/EndpointBuilder.ts +25 -0
  108. package/src/endpoints/HonoEndpointAdaptor.ts +24 -1
  109. package/src/endpoints/__tests__/AmazonApiGatewayV2EndpointAdaptor.responseType.spec.ts +111 -0
  110. package/src/endpoints/__tests__/Endpoint.spec.ts +29 -0
  111. package/src/endpoints/__tests__/EndpointBuilder.responseType.spec.ts +47 -0
  112. package/src/endpoints/__tests__/HonoEndpointAdaptor.responseType.spec.ts +128 -0
  113. package/src/endpoints/__tests__/MswEndpointAdaptor.spec.ts +1 -9
  114. package/tsdown.config.ts +30 -1
  115. package/dist/AWSLambdaFunction-CC8gMZhz.d.mts +0 -32
  116. package/dist/AWSLambdaFunction-CC8gMZhz.d.mts.map +0 -1
  117. package/dist/AWSLambdaFunction-CPEAl5nZ.cjs +0 -120
  118. package/dist/AWSLambdaFunction-CPEAl5nZ.cjs.map +0 -1
  119. package/dist/AWSLambdaFunction-DJiCAPAf.mjs +0 -114
  120. package/dist/AWSLambdaFunction-DJiCAPAf.mjs.map +0 -1
  121. package/dist/AWSLambdaFunction-tzqv5XU6.d.cts +0 -32
  122. package/dist/AWSLambdaFunction-tzqv5XU6.d.cts.map +0 -1
  123. package/dist/AWSLambdaSubscriberAdaptor-Cj1wjkUP.d.cts +0 -36
  124. package/dist/AWSLambdaSubscriberAdaptor-Cj1wjkUP.d.cts.map +0 -1
  125. package/dist/AWSLambdaSubscriberAdaptor-Cmx9OQGG.d.mts +0 -36
  126. package/dist/AWSLambdaSubscriberAdaptor-Cmx9OQGG.d.mts.map +0 -1
  127. package/dist/AWSLambdaSubscriberAdaptor-RKwKYLl1.mjs +0 -172
  128. package/dist/AWSLambdaSubscriberAdaptor-RKwKYLl1.mjs.map +0 -1
  129. package/dist/AWSLambdaSubscriberAdaptor-eZ3qoKvK.cjs +0 -178
  130. package/dist/AWSLambdaSubscriberAdaptor-eZ3qoKvK.cjs.map +0 -1
  131. package/dist/AmazonApiGatewayEndpointAdaptor-BIltcbAc.cjs +0 -277
  132. package/dist/AmazonApiGatewayEndpointAdaptor-BIltcbAc.cjs.map +0 -1
  133. package/dist/AmazonApiGatewayEndpointAdaptor-BpYtYCeW.mjs +0 -271
  134. package/dist/AmazonApiGatewayEndpointAdaptor-BpYtYCeW.mjs.map +0 -1
  135. package/dist/AmazonApiGatewayEndpointAdaptor-DA0rS_1Y.d.mts +0 -124
  136. package/dist/AmazonApiGatewayEndpointAdaptor-DA0rS_1Y.d.mts.map +0 -1
  137. package/dist/AmazonApiGatewayEndpointAdaptor-DqNcQGMf.d.cts +0 -124
  138. package/dist/AmazonApiGatewayEndpointAdaptor-DqNcQGMf.d.cts.map +0 -1
  139. package/dist/AmazonApiGatewayV1EndpointAdaptor-C7rJzNvG.d.mts +0 -23
  140. package/dist/AmazonApiGatewayV1EndpointAdaptor-C7rJzNvG.d.mts.map +0 -1
  141. package/dist/AmazonApiGatewayV1EndpointAdaptor-CRwyWT6t.mjs +0 -42
  142. package/dist/AmazonApiGatewayV1EndpointAdaptor-CRwyWT6t.mjs.map +0 -1
  143. package/dist/AmazonApiGatewayV1EndpointAdaptor-DEETT6Wj.cjs +0 -47
  144. package/dist/AmazonApiGatewayV1EndpointAdaptor-DEETT6Wj.cjs.map +0 -1
  145. package/dist/AmazonApiGatewayV1EndpointAdaptor-DcN2fYsv.d.cts +0 -23
  146. package/dist/AmazonApiGatewayV1EndpointAdaptor-DcN2fYsv.d.cts.map +0 -1
  147. package/dist/AmazonApiGatewayV2EndpointAdaptor-C2qO8FN6.cjs +0 -48
  148. package/dist/AmazonApiGatewayV2EndpointAdaptor-C2qO8FN6.cjs.map +0 -1
  149. package/dist/AmazonApiGatewayV2EndpointAdaptor-Cn9UoRgB.d.cts +0 -22
  150. package/dist/AmazonApiGatewayV2EndpointAdaptor-Cn9UoRgB.d.cts.map +0 -1
  151. package/dist/AmazonApiGatewayV2EndpointAdaptor-d7NP-bZX.d.mts +0 -22
  152. package/dist/AmazonApiGatewayV2EndpointAdaptor-d7NP-bZX.d.mts.map +0 -1
  153. package/dist/AmazonApiGatewayV2EndpointAdaptor-m9YKI294.mjs +0 -42
  154. package/dist/AmazonApiGatewayV2EndpointAdaptor-m9YKI294.mjs.map +0 -1
  155. package/dist/Authorizer-BZ1LcZFt.cjs +0 -92
  156. package/dist/Authorizer-BZ1LcZFt.cjs.map +0 -1
  157. package/dist/Authorizer-C5_FC_Rq.d.mts +0 -126
  158. package/dist/Authorizer-C5_FC_Rq.d.mts.map +0 -1
  159. package/dist/Authorizer-CZpg1Jqk.mjs +0 -68
  160. package/dist/Authorizer-CZpg1Jqk.mjs.map +0 -1
  161. package/dist/Authorizer-DWtwC8we.d.cts +0 -126
  162. package/dist/Authorizer-DWtwC8we.d.cts.map +0 -1
  163. package/dist/BaseFunctionBuilder-C-4hYTfj.d.cts +0 -42
  164. package/dist/BaseFunctionBuilder-C-4hYTfj.d.cts.map +0 -1
  165. package/dist/BaseFunctionBuilder-C3rQMoWb.mjs +0 -70
  166. package/dist/BaseFunctionBuilder-C3rQMoWb.mjs.map +0 -1
  167. package/dist/BaseFunctionBuilder-DXf6HK-N.cjs +0 -76
  168. package/dist/BaseFunctionBuilder-DXf6HK-N.cjs.map +0 -1
  169. package/dist/BaseFunctionBuilder-Q5qIlF-F.d.mts +0 -42
  170. package/dist/BaseFunctionBuilder-Q5qIlF-F.d.mts.map +0 -1
  171. package/dist/Construct-BXG8cFSm.cjs.map +0 -1
  172. package/dist/Construct-CQ9zV58W.mjs.map +0 -1
  173. package/dist/Construct-CX7HyFfT.d.cts.map +0 -1
  174. package/dist/Construct.cjs +0 -6
  175. package/dist/Construct.d.cts +0 -2
  176. package/dist/Construct.d.mts +0 -2
  177. package/dist/Construct.mjs +0 -3
  178. package/dist/Cron-BljK1gsV.d.mts +0 -26
  179. package/dist/Cron-BljK1gsV.d.mts.map +0 -1
  180. package/dist/Cron-C1vyfJ8B.cjs +0 -25
  181. package/dist/Cron-C1vyfJ8B.cjs.map +0 -1
  182. package/dist/Cron-CjWQEad0.mjs +0 -20
  183. package/dist/Cron-CjWQEad0.mjs.map +0 -1
  184. package/dist/Cron-CllHkk3z.d.cts +0 -26
  185. package/dist/Cron-CllHkk3z.d.cts.map +0 -1
  186. package/dist/CronBuilder-CAJFtnmZ.mjs +0 -68
  187. package/dist/CronBuilder-CAJFtnmZ.mjs.map +0 -1
  188. package/dist/CronBuilder-CG54f9LM.d.mts +0 -32
  189. package/dist/CronBuilder-CG54f9LM.d.mts.map +0 -1
  190. package/dist/CronBuilder-CSMd02lu.cjs +0 -74
  191. package/dist/CronBuilder-CSMd02lu.cjs.map +0 -1
  192. package/dist/CronBuilder-i23l40xs.d.cts +0 -32
  193. package/dist/CronBuilder-i23l40xs.d.cts.map +0 -1
  194. package/dist/Endpoint-BET0JSZK.d.mts.map +0 -1
  195. package/dist/Endpoint-BcxvF4F3.cjs +0 -440
  196. package/dist/Endpoint-BcxvF4F3.cjs.map +0 -1
  197. package/dist/Endpoint-CGdCGJkC.d.cts.map +0 -1
  198. package/dist/Endpoint-DvY3aqAy.mjs +0 -422
  199. package/dist/Endpoint-DvY3aqAy.mjs.map +0 -1
  200. package/dist/EndpointBuilder-6kdrQyIh.d.mts +0 -146
  201. package/dist/EndpointBuilder-6kdrQyIh.d.mts.map +0 -1
  202. package/dist/EndpointBuilder-CSwIguiR.d.cts +0 -146
  203. package/dist/EndpointBuilder-CSwIguiR.d.cts.map +0 -1
  204. package/dist/EndpointBuilder-EptJojG9.cjs +0 -268
  205. package/dist/EndpointBuilder-EptJojG9.cjs.map +0 -1
  206. package/dist/EndpointBuilder-iDpnACRb.mjs +0 -262
  207. package/dist/EndpointBuilder-iDpnACRb.mjs.map +0 -1
  208. package/dist/EndpointFactory-CBagQW5j.d.mts +0 -142
  209. package/dist/EndpointFactory-CBagQW5j.d.mts.map +0 -1
  210. package/dist/EndpointFactory-D2QxeaAh.cjs +0 -393
  211. package/dist/EndpointFactory-D2QxeaAh.cjs.map +0 -1
  212. package/dist/EndpointFactory-DQYSH8XK.d.cts +0 -142
  213. package/dist/EndpointFactory-DQYSH8XK.d.cts.map +0 -1
  214. package/dist/EndpointFactory-wgcqWod-.mjs +0 -381
  215. package/dist/EndpointFactory-wgcqWod-.mjs.map +0 -1
  216. package/dist/Function-CwlB89lS.d.cts +0 -76
  217. package/dist/Function-CwlB89lS.d.cts.map +0 -1
  218. package/dist/Function-D74HrBnX.d.mts +0 -76
  219. package/dist/Function-D74HrBnX.d.mts.map +0 -1
  220. package/dist/Function-DgQ_no6B.cjs +0 -84
  221. package/dist/Function-DgQ_no6B.cjs.map +0 -1
  222. package/dist/Function-xfQbftdE.mjs +0 -72
  223. package/dist/Function-xfQbftdE.mjs.map +0 -1
  224. package/dist/FunctionBuilder-CBeqX18X.mjs +0 -80
  225. package/dist/FunctionBuilder-CBeqX18X.mjs.map +0 -1
  226. package/dist/FunctionBuilder-C_qPxC8g.d.mts +0 -40
  227. package/dist/FunctionBuilder-C_qPxC8g.d.mts.map +0 -1
  228. package/dist/FunctionBuilder-C_xG9As7.cjs +0 -86
  229. package/dist/FunctionBuilder-C_xG9As7.cjs.map +0 -1
  230. package/dist/FunctionBuilder-D_7f5MfS.d.cts +0 -40
  231. package/dist/FunctionBuilder-D_7f5MfS.d.cts.map +0 -1
  232. package/dist/FunctionExecutionWrapper-B0ZAssiy.mjs +0 -101
  233. package/dist/FunctionExecutionWrapper-B0ZAssiy.mjs.map +0 -1
  234. package/dist/FunctionExecutionWrapper-Cg8HjuHL.d.cts +0 -50
  235. package/dist/FunctionExecutionWrapper-Cg8HjuHL.d.cts.map +0 -1
  236. package/dist/FunctionExecutionWrapper-KKHP6fDY.cjs +0 -107
  237. package/dist/FunctionExecutionWrapper-KKHP6fDY.cjs.map +0 -1
  238. package/dist/FunctionExecutionWrapper-xbTmBARx.d.mts +0 -50
  239. package/dist/FunctionExecutionWrapper-xbTmBARx.d.mts.map +0 -1
  240. package/dist/HonoEndpointAdaptor-B5fKdLi7.cjs.map +0 -1
  241. package/dist/HonoEndpointAdaptor-C2deTEwW.d.mts +0 -50
  242. package/dist/HonoEndpointAdaptor-C2deTEwW.d.mts.map +0 -1
  243. package/dist/HonoEndpointAdaptor-D3IgM-0B.d.cts +0 -50
  244. package/dist/HonoEndpointAdaptor-D3IgM-0B.d.cts.map +0 -1
  245. package/dist/HonoEndpointAdaptor-DOUODM7n.mjs.map +0 -1
  246. package/dist/MswEndpointAdaptor-B41INCc7.mjs +0 -108
  247. package/dist/MswEndpointAdaptor-B41INCc7.mjs.map +0 -1
  248. package/dist/MswEndpointAdaptor-CA_fu6Wx.cjs +0 -120
  249. package/dist/MswEndpointAdaptor-CA_fu6Wx.cjs.map +0 -1
  250. package/dist/MswEndpointAdaptor-CXgYbOxw.d.mts +0 -101
  251. package/dist/MswEndpointAdaptor-CXgYbOxw.d.mts.map +0 -1
  252. package/dist/MswEndpointAdaptor-CsYvrQeB.d.cts +0 -101
  253. package/dist/MswEndpointAdaptor-CsYvrQeB.d.cts.map +0 -1
  254. package/dist/Subscriber-9ObcUdcC.d.mts.map +0 -1
  255. package/dist/Subscriber-BH76wgkL.mjs +0 -28
  256. package/dist/Subscriber-BH76wgkL.mjs.map +0 -1
  257. package/dist/Subscriber-BgspJeS4.cjs +0 -34
  258. package/dist/Subscriber-BgspJeS4.cjs.map +0 -1
  259. package/dist/SubscriberBuilder-B4md5wzs.mjs +0 -54
  260. package/dist/SubscriberBuilder-B4md5wzs.mjs.map +0 -1
  261. package/dist/SubscriberBuilder-Be7WBbCL.d.cts +0 -28
  262. package/dist/SubscriberBuilder-Be7WBbCL.d.cts.map +0 -1
  263. package/dist/SubscriberBuilder-BtL22ZJ9.cjs +0 -60
  264. package/dist/SubscriberBuilder-BtL22ZJ9.cjs.map +0 -1
  265. package/dist/SubscriberBuilder-DsfIkgTF.d.mts +0 -28
  266. package/dist/SubscriberBuilder-DsfIkgTF.d.mts.map +0 -1
  267. package/dist/TestEndpointAdaptor-BFmgf7Fn.mjs +0 -174
  268. package/dist/TestEndpointAdaptor-BFmgf7Fn.mjs.map +0 -1
  269. package/dist/TestEndpointAdaptor-C79Z-QS4.d.mts +0 -45
  270. package/dist/TestEndpointAdaptor-C79Z-QS4.d.mts.map +0 -1
  271. package/dist/TestEndpointAdaptor-DYLDyAAC.cjs +0 -180
  272. package/dist/TestEndpointAdaptor-DYLDyAAC.cjs.map +0 -1
  273. package/dist/TestEndpointAdaptor-pM8yskbb.d.cts +0 -45
  274. package/dist/TestEndpointAdaptor-pM8yskbb.d.cts.map +0 -1
  275. package/dist/TestFunctionAdaptor-B859kIeb.cjs +0 -81
  276. package/dist/TestFunctionAdaptor-B859kIeb.cjs.map +0 -1
  277. package/dist/TestFunctionAdaptor-C0A-VqnM.d.mts +0 -30
  278. package/dist/TestFunctionAdaptor-C0A-VqnM.d.mts.map +0 -1
  279. package/dist/TestFunctionAdaptor-CqdSlhx1.mjs +0 -75
  280. package/dist/TestFunctionAdaptor-CqdSlhx1.mjs.map +0 -1
  281. package/dist/TestFunctionAdaptor-Dbq55dKP.d.cts +0 -30
  282. package/dist/TestFunctionAdaptor-Dbq55dKP.d.cts.map +0 -1
  283. package/dist/TestSubscriberAdaptor-BEyCFP9G.d.mts +0 -26
  284. package/dist/TestSubscriberAdaptor-BEyCFP9G.d.mts.map +0 -1
  285. package/dist/TestSubscriberAdaptor-BknOLRQw.d.cts +0 -26
  286. package/dist/TestSubscriberAdaptor-BknOLRQw.d.cts.map +0 -1
  287. package/dist/TestSubscriberAdaptor-CCcviuKa.mjs +0 -51
  288. package/dist/TestSubscriberAdaptor-CCcviuKa.mjs.map +0 -1
  289. package/dist/TestSubscriberAdaptor-_69o1d0f.cjs +0 -57
  290. package/dist/TestSubscriberAdaptor-_69o1d0f.cjs.map +0 -1
  291. package/dist/chunk-CUT6urMc.cjs +0 -30
  292. package/dist/crons/Cron.cjs +0 -8
  293. package/dist/crons/Cron.d.cts +0 -7
  294. package/dist/crons/Cron.d.mts +0 -7
  295. package/dist/crons/Cron.mjs +0 -8
  296. package/dist/crons/CronBuilder.cjs +0 -9
  297. package/dist/crons/CronBuilder.d.cts +0 -8
  298. package/dist/crons/CronBuilder.d.mts +0 -8
  299. package/dist/crons/CronBuilder.mjs +0 -9
  300. package/dist/endpoints/AmazonApiGatewayEndpointAdaptor.cjs +0 -11
  301. package/dist/endpoints/AmazonApiGatewayEndpointAdaptor.d.cts +0 -11
  302. package/dist/endpoints/AmazonApiGatewayEndpointAdaptor.d.mts +0 -11
  303. package/dist/endpoints/AmazonApiGatewayEndpointAdaptor.mjs +0 -11
  304. package/dist/endpoints/AmazonApiGatewayV1EndpointAdaptor.cjs +0 -13
  305. package/dist/endpoints/AmazonApiGatewayV1EndpointAdaptor.d.cts +0 -12
  306. package/dist/endpoints/AmazonApiGatewayV1EndpointAdaptor.d.mts +0 -12
  307. package/dist/endpoints/AmazonApiGatewayV1EndpointAdaptor.mjs +0 -13
  308. package/dist/endpoints/AmazonApiGatewayV2EndpointAdaptor.cjs +0 -13
  309. package/dist/endpoints/AmazonApiGatewayV2EndpointAdaptor.d.cts +0 -12
  310. package/dist/endpoints/AmazonApiGatewayV2EndpointAdaptor.d.mts +0 -12
  311. package/dist/endpoints/AmazonApiGatewayV2EndpointAdaptor.mjs +0 -13
  312. package/dist/endpoints/Authorizer.cjs +0 -6
  313. package/dist/endpoints/Authorizer.d.cts +0 -2
  314. package/dist/endpoints/Authorizer.d.mts +0 -2
  315. package/dist/endpoints/Authorizer.mjs +0 -3
  316. package/dist/endpoints/Endpoint.cjs +0 -10
  317. package/dist/endpoints/Endpoint.d.cts +0 -9
  318. package/dist/endpoints/Endpoint.d.mts +0 -9
  319. package/dist/endpoints/Endpoint.mjs +0 -8
  320. package/dist/endpoints/EndpointBuilder.cjs +0 -11
  321. package/dist/endpoints/EndpointBuilder.d.cts +0 -10
  322. package/dist/endpoints/EndpointBuilder.d.mts +0 -10
  323. package/dist/endpoints/EndpointBuilder.mjs +0 -11
  324. package/dist/endpoints/EndpointFactory.cjs +0 -13
  325. package/dist/endpoints/EndpointFactory.d.cts +0 -11
  326. package/dist/endpoints/EndpointFactory.d.mts +0 -11
  327. package/dist/endpoints/EndpointFactory.mjs +0 -12
  328. package/dist/endpoints/HonoEndpointAdaptor.cjs +0 -14
  329. package/dist/endpoints/HonoEndpointAdaptor.d.cts +0 -10
  330. package/dist/endpoints/HonoEndpointAdaptor.d.mts +0 -10
  331. package/dist/endpoints/HonoEndpointAdaptor.mjs +0 -14
  332. package/dist/endpoints/MswEndpointAdaptor.cjs +0 -16
  333. package/dist/endpoints/MswEndpointAdaptor.d.cts +0 -10
  334. package/dist/endpoints/MswEndpointAdaptor.d.mts +0 -10
  335. package/dist/endpoints/MswEndpointAdaptor.mjs +0 -15
  336. package/dist/endpoints/TestEndpointAdaptor.cjs +0 -12
  337. package/dist/endpoints/TestEndpointAdaptor.d.cts +0 -10
  338. package/dist/endpoints/TestEndpointAdaptor.d.mts +0 -10
  339. package/dist/endpoints/TestEndpointAdaptor.mjs +0 -12
  340. package/dist/endpoints/audit.cjs +0 -0
  341. package/dist/endpoints/audit.d.cts +0 -9
  342. package/dist/endpoints/audit.d.mts +0 -9
  343. package/dist/endpoints/audit.mjs +0 -0
  344. package/dist/endpoints/helpers.cjs +0 -10
  345. package/dist/endpoints/helpers.d.cts +0 -60
  346. package/dist/endpoints/helpers.d.cts.map +0 -1
  347. package/dist/endpoints/helpers.d.mts +0 -60
  348. package/dist/endpoints/helpers.d.mts.map +0 -1
  349. package/dist/endpoints/helpers.mjs +0 -9
  350. package/dist/endpoints/lazyAccessors.cjs +0 -10
  351. package/dist/endpoints/lazyAccessors.d.cts +0 -10
  352. package/dist/endpoints/lazyAccessors.d.mts +0 -10
  353. package/dist/endpoints/lazyAccessors.mjs +0 -3
  354. package/dist/endpoints/parseHonoQuery.cjs +0 -3
  355. package/dist/endpoints/parseHonoQuery.d.cts +0 -14
  356. package/dist/endpoints/parseHonoQuery.d.cts.map +0 -1
  357. package/dist/endpoints/parseHonoQuery.d.mts +0 -14
  358. package/dist/endpoints/parseHonoQuery.d.mts.map +0 -1
  359. package/dist/endpoints/parseHonoQuery.mjs +0 -3
  360. package/dist/endpoints/parseQueryParams.cjs +0 -3
  361. package/dist/endpoints/parseQueryParams.d.cts +0 -14
  362. package/dist/endpoints/parseQueryParams.d.cts.map +0 -1
  363. package/dist/endpoints/parseQueryParams.d.mts +0 -14
  364. package/dist/endpoints/parseQueryParams.d.mts.map +0 -1
  365. package/dist/endpoints/parseQueryParams.mjs +0 -3
  366. package/dist/endpoints/processAudits.cjs +0 -5
  367. package/dist/endpoints/processAudits.d.cts +0 -95
  368. package/dist/endpoints/processAudits.d.cts.map +0 -1
  369. package/dist/endpoints/processAudits.d.mts +0 -95
  370. package/dist/endpoints/processAudits.d.mts.map +0 -1
  371. package/dist/endpoints/processAudits.mjs +0 -3
  372. package/dist/endpoints/rls.cjs +0 -3
  373. package/dist/endpoints/rls.d.cts +0 -9
  374. package/dist/endpoints/rls.d.mts +0 -9
  375. package/dist/endpoints/rls.mjs +0 -3
  376. package/dist/functions/AWSLambdaFunction.cjs +0 -9
  377. package/dist/functions/AWSLambdaFunction.d.cts +0 -5
  378. package/dist/functions/AWSLambdaFunction.d.mts +0 -5
  379. package/dist/functions/AWSLambdaFunction.mjs +0 -9
  380. package/dist/functions/BaseFunctionBuilder.cjs +0 -4
  381. package/dist/functions/BaseFunctionBuilder.d.cts +0 -3
  382. package/dist/functions/BaseFunctionBuilder.d.mts +0 -3
  383. package/dist/functions/BaseFunctionBuilder.mjs +0 -4
  384. package/dist/functions/Function.cjs +0 -5
  385. package/dist/functions/Function.d.cts +0 -3
  386. package/dist/functions/Function.d.mts +0 -3
  387. package/dist/functions/Function.mjs +0 -4
  388. package/dist/functions/FunctionBuilder.cjs +0 -6
  389. package/dist/functions/FunctionBuilder.d.cts +0 -5
  390. package/dist/functions/FunctionBuilder.d.mts +0 -5
  391. package/dist/functions/FunctionBuilder.mjs +0 -6
  392. package/dist/functions/FunctionExecutionWrapper.cjs +0 -8
  393. package/dist/functions/FunctionExecutionWrapper.d.cts +0 -4
  394. package/dist/functions/FunctionExecutionWrapper.d.mts +0 -4
  395. package/dist/functions/FunctionExecutionWrapper.mjs +0 -8
  396. package/dist/functions/TestFunctionAdaptor.cjs +0 -8
  397. package/dist/functions/TestFunctionAdaptor.d.cts +0 -4
  398. package/dist/functions/TestFunctionAdaptor.d.mts +0 -4
  399. package/dist/functions/TestFunctionAdaptor.mjs +0 -8
  400. package/dist/functions-B1mrMoUH.mjs +0 -8
  401. package/dist/functions-B1mrMoUH.mjs.map +0 -1
  402. package/dist/functions-rOD3pXQd.cjs +0 -13
  403. package/dist/functions-rOD3pXQd.cjs.map +0 -1
  404. package/dist/helpers-BYyX0qTA.cjs +0 -95
  405. package/dist/helpers-BYyX0qTA.cjs.map +0 -1
  406. package/dist/helpers-BtwC2IW8.mjs +0 -83
  407. package/dist/helpers-BtwC2IW8.mjs.map +0 -1
  408. package/dist/index-BfeupgMl.d.cts +0 -12
  409. package/dist/index-BfeupgMl.d.cts.map +0 -1
  410. package/dist/index-Cg2UDz1r.d.mts +0 -12
  411. package/dist/index-Cg2UDz1r.d.mts.map +0 -1
  412. package/dist/lazyAccessors-BVEtB9lU.cjs +0 -223
  413. package/dist/lazyAccessors-BVEtB9lU.cjs.map +0 -1
  414. package/dist/lazyAccessors-Bxy5DBp4.d.cts +0 -49
  415. package/dist/lazyAccessors-Bxy5DBp4.d.cts.map +0 -1
  416. package/dist/lazyAccessors-CWFdtzSR.d.mts +0 -49
  417. package/dist/lazyAccessors-CWFdtzSR.d.mts.map +0 -1
  418. package/dist/lazyAccessors-DM6HcXQk.mjs +0 -175
  419. package/dist/lazyAccessors-DM6HcXQk.mjs.map +0 -1
  420. package/dist/parseHonoQuery-BBs8CX-H.cjs +0 -24
  421. package/dist/parseHonoQuery-BBs8CX-H.cjs.map +0 -1
  422. package/dist/parseHonoQuery-Cp8CII0P.mjs +0 -18
  423. package/dist/parseHonoQuery-Cp8CII0P.mjs.map +0 -1
  424. package/dist/parseQueryParams-B4RK1za3.cjs +0 -31
  425. package/dist/parseQueryParams-B4RK1za3.cjs.map +0 -1
  426. package/dist/parseQueryParams-DS3Qmrbd.mjs +0 -25
  427. package/dist/parseQueryParams-DS3Qmrbd.mjs.map +0 -1
  428. package/dist/processAudits-CzHkPokQ.cjs +0 -180
  429. package/dist/processAudits-CzHkPokQ.cjs.map +0 -1
  430. package/dist/processAudits-Dj8UGqcW.mjs +0 -162
  431. package/dist/processAudits-Dj8UGqcW.mjs.map +0 -1
  432. package/dist/publisher-BUDHcaz3.d.cts +0 -16
  433. package/dist/publisher-BUDHcaz3.d.cts.map +0 -1
  434. package/dist/publisher-Bw4770Hi.mjs +0 -41
  435. package/dist/publisher-Bw4770Hi.mjs.map +0 -1
  436. package/dist/publisher-DXglijK_.d.mts +0 -16
  437. package/dist/publisher-DXglijK_.d.mts.map +0 -1
  438. package/dist/publisher-lFQleddL.cjs +0 -53
  439. package/dist/publisher-lFQleddL.cjs.map +0 -1
  440. package/dist/publisher.cjs +0 -4
  441. package/dist/publisher.d.cts +0 -3
  442. package/dist/publisher.d.mts +0 -3
  443. package/dist/publisher.mjs +0 -3
  444. package/dist/rls-C0r4UKVm.mjs +0 -9
  445. package/dist/rls-C0r4UKVm.mjs.map +0 -1
  446. package/dist/rls-Cfb6w-tQ.cjs +0 -15
  447. package/dist/rls-Cfb6w-tQ.cjs.map +0 -1
  448. package/dist/subscribers/AWSLambdaSubscriberAdaptor.cjs +0 -3
  449. package/dist/subscribers/AWSLambdaSubscriberAdaptor.d.cts +0 -4
  450. package/dist/subscribers/AWSLambdaSubscriberAdaptor.d.mts +0 -4
  451. package/dist/subscribers/AWSLambdaSubscriberAdaptor.mjs +0 -3
  452. package/dist/subscribers/Subscriber.cjs +0 -4
  453. package/dist/subscribers/Subscriber.d.cts +0 -3
  454. package/dist/subscribers/Subscriber.d.mts +0 -3
  455. package/dist/subscribers/Subscriber.mjs +0 -4
  456. package/dist/subscribers/SubscriberBuilder.cjs +0 -5
  457. package/dist/subscribers/SubscriberBuilder.d.cts +0 -4
  458. package/dist/subscribers/SubscriberBuilder.d.mts +0 -4
  459. package/dist/subscribers/SubscriberBuilder.mjs +0 -5
  460. package/dist/subscribers/TestSubscriberAdaptor.cjs +0 -4
  461. package/dist/subscribers/TestSubscriberAdaptor.d.cts +0 -4
  462. package/dist/subscribers/TestSubscriberAdaptor.d.mts +0 -4
  463. package/dist/subscribers/TestSubscriberAdaptor.mjs +0 -4
  464. package/dist/telemetry.cjs +0 -0
  465. package/dist/telemetry.d.cts +0 -2
  466. package/dist/telemetry.d.mts +0 -2
  467. package/dist/telemetry.mjs +0 -0
@@ -0,0 +1,1971 @@
1
+ const require_Construct = require('./Construct-B14miJ6P.cjs');
2
+ const require_functions = require('./functions-DiaRAdfp.cjs');
3
+ const __geekmidas_schema_conversion = require_Construct.__toESM(require("@geekmidas/schema/conversion"));
4
+ const __geekmidas_schema_openapi = require_Construct.__toESM(require("@geekmidas/schema/openapi"));
5
+ const hono_cookie = require_Construct.__toESM(require("hono/cookie"));
6
+
7
+ //#region ../../node_modules/.pnpm/lodash.set@4.3.2/node_modules/lodash.set/index.js
8
+ var require_lodash$1 = require_Construct.__commonJS({ "../../node_modules/.pnpm/lodash.set@4.3.2/node_modules/lodash.set/index.js"(exports, module) {
9
+ /**
10
+ * lodash (Custom Build) <https://lodash.com/>
11
+ * Build: `lodash modularize exports="npm" -o ./`
12
+ * Copyright jQuery Foundation and other contributors <https://jquery.org/>
13
+ * Released under MIT license <https://lodash.com/license>
14
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
15
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
16
+ */
17
+ /** Used as the `TypeError` message for "Functions" methods. */
18
+ var FUNC_ERROR_TEXT = "Expected a function";
19
+ /** Used to stand-in for `undefined` hash values. */
20
+ var HASH_UNDEFINED = "__lodash_hash_undefined__";
21
+ /** Used as references for various `Number` constants. */
22
+ var INFINITY$1 = Infinity, MAX_SAFE_INTEGER$1 = 9007199254740991;
23
+ /** `Object#toString` result references. */
24
+ var funcTag$1 = "[object Function]", genTag$1 = "[object GeneratorFunction]", symbolTag$1 = "[object Symbol]";
25
+ /** Used to match property names within property paths. */
26
+ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/, reLeadingDot = /^\./, rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
27
+ /**
28
+ * Used to match `RegExp`
29
+ * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
30
+ */
31
+ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
32
+ /** Used to match backslashes in property paths. */
33
+ var reEscapeChar = /\\(\\)?/g;
34
+ /** Used to detect host constructors (Safari). */
35
+ var reIsHostCtor = /^\[object .+?Constructor\]$/;
36
+ /** Used to detect unsigned integer values. */
37
+ var reIsUint = /^(?:0|[1-9]\d*)$/;
38
+ /** Detect free variable `global` from Node.js. */
39
+ var freeGlobal$1 = typeof global == "object" && global && global.Object === Object && global;
40
+ /** Detect free variable `self`. */
41
+ var freeSelf$1 = typeof self == "object" && self && self.Object === Object && self;
42
+ /** Used as a reference to the global object. */
43
+ var root$1 = freeGlobal$1 || freeSelf$1 || Function("return this")();
44
+ /**
45
+ * Gets the value at `key` of `object`.
46
+ *
47
+ * @private
48
+ * @param {Object} [object] The object to query.
49
+ * @param {string} key The key of the property to get.
50
+ * @returns {*} Returns the property value.
51
+ */
52
+ function getValue(object, key) {
53
+ return object == null ? void 0 : object[key];
54
+ }
55
+ /**
56
+ * Checks if `value` is a host object in IE < 9.
57
+ *
58
+ * @private
59
+ * @param {*} value The value to check.
60
+ * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
61
+ */
62
+ function isHostObject(value) {
63
+ var result = false;
64
+ if (value != null && typeof value.toString != "function") try {
65
+ result = !!(value + "");
66
+ } catch (e) {}
67
+ return result;
68
+ }
69
+ /** Used for built-in method references. */
70
+ var arrayProto = Array.prototype, funcProto = Function.prototype, objectProto$1 = Object.prototype;
71
+ /** Used to detect overreaching core-js shims. */
72
+ var coreJsData = root$1["__core-js_shared__"];
73
+ /** Used to detect methods masquerading as native. */
74
+ var maskSrcKey = function() {
75
+ var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
76
+ return uid ? "Symbol(src)_1." + uid : "";
77
+ }();
78
+ /** Used to resolve the decompiled source of functions. */
79
+ var funcToString = funcProto.toString;
80
+ /** Used to check objects for own properties. */
81
+ var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
82
+ /**
83
+ * Used to resolve the
84
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
85
+ * of values.
86
+ */
87
+ var objectToString$1 = objectProto$1.toString;
88
+ /** Used to detect if a method is native. */
89
+ var reIsNative = RegExp("^" + funcToString.call(hasOwnProperty$1).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
90
+ /** Built-in value references. */
91
+ var Symbol$1 = root$1.Symbol, splice = arrayProto.splice;
92
+ var Map$1 = getNative(root$1, "Map"), nativeCreate = getNative(Object, "create");
93
+ /** Used to convert symbols to primitives and strings. */
94
+ var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0, symbolToString = symbolProto ? symbolProto.toString : void 0;
95
+ /**
96
+ * Creates a hash object.
97
+ *
98
+ * @private
99
+ * @constructor
100
+ * @param {Array} [entries] The key-value pairs to cache.
101
+ */
102
+ function Hash(entries) {
103
+ var index = -1, length = entries ? entries.length : 0;
104
+ this.clear();
105
+ while (++index < length) {
106
+ var entry = entries[index];
107
+ this.set(entry[0], entry[1]);
108
+ }
109
+ }
110
+ /**
111
+ * Removes all key-value entries from the hash.
112
+ *
113
+ * @private
114
+ * @name clear
115
+ * @memberOf Hash
116
+ */
117
+ function hashClear() {
118
+ this.__data__ = nativeCreate ? nativeCreate(null) : {};
119
+ }
120
+ /**
121
+ * Removes `key` and its value from the hash.
122
+ *
123
+ * @private
124
+ * @name delete
125
+ * @memberOf Hash
126
+ * @param {Object} hash The hash to modify.
127
+ * @param {string} key The key of the value to remove.
128
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
129
+ */
130
+ function hashDelete(key) {
131
+ return this.has(key) && delete this.__data__[key];
132
+ }
133
+ /**
134
+ * Gets the hash value for `key`.
135
+ *
136
+ * @private
137
+ * @name get
138
+ * @memberOf Hash
139
+ * @param {string} key The key of the value to get.
140
+ * @returns {*} Returns the entry value.
141
+ */
142
+ function hashGet(key) {
143
+ var data = this.__data__;
144
+ if (nativeCreate) {
145
+ var result = data[key];
146
+ return result === HASH_UNDEFINED ? void 0 : result;
147
+ }
148
+ return hasOwnProperty$1.call(data, key) ? data[key] : void 0;
149
+ }
150
+ /**
151
+ * Checks if a hash value for `key` exists.
152
+ *
153
+ * @private
154
+ * @name has
155
+ * @memberOf Hash
156
+ * @param {string} key The key of the entry to check.
157
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
158
+ */
159
+ function hashHas(key) {
160
+ var data = this.__data__;
161
+ return nativeCreate ? data[key] !== void 0 : hasOwnProperty$1.call(data, key);
162
+ }
163
+ /**
164
+ * Sets the hash `key` to `value`.
165
+ *
166
+ * @private
167
+ * @name set
168
+ * @memberOf Hash
169
+ * @param {string} key The key of the value to set.
170
+ * @param {*} value The value to set.
171
+ * @returns {Object} Returns the hash instance.
172
+ */
173
+ function hashSet(key, value) {
174
+ var data = this.__data__;
175
+ data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
176
+ return this;
177
+ }
178
+ Hash.prototype.clear = hashClear;
179
+ Hash.prototype["delete"] = hashDelete;
180
+ Hash.prototype.get = hashGet;
181
+ Hash.prototype.has = hashHas;
182
+ Hash.prototype.set = hashSet;
183
+ /**
184
+ * Creates an list cache object.
185
+ *
186
+ * @private
187
+ * @constructor
188
+ * @param {Array} [entries] The key-value pairs to cache.
189
+ */
190
+ function ListCache(entries) {
191
+ var index = -1, length = entries ? entries.length : 0;
192
+ this.clear();
193
+ while (++index < length) {
194
+ var entry = entries[index];
195
+ this.set(entry[0], entry[1]);
196
+ }
197
+ }
198
+ /**
199
+ * Removes all key-value entries from the list cache.
200
+ *
201
+ * @private
202
+ * @name clear
203
+ * @memberOf ListCache
204
+ */
205
+ function listCacheClear() {
206
+ this.__data__ = [];
207
+ }
208
+ /**
209
+ * Removes `key` and its value from the list cache.
210
+ *
211
+ * @private
212
+ * @name delete
213
+ * @memberOf ListCache
214
+ * @param {string} key The key of the value to remove.
215
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
216
+ */
217
+ function listCacheDelete(key) {
218
+ var data = this.__data__, index = assocIndexOf(data, key);
219
+ if (index < 0) return false;
220
+ var lastIndex = data.length - 1;
221
+ if (index == lastIndex) data.pop();
222
+ else splice.call(data, index, 1);
223
+ return true;
224
+ }
225
+ /**
226
+ * Gets the list cache value for `key`.
227
+ *
228
+ * @private
229
+ * @name get
230
+ * @memberOf ListCache
231
+ * @param {string} key The key of the value to get.
232
+ * @returns {*} Returns the entry value.
233
+ */
234
+ function listCacheGet(key) {
235
+ var data = this.__data__, index = assocIndexOf(data, key);
236
+ return index < 0 ? void 0 : data[index][1];
237
+ }
238
+ /**
239
+ * Checks if a list cache value for `key` exists.
240
+ *
241
+ * @private
242
+ * @name has
243
+ * @memberOf ListCache
244
+ * @param {string} key The key of the entry to check.
245
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
246
+ */
247
+ function listCacheHas(key) {
248
+ return assocIndexOf(this.__data__, key) > -1;
249
+ }
250
+ /**
251
+ * Sets the list cache `key` to `value`.
252
+ *
253
+ * @private
254
+ * @name set
255
+ * @memberOf ListCache
256
+ * @param {string} key The key of the value to set.
257
+ * @param {*} value The value to set.
258
+ * @returns {Object} Returns the list cache instance.
259
+ */
260
+ function listCacheSet(key, value) {
261
+ var data = this.__data__, index = assocIndexOf(data, key);
262
+ if (index < 0) data.push([key, value]);
263
+ else data[index][1] = value;
264
+ return this;
265
+ }
266
+ ListCache.prototype.clear = listCacheClear;
267
+ ListCache.prototype["delete"] = listCacheDelete;
268
+ ListCache.prototype.get = listCacheGet;
269
+ ListCache.prototype.has = listCacheHas;
270
+ ListCache.prototype.set = listCacheSet;
271
+ /**
272
+ * Creates a map cache object to store key-value pairs.
273
+ *
274
+ * @private
275
+ * @constructor
276
+ * @param {Array} [entries] The key-value pairs to cache.
277
+ */
278
+ function MapCache(entries) {
279
+ var index = -1, length = entries ? entries.length : 0;
280
+ this.clear();
281
+ while (++index < length) {
282
+ var entry = entries[index];
283
+ this.set(entry[0], entry[1]);
284
+ }
285
+ }
286
+ /**
287
+ * Removes all key-value entries from the map.
288
+ *
289
+ * @private
290
+ * @name clear
291
+ * @memberOf MapCache
292
+ */
293
+ function mapCacheClear() {
294
+ this.__data__ = {
295
+ "hash": new Hash(),
296
+ "map": new (Map$1 || ListCache)(),
297
+ "string": new Hash()
298
+ };
299
+ }
300
+ /**
301
+ * Removes `key` and its value from the map.
302
+ *
303
+ * @private
304
+ * @name delete
305
+ * @memberOf MapCache
306
+ * @param {string} key The key of the value to remove.
307
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
308
+ */
309
+ function mapCacheDelete(key) {
310
+ return getMapData(this, key)["delete"](key);
311
+ }
312
+ /**
313
+ * Gets the map value for `key`.
314
+ *
315
+ * @private
316
+ * @name get
317
+ * @memberOf MapCache
318
+ * @param {string} key The key of the value to get.
319
+ * @returns {*} Returns the entry value.
320
+ */
321
+ function mapCacheGet(key) {
322
+ return getMapData(this, key).get(key);
323
+ }
324
+ /**
325
+ * Checks if a map value for `key` exists.
326
+ *
327
+ * @private
328
+ * @name has
329
+ * @memberOf MapCache
330
+ * @param {string} key The key of the entry to check.
331
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
332
+ */
333
+ function mapCacheHas(key) {
334
+ return getMapData(this, key).has(key);
335
+ }
336
+ /**
337
+ * Sets the map `key` to `value`.
338
+ *
339
+ * @private
340
+ * @name set
341
+ * @memberOf MapCache
342
+ * @param {string} key The key of the value to set.
343
+ * @param {*} value The value to set.
344
+ * @returns {Object} Returns the map cache instance.
345
+ */
346
+ function mapCacheSet(key, value) {
347
+ getMapData(this, key).set(key, value);
348
+ return this;
349
+ }
350
+ MapCache.prototype.clear = mapCacheClear;
351
+ MapCache.prototype["delete"] = mapCacheDelete;
352
+ MapCache.prototype.get = mapCacheGet;
353
+ MapCache.prototype.has = mapCacheHas;
354
+ MapCache.prototype.set = mapCacheSet;
355
+ /**
356
+ * Assigns `value` to `key` of `object` if the existing value is not equivalent
357
+ * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
358
+ * for equality comparisons.
359
+ *
360
+ * @private
361
+ * @param {Object} object The object to modify.
362
+ * @param {string} key The key of the property to assign.
363
+ * @param {*} value The value to assign.
364
+ */
365
+ function assignValue(object, key, value) {
366
+ var objValue = object[key];
367
+ if (!(hasOwnProperty$1.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) object[key] = value;
368
+ }
369
+ /**
370
+ * Gets the index at which the `key` is found in `array` of key-value pairs.
371
+ *
372
+ * @private
373
+ * @param {Array} array The array to inspect.
374
+ * @param {*} key The key to search for.
375
+ * @returns {number} Returns the index of the matched value, else `-1`.
376
+ */
377
+ function assocIndexOf(array, key) {
378
+ var length = array.length;
379
+ while (length--) if (eq(array[length][0], key)) return length;
380
+ return -1;
381
+ }
382
+ /**
383
+ * The base implementation of `_.isNative` without bad shim checks.
384
+ *
385
+ * @private
386
+ * @param {*} value The value to check.
387
+ * @returns {boolean} Returns `true` if `value` is a native function,
388
+ * else `false`.
389
+ */
390
+ function baseIsNative(value) {
391
+ if (!isObject$1(value) || isMasked(value)) return false;
392
+ var pattern = isFunction$1(value) || isHostObject(value) ? reIsNative : reIsHostCtor;
393
+ return pattern.test(toSource(value));
394
+ }
395
+ /**
396
+ * The base implementation of `_.set`.
397
+ *
398
+ * @private
399
+ * @param {Object} object The object to modify.
400
+ * @param {Array|string} path The path of the property to set.
401
+ * @param {*} value The value to set.
402
+ * @param {Function} [customizer] The function to customize path creation.
403
+ * @returns {Object} Returns `object`.
404
+ */
405
+ function baseSet(object, path, value, customizer) {
406
+ if (!isObject$1(object)) return object;
407
+ path = isKey(path, object) ? [path] : castPath(path);
408
+ var index = -1, length = path.length, lastIndex = length - 1, nested = object;
409
+ while (nested != null && ++index < length) {
410
+ var key = toKey$1(path[index]), newValue = value;
411
+ if (index != lastIndex) {
412
+ var objValue = nested[key];
413
+ newValue = customizer ? customizer(objValue, key, nested) : void 0;
414
+ if (newValue === void 0) newValue = isObject$1(objValue) ? objValue : isIndex(path[index + 1]) ? [] : {};
415
+ }
416
+ assignValue(nested, key, newValue);
417
+ nested = nested[key];
418
+ }
419
+ return object;
420
+ }
421
+ /**
422
+ * The base implementation of `_.toString` which doesn't convert nullish
423
+ * values to empty strings.
424
+ *
425
+ * @private
426
+ * @param {*} value The value to process.
427
+ * @returns {string} Returns the string.
428
+ */
429
+ function baseToString(value) {
430
+ if (typeof value == "string") return value;
431
+ if (isSymbol$1(value)) return symbolToString ? symbolToString.call(value) : "";
432
+ var result = value + "";
433
+ return result == "0" && 1 / value == -INFINITY$1 ? "-0" : result;
434
+ }
435
+ /**
436
+ * Casts `value` to a path array if it's not one.
437
+ *
438
+ * @private
439
+ * @param {*} value The value to inspect.
440
+ * @returns {Array} Returns the cast property path array.
441
+ */
442
+ function castPath(value) {
443
+ return isArray$1(value) ? value : stringToPath(value);
444
+ }
445
+ /**
446
+ * Gets the data for `map`.
447
+ *
448
+ * @private
449
+ * @param {Object} map The map to query.
450
+ * @param {string} key The reference key.
451
+ * @returns {*} Returns the map data.
452
+ */
453
+ function getMapData(map, key) {
454
+ var data = map.__data__;
455
+ return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
456
+ }
457
+ /**
458
+ * Gets the native function at `key` of `object`.
459
+ *
460
+ * @private
461
+ * @param {Object} object The object to query.
462
+ * @param {string} key The key of the method to get.
463
+ * @returns {*} Returns the function if it's native, else `undefined`.
464
+ */
465
+ function getNative(object, key) {
466
+ var value = getValue(object, key);
467
+ return baseIsNative(value) ? value : void 0;
468
+ }
469
+ /**
470
+ * Checks if `value` is a valid array-like index.
471
+ *
472
+ * @private
473
+ * @param {*} value The value to check.
474
+ * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
475
+ * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
476
+ */
477
+ function isIndex(value, length) {
478
+ length = length == null ? MAX_SAFE_INTEGER$1 : length;
479
+ return !!length && (typeof value == "number" || reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
480
+ }
481
+ /**
482
+ * Checks if `value` is a property name and not a property path.
483
+ *
484
+ * @private
485
+ * @param {*} value The value to check.
486
+ * @param {Object} [object] The object to query keys on.
487
+ * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
488
+ */
489
+ function isKey(value, object) {
490
+ if (isArray$1(value)) return false;
491
+ var type = typeof value;
492
+ if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol$1(value)) return true;
493
+ return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
494
+ }
495
+ /**
496
+ * Checks if `value` is suitable for use as unique object key.
497
+ *
498
+ * @private
499
+ * @param {*} value The value to check.
500
+ * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
501
+ */
502
+ function isKeyable(value) {
503
+ var type = typeof value;
504
+ return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
505
+ }
506
+ /**
507
+ * Checks if `func` has its source masked.
508
+ *
509
+ * @private
510
+ * @param {Function} func The function to check.
511
+ * @returns {boolean} Returns `true` if `func` is masked, else `false`.
512
+ */
513
+ function isMasked(func) {
514
+ return !!maskSrcKey && maskSrcKey in func;
515
+ }
516
+ /**
517
+ * Converts `string` to a property path array.
518
+ *
519
+ * @private
520
+ * @param {string} string The string to convert.
521
+ * @returns {Array} Returns the property path array.
522
+ */
523
+ var stringToPath = memoize(function(string) {
524
+ string = toString(string);
525
+ var result = [];
526
+ if (reLeadingDot.test(string)) result.push("");
527
+ string.replace(rePropName, function(match, number, quote, string$1) {
528
+ result.push(quote ? string$1.replace(reEscapeChar, "$1") : number || match);
529
+ });
530
+ return result;
531
+ });
532
+ /**
533
+ * Converts `value` to a string key if it's not a string or symbol.
534
+ *
535
+ * @private
536
+ * @param {*} value The value to inspect.
537
+ * @returns {string|symbol} Returns the key.
538
+ */
539
+ function toKey$1(value) {
540
+ if (typeof value == "string" || isSymbol$1(value)) return value;
541
+ var result = value + "";
542
+ return result == "0" && 1 / value == -INFINITY$1 ? "-0" : result;
543
+ }
544
+ /**
545
+ * Converts `func` to its source code.
546
+ *
547
+ * @private
548
+ * @param {Function} func The function to process.
549
+ * @returns {string} Returns the source code.
550
+ */
551
+ function toSource(func) {
552
+ if (func != null) {
553
+ try {
554
+ return funcToString.call(func);
555
+ } catch (e) {}
556
+ try {
557
+ return func + "";
558
+ } catch (e) {}
559
+ }
560
+ return "";
561
+ }
562
+ /**
563
+ * Creates a function that memoizes the result of `func`. If `resolver` is
564
+ * provided, it determines the cache key for storing the result based on the
565
+ * arguments provided to the memoized function. By default, the first argument
566
+ * provided to the memoized function is used as the map cache key. The `func`
567
+ * is invoked with the `this` binding of the memoized function.
568
+ *
569
+ * **Note:** The cache is exposed as the `cache` property on the memoized
570
+ * function. Its creation may be customized by replacing the `_.memoize.Cache`
571
+ * constructor with one whose instances implement the
572
+ * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
573
+ * method interface of `delete`, `get`, `has`, and `set`.
574
+ *
575
+ * @static
576
+ * @memberOf _
577
+ * @since 0.1.0
578
+ * @category Function
579
+ * @param {Function} func The function to have its output memoized.
580
+ * @param {Function} [resolver] The function to resolve the cache key.
581
+ * @returns {Function} Returns the new memoized function.
582
+ * @example
583
+ *
584
+ * var object = { 'a': 1, 'b': 2 };
585
+ * var other = { 'c': 3, 'd': 4 };
586
+ *
587
+ * var values = _.memoize(_.values);
588
+ * values(object);
589
+ * // => [1, 2]
590
+ *
591
+ * values(other);
592
+ * // => [3, 4]
593
+ *
594
+ * object.a = 2;
595
+ * values(object);
596
+ * // => [1, 2]
597
+ *
598
+ * // Modify the result cache.
599
+ * values.cache.set(object, ['a', 'b']);
600
+ * values(object);
601
+ * // => ['a', 'b']
602
+ *
603
+ * // Replace `_.memoize.Cache`.
604
+ * _.memoize.Cache = WeakMap;
605
+ */
606
+ function memoize(func, resolver) {
607
+ if (typeof func != "function" || resolver && typeof resolver != "function") throw new TypeError(FUNC_ERROR_TEXT);
608
+ var memoized = function() {
609
+ var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
610
+ if (cache.has(key)) return cache.get(key);
611
+ var result = func.apply(this, args);
612
+ memoized.cache = cache.set(key, result);
613
+ return result;
614
+ };
615
+ memoized.cache = new (memoize.Cache || MapCache)();
616
+ return memoized;
617
+ }
618
+ memoize.Cache = MapCache;
619
+ /**
620
+ * Performs a
621
+ * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
622
+ * comparison between two values to determine if they are equivalent.
623
+ *
624
+ * @static
625
+ * @memberOf _
626
+ * @since 4.0.0
627
+ * @category Lang
628
+ * @param {*} value The value to compare.
629
+ * @param {*} other The other value to compare.
630
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
631
+ * @example
632
+ *
633
+ * var object = { 'a': 1 };
634
+ * var other = { 'a': 1 };
635
+ *
636
+ * _.eq(object, object);
637
+ * // => true
638
+ *
639
+ * _.eq(object, other);
640
+ * // => false
641
+ *
642
+ * _.eq('a', 'a');
643
+ * // => true
644
+ *
645
+ * _.eq('a', Object('a'));
646
+ * // => false
647
+ *
648
+ * _.eq(NaN, NaN);
649
+ * // => true
650
+ */
651
+ function eq(value, other) {
652
+ return value === other || value !== value && other !== other;
653
+ }
654
+ /**
655
+ * Checks if `value` is classified as an `Array` object.
656
+ *
657
+ * @static
658
+ * @memberOf _
659
+ * @since 0.1.0
660
+ * @category Lang
661
+ * @param {*} value The value to check.
662
+ * @returns {boolean} Returns `true` if `value` is an array, else `false`.
663
+ * @example
664
+ *
665
+ * _.isArray([1, 2, 3]);
666
+ * // => true
667
+ *
668
+ * _.isArray(document.body.children);
669
+ * // => false
670
+ *
671
+ * _.isArray('abc');
672
+ * // => false
673
+ *
674
+ * _.isArray(_.noop);
675
+ * // => false
676
+ */
677
+ var isArray$1 = Array.isArray;
678
+ /**
679
+ * Checks if `value` is classified as a `Function` object.
680
+ *
681
+ * @static
682
+ * @memberOf _
683
+ * @since 0.1.0
684
+ * @category Lang
685
+ * @param {*} value The value to check.
686
+ * @returns {boolean} Returns `true` if `value` is a function, else `false`.
687
+ * @example
688
+ *
689
+ * _.isFunction(_);
690
+ * // => true
691
+ *
692
+ * _.isFunction(/abc/);
693
+ * // => false
694
+ */
695
+ function isFunction$1(value) {
696
+ var tag = isObject$1(value) ? objectToString$1.call(value) : "";
697
+ return tag == funcTag$1 || tag == genTag$1;
698
+ }
699
+ /**
700
+ * Checks if `value` is the
701
+ * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
702
+ * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
703
+ *
704
+ * @static
705
+ * @memberOf _
706
+ * @since 0.1.0
707
+ * @category Lang
708
+ * @param {*} value The value to check.
709
+ * @returns {boolean} Returns `true` if `value` is an object, else `false`.
710
+ * @example
711
+ *
712
+ * _.isObject({});
713
+ * // => true
714
+ *
715
+ * _.isObject([1, 2, 3]);
716
+ * // => true
717
+ *
718
+ * _.isObject(_.noop);
719
+ * // => true
720
+ *
721
+ * _.isObject(null);
722
+ * // => false
723
+ */
724
+ function isObject$1(value) {
725
+ var type = typeof value;
726
+ return !!value && (type == "object" || type == "function");
727
+ }
728
+ /**
729
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
730
+ * and has a `typeof` result of "object".
731
+ *
732
+ * @static
733
+ * @memberOf _
734
+ * @since 4.0.0
735
+ * @category Lang
736
+ * @param {*} value The value to check.
737
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
738
+ * @example
739
+ *
740
+ * _.isObjectLike({});
741
+ * // => true
742
+ *
743
+ * _.isObjectLike([1, 2, 3]);
744
+ * // => true
745
+ *
746
+ * _.isObjectLike(_.noop);
747
+ * // => false
748
+ *
749
+ * _.isObjectLike(null);
750
+ * // => false
751
+ */
752
+ function isObjectLike$1(value) {
753
+ return !!value && typeof value == "object";
754
+ }
755
+ /**
756
+ * Checks if `value` is classified as a `Symbol` primitive or object.
757
+ *
758
+ * @static
759
+ * @memberOf _
760
+ * @since 4.0.0
761
+ * @category Lang
762
+ * @param {*} value The value to check.
763
+ * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
764
+ * @example
765
+ *
766
+ * _.isSymbol(Symbol.iterator);
767
+ * // => true
768
+ *
769
+ * _.isSymbol('abc');
770
+ * // => false
771
+ */
772
+ function isSymbol$1(value) {
773
+ return typeof value == "symbol" || isObjectLike$1(value) && objectToString$1.call(value) == symbolTag$1;
774
+ }
775
+ /**
776
+ * Converts `value` to a string. An empty string is returned for `null`
777
+ * and `undefined` values. The sign of `-0` is preserved.
778
+ *
779
+ * @static
780
+ * @memberOf _
781
+ * @since 4.0.0
782
+ * @category Lang
783
+ * @param {*} value The value to process.
784
+ * @returns {string} Returns the string.
785
+ * @example
786
+ *
787
+ * _.toString(null);
788
+ * // => ''
789
+ *
790
+ * _.toString(-0);
791
+ * // => '-0'
792
+ *
793
+ * _.toString([1, 2, 3]);
794
+ * // => '1,2,3'
795
+ */
796
+ function toString(value) {
797
+ return value == null ? "" : baseToString(value);
798
+ }
799
+ /**
800
+ * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
801
+ * it's created. Arrays are created for missing index properties while objects
802
+ * are created for all other missing properties. Use `_.setWith` to customize
803
+ * `path` creation.
804
+ *
805
+ * **Note:** This method mutates `object`.
806
+ *
807
+ * @static
808
+ * @memberOf _
809
+ * @since 3.7.0
810
+ * @category Object
811
+ * @param {Object} object The object to modify.
812
+ * @param {Array|string} path The path of the property to set.
813
+ * @param {*} value The value to set.
814
+ * @returns {Object} Returns `object`.
815
+ * @example
816
+ *
817
+ * var object = { 'a': [{ 'b': { 'c': 3 } }] };
818
+ *
819
+ * _.set(object, 'a[0].b.c', 4);
820
+ * console.log(object.a[0].b.c);
821
+ * // => 4
822
+ *
823
+ * _.set(object, ['x', '0', 'y', 'z'], 5);
824
+ * console.log(object.x[0].y.z);
825
+ * // => 5
826
+ */
827
+ function set$1(object, path, value) {
828
+ return object == null ? object : baseSet(object, path, value);
829
+ }
830
+ module.exports = set$1;
831
+ } });
832
+
833
+ //#endregion
834
+ //#region ../../node_modules/.pnpm/lodash.pick@4.4.0/node_modules/lodash.pick/index.js
835
+ var require_lodash = require_Construct.__commonJS({ "../../node_modules/.pnpm/lodash.pick@4.4.0/node_modules/lodash.pick/index.js"(exports, module) {
836
+ /**
837
+ * lodash (Custom Build) <https://lodash.com/>
838
+ * Build: `lodash modularize exports="npm" -o ./`
839
+ * Copyright jQuery Foundation and other contributors <https://jquery.org/>
840
+ * Released under MIT license <https://lodash.com/license>
841
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
842
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
843
+ */
844
+ /** Used as references for various `Number` constants. */
845
+ var INFINITY = Infinity, MAX_SAFE_INTEGER = 9007199254740991;
846
+ /** `Object#toString` result references. */
847
+ var argsTag = "[object Arguments]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", symbolTag = "[object Symbol]";
848
+ /** Detect free variable `global` from Node.js. */
849
+ var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
850
+ /** Detect free variable `self`. */
851
+ var freeSelf = typeof self == "object" && self && self.Object === Object && self;
852
+ /** Used as a reference to the global object. */
853
+ var root = freeGlobal || freeSelf || Function("return this")();
854
+ /**
855
+ * A faster alternative to `Function#apply`, this function invokes `func`
856
+ * with the `this` binding of `thisArg` and the arguments of `args`.
857
+ *
858
+ * @private
859
+ * @param {Function} func The function to invoke.
860
+ * @param {*} thisArg The `this` binding of `func`.
861
+ * @param {Array} args The arguments to invoke `func` with.
862
+ * @returns {*} Returns the result of `func`.
863
+ */
864
+ function apply(func, thisArg, args) {
865
+ switch (args.length) {
866
+ case 0: return func.call(thisArg);
867
+ case 1: return func.call(thisArg, args[0]);
868
+ case 2: return func.call(thisArg, args[0], args[1]);
869
+ case 3: return func.call(thisArg, args[0], args[1], args[2]);
870
+ }
871
+ return func.apply(thisArg, args);
872
+ }
873
+ /**
874
+ * A specialized version of `_.map` for arrays without support for iteratee
875
+ * shorthands.
876
+ *
877
+ * @private
878
+ * @param {Array} [array] The array to iterate over.
879
+ * @param {Function} iteratee The function invoked per iteration.
880
+ * @returns {Array} Returns the new mapped array.
881
+ */
882
+ function arrayMap(array, iteratee) {
883
+ var index = -1, length = array ? array.length : 0, result = Array(length);
884
+ while (++index < length) result[index] = iteratee(array[index], index, array);
885
+ return result;
886
+ }
887
+ /**
888
+ * Appends the elements of `values` to `array`.
889
+ *
890
+ * @private
891
+ * @param {Array} array The array to modify.
892
+ * @param {Array} values The values to append.
893
+ * @returns {Array} Returns `array`.
894
+ */
895
+ function arrayPush(array, values) {
896
+ var index = -1, length = values.length, offset = array.length;
897
+ while (++index < length) array[offset + index] = values[index];
898
+ return array;
899
+ }
900
+ /** Used for built-in method references. */
901
+ var objectProto = Object.prototype;
902
+ /** Used to check objects for own properties. */
903
+ var hasOwnProperty = objectProto.hasOwnProperty;
904
+ /**
905
+ * Used to resolve the
906
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
907
+ * of values.
908
+ */
909
+ var objectToString = objectProto.toString;
910
+ /** Built-in value references. */
911
+ var Symbol = root.Symbol, propertyIsEnumerable = objectProto.propertyIsEnumerable, spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : void 0;
912
+ var nativeMax = Math.max;
913
+ /**
914
+ * The base implementation of `_.flatten` with support for restricting flattening.
915
+ *
916
+ * @private
917
+ * @param {Array} array The array to flatten.
918
+ * @param {number} depth The maximum recursion depth.
919
+ * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
920
+ * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
921
+ * @param {Array} [result=[]] The initial result value.
922
+ * @returns {Array} Returns the new flattened array.
923
+ */
924
+ function baseFlatten(array, depth, predicate, isStrict, result) {
925
+ var index = -1, length = array.length;
926
+ predicate || (predicate = isFlattenable);
927
+ result || (result = []);
928
+ while (++index < length) {
929
+ var value = array[index];
930
+ if (depth > 0 && predicate(value)) if (depth > 1) baseFlatten(value, depth - 1, predicate, isStrict, result);
931
+ else arrayPush(result, value);
932
+ else if (!isStrict) result[result.length] = value;
933
+ }
934
+ return result;
935
+ }
936
+ /**
937
+ * The base implementation of `_.pick` without support for individual
938
+ * property identifiers.
939
+ *
940
+ * @private
941
+ * @param {Object} object The source object.
942
+ * @param {string[]} props The property identifiers to pick.
943
+ * @returns {Object} Returns the new object.
944
+ */
945
+ function basePick(object, props) {
946
+ object = Object(object);
947
+ return basePickBy(object, props, function(value, key) {
948
+ return key in object;
949
+ });
950
+ }
951
+ /**
952
+ * The base implementation of `_.pickBy` without support for iteratee shorthands.
953
+ *
954
+ * @private
955
+ * @param {Object} object The source object.
956
+ * @param {string[]} props The property identifiers to pick from.
957
+ * @param {Function} predicate The function invoked per property.
958
+ * @returns {Object} Returns the new object.
959
+ */
960
+ function basePickBy(object, props, predicate) {
961
+ var index = -1, length = props.length, result = {};
962
+ while (++index < length) {
963
+ var key = props[index], value = object[key];
964
+ if (predicate(value, key)) result[key] = value;
965
+ }
966
+ return result;
967
+ }
968
+ /**
969
+ * The base implementation of `_.rest` which doesn't validate or coerce arguments.
970
+ *
971
+ * @private
972
+ * @param {Function} func The function to apply a rest parameter to.
973
+ * @param {number} [start=func.length-1] The start position of the rest parameter.
974
+ * @returns {Function} Returns the new function.
975
+ */
976
+ function baseRest(func, start) {
977
+ start = nativeMax(start === void 0 ? func.length - 1 : start, 0);
978
+ return function() {
979
+ var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length);
980
+ while (++index < length) array[index] = args[start + index];
981
+ index = -1;
982
+ var otherArgs = Array(start + 1);
983
+ while (++index < start) otherArgs[index] = args[index];
984
+ otherArgs[start] = array;
985
+ return apply(func, this, otherArgs);
986
+ };
987
+ }
988
+ /**
989
+ * Checks if `value` is a flattenable `arguments` object or array.
990
+ *
991
+ * @private
992
+ * @param {*} value The value to check.
993
+ * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
994
+ */
995
+ function isFlattenable(value) {
996
+ return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
997
+ }
998
+ /**
999
+ * Converts `value` to a string key if it's not a string or symbol.
1000
+ *
1001
+ * @private
1002
+ * @param {*} value The value to inspect.
1003
+ * @returns {string|symbol} Returns the key.
1004
+ */
1005
+ function toKey(value) {
1006
+ if (typeof value == "string" || isSymbol(value)) return value;
1007
+ var result = value + "";
1008
+ return result == "0" && 1 / value == -INFINITY ? "-0" : result;
1009
+ }
1010
+ /**
1011
+ * Checks if `value` is likely an `arguments` object.
1012
+ *
1013
+ * @static
1014
+ * @memberOf _
1015
+ * @since 0.1.0
1016
+ * @category Lang
1017
+ * @param {*} value The value to check.
1018
+ * @returns {boolean} Returns `true` if `value` is an `arguments` object,
1019
+ * else `false`.
1020
+ * @example
1021
+ *
1022
+ * _.isArguments(function() { return arguments; }());
1023
+ * // => true
1024
+ *
1025
+ * _.isArguments([1, 2, 3]);
1026
+ * // => false
1027
+ */
1028
+ function isArguments(value) {
1029
+ return isArrayLikeObject(value) && hasOwnProperty.call(value, "callee") && (!propertyIsEnumerable.call(value, "callee") || objectToString.call(value) == argsTag);
1030
+ }
1031
+ /**
1032
+ * Checks if `value` is classified as an `Array` object.
1033
+ *
1034
+ * @static
1035
+ * @memberOf _
1036
+ * @since 0.1.0
1037
+ * @category Lang
1038
+ * @param {*} value The value to check.
1039
+ * @returns {boolean} Returns `true` if `value` is an array, else `false`.
1040
+ * @example
1041
+ *
1042
+ * _.isArray([1, 2, 3]);
1043
+ * // => true
1044
+ *
1045
+ * _.isArray(document.body.children);
1046
+ * // => false
1047
+ *
1048
+ * _.isArray('abc');
1049
+ * // => false
1050
+ *
1051
+ * _.isArray(_.noop);
1052
+ * // => false
1053
+ */
1054
+ var isArray = Array.isArray;
1055
+ /**
1056
+ * Checks if `value` is array-like. A value is considered array-like if it's
1057
+ * not a function and has a `value.length` that's an integer greater than or
1058
+ * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
1059
+ *
1060
+ * @static
1061
+ * @memberOf _
1062
+ * @since 4.0.0
1063
+ * @category Lang
1064
+ * @param {*} value The value to check.
1065
+ * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
1066
+ * @example
1067
+ *
1068
+ * _.isArrayLike([1, 2, 3]);
1069
+ * // => true
1070
+ *
1071
+ * _.isArrayLike(document.body.children);
1072
+ * // => true
1073
+ *
1074
+ * _.isArrayLike('abc');
1075
+ * // => true
1076
+ *
1077
+ * _.isArrayLike(_.noop);
1078
+ * // => false
1079
+ */
1080
+ function isArrayLike(value) {
1081
+ return value != null && isLength(value.length) && !isFunction(value);
1082
+ }
1083
+ /**
1084
+ * This method is like `_.isArrayLike` except that it also checks if `value`
1085
+ * is an object.
1086
+ *
1087
+ * @static
1088
+ * @memberOf _
1089
+ * @since 4.0.0
1090
+ * @category Lang
1091
+ * @param {*} value The value to check.
1092
+ * @returns {boolean} Returns `true` if `value` is an array-like object,
1093
+ * else `false`.
1094
+ * @example
1095
+ *
1096
+ * _.isArrayLikeObject([1, 2, 3]);
1097
+ * // => true
1098
+ *
1099
+ * _.isArrayLikeObject(document.body.children);
1100
+ * // => true
1101
+ *
1102
+ * _.isArrayLikeObject('abc');
1103
+ * // => false
1104
+ *
1105
+ * _.isArrayLikeObject(_.noop);
1106
+ * // => false
1107
+ */
1108
+ function isArrayLikeObject(value) {
1109
+ return isObjectLike(value) && isArrayLike(value);
1110
+ }
1111
+ /**
1112
+ * Checks if `value` is classified as a `Function` object.
1113
+ *
1114
+ * @static
1115
+ * @memberOf _
1116
+ * @since 0.1.0
1117
+ * @category Lang
1118
+ * @param {*} value The value to check.
1119
+ * @returns {boolean} Returns `true` if `value` is a function, else `false`.
1120
+ * @example
1121
+ *
1122
+ * _.isFunction(_);
1123
+ * // => true
1124
+ *
1125
+ * _.isFunction(/abc/);
1126
+ * // => false
1127
+ */
1128
+ function isFunction(value) {
1129
+ var tag = isObject(value) ? objectToString.call(value) : "";
1130
+ return tag == funcTag || tag == genTag;
1131
+ }
1132
+ /**
1133
+ * Checks if `value` is a valid array-like length.
1134
+ *
1135
+ * **Note:** This method is loosely based on
1136
+ * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
1137
+ *
1138
+ * @static
1139
+ * @memberOf _
1140
+ * @since 4.0.0
1141
+ * @category Lang
1142
+ * @param {*} value The value to check.
1143
+ * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
1144
+ * @example
1145
+ *
1146
+ * _.isLength(3);
1147
+ * // => true
1148
+ *
1149
+ * _.isLength(Number.MIN_VALUE);
1150
+ * // => false
1151
+ *
1152
+ * _.isLength(Infinity);
1153
+ * // => false
1154
+ *
1155
+ * _.isLength('3');
1156
+ * // => false
1157
+ */
1158
+ function isLength(value) {
1159
+ return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
1160
+ }
1161
+ /**
1162
+ * Checks if `value` is the
1163
+ * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
1164
+ * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
1165
+ *
1166
+ * @static
1167
+ * @memberOf _
1168
+ * @since 0.1.0
1169
+ * @category Lang
1170
+ * @param {*} value The value to check.
1171
+ * @returns {boolean} Returns `true` if `value` is an object, else `false`.
1172
+ * @example
1173
+ *
1174
+ * _.isObject({});
1175
+ * // => true
1176
+ *
1177
+ * _.isObject([1, 2, 3]);
1178
+ * // => true
1179
+ *
1180
+ * _.isObject(_.noop);
1181
+ * // => true
1182
+ *
1183
+ * _.isObject(null);
1184
+ * // => false
1185
+ */
1186
+ function isObject(value) {
1187
+ var type = typeof value;
1188
+ return !!value && (type == "object" || type == "function");
1189
+ }
1190
+ /**
1191
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
1192
+ * and has a `typeof` result of "object".
1193
+ *
1194
+ * @static
1195
+ * @memberOf _
1196
+ * @since 4.0.0
1197
+ * @category Lang
1198
+ * @param {*} value The value to check.
1199
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
1200
+ * @example
1201
+ *
1202
+ * _.isObjectLike({});
1203
+ * // => true
1204
+ *
1205
+ * _.isObjectLike([1, 2, 3]);
1206
+ * // => true
1207
+ *
1208
+ * _.isObjectLike(_.noop);
1209
+ * // => false
1210
+ *
1211
+ * _.isObjectLike(null);
1212
+ * // => false
1213
+ */
1214
+ function isObjectLike(value) {
1215
+ return !!value && typeof value == "object";
1216
+ }
1217
+ /**
1218
+ * Checks if `value` is classified as a `Symbol` primitive or object.
1219
+ *
1220
+ * @static
1221
+ * @memberOf _
1222
+ * @since 4.0.0
1223
+ * @category Lang
1224
+ * @param {*} value The value to check.
1225
+ * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
1226
+ * @example
1227
+ *
1228
+ * _.isSymbol(Symbol.iterator);
1229
+ * // => true
1230
+ *
1231
+ * _.isSymbol('abc');
1232
+ * // => false
1233
+ */
1234
+ function isSymbol(value) {
1235
+ return typeof value == "symbol" || isObjectLike(value) && objectToString.call(value) == symbolTag;
1236
+ }
1237
+ /**
1238
+ * Creates an object composed of the picked `object` properties.
1239
+ *
1240
+ * @static
1241
+ * @since 0.1.0
1242
+ * @memberOf _
1243
+ * @category Object
1244
+ * @param {Object} object The source object.
1245
+ * @param {...(string|string[])} [props] The property identifiers to pick.
1246
+ * @returns {Object} Returns the new object.
1247
+ * @example
1248
+ *
1249
+ * var object = { 'a': 1, 'b': '2', 'c': 3 };
1250
+ *
1251
+ * _.pick(object, ['a', 'c']);
1252
+ * // => { 'a': 1, 'c': 3 }
1253
+ */
1254
+ var pick$1 = baseRest(function(object, props) {
1255
+ return object == null ? {} : basePick(object, arrayMap(baseFlatten(props, 1), toKey));
1256
+ });
1257
+ module.exports = pick$1;
1258
+ } });
1259
+
1260
+ //#endregion
1261
+ //#region src/endpoints/Endpoint.ts
1262
+ var import_lodash = require_Construct.__toESM(require_lodash(), 1);
1263
+ var import_lodash$1 = require_Construct.__toESM(require_lodash$1(), 1);
1264
+ /**
1265
+ * Represents an HTTP endpoint that can handle requests with type-safe input/output validation,
1266
+ * dependency injection, session management, and authorization.
1267
+ *
1268
+ * @template TRoute - The route path string with parameter placeholders (e.g., '/users/:id')
1269
+ * @template TMethod - The HTTP method (GET, POST, PUT, DELETE, PATCH)
1270
+ * @template TInput - The input schema definition for body, query, and path parameters
1271
+ * @template OutSchema - The output schema for response validation
1272
+ * @template TServices - Array of service dependencies to inject
1273
+ * @template TLogger - The logger instance type
1274
+ * @template TSession - The session data type
1275
+ *
1276
+ * @extends Function - Base function construct for handler execution
1277
+ *
1278
+ * @example
1279
+ * ```typescript
1280
+ * const endpoint = new Endpoint({
1281
+ * route: '/users/:id',
1282
+ * method: 'GET',
1283
+ * input: { params: userIdSchema },
1284
+ * output: userSchema,
1285
+ * fn: async ({ params }) => getUserById(params.id)
1286
+ * });
1287
+ * ```
1288
+ */
1289
+ var Endpoint = class Endpoint extends require_functions.Function {
1290
+ operationId;
1291
+ /** The route path pattern with parameter placeholders */
1292
+ route;
1293
+ /** The HTTP method for this endpoint */
1294
+ method;
1295
+ /** Optional description for OpenAPI documentation */
1296
+ description;
1297
+ /** Optional tags for OpenAPI documentation */
1298
+ tags;
1299
+ /** The HTTP success status code to return (default: 200) */
1300
+ status;
1301
+ /**
1302
+ * Response content type for this endpoint. Defaults to `'application/json'`.
1303
+ * Non-JSON types cause adaptors to emit the body as-is with the declared
1304
+ * Content-Type header instead of JSON-serializing.
1305
+ */
1306
+ responseType;
1307
+ /** Default headers to apply to all responses */
1308
+ defaultHeaders = {};
1309
+ /** Function to extract session data from the request context */
1310
+ getSession = () => ({});
1311
+ /** Function to determine if the request is authorized */
1312
+ authorize = () => true;
1313
+ /** Optional rate limiting configuration */
1314
+ rateLimit;
1315
+ /** Optional authorizer for this endpoint */
1316
+ authorizer;
1317
+ /** Optional actor extractor for audit records */
1318
+ actorExtractor;
1319
+ /** Declarative audit definitions */
1320
+ audits = [];
1321
+ /** RLS configuration for this endpoint */
1322
+ rlsConfig;
1323
+ /** Whether to bypass RLS for this endpoint */
1324
+ rlsBypass;
1325
+ /** The endpoint handler function */
1326
+ endpointFn;
1327
+ /**
1328
+ * Builds a complete OpenAPI 3.1 schema from an array of endpoints.
1329
+ *
1330
+ * @param endpoints - Array of endpoint instances to document
1331
+ * @param options - Optional configuration for OpenAPI generation
1332
+ * @returns OpenAPI 3.1 specification object
1333
+ *
1334
+ * @example
1335
+ * ```typescript
1336
+ * const schema = await Endpoint.buildOpenApiSchema([
1337
+ * getUserEndpoint,
1338
+ * createUserEndpoint
1339
+ * ], {
1340
+ * title: 'User API',
1341
+ * version: '1.0.0'
1342
+ * });
1343
+ * ```
1344
+ */
1345
+ static async buildOpenApiSchema(endpoints, options) {
1346
+ return (0, __geekmidas_schema_openapi.buildOpenApiSchema)(endpoints, options);
1347
+ }
1348
+ /**
1349
+ * Gets the full path including HTTP method and route.
1350
+ * @returns Formatted string like 'GET /users/{id}'
1351
+ */
1352
+ get fullPath() {
1353
+ return `${this.method} ${this._path}`;
1354
+ }
1355
+ /**
1356
+ * Parses and validates input data for a specific input type (body, query, params).
1357
+ *
1358
+ * @param input - The raw input data to validate
1359
+ * @param key - The input type key ('body', 'query', or 'params')
1360
+ * @returns The validated input data for the specified key
1361
+ * @throws {UnprocessableEntityError} When validation fails
1362
+ */
1363
+ async parseInput(input, key) {
1364
+ const schema = this.input?.[key];
1365
+ return Endpoint.parseSchema(schema, input);
1366
+ }
1367
+ /**
1368
+ * Parses and validates the request body against the body schema.
1369
+ *
1370
+ * @param body - The raw request body to validate
1371
+ * @returns The validated body data
1372
+ * @throws {UnprocessableEntityError} When body validation fails
1373
+ */
1374
+ async parseBody(body) {
1375
+ return this.parseInput(body, "body");
1376
+ }
1377
+ static isSuccessStatus(status) {
1378
+ return status >= 200 && status < 300;
1379
+ }
1380
+ /**
1381
+ * Creates a case-insensitive header lookup function from a headers object.
1382
+ *
1383
+ * @param headers - Object containing header key-value pairs
1384
+ * @returns Function to retrieve header values by case-insensitive key, or all headers
1385
+ *
1386
+ * @example
1387
+ * ```typescript
1388
+ * const headerFn = Endpoint.createHeaders({ 'Content-Type': 'application/json' });
1389
+ * headerFn('content-type'); // Returns 'application/json'
1390
+ * headerFn(); // Returns { 'content-type': 'application/json' }
1391
+ * ```
1392
+ */
1393
+ static createHeaders(headers) {
1394
+ const headerMap = /* @__PURE__ */ new Map();
1395
+ for (const [k, v] of Object.entries(headers)) {
1396
+ const key = k.toLowerCase();
1397
+ headerMap.set(key, v);
1398
+ }
1399
+ function get(key) {
1400
+ if (key === void 0) return Object.fromEntries(headerMap.entries());
1401
+ return headerMap.get(key.toLowerCase());
1402
+ }
1403
+ return get;
1404
+ }
1405
+ /**
1406
+ * Parses cookie string and creates a cookie lookup function.
1407
+ *
1408
+ * @param cookieHeader - The Cookie header value
1409
+ * @returns Function to retrieve cookie values by name, or all cookies
1410
+ *
1411
+ * @example
1412
+ * ```typescript
1413
+ * const cookieFn = Endpoint.createCookies('session=abc123; theme=dark');
1414
+ * cookieFn('session'); // Returns 'abc123'
1415
+ * cookieFn(); // Returns { session: 'abc123', theme: 'dark' }
1416
+ * ```
1417
+ */
1418
+ static createCookies(cookieHeader) {
1419
+ const cookieMap = /* @__PURE__ */ new Map();
1420
+ if (cookieHeader) {
1421
+ const cookies = cookieHeader.split(";");
1422
+ for (const cookie of cookies) {
1423
+ const [name, ...valueParts] = cookie.trim().split("=");
1424
+ if (name) {
1425
+ const value = valueParts.join("=");
1426
+ cookieMap.set(name, decodeURIComponent(value));
1427
+ }
1428
+ }
1429
+ }
1430
+ function get(name) {
1431
+ if (name === void 0) return Object.fromEntries(cookieMap.entries());
1432
+ return cookieMap.get(name);
1433
+ }
1434
+ return get;
1435
+ }
1436
+ /**
1437
+ * Formats a cookie as a Set-Cookie header string.
1438
+ *
1439
+ * @param name - Cookie name
1440
+ * @param value - Cookie value
1441
+ * @param options - Cookie options (httpOnly, secure, sameSite, etc.)
1442
+ * @returns Formatted Set-Cookie header string
1443
+ *
1444
+ * @example
1445
+ * ```typescript
1446
+ * const header = Endpoint.formatCookieHeader('session', 'abc123', {
1447
+ * httpOnly: true,
1448
+ * secure: true,
1449
+ * sameSite: 'strict',
1450
+ * maxAge: 3600
1451
+ * });
1452
+ * // Returns: "session=abc123; Max-Age=3600; HttpOnly; Secure; SameSite=Strict"
1453
+ * ```
1454
+ */
1455
+ static formatCookieHeader(name, value, options) {
1456
+ let cookie = `${name}=${value}`;
1457
+ if (options) {
1458
+ if (options.domain) cookie += `; Domain=${options.domain}`;
1459
+ if (options.path) cookie += `; Path=${options.path}`;
1460
+ if (options.expires) cookie += `; Expires=${options.expires.toUTCString()}`;
1461
+ if (options.maxAge !== void 0) cookie += `; Max-Age=${options.maxAge}`;
1462
+ if (options.httpOnly) cookie += "; HttpOnly";
1463
+ if (options.secure) cookie += "; Secure";
1464
+ if (options.sameSite) cookie += `; SameSite=${options.sameSite.charAt(0).toUpperCase() + options.sameSite.slice(1)}`;
1465
+ }
1466
+ return cookie;
1467
+ }
1468
+ /**
1469
+ * Extracts and refines input data from the endpoint context.
1470
+ *
1471
+ * @param ctx - The endpoint execution context
1472
+ * @returns Object containing only the input data (body, query, params)
1473
+ * @internal
1474
+ */
1475
+ refineInput(ctx) {
1476
+ const input = (0, import_lodash.default)(ctx, [
1477
+ "body",
1478
+ "query",
1479
+ "params"
1480
+ ]);
1481
+ return input;
1482
+ }
1483
+ handler = (ctx, response) => {
1484
+ for (const [key, value] of Object.entries(this.defaultHeaders)) response.header(key, value);
1485
+ const handlerCtx = {
1486
+ ...this.refineInput(ctx),
1487
+ services: ctx.services,
1488
+ logger: ctx.logger,
1489
+ header: ctx.header,
1490
+ cookie: ctx.cookie,
1491
+ session: ctx.session,
1492
+ ..."auditor" in ctx && { auditor: ctx.auditor },
1493
+ ..."db" in ctx && { db: ctx.db }
1494
+ };
1495
+ return this.endpointFn(handlerCtx, response);
1496
+ };
1497
+ /**
1498
+ * Type guard to check if an object is an Endpoint instance.
1499
+ *
1500
+ * @param obj - The object to check
1501
+ * @returns True if the object is an Endpoint
1502
+ */
1503
+ static isEndpoint(obj) {
1504
+ return Boolean(obj && obj.__IS_FUNCTION__ === true && obj.type === require_Construct.ConstructType.Endpoint);
1505
+ }
1506
+ /**
1507
+ * Helper to check if response has metadata
1508
+ */
1509
+ static hasMetadata(response) {
1510
+ return response !== null && typeof response === "object" && "data" in response && "metadata" in response;
1511
+ }
1512
+ /**
1513
+ * Converts Express-style route params to OpenAPI format.
1514
+ * @returns Route with ':param' converted to '{param}'
1515
+ * @internal
1516
+ */
1517
+ get _path() {
1518
+ return this.route.replace(/:(\w+)/g, "{$1}");
1519
+ }
1520
+ /**
1521
+ * Generates OpenAPI 3.1 schema for this endpoint.
1522
+ *
1523
+ * @returns OpenAPI route definition with operation details
1524
+ */
1525
+ async toOpenApi3Route(componentCollector) {
1526
+ const operation = {
1527
+ operationId: this.operationId,
1528
+ ...this.description && { description: this.description },
1529
+ ...this.tags && this.tags.length > 0 && { tags: this.tags },
1530
+ responses: { "200": { description: "Successful response" } }
1531
+ };
1532
+ if (this.outputSchema) {
1533
+ const responseSchema = await (0, __geekmidas_schema_conversion.convertSchemaWithComponents)(this.outputSchema, componentCollector);
1534
+ if (responseSchema) (0, import_lodash$1.default)(operation, [
1535
+ "responses",
1536
+ "200",
1537
+ "content",
1538
+ this.responseType,
1539
+ "schema"
1540
+ ], responseSchema);
1541
+ }
1542
+ const pathParameters = [];
1543
+ const queryParameters = [];
1544
+ if (this.input && typeof this.input === "object") {
1545
+ if ([
1546
+ "POST",
1547
+ "PUT",
1548
+ "PATCH"
1549
+ ].includes(this.method) && "body" in this.input && this.input.body) {
1550
+ const bodySchema = await (0, __geekmidas_schema_conversion.convertSchemaWithComponents)(this.input.body, componentCollector);
1551
+ if (bodySchema) (0, import_lodash$1.default)(operation, ["requestBody"], {
1552
+ required: true,
1553
+ content: { "application/json": { schema: bodySchema } }
1554
+ });
1555
+ }
1556
+ if ("params" in this.input && this.input.params) {
1557
+ const paramsSchema = await (0, __geekmidas_schema_conversion.convertStandardSchemaToJsonSchema)(this.input.params);
1558
+ if (paramsSchema && paramsSchema.type === "object" && paramsSchema.properties) for (const [name, schema] of Object.entries(paramsSchema.properties)) pathParameters.push({
1559
+ name,
1560
+ in: "path",
1561
+ required: paramsSchema.required?.includes(name) ?? true,
1562
+ schema
1563
+ });
1564
+ }
1565
+ if ("query" in this.input && this.input.query) {
1566
+ const querySchema = await (0, __geekmidas_schema_conversion.convertStandardSchemaToJsonSchema)(this.input.query);
1567
+ if (querySchema && querySchema.type === "object" && querySchema.properties) for (const [name, schema] of Object.entries(querySchema.properties)) queryParameters.push({
1568
+ name,
1569
+ in: "query",
1570
+ required: querySchema.required?.includes(name) ?? false,
1571
+ schema
1572
+ });
1573
+ }
1574
+ }
1575
+ if (queryParameters.length > 0) operation.parameters = queryParameters;
1576
+ const routeObject = {};
1577
+ if (pathParameters.length > 0) routeObject.parameters = pathParameters;
1578
+ routeObject[this.method.toLowerCase()] = operation;
1579
+ return { [this._path]: routeObject };
1580
+ }
1581
+ /**
1582
+ * Creates a new Endpoint instance.
1583
+ *
1584
+ * @param options - Configuration options for the endpoint
1585
+ * @param options.fn - The handler function to execute
1586
+ * @param options.method - HTTP method
1587
+ * @param options.route - Route path with parameter placeholders
1588
+ * @param options.description - Optional description for documentation
1589
+ * @param options.input - Input schemas for validation
1590
+ * @param options.logger - Logger instance
1591
+ * @param options.output - Output schema for response validation
1592
+ * @param options.services - Service dependencies
1593
+ * @param options.timeout - Execution timeout in milliseconds
1594
+ * @param options.getSession - Session extraction function
1595
+ * @param options.authorize - Authorization check function
1596
+ * @param options.status - Success HTTP status code (default: 200)
1597
+ * @param options.authorizer - Optional authorizer configuration
1598
+ */
1599
+ constructor({ fn, method, route, description, tags, input, logger, output: outputSchema, services, timeout, memorySize, getSession, authorize, rateLimit, status = SuccessStatus.OK, publisherService, events, authorizer, auditorStorageService, actorExtractor, audits, databaseService, rlsConfig, rlsBypass, responseType }) {
1600
+ super(fn, timeout, require_Construct.ConstructType.Endpoint, input, outputSchema, services, logger, publisherService, events, memorySize, auditorStorageService);
1601
+ this.route = route;
1602
+ this.method = method;
1603
+ this.description = description;
1604
+ this.tags = tags;
1605
+ this.status = status;
1606
+ this.responseType = responseType ?? "application/json";
1607
+ this.endpointFn = fn;
1608
+ if (getSession) this.getSession = getSession;
1609
+ if (authorize) this.authorize = authorize;
1610
+ if (rateLimit) this.rateLimit = rateLimit;
1611
+ if (authorizer) this.authorizer = authorizer;
1612
+ if (actorExtractor) this.actorExtractor = actorExtractor;
1613
+ if (audits) this.audits = audits;
1614
+ if (databaseService) this.databaseService = databaseService;
1615
+ if (rlsConfig) this.rlsConfig = rlsConfig;
1616
+ if (rlsBypass) this.rlsBypass = rlsBypass;
1617
+ }
1618
+ };
1619
+ /**
1620
+ * Response builder for fluent API in handlers
1621
+ */
1622
+ var ResponseBuilder = class {
1623
+ metadata = {
1624
+ headers: {},
1625
+ cookies: /* @__PURE__ */ new Map()
1626
+ };
1627
+ header(key, value) {
1628
+ this.metadata.headers[key] = value;
1629
+ return this;
1630
+ }
1631
+ cookie(name, value, options) {
1632
+ this.metadata.cookies?.set(name, {
1633
+ value,
1634
+ options
1635
+ });
1636
+ return this;
1637
+ }
1638
+ deleteCookie(name, options) {
1639
+ this.metadata.cookies?.set(name, {
1640
+ value: "",
1641
+ options: {
1642
+ ...options,
1643
+ maxAge: 0,
1644
+ expires: /* @__PURE__ */ new Date(0)
1645
+ }
1646
+ });
1647
+ return this;
1648
+ }
1649
+ status(code) {
1650
+ this.metadata.status = code;
1651
+ return this;
1652
+ }
1653
+ send(data) {
1654
+ return {
1655
+ data,
1656
+ metadata: this.metadata
1657
+ };
1658
+ }
1659
+ getMetadata() {
1660
+ return this.metadata;
1661
+ }
1662
+ };
1663
+ /**
1664
+ * HTTP success status codes that can be returned by endpoints.
1665
+ */
1666
+ let SuccessStatus = /* @__PURE__ */ function(SuccessStatus$1) {
1667
+ /** Standard response for successful HTTP requests */
1668
+ SuccessStatus$1[SuccessStatus$1["OK"] = 200] = "OK";
1669
+ /** Request has been fulfilled and resulted in a new resource being created */
1670
+ SuccessStatus$1[SuccessStatus$1["Created"] = 201] = "Created";
1671
+ /** Request has been accepted for processing, but processing is not complete */
1672
+ SuccessStatus$1[SuccessStatus$1["Accepted"] = 202] = "Accepted";
1673
+ /** Server successfully processed the request but is not returning any content */
1674
+ SuccessStatus$1[SuccessStatus$1["NoContent"] = 204] = "NoContent";
1675
+ /** Server successfully processed the request and is not returning any content, client should reset the document view */
1676
+ SuccessStatus$1[SuccessStatus$1["ResetContent"] = 205] = "ResetContent";
1677
+ /** Server is delivering only part of the resource due to a range header */
1678
+ SuccessStatus$1[SuccessStatus$1["PartialContent"] = 206] = "PartialContent";
1679
+ return SuccessStatus$1;
1680
+ }({});
1681
+
1682
+ //#endregion
1683
+ //#region src/publisher.ts
1684
+ async function publishEvents(logger, serviceDiscovery, ev = [], response, publisherService) {
1685
+ try {
1686
+ if (!ev?.length) {
1687
+ logger.debug("No events to publish");
1688
+ return;
1689
+ }
1690
+ if (!publisherService) {
1691
+ logger.warn("No publisher service available");
1692
+ return;
1693
+ }
1694
+ const services = await serviceDiscovery.register([publisherService]);
1695
+ const publisher = services[publisherService.serviceName];
1696
+ const events = [];
1697
+ for (const { when, payload, type,...e } of ev) {
1698
+ logger.debug({ event: type }, "Processing event");
1699
+ const resolvedPayload = await payload(response);
1700
+ const event = {
1701
+ ...e,
1702
+ type,
1703
+ payload: resolvedPayload
1704
+ };
1705
+ if (!when || when(response)) events.push(event);
1706
+ }
1707
+ if (events.length) {
1708
+ logger.debug({ eventCount: ev.length }, "Publishing events");
1709
+ await publisher.publish(events).catch((err) => {
1710
+ logger.error(err, "Failed to publish events");
1711
+ });
1712
+ }
1713
+ } catch (error) {
1714
+ logger.error(error, "Something went wrong publishing events");
1715
+ }
1716
+ }
1717
+ async function publishConstructEvents(construct, response, serviceDiscovery, logger = construct.logger) {
1718
+ return publishEvents(logger, serviceDiscovery, construct.events, response, construct.publisherService);
1719
+ }
1720
+
1721
+ //#endregion
1722
+ //#region src/endpoints/lazyAccessors.ts
1723
+ /**
1724
+ * Create a lazy header accessor for Hono.
1725
+ * Uses `c.req.header(name)` for single lookups (native, case-insensitive).
1726
+ * Only calls `c.req.header()` to get all headers when needed.
1727
+ */
1728
+ function createHonoHeaders(c) {
1729
+ let allHeaders = null;
1730
+ return (key) => {
1731
+ if (key !== void 0) return c.req.header(key);
1732
+ if (!allHeaders) allHeaders = c.req.header();
1733
+ return allHeaders;
1734
+ };
1735
+ }
1736
+ /**
1737
+ * Create a lazy cookie accessor for Hono.
1738
+ * Uses `getCookie(c, name)` for single lookups (native).
1739
+ * Only parses the cookie header when all cookies are requested.
1740
+ */
1741
+ function createHonoCookies(c) {
1742
+ let allCookies = null;
1743
+ return (name) => {
1744
+ if (name !== void 0) return (0, hono_cookie.getCookie)(c, name);
1745
+ if (!allCookies) {
1746
+ allCookies = {};
1747
+ const cookieHeader = c.req.header("cookie");
1748
+ if (cookieHeader) for (const part of cookieHeader.split(";")) {
1749
+ const trimmed = part.trim();
1750
+ const eqIndex = trimmed.indexOf("=");
1751
+ if (eqIndex > 0) {
1752
+ const key = trimmed.slice(0, eqIndex);
1753
+ const value = trimmed.slice(eqIndex + 1);
1754
+ allCookies[key] = value;
1755
+ }
1756
+ }
1757
+ }
1758
+ return allCookies;
1759
+ };
1760
+ }
1761
+ /**
1762
+ * Create a lazy header accessor for API Gateway events.
1763
+ * Handles case-insensitive lookups.
1764
+ */
1765
+ function createApiGatewayHeaders(headers) {
1766
+ let normalizedHeaders = null;
1767
+ const normalize = () => {
1768
+ if (!normalizedHeaders) {
1769
+ normalizedHeaders = {};
1770
+ if (headers) {
1771
+ for (const [k, v] of Object.entries(headers)) if (v !== void 0) normalizedHeaders[k.toLowerCase()] = v;
1772
+ }
1773
+ }
1774
+ return normalizedHeaders;
1775
+ };
1776
+ return (key) => {
1777
+ if (key !== void 0) {
1778
+ if (headers) {
1779
+ const direct = headers[key] ?? headers[key.toLowerCase()];
1780
+ if (direct !== void 0) return direct;
1781
+ return normalize()[key.toLowerCase()];
1782
+ }
1783
+ return void 0;
1784
+ }
1785
+ return normalize();
1786
+ };
1787
+ }
1788
+ /**
1789
+ * Create a lazy cookie accessor for API Gateway events.
1790
+ * Decodes URL-encoded values to match browser behavior.
1791
+ */
1792
+ function createApiGatewayCookies(cookies, cookieHeader) {
1793
+ let parsed = null;
1794
+ const parse = () => {
1795
+ if (!parsed) {
1796
+ parsed = {};
1797
+ if (cookies) for (const cookie of cookies) {
1798
+ const eqIndex = cookie.indexOf("=");
1799
+ if (eqIndex > 0) {
1800
+ const key = cookie.slice(0, eqIndex);
1801
+ const value = cookie.slice(eqIndex + 1);
1802
+ parsed[key] = decodeURIComponent(value);
1803
+ }
1804
+ }
1805
+ else if (cookieHeader) for (const part of cookieHeader.split(";")) {
1806
+ const trimmed = part.trim();
1807
+ const eqIndex = trimmed.indexOf("=");
1808
+ if (eqIndex > 0) {
1809
+ const key = trimmed.slice(0, eqIndex);
1810
+ const value = trimmed.slice(eqIndex + 1);
1811
+ parsed[key] = decodeURIComponent(value);
1812
+ }
1813
+ }
1814
+ }
1815
+ return parsed;
1816
+ };
1817
+ return (name) => {
1818
+ if (name !== void 0) return parse()[name];
1819
+ return parse();
1820
+ };
1821
+ }
1822
+ /**
1823
+ * Create a lazy header accessor for plain object headers (test adaptor, etc).
1824
+ * Headers are already available as an object, just provide lazy access.
1825
+ */
1826
+ function createObjectHeaders(headers) {
1827
+ let normalized = null;
1828
+ return (key) => {
1829
+ if (key !== void 0) {
1830
+ if (headers) {
1831
+ const direct = headers[key] ?? headers[key.toLowerCase()];
1832
+ if (direct !== void 0) return direct;
1833
+ }
1834
+ if (!normalized && headers) {
1835
+ normalized = {};
1836
+ for (const [k, v] of Object.entries(headers)) normalized[k.toLowerCase()] = v;
1837
+ }
1838
+ return normalized?.[key.toLowerCase()];
1839
+ }
1840
+ if (!normalized && headers) {
1841
+ normalized = {};
1842
+ for (const [k, v] of Object.entries(headers)) normalized[k.toLowerCase()] = v;
1843
+ }
1844
+ return normalized ?? {};
1845
+ };
1846
+ }
1847
+ /**
1848
+ * Create a lazy cookie accessor from a cookie header string.
1849
+ * Decodes URL-encoded values to match browser behavior.
1850
+ */
1851
+ function createCookieHeaderAccessor(cookieHeader) {
1852
+ let parsed = null;
1853
+ const parse = () => {
1854
+ if (!parsed) {
1855
+ parsed = {};
1856
+ if (cookieHeader) for (const part of cookieHeader.split(";")) {
1857
+ const trimmed = part.trim();
1858
+ const eqIndex = trimmed.indexOf("=");
1859
+ if (eqIndex > 0) {
1860
+ const key = trimmed.slice(0, eqIndex);
1861
+ const value = trimmed.slice(eqIndex + 1);
1862
+ parsed[key] = decodeURIComponent(value);
1863
+ }
1864
+ }
1865
+ }
1866
+ return parsed;
1867
+ };
1868
+ return (name) => {
1869
+ if (name !== void 0) return parse()[name];
1870
+ return parse();
1871
+ };
1872
+ }
1873
+ /**
1874
+ * Create a no-op header accessor (for minimal endpoints that don't use headers).
1875
+ */
1876
+ function createNoopHeaders() {
1877
+ return (key) => {
1878
+ if (key !== void 0) return void 0;
1879
+ return {};
1880
+ };
1881
+ }
1882
+ /**
1883
+ * Create a no-op cookie accessor (for minimal endpoints that don't use cookies).
1884
+ */
1885
+ function createNoopCookies() {
1886
+ return (name) => {
1887
+ if (name !== void 0) return void 0;
1888
+ return {};
1889
+ };
1890
+ }
1891
+
1892
+ //#endregion
1893
+ Object.defineProperty(exports, 'Endpoint', {
1894
+ enumerable: true,
1895
+ get: function () {
1896
+ return Endpoint;
1897
+ }
1898
+ });
1899
+ Object.defineProperty(exports, 'ResponseBuilder', {
1900
+ enumerable: true,
1901
+ get: function () {
1902
+ return ResponseBuilder;
1903
+ }
1904
+ });
1905
+ Object.defineProperty(exports, 'createApiGatewayCookies', {
1906
+ enumerable: true,
1907
+ get: function () {
1908
+ return createApiGatewayCookies;
1909
+ }
1910
+ });
1911
+ Object.defineProperty(exports, 'createApiGatewayHeaders', {
1912
+ enumerable: true,
1913
+ get: function () {
1914
+ return createApiGatewayHeaders;
1915
+ }
1916
+ });
1917
+ Object.defineProperty(exports, 'createCookieHeaderAccessor', {
1918
+ enumerable: true,
1919
+ get: function () {
1920
+ return createCookieHeaderAccessor;
1921
+ }
1922
+ });
1923
+ Object.defineProperty(exports, 'createHonoCookies', {
1924
+ enumerable: true,
1925
+ get: function () {
1926
+ return createHonoCookies;
1927
+ }
1928
+ });
1929
+ Object.defineProperty(exports, 'createHonoHeaders', {
1930
+ enumerable: true,
1931
+ get: function () {
1932
+ return createHonoHeaders;
1933
+ }
1934
+ });
1935
+ Object.defineProperty(exports, 'createNoopCookies', {
1936
+ enumerable: true,
1937
+ get: function () {
1938
+ return createNoopCookies;
1939
+ }
1940
+ });
1941
+ Object.defineProperty(exports, 'createNoopHeaders', {
1942
+ enumerable: true,
1943
+ get: function () {
1944
+ return createNoopHeaders;
1945
+ }
1946
+ });
1947
+ Object.defineProperty(exports, 'createObjectHeaders', {
1948
+ enumerable: true,
1949
+ get: function () {
1950
+ return createObjectHeaders;
1951
+ }
1952
+ });
1953
+ Object.defineProperty(exports, 'publishConstructEvents', {
1954
+ enumerable: true,
1955
+ get: function () {
1956
+ return publishConstructEvents;
1957
+ }
1958
+ });
1959
+ Object.defineProperty(exports, 'publishEvents', {
1960
+ enumerable: true,
1961
+ get: function () {
1962
+ return publishEvents;
1963
+ }
1964
+ });
1965
+ Object.defineProperty(exports, 'require_lodash', {
1966
+ enumerable: true,
1967
+ get: function () {
1968
+ return require_lodash$1;
1969
+ }
1970
+ });
1971
+ //# sourceMappingURL=lazyAccessors-Bc1u42WC.cjs.map