@powerhousedao/reactor-api 6.2.3-dev.2 → 6.2.3-dev.20

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.
Files changed (30) hide show
  1. package/dist/{adapter-gateway-apollo-DdamNLPT.mjs → adapter-gateway-apollo-CxJNBVyD.mjs} +7 -8
  2. package/dist/adapter-gateway-apollo-CxJNBVyD.mjs.map +1 -0
  3. package/dist/adapter-gateway-apollo-DowrX6E_.mjs +4 -0
  4. package/dist/{adapter-gateway-mercurius-CLmTtNJC.mjs → adapter-gateway-mercurius-CZVy88Za.mjs} +6 -5
  5. package/dist/adapter-gateway-mercurius-CZVy88Za.mjs.map +1 -0
  6. package/dist/adapter-gateway-stitching-CaZjvRzx.mjs +316 -0
  7. package/dist/adapter-gateway-stitching-CaZjvRzx.mjs.map +1 -0
  8. package/dist/{adapter-http-express-54gdI9bu.mjs → adapter-http-express-B39rPhqH.mjs} +4 -4
  9. package/dist/{adapter-http-express-54gdI9bu.mjs.map → adapter-http-express-B39rPhqH.mjs.map} +1 -1
  10. package/dist/{adapter-http-fastify-DmccBVOe.mjs → adapter-http-fastify-BwXO6rqE.mjs} +4 -4
  11. package/dist/{adapter-http-fastify-DmccBVOe.mjs.map → adapter-http-fastify-BwXO6rqE.mjs.map} +1 -1
  12. package/dist/index.d.mts +305 -18
  13. package/dist/index.d.mts.map +1 -1
  14. package/dist/index.mjs +516 -60
  15. package/dist/index.mjs.map +1 -1
  16. package/dist/{path-normalize-DWWFLiy6.mjs → path-normalize-BOQwY9wR.mjs} +3 -3
  17. package/dist/{path-normalize-DWWFLiy6.mjs.map → path-normalize-BOQwY9wR.mjs.map} +1 -1
  18. package/dist/{utils-XWVecaNn.mjs → pieces-DKOEzTAY.mjs} +68 -5
  19. package/dist/pieces-DKOEzTAY.mjs.map +1 -0
  20. package/dist/src/packages/vite-loader.d.mts +6 -1
  21. package/dist/src/packages/vite-loader.d.mts.map +1 -1
  22. package/dist/src/packages/vite-loader.mjs +65 -6
  23. package/dist/src/packages/vite-loader.mjs.map +1 -1
  24. package/dist/{types-Bz2niABC.d.mts → types-DhxdSn22.d.mts} +24 -2
  25. package/dist/types-DhxdSn22.d.mts.map +1 -0
  26. package/package.json +17 -14
  27. package/dist/adapter-gateway-apollo-DdamNLPT.mjs.map +0 -1
  28. package/dist/adapter-gateway-mercurius-CLmTtNJC.mjs.map +0 -1
  29. package/dist/types-Bz2niABC.d.mts.map +0 -1
  30. package/dist/utils-XWVecaNn.mjs.map +0 -1
package/dist/index.d.mts CHANGED
@@ -1,8 +1,8 @@
1
- import { i as IPackageManagerOptions, n as IPackageLoaderOptions, r as IPackageManager, s as PackageManagerResult, t as IPackageLoader } from "./types-Bz2niABC.mjs";
1
+ import { a as IPackagePieceSource, c as PackageManagerResult, i as IPackageManagerOptions, l as PackagePiece, n as IPackageLoaderOptions, r as IPackageManager, t as IPackageLoader, u as PackagePieceEntry } from "./types-DhxdSn22.mjs";
2
2
  import { IAnalyticsStore } from "@powerhousedao/analytics-engine-core";
3
3
  import { AnalyticsModel } from "@powerhousedao/analytics-engine-graphql";
4
4
  import * as graphql from "graphql";
5
- import { DocumentNode, GraphQLResolveInfo, GraphQLScalarType, GraphQLScalarTypeConfig, GraphQLSchema } from "graphql";
5
+ import { DocumentNode, GraphQLError, GraphQLResolveInfo, GraphQLScalarType, GraphQLScalarTypeConfig, GraphQLSchema } from "graphql";
6
6
  import { AttachmentRef, IDocumentModelLoader, IDocumentModelRegistry, IDriveClient, IReactorClient, IReactorProcessorHostModuleBase, IRelationalDb, ISyncManager, InProcessReactorClientModule, ParsedDriveUrl, ProcessorFactoryBuilder as ProcessorFactoryBuilder$1, SyncScopeGate, driveIdFromUrl, parseDriveUrl } from "@powerhousedao/reactor";
7
7
  import { ILogger } from "document-model";
8
8
  import { GraphQLResolverMap, GraphQLSchemaModule } from "@apollo/subgraph";
@@ -296,7 +296,20 @@ type TlsOptions = {
296
296
  key: Buffer | string;
297
297
  } | true;
298
298
  type GatewayContextFactory<TContext = unknown> = (request: Request) => Promise<TContext>;
299
- type WsContextFactory<TContext = unknown> = (connectionParams: Record<string, unknown>) => Promise<TContext>;
299
+ /** Under graphql-ws this is `ctx.extra`, created once per socket. */
300
+ type WsConnection = object;
301
+ type WsContextFactory<TContext = unknown> = (connectionParams: Record<string, unknown>, connection: WsConnection) => Promise<TContext>;
302
+ type WsConnectHandler = (connectionParams: Record<string, unknown>, connection: WsConnection) => Promise<boolean>;
303
+ type WsHandlers<TContext = unknown> = {
304
+ onConnect: WsConnectHandler;
305
+ context: WsContextFactory<TContext>;
306
+ };
307
+ /** No authenticated caller resolved, and REQUIRE_AUTHENTICATED_CALLER wants one. */
308
+ declare const WS_CLOSE_REASON_AUTHENTICATION_REQUIRED = "authentication-required";
309
+ /** A bearer was sent and could not be verified. */
310
+ declare const WS_CLOSE_REASON_BEARER_REJECTED = "bearer-rejected";
311
+ /** Every reason a refusal closes with, for a client matching on the set. */
312
+ declare const WS_AUTH_CLOSE_REASONS: readonly ["authentication-required", "bearer-rejected"];
300
313
  type WsDisposer = {
301
314
  dispose: () => void | Promise<void>;
302
315
  };
@@ -320,13 +333,23 @@ interface AdapterRouteHandle {
320
333
  dispose(): void;
321
334
  }
322
335
  /**
323
- * A framework-agnostic description of a federated subgraph service.
324
- * Used by IGatewayAdapter.createSupergraphHandler() to compose the supergraph SDL.
336
+ * A framework-agnostic description of one subgraph.
337
+ * Used by IGatewayAdapter.createSupergraphHandler() to compose the supergraph:
338
+ * federation adapters treat it as a service to call over HTTP, while the
339
+ * stitching adapter merges its typeDefs and resolvers in-process.
325
340
  */
326
341
  type SubgraphDefinition = {
327
342
  name: string;
328
343
  typeDefs: DocumentNode;
329
344
  url: string;
345
+ /**
346
+ * The subgraph's resolver map, in-process form. Optional: federation
347
+ * adapters (Apollo, Mercurius) execute subgraphs over HTTP and ignore this,
348
+ * while stitching-style adapters merge these resolvers directly into the
349
+ * supergraph schema. Subgraph authors never see this field - it is filled
350
+ * in by the gateway manager from the subgraph's own resolvers.
351
+ */
352
+ resolvers?: Record<string, unknown>;
330
353
  };
