@geekmidas/constructs 10.0.0-alpha.12 → 10.0.0-alpha.121

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 (454) hide show
  1. package/README.md +222 -158
  2. package/dist/Construct-B7AXn0xH.d.mts +230 -0
  3. package/dist/Construct-B7AXn0xH.d.mts.map +1 -0
  4. package/dist/Construct-CFW0zjdD.d.cts +230 -0
  5. package/dist/Construct-CFW0zjdD.d.cts.map +1 -0
  6. package/dist/{Construct-BD5neF7w.mjs → Construct-CKUA-CTA.mjs} +35 -35
  7. package/dist/Construct-CKUA-CTA.mjs.map +1 -0
  8. package/dist/{Construct-CyS3RpTL.cjs → Construct-DEOVauyA.cjs} +55 -49
  9. package/dist/Construct-DEOVauyA.cjs.map +1 -0
  10. package/dist/{Cron-DmQ8vQ4b.d.cts → Cron-bdGRSROY.d.cts} +15 -9
  11. package/dist/Cron-bdGRSROY.d.cts.map +1 -0
  12. package/dist/{Cron-dh4rUgib.d.mts → Cron-i4Uetezh.d.mts} +15 -9
  13. package/dist/Cron-i4Uetezh.d.mts.map +1 -0
  14. package/dist/CronBuilder-9H4BnD6W.d.mts +47 -0
  15. package/dist/CronBuilder-9H4BnD6W.d.mts.map +1 -0
  16. package/dist/{CronBuilder-Da0C0edR.cjs → CronBuilder-BXTG10u5.cjs} +47 -31
  17. package/dist/CronBuilder-BXTG10u5.cjs.map +1 -0
  18. package/dist/CronBuilder-B_24LZpn.d.cts +47 -0
  19. package/dist/CronBuilder-B_24LZpn.d.cts.map +1 -0
  20. package/dist/{CronBuilder-CYKT5RiO.mjs → CronBuilder-D3sF9tS_.mjs} +37 -21
  21. package/dist/CronBuilder-D3sF9tS_.mjs.map +1 -0
  22. package/dist/{Endpoint-BjWKinFA.d.mts → Endpoint-CeFkSwh5.d.mts} +129 -99
  23. package/dist/Endpoint-CeFkSwh5.d.mts.map +1 -0
  24. package/dist/{Endpoint-dav89W6-.d.cts → Endpoint-DgrpG15P.d.cts} +127 -97
  25. package/dist/Endpoint-DgrpG15P.d.cts.map +1 -0
  26. package/dist/{Endpoint-DCQPMdUX.mjs → Endpoint-gPXhHKhJ.mjs} +208 -100
  27. package/dist/Endpoint-gPXhHKhJ.mjs.map +1 -0
  28. package/dist/{Endpoint-DcWXE-SZ.cjs → Endpoint-yhR2T2Wt.cjs} +248 -122
  29. package/dist/Endpoint-yhR2T2Wt.cjs.map +1 -0
  30. package/dist/{EndpointFactory-CdWB7wPw.cjs → EndpointFactory-CSrAyazj.cjs} +361 -112
  31. package/dist/EndpointFactory-CSrAyazj.cjs.map +1 -0
  32. package/dist/{index-lAO9egTb.d.mts → EndpointFactory-Cc863XJS.d.cts} +190 -136
  33. package/dist/EndpointFactory-Cc863XJS.d.cts.map +1 -0
  34. package/dist/{index-Bd5FqCoe.d.cts → EndpointFactory-Dbw9ugkX.d.mts} +189 -135
  35. package/dist/EndpointFactory-Dbw9ugkX.d.mts.map +1 -0
  36. package/dist/{EndpointFactory-CjV8F_lJ.mjs → EndpointFactory-c2ZugGig.mjs} +283 -76
  37. package/dist/EndpointFactory-c2ZugGig.mjs.map +1 -0
  38. package/dist/Function-B0uZhZnU.d.cts +76 -0
  39. package/dist/Function-B0uZhZnU.d.cts.map +1 -0
  40. package/dist/Function-B_9R7Zy1.d.mts +76 -0
  41. package/dist/Function-B_9R7Zy1.d.mts.map +1 -0
  42. package/dist/{HonoEndpointAdaptor-DtL9j19R.cjs → HonoEndpointAdaptor-CN1jjUBJ.cjs} +115 -71
  43. package/dist/HonoEndpointAdaptor-CN1jjUBJ.cjs.map +1 -0
  44. package/dist/{HonoEndpointAdaptor-P1ahhZHu.mjs → HonoEndpointAdaptor-euH1oSdY.mjs} +105 -64
  45. package/dist/HonoEndpointAdaptor-euH1oSdY.mjs.map +1 -0
  46. package/dist/{Queue-D7ZuwBhy.d.cts → Queue-B-dDXyjF.d.mts} +48 -48
  47. package/dist/Queue-B-dDXyjF.d.mts.map +1 -0
  48. package/dist/Queue-BhuofM3k.cjs +109 -0
  49. package/dist/Queue-BhuofM3k.cjs.map +1 -0
  50. package/dist/{Queue-gVGfi2Yk.d.mts → Queue-JbIjVtTf.d.cts} +49 -49
  51. package/dist/Queue-JbIjVtTf.d.cts.map +1 -0
  52. package/dist/Queue-cmhqEBOB.mjs +104 -0
  53. package/dist/Queue-cmhqEBOB.mjs.map +1 -0
  54. package/dist/QueueBuilder-48W-q8In.d.mts +75 -0
  55. package/dist/QueueBuilder-48W-q8In.d.mts.map +1 -0
  56. package/dist/QueueBuilder-DXu1qxT1.mjs +118 -0
  57. package/dist/QueueBuilder-DXu1qxT1.mjs.map +1 -0
  58. package/dist/QueueBuilder-DdU2klPu.cjs +135 -0
  59. package/dist/QueueBuilder-DdU2klPu.cjs.map +1 -0
  60. package/dist/QueueBuilder-MfpkJ3R9.d.cts +75 -0
  61. package/dist/QueueBuilder-MfpkJ3R9.d.cts.map +1 -0
  62. package/dist/{Subscriber-2mEi0ImH.d.cts → Subscriber-CEt7kHkc.d.cts} +29 -20
  63. package/dist/Subscriber-CEt7kHkc.d.cts.map +1 -0
  64. package/dist/{Subscriber-xTJ9ayPN.d.mts → Subscriber-dsxc5LKa.d.mts} +29 -20
  65. package/dist/Subscriber-dsxc5LKa.d.mts.map +1 -0
  66. package/dist/SubscriberBuilder-BRa_nrmH.d.cts +67 -0
  67. package/dist/SubscriberBuilder-BRa_nrmH.d.cts.map +1 -0
  68. package/dist/SubscriberBuilder-D9bkrYzH.d.mts +67 -0
  69. package/dist/SubscriberBuilder-D9bkrYzH.d.mts.map +1 -0
  70. package/dist/{SubscriberBuilder-BjkbeT9l.mjs → SubscriberBuilder-DRXfxWn_.mjs} +50 -24
  71. package/dist/SubscriberBuilder-DRXfxWn_.mjs.map +1 -0
  72. package/dist/{SubscriberBuilder-4OPehf2R.cjs → SubscriberBuilder-M2EAgQhC.cjs} +61 -36
  73. package/dist/SubscriberBuilder-M2EAgQhC.cjs.map +1 -0
  74. package/dist/Topic-D2R0r24C.mjs +99 -0
  75. package/dist/Topic-D2R0r24C.mjs.map +1 -0
  76. package/dist/Topic-DwS3QO0m.cjs +104 -0
  77. package/dist/Topic-DwS3QO0m.cjs.map +1 -0
  78. package/dist/adaptors/aws.cjs +200 -246
  79. package/dist/adaptors/aws.cjs.map +1 -1
  80. package/dist/adaptors/aws.d.cts +58 -62
  81. package/dist/adaptors/aws.d.cts.map +1 -1
  82. package/dist/adaptors/aws.d.mts +59 -63
  83. package/dist/adaptors/aws.d.mts.map +1 -1
  84. package/dist/adaptors/aws.mjs +171 -219
  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 +9 -18
  90. package/dist/adaptors/hono.d.mts.map +1 -1
  91. package/dist/adaptors/hono.mjs +2 -10
  92. package/dist/adaptors/testing.cjs +765 -99
  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 +726 -78
  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-D_0788uW.d.mts +268 -0
  103. package/dist/auth-D_0788uW.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-5QZzh5Er.d.mts} +3 -6
  111. package/dist/cache-5QZzh5Er.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/cipher-DSDxPRIp.d.cts +106 -0
  125. package/dist/cipher-DSDxPRIp.d.cts.map +1 -0
  126. package/dist/cipher-DSDxPRIp.d.mts +106 -0
  127. package/dist/cipher-DSDxPRIp.d.mts.map +1 -0
  128. package/dist/{clone-DblgEZZa.mjs → clone-EKNovYHu.mjs} +3 -3
  129. package/dist/clone-EKNovYHu.mjs.map +1 -0
  130. package/dist/{clone-Dy0cR2SZ.cjs → clone-UGJpvQnL.cjs} +7 -8
  131. package/dist/clone-UGJpvQnL.cjs.map +1 -0
  132. package/dist/{construct-interface-D9d4Gm4p.d.cts → construct-interface-B1AfqRl4.d.cts} +42 -11
  133. package/dist/construct-interface-B1AfqRl4.d.cts.map +1 -0
  134. package/dist/{construct-interface-g5GM5pwR.d.mts → construct-interface-ZvYQbivO.d.mts} +42 -11
  135. package/dist/construct-interface-ZvYQbivO.d.mts.map +1 -0
  136. package/dist/construct-interface.cjs +113 -7
  137. package/dist/construct-interface.cjs.map +1 -0
  138. package/dist/construct-interface.d.cts +2 -2
  139. package/dist/construct-interface.d.mts +2 -2
  140. package/dist/construct-interface.mjs +106 -2
  141. package/dist/construct-interface.mjs.map +1 -0
  142. package/dist/credential-DYymbp_7.cjs +257 -0
  143. package/dist/credential-DYymbp_7.cjs.map +1 -0
  144. package/dist/credential-DfSAOOdY.mjs +222 -0
  145. package/dist/credential-DfSAOOdY.mjs.map +1 -0
  146. package/dist/credential.cjs +8 -96
  147. package/dist/credential.d.cts +2 -61
  148. package/dist/credential.d.mts +2 -61
  149. package/dist/credential.mjs +2 -94
  150. package/dist/crons/index.cjs +129 -7
  151. package/dist/crons/index.cjs.map +1 -1
  152. package/dist/crons/index.d.cts +45 -11
  153. package/dist/crons/index.d.cts.map +1 -1
  154. package/dist/crons/index.d.mts +45 -11
  155. package/dist/crons/index.d.mts.map +1 -1
  156. package/dist/crons/index.mjs +127 -8
  157. package/dist/crons/index.mjs.map +1 -1
  158. package/dist/database/kysely.cjs +4 -181
  159. package/dist/database/kysely.d.cts +2 -152
  160. package/dist/database/kysely.d.mts +2 -152
  161. package/dist/database/kysely.mjs +2 -180
  162. package/dist/email.cjs +25 -12
  163. package/dist/email.cjs.map +1 -1
  164. package/dist/email.d.cts +3 -7
  165. package/dist/email.d.cts.map +1 -1
  166. package/dist/email.d.mts +4 -8
  167. package/dist/email.d.mts.map +1 -1
  168. package/dist/email.mjs +16 -3
  169. package/dist/email.mjs.map +1 -1
  170. package/dist/encryption/kms.cjs +95 -0
  171. package/dist/encryption/kms.cjs.map +1 -0
  172. package/dist/encryption/kms.d.cts +7 -0
  173. package/dist/encryption/kms.d.cts.map +1 -0
  174. package/dist/encryption/kms.d.mts +7 -0
  175. package/dist/encryption/kms.d.mts.map +1 -0
  176. package/dist/encryption/kms.mjs +93 -0
  177. package/dist/encryption/kms.mjs.map +1 -0
  178. package/dist/encryption.cjs +116 -0
  179. package/dist/encryption.cjs.map +1 -0
  180. package/dist/encryption.d.cts +37 -0
  181. package/dist/encryption.d.cts.map +1 -0
  182. package/dist/encryption.d.mts +37 -0
  183. package/dist/encryption.d.mts.map +1 -0
  184. package/dist/encryption.mjs +101 -0
  185. package/dist/encryption.mjs.map +1 -0
  186. package/dist/endpoints/index.cjs +27 -16
  187. package/dist/endpoints/index.d.cts +105 -7
  188. package/dist/endpoints/index.d.cts.map +1 -0
  189. package/dist/endpoints/index.d.mts +105 -7
  190. package/dist/endpoints/index.d.mts.map +1 -0
  191. package/dist/endpoints/index.mjs +6 -10
  192. package/dist/expire-C586zznE.d.cts +38 -0
  193. package/dist/expire-C586zznE.d.cts.map +1 -0
  194. package/dist/expire-C586zznE.d.mts +38 -0
  195. package/dist/expire-C586zznE.d.mts.map +1 -0
  196. package/dist/expire-CieftS01.cjs +67 -0
  197. package/dist/expire-CieftS01.cjs.map +1 -0
  198. package/dist/expire-CpzUAfr9.mjs +50 -0
  199. package/dist/expire-CpzUAfr9.mjs.map +1 -0
  200. package/dist/external-api.cjs +106 -0
  201. package/dist/external-api.cjs.map +1 -0
  202. package/dist/external-api.d.cts +2 -0
  203. package/dist/external-api.d.mts +2 -0
  204. package/dist/external-api.mjs +103 -0
  205. package/dist/external-api.mjs.map +1 -0
  206. package/dist/fake-B7rvi4Qp.d.cts +201 -0
  207. package/dist/fake-B7rvi4Qp.d.cts.map +1 -0
  208. package/dist/fake-JXbkdao8.d.mts +201 -0
  209. package/dist/fake-JXbkdao8.d.mts.map +1 -0
  210. package/dist/file-server.cjs +66 -11
  211. package/dist/file-server.cjs.map +1 -1
  212. package/dist/file-server.d.cts +25 -10
  213. package/dist/file-server.d.cts.map +1 -1
  214. package/dist/file-server.d.mts +25 -10
  215. package/dist/file-server.d.mts.map +1 -1
  216. package/dist/file-server.mjs +58 -4
  217. package/dist/file-server.mjs.map +1 -1
  218. package/dist/functions/index.cjs +3 -6
  219. package/dist/functions/index.d.cts +3 -4
  220. package/dist/functions/index.d.mts +3 -4
  221. package/dist/functions/index.mjs +2 -6
  222. package/dist/{functions-14lpEFL4.mjs → functions-CTI-hDem.mjs} +376 -238
  223. package/dist/{functions-14lpEFL4.mjs.map → functions-CTI-hDem.mjs.map} +1 -1
  224. package/dist/{functions-i_la-N5r.cjs → functions-D7O5SGVc.cjs} +414 -264
  225. package/dist/functions-D7O5SGVc.cjs.map +1 -0
  226. package/dist/index-Cd2w-DRL.d.cts +115 -0
  227. package/dist/index-Cd2w-DRL.d.cts.map +1 -0
  228. package/dist/index-DdRjYhiJ.d.cts +119 -0
  229. package/dist/index-DdRjYhiJ.d.cts.map +1 -0
  230. package/dist/index-DdRjYhiJ.d.mts +119 -0
  231. package/dist/index-DdRjYhiJ.d.mts.map +1 -0
  232. package/dist/index-aBIcAiH5.d.mts +115 -0
  233. package/dist/index-aBIcAiH5.d.mts.map +1 -0
  234. package/dist/index.cjs +6 -3
  235. package/dist/index.d.cts +27 -4
  236. package/dist/index.d.cts.map +1 -0
  237. package/dist/index.d.mts +27 -4
  238. package/dist/index.d.mts.map +1 -0
  239. package/dist/index.mjs +3 -3
  240. package/dist/kysely-BHYV-WC-.d.cts +216 -0
  241. package/dist/kysely-BHYV-WC-.d.cts.map +1 -0
  242. package/dist/kysely-CAW3QSqp.d.mts +216 -0
  243. package/dist/kysely-CAW3QSqp.d.mts.map +1 -0
  244. package/dist/kysely-Cs4uPO8k.mjs +371 -0
  245. package/dist/kysely-Cs4uPO8k.mjs.map +1 -0
  246. package/dist/kysely-CukArHJ0.cjs +384 -0
  247. package/dist/kysely-CukArHJ0.cjs.map +1 -0
  248. package/dist/{telemetry-C3L0iS28.d.cts → lambdaTelemetry-8vnmVZQ5.d.cts} +3 -6
  249. package/dist/lambdaTelemetry-8vnmVZQ5.d.cts.map +1 -0
  250. package/dist/{telemetry-D7bVFLGi.d.mts → lambdaTelemetry-8vnmVZQ5.d.mts} +3 -6
  251. package/dist/lambdaTelemetry-8vnmVZQ5.d.mts.map +1 -0
  252. package/dist/mobile-app.cjs +74 -0
  253. package/dist/mobile-app.cjs.map +1 -0
  254. package/dist/mobile-app.d.cts +73 -0
  255. package/dist/mobile-app.d.cts.map +1 -0
  256. package/dist/mobile-app.d.mts +73 -0
  257. package/dist/mobile-app.d.mts.map +1 -0
  258. package/dist/mobile-app.mjs +73 -0
  259. package/dist/mobile-app.mjs.map +1 -0
  260. package/dist/object-storage.cjs +26 -11
  261. package/dist/object-storage.cjs.map +1 -1
  262. package/dist/object-storage.d.cts +12 -7
  263. package/dist/object-storage.d.cts.map +1 -1
  264. package/dist/object-storage.d.mts +12 -7
  265. package/dist/object-storage.d.mts.map +1 -1
  266. package/dist/object-storage.mjs +18 -5
  267. package/dist/object-storage.mjs.map +1 -1
  268. package/dist/queue/index.cjs +6 -189
  269. package/dist/queue/index.d.cts +3 -60
  270. package/dist/queue/index.d.mts +3 -60
  271. package/dist/queue/index.mjs +3 -186
  272. package/dist/random-password.cjs +86 -0
  273. package/dist/random-password.cjs.map +1 -0
  274. package/dist/random-password.d.cts +30 -0
  275. package/dist/random-password.d.cts.map +1 -0
  276. package/dist/random-password.d.mts +30 -0
  277. package/dist/random-password.d.mts.map +1 -0
  278. package/dist/random-password.mjs +84 -0
  279. package/dist/random-password.mjs.map +1 -0
  280. package/dist/{lazyAccessors-BoJN3SMd.mjs → readRequestBody-BTIl3k-D.mjs} +117 -60
  281. package/dist/readRequestBody-BTIl3k-D.mjs.map +1 -0
  282. package/dist/readRequestBody-Dej_L3c4.cjs +342 -0
  283. package/dist/readRequestBody-Dej_L3c4.cjs.map +1 -0
  284. package/dist/requestLogger-BZcXwdBs.cjs +207 -0
  285. package/dist/requestLogger-BZcXwdBs.cjs.map +1 -0
  286. package/dist/requestLogger-pA4gi3E1.mjs +178 -0
  287. package/dist/requestLogger-pA4gi3E1.mjs.map +1 -0
  288. package/dist/rest-api.cjs +90 -59
  289. package/dist/rest-api.cjs.map +1 -1
  290. package/dist/rest-api.d.cts +70 -42
  291. package/dist/rest-api.d.cts.map +1 -1
  292. package/dist/rest-api.d.mts +70 -42
  293. package/dist/rest-api.d.mts.map +1 -1
  294. package/dist/rest-api.mjs +82 -51
  295. package/dist/rest-api.mjs.map +1 -1
  296. package/dist/{chunk-DWy1uDak.cjs → rolldown-runtime-y5ARvAq5.cjs} +14 -18
  297. package/dist/runSubscriber-BHvJ8POr.mjs +109 -0
  298. package/dist/runSubscriber-BHvJ8POr.mjs.map +1 -0
  299. package/dist/runSubscriber-D8nLXIv1.cjs +126 -0
  300. package/dist/runSubscriber-D8nLXIv1.cjs.map +1 -0
  301. package/dist/shutdown-BMJmAhSt.cjs +38 -0
  302. package/dist/shutdown-BMJmAhSt.cjs.map +1 -0
  303. package/dist/shutdown-C7xa8x9S.mjs +27 -0
  304. package/dist/shutdown-C7xa8x9S.mjs.map +1 -0
  305. package/dist/site.cjs +33 -7
  306. package/dist/site.cjs.map +1 -1
  307. package/dist/site.d.cts +17 -7
  308. package/dist/site.d.cts.map +1 -1
  309. package/dist/site.d.mts +17 -7
  310. package/dist/site.d.mts.map +1 -1
  311. package/dist/site.mjs +29 -3
  312. package/dist/site.mjs.map +1 -1
  313. package/dist/stages-BSCF19o2.d.cts +56 -0
  314. package/dist/stages-BSCF19o2.d.cts.map +1 -0
  315. package/dist/stages-BSCF19o2.d.mts +56 -0
  316. package/dist/stages-BSCF19o2.d.mts.map +1 -0
  317. package/dist/subscribers/index.cjs +118 -6
  318. package/dist/subscribers/index.cjs.map +1 -0
  319. package/dist/subscribers/index.d.cts +51 -6
  320. package/dist/subscribers/index.d.cts.map +1 -0
  321. package/dist/subscribers/index.d.mts +51 -6
  322. package/dist/subscribers/index.d.mts.map +1 -0
  323. package/dist/subscribers/index.mjs +115 -5
  324. package/dist/subscribers/index.mjs.map +1 -0
  325. package/dist/surfaceEnv-CNimK76p.cjs +56 -0
  326. package/dist/surfaceEnv-CNimK76p.cjs.map +1 -0
  327. package/dist/surfaceEnv-wMT5QzgZ.mjs +45 -0
  328. package/dist/surfaceEnv-wMT5QzgZ.mjs.map +1 -0
  329. package/dist/telemetry-B48RLjyk.d.cts +40 -0
  330. package/dist/telemetry-B48RLjyk.d.cts.map +1 -0
  331. package/dist/telemetry-BEoBn6GO.d.mts +40 -0
  332. package/dist/telemetry-BEoBn6GO.d.mts.map +1 -0
  333. package/dist/telemetry.cjs +56 -0
  334. package/dist/telemetry.cjs.map +1 -0
  335. package/dist/telemetry.d.cts +2 -0
  336. package/dist/telemetry.d.mts +2 -0
  337. package/dist/telemetry.mjs +55 -0
  338. package/dist/telemetry.mjs.map +1 -0
  339. package/dist/topic/index.cjs +3 -137
  340. package/dist/topic/index.d.cts +2 -4
  341. package/dist/topic/index.d.mts +2 -4
  342. package/dist/topic/index.mjs +2 -134
  343. package/dist/tracing-Bbj1uoFJ.mjs +127 -0
  344. package/dist/tracing-Bbj1uoFJ.mjs.map +1 -0
  345. package/dist/tracing-C0ooU0V2.cjs +150 -0
  346. package/dist/tracing-C0ooU0V2.cjs.map +1 -0
  347. package/dist/{types-BlAkSuGI.d.cts → types-DMuSQeLL.d.cts} +3 -5
  348. package/dist/types-DMuSQeLL.d.cts.map +1 -0
  349. package/dist/{types-aKksMEWL.d.mts → types-DMuSQeLL.d.mts} +3 -5
  350. package/dist/types-DMuSQeLL.d.mts.map +1 -0
  351. package/dist/types.d.cts +1 -1
  352. package/dist/types.d.mts +1 -1
  353. package/dist/types.mjs +1 -0
  354. package/dist/worker.cjs +59 -34
  355. package/dist/worker.cjs.map +1 -1
  356. package/dist/worker.d.cts +70 -45
  357. package/dist/worker.d.cts.map +1 -1
  358. package/dist/worker.d.mts +71 -45
  359. package/dist/worker.d.mts.map +1 -1
  360. package/dist/worker.mjs +54 -29
  361. package/dist/worker.mjs.map +1 -1
  362. package/package.json +115 -41
  363. package/dist/Construct-BD5neF7w.mjs.map +0 -1
  364. package/dist/Construct-C0ijr2qp.d.cts +0 -117
  365. package/dist/Construct-C0ijr2qp.d.cts.map +0 -1
  366. package/dist/Construct-Ct8nalEi.d.mts +0 -117
  367. package/dist/Construct-Ct8nalEi.d.mts.map +0 -1
  368. package/dist/Construct-CyS3RpTL.cjs.map +0 -1
  369. package/dist/Cron-DmQ8vQ4b.d.cts.map +0 -1
  370. package/dist/Cron-dh4rUgib.d.mts.map +0 -1
  371. package/dist/CronBuilder-BquXDbDI.d.cts +0 -44
  372. package/dist/CronBuilder-BquXDbDI.d.cts.map +0 -1
  373. package/dist/CronBuilder-CGgY2080.d.mts +0 -44
  374. package/dist/CronBuilder-CGgY2080.d.mts.map +0 -1
  375. package/dist/CronBuilder-CYKT5RiO.mjs.map +0 -1
  376. package/dist/CronBuilder-Da0C0edR.cjs.map +0 -1
  377. package/dist/Endpoint-BjWKinFA.d.mts.map +0 -1
  378. package/dist/Endpoint-DCQPMdUX.mjs.map +0 -1
  379. package/dist/Endpoint-DcWXE-SZ.cjs.map +0 -1
  380. package/dist/Endpoint-dav89W6-.d.cts.map +0 -1
  381. package/dist/EndpointFactory-CdWB7wPw.cjs.map +0 -1
  382. package/dist/EndpointFactory-CjV8F_lJ.mjs.map +0 -1
  383. package/dist/HonoEndpointAdaptor-DtL9j19R.cjs.map +0 -1
  384. package/dist/HonoEndpointAdaptor-P1ahhZHu.mjs.map +0 -1
  385. package/dist/Queue-D7ZuwBhy.d.cts.map +0 -1
  386. package/dist/Queue-gVGfi2Yk.d.mts.map +0 -1
  387. package/dist/Subscriber-2mEi0ImH.d.cts.map +0 -1
  388. package/dist/Subscriber-xTJ9ayPN.d.mts.map +0 -1
  389. package/dist/SubscriberBuilder-4OPehf2R.cjs.map +0 -1
  390. package/dist/SubscriberBuilder-BjkbeT9l.mjs.map +0 -1
  391. package/dist/SubscriberBuilder-Dptmo-1A.d.mts +0 -62
  392. package/dist/SubscriberBuilder-Dptmo-1A.d.mts.map +0 -1
  393. package/dist/SubscriberBuilder-waNhzjSM.d.cts +0 -62
  394. package/dist/SubscriberBuilder-waNhzjSM.d.cts.map +0 -1
  395. package/dist/Topic-19QeHBIR.d.cts +0 -91
  396. package/dist/Topic-19QeHBIR.d.cts.map +0 -1
  397. package/dist/Topic-DuFeqkBh.d.mts +0 -91
  398. package/dist/Topic-DuFeqkBh.d.mts.map +0 -1
  399. package/dist/auth.d.cts.map +0 -1
  400. package/dist/auth.d.mts.map +0 -1
  401. package/dist/cache-0ANvRQnD.mjs +0 -51
  402. package/dist/cache-0ANvRQnD.mjs.map +0 -1
  403. package/dist/cache-3WSvAulx.cjs +0 -57
  404. package/dist/cache-3WSvAulx.cjs.map +0 -1
  405. package/dist/cache-BrRz3fEB.d.mts.map +0 -1
  406. package/dist/cache-BtZY_tHe.d.cts.map +0 -1
  407. package/dist/clone-DblgEZZa.mjs.map +0 -1
  408. package/dist/clone-Dy0cR2SZ.cjs.map +0 -1
  409. package/dist/construct-interface-BfjcOD_E.cjs +0 -117
  410. package/dist/construct-interface-BfjcOD_E.cjs.map +0 -1
  411. package/dist/construct-interface-D9d4Gm4p.d.cts.map +0 -1
  412. package/dist/construct-interface-Z4CpS8tK.mjs +0 -81
  413. package/dist/construct-interface-Z4CpS8tK.mjs.map +0 -1
  414. package/dist/construct-interface-g5GM5pwR.d.mts.map +0 -1
  415. package/dist/credential.cjs.map +0 -1
  416. package/dist/credential.d.cts.map +0 -1
  417. package/dist/credential.d.mts.map +0 -1
  418. package/dist/credential.mjs.map +0 -1
  419. package/dist/database/kysely.cjs.map +0 -1
  420. package/dist/database/kysely.d.cts.map +0 -1
  421. package/dist/database/kysely.d.mts.map +0 -1
  422. package/dist/database/kysely.mjs.map +0 -1
  423. package/dist/functions-i_la-N5r.cjs.map +0 -1
  424. package/dist/index-Bd5FqCoe.d.cts.map +0 -1
  425. package/dist/index-BknhM6Ux.d.mts +0 -31
  426. package/dist/index-BknhM6Ux.d.mts.map +0 -1
  427. package/dist/index-CBSfrowv.d.cts +0 -31
  428. package/dist/index-CBSfrowv.d.cts.map +0 -1
  429. package/dist/index-D24Xm79M.d.cts +0 -171
  430. package/dist/index-D24Xm79M.d.cts.map +0 -1
  431. package/dist/index-_ajboYxK.d.mts +0 -171
  432. package/dist/index-_ajboYxK.d.mts.map +0 -1
  433. package/dist/index-lAO9egTb.d.mts.map +0 -1
  434. package/dist/lazyAccessors-BoJN3SMd.mjs.map +0 -1
  435. package/dist/lazyAccessors-e3j2oE2m.cjs +0 -274
  436. package/dist/lazyAccessors-e3j2oE2m.cjs.map +0 -1
  437. package/dist/processAudits-CGqttuXm.cjs +0 -92
  438. package/dist/processAudits-CGqttuXm.cjs.map +0 -1
  439. package/dist/processAudits-Dmts9H_b.mjs +0 -80
  440. package/dist/processAudits-Dmts9H_b.mjs.map +0 -1
  441. package/dist/queue/index.cjs.map +0 -1
  442. package/dist/queue/index.d.cts.map +0 -1
  443. package/dist/queue/index.d.mts.map +0 -1
  444. package/dist/queue/index.mjs.map +0 -1
  445. package/dist/surfaceEnv-BFXEms2f.cjs +0 -39
  446. package/dist/surfaceEnv-BFXEms2f.cjs.map +0 -1
  447. package/dist/surfaceEnv-C3Ktahea.mjs +0 -27
  448. package/dist/surfaceEnv-C3Ktahea.mjs.map +0 -1
  449. package/dist/telemetry-C3L0iS28.d.cts.map +0 -1
  450. package/dist/telemetry-D7bVFLGi.d.mts.map +0 -1
  451. package/dist/topic/index.cjs.map +0 -1
  452. package/dist/topic/index.mjs.map +0 -1
  453. package/dist/types-BlAkSuGI.d.cts.map +0 -1
  454. package/dist/types-aKksMEWL.d.mts.map +0 -1
