@powerhousedao/reactor-api 6.2.3-dev.24 → 6.2.3-dev.26

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 (37) hide show
  1. package/dist/{adapter-gateway-apollo-CxJNBVyD.mjs → adapter-gateway-apollo-B54G_cXT.mjs} +15 -13
  2. package/dist/{adapter-gateway-apollo-CxJNBVyD.mjs.map → adapter-gateway-apollo-B54G_cXT.mjs.map} +1 -1
  3. package/dist/{adapter-gateway-apollo-DowrX6E_.mjs → adapter-gateway-apollo-D2DNlPY0.mjs} +3 -3
  4. package/dist/{adapter-gateway-mercurius-CZVy88Za.mjs → adapter-gateway-mercurius-rbKlwF9m.mjs} +4 -4
  5. package/dist/{adapter-gateway-mercurius-CZVy88Za.mjs.map → adapter-gateway-mercurius-rbKlwF9m.mjs.map} +1 -1
  6. package/dist/{adapter-gateway-stitching-CaZjvRzx.mjs → adapter-gateway-stitching-Dzv10u8D.mjs} +15 -10
  7. package/dist/{adapter-gateway-stitching-CaZjvRzx.mjs.map → adapter-gateway-stitching-Dzv10u8D.mjs.map} +1 -1
  8. package/dist/{adapter-http-express-D4KBmDcQ.mjs → adapter-http-express-CWqziB1p.mjs} +6 -6
  9. package/dist/adapter-http-express-CWqziB1p.mjs.map +1 -0
  10. package/dist/{adapter-http-fastify-U9j7HxQE.mjs → adapter-http-fastify-CYZQ6FFv.mjs} +8 -7
  11. package/dist/adapter-http-fastify-CYZQ6FFv.mjs.map +1 -0
  12. package/dist/index.d.mts +609 -489
  13. package/dist/index.d.mts.map +1 -1
  14. package/dist/index.mjs +467 -235
  15. package/dist/index.mjs.map +1 -1
  16. package/dist/{pieces-eqj2RKgd.mjs → pieces-DMQotfIR.mjs} +27 -8
  17. package/dist/pieces-DMQotfIR.mjs.map +1 -0
  18. package/dist/rolldown-runtime-D7D4PA-g.mjs +15 -0
  19. package/dist/{run-node-handler-Bqn0X6bT.mjs → run-node-handler-CQjyjOuN.mjs} +3 -3
  20. package/dist/{run-node-handler-Bqn0X6bT.mjs.map → run-node-handler-CQjyjOuN.mjs.map} +1 -1
  21. package/dist/src/packages/https-hooks.d.mts +4 -4
  22. package/dist/src/packages/https-hooks.d.mts.map +1 -1
  23. package/dist/src/packages/https-hooks.mjs +2 -2
  24. package/dist/src/packages/https-hooks.mjs.map +1 -1
  25. package/dist/src/packages/vite-loader.d.mts +5 -6
  26. package/dist/src/packages/vite-loader.d.mts.map +1 -1
  27. package/dist/src/packages/vite-loader.mjs +9 -6
  28. package/dist/src/packages/vite-loader.mjs.map +1 -1
  29. package/dist/{types-BXjLvTe3.d.mts → types-D4Qnqo_D.d.mts} +2 -2
  30. package/dist/types-D4Qnqo_D.d.mts.map +1 -0
  31. package/dist/{websocket-DncAB9XK.mjs → websocket-_SH5aBcy.mjs} +3 -3
  32. package/dist/{websocket-DncAB9XK.mjs.map → websocket-_SH5aBcy.mjs.map} +1 -1
  33. package/package.json +16 -16
  34. package/dist/adapter-http-express-D4KBmDcQ.mjs.map +0 -1
  35. package/dist/adapter-http-fastify-U9j7HxQE.mjs.map +0 -1
  36. package/dist/pieces-eqj2RKgd.mjs.map +0 -1
  37. package/dist/types-BXjLvTe3.d.mts.map +0 -1
package/dist/index.d.mts CHANGED
@@ -1,7 +1,6 @@
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-BXjLvTe3.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-D4Qnqo_D.mjs";
2
2
  import { IAnalyticsStore } from "@powerhousedao/analytics-engine-core";
3
3
  import { AnalyticsModel } from "@powerhousedao/analytics-engine-graphql";
4
- import * as graphql from "graphql";
5
4
  import { DocumentNode, GraphQLError, GraphQLResolveInfo, GraphQLScalarType, GraphQLScalarTypeConfig, GraphQLSchema } from "graphql";
6
5
  import { AttachmentRef, IDocumentModelLoader, IDocumentModelRegistry, IDriveClient, IReactorClient, IReactorProcessorHostModuleBase, IRelationalDb, ISyncManager, InProcessReactorClientModule, ParsedDriveUrl, ProcessorFactoryBuilder as ProcessorFactoryBuilder$1, SyncScopeGate, driveIdFromUrl, parseDriveUrl } from "@powerhousedao/reactor";
7
6
  import { ILogger } from "document-model";
