@powerhousedao/reactor-api 6.2.3-dev.96 → 6.2.3-dev.98

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.mjs CHANGED
@@ -1,8 +1,8 @@
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]="b8ed2197-9a91-54d2-93d1-e6262f7bd15d")}catch(e){}}();
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]="d5e74303-9fc8-585b-b53f-dc606c2fb730")}catch(e){}}();
3
3
  import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.mjs";
4
4
  import { A as RequestClientBinder, B as CanonicalDocumentIdResolutionError, C as loadDocumentModels, D as manifestDeclaredSubgraphs, E as loadSubgraphs, F as READABLE_DOCUMENTS_NAMESPACE, G as AuthEvaluationUnsupportedError, H as AuthorizationPolicy, I as ReadableDocumentsProjection, J as MalformedStoredOperationError, K as AuthenticationRequiredError, L as applyReadableFilter, M as createCredentialInvalidator, N as DEFAULT_ROOT_TYPES, O as BaseSubgraph, P as EVERYONE, R as isDocumentListed, T as loadScalars, U as AuthorizedDocumentHandle, V as createCanonicalDocumentIdResolver, W as createAuthorizationService, Y as RefusalNotRecordedError, _ as runDetached, a as PIECE_SOURCE_LIST, b as extractUpgradeManifests, c as piecesFromCdnList, d as buildGraphQlDocument, f as buildGraphQlDriveDocument, g as reportFailure, h as isSubgraphClass, j as AuthService, k as callerSubject, l as piecesFromListModule, m as buildGraphqlOperations, n as scalarExportsOf, p as buildGraphqlOperation, q as ForbiddenError, s as pieceListLocation, t as extractSubgraphs, u as extractDocumentModels, v as PACKAGE_MODULE_FAILED, w as loadProcessors, x as failedLoadHeader, y as debounce, z as readableDocumentsSubquery } from "./subgraph-extraction-C_hFvSaS.mjs";
5
- import { A as getDocumentModelTypeDefs, B as sameScalarRegistry, C as createMergedSchema, D as generateDocumentModelSchema, E as findSubgraphTypeCollisions, F as typeDefinitionNames, I as documentModelSchemaSource, L as selectDocumentModelSchemaSource, M as hasOperationSchemas, N as reservedTypeNames, O as generatedTypesOf, P as reservedTypeNamesTaken, R as getDocumentModelSchemaName, S as buildSubgraphSchemaModule, T as documentModelSubgraphTypes, V as schema_default$1, _ as describeOwnershipConflicts, a as inspectionAdminTypeDefs, b as assembleSubgraphTypeDefs, c as HOST_ORIGIN, d as byClaimPriority, f as decideAdmission, g as collectSubgraphClaims, h as supergraphClaimLosers, i as inspectionTypeDefs, j as getGeneratedDocumentModelTypes, k as getDocumentModelSubgraphName, l as RegistrationOrder, m as documentModelSubgraphSources, n as systemTypeDefs, o as CORE_ORIGIN, p as describeOrigin, r as schema_default$2, s as DOCUMENT_MODEL_ORIGIN, t as baseDocumentModels, u as admitDocumentModels, v as DocumentModelSchemaCache, w as createSchema, x as buildDocumentModelSchema, y as SubgraphTypeCollisionError, z as EMPTY_SCALAR_REGISTRY } from "./base-document-models-CCYv5XxL.mjs";
5
+ import { A as getDocumentModelTypeDefs, B as sameScalarRegistry, C as createMergedSchema, D as generateDocumentModelSchema, E as findSubgraphTypeCollisions, F as typeDefinitionNames, I as documentModelSchemaSource, L as selectDocumentModelSchemaSource, M as hasOperationSchemas, N as reservedTypeNames, O as generatedTypesOf, P as reservedTypeNamesTaken, R as getDocumentModelSchemaName, S as buildSubgraphSchemaModule, T as documentModelSubgraphTypes, V as schema_default$1, _ as describeOwnershipConflicts, a as inspectionAdminTypeDefs, b as assembleSubgraphTypeDefs, c as HOST_ORIGIN, d as byClaimPriority, f as decideAdmission, g as collectSubgraphClaims, h as supergraphClaimLosers, i as inspectionTypeDefs, j as getGeneratedDocumentModelTypes, k as getDocumentModelSubgraphName, l as RegistrationOrder, m as documentModelSubgraphSources, n as systemTypeDefs, o as CORE_ORIGIN, p as describeOrigin, r as schema_default$2, s as DOCUMENT_MODEL_ORIGIN, t as baseDocumentModels, u as admitDocumentModels, v as DocumentModelSchemaCache, w as createSchema, x as buildDocumentModelSchema, y as SubgraphTypeCollisionError, z as EMPTY_SCALAR_REGISTRY } from "./base-document-models-caJpqTLw.mjs";
6
6
  import { n as createApolloFetchHandler } from "./adapter-gateway-apollo-D-EdZ4e-.mjs";