@@ -1,11 +1,11 @@
1
- const require_chunk = require('./chunk-DWy1uDak.cjs');
2
- const require_Construct = require('./Construct-CyS3RpTL.cjs');
3
- const require_functions = require('./functions-i_la-N5r.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-DEOVauyA.cjs");
3
+ const require_tracing = require("./tracing-C0ooU0V2.cjs");
4
+ const require_functions = require("./functions-D7O5SGVc.cjs");
5
+ let _geekmidas_schema_conversion = require("@geekmidas/schema/conversion");
6
+ let _geekmidas_schema_openapi = require("@geekmidas/schema/openapi");
7
7
  //#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) {
8
+ var require_lodash_pick = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
9
9
  /**
10
10
  * lodash (Custom Build) <https://lodash.com/>
11
11
  * Build: `lodash modularize exports="npm" -o ./`
@@ -15,15 +15,18 @@ var require_lodash$1 = require_chunk.__commonJS({ "../../node_modules/.pnpm/loda
15
15
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
16
16
  */
17
17
  /** Used as references for various `Number` constants. */
18
- var INFINITY$1 = Infinity, MAX_SAFE_INTEGER$1 = 9007199254740991;
18
+ var MAX_SAFE_INTEGER = 9007199254740991;
19
19
  /** `Object#toString` result references. */
20
- var argsTag = "[object Arguments]", funcTag$1 = "[object Function]", genTag$1 = "[object GeneratorFunction]", symbolTag$1 = "[object Symbol]";
20
+ var argsTag = "[object Arguments]";
21
+ var funcTag = "[object Function]";
22
+ var genTag = "[object GeneratorFunction]";
23
+ var symbolTag = "[object Symbol]";
21
24
  /** Detect free variable `global` from Node.js. */
22
- var freeGlobal$1 = typeof global == "object" && global && global.Object === Object && global;
25
+ var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
23
26
  /** Detect free variable `self`. */
24
- var freeSelf$1 = typeof self == "object" && self && self.Object === Object && self;
27
+ var freeSelf = typeof self == "object" && self && self.Object === Object && self;
25
28
  /** Used as a reference to the global object. */
26
- var root$1 = freeGlobal$1 || freeSelf$1 || Function("return this")();
29
+ var root = freeGlobal || freeSelf || Function("return this")();
27
30
  /**
28
31
  * A faster alternative to `Function#apply`, this function invokes `func`
29
32
  * with the `this` binding of `thisArg` and the arguments of `args`.
@@ -71,17 +74,19 @@ var require_lodash$1 = require_chunk.__commonJS({ "../../node_modules/.pnpm/loda
71
74
  return array;
72
75
  }
73
76
  /** Used for built-in method references. */
74
- var objectProto$1 = Object.prototype;
77
+ var objectProto = Object.prototype;
75
78
  /** Used to check objects for own properties. */
76
- var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
79
+ var hasOwnProperty = objectProto.hasOwnProperty;
77
80
  /**
78
81
  * Used to resolve the
79
82
  * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
80
83
  * of values.
81
84
  */
82
- var objectToString$1 = objectProto$1.toString;
85
+ var objectToString = objectProto.toString;
83
86
  /** Built-in value references. */
84
- var Symbol$1 = root$1.Symbol, propertyIsEnumerable = objectProto$1.propertyIsEnumerable, spreadableSymbol = Symbol$1 ? Symbol$1.isConcatSpreadable : void 0;
87
+ var Symbol = root.Symbol;
88
+ var propertyIsEnumerable = objectProto.propertyIsEnumerable;
89
+ var spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : void 0;
85
90
  var nativeMax = Math.max;
86
91
  /**
87
92
  * The base implementation of `_.flatten` with support for restricting flattening.
@@ -100,9 +105,10 @@ var require_lodash$1 = require_chunk.__commonJS({ "../../node_modules/.pnpm/loda
100
105
  result || (result = []);
101
106
  while (++index < length) {
102
107
  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;
108
+ if (depth > 0 && predicate(value)) {
109
+ if (depth > 1) baseFlatten(value, depth - 1, predicate, isStrict, result);
110
+ else arrayPush(result, value);
111
+ } else if (!isStrict) result[result.length] = value;
106
112
  }
107
113
  return result;
108
114
  }
@@ -166,7 +172,7 @@ var require_lodash$1 = require_chunk.__commonJS({ "../../node_modules/.pnpm/loda
166
172
  * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
167
173
  */
168
174
  function isFlattenable(value) {
169
- return isArray$1(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
175
+ return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
170
176
  }
171
177
  /**
172
178
  * Converts `value` to a string key if it's not a string or symbol.
@@ -175,10 +181,10 @@ var require_lodash$1 = require_chunk.__commonJS({ "../../node_modules/.pnpm/loda
175
181
  * @param {*} value The value to inspect.
176
182
  * @returns {string|symbol} Returns the key.
177
183
  */
178
- function toKey$1(value) {
179
- if (typeof value == "string" || isSymbol$1(value)) return value;
184
+ function toKey(value) {
185
+ if (typeof value == "string" || isSymbol(value)) return value;
180
186
  var result = value + "";
181
- return result == "0" && 1 / value == -INFINITY$1 ? "-0" : result;
187
+ return result == "0" && 1 / value == -Infinity ? "-0" : result;
182
188
  }
183
189
  /**
184
190
  * Checks if `value` is likely an `arguments` object.
@@ -199,7 +205,7 @@ var require_lodash$1 = require_chunk.__commonJS({ "../../node_modules/.pnpm/loda
199
205
  * // => false
200
206
  */
201
207
  function isArguments(value) {
202
- return isArrayLikeObject(value) && hasOwnProperty$1.call(value, "callee") && (!propertyIsEnumerable.call(value, "callee") || objectToString$1.call(value) == argsTag);
208
+ return isArrayLikeObject(value) && hasOwnProperty.call(value, "callee") && (!propertyIsEnumerable.call(value, "callee") || objectToString.call(value) == argsTag);
203
209
  }
204
210
  /**
205
211
  * Checks if `value` is classified as an `Array` object.
@@ -224,7 +230,7 @@ var require_lodash$1 = require_chunk.__commonJS({ "../../node_modules/.pnpm/loda
224
230
  * _.isArray(_.noop);
225
231
  * // => false
226
232
  */
227
- var isArray$1 = Array.isArray;
233
+ var isArray = Array.isArray;
228
234
  /**
229
235
  * Checks if `value` is array-like. A value is considered array-like if it's
230
236
  * not a function and has a `value.length` that's an integer greater than or
@@ -251,7 +257,7 @@ var require_lodash$1 = require_chunk.__commonJS({ "../../node_modules/.pnpm/loda
251
257
  * // => false
252
258
  */
253
259
  function isArrayLike(value) {
254
- return value != null && isLength(value.length) && !isFunction$1(value);
260
+ return value != null && isLength(value.length) && !isFunction(value);
255
261
  }
256
262
  /**
257
263
  * This method is like `_.isArrayLike` except that it also checks if `value`
@@ -279,7 +285,7 @@ var require_lodash$1 = require_chunk.__commonJS({ "../../node_modules/.pnpm/loda
279
285
  * // => false
280
286
  */
281
287
  function isArrayLikeObject(value) {
282
- return isObjectLike$1(value) && isArrayLike(value);
288
+ return isObjectLike(value) && isArrayLike(value);
283
289
  }
284
290
  /**
285
291
  * Checks if `value` is classified as a `Function` object.
@@ -298,9 +304,9 @@ var require_lodash$1 = require_chunk.__commonJS({ "../../node_modules/.pnpm/loda
298
304
  * _.isFunction(/abc/);
299
305
  * // => false
300
306
  */
301
- function isFunction$1(value) {
302
- var tag = isObject$1(value) ? objectToString$1.call(value) : "";
303
- return tag == funcTag$1 || tag == genTag$1;
307
+ function isFunction(value) {
308
+ var tag = isObject(value) ? objectToString.call(value) : "";
309
+ return tag == funcTag || tag == genTag;
304
310
  }
305
311
  /**
306
312
  * Checks if `value` is a valid array-like length.
@@ -329,7 +335,7 @@ var require_lodash$1 = require_chunk.__commonJS({ "../../node_modules/.pnpm/loda
329
335
  * // => false
330
336
  */
331
337
  function isLength(value) {
332
- return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER$1;
338
+ return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
333
339
  }
334
340
  /**
335
341
  * Checks if `value` is the
@@ -356,7 +362,7 @@ var require_lodash$1 = require_chunk.__commonJS({ "../../node_modules/.pnpm/loda
356
362
  * _.isObject(null);
357
363
  * // => false
358
364
  */
359
- function isObject$1(value) {
365
+ function isObject(value) {
360
366
  var type = typeof value;
361
367
  return !!value && (type == "object" || type == "function");
362
368
  }
@@ -384,7 +390,7 @@ var require_lodash$1 = require_chunk.__commonJS({ "../../node_modules/.pnpm/loda
384
390
  * _.isObjectLike(null);
385
391
  * // => false
386
392
  */
387
- function isObjectLike$1(value) {
393
+ function isObjectLike(value) {
388
394
  return !!value && typeof value == "object";
389
395
  }
390
396
  /**
@@ -404,35 +410,16 @@ var require_lodash$1 = require_chunk.__commonJS({ "../../node_modules/.pnpm/loda
404
410
  * _.isSymbol('abc');
405
411
  * // => false
406
412
  */
407
- function isSymbol$1(value) {
408
- return typeof value == "symbol" || isObjectLike$1(value) && objectToString$1.call(value) == symbolTag$1;
413
+ function isSymbol(value) {
414
+ return typeof value == "symbol" || isObjectLike(value) && objectToString.call(value) == symbolTag;
409
415
  }
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));
416
+ module.exports = baseRest(function(object, props) {
417
+ return object == null ? {} : basePick(object, arrayMap(baseFlatten(props, 1), toKey));
429
418
  });
430
- module.exports = pick$1;
431
- } });
432
-
419
+ }));
433
420
  //#endregion
434
421
  //#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) {
422
+ var require_lodash_set = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
436
423
  /**
437
424
  * lodash (Custom Build) <https://lodash.com/>
438
425
  * Build: `lodash modularize exports="npm" -o ./`
@@ -445,12 +432,16 @@ var require_lodash = require_chunk.__commonJS({ "../../node_modules/.pnpm/lodash
445
432
  var FUNC_ERROR_TEXT = "Expected a function";
446
433
  /** Used to stand-in for `undefined` hash values. */
447
434
  var HASH_UNDEFINED = "__lodash_hash_undefined__";
448
- /** Used as references for various `Number` constants. */
449
- var INFINITY = Infinity, MAX_SAFE_INTEGER = 9007199254740991;
435
+ var MAX_SAFE_INTEGER = 9007199254740991;
450
436
  /** `Object#toString` result references. */
451
- var funcTag = "[object Function]", genTag = "[object GeneratorFunction]", symbolTag = "[object Symbol]";
437
+ var funcTag = "[object Function]";
438
+ var genTag = "[object GeneratorFunction]";
439
+ var symbolTag = "[object Symbol]";
452
440
  /** Used to match property names within property paths. */
453
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/, reLeadingDot = /^\./, rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
441
+ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;
442
+ var reIsPlainProp = /^\w*$/;
443
+ var reLeadingDot = /^\./;
444
+ var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
454
445
  /**
455
446
  * Used to match `RegExp`
456
447
  * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
@@ -494,7 +485,9 @@ var require_lodash = require_chunk.__commonJS({ "../../node_modules/.pnpm/lodash
494
485
  return result;
495
486
  }
496
487
  /** Used for built-in method references. */
497
- var arrayProto = Array.prototype, funcProto = Function.prototype, objectProto = Object.prototype;
488
+ var arrayProto = Array.prototype;
489
+ var funcProto = Function.prototype;
490
+ var objectProto = Object.prototype;
498
491
  /** Used to detect overreaching core-js shims. */
499
492
  var coreJsData = root["__core-js_shared__"];
500
493
  /** Used to detect methods masquerading as native. */
@@ -515,10 +508,13 @@ var require_lodash = require_chunk.__commonJS({ "../../node_modules/.pnpm/lodash
515
508
  /** Used to detect if a method is native. */
516
509
  var reIsNative = RegExp("^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
517
510
  /** Built-in value references. */
518
- var Symbol = root.Symbol, splice = arrayProto.splice;
519
- var Map$1 = getNative(root, "Map"), nativeCreate = getNative(Object, "create");
511
+ var Symbol = root.Symbol;
512
+ var splice = arrayProto.splice;
513
+ var Map = getNative(root, "Map");
514
+ var nativeCreate = getNative(Object, "create");
520
515
  /** Used to convert symbols to primitives and strings. */
521
- var symbolProto = Symbol ? Symbol.prototype : void 0, symbolToString = symbolProto ? symbolProto.toString : void 0;
516
+ var symbolProto = Symbol ? Symbol.prototype : void 0;
517
+ var symbolToString = symbolProto ? symbolProto.toString : void 0;
522
518
  /**
523
519
  * Creates a hash object.
524
520
  *
@@ -644,8 +640,7 @@ var require_lodash = require_chunk.__commonJS({ "../../node_modules/.pnpm/lodash
644
640
  function listCacheDelete(key) {
645
641
  var data = this.__data__, index = assocIndexOf(data, key);
646
642
  if (index < 0) return false;
647
- var lastIndex = data.length - 1;
648
- if (index == lastIndex) data.pop();
643
+ if (index == data.length - 1) data.pop();
649
644
  else splice.call(data, index, 1);
650
645
  return true;
651
646
  }
@@ -720,7 +715,7 @@ var require_lodash = require_chunk.__commonJS({ "../../node_modules/.pnpm/lodash
720
715
  function mapCacheClear() {
721
716
  this.__data__ = {
722
717
  "hash": new Hash(),
723
- "map": new (Map$1 || ListCache)(),
718
+ "map": new (Map || ListCache)(),
724
719
  "string": new Hash()
725
720
  };
726
721
  }
@@ -816,8 +811,7 @@ var require_lodash = require_chunk.__commonJS({ "../../node_modules/.pnpm/lodash
816
811
  */
817
812
  function baseIsNative(value) {
818
813
  if (!isObject(value) || isMasked(value)) return false;
819
- var pattern = isFunction(value) || isHostObject(value) ? reIsNative : reIsHostCtor;
820
- return pattern.test(toSource(value));
814
+ return (isFunction(value) || isHostObject(value) ? reIsNative : reIsHostCtor).test(toSource(value));
821
815
  }
822
816
  /**
823
817
  * The base implementation of `_.set`.
@@ -857,7 +851,7 @@ var require_lodash = require_chunk.__commonJS({ "../../node_modules/.pnpm/lodash
857
851
  if (typeof value == "string") return value;
858
852
  if (isSymbol(value)) return symbolToString ? symbolToString.call(value) : "";
859
853
  var result = value + "";
860
- return result == "0" && 1 / value == -INFINITY ? "-0" : result;
854
+ return result == "0" && 1 / value == -Infinity ? "-0" : result;
861
855
  }
862
856
  /**
863
857
  * Casts `value` to a path array if it's not one.
@@ -951,8 +945,8 @@ var require_lodash = require_chunk.__commonJS({ "../../node_modules/.pnpm/lodash
951
945
  string = toString(string);
952
946
  var result = [];
953
947
  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);
948
+ string.replace(rePropName, function(match, number, quote, string) {
949
+ result.push(quote ? string.replace(reEscapeChar, "$1") : number || match);
956
950
  });
957
951
  return result;
958
952
  });
@@ -966,7 +960,7 @@ var require_lodash = require_chunk.__commonJS({ "../../node_modules/.pnpm/lodash
966
960
  function toKey(value) {
967
961
  if (typeof value == "string" || isSymbol(value)) return value;
968
962
  var result = value + "";
969
- return result == "0" && 1 / value == -INFINITY ? "-0" : result;
963
+ return result == "0" && 1 / value == -Infinity ? "-0" : result;
970
964
  }
971
965
  /**
972
966
  * Converts `func` to its source code.
@@ -1251,16 +1245,60 @@ var require_lodash = require_chunk.__commonJS({ "../../node_modules/.pnpm/lodash
1251
1245
  * console.log(object.x[0].y.z);
1252
1246
  * // => 5
1253
1247
  */
1254
- function set$1(object, path, value) {
1248
+ function set(object, path, value) {
1255
1249
  return object == null ? object : baseSet(object, path, value);
1256
1250
  }
1257
- module.exports = set$1;
1258
- } });
1259
-
1251
+ module.exports = set;
1252
+ }));
1253
+ //#endregion
1254
+ //#region src/endpoints/sessionAuth.ts
1255
+ var import_lodash_pick = /* @__PURE__ */ require_rolldown_runtime.__toESM(require_lodash_pick(), 1);
1256
+ var import_lodash_set = /* @__PURE__ */ require_rolldown_runtime.__toESM(require_lodash_set(), 1);
1257
+ /**
1258
+ * What is forwarded to the auth server: the headers a session travels in, and
1259
+ * whose request it is — nothing else.
1260
+ *
1261
+ * The client's address goes with the session because the auth server
1262
+ * rate-limits by it, `/get-session` included. Without it every user's session
1263
+ * check arrived from the surface itself — one shared bucket, so enough
1264
+ * traffic from anyone turned every session check into a 429 — and in tests,
1265
+ * concurrent tests queued on the same rate-limit row.
1266
+ */
1267
+ const SESSION_HEADERS = [
1268
+ "cookie",
1269
+ "authorization",
1270
+ "x-forwarded-for"
1271
+ ];
1272
+ /** `auth` for one request on one surface. */
1273
+ function sessionAuth(surface, header) {
1274
+ return { async getSession() {
1275
+ const authenticator = surface?.auth;
1276
+ if (!surface || !authenticator) throw new NoAuthenticator(surface?.id);
1277
+ const headers = new Headers();
1278
+ for (const name of SESSION_HEADERS) {
1279
+ const value = header(name);
1280
+ if (value) headers.set(name, value);
1281
+ }
1282
+ const session = await authenticator.verify(headers, surface.envParser);
1283
+ const identity = session;
1284
+ if (typeof identity?.user?.id === "string") require_tracing.identifyUser({
1285
+ id: identity.user.id,
1286
+ ...typeof identity.session?.id === "string" ? { sessionId: identity.session.id } : {}
1287
+ });
1288
+ return session;
1289
+ } };
1290
+ }
1291
+ /** `auth.getSession()` was called on a surface that names no authenticator. */
1292
+ var NoAuthenticator = class extends Error {
1293
+ surface;
1294
+ constructor(surface) {
1295
+ super(`auth.getSession() needs an authenticator, and ${surface ? `the surface '${surface}'` : "this endpoint"} declares none: declare one on the surface with .auth(construct).`);
1296
+ this.surface = surface;
1297
+ this.name = "NoAuthenticator";
1298
+ }
1299
+ };
1260
1300
  //#endregion