@@ -22,7 +21,6 @@ import { Context as Context$1, GqlDocument as GqlDocument$1, GqlDriveDocument as
22
21
  import { IncomingHttpHeaders } from "http";
23
22
  import { Pool } from "pg";
24
23
  import { PHReactorRenown } from "@powerhousedao/shared/clis";
25
-
26
24
  //#region src/utils/db.d.ts
27
25
  /**
28
26
  * Permission levels for documents:
@@ -30,23 +28,23 @@ import { PHReactorRenown } from "@powerhousedao/shared/clis";
30
28
  * - WRITE: Can push updates and modify the document
31
29
  * - ADMIN: Can manage document permissions and settings
32
30
  */
33
- type DocumentPermissionLevel = "READ" | "WRITE" | "ADMIN";
31
+ export type DocumentPermissionLevel = "READ" | "WRITE" | "ADMIN";
34
32
  /**
35
33
  * Database schema for document permissions
36
34
  */
37
- interface DocumentProtectionTable {
35
+ export interface DocumentProtectionTable {
38
36
  documentId: string;
39
37
  protected: boolean;
40
38
  ownerAddress: string | null;
41
39
  createdAt: Date;
42
40
  updatedAt: Date;
43
41
  }
44
- interface DocumentPermissionDatabase {
42
+ export interface DocumentPermissionDatabase {
45
43
  DocumentPermission: DocumentPermissionTable;
46
44
  OperationUserPermission: OperationUserPermissionTable;
47
45
  DocumentProtection: DocumentProtectionTable;
48
46
  }
49
- interface DocumentPermissionTable {
47
+ export interface DocumentPermissionTable {
50
48
  id: Generated<number>;
51
49
  documentId: string;
52
50
  userAddress: string;
@@ -55,7 +53,7 @@ interface DocumentPermissionTable {
55
53
  createdAt: Date;
56
54
  updatedAt: Date;
57
55
  }
58
- interface OperationUserPermissionTable {
56
+ export interface OperationUserPermissionTable {
59
57
  id: Generated<number>;
60
58
  documentId: string;
61
59
  operationType: string;
@@ -64,7 +62,7 @@ interface OperationUserPermissionTable {
64
62
  createdAt: Date;
65
63
  }
66
64
  type Db = Kysely<any>;
67
- declare const PGLITE_UTC_PARSERS: {
65
+ export declare const PGLITE_UTC_PARSERS: {
68
66
  readonly 1114: (value: string) => Date;
69
67
  };
70
68
  /**
@@ -73,17 +71,17 @@ declare const PGLITE_UTC_PARSERS: {
73
71
  * data dir was created with an older PG major. Wire-compatible with the
74
72
  * current PGLite class for the surface knex-pglite uses.
75
73
  */
76
- type PgliteFactory = (connectionString: string | undefined) => PGlite;
77
- interface DbClient {
74
+ export type PgliteFactory = (connectionString: string | undefined) => PGlite;
75
+ export interface DbClient {
78
76
  db: Db;
79
77
  knex: Knex;
80
78
  pglite: PGlite | undefined;
81
79
  }
82
- declare function getDbClient(connectionString?: string | undefined, pgliteFactory?: PgliteFactory): DbClient;
83
- declare const initAnalyticsStoreSql: string[];
80
+ export declare function getDbClient(connectionString?: string | undefined, pgliteFactory?: PgliteFactory): DbClient;
81
+ export declare const initAnalyticsStoreSql: string[];
84
82
  //#endregion
85
83
  //#region src/services/document-permission.service.d.ts
86
- interface DocumentPermissionEntry {
84
+ export interface DocumentPermissionEntry {
87
85
  documentId: string;
88
86
  userAddress: string;
89
87
  permission: DocumentPermissionLevel;
@@ -91,7 +89,7 @@ interface DocumentPermissionEntry {
91
89
  createdAt: Date;
92
90
  updatedAt: Date;
93
91
  }
94
- interface OperationUserPermissionEntry {
92
+ export interface OperationUserPermissionEntry {
95
93
  documentId: string;
96
94
  operationType: string;
97
95
  userAddress: string;
@@ -102,11 +100,11 @@ interface OperationUserPermissionEntry {
102
100
  * Function type for getting parent document IDs
103
101
  * This is injected to avoid circular dependencies with the reactor client
104
102
  */
105
- type GetParentIdsFn = (documentId: string) => Promise<string[]>;
103
+ export type GetParentIdsFn = (documentId: string) => Promise<string[]>;
106
104
  /**
107
105
  * Configuration for the DocumentPermissionService
108
106
  */
109
- interface DocumentPermissionConfig {
107
+ export interface DocumentPermissionConfig {
110
108
  defaultProtection: boolean;
111
109
  }
112
110
  /**
@@ -120,7 +118,7 @@ interface DocumentPermissionConfig {
120
118
  * Operation permissions:
121
119
  * - Users can be granted permission to execute specific operations
122
120
  */
123
- declare class DocumentPermissionService {
121
+ export declare class DocumentPermissionService {
124
122
  private readonly db;
125
123
  readonly config: DocumentPermissionConfig;
126
124
  constructor(db: Kysely<DocumentPermissionDatabase>, config?: DocumentPermissionConfig);
@@ -230,7 +228,7 @@ type CanonicalDocumentId = string & {
230
228
  * always safe for the data fetch: the canonical id when resolved, or the raw
231
229
  * identifier when the check was skipped for a policy-wide caller.
232
230
  */
233
- declare class AuthorizedDocumentHandle {
231
+ export declare class AuthorizedDocumentHandle {
234
232
  readonly fetchIdentifier: string;
235
233
  readonly isResolved: boolean;
236
234
  private constructor();
@@ -239,12 +237,12 @@ declare class AuthorizedDocumentHandle {
239
237
  /** The verified canonical id; throws when resolution was skipped. */
240
238
  canonicalId(): CanonicalDocumentId;
241
239
  }
242
- declare const AuthorizationPolicy: {
240
+ export declare const AuthorizationPolicy: {
243
241
  readonly OPEN: "OPEN";
244
242
  readonly ADMIN_ONLY: "ADMIN_ONLY";
245
243
  readonly DOCUMENT_PERMISSIONS: "DOCUMENT_PERMISSIONS";
246
244
  };
247
- type AuthorizationPolicy = (typeof AuthorizationPolicy)[keyof typeof AuthorizationPolicy];
245
+ export type AuthorizationPolicy = (typeof AuthorizationPolicy)[keyof typeof AuthorizationPolicy];
248
246
  interface AuthorizationConfig {
249
247
  admins: string[];
250
248
  defaultProtection: boolean;
@@ -288,32 +286,32 @@ interface IAuthorizationService {
288
286
  }
289
287
  //#endregion
290
288
  //#region src/graphql/gateway/types.d.ts
291
- type TlsOptions = {
289
+ export type TlsOptions = {
292
290
  keyPath: string;
293
291
  certPath: string;
294
292
  } | {
295
293
  cert: Buffer | string;
296
294
  key: Buffer | string;
297
295
  } | true;
298
- type GatewayContextFactory<TContext = unknown> = (request: Request) => Promise<TContext>;
296
+ export type GatewayContextFactory<TContext = unknown> = (request: Request) => Promise<TContext>;
299
297
  /** 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> = {
298
+ export type WsConnection = object;
299
+ export type WsContextFactory<TContext = unknown> = (connectionParams: Record<string, unknown>, connection: WsConnection) => Promise<TContext>;
300
+ export type WsConnectHandler = (connectionParams: Record<string, unknown>, connection: WsConnection) => Promise<boolean>;
301
+ export type WsHandlers<TContext = unknown> = {
304
302
  onConnect: WsConnectHandler;
305
303
  context: WsContextFactory<TContext>;
306
304
  };
307
305
  /** No authenticated caller resolved, and REQUIRE_AUTHENTICATED_CALLER wants one. */
308
- declare const WS_CLOSE_REASON_AUTHENTICATION_REQUIRED = "authentication-required";
306
+ export declare const WS_CLOSE_REASON_AUTHENTICATION_REQUIRED = "authentication-required";
309
307
  /** A bearer was sent and could not be verified. */
310
- declare const WS_CLOSE_REASON_BEARER_REJECTED = "bearer-rejected";
308
+ export declare const WS_CLOSE_REASON_BEARER_REJECTED = "bearer-rejected";
311
309
  /** 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"];
313
- type WsDisposer = {
310
+ export declare const WS_AUTH_CLOSE_REASONS: readonly ["authentication-required", "bearer-rejected"];
311
+ export type WsDisposer = {
314
312
  dispose: () => void | Promise<void>;
315
313
  };
316
- type FetchHandler = (request: Request) => Promise<Response>;
314
+ export type FetchHandler = (request: Request) => Promise<Response>;
317
315
  /**
318
316
  * Handle to a route registered directly on the adapter. Packages hot-reload,
319
317
  * so every registration is reversible; disposing a route that is already gone
@@ -329,7 +327,7 @@ type FetchHandler = (request: Request) => Promise<Response>;
329
327
  * which also carries the public URL the route answers on — at this layer there
330
328
  * is no namespace to build one from and no knowledge of the host's origin.
331
329
  */
332
- interface AdapterRouteHandle {
330
+ export interface AdapterRouteHandle {
333
331
  dispose(): void;
334
332
  }
335
333
  /**
@@ -338,7 +336,7 @@ interface AdapterRouteHandle {
338
336
  * federation adapters treat it as a service to call over HTTP, while the
339
337
  * stitching adapter merges its typeDefs and resolvers in-process.
340
338
  */
341
- type SubgraphDefinition = {
339
+ export type SubgraphDefinition = {
342
340
  name: string;
343
341
  typeDefs: DocumentNode;
344
342
  url: string;
@@ -351,7 +349,7 @@ type SubgraphDefinition = {
351
349
  */
352
350
  resolvers?: Record<string, unknown>;
353
351
  };
354
- interface IGatewayAdapter<TContext = unknown> {
352
+ export interface IGatewayAdapter<TContext = unknown> {
355
353
  /** One-time startup. */
356
354
  start(httpServer: http.Server): Promise<void>;
357
355
  /**
@@ -381,8 +379,8 @@ interface IGatewayAdapter<TContext = unknown> {
381
379
  * Methods a node route may bind. OPTIONS is excluded: the framework's CORS
382
380
  * plugin owns preflight, and a duplicate registration conflicts at startup.
383
381
  */
384
- type HttpMethod = "DELETE" | "GET" | "HEAD" | "PATCH" | "POST" | "PUT";
385
- interface NodeRouteOptions {
382
+ export type HttpMethod = "DELETE" | "GET" | "HEAD" | "PATCH" | "POST" | "PUT";
383
+ export interface NodeRouteOptions {
386
384
  /** Serve sub-paths too, not just an exact path match. */
387
385
  prefix?: boolean;
388
386
  /**
@@ -398,7 +396,7 @@ interface NodeRouteOptions {
398
396
  */
399
397
  rawBody?: boolean;
400
398
  }
401
- interface IHttpAdapter {
399
+ export interface IHttpAdapter {
402
400
  /** Set up CORS and body-parser equivalent middleware. */
403
401
  setupMiddleware(config: {
404
402
  corsOptions?: CorsOptions;
@@ -413,7 +411,8 @@ interface IHttpAdapter {
413
411
  * replaces the previous one (last write wins).
414
412
  */
415
413
  mount(path: string, handler: FetchHandler, options?: {
416
- prefix?: boolean; /** @deprecated Misleading name: this always meant *prefix*, not exact. */
414
+ prefix?: boolean;
415
+ /** @deprecated Misleading name: this always meant *prefix*, not exact. */
417
416
  exact?: boolean;
418
417
  }): AdapterRouteHandle;
419
418
  /**
@@ -423,9 +422,10 @@ interface IHttpAdapter {
423
422
  getRoute(path: string, handler: (request: Request) => Response | Promise<Response>): AdapterRouteHandle;
424
423
  /**
425
424
  * Start listening on the given port. Returns the underlying http.Server
426
- * so callers can attach WebSocket servers.
425
+ * so callers can attach WebSocket servers. Without `host` it binds the
426
+ * wildcard address.
427
427
  */
428
- listen(port: number, tls?: TlsOptions): Promise<http.Server>;
428
+ listen(port: number, tls?: TlsOptions, host?: string): Promise<http.Server>;
429
429
  /**
430
430
  * Mount a raw Connect/Express-compatible middleware function (e.g. Vite dev
431
431
  * server middleware). The implementation is adapter-specific; for Express this
@@ -454,12 +454,12 @@ interface IHttpAdapter {
454
454
  }
455
455
  //#endregion
456
456
  //#region src/services/auth.service.d.ts
457
- type CredentialVerifier = (params: {
457
+ export type CredentialVerifier = (params: {
458
458
  address: string;
459
459
  chainId: number;
460
460
  appId: string;
461
461
  }) => Promise<boolean>;
462
- interface AuthConfig {
462
+ export interface AuthConfig {
463
463
  /**
464
464
  * Whether the authorization policy enforces anything: it selects `ADMIN_ONLY`
465
465
  * over `OPEN`, and it is what `AuthContext.auth_enabled` reports to callers
@@ -492,13 +492,13 @@ interface AuthConfig {
492
492
  * `@powerhousedao/shared/processors` as `RouteUser`, so a route handler and a
493
493
  * resolver agree on it without either package redeclaring it.
494
494
  */
495
- type User = RouteUser$1;
496
- interface AuthContext {
495
+ export type User = RouteUser$1;
496
+ export interface AuthContext {
497
497
  user?: User;
498
498
  admins: string[];
499
499
  auth_enabled: boolean;
500
500
  }
501
- declare class AuthService {
501
+ export declare class AuthService {
502
502
  private readonly config;
503
503
  private readonly credentialCache;
504
504
  constructor(config: AuthConfig);
@@ -577,9 +577,9 @@ interface IWebhookStore {
577
577
  seen(token: string, key: string, ttlSeconds: number): Promise<boolean>;
578
578
  }
579
579
  /** Opaque and unguessable: the URL is a bearer capability held by a third party. */
580
- declare function newWebhookToken(): string;
580
+ export declare function newWebhookToken(): string;
581
581
  /** Relational implementation, over the reactor's own database. */
582
- declare class RelationalWebhookStore implements IWebhookStore {
582
+ export declare class RelationalWebhookStore implements IWebhookStore {
583
583
  #private;
584
584
  private readonly relationalDb;
585
585
  constructor(relationalDb: IRelationalDb$1);
@@ -591,7 +591,7 @@ declare class RelationalWebhookStore implements IWebhookStore {
591
591
  seen(token: string, key: string, ttlSeconds: number): Promise<boolean>;
592
592
  }
593
593
  /** In-memory store, for hosts with no relational database and for tests. */
594
- declare class MemoryWebhookStore implements IWebhookStore {
594
+ export declare class MemoryWebhookStore implements IWebhookStore {
595
595
  #private;
596
596
  init(): Promise<void>;
597
597
  ensure(namespace: string, endpoint: string, ownerKey: string): Promise<WebhookEndpointRow>;
@@ -603,7 +603,7 @@ declare class MemoryWebhookStore implements IWebhookStore {
603
603
  //#endregion
604
604
  //#region src/http/webhook-service.d.ts
605
605
  /** The flat, token-addressed path family. */
606
- declare const WEBHOOK_SEGMENT = "webhooks";
606
+ export declare const WEBHOOK_SEGMENT = "webhooks";
607
607
  interface WebhookServiceOptions {
608
608
  store: IWebhookStore;
609
609
  basePath?: string;
@@ -612,13 +612,9 @@ interface WebhookServiceOptions {
612
612
  }
613
613
  /** One host route for `/webhooks/:token`, dispatching by token. The flat path leaks
614
614
  * neither package nor document; the namespace lives in the token record, which is also what stops one package's token reaching another's handler. */
615
- declare class WebhookService {
615
+ export declare class WebhookService {
616
616
  #private;
617
- constructor({
618
- store,
619
- basePath,
620
- publicUrl
621
- }: WebhookServiceOptions);
617
+ constructor({ store, basePath, publicUrl }: WebhookServiceOptions);
622
618
  /** The scope the endpoint family serves from, handed over once the route service exists;
623
619
  * separate from the constructor only because that service takes this one as an option. */
624
620
  attach(scope: IHttpScope): void;
@@ -637,9 +633,9 @@ declare class WebhookService {
637
633
  //#endregion
638
634
  //#region src/http/route-service.d.ts
639
635
  /** The segment package routes live under, inside the host's base path. */
640
- declare const PACKAGE_ROUTE_SEGMENT = "api";
636
+ export declare const PACKAGE_ROUTE_SEGMENT = "api";
641
637
  /** The namespace core's own subgraphs and services register under. */
642
- declare const CORE_PACKAGE_NAME = "@powerhousedao/reactor-api";
638
+ export declare const CORE_PACKAGE_NAME = "@powerhousedao/reactor-api";
643
639
  interface HttpRouteServiceOptions {
644
640
  httpAdapter: IHttpAdapter;
645
641
  /** Absent on a host with no webhook store; `scope.webhooks` then refuses. */
@@ -656,16 +652,9 @@ interface HttpRouteServiceOptions {
656
652
  }
657
653
  /** Owns the URL space packages serve from, handing each a scope bound to its own namespace. The prefix nests inside
658
654
  * the host's base path (`<basePath>/api`), so core collisions are prevented by URL shape, not a reserved-name list. */
659
- declare class HttpRouteService {
655
+ export declare class HttpRouteService {
660
656
  #private;
661
- constructor({
662
- httpAdapter,
663
- basePath,
664
- authService,
665
- webhooks,
666
- publicUrl,
667
- trustProxy
668
- }: HttpRouteServiceOptions);
657
+ constructor({ httpAdapter, basePath, authService, webhooks, publicUrl, trustProxy }: HttpRouteServiceOptions);
669
658
  /** The absolute path packages are mounted under. */
670
659
  get prefix(): string;
671
660
  /** The scope for a package; idempotent per name, so a reload cannot accumulate namespaces. Throws when two packages
@@ -683,18 +672,18 @@ declare class HttpRouteService {
683
672
  }
684
673
  //#endregion
685
674
  //#region src/http/namespace.d.ts
686
- declare class InvalidNamespaceError extends Error {}
675
+ export declare class InvalidNamespaceError extends Error {}
687
676
  /**
688
677
  * Turns a package name into the path segments it occupies.
689
678
  * `@powerhousedao/workflow` → ["@powerhousedao", "workflow"]
690
679
  * `document-model` → ["document-model"]
691
680
  */
692
- declare function namespaceSegments(packageName: string): string[];
681
+ export declare function namespaceSegments(packageName: string): string[];
693
682
  /**
694
683
  * The path a package's routes hang off, relative to the package prefix.
695
684
  * Scoped names occupy two segments — the addressing unpkg and jsdelivr use.
696
685
  */
697
- declare function namespacePath(packageName: string): string;
686
+ export declare function namespacePath(packageName: string): string;
698
687
  /**
699
688
  * Resolves the npm name a package is routed under from the key the package
700
689
  * manager holds it by. That key is the specifier as configured, which is not
@@ -707,7 +696,7 @@ declare function namespacePath(packageName: string): string;
707
696
  * Deriving a URL segment straight from the key would give a developer's home
708
697
  * directory a route namespace, so the path form is resolved rather than slugged.
709
698
  */
710
- declare function resolvePackageName(key: string, readPackageJsonName?: (dir: string) => string | undefined): string;
699
+ export declare function resolvePackageName(key: string, readPackageJsonName?: (dir: string) => string | undefined): string;
711
700
  /**
712
701
  * A mount path the host named for one of its own route groups.
713
702
  *
@@ -722,7 +711,7 @@ declare function resolvePackageName(key: string, readPackageJsonName?: (dir: str
722
711
  * routes unpredictable relative to each other. Returns the normalized path,
723
712
  * with a leading and no trailing slash.
724
713
  */
725
- declare function assertHostMountPath(path: string): string;
714
+ export declare function assertHostMountPath(path: string): string;
726
715
  //#endregion
727
716
  //#region src/http/webhook-verify.d.ts
728
717
  type VerifyResult = {
@@ -733,20 +722,20 @@ type VerifyResult = {
733
722
  };
734
723
  /** Verifies a delivery against the configured scheme; `raw` must be the exact bytes
735
724
  * received. The reason is for the log only: callers answer a fixed 401, so a probing sender learns nothing from the body. */
736
- declare function verifyWebhook(options: {
725
+ export declare function verifyWebhook(options: {
737
726
  verification: WebhookVerification;
738
727
  headers: Record<string, string>;
739
728
  raw: Buffer;
740
729
  now?: Date;
741
730
  }): VerifyResult;
742
- declare function redactHeaders(headers: Record<string, string>, extra?: string): Record<string, string>;
731
+ export declare function redactHeaders(headers: Record<string, string>, extra?: string): Record<string, string>;
743
732
  /** JSON and form bodies become objects; anything else stays decoded text, so a verified
744
733
  * XML or CSV payload is still reachable downstream. */
745
- declare function parseWebhookBody(raw: Buffer, contentType?: string): unknown;
734
+ export declare function parseWebhookBody(raw: Buffer, contentType?: string): unknown;
746
735
  //#endregion
747
736
  //#region src/graphql/types.d.ts
748
- type SubgraphClass = typeof BaseSubgraph;
749
- type Context = {
737
+ export type SubgraphClass = typeof BaseSubgraph;
738
+ export type Context = {
750
739
  driveId?: string;
751
740
  document?: PHDocument;
752
741
  headers: IncomingHttpHeaders;
@@ -754,11 +743,12 @@ type Context = {
754
743
  user?: {
755
744
  address: string;
756
745
  chainId: number;
757
- networkId: string; /** The did:key of the app instance that issued this request's token. */
746
+ networkId: string;
747
+ /** The did:key of the app instance that issued this request's token. */
758
748
  appKey: string;
759
749
  };
760
750
  };
761
- type ISubgraph = {
751
+ export type ISubgraph = {
762
752
  name: string;
763
753
  /**
764
754
  * @deprecated The GraphQL manager mounts every subgraph under its own base
@@ -776,7 +766,7 @@ type ISubgraph = {
776
766
  onSetup?: () => Promise<void>;
777
767
  onDisconnect?: () => Promise<void>;
778
768
  };
779
- type SubgraphArgs = {
769
+ export type SubgraphArgs = {
780
770
  reactorClient: IReactorClient;
781
771
  /**
782
772
  * The subgraph's package's slice of the HTTP surface, for serving REST
@@ -803,7 +793,7 @@ type SubgraphArgs = {
803
793
  */
804
794
  path?: string;
805
795
  };
806
- type GqlSigner = {
796
+ export type GqlSigner = {
807
797
  user: {
808
798
  address: string;
809
799
  networkId: string;
@@ -815,19 +805,19 @@ type GqlSigner = {
815
805
  };
816
806
  signatures: string[];
817
807
  };
818
- type GqlOperationContext = {
808
+ export type GqlOperationContext = {
819
809
  signer: GqlSigner | undefined;
820
810
  };
821
- type GqlSignerUser = {
811
+ export type GqlSignerUser = {
822
812
  address: string;
823
813
  networkId: string;
824
814
  chainId: number;
825
815
  };
826
- type GqlSignerApp = {
816
+ export type GqlSignerApp = {
827
817
  name: string;
828
818
  key: string;
829
819
  };
830
- type GqlOperation = {
820
+ export type GqlOperation = {
831
821
  id: string;
832
822
  type: string;
833
823
  index: number;
@@ -838,7 +828,7 @@ type GqlOperation = {
838
828
  error: string | undefined;
839
829
  context: GqlOperationContext;
840
830
  };
841
- type GqlDocument = {
831
+ export type GqlDocument = {
842
832
  __typename?: string;
843
833
  id: string;
844
834
  name: string;
@@ -851,7 +841,7 @@ type GqlDocument = {
851
841
  state: unknown;
852
842
  initialState: unknown;
853
843
  };
854
- type GqlDriveDocument = GqlDocument & {
844
+ export type GqlDriveDocument = GqlDocument & {
855
845
  meta: {
856
846
  preferredEditor?: string;
857
847
  };
@@ -861,7 +851,12 @@ type GqlDriveDocument = GqlDocument & {
861
851
  };
862
852
  //#endregion
863
853
  //#region src/graphql/base-subgraph.d.ts
864
- declare class BaseSubgraph implements ISubgraph$1 {
854
+ /**
855
+ * The subject a request reads as: its address and the app key its token
856
+ * carries. Anonymous is an empty subject, never the host's signer.
857
+ */
858
+ export declare function callerSubject(user: Context["user"]): AuthSubject;
859
+ export declare class BaseSubgraph implements ISubgraph$1 {
865
860
  #private;
866
861
  name: string;
867
862
  path: string;
@@ -913,6 +908,8 @@ declare class BaseSubgraph implements ISubgraph$1 {
913
908
  * carries the same key. Anonymous callers supply neither.
914
909
  */
915
910
  protected viewSubject(ctx: Context): AuthSubject;
911
+ /** Whether a listing would serve the document to the caller; fails closed. */
912
+ protected servesDocument(documentId: string, ctx: Context): Promise<boolean>;
916
913
  /**
917
914
  * Asserts read access, resolving a slug first. Returns a handle whose
918
915
  * `fetchIdentifier` the caller reuses for the data fetch; a denial throws.
@@ -931,16 +928,24 @@ declare class BaseSubgraph implements ISubgraph$1 {
931
928
  }
932
929
  //#endregion
933
930
  //#region src/graphql/analytics-subgraph.d.ts
934
- declare class AnalyticsSubgraph extends BaseSubgraph {
931
+ export declare class AnalyticsSubgraph extends BaseSubgraph {
932
+ #private;
935
933
  analyticsStore: IAnalyticsStore;
936
934
  analyticsModel: AnalyticsModel;
937
935
  name: string;
938
- typeDefs: graphql.DocumentNode;
936
+ typeDefs: import("graphql").DocumentNode;
937
+ /**
938
+ * Every analytics field hangs off `Query.analytics`, so gating it gates them
939
+ * all. Series are aggregates a processor built from many documents and carry
940
+ * no document to decide on, so only a caller with policy-wide read (anyone
941
+ * under OPEN, an admin otherwise) may read them.
942
+ */
939
943
  resolvers: GraphQLResolverMap<Context$1>;
940
944
  constructor(args: SubgraphArgs$1);
941
945
  }
942
- //#endregion
943
- //#region src/graphql/auth/resolvers.d.ts
946
+ declare namespace resolvers_d_exports {
947
+ export { DocumentAccessInfo, DocumentProtectionInfo, OperationPermissionsInfo, OperationUserPermission, canExecuteOperation, documentAccess, documentProtection, grantDocumentPermission, grantOperationPermission, operationPermissions, revokeDocumentPermission, revokeOperationPermission, setDocumentProtection, transferDocumentOwnership, userDocumentPermissions };
948
+ }
944
949
  type DocumentAccessInfo = {
945
950
  documentId: string;
946
951
  permissions: Array<{
@@ -952,6 +957,33 @@ type DocumentAccessInfo = {
952
957
  updatedAt: Date;
953
958
  }>;
954
959
  };
960
+ declare function documentAccess(service: DocumentPermissionService, authorizationService: IAuthorizationService, args: {
961
+ documentId: CanonicalDocumentId;
962
+ }, userAddress: string | undefined): Promise<DocumentAccessInfo>;
963
+ declare function userDocumentPermissions(service: DocumentPermissionService, userAddress: string): Promise<Array<{
964
+ documentId: string;
965
+ userAddress: string;
966
+ permission: DocumentPermissionLevel;
967
+ grantedBy: string;
968
+ createdAt: Date;
969
+ updatedAt: Date;
970
+ }>>;
971
+ declare function grantDocumentPermission(service: DocumentPermissionService, authorizationService: IAuthorizationService, args: {
972
+ documentId: CanonicalDocumentId;
973
+ userAddress: string;
974
+ permission: DocumentPermissionLevel;
975
+ }, grantedByAddress: string | undefined): Promise<{
976
+ documentId: string;
977
+ userAddress: string;
978
+ permission: DocumentPermissionLevel;
979
+ grantedBy: string;
980
+ createdAt: Date;
981
+ updatedAt: Date;
982
+ }>;
983
+ declare function revokeDocumentPermission(service: DocumentPermissionService, authorizationService: IAuthorizationService, args: {
984
+ documentId: CanonicalDocumentId;
985
+ userAddress: string;
986
+ }, revokedByAddress: string | undefined): Promise<boolean>;
955
987
  type OperationUserPermission = {
956
988
  documentId: string;
957
989
  operationType: string;
@@ -964,11 +996,40 @@ type OperationPermissionsInfo = {
964
996
  operationType: string;
965
997
  userPermissions: OperationUserPermission[];
966
998
  };
999
+ declare function operationPermissions(service: DocumentPermissionService, authorizationService: IAuthorizationService, args: {
1000
+ documentId: CanonicalDocumentId;
1001
+ operationType: string;
1002
+ }, userAddress: string | undefined): Promise<OperationPermissionsInfo>;
1003
+ declare function canExecuteOperation(authorizationService: IAuthorizationService, args: {
1004
+ documentId: CanonicalDocumentId;
1005
+ operationType: string;
1006
+ }, userAddress: string | undefined): Promise<boolean>;
1007
+ declare function grantOperationPermission(service: DocumentPermissionService, authorizationService: IAuthorizationService, args: {
1008
+ documentId: CanonicalDocumentId;
1009
+ operationType: string;
1010
+ userAddress: string;
1011
+ }, grantedByAddress: string | undefined): Promise<OperationUserPermission>;
1012
+ declare function revokeOperationPermission(service: DocumentPermissionService, authorizationService: IAuthorizationService, args: {
1013
+ documentId: CanonicalDocumentId;
1014
+ operationType: string;
1015
+ userAddress: string;
1016
+ }, revokedByAddress: string | undefined): Promise<boolean>;
967
1017
  type DocumentProtectionInfo = {
968
1018
  documentId: string;
969
1019
  protected: boolean;
970
1020
  ownerAddress: string | null;
971
1021
  };
1022
+ declare function documentProtection(service: DocumentPermissionService, authorizationService: IAuthorizationService, args: {
1023
+ documentId: CanonicalDocumentId;
1024
+ }, userAddress: string | undefined): Promise<DocumentProtectionInfo>;
1025
+ declare function setDocumentProtection(service: DocumentPermissionService, authorizationService: IAuthorizationService, args: {
1026
+ documentId: CanonicalDocumentId;
1027
+ protected: boolean;
1028
+ }, userAddress: string | undefined): Promise<DocumentProtectionInfo>;
1029
+ declare function transferDocumentOwnership(service: DocumentPermissionService, authorizationService: IAuthorizationService, args: {
1030
+ documentId: CanonicalDocumentId;
1031
+ newOwnerAddress: string;
1032
+ }, userAddress: string | undefined): Promise<DocumentProtectionInfo>;
972
1033
  //#endregion
973
1034
  //#region src/graphql/auth/subgraph.d.ts
974
1035
  /**
@@ -980,12 +1041,12 @@ type DocumentProtectionInfo = {
980
1041
  * - Document protection and ownership
981
1042
  * - Operation-level permissions (fine-grained operation control)
982
1043
  */
983
- declare class AuthSubgraph extends BaseSubgraph {
1044
+ export declare class AuthSubgraph extends BaseSubgraph {
984
1045
  private logger;
985
1046
  constructor(args: SubgraphArgs);
986
1047
  name: string;
987
1048
  hasSubscriptions: boolean;
988
- typeDefs: graphql.DocumentNode;
1049
+ typeDefs: import("graphql").DocumentNode;
989
1050
  resolvers: {
990
1051
  Query: {
991
1052
  documentAccess: (_parent: unknown, args: {
@@ -1096,19 +1157,19 @@ declare class AuthSubgraph extends BaseSubgraph {
1096
1157
  }
1097
1158
  //#endregion
1098
1159
  //#region src/graphql/gateway/auth-middleware.d.ts
1099
- type AuthFetchMiddleware = (handler: FetchHandler) => FetchHandler;
1160
+ export type AuthFetchMiddleware = (handler: FetchHandler) => FetchHandler;
1100
1161
  /** Internal — only `graphql-manager.ts` should call this. */
1101
- declare function getAuthContext(request: globalThis.Request): AuthContext | undefined;
1102
- declare function createAuthFetchMiddleware(authService: AuthService): AuthFetchMiddleware;
1162
+ export declare function getAuthContext(request: globalThis.Request): AuthContext | undefined;
1163
+ export declare function createAuthFetchMiddleware(authService: AuthService): AuthFetchMiddleware;
1103
1164
  //#endregion
1104
1165
  //#region src/graphql/gateway/factory.d.ts
1105
- type GatewayAdapterType = "apollo" | "mercurius" | "stitching";
1106
- type HttpAdapterType = "express" | "fastify";
1107
- declare function createGatewayAdapter(type: GatewayAdapterType, logger: ILogger): Promise<IGatewayAdapter<Context>>;
1108
- type HttpAdapterSetup = {
1166
+ export type GatewayAdapterType = "apollo" | "mercurius" | "stitching";
1167
+ export type HttpAdapterType = "express" | "fastify";
1168
+ export declare function createGatewayAdapter(type: GatewayAdapterType, logger: ILogger): Promise<IGatewayAdapter<Context>>;
1169
+ export type HttpAdapterSetup = {
1109
1170
  adapter: IHttpAdapter;
1110
1171
  };
1111
- declare function createHttpAdapter(type: HttpAdapterType): Promise<HttpAdapterSetup>;
1172
+ export declare function createHttpAdapter(type: HttpAdapterType): Promise<HttpAdapterSetup>;
1112
1173
  //#endregion
1113
1174
  //#region src/graphql/gateway/drive-ownership-cache.d.ts
1114
1175
  /**
@@ -1136,16 +1197,17 @@ declare class DriveOwnershipCache {
1136
1197
  type RequireAuthFetchMiddleware = (handler: FetchHandler) => FetchHandler;
1137
1198
  //#endregion
1138
1199
  //#region src/graphql/graphql-manager.d.ts
1139
- type GraphqlManagerFeatureFlags = {
1200
+ export type GraphqlManagerFeatureFlags = {
1140
1201
  enableDocumentModelSubgraphs?: boolean;
1141
1202
  };
1142
- declare function createWsAuthHandlers(opts: {
1143
- authService?: AuthService; /** Whether anonymous callers are refused; read at call time, not at build time. */
1203
+ export declare function createWsAuthHandlers(opts: {
1204
+ authService?: AuthService;
1205
+ /** Whether anonymous callers are refused; read at call time, not at build time. */
1144
1206
  requireAuthenticatedCaller: () => boolean;
1145
1207
  logger: ILogger;
1146
1208
  buildContext: (connectionParams: Record<string, unknown>, user?: User) => Context$1;
1147
1209
  }): WsHandlers<Context$1>;
1148
- declare class GraphQLManager {
1210
+ export declare class GraphQLManager {
1149
1211
  #private;
1150
1212
  private readonly path;
1151
1213
  private readonly httpServer;
@@ -1256,21 +1318,21 @@ declare class GraphQLManager {
1256
1318
  }
1257
1319
  //#endregion
1258
1320
  //#region src/services/package-storage.d.ts
1259
- interface InstalledPackageInfo {
1321
+ export interface InstalledPackageInfo {
1260
1322
  name: string;
1261
1323
  version?: string;
1262
1324
  registryUrl: string;
1263
1325
  installedAt: Date;
1264
1326
  documentTypes: string[];
1265
1327
  }
1266
- interface IPackageStorage {
1328
+ export interface IPackageStorage {
1267
1329
  get(name: string): Promise<InstalledPackageInfo | undefined>;
1268
1330
  getAll(): Promise<InstalledPackageInfo[]>;
1269
1331
  set(name: string, info: InstalledPackageInfo): Promise<void>;
1270
1332
  delete(name: string): Promise<boolean>;
1271
1333
  has(name: string): Promise<boolean>;
1272
1334
  }
1273
- declare class InMemoryPackageStorage implements IPackageStorage {
1335
+ export declare class InMemoryPackageStorage implements IPackageStorage {
1274
1336
  private packages;
1275
1337
  get(name: string): Promise<InstalledPackageInfo | undefined>;
1276
1338
  getAll(): Promise<InstalledPackageInfo[]>;
@@ -1286,16 +1348,16 @@ declare class InMemoryPackageStorage implements IPackageStorage {
1286
1348
  * as a document-existence oracle, so consumers map this to their generic
1287
1349
  * fail-closed response.
1288
1350
  */
1289
- declare class CanonicalDocumentIdResolutionError extends Error {
1351
+ export declare class CanonicalDocumentIdResolutionError extends Error {
1290
1352
  constructor();
1291
1353
  }
1292
- type CanonicalDocumentIdResolver = (identifier: string) => Promise<CanonicalDocumentId>;
1354
+ export type CanonicalDocumentIdResolver = (identifier: string) => Promise<CanonicalDocumentId>;
1293
1355
  /**
1294
1356
  * The sanctioned string-to-CanonicalDocumentId cast: both the GraphQL layer
1295
1357
  * and server routes must resolve caller identifiers through this helper so
1296
1358
  * decision and data layers always agree on the subject document.
1297
1359
  */
1298
- declare function createCanonicalDocumentIdResolver(client: Pick<IReactorClient, "resolveIdOrSlug">): CanonicalDocumentIdResolver;
1360
+ export declare function createCanonicalDocumentIdResolver(client: Pick<IReactorClient, "resolveIdOrSlug">): CanonicalDocumentIdResolver;
1299
1361
  //#endregion
1300
1362
  //#region src/services/attachment-access.service.d.ts
1301
1363
  /**
@@ -1305,7 +1367,7 @@ declare function createCanonicalDocumentIdResolver(client: Pick<IReactorClient,
1305
1367
  * registration capability. Consumers of reference evidence must fail closed
1306
1368
  * when it is unavailable.
1307
1369
  */
1308
- type AttachmentReferenceProjectionCapability = {
1370
+ export type AttachmentReferenceProjectionCapability = {
1309
1371
  status: "available";
1310
1372
  } | {
1311
1373
  status: "unavailable";
@@ -1318,7 +1380,7 @@ type AttachmentReferenceProjectionCapability = {
1318
1380
  * the reference index is not being maintained in this composition; it is
1319
1381
  * returned before any document-authorization or reference lookup runs.
1320
1382
  */
1321
- type AttachmentAccessResult = {
1383
+ export type AttachmentAccessResult = {
1322
1384
  kind: "allowed";
1323
1385
  documentId: CanonicalDocumentId;
1324
1386
  ref: AttachmentRef;
@@ -1327,28 +1389,85 @@ type AttachmentAccessResult = {
1327
1389
  } | {
1328
1390
  kind: "projection-unavailable";
1329
1391
  };
1330
- interface AttachmentAccessRequest {
1392
+ export interface AttachmentAccessRequest {
1331
1393
  documentId: string;
1332
1394
  attachmentRef: string;
1333
1395
  userAddress?: string;
1396
+ /**
1397
+ * The `did:key` of the app instance whose token authenticated the caller.
1398
+ * A policy subject is an address AND a key — a grant can name either, and a
1399
+ * document's creator is recorded by key — so a decision made from the address
1400
+ * alone answers a narrower question than the one being asked.
1401
+ */
1402
+ appKey?: string;
1334
1403
  }
1335
- interface IAttachmentAccessService {
1404
+ /** The reactor's read gate, as the attachment facade consults it. */
1405
+ export type AttachmentReadGate = Pick<IReactorClient, "isServed" | "get">;
1406
+ /**
1407
+ * Which scopes of a document a subject may read, asked by document id.
1408
+ *
1409
+ * Structural on purpose: the composition that has a policy model to enforce
1410
+ * supplies `SyncScopeGate`, and one that does not supplies nothing at all.
1411
+ */
1412
+ export interface IDocumentScopeGate {
1413
+ scopePredicateById(documentId: string, subject: {
1414
+ address?: string;
1415
+ key?: string;
1416
+ }, branch: string, signal?: AbortSignal): Promise<(scope: string) => boolean>;
1417
+ }
1418
+ export interface IAttachmentAccessService {
1336
1419
  canReadAttachment(request: AttachmentAccessRequest): Promise<AttachmentAccessResult>;
1337
1420
  }
1338
1421
  /**
1339
1422
  * Composes document authorization with the projected document/ref
1340
1423
  * relationship. Order is fixed: validate ref, resolve the canonical document
1341
- * id, check `canRead`, then check the reference index. A denied document
1342
- * never reaches the reference reader, and the facade never touches
1343
- * attachment metadata, storage backends, or presigners.
1424
+ * id, decide the read, check the reactor's read gate serves the document, then
1425
+ * check the reference index and that the subject may read a scope whose
1426
+ * operations reference the attachment. A denied document never reaches the
1427
+ * reference reader, and the facade never touches attachment metadata, storage
1428
+ * backends, or presigners.
1429
+ *
1430
+ * The named document decides alone: an attachment several documents reference
1431
+ * is readable through each of them on that document's own terms.
1432
+ *
1433
+ * The read is decided by the document's own policy when this composition has a
1434
+ * model to enforce it with, and by the host's permission tables when it does
1435
+ * not. That is not a preference between two equivalent answers: a host running
1436
+ * document policies keeps no rows in the permission tables, so asking them
1437
+ * about such a document returns whatever the host-wide policy says — under
1438
+ * `OPEN`, `true`, for everyone. Serving bytes on that answer hands the file to
1439
+ * anyone who learns its hash, which the document's own state may well have told
1440
+ * them. Both are kept because they are the two halves of one rule: an
1441
+ * attachment is readable by whoever may read the document that references it,
1442
+ * and each composition can only express that in its own terms.
1344
1443
  */
1345
- declare class AttachmentAccessService implements IAttachmentAccessService {
1444
+ export declare class AttachmentAccessService implements IAttachmentAccessService {
1346
1445
  private readonly resolveCanonicalId;
1347
1446
  private readonly authorization;
1348
1447
  private readonly references;
1349
1448
  private readonly projection;
1350
- constructor(resolveCanonicalId: CanonicalDocumentIdResolver, authorization: IAuthorizationService, references: IAttachmentReferenceReader, projection: AttachmentReferenceProjectionCapability);
1449
+ private readonly readGate;
1450
+ /**
1451
+ * Absent below auth enforcement, where there is no policy model to
1452
+ * evaluate; the host's permission tables decide alone, exactly as before.
1453
+ */
1454
+ private readonly scopeGate?;
1455
+ constructor(resolveCanonicalId: CanonicalDocumentIdResolver, authorization: IAuthorizationService, references: IAttachmentReferenceReader, projection: AttachmentReferenceProjectionCapability, readGate: AttachmentReadGate,
1456
+ /**
1457
+ * Absent below auth enforcement, where there is no policy model to
1458
+ * evaluate; the host's permission tables decide alone, exactly as before.
1459
+ */
1460
+ scopeGate?: IDocumentScopeGate | undefined);
1351
1461
  canReadAttachment(request: AttachmentAccessRequest): Promise<AttachmentAccessResult>;
1462
+ /**
1463
+ * Whether the caller may read the state the reference lives in.
1464
+ *
1465
+ * A failure here is rethrown rather than turned into a denial. A read side
1466
+ * that is down must not read as a policy: a denial nobody can distinguish
1467
+ * from a refusal is one nobody investigates, and the route answers 500 for a
1468
+ * reason.
1469
+ */
1470
+ private canReadDocument;
1352
1471
  }
1353
1472
  //#endregion
1354
1473
  //#region src/types.d.ts
@@ -1356,22 +1475,24 @@ declare class AttachmentAccessService implements IAttachmentAccessService {
1356
1475
  * Module hosts pass to processor factories: the reactor-level module plus the
1357
1476
  * attachment client, which shared and reactor cannot name.
1358
1477
  */
1359
- interface IProcessorHostModule extends IReactorProcessorHostModuleBase {
1478
+ export interface IProcessorHostModule extends IReactorProcessorHostModuleBase {
1360
1479
  attachments: IAttachmentClient;
1361
1480
  }
1362
1481
  /** @deprecated Use `IProcessorHostModule`. */
1363
- type IReactorProcessorHostModule = IProcessorHostModule;
1364
- type ReadinessGate = {
1482
+ export type IReactorProcessorHostModule = IProcessorHostModule;
1483
+ export type ReadinessGate = {
1365
1484
  isReady: () => boolean;
1366
1485
  markReady: () => void;
1367
1486
  };
1368
- type API = {
1369
- httpAdapter: IHttpAdapter; /** Hands each package a namespaced slice of the HTTP surface. */
1487
+ export type API = {
1488
+ httpAdapter: IHttpAdapter;
1489
+ /** Hands each package a namespaced slice of the HTTP surface. */
1370
1490
  httpRoutes: HttpRouteService;
1371
1491
  graphqlManager: GraphQLManager$1;
1372
1492
  packages: IPackageManager;
1373
1493
  attachments: AttachmentBuildResult;
1374
- attachmentReferenceIndex: AttachmentReferenceIndexBuildResult; /** Document-authorized attachment read decisions; see AttachmentAccessService. */
1494
+ attachmentReferenceIndex: AttachmentReferenceIndexBuildResult;
1495
+ /** Document-authorized attachment read decisions; see AttachmentAccessService. */
1375
1496
  attachmentAccess: IAttachmentAccessService;
1376
1497
  authService: AuthService | undefined;
1377
1498
  /**
@@ -1398,22 +1519,22 @@ type API = {
1398
1519
  */
1399
1520
  dispose: () => Promise<void>;
1400
1521
  };
1401
- type ReactorModule = {
1522
+ export type ReactorModule = {
1402
1523
  analyticsStore: IAnalyticsStore;
1403
1524
  relationalDb: IRelationalDb$1;
1404
1525
  };
1405
1526
  /** @deprecated Use `ProcessorFactory`. */
1406
- type ProcessorDriveFactory = ProcessorFactory;
1527
+ export type ProcessorDriveFactory = ProcessorFactory;
1407
1528
  /** Builds a per-drive factory from the host module (e.g. vetra `processorFactory`). */
1408
- type ProcessorFactoryBuilder = ProcessorFactoryBuilder$1<IProcessorHostModule>;
1529
+ export type ProcessorFactoryBuilder = ProcessorFactoryBuilder$1<IProcessorHostModule>;
1409
1530
  /** Multiple initializers per package name (e.g. Switchboard `processors` option). */
1410
- type Processor = ProcessorFactoryBuilder[];
1531
+ export type Processor = ProcessorFactoryBuilder[];
1411
1532
  //#endregion
1412
1533
  //#region src/packages/http-loader.d.ts
1413
- interface HttpPackageLoaderOptions {
1534
+ export interface HttpPackageLoaderOptions {
1414
1535
  registryUrl: string;
1415
1536
  }
1416
- interface HttpPackageLoaderLogger {
1537
+ export interface HttpPackageLoaderLogger {
1417
1538
  info: (msg: string) => void;
1418
1539
  error: (msg: string, err: unknown) => void;
1419
1540
  }
@@ -1428,7 +1549,7 @@ type SubgraphsExport = Record<string, SubgraphClass$1>;
1428
1549
  *
1429
1550
  * Exported for direct unit testing against synthetic module shapes.
1430
1551
  */
1431
- declare function extractSubgraphsFromModule(module: Record<string, SubgraphsExport>): SubgraphClass$1[];
1552
+ export declare function extractSubgraphsFromModule(module: Record<string, SubgraphsExport>): SubgraphClass$1[];
1432
1553
  /**
1433
1554
  * Loads document models, subgraphs, and processors from an HTTP registry.
1434
1555
  * Uses Node.js module loader hooks to import directly from HTTP URLs.
@@ -1437,7 +1558,7 @@ declare function extractSubgraphsFromModule(module: Record<string, SubgraphsExpo
1437
1558
  * import { register } from "node:module";
1438
1559
  * register("@powerhousedao/reactor-api/https-hooks", import.meta.url);
1439
1560
  */
1440
- declare class HttpPackageLoader implements IPackageLoader {
1561
+ export declare class HttpPackageLoader implements IPackageLoader {
1441
1562
  private readonly registryUrl;
1442
1563
  private readonly logger;
1443
1564
  readonly name = "HttpPackageLoader";
@@ -1469,7 +1590,7 @@ declare class HttpPackageLoader implements IPackageLoader {
1469
1590
  * Making them worker-executable means returning an importable source here
1470
1591
  * (the CDN URL as a package specifier, given process-wide https hooks).
1471
1592
  */
1472
- declare class HttpDocumentModelLoader implements IDocumentModelLoader {
1593
+ export declare class HttpDocumentModelLoader implements IDocumentModelLoader {
1473
1594
  private readonly loader;
1474
1595
  private readonly logger;
1475
1596
  private readonly documentTypeCache;
@@ -1486,18 +1607,18 @@ declare class HttpDocumentModelLoader implements IDocumentModelLoader {
1486
1607
  }
1487
1608
  //#endregion
1488
1609
  //#region src/services/package-management.service.d.ts
1489
- interface InstallPackageResult {
1610
+ export interface InstallPackageResult {
1490
1611
  package: InstalledPackageInfo;
1491
1612
  documentModelsLoaded: number;
1492
1613
  }
1493
- interface PackageManagementServiceOptions {
1614
+ export interface PackageManagementServiceOptions {
1494
1615
  storage?: IPackageStorage;
1495
1616
  defaultRegistryUrl?: string;
1496
1617
  httpLoader?: HttpPackageLoader;
1497
1618
  documentModelRegistry?: IDocumentModelRegistry;
1498
1619
  packageManager?: IPackageManager;
1499
1620
  }
1500
- declare class PackageManagementService {
1621
+ export declare class PackageManagementService {
1501
1622
  private readonly storage;
1502
1623
  private readonly defaultRegistryUrl?;
1503
1624
  private readonly httpLoader?;
@@ -1520,13 +1641,13 @@ declare class PackageManagementService {
1520
1641
  interface PackagesSubgraphArgs extends SubgraphArgs {
1521
1642
  packageManagementService: PackageManagementService;
1522
1643
  }
1523
- declare class PackagesSubgraph extends BaseSubgraph {
1644
+ export declare class PackagesSubgraph extends BaseSubgraph {
1524
1645
  private logger;
1525
1646
  private packageManagementService;
1526
1647
  constructor(args: PackagesSubgraphArgs);
1527
1648
  name: string;
1528
1649
  hasSubscriptions: boolean;
1529
- typeDefs: graphql.DocumentNode;
1650
+ typeDefs: import("graphql").DocumentNode;
1530
1651
  resolvers: {
1531
1652
  Query: {
1532
1653
  Packages: () => {};
@@ -1582,7 +1703,7 @@ declare class PackagesSubgraph extends BaseSubgraph {
1582
1703
  * `{ document, variables, headers? }` with `variables` and `headers`
1583
1704
  * already JSON-stringified.
1584
1705
  */
1585
- interface ExplorerUrlState {
1706
+ export interface ExplorerUrlState {
1586
1707
  /** The GraphQL query to prefill in GraphiQL. */
1587
1708
  query: string;
1588
1709
  /** JSON-stringified variables, as stored in the payload. */
@@ -1594,24 +1715,24 @@ interface ExplorerUrlState {
1594
1715
  * Decodes an `explorerURLState` URL parameter. Returns `null` for anything
1595
1716
  * that is not a valid lz-compressed payload with a non-empty `document`.
1596
1717
  */
1597
- declare function decodeExplorerUrlState(encoded: string): ExplorerUrlState | null;
1598
- declare function renderGraphqlPlayground(url: string, query?: string, headers?: Record<string, string>, variables?: string): string;
1718
+ export declare function decodeExplorerUrlState(encoded: string): ExplorerUrlState | null;
1719
+ export declare function renderGraphqlPlayground(url: string, query?: string, headers?: Record<string, string>, variables?: string): string;
1599
1720
  //#endregion
1600
1721
  //#region src/graphql/reactor/gen/graphql.d.ts
1601
- type Maybe<T> = T | null | undefined;
1602
- type InputMaybe<T> = T | null | undefined;
1603
- type Exact<T extends {
1722
+ export type Maybe<T> = T | null | undefined;
1723
+ export type InputMaybe<T> = T | null | undefined;
1724
+ export type Exact<T extends {
1604
1725
  [key: string]: unknown;
1605
- }> = { [K in keyof T]: T[K] };
1606
- type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
1607
- type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
1608
- type MakeEmpty<T extends {
1726
+ }> = { [K in keyof T]: T[K]; };
1727
+ export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]>; };
1728
+ export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]>; };
1729
+ export type MakeEmpty<T extends {
1609
1730
  [key: string]: unknown;
1610
- }, K extends keyof T> = { [_ in K]?: never };
1611
- type Incremental<T> = T | { [P in keyof T]?: P extends " $fragmentName" | "__typename" ? T[P] : never };
1612
- type RequireFields<T, K extends keyof T> = Omit<T, K> & { [P in K]-?: NonNullable<T[P]> };
1731
+ }, K extends keyof T> = { [_ in K]?: never; };
1732
+ export type Incremental<T> = T | { [P in keyof T]?: P extends " $fragmentName" | "__typename" ? T[P] : never; };
1733
+ export type RequireFields<T, K extends keyof T> = Omit<T, K> & { [P in K]-?: NonNullable<T[P]>; };
1613
1734
  /** All built-in and custom scalars, mapped to their actual values */
1614
- type Scalars = {
1735
+ export type Scalars = {
1615
1736
  ID: {
1616
1737
  input: string;
1617
1738
  output: string;
@@ -1641,7 +1762,7 @@ type Scalars = {
1641
1762
  output: NonNullable<unknown>;
1642
1763
  };
1643
1764
  };
1644
- type Action = {
1765
+ export type Action = {
1645
1766
  readonly context?: Maybe<ActionContext>;
1646
1767
  readonly id: Scalars["String"]["output"];
1647
1768
  readonly input: Scalars["JSONObject"]["output"];
@@ -1656,12 +1777,12 @@ type Action = {
1656
1777
  * filled-in form carries that form's input. Omitting it predicts the verdict an
1657
1778
  * empty input earns, not the verdict the filled-in form will get.
1658
1779
  */
1659
- type ActionCandidateInput = {
1780
+ export type ActionCandidateInput = {
1660
1781
  readonly input?: InputMaybe<Scalars["JSONObject"]["input"]>;
1661
1782
  readonly scope: Scalars["String"]["input"];
1662
1783
  readonly type: Scalars["String"]["input"];
1663
1784
  };
1664
- type ActionContext = {
1785
+ export type ActionContext = {
1665
1786
  readonly signer?: Maybe<ReactorSigner>;
1666
1787
  };
1667
1788
  /**
@@ -1676,9 +1797,12 @@ type ActionContext = {
1676
1797
  * against. They are recorded rather than enforced; a signature is verified from
1677
1798
  * the params carried in its own tuple, which do not include them.
1678
1799
  */
1679
- type ActionContextInput = {
1680
- /** Covers replay of an operation that would otherwise be a no-op. */readonly nonce?: InputMaybe<Scalars["String"]["input"]>; /** The hash of the state the action applies to. */
1681
- readonly prevOpHash?: InputMaybe<Scalars["String"]["input"]>; /** The index of the last operation in the scope the action applies to. */
1800
+ export type ActionContextInput = {
1801
+ /** Covers replay of an operation that would otherwise be a no-op. */
1802
+ readonly nonce?: InputMaybe<Scalars["String"]["input"]>;
1803
+ /** The hash of the state the action applies to. */
1804
+ readonly prevOpHash?: InputMaybe<Scalars["String"]["input"]>;
1805
+ /** The index of the last operation in the scope the action applies to. */
1682
1806
  readonly prevOpIndex?: InputMaybe<Scalars["Int"]["input"]>;
1683
1807
  readonly signer?: InputMaybe<ReactorSignerInput>;
1684
1808
  };
@@ -1686,7 +1810,7 @@ type ActionContextInput = {
1686
1810
  * One candidate's predicted verdict. `reason` carries the refusal a DENY is
1687
1811
  * recorded with, and is null on an ALLOW.
1688
1812
  */
1689
- type ActionEvaluation = {
1813
+ export type ActionEvaluation = {
1690
1814
  readonly decision: AuthDecision;
1691
1815
  readonly reason?: Maybe<Scalars["String"]["output"]>;
1692
1816
  };
@@ -1699,14 +1823,14 @@ type ActionEvaluation = {
1699
1823
  * another. Over no candidates every aggregate is false: nothing is allowed and
1700
1824
  * nothing is denied.
1701
1825
  */
1702
- type ActionEvaluations = {
1826
+ export type ActionEvaluations = {
1703
1827
  readonly allAllowed: Scalars["Boolean"]["output"];
1704
1828
  readonly allDenied: Scalars["Boolean"]["output"];
1705
1829
  readonly anyAllowed: Scalars["Boolean"]["output"];
1706
1830
  readonly anyDenied: Scalars["Boolean"]["output"];
1707
1831
  readonly evaluations: ReadonlyArray<ActionEvaluation>;
1708
1832
  };
1709
- type ActionInput = {
1833
+ export type ActionInput = {
1710
1834
  readonly context?: InputMaybe<ActionContextInput>;
1711
1835
  readonly id: Scalars["String"]["input"];
1712
1836
  readonly input: Scalars["JSONObject"]["input"];
@@ -1714,17 +1838,17 @@ type ActionInput = {
1714
1838
  readonly timestampUtcMs: Scalars["String"]["input"];
1715
1839
  readonly type: Scalars["String"]["input"];
1716
1840
  };
1717
- declare enum AuthDecision {
1841
+ export declare enum AuthDecision {
1718
1842
  Allow = "ALLOW",
1719
1843
  Deny = "DENY"
1720
1844
  }
1721
- type ChannelMeta = {
1845
+ export type ChannelMeta = {
1722
1846
  readonly id: Scalars["String"]["output"];
1723
1847
  };
1724
- type ChannelMetaInput = {
1848
+ export type ChannelMetaInput = {
1725
1849
  readonly id: Scalars["String"]["input"];
1726
1850
  };
1727
- type DeadLetterInfo = {
1851
+ export type DeadLetterInfo = {
1728
1852
  readonly branch: Scalars["String"]["output"];
1729
1853
  readonly documentId: Scalars["String"]["output"];
1730
1854
  readonly error: Scalars["String"]["output"];
@@ -1738,16 +1862,16 @@ type DeadLetterInfo = {
1738
1862
  readonly operationCount: Scalars["Int"]["output"];
1739
1863
  readonly scopes: ReadonlyArray<Scalars["String"]["output"]>;
1740
1864
  };
1741
- type DocumentChangeContext = {
1865
+ export type DocumentChangeContext = {
1742
1866
  readonly childId?: Maybe<Scalars["String"]["output"]>;
1743
1867
  readonly parentId?: Maybe<Scalars["String"]["output"]>;
1744
1868
  };
1745
- type DocumentChangeEvent = {
1869
+ export type DocumentChangeEvent = {
1746
1870
  readonly context?: Maybe<DocumentChangeContext>;
1747
1871
  readonly documents: ReadonlyArray<PhDocument>;
1748
1872
  readonly type: DocumentChangeType;
1749
1873
  };
1750
- declare enum DocumentChangeType {
1874
+ export declare enum DocumentChangeType {
1751
1875
  ChildAdded = "CHILD_ADDED",
1752
1876
  ChildRemoved = "CHILD_REMOVED",
1753
1877
  Created = "CREATED",
@@ -1756,21 +1880,20 @@ declare enum DocumentChangeType {
1756
1880
  ParentRemoved = "PARENT_REMOVED",
1757
1881
  Updated = "UPDATED"
1758
1882
  }
1759
- type DocumentModelGlobalState = {
1883
+ export type DocumentModelGlobalState = {
1760
1884
  readonly id: Scalars["String"]["output"];
1761
1885
  readonly name: Scalars["String"]["output"];
1762
1886
  readonly namespace?: Maybe<Scalars["String"]["output"]>;
1763
1887
  readonly specification: Scalars["JSONObject"]["output"];
1764
1888
  readonly version?: Maybe<Scalars["String"]["output"]>;
1765
1889
  };
1766
- type DocumentModelResultPage = {
1890
+ export type DocumentModelResultPage = {
1767
1891
  readonly cursor?: Maybe<Scalars["String"]["output"]>;
1768
1892
  readonly hasNextPage: Scalars["Boolean"]["output"];
1769
1893
  readonly hasPreviousPage: Scalars["Boolean"]["output"];
1770
1894
  readonly items: ReadonlyArray<DocumentModelGlobalState>;
1771
- readonly totalCount: Scalars["Int"]["output"];
1772
1895
  };
1773
- type DocumentOperationsFilterInput = {
1896
+ export type DocumentOperationsFilterInput = {
1774
1897
  readonly actionTypes?: InputMaybe<ReadonlyArray<Scalars["String"]["input"]>>;
1775
1898
  readonly branch?: InputMaybe<Scalars["String"]["input"]>;
1776
1899
  readonly scopes?: InputMaybe<ReadonlyArray<Scalars["String"]["input"]>>;
@@ -1778,7 +1901,7 @@ type DocumentOperationsFilterInput = {
1778
1901
  readonly timestampFrom?: InputMaybe<Scalars["String"]["input"]>;
1779
1902
  readonly timestampTo?: InputMaybe<Scalars["String"]["input"]>;
1780
1903
  };
1781
- type DocumentRelationship = {
1904
+ export type DocumentRelationship = {
1782
1905
  readonly createdAt: Scalars["DateTime"]["output"];
1783
1906
  readonly metadata?: Maybe<Scalars["JSONObject"]["output"]>;
1784
1907
  readonly relationshipType: Scalars["String"]["output"];
@@ -1786,18 +1909,17 @@ type DocumentRelationship = {
1786
1909
  readonly targetId: Scalars["String"]["output"];
1787
1910
  readonly updatedAt: Scalars["DateTime"]["output"];
1788
1911
  };
1789
- type DocumentRelationshipResultPage = {
1912
+ export type DocumentRelationshipResultPage = {
1790
1913
  readonly cursor?: Maybe<Scalars["String"]["output"]>;
1791
1914
  readonly hasNextPage: Scalars["Boolean"]["output"];
1792
1915
  readonly hasPreviousPage: Scalars["Boolean"]["output"];
1793
1916
  readonly items: ReadonlyArray<DocumentRelationship>;
1794
- readonly totalCount: Scalars["Int"]["output"];
1795
1917
  };
1796
- type DocumentWithChildren = {
1918
+ export type DocumentWithChildren = {
1797
1919
  readonly childIds: ReadonlyArray<Scalars["String"]["output"]>;
1798
1920
  readonly document: PhDocument;
1799
1921
  };
1800
- type JobChangeEvent = {
1922
+ export type JobChangeEvent = {
1801
1923
  readonly error?: Maybe<Scalars["String"]["output"]>;
1802
1924
  readonly jobId: Scalars["String"]["output"];
1803
1925
  /**
@@ -1808,7 +1930,7 @@ type JobChangeEvent = {
1808
1930
  readonly result?: Maybe<Scalars["JSONObject"]["output"]>;
1809
1931
  readonly status: Scalars["String"]["output"];
1810
1932
  };
1811
- type JobInfo = {
1933
+ export type JobInfo = {
1812
1934
  readonly completedAt?: Maybe<Scalars["DateTime"]["output"]>;
1813
1935
  readonly createdAt: Scalars["DateTime"]["output"];
1814
1936
  readonly error?: Maybe<Scalars["String"]["output"]>;
@@ -1820,11 +1942,11 @@ type JobInfo = {
1820
1942
  readonly result?: Maybe<Scalars["JSONObject"]["output"]>;
1821
1943
  readonly status: Scalars["String"]["output"];
1822
1944
  };
1823
- type MoveRelationshipResult = {
1945
+ export type MoveRelationshipResult = {
1824
1946
  readonly source: PhDocument;
1825
1947
  readonly target: PhDocument;
1826
1948
  };
1827
- type Mutation = {
1949
+ export type Mutation = {
1828
1950
  readonly addRelationship: PhDocument;
1829
1951
  readonly createDocument: PhDocument;
1830
1952
  readonly createEmptyDocument: PhDocument;
@@ -1852,8 +1974,10 @@ type Mutation = {
1852
1974
  * ask for; `result` is null until the job produces one.
1853
1975
  */
1854
1976
  readonly executeAsync: JobInfo;
1855
- readonly moveRelationship: MoveRelationshipResult; /** @deprecated Use execute. Actions here are untyped, so a malformed one is refused by a hand-written check rather than by the schema, and `view.scopes` is accepted but ignored. */
1856
- readonly mutateDocument: PhDocument; /** @deprecated Use executeAsync, which is typed and returns the job rather than only its id. */
1977
+ readonly moveRelationship: MoveRelationshipResult;
1978
+ /** @deprecated Use execute. Actions here are untyped, so a malformed one is refused by a hand-written check rather than by the schema, and `view.scopes` is accepted but ignored. */
1979
+ readonly mutateDocument: PhDocument;
1980
+ /** @deprecated Use executeAsync, which is typed and returns the job rather than only its id. */
1857
1981
  readonly mutateDocumentAsync: Scalars["String"]["output"];
1858
1982
  readonly pushSyncEnvelopes: Scalars["Boolean"]["output"];
1859
1983
  readonly removeRelationship: PhDocument;
@@ -1862,100 +1986,100 @@ type Mutation = {
1862
1986
  readonly touchChannel: TouchChannelResult;
1863
1987
  readonly updateRelationship: PhDocument;
1864
1988
  };
1865
- type MutationAddRelationshipArgs = {
1989
+ export type MutationAddRelationshipArgs = {
1866
1990
  branch?: InputMaybe<Scalars["String"]["input"]>;
1867
1991
  metadata?: InputMaybe<Scalars["JSONObject"]["input"]>;
1868
1992
  relationshipType: Scalars["String"]["input"];
1869
1993
  sourceIdentifier: Scalars["String"]["input"];
1870
1994
  targetIdentifier: Scalars["String"]["input"];
1871
1995
  };
1872
- type MutationCreateDocumentArgs = {
1996
+ export type MutationCreateDocumentArgs = {
1873
1997
  document: Scalars["JSONObject"]["input"];
1874
1998
  parentIdentifier?: InputMaybe<Scalars["String"]["input"]>;
1875
1999
  };
1876
- type MutationCreateEmptyDocumentArgs = {
2000
+ export type MutationCreateEmptyDocumentArgs = {
1877
2001
  documentType: Scalars["String"]["input"];
1878
2002
  parentIdentifier?: InputMaybe<Scalars["String"]["input"]>;
1879
2003
  };
1880
- type MutationDeleteDocumentArgs = {
2004
+ export type MutationDeleteDocumentArgs = {
1881
2005
  identifier: Scalars["String"]["input"];
1882
2006
  propagate?: InputMaybe<PropagationMode>;
1883
2007
  };
1884
- type MutationDeleteDocumentsArgs = {
2008
+ export type MutationDeleteDocumentsArgs = {
1885
2009
  identifiers: ReadonlyArray<Scalars["String"]["input"]>;
1886
2010
  propagate?: InputMaybe<PropagationMode>;
1887
2011
  };
1888
- type MutationExecuteArgs = {
2012
+ export type MutationExecuteArgs = {
1889
2013
  actions: ReadonlyArray<ActionInput>;
1890
2014
  branch?: InputMaybe<Scalars["String"]["input"]>;
1891
2015
  documentIdentifier: Scalars["String"]["input"];
1892
2016
  };
1893
- type MutationExecuteAsyncArgs = {
2017
+ export type MutationExecuteAsyncArgs = {
1894
2018
  actions: ReadonlyArray<ActionInput>;
1895
2019
  branch?: InputMaybe<Scalars["String"]["input"]>;
1896
2020
  documentIdentifier: Scalars["String"]["input"];
1897
2021
  };
1898
- type MutationMoveRelationshipArgs = {
2022
+ export type MutationMoveRelationshipArgs = {
1899
2023
  branch?: InputMaybe<Scalars["String"]["input"]>;
1900
2024
  relationshipType: Scalars["String"]["input"];
1901
2025
  sourceParentIdentifier: Scalars["String"]["input"];
1902
2026
  targetIdentifier: Scalars["String"]["input"];
1903
2027
  targetParentIdentifier: Scalars["String"]["input"];
1904
2028
  };
1905
- type MutationMutateDocumentArgs = {
2029
+ export type MutationMutateDocumentArgs = {
1906
2030
  actions: ReadonlyArray<Scalars["JSONObject"]["input"]>;
1907
2031
  documentIdentifier: Scalars["String"]["input"];
1908
2032
  view?: InputMaybe<ViewFilterInput>;
1909
2033
  };
1910
- type MutationMutateDocumentAsyncArgs = {
2034
+ export type MutationMutateDocumentAsyncArgs = {
1911
2035
  actions: ReadonlyArray<Scalars["JSONObject"]["input"]>;
1912
2036
  documentIdentifier: Scalars["String"]["input"];
1913
2037
  view?: InputMaybe<ViewFilterInput>;
1914
2038
  };
1915
- type MutationPushSyncEnvelopesArgs = {
2039
+ export type MutationPushSyncEnvelopesArgs = {
1916
2040
  envelopes: ReadonlyArray<SyncEnvelopeInput>;
1917
2041
  };
1918
- type MutationRemoveRelationshipArgs = {
2042
+ export type MutationRemoveRelationshipArgs = {
1919
2043
  branch?: InputMaybe<Scalars["String"]["input"]>;
1920
2044
  relationshipType: Scalars["String"]["input"];
1921
2045
  sourceIdentifier: Scalars["String"]["input"];
1922
2046
  targetIdentifier: Scalars["String"]["input"];
1923
2047
  };
1924
- type MutationRenameDocumentArgs = {
2048
+ export type MutationRenameDocumentArgs = {
1925
2049
  branch?: InputMaybe<Scalars["String"]["input"]>;
1926
2050
  documentIdentifier: Scalars["String"]["input"];
1927
2051
  name: Scalars["String"]["input"];
1928
2052
  };
1929
- type MutationSetPreferredEditorArgs = {
2053
+ export type MutationSetPreferredEditorArgs = {
1930
2054
  branch?: InputMaybe<Scalars["String"]["input"]>;
1931
2055
  documentIdentifier: Scalars["String"]["input"];
1932
2056
  preferredEditor?: InputMaybe<Scalars["String"]["input"]>;
1933
2057
  };
1934
- type MutationTouchChannelArgs = {
2058
+ export type MutationTouchChannelArgs = {
1935
2059
  input: TouchChannelInput;
1936
2060
  };
1937
- type MutationUpdateRelationshipArgs = {
2061
+ export type MutationUpdateRelationshipArgs = {
1938
2062
  branch?: InputMaybe<Scalars["String"]["input"]>;
1939
2063
  metadata?: InputMaybe<Scalars["JSONObject"]["input"]>;
1940
2064
  relationshipType: Scalars["String"]["input"];
1941
2065
  sourceIdentifier: Scalars["String"]["input"];
1942
2066
  targetIdentifier: Scalars["String"]["input"];
1943
2067
  };
1944
- type OperationContext = {
2068
+ export type OperationContext = {
1945
2069
  readonly branch: Scalars["String"]["output"];
1946
2070
  readonly documentId: Scalars["String"]["output"];
1947
2071
  readonly documentType: Scalars["String"]["output"];
1948
2072
  readonly ordinal: Scalars["Int"]["output"];
1949
2073
  readonly scope: Scalars["String"]["output"];
1950
2074
  };
1951
- type OperationContextInput = {
2075
+ export type OperationContextInput = {
1952
2076
  readonly branch: Scalars["String"]["input"];
1953
2077
  readonly documentId: Scalars["String"]["input"];
1954
2078
  readonly documentType: Scalars["String"]["input"];
1955
2079
  readonly ordinal: Scalars["Int"]["input"];
1956
2080
  readonly scope: Scalars["String"]["input"];
1957
2081
  };
1958
- type OperationInput = {
2082
+ export type OperationInput = {
1959
2083
  readonly action: ActionInput;
1960
2084
  readonly deniedReason?: InputMaybe<Scalars["String"]["input"]>;
1961
2085
  readonly error?: InputMaybe<Scalars["String"]["input"]>;
@@ -1965,15 +2089,15 @@ type OperationInput = {
1965
2089
  readonly skip: Scalars["Int"]["input"];
1966
2090
  readonly timestampUtcMs: Scalars["String"]["input"];
1967
2091
  };
1968
- type OperationWithContext = {
2092
+ export type OperationWithContext = {
1969
2093
  readonly context: OperationContext;
1970
2094
  readonly operation: ReactorOperation;
1971
2095
  };
1972
- type OperationWithContextInput = {
2096
+ export type OperationWithContextInput = {
1973
2097
  readonly context: OperationContextInput;
1974
2098
  readonly operation: OperationInput;
1975
2099
  };
1976
- type OperationsFilterInput = {
2100
+ export type OperationsFilterInput = {
1977
2101
  readonly actionTypes?: InputMaybe<ReadonlyArray<Scalars["String"]["input"]>>;
1978
2102
  readonly branch?: InputMaybe<Scalars["String"]["input"]>;
1979
2103
  readonly documentId: Scalars["String"]["input"];
@@ -1982,7 +2106,7 @@ type OperationsFilterInput = {
1982
2106
  readonly timestampFrom?: InputMaybe<Scalars["String"]["input"]>;
1983
2107
  readonly timestampTo?: InputMaybe<Scalars["String"]["input"]>;
1984
2108
  };
1985
- type PhDocument = {
2109
+ export type PhDocument = {
1986
2110
  readonly createdAtUtcIso: Scalars["DateTime"]["output"];
1987
2111
  readonly documentType: Scalars["String"]["output"];
1988
2112
  readonly id: Scalars["String"]["output"];
@@ -1994,33 +2118,32 @@ type PhDocument = {
1994
2118
  readonly slug?: Maybe<Scalars["String"]["output"]>;
1995
2119
  readonly state: Scalars["JSONObject"]["output"];
1996
2120
  };
1997
- type PhDocumentOperationsArgs = {
2121
+ export type PhDocumentOperationsArgs = {
1998
2122
  filter?: InputMaybe<DocumentOperationsFilterInput>;
1999
2123
  paging?: InputMaybe<PagingInput>;
2000
2124
  };
2001
- type PhDocumentResultPage = {
2125
+ export type PhDocumentResultPage = {
2002
2126
  readonly cursor?: Maybe<Scalars["String"]["output"]>;
2003
2127
  readonly hasNextPage: Scalars["Boolean"]["output"];
2004
2128
  readonly hasPreviousPage: Scalars["Boolean"]["output"];
2005
2129
  readonly items: ReadonlyArray<PhDocument>;
2006
- readonly totalCount: Scalars["Int"]["output"];
2007
2130
  };
2008
- type PagingInput = {
2131
+ export type PagingInput = {
2009
2132
  readonly cursor?: InputMaybe<Scalars["String"]["input"]>;
2010
2133
  readonly limit?: InputMaybe<Scalars["Int"]["input"]>;
2011
2134
  readonly offset?: InputMaybe<Scalars["Int"]["input"]>;
2012
2135
  };
2013
- type PollSyncEnvelopesResult = {
2136
+ export type PollSyncEnvelopesResult = {
2014
2137
  readonly ackOrdinal: Scalars["Int"]["output"];
2015
2138
  readonly deadLetters: ReadonlyArray<DeadLetterInfo>;
2016
2139
  readonly envelopes: ReadonlyArray<SyncEnvelope>;
2017
2140
  readonly hasMore: Scalars["Boolean"]["output"];
2018
2141
  };
2019
- declare enum PropagationMode {
2142
+ export declare enum PropagationMode {
2020
2143
  Cascade = "CASCADE",
2021
2144
  Orphan = "ORPHAN"
2022
2145
  }
2023
- type Query = {
2146
+ export type Query = {
2024
2147
  readonly document?: Maybe<DocumentWithChildren>;
2025
2148
  readonly documentIncomingRelationshipEdges: DocumentRelationshipResultPage;
2026
2149
  readonly documentIncomingRelationships: PhDocumentResultPage;
@@ -2071,61 +2194,61 @@ type Query = {
2071
2194
  */
2072
2195
  readonly pollSyncEnvelopes: PollSyncEnvelopesResult;
2073
2196
  };
2074
- type QueryDocumentArgs = {
2197
+ export type QueryDocumentArgs = {
2075
2198
  identifier: Scalars["String"]["input"];
2076
2199
  view?: InputMaybe<ViewFilterInput>;
2077
2200
  };
2078
- type QueryDocumentIncomingRelationshipEdgesArgs = {
2201
+ export type QueryDocumentIncomingRelationshipEdgesArgs = {
2079
2202
  paging?: InputMaybe<PagingInput>;
2080
2203
  relationshipType?: InputMaybe<Scalars["String"]["input"]>;
2081
2204
  targetIdentifier: Scalars["String"]["input"];
2082
2205
  view?: InputMaybe<ViewFilterInput>;
2083
2206
  };
2084
- type QueryDocumentIncomingRelationshipsArgs = {
2207
+ export type QueryDocumentIncomingRelationshipsArgs = {
2085
2208
  paging?: InputMaybe<PagingInput>;
2086
2209
  relationshipType: Scalars["String"]["input"];
2087
2210
  targetIdentifier: Scalars["String"]["input"];
2088
2211
  view?: InputMaybe<ViewFilterInput>;
2089
2212
  };
2090
- type QueryDocumentModelsArgs = {
2213
+ export type QueryDocumentModelsArgs = {
2091
2214
  namespace?: InputMaybe<Scalars["String"]["input"]>;
2092
2215
  paging?: InputMaybe<PagingInput>;
2093
2216
  };
2094
- type QueryDocumentOperationsArgs = {
2217
+ export type QueryDocumentOperationsArgs = {
2095
2218
  filter: OperationsFilterInput;
2096
2219
  paging?: InputMaybe<PagingInput>;
2097
2220
  };
2098
- type QueryDocumentOutgoingRelationshipEdgesArgs = {
2221
+ export type QueryDocumentOutgoingRelationshipEdgesArgs = {
2099
2222
  paging?: InputMaybe<PagingInput>;
2100
2223
  relationshipType?: InputMaybe<Scalars["String"]["input"]>;
2101
2224
  sourceIdentifier: Scalars["String"]["input"];
2102
2225
  view?: InputMaybe<ViewFilterInput>;
2103
2226
  };
2104
- type QueryDocumentOutgoingRelationshipsArgs = {
2227
+ export type QueryDocumentOutgoingRelationshipsArgs = {
2105
2228
  paging?: InputMaybe<PagingInput>;
2106
2229
  relationshipType: Scalars["String"]["input"];
2107
2230
  sourceIdentifier: Scalars["String"]["input"];
2108
2231
  view?: InputMaybe<ViewFilterInput>;
2109
2232
  };
2110
- type QueryEvaluateActionsArgs = {
2233
+ export type QueryEvaluateActionsArgs = {
2111
2234
  branch?: InputMaybe<Scalars["String"]["input"]>;
2112
2235
  candidates: ReadonlyArray<ActionCandidateInput>;
2113
2236
  documentIdentifier: Scalars["String"]["input"];
2114
2237
  };
2115
- type QueryFindDocumentsArgs = {
2238
+ export type QueryFindDocumentsArgs = {
2116
2239
  paging?: InputMaybe<PagingInput>;
2117
2240
  search?: InputMaybe<SearchFilterInput>;
2118
2241
  view?: InputMaybe<ViewFilterInput>;
2119
2242
  };
2120
- type QueryJobStatusArgs = {
2243
+ export type QueryJobStatusArgs = {
2121
2244
  jobId: Scalars["String"]["input"];
2122
2245
  };
2123
- type QueryPollSyncEnvelopesArgs = {
2246
+ export type QueryPollSyncEnvelopesArgs = {
2124
2247
  channelId: Scalars["String"]["input"];
2125
2248
  outboxAck: Scalars["Int"]["input"];
2126
2249
  outboxLatest: Scalars["Int"]["input"];
2127
2250
  };
2128
- type ReactorOperation = {
2251
+ export type ReactorOperation = {
2129
2252
  readonly action: Action;
2130
2253
  readonly deniedReason?: Maybe<Scalars["String"]["output"]>;
2131
2254
  readonly error?: Maybe<Scalars["String"]["output"]>;
@@ -2135,77 +2258,76 @@ type ReactorOperation = {
2135
2258
  readonly skip: Scalars["Int"]["output"];
2136
2259
  readonly timestampUtcMs: Scalars["String"]["output"];
2137
2260
  };
2138
- type ReactorOperationResultPage = {
2261
+ export type ReactorOperationResultPage = {
2139
2262
  readonly cursor?: Maybe<Scalars["String"]["output"]>;
2140
2263
  readonly hasNextPage: Scalars["Boolean"]["output"];
2141
2264
  readonly hasPreviousPage: Scalars["Boolean"]["output"];
2142
2265
  readonly items: ReadonlyArray<ReactorOperation>;
2143
- readonly totalCount: Scalars["Int"]["output"];
2144
2266
  };
2145
- type ReactorSigner = {
2267
+ export type ReactorSigner = {
2146
2268
  readonly app?: Maybe<ReactorSignerApp>;
2147
2269
  readonly signatures: ReadonlyArray<Scalars["String"]["output"]>;
2148
2270
  readonly user?: Maybe<ReactorSignerUser>;
2149
2271
  };
2150
- type ReactorSignerApp = {
2272
+ export type ReactorSignerApp = {
2151
2273
  readonly key: Scalars["String"]["output"];
2152
2274
  readonly name: Scalars["String"]["output"];
2153
2275
  };
2154
- type ReactorSignerAppInput = {
2276
+ export type ReactorSignerAppInput = {
2155
2277
  readonly key: Scalars["String"]["input"];
2156
2278
  readonly name: Scalars["String"]["input"];
2157
2279
  };
2158
- type ReactorSignerInput = {
2280
+ export type ReactorSignerInput = {
2159
2281
  readonly app?: InputMaybe<ReactorSignerAppInput>;
2160
2282
  readonly signatures: ReadonlyArray<Scalars["String"]["input"]>;
2161
2283
  readonly user?: InputMaybe<ReactorSignerUserInput>;
2162
2284
  };
2163
- type ReactorSignerUser = {
2285
+ export type ReactorSignerUser = {
2164
2286
  readonly address: Scalars["String"]["output"];
2165
2287
  readonly chainId: Scalars["Int"]["output"];
2166
2288
  readonly networkId: Scalars["String"]["output"];
2167
2289
  };
2168
- type ReactorSignerUserInput = {
2290
+ export type ReactorSignerUserInput = {
2169
2291
  readonly address: Scalars["String"]["input"];
2170
2292
  readonly chainId: Scalars["Int"]["input"];
2171
2293
  readonly networkId: Scalars["String"]["input"];
2172
2294
  };
2173
- type RemoteCursor = {
2295
+ export type RemoteCursor = {
2174
2296
  readonly cursorOrdinal: Scalars["Int"]["output"];
2175
2297
  readonly lastSyncedAtUtcMs?: Maybe<Scalars["String"]["output"]>;
2176
2298
  readonly remoteName: Scalars["String"]["output"];
2177
2299
  };
2178
- type RemoteCursorInput = {
2300
+ export type RemoteCursorInput = {
2179
2301
  readonly cursorOrdinal: Scalars["Int"]["input"];
2180
2302
  readonly lastSyncedAtUtcMs?: InputMaybe<Scalars["String"]["input"]>;
2181
2303
  readonly remoteName: Scalars["String"]["input"];
2182
2304
  };
2183
- type RemoteFilterInput = {
2305
+ export type RemoteFilterInput = {
2184
2306
  readonly branch: Scalars["String"]["input"];
2185
2307
  readonly documentId: ReadonlyArray<Scalars["String"]["input"]>;
2186
2308
  readonly scope: ReadonlyArray<Scalars["String"]["input"]>;
2187
2309
  };
2188
- type Revision = {
2310
+ export type Revision = {
2189
2311
  readonly revision: Scalars["Int"]["output"];
2190
2312
  readonly scope: Scalars["String"]["output"];
2191
2313
  };
2192
- type SearchFilterInput = {
2314
+ export type SearchFilterInput = {
2193
2315
  readonly identifiers?: InputMaybe<ReadonlyArray<Scalars["String"]["input"]>>;
2194
2316
  readonly parentId?: InputMaybe<Scalars["String"]["input"]>;
2195
2317
  readonly type?: InputMaybe<Scalars["String"]["input"]>;
2196
2318
  };
2197
- type Subscription = {
2319
+ export type Subscription = {
2198
2320
  readonly documentChanges: DocumentChangeEvent;
2199
2321
  readonly jobChanges: JobChangeEvent;
2200
2322
  };
2201
- type SubscriptionDocumentChangesArgs = {
2323
+ export type SubscriptionDocumentChangesArgs = {
2202
2324
  search?: InputMaybe<SearchFilterInput>;
2203
2325
  view?: InputMaybe<ViewFilterInput>;
2204
2326
  };
2205
- type SubscriptionJobChangesArgs = {
2327
+ export type SubscriptionJobChangesArgs = {
2206
2328
  jobId: Scalars["String"]["input"];
2207
2329
  };
2208
- type SyncEnvelope = {
2330
+ export type SyncEnvelope = {
2209
2331
  readonly channelMeta: ChannelMeta;
2210
2332
  readonly cursor?: Maybe<RemoteCursor>;
2211
2333
  readonly dependsOn?: Maybe<ReadonlyArray<Scalars["String"]["output"]>>;
@@ -2213,7 +2335,7 @@ type SyncEnvelope = {
2213
2335
  readonly operations?: Maybe<ReadonlyArray<OperationWithContext>>;
2214
2336
  readonly type: SyncEnvelopeType;
2215
2337
  };
2216
- type SyncEnvelopeInput = {
2338
+ export type SyncEnvelopeInput = {
2217
2339
  readonly channelMeta: ChannelMetaInput;
2218
2340
  readonly cursor?: InputMaybe<RemoteCursorInput>;
2219
2341
  readonly dependsOn?: InputMaybe<ReadonlyArray<Scalars["String"]["input"]>>;
@@ -2221,26 +2343,26 @@ type SyncEnvelopeInput = {
2221
2343
  readonly operations?: InputMaybe<ReadonlyArray<OperationWithContextInput>>;
2222
2344
  readonly type: SyncEnvelopeType;
2223
2345
  };
2224
- declare enum SyncEnvelopeType {
2346
+ export declare enum SyncEnvelopeType {
2225
2347
  Ack = "ACK",
2226
2348
  Operations = "OPERATIONS"
2227
2349
  }
2228
- type TouchChannelInput = {
2350
+ export type TouchChannelInput = {
2229
2351
  readonly collectionId: Scalars["String"]["input"];
2230
2352
  readonly filter: RemoteFilterInput;
2231
2353
  readonly id: Scalars["String"]["input"];
2232
2354
  readonly name: Scalars["String"]["input"];
2233
2355
  readonly sinceTimestampUtcMs: Scalars["String"]["input"];
2234
2356
  };
2235
- type TouchChannelResult = {
2357
+ export type TouchChannelResult = {
2236
2358
  readonly ackOrdinal: Scalars["Int"]["output"];
2237
2359
  readonly success: Scalars["Boolean"]["output"];
2238
2360
  };
2239
- type ViewFilterInput = {
2361
+ export type ViewFilterInput = {
2240
2362
  readonly branch?: InputMaybe<Scalars["String"]["input"]>;
2241
2363
  readonly scopes?: InputMaybe<ReadonlyArray<Scalars["String"]["input"]>>;
2242
2364
  };
2243
- type PhDocumentFieldsFragment = {
2365
+ export type PhDocumentFieldsFragment = {
2244
2366
  readonly id: string;
2245
2367
  readonly slug?: string | null | undefined;
2246
2368
  readonly name: string;
@@ -2253,7 +2375,7 @@ type PhDocumentFieldsFragment = {
2253
2375
  readonly revision: number;
2254
2376
  }>;
2255
2377
  };
2256
- type DocumentRelationshipFieldsFragment = {
2378
+ export type DocumentRelationshipFieldsFragment = {
2257
2379
  readonly sourceId: string;
2258
2380
  readonly targetId: string;
2259
2381
  readonly relationshipType: string;
@@ -2261,13 +2383,12 @@ type DocumentRelationshipFieldsFragment = {
2261
2383
  readonly createdAt: string | Date;
2262
2384
  readonly updatedAt: string | Date;
2263
2385
  };
2264
- type GetDocumentModelsQueryVariables = Exact<{
2386
+ export type GetDocumentModelsQueryVariables = Exact<{
2265
2387
  namespace?: InputMaybe<Scalars["String"]["input"]>;
2266
2388
  paging?: InputMaybe<PagingInput>;
2267
2389
  }>;
2268
- type GetDocumentModelsQuery = {
2390
+ export type GetDocumentModelsQuery = {
2269
2391
  readonly documentModels: {
2270
- readonly totalCount: number;
2271
2392
  readonly hasNextPage: boolean;
2272
2393
  readonly hasPreviousPage: boolean;
2273
2394
  readonly cursor?: string | null | undefined;
@@ -2280,11 +2401,11 @@ type GetDocumentModelsQuery = {
2280
2401
  }>;
2281
2402
  };
2282
2403
  };
2283
- type GetDocumentQueryVariables = Exact<{
2404
+ export type GetDocumentQueryVariables = Exact<{
2284
2405
  identifier: Scalars["String"]["input"];
2285
2406
  view?: InputMaybe<ViewFilterInput>;
2286
2407
  }>;
2287
- type GetDocumentQuery = {
2408
+ export type GetDocumentQuery = {
2288
2409
  readonly document?: {
2289
2410
  readonly childIds: ReadonlyArray<string>;
2290
2411
  readonly document: {
@@ -2302,13 +2423,13 @@ type GetDocumentQuery = {
2302
2423
  };
2303
2424
  } | null | undefined;
2304
2425
  };
2305
- type GetDocumentWithOperationsQueryVariables = Exact<{
2426
+ export type GetDocumentWithOperationsQueryVariables = Exact<{
2306
2427
  identifier: Scalars["String"]["input"];
2307
2428
  view?: InputMaybe<ViewFilterInput>;
2308
2429
  operationsFilter?: InputMaybe<DocumentOperationsFilterInput>;
2309
2430
  operationsPaging?: InputMaybe<PagingInput>;
2310
2431
  }>;
2311
- type GetDocumentWithOperationsQuery = {
2432
+ export type GetDocumentWithOperationsQuery = {
2312
2433
  readonly document?: {
2313
2434
  readonly childIds: ReadonlyArray<string>;
2314
2435
  readonly document: {
@@ -2320,7 +2441,6 @@ type GetDocumentWithOperationsQuery = {
2320
2441
  readonly createdAtUtcIso: string | Date;
2321
2442
  readonly lastModifiedAtUtcIso: string | Date;
2322
2443
  readonly operations?: {
2323
- readonly totalCount: number;
2324
2444
  readonly hasNextPage: boolean;
2325
2445
  readonly hasPreviousPage: boolean;
2326
2446
  readonly cursor?: string | null | undefined;
@@ -2362,15 +2482,14 @@ type GetDocumentWithOperationsQuery = {
2362
2482
  };
2363
2483
  } | null | undefined;
2364
2484
  };
2365
- type GetDocumentOutgoingRelationshipsQueryVariables = Exact<{
2485
+ export type GetDocumentOutgoingRelationshipsQueryVariables = Exact<{
2366
2486
  sourceIdentifier: Scalars["String"]["input"];
2367
2487
  relationshipType: Scalars["String"]["input"];
2368
2488
  view?: InputMaybe<ViewFilterInput>;
2369
2489
  paging?: InputMaybe<PagingInput>;
2370
2490
  }>;
2371
- type GetDocumentOutgoingRelationshipsQuery = {
2491
+ export type GetDocumentOutgoingRelationshipsQuery = {
2372
2492
  readonly documentOutgoingRelationships: {
2373
- readonly totalCount: number;
2374
2493
  readonly hasNextPage: boolean;
2375
2494
  readonly hasPreviousPage: boolean;
2376
2495
  readonly cursor?: string | null | undefined;
@@ -2389,15 +2508,14 @@ type GetDocumentOutgoingRelationshipsQuery = {
2389
2508
  }>;
2390
2509
  };
2391
2510
  };
2392
- type GetDocumentIncomingRelationshipsQueryVariables = Exact<{
2511
+ export type GetDocumentIncomingRelationshipsQueryVariables = Exact<{
2393
2512
  targetIdentifier: Scalars["String"]["input"];
2394
2513
  relationshipType: Scalars["String"]["input"];
2395
2514
  view?: InputMaybe<ViewFilterInput>;
2396
2515
  paging?: InputMaybe<PagingInput>;
2397
2516
  }>;
2398
- type GetDocumentIncomingRelationshipsQuery = {
2517
+ export type GetDocumentIncomingRelationshipsQuery = {
2399
2518
  readonly documentIncomingRelationships: {
2400
- readonly totalCount: number;
2401
2519
  readonly hasNextPage: boolean;
2402
2520
  readonly hasPreviousPage: boolean;
2403
2521
  readonly cursor?: string | null | undefined;
@@ -2416,15 +2534,14 @@ type GetDocumentIncomingRelationshipsQuery = {
2416
2534
  }>;
2417
2535
  };
2418
2536
  };
2419
- type GetDocumentOutgoingRelationshipEdgesQueryVariables = Exact<{
2537
+ export type GetDocumentOutgoingRelationshipEdgesQueryVariables = Exact<{
2420
2538
  sourceIdentifier: Scalars["String"]["input"];
2421
2539
  relationshipType?: InputMaybe<Scalars["String"]["input"]>;
2422
2540
  view?: InputMaybe<ViewFilterInput>;
2423
2541
  paging?: InputMaybe<PagingInput>;
2424
2542
  }>;
2425
- type GetDocumentOutgoingRelationshipEdgesQuery = {
2543
+ export type GetDocumentOutgoingRelationshipEdgesQuery = {
2426
2544
  readonly documentOutgoingRelationshipEdges: {
2427
- readonly totalCount: number;
2428
2545
  readonly hasNextPage: boolean;
2429
2546
  readonly hasPreviousPage: boolean;
2430
2547
  readonly cursor?: string | null | undefined;
@@ -2438,15 +2555,14 @@ type GetDocumentOutgoingRelationshipEdgesQuery = {
2438
2555
  }>;
2439
2556
  };
2440
2557
  };
2441
- type GetDocumentIncomingRelationshipEdgesQueryVariables = Exact<{
2558
+ export type GetDocumentIncomingRelationshipEdgesQueryVariables = Exact<{
2442
2559
  targetIdentifier: Scalars["String"]["input"];
2443
2560
  relationshipType?: InputMaybe<Scalars["String"]["input"]>;
2444
2561
  view?: InputMaybe<ViewFilterInput>;
2445
2562
  paging?: InputMaybe<PagingInput>;
2446
2563
  }>;
2447
- type GetDocumentIncomingRelationshipEdgesQuery = {
2564
+ export type GetDocumentIncomingRelationshipEdgesQuery = {
2448
2565
  readonly documentIncomingRelationshipEdges: {
2449
- readonly totalCount: number;
2450
2566
  readonly hasNextPage: boolean;
2451
2567
  readonly hasPreviousPage: boolean;
2452
2568
  readonly cursor?: string | null | undefined;
@@ -2460,14 +2576,13 @@ type GetDocumentIncomingRelationshipEdgesQuery = {
2460
2576
  }>;
2461
2577
  };
2462
2578
  };
2463
- type FindDocumentsQueryVariables = Exact<{
2579
+ export type FindDocumentsQueryVariables = Exact<{
2464
2580
  search?: InputMaybe<SearchFilterInput>;
2465
2581
  view?: InputMaybe<ViewFilterInput>;
2466
2582
  paging?: InputMaybe<PagingInput>;
2467
2583
  }>;
2468
- type FindDocumentsQuery = {
2584
+ export type FindDocumentsQuery = {
2469
2585
  readonly findDocuments: {
2470
- readonly totalCount: number;
2471
2586
  readonly hasNextPage: boolean;
2472
2587
  readonly hasPreviousPage: boolean;
2473
2588
  readonly cursor?: string | null | undefined;
@@ -2486,13 +2601,12 @@ type FindDocumentsQuery = {
2486
2601
  }>;
2487
2602
  };
2488
2603
  };
2489
- type GetDocumentOperationsQueryVariables = Exact<{
2604
+ export type GetDocumentOperationsQueryVariables = Exact<{
2490
2605
  filter: OperationsFilterInput;
2491
2606
  paging?: InputMaybe<PagingInput>;
2492
2607
  }>;
2493
- type GetDocumentOperationsQuery = {
2608
+ export type GetDocumentOperationsQuery = {
2494
2609
  readonly documentOperations: {
2495
- readonly totalCount: number;
2496
2610
  readonly hasNextPage: boolean;
2497
2611
  readonly hasPreviousPage: boolean;
2498
2612
  readonly cursor?: string | null | undefined;
@@ -2528,10 +2642,10 @@ type GetDocumentOperationsQuery = {
2528
2642
  }>;
2529
2643
  };
2530
2644
  };
2531
- type GetJobStatusQueryVariables = Exact<{
2645
+ export type GetJobStatusQueryVariables = Exact<{
2532
2646
  jobId: Scalars["String"]["input"];
2533
2647
  }>;
2534
- type GetJobStatusQuery = {
2648
+ export type GetJobStatusQuery = {
2535
2649
  readonly jobStatus?: {
2536
2650
  readonly id: string;
2537
2651
  readonly status: string;
@@ -2541,12 +2655,12 @@ type GetJobStatusQuery = {
2541
2655
  readonly completedAt?: string | Date | null | undefined;
2542
2656
  } | null | undefined;
2543
2657
  };
2544
- type EvaluateActionsQueryVariables = Exact<{
2658
+ export type EvaluateActionsQueryVariables = Exact<{
2545
2659
  documentIdentifier: Scalars["String"]["input"];
2546
2660
  branch?: InputMaybe<Scalars["String"]["input"]>;
2547
2661
  candidates: ReadonlyArray<ActionCandidateInput>;
2548
2662
  }>;
2549
- type EvaluateActionsQuery = {
2663
+ export type EvaluateActionsQuery = {
2550
2664
  readonly evaluateActions: {
2551
2665
  readonly allAllowed: boolean;
2552
2666
  readonly anyAllowed: boolean;
@@ -2558,11 +2672,11 @@ type EvaluateActionsQuery = {
2558
2672
  }>;
2559
2673
  };
2560
2674
  };
2561
- type CreateDocumentMutationVariables = Exact<{
2675
+ export type CreateDocumentMutationVariables = Exact<{
2562
2676
  document: Scalars["JSONObject"]["input"];
2563
2677
  parentIdentifier?: InputMaybe<Scalars["String"]["input"]>;
2564
2678
  }>;
2565
- type CreateDocumentMutation = {
2679
+ export type CreateDocumentMutation = {
2566
2680
  readonly createDocument: {
2567
2681
  readonly id: string;
2568
2682
  readonly slug?: string | null | undefined;
@@ -2577,11 +2691,11 @@ type CreateDocumentMutation = {
2577
2691
  }>;
2578
2692
  };
2579
2693
  };
2580
- type CreateEmptyDocumentMutationVariables = Exact<{
2694
+ export type CreateEmptyDocumentMutationVariables = Exact<{
2581
2695
  documentType: Scalars["String"]["input"];
2582
2696
  parentIdentifier?: InputMaybe<Scalars["String"]["input"]>;
2583
2697
  }>;
2584
- type CreateEmptyDocumentMutation = {
2698
+ export type CreateEmptyDocumentMutation = {
2585
2699
  readonly createEmptyDocument: {
2586
2700
  readonly id: string;
2587
2701
  readonly slug?: string | null | undefined;
@@ -2596,12 +2710,12 @@ type CreateEmptyDocumentMutation = {
2596
2710
  }>;
2597
2711
  };
2598
2712
  };
2599
- type MutateDocumentMutationVariables = Exact<{
2713
+ export type MutateDocumentMutationVariables = Exact<{
2600
2714
  documentIdentifier: Scalars["String"]["input"];
2601
2715
  actions: ReadonlyArray<ActionInput>;
2602
2716
  branch?: InputMaybe<Scalars["String"]["input"]>;
2603
2717
  }>;
2604
- type MutateDocumentMutation = {
2718
+ export type MutateDocumentMutation = {
2605
2719
  readonly mutateDocument: {
2606
2720
  readonly id: string;
2607
2721
  readonly slug?: string | null | undefined;
@@ -2616,12 +2730,12 @@ type MutateDocumentMutation = {
2616
2730
  }>;
2617
2731
  };
2618
2732
  };
2619
- type MutateDocumentAsyncMutationVariables = Exact<{
2733
+ export type MutateDocumentAsyncMutationVariables = Exact<{
2620
2734
  documentIdentifier: Scalars["String"]["input"];
2621
2735
  actions: ReadonlyArray<ActionInput>;
2622
2736
  branch?: InputMaybe<Scalars["String"]["input"]>;
2623
2737
  }>;
2624
- type MutateDocumentAsyncMutation = {
2738
+ export type MutateDocumentAsyncMutation = {
2625
2739
  readonly mutateDocumentAsync: {
2626
2740
  readonly id: string;
2627
2741
  readonly status: string;
@@ -2631,12 +2745,12 @@ type MutateDocumentAsyncMutation = {
2631
2745
  readonly completedAt?: string | Date | null | undefined;
2632
2746
  };
2633
2747
  };
2634
- type RenameDocumentMutationVariables = Exact<{
2748
+ export type RenameDocumentMutationVariables = Exact<{
2635
2749
  documentIdentifier: Scalars["String"]["input"];
2636
2750
  name: Scalars["String"]["input"];
2637
2751
  branch?: InputMaybe<Scalars["String"]["input"]>;
2638
2752
  }>;
2639
- type RenameDocumentMutation = {
2753
+ export type RenameDocumentMutation = {
2640
2754
  readonly renameDocument: {
2641
2755
  readonly id: string;
2642
2756
  readonly slug?: string | null | undefined;
@@ -2651,12 +2765,12 @@ type RenameDocumentMutation = {
2651
2765
  }>;
2652
2766
  };
2653
2767
  };
2654
- type SetPreferredEditorMutationVariables = Exact<{
2768
+ export type SetPreferredEditorMutationVariables = Exact<{
2655
2769
  documentIdentifier: Scalars["String"]["input"];
2656
2770
  preferredEditor?: InputMaybe<Scalars["String"]["input"]>;
2657
2771
  branch?: InputMaybe<Scalars["String"]["input"]>;
2658
2772
  }>;
2659
- type SetPreferredEditorMutation = {
2773
+ export type SetPreferredEditorMutation = {
2660
2774
  readonly setPreferredEditor: {
2661
2775
  readonly id: string;
2662
2776
  readonly slug?: string | null | undefined;
@@ -2671,14 +2785,14 @@ type SetPreferredEditorMutation = {
2671
2785
  }>;
2672
2786
  };
2673
2787
  };
2674
- type AddRelationshipMutationVariables = Exact<{
2788
+ export type AddRelationshipMutationVariables = Exact<{
2675
2789
  sourceIdentifier: Scalars["String"]["input"];
2676
2790
  targetIdentifier: Scalars["String"]["input"];
2677
2791
  relationshipType: Scalars["String"]["input"];
2678
2792
  metadata?: InputMaybe<Scalars["JSONObject"]["input"]>;
2679
2793
  branch?: InputMaybe<Scalars["String"]["input"]>;
2680
2794
  }>;
2681
- type AddRelationshipMutation = {
2795
+ export type AddRelationshipMutation = {
2682
2796
  readonly addRelationship: {
2683
2797
  readonly id: string;
2684
2798
  readonly slug?: string | null | undefined;
@@ -2693,14 +2807,14 @@ type AddRelationshipMutation = {
2693
2807
  }>;
2694
2808
  };
2695
2809
  };
2696
- type UpdateRelationshipMutationVariables = Exact<{
2810
+ export type UpdateRelationshipMutationVariables = Exact<{
2697
2811
  sourceIdentifier: Scalars["String"]["input"];
2698
2812
  targetIdentifier: Scalars["String"]["input"];
2699
2813
  relationshipType: Scalars["String"]["input"];
2700
2814
  metadata?: InputMaybe<Scalars["JSONObject"]["input"]>;
2701
2815
  branch?: InputMaybe<Scalars["String"]["input"]>;
2702
2816
  }>;
2703
- type UpdateRelationshipMutation = {
2817
+ export type UpdateRelationshipMutation = {
2704
2818
  readonly updateRelationship: {
2705
2819
  readonly id: string;
2706
2820
  readonly slug?: string | null | undefined;
@@ -2715,13 +2829,13 @@ type UpdateRelationshipMutation = {
2715
2829
  }>;
2716
2830
  };
2717
2831
  };
2718
- type RemoveRelationshipMutationVariables = Exact<{
2832
+ export type RemoveRelationshipMutationVariables = Exact<{
2719
2833
  sourceIdentifier: Scalars["String"]["input"];
2720
2834
  targetIdentifier: Scalars["String"]["input"];
2721
2835
  relationshipType: Scalars["String"]["input"];
2722
2836
  branch?: InputMaybe<Scalars["String"]["input"]>;
2723
2837
  }>;
2724
- type RemoveRelationshipMutation = {
2838
+ export type RemoveRelationshipMutation = {
2725
2839
  readonly removeRelationship: {
2726
2840
  readonly id: string;
2727
2841
  readonly slug?: string | null | undefined;
@@ -2736,14 +2850,14 @@ type RemoveRelationshipMutation = {
2736
2850
  }>;
2737
2851
  };
2738
2852
  };
2739
- type MoveRelationshipMutationVariables = Exact<{
2853
+ export type MoveRelationshipMutationVariables = Exact<{
2740
2854
  sourceParentIdentifier: Scalars["String"]["input"];
2741
2855
  targetParentIdentifier: Scalars["String"]["input"];
2742
2856
  targetIdentifier: Scalars["String"]["input"];
2743
2857
  relationshipType: Scalars["String"]["input"];
2744
2858
  branch?: InputMaybe<Scalars["String"]["input"]>;
2745
2859
  }>;
2746
- type MoveRelationshipMutation = {
2860
+ export type MoveRelationshipMutation = {
2747
2861
  readonly moveRelationship: {
2748
2862
  readonly source: {
2749
2863
  readonly id: string;
@@ -2773,25 +2887,25 @@ type MoveRelationshipMutation = {
2773
2887
  };
2774
2888
  };
2775
2889
  };
2776
- type DeleteDocumentMutationVariables = Exact<{
2890
+ export type DeleteDocumentMutationVariables = Exact<{
2777
2891
  identifier: Scalars["String"]["input"];
2778
2892
  propagate?: InputMaybe<PropagationMode>;
2779
2893
  }>;
2780
- type DeleteDocumentMutation = {
2894
+ export type DeleteDocumentMutation = {
2781
2895
  readonly deleteDocument: boolean;
2782
2896
  };
2783
- type DeleteDocumentsMutationVariables = Exact<{
2897
+ export type DeleteDocumentsMutationVariables = Exact<{
2784
2898
  identifiers: ReadonlyArray<Scalars["String"]["input"]>;
2785
2899
  propagate?: InputMaybe<PropagationMode>;
2786
2900
  }>;
2787
- type DeleteDocumentsMutation = {
2901
+ export type DeleteDocumentsMutation = {
2788
2902
  readonly deleteDocuments: boolean;
2789
2903
  };
2790
- type DocumentChangesSubscriptionVariables = Exact<{
2904
+ export type DocumentChangesSubscriptionVariables = Exact<{
2791
2905
  search?: InputMaybe<SearchFilterInput>;
2792
2906
  view?: InputMaybe<ViewFilterInput>;
2793
2907
  }>;
2794
- type DocumentChangesSubscription = {
2908
+ export type DocumentChangesSubscription = {
2795
2909
  readonly documentChanges: {
2796
2910
  readonly type: DocumentChangeType;
2797
2911
  readonly documents: ReadonlyArray<{
@@ -2813,10 +2927,10 @@ type DocumentChangesSubscription = {
2813
2927
  } | null | undefined;
2814
2928
  };
2815
2929
  };
2816
- type JobChangesSubscriptionVariables = Exact<{
2930
+ export type JobChangesSubscriptionVariables = Exact<{
2817
2931
  jobId: Scalars["String"]["input"];
2818
2932
  }>;
2819
- type JobChangesSubscription = {
2933
+ export type JobChangesSubscription = {
2820
2934
  readonly jobChanges: {
2821
2935
  readonly jobId: string;
2822
2936
  readonly status: string;
@@ -2824,12 +2938,12 @@ type JobChangesSubscription = {
2824
2938
  readonly error?: string | null | undefined;
2825
2939
  };
2826
2940
  };
2827
- type PollSyncEnvelopesQueryVariables = Exact<{
2941
+ export type PollSyncEnvelopesQueryVariables = Exact<{
2828
2942
  channelId: Scalars["String"]["input"];
2829
2943
  outboxAck: Scalars["Int"]["input"];
2830
2944
  outboxLatest: Scalars["Int"]["input"];
2831
2945
  }>;
2832
- type PollSyncEnvelopesQuery = {
2946
+ export type PollSyncEnvelopesQuery = {
2833
2947
  readonly pollSyncEnvelopes: {
2834
2948
  readonly ackOrdinal: number;
2835
2949
  readonly hasMore: boolean;
@@ -2891,47 +3005,47 @@ type PollSyncEnvelopesQuery = {
2891
3005
  }>;
2892
3006
  };
2893
3007
  };
2894
- type TouchChannelMutationVariables = Exact<{
3008
+ export type TouchChannelMutationVariables = Exact<{
2895
3009
  input: TouchChannelInput;
2896
3010
  }>;
2897
- type TouchChannelMutation = {
3011
+ export type TouchChannelMutation = {
2898
3012
  readonly touchChannel: {
2899
3013
  readonly success: boolean;
2900
3014
  readonly ackOrdinal: number;
2901
3015
  };
2902
3016
  };
2903
- type PushSyncEnvelopesMutationVariables = Exact<{
3017
+ export type PushSyncEnvelopesMutationVariables = Exact<{
2904
3018
  envelopes: ReadonlyArray<SyncEnvelopeInput>;
2905
3019
  }>;
2906
- type PushSyncEnvelopesMutation = {
3020
+ export type PushSyncEnvelopesMutation = {
2907
3021
  readonly pushSyncEnvelopes: boolean;
2908
3022
  };
2909
- type WithIndex<TObject> = TObject & Record<string, any>;
2910
- type ResolversObject<TObject> = WithIndex<TObject>;
2911
- type ResolverTypeWrapper<T> = Promise<T> | T;
2912
- type ResolverWithResolve<TResult, TParent, TContext, TArgs> = {
3023
+ export type WithIndex<TObject> = TObject & Record<string, any>;
3024
+ export type ResolversObject<TObject> = WithIndex<TObject>;
3025
+ export type ResolverTypeWrapper<T> = Promise<T> | T;
3026
+ export type ResolverWithResolve<TResult, TParent, TContext, TArgs> = {
2913
3027
  resolve: ResolverFn<TResult, TParent, TContext, TArgs>;
2914
3028
  };
2915
- type Resolver<TResult, TParent = Record<PropertyKey, never>, TContext = Record<PropertyKey, never>, TArgs = Record<PropertyKey, never>> = ResolverFn<TResult, TParent, TContext, TArgs> | ResolverWithResolve<TResult, TParent, TContext, TArgs>;
2916
- type ResolverFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => Promise<TResult> | TResult;
2917
- type SubscriptionSubscribeFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => AsyncIterable<TResult> | Promise<AsyncIterable<TResult>>;
2918
- type SubscriptionResolveFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
2919
- interface SubscriptionSubscriberObject<TResult, TKey extends string, TParent, TContext, TArgs> {
2920
- subscribe: SubscriptionSubscribeFn<{ [key in TKey]: TResult }, TParent, TContext, TArgs>;
2921
- resolve?: SubscriptionResolveFn<TResult, { [key in TKey]: TResult }, TContext, TArgs>;
3029
+ export type Resolver<TResult, TParent = Record<PropertyKey, never>, TContext = Record<PropertyKey, never>, TArgs = Record<PropertyKey, never>> = ResolverFn<TResult, TParent, TContext, TArgs> | ResolverWithResolve<TResult, TParent, TContext, TArgs>;
3030
+ export type ResolverFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => Promise<TResult> | TResult;
3031
+ export type SubscriptionSubscribeFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => AsyncIterable<TResult> | Promise<AsyncIterable<TResult>>;
3032
+ export type SubscriptionResolveFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
3033
+ export interface SubscriptionSubscriberObject<TResult, TKey extends string, TParent, TContext, TArgs> {
3034
+ subscribe: SubscriptionSubscribeFn<{ [key in TKey]: TResult; }, TParent, TContext, TArgs>;
3035
+ resolve?: SubscriptionResolveFn<TResult, { [key in TKey]: TResult; }, TContext, TArgs>;
2922
3036
  }
2923
- interface SubscriptionResolverObject<TResult, TParent, TContext, TArgs> {
3037
+ export interface SubscriptionResolverObject<TResult, TParent, TContext, TArgs> {
2924
3038
  subscribe: SubscriptionSubscribeFn<any, TParent, TContext, TArgs>;
2925
3039
  resolve: SubscriptionResolveFn<TResult, any, TContext, TArgs>;
2926
3040
  }
2927
- type SubscriptionObject<TResult, TKey extends string, TParent, TContext, TArgs> = SubscriptionSubscriberObject<TResult, TKey, TParent, TContext, TArgs> | SubscriptionResolverObject<TResult, TParent, TContext, TArgs>;
2928
- type SubscriptionResolver<TResult, TKey extends string, TParent = Record<PropertyKey, never>, TContext = Record<PropertyKey, never>, TArgs = Record<PropertyKey, never>> = ((...args: any[]) => SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>) | SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>;
2929
- type TypeResolveFn<TTypes, TParent = Record<PropertyKey, never>, TContext = Record<PropertyKey, never>> = (parent: TParent, context: TContext, info: GraphQLResolveInfo) => Maybe<TTypes> | Promise<Maybe<TTypes>>;
2930
- type IsTypeOfResolverFn<T = Record<PropertyKey, never>, TContext = Record<PropertyKey, never>> = (obj: T, context: TContext, info: GraphQLResolveInfo) => boolean | Promise<boolean>;
2931
- type NextResolverFn<T> = () => Promise<T>;
2932
- type DirectiveResolverFn<TResult = Record<PropertyKey, never>, TParent = Record<PropertyKey, never>, TContext = Record<PropertyKey, never>, TArgs = Record<PropertyKey, never>> = (next: NextResolverFn<TResult>, parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
3041
+ export type SubscriptionObject<TResult, TKey extends string, TParent, TContext, TArgs> = SubscriptionSubscriberObject<TResult, TKey, TParent, TContext, TArgs> | SubscriptionResolverObject<TResult, TParent, TContext, TArgs>;
3042
+ export type SubscriptionResolver<TResult, TKey extends string, TParent = Record<PropertyKey, never>, TContext = Record<PropertyKey, never>, TArgs = Record<PropertyKey, never>> = ((...args: any[]) => SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>) | SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>;
3043
+ export type TypeResolveFn<TTypes, TParent = Record<PropertyKey, never>, TContext = Record<PropertyKey, never>> = (parent: TParent, context: TContext, info: GraphQLResolveInfo) => Maybe<TTypes> | Promise<Maybe<TTypes>>;
3044
+ export type IsTypeOfResolverFn<T = Record<PropertyKey, never>, TContext = Record<PropertyKey, never>> = (obj: T, context: TContext, info: GraphQLResolveInfo) => boolean | Promise<boolean>;
3045
+ export type NextResolverFn<T> = () => Promise<T>;
3046
+ export type DirectiveResolverFn<TResult = Record<PropertyKey, never>, TParent = Record<PropertyKey, never>, TContext = Record<PropertyKey, never>, TArgs = Record<PropertyKey, never>> = (next: NextResolverFn<TResult>, parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
2933
3047
  /** Mapping between all available schema types and the resolvers types */
2934
- type ResolversTypes = ResolversObject<{
3048
+ export type ResolversTypes = ResolversObject<{
2935
3049
  Action: ResolverTypeWrapper<Action>;
2936
3050
  ActionCandidateInput: ActionCandidateInput;
2937
3051
  ActionContext: ResolverTypeWrapper<ActionContext>;
@@ -2995,7 +3109,7 @@ type ResolversTypes = ResolversObject<{
2995
3109
  ViewFilterInput: ViewFilterInput;
2996
3110
  }>;
2997
3111
  /** Mapping between all available schema types and the resolvers parents */
2998
- type ResolversParentTypes = ResolversObject<{
3112
+ export type ResolversParentTypes = ResolversObject<{
2999
3113
  Action: Action;
3000
3114
  ActionCandidateInput: ActionCandidateInput;
3001
3115
  ActionContext: ActionContext;
@@ -3054,7 +3168,7 @@ type ResolversParentTypes = ResolversObject<{
3054
3168
  TouchChannelResult: TouchChannelResult;
3055
3169
  ViewFilterInput: ViewFilterInput;
3056
3170
  }>;
3057
- type ActionResolvers<ContextType = Context, ParentType extends ResolversParentTypes["Action"] = ResolversParentTypes["Action"]> = ResolversObject<{
3171
+ export type ActionResolvers<ContextType = Context, ParentType extends ResolversParentTypes["Action"] = ResolversParentTypes["Action"]> = ResolversObject<{
3058
3172
  context?: Resolver<Maybe<ResolversTypes["ActionContext"]>, ParentType, ContextType>;
3059
3173
  id?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
3060
3174
  input?: Resolver<ResolversTypes["JSONObject"], ParentType, ContextType>;
@@ -3062,27 +3176,27 @@ type ActionResolvers<ContextType = Context, ParentType extends ResolversParentTy
3062
3176
  timestampUtcMs?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
3063
3177
  type?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
3064
3178
  }>;
3065
- type ActionContextResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ActionContext"] = ResolversParentTypes["ActionContext"]> = ResolversObject<{
3179
+ export type ActionContextResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ActionContext"] = ResolversParentTypes["ActionContext"]> = ResolversObject<{
3066
3180
  signer?: Resolver<Maybe<ResolversTypes["ReactorSigner"]>, ParentType, ContextType>;
3067
3181
  }>;
3068
- type ActionEvaluationResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ActionEvaluation"] = ResolversParentTypes["ActionEvaluation"]> = ResolversObject<{
3182
+ export type ActionEvaluationResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ActionEvaluation"] = ResolversParentTypes["ActionEvaluation"]> = ResolversObject<{
3069
3183
  decision?: Resolver<ResolversTypes["AuthDecision"], ParentType, ContextType>;
3070
3184
  reason?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
3071
3185
  }>;
3072
- type ActionEvaluationsResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ActionEvaluations"] = ResolversParentTypes["ActionEvaluations"]> = ResolversObject<{
3186
+ export type ActionEvaluationsResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ActionEvaluations"] = ResolversParentTypes["ActionEvaluations"]> = ResolversObject<{
3073
3187
  allAllowed?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
3074
3188
  allDenied?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
3075
3189
  anyAllowed?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
3076
3190
  anyDenied?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
3077
3191
  evaluations?: Resolver<ReadonlyArray<ResolversTypes["ActionEvaluation"]>, ParentType, ContextType>;
3078
3192
  }>;
3079
- type ChannelMetaResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ChannelMeta"] = ResolversParentTypes["ChannelMeta"]> = ResolversObject<{
3193
+ export type ChannelMetaResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ChannelMeta"] = ResolversParentTypes["ChannelMeta"]> = ResolversObject<{
3080
3194
  id?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
3081
3195
  }>;
3082
- interface DateTimeScalarConfig extends GraphQLScalarTypeConfig<ResolversTypes["DateTime"], any> {
3196
+ export interface DateTimeScalarConfig extends GraphQLScalarTypeConfig<ResolversTypes["DateTime"], any> {
3083
3197
  name: "DateTime";
3084
3198
  }
3085
- type DeadLetterInfoResolvers<ContextType = Context, ParentType extends ResolversParentTypes["DeadLetterInfo"] = ResolversParentTypes["DeadLetterInfo"]> = ResolversObject<{
3199
+ export type DeadLetterInfoResolvers<ContextType = Context, ParentType extends ResolversParentTypes["DeadLetterInfo"] = ResolversParentTypes["DeadLetterInfo"]> = ResolversObject<{
3086
3200
  branch?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
3087
3201
  documentId?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
3088
3202
  error?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
@@ -3091,30 +3205,29 @@ type DeadLetterInfoResolvers<ContextType = Context, ParentType extends Resolvers
3091
3205
  operationCount?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
3092
3206
  scopes?: Resolver<ReadonlyArray<ResolversTypes["String"]>, ParentType, ContextType>;
3093
3207
  }>;
3094
- type DocumentChangeContextResolvers<ContextType = Context, ParentType extends ResolversParentTypes["DocumentChangeContext"] = ResolversParentTypes["DocumentChangeContext"]> = ResolversObject<{
3208
+ export type DocumentChangeContextResolvers<ContextType = Context, ParentType extends ResolversParentTypes["DocumentChangeContext"] = ResolversParentTypes["DocumentChangeContext"]> = ResolversObject<{
3095
3209
  childId?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
3096
3210
  parentId?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
3097
3211
  }>;
3098
- type DocumentChangeEventResolvers<ContextType = Context, ParentType extends ResolversParentTypes["DocumentChangeEvent"] = ResolversParentTypes["DocumentChangeEvent"]> = ResolversObject<{
3212
+ export type DocumentChangeEventResolvers<ContextType = Context, ParentType extends ResolversParentTypes["DocumentChangeEvent"] = ResolversParentTypes["DocumentChangeEvent"]> = ResolversObject<{
3099
3213
  context?: Resolver<Maybe<ResolversTypes["DocumentChangeContext"]>, ParentType, ContextType>;
3100
3214
  documents?: Resolver<ReadonlyArray<ResolversTypes["PHDocument"]>, ParentType, ContextType>;
3101
3215
  type?: Resolver<ResolversTypes["DocumentChangeType"], ParentType, ContextType>;
3102
3216
  }>;
3103
- type DocumentModelGlobalStateResolvers<ContextType = Context, ParentType extends ResolversParentTypes["DocumentModelGlobalState"] = ResolversParentTypes["DocumentModelGlobalState"]> = ResolversObject<{
3217
+ export type DocumentModelGlobalStateResolvers<ContextType = Context, ParentType extends ResolversParentTypes["DocumentModelGlobalState"] = ResolversParentTypes["DocumentModelGlobalState"]> = ResolversObject<{
3104
3218
  id?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
3105
3219
  name?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
3106
3220
  namespace?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
3107
3221
  specification?: Resolver<ResolversTypes["JSONObject"], ParentType, ContextType>;
3108
3222
  version?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
3109
3223
  }>;
3110
- type DocumentModelResultPageResolvers<ContextType = Context, ParentType extends ResolversParentTypes["DocumentModelResultPage"] = ResolversParentTypes["DocumentModelResultPage"]> = ResolversObject<{
3224
+ export type DocumentModelResultPageResolvers<ContextType = Context, ParentType extends ResolversParentTypes["DocumentModelResultPage"] = ResolversParentTypes["DocumentModelResultPage"]> = ResolversObject<{
3111
3225
  cursor?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
3112
3226
  hasNextPage?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
3113
3227
  hasPreviousPage?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
3114
3228
  items?: Resolver<ReadonlyArray<ResolversTypes["DocumentModelGlobalState"]>, ParentType, ContextType>;
3115
- totalCount?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
3116
3229
  }>;
3117
- type DocumentRelationshipResolvers<ContextType = Context, ParentType extends ResolversParentTypes["DocumentRelationship"] = ResolversParentTypes["DocumentRelationship"]> = ResolversObject<{
3230
+ export type DocumentRelationshipResolvers<ContextType = Context, ParentType extends ResolversParentTypes["DocumentRelationship"] = ResolversParentTypes["DocumentRelationship"]> = ResolversObject<{
3118
3231
  createdAt?: Resolver<ResolversTypes["DateTime"], ParentType, ContextType>;
3119
3232
  metadata?: Resolver<Maybe<ResolversTypes["JSONObject"]>, ParentType, ContextType>;
3120
3233
  relationshipType?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
@@ -3122,27 +3235,26 @@ type DocumentRelationshipResolvers<ContextType = Context, ParentType extends Res
3122
3235
  targetId?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
3123
3236
  updatedAt?: Resolver<ResolversTypes["DateTime"], ParentType, ContextType>;
3124
3237
  }>;
3125
- type DocumentRelationshipResultPageResolvers<ContextType = Context, ParentType extends ResolversParentTypes["DocumentRelationshipResultPage"] = ResolversParentTypes["DocumentRelationshipResultPage"]> = ResolversObject<{
3238
+ export type DocumentRelationshipResultPageResolvers<ContextType = Context, ParentType extends ResolversParentTypes["DocumentRelationshipResultPage"] = ResolversParentTypes["DocumentRelationshipResultPage"]> = ResolversObject<{
3126
3239
  cursor?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
3127
3240
  hasNextPage?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
3128
3241
  hasPreviousPage?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
3129
3242
  items?: Resolver<ReadonlyArray<ResolversTypes["DocumentRelationship"]>, ParentType, ContextType>;
3130
- totalCount?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
3131
3243
  }>;
3132
- type DocumentWithChildrenResolvers<ContextType = Context, ParentType extends ResolversParentTypes["DocumentWithChildren"] = ResolversParentTypes["DocumentWithChildren"]> = ResolversObject<{
3244
+ export type DocumentWithChildrenResolvers<ContextType = Context, ParentType extends ResolversParentTypes["DocumentWithChildren"] = ResolversParentTypes["DocumentWithChildren"]> = ResolversObject<{
3133
3245
  childIds?: Resolver<ReadonlyArray<ResolversTypes["String"]>, ParentType, ContextType>;
3134
3246
  document?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType>;
3135
3247
  }>;
3136
- interface JsonObjectScalarConfig extends GraphQLScalarTypeConfig<ResolversTypes["JSONObject"], any> {
3248
+ export interface JsonObjectScalarConfig extends GraphQLScalarTypeConfig<ResolversTypes["JSONObject"], any> {
3137
3249
  name: "JSONObject";
3138
3250
  }
3139
- type JobChangeEventResolvers<ContextType = Context, ParentType extends ResolversParentTypes["JobChangeEvent"] = ResolversParentTypes["JobChangeEvent"]> = ResolversObject<{
3251
+ export type JobChangeEventResolvers<ContextType = Context, ParentType extends ResolversParentTypes["JobChangeEvent"] = ResolversParentTypes["JobChangeEvent"]> = ResolversObject<{
3140
3252
  error?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
3141
3253
  jobId?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
3142
3254
  result?: Resolver<Maybe<ResolversTypes["JSONObject"]>, ParentType, ContextType>;
3143
3255
  status?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
3144
3256
  }>;
3145
- type JobInfoResolvers<ContextType = Context, ParentType extends ResolversParentTypes["JobInfo"] = ResolversParentTypes["JobInfo"]> = ResolversObject<{
3257
+ export type JobInfoResolvers<ContextType = Context, ParentType extends ResolversParentTypes["JobInfo"] = ResolversParentTypes["JobInfo"]> = ResolversObject<{
3146
3258
  completedAt?: Resolver<Maybe<ResolversTypes["DateTime"]>, ParentType, ContextType>;
3147
3259
  createdAt?: Resolver<ResolversTypes["DateTime"], ParentType, ContextType>;
3148
3260
  error?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
@@ -3150,11 +3262,11 @@ type JobInfoResolvers<ContextType = Context, ParentType extends ResolversParentT
3150
3262
  result?: Resolver<Maybe<ResolversTypes["JSONObject"]>, ParentType, ContextType>;
3151
3263
  status?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
3152
3264
  }>;
3153
- type MoveRelationshipResultResolvers<ContextType = Context, ParentType extends ResolversParentTypes["MoveRelationshipResult"] = ResolversParentTypes["MoveRelationshipResult"]> = ResolversObject<{
3265
+ export type MoveRelationshipResultResolvers<ContextType = Context, ParentType extends ResolversParentTypes["MoveRelationshipResult"] = ResolversParentTypes["MoveRelationshipResult"]> = ResolversObject<{
3154
3266
  source?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType>;
3155
3267
  target?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType>;
3156
3268
  }>;
3157
- type MutationResolvers<ContextType = Context, ParentType extends ResolversParentTypes["Mutation"] = ResolversParentTypes["Mutation"]> = ResolversObject<{
3269
+ export type MutationResolvers<ContextType = Context, ParentType extends ResolversParentTypes["Mutation"] = ResolversParentTypes["Mutation"]> = ResolversObject<{
3158
3270
  addRelationship?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType, RequireFields<MutationAddRelationshipArgs, "relationshipType" | "sourceIdentifier" | "targetIdentifier">>;
3159
3271
  createDocument?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType, RequireFields<MutationCreateDocumentArgs, "document">>;
3160
3272
  createEmptyDocument?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType, RequireFields<MutationCreateEmptyDocumentArgs, "documentType">>;
@@ -3172,18 +3284,18 @@ type MutationResolvers<ContextType = Context, ParentType extends ResolversParent
3172
3284
  touchChannel?: Resolver<ResolversTypes["TouchChannelResult"], ParentType, ContextType, RequireFields<MutationTouchChannelArgs, "input">>;
3173
3285
  updateRelationship?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType, RequireFields<MutationUpdateRelationshipArgs, "relationshipType" | "sourceIdentifier" | "targetIdentifier">>;
3174
3286
  }>;
3175
- type OperationContextResolvers<ContextType = Context, ParentType extends ResolversParentTypes["OperationContext"] = ResolversParentTypes["OperationContext"]> = ResolversObject<{
3287
+ export type OperationContextResolvers<ContextType = Context, ParentType extends ResolversParentTypes["OperationContext"] = ResolversParentTypes["OperationContext"]> = ResolversObject<{
3176
3288
  branch?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
3177
3289
  documentId?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
3178
3290
  documentType?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
3179
3291
  ordinal?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
3180
3292
  scope?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
3181
3293
  }>;
3182
- type OperationWithContextResolvers<ContextType = Context, ParentType extends ResolversParentTypes["OperationWithContext"] = ResolversParentTypes["OperationWithContext"]> = ResolversObject<{
3294
+ export type OperationWithContextResolvers<ContextType = Context, ParentType extends ResolversParentTypes["OperationWithContext"] = ResolversParentTypes["OperationWithContext"]> = ResolversObject<{
3183
3295
  context?: Resolver<ResolversTypes["OperationContext"], ParentType, ContextType>;
3184
3296
  operation?: Resolver<ResolversTypes["ReactorOperation"], ParentType, ContextType>;
3185
3297
  }>;
3186
- type PhDocumentResolvers<ContextType = Context, ParentType extends ResolversParentTypes["PHDocument"] = ResolversParentTypes["PHDocument"]> = ResolversObject<{
3298
+ export type PhDocumentResolvers<ContextType = Context, ParentType extends ResolversParentTypes["PHDocument"] = ResolversParentTypes["PHDocument"]> = ResolversObject<{
3187
3299
  createdAtUtcIso?: Resolver<ResolversTypes["DateTime"], ParentType, ContextType>;
3188
3300
  documentType?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
3189
3301
  id?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
@@ -3195,20 +3307,19 @@ type PhDocumentResolvers<ContextType = Context, ParentType extends ResolversPare
3195
3307
  slug?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
3196
3308
  state?: Resolver<ResolversTypes["JSONObject"], ParentType, ContextType>;
3197
3309
  }>;
3198
- type PhDocumentResultPageResolvers<ContextType = Context, ParentType extends ResolversParentTypes["PHDocumentResultPage"] = ResolversParentTypes["PHDocumentResultPage"]> = ResolversObject<{
3310
+ export type PhDocumentResultPageResolvers<ContextType = Context, ParentType extends ResolversParentTypes["PHDocumentResultPage"] = ResolversParentTypes["PHDocumentResultPage"]> = ResolversObject<{
3199
3311
  cursor?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
3200
3312
  hasNextPage?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
3201
3313
  hasPreviousPage?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
3202
3314
  items?: Resolver<ReadonlyArray<ResolversTypes["PHDocument"]>, ParentType, ContextType>;
3203
- totalCount?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
3204
3315
  }>;
3205
- type PollSyncEnvelopesResultResolvers<ContextType = Context, ParentType extends ResolversParentTypes["PollSyncEnvelopesResult"] = ResolversParentTypes["PollSyncEnvelopesResult"]> = ResolversObject<{
3316
+ export type PollSyncEnvelopesResultResolvers<ContextType = Context, ParentType extends ResolversParentTypes["PollSyncEnvelopesResult"] = ResolversParentTypes["PollSyncEnvelopesResult"]> = ResolversObject<{
3206
3317
  ackOrdinal?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
3207
3318
  deadLetters?: Resolver<ReadonlyArray<ResolversTypes["DeadLetterInfo"]>, ParentType, ContextType>;
3208
3319
  envelopes?: Resolver<ReadonlyArray<ResolversTypes["SyncEnvelope"]>, ParentType, ContextType>;
3209
3320
  hasMore?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
3210
3321
  }>;
3211
- type QueryResolvers<ContextType = Context, ParentType extends ResolversParentTypes["Query"] = ResolversParentTypes["Query"]> = ResolversObject<{
3322
+ export type QueryResolvers<ContextType = Context, ParentType extends ResolversParentTypes["Query"] = ResolversParentTypes["Query"]> = ResolversObject<{
3212
3323
  document?: Resolver<Maybe<ResolversTypes["DocumentWithChildren"]>, ParentType, ContextType, RequireFields<QueryDocumentArgs, "identifier">>;
3213
3324
  documentIncomingRelationshipEdges?: Resolver<ResolversTypes["DocumentRelationshipResultPage"], ParentType, ContextType, RequireFields<QueryDocumentIncomingRelationshipEdgesArgs, "targetIdentifier">>;
3214
3325
  documentIncomingRelationships?: Resolver<ResolversTypes["PHDocumentResultPage"], ParentType, ContextType, RequireFields<QueryDocumentIncomingRelationshipsArgs, "relationshipType" | "targetIdentifier">>;
@@ -3221,7 +3332,7 @@ type QueryResolvers<ContextType = Context, ParentType extends ResolversParentTyp
3221
3332
  jobStatus?: Resolver<Maybe<ResolversTypes["JobInfo"]>, ParentType, ContextType, RequireFields<QueryJobStatusArgs, "jobId">>;
3222
3333
  pollSyncEnvelopes?: Resolver<ResolversTypes["PollSyncEnvelopesResult"], ParentType, ContextType, RequireFields<QueryPollSyncEnvelopesArgs, "channelId" | "outboxAck" | "outboxLatest">>;
3223
3334
  }>;
3224
- type ReactorOperationResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ReactorOperation"] = ResolversParentTypes["ReactorOperation"]> = ResolversObject<{
3335
+ export type ReactorOperationResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ReactorOperation"] = ResolversParentTypes["ReactorOperation"]> = ResolversObject<{
3225
3336
  action?: Resolver<ResolversTypes["Action"], ParentType, ContextType>;
3226
3337
  deniedReason?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
3227
3338
  error?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
@@ -3231,41 +3342,40 @@ type ReactorOperationResolvers<ContextType = Context, ParentType extends Resolve
3231
3342
  skip?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
3232
3343
  timestampUtcMs?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
3233
3344
  }>;
3234
- type ReactorOperationResultPageResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ReactorOperationResultPage"] = ResolversParentTypes["ReactorOperationResultPage"]> = ResolversObject<{
3345
+ export type ReactorOperationResultPageResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ReactorOperationResultPage"] = ResolversParentTypes["ReactorOperationResultPage"]> = ResolversObject<{
3235
3346
  cursor?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
3236
3347
  hasNextPage?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
3237
3348
  hasPreviousPage?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
3238
3349
  items?: Resolver<ReadonlyArray<ResolversTypes["ReactorOperation"]>, ParentType, ContextType>;
3239
- totalCount?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
3240
3350
  }>;
3241
- type ReactorSignerResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ReactorSigner"] = ResolversParentTypes["ReactorSigner"]> = ResolversObject<{
3351
+ export type ReactorSignerResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ReactorSigner"] = ResolversParentTypes["ReactorSigner"]> = ResolversObject<{
3242
3352
  app?: Resolver<Maybe<ResolversTypes["ReactorSignerApp"]>, ParentType, ContextType>;
3243
3353
  signatures?: Resolver<ReadonlyArray<ResolversTypes["String"]>, ParentType, ContextType>;
3244
3354
  user?: Resolver<Maybe<ResolversTypes["ReactorSignerUser"]>, ParentType, ContextType>;
3245
3355
  }>;
3246
- type ReactorSignerAppResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ReactorSignerApp"] = ResolversParentTypes["ReactorSignerApp"]> = ResolversObject<{
3356
+ export type ReactorSignerAppResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ReactorSignerApp"] = ResolversParentTypes["ReactorSignerApp"]> = ResolversObject<{
3247
3357
  key?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
3248
3358
  name?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
3249
3359
  }>;
3250
- type ReactorSignerUserResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ReactorSignerUser"] = ResolversParentTypes["ReactorSignerUser"]> = ResolversObject<{
3360
+ export type ReactorSignerUserResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ReactorSignerUser"] = ResolversParentTypes["ReactorSignerUser"]> = ResolversObject<{
3251
3361
  address?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
3252
3362
  chainId?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
3253
3363
  networkId?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
3254
3364
  }>;
3255
- type RemoteCursorResolvers<ContextType = Context, ParentType extends ResolversParentTypes["RemoteCursor"] = ResolversParentTypes["RemoteCursor"]> = ResolversObject<{
3365
+ export type RemoteCursorResolvers<ContextType = Context, ParentType extends ResolversParentTypes["RemoteCursor"] = ResolversParentTypes["RemoteCursor"]> = ResolversObject<{
3256
3366
  cursorOrdinal?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
3257
3367
  lastSyncedAtUtcMs?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
3258
3368
  remoteName?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
3259
3369
  }>;
3260
- type RevisionResolvers<ContextType = Context, ParentType extends ResolversParentTypes["Revision"] = ResolversParentTypes["Revision"]> = ResolversObject<{
3370
+ export type RevisionResolvers<ContextType = Context, ParentType extends ResolversParentTypes["Revision"] = ResolversParentTypes["Revision"]> = ResolversObject<{
3261
3371
  revision?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
3262
3372
  scope?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
3263
3373
  }>;
3264
- type SubscriptionResolvers<ContextType = Context, ParentType extends ResolversParentTypes["Subscription"] = ResolversParentTypes["Subscription"]> = ResolversObject<{
3374
+ export type SubscriptionResolvers<ContextType = Context, ParentType extends ResolversParentTypes["Subscription"] = ResolversParentTypes["Subscription"]> = ResolversObject<{
3265
3375
  documentChanges?: SubscriptionResolver<ResolversTypes["DocumentChangeEvent"], "documentChanges", ParentType, ContextType, Partial<SubscriptionDocumentChangesArgs>>;
3266
3376
  jobChanges?: SubscriptionResolver<ResolversTypes["JobChangeEvent"], "jobChanges", ParentType, ContextType, RequireFields<SubscriptionJobChangesArgs, "jobId">>;
3267
3377
  }>;
3268
- type SyncEnvelopeResolvers<ContextType = Context, ParentType extends ResolversParentTypes["SyncEnvelope"] = ResolversParentTypes["SyncEnvelope"]> = ResolversObject<{
3378
+ export type SyncEnvelopeResolvers<ContextType = Context, ParentType extends ResolversParentTypes["SyncEnvelope"] = ResolversParentTypes["SyncEnvelope"]> = ResolversObject<{
3269
3379
  channelMeta?: Resolver<ResolversTypes["ChannelMeta"], ParentType, ContextType>;
3270
3380
  cursor?: Resolver<Maybe<ResolversTypes["RemoteCursor"]>, ParentType, ContextType>;
3271
3381
  dependsOn?: Resolver<Maybe<ReadonlyArray<ResolversTypes["String"]>>, ParentType, ContextType>;
@@ -3273,11 +3383,11 @@ type SyncEnvelopeResolvers<ContextType = Context, ParentType extends ResolversPa
3273
3383
  operations?: Resolver<Maybe<ReadonlyArray<ResolversTypes["OperationWithContext"]>>, ParentType, ContextType>;
3274
3384
  type?: Resolver<ResolversTypes["SyncEnvelopeType"], ParentType, ContextType>;
3275
3385
  }>;
3276
- type TouchChannelResultResolvers<ContextType = Context, ParentType extends ResolversParentTypes["TouchChannelResult"] = ResolversParentTypes["TouchChannelResult"]> = ResolversObject<{
3386
+ export type TouchChannelResultResolvers<ContextType = Context, ParentType extends ResolversParentTypes["TouchChannelResult"] = ResolversParentTypes["TouchChannelResult"]> = ResolversObject<{
3277
3387
  ackOrdinal?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
3278
3388
  success?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
3279
3389
  }>;
3280
- type Resolvers<ContextType = Context> = ResolversObject<{
3390
+ export type Resolvers<ContextType = Context> = ResolversObject<{
3281
3391
  Action?: ActionResolvers<ContextType>;
3282
3392
  ActionContext?: ActionContextResolvers<ContextType>;
3283
3393
  ActionEvaluation?: ActionEvaluationResolvers<ContextType>;
@@ -3314,65 +3424,65 @@ type Resolvers<ContextType = Context> = ResolversObject<{
3314
3424
  SyncEnvelope?: SyncEnvelopeResolvers<ContextType>;
3315
3425
  TouchChannelResult?: TouchChannelResultResolvers<ContextType>;
3316
3426
  }>;
3317
- type Properties<T> = Required<{ [K in keyof T]: z$1.ZodType<T[K]> }>;
3427
+ type Properties<T> = Required<{ [K in keyof T]: z$1.ZodType<T[K]>; }>;
3318
3428
  type definedNonNullAny = {};
3319
- declare const isDefinedNonNullAny: (v: any) => v is definedNonNullAny;
3320
- declare const definedNonNullAnySchema: z$1.ZodAny & z$1.ZodType<definedNonNullAny, any, z$1.core.$ZodTypeInternals<definedNonNullAny, any>>;
3321
- declare const AuthDecisionSchema: z$1.ZodEnum<typeof AuthDecision>;
3322
- declare const DocumentChangeTypeSchema: z$1.ZodEnum<typeof DocumentChangeType>;
3323
- declare const PropagationModeSchema: z$1.ZodEnum<typeof PropagationMode>;
3324
- declare const SyncEnvelopeTypeSchema: z$1.ZodEnum<typeof SyncEnvelopeType>;
3325
- declare function ActionCandidateInputSchema(): z$1.ZodObject<Properties<ActionCandidateInput>>;
3326
- declare function ActionContextInputSchema(): z$1.ZodObject<Properties<ActionContextInput>>;
3327
- declare function ActionInputSchema(): z$1.ZodObject<Properties<ActionInput>>;
3328
- declare function ChannelMetaInputSchema(): z$1.ZodObject<Properties<ChannelMetaInput>>;
3329
- declare function DocumentOperationsFilterInputSchema(): z$1.ZodObject<Properties<DocumentOperationsFilterInput>>;
3330
- declare function OperationContextInputSchema(): z$1.ZodObject<Properties<OperationContextInput>>;
3331
- declare function OperationInputSchema(): z$1.ZodObject<Properties<OperationInput>>;
3332
- declare function OperationWithContextInputSchema(): z$1.ZodObject<Properties<OperationWithContextInput>>;
3333
- declare function OperationsFilterInputSchema(): z$1.ZodObject<Properties<OperationsFilterInput>>;
3334
- declare function PagingInputSchema(): z$1.ZodObject<Properties<PagingInput>>;
3335
- declare function ReactorSignerAppInputSchema(): z$1.ZodObject<Properties<ReactorSignerAppInput>>;
3336
- declare function ReactorSignerInputSchema(): z$1.ZodObject<Properties<ReactorSignerInput>>;
3337
- declare function ReactorSignerUserInputSchema(): z$1.ZodObject<Properties<ReactorSignerUserInput>>;
3338
- declare function RemoteCursorInputSchema(): z$1.ZodObject<Properties<RemoteCursorInput>>;
3339
- declare function RemoteFilterInputSchema(): z$1.ZodObject<Properties<RemoteFilterInput>>;
3340
- declare function SearchFilterInputSchema(): z$1.ZodObject<Properties<SearchFilterInput>>;
3341
- declare function SyncEnvelopeInputSchema(): z$1.ZodObject<Properties<SyncEnvelopeInput>>;
3342
- declare function TouchChannelInputSchema(): z$1.ZodObject<Properties<TouchChannelInput>>;
3343
- declare function ViewFilterInputSchema(): z$1.ZodObject<Properties<ViewFilterInput>>;
3344
- declare const PhDocumentFieldsFragmentDoc: DocumentNode;
3345
- declare const DocumentRelationshipFieldsFragmentDoc: DocumentNode;
3346
- declare const GetDocumentModelsDocument: DocumentNode;
3347
- declare const GetDocumentDocument: DocumentNode;
3348
- declare const GetDocumentWithOperationsDocument: DocumentNode;
3349
- declare const GetDocumentOutgoingRelationshipsDocument: DocumentNode;
3350
- declare const GetDocumentIncomingRelationshipsDocument: DocumentNode;
3351
- declare const GetDocumentOutgoingRelationshipEdgesDocument: DocumentNode;
3352
- declare const GetDocumentIncomingRelationshipEdgesDocument: DocumentNode;
3353
- declare const FindDocumentsDocument: DocumentNode;
3354
- declare const GetDocumentOperationsDocument: DocumentNode;
3355
- declare const GetJobStatusDocument: DocumentNode;
3356
- declare const EvaluateActionsDocument: DocumentNode;
3357
- declare const CreateDocumentDocument: DocumentNode;
3358
- declare const CreateEmptyDocumentDocument: DocumentNode;
3359
- declare const MutateDocumentDocument: DocumentNode;
3360
- declare const MutateDocumentAsyncDocument: DocumentNode;
3361
- declare const RenameDocumentDocument: DocumentNode;
3362
- declare const SetPreferredEditorDocument: DocumentNode;
3363
- declare const AddRelationshipDocument: DocumentNode;
3364
- declare const UpdateRelationshipDocument: DocumentNode;
3365
- declare const RemoveRelationshipDocument: DocumentNode;
3366
- declare const MoveRelationshipDocument: DocumentNode;
3367
- declare const DeleteDocumentDocument: DocumentNode;
3368
- declare const DeleteDocumentsDocument: DocumentNode;
3369
- declare const DocumentChangesDocument: DocumentNode;
3370
- declare const JobChangesDocument: DocumentNode;
3371
- declare const PollSyncEnvelopesDocument: DocumentNode;
3372
- declare const TouchChannelDocument: DocumentNode;
3373
- declare const PushSyncEnvelopesDocument: DocumentNode;
3374
- type Requester<C = {}> = <R, V>(doc: DocumentNode, vars?: V, options?: C) => Promise<R> | AsyncIterable<R>;
3375
- declare function getSdk<C>(requester: Requester<C>): {
3429
+ export declare const isDefinedNonNullAny: (v: any) => v is definedNonNullAny;
3430
+ export declare const definedNonNullAnySchema: z$1.ZodAny & z$1.ZodType<definedNonNullAny, any, z$1.core.$ZodTypeInternals<definedNonNullAny, any>>;
3431
+ export declare const AuthDecisionSchema: z$1.ZodEnum<typeof AuthDecision>;
3432
+ export declare const DocumentChangeTypeSchema: z$1.ZodEnum<typeof DocumentChangeType>;
3433
+ export declare const PropagationModeSchema: z$1.ZodEnum<typeof PropagationMode>;
3434
+ export declare const SyncEnvelopeTypeSchema: z$1.ZodEnum<typeof SyncEnvelopeType>;
3435
+ export declare function ActionCandidateInputSchema(): z$1.ZodObject<Properties<ActionCandidateInput>>;
3436
+ export declare function ActionContextInputSchema(): z$1.ZodObject<Properties<ActionContextInput>>;
3437
+ export declare function ActionInputSchema(): z$1.ZodObject<Properties<ActionInput>>;
3438
+ export declare function ChannelMetaInputSchema(): z$1.ZodObject<Properties<ChannelMetaInput>>;
3439
+ export declare function DocumentOperationsFilterInputSchema(): z$1.ZodObject<Properties<DocumentOperationsFilterInput>>;
3440
+ export declare function OperationContextInputSchema(): z$1.ZodObject<Properties<OperationContextInput>>;
3441
+ export declare function OperationInputSchema(): z$1.ZodObject<Properties<OperationInput>>;
3442
+ export declare function OperationWithContextInputSchema(): z$1.ZodObject<Properties<OperationWithContextInput>>;
3443
+ export declare function OperationsFilterInputSchema(): z$1.ZodObject<Properties<OperationsFilterInput>>;
3444
+ export declare function PagingInputSchema(): z$1.ZodObject<Properties<PagingInput>>;
3445
+ export declare function ReactorSignerAppInputSchema(): z$1.ZodObject<Properties<ReactorSignerAppInput>>;
3446
+ export declare function ReactorSignerInputSchema(): z$1.ZodObject<Properties<ReactorSignerInput>>;
3447
+ export declare function ReactorSignerUserInputSchema(): z$1.ZodObject<Properties<ReactorSignerUserInput>>;
3448
+ export declare function RemoteCursorInputSchema(): z$1.ZodObject<Properties<RemoteCursorInput>>;
3449
+ export declare function RemoteFilterInputSchema(): z$1.ZodObject<Properties<RemoteFilterInput>>;
3450
+ export declare function SearchFilterInputSchema(): z$1.ZodObject<Properties<SearchFilterInput>>;
3451
+ export declare function SyncEnvelopeInputSchema(): z$1.ZodObject<Properties<SyncEnvelopeInput>>;
3452
+ export declare function TouchChannelInputSchema(): z$1.ZodObject<Properties<TouchChannelInput>>;
3453
+ export declare function ViewFilterInputSchema(): z$1.ZodObject<Properties<ViewFilterInput>>;
3454
+ export declare const PhDocumentFieldsFragmentDoc: DocumentNode;
3455
+ export declare const DocumentRelationshipFieldsFragmentDoc: DocumentNode;
3456
+ export declare const GetDocumentModelsDocument: DocumentNode;
3457
+ export declare const GetDocumentDocument: DocumentNode;
3458
+ export declare const GetDocumentWithOperationsDocument: DocumentNode;
3459
+ export declare const GetDocumentOutgoingRelationshipsDocument: DocumentNode;
3460
+ export declare const GetDocumentIncomingRelationshipsDocument: DocumentNode;
3461
+ export declare const GetDocumentOutgoingRelationshipEdgesDocument: DocumentNode;
3462
+ export declare const GetDocumentIncomingRelationshipEdgesDocument: DocumentNode;
3463
+ export declare const FindDocumentsDocument: DocumentNode;
3464
+ export declare const GetDocumentOperationsDocument: DocumentNode;
3465
+ export declare const GetJobStatusDocument: DocumentNode;
3466
+ export declare const EvaluateActionsDocument: DocumentNode;
3467
+ export declare const CreateDocumentDocument: DocumentNode;
3468
+ export declare const CreateEmptyDocumentDocument: DocumentNode;
3469
+ export declare const MutateDocumentDocument: DocumentNode;
3470
+ export declare const MutateDocumentAsyncDocument: DocumentNode;
3471
+ export declare const RenameDocumentDocument: DocumentNode;
3472
+ export declare const SetPreferredEditorDocument: DocumentNode;
3473
+ export declare const AddRelationshipDocument: DocumentNode;
3474
+ export declare const UpdateRelationshipDocument: DocumentNode;
3475
+ export declare const RemoveRelationshipDocument: DocumentNode;
3476
+ export declare const MoveRelationshipDocument: DocumentNode;
3477
+ export declare const DeleteDocumentDocument: DocumentNode;
3478
+ export declare const DeleteDocumentsDocument: DocumentNode;
3479
+ export declare const DocumentChangesDocument: DocumentNode;
3480
+ export declare const JobChangesDocument: DocumentNode;
3481
+ export declare const PollSyncEnvelopesDocument: DocumentNode;
3482
+ export declare const TouchChannelDocument: DocumentNode;
3483
+ export declare const PushSyncEnvelopesDocument: DocumentNode;
3484
+ export type Requester<C = {}> = <R, V>(doc: DocumentNode, vars?: V, options?: C) => Promise<R> | AsyncIterable<R>;
3485
+ export declare function getSdk<C>(requester: Requester<C>): {
3376
3486
  GetDocumentModels(variables?: GetDocumentModelsQueryVariables, options?: C): Promise<GetDocumentModelsQuery>;
3377
3487
  GetDocument(variables: GetDocumentQueryVariables, options?: C): Promise<GetDocumentQuery>;
3378
3488
  GetDocumentWithOperations(variables: GetDocumentWithOperationsQueryVariables, options?: C): Promise<GetDocumentWithOperationsQuery>;
@@ -3402,13 +3512,13 @@ declare function getSdk<C>(requester: Requester<C>): {
3402
3512
  TouchChannel(variables: TouchChannelMutationVariables, options?: C): Promise<TouchChannelMutation>;
3403
3513
  PushSyncEnvelopes(variables: PushSyncEnvelopesMutationVariables, options?: C): Promise<PushSyncEnvelopesMutation>;
3404
3514
  };
3405
- type Sdk = ReturnType<typeof getSdk>;
3515
+ export type Sdk = ReturnType<typeof getSdk>;
3406
3516
  //#endregion
3407
3517
  //#region src/graphql/reactor/requester.d.ts
3408
3518
  type FetchLike = (input: URL | string, init: RequestInit) => Promise<Response>;
3409
3519
  //#endregion
3410
3520
  //#region src/graphql/reactor/factory.d.ts
3411
- declare function createReactorGraphQLClient(url: string, fetchImpl?: FetchLike, headers?: Record<string, string>): {
3521
+ export declare function createReactorGraphQLClient(url: string, fetchImpl?: FetchLike, headers?: Record<string, string>): {
3412
3522
  GetDocumentModels(variables?: Exact<{
3413
3523
  namespace?: InputMaybe<Scalars["String"]["input"]>;
3414
3524
  paging?: InputMaybe<PagingInput>;
@@ -3548,12 +3658,13 @@ declare function createReactorGraphQLClient(url: string, fetchImpl?: FetchLike,
3548
3658
  };
3549
3659
  //#endregion
3550
3660
  //#region src/graphql/reactor/subgraph.d.ts
3551
- declare class ReactorSubgraph extends BaseSubgraph {
3661
+ export declare class ReactorSubgraph extends BaseSubgraph {
3552
3662
  #private;
3553
3663
  private logger;
3554
3664
  constructor(args: SubgraphArgs);
3555
3665
  name: string;
3556
3666
  hasSubscriptions: boolean;
3667
+ private get documentChanges();
3557
3668
  /**
3558
3669
  * Check operation-level permissions for an array of actions.
3559
3670
  * Delegates to base assertCanExecuteOperation for each action.
@@ -3568,31 +3679,25 @@ declare class ReactorSubgraph extends BaseSubgraph {
3568
3679
  * or they become a way to enumerate around that check. Supreme admins read
3569
3680
  * everything, so the per-edge check is skipped for them.
3570
3681
  *
3571
- * The counts describe what is served; the cursor describes where to resume in
3572
- * the underlying unfiltered stream, so it is left as it came. A filtered page
3573
- * is therefore often shorter than the requested limit, and that is the stream
3574
- * continuing rather than a sign it ended.
3682
+ * The cursor describes where to resume in the underlying unfiltered stream,
3683
+ * so it is left as it came. A filtered page is therefore often shorter than
3684
+ * the requested limit, and that is the stream continuing rather than a sign
3685
+ * it ended.
3575
3686
  */
3576
3687
  private filterRelationshipEdges;
3577
- /**
3578
- * Restates a page's totalCount over the items that survived a read filter, so
3579
- * that the difference between the two cannot be read off as a count of what
3580
- * the caller was not allowed to see.
3581
- */
3582
- private servedPage;
3583
- typeDefs: graphql.DocumentNode;
3688
+ typeDefs: import("graphql").DocumentNode;
3584
3689
  resolvers: Resolvers;
3585
3690
  onSetup(): Promise<void>;
3586
3691
  }
3587
3692
  //#endregion
3588
3693
  //#region src/graphql/system/env/index.d.ts
3589
- declare const ADMIN_USERS: string[];
3694
+ export declare const ADMIN_USERS: string[];
3590
3695
  //#endregion
3591
3696
  //#region src/graphql/system/subgraph.d.ts
3592
- declare class SystemSubgraph extends BaseSubgraph {
3697
+ export declare class SystemSubgraph extends BaseSubgraph {
3593
3698
  name: string;
3594
3699
  hasSubscriptions: boolean;
3595
- typeDefs: graphql.DocumentNode;
3700
+ typeDefs: import("graphql").DocumentNode;
3596
3701
  resolvers: {
3597
3702
  Query: {
3598
3703
  system: () => {
@@ -3605,24 +3710,24 @@ declare class SystemSubgraph extends BaseSubgraph {
3605
3710
  }
3606
3711
  //#endregion
3607
3712
  //#region src/graphql/system/version.d.ts
3608
- declare function getVersion(): string;
3609
- declare function getGitHash(): string;
3610
- declare function getGitUrl(): string | null;
3713
+ export declare function getVersion(): string;
3714
+ export declare function getGitHash(): string;
3715
+ export declare function getGitUrl(): string | null;
3611
3716
  //#endregion
3612
3717
  //#region src/graphql/utils.d.ts
3613
- declare function isSubgraphClass(candidate: unknown): candidate is SubgraphClass$1;
3614
- declare function buildGraphqlOperations(operations: Operation[], skip: number, first: number): GqlOperation$1[];
3615
- declare function buildGraphqlOperation(operation: Operation): GqlOperation$1;
3616
- declare function buildGraphQlDocument(doc: PHDocument): GqlDocument$1;
3617
- declare function buildGraphQlDriveDocument(doc: DocumentDriveDocument): GqlDriveDocument$1;
3718
+ export declare function isSubgraphClass(candidate: unknown): candidate is SubgraphClass$1;
3719
+ export declare function buildGraphqlOperations(operations: Operation[], skip: number, first: number): GqlOperation$1[];
3720
+ export declare function buildGraphqlOperation(operation: Operation): GqlOperation$1;
3721
+ export declare function buildGraphQlDocument(doc: PHDocument): GqlDocument$1;
3722
+ export declare function buildGraphQlDriveDocument(doc: DocumentDriveDocument): GqlDriveDocument$1;
3618
3723
  //#endregion
3619
3724
  //#region src/graphql/errors.d.ts
3620
3725
  /** Caller (authenticated or anonymous) lacks permission for the document. */
3621
- declare class ForbiddenError extends GraphQLError {
3726
+ export declare class ForbiddenError extends GraphQLError {
3622
3727
  constructor(detail?: string);
3623
3728
  }
3624
3729
  /** Anonymous caller on an action that requires logging in. */
3625
- declare class AuthenticationRequiredError extends GraphQLError {
3730
+ export declare class AuthenticationRequiredError extends GraphQLError {
3626
3731
  constructor(detail?: string);
3627
3732
  }
3628
3733
  /**
@@ -3635,7 +3740,7 @@ declare class AuthenticationRequiredError extends GraphQLError {
3635
3740
  * switchboard running without authEnforcement. The code is what a client
3636
3741
  * branches on, since the message is not a contract.
3637
3742
  */
3638
- declare class AuthEvaluationUnsupportedError extends GraphQLError {
3743
+ export declare class AuthEvaluationUnsupportedError extends GraphQLError {
3639
3744
  constructor();
3640
3745
  }
3641
3746
  /**
@@ -3657,7 +3762,7 @@ declare class AuthEvaluationUnsupportedError extends GraphQLError {
3657
3762
  * those too. The code is what a client branches on, since the message is not a
3658
3763
  * contract.
3659
3764
  */
3660
- declare class MalformedStoredOperationError extends GraphQLError {
3765
+ export declare class MalformedStoredOperationError extends GraphQLError {
3661
3766
  constructor(detail: string);
3662
3767
  }
3663
3768
  //#endregion
@@ -3665,7 +3770,7 @@ declare class MalformedStoredOperationError extends GraphQLError {
3665
3770
  /**
3666
3771
  * This class is used to load packages using the import keyword.
3667
3772
  */
3668
- declare class ImportPackageLoader implements IPackageLoader {
3773
+ export declare class ImportPackageLoader implements IPackageLoader {
3669
3774
  private readonly logger;
3670
3775
  readonly name = "ImportPackageLoader";
3671
3776
  private readonly reportedUnbuilt;
@@ -3690,10 +3795,10 @@ declare class ImportPackageLoader implements IPackageLoader {
3690
3795
  * either bare (`'pkg'`) or as a subpath (`'pkg/subgraphs'`), since loaders
3691
3796
  * import sub-entries like `${pkg}/subgraphs` / `${pkg}/document-models`.
3692
3797
  */
3693
- declare function isExpectedLoaderMiss(error: unknown, pkg: string, subPath?: string): boolean;
3694
- declare function getUniqueDocumentModels(...documentModels: readonly (readonly DocumentModelModule<any>[])[]): DocumentModelModule[];
3695
- declare function getUniqueUpgradeManifests(...upgradeManifests: readonly (readonly UpgradeManifest<readonly number[]>[])[]): UpgradeManifest<readonly number[]>[];
3696
- declare class PackageManager implements IPackageManager {
3798
+ export declare function isExpectedLoaderMiss(error: unknown, pkg: string, subPath?: string): boolean;
3799
+ export declare function getUniqueDocumentModels(...documentModels: readonly (readonly DocumentModelModule<any>[])[]): DocumentModelModule[];
3800
+ export declare function getUniqueUpgradeManifests(...upgradeManifests: readonly (readonly UpgradeManifest<readonly number[]>[])[]): UpgradeManifest<readonly number[]>[];
3801
+ export declare class PackageManager implements IPackageManager {
3697
3802
  protected options: IPackageManagerOptions;
3698
3803
  private readonly logger;
3699
3804
  private loaders;
@@ -3748,23 +3853,23 @@ declare class PackageManager implements IPackageManager {
3748
3853
  //#region src/services/renown-config.d.ts
3749
3854
  /** Where the credential check reads from: a remote Renown or Switchboard
3750
3855
  * instance, or this switchboard's own renown read model. */
3751
- type RenownSource = NonNullable<PHReactorRenown["source"]>;
3856
+ export type RenownSource = NonNullable<PHReactorRenown["source"]>;
3752
3857
  /** The `auth.renown` config block: which Renown instance to authenticate
3753
3858
  * against, before env overrides are applied. */
3754
- type RenownConfig = PHReactorRenown;
3859
+ export type RenownConfig = PHReactorRenown;
3755
3860
  /** Resolved renown coordinates. `url` also drives this reactor's own identity,
3756
3861
  * so it stays meaningful when `source` is "self". */
3757
- type ResolvedRenownConfig = {
3862
+ export type ResolvedRenownConfig = {
3758
3863
  source: RenownSource;
3759
3864
  url: string | undefined;
3760
3865
  switchboardUrl: string | undefined;
3761
3866
  };
3762
3867
  /** Reading credentials from this reactor's own read model needs a host-supplied
3763
3868
  * verifier: core has no idea which subgraph serves that read model. */
3764
- declare function assertCredentialVerifierForSource(source: RenownSource, hasVerifier: boolean): void;
3869
+ export declare function assertCredentialVerifierForSource(source: RenownSource, hasVerifier: boolean): void;
3765
3870
  /** Resolve `auth.renown`; RENOWN_SOURCE / RENOWN_URL / SWITCHBOARD_URL win
3766
3871
  * over the config file, which wins over the SDK defaults. */
3767
- declare function resolveRenownConfig(configured: RenownConfig | undefined, env: NodeJS.ProcessEnv, logger: ILogger): ResolvedRenownConfig;
3872
+ export declare function resolveRenownConfig(configured: RenownConfig | undefined, env: NodeJS.ProcessEnv, logger: ILogger): ResolvedRenownConfig;
3768
3873
  //#endregion
3769
3874
  //#region src/server.d.ts
3770
3875
  type Options = {
@@ -3797,6 +3902,12 @@ type Options = {
3797
3902
  * comma-separated list. Each entry is a hole in the floor: only ever name
3798
3903
  * a path serving operations that are safe without a caller. */
3799
3904
  requireAuthenticatedCallerExemptPaths?: string[];
3905
+ /** Decide an attachment read with the referencing document's own policy
3906
+ * instead of the host permission tables. Off by default;
3907
+ * `ATTACHMENT_READS_FOLLOW_DOCUMENT_POLICY` overrides. Requires auth
3908
+ * enforcement, which is what supplies the model — refused at boot
3909
+ * without it. */
3910
+ attachmentReadsFollowDocumentPolicy?: boolean;
3800
3911
  };
3801
3912
  /** Renown coordinates the host already resolved, used verbatim instead of
3802
3913
  * resolving `auth.renown` and the env again (which would warn twice). */
@@ -3834,13 +3945,13 @@ type ProcessorInitializer = ProcessorFactoryBuilder;
3834
3945
  * Doc-perms require auth: with auth off no `user` is ever resolved, so every
3835
3946
  * authorization check fails closed. Refuse to boot rather than run broken.
3836
3947
  */
3837
- declare function assertAuthRequiredForDocumentPermissions(authEnabled: boolean, documentPermissionsRequested: boolean): void;
3948
+ export declare function assertAuthRequiredForDocumentPermissions(authEnabled: boolean, documentPermissionsRequested: boolean): void;
3838
3949
  /**
3839
3950
  * Refuses SKIP_CREDENTIAL_VERIFICATION at boot outside tests or an explicit
3840
3951
  * opt-in: it removes the only binding between a token's claimed address and its
3841
3952
  * signing key. Fail-closed — unset NODE_ENV counts as production.
3842
3953
  */
3843
- declare function assertSkipCredentialVerificationAllowed(resolvesCallerIdentity: boolean, skipCredentialVerification: boolean, env: NodeJS.ProcessEnv): void;
3954
+ export declare function assertSkipCredentialVerificationAllowed(resolvesCallerIdentity: boolean, skipCredentialVerification: boolean, env: NodeJS.ProcessEnv): void;
3844
3955
  /**
3845
3956
  * Requiring an authenticated caller requires identity resolution to exist at
3846
3957
  * all: with neither AUTH_ENABLED nor RESOLVE_CALLER_IDENTITY the middleware
@@ -3848,14 +3959,22 @@ declare function assertSkipCredentialVerificationAllowed(resolvesCallerIdentity:
3848
3959
  * require-authenticated-caller middleware would reject every caller —
3849
3960
  * authenticated ones included. Refuse to boot rather than run broken.
3850
3961
  */
3851
- declare function assertRequireAuthenticatedCallerAllowed(requireAuthenticatedCaller: boolean, resolvesCallerIdentity: boolean, exemptPaths?: readonly string[]): void;
3962
+ export declare function assertRequireAuthenticatedCallerAllowed(requireAuthenticatedCaller: boolean, resolvesCallerIdentity: boolean, exemptPaths?: readonly string[]): void;
3963
+ /**
3964
+ * Deciding an attachment read by the document's policy needs a policy model to
3965
+ * decide with, and that is what auth enforcement supplies. Without one there is
3966
+ * nothing to consult, so the setting would silently leave the permission tables
3967
+ * in charge — configuration that describes a protection the server is not
3968
+ * applying, which is worse than no configuration at all. Refuse instead.
3969
+ */
3970
+ export declare function assertAttachmentPolicyReadsAllowed(attachmentReadsFollowDocumentPolicy: boolean, hasDecisionModel: boolean): void;
3852
3971
  /**
3853
3972
  * The GraphiQL explorer page's mount prefix. `path.posix.join` normalizes the
3854
3973
  * join with `basePath` — a naive template literal would produce `//explorer`
3855
3974
  * for the default `/` basePath, which express compiles into a route that only
3856
3975
  * matches `//explorer`, leaving `GET /explorer` a 404.
3857
3976
  */
3858
- declare function getExplorerPrefix(basePath: string): string;
3977
+ export declare function getExplorerPrefix(basePath: string): string;
3859
3978
  /**
3860
3979
  * Initializes and starts the API server using an initializer function.
3861
3980
  * This function first loads packages to get document models, then calls the initializer function
@@ -3871,17 +3990,17 @@ declare function getExplorerPrefix(basePath: string): string;
3871
3990
  * alongside the reactor module so resolvers can dispatch reactor-drive parent
3872
3991
  * ops to it; legacy switchboards omit it.
3873
3992
  */
3874
- interface ClientInitializerResult {
3993
+ export interface ClientInitializerResult {
3875
3994
  module: InProcessReactorClientModule;
3876
3995
  reactorDriveClient?: IDriveClient;
3877
3996
  attachmentReferenceProjection?: AttachmentReferenceProjectionCapability;
3878
3997
  }
3879
- interface ClientInitializerDependencies {
3998
+ export interface ClientInitializerDependencies {
3880
3999
  attachmentReferenceWriter: IAttachmentReferenceWriter;
3881
4000
  /** Upgrade manifests exported by the loaded packages, one per type. */
3882
4001
  upgradeManifests: UpgradeManifest<readonly number[]>[];
3883
4002
  }
3884
- declare function initializeAndStartAPI(clientInitializer: (documentModels: DocumentModelModule[], dependencies: ClientInitializerDependencies) => Promise<ClientInitializerResult>, options: Options, processorApp: ProcessorApp): Promise<API & {
4003
+ export declare function initializeAndStartAPI(clientInitializer: (documentModels: DocumentModelModule[], dependencies: ClientInitializerDependencies) => Promise<ClientInitializerResult>, options: Options, processorApp: ProcessorApp): Promise<API & {
3885
4004
  client: IReactorClient;
3886
4005
  syncManager: ISyncManager;
3887
4006
  documentModelRegistry: IDocumentModelRegistry;
@@ -3891,27 +4010,27 @@ declare function initializeAndStartAPI(clientInitializer: (documentModels: Docum
3891
4010
  }>;
3892
4011
  //#endregion
3893
4012
  //#region src/services/renown-credential-verifier.d.ts
3894
- interface RenownCredentialVerifierConfig {
4013
+ export interface RenownCredentialVerifierConfig {
3895
4014
  renownUrl?: string;
3896
4015
  switchboardUrl?: string;
3897
4016
  }
3898
- declare function createRenownCredentialVerifier(config?: RenownCredentialVerifierConfig): Promise<CredentialVerifier>;
4017
+ export declare function createRenownCredentialVerifier(config?: RenownCredentialVerifierConfig): Promise<CredentialVerifier>;
3899
4018
  //#endregion
3900
4019
  //#region src/utils/create-schema.d.ts
3901
- declare const buildSubgraphSchemaModule: (documentModels: DocumentModelModule[], resolvers: GraphQLResolverMap<Context$1>, typeDefs: DocumentNode) => GraphQLSchemaModule;
3902
- declare const createSchema: (documentModels: DocumentModelModule[], resolvers: GraphQLResolverMap<Context$1>, typeDefs: DocumentNode) => graphql.GraphQLSchema;
4020
+ export declare const buildSubgraphSchemaModule: (documentModels: DocumentModelModule[], resolvers: GraphQLResolverMap<Context$1>, typeDefs: DocumentNode) => GraphQLSchemaModule;
4021
+ export declare const createSchema: (documentModels: DocumentModelModule[], resolvers: GraphQLResolverMap<Context$1>, typeDefs: DocumentNode) => import("graphql").GraphQLSchema;
3903
4022
  /**
3904
4023
  * Create a merged GraphQL schema from multiple subgraph modules.
3905
4024
  * Uses buildSubgraphSchema's array overload to combine type definitions
3906
4025
  * and resolvers from multiple subgraphs into a single executable schema.
3907
4026
  */
3908
- declare const createMergedSchema: (modules: GraphQLSchemaModule[]) => graphql.GraphQLSchema;
3909
- declare function getDocumentModelSchemaName(documentModel: DocumentModelGlobalState$1): string;
3910
- declare const getDocumentModelTypeDefs: (documentModels: DocumentModelModule[], typeDefs: DocumentNode) => DocumentNode;
4027
+ export declare const createMergedSchema: (modules: GraphQLSchemaModule[]) => import("graphql").GraphQLSchema;
4028
+ export declare function getDocumentModelSchemaName(documentModel: DocumentModelGlobalState$1): string;
4029
+ export declare const getDocumentModelTypeDefs: (documentModels: DocumentModelModule[], typeDefs: DocumentNode) => DocumentNode;
3911
4030
  /**
3912
4031
  * Options for generating document model GraphQL schemas.
3913
4032
  */
3914
- interface DocumentModelSchemaOptions {
4033
+ export interface DocumentModelSchemaOptions {
3915
4034
  /**
3916
4035
  * When true, generates new API patterns:
3917
4036
  * - Mutations return full document objects (MutationResult type)
@@ -3928,7 +4047,8 @@ interface DocumentModelSchemaOptions {
3928
4047
  * @param options - Schema generation options
3929
4048
  * @returns GraphQL DocumentNode
3930
4049
  */
3931
- declare function generateDocumentModelSchema(documentModel: DocumentModelGlobalState$1, options?: DocumentModelSchemaOptions): DocumentNode;
4050
+ export declare function generateDocumentModelSchema(documentModel: DocumentModelGlobalState$1, options?: DocumentModelSchemaOptions): DocumentNode;
3932
4051
  //#endregion
3933
- 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 };
4052
+ export { type AuthorizationConfig, type AuthorizerResult, type CanonicalDocumentId, type HttpRouteServiceOptions, type IAuthorizationService, type IHttpScope, type IPackageLoader, type IPackageLoaderOptions, type IPackagePieceSource, type IWebhookEndpoints, type IWebhookScope, type IWebhookStore, type NodeRouteSpec, type PackagePiece, type PackagePieceEntry, type PackagesSubgraphArgs, type ParsedDriveUrl, type RouteActor, type RouteAuth, type RouteAuthorizer, type RouteBody, type RouteContext, type RouteHandler, type RouteMethod, type RouteOptions, type RouteSpec, type RouteTransport, type RouteUser, type ScopedRouteHandle, type WebhookEndpointInfo, type WebhookEndpointRow, type WebhookField, type WebhookHashAlgorithm, type WebhookPolicy, type WebhookReply, type WebhookRequest, type WebhookScheme, type WebhookSignatureEncoding, type WebhookSpec, type WebhookVerification, driveIdFromUrl, parseDriveUrl };
4053
+ export {};
3934
4054
  //# sourceMappingURL=index.d.mts.map