7
7
  import { _ as PGLITE_UTC_PARSERS, a as resolvePgliteMaintenance, r as createDurableNodeFs } from "./error-info-Cr6oQACe.mjs";
8
8
  import { h as preparePgliteDataDir, m as openCurrentPgliteForVerify } from "./pglite-node-CcX2YT-l.mjs";
@@ -27,10 +27,10 @@ import { pipeline } from "node:stream/promises";
27
27
  import { createHash, createHmac, randomBytes, randomUUID, timingSafeEqual } from "node:crypto";
28
28
  import nodeFs, { appendFileSync, existsSync, mkdirSync, readFileSync, readdirSync, renameSync, rmSync, watchFile, writeFileSync } from "node:fs";
29
29
  import { PerformanceObserver, constants, monitorEventLoopDelay } from "node:perf_hooks";
30
- import { SCALAR_DEFINITION_VERSION, getCatalogScalar, storedScalarDefinition } from "document-model/scalars";
31
- import "change-case";
30
+ import { SCALAR_DEFINITION_VERSION, getCatalogScalar, modelPackageScalars, storedScalarDefinition } from "document-model/scalars";
32
31
  import * as z$1 from "zod";
33
32
  import { z } from "zod";
33
+ import "change-case";
34
34
  import { pathToFileURL } from "node:url";
35
35
  import { ApolloServer } from "@apollo/server";
36
36
  import { ApolloServerPluginInlineTraceDisabled } from "@apollo/server/plugin/disabled";
@@ -2021,19 +2021,75 @@ function packageScalarFindings(models, registry) {
2021
2021
  documentType,
2022
2022
  scalar: name
2023
2023
  }];
2024
- const declared = canonicalJson(definition);
2025
- const registered = canonicalJson(storedScalarDefinition(binding.definition));
2026
- return declared === registered ? [] : [{
2027
- kind: "mismatch",
2024
+ const difference = scalarDifference(definition, modelPackageScalars(model).get(name), binding.definition);
2025
+ return difference === void 0 ? [] : [{
2026
+ ...difference,
2028
2027
  documentType,
2029
2028
  scalar: name,
2030
- packageName: binding.packageName,
2031
- declared,
2032
- registered
2029
+ packageName: binding.packageName
2033
2030
  }];
2034
2031
  });
2035
2032
  });
2036
2033
  }
