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