@burdenoff/be-sdk 2026.1110.2 → 2026.1110.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/configs/eslint/index.js +1 -1
- package/configs/tsconfig/tsconfig.json +1 -1
- package/dist/EventQueueFactory-9NGZV9jl.js +1457 -0
- package/dist/EventQueueFactory-9NGZV9jl.js.map +1 -0
- package/dist/RedisStreamsConnection-CY8WySJy.js +283 -0
- package/dist/RedisStreamsConnection-CY8WySJy.js.map +1 -0
- package/dist/ai-credits/index.d.ts +2 -3
- package/dist/ai-credits/index.js +3 -4
- package/dist/ai-credits/index.js.map +1 -1
- package/dist/ai-credits-Ca-NNcVx.js +546 -0
- package/dist/ai-credits-Ca-NNcVx.js.map +1 -0
- package/dist/{assistant-session-CJZhF4D6.d.ts → assistant-session-DA5ZKJOr.d.ts} +4 -5
- package/dist/auth/index.d.ts +2 -77
- package/dist/auth/index.js +3 -7
- package/dist/auth/index.js.map +1 -1
- package/dist/auth-CEuBEBQN.js +228 -0
- package/dist/auth-CEuBEBQN.js.map +1 -0
- package/dist/cache/index.d.ts +2 -3
- package/dist/cache/index.js +3 -7
- package/dist/cache/index.js.map +1 -1
- package/dist/cache-CU0uLwcS.js +1837 -0
- package/dist/cache-CU0uLwcS.js.map +1 -0
- package/dist/captcha/index.d.ts +2 -1
- package/dist/captcha/index.js +3 -3
- package/dist/captcha/index.js.map +1 -1
- package/dist/captcha-BT7yh1YS.js +77 -0
- package/dist/captcha-BT7yh1YS.js.map +1 -0
- package/dist/client/internal-client.d.ts +4 -7
- package/dist/client/internal-client.js +172 -4
- package/dist/client/internal-client.js.map +1 -1
- package/dist/client-BgAEvDC2.d.ts +86 -0
- package/dist/client-DcZ3iGES.js +565 -0
- package/dist/client-DcZ3iGES.js.map +1 -0
- package/dist/collector-endpoint-iyQYeI50.js +50 -0
- package/dist/collector-endpoint-iyQYeI50.js.map +1 -0
- package/dist/context-CZnXf2yb.js +247 -0
- package/dist/context-CZnXf2yb.js.map +1 -0
- package/dist/crypto/index.d.ts +2 -1
- package/dist/crypto/index.js +3 -3
- package/dist/crypto/index.js.map +1 -1
- package/dist/crypto-DO9fM0FO.js +145 -0
- package/dist/crypto-DO9fM0FO.js.map +1 -0
- package/dist/database/index.d.ts +104 -108
- package/dist/database/index.js +468 -6
- package/dist/database/index.js.map +1 -1
- package/dist/dataloader/index.d.ts +2 -1
- package/dist/dataloader/index.js +3 -3
- package/dist/dataloader/index.js.map +1 -1
- package/dist/dataloader-DwpT3YoS.js +294 -0
- package/dist/dataloader-DwpT3YoS.js.map +1 -0
- package/dist/deployed-environment-p_Tdl3sT.js +38 -0
- package/dist/deployed-environment-p_Tdl3sT.js.map +1 -0
- package/dist/dist-BGKdXVy3.js +1718 -0
- package/dist/dist-BGKdXVy3.js.map +1 -0
- package/dist/env-DdaoGjIt.js +74 -0
- package/dist/env-DdaoGjIt.js.map +1 -0
- package/dist/event-queue/index.d.ts +2 -7
- package/dist/event-queue/index.js +7 -9
- package/dist/event-queue/index.js.map +1 -1
- package/dist/event-queue-Cw-YJPY_.js +1384 -0
- package/dist/event-queue-Cw-YJPY_.js.map +1 -0
- package/dist/{explicit-activity-scope-CCoxVwAr.d.ts → explicit-activity-scope-D8VeGGpt.d.ts} +1 -2
- package/dist/export/index.d.ts +2 -2
- package/dist/export/index.js +3 -14
- package/dist/export/index.js.map +1 -1
- package/dist/export-B6fphx8a.js +642 -0
- package/dist/export-B6fphx8a.js.map +1 -0
- package/dist/feature-flags/index.d.ts +2 -10
- package/dist/feature-flags/index.js +3 -6
- package/dist/feature-flags/index.js.map +1 -1
- package/dist/feature-flags-71oDkrUe.js +422 -0
- package/dist/feature-flags-71oDkrUe.js.map +1 -0
- package/dist/files/index.d.ts +2 -3
- package/dist/files/index.js +3 -4
- package/dist/files/index.js.map +1 -1
- package/dist/files-DjH0099H.js +830 -0
- package/dist/files-DjH0099H.js.map +1 -0
- package/dist/gateway/index.d.ts +4 -6
- package/dist/gateway/index.js +7 -13
- package/dist/gateway/index.js.map +1 -1
- package/dist/gateway/security/index.d.ts +2 -2
- package/dist/gateway/security/index.js +3 -5
- package/dist/gateway/security/index.js.map +1 -1
- package/dist/gateway-DBFmxWks.js +50 -0
- package/dist/gateway-DBFmxWks.js.map +1 -0
- package/dist/graph/index.d.ts +3 -10
- package/dist/graph/index.js +4 -13
- package/dist/graph/index.js.map +1 -1
- package/dist/graph-DDYgIryR.js +2152 -0
- package/dist/graph-DDYgIryR.js.map +1 -0
- package/dist/graph-emitter-CdOXP7Tn.js +621 -0
- package/dist/graph-emitter-CdOXP7Tn.js.map +1 -0
- package/dist/graphql/index.d.ts +3 -2
- package/dist/graphql/index.js +4 -6
- package/dist/graphql/index.js.map +1 -1
- package/dist/graphql/services/index.d.ts +2 -24
- package/dist/graphql/services/index.js +3 -4
- package/dist/graphql/services/index.js.map +1 -1
- package/dist/graphql-DHAHHcww.js +161 -0
- package/dist/graphql-DHAHHcww.js.map +1 -0
- package/dist/graphql-DNkMkGBZ.d.ts +21 -0
- package/dist/i18n/index.d.ts +3 -3
- package/dist/i18n/index.js +3 -4
- package/dist/i18n/index.js.map +1 -1
- package/dist/i18n-BBMYFd0P.js +860 -0
- package/dist/i18n-BBMYFd0P.js.map +1 -0
- package/dist/import-optional-peer-B82VYxeX.js +18 -0
- package/dist/import-optional-peer-B82VYxeX.js.map +1 -0
- package/dist/index-3KOZ1zN9.d.ts +233 -0
- package/dist/index-BBqooJ52.d.ts +45 -0
- package/dist/index-BGzMYJsm.d.ts +209 -0
- package/dist/index-BKwHQtHQ.d.ts +63 -0
- package/dist/index-BMIMnp6T.d.ts +8 -0
- package/dist/index-BQDsNAMR.d.ts +81 -0
- package/dist/index-BVOL7458.d.ts +10 -0
- package/dist/index-BcqQs-Uq.d.ts +69 -0
- package/dist/index-BeVtqGO-.d.ts +208 -0
- package/dist/index-BiTzGUZP.d.ts +114 -0
- package/dist/index-BqYfCQSP.d.ts +500 -0
- package/dist/index-C0qLquY0.d.ts +150 -0
- package/dist/index-C5uEKchX.d.ts +60 -0
- package/dist/index-CDOqxSIi.d.ts +37 -0
- package/dist/index-CG6wj66Y.d.ts +148 -0
- package/dist/index-CIgoeobA.d.ts +145 -0
- package/dist/index-CPQDMSFS.d.ts +103 -0
- package/dist/index-CSRcgkVi.d.ts +23 -0
- package/dist/index-CZTnQIRU.d.ts +341 -0
- package/dist/index-CaM9JUcc.d.ts +144 -0
- package/dist/index-CkT2aUr3.d.ts +704 -0
- package/dist/index-CliOgq6L.d.ts +203 -0
- package/dist/index-CnzbJZP7.d.ts +999 -0
- package/dist/index-D6UeLAye.d.ts +63 -0
- package/dist/index-DGgh9DWn.d.ts +59 -0
- package/dist/index-DY3dNhMN.d.ts +420 -0
- package/dist/index-DZC-2o9R.d.ts +207 -0
- package/dist/index-DqbGqfAy.d.ts +127 -0
- package/dist/index-Dt1HJPTX.d.ts +12 -0
- package/dist/index-DtI6aBtB.d.ts +22 -0
- package/dist/index-FKohsiex.d.ts +38 -0
- package/dist/index-FbXPfen7.d.ts +132 -0
- package/dist/index-MArCb8Aq.d.ts +306 -0
- package/dist/index-N-huORcj.d.ts +303 -0
- package/dist/index-YOShAwkq.d.ts +45 -0
- package/dist/index-bZKZUvBu.d.ts +646 -0
- package/dist/index-yBSjMY32.d.ts +24 -0
- package/dist/index.d.ts +501 -544
- package/dist/index.js +1820 -2171
- package/dist/index.js.map +1 -1
- package/dist/init/index.d.ts +2 -2
- package/dist/init/index.js +3 -16
- package/dist/init/index.js.map +1 -1
- package/dist/init-Dy3KhT6Y.js +325 -0
- package/dist/init-Dy3KhT6Y.js.map +1 -0
- package/dist/instrumentation/index.d.ts +3 -4
- package/dist/instrumentation/index.js +5 -5
- package/dist/instrumentation/index.js.map +1 -1
- package/dist/instrumentation-xkkmDgJ0.js +1678 -0
- package/dist/instrumentation-xkkmDgJ0.js.map +1 -0
- package/dist/lake/index.d.ts +50 -54
- package/dist/lake/index.js +169 -193
- package/dist/lake/index.js.map +1 -1
- package/dist/layer/index.d.ts +3 -2
- package/dist/layer/index.js +4 -5
- package/dist/layer/index.js.map +1 -1
- package/dist/layer-BZBZZWeV.d.ts +69 -0
- package/dist/layer-Bcix-WCl.js +105 -0
- package/dist/layer-Bcix-WCl.js.map +1 -0
- package/dist/layer-CEKy6cm8.js +252 -0
- package/dist/layer-CEKy6cm8.js.map +1 -0
- package/dist/lifecycle/index.d.ts +2 -1
- package/dist/lifecycle/index.js +3 -4
- package/dist/lifecycle/index.js.map +1 -1
- package/dist/lifecycle-DeoLSX0U.js +76 -0
- package/dist/lifecycle-DeoLSX0U.js.map +1 -0
- package/dist/logger/index.d.ts +2 -3
- package/dist/logger/index.js +3 -3
- package/dist/logger/index.js.map +1 -1
- package/dist/logger-B6rCpb7D.js +290 -0
- package/dist/logger-B6rCpb7D.js.map +1 -0
- package/dist/metrics/index.d.ts +13 -14
- package/dist/metrics/index.js +3 -4
- package/dist/metrics/index.js.map +1 -1
- package/dist/metrics-BrLwNUrb.js +52 -0
- package/dist/metrics-BrLwNUrb.js.map +1 -0
- package/dist/metrics-collector-C2eShrlW.js +922 -0
- package/dist/metrics-collector-C2eShrlW.js.map +1 -0
- package/dist/middleware/index.d.ts +3 -3
- package/dist/middleware/index.js +3 -4
- package/dist/middleware/index.js.map +1 -1
- package/dist/middleware-CUxJVUpD.js +1243 -0
- package/dist/middleware-CUxJVUpD.js.map +1 -0
- package/dist/middleware-Cq0zFMGp.js +253 -0
- package/dist/middleware-Cq0zFMGp.js.map +1 -0
- package/dist/notifications/index.d.ts +2 -5
- package/dist/notifications/index.js +3 -6
- package/dist/notifications/index.js.map +1 -1
- package/dist/notifications-CdETrtFK.js +869 -0
- package/dist/notifications-CdETrtFK.js.map +1 -0
- package/dist/observability/index.d.ts +2 -3
- package/dist/observability/index.js +3 -4
- package/dist/observability/index.js.map +1 -1
- package/dist/observability-DBDXipTU.js +272 -0
- package/dist/observability-DBDXipTU.js.map +1 -0
- package/dist/platform/index.d.ts +2 -1
- package/dist/platform/index.js +3 -5
- package/dist/platform/index.js.map +1 -1
- package/dist/platform-DZwczW7v.js +1510 -0
- package/dist/platform-DZwczW7v.js.map +1 -0
- package/dist/prisma/generator/index.d.ts +1 -1
- package/dist/prisma/generator/index.js +97 -84
- package/dist/prisma/generator/index.js.map +1 -1
- package/dist/prisma/index.d.ts +4 -7
- package/dist/prisma/index.js +5 -12
- package/dist/prisma/index.js.map +1 -1
- package/dist/prisma-BzOOdt79.js +863 -0
- package/dist/prisma-BzOOdt79.js.map +1 -0
- package/dist/prisma-extension-Cfl09swM.d.ts +172 -0
- package/dist/product-alias/index.d.ts +2 -1
- package/dist/product-alias/index.js +3 -3
- package/dist/product-alias/index.js.map +1 -1
- package/dist/product-alias-BPqtskMq.js +273 -0
- package/dist/product-alias-BPqtskMq.js.map +1 -0
- package/dist/rbac/index.d.ts +2 -122
- package/dist/rbac/index.js +3 -6
- package/dist/rbac/index.js.map +1 -1
- package/dist/rbac-BB9l9Xph.js +1486 -0
- package/dist/rbac-BB9l9Xph.js.map +1 -0
- package/dist/resource-caps/index.d.ts +66 -72
- package/dist/resource-caps/index.js +430 -5
- package/dist/resource-caps/index.js.map +1 -1
- package/dist/rolldown-runtime-ad2WFvuA.js +17 -0
- package/dist/sdk-Dju9o-sq.js +124 -0
- package/dist/sdk-Dju9o-sq.js.map +1 -0
- package/dist/security-DIG-95Ic.js +1647 -0
- package/dist/security-DIG-95Ic.js.map +1 -0
- package/dist/server/index.d.ts +7 -164
- package/dist/server/index.js +2000 -1507
- package/dist/server/index.js.map +1 -1
- package/dist/service-jwt-Bu-WNA_-.js +80 -0
- package/dist/service-jwt-Bu-WNA_-.js.map +1 -0
- package/dist/services-BWzfz7vG.js +102 -0
- package/dist/services-BWzfz7vG.js.map +1 -0
- package/dist/sharding/index.d.ts +41 -44
- package/dist/sharding/index.js +156 -137
- package/dist/sharding/index.js.map +1 -1
- package/dist/sharing/index.d.ts +2 -1
- package/dist/sharing/index.js +3 -4
- package/dist/sharing/index.js.map +1 -1
- package/dist/sharing-CflDsSJ-.js +911 -0
- package/dist/sharing-CflDsSJ-.js.map +1 -0
- package/dist/stub-BqwKn4eh.js +630 -0
- package/dist/stub-BqwKn4eh.js.map +1 -0
- package/dist/tags/index.d.ts +2 -3
- package/dist/tags/index.js +3 -4
- package/dist/tags/index.js.map +1 -1
- package/dist/tags-B5xpbgsk.js +868 -0
- package/dist/{chunk-PBZFAAOM.js.map → tags-B5xpbgsk.js.map} +1 -1
- package/dist/telemetry/index.d.ts +64 -76
- package/dist/telemetry/index.js +369 -201
- package/dist/telemetry/index.js.map +1 -1
- package/dist/temporal/index.d.ts +2 -148
- package/dist/temporal/index.js +3 -5
- package/dist/temporal/index.js.map +1 -1
- package/dist/temporal-B534uYK8.js +706 -0
- package/dist/temporal-B534uYK8.js.map +1 -0
- package/dist/tracker/index.d.ts +5 -11
- package/dist/tracker/index.js +5 -20
- package/dist/tracker/index.js.map +1 -1
- package/dist/tracker-BQVoEFUo.js +839 -0
- package/dist/tracker-BQVoEFUo.js.map +1 -0
- package/dist/types-BYMYND1L.js +44 -0
- package/dist/types-BYMYND1L.js.map +1 -0
- package/dist/types-C6EKaS3V.d.ts +106 -0
- package/dist/types-CWybW61E.d.ts +323 -0
- package/dist/types-C_yfu3XK.d.ts +34 -0
- package/dist/types-Cj2RWXbz.js +90 -0
- package/dist/types-Cj2RWXbz.js.map +1 -0
- package/dist/types-DgaQqvxo.d.ts +70 -0
- package/dist/usage/index.d.ts +2 -213
- package/dist/usage/index.js +3 -15
- package/dist/usage/index.js.map +1 -1
- package/dist/usage-BKFZiWQn.js +682 -0
- package/dist/usage-BKFZiWQn.js.map +1 -0
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/index.js +3 -3
- package/dist/utils/index.js.map +1 -1
- package/dist/utils-DL85Tnbn.js +500 -0
- package/dist/utils-DL85Tnbn.js.map +1 -0
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/index.js +3 -3
- package/dist/validation/index.js.map +1 -1
- package/dist/validation-CPUITdMk.js +762 -0
- package/dist/validation-CPUITdMk.js.map +1 -0
- package/dist/workspace-extension-COrC0dYi.js +979 -0
- package/dist/workspace-extension-COrC0dYi.js.map +1 -0
- package/dist/{workspace-extension-BGwTOV_r.d.ts → workspace-extension-DTFTdGVF.d.ts} +43 -45
- package/package.json +7 -10
- package/dist/EventQueueFactory-GXC3A7DH.js +0 -8
- package/dist/EventQueueFactory-GXC3A7DH.js.map +0 -1
- package/dist/chunk-4XIBXZ6J.js +0 -276
- package/dist/chunk-4XIBXZ6J.js.map +0 -1
- package/dist/chunk-554Z4C2K.js +0 -1006
- package/dist/chunk-554Z4C2K.js.map +0 -1
- package/dist/chunk-5CAFHK2Z.js +0 -107
- package/dist/chunk-5CAFHK2Z.js.map +0 -1
- package/dist/chunk-63ZXJ42X.js +0 -451
- package/dist/chunk-63ZXJ42X.js.map +0 -1
- package/dist/chunk-6XEXJATV.js +0 -304
- package/dist/chunk-6XEXJATV.js.map +0 -1
- package/dist/chunk-726AR6Q7.js +0 -1532
- package/dist/chunk-726AR6Q7.js.map +0 -1
- package/dist/chunk-A5F6Z5UE.js +0 -21
- package/dist/chunk-A5F6Z5UE.js.map +0 -1
- package/dist/chunk-A6DE32ZS.js +0 -1507
- package/dist/chunk-A6DE32ZS.js.map +0 -1
- package/dist/chunk-AXJDGQPE.js +0 -690
- package/dist/chunk-AXJDGQPE.js.map +0 -1
- package/dist/chunk-BJQOGOVW.js +0 -602
- package/dist/chunk-BJQOGOVW.js.map +0 -1
- package/dist/chunk-CFXWH2IS.js +0 -52
- package/dist/chunk-CFXWH2IS.js.map +0 -1
- package/dist/chunk-DRWH5XCJ.js +0 -876
- package/dist/chunk-DRWH5XCJ.js.map +0 -1
- package/dist/chunk-E4QNLVY4.js +0 -909
- package/dist/chunk-E4QNLVY4.js.map +0 -1
- package/dist/chunk-EBDHIL7V.js +0 -774
- package/dist/chunk-EBDHIL7V.js.map +0 -1
- package/dist/chunk-ELU7VL3E.js +0 -245
- package/dist/chunk-ELU7VL3E.js.map +0 -1
- package/dist/chunk-FZRODKIN.js +0 -31
- package/dist/chunk-FZRODKIN.js.map +0 -1
- package/dist/chunk-GCIB76AJ.js +0 -882
- package/dist/chunk-GCIB76AJ.js.map +0 -1
- package/dist/chunk-HC6MPUIH.js +0 -1571
- package/dist/chunk-HC6MPUIH.js.map +0 -1
- package/dist/chunk-HNMHPSAM.js +0 -272
- package/dist/chunk-HNMHPSAM.js.map +0 -1
- package/dist/chunk-HTLEGD3Q.js +0 -1480
- package/dist/chunk-HTLEGD3Q.js.map +0 -1
- package/dist/chunk-I3KOWRT3.js +0 -89
- package/dist/chunk-I3KOWRT3.js.map +0 -1
- package/dist/chunk-ID3WR4JS.js +0 -509
- package/dist/chunk-ID3WR4JS.js.map +0 -1
- package/dist/chunk-JS52ZHTK.js +0 -1346
- package/dist/chunk-JS52ZHTK.js.map +0 -1
- package/dist/chunk-JVMAQOA3.js +0 -521
- package/dist/chunk-JVMAQOA3.js.map +0 -1
- package/dist/chunk-KH4TRQCO.js +0 -1063
- package/dist/chunk-KH4TRQCO.js.map +0 -1
- package/dist/chunk-KJOSPVB2.js +0 -57
- package/dist/chunk-KJOSPVB2.js.map +0 -1
- package/dist/chunk-KO2ZXZ7W.js +0 -61
- package/dist/chunk-KO2ZXZ7W.js.map +0 -1
- package/dist/chunk-KS2HQCJR.js +0 -56
- package/dist/chunk-KS2HQCJR.js.map +0 -1
- package/dist/chunk-LA5KPWZ2.js +0 -413
- package/dist/chunk-LA5KPWZ2.js.map +0 -1
- package/dist/chunk-MESLAC5W.js +0 -574
- package/dist/chunk-MESLAC5W.js.map +0 -1
- package/dist/chunk-MWPYA2HD.js +0 -94
- package/dist/chunk-MWPYA2HD.js.map +0 -1
- package/dist/chunk-NUB5GQTU.js +0 -270
- package/dist/chunk-NUB5GQTU.js.map +0 -1
- package/dist/chunk-OBBCR6WY.js +0 -277
- package/dist/chunk-OBBCR6WY.js.map +0 -1
- package/dist/chunk-OQDSAOG3.js +0 -1908
- package/dist/chunk-OQDSAOG3.js.map +0 -1
- package/dist/chunk-OXNCBE7P.js +0 -971
- package/dist/chunk-OXNCBE7P.js.map +0 -1
- package/dist/chunk-PBZFAAOM.js +0 -941
- package/dist/chunk-PN6GIF3R.js +0 -1185
- package/dist/chunk-PN6GIF3R.js.map +0 -1
- package/dist/chunk-PYD44IHJ.js +0 -728
- package/dist/chunk-PYD44IHJ.js.map +0 -1
- package/dist/chunk-QVPIACWD.js +0 -679
- package/dist/chunk-QVPIACWD.js.map +0 -1
- package/dist/chunk-QWNNFE4P.js +0 -41
- package/dist/chunk-QWNNFE4P.js.map +0 -1
- package/dist/chunk-RU266375.js +0 -327
- package/dist/chunk-RU266375.js.map +0 -1
- package/dist/chunk-RYTSVGGA.js +0 -1624
- package/dist/chunk-RYTSVGGA.js.map +0 -1
- package/dist/chunk-RZOFS2BQ.js +0 -225
- package/dist/chunk-RZOFS2BQ.js.map +0 -1
- package/dist/chunk-SBS4S2PJ.js +0 -100
- package/dist/chunk-SBS4S2PJ.js.map +0 -1
- package/dist/chunk-SPRG6G6G.js +0 -530
- package/dist/chunk-SPRG6G6G.js.map +0 -1
- package/dist/chunk-STWFX5E2.js +0 -233
- package/dist/chunk-STWFX5E2.js.map +0 -1
- package/dist/chunk-UNASM5VJ.js +0 -419
- package/dist/chunk-UNASM5VJ.js.map +0 -1
- package/dist/chunk-VAT66FJA.js +0 -245
- package/dist/chunk-VAT66FJA.js.map +0 -1
- package/dist/chunk-VFCMR5GX.js +0 -49
- package/dist/chunk-VFCMR5GX.js.map +0 -1
- package/dist/chunk-VGAHZKNJ.js +0 -66
- package/dist/chunk-VGAHZKNJ.js.map +0 -1
- package/dist/chunk-VTJTAAXC.js +0 -627
- package/dist/chunk-VTJTAAXC.js.map +0 -1
- package/dist/chunk-VXVLKRU6.js +0 -758
- package/dist/chunk-VXVLKRU6.js.map +0 -1
- package/dist/chunk-WWUU5ETI.js +0 -163
- package/dist/chunk-WWUU5ETI.js.map +0 -1
- package/dist/chunk-XE4OXN2W.js +0 -10
- package/dist/chunk-XE4OXN2W.js.map +0 -1
- package/dist/chunk-XOJORS75.js +0 -1853
- package/dist/chunk-XOJORS75.js.map +0 -1
- package/dist/chunk-YMZEUTD2.js +0 -110
- package/dist/chunk-YMZEUTD2.js.map +0 -1
- package/dist/chunk-Z77BTSOK.js +0 -617
- package/dist/chunk-Z77BTSOK.js.map +0 -1
- package/dist/chunk-ZZK3WEDI.js +0 -181
- package/dist/chunk-ZZK3WEDI.js.map +0 -1
- package/dist/client-CCXpAZ2r.d.ts +0 -89
- package/dist/client-DSI_760t.d.ts +0 -36
- package/dist/client-JU6T3UPB.js +0 -11
- package/dist/client-JU6T3UPB.js.map +0 -1
- package/dist/dist-2X4Q7PJA.js +0 -1491
- package/dist/dist-2X4Q7PJA.js.map +0 -1
- package/dist/env-4UWSUS64.js +0 -4
- package/dist/env-4UWSUS64.js.map +0 -1
- package/dist/graph-emitter-r5TylDBm.d.ts +0 -47
- package/dist/graphql-CMHMQjvd.d.ts +0 -23
- package/dist/i18n-Qm2AkPC-.d.ts +0 -33
- package/dist/index--yvpa6ay.d.ts +0 -83
- package/dist/index-4gKQKZ2B.d.ts +0 -71
- package/dist/index-5x0XMKXN.d.ts +0 -149
- package/dist/index-B70b5mYS.d.ts +0 -33
- package/dist/index-B8KrxO4j.d.ts +0 -755
- package/dist/index-BOuDKnqD.d.ts +0 -201
- package/dist/index-BTMt4OjA.d.ts +0 -201
- package/dist/index-BejbszA7.d.ts +0 -39
- package/dist/index-BkeOYZye.d.ts +0 -198
- package/dist/index-BuAj5nXg.d.ts +0 -83
- package/dist/index-BvkVcW8I.d.ts +0 -349
- package/dist/index-CWmH_-RZ.d.ts +0 -247
- package/dist/index-CbgWNcus.d.ts +0 -258
- package/dist/index-CmfPeQza.d.ts +0 -166
- package/dist/index-CmpG-zak.d.ts +0 -607
- package/dist/index-CoMKgL-p.d.ts +0 -12
- package/dist/index-D8HGwglK.d.ts +0 -541
- package/dist/index-DCaVm66D.d.ts +0 -1101
- package/dist/index-DE2w7E0d.d.ts +0 -83
- package/dist/index-DSOpj8DI.d.ts +0 -17
- package/dist/index-DW9q22GH.d.ts +0 -75
- package/dist/index-DnjJ9CwI.d.ts +0 -347
- package/dist/index-DwMJZ8PP.d.ts +0 -317
- package/dist/index-PaojfSdd.d.ts +0 -71
- package/dist/index-aHtYvc3i.d.ts +0 -284
- package/dist/index-e_18DzAg.d.ts +0 -18
- package/dist/index-ffmipXSA.d.ts +0 -55
- package/dist/index-joONjwLt.d.ts +0 -33
- package/dist/index-kssw5ziY.d.ts +0 -250
- package/dist/index-lFffh5-G.d.ts +0 -125
- package/dist/index-pxYge_6k.d.ts +0 -79
- package/dist/layer-Cv9vSwBx.d.ts +0 -70
- package/dist/pino-logger-H4HPW5P6.js +0 -5
- package/dist/pino-logger-H4HPW5P6.js.map +0 -1
- package/dist/prisma-extension-gYhYriA0.d.ts +0 -174
- package/dist/sdk-L75WWUP3.js +0 -156
- package/dist/sdk-L75WWUP3.js.map +0 -1
- package/dist/shutdown-registry-CW9LryO8.d.ts +0 -10
- package/dist/types-Bo2wkjSP.d.ts +0 -35
- package/dist/types-DVpvrAhd.d.ts +0 -71
- package/dist/types-DgJ4lDYA.d.ts +0 -108
- package/dist/types-USOv09qy.d.ts +0 -327
- package/dist/workspace-guard-NXVYYBVJ.js +0 -5
- package/dist/workspace-guard-NXVYYBVJ.js.map +0 -1
|
@@ -0,0 +1,704 @@
|
|
|
1
|
+
import { t as BurdenoffGraphQLClient } from "./graphql-DNkMkGBZ.js";
|
|
2
|
+
import { o as SDKContext } from "./index-BQDsNAMR.js";
|
|
3
|
+
import { m as ServiceLayer } from "./layer-BZBZZWeV.js";
|
|
4
|
+
type MaybePromise<T> = Promise<T> | T;
|
|
5
|
+
type AsyncIterableIteratorOrValue<T> = T | AsyncIterableIterator<T>;
|
|
6
|
+
type Maybe<T> = T | null | undefined;
|
|
7
|
+
interface ObjMap<T> {
|
|
8
|
+
[key: string]: T;
|
|
9
|
+
}
|
|
10
|
+
interface ExecutionArgs {
|
|
11
|
+
schema: any;
|
|
12
|
+
document: any;
|
|
13
|
+
rootValue?: any;
|
|
14
|
+
contextValue?: any;
|
|
15
|
+
variableValues?: any;
|
|
16
|
+
operationName?: any;
|
|
17
|
+
fieldResolver?: any;
|
|
18
|
+
typeResolver?: any;
|
|
19
|
+
subscribeFieldResolver?: any;
|
|
20
|
+
}
|
|
21
|
+
declare function parse(source: any, options?: any): any;
|
|
22
|
+
declare function execute(args: ExecutionArgs): any;
|
|
23
|
+
declare function subscribe(args: ExecutionArgs): any;
|
|
24
|
+
declare function validate(schema: any, documentAST: any, rules?: any, options?: any, typeInfo?: any): any;
|
|
25
|
+
type ExecuteFunction = typeof execute;
|
|
26
|
+
type SubscribeFunction = typeof subscribe;
|
|
27
|
+
type ParseFunction = typeof parse;
|
|
28
|
+
type ValidateFunction = typeof validate;
|
|
29
|
+
type ValidateFunctionParameter = {
|
|
30
|
+
/**
|
|
31
|
+
* GraphQL schema instance.
|
|
32
|
+
*/
|
|
33
|
+
schema: Parameters<ValidateFunction>[0];
|
|
34
|
+
/**
|
|
35
|
+
* Parsed document node.
|
|
36
|
+
*/
|
|
37
|
+
documentAST: Parameters<ValidateFunction>[1];
|
|
38
|
+
/**
|
|
39
|
+
* The rules used for validation.
|
|
40
|
+
* validate uses specifiedRules as exported by the GraphQL module if this parameter is undefined.
|
|
41
|
+
*/
|
|
42
|
+
rules?: Parameters<ValidateFunction>[2];
|
|
43
|
+
/**
|
|
44
|
+
* TypeInfo instance which is used for getting schema information during validation
|
|
45
|
+
*/
|
|
46
|
+
typeInfo?: Parameters<ValidateFunction>[3];
|
|
47
|
+
options?: Parameters<ValidateFunction>[4];
|
|
48
|
+
};
|
|
49
|
+
interface ExecutionResult<TData = ObjMap<unknown>, TExtensions = ObjMap<unknown>> {
|
|
50
|
+
errors?: ReadonlyArray<any>;
|
|
51
|
+
data?: TData | null;
|
|
52
|
+
extensions?: TExtensions;
|
|
53
|
+
}
|
|
54
|
+
interface IncrementalDeferResult<TData = Record<string, unknown>, TExtensions = Record<string, unknown>> extends ExecutionResult<TData, TExtensions> {
|
|
55
|
+
path?: ReadonlyArray<string | number>;
|
|
56
|
+
label?: string;
|
|
57
|
+
}
|
|
58
|
+
interface IncrementalStreamResult<TData = Array<unknown>, TExtensions = Record<string, unknown>> {
|
|
59
|
+
errors?: ReadonlyArray<any>;
|
|
60
|
+
items?: TData | null;
|
|
61
|
+
path?: ReadonlyArray<string | number>;
|
|
62
|
+
label?: string;
|
|
63
|
+
extensions?: TExtensions;
|
|
64
|
+
}
|
|
65
|
+
type IncrementalResult<TData = Record<string, unknown>, TExtensions = Record<string, unknown>> = IncrementalDeferResult<TData, TExtensions> | IncrementalStreamResult<TData, TExtensions>;
|
|
66
|
+
interface IncrementalExecutionResult<TData = Record<string, unknown>, TExtensions = Record<string, unknown>> extends ExecutionResult<TData, TExtensions> {
|
|
67
|
+
hasNext: boolean;
|
|
68
|
+
incremental?: ReadonlyArray<IncrementalResult<TData, TExtensions>>;
|
|
69
|
+
extensions?: TExtensions;
|
|
70
|
+
}
|
|
71
|
+
type SetSchemaFn = (newSchema: any) => void;
|
|
72
|
+
/**
|
|
73
|
+
* The payload forwarded to the onSchemaChange hook.
|
|
74
|
+
*/
|
|
75
|
+
type OnSchemaChangeEventPayload = {
|
|
76
|
+
schema: any;
|
|
77
|
+
replaceSchema: SetSchemaFn;
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* Invoked each time the schema is changed via a setSchema call.
|
|
81
|
+
*/
|
|
82
|
+
type OnSchemaChangeHook = (options: OnSchemaChangeEventPayload) => void;
|
|
83
|
+
type OnContextErrorHandlerPayload = {
|
|
84
|
+
/**
|
|
85
|
+
* The context object at the "last working" state
|
|
86
|
+
*/
|
|
87
|
+
context: Readonly<Record<string, unknown>>;
|
|
88
|
+
/** The error or thing that got rejected or thrown */
|
|
89
|
+
error: unknown;
|
|
90
|
+
/** Overwrite the error or thing that got rejected or thrown. */
|
|
91
|
+
setError: (err: unknown) => void;
|
|
92
|
+
};
|
|
93
|
+
type OnContextErrorHandler = (options: OnContextErrorHandlerPayload) => MaybePromise<void>;
|
|
94
|
+
type RegisterContextErrorHandler = (handler: OnContextErrorHandler) => void;
|
|
95
|
+
/**
|
|
96
|
+
* Payload forwarded to the onPluginInit hook.
|
|
97
|
+
*/
|
|
98
|
+
type OnPluginInitEventPayload<PluginContext extends Record<string, any>> = {
|
|
99
|
+
/**
|
|
100
|
+
* Register a new plugin.
|
|
101
|
+
*/
|
|
102
|
+
addPlugin: (newPlugin: Plugin<PluginContext>) => void;
|
|
103
|
+
/**
|
|
104
|
+
* A list of all currently active plugins.
|
|
105
|
+
*/
|
|
106
|
+
plugins: Plugin<PluginContext>[];
|
|
107
|
+
/**
|
|
108
|
+
* Set the GraphQL schema.
|
|
109
|
+
*/
|
|
110
|
+
setSchema: SetSchemaFn;
|
|
111
|
+
/**
|
|
112
|
+
* Register an error handler used for context creation.
|
|
113
|
+
*/
|
|
114
|
+
registerContextErrorHandler: RegisterContextErrorHandler;
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* Invoked when a plugin is initialized.
|
|
118
|
+
*/
|
|
119
|
+
type OnPluginInitHook<ContextType extends Record<string, any>> = (options: OnPluginInitEventPayload<ContextType>) => void;
|
|
120
|
+
/** onPluginInit */
|
|
121
|
+
type OnEnvelopedHookEventPayload<ContextType> = {
|
|
122
|
+
/**
|
|
123
|
+
* Set the schema that should be used for execution.
|
|
124
|
+
*/
|
|
125
|
+
setSchema: SetSchemaFn;
|
|
126
|
+
/**
|
|
127
|
+
* The context object.
|
|
128
|
+
*/
|
|
129
|
+
context: Readonly<Maybe<ContextType>>;
|
|
130
|
+
/**
|
|
131
|
+
* Extend the context object with a partial.
|
|
132
|
+
*/
|
|
133
|
+
extendContext: (contextExtension: Partial<ContextType>) => void;
|
|
134
|
+
};
|
|
135
|
+
type OnEnvelopedHook<ContextType> = (options: OnEnvelopedHookEventPayload<ContextType>) => void;
|
|
136
|
+
type OnParseEventPayload<ContextType> = {
|
|
137
|
+
/**
|
|
138
|
+
* The current context object.
|
|
139
|
+
*/
|
|
140
|
+
context: Readonly<ContextType>;
|
|
141
|
+
/**
|
|
142
|
+
* Extend the context object with a partial.
|
|
143
|
+
*/
|
|
144
|
+
extendContext: (contextExtension: Partial<ContextType>) => void;
|
|
145
|
+
/**
|
|
146
|
+
* The parameters that are passed to the parse call.
|
|
147
|
+
*/
|
|
148
|
+
params: {
|
|
149
|
+
source: string | any;
|
|
150
|
+
options?: any;
|
|
151
|
+
};
|
|
152
|
+
/**
|
|
153
|
+
* The current parse function
|
|
154
|
+
*/
|
|
155
|
+
parseFn: ParseFunction;
|
|
156
|
+
/**
|
|
157
|
+
* Replace the current parse function
|
|
158
|
+
*/
|
|
159
|
+
setParseFn: (newFn: ParseFunction) => void;
|
|
160
|
+
/**
|
|
161
|
+
* Set/overwrite the parsed document.
|
|
162
|
+
* If a parsed document is set the call to the parseFn will be skipped.
|
|
163
|
+
*/
|
|
164
|
+
setParsedDocument: (doc: any) => void;
|
|
165
|
+
};
|
|
166
|
+
type AfterParseEventPayload<ContextType> = {
|
|
167
|
+
/**
|
|
168
|
+
* The current context object.
|
|
169
|
+
*/
|
|
170
|
+
context: Readonly<ContextType>;
|
|
171
|
+
/**
|
|
172
|
+
* Extend the context object with a partial.
|
|
173
|
+
*/
|
|
174
|
+
extendContext: (contextExtension: Partial<ContextType>) => void;
|
|
175
|
+
/**
|
|
176
|
+
* The result of the parse phase.
|
|
177
|
+
*/
|
|
178
|
+
result: any | Error | null;
|
|
179
|
+
/**
|
|
180
|
+
* Replace the parse result with a new result.
|
|
181
|
+
*/
|
|
182
|
+
replaceParseResult: (newResult: any | Error) => void;
|
|
183
|
+
};
|
|
184
|
+
/**
|
|
185
|
+
* Hook that is invoked after the parse function has been invoked.
|
|
186
|
+
*/
|
|
187
|
+
type AfterParseHook<ContextType> = (options: AfterParseEventPayload<ContextType>) => void;
|
|
188
|
+
/**
|
|
189
|
+
* Hook that is invoked before the parse function is invoked.
|
|
190
|
+
*/
|
|
191
|
+
type OnParseHook<ContextType> = (options: OnParseEventPayload<ContextType>) => void | AfterParseHook<ContextType>;
|
|
192
|
+
/**
|
|
193
|
+
* Payload forwarded to the onValidate hook.
|
|
194
|
+
*/
|
|
195
|
+
type OnValidateEventPayload<ContextType> = {
|
|
196
|
+
/**
|
|
197
|
+
* The current context object.
|
|
198
|
+
*/
|
|
199
|
+
context: Readonly<ContextType>;
|
|
200
|
+
/**
|
|
201
|
+
* Extend the context object with a partial.
|
|
202
|
+
*/
|
|
203
|
+
extendContext: (contextExtension: Partial<ContextType>) => void;
|
|
204
|
+
/**
|
|
205
|
+
* The parameters with which the validate function will be invoked.
|
|
206
|
+
*/
|
|
207
|
+
params: ValidateFunctionParameter;
|
|
208
|
+
/**
|
|
209
|
+
* Register a validation rule that will be used for the validate invocation.
|
|
210
|
+
*/
|
|
211
|
+
addValidationRule: (rule: any) => void;
|
|
212
|
+
/**
|
|
213
|
+
* The current validate function that will be invoked.
|
|
214
|
+
*/
|
|
215
|
+
validateFn: ValidateFunction;
|
|
216
|
+
/**
|
|
217
|
+
* Overwrite the current validate function.
|
|
218
|
+
*/
|
|
219
|
+
setValidationFn: (newValidate: ValidateFunction) => void;
|
|
220
|
+
/**
|
|
221
|
+
* Set a validation error result and skip the validate invocation.
|
|
222
|
+
*/
|
|
223
|
+
setResult: (errors: readonly any[]) => void;
|
|
224
|
+
};
|
|
225
|
+
/**
|
|
226
|
+
* Payload forwarded to the afterValidate hook.
|
|
227
|
+
*/
|
|
228
|
+
type AfterValidateEventPayload<ContextType> = {
|
|
229
|
+
/**
|
|
230
|
+
* The current context object.
|
|
231
|
+
*/
|
|
232
|
+
context: Readonly<ContextType>;
|
|
233
|
+
/**
|
|
234
|
+
* Extend the context object with a partial.
|
|
235
|
+
*/
|
|
236
|
+
extendContext: (contextExtension: Partial<ContextType>) => void;
|
|
237
|
+
/**
|
|
238
|
+
* Whether the validation raised any errors or not.
|
|
239
|
+
*/
|
|
240
|
+
valid: boolean;
|
|
241
|
+
/**
|
|
242
|
+
* An array of errors that were raised during the validation phase.
|
|
243
|
+
* The array is empty if no errors were raised.
|
|
244
|
+
*/
|
|
245
|
+
result: readonly Error[] | any[];
|
|
246
|
+
/**
|
|
247
|
+
* Replace the current error result with a new one.
|
|
248
|
+
*/
|
|
249
|
+
setResult: (errors: Error[] | any[]) => void;
|
|
250
|
+
};
|
|
251
|
+
/**
|
|
252
|
+
* AfterValidateHook is invoked after the validate function has been invoked.
|
|
253
|
+
*/
|
|
254
|
+
type AfterValidateHook<ContextType> = (options: AfterValidateEventPayload<ContextType>) => void;
|
|
255
|
+
/**
|
|
256
|
+
* The OnValidateHook is invoked before the validate function has been invoked.
|
|
257
|
+
*/
|
|
258
|
+
type OnValidateHook<ContextType> = (options: OnValidateEventPayload<ContextType>) => void | AfterValidateHook<ContextType>;
|
|
259
|
+
/**
|
|
260
|
+
* The payload forwarded to the onContextBuilding hook.
|
|
261
|
+
*/
|
|
262
|
+
type OnContextBuildingEventPayload<ContextType> = {
|
|
263
|
+
/**
|
|
264
|
+
* The current context object.
|
|
265
|
+
*/
|
|
266
|
+
context: Readonly<ContextType>;
|
|
267
|
+
/**
|
|
268
|
+
* Extend the context object with a partial.
|
|
269
|
+
*/
|
|
270
|
+
extendContext: (contextExtension: Partial<ContextType>) => void;
|
|
271
|
+
/**
|
|
272
|
+
* Prevent calls on any further context building hooks.
|
|
273
|
+
*/
|
|
274
|
+
breakContextBuilding: () => void;
|
|
275
|
+
};
|
|
276
|
+
/**
|
|
277
|
+
* The payload forwarded to the afterContextBuilding hook.
|
|
278
|
+
*/
|
|
279
|
+
type AfterContextBuildingEventPayload<ContextType> = {
|
|
280
|
+
/**
|
|
281
|
+
* The current context object.
|
|
282
|
+
*/
|
|
283
|
+
context: ContextType;
|
|
284
|
+
/**
|
|
285
|
+
* Extend the context object with a partial.
|
|
286
|
+
*/
|
|
287
|
+
extendContext: (contextExtension: Partial<ContextType>) => void;
|
|
288
|
+
};
|
|
289
|
+
/**
|
|
290
|
+
* Invoked after the context has been builded.
|
|
291
|
+
*/
|
|
292
|
+
type AfterContextBuildingHook<ContextType> = (options: AfterContextBuildingEventPayload<ContextType>) => MaybePromise<void>;
|
|
293
|
+
/**
|
|
294
|
+
* Invoked before the context has been builded.
|
|
295
|
+
* Return a AfterContextBuildingHook, which is invoked after the context building has been finished.
|
|
296
|
+
*/
|
|
297
|
+
type OnContextBuildingHook<ContextType> = (options: OnContextBuildingEventPayload<ContextType>) => MaybePromise<void | AfterContextBuildingHook<ContextType>>;
|
|
298
|
+
/**
|
|
299
|
+
* Execution arguments with inferred context value type.
|
|
300
|
+
*/
|
|
301
|
+
type TypedExecutionArgs<ContextType> = Omit<ExecutionArgs, 'contextValue'> & {
|
|
302
|
+
contextValue: ContextType;
|
|
303
|
+
};
|
|
304
|
+
/**
|
|
305
|
+
* Payload that is passed to the onExecute hook.
|
|
306
|
+
*/
|
|
307
|
+
type OnExecuteEventPayload<ContextType> = {
|
|
308
|
+
/**
|
|
309
|
+
* Current execute function that will be used for execution.
|
|
310
|
+
*/
|
|
311
|
+
executeFn: ExecuteFunction;
|
|
312
|
+
/**
|
|
313
|
+
* Arguments the execute function will be invoked with.
|
|
314
|
+
*/
|
|
315
|
+
args: TypedExecutionArgs<ContextType>;
|
|
316
|
+
/**
|
|
317
|
+
* Replace the current execute function with a new one.
|
|
318
|
+
*/
|
|
319
|
+
setExecuteFn: (newExecute: ExecuteFunction) => void;
|
|
320
|
+
/**
|
|
321
|
+
* Set a execution result and skip calling the execute function.
|
|
322
|
+
*/
|
|
323
|
+
setResultAndStopExecution: (newResult: ExecutionResult) => void;
|
|
324
|
+
/**
|
|
325
|
+
* The context object.
|
|
326
|
+
*/
|
|
327
|
+
context: Readonly<ContextType>;
|
|
328
|
+
/**
|
|
329
|
+
* Extend the context object with a partial.
|
|
330
|
+
*/
|
|
331
|
+
extendContext: (contextExtension: Partial<ContextType>) => void;
|
|
332
|
+
};
|
|
333
|
+
/**
|
|
334
|
+
* Payload that is passed to the onExecuteDone hook.
|
|
335
|
+
*/
|
|
336
|
+
type OnExecuteDoneHookResultOnNextHookPayload<ContextType> = {
|
|
337
|
+
/**
|
|
338
|
+
* The execution arguments.
|
|
339
|
+
*/
|
|
340
|
+
args: TypedExecutionArgs<ContextType>;
|
|
341
|
+
/**
|
|
342
|
+
* The execution result.
|
|
343
|
+
*/
|
|
344
|
+
result: IncrementalExecutionResult | ExecutionResult;
|
|
345
|
+
/**
|
|
346
|
+
* Replace the execution result with a new execution result.
|
|
347
|
+
*/
|
|
348
|
+
setResult: (newResult: ExecutionResult) => void;
|
|
349
|
+
};
|
|
350
|
+
/**
|
|
351
|
+
* Hook that is invoked for each value a AsyncIterable returned from execute publishes.
|
|
352
|
+
*/
|
|
353
|
+
type OnExecuteDoneHookResultOnNextHook<ContextType> = (payload: OnExecuteDoneHookResultOnNextHookPayload<ContextType>) => void | Promise<void>;
|
|
354
|
+
/**
|
|
355
|
+
* Hook that is invoked after a AsyncIterable returned from execute completes.
|
|
356
|
+
*/
|
|
357
|
+
type OnExecuteDoneHookResultOnEndHook = () => void;
|
|
358
|
+
/**
|
|
359
|
+
* Hook for hooking into AsyncIterables returned from execute.
|
|
360
|
+
*/
|
|
361
|
+
type OnExecuteDoneHookResult<ContextType> = {
|
|
362
|
+
/**
|
|
363
|
+
* Hook that is invoked for each value a AsyncIterable returned from execute publishes.
|
|
364
|
+
*/
|
|
365
|
+
onNext?: OnExecuteDoneHookResultOnNextHook<ContextType>;
|
|
366
|
+
/**
|
|
367
|
+
* Hook that is invoked after a AsyncIterable returned from execute completes.
|
|
368
|
+
*/
|
|
369
|
+
onEnd?: OnExecuteDoneHookResultOnEndHook;
|
|
370
|
+
};
|
|
371
|
+
/**
|
|
372
|
+
* Payload with which the onExecuteDone hook is invoked.
|
|
373
|
+
*/
|
|
374
|
+
type OnExecuteDoneEventPayload<ContextType> = {
|
|
375
|
+
/**
|
|
376
|
+
* The execution arguments.
|
|
377
|
+
*/
|
|
378
|
+
args: TypedExecutionArgs<ContextType>;
|
|
379
|
+
/**
|
|
380
|
+
* The execution result returned from the execute function.
|
|
381
|
+
* Can return an AsyncIterable if a graphql.js that has defer/stream implemented is used.
|
|
382
|
+
*/
|
|
383
|
+
result: AsyncIterableIteratorOrValue<ExecutionResult>;
|
|
384
|
+
/**
|
|
385
|
+
* Replace the execution result with a new execution result.
|
|
386
|
+
*/
|
|
387
|
+
setResult: (newResult: AsyncIterableIteratorOrValue<ExecutionResult>) => void;
|
|
388
|
+
};
|
|
389
|
+
/**
|
|
390
|
+
* Hook that is invoked after the execute function has been invoked.
|
|
391
|
+
* Allows returning a OnExecuteDoneHookResult for hooking into stream values if execute returned an AsyncIterable.
|
|
392
|
+
*/
|
|
393
|
+
type OnExecuteDoneHook<ContextType> = (options: OnExecuteDoneEventPayload<ContextType>) => MaybePromise<void | OnExecuteDoneHookResult<ContextType>>;
|
|
394
|
+
/**
|
|
395
|
+
* Result returned from the onExecute hook result for hooking into subsequent phases.
|
|
396
|
+
*/
|
|
397
|
+
type OnExecuteHookResult<ContextType> = {
|
|
398
|
+
/**
|
|
399
|
+
* Invoked with the execution result returned from execute.
|
|
400
|
+
*/
|
|
401
|
+
onExecuteDone?: OnExecuteDoneHook<ContextType>;
|
|
402
|
+
};
|
|
403
|
+
/**
|
|
404
|
+
* onExecute hook that is invoked before the execute function is invoked.
|
|
405
|
+
*/
|
|
406
|
+
type OnExecuteHook<ContextType> = (options: OnExecuteEventPayload<ContextType>) => MaybePromise<void | OnExecuteHookResult<ContextType>>;
|
|
407
|
+
/**
|
|
408
|
+
* Subscription arguments with inferred context value type.
|
|
409
|
+
*/
|
|
410
|
+
type TypedSubscriptionArgs<ContextType> = Omit<ExecutionArgs, 'contextValue'> & {
|
|
411
|
+
contextValue: ContextType;
|
|
412
|
+
};
|
|
413
|
+
/**
|
|
414
|
+
* Payload with which the onSubscribe hook is invoked.
|
|
415
|
+
*/
|
|
416
|
+
type OnSubscribeEventPayload<ContextType> = {
|
|
417
|
+
/**
|
|
418
|
+
* Current subscribe function that will be used for setting up the subscription.
|
|
419
|
+
*/
|
|
420
|
+
subscribeFn: SubscribeFunction;
|
|
421
|
+
/**
|
|
422
|
+
* Current arguments with which the subscribe function will be invoked.
|
|
423
|
+
*/
|
|
424
|
+
args: TypedSubscriptionArgs<ContextType>;
|
|
425
|
+
/**
|
|
426
|
+
* Replace the current subscribe function with a new one that will be used for setting up the subscription.
|
|
427
|
+
*/
|
|
428
|
+
setSubscribeFn: (newSubscribe: SubscribeFunction) => void;
|
|
429
|
+
/**
|
|
430
|
+
* The context object.
|
|
431
|
+
*/
|
|
432
|
+
context: Readonly<ContextType>;
|
|
433
|
+
/**
|
|
434
|
+
* Extend the context object with a partial.
|
|
435
|
+
*/
|
|
436
|
+
extendContext: (contextExtension: Partial<ContextType>) => void;
|
|
437
|
+
/**
|
|
438
|
+
* Set a subscribe result and skip calling the subscribe function.
|
|
439
|
+
*/
|
|
440
|
+
setResultAndStopExecution: (newResult: AsyncIterableIteratorOrValue<ExecutionResult>) => void;
|
|
441
|
+
};
|
|
442
|
+
/**
|
|
443
|
+
* Payload with which the onSubscribeResult hook is invoked.
|
|
444
|
+
*/
|
|
445
|
+
type OnSubscribeResultEventPayload<ContextType> = {
|
|
446
|
+
/**
|
|
447
|
+
* The execution arguments.
|
|
448
|
+
*/
|
|
449
|
+
args: TypedExecutionArgs<ContextType>;
|
|
450
|
+
/**
|
|
451
|
+
* The current execution result.
|
|
452
|
+
*/
|
|
453
|
+
result: AsyncIterableIteratorOrValue<ExecutionResult>;
|
|
454
|
+
/**
|
|
455
|
+
* Replace the current execution result with a new execution result.
|
|
456
|
+
*/
|
|
457
|
+
setResult: (newResult: AsyncIterableIteratorOrValue<ExecutionResult>) => void;
|
|
458
|
+
};
|
|
459
|
+
type OnSubscribeResultResultOnNextHookPayload<ContextType> = {
|
|
460
|
+
/**
|
|
461
|
+
* The execution arguments.
|
|
462
|
+
*/
|
|
463
|
+
args: TypedExecutionArgs<ContextType>;
|
|
464
|
+
/**
|
|
465
|
+
* The current execution result.
|
|
466
|
+
*/
|
|
467
|
+
result: ExecutionResult;
|
|
468
|
+
/**
|
|
469
|
+
* Replace the current execution result with a new execution result.
|
|
470
|
+
*/
|
|
471
|
+
setResult: (newResult: ExecutionResult) => void;
|
|
472
|
+
};
|
|
473
|
+
/**
|
|
474
|
+
* Hook invoked for each value published by the AsyncIterable returned from subscribe.
|
|
475
|
+
*/
|
|
476
|
+
type OnSubscribeResultResultOnNextHook<ContextType> = (payload: OnSubscribeResultResultOnNextHookPayload<ContextType>) => void | Promise<void>;
|
|
477
|
+
/**
|
|
478
|
+
* Hook invoked after the AsyncIterable returned from subscribe completes.
|
|
479
|
+
*/
|
|
480
|
+
type OnSubscribeResultResultOnEndHook = () => void;
|
|
481
|
+
type OnSubscribeResultResult<ContextType> = {
|
|
482
|
+
/**
|
|
483
|
+
* Invoked for each value published by the AsyncIterable returned from subscribe.
|
|
484
|
+
*/
|
|
485
|
+
onNext?: OnSubscribeResultResultOnNextHook<ContextType>;
|
|
486
|
+
/**
|
|
487
|
+
* Invoked after the AsyncIterable returned from subscribe completes.
|
|
488
|
+
*/
|
|
489
|
+
onEnd?: OnSubscribeResultResultOnEndHook;
|
|
490
|
+
};
|
|
491
|
+
/**
|
|
492
|
+
* Hook that is invoked with the result of the subscribe call.
|
|
493
|
+
* Return a OnSubscribeResultResult for hooking into the AsyncIterable returned from subscribe.
|
|
494
|
+
*/
|
|
495
|
+
type SubscribeResultHook<ContextType> = (options: OnSubscribeResultEventPayload<ContextType>) => void | OnSubscribeResultResult<ContextType>;
|
|
496
|
+
type SubscribeErrorHookPayload = {
|
|
497
|
+
error: unknown;
|
|
498
|
+
setError: (err: unknown) => void;
|
|
499
|
+
};
|
|
500
|
+
type SubscribeErrorHook = (payload: SubscribeErrorHookPayload) => void;
|
|
501
|
+
type OnSubscribeHookResult<ContextType> = {
|
|
502
|
+
/**
|
|
503
|
+
* Invoked with the result returned from subscribe.
|
|
504
|
+
*/
|
|
505
|
+
onSubscribeResult?: SubscribeResultHook<ContextType>;
|
|
506
|
+
/**
|
|
507
|
+
* Invoked if the source stream returned from subscribe throws an error.
|
|
508
|
+
*/
|
|
509
|
+
onSubscribeError?: SubscribeErrorHook;
|
|
510
|
+
};
|
|
511
|
+
/**
|
|
512
|
+
* onSubscribe hook that is invoked before the subscribe function is called.
|
|
513
|
+
* Return a OnSubscribeHookResult for hooking into phase after the subscribe function has been called.
|
|
514
|
+
*/
|
|
515
|
+
type OnSubscribeHook<ContextType> = (options: OnSubscribeEventPayload<ContextType>) => MaybePromise<void | OnSubscribeHookResult<ContextType>>;
|
|
516
|
+
interface Plugin<PluginContext extends Record<string, any> = {}> {
|
|
517
|
+
/**
|
|
518
|
+
* Instrumentation wrapping each phases, including hooks executions.
|
|
519
|
+
*/
|
|
520
|
+
instrumentation?: Instrumentation<PluginContext>;
|
|
521
|
+
/**
|
|
522
|
+
* Invoked for each call to getEnveloped.
|
|
523
|
+
*/
|
|
524
|
+
onEnveloped?: OnEnvelopedHook<PluginContext>;
|
|
525
|
+
/**
|
|
526
|
+
* Invoked each time the GraphQL schema has been replaced from within a plugin.
|
|
527
|
+
*/
|
|
528
|
+
onSchemaChange?: OnSchemaChangeHook;
|
|
529
|
+
/**
|
|
530
|
+
* Invoked when a plugin is initialized.
|
|
531
|
+
*/
|
|
532
|
+
onPluginInit?: OnPluginInitHook<PluginContext>;
|
|
533
|
+
/**
|
|
534
|
+
* Invoked for each execute call.
|
|
535
|
+
*/
|
|
536
|
+
onExecute?: OnExecuteHook<PluginContext>;
|
|
537
|
+
/**
|
|
538
|
+
* Invoked for each subscribe call.
|
|
539
|
+
*/
|
|
540
|
+
onSubscribe?: OnSubscribeHook<PluginContext>;
|
|
541
|
+
/**
|
|
542
|
+
* Invoked for each parse call.
|
|
543
|
+
*/
|
|
544
|
+
onParse?: OnParseHook<PluginContext>;
|
|
545
|
+
/**
|
|
546
|
+
* Invoked for each validate call.
|
|
547
|
+
*/
|
|
548
|
+
onValidate?: OnValidateHook<PluginContext>;
|
|
549
|
+
/**
|
|
550
|
+
* Invoked for each time the context is builded.
|
|
551
|
+
*/
|
|
552
|
+
onContextBuilding?: OnContextBuildingHook<PluginContext>;
|
|
553
|
+
}
|
|
554
|
+
type Instrumentation<TContext extends Record<string, any>> = {
|
|
555
|
+
/**
|
|
556
|
+
* Wraps the initialization phase (`envelop` function call and `onEnvelop` hooks)
|
|
557
|
+
*/
|
|
558
|
+
init?: (payload: {
|
|
559
|
+
context: TContext;
|
|
560
|
+
}, wrapped: () => void) => void;
|
|
561
|
+
/**
|
|
562
|
+
* Wraps the parse phase (`parse` function call and `onParse` hooks)
|
|
563
|
+
*/
|
|
564
|
+
parse?: (payload: {
|
|
565
|
+
context: TContext;
|
|
566
|
+
}, wrapped: () => void) => void;
|
|
567
|
+
/**
|
|
568
|
+
* Wraps the validate phase (`validate` function call and `onValidate` hooks)
|
|
569
|
+
*/
|
|
570
|
+
validate?: (payload: {
|
|
571
|
+
context: TContext;
|
|
572
|
+
}, wrapped: () => void) => void;
|
|
573
|
+
/**
|
|
574
|
+
* Wraps the context building phase (`buildContext` function call)
|
|
575
|
+
*/
|
|
576
|
+
context?: (payload: {
|
|
577
|
+
context: TContext;
|
|
578
|
+
}, wrapped: () => void) => void;
|
|
579
|
+
/**
|
|
580
|
+
* Wraps the execute phase (`execute` function call and `onExecute` hooks)
|
|
581
|
+
*/
|
|
582
|
+
execute?: (payload: {
|
|
583
|
+
context: TContext;
|
|
584
|
+
}, wrapped: () => MaybePromise<void>) => MaybePromise<void>;
|
|
585
|
+
/**
|
|
586
|
+
* Wraps the subscribe phase (`subscribe` function call and `onSubsrcibe` hooks)
|
|
587
|
+
*/
|
|
588
|
+
subscribe?: (payload: {
|
|
589
|
+
context: TContext;
|
|
590
|
+
}, wrapped: () => MaybePromise<void>) => MaybePromise<void>;
|
|
591
|
+
};
|
|
592
|
+
type ActorType = 'USER' | 'BOT' | 'INTEGRATION' | 'DELEGATED_AGENT';
|
|
593
|
+
type RBACLayer = 'wspace' | 'global';
|
|
594
|
+
interface RBACDirectiveConfig {
|
|
595
|
+
rbacServiceUrl: string;
|
|
596
|
+
layer?: RBACLayer;
|
|
597
|
+
enableCaching?: boolean;
|
|
598
|
+
cacheTTL?: number;
|
|
599
|
+
cacheMaxSize?: number;
|
|
600
|
+
timeout?: number;
|
|
601
|
+
failClosed?: boolean;
|
|
602
|
+
resourceResolver?: (identifier: string, resourceType?: string) => Promise<string | null>;
|
|
603
|
+
skipRbac?: boolean;
|
|
604
|
+
}
|
|
605
|
+
interface CheckPermissionResult {
|
|
606
|
+
hasPermission: boolean;
|
|
607
|
+
reason?: string;
|
|
608
|
+
}
|
|
609
|
+
declare class RBACClient {
|
|
610
|
+
private client;
|
|
611
|
+
private cache?;
|
|
612
|
+
private config;
|
|
613
|
+
private timeoutMs;
|
|
614
|
+
constructor(config: RBACDirectiveConfig);
|
|
615
|
+
private parsePermission;
|
|
616
|
+
checkPermission(actorId: string, actorType: ActorType, scopeId: string, permission: string, resourceId?: string): Promise<CheckPermissionResult>;
|
|
617
|
+
clearCache(): void;
|
|
618
|
+
invalidateForActor(actorId: string): number;
|
|
619
|
+
getLayer(): RBACLayer;
|
|
620
|
+
}
|
|
621
|
+
declare function createRBACDirective(config: RBACDirectiveConfig): Plugin;
|
|
622
|
+
interface LayerAwareRBACConfig extends Omit<RBACDirectiveConfig, 'rbacServiceUrl' | 'layer'> {
|
|
623
|
+
rbacServiceUrl?: string;
|
|
624
|
+
}
|
|
625
|
+
declare function createRBACDirectiveForLayer(layer: ServiceLayer, config?: LayerAwareRBACConfig): Plugin;
|
|
626
|
+
declare function createRBACDirectiveFromEnv(serviceName: string, config?: LayerAwareRBACConfig): Plugin;
|
|
627
|
+
declare function createRBACClientFromEnv(options?: {
|
|
628
|
+
rbacServiceUrl?: string;
|
|
629
|
+
layer?: ServiceLayer;
|
|
630
|
+
failClosed?: boolean;
|
|
631
|
+
}): RBACClient;
|
|
632
|
+
type PBACActorType = 'USER' | 'BOT' | 'INTEGRATION' | 'DELEGATED_AGENT';
|
|
633
|
+
type PBACPermissionLevel = 'ADMIN' | 'EDITOR' | 'VIEWER' | 'NONE';
|
|
634
|
+
interface CheckPermissionOptions {
|
|
635
|
+
userId: string;
|
|
636
|
+
action: string;
|
|
637
|
+
resourceType: string;
|
|
638
|
+
resourceId?: string;
|
|
639
|
+
workspaceId?: string;
|
|
640
|
+
actorType?: PBACActorType;
|
|
641
|
+
}
|
|
642
|
+
interface EffectivePermissionEntry {
|
|
643
|
+
resourceType: string;
|
|
644
|
+
level: PBACPermissionLevel;
|
|
645
|
+
allowedActions: string[];
|
|
646
|
+
source: string;
|
|
647
|
+
}
|
|
648
|
+
interface RoleDefaultPermission {
|
|
649
|
+
resourceType: string;
|
|
650
|
+
level: PBACPermissionLevel;
|
|
651
|
+
}
|
|
652
|
+
interface Role {
|
|
653
|
+
id: string;
|
|
654
|
+
name: string;
|
|
655
|
+
description?: string;
|
|
656
|
+
defaultPermissions?: RoleDefaultPermission[];
|
|
657
|
+
}
|
|
658
|
+
interface Permission {
|
|
659
|
+
id: string;
|
|
660
|
+
action: string;
|
|
661
|
+
resourceType: string;
|
|
662
|
+
description?: string;
|
|
663
|
+
}
|
|
664
|
+
declare class RBACModule {
|
|
665
|
+
private client;
|
|
666
|
+
private context;
|
|
667
|
+
constructor(client: BurdenoffGraphQLClient, context: SDKContext);
|
|
668
|
+
checkPermission(options: CheckPermissionOptions): Promise<boolean>;
|
|
669
|
+
requirePermission(options: CheckPermissionOptions): Promise<void>;
|
|
670
|
+
getUserRoles(userId: string, workspaceId: string): Promise<Role[]>;
|
|
671
|
+
assignRoleToUser(userId: string, roleId: string, workspaceId: string, actorType?: 'USER' | 'BOT' | 'INTEGRATION' | 'DELEGATED_AGENT'): Promise<boolean>;
|
|
672
|
+
removeRoleFromUser(userId: string, roleId: string, workspaceId: string): Promise<boolean>;
|
|
673
|
+
createRole(name: string, description: string, defaultPermissions: RoleDefaultPermission[] | string[], workspaceId: string): Promise<Role>;
|
|
674
|
+
getAvailablePermissions(): Promise<Permission[]>;
|
|
675
|
+
checkMultiplePermissions(checks: CheckPermissionOptions[]): Promise<Array<{
|
|
676
|
+
allowed: boolean;
|
|
677
|
+
reason?: string;
|
|
678
|
+
}>>;
|
|
679
|
+
getEffectivePermissions(userId: string, workspaceId: string, actorType?: 'USER' | 'BOT' | 'INTEGRATION' | 'DELEGATED_AGENT'): Promise<{
|
|
680
|
+
actorId: string;
|
|
681
|
+
scopeId: string;
|
|
682
|
+
permissions: EffectivePermissionEntry[];
|
|
683
|
+
}>;
|
|
684
|
+
initializeWorkspaceRoles(workspaceId: string, ownerId: string): Promise<{
|
|
685
|
+
success: boolean;
|
|
686
|
+
rolesCreated: number;
|
|
687
|
+
roleNames: string[];
|
|
688
|
+
ownerAssigned: boolean;
|
|
689
|
+
message: string;
|
|
690
|
+
}>;
|
|
691
|
+
updateRole(roleId: string, updates: {
|
|
692
|
+
name?: string;
|
|
693
|
+
description?: string;
|
|
694
|
+
priority?: number;
|
|
695
|
+
}, workspaceId: string): Promise<Role>;
|
|
696
|
+
deleteRole(roleId: string, workspaceId: string, reassignToRoleId?: string): Promise<boolean>;
|
|
697
|
+
listRoles(workspaceId: string, options?: {
|
|
698
|
+
includeSystem?: boolean;
|
|
699
|
+
limit?: number;
|
|
700
|
+
offset?: number;
|
|
701
|
+
}): Promise<Role[]>;
|
|
702
|
+
getRole(roleId: string, workspaceId: string): Promise<Role | null>;
|
|
703
|
+
}
|
|
704
|
+
export { Permission as a, RoleDefaultPermission as c, RBACClient as d, RBACDirectiveConfig as f, createRBACDirectiveFromEnv as h, PBACPermissionLevel as i, createRBACClientFromEnv as l, createRBACDirectiveForLayer as m, EffectivePermissionEntry as n, RBACModule as o, createRBACDirective as p, PBACActorType as r, Role as s, CheckPermissionOptions as t, LayerAwareRBACConfig as u };
|