2034
+ function validatorSource(definition) {
2035
+ const ancestors = [];
2036
+ const walk = (value) => {
2037
+ if (typeof value === "function") return { function: String(value) };
2038
+ if (value instanceof RegExp) return { regexp: String(value) };
2039
+ if (typeof value === "number" && !Number.isFinite(value)) return { number: String(value) };
2040
+ if (typeof value === "bigint" || typeof value === "symbol") return { [typeof value]: String(value) };
2041
+ if (typeof value !== "object" || value === null) return value;
2042
+ const zodDef = zodDefinition(value);
2043
+ const node = zodDef ?? value;
2044
+ const depth = ancestors.lastIndexOf(node);
2045
+ if (depth !== -1) return { cycle: ancestors.length - depth };
2046
+ ancestors.push(node);
2047
+ const tree = Array.isArray(node) ? node.map(walk) : Object.fromEntries(Object.entries(node).filter(([key, entry]) => entry !== void 0 && !(zodDef !== void 0 && key === "error")).map(([key, entry]) => [key, walk(entry)]));
2048
+ ancestors.pop();
2049
+ return tree;
2050
+ };
2051
+ return walk(definition.schema);
2052
+ }
2053
+ function zodDefinition(value) {
2054
+ const internals = value._zod;
2055
+ return typeof internals?.def === "object" && internals.def !== null ? internals.def : void 0;
2056
+ }
2057
+ function jsonSchemaOf(definition) {
2058
+ try {
2059
+ return z.toJSONSchema(definition.schema);
2060
+ } catch {
2061
+ return;
2062
+ }
2063
+ }
2064
+ function scalarDifference(declared, compiledWith, registered) {
2065
+ const registeredMetadata = storedScalarDefinition(registered);
2066
+ const metadata = {
2067
+ declared: canonicalJson(declared),
2068
+ registered: canonicalJson(registeredMetadata)
2069
+ };
2070
+ if (metadata.declared !== metadata.registered) return {
2071
+ kind: "mismatch",
2072
+ ...metadata
2073
+ };
2074
+ if (compiledWith === void 0 || compiledWith === registered) return;
2075
+ const own = validatorSource(compiledWith);
2076
+ const bound = validatorSource(registered);
2077
+ if (canonicalJson(own) === canonicalJson(bound)) return void 0;
2078
+ const ownJsonSchema = jsonSchemaOf(compiledWith);
2079
+ const boundJsonSchema = jsonSchemaOf(registered);
2080
+ const differ = ownJsonSchema !== void 0 && boundJsonSchema !== void 0 && canonicalJson(ownJsonSchema) !== canonicalJson(boundJsonSchema);
2081
+ return {
2082
+ kind: differ ? "mismatch" : "uncomparable",
2083
+ declared: canonicalJson({
2084
+ ...declared,
2085
+ validator: differ ? { jsonSchema: ownJsonSchema } : { zod: own }
2086
+ }),
2087
+ registered: canonicalJson({
2088
+ ...registeredMetadata,
2089
+ validator: differ ? { jsonSchema: boundJsonSchema } : { zod: bound }
2090
+ })
2091
+ };
2092
+ }
2037
2093
  var PackageScalarBindingLog = class {
2038
2094
  #logged = /* @__PURE__ */ new Set();
2039
2095
  report(models, registry, logger) {
@@ -2042,6 +2098,7 @@ var PackageScalarBindingLog = class {
2042
2098
  if (this.#logged.has(key)) continue;
2043
2099
  this.#logged.add(key);
2044
2100
  if (finding.kind === "unbound") logger.warn("Document model @documentType declares package scalar @scalar, which no package registers; it is served without validation.", finding.documentType, finding.scalar);
2101
+ else if (finding.kind === "uncomparable") logger.warn("Document model @documentType declares package scalar @scalar as @declared, and package @package registers @registered; their validators differ in checks JSON Schema cannot express, so they could not be compared. The registered binding is served.", finding.documentType, finding.scalar, finding.declared, finding.packageName, finding.registered);
2045
2102
  else logger.warn("Document model @documentType declares package scalar @scalar as @declared, but package @package registers @registered; the registered binding is served.", finding.documentType, finding.scalar, finding.declared, finding.packageName, finding.registered);
2046
2103
  }
2047
2104
  }
@@ -2060,7 +2117,7 @@ function findingsOf(model, registry) {
2060
2117
  kind: "scalar-unbound"
2061
2118
  } : {
2062
2119
  ...finding,
2063
- kind: "scalar-mismatch"
2120
+ kind: finding.kind === "mismatch" ? "scalar-mismatch" : "scalar-uncomparable"
2064
2121
  });
2065
2122
  }
