@geekmidas/constructs 10.0.0-alpha.9 → 10.0.0-alpha.91

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 (425) hide show
  1. package/README.md +222 -158
  2. package/dist/{Construct-BD5neF7w.mjs → Construct-B1vGBPme.mjs} +33 -34
  3. package/dist/Construct-B1vGBPme.mjs.map +1 -0
  4. package/dist/Construct-BQALFCh2.d.cts +230 -0
  5. package/dist/Construct-BQALFCh2.d.cts.map +1 -0
  6. package/dist/{Construct-CyS3RpTL.cjs → Construct-DUSXuTHP.cjs} +53 -48
  7. package/dist/Construct-DUSXuTHP.cjs.map +1 -0
  8. package/dist/Construct-QXnl3VqT.d.mts +230 -0
  9. package/dist/Construct-QXnl3VqT.d.mts.map +1 -0
  10. package/dist/{Cron-DmQ8vQ4b.d.cts → Cron-DI3nKoic.d.cts} +15 -9
  11. package/dist/Cron-DI3nKoic.d.cts.map +1 -0
  12. package/dist/{Cron-dh4rUgib.d.mts → Cron-uYAHPnp7.d.mts} +15 -9
  13. package/dist/Cron-uYAHPnp7.d.mts.map +1 -0
  14. package/dist/{CronBuilder-Da0C0edR.cjs → CronBuilder-C0Ek1-RA.cjs} +47 -31
  15. package/dist/CronBuilder-C0Ek1-RA.cjs.map +1 -0
  16. package/dist/CronBuilder-DaSUm2Na.d.mts +47 -0
  17. package/dist/CronBuilder-DaSUm2Na.d.mts.map +1 -0
  18. package/dist/{CronBuilder-CYKT5RiO.mjs → CronBuilder-Dmix_Pen.mjs} +37 -21
  19. package/dist/CronBuilder-Dmix_Pen.mjs.map +1 -0
  20. package/dist/CronBuilder-g1lZLWyG.d.cts +47 -0
  21. package/dist/CronBuilder-g1lZLWyG.d.cts.map +1 -0
  22. package/dist/{Endpoint-DCQPMdUX.mjs → Endpoint-BG4UJ9oA.mjs} +146 -109
  23. package/dist/Endpoint-BG4UJ9oA.mjs.map +1 -0
  24. package/dist/{Endpoint-DcWXE-SZ.cjs → Endpoint-BoUg8ocM.cjs} +174 -131
  25. package/dist/Endpoint-BoUg8ocM.cjs.map +1 -0
  26. package/dist/{Endpoint-BjWKinFA.d.mts → Endpoint-Du-NwPX2.d.mts} +83 -91
  27. package/dist/Endpoint-Du-NwPX2.d.mts.map +1 -0
  28. package/dist/{Endpoint-dav89W6-.d.cts → Endpoint-aCvBMPoH.d.cts} +82 -90
  29. package/dist/Endpoint-aCvBMPoH.d.cts.map +1 -0
  30. package/dist/{EndpointFactory-CjV8F_lJ.mjs → EndpointFactory-BDtsrEvJ.mjs} +57 -76
  31. package/dist/EndpointFactory-BDtsrEvJ.mjs.map +1 -0
  32. package/dist/{EndpointFactory-CdWB7wPw.cjs → EndpointFactory-DJ7gXLpR.cjs} +93 -112
  33. package/dist/EndpointFactory-DJ7gXLpR.cjs.map +1 -0
  34. package/dist/{index-Bd5FqCoe.d.cts → EndpointFactory-DMYdJCOj.d.mts} +78 -134
  35. package/dist/EndpointFactory-DMYdJCOj.d.mts.map +1 -0
  36. package/dist/{index-lAO9egTb.d.mts → EndpointFactory-I7s1co3Y.d.cts} +79 -135
  37. package/dist/EndpointFactory-I7s1co3Y.d.cts.map +1 -0
  38. package/dist/Function-DuqGcbOI.d.mts +76 -0
  39. package/dist/Function-DuqGcbOI.d.mts.map +1 -0
  40. package/dist/Function-Pu-1kKZz.d.cts +76 -0
  41. package/dist/Function-Pu-1kKZz.d.cts.map +1 -0
  42. package/dist/{HonoEndpointAdaptor-P1ahhZHu.mjs → HonoEndpointAdaptor-PtPlbeKY.mjs} +75 -56
  43. package/dist/HonoEndpointAdaptor-PtPlbeKY.mjs.map +1 -0
  44. package/dist/{HonoEndpointAdaptor-DtL9j19R.cjs → HonoEndpointAdaptor-zVzVLJEO.cjs} +83 -61
  45. package/dist/HonoEndpointAdaptor-zVzVLJEO.cjs.map +1 -0
  46. package/dist/Queue-A3wfD0it.cjs +109 -0
  47. package/dist/Queue-A3wfD0it.cjs.map +1 -0
  48. package/dist/Queue-D6USGS4q.mjs +104 -0
  49. package/dist/Queue-D6USGS4q.mjs.map +1 -0
  50. package/dist/{Queue-D7ZuwBhy.d.cts → Queue-DlsHRzUp.d.mts} +48 -48
  51. package/dist/Queue-DlsHRzUp.d.mts.map +1 -0
  52. package/dist/{Queue-gVGfi2Yk.d.mts → Queue-HPyi0e1i.d.cts} +49 -49
  53. package/dist/Queue-HPyi0e1i.d.cts.map +1 -0
  54. package/dist/QueueBuilder-BjuF0UBl.cjs +135 -0
  55. package/dist/QueueBuilder-BjuF0UBl.cjs.map +1 -0
  56. package/dist/QueueBuilder-Cue73M4t.mjs +118 -0
  57. package/dist/QueueBuilder-Cue73M4t.mjs.map +1 -0
  58. package/dist/QueueBuilder-OSi6LkV9.d.cts +75 -0
  59. package/dist/QueueBuilder-OSi6LkV9.d.cts.map +1 -0
  60. package/dist/QueueBuilder-QHsnVt1P.d.mts +75 -0
  61. package/dist/QueueBuilder-QHsnVt1P.d.mts.map +1 -0
  62. package/dist/{Subscriber-2mEi0ImH.d.cts → Subscriber-Bpp02cGr.d.cts} +29 -20
  63. package/dist/Subscriber-Bpp02cGr.d.cts.map +1 -0
  64. package/dist/{Subscriber-xTJ9ayPN.d.mts → Subscriber-CtN9R48-.d.mts} +29 -20
  65. package/dist/Subscriber-CtN9R48-.d.mts.map +1 -0
  66. package/dist/{SubscriberBuilder-BjkbeT9l.mjs → SubscriberBuilder-CDy4nHCz.mjs} +50 -24
  67. package/dist/SubscriberBuilder-CDy4nHCz.mjs.map +1 -0
  68. package/dist/SubscriberBuilder-CuCMFpYW.d.mts +67 -0
  69. package/dist/SubscriberBuilder-CuCMFpYW.d.mts.map +1 -0
  70. package/dist/{SubscriberBuilder-4OPehf2R.cjs → SubscriberBuilder-D_owVoHo.cjs} +61 -36
  71. package/dist/SubscriberBuilder-D_owVoHo.cjs.map +1 -0
  72. package/dist/SubscriberBuilder-g3fAVWgs.d.cts +67 -0
  73. package/dist/SubscriberBuilder-g3fAVWgs.d.cts.map +1 -0
  74. package/dist/Topic-D74b5cgs.mjs +99 -0
  75. package/dist/Topic-D74b5cgs.mjs.map +1 -0
  76. package/dist/Topic-GHxcU8AG.cjs +104 -0
  77. package/dist/Topic-GHxcU8AG.cjs.map +1 -0
  78. package/dist/adaptors/aws.cjs +131 -220
  79. package/dist/adaptors/aws.cjs.map +1 -1
  80. package/dist/adaptors/aws.d.cts +34 -53
  81. package/dist/adaptors/aws.d.cts.map +1 -1
  82. package/dist/adaptors/aws.d.mts +34 -53
  83. package/dist/adaptors/aws.d.mts.map +1 -1
  84. package/dist/adaptors/aws.mjs +102 -193
  85. package/dist/adaptors/aws.mjs.map +1 -1
  86. package/dist/adaptors/hono.cjs +3 -10
  87. package/dist/adaptors/hono.d.cts +7 -16
  88. package/dist/adaptors/hono.d.cts.map +1 -1
  89. package/dist/adaptors/hono.d.mts +8 -17
  90. package/dist/adaptors/hono.d.mts.map +1 -1
  91. package/dist/adaptors/hono.mjs +2 -10
  92. package/dist/adaptors/testing.cjs +743 -89
  93. package/dist/adaptors/testing.cjs.map +1 -1
  94. package/dist/adaptors/testing.d.cts +351 -54
  95. package/dist/adaptors/testing.d.cts.map +1 -1
  96. package/dist/adaptors/testing.d.mts +351 -54
  97. package/dist/adaptors/testing.d.mts.map +1 -1
  98. package/dist/adaptors/testing.mjs +706 -70
  99. package/dist/adaptors/testing.mjs.map +1 -1
  100. package/dist/auth-BMCJN30Y.d.cts +268 -0
  101. package/dist/auth-BMCJN30Y.d.cts.map +1 -0
  102. package/dist/auth-CcuceLYo.d.mts +268 -0
  103. package/dist/auth-CcuceLYo.d.mts.map +1 -0
  104. package/dist/auth.cjs +301 -33
  105. package/dist/auth.cjs.map +1 -1
  106. package/dist/auth.d.cts +2 -108
  107. package/dist/auth.d.mts +2 -108
  108. package/dist/auth.mjs +289 -27
  109. package/dist/auth.mjs.map +1 -1
  110. package/dist/{cache-BrRz3fEB.d.mts → cache-CXh6GIgb.d.mts} +3 -6
  111. package/dist/cache-CXh6GIgb.d.mts.map +1 -0
  112. package/dist/{cache-BtZY_tHe.d.cts → cache-DnGDGly3.d.cts} +3 -6
  113. package/dist/cache-DnGDGly3.d.cts.map +1 -0
  114. package/dist/cache.cjs +68 -2
  115. package/dist/cache.cjs.map +1 -0
  116. package/dist/cache.d.cts +1 -2
  117. package/dist/cache.d.mts +1 -2
  118. package/dist/cache.mjs +67 -2
  119. package/dist/cache.mjs.map +1 -0
  120. package/dist/cipher-C1lEFX63.mjs +225 -0
  121. package/dist/cipher-C1lEFX63.mjs.map +1 -0
  122. package/dist/cipher-CVxfwLjk.cjs +332 -0
  123. package/dist/cipher-CVxfwLjk.cjs.map +1 -0
  124. package/dist/{clone-DblgEZZa.mjs → clone-EKNovYHu.mjs} +3 -3
  125. package/dist/clone-EKNovYHu.mjs.map +1 -0
  126. package/dist/{clone-Dy0cR2SZ.cjs → clone-UGJpvQnL.cjs} +7 -8
  127. package/dist/clone-UGJpvQnL.cjs.map +1 -0
  128. package/dist/{construct-interface-D9d4Gm4p.d.cts → construct-interface-B1AfqRl4.d.cts} +42 -11
  129. package/dist/construct-interface-B1AfqRl4.d.cts.map +1 -0
  130. package/dist/{construct-interface-g5GM5pwR.d.mts → construct-interface-DluK3_da.d.mts} +42 -11
  131. package/dist/construct-interface-DluK3_da.d.mts.map +1 -0
  132. package/dist/construct-interface.cjs +113 -7
  133. package/dist/construct-interface.cjs.map +1 -0
  134. package/dist/construct-interface.d.cts +2 -2
  135. package/dist/construct-interface.d.mts +2 -2
  136. package/dist/construct-interface.mjs +106 -2
  137. package/dist/construct-interface.mjs.map +1 -0
  138. package/dist/credential.cjs +77 -17
  139. package/dist/credential.cjs.map +1 -1
  140. package/dist/credential.d.cts +34 -9
  141. package/dist/credential.d.cts.map +1 -1
  142. package/dist/credential.d.mts +34 -9
  143. package/dist/credential.d.mts.map +1 -1
  144. package/dist/credential.mjs +71 -13
  145. package/dist/credential.mjs.map +1 -1
  146. package/dist/crons/index.cjs +129 -7
  147. package/dist/crons/index.cjs.map +1 -1
  148. package/dist/crons/index.d.cts +45 -11
  149. package/dist/crons/index.d.cts.map +1 -1
  150. package/dist/crons/index.d.mts +45 -11
  151. package/dist/crons/index.d.mts.map +1 -1
  152. package/dist/crons/index.mjs +127 -8
  153. package/dist/crons/index.mjs.map +1 -1
  154. package/dist/database/kysely.cjs +4 -181
  155. package/dist/database/kysely.d.cts +2 -152
  156. package/dist/database/kysely.d.mts +2 -152
  157. package/dist/database/kysely.mjs +2 -180
  158. package/dist/email.cjs +25 -12
  159. package/dist/email.cjs.map +1 -1
  160. package/dist/email.d.cts +3 -7
  161. package/dist/email.d.cts.map +1 -1
  162. package/dist/email.d.mts +3 -7
  163. package/dist/email.d.mts.map +1 -1
  164. package/dist/email.mjs +16 -3
  165. package/dist/email.mjs.map +1 -1
  166. package/dist/encryption.cjs +96 -0
  167. package/dist/encryption.cjs.map +1 -0
  168. package/dist/encryption.d.cts +117 -0
  169. package/dist/encryption.d.cts.map +1 -0
  170. package/dist/encryption.d.mts +117 -0
  171. package/dist/encryption.d.mts.map +1 -0
  172. package/dist/encryption.mjs +83 -0
  173. package/dist/encryption.mjs.map +1 -0
  174. package/dist/endpoints/index.cjs +8 -10
  175. package/dist/endpoints/index.d.cts +51 -7
  176. package/dist/endpoints/index.d.cts.map +1 -0
  177. package/dist/endpoints/index.d.mts +51 -7
  178. package/dist/endpoints/index.d.mts.map +1 -0
  179. package/dist/endpoints/index.mjs +6 -10
  180. package/dist/external-api-MJ8id87V.d.mts +105 -0
  181. package/dist/external-api-MJ8id87V.d.mts.map +1 -0
  182. package/dist/external-api-O107yzZJ.d.cts +105 -0
  183. package/dist/external-api-O107yzZJ.d.cts.map +1 -0
  184. package/dist/external-api.cjs +142 -0
  185. package/dist/external-api.cjs.map +1 -0
  186. package/dist/external-api.d.cts +2 -0
  187. package/dist/external-api.d.mts +2 -0
  188. package/dist/external-api.mjs +139 -0
  189. package/dist/external-api.mjs.map +1 -0
  190. package/dist/file-server.cjs +42 -10
  191. package/dist/file-server.cjs.map +1 -1
  192. package/dist/file-server.d.cts +6 -10
  193. package/dist/file-server.d.cts.map +1 -1
  194. package/dist/file-server.d.mts +6 -10
  195. package/dist/file-server.d.mts.map +1 -1
  196. package/dist/file-server.mjs +34 -2
  197. package/dist/file-server.mjs.map +1 -1
  198. package/dist/functions/index.cjs +3 -6
  199. package/dist/functions/index.d.cts +3 -4
  200. package/dist/functions/index.d.mts +3 -4
  201. package/dist/functions/index.mjs +2 -6
  202. package/dist/{functions-14lpEFL4.mjs → functions-BFizikJU.mjs} +376 -238
  203. package/dist/{functions-14lpEFL4.mjs.map → functions-BFizikJU.mjs.map} +1 -1
  204. package/dist/{functions-i_la-N5r.cjs → functions-CfzJG9hK.cjs} +414 -264
  205. package/dist/functions-CfzJG9hK.cjs.map +1 -0
  206. package/dist/index-BuzRvKOQ.d.cts +115 -0
  207. package/dist/index-BuzRvKOQ.d.cts.map +1 -0
  208. package/dist/index-CTkKOer4.d.mts +115 -0
  209. package/dist/index-CTkKOer4.d.mts.map +1 -0
  210. package/dist/index-CeEtxDmK.d.cts +79 -0
  211. package/dist/index-CeEtxDmK.d.cts.map +1 -0
  212. package/dist/index-CeEtxDmK.d.mts +79 -0
  213. package/dist/index-CeEtxDmK.d.mts.map +1 -0
  214. package/dist/index.cjs +6 -3
  215. package/dist/index.d.cts +27 -4
  216. package/dist/index.d.cts.map +1 -0
  217. package/dist/index.d.mts +27 -4
  218. package/dist/index.d.mts.map +1 -0
  219. package/dist/index.mjs +3 -3
  220. package/dist/kms-B-Hm3d5r.cjs +85 -0
  221. package/dist/kms-B-Hm3d5r.cjs.map +1 -0
  222. package/dist/kms-BdUlMJEZ.mjs +85 -0
  223. package/dist/kms-BdUlMJEZ.mjs.map +1 -0
  224. package/dist/kysely-Bii4l6eP.mjs +370 -0
  225. package/dist/kysely-Bii4l6eP.mjs.map +1 -0
  226. package/dist/kysely-CO_Dk43W.cjs +383 -0
  227. package/dist/kysely-CO_Dk43W.cjs.map +1 -0
  228. package/dist/kysely-D0bpzgPs.d.cts +175 -0
  229. package/dist/kysely-D0bpzgPs.d.cts.map +1 -0
  230. package/dist/kysely-DUqC3Ie0.d.mts +175 -0
  231. package/dist/kysely-DUqC3Ie0.d.mts.map +1 -0
  232. package/dist/{telemetry-C3L0iS28.d.cts → lambdaTelemetry-8vnmVZQ5.d.cts} +3 -6
  233. package/dist/lambdaTelemetry-8vnmVZQ5.d.cts.map +1 -0
  234. package/dist/{telemetry-D7bVFLGi.d.mts → lambdaTelemetry-8vnmVZQ5.d.mts} +3 -6
  235. package/dist/lambdaTelemetry-8vnmVZQ5.d.mts.map +1 -0
  236. package/dist/{lazyAccessors-BoJN3SMd.mjs → lazyAccessors-CFanua0O.mjs} +20 -60
  237. package/dist/lazyAccessors-CFanua0O.mjs.map +1 -0
  238. package/dist/{lazyAccessors-e3j2oE2m.cjs → lazyAccessors-hJKGv8Ay.cjs} +60 -113
  239. package/dist/lazyAccessors-hJKGv8Ay.cjs.map +1 -0
  240. package/dist/mobile-app.cjs +73 -0
  241. package/dist/mobile-app.cjs.map +1 -0
  242. package/dist/mobile-app.d.cts +61 -0
  243. package/dist/mobile-app.d.cts.map +1 -0
  244. package/dist/mobile-app.d.mts +61 -0
  245. package/dist/mobile-app.d.mts.map +1 -0
  246. package/dist/mobile-app.mjs +72 -0
  247. package/dist/mobile-app.mjs.map +1 -0
  248. package/dist/object-storage.cjs +18 -10
  249. package/dist/object-storage.cjs.map +1 -1
  250. package/dist/object-storage.d.cts +3 -7
  251. package/dist/object-storage.d.cts.map +1 -1
  252. package/dist/object-storage.d.mts +3 -7
  253. package/dist/object-storage.d.mts.map +1 -1
  254. package/dist/object-storage.mjs +11 -3
  255. package/dist/object-storage.mjs.map +1 -1
  256. package/dist/processAudits-BRRVVHUB.mjs +131 -0
  257. package/dist/processAudits-BRRVVHUB.mjs.map +1 -0
  258. package/dist/processAudits-DasOZjPl.cjs +154 -0
  259. package/dist/processAudits-DasOZjPl.cjs.map +1 -0
  260. package/dist/queue/index.cjs +6 -189
  261. package/dist/queue/index.d.cts +3 -60
  262. package/dist/queue/index.d.mts +3 -60
  263. package/dist/queue/index.mjs +3 -186
  264. package/dist/rest-api.cjs +90 -59
  265. package/dist/rest-api.cjs.map +1 -1
  266. package/dist/rest-api.d.cts +70 -42
  267. package/dist/rest-api.d.cts.map +1 -1
  268. package/dist/rest-api.d.mts +70 -42
  269. package/dist/rest-api.d.mts.map +1 -1
  270. package/dist/rest-api.mjs +82 -51
  271. package/dist/rest-api.mjs.map +1 -1
  272. package/dist/{chunk-DWy1uDak.cjs → rolldown-runtime-y5ARvAq5.cjs} +14 -18
  273. package/dist/runSubscriber-BHvJ8POr.mjs +109 -0
  274. package/dist/runSubscriber-BHvJ8POr.mjs.map +1 -0
  275. package/dist/runSubscriber-D8nLXIv1.cjs +126 -0
  276. package/dist/runSubscriber-D8nLXIv1.cjs.map +1 -0
  277. package/dist/shutdown-BMJmAhSt.cjs +38 -0
  278. package/dist/shutdown-BMJmAhSt.cjs.map +1 -0
  279. package/dist/shutdown-C7xa8x9S.mjs +27 -0
  280. package/dist/shutdown-C7xa8x9S.mjs.map +1 -0
  281. package/dist/site.cjs +33 -7
  282. package/dist/site.cjs.map +1 -1
  283. package/dist/site.d.cts +17 -7
  284. package/dist/site.d.cts.map +1 -1
  285. package/dist/site.d.mts +17 -7
  286. package/dist/site.d.mts.map +1 -1
  287. package/dist/site.mjs +29 -3
  288. package/dist/site.mjs.map +1 -1
  289. package/dist/stages-BSCF19o2.d.cts +56 -0
  290. package/dist/stages-BSCF19o2.d.cts.map +1 -0
  291. package/dist/stages-BSCF19o2.d.mts +56 -0
  292. package/dist/stages-BSCF19o2.d.mts.map +1 -0
  293. package/dist/subscribers/index.cjs +118 -6
  294. package/dist/subscribers/index.cjs.map +1 -0
  295. package/dist/subscribers/index.d.cts +51 -6
  296. package/dist/subscribers/index.d.cts.map +1 -0
  297. package/dist/subscribers/index.d.mts +51 -6
  298. package/dist/subscribers/index.d.mts.map +1 -0
  299. package/dist/subscribers/index.mjs +115 -5
  300. package/dist/subscribers/index.mjs.map +1 -0
  301. package/dist/surfaceEnv-CNimK76p.cjs +56 -0
  302. package/dist/surfaceEnv-CNimK76p.cjs.map +1 -0
  303. package/dist/surfaceEnv-wMT5QzgZ.mjs +45 -0
  304. package/dist/surfaceEnv-wMT5QzgZ.mjs.map +1 -0
  305. package/dist/telemetry-B48RLjyk.d.cts +40 -0
  306. package/dist/telemetry-B48RLjyk.d.cts.map +1 -0
  307. package/dist/telemetry-DRtT1_0A.d.mts +40 -0
  308. package/dist/telemetry-DRtT1_0A.d.mts.map +1 -0
  309. package/dist/telemetry.cjs +56 -0
  310. package/dist/telemetry.cjs.map +1 -0
  311. package/dist/telemetry.d.cts +2 -0
  312. package/dist/telemetry.d.mts +2 -0
  313. package/dist/telemetry.mjs +55 -0
  314. package/dist/telemetry.mjs.map +1 -0
  315. package/dist/topic/index.cjs +3 -137
  316. package/dist/topic/index.d.cts +2 -4
  317. package/dist/topic/index.d.mts +2 -4
  318. package/dist/topic/index.mjs +2 -134
  319. package/dist/tracing-CxaZ98IB.mjs +110 -0
  320. package/dist/tracing-CxaZ98IB.mjs.map +1 -0
  321. package/dist/tracing-DPMidF_r.cjs +127 -0
  322. package/dist/tracing-DPMidF_r.cjs.map +1 -0
  323. package/dist/{types-BlAkSuGI.d.cts → types-DMuSQeLL.d.cts} +3 -5
  324. package/dist/types-DMuSQeLL.d.cts.map +1 -0
  325. package/dist/{types-aKksMEWL.d.mts → types-DMuSQeLL.d.mts} +3 -5
  326. package/dist/types-DMuSQeLL.d.mts.map +1 -0
  327. package/dist/types.d.cts +1 -1
  328. package/dist/types.d.mts +1 -1
  329. package/dist/types.mjs +1 -0
  330. package/dist/worker.cjs +59 -34
  331. package/dist/worker.cjs.map +1 -1
  332. package/dist/worker.d.cts +70 -45
  333. package/dist/worker.d.cts.map +1 -1
  334. package/dist/worker.d.mts +70 -44
  335. package/dist/worker.d.mts.map +1 -1
  336. package/dist/worker.mjs +54 -29
  337. package/dist/worker.mjs.map +1 -1
  338. package/package.json +96 -42
  339. package/dist/Construct-BD5neF7w.mjs.map +0 -1
  340. package/dist/Construct-C0ijr2qp.d.cts +0 -117
  341. package/dist/Construct-C0ijr2qp.d.cts.map +0 -1
  342. package/dist/Construct-Ct8nalEi.d.mts +0 -117
  343. package/dist/Construct-Ct8nalEi.d.mts.map +0 -1
  344. package/dist/Construct-CyS3RpTL.cjs.map +0 -1
  345. package/dist/Cron-DmQ8vQ4b.d.cts.map +0 -1
  346. package/dist/Cron-dh4rUgib.d.mts.map +0 -1
  347. package/dist/CronBuilder-BquXDbDI.d.cts +0 -44
  348. package/dist/CronBuilder-BquXDbDI.d.cts.map +0 -1
  349. package/dist/CronBuilder-CGgY2080.d.mts +0 -44
  350. package/dist/CronBuilder-CGgY2080.d.mts.map +0 -1
  351. package/dist/CronBuilder-CYKT5RiO.mjs.map +0 -1
  352. package/dist/CronBuilder-Da0C0edR.cjs.map +0 -1
  353. package/dist/Endpoint-BjWKinFA.d.mts.map +0 -1
  354. package/dist/Endpoint-DCQPMdUX.mjs.map +0 -1
  355. package/dist/Endpoint-DcWXE-SZ.cjs.map +0 -1
  356. package/dist/Endpoint-dav89W6-.d.cts.map +0 -1
  357. package/dist/EndpointFactory-CdWB7wPw.cjs.map +0 -1
  358. package/dist/EndpointFactory-CjV8F_lJ.mjs.map +0 -1
  359. package/dist/HonoEndpointAdaptor-DtL9j19R.cjs.map +0 -1
  360. package/dist/HonoEndpointAdaptor-P1ahhZHu.mjs.map +0 -1
  361. package/dist/Queue-D7ZuwBhy.d.cts.map +0 -1
  362. package/dist/Queue-gVGfi2Yk.d.mts.map +0 -1
  363. package/dist/Subscriber-2mEi0ImH.d.cts.map +0 -1
  364. package/dist/Subscriber-xTJ9ayPN.d.mts.map +0 -1
  365. package/dist/SubscriberBuilder-4OPehf2R.cjs.map +0 -1
  366. package/dist/SubscriberBuilder-BjkbeT9l.mjs.map +0 -1
  367. package/dist/SubscriberBuilder-Dptmo-1A.d.mts +0 -62
  368. package/dist/SubscriberBuilder-Dptmo-1A.d.mts.map +0 -1
  369. package/dist/SubscriberBuilder-waNhzjSM.d.cts +0 -62
  370. package/dist/SubscriberBuilder-waNhzjSM.d.cts.map +0 -1
  371. package/dist/Topic-19QeHBIR.d.cts +0 -91
  372. package/dist/Topic-19QeHBIR.d.cts.map +0 -1
  373. package/dist/Topic-DuFeqkBh.d.mts +0 -91
  374. package/dist/Topic-DuFeqkBh.d.mts.map +0 -1
  375. package/dist/auth.d.cts.map +0 -1
  376. package/dist/auth.d.mts.map +0 -1
  377. package/dist/cache-0ANvRQnD.mjs +0 -51
  378. package/dist/cache-0ANvRQnD.mjs.map +0 -1
  379. package/dist/cache-3WSvAulx.cjs +0 -57
  380. package/dist/cache-3WSvAulx.cjs.map +0 -1
  381. package/dist/cache-BrRz3fEB.d.mts.map +0 -1
  382. package/dist/cache-BtZY_tHe.d.cts.map +0 -1
  383. package/dist/clone-DblgEZZa.mjs.map +0 -1
  384. package/dist/clone-Dy0cR2SZ.cjs.map +0 -1
  385. package/dist/construct-interface-BfjcOD_E.cjs +0 -117
  386. package/dist/construct-interface-BfjcOD_E.cjs.map +0 -1
  387. package/dist/construct-interface-D9d4Gm4p.d.cts.map +0 -1
  388. package/dist/construct-interface-Z4CpS8tK.mjs +0 -81
  389. package/dist/construct-interface-Z4CpS8tK.mjs.map +0 -1
  390. package/dist/construct-interface-g5GM5pwR.d.mts.map +0 -1
  391. package/dist/database/kysely.cjs.map +0 -1
  392. package/dist/database/kysely.d.cts.map +0 -1
  393. package/dist/database/kysely.d.mts.map +0 -1
  394. package/dist/database/kysely.mjs.map +0 -1
  395. package/dist/functions-i_la-N5r.cjs.map +0 -1
  396. package/dist/index-Bd5FqCoe.d.cts.map +0 -1
  397. package/dist/index-BknhM6Ux.d.mts +0 -31
  398. package/dist/index-BknhM6Ux.d.mts.map +0 -1
  399. package/dist/index-CBSfrowv.d.cts +0 -31
  400. package/dist/index-CBSfrowv.d.cts.map +0 -1
  401. package/dist/index-D24Xm79M.d.cts +0 -171
  402. package/dist/index-D24Xm79M.d.cts.map +0 -1
  403. package/dist/index-_ajboYxK.d.mts +0 -171
  404. package/dist/index-_ajboYxK.d.mts.map +0 -1
  405. package/dist/index-lAO9egTb.d.mts.map +0 -1
  406. package/dist/lazyAccessors-BoJN3SMd.mjs.map +0 -1
  407. package/dist/lazyAccessors-e3j2oE2m.cjs.map +0 -1
  408. package/dist/processAudits-CGqttuXm.cjs +0 -92
  409. package/dist/processAudits-CGqttuXm.cjs.map +0 -1
  410. package/dist/processAudits-Dmts9H_b.mjs +0 -80
  411. package/dist/processAudits-Dmts9H_b.mjs.map +0 -1
  412. package/dist/queue/index.cjs.map +0 -1
  413. package/dist/queue/index.d.cts.map +0 -1
  414. package/dist/queue/index.d.mts.map +0 -1
  415. package/dist/queue/index.mjs.map +0 -1
  416. package/dist/surfaceEnv-BFXEms2f.cjs +0 -39
  417. package/dist/surfaceEnv-BFXEms2f.cjs.map +0 -1
  418. package/dist/surfaceEnv-C3Ktahea.mjs +0 -27
  419. package/dist/surfaceEnv-C3Ktahea.mjs.map +0 -1
  420. package/dist/telemetry-C3L0iS28.d.cts.map +0 -1
  421. package/dist/telemetry-D7bVFLGi.d.mts.map +0 -1
  422. package/dist/topic/index.cjs.map +0 -1
  423. package/dist/topic/index.mjs.map +0 -1
  424. package/dist/types-BlAkSuGI.d.cts.map +0 -1
  425. package/dist/types-aKksMEWL.d.mts.map +0 -1
