@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-CbgWNcus.d.ts
DELETED
|
@@ -1,258 +0,0 @@
|
|
|
1
|
-
import { a as GraphQLRequestOptions, b as GraphQLResponse, h as GraphQLError } from './types-DgJ4lDYA.js';
|
|
2
|
-
|
|
3
|
-
declare const FILE_ACTOR_TYPES: readonly ["user", "app", "service", "super_admin"];
|
|
4
|
-
type FileActorType = (typeof FILE_ACTOR_TYPES)[number];
|
|
5
|
-
interface FileActor {
|
|
6
|
-
actorId: string;
|
|
7
|
-
workspaceId: string;
|
|
8
|
-
actorType?: FileActorType;
|
|
9
|
-
}
|
|
10
|
-
declare const FILE_VISIBILITIES: readonly ["PRIVATE", "PUBLIC", "TEAM", "WORKSPACE"];
|
|
11
|
-
type FileVisibility = (typeof FILE_VISIBILITIES)[number];
|
|
12
|
-
type FileStatus = 'ACTIVE' | 'ARCHIVED' | 'DELETED' | 'UPLOADING';
|
|
13
|
-
type FileUploadType = 'DIRECT' | 'MULTIPART' | 'RESUMABLE';
|
|
14
|
-
type FileBytes = Uint8Array | ArrayBuffer;
|
|
15
|
-
interface UploadFileInput {
|
|
16
|
-
fileName: string;
|
|
17
|
-
data: FileBytes;
|
|
18
|
-
mimeType: string;
|
|
19
|
-
extension?: string;
|
|
20
|
-
folderId?: string | null;
|
|
21
|
-
description?: string | null;
|
|
22
|
-
visibility?: FileVisibility;
|
|
23
|
-
declareSha256?: boolean;
|
|
24
|
-
}
|
|
25
|
-
interface StoredFile {
|
|
26
|
-
fileId: string;
|
|
27
|
-
name: string;
|
|
28
|
-
mimeType: string;
|
|
29
|
-
size: number;
|
|
30
|
-
workspaceId: string;
|
|
31
|
-
sha256Hash: string | null;
|
|
32
|
-
}
|
|
33
|
-
interface FileMetadata {
|
|
34
|
-
id: string;
|
|
35
|
-
name: string;
|
|
36
|
-
mimeType: string;
|
|
37
|
-
extension: string;
|
|
38
|
-
size: number;
|
|
39
|
-
status: FileStatus;
|
|
40
|
-
visibility: FileVisibility;
|
|
41
|
-
workspaceId: string;
|
|
42
|
-
folderId: string | null;
|
|
43
|
-
uploadedById: string;
|
|
44
|
-
description: string | null;
|
|
45
|
-
sha256Hash: string | null;
|
|
46
|
-
createdAt: Date | null;
|
|
47
|
-
updatedAt: Date | null;
|
|
48
|
-
canRead: boolean | null;
|
|
49
|
-
canDelete: boolean | null;
|
|
50
|
-
}
|
|
51
|
-
interface RequireFileOptions {
|
|
52
|
-
requireActive?: boolean;
|
|
53
|
-
requireReadable?: boolean;
|
|
54
|
-
}
|
|
55
|
-
interface DownloadUrlOptions {
|
|
56
|
-
expiresInSeconds?: number;
|
|
57
|
-
}
|
|
58
|
-
interface DownloadFileOptions {
|
|
59
|
-
maxBytes?: number;
|
|
60
|
-
}
|
|
61
|
-
interface DownloadedFile {
|
|
62
|
-
bytes: Uint8Array;
|
|
63
|
-
mimeType: string;
|
|
64
|
-
name: string;
|
|
65
|
-
size: number;
|
|
66
|
-
}
|
|
67
|
-
interface CreateUploadSessionInput {
|
|
68
|
-
fileName: string;
|
|
69
|
-
fileSize: number;
|
|
70
|
-
mimeType: string;
|
|
71
|
-
extension?: string;
|
|
72
|
-
sha256Hash?: string | null;
|
|
73
|
-
folderId?: string | null;
|
|
74
|
-
visibility?: FileVisibility;
|
|
75
|
-
}
|
|
76
|
-
interface UploadSessionPart {
|
|
77
|
-
partNumber: number;
|
|
78
|
-
url: string;
|
|
79
|
-
offset: number;
|
|
80
|
-
length: number;
|
|
81
|
-
}
|
|
82
|
-
interface UploadSessionTicket {
|
|
83
|
-
sessionId: string;
|
|
84
|
-
uploadType: 'DIRECT' | 'MULTIPART';
|
|
85
|
-
uploadUrl: string | null;
|
|
86
|
-
requiredHeaders: Record<string, string>;
|
|
87
|
-
parts: UploadSessionPart[];
|
|
88
|
-
partSize: number;
|
|
89
|
-
totalParts: number;
|
|
90
|
-
fileSize: number;
|
|
91
|
-
sha256Hash: string | null;
|
|
92
|
-
expiresAt: Date | null;
|
|
93
|
-
}
|
|
94
|
-
interface UploadedPart {
|
|
95
|
-
partNumber: number;
|
|
96
|
-
etag: string;
|
|
97
|
-
}
|
|
98
|
-
interface CompleteUploadSessionInput {
|
|
99
|
-
fileSize: number;
|
|
100
|
-
sha256Hash?: string | null;
|
|
101
|
-
description?: string | null;
|
|
102
|
-
folderId?: string | null;
|
|
103
|
-
parts?: readonly UploadedPart[];
|
|
104
|
-
}
|
|
105
|
-
interface DeleteFileOptions {
|
|
106
|
-
permanent?: boolean;
|
|
107
|
-
}
|
|
108
|
-
interface FilesTransport {
|
|
109
|
-
internalQuery<T = unknown>(options: GraphQLRequestOptions): Promise<GraphQLResponse<T>>;
|
|
110
|
-
}
|
|
111
|
-
type FilesFetch = (url: string, init?: RequestInit) => Promise<Response>;
|
|
112
|
-
interface RawFileMetadata {
|
|
113
|
-
id: string;
|
|
114
|
-
name: string;
|
|
115
|
-
mimeType: string;
|
|
116
|
-
extension: string;
|
|
117
|
-
size: string | number;
|
|
118
|
-
status: FileStatus;
|
|
119
|
-
visibility: FileVisibility;
|
|
120
|
-
workspaceId: string;
|
|
121
|
-
folderId?: string | null;
|
|
122
|
-
uploadedById: string;
|
|
123
|
-
description?: string | null;
|
|
124
|
-
sha256Hash?: string | null;
|
|
125
|
-
createdAt?: string | null;
|
|
126
|
-
updatedAt?: string | null;
|
|
127
|
-
canRead?: boolean | null;
|
|
128
|
-
canDelete?: boolean | null;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
type FilesClientErrorCode = 'INVALID_INPUT' | 'MISSING_CONTEXT' | 'NOT_FOUND' | 'QUOTA_EXCEEDED' | 'TOO_LARGE' | 'STORAGE_ERROR' | 'UPSTREAM_ERROR' | 'CONFIGURATION_ERROR';
|
|
132
|
-
declare const FILES_CLIENT_GRAPHQL_CODES: Record<FilesClientErrorCode, string>;
|
|
133
|
-
declare class FilesClientError extends Error {
|
|
134
|
-
readonly code: FilesClientErrorCode;
|
|
135
|
-
readonly details: Record<string, unknown>;
|
|
136
|
-
constructor(code: FilesClientErrorCode, message: string, details?: Record<string, unknown>);
|
|
137
|
-
get graphqlCode(): string;
|
|
138
|
-
}
|
|
139
|
-
declare function isFilesClientError(error: unknown): error is FilesClientError;
|
|
140
|
-
declare function classifyFilesErrors(errors: readonly GraphQLError[]): FilesClientErrorCode;
|
|
141
|
-
declare function toFilesClientError(error: unknown, operation: string): FilesClientError;
|
|
142
|
-
|
|
143
|
-
declare const MAX_DOWNLOAD_URL_TTL_SECONDS = 604800;
|
|
144
|
-
declare const MIN_DOWNLOAD_URL_TTL_SECONDS = 60;
|
|
145
|
-
interface FilesClientOptions {
|
|
146
|
-
client?: FilesTransport | (() => FilesTransport | Promise<FilesTransport>);
|
|
147
|
-
serviceName?: string;
|
|
148
|
-
fetch?: FilesFetch;
|
|
149
|
-
requestTimeoutMs?: number;
|
|
150
|
-
transferTimeoutMs?: number;
|
|
151
|
-
maxUploadBytes?: number;
|
|
152
|
-
maxDownloadBytes?: number;
|
|
153
|
-
defaultDownloadUrlTtlSeconds?: number;
|
|
154
|
-
}
|
|
155
|
-
declare function fileExtensionOf(fileName: string): string;
|
|
156
|
-
declare function clampDownloadUrlTtl(seconds: number | null | undefined, fallback: number): number;
|
|
157
|
-
declare function mapFileMetadata(raw: RawFileMetadata): FileMetadata;
|
|
158
|
-
declare class FilesClient {
|
|
159
|
-
private readonly clientOption;
|
|
160
|
-
private readonly serviceName;
|
|
161
|
-
private readonly fetchImpl;
|
|
162
|
-
private readonly requestTimeoutMs;
|
|
163
|
-
private readonly transferTimeoutMs;
|
|
164
|
-
private readonly maxUploadBytes;
|
|
165
|
-
private readonly maxDownloadBytes;
|
|
166
|
-
private readonly defaultDownloadUrlTtlSeconds;
|
|
167
|
-
private clientPromise;
|
|
168
|
-
constructor(options?: FilesClientOptions);
|
|
169
|
-
uploadFile(input: UploadFileInput, actor: FileActor): Promise<StoredFile>;
|
|
170
|
-
createUploadSession(input: CreateUploadSessionInput, actor: FileActor): Promise<UploadSessionTicket>;
|
|
171
|
-
completeUploadSession(sessionId: string, input: CompleteUploadSessionInput, actor: FileActor): Promise<StoredFile>;
|
|
172
|
-
abortUploadSession(sessionId: string, actor: FileActor): Promise<boolean>;
|
|
173
|
-
getFile(fileId: string, actor: FileActor): Promise<FileMetadata | null>;
|
|
174
|
-
requireFile(fileId: string, actor: FileActor, options?: RequireFileOptions): Promise<FileMetadata>;
|
|
175
|
-
getDownloadUrl(fileId: string, actor: FileActor, options?: DownloadUrlOptions): Promise<string>;
|
|
176
|
-
downloadFile(fileId: string, actor: FileActor, options?: DownloadFileOptions): Promise<DownloadedFile>;
|
|
177
|
-
downloadFileAsBase64(fileId: string, actor: FileActor, options?: DownloadFileOptions): Promise<{
|
|
178
|
-
base64: string;
|
|
179
|
-
mimeType: string;
|
|
180
|
-
name: string;
|
|
181
|
-
size: number;
|
|
182
|
-
}>;
|
|
183
|
-
deleteFile(fileId: string, actor: FileActor, options?: DeleteFileOptions): Promise<boolean>;
|
|
184
|
-
private putDirect;
|
|
185
|
-
private uploadParts;
|
|
186
|
-
private completeSession;
|
|
187
|
-
private assertMultipartPlan;
|
|
188
|
-
private partUrls;
|
|
189
|
-
private presignParts;
|
|
190
|
-
private abortQuietly;
|
|
191
|
-
private assertUsable;
|
|
192
|
-
private transfer;
|
|
193
|
-
private readBounded;
|
|
194
|
-
private requireActor;
|
|
195
|
-
private getClient;
|
|
196
|
-
private request;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
declare const FILE_REFERENCE_KIND: "burdenoff.file";
|
|
200
|
-
interface FileReference {
|
|
201
|
-
kind: typeof FILE_REFERENCE_KIND;
|
|
202
|
-
fileId: string;
|
|
203
|
-
name: string;
|
|
204
|
-
mimeType: string;
|
|
205
|
-
size: number;
|
|
206
|
-
sha256Hash: string | null;
|
|
207
|
-
}
|
|
208
|
-
declare function toFileReference(file: StoredFile | FileMetadata): FileReference;
|
|
209
|
-
declare function isFileReference(value: unknown): value is FileReference;
|
|
210
|
-
|
|
211
|
-
type index_CompleteUploadSessionInput = CompleteUploadSessionInput;
|
|
212
|
-
type index_CreateUploadSessionInput = CreateUploadSessionInput;
|
|
213
|
-
type index_DeleteFileOptions = DeleteFileOptions;
|
|
214
|
-
type index_DownloadFileOptions = DownloadFileOptions;
|
|
215
|
-
type index_DownloadUrlOptions = DownloadUrlOptions;
|
|
216
|
-
type index_DownloadedFile = DownloadedFile;
|
|
217
|
-
declare const index_FILES_CLIENT_GRAPHQL_CODES: typeof FILES_CLIENT_GRAPHQL_CODES;
|
|
218
|
-
declare const index_FILE_ACTOR_TYPES: typeof FILE_ACTOR_TYPES;
|
|
219
|
-
declare const index_FILE_REFERENCE_KIND: typeof FILE_REFERENCE_KIND;
|
|
220
|
-
declare const index_FILE_VISIBILITIES: typeof FILE_VISIBILITIES;
|
|
221
|
-
type index_FileActor = FileActor;
|
|
222
|
-
type index_FileActorType = FileActorType;
|
|
223
|
-
type index_FileBytes = FileBytes;
|
|
224
|
-
type index_FileMetadata = FileMetadata;
|
|
225
|
-
type index_FileReference = FileReference;
|
|
226
|
-
type index_FileStatus = FileStatus;
|
|
227
|
-
type index_FileUploadType = FileUploadType;
|
|
228
|
-
type index_FileVisibility = FileVisibility;
|
|
229
|
-
type index_FilesClient = FilesClient;
|
|
230
|
-
declare const index_FilesClient: typeof FilesClient;
|
|
231
|
-
type index_FilesClientError = FilesClientError;
|
|
232
|
-
declare const index_FilesClientError: typeof FilesClientError;
|
|
233
|
-
type index_FilesClientErrorCode = FilesClientErrorCode;
|
|
234
|
-
type index_FilesClientOptions = FilesClientOptions;
|
|
235
|
-
type index_FilesFetch = FilesFetch;
|
|
236
|
-
type index_FilesTransport = FilesTransport;
|
|
237
|
-
declare const index_MAX_DOWNLOAD_URL_TTL_SECONDS: typeof MAX_DOWNLOAD_URL_TTL_SECONDS;
|
|
238
|
-
declare const index_MIN_DOWNLOAD_URL_TTL_SECONDS: typeof MIN_DOWNLOAD_URL_TTL_SECONDS;
|
|
239
|
-
type index_RawFileMetadata = RawFileMetadata;
|
|
240
|
-
type index_RequireFileOptions = RequireFileOptions;
|
|
241
|
-
type index_StoredFile = StoredFile;
|
|
242
|
-
type index_UploadFileInput = UploadFileInput;
|
|
243
|
-
type index_UploadSessionPart = UploadSessionPart;
|
|
244
|
-
type index_UploadSessionTicket = UploadSessionTicket;
|
|
245
|
-
type index_UploadedPart = UploadedPart;
|
|
246
|
-
declare const index_clampDownloadUrlTtl: typeof clampDownloadUrlTtl;
|
|
247
|
-
declare const index_classifyFilesErrors: typeof classifyFilesErrors;
|
|
248
|
-
declare const index_fileExtensionOf: typeof fileExtensionOf;
|
|
249
|
-
declare const index_isFileReference: typeof isFileReference;
|
|
250
|
-
declare const index_isFilesClientError: typeof isFilesClientError;
|
|
251
|
-
declare const index_mapFileMetadata: typeof mapFileMetadata;
|
|
252
|
-
declare const index_toFileReference: typeof toFileReference;
|
|
253
|
-
declare const index_toFilesClientError: typeof toFilesClientError;
|
|
254
|
-
declare namespace index {
|
|
255
|
-
export { type index_CompleteUploadSessionInput as CompleteUploadSessionInput, type index_CreateUploadSessionInput as CreateUploadSessionInput, type index_DeleteFileOptions as DeleteFileOptions, type index_DownloadFileOptions as DownloadFileOptions, type index_DownloadUrlOptions as DownloadUrlOptions, type index_DownloadedFile as DownloadedFile, index_FILES_CLIENT_GRAPHQL_CODES as FILES_CLIENT_GRAPHQL_CODES, index_FILE_ACTOR_TYPES as FILE_ACTOR_TYPES, index_FILE_REFERENCE_KIND as FILE_REFERENCE_KIND, index_FILE_VISIBILITIES as FILE_VISIBILITIES, type index_FileActor as FileActor, type index_FileActorType as FileActorType, type index_FileBytes as FileBytes, type index_FileMetadata as FileMetadata, type index_FileReference as FileReference, type index_FileStatus as FileStatus, type index_FileUploadType as FileUploadType, type index_FileVisibility as FileVisibility, index_FilesClient as FilesClient, index_FilesClientError as FilesClientError, type index_FilesClientErrorCode as FilesClientErrorCode, type index_FilesClientOptions as FilesClientOptions, type index_FilesFetch as FilesFetch, type index_FilesTransport as FilesTransport, index_MAX_DOWNLOAD_URL_TTL_SECONDS as MAX_DOWNLOAD_URL_TTL_SECONDS, index_MIN_DOWNLOAD_URL_TTL_SECONDS as MIN_DOWNLOAD_URL_TTL_SECONDS, type index_RawFileMetadata as RawFileMetadata, type index_RequireFileOptions as RequireFileOptions, type index_StoredFile as StoredFile, type index_UploadFileInput as UploadFileInput, type index_UploadSessionPart as UploadSessionPart, type index_UploadSessionTicket as UploadSessionTicket, type index_UploadedPart as UploadedPart, index_clampDownloadUrlTtl as clampDownloadUrlTtl, index_classifyFilesErrors as classifyFilesErrors, index_fileExtensionOf as fileExtensionOf, index_isFileReference as isFileReference, index_isFilesClientError as isFilesClientError, index_mapFileMetadata as mapFileMetadata, index_toFileReference as toFileReference, index_toFilesClientError as toFilesClientError };
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
export { type UploadedPart as A, clampDownloadUrlTtl as B, type CompleteUploadSessionInput as C, type DeleteFileOptions as D, classifyFilesErrors as E, FILES_CLIENT_GRAPHQL_CODES as F, fileExtensionOf as G, isFileReference as H, isFilesClientError as I, mapFileMetadata as J, toFileReference as K, toFilesClientError as L, MAX_DOWNLOAD_URL_TTL_SECONDS as M, type RawFileMetadata as R, type StoredFile as S, type UploadFileInput as U, type CreateUploadSessionInput as a, type DownloadFileOptions as b, type DownloadUrlOptions as c, type DownloadedFile as d, FILE_ACTOR_TYPES as e, FILE_REFERENCE_KIND as f, FILE_VISIBILITIES as g, type FileActor as h, index as i, type FileActorType as j, type FileBytes as k, type FileMetadata as l, type FileReference as m, type FileStatus as n, type FileUploadType as o, type FileVisibility as p, FilesClient as q, FilesClientError as r, type FilesClientErrorCode as s, type FilesClientOptions as t, type FilesFetch as u, type FilesTransport as v, MIN_DOWNLOAD_URL_TTL_SECONDS as w, type RequireFileOptions as x, type UploadSessionPart as y, type UploadSessionTicket as z };
|
package/dist/index-CmfPeQza.d.ts
DELETED
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
import { a as GraphQLRequestOptions, b as GraphQLResponse } from './types-DgJ4lDYA.js';
|
|
2
|
-
|
|
3
|
-
interface AiTokenUsageReport {
|
|
4
|
-
sessionId: string;
|
|
5
|
-
messageId: string;
|
|
6
|
-
model: string;
|
|
7
|
-
inputTokens: number;
|
|
8
|
-
outputTokens: number;
|
|
9
|
-
cacheReadTokens?: number | null;
|
|
10
|
-
cacheWriteTokens?: number | null;
|
|
11
|
-
}
|
|
12
|
-
type AiCreditQuoteInput = Pick<AiTokenUsageReport, 'model' | 'inputTokens' | 'outputTokens' | 'cacheReadTokens' | 'cacheWriteTokens'>;
|
|
13
|
-
interface AiCreditChargeInput extends AiTokenUsageReport {
|
|
14
|
-
workspaceId: string;
|
|
15
|
-
userId?: string | null;
|
|
16
|
-
description?: string;
|
|
17
|
-
metadata?: Record<string, unknown>;
|
|
18
|
-
}
|
|
19
|
-
type AiCreditSkipReason = 'NOT_PRICED' | 'ZERO_COST' | 'GUARD_REFUSED' | 'RECORD_FAILED';
|
|
20
|
-
type AiCreditChargeResult = {
|
|
21
|
-
status: 'charged';
|
|
22
|
-
credits: number;
|
|
23
|
-
hash: string;
|
|
24
|
-
quotaName: string;
|
|
25
|
-
} | {
|
|
26
|
-
status: 'skipped';
|
|
27
|
-
reason: AiCreditSkipReason;
|
|
28
|
-
credits: number | null;
|
|
29
|
-
hash: string;
|
|
30
|
-
quotaName: string;
|
|
31
|
-
detail?: string;
|
|
32
|
-
};
|
|
33
|
-
interface AiCreditGuardVerdict {
|
|
34
|
-
allow: boolean;
|
|
35
|
-
detail?: string;
|
|
36
|
-
}
|
|
37
|
-
type AiCreditChargeGuard = (input: AiCreditChargeInput) => Promise<AiCreditGuardVerdict> | AiCreditGuardVerdict;
|
|
38
|
-
interface WorkspaceQuotaUsage {
|
|
39
|
-
quotaName: string;
|
|
40
|
-
used: number;
|
|
41
|
-
limit: number | null;
|
|
42
|
-
noLimit: boolean;
|
|
43
|
-
remaining: number | null;
|
|
44
|
-
assignments: number;
|
|
45
|
-
}
|
|
46
|
-
interface AiCreditAllowance {
|
|
47
|
-
quotaName: string;
|
|
48
|
-
allowed: boolean;
|
|
49
|
-
provisioned: boolean;
|
|
50
|
-
noLimit: boolean;
|
|
51
|
-
limitLeft: number | null;
|
|
52
|
-
}
|
|
53
|
-
interface AiCreditGate {
|
|
54
|
-
usage: WorkspaceQuotaUsage | null;
|
|
55
|
-
exhausted: boolean;
|
|
56
|
-
entitled: boolean;
|
|
57
|
-
}
|
|
58
|
-
interface AiCreditLogger {
|
|
59
|
-
info(message: string, ...args: unknown[]): void;
|
|
60
|
-
warn(message: string, ...args: unknown[]): void;
|
|
61
|
-
error(message: string, ...args: unknown[]): void;
|
|
62
|
-
}
|
|
63
|
-
interface AiCreditPricingTransport {
|
|
64
|
-
crossLayerQuery<T = unknown>(options: GraphQLRequestOptions): Promise<GraphQLResponse<T>>;
|
|
65
|
-
}
|
|
66
|
-
type AiCreditFetch = (url: string, init?: RequestInit) => Promise<Response>;
|
|
67
|
-
|
|
68
|
-
declare const AI_CREDIT_MAX_TOKENS_PER_REPORT = 2000000;
|
|
69
|
-
type AiTokenUsageViolation = 'SESSION_ID_REQUIRED' | 'MESSAGE_ID_REQUIRED' | 'MODEL_REQUIRED' | 'TOKEN_COUNTS_NOT_INTEGERS' | 'TOKEN_COUNTS_NEGATIVE' | 'TOKEN_COUNTS_EXCEED_MAXIMUM';
|
|
70
|
-
interface AiTokenUsageValidationError {
|
|
71
|
-
code: AiTokenUsageViolation;
|
|
72
|
-
message: string;
|
|
73
|
-
}
|
|
74
|
-
declare function validateAiTokenUsage(report: Partial<Pick<AiTokenUsageReport, 'sessionId' | 'messageId' | 'model'>> & Pick<AiTokenUsageReport, 'inputTokens' | 'outputTokens' | 'cacheReadTokens' | 'cacheWriteTokens'>, maxTokensPerReport?: number): AiTokenUsageValidationError | null;
|
|
75
|
-
declare function aiCreditQuotaName(productId: string): string;
|
|
76
|
-
declare function defaultAiCreditHashPrefix(productId: string): string;
|
|
77
|
-
declare function encodeAiCreditHashComponent(value: string): string;
|
|
78
|
-
declare function aiCreditIdempotencyHash(prefix: string, sessionId: string, messageId: string): string;
|
|
79
|
-
|
|
80
|
-
type AiCreditInputErrorCode = AiTokenUsageViolation | 'WORKSPACE_ID_REQUIRED';
|
|
81
|
-
declare class AiCreditInputError extends Error {
|
|
82
|
-
readonly code: AiCreditInputErrorCode;
|
|
83
|
-
readonly graphqlCode = "BAD_USER_INPUT";
|
|
84
|
-
constructor(code: AiCreditInputErrorCode, message: string);
|
|
85
|
-
}
|
|
86
|
-
declare function isAiCreditInputError(error: unknown): error is AiCreditInputError;
|
|
87
|
-
|
|
88
|
-
interface AiCreditMeterOptions {
|
|
89
|
-
productId: string;
|
|
90
|
-
serviceName?: string;
|
|
91
|
-
quotaName?: string;
|
|
92
|
-
hashPrefix?: string;
|
|
93
|
-
activityGatewayUrl?: string;
|
|
94
|
-
billingGatewayUrl?: string;
|
|
95
|
-
pricingClient?: AiCreditPricingTransport | ((url: string) => AiCreditPricingTransport | Promise<AiCreditPricingTransport>);
|
|
96
|
-
fetch?: AiCreditFetch;
|
|
97
|
-
requestTimeoutMs?: number;
|
|
98
|
-
maxTokensPerReport?: number;
|
|
99
|
-
guard?: AiCreditChargeGuard;
|
|
100
|
-
logger?: AiCreditLogger;
|
|
101
|
-
}
|
|
102
|
-
declare class AiCreditMeter {
|
|
103
|
-
readonly productId: string;
|
|
104
|
-
readonly quotaName: string;
|
|
105
|
-
readonly hashPrefix: string;
|
|
106
|
-
private readonly serviceName;
|
|
107
|
-
private readonly activityGatewayUrl;
|
|
108
|
-
private readonly billingGatewayUrl;
|
|
109
|
-
private readonly pricingOption;
|
|
110
|
-
private readonly fetchImpl;
|
|
111
|
-
private readonly requestTimeoutMs;
|
|
112
|
-
private readonly maxTokensPerReport;
|
|
113
|
-
private readonly guard;
|
|
114
|
-
private readonly log;
|
|
115
|
-
private pricing;
|
|
116
|
-
constructor(options: AiCreditMeterOptions);
|
|
117
|
-
hashFor(sessionId: string, messageId: string): string;
|
|
118
|
-
quote(input: AiCreditQuoteInput): Promise<number | null>;
|
|
119
|
-
charge(input: AiCreditChargeInput): Promise<AiCreditChargeResult>;
|
|
120
|
-
readUsage(workspaceId: string, quotaName?: string): Promise<WorkspaceQuotaUsage | null>;
|
|
121
|
-
checkAllowance(workspaceId: string, options?: {
|
|
122
|
-
amount?: number;
|
|
123
|
-
quotaName?: string;
|
|
124
|
-
}): Promise<AiCreditAllowance | null>;
|
|
125
|
-
readGate(workspaceId: string, quotaName?: string): Promise<AiCreditGate>;
|
|
126
|
-
private trackUsage;
|
|
127
|
-
private activityRequest;
|
|
128
|
-
private pricingRequest;
|
|
129
|
-
private supportsCachePricing;
|
|
130
|
-
private resolveServiceName;
|
|
131
|
-
private getPricingClient;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
declare const index_AI_CREDIT_MAX_TOKENS_PER_REPORT: typeof AI_CREDIT_MAX_TOKENS_PER_REPORT;
|
|
135
|
-
type index_AiCreditAllowance = AiCreditAllowance;
|
|
136
|
-
type index_AiCreditChargeGuard = AiCreditChargeGuard;
|
|
137
|
-
type index_AiCreditChargeInput = AiCreditChargeInput;
|
|
138
|
-
type index_AiCreditChargeResult = AiCreditChargeResult;
|
|
139
|
-
type index_AiCreditFetch = AiCreditFetch;
|
|
140
|
-
type index_AiCreditGate = AiCreditGate;
|
|
141
|
-
type index_AiCreditGuardVerdict = AiCreditGuardVerdict;
|
|
142
|
-
type index_AiCreditInputError = AiCreditInputError;
|
|
143
|
-
declare const index_AiCreditInputError: typeof AiCreditInputError;
|
|
144
|
-
type index_AiCreditInputErrorCode = AiCreditInputErrorCode;
|
|
145
|
-
type index_AiCreditLogger = AiCreditLogger;
|
|
146
|
-
type index_AiCreditMeter = AiCreditMeter;
|
|
147
|
-
declare const index_AiCreditMeter: typeof AiCreditMeter;
|
|
148
|
-
type index_AiCreditMeterOptions = AiCreditMeterOptions;
|
|
149
|
-
type index_AiCreditPricingTransport = AiCreditPricingTransport;
|
|
150
|
-
type index_AiCreditQuoteInput = AiCreditQuoteInput;
|
|
151
|
-
type index_AiCreditSkipReason = AiCreditSkipReason;
|
|
152
|
-
type index_AiTokenUsageReport = AiTokenUsageReport;
|
|
153
|
-
type index_AiTokenUsageValidationError = AiTokenUsageValidationError;
|
|
154
|
-
type index_AiTokenUsageViolation = AiTokenUsageViolation;
|
|
155
|
-
type index_WorkspaceQuotaUsage = WorkspaceQuotaUsage;
|
|
156
|
-
declare const index_aiCreditIdempotencyHash: typeof aiCreditIdempotencyHash;
|
|
157
|
-
declare const index_aiCreditQuotaName: typeof aiCreditQuotaName;
|
|
158
|
-
declare const index_defaultAiCreditHashPrefix: typeof defaultAiCreditHashPrefix;
|
|
159
|
-
declare const index_encodeAiCreditHashComponent: typeof encodeAiCreditHashComponent;
|
|
160
|
-
declare const index_isAiCreditInputError: typeof isAiCreditInputError;
|
|
161
|
-
declare const index_validateAiTokenUsage: typeof validateAiTokenUsage;
|
|
162
|
-
declare namespace index {
|
|
163
|
-
export { index_AI_CREDIT_MAX_TOKENS_PER_REPORT as AI_CREDIT_MAX_TOKENS_PER_REPORT, type index_AiCreditAllowance as AiCreditAllowance, type index_AiCreditChargeGuard as AiCreditChargeGuard, type index_AiCreditChargeInput as AiCreditChargeInput, type index_AiCreditChargeResult as AiCreditChargeResult, type index_AiCreditFetch as AiCreditFetch, type index_AiCreditGate as AiCreditGate, type index_AiCreditGuardVerdict as AiCreditGuardVerdict, index_AiCreditInputError as AiCreditInputError, type index_AiCreditInputErrorCode as AiCreditInputErrorCode, type index_AiCreditLogger as AiCreditLogger, index_AiCreditMeter as AiCreditMeter, type index_AiCreditMeterOptions as AiCreditMeterOptions, type index_AiCreditPricingTransport as AiCreditPricingTransport, type index_AiCreditQuoteInput as AiCreditQuoteInput, type index_AiCreditSkipReason as AiCreditSkipReason, type index_AiTokenUsageReport as AiTokenUsageReport, type index_AiTokenUsageValidationError as AiTokenUsageValidationError, type index_AiTokenUsageViolation as AiTokenUsageViolation, type index_WorkspaceQuotaUsage as WorkspaceQuotaUsage, index_aiCreditIdempotencyHash as aiCreditIdempotencyHash, index_aiCreditQuotaName as aiCreditQuotaName, index_defaultAiCreditHashPrefix as defaultAiCreditHashPrefix, index_encodeAiCreditHashComponent as encodeAiCreditHashComponent, index_isAiCreditInputError as isAiCreditInputError, index_validateAiTokenUsage as validateAiTokenUsage };
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
export { AI_CREDIT_MAX_TOKENS_PER_REPORT as A, type WorkspaceQuotaUsage as W, type AiCreditAllowance as a, type AiCreditChargeGuard as b, type AiCreditChargeInput as c, type AiCreditChargeResult as d, type AiCreditFetch as e, type AiCreditGate as f, type AiCreditGuardVerdict as g, AiCreditInputError as h, index as i, type AiCreditInputErrorCode as j, type AiCreditLogger as k, AiCreditMeter as l, type AiCreditMeterOptions as m, type AiCreditPricingTransport as n, type AiCreditQuoteInput as o, type AiCreditSkipReason as p, type AiTokenUsageReport as q, type AiTokenUsageValidationError as r, type AiTokenUsageViolation as s, aiCreditIdempotencyHash as t, aiCreditQuotaName as u, defaultAiCreditHashPrefix as v, encodeAiCreditHashComponent as w, isAiCreditInputError as x, validateAiTokenUsage as y };
|