@burdenoff/be-sdk 2026.825.8 → 2026.828.1
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/dist/EventQueueFactory-J2XXPYXH.js +7 -0
- package/dist/{EventQueueFactory-ELT7NDXK.js.map → EventQueueFactory-J2XXPYXH.js.map} +1 -1
- package/dist/auth/index.js +2 -2
- package/dist/cache/index.js +3 -3
- package/dist/{chunk-AW6JUXCU.js → chunk-3UQMAUX4.js} +4 -4
- package/dist/{chunk-AW6JUXCU.js.map → chunk-3UQMAUX4.js.map} +1 -1
- package/dist/{chunk-N3YN6ZII.js → chunk-5JNHVKHG.js} +3 -3
- package/dist/{chunk-N3YN6ZII.js.map → chunk-5JNHVKHG.js.map} +1 -1
- package/dist/{chunk-7UJXIX4I.js → chunk-5NT2OEDQ.js} +3 -3
- package/dist/{chunk-7UJXIX4I.js.map → chunk-5NT2OEDQ.js.map} +1 -1
- package/dist/{chunk-OQLDXOZ3.js → chunk-6GL4SLU7.js} +3 -3
- package/dist/{chunk-OQLDXOZ3.js.map → chunk-6GL4SLU7.js.map} +1 -1
- package/dist/{chunk-L3QCRJOA.js → chunk-74Y5YD3U.js} +7 -7
- package/dist/{chunk-L3QCRJOA.js.map → chunk-74Y5YD3U.js.map} +1 -1
- package/dist/{chunk-NVVWSOY7.js → chunk-AX3UF33H.js} +3 -3
- package/dist/{chunk-NVVWSOY7.js.map → chunk-AX3UF33H.js.map} +1 -1
- package/dist/{chunk-Z3O32BW6.js → chunk-CPLFP5JK.js} +3 -3
- package/dist/{chunk-Z3O32BW6.js.map → chunk-CPLFP5JK.js.map} +1 -1
- package/dist/{chunk-XD5ZK727.js → chunk-DS3YMJ4X.js} +3 -3
- package/dist/{chunk-XD5ZK727.js.map → chunk-DS3YMJ4X.js.map} +1 -1
- package/dist/{chunk-2HANKZZM.js → chunk-ELU7VL3E.js} +3 -3
- package/dist/{chunk-2HANKZZM.js.map → chunk-ELU7VL3E.js.map} +1 -1
- package/dist/{chunk-KESVEZB2.js → chunk-FA5ROGTS.js} +3 -3
- package/dist/{chunk-KESVEZB2.js.map → chunk-FA5ROGTS.js.map} +1 -1
- package/dist/{chunk-WFVLQELZ.js → chunk-FYH5IAPR.js} +6 -6
- package/dist/{chunk-WFVLQELZ.js.map → chunk-FYH5IAPR.js.map} +1 -1
- package/dist/{chunk-RXMOV3YE.js → chunk-GJWQK3IU.js} +3 -3
- package/dist/{chunk-RXMOV3YE.js.map → chunk-GJWQK3IU.js.map} +1 -1
- package/dist/{chunk-TORD32GS.js → chunk-INAZ3PKF.js} +3 -3
- package/dist/{chunk-TORD32GS.js.map → chunk-INAZ3PKF.js.map} +1 -1
- package/dist/{chunk-UJG32VIP.js → chunk-IUJSIXMM.js} +3 -3
- package/dist/{chunk-UJG32VIP.js.map → chunk-IUJSIXMM.js.map} +1 -1
- package/dist/{chunk-VI4VSNTI.js → chunk-KJOSPVB2.js} +3 -3
- package/dist/{chunk-VI4VSNTI.js.map → chunk-KJOSPVB2.js.map} +1 -1
- package/dist/{chunk-UM32ZA3G.js → chunk-KMNSVLDS.js} +5 -5
- package/dist/{chunk-UM32ZA3G.js.map → chunk-KMNSVLDS.js.map} +1 -1
- package/dist/{chunk-VBXPFYZ5.js → chunk-KO2ZXZ7W.js} +3 -3
- package/dist/{chunk-VBXPFYZ5.js.map → chunk-KO2ZXZ7W.js.map} +1 -1
- package/dist/{chunk-VDYBUTFI.js → chunk-KW55Q6TA.js} +5 -5
- package/dist/{chunk-VDYBUTFI.js.map → chunk-KW55Q6TA.js.map} +1 -1
- package/dist/{chunk-OCYZEBOL.js → chunk-L5TDUAFN.js} +3 -3
- package/dist/{chunk-OCYZEBOL.js.map → chunk-L5TDUAFN.js.map} +1 -1
- package/dist/{chunk-S7LWYERE.js → chunk-LKCBI6B2.js} +3 -3
- package/dist/{chunk-S7LWYERE.js.map → chunk-LKCBI6B2.js.map} +1 -1
- package/dist/{chunk-LGTQ26Z2.js → chunk-MEA4BQNA.js} +3 -3
- package/dist/{chunk-LGTQ26Z2.js.map → chunk-MEA4BQNA.js.map} +1 -1
- package/dist/{chunk-QLVKMWFA.js → chunk-MWPYA2HD.js} +3 -3
- package/dist/{chunk-QLVKMWFA.js.map → chunk-MWPYA2HD.js.map} +1 -1
- package/dist/{chunk-XWVP4MC6.js → chunk-MZCBEJ67.js} +3 -3
- package/dist/{chunk-XWVP4MC6.js.map → chunk-MZCBEJ67.js.map} +1 -1
- package/dist/{chunk-URDYOM2L.js → chunk-QJN4K7LD.js} +4 -4
- package/dist/{chunk-URDYOM2L.js.map → chunk-QJN4K7LD.js.map} +1 -1
- package/dist/{chunk-CBZNP6RF.js → chunk-RU266375.js} +48 -7
- package/dist/chunk-RU266375.js.map +1 -0
- package/dist/{chunk-A6DGEZJ4.js → chunk-UD5PPGVU.js} +3 -3
- package/dist/{chunk-A6DGEZJ4.js.map → chunk-UD5PPGVU.js.map} +1 -1
- package/dist/{chunk-JNJSSBKO.js → chunk-UFXHLQ2T.js} +5 -5
- package/dist/{chunk-JNJSSBKO.js.map → chunk-UFXHLQ2T.js.map} +1 -1
- package/dist/{chunk-F5SGJ6VS.js → chunk-UNASM5VJ.js} +3 -3
- package/dist/{chunk-F5SGJ6VS.js.map → chunk-UNASM5VJ.js.map} +1 -1
- package/dist/{chunk-5LXDPGDH.js → chunk-VAT66FJA.js} +3 -3
- package/dist/{chunk-5LXDPGDH.js.map → chunk-VAT66FJA.js.map} +1 -1
- package/dist/{chunk-WROR2NMB.js → chunk-XCQN6GH7.js} +5 -5
- package/dist/{chunk-WROR2NMB.js.map → chunk-XCQN6GH7.js.map} +1 -1
- package/dist/{chunk-4X5WL6I3.js → chunk-XYWLCNJH.js} +5 -5
- package/dist/{chunk-4X5WL6I3.js.map → chunk-XYWLCNJH.js.map} +1 -1
- package/dist/{chunk-MX4AHK3E.js → chunk-YAQ7GNAC.js} +6 -6
- package/dist/{chunk-MX4AHK3E.js.map → chunk-YAQ7GNAC.js.map} +1 -1
- package/dist/{chunk-RNR45JQH.js → chunk-YK7C5DU6.js} +3 -3
- package/dist/{chunk-RNR45JQH.js.map → chunk-YK7C5DU6.js.map} +1 -1
- package/dist/{chunk-IC7YDBGE.js → chunk-YNDJQRI3.js} +3 -3
- package/dist/{chunk-IC7YDBGE.js.map → chunk-YNDJQRI3.js.map} +1 -1
- package/dist/{chunk-WCJIZR5Q.js → chunk-Z5BURBFZ.js} +3 -3
- package/dist/{chunk-WCJIZR5Q.js.map → chunk-Z5BURBFZ.js.map} +1 -1
- package/dist/client/internal-client.js +2 -2
- package/dist/database/index.js +2 -2
- package/dist/event-queue/index.js +6 -6
- package/dist/export/index.js +5 -5
- package/dist/feature-flags/index.js +2 -2
- package/dist/gateway/index.js +4 -4
- package/dist/gateway/security/index.js +2 -2
- package/dist/graph/index.js +8 -8
- package/dist/graphql/index.js +4 -4
- package/dist/graphql/services/index.js +2 -2
- package/dist/i18n/index.js +2 -2
- package/dist/{index-BtpoFSLa.d.ts → index-BLWIKXin.d.ts} +1 -1
- package/dist/{index-C0qWSC_Q.d.ts → index-hWpL68Vx.d.ts} +4 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.js +43 -43
- package/dist/init/index.js +6 -6
- package/dist/instrumentation/index.d.ts +2 -2
- package/dist/instrumentation/index.js +2 -2
- package/dist/layer/index.js +2 -2
- package/dist/lifecycle/index.js +2 -2
- package/dist/logger/index.d.ts +1 -1
- package/dist/logger/index.js +1 -1
- package/dist/middleware/index.js +2 -2
- package/dist/notifications/index.js +2 -2
- package/dist/observability/index.js +2 -2
- package/dist/pino-logger-GJ2CYLD5.js +5 -0
- package/dist/{pino-logger-XF275Y5C.js.map → pino-logger-GJ2CYLD5.js.map} +1 -1
- package/dist/platform/index.js +2 -2
- package/dist/prisma/index.js +8 -8
- package/dist/rbac/index.js +2 -2
- package/dist/resource-caps/index.js +2 -2
- package/dist/server/index.js +6 -6
- package/dist/sharding/index.js +1 -1
- package/dist/sharing/index.js +2 -2
- package/dist/telemetry/index.d.ts +3 -3
- package/dist/telemetry/index.js +5 -5
- package/dist/temporal/index.js +2 -2
- package/dist/tracker/index.js +4 -4
- package/dist/workspace-guard-7PEZT3ZJ.js +5 -0
- package/dist/{workspace-guard-4BUG4ZP2.js.map → workspace-guard-7PEZT3ZJ.js.map} +1 -1
- package/package.json +1 -1
- package/dist/EventQueueFactory-ELT7NDXK.js +0 -7
- package/dist/chunk-CBZNP6RF.js.map +0 -1
- package/dist/pino-logger-XF275Y5C.js +0 -5
- package/dist/workspace-guard-4BUG4ZP2.js +0 -5
package/dist/index.js
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
export { TemporalClient, TemporalClientFactory, TemporalModule, TemporalWorker, TemporalWorkerFactory, TemporalWorkerManager } from './chunk-
|
|
2
|
-
import { ActivityModule, UsageModule, TrackerModule } from './chunk-
|
|
3
|
-
export { ActivityModule, TrackerModule, UsageModule } from './chunk-
|
|
4
|
-
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export {
|
|
8
|
-
import './chunk-
|
|
9
|
-
export { sharing_exports as Sharing } from './chunk-
|
|
10
|
-
export { instrumentation_exports as Instrumentation } from './chunk-
|
|
11
|
-
export { middleware_exports as Middleware } from './chunk-
|
|
12
|
-
import { TenantNotificationsModule, NotificationsModule } from './chunk-
|
|
13
|
-
export { tenant_notifications_exports as Notifications, NotificationsModule } from './chunk-
|
|
14
|
-
export { observability_exports as Observability } from './chunk-
|
|
15
|
-
export { export_exports as Export } from './chunk-
|
|
16
|
-
export { feature_flags_exports as FeatureFlags } from './chunk-
|
|
17
|
-
import { GraphModule } from './chunk-
|
|
18
|
-
export { graph_exports as Graph, GraphModule } from './chunk-
|
|
19
|
-
import './chunk-
|
|
20
|
-
import { EventsModule } from './chunk-
|
|
21
|
-
export { event_queue_exports as EventQueue, EventsModule } from './chunk-
|
|
22
|
-
import './chunk-
|
|
23
|
-
import { QueueType, EventQueueFactory } from './chunk-
|
|
24
|
-
export { graphql_exports as GraphQL } from './chunk-
|
|
25
|
-
import './chunk-
|
|
26
|
-
import './chunk-
|
|
27
|
-
export { i18n_exports as I18n, createTranslator, getLanguage, getLocale, hasI18n, t } from './chunk-
|
|
28
|
-
export { init_exports as Init } from './chunk-
|
|
29
|
-
export { RESOURCE_CAP_DEFAULTS, ResourceCapExceededError, ResourceCapsModule, configureResourceCaps, getResourceCaps } from './chunk-
|
|
1
|
+
export { TemporalClient, TemporalClientFactory, TemporalModule, TemporalWorker, TemporalWorkerFactory, TemporalWorkerManager } from './chunk-YNDJQRI3.js';
|
|
2
|
+
import { ActivityModule, UsageModule, TrackerModule } from './chunk-KW55Q6TA.js';
|
|
3
|
+
export { ActivityModule, TrackerModule, UsageModule } from './chunk-KW55Q6TA.js';
|
|
4
|
+
export { prisma_exports as Prisma } from './chunk-YAQ7GNAC.js';
|
|
5
|
+
import { RBACModule } from './chunk-5JNHVKHG.js';
|
|
6
|
+
export { RBACModule, createRBACDirective, createRBACDirectiveForLayer, createRBACDirectiveFromEnv } from './chunk-5JNHVKHG.js';
|
|
7
|
+
export { platform_exports as Platform } from './chunk-Z5BURBFZ.js';
|
|
8
|
+
import './chunk-FA5ROGTS.js';
|
|
9
|
+
export { sharing_exports as Sharing } from './chunk-DS3YMJ4X.js';
|
|
10
|
+
export { instrumentation_exports as Instrumentation } from './chunk-CPLFP5JK.js';
|
|
11
|
+
export { middleware_exports as Middleware } from './chunk-ELU7VL3E.js';
|
|
12
|
+
import { TenantNotificationsModule, NotificationsModule } from './chunk-INAZ3PKF.js';
|
|
13
|
+
export { tenant_notifications_exports as Notifications, NotificationsModule } from './chunk-INAZ3PKF.js';
|
|
14
|
+
export { observability_exports as Observability } from './chunk-VAT66FJA.js';
|
|
15
|
+
export { export_exports as Export } from './chunk-MEA4BQNA.js';
|
|
16
|
+
export { feature_flags_exports as FeatureFlags } from './chunk-UNASM5VJ.js';
|
|
17
|
+
import { GraphModule } from './chunk-XCQN6GH7.js';
|
|
18
|
+
export { graph_exports as Graph, GraphModule } from './chunk-XCQN6GH7.js';
|
|
19
|
+
import './chunk-L5TDUAFN.js';
|
|
20
|
+
import { EventsModule } from './chunk-FYH5IAPR.js';
|
|
21
|
+
export { event_queue_exports as EventQueue, EventsModule } from './chunk-FYH5IAPR.js';
|
|
22
|
+
import './chunk-QJN4K7LD.js';
|
|
23
|
+
import { QueueType, EventQueueFactory } from './chunk-UFXHLQ2T.js';
|
|
24
|
+
export { graphql_exports as GraphQL } from './chunk-KMNSVLDS.js';
|
|
25
|
+
import './chunk-MWPYA2HD.js';
|
|
26
|
+
import './chunk-LKCBI6B2.js';
|
|
27
|
+
export { i18n_exports as I18n, createTranslator, getLanguage, getLocale, hasI18n, t } from './chunk-IUJSIXMM.js';
|
|
28
|
+
export { init_exports as Init } from './chunk-74Y5YD3U.js';
|
|
29
|
+
export { RESOURCE_CAP_DEFAULTS, ResourceCapExceededError, ResourceCapsModule, configureResourceCaps, getResourceCaps } from './chunk-MZCBEJ67.js';
|
|
30
30
|
import './chunk-AWPNRV3L.js';
|
|
31
|
-
import { GatewayClient, GatewayError, GatewayErrorType } from './chunk-
|
|
32
|
-
export { gateway_exports as Gateway } from './chunk-
|
|
33
|
-
import './chunk-
|
|
31
|
+
import { GatewayClient, GatewayError, GatewayErrorType } from './chunk-XYWLCNJH.js';
|
|
32
|
+
export { gateway_exports as Gateway } from './chunk-XYWLCNJH.js';
|
|
33
|
+
import './chunk-AX3UF33H.js';
|
|
34
34
|
import './chunk-FZRODKIN.js';
|
|
35
|
-
export { layer_exports as Layer } from './chunk-
|
|
35
|
+
export { layer_exports as Layer } from './chunk-5NT2OEDQ.js';
|
|
36
36
|
import './chunk-VFCMR5GX.js';
|
|
37
37
|
import { ContextManager } from './chunk-RZOFS2BQ.js';
|
|
38
38
|
export { ContextManager } from './chunk-RZOFS2BQ.js';
|
|
39
|
-
import { AuthModule } from './chunk-
|
|
40
|
-
export { AuthModule } from './chunk-
|
|
39
|
+
import { AuthModule } from './chunk-GJWQK3IU.js';
|
|
40
|
+
export { AuthModule } from './chunk-GJWQK3IU.js';
|
|
41
41
|
export { utils_exports as Utils } from './chunk-B7I4TABG.js';
|
|
42
|
-
export { cache_exports as Cache } from './chunk-
|
|
43
|
-
import { disposeAll } from './chunk-
|
|
44
|
-
export { lifecycle_exports as Lifecycle, disposeAll, getRegisteredDisposableCount, registerDisposable, unregisterDisposable } from './chunk-
|
|
42
|
+
export { cache_exports as Cache } from './chunk-3UQMAUX4.js';
|
|
43
|
+
import { disposeAll } from './chunk-KO2ZXZ7W.js';
|
|
44
|
+
export { lifecycle_exports as Lifecycle, disposeAll, getRegisteredDisposableCount, registerDisposable, unregisterDisposable } from './chunk-KO2ZXZ7W.js';
|
|
45
45
|
import './chunk-A5F6Z5UE.js';
|
|
46
46
|
export { captcha_exports as Captcha, isCaptchaEnabled, verifyCaptcha, verifyCaptchaIfEnabled } from './chunk-YMZEUTD2.js';
|
|
47
|
-
export { createInternalClient, createInternalClientForTenant, createInternalClientForWorkspaces } from './chunk-
|
|
47
|
+
export { createInternalClient, createInternalClientForTenant, createInternalClientForWorkspaces } from './chunk-KJOSPVB2.js';
|
|
48
48
|
export { crypto_exports as Crypto } from './chunk-SBS4S2PJ.js';
|
|
49
|
-
import { DatabaseModule } from './chunk-
|
|
50
|
-
export { DatabaseModule } from './chunk-
|
|
49
|
+
import { DatabaseModule } from './chunk-UD5PPGVU.js';
|
|
50
|
+
export { DatabaseModule } from './chunk-UD5PPGVU.js';
|
|
51
51
|
import { APIError, NetworkError, TimeoutError, ValidationError } from './chunk-QGBXVNRM.js';
|
|
52
52
|
export { DEFAULT_CIRCUIT_BREAKER_CONFIG, DEFAULT_GATEWAY_RETRY_CONFIG, DEFAULT_GATEWAY_ROUTING, DEFAULT_LAYER_RESOURCES, DEFAULT_LAYER_STREAMS } from './chunk-YFOHAHZE.js';
|
|
53
|
-
import { logger } from './chunk-
|
|
54
|
-
export { logger_exports as Logger } from './chunk-
|
|
53
|
+
import { logger } from './chunk-RU266375.js';
|
|
54
|
+
export { logger_exports as Logger } from './chunk-RU266375.js';
|
|
55
55
|
export { dataloader_exports as DataLoader } from './chunk-NUB5GQTU.js';
|
|
56
56
|
import { __name } from './chunk-XE4OXN2W.js';
|
|
57
57
|
import { GraphQLClient } from 'graphql-request';
|
package/dist/init/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export { getSDKState, initializeBurdenoffSDK, isSDKInitialized, resetSDK } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { getSDKState, initializeBurdenoffSDK, isSDKInitialized, resetSDK } from '../chunk-74Y5YD3U.js';
|
|
2
|
+
import '../chunk-MZCBEJ67.js';
|
|
3
3
|
import '../chunk-AWPNRV3L.js';
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-XYWLCNJH.js';
|
|
5
|
+
import '../chunk-AX3UF33H.js';
|
|
6
6
|
import '../chunk-FZRODKIN.js';
|
|
7
|
-
import '../chunk-
|
|
7
|
+
import '../chunk-5NT2OEDQ.js';
|
|
8
8
|
import '../chunk-VFCMR5GX.js';
|
|
9
9
|
import '../chunk-RZOFS2BQ.js';
|
|
10
10
|
import '../chunk-A5F6Z5UE.js';
|
|
11
11
|
import '../chunk-YFOHAHZE.js';
|
|
12
|
-
import '../chunk-
|
|
12
|
+
import '../chunk-RU266375.js';
|
|
13
13
|
import '../chunk-XE4OXN2W.js';
|
|
14
14
|
//# sourceMappingURL=index.js.map
|
|
15
15
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as ApolloInlineTraceOptions, C as CacheInstrumentationConfig, b as Counter, D as DEFAULT_CACHE_CONFIG, c as DEFAULT_DATABASE_CONFIG, d as DEFAULT_EVENT_QUEUE_CONFIG, e as DEFAULT_FEATURE_FLAGS, f as DEFAULT_GRAPHQL_CONFIG, g as DEFAULT_HTTP_CONFIG, h as DEFAULT_LOGGING_CONFIG, j as DEFAULT_METRICS_CONFIG, k as DEFAULT_TRACING_CONFIG, l as DatabaseInstrumentationConfig, E as ENV_VARS, m as EventQueueInstrumentationConfig, G as Gauge, n as GraphQLInstrumentationConfig, o as GraphQLOperationInfo, p as GraphQLOperationType, H as HTTPInstrumentationConfig, q as Histogram, r as InitializeInstrumentationOptions, t as Instrument, u as InstrumentationConfig, v as InstrumentationContextExtension, w as InstrumentationFeatureFlags, I as InstrumentationSetupResult, L as Log, x as LoggingConfig, M as Metric, y as MetricDefinition, z as MetricLabels, B as MetricsConfig, F as MetricsRegistry, O as OperationContext, P as PrometheusPluginOptions, J as STANDARD_METRICS, S as SetupInstrumentationOptions, K as Span, N as SpanAttributes, Q as SpanContext, R as SpanEvent, T as SpanKind, U as SpanStatus, V as Trace, W as TraceContext, X as Tracer, Y as TracingConfig, Z as UpDownCounter, _ as buildDatabaseConfig, $ as buildFeatureFlags, a0 as buildGraphQLConfig, a1 as buildInstrumentationConfig, a2 as buildMetricsConfig, a3 as buildTracingConfig, a4 as createApolloInlineTracePlugin, a5 as createCounter, a6 as createGauge, a7 as createGraphQLInstrumentationPlugin, a8 as createHistogram, a9 as createPrometheusPlugin, aa as createUpDownCounter, ab as extractOperationInfo, ac as extractTraceContext, ad as getGraphQLOperationFromContext, ae as getGraphQLSpanFromContext, af as getInstrumentationConfig, ag as getLogger, ah as getMetricsRegistry, ai as getTraceContext, aj as getTracer, a as initializeInstrumentation, ak as initializeInstrumentationConfig, al as initializeMetricsRegistry, am as initializeTracer, an as injectTraceContext, ao as instrumentResolver, ap as instrumentResolverMap, aq as instrumented, ar as isApolloInlineTraceAvailable, as as isFeatureEnabled, at as isInstrumentationConfigInitialized, au as isInstrumentationInitialized, av as isMetricsRegistryInitialized, aw as isPrometheusAvailable, ax as isTracerInitialized, ay as resetInstrumentation, az as resetInstrumentationConfig, aA as resetMetricsRegistry, s as setupInstrumentation, aB as startSpan, aC as traced, aD as updateInstrumentationConfig, aE as withSpan } from '../index-
|
|
2
|
-
export { l as logger } from '../index-
|
|
1
|
+
export { A as ApolloInlineTraceOptions, C as CacheInstrumentationConfig, b as Counter, D as DEFAULT_CACHE_CONFIG, c as DEFAULT_DATABASE_CONFIG, d as DEFAULT_EVENT_QUEUE_CONFIG, e as DEFAULT_FEATURE_FLAGS, f as DEFAULT_GRAPHQL_CONFIG, g as DEFAULT_HTTP_CONFIG, h as DEFAULT_LOGGING_CONFIG, j as DEFAULT_METRICS_CONFIG, k as DEFAULT_TRACING_CONFIG, l as DatabaseInstrumentationConfig, E as ENV_VARS, m as EventQueueInstrumentationConfig, G as Gauge, n as GraphQLInstrumentationConfig, o as GraphQLOperationInfo, p as GraphQLOperationType, H as HTTPInstrumentationConfig, q as Histogram, r as InitializeInstrumentationOptions, t as Instrument, u as InstrumentationConfig, v as InstrumentationContextExtension, w as InstrumentationFeatureFlags, I as InstrumentationSetupResult, L as Log, x as LoggingConfig, M as Metric, y as MetricDefinition, z as MetricLabels, B as MetricsConfig, F as MetricsRegistry, O as OperationContext, P as PrometheusPluginOptions, J as STANDARD_METRICS, S as SetupInstrumentationOptions, K as Span, N as SpanAttributes, Q as SpanContext, R as SpanEvent, T as SpanKind, U as SpanStatus, V as Trace, W as TraceContext, X as Tracer, Y as TracingConfig, Z as UpDownCounter, _ as buildDatabaseConfig, $ as buildFeatureFlags, a0 as buildGraphQLConfig, a1 as buildInstrumentationConfig, a2 as buildMetricsConfig, a3 as buildTracingConfig, a4 as createApolloInlineTracePlugin, a5 as createCounter, a6 as createGauge, a7 as createGraphQLInstrumentationPlugin, a8 as createHistogram, a9 as createPrometheusPlugin, aa as createUpDownCounter, ab as extractOperationInfo, ac as extractTraceContext, ad as getGraphQLOperationFromContext, ae as getGraphQLSpanFromContext, af as getInstrumentationConfig, ag as getLogger, ah as getMetricsRegistry, ai as getTraceContext, aj as getTracer, a as initializeInstrumentation, ak as initializeInstrumentationConfig, al as initializeMetricsRegistry, am as initializeTracer, an as injectTraceContext, ao as instrumentResolver, ap as instrumentResolverMap, aq as instrumented, ar as isApolloInlineTraceAvailable, as as isFeatureEnabled, at as isInstrumentationConfigInitialized, au as isInstrumentationInitialized, av as isMetricsRegistryInitialized, aw as isPrometheusAvailable, ax as isTracerInitialized, ay as resetInstrumentation, az as resetInstrumentationConfig, aA as resetMetricsRegistry, s as setupInstrumentation, aB as startSpan, aC as traced, aD as updateInstrumentationConfig, aE as withSpan } from '../index-BLWIKXin.js';
|
|
2
|
+
export { l as logger } from '../index-hWpL68Vx.js';
|
|
3
3
|
import '../index-B8viwwDM.js';
|
|
4
4
|
import '../layer-GNAVXBMf.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { Instrument, Log, Metric, STANDARD_METRICS, SpanKind, SpanStatus, Trace, Tracer, createApolloInlineTracePlugin, createGraphQLInstrumentationPlugin, createPrometheusPlugin, extractOperationInfo, extractTraceContext, getGraphQLOperationFromContext, getGraphQLSpanFromContext, getLogger, getTraceContext, getTracer, initializeInstrumentation, initializeTracer, injectTraceContext, instrumentResolver, instrumentResolverMap, instrumented, isApolloInlineTraceAvailable, isInstrumentationInitialized, isPrometheusAvailable, isTracerInitialized, resetInstrumentation, setupInstrumentation, startSpan, traced, withSpan } from '../chunk-
|
|
1
|
+
export { Instrument, Log, Metric, STANDARD_METRICS, SpanKind, SpanStatus, Trace, Tracer, createApolloInlineTracePlugin, createGraphQLInstrumentationPlugin, createPrometheusPlugin, extractOperationInfo, extractTraceContext, getGraphQLOperationFromContext, getGraphQLSpanFromContext, getLogger, getTraceContext, getTracer, initializeInstrumentation, initializeTracer, injectTraceContext, instrumentResolver, instrumentResolverMap, instrumented, isApolloInlineTraceAvailable, isInstrumentationInitialized, isPrometheusAvailable, isTracerInitialized, resetInstrumentation, setupInstrumentation, startSpan, traced, withSpan } from '../chunk-CPLFP5JK.js';
|
|
2
2
|
export { DEFAULT_CACHE_CONFIG, DEFAULT_DATABASE_CONFIG, DEFAULT_EVENT_QUEUE_CONFIG, DEFAULT_FEATURE_FLAGS, DEFAULT_GRAPHQL_CONFIG, DEFAULT_HTTP_CONFIG, DEFAULT_LOGGING_CONFIG, DEFAULT_METRICS_CONFIG, DEFAULT_TRACING_CONFIG, ENV_VARS, MetricsRegistry, buildDatabaseConfig, buildFeatureFlags, buildGraphQLConfig, buildInstrumentationConfig, buildMetricsConfig, buildTracingConfig, createCounter, createGauge, createHistogram, createUpDownCounter, getInstrumentationConfig, getMetricsRegistry, initializeInstrumentationConfig, initializeMetricsRegistry, isFeatureEnabled, isInstrumentationConfigInitialized, isMetricsRegistryInitialized, resetInstrumentationConfig, resetMetricsRegistry, updateInstrumentationConfig } from '../chunk-AWPNRV3L.js';
|
|
3
|
-
export { logger } from '../chunk-
|
|
3
|
+
export { logger } from '../chunk-RU266375.js';
|
|
4
4
|
import '../chunk-XE4OXN2W.js';
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
package/dist/layer/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { LayerManager, createLayerManagerFromEnv, detectLayerFromServiceName, getGatewayUrlForLayer, validateLayerConfig } from '../chunk-
|
|
1
|
+
export { LayerManager, createLayerManagerFromEnv, detectLayerFromServiceName, getGatewayUrlForLayer, validateLayerConfig } from '../chunk-5NT2OEDQ.js';
|
|
2
2
|
export { DEFAULT_GATEWAY_ROUTING, DEFAULT_LAYER_RESOURCES, DEFAULT_LAYER_STREAMS } from '../chunk-YFOHAHZE.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-RU266375.js';
|
|
4
4
|
import '../chunk-XE4OXN2W.js';
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
package/dist/lifecycle/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { disposeAll, getRegisteredDisposableCount, registerDisposable, unregisterDisposable } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { disposeAll, getRegisteredDisposableCount, registerDisposable, unregisterDisposable } from '../chunk-KO2ZXZ7W.js';
|
|
2
|
+
import '../chunk-RU266375.js';
|
|
3
3
|
import '../chunk-XE4OXN2W.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
package/dist/logger/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import '../index-B8viwwDM.js';
|
|
2
|
-
export { a as LogLevel, b as LogMeta, L as Logger, c as LoggerConfig, d as LoggerTransport, e as debug, f as error, g as log, l as logger, r as redactSensitiveFields, w as warn } from '../index-
|
|
2
|
+
export { a as LogLevel, b as LogMeta, L as Logger, c as LoggerConfig, d as LoggerTransport, e as debug, f as error, g as log, l as logger, r as redactSensitiveFields, h as redactSensitiveString, w as warn } from '../index-hWpL68Vx.js';
|
|
3
3
|
import '../layer-GNAVXBMf.js';
|
package/dist/logger/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Logger, debug, error, log, logger, redactSensitiveFields, warn } from '../chunk-
|
|
1
|
+
export { Logger, debug, error, log, logger, redactSensitiveFields, redactSensitiveString, warn } from '../chunk-RU266375.js';
|
|
2
2
|
import '../chunk-XE4OXN2W.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
package/dist/middleware/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { cleanupExpiredTokens, createSecurityPlugin } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { cleanupExpiredTokens, createSecurityPlugin } from '../chunk-ELU7VL3E.js';
|
|
2
|
+
import '../chunk-RU266375.js';
|
|
3
3
|
import '../chunk-XE4OXN2W.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { NotificationChannel, NotificationPriority, NotificationType, NotificationsModule, TenantNotificationsModule } from '../chunk-
|
|
1
|
+
export { NotificationChannel, NotificationPriority, NotificationType, NotificationsModule, TenantNotificationsModule } from '../chunk-INAZ3PKF.js';
|
|
2
2
|
import '../chunk-QGBXVNRM.js';
|
|
3
3
|
import '../chunk-YFOHAHZE.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-RU266375.js';
|
|
5
5
|
import '../chunk-XE4OXN2W.js';
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { MetricsCollector, createMetricsPlugin, getCurrentMetrics, getMetricsForWindow, metricsCollector } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { MetricsCollector, createMetricsPlugin, getCurrentMetrics, getMetricsForWindow, metricsCollector } from '../chunk-VAT66FJA.js';
|
|
2
|
+
import '../chunk-RU266375.js';
|
|
3
3
|
import '../chunk-XE4OXN2W.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"pino-logger-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"pino-logger-GJ2CYLD5.js"}
|
package/dist/platform/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { CircuitBreakerOpenError, DEFAULT_GRAPHQL_PAGE_LIMIT, LLMRouter, MAX_GRAPHQL_PAGE_LIMIT, __resetHttpClientBreakers, buildCacheKey, buildConnection, buildLoaders, buildOffsetPage, clampGraphqlLimit, clampLimit, clampOffset, createHttpClient, createLeaderLease, decodeCursor, dropOldPartitions, encodeCursor, ensureMonthlyPartitions, getNamespaceVersion, httpClient, invalidateNamespace, monthlyPartitionName, normalizeCursorPagination, normalizeOffsetPagination, normalizeRedisUrl, paginate, rateLimitIncr, resolveReferenceLoader, toPrismaPage, withLeaderLock } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { CircuitBreakerOpenError, DEFAULT_GRAPHQL_PAGE_LIMIT, LLMRouter, MAX_GRAPHQL_PAGE_LIMIT, __resetHttpClientBreakers, buildCacheKey, buildConnection, buildLoaders, buildOffsetPage, clampGraphqlLimit, clampLimit, clampOffset, createHttpClient, createLeaderLease, decodeCursor, dropOldPartitions, encodeCursor, ensureMonthlyPartitions, getNamespaceVersion, httpClient, invalidateNamespace, monthlyPartitionName, normalizeCursorPagination, normalizeOffsetPagination, normalizeRedisUrl, paginate, rateLimitIncr, resolveReferenceLoader, toPrismaPage, withLeaderLock } from '../chunk-Z5BURBFZ.js';
|
|
2
|
+
import '../chunk-RU266375.js';
|
|
3
3
|
import '../chunk-XE4OXN2W.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
package/dist/prisma/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { buildContextWhereClause, buildContextWhereConditions, checkDatabaseHealth, contextMatches, createContextFromSDK, createDatabaseClient, createDatabaseClientFromEnv, extractFieldsFromModel, getAllModelNames, getDatabaseManager, getDatabaseProductName, getDatabaseStats, getDatabaseVersion, getDb, getModelFields, hasModel, initializeDatabase, initializeDatabaseWithConfig, isDatabaseInitialized, loadGeneratedFields, mergeContext, parseContext, resetDatabaseManager, resolvePoolTuningFromEnv, testConnection, toContextJson } from '../chunk-
|
|
2
|
-
export { addWorkspaceExtension, defaultWorkspaceExtensionConfig, getWorkspaceContext, injectCreateFields, injectWhereWorkspaceId, maybeSetRlsGuc, maybeTagConnection, runOperationWithRlsGuc, setWorkspaceContext, withWorkspaceContext, withWorkspaceContextSync } from '../chunk-
|
|
3
|
-
export { PrismaClientWrapper, configurePrismaLogging, createConnectionPool, createPrismaAdapter, createPrismaClient, ensureServiceApplicationName, installAcquireRetry, isTransientAcquireError } from '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
1
|
+
export { buildContextWhereClause, buildContextWhereConditions, checkDatabaseHealth, contextMatches, createContextFromSDK, createDatabaseClient, createDatabaseClientFromEnv, extractFieldsFromModel, getAllModelNames, getDatabaseManager, getDatabaseProductName, getDatabaseStats, getDatabaseVersion, getDb, getModelFields, hasModel, initializeDatabase, initializeDatabaseWithConfig, isDatabaseInitialized, loadGeneratedFields, mergeContext, parseContext, resetDatabaseManager, resolvePoolTuningFromEnv, testConnection, toContextJson } from '../chunk-YAQ7GNAC.js';
|
|
2
|
+
export { addWorkspaceExtension, defaultWorkspaceExtensionConfig, getWorkspaceContext, injectCreateFields, injectWhereWorkspaceId, maybeSetRlsGuc, maybeTagConnection, runOperationWithRlsGuc, setWorkspaceContext, withWorkspaceContext, withWorkspaceContextSync } from '../chunk-FA5ROGTS.js';
|
|
3
|
+
export { PrismaClientWrapper, configurePrismaLogging, createConnectionPool, createPrismaAdapter, createPrismaClient, ensureServiceApplicationName, installAcquireRetry, isTransientAcquireError } from '../chunk-L5TDUAFN.js';
|
|
4
|
+
import '../chunk-QJN4K7LD.js';
|
|
5
|
+
import '../chunk-UFXHLQ2T.js';
|
|
6
|
+
import '../chunk-LKCBI6B2.js';
|
|
7
|
+
import '../chunk-KO2ZXZ7W.js';
|
|
8
|
+
import '../chunk-RU266375.js';
|
|
9
9
|
import '../chunk-XE4OXN2W.js';
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
|
11
11
|
//# sourceMappingURL=index.js.map
|
package/dist/rbac/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { RBACClient, RBACModule, createRBACClientFromEnv, createRBACDirective, createRBACDirectiveForLayer, createRBACDirectiveFromEnv } from '../chunk-
|
|
1
|
+
export { RBACClient, RBACModule, createRBACClientFromEnv, createRBACDirective, createRBACDirectiveForLayer, createRBACDirectiveFromEnv } from '../chunk-5JNHVKHG.js';
|
|
2
2
|
import '../chunk-QGBXVNRM.js';
|
|
3
3
|
import '../chunk-YFOHAHZE.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-RU266375.js';
|
|
5
5
|
import '../chunk-XE4OXN2W.js';
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { RESOURCE_CAP_DEFAULTS, ResourceCapExceededError, ResourceCapsModule, __resetResourceCapsForTests, configureResourceCaps, getResourceCaps } from '../chunk-
|
|
1
|
+
export { RESOURCE_CAP_DEFAULTS, ResourceCapExceededError, ResourceCapsModule, __resetResourceCapsForTests, configureResourceCaps, getResourceCaps } from '../chunk-MZCBEJ67.js';
|
|
2
2
|
import '../chunk-AWPNRV3L.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-RU266375.js';
|
|
4
4
|
import '../chunk-XE4OXN2W.js';
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
package/dist/server/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { createHumanReadableErrorPlugin, formatHttpError, normalizeGraphQLResponse, createHttpErrorResponse } from '../chunk-
|
|
2
|
-
export { UserFacingGraphQLError, createHttpErrorResponse, createHumanReadableErrorPlugin, createWorkspaceGuardPlugin, formatHttpError, normalizeError, normalizeExecutionResultErrors, normalizeGraphQLResponse, normalizeGraphQLResponsePayload, toUserFacingGraphQLError } from '../chunk-
|
|
1
|
+
import { createHumanReadableErrorPlugin, formatHttpError, normalizeGraphQLResponse, createHttpErrorResponse } from '../chunk-6GL4SLU7.js';
|
|
2
|
+
export { UserFacingGraphQLError, createHttpErrorResponse, createHumanReadableErrorPlugin, createWorkspaceGuardPlugin, formatHttpError, normalizeError, normalizeExecutionResultErrors, normalizeGraphQLResponse, normalizeGraphQLResponsePayload, toUserFacingGraphQLError } from '../chunk-6GL4SLU7.js';
|
|
3
3
|
import { getWorkspaceQuotaRegistry } from '../chunk-WTEHAVBX.js';
|
|
4
|
-
import { setWorkspaceContext } from '../chunk-
|
|
5
|
-
import { I18n } from '../chunk-
|
|
4
|
+
import { setWorkspaceContext } from '../chunk-FA5ROGTS.js';
|
|
5
|
+
import { I18n } from '../chunk-IUJSIXMM.js';
|
|
6
6
|
import { getMetricsRegistry } from '../chunk-AWPNRV3L.js';
|
|
7
7
|
import { ContextManager } from '../chunk-RZOFS2BQ.js';
|
|
8
|
-
import { logger } from '../chunk-
|
|
8
|
+
import { logger } from '../chunk-RU266375.js';
|
|
9
9
|
import { __name } from '../chunk-XE4OXN2W.js';
|
|
10
10
|
import crypto from 'crypto';
|
|
11
11
|
|
|
@@ -660,7 +660,7 @@ async function createServer(definition) {
|
|
|
660
660
|
const { initializeDatabase, getDb: getDb2, getDatabaseManager } = await import('../prisma/index.js');
|
|
661
661
|
const { createSecurityPlugin } = await import('../middleware/index.js');
|
|
662
662
|
const { createMetricsPlugin } = await import('../observability/index.js');
|
|
663
|
-
const { createWorkspaceGuardPlugin: createWorkspaceGuardPlugin2 } = await import('../workspace-guard-
|
|
663
|
+
const { createWorkspaceGuardPlugin: createWorkspaceGuardPlugin2 } = await import('../workspace-guard-7PEZT3ZJ.js');
|
|
664
664
|
logger.info(`[Server] Initializing ${config.serviceName}...`);
|
|
665
665
|
const boundary = config.boundary ?? (config.serviceName.startsWith("wspace-") ? "wspace" : config.serviceName.startsWith("global-") ? "global" : "wspace");
|
|
666
666
|
const shouldEnableWorkspaceExtension = disableWorkspaceExtension === true ? false : disableWorkspaceExtension === false ? true : boundary === "wspace";
|
package/dist/sharding/index.js
CHANGED
package/dist/sharing/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { RESOURCE_CAPABILITY_MAP, RESOURCE_TYPE_LABELS, ROLE_CAPABILITIES, ROLE_ORDER, SHARE_EMAIL_TEMPLATE_SLUG, SHARE_GRANT_PARTIAL_UNIQUE_SQL, SHARE_GRANT_PRISMA, SHARE_GRANT_SDL, ShareRole, ShareService, ShareStatus, ShareVisibility, buildPerEntityShareSdl, buildShareEmailVariables, capabilitiesFor, legacyToRole, makeSendShareEmail, maxRole, normalizeStatus, resourceTypeLabel, roleAtLeast, roleLabel, roleToLegacy } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { RESOURCE_CAPABILITY_MAP, RESOURCE_TYPE_LABELS, ROLE_CAPABILITIES, ROLE_ORDER, SHARE_EMAIL_TEMPLATE_SLUG, SHARE_GRANT_PARTIAL_UNIQUE_SQL, SHARE_GRANT_PRISMA, SHARE_GRANT_SDL, ShareRole, ShareService, ShareStatus, ShareVisibility, buildPerEntityShareSdl, buildShareEmailVariables, capabilitiesFor, legacyToRole, makeSendShareEmail, maxRole, normalizeStatus, resourceTypeLabel, roleAtLeast, roleLabel, roleToLegacy } from '../chunk-DS3YMJ4X.js';
|
|
2
|
+
import '../chunk-RU266375.js';
|
|
3
3
|
import '../chunk-XE4OXN2W.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { L as Logger } from '../index-
|
|
2
|
-
import { S as SetupInstrumentationOptions, I as InstrumentationSetupResult } from '../index-
|
|
3
|
-
export { a as initializeInstrumentation, s as setupInstrumentation } from '../index-
|
|
1
|
+
import { L as Logger } from '../index-hWpL68Vx.js';
|
|
2
|
+
import { S as SetupInstrumentationOptions, I as InstrumentationSetupResult } from '../index-BLWIKXin.js';
|
|
3
|
+
export { a as initializeInstrumentation, s as setupInstrumentation } from '../index-BLWIKXin.js';
|
|
4
4
|
import '../index-B8viwwDM.js';
|
|
5
5
|
import '../layer-GNAVXBMf.js';
|
|
6
6
|
|
package/dist/telemetry/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { DEFAULT_REDACT_PATHS, createPinoLogger } from '../chunk-
|
|
2
|
-
import { setActiveTelemetryLogger, setupInstrumentation } from '../chunk-
|
|
3
|
-
export { initializeInstrumentation, setupInstrumentation } from '../chunk-
|
|
1
|
+
export { DEFAULT_REDACT_PATHS, createPinoLogger } from '../chunk-YK7C5DU6.js';
|
|
2
|
+
import { setActiveTelemetryLogger, setupInstrumentation } from '../chunk-CPLFP5JK.js';
|
|
3
|
+
export { initializeInstrumentation, setupInstrumentation } from '../chunk-CPLFP5JK.js';
|
|
4
4
|
import '../chunk-AWPNRV3L.js';
|
|
5
5
|
import { defaultCollectorEndpoint } from '../chunk-FZRODKIN.js';
|
|
6
6
|
export { COLLECTOR_SERVICE, OTLP_HTTP_PORT, defaultCollectorEndpoint, defaultCollectorTracesEndpoint, resolveCollectorLayer } from '../chunk-FZRODKIN.js';
|
|
7
|
-
import { redactSensitiveFields, logger } from '../chunk-
|
|
7
|
+
import { redactSensitiveFields, logger } from '../chunk-RU266375.js';
|
|
8
8
|
import { __name } from '../chunk-XE4OXN2W.js';
|
|
9
9
|
|
|
10
10
|
// src/telemetry/health.ts
|
|
@@ -135,7 +135,7 @@ async function bootstrapTelemetry(cfg) {
|
|
|
135
135
|
const serviceVersion = resolveVersion(cfg.serviceVersion);
|
|
136
136
|
const otlpEndpoint = resolveEndpoint(cfg.serviceName, cfg.boundary, cfg.otlpEndpoint);
|
|
137
137
|
const sampleRatio = resolveSampling(cfg.sampleRatio, env);
|
|
138
|
-
const { createPinoLogger: createPinoLogger2 } = await import('../pino-logger-
|
|
138
|
+
const { createPinoLogger: createPinoLogger2 } = await import('../pino-logger-GJ2CYLD5.js');
|
|
139
139
|
const logger2 = await createPinoLogger2({
|
|
140
140
|
serviceName: cfg.serviceName,
|
|
141
141
|
env,
|
package/dist/temporal/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { TemporalClient, TemporalClientFactory, TemporalModule, TemporalWorker, TemporalWorkerFactory, TemporalWorkerManager } from '../chunk-
|
|
1
|
+
export { TemporalClient, TemporalClientFactory, TemporalModule, TemporalWorker, TemporalWorkerFactory, TemporalWorkerManager } from '../chunk-YNDJQRI3.js';
|
|
2
2
|
import '../chunk-YFOHAHZE.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-RU266375.js';
|
|
4
4
|
import '../chunk-XE4OXN2W.js';
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
package/dist/tracker/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { TrackerModule, UNIFIED_TRACKER_CONSTANTS, UnifiedTrackerStub, UsageMetricType, createProductTracker, trackOperation, trackerStub } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { TrackerModule, UNIFIED_TRACKER_CONSTANTS, UnifiedTrackerStub, UsageMetricType, createProductTracker, trackOperation, trackerStub } from '../chunk-KW55Q6TA.js';
|
|
2
|
+
import '../chunk-5JNHVKHG.js';
|
|
3
|
+
import '../chunk-INAZ3PKF.js';
|
|
4
4
|
import '../chunk-QGBXVNRM.js';
|
|
5
5
|
import '../chunk-YFOHAHZE.js';
|
|
6
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-RU266375.js';
|
|
7
7
|
import '../chunk-XE4OXN2W.js';
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"workspace-guard-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"workspace-guard-7PEZT3ZJ.js"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@burdenoff/be-sdk",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.828.1",
|
|
4
4
|
"description": "Backend SDK for Burdenoff products providing unified access to notifications, RBAC, activity tracking, usage monitoring, and more",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { EventQueueFactory, resolveQueueType } from './chunk-JNJSSBKO.js';
|
|
2
|
-
import './chunk-S7LWYERE.js';
|
|
3
|
-
import './chunk-VBXPFYZ5.js';
|
|
4
|
-
import './chunk-CBZNP6RF.js';
|
|
5
|
-
import './chunk-XE4OXN2W.js';
|
|
6
|
-
//# sourceMappingURL=EventQueueFactory-ELT7NDXK.js.map
|
|
7
|
-
//# sourceMappingURL=EventQueueFactory-ELT7NDXK.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/logger/index.ts"],"names":["REDACTED_VALUE","SENSITIVE_KEY_PATTERN","isPlainObject","value","Array","isArray","Date","redactValue","key","test","map","item","undefined","Object","fromEntries","entries","entryKey","entryValue","redactSensitiveFields","Logger","level","enableConsole","context","transport","config","console","setContext","getContext","debug","message","args","metadata","error","parseArgs","logInternal","info","warn","log","trace","arg","Error","assign","keys","length","meta","shouldLog","redactedMeta","redactedContext","logEntry","timestamp","toISOString","stack","logToConsole","entry","output","JSON","stringify","levels","indexOf","createChild","childContext","child","module","withMetadata","close","setLevel","getLevel","setConsoleEnabled","enabled","isConsoleEnabled","addTransport","removeTransport","logger"],"mappings":";;;AAAA,IAAA,cAAA,GAAA;;;;;;;;;;AAQA,IAAMA,cAAAA,GAAiB,YAAA;AACvB,IAAMC,qBAAAA,GAAwB,qFAAA;AAE9B,SAASC,cAAcC,KAAAA,EAAc;AACnC,EAAA,OAAO,OAAOA,KAAAA,KAAU,QAAA,IAAYA,KAAAA,KAAU,IAAA,IAAQ,CAACC,KAAAA,CAAMC,OAAAA,CAAQF,KAAAA,CAAAA,IAAU,EAAEA,KAAAA,YAAiBG,IAAAA,CAAAA;AACpG;AAFSJ,MAAAA,CAAAA,aAAAA,EAAAA,eAAAA,CAAAA;AAIT,SAASK,WAAAA,CAAYC,KAAyBL,KAAAA,EAAc;AAC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**\n * Logger Module\n * Structured logging compatible with console statements\n * 100% drop-in replacement for console.log/warn/error\n */\n\nimport type { SDKContext } from '../types/index.js';\n\nconst REDACTED_VALUE = '[REDACTED]';\nconst SENSITIVE_KEY_PATTERN = /(token|password|secret|authorization|api[-_]?key|client[-_]?secret|cookie|session)/i;\n\nfunction isPlainObject(value: unknown): value is Record<string, unknown> {\n return typeof value === 'object' && value !== null && !Array.isArray(value) && !(value instanceof Date);\n}\n\nfunction redactValue(key: string | undefined, value: unknown): unknown {\n if (key && SENSITIVE_KEY_PATTERN.test(key)) {\n return REDACTED_VALUE;\n }\n\n if (Array.isArray(value)) {\n return value.map((item) => redactValue(undefined, item));\n }\n\n if (isPlainObject(value)) {\n return Object.fromEntries(\n Object.entries(value).map(([entryKey, entryValue]) => [entryKey, redactValue(entryKey, entryValue)])\n );\n }\n\n return value;\n}\n\nexport function redactSensitiveFields<T>(value: T): T {\n return redactValue(undefined, value) as T;\n}\n\nexport type LogLevel = 'debug' | 'info' | 'warn' | 'error';\n\nexport interface LogMeta {\n [key: string]: unknown;\n context?: SDKContext;\n timestamp?: string;\n correlationId?: string;\n}\n\nexport interface LoggerConfig {\n level: LogLevel;\n console: boolean;\n transport?: LoggerTransport;\n}\n\nexport interface LoggerTransport {\n log(level: string, message: string, meta?: Record<string, unknown>): void;\n}\n\n/**\n * Logger class with structured logging support\n */\nexport class Logger {\n private level: LogLevel;\n private enableConsole: boolean;\n private context?: SDKContext;\n private transport?: LoggerTransport;\n\n constructor(config: LoggerConfig = { level: 'info', console: true }) {\n this.level = config.level;\n this.enableConsole = config.console;\n this.transport = config.transport;\n }\n\n /**\n * Set context for all future log entries\n */\n public setContext(context: SDKContext): void {\n this.context = context;\n }\n\n /**\n * Get current context\n */\n public getContext(): SDKContext | undefined {\n return this.context;\n }\n\n /**\n * Debug level logging\n */\n public debug(message: string, ...args: unknown[]): void {\n const { metadata, error } = this.parseArgs(args);\n this.logInternal('debug', message, metadata, error);\n }\n\n /**\n * Info level logging\n */\n public info(message: string, ...args: unknown[]): void {\n const { metadata, error } = this.parseArgs(args);\n this.logInternal('info', message, metadata, error);\n }\n\n /**\n * Warning level logging\n */\n public warn(message: string, ...args: unknown[]): void {\n const { metadata, error } = this.parseArgs(args);\n this.logInternal('warn', message, metadata, error);\n }\n\n /**\n * Error level logging\n */\n public error(message: string, ...args: unknown[]): void {\n const { metadata, error } = this.parseArgs(args);\n this.logInternal('error', message, metadata, error);\n }\n\n /**\n * Generic log method (console-compatible)\n */\n public log(message: string, ...args: unknown[]): void {\n const { metadata, error } = this.parseArgs(args);\n this.logInternal('info', message, metadata, error);\n }\n\n /**\n * Trace level logging (alias for debug)\n */\n public trace(message: string, ...args: unknown[]): void {\n this.debug(message, ...args);\n }\n\n /**\n * Parse variadic arguments into metadata and error\n */\n private parseArgs(args: unknown[]): {\n metadata: Record<string, unknown>;\n error?: Error;\n } {\n const metadata: Record<string, unknown> = {};\n let error: Error | undefined;\n\n for (const arg of args) {\n if (arg instanceof Error) {\n error = arg;\n } else if (typeof arg === 'object' && arg !== null) {\n Object.assign(metadata, arg as Record<string, unknown>);\n } else if (arg !== undefined && arg !== null) {\n // Convert primitive to metadata\n metadata['data'] = arg;\n }\n }\n\n return { metadata: Object.keys(metadata).length > 0 ? metadata : {}, error };\n }\n\n /**\n * Internal log method\n */\n private logInternal(level: LogLevel, message: string, meta?: Record<string, unknown>, error?: Error): void {\n if (!this.shouldLog(level)) {\n return;\n }\n\n const redactedMeta = meta ? redactSensitiveFields(meta) : undefined;\n const redactedContext = this.context ? redactSensitiveFields(this.context) : undefined;\n\n const logEntry = {\n level,\n message,\n timestamp: new Date().toISOString(),\n ...redactedMeta,\n context: (redactedMeta && redactedMeta['context']) || redactedContext,\n ...(error ? { error: error.message, stack: error.stack } : {}),\n };\n\n // Console output\n if (this.enableConsole) {\n this.logToConsole(level, logEntry);\n }\n\n // Custom transport\n if (this.transport) {\n this.transport.log(level, message, logEntry);\n }\n }\n\n /**\n * Log to console with appropriate method\n */\n private logToConsole(level: LogLevel, entry: Record<string, unknown>): void {\n const output = JSON.stringify(entry, null, 2);\n\n if (level === 'error') {\n console.error(output);\n } else if (level === 'warn') {\n console.warn(output);\n } else {\n console.info(output);\n }\n }\n\n /**\n * Check if log level should be logged\n */\n private shouldLog(level: LogLevel): boolean {\n const levels: LogLevel[] = ['debug', 'info', 'warn', 'error'];\n return levels.indexOf(level) >= levels.indexOf(this.level);\n }\n\n /**\n * Create child logger with additional context\n */\n public createChild(childContext: Partial<SDKContext>): Logger {\n const child = new Logger({\n level: this.level,\n console: this.enableConsole,\n transport: this.transport,\n });\n child.setContext({ ...this.context, ...childContext });\n return child;\n }\n\n /**\n * Create child logger (alias for createChild, accepts string context)\n */\n public child(context: string): Logger {\n return this.createChild({ module: context });\n }\n\n /**\n * Create logger with metadata context\n */\n public withMetadata(metadata: Record<string, unknown>): {\n log: (message: string, ...args: unknown[]) => void;\n error: (message: string, ...args: unknown[]) => void;\n warn: (message: string, ...args: unknown[]) => void;\n info: (message: string, ...args: unknown[]) => void;\n debug: (message: string, ...args: unknown[]) => void;\n trace: (message: string, ...args: unknown[]) => void;\n } {\n return {\n log: (message: string, ...args: unknown[]) => this.log(message, metadata, ...args),\n error: (message: string, ...args: unknown[]) => this.error(message, metadata, ...args),\n warn: (message: string, ...args: unknown[]) => this.warn(message, metadata, ...args),\n info: (message: string, ...args: unknown[]) => this.info(message, metadata, ...args),\n debug: (message: string, ...args: unknown[]) => this.debug(message, metadata, ...args),\n trace: (message: string, ...args: unknown[]) => this.trace(message, metadata, ...args),\n };\n }\n\n /**\n * Close logger and cleanup resources\n */\n public async close(): Promise<void> {\n // Close custom transport if it has a close method\n if (this.transport && 'close' in this.transport && typeof this.transport.close === 'function') {\n await (this.transport.close as () => Promise<void>)();\n }\n }\n\n /**\n * Change log level\n */\n public setLevel(level: LogLevel): void {\n this.level = level;\n }\n\n /**\n * Get current log level\n */\n public getLevel(): LogLevel {\n return this.level;\n }\n\n /**\n * Enable or disable console output\n */\n public setConsoleEnabled(enabled: boolean): void {\n this.enableConsole = enabled;\n }\n\n /**\n * Check if console output is enabled\n */\n public isConsoleEnabled(): boolean {\n return this.enableConsole;\n }\n\n /**\n * Add a custom transport\n */\n public addTransport(transport: LoggerTransport): void {\n this.transport = transport;\n }\n\n /**\n * Remove custom transport\n */\n public removeTransport(): void {\n this.transport = undefined;\n }\n}\n\n/**\n * Default logger instance\n */\nexport const logger = new Logger();\n\n/**\n * Console-compatible wrapper functions\n */\nexport const log = (message: string, ...args: unknown[]): void => {\n logger.info(message, { args });\n};\n\nexport const warn = (message: string, ...args: unknown[]): void => {\n logger.warn(message, { args });\n};\n\nexport const error = (message: string, ...args: unknown[]): void => {\n logger.error(message, { args });\n};\n\nexport const debug = (message: string, ...args: unknown[]): void => {\n logger.debug(message, { args });\n};\n"]}
|