2066
2123
  /**
@@ -2080,6 +2137,7 @@ function describeHostValidationFinding(finding) {
2080
2137
  switch (finding.kind) {
2081
2138
  case "scalar-unbound": return `package scalar ${finding.scalar} has no registered binding`;
2082
2139
  case "scalar-mismatch": return `package scalar ${finding.scalar} is declared as ${finding.declared}, but package ${finding.packageName} registers ${finding.registered}`;
2140
+ case "scalar-uncomparable": return `package scalar ${finding.scalar} is declared as ${finding.declared}, and package ${finding.packageName} registers ${finding.registered}, whose validators could not be compared`;
2083
2141
  case "definition-invalid":
2084
2142
  case "definition-mismatch": return `its definition is ${finding.kind === "definition-invalid" ? "invalid" : "for another module"}: ${finding.diagnostics.map(({ path, message }) => `${path.join(".")}: ${message}`).join(" ")}`;
2085
2143
  }
@@ -4775,6 +4833,25 @@ var DocumentModelSubgraph = class extends BaseSubgraph {
4775
4833
  }
4776
4834
  if (target.documentType !== documentType) throw new GraphQLError(`Document with id ${requested} is not of type ${documentType}`);
4777
4835
  }
4836
+ async #authorizedAction(op, args, documentType, ctx) {
4837
+ const documentIdOrSlug = requireOneOf(args, "documentIdOrSlug", "docId");
4838
+ const handle = await this.assertCanExecuteOperation(documentIdOrSlug, op.permissionKey, ctx);
4839
+ const clients = this.clientsOf(ctx);
4840
+ await this.#assertDocumentType(clients, handle.fetchIdentifier, documentIdOrSlug, documentType);
4841
+ const creator = this.documentModel.actions[op.creatorKey];
4842
+ if (!creator) throw new GraphQLError(`Action ${op.storedName} not found`);
4843
+ let action;
4844
+ try {
4845
+ action = creator(args.input);
4846
+ } catch (error) {
4847
+ throw new GraphQLError(error instanceof Error ? error.message : `Failed to ${op.storedName}`);
4848
+ }
4849
+ return {
4850
+ clients,
4851
+ documentId: handle.fetchIdentifier,
4852
+ action
4853
+ };
4854
+ }
4778
4855
  /** Drops the items the host's own ACL refuses the caller. */
4779
4856
  async #readableItems(page, ctx) {
