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

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,10 +1,10 @@
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-CKUA-CTA.mjs";
2
+ import { t as identifyUser } from "./tracing-Bbj1uoFJ.mjs";
3
+ import { n as Function$1 } from "./functions-CTI-hDem.mjs";
3
4
  import { convertSchemaWithComponents, convertStandardSchemaToJsonSchema } from "@geekmidas/schema/conversion";
4
5
  import { buildOpenApiSchema } from "@geekmidas/schema/openapi";
5
-
6
6
  //#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) {
7
+ var require_lodash_pick = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8
8
  /**
9
9
  * lodash (Custom Build) <https://lodash.com/>
10
10
  * Build: `lodash modularize exports="npm" -o ./`
@@ -14,15 +14,18 @@ var require_lodash$1 = __commonJS({ "../../node_modules/.pnpm/lodash.pick@4.4.0/
14
14
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
15
15
  */
16
16
  /** Used as references for various `Number` constants. */
17
- var INFINITY$1 = Infinity, MAX_SAFE_INTEGER$1 = 9007199254740991;
17
+ var MAX_SAFE_INTEGER = 9007199254740991;
18
18
  /** `Object#toString` result references. */
19
- var argsTag = "[object Arguments]", funcTag$1 = "[object Function]", genTag$1 = "[object GeneratorFunction]", symbolTag$1 = "[object Symbol]";
19
+ var argsTag = "[object Arguments]";
20
+ var funcTag = "[object Function]";
21
+ var genTag = "[object GeneratorFunction]";
22
+ var symbolTag = "[object Symbol]";
20
23
  /** Detect free variable `global` from Node.js. */
21
- var freeGlobal$1 = typeof global == "object" && global && global.Object === Object && global;
24
+ var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
22
25
  /** Detect free variable `self`. */
23
- var freeSelf$1 = typeof self == "object" && self && self.Object === Object && self;
26
+ var freeSelf = typeof self == "object" && self && self.Object === Object && self;
24
27
  /** Used as a reference to the global object. */
25
- var root$1 = freeGlobal$1 || freeSelf$1 || Function("return this")();
28
+ var root = freeGlobal || freeSelf || Function("return this")();
26
29
  /**
27
30
  * A faster alternative to `Function#apply`, this function invokes `func`
28
31
  * with the `this` binding of `thisArg` and the arguments of `args`.
@@ -70,17 +73,19 @@ var require_lodash$1 = __commonJS({ "../../node_modules/.pnpm/lodash.pick@4.4.0/
70
73
  return array;
71
74
  }
72
75
  /** Used for built-in method references. */
73
- var objectProto$1 = Object.prototype;
76
+ var objectProto = Object.prototype;
74
77
  /** Used to check objects for own properties. */
75
- var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
78
+ var hasOwnProperty = objectProto.hasOwnProperty;
76
79
  /**
77
80
  * Used to resolve the
78
81
  * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
79
82
  * of values.
80
83
  */
81
- var objectToString$1 = objectProto$1.toString;
84
+ var objectToString = objectProto.toString;
82
85
  /** Built-in value references. */
83
- var Symbol$1 = root$1.Symbol, propertyIsEnumerable = objectProto$1.propertyIsEnumerable, spreadableSymbol = Symbol$1 ? Symbol$1.isConcatSpreadable : void 0;
86
+ var Symbol = root.Symbol;
87
+ var propertyIsEnumerable = objectProto.propertyIsEnumerable;
88
+ var spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : void 0;
84
89
  var nativeMax = Math.max;
85
90
  /**
86
91
  * The base implementation of `_.flatten` with support for restricting flattening.
@@ -99,9 +104,10 @@ var require_lodash$1 = __commonJS({ "../../node_modules/.pnpm/lodash.pick@4.4.0/
99
104
  result || (result = []);
100
105
  while (++index < length) {
101
106
  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;
107
+ if (depth > 0 && predicate(value)) {
108
+ if (depth > 1) baseFlatten(value, depth - 1, predicate, isStrict, result);
109
+ else arrayPush(result, value);
110
+ } else if (!isStrict) result[result.length] = value;
105
111
  }
106
112
  return result;
107
113
  }
@@ -165,7 +171,7 @@ var require_lodash$1 = __commonJS({ "../../node_modules/.pnpm/lodash.pick@4.4.0/
165
171
  * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
166
172
  */
