@burdenoff/be-sdk 2026.1021.1 → 2026.1021.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.
Files changed (49) hide show
  1. package/dist/EventQueueFactory-JG7S6HOL.js +8 -0
  2. package/dist/{EventQueueFactory-ZHBJD3OD.js.map → EventQueueFactory-JG7S6HOL.js.map} +1 -1
  3. package/dist/{chunk-6VK53YR3.js → chunk-5OROGKQW.js} +3 -3
  4. package/dist/{chunk-6VK53YR3.js.map → chunk-5OROGKQW.js.map} +1 -1
  5. package/dist/{chunk-E5HKS7KD.js → chunk-7SOI4IHZ.js} +4 -4
  6. package/dist/{chunk-E5HKS7KD.js.map → chunk-7SOI4IHZ.js.map} +1 -1
  7. package/dist/{chunk-P67HNJGL.js → chunk-DNULGVN3.js} +14 -7
  8. package/dist/chunk-DNULGVN3.js.map +1 -0
  9. package/dist/{chunk-GJR6AQAL.js → chunk-F4R5AHSD.js} +4 -4
  10. package/dist/{chunk-GJR6AQAL.js.map → chunk-F4R5AHSD.js.map} +1 -1
  11. package/dist/chunk-GRGTUP44.js +394 -0
  12. package/dist/chunk-GRGTUP44.js.map +1 -0
  13. package/dist/{chunk-RTBCGUHC.js → chunk-GSIJ2DBJ.js} +6 -5
  14. package/dist/chunk-GSIJ2DBJ.js.map +1 -0
  15. package/dist/{chunk-XTIOBNT7.js → chunk-HEAQSZBX.js} +7 -6
  16. package/dist/chunk-HEAQSZBX.js.map +1 -0
  17. package/dist/chunk-JV7XNJP4.js +1334 -0
  18. package/dist/chunk-JV7XNJP4.js.map +1 -0
  19. package/dist/chunk-KS2HQCJR.js +56 -0
  20. package/dist/chunk-KS2HQCJR.js.map +1 -0
  21. package/dist/{chunk-NCC5UN3L.js → chunk-YCSIHUYP.js} +5 -365
  22. package/dist/chunk-YCSIHUYP.js.map +1 -0
  23. package/dist/env-4UWSUS64.js +4 -0
  24. package/dist/env-4UWSUS64.js.map +1 -0
  25. package/dist/event-queue/index.d.ts +1 -1
  26. package/dist/event-queue/index.js +4 -3
  27. package/dist/explicit-activity-scope-CCoxVwAr.d.ts +3 -0
  28. package/dist/graph/index.js +6 -5
  29. package/dist/index-BVXRewdr.d.ts +1066 -0
  30. package/dist/{index-BSlifT21.d.ts → index-D0hKZ9e2.d.ts} +1 -0
  31. package/dist/index.d.ts +4 -3
  32. package/dist/index.js +18 -16
  33. package/dist/index.js.map +1 -1
  34. package/dist/init/index.js +1 -1
  35. package/dist/prisma/index.js +5 -4
  36. package/dist/server/index.d.ts +15 -3
  37. package/dist/server/index.js +224 -1
  38. package/dist/server/index.js.map +1 -1
  39. package/dist/tracker/index.d.ts +2 -1
  40. package/dist/tracker/index.js +2 -1
  41. package/package.json +1 -1
  42. package/dist/EventQueueFactory-ZHBJD3OD.js +0 -7
  43. package/dist/chunk-NCC5UN3L.js.map +0 -1
  44. package/dist/chunk-P67HNJGL.js.map +0 -1
  45. package/dist/chunk-RTBCGUHC.js.map +0 -1
  46. package/dist/chunk-VD4B362H.js +0 -464
  47. package/dist/chunk-VD4B362H.js.map +0 -1
  48. package/dist/chunk-XTIOBNT7.js.map +0 -1
  49. package/dist/index-CpXKka7c.d.ts +0 -690
@@ -1,6 +1,7 @@
1
1
  import { B as BurdenoffGraphQLClient } from './graphql-AaLJfGzz.js';
2
2
  import { a as SDKContext } from './index-CfRZtB99.js';
3
3
  import { N as NotificationType } from './index-DMlr5R6K.js';
4
+ import './explicit-activity-scope-CCoxVwAr.js';
4
5
 