4780
4857
  return {
@@ -4937,31 +5014,19 @@ var DocumentModelSubgraph = class extends BaseSubgraph {
4937
5014
  },
4938
5015
  ...operations.reduce((mutations, op) => {
4939
5016
  mutations[op.camelName] = async (_, args, ctx) => {
4940
- const documentIdOrSlug = requireOneOf(args, "documentIdOrSlug", "docId");
4941
- const { input } = args;
4942
- const effectiveDocId = (await this.assertCanExecuteOperation(documentIdOrSlug, op.storedName, ctx)).fetchIdentifier;
4943
- const clients = this.clientsOf(ctx);
4944
- await this.#assertDocumentType(clients, effectiveDocId, documentIdOrSlug, documentType);
4945
- const action = this.documentModel.actions[op.creatorKey];
4946
- if (!action) throw new GraphQLError(`Action ${op.storedName} not found`);
5017
+ const { clients, documentId, action } = await this.#authorizedAction(op, args, documentType, ctx);
4947
5018
  let receipt;
4948
5019
  try {
4949
- receipt = await (await clients.write.execute(effectiveDocId, "main", [action(input)])).readable;
5020
+ receipt = await (await clients.write.execute(documentId, "main", [action])).readable;
4950
5021
  } catch (error) {
4951
5022
  throw new GraphQLError(error instanceof Error ? error.message : `Failed to ${op.storedName}`);
4952
5023
  }
4953
5024
  return toGqlPhDocument(await readAsCaller(clients.read, receipt, this.viewSubject(ctx)));
4954
5025
  };
4955
5026
  mutations[`${op.camelName}Async`] = async (_, args, ctx) => {
4956
- const documentIdOrSlug = requireOneOf(args, "documentIdOrSlug", "docId");
4957
- const { input } = args;
4958
- const effectiveDocId = (await this.assertCanExecuteOperation(documentIdOrSlug, op.storedName, ctx)).fetchIdentifier;
4959
- const clients = this.clientsOf(ctx);
4960
- await this.#assertDocumentType(clients, effectiveDocId, documentIdOrSlug, documentType);
4961
- const action = this.documentModel.actions[op.creatorKey];
4962
- if (!action) throw new GraphQLError(`Action ${op.storedName} not found`);
5027
+ const { clients, documentId, action } = await this.#authorizedAction(op, args, documentType, ctx);
4963
5028
  try {
4964
- return (await clients.write.execute(effectiveDocId, "main", [action(input)])).jobId;
5029
+ return (await clients.write.execute(documentId, "main", [action])).jobId;
4965
5030
  } catch (error) {
4966
5031
  throw new GraphQLError(error instanceof Error ? error.message : `Failed to ${op.storedName}`);
4967
5032
  }
@@ -9119,10 +9184,10 @@ const ADMIN_USERS = new Proxy([], {
9119
9184
  //#endregion
9120
9185
  //#region src/graphql/system/version.ts
9121
9186
  function getVersion() {
9122
- return "6.2.3-dev.96";
9187
+ return "6.2.3-dev.98";
9123
9188
  }
9124
9189
  function getGitHash() {
9125
- return "e26ebfe004e8c3744bde4f483bb7ec5d8da0a60d";
9190
+ return "e20a30e2afff58032516136d49cac8a07433c766";
9126
9191
  }
9127
9192
  function getGitUrl() {
9128
9193
  return buildTreeUrl(getGitHash());
@@ -12082,7 +12147,7 @@ function makeDbClosers(knexInstance, pglite, logger) {
12082
12147
  /**
12083
12148
  * Sets up the subgraph manager and registers subgraphs
12084
12149
  */
12085
- async function setupGraphQLManager({ settings, httpAdapter, authFetchMiddleware, requireAuthFetchMiddleware, httpServer, wsServer, clients, relationalDb, analyticsStore, syncManager, subgraphs, scalars, logger, authorizationService, authService, documentPermissionService, enableDocumentModelSubgraphs, hostRefreshesSupergraph, port, reactorDriveClient, driveNodes, syncServingGate, readableDocuments, httpRoutes, attachments, inspection, driveStore, reportError }) {
12150
+ async function setupGraphQLManager({ settings, httpAdapter, authFetchMiddleware, requireAuthFetchMiddleware, httpServer, wsServer, clients, relationalDb, analyticsStore, syncManager, subgraphs, scalars, logger, authorizationService, authService, documentPermissionService, enableDocumentModelSubgraphs, hostRefreshesSupergraph, hostValidation, port, reactorDriveClient, driveNodes, syncServingGate, readableDocuments, httpRoutes, attachments, inspection, driveStore, reportError }) {
12086
12151
  const graphqlManager = new GraphQLManager({
12087
12152
  wsCredentialRecheckIntervalMs: settings.wsCredentialRecheckIntervalMs,
12088
12153
  path: settings.basePath,
@@ -12100,6 +12165,7 @@ async function setupGraphQLManager({ settings, httpAdapter, authFetchMiddleware,
12100
12165
  authService,
12101
12166
  documentPermissionService,
12102
12167
  featureFlags: { enableDocumentModelSubgraphs },
12168
+ hostValidation,
12103
12169
  port,
12104
12170
  authorizationService,
12105
12171
  reactorDriveClient,
@@ -12444,6 +12510,7 @@ async function _setupAPI(clients, syncManager, reactorProcessorManager, httpAdap
12444
12510
  documentPermissionService,
12445
12511
  enableDocumentModelSubgraphs: options.enableDocumentModelSubgraphs,
12446
12512
  hostRefreshesSupergraph: options.hostRefreshesSupergraph,
12513
+ hostValidation: options.hostValidation,
12447
12514
  port: boundPort,
12448
12515
  reactorDriveClient,
12449
12516
  driveNodes,
@@ -12983,4 +13050,4 @@ var NodeMemorySampler = class {
12983
13050
  export { ADMIN_USERS, ActionCandidateInputSchema, ActionContextInputSchema, ActionInputSchema, AddRelationshipDocument, AnalyticsSubgraph, AttachmentAccessFailed, AttachmentAccessService, AttachmentAccessUnavailable, AttachmentClientProvider, AuthDecision, AuthDecisionSchema, AuthEvaluationUnsupportedError, AuthService, AuthSubgraph, AuthenticationRequiredError, AuthorizationPolicy, AuthorizedAttachmentService, AuthorizedDocumentHandle, BaseSubgraph, CORE_PACKAGE_NAME, CanonicalDocumentIdResolutionError, ChannelMetaInputSchema, ConsistencyCoordinateInputSchema, ConsistencyTokenInputSchema, CreateDocumentDocument, CreateEmptyDocumentDocument, DEFAULT_INSPECTION_THROTTLE, DEFAULT_PERMISSION_CACHE_OPTIONS, DEFAULT_PERMISSION_CACHE_TTL_MS, DEFAULT_ROOT_TYPES, DeleteDocumentDocument, DeleteDocumentsDocument, DocumentChangeType, DocumentChangeTypeSchema, DocumentChangesDocument, DocumentModelSchemaCache, DocumentOperationsFilterInputSchema, DocumentPermissionService, DocumentPermissionSnapshot, DocumentRelationshipFieldsFragmentDoc, DriveNodeFieldsFragmentDoc, DriveNodeKind, DriveNodeKindSchema, EVERYONE, EvaluateActionsDocument, ExecuteBatchDocument, ExecutionJobInputSchema, FindDocumentsDocument, ForbiddenError, GetCreateDefaultsDocument, GetCreateProtocolVersionsDocument, GetDocumentDocument, GetDocumentIncomingRelationshipEdgesDocument, GetDocumentIncomingRelationshipsDocument, GetDocumentModelsDocument, GetDocumentOperationsDocument, GetDocumentOutgoingRelationshipEdgesDocument, GetDocumentOutgoingRelationshipsDocument, GetDocumentServedDocument, GetDocumentWithOperationsDocument, GetDriveDescendantsDocument, GetDriveNodeDocument, GetDriveNodesDocument, GetJobStatusDocument, GetUndoRedoTargetsDocument, GraphQLManager, HttpDocumentModelLoader, HttpPackageLoader, HttpRouteService, ImportPackageLoader, InMemoryPackageStorage, InspectionAdminSubgraph, InspectionSubgraph, InspectionThrottle, InspectionThrottledError, InvalidNamespaceError, JobChangesDocument, JobInfoFieldsFragmentDoc, JsonlFile, MalformedStoredOperationError, MemoryWebhookStore, MoveRelationshipDocument, MutateDocumentAsyncDocument, MutateDocumentDocument, NodeEventLoopDelay, NodeMemorySampler, OperationContextInputSchema, OperationInputSchema, OperationWithContextInputSchema, OperationsFilterInputSchema, PACKAGE_ROUTE_SEGMENT, PGLITE_UTC_PARSERS, PackageManagementService, PackageManager, PackagesSubgraph, PagingInputSchema, PermissionCache, PhDocumentFieldsFragmentDoc, PollSyncEnvelopesDocument, PrivacyPermissionAdapter, PropagationMode, PropagationModeSchema, PushSyncEnvelopesDocument, READABLE_DOCUMENTS_NAMESPACE, ReactorSignerAppInputSchema, ReactorSignerInputSchema, ReactorSignerUserInputSchema, ReactorSubgraph, ReadableDocumentsProjection, RefusalNotRecordedError, RelationalWebhookStore, RemoteCursorInputSchema, RemoteFilterInputSchema, RemoveRelationshipDocument, RenameDocumentDocument, RequestLoadRecorder, SearchFilterInputSchema, SetPreferredEditorDocument, SubgraphTypeCollisionError, SyncEnvelopeInputSchema, SyncEnvelopeType, SyncEnvelopeTypeSchema, SyncRefusalInputSchema, SystemSubgraph, TouchChannelDocument, TouchChannelInputSchema, UpdateRelationshipDocument, ViewFilterInputSchema, WEBHOOK_SEGMENT, WS_AUTH_CLOSE_REASONS, WS_CLOSE_REASON_AUTHENTICATION_REQUIRED, WS_CLOSE_REASON_BEARER_REJECTED, WS_CLOSE_REASON_CREDENTIAL_REVOKED, WebhookService, applyReadableFilter, assembleSubgraphTypeDefs, assertAttachmentPolicyReadsAllowed, assertAuthRequiredForDocumentPermissions, assertCredentialVerifierForSource, assertHostMountPath, assertIndexAccessComplete, assertRequireAuthenticatedCallerAllowed, assertSkipCredentialVerificationAllowed, baseDocumentModels, buildDocumentModelSchema, buildGraphQlDocument, buildGraphQlDriveDocument, buildGraphqlOperation, buildGraphqlOperations, buildScalarRegistry, buildSubgraphSchemaModule, callerSubject, createAuthFetchMiddleware, createCanonicalDocumentIdResolver, createCredentialInvalidator, createGatewayAdapter, createHeapSnapshotWriter, createHttpAdapter, createInspectionResolvers, createMergedSchema, createReactorGraphQLClient, createReactorInspectionSource, createRenownCredentialVerifier, createSchema, createWsAuthHandlers, decodeExplorerUrlState, defineIndexSubgraph, definedNonNullAnySchema, documentModelSubgraphTypes, driveIdFromUrl, extractSubgraphs, extractSubgraphsFromModule, fileTimestamp, findSubgraphTypeCollisions, generateDocumentModelSchema, generatedTypesOf, getAuthContext, getDbClient, getDocumentModelSchemaName, getDocumentModelSubgraphName, getDocumentModelTypeDefs, getExplorerPrefix, getGeneratedDocumentModelTypes, getGitHash, getGitUrl, getSdk, getUniqueDocumentModels, getUniqueUpgradeManifests, getVersion, hasOperationSchemas, initAnalyticsStoreSql, initializeAndStartAPI, inspectionAdminTypeDefs, inspectionTypeDefs, isCountedRequest, isDefinedNonNullAny, isDocumentListed, isExpectedLoaderMiss, isListedAdmin, isPostgresConnectionString, isSubgraphClass, memoryFileSink, namespacePath, namespaceSegments, newWebhookToken, parseDriveUrl, parseWebhookBody, piecesBaseUrl, reactorApiConfigFromEnv, readableDocumentsSubquery, redactHeaders, renderGraphqlPlayground, reportFailure, reservedTypeNames, reservedTypeNamesTaken, resolveCredentialCacheTtlMs, resolvePackageName, resolvePermissionCacheTtlMs, resolveRenownConfig, runDetached, scalarExportsOf, setAuthContext, telemetryDir, typeDefinitionNames, validateDocumentModelsForHost, verifyWebhook };
12984
13051
 
12985
13052
  //# sourceMappingURL=index.mjs.map
12986
- //# debugId=b8ed2197-9a91-54d2-93d1-e6262f7bd15d
13053
+ //# debugId=d5e74303-9fc8-585b-b53f-dc606c2fb730