@burdenoff/be-sdk 2026.1110.2 → 2026.1110.4
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/activity/index.d.ts +165 -0
- package/dist/activity/index.js +389 -0
- package/dist/activity/index.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-xxfwGpHS.js +546 -0
- package/dist/ai-credits-xxfwGpHS.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-C5ctwSLp.js +228 -0
- package/dist/auth-C5ctwSLp.js.map +1 -0
- package/dist/bootstrap/index.d.ts +74 -0
- package/dist/bootstrap/index.js +282 -0
- package/dist/bootstrap/index.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-sAJTrb4i.js +565 -0
- package/dist/client-sAJTrb4i.js.map +1 -0
- package/dist/collector-endpoint-iyQYeI50.js +50 -0
- package/dist/collector-endpoint-iyQYeI50.js.map +1 -0
- package/dist/context/index.d.ts +35 -0
- package/dist/context/index.js +283 -0
- package/dist/context/index.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/explicit-activity-scope-DikJ7NAE.js +57 -0
- package/dist/explicit-activity-scope-DikJ7NAE.js.map +1 -0
- 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-DJXE3Osa.js +642 -0
- package/dist/export-DJXE3Osa.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-CP1KRgwD.js +422 -0
- package/dist/feature-flags-CP1KRgwD.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-h5U-D2AF.js +830 -0
- package/dist/files-h5U-D2AF.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-ByVo-n37.js +50 -0
- package/dist/gateway-ByVo-n37.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-CR7u4lpl.js +2152 -0
- package/dist/graph-CR7u4lpl.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-CUDyhibV.d.ts +21 -0
- package/dist/graphql-DHAHHcww.js +161 -0
- package/dist/graphql-DHAHHcww.js.map +1 -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-ADmsX0BI.d.ts +646 -0
- package/dist/index-B2LCaK0R.d.ts +500 -0
- package/dist/index-BBqooJ52.d.ts +45 -0
- package/dist/index-BGzMYJsm.d.ts +209 -0
- package/dist/index-BMIMnp6T.d.ts +8 -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-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-CHwMhK6v.d.ts +63 -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-CTTwo9av.d.ts +102 -0
- package/dist/index-CVCyKzhB.d.ts +207 -0
- package/dist/index-C_GXXF32.d.ts +704 -0
- package/dist/index-CaM9JUcc.d.ts +144 -0
- package/dist/index-CliOgq6L.d.ts +203 -0
- package/dist/index-Cot73bdh.d.ts +63 -0
- package/dist/index-DGgh9DWn.d.ts +59 -0
- package/dist/index-DY3dNhMN.d.ts +420 -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-FRRaa6h2.d.ts +999 -0
- package/dist/index-FbXPfen7.d.ts +132 -0
- package/dist/index-MArCb8Aq.d.ts +306 -0
- package/dist/index-U_tu3zUl.d.ts +303 -0
- package/dist/index-YOShAwkq.d.ts +45 -0
- package/dist/index-cmR9k9ga.d.ts +26 -0
- package/dist/index-yBSjMY32.d.ts +24 -0
- package/dist/index-zd_NPGJo.d.ts +206 -0
- package/dist/index.d.ts +106 -609
- package/dist/index.js +769 -2590
- 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-CQPFmOOe.js +325 -0
- package/dist/init-CQPFmOOe.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-DY_i37WN.js +869 -0
- package/dist/notifications-DY_i37WN.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/payments/index.d.ts +144 -0
- package/dist/payments/index.js +404 -0
- package/dist/payments/index.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/rate-limit-CBrK_U5H.js +142 -0
- package/dist/rate-limit-CBrK_U5H.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-Dvz0YzEt.js +1486 -0
- package/dist/rbac-Dvz0YzEt.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/search/index.d.ts +112 -0
- package/dist/search/index.js +266 -0
- package/dist/search/index.js.map +1 -0
- package/dist/security/index.d.ts +2 -0
- package/dist/security/index.js +4 -0
- package/dist/security/index.js.map +1 -0
- package/dist/security/rate-limit/index.d.ts +2 -0
- package/dist/security/rate-limit/index.js +4 -0
- package/dist/security/rate-limit/index.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 +2001 -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-BUnfMiAS.js +577 -0
- package/dist/stub-BUnfMiAS.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-CbijgoqR.js +868 -0
- package/dist/{chunk-PBZFAAOM.js.map → tags-CbijgoqR.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 +7 -20
- package/dist/tracker/index.js.map +1 -1
- package/dist/tracker-PQztSlhJ.js +458 -0
- package/dist/tracker-PQztSlhJ.js.map +1 -0
- package/dist/translation/index.d.ts +120 -0
- package/dist/translation/index.js +573 -0
- package/dist/translation/index.js.map +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.js +90 -0
- package/dist/types/index.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-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-BRqVP3CJ.js +682 -0
- package/dist/usage-BRqVP3CJ.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,420 @@
|
|
|
1
|
+
interface RetryConfig {
|
|
2
|
+
attempts?: number;
|
|
3
|
+
initialDelayMs?: number;
|
|
4
|
+
maxDelayMs?: number;
|
|
5
|
+
retryOn?: (status: number) => boolean;
|
|
6
|
+
}
|
|
7
|
+
interface BreakerConfig {
|
|
8
|
+
threshold?: number;
|
|
9
|
+
cooldownMs?: number;
|
|
10
|
+
}
|
|
11
|
+
interface HttpClientConfig {
|
|
12
|
+
baseUrl?: string;
|
|
13
|
+
defaultTimeoutMs?: number;
|
|
14
|
+
retry?: RetryConfig;
|
|
15
|
+
breaker?: BreakerConfig;
|
|
16
|
+
defaultHeaders?: Record<string, string>;
|
|
17
|
+
}
|
|
18
|
+
declare class CircuitBreakerOpenError extends Error {
|
|
19
|
+
constructor(host: string);
|
|
20
|
+
}
|
|
21
|
+
interface HttpClientInit extends RequestInit {
|
|
22
|
+
timeoutMs?: number;
|
|
23
|
+
retry?: RetryConfig;
|
|
24
|
+
}
|
|
25
|
+
declare function __resetHttpClientBreakers(): void;
|
|
26
|
+
declare function httpClient(url: string, init?: HttpClientInit, config?: HttpClientConfig): Promise<Response>;
|
|
27
|
+
declare function createHttpClient(config?: HttpClientConfig): (url: string, init?: HttpClientInit) => Promise<Response>;
|
|
28
|
+
interface LeaderLockRedis {
|
|
29
|
+
set(key: string, value: string, ex: 'EX', seconds: number, nx: 'NX'): Promise<'OK' | null>;
|
|
30
|
+
eval(script: string, numKeys: number, ...args: string[]): Promise<unknown>;
|
|
31
|
+
}
|
|
32
|
+
interface LeaderLockOptions {
|
|
33
|
+
ttlMs: number;
|
|
34
|
+
renewMs?: number;
|
|
35
|
+
}
|
|
36
|
+
interface LeaderLockResult<T> {
|
|
37
|
+
acquired: boolean;
|
|
38
|
+
result?: T;
|
|
39
|
+
}
|
|
40
|
+
declare function normalizeRedisUrl(url: string): string;
|
|
41
|
+
declare function withLeaderLock<T>(redis: LeaderLockRedis, name: string, fn: () => Promise<T>, options: LeaderLockOptions): Promise<LeaderLockResult<T>>;
|
|
42
|
+
interface CreateLeaderLeaseOptions {
|
|
43
|
+
name: string;
|
|
44
|
+
ttlMs: number;
|
|
45
|
+
redis: LeaderLockRedis;
|
|
46
|
+
renewMs?: number;
|
|
47
|
+
}
|
|
48
|
+
interface LeaderLease {
|
|
49
|
+
renew(): Promise<boolean>;
|
|
50
|
+
release(): Promise<void>;
|
|
51
|
+
isHeld(): boolean;
|
|
52
|
+
}
|
|
53
|
+
declare function createLeaderLease(options: CreateLeaderLeaseOptions): LeaderLease;
|
|
54
|
+
interface RateLimitRedis {
|
|
55
|
+
incr(key: string): Promise<number>;
|
|
56
|
+
pexpire(key: string, ms: number): Promise<number | 'OK'>;
|
|
57
|
+
pttl(key: string): Promise<number>;
|
|
58
|
+
}
|
|
59
|
+
interface RateLimitInput {
|
|
60
|
+
key: string;
|
|
61
|
+
limit: number;
|
|
62
|
+
windowMs: number;
|
|
63
|
+
}
|
|
64
|
+
interface RateLimitResult {
|
|
65
|
+
allowed: boolean;
|
|
66
|
+
count: number;
|
|
67
|
+
remaining: number;
|
|
68
|
+
resetAt: number;
|
|
69
|
+
}
|
|
70
|
+
declare function rateLimitIncr(redis: RateLimitRedis, input: RateLimitInput): Promise<RateLimitResult>;
|
|
71
|
+
interface ClampLimitOptions {
|
|
72
|
+
defaultLimit?: number;
|
|
73
|
+
maxLimit?: number;
|
|
74
|
+
minLimit?: number;
|
|
75
|
+
}
|
|
76
|
+
declare const DEFAULT_GRAPHQL_PAGE_LIMIT = 50;
|
|
77
|
+
declare const MAX_GRAPHQL_PAGE_LIMIT = 100;
|
|
78
|
+
declare function clampLimit(input: number | undefined | null, opts?: ClampLimitOptions): number;
|
|
79
|
+
declare function clampOffset(input: number | undefined | null): number;
|
|
80
|
+
declare function clampGraphqlLimit(input: number | undefined | null, opts?: ClampLimitOptions): number;
|
|
81
|
+
interface OffsetPaginationInput {
|
|
82
|
+
limit?: number | null;
|
|
83
|
+
offset?: number | null;
|
|
84
|
+
}
|
|
85
|
+
interface NormalizedOffsetPagination {
|
|
86
|
+
limit: number;
|
|
87
|
+
offset: number;
|
|
88
|
+
}
|
|
89
|
+
declare function normalizeOffsetPagination(input: OffsetPaginationInput | null | undefined, opts?: ClampLimitOptions): NormalizedOffsetPagination;
|
|
90
|
+
interface CursorPaginationInput {
|
|
91
|
+
first?: number | null;
|
|
92
|
+
after?: string | null;
|
|
93
|
+
}
|
|
94
|
+
interface NormalizedCursorPagination {
|
|
95
|
+
first: number;
|
|
96
|
+
after: string | null;
|
|
97
|
+
take: number;
|
|
98
|
+
}
|
|
99
|
+
declare function normalizeCursorPagination(input: CursorPaginationInput | null | undefined, opts?: ClampLimitOptions): NormalizedCursorPagination;
|
|
100
|
+
type CursorPayloadValue = string | number | boolean | null;
|
|
101
|
+
type CursorPayload = Record<string, CursorPayloadValue>;
|
|
102
|
+
declare function encodeCursor(payload: CursorPayload): string;
|
|
103
|
+
declare function decodeCursor(cursor: string | null | undefined): CursorPayload | null;
|
|
104
|
+
interface PageInfo {
|
|
105
|
+
hasNextPage: boolean;
|
|
106
|
+
hasPreviousPage: boolean;
|
|
107
|
+
startCursor: string | null;
|
|
108
|
+
endCursor: string | null;
|
|
109
|
+
}
|
|
110
|
+
interface ConnectionEdge<TItem> {
|
|
111
|
+
node: TItem;
|
|
112
|
+
cursor: string;
|
|
113
|
+
}
|
|
114
|
+
interface ConnectionResult<TItem> {
|
|
115
|
+
edges: ConnectionEdge<TItem>[];
|
|
116
|
+
nodes: TItem[];
|
|
117
|
+
pageInfo: PageInfo;
|
|
118
|
+
totalCount?: number | null;
|
|
119
|
+
}
|
|
120
|
+
interface BuildConnectionOptions<TItem> {
|
|
121
|
+
limit: number;
|
|
122
|
+
cursorForNode: (item: TItem) => string;
|
|
123
|
+
hasPreviousPage?: boolean;
|
|
124
|
+
totalCount?: number | null;
|
|
125
|
+
}
|
|
126
|
+
declare function buildConnection<TItem>(items: TItem[], opts: BuildConnectionOptions<TItem>): ConnectionResult<TItem>;
|
|
127
|
+
interface OffsetPageResult<TItem> {
|
|
128
|
+
items: TItem[];
|
|
129
|
+
total: number;
|
|
130
|
+
limit: number;
|
|
131
|
+
offset: number;
|
|
132
|
+
hasMore: boolean;
|
|
133
|
+
nextOffset: number | null;
|
|
134
|
+
}
|
|
135
|
+
declare function buildOffsetPage<TItem>(items: TItem[], total: number, pagination: NormalizedOffsetPagination): OffsetPageResult<TItem>;
|
|
136
|
+
declare function toPrismaPage(pagination: NormalizedOffsetPagination): {
|
|
137
|
+
take: number;
|
|
138
|
+
skip: number;
|
|
139
|
+
};
|
|
140
|
+
interface PaginateInput<TWhere, TOrderBy> {
|
|
141
|
+
take?: number | null;
|
|
142
|
+
cursor?: string | null;
|
|
143
|
+
where?: TWhere;
|
|
144
|
+
orderBy?: TOrderBy;
|
|
145
|
+
}
|
|
146
|
+
interface PaginateResult<TItem> {
|
|
147
|
+
items: TItem[];
|
|
148
|
+
hasMore: boolean;
|
|
149
|
+
nextCursor: string | null;
|
|
150
|
+
}
|
|
151
|
+
interface PrismaModelLike<TItem, TWhere, TOrderBy> {
|
|
152
|
+
findMany(args: {
|
|
153
|
+
take?: number;
|
|
154
|
+
skip?: number;
|
|
155
|
+
cursor?: {
|
|
156
|
+
id: string;
|
|
157
|
+
};
|
|
158
|
+
where?: TWhere;
|
|
159
|
+
orderBy?: TOrderBy;
|
|
160
|
+
}): Promise<TItem[]>;
|
|
161
|
+
}
|
|
162
|
+
declare function paginate<TItem extends {
|
|
163
|
+
id: string;
|
|
164
|
+
}, TWhere = unknown, TOrderBy = unknown>(model: PrismaModelLike<TItem, TWhere, TOrderBy>, input: PaginateInput<TWhere, TOrderBy>, opts?: ClampLimitOptions): Promise<PaginateResult<TItem>>;
|
|
165
|
+
interface DataLoaderLike<K, V> {
|
|
166
|
+
load(key: K): Promise<V>;
|
|
167
|
+
loadMany(keys: readonly K[]): Promise<(V | Error)[]>;
|
|
168
|
+
clear(key: K): this;
|
|
169
|
+
clearAll(): this;
|
|
170
|
+
prime(key: K, value: V): this;
|
|
171
|
+
}
|
|
172
|
+
type LoaderMap = Record<string, DataLoaderLike<unknown, unknown>>;
|
|
173
|
+
type LoaderBuilder<Ctx, M extends LoaderMap> = (ctx: Ctx) => M;
|
|
174
|
+
declare function buildLoaders<Ctx, M extends LoaderMap>(ctx: Ctx, builder: LoaderBuilder<Ctx, M>): M;
|
|
175
|
+
interface ReferenceObject {
|
|
176
|
+
id?: string;
|
|
177
|
+
[key: string]: unknown;
|
|
178
|
+
}
|
|
179
|
+
declare function resolveReferenceLoader<T, Ctx extends {
|
|
180
|
+
loaders: LoaderMap;
|
|
181
|
+
}>(loaderName: string, keyField?: string): (reference: ReferenceObject, ctx: Ctx) => Promise<T | null>;
|
|
182
|
+
interface CacheVersionRedis {
|
|
183
|
+
get(key: string): Promise<string | null>;
|
|
184
|
+
incr(key: string): Promise<number>;
|
|
185
|
+
}
|
|
186
|
+
declare function getNamespaceVersion(redis: CacheVersionRedis, namespace: string): Promise<number>;
|
|
187
|
+
declare function buildCacheKey(redis: CacheVersionRedis, namespace: string, ...parts: string[]): Promise<string>;
|
|
188
|
+
declare function invalidateNamespace(redis: CacheVersionRedis, namespace: string): Promise<number>;
|
|
189
|
+
interface PrismaRawClient {
|
|
190
|
+
$executeRawUnsafe(query: string, ...values: unknown[]): Promise<unknown>;
|
|
191
|
+
$queryRawUnsafe<T = unknown>(query: string, ...values: unknown[]): Promise<T>;
|
|
192
|
+
}
|
|
193
|
+
declare function monthlyPartitionName(table: string, year: number, month: number): string;
|
|
194
|
+
interface EnsureMonthlyOptions {
|
|
195
|
+
table: string;
|
|
196
|
+
from: Date;
|
|
197
|
+
to: Date;
|
|
198
|
+
}
|
|
199
|
+
declare function ensureMonthlyPartitions(prisma: PrismaRawClient, opts: EnsureMonthlyOptions): Promise<string[]>;
|
|
200
|
+
interface DropOldOptions {
|
|
201
|
+
table: string;
|
|
202
|
+
beforeDate: Date;
|
|
203
|
+
}
|
|
204
|
+
declare function dropOldPartitions(prisma: PrismaRawClient, opts: DropOldOptions): Promise<string[]>;
|
|
205
|
+
interface LLMRequest {
|
|
206
|
+
model?: string;
|
|
207
|
+
messages: Array<{
|
|
208
|
+
role: 'system' | 'user' | 'assistant';
|
|
209
|
+
content: string;
|
|
210
|
+
}>;
|
|
211
|
+
maxTokens?: number;
|
|
212
|
+
temperature?: number;
|
|
213
|
+
stream?: boolean;
|
|
214
|
+
timeoutMs?: number;
|
|
215
|
+
}
|
|
216
|
+
interface LLMResponse {
|
|
217
|
+
provider: string;
|
|
218
|
+
content: string;
|
|
219
|
+
inputTokens?: number;
|
|
220
|
+
outputTokens?: number;
|
|
221
|
+
raw?: unknown;
|
|
222
|
+
}
|
|
223
|
+
interface LLMProviderAdapter {
|
|
224
|
+
name: string;
|
|
225
|
+
complete(req: LLMRequest, signal: AbortSignal): Promise<LLMResponse>;
|
|
226
|
+
}
|
|
227
|
+
interface LLMRouterOptions {
|
|
228
|
+
timeoutMs?: number;
|
|
229
|
+
maxAttempts?: number;
|
|
230
|
+
initialDelayMs?: number;
|
|
231
|
+
maxOutputTokensCap?: number;
|
|
232
|
+
}
|
|
233
|
+
declare class LLMRouter {
|
|
234
|
+
private readonly adapters;
|
|
235
|
+
private readonly opts;
|
|
236
|
+
constructor(opts?: LLMRouterOptions);
|
|
237
|
+
register(adapter: LLMProviderAdapter): void;
|
|
238
|
+
private resolveChain;
|
|
239
|
+
complete(req: LLMRequest): Promise<LLMResponse>;
|
|
240
|
+
}
|
|
241
|
+
interface InvocationIdentity {
|
|
242
|
+
readonly workspaceId: string;
|
|
243
|
+
readonly actorId: string;
|
|
244
|
+
readonly actorType: 'user' | 'app' | 'service' | 'super_admin';
|
|
245
|
+
readonly onBehalfOf: string | null;
|
|
246
|
+
}
|
|
247
|
+
type InvocationTrigger = 'interactive' | 'scheduled' | 'event' | 'api' | 'webhook' | 'test';
|
|
248
|
+
interface InvocationAttemptDimensions {
|
|
249
|
+
readonly trigger?: InvocationTrigger;
|
|
250
|
+
readonly subjectType?: string;
|
|
251
|
+
readonly subjectId?: string;
|
|
252
|
+
readonly subjectPartId?: string;
|
|
253
|
+
readonly sequence?: number;
|
|
254
|
+
}
|
|
255
|
+
interface InvocationAttemptInput extends InvocationAttemptDimensions {
|
|
256
|
+
readonly attemptKey: string;
|
|
257
|
+
readonly operationKey: string;
|
|
258
|
+
readonly productKey: string;
|
|
259
|
+
readonly providerKey: string;
|
|
260
|
+
readonly modelKey: string;
|
|
261
|
+
readonly startedAt: string;
|
|
262
|
+
}
|
|
263
|
+
interface InvocationUsageInput {
|
|
264
|
+
readonly attemptKey: string;
|
|
265
|
+
readonly eventKey: string;
|
|
266
|
+
readonly revision: number;
|
|
267
|
+
readonly predecessorId: string | null;
|
|
268
|
+
readonly outcome: 'succeeded' | 'failed' | 'blocked' | 'timed_out';
|
|
269
|
+
readonly inputTokens: string | null;
|
|
270
|
+
readonly outputTokens: string | null;
|
|
271
|
+
readonly cachedInputTokens: string | null;
|
|
272
|
+
readonly costMicroUsd: null;
|
|
273
|
+
readonly finishedAt: string;
|
|
274
|
+
}
|
|
275
|
+
interface InvocationUsageReceipt extends Omit<InvocationUsageInput, 'attemptKey' | 'costMicroUsd'> {
|
|
276
|
+
readonly id: string;
|
|
277
|
+
readonly attemptId: string;
|
|
278
|
+
readonly fingerprint: string;
|
|
279
|
+
readonly totalTokens: string | null;
|
|
280
|
+
readonly costMicroUsd: string | null;
|
|
281
|
+
readonly pricingReference: string | null;
|
|
282
|
+
readonly origin: 'CALLER_REPORTED';
|
|
283
|
+
readonly currency: 'USD';
|
|
284
|
+
readonly costKind: 'ESTIMATE';
|
|
285
|
+
readonly createdAt: string;
|
|
286
|
+
}
|
|
287
|
+
interface InvocationAttemptReceipt extends InvocationAttemptInput {
|
|
288
|
+
readonly id: string;
|
|
289
|
+
readonly workspaceId: string;
|
|
290
|
+
readonly createdBy: string;
|
|
291
|
+
readonly origin: 'CALLER_REPORTED';
|
|
292
|
+
readonly fingerprint: string;
|
|
293
|
+
readonly createdAt: string;
|
|
294
|
+
readonly revisions: readonly InvocationUsageReceipt[];
|
|
295
|
+
readonly hasMoreRevisions: boolean;
|
|
296
|
+
}
|
|
297
|
+
type InvocationReceipt = InvocationAttemptReceipt | InvocationUsageReceipt;
|
|
298
|
+
type InvocationIntent = {
|
|
299
|
+
readonly identity: InvocationIdentity;
|
|
300
|
+
readonly key: string;
|
|
301
|
+
} & ({
|
|
302
|
+
readonly kind: 'begin';
|
|
303
|
+
readonly input: InvocationAttemptInput;
|
|
304
|
+
} | {
|
|
305
|
+
readonly kind: 'record';
|
|
306
|
+
readonly input: InvocationUsageInput;
|
|
307
|
+
readonly attempt: InvocationAttemptInput;
|
|
308
|
+
readonly attemptId: string;
|
|
309
|
+
});
|
|
310
|
+
interface InvocationDelivery {
|
|
311
|
+
readonly intent: InvocationIntent;
|
|
312
|
+
readonly version: number;
|
|
313
|
+
readonly state: 'UNSENT' | 'DISPATCHED' | 'UNKNOWN' | 'ACKNOWLEDGED';
|
|
314
|
+
readonly receipt: InvocationReceipt | null;
|
|
315
|
+
readonly observedIds: readonly string[];
|
|
316
|
+
}
|
|
317
|
+
interface InvocationDeliveryStore {
|
|
318
|
+
load(identity: InvocationIdentity, key: string): Promise<InvocationDelivery | null>;
|
|
319
|
+
create(value: InvocationDelivery): Promise<boolean>;
|
|
320
|
+
compareAndSet(previous: InvocationDelivery, next: InvocationDelivery): Promise<boolean>;
|
|
321
|
+
}
|
|
322
|
+
interface InvocationCallerAdmission {
|
|
323
|
+
readonly identity: InvocationIdentity;
|
|
324
|
+
readonly expiresAt: number;
|
|
325
|
+
}
|
|
326
|
+
interface InvocationAccountingOptions {
|
|
327
|
+
readonly store: InvocationDeliveryStore;
|
|
328
|
+
readonly transport: (document: string, variables: Readonly<Record<string, unknown>>) => Promise<unknown>;
|
|
329
|
+
readonly admit: () => Promise<InvocationCallerAdmission | null>;
|
|
330
|
+
readonly now?: () => number;
|
|
331
|
+
}
|
|
332
|
+
type InvocationDeliveryResult = {
|
|
333
|
+
readonly status: 'ACKNOWLEDGED';
|
|
334
|
+
readonly receipt: InvocationReceipt;
|
|
335
|
+
readonly observedIds: readonly string[];
|
|
336
|
+
} | {
|
|
337
|
+
readonly status: 'HOLD';
|
|
338
|
+
readonly reason: 'CONTEXT' | 'STORE' | 'OCCUPIED' | 'UNKNOWN' | 'RECEIPT' | 'HISTORY';
|
|
339
|
+
readonly observedIds: readonly string[];
|
|
340
|
+
readonly knownReceipt?: InvocationReceipt;
|
|
341
|
+
};
|
|
342
|
+
declare function validateInvocationDelivery(value: unknown): InvocationDelivery;
|
|
343
|
+
declare class InvocationAccountingCoordinator {
|
|
344
|
+
private readonly options;
|
|
345
|
+
private readonly now;
|
|
346
|
+
constructor(options: InvocationAccountingOptions);
|
|
347
|
+
private admitted;
|
|
348
|
+
private load;
|
|
349
|
+
private unknown;
|
|
350
|
+
private acknowledge;
|
|
351
|
+
private deliver;
|
|
352
|
+
begin(identity: InvocationIdentity, key: string, input: InvocationAttemptInput): Promise<InvocationDeliveryResult>;
|
|
353
|
+
record(identity: InvocationIdentity, key: string, beginKey: string, input: InvocationUsageInput, predecessorKey?: string | null): Promise<InvocationDeliveryResult>;
|
|
354
|
+
reconcile(identity: InvocationIdentity, key: string): Promise<InvocationDeliveryResult>;
|
|
355
|
+
}
|
|
356
|
+
declare const PROMPTS_V2_DOCUMENTS: Readonly<{
|
|
357
|
+
begin: "mutation SdkBeginInvocationAttemptV2($input:PromptBeginInvocationAttemptV2Input!){promptBeginInvocationAttemptV2(input:$input){id workspaceId attemptKey operationKey productKey providerKey modelKey startedAt trigger subjectType subjectId subjectPartId sequence createdBy origin fingerprint createdAt revisions{id attemptId revision predecessorId eventKey fingerprint outcome inputTokens outputTokens totalTokens cachedInputTokens costMicroUsd currency costKind pricingReference origin finishedAt createdAt} hasMoreRevisions}}";
|
|
358
|
+
record: "mutation SdkRecordInvocationUsageV2($input:PromptRecordInvocationUsageV2Input!){promptRecordInvocationUsageV2(input:$input){id attemptId revision predecessorId eventKey fingerprint outcome inputTokens outputTokens totalTokens cachedInputTokens costMicroUsd currency costKind pricingReference origin finishedAt createdAt}}";
|
|
359
|
+
read: "query SdkInvocationAttemptV2($key:String!,$offset:Int){promptInvocationAttemptV2(attemptKey:$key,revisionOffset:$offset){id workspaceId attemptKey operationKey productKey providerKey modelKey startedAt trigger subjectType subjectId subjectPartId sequence createdBy origin fingerprint createdAt revisions{id attemptId revision predecessorId eventKey fingerprint outcome inputTokens outputTokens totalTokens cachedInputTokens costMicroUsd currency costKind pricingReference origin finishedAt createdAt} hasMoreRevisions}}";
|
|
360
|
+
summary: "query SdkUsageSummaryV2($from:DateTime!,$to:DateTime!,$product:String,$operation:String){promptUsageSummaryV2(from:$from,to:$to,productKey:$product,operationKey:$operation){workspaceId from to scope productKey operationKey origin currency costKind operations attempts pendingAttempts knownAttempts partialAttempts unknownAttempts inputTokens{knownSubtotal knownAttempts missingAttempts} outputTokens{knownSubtotal knownAttempts missingAttempts} totalTokens{knownSubtotal knownAttempts missingAttempts} costMicroUsd{knownSubtotal knownAttempts missingAttempts}}}";
|
|
361
|
+
breakdown: "query SdkUsageBreakdownV2($from:DateTime!,$to:DateTime!,$groupBy:[PromptUsageDimensionV2!]!,$product:String,$operation:String,$subjectType:String,$subjectId:String,$trigger:String){promptUsageBreakdownV2(from:$from,to:$to,groupBy:$groupBy,productKey:$product,operationKey:$operation,subjectType:$subjectType,subjectId:$subjectId,trigger:$trigger){workspaceId from to scope groupBy productKey operationKey subjectType subjectId trigger origin currency costKind truncated rows{productKey providerKey modelKey operationKey trigger subjectType subjectId subjectPartId attempts pendingAttempts inputTokens{knownSubtotal knownAttempts missingAttempts} outputTokens{knownSubtotal knownAttempts missingAttempts} totalTokens{knownSubtotal knownAttempts missingAttempts} costMicroUsd{knownSubtotal knownAttempts missingAttempts}}}}";
|
|
362
|
+
}>;
|
|
363
|
+
type UsageIssue = 'INPUT' | 'OUTPUT' | 'CACHE_READ' | 'CACHE_WRITE' | 'CACHE_SUBSET' | 'INPUT_OVERFLOW' | 'CUMULATIVE_REGRESSION';
|
|
364
|
+
interface NormalizedInvocationUsage {
|
|
365
|
+
readonly inputTokens: string | null;
|
|
366
|
+
readonly outputTokens: string | null;
|
|
367
|
+
readonly cachedInputTokens: string | null;
|
|
368
|
+
readonly costMicroUsd: null;
|
|
369
|
+
readonly reportedModel: string | null;
|
|
370
|
+
readonly issues: readonly UsageIssue[];
|
|
371
|
+
}
|
|
372
|
+
interface NormalizedClaudeUsage extends NormalizedInvocationUsage {
|
|
373
|
+
readonly uncachedInputTokens: string | null;
|
|
374
|
+
readonly cacheCreationInputTokens: string | null;
|
|
375
|
+
readonly cacheReadInputTokens: string | null;
|
|
376
|
+
}
|
|
377
|
+
declare function normalizeOpenAIUsage(response: unknown): NormalizedInvocationUsage;
|
|
378
|
+
declare function normalizeClaudeUsage(response: unknown): NormalizedClaudeUsage;
|
|
379
|
+
declare function createClaudeUsageAccumulator(): (snapshot: unknown) => NormalizedClaudeUsage;
|
|
380
|
+
declare class InvocationAccountingValidationError extends Error {
|
|
381
|
+
constructor();
|
|
382
|
+
}
|
|
383
|
+
declare function validateInvocationIdentity(value: unknown): InvocationIdentity;
|
|
384
|
+
declare function validateInvocationAttemptInput(value: unknown): InvocationAttemptInput;
|
|
385
|
+
declare function validateInvocationUsageInput(value: unknown): InvocationUsageInput;
|
|
386
|
+
declare function validateInvocationUsageReceipt(value: unknown, expected: InvocationUsageInput, attemptId: string): InvocationUsageReceipt;
|
|
387
|
+
declare function validateInvocationAttemptReceipt(value: unknown, expected: InvocationAttemptInput, identity: InvocationIdentity): InvocationAttemptReceipt;
|
|
388
|
+
interface InvocationSummarySelection {
|
|
389
|
+
readonly workspaceId: string;
|
|
390
|
+
readonly from: string;
|
|
391
|
+
readonly to: string;
|
|
392
|
+
readonly productKey: string | null;
|
|
393
|
+
readonly operationKey: string | null;
|
|
394
|
+
}
|
|
395
|
+
interface InvocationSummaryComponent {
|
|
396
|
+
readonly knownSubtotal: string | null;
|
|
397
|
+
readonly knownAttempts: string;
|
|
398
|
+
readonly missingAttempts: string;
|
|
399
|
+
}
|
|
400
|
+
interface InvocationUsageSummary extends InvocationSummarySelection {
|
|
401
|
+
readonly scope: 'RECORDED_V2_ATTEMPTS';
|
|
402
|
+
readonly origin: 'CALLER_REPORTED';
|
|
403
|
+
readonly currency: 'USD';
|
|
404
|
+
readonly costKind: 'ESTIMATE';
|
|
405
|
+
readonly attempts: string;
|
|
406
|
+
readonly operations: string;
|
|
407
|
+
readonly pendingAttempts: string;
|
|
408
|
+
readonly knownAttempts: string;
|
|
409
|
+
readonly partialAttempts: string;
|
|
410
|
+
readonly unknownAttempts: string;
|
|
411
|
+
readonly inputTokens: InvocationSummaryComponent;
|
|
412
|
+
readonly outputTokens: InvocationSummaryComponent;
|
|
413
|
+
readonly totalTokens: InvocationSummaryComponent;
|
|
414
|
+
readonly costMicroUsd: InvocationSummaryComponent;
|
|
415
|
+
}
|
|
416
|
+
declare function validateInvocationUsageSummary(value: unknown, selection: InvocationSummarySelection): InvocationUsageSummary;
|
|
417
|
+
declare namespace index_d_exports {
|
|
418
|
+
export { BreakerConfig, BuildConnectionOptions, CacheVersionRedis, CircuitBreakerOpenError, ClampLimitOptions, ConnectionEdge, ConnectionResult, CreateLeaderLeaseOptions, CursorPaginationInput, CursorPayload, CursorPayloadValue, DEFAULT_GRAPHQL_PAGE_LIMIT, DataLoaderLike, DropOldOptions, EnsureMonthlyOptions, HttpClientConfig, HttpClientInit, InvocationAccountingCoordinator, InvocationAccountingOptions, InvocationAccountingValidationError, InvocationAttemptDimensions, InvocationAttemptInput, InvocationAttemptReceipt, InvocationCallerAdmission, InvocationDelivery, InvocationDeliveryResult, InvocationDeliveryStore, InvocationIdentity, InvocationIntent, InvocationReceipt, InvocationSummaryComponent, InvocationSummarySelection, InvocationTrigger, InvocationUsageInput, InvocationUsageReceipt, InvocationUsageSummary, LLMProviderAdapter, LLMRequest, LLMResponse, LLMRouter, LLMRouterOptions, LeaderLease, LeaderLockOptions, LeaderLockRedis, LeaderLockResult, LoaderBuilder, LoaderMap, MAX_GRAPHQL_PAGE_LIMIT, NormalizedClaudeUsage, NormalizedCursorPagination, NormalizedInvocationUsage, NormalizedOffsetPagination, OffsetPageResult, OffsetPaginationInput, PROMPTS_V2_DOCUMENTS, PageInfo, PaginateInput, PaginateResult, PrismaModelLike, PrismaRawClient, RateLimitInput, RateLimitRedis, RateLimitResult, ReferenceObject, RetryConfig, UsageIssue, __resetHttpClientBreakers, buildCacheKey, buildConnection, buildLoaders, buildOffsetPage, clampGraphqlLimit, clampLimit, clampOffset, createClaudeUsageAccumulator, createHttpClient, createLeaderLease, decodeCursor, dropOldPartitions, encodeCursor, ensureMonthlyPartitions, getNamespaceVersion, httpClient, invalidateNamespace, monthlyPartitionName, normalizeClaudeUsage, normalizeCursorPagination, normalizeOffsetPagination, normalizeOpenAIUsage, normalizeRedisUrl, paginate, rateLimitIncr, resolveReferenceLoader, toPrismaPage, validateInvocationAttemptInput, validateInvocationAttemptReceipt, validateInvocationDelivery, validateInvocationIdentity, validateInvocationUsageInput, validateInvocationUsageReceipt, validateInvocationUsageSummary, withLeaderLock };
|
|
419
|
+
}
|
|
420
|
+
export { ReferenceObject as $, InvocationIntent as A, RateLimitInput as At, DropOldOptions as B, normalizeRedisUrl as Bt, InvocationAttemptInput as C, clampOffset as Ct, InvocationDeliveryResult as D, normalizeOffsetPagination as Dt, InvocationDelivery as E, normalizeCursorPagination as Et, LLMProviderAdapter as F, LeaderLease as Ft, monthlyPartitionName as G, HttpClientInit as Gt, PrismaRawClient as H, BreakerConfig as Ht, LLMRequest as I, LeaderLockOptions as It, getNamespaceVersion as J, createHttpClient as Jt, CacheVersionRedis as K, RetryConfig as Kt, LLMResponse as L, LeaderLockRedis as Lt, InvocationTrigger as M, RateLimitResult as Mt, InvocationUsageInput as N, rateLimitIncr as Nt, InvocationDeliveryStore as O, paginate as Ot, InvocationUsageReceipt as P, CreateLeaderLeaseOptions as Pt, LoaderMap as Q, LLMRouter as R, LeaderLockResult as Rt, InvocationAttemptDimensions as S, clampLimit as St, InvocationCallerAdmission as T, encodeCursor as Tt, dropOldPartitions as U, CircuitBreakerOpenError as Ut, EnsureMonthlyOptions as V, withLeaderLock as Vt, ensureMonthlyPartitions as W, HttpClientConfig as Wt, DataLoaderLike as X, invalidateNamespace as Y, httpClient as Yt, LoaderBuilder as Z, normalizeOpenAIUsage as _, PaginateResult as _t, validateInvocationUsageSummary as a, ConnectionResult as at, validateInvocationDelivery as b, buildOffsetPage as bt, validateInvocationAttemptReceipt as c, CursorPayloadValue as ct, validateInvocationUsageReceipt as d, NormalizedCursorPagination as dt, buildLoaders as et, NormalizedClaudeUsage as f, NormalizedOffsetPagination as ft, normalizeClaudeUsage as g, PaginateInput as gt, createClaudeUsageAccumulator as h, PageInfo as ht, InvocationUsageSummary as i, ConnectionEdge as it, InvocationReceipt as j, RateLimitRedis as jt, InvocationIdentity as k, toPrismaPage as kt, validateInvocationIdentity as l, DEFAULT_GRAPHQL_PAGE_LIMIT as lt, UsageIssue as m, OffsetPaginationInput as mt, InvocationSummaryComponent as n, BuildConnectionOptions as nt, InvocationAccountingValidationError as o, CursorPaginationInput as ot, NormalizedInvocationUsage as p, OffsetPageResult as pt, buildCacheKey as q, __resetHttpClientBreakers as qt, InvocationSummarySelection as r, ClampLimitOptions as rt, validateInvocationAttemptInput as s, CursorPayload as st, index_d_exports as t, resolveReferenceLoader as tt, validateInvocationUsageInput as u, MAX_GRAPHQL_PAGE_LIMIT as ut, PROMPTS_V2_DOCUMENTS as v, PrismaModelLike as vt, InvocationAttemptReceipt as w, decodeCursor as wt, InvocationAccountingOptions as x, clampGraphqlLimit as xt, InvocationAccountingCoordinator as y, buildConnection as yt, LLMRouterOptions as z, createLeaderLease as zt };
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { m as ServiceLayer } from "./layer-BZBZZWeV.js";
|
|
2
|
+
interface DatabaseConfig {
|
|
3
|
+
url: string;
|
|
4
|
+
maxConnections?: number;
|
|
5
|
+
idleTimeoutMillis?: number;
|
|
6
|
+
connectionTimeoutMillis?: number;
|
|
7
|
+
enableQueryLogging?: boolean;
|
|
8
|
+
slowQueryThreshold?: number;
|
|
9
|
+
migrationsPath?: string;
|
|
10
|
+
}
|
|
11
|
+
interface LoggingConfig {
|
|
12
|
+
level?: 'debug' | 'info' | 'warn' | 'error';
|
|
13
|
+
format?: 'json' | 'pretty';
|
|
14
|
+
console?: boolean;
|
|
15
|
+
structured?: boolean;
|
|
16
|
+
}
|
|
17
|
+
interface GraphSyncConfig {
|
|
18
|
+
enabled: boolean;
|
|
19
|
+
eventsEnabled?: boolean;
|
|
20
|
+
syncInterval?: number;
|
|
21
|
+
batchSize?: number;
|
|
22
|
+
consumerGroup?: string;
|
|
23
|
+
productSource?: string;
|
|
24
|
+
streamName?: string;
|
|
25
|
+
}
|
|
26
|
+
interface SDKValkeyCacheConfig {
|
|
27
|
+
url: string;
|
|
28
|
+
password?: string;
|
|
29
|
+
defaultTTL?: number;
|
|
30
|
+
db?: number;
|
|
31
|
+
keyPrefix?: string;
|
|
32
|
+
maxMemoryPolicy?: string;
|
|
33
|
+
}
|
|
34
|
+
interface ClickHouseConfig {
|
|
35
|
+
url: string;
|
|
36
|
+
database: string;
|
|
37
|
+
username?: string;
|
|
38
|
+
password?: string;
|
|
39
|
+
requestTimeout?: number;
|
|
40
|
+
maxConnections?: number;
|
|
41
|
+
compression?: boolean;
|
|
42
|
+
}
|
|
43
|
+
interface MetricsConfig {
|
|
44
|
+
enabled?: boolean;
|
|
45
|
+
port?: number;
|
|
46
|
+
endpoint?: string;
|
|
47
|
+
defaultMetrics?: boolean;
|
|
48
|
+
collectInterval?: number;
|
|
49
|
+
}
|
|
50
|
+
interface OpenTelemetryConfig {
|
|
51
|
+
enabled?: boolean;
|
|
52
|
+
serviceName?: string;
|
|
53
|
+
exporterEndpoint?: string;
|
|
54
|
+
samplingRate?: number;
|
|
55
|
+
consoleExporter?: boolean;
|
|
56
|
+
}
|
|
57
|
+
interface ObservabilityConfig {
|
|
58
|
+
metrics?: MetricsConfig;
|
|
59
|
+
openTelemetry?: OpenTelemetryConfig;
|
|
60
|
+
}
|
|
61
|
+
interface SDKCacheConfig {
|
|
62
|
+
valkey?: SDKValkeyCacheConfig;
|
|
63
|
+
localMaxSize?: number;
|
|
64
|
+
localTTL?: number;
|
|
65
|
+
}
|
|
66
|
+
interface AnalyticsConfig {
|
|
67
|
+
clickhouse?: ClickHouseConfig;
|
|
68
|
+
valkeyDb?: number;
|
|
69
|
+
eventMaxPropertiesSize?: number;
|
|
70
|
+
eventMaxBatchSize?: number;
|
|
71
|
+
rateLimitEnabled?: boolean;
|
|
72
|
+
rateLimitPerMinute?: number;
|
|
73
|
+
rateLimitPerHour?: number;
|
|
74
|
+
samplingEnabled?: boolean;
|
|
75
|
+
samplingRate?: number;
|
|
76
|
+
}
|
|
77
|
+
interface EventQueueConfig {
|
|
78
|
+
defaultStreams?: {
|
|
79
|
+
name: string;
|
|
80
|
+
subjects: string[];
|
|
81
|
+
retention?: 'limits' | 'interest' | 'workqueue';
|
|
82
|
+
storage?: 'file' | 'memory';
|
|
83
|
+
maxAge?: number;
|
|
84
|
+
maxBytes?: number;
|
|
85
|
+
}[];
|
|
86
|
+
}
|
|
87
|
+
interface LayerInitConfig {
|
|
88
|
+
type: ServiceLayer;
|
|
89
|
+
serviceName: string;
|
|
90
|
+
serviceIdentity?: string;
|
|
91
|
+
autoCreateStreams?: boolean;
|
|
92
|
+
}
|
|
93
|
+
interface BurdenoffSDKInitConfig {
|
|
94
|
+
database: DatabaseConfig;
|
|
95
|
+
layer?: LayerInitConfig;
|
|
96
|
+
logging?: LoggingConfig;
|
|
97
|
+
graph?: GraphSyncConfig;
|
|
98
|
+
cache?: SDKCacheConfig;
|
|
99
|
+
analytics?: AnalyticsConfig;
|
|
100
|
+
eventQueue?: EventQueueConfig;
|
|
101
|
+
observability?: ObservabilityConfig;
|
|
102
|
+
app?: {
|
|
103
|
+
nodeEnv?: string;
|
|
104
|
+
serviceName?: string;
|
|
105
|
+
version?: string;
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
interface InitializedSDKState {
|
|
109
|
+
prisma?: unknown;
|
|
110
|
+
valkey?: unknown;
|
|
111
|
+
clickhouse?: unknown;
|
|
112
|
+
eventPublisher?: unknown;
|
|
113
|
+
layerManager?: unknown;
|
|
114
|
+
gatewayClient?: unknown;
|
|
115
|
+
graphSyncEnabled: boolean;
|
|
116
|
+
analyticsEnabled: boolean;
|
|
117
|
+
observabilityEnabled: boolean;
|
|
118
|
+
layerAwareEnabled: boolean;
|
|
119
|
+
}
|
|
120
|
+
declare namespace index_d_exports {
|
|
121
|
+
export { AnalyticsConfig, BurdenoffSDKInitConfig, ClickHouseConfig, DatabaseConfig, EventQueueConfig, GraphSyncConfig, InitializedSDKState, LayerInitConfig, LoggingConfig, MetricsConfig, ObservabilityConfig, OpenTelemetryConfig, SDKCacheConfig, SDKValkeyCacheConfig, getSDKState, initializeBurdenoffSDK, isSDKInitialized, resetSDK };
|
|
122
|
+
}
|
|
123
|
+
declare function initializeBurdenoffSDK(config: BurdenoffSDKInitConfig): Promise<InitializedSDKState>;
|
|
124
|
+
declare function getSDKState(): InitializedSDKState;
|
|
125
|
+
declare function isSDKInitialized(): boolean;
|
|
126
|
+
declare function resetSDK(): Promise<void>;
|
|
127
|
+
export { OpenTelemetryConfig as _, resetSDK as a, ClickHouseConfig as c, GraphSyncConfig as d, InitializedSDKState as f, ObservabilityConfig as g, MetricsConfig as h, isSDKInitialized as i, DatabaseConfig as l, LoggingConfig as m, index_d_exports as n, AnalyticsConfig as o, LayerInitConfig as p, initializeBurdenoffSDK as r, BurdenoffSDKInitConfig as s, getSDKState as t, EventQueueConfig as u, SDKCacheConfig as v, SDKValkeyCacheConfig as y };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface ShutdownDisposable {
|
|
2
|
+
readonly shutdownName: string;
|
|
3
|
+
dispose(): Promise<void> | void;
|
|
4
|
+
}
|
|
5
|
+
declare function registerDisposable(d: ShutdownDisposable): void;
|
|
6
|
+
declare function unregisterDisposable(d: ShutdownDisposable): void;
|
|
7
|
+
declare function getRegisteredDisposableCount(): number;
|
|
8
|
+
declare function disposeAll(timeoutMs?: number): Promise<void>;
|
|
9
|
+
declare namespace index_d_exports {
|
|
10
|
+
export { ShutdownDisposable, disposeAll, getRegisteredDisposableCount, registerDisposable, unregisterDisposable };
|
|
11
|
+
}
|
|
12
|
+
export { registerDisposable as a, getRegisteredDisposableCount as i, ShutdownDisposable as n, unregisterDisposable as o, disposeAll as r, index_d_exports as t };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare class Logger {
|
|
2
|
+
log(message: string, ...args: unknown[]): void;
|
|
3
|
+
info(message: string, ...args: unknown[]): void;
|
|
4
|
+
warn(message: string, ...args: unknown[]): void;
|
|
5
|
+
error(message: string, error?: Error | unknown, ...args: unknown[]): void;
|
|
6
|
+
debug(message: string, ...args: unknown[]): void;
|
|
7
|
+
trace(message: string, ...args: unknown[]): void;
|
|
8
|
+
}
|
|
9
|
+
type PrismaTransactionClient<TPrismaClient> = Omit<TPrismaClient, '$connect' | '$disconnect' | '$on' | '$transaction' | '$use' | '$extends'>;
|
|
10
|
+
declare function createDatabaseService<TPrismaClient extends {
|
|
11
|
+
$transaction: (...args: unknown[]) => Promise<unknown>;
|
|
12
|
+
}>(prismaClient: TPrismaClient): {
|
|
13
|
+
new (): {
|
|
14
|
+
readonly client: TPrismaClient;
|
|
15
|
+
transaction<T>(fn: (tx: PrismaTransactionClient<TPrismaClient>) => Promise<T>): Promise<T>;
|
|
16
|
+
isConnected(): Promise<boolean>;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
type DatabaseService<TPrismaClient extends {
|
|
20
|
+
$transaction: (...args: unknown[]) => Promise<unknown>;
|
|
21
|
+
}> = InstanceType<ReturnType<typeof createDatabaseService<TPrismaClient>>>;
|
|
22
|
+
export { Logger as i, PrismaTransactionClient as n, createDatabaseService as r, DatabaseService as t };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
declare function isValidEmail(email: string): boolean;
|
|
2
|
+
declare function isValidUrl(url: string): boolean;
|
|
3
|
+
declare function isValidRegexPattern(pattern: string): boolean;
|
|
4
|
+
declare function compileValidatedPattern(pattern: string): RegExp | null;
|
|
5
|
+
declare function isValidPhone(phone: string): boolean;
|
|
6
|
+
declare function isValidUUID(uuid: string): boolean;
|
|
7
|
+
declare function isValidIPv4(ip: string): boolean;
|
|
8
|
+
declare function isValidSlug(slug: string): boolean;
|
|
9
|
+
declare function isValidHexColor(color: string): boolean;
|
|
10
|
+
declare function isValidBase64(str: string): boolean;
|
|
11
|
+
declare function isValidJSON(str: string): boolean;
|
|
12
|
+
declare function isNumberInRange(value: number, min: number | null, max: number | null): boolean;
|
|
13
|
+
declare function isStringLengthValid(value: string, min: number | null, max: number | null): boolean;
|
|
14
|
+
declare namespace index_d_exports {
|
|
15
|
+
export { chunk, compileValidatedPattern, debounce, deepMerge, formatBytes, generateUUID, groupBy, isNumberInRange, isStringLengthValid, isTokenExpired, isValidBase64, isValidEmail, isValidHexColor, isValidIPv4, isValidJSON, isValidPhone, isValidRegexPattern, isValidSlug, isValidUUID, isValidUrl, omit, parseJWT, pick, retry, sanitizeForLog, sleep, throttle, truncate, unique };
|
|
16
|
+
}
|
|
17
|
+
declare function retry<T>(fn: () => Promise<T>, options: {
|
|
18
|
+
maxAttempts: number;
|
|
19
|
+
initialDelay: number;
|
|
20
|
+
maxDelay: number;
|
|
21
|
+
backoffMultiplier: number;
|
|
22
|
+
}): Promise<T>;
|
|
23
|
+
declare function sleep(ms: number): Promise<void>;
|
|
24
|
+
declare function deepMerge<T extends Record<string, unknown>>(target: T, source: Partial<T>): T;
|
|
25
|
+
declare function generateUUID(): string;
|
|
26
|
+
declare function sanitizeForLog(data: Record<string, unknown>): Record<string, unknown>;
|
|
27
|
+
declare function debounce<T extends (...args: unknown[]) => unknown>(fn: T, delay: number): (...args: Parameters<T>) => void;
|
|
28
|
+
declare function throttle<T extends (...args: unknown[]) => unknown>(fn: T, delay: number): (...args: Parameters<T>) => void;
|
|
29
|
+
declare function parseJWT(token: string): Record<string, unknown> | null;
|
|
30
|
+
declare function isTokenExpired(token: string): boolean;
|
|
31
|
+
declare function formatBytes(bytes: number, decimals?: number): string;
|
|
32
|
+
declare function truncate(str: string, maxLength: number): string;
|
|
33
|
+
declare function chunk<T>(array: T[], size: number): T[][];
|
|
34
|
+
declare function unique<T>(array: T[]): T[];
|
|
35
|
+
declare function groupBy<T>(array: T[], key: keyof T): Record<string, T[]>;
|
|
36
|
+
declare function pick<T extends Record<string, unknown>, K extends keyof T>(obj: T, keys: K[]): Pick<T, K>;
|
|
37
|
+
declare function omit<T extends Record<string, unknown>, K extends keyof T>(obj: T, keys: K[]): Omit<T, K>;
|
|
38
|
+
export { isValidUrl as A, isValidHexColor as C, isValidRegexPattern as D, isValidPhone as E, isValidSlug as O, isValidEmail as S, isValidJSON as T, unique as _, generateUUID as a, isStringLengthValid as b, isTokenExpired as c, pick as d, retry as f, truncate as g, throttle as h, formatBytes as i, isValidUUID as k, omit as l, sleep as m, debounce as n, groupBy as o, sanitizeForLog as p, deepMerge as r, index_d_exports as s, chunk as t, parseJWT as u, compileValidatedPattern as v, isValidIPv4 as w, isValidBase64 as x, isNumberInRange as y };
|