@geekmidas/constructs 10.0.0-alpha.2 → 10.0.0-alpha.21

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 (333) hide show
  1. package/README.md +46 -3
  2. package/dist/{Construct-Ct8nalEi.d.mts → Construct-DTqYvkPG.d.cts} +11 -13
  3. package/dist/Construct-DTqYvkPG.d.cts.map +1 -0
  4. package/dist/{Construct-BD5neF7w.mjs → Construct-Detz65RA.mjs} +31 -29
  5. package/dist/Construct-Detz65RA.mjs.map +1 -0
  6. package/dist/{Construct-C0ijr2qp.d.cts → Construct-pVadmURD.d.mts} +10 -12
  7. package/dist/Construct-pVadmURD.d.mts.map +1 -0
  8. package/dist/{Construct-CyS3RpTL.cjs → Construct-yG9Sw-5p.cjs} +51 -43
  9. package/dist/Construct-yG9Sw-5p.cjs.map +1 -0
  10. package/dist/{Cron-ByxdOfpE.d.mts → Cron-AYpQq725.d.mts} +13 -6
  11. package/dist/Cron-AYpQq725.d.mts.map +1 -0
  12. package/dist/{Cron-Wqh464aO.d.cts → Cron-Bdcg9OAL.d.cts} +12 -5
  13. package/dist/Cron-Bdcg9OAL.d.cts.map +1 -0
  14. package/dist/{CronBuilder-BL0AP6fs.d.mts → CronBuilder-DR21m9h2.d.cts} +7 -10
  15. package/dist/CronBuilder-DR21m9h2.d.cts.map +1 -0
  16. package/dist/{CronBuilder-BqpEzMPQ.d.cts → CronBuilder-DeBnPVIT.d.mts} +7 -10
  17. package/dist/CronBuilder-DeBnPVIT.d.mts.map +1 -0
  18. package/dist/{CronBuilder-BmABazzH.mjs → CronBuilder-vkjuo1UP.mjs} +23 -15
  19. package/dist/CronBuilder-vkjuo1UP.mjs.map +1 -0
  20. package/dist/{CronBuilder-CkXPJiGO.cjs → CronBuilder-zdTdaT-e.cjs} +33 -25
  21. package/dist/CronBuilder-zdTdaT-e.cjs.map +1 -0
  22. package/dist/{Endpoint-2Wg7T7Cq.d.mts → Endpoint-BxkRWQ8G.d.mts} +63 -84
  23. package/dist/Endpoint-BxkRWQ8G.d.mts.map +1 -0
  24. package/dist/{Endpoint-BiaaMEn_.cjs → Endpoint-CtiPUpRX.cjs} +145 -131
  25. package/dist/Endpoint-CtiPUpRX.cjs.map +1 -0
  26. package/dist/{Endpoint-VIOpSo0S.mjs → Endpoint-DCr5tlbJ.mjs} +117 -109
  27. package/dist/Endpoint-DCr5tlbJ.mjs.map +1 -0
  28. package/dist/{Endpoint-CH9Fn1AD.d.cts → Endpoint-DbYQJgb-.d.cts} +61 -82
  29. package/dist/Endpoint-DbYQJgb-.d.cts.map +1 -0
  30. package/dist/{EndpointFactory-DTTCkGEL.mjs → EndpointFactory-Bs8pu-yY.mjs} +20 -29
  31. package/dist/EndpointFactory-Bs8pu-yY.mjs.map +1 -0
  32. package/dist/{index-BxHDdy6a.d.mts → EndpointFactory-DE6nKtFZ.d.cts} +12 -92
  33. package/dist/EndpointFactory-DE6nKtFZ.d.cts.map +1 -0
  34. package/dist/{index-V2nksZIJ.d.cts → EndpointFactory-T06kTFHg.d.mts} +12 -92
  35. package/dist/EndpointFactory-T06kTFHg.d.mts.map +1 -0
  36. package/dist/{EndpointFactory-ChxLZllA.cjs → EndpointFactory-vE2C1NG1.cjs} +57 -66
  37. package/dist/EndpointFactory-vE2C1NG1.cjs.map +1 -0
  38. package/dist/{HonoEndpointAdaptor-NKQQQbBY.mjs → HonoEndpointAdaptor-Be6UdK0r.mjs} +40 -47
  39. package/dist/{HonoEndpointAdaptor-D233Jvpk.cjs.map → HonoEndpointAdaptor-Be6UdK0r.mjs.map} +1 -1
  40. package/dist/{HonoEndpointAdaptor-D233Jvpk.cjs → HonoEndpointAdaptor-C9aivwKl.cjs} +48 -52
  41. package/dist/HonoEndpointAdaptor-C9aivwKl.cjs.map +1 -0
  42. package/dist/{Queue-D7ZuwBhy.d.cts → Queue-Bhzi2WQC.d.cts} +8 -9
  43. package/dist/Queue-Bhzi2WQC.d.cts.map +1 -0
  44. package/dist/{Queue-gVGfi2Yk.d.mts → Queue-BoUA-e83.d.mts} +9 -10
  45. package/dist/Queue-BoUA-e83.d.mts.map +1 -0
  46. package/dist/{Subscriber-2mEi0ImH.d.cts → Subscriber-CIO3pwji.d.mts} +7 -8
  47. package/dist/Subscriber-CIO3pwji.d.mts.map +1 -0
  48. package/dist/{Subscriber-xTJ9ayPN.d.mts → Subscriber-DQCaiOXF.d.cts} +7 -8
  49. package/dist/Subscriber-DQCaiOXF.d.cts.map +1 -0
  50. package/dist/{SubscriberBuilder-BjkbeT9l.mjs → SubscriberBuilder-B4YRTBng.mjs} +16 -10
  51. package/dist/SubscriberBuilder-B4YRTBng.mjs.map +1 -0
  52. package/dist/{SubscriberBuilder-4OPehf2R.cjs → SubscriberBuilder-C2bCOuPT.cjs} +28 -23
  53. package/dist/SubscriberBuilder-C2bCOuPT.cjs.map +1 -0
  54. package/dist/{SubscriberBuilder-Dptmo-1A.d.mts → SubscriberBuilder-ChX5v948.d.cts} +8 -11
  55. package/dist/SubscriberBuilder-ChX5v948.d.cts.map +1 -0
  56. package/dist/{SubscriberBuilder-waNhzjSM.d.cts → SubscriberBuilder-Dbiaskfi.d.mts} +8 -11
  57. package/dist/SubscriberBuilder-Dbiaskfi.d.mts.map +1 -0
  58. package/dist/{Topic-19QeHBIR.d.cts → Topic-D6blllEn.d.cts} +5 -7
  59. package/dist/Topic-D6blllEn.d.cts.map +1 -0
  60. package/dist/{Topic-DuFeqkBh.d.mts → Topic-DVvheJ_-.d.mts} +6 -8
  61. package/dist/Topic-DVvheJ_-.d.mts.map +1 -0
  62. package/dist/adaptors/aws.cjs +87 -106
  63. package/dist/adaptors/aws.cjs.map +1 -1
  64. package/dist/adaptors/aws.d.cts +14 -27
  65. package/dist/adaptors/aws.d.cts.map +1 -1
  66. package/dist/adaptors/aws.d.mts +16 -29
  67. package/dist/adaptors/aws.d.mts.map +1 -1
  68. package/dist/adaptors/aws.mjs +60 -81
  69. package/dist/adaptors/aws.mjs.map +1 -1
  70. package/dist/adaptors/hono.cjs +3 -10
  71. package/dist/adaptors/hono.d.cts +5 -13
  72. package/dist/adaptors/hono.d.cts.map +1 -1
  73. package/dist/adaptors/hono.d.mts +7 -15
  74. package/dist/adaptors/hono.d.mts.map +1 -1
  75. package/dist/adaptors/hono.mjs +2 -10
  76. package/dist/adaptors/testing.cjs +271 -82
  77. package/dist/adaptors/testing.cjs.map +1 -1
  78. package/dist/adaptors/testing.d.cts +62 -33
  79. package/dist/adaptors/testing.d.cts.map +1 -1
  80. package/dist/adaptors/testing.d.mts +63 -34
  81. package/dist/adaptors/testing.d.mts.map +1 -1
  82. package/dist/adaptors/testing.mjs +249 -63
  83. package/dist/adaptors/testing.mjs.map +1 -1
  84. package/dist/auth-BlO8MUkR.d.cts +123 -0
  85. package/dist/auth-BlO8MUkR.d.cts.map +1 -0
  86. package/dist/auth-CHWIdcQO.d.mts +123 -0
  87. package/dist/auth-CHWIdcQO.d.mts.map +1 -0
  88. package/dist/auth.cjs +41 -16
  89. package/dist/auth.cjs.map +1 -1
  90. package/dist/auth.d.cts +2 -108
  91. package/dist/auth.d.mts +2 -108
  92. package/dist/auth.mjs +32 -8
  93. package/dist/auth.mjs.map +1 -1
  94. package/dist/{cache-BrRz3fEB.d.mts → cache-AgQUMma6.d.mts} +3 -6
  95. package/dist/cache-AgQUMma6.d.mts.map +1 -0
  96. package/dist/{cache-BtZY_tHe.d.cts → cache-obq0fOIM.d.cts} +3 -6
  97. package/dist/cache-obq0fOIM.d.cts.map +1 -0
  98. package/dist/cache.cjs +68 -2
  99. package/dist/cache.cjs.map +1 -0
  100. package/dist/cache.d.cts +1 -2
  101. package/dist/cache.d.mts +1 -2
  102. package/dist/cache.mjs +67 -2
  103. package/dist/cache.mjs.map +1 -0
  104. package/dist/{clone-DblgEZZa.mjs → clone-EKNovYHu.mjs} +3 -3
  105. package/dist/clone-EKNovYHu.mjs.map +1 -0
  106. package/dist/{clone-Dy0cR2SZ.cjs → clone-UGJpvQnL.cjs} +7 -8
  107. package/dist/clone-UGJpvQnL.cjs.map +1 -0
  108. package/dist/{construct-interface-g5GM5pwR.d.mts → construct-interface-Clz7_BwB.d.mts} +15 -6
  109. package/dist/construct-interface-Clz7_BwB.d.mts.map +1 -0
  110. package/dist/{construct-interface-D9d4Gm4p.d.cts → construct-interface-DIaTNKax.d.cts} +15 -6
  111. package/dist/construct-interface-DIaTNKax.d.cts.map +1 -0
  112. package/dist/construct-interface.cjs +87 -7
  113. package/dist/construct-interface.cjs.map +1 -0
  114. package/dist/construct-interface.d.cts +2 -2
  115. package/dist/construct-interface.d.mts +2 -2
  116. package/dist/construct-interface.mjs +81 -2
  117. package/dist/construct-interface.mjs.map +1 -0
  118. package/dist/credential.cjs +43 -9
  119. package/dist/credential.cjs.map +1 -1
  120. package/dist/credential.d.cts +5 -8
  121. package/dist/credential.d.cts.map +1 -1
  122. package/dist/credential.d.mts +5 -8
  123. package/dist/credential.d.mts.map +1 -1
  124. package/dist/credential.mjs +36 -2
  125. package/dist/credential.mjs.map +1 -1
  126. package/dist/crons/index.cjs +68 -10
  127. package/dist/crons/index.cjs.map +1 -1
  128. package/dist/crons/index.d.cts +32 -14
  129. package/dist/crons/index.d.cts.map +1 -1
  130. package/dist/crons/index.d.mts +32 -14
  131. package/dist/crons/index.d.mts.map +1 -1
  132. package/dist/crons/index.mjs +66 -10
  133. package/dist/crons/index.mjs.map +1 -1
  134. package/dist/database/kysely.cjs +28 -14
  135. package/dist/database/kysely.cjs.map +1 -1
  136. package/dist/database/kysely.d.cts +2 -152
  137. package/dist/database/kysely.d.mts +2 -152
  138. package/dist/database/kysely.mjs +16 -4
  139. package/dist/database/kysely.mjs.map +1 -1
  140. package/dist/email.cjs +25 -12
  141. package/dist/email.cjs.map +1 -1
  142. package/dist/email.d.cts +3 -7
  143. package/dist/email.d.cts.map +1 -1
  144. package/dist/email.d.mts +3 -7
  145. package/dist/email.d.mts.map +1 -1
  146. package/dist/email.mjs +16 -3
  147. package/dist/email.mjs.map +1 -1
  148. package/dist/endpoints/index.cjs +7 -10
  149. package/dist/endpoints/index.d.cts +60 -7
  150. package/dist/endpoints/index.d.cts.map +1 -0
  151. package/dist/endpoints/index.d.mts +60 -7
  152. package/dist/endpoints/index.d.mts.map +1 -0
  153. package/dist/endpoints/index.mjs +5 -10
  154. package/dist/file-server.cjs +42 -10
  155. package/dist/file-server.cjs.map +1 -1
  156. package/dist/file-server.d.cts +6 -10
  157. package/dist/file-server.d.cts.map +1 -1
  158. package/dist/file-server.d.mts +6 -10
  159. package/dist/file-server.d.mts.map +1 -1
  160. package/dist/file-server.mjs +34 -2
  161. package/dist/file-server.mjs.map +1 -1
  162. package/dist/functions/index.cjs +2 -6
  163. package/dist/functions/index.d.cts +2 -4
  164. package/dist/functions/index.d.mts +2 -4
  165. package/dist/functions/index.mjs +2 -6
  166. package/dist/{functions-Bd3TPxid.cjs → functions-VnOTEp74.cjs} +309 -264
  167. package/dist/functions-VnOTEp74.cjs.map +1 -0
  168. package/dist/{functions-Cxbo-pEd.mjs → functions-faoJOUmr.mjs} +282 -234
  169. package/dist/functions-faoJOUmr.mjs.map +1 -0
  170. package/dist/index-CeEtxDmK.d.cts +79 -0
  171. package/dist/index-CeEtxDmK.d.cts.map +1 -0
  172. package/dist/index-CeEtxDmK.d.mts +79 -0
  173. package/dist/index-CeEtxDmK.d.mts.map +1 -0
  174. package/dist/{index-JSf9xNIJ.d.cts → index-DU3Twmwh.d.mts} +19 -24
  175. package/dist/index-DU3Twmwh.d.mts.map +1 -0
  176. package/dist/index-fnpjXiA-.d.mts +26 -0
  177. package/dist/index-fnpjXiA-.d.mts.map +1 -0
  178. package/dist/{index-CubPzHd9.d.mts → index-nBQT1tAh.d.cts} +19 -24
  179. package/dist/index-nBQT1tAh.d.cts.map +1 -0
  180. package/dist/index-tE_119SX.d.cts +26 -0
  181. package/dist/index-tE_119SX.d.cts.map +1 -0
  182. package/dist/index.cjs +3 -3
  183. package/dist/index.d.cts +4 -4
  184. package/dist/index.d.mts +4 -4
  185. package/dist/index.mjs +2 -3
  186. package/dist/kysely-CXi49zc2.d.cts +150 -0
  187. package/dist/kysely-CXi49zc2.d.cts.map +1 -0
  188. package/dist/kysely-D3-G5b0j.d.mts +150 -0
  189. package/dist/kysely-D3-G5b0j.d.mts.map +1 -0
  190. package/dist/{lazyAccessors-BoJN3SMd.mjs → lazyAccessors-BHtcqgz2.mjs} +22 -25
  191. package/dist/lazyAccessors-BHtcqgz2.mjs.map +1 -0
  192. package/dist/{lazyAccessors-e3j2oE2m.cjs → lazyAccessors-Dx9NLwJZ.cjs} +72 -76
  193. package/dist/lazyAccessors-Dx9NLwJZ.cjs.map +1 -0
  194. package/dist/object-storage.cjs +18 -10
  195. package/dist/object-storage.cjs.map +1 -1
  196. package/dist/object-storage.d.cts +3 -7
  197. package/dist/object-storage.d.cts.map +1 -1
  198. package/dist/object-storage.d.mts +3 -7
  199. package/dist/object-storage.d.mts.map +1 -1
  200. package/dist/object-storage.mjs +11 -3
  201. package/dist/object-storage.mjs.map +1 -1
  202. package/dist/{processAudits-Dmts9H_b.mjs → processAudits-BpRlPQMW.mjs} +16 -19
  203. package/dist/processAudits-BpRlPQMW.mjs.map +1 -0
  204. package/dist/{processAudits-CGqttuXm.cjs → processAudits-D_2W5x8k.cjs} +26 -30
  205. package/dist/processAudits-D_2W5x8k.cjs.map +1 -0
  206. package/dist/queue/index.cjs +25 -21
  207. package/dist/queue/index.cjs.map +1 -1
  208. package/dist/queue/index.d.cts +8 -15
  209. package/dist/queue/index.d.cts.map +1 -1
  210. package/dist/queue/index.d.mts +8 -15
  211. package/dist/queue/index.d.mts.map +1 -1
  212. package/dist/queue/index.mjs +15 -11
  213. package/dist/queue/index.mjs.map +1 -1
  214. package/dist/rest-api.cjs +88 -62
  215. package/dist/rest-api.cjs.map +1 -1
  216. package/dist/rest-api.d.cts +62 -60
  217. package/dist/rest-api.d.cts.map +1 -1
  218. package/dist/rest-api.d.mts +62 -60
  219. package/dist/rest-api.d.mts.map +1 -1
  220. package/dist/rest-api.mjs +80 -54
  221. package/dist/rest-api.mjs.map +1 -1
  222. package/dist/{chunk-DWy1uDak.cjs → rolldown-runtime-y5ARvAq5.cjs} +14 -18
  223. package/dist/site.cjs +33 -9
  224. package/dist/site.cjs.map +1 -1
  225. package/dist/site.d.cts +11 -22
  226. package/dist/site.d.cts.map +1 -1
  227. package/dist/site.d.mts +11 -22
  228. package/dist/site.d.mts.map +1 -1
  229. package/dist/site.mjs +29 -5
  230. package/dist/site.mjs.map +1 -1
  231. package/dist/subscribers/index.cjs +2 -11
  232. package/dist/subscribers/index.d.cts +3 -14
  233. package/dist/subscribers/index.d.mts +3 -14
  234. package/dist/subscribers/index.mjs +2 -11
  235. package/dist/surfaceEnv-CNimK76p.cjs +56 -0
  236. package/dist/surfaceEnv-CNimK76p.cjs.map +1 -0
  237. package/dist/surfaceEnv-wMT5QzgZ.mjs +45 -0
  238. package/dist/surfaceEnv-wMT5QzgZ.mjs.map +1 -0
  239. package/dist/{telemetry-C3L0iS28.d.cts → telemetry-DGcFlVpB.d.cts} +2 -5
  240. package/dist/telemetry-DGcFlVpB.d.cts.map +1 -0
  241. package/dist/{telemetry-D7bVFLGi.d.mts → telemetry-DGcFlVpB.d.mts} +2 -5
  242. package/dist/telemetry-DGcFlVpB.d.mts.map +1 -0
  243. package/dist/topic/index.cjs +18 -20
  244. package/dist/topic/index.cjs.map +1 -1
  245. package/dist/topic/index.d.cts +3 -32
  246. package/dist/topic/index.d.mts +3 -32
  247. package/dist/topic/index.mjs +8 -10
  248. package/dist/topic/index.mjs.map +1 -1
  249. package/dist/{types-BlAkSuGI.d.cts → types-DMuSQeLL.d.cts} +3 -5
  250. package/dist/types-DMuSQeLL.d.cts.map +1 -0
  251. package/dist/{types-aKksMEWL.d.mts → types-DMuSQeLL.d.mts} +3 -5
  252. package/dist/types-DMuSQeLL.d.mts.map +1 -0
  253. package/dist/types.d.cts +1 -1
  254. package/dist/types.d.mts +1 -1
  255. package/dist/types.mjs +1 -0
  256. package/dist/worker.cjs +109 -35
  257. package/dist/worker.cjs.map +1 -1
  258. package/dist/worker.d.cts +87 -42
  259. package/dist/worker.d.cts.map +1 -1
  260. package/dist/worker.d.mts +87 -42
  261. package/dist/worker.d.mts.map +1 -1
  262. package/dist/worker.mjs +104 -30
  263. package/dist/worker.mjs.map +1 -1
  264. package/package.json +59 -55
  265. package/dist/Construct-BD5neF7w.mjs.map +0 -1
  266. package/dist/Construct-C0ijr2qp.d.cts.map +0 -1
  267. package/dist/Construct-Ct8nalEi.d.mts.map +0 -1
  268. package/dist/Construct-CyS3RpTL.cjs.map +0 -1
  269. package/dist/Cron-ByxdOfpE.d.mts.map +0 -1
  270. package/dist/Cron-Wqh464aO.d.cts.map +0 -1
  271. package/dist/CronBuilder-BL0AP6fs.d.mts.map +0 -1
  272. package/dist/CronBuilder-BmABazzH.mjs.map +0 -1
  273. package/dist/CronBuilder-BqpEzMPQ.d.cts.map +0 -1
  274. package/dist/CronBuilder-CkXPJiGO.cjs.map +0 -1
  275. package/dist/Endpoint-2Wg7T7Cq.d.mts.map +0 -1
  276. package/dist/Endpoint-BiaaMEn_.cjs.map +0 -1
  277. package/dist/Endpoint-CH9Fn1AD.d.cts.map +0 -1
  278. package/dist/Endpoint-VIOpSo0S.mjs.map +0 -1
  279. package/dist/EndpointFactory-ChxLZllA.cjs.map +0 -1
  280. package/dist/EndpointFactory-DTTCkGEL.mjs.map +0 -1
  281. package/dist/HonoEndpointAdaptor-NKQQQbBY.mjs.map +0 -1
  282. package/dist/Queue-D7ZuwBhy.d.cts.map +0 -1
  283. package/dist/Queue-gVGfi2Yk.d.mts.map +0 -1
  284. package/dist/Subscriber-2mEi0ImH.d.cts.map +0 -1
  285. package/dist/Subscriber-xTJ9ayPN.d.mts.map +0 -1
  286. package/dist/SubscriberBuilder-4OPehf2R.cjs.map +0 -1
  287. package/dist/SubscriberBuilder-BjkbeT9l.mjs.map +0 -1
  288. package/dist/SubscriberBuilder-Dptmo-1A.d.mts.map +0 -1
  289. package/dist/SubscriberBuilder-waNhzjSM.d.cts.map +0 -1
  290. package/dist/Topic-19QeHBIR.d.cts.map +0 -1
  291. package/dist/Topic-DuFeqkBh.d.mts.map +0 -1
  292. package/dist/auth.d.cts.map +0 -1
  293. package/dist/auth.d.mts.map +0 -1
  294. package/dist/cache-0ANvRQnD.mjs +0 -51
  295. package/dist/cache-0ANvRQnD.mjs.map +0 -1
  296. package/dist/cache-3WSvAulx.cjs +0 -57
  297. package/dist/cache-3WSvAulx.cjs.map +0 -1
  298. package/dist/cache-BrRz3fEB.d.mts.map +0 -1
  299. package/dist/cache-BtZY_tHe.d.cts.map +0 -1
  300. package/dist/clone-DblgEZZa.mjs.map +0 -1
  301. package/dist/clone-Dy0cR2SZ.cjs.map +0 -1
  302. package/dist/construct-interface-BfjcOD_E.cjs +0 -117
  303. package/dist/construct-interface-BfjcOD_E.cjs.map +0 -1
  304. package/dist/construct-interface-D9d4Gm4p.d.cts.map +0 -1
  305. package/dist/construct-interface-Z4CpS8tK.mjs +0 -81
  306. package/dist/construct-interface-Z4CpS8tK.mjs.map +0 -1
  307. package/dist/construct-interface-g5GM5pwR.d.mts.map +0 -1
  308. package/dist/database/kysely.d.cts.map +0 -1
  309. package/dist/database/kysely.d.mts.map +0 -1
  310. package/dist/functions-Bd3TPxid.cjs.map +0 -1
  311. package/dist/functions-Cxbo-pEd.mjs.map +0 -1
  312. package/dist/index-BxHDdy6a.d.mts.map +0 -1
  313. package/dist/index-CubPzHd9.d.mts.map +0 -1
  314. package/dist/index-JSf9xNIJ.d.cts.map +0 -1
  315. package/dist/index-V2nksZIJ.d.cts.map +0 -1
  316. package/dist/lazyAccessors-BoJN3SMd.mjs.map +0 -1
  317. package/dist/lazyAccessors-e3j2oE2m.cjs.map +0 -1
  318. package/dist/processAudits-CGqttuXm.cjs.map +0 -1
  319. package/dist/processAudits-Dmts9H_b.mjs.map +0 -1
  320. package/dist/subscribers/index.cjs.map +0 -1
  321. package/dist/subscribers/index.d.cts.map +0 -1
  322. package/dist/subscribers/index.d.mts.map +0 -1
  323. package/dist/subscribers/index.mjs.map +0 -1
  324. package/dist/surfaceEnv-BFXEms2f.cjs +0 -39
  325. package/dist/surfaceEnv-BFXEms2f.cjs.map +0 -1
  326. package/dist/surfaceEnv-C3Ktahea.mjs +0 -27
  327. package/dist/surfaceEnv-C3Ktahea.mjs.map +0 -1
  328. package/dist/telemetry-C3L0iS28.d.cts.map +0 -1
  329. package/dist/telemetry-D7bVFLGi.d.mts.map +0 -1
  330. package/dist/topic/index.d.cts.map +0 -1
  331. package/dist/topic/index.d.mts.map +0 -1
  332. package/dist/types-BlAkSuGI.d.cts.map +0 -1
  333. package/dist/types-aKksMEWL.d.mts.map +0 -1