5
6
  declare enum ActivityType {
6
7
  CREATE = "create",
package/dist/index.d.ts CHANGED
@@ -7,10 +7,10 @@ import { T as TenantNotificationsModule, a as NotificationsModule } from './inde
7
7
  export { t as Notifications } from './index-DMlr5R6K.js';
8
8
  import { RBACModule } from './rbac/index.js';
9
9
  export { LayerAwareRBACConfig, RBACDirectiveConfig, createRBACDirective, createRBACDirectiveForLayer, createRBACDirectiveFromEnv } from './rbac/index.js';
10
- import { A as ActivityModule, U as UsageModule, T as TrackerModule } from './index-BSlifT21.js';
10
+ import { A as ActivityModule, U as UsageModule, T as TrackerModule } from './index-D0hKZ9e2.js';
11
11
  import { DatabaseConfig, DatabaseModule } from './database/index.js';
12
- import { E as EventsModule, I as IEventPublisher } from './index-CpXKka7c.js';
13
- export { i as EventQueue } from './index-CpXKka7c.js';
12
+ import { E as EventsModule, I as IEventPublisher } from './index-BVXRewdr.js';
13
+ export { i as EventQueue } from './index-BVXRewdr.js';
14
14
  import { G as GraphModule } from './index-D3DzCz1d.js';
15
15
  export { i as Graph } from './index-D3DzCz1d.js';
16
16
  import { B as BurdenoffGraphQLClient } from './graphql-AaLJfGzz.js';
@@ -51,6 +51,7 @@ import './workspace-extension-DiNiTLa3.js';
51
51
  import './types-C8TbSdEj.js';
52
52
  import 'graphql-request';
53
53
  import '@envelop/core';
54
+ import './explicit-activity-scope-CCoxVwAr.js';
54
55
  import '@clickhouse/client';
55
56
  import './graph-emitter-r5TylDBm.js';
56
57
  import './prisma-extension-krXnYnrN.js';
package/dist/index.js CHANGED
@@ -1,14 +1,15 @@
1
1
  export { sharing_exports as Sharing } from './chunk-DS3YMJ4X.js';
2
2
  export { TemporalClient, TemporalClientFactory, TemporalModule, TemporalWorker, TemporalWorkerFactory, TemporalWorkerManager } from './chunk-YNDJQRI3.js';
3
- import { ActivityModule, UsageModule, TrackerModule } from './chunk-NCC5UN3L.js';
4
- export { ActivityModule, TrackerModule, UsageModule } from './chunk-NCC5UN3L.js';
3
+ import { ActivityModule, UsageModule, TrackerModule } from './chunk-YCSIHUYP.js';
4
+ export { ActivityModule, TrackerModule, UsageModule } from './chunk-YCSIHUYP.js';
5
5
  export { NAME_MAX_LENGTH, NAME_MIN_LENGTH, RbacCoverageError, USERNAME_MAX_LENGTH, USERNAME_MIN_LENGTH, validation_exports as Validation, analyzeRbacCoverage, assertRbacCoverage, lengthInCodePoints, validateName, validateUserFields, validateUsername } from './chunk-WVOW3CJR.js';
6
6
  export { observability_exports as Observability } from './chunk-VAT66FJA.js';
7
7
  export { platform_exports as Platform } from './chunk-N2UT3ESH.js';
8
- export { prisma_exports as Prisma } from './chunk-E5HKS7KD.js';
8
+ export { prisma_exports as Prisma } from './chunk-7SOI4IHZ.js';
9
9
  export { PRODUCT_RENAMES, PRODUCT_RENAME_EMIT, PRODUCT_SLUG_ALIASES, product_alias_exports as ProductAlias, RENAME_CONCERNS, billingIdVariants, emitBillingId, emitName, emitProductSlug, emitQuotaKey, emitRbacResource, emitTemplateKey, isLegacyName, isSameBillingId, isSameGraphQLName, isSameName, isSameProductSlug, isSameQuotaKey, isSameRbacResource, isSameTemplateKey, nameVariants, normalizeBillingId, normalizeGraphQLName, normalizeProductSlug, normalizeQuotaKey, normalizeRbacResource, normalizeTemplateKey, productSlugVariants, quotaKeyVariants, rbacResourceVariants, readRenamedEnv, templateKeyVariants, toCurrentName, toLegacyName } from './chunk-OBBCR6WY.js';
10
10
  import { RBACModule } from './chunk-5JNHVKHG.js';
11
11
  export { RBACModule, createRBACDirective, createRBACDirectiveForLayer, createRBACDirectiveFromEnv } from './chunk-5JNHVKHG.js';
12
+ import './chunk-GRGTUP44.js';
12
13
  import './chunk-3Z2VRCT6.js';
13
14
  export { instrumentation_exports as Instrumentation } from './chunk-E5DTAGCA.js';
14
15
  export { middleware_exports as Middleware } from './chunk-ELU7VL3E.js';
@@ -16,18 +17,19 @@ import { TenantNotificationsModule, NotificationsModule } from './chunk-INAZ3PKF
16
17
  export { tenant_notifications_exports as Notifications, NotificationsModule } from './chunk-INAZ3PKF.js';
17
18
  export { export_exports as Export } from './chunk-TNYNRKLQ.js';
18
19
  export { feature_flags_exports as FeatureFlags } from './chunk-UNASM5VJ.js';
19
- import { GraphModule } from './chunk-GJR6AQAL.js';
20
- export { graph_exports as Graph, GraphModule } from './chunk-GJR6AQAL.js';
21
- import './chunk-6VK53YR3.js';
22
- import { EventsModule } from './chunk-VD4B362H.js';
23
- export { event_queue_exports as EventQueue, EventsModule } from './chunk-VD4B362H.js';
24
- import './chunk-XTIOBNT7.js';
25
- import { QueueType, EventQueueFactory } from './chunk-P67HNJGL.js';
20
+ import { GraphModule } from './chunk-F4R5AHSD.js';
21
+ export { graph_exports as Graph, GraphModule } from './chunk-F4R5AHSD.js';
22
+ import './chunk-5OROGKQW.js';
23
+ import { EventsModule } from './chunk-JV7XNJP4.js';
24
+ export { event_queue_exports as EventQueue, EventsModule } from './chunk-JV7XNJP4.js';
25
+ import './chunk-HEAQSZBX.js';
26
+ import { QueueType, EventQueueFactory } from './chunk-DNULGVN3.js';
27
+ import { resolveEventStreamsUrl } from './chunk-KS2HQCJR.js';
26
28
  export { graphql_exports as GraphQL } from './chunk-KMNSVLDS.js';
27
29
  import './chunk-MWPYA2HD.js';
28
30
  import './chunk-LKCBI6B2.js';
29
31
  export { i18n_exports as I18n, createTranslator, getLanguage, getLocale, hasI18n, t } from './chunk-EBDHIL7V.js';
30
- export { init_exports as Init } from './chunk-RTBCGUHC.js';
32
+ export { init_exports as Init } from './chunk-GSIJ2DBJ.js';
31
33
  export { RESOURCE_CAP_DEFAULTS, ResourceCapExceededError, ResourceCapsModule, configureResourceCaps, getResourceCaps } from './chunk-MZCBEJ67.js';
32
34
  import './chunk-AWPNRV3L.js';
33
35
  import { GatewayClient, GatewayError, GatewayErrorType } from './chunk-2TTE5KSS.js';
@@ -41,11 +43,11 @@ export { ContextManager } from './chunk-RZOFS2BQ.js';
41
43
  import { AuthModule } from './chunk-GJWQK3IU.js';
42
44
  export { AuthModule } from './chunk-GJWQK3IU.js';
43
45
  export { utils_exports as Utils } from './chunk-B7I4TABG.js';
44
- export { captcha_exports as Captcha, isCaptchaEnabled, verifyCaptcha, verifyCaptchaIfEnabled } from './chunk-YMZEUTD2.js';
45
46
  export { cache_exports as Cache } from './chunk-AT52BRVL.js';
46
47
  import { disposeAll } from './chunk-KO2ZXZ7W.js';
47
48
  export { lifecycle_exports as Lifecycle, disposeAll, getRegisteredDisposableCount, registerDisposable, unregisterDisposable } from './chunk-KO2ZXZ7W.js';
48
49
  import './chunk-A5F6Z5UE.js';
50
+ export { captcha_exports as Captcha, isCaptchaEnabled, verifyCaptcha, verifyCaptchaIfEnabled } from './chunk-YMZEUTD2.js';
49
51
  export { createInternalClient, createInternalClientForTenant, createInternalClientForWorkspaces } from './chunk-KJOSPVB2.js';
50
52
  export { crypto_exports as Crypto } from './chunk-SBS4S2PJ.js';
51
53
  import { DatabaseModule } from './chunk-UD5PPGVU.js';
@@ -2282,7 +2284,7 @@ var BurdenoffSDK = class {
2282
2284
  taskQueue: config.temporalTaskQueue
2283
2285
  };
2284
2286
  }
