@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
package/dist/index-DE2w7E0d.d.ts
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { S as ServiceLayer } from './layer-Cv9vSwBx.js';
|
|
2
|
-
|
|
3
|
-
interface SDKConfig {
|
|
4
|
-
workspacesApiUrl: string;
|
|
5
|
-
tenantApiUrl?: string;
|
|
6
|
-
serviceLayer?: ServiceLayer;
|
|
7
|
-
serviceName?: string;
|
|
8
|
-
timeout?: number;
|
|
9
|
-
retry?: RetryConfig;
|
|
10
|
-
logger?: LoggerConfig;
|
|
11
|
-
eventQueue?: EventQueueSDKConfig;
|
|
12
|
-
temporalModuleType?: 'workspace' | 'tenant';
|
|
13
|
-
temporalAddress?: string;
|
|
14
|
-
temporalNamespace?: string;
|
|
15
|
-
temporalTaskQueue?: string;
|
|
16
|
-
temporalAutoConnect?: boolean;
|
|
17
|
-
}
|
|
18
|
-
interface RetryConfig {
|
|
19
|
-
maxAttempts: number;
|
|
20
|
-
initialDelay: number;
|
|
21
|
-
maxDelay: number;
|
|
22
|
-
backoffMultiplier: number;
|
|
23
|
-
}
|
|
24
|
-
interface LoggerConfig {
|
|
25
|
-
level: 'debug' | 'info' | 'warn' | 'error';
|
|
26
|
-
console: boolean;
|
|
27
|
-
transport?: LoggerTransport;
|
|
28
|
-
}
|
|
29
|
-
interface LoggerTransport {
|
|
30
|
-
log(level: string, message: string, meta?: Record<string, unknown>): void;
|
|
31
|
-
}
|
|
32
|
-
type ActorType = 'user' | 'app' | 'service' | 'super_admin';
|
|
33
|
-
interface SDKContext {
|
|
34
|
-
actorId?: string;
|
|
35
|
-
actorType?: ActorType;
|
|
36
|
-
workspaceId?: string;
|
|
37
|
-
organizationId?: string;
|
|
38
|
-
tenantId?: string;
|
|
39
|
-
projectId?: string;
|
|
40
|
-
appId?: string;
|
|
41
|
-
token?: string;
|
|
42
|
-
productId?: string;
|
|
43
|
-
cfAccessClientId?: string;
|
|
44
|
-
cfAccessClientSecret?: string;
|
|
45
|
-
cfAuthorization?: string;
|
|
46
|
-
[key: string]: unknown;
|
|
47
|
-
}
|
|
48
|
-
declare class SDKError extends Error {
|
|
49
|
-
code: string;
|
|
50
|
-
details?: Record<string, unknown> | undefined;
|
|
51
|
-
constructor(message: string, code: string, details?: Record<string, unknown> | undefined);
|
|
52
|
-
}
|
|
53
|
-
interface EventQueueSDKConfig {
|
|
54
|
-
url?: string;
|
|
55
|
-
password?: string;
|
|
56
|
-
maxReconnectAttempts?: number;
|
|
57
|
-
reconnectTimeWait?: number;
|
|
58
|
-
name?: string;
|
|
59
|
-
autoConnect?: boolean;
|
|
60
|
-
}
|
|
61
|
-
interface EventQueueHealthStatus {
|
|
62
|
-
status: 'healthy' | 'unhealthy' | 'not_configured';
|
|
63
|
-
connected: boolean;
|
|
64
|
-
url?: string;
|
|
65
|
-
details?: Record<string, unknown>;
|
|
66
|
-
}
|
|
67
|
-
interface TemporalHealthStatus {
|
|
68
|
-
status: 'healthy' | 'unhealthy' | 'not_configured';
|
|
69
|
-
connected: boolean;
|
|
70
|
-
address?: string;
|
|
71
|
-
namespace?: string;
|
|
72
|
-
details?: Record<string, unknown>;
|
|
73
|
-
}
|
|
74
|
-
interface SDKHealthStatus {
|
|
75
|
-
eventQueue: EventQueueHealthStatus;
|
|
76
|
-
temporal: TemporalHealthStatus;
|
|
77
|
-
}
|
|
78
|
-
interface SDKShutdownOptions {
|
|
79
|
-
timeout?: number;
|
|
80
|
-
force?: boolean;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
export { type EventQueueHealthStatus as E, type LoggerConfig as L, type SDKConfig as S, type TemporalHealthStatus as T, type SDKContext as a, SDKError as b, type SDKHealthStatus as c, type SDKShutdownOptions as d, type EventQueueSDKConfig as e, type LoggerTransport as f };
|
package/dist/index-DSOpj8DI.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { AnyElysia } from 'elysia';
|
|
2
|
-
import { S as SecurityMiddlewareConfig, C as CSPDirectives, M as MetricsMiddlewareConfig, a as MiddlewareConfig } from './types-Bo2wkjSP.js';
|
|
3
|
-
|
|
4
|
-
declare function createSecurityPlugin(config?: SecurityMiddlewareConfig): AnyElysia;
|
|
5
|
-
declare function cleanupExpiredTokens(): void;
|
|
6
|
-
|
|
7
|
-
declare const index_CSPDirectives: typeof CSPDirectives;
|
|
8
|
-
declare const index_MetricsMiddlewareConfig: typeof MetricsMiddlewareConfig;
|
|
9
|
-
declare const index_MiddlewareConfig: typeof MiddlewareConfig;
|
|
10
|
-
declare const index_SecurityMiddlewareConfig: typeof SecurityMiddlewareConfig;
|
|
11
|
-
declare const index_cleanupExpiredTokens: typeof cleanupExpiredTokens;
|
|
12
|
-
declare const index_createSecurityPlugin: typeof createSecurityPlugin;
|
|
13
|
-
declare namespace index {
|
|
14
|
-
export { index_CSPDirectives as CSPDirectives, index_MetricsMiddlewareConfig as MetricsMiddlewareConfig, index_MiddlewareConfig as MiddlewareConfig, index_SecurityMiddlewareConfig as SecurityMiddlewareConfig, index_cleanupExpiredTokens as cleanupExpiredTokens, index_createSecurityPlugin as createSecurityPlugin };
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export { createSecurityPlugin as a, cleanupExpiredTokens as c, index as i };
|
package/dist/index-DW9q22GH.d.ts
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
type BatchFunction<K, V> = (keys: readonly K[]) => Promise<(V | Error | null)[]>;
|
|
2
|
-
type SimpleBatchFunction<K, V> = (keys: readonly K[]) => Promise<V[]>;
|
|
3
|
-
interface EntityLoaderOptions<T, K extends string | number = string> {
|
|
4
|
-
batchFn: SimpleBatchFunction<K, T>;
|
|
5
|
-
getKey: (entity: T) => K;
|
|
6
|
-
cacheKeyFn?: (key: K) => string;
|
|
7
|
-
}
|
|
8
|
-
interface RelationLoaderOptions<T, K extends string | number = string> {
|
|
9
|
-
batchFn: SimpleBatchFunction<K, T>;
|
|
10
|
-
getKey: (entity: T) => K | null | undefined;
|
|
11
|
-
cacheKeyFn?: (key: K) => string;
|
|
12
|
-
}
|
|
13
|
-
interface CompositeKeyLoaderOptions<T> {
|
|
14
|
-
batchFn: SimpleBatchFunction<string, T>;
|
|
15
|
-
getKey: (entity: T) => string;
|
|
16
|
-
cacheKeyFn?: (key: string) => string;
|
|
17
|
-
}
|
|
18
|
-
interface DataLoaderConfig<K, V> {
|
|
19
|
-
batchLoadFn: BatchFunction<K, V>;
|
|
20
|
-
maxBatchSize?: number;
|
|
21
|
-
cache?: boolean;
|
|
22
|
-
cacheKeyFn?: (key: K) => string;
|
|
23
|
-
}
|
|
24
|
-
declare class SimpleDataLoader<K, V> {
|
|
25
|
-
private config;
|
|
26
|
-
private cache;
|
|
27
|
-
private pendingBatch;
|
|
28
|
-
private pendingPromises;
|
|
29
|
-
private batchScheduled;
|
|
30
|
-
constructor(config: DataLoaderConfig<K, V>);
|
|
31
|
-
load(key: K): Promise<V | null>;
|
|
32
|
-
loadMany(keys: K[]): Promise<(V | null)[]>;
|
|
33
|
-
clear(key: K): this;
|
|
34
|
-
clearAll(): this;
|
|
35
|
-
prime(key: K, value: V | Error | null): this;
|
|
36
|
-
private getCacheKey;
|
|
37
|
-
private scheduleBatch;
|
|
38
|
-
private deduplicateKeys;
|
|
39
|
-
private resolvePromisesForKey;
|
|
40
|
-
private processResults;
|
|
41
|
-
private rejectAllPromises;
|
|
42
|
-
private executeBatch;
|
|
43
|
-
}
|
|
44
|
-
declare function createEntityLoader<T, K extends string | number = string>(options: EntityLoaderOptions<T, K>): SimpleDataLoader<K, T>;
|
|
45
|
-
declare function createRelationLoader<T, K extends string | number = string>(options: RelationLoaderOptions<T, K>): SimpleDataLoader<K, T[]>;
|
|
46
|
-
declare function createCompositeKeyLoader<T>(options: CompositeKeyLoaderOptions<T>): SimpleDataLoader<string, T[]>;
|
|
47
|
-
declare class DataLoaderFactory {
|
|
48
|
-
private loaders;
|
|
49
|
-
registerEntityLoader<T, K extends string | number = string>(name: string, options: EntityLoaderOptions<T, K>): SimpleDataLoader<K, T>;
|
|
50
|
-
registerRelationLoader<T, K extends string | number = string>(name: string, options: RelationLoaderOptions<T, K>): SimpleDataLoader<K, T[]>;
|
|
51
|
-
registerCompositeKeyLoader<T>(name: string, options: CompositeKeyLoaderOptions<T>): SimpleDataLoader<string, T[]>;
|
|
52
|
-
get<K, V>(name: string): SimpleDataLoader<K, V> | undefined;
|
|
53
|
-
clearAll(): void;
|
|
54
|
-
}
|
|
55
|
-
declare function createDataLoaderFactory(): DataLoaderFactory;
|
|
56
|
-
|
|
57
|
-
type index_BatchFunction<K, V> = BatchFunction<K, V>;
|
|
58
|
-
type index_CompositeKeyLoaderOptions<T> = CompositeKeyLoaderOptions<T>;
|
|
59
|
-
type index_DataLoaderConfig<K, V> = DataLoaderConfig<K, V>;
|
|
60
|
-
type index_DataLoaderFactory = DataLoaderFactory;
|
|
61
|
-
declare const index_DataLoaderFactory: typeof DataLoaderFactory;
|
|
62
|
-
type index_EntityLoaderOptions<T, K extends string | number = string> = EntityLoaderOptions<T, K>;
|
|
63
|
-
type index_RelationLoaderOptions<T, K extends string | number = string> = RelationLoaderOptions<T, K>;
|
|
64
|
-
type index_SimpleBatchFunction<K, V> = SimpleBatchFunction<K, V>;
|
|
65
|
-
type index_SimpleDataLoader<K, V> = SimpleDataLoader<K, V>;
|
|
66
|
-
declare const index_SimpleDataLoader: typeof SimpleDataLoader;
|
|
67
|
-
declare const index_createCompositeKeyLoader: typeof createCompositeKeyLoader;
|
|
68
|
-
declare const index_createDataLoaderFactory: typeof createDataLoaderFactory;
|
|
69
|
-
declare const index_createEntityLoader: typeof createEntityLoader;
|
|
70
|
-
declare const index_createRelationLoader: typeof createRelationLoader;
|
|
71
|
-
declare namespace index {
|
|
72
|
-
export { type index_BatchFunction as BatchFunction, type index_CompositeKeyLoaderOptions as CompositeKeyLoaderOptions, type index_DataLoaderConfig as DataLoaderConfig, index_DataLoaderFactory as DataLoaderFactory, type index_EntityLoaderOptions as EntityLoaderOptions, type index_RelationLoaderOptions as RelationLoaderOptions, type index_SimpleBatchFunction as SimpleBatchFunction, index_SimpleDataLoader as SimpleDataLoader, index_createCompositeKeyLoader as createCompositeKeyLoader, index_createDataLoaderFactory as createDataLoaderFactory, index_createEntityLoader as createEntityLoader, index_createRelationLoader as createRelationLoader };
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export { type BatchFunction as B, type CompositeKeyLoaderOptions as C, type DataLoaderConfig as D, type EntityLoaderOptions as E, type RelationLoaderOptions as R, type SimpleBatchFunction as S, DataLoaderFactory as a, SimpleDataLoader as b, createCompositeKeyLoader as c, createDataLoaderFactory as d, createEntityLoader as e, createRelationLoader as f, index as i };
|
package/dist/index-DnjJ9CwI.d.ts
DELETED
|
@@ -1,347 +0,0 @@
|
|
|
1
|
-
import { B as BurdenoffGraphQLClient } from './graphql-CMHMQjvd.js';
|
|
2
|
-
import { a as SDKContext, b as SDKError } from './index-DE2w7E0d.js';
|
|
3
|
-
import { UsageMetricType } from './usage/index.js';
|
|
4
|
-
import { N as NotificationType } from './index-DwMJZ8PP.js';
|
|
5
|
-
import { A as AssistantSessionAttribution } from './assistant-session-CJZhF4D6.js';
|
|
6
|
-
import './explicit-activity-scope-CCoxVwAr.js';
|
|
7
|
-
|
|
8
|
-
declare enum ActivityType {
|
|
9
|
-
CREATE = "create",
|
|
10
|
-
READ = "read",
|
|
11
|
-
UPDATE = "update",
|
|
12
|
-
DELETE = "delete",
|
|
13
|
-
LOGIN = "login",
|
|
14
|
-
LOGOUT = "logout",
|
|
15
|
-
EXPORT = "export",
|
|
16
|
-
IMPORT = "import",
|
|
17
|
-
SHARE = "share",
|
|
18
|
-
DOWNLOAD = "download",
|
|
19
|
-
UPLOAD = "upload",
|
|
20
|
-
EXECUTE = "execute",
|
|
21
|
-
APPROVE = "approve",
|
|
22
|
-
REJECT = "reject",
|
|
23
|
-
CUSTOM = "custom"
|
|
24
|
-
}
|
|
25
|
-
declare enum ActivityStatus {
|
|
26
|
-
SUCCESS = "success",
|
|
27
|
-
FAILURE = "failure",
|
|
28
|
-
PENDING = "pending",
|
|
29
|
-
WARNING = "warning"
|
|
30
|
-
}
|
|
31
|
-
declare enum ActivitySeverity {
|
|
32
|
-
LOW = "low",
|
|
33
|
-
MEDIUM = "medium",
|
|
34
|
-
HIGH = "high",
|
|
35
|
-
CRITICAL = "critical"
|
|
36
|
-
}
|
|
37
|
-
type ActivityActorType = 'user' | 'app' | 'service' | 'super_admin';
|
|
38
|
-
interface LogActivityOptions {
|
|
39
|
-
userId: string;
|
|
40
|
-
activityType: ActivityType;
|
|
41
|
-
resourceType: string;
|
|
42
|
-
resourceId?: string;
|
|
43
|
-
action: string;
|
|
44
|
-
status: ActivityStatus;
|
|
45
|
-
workspaceId?: string;
|
|
46
|
-
organizationId?: string;
|
|
47
|
-
projectId?: string;
|
|
48
|
-
productId?: string;
|
|
49
|
-
description?: string;
|
|
50
|
-
targetUserId?: string;
|
|
51
|
-
teamId?: string;
|
|
52
|
-
actorType?: ActivityActorType;
|
|
53
|
-
onBehalfOf?: string;
|
|
54
|
-
dedupeKey?: string;
|
|
55
|
-
ipAddress?: string;
|
|
56
|
-
userAgent?: string;
|
|
57
|
-
metadata?: Record<string, unknown>;
|
|
58
|
-
severity?: ActivitySeverity;
|
|
59
|
-
errorMessage?: string;
|
|
60
|
-
duration?: number;
|
|
61
|
-
}
|
|
62
|
-
interface Activity {
|
|
63
|
-
id: string;
|
|
64
|
-
userId: string;
|
|
65
|
-
activityType: ActivityType;
|
|
66
|
-
resourceType: string;
|
|
67
|
-
resourceId?: string;
|
|
68
|
-
action: string;
|
|
69
|
-
status: ActivityStatus;
|
|
70
|
-
workspaceId?: string;
|
|
71
|
-
organizationId?: string;
|
|
72
|
-
projectId?: string;
|
|
73
|
-
productId?: string;
|
|
74
|
-
description?: string;
|
|
75
|
-
targetUserId?: string;
|
|
76
|
-
actorType?: string;
|
|
77
|
-
onBehalfOf?: string;
|
|
78
|
-
ipAddress?: string;
|
|
79
|
-
userAgent?: string;
|
|
80
|
-
metadata?: Record<string, unknown>;
|
|
81
|
-
severity: ActivitySeverity;
|
|
82
|
-
errorMessage?: string;
|
|
83
|
-
duration?: number;
|
|
84
|
-
createdAt: string;
|
|
85
|
-
}
|
|
86
|
-
interface GetActivitiesOptions {
|
|
87
|
-
workspaceId?: string;
|
|
88
|
-
userId?: string;
|
|
89
|
-
action?: string;
|
|
90
|
-
resourceType?: string;
|
|
91
|
-
resourceId?: string;
|
|
92
|
-
targetUserId?: string;
|
|
93
|
-
startDate?: string;
|
|
94
|
-
endDate?: string;
|
|
95
|
-
limit?: number;
|
|
96
|
-
offset?: number;
|
|
97
|
-
organizationId?: string;
|
|
98
|
-
projectId?: string;
|
|
99
|
-
activityType?: ActivityType;
|
|
100
|
-
status?: ActivityStatus;
|
|
101
|
-
severity?: ActivitySeverity;
|
|
102
|
-
search?: string;
|
|
103
|
-
sortBy?: 'createdAt' | 'duration' | 'severity';
|
|
104
|
-
sortOrder?: 'asc' | 'desc';
|
|
105
|
-
}
|
|
106
|
-
interface ActivityStats {
|
|
107
|
-
totalActivities: number;
|
|
108
|
-
successCount: number;
|
|
109
|
-
failureCount: number;
|
|
110
|
-
pendingCount: number;
|
|
111
|
-
warningCount: number;
|
|
112
|
-
averageDuration?: number;
|
|
113
|
-
activitiesByType: Record<string, number>;
|
|
114
|
-
activitiesBySeverity: Record<string, number>;
|
|
115
|
-
topUsers: Array<{
|
|
116
|
-
userId: string;
|
|
117
|
-
count: number;
|
|
118
|
-
}>;
|
|
119
|
-
topResources: Array<{
|
|
120
|
-
resourceType: string;
|
|
121
|
-
count: number;
|
|
122
|
-
}>;
|
|
123
|
-
}
|
|
124
|
-
declare class ActivityOperationUnsupportedError extends SDKError {
|
|
125
|
-
constructor(operation: string, guidance: string);
|
|
126
|
-
}
|
|
127
|
-
declare class ActivityModule {
|
|
128
|
-
private client;
|
|
129
|
-
private context;
|
|
130
|
-
constructor(client: BurdenoffGraphQLClient, context: SDKContext);
|
|
131
|
-
log(options: LogActivityOptions): Promise<Activity>;
|
|
132
|
-
logSuccess(userId: string, action: string, resourceType: string, resourceId?: string, metadata?: Record<string, unknown>): Promise<Activity>;
|
|
133
|
-
logFailure(userId: string, action: string, resourceType: string, errorMessage: string, resourceId?: string, metadata?: Record<string, unknown>): Promise<Activity>;
|
|
134
|
-
getActivities(options: GetActivitiesOptions): Promise<{
|
|
135
|
-
activities: Activity[];
|
|
136
|
-
total: number;
|
|
137
|
-
}>;
|
|
138
|
-
getActivity(_activityId: string): Promise<Activity>;
|
|
139
|
-
getStats(_options: Omit<GetActivitiesOptions, 'limit' | 'offset'>): Promise<ActivityStats>;
|
|
140
|
-
cleanup(_olderThanDays: number, _workspaceId?: string): Promise<number>;
|
|
141
|
-
exportToCSV(_options: GetActivitiesOptions): Promise<string>;
|
|
142
|
-
private inferActivityType;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
interface TrackingEvent {
|
|
146
|
-
eventType: string;
|
|
147
|
-
entityType: string;
|
|
148
|
-
entityId: string;
|
|
149
|
-
userId?: string;
|
|
150
|
-
workspaceId?: string;
|
|
151
|
-
metadata?: Record<string, unknown>;
|
|
152
|
-
timestamp?: Date;
|
|
153
|
-
}
|
|
154
|
-
interface RbacCheckOptions {
|
|
155
|
-
action?: string;
|
|
156
|
-
resourceType?: string;
|
|
157
|
-
resourceId?: string;
|
|
158
|
-
workspaceId?: string;
|
|
159
|
-
skipRbacCheck?: boolean;
|
|
160
|
-
options?: {
|
|
161
|
-
allowOwnerAccess?: boolean;
|
|
162
|
-
allowWorkspaceAdmin?: boolean;
|
|
163
|
-
scope?: string;
|
|
164
|
-
};
|
|
165
|
-
}
|
|
166
|
-
interface UsageTrackingOptions {
|
|
167
|
-
billingAccountId?: string;
|
|
168
|
-
addUsage?: boolean;
|
|
169
|
-
description?: string;
|
|
170
|
-
tags?: Record<string, unknown>;
|
|
171
|
-
quotaName?: string;
|
|
172
|
-
value?: number;
|
|
173
|
-
}
|
|
174
|
-
interface ActivityTrackingOptions {
|
|
175
|
-
activityType?: string;
|
|
176
|
-
description?: string;
|
|
177
|
-
metadata?: Record<string, unknown>;
|
|
178
|
-
workspaceId?: string;
|
|
179
|
-
teamId?: string;
|
|
180
|
-
groupId?: string;
|
|
181
|
-
projectId?: string;
|
|
182
|
-
targetUserId?: string;
|
|
183
|
-
resourceType?: string;
|
|
184
|
-
resourceId?: string;
|
|
185
|
-
enabled?: boolean;
|
|
186
|
-
dedupeKey?: string;
|
|
187
|
-
}
|
|
188
|
-
type TrackedActorType = 'user' | 'app' | 'service' | 'super_admin';
|
|
189
|
-
declare function isTrackedActorType(value: unknown): value is TrackedActorType;
|
|
190
|
-
interface UnifiedTrackingOptions {
|
|
191
|
-
operationName?: string;
|
|
192
|
-
userId?: string;
|
|
193
|
-
actorType?: TrackedActorType;
|
|
194
|
-
onBehalfOf?: string;
|
|
195
|
-
assistantSession?: AssistantSessionAttribution;
|
|
196
|
-
context?: unknown;
|
|
197
|
-
rbacCheck?: RbacCheckOptions;
|
|
198
|
-
activityOptions?: ActivityTrackingOptions;
|
|
199
|
-
usageOptions?: UsageTrackingOptions & {
|
|
200
|
-
enabled?: boolean;
|
|
201
|
-
};
|
|
202
|
-
success?: boolean;
|
|
203
|
-
errorMessage?: string;
|
|
204
|
-
productId?: string;
|
|
205
|
-
action?: string;
|
|
206
|
-
resourceType?: string;
|
|
207
|
-
resourceId?: string;
|
|
208
|
-
workspaceId?: string;
|
|
209
|
-
tenantId?: string;
|
|
210
|
-
}
|
|
211
|
-
declare function resolveAssistantSession(options: UnifiedTrackingOptions): AssistantSessionAttribution | undefined;
|
|
212
|
-
declare class UnifiedTrackerStub {
|
|
213
|
-
private static instance;
|
|
214
|
-
static getInstance(): UnifiedTrackerStub;
|
|
215
|
-
track(event: TrackingEvent): Promise<void>;
|
|
216
|
-
trackBatch(events: TrackingEvent[]): Promise<void>;
|
|
217
|
-
}
|
|
218
|
-
declare const trackerStub: UnifiedTrackerStub;
|
|
219
|
-
declare function trackOperation(options: UnifiedTrackingOptions): Promise<boolean>;
|
|
220
|
-
type ProductTracker = {
|
|
221
|
-
track: (operationName: string, additionalOptions?: Partial<UnifiedTrackingOptions>) => Promise<boolean>;
|
|
222
|
-
freeUp: (operationName: string, additionalOptions?: Partial<UnifiedTrackingOptions>) => Promise<boolean>;
|
|
223
|
-
trackActivityOnly: (operationName: string, additionalOptions?: Partial<UnifiedTrackingOptions>) => Promise<boolean>;
|
|
224
|
-
trackUsageOnly: (operationName: string, additionalOptions?: Partial<UnifiedTrackingOptions>) => Promise<boolean>;
|
|
225
|
-
trackCustom: (operationName: string, additionalOptions: Partial<UnifiedTrackingOptions>) => Promise<boolean>;
|
|
226
|
-
productId: string;
|
|
227
|
-
userId: string;
|
|
228
|
-
billingAccountId: string | undefined;
|
|
229
|
-
defaultContext: Partial<UnifiedTrackingOptions> | undefined;
|
|
230
|
-
};
|
|
231
|
-
declare function createProductTracker(productId: string, userId: string, billingAccountId?: string, defaultContext?: Partial<UnifiedTrackingOptions>): ProductTracker;
|
|
232
|
-
declare const UNIFIED_TRACKER_CONSTANTS: {
|
|
233
|
-
readonly DEFAULT_PRODUCT_ID: "module";
|
|
234
|
-
readonly OPERATIONS: {};
|
|
235
|
-
readonly PRODUCTS: {};
|
|
236
|
-
};
|
|
237
|
-
|
|
238
|
-
declare const AGENT_ACTIVITY_ACTIONS: Readonly<{
|
|
239
|
-
readonly RUN_COMPLETED: "agent.run.completed";
|
|
240
|
-
readonly RUN_FAILED: "agent.run.failed";
|
|
241
|
-
readonly TOOL_CALLED: "agent.tool.called";
|
|
242
|
-
readonly DELEGATION_SENT: "agent.delegation.sent";
|
|
243
|
-
readonly POLICY_BLOCKED: "agent.policy.blocked";
|
|
244
|
-
}>;
|
|
245
|
-
type AgentActivityAction = (typeof AGENT_ACTIVITY_ACTIONS)[keyof typeof AGENT_ACTIVITY_ACTIONS];
|
|
246
|
-
declare const AGENT_ACTIVITY_RESOURCE_TYPE = "agent";
|
|
247
|
-
interface AgentActivityOptions {
|
|
248
|
-
action: AgentActivityAction;
|
|
249
|
-
agentId: string;
|
|
250
|
-
workspaceId: string;
|
|
251
|
-
onBehalfOf?: string;
|
|
252
|
-
productId?: string;
|
|
253
|
-
success?: boolean;
|
|
254
|
-
errorMessage?: string;
|
|
255
|
-
description?: string;
|
|
256
|
-
resourceType?: string;
|
|
257
|
-
resourceId?: string;
|
|
258
|
-
metadata?: Record<string, unknown>;
|
|
259
|
-
dedupeKey?: string;
|
|
260
|
-
}
|
|
261
|
-
declare function trackAgentActivity(options: AgentActivityOptions): Promise<boolean>;
|
|
262
|
-
|
|
263
|
-
interface TrackOptions {
|
|
264
|
-
userId: string;
|
|
265
|
-
action: string;
|
|
266
|
-
resourceType: string;
|
|
267
|
-
resourceId?: string;
|
|
268
|
-
workspaceId?: string;
|
|
269
|
-
organizationId?: string;
|
|
270
|
-
projectId?: string;
|
|
271
|
-
rbac?: {
|
|
272
|
-
enabled?: boolean;
|
|
273
|
-
permissionAction?: string;
|
|
274
|
-
};
|
|
275
|
-
activity?: {
|
|
276
|
-
enabled?: boolean;
|
|
277
|
-
activityType?: ActivityType;
|
|
278
|
-
metadata?: Record<string, unknown>;
|
|
279
|
-
ipAddress?: string;
|
|
280
|
-
userAgent?: string;
|
|
281
|
-
severity?: ActivitySeverity;
|
|
282
|
-
};
|
|
283
|
-
usage?: {
|
|
284
|
-
enabled?: boolean;
|
|
285
|
-
quotaName?: string;
|
|
286
|
-
productId?: string;
|
|
287
|
-
description?: string;
|
|
288
|
-
amount?: number;
|
|
289
|
-
checkQuota?: boolean;
|
|
290
|
-
metricType?: UsageMetricType;
|
|
291
|
-
entityType?: 'user' | 'workspace' | 'organization';
|
|
292
|
-
};
|
|
293
|
-
notification?: {
|
|
294
|
-
onSuccess?: {
|
|
295
|
-
title: string;
|
|
296
|
-
message: string;
|
|
297
|
-
type?: NotificationType;
|
|
298
|
-
additionalUserIds?: string[];
|
|
299
|
-
};
|
|
300
|
-
onFailure?: {
|
|
301
|
-
title: string;
|
|
302
|
-
message: string;
|
|
303
|
-
type?: NotificationType;
|
|
304
|
-
additionalUserIds?: string[];
|
|
305
|
-
};
|
|
306
|
-
};
|
|
307
|
-
}
|
|
308
|
-
interface TrackResult {
|
|
309
|
-
success: boolean;
|
|
310
|
-
permissionGranted: boolean;
|
|
311
|
-
quotaAvailable?: boolean;
|
|
312
|
-
quotaRemaining?: number;
|
|
313
|
-
activityId?: string;
|
|
314
|
-
usageTracked?: boolean;
|
|
315
|
-
usageRecordId?: string;
|
|
316
|
-
notificationIds?: string[];
|
|
317
|
-
error?: {
|
|
318
|
-
type: 'permission' | 'quota' | 'validation' | 'unknown';
|
|
319
|
-
message: string;
|
|
320
|
-
details?: Record<string, unknown>;
|
|
321
|
-
};
|
|
322
|
-
duration: number;
|
|
323
|
-
}
|
|
324
|
-
declare class TrackerModule {
|
|
325
|
-
private context;
|
|
326
|
-
private rbac;
|
|
327
|
-
private activity;
|
|
328
|
-
private usage;
|
|
329
|
-
private notifications;
|
|
330
|
-
constructor(client: BurdenoffGraphQLClient, context?: SDKContext);
|
|
331
|
-
track(options: TrackOptions): Promise<TrackResult>;
|
|
332
|
-
trackOrThrow(options: TrackOptions): Promise<TrackResult>;
|
|
333
|
-
trackSimple(userId: string, action: string, resourceType: string, resourceId?: string, _metricType?: UsageMetricType): Promise<boolean>;
|
|
334
|
-
private validateOptions;
|
|
335
|
-
private checkPermission;
|
|
336
|
-
private resolveUsage;
|
|
337
|
-
private checkQuota;
|
|
338
|
-
private trackUsage;
|
|
339
|
-
private logSuccessActivity;
|
|
340
|
-
private logFailedActivity;
|
|
341
|
-
private sendSuccessNotification;
|
|
342
|
-
private sendFailureNotification;
|
|
343
|
-
private inferActivityType;
|
|
344
|
-
trackBatch(operations: TrackOptions[]): Promise<TrackResult[]>;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
export { ActivityModule as A, type GetActivitiesOptions as G, type LogActivityOptions as L, type ProductTracker as P, type RbacCheckOptions as R, TrackerModule as T, UNIFIED_TRACKER_CONSTANTS as U, type Activity as a, type ActivityActorType as b, ActivityOperationUnsupportedError as c, AGENT_ACTIVITY_ACTIONS as d, AGENT_ACTIVITY_RESOURCE_TYPE as e, type ActivityTrackingOptions as f, type AgentActivityAction as g, type AgentActivityOptions as h, type TrackOptions as i, type TrackResult as j, type TrackedActorType as k, type TrackingEvent as l, UnifiedTrackerStub as m, type UnifiedTrackingOptions as n, type UsageTrackingOptions as o, createProductTracker as p, isTrackedActorType as q, resolveAssistantSession as r, trackOperation as s, trackAgentActivity as t, trackerStub as u };
|