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