1261
1301
  //#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
1302
  /**
1265
1303
  * Represents an HTTP endpoint that can handle requests with type-safe input/output validation,
1266
1304
  * dependency injection, session management, and authorization.
@@ -1304,7 +1342,7 @@ var Endpoint = class Endpoint extends require_functions.Function {
1304
1342
  description;
1305
1343
  /** Optional tags for OpenAPI documentation */
1306
1344
  tags;
1307
- /** The HTTP success status code to return (default: 200) */
1345
+ /** The HTTP status code to return (default: 200) */
1308
1346
  status;
1309
1347
  /**
1310
1348
  * Response content type for this endpoint. Defaults to `'application/json'`.
@@ -1312,10 +1350,22 @@ var Endpoint = class Endpoint extends require_functions.Function {
1312
1350
  * Content-Type header instead of JSON-serializing.
1313
1351
  */
1314
1352
  responseType;
1353
+ /**
1354
+ * This route's telemetry — `.telemetry({ ignore, attributes })` — read by
1355
+ * the build, which hands it to the request middleware.
1356
+ */
1357
+ telemetry;
1315
1358
  /** Default headers to apply to all responses */
1316
1359
  defaultHeaders = {};
1317
1360
  /** Function to extract session data from the request context */
1318
1361
  getSession = () => ({});
