@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,63 @@
|
|
|
1
|
+
import { t as BurdenoffGraphQLClient } from "./graphql-DNkMkGBZ.js";
|
|
2
|
+
import { o as SDKContext } from "./index-BQDsNAMR.js";
|
|
3
|
+
import { i as GraphQLContext } from "./types-CWybW61E.js";
|
|
4
|
+
interface CookieOptions {
|
|
5
|
+
name: string;
|
|
6
|
+
value: string;
|
|
7
|
+
maxAge?: number;
|
|
8
|
+
domain?: string;
|
|
9
|
+
path?: string;
|
|
10
|
+
httpOnly?: boolean;
|
|
11
|
+
secure?: boolean;
|
|
12
|
+
sameSite?: 'Strict' | 'Lax' | 'None';
|
|
13
|
+
}
|
|
14
|
+
declare class AuthCookieHelper {
|
|
15
|
+
private static readonly ACCESS_TOKEN_COOKIE;
|
|
16
|
+
private static readonly REFRESH_TOKEN_COOKIE;
|
|
17
|
+
private static readonly PROFILE_ID_COOKIE;
|
|
18
|
+
static setAuthCookies(context: GraphQLContext, tokens: {
|
|
19
|
+
accessToken: string;
|
|
20
|
+
refreshToken?: string;
|
|
21
|
+
}, options?: {
|
|
22
|
+
profileId?: string;
|
|
23
|
+
rememberMe?: boolean;
|
|
24
|
+
}): void;
|
|
25
|
+
static clearAuthCookies(context: GraphQLContext): void;
|
|
26
|
+
private static setCookie;
|
|
27
|
+
}
|
|
28
|
+
interface TokenPayload {
|
|
29
|
+
jti: string;
|
|
30
|
+
sub: string;
|
|
31
|
+
user_id: string;
|
|
32
|
+
workspace_id?: string;
|
|
33
|
+
org_id?: string;
|
|
34
|
+
tenant_endpoint?: string;
|
|
35
|
+
iat: number;
|
|
36
|
+
exp: number;
|
|
37
|
+
scope?: string;
|
|
38
|
+
}
|
|
39
|
+
interface VerifyTokenResult {
|
|
40
|
+
valid: boolean;
|
|
41
|
+
payload?: TokenPayload;
|
|
42
|
+
error?: string;
|
|
43
|
+
}
|
|
44
|
+
interface RefreshTokenResult {
|
|
45
|
+
accessToken: string;
|
|
46
|
+
refreshToken: string;
|
|
47
|
+
expiresIn: number;
|
|
48
|
+
}
|
|
49
|
+
declare class AuthModule {
|
|
50
|
+
private client;
|
|
51
|
+
private context;
|
|
52
|
+
constructor(client: BurdenoffGraphQLClient, context: SDKContext);
|
|
53
|
+
verifyToken(token: string): Promise<VerifyTokenResult>;
|
|
54
|
+
decodeToken(token: string): TokenPayload | null;
|
|
55
|
+
refreshToken(refreshToken: string): Promise<RefreshTokenResult>;
|
|
56
|
+
validatePermission(userId: string, permission: string, resourceId?: string): Promise<boolean>;
|
|
57
|
+
isTokenValid(token: string): boolean;
|
|
58
|
+
getUserIdFromToken(token: string): string | null;
|
|
59
|
+
getWorkspaceIdFromToken(token: string): string | null;
|
|
60
|
+
getTokenClaims(token: string): Record<string, unknown> | null;
|
|
61
|
+
willExpireSoon(token: string, withinSeconds?: number): boolean;
|
|
62
|
+
}
|
|
63
|
+
export { AuthCookieHelper as a, VerifyTokenResult as i, RefreshTokenResult as n, CookieOptions as o, TokenPayload as r, AuthModule as t };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
declare namespace index_d_exports {
|
|
2
|
+
export { BatchFunction, CompositeKeyLoaderOptions, DataLoaderConfig, DataLoaderFactory, EntityLoaderOptions, RelationLoaderOptions, SimpleBatchFunction, SimpleDataLoader, createCompositeKeyLoader, createDataLoaderFactory, createEntityLoader, createRelationLoader };
|
|
3
|
+
}
|
|
4
|
+
type BatchFunction<K, V> = (keys: readonly K[]) => Promise<(V | Error | null)[]>;
|
|
5
|
+
type SimpleBatchFunction<K, V> = (keys: readonly K[]) => Promise<V[]>;
|
|
6
|
+
interface EntityLoaderOptions<T, K extends string | number = string> {
|
|
7
|
+
batchFn: SimpleBatchFunction<K, T>;
|
|
8
|
+
getKey: (entity: T) => K;
|
|
9
|
+
cacheKeyFn?: (key: K) => string;
|
|
10
|
+
}
|
|
11
|
+
interface RelationLoaderOptions<T, K extends string | number = string> {
|
|
12
|
+
batchFn: SimpleBatchFunction<K, T>;
|
|
13
|
+
getKey: (entity: T) => K | null | undefined;
|
|
14
|
+
cacheKeyFn?: (key: K) => string;
|
|
15
|
+
}
|
|
16
|
+
interface CompositeKeyLoaderOptions<T> {
|
|
17
|
+
batchFn: SimpleBatchFunction<string, T>;
|
|
18
|
+
getKey: (entity: T) => string;
|
|
19
|
+
cacheKeyFn?: (key: string) => string;
|
|
20
|
+
}
|
|
21
|
+
interface DataLoaderConfig<K, V> {
|
|
22
|
+
batchLoadFn: BatchFunction<K, V>;
|
|
23
|
+
maxBatchSize?: number;
|
|
24
|
+
cache?: boolean;
|
|
25
|
+
cacheKeyFn?: (key: K) => string;
|
|
26
|
+
}
|
|
27
|
+
declare class SimpleDataLoader<K, V> {
|
|
28
|
+
private config;
|
|
29
|
+
private cache;
|
|
30
|
+
private pendingBatch;
|
|
31
|
+
private pendingPromises;
|
|
32
|
+
private batchScheduled;
|
|
33
|
+
constructor(config: DataLoaderConfig<K, V>);
|
|
34
|
+
load(key: K): Promise<V | null>;
|
|
35
|
+
loadMany(keys: K[]): Promise<(V | null)[]>;
|
|
36
|
+
clear(key: K): this;
|
|
37
|
+
clearAll(): this;
|
|
38
|
+
prime(key: K, value: V | Error | null): this;
|
|
39
|
+
private getCacheKey;
|
|
40
|
+
private scheduleBatch;
|
|
41
|
+
private deduplicateKeys;
|
|
42
|
+
private resolvePromisesForKey;
|
|
43
|
+
private processResults;
|
|
44
|
+
private rejectAllPromises;
|
|
45
|
+
private executeBatch;
|
|
46
|
+
}
|
|
47
|
+
declare function createEntityLoader<T, K extends string | number = string>(options: EntityLoaderOptions<T, K>): SimpleDataLoader<K, T>;
|
|
48
|
+
declare function createRelationLoader<T, K extends string | number = string>(options: RelationLoaderOptions<T, K>): SimpleDataLoader<K, T[]>;
|
|
49
|
+
declare function createCompositeKeyLoader<T>(options: CompositeKeyLoaderOptions<T>): SimpleDataLoader<string, T[]>;
|
|
50
|
+
declare class DataLoaderFactory {
|
|
51
|
+
private loaders;
|
|
52
|
+
registerEntityLoader<T, K extends string | number = string>(name: string, options: EntityLoaderOptions<T, K>): SimpleDataLoader<K, T>;
|
|
53
|
+
registerRelationLoader<T, K extends string | number = string>(name: string, options: RelationLoaderOptions<T, K>): SimpleDataLoader<K, T[]>;
|
|
54
|
+
registerCompositeKeyLoader<T>(name: string, options: CompositeKeyLoaderOptions<T>): SimpleDataLoader<string, T[]>;
|
|
55
|
+
get<K, V>(name: string): SimpleDataLoader<K, V> | undefined;
|
|
56
|
+
clearAll(): void;
|
|
57
|
+
}
|
|
58
|
+
declare function createDataLoaderFactory(): DataLoaderFactory;
|
|
59
|
+
export { EntityLoaderOptions as a, SimpleDataLoader as c, createEntityLoader as d, createRelationLoader as f, DataLoaderFactory as i, createCompositeKeyLoader as l, CompositeKeyLoaderOptions as n, RelationLoaderOptions as o, index_d_exports as p, DataLoaderConfig as r, SimpleBatchFunction as s, BatchFunction as t, createDataLoaderFactory as u };
|
|
@@ -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 };
|