@burdenoff/be-sdk 2026.1027.2 → 2026.1027.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/dist/ai-credits/index.d.ts +3 -3
- package/dist/ai-credits/index.js +1 -1
- package/dist/auth/index.d.ts +3 -3
- package/dist/auth/index.js +1 -1
- package/dist/cache/index.d.ts +2 -2
- package/dist/cache/index.js +2 -2
- package/dist/{chunk-YFOHAHZE.js → chunk-5CAFHK2Z.js} +2 -2
- package/dist/{chunk-YFOHAHZE.js.map → chunk-5CAFHK2Z.js.map} +1 -1
- package/dist/{chunk-QUF27D73.js → chunk-5RBIDJBZ.js} +3 -3
- package/dist/{chunk-QUF27D73.js.map → chunk-5RBIDJBZ.js.map} +1 -1
- package/dist/{chunk-JTG6GZTF.js → chunk-E36LPO3K.js} +4 -4
- package/dist/{chunk-JTG6GZTF.js.map → chunk-E36LPO3K.js.map} +1 -1
- package/dist/{chunk-6HO5AJ3U.js → chunk-FYFA7WAS.js} +3 -3
- package/dist/{chunk-6HO5AJ3U.js.map → chunk-FYFA7WAS.js.map} +1 -1
- package/dist/{chunk-HZTDMERF.js → chunk-GKOAAC6D.js} +3 -3
- package/dist/{chunk-HZTDMERF.js.map → chunk-GKOAAC6D.js.map} +1 -1
- package/dist/{chunk-GP766LND.js → chunk-NBN52AEM.js} +2 -2
- package/dist/{chunk-GP766LND.js.map → chunk-NBN52AEM.js.map} +1 -1
- package/dist/{chunk-OXGIVASV.js → chunk-PAQK3YF2.js} +3 -3
- package/dist/{chunk-OXGIVASV.js.map → chunk-PAQK3YF2.js.map} +1 -1
- package/dist/{chunk-X3MNBBOL.js → chunk-PNWFTWBQ.js} +3 -3
- package/dist/{chunk-X3MNBBOL.js.map → chunk-PNWFTWBQ.js.map} +1 -1
- package/dist/{chunk-5JNHVKHG.js → chunk-PQGMZH6K.js} +3 -3
- package/dist/{chunk-5JNHVKHG.js.map → chunk-PQGMZH6K.js.map} +1 -1
- package/dist/{chunk-UCNTCCV6.js → chunk-QGADOWSG.js} +4 -4
- package/dist/{chunk-UCNTCCV6.js.map → chunk-QGADOWSG.js.map} +1 -1
- package/dist/chunk-RM6AIMZT.js +51 -0
- package/dist/chunk-RM6AIMZT.js.map +1 -0
- package/dist/{chunk-5NT2OEDQ.js → chunk-STWFX5E2.js} +3 -3
- package/dist/{chunk-5NT2OEDQ.js.map → chunk-STWFX5E2.js.map} +1 -1
- package/dist/{chunk-OPUC6PYJ.js → chunk-V3GSTCVC.js} +4 -4
- package/dist/{chunk-OPUC6PYJ.js.map → chunk-V3GSTCVC.js.map} +1 -1
- package/dist/{chunk-YNDJQRI3.js → chunk-VXVLKRU6.js} +3 -3
- package/dist/{chunk-YNDJQRI3.js.map → chunk-VXVLKRU6.js.map} +1 -1
- package/dist/{chunk-VSP2QCEW.js → chunk-YCPVIFDN.js} +3 -3
- package/dist/{chunk-VSP2QCEW.js.map → chunk-YCPVIFDN.js.map} +1 -1
- package/dist/{client-WSFUJHLI.js → client-7DW6EYSA.js} +5 -5
- package/dist/{client-WSFUJHLI.js.map → client-7DW6EYSA.js.map} +1 -1
- package/dist/database/index.js +1 -1
- package/dist/event-queue/index.d.ts +4 -4
- package/dist/export/index.d.ts +2 -2
- package/dist/export/index.js +6 -6
- package/dist/files/index.d.ts +3 -3
- package/dist/files/index.js +1 -1
- package/dist/gateway/index.d.ts +3 -3
- package/dist/gateway/index.js +5 -5
- package/dist/gateway/security/index.js +1 -1
- package/dist/graph/index.d.ts +4 -4
- package/dist/graph/index.js +1 -1
- package/dist/{graphql-AaLJfGzz.d.ts → graphql-BUbw43Zx.d.ts} +1 -1
- package/dist/{index-DG5lCWNk.d.ts → index-3ZE1m-ZJ.d.ts} +2 -2
- package/dist/{index-B0ebYV9W.d.ts → index-5x0XMKXN.d.ts} +1 -1
- package/dist/{index-DMlr5R6K.d.ts → index-BKOBmdq7.d.ts} +2 -2
- package/dist/{index-Cx5I3ydM.d.ts → index-BvkVcW8I.d.ts} +1 -1
- package/dist/{index-CVX5nRuw.d.ts → index-C135w4ur.d.ts} +3 -3
- package/dist/{index-CfRZtB99.d.ts → index-CV3r9Taj.d.ts} +1 -1
- package/dist/{index-B4ciT3OZ.d.ts → index-CWmH_-RZ.d.ts} +1 -1
- package/dist/{index-CN4RA1PN.d.ts → index-CbgWNcus.d.ts} +1 -1
- package/dist/{index-Dvv6irk0.d.ts → index-Coua7_P7.d.ts} +1 -1
- package/dist/{index-BWhuZl8f.d.ts → index-Dcq8OduH.d.ts} +14 -4
- package/dist/{index-HxigeZFh.d.ts → index-DieBtd0X.d.ts} +1 -1
- package/dist/{index-BKafOO7G.d.ts → index-Dtj9Eer3.d.ts} +1 -1
- package/dist/{index-CqNXOs72.d.ts → index-JTx7ZQHe.d.ts} +3 -3
- package/dist/{index-C_t30VyQ.d.ts → index-aHtYvc3i.d.ts} +1 -1
- package/dist/{index-BCUkR8sC.d.ts → index-ffmipXSA.d.ts} +1 -1
- package/dist/index.d.ts +23 -23
- package/dist/index.js +23 -23
- package/dist/init/index.d.ts +2 -2
- package/dist/init/index.js +6 -6
- package/dist/instrumentation/index.d.ts +4 -4
- package/dist/layer/index.d.ts +2 -2
- package/dist/layer/index.js +2 -2
- package/dist/{layer-GNAVXBMf.d.ts → layer-Cv9vSwBx.d.ts} +1 -0
- package/dist/logger/index.d.ts +3 -3
- package/dist/notifications/index.d.ts +4 -4
- package/dist/notifications/index.js +1 -1
- package/dist/prisma/index.js +2 -2
- package/dist/rbac/index.d.ts +3 -3
- package/dist/rbac/index.js +2 -2
- package/dist/resource-caps/index.d.ts +3 -3
- package/dist/server/index.d.ts +19 -3
- package/dist/server/index.js +28 -20
- package/dist/server/index.js.map +1 -1
- package/dist/tags/index.d.ts +3 -3
- package/dist/tags/index.js +1 -1
- package/dist/telemetry/index.d.ts +5 -5
- package/dist/temporal/index.d.ts +1 -1
- package/dist/temporal/index.js +2 -2
- package/dist/tracker/index.d.ts +5 -5
- package/dist/tracker/index.js +4 -4
- package/dist/{types-B376RbyK.d.ts → types-DgJ4lDYA.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-KGJ7LPE7.js +0 -22
- package/dist/chunk-KGJ7LPE7.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as GraphQLRequestOptions, b as GraphQLResponse, h as GraphQLError } from './types-
|
|
1
|
+
import { a as GraphQLRequestOptions, b as GraphQLResponse, h as GraphQLError } from './types-DgJ4lDYA.js';
|
|
2
2
|
|
|
3
3
|
declare const FILE_ACTOR_TYPES: readonly ["user", "app", "service", "super_admin"];
|
|
4
4
|
type FileActorType = (typeof FILE_ACTOR_TYPES)[number];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as GatewayRequestHeaders } from './layer-
|
|
2
|
-
import { I as IGatewayClient, G as GatewayClientConfig, a as GraphQLRequestOptions, b as GraphQLResponse, c as ICircuitBreaker, d as GatewayClientHealth, C as CircuitBreakerStats, e as CircuitState, f as GatewayError, g as GatewayErrorType, h as GraphQLError, R as RequestContext } from './types-
|
|
1
|
+
import { f as GatewayRequestHeaders } from './layer-Cv9vSwBx.js';
|
|
2
|
+
import { I as IGatewayClient, G as GatewayClientConfig, a as GraphQLRequestOptions, b as GraphQLResponse, c as ICircuitBreaker, d as GatewayClientHealth, C as CircuitBreakerStats, e as CircuitState, f as GatewayError, g as GatewayErrorType, h as GraphQLError, R as RequestContext } from './types-DgJ4lDYA.js';
|
|
3
3
|
import { i as index$1 } from './index-D3d2TAS-.js';
|
|
4
4
|
|
|
5
5
|
declare class GatewayClient implements IGatewayClient {
|
|
@@ -35,8 +35,17 @@ declare function createGatewayClientFromEnv(): GatewayClient;
|
|
|
35
35
|
|
|
36
36
|
declare function signServiceJwt(actorId: string, ttlSeconds?: number): Promise<string | null>;
|
|
37
37
|
|
|
38
|
+
declare const DELEGATED_AUTHORIZATION_HEADER = "x-delegated-authorization";
|
|
39
|
+
interface DelegatedGatewayTransportInput {
|
|
40
|
+
appAsUserToken: string;
|
|
41
|
+
workspaceId?: string;
|
|
42
|
+
}
|
|
43
|
+
declare function buildDelegatedGatewayHeaders(input: DelegatedGatewayTransportInput): GatewayRequestHeaders;
|
|
44
|
+
|
|
38
45
|
declare const index_CircuitBreakerStats: typeof CircuitBreakerStats;
|
|
39
46
|
declare const index_CircuitState: typeof CircuitState;
|
|
47
|
+
declare const index_DELEGATED_AUTHORIZATION_HEADER: typeof DELEGATED_AUTHORIZATION_HEADER;
|
|
48
|
+
type index_DelegatedGatewayTransportInput = DelegatedGatewayTransportInput;
|
|
40
49
|
type index_GatewayClient = GatewayClient;
|
|
41
50
|
declare const index_GatewayClient: typeof GatewayClient;
|
|
42
51
|
declare const index_GatewayClientConfig: typeof GatewayClientConfig;
|
|
@@ -49,11 +58,12 @@ declare const index_GraphQLResponse: typeof GraphQLResponse;
|
|
|
49
58
|
declare const index_ICircuitBreaker: typeof ICircuitBreaker;
|
|
50
59
|
declare const index_IGatewayClient: typeof IGatewayClient;
|
|
51
60
|
declare const index_RequestContext: typeof RequestContext;
|
|
61
|
+
declare const index_buildDelegatedGatewayHeaders: typeof buildDelegatedGatewayHeaders;
|
|
52
62
|
declare const index_createGatewayClient: typeof createGatewayClient;
|
|
53
63
|
declare const index_createGatewayClientFromEnv: typeof createGatewayClientFromEnv;
|
|
54
64
|
declare const index_signServiceJwt: typeof signServiceJwt;
|
|
55
65
|
declare namespace index {
|
|
56
|
-
export { index_CircuitBreakerStats as CircuitBreakerStats, index_CircuitState as CircuitState, index_GatewayClient as GatewayClient, index_GatewayClientConfig as GatewayClientConfig, index_GatewayClientHealth as GatewayClientHealth, index_GatewayError as GatewayError, index_GatewayErrorType as GatewayErrorType, index_GraphQLError as GraphQLError, index_GraphQLRequestOptions as GraphQLRequestOptions, index_GraphQLResponse as GraphQLResponse, index_ICircuitBreaker as ICircuitBreaker, index_IGatewayClient as IGatewayClient, index_RequestContext as RequestContext, index$1 as Security, index_createGatewayClient as createGatewayClient, index_createGatewayClientFromEnv as createGatewayClientFromEnv, index_signServiceJwt as signServiceJwt };
|
|
66
|
+
export { index_CircuitBreakerStats as CircuitBreakerStats, index_CircuitState as CircuitState, index_DELEGATED_AUTHORIZATION_HEADER as DELEGATED_AUTHORIZATION_HEADER, type index_DelegatedGatewayTransportInput as DelegatedGatewayTransportInput, index_GatewayClient as GatewayClient, index_GatewayClientConfig as GatewayClientConfig, index_GatewayClientHealth as GatewayClientHealth, index_GatewayError as GatewayError, index_GatewayErrorType as GatewayErrorType, index_GraphQLError as GraphQLError, index_GraphQLRequestOptions as GraphQLRequestOptions, index_GraphQLResponse as GraphQLResponse, index_ICircuitBreaker as ICircuitBreaker, index_IGatewayClient as IGatewayClient, index_RequestContext as RequestContext, index$1 as Security, index_buildDelegatedGatewayHeaders as buildDelegatedGatewayHeaders, index_createGatewayClient as createGatewayClient, index_createGatewayClientFromEnv as createGatewayClientFromEnv, index_signServiceJwt as signServiceJwt };
|
|
57
67
|
}
|
|
58
68
|
|
|
59
|
-
export { GatewayClient as G,
|
|
69
|
+
export { DELEGATED_AUTHORIZATION_HEADER as D, GatewayClient as G, type DelegatedGatewayTransportInput as a, buildDelegatedGatewayHeaders as b, createGatewayClient as c, createGatewayClientFromEnv as d, index as i, signServiceJwt as s };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { S as ServiceLayer } from './layer-
|
|
1
|
+
import { S as ServiceLayer } from './layer-Cv9vSwBx.js';
|
|
2
2
|
import { S as ShutdownDisposable } from './shutdown-registry-CW9LryO8.js';
|
|
3
3
|
import { E as EntityEventRbacMetadata, a as EntityEventType$1, b as GraphEventEmitter$1, G as GraphEventEmitterImpl, c as createGraphEventEmitter$1, g as getGraphEventEmitter, r as resetGraphEventEmitter } from './graph-emitter-r5TylDBm.js';
|
|
4
|
-
import { B as BurdenoffGraphQLClient } from './graphql-
|
|
5
|
-
import { a as SDKContext } from './index-
|
|
4
|
+
import { B as BurdenoffGraphQLClient } from './graphql-BUbw43Zx.js';
|
|
5
|
+
import { a as SDKContext } from './index-CV3r9Taj.js';
|
|
6
6
|
|
|
7
7
|
interface EventMessage$1<T = unknown> {
|
|
8
8
|
id: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as GraphQLRequestOptions, b as GraphQLResponse } from './types-
|
|
1
|
+
import { a as GraphQLRequestOptions, b as GraphQLResponse } from './types-DgJ4lDYA.js';
|
|
2
2
|
|
|
3
3
|
declare const TAG_ACTOR_TYPES: readonly ["user", "app", "service", "super_admin"];
|
|
4
4
|
type TagActorType = (typeof TAG_ACTOR_TYPES)[number];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { L as LayerConfig, S as ServiceLayer, a as LayerFullConfig, D as DEFAULT_GATEWAY_ROUTING, b as DEFAULT_LAYER_RESOURCES, c as DEFAULT_LAYER_STREAMS, G as GatewayRoutingConfig, d as LayerGatewayConfig, e as LayerResourceUrls } from './layer-
|
|
1
|
+
import { L as LayerConfig, S as ServiceLayer, a as LayerFullConfig, D as DEFAULT_GATEWAY_ROUTING, b as DEFAULT_LAYER_RESOURCES, c as DEFAULT_LAYER_STREAMS, G as GatewayRoutingConfig, d as LayerGatewayConfig, e as LayerResourceUrls } from './layer-Cv9vSwBx.js';
|
|
2
2
|
|
|
3
3
|
declare class LayerManager {
|
|
4
4
|
private config;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import { a as SDKContext, S as SDKConfig, E as EventQueueHealthStatus, T as TemporalHealthStatus, b as SDKHealthStatus, c as SDKShutdownOptions } from './index-
|
|
2
|
-
export { d as EventQueueSDKConfig, L as LoggerConfig, e as LoggerTransport } from './index-
|
|
3
|
-
import { L as Logger } from './index-
|
|
4
|
-
export { i as Logger } from './index-
|
|
1
|
+
import { a as SDKContext, S as SDKConfig, E as EventQueueHealthStatus, T as TemporalHealthStatus, b as SDKHealthStatus, c as SDKShutdownOptions } from './index-CV3r9Taj.js';
|
|
2
|
+
export { d as EventQueueSDKConfig, L as LoggerConfig, e as LoggerTransport } from './index-CV3r9Taj.js';
|
|
3
|
+
import { L as Logger } from './index-Dtj9Eer3.js';
|
|
4
|
+
export { i as Logger } from './index-Dtj9Eer3.js';
|
|
5
5
|
import { AuthModule } from './auth/index.js';
|
|
6
|
-
import { T as TenantNotificationsModule, a as NotificationsModule } from './index-
|
|
7
|
-
export { t as Notifications } from './index-
|
|
6
|
+
import { T as TenantNotificationsModule, a as NotificationsModule } from './index-BKOBmdq7.js';
|
|
7
|
+
export { t as Notifications } from './index-BKOBmdq7.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-C135w4ur.js';
|
|
11
11
|
import { DatabaseConfig, DatabaseModule } from './database/index.js';
|
|
12
|
-
import { E as EventsModule, I as IEventPublisher } from './index-
|
|
13
|
-
export { i as EventQueue } from './index-
|
|
14
|
-
import { G as GraphModule } from './index-
|
|
15
|
-
export { i as Graph } from './index-
|
|
16
|
-
import { B as BurdenoffGraphQLClient } from './graphql-
|
|
12
|
+
import { E as EventsModule, I as IEventPublisher } from './index-JTx7ZQHe.js';
|
|
13
|
+
export { i as EventQueue } from './index-JTx7ZQHe.js';
|
|
14
|
+
import { G as GraphModule } from './index-3ZE1m-ZJ.js';
|
|
15
|
+
export { i as Graph } from './index-3ZE1m-ZJ.js';
|
|
16
|
+
import { B as BurdenoffGraphQLClient } from './graphql-BUbw43Zx.js';
|
|
17
17
|
import { TemporalModule } from './temporal/index.js';
|
|
18
18
|
export { TemporalClient, TemporalClientConfig, TemporalClientFactory, TemporalWorker, TemporalWorkerConfig, TemporalWorkerFactory, TemporalWorkerManager, WorkflowStartOptions } from './temporal/index.js';
|
|
19
19
|
export { createInternalClient, createInternalClientForTenant, createInternalClientForWorkspaces } from './client/internal-client.js';
|
|
20
20
|
export { i as Lifecycle } from './index-CoMKgL-p.js';
|
|
21
21
|
export { BillingPlanTransport, PlanTier, RESOURCE_CAP_DEFAULTS, ResourceCap, ResourceCapDefaults, ResourceCapExceededError, ResourceCapsConfig, ResourceCapsModule, ResourceName, WorkspaceResourceCapScope, configureResourceCaps, getResourceCaps } from './resource-caps/index.js';
|
|
22
22
|
export { i as Sharing } from './index-kssw5ziY.js';
|
|
23
|
-
export { i as Tags } from './index-
|
|
24
|
-
export { i as Files } from './index-
|
|
25
|
-
export { i as AiCredits } from './index-
|
|
26
|
-
export { i as Cache } from './index-
|
|
23
|
+
export { i as Tags } from './index-aHtYvc3i.js';
|
|
24
|
+
export { i as Files } from './index-CbgWNcus.js';
|
|
25
|
+
export { i as AiCredits } from './index-DieBtd0X.js';
|
|
26
|
+
export { i as Cache } from './index-BvkVcW8I.js';
|
|
27
27
|
export { i as Middleware } from './index-DSOpj8DI.js';
|
|
28
28
|
export { i as Observability } from './index-4gKQKZ2B.js';
|
|
29
29
|
export { i as GraphQL } from './index-joONjwLt.js';
|
|
30
30
|
export { i as Prisma } from './index-CL7koBpQ.js';
|
|
31
31
|
export { i as Utils } from './index-PaojfSdd.js';
|
|
32
32
|
export { i as I18n, I as I18nCapableContext, T as Translator, c as createTranslator, g as getLanguage, a as getLocale, h as hasI18n, t } from './index-D4l1u8VR.js';
|
|
33
|
-
export { i as Export } from './index-
|
|
34
|
-
export { i as Init } from './index-
|
|
33
|
+
export { i as Export } from './index-CWmH_-RZ.js';
|
|
34
|
+
export { i as Init } from './index-5x0XMKXN.js';
|
|
35
35
|
export { i as DataLoader } from './index-DW9q22GH.js';
|
|
36
|
-
export { i as Instrumentation } from './index-
|
|
37
|
-
export { i as Layer } from './index-
|
|
36
|
+
export { i as Instrumentation } from './index-Coua7_P7.js';
|
|
37
|
+
export { i as Layer } from './index-ffmipXSA.js';
|
|
38
38
|
export { i as Crypto } from './index-e_18DzAg.js';
|
|
39
|
-
export { i as Gateway } from './index-
|
|
39
|
+
export { i as Gateway } from './index-Dcq8OduH.js';
|
|
40
40
|
export { i as FeatureFlags } from './index-Rc5EphmY.js';
|
|
41
41
|
export { i as Captcha, R as RecaptchaVerifyOptions, a as RecaptchaVerifyResult, b as isCaptchaEnabled, v as verifyCaptcha, c as verifyCaptchaIfEnabled } from './index-B70b5mYS.js';
|
|
42
42
|
export { i as Platform } from './index-DfYu1p9e.js';
|
|
43
43
|
export { N as NAME_MAX_LENGTH, a as NAME_MIN_LENGTH, b as NameErrorCode, c as NameValidationResult, R as RbacCoverageError, d as RbacCoverageOptions, e as RbacCoverageReport, f as RbacCoverageSource, U as USERNAME_MAX_LENGTH, g as USERNAME_MIN_LENGTH, h as UserFieldError, i as UserFieldKey, j as UserFieldsValidationResult, k as UsernameErrorCode, l as UsernameValidationResult, V as ValidatedUserFields, m as Validation, n as analyzeRbacCoverage, o as assertRbacCoverage, p as lengthInCodePoints, v as validateName, q as validateUserFields, r as validateUsername } from './index-qwG_TaUg.js';
|
|
44
44
|
export { E as EmitGeneration, P as PRODUCT_RENAMES, a as PRODUCT_RENAME_EMIT, b as PRODUCT_SLUG_ALIASES, i as ProductAlias, c as ProductRename, R as RENAME_CONCERNS, d as RenameConcern, e as billingIdVariants, f as emitBillingId, g as emitName, h as emitProductSlug, j as emitQuotaKey, k as emitRbacResource, l as emitTemplateKey, m as isLegacyName, n as isSameBillingId, o as isSameGraphQLName, p as isSameName, q as isSameProductSlug, r as isSameQuotaKey, s as isSameRbacResource, t as isSameTemplateKey, u as nameVariants, v as normalizeBillingId, w as normalizeGraphQLName, x as normalizeProductSlug, y as normalizeQuotaKey, z as normalizeRbacResource, A as normalizeTemplateKey, B as productSlugVariants, C as quotaKeyVariants, D as rbacResourceVariants, F as readRenamedEnv, G as templateKeyVariants, H as toCurrentName, I as toLegacyName } from './index-BuAj5nXg.js';
|
|
45
|
-
export { C as CircuitBreakerConfig, h as DEFAULT_CIRCUIT_BREAKER_CONFIG, i as DEFAULT_GATEWAY_RETRY_CONFIG, D as DEFAULT_GATEWAY_ROUTING, b as DEFAULT_LAYER_RESOURCES, c as DEFAULT_LAYER_STREAMS, f as GatewayRequestHeaders, g as GatewayRetryConfig, G as GatewayRoutingConfig, L as LayerConfig, a as LayerFullConfig, d as LayerGatewayConfig, e as LayerResourceUrls, S as ServiceLayer } from './layer-
|
|
45
|
+
export { C as CircuitBreakerConfig, h as DEFAULT_CIRCUIT_BREAKER_CONFIG, i as DEFAULT_GATEWAY_RETRY_CONFIG, D as DEFAULT_GATEWAY_ROUTING, b as DEFAULT_LAYER_RESOURCES, c as DEFAULT_LAYER_STREAMS, f as GatewayRequestHeaders, g as GatewayRetryConfig, G as GatewayRoutingConfig, L as LayerConfig, a as LayerFullConfig, d as LayerGatewayConfig, e as LayerResourceUrls, S as ServiceLayer } from './layer-Cv9vSwBx.js';
|
|
46
46
|
export { S as ShutdownDisposable, d as disposeAll, g as getRegisteredDisposableCount, r as registerDisposable, u as unregisterDisposable } from './shutdown-registry-CW9LryO8.js';
|
|
47
47
|
import './types-C-6m9NoG.js';
|
|
48
48
|
import 'graphql';
|
|
@@ -60,7 +60,7 @@ import './graph-emitter-r5TylDBm.js';
|
|
|
60
60
|
import './prisma-extension-gYhYriA0.js';
|
|
61
61
|
import '@temporalio/client';
|
|
62
62
|
import '@temporalio/common';
|
|
63
|
-
import './types-
|
|
63
|
+
import './types-DgJ4lDYA.js';
|
|
64
64
|
import 'elysia';
|
|
65
65
|
import './types-Bo2wkjSP.js';
|
|
66
66
|
import './graphql/services/index.js';
|
package/dist/index.js
CHANGED
|
@@ -1,34 +1,33 @@
|
|
|
1
1
|
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';
|
|
2
2
|
export { sharing_exports as Sharing } from './chunk-DS3YMJ4X.js';
|
|
3
|
-
export { tags_exports as Tags } from './chunk-
|
|
4
|
-
export { TemporalClient, TemporalClientFactory, TemporalModule, TemporalWorker, TemporalWorkerFactory, TemporalWorkerManager } from './chunk-
|
|
5
|
-
import { ActivityModule, UsageModule, TrackerModule } from './chunk-
|
|
6
|
-
export { ActivityModule, TrackerModule, UsageModule } from './chunk-
|
|
7
|
-
|
|
8
|
-
export { middleware_exports as Middleware } from './chunk-ELU7VL3E.js';
|
|
3
|
+
export { tags_exports as Tags } from './chunk-PNWFTWBQ.js';
|
|
4
|
+
export { TemporalClient, TemporalClientFactory, TemporalModule, TemporalWorker, TemporalWorkerFactory, TemporalWorkerManager } from './chunk-VXVLKRU6.js';
|
|
5
|
+
import { ActivityModule, UsageModule, TrackerModule } from './chunk-V3GSTCVC.js';
|
|
6
|
+
export { ActivityModule, TrackerModule, UsageModule } from './chunk-V3GSTCVC.js';
|
|
7
|
+
export { init_exports as Init } from './chunk-E36LPO3K.js';
|
|
9
8
|
import { TenantNotificationsModule, NotificationsModule } from './chunk-INAZ3PKF.js';
|
|
10
9
|
export { tenant_notifications_exports as Notifications, NotificationsModule } from './chunk-INAZ3PKF.js';
|
|
11
10
|
export { observability_exports as Observability } from './chunk-VAT66FJA.js';
|
|
12
11
|
export { platform_exports as Platform } from './chunk-N2UT3ESH.js';
|
|
13
|
-
export { prisma_exports as Prisma } from './chunk-
|
|
14
|
-
import './chunk-3Z2VRCT6.js';
|
|
12
|
+
export { prisma_exports as Prisma } from './chunk-YCPVIFDN.js';
|
|
15
13
|
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';
|
|
16
|
-
import { RBACModule } from './chunk-
|
|
17
|
-
export { RBACModule, createRBACDirective, createRBACDirectiveForLayer, createRBACDirectiveFromEnv } from './chunk-
|
|
18
|
-
export { i18n_exports as I18n, createTranslator, getLanguage, getLocale, hasI18n, t } from './chunk-EBDHIL7V.js';
|
|
19
|
-
export { init_exports as Init } from './chunk-JTG6GZTF.js';
|
|
14
|
+
import { RBACModule } from './chunk-PQGMZH6K.js';
|
|
15
|
+
export { RBACModule, createRBACDirective, createRBACDirectiveForLayer, createRBACDirectiveFromEnv } from './chunk-PQGMZH6K.js';
|
|
20
16
|
export { RESOURCE_CAP_DEFAULTS, ResourceCapExceededError, ResourceCapsModule, configureResourceCaps, getResourceCaps } from './chunk-MZCBEJ67.js';
|
|
17
|
+
import './chunk-Q3SWU4VF.js';
|
|
18
|
+
import './chunk-3Z2VRCT6.js';
|
|
19
|
+
export { i18n_exports as I18n, createTranslator, getLanguage, getLocale, hasI18n, t } from './chunk-EBDHIL7V.js';
|
|
21
20
|
export { instrumentation_exports as Instrumentation } from './chunk-E5DTAGCA.js';
|
|
22
21
|
import './chunk-AWPNRV3L.js';
|
|
23
|
-
export {
|
|
24
|
-
export { export_exports as Export } from './chunk-
|
|
22
|
+
export { middleware_exports as Middleware } from './chunk-ELU7VL3E.js';
|
|
23
|
+
export { export_exports as Export } from './chunk-GKOAAC6D.js';
|
|
25
24
|
export { feature_flags_exports as FeatureFlags } from './chunk-UNASM5VJ.js';
|
|
26
|
-
export { files_exports as Files } from './chunk-
|
|
27
|
-
export { gateway_exports as Gateway } from './chunk-
|
|
28
|
-
import './chunk-
|
|
29
|
-
import { GatewayClient } from './chunk-
|
|
25
|
+
export { files_exports as Files } from './chunk-FYFA7WAS.js';
|
|
26
|
+
export { gateway_exports as Gateway } from './chunk-RM6AIMZT.js';
|
|
27
|
+
import './chunk-NBN52AEM.js';
|
|
28
|
+
import { GatewayClient } from './chunk-QGADOWSG.js';
|
|
30
29
|
import './chunk-FZRODKIN.js';
|
|
31
|
-
export { layer_exports as Layer } from './chunk-
|
|
30
|
+
export { layer_exports as Layer } from './chunk-STWFX5E2.js';
|
|
32
31
|
import './chunk-VFCMR5GX.js';
|
|
33
32
|
import { ContextManager } from './chunk-RZOFS2BQ.js';
|
|
34
33
|
export { ContextManager } from './chunk-RZOFS2BQ.js';
|
|
@@ -44,12 +43,12 @@ import { resolveEventStreamsUrl } from './chunk-KS2HQCJR.js';
|
|
|
44
43
|
export { graphql_exports as GraphQL } from './chunk-NGAGKLAM.js';
|
|
45
44
|
import './chunk-MWPYA2HD.js';
|
|
46
45
|
import './chunk-ENEDTQET.js';
|
|
47
|
-
export {
|
|
46
|
+
export { captcha_exports as Captcha, isCaptchaEnabled, verifyCaptcha, verifyCaptchaIfEnabled } from './chunk-YMZEUTD2.js';
|
|
47
|
+
export { ai_credits_exports as AiCredits } from './chunk-5RBIDJBZ.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 {
|
|
52
|
-
export { cache_exports as Cache } from './chunk-OXGIVASV.js';
|
|
51
|
+
export { cache_exports as Cache } from './chunk-PAQK3YF2.js';
|
|
53
52
|
import './chunk-A5F6Z5UE.js';
|
|
54
53
|
import { disposeAll } from './chunk-KO2ZXZ7W.js';
|
|
55
54
|
export { lifecycle_exports as Lifecycle, disposeAll, getRegisteredDisposableCount, registerDisposable, unregisterDisposable } from './chunk-KO2ZXZ7W.js';
|
|
@@ -58,9 +57,10 @@ export { crypto_exports as Crypto } from './chunk-SBS4S2PJ.js';
|
|
|
58
57
|
import { DatabaseModule } from './chunk-UD5PPGVU.js';
|
|
59
58
|
export { DatabaseModule } from './chunk-UD5PPGVU.js';
|
|
60
59
|
import { APIError, NetworkError, TimeoutError, ValidationError } from './chunk-QGBXVNRM.js';
|
|
61
|
-
export { DEFAULT_CIRCUIT_BREAKER_CONFIG, DEFAULT_GATEWAY_RETRY_CONFIG, DEFAULT_GATEWAY_ROUTING, DEFAULT_LAYER_RESOURCES, DEFAULT_LAYER_STREAMS } from './chunk-
|
|
60
|
+
export { DEFAULT_CIRCUIT_BREAKER_CONFIG, DEFAULT_GATEWAY_RETRY_CONFIG, DEFAULT_GATEWAY_ROUTING, DEFAULT_LAYER_RESOURCES, DEFAULT_LAYER_STREAMS } from './chunk-5CAFHK2Z.js';
|
|
62
61
|
import { logger } from './chunk-RU266375.js';
|
|
63
62
|
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.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { A as AnalyticsConfig, B as BurdenoffSDKInitConfig, C as ClickHouseConfig, D as DatabaseConfig, E as EventQueueConfig, G as GraphSyncConfig, I as InitializedSDKState, L as LayerInitConfig, a as LoggingConfig, M as MetricsConfig, O as ObservabilityConfig, b as OpenTelemetryConfig, S as SDKCacheConfig, c as SDKValkeyCacheConfig, g as getSDKState, d as initializeBurdenoffSDK, e as isSDKInitialized, r as resetSDK } from '../index-
|
|
2
|
-
import '../layer-
|
|
1
|
+
export { A as AnalyticsConfig, B as BurdenoffSDKInitConfig, C as ClickHouseConfig, D as DatabaseConfig, E as EventQueueConfig, G as GraphSyncConfig, I as InitializedSDKState, L as LayerInitConfig, a as LoggingConfig, M as MetricsConfig, O as ObservabilityConfig, b as OpenTelemetryConfig, S as SDKCacheConfig, c as SDKValkeyCacheConfig, g as getSDKState, d as initializeBurdenoffSDK, e as isSDKInitialized, r as resetSDK } from '../index-5x0XMKXN.js';
|
|
2
|
+
import '../layer-Cv9vSwBx.js';
|
package/dist/init/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export { getSDKState, initializeBurdenoffSDK, isSDKInitialized, resetSDK } from '../chunk-
|
|
1
|
+
export { getSDKState, initializeBurdenoffSDK, isSDKInitialized, resetSDK } from '../chunk-E36LPO3K.js';
|
|
2
2
|
import '../chunk-MZCBEJ67.js';
|
|
3
3
|
import '../chunk-AWPNRV3L.js';
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-RM6AIMZT.js';
|
|
5
|
+
import '../chunk-NBN52AEM.js';
|
|
6
|
+
import '../chunk-QGADOWSG.js';
|
|
7
7
|
import '../chunk-FZRODKIN.js';
|
|
8
|
-
import '../chunk-
|
|
8
|
+
import '../chunk-STWFX5E2.js';
|
|
9
9
|
import '../chunk-VFCMR5GX.js';
|
|
10
10
|
import '../chunk-RZOFS2BQ.js';
|
|
11
11
|
import '../chunk-4KK6YJ46.js';
|
|
12
12
|
import '../chunk-A5F6Z5UE.js';
|
|
13
|
-
import '../chunk-
|
|
13
|
+
import '../chunk-5CAFHK2Z.js';
|
|
14
14
|
import '../chunk-RU266375.js';
|
|
15
15
|
import '../chunk-XE4OXN2W.js';
|
|
16
16
|
//# 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-
|
|
3
|
-
import '../index-
|
|
4
|
-
import '../layer-
|
|
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-Coua7_P7.js';
|
|
2
|
+
export { l as logger } from '../index-Dtj9Eer3.js';
|
|
3
|
+
import '../index-CV3r9Taj.js';
|
|
4
|
+
import '../layer-Cv9vSwBx.js';
|
package/dist/layer/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { D as DEFAULT_GATEWAY_ROUTING, b as DEFAULT_LAYER_RESOURCES, c as DEFAULT_LAYER_STREAMS, G as GatewayRoutingConfig, L as LayerConfig, a as LayerFullConfig, d as LayerGatewayConfig, e as LayerResourceUrls, S as ServiceLayer } from '../layer-
|
|
2
|
-
export { L as LayerManager, c as createLayerManagerFromEnv, d as detectLayerFromServiceName, g as getGatewayUrlForLayer, v as validateLayerConfig } from '../index-
|
|
1
|
+
export { D as DEFAULT_GATEWAY_ROUTING, b as DEFAULT_LAYER_RESOURCES, c as DEFAULT_LAYER_STREAMS, G as GatewayRoutingConfig, L as LayerConfig, a as LayerFullConfig, d as LayerGatewayConfig, e as LayerResourceUrls, S as ServiceLayer } from '../layer-Cv9vSwBx.js';
|
|
2
|
+
export { L as LayerManager, c as createLayerManagerFromEnv, d as detectLayerFromServiceName, g as getGatewayUrlForLayer, v as validateLayerConfig } from '../index-ffmipXSA.js';
|
package/dist/layer/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { LayerManager, createLayerManagerFromEnv, detectLayerFromServiceName, getGatewayUrlForLayer, validateLayerConfig } from '../chunk-
|
|
2
|
-
export { DEFAULT_GATEWAY_ROUTING, DEFAULT_LAYER_RESOURCES, DEFAULT_LAYER_STREAMS } from '../chunk-
|
|
1
|
+
export { LayerManager, createLayerManagerFromEnv, detectLayerFromServiceName, getGatewayUrlForLayer, validateLayerConfig } from '../chunk-STWFX5E2.js';
|
|
2
|
+
export { DEFAULT_GATEWAY_ROUTING, DEFAULT_LAYER_RESOURCES, DEFAULT_LAYER_STREAMS } from '../chunk-5CAFHK2Z.js';
|
|
3
3
|
import '../chunk-RU266375.js';
|
|
4
4
|
import '../chunk-XE4OXN2W.js';
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -64,6 +64,7 @@ interface GatewayRequestHeaders {
|
|
|
64
64
|
'x-bypass-timestamp'?: string;
|
|
65
65
|
'cf-access-client-id'?: string;
|
|
66
66
|
'cf-access-client-secret'?: string;
|
|
67
|
+
'x-delegated-authorization'?: string;
|
|
67
68
|
}
|
|
68
69
|
|
|
69
70
|
export { type CircuitBreakerConfig as C, DEFAULT_GATEWAY_ROUTING as D, type GatewayRoutingConfig as G, type LayerConfig as L, type ServiceLayer as S, type LayerFullConfig as a, DEFAULT_LAYER_RESOURCES as b, DEFAULT_LAYER_STREAMS as c, type LayerGatewayConfig as d, type LayerResourceUrls as e, type GatewayRequestHeaders as f, type GatewayRetryConfig as g, DEFAULT_CIRCUIT_BREAKER_CONFIG as h, DEFAULT_GATEWAY_RETRY_CONFIG as i };
|
package/dist/logger/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import '../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-
|
|
3
|
-
import '../layer-
|
|
1
|
+
import '../index-CV3r9Taj.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, h as redactSensitiveString, w as warn } from '../index-Dtj9Eer3.js';
|
|
3
|
+
import '../layer-Cv9vSwBx.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import '../graphql-
|
|
2
|
-
import '../index-
|
|
3
|
-
export { G as GetNotificationsOptions, b as Notification, c as NotificationChannel, d as NotificationPriority, e as NotificationResponse, N as NotificationType, a as NotificationsModule, R as RecipientInput, S as SendChannelNotificationOptions, f as SendNotificationOptions, g as SendTemplateNotificationOptions, T as TenantNotificationsModule } from '../index-
|
|
1
|
+
import '../graphql-BUbw43Zx.js';
|
|
2
|
+
import '../index-CV3r9Taj.js';
|
|
3
|
+
export { G as GetNotificationsOptions, b as Notification, c as NotificationChannel, d as NotificationPriority, e as NotificationResponse, N as NotificationType, a as NotificationsModule, R as RecipientInput, S as SendChannelNotificationOptions, f as SendNotificationOptions, g as SendTemplateNotificationOptions, T as TenantNotificationsModule } from '../index-BKOBmdq7.js';
|
|
4
4
|
import 'graphql-request';
|
|
5
|
-
import '../layer-
|
|
5
|
+
import '../layer-Cv9vSwBx.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { NotificationChannel, NotificationPriority, NotificationType, NotificationsModule, TenantNotificationsModule } from '../chunk-INAZ3PKF.js';
|
|
2
2
|
import '../chunk-QGBXVNRM.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-5CAFHK2Z.js';
|
|
4
4
|
import '../chunk-RU266375.js';
|
|
5
5
|
import '../chunk-XE4OXN2W.js';
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
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
|
-
export { addWorkspaceExtension, buildTransactionContextStatement, defaultWorkspaceExtensionConfig, getCallerTransaction, getWorkspaceContext, injectCreateFields, injectWhereWorkspaceId, maybeSetRlsGuc, maybeTagConnection, resetCallerTransactionStateForTests, runOperationInCallerTransaction, runOperationWithRlsGuc, setWorkspaceContext, withWorkspaceContext, withWorkspaceContextSync } from '../chunk-3Z2VRCT6.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-YCPVIFDN.js';
|
|
3
2
|
import '../chunk-OBBCR6WY.js';
|
|
3
|
+
export { addWorkspaceExtension, buildTransactionContextStatement, defaultWorkspaceExtensionConfig, getCallerTransaction, getWorkspaceContext, injectCreateFields, injectWhereWorkspaceId, maybeSetRlsGuc, maybeTagConnection, resetCallerTransactionStateForTests, runOperationInCallerTransaction, runOperationWithRlsGuc, setWorkspaceContext, withWorkspaceContext, withWorkspaceContextSync } from '../chunk-3Z2VRCT6.js';
|
|
4
4
|
export { PrismaClientWrapper, configurePrismaLogging, createConnectionPool, createPrismaAdapter, createPrismaClient, ensureServiceApplicationName, installAcquireRetry, isTransientAcquireError } from '../chunk-K52ICDCP.js';
|
|
5
5
|
import '../chunk-TX2GDIWP.js';
|
|
6
6
|
import '../chunk-SIAOIYHW.js';
|
package/dist/rbac/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { B as BurdenoffGraphQLClient } from '../graphql-
|
|
2
|
-
import { a as SDKContext } from '../index-
|
|
1
|
+
import { B as BurdenoffGraphQLClient } from '../graphql-BUbw43Zx.js';
|
|
2
|
+
import { a as SDKContext } from '../index-CV3r9Taj.js';
|
|
3
3
|
import { Plugin } from '@envelop/core';
|
|
4
|
-
import { S as ServiceLayer } from '../layer-
|
|
4
|
+
import { S as ServiceLayer } from '../layer-Cv9vSwBx.js';
|
|
5
5
|
import 'graphql-request';
|
|
6
6
|
|
|
7
7
|
type ActorType = 'USER' | 'BOT' | 'INTEGRATION' | 'DELEGATED_AGENT';
|
package/dist/rbac/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { RBACClient, RBACModule, createRBACClientFromEnv, createRBACDirective, createRBACDirectiveForLayer, createRBACDirectiveFromEnv } from '../chunk-
|
|
1
|
+
export { RBACClient, RBACModule, createRBACClientFromEnv, createRBACDirective, createRBACDirectiveForLayer, createRBACDirectiveFromEnv } from '../chunk-PQGMZH6K.js';
|
|
2
2
|
import '../chunk-QGBXVNRM.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-5CAFHK2Z.js';
|
|
4
4
|
import '../chunk-RU266375.js';
|
|
5
5
|
import '../chunk-XE4OXN2W.js';
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { GraphQLError } from 'graphql';
|
|
2
|
-
import { B as BurdenoffGraphQLClient } from '../graphql-
|
|
2
|
+
import { B as BurdenoffGraphQLClient } from '../graphql-BUbw43Zx.js';
|
|
3
3
|
import 'graphql-request';
|
|
4
|
-
import '../index-
|
|
5
|
-
import '../layer-
|
|
4
|
+
import '../index-CV3r9Taj.js';
|
|
5
|
+
import '../layer-Cv9vSwBx.js';
|
|
6
6
|
|
|
7
7
|
type ResourceName = 'workspace' | 'workspaceMember' | 'sandbox' | 'vibe' | 'agent' | 'conversation' | 'message' | 'tag' | 'file' | 'group' | 'calendar' | 'scheduledTask' | 'form' | 'apiKey' | 'webhook';
|
|
8
8
|
type PlanTier = 'free' | 'paid';
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { W as WorkspaceSecret, I as IActor, J as JWTPayload, S as ServerDefinition, a as ServerInstance, R as RESTEndpoint, b as ITenant, G as GraphQLContext, Y as YogaPlugin } from '../types-C-6m9NoG.js';
|
|
2
|
-
export { A as ActorProvenance, C as ConsentContext, E as ElysiaApp, c as IContextFilterInput, d as IOperationContext, e as IOrganization, f as IProduct, g as IProject, h as ITracking, i as IWorkspace, M as ModuleGraphConfig, P as PrismaClientConstructor, j as ServerConfig, k as ServerI18nConfig, l as ServerInfo,
|
|
1
|
+
import { W as WorkspaceSecret, I as IActor, J as JWTPayload, S as ServerDefinition, a as ServerInstance, R as RESTEndpoint, b as ITenant, G as GraphQLContext, V as VerifiedDelegationContext, Y as YogaPlugin } from '../types-C-6m9NoG.js';
|
|
2
|
+
export { A as ActorProvenance, C as ConsentContext, E as ElysiaApp, c as IContextFilterInput, d as IOperationContext, e as IOrganization, f as IProduct, g as IProject, h as ITracking, i as IWorkspace, M as ModuleGraphConfig, P as PrismaClientConstructor, j as ServerConfig, k as ServerI18nConfig, l as ServerInfo, m as WspaceGraphQLContext } from '../types-C-6m9NoG.js';
|
|
3
3
|
import * as jose from 'jose';
|
|
4
4
|
import { VerifyOptions } from 'jsonwebtoken';
|
|
5
5
|
import { I as I18n } from '../i18n-DrdPTann.js';
|
|
@@ -90,6 +90,22 @@ declare function configureContext(options: ContextBuilderOptions): void;
|
|
|
90
90
|
declare function buildContext(request: Request): Promise<GraphQLContext>;
|
|
91
91
|
declare function getContextOptions(): ContextBuilderOptions | null;
|
|
92
92
|
|
|
93
|
+
declare function resolveOnBehalfOf(actor: IActor | null, verifiedDelegation: VerifiedDelegationContext | undefined): string | undefined;
|
|
94
|
+
interface DelegatedPrincipal {
|
|
95
|
+
agentAppId: string;
|
|
96
|
+
onBehalfOfUserId: string;
|
|
97
|
+
delegationId: string;
|
|
98
|
+
scopes: readonly string[];
|
|
99
|
+
allowedWorkspaceIds: readonly string[];
|
|
100
|
+
grantedBy: string | null;
|
|
101
|
+
grantExpiresAt: Date | null;
|
|
102
|
+
tokenExpiresAt: Date;
|
|
103
|
+
}
|
|
104
|
+
declare function getDelegatedPrincipal(context: {
|
|
105
|
+
actor: IActor | null;
|
|
106
|
+
verifiedDelegation?: VerifiedDelegationContext;
|
|
107
|
+
}): DelegatedPrincipal | null;
|
|
108
|
+
|
|
93
109
|
interface WorkspaceGuardConfig {
|
|
94
110
|
enabled?: boolean;
|
|
95
111
|
whitelistedOperations?: string[];
|
|
@@ -214,4 +230,4 @@ declare function createHumanReadableErrorPlugin(options?: ErrorNormalizationOpti
|
|
|
214
230
|
declare function formatHttpError(error: unknown, options?: ErrorNormalizationOptions): HttpErrorResult;
|
|
215
231
|
declare function createHttpErrorResponse(error: unknown, options?: ErrorNormalizationOptions): Response;
|
|
216
232
|
|
|
217
|
-
export { type AuthConfig, type ContextBuilderOptions, type ErrorNormalizationOptions, type FetchWorkspaceSecretFn, GraphQLContext, type HttpErrorPayload, type HttpErrorResult, IActor, ITenant, JWTPayload, MAX_IDLE_TIMEOUT_SECONDS, MUTATION_AUDIT_ACTIVITY_TYPE, MUTATION_AUDIT_RESOURCE_TYPE, type MutationAuditPluginOptions, type NormalizedErrorState, type OrdinaryRoute, RESTEndpoint, type RawBodyResolution, type RawBodyRouter, ServerDefinition, ServerInstance, type UserFacingErrorOptions, UserFacingGraphQLError, type WorkspaceGuardConfig, WorkspaceSecret, YogaPlugin, authCheck, buildContext, configureAuth, configureContext, configureDefaultAuth, configureServerAuth, createHttpErrorResponse, createHumanReadableErrorPlugin, createMutationAuditPlugin, createRawBodyRouter, createServer, createWorkspaceGuardPlugin, decodeJWT, extendRequestIdleTimeout, fetchWorkspaceSecret, formatHttpError, generateSymmetricSecret, getContextOptions, getMutationFieldNames, normalizeError, normalizeExecutionResultErrors, normalizeGraphQLResponse, normalizeGraphQLResponsePayload, orgCheck, requireWorkspace, sanitizeAuditValue, tenantCheck, toUserFacingGraphQLError, verifyJWT, workspaceCheck };
|
|
233
|
+
export { type AuthConfig, type ContextBuilderOptions, type DelegatedPrincipal, type ErrorNormalizationOptions, type FetchWorkspaceSecretFn, GraphQLContext, type HttpErrorPayload, type HttpErrorResult, IActor, ITenant, JWTPayload, MAX_IDLE_TIMEOUT_SECONDS, MUTATION_AUDIT_ACTIVITY_TYPE, MUTATION_AUDIT_RESOURCE_TYPE, type MutationAuditPluginOptions, type NormalizedErrorState, type OrdinaryRoute, RESTEndpoint, type RawBodyResolution, type RawBodyRouter, ServerDefinition, ServerInstance, type UserFacingErrorOptions, UserFacingGraphQLError, VerifiedDelegationContext, type WorkspaceGuardConfig, WorkspaceSecret, YogaPlugin, authCheck, buildContext, configureAuth, configureContext, configureDefaultAuth, configureServerAuth, createHttpErrorResponse, createHumanReadableErrorPlugin, createMutationAuditPlugin, createRawBodyRouter, createServer, createWorkspaceGuardPlugin, decodeJWT, extendRequestIdleTimeout, fetchWorkspaceSecret, formatHttpError, generateSymmetricSecret, getContextOptions, getDelegatedPrincipal, getMutationFieldNames, normalizeError, normalizeExecutionResultErrors, normalizeGraphQLResponse, normalizeGraphQLResponsePayload, orgCheck, requireWorkspace, resolveOnBehalfOf, sanitizeAuditValue, tenantCheck, toUserFacingGraphQLError, verifyJWT, workspaceCheck };
|
package/dist/server/index.js
CHANGED
|
@@ -12,6 +12,32 @@ import { __name } from '../chunk-XE4OXN2W.js';
|
|
|
12
12
|
import crypto from 'crypto';
|
|
13
13
|
import { Kind, OperationTypeNode } from 'graphql';
|
|
14
14
|
|
|
15
|
+
// src/server/delegated-identity.ts
|
|
16
|
+
function resolveOnBehalfOf(actor, verifiedDelegation) {
|
|
17
|
+
if (verifiedDelegation && actor && verifiedDelegation.representedUserId === actor.id) {
|
|
18
|
+
return verifiedDelegation.representedUserId;
|
|
19
|
+
}
|
|
20
|
+
return actor?.id;
|
|
21
|
+
}
|
|
22
|
+
__name(resolveOnBehalfOf, "resolveOnBehalfOf");
|
|
23
|
+
function getDelegatedPrincipal(context) {
|
|
24
|
+
const delegation = context.verifiedDelegation;
|
|
25
|
+
if (!delegation || !context.actor || delegation.representedUserId !== context.actor.id) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
agentAppId: delegation.originatingAppId,
|
|
30
|
+
onBehalfOfUserId: delegation.representedUserId,
|
|
31
|
+
delegationId: delegation.delegationId,
|
|
32
|
+
scopes: delegation.scopes,
|
|
33
|
+
allowedWorkspaceIds: delegation.allowedWorkspaceIds,
|
|
34
|
+
grantedBy: delegation.consent?.grantedBy ?? null,
|
|
35
|
+
grantExpiresAt: delegation.consent?.expiresAt ?? null,
|
|
36
|
+
tokenExpiresAt: delegation.tokenExpiresAt
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
__name(getDelegatedPrincipal, "getDelegatedPrincipal");
|
|
40
|
+
|
|
15
41
|
// src/server/auth.ts
|
|
16
42
|
var getDbFn = null;
|
|
17
43
|
async function getDb() {
|
|
@@ -409,22 +435,6 @@ function extractGeography(request) {
|
|
|
409
435
|
};
|
|
410
436
|
}
|
|
411
437
|
__name(extractGeography, "extractGeography");
|
|
412
|
-
function extractConsentContext(request) {
|
|
413
|
-
const grantedBy = getHeader(request, "x-consent-granted-by");
|
|
414
|
-
if (!grantedBy) {
|
|
415
|
-
return null;
|
|
416
|
-
}
|
|
417
|
-
const scopesHeader = getHeader(request, "x-consent-scope");
|
|
418
|
-
const grantedAtHeader = getHeader(request, "x-consent-granted-at");
|
|
419
|
-
const expiresAtHeader = getHeader(request, "x-consent-expires-at");
|
|
420
|
-
return {
|
|
421
|
-
grantedBy,
|
|
422
|
-
scopes: scopesHeader ? scopesHeader.split(",").map((s) => s.trim()) : void 0,
|
|
423
|
-
grantedAt: grantedAtHeader ? new Date(grantedAtHeader) : void 0,
|
|
424
|
-
expiresAt: expiresAtHeader ? new Date(expiresAtHeader) : void 0
|
|
425
|
-
};
|
|
426
|
-
}
|
|
427
|
-
__name(extractConsentContext, "extractConsentContext");
|
|
428
438
|
async function buildContext(request) {
|
|
429
439
|
if (!contextOptions) {
|
|
430
440
|
throw new Error("[ServerContext] Context not configured - call configureContext() first");
|
|
@@ -436,7 +446,6 @@ async function buildContext(request) {
|
|
|
436
446
|
const project = extractProject(request);
|
|
437
447
|
const product = extractProduct(request);
|
|
438
448
|
const tracking = extractTracking(request);
|
|
439
|
-
const consentContext = extractConsentContext(request);
|
|
440
449
|
const verifiedDelegation = decodeVerifiedDelegation(getHeader(request, "x-verified-delegation"), actor, workspace?.id, shouldTrustActorHeaders(request));
|
|
441
450
|
let i18n;
|
|
442
451
|
if (contextOptions.i18n) {
|
|
@@ -464,7 +473,7 @@ async function buildContext(request) {
|
|
|
464
473
|
};
|
|
465
474
|
}
|
|
466
475
|
}
|
|
467
|
-
const onBehalfOf = (actor
|
|
476
|
+
const onBehalfOf = resolveOnBehalfOf(actor, verifiedDelegation);
|
|
468
477
|
const wsCtxPayload = {
|
|
469
478
|
workspaceId: workspace?.id,
|
|
470
479
|
tenantId: tenant?.id,
|
|
@@ -490,7 +499,6 @@ async function buildContext(request) {
|
|
|
490
499
|
project,
|
|
491
500
|
product,
|
|
492
501
|
tracking,
|
|
493
|
-
consentContext: consentContext || void 0,
|
|
494
502
|
verifiedDelegation,
|
|
495
503
|
onBehalfOf: onBehalfOf || actor?.id || "",
|
|
496
504
|
db: contextOptions.getDb(),
|
|
@@ -1608,6 +1616,6 @@ function createMutationAuditPlugin(options) {
|
|
|
1608
1616
|
}
|
|
1609
1617
|
__name(createMutationAuditPlugin, "createMutationAuditPlugin");
|
|
1610
1618
|
|
|
1611
|
-
export { MAX_IDLE_TIMEOUT_SECONDS, MUTATION_AUDIT_ACTIVITY_TYPE, MUTATION_AUDIT_RESOURCE_TYPE, authCheck, buildContext, configureAuth, configureContext, configureDefaultAuth, configureServerAuth, createMutationAuditPlugin, createRawBodyRouter, createServer, decodeJWT, extendRequestIdleTimeout, fetchWorkspaceSecret, generateSymmetricSecret, getContextOptions, getMutationFieldNames, orgCheck, requireWorkspace, sanitizeAuditValue, tenantCheck, verifyJWT, workspaceCheck };
|
|
1619
|
+
export { MAX_IDLE_TIMEOUT_SECONDS, MUTATION_AUDIT_ACTIVITY_TYPE, MUTATION_AUDIT_RESOURCE_TYPE, authCheck, buildContext, configureAuth, configureContext, configureDefaultAuth, configureServerAuth, createMutationAuditPlugin, createRawBodyRouter, createServer, decodeJWT, extendRequestIdleTimeout, fetchWorkspaceSecret, generateSymmetricSecret, getContextOptions, getDelegatedPrincipal, getMutationFieldNames, orgCheck, requireWorkspace, resolveOnBehalfOf, sanitizeAuditValue, tenantCheck, verifyJWT, workspaceCheck };
|
|
1612
1620
|
//# sourceMappingURL=index.js.map
|
|
1613
1621
|
//# sourceMappingURL=index.js.map
|