331
354
  interface IGatewayAdapter<TContext = unknown> {
332
355
  /** One-time startup. */
@@ -337,18 +360,21 @@ interface IGatewayAdapter<TContext = unknown> {
337
360
  */
338
361
  createHandler(schema: GraphQLSchema, contextFactory: GatewayContextFactory<TContext>): Promise<FetchHandler>;
339
362
  /**
340
- * Create a federation gateway handler that composes all subgraphs into a supergraph.
341
- * getSubgraphs is called eagerly (during setup) and again on every updateSupergraph() call.
363
+ * Create a handler that composes all subgraphs into a supergraph (a
364
+ * federation gateway, or a merged in-process schema under the stitching
365
+ * adapter). getSubgraphs is called eagerly (during setup) and again on every
366
+ * updateSupergraph() call.
342
367
  */
343
368
  createSupergraphHandler(getSubgraphs: () => SubgraphDefinition[], httpServer: http.Server, contextFactory: GatewayContextFactory<TContext>): Promise<FetchHandler>;
344
369
  /**
345
- * Recompose the supergraph SDL from the current subgraph list and push the update
346
- * to the running federation gateway. No-op if createSupergraphHandler() has not
347
- * been called yet.
370
+ * Recompose the supergraph from the current subgraph list and push the update
371
+ * to the running gateway (a federation gateway, or a merged in-process schema
372
+ * under the stitching adapter). No-op if createSupergraphHandler() has not
373
+ * been called yet, or after stop().
348
374
  */
349
375
  updateSupergraph(): Promise<void>;
350
- /** Attach WebSocket subscriptions. Returns a disposer. */
351
- attachWebSocket(wsServer: WebSocketServer, schema: GraphQLSchema, contextFactory: WsContextFactory<TContext>): WsDisposer;
376
+ /** Without `onConnect`, refusing would mean throwing: an unretryable 4500. */
377
+ attachWebSocket(wsServer: WebSocketServer, schema: GraphQLSchema, handlers: WsHandlers<TContext>): WsDisposer;
352
378
  stop(): Promise<void>;
353
379
  }
354
380
  /**
@@ -489,6 +515,7 @@ declare class AuthService {
489
515
  * middleware that must enforce authentication on every request.
490
516
  */
491
517
  verifyBearer(authorization: string | undefined): Promise<AuthContext | globalThis.Response>;
518
+ /** Throws only for a bearer that is present and unusable, as HTTP 401s it. */
492
519
  authenticateWebSocketConnection(connectionParams: Record<string, unknown>): Promise<User | null>;
493
520
  /**
494
521
  * Verify the auth bearer token
@@ -1075,7 +1102,7 @@ declare function getAuthContext(request: globalThis.Request): AuthContext | unde
1075
1102
  declare function createAuthFetchMiddleware(authService: AuthService): AuthFetchMiddleware;
1076
1103
  //#endregion
1077
1104
  //#region src/graphql/gateway/factory.d.ts
1078
- type GatewayAdapterType = "apollo" | "mercurius";
1105
+ type GatewayAdapterType = "apollo" | "mercurius" | "stitching";
1079
1106
  type HttpAdapterType = "express" | "fastify";
1080
1107
  declare function createGatewayAdapter(type: GatewayAdapterType, logger: ILogger): Promise<IGatewayAdapter<Context>>;
1081
1108
  type HttpAdapterSetup = {
@@ -1112,6 +1139,12 @@ type RequireAuthFetchMiddleware = (handler: FetchHandler) => FetchHandler;
1112
1139
  type GraphqlManagerFeatureFlags = {
1113
1140
  enableDocumentModelSubgraphs?: boolean;
1114
1141
  };
1142
+ declare function createWsAuthHandlers(opts: {
1143
+ authService?: AuthService; /** Whether anonymous callers are refused; read at call time, not at build time. */
1144
+ requireAuthenticatedCaller: () => boolean;
1145
+ logger: ILogger;
1146
+ buildContext: (connectionParams: Record<string, unknown>, user?: User) => Context$1;
1147
+ }): WsHandlers<Context$1>;
1115
1148
  declare class GraphQLManager {
1116
1149
  #private;
1117
1150
  private readonly path;
@@ -1341,6 +1374,12 @@ type API = {
1341
1374
  attachmentReferenceIndex: AttachmentReferenceIndexBuildResult; /** Document-authorized attachment read decisions; see AttachmentAccessService. */
1342
1375
  attachmentAccess: IAttachmentAccessService;
1343
1376
  authService: AuthService | undefined;
1377
+ /** The service the subgraphs decide with, for a component the host composes
1378
+ * after boot: it must authorize with this one, not one of its own. */
1379
+ authorizationService: IAuthorizationService;
1380
+ /** The read-model relational store, for the same host-composed component:
1381
+ * its tables belong in this database and nothing else hands one over. */
1382
+ relationalDb: IRelationalDb$1;
1344
1383
  /**
1345
1384
  * Releases resources owned by the API: shuts down the GraphQL gateway,
1346
1385
  * closes WebSocket and HTTP servers, destroys knex pools, and closes any
@@ -1393,6 +1432,8 @@ declare class HttpPackageLoader implements IPackageLoader {
1393
1432
  private readonly registryUrl;
1394
1433
  private readonly logger;
1395
1434
  readonly name = "HttpPackageLoader";
1435
+ /** Said once: the reason is the loader's, not any one package's. */
1436
+ private reportedNoPieces;
1396
1437
  readonly documentModelLoader: HttpDocumentModelLoader;
1397
1438
  constructor(options: HttpPackageLoaderOptions);
1398
1439
  /**
@@ -1407,6 +1448,7 @@ declare class HttpPackageLoader implements IPackageLoader {
1407
1448
  loadUpgradeManifests(packageSpec: string): Promise<UpgradeManifest<readonly number[]>[]>;
1408
1449
  loadSubgraphs(packageSpec: string): Promise<SubgraphClass$1[]>;
1409
1450
  loadProcessors(packageSpec: string): Promise<ProcessorFactoryBuilder | null>;
1451
+ loadPieces(packageSpec: string): Promise<PackagePieceEntry[]>;
1410
1452
  /**
1411
1453
  * Load document models from multiple packages.
1412
1454
  * Continues loading even if some packages fail.
@@ -1729,6 +1771,21 @@ type DocumentOperationsFilterInput = {
1729
1771
  readonly timestampFrom?: InputMaybe<Scalars["String"]["input"]>;
1730
1772
  readonly timestampTo?: InputMaybe<Scalars["String"]["input"]>;
1731
1773
  };
1774
+ type DocumentRelationship = {
1775
+ readonly createdAt: Scalars["DateTime"]["output"];
1776
+ readonly metadata?: Maybe<Scalars["JSONObject"]["output"]>;
1777
+ readonly relationshipType: Scalars["String"]["output"];
1778
+ readonly sourceId: Scalars["String"]["output"];
1779
+ readonly targetId: Scalars["String"]["output"];
1780
+ readonly updatedAt: Scalars["DateTime"]["output"];
1781
+ };
1782
+ type DocumentRelationshipResultPage = {
1783
+ readonly cursor?: Maybe<Scalars["String"]["output"]>;
1784
+ readonly hasNextPage: Scalars["Boolean"]["output"];
1785
+ readonly hasPreviousPage: Scalars["Boolean"]["output"];
1786
+ readonly items: ReadonlyArray<DocumentRelationship>;
1787
+ readonly totalCount: Scalars["Int"]["output"];
1788
+ };
1732
1789
  type DocumentWithChildren = {
1733
1790
  readonly childIds: ReadonlyArray<Scalars["String"]["output"]>;
1734
1791
  readonly document: PhDocument;
@@ -1736,7 +1793,12 @@ type DocumentWithChildren = {
1736
1793
  type JobChangeEvent = {
1737
1794
  readonly error?: Maybe<Scalars["String"]["output"]>;
1738
1795
  readonly jobId: Scalars["String"]["output"];
1739
- readonly result: Scalars["JSONObject"]["output"];
1796
+ /**
1797
+ * What the job produced, once it has produced anything. Nullable for the same
1798
+ * reason as `JobInfo.result`: a job that has not written yet has produced
1799
+ * nothing, and an empty object would claim otherwise.
1800
+ */
1801
+ readonly result?: Maybe<Scalars["JSONObject"]["output"]>;
1740
1802
  readonly status: Scalars["String"]["output"];
1741
1803
  };
1742
1804
  type JobInfo = {
@@ -1791,9 +1853,11 @@ type Mutation = {
1791
1853
  readonly renameDocument: PhDocument;
1792
1854
  readonly setPreferredEditor: PhDocument;
1793
1855
  readonly touchChannel: TouchChannelResult;
1856
+ readonly updateRelationship: PhDocument;
1794
1857
  };
1795
1858
  type MutationAddRelationshipArgs = {
1796
1859
  branch?: InputMaybe<Scalars["String"]["input"]>;
1860
+ metadata?: InputMaybe<Scalars["JSONObject"]["input"]>;
1797
1861
  relationshipType: Scalars["String"]["input"];
1798
1862
  sourceIdentifier: Scalars["String"]["input"];
1799
1863
  targetIdentifier: Scalars["String"]["input"];
@@ -1863,6 +1927,13 @@ type MutationSetPreferredEditorArgs = {
1863
1927
  type MutationTouchChannelArgs = {
1864
1928
  input: TouchChannelInput;
1865
1929
  };
1930
+ type MutationUpdateRelationshipArgs = {
1931
+ branch?: InputMaybe<Scalars["String"]["input"]>;
1932
+ metadata?: InputMaybe<Scalars["JSONObject"]["input"]>;
1933
+ relationshipType: Scalars["String"]["input"];
1934
+ sourceIdentifier: Scalars["String"]["input"];
1935
+ targetIdentifier: Scalars["String"]["input"];
1936
+ };
1866
1937
  type OperationContext = {
1867
1938
  readonly branch: Scalars["String"]["output"];
1868
1939
  readonly documentId: Scalars["String"]["output"];
@@ -1944,9 +2015,11 @@ declare enum PropagationMode {
1944
2015
  }
1945
2016
  type Query = {
1946
2017
  readonly document?: Maybe<DocumentWithChildren>;
2018
+ readonly documentIncomingRelationshipEdges: DocumentRelationshipResultPage;
1947
2019
  readonly documentIncomingRelationships: PhDocumentResultPage;
1948
2020
  readonly documentModels: DocumentModelResultPage;
1949
2021
  readonly documentOperations: ReactorOperationResultPage;
2022
+ readonly documentOutgoingRelationshipEdges: DocumentRelationshipResultPage;
1950
2023
  readonly documentOutgoingRelationships: PhDocumentResultPage;
1951
2024
  /**
1952
2025
  * Predicts whether the calling subject would be admitted to execute each of a
@@ -1995,6 +2068,12 @@ type QueryDocumentArgs = {
1995
2068
  identifier: Scalars["String"]["input"];
1996
2069
  view?: InputMaybe<ViewFilterInput>;
1997
2070
  };
2071
+ type QueryDocumentIncomingRelationshipEdgesArgs = {
2072
+ paging?: InputMaybe<PagingInput>;
2073
+ relationshipType?: InputMaybe<Scalars["String"]["input"]>;
2074
+ targetIdentifier: Scalars["String"]["input"];
2075
+ view?: InputMaybe<ViewFilterInput>;
2076
+ };
1998
2077
  type QueryDocumentIncomingRelationshipsArgs = {
1999
2078
  paging?: InputMaybe<PagingInput>;
2000
2079
  relationshipType: Scalars["String"]["input"];
@@ -2009,6 +2088,12 @@ type QueryDocumentOperationsArgs = {
2009
2088
  filter: OperationsFilterInput;
2010
2089
  paging?: InputMaybe<PagingInput>;
2011
2090
  };
2091
+ type QueryDocumentOutgoingRelationshipEdgesArgs = {
2092
+ paging?: InputMaybe<PagingInput>;
2093
+ relationshipType?: InputMaybe<Scalars["String"]["input"]>;
2094
+ sourceIdentifier: Scalars["String"]["input"];
2095
+ view?: InputMaybe<ViewFilterInput>;
2096
+ };
2012
2097
  type QueryDocumentOutgoingRelationshipsArgs = {
2013
2098
  paging?: InputMaybe<PagingInput>;
2014
2099
  relationshipType: Scalars["String"]["input"];
@@ -2161,6 +2246,14 @@ type PhDocumentFieldsFragment = {
2161
2246
  readonly revision: number;
2162
2247
  }>;
2163
2248
  };
2249
+ type DocumentRelationshipFieldsFragment = {
2250
+ readonly sourceId: string;
2251
+ readonly targetId: string;
2252
+ readonly relationshipType: string;
2253
+ readonly metadata?: NonNullable<unknown> | null | undefined;
2254
+ readonly createdAt: string | Date;
2255
+ readonly updatedAt: string | Date;
2256
+ };
2164
2257
  type GetDocumentModelsQueryVariables = Exact<{
2165
2258
  namespace?: InputMaybe<Scalars["String"]["input"]>;
2166
2259
  paging?: InputMaybe<PagingInput>;
@@ -2316,6 +2409,50 @@ type GetDocumentIncomingRelationshipsQuery = {
2316
2409
  }>;
2317
2410
  };
2318
2411
  };
2412
+ type GetDocumentOutgoingRelationshipEdgesQueryVariables = Exact<{
2413
+ sourceIdentifier: Scalars["String"]["input"];
2414
+ relationshipType?: InputMaybe<Scalars["String"]["input"]>;
2415
+ view?: InputMaybe<ViewFilterInput>;
2416
+ paging?: InputMaybe<PagingInput>;
2417
+ }>;
2418
+ type GetDocumentOutgoingRelationshipEdgesQuery = {
2419
+ readonly documentOutgoingRelationshipEdges: {
2420
+ readonly totalCount: number;
2421
+ readonly hasNextPage: boolean;
2422
+ readonly hasPreviousPage: boolean;
2423
+ readonly cursor?: string | null | undefined;
2424
+ readonly items: ReadonlyArray<{
2425
+ readonly sourceId: string;
2426
+ readonly targetId: string;
2427
+ readonly relationshipType: string;
2428
+ readonly metadata?: NonNullable<unknown> | null | undefined;
2429
+ readonly createdAt: string | Date;
2430
+ readonly updatedAt: string | Date;
2431
+ }>;
2432
+ };
2433
+ };
2434
+ type GetDocumentIncomingRelationshipEdgesQueryVariables = Exact<{
2435
+ targetIdentifier: Scalars["String"]["input"];
2436
+ relationshipType?: InputMaybe<Scalars["String"]["input"]>;
2437
+ view?: InputMaybe<ViewFilterInput>;
2438
+ paging?: InputMaybe<PagingInput>;
2439
+ }>;
2440
+ type GetDocumentIncomingRelationshipEdgesQuery = {
2441
+ readonly documentIncomingRelationshipEdges: {
2442
+ readonly totalCount: number;
2443
+ readonly hasNextPage: boolean;
2444
+ readonly hasPreviousPage: boolean;
2445
+ readonly cursor?: string | null | undefined;
2446
+ readonly items: ReadonlyArray<{
2447
+ readonly sourceId: string;
2448
+ readonly targetId: string;
2449
+ readonly relationshipType: string;
2450
+ readonly metadata?: NonNullable<unknown> | null | undefined;
2451
+ readonly createdAt: string | Date;
2452
+ readonly updatedAt: string | Date;
2453
+ }>;
2454
+ };
2455
+ };
2319
2456
  type FindDocumentsQueryVariables = Exact<{
2320
2457
  search?: InputMaybe<SearchFilterInput>;
2321
2458
  view?: InputMaybe<ViewFilterInput>;
@@ -2531,6 +2668,7 @@ type AddRelationshipMutationVariables = Exact<{
2531
2668
  sourceIdentifier: Scalars["String"]["input"];
2532
2669
  targetIdentifier: Scalars["String"]["input"];
2533
2670
  relationshipType: Scalars["String"]["input"];
2671
+ metadata?: InputMaybe<Scalars["JSONObject"]["input"]>;
2534
2672
  branch?: InputMaybe<Scalars["String"]["input"]>;
2535
2673
  }>;
2536
2674
  type AddRelationshipMutation = {
@@ -2548,6 +2686,28 @@ type AddRelationshipMutation = {
2548
2686
  }>;
2549
2687
  };
2550
2688
  };
2689
+ type UpdateRelationshipMutationVariables = Exact<{
2690
+ sourceIdentifier: Scalars["String"]["input"];
2691
+ targetIdentifier: Scalars["String"]["input"];
2692
+ relationshipType: Scalars["String"]["input"];
2693
+ metadata?: InputMaybe<Scalars["JSONObject"]["input"]>;
2694
+ branch?: InputMaybe<Scalars["String"]["input"]>;
2695
+ }>;
2696
+ type UpdateRelationshipMutation = {
2697
+ readonly updateRelationship: {
2698
+ readonly id: string;
2699
+ readonly slug?: string | null | undefined;
2700
+ readonly name: string;
2701
+ readonly documentType: string;
2702
+ readonly state: NonNullable<unknown>;
2703
+ readonly createdAtUtcIso: string | Date;
2704
+ readonly lastModifiedAtUtcIso: string | Date;
2705
+ readonly revisionsList: ReadonlyArray<{
2706
+ readonly scope: string;
2707
+ readonly revision: number;
2708
+ }>;
2709
+ };
2710
+ };
2551
2711
  type RemoveRelationshipMutationVariables = Exact<{
2552
2712
  sourceIdentifier: Scalars["String"]["input"];
2553
2713
  targetIdentifier: Scalars["String"]["input"];
@@ -2653,7 +2813,7 @@ type JobChangesSubscription = {
2653
2813
  readonly jobChanges: {
2654
2814
  readonly jobId: string;
2655
2815
  readonly status: string;
2656
- readonly result: NonNullable<unknown>;
2816
+ readonly result?: NonNullable<unknown> | null | undefined;
2657
2817
  readonly error?: string | null | undefined;
2658
2818
  };
2659
2819
  };
@@ -2784,6 +2944,8 @@ type ResolversTypes = ResolversObject<{
2784
2944
  DocumentModelGlobalState: ResolverTypeWrapper<DocumentModelGlobalState>;
2785
2945
  DocumentModelResultPage: ResolverTypeWrapper<DocumentModelResultPage>;
2786
2946
  DocumentOperationsFilterInput: DocumentOperationsFilterInput;
2947
+ DocumentRelationship: ResolverTypeWrapper<DocumentRelationship>;
2948
+ DocumentRelationshipResultPage: ResolverTypeWrapper<DocumentRelationshipResultPage>;
2787
2949
  DocumentWithChildren: ResolverTypeWrapper<DocumentWithChildren>;
2788
2950
  Int: ResolverTypeWrapper<Scalars["Int"]["output"]>;
2789
2951
  JSONObject: ResolverTypeWrapper<Scalars["JSONObject"]["output"]>;
@@ -2844,6 +3006,8 @@ type ResolversParentTypes = ResolversObject<{
2844
3006
  DocumentModelGlobalState: DocumentModelGlobalState;
2845
3007
  DocumentModelResultPage: DocumentModelResultPage;
2846
3008
  DocumentOperationsFilterInput: DocumentOperationsFilterInput;
3009
+ DocumentRelationship: DocumentRelationship;
3010
+ DocumentRelationshipResultPage: DocumentRelationshipResultPage;
2847
3011
  DocumentWithChildren: DocumentWithChildren;
2848
3012
  Int: Scalars["Int"]["output"];
2849
3013
  JSONObject: Scalars["JSONObject"]["output"];
@@ -2943,6 +3107,21 @@ type DocumentModelResultPageResolvers<ContextType = Context, ParentType extends
2943
3107
  items?: Resolver<ReadonlyArray<ResolversTypes["DocumentModelGlobalState"]>, ParentType, ContextType>;
2944
3108
  totalCount?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
2945
3109
  }>;
3110
+ type DocumentRelationshipResolvers<ContextType = Context, ParentType extends ResolversParentTypes["DocumentRelationship"] = ResolversParentTypes["DocumentRelationship"]> = ResolversObject<{
3111
+ createdAt?: Resolver<ResolversTypes["DateTime"], ParentType, ContextType>;
3112
+ metadata?: Resolver<Maybe<ResolversTypes["JSONObject"]>, ParentType, ContextType>;
3113
+ relationshipType?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
3114
+ sourceId?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
3115
+ targetId?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
3116
+ updatedAt?: Resolver<ResolversTypes["DateTime"], ParentType, ContextType>;
3117
+ }>;
3118
+ type DocumentRelationshipResultPageResolvers<ContextType = Context, ParentType extends ResolversParentTypes["DocumentRelationshipResultPage"] = ResolversParentTypes["DocumentRelationshipResultPage"]> = ResolversObject<{
3119
+ cursor?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
3120
+ hasNextPage?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
3121
+ hasPreviousPage?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
3122
+ items?: Resolver<ReadonlyArray<ResolversTypes["DocumentRelationship"]>, ParentType, ContextType>;
3123
+ totalCount?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
3124
+ }>;
2946
3125
  type DocumentWithChildrenResolvers<ContextType = Context, ParentType extends ResolversParentTypes["DocumentWithChildren"] = ResolversParentTypes["DocumentWithChildren"]> = ResolversObject<{
2947
3126
  childIds?: Resolver<ReadonlyArray<ResolversTypes["String"]>, ParentType, ContextType>;
2948
3127
  document?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType>;
@@ -2953,7 +3132,7 @@ interface JsonObjectScalarConfig extends GraphQLScalarTypeConfig<ResolversTypes[
2953
3132
  type JobChangeEventResolvers<ContextType = Context, ParentType extends ResolversParentTypes["JobChangeEvent"] = ResolversParentTypes["JobChangeEvent"]> = ResolversObject<{
2954
3133
  error?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
2955
3134
  jobId?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
2956
- result?: Resolver<ResolversTypes["JSONObject"], ParentType, ContextType>;
3135
+ result?: Resolver<Maybe<ResolversTypes["JSONObject"]>, ParentType, ContextType>;
2957
3136
  status?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
2958
3137
  }>;
2959
3138
  type JobInfoResolvers<ContextType = Context, ParentType extends ResolversParentTypes["JobInfo"] = ResolversParentTypes["JobInfo"]> = ResolversObject<{
@@ -2984,6 +3163,7 @@ type MutationResolvers<ContextType = Context, ParentType extends ResolversParent
2984
3163
  renameDocument?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType, RequireFields<MutationRenameDocumentArgs, "documentIdentifier" | "name">>;
2985
3164
  setPreferredEditor?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType, RequireFields<MutationSetPreferredEditorArgs, "documentIdentifier">>;
2986
3165
  touchChannel?: Resolver<ResolversTypes["TouchChannelResult"], ParentType, ContextType, RequireFields<MutationTouchChannelArgs, "input">>;
3166
+ updateRelationship?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType, RequireFields<MutationUpdateRelationshipArgs, "relationshipType" | "sourceIdentifier" | "targetIdentifier">>;
2987
3167
  }>;
2988
3168
  type OperationContextResolvers<ContextType = Context, ParentType extends ResolversParentTypes["OperationContext"] = ResolversParentTypes["OperationContext"]> = ResolversObject<{
2989
3169
  branch?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
@@ -3023,9 +3203,11 @@ type PollSyncEnvelopesResultResolvers<ContextType = Context, ParentType extends
3023
3203
  }>;
3024
3204
  type QueryResolvers<ContextType = Context, ParentType extends ResolversParentTypes["Query"] = ResolversParentTypes["Query"]> = ResolversObject<{
3025
3205
  document?: Resolver<Maybe<ResolversTypes["DocumentWithChildren"]>, ParentType, ContextType, RequireFields<QueryDocumentArgs, "identifier">>;
3206
+ documentIncomingRelationshipEdges?: Resolver<ResolversTypes["DocumentRelationshipResultPage"], ParentType, ContextType, RequireFields<QueryDocumentIncomingRelationshipEdgesArgs, "targetIdentifier">>;
3026
3207
  documentIncomingRelationships?: Resolver<ResolversTypes["PHDocumentResultPage"], ParentType, ContextType, RequireFields<QueryDocumentIncomingRelationshipsArgs, "relationshipType" | "targetIdentifier">>;
3027
3208
  documentModels?: Resolver<ResolversTypes["DocumentModelResultPage"], ParentType, ContextType, Partial<QueryDocumentModelsArgs>>;
3028
3209
  documentOperations?: Resolver<ResolversTypes["ReactorOperationResultPage"], ParentType, ContextType, RequireFields<QueryDocumentOperationsArgs, "filter">>;
3210
+ documentOutgoingRelationshipEdges?: Resolver<ResolversTypes["DocumentRelationshipResultPage"], ParentType, ContextType, RequireFields<QueryDocumentOutgoingRelationshipEdgesArgs, "sourceIdentifier">>;
3029
3211
  documentOutgoingRelationships?: Resolver<ResolversTypes["PHDocumentResultPage"], ParentType, ContextType, RequireFields<QueryDocumentOutgoingRelationshipsArgs, "relationshipType" | "sourceIdentifier">>;
3030
3212
  evaluateActions?: Resolver<ResolversTypes["ActionEvaluations"], ParentType, ContextType, RequireFields<QueryEvaluateActionsArgs, "candidates" | "documentIdentifier">>;
3031
3213
  findDocuments?: Resolver<ResolversTypes["PHDocumentResultPage"], ParentType, ContextType, Partial<QueryFindDocumentsArgs>>;
@@ -3100,6 +3282,8 @@ type Resolvers<ContextType = Context> = ResolversObject<{
3100
3282
  DocumentChangeEvent?: DocumentChangeEventResolvers<ContextType>;
3101
3283
  DocumentModelGlobalState?: DocumentModelGlobalStateResolvers<ContextType>;
3102
3284
  DocumentModelResultPage?: DocumentModelResultPageResolvers<ContextType>;
3285
+ DocumentRelationship?: DocumentRelationshipResolvers<ContextType>;
3286
+ DocumentRelationshipResultPage?: DocumentRelationshipResultPageResolvers<ContextType>;
3103
3287
  DocumentWithChildren?: DocumentWithChildrenResolvers<ContextType>;
3104
3288
  JSONObject?: GraphQLScalarType;
3105
3289
  JobChangeEvent?: JobChangeEventResolvers<ContextType>;
@@ -3151,11 +3335,14 @@ declare function SyncEnvelopeInputSchema(): z$1.ZodObject<Properties<SyncEnvelop
3151
3335
  declare function TouchChannelInputSchema(): z$1.ZodObject<Properties<TouchChannelInput>>;
3152
3336
  declare function ViewFilterInputSchema(): z$1.ZodObject<Properties<ViewFilterInput>>;
3153
3337
  declare const PhDocumentFieldsFragmentDoc: DocumentNode;
3338
+ declare const DocumentRelationshipFieldsFragmentDoc: DocumentNode;
3154
3339
  declare const GetDocumentModelsDocument: DocumentNode;
3155
3340
  declare const GetDocumentDocument: DocumentNode;
3156
3341
  declare const GetDocumentWithOperationsDocument: DocumentNode;
3157
3342
  declare const GetDocumentOutgoingRelationshipsDocument: DocumentNode;
3158
3343
  declare const GetDocumentIncomingRelationshipsDocument: DocumentNode;
3344
+ declare const GetDocumentOutgoingRelationshipEdgesDocument: DocumentNode;
3345
+ declare const GetDocumentIncomingRelationshipEdgesDocument: DocumentNode;
3159
3346
  declare const FindDocumentsDocument: DocumentNode;
3160
3347
  declare const GetDocumentOperationsDocument: DocumentNode;
3161
3348
  declare const GetJobStatusDocument: DocumentNode;
@@ -3167,6 +3354,7 @@ declare const MutateDocumentAsyncDocument: DocumentNode;
3167
3354
  declare const RenameDocumentDocument: DocumentNode;
3168
3355
  declare const SetPreferredEditorDocument: DocumentNode;
3169
3356
  declare const AddRelationshipDocument: DocumentNode;
3357
+ declare const UpdateRelationshipDocument: DocumentNode;
3170
3358
  declare const RemoveRelationshipDocument: DocumentNode;
3171
3359
  declare const MoveRelationshipDocument: DocumentNode;
3172
3360
  declare const DeleteDocumentDocument: DocumentNode;
@@ -3183,6 +3371,8 @@ declare function getSdk<C>(requester: Requester<C>): {
3183
3371
  GetDocumentWithOperations(variables: GetDocumentWithOperationsQueryVariables, options?: C): Promise<GetDocumentWithOperationsQuery>;
3184
3372
  GetDocumentOutgoingRelationships(variables: GetDocumentOutgoingRelationshipsQueryVariables, options?: C): Promise<GetDocumentOutgoingRelationshipsQuery>;
3185
3373
  GetDocumentIncomingRelationships(variables: GetDocumentIncomingRelationshipsQueryVariables, options?: C): Promise<GetDocumentIncomingRelationshipsQuery>;
3374
+ GetDocumentOutgoingRelationshipEdges(variables: GetDocumentOutgoingRelationshipEdgesQueryVariables, options?: C): Promise<GetDocumentOutgoingRelationshipEdgesQuery>;
3375
+ GetDocumentIncomingRelationshipEdges(variables: GetDocumentIncomingRelationshipEdgesQueryVariables, options?: C): Promise<GetDocumentIncomingRelationshipEdgesQuery>;
3186
3376
  FindDocuments(variables?: FindDocumentsQueryVariables, options?: C): Promise<FindDocumentsQuery>;
3187
3377
  GetDocumentOperations(variables: GetDocumentOperationsQueryVariables, options?: C): Promise<GetDocumentOperationsQuery>;
3188
3378
  GetJobStatus(variables: GetJobStatusQueryVariables, options?: C): Promise<GetJobStatusQuery>;
@@ -3194,6 +3384,7 @@ declare function getSdk<C>(requester: Requester<C>): {
3194
3384
  RenameDocument(variables: RenameDocumentMutationVariables, options?: C): Promise<RenameDocumentMutation>;
3195
3385
  SetPreferredEditor(variables: SetPreferredEditorMutationVariables, options?: C): Promise<SetPreferredEditorMutation>;
3196
3386
  AddRelationship(variables: AddRelationshipMutationVariables, options?: C): Promise<AddRelationshipMutation>;
3387
+ UpdateRelationship(variables: UpdateRelationshipMutationVariables, options?: C): Promise<UpdateRelationshipMutation>;
3197
3388
  RemoveRelationship(variables: RemoveRelationshipMutationVariables, options?: C): Promise<RemoveRelationshipMutation>;
3198
3389
  MoveRelationship(variables: MoveRelationshipMutationVariables, options?: C): Promise<MoveRelationshipMutation>;
3199
3390
  DeleteDocument(variables: DeleteDocumentMutationVariables, options?: C): Promise<DeleteDocumentMutation>;
@@ -3237,6 +3428,18 @@ declare function createReactorGraphQLClient(url: string, fetchImpl?: FetchLike,
3237
3428
  view?: InputMaybe<ViewFilterInput>;
3238
3429
  paging?: InputMaybe<PagingInput>;
3239
3430
  }>, options?: {} | undefined): Promise<GetDocumentIncomingRelationshipsQuery>;
3431
+ GetDocumentOutgoingRelationshipEdges(variables: Exact<{
3432
+ sourceIdentifier: Scalars["String"]["input"];
3433
+ relationshipType?: InputMaybe<Scalars["String"]["input"]>;
3434
+ view?: InputMaybe<ViewFilterInput>;
3435
+ paging?: InputMaybe<PagingInput>;
3436
+ }>, options?: {} | undefined): Promise<GetDocumentOutgoingRelationshipEdgesQuery>;
3437
+ GetDocumentIncomingRelationshipEdges(variables: Exact<{
3438
+ targetIdentifier: Scalars["String"]["input"];
3439
+ relationshipType?: InputMaybe<Scalars["String"]["input"]>;
3440
+ view?: InputMaybe<ViewFilterInput>;
3441
+ paging?: InputMaybe<PagingInput>;
3442
+ }>, options?: {} | undefined): Promise<GetDocumentIncomingRelationshipEdgesQuery>;
3240
3443
  FindDocuments(variables?: Exact<{
3241
3444
  search?: InputMaybe<SearchFilterInput>;
3242
3445
  view?: InputMaybe<ViewFilterInput>;
@@ -3286,8 +3489,16 @@ declare function createReactorGraphQLClient(url: string, fetchImpl?: FetchLike,
3286
3489
  sourceIdentifier: Scalars["String"]["input"];
3287
3490
  targetIdentifier: Scalars["String"]["input"];
3288
3491
  relationshipType: Scalars["String"]["input"];
3492
+ metadata?: InputMaybe<Scalars["JSONObject"]["input"]>;
3289
3493
  branch?: InputMaybe<Scalars["String"]["input"]>;
3290
3494
  }>, options?: {} | undefined): Promise<AddRelationshipMutation>;
3495
+ UpdateRelationship(variables: Exact<{
3496
+ sourceIdentifier: Scalars["String"]["input"];
3497
+ targetIdentifier: Scalars["String"]["input"];
3498
+ relationshipType: Scalars["String"]["input"];
3499
+ metadata?: InputMaybe<Scalars["JSONObject"]["input"]>;
3500
+ branch?: InputMaybe<Scalars["String"]["input"]>;
3501
+ }>, options?: {} | undefined): Promise<UpdateRelationshipMutation>;
3291
3502
  RemoveRelationship(variables: Exact<{
3292
3503
  sourceIdentifier: Scalars["String"]["input"];
3293
3504
  targetIdentifier: Scalars["String"]["input"];
@@ -3341,6 +3552,27 @@ declare class ReactorSubgraph extends BaseSubgraph {
3341
3552
  * Delegates to base assertCanExecuteOperation for each action.
3342
3553
  */
3343
3554
  private assertCanExecuteOperations;
3555
+ /**
3556
+ * Drops the relationship edges whose far-end document the caller cannot read.
3557
+ *
3558
+ * An edge names two documents, so returning it discloses the far end's id. The
3559
+ * document-shaped relationship queries already withhold far-end documents the
3560
+ * caller cannot read; the edge-shaped queries have to withhold the same ones,
3561
+ * or they become a way to enumerate around that check. Supreme admins read
3562
+ * everything, so the per-edge check is skipped for them.
3563
+ *
3564
+ * The counts describe what is served; the cursor describes where to resume in
3565
+ * the underlying unfiltered stream, so it is left as it came. A filtered page
3566
+ * is therefore often shorter than the requested limit, and that is the stream
3567
+ * continuing rather than a sign it ended.
3568
+ */
3569
+ private filterRelationshipEdges;
3570
+ /**
3571
+ * Restates a page's totalCount over the items that survived a read filter, so
3572
+ * that the difference between the two cannot be read off as a count of what
3573
+ * the caller was not allowed to see.
3574
+ */
3575
+ private servedPage;
3344
3576
  typeDefs: graphql.DocumentNode;
3345
3577
  resolvers: Resolvers;
3346
3578
  onSetup(): Promise<void>;
@@ -3377,6 +3609,51 @@ declare function buildGraphqlOperation(operation: Operation): GqlOperation$1;
3377
3609
  declare function buildGraphQlDocument(doc: PHDocument): GqlDocument$1;
3378
3610
  declare function buildGraphQlDriveDocument(doc: DocumentDriveDocument): GqlDriveDocument$1;
3379
3611
  //#endregion
3612
+ //#region src/graphql/errors.d.ts
3613
+ /** Caller (authenticated or anonymous) lacks permission for the document. */
3614
+ declare class ForbiddenError extends GraphQLError {
3615
+ constructor(detail?: string);
3616
+ }
3617
+ /** Anonymous caller on an action that requires logging in. */
3618
+ declare class AuthenticationRequiredError extends GraphQLError {
3619
+ constructor(detail?: string);
3620
+ }
3621
+ /**
3622
+ * The reactor holds no decision model, so no authorization preflight can be
3623
+ * answered.
3624
+ *
3625
+ * Distinct from a denial, and deliberately so: a caller that cannot get a
3626
+ * prediction should render its controls as it did before it asked and let the
3627
+ * submit path refuse. Reading this as a denial would disable every control on a
3628
+ * switchboard running without authEnforcement. The code is what a client
3629
+ * branches on, since the message is not a contract.
3630
+ */
3631
+ declare class AuthEvaluationUnsupportedError extends GraphQLError {
3632
+ constructor();
3633
+ }
3634
+ /**
3635
+ * A stored operation cannot be represented in the schema, so it is reported
3636
+ * rather than served.
3637
+ *
3638
+ * The schema declares an action's id, type, timestamp, input and scope
3639
+ * non-null; an operation written before the API rejected an action without an
3640
+ * id violates that. Left to the executor, the missing value nullifies the
3641
+ * action, which bubbles up through the non-null chain until it nullifies the
3642
+ * envelope's whole operation list, and the caller receives a partial response
3643
+ * beside "Cannot return null for non-nullable field Action.id" - which says
3644
+ * nothing about which operation, and which a sync client can only read as a
3645
+ * permanent GraphQL rejection, stopping its poll timer for good.
3646
+ *
3647
+ * Thrown instead, with a code that says the failure is worth polling through:
3648
+ * the document holding the operation needs repairing, but the channel serves
3649
+ * every other document, and a peer that stopped polling would stop receiving
3650
+ * those too. The code is what a client branches on, since the message is not a
3651
+ * contract.
3652
+ */
3653
+ declare class MalformedStoredOperationError extends GraphQLError {
3654
+ constructor(detail: string);
3655
+ }
3656
+ //#endregion
3380
3657
  //#region src/packages/import-loader.d.ts
3381
3658
  /**
3382
3659
  * This class is used to load packages using the import keyword.
@@ -3384,10 +3661,13 @@ declare function buildGraphQlDriveDocument(doc: DocumentDriveDocument): GqlDrive
3384
3661
  declare class ImportPackageLoader implements IPackageLoader {
3385
3662
  private readonly logger;
3386
3663
  readonly name = "ImportPackageLoader";
3664
+ private readonly reportedUnbuilt;
3387
3665
  loadDocumentModels(identifier: string): Promise<DocumentModelModule[]>;
3388
3666
  loadUpgradeManifests(identifier: string): Promise<UpgradeManifest<readonly number[]>[]>;
3389
3667
  loadSubgraphs(identifier: string): Promise<SubgraphClass$1[]>;
3390
3668
  loadProcessors(identifier: string): Promise<ProcessorFactoryBuilder | null>;
3669
+ loadPieces(identifier: string): Promise<PackagePieceEntry[]>;
3670
+ private reportUnbuilt;
3391
3671
  }
3392
3672
  //#endregion
3393
3673
  //#region src/packages/package-manager.d.ts
@@ -3403,7 +3683,7 @@ declare class ImportPackageLoader implements IPackageLoader {
3403
3683
  * either bare (`'pkg'`) or as a subpath (`'pkg/subgraphs'`), since loaders
3404
3684
  * import sub-entries like `${pkg}/subgraphs` / `${pkg}/document-models`.
3405
3685
  */
3406
- declare function isExpectedLoaderMiss(error: unknown, pkg: string): boolean;
3686
+ declare function isExpectedLoaderMiss(error: unknown, pkg: string, subPath?: string): boolean;
3407
3687
  declare function getUniqueDocumentModels(...documentModels: readonly (readonly DocumentModelModule<any>[])[]): DocumentModelModule[];
3408
3688
  declare function getUniqueUpgradeManifests(...upgradeManifests: readonly (readonly UpgradeManifest<readonly number[]>[])[]): UpgradeManifest<readonly number[]>[];
3409
3689
  declare class PackageManager implements IPackageManager {
@@ -3414,6 +3694,7 @@ declare class PackageManager implements IPackageManager {
3414
3694
  private upgradeManifestsMap;
3415
3695
  private subgraphsMap;
3416
3696
  private processorMap;
3697
+ private piecesMap;
3417
3698
  private configWatcher;
3418
3699
  private debouncedUpdateCallbacks;
3419
3700
  private eventEmitter;
@@ -3426,10 +3707,12 @@ declare class PackageManager implements IPackageManager {
3426
3707
  private loadUpgradeManifests;
3427
3708
  private loadSubgraphs;
3428
3709
  private loadProcessors;
3710
+ private loadPieces;
3429
3711
  private maybeWarnAllLoadersFailed;
3430
3712
  private updateDocumentModelsForPackage;
3431
3713
  private updateSubgraphsForPackage;
3432
3714
  private updateProcessorsForPackage;
3715
+ private updatePiecesForPackage;
3433
3716
  /** Debounced per key so repeated subscribePackages calls reuse one timer. */
3434
3717
  private getDebouncedUpdateCallback;
3435
3718
  private subscribePackages;
@@ -3439,6 +3722,9 @@ declare class PackageManager implements IPackageManager {
3439
3722
  private updatePackagesMap;
3440
3723
  private updateSubgraphsMap;
3441
3724
  private updateProcessorsMap;
3725
+ private updatePiecesMap;
3726
+ /** The pieces every loaded package ships, keyed by the package. */
3727
+ getPieces(): Map<string, PackagePieceEntry[]>;
3442
3728
  /**
3443
3729
  * Remove `pkg` from all package maps and emit the change events, tearing
3444
3730
  * down everything the package registered (subgraphs, processors, document
@@ -3449,6 +3735,7 @@ declare class PackageManager implements IPackageManager {
3449
3735
  onDocumentModelsChange(handler: (documentModels: Record<string, DocumentModelModule[]>) => void): void;
3450
3736
  onSubgraphsChange(handler: (subgraphs: Map<string, SubgraphClass$1[]>) => void): void;
3451
3737
  onProcessorsChange(handler: (processors: Map<string, Processor$1>) => void): void;
3738
+ onPiecesChange(handler: (pieces: Map<string, PackagePieceEntry[]>) => void): void;
3452
3739
  }
3453
3740
  //#endregion
3454
3741
  //#region src/services/renown-config.d.ts
@@ -3629,5 +3916,5 @@ interface DocumentModelSchemaOptions {
3629
3916
  */
3630
3917
  declare function generateDocumentModelSchema(documentModel: DocumentModelGlobalState$1, options?: DocumentModelSchemaOptions): DocumentNode;
3631
3918
  //#endregion
3632
- export { ADMIN_USERS, API, Action, ActionCandidateInput, ActionCandidateInputSchema, ActionContext, ActionContextInput, ActionContextInputSchema, ActionContextResolvers, ActionEvaluation, ActionEvaluationResolvers, ActionEvaluations, ActionEvaluationsResolvers, ActionInput, ActionInputSchema, ActionResolvers, AdapterRouteHandle, AddRelationshipDocument, AddRelationshipMutation, AddRelationshipMutationVariables, AnalyticsSubgraph, AttachmentAccessRequest, AttachmentAccessResult, AttachmentAccessService, type AttachmentReferenceProjectionCapability, AuthConfig, AuthContext, AuthDecision, AuthDecisionSchema, AuthFetchMiddleware, AuthService, AuthSubgraph, type AuthorizationConfig, AuthorizationPolicy, AuthorizedDocumentHandle, type AuthorizerResult, BaseSubgraph, CORE_PACKAGE_NAME, type CanonicalDocumentId, CanonicalDocumentIdResolutionError, CanonicalDocumentIdResolver, ChannelMeta, ChannelMetaInput, ChannelMetaInputSchema, ChannelMetaResolvers, ClientInitializerDependencies, ClientInitializerResult, Context, CreateDocumentDocument, CreateDocumentMutation, CreateDocumentMutationVariables, CreateEmptyDocumentDocument, CreateEmptyDocumentMutation, CreateEmptyDocumentMutationVariables, CredentialVerifier, DateTimeScalarConfig, DbClient, DeadLetterInfo, DeadLetterInfoResolvers, DeleteDocumentDocument, DeleteDocumentMutation, DeleteDocumentMutationVariables, DeleteDocumentsDocument, DeleteDocumentsMutation, DeleteDocumentsMutationVariables, DirectiveResolverFn, DocumentChangeContext, DocumentChangeContextResolvers, DocumentChangeEvent, DocumentChangeEventResolvers, DocumentChangeType, DocumentChangeTypeSchema, DocumentChangesDocument, DocumentChangesSubscription, DocumentChangesSubscriptionVariables, DocumentModelGlobalState, DocumentModelGlobalStateResolvers, DocumentModelResultPage, DocumentModelResultPageResolvers, DocumentModelSchemaOptions, DocumentOperationsFilterInput, DocumentOperationsFilterInputSchema, DocumentPermissionConfig, DocumentPermissionDatabase, DocumentPermissionEntry, DocumentPermissionLevel, DocumentPermissionService, DocumentPermissionTable, DocumentProtectionTable, DocumentWithChildren, DocumentWithChildrenResolvers, EvaluateActionsDocument, EvaluateActionsQuery, EvaluateActionsQueryVariables, Exact, ExplorerUrlState, FetchHandler, FindDocumentsDocument, FindDocumentsQuery, FindDocumentsQueryVariables, GatewayAdapterType, GatewayContextFactory, GetDocumentDocument, GetDocumentIncomingRelationshipsDocument, GetDocumentIncomingRelationshipsQuery, GetDocumentIncomingRelationshipsQueryVariables, GetDocumentModelsDocument, GetDocumentModelsQuery, GetDocumentModelsQueryVariables, GetDocumentOperationsDocument, GetDocumentOperationsQuery, GetDocumentOperationsQueryVariables, GetDocumentOutgoingRelationshipsDocument, GetDocumentOutgoingRelationshipsQuery, GetDocumentOutgoingRelationshipsQueryVariables, GetDocumentQuery, GetDocumentQueryVariables, GetDocumentWithOperationsDocument, GetDocumentWithOperationsQuery, GetDocumentWithOperationsQueryVariables, GetJobStatusDocument, GetJobStatusQuery, GetJobStatusQueryVariables, GetParentIdsFn, GqlDocument, GqlDriveDocument, GqlOperation, GqlOperationContext, GqlSigner, GqlSignerApp, GqlSignerUser, GraphQLManager, GraphqlManagerFeatureFlags, HttpAdapterSetup, HttpAdapterType, HttpDocumentModelLoader, HttpMethod, HttpPackageLoader, HttpPackageLoaderLogger, HttpPackageLoaderOptions, HttpRouteService, type HttpRouteServiceOptions, IAttachmentAccessService, type IAuthorizationService, IGatewayAdapter, IHttpAdapter, type IHttpScope, type IPackageLoader, type IPackageLoaderOptions, IPackageStorage, IProcessorHostModule, IReactorProcessorHostModule, ISubgraph, type IWebhookEndpoints, type IWebhookScope, type IWebhookStore, ImportPackageLoader, InMemoryPackageStorage, Incremental, InputMaybe, InstallPackageResult, InstalledPackageInfo, InvalidNamespaceError, IsTypeOfResolverFn, JobChangeEvent, JobChangeEventResolvers, JobChangesDocument, JobChangesSubscription, JobChangesSubscriptionVariables, JobInfo, JobInfoResolvers, JsonObjectScalarConfig, MakeEmpty, MakeMaybe, MakeOptional, Maybe, MemoryWebhookStore, MoveRelationshipDocument, MoveRelationshipMutation, MoveRelationshipMutationVariables, MoveRelationshipResult, MoveRelationshipResultResolvers, MutateDocumentAsyncDocument, MutateDocumentAsyncMutation, MutateDocumentAsyncMutationVariables, MutateDocumentDocument, MutateDocumentMutation, MutateDocumentMutationVariables, Mutation, MutationAddRelationshipArgs, MutationCreateDocumentArgs, MutationCreateEmptyDocumentArgs, MutationDeleteDocumentArgs, MutationDeleteDocumentsArgs, MutationExecuteArgs, MutationExecuteAsyncArgs, MutationMoveRelationshipArgs, MutationMutateDocumentArgs, MutationMutateDocumentAsyncArgs, MutationPushSyncEnvelopesArgs, MutationRemoveRelationshipArgs, MutationRenameDocumentArgs, MutationResolvers, MutationSetPreferredEditorArgs, MutationTouchChannelArgs, NextResolverFn, NodeRouteOptions, type NodeRouteSpec, OperationContext, OperationContextInput, OperationContextInputSchema, OperationContextResolvers, OperationInput, OperationInputSchema, OperationUserPermissionEntry, OperationUserPermissionTable, OperationWithContext, OperationWithContextInput, OperationWithContextInputSchema, OperationWithContextResolvers, OperationsFilterInput, OperationsFilterInputSchema, PACKAGE_ROUTE_SEGMENT, PGLITE_UTC_PARSERS, PackageManagementService, PackageManagementServiceOptions, PackageManager, PackagesSubgraph, type PackagesSubgraphArgs, PagingInput, PagingInputSchema, type ParsedDriveUrl, PgliteFactory, PhDocument, PhDocumentFieldsFragment, PhDocumentFieldsFragmentDoc, PhDocumentOperationsArgs, PhDocumentResolvers, PhDocumentResultPage, PhDocumentResultPageResolvers, PollSyncEnvelopesDocument, PollSyncEnvelopesQuery, PollSyncEnvelopesQueryVariables, PollSyncEnvelopesResult, PollSyncEnvelopesResultResolvers, Processor, ProcessorDriveFactory, ProcessorFactoryBuilder, PropagationMode, PropagationModeSchema, PushSyncEnvelopesDocument, PushSyncEnvelopesMutation, PushSyncEnvelopesMutationVariables, Query, QueryDocumentArgs, QueryDocumentIncomingRelationshipsArgs, QueryDocumentModelsArgs, QueryDocumentOperationsArgs, QueryDocumentOutgoingRelationshipsArgs, QueryEvaluateActionsArgs, QueryFindDocumentsArgs, QueryJobStatusArgs, QueryPollSyncEnvelopesArgs, QueryResolvers, ReactorModule, ReactorOperation, ReactorOperationResolvers, ReactorOperationResultPage, ReactorOperationResultPageResolvers, ReactorSigner, ReactorSignerApp, ReactorSignerAppInput, ReactorSignerAppInputSchema, ReactorSignerAppResolvers, ReactorSignerInput, ReactorSignerInputSchema, ReactorSignerResolvers, ReactorSignerUser, ReactorSignerUserInput, ReactorSignerUserInputSchema, ReactorSignerUserResolvers, ReactorSubgraph, ReadinessGate, RelationalWebhookStore, RemoteCursor, RemoteCursorInput, RemoteCursorInputSchema, RemoteCursorResolvers, RemoteFilterInput, RemoteFilterInputSchema, RemoveRelationshipDocument, RemoveRelationshipMutation, RemoveRelationshipMutationVariables, RenameDocumentDocument, RenameDocumentMutation, RenameDocumentMutationVariables, RenownConfig, RenownCredentialVerifierConfig, RenownSource, Requester, RequireFields, ResolvedRenownConfig, Resolver, ResolverFn, ResolverTypeWrapper, ResolverWithResolve, Resolvers, ResolversObject, ResolversParentTypes, ResolversTypes, Revision, RevisionResolvers, type RouteActor, type RouteAuth, type RouteAuthorizer, type RouteBody, type RouteContext, type RouteHandler, type RouteMethod, type RouteOptions, type RouteSpec, type RouteTransport, type RouteUser, Scalars, type ScopedRouteHandle, Sdk, SearchFilterInput, SearchFilterInputSchema, SetPreferredEditorDocument, SetPreferredEditorMutation, SetPreferredEditorMutationVariables, SubgraphArgs, SubgraphClass, SubgraphDefinition, Subscription, SubscriptionDocumentChangesArgs, SubscriptionJobChangesArgs, SubscriptionObject, SubscriptionResolveFn, SubscriptionResolver, SubscriptionResolverObject, SubscriptionResolvers, SubscriptionSubscribeFn, SubscriptionSubscriberObject, SyncEnvelope, SyncEnvelopeInput, SyncEnvelopeInputSchema, SyncEnvelopeResolvers, SyncEnvelopeType, SyncEnvelopeTypeSchema, SystemSubgraph, TlsOptions, TouchChannelDocument, TouchChannelInput, TouchChannelInputSchema, TouchChannelMutation, TouchChannelMutationVariables, TouchChannelResult, TouchChannelResultResolvers, TypeResolveFn, User, ViewFilterInput, ViewFilterInputSchema, WEBHOOK_SEGMENT, type WebhookEndpointInfo, type WebhookEndpointRow, type WebhookField, type WebhookHashAlgorithm, type WebhookPolicy, type WebhookReply, type WebhookRequest, type WebhookScheme, WebhookService, type WebhookSignatureEncoding, type WebhookSpec, type WebhookVerification, WithIndex, WsContextFactory, WsDisposer, assertAuthRequiredForDocumentPermissions, assertCredentialVerifierForSource, assertHostMountPath, assertRequireAuthenticatedCallerAllowed, assertSkipCredentialVerificationAllowed, buildGraphQlDocument, buildGraphQlDriveDocument, buildGraphqlOperation, buildGraphqlOperations, buildSubgraphSchemaModule, createAuthFetchMiddleware, createCanonicalDocumentIdResolver, createGatewayAdapter, createHttpAdapter, createMergedSchema, createReactorGraphQLClient, createRenownCredentialVerifier, createSchema, decodeExplorerUrlState, definedNonNullAnySchema, driveIdFromUrl, extractSubgraphsFromModule, generateDocumentModelSchema, getAuthContext, getDbClient, getDocumentModelSchemaName, getDocumentModelTypeDefs, getExplorerPrefix, getGitHash, getGitUrl, getSdk, getUniqueDocumentModels, getUniqueUpgradeManifests, getVersion, initAnalyticsStoreSql, initializeAndStartAPI, isDefinedNonNullAny, isExpectedLoaderMiss, isSubgraphClass, namespacePath, namespaceSegments, newWebhookToken, parseDriveUrl, parseWebhookBody, redactHeaders, renderGraphqlPlayground, resolvePackageName, resolveRenownConfig, verifyWebhook };
3919
+ export { ADMIN_USERS, API, Action, ActionCandidateInput, ActionCandidateInputSchema, ActionContext, ActionContextInput, ActionContextInputSchema, ActionContextResolvers, ActionEvaluation, ActionEvaluationResolvers, ActionEvaluations, ActionEvaluationsResolvers, ActionInput, ActionInputSchema, ActionResolvers, AdapterRouteHandle, AddRelationshipDocument, AddRelationshipMutation, AddRelationshipMutationVariables, AnalyticsSubgraph, AttachmentAccessRequest, AttachmentAccessResult, AttachmentAccessService, type AttachmentReferenceProjectionCapability, AuthConfig, AuthContext, AuthDecision, AuthDecisionSchema, AuthEvaluationUnsupportedError, AuthFetchMiddleware, AuthService, AuthSubgraph, AuthenticationRequiredError, type AuthorizationConfig, AuthorizationPolicy, AuthorizedDocumentHandle, type AuthorizerResult, BaseSubgraph, CORE_PACKAGE_NAME, type CanonicalDocumentId, CanonicalDocumentIdResolutionError, CanonicalDocumentIdResolver, ChannelMeta, ChannelMetaInput, ChannelMetaInputSchema, ChannelMetaResolvers, ClientInitializerDependencies, ClientInitializerResult, Context, CreateDocumentDocument, CreateDocumentMutation, CreateDocumentMutationVariables, CreateEmptyDocumentDocument, CreateEmptyDocumentMutation, CreateEmptyDocumentMutationVariables, CredentialVerifier, DateTimeScalarConfig, DbClient, DeadLetterInfo, DeadLetterInfoResolvers, DeleteDocumentDocument, DeleteDocumentMutation, DeleteDocumentMutationVariables, DeleteDocumentsDocument, DeleteDocumentsMutation, DeleteDocumentsMutationVariables, DirectiveResolverFn, DocumentChangeContext, DocumentChangeContextResolvers, DocumentChangeEvent, DocumentChangeEventResolvers, DocumentChangeType, DocumentChangeTypeSchema, DocumentChangesDocument, DocumentChangesSubscription, DocumentChangesSubscriptionVariables, DocumentModelGlobalState, DocumentModelGlobalStateResolvers, DocumentModelResultPage, DocumentModelResultPageResolvers, DocumentModelSchemaOptions, DocumentOperationsFilterInput, DocumentOperationsFilterInputSchema, DocumentPermissionConfig, DocumentPermissionDatabase, DocumentPermissionEntry, DocumentPermissionLevel, DocumentPermissionService, DocumentPermissionTable, DocumentProtectionTable, DocumentRelationship, DocumentRelationshipFieldsFragment, DocumentRelationshipFieldsFragmentDoc, DocumentRelationshipResolvers, DocumentRelationshipResultPage, DocumentRelationshipResultPageResolvers, DocumentWithChildren, DocumentWithChildrenResolvers, EvaluateActionsDocument, EvaluateActionsQuery, EvaluateActionsQueryVariables, Exact, ExplorerUrlState, FetchHandler, FindDocumentsDocument, FindDocumentsQuery, FindDocumentsQueryVariables, ForbiddenError, GatewayAdapterType, GatewayContextFactory, GetDocumentDocument, GetDocumentIncomingRelationshipEdgesDocument, GetDocumentIncomingRelationshipEdgesQuery, GetDocumentIncomingRelationshipEdgesQueryVariables, GetDocumentIncomingRelationshipsDocument, GetDocumentIncomingRelationshipsQuery, GetDocumentIncomingRelationshipsQueryVariables, GetDocumentModelsDocument, GetDocumentModelsQuery, GetDocumentModelsQueryVariables, GetDocumentOperationsDocument, GetDocumentOperationsQuery, GetDocumentOperationsQueryVariables, GetDocumentOutgoingRelationshipEdgesDocument, GetDocumentOutgoingRelationshipEdgesQuery, GetDocumentOutgoingRelationshipEdgesQueryVariables, GetDocumentOutgoingRelationshipsDocument, GetDocumentOutgoingRelationshipsQuery, GetDocumentOutgoingRelationshipsQueryVariables, GetDocumentQuery, GetDocumentQueryVariables, GetDocumentWithOperationsDocument, GetDocumentWithOperationsQuery, GetDocumentWithOperationsQueryVariables, GetJobStatusDocument, GetJobStatusQuery, GetJobStatusQueryVariables, GetParentIdsFn, GqlDocument, GqlDriveDocument, GqlOperation, GqlOperationContext, GqlSigner, GqlSignerApp, GqlSignerUser, GraphQLManager, GraphqlManagerFeatureFlags, HttpAdapterSetup, HttpAdapterType, HttpDocumentModelLoader, HttpMethod, HttpPackageLoader, HttpPackageLoaderLogger, HttpPackageLoaderOptions, HttpRouteService, type HttpRouteServiceOptions, IAttachmentAccessService, type IAuthorizationService, IGatewayAdapter, IHttpAdapter, type IHttpScope, type IPackageLoader, type IPackageLoaderOptions, type IPackagePieceSource, IPackageStorage, IProcessorHostModule, IReactorProcessorHostModule, ISubgraph, type IWebhookEndpoints, type IWebhookScope, type IWebhookStore, ImportPackageLoader, InMemoryPackageStorage, Incremental, InputMaybe, InstallPackageResult, InstalledPackageInfo, InvalidNamespaceError, IsTypeOfResolverFn, JobChangeEvent, JobChangeEventResolvers, JobChangesDocument, JobChangesSubscription, JobChangesSubscriptionVariables, JobInfo, JobInfoResolvers, JsonObjectScalarConfig, MakeEmpty, MakeMaybe, MakeOptional, MalformedStoredOperationError, Maybe, MemoryWebhookStore, MoveRelationshipDocument, MoveRelationshipMutation, MoveRelationshipMutationVariables, MoveRelationshipResult, MoveRelationshipResultResolvers, MutateDocumentAsyncDocument, MutateDocumentAsyncMutation, MutateDocumentAsyncMutationVariables, MutateDocumentDocument, MutateDocumentMutation, MutateDocumentMutationVariables, Mutation, MutationAddRelationshipArgs, MutationCreateDocumentArgs, MutationCreateEmptyDocumentArgs, MutationDeleteDocumentArgs, MutationDeleteDocumentsArgs, MutationExecuteArgs, MutationExecuteAsyncArgs, MutationMoveRelationshipArgs, MutationMutateDocumentArgs, MutationMutateDocumentAsyncArgs, MutationPushSyncEnvelopesArgs, MutationRemoveRelationshipArgs, MutationRenameDocumentArgs, MutationResolvers, MutationSetPreferredEditorArgs, MutationTouchChannelArgs, MutationUpdateRelationshipArgs, NextResolverFn, NodeRouteOptions, type NodeRouteSpec, OperationContext, OperationContextInput, OperationContextInputSchema, OperationContextResolvers, OperationInput, OperationInputSchema, OperationUserPermissionEntry, OperationUserPermissionTable, OperationWithContext, OperationWithContextInput, OperationWithContextInputSchema, OperationWithContextResolvers, OperationsFilterInput, OperationsFilterInputSchema, PACKAGE_ROUTE_SEGMENT, PGLITE_UTC_PARSERS, PackageManagementService, PackageManagementServiceOptions, PackageManager, type PackagePiece, type PackagePieceEntry, PackagesSubgraph, type PackagesSubgraphArgs, PagingInput, PagingInputSchema, type ParsedDriveUrl, PgliteFactory, PhDocument, PhDocumentFieldsFragment, PhDocumentFieldsFragmentDoc, PhDocumentOperationsArgs, PhDocumentResolvers, PhDocumentResultPage, PhDocumentResultPageResolvers, PollSyncEnvelopesDocument, PollSyncEnvelopesQuery, PollSyncEnvelopesQueryVariables, PollSyncEnvelopesResult, PollSyncEnvelopesResultResolvers, Processor, ProcessorDriveFactory, ProcessorFactoryBuilder, PropagationMode, PropagationModeSchema, PushSyncEnvelopesDocument, PushSyncEnvelopesMutation, PushSyncEnvelopesMutationVariables, Query, QueryDocumentArgs, QueryDocumentIncomingRelationshipEdgesArgs, QueryDocumentIncomingRelationshipsArgs, QueryDocumentModelsArgs, QueryDocumentOperationsArgs, QueryDocumentOutgoingRelationshipEdgesArgs, QueryDocumentOutgoingRelationshipsArgs, QueryEvaluateActionsArgs, QueryFindDocumentsArgs, QueryJobStatusArgs, QueryPollSyncEnvelopesArgs, QueryResolvers, ReactorModule, ReactorOperation, ReactorOperationResolvers, ReactorOperationResultPage, ReactorOperationResultPageResolvers, ReactorSigner, ReactorSignerApp, ReactorSignerAppInput, ReactorSignerAppInputSchema, ReactorSignerAppResolvers, ReactorSignerInput, ReactorSignerInputSchema, ReactorSignerResolvers, ReactorSignerUser, ReactorSignerUserInput, ReactorSignerUserInputSchema, ReactorSignerUserResolvers, ReactorSubgraph, ReadinessGate, RelationalWebhookStore, RemoteCursor, RemoteCursorInput, RemoteCursorInputSchema, RemoteCursorResolvers, RemoteFilterInput, RemoteFilterInputSchema, RemoveRelationshipDocument, RemoveRelationshipMutation, RemoveRelationshipMutationVariables, RenameDocumentDocument, RenameDocumentMutation, RenameDocumentMutationVariables, RenownConfig, RenownCredentialVerifierConfig, RenownSource, Requester, RequireFields, ResolvedRenownConfig, Resolver, ResolverFn, ResolverTypeWrapper, ResolverWithResolve, Resolvers, ResolversObject, ResolversParentTypes, ResolversTypes, Revision, RevisionResolvers, type RouteActor, type RouteAuth, type RouteAuthorizer, type RouteBody, type RouteContext, type RouteHandler, type RouteMethod, type RouteOptions, type RouteSpec, type RouteTransport, type RouteUser, Scalars, type ScopedRouteHandle, Sdk, SearchFilterInput, SearchFilterInputSchema, SetPreferredEditorDocument, SetPreferredEditorMutation, SetPreferredEditorMutationVariables, SubgraphArgs, SubgraphClass, SubgraphDefinition, Subscription, SubscriptionDocumentChangesArgs, SubscriptionJobChangesArgs, SubscriptionObject, SubscriptionResolveFn, SubscriptionResolver, SubscriptionResolverObject, SubscriptionResolvers, SubscriptionSubscribeFn, SubscriptionSubscriberObject, SyncEnvelope, SyncEnvelopeInput, SyncEnvelopeInputSchema, SyncEnvelopeResolvers, SyncEnvelopeType, SyncEnvelopeTypeSchema, SystemSubgraph, TlsOptions, TouchChannelDocument, TouchChannelInput, TouchChannelInputSchema, TouchChannelMutation, TouchChannelMutationVariables, TouchChannelResult, TouchChannelResultResolvers, TypeResolveFn, UpdateRelationshipDocument, UpdateRelationshipMutation, UpdateRelationshipMutationVariables, User, ViewFilterInput, ViewFilterInputSchema, WEBHOOK_SEGMENT, WS_AUTH_CLOSE_REASONS, WS_CLOSE_REASON_AUTHENTICATION_REQUIRED, WS_CLOSE_REASON_BEARER_REJECTED, type WebhookEndpointInfo, type WebhookEndpointRow, type WebhookField, type WebhookHashAlgorithm, type WebhookPolicy, type WebhookReply, type WebhookRequest, type WebhookScheme, WebhookService, type WebhookSignatureEncoding, type WebhookSpec, type WebhookVerification, WithIndex, WsConnectHandler, WsConnection, WsContextFactory, WsDisposer, WsHandlers, assertAuthRequiredForDocumentPermissions, assertCredentialVerifierForSource, assertHostMountPath, assertRequireAuthenticatedCallerAllowed, assertSkipCredentialVerificationAllowed, buildGraphQlDocument, buildGraphQlDriveDocument, buildGraphqlOperation, buildGraphqlOperations, buildSubgraphSchemaModule, createAuthFetchMiddleware, createCanonicalDocumentIdResolver, createGatewayAdapter, createHttpAdapter, createMergedSchema, createReactorGraphQLClient, createRenownCredentialVerifier, createSchema, createWsAuthHandlers, decodeExplorerUrlState, definedNonNullAnySchema, driveIdFromUrl, extractSubgraphsFromModule, generateDocumentModelSchema, getAuthContext, getDbClient, getDocumentModelSchemaName, getDocumentModelTypeDefs, getExplorerPrefix, getGitHash, getGitUrl, getSdk, getUniqueDocumentModels, getUniqueUpgradeManifests, getVersion, initAnalyticsStoreSql, initializeAndStartAPI, isDefinedNonNullAny, isExpectedLoaderMiss, isSubgraphClass, namespacePath, namespaceSegments, newWebhookToken, parseDriveUrl, parseWebhookBody, redactHeaders, renderGraphqlPlayground, resolvePackageName, resolveRenownConfig, verifyWebhook };
3633
3920
  //# sourceMappingURL=index.d.mts.map