1362
+ /**
1363
+ * Whether a session callback was given — `.session()` on the factory it was
1364
+ * built from. A generated handler reads the session only when it is, so
1365
+ * an endpoint with a session and no authorizer must say so: it used to be
1366
+ * handed `undefined` in a production build and its session in `gkm dev`.
1367
+ */
1368
+ hasSession = false;
1319
1369
  /** Function to determine if the request is authorized */
1320
1370
  authorize = () => true;
1321
1371
  /** Optional rate limiting configuration */
@@ -1351,7 +1401,7 @@ var Endpoint = class Endpoint extends require_functions.Function {
1351
1401
  * ```
1352
1402
  */
1353
1403
  static async buildOpenApiSchema(endpoints, options) {
1354
- return (0, __geekmidas_schema_openapi.buildOpenApiSchema)(endpoints, options);
1404
+ return (0, _geekmidas_schema_openapi.buildOpenApiSchema)(endpoints, options);
1355
1405
  }
1356
1406
  /**
1357
1407
  * Gets the full path including HTTP method and route.
@@ -1386,6 +1436,14 @@ var Endpoint = class Endpoint extends require_functions.Function {
1386
1436
  return status >= 200 && status < 300;
1387
1437
  }
1388
1438
  /**
1439
+ * Whether `status` sends the client elsewhere. A redirect has no body, so
1440
+ * its response is not checked against the output schema, and what is
1441
+ * derived from the output — declared events and audits — is not sent.
1442
+ */
1443
+ static isRedirectStatus(status) {
1444
+ return status !== void 0 && status >= 300 && status < 400;
1445
+ }
1446
+ /**
1389
1447
  * Creates a case-insensitive header lookup function from a headers object.
1390
1448
  *
1391
1449
  * @param headers - Object containing header key-value pairs
@@ -1481,12 +1539,11 @@ var Endpoint = class Endpoint extends require_functions.Function {
1481
1539
  * @internal
1482
1540
  */
1483
1541
  refineInput(ctx) {
1484
- const input = (0, import_lodash.default)(ctx, [
1542
+ return (0, import_lodash_pick.default)(ctx, [
1485
1543
  "body",
1486
1544
  "query",
1487
1545
  "params"
1488
1546
  ]);
1489
- return input;
1490
1547
  }
1491
1548
  handler = (ctx, response) => {
1492
1549
  for (const [key, value] of Object.entries(this.defaultHeaders)) response.header(key, value);
@@ -1509,7 +1566,7 @@ var Endpoint = class Endpoint extends require_functions.Function {
1509
1566
  * @returns True if the object is an Endpoint
1510
1567
  */
1511
1568
  static isEndpoint(obj) {
1512
- return Boolean(obj && obj.__IS_FUNCTION__ === true && obj.type === require_Construct.ConstructType.Endpoint);
1569
+ return Boolean(obj && obj.__IS_FUNCTION__ === true && obj.type === "dev.geekmidas.function.endpoint");
1513
1570
  }
1514
1571
  /**
1515
1572
  * Helper to check if response has metadata
@@ -1531,17 +1588,23 @@ var Endpoint = class Endpoint extends require_functions.Function {
1531
1588
  * @returns OpenAPI route definition with operation details
1532
1589
  */
1533
1590
  async toOpenApi3Route(componentCollector) {
1591
+ const status = String(this.status);
1534
1592
  const operation = {
1535
1593
  operationId: this.operationId,
1536
1594
  ...this.description && { description: this.description },
1537
1595
  ...this.tags && this.tags.length > 0 && { tags: this.tags },
1538
- responses: { "200": { description: "Successful response" } }
1596
+ responses: { [status]: { description: "Successful response" } }
1539
1597
  };
1598
+ const scheme = this.authorizer?.securityScheme;
1599
+ if (this.authorizer && scheme && componentCollector) {
1600
+ componentCollector.addSecurityScheme(this.authorizer.name, scheme);
1601
+ operation.security = [{ [this.authorizer.name]: [] }];
1602
+ }
1540
1603
  if (this.outputSchema) {
1541
- const responseSchema = await (0, __geekmidas_schema_conversion.convertSchemaWithComponents)(this.outputSchema, componentCollector);
1542
- if (responseSchema) (0, import_lodash$1.default)(operation, [
1604
+ const responseSchema = await (0, _geekmidas_schema_conversion.convertSchemaWithComponents)(this.outputSchema, componentCollector);
1605
+ if (responseSchema) (0, import_lodash_set.default)(operation, [
1543
1606
  "responses",
1544
- "200",
1607
+ status,
1545
1608
  "content",
1546
1609
  this.responseType,
1547
1610
  "schema"
@@ -1555,14 +1618,14 @@ var Endpoint = class Endpoint extends require_functions.Function {
1555
1618
  "PUT",
1556
1619
  "PATCH"
1557
1620
  ].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"], {
1621
+ const bodySchema = await (0, _geekmidas_schema_conversion.convertSchemaWithComponents)(this.input.body, componentCollector);
1622
+ if (bodySchema) (0, import_lodash_set.default)(operation, ["requestBody"], {
1560
1623
  required: true,
1561
1624
  content: { "application/json": { schema: bodySchema } }
1562
1625
  });
1563
1626
  }
1564
1627
  if ("params" in this.input && this.input.params) {
1565
- const paramsSchema = await (0, __geekmidas_schema_conversion.convertStandardSchemaToJsonSchema)(this.input.params);
1628
+ const paramsSchema = await (0, _geekmidas_schema_conversion.convertStandardSchemaToJsonSchema)(this.input.params);
1566
1629
  if (paramsSchema && paramsSchema.type === "object" && paramsSchema.properties) for (const [name, schema] of Object.entries(paramsSchema.properties)) pathParameters.push({
1567
1630
  name,
1568
1631
  in: "path",
@@ -1571,7 +1634,7 @@ var Endpoint = class Endpoint extends require_functions.Function {
1571
1634
  });
1572
1635
  }
1573
1636
  if ("query" in this.input && this.input.query) {
1574
- const querySchema = await (0, __geekmidas_schema_conversion.convertStandardSchemaToJsonSchema)(this.input.query);
1637
+ const querySchema = await (0, _geekmidas_schema_conversion.convertStandardSchemaToJsonSchema)(this.input.query);
1575
1638
  if (querySchema && querySchema.type === "object" && querySchema.properties) for (const [name, schema] of Object.entries(querySchema.properties)) queryParameters.push({
1576
1639
  name,
1577
1640
  in: "query",
@@ -1604,8 +1667,8 @@ var Endpoint = class Endpoint extends require_functions.Function {
1604
1667
  * @param options.status - Success HTTP status code (default: 200)
1605
1668
  * @param options.authorizer - Optional authorizer configuration
1606
1669
  */
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);
1670
+ 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 }) {
1671
+ super(fn, timeout, "dev.geekmidas.function.endpoint", input, outputSchema, services, logger, events, memorySize, auditorStorageService, void 0, constructs);
1609
1672
  this.route = route;
1610
1673
  this.method = method;
1611
1674
  this.description = description;
@@ -1613,7 +1676,14 @@ var Endpoint = class Endpoint extends require_functions.Function {
1613
1676
  this.status = status;
1614
1677
  this.responseType = responseType ?? "application/json";
1615
1678
  this.endpointFn = fn;
1616
- if (getSession) this.getSession = getSession;
1679
+ if (telemetry) this.telemetry = telemetry;
1680
+ if (getSession) {
1681
+ this.hasSession = true;
1682
+ this.getSession = (ctx) => getSession({
1683
+ ...ctx,
1684
+ auth: sessionAuth(surface, ctx.header)
1685
+ });
1686
+ }
1617
1687
  if (authorize) this.authorize = authorize;
1618
1688
  if (rateLimit) this.rateLimit = rateLimit;
1619
1689
  if (authorizer) this.authorizer = authorizer;
@@ -1659,6 +1729,27 @@ var ResponseBuilder = class {
1659
1729
  this.metadata.status = code;
1660
1730
  return this;
1661
1731
  }
1732
+ /**
1733
+ * Send the client to `url` — `Location` and a 3xx, with no body. 303 by
1734
+ * default: after a form post, the browser follows it with a GET, so a
1735
+ * reload does not post the form again.
1736
+ *
1737
+ * A redirect is not checked against the endpoint's `.output()` schema, so
1738
+ * an endpoint that renders a page can redirect instead.
1739
+ *
1740
+ * @example
1741
+ * ```typescript
1742
+ * return response.cookie('session', token).redirect('/dashboard');
1743
+ * ```
1744
+ */
1745
+ redirect(url, status = 303) {
1746
+ this.metadata.headers.location = url;
1747
+ this.metadata.status = status;
1748
+ return {
1749
+ data: void 0,
1750
+ metadata: this.metadata
1751
+ };
1752
+ }
1662
1753
  send(data) {
1663
1754
  return {
1664
1755
  data,
@@ -1672,39 +1763,74 @@ var ResponseBuilder = class {
1672
1763
  /**
1673
1764
  * HTTP success status codes that can be returned by endpoints.
1674
1765
  */
1675
- let SuccessStatus = /* @__PURE__ */ function(SuccessStatus$1) {
1766
+ let SuccessStatus = /* @__PURE__ */ function(SuccessStatus) {
1676
1767
  /** Standard response for successful HTTP requests */
1677
- SuccessStatus$1[SuccessStatus$1["OK"] = 200] = "OK";
1768
+ SuccessStatus[SuccessStatus["OK"] = 200] = "OK";
1678
1769
  /** Request has been fulfilled and resulted in a new resource being created */
1679
- SuccessStatus$1[SuccessStatus$1["Created"] = 201] = "Created";
1770
+ SuccessStatus[SuccessStatus["Created"] = 201] = "Created";
1680
1771
  /** Request has been accepted for processing, but processing is not complete */
1681
- SuccessStatus$1[SuccessStatus$1["Accepted"] = 202] = "Accepted";
1772
+ SuccessStatus[SuccessStatus["Accepted"] = 202] = "Accepted";
1682
1773
  /** Server successfully processed the request but is not returning any content */
1683
- SuccessStatus$1[SuccessStatus$1["NoContent"] = 204] = "NoContent";
1774
+ SuccessStatus[SuccessStatus["NoContent"] = 204] = "NoContent";
1684
1775
  /** 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";
1776
+ SuccessStatus[SuccessStatus["ResetContent"] = 205] = "ResetContent";
1686
1777
  /** 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;
1778
+ SuccessStatus[SuccessStatus["PartialContent"] = 206] = "PartialContent";
1779
+ return SuccessStatus;
1780
+ }({});
1781
+ /**
1782
+ * HTTP redirect status codes an endpoint can answer with —
1783
+ * `response.redirect(url, status)`, or `.status()` with a `Location` header.
1784
+ */
1785
+ let RedirectStatus = /* @__PURE__ */ function(RedirectStatus) {
1786
+ /** The resource has moved for good; a POST may become a GET */
1787
+ RedirectStatus[RedirectStatus["MovedPermanently"] = 301] = "MovedPermanently";
1788
+ /** The resource is elsewhere for now; a POST may become a GET */
1789
+ RedirectStatus[RedirectStatus["Found"] = 302] = "Found";
1790
+ /** See the resource elsewhere, with a GET — the answer to a form post */
1791
+ RedirectStatus[RedirectStatus["SeeOther"] = 303] = "SeeOther";
1792
+ /** The resource is elsewhere for now; the method and body are kept */
1793
+ RedirectStatus[RedirectStatus["TemporaryRedirect"] = 307] = "TemporaryRedirect";
1794
+ /** The resource has moved for good; the method and body are kept */
1795
+ RedirectStatus[RedirectStatus["PermanentRedirect"] = 308] = "PermanentRedirect";
1796
+ return RedirectStatus;
1689
1797
  }({});
1690
-
1691
1798
  //#endregion
1692
- Object.defineProperty(exports, 'Endpoint', {
1693
- enumerable: true,
1694
- get: function () {
1695
- return Endpoint;
1696
- }
1799
+ Object.defineProperty(exports, "Endpoint", {
1800
+ enumerable: true,
1801
+ get: function() {
1802
+ return Endpoint;
1803
+ }
1697
1804
  });
1698
- Object.defineProperty(exports, 'ResponseBuilder', {
1699
- enumerable: true,
1700
- get: function () {
1701
- return ResponseBuilder;
1702
- }
1805
+ Object.defineProperty(exports, "NoAuthenticator", {
1806
+ enumerable: true,
1807
+ get: function() {
1808
+ return NoAuthenticator;
1809
+ }
1703
1810
  });
1704
- Object.defineProperty(exports, 'require_lodash', {
1705
- enumerable: true,
1706
- get: function () {
1707
- return require_lodash;
1708
- }
1811
+ Object.defineProperty(exports, "RedirectStatus", {
1812
+ enumerable: true,
1813
+ get: function() {
1814
+ return RedirectStatus;
1815
+ }
1709
1816
  });
1710
- //# sourceMappingURL=Endpoint-DcWXE-SZ.cjs.map
1817
+ Object.defineProperty(exports, "ResponseBuilder", {
1818
+ enumerable: true,
1819
+ get: function() {
1820
+ return ResponseBuilder;
1821
+ }
1822
+ });
1823
+ Object.defineProperty(exports, "SuccessStatus", {
1824
+ enumerable: true,
1825
+ get: function() {
1826
+ return SuccessStatus;
1827
+ }
1828
+ });
1829
+ Object.defineProperty(exports, "require_lodash_set", {
1830
+ enumerable: true,
1831
+ get: function() {
1832
+ return require_lodash_set;
1833
+ }
1834
+ });
1835
+
1836
+ //# sourceMappingURL=Endpoint-yhR2T2Wt.cjs.map