2285
- if (config.eventQueue || process.env["REDIS_URL"]) {
2287
+ if (config.eventQueue || resolveEventStreamsUrl()) {
2286
2288
  this.eventQueueConfig = {
2287
2289
  autoConnect: true,
2288
2290
  maxReconnectAttempts: -1,
@@ -2353,9 +2355,9 @@ var BurdenoffSDK = class {
2353
2355
  */
2354
2356
  async initializeEventQueue() {
2355
2357
  if (!this.eventQueueConfig || this.eventPublisher) return;
2356
- const url = this.eventQueueConfig.url || process.env["REDIS_URL"];
2358
+ const url = this.eventQueueConfig.url || resolveEventStreamsUrl();
2357
2359
  if (!url) {
2358
- logger.warn("[SDK] No REDIS_URL available \u2014 event publisher disabled");
2360
+ logger.warn("[SDK] No REDIS_STREAMS_URL / REDIS_URL available \u2014 event publisher disabled");
2359
2361
  return;
2360
2362
  }
2361
2363
  const publisherConfig = {
@@ -2388,7 +2390,7 @@ var BurdenoffSDK = class {
2388
2390
  async getEventPublisher() {
2389
2391
  if (this.eventPublisher) return this.eventPublisher;
2390
2392
  if (!this.eventQueueConfig) {
2391
- throw new Error("[SDK] Event queue not configured - set REDIS_URL or provide config.eventQueue");
2393
+ throw new Error("[SDK] Event queue not configured - set REDIS_STREAMS_URL / REDIS_URL or provide config.eventQueue");
2392
2394
  }
2393
2395
  if (!this.eventPublisherInitPromise) {
2394
2396
  this.eventPublisherInitPromise = this.initializeEventQueue();