@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
package/dist/index.d.ts
CHANGED
|
@@ -1,610 +1,567 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
|
|
17
|
-
import {
|
|
18
|
-
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
export
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
import './graph-emitter-r5TylDBm.js';
|
|
66
|
-
import './prisma-extension-gYhYriA0.js';
|
|
67
|
-
import '@temporalio/client';
|
|
68
|
-
import '@temporalio/common';
|
|
69
|
-
import 'elysia';
|
|
70
|
-
import './types-Bo2wkjSP.js';
|
|
71
|
-
import './graphql/services/index.js';
|
|
72
|
-
import './i18n-Qm2AkPC-.js';
|
|
73
|
-
import './index-BOuDKnqD.js';
|
|
74
|
-
|
|
75
|
-
declare class ContextManager {
|
|
76
|
-
static getContext(): SDKContext | undefined;
|
|
77
|
-
static setContext(context: SDKContext): void;
|
|
78
|
-
static setCfAccessContext(clientId?: string, clientSecret?: string, cfAuthorization?: string): void;
|
|
79
|
-
static withContext<T>(context: SDKContext, fn: () => Promise<T>): Promise<T>;
|
|
80
|
-
static withContextSync<T>(context: SDKContext, fn: () => T): T;
|
|
81
|
-
static clearContext(): void;
|
|
82
|
-
static getActorId(): string | undefined;
|
|
83
|
-
static getUser(): string | undefined;
|
|
84
|
-
static getWorkspace(): string | undefined;
|
|
85
|
-
static getTenant(): string | undefined;
|
|
86
|
-
static getOrganization(): string | undefined;
|
|
87
|
-
static getProject(): string | undefined;
|
|
88
|
-
static getApp(): string | undefined;
|
|
89
|
-
static getToken(): string | undefined;
|
|
90
|
-
static getProduct(): string | undefined;
|
|
91
|
-
static getCfAccessClientId(): string | undefined;
|
|
92
|
-
static getCfAccessClientSecret(): string | undefined;
|
|
93
|
-
static getCfAuthorization(): string | undefined;
|
|
94
|
-
static getCfAccessHeaders(): Record<string, string>;
|
|
95
|
-
static updateContext(updates: Partial<SDKContext>): void;
|
|
96
|
-
static hasContext(): boolean;
|
|
97
|
-
static getCustomField(key: string): unknown;
|
|
98
|
-
static setCustomField(key: string, value: unknown): void;
|
|
99
|
-
}
|
|
100
|
-
|
|
1
|
+
import { a as DEFAULT_LAYER_RESOURCES, c as GatewayRetryConfig, d as LayerFullConfig, f as LayerGatewayConfig, i as DEFAULT_GATEWAY_ROUTING, l as GatewayRoutingConfig, m as ServiceLayer, n as DEFAULT_CIRCUIT_BREAKER_CONFIG, o as DEFAULT_LAYER_STREAMS, p as LayerResourceUrls, r as DEFAULT_GATEWAY_RETRY_CONFIG, s as GatewayRequestHeaders, t as CircuitBreakerConfig, u as LayerConfig } from "./layer-BZBZZWeV.js";
|
|
2
|
+
import { a as SDKConfig, c as SDKHealthStatus, i as LoggerTransport, l as SDKShutdownOptions, n as EventQueueSDKConfig, o as SDKContext, r as LoggerConfig, t as EventQueueHealthStatus, u as TemporalHealthStatus } from "./index-BQDsNAMR.js";
|
|
3
|
+
import { c as index_d_exports$17, r as Logger } from "./index-BKwHQtHQ.js";
|
|
4
|
+
import { t as AuthModule } from "./index-D6UeLAye.js";
|
|
5
|
+
import { _ as TenantNotificationsModule, o as NotificationsModule, v as tenant_notifications_d_exports } from "./index-N-huORcj.js";
|
|
6
|
+
import { f as RBACDirectiveConfig, h as createRBACDirectiveFromEnv, m as createRBACDirectiveForLayer, o as RBACModule, p as createRBACDirective, u as LayerAwareRBACConfig } from "./index-CkT2aUr3.js";
|
|
7
|
+
import { C as Activity, D as GetActivitiesOptions, E as ActivityOperationUnsupportedError, O as LogActivityOptions, T as ActivityModule, r as TrackerModule, w as ActivityActorType } from "./index-CZTnQIRU.js";
|
|
8
|
+
import { C as OrgBillingUsageOperationInput, S as BillingUsageOperationInput, T as WorkspaceBillingUsageOperationInput, b as BillingUsageClient, m as UsageModule, w as QuotaLimit, x as BillingUsageClientConfig } from "./index-DZC-2o9R.js";
|
|
9
|
+
import { DatabaseConfig, DatabaseModule } from "./database/index.js";
|
|
10
|
+
import { Zt as IEventPublisher, t as index_d_exports$5, yt as EventsModule } from "./index-CnzbJZP7.js";
|
|
11
|
+
import { i as GraphModule, u as index_d_exports$10 } from "./index-bZKZUvBu.js";
|
|
12
|
+
import { t as BurdenoffGraphQLClient } from "./graphql-DNkMkGBZ.js";
|
|
13
|
+
import { a as TemporalWorkerManager, c as TemporalClientFactory, i as TemporalWorkerFactory, l as WorkflowStartOptions, n as TemporalWorker, o as TemporalClient, r as TemporalWorkerConfig, s as TemporalClientConfig, t as TemporalModule } from "./index-CaM9JUcc.js";
|
|
14
|
+
import { createInternalClient, createInternalClientForTenant, createInternalClientForWorkspaces } from "./client/internal-client.js";
|
|
15
|
+
import { a as registerDisposable, i as getRegisteredDisposableCount, n as ShutdownDisposable, o as unregisterDisposable, r as disposeAll, t as index_d_exports$16 } from "./index-Dt1HJPTX.js";
|
|
16
|
+
import { BillingPlanTransport, PlanTier, RESOURCE_CAP_DEFAULTS, ResourceCap, ResourceCapDefaults, ResourceCapExceededError, ResourceCapsConfig, ResourceCapsModule, ResourceName, WorkspaceResourceCapScope, configureResourceCaps, getResourceCaps } from "./resource-caps/index.js";
|
|
17
|
+
import { t as index_d_exports$23 } from "./index-CliOgq6L.js";
|
|
18
|
+
import { t as index_d_exports$24 } from "./index-3KOZ1zN9.js";
|
|
19
|
+
import { t as index_d_exports$8 } from "./index-BGzMYJsm.js";
|
|
20
|
+
import { t as index_d_exports } from "./index-FbXPfen7.js";
|
|
21
|
+
import { o as index_d_exports$1 } from "./index-MArCb8Aq.js";
|
|
22
|
+
import { t as index_d_exports$18 } from "./index-BMIMnp6T.js";
|
|
23
|
+
import { t as index_d_exports$19 } from "./index-C5uEKchX.js";
|
|
24
|
+
import { t as index_d_exports$11 } from "./index-CSRcgkVi.js";
|
|
25
|
+
import { t as index_d_exports$21 } from "./index-BiTzGUZP.js";
|
|
26
|
+
import { s as index_d_exports$25 } from "./index-FKohsiex.js";
|
|
27
|
+
import { C as getLocale, S as getLanguage, T as t, b as Translator, r as index_d_exports$12, w as hasI18n, x as createTranslator, y as I18nCapableContext } from "./index-CPQDMSFS.js";
|
|
28
|
+
import { t as index_d_exports$6 } from "./index-BeVtqGO-.js";
|
|
29
|
+
import { n as index_d_exports$13 } from "./index-DqbGqfAy.js";
|
|
30
|
+
import { p as index_d_exports$4 } from "./index-DGgh9DWn.js";
|
|
31
|
+
import { a as index_d_exports$14 } from "./index-BqYfCQSP.js";
|
|
32
|
+
import { a as index_d_exports$15 } from "./index-CDOqxSIi.js";
|
|
33
|
+
import { t as index_d_exports$3 } from "./index-BVOL7458.js";
|
|
34
|
+
import { t as index_d_exports$9 } from "./index-YOShAwkq.js";
|
|
35
|
+
import { t as index_d_exports$7 } from "./index-BcqQs-Uq.js";
|
|
36
|
+
import { a as index_d_exports$2, c as verifyCaptchaIfEnabled, n as RecaptchaVerifyResult, o as isCaptchaEnabled, s as verifyCaptcha, t as RecaptchaVerifyOptions } from "./index-yBSjMY32.js";
|
|
37
|
+
import { t as index_d_exports$20 } from "./index-DY3dNhMN.js";
|
|
38
|
+
import { B as validateUsername, D as assertRbacCoverage, E as analyzeRbacCoverage, F as validateUserFields, G as lengthInCodePoints, H as NAME_MIN_LENGTH, I as USERNAME_MAX_LENGTH, K as validateName, L as USERNAME_MIN_LENGTH, M as UserFieldKey, N as UserFieldsValidationResult, P as ValidatedUserFields, R as UsernameErrorCode, U as NameErrorCode, V as NAME_MAX_LENGTH, W as NameValidationResult, _ as RbacCoverageError, b as RbacCoverageSource, j as UserFieldError, t as index_d_exports$26, v as RbacCoverageOptions, y as RbacCoverageReport, z as UsernameValidationResult } from "./index-CIgoeobA.js";
|
|
39
|
+
import { A as normalizeTemplateKey, C as isSameTemplateKey, D as normalizeProductSlug, E as normalizeGraphQLName, F as templateKeyVariants, I as toCurrentName, L as toLegacyName, M as quotaKeyVariants, N as rbacResourceVariants, O as normalizeQuotaKey, P as readRenamedEnv, S as isSameRbacResource, T as normalizeBillingId, _ as isSameBillingId, a as ProductRename, b as isSameProductSlug, c as billingIdVariants, d as emitProductSlug, f as emitQuotaKey, g as isLegacyName, h as index_d_exports$22, i as PRODUCT_SLUG_ALIASES, j as productSlugVariants, k as normalizeRbacResource, l as emitBillingId, m as emitTemplateKey, n as PRODUCT_RENAMES, o as RENAME_CONCERNS, p as emitRbacResource, r as PRODUCT_RENAME_EMIT, s as RenameConcern, t as EmitGeneration, u as emitName, v as isSameGraphQLName, w as nameVariants, x as isSameQuotaKey, y as isSameName } from "./index-BBqooJ52.js";
|
|
40
|
+
export declare class ContextManager {
|
|
41
|
+
static getContext(): SDKContext | undefined;
|
|
42
|
+
static setContext(context: SDKContext): void;
|
|
43
|
+
static setCfAccessContext(clientId?: string, clientSecret?: string, cfAuthorization?: string): void;
|
|
44
|
+
static withContext<T>(context: SDKContext, fn: () => Promise<T>): Promise<T>;
|
|
45
|
+
static withContextSync<T>(context: SDKContext, fn: () => T): T;
|
|
46
|
+
static clearContext(): void;
|
|
47
|
+
static getActorId(): string | undefined;
|
|
48
|
+
static getUser(): string | undefined;
|
|
49
|
+
static getWorkspace(): string | undefined;
|
|
50
|
+
static getTenant(): string | undefined;
|
|
51
|
+
static getOrganization(): string | undefined;
|
|
52
|
+
static getProject(): string | undefined;
|
|
53
|
+
static getApp(): string | undefined;
|
|
54
|
+
static getToken(): string | undefined;
|
|
55
|
+
static getProduct(): string | undefined;
|
|
56
|
+
static getCfAccessClientId(): string | undefined;
|
|
57
|
+
static getCfAccessClientSecret(): string | undefined;
|
|
58
|
+
static getCfAuthorization(): string | undefined;
|
|
59
|
+
static getCfAccessHeaders(): Record<string, string>;
|
|
60
|
+
static updateContext(updates: Partial<SDKContext>): void;
|
|
61
|
+
static hasContext(): boolean;
|
|
62
|
+
static getCustomField(key: string): unknown;
|
|
63
|
+
static setCustomField(key: string, value: unknown): void;
|
|
64
|
+
}
|
|
101
65
|
interface SearchOptions {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
66
|
+
query: string;
|
|
67
|
+
resourceTypes?: string[];
|
|
68
|
+
workspaceId?: string;
|
|
69
|
+
organizationId?: string;
|
|
70
|
+
projectId?: string;
|
|
71
|
+
fields?: string[];
|
|
72
|
+
fuzziness?: number;
|
|
73
|
+
boosts?: Record<string, number>;
|
|
74
|
+
filters?: SearchFilter[];
|
|
75
|
+
sort?: SearchSort[];
|
|
76
|
+
limit?: number;
|
|
77
|
+
offset?: number;
|
|
78
|
+
highlight?: boolean;
|
|
115
79
|
}
|
|
116
80
|
interface SearchFilter {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
81
|
+
field: string;
|
|
82
|
+
operator: 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'range';
|
|
83
|
+
value: unknown;
|
|
120
84
|
}
|
|
121
85
|
interface SearchSort {
|
|
122
|
-
|
|
123
|
-
|
|
86
|
+
field: string;
|
|
87
|
+
order: 'asc' | 'desc';
|
|
124
88
|
}
|
|
125
89
|
interface SearchResult {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
90
|
+
id: string;
|
|
91
|
+
type: string;
|
|
92
|
+
title: string;
|
|
93
|
+
description?: string;
|
|
94
|
+
data: Record<string, unknown>;
|
|
95
|
+
workspaceId?: string;
|
|
96
|
+
organizationId?: string;
|
|
97
|
+
projectId?: string;
|
|
98
|
+
score: number;
|
|
99
|
+
highlights?: Record<string, string[]>;
|
|
100
|
+
createdAt: string;
|
|
101
|
+
updatedAt: string;
|
|
138
102
|
}
|
|
139
103
|
interface SearchResponse {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
104
|
+
results: SearchResult[];
|
|
105
|
+
total: number;
|
|
106
|
+
took: number;
|
|
107
|
+
aggregations?: Record<string, SearchAggregation>;
|
|
144
108
|
}
|
|
145
109
|
interface SearchAggregation {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
110
|
+
buckets: Array<{
|
|
111
|
+
key: string;
|
|
112
|
+
count: number;
|
|
113
|
+
}>;
|
|
150
114
|
}
|
|
151
115
|
interface IndexDocumentOptions {
|
|
116
|
+
id: string;
|
|
117
|
+
type: string;
|
|
118
|
+
title: string;
|
|
119
|
+
description?: string;
|
|
120
|
+
content?: string;
|
|
121
|
+
data: Record<string, unknown>;
|
|
122
|
+
workspaceId?: string;
|
|
123
|
+
organizationId?: string;
|
|
124
|
+
projectId?: string;
|
|
125
|
+
tags?: string[];
|
|
126
|
+
metadata?: Record<string, unknown>;
|
|
127
|
+
}
|
|
128
|
+
export declare class SearchModule {
|
|
129
|
+
private client;
|
|
130
|
+
private context;
|
|
131
|
+
constructor(client: BurdenoffGraphQLClient, context: SDKContext);
|
|
132
|
+
search(options: SearchOptions): Promise<SearchResponse>;
|
|
133
|
+
indexDocument(options: IndexDocumentOptions): Promise<{
|
|
134
|
+
id: string;
|
|
135
|
+
indexed: boolean;
|
|
136
|
+
}>;
|
|
137
|
+
removeDocument(id: string, type: string): Promise<boolean>;
|
|
138
|
+
updateDocument(id: string, type: string, updates: Partial<IndexDocumentOptions>): Promise<{
|
|
152
139
|
id: string;
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
140
|
+
updated: boolean;
|
|
141
|
+
}>;
|
|
142
|
+
indexDocumentsBulk(documents: IndexDocumentOptions[]): Promise<{
|
|
143
|
+
indexed: number;
|
|
144
|
+
failed: number;
|
|
145
|
+
errors: string[];
|
|
146
|
+
}>;
|
|
147
|
+
suggest(prefix: string, options?: {
|
|
148
|
+
resourceTypes?: string[];
|
|
149
|
+
limit?: number;
|
|
150
|
+
}): Promise<Array<{
|
|
151
|
+
text: string;
|
|
152
|
+
score: number;
|
|
153
|
+
type?: string;
|
|
154
|
+
}>>;
|
|
155
|
+
getRelated(documentId: string, options?: {
|
|
156
|
+
limit?: number;
|
|
157
|
+
minScore?: number;
|
|
158
|
+
}): Promise<SearchResult[]>;
|
|
159
|
+
aggregate(query: string, aggregations: Array<{
|
|
160
|
+
field: string;
|
|
161
|
+
type: 'terms' | 'date_histogram' | 'range';
|
|
162
|
+
size?: number;
|
|
163
|
+
}>): Promise<Record<string, SearchAggregation>>;
|
|
164
|
+
clearIndex(workspaceId?: string): Promise<{
|
|
165
|
+
deletedCount: number;
|
|
166
|
+
}>;
|
|
167
|
+
reindex(options?: {
|
|
158
168
|
workspaceId?: string;
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
169
|
+
resourceTypes?: string[];
|
|
170
|
+
}): Promise<{
|
|
171
|
+
indexed: number;
|
|
172
|
+
failed: number;
|
|
173
|
+
}>;
|
|
163
174
|
}
|
|
164
|
-
declare class SearchModule {
|
|
165
|
-
private client;
|
|
166
|
-
private context;
|
|
167
|
-
constructor(client: BurdenoffGraphQLClient, context: SDKContext);
|
|
168
|
-
search(options: SearchOptions): Promise<SearchResponse>;
|
|
169
|
-
indexDocument(options: IndexDocumentOptions): Promise<{
|
|
170
|
-
id: string;
|
|
171
|
-
indexed: boolean;
|
|
172
|
-
}>;
|
|
173
|
-
removeDocument(id: string, type: string): Promise<boolean>;
|
|
174
|
-
updateDocument(id: string, type: string, updates: Partial<IndexDocumentOptions>): Promise<{
|
|
175
|
-
id: string;
|
|
176
|
-
updated: boolean;
|
|
177
|
-
}>;
|
|
178
|
-
indexDocumentsBulk(documents: IndexDocumentOptions[]): Promise<{
|
|
179
|
-
indexed: number;
|
|
180
|
-
failed: number;
|
|
181
|
-
errors: string[];
|
|
182
|
-
}>;
|
|
183
|
-
suggest(prefix: string, options?: {
|
|
184
|
-
resourceTypes?: string[];
|
|
185
|
-
limit?: number;
|
|
186
|
-
}): Promise<Array<{
|
|
187
|
-
text: string;
|
|
188
|
-
score: number;
|
|
189
|
-
type?: string;
|
|
190
|
-
}>>;
|
|
191
|
-
getRelated(documentId: string, options?: {
|
|
192
|
-
limit?: number;
|
|
193
|
-
minScore?: number;
|
|
194
|
-
}): Promise<SearchResult[]>;
|
|
195
|
-
aggregate(query: string, aggregations: Array<{
|
|
196
|
-
field: string;
|
|
197
|
-
type: 'terms' | 'date_histogram' | 'range';
|
|
198
|
-
size?: number;
|
|
199
|
-
}>): Promise<Record<string, SearchAggregation>>;
|
|
200
|
-
clearIndex(workspaceId?: string): Promise<{
|
|
201
|
-
deletedCount: number;
|
|
202
|
-
}>;
|
|
203
|
-
reindex(options?: {
|
|
204
|
-
workspaceId?: string;
|
|
205
|
-
resourceTypes?: string[];
|
|
206
|
-
}): Promise<{
|
|
207
|
-
indexed: number;
|
|
208
|
-
failed: number;
|
|
209
|
-
}>;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
175
|
type SupportedLanguage = 'en' | 'es' | 'fr' | 'de' | 'it' | 'pt' | 'ru' | 'zh' | 'ja' | 'ko' | 'ar' | 'hi' | 'bn' | 'ta' | 'te' | 'ml';
|
|
213
176
|
interface TranslationOptions {
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
177
|
+
text: string;
|
|
178
|
+
sourceLanguage?: SupportedLanguage;
|
|
179
|
+
targetLanguage: SupportedLanguage;
|
|
180
|
+
context?: string;
|
|
181
|
+
variables?: Record<string, string | number>;
|
|
219
182
|
}
|
|
220
183
|
interface Translation {
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
184
|
+
original: string;
|
|
185
|
+
translated: string;
|
|
186
|
+
sourceLanguage: string;
|
|
187
|
+
targetLanguage: string;
|
|
188
|
+
confidence?: number;
|
|
226
189
|
}
|
|
227
190
|
interface GetTranslationsOptions {
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
191
|
+
keys: string[];
|
|
192
|
+
language: SupportedLanguage;
|
|
193
|
+
namespace?: string;
|
|
194
|
+
fallbackLanguage?: SupportedLanguage;
|
|
232
195
|
}
|
|
233
196
|
interface TranslationKey {
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
197
|
+
key: string;
|
|
198
|
+
value: string;
|
|
199
|
+
language: SupportedLanguage;
|
|
200
|
+
namespace?: string;
|
|
201
|
+
description?: string;
|
|
202
|
+
variables?: string[];
|
|
240
203
|
}
|
|
241
204
|
interface SetTranslationOptions {
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
205
|
+
key: string;
|
|
206
|
+
value: string;
|
|
207
|
+
language: SupportedLanguage;
|
|
208
|
+
namespace?: string;
|
|
209
|
+
description?: string;
|
|
210
|
+
variables?: string[];
|
|
248
211
|
}
|
|
249
212
|
type TranslationExportFormat = 'JSON' | 'CSV' | 'XLSX' | 'PO' | 'XLIFF';
|
|
250
213
|
interface ProductTranslationTree {
|
|
251
|
-
|
|
214
|
+
[key: string]: string | ProductTranslationTree;
|
|
252
215
|
}
|
|
253
216
|
interface ExportProductTranslationsOptions {
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
217
|
+
productId?: string;
|
|
218
|
+
productName?: string;
|
|
219
|
+
languageCode?: string;
|
|
220
|
+
format?: TranslationExportFormat;
|
|
221
|
+
decodeJson?: boolean;
|
|
259
222
|
}
|
|
260
223
|
interface ProductTranslationsExportResult {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
224
|
+
format: TranslationExportFormat;
|
|
225
|
+
url: string;
|
|
226
|
+
translations?: Record<string, unknown>;
|
|
264
227
|
}
|
|
265
228
|
interface UpsertProductTranslationsOptions {
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
229
|
+
productId?: string;
|
|
230
|
+
productName?: string;
|
|
231
|
+
languageCode: string;
|
|
232
|
+
translations: Record<string, string> | ProductTranslationTree;
|
|
233
|
+
defaultValues?: Record<string, string> | ProductTranslationTree;
|
|
234
|
+
updateExisting?: boolean;
|
|
235
|
+
publish?: boolean;
|
|
273
236
|
}
|
|
274
237
|
interface UpsertProductTranslationsResult {
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
}
|
|
283
|
-
declare class TranslationModule {
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
}
|
|
330
|
-
|
|
238
|
+
productId: string;
|
|
239
|
+
languageCode: string;
|
|
240
|
+
keysProcessed: number;
|
|
241
|
+
createdKeys: number;
|
|
242
|
+
updatedKeyDefaults: number;
|
|
243
|
+
createdTranslations: number;
|
|
244
|
+
updatedTranslations: number;
|
|
245
|
+
}
|
|
246
|
+
export declare class TranslationModule {
|
|
247
|
+
private client;
|
|
248
|
+
private context;
|
|
249
|
+
constructor(client: BurdenoffGraphQLClient, context: SDKContext);
|
|
250
|
+
translate(options: TranslationOptions): Promise<Translation>;
|
|
251
|
+
getTranslations(options: GetTranslationsOptions): Promise<Record<string, string>>;
|
|
252
|
+
get(key: string, language: SupportedLanguage, variables?: Record<string, string | number>): Promise<string>;
|
|
253
|
+
setTranslation(options: SetTranslationOptions): Promise<TranslationKey>;
|
|
254
|
+
deleteTranslation(key: string, language: SupportedLanguage, namespace?: string): Promise<boolean>;
|
|
255
|
+
setTranslationsBatch(translations: SetTranslationOptions[]): Promise<TranslationKey[]>;
|
|
256
|
+
getAllTranslations(language: SupportedLanguage, namespace?: string): Promise<TranslationKey[]>;
|
|
257
|
+
detectLanguage(text: string): Promise<{
|
|
258
|
+
language: SupportedLanguage;
|
|
259
|
+
confidence: number;
|
|
260
|
+
}>;
|
|
261
|
+
getSupportedLanguages(): Promise<Array<{
|
|
262
|
+
code: SupportedLanguage;
|
|
263
|
+
name: string;
|
|
264
|
+
nativeName: string;
|
|
265
|
+
}>>;
|
|
266
|
+
importTranslations(language: SupportedLanguage, translations: Record<string, string>, namespace?: string): Promise<{
|
|
267
|
+
imported: number;
|
|
268
|
+
failed: number;
|
|
269
|
+
}>;
|
|
270
|
+
exportTranslations(language: SupportedLanguage, namespace?: string): Promise<Record<string, string>>;
|
|
271
|
+
exportProductTranslations(options: ExportProductTranslationsOptions): Promise<ProductTranslationsExportResult>;
|
|
272
|
+
upsertProductTranslations(options: UpsertProductTranslationsOptions): Promise<UpsertProductTranslationsResult>;
|
|
273
|
+
private flattenTranslationTree;
|
|
274
|
+
private decodeDataUrlJson;
|
|
275
|
+
private resolveProductId;
|
|
276
|
+
private findTranslationKeyByKey;
|
|
277
|
+
private createTranslationKey;
|
|
278
|
+
private updateTranslationKeyDefaultValue;
|
|
279
|
+
private findGlobalTranslation;
|
|
280
|
+
private createLanguageTranslation;
|
|
281
|
+
private updateLanguageTranslation;
|
|
282
|
+
private escapeRegex;
|
|
283
|
+
private interpolate;
|
|
284
|
+
formatPlural(_language: SupportedLanguage, count: number, translations: {
|
|
285
|
+
zero?: string;
|
|
286
|
+
one: string;
|
|
287
|
+
other: string;
|
|
288
|
+
}): string;
|
|
289
|
+
formatDateTime(date: Date | string, language: SupportedLanguage, options?: Intl.DateTimeFormatOptions): string;
|
|
290
|
+
formatNumber(number: number, language: SupportedLanguage, options?: Intl.NumberFormatOptions): string;
|
|
291
|
+
formatCurrency(amount: number, currency: string, language: SupportedLanguage): string;
|
|
292
|
+
}
|
|
331
293
|
declare enum PaymentStatus {
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
294
|
+
PENDING = "pending",
|
|
295
|
+
PROCESSING = "processing",
|
|
296
|
+
SUCCEEDED = "succeeded",
|
|
297
|
+
FAILED = "failed",
|
|
298
|
+
CANCELLED = "cancelled",
|
|
299
|
+
REFUNDED = "refunded"
|
|
338
300
|
}
|
|
339
301
|
declare enum PaymentMethod {
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
302
|
+
CREDIT_CARD = "credit_card",
|
|
303
|
+
DEBIT_CARD = "debit_card",
|
|
304
|
+
BANK_TRANSFER = "bank_transfer",
|
|
305
|
+
UPI = "upi",
|
|
306
|
+
WALLET = "wallet",
|
|
307
|
+
PAYPAL = "paypal",
|
|
308
|
+
STRIPE = "stripe"
|
|
347
309
|
}
|
|
348
310
|
declare enum SubscriptionStatus {
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
311
|
+
ACTIVE = "active",
|
|
312
|
+
INACTIVE = "inactive",
|
|
313
|
+
CANCELLED = "cancelled",
|
|
314
|
+
EXPIRED = "expired",
|
|
315
|
+
PAST_DUE = "past_due",
|
|
316
|
+
TRIALING = "trialing"
|
|
355
317
|
}
|
|
356
318
|
interface CreatePaymentOptions {
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
319
|
+
amount: number;
|
|
320
|
+
currency: string;
|
|
321
|
+
paymentMethod: PaymentMethod;
|
|
322
|
+
customerId: string;
|
|
323
|
+
description?: string;
|
|
324
|
+
metadata?: Record<string, unknown>;
|
|
325
|
+
workspaceId?: string;
|
|
326
|
+
organizationId?: string;
|
|
365
327
|
}
|
|
366
328
|
interface Payment {
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
329
|
+
id: string;
|
|
330
|
+
amount: number;
|
|
331
|
+
currency: string;
|
|
332
|
+
status: PaymentStatus;
|
|
333
|
+
paymentMethod: PaymentMethod;
|
|
334
|
+
customerId: string;
|
|
335
|
+
description?: string;
|
|
336
|
+
metadata?: Record<string, unknown>;
|
|
337
|
+
workspaceId?: string;
|
|
338
|
+
organizationId?: string;
|
|
339
|
+
transactionId?: string;
|
|
340
|
+
failureReason?: string;
|
|
341
|
+
createdAt: string;
|
|
342
|
+
updatedAt: string;
|
|
381
343
|
}
|
|
382
344
|
interface CreateSubscriptionOptions {
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
345
|
+
customerId: string;
|
|
346
|
+
planId: string;
|
|
347
|
+
paymentMethod: PaymentMethod;
|
|
348
|
+
trialDays?: number;
|
|
349
|
+
metadata?: Record<string, unknown>;
|
|
350
|
+
workspaceId?: string;
|
|
351
|
+
organizationId?: string;
|
|
390
352
|
}
|
|
391
353
|
interface Subscription {
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
354
|
+
id: string;
|
|
355
|
+
customerId: string;
|
|
356
|
+
planId: string;
|
|
357
|
+
status: SubscriptionStatus;
|
|
358
|
+
currentPeriodStart: string;
|
|
359
|
+
currentPeriodEnd: string;
|
|
360
|
+
trialEnd?: string;
|
|
361
|
+
cancelledAt?: string;
|
|
362
|
+
endedAt?: string;
|
|
363
|
+
metadata?: Record<string, unknown>;
|
|
364
|
+
workspaceId?: string;
|
|
365
|
+
organizationId?: string;
|
|
366
|
+
createdAt: string;
|
|
367
|
+
updatedAt: string;
|
|
406
368
|
}
|
|
407
369
|
interface Plan {
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
370
|
+
id: string;
|
|
371
|
+
name: string;
|
|
372
|
+
description?: string;
|
|
373
|
+
amount: number;
|
|
374
|
+
currency: string;
|
|
375
|
+
interval: 'day' | 'week' | 'month' | 'year';
|
|
376
|
+
intervalCount: number;
|
|
377
|
+
features?: string[];
|
|
378
|
+
metadata?: Record<string, unknown>;
|
|
379
|
+
active: boolean;
|
|
380
|
+
createdAt: string;
|
|
381
|
+
}
|
|
382
|
+
interface GetPaymentsOptions {
|
|
383
|
+
customerId?: string;
|
|
384
|
+
status?: PaymentStatus;
|
|
385
|
+
workspaceId?: string;
|
|
386
|
+
organizationId?: string;
|
|
387
|
+
startDate?: string;
|
|
388
|
+
endDate?: string;
|
|
389
|
+
limit?: number;
|
|
390
|
+
offset?: number;
|
|
391
|
+
}
|
|
392
|
+
export declare class PaymentsModule {
|
|
393
|
+
private client;
|
|
394
|
+
private context;
|
|
395
|
+
constructor(client: BurdenoffGraphQLClient, context: SDKContext);
|
|
396
|
+
createPayment(options: CreatePaymentOptions): Promise<Payment>;
|
|
397
|
+
getPayment(paymentId: string): Promise<Payment>;
|
|
398
|
+
getPayments(options: GetPaymentsOptions): Promise<{
|
|
399
|
+
payments: Payment[];
|
|
400
|
+
total: number;
|
|
401
|
+
}>;
|
|
402
|
+
refundPayment(paymentId: string, amount?: number, reason?: string): Promise<Payment>;
|
|
403
|
+
verifyPayment(paymentId: string, verificationData: Record<string, unknown>): Promise<{
|
|
404
|
+
verified: boolean;
|
|
405
|
+
status: PaymentStatus;
|
|
406
|
+
}>;
|
|
407
|
+
createSubscription(options: CreateSubscriptionOptions): Promise<Subscription>;
|
|
408
|
+
getSubscription(subscriptionId: string): Promise<Subscription>;
|
|
409
|
+
cancelSubscription(subscriptionId: string, cancelAtPeriodEnd?: boolean): Promise<Subscription>;
|
|
410
|
+
getCustomerSubscriptions(customerId: string): Promise<Subscription[]>;
|
|
411
|
+
getPlans(activeOnly?: boolean): Promise<Plan[]>;
|
|
412
|
+
createPaymentIntent(options: {
|
|
411
413
|
amount: number;
|
|
412
414
|
currency: string;
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
features?: string[];
|
|
415
|
+
customerId: string;
|
|
416
|
+
paymentMethod?: PaymentMethod;
|
|
416
417
|
metadata?: Record<string, unknown>;
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
status?: PaymentStatus;
|
|
423
|
-
workspaceId?: string;
|
|
424
|
-
organizationId?: string;
|
|
418
|
+
}): Promise<{
|
|
419
|
+
clientSecret: string;
|
|
420
|
+
paymentIntentId: string;
|
|
421
|
+
}>;
|
|
422
|
+
getPaymentStats(options?: {
|
|
425
423
|
startDate?: string;
|
|
426
424
|
endDate?: string;
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
payments: Payment[];
|
|
438
|
-
total: number;
|
|
439
|
-
}>;
|
|
440
|
-
refundPayment(paymentId: string, amount?: number, reason?: string): Promise<Payment>;
|
|
441
|
-
verifyPayment(paymentId: string, verificationData: Record<string, unknown>): Promise<{
|
|
442
|
-
verified: boolean;
|
|
443
|
-
status: PaymentStatus;
|
|
444
|
-
}>;
|
|
445
|
-
createSubscription(options: CreateSubscriptionOptions): Promise<Subscription>;
|
|
446
|
-
getSubscription(subscriptionId: string): Promise<Subscription>;
|
|
447
|
-
cancelSubscription(subscriptionId: string, cancelAtPeriodEnd?: boolean): Promise<Subscription>;
|
|
448
|
-
getCustomerSubscriptions(customerId: string): Promise<Subscription[]>;
|
|
449
|
-
getPlans(activeOnly?: boolean): Promise<Plan[]>;
|
|
450
|
-
createPaymentIntent(options: {
|
|
451
|
-
amount: number;
|
|
452
|
-
currency: string;
|
|
453
|
-
customerId: string;
|
|
454
|
-
paymentMethod?: PaymentMethod;
|
|
455
|
-
metadata?: Record<string, unknown>;
|
|
456
|
-
}): Promise<{
|
|
457
|
-
clientSecret: string;
|
|
458
|
-
paymentIntentId: string;
|
|
459
|
-
}>;
|
|
460
|
-
getPaymentStats(options?: {
|
|
461
|
-
startDate?: string;
|
|
462
|
-
endDate?: string;
|
|
463
|
-
workspaceId?: string;
|
|
464
|
-
}): Promise<{
|
|
465
|
-
totalRevenue: number;
|
|
466
|
-
totalPayments: number;
|
|
467
|
-
successfulPayments: number;
|
|
468
|
-
failedPayments: number;
|
|
469
|
-
refundedAmount: number;
|
|
470
|
-
averagePaymentAmount: number;
|
|
471
|
-
}>;
|
|
472
|
-
}
|
|
473
|
-
|
|
425
|
+
workspaceId?: string;
|
|
426
|
+
}): Promise<{
|
|
427
|
+
totalRevenue: number;
|
|
428
|
+
totalPayments: number;
|
|
429
|
+
successfulPayments: number;
|
|
430
|
+
failedPayments: number;
|
|
431
|
+
refundedAmount: number;
|
|
432
|
+
averagePaymentAmount: number;
|
|
433
|
+
}>;
|
|
434
|
+
}
|
|
474
435
|
type HeaderValue = string | string[] | undefined;
|
|
475
436
|
interface BootstrapConfig extends SDKConfig {
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
437
|
+
database?: DatabaseConfig;
|
|
438
|
+
healthCheck?: boolean;
|
|
439
|
+
healthCheckInterval?: number;
|
|
440
|
+
modules?: string[];
|
|
441
|
+
environment?: 'development' | 'staging' | 'production';
|
|
442
|
+
serviceName?: string;
|
|
443
|
+
serviceVersion?: string;
|
|
444
|
+
healthCheckPort?: number;
|
|
484
445
|
}
|
|
485
446
|
interface BootstrapResult {
|
|
486
|
-
|
|
447
|
+
success: boolean;
|
|
448
|
+
serviceName: string;
|
|
449
|
+
serviceVersion: string;
|
|
450
|
+
environment: string;
|
|
451
|
+
startedAt: string;
|
|
452
|
+
modules: string[];
|
|
453
|
+
databaseConnected: boolean;
|
|
454
|
+
healthCheckEnabled: boolean;
|
|
455
|
+
}
|
|
456
|
+
interface BootstrapHealthCheckResult {
|
|
457
|
+
healthy: boolean;
|
|
458
|
+
checks: {
|
|
459
|
+
database?: boolean;
|
|
460
|
+
graphql?: boolean;
|
|
461
|
+
memory?: {
|
|
462
|
+
used: number;
|
|
463
|
+
total: number;
|
|
464
|
+
percentage: number;
|
|
465
|
+
};
|
|
466
|
+
uptime?: number;
|
|
467
|
+
};
|
|
468
|
+
timestamp: string;
|
|
469
|
+
}
|
|
470
|
+
export declare class BootstrapModule {
|
|
471
|
+
private config;
|
|
472
|
+
private startTime;
|
|
473
|
+
private healthCheckInterval?;
|
|
474
|
+
constructor(config: BootstrapConfig);
|
|
475
|
+
bootstrap(): Promise<BootstrapResult>;
|
|
476
|
+
private validateConfiguration;
|
|
477
|
+
private connectDatabase;
|
|
478
|
+
private loadModules;
|
|
479
|
+
private setupHealthChecks;
|
|
480
|
+
performHealthCheck(): Promise<BootstrapHealthCheckResult>;
|
|
481
|
+
private setupSignalHandlers;
|
|
482
|
+
private cleanup;
|
|
483
|
+
getInfo(): {
|
|
487
484
|
serviceName: string;
|
|
488
485
|
serviceVersion: string;
|
|
489
486
|
environment: string;
|
|
487
|
+
uptime: number;
|
|
490
488
|
startedAt: string;
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
}
|
|
509
|
-
declare class BootstrapModule {
|
|
510
|
-
private config;
|
|
511
|
-
private startTime;
|
|
512
|
-
private healthCheckInterval?;
|
|
513
|
-
constructor(config: BootstrapConfig);
|
|
514
|
-
bootstrap(): Promise<BootstrapResult>;
|
|
515
|
-
private validateConfiguration;
|
|
516
|
-
private connectDatabase;
|
|
517
|
-
private loadModules;
|
|
518
|
-
private setupHealthChecks;
|
|
519
|
-
performHealthCheck(): Promise<BootstrapHealthCheckResult>;
|
|
520
|
-
private setupSignalHandlers;
|
|
521
|
-
private cleanup;
|
|
522
|
-
getInfo(): {
|
|
523
|
-
serviceName: string;
|
|
524
|
-
serviceVersion: string;
|
|
525
|
-
environment: string;
|
|
526
|
-
uptime: number;
|
|
527
|
-
startedAt: string;
|
|
528
|
-
};
|
|
529
|
-
setupDefaultContext(context: SDKContext): void;
|
|
530
|
-
createContextMiddleware(): (req: {
|
|
531
|
-
headers: Record<string, HeaderValue>;
|
|
532
|
-
user?: unknown;
|
|
533
|
-
}, _res: unknown, next: () => void) => Promise<void>;
|
|
534
|
-
private extractContextFromRequest;
|
|
535
|
-
loadSchema(schemaPath: string): Promise<boolean>;
|
|
536
|
-
onShutdown(callback: () => Promise<void> | void): void;
|
|
537
|
-
isReady(): Promise<boolean>;
|
|
538
|
-
getMetrics(): {
|
|
539
|
-
memory: NodeJS.MemoryUsage;
|
|
540
|
-
uptime: number;
|
|
541
|
-
cpu: NodeJS.CpuUsage;
|
|
542
|
-
};
|
|
543
|
-
}
|
|
544
|
-
declare function createBootstrap(config: BootstrapConfig): BootstrapModule;
|
|
545
|
-
|
|
489
|
+
};
|
|
490
|
+
setupDefaultContext(context: SDKContext): void;
|
|
491
|
+
createContextMiddleware(): (req: {
|
|
492
|
+
headers: Record<string, HeaderValue>;
|
|
493
|
+
user?: unknown;
|
|
494
|
+
}, _res: unknown, next: () => void) => Promise<void>;
|
|
495
|
+
private extractContextFromRequest;
|
|
496
|
+
loadSchema(schemaPath: string): Promise<boolean>;
|
|
497
|
+
onShutdown(callback: () => Promise<void> | void): void;
|
|
498
|
+
isReady(): Promise<boolean>;
|
|
499
|
+
getMetrics(): {
|
|
500
|
+
memory: NodeJS.MemoryUsage;
|
|
501
|
+
uptime: number;
|
|
502
|
+
cpu: NodeJS.CpuUsage;
|
|
503
|
+
};
|
|
504
|
+
}
|
|
505
|
+
export declare function createBootstrap(config: BootstrapConfig): BootstrapModule;
|
|
546
506
|
interface TenantBackendClientConfig {
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
}
|
|
551
|
-
declare class TenantBackendClient {
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
}
|
|
562
|
-
declare function createTenantBackendClient(config: TenantBackendClientConfig): TenantBackendClient;
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
declare function createSDK(config: SDKConfig, context?: SDKContext): BurdenoffSDK;
|
|
609
|
-
|
|
610
|
-
export { ActivityModule, AuthModule, BootstrapModule, BurdenoffGraphQLClient, BurdenoffSDK, ContextManager, DatabaseModule, EventQueueHealthStatus, EventsModule, type ExportProductTranslationsOptions, GraphModule, NotificationsModule, PaymentsModule, type ProductTranslationTree, type ProductTranslationsExportResult, RBACModule, SDKConfig, SDKContext, SDKHealthStatus, SDKShutdownOptions, SearchModule, TemporalHealthStatus, TemporalModule, TenantBackendClient, type TenantBackendClientConfig, TrackerModule, type TranslationExportFormat, TranslationModule, type UpsertProductTranslationsOptions, type UpsertProductTranslationsResult, UsageModule, createBootstrap, createSDK, createTenantBackendClient, BurdenoffSDK as default };
|
|
507
|
+
tenantBackendUrl: string;
|
|
508
|
+
workspacesBackendUrl?: string;
|
|
509
|
+
apiKey?: string;
|
|
510
|
+
}
|
|
511
|
+
export declare class TenantBackendClient {
|
|
512
|
+
private graphqlClient;
|
|
513
|
+
private config;
|
|
514
|
+
readonly notifications: TenantNotificationsModule;
|
|
515
|
+
constructor(config: TenantBackendClientConfig);
|
|
516
|
+
setAuthToken(token: string): void;
|
|
517
|
+
query<T>(query: string, variables?: Record<string, unknown>): Promise<T>;
|
|
518
|
+
healthCheck(): Promise<boolean>;
|
|
519
|
+
getClient(): BurdenoffGraphQLClient;
|
|
520
|
+
getConfig(): TenantBackendClientConfig;
|
|
521
|
+
}
|
|
522
|
+
export declare function createTenantBackendClient(config: TenantBackendClientConfig): TenantBackendClient;
|
|
523
|
+
export declare class BurdenoffSDK {
|
|
524
|
+
private client;
|
|
525
|
+
private defaultContext;
|
|
526
|
+
private eventPublisher;
|
|
527
|
+
private eventPublisherInitPromise;
|
|
528
|
+
private eventQueueConfig;
|
|
529
|
+
private initializationPromise;
|
|
530
|
+
private isShuttingDown;
|
|
531
|
+
readonly auth: AuthModule;
|
|
532
|
+
readonly notifications: NotificationsModule;
|
|
533
|
+
readonly tenantNotifications: TenantNotificationsModule;
|
|
534
|
+
readonly rbac: RBACModule;
|
|
535
|
+
readonly activity: ActivityModule;
|
|
536
|
+
readonly usage: UsageModule;
|
|
537
|
+
readonly tracker: TrackerModule;
|
|
538
|
+
readonly database: typeof DatabaseModule;
|
|
539
|
+
readonly events: EventsModule;
|
|
540
|
+
readonly graph: GraphModule;
|
|
541
|
+
readonly search: SearchModule;
|
|
542
|
+
readonly translation: TranslationModule;
|
|
543
|
+
readonly payments: PaymentsModule;
|
|
544
|
+
private _temporal;
|
|
545
|
+
private _temporalPromise;
|
|
546
|
+
private _temporalConfig;
|
|
547
|
+
getTemporalModule(): Promise<TemporalModule>;
|
|
548
|
+
private loadTemporalModule;
|
|
549
|
+
readonly logger: Logger;
|
|
550
|
+
readonly context: typeof ContextManager;
|
|
551
|
+
constructor(config: SDKConfig, defaultContext?: SDKContext);
|
|
552
|
+
private scheduleBackgroundInit;
|
|
553
|
+
setContext(context: SDKContext): void;
|
|
554
|
+
getContext(): SDKContext | undefined;
|
|
555
|
+
withContext<T>(context: SDKContext, fn: () => Promise<T>): Promise<T>;
|
|
556
|
+
private initializeAsync;
|
|
557
|
+
private initializeEventQueue;
|
|
558
|
+
getEventPublisher(): Promise<IEventPublisher>;
|
|
559
|
+
waitForReady(): Promise<void>;
|
|
560
|
+
isEventQueueHealthy(): Promise<EventQueueHealthStatus>;
|
|
561
|
+
isTemporalHealthy(): Promise<TemporalHealthStatus>;
|
|
562
|
+
getHealthStatus(): Promise<SDKHealthStatus>;
|
|
563
|
+
shutdown(options?: SDKShutdownOptions): Promise<void>;
|
|
564
|
+
static createBootstrap(config: Parameters<typeof createBootstrap>[0]): BootstrapModule;
|
|
565
|
+
}
|
|
566
|
+
export declare function createSDK(config: SDKConfig, context?: SDKContext): BurdenoffSDK;
|
|
567
|
+
export { type Activity, type ActivityActorType, ActivityModule, ActivityOperationUnsupportedError, index_d_exports as AiCredits, AuthModule, type BillingPlanTransport, BillingUsageClient, type BillingUsageClientConfig, type BillingUsageOperationInput, BurdenoffGraphQLClient, BurdenoffSDK as default, index_d_exports$1 as Cache, index_d_exports$2 as Captcha, type CircuitBreakerConfig, index_d_exports$3 as Crypto, DEFAULT_CIRCUIT_BREAKER_CONFIG, DEFAULT_GATEWAY_RETRY_CONFIG, DEFAULT_GATEWAY_ROUTING, DEFAULT_LAYER_RESOURCES, DEFAULT_LAYER_STREAMS, index_d_exports$4 as DataLoader, DatabaseModule, type EmitGeneration, index_d_exports$5 as EventQueue, type EventQueueHealthStatus, type EventQueueSDKConfig, EventsModule, index_d_exports$6 as Export, type ExportProductTranslationsOptions, index_d_exports$7 as FeatureFlags, index_d_exports$8 as Files, index_d_exports$9 as Gateway, type GatewayRequestHeaders, type GatewayRetryConfig, type GatewayRoutingConfig, type GetActivitiesOptions, index_d_exports$10 as Graph, GraphModule, index_d_exports$11 as GraphQL, index_d_exports$12 as I18n, type I18nCapableContext, index_d_exports$13 as Init, index_d_exports$14 as Instrumentation, index_d_exports$15 as Layer, type LayerAwareRBACConfig, type LayerConfig, type LayerFullConfig, type LayerGatewayConfig, type LayerResourceUrls, index_d_exports$16 as Lifecycle, type LogActivityOptions, index_d_exports$17 as Logger, type LoggerConfig, type LoggerTransport, index_d_exports$18 as Middleware, NAME_MAX_LENGTH, NAME_MIN_LENGTH, type NameErrorCode, type NameValidationResult, tenant_notifications_d_exports as Notifications, NotificationsModule, index_d_exports$19 as Observability, type OrgBillingUsageOperationInput, PRODUCT_RENAMES, PRODUCT_RENAME_EMIT, PRODUCT_SLUG_ALIASES, type PlanTier, index_d_exports$20 as Platform, index_d_exports$21 as Prisma, index_d_exports$22 as ProductAlias, type ProductRename, type ProductTranslationTree, type ProductTranslationsExportResult, type QuotaLimit, type RBACDirectiveConfig, RBACModule, RENAME_CONCERNS, RESOURCE_CAP_DEFAULTS, RbacCoverageError, type RbacCoverageOptions, type RbacCoverageReport, type RbacCoverageSource, type RecaptchaVerifyOptions, type RecaptchaVerifyResult, type RenameConcern, type ResourceCap, type ResourceCapDefaults, ResourceCapExceededError, type ResourceCapsConfig, ResourceCapsModule, type ResourceName, type SDKConfig, type SDKContext, type SDKHealthStatus, type SDKShutdownOptions, type ServiceLayer, index_d_exports$23 as Sharing, type ShutdownDisposable, index_d_exports$24 as Tags, TemporalClient, type TemporalClientConfig, TemporalClientFactory, type TemporalHealthStatus, TemporalModule, TemporalWorker, type TemporalWorkerConfig, TemporalWorkerFactory, TemporalWorkerManager, type TenantBackendClientConfig, TrackerModule, type TranslationExportFormat, type Translator, USERNAME_MAX_LENGTH, USERNAME_MIN_LENGTH, type UpsertProductTranslationsOptions, type UpsertProductTranslationsResult, UsageModule, type UserFieldError, type UserFieldKey, type UserFieldsValidationResult, type UsernameErrorCode, type UsernameValidationResult, index_d_exports$25 as Utils, type ValidatedUserFields, index_d_exports$26 as Validation, type WorkflowStartOptions, type WorkspaceBillingUsageOperationInput, type WorkspaceResourceCapScope, analyzeRbacCoverage, assertRbacCoverage, billingIdVariants, configureResourceCaps, createInternalClient, createInternalClientForTenant, createInternalClientForWorkspaces, createRBACDirective, createRBACDirectiveForLayer, createRBACDirectiveFromEnv, createTranslator, disposeAll, emitBillingId, emitName, emitProductSlug, emitQuotaKey, emitRbacResource, emitTemplateKey, getLanguage, getLocale, getRegisteredDisposableCount, getResourceCaps, hasI18n, isCaptchaEnabled, isLegacyName, isSameBillingId, isSameGraphQLName, isSameName, isSameProductSlug, isSameQuotaKey, isSameRbacResource, isSameTemplateKey, lengthInCodePoints, nameVariants, normalizeBillingId, normalizeGraphQLName, normalizeProductSlug, normalizeQuotaKey, normalizeRbacResource, normalizeTemplateKey, productSlugVariants, quotaKeyVariants, rbacResourceVariants, readRenamedEnv, registerDisposable, t, templateKeyVariants, toCurrentName, toLegacyName, unregisterDisposable, validateName, validateUserFields, validateUsername, verifyCaptcha, verifyCaptchaIfEnabled };
|