@burdenoff/be-sdk 2026.1110.2 → 2026.1110.3
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/configs/eslint/index.js +1 -1
- package/configs/tsconfig/tsconfig.json +1 -1
- package/dist/EventQueueFactory-9NGZV9jl.js +1457 -0
- package/dist/EventQueueFactory-9NGZV9jl.js.map +1 -0
- package/dist/RedisStreamsConnection-CY8WySJy.js +283 -0
- package/dist/RedisStreamsConnection-CY8WySJy.js.map +1 -0
- package/dist/ai-credits/index.d.ts +2 -3
- package/dist/ai-credits/index.js +3 -4
- package/dist/ai-credits/index.js.map +1 -1
- package/dist/ai-credits-Ca-NNcVx.js +546 -0
- package/dist/ai-credits-Ca-NNcVx.js.map +1 -0
- package/dist/{assistant-session-CJZhF4D6.d.ts → assistant-session-DA5ZKJOr.d.ts} +4 -5
- package/dist/auth/index.d.ts +2 -77
- package/dist/auth/index.js +3 -7
- package/dist/auth/index.js.map +1 -1
- package/dist/auth-CEuBEBQN.js +228 -0
- package/dist/auth-CEuBEBQN.js.map +1 -0
- package/dist/cache/index.d.ts +2 -3
- package/dist/cache/index.js +3 -7
- package/dist/cache/index.js.map +1 -1
- package/dist/cache-CU0uLwcS.js +1837 -0
- package/dist/cache-CU0uLwcS.js.map +1 -0
- package/dist/captcha/index.d.ts +2 -1
- package/dist/captcha/index.js +3 -3
- package/dist/captcha/index.js.map +1 -1
- package/dist/captcha-BT7yh1YS.js +77 -0
- package/dist/captcha-BT7yh1YS.js.map +1 -0
- package/dist/client/internal-client.d.ts +4 -7
- package/dist/client/internal-client.js +172 -4
- package/dist/client/internal-client.js.map +1 -1
- package/dist/client-BgAEvDC2.d.ts +86 -0
- package/dist/client-DcZ3iGES.js +565 -0
- package/dist/client-DcZ3iGES.js.map +1 -0
- package/dist/collector-endpoint-iyQYeI50.js +50 -0
- package/dist/collector-endpoint-iyQYeI50.js.map +1 -0
- package/dist/context-CZnXf2yb.js +247 -0
- package/dist/context-CZnXf2yb.js.map +1 -0
- package/dist/crypto/index.d.ts +2 -1
- package/dist/crypto/index.js +3 -3
- package/dist/crypto/index.js.map +1 -1
- package/dist/crypto-DO9fM0FO.js +145 -0
- package/dist/crypto-DO9fM0FO.js.map +1 -0
- package/dist/database/index.d.ts +104 -108
- package/dist/database/index.js +468 -6
- package/dist/database/index.js.map +1 -1
- package/dist/dataloader/index.d.ts +2 -1
- package/dist/dataloader/index.js +3 -3
- package/dist/dataloader/index.js.map +1 -1
- package/dist/dataloader-DwpT3YoS.js +294 -0
- package/dist/dataloader-DwpT3YoS.js.map +1 -0
- package/dist/deployed-environment-p_Tdl3sT.js +38 -0
- package/dist/deployed-environment-p_Tdl3sT.js.map +1 -0
- package/dist/dist-BGKdXVy3.js +1718 -0
- package/dist/dist-BGKdXVy3.js.map +1 -0
- package/dist/env-DdaoGjIt.js +74 -0
- package/dist/env-DdaoGjIt.js.map +1 -0
- package/dist/event-queue/index.d.ts +2 -7
- package/dist/event-queue/index.js +7 -9
- package/dist/event-queue/index.js.map +1 -1
- package/dist/event-queue-Cw-YJPY_.js +1384 -0
- package/dist/event-queue-Cw-YJPY_.js.map +1 -0
- package/dist/{explicit-activity-scope-CCoxVwAr.d.ts → explicit-activity-scope-D8VeGGpt.d.ts} +1 -2
- package/dist/export/index.d.ts +2 -2
- package/dist/export/index.js +3 -14
- package/dist/export/index.js.map +1 -1
- package/dist/export-B6fphx8a.js +642 -0
- package/dist/export-B6fphx8a.js.map +1 -0
- package/dist/feature-flags/index.d.ts +2 -10
- package/dist/feature-flags/index.js +3 -6
- package/dist/feature-flags/index.js.map +1 -1
- package/dist/feature-flags-71oDkrUe.js +422 -0
- package/dist/feature-flags-71oDkrUe.js.map +1 -0
- package/dist/files/index.d.ts +2 -3
- package/dist/files/index.js +3 -4
- package/dist/files/index.js.map +1 -1
- package/dist/files-DjH0099H.js +830 -0
- package/dist/files-DjH0099H.js.map +1 -0
- package/dist/gateway/index.d.ts +4 -6
- package/dist/gateway/index.js +7 -13
- package/dist/gateway/index.js.map +1 -1
- package/dist/gateway/security/index.d.ts +2 -2
- package/dist/gateway/security/index.js +3 -5
- package/dist/gateway/security/index.js.map +1 -1
- package/dist/gateway-DBFmxWks.js +50 -0
- package/dist/gateway-DBFmxWks.js.map +1 -0
- package/dist/graph/index.d.ts +3 -10
- package/dist/graph/index.js +4 -13
- package/dist/graph/index.js.map +1 -1
- package/dist/graph-DDYgIryR.js +2152 -0
- package/dist/graph-DDYgIryR.js.map +1 -0
- package/dist/graph-emitter-CdOXP7Tn.js +621 -0
- package/dist/graph-emitter-CdOXP7Tn.js.map +1 -0
- package/dist/graphql/index.d.ts +3 -2
- package/dist/graphql/index.js +4 -6
- package/dist/graphql/index.js.map +1 -1
- package/dist/graphql/services/index.d.ts +2 -24
- package/dist/graphql/services/index.js +3 -4
- package/dist/graphql/services/index.js.map +1 -1
- package/dist/graphql-DHAHHcww.js +161 -0
- package/dist/graphql-DHAHHcww.js.map +1 -0
- package/dist/graphql-DNkMkGBZ.d.ts +21 -0
- package/dist/i18n/index.d.ts +3 -3
- package/dist/i18n/index.js +3 -4
- package/dist/i18n/index.js.map +1 -1
- package/dist/i18n-BBMYFd0P.js +860 -0
- package/dist/i18n-BBMYFd0P.js.map +1 -0
- package/dist/import-optional-peer-B82VYxeX.js +18 -0
- package/dist/import-optional-peer-B82VYxeX.js.map +1 -0
- package/dist/index-3KOZ1zN9.d.ts +233 -0
- package/dist/index-BBqooJ52.d.ts +45 -0
- package/dist/index-BGzMYJsm.d.ts +209 -0
- package/dist/index-BKwHQtHQ.d.ts +63 -0
- package/dist/index-BMIMnp6T.d.ts +8 -0
- package/dist/index-BQDsNAMR.d.ts +81 -0
- package/dist/index-BVOL7458.d.ts +10 -0
- package/dist/index-BcqQs-Uq.d.ts +69 -0
- package/dist/index-BeVtqGO-.d.ts +208 -0
- package/dist/index-BiTzGUZP.d.ts +114 -0
- package/dist/index-BqYfCQSP.d.ts +500 -0
- package/dist/index-C0qLquY0.d.ts +150 -0
- package/dist/index-C5uEKchX.d.ts +60 -0
- package/dist/index-CDOqxSIi.d.ts +37 -0
- package/dist/index-CG6wj66Y.d.ts +148 -0
- package/dist/index-CIgoeobA.d.ts +145 -0
- package/dist/index-CPQDMSFS.d.ts +103 -0
- package/dist/index-CSRcgkVi.d.ts +23 -0
- package/dist/index-CZTnQIRU.d.ts +341 -0
- package/dist/index-CaM9JUcc.d.ts +144 -0
- package/dist/index-CkT2aUr3.d.ts +704 -0
- package/dist/index-CliOgq6L.d.ts +203 -0
- package/dist/index-CnzbJZP7.d.ts +999 -0
- package/dist/index-D6UeLAye.d.ts +63 -0
- package/dist/index-DGgh9DWn.d.ts +59 -0
- package/dist/index-DY3dNhMN.d.ts +420 -0
- package/dist/index-DZC-2o9R.d.ts +207 -0
- package/dist/index-DqbGqfAy.d.ts +127 -0
- package/dist/index-Dt1HJPTX.d.ts +12 -0
- package/dist/index-DtI6aBtB.d.ts +22 -0
- package/dist/index-FKohsiex.d.ts +38 -0
- package/dist/index-FbXPfen7.d.ts +132 -0
- package/dist/index-MArCb8Aq.d.ts +306 -0
- package/dist/index-N-huORcj.d.ts +303 -0
- package/dist/index-YOShAwkq.d.ts +45 -0
- package/dist/index-bZKZUvBu.d.ts +646 -0
- package/dist/index-yBSjMY32.d.ts +24 -0
- package/dist/index.d.ts +501 -544
- package/dist/index.js +1820 -2171
- package/dist/index.js.map +1 -1
- package/dist/init/index.d.ts +2 -2
- package/dist/init/index.js +3 -16
- package/dist/init/index.js.map +1 -1
- package/dist/init-Dy3KhT6Y.js +325 -0
- package/dist/init-Dy3KhT6Y.js.map +1 -0
- package/dist/instrumentation/index.d.ts +3 -4
- package/dist/instrumentation/index.js +5 -5
- package/dist/instrumentation/index.js.map +1 -1
- package/dist/instrumentation-xkkmDgJ0.js +1678 -0
- package/dist/instrumentation-xkkmDgJ0.js.map +1 -0
- package/dist/lake/index.d.ts +50 -54
- package/dist/lake/index.js +169 -193
- package/dist/lake/index.js.map +1 -1
- package/dist/layer/index.d.ts +3 -2
- package/dist/layer/index.js +4 -5
- package/dist/layer/index.js.map +1 -1
- package/dist/layer-BZBZZWeV.d.ts +69 -0
- package/dist/layer-Bcix-WCl.js +105 -0
- package/dist/layer-Bcix-WCl.js.map +1 -0
- package/dist/layer-CEKy6cm8.js +252 -0
- package/dist/layer-CEKy6cm8.js.map +1 -0
- package/dist/lifecycle/index.d.ts +2 -1
- package/dist/lifecycle/index.js +3 -4
- package/dist/lifecycle/index.js.map +1 -1
- package/dist/lifecycle-DeoLSX0U.js +76 -0
- package/dist/lifecycle-DeoLSX0U.js.map +1 -0
- package/dist/logger/index.d.ts +2 -3
- package/dist/logger/index.js +3 -3
- package/dist/logger/index.js.map +1 -1
- package/dist/logger-B6rCpb7D.js +290 -0
- package/dist/logger-B6rCpb7D.js.map +1 -0
- package/dist/metrics/index.d.ts +13 -14
- package/dist/metrics/index.js +3 -4
- package/dist/metrics/index.js.map +1 -1
- package/dist/metrics-BrLwNUrb.js +52 -0
- package/dist/metrics-BrLwNUrb.js.map +1 -0
- package/dist/metrics-collector-C2eShrlW.js +922 -0
- package/dist/metrics-collector-C2eShrlW.js.map +1 -0
- package/dist/middleware/index.d.ts +3 -3
- package/dist/middleware/index.js +3 -4
- package/dist/middleware/index.js.map +1 -1
- package/dist/middleware-CUxJVUpD.js +1243 -0
- package/dist/middleware-CUxJVUpD.js.map +1 -0
- package/dist/middleware-Cq0zFMGp.js +253 -0
- package/dist/middleware-Cq0zFMGp.js.map +1 -0
- package/dist/notifications/index.d.ts +2 -5
- package/dist/notifications/index.js +3 -6
- package/dist/notifications/index.js.map +1 -1
- package/dist/notifications-CdETrtFK.js +869 -0
- package/dist/notifications-CdETrtFK.js.map +1 -0
- package/dist/observability/index.d.ts +2 -3
- package/dist/observability/index.js +3 -4
- package/dist/observability/index.js.map +1 -1
- package/dist/observability-DBDXipTU.js +272 -0
- package/dist/observability-DBDXipTU.js.map +1 -0
- package/dist/platform/index.d.ts +2 -1
- package/dist/platform/index.js +3 -5
- package/dist/platform/index.js.map +1 -1
- package/dist/platform-DZwczW7v.js +1510 -0
- package/dist/platform-DZwczW7v.js.map +1 -0
- package/dist/prisma/generator/index.d.ts +1 -1
- package/dist/prisma/generator/index.js +97 -84
- package/dist/prisma/generator/index.js.map +1 -1
- package/dist/prisma/index.d.ts +4 -7
- package/dist/prisma/index.js +5 -12
- package/dist/prisma/index.js.map +1 -1
- package/dist/prisma-BzOOdt79.js +863 -0
- package/dist/prisma-BzOOdt79.js.map +1 -0
- package/dist/prisma-extension-Cfl09swM.d.ts +172 -0
- package/dist/product-alias/index.d.ts +2 -1
- package/dist/product-alias/index.js +3 -3
- package/dist/product-alias/index.js.map +1 -1
- package/dist/product-alias-BPqtskMq.js +273 -0
- package/dist/product-alias-BPqtskMq.js.map +1 -0
- package/dist/rbac/index.d.ts +2 -122
- package/dist/rbac/index.js +3 -6
- package/dist/rbac/index.js.map +1 -1
- package/dist/rbac-BB9l9Xph.js +1486 -0
- package/dist/rbac-BB9l9Xph.js.map +1 -0
- package/dist/resource-caps/index.d.ts +66 -72
- package/dist/resource-caps/index.js +430 -5
- package/dist/resource-caps/index.js.map +1 -1
- package/dist/rolldown-runtime-ad2WFvuA.js +17 -0
- package/dist/sdk-Dju9o-sq.js +124 -0
- package/dist/sdk-Dju9o-sq.js.map +1 -0
- package/dist/security-DIG-95Ic.js +1647 -0
- package/dist/security-DIG-95Ic.js.map +1 -0
- package/dist/server/index.d.ts +7 -164
- package/dist/server/index.js +2000 -1507
- package/dist/server/index.js.map +1 -1
- package/dist/service-jwt-Bu-WNA_-.js +80 -0
- package/dist/service-jwt-Bu-WNA_-.js.map +1 -0
- package/dist/services-BWzfz7vG.js +102 -0
- package/dist/services-BWzfz7vG.js.map +1 -0
- package/dist/sharding/index.d.ts +41 -44
- package/dist/sharding/index.js +156 -137
- package/dist/sharding/index.js.map +1 -1
- package/dist/sharing/index.d.ts +2 -1
- package/dist/sharing/index.js +3 -4
- package/dist/sharing/index.js.map +1 -1
- package/dist/sharing-CflDsSJ-.js +911 -0
- package/dist/sharing-CflDsSJ-.js.map +1 -0
- package/dist/stub-BqwKn4eh.js +630 -0
- package/dist/stub-BqwKn4eh.js.map +1 -0
- package/dist/tags/index.d.ts +2 -3
- package/dist/tags/index.js +3 -4
- package/dist/tags/index.js.map +1 -1
- package/dist/tags-B5xpbgsk.js +868 -0
- package/dist/{chunk-PBZFAAOM.js.map → tags-B5xpbgsk.js.map} +1 -1
- package/dist/telemetry/index.d.ts +64 -76
- package/dist/telemetry/index.js +369 -201
- package/dist/telemetry/index.js.map +1 -1
- package/dist/temporal/index.d.ts +2 -148
- package/dist/temporal/index.js +3 -5
- package/dist/temporal/index.js.map +1 -1
- package/dist/temporal-B534uYK8.js +706 -0
- package/dist/temporal-B534uYK8.js.map +1 -0
- package/dist/tracker/index.d.ts +5 -11
- package/dist/tracker/index.js +5 -20
- package/dist/tracker/index.js.map +1 -1
- package/dist/tracker-BQVoEFUo.js +839 -0
- package/dist/tracker-BQVoEFUo.js.map +1 -0
- package/dist/types-BYMYND1L.js +44 -0
- package/dist/types-BYMYND1L.js.map +1 -0
- package/dist/types-C6EKaS3V.d.ts +106 -0
- package/dist/types-CWybW61E.d.ts +323 -0
- package/dist/types-C_yfu3XK.d.ts +34 -0
- package/dist/types-Cj2RWXbz.js +90 -0
- package/dist/types-Cj2RWXbz.js.map +1 -0
- package/dist/types-DgaQqvxo.d.ts +70 -0
- package/dist/usage/index.d.ts +2 -213
- package/dist/usage/index.js +3 -15
- package/dist/usage/index.js.map +1 -1
- package/dist/usage-BKFZiWQn.js +682 -0
- package/dist/usage-BKFZiWQn.js.map +1 -0
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/index.js +3 -3
- package/dist/utils/index.js.map +1 -1
- package/dist/utils-DL85Tnbn.js +500 -0
- package/dist/utils-DL85Tnbn.js.map +1 -0
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/index.js +3 -3
- package/dist/validation/index.js.map +1 -1
- package/dist/validation-CPUITdMk.js +762 -0
- package/dist/validation-CPUITdMk.js.map +1 -0
- package/dist/workspace-extension-COrC0dYi.js +979 -0
- package/dist/workspace-extension-COrC0dYi.js.map +1 -0
- package/dist/{workspace-extension-BGwTOV_r.d.ts → workspace-extension-DTFTdGVF.d.ts} +43 -45
- package/package.json +7 -10
- package/dist/EventQueueFactory-GXC3A7DH.js +0 -8
- package/dist/EventQueueFactory-GXC3A7DH.js.map +0 -1
- package/dist/chunk-4XIBXZ6J.js +0 -276
- package/dist/chunk-4XIBXZ6J.js.map +0 -1
- package/dist/chunk-554Z4C2K.js +0 -1006
- package/dist/chunk-554Z4C2K.js.map +0 -1
- package/dist/chunk-5CAFHK2Z.js +0 -107
- package/dist/chunk-5CAFHK2Z.js.map +0 -1
- package/dist/chunk-63ZXJ42X.js +0 -451
- package/dist/chunk-63ZXJ42X.js.map +0 -1
- package/dist/chunk-6XEXJATV.js +0 -304
- package/dist/chunk-6XEXJATV.js.map +0 -1
- package/dist/chunk-726AR6Q7.js +0 -1532
- package/dist/chunk-726AR6Q7.js.map +0 -1
- package/dist/chunk-A5F6Z5UE.js +0 -21
- package/dist/chunk-A5F6Z5UE.js.map +0 -1
- package/dist/chunk-A6DE32ZS.js +0 -1507
- package/dist/chunk-A6DE32ZS.js.map +0 -1
- package/dist/chunk-AXJDGQPE.js +0 -690
- package/dist/chunk-AXJDGQPE.js.map +0 -1
- package/dist/chunk-BJQOGOVW.js +0 -602
- package/dist/chunk-BJQOGOVW.js.map +0 -1
- package/dist/chunk-CFXWH2IS.js +0 -52
- package/dist/chunk-CFXWH2IS.js.map +0 -1
- package/dist/chunk-DRWH5XCJ.js +0 -876
- package/dist/chunk-DRWH5XCJ.js.map +0 -1
- package/dist/chunk-E4QNLVY4.js +0 -909
- package/dist/chunk-E4QNLVY4.js.map +0 -1
- package/dist/chunk-EBDHIL7V.js +0 -774
- package/dist/chunk-EBDHIL7V.js.map +0 -1
- package/dist/chunk-ELU7VL3E.js +0 -245
- package/dist/chunk-ELU7VL3E.js.map +0 -1
- package/dist/chunk-FZRODKIN.js +0 -31
- package/dist/chunk-FZRODKIN.js.map +0 -1
- package/dist/chunk-GCIB76AJ.js +0 -882
- package/dist/chunk-GCIB76AJ.js.map +0 -1
- package/dist/chunk-HC6MPUIH.js +0 -1571
- package/dist/chunk-HC6MPUIH.js.map +0 -1
- package/dist/chunk-HNMHPSAM.js +0 -272
- package/dist/chunk-HNMHPSAM.js.map +0 -1
- package/dist/chunk-HTLEGD3Q.js +0 -1480
- package/dist/chunk-HTLEGD3Q.js.map +0 -1
- package/dist/chunk-I3KOWRT3.js +0 -89
- package/dist/chunk-I3KOWRT3.js.map +0 -1
- package/dist/chunk-ID3WR4JS.js +0 -509
- package/dist/chunk-ID3WR4JS.js.map +0 -1
- package/dist/chunk-JS52ZHTK.js +0 -1346
- package/dist/chunk-JS52ZHTK.js.map +0 -1
- package/dist/chunk-JVMAQOA3.js +0 -521
- package/dist/chunk-JVMAQOA3.js.map +0 -1
- package/dist/chunk-KH4TRQCO.js +0 -1063
- package/dist/chunk-KH4TRQCO.js.map +0 -1
- package/dist/chunk-KJOSPVB2.js +0 -57
- package/dist/chunk-KJOSPVB2.js.map +0 -1
- package/dist/chunk-KO2ZXZ7W.js +0 -61
- package/dist/chunk-KO2ZXZ7W.js.map +0 -1
- package/dist/chunk-KS2HQCJR.js +0 -56
- package/dist/chunk-KS2HQCJR.js.map +0 -1
- package/dist/chunk-LA5KPWZ2.js +0 -413
- package/dist/chunk-LA5KPWZ2.js.map +0 -1
- package/dist/chunk-MESLAC5W.js +0 -574
- package/dist/chunk-MESLAC5W.js.map +0 -1
- package/dist/chunk-MWPYA2HD.js +0 -94
- package/dist/chunk-MWPYA2HD.js.map +0 -1
- package/dist/chunk-NUB5GQTU.js +0 -270
- package/dist/chunk-NUB5GQTU.js.map +0 -1
- package/dist/chunk-OBBCR6WY.js +0 -277
- package/dist/chunk-OBBCR6WY.js.map +0 -1
- package/dist/chunk-OQDSAOG3.js +0 -1908
- package/dist/chunk-OQDSAOG3.js.map +0 -1
- package/dist/chunk-OXNCBE7P.js +0 -971
- package/dist/chunk-OXNCBE7P.js.map +0 -1
- package/dist/chunk-PBZFAAOM.js +0 -941
- package/dist/chunk-PN6GIF3R.js +0 -1185
- package/dist/chunk-PN6GIF3R.js.map +0 -1
- package/dist/chunk-PYD44IHJ.js +0 -728
- package/dist/chunk-PYD44IHJ.js.map +0 -1
- package/dist/chunk-QVPIACWD.js +0 -679
- package/dist/chunk-QVPIACWD.js.map +0 -1
- package/dist/chunk-QWNNFE4P.js +0 -41
- package/dist/chunk-QWNNFE4P.js.map +0 -1
- package/dist/chunk-RU266375.js +0 -327
- package/dist/chunk-RU266375.js.map +0 -1
- package/dist/chunk-RYTSVGGA.js +0 -1624
- package/dist/chunk-RYTSVGGA.js.map +0 -1
- package/dist/chunk-RZOFS2BQ.js +0 -225
- package/dist/chunk-RZOFS2BQ.js.map +0 -1
- package/dist/chunk-SBS4S2PJ.js +0 -100
- package/dist/chunk-SBS4S2PJ.js.map +0 -1
- package/dist/chunk-SPRG6G6G.js +0 -530
- package/dist/chunk-SPRG6G6G.js.map +0 -1
- package/dist/chunk-STWFX5E2.js +0 -233
- package/dist/chunk-STWFX5E2.js.map +0 -1
- package/dist/chunk-UNASM5VJ.js +0 -419
- package/dist/chunk-UNASM5VJ.js.map +0 -1
- package/dist/chunk-VAT66FJA.js +0 -245
- package/dist/chunk-VAT66FJA.js.map +0 -1
- package/dist/chunk-VFCMR5GX.js +0 -49
- package/dist/chunk-VFCMR5GX.js.map +0 -1
- package/dist/chunk-VGAHZKNJ.js +0 -66
- package/dist/chunk-VGAHZKNJ.js.map +0 -1
- package/dist/chunk-VTJTAAXC.js +0 -627
- package/dist/chunk-VTJTAAXC.js.map +0 -1
- package/dist/chunk-VXVLKRU6.js +0 -758
- package/dist/chunk-VXVLKRU6.js.map +0 -1
- package/dist/chunk-WWUU5ETI.js +0 -163
- package/dist/chunk-WWUU5ETI.js.map +0 -1
- package/dist/chunk-XE4OXN2W.js +0 -10
- package/dist/chunk-XE4OXN2W.js.map +0 -1
- package/dist/chunk-XOJORS75.js +0 -1853
- package/dist/chunk-XOJORS75.js.map +0 -1
- package/dist/chunk-YMZEUTD2.js +0 -110
- package/dist/chunk-YMZEUTD2.js.map +0 -1
- package/dist/chunk-Z77BTSOK.js +0 -617
- package/dist/chunk-Z77BTSOK.js.map +0 -1
- package/dist/chunk-ZZK3WEDI.js +0 -181
- package/dist/chunk-ZZK3WEDI.js.map +0 -1
- package/dist/client-CCXpAZ2r.d.ts +0 -89
- package/dist/client-DSI_760t.d.ts +0 -36
- package/dist/client-JU6T3UPB.js +0 -11
- package/dist/client-JU6T3UPB.js.map +0 -1
- package/dist/dist-2X4Q7PJA.js +0 -1491
- package/dist/dist-2X4Q7PJA.js.map +0 -1
- package/dist/env-4UWSUS64.js +0 -4
- package/dist/env-4UWSUS64.js.map +0 -1
- package/dist/graph-emitter-r5TylDBm.d.ts +0 -47
- package/dist/graphql-CMHMQjvd.d.ts +0 -23
- package/dist/i18n-Qm2AkPC-.d.ts +0 -33
- package/dist/index--yvpa6ay.d.ts +0 -83
- package/dist/index-4gKQKZ2B.d.ts +0 -71
- package/dist/index-5x0XMKXN.d.ts +0 -149
- package/dist/index-B70b5mYS.d.ts +0 -33
- package/dist/index-B8KrxO4j.d.ts +0 -755
- package/dist/index-BOuDKnqD.d.ts +0 -201
- package/dist/index-BTMt4OjA.d.ts +0 -201
- package/dist/index-BejbszA7.d.ts +0 -39
- package/dist/index-BkeOYZye.d.ts +0 -198
- package/dist/index-BuAj5nXg.d.ts +0 -83
- package/dist/index-BvkVcW8I.d.ts +0 -349
- package/dist/index-CWmH_-RZ.d.ts +0 -247
- package/dist/index-CbgWNcus.d.ts +0 -258
- package/dist/index-CmfPeQza.d.ts +0 -166
- package/dist/index-CmpG-zak.d.ts +0 -607
- package/dist/index-CoMKgL-p.d.ts +0 -12
- package/dist/index-D8HGwglK.d.ts +0 -541
- package/dist/index-DCaVm66D.d.ts +0 -1101
- package/dist/index-DE2w7E0d.d.ts +0 -83
- package/dist/index-DSOpj8DI.d.ts +0 -17
- package/dist/index-DW9q22GH.d.ts +0 -75
- package/dist/index-DnjJ9CwI.d.ts +0 -347
- package/dist/index-DwMJZ8PP.d.ts +0 -317
- package/dist/index-PaojfSdd.d.ts +0 -71
- package/dist/index-aHtYvc3i.d.ts +0 -284
- package/dist/index-e_18DzAg.d.ts +0 -18
- package/dist/index-ffmipXSA.d.ts +0 -55
- package/dist/index-joONjwLt.d.ts +0 -33
- package/dist/index-kssw5ziY.d.ts +0 -250
- package/dist/index-lFffh5-G.d.ts +0 -125
- package/dist/index-pxYge_6k.d.ts +0 -79
- package/dist/layer-Cv9vSwBx.d.ts +0 -70
- package/dist/pino-logger-H4HPW5P6.js +0 -5
- package/dist/pino-logger-H4HPW5P6.js.map +0 -1
- package/dist/prisma-extension-gYhYriA0.d.ts +0 -174
- package/dist/sdk-L75WWUP3.js +0 -156
- package/dist/sdk-L75WWUP3.js.map +0 -1
- package/dist/shutdown-registry-CW9LryO8.d.ts +0 -10
- package/dist/types-Bo2wkjSP.d.ts +0 -35
- package/dist/types-DVpvrAhd.d.ts +0 -71
- package/dist/types-DgJ4lDYA.d.ts +0 -108
- package/dist/types-USOv09qy.d.ts +0 -327
- package/dist/workspace-guard-NXVYYBVJ.js +0 -5
- package/dist/workspace-guard-NXVYYBVJ.js.map +0 -1
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import "graphql";
|
|
2
|
+
import { Plugin } from "graphql-yoga";
|
|
3
|
+
type Tier = 'public' | 'user' | 'app' | 'service' | 'super_admin';
|
|
4
|
+
interface TierLimits {
|
|
5
|
+
points: number;
|
|
6
|
+
duration: number;
|
|
7
|
+
burst: number;
|
|
8
|
+
}
|
|
9
|
+
interface ActorContext {
|
|
10
|
+
tier: Tier;
|
|
11
|
+
identity: string;
|
|
12
|
+
headers: {
|
|
13
|
+
actorId?: string;
|
|
14
|
+
actorType?: string;
|
|
15
|
+
actorRole?: string;
|
|
16
|
+
workspaceId?: string;
|
|
17
|
+
tenantId?: string;
|
|
18
|
+
orgId?: string;
|
|
19
|
+
appId?: string;
|
|
20
|
+
ip?: string;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
type CostMap = Record<string, number>;
|
|
24
|
+
interface RateLimitResult {
|
|
25
|
+
allowed: boolean;
|
|
26
|
+
remaining: number;
|
|
27
|
+
resetAtMs: number;
|
|
28
|
+
limit: number;
|
|
29
|
+
}
|
|
30
|
+
interface ArmorConfig {
|
|
31
|
+
maxAliases: number;
|
|
32
|
+
maxTokens: number;
|
|
33
|
+
maxDirectives: number;
|
|
34
|
+
characterLimit: number;
|
|
35
|
+
costLimit: number;
|
|
36
|
+
observe: boolean;
|
|
37
|
+
}
|
|
38
|
+
interface QueryComplexityConfig {
|
|
39
|
+
enabled: boolean;
|
|
40
|
+
maxCost: number;
|
|
41
|
+
costMap: CostMap;
|
|
42
|
+
observe: boolean;
|
|
43
|
+
}
|
|
44
|
+
interface PerWorkspaceRateLimit {
|
|
45
|
+
enabled: boolean;
|
|
46
|
+
points: number;
|
|
47
|
+
duration: number;
|
|
48
|
+
burst: number;
|
|
49
|
+
observeOnly: boolean;
|
|
50
|
+
}
|
|
51
|
+
interface RateLimitConfig {
|
|
52
|
+
tiers: Record<Tier, TierLimits>;
|
|
53
|
+
keyPrefix: string;
|
|
54
|
+
observeOnly: boolean;
|
|
55
|
+
failClosed: boolean;
|
|
56
|
+
perWorkspace: PerWorkspaceRateLimit;
|
|
57
|
+
}
|
|
58
|
+
interface OperationTimeoutConfig {
|
|
59
|
+
timeoutMs: number;
|
|
60
|
+
mutationTimeoutMs?: number;
|
|
61
|
+
}
|
|
62
|
+
interface OtelConfig {
|
|
63
|
+
enabled: boolean;
|
|
64
|
+
serviceName: string;
|
|
65
|
+
endpoint: string;
|
|
66
|
+
environment: string;
|
|
67
|
+
version?: string;
|
|
68
|
+
}
|
|
69
|
+
interface GatewaySecurityOptions {
|
|
70
|
+
gatewayName: string;
|
|
71
|
+
enabled: boolean;
|
|
72
|
+
armor: ArmorConfig;
|
|
73
|
+
queryComplexity: QueryComplexityConfig;
|
|
74
|
+
rateLimit: RateLimitConfig;
|
|
75
|
+
operationTimeout: OperationTimeoutConfig;
|
|
76
|
+
otel: OtelConfig;
|
|
77
|
+
}
|
|
78
|
+
interface SecurityValkeyClient {
|
|
79
|
+
get(key: string): Promise<string | null>;
|
|
80
|
+
set(key: string, value: string, options?: {
|
|
81
|
+
EX?: number;
|
|
82
|
+
}): Promise<string | null>;
|
|
83
|
+
incrBy(key: string, amount: number): Promise<number>;
|
|
84
|
+
expire(key: string, seconds: number): Promise<boolean>;
|
|
85
|
+
ttl(key: string): Promise<number>;
|
|
86
|
+
ping(): Promise<string>;
|
|
87
|
+
}
|
|
88
|
+
type HeaderGetter = (name: string) => string | null | undefined;
|
|
89
|
+
declare const resolveActor: (getHeader: HeaderGetter) => ActorContext;
|
|
90
|
+
declare const DEFAULT_COST_MAP: CostMap;
|
|
91
|
+
declare const mergeCostMap: (base: CostMap, override: CostMap) => CostMap;
|
|
92
|
+
declare const DEFAULT_ARMOR_CONFIG: ArmorConfig;
|
|
93
|
+
declare const resolveSecurityOptionsFromEnv: (gatewayName: string, costMapOverride?: CostMap) => GatewaySecurityOptions;
|
|
94
|
+
declare const DEFAULT_TIERS: Record<Tier, TierLimits>;
|
|
95
|
+
declare const resolveTiersFromEnv: (base?: Record<Tier, TierLimits>) => Record<Tier, TierLimits>;
|
|
96
|
+
declare class MemoryValkey implements SecurityValkeyClient {
|
|
97
|
+
private store;
|
|
98
|
+
private prune;
|
|
99
|
+
get(key: string): Promise<string | null>;
|
|
100
|
+
set(key: string, value: string, options?: {
|
|
101
|
+
EX?: number;
|
|
102
|
+
}): Promise<string | null>;
|
|
103
|
+
incrBy(key: string, amount: number): Promise<number>;
|
|
104
|
+
expire(key: string, seconds: number): Promise<boolean>;
|
|
105
|
+
ttl(key: string): Promise<number>;
|
|
106
|
+
ping(): Promise<string>;
|
|
107
|
+
}
|
|
108
|
+
declare const initializeSecurityValkey: (gatewayName: string) => Promise<SecurityValkeyClient>;
|
|
109
|
+
declare const getSecurityValkey: () => SecurityValkeyClient;
|
|
110
|
+
declare const __setSecurityValkeyForTest: (client: SecurityValkeyClient | null) => void;
|
|
111
|
+
type CounterLike = {
|
|
112
|
+
inc(labels?: Record<string, string>, value?: number): void;
|
|
113
|
+
};
|
|
114
|
+
interface Metrics {
|
|
115
|
+
rateLimit: CounterLike;
|
|
116
|
+
complexityRejected: CounterLike;
|
|
117
|
+
armorRejected: CounterLike;
|
|
118
|
+
valkeyFailover: CounterLike;
|
|
119
|
+
operationTimeout: CounterLike;
|
|
120
|
+
}
|
|
121
|
+
declare const initializeMetrics: () => Promise<Metrics>;
|
|
122
|
+
declare const getMetrics: () => Metrics;
|
|
123
|
+
declare const scrapeMetrics: () => Promise<{
|
|
124
|
+
body: string;
|
|
125
|
+
contentType: string;
|
|
126
|
+
} | null>;
|
|
127
|
+
declare const __resetMetricsForTest: () => void;
|
|
128
|
+
declare const createArmorPlugins: (cfg: ArmorConfig) => Promise<Plugin[]>;
|
|
129
|
+
interface OperationTimeoutPluginDeps {
|
|
130
|
+
config: OperationTimeoutConfig;
|
|
131
|
+
}
|
|
132
|
+
declare const createOperationTimeoutPlugin: (deps: OperationTimeoutPluginDeps) => Plugin;
|
|
133
|
+
declare const initializeOtel: (cfg: OtelConfig) => Promise<void>;
|
|
134
|
+
declare const shutdownOtel: () => Promise<void>;
|
|
135
|
+
declare const createOtelPlugin: (cfg: OtelConfig) => Promise<Plugin>;
|
|
136
|
+
interface QueryComplexityPluginDeps {
|
|
137
|
+
config: QueryComplexityConfig;
|
|
138
|
+
}
|
|
139
|
+
declare const createQueryComplexityPlugin: (deps: QueryComplexityPluginDeps) => Plugin;
|
|
140
|
+
interface RateLimitPluginDeps {
|
|
141
|
+
valkey: SecurityValkeyClient;
|
|
142
|
+
config: RateLimitConfig;
|
|
143
|
+
}
|
|
144
|
+
declare const checkRateLimit: (deps: RateLimitPluginDeps, actor: ActorContext) => Promise<RateLimitResult>;
|
|
145
|
+
declare const createRateLimitPlugin: (deps: RateLimitPluginDeps) => Plugin;
|
|
146
|
+
declare const buildSecurityPlugins: (options: GatewaySecurityOptions) => Promise<Plugin[]>;
|
|
147
|
+
declare namespace index_d_exports {
|
|
148
|
+
export { ActorContext, ArmorConfig, CostMap, DEFAULT_ARMOR_CONFIG, DEFAULT_COST_MAP, DEFAULT_TIERS, GatewaySecurityOptions, MemoryValkey, OperationTimeoutConfig, OtelConfig, QueryComplexityConfig, RateLimitConfig, RateLimitResult, SecurityValkeyClient, Tier, TierLimits, __resetMetricsForTest, __setSecurityValkeyForTest, buildSecurityPlugins, checkRateLimit, createArmorPlugins, createOperationTimeoutPlugin, createOtelPlugin, createQueryComplexityPlugin, createRateLimitPlugin, getMetrics, getSecurityValkey, initializeMetrics, initializeOtel, initializeSecurityValkey, mergeCostMap, resolveActor, resolveSecurityOptionsFromEnv, resolveTiersFromEnv, scrapeMetrics, shutdownOtel };
|
|
149
|
+
}
|
|
150
|
+
export { OperationTimeoutConfig as A, DEFAULT_COST_MAP as C, ArmorConfig as D, ActorContext as E, SecurityValkeyClient as F, Tier as I, TierLimits as L, QueryComplexityConfig as M, RateLimitConfig as N, CostMap as O, RateLimitResult as P, resolveSecurityOptionsFromEnv as S, resolveActor as T, getSecurityValkey as _, createQueryComplexityPlugin as a, resolveTiersFromEnv as b, shutdownOtel as c, __resetMetricsForTest as d, getMetrics as f, __setSecurityValkeyForTest as g, MemoryValkey as h, createRateLimitPlugin as i, OtelConfig as j, GatewaySecurityOptions as k, createOperationTimeoutPlugin as l, scrapeMetrics as m, buildSecurityPlugins as n, createOtelPlugin as o, initializeMetrics as p, checkRateLimit as r, initializeOtel as s, index_d_exports as t, createArmorPlugins as u, initializeSecurityValkey as v, mergeCostMap as w, DEFAULT_ARMOR_CONFIG as x, DEFAULT_TIERS as y };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { n as MetricsMiddlewareConfig } from "./types-C_yfu3XK.js";
|
|
2
|
+
import { AnyElysia } from "elysia";
|
|
3
|
+
interface Metrics {
|
|
4
|
+
avgResponseTime: number;
|
|
5
|
+
errorRate: number;
|
|
6
|
+
totalRequests: number;
|
|
7
|
+
requestsLastHour: number;
|
|
8
|
+
errorsLastHour: number;
|
|
9
|
+
}
|
|
10
|
+
declare class MetricsCollector {
|
|
11
|
+
private static instance;
|
|
12
|
+
private requests;
|
|
13
|
+
private readonly MAX_REQUESTS;
|
|
14
|
+
private totalRequests;
|
|
15
|
+
private totalErrors;
|
|
16
|
+
private totalResponseTime;
|
|
17
|
+
private cleanupInterval;
|
|
18
|
+
private readonly CLEANUP_INTERVAL_MS;
|
|
19
|
+
private readonly DATA_RETENTION_MS;
|
|
20
|
+
private constructor();
|
|
21
|
+
static getInstance(): MetricsCollector;
|
|
22
|
+
recordRequest(responseTimeMs: number, isError: boolean): void;
|
|
23
|
+
getMetrics(): Metrics;
|
|
24
|
+
getMetricsForWindow(windowMs: number): Metrics;
|
|
25
|
+
reset(): void;
|
|
26
|
+
private startCleanupTimer;
|
|
27
|
+
stopCleanupTimer(): void;
|
|
28
|
+
private cleanup;
|
|
29
|
+
getStatistics(): {
|
|
30
|
+
bufferSize: number;
|
|
31
|
+
oldestMetricAge: number;
|
|
32
|
+
newestMetricAge: number;
|
|
33
|
+
globalStats: {
|
|
34
|
+
totalRequests: number;
|
|
35
|
+
totalErrors: number;
|
|
36
|
+
avgResponseTime: number;
|
|
37
|
+
errorRate: number;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
declare const metricsCollector: MetricsCollector;
|
|
42
|
+
declare function createMetricsPlugin(config?: MetricsMiddlewareConfig): AnyElysia;
|
|
43
|
+
declare function getCurrentMetrics(): {
|
|
44
|
+
avgResponseTime: number;
|
|
45
|
+
errorRate: number;
|
|
46
|
+
totalRequests: number;
|
|
47
|
+
requestsLastHour: number;
|
|
48
|
+
errorsLastHour: number;
|
|
49
|
+
};
|
|
50
|
+
declare function getMetricsForWindow(windowMs: number): {
|
|
51
|
+
avgResponseTime: number;
|
|
52
|
+
errorRate: number;
|
|
53
|
+
totalRequests: number;
|
|
54
|
+
requestsLastHour: number;
|
|
55
|
+
errorsLastHour: number;
|
|
56
|
+
};
|
|
57
|
+
declare namespace index_d_exports {
|
|
58
|
+
export { Metrics, MetricsCollector, createMetricsPlugin, getCurrentMetrics, getMetricsForWindow, metricsCollector };
|
|
59
|
+
}
|
|
60
|
+
export { Metrics as a, getMetricsForWindow as i, createMetricsPlugin as n, MetricsCollector as o, getCurrentMetrics as r, metricsCollector as s, index_d_exports as t };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { a as DEFAULT_LAYER_RESOURCES, d as LayerFullConfig, f as LayerGatewayConfig, i as DEFAULT_GATEWAY_ROUTING, l as GatewayRoutingConfig, m as ServiceLayer, o as DEFAULT_LAYER_STREAMS, p as LayerResourceUrls, u as LayerConfig } from "./layer-BZBZZWeV.js";
|
|
2
|
+
declare namespace index_d_exports {
|
|
3
|
+
export { DEFAULT_GATEWAY_ROUTING, DEFAULT_LAYER_RESOURCES, DEFAULT_LAYER_STREAMS, GatewayRoutingConfig, LayerConfig, LayerFullConfig, LayerGatewayConfig, LayerManager, LayerResourceUrls, ServiceLayer, createLayerManagerFromEnv, detectLayerFromServiceName, getGatewayUrlForLayer, validateLayerConfig };
|
|
4
|
+
}
|
|
5
|
+
declare class LayerManager {
|
|
6
|
+
private config;
|
|
7
|
+
private gatewayConfig;
|
|
8
|
+
private resourceConfig;
|
|
9
|
+
private routingConfig;
|
|
10
|
+
constructor(config: LayerConfig);
|
|
11
|
+
private resolveGatewayConfig;
|
|
12
|
+
private resolveResourceConfig;
|
|
13
|
+
getLayer(): ServiceLayer;
|
|
14
|
+
getServiceName(): string;
|
|
15
|
+
getServiceIdentity(): string;
|
|
16
|
+
getInternalGatewayUrl(): string;
|
|
17
|
+
getCrossLayerGatewayUrl(): string;
|
|
18
|
+
getEventQueueUrl(): string;
|
|
19
|
+
getValkeyUrl(): string;
|
|
20
|
+
getTemporalAddress(): string;
|
|
21
|
+
getTemporalNamespace(): string;
|
|
22
|
+
getRbacGatewayUrl(): string;
|
|
23
|
+
getDefaultStreams(): Array<{
|
|
24
|
+
name: string;
|
|
25
|
+
subjects: string[];
|
|
26
|
+
description?: string;
|
|
27
|
+
}>;
|
|
28
|
+
getFullConfig(): LayerFullConfig;
|
|
29
|
+
isWspaceLayer(): boolean;
|
|
30
|
+
isGlobalLayer(): boolean;
|
|
31
|
+
getOppositeLayer(): ServiceLayer;
|
|
32
|
+
}
|
|
33
|
+
declare function createLayerManagerFromEnv(): LayerManager;
|
|
34
|
+
declare function detectLayerFromServiceName(serviceName: string): ServiceLayer | undefined;
|
|
35
|
+
declare function getGatewayUrlForLayer(sourceLayer: ServiceLayer, targetLayer: ServiceLayer, sourceManager?: LayerManager): string;
|
|
36
|
+
declare function validateLayerConfig(config: LayerConfig): void;
|
|
37
|
+
export { index_d_exports as a, getGatewayUrlForLayer as i, createLayerManagerFromEnv as n, validateLayerConfig as o, detectLayerFromServiceName as r, LayerManager as t };
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { C as VerifiedDelegationContext, E as YogaPlugin, S as ServerInstance, _ as RESTEndpoint, a as IActor, d as ITenant, i as GraphQLContext, m as JWTPayload, w as WorkspaceSecret, y as ServerDefinition } from "./types-CWybW61E.js";
|
|
2
|
+
import { E as I18n } from "./index-CPQDMSFS.js";
|
|
3
|
+
import { VerifyOptions } from "jsonwebtoken";
|
|
4
|
+
import { DocumentNode, GraphQLError } from "graphql";
|
|
5
|
+
import { Plugin } from "graphql-yoga";
|
|
6
|
+
import * as jose from "jose";
|
|
7
|
+
type FetchWorkspaceSecretFn = (workspaceId: string) => Promise<WorkspaceSecret | null>;
|
|
8
|
+
interface AuthConfig {
|
|
9
|
+
fetchWorkspaceSecret: FetchWorkspaceSecretFn;
|
|
10
|
+
}
|
|
11
|
+
declare function configureAuth(config: AuthConfig): void;
|
|
12
|
+
declare function fetchWorkspaceSecret(workspaceId: string): Promise<WorkspaceSecret | null>;
|
|
13
|
+
declare function configureDefaultAuth(): void;
|
|
14
|
+
declare function generateSymmetricSecret(): Promise<jose.JWK>;
|
|
15
|
+
declare function verifyJWT(token: string, secret?: string, options?: VerifyOptions): Promise<IActor | null>;
|
|
16
|
+
declare function decodeJWT(token: string): Promise<JWTPayload | null>;
|
|
17
|
+
declare function authCheck(actor: IActor | null): IActor;
|
|
18
|
+
declare function workspaceCheck(context: {
|
|
19
|
+
actor: IActor | null;
|
|
20
|
+
workspace: {
|
|
21
|
+
id: string;
|
|
22
|
+
} | null;
|
|
23
|
+
}): {
|
|
24
|
+
actorId: string;
|
|
25
|
+
workspaceId: string;
|
|
26
|
+
};
|
|
27
|
+
declare function requireWorkspace<T extends {
|
|
28
|
+
actor: IActor | null;
|
|
29
|
+
workspace: {
|
|
30
|
+
id: string;
|
|
31
|
+
} | null;
|
|
32
|
+
}>(context: T): T & {
|
|
33
|
+
actor: IActor;
|
|
34
|
+
workspace: {
|
|
35
|
+
id: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
declare function orgCheck(context: {
|
|
39
|
+
actor: IActor | null;
|
|
40
|
+
organization: {
|
|
41
|
+
id: string;
|
|
42
|
+
} | null;
|
|
43
|
+
}): {
|
|
44
|
+
actorId: string;
|
|
45
|
+
orgId: string;
|
|
46
|
+
};
|
|
47
|
+
declare function tenantCheck(context: {
|
|
48
|
+
tenant: {
|
|
49
|
+
id: string;
|
|
50
|
+
} | null;
|
|
51
|
+
}): string;
|
|
52
|
+
declare function createServer(definition: ServerDefinition): Promise<ServerInstance>;
|
|
53
|
+
declare function configureServerAuth(fetchWorkspaceSecret: FetchWorkspaceSecretFn): void;
|
|
54
|
+
type RawBodyResolution = {
|
|
55
|
+
kind: 'endpoint';
|
|
56
|
+
endpoint: RESTEndpoint;
|
|
57
|
+
} | {
|
|
58
|
+
kind: 'method-not-allowed';
|
|
59
|
+
allowed: string[];
|
|
60
|
+
};
|
|
61
|
+
interface OrdinaryRoute {
|
|
62
|
+
method: string;
|
|
63
|
+
path: string;
|
|
64
|
+
}
|
|
65
|
+
interface RawBodyRouter {
|
|
66
|
+
readonly size: number;
|
|
67
|
+
hasPath(pathname: string): boolean;
|
|
68
|
+
resolve(pathname: string, method: string): RawBodyResolution | null;
|
|
69
|
+
}
|
|
70
|
+
declare function createRawBodyRouter(endpoints: readonly RESTEndpoint[], ordinaryRoutes?: () => readonly OrdinaryRoute[]): RawBodyRouter;
|
|
71
|
+
declare const MAX_IDLE_TIMEOUT_SECONDS = 255;
|
|
72
|
+
declare function extendRequestIdleTimeout(request: Request, seconds: number): boolean;
|
|
73
|
+
interface ContextBuilderOptions {
|
|
74
|
+
getDb: () => unknown;
|
|
75
|
+
defaultTenant?: ITenant;
|
|
76
|
+
i18n?: I18n;
|
|
77
|
+
}
|
|
78
|
+
declare function configureContext(options: ContextBuilderOptions): void;
|
|
79
|
+
declare function buildContext(request: Request): Promise<GraphQLContext>;
|
|
80
|
+
declare function getContextOptions(): ContextBuilderOptions | null;
|
|
81
|
+
declare function resolveOnBehalfOf(actor: IActor | null, verifiedDelegation: VerifiedDelegationContext | undefined): string | undefined;
|
|
82
|
+
interface DelegatedPrincipal {
|
|
83
|
+
agentAppId: string;
|
|
84
|
+
onBehalfOfUserId: string;
|
|
85
|
+
delegationId: string;
|
|
86
|
+
scopes: readonly string[];
|
|
87
|
+
allowedWorkspaceIds: readonly string[];
|
|
88
|
+
grantedBy: string | null;
|
|
89
|
+
grantExpiresAt: Date | null;
|
|
90
|
+
tokenExpiresAt: Date;
|
|
91
|
+
}
|
|
92
|
+
declare function getDelegatedPrincipal(context: {
|
|
93
|
+
actor: IActor | null;
|
|
94
|
+
verifiedDelegation?: VerifiedDelegationContext;
|
|
95
|
+
}): DelegatedPrincipal | null;
|
|
96
|
+
declare const MUTATION_AUDIT_ACTIVITY_TYPE = "graphql.mutation";
|
|
97
|
+
declare const MUTATION_AUDIT_RESOURCE_TYPE = "graphql_mutation";
|
|
98
|
+
interface MutationAuditPluginOptions {
|
|
99
|
+
serviceName: string;
|
|
100
|
+
excludeFields?: Iterable<string>;
|
|
101
|
+
dedupeExplicitActivity?: boolean;
|
|
102
|
+
}
|
|
103
|
+
declare function sanitizeAuditValue(value: unknown, depth?: number): unknown;
|
|
104
|
+
declare function getMutationFieldNames(document: DocumentNode, operationName?: string | null): string[];
|
|
105
|
+
declare function createMutationAuditPlugin(options: MutationAuditPluginOptions | string): Plugin;
|
|
106
|
+
interface UserFacingErrorOptions {
|
|
107
|
+
code: string;
|
|
108
|
+
userMessage: string;
|
|
109
|
+
technicalMessage?: string;
|
|
110
|
+
details?: Record<string, unknown>;
|
|
111
|
+
httpStatus?: number;
|
|
112
|
+
cause?: Error;
|
|
113
|
+
}
|
|
114
|
+
interface ErrorNormalizationOptions {
|
|
115
|
+
serviceName?: string;
|
|
116
|
+
environment?: string;
|
|
117
|
+
}
|
|
118
|
+
interface NormalizedErrorState {
|
|
119
|
+
code: string;
|
|
120
|
+
userMessage: string;
|
|
121
|
+
technicalMessage: string;
|
|
122
|
+
extensions: Record<string, unknown>;
|
|
123
|
+
status: number;
|
|
124
|
+
}
|
|
125
|
+
interface HttpErrorPayload {
|
|
126
|
+
error: string;
|
|
127
|
+
message: string;
|
|
128
|
+
userMessage: string;
|
|
129
|
+
technicalMessage: string;
|
|
130
|
+
code: string;
|
|
131
|
+
extensions: Record<string, unknown>;
|
|
132
|
+
}
|
|
133
|
+
interface HttpErrorResult {
|
|
134
|
+
status: number;
|
|
135
|
+
body: HttpErrorPayload;
|
|
136
|
+
}
|
|
137
|
+
declare function normalizeError(error: unknown, options?: ErrorNormalizationOptions): NormalizedErrorState;
|
|
138
|
+
declare class UserFacingGraphQLError extends GraphQLError {
|
|
139
|
+
constructor(options: UserFacingErrorOptions);
|
|
140
|
+
}
|
|
141
|
+
declare function toUserFacingGraphQLError(error: unknown, options?: ErrorNormalizationOptions): GraphQLError;
|
|
142
|
+
declare function normalizeExecutionResultErrors(result: unknown, options?: ErrorNormalizationOptions): void;
|
|
143
|
+
declare function normalizeGraphQLResponsePayload(payload: unknown, options?: ErrorNormalizationOptions): unknown;
|
|
144
|
+
declare function normalizeGraphQLResponse(response: Response, options?: ErrorNormalizationOptions): Promise<Response>;
|
|
145
|
+
declare function createHumanReadableErrorPlugin(options?: ErrorNormalizationOptions): YogaPlugin;
|
|
146
|
+
declare function formatHttpError(error: unknown, options?: ErrorNormalizationOptions): HttpErrorResult;
|
|
147
|
+
declare function createHttpErrorResponse(error: unknown, options?: ErrorNormalizationOptions): Response;
|
|
148
|
+
export { RawBodyResolution as A, configureDefaultAuth as B, resolveOnBehalfOf as C, getContextOptions as D, configureContext as E, createServer as F, requireWorkspace as G, fetchWorkspaceSecret as H, AuthConfig as I, workspaceCheck as J, tenantCheck as K, FetchWorkspaceSecretFn as L, createRawBodyRouter as M, extendRequestIdleTimeout as N, MAX_IDLE_TIMEOUT_SECONDS as O, configureServerAuth as P, authCheck as R, getDelegatedPrincipal as S, buildContext as T, generateSymmetricSecret as U, decodeJWT as V, orgCheck as W, MutationAuditPluginOptions as _, UserFacingErrorOptions as a, sanitizeAuditValue as b, createHumanReadableErrorPlugin as c, normalizeExecutionResultErrors as d, normalizeGraphQLResponse as f, MUTATION_AUDIT_RESOURCE_TYPE as g, MUTATION_AUDIT_ACTIVITY_TYPE as h, NormalizedErrorState as i, RawBodyRouter as j, OrdinaryRoute as k, formatHttpError as l, toUserFacingGraphQLError as m, HttpErrorPayload as n, UserFacingGraphQLError as o, normalizeGraphQLResponsePayload as p, verifyJWT as q, HttpErrorResult as r, createHttpErrorResponse as s, ErrorNormalizationOptions as t, normalizeError as u, createMutationAuditPlugin as v, ContextBuilderOptions as w, DelegatedPrincipal as x, getMutationFieldNames as y, configureAuth as z };
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { DocumentNode, FieldDefinitionNode, InputValueDefinitionNode } from "graphql";
|
|
2
|
+
type NameErrorCode = 'required' | 'too_long' | 'no_letter' | 'invalid_chars';
|
|
3
|
+
type NameValidationResult = {
|
|
4
|
+
valid: true;
|
|
5
|
+
value: string;
|
|
6
|
+
} | {
|
|
7
|
+
valid: false;
|
|
8
|
+
code: NameErrorCode;
|
|
9
|
+
message: string;
|
|
10
|
+
};
|
|
11
|
+
declare const NAME_MIN_LENGTH = 1;
|
|
12
|
+
declare const NAME_MAX_LENGTH = 100;
|
|
13
|
+
declare function lengthInCodePoints(s: string): number;
|
|
14
|
+
declare function validateName(name: string | undefined | null): NameValidationResult;
|
|
15
|
+
type UsernameErrorCode = 'required' | 'too_short' | 'too_long' | 'invalid_chars' | 'no_letter';
|
|
16
|
+
type UsernameValidationResult = {
|
|
17
|
+
valid: true;
|
|
18
|
+
value: string;
|
|
19
|
+
} | {
|
|
20
|
+
valid: false;
|
|
21
|
+
errors: Array<{
|
|
22
|
+
code: UsernameErrorCode;
|
|
23
|
+
message: string;
|
|
24
|
+
}>;
|
|
25
|
+
};
|
|
26
|
+
declare const USERNAME_MIN_LENGTH = 3;
|
|
27
|
+
declare const USERNAME_MAX_LENGTH = 30;
|
|
28
|
+
declare function validateUsername(username: string | undefined | null): UsernameValidationResult;
|
|
29
|
+
type UserFieldKey = 'firstName' | 'lastName' | 'username';
|
|
30
|
+
interface UserFieldError {
|
|
31
|
+
field: UserFieldKey;
|
|
32
|
+
code: string;
|
|
33
|
+
message: string;
|
|
34
|
+
}
|
|
35
|
+
interface ValidatedUserFields {
|
|
36
|
+
firstName: string;
|
|
37
|
+
lastName: string;
|
|
38
|
+
username: string;
|
|
39
|
+
}
|
|
40
|
+
type UserFieldsValidationResult = {
|
|
41
|
+
valid: true;
|
|
42
|
+
values: ValidatedUserFields;
|
|
43
|
+
} | {
|
|
44
|
+
valid: false;
|
|
45
|
+
errors: UserFieldError[];
|
|
46
|
+
};
|
|
47
|
+
declare function validateUserFields(input: {
|
|
48
|
+
firstName?: string | null;
|
|
49
|
+
lastName?: string | null;
|
|
50
|
+
username?: string | null;
|
|
51
|
+
}, options?: {
|
|
52
|
+
requireAll?: boolean;
|
|
53
|
+
}): UserFieldsValidationResult;
|
|
54
|
+
declare const RBAC_GATED_SCOPE_TYPES: readonly ["wspace", "global", "entity", "billing", "organization"];
|
|
55
|
+
declare const RBAC_SCOPE_TYPES: readonly ["wspace", "global", "entity", "billing", "organization", "self"];
|
|
56
|
+
type RbacScopeType = (typeof RBAC_SCOPE_TYPES)[number];
|
|
57
|
+
declare const DEFAULT_RBAC_ROOT_TYPES: readonly ["Query", "Mutation", "Subscription"];
|
|
58
|
+
declare const DEFAULT_MAX_RBAC_ARG_PATH_SEGMENTS = 2;
|
|
59
|
+
interface RbacDirectiveArgs {
|
|
60
|
+
action?: string;
|
|
61
|
+
resource?: string;
|
|
62
|
+
resourceIdArg?: string;
|
|
63
|
+
scopeType?: string;
|
|
64
|
+
scopeArg?: string;
|
|
65
|
+
public?: boolean;
|
|
66
|
+
actorTypes?: string[];
|
|
67
|
+
}
|
|
68
|
+
interface RbacRootField {
|
|
69
|
+
type: string;
|
|
70
|
+
name: string;
|
|
71
|
+
coordinate: string;
|
|
72
|
+
file?: string;
|
|
73
|
+
rbac: RbacDirectiveArgs | null;
|
|
74
|
+
}
|
|
75
|
+
type RbacFieldPin = readonly string[] | Readonly<Record<string, string>>;
|
|
76
|
+
interface RbacCoverageOptions {
|
|
77
|
+
rootTypes?: readonly string[];
|
|
78
|
+
exemptFields?: readonly string[];
|
|
79
|
+
selfScopedFields?: RbacFieldPin;
|
|
80
|
+
minRootFields?: number;
|
|
81
|
+
maxArgPathSegments?: number;
|
|
82
|
+
idScalars?: readonly string[];
|
|
83
|
+
}
|
|
84
|
+
interface RbacSchemaDocument {
|
|
85
|
+
document: DocumentNode;
|
|
86
|
+
file?: string;
|
|
87
|
+
}
|
|
88
|
+
interface RbacCoverageReport {
|
|
89
|
+
rootFields: RbacRootField[];
|
|
90
|
+
missing: string[];
|
|
91
|
+
malformed: string[];
|
|
92
|
+
unresolvedArgPaths: string[];
|
|
93
|
+
unreviewedSelfScoped: string[];
|
|
94
|
+
staleSelfScoped: string[];
|
|
95
|
+
problems: string[];
|
|
96
|
+
ok: boolean;
|
|
97
|
+
}
|
|
98
|
+
declare class RbacCoverageError extends Error {
|
|
99
|
+
readonly report: RbacCoverageReport;
|
|
100
|
+
constructor(report: RbacCoverageReport);
|
|
101
|
+
}
|
|
102
|
+
type RbacCoverageSource = string | readonly string[] | DocumentNode | readonly DocumentNode[] | readonly RbacSchemaDocument[];
|
|
103
|
+
declare function loadRbacSchemaDocuments(paths: string | readonly string[]): RbacSchemaDocument[];
|
|
104
|
+
declare function readRbacDirectiveArgs(field: FieldDefinitionNode): RbacDirectiveArgs | null;
|
|
105
|
+
declare function rbacArgPathProblem(field: FieldDefinitionNode, path: string, inputs: Map<string, readonly InputValueDefinitionNode[]>, options?: {
|
|
106
|
+
maxSegments?: number;
|
|
107
|
+
idScalars?: readonly string[];
|
|
108
|
+
}): string | null;
|
|
109
|
+
declare function analyzeRbacCoverage(source: RbacCoverageSource, options?: RbacCoverageOptions): RbacCoverageReport;
|
|
110
|
+
declare function assertRbacCoverage(source: RbacCoverageSource, options?: RbacCoverageOptions): RbacCoverageReport;
|
|
111
|
+
declare const SUPPORTED_BILLING_CURRENCIES: readonly ["USD", "EUR", "GBP", "INR", "AUD", "CAD", "SGD", "JPY", "CNY", "BRL", "MXN", "KRW", "HKD", "NOK", "SEK", "DKK", "CHF", "NZD", "ZAR", "AED", "SAR", "QAR", "OMR", "BHD", "KWD", "JOD", "EGP", "PKR", "BDT", "LKR", "THB", "MYR", "IDR", "PHP", "VND", "TWD", "CZK", "HUF", "PLN", "RON", "RUB", "TRY", "ILS", "NGN", "GHS", "KES", "TZS", "UGX", "ETB", "MAD", "DZD", "TND", "BWP", "MUR", "MVR", "BND", "KHR", "MMK", "KZT", "UZS", "AZN", "GEL", "AMD", "UAH", "BGN", "HRK", "MKD", "ALL", "RSD", "CLP", "COP", "PEN", "ARS", "BOB", "PYG", "UYU", "GTQ", "HNL", "NIO", "CRC", "DOP", "TTD", "JMD", "BBD", "HTG", "BZD", "GYD", "SRD", "XCD", "PAB"];
|
|
112
|
+
type SupportedBillingCurrency = (typeof SUPPORTED_BILLING_CURRENCIES)[number];
|
|
113
|
+
declare const MAX_BILLING_AMOUNT = 1000000000;
|
|
114
|
+
declare function isSupportedBillingCurrency(currency: unknown): boolean;
|
|
115
|
+
type BillingAmountErrorCode = 'not_finite' | 'not_positive' | 'negative' | 'exceeds_maximum';
|
|
116
|
+
type BillingAmountValidationResult = {
|
|
117
|
+
valid: true;
|
|
118
|
+
value: number;
|
|
119
|
+
} | {
|
|
120
|
+
valid: false;
|
|
121
|
+
code: BillingAmountErrorCode;
|
|
122
|
+
};
|
|
123
|
+
declare function validateBillingAmount(amount: unknown, options?: {
|
|
124
|
+
allowZero?: boolean;
|
|
125
|
+
}): BillingAmountValidationResult;
|
|
126
|
+
declare function convertBillingToMinorUnits(amount: number, currency: string): number;
|
|
127
|
+
type BillingMoneyErrorCode = BillingAmountErrorCode | 'unsupported_currency' | 'minor_unit_precision';
|
|
128
|
+
type BillingMoneyValidationResult = {
|
|
129
|
+
valid: true;
|
|
130
|
+
value: {
|
|
131
|
+
amount: number;
|
|
132
|
+
currency: SupportedBillingCurrency;
|
|
133
|
+
minorUnits: number;
|
|
134
|
+
};
|
|
135
|
+
} | {
|
|
136
|
+
valid: false;
|
|
137
|
+
code: BillingMoneyErrorCode;
|
|
138
|
+
};
|
|
139
|
+
declare function validateBillingMoney(amount: unknown, currency: unknown, options?: {
|
|
140
|
+
allowZero?: boolean;
|
|
141
|
+
}): BillingMoneyValidationResult;
|
|
142
|
+
declare namespace index_d_exports {
|
|
143
|
+
export { BillingAmountErrorCode, BillingAmountValidationResult, BillingMoneyErrorCode, BillingMoneyValidationResult, DEFAULT_MAX_RBAC_ARG_PATH_SEGMENTS, DEFAULT_RBAC_ROOT_TYPES, MAX_BILLING_AMOUNT, NAME_MAX_LENGTH, NAME_MIN_LENGTH, NameErrorCode, NameValidationResult, RBAC_GATED_SCOPE_TYPES, RBAC_SCOPE_TYPES, RbacCoverageError, RbacCoverageOptions, RbacCoverageReport, RbacCoverageSource, RbacDirectiveArgs, RbacFieldPin, RbacRootField, RbacSchemaDocument, RbacScopeType, SUPPORTED_BILLING_CURRENCIES, SupportedBillingCurrency, USERNAME_MAX_LENGTH, USERNAME_MIN_LENGTH, UserFieldError, UserFieldKey, UserFieldsValidationResult, UsernameErrorCode, UsernameValidationResult, ValidatedUserFields, analyzeRbacCoverage, assertRbacCoverage, convertBillingToMinorUnits, isSupportedBillingCurrency, lengthInCodePoints, loadRbacSchemaDocuments, rbacArgPathProblem, readRbacDirectiveArgs, validateBillingAmount, validateBillingMoney, validateName, validateUserFields, validateUsername };
|
|
144
|
+
}
|
|
145
|
+
export { readRbacDirectiveArgs as A, validateUsername as B, RbacRootField as C, assertRbacCoverage as D, analyzeRbacCoverage as E, validateUserFields as F, lengthInCodePoints as G, NAME_MIN_LENGTH as H, USERNAME_MAX_LENGTH as I, validateName as K, USERNAME_MIN_LENGTH as L, UserFieldKey as M, UserFieldsValidationResult as N, loadRbacSchemaDocuments as O, ValidatedUserFields as P, UsernameErrorCode as R, RbacFieldPin as S, RbacScopeType as T, NameErrorCode as U, NAME_MAX_LENGTH as V, NameValidationResult as W, RbacCoverageError as _, BillingMoneyValidationResult as a, RbacCoverageSource as b, SupportedBillingCurrency as c, validateBillingAmount as d, validateBillingMoney as f, RBAC_SCOPE_TYPES as g, RBAC_GATED_SCOPE_TYPES as h, BillingMoneyErrorCode as i, UserFieldError as j, rbacArgPathProblem as k, convertBillingToMinorUnits as l, DEFAULT_RBAC_ROOT_TYPES as m, BillingAmountErrorCode as n, MAX_BILLING_AMOUNT as o, DEFAULT_MAX_RBAC_ARG_PATH_SEGMENTS as p, BillingAmountValidationResult as r, SUPPORTED_BILLING_CURRENCIES as s, index_d_exports as t, isSupportedBillingCurrency as u, RbacCoverageOptions as v, RbacSchemaDocument as w, RbacDirectiveArgs as x, RbacCoverageReport as y, UsernameValidationResult as z };
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { a as LanguageCode, c as ParsedLocale, d as RTL_LANGUAGES, f as TextDirection, g as getTextDirection, h as TranslationVariables, i as II18n, l as PluralForms, m as TranslationDictionary, n as I18nConfig, o as LanguageInfo, p as TranslateFunction, r as I18nContext, s as LocaleCode, t as FlatTranslationMap, u as PluralTranslateFunction } from "./types-DgaQqvxo.js";
|
|
2
|
+
declare class I18n implements II18n {
|
|
3
|
+
private config;
|
|
4
|
+
private currentLocale;
|
|
5
|
+
private supportedLocales;
|
|
6
|
+
private initialized;
|
|
7
|
+
constructor(config: I18nConfig);
|
|
8
|
+
initialize(): Promise<void>;
|
|
9
|
+
getLocale(): LocaleCode;
|
|
10
|
+
setLocale(locale: LocaleCode): void;
|
|
11
|
+
getSupportedLocales(): LocaleCode[];
|
|
12
|
+
isSupported(locale: LocaleCode): boolean;
|
|
13
|
+
loadLocale(locale: LocaleCode): Promise<void>;
|
|
14
|
+
getTranslations(locale: LocaleCode): FlatTranslationMap | undefined;
|
|
15
|
+
t: TranslateFunction;
|
|
16
|
+
tp: PluralTranslateFunction;
|
|
17
|
+
private translate;
|
|
18
|
+
private translatePlural;
|
|
19
|
+
createContext(locale: LocaleCode): I18nContext;
|
|
20
|
+
createContextFromRequest(request: Request): I18nContext;
|
|
21
|
+
getLanguageInfo(locale: LocaleCode): {
|
|
22
|
+
code: LanguageCode;
|
|
23
|
+
direction: 'ltr' | 'rtl';
|
|
24
|
+
locale: LocaleCode;
|
|
25
|
+
region?: string;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
declare function initializeI18n(config: I18nConfig): Promise<I18n>;
|
|
29
|
+
declare function getI18n(): I18n | null;
|
|
30
|
+
declare function createI18n(config: I18nConfig): I18n;
|
|
31
|
+
interface I18nCapableContext {
|
|
32
|
+
i18n?: I18nContext;
|
|
33
|
+
}
|
|
34
|
+
declare function t(ctx: I18nCapableContext, key: string, defaultMessage: string, variables?: TranslationVariables): string;
|
|
35
|
+
type Translator = (key: string, defaultMessage: string, variables?: TranslationVariables) => string;
|
|
36
|
+
declare function createTranslator(ctx: I18nCapableContext): Translator;
|
|
37
|
+
declare function hasI18n(ctx: I18nCapableContext): ctx is I18nCapableContext & {
|
|
38
|
+
i18n: I18nContext;
|
|
39
|
+
};
|
|
40
|
+
declare function getLocale(ctx: I18nCapableContext, defaultLocale?: string): string;
|
|
41
|
+
declare function getLanguage(ctx: I18nCapableContext, defaultLanguage?: string): string;
|
|
42
|
+
declare function parseLocaleString(localeStr: string): ParsedLocale | null;
|
|
43
|
+
declare function parseAcceptLanguage(header: string | null | undefined): ParsedLocale[];
|
|
44
|
+
declare function extractLocaleFromRequest(request: Request, defaultLocale?: LocaleCode): ParsedLocale;
|
|
45
|
+
declare function normalizeLocale(locale: string): LocaleCode;
|
|
46
|
+
declare function getLanguageFromLocale(locale: LocaleCode): LanguageCode;
|
|
47
|
+
declare function getRegionFromLocale(locale: LocaleCode): string | undefined;
|
|
48
|
+
declare function findBestMatch(requested: ParsedLocale[], available: LocaleCode[], defaultLocale: LocaleCode): LocaleCode;
|
|
49
|
+
declare function flattenDictionary(obj: TranslationDictionary, prefix?: string): FlatTranslationMap;
|
|
50
|
+
declare function loadTranslationFile(filePath: string, baseDir: string): Promise<TranslationDictionary>;
|
|
51
|
+
declare function loadTranslationsForLocale(config: I18nConfig, locale: LocaleCode): Promise<FlatTranslationMap>;
|
|
52
|
+
declare function discoverLocales(localesPath: string): Promise<LocaleCode[]>;
|
|
53
|
+
declare function preloadAllTranslations(config: I18nConfig): Promise<void>;
|
|
54
|
+
declare function clearTranslationCache(namespace?: string): void;
|
|
55
|
+
declare function getCachedTranslations(namespace: string | undefined, locale: LocaleCode): FlatTranslationMap | undefined;
|
|
56
|
+
declare function setCachedTranslations(namespace: string | undefined, locale: LocaleCode, translations: FlatTranslationMap): void;
|
|
57
|
+
declare namespace index_d_exports {
|
|
58
|
+
export { DEFAULT_I18N_CONFIG, FlatTranslationMap, I18n, I18nCapableContext, I18nConfig, I18nContext, II18n, LanguageCode, LanguageInfo, LocaleCode, Locales, ParsedLocale, PluralForms, PluralTranslateFunction, RTL_LANGUAGES, TextDirection, TranslateFunction, TranslationDictionary, TranslationVariables, Translator, clearTranslationCache, createI18n, createTranslator, discoverLocales, extractLocaleFromRequest, findBestMatch, flattenDictionary, getCachedTranslations, getI18n, getLanguage, getLanguageFromLocale, getLocale, getRegionFromLocale, getTextDirection, hasI18n, initializeI18n, loadTranslationFile, loadTranslationsForLocale, normalizeLocale, parseAcceptLanguage, parseLocaleString, preloadAllTranslations, setCachedTranslations, t };
|
|
59
|
+
}
|
|
60
|
+
declare const Locales: {
|
|
61
|
+
readonly EN_US: "en-US";
|
|
62
|
+
readonly EN_GB: "en-GB";
|
|
63
|
+
readonly EN_AU: "en-AU";
|
|
64
|
+
readonly EN_CA: "en-CA";
|
|
65
|
+
readonly EN_IN: "en-IN";
|
|
66
|
+
readonly ES_ES: "es-ES";
|
|
67
|
+
readonly ES_MX: "es-MX";
|
|
68
|
+
readonly FR_FR: "fr-FR";
|
|
69
|
+
readonly FR_CA: "fr-CA";
|
|
70
|
+
readonly DE_DE: "de-DE";
|
|
71
|
+
readonly DE_AT: "de-AT";
|
|
72
|
+
readonly DE_CH: "de-CH";
|
|
73
|
+
readonly IT_IT: "it-IT";
|
|
74
|
+
readonly PT_PT: "pt-PT";
|
|
75
|
+
readonly PT_BR: "pt-BR";
|
|
76
|
+
readonly RU_RU: "ru-RU";
|
|
77
|
+
readonly ZH_CN: "zh-CN";
|
|
78
|
+
readonly ZH_TW: "zh-TW";
|
|
79
|
+
readonly ZH_HK: "zh-HK";
|
|
80
|
+
readonly JA_JP: "ja-JP";
|
|
81
|
+
readonly KO_KR: "ko-KR";
|
|
82
|
+
readonly AR_SA: "ar-SA";
|
|
83
|
+
readonly AR_AE: "ar-AE";
|
|
84
|
+
readonly HI_IN: "hi-IN";
|
|
85
|
+
readonly TA_IN: "ta-IN";
|
|
86
|
+
readonly NL_NL: "nl-NL";
|
|
87
|
+
readonly PL_PL: "pl-PL";
|
|
88
|
+
readonly TR_TR: "tr-TR";
|
|
89
|
+
readonly VI_VN: "vi-VN";
|
|
90
|
+
readonly TH_TH: "th-TH";
|
|
91
|
+
readonly ID_ID: "id-ID";
|
|
92
|
+
readonly HE_IL: "he-IL";
|
|
93
|
+
readonly UK_UA: "uk-UA";
|
|
94
|
+
};
|
|
95
|
+
declare const DEFAULT_I18N_CONFIG: {
|
|
96
|
+
readonly defaultLocale: "en-US";
|
|
97
|
+
readonly fallbackLocale: "en-US";
|
|
98
|
+
readonly enableCache: true;
|
|
99
|
+
readonly lazyLoad: false;
|
|
100
|
+
readonly logMissing: true;
|
|
101
|
+
readonly returnKeyOnMissing: true;
|
|
102
|
+
};
|
|
103
|
+
export { getLocale as C, createI18n as D, I18n as E, getI18n as O, getLanguage as S, t as T, parseAcceptLanguage as _, discoverLocales as a, Translator as b, loadTranslationFile as c, setCachedTranslations as d, extractLocaleFromRequest as f, normalizeLocale as g, getRegionFromLocale as h, clearTranslationCache as i, initializeI18n as k, loadTranslationsForLocale as l, getLanguageFromLocale as m, Locales as n, flattenDictionary as o, findBestMatch as p, index_d_exports as r, getCachedTranslations as s, DEFAULT_I18N_CONFIG as t, preloadAllTranslations as u, parseLocaleString as v, hasI18n as w, createTranslator as x, I18nCapableContext as y };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { i as Logger, n as PrismaTransactionClient, r as createDatabaseService, t as DatabaseService } from "./index-DtI6aBtB.js";
|
|
2
|
+
interface RedisStreamsEventTarget {
|
|
3
|
+
addEventListener(type: string, listener: (event: Event) => void): void;
|
|
4
|
+
removeEventListener(type: string, listener: (event: Event) => void): void;
|
|
5
|
+
dispatchEvent(event: Event): boolean;
|
|
6
|
+
close(): Promise<void>;
|
|
7
|
+
isHealthy(): boolean;
|
|
8
|
+
}
|
|
9
|
+
interface RedisStreamsEventTargetOptions {
|
|
10
|
+
redisUrl?: string;
|
|
11
|
+
password?: string;
|
|
12
|
+
subjectPrefix?: string;
|
|
13
|
+
maxLen?: number;
|
|
14
|
+
serializer?: {
|
|
15
|
+
stringify: (data: unknown) => string | Promise<string>;
|
|
16
|
+
parse: (msg: string) => unknown | Promise<unknown>;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
declare function createRedisStreamsEventTarget(options?: RedisStreamsEventTargetOptions): Promise<RedisStreamsEventTarget>;
|
|
20
|
+
declare namespace index_d_exports {
|
|
21
|
+
export { DatabaseService, Logger, PrismaTransactionClient, RedisStreamsEventTarget, RedisStreamsEventTargetOptions, createDatabaseService, createRedisStreamsEventTarget };
|
|
22
|
+
}
|
|
23
|
+
export { createRedisStreamsEventTarget as i, RedisStreamsEventTarget as n, RedisStreamsEventTargetOptions as r, index_d_exports as t };
|