167
173
  function isFlattenable(value) {
168
- return isArray$1(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
174
+ return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
169
175
  }
170
176
  /**
171
177
  * Converts `value` to a string key if it's not a string or symbol.
@@ -174,10 +180,10 @@ var require_lodash$1 = __commonJS({ "../../node_modules/.pnpm/lodash.pick@4.4.0/
174
180
  * @param {*} value The value to inspect.
175
181
  * @returns {string|symbol} Returns the key.
176
182
  */
177
- function toKey$1(value) {
178
- if (typeof value == "string" || isSymbol$1(value)) return value;
183
+ function toKey(value) {
184
+ if (typeof value == "string" || isSymbol(value)) return value;
179
185
  var result = value + "";
180
- return result == "0" && 1 / value == -INFINITY$1 ? "-0" : result;
186
+ return result == "0" && 1 / value == -Infinity ? "-0" : result;
181
187
  }
182
188
  /**
183
189
  * Checks if `value` is likely an `arguments` object.
@@ -198,7 +204,7 @@ var require_lodash$1 = __commonJS({ "../../node_modules/.pnpm/lodash.pick@4.4.0/
198
204
  * // => false
199
205
  */
200
206
  function isArguments(value) {
201
- return isArrayLikeObject(value) && hasOwnProperty$1.call(value, "callee") && (!propertyIsEnumerable.call(value, "callee") || objectToString$1.call(value) == argsTag);
207
+ return isArrayLikeObject(value) && hasOwnProperty.call(value, "callee") && (!propertyIsEnumerable.call(value, "callee") || objectToString.call(value) == argsTag);
202
208
  }
203
209
  /**
204
210
  * Checks if `value` is classified as an `Array` object.
@@ -223,7 +229,7 @@ var require_lodash$1 = __commonJS({ "../../node_modules/.pnpm/lodash.pick@4.4.0/
223
229
  * _.isArray(_.noop);
224
230
  * // => false
225
231
  */
226
- var isArray$1 = Array.isArray;
232
+ var isArray = Array.isArray;
227
233
  /**
228
234
  * Checks if `value` is array-like. A value is considered array-like if it's
229
235
  * not a function and has a `value.length` that's an integer greater than or
@@ -250,7 +256,7 @@ var require_lodash$1 = __commonJS({ "../../node_modules/.pnpm/lodash.pick@4.4.0/
250
256
  * // => false
251
257
  */
252
258
  function isArrayLike(value) {
253
- return value != null && isLength(value.length) && !isFunction$1(value);
259
+ return value != null && isLength(value.length) && !isFunction(value);
254
260
  }
255
261
  /**
256
262
  * This method is like `_.isArrayLike` except that it also checks if `value`
@@ -278,7 +284,7 @@ var require_lodash$1 = __commonJS({ "../../node_modules/.pnpm/lodash.pick@4.4.0/
278
284
  * // => false
279
285
  */
280
286
  function isArrayLikeObject(value) {
281
- return isObjectLike$1(value) && isArrayLike(value);
287
+ return isObjectLike(value) && isArrayLike(value);
282
288
  }
283
289
  /**
284
290
  * Checks if `value` is classified as a `Function` object.
@@ -297,9 +303,9 @@ var require_lodash$1 = __commonJS({ "../../node_modules/.pnpm/lodash.pick@4.4.0/
297
303
  * _.isFunction(/abc/);
298
304
  * // => false
299
305
  */
300
- function isFunction$1(value) {
301
- var tag = isObject$1(value) ? objectToString$1.call(value) : "";
302
- return tag == funcTag$1 || tag == genTag$1;
306
+ function isFunction(value) {
307
+ var tag = isObject(value) ? objectToString.call(value) : "";
308
+ return tag == funcTag || tag == genTag;
303
309
  }
304
310
  /**
305
311
  * Checks if `value` is a valid array-like length.
@@ -328,7 +334,7 @@ var require_lodash$1 = __commonJS({ "../../node_modules/.pnpm/lodash.pick@4.4.0/
328
334
  * // => false
329
335
  */
330
336
  function isLength(value) {
331
- return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER$1;
337
+ return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
332
338
  }
333
339
  /**
334
340
  * Checks if `value` is the
@@ -355,7 +361,7 @@ var require_lodash$1 = __commonJS({ "../../node_modules/.pnpm/lodash.pick@4.4.0/
355
361
  * _.isObject(null);
356
362
  * // => false
357
363
  */
358
- function isObject$1(value) {
364
+ function isObject(value) {
359
365
  var type = typeof value;
360
366
  return !!value && (type == "object" || type == "function");
361
367
  }
@@ -383,7 +389,7 @@ var require_lodash$1 = __commonJS({ "../../node_modules/.pnpm/lodash.pick@4.4.0/
383
389
  * _.isObjectLike(null);
384
390
  * // => false
385
391
  */
386
- function isObjectLike$1(value) {
392
+ function isObjectLike(value) {
387
393
  return !!value && typeof value == "object";
388
394
  }
389
395
  /**
@@ -403,35 +409,16 @@ var require_lodash$1 = __commonJS({ "../../node_modules/.pnpm/lodash.pick@4.4.0/
403
409
  * _.isSymbol('abc');
404
410
  * // => false
405
411
  */
406
- function isSymbol$1(value) {
407
- return typeof value == "symbol" || isObjectLike$1(value) && objectToString$1.call(value) == symbolTag$1;
412
+ function isSymbol(value) {
413
+ return typeof value == "symbol" || isObjectLike(value) && objectToString.call(value) == symbolTag;
408
414
  }
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));
415
+ module.exports = baseRest(function(object, props) {
416
+ return object == null ? {} : basePick(object, arrayMap(baseFlatten(props, 1), toKey));
428
417
  });
429
- module.exports = pick$1;
430
- } });
431
-
418
+ }));
432
419
  //#endregion
