@powerhousedao/reactor-api 6.2.2-dev.81 → 6.2.2-dev.82
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/index.d.mts +17 -2
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +89 -14
- package/dist/index.mjs.map +1 -1
- package/package.json +14 -14
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a3bbf8ae-c16f-5c87-aaf9-23e0709811cd")}catch(e){}}();
|
|
3
3
|
import { _ as createAuthorizationService, a as isSubgraphClass, b as MalformedStoredOperationError, d as loadSubgraphs, f as BaseSubgraph, g as AuthorizedDocumentHandle, h as AuthorizationPolicy, i as buildGraphqlOperations, l as loadDocumentModels, m as createCanonicalDocumentIdResolver, n as buildGraphQlDriveDocument, o as debounce, p as CanonicalDocumentIdResolutionError, r as buildGraphqlOperation, s as extractUpgradeManifests, t as buildGraphQlDocument, u as loadProcessors, v as AuthEvaluationUnsupportedError, y as ForbiddenError } from "./utils-lHoPB-ft.mjs";
|
|
4
4
|
import { AnalyticsQueryEngine } from "@powerhousedao/analytics-engine-core";
|
|
5
5
|
import { AnalyticsModel, AnalyticsResolvers, typedefs } from "@powerhousedao/analytics-engine-graphql";
|
|
@@ -3219,6 +3219,7 @@ var GraphQLManager = class {
|
|
|
3219
3219
|
subgraphs = /* @__PURE__ */ new Map();
|
|
3220
3220
|
subgraphWsDisposers = /* @__PURE__ */ new Map();
|
|
3221
3221
|
#authMiddleware;
|
|
3222
|
+
#requireAuthMiddleware;
|
|
3222
3223
|
#driveMiddleware;
|
|
3223
3224
|
driveOwnershipCache;
|
|
3224
3225
|
/** Cached document models for schema generation - updated on init and regenerate */
|
|
@@ -3256,8 +3257,9 @@ var GraphQLManager = class {
|
|
|
3256
3257
|
this.driveOwnershipCache = new DriveOwnershipCache(this.reactorClient);
|
|
3257
3258
|
this.wsServer.setMaxListeners(0);
|
|
3258
3259
|
}
|
|
3259
|
-
async init(coreSubgraphs, authMiddleware) {
|
|
3260
|
+
async init(coreSubgraphs, authMiddleware, requireAuthMiddleware) {
|
|
3260
3261
|
this.#authMiddleware = authMiddleware;
|
|
3262
|
+
this.#requireAuthMiddleware = requireAuthMiddleware;
|
|
3261
3263
|
this.logger.debug(`Initializing Subgraph Manager...`);
|
|
3262
3264
|
await this.driveOwnershipCache.init();
|
|
3263
3265
|
this.#driveMiddleware = createDriveFetchMiddleware(this.driveOwnershipCache);
|
|
@@ -3653,11 +3655,14 @@ var GraphQLManager = class {
|
|
|
3653
3655
|
/**
|
|
3654
3656
|
* Compose the request-level fetch middleware chain. Auth runs first
|
|
3655
3657
|
* (so we don't validate shard before knowing the request is even
|
|
3656
|
-
* authorized)
|
|
3658
|
+
* authorized); the require-authenticated-caller middleware runs next,
|
|
3659
|
+
* before shard validation, so an anonymous caller is rejected with a
|
|
3660
|
+
* 401 rather than a 421; drive-ownership validation runs last.
|
|
3657
3661
|
*/
|
|
3658
3662
|
#composeFetchMiddleware(rawHandler) {
|
|
3659
3663
|
let handler = rawHandler;
|
|
3660
3664
|
if (this.#driveMiddleware) handler = this.#driveMiddleware(handler);
|
|
3665
|
+
if (this.#requireAuthMiddleware) handler = this.#requireAuthMiddleware(handler);
|
|
3661
3666
|
if (this.#authMiddleware) handler = this.#authMiddleware(handler);
|
|
3662
3667
|
return handler;
|
|
3663
3668
|
}
|
|
@@ -4735,10 +4740,10 @@ const ADMIN_USERS = getAdminUsers();
|
|
|
4735
4740
|
//#endregion
|
|
4736
4741
|
//#region src/graphql/system/version.ts
|
|
4737
4742
|
function getVersion() {
|
|
4738
|
-
return "6.2.2-dev.
|
|
4743
|
+
return "6.2.2-dev.82";
|
|
4739
4744
|
}
|
|
4740
4745
|
function getGitHash() {
|
|
4741
|
-
return "
|
|
4746
|
+
return "1ddf2464b2544e64cc972b68a1380c152b7f78e4";
|
|
4742
4747
|
}
|
|
4743
4748
|
function getGitUrl() {
|
|
4744
4749
|
return buildTreeUrl(getGitHash());
|
|
@@ -5359,6 +5364,40 @@ function normalizeAttachmentRef(value) {
|
|
|
5359
5364
|
return createRef(hash, version);
|
|
5360
5365
|
}
|
|
5361
5366
|
//#endregion
|
|
5367
|
+
//#region src/graphql/gateway/require-auth-middleware.ts
|
|
5368
|
+
/**
|
|
5369
|
+
* Returns a fetch middleware that rejects anonymous callers with a 401.
|
|
5370
|
+
*
|
|
5371
|
+
* This is the enforcement half of the resolve-and-don't-enforce split set up
|
|
5372
|
+
* by `RESOLVE_CALLER_IDENTITY`: the auth middleware must run before this
|
|
5373
|
+
* one — it verifies the bearer (an invalid token is still a 401 from
|
|
5374
|
+
* there) and records the resolved caller on the request. This middleware
|
|
5375
|
+
* then refuses the request when no caller was resolved, so under `OPEN`
|
|
5376
|
+
* (or `AUTH_ENABLED` with identity resolution) the whole generic surface —
|
|
5377
|
+
* document CRUD, sync, every custom subgraph — is reachable only by
|
|
5378
|
+
* authenticated callers, without locking out non-admins the way
|
|
5379
|
+
* `ADMIN_ONLY` does.
|
|
5380
|
+
*
|
|
5381
|
+
* It composes in one place in the fetch chain, so it covers every mounted
|
|
5382
|
+
* subgraph, the supergraph, and the SSE handler alike.
|
|
5383
|
+
*
|
|
5384
|
+
* OPTIONS is let through: a CORS preflight never carries a bearer, and
|
|
5385
|
+
* `AuthService.authenticateRequest` already answers it with an anonymous
|
|
5386
|
+
* context — refusing it would break every cross-origin client with a 401.
|
|
5387
|
+
*
|
|
5388
|
+
* Fails closed: a request that reaches this middleware without a resolved
|
|
5389
|
+
* context has no caller, and is rejected. The server never composes this
|
|
5390
|
+
* middleware without the auth middleware in the chain (see
|
|
5391
|
+
* `assertRequireAuthenticatedCallerAllowed` in `server.ts`).
|
|
5392
|
+
*/
|
|
5393
|
+
function createRequireAuthFetchMiddleware() {
|
|
5394
|
+
return (next) => async (request) => {
|
|
5395
|
+
if (request.method === "OPTIONS") return next(request);
|
|
5396
|
+
if (getAuthContext(request)?.user === void 0) return new globalThis.Response(JSON.stringify({ error: "Authentication required" }), { status: 401 });
|
|
5397
|
+
return next(request);
|
|
5398
|
+
};
|
|
5399
|
+
}
|
|
5400
|
+
//#endregion
|
|
5362
5401
|
//#region src/migrations/001_create_document_permissions.ts
|
|
5363
5402
|
var _001_create_document_permissions_exports = /* @__PURE__ */ __exportAll({
|
|
5364
5403
|
down: () => down$2,
|
|
@@ -6238,6 +6277,17 @@ function assertSkipCredentialVerificationAllowed(resolvesCallerIdentity, skipCre
|
|
|
6238
6277
|
const acknowledged = env.ALLOW_INSECURE_SKIP_CREDENTIAL_VERIFICATION === "true";
|
|
6239
6278
|
if (!inAutomatedTest && !acknowledged) throw new Error("SKIP_CREDENTIAL_VERIFICATION is set but refused: it disables the live Renown credential check — the only check binding a token's claimed address to the key that signed it — so honoring it allows identity spoofing, including of admins. It is never safe in production. For local or sandbox use, also set ALLOW_INSECURE_SKIP_CREDENTIAL_VERIFICATION=true to acknowledge the risk; automated test runs (VITEST=true or NODE_ENV=test) are exempt.");
|
|
6240
6279
|
}
|
|
6280
|
+
/**
|
|
6281
|
+
* Requiring an authenticated caller requires identity resolution to exist at
|
|
6282
|
+
* all: with neither AUTH_ENABLED nor RESOLVE_CALLER_IDENTITY the middleware
|
|
6283
|
+
* never reads a bearer, no `user` is ever resolved, and the
|
|
6284
|
+
* require-authenticated-caller middleware would reject every caller —
|
|
6285
|
+
* authenticated ones included. Refuse to boot rather than run broken.
|
|
6286
|
+
*/
|
|
6287
|
+
function assertRequireAuthenticatedCallerAllowed(requireAuthenticatedCaller, resolvesCallerIdentity) {
|
|
6288
|
+
if (!requireAuthenticatedCaller || resolvesCallerIdentity) return;
|
|
6289
|
+
throw new Error("REQUIRE_AUTHENTICATED_CALLER is set but refused: it rejects every request without a resolved caller, and with neither AUTH_ENABLED nor RESOLVE_CALLER_IDENTITY the server never reads a bearer, so it would reject every caller, including authenticated ones. Enable identity resolution first (RESOLVE_CALLER_IDENTITY=true or AUTH_ENABLED=true).");
|
|
6290
|
+
}
|
|
6241
6291
|
function createReadinessGate() {
|
|
6242
6292
|
let ready = false;
|
|
6243
6293
|
return {
|
|
@@ -6306,9 +6356,9 @@ function buildSyncServingGate(reactorModule, authorizationConfig, logger) {
|
|
|
6306
6356
|
/**
|
|
6307
6357
|
* Sets up the subgraph manager and registers subgraphs
|
|
6308
6358
|
*/
|
|
6309
|
-
async function setupGraphQLManager(httpAdapter, authFetchMiddleware, httpServer, wsServer, client, relationalDb, analyticsStore, syncManager, subgraphs, logger, authorizationService, authService, documentPermissionService, enableDocumentModelSubgraphs, port, reactorDriveClient, syncServingGate) {
|
|
6359
|
+
async function setupGraphQLManager(httpAdapter, authFetchMiddleware, requireAuthFetchMiddleware, httpServer, wsServer, client, relationalDb, analyticsStore, syncManager, subgraphs, logger, authorizationService, authService, documentPermissionService, enableDocumentModelSubgraphs, port, reactorDriveClient, syncServingGate) {
|
|
6310
6360
|
const graphqlManager = new GraphQLManager(config.basePath, httpServer, wsServer, client, relationalDb, analyticsStore, syncManager, logger, httpAdapter, await createGatewayAdapter("apollo", logger), authService, documentPermissionService, { enableDocumentModelSubgraphs }, port, authorizationService, reactorDriveClient, syncServingGate);
|
|
6311
|
-
await graphqlManager.init(subgraphs.core, authFetchMiddleware);
|
|
6361
|
+
await graphqlManager.init(subgraphs.core, authFetchMiddleware, requireAuthFetchMiddleware);
|
|
6312
6362
|
for (const [, collection] of subgraphs.extended.entries()) for (const subgraph of collection) await graphqlManager.registerSubgraph(subgraph, "graphql");
|
|
6313
6363
|
await graphqlManager.updateRouter();
|
|
6314
6364
|
return graphqlManager;
|
|
@@ -6390,6 +6440,7 @@ async function _setupCommonInfrastructure(options) {
|
|
|
6390
6440
|
let admins = [];
|
|
6391
6441
|
let authEnabled = false;
|
|
6392
6442
|
let configuredResolveIdentity;
|
|
6443
|
+
let configuredRequireAuth;
|
|
6393
6444
|
let configuredRenown;
|
|
6394
6445
|
if (options.configFile) {
|
|
6395
6446
|
const config = getConfig(options.configFile);
|
|
@@ -6400,8 +6451,9 @@ async function _setupCommonInfrastructure(options) {
|
|
|
6400
6451
|
admins = options.auth.admins.map((a) => a.toLowerCase());
|
|
6401
6452
|
authEnabled = options.auth.enabled;
|
|
6402
6453
|
configuredResolveIdentity = options.auth.resolveIdentity;
|
|
6454
|
+
configuredRequireAuth = options.auth.requireAuthenticatedCaller;
|
|
6403
6455
|
}
|
|
6404
|
-
const { AUTH_ENABLED, RESOLVE_CALLER_IDENTITY, ADMINS, DEFAULT_PROTECTION, DOCUMENT_PERMISSIONS_ENABLED, SKIP_CREDENTIAL_VERIFICATION, CREDENTIAL_VERIFICATION_CACHE_TTL_MS } = process.env;
|
|
6456
|
+
const { AUTH_ENABLED, RESOLVE_CALLER_IDENTITY, REQUIRE_AUTHENTICATED_CALLER, ADMINS, DEFAULT_PROTECTION, DOCUMENT_PERMISSIONS_ENABLED, SKIP_CREDENTIAL_VERIFICATION, CREDENTIAL_VERIFICATION_CACHE_TTL_MS } = process.env;
|
|
6405
6457
|
if (AUTH_ENABLED !== void 0) authEnabled = AUTH_ENABLED === "true";
|
|
6406
6458
|
/**
|
|
6407
6459
|
* Whether the auth middleware reads the bearer and populates `ctx.user`,
|
|
@@ -6416,6 +6468,22 @@ async function _setupCommonInfrastructure(options) {
|
|
|
6416
6468
|
*/
|
|
6417
6469
|
let resolveCallerIdentity = configuredResolveIdentity ?? authEnabled;
|
|
6418
6470
|
if (RESOLVE_CALLER_IDENTITY !== void 0) resolveCallerIdentity = RESOLVE_CALLER_IDENTITY === "true";
|
|
6471
|
+
/**
|
|
6472
|
+
* Whether the require-authenticated-caller middleware is active: anonymous
|
|
6473
|
+
* callers are rejected with a 401 before any subgraph sees the request.
|
|
6474
|
+
*
|
|
6475
|
+
* Off by default, so nothing changes for existing deployments. This is the
|
|
6476
|
+
* enforcement half of the `RESOLVE_CALLER_IDENTITY` split: that one lets a
|
|
6477
|
+
* server know who is calling while the policy stays `OPEN`, and this one
|
|
6478
|
+
* closes the hole it leaves open — under `OPEN`, an anonymous caller
|
|
6479
|
+
* reaches the whole generic surface (document CRUD, sync, every custom
|
|
6480
|
+
* subgraph), because `OpenAuthorizationService` answers `true` to
|
|
6481
|
+
* everything. `ADMIN_ONLY` is the only alternative today, and it locks
|
|
6482
|
+
* out every non-admin; this expresses "authenticated callers allowed,
|
|
6483
|
+
* anonymous not".
|
|
6484
|
+
*/
|
|
6485
|
+
let requireAuthenticatedCaller = configuredRequireAuth ?? false;
|
|
6486
|
+
if (REQUIRE_AUTHENTICATED_CALLER !== void 0) requireAuthenticatedCaller = REQUIRE_AUTHENTICATED_CALLER === "true";
|
|
6419
6487
|
if (ADMINS !== void 0) admins = ADMINS.split(",").map((a) => a.toLowerCase());
|
|
6420
6488
|
let defaultProtection = false;
|
|
6421
6489
|
if (DEFAULT_PROTECTION !== void 0) defaultProtection = DEFAULT_PROTECTION.toLowerCase() === "true";
|
|
@@ -6430,6 +6498,7 @@ async function _setupCommonInfrastructure(options) {
|
|
|
6430
6498
|
const documentPermissionsRequested = options.documentPermissionService !== void 0 || DOCUMENT_PERMISSIONS_ENABLED === "true";
|
|
6431
6499
|
assertAuthRequiredForDocumentPermissions(authEnabled, documentPermissionsRequested);
|
|
6432
6500
|
assertSkipCredentialVerificationAllowed(resolveCallerIdentity, skipCredentialVerification, process.env);
|
|
6501
|
+
assertRequireAuthenticatedCallerAllowed(requireAuthenticatedCaller, resolveCallerIdentity);
|
|
6433
6502
|
if (authEnabled && skipCredentialVerification) logger.warn("SECURITY: SKIP_CREDENTIAL_VERIFICATION is enabled — Renown credential verification is disabled and a bearer token's claimed address is NOT cryptographically bound to its signing key. Identity is unverifiable; use only in development or test.");
|
|
6434
6503
|
httpAdapter.getRoute("/health", () => new Response("OK", { status: 200 }));
|
|
6435
6504
|
const readiness = createReadinessGate();
|
|
@@ -6443,6 +6512,7 @@ async function _setupCommonInfrastructure(options) {
|
|
|
6443
6512
|
return new Response(renderGraphqlPlayground(endpoint, query), { headers: { "Content-Type": "text/html" } });
|
|
6444
6513
|
});
|
|
6445
6514
|
let authFetchMiddleware;
|
|
6515
|
+
let requireAuthFetchMiddleware;
|
|
6446
6516
|
let authService;
|
|
6447
6517
|
if (resolveCallerIdentity || authEnabled) {
|
|
6448
6518
|
logger.info("Setting up Auth middleware (policy enforcement: @enabled, caller identity: @resolve)", authEnabled, resolveCallerIdentity);
|
|
@@ -6462,6 +6532,10 @@ async function _setupCommonInfrastructure(options) {
|
|
|
6462
6532
|
})
|
|
6463
6533
|
});
|
|
6464
6534
|
authFetchMiddleware = createAuthFetchMiddleware(authService);
|
|
6535
|
+
if (requireAuthenticatedCaller) {
|
|
6536
|
+
requireAuthFetchMiddleware = createRequireAuthFetchMiddleware();
|
|
6537
|
+
logger.info("Require-authenticated-caller middleware enabled: anonymous callers are rejected with a 401 before any subgraph");
|
|
6538
|
+
}
|
|
6465
6539
|
}
|
|
6466
6540
|
const dbClosers = [];
|
|
6467
6541
|
const { relationalDb, analyticsStore, closers: analyticsClosers } = await initializeDatabaseAndAnalytics(options.dbPath, options.pgliteFactory);
|
|
@@ -6504,6 +6578,7 @@ async function _setupCommonInfrastructure(options) {
|
|
|
6504
6578
|
port,
|
|
6505
6579
|
httpAdapter,
|
|
6506
6580
|
authFetchMiddleware,
|
|
6581
|
+
requireAuthFetchMiddleware,
|
|
6507
6582
|
authService,
|
|
6508
6583
|
relationalDb,
|
|
6509
6584
|
analyticsStore,
|
|
@@ -6519,7 +6594,7 @@ async function _setupCommonInfrastructure(options) {
|
|
|
6519
6594
|
/**
|
|
6520
6595
|
* Private helper function containing common setup logic for API initialization
|
|
6521
6596
|
*/
|
|
6522
|
-
async function _setupAPI(reactorClient, syncManager, reactorProcessorManager, httpAdapter, authFetchMiddleware, authService, port, packages, relationalDb, analyticsStore, documentPermissionService, processors, subgraphs, options, processorApp, readModels, attachments, attachmentReferenceIndex, attachmentReferenceProjection, authorizationConfig, documentModelRegistry, dbClosers = [], reactorDriveClient, syncServingGate) {
|
|
6597
|
+
async function _setupAPI(reactorClient, syncManager, reactorProcessorManager, httpAdapter, authFetchMiddleware, requireAuthFetchMiddleware, authService, port, packages, relationalDb, analyticsStore, documentPermissionService, processors, subgraphs, options, processorApp, readModels, attachments, attachmentReferenceIndex, attachmentReferenceProjection, authorizationConfig, documentModelRegistry, dbClosers = [], reactorDriveClient, syncServingGate) {
|
|
6523
6598
|
const hostModule = {
|
|
6524
6599
|
...createReactorHostModuleBase({
|
|
6525
6600
|
client: reactorClient,
|
|
@@ -6564,7 +6639,7 @@ async function _setupAPI(reactorClient, syncManager, reactorProcessorManager, ht
|
|
|
6564
6639
|
coreSubgraphs.push(AuthSubgraph);
|
|
6565
6640
|
logger.info("Auth subgraph registered (document permissions enabled)");
|
|
6566
6641
|
}
|
|
6567
|
-
const graphqlManager = await setupGraphQLManager(httpAdapter, authFetchMiddleware, httpServer, wsServer, reactorClient, relationalDb, analyticsStore, syncManager, {
|
|
6642
|
+
const graphqlManager = await setupGraphQLManager(httpAdapter, authFetchMiddleware, requireAuthFetchMiddleware, httpServer, wsServer, reactorClient, relationalDb, analyticsStore, syncManager, {
|
|
6568
6643
|
extended: subgraphs,
|
|
6569
6644
|
core: coreSubgraphs
|
|
6570
6645
|
}, logger.child(["graphql-manager"]), authorizationService, authService, documentPermissionService, options.enableDocumentModelSubgraphs, port, reactorDriveClient, syncServingGate);
|
|
@@ -6632,7 +6707,7 @@ function buildApiDispose(args) {
|
|
|
6632
6707
|
};
|
|
6633
6708
|
}
|
|
6634
6709
|
async function initializeAndStartAPI(clientInitializer, options, processorApp) {
|
|
6635
|
-
const { port, httpAdapter, authFetchMiddleware, authService, relationalDb, analyticsStore, documentPermissionService, authorizationConfig, attachments, attachmentReferenceIndex, packages, dbClosers, readiness } = await _setupCommonInfrastructure(options);
|
|
6710
|
+
const { port, httpAdapter, authFetchMiddleware, requireAuthFetchMiddleware, authService, relationalDb, analyticsStore, documentPermissionService, authorizationConfig, attachments, attachmentReferenceIndex, packages, dbClosers, readiness } = await _setupCommonInfrastructure(options);
|
|
6636
6711
|
const { documentModels, upgradeManifests, processors, subgraphs } = await packages.init();
|
|
6637
6712
|
const { module: reactorClientModule, reactorDriveClient, attachmentReferenceProjection = {
|
|
6638
6713
|
status: "unavailable",
|
|
@@ -6649,7 +6724,7 @@ async function initializeAndStartAPI(clientInitializer, options, processorApp) {
|
|
|
6649
6724
|
const documentModelRegistry = reactorClientModule.reactorModule?.documentModelRegistry;
|
|
6650
6725
|
if (!documentModelRegistry) throw new Error("DocumentModelRegistry not available from InProcessReactorClientModule");
|
|
6651
6726
|
return {
|
|
6652
|
-
...await _setupAPI(reactorClient, syncManager, reactorProcessorManager, httpAdapter, authFetchMiddleware, authService, port, packages, relationalDb, analyticsStore, documentPermissionService, processors, subgraphs, options, processorApp, (reactorClientModule.reactorModule?.readModelCoordinator)?.readModels ?? [], attachments, attachmentReferenceIndex, attachmentReferenceProjection, authorizationConfig, documentModelRegistry, dbClosers, reactorDriveClient, buildSyncServingGate(reactorClientModule.reactorModule, authorizationConfig, options.logger ?? defaultLogger)),
|
|
6727
|
+
...await _setupAPI(reactorClient, syncManager, reactorProcessorManager, httpAdapter, authFetchMiddleware, requireAuthFetchMiddleware, authService, port, packages, relationalDb, analyticsStore, documentPermissionService, processors, subgraphs, options, processorApp, (reactorClientModule.reactorModule?.readModelCoordinator)?.readModels ?? [], attachments, attachmentReferenceIndex, attachmentReferenceProjection, authorizationConfig, documentModelRegistry, dbClosers, reactorDriveClient, buildSyncServingGate(reactorClientModule.reactorModule, authorizationConfig, options.logger ?? defaultLogger)),
|
|
6653
6728
|
client: reactorClient,
|
|
6654
6729
|
syncManager,
|
|
6655
6730
|
documentModelRegistry,
|
|
@@ -6758,7 +6833,7 @@ var PackageManagementService = class {
|
|
|
6758
6833
|
}
|
|
6759
6834
|
};
|
|
6760
6835
|
//#endregion
|
|
6761
|
-
export { ADMIN_USERS, ActionCandidateInputSchema, ActionContextInputSchema, ActionInputSchema, AddRelationshipDocument, AnalyticsSubgraph, AttachmentAccessService, AuthDecision, AuthDecisionSchema, AuthService, AuthSubgraph, AuthorizationPolicy, AuthorizedDocumentHandle, BaseSubgraph, CanonicalDocumentIdResolutionError, ChannelMetaInputSchema, CreateDocumentDocument, CreateEmptyDocumentDocument, DeleteDocumentDocument, DeleteDocumentsDocument, DocumentChangeType, DocumentChangeTypeSchema, DocumentChangesDocument, DocumentOperationsFilterInputSchema, DocumentPermissionService, EvaluateActionsDocument, FindDocumentsDocument, GetDocumentDocument, GetDocumentIncomingRelationshipsDocument, GetDocumentModelsDocument, GetDocumentOperationsDocument, GetDocumentOutgoingRelationshipsDocument, GetDocumentWithOperationsDocument, GetJobStatusDocument, GraphQLManager, HttpDocumentModelLoader, HttpPackageLoader, ImportPackageLoader, InMemoryPackageStorage, JobChangesDocument, MoveRelationshipDocument, MutateDocumentAsyncDocument, MutateDocumentDocument, OperationContextInputSchema, OperationInputSchema, OperationWithContextInputSchema, OperationsFilterInputSchema, PGLITE_UTC_PARSERS, PackageManagementService, PackageManager, PackagesSubgraph, PagingInputSchema, PhDocumentFieldsFragmentDoc, PollSyncEnvelopesDocument, PropagationMode, PropagationModeSchema, PushSyncEnvelopesDocument, ReactorSignerAppInputSchema, ReactorSignerInputSchema, ReactorSignerUserInputSchema, ReactorSubgraph, RemoteCursorInputSchema, RemoteFilterInputSchema, RemoveRelationshipDocument, RenameDocumentDocument, SearchFilterInputSchema, SetPreferredEditorDocument, SyncEnvelopeInputSchema, SyncEnvelopeType, SyncEnvelopeTypeSchema, SystemSubgraph, TouchChannelDocument, TouchChannelInputSchema, ViewFilterInputSchema, assertAuthRequiredForDocumentPermissions, assertCredentialVerifierForSource, assertSkipCredentialVerificationAllowed, buildGraphQlDocument, buildGraphQlDriveDocument, buildGraphqlOperation, buildGraphqlOperations, buildSubgraphSchemaModule, createAuthFetchMiddleware, createCanonicalDocumentIdResolver, createGatewayAdapter, createHttpAdapter, createMergedSchema, createReactorGraphQLClient, createRenownCredentialVerifier, createSchema, definedNonNullAnySchema, driveIdFromUrl, extractSubgraphsFromModule, generateDocumentModelSchema, getAuthContext, getDbClient, getDocumentModelSchemaName, getDocumentModelTypeDefs, getGitHash, getGitUrl, getSdk, getUniqueDocumentModels, getUniqueUpgradeManifests, getVersion, initAnalyticsStoreSql, initializeAndStartAPI, isDefinedNonNullAny, isExpectedLoaderMiss, isSubgraphClass, parseDriveUrl, renderGraphqlPlayground, resolveRenownConfig };
|
|
6836
|
+
export { ADMIN_USERS, ActionCandidateInputSchema, ActionContextInputSchema, ActionInputSchema, AddRelationshipDocument, AnalyticsSubgraph, AttachmentAccessService, AuthDecision, AuthDecisionSchema, AuthService, AuthSubgraph, AuthorizationPolicy, AuthorizedDocumentHandle, BaseSubgraph, CanonicalDocumentIdResolutionError, ChannelMetaInputSchema, CreateDocumentDocument, CreateEmptyDocumentDocument, DeleteDocumentDocument, DeleteDocumentsDocument, DocumentChangeType, DocumentChangeTypeSchema, DocumentChangesDocument, DocumentOperationsFilterInputSchema, DocumentPermissionService, EvaluateActionsDocument, FindDocumentsDocument, GetDocumentDocument, GetDocumentIncomingRelationshipsDocument, GetDocumentModelsDocument, GetDocumentOperationsDocument, GetDocumentOutgoingRelationshipsDocument, GetDocumentWithOperationsDocument, GetJobStatusDocument, GraphQLManager, HttpDocumentModelLoader, HttpPackageLoader, ImportPackageLoader, InMemoryPackageStorage, JobChangesDocument, MoveRelationshipDocument, MutateDocumentAsyncDocument, MutateDocumentDocument, OperationContextInputSchema, OperationInputSchema, OperationWithContextInputSchema, OperationsFilterInputSchema, PGLITE_UTC_PARSERS, PackageManagementService, PackageManager, PackagesSubgraph, PagingInputSchema, PhDocumentFieldsFragmentDoc, PollSyncEnvelopesDocument, PropagationMode, PropagationModeSchema, PushSyncEnvelopesDocument, ReactorSignerAppInputSchema, ReactorSignerInputSchema, ReactorSignerUserInputSchema, ReactorSubgraph, RemoteCursorInputSchema, RemoteFilterInputSchema, RemoveRelationshipDocument, RenameDocumentDocument, SearchFilterInputSchema, SetPreferredEditorDocument, SyncEnvelopeInputSchema, SyncEnvelopeType, SyncEnvelopeTypeSchema, SystemSubgraph, TouchChannelDocument, TouchChannelInputSchema, ViewFilterInputSchema, assertAuthRequiredForDocumentPermissions, assertCredentialVerifierForSource, assertRequireAuthenticatedCallerAllowed, assertSkipCredentialVerificationAllowed, buildGraphQlDocument, buildGraphQlDriveDocument, buildGraphqlOperation, buildGraphqlOperations, buildSubgraphSchemaModule, createAuthFetchMiddleware, createCanonicalDocumentIdResolver, createGatewayAdapter, createHttpAdapter, createMergedSchema, createReactorGraphQLClient, createRenownCredentialVerifier, createSchema, definedNonNullAnySchema, driveIdFromUrl, extractSubgraphsFromModule, generateDocumentModelSchema, getAuthContext, getDbClient, getDocumentModelSchemaName, getDocumentModelTypeDefs, getGitHash, getGitUrl, getSdk, getUniqueDocumentModels, getUniqueUpgradeManifests, getVersion, initAnalyticsStoreSql, initializeAndStartAPI, isDefinedNonNullAny, isExpectedLoaderMiss, isSubgraphClass, parseDriveUrl, renderGraphqlPlayground, resolveRenownConfig };
|
|
6762
6837
|
|
|
6763
6838
|
//# sourceMappingURL=index.mjs.map
|
|
6764
|
-
//# debugId=
|
|
6839
|
+
//# debugId=a3bbf8ae-c16f-5c87-aaf9-23e0709811cd
|