@burdenoff/be-sdk 2026.1026.1 → 2026.1027.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/cache/index.js +2 -2
- package/dist/{chunk-WHGRGWXA.js → chunk-GP766LND.js} +2 -2
- package/dist/{chunk-WHGRGWXA.js.map → chunk-GP766LND.js.map} +1 -1
- package/dist/{chunk-Z4FUEHSY.js → chunk-KGJ7LPE7.js} +3 -3
- package/dist/{chunk-Z4FUEHSY.js.map → chunk-KGJ7LPE7.js.map} +1 -1
- package/dist/{chunk-HDUS6UBO.js → chunk-OPUC6PYJ.js} +58 -4
- package/dist/chunk-OPUC6PYJ.js.map +1 -0
- package/dist/{chunk-AT52BRVL.js → chunk-OXGIVASV.js} +3 -3
- package/dist/{chunk-AT52BRVL.js.map → chunk-OXGIVASV.js.map} +1 -1
- package/dist/{chunk-GRGTUP44.js → chunk-Q3SWU4VF.js} +68 -5
- package/dist/chunk-Q3SWU4VF.js.map +1 -0
- package/dist/{chunk-DTE2MHKE.js → chunk-Y2ZUUZNU.js} +3 -3
- package/dist/{chunk-DTE2MHKE.js.map → chunk-Y2ZUUZNU.js.map} +1 -1
- package/dist/export/index.js +2 -2
- package/dist/gateway/index.js +2 -2
- package/dist/gateway/security/index.js +1 -1
- package/dist/{index-D0hKZ9e2.d.ts → index-CVX5nRuw.d.ts} +30 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +21 -21
- package/dist/init/index.js +2 -2
- package/dist/prisma/index.js +2 -2
- package/dist/server/index.js +5 -2
- package/dist/server/index.js.map +1 -1
- package/dist/tracker/index.d.ts +1 -1
- package/dist/tracker/index.js +3 -2
- package/package.json +1 -1
- package/dist/chunk-GRGTUP44.js.map +0 -1
- package/dist/chunk-HDUS6UBO.js.map +0 -1
package/dist/gateway/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import '../chunk-
|
|
2
|
-
export { security_exports as Security } from '../chunk-
|
|
1
|
+
import '../chunk-KGJ7LPE7.js';
|
|
2
|
+
export { security_exports as Security } from '../chunk-GP766LND.js';
|
|
3
3
|
export { GatewayClient, createGatewayClient, createGatewayClientFromEnv } from '../chunk-UCNTCCV6.js';
|
|
4
4
|
import '../chunk-FZRODKIN.js';
|
|
5
5
|
import '../chunk-5NT2OEDQ.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { DEFAULT_ARMOR_CONFIG, DEFAULT_COST_MAP, DEFAULT_TIERS, MemoryValkey, __resetMetricsForTest, __setSecurityValkeyForTest, buildSecurityPlugins, checkRateLimit, createArmorPlugins, createOperationTimeoutPlugin, createOtelPlugin, createQueryComplexityPlugin, createRateLimitPlugin, getMetrics, getSecurityValkey, initializeMetrics, initializeOtel, initializeSecurityValkey, mergeCostMap, resolveActor, resolveSecurityOptionsFromEnv, resolveTiersFromEnv, scrapeMetrics, shutdownOtel } from '../../chunk-
|
|
1
|
+
export { DEFAULT_ARMOR_CONFIG, DEFAULT_COST_MAP, DEFAULT_TIERS, MemoryValkey, __resetMetricsForTest, __setSecurityValkeyForTest, buildSecurityPlugins, checkRateLimit, createArmorPlugins, createOperationTimeoutPlugin, createOtelPlugin, createQueryComplexityPlugin, createRateLimitPlugin, getMetrics, getSecurityValkey, initializeMetrics, initializeOtel, initializeSecurityValkey, mergeCostMap, resolveActor, resolveSecurityOptionsFromEnv, resolveTiersFromEnv, scrapeMetrics, shutdownOtel } from '../../chunk-GP766LND.js';
|
|
2
2
|
import '../../chunk-FZRODKIN.js';
|
|
3
3
|
import '../../chunk-RU266375.js';
|
|
4
4
|
import '../../chunk-XE4OXN2W.js';
|
|
@@ -291,9 +291,13 @@ interface ActivityTrackingOptions {
|
|
|
291
291
|
enabled?: boolean;
|
|
292
292
|
dedupeKey?: string;
|
|
293
293
|
}
|
|
294
|
+
type TrackedActorType = 'user' | 'app' | 'service' | 'super_admin';
|
|
295
|
+
declare function isTrackedActorType(value: unknown): value is TrackedActorType;
|
|
294
296
|
interface UnifiedTrackingOptions {
|
|
295
297
|
operationName?: string;
|
|
296
298
|
userId?: string;
|
|
299
|
+
actorType?: TrackedActorType;
|
|
300
|
+
onBehalfOf?: string;
|
|
297
301
|
context?: unknown;
|
|
298
302
|
rbacCheck?: RbacCheckOptions;
|
|
299
303
|
activityOptions?: ActivityTrackingOptions;
|
|
@@ -335,6 +339,31 @@ declare const UNIFIED_TRACKER_CONSTANTS: {
|
|
|
335
339
|
readonly PRODUCTS: {};
|
|
336
340
|
};
|
|
337
341
|
|
|
342
|
+
declare const AGENT_ACTIVITY_ACTIONS: Readonly<{
|
|
343
|
+
readonly RUN_COMPLETED: "agent.run.completed";
|
|
344
|
+
readonly RUN_FAILED: "agent.run.failed";
|
|
345
|
+
readonly TOOL_CALLED: "agent.tool.called";
|
|
346
|
+
readonly DELEGATION_SENT: "agent.delegation.sent";
|
|
347
|
+
readonly POLICY_BLOCKED: "agent.policy.blocked";
|
|
348
|
+
}>;
|
|
349
|
+
type AgentActivityAction = (typeof AGENT_ACTIVITY_ACTIONS)[keyof typeof AGENT_ACTIVITY_ACTIONS];
|
|
350
|
+
declare const AGENT_ACTIVITY_RESOURCE_TYPE = "agent";
|
|
351
|
+
interface AgentActivityOptions {
|
|
352
|
+
action: AgentActivityAction;
|
|
353
|
+
agentId: string;
|
|
354
|
+
workspaceId: string;
|
|
355
|
+
onBehalfOf?: string;
|
|
356
|
+
productId?: string;
|
|
357
|
+
success?: boolean;
|
|
358
|
+
errorMessage?: string;
|
|
359
|
+
description?: string;
|
|
360
|
+
resourceType?: string;
|
|
361
|
+
resourceId?: string;
|
|
362
|
+
metadata?: Record<string, unknown>;
|
|
363
|
+
dedupeKey?: string;
|
|
364
|
+
}
|
|
365
|
+
declare function trackAgentActivity(options: AgentActivityOptions): Promise<boolean>;
|
|
366
|
+
|
|
338
367
|
interface TrackOptions {
|
|
339
368
|
userId: string;
|
|
340
369
|
action: string;
|
|
@@ -414,4 +443,4 @@ declare class TrackerModule {
|
|
|
414
443
|
trackBatch(operations: TrackOptions[]): Promise<TrackResult[]>;
|
|
415
444
|
}
|
|
416
445
|
|
|
417
|
-
export { ActivityModule as A, type ProductTracker as P, type RbacCheckOptions as R, TrackerModule as T, UsageModule as U, type ActivityTrackingOptions as
|
|
446
|
+
export { ActivityModule as A, type ProductTracker as P, type RbacCheckOptions as R, TrackerModule as T, UsageModule as U, AGENT_ACTIVITY_ACTIONS as a, AGENT_ACTIVITY_RESOURCE_TYPE as b, type ActivityTrackingOptions as c, type AgentActivityAction as d, type AgentActivityOptions as e, type TrackOptions as f, type TrackResult as g, type TrackedActorType as h, type TrackingEvent as i, UNIFIED_TRACKER_CONSTANTS as j, UnifiedTrackerStub as k, type UnifiedTrackingOptions as l, UsageMetricType as m, type UsageTrackingOptions as n, createProductTracker as o, isTrackedActorType as p, trackOperation as q, trackerStub as r, trackAgentActivity as t };
|
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ 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-
|
|
10
|
+
import { A as ActivityModule, U as UsageModule, T as TrackerModule } from './index-CVX5nRuw.js';
|
|
11
11
|
import { DatabaseConfig, DatabaseModule } from './database/index.js';
|
|
12
12
|
import { E as EventsModule, I as IEventPublisher } from './index-BVXRewdr.js';
|
|
13
13
|
export { i as EventQueue } from './index-BVXRewdr.js';
|
package/dist/index.js
CHANGED
|
@@ -2,28 +2,37 @@ export { NAME_MAX_LENGTH, NAME_MIN_LENGTH, RbacCoverageError, USERNAME_MAX_LENGT
|
|
|
2
2
|
export { sharing_exports as Sharing } from './chunk-DS3YMJ4X.js';
|
|
3
3
|
export { tags_exports as Tags } from './chunk-X3MNBBOL.js';
|
|
4
4
|
export { TemporalClient, TemporalClientFactory, TemporalModule, TemporalWorker, TemporalWorkerFactory, TemporalWorkerManager } from './chunk-YNDJQRI3.js';
|
|
5
|
-
import { ActivityModule, UsageModule, TrackerModule } from './chunk-
|
|
6
|
-
export { ActivityModule, TrackerModule, UsageModule } from './chunk-
|
|
7
|
-
|
|
5
|
+
import { ActivityModule, UsageModule, TrackerModule } from './chunk-OPUC6PYJ.js';
|
|
6
|
+
export { ActivityModule, TrackerModule, UsageModule } from './chunk-OPUC6PYJ.js';
|
|
7
|
+
import './chunk-Q3SWU4VF.js';
|
|
8
|
+
export { middleware_exports as Middleware } from './chunk-ELU7VL3E.js';
|
|
8
9
|
import { TenantNotificationsModule, NotificationsModule } from './chunk-INAZ3PKF.js';
|
|
9
10
|
export { tenant_notifications_exports as Notifications, NotificationsModule } from './chunk-INAZ3PKF.js';
|
|
10
11
|
export { observability_exports as Observability } from './chunk-VAT66FJA.js';
|
|
11
12
|
export { platform_exports as Platform } from './chunk-N2UT3ESH.js';
|
|
12
|
-
export { prisma_exports as Prisma } from './chunk-
|
|
13
|
+
export { prisma_exports as Prisma } from './chunk-Y2ZUUZNU.js';
|
|
14
|
+
import './chunk-3Z2VRCT6.js';
|
|
13
15
|
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';
|
|
14
16
|
import { RBACModule } from './chunk-5JNHVKHG.js';
|
|
15
17
|
export { RBACModule, createRBACDirective, createRBACDirectiveForLayer, createRBACDirectiveFromEnv } from './chunk-5JNHVKHG.js';
|
|
16
|
-
export { RESOURCE_CAP_DEFAULTS, ResourceCapExceededError, ResourceCapsModule, configureResourceCaps, getResourceCaps } from './chunk-MZCBEJ67.js';
|
|
17
|
-
import './chunk-GRGTUP44.js';
|
|
18
|
-
import './chunk-3Z2VRCT6.js';
|
|
19
18
|
export { i18n_exports as I18n, createTranslator, getLanguage, getLocale, hasI18n, t } from './chunk-EBDHIL7V.js';
|
|
19
|
+
export { init_exports as Init } from './chunk-PPFJTSHA.js';
|
|
20
|
+
export { RESOURCE_CAP_DEFAULTS, ResourceCapExceededError, ResourceCapsModule, configureResourceCaps, getResourceCaps } from './chunk-MZCBEJ67.js';
|
|
20
21
|
export { instrumentation_exports as Instrumentation } from './chunk-E5DTAGCA.js';
|
|
21
22
|
import './chunk-AWPNRV3L.js';
|
|
22
|
-
export {
|
|
23
|
+
export { dataloader_exports as DataLoader } from './chunk-NUB5GQTU.js';
|
|
23
24
|
export { export_exports as Export } from './chunk-HZTDMERF.js';
|
|
24
|
-
export { captcha_exports as Captcha, isCaptchaEnabled, verifyCaptcha, verifyCaptchaIfEnabled } from './chunk-YMZEUTD2.js';
|
|
25
25
|
export { feature_flags_exports as FeatureFlags } from './chunk-UNASM5VJ.js';
|
|
26
26
|
export { files_exports as Files } from './chunk-6HO5AJ3U.js';
|
|
27
|
+
export { gateway_exports as Gateway } from './chunk-KGJ7LPE7.js';
|
|
28
|
+
import './chunk-GP766LND.js';
|
|
29
|
+
import { GatewayClient } from './chunk-UCNTCCV6.js';
|
|
30
|
+
import './chunk-FZRODKIN.js';
|
|
31
|
+
export { layer_exports as Layer } from './chunk-5NT2OEDQ.js';
|
|
32
|
+
import './chunk-VFCMR5GX.js';
|
|
33
|
+
import { ContextManager } from './chunk-RZOFS2BQ.js';
|
|
34
|
+
export { ContextManager } from './chunk-RZOFS2BQ.js';
|
|
35
|
+
import { GatewayError, GatewayErrorType } from './chunk-4KK6YJ46.js';
|
|
27
36
|
import { GraphModule } from './chunk-V3N6HDFE.js';
|
|
28
37
|
export { graph_exports as Graph, GraphModule } from './chunk-V3N6HDFE.js';
|
|
29
38
|
import './chunk-IZZ45AGA.js';
|
|
@@ -35,23 +44,15 @@ import { resolveEventStreamsUrl } from './chunk-KS2HQCJR.js';
|
|
|
35
44
|
export { graphql_exports as GraphQL } from './chunk-KMNSVLDS.js';
|
|
36
45
|
import './chunk-MWPYA2HD.js';
|
|
37
46
|
import './chunk-LKCBI6B2.js';
|
|
38
|
-
export { gateway_exports as Gateway } from './chunk-Z4FUEHSY.js';
|
|
39
|
-
import './chunk-WHGRGWXA.js';
|
|
40
|
-
import { GatewayClient } from './chunk-UCNTCCV6.js';
|
|
41
|
-
import './chunk-FZRODKIN.js';
|
|
42
|
-
export { layer_exports as Layer } from './chunk-5NT2OEDQ.js';
|
|
43
|
-
import './chunk-VFCMR5GX.js';
|
|
44
|
-
import { ContextManager } from './chunk-RZOFS2BQ.js';
|
|
45
|
-
export { ContextManager } from './chunk-RZOFS2BQ.js';
|
|
46
|
-
import { GatewayError, GatewayErrorType } from './chunk-4KK6YJ46.js';
|
|
47
47
|
export { ai_credits_exports as AiCredits } from './chunk-QUF27D73.js';
|
|
48
48
|
import { AuthModule } from './chunk-GJWQK3IU.js';
|
|
49
49
|
export { AuthModule } from './chunk-GJWQK3IU.js';
|
|
50
50
|
export { utils_exports as Utils } from './chunk-B7I4TABG.js';
|
|
51
|
-
export { cache_exports as Cache } from './chunk-
|
|
51
|
+
export { cache_exports as Cache } from './chunk-OXGIVASV.js';
|
|
52
|
+
import './chunk-A5F6Z5UE.js';
|
|
52
53
|
import { disposeAll } from './chunk-KO2ZXZ7W.js';
|
|
53
54
|
export { lifecycle_exports as Lifecycle, disposeAll, getRegisteredDisposableCount, registerDisposable, unregisterDisposable } from './chunk-KO2ZXZ7W.js';
|
|
54
|
-
|
|
55
|
+
export { captcha_exports as Captcha, isCaptchaEnabled, verifyCaptcha, verifyCaptchaIfEnabled } from './chunk-YMZEUTD2.js';
|
|
55
56
|
export { createInternalClient, createInternalClientForTenant, createInternalClientForWorkspaces } from './chunk-KJOSPVB2.js';
|
|
56
57
|
export { crypto_exports as Crypto } from './chunk-SBS4S2PJ.js';
|
|
57
58
|
import { DatabaseModule } from './chunk-UD5PPGVU.js';
|
|
@@ -60,7 +61,6 @@ import { APIError, NetworkError, TimeoutError, ValidationError } from './chunk-Q
|
|
|
60
61
|
export { DEFAULT_CIRCUIT_BREAKER_CONFIG, DEFAULT_GATEWAY_RETRY_CONFIG, DEFAULT_GATEWAY_ROUTING, DEFAULT_LAYER_RESOURCES, DEFAULT_LAYER_STREAMS } from './chunk-YFOHAHZE.js';
|
|
61
62
|
import { logger } from './chunk-RU266375.js';
|
|
62
63
|
export { logger_exports as Logger } from './chunk-RU266375.js';
|
|
63
|
-
export { dataloader_exports as DataLoader } from './chunk-NUB5GQTU.js';
|
|
64
64
|
import { __name } from './chunk-XE4OXN2W.js';
|
|
65
65
|
import { GraphQLClient } from 'graphql-request';
|
|
66
66
|
|
package/dist/init/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { getSDKState, initializeBurdenoffSDK, isSDKInitialized, resetSDK } from '../chunk-PPFJTSHA.js';
|
|
2
2
|
import '../chunk-MZCBEJ67.js';
|
|
3
3
|
import '../chunk-AWPNRV3L.js';
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-KGJ7LPE7.js';
|
|
5
|
+
import '../chunk-GP766LND.js';
|
|
6
6
|
import '../chunk-UCNTCCV6.js';
|
|
7
7
|
import '../chunk-FZRODKIN.js';
|
|
8
8
|
import '../chunk-5NT2OEDQ.js';
|
package/dist/prisma/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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
|
-
import '../chunk-OBBCR6WY.js';
|
|
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-Y2ZUUZNU.js';
|
|
3
2
|
export { addWorkspaceExtension, buildTransactionContextStatement, defaultWorkspaceExtensionConfig, getCallerTransaction, getWorkspaceContext, injectCreateFields, injectWhereWorkspaceId, maybeSetRlsGuc, maybeTagConnection, resetCallerTransactionStateForTests, runOperationInCallerTransaction, runOperationWithRlsGuc, setWorkspaceContext, withWorkspaceContext, withWorkspaceContextSync } from '../chunk-3Z2VRCT6.js';
|
|
3
|
+
import '../chunk-OBBCR6WY.js';
|
|
4
4
|
export { PrismaClientWrapper, configurePrismaLogging, createConnectionPool, createPrismaAdapter, createPrismaClient, ensureServiceApplicationName, installAcquireRetry, isTransientAcquireError } from '../chunk-IZZ45AGA.js';
|
|
5
5
|
import '../chunk-HEAQSZBX.js';
|
|
6
6
|
import '../chunk-DNULGVN3.js';
|
package/dist/server/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createHumanReadableErrorPlugin, formatHttpError, normalizeGraphQLResponse, createHttpErrorResponse } from '../chunk-6GL4SLU7.js';
|
|
2
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 { trackOperation, createExplicitActivityScope, runInExplicitActivityScope } from '../chunk-
|
|
5
|
-
export { suppressMutationAudit } from '../chunk-
|
|
4
|
+
import { trackOperation, createExplicitActivityScope, runInExplicitActivityScope } from '../chunk-Q3SWU4VF.js';
|
|
5
|
+
export { suppressMutationAudit } from '../chunk-Q3SWU4VF.js';
|
|
6
6
|
import { setWorkspaceContext, withWorkspaceContext } from '../chunk-3Z2VRCT6.js';
|
|
7
7
|
import { I18n } from '../chunk-EBDHIL7V.js';
|
|
8
8
|
import { getMetricsRegistry } from '../chunk-AWPNRV3L.js';
|
|
@@ -1527,6 +1527,9 @@ function recordMutationAudit(input) {
|
|
|
1527
1527
|
void trackOperation({
|
|
1528
1528
|
operationName: joinedFields,
|
|
1529
1529
|
userId: actorId,
|
|
1530
|
+
// The request context drives the row's actorType/onBehalfOf (BOFF-9684): an `app` actor
|
|
1531
|
+
// here is an AI agent or integration. An unknown kind is left unset, never guessed.
|
|
1532
|
+
context,
|
|
1530
1533
|
workspaceId,
|
|
1531
1534
|
success,
|
|
1532
1535
|
errorMessage,
|