@geekmidas/constructs 10.0.0-alpha.13 → 10.0.0-alpha.131

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 (444) hide show
  1. package/README.md +222 -158
  2. package/dist/Construct-127M7yrl.d.cts +231 -0
  3. package/dist/Construct-127M7yrl.d.cts.map +1 -0
  4. package/dist/{Construct-BeYVu_QF.mjs → Construct-CGuc_Ijk.mjs} +8 -9
  5. package/dist/Construct-CGuc_Ijk.mjs.map +1 -0
  6. package/dist/{Construct-DqdlARxq.cjs → Construct-DorKS0Ua.cjs} +8 -9
  7. package/dist/Construct-DorKS0Ua.cjs.map +1 -0
  8. package/dist/Construct-DySlwh8o.d.mts +231 -0
  9. package/dist/Construct-DySlwh8o.d.mts.map +1 -0
  10. package/dist/{Cron-DKqnnTdH.d.cts → Cron-CFkpEys6.d.cts} +14 -7
  11. package/dist/Cron-CFkpEys6.d.cts.map +1 -0
  12. package/dist/{Cron-SyqS5oWJ.d.mts → Cron-CQoDSu-n.d.mts} +14 -7
  13. package/dist/Cron-CQoDSu-n.d.mts.map +1 -0
  14. package/dist/CronBuilder-1W-G_i15.d.mts +47 -0
  15. package/dist/CronBuilder-1W-G_i15.d.mts.map +1 -0
  16. package/dist/{CronBuilder-D_0HNBTr.mjs → CronBuilder-BJ5LoadF.mjs} +28 -11
  17. package/dist/CronBuilder-BJ5LoadF.mjs.map +1 -0
  18. package/dist/{CronBuilder-BdnI6lxF.cjs → CronBuilder-B_NSP-Y5.cjs} +27 -10
  19. package/dist/CronBuilder-B_NSP-Y5.cjs.map +1 -0
  20. package/dist/CronBuilder-OaCRRFVk.d.cts +47 -0
  21. package/dist/CronBuilder-OaCRRFVk.d.cts.map +1 -0
  22. package/dist/{Endpoint-C6yyHpRS.d.cts → Endpoint-BEh-jW-f.d.cts} +122 -41
  23. package/dist/Endpoint-BEh-jW-f.d.cts.map +1 -0
  24. package/dist/Endpoint-BcUorcBa.cjs +576 -0
  25. package/dist/Endpoint-BcUorcBa.cjs.map +1 -0
  26. package/dist/Endpoint-BgvG36NO.mjs +547 -0
  27. package/dist/Endpoint-BgvG36NO.mjs.map +1 -0
  28. package/dist/{Endpoint-DuT4TEEq.d.mts → Endpoint-DTXDggNl.d.mts} +124 -43
  29. package/dist/Endpoint-DTXDggNl.d.mts.map +1 -0
  30. package/dist/{index-BPSZ_Lp_.d.cts → EndpointFactory-B2dCS9dy.d.cts} +187 -104
  31. package/dist/EndpointFactory-B2dCS9dy.d.cts.map +1 -0
  32. package/dist/{EndpointFactory-ptPR1cXw.mjs → EndpointFactory-C1NlpCAS.mjs} +270 -54
  33. package/dist/EndpointFactory-C1NlpCAS.mjs.map +1 -0
  34. package/dist/{index-BoZ-iisU.d.mts → EndpointFactory-D2HXcUrJ.d.mts} +188 -105
  35. package/dist/EndpointFactory-D2HXcUrJ.d.mts.map +1 -0
  36. package/dist/{EndpointFactory-M8OQKZRY.cjs → EndpointFactory-gqmIRVWg.cjs} +310 -52
  37. package/dist/EndpointFactory-gqmIRVWg.cjs.map +1 -0
  38. package/dist/Function-BIEsY0Hm.d.cts +76 -0
  39. package/dist/Function-BIEsY0Hm.d.cts.map +1 -0
  40. package/dist/Function-DfMzTGS4.d.mts +76 -0
  41. package/dist/Function-DfMzTGS4.d.mts.map +1 -0
  42. package/dist/{HonoEndpointAdaptor-7QagYKdP.cjs → HonoEndpointAdaptor-BJlj20fQ.cjs} +79 -31
  43. package/dist/HonoEndpointAdaptor-BJlj20fQ.cjs.map +1 -0
  44. package/dist/{HonoEndpointAdaptor-CYHA0WAt.mjs → HonoEndpointAdaptor-BlbkUDNo.mjs} +76 -28
  45. package/dist/HonoEndpointAdaptor-BlbkUDNo.mjs.map +1 -0
  46. package/dist/ObjectSubscriberBuilder-HmBwFn2o.d.mts +129 -0
  47. package/dist/ObjectSubscriberBuilder-HmBwFn2o.d.mts.map +1 -0
  48. package/dist/ObjectSubscriberBuilder-l-64yUiF.d.cts +129 -0
  49. package/dist/ObjectSubscriberBuilder-l-64yUiF.d.cts.map +1 -0
  50. package/dist/ProcessorBuilder-B2_stA8f.d.mts +216 -0
  51. package/dist/ProcessorBuilder-B2_stA8f.d.mts.map +1 -0
  52. package/dist/ProcessorBuilder-C62bIOwj.d.cts +216 -0
  53. package/dist/ProcessorBuilder-C62bIOwj.d.cts.map +1 -0
  54. package/dist/{Queue-D9X6OoON.d.mts → Queue-BnK3UH8r.d.mts} +42 -41
  55. package/dist/Queue-BnK3UH8r.d.mts.map +1 -0
  56. package/dist/{Queue-DYPB2KWL.d.cts → Queue-C4rijiM7.d.cts} +43 -42
  57. package/dist/Queue-C4rijiM7.d.cts.map +1 -0
  58. package/dist/Queue-D4Iaidrs.cjs +109 -0
  59. package/dist/Queue-D4Iaidrs.cjs.map +1 -0
  60. package/dist/Queue-u8w8_HpE.mjs +104 -0
  61. package/dist/Queue-u8w8_HpE.mjs.map +1 -0
  62. package/dist/QueueBuilder-2wP5lEC8.mjs +118 -0
  63. package/dist/QueueBuilder-2wP5lEC8.mjs.map +1 -0
  64. package/dist/QueueBuilder-B3vL1ED2.d.mts +75 -0
  65. package/dist/QueueBuilder-B3vL1ED2.d.mts.map +1 -0
  66. package/dist/QueueBuilder-BcPBQSSX.d.cts +75 -0
  67. package/dist/QueueBuilder-BcPBQSSX.d.cts.map +1 -0
  68. package/dist/QueueBuilder-BxsZ9o5z.cjs +135 -0
  69. package/dist/QueueBuilder-BxsZ9o5z.cjs.map +1 -0
  70. package/dist/Subscriber-BdCtfFXL.d.cts +73 -0
  71. package/dist/Subscriber-BdCtfFXL.d.cts.map +1 -0
  72. package/dist/Subscriber-DDo4HFNn.d.mts +73 -0
  73. package/dist/Subscriber-DDo4HFNn.d.mts.map +1 -0
  74. package/dist/SubscriberBuilder-3msj1U2w.mjs +230 -0
  75. package/dist/SubscriberBuilder-3msj1U2w.mjs.map +1 -0
  76. package/dist/SubscriberBuilder-CQst6Iz3.cjs +253 -0
  77. package/dist/SubscriberBuilder-CQst6Iz3.cjs.map +1 -0
  78. package/dist/Topic-DN2gYJ-p.mjs +99 -0
  79. package/dist/Topic-DN2gYJ-p.mjs.map +1 -0
  80. package/dist/Topic-Dp9Q7Lj2.cjs +104 -0
  81. package/dist/Topic-Dp9Q7Lj2.cjs.map +1 -0
  82. package/dist/adaptors/aws.cjs +134 -160
  83. package/dist/adaptors/aws.cjs.map +1 -1
  84. package/dist/adaptors/aws.d.cts +57 -48
  85. package/dist/adaptors/aws.d.cts.map +1 -1
  86. package/dist/adaptors/aws.d.mts +58 -49
  87. package/dist/adaptors/aws.d.mts.map +1 -1
  88. package/dist/adaptors/aws.mjs +130 -157
  89. package/dist/adaptors/aws.mjs.map +1 -1
  90. package/dist/adaptors/hono.cjs +1 -1
  91. package/dist/adaptors/hono.d.cts +5 -6
  92. package/dist/adaptors/hono.d.cts.map +1 -1
  93. package/dist/adaptors/hono.d.mts +6 -7
  94. package/dist/adaptors/hono.d.mts.map +1 -1
  95. package/dist/adaptors/hono.mjs +1 -1
  96. package/dist/adaptors/testing.cjs +824 -38
  97. package/dist/adaptors/testing.cjs.map +1 -1
  98. package/dist/adaptors/testing.d.cts +368 -39
  99. package/dist/adaptors/testing.d.cts.map +1 -1
  100. package/dist/adaptors/testing.d.mts +367 -38
  101. package/dist/adaptors/testing.d.mts.map +1 -1
  102. package/dist/adaptors/testing.mjs +802 -34
  103. package/dist/adaptors/testing.mjs.map +1 -1
  104. package/dist/auth-BMCJN30Y.d.cts +268 -0
  105. package/dist/auth-BMCJN30Y.d.cts.map +1 -0
  106. package/dist/auth-D_0788uW.d.mts +268 -0
  107. package/dist/auth-D_0788uW.d.mts.map +1 -0
  108. package/dist/auth.cjs +289 -46
  109. package/dist/auth.cjs.map +1 -1
  110. package/dist/auth.d.cts +2 -104
  111. package/dist/auth.d.mts +2 -104
  112. package/dist/auth.mjs +285 -48
  113. package/dist/auth.mjs.map +1 -1
  114. package/dist/cache-5QZzh5Er.d.mts +44 -0
  115. package/dist/cache-5QZzh5Er.d.mts.map +1 -0
  116. package/dist/cache-DnGDGly3.d.cts +44 -0
  117. package/dist/cache-DnGDGly3.d.cts.map +1 -0
  118. package/dist/cache.d.cts +2 -43
  119. package/dist/cache.d.mts +2 -43
  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/{construct-interface-DPlxfpoS.d.mts → construct-interface-B1AfqRl4.d.cts} +42 -8
  129. package/dist/construct-interface-B1AfqRl4.d.cts.map +1 -0
  130. package/dist/{construct-interface-DgXTJcOD.d.cts → construct-interface-ZvYQbivO.d.mts} +42 -8
  131. package/dist/construct-interface-ZvYQbivO.d.mts.map +1 -0
  132. package/dist/construct-interface.cjs +30 -4
  133. package/dist/construct-interface.cjs.map +1 -1
  134. package/dist/construct-interface.d.cts +2 -2
  135. package/dist/construct-interface.d.mts +2 -2
  136. package/dist/construct-interface.mjs +30 -5
  137. package/dist/construct-interface.mjs.map +1 -1
  138. package/dist/credential-DYymbp_7.cjs +257 -0
  139. package/dist/credential-DYymbp_7.cjs.map +1 -0
  140. package/dist/credential-DfSAOOdY.mjs +222 -0
  141. package/dist/credential-DfSAOOdY.mjs.map +1 -0
  142. package/dist/credential.cjs +7 -129
  143. package/dist/credential.d.cts +2 -58
  144. package/dist/credential.d.mts +2 -58
  145. package/dist/credential.mjs +2 -128
  146. package/dist/crons/index.cjs +126 -1
  147. package/dist/crons/index.cjs.map +1 -1
  148. package/dist/crons/index.d.cts +43 -3
  149. package/dist/crons/index.d.cts.map +1 -1
  150. package/dist/crons/index.d.mts +43 -3
  151. package/dist/crons/index.d.mts.map +1 -1
  152. package/dist/crons/index.mjs +125 -2
  153. package/dist/crons/index.mjs.map +1 -1
  154. package/dist/database/kysely.cjs +3 -194
  155. package/dist/database/kysely.d.cts +2 -149
  156. package/dist/database/kysely.d.mts +2 -149
  157. package/dist/database/kysely.mjs +2 -192
  158. package/dist/email.d.cts +1 -1
  159. package/dist/email.d.cts.map +1 -1
  160. package/dist/email.d.mts +2 -2
  161. package/dist/email.d.mts.map +1 -1
  162. package/dist/encryption/kms.cjs +95 -0
  163. package/dist/encryption/kms.cjs.map +1 -0
  164. package/dist/encryption/kms.d.cts +7 -0
  165. package/dist/encryption/kms.d.cts.map +1 -0
  166. package/dist/encryption/kms.d.mts +7 -0
  167. package/dist/encryption/kms.d.mts.map +1 -0
  168. package/dist/encryption/kms.mjs +93 -0
  169. package/dist/encryption/kms.mjs.map +1 -0
  170. package/dist/encryption.cjs +116 -0
  171. package/dist/encryption.cjs.map +1 -0
  172. package/dist/encryption.d.cts +37 -0
  173. package/dist/encryption.d.cts.map +1 -0
  174. package/dist/encryption.d.mts +37 -0
  175. package/dist/encryption.d.mts.map +1 -0
  176. package/dist/encryption.mjs +101 -0
  177. package/dist/encryption.mjs.map +1 -0
  178. package/dist/endpoints/index.cjs +25 -10
  179. package/dist/endpoints/index.d.cts +105 -3
  180. package/dist/endpoints/index.d.cts.map +1 -0
  181. package/dist/endpoints/index.d.mts +105 -3
  182. package/dist/endpoints/index.d.mts.map +1 -0
  183. package/dist/endpoints/index.mjs +5 -4
  184. package/dist/expire-C586zznE.d.cts +38 -0
  185. package/dist/expire-C586zznE.d.cts.map +1 -0
  186. package/dist/expire-C586zznE.d.mts +38 -0
  187. package/dist/expire-C586zznE.d.mts.map +1 -0
  188. package/dist/expire-CieftS01.cjs +67 -0
  189. package/dist/expire-CieftS01.cjs.map +1 -0
  190. package/dist/expire-CpzUAfr9.mjs +50 -0
  191. package/dist/expire-CpzUAfr9.mjs.map +1 -0
  192. package/dist/external-api.cjs +106 -0
  193. package/dist/external-api.cjs.map +1 -0
  194. package/dist/external-api.d.cts +2 -0
  195. package/dist/external-api.d.mts +2 -0
  196. package/dist/external-api.mjs +103 -0
  197. package/dist/external-api.mjs.map +1 -0
  198. package/dist/fake-BUgcX2Dk.d.cts +201 -0
  199. package/dist/fake-BUgcX2Dk.d.cts.map +1 -0
  200. package/dist/fake-D472nkKb.d.mts +201 -0
  201. package/dist/fake-D472nkKb.d.mts.map +1 -0
  202. package/dist/file-server.cjs +123 -30
  203. package/dist/file-server.cjs.map +1 -1
  204. package/dist/file-server.d.cts +115 -1
  205. package/dist/file-server.d.cts.map +1 -1
  206. package/dist/file-server.d.mts +115 -1
  207. package/dist/file-server.d.mts.map +1 -1
  208. package/dist/file-server.mjs +122 -32
  209. package/dist/file-server.mjs.map +1 -1
  210. package/dist/functions/index.cjs +1 -1
  211. package/dist/functions/index.d.cts +2 -1
  212. package/dist/functions/index.d.mts +2 -1
  213. package/dist/functions/index.mjs +1 -1
  214. package/dist/{functions-C53GW2eQ.mjs → functions-BvIDQKAA.mjs} +117 -22
  215. package/dist/functions-BvIDQKAA.mjs.map +1 -0
  216. package/dist/{functions-B6qCvfmy.cjs → functions-DLF6-IK8.cjs} +122 -18
  217. package/dist/functions-DLF6-IK8.cjs.map +1 -0
  218. package/dist/index-BtzMzhMA.d.cts +115 -0
  219. package/dist/index-BtzMzhMA.d.cts.map +1 -0
  220. package/dist/{index-CeEtxDmK.d.cts → index-DdRjYhiJ.d.cts} +42 -2
  221. package/dist/{index-CeEtxDmK.d.cts.map → index-DdRjYhiJ.d.cts.map} +1 -1
  222. package/dist/{index-CeEtxDmK.d.mts → index-DdRjYhiJ.d.mts} +42 -2
  223. package/dist/{index-CeEtxDmK.d.mts.map → index-DdRjYhiJ.d.mts.map} +1 -1
  224. package/dist/index-DuriFjYD.d.mts +115 -0
  225. package/dist/index-DuriFjYD.d.mts.map +1 -0
  226. package/dist/index.cjs +4 -1
  227. package/dist/index.d.cts +26 -3
  228. package/dist/index.d.cts.map +1 -0
  229. package/dist/index.d.mts +26 -3
  230. package/dist/index.d.mts.map +1 -0
  231. package/dist/index.mjs +3 -2
  232. package/dist/kysely-BHYV-WC-.d.cts +216 -0
  233. package/dist/kysely-BHYV-WC-.d.cts.map +1 -0
  234. package/dist/kysely-CAW3QSqp.d.mts +216 -0
  235. package/dist/kysely-CAW3QSqp.d.mts.map +1 -0
  236. package/dist/kysely-Cs4uPO8k.mjs +371 -0
  237. package/dist/kysely-Cs4uPO8k.mjs.map +1 -0
  238. package/dist/kysely-CukArHJ0.cjs +384 -0
  239. package/dist/kysely-CukArHJ0.cjs.map +1 -0
  240. package/dist/{telemetry-DGcFlVpB.d.cts → lambdaTelemetry-8vnmVZQ5.d.cts} +2 -2
  241. package/dist/lambdaTelemetry-8vnmVZQ5.d.cts.map +1 -0
  242. package/dist/{telemetry-DGcFlVpB.d.mts → lambdaTelemetry-8vnmVZQ5.d.mts} +2 -2
  243. package/dist/lambdaTelemetry-8vnmVZQ5.d.mts.map +1 -0
  244. package/dist/mobile-app.cjs +74 -0
  245. package/dist/mobile-app.cjs.map +1 -0
  246. package/dist/mobile-app.d.cts +73 -0
  247. package/dist/mobile-app.d.cts.map +1 -0
  248. package/dist/mobile-app.d.mts +73 -0
  249. package/dist/mobile-app.d.mts.map +1 -0
  250. package/dist/mobile-app.mjs +73 -0
  251. package/dist/mobile-app.mjs.map +1 -0
  252. package/dist/object-storage.cjs +8 -1
  253. package/dist/object-storage.cjs.map +1 -1
  254. package/dist/object-storage.d.cts +10 -1
  255. package/dist/object-storage.d.cts.map +1 -1
  256. package/dist/object-storage.d.mts +10 -1
  257. package/dist/object-storage.d.mts.map +1 -1
  258. package/dist/object-storage.mjs +7 -2
  259. package/dist/object-storage.mjs.map +1 -1
  260. package/dist/pattern-C1CEcglD.mjs +241 -0
  261. package/dist/pattern-C1CEcglD.mjs.map +1 -0
  262. package/dist/pattern-QFaUIr77.cjs +288 -0
  263. package/dist/pattern-QFaUIr77.cjs.map +1 -0
  264. package/dist/processors/index.cjs +214 -0
  265. package/dist/processors/index.cjs.map +1 -0
  266. package/dist/processors/index.d.cts +78 -0
  267. package/dist/processors/index.d.cts.map +1 -0
  268. package/dist/processors/index.d.mts +78 -0
  269. package/dist/processors/index.d.mts.map +1 -0
  270. package/dist/processors/index.mjs +193 -0
  271. package/dist/processors/index.mjs.map +1 -0
  272. package/dist/queue/index.cjs +5 -192
  273. package/dist/queue/index.d.cts +3 -53
  274. package/dist/queue/index.d.mts +3 -53
  275. package/dist/queue/index.mjs +3 -190
  276. package/dist/random-password.cjs +86 -0
  277. package/dist/random-password.cjs.map +1 -0
  278. package/dist/random-password.d.cts +30 -0
  279. package/dist/random-password.d.cts.map +1 -0
  280. package/dist/random-password.d.mts +30 -0
  281. package/dist/random-password.d.mts.map +1 -0
  282. package/dist/random-password.mjs +84 -0
  283. package/dist/random-password.mjs.map +1 -0
  284. package/dist/{lazyAccessors-BHtcqgz2.mjs → readRequestBody-BTIl3k-D.mjs} +99 -39
  285. package/dist/readRequestBody-BTIl3k-D.mjs.map +1 -0
  286. package/dist/{lazyAccessors-Dx9NLwJZ.cjs → readRequestBody-Dej_L3c4.cjs} +118 -46
  287. package/dist/readRequestBody-Dej_L3c4.cjs.map +1 -0
  288. package/dist/requestLogger-BZcXwdBs.cjs +207 -0
  289. package/dist/requestLogger-BZcXwdBs.cjs.map +1 -0
  290. package/dist/requestLogger-pA4gi3E1.mjs +178 -0
  291. package/dist/requestLogger-pA4gi3E1.mjs.map +1 -0
  292. package/dist/rest-api.cjs +76 -43
  293. package/dist/rest-api.cjs.map +1 -1
  294. package/dist/rest-api.d.cts +64 -31
  295. package/dist/rest-api.d.cts.map +1 -1
  296. package/dist/rest-api.d.mts +64 -31
  297. package/dist/rest-api.d.mts.map +1 -1
  298. package/dist/rest-api.mjs +76 -43
  299. package/dist/rest-api.mjs.map +1 -1
  300. package/dist/runSubscriber-B1Yg4dID.cjs +128 -0
  301. package/dist/runSubscriber-B1Yg4dID.cjs.map +1 -0
  302. package/dist/runSubscriber-JCgkeYbE.mjs +111 -0
  303. package/dist/runSubscriber-JCgkeYbE.mjs.map +1 -0
  304. package/dist/shutdown-BMJmAhSt.cjs +38 -0
  305. package/dist/shutdown-BMJmAhSt.cjs.map +1 -0
  306. package/dist/shutdown-C7xa8x9S.mjs +27 -0
  307. package/dist/shutdown-C7xa8x9S.mjs.map +1 -0
  308. package/dist/site.cjs +9 -3
  309. package/dist/site.cjs.map +1 -1
  310. package/dist/site.d.cts +44 -1
  311. package/dist/site.d.cts.map +1 -1
  312. package/dist/site.d.mts +44 -1
  313. package/dist/site.d.mts.map +1 -1
  314. package/dist/site.mjs +9 -3
  315. package/dist/site.mjs.map +1 -1
  316. package/dist/stages-DaTaoQei.d.cts +73 -0
  317. package/dist/stages-DaTaoQei.d.cts.map +1 -0
  318. package/dist/stages-DaTaoQei.d.mts +73 -0
  319. package/dist/stages-DaTaoQei.d.mts.map +1 -0
  320. package/dist/subscribers/index.cjs +134 -1
  321. package/dist/subscribers/index.cjs.map +1 -0
  322. package/dist/subscribers/index.d.cts +74 -3
  323. package/dist/subscribers/index.d.cts.map +1 -0
  324. package/dist/subscribers/index.d.mts +74 -3
  325. package/dist/subscribers/index.d.mts.map +1 -0
  326. package/dist/subscribers/index.mjs +132 -2
  327. package/dist/subscribers/index.mjs.map +1 -0
  328. package/dist/telemetry-B48RLjyk.d.cts +40 -0
  329. package/dist/telemetry-B48RLjyk.d.cts.map +1 -0
  330. package/dist/telemetry-BEoBn6GO.d.mts +40 -0
  331. package/dist/telemetry-BEoBn6GO.d.mts.map +1 -0
  332. package/dist/telemetry.cjs +56 -0
  333. package/dist/telemetry.cjs.map +1 -0
  334. package/dist/telemetry.d.cts +2 -0
  335. package/dist/telemetry.d.mts +2 -0
  336. package/dist/telemetry.mjs +55 -0
  337. package/dist/telemetry.mjs.map +1 -0
  338. package/dist/topic/index.cjs +2 -134
  339. package/dist/topic/index.d.cts +2 -3
  340. package/dist/topic/index.d.mts +2 -3
  341. package/dist/topic/index.mjs +2 -132
  342. package/dist/tracing-Bbj1uoFJ.mjs +127 -0
  343. package/dist/tracing-Bbj1uoFJ.mjs.map +1 -0
  344. package/dist/tracing-C0ooU0V2.cjs +150 -0
  345. package/dist/tracing-C0ooU0V2.cjs.map +1 -0
  346. package/dist/websocket-api.cjs +769 -0
  347. package/dist/websocket-api.cjs.map +1 -0
  348. package/dist/websocket-api.d.cts +449 -0
  349. package/dist/websocket-api.d.cts.map +1 -0
  350. package/dist/websocket-api.d.mts +449 -0
  351. package/dist/websocket-api.d.mts.map +1 -0
  352. package/dist/websocket-api.mjs +755 -0
  353. package/dist/websocket-api.mjs.map +1 -0
  354. package/dist/worker.cjs +70 -23
  355. package/dist/worker.cjs.map +1 -1
  356. package/dist/worker.d.cts +86 -36
  357. package/dist/worker.d.cts.map +1 -1
  358. package/dist/worker.d.mts +87 -37
  359. package/dist/worker.d.mts.map +1 -1
  360. package/dist/worker.mjs +70 -23
  361. package/dist/worker.mjs.map +1 -1
  362. package/package.json +145 -44
  363. package/dist/Construct-BeYVu_QF.mjs.map +0 -1
  364. package/dist/Construct-DfbwIntp.d.cts +0 -115
  365. package/dist/Construct-DfbwIntp.d.cts.map +0 -1
  366. package/dist/Construct-DqdlARxq.cjs.map +0 -1
  367. package/dist/Construct-l5aOn_jv.d.mts +0 -115
  368. package/dist/Construct-l5aOn_jv.d.mts.map +0 -1
  369. package/dist/Cron-DKqnnTdH.d.cts.map +0 -1
  370. package/dist/Cron-SyqS5oWJ.d.mts.map +0 -1
  371. package/dist/CronBuilder-BdnI6lxF.cjs.map +0 -1
  372. package/dist/CronBuilder-CRGnDfTq.d.mts +0 -41
  373. package/dist/CronBuilder-CRGnDfTq.d.mts.map +0 -1
  374. package/dist/CronBuilder-D_0HNBTr.mjs.map +0 -1
  375. package/dist/CronBuilder-Df1q9PNy.d.cts +0 -41
  376. package/dist/CronBuilder-Df1q9PNy.d.cts.map +0 -1
  377. package/dist/Endpoint-BCiCYvx2.mjs +0 -1665
  378. package/dist/Endpoint-BCiCYvx2.mjs.map +0 -1
  379. package/dist/Endpoint-C6yyHpRS.d.cts.map +0 -1
  380. package/dist/Endpoint-DuT4TEEq.d.mts.map +0 -1
  381. package/dist/Endpoint-s0AyrQGC.cjs +0 -1683
  382. package/dist/Endpoint-s0AyrQGC.cjs.map +0 -1
  383. package/dist/EndpointFactory-M8OQKZRY.cjs.map +0 -1
  384. package/dist/EndpointFactory-ptPR1cXw.mjs.map +0 -1
  385. package/dist/HonoEndpointAdaptor-7QagYKdP.cjs.map +0 -1
  386. package/dist/HonoEndpointAdaptor-CYHA0WAt.mjs.map +0 -1
  387. package/dist/Queue-D9X6OoON.d.mts.map +0 -1
  388. package/dist/Queue-DYPB2KWL.d.cts.map +0 -1
  389. package/dist/Subscriber-C4heaAyO.d.mts +0 -51
  390. package/dist/Subscriber-C4heaAyO.d.mts.map +0 -1
  391. package/dist/Subscriber-CotDUELC.d.cts +0 -51
  392. package/dist/Subscriber-CotDUELC.d.cts.map +0 -1
  393. package/dist/SubscriberBuilder-BEv0eoHy.d.cts +0 -59
  394. package/dist/SubscriberBuilder-BEv0eoHy.d.cts.map +0 -1
  395. package/dist/SubscriberBuilder-C0ZEtGDI.cjs +0 -125
  396. package/dist/SubscriberBuilder-C0ZEtGDI.cjs.map +0 -1
  397. package/dist/SubscriberBuilder-h7B_cHMr.mjs +0 -114
  398. package/dist/SubscriberBuilder-h7B_cHMr.mjs.map +0 -1
  399. package/dist/SubscriberBuilder-tyH5yTk5.d.mts +0 -59
  400. package/dist/SubscriberBuilder-tyH5yTk5.d.mts.map +0 -1
  401. package/dist/Topic-DEVGo0Dm.d.cts +0 -89
  402. package/dist/Topic-DEVGo0Dm.d.cts.map +0 -1
  403. package/dist/Topic-zk_6Gthr.d.mts +0 -89
  404. package/dist/Topic-zk_6Gthr.d.mts.map +0 -1
  405. package/dist/auth.d.cts.map +0 -1
  406. package/dist/auth.d.mts.map +0 -1
  407. package/dist/cache.d.cts.map +0 -1
  408. package/dist/cache.d.mts.map +0 -1
  409. package/dist/construct-interface-DPlxfpoS.d.mts.map +0 -1
  410. package/dist/construct-interface-DgXTJcOD.d.cts.map +0 -1
  411. package/dist/credential.cjs.map +0 -1
  412. package/dist/credential.d.cts.map +0 -1
  413. package/dist/credential.d.mts.map +0 -1
  414. package/dist/credential.mjs.map +0 -1
  415. package/dist/database/kysely.cjs.map +0 -1
  416. package/dist/database/kysely.d.cts.map +0 -1
  417. package/dist/database/kysely.d.mts.map +0 -1
  418. package/dist/database/kysely.mjs.map +0 -1
  419. package/dist/functions-B6qCvfmy.cjs.map +0 -1
  420. package/dist/functions-C53GW2eQ.mjs.map +0 -1
  421. package/dist/index-B2urf3YI.d.cts +0 -26
  422. package/dist/index-B2urf3YI.d.cts.map +0 -1
  423. package/dist/index-BPSZ_Lp_.d.cts.map +0 -1
  424. package/dist/index-BoZ-iisU.d.mts.map +0 -1
  425. package/dist/index-CdaU--_B.d.cts +0 -165
  426. package/dist/index-CdaU--_B.d.cts.map +0 -1
  427. package/dist/index-DMCDvnsM.d.mts +0 -26
  428. package/dist/index-DMCDvnsM.d.mts.map +0 -1
  429. package/dist/index-PQRWOQj4.d.mts +0 -165
  430. package/dist/index-PQRWOQj4.d.mts.map +0 -1
  431. package/dist/lazyAccessors-BHtcqgz2.mjs.map +0 -1
  432. package/dist/lazyAccessors-Dx9NLwJZ.cjs.map +0 -1
  433. package/dist/processAudits-BpRlPQMW.mjs +0 -77
  434. package/dist/processAudits-BpRlPQMW.mjs.map +0 -1
  435. package/dist/processAudits-D_2W5x8k.cjs +0 -88
  436. package/dist/processAudits-D_2W5x8k.cjs.map +0 -1
  437. package/dist/queue/index.cjs.map +0 -1
  438. package/dist/queue/index.d.cts.map +0 -1
  439. package/dist/queue/index.d.mts.map +0 -1
  440. package/dist/queue/index.mjs.map +0 -1
  441. package/dist/telemetry-DGcFlVpB.d.cts.map +0 -1
  442. package/dist/telemetry-DGcFlVpB.d.mts.map +0 -1
  443. package/dist/topic/index.cjs.map +0 -1
  444. package/dist/topic/index.mjs.map +0 -1