@@ -1,11 +1,10 @@
1
- const require_chunk = require('./chunk-DWy1uDak.cjs');
2
- const require_Construct = require('./Construct-CyS3RpTL.cjs');
3
- const require_functions = require('./functions-Bd3TPxid.cjs');
4
- const __geekmidas_schema_conversion = require_chunk.__toESM(require("@geekmidas/schema/conversion"));
5
- const __geekmidas_schema_openapi = require_chunk.__toESM(require("@geekmidas/schema/openapi"));
6
-
1
+ const require_rolldown_runtime = require("./rolldown-runtime-y5ARvAq5.cjs");
2
+ require("./Construct-yG9Sw-5p.cjs");
3
+ const require_functions = require("./functions-VnOTEp74.cjs");
4
+ let _geekmidas_schema_conversion = require("@geekmidas/schema/conversion");
5
+ let _geekmidas_schema_openapi = require("@geekmidas/schema/openapi");
7
6
  //#region ../../node_modules/.pnpm/lodash.pick@4.4.0/node_modules/lodash.pick/index.js
8
- var require_lodash$1 = require_chunk.__commonJS({ "../../node_modules/.pnpm/lodash.pick@4.4.0/node_modules/lodash.pick/index.js"(exports, module) {
7
+ var require_lodash_pick = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
9
8
  /**
10
9
  * lodash (Custom Build) <https://lodash.com/>
11
10
  * Build: `lodash modularize exports="npm" -o ./`
@@ -15,15 +14,18 @@ var require_lodash$1 = require_chunk.__commonJS({ "../../node_modules/.pnpm/loda
15
14
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
16
15
  */
17
16
  /** Used as references for various `Number` constants. */
18
- var INFINITY$1 = Infinity, MAX_SAFE_INTEGER$1 = 9007199254740991;
17
+ var MAX_SAFE_INTEGER = 9007199254740991;
19
18
  /** `Object#toString` result references. */
20
- var argsTag = "[object Arguments]", funcTag$1 = "[object Function]", genTag$1 = "[object GeneratorFunction]", symbolTag$1 = "[object Symbol]";
19
+ var argsTag = "[object Arguments]";
20
+ var funcTag = "[object Function]";
21
+ var genTag = "[object GeneratorFunction]";
22
+ var symbolTag = "[object Symbol]";
21
23
  /** Detect free variable `global` from Node.js. */
22
- var freeGlobal$1 = typeof global == "object" && global && global.Object === Object && global;
24
+ var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
23
25
  /** Detect free variable `self`. */
24
- var freeSelf$1 = typeof self == "object" && self && self.Object === Object && self;
26
+ var freeSelf = typeof self == "object" && self && self.Object === Object && self;
25
27
  /** Used as a reference to the global object. */
26
- var root$1 = freeGlobal$1 || freeSelf$1 || Function("return this")();
28
+ var root = freeGlobal || freeSelf || Function("return this")();
27
29
  /**
28
30
  * A faster alternative to `Function#apply`, this function invokes `func`
29
31
  * with the `this` binding of `thisArg` and the arguments of `args`.
@@ -71,17 +73,19 @@ var require_lodash$1 = require_chunk.__commonJS({ "../../node_modules/.pnpm/loda
71
73
  return array;
72
74
  }
73
75
  /** Used for built-in method references. */
74
- var objectProto$1 = Object.prototype;
76
+ var objectProto = Object.prototype;
75
77
  /** Used to check objects for own properties. */
76
- var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
78
+ var hasOwnProperty = objectProto.hasOwnProperty;
77
79
  /**
78
80
  * Used to resolve the
79
81
  * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
80
82
  * of values.
81
83
  */
82
- var objectToString$1 = objectProto$1.toString;
84
+ var objectToString = objectProto.toString;
83
85
  /** Built-in value references. */
84
- var Symbol$1 = root$1.Symbol, propertyIsEnumerable = objectProto$1.propertyIsEnumerable, spreadableSymbol = Symbol$1 ? Symbol$1.isConcatSpreadable : void 0;
86
+ var Symbol = root.Symbol;
87
+ var propertyIsEnumerable = objectProto.propertyIsEnumerable;
88
+ var spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : void 0;
85
89
  var nativeMax = Math.max;
86
90
  /**
87
91
  * The base implementation of `_.flatten` with support for restricting flattening.
@@ -100,9 +104,10 @@ var require_lodash$1 = require_chunk.__commonJS({ "../../node_modules/.pnpm/loda
100
104
  result || (result = []);
101
105
  while (++index < length) {
102
106
  var value = array[index];
103
- if (depth > 0 && predicate(value)) if (depth > 1) baseFlatten(value, depth - 1, predicate, isStrict, result);
104
- else arrayPush(result, value);
105
- else if (!isStrict) result[result.length] = value;
107
+ if (depth > 0 && predicate(value)) {
108
+ if (depth > 1) baseFlatten(value, depth - 1, predicate, isStrict, result);
109
+ else arrayPush(result, value);
110
+ } else if (!isStrict) result[result.length] = value;
106
111
  }
107
112
  return result;
108
113
  }
@@ -166,7 +171,7 @@ var require_lodash$1 = require_chunk.__commonJS({ "../../node_modules/.pnpm/loda
166
171
  * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
167
172
  */
168
173
  function isFlattenable(value) {
169
- return isArray$1(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
174
+ return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
170
175
  }
171
176
  /**
172
177
  * Converts `value` to a string key if it's not a string or symbol.
@@ -175,10 +180,10 @@ var require_lodash$1 = require_chunk.__commonJS({ "../../node_modules/.pnpm/loda
175
180
  * @param {*} value The value to inspect.
176
181
  * @returns {string|symbol} Returns the key.
177
182
  */
178
- function toKey$1(value) {
179
- if (typeof value == "string" || isSymbol$1(value)) return value;
183
+ function toKey(value) {
184
+ if (typeof value == "string" || isSymbol(value)) return value;
180
185
  var result = value + "";
181
- return result == "0" && 1 / value == -INFINITY$1 ? "-0" : result;
186
+ return result == "0" && 1 / value == -Infinity ? "-0" : result;
182
187
  }
183
188
  /**
184
189
  * Checks if `value` is likely an `arguments` object.
@@ -199,7 +204,7 @@ var require_lodash$1 = require_chunk.__commonJS({ "../../node_modules/.pnpm/loda
199
204
  * // => false
200
205
  */
201
206
  function isArguments(value) {
202
- return isArrayLikeObject(value) && hasOwnProperty$1.call(value, "callee") && (!propertyIsEnumerable.call(value, "callee") || objectToString$1.call(value) == argsTag);
207
+ return isArrayLikeObject(value) && hasOwnProperty.call(value, "callee") && (!propertyIsEnumerable.call(value, "callee") || objectToString.call(value) == argsTag);
203
208
  }
204
209
  /**
205
210
  * Checks if `value` is classified as an `Array` object.
@@ -224,7 +229,7 @@ var require_lodash$1 = require_chunk.__commonJS({ "../../node_modules/.pnpm/loda
224
229
  * _.isArray(_.noop);
225
230
  * // => false
226
231
  */
227
- var isArray$1 = Array.isArray;
232
+ var isArray = Array.isArray;
228
233
  /**
229
234
  * Checks if `value` is array-like. A value is considered array-like if it's
230
235
  * not a function and has a `value.length` that's an integer greater than or
@@ -251,7 +256,7 @@ var require_lodash$1 = require_chunk.__commonJS({ "../../node_modules/.pnpm/loda
251
256
  * // => false
252
257
  */
253
258
  function isArrayLike(value) {
254
- return value != null && isLength(value.length) && !isFunction$1(value);
259
+ return value != null && isLength(value.length) && !isFunction(value);
255
260
  }
256
261
  /**
257
262
  * This method is like `_.isArrayLike` except that it also checks if `value`
@@ -279,7 +284,7 @@ var require_lodash$1 = require_chunk.__commonJS({ "../../node_modules/.pnpm/loda
279
284
  * // => false
280
285
  */
281
286
  function isArrayLikeObject(value) {
282
- return isObjectLike$1(value) && isArrayLike(value);
287
+ return isObjectLike(value) && isArrayLike(value);
283
288
  }
284
289
  /**
285
290
  * Checks if `value` is classified as a `Function` object.
@@ -298,9 +303,9 @@ var require_lodash$1 = require_chunk.__commonJS({ "../../node_modules/.pnpm/loda
298
303
  * _.isFunction(/abc/);
299
304
  * // => false
300
305
  */
301
- function isFunction$1(value) {
302
- var tag = isObject$1(value) ? objectToString$1.call(value) : "";
303
- return tag == funcTag$1 || tag == genTag$1;
306
+ function isFunction(value) {
307
+ var tag = isObject(value) ? objectToString.call(value) : "";
308
+ return tag == funcTag || tag == genTag;
304
309
  }
305
310
  /**
306
311
  * Checks if `value` is a valid array-like length.
@@ -329,7 +334,7 @@ var require_lodash$1 = require_chunk.__commonJS({ "../../node_modules/.pnpm/loda
329
334
  * // => false
330
335
  */
331
336
  function isLength(value) {
332
- return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER$1;
337
+ return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
333
338
  }
334
339
  /**
335
340
  * Checks if `value` is the
@@ -356,7 +361,7 @@ var require_lodash$1 = require_chunk.__commonJS({ "../../node_modules/.pnpm/loda
356
361
  * _.isObject(null);
357
362
  * // => false
358
363
  */
359
- function isObject$1(value) {
364
+ function isObject(value) {
360
365
  var type = typeof value;
361
366
  return !!value && (type == "object" || type == "function");
362
367
  }
@@ -384,7 +389,7 @@ var require_lodash$1 = require_chunk.__commonJS({ "../../node_modules/.pnpm/loda
384
389
  * _.isObjectLike(null);
385
390
  * // => false
386
391
  */
387
- function isObjectLike$1(value) {
392
+ function isObjectLike(value) {
388
393
  return !!value && typeof value == "object";
389
394
  }
390
395
  /**
@@ -404,35 +409,16 @@ var require_lodash$1 = require_chunk.__commonJS({ "../../node_modules/.pnpm/loda
404
409
  * _.isSymbol('abc');
405
410
  * // => false
406
411
  */
407
- function isSymbol$1(value) {
408
- return typeof value == "symbol" || isObjectLike$1(value) && objectToString$1.call(value) == symbolTag$1;
412
+ function isSymbol(value) {
413
+ return typeof value == "symbol" || isObjectLike(value) && objectToString.call(value) == symbolTag;
409
414
  }
410
- /**
411
- * Creates an object composed of the picked `object` properties.
412
- *
413
- * @static
414
- * @since 0.1.0
415
- * @memberOf _
416
- * @category Object
417
- * @param {Object} object The source object.
418
- * @param {...(string|string[])} [props] The property identifiers to pick.
419
- * @returns {Object} Returns the new object.
420
- * @example
421
- *
422
- * var object = { 'a': 1, 'b': '2', 'c': 3 };
423
- *
424
- * _.pick(object, ['a', 'c']);
425
- * // => { 'a': 1, 'c': 3 }
426
- */
427
- var pick$1 = baseRest(function(object, props) {
428
- return object == null ? {} : basePick(object, arrayMap(baseFlatten(props, 1), toKey$1));
415
+ module.exports = baseRest(function(object, props) {
416
+ return object == null ? {} : basePick(object, arrayMap(baseFlatten(props, 1), toKey));
429
417
  });
430
- module.exports = pick$1;
431
- } });
432
-
418
+ }));
433
419
  //#endregion
434
420
  //#region ../../node_modules/.pnpm/lodash.set@4.3.2/node_modules/lodash.set/index.js
435
- var require_lodash = require_chunk.__commonJS({ "../../node_modules/.pnpm/lodash.set@4.3.2/node_modules/lodash.set/index.js"(exports, module) {
421
+ var require_lodash_set = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
436
422
  /**
437
423
  * lodash (Custom Build) <https://lodash.com/>
438
424
  * Build: `lodash modularize exports="npm" -o ./`
@@ -445,12 +431,16 @@ var require_lodash = require_chunk.__commonJS({ "../../node_modules/.pnpm/lodash
445
431
  var FUNC_ERROR_TEXT = "Expected a function";
446
432
  /** Used to stand-in for `undefined` hash values. */
447
433
  var HASH_UNDEFINED = "__lodash_hash_undefined__";
448
- /** Used as references for various `Number` constants. */
449
- var INFINITY = Infinity, MAX_SAFE_INTEGER = 9007199254740991;
434
+ var MAX_SAFE_INTEGER = 9007199254740991;
450
435
  /** `Object#toString` result references. */
451
- var funcTag = "[object Function]", genTag = "[object GeneratorFunction]", symbolTag = "[object Symbol]";
436
+ var funcTag = "[object Function]";
437
+ var genTag = "[object GeneratorFunction]";
438
+ var symbolTag = "[object Symbol]";
452
439
  /** Used to match property names within property paths. */
453
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/, reLeadingDot = /^\./, rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
440
+ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;
441
+ var reIsPlainProp = /^\w*$/;
442
+ var reLeadingDot = /^\./;
443
+ var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
454
444
  /**
455
445
  * Used to match `RegExp`
456
446
  * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
@@ -494,7 +484,9 @@ var require_lodash = require_chunk.__commonJS({ "../../node_modules/.pnpm/lodash
494
484
  return result;
495
485
  }
496
486
  /** Used for built-in method references. */
497
- var arrayProto = Array.prototype, funcProto = Function.prototype, objectProto = Object.prototype;
487
+ var arrayProto = Array.prototype;
488
+ var funcProto = Function.prototype;
489
+ var objectProto = Object.prototype;
498
490
  /** Used to detect overreaching core-js shims. */
499
491
  var coreJsData = root["__core-js_shared__"];
500
492
  /** Used to detect methods masquerading as native. */
@@ -515,10 +507,13 @@ var require_lodash = require_chunk.__commonJS({ "../../node_modules/.pnpm/lodash
515
507
  /** Used to detect if a method is native. */
516
508
  var reIsNative = RegExp("^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
517
509
  /** Built-in value references. */
518
- var Symbol = root.Symbol, splice = arrayProto.splice;
519
- var Map$1 = getNative(root, "Map"), nativeCreate = getNative(Object, "create");
510
+ var Symbol = root.Symbol;
511
+ var splice = arrayProto.splice;
512
+ var Map = getNative(root, "Map");
513
+ var nativeCreate = getNative(Object, "create");
520
514
  /** Used to convert symbols to primitives and strings. */
521
- var symbolProto = Symbol ? Symbol.prototype : void 0, symbolToString = symbolProto ? symbolProto.toString : void 0;
515
+ var symbolProto = Symbol ? Symbol.prototype : void 0;
516
+ var symbolToString = symbolProto ? symbolProto.toString : void 0;
522
517
  /**
523
518
  * Creates a hash object.
524
519
  *
@@ -644,8 +639,7 @@ var require_lodash = require_chunk.__commonJS({ "../../node_modules/.pnpm/lodash
644
639
  function listCacheDelete(key) {
645
640
  var data = this.__data__, index = assocIndexOf(data, key);
646
641
  if (index < 0) return false;
647
- var lastIndex = data.length - 1;
648
- if (index == lastIndex) data.pop();
642
+ if (index == data.length - 1) data.pop();
649
643
  else splice.call(data, index, 1);
650
644
  return true;
651
645
  }
@@ -720,7 +714,7 @@ var require_lodash = require_chunk.__commonJS({ "../../node_modules/.pnpm/lodash
720
714
  function mapCacheClear() {
721
715
  this.__data__ = {
722
716
  "hash": new Hash(),
723
- "map": new (Map$1 || ListCache)(),
717
+ "map": new (Map || ListCache)(),
724
718
  "string": new Hash()
725
719
  };
726
720
  }
@@ -816,8 +810,7 @@ var require_lodash = require_chunk.__commonJS({ "../../node_modules/.pnpm/lodash
816
810
  */
817
811
  function baseIsNative(value) {
818
812
  if (!isObject(value) || isMasked(value)) return false;
819
- var pattern = isFunction(value) || isHostObject(value) ? reIsNative : reIsHostCtor;
820
- return pattern.test(toSource(value));
813
+ return (isFunction(value) || isHostObject(value) ? reIsNative : reIsHostCtor).test(toSource(value));
821
814
  }
822
815
  /**
823
816
  * The base implementation of `_.set`.
@@ -857,7 +850,7 @@ var require_lodash = require_chunk.__commonJS({ "../../node_modules/.pnpm/lodash
857
850
  if (typeof value == "string") return value;
858
851
  if (isSymbol(value)) return symbolToString ? symbolToString.call(value) : "";
859
852
  var result = value + "";
860
- return result == "0" && 1 / value == -INFINITY ? "-0" : result;
853
+ return result == "0" && 1 / value == -Infinity ? "-0" : result;
861
854
  }
862
855
  /**
863
856
  * Casts `value` to a path array if it's not one.
@@ -951,8 +944,8 @@ var require_lodash = require_chunk.__commonJS({ "../../node_modules/.pnpm/lodash
951
944
  string = toString(string);
952
945
  var result = [];
953
946
  if (reLeadingDot.test(string)) result.push("");
954
- string.replace(rePropName, function(match, number, quote, string$1) {
955
- result.push(quote ? string$1.replace(reEscapeChar, "$1") : number || match);
947
+ string.replace(rePropName, function(match, number, quote, string) {
948
+ result.push(quote ? string.replace(reEscapeChar, "$1") : number || match);
956
949
  });
957
950
  return result;
958
951
  });
@@ -966,7 +959,7 @@ var require_lodash = require_chunk.__commonJS({ "../../node_modules/.pnpm/lodash
966
959
  function toKey(value) {
967
960
  if (typeof value == "string" || isSymbol(value)) return value;
968
961
  var result = value + "";
969
- return result == "0" && 1 / value == -INFINITY ? "-0" : result;
962
+ return result == "0" && 1 / value == -Infinity ? "-0" : result;
970
963
  }
971
964
  /**
972
965
  * Converts `func` to its source code.
@@ -1251,16 +1244,41 @@ var require_lodash = require_chunk.__commonJS({ "../../node_modules/.pnpm/lodash
1251
1244
  * console.log(object.x[0].y.z);
1252
1245
  * // => 5
1253
1246
  */
1254
- function set$1(object, path, value) {
1247
+ function set(object, path, value) {
1255
1248
  return object == null ? object : baseSet(object, path, value);
1256
1249
  }
1257
- module.exports = set$1;
1258
- } });
1259
-
1250
+ module.exports = set;
1251
+ }));
1252
+ //#endregion
1253
+ //#region src/endpoints/sessionAuth.ts
1254
+ var import_lodash_pick = /* @__PURE__ */ require_rolldown_runtime.__toESM(require_lodash_pick(), 1);
1255
+ var import_lodash_set = /* @__PURE__ */ require_rolldown_runtime.__toESM(require_lodash_set(), 1);
1256
+ /** The headers a session travels in; nothing else is forwarded. */
1257
+ const SESSION_HEADERS = ["cookie", "authorization"];
1258
+ /** `auth` for one request on one surface. */
1259
+ function sessionAuth(surface, header) {
1260
+ return { async getSession() {
1261
+ const authenticator = surface?.auth;
1262
+ if (!surface || !authenticator) throw new NoAuthenticator(surface?.id);
1263
+ const headers = new Headers();
1264
+ for (const name of SESSION_HEADERS) {
1265
+ const value = header(name);
1266
+ if (value) headers.set(name, value);
1267
+ }
1268
+ return await authenticator.verify(headers, surface.envParser);
1269
+ } };
1270
+ }
1271
+ /** `auth.getSession()` was called on a surface that names no authenticator. */
1272
+ var NoAuthenticator = class extends Error {
1273
+ surface;
1274
+ constructor(surface) {
1275
+ super(`auth.getSession() needs an authenticator, and ${surface ? `the surface '${surface}'` : "this endpoint"} declares none: declare one on the surface with .auth(construct).`);
1276
+ this.surface = surface;
1277
+ this.name = "NoAuthenticator";
1278
+ }
1279
+ };
1260
1280
  //#endregion
1261
1281
  //#region src/endpoints/Endpoint.ts
1262
- var import_lodash = require_chunk.__toESM(require_lodash$1(), 1);
1263
- var import_lodash$1 = require_chunk.__toESM(require_lodash(), 1);
1264
1282
  /**
1265
1283
  * Represents an HTTP endpoint that can handle requests with type-safe input/output validation,
1266
1284
  * dependency injection, session management, and authorization.
@@ -1351,7 +1369,7 @@ var Endpoint = class Endpoint extends require_functions.Function {
1351
1369
  * ```
1352
1370
  */
1353
1371
  static async buildOpenApiSchema(endpoints, options) {
1354
- return (0, __geekmidas_schema_openapi.buildOpenApiSchema)(endpoints, options);
1372
+ return (0, _geekmidas_schema_openapi.buildOpenApiSchema)(endpoints, options);
1355
1373
  }
1356
1374
  /**
1357
1375
  * Gets the full path including HTTP method and route.
@@ -1481,12 +1499,11 @@ var Endpoint = class Endpoint extends require_functions.Function {
1481
1499
  * @internal
1482
1500
  */
1483
1501
  refineInput(ctx) {
1484
- const input = (0, import_lodash.default)(ctx, [
1502
+ return (0, import_lodash_pick.default)(ctx, [
1485
1503
  "body",
1486
1504
  "query",
1487
1505
  "params"
1488
1506
  ]);
1489
- return input;
1490
1507
  }
1491
1508
  handler = (ctx, response) => {
1492
1509
  for (const [key, value] of Object.entries(this.defaultHeaders)) response.header(key, value);
@@ -1509,7 +1526,7 @@ var Endpoint = class Endpoint extends require_functions.Function {
1509
1526
  * @returns True if the object is an Endpoint
1510
1527
  */
1511
1528
  static isEndpoint(obj) {
1512
- return Boolean(obj && obj.__IS_FUNCTION__ === true && obj.type === require_Construct.ConstructType.Endpoint);
1529
+ return Boolean(obj && obj.__IS_FUNCTION__ === true && obj.type === "dev.geekmidas.function.endpoint");
1513
1530
  }
1514
1531
  /**
1515
1532
  * Helper to check if response has metadata
@@ -1531,17 +1548,23 @@ var Endpoint = class Endpoint extends require_functions.Function {
1531
1548
  * @returns OpenAPI route definition with operation details
1532
1549
  */
1533
1550
  async toOpenApi3Route(componentCollector) {
1551
+ const status = String(this.status);
1534
1552
  const operation = {
1535
1553
  operationId: this.operationId,
1536
1554
  ...this.description && { description: this.description },
1537
1555
  ...this.tags && this.tags.length > 0 && { tags: this.tags },
1538
- responses: { "200": { description: "Successful response" } }
1556
+ responses: { [status]: { description: "Successful response" } }
1539
1557
  };
1558
+ const scheme = this.authorizer?.securityScheme;
1559
+ if (this.authorizer && scheme && componentCollector) {
1560
+ componentCollector.addSecurityScheme(this.authorizer.name, scheme);
1561
+ operation.security = [{ [this.authorizer.name]: [] }];
1562
+ }
1540
1563
  if (this.outputSchema) {
1541
- const responseSchema = await (0, __geekmidas_schema_conversion.convertSchemaWithComponents)(this.outputSchema, componentCollector);
1542
- if (responseSchema) (0, import_lodash$1.default)(operation, [
1564
+ const responseSchema = await (0, _geekmidas_schema_conversion.convertSchemaWithComponents)(this.outputSchema, componentCollector);
1565
+ if (responseSchema) (0, import_lodash_set.default)(operation, [
1543
1566
  "responses",
1544
- "200",
1567
+ status,
1545
1568
  "content",
1546
1569
  this.responseType,
1547
1570
  "schema"
@@ -1555,14 +1578,14 @@ var Endpoint = class Endpoint extends require_functions.Function {
1555
1578
  "PUT",
1556
1579
  "PATCH"
1557
1580
  ].includes(this.method) && "body" in this.input && this.input.body) {
1558
- const bodySchema = await (0, __geekmidas_schema_conversion.convertSchemaWithComponents)(this.input.body, componentCollector);
1559
- if (bodySchema) (0, import_lodash$1.default)(operation, ["requestBody"], {
1581
+ const bodySchema = await (0, _geekmidas_schema_conversion.convertSchemaWithComponents)(this.input.body, componentCollector);
1582
+ if (bodySchema) (0, import_lodash_set.default)(operation, ["requestBody"], {
1560
1583
  required: true,
1561
1584
  content: { "application/json": { schema: bodySchema } }
1562
1585
  });
1563
1586
  }
1564
1587
  if ("params" in this.input && this.input.params) {
1565
- const paramsSchema = await (0, __geekmidas_schema_conversion.convertStandardSchemaToJsonSchema)(this.input.params);
1588
+ const paramsSchema = await (0, _geekmidas_schema_conversion.convertStandardSchemaToJsonSchema)(this.input.params);
1566
1589
  if (paramsSchema && paramsSchema.type === "object" && paramsSchema.properties) for (const [name, schema] of Object.entries(paramsSchema.properties)) pathParameters.push({
1567
1590
  name,
1568
1591
  in: "path",
@@ -1571,7 +1594,7 @@ var Endpoint = class Endpoint extends require_functions.Function {
1571
1594
  });
1572
1595
  }
1573
1596
  if ("query" in this.input && this.input.query) {
1574
- const querySchema = await (0, __geekmidas_schema_conversion.convertStandardSchemaToJsonSchema)(this.input.query);
1597
+ const querySchema = await (0, _geekmidas_schema_conversion.convertStandardSchemaToJsonSchema)(this.input.query);
1575
1598
  if (querySchema && querySchema.type === "object" && querySchema.properties) for (const [name, schema] of Object.entries(querySchema.properties)) queryParameters.push({
1576
1599
  name,
1577
1600
  in: "query",
@@ -1604,8 +1627,8 @@ var Endpoint = class Endpoint extends require_functions.Function {
1604
1627
  * @param options.status - Success HTTP status code (default: 200)
1605
1628
  * @param options.authorizer - Optional authorizer configuration
1606
1629
  */
1607
- constructor({ fn, method, route, description, tags, input, logger, output: outputSchema, services, constructs, timeout, memorySize, getSession, authorize, rateLimit, status = SuccessStatus.OK, publisherService, events, authorizer, surface, auditorStorageService, actorExtractor, audits, databaseService, rlsConfig, rlsBypass, responseType }) {
1608
- super(fn, timeout, require_Construct.ConstructType.Endpoint, input, outputSchema, services, logger, publisherService, events, memorySize, auditorStorageService, void 0, constructs);
1630
+ constructor({ fn, method, route, description, tags, input, logger, output: outputSchema, services, constructs, timeout, memorySize, getSession, authorize, rateLimit, status = 200, publisherService, events, authorizer, surface, auditorStorageService, actorExtractor, audits, databaseService, rlsConfig, rlsBypass, responseType }) {
1631
+ super(fn, timeout, "dev.geekmidas.function.endpoint", input, outputSchema, services, logger, publisherService, events, memorySize, auditorStorageService, void 0, constructs);
1609
1632
  this.route = route;
1610
1633
  this.method = method;
1611
1634
  this.description = description;
@@ -1613,7 +1636,10 @@ var Endpoint = class Endpoint extends require_functions.Function {
1613
1636
  this.status = status;
1614
1637
  this.responseType = responseType ?? "application/json";
1615
1638
  this.endpointFn = fn;
1616
- if (getSession) this.getSession = getSession;
1639
+ if (getSession) this.getSession = (ctx) => getSession({
1640
+ ...ctx,
1641
+ auth: sessionAuth(surface, ctx.header)
1642
+ });
1617
1643
  if (authorize) this.authorize = authorize;
1618
1644
  if (rateLimit) this.rateLimit = rateLimit;
1619
1645
  if (authorizer) this.authorizer = authorizer;
@@ -1669,42 +1695,30 @@ var ResponseBuilder = class {
1669
1695
  return this.metadata;
1670
1696
  }
1671
1697
  };
1672
- /**
1673
- * HTTP success status codes that can be returned by endpoints.
1674
- */
1675
- let SuccessStatus = /* @__PURE__ */ function(SuccessStatus$1) {
1676
- /** Standard response for successful HTTP requests */
1677
- SuccessStatus$1[SuccessStatus$1["OK"] = 200] = "OK";
1678
- /** Request has been fulfilled and resulted in a new resource being created */
1679
- SuccessStatus$1[SuccessStatus$1["Created"] = 201] = "Created";
1680
- /** Request has been accepted for processing, but processing is not complete */
1681
- SuccessStatus$1[SuccessStatus$1["Accepted"] = 202] = "Accepted";
1682
- /** Server successfully processed the request but is not returning any content */
1683
- SuccessStatus$1[SuccessStatus$1["NoContent"] = 204] = "NoContent";
1684
- /** Server successfully processed the request and is not returning any content, client should reset the document view */
1685
- SuccessStatus$1[SuccessStatus$1["ResetContent"] = 205] = "ResetContent";
1686
- /** Server is delivering only part of the resource due to a range header */
1687
- SuccessStatus$1[SuccessStatus$1["PartialContent"] = 206] = "PartialContent";
1688
- return SuccessStatus$1;
1689
- }({});
1690
-
1691
1698
  //#endregion
1692
- Object.defineProperty(exports, 'Endpoint', {
1693
- enumerable: true,
1694
- get: function () {
1695
- return Endpoint;
1696
- }
1699
+ Object.defineProperty(exports, "Endpoint", {
1700
+ enumerable: true,
1701
+ get: function() {
1702
+ return Endpoint;
1703
+ }
1704
+ });
1705
+ Object.defineProperty(exports, "NoAuthenticator", {
1706
+ enumerable: true,
1707
+ get: function() {
1708
+ return NoAuthenticator;
1709
+ }
1697
1710
  });
1698
- Object.defineProperty(exports, 'ResponseBuilder', {
1699
- enumerable: true,
1700
- get: function () {
1701
- return ResponseBuilder;
1702
- }
1711
+ Object.defineProperty(exports, "ResponseBuilder", {
1712
+ enumerable: true,
1713
+ get: function() {
1714
+ return ResponseBuilder;
1715
+ }
1703
1716
  });
1704
- Object.defineProperty(exports, 'require_lodash', {
1705
- enumerable: true,
1706
- get: function () {
1707
- return require_lodash;
1708
- }
1717
+ Object.defineProperty(exports, "require_lodash_set", {
1718
+ enumerable: true,
1719
+ get: function() {
1720
+ return require_lodash_set;
1721
+ }
1709
1722
  });
1710
- //# sourceMappingURL=Endpoint-BiaaMEn_.cjs.map
1723
+
1724
+ //# sourceMappingURL=Endpoint-CtiPUpRX.cjs.map