@geekmidas/constructs 10.0.0-alpha.17 → 10.0.0-alpha.171
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 +246 -158
- package/dist/Construct-127M7yrl.d.cts +231 -0
- package/dist/Construct-127M7yrl.d.cts.map +1 -0
- package/dist/Construct-BMk_CRSD.d.mts +231 -0
- package/dist/Construct-BMk_CRSD.d.mts.map +1 -0
- package/dist/{Construct-BeYVu_QF.mjs → Construct-CGuc_Ijk.mjs} +8 -9
- package/dist/Construct-CGuc_Ijk.mjs.map +1 -0
- package/dist/{Construct-DqdlARxq.cjs → Construct-DorKS0Ua.cjs} +8 -9
- package/dist/Construct-DorKS0Ua.cjs.map +1 -0
- package/dist/{Cron-l4Wlz6G9.d.mts → Cron-BcA8F0S-.d.cts} +16 -9
- package/dist/Cron-BcA8F0S-.d.cts.map +1 -0
- package/dist/{Cron-zsoSAwZo.d.cts → Cron-z2CiuQT_.d.mts} +15 -8
- package/dist/Cron-z2CiuQT_.d.mts.map +1 -0
- package/dist/{CronBuilder-D_0HNBTr.mjs → CronBuilder-BJ5LoadF.mjs} +28 -11
- package/dist/CronBuilder-BJ5LoadF.mjs.map +1 -0
- package/dist/CronBuilder-BZvo34X2.d.cts +47 -0
- package/dist/CronBuilder-BZvo34X2.d.cts.map +1 -0
- package/dist/{CronBuilder-BdnI6lxF.cjs → CronBuilder-B_NSP-Y5.cjs} +27 -10
- package/dist/CronBuilder-B_NSP-Y5.cjs.map +1 -0
- package/dist/CronBuilder-BbgKo8OI.d.mts +47 -0
- package/dist/CronBuilder-BbgKo8OI.d.mts.map +1 -0
- package/dist/Endpoint-52z1P0Ue.cjs +581 -0
- package/dist/Endpoint-52z1P0Ue.cjs.map +1 -0
- package/dist/{Endpoint-oS-Fe3d_.d.mts → Endpoint-CIDUreMW.d.mts} +104 -23
- package/dist/Endpoint-CIDUreMW.d.mts.map +1 -0
- package/dist/{Endpoint-DBflWAe4.d.cts → Endpoint-COisi9jw.d.cts} +101 -20
- package/dist/Endpoint-COisi9jw.d.cts.map +1 -0
- package/dist/Endpoint-sUOU7uLx.mjs +552 -0
- package/dist/Endpoint-sUOU7uLx.mjs.map +1 -0
- package/dist/{EndpointFactory-Bm3aKRdV.mjs → EndpointFactory-Bzi9Sl7r.mjs} +269 -53
- package/dist/EndpointFactory-Bzi9Sl7r.mjs.map +1 -0
- package/dist/{index-Cc4kKPag.d.mts → EndpointFactory-CIM80WIK.d.mts} +189 -106
- package/dist/EndpointFactory-CIM80WIK.d.mts.map +1 -0
- package/dist/{index-C1ZwNOOk.d.cts → EndpointFactory-CfBg6jJE.d.cts} +187 -104
- package/dist/EndpointFactory-CfBg6jJE.d.cts.map +1 -0
- package/dist/{EndpointFactory-CLvWuHyt.cjs → EndpointFactory-Cf_Cs1ym.cjs} +309 -51
- package/dist/EndpointFactory-Cf_Cs1ym.cjs.map +1 -0
- package/dist/Function-BIEsY0Hm.d.cts +76 -0
- package/dist/Function-BIEsY0Hm.d.cts.map +1 -0
- package/dist/Function-BKReud5p.d.mts +76 -0
- package/dist/Function-BKReud5p.d.mts.map +1 -0
- package/dist/{HonoEndpointAdaptor-92zavCsV.cjs → HonoEndpointAdaptor-BTbqfSaa.cjs} +115 -41
- package/dist/HonoEndpointAdaptor-BTbqfSaa.cjs.map +1 -0
- package/dist/{HonoEndpointAdaptor-yYaU7jVJ.mjs → HonoEndpointAdaptor-CBVey2cY.mjs} +112 -38
- package/dist/HonoEndpointAdaptor-CBVey2cY.mjs.map +1 -0
- package/dist/ObjectSubscriberBuilder-Ci_Cc-WZ.d.mts +129 -0
- package/dist/ObjectSubscriberBuilder-Ci_Cc-WZ.d.mts.map +1 -0
- package/dist/ObjectSubscriberBuilder-DWtLxfAJ.d.cts +129 -0
- package/dist/ObjectSubscriberBuilder-DWtLxfAJ.d.cts.map +1 -0
- package/dist/ProcessorBuilder-CdLwJK4k.d.mts +216 -0
- package/dist/ProcessorBuilder-CdLwJK4k.d.mts.map +1 -0
- package/dist/ProcessorBuilder-ClD7tmEe.d.cts +216 -0
- package/dist/ProcessorBuilder-ClD7tmEe.d.cts.map +1 -0
- package/dist/Queue-9Hh20ZCk.mjs +104 -0
- package/dist/Queue-9Hh20ZCk.mjs.map +1 -0
- package/dist/{Queue-D9X6OoON.d.mts → Queue-B8HGg439.d.mts} +42 -41
- package/dist/Queue-B8HGg439.d.mts.map +1 -0
- package/dist/{Queue-DYPB2KWL.d.cts → Queue-C4rijiM7.d.cts} +43 -42
- package/dist/Queue-C4rijiM7.d.cts.map +1 -0
- package/dist/Queue-W1wueijP.cjs +109 -0
- package/dist/Queue-W1wueijP.cjs.map +1 -0
- package/dist/QueueBuilder-BDcv9B71.cjs +135 -0
- package/dist/QueueBuilder-BDcv9B71.cjs.map +1 -0
- package/dist/QueueBuilder-CjULiiDN.d.mts +75 -0
- package/dist/QueueBuilder-CjULiiDN.d.mts.map +1 -0
- package/dist/QueueBuilder-CrZL8HHs.mjs +118 -0
- package/dist/QueueBuilder-CrZL8HHs.mjs.map +1 -0
- package/dist/QueueBuilder-Dacm9qAv.d.cts +75 -0
- package/dist/QueueBuilder-Dacm9qAv.d.cts.map +1 -0
- package/dist/Subscriber-5rCX1Nph.d.cts +83 -0
- package/dist/Subscriber-5rCX1Nph.d.cts.map +1 -0
- package/dist/Subscriber-CtQXhcL7.d.mts +83 -0
- package/dist/Subscriber-CtQXhcL7.d.mts.map +1 -0
- package/dist/SubscriberBuilder-CpFhShTJ.mjs +238 -0
- package/dist/SubscriberBuilder-CpFhShTJ.mjs.map +1 -0
- package/dist/SubscriberBuilder-DJEvNRdD.cjs +261 -0
- package/dist/SubscriberBuilder-DJEvNRdD.cjs.map +1 -0
- package/dist/Topic-BGoOeCT6.mjs +99 -0
- package/dist/Topic-BGoOeCT6.mjs.map +1 -0
- package/dist/Topic-DLCZBNwK.cjs +104 -0
- package/dist/Topic-DLCZBNwK.cjs.map +1 -0
- package/dist/adaptors/aws.cjs +147 -168
- package/dist/adaptors/aws.cjs.map +1 -1
- package/dist/adaptors/aws.d.cts +57 -48
- package/dist/adaptors/aws.d.cts.map +1 -1
- package/dist/adaptors/aws.d.mts +58 -49
- package/dist/adaptors/aws.d.mts.map +1 -1
- package/dist/adaptors/aws.mjs +142 -164
- package/dist/adaptors/aws.mjs.map +1 -1
- package/dist/adaptors/awsWebsocket.cjs +354 -0
- package/dist/adaptors/awsWebsocket.cjs.map +1 -0
- package/dist/adaptors/awsWebsocket.d.cts +156 -0
- package/dist/adaptors/awsWebsocket.d.cts.map +1 -0
- package/dist/adaptors/awsWebsocket.d.mts +156 -0
- package/dist/adaptors/awsWebsocket.d.mts.map +1 -0
- package/dist/adaptors/awsWebsocket.mjs +347 -0
- package/dist/adaptors/awsWebsocket.mjs.map +1 -0
- package/dist/adaptors/hono.cjs +1 -1
- package/dist/adaptors/hono.d.cts +8 -7
- package/dist/adaptors/hono.d.cts.map +1 -1
- package/dist/adaptors/hono.d.mts +10 -9
- package/dist/adaptors/hono.d.mts.map +1 -1
- package/dist/adaptors/hono.mjs +1 -1
- package/dist/adaptors/testing.cjs +1174 -41
- package/dist/adaptors/testing.cjs.map +1 -1
- package/dist/adaptors/testing.d.cts +517 -40
- package/dist/adaptors/testing.d.cts.map +1 -1
- package/dist/adaptors/testing.d.mts +517 -40
- package/dist/adaptors/testing.d.mts.map +1 -1
- package/dist/adaptors/testing.mjs +1140 -36
- package/dist/adaptors/testing.mjs.map +1 -1
- package/dist/auth-CutSfNlr.d.mts +274 -0
- package/dist/auth-CutSfNlr.d.mts.map +1 -0
- package/dist/auth-b9ADezz9.d.cts +274 -0
- package/dist/auth-b9ADezz9.d.cts.map +1 -0
- package/dist/auth.cjs +311 -26
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.d.cts +2 -104
- package/dist/auth.d.mts +2 -104
- package/dist/auth.mjs +307 -28
- package/dist/auth.mjs.map +1 -1
- package/dist/cache-9wLNSy3O.d.cts +44 -0
- package/dist/cache-9wLNSy3O.d.cts.map +1 -0
- package/dist/cache-BFPs_CGs.d.mts +44 -0
- package/dist/cache-BFPs_CGs.d.mts.map +1 -0
- package/dist/cache.cjs +4 -20
- package/dist/cache.cjs.map +1 -1
- package/dist/cache.d.cts +2 -43
- package/dist/cache.d.mts +2 -43
- package/dist/cache.mjs +4 -20
- package/dist/cache.mjs.map +1 -1
- 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/{construct-interface-DPlxfpoS.d.mts → construct-interface-CVoejIpo.d.cts} +79 -8
- package/dist/construct-interface-CVoejIpo.d.cts.map +1 -0
- package/dist/{construct-interface-DgXTJcOD.d.cts → construct-interface-Nw5Dt9AC.d.mts} +79 -8
- package/dist/construct-interface-Nw5Dt9AC.d.mts.map +1 -0
- package/dist/construct-interface.cjs +62 -4
- package/dist/construct-interface.cjs.map +1 -1
- package/dist/construct-interface.d.cts +2 -2
- package/dist/construct-interface.d.mts +2 -2
- package/dist/construct-interface.mjs +59 -5
- package/dist/construct-interface.mjs.map +1 -1
- package/dist/credential-B80mOxwT.mjs +222 -0
- package/dist/credential-B80mOxwT.mjs.map +1 -0
- package/dist/credential-RlgbzZAc.cjs +257 -0
- package/dist/credential-RlgbzZAc.cjs.map +1 -0
- package/dist/credential.cjs +7 -129
- package/dist/credential.d.cts +2 -58
- package/dist/credential.d.mts +2 -58
- package/dist/credential.mjs +2 -128
- package/dist/crons/index.cjs +127 -1
- package/dist/crons/index.cjs.map +1 -1
- package/dist/crons/index.d.cts +43 -3
- package/dist/crons/index.d.cts.map +1 -1
- package/dist/crons/index.d.mts +43 -3
- package/dist/crons/index.d.mts.map +1 -1
- package/dist/crons/index.mjs +126 -2
- package/dist/crons/index.mjs.map +1 -1
- package/dist/database/kysely.cjs +3 -194
- package/dist/database/kysely.d.cts +2 -149
- package/dist/database/kysely.d.mts +2 -149
- package/dist/database/kysely.mjs +2 -192
- package/dist/email.cjs +24 -17
- package/dist/email.cjs.map +1 -1
- package/dist/email.d.cts +15 -5
- package/dist/email.d.cts.map +1 -1
- package/dist/email.d.mts +16 -6
- package/dist/email.d.mts.map +1 -1
- package/dist/email.mjs +23 -17
- 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 +32 -10
- package/dist/endpoints/index.d.cts +106 -3
- package/dist/endpoints/index.d.cts.map +1 -0
- package/dist/endpoints/index.d.mts +106 -3
- package/dist/endpoints/index.d.mts.map +1 -0
- package/dist/endpoints/index.mjs +6 -4
- 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/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-JI5uN1SF.d.cts +201 -0
- package/dist/fake-JI5uN1SF.d.cts.map +1 -0
- package/dist/fake-zpuXpBmY.d.mts +201 -0
- package/dist/fake-zpuXpBmY.d.mts.map +1 -0
- package/dist/file-server.cjs +170 -49
- package/dist/file-server.cjs.map +1 -1
- package/dist/file-server.d.cts +148 -16
- package/dist/file-server.d.cts.map +1 -1
- package/dist/file-server.d.mts +148 -16
- package/dist/file-server.d.mts.map +1 -1
- package/dist/file-server.mjs +168 -51
- package/dist/file-server.mjs.map +1 -1
- package/dist/functions/index.cjs +1 -1
- package/dist/functions/index.d.cts +2 -1
- package/dist/functions/index.d.mts +2 -1
- package/dist/functions/index.mjs +1 -1
- package/dist/{functions-C53GW2eQ.mjs → functions-BvIDQKAA.mjs} +117 -22
- package/dist/functions-BvIDQKAA.mjs.map +1 -0
- package/dist/{functions-B6qCvfmy.cjs → functions-DLF6-IK8.cjs} +122 -18
- package/dist/functions-DLF6-IK8.cjs.map +1 -0
- package/dist/inbox-CXLU7h_8.d.cts +195 -0
- package/dist/inbox-CXLU7h_8.d.cts.map +1 -0
- package/dist/inbox-DYFsLd9A.d.mts +195 -0
- package/dist/inbox-DYFsLd9A.d.mts.map +1 -0
- package/dist/inbox.cjs +291 -0
- package/dist/inbox.cjs.map +1 -0
- package/dist/inbox.d.cts +2 -0
- package/dist/inbox.d.mts +2 -0
- package/dist/inbox.mjs +283 -0
- package/dist/inbox.mjs.map +1 -0
- package/dist/index-BpE9_6l5.d.mts +115 -0
- package/dist/index-BpE9_6l5.d.mts.map +1 -0
- package/dist/{index-CeEtxDmK.d.cts → index-DdRjYhiJ.d.cts} +42 -2
- package/dist/{index-CeEtxDmK.d.cts.map → index-DdRjYhiJ.d.cts.map} +1 -1
- package/dist/{index-CeEtxDmK.d.mts → index-DdRjYhiJ.d.mts} +42 -2
- package/dist/{index-CeEtxDmK.d.mts.map → index-DdRjYhiJ.d.mts.map} +1 -1
- package/dist/index-zRChehJ9.d.cts +115 -0
- package/dist/index-zRChehJ9.d.cts.map +1 -0
- package/dist/index.cjs +4 -1
- package/dist/index.d.cts +26 -3
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +26 -3
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +3 -2
- package/dist/kysely-5PAqFBzo.d.mts +216 -0
- package/dist/kysely-5PAqFBzo.d.mts.map +1 -0
- package/dist/kysely-Bc9xzaik.mjs +371 -0
- package/dist/kysely-Bc9xzaik.mjs.map +1 -0
- package/dist/kysely-D7f6J2lh.cjs +384 -0
- package/dist/kysely-D7f6J2lh.cjs.map +1 -0
- package/dist/kysely-lxNUBSTP.d.cts +216 -0
- package/dist/kysely-lxNUBSTP.d.cts.map +1 -0
- package/dist/{telemetry-DGcFlVpB.d.cts → lambdaTelemetry-8vnmVZQ5.d.cts} +2 -2
- package/dist/lambdaTelemetry-8vnmVZQ5.d.cts.map +1 -0
- package/dist/{telemetry-DGcFlVpB.d.mts → lambdaTelemetry-8vnmVZQ5.d.mts} +2 -2
- package/dist/lambdaTelemetry-8vnmVZQ5.d.mts.map +1 -0
- package/dist/mobile-app.cjs +79 -0
- package/dist/mobile-app.cjs.map +1 -0
- package/dist/mobile-app.d.cts +78 -0
- package/dist/mobile-app.d.cts.map +1 -0
- package/dist/mobile-app.d.mts +78 -0
- package/dist/mobile-app.d.mts.map +1 -0
- package/dist/mobile-app.mjs +78 -0
- package/dist/mobile-app.mjs.map +1 -0
- package/dist/object-storage.cjs +50 -7
- package/dist/object-storage.cjs.map +1 -1
- package/dist/object-storage.d.cts +37 -3
- package/dist/object-storage.d.cts.map +1 -1
- package/dist/object-storage.d.mts +37 -3
- package/dist/object-storage.d.mts.map +1 -1
- package/dist/object-storage.mjs +49 -9
- package/dist/object-storage.mjs.map +1 -1
- package/dist/optionalPeers-D7Wt6dnF.mjs +140 -0
- package/dist/optionalPeers-D7Wt6dnF.mjs.map +1 -0
- package/dist/optionalPeers-DuNQXXe1.cjs +223 -0
- package/dist/optionalPeers-DuNQXXe1.cjs.map +1 -0
- package/dist/origins-BjxYht13.cjs +96 -0
- package/dist/origins-BjxYht13.cjs.map +1 -0
- package/dist/origins-Boc9qbo-.mjs +73 -0
- package/dist/origins-Boc9qbo-.mjs.map +1 -0
- package/dist/pattern-C1CEcglD.mjs +241 -0
- package/dist/pattern-C1CEcglD.mjs.map +1 -0
- package/dist/pattern-QFaUIr77.cjs +288 -0
- package/dist/pattern-QFaUIr77.cjs.map +1 -0
- package/dist/privateAddress-Bg5fUsbp.mjs +21 -0
- package/dist/privateAddress-Bg5fUsbp.mjs.map +1 -0
- package/dist/privateAddress-CqGyuFHn.cjs +26 -0
- package/dist/privateAddress-CqGyuFHn.cjs.map +1 -0
- package/dist/processors/index.cjs +214 -0
- package/dist/processors/index.cjs.map +1 -0
- package/dist/processors/index.d.cts +78 -0
- package/dist/processors/index.d.cts.map +1 -0
- package/dist/processors/index.d.mts +78 -0
- package/dist/processors/index.d.mts.map +1 -0
- package/dist/processors/index.mjs +193 -0
- package/dist/processors/index.mjs.map +1 -0
- package/dist/queue/index.cjs +5 -192
- package/dist/queue/index.d.cts +3 -53
- package/dist/queue/index.d.mts +3 -53
- package/dist/queue/index.mjs +3 -190
- 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/readOnlyStorage-C7bCe-z5.cjs +101 -0
- package/dist/readOnlyStorage-C7bCe-z5.cjs.map +1 -0
- package/dist/readOnlyStorage-DMCeLuS2.mjs +78 -0
- package/dist/readOnlyStorage-DMCeLuS2.mjs.map +1 -0
- package/dist/readRequestBody-BmKnPl0a.mjs +293 -0
- package/dist/readRequestBody-BmKnPl0a.mjs.map +1 -0
- package/dist/{lazyAccessors-Dx9NLwJZ.cjs → readRequestBody-CN9GVdeE.cjs} +141 -47
- package/dist/readRequestBody-CN9GVdeE.cjs.map +1 -0
- package/dist/{processAudits-D_2W5x8k.cjs → requestLogger-CnoYd-Ah.cjs} +63 -3
- package/dist/requestLogger-CnoYd-Ah.cjs.map +1 -0
- package/dist/{processAudits-BpRlPQMW.mjs → requestLogger-D2JS7pPM.mjs} +51 -3
- package/dist/requestLogger-D2JS7pPM.mjs.map +1 -0
- package/dist/rest-api.cjs +100 -73
- package/dist/rest-api.cjs.map +1 -1
- package/dist/rest-api.d.cts +83 -59
- package/dist/rest-api.d.cts.map +1 -1
- package/dist/rest-api.d.mts +83 -59
- package/dist/rest-api.d.mts.map +1 -1
- package/dist/rest-api.mjs +97 -76
- package/dist/rest-api.mjs.map +1 -1
- package/dist/runSubscriber-HEqXkin1.mjs +117 -0
- package/dist/runSubscriber-HEqXkin1.mjs.map +1 -0
- package/dist/runSubscriber-sVJfLA0-.cjs +134 -0
- package/dist/runSubscriber-sVJfLA0-.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 +140 -10
- package/dist/site.cjs.map +1 -1
- package/dist/site.d.cts +156 -3
- package/dist/site.d.cts.map +1 -1
- package/dist/site.d.mts +156 -3
- package/dist/site.d.mts.map +1 -1
- package/dist/site.mjs +120 -13
- package/dist/site.mjs.map +1 -1
- package/dist/stages-DaTaoQei.d.cts +73 -0
- package/dist/stages-DaTaoQei.d.cts.map +1 -0
- package/dist/stages-DaTaoQei.d.mts +73 -0
- package/dist/stages-DaTaoQei.d.mts.map +1 -0
- package/dist/subscribers/index.cjs +134 -1
- package/dist/subscribers/index.cjs.map +1 -0
- package/dist/subscribers/index.d.cts +74 -3
- package/dist/subscribers/index.d.cts.map +1 -0
- package/dist/subscribers/index.d.mts +74 -3
- package/dist/subscribers/index.d.mts.map +1 -0
- package/dist/subscribers/index.mjs +132 -2
- package/dist/subscribers/index.mjs.map +1 -0
- package/dist/telemetry-BbLyS7ln.d.cts +57 -0
- package/dist/telemetry-BbLyS7ln.d.cts.map +1 -0
- package/dist/telemetry-DWX-qKUh.d.mts +57 -0
- package/dist/telemetry-DWX-qKUh.d.mts.map +1 -0
- package/dist/telemetry.cjs +64 -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 +63 -0
- package/dist/telemetry.mjs.map +1 -0
- package/dist/topic/index.cjs +2 -134
- package/dist/topic/index.d.cts +2 -3
- package/dist/topic/index.d.mts +2 -3
- package/dist/topic/index.mjs +2 -132
- 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/websocket-api-9ndLBolx.d.cts +1207 -0
- package/dist/websocket-api-9ndLBolx.d.cts.map +1 -0
- package/dist/websocket-api-BPPXF79i.d.mts +1207 -0
- package/dist/websocket-api-BPPXF79i.d.mts.map +1 -0
- package/dist/websocket-api-C6LGg9-D.mjs +1716 -0
- package/dist/websocket-api-C6LGg9-D.mjs.map +1 -0
- package/dist/websocket-api-CoKPJJRl.cjs +1895 -0
- package/dist/websocket-api-CoKPJJRl.cjs.map +1 -0
- package/dist/websocket-api.cjs +42 -0
- package/dist/websocket-api.d.cts +2 -0
- package/dist/websocket-api.d.mts +2 -0
- package/dist/websocket-api.mjs +3 -0
- package/dist/worker.cjs +174 -32
- package/dist/worker.cjs.map +1 -1
- package/dist/worker.d.cts +147 -47
- package/dist/worker.d.cts.map +1 -1
- package/dist/worker.d.mts +147 -47
- package/dist/worker.d.mts.map +1 -1
- package/dist/worker.mjs +175 -33
- package/dist/worker.mjs.map +1 -1
- package/package.json +180 -43
- package/dist/Construct-BeYVu_QF.mjs.map +0 -1
- package/dist/Construct-DfbwIntp.d.cts +0 -115
- package/dist/Construct-DfbwIntp.d.cts.map +0 -1
- package/dist/Construct-DqdlARxq.cjs.map +0 -1
- package/dist/Construct-l5aOn_jv.d.mts +0 -115
- package/dist/Construct-l5aOn_jv.d.mts.map +0 -1
- package/dist/Cron-l4Wlz6G9.d.mts.map +0 -1
- package/dist/Cron-zsoSAwZo.d.cts.map +0 -1
- package/dist/CronBuilder-BdnI6lxF.cjs.map +0 -1
- package/dist/CronBuilder-CyT71Nzg.d.cts +0 -41
- package/dist/CronBuilder-CyT71Nzg.d.cts.map +0 -1
- package/dist/CronBuilder-D_0HNBTr.mjs.map +0 -1
- package/dist/CronBuilder-UoNgFe8S.d.mts +0 -41
- package/dist/CronBuilder-UoNgFe8S.d.mts.map +0 -1
- package/dist/Endpoint-BpZHtJ2W.cjs +0 -1689
- package/dist/Endpoint-BpZHtJ2W.cjs.map +0 -1
- package/dist/Endpoint-DBflWAe4.d.cts.map +0 -1
- package/dist/Endpoint-ONsly_dq.mjs +0 -1671
- package/dist/Endpoint-ONsly_dq.mjs.map +0 -1
- package/dist/Endpoint-oS-Fe3d_.d.mts.map +0 -1
- package/dist/EndpointFactory-Bm3aKRdV.mjs.map +0 -1
- package/dist/EndpointFactory-CLvWuHyt.cjs.map +0 -1
- package/dist/HonoEndpointAdaptor-92zavCsV.cjs.map +0 -1
- package/dist/HonoEndpointAdaptor-yYaU7jVJ.mjs.map +0 -1
- package/dist/Queue-D9X6OoON.d.mts.map +0 -1
- package/dist/Queue-DYPB2KWL.d.cts.map +0 -1
- package/dist/Subscriber-C4heaAyO.d.mts +0 -51
- package/dist/Subscriber-C4heaAyO.d.mts.map +0 -1
- package/dist/Subscriber-CotDUELC.d.cts +0 -51
- package/dist/Subscriber-CotDUELC.d.cts.map +0 -1
- package/dist/SubscriberBuilder-BEv0eoHy.d.cts +0 -59
- package/dist/SubscriberBuilder-BEv0eoHy.d.cts.map +0 -1
- package/dist/SubscriberBuilder-C0ZEtGDI.cjs +0 -125
- package/dist/SubscriberBuilder-C0ZEtGDI.cjs.map +0 -1
- package/dist/SubscriberBuilder-h7B_cHMr.mjs +0 -114
- package/dist/SubscriberBuilder-h7B_cHMr.mjs.map +0 -1
- package/dist/SubscriberBuilder-tyH5yTk5.d.mts +0 -59
- package/dist/SubscriberBuilder-tyH5yTk5.d.mts.map +0 -1
- package/dist/Topic-DEVGo0Dm.d.cts +0 -89
- package/dist/Topic-DEVGo0Dm.d.cts.map +0 -1
- package/dist/Topic-zk_6Gthr.d.mts +0 -89
- package/dist/Topic-zk_6Gthr.d.mts.map +0 -1
- package/dist/auth.d.cts.map +0 -1
- package/dist/auth.d.mts.map +0 -1
- package/dist/cache.d.cts.map +0 -1
- package/dist/cache.d.mts.map +0 -1
- package/dist/construct-interface-DPlxfpoS.d.mts.map +0 -1
- package/dist/construct-interface-DgXTJcOD.d.cts.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-B6qCvfmy.cjs.map +0 -1
- package/dist/functions-C53GW2eQ.mjs.map +0 -1
- package/dist/index-B2urf3YI.d.cts +0 -26
- package/dist/index-B2urf3YI.d.cts.map +0 -1
- package/dist/index-C1ZwNOOk.d.cts.map +0 -1
- package/dist/index-Cc4kKPag.d.mts.map +0 -1
- package/dist/index-DMCDvnsM.d.mts +0 -26
- package/dist/index-DMCDvnsM.d.mts.map +0 -1
- package/dist/index-D_frT6MP.d.cts +0 -165
- package/dist/index-D_frT6MP.d.cts.map +0 -1
- package/dist/index-DcyIYbDS.d.mts +0 -165
- package/dist/index-DcyIYbDS.d.mts.map +0 -1
- package/dist/lazyAccessors-BHtcqgz2.mjs +0 -211
- package/dist/lazyAccessors-BHtcqgz2.mjs.map +0 -1
- package/dist/lazyAccessors-Dx9NLwJZ.cjs.map +0 -1
- package/dist/processAudits-BpRlPQMW.mjs.map +0 -1
- package/dist/processAudits-D_2W5x8k.cjs.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/telemetry-DGcFlVpB.d.cts.map +0 -1
- package/dist/telemetry-DGcFlVpB.d.mts.map +0 -1
- package/dist/topic/index.cjs.map +0 -1
- package/dist/topic/index.mjs.map +0 -1
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_cipher = require("./cipher-CVxfwLjk.cjs");
|
|
3
|
+
let _geekmidas_manifest = require("@geekmidas/manifest");
|
|
4
|
+
//#region src/encryption.ts
|
|
5
|
+
/**
|
|
6
|
+
* `Encryption` — a key that encrypts what the application stores.
|
|
7
|
+
*
|
|
8
|
+
* ```ts
|
|
9
|
+
* export const pii = new Encryption('Pii');
|
|
10
|
+
*
|
|
11
|
+
* // an endpoint that `.dependsOn([pii])`
|
|
12
|
+
* const email = await services.pii.encrypt(body.email);
|
|
13
|
+
* const emailIndex = await services.pii.index(body.email);
|
|
14
|
+
* await db.insertInto('users').values({ email, emailIndex }).execute();
|
|
15
|
+
*
|
|
16
|
+
* // and to find them again, without decrypting a column
|
|
17
|
+
* db.selectFrom('users').where('emailIndex', '=', await services.pii.index(q));
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* The app names no cipher and holds no key. The construct provides one URL,
|
|
21
|
+
* `<ID>_URL`, and its scheme picks the backend the way a queue's connection
|
|
22
|
+
* string picks its broker:
|
|
23
|
+
*
|
|
24
|
+
* - **AWS** — `kms://`: envelope encryption under a KMS key that rotates
|
|
25
|
+
* yearly, and a KMS HMAC key for the index. Only a function that depends on
|
|
26
|
+
* the construct is granted either key.
|
|
27
|
+
* - **Server, local, tests** — `aes256gcm://`: a keyring the process holds.
|
|
28
|
+
* Derived locally, so `gkm dev` and `gkm test` need nothing set; generated
|
|
29
|
+
* into a server stage's secrets on its first deploy, and rotated there with
|
|
30
|
+
* `gkm encryption:rotate`.
|
|
31
|
+
*
|
|
32
|
+
* Every ciphertext names the key that wrote it, so a rotated key still opens
|
|
33
|
+
* what it wrote. Retiring one is explicit — `reencrypt` the column, then
|
|
34
|
+
* `gkm encryption:retire` — and a value still under an old key says so when it
|
|
35
|
+
* is decrypted, once per key per process.
|
|
36
|
+
*/
|
|
37
|
+
const drivers = /* @__PURE__ */ new Map();
|
|
38
|
+
/** Make a cipher available for its scheme. Idempotent. */
|
|
39
|
+
function registerCipherDriver(driver) {
|
|
40
|
+
drivers.set(driver.scheme, driver);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* A key whose URL names a cipher this process registered no driver for —
|
|
44
|
+
* `kms:` in an entry built for a target whose keys are local.
|
|
45
|
+
*/
|
|
46
|
+
var UnregisteredEncryptionScheme = class extends Error {
|
|
47
|
+
construct;
|
|
48
|
+
scheme;
|
|
49
|
+
constructor(construct, scheme) {
|
|
50
|
+
super(`${construct}'s key is a '${scheme}' URL, and this build registered no cipher for it. ` + (scheme === _geekmidas_manifest.KMS_SCHEME ? "A KMS key is an AWS target's: build for it (gkm build --provider aws), which registers the KMS cipher and needs @aws-sdk/client-kms installed." : "Register its driver with registerCipherDriver before the first request."));
|
|
51
|
+
this.construct = construct;
|
|
52
|
+
this.scheme = scheme;
|
|
53
|
+
this.name = "UnregisteredEncryptionScheme";
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
var Encryption = class {
|
|
57
|
+
id;
|
|
58
|
+
service;
|
|
59
|
+
/**
|
|
60
|
+
* Declared once and read by both `declare()` and `connect()`, so the key the
|
|
61
|
+
* target publishes and the key the client reads cannot drift.
|
|
62
|
+
*/
|
|
63
|
+
key;
|
|
64
|
+
/**
|
|
65
|
+
* One cipher per process, held as the promise: a keyring is parsed once and
|
|
66
|
+
* a KMS client is built once, however many handlers register it at once.
|
|
67
|
+
*/
|
|
68
|
+
cipher;
|
|
69
|
+
constructor(id) {
|
|
70
|
+
const canonical = (0, _geekmidas_manifest.canonicalId)(id);
|
|
71
|
+
this.id = canonical;
|
|
72
|
+
this.key = (0, _geekmidas_manifest.providedKeyFor)(canonical, "encryption", "url");
|
|
73
|
+
this.service = {
|
|
74
|
+
serviceName: (0, _geekmidas_manifest.serviceKey)(canonical),
|
|
75
|
+
register: (options) => this.connect(options)
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
declare() {
|
|
79
|
+
return [{
|
|
80
|
+
kind: "encryption",
|
|
81
|
+
id: this.id,
|
|
82
|
+
provides: [this.key]
|
|
83
|
+
}];
|
|
84
|
+
}
|
|
85
|
+
connect(options) {
|
|
86
|
+
this.cipher ??= this.open(options);
|
|
87
|
+
return this.cipher;
|
|
88
|
+
}
|
|
89
|
+
async open(options) {
|
|
90
|
+
const { url } = options.envParser.create((get) => ({ url: get(this.key).string() })).parse();
|
|
91
|
+
const scheme = url.slice(0, url.indexOf(":") + 1);
|
|
92
|
+
if (scheme === "aes256gcm:") return require_cipher.keyringCipher(this.id, url, (stale, current) => console.warn(`${this.id} decrypted a value still under '${stale}' (current: '${current}'). reencrypt it, and retire '${stale}' once nothing is left under it.`));
|
|
93
|
+
const driver = drivers.get(scheme);
|
|
94
|
+
if (driver) return driver.open(this.id, url);
|
|
95
|
+
if (scheme === _geekmidas_manifest.KMS_SCHEME) throw new UnregisteredEncryptionScheme(this.id, scheme);
|
|
96
|
+
throw new require_cipher.UnknownEncryptionScheme(this.id, scheme);
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
//#endregion
|
|
100
|
+
exports.CiphertextMalformed = require_cipher.CiphertextMalformed;
|
|
101
|
+
exports.CiphertextNotAuthentic = require_cipher.CiphertextNotAuthentic;
|
|
102
|
+
exports.CurrentKeyCannotRetire = require_cipher.CurrentKeyCannotRetire;
|
|
103
|
+
exports.Encryption = Encryption;
|
|
104
|
+
exports.EncryptionKeyRetired = require_cipher.EncryptionKeyRetired;
|
|
105
|
+
exports.EncryptionUrlInvalid = require_cipher.EncryptionUrlInvalid;
|
|
106
|
+
exports.UnknownEncryptionScheme = require_cipher.UnknownEncryptionScheme;
|
|
107
|
+
exports.UnregisteredEncryptionScheme = UnregisteredEncryptionScheme;
|
|
108
|
+
exports.formatKeyring = require_cipher.formatKeyring;
|
|
109
|
+
exports.generateKeyring = require_cipher.generateKeyring;
|
|
110
|
+
exports.keyringCipher = require_cipher.keyringCipher;
|
|
111
|
+
exports.parseKeyring = require_cipher.parseKeyring;
|
|
112
|
+
exports.registerCipherDriver = registerCipherDriver;
|
|
113
|
+
exports.retireKey = require_cipher.retireKey;
|
|
114
|
+
exports.rotateKeyring = require_cipher.rotateKeyring;
|
|
115
|
+
|
|
116
|
+
//# sourceMappingURL=encryption.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"encryption.cjs","names":["KMS_SCHEME","canonicalId","providedKeyFor","serviceKey","keyringCipher","UnknownEncryptionScheme"],"sources":["../src/encryption.ts"],"sourcesContent":["/**\n * `Encryption` — a key that encrypts what the application stores.\n *\n * ```ts\n * export const pii = new Encryption('Pii');\n *\n * // an endpoint that `.dependsOn([pii])`\n * const email = await services.pii.encrypt(body.email);\n * const emailIndex = await services.pii.index(body.email);\n * await db.insertInto('users').values({ email, emailIndex }).execute();\n *\n * // and to find them again, without decrypting a column\n * db.selectFrom('users').where('emailIndex', '=', await services.pii.index(q));\n * ```\n *\n * The app names no cipher and holds no key. The construct provides one URL,\n * `<ID>_URL`, and its scheme picks the backend the way a queue's connection\n * string picks its broker:\n *\n * - **AWS** — `kms://`: envelope encryption under a KMS key that rotates\n * yearly, and a KMS HMAC key for the index. Only a function that depends on\n * the construct is granted either key.\n * - **Server, local, tests** — `aes256gcm://`: a keyring the process holds.\n * Derived locally, so `gkm dev` and `gkm test` need nothing set; generated\n * into a server stage's secrets on its first deploy, and rotated there with\n * `gkm encryption:rotate`.\n *\n * Every ciphertext names the key that wrote it, so a rotated key still opens\n * what it wrote. Retiring one is explicit — `reencrypt` the column, then\n * `gkm encryption:retire` — and a value still under an old key says so when it\n * is decrypted, once per key per process.\n */\n\nimport {\n\ttype ConstructName,\n\tcanonicalId,\n\ttype Declaration,\n\tKMS_SCHEME,\n\tprovidedKeyFor,\n\tserviceKey,\n} from '@geekmidas/manifest';\nimport type { Service, ServiceRegisterOptions } from '@geekmidas/services';\nimport type { Construct } from './construct-interface';\nimport {\n\ttype Cipher,\n\ttype CipherDriver,\n\tkeyringCipher,\n\tLOCAL_SCHEME,\n\tUnknownEncryptionScheme,\n} from './encryption/cipher';\n\nexport type { Cipher, CipherDriver } from './encryption/cipher';\nexport {\n\tCiphertextMalformed,\n\tCiphertextNotAuthentic,\n\tCurrentKeyCannotRetire,\n\tEncryptionKeyRetired,\n\tEncryptionUrlInvalid,\n\tformatKeyring,\n\tgenerateKeyring,\n\ttype Keyring,\n\tkeyringCipher,\n\tparseKeyring,\n\tretireKey,\n\trotateKeyring,\n\tUnknownEncryptionScheme,\n} from './encryption/cipher';\n\nconst drivers = new Map<string, CipherDriver>();\n\n/** Make a cipher available for its scheme. Idempotent. */\nexport function registerCipherDriver(driver: CipherDriver): void {\n\tdrivers.set(driver.scheme, driver);\n}\n\n/**\n * A key whose URL names a cipher this process registered no driver for —\n * `kms:` in an entry built for a target whose keys are local.\n */\nexport class UnregisteredEncryptionScheme extends Error {\n\tconstructor(\n\t\treadonly construct: string,\n\t\treadonly scheme: string,\n\t) {\n\t\tsuper(\n\t\t\t`${construct}'s key is a '${scheme}' URL, and this build registered no cipher for it. ` +\n\t\t\t\t(scheme === KMS_SCHEME\n\t\t\t\t\t? \"A KMS key is an AWS target's: build for it (gkm build --provider aws), which registers the KMS cipher and needs @aws-sdk/client-kms installed.\"\n\t\t\t\t\t: 'Register its driver with registerCipherDriver before the first request.'),\n\t\t);\n\t\tthis.name = 'UnregisteredEncryptionScheme';\n\t}\n}\n\nexport class Encryption<TName extends string = string>\n\timplements Construct<TName, Cipher>\n{\n\treadonly id: TName;\n\treadonly service: Service<Uncapitalize<TName>, Cipher>;\n\n\t/**\n\t * Declared once and read by both `declare()` and `connect()`, so the key the\n\t * target publishes and the key the client reads cannot drift.\n\t */\n\tprivate readonly key: string;\n\n\t/**\n\t * One cipher per process, held as the promise: a keyring is parsed once and\n\t * a KMS client is built once, however many handlers register it at once.\n\t */\n\tprivate cipher?: Promise<Cipher>;\n\n\tconstructor(id: ConstructName<TName>) {\n\t\tconst canonical = canonicalId(id as string);\n\n\t\tthis.id = canonical as TName;\n\t\tthis.key = providedKeyFor(canonical, 'encryption', 'url');\n\n\t\t// A field, not a getter: consumers cache services by object identity.\n\t\tthis.service = {\n\t\t\tserviceName: serviceKey(canonical) as Uncapitalize<TName>,\n\t\t\tregister: (options) => this.connect(options),\n\t\t};\n\t}\n\n\tdeclare(): Declaration[] {\n\t\treturn [{ kind: 'encryption', id: this.id, provides: [this.key] }];\n\t}\n\n\tprivate connect(options: ServiceRegisterOptions): Promise<Cipher> {\n\t\tthis.cipher ??= this.open(options);\n\t\treturn this.cipher;\n\t}\n\n\tprivate async open(options: ServiceRegisterOptions): Promise<Cipher> {\n\t\tconst { url } = options.envParser\n\t\t\t.create((get) => ({ url: get(this.key).string() }))\n\t\t\t.parse();\n\t\tconst scheme = url.slice(0, url.indexOf(':') + 1);\n\n\t\tif (scheme === LOCAL_SCHEME) {\n\t\t\treturn keyringCipher(this.id, url, (stale, current) =>\n\t\t\t\tconsole.warn(\n\t\t\t\t\t`${this.id} decrypted a value still under '${stale}' (current: '${current}'). reencrypt it, and retire '${stale}' once nothing is left under it.`,\n\t\t\t\t),\n\t\t\t);\n\t\t}\n\n\t\t// Registered by the entry a build generates, only for a target whose\n\t\t// keys live there — so no other process imports that cipher's SDK.\n\t\tconst driver = drivers.get(scheme);\n\t\tif (driver) return driver.open(this.id, url);\n\t\tif (scheme === KMS_SCHEME) {\n\t\t\tthrow new UnregisteredEncryptionScheme(this.id, scheme);\n\t\t}\n\n\t\tthrow new UnknownEncryptionScheme(this.id, scheme);\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoEA,MAAM,0BAAU,IAAI,IAA0B;;AAG9C,SAAgB,qBAAqB,QAA4B;CAChE,QAAQ,IAAI,OAAO,QAAQ,MAAM;AAClC;;;;;AAMA,IAAa,+BAAb,cAAkD,MAAM;CAE7C;CACA;CAFV,YACC,WACA,QACC;EACD,MACC,GAAG,UAAU,eAAe,OAAO,wDACjC,WAAWA,oBAAAA,aACT,mJACA,0EACL;EARS,KAAA,YAAA;EACA,KAAA,SAAA;EAQT,KAAK,OAAO;CACb;AACD;AAEA,IAAa,aAAb,MAEA;CACC;CACA;;;;;CAMA;;;;;CAMA;CAEA,YAAY,IAA0B;EACrC,MAAM,aAAA,GAAYC,oBAAAA,YAAAA,CAAY,EAAY;EAE1C,KAAK,KAAK;EACV,KAAK,OAAA,GAAMC,oBAAAA,eAAAA,CAAe,WAAW,cAAc,KAAK;EAGxD,KAAK,UAAU;GACd,cAAA,GAAaC,oBAAAA,WAAAA,CAAW,SAAS;GACjC,WAAW,YAAY,KAAK,QAAQ,OAAO;EAC5C;CACD;CAEA,UAAyB;EACxB,OAAO,CAAC;GAAE,MAAM;GAAc,IAAI,KAAK;GAAI,UAAU,CAAC,KAAK,GAAG;EAAE,CAAC;CAClE;CAEA,QAAgB,SAAkD;EACjE,KAAK,WAAW,KAAK,KAAK,OAAO;EACjC,OAAO,KAAK;CACb;CAEA,MAAc,KAAK,SAAkD;EACpE,MAAM,EAAE,QAAQ,QAAQ,UACtB,QAAQ,SAAS,EAAE,KAAK,IAAI,KAAK,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAClD,MAAM;EACR,MAAM,SAAS,IAAI,MAAM,GAAG,IAAI,QAAQ,GAAG,IAAI,CAAC;EAEhD,IAAI,WAAA,cACH,OAAOC,eAAAA,cAAc,KAAK,IAAI,MAAM,OAAO,YAC1C,QAAQ,KACP,GAAG,KAAK,GAAG,kCAAkC,MAAM,eAAe,QAAQ,gCAAgC,MAAM,iCACjH,CACD;EAKD,MAAM,SAAS,QAAQ,IAAI,MAAM;EACjC,IAAI,QAAQ,OAAO,OAAO,KAAK,KAAK,IAAI,GAAG;EAC3C,IAAI,WAAWJ,oBAAAA,YACd,MAAM,IAAI,6BAA6B,KAAK,IAAI,MAAM;EAGvD,MAAM,IAAIK,eAAAA,wBAAwB,KAAK,IAAI,MAAM;CAClD;AACD"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { n as Construct } from "./construct-interface-CVoejIpo.cjs";
|
|
2
|
+
import { a as CurrentKeyCannotRetire, c as Keyring, d as generateKeyring, f as keyringCipher, h as rotateKeyring, i as CiphertextNotAuthentic, l as UnknownEncryptionScheme, m as retireKey, n as CipherDriver, o as EncryptionKeyRetired, p as parseKeyring, r as CiphertextMalformed, s as EncryptionUrlInvalid, t as Cipher, u as formatKeyring } from "./cipher-DSDxPRIp.cjs";
|
|
3
|
+
import { Service } from "@geekmidas/services";
|
|
4
|
+
import { ConstructName, Declaration } from "@geekmidas/manifest";
|
|
5
|
+
//#region src/encryption.d.ts
|
|
6
|
+
/** Make a cipher available for its scheme. Idempotent. */
|
|
7
|
+
export declare function registerCipherDriver(driver: CipherDriver): void;
|
|
8
|
+
/**
|
|
9
|
+
* A key whose URL names a cipher this process registered no driver for —
|
|
10
|
+
* `kms:` in an entry built for a target whose keys are local.
|
|
11
|
+
*/
|
|
12
|
+
export declare class UnregisteredEncryptionScheme extends Error {
|
|
13
|
+
readonly construct: string;
|
|
14
|
+
readonly scheme: string;
|
|
15
|
+
constructor(construct: string, scheme: string);
|
|
16
|
+
}
|
|
17
|
+
export declare class Encryption<TName extends string = string> implements Construct<TName, Cipher> {
|
|
18
|
+
readonly id: TName;
|
|
19
|
+
readonly service: Service<Uncapitalize<TName>, Cipher>;
|
|
20
|
+
/**
|
|
21
|
+
* Declared once and read by both `declare()` and `connect()`, so the key the
|
|
22
|
+
* target publishes and the key the client reads cannot drift.
|
|
23
|
+
*/
|
|
24
|
+
private readonly key;
|
|
25
|
+
/**
|
|
26
|
+
* One cipher per process, held as the promise: a keyring is parsed once and
|
|
27
|
+
* a KMS client is built once, however many handlers register it at once.
|
|
28
|
+
*/
|
|
29
|
+
private cipher?;
|
|
30
|
+
constructor(id: ConstructName<TName>);
|
|
31
|
+
declare(): Declaration[];
|
|
32
|
+
private connect;
|
|
33
|
+
private open;
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
36
|
+
export { type Cipher, type CipherDriver, CiphertextMalformed, CiphertextNotAuthentic, CurrentKeyCannotRetire, EncryptionKeyRetired, EncryptionUrlInvalid, type Keyring, UnknownEncryptionScheme, formatKeyring, generateKeyring, keyringCipher, parseKeyring, retireKey, rotateKeyring };
|
|
37
|
+
//# sourceMappingURL=encryption.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"encryption.d.cts","names":[],"sources":["../src/encryption.ts"],"mappings":";;;;;;wBAuEgB,qBAAqB,QAAQ;;;;;qBAQhC,qCAAqC;WAEvC;WACA;EAFV,YACU,mBACA;;qBAYE,WAAW,0CACZ,UAAU,OAAO;WAEnB,IAAI;WACJ,SAAS,QAAQ,aAAa,QAAQ;;;;;mBAM9B;;;;;UAMT;EAER,YAAY,IAAI,cAAc;EAa9B,WAAW;UAIH;UAKM"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { n as Construct } from "./construct-interface-Nw5Dt9AC.mjs";
|
|
2
|
+
import { a as CurrentKeyCannotRetire, c as Keyring, d as generateKeyring, f as keyringCipher, h as rotateKeyring, i as CiphertextNotAuthentic, l as UnknownEncryptionScheme, m as retireKey, n as CipherDriver, o as EncryptionKeyRetired, p as parseKeyring, r as CiphertextMalformed, s as EncryptionUrlInvalid, t as Cipher, u as formatKeyring } from "./cipher-DSDxPRIp.mjs";
|
|
3
|
+
import { ConstructName, Declaration } from "@geekmidas/manifest";
|
|
4
|
+
import { Service } from "@geekmidas/services";
|
|
5
|
+
//#region src/encryption.d.ts
|
|
6
|
+
/** Make a cipher available for its scheme. Idempotent. */
|
|
7
|
+
export declare function registerCipherDriver(driver: CipherDriver): void;
|
|
8
|
+
/**
|
|
9
|
+
* A key whose URL names a cipher this process registered no driver for —
|
|
10
|
+
* `kms:` in an entry built for a target whose keys are local.
|
|
11
|
+
*/
|
|
12
|
+
export declare class UnregisteredEncryptionScheme extends Error {
|
|
13
|
+
readonly construct: string;
|
|
14
|
+
readonly scheme: string;
|
|
15
|
+
constructor(construct: string, scheme: string);
|
|
16
|
+
}
|
|
17
|
+
export declare class Encryption<TName extends string = string> implements Construct<TName, Cipher> {
|
|
18
|
+
readonly id: TName;
|
|
19
|
+
readonly service: Service<Uncapitalize<TName>, Cipher>;
|
|
20
|
+
/**
|
|
21
|
+
* Declared once and read by both `declare()` and `connect()`, so the key the
|
|
22
|
+
* target publishes and the key the client reads cannot drift.
|
|
23
|
+
*/
|
|
24
|
+
private readonly key;
|
|
25
|
+
/**
|
|
26
|
+
* One cipher per process, held as the promise: a keyring is parsed once and
|
|
27
|
+
* a KMS client is built once, however many handlers register it at once.
|
|
28
|
+
*/
|
|
29
|
+
private cipher?;
|
|
30
|
+
constructor(id: ConstructName<TName>);
|
|
31
|
+
declare(): Declaration[];
|
|
32
|
+
private connect;
|
|
33
|
+
private open;
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
36
|
+
export { type Cipher, type CipherDriver, CiphertextMalformed, CiphertextNotAuthentic, CurrentKeyCannotRetire, EncryptionKeyRetired, EncryptionUrlInvalid, type Keyring, UnknownEncryptionScheme, formatKeyring, generateKeyring, keyringCipher, parseKeyring, retireKey, rotateKeyring };
|
|
37
|
+
//# sourceMappingURL=encryption.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"encryption.d.mts","names":[],"sources":["../src/encryption.ts"],"mappings":";;;;;;wBAuEgB,qBAAqB,QAAQ;;;;;qBAQhC,qCAAqC;WAEvC;WACA;EAFV,YACU,mBACA;;qBAYE,WAAW,0CACZ,UAAU,OAAO;WAEnB,IAAI;WACJ,SAAS,QAAQ,aAAa,QAAQ;;;;;mBAM9B;;;;;UAMT;EAER,YAAY,IAAI,cAAc;EAa9B,WAAW;UAIH;UAKM"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { _ as rotateKeyring, a as EncryptionUrlInvalid, d as generateKeyring, f as keyringCipher, g as retireKey, h as parseKeyring, i as EncryptionKeyRetired, n as CiphertextNotAuthentic, r as CurrentKeyCannotRetire, s as UnknownEncryptionScheme, t as CiphertextMalformed, u as formatKeyring } from "./cipher-C1lEFX63.mjs";
|
|
2
|
+
import { KMS_SCHEME, canonicalId, providedKeyFor, serviceKey } from "@geekmidas/manifest";
|
|
3
|
+
//#region src/encryption.ts
|
|
4
|
+
/**
|
|
5
|
+
* `Encryption` — a key that encrypts what the application stores.
|
|
6
|
+
*
|
|
7
|
+
* ```ts
|
|
8
|
+
* export const pii = new Encryption('Pii');
|
|
9
|
+
*
|
|
10
|
+
* // an endpoint that `.dependsOn([pii])`
|
|
11
|
+
* const email = await services.pii.encrypt(body.email);
|
|
12
|
+
* const emailIndex = await services.pii.index(body.email);
|
|
13
|
+
* await db.insertInto('users').values({ email, emailIndex }).execute();
|
|
14
|
+
*
|
|
15
|
+
* // and to find them again, without decrypting a column
|
|
16
|
+
* db.selectFrom('users').where('emailIndex', '=', await services.pii.index(q));
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* The app names no cipher and holds no key. The construct provides one URL,
|
|
20
|
+
* `<ID>_URL`, and its scheme picks the backend the way a queue's connection
|
|
21
|
+
* string picks its broker:
|
|
22
|
+
*
|
|
23
|
+
* - **AWS** — `kms://`: envelope encryption under a KMS key that rotates
|
|
24
|
+
* yearly, and a KMS HMAC key for the index. Only a function that depends on
|
|
25
|
+
* the construct is granted either key.
|
|
26
|
+
* - **Server, local, tests** — `aes256gcm://`: a keyring the process holds.
|
|
27
|
+
* Derived locally, so `gkm dev` and `gkm test` need nothing set; generated
|
|
28
|
+
* into a server stage's secrets on its first deploy, and rotated there with
|
|
29
|
+
* `gkm encryption:rotate`.
|
|
30
|
+
*
|
|
31
|
+
* Every ciphertext names the key that wrote it, so a rotated key still opens
|
|
32
|
+
* what it wrote. Retiring one is explicit — `reencrypt` the column, then
|
|
33
|
+
* `gkm encryption:retire` — and a value still under an old key says so when it
|
|
34
|
+
* is decrypted, once per key per process.
|
|
35
|
+
*/
|
|
36
|
+
const drivers = /* @__PURE__ */ new Map();
|
|
37
|
+
/** Make a cipher available for its scheme. Idempotent. */
|
|
38
|
+
function registerCipherDriver(driver) {
|
|
39
|
+
drivers.set(driver.scheme, driver);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* A key whose URL names a cipher this process registered no driver for —
|
|
43
|
+
* `kms:` in an entry built for a target whose keys are local.
|
|
44
|
+
*/
|
|
45
|
+
var UnregisteredEncryptionScheme = class extends Error {
|
|
46
|
+
construct;
|
|
47
|
+
scheme;
|
|
48
|
+
constructor(construct, scheme) {
|
|
49
|
+
super(`${construct}'s key is a '${scheme}' URL, and this build registered no cipher for it. ` + (scheme === KMS_SCHEME ? "A KMS key is an AWS target's: build for it (gkm build --provider aws), which registers the KMS cipher and needs @aws-sdk/client-kms installed." : "Register its driver with registerCipherDriver before the first request."));
|
|
50
|
+
this.construct = construct;
|
|
51
|
+
this.scheme = scheme;
|
|
52
|
+
this.name = "UnregisteredEncryptionScheme";
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
var Encryption = class {
|
|
56
|
+
id;
|
|
57
|
+
service;
|
|
58
|
+
/**
|
|
59
|
+
* Declared once and read by both `declare()` and `connect()`, so the key the
|
|
60
|
+
* target publishes and the key the client reads cannot drift.
|
|
61
|
+
*/
|
|
62
|
+
key;
|
|
63
|
+
/**
|
|
64
|
+
* One cipher per process, held as the promise: a keyring is parsed once and
|
|
65
|
+
* a KMS client is built once, however many handlers register it at once.
|
|
66
|
+
*/
|
|
67
|
+
cipher;
|
|
68
|
+
constructor(id) {
|
|
69
|
+
const canonical = canonicalId(id);
|
|
70
|
+
this.id = canonical;
|
|
71
|
+
this.key = providedKeyFor(canonical, "encryption", "url");
|
|
72
|
+
this.service = {
|
|
73
|
+
serviceName: serviceKey(canonical),
|
|
74
|
+
register: (options) => this.connect(options)
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
declare() {
|
|
78
|
+
return [{
|
|
79
|
+
kind: "encryption",
|
|
80
|
+
id: this.id,
|
|
81
|
+
provides: [this.key]
|
|
82
|
+
}];
|
|
83
|
+
}
|
|
84
|
+
connect(options) {
|
|
85
|
+
this.cipher ??= this.open(options);
|
|
86
|
+
return this.cipher;
|
|
87
|
+
}
|
|
88
|
+
async open(options) {
|
|
89
|
+
const { url } = options.envParser.create((get) => ({ url: get(this.key).string() })).parse();
|
|
90
|
+
const scheme = url.slice(0, url.indexOf(":") + 1);
|
|
91
|
+
if (scheme === "aes256gcm:") return keyringCipher(this.id, url, (stale, current) => console.warn(`${this.id} decrypted a value still under '${stale}' (current: '${current}'). reencrypt it, and retire '${stale}' once nothing is left under it.`));
|
|
92
|
+
const driver = drivers.get(scheme);
|
|
93
|
+
if (driver) return driver.open(this.id, url);
|
|
94
|
+
if (scheme === KMS_SCHEME) throw new UnregisteredEncryptionScheme(this.id, scheme);
|
|
95
|
+
throw new UnknownEncryptionScheme(this.id, scheme);
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
//#endregion
|
|
99
|
+
export { CiphertextMalformed, CiphertextNotAuthentic, CurrentKeyCannotRetire, Encryption, EncryptionKeyRetired, EncryptionUrlInvalid, UnknownEncryptionScheme, UnregisteredEncryptionScheme, formatKeyring, generateKeyring, keyringCipher, parseKeyring, registerCipherDriver, retireKey, rotateKeyring };
|
|
100
|
+
|
|
101
|
+
//# sourceMappingURL=encryption.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"encryption.mjs","names":[],"sources":["../src/encryption.ts"],"sourcesContent":["/**\n * `Encryption` — a key that encrypts what the application stores.\n *\n * ```ts\n * export const pii = new Encryption('Pii');\n *\n * // an endpoint that `.dependsOn([pii])`\n * const email = await services.pii.encrypt(body.email);\n * const emailIndex = await services.pii.index(body.email);\n * await db.insertInto('users').values({ email, emailIndex }).execute();\n *\n * // and to find them again, without decrypting a column\n * db.selectFrom('users').where('emailIndex', '=', await services.pii.index(q));\n * ```\n *\n * The app names no cipher and holds no key. The construct provides one URL,\n * `<ID>_URL`, and its scheme picks the backend the way a queue's connection\n * string picks its broker:\n *\n * - **AWS** — `kms://`: envelope encryption under a KMS key that rotates\n * yearly, and a KMS HMAC key for the index. Only a function that depends on\n * the construct is granted either key.\n * - **Server, local, tests** — `aes256gcm://`: a keyring the process holds.\n * Derived locally, so `gkm dev` and `gkm test` need nothing set; generated\n * into a server stage's secrets on its first deploy, and rotated there with\n * `gkm encryption:rotate`.\n *\n * Every ciphertext names the key that wrote it, so a rotated key still opens\n * what it wrote. Retiring one is explicit — `reencrypt` the column, then\n * `gkm encryption:retire` — and a value still under an old key says so when it\n * is decrypted, once per key per process.\n */\n\nimport {\n\ttype ConstructName,\n\tcanonicalId,\n\ttype Declaration,\n\tKMS_SCHEME,\n\tprovidedKeyFor,\n\tserviceKey,\n} from '@geekmidas/manifest';\nimport type { Service, ServiceRegisterOptions } from '@geekmidas/services';\nimport type { Construct } from './construct-interface';\nimport {\n\ttype Cipher,\n\ttype CipherDriver,\n\tkeyringCipher,\n\tLOCAL_SCHEME,\n\tUnknownEncryptionScheme,\n} from './encryption/cipher';\n\nexport type { Cipher, CipherDriver } from './encryption/cipher';\nexport {\n\tCiphertextMalformed,\n\tCiphertextNotAuthentic,\n\tCurrentKeyCannotRetire,\n\tEncryptionKeyRetired,\n\tEncryptionUrlInvalid,\n\tformatKeyring,\n\tgenerateKeyring,\n\ttype Keyring,\n\tkeyringCipher,\n\tparseKeyring,\n\tretireKey,\n\trotateKeyring,\n\tUnknownEncryptionScheme,\n} from './encryption/cipher';\n\nconst drivers = new Map<string, CipherDriver>();\n\n/** Make a cipher available for its scheme. Idempotent. */\nexport function registerCipherDriver(driver: CipherDriver): void {\n\tdrivers.set(driver.scheme, driver);\n}\n\n/**\n * A key whose URL names a cipher this process registered no driver for —\n * `kms:` in an entry built for a target whose keys are local.\n */\nexport class UnregisteredEncryptionScheme extends Error {\n\tconstructor(\n\t\treadonly construct: string,\n\t\treadonly scheme: string,\n\t) {\n\t\tsuper(\n\t\t\t`${construct}'s key is a '${scheme}' URL, and this build registered no cipher for it. ` +\n\t\t\t\t(scheme === KMS_SCHEME\n\t\t\t\t\t? \"A KMS key is an AWS target's: build for it (gkm build --provider aws), which registers the KMS cipher and needs @aws-sdk/client-kms installed.\"\n\t\t\t\t\t: 'Register its driver with registerCipherDriver before the first request.'),\n\t\t);\n\t\tthis.name = 'UnregisteredEncryptionScheme';\n\t}\n}\n\nexport class Encryption<TName extends string = string>\n\timplements Construct<TName, Cipher>\n{\n\treadonly id: TName;\n\treadonly service: Service<Uncapitalize<TName>, Cipher>;\n\n\t/**\n\t * Declared once and read by both `declare()` and `connect()`, so the key the\n\t * target publishes and the key the client reads cannot drift.\n\t */\n\tprivate readonly key: string;\n\n\t/**\n\t * One cipher per process, held as the promise: a keyring is parsed once and\n\t * a KMS client is built once, however many handlers register it at once.\n\t */\n\tprivate cipher?: Promise<Cipher>;\n\n\tconstructor(id: ConstructName<TName>) {\n\t\tconst canonical = canonicalId(id as string);\n\n\t\tthis.id = canonical as TName;\n\t\tthis.key = providedKeyFor(canonical, 'encryption', 'url');\n\n\t\t// A field, not a getter: consumers cache services by object identity.\n\t\tthis.service = {\n\t\t\tserviceName: serviceKey(canonical) as Uncapitalize<TName>,\n\t\t\tregister: (options) => this.connect(options),\n\t\t};\n\t}\n\n\tdeclare(): Declaration[] {\n\t\treturn [{ kind: 'encryption', id: this.id, provides: [this.key] }];\n\t}\n\n\tprivate connect(options: ServiceRegisterOptions): Promise<Cipher> {\n\t\tthis.cipher ??= this.open(options);\n\t\treturn this.cipher;\n\t}\n\n\tprivate async open(options: ServiceRegisterOptions): Promise<Cipher> {\n\t\tconst { url } = options.envParser\n\t\t\t.create((get) => ({ url: get(this.key).string() }))\n\t\t\t.parse();\n\t\tconst scheme = url.slice(0, url.indexOf(':') + 1);\n\n\t\tif (scheme === LOCAL_SCHEME) {\n\t\t\treturn keyringCipher(this.id, url, (stale, current) =>\n\t\t\t\tconsole.warn(\n\t\t\t\t\t`${this.id} decrypted a value still under '${stale}' (current: '${current}'). reencrypt it, and retire '${stale}' once nothing is left under it.`,\n\t\t\t\t),\n\t\t\t);\n\t\t}\n\n\t\t// Registered by the entry a build generates, only for a target whose\n\t\t// keys live there — so no other process imports that cipher's SDK.\n\t\tconst driver = drivers.get(scheme);\n\t\tif (driver) return driver.open(this.id, url);\n\t\tif (scheme === KMS_SCHEME) {\n\t\t\tthrow new UnregisteredEncryptionScheme(this.id, scheme);\n\t\t}\n\n\t\tthrow new UnknownEncryptionScheme(this.id, scheme);\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoEA,MAAM,0BAAU,IAAI,IAA0B;;AAG9C,SAAgB,qBAAqB,QAA4B;CAChE,QAAQ,IAAI,OAAO,QAAQ,MAAM;AAClC;;;;;AAMA,IAAa,+BAAb,cAAkD,MAAM;CAE7C;CACA;CAFV,YACC,WACA,QACC;EACD,MACC,GAAG,UAAU,eAAe,OAAO,wDACjC,WAAW,aACT,mJACA,0EACL;EARS,KAAA,YAAA;EACA,KAAA,SAAA;EAQT,KAAK,OAAO;CACb;AACD;AAEA,IAAa,aAAb,MAEA;CACC;CACA;;;;;CAMA;;;;;CAMA;CAEA,YAAY,IAA0B;EACrC,MAAM,YAAY,YAAY,EAAY;EAE1C,KAAK,KAAK;EACV,KAAK,MAAM,eAAe,WAAW,cAAc,KAAK;EAGxD,KAAK,UAAU;GACd,aAAa,WAAW,SAAS;GACjC,WAAW,YAAY,KAAK,QAAQ,OAAO;EAC5C;CACD;CAEA,UAAyB;EACxB,OAAO,CAAC;GAAE,MAAM;GAAc,IAAI,KAAK;GAAI,UAAU,CAAC,KAAK,GAAG;EAAE,CAAC;CAClE;CAEA,QAAgB,SAAkD;EACjE,KAAK,WAAW,KAAK,KAAK,OAAO;EACjC,OAAO,KAAK;CACb;CAEA,MAAc,KAAK,SAAkD;EACpE,MAAM,EAAE,QAAQ,QAAQ,UACtB,QAAQ,SAAS,EAAE,KAAK,IAAI,KAAK,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAClD,MAAM;EACR,MAAM,SAAS,IAAI,MAAM,GAAG,IAAI,QAAQ,GAAG,IAAI,CAAC;EAEhD,IAAI,WAAA,cACH,OAAO,cAAc,KAAK,IAAI,MAAM,OAAO,YAC1C,QAAQ,KACP,GAAG,KAAK,GAAG,kCAAkC,MAAM,eAAe,QAAQ,gCAAgC,MAAM,iCACjH,CACD;EAKD,MAAM,SAAS,QAAQ,IAAI,MAAM;EACjC,IAAI,QAAQ,OAAO,OAAO,KAAK,KAAK,IAAI,GAAG;EAC3C,IAAI,WAAW,YACd,MAAM,IAAI,6BAA6B,KAAK,IAAI,MAAM;EAGvD,MAAM,IAAI,wBAAwB,KAAK,IAAI,MAAM;CAClD;AACD"}
|
package/dist/endpoints/index.cjs
CHANGED
|
@@ -1,23 +1,45 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_EndpointFactory = require("../EndpointFactory-
|
|
3
|
-
const
|
|
2
|
+
const require_EndpointFactory = require("../EndpointFactory-Cf_Cs1ym.cjs");
|
|
3
|
+
const require_functions = require("../functions-DLF6-IK8.cjs");
|
|
4
|
+
const require_Endpoint = require("../Endpoint-52z1P0Ue.cjs");
|
|
4
5
|
const require_surfaceEnv = require("../surfaceEnv-CNimK76p.cjs");
|
|
5
|
-
const
|
|
6
|
+
const require_readRequestBody = require("../readRequestBody-CN9GVdeE.cjs");
|
|
7
|
+
let _geekmidas_manifest = require("@geekmidas/manifest");
|
|
6
8
|
exports.BUILT_IN_SECURITY_SCHEMES = require_EndpointFactory.BUILT_IN_SECURITY_SCHEMES;
|
|
7
9
|
exports.Endpoint = require_Endpoint.Endpoint;
|
|
8
10
|
exports.EndpointBuilder = require_EndpointFactory.EndpointBuilder;
|
|
9
11
|
exports.EndpointFactory = require_EndpointFactory.EndpointFactory;
|
|
12
|
+
exports.MalformedRequestBody = require_readRequestBody.MalformedRequestBody;
|
|
13
|
+
exports.NoAuthenticator = require_Endpoint.NoAuthenticator;
|
|
10
14
|
exports.RLS_BYPASS = require_EndpointFactory.RLS_BYPASS;
|
|
15
|
+
exports.RedirectStatus = require_Endpoint.RedirectStatus;
|
|
11
16
|
exports.ResponseBuilder = require_Endpoint.ResponseBuilder;
|
|
12
|
-
exports.
|
|
13
|
-
exports.
|
|
17
|
+
exports.SUPPORTED_BODY_TYPES = require_readRequestBody.SUPPORTED_BODY_TYPES;
|
|
18
|
+
exports.SuccessStatus = require_Endpoint.SuccessStatus;
|
|
19
|
+
exports.UPLOAD_POST_SCHEMA = require_EndpointFactory.UPLOAD_POST_SCHEMA;
|
|
20
|
+
exports.UnsupportedRequestContentType = require_readRequestBody.UnsupportedRequestContentType;
|
|
21
|
+
exports.UploadAcceptInvalid = require_EndpointFactory.UploadAcceptInvalid;
|
|
22
|
+
exports.UploadContentTypeRefused = require_EndpointFactory.UploadContentTypeRefused;
|
|
23
|
+
exports.UploadContentTypeUnresolved = require_EndpointFactory.UploadContentTypeUnresolved;
|
|
24
|
+
exports.UploadEndpointBuilder = require_EndpointFactory.UploadEndpointBuilder;
|
|
25
|
+
exports.UploadExpiryInvalid = require_EndpointFactory.UploadExpiryInvalid;
|
|
26
|
+
exports.UploadMaxSizeInvalid = require_EndpointFactory.UploadMaxSizeInvalid;
|
|
27
|
+
exports.createApiGatewayCookies = require_readRequestBody.createApiGatewayCookies;
|
|
28
|
+
exports.createApiGatewayHeaders = require_readRequestBody.createApiGatewayHeaders;
|
|
14
29
|
exports.createAuthorizer = require_EndpointFactory.createAuthorizer;
|
|
15
|
-
exports.createHonoCookies =
|
|
16
|
-
exports.createHonoHeaders =
|
|
17
|
-
exports.createNoopCookies =
|
|
18
|
-
exports.createNoopHeaders =
|
|
30
|
+
exports.createHonoCookies = require_readRequestBody.createHonoCookies;
|
|
31
|
+
exports.createHonoHeaders = require_readRequestBody.createHonoHeaders;
|
|
32
|
+
exports.createNoopCookies = require_readRequestBody.createNoopCookies;
|
|
33
|
+
exports.createNoopHeaders = require_readRequestBody.createNoopHeaders;
|
|
19
34
|
exports.defaultEnvParser = require_surfaceEnv.defaultEnvParser;
|
|
20
35
|
exports.envParserFor = require_surfaceEnv.envParserFor;
|
|
21
36
|
exports.getSecurityScheme = require_EndpointFactory.getSecurityScheme;
|
|
22
37
|
exports.isBuiltInSecurityScheme = require_EndpointFactory.isBuiltInSecurityScheme;
|
|
23
|
-
exports.publishConstructEvents =
|
|
38
|
+
exports.publishConstructEvents = require_functions.publishConstructEvents;
|
|
39
|
+
exports.readRequestBody = require_readRequestBody.readRequestBody;
|
|
40
|
+
Object.defineProperty(exports, "trustsOrigin", {
|
|
41
|
+
enumerable: true,
|
|
42
|
+
get: function() {
|
|
43
|
+
return _geekmidas_manifest.trustsOrigin;
|
|
44
|
+
}
|
|
45
|
+
});
|
|
@@ -1,3 +1,106 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as
|
|
3
|
-
|
|
1
|
+
import { s as publishConstructEvents } from "../Construct-127M7yrl.cjs";
|
|
2
|
+
import { A as SecurityScheme, C as ActorExtractor, D as BuiltInSecuritySchemeId, E as BUILT_IN_SECURITY_SCHEMES, M as getSecurityScheme, N as isBuiltInSecurityScheme, O as OAuthFlow, S as RlsContextExtractor, T as Authorizer, _ as SessionAuth, a as EndpointContext, b as RlsConfig, c as EndpointSchemas, d as HeaderFn, f as RedirectStatus, g as NoAuthenticator, h as SuccessStatus, i as Endpoint, j as createAuthorizer, k as OAuthFlows, l as EndpointStatus, n as ConvertRouteParams, o as EndpointHandler, p as ResponseBuilder, r as CookieFn, s as EndpointOutput, u as EndpointSurface, v as RLS_BYPASS, w as MappedAudit, x as RlsContext, y as RlsBypass } from "../Endpoint-COisi9jw.cjs";
|
|
3
|
+
import { a as UPLOAD_POST_SCHEMA, c as UploadContentTypeUnresolved, d as UploadOptions, f as UploadPost, i as UploadHandler, l as UploadExpiryInvalid, n as EndpointBuilder, o as UploadAcceptInvalid, r as UploadEndpointBuilder, s as UploadContentTypeRefused, t as EndpointFactory, u as UploadMaxSizeInvalid } from "../EndpointFactory-CfBg6jJE.cjs";
|
|
4
|
+
import { EnvironmentParser } from "@geekmidas/envkit";
|
|
5
|
+
import { trustsOrigin } from "@geekmidas/manifest";
|
|
6
|
+
import { Context } from "hono";
|
|
7
|
+
import { HttpError } from "@geekmidas/errors";
|
|
8
|
+
//#region src/endpoints/lazyAccessors.d.ts
|
|
9
|
+
/**
|
|
10
|
+
* Create a lazy header accessor for Hono.
|
|
11
|
+
* Uses `c.req.header(name)` for single lookups (native, case-insensitive).
|
|
12
|
+
* Only calls `c.req.header()` to get all headers when needed.
|
|
13
|
+
*/
|
|
14
|
+
export declare function createHonoHeaders(c: Context): HeaderFn;
|
|
15
|
+
/**
|
|
16
|
+
* Create a lazy cookie accessor for Hono.
|
|
17
|
+
* Reads one cookie from the header for single lookups.
|
|
18
|
+
* Only parses the cookie header when all cookies are requested.
|
|
19
|
+
*/
|
|
20
|
+
export declare function createHonoCookies(c: Context): CookieFn;
|
|
21
|
+
/**
|
|
22
|
+
* Create a lazy header accessor for API Gateway events.
|
|
23
|
+
* Handles case-insensitive lookups.
|
|
24
|
+
*/
|
|
25
|
+
export declare function createApiGatewayHeaders(headers: Record<string, string | undefined> | null | undefined): HeaderFn;
|
|
26
|
+
/**
|
|
27
|
+
* Create a lazy cookie accessor for API Gateway events.
|
|
28
|
+
* Decodes URL-encoded values to match browser behavior.
|
|
29
|
+
*/
|
|
30
|
+
export declare function createApiGatewayCookies(cookies: string[] | undefined, cookieHeader: string | undefined): CookieFn;
|
|
31
|
+
/**
|
|
32
|
+
* Create a no-op header accessor (for minimal endpoints that don't use headers).
|
|
33
|
+
*/
|
|
34
|
+
export declare function createNoopHeaders(): HeaderFn;
|
|
35
|
+
/**
|
|
36
|
+
* Create a no-op cookie accessor (for minimal endpoints that don't use cookies).
|
|
37
|
+
*/
|
|
38
|
+
export declare function createNoopCookies(): CookieFn;
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/endpoints/readRequestBody.d.ts
|
|
41
|
+
/**
|
|
42
|
+
* The media types an endpoint's `.body()` schema can be handed — as written
|
|
43
|
+
* in the 415 a request in any other type is answered with.
|
|
44
|
+
*/
|
|
45
|
+
export declare const SUPPORTED_BODY_TYPES: readonly ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data', 'text/*'];
|
|
46
|
+
/**
|
|
47
|
+
* A request whose body is in a media type no endpoint reads — XML, a bare
|
|
48
|
+
* octet stream. Answered with a 415, before the body schema runs.
|
|
49
|
+
*/
|
|
50
|
+
export declare class UnsupportedRequestContentType extends HttpError {
|
|
51
|
+
readonly contentType: string;
|
|
52
|
+
constructor(contentType: string);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* A body that says it is JSON and is not. Answered with a 400 — the request
|
|
56
|
+
* is broken, not merely invalid against the schema.
|
|
57
|
+
*/
|
|
58
|
+
export declare class MalformedRequestBody extends HttpError {
|
|
59
|
+
readonly contentType: string;
|
|
60
|
+
constructor(contentType: string, cause?: Error);
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* What a body is read from: a `Request`, or Hono's request — which caches
|
|
64
|
+
* what it read, so a later reader is not handed a spent stream.
|
|
65
|
+
*/
|
|
66
|
+
interface RequestBodySource {
|
|
67
|
+
json(): Promise<unknown>;
|
|
68
|
+
text(): Promise<string>;
|
|
69
|
+
formData(): Promise<FormData>;
|
|
70
|
+
}
|
|
71
|
+
interface ReadRequestBodyOptions {
|
|
72
|
+
/**
|
|
73
|
+
* A body with no Content-Type: read as JSON (`'json'`, what API Gateway
|
|
74
|
+
* has always done), or not read at all and handed to the schema as `{}`
|
|
75
|
+
* (`'empty'`, what a Hono server has always done).
|
|
76
|
+
*/
|
|
77
|
+
untyped: 'json' | 'empty';
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* A request body, read by its Content-Type into what an endpoint's `.body()`
|
|
81
|
+
* schema validates — the one place every adaptor reads a body:
|
|
82
|
+
*
|
|
83
|
+
* - `application/json` (and `application/*+json`) — the parsed JSON.
|
|
84
|
+
* - `application/x-www-form-urlencoded` and `multipart/form-data` — a plain
|
|
85
|
+
* object of fields, as an HTML form posts them. A repeated field, or one
|
|
86
|
+
* named `field[]`, is an array; a file part is a `File`.
|
|
87
|
+
* - `text/*` — the text.
|
|
88
|
+
*
|
|
89
|
+
* Anything else is an {@link UnsupportedRequestContentType}.
|
|
90
|
+
*/
|
|
91
|
+
export declare function readRequestBody(source: RequestBodySource, contentType: string | null | undefined, options: ReadRequestBodyOptions): Promise<unknown>;
|
|
92
|
+
//#endregion
|
|
93
|
+
//#region src/endpoints/surfaceEnv.d.ts
|
|
94
|
+
/**
|
|
95
|
+
* The default parser, built once.
|
|
96
|
+
*
|
|
97
|
+
* Once because `Credentials` resolves through `globalThis` and decryption is
|
|
98
|
+
* not free, and because two parsers over the same environment are two caches of
|
|
99
|
+
* the same answer.
|
|
100
|
+
*/
|
|
101
|
+
export declare function defaultEnvParser(): EnvironmentParser<{}>;
|
|
102
|
+
/** The parser for an endpoint, from its surface or the default. */
|
|
103
|
+
export declare function envParserFor(surface: EndpointSurface | undefined): EnvironmentParser<{}>;
|
|
104
|
+
//#endregion
|
|
105
|
+
export { type ActorExtractor, type Authorizer, BUILT_IN_SECURITY_SCHEMES, type BuiltInSecuritySchemeId, type ConvertRouteParams, Endpoint, EndpointBuilder, type EndpointContext, EndpointFactory, type EndpointHandler, type EndpointOutput, type EndpointSchemas, type EndpointStatus, type MappedAudit, NoAuthenticator, type OAuthFlow, type OAuthFlows, RLS_BYPASS, RedirectStatus, type RequestBodySource, ResponseBuilder, type RlsBypass, type RlsConfig, type RlsContext, type RlsContextExtractor, type SecurityScheme, type SessionAuth, SuccessStatus, UPLOAD_POST_SCHEMA, UploadAcceptInvalid, UploadContentTypeRefused, UploadContentTypeUnresolved, UploadEndpointBuilder, UploadExpiryInvalid, type UploadHandler, UploadMaxSizeInvalid, type UploadOptions, type UploadPost, createAuthorizer, getSecurityScheme, isBuiltInSecurityScheme, publishConstructEvents, trustsOrigin };
|
|
106
|
+
//# sourceMappingURL=index.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/endpoints/lazyAccessors.ts","../../src/endpoints/readRequestBody.ts","../../src/endpoints/surfaceEnv.ts"],"mappings":";;;;;;;;;;;;;wBA0CgB,kBAAkB,GAAG,UAAU;;;;;;wBAqB/B,kBAAkB,GAAG,UAAU;;;;;wBAgC/B,wBACf,SAAS,wDACP;;;;;wBAoCa,wBACf,+BACA,mCACE;;;;wBAmHa,qBAAqB;;;;wBAUrB,qBAAqB;;;;;;;qBC/PxB;;;;;qBAWA,sCAAsC;WAC7B;EAArB,YAAqB;;;;;;qBAiBT,6BAA6B;WAE/B;EADV,YACU,qBACT,QAAQ;;;;;;UAeO;EAChB,QAAQ;EACR,QAAQ;EACR,YAAY,QAAQ;;UAGJ;;;;;;EAMhB;;;;;;;;;;;;;;wBAeqB,gBACrB,QAAQ,mBACR,wCACA,SAAS,yBACP;;;;;;;;;;wBCnDa,oBAAoB;;wBASpB,aACf,SAAS,8BACP"}
|
|
@@ -1,3 +1,106 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as
|
|
3
|
-
|
|
1
|
+
import { s as publishConstructEvents } from "../Construct-BMk_CRSD.mjs";
|
|
2
|
+
import { A as SecurityScheme, C as ActorExtractor, D as BuiltInSecuritySchemeId, E as BUILT_IN_SECURITY_SCHEMES, M as getSecurityScheme, N as isBuiltInSecurityScheme, O as OAuthFlow, S as RlsContextExtractor, T as Authorizer, _ as SessionAuth, a as EndpointContext, b as RlsConfig, c as EndpointSchemas, d as HeaderFn, f as RedirectStatus, g as NoAuthenticator, h as SuccessStatus, i as Endpoint, j as createAuthorizer, k as OAuthFlows, l as EndpointStatus, n as ConvertRouteParams, o as EndpointHandler, p as ResponseBuilder, r as CookieFn, s as EndpointOutput, u as EndpointSurface, v as RLS_BYPASS, w as MappedAudit, x as RlsContext, y as RlsBypass } from "../Endpoint-CIDUreMW.mjs";
|
|
3
|
+
import { a as UPLOAD_POST_SCHEMA, c as UploadContentTypeUnresolved, d as UploadOptions, f as UploadPost, i as UploadHandler, l as UploadExpiryInvalid, n as EndpointBuilder, o as UploadAcceptInvalid, r as UploadEndpointBuilder, s as UploadContentTypeRefused, t as EndpointFactory, u as UploadMaxSizeInvalid } from "../EndpointFactory-CIM80WIK.mjs";
|
|
4
|
+
import { trustsOrigin } from "@geekmidas/manifest";
|
|
5
|
+
import { HttpError } from "@geekmidas/errors";
|
|
6
|
+
import { EnvironmentParser } from "@geekmidas/envkit";
|
|
7
|
+
import { Context } from "hono";
|
|
8
|
+
//#region src/endpoints/lazyAccessors.d.ts
|
|
9
|
+
/**
|
|
10
|
+
* Create a lazy header accessor for Hono.
|
|
11
|
+
* Uses `c.req.header(name)` for single lookups (native, case-insensitive).
|
|
12
|
+
* Only calls `c.req.header()` to get all headers when needed.
|
|
13
|
+
*/
|
|
14
|
+
export declare function createHonoHeaders(c: Context): HeaderFn;
|
|
15
|
+
/**
|
|
16
|
+
* Create a lazy cookie accessor for Hono.
|
|
17
|
+
* Reads one cookie from the header for single lookups.
|
|
18
|
+
* Only parses the cookie header when all cookies are requested.
|
|
19
|
+
*/
|
|
20
|
+
export declare function createHonoCookies(c: Context): CookieFn;
|
|
21
|
+
/**
|
|
22
|
+
* Create a lazy header accessor for API Gateway events.
|
|
23
|
+
* Handles case-insensitive lookups.
|
|
24
|
+
*/
|
|
25
|
+
export declare function createApiGatewayHeaders(headers: Record<string, string | undefined> | null | undefined): HeaderFn;
|
|
26
|
+
/**
|
|
27
|
+
* Create a lazy cookie accessor for API Gateway events.
|
|
28
|
+
* Decodes URL-encoded values to match browser behavior.
|
|
29
|
+
*/
|
|
30
|
+
export declare function createApiGatewayCookies(cookies: string[] | undefined, cookieHeader: string | undefined): CookieFn;
|
|
31
|
+
/**
|
|
32
|
+
* Create a no-op header accessor (for minimal endpoints that don't use headers).
|
|
33
|
+
*/
|
|
34
|
+
export declare function createNoopHeaders(): HeaderFn;
|
|
35
|
+
/**
|
|
36
|
+
* Create a no-op cookie accessor (for minimal endpoints that don't use cookies).
|
|
37
|
+
*/
|
|
38
|
+
export declare function createNoopCookies(): CookieFn;
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/endpoints/readRequestBody.d.ts
|
|
41
|
+
/**
|
|
42
|
+
* The media types an endpoint's `.body()` schema can be handed — as written
|
|
43
|
+
* in the 415 a request in any other type is answered with.
|
|
44
|
+
*/
|
|
45
|
+
export declare const SUPPORTED_BODY_TYPES: readonly ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data', 'text/*'];
|
|
46
|
+
/**
|
|
47
|
+
* A request whose body is in a media type no endpoint reads — XML, a bare
|
|
48
|
+
* octet stream. Answered with a 415, before the body schema runs.
|
|
49
|
+
*/
|
|
50
|
+
export declare class UnsupportedRequestContentType extends HttpError {
|
|
51
|
+
readonly contentType: string;
|
|
52
|
+
constructor(contentType: string);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* A body that says it is JSON and is not. Answered with a 400 — the request
|
|
56
|
+
* is broken, not merely invalid against the schema.
|
|
57
|
+
*/
|
|
58
|
+
export declare class MalformedRequestBody extends HttpError {
|
|
59
|
+
readonly contentType: string;
|
|
60
|
+
constructor(contentType: string, cause?: Error);
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* What a body is read from: a `Request`, or Hono's request — which caches
|
|
64
|
+
* what it read, so a later reader is not handed a spent stream.
|
|
65
|
+
*/
|
|
66
|
+
interface RequestBodySource {
|
|
67
|
+
json(): Promise<unknown>;
|
|
68
|
+
text(): Promise<string>;
|
|
69
|
+
formData(): Promise<FormData>;
|
|
70
|
+
}
|
|
71
|
+
interface ReadRequestBodyOptions {
|
|
72
|
+
/**
|
|
73
|
+
* A body with no Content-Type: read as JSON (`'json'`, what API Gateway
|
|
74
|
+
* has always done), or not read at all and handed to the schema as `{}`
|
|
75
|
+
* (`'empty'`, what a Hono server has always done).
|
|
76
|
+
*/
|
|
77
|
+
untyped: 'json' | 'empty';
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* A request body, read by its Content-Type into what an endpoint's `.body()`
|
|
81
|
+
* schema validates — the one place every adaptor reads a body:
|
|
82
|
+
*
|
|
83
|
+
* - `application/json` (and `application/*+json`) — the parsed JSON.
|
|
84
|
+
* - `application/x-www-form-urlencoded` and `multipart/form-data` — a plain
|
|
85
|
+
* object of fields, as an HTML form posts them. A repeated field, or one
|
|
86
|
+
* named `field[]`, is an array; a file part is a `File`.
|
|
87
|
+
* - `text/*` — the text.
|
|
88
|
+
*
|
|
89
|
+
* Anything else is an {@link UnsupportedRequestContentType}.
|
|
90
|
+
*/
|
|
91
|
+
export declare function readRequestBody(source: RequestBodySource, contentType: string | null | undefined, options: ReadRequestBodyOptions): Promise<unknown>;
|
|
92
|
+
//#endregion
|
|
93
|
+
//#region src/endpoints/surfaceEnv.d.ts
|
|
94
|
+
/**
|
|
95
|
+
* The default parser, built once.
|
|
96
|
+
*
|
|
97
|
+
* Once because `Credentials` resolves through `globalThis` and decryption is
|
|
98
|
+
* not free, and because two parsers over the same environment are two caches of
|
|
99
|
+
* the same answer.
|
|
100
|
+
*/
|
|
101
|
+
export declare function defaultEnvParser(): EnvironmentParser<{}>;
|
|
102
|
+
/** The parser for an endpoint, from its surface or the default. */
|
|
103
|
+
export declare function envParserFor(surface: EndpointSurface | undefined): EnvironmentParser<{}>;
|
|
104
|
+
//#endregion
|
|
105
|
+
export { type ActorExtractor, type Authorizer, BUILT_IN_SECURITY_SCHEMES, type BuiltInSecuritySchemeId, type ConvertRouteParams, Endpoint, EndpointBuilder, type EndpointContext, EndpointFactory, type EndpointHandler, type EndpointOutput, type EndpointSchemas, type EndpointStatus, type MappedAudit, NoAuthenticator, type OAuthFlow, type OAuthFlows, RLS_BYPASS, RedirectStatus, type RequestBodySource, ResponseBuilder, type RlsBypass, type RlsConfig, type RlsContext, type RlsContextExtractor, type SecurityScheme, type SessionAuth, SuccessStatus, UPLOAD_POST_SCHEMA, UploadAcceptInvalid, UploadContentTypeRefused, UploadContentTypeUnresolved, UploadEndpointBuilder, UploadExpiryInvalid, type UploadHandler, UploadMaxSizeInvalid, type UploadOptions, type UploadPost, createAuthorizer, getSecurityScheme, isBuiltInSecurityScheme, publishConstructEvents, trustsOrigin };
|
|
106
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/endpoints/lazyAccessors.ts","../../src/endpoints/readRequestBody.ts","../../src/endpoints/surfaceEnv.ts"],"mappings":";;;;;;;;;;;;;wBA0CgB,kBAAkB,GAAG,UAAU;;;;;;wBAqB/B,kBAAkB,GAAG,UAAU;;;;;wBAgC/B,wBACf,SAAS,wDACP;;;;;wBAoCa,wBACf,+BACA,mCACE;;;;wBAmHa,qBAAqB;;;;wBAUrB,qBAAqB;;;;;;;qBC/PxB;;;;;qBAWA,sCAAsC;WAC7B;EAArB,YAAqB;;;;;;qBAiBT,6BAA6B;WAE/B;EADV,YACU,qBACT,QAAQ;;;;;;UAeO;EAChB,QAAQ;EACR,QAAQ;EACR,YAAY,QAAQ;;UAGJ;;;;;;EAMhB;;;;;;;;;;;;;;wBAeqB,gBACrB,QAAQ,mBACR,wCACA,SAAS,yBACP;;;;;;;;;;wBCnDa,oBAAoB;;wBASpB,aACf,SAAS,8BACP"}
|