@@ -1,1683 +0,0 @@
1
- const require_rolldown_runtime = require("./rolldown-runtime-y5ARvAq5.cjs");
2
- require("./Construct-DqdlARxq.cjs");
3
- const require_functions = require("./functions-B6qCvfmy.cjs");
4
- let _geekmidas_schema_conversion = require("@geekmidas/schema/conversion");
5
- let _geekmidas_schema_openapi = require("@geekmidas/schema/openapi");
6
- //#region ../../node_modules/.pnpm/lodash.pick@4.4.0/node_modules/lodash.pick/index.js
7
- var require_lodash_pick = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
8
- /**
9
- * lodash (Custom Build) <https://lodash.com/>
10
- * Build: `lodash modularize exports="npm" -o ./`
11
- * Copyright jQuery Foundation and other contributors <https://jquery.org/>
12
- * Released under MIT license <https://lodash.com/license>
13
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
14
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
15
- */
16
- /** Used as references for various `Number` constants. */
17
- var MAX_SAFE_INTEGER = 9007199254740991;
18
- /** `Object#toString` result references. */
19
- var argsTag = "[object Arguments]";
20
- var funcTag = "[object Function]";
21
- var genTag = "[object GeneratorFunction]";
22
- var symbolTag = "[object Symbol]";
23
- /** Detect free variable `global` from Node.js. */
24
- var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
25
- /** Detect free variable `self`. */
26
- var freeSelf = typeof self == "object" && self && self.Object === Object && self;
27
- /** Used as a reference to the global object. */
28
- var root = freeGlobal || freeSelf || Function("return this")();
29
- /**
30
- * A faster alternative to `Function#apply`, this function invokes `func`
31
- * with the `this` binding of `thisArg` and the arguments of `args`.
32
- *
33
- * @private
34
- * @param {Function} func The function to invoke.
35
- * @param {*} thisArg The `this` binding of `func`.
36
- * @param {Array} args The arguments to invoke `func` with.
37
- * @returns {*} Returns the result of `func`.
38
- */
39
- function apply(func, thisArg, args) {
40
- switch (args.length) {
41
- case 0: return func.call(thisArg);
42
- case 1: return func.call(thisArg, args[0]);
43
- case 2: return func.call(thisArg, args[0], args[1]);
44
- case 3: return func.call(thisArg, args[0], args[1], args[2]);
45
- }
46
- return func.apply(thisArg, args);
47
- }
48
- /**
49
- * A specialized version of `_.map` for arrays without support for iteratee
50
- * shorthands.
51
- *
52
- * @private
53
- * @param {Array} [array] The array to iterate over.
54
- * @param {Function} iteratee The function invoked per iteration.
55
- * @returns {Array} Returns the new mapped array.
56
- */
57
- function arrayMap(array, iteratee) {
58
- var index = -1, length = array ? array.length : 0, result = Array(length);
59
- while (++index < length) result[index] = iteratee(array[index], index, array);
60
- return result;
61
- }
62
- /**
63
- * Appends the elements of `values` to `array`.
64
- *
65
- * @private
66
- * @param {Array} array The array to modify.
67
- * @param {Array} values The values to append.
68
- * @returns {Array} Returns `array`.
69
- */
70
- function arrayPush(array, values) {
71
- var index = -1, length = values.length, offset = array.length;
72
- while (++index < length) array[offset + index] = values[index];
73
- return array;
74
- }
75
- /** Used for built-in method references. */
76
- var objectProto = Object.prototype;
77
- /** Used to check objects for own properties. */
78
- var hasOwnProperty = objectProto.hasOwnProperty;
79
- /**
80
- * Used to resolve the
81
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
82
- * of values.
83
- */
84
- var objectToString = objectProto.toString;
85
- /** Built-in value references. */
86
- var Symbol = root.Symbol;
87
- var propertyIsEnumerable = objectProto.propertyIsEnumerable;
88
- var spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : void 0;
89
- var nativeMax = Math.max;
90
- /**
91
- * The base implementation of `_.flatten` with support for restricting flattening.
92
- *
93
- * @private
94
- * @param {Array} array The array to flatten.
95
- * @param {number} depth The maximum recursion depth.
96
- * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
97
- * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
98
- * @param {Array} [result=[]] The initial result value.
99
- * @returns {Array} Returns the new flattened array.
100
- */
101
- function baseFlatten(array, depth, predicate, isStrict, result) {
102
- var index = -1, length = array.length;
103
- predicate || (predicate = isFlattenable);
104
- result || (result = []);
105
- while (++index < length) {
106
- var value = array[index];
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;
111
- }
112
- return result;
113
- }
114
- /**
115
- * The base implementation of `_.pick` without support for individual
116
- * property identifiers.
117
- *
118
- * @private
119
- * @param {Object} object The source object.
120
- * @param {string[]} props The property identifiers to pick.
121
- * @returns {Object} Returns the new object.
122
- */
123
- function basePick(object, props) {
124
- object = Object(object);
125
- return basePickBy(object, props, function(value, key) {
126
- return key in object;
127
- });
128
- }
129
- /**
130
- * The base implementation of `_.pickBy` without support for iteratee shorthands.
131
- *
132
- * @private
133
- * @param {Object} object The source object.
134
- * @param {string[]} props The property identifiers to pick from.
135
- * @param {Function} predicate The function invoked per property.
136
- * @returns {Object} Returns the new object.
137
- */
138
- function basePickBy(object, props, predicate) {
139
- var index = -1, length = props.length, result = {};
140
- while (++index < length) {
141
- var key = props[index], value = object[key];
142
- if (predicate(value, key)) result[key] = value;
143
- }
144
- return result;
145
- }
146
- /**
147
- * The base implementation of `_.rest` which doesn't validate or coerce arguments.
148
- *
149
- * @private
150
- * @param {Function} func The function to apply a rest parameter to.
151
- * @param {number} [start=func.length-1] The start position of the rest parameter.
152
- * @returns {Function} Returns the new function.
153
- */
154
- function baseRest(func, start) {
155
- start = nativeMax(start === void 0 ? func.length - 1 : start, 0);
156
- return function() {
157
- var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length);
158
- while (++index < length) array[index] = args[start + index];
159
- index = -1;
160
- var otherArgs = Array(start + 1);
161
- while (++index < start) otherArgs[index] = args[index];
162
- otherArgs[start] = array;
163
- return apply(func, this, otherArgs);
164
- };
165
- }
166
- /**
167
- * Checks if `value` is a flattenable `arguments` object or array.
168
- *
169
- * @private
170
- * @param {*} value The value to check.
171
- * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
172
- */
173
- function isFlattenable(value) {
174
- return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
175
- }
176
- /**
177
- * Converts `value` to a string key if it's not a string or symbol.
178
- *
179
- * @private
180
- * @param {*} value The value to inspect.
181
- * @returns {string|symbol} Returns the key.
182
- */
183
- function toKey(value) {
184
- if (typeof value == "string" || isSymbol(value)) return value;
185
- var result = value + "";
186
- return result == "0" && 1 / value == -Infinity ? "-0" : result;
187
- }
188
- /**
189
- * Checks if `value` is likely an `arguments` object.
190
- *
191
- * @static
192
- * @memberOf _
193
- * @since 0.1.0
194
- * @category Lang
195
- * @param {*} value The value to check.
196
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
197
- * else `false`.
198
- * @example
199
- *
200
- * _.isArguments(function() { return arguments; }());
201
- * // => true
202
- *
203
- * _.isArguments([1, 2, 3]);
204
- * // => false
205
- */
206
- function isArguments(value) {
207
- return isArrayLikeObject(value) && hasOwnProperty.call(value, "callee") && (!propertyIsEnumerable.call(value, "callee") || objectToString.call(value) == argsTag);
208
- }
209
- /**
210
- * Checks if `value` is classified as an `Array` object.
211
- *
212
- * @static
213
- * @memberOf _
214
- * @since 0.1.0
215
- * @category Lang
216
- * @param {*} value The value to check.
217
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
218
- * @example
219
- *
220
- * _.isArray([1, 2, 3]);
221
- * // => true
222
- *
223
- * _.isArray(document.body.children);
224
- * // => false
225
- *
226
- * _.isArray('abc');
227
- * // => false
228
- *
229
- * _.isArray(_.noop);
230
- * // => false
231
- */
232
- var isArray = Array.isArray;
233
- /**
234
- * Checks if `value` is array-like. A value is considered array-like if it's
235
- * not a function and has a `value.length` that's an integer greater than or
236
- * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
237
- *
238
- * @static
239
- * @memberOf _
240
- * @since 4.0.0
241
- * @category Lang
242
- * @param {*} value The value to check.
243
- * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
244
- * @example
245
- *
246
- * _.isArrayLike([1, 2, 3]);
247
- * // => true
248
- *
249
- * _.isArrayLike(document.body.children);
250
- * // => true
251
- *
252
- * _.isArrayLike('abc');
253
- * // => true
254
- *
255
- * _.isArrayLike(_.noop);
256
- * // => false
257
- */
258
- function isArrayLike(value) {
259
- return value != null && isLength(value.length) && !isFunction(value);
260
- }
261
- /**
262
- * This method is like `_.isArrayLike` except that it also checks if `value`
263
- * is an object.
264
- *
265
- * @static
266
- * @memberOf _
267
- * @since 4.0.0
268
- * @category Lang
269
- * @param {*} value The value to check.
270
- * @returns {boolean} Returns `true` if `value` is an array-like object,
271
- * else `false`.
272
- * @example
273
- *
274
- * _.isArrayLikeObject([1, 2, 3]);
275
- * // => true
276
- *
277
- * _.isArrayLikeObject(document.body.children);
278
- * // => true
279
- *
280
- * _.isArrayLikeObject('abc');
281
- * // => false
282
- *
283
- * _.isArrayLikeObject(_.noop);
284
- * // => false
285
- */
286
- function isArrayLikeObject(value) {
287
- return isObjectLike(value) && isArrayLike(value);
288
- }
289
- /**
290
- * Checks if `value` is classified as a `Function` object.
291
- *
292
- * @static
293
- * @memberOf _
294
- * @since 0.1.0
295
- * @category Lang
296
- * @param {*} value The value to check.
297
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
298
- * @example
299
- *
300
- * _.isFunction(_);
301
- * // => true
302
- *
303
- * _.isFunction(/abc/);
304
- * // => false
305
- */
306
- function isFunction(value) {
307
- var tag = isObject(value) ? objectToString.call(value) : "";
308
- return tag == funcTag || tag == genTag;
309
- }
310
- /**
311
- * Checks if `value` is a valid array-like length.
312
- *
313
- * **Note:** This method is loosely based on
314
- * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
315
- *
316
- * @static
317
- * @memberOf _
318
- * @since 4.0.0
319
- * @category Lang
320
- * @param {*} value The value to check.
321
- * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
322
- * @example
323
- *
324
- * _.isLength(3);
325
- * // => true
326
- *
327
- * _.isLength(Number.MIN_VALUE);
328
- * // => false
329
- *
330
- * _.isLength(Infinity);
331
- * // => false
332
- *
333
- * _.isLength('3');
334
- * // => false
335
- */
336
- function isLength(value) {
337
- return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
338
- }
339
- /**
340
- * Checks if `value` is the
341
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
342
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
343
- *
344
- * @static
345
- * @memberOf _
346
- * @since 0.1.0
347
- * @category Lang
348
- * @param {*} value The value to check.
349
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
350
- * @example
351
- *
352
- * _.isObject({});
353
- * // => true
354
- *
355
- * _.isObject([1, 2, 3]);
356
- * // => true
357
- *
358
- * _.isObject(_.noop);
359
- * // => true
360
- *
361
- * _.isObject(null);
362
- * // => false
363
- */
364
- function isObject(value) {
365
- var type = typeof value;
366
- return !!value && (type == "object" || type == "function");
367
- }
368
- /**
369
- * Checks if `value` is object-like. A value is object-like if it's not `null`
370
- * and has a `typeof` result of "object".
371
- *
372
- * @static
373
- * @memberOf _
374
- * @since 4.0.0
375
- * @category Lang
376
- * @param {*} value The value to check.
377
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
378
- * @example
379
- *
380
- * _.isObjectLike({});
381
- * // => true
382
- *
383
- * _.isObjectLike([1, 2, 3]);
384
- * // => true
385
- *
386
- * _.isObjectLike(_.noop);
387
- * // => false
388
- *
389
- * _.isObjectLike(null);
390
- * // => false
391
- */
392
- function isObjectLike(value) {
393
- return !!value && typeof value == "object";
394
- }
395
- /**
396
- * Checks if `value` is classified as a `Symbol` primitive or object.
397
- *
398
- * @static
399
- * @memberOf _
400
- * @since 4.0.0
401
- * @category Lang
402
- * @param {*} value The value to check.
403
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
404
- * @example
405
- *
406
- * _.isSymbol(Symbol.iterator);
407
- * // => true
408
- *
409
- * _.isSymbol('abc');
410
- * // => false
411
- */
412
- function isSymbol(value) {
413
- return typeof value == "symbol" || isObjectLike(value) && objectToString.call(value) == symbolTag;
414
- }
415
- module.exports = baseRest(function(object, props) {
416
- return object == null ? {} : basePick(object, arrayMap(baseFlatten(props, 1), toKey));
417
- });
418
- }));
419
- //#endregion
420
- //#region ../../node_modules/.pnpm/lodash.set@4.3.2/node_modules/lodash.set/index.js
421
- var require_lodash_set = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
422
- /**
423
- * lodash (Custom Build) <https://lodash.com/>
424
- * Build: `lodash modularize exports="npm" -o ./`
425
- * Copyright jQuery Foundation and other contributors <https://jquery.org/>
426
- * Released under MIT license <https://lodash.com/license>
427
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
428
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
429
- */
430
- /** Used as the `TypeError` message for "Functions" methods. */
431
- var FUNC_ERROR_TEXT = "Expected a function";
432
- /** Used to stand-in for `undefined` hash values. */
433
- var HASH_UNDEFINED = "__lodash_hash_undefined__";
434
- var MAX_SAFE_INTEGER = 9007199254740991;
435
- /** `Object#toString` result references. */
436
- var funcTag = "[object Function]";
437
- var genTag = "[object GeneratorFunction]";
438
- var symbolTag = "[object Symbol]";
439
- /** Used to match property names within property paths. */
440
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;
441
- var reIsPlainProp = /^\w*$/;
442
- var reLeadingDot = /^\./;
443
- var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
444
- /**
445
- * Used to match `RegExp`
446
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
447
- */
448
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
449
- /** Used to match backslashes in property paths. */
450
- var reEscapeChar = /\\(\\)?/g;
451
- /** Used to detect host constructors (Safari). */
452
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
453
- /** Used to detect unsigned integer values. */
454
- var reIsUint = /^(?:0|[1-9]\d*)$/;
455
- /** Detect free variable `global` from Node.js. */
456
- var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
457
- /** Detect free variable `self`. */
458
- var freeSelf = typeof self == "object" && self && self.Object === Object && self;
459
- /** Used as a reference to the global object. */
460
- var root = freeGlobal || freeSelf || Function("return this")();
461
- /**
462
- * Gets the value at `key` of `object`.
463
- *
464
- * @private
465
- * @param {Object} [object] The object to query.
466
- * @param {string} key The key of the property to get.
467
- * @returns {*} Returns the property value.
468
- */
469
- function getValue(object, key) {
470
- return object == null ? void 0 : object[key];
471
- }
472
- /**
473
- * Checks if `value` is a host object in IE < 9.
474
- *
475
- * @private
476
- * @param {*} value The value to check.
477
- * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
478
- */
479
- function isHostObject(value) {
480
- var result = false;
481
- if (value != null && typeof value.toString != "function") try {
482
- result = !!(value + "");
483
- } catch (e) {}
484
- return result;
485
- }
486
- /** Used for built-in method references. */
487
- var arrayProto = Array.prototype;
488
- var funcProto = Function.prototype;
489
- var objectProto = Object.prototype;
490
- /** Used to detect overreaching core-js shims. */
491
- var coreJsData = root["__core-js_shared__"];
492
- /** Used to detect methods masquerading as native. */
493
- var maskSrcKey = function() {
494
- var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
495
- return uid ? "Symbol(src)_1." + uid : "";
496
- }();
497
- /** Used to resolve the decompiled source of functions. */
498
- var funcToString = funcProto.toString;
499
- /** Used to check objects for own properties. */
500
- var hasOwnProperty = objectProto.hasOwnProperty;
501
- /**
502
- * Used to resolve the
503
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
504
- * of values.
505
- */
506
- var objectToString = objectProto.toString;
507
- /** Used to detect if a method is native. */
508
- var reIsNative = RegExp("^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
509
- /** Built-in value references. */
510
- var Symbol = root.Symbol;
511
- var splice = arrayProto.splice;
512
- var Map = getNative(root, "Map");
513
- var nativeCreate = getNative(Object, "create");
514
- /** Used to convert symbols to primitives and strings. */
515
- var symbolProto = Symbol ? Symbol.prototype : void 0;
516
- var symbolToString = symbolProto ? symbolProto.toString : void 0;
517
- /**
518
- * Creates a hash object.
519
- *
520
- * @private
521
- * @constructor
522
- * @param {Array} [entries] The key-value pairs to cache.
523
- */
524
- function Hash(entries) {
525
- var index = -1, length = entries ? entries.length : 0;
526
- this.clear();
527
- while (++index < length) {
528
- var entry = entries[index];
529
- this.set(entry[0], entry[1]);
530
- }
531
- }
532
- /**
533
- * Removes all key-value entries from the hash.
534
- *
535
- * @private
536
- * @name clear
537
- * @memberOf Hash
538
- */
539
- function hashClear() {
540
- this.__data__ = nativeCreate ? nativeCreate(null) : {};
541
- }
542
- /**
543
- * Removes `key` and its value from the hash.
544
- *
545
- * @private
546
- * @name delete
547
- * @memberOf Hash
548
- * @param {Object} hash The hash to modify.
549
- * @param {string} key The key of the value to remove.
550
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
551
- */
552
- function hashDelete(key) {
553
- return this.has(key) && delete this.__data__[key];
554
- }
555
- /**
556
- * Gets the hash value for `key`.
557
- *
558
- * @private
559
- * @name get
560
- * @memberOf Hash
561
- * @param {string} key The key of the value to get.
562
- * @returns {*} Returns the entry value.
563
- */
564
- function hashGet(key) {
565
- var data = this.__data__;
566
- if (nativeCreate) {
567
- var result = data[key];
568
- return result === HASH_UNDEFINED ? void 0 : result;
569
- }
570
- return hasOwnProperty.call(data, key) ? data[key] : void 0;
571
- }
572
- /**
573
- * Checks if a hash value for `key` exists.
574
- *
575
- * @private
576
- * @name has
577
- * @memberOf Hash
578
- * @param {string} key The key of the entry to check.
579
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
580
- */
581
- function hashHas(key) {
582
- var data = this.__data__;
583
- return nativeCreate ? data[key] !== void 0 : hasOwnProperty.call(data, key);
584
- }
585
- /**
586
- * Sets the hash `key` to `value`.
587
- *
588
- * @private
589
- * @name set
590
- * @memberOf Hash
591
- * @param {string} key The key of the value to set.
592
- * @param {*} value The value to set.
593
- * @returns {Object} Returns the hash instance.
594
- */
595
- function hashSet(key, value) {
596
- var data = this.__data__;
597
- data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
598
- return this;
599
- }
600
- Hash.prototype.clear = hashClear;
601
- Hash.prototype["delete"] = hashDelete;
602
- Hash.prototype.get = hashGet;
603
- Hash.prototype.has = hashHas;
604
- Hash.prototype.set = hashSet;
605
- /**
606
- * Creates an list cache object.
607
- *
608
- * @private
609
- * @constructor
610
- * @param {Array} [entries] The key-value pairs to cache.
611
- */
612
- function ListCache(entries) {
613
- var index = -1, length = entries ? entries.length : 0;
614
- this.clear();
615
- while (++index < length) {
616
- var entry = entries[index];
617
- this.set(entry[0], entry[1]);
618
- }
619
- }
620
- /**
621
- * Removes all key-value entries from the list cache.
622
- *
623
- * @private
624
- * @name clear
625
- * @memberOf ListCache
626
- */
627
- function listCacheClear() {
628
- this.__data__ = [];
629
- }
630
- /**
631
- * Removes `key` and its value from the list cache.
632
- *
633
- * @private
634
- * @name delete
635
- * @memberOf ListCache
636
- * @param {string} key The key of the value to remove.
637
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
638
- */
639
- function listCacheDelete(key) {
640
- var data = this.__data__, index = assocIndexOf(data, key);
641
- if (index < 0) return false;
642
- if (index == data.length - 1) data.pop();
643
- else splice.call(data, index, 1);
644
- return true;
645
- }
646
- /**
647
- * Gets the list cache value for `key`.
648
- *
649
- * @private
650
- * @name get
651
- * @memberOf ListCache
652
- * @param {string} key The key of the value to get.
653
- * @returns {*} Returns the entry value.
654
- */
655
- function listCacheGet(key) {
656
- var data = this.__data__, index = assocIndexOf(data, key);
657
- return index < 0 ? void 0 : data[index][1];
658
- }
659
- /**
660
- * Checks if a list cache value for `key` exists.
661
- *
662
- * @private
663
- * @name has
664
- * @memberOf ListCache
665
- * @param {string} key The key of the entry to check.
666
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
667
- */
668
- function listCacheHas(key) {
669
- return assocIndexOf(this.__data__, key) > -1;
670
- }
671
- /**
672
- * Sets the list cache `key` to `value`.
673
- *
674
- * @private
675
- * @name set
676
- * @memberOf ListCache
677
- * @param {string} key The key of the value to set.
678
- * @param {*} value The value to set.
679
- * @returns {Object} Returns the list cache instance.
680
- */
681
- function listCacheSet(key, value) {
682
- var data = this.__data__, index = assocIndexOf(data, key);
683
- if (index < 0) data.push([key, value]);
684
- else data[index][1] = value;
685
- return this;
686
- }
687
- ListCache.prototype.clear = listCacheClear;
688
- ListCache.prototype["delete"] = listCacheDelete;
689
- ListCache.prototype.get = listCacheGet;
690
- ListCache.prototype.has = listCacheHas;
691
- ListCache.prototype.set = listCacheSet;
692
- /**
693
- * Creates a map cache object to store key-value pairs.
694
- *
695
- * @private
696
- * @constructor
697
- * @param {Array} [entries] The key-value pairs to cache.
698
- */
699
- function MapCache(entries) {
700
- var index = -1, length = entries ? entries.length : 0;
701
- this.clear();
702
- while (++index < length) {
703
- var entry = entries[index];
704
- this.set(entry[0], entry[1]);
705
- }
706
- }
707
- /**
708
- * Removes all key-value entries from the map.
709
- *
710
- * @private
711
- * @name clear
712
- * @memberOf MapCache
713
- */
714
- function mapCacheClear() {
715
- this.__data__ = {
716
- "hash": new Hash(),
717
- "map": new (Map || ListCache)(),
718
- "string": new Hash()
719
- };
720
- }
721
- /**
722
- * Removes `key` and its value from the map.
723
- *
724
- * @private
725
- * @name delete
726
- * @memberOf MapCache
727
- * @param {string} key The key of the value to remove.
728
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
729
- */
730
- function mapCacheDelete(key) {
731
- return getMapData(this, key)["delete"](key);
732
- }
733
- /**
734
- * Gets the map value for `key`.
735
- *
736
- * @private
737
- * @name get
738
- * @memberOf MapCache
739
- * @param {string} key The key of the value to get.
740
- * @returns {*} Returns the entry value.
741
- */
742
- function mapCacheGet(key) {
743
- return getMapData(this, key).get(key);
744
- }
745
- /**
746
- * Checks if a map value for `key` exists.
747
- *
748
- * @private
749
- * @name has
750
- * @memberOf MapCache
751
- * @param {string} key The key of the entry to check.
752
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
753
- */
754
- function mapCacheHas(key) {
755
- return getMapData(this, key).has(key);
756
- }
757
- /**
758
- * Sets the map `key` to `value`.
759
- *
760
- * @private
761
- * @name set
762
- * @memberOf MapCache
763
- * @param {string} key The key of the value to set.
764
- * @param {*} value The value to set.
765
- * @returns {Object} Returns the map cache instance.
766
- */
767
- function mapCacheSet(key, value) {
768
- getMapData(this, key).set(key, value);
769
- return this;
770
- }
771
- MapCache.prototype.clear = mapCacheClear;
772
- MapCache.prototype["delete"] = mapCacheDelete;
773
- MapCache.prototype.get = mapCacheGet;
774
- MapCache.prototype.has = mapCacheHas;
775
- MapCache.prototype.set = mapCacheSet;
776
- /**
777
- * Assigns `value` to `key` of `object` if the existing value is not equivalent
778
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
779
- * for equality comparisons.
780
- *
781
- * @private
782
- * @param {Object} object The object to modify.
783
- * @param {string} key The key of the property to assign.
784
- * @param {*} value The value to assign.
785
- */
786
- function assignValue(object, key, value) {
787
- var objValue = object[key];
788
- if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) object[key] = value;
789
- }
790
- /**
791
- * Gets the index at which the `key` is found in `array` of key-value pairs.
792
- *
793
- * @private
794
- * @param {Array} array The array to inspect.
795
- * @param {*} key The key to search for.
796
- * @returns {number} Returns the index of the matched value, else `-1`.
797
- */
798
- function assocIndexOf(array, key) {
799
- var length = array.length;
800
- while (length--) if (eq(array[length][0], key)) return length;
801
- return -1;
802
- }
803
- /**
804
- * The base implementation of `_.isNative` without bad shim checks.
805
- *
806
- * @private
807
- * @param {*} value The value to check.
808
- * @returns {boolean} Returns `true` if `value` is a native function,
809
- * else `false`.
810
- */
811
- function baseIsNative(value) {
812
- if (!isObject(value) || isMasked(value)) return false;
813
- return (isFunction(value) || isHostObject(value) ? reIsNative : reIsHostCtor).test(toSource(value));
814
- }
815
- /**
816
- * The base implementation of `_.set`.
817
- *
818
- * @private
819
- * @param {Object} object The object to modify.
820
- * @param {Array|string} path The path of the property to set.
821
- * @param {*} value The value to set.
822
- * @param {Function} [customizer] The function to customize path creation.
823
- * @returns {Object} Returns `object`.
824
- */
825
- function baseSet(object, path, value, customizer) {
826
- if (!isObject(object)) return object;
827
- path = isKey(path, object) ? [path] : castPath(path);
828
- var index = -1, length = path.length, lastIndex = length - 1, nested = object;
829
- while (nested != null && ++index < length) {
830
- var key = toKey(path[index]), newValue = value;
831
- if (index != lastIndex) {
832
- var objValue = nested[key];
833
- newValue = customizer ? customizer(objValue, key, nested) : void 0;
834
- if (newValue === void 0) newValue = isObject(objValue) ? objValue : isIndex(path[index + 1]) ? [] : {};
835
- }
836
- assignValue(nested, key, newValue);
837
- nested = nested[key];
838
- }
839
- return object;
840
- }
841
- /**
842
- * The base implementation of `_.toString` which doesn't convert nullish
843
- * values to empty strings.
844
- *
845
- * @private
846
- * @param {*} value The value to process.
847
- * @returns {string} Returns the string.
848
- */
849
- function baseToString(value) {
850
- if (typeof value == "string") return value;
851
- if (isSymbol(value)) return symbolToString ? symbolToString.call(value) : "";
852
- var result = value + "";
853
- return result == "0" && 1 / value == -Infinity ? "-0" : result;
854
- }
855
- /**
856
- * Casts `value` to a path array if it's not one.
857
- *
858
- * @private
859
- * @param {*} value The value to inspect.
860
- * @returns {Array} Returns the cast property path array.
861
- */
862
- function castPath(value) {
863
- return isArray(value) ? value : stringToPath(value);
864
- }
865
- /**
866
- * Gets the data for `map`.
867
- *
868
- * @private
869
- * @param {Object} map The map to query.
870
- * @param {string} key The reference key.
871
- * @returns {*} Returns the map data.
872
- */
873
- function getMapData(map, key) {
874
- var data = map.__data__;
875
- return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
876
- }
877
- /**
878
- * Gets the native function at `key` of `object`.
879
- *
880
- * @private
881
- * @param {Object} object The object to query.
882
- * @param {string} key The key of the method to get.
883
- * @returns {*} Returns the function if it's native, else `undefined`.
884
- */
885
- function getNative(object, key) {
886
- var value = getValue(object, key);
887
- return baseIsNative(value) ? value : void 0;
888
- }
889
- /**
890
- * Checks if `value` is a valid array-like index.
891
- *
892
- * @private
893
- * @param {*} value The value to check.
894
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
895
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
896
- */
897
- function isIndex(value, length) {
898
- length = length == null ? MAX_SAFE_INTEGER : length;
899
- return !!length && (typeof value == "number" || reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
900
- }
901
- /**
902
- * Checks if `value` is a property name and not a property path.
903
- *
904
- * @private
905
- * @param {*} value The value to check.
906
- * @param {Object} [object] The object to query keys on.
907
- * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
908
- */
909
- function isKey(value, object) {
910
- if (isArray(value)) return false;
911
- var type = typeof value;
912
- if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol(value)) return true;
913
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
914
- }
915
- /**
916
- * Checks if `value` is suitable for use as unique object key.
917
- *
918
- * @private
919
- * @param {*} value The value to check.
920
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
921
- */
922
- function isKeyable(value) {
923
- var type = typeof value;
924
- return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
925
- }
926
- /**
927
- * Checks if `func` has its source masked.
928
- *
929
- * @private
930
- * @param {Function} func The function to check.
931
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
932
- */
933
- function isMasked(func) {
934
- return !!maskSrcKey && maskSrcKey in func;
935
- }
936
- /**
937
- * Converts `string` to a property path array.
938
- *
939
- * @private
940
- * @param {string} string The string to convert.
941
- * @returns {Array} Returns the property path array.
942
- */
943
- var stringToPath = memoize(function(string) {
944
- string = toString(string);
945
- var result = [];
946
- if (reLeadingDot.test(string)) result.push("");
947
- string.replace(rePropName, function(match, number, quote, string) {
948
- result.push(quote ? string.replace(reEscapeChar, "$1") : number || match);
949
- });
950
- return result;
951
- });
952
- /**
953
- * Converts `value` to a string key if it's not a string or symbol.
954
- *
955
- * @private
956
- * @param {*} value The value to inspect.
957
- * @returns {string|symbol} Returns the key.
958
- */
959
- function toKey(value) {
960
- if (typeof value == "string" || isSymbol(value)) return value;
961
- var result = value + "";
962
- return result == "0" && 1 / value == -Infinity ? "-0" : result;
963
- }
964
- /**
965
- * Converts `func` to its source code.
966
- *
967
- * @private
968
- * @param {Function} func The function to process.
969
- * @returns {string} Returns the source code.
970
- */
971
- function toSource(func) {
972
- if (func != null) {
973
- try {
974
- return funcToString.call(func);
975
- } catch (e) {}
976
- try {
977
- return func + "";
978
- } catch (e) {}
979
- }
980
- return "";
981
- }
982
- /**
983
- * Creates a function that memoizes the result of `func`. If `resolver` is
984
- * provided, it determines the cache key for storing the result based on the
985
- * arguments provided to the memoized function. By default, the first argument
986
- * provided to the memoized function is used as the map cache key. The `func`
987
- * is invoked with the `this` binding of the memoized function.
988
- *
989
- * **Note:** The cache is exposed as the `cache` property on the memoized
990
- * function. Its creation may be customized by replacing the `_.memoize.Cache`
991
- * constructor with one whose instances implement the
992
- * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
993
- * method interface of `delete`, `get`, `has`, and `set`.
994
- *
995
- * @static
996
- * @memberOf _
997
- * @since 0.1.0
998
- * @category Function
999
- * @param {Function} func The function to have its output memoized.
1000
- * @param {Function} [resolver] The function to resolve the cache key.
1001
- * @returns {Function} Returns the new memoized function.
1002
- * @example
1003
- *
1004
- * var object = { 'a': 1, 'b': 2 };
1005
- * var other = { 'c': 3, 'd': 4 };
1006
- *
1007
- * var values = _.memoize(_.values);
1008
- * values(object);
1009
- * // => [1, 2]
1010
- *
1011
- * values(other);
1012
- * // => [3, 4]
1013
- *
1014
- * object.a = 2;
1015
- * values(object);
1016
- * // => [1, 2]
1017
- *
1018
- * // Modify the result cache.
1019
- * values.cache.set(object, ['a', 'b']);
1020
- * values(object);
1021
- * // => ['a', 'b']
1022
- *
1023
- * // Replace `_.memoize.Cache`.
1024
- * _.memoize.Cache = WeakMap;
1025
- */
1026
- function memoize(func, resolver) {
1027
- if (typeof func != "function" || resolver && typeof resolver != "function") throw new TypeError(FUNC_ERROR_TEXT);
1028
- var memoized = function() {
1029
- var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
1030
- if (cache.has(key)) return cache.get(key);
1031
- var result = func.apply(this, args);
1032
- memoized.cache = cache.set(key, result);
1033
- return result;
1034
- };
1035
- memoized.cache = new (memoize.Cache || MapCache)();
1036
- return memoized;
1037
- }
1038
- memoize.Cache = MapCache;
1039
- /**
1040
- * Performs a
1041
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
1042
- * comparison between two values to determine if they are equivalent.
1043
- *
1044
- * @static
1045
- * @memberOf _
1046
- * @since 4.0.0
1047
- * @category Lang
1048
- * @param {*} value The value to compare.
1049
- * @param {*} other The other value to compare.
1050
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
1051
- * @example
1052
- *
1053
- * var object = { 'a': 1 };
1054
- * var other = { 'a': 1 };
1055
- *
1056
- * _.eq(object, object);
1057
- * // => true
1058
- *
1059
- * _.eq(object, other);
1060
- * // => false
1061
- *
1062
- * _.eq('a', 'a');
1063
- * // => true
1064
- *
1065
- * _.eq('a', Object('a'));
1066
- * // => false
1067
- *
1068
- * _.eq(NaN, NaN);
1069
- * // => true
1070
- */
1071
- function eq(value, other) {
1072
- return value === other || value !== value && other !== other;
1073
- }
1074
- /**
1075
- * Checks if `value` is classified as an `Array` object.
1076
- *
1077
- * @static
1078
- * @memberOf _
1079
- * @since 0.1.0
1080
- * @category Lang
1081
- * @param {*} value The value to check.
1082
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
1083
- * @example
1084
- *
1085
- * _.isArray([1, 2, 3]);
1086
- * // => true
1087
- *
1088
- * _.isArray(document.body.children);
1089
- * // => false
1090
- *
1091
- * _.isArray('abc');
1092
- * // => false
1093
- *
1094
- * _.isArray(_.noop);
1095
- * // => false
1096
- */
1097
- var isArray = Array.isArray;
1098
- /**
1099
- * Checks if `value` is classified as a `Function` object.
1100
- *
1101
- * @static
1102
- * @memberOf _
1103
- * @since 0.1.0
1104
- * @category Lang
1105
- * @param {*} value The value to check.
1106
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
1107
- * @example
1108
- *
1109
- * _.isFunction(_);
1110
- * // => true
1111
- *
1112
- * _.isFunction(/abc/);
1113
- * // => false
1114
- */
1115
- function isFunction(value) {
1116
- var tag = isObject(value) ? objectToString.call(value) : "";
1117
- return tag == funcTag || tag == genTag;
1118
- }
1119
- /**
1120
- * Checks if `value` is the
1121
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
1122
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
1123
- *
1124
- * @static
1125
- * @memberOf _
1126
- * @since 0.1.0
1127
- * @category Lang
1128
- * @param {*} value The value to check.
1129
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
1130
- * @example
1131
- *
1132
- * _.isObject({});
1133
- * // => true
1134
- *
1135
- * _.isObject([1, 2, 3]);
1136
- * // => true
1137
- *
1138
- * _.isObject(_.noop);
1139
- * // => true
1140
- *
1141
- * _.isObject(null);
1142
- * // => false
1143
- */
1144
- function isObject(value) {
1145
- var type = typeof value;
1146
- return !!value && (type == "object" || type == "function");
1147
- }
1148
- /**
1149
- * Checks if `value` is object-like. A value is object-like if it's not `null`
1150
- * and has a `typeof` result of "object".
1151
- *
1152
- * @static
1153
- * @memberOf _
1154
- * @since 4.0.0
1155
- * @category Lang
1156
- * @param {*} value The value to check.
1157
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
1158
- * @example
1159
- *
1160
- * _.isObjectLike({});
1161
- * // => true
1162
- *
1163
- * _.isObjectLike([1, 2, 3]);
1164
- * // => true
1165
- *
1166
- * _.isObjectLike(_.noop);
1167
- * // => false
1168
- *
1169
- * _.isObjectLike(null);
1170
- * // => false
1171
- */
1172
- function isObjectLike(value) {
1173
- return !!value && typeof value == "object";
1174
- }
1175
- /**
1176
- * Checks if `value` is classified as a `Symbol` primitive or object.
1177
- *
1178
- * @static
1179
- * @memberOf _
1180
- * @since 4.0.0
1181
- * @category Lang
1182
- * @param {*} value The value to check.
1183
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
1184
- * @example
1185
- *
1186
- * _.isSymbol(Symbol.iterator);
1187
- * // => true
1188
- *
1189
- * _.isSymbol('abc');
1190
- * // => false
1191
- */
1192
- function isSymbol(value) {
1193
- return typeof value == "symbol" || isObjectLike(value) && objectToString.call(value) == symbolTag;
1194
- }
1195
- /**
1196
- * Converts `value` to a string. An empty string is returned for `null`
1197
- * and `undefined` values. The sign of `-0` is preserved.
1198
- *
1199
- * @static
1200
- * @memberOf _
1201
- * @since 4.0.0
1202
- * @category Lang
1203
- * @param {*} value The value to process.
1204
- * @returns {string} Returns the string.
1205
- * @example
1206
- *
1207
- * _.toString(null);
1208
- * // => ''
1209
- *
1210
- * _.toString(-0);
1211
- * // => '-0'
1212
- *
1213
- * _.toString([1, 2, 3]);
1214
- * // => '1,2,3'
1215
- */
1216
- function toString(value) {
1217
- return value == null ? "" : baseToString(value);
1218
- }
1219
- /**
1220
- * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
1221
- * it's created. Arrays are created for missing index properties while objects
1222
- * are created for all other missing properties. Use `_.setWith` to customize
1223
- * `path` creation.
1224
- *
1225
- * **Note:** This method mutates `object`.
1226
- *
1227
- * @static
1228
- * @memberOf _
1229
- * @since 3.7.0
1230
- * @category Object
1231
- * @param {Object} object The object to modify.
1232
- * @param {Array|string} path The path of the property to set.
1233
- * @param {*} value The value to set.
1234
- * @returns {Object} Returns `object`.
1235
- * @example
1236
- *
1237
- * var object = { 'a': [{ 'b': { 'c': 3 } }] };
1238
- *
1239
- * _.set(object, 'a[0].b.c', 4);
1240
- * console.log(object.a[0].b.c);
1241
- * // => 4
1242
- *
1243
- * _.set(object, ['x', '0', 'y', 'z'], 5);
1244
- * console.log(object.x[0].y.z);
1245
- * // => 5
1246
- */
1247
- function set(object, path, value) {
1248
- return object == null ? object : baseSet(object, path, value);
1249
- }
1250
- module.exports = set;
1251
- }));
1252
- //#endregion
1253
- //#region src/endpoints/Endpoint.ts
1254
- var import_lodash_pick = /* @__PURE__ */ require_rolldown_runtime.__toESM(require_lodash_pick(), 1);
1255
- var import_lodash_set = /* @__PURE__ */ require_rolldown_runtime.__toESM(require_lodash_set(), 1);
1256
- /**
1257
- * Represents an HTTP endpoint that can handle requests with type-safe input/output validation,
1258
- * dependency injection, session management, and authorization.
1259
- *
1260
- * @template TRoute - The route path string with parameter placeholders (e.g., '/users/:id')
1261
- * @template TMethod - The HTTP method (GET, POST, PUT, DELETE, PATCH)
1262
- * @template TInput - The input schema definition for body, query, and path parameters
1263
- * @template OutSchema - The output schema for response validation
1264
- * @template TServices - Array of service dependencies to inject
1265
- * @template TLogger - The logger instance type
1266
- * @template TSession - The session data type
1267
- *
1268
- * @extends Function - Base function construct for handler execution
1269
- *
1270
- * @example
1271
- * ```typescript
1272
- * const endpoint = new Endpoint({
1273
- * route: '/users/:id',
1274
- * method: 'GET',
1275
- * input: { params: userIdSchema },
1276
- * output: userSchema,
1277
- * fn: async ({ params }) => getUserById(params.id)
1278
- * });
1279
- * ```
1280
- */
1281
- var Endpoint = class Endpoint extends require_functions.Function {
1282
- operationId;
1283
- /** The route path pattern with parameter placeholders */
1284
- route;
1285
- /** The HTTP method for this endpoint */
1286
- method;
1287
- /**
1288
- * The surface that serves it, when it was built from one.
1289
- *
1290
- * Carries the env parser the adaptors need, so a generated handler needs no
1291
- * import written for it — and the surface's id, so the build attributes the
1292
- * route to the API that serves it rather than inferring it by exclusion.
1293
- */
1294
- surface;
1295
- /** Optional description for OpenAPI documentation */
1296
- description;
1297
- /** Optional tags for OpenAPI documentation */
1298
- tags;
1299
- /** The HTTP success status code to return (default: 200) */
1300
- status;
1301
- /**
1302
- * Response content type for this endpoint. Defaults to `'application/json'`.
1303
- * Non-JSON types cause adaptors to emit the body as-is with the declared
1304
- * Content-Type header instead of JSON-serializing.
1305
- */
1306
- responseType;
1307
- /** Default headers to apply to all responses */
1308
- defaultHeaders = {};
1309
- /** Function to extract session data from the request context */
1310
- getSession = () => ({});
1311
- /** Function to determine if the request is authorized */
1312
- authorize = () => true;
1313
- /** Optional rate limiting configuration */
1314
- rateLimit;
1315
- /** Optional authorizer for this endpoint */
1316
- authorizer;
1317
- /** Optional actor extractor for audit records */
1318
- actorExtractor;
1319
- /** Declarative audit definitions */
1320
- audits = [];
1321
- /** RLS configuration for this endpoint */
1322
- rlsConfig;
1323
- /** Whether to bypass RLS for this endpoint */
1324
- rlsBypass;
1325
- /** The endpoint handler function */
1326
- endpointFn;
1327
- /**
1328
- * Builds a complete OpenAPI 3.1 schema from an array of endpoints.
1329
- *
1330
- * @param endpoints - Array of endpoint instances to document
1331
- * @param options - Optional configuration for OpenAPI generation
1332
- * @returns OpenAPI 3.1 specification object
1333
- *
1334
- * @example
1335
- * ```typescript
1336
- * const schema = await Endpoint.buildOpenApiSchema([
1337
- * getUserEndpoint,
1338
- * createUserEndpoint
1339
- * ], {
1340
- * title: 'User API',
1341
- * version: '1.0.0'
1342
- * });
1343
- * ```
1344
- */
1345
- static async buildOpenApiSchema(endpoints, options) {
1346
- return (0, _geekmidas_schema_openapi.buildOpenApiSchema)(endpoints, options);
1347
- }
1348
- /**
1349
- * Gets the full path including HTTP method and route.
1350
- * @returns Formatted string like 'GET /users/{id}'
1351
- */
1352
- get fullPath() {
1353
- return `${this.method} ${this._path}`;
1354
- }
1355
- /**
1356
- * Parses and validates input data for a specific input type (body, query, params).
1357
- *
1358
- * @param input - The raw input data to validate
1359
- * @param key - The input type key ('body', 'query', or 'params')
1360
- * @returns The validated input data for the specified key
1361
- * @throws {UnprocessableEntityError} When validation fails
1362
- */
1363
- async parseInput(input, key) {
1364
- const schema = this.input?.[key];
1365
- return Endpoint.parseSchema(schema, input);
1366
- }
1367
- /**
1368
- * Parses and validates the request body against the body schema.
1369
- *
1370
- * @param body - The raw request body to validate
1371
- * @returns The validated body data
1372
- * @throws {UnprocessableEntityError} When body validation fails
1373
- */
1374
- async parseBody(body) {
1375
- return this.parseInput(body, "body");
1376
- }
1377
- static isSuccessStatus(status) {
1378
- return status >= 200 && status < 300;
1379
- }
1380
- /**
1381
- * Creates a case-insensitive header lookup function from a headers object.
1382
- *
1383
- * @param headers - Object containing header key-value pairs
1384
- * @returns Function to retrieve header values by case-insensitive key, or all headers
1385
- *
1386
- * @example
1387
- * ```typescript
1388
- * const headerFn = Endpoint.createHeaders({ 'Content-Type': 'application/json' });
1389
- * headerFn('content-type'); // Returns 'application/json'
1390
- * headerFn(); // Returns { 'content-type': 'application/json' }
1391
- * ```
1392
- */
1393
- static createHeaders(headers) {
1394
- const headerMap = /* @__PURE__ */ new Map();
1395
- for (const [k, v] of Object.entries(headers)) {
1396
- const key = k.toLowerCase();
1397
- headerMap.set(key, v);
1398
- }
1399
- function get(key) {
1400
- if (key === void 0) return Object.fromEntries(headerMap.entries());
1401
- return headerMap.get(key.toLowerCase());
1402
- }
1403
- return get;
1404
- }
1405
- /**
1406
- * Parses cookie string and creates a cookie lookup function.
1407
- *
1408
- * @param cookieHeader - The Cookie header value
1409
- * @returns Function to retrieve cookie values by name, or all cookies
1410
- *
1411
- * @example
1412
- * ```typescript
1413
- * const cookieFn = Endpoint.createCookies('session=abc123; theme=dark');
1414
- * cookieFn('session'); // Returns 'abc123'
1415
- * cookieFn(); // Returns { session: 'abc123', theme: 'dark' }
1416
- * ```
1417
- */
1418
- static createCookies(cookieHeader) {
1419
- const cookieMap = /* @__PURE__ */ new Map();
1420
- if (cookieHeader) {
1421
- const cookies = cookieHeader.split(";");
1422
- for (const cookie of cookies) {
1423
- const [name, ...valueParts] = cookie.trim().split("=");
1424
- if (name) {
1425
- const value = valueParts.join("=");
1426
- cookieMap.set(name, decodeURIComponent(value));
1427
- }
1428
- }
1429
- }
1430
- function get(name) {
1431
- if (name === void 0) return Object.fromEntries(cookieMap.entries());
1432
- return cookieMap.get(name);
1433
- }
1434
- return get;
1435
- }
1436
- /**
1437
- * Formats a cookie as a Set-Cookie header string.
1438
- *
1439
- * @param name - Cookie name
1440
- * @param value - Cookie value
1441
- * @param options - Cookie options (httpOnly, secure, sameSite, etc.)
1442
- * @returns Formatted Set-Cookie header string
1443
- *
1444
- * @example
1445
- * ```typescript
1446
- * const header = Endpoint.formatCookieHeader('session', 'abc123', {
1447
- * httpOnly: true,
1448
- * secure: true,
1449
- * sameSite: 'strict',
1450
- * maxAge: 3600
1451
- * });
1452
- * // Returns: "session=abc123; Max-Age=3600; HttpOnly; Secure; SameSite=Strict"
1453
- * ```
1454
- */
1455
- static formatCookieHeader(name, value, options) {
1456
- let cookie = `${name}=${value}`;
1457
- if (options) {
1458
- if (options.domain) cookie += `; Domain=${options.domain}`;
1459
- if (options.path) cookie += `; Path=${options.path}`;
1460
- if (options.expires) cookie += `; Expires=${options.expires.toUTCString()}`;
1461
- if (options.maxAge !== void 0) cookie += `; Max-Age=${options.maxAge}`;
1462
- if (options.httpOnly) cookie += "; HttpOnly";
1463
- if (options.secure) cookie += "; Secure";
1464
- if (options.sameSite) cookie += `; SameSite=${options.sameSite.charAt(0).toUpperCase() + options.sameSite.slice(1)}`;
1465
- }
1466
- return cookie;
1467
- }
1468
- /**
1469
- * Extracts and refines input data from the endpoint context.
1470
- *
1471
- * @param ctx - The endpoint execution context
1472
- * @returns Object containing only the input data (body, query, params)
1473
- * @internal
1474
- */
1475
- refineInput(ctx) {
1476
- return (0, import_lodash_pick.default)(ctx, [
1477
- "body",
1478
- "query",
1479
- "params"
1480
- ]);
1481
- }
1482
- handler = (ctx, response) => {
1483
- for (const [key, value] of Object.entries(this.defaultHeaders)) response.header(key, value);
1484
- const handlerCtx = {
1485
- ...this.refineInput(ctx),
1486
- services: ctx.services,
1487
- logger: ctx.logger,
1488
- header: ctx.header,
1489
- cookie: ctx.cookie,
1490
- session: ctx.session,
1491
- ..."auditor" in ctx && { auditor: ctx.auditor },
1492
- ..."db" in ctx && { db: ctx.db }
1493
- };
1494
- return this.endpointFn(handlerCtx, response);
1495
- };
1496
- /**
1497
- * Type guard to check if an object is an Endpoint instance.
1498
- *
1499
- * @param obj - The object to check
1500
- * @returns True if the object is an Endpoint
1501
- */
1502
- static isEndpoint(obj) {
1503
- return Boolean(obj && obj.__IS_FUNCTION__ === true && obj.type === "dev.geekmidas.function.endpoint");
1504
- }
1505
- /**
1506
- * Helper to check if response has metadata
1507
- */
1508
- static hasMetadata(response) {
1509
- return response !== null && typeof response === "object" && "data" in response && "metadata" in response;
1510
- }
1511
- /**
1512
- * Converts Express-style route params to OpenAPI format.
1513
- * @returns Route with ':param' converted to '{param}'
1514
- * @internal
1515
- */
1516
- get _path() {
1517
- return this.route.replace(/:(\w+)/g, "{$1}");
1518
- }
1519
- /**
1520
- * Generates OpenAPI 3.1 schema for this endpoint.
1521
- *
1522
- * @returns OpenAPI route definition with operation details
1523
- */
1524
- async toOpenApi3Route(componentCollector) {
1525
- const operation = {
1526
- operationId: this.operationId,
1527
- ...this.description && { description: this.description },
1528
- ...this.tags && this.tags.length > 0 && { tags: this.tags },
1529
- responses: { "200": { description: "Successful response" } }
1530
- };
1531
- if (this.outputSchema) {
1532
- const responseSchema = await (0, _geekmidas_schema_conversion.convertSchemaWithComponents)(this.outputSchema, componentCollector);
1533
- if (responseSchema) (0, import_lodash_set.default)(operation, [
1534
- "responses",
1535
- "200",
1536
- "content",
1537
- this.responseType,
1538
- "schema"
1539
- ], responseSchema);
1540
- }
1541
- const pathParameters = [];
1542
- const queryParameters = [];
1543
- if (this.input && typeof this.input === "object") {
1544
- if ([
1545
- "POST",
1546
- "PUT",
1547
- "PATCH"
1548
- ].includes(this.method) && "body" in this.input && this.input.body) {
1549
- const bodySchema = await (0, _geekmidas_schema_conversion.convertSchemaWithComponents)(this.input.body, componentCollector);
1550
- if (bodySchema) (0, import_lodash_set.default)(operation, ["requestBody"], {
1551
- required: true,
1552
- content: { "application/json": { schema: bodySchema } }
1553
- });
1554
- }
1555
- if ("params" in this.input && this.input.params) {
1556
- const paramsSchema = await (0, _geekmidas_schema_conversion.convertStandardSchemaToJsonSchema)(this.input.params);
1557
- if (paramsSchema && paramsSchema.type === "object" && paramsSchema.properties) for (const [name, schema] of Object.entries(paramsSchema.properties)) pathParameters.push({
1558
- name,
1559
- in: "path",
1560
- required: paramsSchema.required?.includes(name) ?? true,
1561
- schema
1562
- });
1563
- }
1564
- if ("query" in this.input && this.input.query) {
1565
- const querySchema = await (0, _geekmidas_schema_conversion.convertStandardSchemaToJsonSchema)(this.input.query);
1566
- if (querySchema && querySchema.type === "object" && querySchema.properties) for (const [name, schema] of Object.entries(querySchema.properties)) queryParameters.push({
1567
- name,
1568
- in: "query",
1569
- required: querySchema.required?.includes(name) ?? false,
1570
- schema
1571
- });
1572
- }
1573
- }
1574
- if (queryParameters.length > 0) operation.parameters = queryParameters;
1575
- const routeObject = {};
1576
- if (pathParameters.length > 0) routeObject.parameters = pathParameters;
1577
- routeObject[this.method.toLowerCase()] = operation;
1578
- return { [this._path]: routeObject };
1579
- }
1580
- /**
1581
- * Creates a new Endpoint instance.
1582
- *
1583
- * @param options - Configuration options for the endpoint
1584
- * @param options.fn - The handler function to execute
1585
- * @param options.method - HTTP method
1586
- * @param options.route - Route path with parameter placeholders
1587
- * @param options.description - Optional description for documentation
1588
- * @param options.input - Input schemas for validation
1589
- * @param options.logger - Logger instance
1590
- * @param options.output - Output schema for response validation
1591
- * @param options.services - Service dependencies
1592
- * @param options.timeout - Execution timeout in milliseconds
1593
- * @param options.getSession - Session extraction function
1594
- * @param options.authorize - Authorization check function
1595
- * @param options.status - Success HTTP status code (default: 200)
1596
- * @param options.authorizer - Optional authorizer configuration
1597
- */
1598
- constructor({ fn, method, route, description, tags, input, logger, output: outputSchema, services, constructs, timeout, memorySize, getSession, authorize, rateLimit, status = 200, publisherService, events, authorizer, surface, auditorStorageService, actorExtractor, audits, databaseService, rlsConfig, rlsBypass, responseType }) {
1599
- super(fn, timeout, "dev.geekmidas.function.endpoint", input, outputSchema, services, logger, publisherService, events, memorySize, auditorStorageService, void 0, constructs);
1600
- this.route = route;
1601
- this.method = method;
1602
- this.description = description;
1603
- this.tags = tags;
1604
- this.status = status;
1605
- this.responseType = responseType ?? "application/json";
1606
- this.endpointFn = fn;
1607
- if (getSession) this.getSession = getSession;
1608
- if (authorize) this.authorize = authorize;
1609
- if (rateLimit) this.rateLimit = rateLimit;
1610
- if (authorizer) this.authorizer = authorizer;
1611
- this.surface = surface;
1612
- if (actorExtractor) this.actorExtractor = actorExtractor;
1613
- if (audits) this.audits = audits;
1614
- if (databaseService) this.databaseService = databaseService;
1615
- if (rlsConfig) this.rlsConfig = rlsConfig;
1616
- if (rlsBypass) this.rlsBypass = rlsBypass;
1617
- }
1618
- };
1619
- /**
1620
- * Response builder for fluent API in handlers
1621
- */
1622
- var ResponseBuilder = class {
1623
- metadata = {
1624
- headers: {},
1625
- cookies: /* @__PURE__ */ new Map()
1626
- };
1627
- header(key, value) {
1628
- this.metadata.headers[key] = value;
1629
- return this;
1630
- }
1631
- cookie(name, value, options) {
1632
- this.metadata.cookies?.set(name, {
1633
- value,
1634
- options
1635
- });
1636
- return this;
1637
- }
1638
- deleteCookie(name, options) {
1639
- this.metadata.cookies?.set(name, {
1640
- value: "",
1641
- options: {
1642
- ...options,
1643
- maxAge: 0,
1644
- expires: /* @__PURE__ */ new Date(0)
1645
- }
1646
- });
1647
- return this;
1648
- }
1649
- status(code) {
1650
- this.metadata.status = code;
1651
- return this;
1652
- }
1653
- send(data) {
1654
- return {
1655
- data,
1656
- metadata: this.metadata
1657
- };
1658
- }
1659
- getMetadata() {
1660
- return this.metadata;
1661
- }
1662
- };
1663
- //#endregion
1664
- Object.defineProperty(exports, "Endpoint", {
1665
- enumerable: true,
1666
- get: function() {
1667
- return Endpoint;
1668
- }
1669
- });
1670
- Object.defineProperty(exports, "ResponseBuilder", {
1671
- enumerable: true,
1672
- get: function() {
1673
- return ResponseBuilder;
1674
- }
1675
- });
1676
- Object.defineProperty(exports, "require_lodash_set", {
1677
- enumerable: true,
1678
- get: function() {
1679
- return require_lodash_set;
1680
- }
1681
- });
1682
-
1683
- //# sourceMappingURL=Endpoint-s0AyrQGC.cjs.map