@@ -1,10 +1,9 @@
1
- import { ConstructType, __commonJS, __toESM } from "./Construct-BD5neF7w.mjs";
2
- import { Function as Function$1 } from "./functions-14lpEFL4.mjs";
1
+ import { a as __commonJSMin, o as __toESM } from "./Construct-B1vGBPme.mjs";
2
+ import { n as Function$1 } from "./functions-BFizikJU.mjs";
3
3
  import { convertSchemaWithComponents, convertStandardSchemaToJsonSchema } from "@geekmidas/schema/conversion";
4
4
  import { buildOpenApiSchema } from "@geekmidas/schema/openapi";
5
-
6
5
  //#region ../../node_modules/.pnpm/lodash.pick@4.4.0/node_modules/lodash.pick/index.js
7
- var require_lodash$1 = __commonJS({ "../../node_modules/.pnpm/lodash.pick@4.4.0/node_modules/lodash.pick/index.js"(exports, module) {
6
+ var require_lodash_pick = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8
7
  /**
9
8
  * lodash (Custom Build) <https://lodash.com/>
10
9
  * Build: `lodash modularize exports="npm" -o ./`
@@ -14,15 +13,18 @@ var require_lodash$1 = __commonJS({ "../../node_modules/.pnpm/lodash.pick@4.4.0/
14
13
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
15
14
  */
16
15
  /** Used as references for various `Number` constants. */
17
- var INFINITY$1 = Infinity, MAX_SAFE_INTEGER$1 = 9007199254740991;
16
+ var MAX_SAFE_INTEGER = 9007199254740991;
18
17
  /** `Object#toString` result references. */
19
- var argsTag = "[object Arguments]", funcTag$1 = "[object Function]", genTag$1 = "[object GeneratorFunction]", symbolTag$1 = "[object Symbol]";
18
+ var argsTag = "[object Arguments]";
19
+ var funcTag = "[object Function]";
20
+ var genTag = "[object GeneratorFunction]";
21
+ var symbolTag = "[object Symbol]";
20
22
  /** Detect free variable `global` from Node.js. */
21
- var freeGlobal$1 = typeof global == "object" && global && global.Object === Object && global;
23
+ var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
22
24
  /** Detect free variable `self`. */
23
- var freeSelf$1 = typeof self == "object" && self && self.Object === Object && self;
25
+ var freeSelf = typeof self == "object" && self && self.Object === Object && self;
24
26
  /** Used as a reference to the global object. */
25
- var root$1 = freeGlobal$1 || freeSelf$1 || Function("return this")();
27
+ var root = freeGlobal || freeSelf || Function("return this")();
26
28
  /**
27
29
  * A faster alternative to `Function#apply`, this function invokes `func`
28
30
  * with the `this` binding of `thisArg` and the arguments of `args`.
@@ -70,17 +72,19 @@ var require_lodash$1 = __commonJS({ "../../node_modules/.pnpm/lodash.pick@4.4.0/
70
72
  return array;
71
73
  }
72
74
  /** Used for built-in method references. */
73
- var objectProto$1 = Object.prototype;
75
+ var objectProto = Object.prototype;
74
76
  /** Used to check objects for own properties. */
75
- var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
77
+ var hasOwnProperty = objectProto.hasOwnProperty;
76
78
  /**
77
79
  * Used to resolve the
78
80
  * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
79
81
  * of values.
80
82
  */
81
- var objectToString$1 = objectProto$1.toString;
83
+ var objectToString = objectProto.toString;
82
84
  /** Built-in value references. */
83
- var Symbol$1 = root$1.Symbol, propertyIsEnumerable = objectProto$1.propertyIsEnumerable, spreadableSymbol = Symbol$1 ? Symbol$1.isConcatSpreadable : void 0;
85
+ var Symbol = root.Symbol;
86
+ var propertyIsEnumerable = objectProto.propertyIsEnumerable;
87
+ var spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : void 0;
84
88
  var nativeMax = Math.max;
85
89
  /**
86
90
  * The base implementation of `_.flatten` with support for restricting flattening.
@@ -99,9 +103,10 @@ var require_lodash$1 = __commonJS({ "../../node_modules/.pnpm/lodash.pick@4.4.0/
99
103
  result || (result = []);
100
104
  while (++index < length) {
101
105
  var value = array[index];
102
- if (depth > 0 && predicate(value)) if (depth > 1) baseFlatten(value, depth - 1, predicate, isStrict, result);
103
- else arrayPush(result, value);
104
- else if (!isStrict) result[result.length] = value;
106
+ if (depth > 0 && predicate(value)) {
107
+ if (depth > 1) baseFlatten(value, depth - 1, predicate, isStrict, result);
108
+ else arrayPush(result, value);
109
+ } else if (!isStrict) result[result.length] = value;
105
110
  }
106
111
  return result;
107
112
  }
@@ -165,7 +170,7 @@ var require_lodash$1 = __commonJS({ "../../node_modules/.pnpm/lodash.pick@4.4.0/
165
170
  * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
166
171
  */
167
172
  function isFlattenable(value) {
168
- return isArray$1(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
173
+ return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
169
174
  }
170
175
  /**
171
176
  * Converts `value` to a string key if it's not a string or symbol.
@@ -174,10 +179,10 @@ var require_lodash$1 = __commonJS({ "../../node_modules/.pnpm/lodash.pick@4.4.0/
174
179
  * @param {*} value The value to inspect.
175
180
  * @returns {string|symbol} Returns the key.
176
181
  */
177
- function toKey$1(value) {
178
- if (typeof value == "string" || isSymbol$1(value)) return value;
182
+ function toKey(value) {
183
+ if (typeof value == "string" || isSymbol(value)) return value;
179
184
  var result = value + "";
180
- return result == "0" && 1 / value == -INFINITY$1 ? "-0" : result;
185
+ return result == "0" && 1 / value == -Infinity ? "-0" : result;
181
186
  }
182
187
  /**
183
188
  * Checks if `value` is likely an `arguments` object.
@@ -198,7 +203,7 @@ var require_lodash$1 = __commonJS({ "../../node_modules/.pnpm/lodash.pick@4.4.0/
198
203
  * // => false
199
204
  */
200
205
  function isArguments(value) {
201
- return isArrayLikeObject(value) && hasOwnProperty$1.call(value, "callee") && (!propertyIsEnumerable.call(value, "callee") || objectToString$1.call(value) == argsTag);
206
+ return isArrayLikeObject(value) && hasOwnProperty.call(value, "callee") && (!propertyIsEnumerable.call(value, "callee") || objectToString.call(value) == argsTag);
202
207
  }
203
208
  /**
204
209
  * Checks if `value` is classified as an `Array` object.
@@ -223,7 +228,7 @@ var require_lodash$1 = __commonJS({ "../../node_modules/.pnpm/lodash.pick@4.4.0/
223
228
  * _.isArray(_.noop);
224
229
  * // => false
225
230
  */
226
- var isArray$1 = Array.isArray;
231
+ var isArray = Array.isArray;
227
232
  /**
228
233
  * Checks if `value` is array-like. A value is considered array-like if it's
229
234
  * not a function and has a `value.length` that's an integer greater than or
@@ -250,7 +255,7 @@ var require_lodash$1 = __commonJS({ "../../node_modules/.pnpm/lodash.pick@4.4.0/
250
255
  * // => false
251
256
  */
252
257
  function isArrayLike(value) {
253
- return value != null && isLength(value.length) && !isFunction$1(value);
258
+ return value != null && isLength(value.length) && !isFunction(value);
254
259
  }
255
260
  /**
256
261
  * This method is like `_.isArrayLike` except that it also checks if `value`
@@ -278,7 +283,7 @@ var require_lodash$1 = __commonJS({ "../../node_modules/.pnpm/lodash.pick@4.4.0/
278
283
  * // => false
279
284
  */
280
285
  function isArrayLikeObject(value) {
281
- return isObjectLike$1(value) && isArrayLike(value);
286
+ return isObjectLike(value) && isArrayLike(value);
282
287
  }
283
288
  /**
284
289
  * Checks if `value` is classified as a `Function` object.
@@ -297,9 +302,9 @@ var require_lodash$1 = __commonJS({ "../../node_modules/.pnpm/lodash.pick@4.4.0/
297
302
  * _.isFunction(/abc/);
298
303
  * // => false
299
304
  */
300
- function isFunction$1(value) {
301
- var tag = isObject$1(value) ? objectToString$1.call(value) : "";
302
- return tag == funcTag$1 || tag == genTag$1;
305
+ function isFunction(value) {
306
+ var tag = isObject(value) ? objectToString.call(value) : "";
307
+ return tag == funcTag || tag == genTag;
303
308
  }
304
309
  /**
305
310
  * Checks if `value` is a valid array-like length.
@@ -328,7 +333,7 @@ var require_lodash$1 = __commonJS({ "../../node_modules/.pnpm/lodash.pick@4.4.0/
328
333
  * // => false
329
334
  */
330
335
  function isLength(value) {
331
- return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER$1;
336
+ return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
332
337
  }
333
338
  /**
334
339
  * Checks if `value` is the
@@ -355,7 +360,7 @@ var require_lodash$1 = __commonJS({ "../../node_modules/.pnpm/lodash.pick@4.4.0/
355
360
  * _.isObject(null);
356
361
  * // => false
357
362
  */
358
- function isObject$1(value) {
363
+ function isObject(value) {
359
364
  var type = typeof value;
360
365
  return !!value && (type == "object" || type == "function");
361
366
  }
@@ -383,7 +388,7 @@ var require_lodash$1 = __commonJS({ "../../node_modules/.pnpm/lodash.pick@4.4.0/
383
388
  * _.isObjectLike(null);
384
389
  * // => false
385
390
  */
386
- function isObjectLike$1(value) {
391
+ function isObjectLike(value) {
387
392
  return !!value && typeof value == "object";
388
393
  }
389
394
  /**
@@ -403,35 +408,16 @@ var require_lodash$1 = __commonJS({ "../../node_modules/.pnpm/lodash.pick@4.4.0/
403
408
  * _.isSymbol('abc');
404
409
  * // => false
405
410
  */
406
- function isSymbol$1(value) {
407
- return typeof value == "symbol" || isObjectLike$1(value) && objectToString$1.call(value) == symbolTag$1;
411
+ function isSymbol(value) {
412
+ return typeof value == "symbol" || isObjectLike(value) && objectToString.call(value) == symbolTag;
408
413
  }
409
- /**
410
- * Creates an object composed of the picked `object` properties.
411
- *
412
- * @static
413
- * @since 0.1.0
414
- * @memberOf _
415
- * @category Object
416
- * @param {Object} object The source object.
417
- * @param {...(string|string[])} [props] The property identifiers to pick.
418
- * @returns {Object} Returns the new object.
419
- * @example
420
- *
421
- * var object = { 'a': 1, 'b': '2', 'c': 3 };
422
- *
423
- * _.pick(object, ['a', 'c']);
424
- * // => { 'a': 1, 'c': 3 }
425
- */
426
- var pick$1 = baseRest(function(object, props) {
427
- return object == null ? {} : basePick(object, arrayMap(baseFlatten(props, 1), toKey$1));
414
+ module.exports = baseRest(function(object, props) {
415
+ return object == null ? {} : basePick(object, arrayMap(baseFlatten(props, 1), toKey));
428
416
  });
429
- module.exports = pick$1;
430
- } });
431
-
417
+ }));
432
418
  //#endregion
433
419
  //#region ../../node_modules/.pnpm/lodash.set@4.3.2/node_modules/lodash.set/index.js
434
- var require_lodash = __commonJS({ "../../node_modules/.pnpm/lodash.set@4.3.2/node_modules/lodash.set/index.js"(exports, module) {
420
+ var require_lodash_set = /* @__PURE__ */ __commonJSMin(((exports, module) => {
435
421
  /**
436
422
  * lodash (Custom Build) <https://lodash.com/>
437
423
  * Build: `lodash modularize exports="npm" -o ./`
@@ -444,12 +430,16 @@ var require_lodash = __commonJS({ "../../node_modules/.pnpm/lodash.set@4.3.2/nod
444
430
  var FUNC_ERROR_TEXT = "Expected a function";
445
431
  /** Used to stand-in for `undefined` hash values. */
446
432
  var HASH_UNDEFINED = "__lodash_hash_undefined__";
447
- /** Used as references for various `Number` constants. */
448
- var INFINITY = Infinity, MAX_SAFE_INTEGER = 9007199254740991;
433
+ var MAX_SAFE_INTEGER = 9007199254740991;
449
434
  /** `Object#toString` result references. */
450
- var funcTag = "[object Function]", genTag = "[object GeneratorFunction]", symbolTag = "[object Symbol]";
435
+ var funcTag = "[object Function]";
436
+ var genTag = "[object GeneratorFunction]";
437
+ var symbolTag = "[object Symbol]";
451
438
  /** Used to match property names within property paths. */
452
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/, reLeadingDot = /^\./, rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
439
+ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;
440
+ var reIsPlainProp = /^\w*$/;
441
+ var reLeadingDot = /^\./;
442
+ var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
453
443
  /**
454
444
  * Used to match `RegExp`
455
445
  * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
@@ -493,7 +483,9 @@ var require_lodash = __commonJS({ "../../node_modules/.pnpm/lodash.set@4.3.2/nod
493
483
  return result;
494
484
  }
495
485
  /** Used for built-in method references. */
496
- var arrayProto = Array.prototype, funcProto = Function.prototype, objectProto = Object.prototype;
486
+ var arrayProto = Array.prototype;
487
+ var funcProto = Function.prototype;
488
+ var objectProto = Object.prototype;
497
489
  /** Used to detect overreaching core-js shims. */
498
490
  var coreJsData = root["__core-js_shared__"];
499
491
  /** Used to detect methods masquerading as native. */
@@ -514,10 +506,13 @@ var require_lodash = __commonJS({ "../../node_modules/.pnpm/lodash.set@4.3.2/nod
514
506
  /** Used to detect if a method is native. */
515
507
  var reIsNative = RegExp("^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
516
508
  /** Built-in value references. */
517
- var Symbol = root.Symbol, splice = arrayProto.splice;
518
- var Map$1 = getNative(root, "Map"), nativeCreate = getNative(Object, "create");
509
+ var Symbol = root.Symbol;
510
+ var splice = arrayProto.splice;
511
+ var Map = getNative(root, "Map");
512
+ var nativeCreate = getNative(Object, "create");
519
513
  /** Used to convert symbols to primitives and strings. */
520
- var symbolProto = Symbol ? Symbol.prototype : void 0, symbolToString = symbolProto ? symbolProto.toString : void 0;
514
+ var symbolProto = Symbol ? Symbol.prototype : void 0;
515
+ var symbolToString = symbolProto ? symbolProto.toString : void 0;
521
516
  /**
522
517
  * Creates a hash object.
523
518
  *
@@ -643,8 +638,7 @@ var require_lodash = __commonJS({ "../../node_modules/.pnpm/lodash.set@4.3.2/nod
643
638
  function listCacheDelete(key) {
644
639
  var data = this.__data__, index = assocIndexOf(data, key);
645
640
  if (index < 0) return false;
646
- var lastIndex = data.length - 1;
647
- if (index == lastIndex) data.pop();
641
+ if (index == data.length - 1) data.pop();
648
642
  else splice.call(data, index, 1);
649
643
  return true;
650
644
  }
@@ -719,7 +713,7 @@ var require_lodash = __commonJS({ "../../node_modules/.pnpm/lodash.set@4.3.2/nod
719
713
  function mapCacheClear() {
720
714
  this.__data__ = {
721
715
  "hash": new Hash(),
722
- "map": new (Map$1 || ListCache)(),
716
+ "map": new (Map || ListCache)(),
723
717
  "string": new Hash()
724
718
  };
725
719
  }
@@ -815,8 +809,7 @@ var require_lodash = __commonJS({ "../../node_modules/.pnpm/lodash.set@4.3.2/nod
815
809
  */
816
810
  function baseIsNative(value) {
817
811
  if (!isObject(value) || isMasked(value)) return false;
818
- var pattern = isFunction(value) || isHostObject(value) ? reIsNative : reIsHostCtor;
819
- return pattern.test(toSource(value));
812
+ return (isFunction(value) || isHostObject(value) ? reIsNative : reIsHostCtor).test(toSource(value));
820
813
  }
821
814
  /**
822
815
  * The base implementation of `_.set`.
@@ -856,7 +849,7 @@ var require_lodash = __commonJS({ "../../node_modules/.pnpm/lodash.set@4.3.2/nod
856
849
  if (typeof value == "string") return value;
857
850
  if (isSymbol(value)) return symbolToString ? symbolToString.call(value) : "";
858
851
  var result = value + "";
859
- return result == "0" && 1 / value == -INFINITY ? "-0" : result;
852
+ return result == "0" && 1 / value == -Infinity ? "-0" : result;
860
853
  }
861
854
  /**
862
855
  * Casts `value` to a path array if it's not one.
@@ -950,8 +943,8 @@ var require_lodash = __commonJS({ "../../node_modules/.pnpm/lodash.set@4.3.2/nod
950
943
  string = toString(string);
951
944
  var result = [];
952
945
  if (reLeadingDot.test(string)) result.push("");
953
- string.replace(rePropName, function(match, number, quote, string$1) {
954
- result.push(quote ? string$1.replace(reEscapeChar, "$1") : number || match);
946
+ string.replace(rePropName, function(match, number, quote, string) {
947
+ result.push(quote ? string.replace(reEscapeChar, "$1") : number || match);
955
948
  });
956
949
  return result;
957
950
  });
@@ -965,7 +958,7 @@ var require_lodash = __commonJS({ "../../node_modules/.pnpm/lodash.set@4.3.2/nod
965
958
  function toKey(value) {
966
959
  if (typeof value == "string" || isSymbol(value)) return value;
967
960
  var result = value + "";
968
- return result == "0" && 1 / value == -INFINITY ? "-0" : result;
961
+ return result == "0" && 1 / value == -Infinity ? "-0" : result;
969
962
  }
970
963
  /**
971
964
  * Converts `func` to its source code.
@@ -1250,16 +1243,54 @@ var require_lodash = __commonJS({ "../../node_modules/.pnpm/lodash.set@4.3.2/nod
1250
1243
  * console.log(object.x[0].y.z);
1251
1244
  * // => 5
1252
1245
  */
1253
- function set$1(object, path, value) {
1246
+ function set(object, path, value) {
1254
1247
  return object == null ? object : baseSet(object, path, value);
1255
1248
  }
1256
- module.exports = set$1;
1257
- } });
1258
-
1249
+ module.exports = set;
1250
+ }));
1251
+ //#endregion
1252
+ //#region src/endpoints/sessionAuth.ts
1253
+ var import_lodash_pick = /* @__PURE__ */ __toESM(require_lodash_pick(), 1);
1254
+ var import_lodash_set = /* @__PURE__ */ __toESM(require_lodash_set(), 1);
1255
+ /**
1256
+ * What is forwarded to the auth server: the headers a session travels in, and
1257
+ * whose request it is — nothing else.
1258
+ *
1259
+ * The client's address goes with the session because the auth server
1260
+ * rate-limits by it, `/get-session` included. Without it every user's session
1261
+ * check arrived from the surface itself — one shared bucket, so enough
1262
+ * traffic from anyone turned every session check into a 429 — and in tests,
1263
+ * concurrent tests queued on the same rate-limit row.
1264
+ */
1265
+ const SESSION_HEADERS = [
1266
+ "cookie",
1267
+ "authorization",
1268
+ "x-forwarded-for"
1269
+ ];
1270
+ /** `auth` for one request on one surface. */
1271
+ function sessionAuth(surface, header) {
1272
+ return { async getSession() {
1273
+ const authenticator = surface?.auth;
1274
+ if (!surface || !authenticator) throw new NoAuthenticator(surface?.id);
1275
+ const headers = new Headers();
1276
+ for (const name of SESSION_HEADERS) {
1277
+ const value = header(name);
1278
+ if (value) headers.set(name, value);
1279
+ }
1280
+ return await authenticator.verify(headers, surface.envParser);
1281
+ } };
1282
+ }
1283
+ /** `auth.getSession()` was called on a surface that names no authenticator. */
1284
+ var NoAuthenticator = class extends Error {
1285
+ surface;
1286
+ constructor(surface) {
1287
+ super(`auth.getSession() needs an authenticator, and ${surface ? `the surface '${surface}'` : "this endpoint"} declares none: declare one on the surface with .auth(construct).`);
1288
+ this.surface = surface;
1289
+ this.name = "NoAuthenticator";
1290
+ }
1291
+ };
1259
1292
  //#endregion
1260
1293
  //#region src/endpoints/Endpoint.ts
1261
- var import_lodash = __toESM(require_lodash$1(), 1);
1262
- var import_lodash$1 = __toESM(require_lodash(), 1);
1263
1294
  /**
1264
1295
  * Represents an HTTP endpoint that can handle requests with type-safe input/output validation,
1265
1296
  * dependency injection, session management, and authorization.
@@ -1311,10 +1342,22 @@ var Endpoint = class Endpoint extends Function$1 {
1311
1342
  * Content-Type header instead of JSON-serializing.
1312
1343
  */
1313
1344
  responseType;
1345
+ /**
1346
+ * This route's telemetry — `.telemetry({ ignore, attributes })` — read by
1347
+ * the build, which hands it to the request middleware.
1348
+ */
1349
+ telemetry;
1314
1350
  /** Default headers to apply to all responses */
1315
1351
  defaultHeaders = {};
1316
1352
  /** Function to extract session data from the request context */
1317
1353
  getSession = () => ({});
1354
+ /**
1355
+ * Whether a session callback was given — `.session()` on the factory it was
1356
+ * built from. A generated handler reads the session only when it is, so
1357
+ * an endpoint with a session and no authorizer must say so: it used to be
1358
+ * handed `undefined` in a production build and its session in `gkm dev`.
1359
+ */
1360
+ hasSession = false;
1318
1361
  /** Function to determine if the request is authorized */
1319
1362
  authorize = () => true;
1320
1363
  /** Optional rate limiting configuration */
@@ -1480,12 +1523,11 @@ var Endpoint = class Endpoint extends Function$1 {
1480
1523
  * @internal
1481
1524
  */
1482
1525
  refineInput(ctx) {
1483
- const input = (0, import_lodash.default)(ctx, [
1526
+ return (0, import_lodash_pick.default)(ctx, [
1484
1527
  "body",
1485
1528
  "query",
1486
1529
  "params"
1487
1530
  ]);
1488
- return input;
1489
1531
  }
1490
1532
  handler = (ctx, response) => {
1491
1533
  for (const [key, value] of Object.entries(this.defaultHeaders)) response.header(key, value);
@@ -1508,7 +1550,7 @@ var Endpoint = class Endpoint extends Function$1 {
1508
1550
  * @returns True if the object is an Endpoint
1509
1551
  */
1510
1552
  static isEndpoint(obj) {
1511
- return Boolean(obj && obj.__IS_FUNCTION__ === true && obj.type === ConstructType.Endpoint);
1553
+ return Boolean(obj && obj.__IS_FUNCTION__ === true && obj.type === "dev.geekmidas.function.endpoint");
1512
1554
  }
1513
1555
  /**
1514
1556
  * Helper to check if response has metadata
@@ -1530,17 +1572,23 @@ var Endpoint = class Endpoint extends Function$1 {
1530
1572
  * @returns OpenAPI route definition with operation details
1531
1573
  */
1532
1574
  async toOpenApi3Route(componentCollector) {
1575
+ const status = String(this.status);
1533
1576
  const operation = {
1534
1577
  operationId: this.operationId,
1535
1578
  ...this.description && { description: this.description },
1536
1579
  ...this.tags && this.tags.length > 0 && { tags: this.tags },
1537
- responses: { "200": { description: "Successful response" } }
1580
+ responses: { [status]: { description: "Successful response" } }
1538
1581
  };
1582
+ const scheme = this.authorizer?.securityScheme;
1583
+ if (this.authorizer && scheme && componentCollector) {
1584
+ componentCollector.addSecurityScheme(this.authorizer.name, scheme);
1585
+ operation.security = [{ [this.authorizer.name]: [] }];
1586
+ }
1539
1587
  if (this.outputSchema) {
1540
1588
  const responseSchema = await convertSchemaWithComponents(this.outputSchema, componentCollector);
1541
- if (responseSchema) (0, import_lodash$1.default)(operation, [
1589
+ if (responseSchema) (0, import_lodash_set.default)(operation, [
1542
1590
  "responses",
1543
- "200",
1591
+ status,
1544
1592
  "content",
1545
1593
  this.responseType,
1546
1594
  "schema"
@@ -1555,7 +1603,7 @@ var Endpoint = class Endpoint extends Function$1 {
1555
1603
  "PATCH"
1556
1604
  ].includes(this.method) && "body" in this.input && this.input.body) {
1557
1605
  const bodySchema = await convertSchemaWithComponents(this.input.body, componentCollector);
1558
- if (bodySchema) (0, import_lodash$1.default)(operation, ["requestBody"], {
1606
+ if (bodySchema) (0, import_lodash_set.default)(operation, ["requestBody"], {
1559
1607
  required: true,
1560
1608
  content: { "application/json": { schema: bodySchema } }
1561
1609
  });
@@ -1603,8 +1651,8 @@ var Endpoint = class Endpoint extends Function$1 {
1603
1651
  * @param options.status - Success HTTP status code (default: 200)
1604
1652
  * @param options.authorizer - Optional authorizer configuration
1605
1653
  */
1606
- 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 }) {
1607
- super(fn, timeout, ConstructType.Endpoint, input, outputSchema, services, logger, publisherService, events, memorySize, auditorStorageService, void 0, constructs);
1654
+ constructor({ fn, method, route, description, tags, input, logger, output: outputSchema, services, constructs, timeout, memorySize, getSession, authorize, rateLimit, status = 200, events, authorizer, surface, auditorStorageService, actorExtractor, audits, databaseService, rlsConfig, rlsBypass, responseType, telemetry }) {
1655
+ super(fn, timeout, "dev.geekmidas.function.endpoint", input, outputSchema, services, logger, events, memorySize, auditorStorageService, void 0, constructs);
1608
1656
  this.route = route;
1609
1657
  this.method = method;
1610
1658
  this.description = description;
@@ -1612,7 +1660,14 @@ var Endpoint = class Endpoint extends Function$1 {
1612
1660
  this.status = status;
1613
1661
  this.responseType = responseType ?? "application/json";
1614
1662
  this.endpointFn = fn;
1615
- if (getSession) this.getSession = getSession;
1663
+ if (telemetry) this.telemetry = telemetry;
1664
+ if (getSession) {
1665
+ this.hasSession = true;
1666
+ this.getSession = (ctx) => getSession({
1667
+ ...ctx,
1668
+ auth: sessionAuth(surface, ctx.header)
1669
+ });
1670
+ }
1616
1671
  if (authorize) this.authorize = authorize;
1617
1672
  if (rateLimit) this.rateLimit = rateLimit;
1618
1673
  if (authorizer) this.authorizer = authorizer;
@@ -1668,25 +1723,7 @@ var ResponseBuilder = class {
1668
1723
  return this.metadata;
1669
1724
  }
1670
1725
  };
1671
- /**
1672
- * HTTP success status codes that can be returned by endpoints.
1673
- */
1674
- let SuccessStatus = /* @__PURE__ */ function(SuccessStatus$1) {
1675
- /** Standard response for successful HTTP requests */
1676
- SuccessStatus$1[SuccessStatus$1["OK"] = 200] = "OK";
1677
- /** Request has been fulfilled and resulted in a new resource being created */
1678
- SuccessStatus$1[SuccessStatus$1["Created"] = 201] = "Created";
1679
- /** Request has been accepted for processing, but processing is not complete */
1680
- SuccessStatus$1[SuccessStatus$1["Accepted"] = 202] = "Accepted";
1681
- /** Server successfully processed the request but is not returning any content */
1682
- SuccessStatus$1[SuccessStatus$1["NoContent"] = 204] = "NoContent";
1683
- /** Server successfully processed the request and is not returning any content, client should reset the document view */
1684
- SuccessStatus$1[SuccessStatus$1["ResetContent"] = 205] = "ResetContent";
1685
- /** Server is delivering only part of the resource due to a range header */
1686
- SuccessStatus$1[SuccessStatus$1["PartialContent"] = 206] = "PartialContent";
1687
- return SuccessStatus$1;
1688
- }({});
1689
-
1690
1726
  //#endregion
1691
- export { Endpoint, ResponseBuilder, require_lodash };
1692
- //# sourceMappingURL=Endpoint-DCQPMdUX.mjs.map
1727
+ export { require_lodash_set as i, ResponseBuilder as n, NoAuthenticator as r, Endpoint as t };
1728
+
1729
+ //# sourceMappingURL=Endpoint-BG4UJ9oA.mjs.map