@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,103 @@
|
|
|
1
|
+
import { a as LanguageCode, c as ParsedLocale, d as RTL_LANGUAGES, f as TextDirection, g as getTextDirection, h as TranslationVariables, i as II18n, l as PluralForms, m as TranslationDictionary, n as I18nConfig, o as LanguageInfo, p as TranslateFunction, r as I18nContext, s as LocaleCode, t as FlatTranslationMap, u as PluralTranslateFunction } from "./types-DgaQqvxo.js";
|
|
2
|
+
declare class I18n implements II18n {
|
|
3
|
+
private config;
|
|
4
|
+
private currentLocale;
|
|
5
|
+
private supportedLocales;
|
|
6
|
+
private initialized;
|
|
7
|
+
constructor(config: I18nConfig);
|
|
8
|
+
initialize(): Promise<void>;
|
|
9
|
+
getLocale(): LocaleCode;
|
|
10
|
+
setLocale(locale: LocaleCode): void;
|
|
11
|
+
getSupportedLocales(): LocaleCode[];
|
|
12
|
+
isSupported(locale: LocaleCode): boolean;
|
|
13
|
+
loadLocale(locale: LocaleCode): Promise<void>;
|
|
14
|
+
getTranslations(locale: LocaleCode): FlatTranslationMap | undefined;
|
|
15
|
+
t: TranslateFunction;
|
|
16
|
+
tp: PluralTranslateFunction;
|
|
17
|
+
private translate;
|
|
18
|
+
private translatePlural;
|
|
19
|
+
createContext(locale: LocaleCode): I18nContext;
|
|
20
|
+
createContextFromRequest(request: Request): I18nContext;
|
|
21
|
+
getLanguageInfo(locale: LocaleCode): {
|
|
22
|
+
code: LanguageCode;
|
|
23
|
+
direction: 'ltr' | 'rtl';
|
|
24
|
+
locale: LocaleCode;
|
|
25
|
+
region?: string;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
declare function initializeI18n(config: I18nConfig): Promise<I18n>;
|
|
29
|
+
declare function getI18n(): I18n | null;
|
|
30
|
+
declare function createI18n(config: I18nConfig): I18n;
|
|
31
|
+
interface I18nCapableContext {
|
|
32
|
+
i18n?: I18nContext;
|
|
33
|
+
}
|
|
34
|
+
declare function t(ctx: I18nCapableContext, key: string, defaultMessage: string, variables?: TranslationVariables): string;
|
|
35
|
+
type Translator = (key: string, defaultMessage: string, variables?: TranslationVariables) => string;
|
|
36
|
+
declare function createTranslator(ctx: I18nCapableContext): Translator;
|
|
37
|
+
declare function hasI18n(ctx: I18nCapableContext): ctx is I18nCapableContext & {
|
|
38
|
+
i18n: I18nContext;
|
|
39
|
+
};
|
|
40
|
+
declare function getLocale(ctx: I18nCapableContext, defaultLocale?: string): string;
|
|
41
|
+
declare function getLanguage(ctx: I18nCapableContext, defaultLanguage?: string): string;
|
|
42
|
+
declare function parseLocaleString(localeStr: string): ParsedLocale | null;
|
|
43
|
+
declare function parseAcceptLanguage(header: string | null | undefined): ParsedLocale[];
|
|
44
|
+
declare function extractLocaleFromRequest(request: Request, defaultLocale?: LocaleCode): ParsedLocale;
|
|
45
|
+
declare function normalizeLocale(locale: string): LocaleCode;
|
|
46
|
+
declare function getLanguageFromLocale(locale: LocaleCode): LanguageCode;
|
|
47
|
+
declare function getRegionFromLocale(locale: LocaleCode): string | undefined;
|
|
48
|
+
declare function findBestMatch(requested: ParsedLocale[], available: LocaleCode[], defaultLocale: LocaleCode): LocaleCode;
|
|
49
|
+
declare function flattenDictionary(obj: TranslationDictionary, prefix?: string): FlatTranslationMap;
|
|
50
|
+
declare function loadTranslationFile(filePath: string, baseDir: string): Promise<TranslationDictionary>;
|
|
51
|
+
declare function loadTranslationsForLocale(config: I18nConfig, locale: LocaleCode): Promise<FlatTranslationMap>;
|
|
52
|
+
declare function discoverLocales(localesPath: string): Promise<LocaleCode[]>;
|
|
53
|
+
declare function preloadAllTranslations(config: I18nConfig): Promise<void>;
|
|
54
|
+
declare function clearTranslationCache(namespace?: string): void;
|
|
55
|
+
declare function getCachedTranslations(namespace: string | undefined, locale: LocaleCode): FlatTranslationMap | undefined;
|
|
56
|
+
declare function setCachedTranslations(namespace: string | undefined, locale: LocaleCode, translations: FlatTranslationMap): void;
|
|
57
|
+
declare namespace index_d_exports {
|
|
58
|
+
export { DEFAULT_I18N_CONFIG, FlatTranslationMap, I18n, I18nCapableContext, I18nConfig, I18nContext, II18n, LanguageCode, LanguageInfo, LocaleCode, Locales, ParsedLocale, PluralForms, PluralTranslateFunction, RTL_LANGUAGES, TextDirection, TranslateFunction, TranslationDictionary, TranslationVariables, Translator, clearTranslationCache, createI18n, createTranslator, discoverLocales, extractLocaleFromRequest, findBestMatch, flattenDictionary, getCachedTranslations, getI18n, getLanguage, getLanguageFromLocale, getLocale, getRegionFromLocale, getTextDirection, hasI18n, initializeI18n, loadTranslationFile, loadTranslationsForLocale, normalizeLocale, parseAcceptLanguage, parseLocaleString, preloadAllTranslations, setCachedTranslations, t };
|
|
59
|
+
}
|
|
60
|
+
declare const Locales: {
|
|
61
|
+
readonly EN_US: "en-US";
|
|
62
|
+
readonly EN_GB: "en-GB";
|
|
63
|
+
readonly EN_AU: "en-AU";
|
|
64
|
+
readonly EN_CA: "en-CA";
|
|
65
|
+
readonly EN_IN: "en-IN";
|
|
66
|
+
readonly ES_ES: "es-ES";
|
|
67
|
+
readonly ES_MX: "es-MX";
|
|
68
|
+
readonly FR_FR: "fr-FR";
|
|
69
|
+
readonly FR_CA: "fr-CA";
|
|
70
|
+
readonly DE_DE: "de-DE";
|
|
71
|
+
readonly DE_AT: "de-AT";
|
|
72
|
+
readonly DE_CH: "de-CH";
|
|
73
|
+
readonly IT_IT: "it-IT";
|
|
74
|
+
readonly PT_PT: "pt-PT";
|
|
75
|
+
readonly PT_BR: "pt-BR";
|
|
76
|
+
readonly RU_RU: "ru-RU";
|
|
77
|
+
readonly ZH_CN: "zh-CN";
|
|
78
|
+
readonly ZH_TW: "zh-TW";
|
|
79
|
+
readonly ZH_HK: "zh-HK";
|
|
80
|
+
readonly JA_JP: "ja-JP";
|
|
81
|
+
readonly KO_KR: "ko-KR";
|
|
82
|
+
readonly AR_SA: "ar-SA";
|
|
83
|
+
readonly AR_AE: "ar-AE";
|
|
84
|
+
readonly HI_IN: "hi-IN";
|
|
85
|
+
readonly TA_IN: "ta-IN";
|
|
86
|
+
readonly NL_NL: "nl-NL";
|
|
87
|
+
readonly PL_PL: "pl-PL";
|
|
88
|
+
readonly TR_TR: "tr-TR";
|
|
89
|
+
readonly VI_VN: "vi-VN";
|
|
90
|
+
readonly TH_TH: "th-TH";
|
|
91
|
+
readonly ID_ID: "id-ID";
|
|
92
|
+
readonly HE_IL: "he-IL";
|
|
93
|
+
readonly UK_UA: "uk-UA";
|
|
94
|
+
};
|
|
95
|
+
declare const DEFAULT_I18N_CONFIG: {
|
|
96
|
+
readonly defaultLocale: "en-US";
|
|
97
|
+
readonly fallbackLocale: "en-US";
|
|
98
|
+
readonly enableCache: true;
|
|
99
|
+
readonly lazyLoad: false;
|
|
100
|
+
readonly logMissing: true;
|
|
101
|
+
readonly returnKeyOnMissing: true;
|
|
102
|
+
};
|
|
103
|
+
export { getLocale as C, createI18n as D, I18n as E, getI18n as O, getLanguage as S, t as T, parseAcceptLanguage as _, discoverLocales as a, Translator as b, loadTranslationFile as c, setCachedTranslations as d, extractLocaleFromRequest as f, normalizeLocale as g, getRegionFromLocale as h, clearTranslationCache as i, initializeI18n as k, loadTranslationsForLocale as l, getLanguageFromLocale as m, Locales as n, flattenDictionary as o, findBestMatch as p, index_d_exports as r, getCachedTranslations as s, DEFAULT_I18N_CONFIG as t, preloadAllTranslations as u, parseLocaleString as v, hasI18n as w, createTranslator as x, I18nCapableContext as y };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { i as Logger, n as PrismaTransactionClient, r as createDatabaseService, t as DatabaseService } from "./index-DtI6aBtB.js";
|
|
2
|
+
interface RedisStreamsEventTarget {
|
|
3
|
+
addEventListener(type: string, listener: (event: Event) => void): void;
|
|
4
|
+
removeEventListener(type: string, listener: (event: Event) => void): void;
|
|
5
|
+
dispatchEvent(event: Event): boolean;
|
|
6
|
+
close(): Promise<void>;
|
|
7
|
+
isHealthy(): boolean;
|
|
8
|
+
}
|
|
9
|
+
interface RedisStreamsEventTargetOptions {
|
|
10
|
+
redisUrl?: string;
|
|
11
|
+
password?: string;
|
|
12
|
+
subjectPrefix?: string;
|
|
13
|
+
maxLen?: number;
|
|
14
|
+
serializer?: {
|
|
15
|
+
stringify: (data: unknown) => string | Promise<string>;
|
|
16
|
+
parse: (msg: string) => unknown | Promise<unknown>;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
declare function createRedisStreamsEventTarget(options?: RedisStreamsEventTargetOptions): Promise<RedisStreamsEventTarget>;
|
|
20
|
+
declare namespace index_d_exports {
|
|
21
|
+
export { DatabaseService, Logger, PrismaTransactionClient, RedisStreamsEventTarget, RedisStreamsEventTargetOptions, createDatabaseService, createRedisStreamsEventTarget };
|
|
22
|
+
}
|
|
23
|
+
export { createRedisStreamsEventTarget as i, RedisStreamsEventTarget as n, RedisStreamsEventTargetOptions as r, index_d_exports as t };
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { m as ServiceLayer } from "./layer-BZBZZWeV.js";
|
|
2
|
+
interface SDKConfig {
|
|
3
|
+
workspacesApiUrl: string;
|
|
4
|
+
tenantApiUrl?: string;
|
|
5
|
+
serviceLayer?: ServiceLayer;
|
|
6
|
+
serviceName?: string;
|
|
7
|
+
timeout?: number;
|
|
8
|
+
retry?: RetryConfig;
|
|
9
|
+
logger?: LoggerConfig;
|
|
10
|
+
eventQueue?: EventQueueSDKConfig;
|
|
11
|
+
temporalModuleType?: 'workspace' | 'tenant';
|
|
12
|
+
temporalAddress?: string;
|
|
13
|
+
temporalNamespace?: string;
|
|
14
|
+
temporalTaskQueue?: string;
|
|
15
|
+
temporalAutoConnect?: boolean;
|
|
16
|
+
}
|
|
17
|
+
interface RetryConfig {
|
|
18
|
+
maxAttempts: number;
|
|
19
|
+
initialDelay: number;
|
|
20
|
+
maxDelay: number;
|
|
21
|
+
backoffMultiplier: number;
|
|
22
|
+
}
|
|
23
|
+
interface LoggerConfig {
|
|
24
|
+
level: 'debug' | 'info' | 'warn' | 'error';
|
|
25
|
+
console: boolean;
|
|
26
|
+
transport?: LoggerTransport;
|
|
27
|
+
}
|
|
28
|
+
interface LoggerTransport {
|
|
29
|
+
log(level: string, message: string, meta?: Record<string, unknown>): void;
|
|
30
|
+
}
|
|
31
|
+
type ActorType = 'user' | 'app' | 'service' | 'super_admin';
|
|
32
|
+
interface SDKContext {
|
|
33
|
+
actorId?: string;
|
|
34
|
+
actorType?: ActorType;
|
|
35
|
+
workspaceId?: string;
|
|
36
|
+
organizationId?: string;
|
|
37
|
+
tenantId?: string;
|
|
38
|
+
projectId?: string;
|
|
39
|
+
appId?: string;
|
|
40
|
+
token?: string;
|
|
41
|
+
productId?: string;
|
|
42
|
+
cfAccessClientId?: string;
|
|
43
|
+
cfAccessClientSecret?: string;
|
|
44
|
+
cfAuthorization?: string;
|
|
45
|
+
[key: string]: unknown;
|
|
46
|
+
}
|
|
47
|
+
declare class SDKError extends Error {
|
|
48
|
+
code: string;
|
|
49
|
+
details?: Record<string, unknown> | undefined;
|
|
50
|
+
constructor(message: string, code: string, details?: Record<string, unknown> | undefined);
|
|
51
|
+
}
|
|
52
|
+
declare class PermissionDeniedError extends SDKError {
|
|
53
|
+
constructor(message: string, details?: Record<string, unknown>);
|
|
54
|
+
}
|
|
55
|
+
declare class AuthenticationError extends SDKError {
|
|
56
|
+
constructor(message: string, details?: Record<string, unknown>);
|
|
57
|
+
}
|
|
58
|
+
declare class APIError extends SDKError {
|
|
59
|
+
constructor(message: string, details?: Record<string, unknown>);
|
|
60
|
+
}
|
|
61
|
+
declare class ValidationError extends SDKError {
|
|
62
|
+
constructor(message: string, details?: Record<string, unknown>);
|
|
63
|
+
}
|
|
64
|
+
declare class QuotaExceededError extends SDKError {
|
|
65
|
+
constructor(message: string, details?: Record<string, unknown>);
|
|
66
|
+
}
|
|
67
|
+
declare class NetworkError extends SDKError {
|
|
68
|
+
constructor(message: string, details?: Record<string, unknown>);
|
|
69
|
+
}
|
|
70
|
+
declare class TimeoutError extends SDKError {
|
|
71
|
+
constructor(message: string, details?: Record<string, unknown>);
|
|
72
|
+
}
|
|
73
|
+
interface EventQueueSDKConfig {
|
|
74
|
+
url?: string;
|
|
75
|
+
password?: string;
|
|
76
|
+
maxReconnectAttempts?: number;
|
|
77
|
+
reconnectTimeWait?: number;
|
|
78
|
+
name?: string;
|
|
79
|
+
autoConnect?: boolean;
|
|
80
|
+
}
|
|
81
|
+
interface EventQueueHealthStatus {
|
|
82
|
+
status: 'healthy' | 'unhealthy' | 'not_configured';
|
|
83
|
+
connected: boolean;
|
|
84
|
+
url?: string;
|
|
85
|
+
details?: Record<string, unknown>;
|
|
86
|
+
}
|
|
87
|
+
interface TemporalHealthStatus {
|
|
88
|
+
status: 'healthy' | 'unhealthy' | 'not_configured';
|
|
89
|
+
connected: boolean;
|
|
90
|
+
address?: string;
|
|
91
|
+
namespace?: string;
|
|
92
|
+
details?: Record<string, unknown>;
|
|
93
|
+
}
|
|
94
|
+
interface SDKHealthStatus {
|
|
95
|
+
eventQueue: EventQueueHealthStatus;
|
|
96
|
+
temporal: TemporalHealthStatus;
|
|
97
|
+
}
|
|
98
|
+
interface SDKShutdownOptions {
|
|
99
|
+
timeout?: number;
|
|
100
|
+
force?: boolean;
|
|
101
|
+
}
|
|
102
|
+
export { TemporalHealthStatus as _, EventQueueSDKConfig as a, NetworkError as c, RetryConfig as d, SDKConfig as f, SDKShutdownOptions as g, SDKHealthStatus as h, EventQueueHealthStatus as i, PermissionDeniedError as l, SDKError as m, ActorType as n, LoggerConfig as o, SDKContext as p, AuthenticationError as r, LoggerTransport as s, APIError as t, QuotaExceededError as u, TimeoutError as v, ValidationError as y };
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import { t as BurdenoffGraphQLClient } from "./graphql-CUDyhibV.js";
|
|
2
|
+
import { m as SDKError, p as SDKContext } from "./index-CTTwo9av.js";
|
|
3
|
+
import { o as GatewayClient } from "./index-YOShAwkq.js";
|
|
4
|
+
interface BillingUsageOperationInput {
|
|
5
|
+
quotaName: string;
|
|
6
|
+
value?: number;
|
|
7
|
+
description: string;
|
|
8
|
+
productId: string;
|
|
9
|
+
userId?: string;
|
|
10
|
+
hash?: string;
|
|
11
|
+
tags?: Record<string, unknown>;
|
|
12
|
+
}
|
|
13
|
+
interface OrgBillingUsageOperationInput extends BillingUsageOperationInput {
|
|
14
|
+
orgId: string;
|
|
15
|
+
}
|
|
16
|
+
interface WorkspaceBillingUsageOperationInput extends BillingUsageOperationInput {
|
|
17
|
+
workspaceId: string;
|
|
18
|
+
}
|
|
19
|
+
interface QuotaLimit {
|
|
20
|
+
limit: number;
|
|
21
|
+
noLimit: boolean;
|
|
22
|
+
}
|
|
23
|
+
interface BillingUsageClientConfig {
|
|
24
|
+
serviceName: string;
|
|
25
|
+
timeout?: number;
|
|
26
|
+
gatewayClient?: GatewayClient;
|
|
27
|
+
quotaLimitCacheTtlMs?: number;
|
|
28
|
+
}
|
|
29
|
+
declare class BillingUsageClient {
|
|
30
|
+
private readonly gatewayClient;
|
|
31
|
+
private readonly quotaLimitCacheTtlMs;
|
|
32
|
+
private readonly logPrefix;
|
|
33
|
+
private readonly quotaLimitCache;
|
|
34
|
+
constructor(config: BillingUsageClientConfig);
|
|
35
|
+
private queryWorkspaceLayer;
|
|
36
|
+
private queryGlobalLayer;
|
|
37
|
+
getOrgIdFromWorkspace(workspaceId: string): Promise<string | null>;
|
|
38
|
+
getDefaultBillingAccountId(orgId: string): Promise<string | null>;
|
|
39
|
+
ensureQuotaAvailableForOrg(input: OrgBillingUsageOperationInput): Promise<boolean>;
|
|
40
|
+
ensureQuotaAvailableForWorkspace(input: WorkspaceBillingUsageOperationInput): Promise<boolean>;
|
|
41
|
+
addUsageForOrg(input: OrgBillingUsageOperationInput): Promise<boolean>;
|
|
42
|
+
addUsageForWorkspace(input: WorkspaceBillingUsageOperationInput): Promise<boolean>;
|
|
43
|
+
freeUpUsageForOrg(input: OrgBillingUsageOperationInput): Promise<boolean>;
|
|
44
|
+
freeUpUsageForWorkspace(input: WorkspaceBillingUsageOperationInput): Promise<boolean>;
|
|
45
|
+
getQuotaLimitForWorkspace(workspaceId: string, quotaName: string, productId: string): Promise<QuotaLimit | null>;
|
|
46
|
+
private rememberQuotaLimit;
|
|
47
|
+
}
|
|
48
|
+
declare enum UsageMetricType {
|
|
49
|
+
API_CALLS = "api_calls",
|
|
50
|
+
STORAGE = "storage",
|
|
51
|
+
BANDWIDTH = "bandwidth",
|
|
52
|
+
USERS = "users",
|
|
53
|
+
PROJECTS = "projects",
|
|
54
|
+
WORKSPACES = "workspaces",
|
|
55
|
+
RECORDS = "records",
|
|
56
|
+
COMPUTE_TIME = "compute_time",
|
|
57
|
+
TRANSACTIONS = "transactions",
|
|
58
|
+
CUSTOM = "custom"
|
|
59
|
+
}
|
|
60
|
+
declare enum QuotaPeriod {
|
|
61
|
+
DAILY = "daily",
|
|
62
|
+
WEEKLY = "weekly",
|
|
63
|
+
MONTHLY = "monthly",
|
|
64
|
+
YEARLY = "yearly",
|
|
65
|
+
LIFETIME = "lifetime"
|
|
66
|
+
}
|
|
67
|
+
type UsageEntityType = 'user' | 'workspace' | 'organization';
|
|
68
|
+
interface TrackUsageOptions {
|
|
69
|
+
entityId: string;
|
|
70
|
+
entityType: UsageEntityType;
|
|
71
|
+
metricType: UsageMetricType;
|
|
72
|
+
amount: number;
|
|
73
|
+
resourceId?: string;
|
|
74
|
+
metadata?: Record<string, unknown>;
|
|
75
|
+
workspaceId?: string;
|
|
76
|
+
organizationId?: string;
|
|
77
|
+
}
|
|
78
|
+
interface CheckQuotaOptions {
|
|
79
|
+
entityId: string;
|
|
80
|
+
entityType: UsageEntityType;
|
|
81
|
+
metricType: UsageMetricType;
|
|
82
|
+
requestedAmount: number;
|
|
83
|
+
workspaceId?: string;
|
|
84
|
+
organizationId?: string;
|
|
85
|
+
}
|
|
86
|
+
interface QuotaCheckResult {
|
|
87
|
+
allowed: boolean;
|
|
88
|
+
currentUsage: number;
|
|
89
|
+
quotaLimit: number;
|
|
90
|
+
remainingQuota: number;
|
|
91
|
+
resetAt?: string;
|
|
92
|
+
period: QuotaPeriod;
|
|
93
|
+
reason?: string;
|
|
94
|
+
}
|
|
95
|
+
interface UsageRecord {
|
|
96
|
+
id: string;
|
|
97
|
+
entityId: string;
|
|
98
|
+
entityType: UsageEntityType;
|
|
99
|
+
metricType: UsageMetricType;
|
|
100
|
+
amount: number;
|
|
101
|
+
resourceId?: string;
|
|
102
|
+
metadata?: Record<string, unknown>;
|
|
103
|
+
workspaceId?: string;
|
|
104
|
+
organizationId?: string;
|
|
105
|
+
recordedAt: string;
|
|
106
|
+
}
|
|
107
|
+
interface UsageSummary {
|
|
108
|
+
entityId: string;
|
|
109
|
+
entityType: string;
|
|
110
|
+
metricType: UsageMetricType;
|
|
111
|
+
totalUsage: number;
|
|
112
|
+
period: QuotaPeriod;
|
|
113
|
+
periodStart: string;
|
|
114
|
+
periodEnd: string;
|
|
115
|
+
quotaLimit?: number;
|
|
116
|
+
utilizationPercentage?: number;
|
|
117
|
+
}
|
|
118
|
+
interface SetQuotaOptions {
|
|
119
|
+
entityId: string;
|
|
120
|
+
entityType: UsageEntityType;
|
|
121
|
+
metricType: UsageMetricType;
|
|
122
|
+
limit: number;
|
|
123
|
+
period: QuotaPeriod;
|
|
124
|
+
workspaceId?: string;
|
|
125
|
+
organizationId?: string;
|
|
126
|
+
}
|
|
127
|
+
interface Quota {
|
|
128
|
+
id: string;
|
|
129
|
+
entityId: string;
|
|
130
|
+
entityType: string;
|
|
131
|
+
metricType: UsageMetricType;
|
|
132
|
+
limit: number;
|
|
133
|
+
period: QuotaPeriod;
|
|
134
|
+
currentUsage: number;
|
|
135
|
+
resetAt: string;
|
|
136
|
+
createdAt: string;
|
|
137
|
+
updatedAt: string;
|
|
138
|
+
}
|
|
139
|
+
interface GetUsageOptions {
|
|
140
|
+
entityId: string;
|
|
141
|
+
entityType: UsageEntityType;
|
|
142
|
+
metricType?: UsageMetricType;
|
|
143
|
+
startDate?: string;
|
|
144
|
+
endDate?: string;
|
|
145
|
+
workspaceId?: string;
|
|
146
|
+
organizationId?: string;
|
|
147
|
+
limit?: number;
|
|
148
|
+
offset?: number;
|
|
149
|
+
}
|
|
150
|
+
declare class UsageOperationUnsupportedError extends SDKError {
|
|
151
|
+
constructor(operation: string, guidance: string);
|
|
152
|
+
}
|
|
153
|
+
declare const CHECK_WORKSPACE_QUOTA_QUERY = "\n query CheckWorkspaceQuota($workspaceId: ID!, $quotaName: String!, $amount: Float) {\n checkWorkspaceQuota(workspaceId: $workspaceId, quotaName: $quotaName, amount: $amount) {\n allowed\n assignmentId\n limitLeft\n noLimit\n }\n }\n";
|
|
154
|
+
declare const TRACK_USAGE_MUTATION = "\n mutation TrackUsage($input: TrackUsageInput!) {\n trackUsage(input: $input)\n }\n";
|
|
155
|
+
interface CheckWorkspaceQuotaOptions {
|
|
156
|
+
quotaName: string;
|
|
157
|
+
amount?: number;
|
|
158
|
+
workspaceId?: string;
|
|
159
|
+
userId?: string;
|
|
160
|
+
}
|
|
161
|
+
interface WorkspaceQuotaCheckResult {
|
|
162
|
+
allowed: boolean;
|
|
163
|
+
assignmentId: string | null;
|
|
164
|
+
limitLeft: number | null;
|
|
165
|
+
noLimit: boolean;
|
|
166
|
+
}
|
|
167
|
+
interface TrackWorkspaceUsageOptions {
|
|
168
|
+
quotaName: string;
|
|
169
|
+
productId?: string;
|
|
170
|
+
amount: number;
|
|
171
|
+
description: string;
|
|
172
|
+
workspaceId?: string;
|
|
173
|
+
userId?: string;
|
|
174
|
+
quotaAssignmentId?: string;
|
|
175
|
+
billingAccountId?: string;
|
|
176
|
+
hash?: string;
|
|
177
|
+
metadata?: Record<string, unknown>;
|
|
178
|
+
}
|
|
179
|
+
declare function buildTrackUsageInput(options: TrackWorkspaceUsageOptions, context?: SDKContext): Record<string, unknown>;
|
|
180
|
+
declare class UsageModule {
|
|
181
|
+
private client;
|
|
182
|
+
private context;
|
|
183
|
+
constructor(client: BurdenoffGraphQLClient, context: SDKContext);
|
|
184
|
+
private requestContext;
|
|
185
|
+
checkWorkspaceQuota(options: CheckWorkspaceQuotaOptions): Promise<WorkspaceQuotaCheckResult>;
|
|
186
|
+
requireWorkspaceQuota(options: CheckWorkspaceQuotaOptions): Promise<WorkspaceQuotaCheckResult>;
|
|
187
|
+
trackUsage(options: TrackWorkspaceUsageOptions): Promise<boolean>;
|
|
188
|
+
track(_options: TrackUsageOptions): Promise<UsageRecord>;
|
|
189
|
+
checkQuota(_options: CheckQuotaOptions): Promise<QuotaCheckResult>;
|
|
190
|
+
requireQuota(_options: CheckQuotaOptions): Promise<void>;
|
|
191
|
+
trackAndCheck(_options: TrackUsageOptions): Promise<{
|
|
192
|
+
usage: UsageRecord;
|
|
193
|
+
quotaCheck: QuotaCheckResult;
|
|
194
|
+
}>;
|
|
195
|
+
getUsage(_options: GetUsageOptions): Promise<{
|
|
196
|
+
records: UsageRecord[];
|
|
197
|
+
total: number;
|
|
198
|
+
}>;
|
|
199
|
+
getSummary(_entityId: string, _entityType: UsageEntityType, _metricType: UsageMetricType, _period: QuotaPeriod): Promise<UsageSummary>;
|
|
200
|
+
setQuota(_options: SetQuotaOptions): Promise<Quota>;
|
|
201
|
+
getQuota(_entityId: string, _entityType: UsageEntityType, _metricType: UsageMetricType): Promise<Quota | null>;
|
|
202
|
+
getQuotas(_entityId: string, _entityType: UsageEntityType): Promise<Quota[]>;
|
|
203
|
+
resetQuota(_entityId: string, _entityType: UsageEntityType, _metricType: UsageMetricType): Promise<boolean>;
|
|
204
|
+
deleteQuota(_entityId: string, _entityType: UsageEntityType, _metricType: UsageMetricType): Promise<boolean>;
|
|
205
|
+
trackBulk(_records: TrackUsageOptions[]): Promise<UsageRecord[]>;
|
|
206
|
+
}
|
|
207
|
+
export { OrgBillingUsageOperationInput as C, BillingUsageOperationInput as S, WorkspaceBillingUsageOperationInput as T, UsageSummary as _, Quota as a, BillingUsageClient as b, SetQuotaOptions as c, TrackWorkspaceUsageOptions as d, UsageEntityType as f, UsageRecord as g, UsageOperationUnsupportedError as h, GetUsageOptions as i, TRACK_USAGE_MUTATION as l, UsageModule as m, CheckQuotaOptions as n, QuotaCheckResult as o, UsageMetricType as p, CheckWorkspaceQuotaOptions as r, QuotaPeriod as s, CHECK_WORKSPACE_QUOTA_QUERY as t, TrackUsageOptions as u, WorkspaceQuotaCheckResult as v, QuotaLimit as w, BillingUsageClientConfig as x, buildTrackUsageInput as y };
|