433
420
  //#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) {
421
+ var require_lodash_set = /* @__PURE__ */ __commonJSMin(((exports, module) => {
435
422
  /**
436
423
  * lodash (Custom Build) <https://lodash.com/>
437
424
  * Build: `lodash modularize exports="npm" -o ./`
@@ -444,12 +431,16 @@ var require_lodash = __commonJS({ "../../node_modules/.pnpm/lodash.set@4.3.2/nod
444
431
  var FUNC_ERROR_TEXT = "Expected a function";
445
432
  /** Used to stand-in for `undefined` hash values. */
446
433
  var HASH_UNDEFINED = "__lodash_hash_undefined__";
447
- /** Used as references for various `Number` constants. */
448
- var INFINITY = Infinity, MAX_SAFE_INTEGER = 9007199254740991;
434
+ var MAX_SAFE_INTEGER = 9007199254740991;
449
435
  /** `Object#toString` result references. */
450
- var funcTag = "[object Function]", genTag = "[object GeneratorFunction]", symbolTag = "[object Symbol]";
436
+ var funcTag = "[object Function]";
437
+ var genTag = "[object GeneratorFunction]";
438
+ var symbolTag = "[object Symbol]";
451
439
  /** Used to match property names within property paths. */
452
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/, reLeadingDot = /^\./, rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
440
+ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;
441
+ var reIsPlainProp = /^\w*$/;
442
+ var reLeadingDot = /^\./;
443
+ var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
453
444
  /**
454
445
  * Used to match `RegExp`
455
446
  * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
@@ -493,7 +484,9 @@ var require_lodash = __commonJS({ "../../node_modules/.pnpm/lodash.set@4.3.2/nod
493
484
  return result;
494
485
  }
495
486
  /** Used for built-in method references. */
496
- var arrayProto = Array.prototype, funcProto = Function.prototype, objectProto = Object.prototype;
487
+ var arrayProto = Array.prototype;
488
+ var funcProto = Function.prototype;
489
+ var objectProto = Object.prototype;
497
490
  /** Used to detect overreaching core-js shims. */
498
491
  var coreJsData = root["__core-js_shared__"];
499
492
  /** Used to detect methods masquerading as native. */
@@ -514,10 +507,13 @@ var require_lodash = __commonJS({ "../../node_modules/.pnpm/lodash.set@4.3.2/nod
514
507
  /** Used to detect if a method is native. */
515
508
  var reIsNative = RegExp("^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
516
509
  /** Built-in value references. */
517
- var Symbol = root.Symbol, splice = arrayProto.splice;
518
- var Map$1 = getNative(root, "Map"), nativeCreate = getNative(Object, "create");
510
+ var Symbol = root.Symbol;
511
+ var splice = arrayProto.splice;
512
+ var Map = getNative(root, "Map");
513
+ var nativeCreate = getNative(Object, "create");
519
514
  /** Used to convert symbols to primitives and strings. */
520
- var symbolProto = Symbol ? Symbol.prototype : void 0, symbolToString = symbolProto ? symbolProto.toString : void 0;
515
+ var symbolProto = Symbol ? Symbol.prototype : void 0;
516
+ var symbolToString = symbolProto ? symbolProto.toString : void 0;
521
517
  /**
522
518
  * Creates a hash object.
523
519
  *
@@ -643,8 +639,7 @@ var require_lodash = __commonJS({ "../../node_modules/.pnpm/lodash.set@4.3.2/nod
643
639
  function listCacheDelete(key) {
644
640
  var data = this.__data__, index = assocIndexOf(data, key);
645
641
  if (index < 0) return false;
646
- var lastIndex = data.length - 1;
647
- if (index == lastIndex) data.pop();
642
+ if (index == data.length - 1) data.pop();
648
643
  else splice.call(data, index, 1);
649
644
  return true;
650
645
  }
@@ -719,7 +714,7 @@ var require_lodash = __commonJS({ "../../node_modules/.pnpm/lodash.set@4.3.2/nod
719
714
  function mapCacheClear() {
720
715
  this.__data__ = {
721
716
  "hash": new Hash(),
722
- "map": new (Map$1 || ListCache)(),
717
+ "map": new (Map || ListCache)(),
723
718
  "string": new Hash()
724
719
  };
725
720
  }
@@ -815,8 +810,7 @@ var require_lodash = __commonJS({ "../../node_modules/.pnpm/lodash.set@4.3.2/nod
815
810
  */
816
811
  function baseIsNative(value) {
817
812
  if (!isObject(value) || isMasked(value)) return false;
818
- var pattern = isFunction(value) || isHostObject(value) ? reIsNative : reIsHostCtor;
819
- return pattern.test(toSource(value));
813
+ return (isFunction(value) || isHostObject(value) ? reIsNative : reIsHostCtor).test(toSource(value));
820
814
  }
821
815
  /**
822
816
  * The base implementation of `_.set`.
@@ -856,7 +850,7 @@ var require_lodash = __commonJS({ "../../node_modules/.pnpm/lodash.set@4.3.2/nod
856
850
  if (typeof value == "string") return value;
857
851
  if (isSymbol(value)) return symbolToString ? symbolToString.call(value) : "";
858
852
  var result = value + "";
859
- return result == "0" && 1 / value == -INFINITY ? "-0" : result;
853
+ return result == "0" && 1 / value == -Infinity ? "-0" : result;
860
854
  }
861
855
  /**
862
856
  * Casts `value` to a path array if it's not one.
@@ -950,8 +944,8 @@ var require_lodash = __commonJS({ "../../node_modules/.pnpm/lodash.set@4.3.2/nod
950
944
  string = toString(string);
951
945
  var result = [];
952
946
  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);
947
+ string.replace(rePropName, function(match, number, quote, string) {
948
+ result.push(quote ? string.replace(reEscapeChar, "$1") : number || match);
955
949
  });
956
950
  return result;
957
951
  });
@@ -965,7 +959,7 @@ var require_lodash = __commonJS({ "../../node_modules/.pnpm/lodash.set@4.3.2/nod
965
959
  function toKey(value) {
966
960
  if (typeof value == "string" || isSymbol(value)) return value;
967
961
  var result = value + "";
968
- return result == "0" && 1 / value == -INFINITY ? "-0" : result;
962
+ return result == "0" && 1 / value == -Infinity ? "-0" : result;
969
963
  }
970
964
  /**
971
965
  * Converts `func` to its source code.
@@ -1250,16 +1244,60 @@ var require_lodash = __commonJS({ "../../node_modules/.pnpm/lodash.set@4.3.2/nod
1250
1244
  * console.log(object.x[0].y.z);
1251
1245
  * // => 5
1252
1246
  */
1253
- function set$1(object, path, value) {
1247
+ function set(object, path, value) {
1254
1248
  return object == null ? object : baseSet(object, path, value);
1255
1249
  }
1256
- module.exports = set$1;
1257
- } });
1258
-
1250
+ module.exports = set;
1251
+ }));
1252
+ //#endregion
1253
+ //#region src/endpoints/sessionAuth.ts
1254
+ var import_lodash_pick = /* @__PURE__ */ __toESM(require_lodash_pick(), 1);
1255
+ var import_lodash_set = /* @__PURE__ */ __toESM(require_lodash_set(), 1);
1256
+ /**
1257
+ * What is forwarded to the auth server: the headers a session travels in, and
1258
+ * whose request it is — nothing else.
1259
+ *
1260
+ * The client's address goes with the session because the auth server
1261
+ * rate-limits by it, `/get-session` included. Without it every user's session
1262
+ * check arrived from the surface itself — one shared bucket, so enough
1263
+ * traffic from anyone turned every session check into a 429 — and in tests,
1264
+ * concurrent tests queued on the same rate-limit row.
1265
+ */
1266
+ const SESSION_HEADERS = [
1267
+ "cookie",
1268
+ "authorization",
1269
+ "x-forwarded-for"
1270
+ ];
1271
+ /** `auth` for one request on one surface. */
1272
+ function sessionAuth(surface, header) {
1273
+ return { async getSession() {
1274
+ const authenticator = surface?.auth;
1275
+ if (!surface || !authenticator) throw new NoAuthenticator(surface?.id);
1276
+ const headers = new Headers();
1277
+ for (const name of SESSION_HEADERS) {
1278
+ const value = header(name);
1279
+ if (value) headers.set(name, value);
1280
+ }
1281
+ const session = await authenticator.verify(headers, surface.envParser);
1282
+ const identity = session;
1283
+ if (typeof identity?.user?.id === "string") identifyUser({
1284
+ id: identity.user.id,
1285
+ ...typeof identity.session?.id === "string" ? { sessionId: identity.session.id } : {}
1286
+ });
1287
+ return session;
1288
+ } };
1289
+ }
1290
+ /** `auth.getSession()` was called on a surface that names no authenticator. */
1291
+ var NoAuthenticator = class extends Error {
1292
+ surface;
1293
+ constructor(surface) {
1294
+ super(`auth.getSession() needs an authenticator, and ${surface ? `the surface '${surface}'` : "this endpoint"} declares none: declare one on the surface with .auth(construct).`);
1295
+ this.surface = surface;
1296
+ this.name = "NoAuthenticator";
1297
+ }
1298
+ };
1259
1299
  //#endregion
1260
1300
  //#region src/endpoints/Endpoint.ts
1261
- var import_lodash = __toESM(require_lodash$1(), 1);
1262
- var import_lodash$1 = __toESM(require_lodash(), 1);
1263
1301
  /**
1264
1302
  * Represents an HTTP endpoint that can handle requests with type-safe input/output validation,
1265
1303
  * dependency injection, session management, and authorization.
@@ -1303,7 +1341,7 @@ var Endpoint = class Endpoint extends Function$1 {
1303
1341
  description;
1304
1342
  /** Optional tags for OpenAPI documentation */
1305
1343
  tags;
1306
- /** The HTTP success status code to return (default: 200) */
1344
+ /** The HTTP status code to return (default: 200) */
1307
1345
  status;
1308
1346
  /**
1309
1347
  * Response content type for this endpoint. Defaults to `'application/json'`.
@@ -1311,10 +1349,22 @@ var Endpoint = class Endpoint extends Function$1 {
1311
1349
  * Content-Type header instead of JSON-serializing.
1312
1350
  */
1313
1351
  responseType;
1352
+ /**
1353
+ * This route's telemetry — `.telemetry({ ignore, attributes })` — read by
1354
+ * the build, which hands it to the request middleware.
1355
+ */
1356
+ telemetry;
1314
1357
  /** Default headers to apply to all responses */
1315
1358
  defaultHeaders = {};
1316
1359
  /** Function to extract session data from the request context */
1317
1360
  getSession = () => ({});
1361
+ /**
1362
+ * Whether a session callback was given — `.session()` on the factory it was
1363
+ * built from. A generated handler reads the session only when it is, so
1364
+ * an endpoint with a session and no authorizer must say so: it used to be
1365
+ * handed `undefined` in a production build and its session in `gkm dev`.
1366
+ */
1367
+ hasSession = false;
1318
1368
  /** Function to determine if the request is authorized */
1319
1369
  authorize = () => true;
1320
1370
  /** Optional rate limiting configuration */
@@ -1385,6 +1435,14 @@ var Endpoint = class Endpoint extends Function$1 {
1385
1435
  return status >= 200 && status < 300;
1386
1436
  }
1387
1437
  /**
1438
+ * Whether `status` sends the client elsewhere. A redirect has no body, so
1439
+ * its response is not checked against the output schema, and what is
1440
+ * derived from the output — declared events and audits — is not sent.
1441
+ */
1442
+ static isRedirectStatus(status) {
1443
+ return status !== void 0 && status >= 300 && status < 400;
1444
+ }
1445
+ /**
1388
1446
  * Creates a case-insensitive header lookup function from a headers object.
1389
1447
  *
1390
1448
  * @param headers - Object containing header key-value pairs
@@ -1480,12 +1538,11 @@ var Endpoint = class Endpoint extends Function$1 {
1480
1538
  * @internal
1481
1539
  */
1482
1540
  refineInput(ctx) {
1483
- const input = (0, import_lodash.default)(ctx, [
1541
+ return (0, import_lodash_pick.default)(ctx, [
1484
1542
  "body",
1485
1543
  "query",
1486
1544
  "params"
1487
1545
  ]);
1488
- return input;
1489
1546
  }
1490
1547
  handler = (ctx, response) => {
1491
1548
  for (const [key, value] of Object.entries(this.defaultHeaders)) response.header(key, value);
@@ -1508,7 +1565,7 @@ var Endpoint = class Endpoint extends Function$1 {
1508
1565
  * @returns True if the object is an Endpoint
1509
1566
  */
1510
1567
  static isEndpoint(obj) {
1511
- return Boolean(obj && obj.__IS_FUNCTION__ === true && obj.type === ConstructType.Endpoint);
1568
+ return Boolean(obj && obj.__IS_FUNCTION__ === true && obj.type === "dev.geekmidas.function.endpoint");
1512
1569
  }
1513
1570
  /**
1514
1571
  * Helper to check if response has metadata
@@ -1530,17 +1587,23 @@ var Endpoint = class Endpoint extends Function$1 {
1530
1587
  * @returns OpenAPI route definition with operation details
1531
1588
  */
1532
1589
  async toOpenApi3Route(componentCollector) {
1590
+ const status = String(this.status);
1533
1591
  const operation = {
1534
1592
  operationId: this.operationId,
1535
1593
  ...this.description && { description: this.description },
1536
1594
  ...this.tags && this.tags.length > 0 && { tags: this.tags },
1537
- responses: { "200": { description: "Successful response" } }
1595
+ responses: { [status]: { description: "Successful response" } }
1538
1596
  };
1597
+ const scheme = this.authorizer?.securityScheme;
1598
+ if (this.authorizer && scheme && componentCollector) {
1599
+ componentCollector.addSecurityScheme(this.authorizer.name, scheme);
1600
+ operation.security = [{ [this.authorizer.name]: [] }];
1601
+ }
1539
1602
  if (this.outputSchema) {
1540
1603
  const responseSchema = await convertSchemaWithComponents(this.outputSchema, componentCollector);
1541
- if (responseSchema) (0, import_lodash$1.default)(operation, [
1604
+ if (responseSchema) (0, import_lodash_set.default)(operation, [
1542
1605
  "responses",
1543
- "200",
1606
+ status,
1544
1607
  "content",
1545
1608
  this.responseType,
1546
1609
  "schema"
@@ -1555,7 +1618,7 @@ var Endpoint = class Endpoint extends Function$1 {
1555
1618
  "PATCH"
1556
1619
  ].includes(this.method) && "body" in this.input && this.input.body) {
1557
1620
  const bodySchema = await convertSchemaWithComponents(this.input.body, componentCollector);
1558
- if (bodySchema) (0, import_lodash$1.default)(operation, ["requestBody"], {
1621
+ if (bodySchema) (0, import_lodash_set.default)(operation, ["requestBody"], {
1559
1622
  required: true,
1560
1623
  content: { "application/json": { schema: bodySchema } }
1561
1624
  });
@@ -1603,8 +1666,8 @@ var Endpoint = class Endpoint extends Function$1 {
1603
1666
  * @param options.status - Success HTTP status code (default: 200)
1604
1667
  * @param options.authorizer - Optional authorizer configuration
1605
1668
  */
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);
1669
+ 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 }) {
1670
+ super(fn, timeout, "dev.geekmidas.function.endpoint", input, outputSchema, services, logger, events, memorySize, auditorStorageService, void 0, constructs);
1608
1671
  this.route = route;
1609
1672
  this.method = method;
1610
1673
  this.description = description;
@@ -1612,7 +1675,14 @@ var Endpoint = class Endpoint extends Function$1 {
1612
1675
  this.status = status;
1613
1676
  this.responseType = responseType ?? "application/json";
1614
1677
  this.endpointFn = fn;
1615
- if (getSession) this.getSession = getSession;
1678
+ if (telemetry) this.telemetry = telemetry;
1679
+ if (getSession) {
1680
+ this.hasSession = true;
1681
+ this.getSession = (ctx) => getSession({
1682
+ ...ctx,
1683
+ auth: sessionAuth(surface, ctx.header)
1684
+ });
1685
+ }
1616
1686
  if (authorize) this.authorize = authorize;
1617
1687
  if (rateLimit) this.rateLimit = rateLimit;
1618
1688
  if (authorizer) this.authorizer = authorizer;
@@ -1658,6 +1728,27 @@ var ResponseBuilder = class {
1658
1728
  this.metadata.status = code;
1659
1729
  return this;
1660
1730
  }
1731
+ /**
1732
+ * Send the client to `url` — `Location` and a 3xx, with no body. 303 by
1733
+ * default: after a form post, the browser follows it with a GET, so a
1734
+ * reload does not post the form again.
1735
+ *
1736
+ * A redirect is not checked against the endpoint's `.output()` schema, so
1737
+ * an endpoint that renders a page can redirect instead.
1738
+ *
1739
+ * @example
1740
+ * ```typescript
1741
+ * return response.cookie('session', token).redirect('/dashboard');
1742
+ * ```
1743
+ */
1744
+ redirect(url, status = 303) {
1745
+ this.metadata.headers.location = url;
1746
+ this.metadata.status = status;
1747
+ return {
1748
+ data: void 0,
1749
+ metadata: this.metadata
1750
+ };
1751
+ }
1661
1752
  send(data) {
1662
1753
  return {
1663
1754
  data,
@@ -1671,22 +1762,39 @@ var ResponseBuilder = class {
1671
1762
  /**
1672
1763
  * HTTP success status codes that can be returned by endpoints.
1673
1764
  */
1674
- let SuccessStatus = /* @__PURE__ */ function(SuccessStatus$1) {
1765
+ let SuccessStatus = /* @__PURE__ */ function(SuccessStatus) {
1675
1766
  /** Standard response for successful HTTP requests */
1676
- SuccessStatus$1[SuccessStatus$1["OK"] = 200] = "OK";
1767
+ SuccessStatus[SuccessStatus["OK"] = 200] = "OK";
1677
1768
  /** Request has been fulfilled and resulted in a new resource being created */
1678
- SuccessStatus$1[SuccessStatus$1["Created"] = 201] = "Created";
1769
+ SuccessStatus[SuccessStatus["Created"] = 201] = "Created";
1679
1770
  /** Request has been accepted for processing, but processing is not complete */
1680
- SuccessStatus$1[SuccessStatus$1["Accepted"] = 202] = "Accepted";
1771
+ SuccessStatus[SuccessStatus["Accepted"] = 202] = "Accepted";
1681
1772
  /** Server successfully processed the request but is not returning any content */
1682
- SuccessStatus$1[SuccessStatus$1["NoContent"] = 204] = "NoContent";
1773
+ SuccessStatus[SuccessStatus["NoContent"] = 204] = "NoContent";
1683
1774
  /** 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";
1775
+ SuccessStatus[SuccessStatus["ResetContent"] = 205] = "ResetContent";
1685
1776
  /** 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;
1777
+ SuccessStatus[SuccessStatus["PartialContent"] = 206] = "PartialContent";
1778
+ return SuccessStatus;
1779
+ }({});
1780
+ /**
1781
+ * HTTP redirect status codes an endpoint can answer with —
1782
+ * `response.redirect(url, status)`, or `.status()` with a `Location` header.
1783
+ */
1784
+ let RedirectStatus = /* @__PURE__ */ function(RedirectStatus) {
1785
+ /** The resource has moved for good; a POST may become a GET */
1786
+ RedirectStatus[RedirectStatus["MovedPermanently"] = 301] = "MovedPermanently";
1787
+ /** The resource is elsewhere for now; a POST may become a GET */
1788
+ RedirectStatus[RedirectStatus["Found"] = 302] = "Found";
1789
+ /** See the resource elsewhere, with a GET — the answer to a form post */
1790
+ RedirectStatus[RedirectStatus["SeeOther"] = 303] = "SeeOther";
1791
+ /** The resource is elsewhere for now; the method and body are kept */
1792
+ RedirectStatus[RedirectStatus["TemporaryRedirect"] = 307] = "TemporaryRedirect";
1793
+ /** The resource has moved for good; the method and body are kept */
1794
+ RedirectStatus[RedirectStatus["PermanentRedirect"] = 308] = "PermanentRedirect";
1795
+ return RedirectStatus;
1688
1796
  }({});
1689
-
1690
1797
  //#endregion
1691
- export { Endpoint, ResponseBuilder, require_lodash };
1692
- //# sourceMappingURL=Endpoint-DCQPMdUX.mjs.map
1798
+ export { NoAuthenticator as a, SuccessStatus as i, RedirectStatus as n, require_lodash_set as o, ResponseBuilder as r, Endpoint as t };
1799
+
1800
+ //# sourceMappingURL=Endpoint-gPXhHKhJ.mjs.map