@powerhousedao/reactor-api 6.2.3-dev.9 → 6.2.3-staging.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -2
- package/dist/{adapter-gateway-apollo-CxJNBVyD.mjs → adapter-gateway-apollo-B54G_cXT.mjs} +15 -13
- package/dist/{adapter-gateway-apollo-CxJNBVyD.mjs.map → adapter-gateway-apollo-B54G_cXT.mjs.map} +1 -1
- package/dist/{adapter-gateway-apollo-DowrX6E_.mjs → adapter-gateway-apollo-D2DNlPY0.mjs} +3 -3
- package/dist/{adapter-gateway-mercurius-CZVy88Za.mjs → adapter-gateway-mercurius-rbKlwF9m.mjs} +4 -4
- package/dist/{adapter-gateway-mercurius-CZVy88Za.mjs.map → adapter-gateway-mercurius-rbKlwF9m.mjs.map} +1 -1
- package/dist/{adapter-gateway-stitching-CaZjvRzx.mjs → adapter-gateway-stitching-Dzv10u8D.mjs} +15 -10
- package/dist/{adapter-gateway-stitching-CaZjvRzx.mjs.map → adapter-gateway-stitching-Dzv10u8D.mjs.map} +1 -1
- package/dist/{adapter-http-express-B39rPhqH.mjs → adapter-http-express-CWqziB1p.mjs} +7 -7
- package/dist/adapter-http-express-CWqziB1p.mjs.map +1 -0
- package/dist/{adapter-http-fastify-BwXO6rqE.mjs → adapter-http-fastify-CYZQ6FFv.mjs} +10 -9
- package/dist/adapter-http-fastify-CYZQ6FFv.mjs.map +1 -0
- package/dist/index.d.mts +959 -459
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1209 -312
- package/dist/index.mjs.map +1 -1
- package/dist/{utils-XWVecaNn.mjs → pieces-swupjgIO.mjs} +146 -9
- package/dist/pieces-swupjgIO.mjs.map +1 -0
- package/dist/rolldown-runtime-8H4AJuhK.mjs +16 -0
- package/dist/run-node-handler-CQjyjOuN.mjs +52 -0
- package/dist/run-node-handler-CQjyjOuN.mjs.map +1 -0
- package/dist/src/packages/https-hooks.d.mts +4 -4
- package/dist/src/packages/https-hooks.d.mts.map +1 -1
- package/dist/src/packages/https-hooks.mjs +2 -2
- package/dist/src/packages/https-hooks.mjs.map +1 -1
- package/dist/src/packages/vite-loader.d.mts +18 -8
- package/dist/src/packages/vite-loader.d.mts.map +1 -1
- package/dist/src/packages/vite-loader.mjs +114 -46
- package/dist/src/packages/vite-loader.mjs.map +1 -1
- package/dist/{types-DcYyNcHJ.d.mts → types-CuSz_zv6.d.mts} +26 -3
- package/dist/types-CuSz_zv6.d.mts.map +1 -0
- package/dist/{websocket-DncAB9XK.mjs → websocket-_SH5aBcy.mjs} +3 -3
- package/dist/{websocket-DncAB9XK.mjs.map → websocket-_SH5aBcy.mjs.map} +1 -1
- package/package.json +18 -18
- package/dist/adapter-http-express-B39rPhqH.mjs.map +0 -1
- package/dist/adapter-http-fastify-BwXO6rqE.mjs.map +0 -1
- package/dist/path-normalize-BOQwY9wR.mjs +0 -23
- package/dist/path-normalize-BOQwY9wR.mjs.map +0 -1
- package/dist/types-DcYyNcHJ.d.mts.map +0 -1
- package/dist/utils-XWVecaNn.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { i as IPackageManagerOptions, n as IPackageLoaderOptions, r as IPackageManager,
|
|
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-CuSz_zv6.mjs";
|
|
2
2
|
import { IAnalyticsStore } from "@powerhousedao/analytics-engine-core";
|
|
3
3
|
import { AnalyticsModel } from "@powerhousedao/analytics-engine-graphql";
|
|
4
|
-
import
|
|
5
|
-
import { DocumentNode, GraphQLResolveInfo, GraphQLScalarType, GraphQLScalarTypeConfig, GraphQLSchema } from "graphql";
|
|
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";
|
|
8
7
|
import { GraphQLResolverMap, GraphQLSchemaModule } from "@apollo/subgraph";
|
|
@@ -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;
|
|
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;
|
|
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
|
-
|
|
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
|
-
|
|
943
|
-
|
|
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;
|
|
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;
|
|
@@ -1174,8 +1236,8 @@ declare class GraphQLManager {
|
|
|
1174
1236
|
private readonly subgraphHandlerCache;
|
|
1175
1237
|
/** subgraphPath → the http adapter handle of its mounted route. */
|
|
1176
1238
|
private readonly subgraphRouteHandles;
|
|
1177
|
-
/**
|
|
1178
|
-
private
|
|
1239
|
+
/** Mounted SSE routes, keyed by path: the supergraph's and each subgraph's. */
|
|
1240
|
+
private readonly sseRouteHandles;
|
|
1179
1241
|
/**
|
|
1180
1242
|
* Package name → the subgraph instances registered from it, keyed by
|
|
1181
1243
|
* subgraph name. Tracks the package association so that removed packages
|
|
@@ -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
|
-
|
|
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,
|
|
1342
|
-
*
|
|
1343
|
-
* attachment
|
|
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
|
-
|
|
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,24 +1475,41 @@ 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;
|
|
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;
|
|
1494
|
+
attachmentReferenceIndex: AttachmentReferenceIndexBuildResult;
|
|
1495
|
+
/** Document-authorized attachment read decisions; see AttachmentAccessService. */
|
|
1375
1496
|
attachmentAccess: IAttachmentAccessService;
|
|
1376
1497
|
authService: AuthService | undefined;
|
|
1498
|
+
/**
|
|
1499
|
+
* Whether this deployment refuses anonymous callers
|
|
1500
|
+
* (`REQUIRE_AUTHENTICATED_CALLER`). Carried here because routes mounted
|
|
1501
|
+
* straight on the HTTP adapter never pass the GraphQL fetch chain, so its
|
|
1502
|
+
* require-auth middleware cannot reach them: a host-composed route reads the
|
|
1503
|
+
* resolved value from the API rather than the environment, so one variable
|
|
1504
|
+
* cannot end up half applied.
|
|
1505
|
+
*/
|
|
1506
|
+
requireAuthenticatedCaller: boolean;
|
|
1507
|
+
/** The service the subgraphs decide with, for a component the host composes
|
|
1508
|
+
* after boot: it must authorize with this one, not one of its own. */
|
|
1509
|
+
authorizationService: IAuthorizationService;
|
|
1510
|
+
/** The read-model relational store, for the same host-composed component:
|
|
1511
|
+
* its tables belong in this database and nothing else hands one over. */
|
|
1512
|
+
relationalDb: IRelationalDb$1;
|
|
1377
1513
|
/**
|
|
1378
1514
|
* Releases resources owned by the API: shuts down the GraphQL gateway,
|
|
1379
1515
|
* closes WebSocket and HTTP servers, destroys knex pools, and closes any
|
|
@@ -1383,25 +1519,26 @@ type API = {
|
|
|
1383
1519
|
*/
|
|
1384
1520
|
dispose: () => Promise<void>;
|
|
1385
1521
|
};
|
|
1386
|
-
type ReactorModule = {
|
|
1522
|
+
export type ReactorModule = {
|
|
1387
1523
|
analyticsStore: IAnalyticsStore;
|
|
1388
1524
|
relationalDb: IRelationalDb$1;
|
|
1389
1525
|
};
|
|
1390
1526
|
/** @deprecated Use `ProcessorFactory`. */
|
|
1391
|
-
type ProcessorDriveFactory = ProcessorFactory;
|
|
1527
|
+
export type ProcessorDriveFactory = ProcessorFactory;
|
|
1392
1528
|
/** Builds a per-drive factory from the host module (e.g. vetra `processorFactory`). */
|
|
1393
|
-
type ProcessorFactoryBuilder = ProcessorFactoryBuilder$1<IProcessorHostModule>;
|
|
1529
|
+
export type ProcessorFactoryBuilder = ProcessorFactoryBuilder$1<IProcessorHostModule>;
|
|
1394
1530
|
/** Multiple initializers per package name (e.g. Switchboard `processors` option). */
|
|
1395
|
-
type Processor = ProcessorFactoryBuilder[];
|
|
1531
|
+
export type Processor = ProcessorFactoryBuilder[];
|
|
1396
1532
|
//#endregion
|
|
1397
1533
|
//#region src/packages/http-loader.d.ts
|
|
1398
|
-
interface HttpPackageLoaderOptions {
|
|
1534
|
+
export interface HttpPackageLoaderOptions {
|
|
1399
1535
|
registryUrl: string;
|
|
1400
1536
|
}
|
|
1401
|
-
interface HttpPackageLoaderLogger {
|
|
1537
|
+
export interface HttpPackageLoaderLogger {
|
|
1402
1538
|
info: (msg: string) => void;
|
|
1403
1539
|
error: (msg: string, err: unknown) => void;
|
|
1404
1540
|
}
|
|
1541
|
+
export declare function piecesBaseUrl(registryUrl: string, packageName: string, version: string): string;
|
|
1405
1542
|
type SubgraphsExport = Record<string, SubgraphClass$1>;
|
|
1406
1543
|
/**
|
|
1407
1544
|
* Extract subgraph classes from the imported subgraphs/index.mjs module shape.
|
|
@@ -1413,7 +1550,7 @@ type SubgraphsExport = Record<string, SubgraphClass$1>;
|
|
|
1413
1550
|
*
|
|
1414
1551
|
* Exported for direct unit testing against synthetic module shapes.
|
|
1415
1552
|
*/
|
|
1416
|
-
declare function extractSubgraphsFromModule(module: Record<string, SubgraphsExport>): SubgraphClass$1[];
|
|
1553
|
+
export declare function extractSubgraphsFromModule(module: Record<string, SubgraphsExport>): SubgraphClass$1[];
|
|
1417
1554
|
/**
|
|
1418
1555
|
* Loads document models, subgraphs, and processors from an HTTP registry.
|
|
1419
1556
|
* Uses Node.js module loader hooks to import directly from HTTP URLs.
|
|
@@ -1422,7 +1559,7 @@ declare function extractSubgraphsFromModule(module: Record<string, SubgraphsExpo
|
|
|
1422
1559
|
* import { register } from "node:module";
|
|
1423
1560
|
* register("@powerhousedao/reactor-api/https-hooks", import.meta.url);
|
|
1424
1561
|
*/
|
|
1425
|
-
declare class HttpPackageLoader implements IPackageLoader {
|
|
1562
|
+
export declare class HttpPackageLoader implements IPackageLoader {
|
|
1426
1563
|
private readonly registryUrl;
|
|
1427
1564
|
private readonly logger;
|
|
1428
1565
|
readonly name = "HttpPackageLoader";
|
|
@@ -1440,11 +1577,13 @@ declare class HttpPackageLoader implements IPackageLoader {
|
|
|
1440
1577
|
loadUpgradeManifests(packageSpec: string): Promise<UpgradeManifest<readonly number[]>[]>;
|
|
1441
1578
|
loadSubgraphs(packageSpec: string): Promise<SubgraphClass$1[]>;
|
|
1442
1579
|
loadProcessors(packageSpec: string): Promise<ProcessorFactoryBuilder | null>;
|
|
1580
|
+
loadPieces(packageSpec: string): Promise<PackagePieceEntry[]>;
|
|
1443
1581
|
/**
|
|
1444
1582
|
* Load document models from multiple packages.
|
|
1445
1583
|
* Continues loading even if some packages fail.
|
|
1446
1584
|
*/
|
|
1447
1585
|
loadPackages(packageNames: string[], logger?: HttpPackageLoaderLogger): Promise<DocumentModelModule[]>;
|
|
1586
|
+
packageVersion(packageSpec: string): Promise<string | undefined>;
|
|
1448
1587
|
private isValidPackageName;
|
|
1449
1588
|
}
|
|
1450
1589
|
/**
|
|
@@ -1453,7 +1592,7 @@ declare class HttpPackageLoader implements IPackageLoader {
|
|
|
1453
1592
|
* Making them worker-executable means returning an importable source here
|
|
1454
1593
|
* (the CDN URL as a package specifier, given process-wide https hooks).
|
|
1455
1594
|
*/
|
|
1456
|
-
declare class HttpDocumentModelLoader implements IDocumentModelLoader {
|
|
1595
|
+
export declare class HttpDocumentModelLoader implements IDocumentModelLoader {
|
|
1457
1596
|
private readonly loader;
|
|
1458
1597
|
private readonly logger;
|
|
1459
1598
|
private readonly documentTypeCache;
|
|
@@ -1470,18 +1609,18 @@ declare class HttpDocumentModelLoader implements IDocumentModelLoader {
|
|
|
1470
1609
|
}
|
|
1471
1610
|
//#endregion
|
|
1472
1611
|
//#region src/services/package-management.service.d.ts
|
|
1473
|
-
interface InstallPackageResult {
|
|
1612
|
+
export interface InstallPackageResult {
|
|
1474
1613
|
package: InstalledPackageInfo;
|
|
1475
1614
|
documentModelsLoaded: number;
|
|
1476
1615
|
}
|
|
1477
|
-
interface PackageManagementServiceOptions {
|
|
1616
|
+
export interface PackageManagementServiceOptions {
|
|
1478
1617
|
storage?: IPackageStorage;
|
|
1479
1618
|
defaultRegistryUrl?: string;
|
|
1480
1619
|
httpLoader?: HttpPackageLoader;
|
|
1481
1620
|
documentModelRegistry?: IDocumentModelRegistry;
|
|
1482
1621
|
packageManager?: IPackageManager;
|
|
1483
1622
|
}
|
|
1484
|
-
declare class PackageManagementService {
|
|
1623
|
+
export declare class PackageManagementService {
|
|
1485
1624
|
private readonly storage;
|
|
1486
1625
|
private readonly defaultRegistryUrl?;
|
|
1487
1626
|
private readonly httpLoader?;
|
|
@@ -1504,13 +1643,13 @@ declare class PackageManagementService {
|
|
|
1504
1643
|
interface PackagesSubgraphArgs extends SubgraphArgs {
|
|
1505
1644
|
packageManagementService: PackageManagementService;
|
|
1506
1645
|
}
|
|
1507
|
-
declare class PackagesSubgraph extends BaseSubgraph {
|
|
1646
|
+
export declare class PackagesSubgraph extends BaseSubgraph {
|
|
1508
1647
|
private logger;
|
|
1509
1648
|
private packageManagementService;
|
|
1510
1649
|
constructor(args: PackagesSubgraphArgs);
|
|
1511
1650
|
name: string;
|
|
1512
1651
|
hasSubscriptions: boolean;
|
|
1513
|
-
typeDefs: graphql.DocumentNode;
|
|
1652
|
+
typeDefs: import("graphql").DocumentNode;
|
|
1514
1653
|
resolvers: {
|
|
1515
1654
|
Query: {
|
|
1516
1655
|
Packages: () => {};
|
|
@@ -1566,7 +1705,7 @@ declare class PackagesSubgraph extends BaseSubgraph {
|
|
|
1566
1705
|
* `{ document, variables, headers? }` with `variables` and `headers`
|
|
1567
1706
|
* already JSON-stringified.
|
|
1568
1707
|
*/
|
|
1569
|
-
interface ExplorerUrlState {
|
|
1708
|
+
export interface ExplorerUrlState {
|
|
1570
1709
|
/** The GraphQL query to prefill in GraphiQL. */
|
|
1571
1710
|
query: string;
|
|
1572
1711
|
/** JSON-stringified variables, as stored in the payload. */
|
|
@@ -1578,24 +1717,24 @@ interface ExplorerUrlState {
|
|
|
1578
1717
|
* Decodes an `explorerURLState` URL parameter. Returns `null` for anything
|
|
1579
1718
|
* that is not a valid lz-compressed payload with a non-empty `document`.
|
|
1580
1719
|
*/
|
|
1581
|
-
declare function decodeExplorerUrlState(encoded: string): ExplorerUrlState | null;
|
|
1582
|
-
declare function renderGraphqlPlayground(url: string, query?: string, headers?: Record<string, string>, variables?: string): string;
|
|
1720
|
+
export declare function decodeExplorerUrlState(encoded: string): ExplorerUrlState | null;
|
|
1721
|
+
export declare function renderGraphqlPlayground(url: string, query?: string, headers?: Record<string, string>, variables?: string): string;
|
|
1583
1722
|
//#endregion
|
|
1584
1723
|
//#region src/graphql/reactor/gen/graphql.d.ts
|
|
1585
|
-
type Maybe<T> = T | null | undefined;
|
|
1586
|
-
type InputMaybe<T> = T | null | undefined;
|
|
1587
|
-
type Exact<T extends {
|
|
1724
|
+
export type Maybe<T> = T | null | undefined;
|
|
1725
|
+
export type InputMaybe<T> = T | null | undefined;
|
|
1726
|
+
export type Exact<T extends {
|
|
1588
1727
|
[key: string]: unknown;
|
|
1589
|
-
}> = { [K in keyof T]: T[K] };
|
|
1590
|
-
type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]
|
|
1591
|
-
type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]
|
|
1592
|
-
type MakeEmpty<T extends {
|
|
1728
|
+
}> = { [K in keyof T]: T[K]; };
|
|
1729
|
+
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]>; };
|
|
1730
|
+
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]>; };
|
|
1731
|
+
export type MakeEmpty<T extends {
|
|
1593
1732
|
[key: string]: unknown;
|
|
1594
|
-
}, K extends keyof T> = { [_ in K]?: never };
|
|
1595
|
-
type Incremental<T> = T | { [P in keyof T]?: P extends " $fragmentName" | "__typename" ? T[P] : never };
|
|
1596
|
-
type RequireFields<T, K extends keyof T> = Omit<T, K> & { [P in K]-?: NonNullable<T[P]
|
|
1733
|
+
}, K extends keyof T> = { [_ in K]?: never; };
|
|
1734
|
+
export type Incremental<T> = T | { [P in keyof T]?: P extends " $fragmentName" | "__typename" ? T[P] : never; };
|
|
1735
|
+
export type RequireFields<T, K extends keyof T> = Omit<T, K> & { [P in K]-?: NonNullable<T[P]>; };
|
|
1597
1736
|
/** All built-in and custom scalars, mapped to their actual values */
|
|
1598
|
-
type Scalars = {
|
|
1737
|
+
export type Scalars = {
|
|
1599
1738
|
ID: {
|
|
1600
1739
|
input: string;
|
|
1601
1740
|
output: string;
|
|
@@ -1625,7 +1764,7 @@ type Scalars = {
|
|
|
1625
1764
|
output: NonNullable<unknown>;
|
|
1626
1765
|
};
|
|
1627
1766
|
};
|
|
1628
|
-
type Action = {
|
|
1767
|
+
export type Action = {
|
|
1629
1768
|
readonly context?: Maybe<ActionContext>;
|
|
1630
1769
|
readonly id: Scalars["String"]["output"];
|
|
1631
1770
|
readonly input: Scalars["JSONObject"]["output"];
|
|
@@ -1640,12 +1779,12 @@ type Action = {
|
|
|
1640
1779
|
* filled-in form carries that form's input. Omitting it predicts the verdict an
|
|
1641
1780
|
* empty input earns, not the verdict the filled-in form will get.
|
|
1642
1781
|
*/
|
|
1643
|
-
type ActionCandidateInput = {
|
|
1782
|
+
export type ActionCandidateInput = {
|
|
1644
1783
|
readonly input?: InputMaybe<Scalars["JSONObject"]["input"]>;
|
|
1645
1784
|
readonly scope: Scalars["String"]["input"];
|
|
1646
1785
|
readonly type: Scalars["String"]["input"];
|
|
1647
1786
|
};
|
|
1648
|
-
type ActionContext = {
|
|
1787
|
+
export type ActionContext = {
|
|
1649
1788
|
readonly signer?: Maybe<ReactorSigner>;
|
|
1650
1789
|
};
|
|
1651
1790
|
/**
|
|
@@ -1660,9 +1799,12 @@ type ActionContext = {
|
|
|
1660
1799
|
* against. They are recorded rather than enforced; a signature is verified from
|
|
1661
1800
|
* the params carried in its own tuple, which do not include them.
|
|
1662
1801
|
*/
|
|
1663
|
-
type ActionContextInput = {
|
|
1664
|
-
/** Covers replay of an operation that would otherwise be a no-op. */
|
|
1665
|
-
readonly
|
|
1802
|
+
export type ActionContextInput = {
|
|
1803
|
+
/** Covers replay of an operation that would otherwise be a no-op. */
|
|
1804
|
+
readonly nonce?: InputMaybe<Scalars["String"]["input"]>;
|
|
1805
|
+
/** The hash of the state the action applies to. */
|
|
1806
|
+
readonly prevOpHash?: InputMaybe<Scalars["String"]["input"]>;
|
|
1807
|
+
/** The index of the last operation in the scope the action applies to. */
|
|
1666
1808
|
readonly prevOpIndex?: InputMaybe<Scalars["Int"]["input"]>;
|
|
1667
1809
|
readonly signer?: InputMaybe<ReactorSignerInput>;
|
|
1668
1810
|
};
|
|
@@ -1670,7 +1812,7 @@ type ActionContextInput = {
|
|
|
1670
1812
|
* One candidate's predicted verdict. `reason` carries the refusal a DENY is
|
|
1671
1813
|
* recorded with, and is null on an ALLOW.
|
|
1672
1814
|
*/
|
|
1673
|
-
type ActionEvaluation = {
|
|
1815
|
+
export type ActionEvaluation = {
|
|
1674
1816
|
readonly decision: AuthDecision;
|
|
1675
1817
|
readonly reason?: Maybe<Scalars["String"]["output"]>;
|
|
1676
1818
|
};
|
|
@@ -1683,14 +1825,14 @@ type ActionEvaluation = {
|
|
|
1683
1825
|
* another. Over no candidates every aggregate is false: nothing is allowed and
|
|
1684
1826
|
* nothing is denied.
|
|
1685
1827
|
*/
|
|
1686
|
-
type ActionEvaluations = {
|
|
1828
|
+
export type ActionEvaluations = {
|
|
1687
1829
|
readonly allAllowed: Scalars["Boolean"]["output"];
|
|
1688
1830
|
readonly allDenied: Scalars["Boolean"]["output"];
|
|
1689
1831
|
readonly anyAllowed: Scalars["Boolean"]["output"];
|
|
1690
1832
|
readonly anyDenied: Scalars["Boolean"]["output"];
|
|
1691
1833
|
readonly evaluations: ReadonlyArray<ActionEvaluation>;
|
|
1692
1834
|
};
|
|
1693
|
-
type ActionInput = {
|
|
1835
|
+
export type ActionInput = {
|
|
1694
1836
|
readonly context?: InputMaybe<ActionContextInput>;
|
|
1695
1837
|
readonly id: Scalars["String"]["input"];
|
|
1696
1838
|
readonly input: Scalars["JSONObject"]["input"];
|
|
@@ -1698,17 +1840,17 @@ type ActionInput = {
|
|
|
1698
1840
|
readonly timestampUtcMs: Scalars["String"]["input"];
|
|
1699
1841
|
readonly type: Scalars["String"]["input"];
|
|
1700
1842
|
};
|
|
1701
|
-
declare enum AuthDecision {
|
|
1843
|
+
export declare enum AuthDecision {
|
|
1702
1844
|
Allow = "ALLOW",
|
|
1703
1845
|
Deny = "DENY"
|
|
1704
1846
|
}
|
|
1705
|
-
type ChannelMeta = {
|
|
1847
|
+
export type ChannelMeta = {
|
|
1706
1848
|
readonly id: Scalars["String"]["output"];
|
|
1707
1849
|
};
|
|
1708
|
-
type ChannelMetaInput = {
|
|
1850
|
+
export type ChannelMetaInput = {
|
|
1709
1851
|
readonly id: Scalars["String"]["input"];
|
|
1710
1852
|
};
|
|
1711
|
-
type DeadLetterInfo = {
|
|
1853
|
+
export type DeadLetterInfo = {
|
|
1712
1854
|
readonly branch: Scalars["String"]["output"];
|
|
1713
1855
|
readonly documentId: Scalars["String"]["output"];
|
|
1714
1856
|
readonly error: Scalars["String"]["output"];
|
|
@@ -1722,16 +1864,16 @@ type DeadLetterInfo = {
|
|
|
1722
1864
|
readonly operationCount: Scalars["Int"]["output"];
|
|
1723
1865
|
readonly scopes: ReadonlyArray<Scalars["String"]["output"]>;
|
|
1724
1866
|
};
|
|
1725
|
-
type DocumentChangeContext = {
|
|
1867
|
+
export type DocumentChangeContext = {
|
|
1726
1868
|
readonly childId?: Maybe<Scalars["String"]["output"]>;
|
|
1727
1869
|
readonly parentId?: Maybe<Scalars["String"]["output"]>;
|
|
1728
1870
|
};
|
|
1729
|
-
type DocumentChangeEvent = {
|
|
1871
|
+
export type DocumentChangeEvent = {
|
|
1730
1872
|
readonly context?: Maybe<DocumentChangeContext>;
|
|
1731
1873
|
readonly documents: ReadonlyArray<PhDocument>;
|
|
1732
1874
|
readonly type: DocumentChangeType;
|
|
1733
1875
|
};
|
|
1734
|
-
declare enum DocumentChangeType {
|
|
1876
|
+
export declare enum DocumentChangeType {
|
|
1735
1877
|
ChildAdded = "CHILD_ADDED",
|
|
1736
1878
|
ChildRemoved = "CHILD_REMOVED",
|
|
1737
1879
|
Created = "CREATED",
|
|
@@ -1740,21 +1882,20 @@ declare enum DocumentChangeType {
|
|
|
1740
1882
|
ParentRemoved = "PARENT_REMOVED",
|
|
1741
1883
|
Updated = "UPDATED"
|
|
1742
1884
|
}
|
|
1743
|
-
type DocumentModelGlobalState = {
|
|
1885
|
+
export type DocumentModelGlobalState = {
|
|
1744
1886
|
readonly id: Scalars["String"]["output"];
|
|
1745
1887
|
readonly name: Scalars["String"]["output"];
|
|
1746
1888
|
readonly namespace?: Maybe<Scalars["String"]["output"]>;
|
|
1747
1889
|
readonly specification: Scalars["JSONObject"]["output"];
|
|
1748
1890
|
readonly version?: Maybe<Scalars["String"]["output"]>;
|
|
1749
1891
|
};
|
|
1750
|
-
type DocumentModelResultPage = {
|
|
1892
|
+
export type DocumentModelResultPage = {
|
|
1751
1893
|
readonly cursor?: Maybe<Scalars["String"]["output"]>;
|
|
1752
1894
|
readonly hasNextPage: Scalars["Boolean"]["output"];
|
|
1753
1895
|
readonly hasPreviousPage: Scalars["Boolean"]["output"];
|
|
1754
1896
|
readonly items: ReadonlyArray<DocumentModelGlobalState>;
|
|
1755
|
-
readonly totalCount: Scalars["Int"]["output"];
|
|
1756
1897
|
};
|
|
1757
|
-
type DocumentOperationsFilterInput = {
|
|
1898
|
+
export type DocumentOperationsFilterInput = {
|
|
1758
1899
|
readonly actionTypes?: InputMaybe<ReadonlyArray<Scalars["String"]["input"]>>;
|
|
1759
1900
|
readonly branch?: InputMaybe<Scalars["String"]["input"]>;
|
|
1760
1901
|
readonly scopes?: InputMaybe<ReadonlyArray<Scalars["String"]["input"]>>;
|
|
@@ -1762,17 +1903,36 @@ type DocumentOperationsFilterInput = {
|
|
|
1762
1903
|
readonly timestampFrom?: InputMaybe<Scalars["String"]["input"]>;
|
|
1763
1904
|
readonly timestampTo?: InputMaybe<Scalars["String"]["input"]>;
|
|
1764
1905
|
};
|
|
1765
|
-
type
|
|
1906
|
+
export type DocumentRelationship = {
|
|
1907
|
+
readonly createdAt: Scalars["DateTime"]["output"];
|
|
1908
|
+
readonly metadata?: Maybe<Scalars["JSONObject"]["output"]>;
|
|
1909
|
+
readonly relationshipType: Scalars["String"]["output"];
|
|
1910
|
+
readonly sourceId: Scalars["String"]["output"];
|
|
1911
|
+
readonly targetId: Scalars["String"]["output"];
|
|
1912
|
+
readonly updatedAt: Scalars["DateTime"]["output"];
|
|
1913
|
+
};
|
|
1914
|
+
export type DocumentRelationshipResultPage = {
|
|
1915
|
+
readonly cursor?: Maybe<Scalars["String"]["output"]>;
|
|
1916
|
+
readonly hasNextPage: Scalars["Boolean"]["output"];
|
|
1917
|
+
readonly hasPreviousPage: Scalars["Boolean"]["output"];
|
|
1918
|
+
readonly items: ReadonlyArray<DocumentRelationship>;
|
|
1919
|
+
};
|
|
1920
|
+
export type DocumentWithChildren = {
|
|
1766
1921
|
readonly childIds: ReadonlyArray<Scalars["String"]["output"]>;
|
|
1767
1922
|
readonly document: PhDocument;
|
|
1768
1923
|
};
|
|
1769
|
-
type JobChangeEvent = {
|
|
1924
|
+
export type JobChangeEvent = {
|
|
1770
1925
|
readonly error?: Maybe<Scalars["String"]["output"]>;
|
|
1771
1926
|
readonly jobId: Scalars["String"]["output"];
|
|
1772
|
-
|
|
1927
|
+
/**
|
|
1928
|
+
* What the job produced, once it has produced anything. Nullable for the same
|
|
1929
|
+
* reason as `JobInfo.result`: a job that has not written yet has produced
|
|
1930
|
+
* nothing, and an empty object would claim otherwise.
|
|
1931
|
+
*/
|
|
1932
|
+
readonly result?: Maybe<Scalars["JSONObject"]["output"]>;
|
|
1773
1933
|
readonly status: Scalars["String"]["output"];
|
|
1774
1934
|
};
|
|
1775
|
-
type JobInfo = {
|
|
1935
|
+
export type JobInfo = {
|
|
1776
1936
|
readonly completedAt?: Maybe<Scalars["DateTime"]["output"]>;
|
|
1777
1937
|
readonly createdAt: Scalars["DateTime"]["output"];
|
|
1778
1938
|
readonly error?: Maybe<Scalars["String"]["output"]>;
|
|
@@ -1784,11 +1944,11 @@ type JobInfo = {
|
|
|
1784
1944
|
readonly result?: Maybe<Scalars["JSONObject"]["output"]>;
|
|
1785
1945
|
readonly status: Scalars["String"]["output"];
|
|
1786
1946
|
};
|
|
1787
|
-
type MoveRelationshipResult = {
|
|
1947
|
+
export type MoveRelationshipResult = {
|
|
1788
1948
|
readonly source: PhDocument;
|
|
1789
1949
|
readonly target: PhDocument;
|
|
1790
1950
|
};
|
|
1791
|
-
type Mutation = {
|
|
1951
|
+
export type Mutation = {
|
|
1792
1952
|
readonly addRelationship: PhDocument;
|
|
1793
1953
|
readonly createDocument: PhDocument;
|
|
1794
1954
|
readonly createEmptyDocument: PhDocument;
|
|
@@ -1816,101 +1976,113 @@ type Mutation = {
|
|
|
1816
1976
|
* ask for; `result` is null until the job produces one.
|
|
1817
1977
|
*/
|
|
1818
1978
|
readonly executeAsync: JobInfo;
|
|
1819
|
-
readonly moveRelationship: MoveRelationshipResult;
|
|
1820
|
-
|
|
1979
|
+
readonly moveRelationship: MoveRelationshipResult;
|
|
1980
|
+
/** @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. */
|
|
1981
|
+
readonly mutateDocument: PhDocument;
|
|
1982
|
+
/** @deprecated Use executeAsync, which is typed and returns the job rather than only its id. */
|
|
1821
1983
|
readonly mutateDocumentAsync: Scalars["String"]["output"];
|
|
1822
1984
|
readonly pushSyncEnvelopes: Scalars["Boolean"]["output"];
|
|
1823
1985
|
readonly removeRelationship: PhDocument;
|
|
1824
1986
|
readonly renameDocument: PhDocument;
|
|
1825
1987
|
readonly setPreferredEditor: PhDocument;
|
|
1826
1988
|
readonly touchChannel: TouchChannelResult;
|
|
1989
|
+
readonly updateRelationship: PhDocument;
|
|
1827
1990
|
};
|
|
1828
|
-
type MutationAddRelationshipArgs = {
|
|
1991
|
+
export type MutationAddRelationshipArgs = {
|
|
1829
1992
|
branch?: InputMaybe<Scalars["String"]["input"]>;
|
|
1993
|
+
metadata?: InputMaybe<Scalars["JSONObject"]["input"]>;
|
|
1830
1994
|
relationshipType: Scalars["String"]["input"];
|
|
1831
1995
|
sourceIdentifier: Scalars["String"]["input"];
|
|
1832
1996
|
targetIdentifier: Scalars["String"]["input"];
|
|
1833
1997
|
};
|
|
1834
|
-
type MutationCreateDocumentArgs = {
|
|
1998
|
+
export type MutationCreateDocumentArgs = {
|
|
1835
1999
|
document: Scalars["JSONObject"]["input"];
|
|
1836
2000
|
parentIdentifier?: InputMaybe<Scalars["String"]["input"]>;
|
|
1837
2001
|
};
|
|
1838
|
-
type MutationCreateEmptyDocumentArgs = {
|
|
2002
|
+
export type MutationCreateEmptyDocumentArgs = {
|
|
1839
2003
|
documentType: Scalars["String"]["input"];
|
|
1840
2004
|
parentIdentifier?: InputMaybe<Scalars["String"]["input"]>;
|
|
1841
2005
|
};
|
|
1842
|
-
type MutationDeleteDocumentArgs = {
|
|
2006
|
+
export type MutationDeleteDocumentArgs = {
|
|
1843
2007
|
identifier: Scalars["String"]["input"];
|
|
1844
2008
|
propagate?: InputMaybe<PropagationMode>;
|
|
1845
2009
|
};
|
|
1846
|
-
type MutationDeleteDocumentsArgs = {
|
|
2010
|
+
export type MutationDeleteDocumentsArgs = {
|
|
1847
2011
|
identifiers: ReadonlyArray<Scalars["String"]["input"]>;
|
|
1848
2012
|
propagate?: InputMaybe<PropagationMode>;
|
|
1849
2013
|
};
|
|
1850
|
-
type MutationExecuteArgs = {
|
|
2014
|
+
export type MutationExecuteArgs = {
|
|
1851
2015
|
actions: ReadonlyArray<ActionInput>;
|
|
1852
2016
|
branch?: InputMaybe<Scalars["String"]["input"]>;
|
|
1853
2017
|
documentIdentifier: Scalars["String"]["input"];
|
|
1854
2018
|
};
|
|
1855
|
-
type MutationExecuteAsyncArgs = {
|
|
2019
|
+
export type MutationExecuteAsyncArgs = {
|
|
1856
2020
|
actions: ReadonlyArray<ActionInput>;
|
|
1857
2021
|
branch?: InputMaybe<Scalars["String"]["input"]>;
|
|
1858
2022
|
documentIdentifier: Scalars["String"]["input"];
|
|
1859
2023
|
};
|
|
1860
|
-
type MutationMoveRelationshipArgs = {
|
|
2024
|
+
export type MutationMoveRelationshipArgs = {
|
|
1861
2025
|
branch?: InputMaybe<Scalars["String"]["input"]>;
|
|
1862
2026
|
relationshipType: Scalars["String"]["input"];
|
|
1863
2027
|
sourceParentIdentifier: Scalars["String"]["input"];
|
|
1864
2028
|
targetIdentifier: Scalars["String"]["input"];
|
|
1865
2029
|
targetParentIdentifier: Scalars["String"]["input"];
|
|
1866
2030
|
};
|
|
1867
|
-
type MutationMutateDocumentArgs = {
|
|
2031
|
+
export type MutationMutateDocumentArgs = {
|
|
1868
2032
|
actions: ReadonlyArray<Scalars["JSONObject"]["input"]>;
|
|
1869
2033
|
documentIdentifier: Scalars["String"]["input"];
|
|
1870
2034
|
view?: InputMaybe<ViewFilterInput>;
|
|
1871
2035
|
};
|
|
1872
|
-
type MutationMutateDocumentAsyncArgs = {
|
|
2036
|
+
export type MutationMutateDocumentAsyncArgs = {
|
|
1873
2037
|
actions: ReadonlyArray<Scalars["JSONObject"]["input"]>;
|
|
1874
2038
|
documentIdentifier: Scalars["String"]["input"];
|
|
1875
2039
|
view?: InputMaybe<ViewFilterInput>;
|
|
1876
2040
|
};
|
|
1877
|
-
type MutationPushSyncEnvelopesArgs = {
|
|
2041
|
+
export type MutationPushSyncEnvelopesArgs = {
|
|
1878
2042
|
envelopes: ReadonlyArray<SyncEnvelopeInput>;
|
|
2043
|
+
peerManifestRevision?: InputMaybe<Scalars["String"]["input"]>;
|
|
1879
2044
|
};
|
|
1880
|
-
type MutationRemoveRelationshipArgs = {
|
|
2045
|
+
export type MutationRemoveRelationshipArgs = {
|
|
1881
2046
|
branch?: InputMaybe<Scalars["String"]["input"]>;
|
|
1882
2047
|
relationshipType: Scalars["String"]["input"];
|
|
1883
2048
|
sourceIdentifier: Scalars["String"]["input"];
|
|
1884
2049
|
targetIdentifier: Scalars["String"]["input"];
|
|
1885
2050
|
};
|
|
1886
|
-
type MutationRenameDocumentArgs = {
|
|
2051
|
+
export type MutationRenameDocumentArgs = {
|
|
1887
2052
|
branch?: InputMaybe<Scalars["String"]["input"]>;
|
|
1888
2053
|
documentIdentifier: Scalars["String"]["input"];
|
|
1889
2054
|
name: Scalars["String"]["input"];
|
|
1890
2055
|
};
|
|
1891
|
-
type MutationSetPreferredEditorArgs = {
|
|
2056
|
+
export type MutationSetPreferredEditorArgs = {
|
|
1892
2057
|
branch?: InputMaybe<Scalars["String"]["input"]>;
|
|
1893
2058
|
documentIdentifier: Scalars["String"]["input"];
|
|
1894
2059
|
preferredEditor?: InputMaybe<Scalars["String"]["input"]>;
|
|
1895
2060
|
};
|
|
1896
|
-
type MutationTouchChannelArgs = {
|
|
2061
|
+
export type MutationTouchChannelArgs = {
|
|
1897
2062
|
input: TouchChannelInput;
|
|
1898
2063
|
};
|
|
1899
|
-
type
|
|
2064
|
+
export type MutationUpdateRelationshipArgs = {
|
|
2065
|
+
branch?: InputMaybe<Scalars["String"]["input"]>;
|
|
2066
|
+
metadata?: InputMaybe<Scalars["JSONObject"]["input"]>;
|
|
2067
|
+
relationshipType: Scalars["String"]["input"];
|
|
2068
|
+
sourceIdentifier: Scalars["String"]["input"];
|
|
2069
|
+
targetIdentifier: Scalars["String"]["input"];
|
|
2070
|
+
};
|
|
2071
|
+
export type OperationContext = {
|
|
1900
2072
|
readonly branch: Scalars["String"]["output"];
|
|
1901
2073
|
readonly documentId: Scalars["String"]["output"];
|
|
1902
2074
|
readonly documentType: Scalars["String"]["output"];
|
|
1903
2075
|
readonly ordinal: Scalars["Int"]["output"];
|
|
1904
2076
|
readonly scope: Scalars["String"]["output"];
|
|
1905
2077
|
};
|
|
1906
|
-
type OperationContextInput = {
|
|
2078
|
+
export type OperationContextInput = {
|
|
1907
2079
|
readonly branch: Scalars["String"]["input"];
|
|
1908
2080
|
readonly documentId: Scalars["String"]["input"];
|
|
1909
2081
|
readonly documentType: Scalars["String"]["input"];
|
|
1910
2082
|
readonly ordinal: Scalars["Int"]["input"];
|
|
1911
2083
|
readonly scope: Scalars["String"]["input"];
|
|
1912
2084
|
};
|
|
1913
|
-
type OperationInput = {
|
|
2085
|
+
export type OperationInput = {
|
|
1914
2086
|
readonly action: ActionInput;
|
|
1915
2087
|
readonly deniedReason?: InputMaybe<Scalars["String"]["input"]>;
|
|
1916
2088
|
readonly error?: InputMaybe<Scalars["String"]["input"]>;
|
|
@@ -1920,15 +2092,15 @@ type OperationInput = {
|
|
|
1920
2092
|
readonly skip: Scalars["Int"]["input"];
|
|
1921
2093
|
readonly timestampUtcMs: Scalars["String"]["input"];
|
|
1922
2094
|
};
|
|
1923
|
-
type OperationWithContext = {
|
|
2095
|
+
export type OperationWithContext = {
|
|
1924
2096
|
readonly context: OperationContext;
|
|
1925
2097
|
readonly operation: ReactorOperation;
|
|
1926
2098
|
};
|
|
1927
|
-
type OperationWithContextInput = {
|
|
2099
|
+
export type OperationWithContextInput = {
|
|
1928
2100
|
readonly context: OperationContextInput;
|
|
1929
2101
|
readonly operation: OperationInput;
|
|
1930
2102
|
};
|
|
1931
|
-
type OperationsFilterInput = {
|
|
2103
|
+
export type OperationsFilterInput = {
|
|
1932
2104
|
readonly actionTypes?: InputMaybe<ReadonlyArray<Scalars["String"]["input"]>>;
|
|
1933
2105
|
readonly branch?: InputMaybe<Scalars["String"]["input"]>;
|
|
1934
2106
|
readonly documentId: Scalars["String"]["input"];
|
|
@@ -1937,7 +2109,7 @@ type OperationsFilterInput = {
|
|
|
1937
2109
|
readonly timestampFrom?: InputMaybe<Scalars["String"]["input"]>;
|
|
1938
2110
|
readonly timestampTo?: InputMaybe<Scalars["String"]["input"]>;
|
|
1939
2111
|
};
|
|
1940
|
-
type PhDocument = {
|
|
2112
|
+
export type PhDocument = {
|
|
1941
2113
|
readonly createdAtUtcIso: Scalars["DateTime"]["output"];
|
|
1942
2114
|
readonly documentType: Scalars["String"]["output"];
|
|
1943
2115
|
readonly id: Scalars["String"]["output"];
|
|
@@ -1949,37 +2121,56 @@ type PhDocument = {
|
|
|
1949
2121
|
readonly slug?: Maybe<Scalars["String"]["output"]>;
|
|
1950
2122
|
readonly state: Scalars["JSONObject"]["output"];
|
|
1951
2123
|
};
|
|
1952
|
-
type PhDocumentOperationsArgs = {
|
|
2124
|
+
export type PhDocumentOperationsArgs = {
|
|
1953
2125
|
filter?: InputMaybe<DocumentOperationsFilterInput>;
|
|
1954
2126
|
paging?: InputMaybe<PagingInput>;
|
|
1955
2127
|
};
|
|
1956
|
-
type PhDocumentResultPage = {
|
|
2128
|
+
export type PhDocumentResultPage = {
|
|
1957
2129
|
readonly cursor?: Maybe<Scalars["String"]["output"]>;
|
|
1958
2130
|
readonly hasNextPage: Scalars["Boolean"]["output"];
|
|
1959
2131
|
readonly hasPreviousPage: Scalars["Boolean"]["output"];
|
|
1960
2132
|
readonly items: ReadonlyArray<PhDocument>;
|
|
1961
|
-
readonly totalCount: Scalars["Int"]["output"];
|
|
1962
2133
|
};
|
|
1963
|
-
type PagingInput = {
|
|
2134
|
+
export type PagingInput = {
|
|
1964
2135
|
readonly cursor?: InputMaybe<Scalars["String"]["input"]>;
|
|
1965
2136
|
readonly limit?: InputMaybe<Scalars["Int"]["input"]>;
|
|
1966
2137
|
readonly offset?: InputMaybe<Scalars["Int"]["input"]>;
|
|
1967
2138
|
};
|
|
1968
|
-
type
|
|
2139
|
+
export type PeerAgreement = {
|
|
2140
|
+
readonly collectionId: Scalars["String"]["output"];
|
|
2141
|
+
readonly limitedBy: ReadonlyArray<PeerAgreementLimit>;
|
|
2142
|
+
readonly local: Scalars["JSONObject"]["output"];
|
|
2143
|
+
readonly members: ReadonlyArray<PeerAgreementMember>;
|
|
2144
|
+
};
|
|
2145
|
+
export type PeerAgreementLimit = {
|
|
2146
|
+
readonly protocol: Scalars["String"]["output"];
|
|
2147
|
+
readonly remoteNames: ReadonlyArray<Scalars["String"]["output"]>;
|
|
2148
|
+
};
|
|
2149
|
+
export type PeerAgreementMember = {
|
|
2150
|
+
readonly announced: Scalars["Boolean"]["output"];
|
|
2151
|
+
readonly features: Scalars["JSONObject"]["output"];
|
|
2152
|
+
readonly protocols: Scalars["JSONObject"]["output"];
|
|
2153
|
+
readonly remoteName: Scalars["String"]["output"];
|
|
2154
|
+
};
|
|
2155
|
+
export type PollSyncEnvelopesResult = {
|
|
1969
2156
|
readonly ackOrdinal: Scalars["Int"]["output"];
|
|
1970
2157
|
readonly deadLetters: ReadonlyArray<DeadLetterInfo>;
|
|
1971
2158
|
readonly envelopes: ReadonlyArray<SyncEnvelope>;
|
|
1972
2159
|
readonly hasMore: Scalars["Boolean"]["output"];
|
|
2160
|
+
readonly manifestRevision?: Maybe<Scalars["String"]["output"]>;
|
|
2161
|
+
readonly peerManifestRevision?: Maybe<Scalars["String"]["output"]>;
|
|
1973
2162
|
};
|
|
1974
|
-
declare enum PropagationMode {
|
|
2163
|
+
export declare enum PropagationMode {
|
|
1975
2164
|
Cascade = "CASCADE",
|
|
1976
2165
|
Orphan = "ORPHAN"
|
|
1977
2166
|
}
|
|
1978
|
-
type Query = {
|
|
2167
|
+
export type Query = {
|
|
1979
2168
|
readonly document?: Maybe<DocumentWithChildren>;
|
|
2169
|
+
readonly documentIncomingRelationshipEdges: DocumentRelationshipResultPage;
|
|
1980
2170
|
readonly documentIncomingRelationships: PhDocumentResultPage;
|
|
1981
2171
|
readonly documentModels: DocumentModelResultPage;
|
|
1982
2172
|
readonly documentOperations: ReactorOperationResultPage;
|
|
2173
|
+
readonly documentOutgoingRelationshipEdges: DocumentRelationshipResultPage;
|
|
1983
2174
|
readonly documentOutgoingRelationships: PhDocumentResultPage;
|
|
1984
2175
|
/**
|
|
1985
2176
|
* Predicts whether the calling subject would be admitted to execute each of a
|
|
@@ -2011,6 +2202,7 @@ type Query = {
|
|
|
2011
2202
|
readonly evaluateActions: ActionEvaluations;
|
|
2012
2203
|
readonly findDocuments: PhDocumentResultPage;
|
|
2013
2204
|
readonly jobStatus?: Maybe<JobInfo>;
|
|
2205
|
+
readonly peerAgreement: PeerAgreement;
|
|
2014
2206
|
/**
|
|
2015
2207
|
* Polls for sync envelopes from a channel.
|
|
2016
2208
|
*
|
|
@@ -2023,50 +2215,72 @@ type Query = {
|
|
|
2023
2215
|
* would stop receiving those too.
|
|
2024
2216
|
*/
|
|
2025
2217
|
readonly pollSyncEnvelopes: PollSyncEnvelopesResult;
|
|
2218
|
+
readonly syncHolds: ReadonlyArray<SyncHold>;
|
|
2026
2219
|
};
|
|
2027
|
-
type QueryDocumentArgs = {
|
|
2220
|
+
export type QueryDocumentArgs = {
|
|
2028
2221
|
identifier: Scalars["String"]["input"];
|
|
2029
2222
|
view?: InputMaybe<ViewFilterInput>;
|
|
2030
2223
|
};
|
|
2031
|
-
type
|
|
2224
|
+
export type QueryDocumentIncomingRelationshipEdgesArgs = {
|
|
2225
|
+
paging?: InputMaybe<PagingInput>;
|
|
2226
|
+
relationshipType?: InputMaybe<Scalars["String"]["input"]>;
|
|
2227
|
+
targetIdentifier: Scalars["String"]["input"];
|
|
2228
|
+
view?: InputMaybe<ViewFilterInput>;
|
|
2229
|
+
};
|
|
2230
|
+
export type QueryDocumentIncomingRelationshipsArgs = {
|
|
2032
2231
|
paging?: InputMaybe<PagingInput>;
|
|
2033
2232
|
relationshipType: Scalars["String"]["input"];
|
|
2034
2233
|
targetIdentifier: Scalars["String"]["input"];
|
|
2035
2234
|
view?: InputMaybe<ViewFilterInput>;
|
|
2036
2235
|
};
|
|
2037
|
-
type QueryDocumentModelsArgs = {
|
|
2236
|
+
export type QueryDocumentModelsArgs = {
|
|
2038
2237
|
namespace?: InputMaybe<Scalars["String"]["input"]>;
|
|
2039
2238
|
paging?: InputMaybe<PagingInput>;
|
|
2040
2239
|
};
|
|
2041
|
-
type QueryDocumentOperationsArgs = {
|
|
2240
|
+
export type QueryDocumentOperationsArgs = {
|
|
2042
2241
|
filter: OperationsFilterInput;
|
|
2043
2242
|
paging?: InputMaybe<PagingInput>;
|
|
2044
2243
|
};
|
|
2045
|
-
type
|
|
2244
|
+
export type QueryDocumentOutgoingRelationshipEdgesArgs = {
|
|
2245
|
+
paging?: InputMaybe<PagingInput>;
|
|
2246
|
+
relationshipType?: InputMaybe<Scalars["String"]["input"]>;
|
|
2247
|
+
sourceIdentifier: Scalars["String"]["input"];
|
|
2248
|
+
view?: InputMaybe<ViewFilterInput>;
|
|
2249
|
+
};
|
|
2250
|
+
export type QueryDocumentOutgoingRelationshipsArgs = {
|
|
2046
2251
|
paging?: InputMaybe<PagingInput>;
|
|
2047
2252
|
relationshipType: Scalars["String"]["input"];
|
|
2048
2253
|
sourceIdentifier: Scalars["String"]["input"];
|
|
2049
2254
|
view?: InputMaybe<ViewFilterInput>;
|
|
2050
2255
|
};
|
|
2051
|
-
type QueryEvaluateActionsArgs = {
|
|
2256
|
+
export type QueryEvaluateActionsArgs = {
|
|
2052
2257
|
branch?: InputMaybe<Scalars["String"]["input"]>;
|
|
2053
2258
|
candidates: ReadonlyArray<ActionCandidateInput>;
|
|
2054
2259
|
documentIdentifier: Scalars["String"]["input"];
|
|
2055
2260
|
};
|
|
2056
|
-
type QueryFindDocumentsArgs = {
|
|
2261
|
+
export type QueryFindDocumentsArgs = {
|
|
2057
2262
|
paging?: InputMaybe<PagingInput>;
|
|
2058
2263
|
search?: InputMaybe<SearchFilterInput>;
|
|
2059
2264
|
view?: InputMaybe<ViewFilterInput>;
|
|
2060
2265
|
};
|
|
2061
|
-
type QueryJobStatusArgs = {
|
|
2266
|
+
export type QueryJobStatusArgs = {
|
|
2062
2267
|
jobId: Scalars["String"]["input"];
|
|
2063
2268
|
};
|
|
2064
|
-
type
|
|
2269
|
+
export type QueryPeerAgreementArgs = {
|
|
2270
|
+
collectionId: Scalars["String"]["input"];
|
|
2271
|
+
};
|
|
2272
|
+
export type QueryPollSyncEnvelopesArgs = {
|
|
2065
2273
|
channelId: Scalars["String"]["input"];
|
|
2274
|
+
manifestRevision?: InputMaybe<Scalars["String"]["input"]>;
|
|
2066
2275
|
outboxAck: Scalars["Int"]["input"];
|
|
2067
2276
|
outboxLatest: Scalars["Int"]["input"];
|
|
2277
|
+
refusals?: InputMaybe<ReadonlyArray<SyncRefusalInput>>;
|
|
2278
|
+
};
|
|
2279
|
+
export type QuerySyncHoldsArgs = {
|
|
2280
|
+
documentId?: InputMaybe<Scalars["String"]["input"]>;
|
|
2281
|
+
remoteName?: InputMaybe<Scalars["String"]["input"]>;
|
|
2068
2282
|
};
|
|
2069
|
-
type ReactorOperation = {
|
|
2283
|
+
export type ReactorOperation = {
|
|
2070
2284
|
readonly action: Action;
|
|
2071
2285
|
readonly deniedReason?: Maybe<Scalars["String"]["output"]>;
|
|
2072
2286
|
readonly error?: Maybe<Scalars["String"]["output"]>;
|
|
@@ -2076,77 +2290,76 @@ type ReactorOperation = {
|
|
|
2076
2290
|
readonly skip: Scalars["Int"]["output"];
|
|
2077
2291
|
readonly timestampUtcMs: Scalars["String"]["output"];
|
|
2078
2292
|
};
|
|
2079
|
-
type ReactorOperationResultPage = {
|
|
2293
|
+
export type ReactorOperationResultPage = {
|
|
2080
2294
|
readonly cursor?: Maybe<Scalars["String"]["output"]>;
|
|
2081
2295
|
readonly hasNextPage: Scalars["Boolean"]["output"];
|
|
2082
2296
|
readonly hasPreviousPage: Scalars["Boolean"]["output"];
|
|
2083
2297
|
readonly items: ReadonlyArray<ReactorOperation>;
|
|
2084
|
-
readonly totalCount: Scalars["Int"]["output"];
|
|
2085
2298
|
};
|
|
2086
|
-
type ReactorSigner = {
|
|
2299
|
+
export type ReactorSigner = {
|
|
2087
2300
|
readonly app?: Maybe<ReactorSignerApp>;
|
|
2088
2301
|
readonly signatures: ReadonlyArray<Scalars["String"]["output"]>;
|
|
2089
2302
|
readonly user?: Maybe<ReactorSignerUser>;
|
|
2090
2303
|
};
|
|
2091
|
-
type ReactorSignerApp = {
|
|
2304
|
+
export type ReactorSignerApp = {
|
|
2092
2305
|
readonly key: Scalars["String"]["output"];
|
|
2093
2306
|
readonly name: Scalars["String"]["output"];
|
|
2094
2307
|
};
|
|
2095
|
-
type ReactorSignerAppInput = {
|
|
2308
|
+
export type ReactorSignerAppInput = {
|
|
2096
2309
|
readonly key: Scalars["String"]["input"];
|
|
2097
2310
|
readonly name: Scalars["String"]["input"];
|
|
2098
2311
|
};
|
|
2099
|
-
type ReactorSignerInput = {
|
|
2312
|
+
export type ReactorSignerInput = {
|
|
2100
2313
|
readonly app?: InputMaybe<ReactorSignerAppInput>;
|
|
2101
2314
|
readonly signatures: ReadonlyArray<Scalars["String"]["input"]>;
|
|
2102
2315
|
readonly user?: InputMaybe<ReactorSignerUserInput>;
|
|
2103
2316
|
};
|
|
2104
|
-
type ReactorSignerUser = {
|
|
2317
|
+
export type ReactorSignerUser = {
|
|
2105
2318
|
readonly address: Scalars["String"]["output"];
|
|
2106
2319
|
readonly chainId: Scalars["Int"]["output"];
|
|
2107
2320
|
readonly networkId: Scalars["String"]["output"];
|
|
2108
2321
|
};
|
|
2109
|
-
type ReactorSignerUserInput = {
|
|
2322
|
+
export type ReactorSignerUserInput = {
|
|
2110
2323
|
readonly address: Scalars["String"]["input"];
|
|
2111
2324
|
readonly chainId: Scalars["Int"]["input"];
|
|
2112
2325
|
readonly networkId: Scalars["String"]["input"];
|
|
2113
2326
|
};
|
|
2114
|
-
type RemoteCursor = {
|
|
2327
|
+
export type RemoteCursor = {
|
|
2115
2328
|
readonly cursorOrdinal: Scalars["Int"]["output"];
|
|
2116
2329
|
readonly lastSyncedAtUtcMs?: Maybe<Scalars["String"]["output"]>;
|
|
2117
2330
|
readonly remoteName: Scalars["String"]["output"];
|
|
2118
2331
|
};
|
|
2119
|
-
type RemoteCursorInput = {
|
|
2332
|
+
export type RemoteCursorInput = {
|
|
2120
2333
|
readonly cursorOrdinal: Scalars["Int"]["input"];
|
|
2121
2334
|
readonly lastSyncedAtUtcMs?: InputMaybe<Scalars["String"]["input"]>;
|
|
2122
2335
|
readonly remoteName: Scalars["String"]["input"];
|
|
2123
2336
|
};
|
|
2124
|
-
type RemoteFilterInput = {
|
|
2337
|
+
export type RemoteFilterInput = {
|
|
2125
2338
|
readonly branch: Scalars["String"]["input"];
|
|
2126
2339
|
readonly documentId: ReadonlyArray<Scalars["String"]["input"]>;
|
|
2127
2340
|
readonly scope: ReadonlyArray<Scalars["String"]["input"]>;
|
|
2128
2341
|
};
|
|
2129
|
-
type Revision = {
|
|
2342
|
+
export type Revision = {
|
|
2130
2343
|
readonly revision: Scalars["Int"]["output"];
|
|
2131
2344
|
readonly scope: Scalars["String"]["output"];
|
|
2132
2345
|
};
|
|
2133
|
-
type SearchFilterInput = {
|
|
2346
|
+
export type SearchFilterInput = {
|
|
2134
2347
|
readonly identifiers?: InputMaybe<ReadonlyArray<Scalars["String"]["input"]>>;
|
|
2135
2348
|
readonly parentId?: InputMaybe<Scalars["String"]["input"]>;
|
|
2136
2349
|
readonly type?: InputMaybe<Scalars["String"]["input"]>;
|
|
2137
2350
|
};
|
|
2138
|
-
type Subscription = {
|
|
2351
|
+
export type Subscription = {
|
|
2139
2352
|
readonly documentChanges: DocumentChangeEvent;
|
|
2140
2353
|
readonly jobChanges: JobChangeEvent;
|
|
2141
2354
|
};
|
|
2142
|
-
type SubscriptionDocumentChangesArgs = {
|
|
2355
|
+
export type SubscriptionDocumentChangesArgs = {
|
|
2143
2356
|
search?: InputMaybe<SearchFilterInput>;
|
|
2144
2357
|
view?: InputMaybe<ViewFilterInput>;
|
|
2145
2358
|
};
|
|
2146
|
-
type SubscriptionJobChangesArgs = {
|
|
2359
|
+
export type SubscriptionJobChangesArgs = {
|
|
2147
2360
|
jobId: Scalars["String"]["input"];
|
|
2148
2361
|
};
|
|
2149
|
-
type SyncEnvelope = {
|
|
2362
|
+
export type SyncEnvelope = {
|
|
2150
2363
|
readonly channelMeta: ChannelMeta;
|
|
2151
2364
|
readonly cursor?: Maybe<RemoteCursor>;
|
|
2152
2365
|
readonly dependsOn?: Maybe<ReadonlyArray<Scalars["String"]["output"]>>;
|
|
@@ -2154,7 +2367,7 @@ type SyncEnvelope = {
|
|
|
2154
2367
|
readonly operations?: Maybe<ReadonlyArray<OperationWithContext>>;
|
|
2155
2368
|
readonly type: SyncEnvelopeType;
|
|
2156
2369
|
};
|
|
2157
|
-
type SyncEnvelopeInput = {
|
|
2370
|
+
export type SyncEnvelopeInput = {
|
|
2158
2371
|
readonly channelMeta: ChannelMetaInput;
|
|
2159
2372
|
readonly cursor?: InputMaybe<RemoteCursorInput>;
|
|
2160
2373
|
readonly dependsOn?: InputMaybe<ReadonlyArray<Scalars["String"]["input"]>>;
|
|
@@ -2162,26 +2375,44 @@ type SyncEnvelopeInput = {
|
|
|
2162
2375
|
readonly operations?: InputMaybe<ReadonlyArray<OperationWithContextInput>>;
|
|
2163
2376
|
readonly type: SyncEnvelopeType;
|
|
2164
2377
|
};
|
|
2165
|
-
declare enum SyncEnvelopeType {
|
|
2378
|
+
export declare enum SyncEnvelopeType {
|
|
2166
2379
|
Ack = "ACK",
|
|
2167
2380
|
Operations = "OPERATIONS"
|
|
2168
2381
|
}
|
|
2169
|
-
type
|
|
2382
|
+
export type SyncHold = {
|
|
2383
|
+
readonly branch: Scalars["String"]["output"];
|
|
2384
|
+
readonly documentId: Scalars["String"]["output"];
|
|
2385
|
+
readonly heldAtUtcMs: Scalars["String"]["output"];
|
|
2386
|
+
readonly reason: SyncHoldReason;
|
|
2387
|
+
readonly remoteName: Scalars["String"]["output"];
|
|
2388
|
+
};
|
|
2389
|
+
export type SyncHoldReason = {
|
|
2390
|
+
readonly peerSupports: ReadonlyArray<Scalars["Int"]["output"]>;
|
|
2391
|
+
readonly protocol: Scalars["String"]["output"];
|
|
2392
|
+
readonly version: Scalars["Int"]["output"];
|
|
2393
|
+
};
|
|
2394
|
+
export type SyncRefusalInput = {
|
|
2395
|
+
readonly branch: Scalars["String"]["input"];
|
|
2396
|
+
readonly documentId: Scalars["String"]["input"];
|
|
2397
|
+
};
|
|
2398
|
+
export type TouchChannelInput = {
|
|
2170
2399
|
readonly collectionId: Scalars["String"]["input"];
|
|
2171
2400
|
readonly filter: RemoteFilterInput;
|
|
2172
2401
|
readonly id: Scalars["String"]["input"];
|
|
2402
|
+
readonly manifest?: InputMaybe<Scalars["JSONObject"]["input"]>;
|
|
2173
2403
|
readonly name: Scalars["String"]["input"];
|
|
2174
2404
|
readonly sinceTimestampUtcMs: Scalars["String"]["input"];
|
|
2175
2405
|
};
|
|
2176
|
-
type TouchChannelResult = {
|
|
2406
|
+
export type TouchChannelResult = {
|
|
2177
2407
|
readonly ackOrdinal: Scalars["Int"]["output"];
|
|
2408
|
+
readonly manifest?: Maybe<Scalars["JSONObject"]["output"]>;
|
|
2178
2409
|
readonly success: Scalars["Boolean"]["output"];
|
|
2179
2410
|
};
|
|
2180
|
-
type ViewFilterInput = {
|
|
2411
|
+
export type ViewFilterInput = {
|
|
2181
2412
|
readonly branch?: InputMaybe<Scalars["String"]["input"]>;
|
|
2182
2413
|
readonly scopes?: InputMaybe<ReadonlyArray<Scalars["String"]["input"]>>;
|
|
2183
2414
|
};
|
|
2184
|
-
type PhDocumentFieldsFragment = {
|
|
2415
|
+
export type PhDocumentFieldsFragment = {
|
|
2185
2416
|
readonly id: string;
|
|
2186
2417
|
readonly slug?: string | null | undefined;
|
|
2187
2418
|
readonly name: string;
|
|
@@ -2194,13 +2425,20 @@ type PhDocumentFieldsFragment = {
|
|
|
2194
2425
|
readonly revision: number;
|
|
2195
2426
|
}>;
|
|
2196
2427
|
};
|
|
2197
|
-
type
|
|
2428
|
+
export type DocumentRelationshipFieldsFragment = {
|
|
2429
|
+
readonly sourceId: string;
|
|
2430
|
+
readonly targetId: string;
|
|
2431
|
+
readonly relationshipType: string;
|
|
2432
|
+
readonly metadata?: NonNullable<unknown> | null | undefined;
|
|
2433
|
+
readonly createdAt: string | Date;
|
|
2434
|
+
readonly updatedAt: string | Date;
|
|
2435
|
+
};
|
|
2436
|
+
export type GetDocumentModelsQueryVariables = Exact<{
|
|
2198
2437
|
namespace?: InputMaybe<Scalars["String"]["input"]>;
|
|
2199
2438
|
paging?: InputMaybe<PagingInput>;
|
|
2200
2439
|
}>;
|
|
2201
|
-
type GetDocumentModelsQuery = {
|
|
2440
|
+
export type GetDocumentModelsQuery = {
|
|
2202
2441
|
readonly documentModels: {
|
|
2203
|
-
readonly totalCount: number;
|
|
2204
2442
|
readonly hasNextPage: boolean;
|
|
2205
2443
|
readonly hasPreviousPage: boolean;
|
|
2206
2444
|
readonly cursor?: string | null | undefined;
|
|
@@ -2213,11 +2451,11 @@ type GetDocumentModelsQuery = {
|
|
|
2213
2451
|
}>;
|
|
2214
2452
|
};
|
|
2215
2453
|
};
|
|
2216
|
-
type GetDocumentQueryVariables = Exact<{
|
|
2454
|
+
export type GetDocumentQueryVariables = Exact<{
|
|
2217
2455
|
identifier: Scalars["String"]["input"];
|
|
2218
2456
|
view?: InputMaybe<ViewFilterInput>;
|
|
2219
2457
|
}>;
|
|
2220
|
-
type GetDocumentQuery = {
|
|
2458
|
+
export type GetDocumentQuery = {
|
|
2221
2459
|
readonly document?: {
|
|
2222
2460
|
readonly childIds: ReadonlyArray<string>;
|
|
2223
2461
|
readonly document: {
|
|
@@ -2235,13 +2473,13 @@ type GetDocumentQuery = {
|
|
|
2235
2473
|
};
|
|
2236
2474
|
} | null | undefined;
|
|
2237
2475
|
};
|
|
2238
|
-
type GetDocumentWithOperationsQueryVariables = Exact<{
|
|
2476
|
+
export type GetDocumentWithOperationsQueryVariables = Exact<{
|
|
2239
2477
|
identifier: Scalars["String"]["input"];
|
|
2240
2478
|
view?: InputMaybe<ViewFilterInput>;
|
|
2241
2479
|
operationsFilter?: InputMaybe<DocumentOperationsFilterInput>;
|
|
2242
2480
|
operationsPaging?: InputMaybe<PagingInput>;
|
|
2243
2481
|
}>;
|
|
2244
|
-
type GetDocumentWithOperationsQuery = {
|
|
2482
|
+
export type GetDocumentWithOperationsQuery = {
|
|
2245
2483
|
readonly document?: {
|
|
2246
2484
|
readonly childIds: ReadonlyArray<string>;
|
|
2247
2485
|
readonly document: {
|
|
@@ -2253,7 +2491,6 @@ type GetDocumentWithOperationsQuery = {
|
|
|
2253
2491
|
readonly createdAtUtcIso: string | Date;
|
|
2254
2492
|
readonly lastModifiedAtUtcIso: string | Date;
|
|
2255
2493
|
readonly operations?: {
|
|
2256
|
-
readonly totalCount: number;
|
|
2257
2494
|
readonly hasNextPage: boolean;
|
|
2258
2495
|
readonly hasPreviousPage: boolean;
|
|
2259
2496
|
readonly cursor?: string | null | undefined;
|
|
@@ -2295,15 +2532,14 @@ type GetDocumentWithOperationsQuery = {
|
|
|
2295
2532
|
};
|
|
2296
2533
|
} | null | undefined;
|
|
2297
2534
|
};
|
|
2298
|
-
type GetDocumentOutgoingRelationshipsQueryVariables = Exact<{
|
|
2535
|
+
export type GetDocumentOutgoingRelationshipsQueryVariables = Exact<{
|
|
2299
2536
|
sourceIdentifier: Scalars["String"]["input"];
|
|
2300
2537
|
relationshipType: Scalars["String"]["input"];
|
|
2301
2538
|
view?: InputMaybe<ViewFilterInput>;
|
|
2302
2539
|
paging?: InputMaybe<PagingInput>;
|
|
2303
2540
|
}>;
|
|
2304
|
-
type GetDocumentOutgoingRelationshipsQuery = {
|
|
2541
|
+
export type GetDocumentOutgoingRelationshipsQuery = {
|
|
2305
2542
|
readonly documentOutgoingRelationships: {
|
|
2306
|
-
readonly totalCount: number;
|
|
2307
2543
|
readonly hasNextPage: boolean;
|
|
2308
2544
|
readonly hasPreviousPage: boolean;
|
|
2309
2545
|
readonly cursor?: string | null | undefined;
|
|
@@ -2322,15 +2558,14 @@ type GetDocumentOutgoingRelationshipsQuery = {
|
|
|
2322
2558
|
}>;
|
|
2323
2559
|
};
|
|
2324
2560
|
};
|
|
2325
|
-
type GetDocumentIncomingRelationshipsQueryVariables = Exact<{
|
|
2561
|
+
export type GetDocumentIncomingRelationshipsQueryVariables = Exact<{
|
|
2326
2562
|
targetIdentifier: Scalars["String"]["input"];
|
|
2327
2563
|
relationshipType: Scalars["String"]["input"];
|
|
2328
2564
|
view?: InputMaybe<ViewFilterInput>;
|
|
2329
2565
|
paging?: InputMaybe<PagingInput>;
|
|
2330
2566
|
}>;
|
|
2331
|
-
type GetDocumentIncomingRelationshipsQuery = {
|
|
2567
|
+
export type GetDocumentIncomingRelationshipsQuery = {
|
|
2332
2568
|
readonly documentIncomingRelationships: {
|
|
2333
|
-
readonly totalCount: number;
|
|
2334
2569
|
readonly hasNextPage: boolean;
|
|
2335
2570
|
readonly hasPreviousPage: boolean;
|
|
2336
2571
|
readonly cursor?: string | null | undefined;
|
|
@@ -2349,14 +2584,55 @@ type GetDocumentIncomingRelationshipsQuery = {
|
|
|
2349
2584
|
}>;
|
|
2350
2585
|
};
|
|
2351
2586
|
};
|
|
2352
|
-
type
|
|
2587
|
+
export type GetDocumentOutgoingRelationshipEdgesQueryVariables = Exact<{
|
|
2588
|
+
sourceIdentifier: Scalars["String"]["input"];
|
|
2589
|
+
relationshipType?: InputMaybe<Scalars["String"]["input"]>;
|
|
2590
|
+
view?: InputMaybe<ViewFilterInput>;
|
|
2591
|
+
paging?: InputMaybe<PagingInput>;
|
|
2592
|
+
}>;
|
|
2593
|
+
export type GetDocumentOutgoingRelationshipEdgesQuery = {
|
|
2594
|
+
readonly documentOutgoingRelationshipEdges: {
|
|
2595
|
+
readonly hasNextPage: boolean;
|
|
2596
|
+
readonly hasPreviousPage: boolean;
|
|
2597
|
+
readonly cursor?: string | null | undefined;
|
|
2598
|
+
readonly items: ReadonlyArray<{
|
|
2599
|
+
readonly sourceId: string;
|
|
2600
|
+
readonly targetId: string;
|
|
2601
|
+
readonly relationshipType: string;
|
|
2602
|
+
readonly metadata?: NonNullable<unknown> | null | undefined;
|
|
2603
|
+
readonly createdAt: string | Date;
|
|
2604
|
+
readonly updatedAt: string | Date;
|
|
2605
|
+
}>;
|
|
2606
|
+
};
|
|
2607
|
+
};
|
|
2608
|
+
export type GetDocumentIncomingRelationshipEdgesQueryVariables = Exact<{
|
|
2609
|
+
targetIdentifier: Scalars["String"]["input"];
|
|
2610
|
+
relationshipType?: InputMaybe<Scalars["String"]["input"]>;
|
|
2611
|
+
view?: InputMaybe<ViewFilterInput>;
|
|
2612
|
+
paging?: InputMaybe<PagingInput>;
|
|
2613
|
+
}>;
|
|
2614
|
+
export type GetDocumentIncomingRelationshipEdgesQuery = {
|
|
2615
|
+
readonly documentIncomingRelationshipEdges: {
|
|
2616
|
+
readonly hasNextPage: boolean;
|
|
2617
|
+
readonly hasPreviousPage: boolean;
|
|
2618
|
+
readonly cursor?: string | null | undefined;
|
|
2619
|
+
readonly items: ReadonlyArray<{
|
|
2620
|
+
readonly sourceId: string;
|
|
2621
|
+
readonly targetId: string;
|
|
2622
|
+
readonly relationshipType: string;
|
|
2623
|
+
readonly metadata?: NonNullable<unknown> | null | undefined;
|
|
2624
|
+
readonly createdAt: string | Date;
|
|
2625
|
+
readonly updatedAt: string | Date;
|
|
2626
|
+
}>;
|
|
2627
|
+
};
|
|
2628
|
+
};
|
|
2629
|
+
export type FindDocumentsQueryVariables = Exact<{
|
|
2353
2630
|
search?: InputMaybe<SearchFilterInput>;
|
|
2354
2631
|
view?: InputMaybe<ViewFilterInput>;
|
|
2355
2632
|
paging?: InputMaybe<PagingInput>;
|
|
2356
2633
|
}>;
|
|
2357
|
-
type FindDocumentsQuery = {
|
|
2634
|
+
export type FindDocumentsQuery = {
|
|
2358
2635
|
readonly findDocuments: {
|
|
2359
|
-
readonly totalCount: number;
|
|
2360
2636
|
readonly hasNextPage: boolean;
|
|
2361
2637
|
readonly hasPreviousPage: boolean;
|
|
2362
2638
|
readonly cursor?: string | null | undefined;
|
|
@@ -2375,13 +2651,12 @@ type FindDocumentsQuery = {
|
|
|
2375
2651
|
}>;
|
|
2376
2652
|
};
|
|
2377
2653
|
};
|
|
2378
|
-
type GetDocumentOperationsQueryVariables = Exact<{
|
|
2654
|
+
export type GetDocumentOperationsQueryVariables = Exact<{
|
|
2379
2655
|
filter: OperationsFilterInput;
|
|
2380
2656
|
paging?: InputMaybe<PagingInput>;
|
|
2381
2657
|
}>;
|
|
2382
|
-
type GetDocumentOperationsQuery = {
|
|
2658
|
+
export type GetDocumentOperationsQuery = {
|
|
2383
2659
|
readonly documentOperations: {
|
|
2384
|
-
readonly totalCount: number;
|
|
2385
2660
|
readonly hasNextPage: boolean;
|
|
2386
2661
|
readonly hasPreviousPage: boolean;
|
|
2387
2662
|
readonly cursor?: string | null | undefined;
|
|
@@ -2417,10 +2692,10 @@ type GetDocumentOperationsQuery = {
|
|
|
2417
2692
|
}>;
|
|
2418
2693
|
};
|
|
2419
2694
|
};
|
|
2420
|
-
type GetJobStatusQueryVariables = Exact<{
|
|
2695
|
+
export type GetJobStatusQueryVariables = Exact<{
|
|
2421
2696
|
jobId: Scalars["String"]["input"];
|
|
2422
2697
|
}>;
|
|
2423
|
-
type GetJobStatusQuery = {
|
|
2698
|
+
export type GetJobStatusQuery = {
|
|
2424
2699
|
readonly jobStatus?: {
|
|
2425
2700
|
readonly id: string;
|
|
2426
2701
|
readonly status: string;
|
|
@@ -2430,12 +2705,12 @@ type GetJobStatusQuery = {
|
|
|
2430
2705
|
readonly completedAt?: string | Date | null | undefined;
|
|
2431
2706
|
} | null | undefined;
|
|
2432
2707
|
};
|
|
2433
|
-
type EvaluateActionsQueryVariables = Exact<{
|
|
2708
|
+
export type EvaluateActionsQueryVariables = Exact<{
|
|
2434
2709
|
documentIdentifier: Scalars["String"]["input"];
|
|
2435
2710
|
branch?: InputMaybe<Scalars["String"]["input"]>;
|
|
2436
2711
|
candidates: ReadonlyArray<ActionCandidateInput>;
|
|
2437
2712
|
}>;
|
|
2438
|
-
type EvaluateActionsQuery = {
|
|
2713
|
+
export type EvaluateActionsQuery = {
|
|
2439
2714
|
readonly evaluateActions: {
|
|
2440
2715
|
readonly allAllowed: boolean;
|
|
2441
2716
|
readonly anyAllowed: boolean;
|
|
@@ -2447,11 +2722,11 @@ type EvaluateActionsQuery = {
|
|
|
2447
2722
|
}>;
|
|
2448
2723
|
};
|
|
2449
2724
|
};
|
|
2450
|
-
type CreateDocumentMutationVariables = Exact<{
|
|
2725
|
+
export type CreateDocumentMutationVariables = Exact<{
|
|
2451
2726
|
document: Scalars["JSONObject"]["input"];
|
|
2452
2727
|
parentIdentifier?: InputMaybe<Scalars["String"]["input"]>;
|
|
2453
2728
|
}>;
|
|
2454
|
-
type CreateDocumentMutation = {
|
|
2729
|
+
export type CreateDocumentMutation = {
|
|
2455
2730
|
readonly createDocument: {
|
|
2456
2731
|
readonly id: string;
|
|
2457
2732
|
readonly slug?: string | null | undefined;
|
|
@@ -2466,11 +2741,11 @@ type CreateDocumentMutation = {
|
|
|
2466
2741
|
}>;
|
|
2467
2742
|
};
|
|
2468
2743
|
};
|
|
2469
|
-
type CreateEmptyDocumentMutationVariables = Exact<{
|
|
2744
|
+
export type CreateEmptyDocumentMutationVariables = Exact<{
|
|
2470
2745
|
documentType: Scalars["String"]["input"];
|
|
2471
2746
|
parentIdentifier?: InputMaybe<Scalars["String"]["input"]>;
|
|
2472
2747
|
}>;
|
|
2473
|
-
type CreateEmptyDocumentMutation = {
|
|
2748
|
+
export type CreateEmptyDocumentMutation = {
|
|
2474
2749
|
readonly createEmptyDocument: {
|
|
2475
2750
|
readonly id: string;
|
|
2476
2751
|
readonly slug?: string | null | undefined;
|
|
@@ -2485,12 +2760,12 @@ type CreateEmptyDocumentMutation = {
|
|
|
2485
2760
|
}>;
|
|
2486
2761
|
};
|
|
2487
2762
|
};
|
|
2488
|
-
type MutateDocumentMutationVariables = Exact<{
|
|
2763
|
+
export type MutateDocumentMutationVariables = Exact<{
|
|
2489
2764
|
documentIdentifier: Scalars["String"]["input"];
|
|
2490
2765
|
actions: ReadonlyArray<ActionInput>;
|
|
2491
2766
|
branch?: InputMaybe<Scalars["String"]["input"]>;
|
|
2492
2767
|
}>;
|
|
2493
|
-
type MutateDocumentMutation = {
|
|
2768
|
+
export type MutateDocumentMutation = {
|
|
2494
2769
|
readonly mutateDocument: {
|
|
2495
2770
|
readonly id: string;
|
|
2496
2771
|
readonly slug?: string | null | undefined;
|
|
@@ -2505,12 +2780,12 @@ type MutateDocumentMutation = {
|
|
|
2505
2780
|
}>;
|
|
2506
2781
|
};
|
|
2507
2782
|
};
|
|
2508
|
-
type MutateDocumentAsyncMutationVariables = Exact<{
|
|
2783
|
+
export type MutateDocumentAsyncMutationVariables = Exact<{
|
|
2509
2784
|
documentIdentifier: Scalars["String"]["input"];
|
|
2510
2785
|
actions: ReadonlyArray<ActionInput>;
|
|
2511
2786
|
branch?: InputMaybe<Scalars["String"]["input"]>;
|
|
2512
2787
|
}>;
|
|
2513
|
-
type MutateDocumentAsyncMutation = {
|
|
2788
|
+
export type MutateDocumentAsyncMutation = {
|
|
2514
2789
|
readonly mutateDocumentAsync: {
|
|
2515
2790
|
readonly id: string;
|
|
2516
2791
|
readonly status: string;
|
|
@@ -2520,12 +2795,12 @@ type MutateDocumentAsyncMutation = {
|
|
|
2520
2795
|
readonly completedAt?: string | Date | null | undefined;
|
|
2521
2796
|
};
|
|
2522
2797
|
};
|
|
2523
|
-
type RenameDocumentMutationVariables = Exact<{
|
|
2798
|
+
export type RenameDocumentMutationVariables = Exact<{
|
|
2524
2799
|
documentIdentifier: Scalars["String"]["input"];
|
|
2525
2800
|
name: Scalars["String"]["input"];
|
|
2526
2801
|
branch?: InputMaybe<Scalars["String"]["input"]>;
|
|
2527
2802
|
}>;
|
|
2528
|
-
type RenameDocumentMutation = {
|
|
2803
|
+
export type RenameDocumentMutation = {
|
|
2529
2804
|
readonly renameDocument: {
|
|
2530
2805
|
readonly id: string;
|
|
2531
2806
|
readonly slug?: string | null | undefined;
|
|
@@ -2540,12 +2815,12 @@ type RenameDocumentMutation = {
|
|
|
2540
2815
|
}>;
|
|
2541
2816
|
};
|
|
2542
2817
|
};
|
|
2543
|
-
type SetPreferredEditorMutationVariables = Exact<{
|
|
2818
|
+
export type SetPreferredEditorMutationVariables = Exact<{
|
|
2544
2819
|
documentIdentifier: Scalars["String"]["input"];
|
|
2545
2820
|
preferredEditor?: InputMaybe<Scalars["String"]["input"]>;
|
|
2546
2821
|
branch?: InputMaybe<Scalars["String"]["input"]>;
|
|
2547
2822
|
}>;
|
|
2548
|
-
type SetPreferredEditorMutation = {
|
|
2823
|
+
export type SetPreferredEditorMutation = {
|
|
2549
2824
|
readonly setPreferredEditor: {
|
|
2550
2825
|
readonly id: string;
|
|
2551
2826
|
readonly slug?: string | null | undefined;
|
|
@@ -2560,13 +2835,14 @@ type SetPreferredEditorMutation = {
|
|
|
2560
2835
|
}>;
|
|
2561
2836
|
};
|
|
2562
2837
|
};
|
|
2563
|
-
type AddRelationshipMutationVariables = Exact<{
|
|
2838
|
+
export type AddRelationshipMutationVariables = Exact<{
|
|
2564
2839
|
sourceIdentifier: Scalars["String"]["input"];
|
|
2565
2840
|
targetIdentifier: Scalars["String"]["input"];
|
|
2566
2841
|
relationshipType: Scalars["String"]["input"];
|
|
2842
|
+
metadata?: InputMaybe<Scalars["JSONObject"]["input"]>;
|
|
2567
2843
|
branch?: InputMaybe<Scalars["String"]["input"]>;
|
|
2568
2844
|
}>;
|
|
2569
|
-
type AddRelationshipMutation = {
|
|
2845
|
+
export type AddRelationshipMutation = {
|
|
2570
2846
|
readonly addRelationship: {
|
|
2571
2847
|
readonly id: string;
|
|
2572
2848
|
readonly slug?: string | null | undefined;
|
|
@@ -2581,13 +2857,35 @@ type AddRelationshipMutation = {
|
|
|
2581
2857
|
}>;
|
|
2582
2858
|
};
|
|
2583
2859
|
};
|
|
2584
|
-
type
|
|
2860
|
+
export type UpdateRelationshipMutationVariables = Exact<{
|
|
2861
|
+
sourceIdentifier: Scalars["String"]["input"];
|
|
2862
|
+
targetIdentifier: Scalars["String"]["input"];
|
|
2863
|
+
relationshipType: Scalars["String"]["input"];
|
|
2864
|
+
metadata?: InputMaybe<Scalars["JSONObject"]["input"]>;
|
|
2865
|
+
branch?: InputMaybe<Scalars["String"]["input"]>;
|
|
2866
|
+
}>;
|
|
2867
|
+
export type UpdateRelationshipMutation = {
|
|
2868
|
+
readonly updateRelationship: {
|
|
2869
|
+
readonly id: string;
|
|
2870
|
+
readonly slug?: string | null | undefined;
|
|
2871
|
+
readonly name: string;
|
|
2872
|
+
readonly documentType: string;
|
|
2873
|
+
readonly state: NonNullable<unknown>;
|
|
2874
|
+
readonly createdAtUtcIso: string | Date;
|
|
2875
|
+
readonly lastModifiedAtUtcIso: string | Date;
|
|
2876
|
+
readonly revisionsList: ReadonlyArray<{
|
|
2877
|
+
readonly scope: string;
|
|
2878
|
+
readonly revision: number;
|
|
2879
|
+
}>;
|
|
2880
|
+
};
|
|
2881
|
+
};
|
|
2882
|
+
export type RemoveRelationshipMutationVariables = Exact<{
|
|
2585
2883
|
sourceIdentifier: Scalars["String"]["input"];
|
|
2586
2884
|
targetIdentifier: Scalars["String"]["input"];
|
|
2587
2885
|
relationshipType: Scalars["String"]["input"];
|
|
2588
2886
|
branch?: InputMaybe<Scalars["String"]["input"]>;
|
|
2589
2887
|
}>;
|
|
2590
|
-
type RemoveRelationshipMutation = {
|
|
2888
|
+
export type RemoveRelationshipMutation = {
|
|
2591
2889
|
readonly removeRelationship: {
|
|
2592
2890
|
readonly id: string;
|
|
2593
2891
|
readonly slug?: string | null | undefined;
|
|
@@ -2602,14 +2900,14 @@ type RemoveRelationshipMutation = {
|
|
|
2602
2900
|
}>;
|
|
2603
2901
|
};
|
|
2604
2902
|
};
|
|
2605
|
-
type MoveRelationshipMutationVariables = Exact<{
|
|
2903
|
+
export type MoveRelationshipMutationVariables = Exact<{
|
|
2606
2904
|
sourceParentIdentifier: Scalars["String"]["input"];
|
|
2607
2905
|
targetParentIdentifier: Scalars["String"]["input"];
|
|
2608
2906
|
targetIdentifier: Scalars["String"]["input"];
|
|
2609
2907
|
relationshipType: Scalars["String"]["input"];
|
|
2610
2908
|
branch?: InputMaybe<Scalars["String"]["input"]>;
|
|
2611
2909
|
}>;
|
|
2612
|
-
type MoveRelationshipMutation = {
|
|
2910
|
+
export type MoveRelationshipMutation = {
|
|
2613
2911
|
readonly moveRelationship: {
|
|
2614
2912
|
readonly source: {
|
|
2615
2913
|
readonly id: string;
|
|
@@ -2639,25 +2937,25 @@ type MoveRelationshipMutation = {
|
|
|
2639
2937
|
};
|
|
2640
2938
|
};
|
|
2641
2939
|
};
|
|
2642
|
-
type DeleteDocumentMutationVariables = Exact<{
|
|
2940
|
+
export type DeleteDocumentMutationVariables = Exact<{
|
|
2643
2941
|
identifier: Scalars["String"]["input"];
|
|
2644
2942
|
propagate?: InputMaybe<PropagationMode>;
|
|
2645
2943
|
}>;
|
|
2646
|
-
type DeleteDocumentMutation = {
|
|
2944
|
+
export type DeleteDocumentMutation = {
|
|
2647
2945
|
readonly deleteDocument: boolean;
|
|
2648
2946
|
};
|
|
2649
|
-
type DeleteDocumentsMutationVariables = Exact<{
|
|
2947
|
+
export type DeleteDocumentsMutationVariables = Exact<{
|
|
2650
2948
|
identifiers: ReadonlyArray<Scalars["String"]["input"]>;
|
|
2651
2949
|
propagate?: InputMaybe<PropagationMode>;
|
|
2652
2950
|
}>;
|
|
2653
|
-
type DeleteDocumentsMutation = {
|
|
2951
|
+
export type DeleteDocumentsMutation = {
|
|
2654
2952
|
readonly deleteDocuments: boolean;
|
|
2655
2953
|
};
|
|
2656
|
-
type DocumentChangesSubscriptionVariables = Exact<{
|
|
2954
|
+
export type DocumentChangesSubscriptionVariables = Exact<{
|
|
2657
2955
|
search?: InputMaybe<SearchFilterInput>;
|
|
2658
2956
|
view?: InputMaybe<ViewFilterInput>;
|
|
2659
2957
|
}>;
|
|
2660
|
-
type DocumentChangesSubscription = {
|
|
2958
|
+
export type DocumentChangesSubscription = {
|
|
2661
2959
|
readonly documentChanges: {
|
|
2662
2960
|
readonly type: DocumentChangeType;
|
|
2663
2961
|
readonly documents: ReadonlyArray<{
|
|
@@ -2679,26 +2977,30 @@ type DocumentChangesSubscription = {
|
|
|
2679
2977
|
} | null | undefined;
|
|
2680
2978
|
};
|
|
2681
2979
|
};
|
|
2682
|
-
type JobChangesSubscriptionVariables = Exact<{
|
|
2980
|
+
export type JobChangesSubscriptionVariables = Exact<{
|
|
2683
2981
|
jobId: Scalars["String"]["input"];
|
|
2684
2982
|
}>;
|
|
2685
|
-
type JobChangesSubscription = {
|
|
2983
|
+
export type JobChangesSubscription = {
|
|
2686
2984
|
readonly jobChanges: {
|
|
2687
2985
|
readonly jobId: string;
|
|
2688
2986
|
readonly status: string;
|
|
2689
|
-
readonly result
|
|
2987
|
+
readonly result?: NonNullable<unknown> | null | undefined;
|
|
2690
2988
|
readonly error?: string | null | undefined;
|
|
2691
2989
|
};
|
|
2692
2990
|
};
|
|
2693
|
-
type PollSyncEnvelopesQueryVariables = Exact<{
|
|
2991
|
+
export type PollSyncEnvelopesQueryVariables = Exact<{
|
|
2694
2992
|
channelId: Scalars["String"]["input"];
|
|
2695
2993
|
outboxAck: Scalars["Int"]["input"];
|
|
2696
2994
|
outboxLatest: Scalars["Int"]["input"];
|
|
2995
|
+
manifestRevision?: InputMaybe<Scalars["String"]["input"]>;
|
|
2996
|
+
refusals?: InputMaybe<ReadonlyArray<SyncRefusalInput>>;
|
|
2697
2997
|
}>;
|
|
2698
|
-
type PollSyncEnvelopesQuery = {
|
|
2998
|
+
export type PollSyncEnvelopesQuery = {
|
|
2699
2999
|
readonly pollSyncEnvelopes: {
|
|
2700
3000
|
readonly ackOrdinal: number;
|
|
2701
3001
|
readonly hasMore: boolean;
|
|
3002
|
+
readonly manifestRevision?: string | null | undefined;
|
|
3003
|
+
readonly peerManifestRevision?: string | null | undefined;
|
|
2702
3004
|
readonly envelopes: ReadonlyArray<{
|
|
2703
3005
|
readonly type: SyncEnvelopeType;
|
|
2704
3006
|
readonly key?: string | null | undefined;
|
|
@@ -2757,47 +3059,49 @@ type PollSyncEnvelopesQuery = {
|
|
|
2757
3059
|
}>;
|
|
2758
3060
|
};
|
|
2759
3061
|
};
|
|
2760
|
-
type TouchChannelMutationVariables = Exact<{
|
|
3062
|
+
export type TouchChannelMutationVariables = Exact<{
|
|
2761
3063
|
input: TouchChannelInput;
|
|
2762
3064
|
}>;
|
|
2763
|
-
type TouchChannelMutation = {
|
|
3065
|
+
export type TouchChannelMutation = {
|
|
2764
3066
|
readonly touchChannel: {
|
|
2765
3067
|
readonly success: boolean;
|
|
2766
3068
|
readonly ackOrdinal: number;
|
|
3069
|
+
readonly manifest?: NonNullable<unknown> | null | undefined;
|
|
2767
3070
|
};
|
|
2768
3071
|
};
|
|
2769
|
-
type PushSyncEnvelopesMutationVariables = Exact<{
|
|
3072
|
+
export type PushSyncEnvelopesMutationVariables = Exact<{
|
|
2770
3073
|
envelopes: ReadonlyArray<SyncEnvelopeInput>;
|
|
3074
|
+
peerManifestRevision?: InputMaybe<Scalars["String"]["input"]>;
|
|
2771
3075
|
}>;
|
|
2772
|
-
type PushSyncEnvelopesMutation = {
|
|
3076
|
+
export type PushSyncEnvelopesMutation = {
|
|
2773
3077
|
readonly pushSyncEnvelopes: boolean;
|
|
2774
3078
|
};
|
|
2775
|
-
type WithIndex<TObject> = TObject & Record<string, any>;
|
|
2776
|
-
type ResolversObject<TObject> = WithIndex<TObject>;
|
|
2777
|
-
type ResolverTypeWrapper<T> = Promise<T> | T;
|
|
2778
|
-
type ResolverWithResolve<TResult, TParent, TContext, TArgs> = {
|
|
3079
|
+
export type WithIndex<TObject> = TObject & Record<string, any>;
|
|
3080
|
+
export type ResolversObject<TObject> = WithIndex<TObject>;
|
|
3081
|
+
export type ResolverTypeWrapper<T> = Promise<T> | T;
|
|
3082
|
+
export type ResolverWithResolve<TResult, TParent, TContext, TArgs> = {
|
|
2779
3083
|
resolve: ResolverFn<TResult, TParent, TContext, TArgs>;
|
|
2780
3084
|
};
|
|
2781
|
-
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>;
|
|
2782
|
-
type ResolverFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => Promise<TResult> | TResult;
|
|
2783
|
-
type SubscriptionSubscribeFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => AsyncIterable<TResult> | Promise<AsyncIterable<TResult>>;
|
|
2784
|
-
type SubscriptionResolveFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
|
|
2785
|
-
interface SubscriptionSubscriberObject<TResult, TKey extends string, TParent, TContext, TArgs> {
|
|
2786
|
-
subscribe: SubscriptionSubscribeFn<{ [key in TKey]: TResult }, TParent, TContext, TArgs>;
|
|
2787
|
-
resolve?: SubscriptionResolveFn<TResult, { [key in TKey]: TResult }, TContext, TArgs>;
|
|
3085
|
+
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>;
|
|
3086
|
+
export type ResolverFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => Promise<TResult> | TResult;
|
|
3087
|
+
export type SubscriptionSubscribeFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => AsyncIterable<TResult> | Promise<AsyncIterable<TResult>>;
|
|
3088
|
+
export type SubscriptionResolveFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
|
|
3089
|
+
export interface SubscriptionSubscriberObject<TResult, TKey extends string, TParent, TContext, TArgs> {
|
|
3090
|
+
subscribe: SubscriptionSubscribeFn<{ [key in TKey]: TResult; }, TParent, TContext, TArgs>;
|
|
3091
|
+
resolve?: SubscriptionResolveFn<TResult, { [key in TKey]: TResult; }, TContext, TArgs>;
|
|
2788
3092
|
}
|
|
2789
|
-
interface SubscriptionResolverObject<TResult, TParent, TContext, TArgs> {
|
|
3093
|
+
export interface SubscriptionResolverObject<TResult, TParent, TContext, TArgs> {
|
|
2790
3094
|
subscribe: SubscriptionSubscribeFn<any, TParent, TContext, TArgs>;
|
|
2791
3095
|
resolve: SubscriptionResolveFn<TResult, any, TContext, TArgs>;
|
|
2792
3096
|
}
|
|
2793
|
-
type SubscriptionObject<TResult, TKey extends string, TParent, TContext, TArgs> = SubscriptionSubscriberObject<TResult, TKey, TParent, TContext, TArgs> | SubscriptionResolverObject<TResult, TParent, TContext, TArgs>;
|
|
2794
|
-
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>;
|
|
2795
|
-
type TypeResolveFn<TTypes, TParent = Record<PropertyKey, never>, TContext = Record<PropertyKey, never>> = (parent: TParent, context: TContext, info: GraphQLResolveInfo) => Maybe<TTypes> | Promise<Maybe<TTypes>>;
|
|
2796
|
-
type IsTypeOfResolverFn<T = Record<PropertyKey, never>, TContext = Record<PropertyKey, never>> = (obj: T, context: TContext, info: GraphQLResolveInfo) => boolean | Promise<boolean>;
|
|
2797
|
-
type NextResolverFn<T> = () => Promise<T>;
|
|
2798
|
-
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>;
|
|
3097
|
+
export type SubscriptionObject<TResult, TKey extends string, TParent, TContext, TArgs> = SubscriptionSubscriberObject<TResult, TKey, TParent, TContext, TArgs> | SubscriptionResolverObject<TResult, TParent, TContext, TArgs>;
|
|
3098
|
+
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>;
|
|
3099
|
+
export type TypeResolveFn<TTypes, TParent = Record<PropertyKey, never>, TContext = Record<PropertyKey, never>> = (parent: TParent, context: TContext, info: GraphQLResolveInfo) => Maybe<TTypes> | Promise<Maybe<TTypes>>;
|
|
3100
|
+
export type IsTypeOfResolverFn<T = Record<PropertyKey, never>, TContext = Record<PropertyKey, never>> = (obj: T, context: TContext, info: GraphQLResolveInfo) => boolean | Promise<boolean>;
|
|
3101
|
+
export type NextResolverFn<T> = () => Promise<T>;
|
|
3102
|
+
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>;
|
|
2799
3103
|
/** Mapping between all available schema types and the resolvers types */
|
|
2800
|
-
type ResolversTypes = ResolversObject<{
|
|
3104
|
+
export type ResolversTypes = ResolversObject<{
|
|
2801
3105
|
Action: ResolverTypeWrapper<Action>;
|
|
2802
3106
|
ActionCandidateInput: ActionCandidateInput;
|
|
2803
3107
|
ActionContext: ResolverTypeWrapper<ActionContext>;
|
|
@@ -2817,6 +3121,8 @@ type ResolversTypes = ResolversObject<{
|
|
|
2817
3121
|
DocumentModelGlobalState: ResolverTypeWrapper<DocumentModelGlobalState>;
|
|
2818
3122
|
DocumentModelResultPage: ResolverTypeWrapper<DocumentModelResultPage>;
|
|
2819
3123
|
DocumentOperationsFilterInput: DocumentOperationsFilterInput;
|
|
3124
|
+
DocumentRelationship: ResolverTypeWrapper<DocumentRelationship>;
|
|
3125
|
+
DocumentRelationshipResultPage: ResolverTypeWrapper<DocumentRelationshipResultPage>;
|
|
2820
3126
|
DocumentWithChildren: ResolverTypeWrapper<DocumentWithChildren>;
|
|
2821
3127
|
Int: ResolverTypeWrapper<Scalars["Int"]["output"]>;
|
|
2822
3128
|
JSONObject: ResolverTypeWrapper<Scalars["JSONObject"]["output"]>;
|
|
@@ -2833,6 +3139,9 @@ type ResolversTypes = ResolversObject<{
|
|
|
2833
3139
|
PHDocument: ResolverTypeWrapper<PhDocument>;
|
|
2834
3140
|
PHDocumentResultPage: ResolverTypeWrapper<PhDocumentResultPage>;
|
|
2835
3141
|
PagingInput: PagingInput;
|
|
3142
|
+
PeerAgreement: ResolverTypeWrapper<PeerAgreement>;
|
|
3143
|
+
PeerAgreementLimit: ResolverTypeWrapper<PeerAgreementLimit>;
|
|
3144
|
+
PeerAgreementMember: ResolverTypeWrapper<PeerAgreementMember>;
|
|
2836
3145
|
PollSyncEnvelopesResult: ResolverTypeWrapper<PollSyncEnvelopesResult>;
|
|
2837
3146
|
PropagationMode: PropagationMode;
|
|
2838
3147
|
Query: ResolverTypeWrapper<Record<PropertyKey, never>>;
|
|
@@ -2854,12 +3163,15 @@ type ResolversTypes = ResolversObject<{
|
|
|
2854
3163
|
SyncEnvelope: ResolverTypeWrapper<SyncEnvelope>;
|
|
2855
3164
|
SyncEnvelopeInput: SyncEnvelopeInput;
|
|
2856
3165
|
SyncEnvelopeType: SyncEnvelopeType;
|
|
3166
|
+
SyncHold: ResolverTypeWrapper<SyncHold>;
|
|
3167
|
+
SyncHoldReason: ResolverTypeWrapper<SyncHoldReason>;
|
|
3168
|
+
SyncRefusalInput: SyncRefusalInput;
|
|
2857
3169
|
TouchChannelInput: TouchChannelInput;
|
|
2858
3170
|
TouchChannelResult: ResolverTypeWrapper<TouchChannelResult>;
|
|
2859
3171
|
ViewFilterInput: ViewFilterInput;
|
|
2860
3172
|
}>;
|
|
2861
3173
|
/** Mapping between all available schema types and the resolvers parents */
|
|
2862
|
-
type ResolversParentTypes = ResolversObject<{
|
|
3174
|
+
export type ResolversParentTypes = ResolversObject<{
|
|
2863
3175
|
Action: Action;
|
|
2864
3176
|
ActionCandidateInput: ActionCandidateInput;
|
|
2865
3177
|
ActionContext: ActionContext;
|
|
@@ -2877,6 +3189,8 @@ type ResolversParentTypes = ResolversObject<{
|
|
|
2877
3189
|
DocumentModelGlobalState: DocumentModelGlobalState;
|
|
2878
3190
|
DocumentModelResultPage: DocumentModelResultPage;
|
|
2879
3191
|
DocumentOperationsFilterInput: DocumentOperationsFilterInput;
|
|
3192
|
+
DocumentRelationship: DocumentRelationship;
|
|
3193
|
+
DocumentRelationshipResultPage: DocumentRelationshipResultPage;
|
|
2880
3194
|
DocumentWithChildren: DocumentWithChildren;
|
|
2881
3195
|
Int: Scalars["Int"]["output"];
|
|
2882
3196
|
JSONObject: Scalars["JSONObject"]["output"];
|
|
@@ -2893,6 +3207,9 @@ type ResolversParentTypes = ResolversObject<{
|
|
|
2893
3207
|
PHDocument: PhDocument;
|
|
2894
3208
|
PHDocumentResultPage: PhDocumentResultPage;
|
|
2895
3209
|
PagingInput: PagingInput;
|
|
3210
|
+
PeerAgreement: PeerAgreement;
|
|
3211
|
+
PeerAgreementLimit: PeerAgreementLimit;
|
|
3212
|
+
PeerAgreementMember: PeerAgreementMember;
|
|
2896
3213
|
PollSyncEnvelopesResult: PollSyncEnvelopesResult;
|
|
2897
3214
|
Query: Record<PropertyKey, never>;
|
|
2898
3215
|
ReactorOperation: ReactorOperation;
|
|
@@ -2912,11 +3229,14 @@ type ResolversParentTypes = ResolversObject<{
|
|
|
2912
3229
|
Subscription: Record<PropertyKey, never>;
|
|
2913
3230
|
SyncEnvelope: SyncEnvelope;
|
|
2914
3231
|
SyncEnvelopeInput: SyncEnvelopeInput;
|
|
3232
|
+
SyncHold: SyncHold;
|
|
3233
|
+
SyncHoldReason: SyncHoldReason;
|
|
3234
|
+
SyncRefusalInput: SyncRefusalInput;
|
|
2915
3235
|
TouchChannelInput: TouchChannelInput;
|
|
2916
3236
|
TouchChannelResult: TouchChannelResult;
|
|
2917
3237
|
ViewFilterInput: ViewFilterInput;
|
|
2918
3238
|
}>;
|
|
2919
|
-
type ActionResolvers<ContextType = Context, ParentType extends ResolversParentTypes["Action"] = ResolversParentTypes["Action"]> = ResolversObject<{
|
|
3239
|
+
export type ActionResolvers<ContextType = Context, ParentType extends ResolversParentTypes["Action"] = ResolversParentTypes["Action"]> = ResolversObject<{
|
|
2920
3240
|
context?: Resolver<Maybe<ResolversTypes["ActionContext"]>, ParentType, ContextType>;
|
|
2921
3241
|
id?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
2922
3242
|
input?: Resolver<ResolversTypes["JSONObject"], ParentType, ContextType>;
|
|
@@ -2924,27 +3244,27 @@ type ActionResolvers<ContextType = Context, ParentType extends ResolversParentTy
|
|
|
2924
3244
|
timestampUtcMs?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
2925
3245
|
type?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
2926
3246
|
}>;
|
|
2927
|
-
type ActionContextResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ActionContext"] = ResolversParentTypes["ActionContext"]> = ResolversObject<{
|
|
3247
|
+
export type ActionContextResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ActionContext"] = ResolversParentTypes["ActionContext"]> = ResolversObject<{
|
|
2928
3248
|
signer?: Resolver<Maybe<ResolversTypes["ReactorSigner"]>, ParentType, ContextType>;
|
|
2929
3249
|
}>;
|
|
2930
|
-
type ActionEvaluationResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ActionEvaluation"] = ResolversParentTypes["ActionEvaluation"]> = ResolversObject<{
|
|
3250
|
+
export type ActionEvaluationResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ActionEvaluation"] = ResolversParentTypes["ActionEvaluation"]> = ResolversObject<{
|
|
2931
3251
|
decision?: Resolver<ResolversTypes["AuthDecision"], ParentType, ContextType>;
|
|
2932
3252
|
reason?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
2933
3253
|
}>;
|
|
2934
|
-
type ActionEvaluationsResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ActionEvaluations"] = ResolversParentTypes["ActionEvaluations"]> = ResolversObject<{
|
|
3254
|
+
export type ActionEvaluationsResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ActionEvaluations"] = ResolversParentTypes["ActionEvaluations"]> = ResolversObject<{
|
|
2935
3255
|
allAllowed?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
|
|
2936
3256
|
allDenied?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
|
|
2937
3257
|
anyAllowed?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
|
|
2938
3258
|
anyDenied?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
|
|
2939
3259
|
evaluations?: Resolver<ReadonlyArray<ResolversTypes["ActionEvaluation"]>, ParentType, ContextType>;
|
|
2940
3260
|
}>;
|
|
2941
|
-
type ChannelMetaResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ChannelMeta"] = ResolversParentTypes["ChannelMeta"]> = ResolversObject<{
|
|
3261
|
+
export type ChannelMetaResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ChannelMeta"] = ResolversParentTypes["ChannelMeta"]> = ResolversObject<{
|
|
2942
3262
|
id?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
2943
3263
|
}>;
|
|
2944
|
-
interface DateTimeScalarConfig extends GraphQLScalarTypeConfig<ResolversTypes["DateTime"], any> {
|
|
3264
|
+
export interface DateTimeScalarConfig extends GraphQLScalarTypeConfig<ResolversTypes["DateTime"], any> {
|
|
2945
3265
|
name: "DateTime";
|
|
2946
3266
|
}
|
|
2947
|
-
type DeadLetterInfoResolvers<ContextType = Context, ParentType extends ResolversParentTypes["DeadLetterInfo"] = ResolversParentTypes["DeadLetterInfo"]> = ResolversObject<{
|
|
3267
|
+
export type DeadLetterInfoResolvers<ContextType = Context, ParentType extends ResolversParentTypes["DeadLetterInfo"] = ResolversParentTypes["DeadLetterInfo"]> = ResolversObject<{
|
|
2948
3268
|
branch?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
2949
3269
|
documentId?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
2950
3270
|
error?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
@@ -2953,43 +3273,56 @@ type DeadLetterInfoResolvers<ContextType = Context, ParentType extends Resolvers
|
|
|
2953
3273
|
operationCount?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
|
|
2954
3274
|
scopes?: Resolver<ReadonlyArray<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
2955
3275
|
}>;
|
|
2956
|
-
type DocumentChangeContextResolvers<ContextType = Context, ParentType extends ResolversParentTypes["DocumentChangeContext"] = ResolversParentTypes["DocumentChangeContext"]> = ResolversObject<{
|
|
3276
|
+
export type DocumentChangeContextResolvers<ContextType = Context, ParentType extends ResolversParentTypes["DocumentChangeContext"] = ResolversParentTypes["DocumentChangeContext"]> = ResolversObject<{
|
|
2957
3277
|
childId?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
2958
3278
|
parentId?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
2959
3279
|
}>;
|
|
2960
|
-
type DocumentChangeEventResolvers<ContextType = Context, ParentType extends ResolversParentTypes["DocumentChangeEvent"] = ResolversParentTypes["DocumentChangeEvent"]> = ResolversObject<{
|
|
3280
|
+
export type DocumentChangeEventResolvers<ContextType = Context, ParentType extends ResolversParentTypes["DocumentChangeEvent"] = ResolversParentTypes["DocumentChangeEvent"]> = ResolversObject<{
|
|
2961
3281
|
context?: Resolver<Maybe<ResolversTypes["DocumentChangeContext"]>, ParentType, ContextType>;
|
|
2962
3282
|
documents?: Resolver<ReadonlyArray<ResolversTypes["PHDocument"]>, ParentType, ContextType>;
|
|
2963
3283
|
type?: Resolver<ResolversTypes["DocumentChangeType"], ParentType, ContextType>;
|
|
2964
3284
|
}>;
|
|
2965
|
-
type DocumentModelGlobalStateResolvers<ContextType = Context, ParentType extends ResolversParentTypes["DocumentModelGlobalState"] = ResolversParentTypes["DocumentModelGlobalState"]> = ResolversObject<{
|
|
3285
|
+
export type DocumentModelGlobalStateResolvers<ContextType = Context, ParentType extends ResolversParentTypes["DocumentModelGlobalState"] = ResolversParentTypes["DocumentModelGlobalState"]> = ResolversObject<{
|
|
2966
3286
|
id?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
2967
3287
|
name?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
2968
3288
|
namespace?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
2969
3289
|
specification?: Resolver<ResolversTypes["JSONObject"], ParentType, ContextType>;
|
|
2970
3290
|
version?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
2971
3291
|
}>;
|
|
2972
|
-
type DocumentModelResultPageResolvers<ContextType = Context, ParentType extends ResolversParentTypes["DocumentModelResultPage"] = ResolversParentTypes["DocumentModelResultPage"]> = ResolversObject<{
|
|
3292
|
+
export type DocumentModelResultPageResolvers<ContextType = Context, ParentType extends ResolversParentTypes["DocumentModelResultPage"] = ResolversParentTypes["DocumentModelResultPage"]> = ResolversObject<{
|
|
2973
3293
|
cursor?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
2974
3294
|
hasNextPage?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
|
|
2975
3295
|
hasPreviousPage?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
|
|
2976
3296
|
items?: Resolver<ReadonlyArray<ResolversTypes["DocumentModelGlobalState"]>, ParentType, ContextType>;
|
|
2977
|
-
totalCount?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
|
|
2978
3297
|
}>;
|
|
2979
|
-
type
|
|
3298
|
+
export type DocumentRelationshipResolvers<ContextType = Context, ParentType extends ResolversParentTypes["DocumentRelationship"] = ResolversParentTypes["DocumentRelationship"]> = ResolversObject<{
|
|
3299
|
+
createdAt?: Resolver<ResolversTypes["DateTime"], ParentType, ContextType>;
|
|
3300
|
+
metadata?: Resolver<Maybe<ResolversTypes["JSONObject"]>, ParentType, ContextType>;
|
|
3301
|
+
relationshipType?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
3302
|
+
sourceId?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
3303
|
+
targetId?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
3304
|
+
updatedAt?: Resolver<ResolversTypes["DateTime"], ParentType, ContextType>;
|
|
3305
|
+
}>;
|
|
3306
|
+
export type DocumentRelationshipResultPageResolvers<ContextType = Context, ParentType extends ResolversParentTypes["DocumentRelationshipResultPage"] = ResolversParentTypes["DocumentRelationshipResultPage"]> = ResolversObject<{
|
|
3307
|
+
cursor?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
3308
|
+
hasNextPage?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
|
|
3309
|
+
hasPreviousPage?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
|
|
3310
|
+
items?: Resolver<ReadonlyArray<ResolversTypes["DocumentRelationship"]>, ParentType, ContextType>;
|
|
3311
|
+
}>;
|
|
3312
|
+
export type DocumentWithChildrenResolvers<ContextType = Context, ParentType extends ResolversParentTypes["DocumentWithChildren"] = ResolversParentTypes["DocumentWithChildren"]> = ResolversObject<{
|
|
2980
3313
|
childIds?: Resolver<ReadonlyArray<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
2981
3314
|
document?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType>;
|
|
2982
3315
|
}>;
|
|
2983
|
-
interface JsonObjectScalarConfig extends GraphQLScalarTypeConfig<ResolversTypes["JSONObject"], any> {
|
|
3316
|
+
export interface JsonObjectScalarConfig extends GraphQLScalarTypeConfig<ResolversTypes["JSONObject"], any> {
|
|
2984
3317
|
name: "JSONObject";
|
|
2985
3318
|
}
|
|
2986
|
-
type JobChangeEventResolvers<ContextType = Context, ParentType extends ResolversParentTypes["JobChangeEvent"] = ResolversParentTypes["JobChangeEvent"]> = ResolversObject<{
|
|
3319
|
+
export type JobChangeEventResolvers<ContextType = Context, ParentType extends ResolversParentTypes["JobChangeEvent"] = ResolversParentTypes["JobChangeEvent"]> = ResolversObject<{
|
|
2987
3320
|
error?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
2988
3321
|
jobId?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
2989
|
-
result?: Resolver<ResolversTypes["JSONObject"]
|
|
3322
|
+
result?: Resolver<Maybe<ResolversTypes["JSONObject"]>, ParentType, ContextType>;
|
|
2990
3323
|
status?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
2991
3324
|
}>;
|
|
2992
|
-
type JobInfoResolvers<ContextType = Context, ParentType extends ResolversParentTypes["JobInfo"] = ResolversParentTypes["JobInfo"]> = ResolversObject<{
|
|
3325
|
+
export type JobInfoResolvers<ContextType = Context, ParentType extends ResolversParentTypes["JobInfo"] = ResolversParentTypes["JobInfo"]> = ResolversObject<{
|
|
2993
3326
|
completedAt?: Resolver<Maybe<ResolversTypes["DateTime"]>, ParentType, ContextType>;
|
|
2994
3327
|
createdAt?: Resolver<ResolversTypes["DateTime"], ParentType, ContextType>;
|
|
2995
3328
|
error?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
@@ -2997,11 +3330,11 @@ type JobInfoResolvers<ContextType = Context, ParentType extends ResolversParentT
|
|
|
2997
3330
|
result?: Resolver<Maybe<ResolversTypes["JSONObject"]>, ParentType, ContextType>;
|
|
2998
3331
|
status?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
2999
3332
|
}>;
|
|
3000
|
-
type MoveRelationshipResultResolvers<ContextType = Context, ParentType extends ResolversParentTypes["MoveRelationshipResult"] = ResolversParentTypes["MoveRelationshipResult"]> = ResolversObject<{
|
|
3333
|
+
export type MoveRelationshipResultResolvers<ContextType = Context, ParentType extends ResolversParentTypes["MoveRelationshipResult"] = ResolversParentTypes["MoveRelationshipResult"]> = ResolversObject<{
|
|
3001
3334
|
source?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType>;
|
|
3002
3335
|
target?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType>;
|
|
3003
3336
|
}>;
|
|
3004
|
-
type MutationResolvers<ContextType = Context, ParentType extends ResolversParentTypes["Mutation"] = ResolversParentTypes["Mutation"]> = ResolversObject<{
|
|
3337
|
+
export type MutationResolvers<ContextType = Context, ParentType extends ResolversParentTypes["Mutation"] = ResolversParentTypes["Mutation"]> = ResolversObject<{
|
|
3005
3338
|
addRelationship?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType, RequireFields<MutationAddRelationshipArgs, "relationshipType" | "sourceIdentifier" | "targetIdentifier">>;
|
|
3006
3339
|
createDocument?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType, RequireFields<MutationCreateDocumentArgs, "document">>;
|
|
3007
3340
|
createEmptyDocument?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType, RequireFields<MutationCreateEmptyDocumentArgs, "documentType">>;
|
|
@@ -3017,19 +3350,20 @@ type MutationResolvers<ContextType = Context, ParentType extends ResolversParent
|
|
|
3017
3350
|
renameDocument?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType, RequireFields<MutationRenameDocumentArgs, "documentIdentifier" | "name">>;
|
|
3018
3351
|
setPreferredEditor?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType, RequireFields<MutationSetPreferredEditorArgs, "documentIdentifier">>;
|
|
3019
3352
|
touchChannel?: Resolver<ResolversTypes["TouchChannelResult"], ParentType, ContextType, RequireFields<MutationTouchChannelArgs, "input">>;
|
|
3353
|
+
updateRelationship?: Resolver<ResolversTypes["PHDocument"], ParentType, ContextType, RequireFields<MutationUpdateRelationshipArgs, "relationshipType" | "sourceIdentifier" | "targetIdentifier">>;
|
|
3020
3354
|
}>;
|
|
3021
|
-
type OperationContextResolvers<ContextType = Context, ParentType extends ResolversParentTypes["OperationContext"] = ResolversParentTypes["OperationContext"]> = ResolversObject<{
|
|
3355
|
+
export type OperationContextResolvers<ContextType = Context, ParentType extends ResolversParentTypes["OperationContext"] = ResolversParentTypes["OperationContext"]> = ResolversObject<{
|
|
3022
3356
|
branch?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
3023
3357
|
documentId?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
3024
3358
|
documentType?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
3025
3359
|
ordinal?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
|
|
3026
3360
|
scope?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
3027
3361
|
}>;
|
|
3028
|
-
type OperationWithContextResolvers<ContextType = Context, ParentType extends ResolversParentTypes["OperationWithContext"] = ResolversParentTypes["OperationWithContext"]> = ResolversObject<{
|
|
3362
|
+
export type OperationWithContextResolvers<ContextType = Context, ParentType extends ResolversParentTypes["OperationWithContext"] = ResolversParentTypes["OperationWithContext"]> = ResolversObject<{
|
|
3029
3363
|
context?: Resolver<ResolversTypes["OperationContext"], ParentType, ContextType>;
|
|
3030
3364
|
operation?: Resolver<ResolversTypes["ReactorOperation"], ParentType, ContextType>;
|
|
3031
3365
|
}>;
|
|
3032
|
-
type PhDocumentResolvers<ContextType = Context, ParentType extends ResolversParentTypes["PHDocument"] = ResolversParentTypes["PHDocument"]> = ResolversObject<{
|
|
3366
|
+
export type PhDocumentResolvers<ContextType = Context, ParentType extends ResolversParentTypes["PHDocument"] = ResolversParentTypes["PHDocument"]> = ResolversObject<{
|
|
3033
3367
|
createdAtUtcIso?: Resolver<ResolversTypes["DateTime"], ParentType, ContextType>;
|
|
3034
3368
|
documentType?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
3035
3369
|
id?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
@@ -3041,31 +3375,52 @@ type PhDocumentResolvers<ContextType = Context, ParentType extends ResolversPare
|
|
|
3041
3375
|
slug?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
3042
3376
|
state?: Resolver<ResolversTypes["JSONObject"], ParentType, ContextType>;
|
|
3043
3377
|
}>;
|
|
3044
|
-
type PhDocumentResultPageResolvers<ContextType = Context, ParentType extends ResolversParentTypes["PHDocumentResultPage"] = ResolversParentTypes["PHDocumentResultPage"]> = ResolversObject<{
|
|
3378
|
+
export type PhDocumentResultPageResolvers<ContextType = Context, ParentType extends ResolversParentTypes["PHDocumentResultPage"] = ResolversParentTypes["PHDocumentResultPage"]> = ResolversObject<{
|
|
3045
3379
|
cursor?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
3046
3380
|
hasNextPage?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
|
|
3047
3381
|
hasPreviousPage?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
|
|
3048
3382
|
items?: Resolver<ReadonlyArray<ResolversTypes["PHDocument"]>, ParentType, ContextType>;
|
|
3049
|
-
totalCount?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
|
|
3050
3383
|
}>;
|
|
3051
|
-
type
|
|
3384
|
+
export type PeerAgreementResolvers<ContextType = Context, ParentType extends ResolversParentTypes["PeerAgreement"] = ResolversParentTypes["PeerAgreement"]> = ResolversObject<{
|
|
3385
|
+
collectionId?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
3386
|
+
limitedBy?: Resolver<ReadonlyArray<ResolversTypes["PeerAgreementLimit"]>, ParentType, ContextType>;
|
|
3387
|
+
local?: Resolver<ResolversTypes["JSONObject"], ParentType, ContextType>;
|
|
3388
|
+
members?: Resolver<ReadonlyArray<ResolversTypes["PeerAgreementMember"]>, ParentType, ContextType>;
|
|
3389
|
+
}>;
|
|
3390
|
+
export type PeerAgreementLimitResolvers<ContextType = Context, ParentType extends ResolversParentTypes["PeerAgreementLimit"] = ResolversParentTypes["PeerAgreementLimit"]> = ResolversObject<{
|
|
3391
|
+
protocol?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
3392
|
+
remoteNames?: Resolver<ReadonlyArray<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
3393
|
+
}>;
|
|
3394
|
+
export type PeerAgreementMemberResolvers<ContextType = Context, ParentType extends ResolversParentTypes["PeerAgreementMember"] = ResolversParentTypes["PeerAgreementMember"]> = ResolversObject<{
|
|
3395
|
+
announced?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
|
|
3396
|
+
features?: Resolver<ResolversTypes["JSONObject"], ParentType, ContextType>;
|
|
3397
|
+
protocols?: Resolver<ResolversTypes["JSONObject"], ParentType, ContextType>;
|
|
3398
|
+
remoteName?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
3399
|
+
}>;
|
|
3400
|
+
export type PollSyncEnvelopesResultResolvers<ContextType = Context, ParentType extends ResolversParentTypes["PollSyncEnvelopesResult"] = ResolversParentTypes["PollSyncEnvelopesResult"]> = ResolversObject<{
|
|
3052
3401
|
ackOrdinal?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
|
|
3053
3402
|
deadLetters?: Resolver<ReadonlyArray<ResolversTypes["DeadLetterInfo"]>, ParentType, ContextType>;
|
|
3054
3403
|
envelopes?: Resolver<ReadonlyArray<ResolversTypes["SyncEnvelope"]>, ParentType, ContextType>;
|
|
3055
3404
|
hasMore?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
|
|
3405
|
+
manifestRevision?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
3406
|
+
peerManifestRevision?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
3056
3407
|
}>;
|
|
3057
|
-
type QueryResolvers<ContextType = Context, ParentType extends ResolversParentTypes["Query"] = ResolversParentTypes["Query"]> = ResolversObject<{
|
|
3408
|
+
export type QueryResolvers<ContextType = Context, ParentType extends ResolversParentTypes["Query"] = ResolversParentTypes["Query"]> = ResolversObject<{
|
|
3058
3409
|
document?: Resolver<Maybe<ResolversTypes["DocumentWithChildren"]>, ParentType, ContextType, RequireFields<QueryDocumentArgs, "identifier">>;
|
|
3410
|
+
documentIncomingRelationshipEdges?: Resolver<ResolversTypes["DocumentRelationshipResultPage"], ParentType, ContextType, RequireFields<QueryDocumentIncomingRelationshipEdgesArgs, "targetIdentifier">>;
|
|
3059
3411
|
documentIncomingRelationships?: Resolver<ResolversTypes["PHDocumentResultPage"], ParentType, ContextType, RequireFields<QueryDocumentIncomingRelationshipsArgs, "relationshipType" | "targetIdentifier">>;
|
|
3060
3412
|
documentModels?: Resolver<ResolversTypes["DocumentModelResultPage"], ParentType, ContextType, Partial<QueryDocumentModelsArgs>>;
|
|
3061
3413
|
documentOperations?: Resolver<ResolversTypes["ReactorOperationResultPage"], ParentType, ContextType, RequireFields<QueryDocumentOperationsArgs, "filter">>;
|
|
3414
|
+
documentOutgoingRelationshipEdges?: Resolver<ResolversTypes["DocumentRelationshipResultPage"], ParentType, ContextType, RequireFields<QueryDocumentOutgoingRelationshipEdgesArgs, "sourceIdentifier">>;
|
|
3062
3415
|
documentOutgoingRelationships?: Resolver<ResolversTypes["PHDocumentResultPage"], ParentType, ContextType, RequireFields<QueryDocumentOutgoingRelationshipsArgs, "relationshipType" | "sourceIdentifier">>;
|
|
3063
3416
|
evaluateActions?: Resolver<ResolversTypes["ActionEvaluations"], ParentType, ContextType, RequireFields<QueryEvaluateActionsArgs, "candidates" | "documentIdentifier">>;
|
|
3064
3417
|
findDocuments?: Resolver<ResolversTypes["PHDocumentResultPage"], ParentType, ContextType, Partial<QueryFindDocumentsArgs>>;
|
|
3065
3418
|
jobStatus?: Resolver<Maybe<ResolversTypes["JobInfo"]>, ParentType, ContextType, RequireFields<QueryJobStatusArgs, "jobId">>;
|
|
3419
|
+
peerAgreement?: Resolver<ResolversTypes["PeerAgreement"], ParentType, ContextType, RequireFields<QueryPeerAgreementArgs, "collectionId">>;
|
|
3066
3420
|
pollSyncEnvelopes?: Resolver<ResolversTypes["PollSyncEnvelopesResult"], ParentType, ContextType, RequireFields<QueryPollSyncEnvelopesArgs, "channelId" | "outboxAck" | "outboxLatest">>;
|
|
3421
|
+
syncHolds?: Resolver<ReadonlyArray<ResolversTypes["SyncHold"]>, ParentType, ContextType, Partial<QuerySyncHoldsArgs>>;
|
|
3067
3422
|
}>;
|
|
3068
|
-
type ReactorOperationResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ReactorOperation"] = ResolversParentTypes["ReactorOperation"]> = ResolversObject<{
|
|
3423
|
+
export type ReactorOperationResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ReactorOperation"] = ResolversParentTypes["ReactorOperation"]> = ResolversObject<{
|
|
3069
3424
|
action?: Resolver<ResolversTypes["Action"], ParentType, ContextType>;
|
|
3070
3425
|
deniedReason?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
3071
3426
|
error?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
@@ -3075,41 +3430,40 @@ type ReactorOperationResolvers<ContextType = Context, ParentType extends Resolve
|
|
|
3075
3430
|
skip?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
|
|
3076
3431
|
timestampUtcMs?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
3077
3432
|
}>;
|
|
3078
|
-
type ReactorOperationResultPageResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ReactorOperationResultPage"] = ResolversParentTypes["ReactorOperationResultPage"]> = ResolversObject<{
|
|
3433
|
+
export type ReactorOperationResultPageResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ReactorOperationResultPage"] = ResolversParentTypes["ReactorOperationResultPage"]> = ResolversObject<{
|
|
3079
3434
|
cursor?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
3080
3435
|
hasNextPage?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
|
|
3081
3436
|
hasPreviousPage?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
|
|
3082
3437
|
items?: Resolver<ReadonlyArray<ResolversTypes["ReactorOperation"]>, ParentType, ContextType>;
|
|
3083
|
-
totalCount?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
|
|
3084
3438
|
}>;
|
|
3085
|
-
type ReactorSignerResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ReactorSigner"] = ResolversParentTypes["ReactorSigner"]> = ResolversObject<{
|
|
3439
|
+
export type ReactorSignerResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ReactorSigner"] = ResolversParentTypes["ReactorSigner"]> = ResolversObject<{
|
|
3086
3440
|
app?: Resolver<Maybe<ResolversTypes["ReactorSignerApp"]>, ParentType, ContextType>;
|
|
3087
3441
|
signatures?: Resolver<ReadonlyArray<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
3088
3442
|
user?: Resolver<Maybe<ResolversTypes["ReactorSignerUser"]>, ParentType, ContextType>;
|
|
3089
3443
|
}>;
|
|
3090
|
-
type ReactorSignerAppResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ReactorSignerApp"] = ResolversParentTypes["ReactorSignerApp"]> = ResolversObject<{
|
|
3444
|
+
export type ReactorSignerAppResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ReactorSignerApp"] = ResolversParentTypes["ReactorSignerApp"]> = ResolversObject<{
|
|
3091
3445
|
key?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
3092
3446
|
name?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
3093
3447
|
}>;
|
|
3094
|
-
type ReactorSignerUserResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ReactorSignerUser"] = ResolversParentTypes["ReactorSignerUser"]> = ResolversObject<{
|
|
3448
|
+
export type ReactorSignerUserResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ReactorSignerUser"] = ResolversParentTypes["ReactorSignerUser"]> = ResolversObject<{
|
|
3095
3449
|
address?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
3096
3450
|
chainId?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
|
|
3097
3451
|
networkId?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
3098
3452
|
}>;
|
|
3099
|
-
type RemoteCursorResolvers<ContextType = Context, ParentType extends ResolversParentTypes["RemoteCursor"] = ResolversParentTypes["RemoteCursor"]> = ResolversObject<{
|
|
3453
|
+
export type RemoteCursorResolvers<ContextType = Context, ParentType extends ResolversParentTypes["RemoteCursor"] = ResolversParentTypes["RemoteCursor"]> = ResolversObject<{
|
|
3100
3454
|
cursorOrdinal?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
|
|
3101
3455
|
lastSyncedAtUtcMs?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
3102
3456
|
remoteName?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
3103
3457
|
}>;
|
|
3104
|
-
type RevisionResolvers<ContextType = Context, ParentType extends ResolversParentTypes["Revision"] = ResolversParentTypes["Revision"]> = ResolversObject<{
|
|
3458
|
+
export type RevisionResolvers<ContextType = Context, ParentType extends ResolversParentTypes["Revision"] = ResolversParentTypes["Revision"]> = ResolversObject<{
|
|
3105
3459
|
revision?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
|
|
3106
3460
|
scope?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
3107
3461
|
}>;
|
|
3108
|
-
type SubscriptionResolvers<ContextType = Context, ParentType extends ResolversParentTypes["Subscription"] = ResolversParentTypes["Subscription"]> = ResolversObject<{
|
|
3462
|
+
export type SubscriptionResolvers<ContextType = Context, ParentType extends ResolversParentTypes["Subscription"] = ResolversParentTypes["Subscription"]> = ResolversObject<{
|
|
3109
3463
|
documentChanges?: SubscriptionResolver<ResolversTypes["DocumentChangeEvent"], "documentChanges", ParentType, ContextType, Partial<SubscriptionDocumentChangesArgs>>;
|
|
3110
3464
|
jobChanges?: SubscriptionResolver<ResolversTypes["JobChangeEvent"], "jobChanges", ParentType, ContextType, RequireFields<SubscriptionJobChangesArgs, "jobId">>;
|
|
3111
3465
|
}>;
|
|
3112
|
-
type SyncEnvelopeResolvers<ContextType = Context, ParentType extends ResolversParentTypes["SyncEnvelope"] = ResolversParentTypes["SyncEnvelope"]> = ResolversObject<{
|
|
3466
|
+
export type SyncEnvelopeResolvers<ContextType = Context, ParentType extends ResolversParentTypes["SyncEnvelope"] = ResolversParentTypes["SyncEnvelope"]> = ResolversObject<{
|
|
3113
3467
|
channelMeta?: Resolver<ResolversTypes["ChannelMeta"], ParentType, ContextType>;
|
|
3114
3468
|
cursor?: Resolver<Maybe<ResolversTypes["RemoteCursor"]>, ParentType, ContextType>;
|
|
3115
3469
|
dependsOn?: Resolver<Maybe<ReadonlyArray<ResolversTypes["String"]>>, ParentType, ContextType>;
|
|
@@ -3117,11 +3471,24 @@ type SyncEnvelopeResolvers<ContextType = Context, ParentType extends ResolversPa
|
|
|
3117
3471
|
operations?: Resolver<Maybe<ReadonlyArray<ResolversTypes["OperationWithContext"]>>, ParentType, ContextType>;
|
|
3118
3472
|
type?: Resolver<ResolversTypes["SyncEnvelopeType"], ParentType, ContextType>;
|
|
3119
3473
|
}>;
|
|
3120
|
-
type
|
|
3474
|
+
export type SyncHoldResolvers<ContextType = Context, ParentType extends ResolversParentTypes["SyncHold"] = ResolversParentTypes["SyncHold"]> = ResolversObject<{
|
|
3475
|
+
branch?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
3476
|
+
documentId?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
3477
|
+
heldAtUtcMs?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
3478
|
+
reason?: Resolver<ResolversTypes["SyncHoldReason"], ParentType, ContextType>;
|
|
3479
|
+
remoteName?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
3480
|
+
}>;
|
|
3481
|
+
export type SyncHoldReasonResolvers<ContextType = Context, ParentType extends ResolversParentTypes["SyncHoldReason"] = ResolversParentTypes["SyncHoldReason"]> = ResolversObject<{
|
|
3482
|
+
peerSupports?: Resolver<ReadonlyArray<ResolversTypes["Int"]>, ParentType, ContextType>;
|
|
3483
|
+
protocol?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
3484
|
+
version?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
|
|
3485
|
+
}>;
|
|
3486
|
+
export type TouchChannelResultResolvers<ContextType = Context, ParentType extends ResolversParentTypes["TouchChannelResult"] = ResolversParentTypes["TouchChannelResult"]> = ResolversObject<{
|
|
3121
3487
|
ackOrdinal?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
|
|
3488
|
+
manifest?: Resolver<Maybe<ResolversTypes["JSONObject"]>, ParentType, ContextType>;
|
|
3122
3489
|
success?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
|
|
3123
3490
|
}>;
|
|
3124
|
-
type Resolvers<ContextType = Context> = ResolversObject<{
|
|
3491
|
+
export type Resolvers<ContextType = Context> = ResolversObject<{
|
|
3125
3492
|
Action?: ActionResolvers<ContextType>;
|
|
3126
3493
|
ActionContext?: ActionContextResolvers<ContextType>;
|
|
3127
3494
|
ActionEvaluation?: ActionEvaluationResolvers<ContextType>;
|
|
@@ -3133,6 +3500,8 @@ type Resolvers<ContextType = Context> = ResolversObject<{
|
|
|
3133
3500
|
DocumentChangeEvent?: DocumentChangeEventResolvers<ContextType>;
|
|
3134
3501
|
DocumentModelGlobalState?: DocumentModelGlobalStateResolvers<ContextType>;
|
|
3135
3502
|
DocumentModelResultPage?: DocumentModelResultPageResolvers<ContextType>;
|
|
3503
|
+
DocumentRelationship?: DocumentRelationshipResolvers<ContextType>;
|
|
3504
|
+
DocumentRelationshipResultPage?: DocumentRelationshipResultPageResolvers<ContextType>;
|
|
3136
3505
|
DocumentWithChildren?: DocumentWithChildrenResolvers<ContextType>;
|
|
3137
3506
|
JSONObject?: GraphQLScalarType;
|
|
3138
3507
|
JobChangeEvent?: JobChangeEventResolvers<ContextType>;
|
|
@@ -3143,6 +3512,9 @@ type Resolvers<ContextType = Context> = ResolversObject<{
|
|
|
3143
3512
|
OperationWithContext?: OperationWithContextResolvers<ContextType>;
|
|
3144
3513
|
PHDocument?: PhDocumentResolvers<ContextType>;
|
|
3145
3514
|
PHDocumentResultPage?: PhDocumentResultPageResolvers<ContextType>;
|
|
3515
|
+
PeerAgreement?: PeerAgreementResolvers<ContextType>;
|
|
3516
|
+
PeerAgreementLimit?: PeerAgreementLimitResolvers<ContextType>;
|
|
3517
|
+
PeerAgreementMember?: PeerAgreementMemberResolvers<ContextType>;
|
|
3146
3518
|
PollSyncEnvelopesResult?: PollSyncEnvelopesResultResolvers<ContextType>;
|
|
3147
3519
|
Query?: QueryResolvers<ContextType>;
|
|
3148
3520
|
ReactorOperation?: ReactorOperationResolvers<ContextType>;
|
|
@@ -3154,68 +3526,77 @@ type Resolvers<ContextType = Context> = ResolversObject<{
|
|
|
3154
3526
|
Revision?: RevisionResolvers<ContextType>;
|
|
3155
3527
|
Subscription?: SubscriptionResolvers<ContextType>;
|
|
3156
3528
|
SyncEnvelope?: SyncEnvelopeResolvers<ContextType>;
|
|
3529
|
+
SyncHold?: SyncHoldResolvers<ContextType>;
|
|
3530
|
+
SyncHoldReason?: SyncHoldReasonResolvers<ContextType>;
|
|
3157
3531
|
TouchChannelResult?: TouchChannelResultResolvers<ContextType>;
|
|
3158
3532
|
}>;
|
|
3159
|
-
type Properties<T> = Required<{ [K in keyof T]: z$1.ZodType<T[K]
|
|
3533
|
+
type Properties<T> = Required<{ [K in keyof T]: z$1.ZodType<T[K]>; }>;
|
|
3160
3534
|
type definedNonNullAny = {};
|
|
3161
|
-
declare const isDefinedNonNullAny: (v: any) => v is definedNonNullAny;
|
|
3162
|
-
declare const definedNonNullAnySchema: z$1.ZodAny & z$1.ZodType<definedNonNullAny, any, z$1.core.$ZodTypeInternals<definedNonNullAny, any>>;
|
|
3163
|
-
declare const AuthDecisionSchema: z$1.ZodEnum<typeof AuthDecision>;
|
|
3164
|
-
declare const DocumentChangeTypeSchema: z$1.ZodEnum<typeof DocumentChangeType>;
|
|
3165
|
-
declare const PropagationModeSchema: z$1.ZodEnum<typeof PropagationMode>;
|
|
3166
|
-
declare const SyncEnvelopeTypeSchema: z$1.ZodEnum<typeof SyncEnvelopeType>;
|
|
3167
|
-
declare function ActionCandidateInputSchema(): z$1.ZodObject<Properties<ActionCandidateInput>>;
|
|
3168
|
-
declare function ActionContextInputSchema(): z$1.ZodObject<Properties<ActionContextInput>>;
|
|
3169
|
-
declare function ActionInputSchema(): z$1.ZodObject<Properties<ActionInput>>;
|
|
3170
|
-
declare function ChannelMetaInputSchema(): z$1.ZodObject<Properties<ChannelMetaInput>>;
|
|
3171
|
-
declare function DocumentOperationsFilterInputSchema(): z$1.ZodObject<Properties<DocumentOperationsFilterInput>>;
|
|
3172
|
-
declare function OperationContextInputSchema(): z$1.ZodObject<Properties<OperationContextInput>>;
|
|
3173
|
-
declare function OperationInputSchema(): z$1.ZodObject<Properties<OperationInput>>;
|
|
3174
|
-
declare function OperationWithContextInputSchema(): z$1.ZodObject<Properties<OperationWithContextInput>>;
|
|
3175
|
-
declare function OperationsFilterInputSchema(): z$1.ZodObject<Properties<OperationsFilterInput>>;
|
|
3176
|
-
declare function PagingInputSchema(): z$1.ZodObject<Properties<PagingInput>>;
|
|
3177
|
-
declare function ReactorSignerAppInputSchema(): z$1.ZodObject<Properties<ReactorSignerAppInput>>;
|
|
3178
|
-
declare function ReactorSignerInputSchema(): z$1.ZodObject<Properties<ReactorSignerInput>>;
|
|
3179
|
-
declare function ReactorSignerUserInputSchema(): z$1.ZodObject<Properties<ReactorSignerUserInput>>;
|
|
3180
|
-
declare function RemoteCursorInputSchema(): z$1.ZodObject<Properties<RemoteCursorInput>>;
|
|
3181
|
-
declare function RemoteFilterInputSchema(): z$1.ZodObject<Properties<RemoteFilterInput>>;
|
|
3182
|
-
declare function SearchFilterInputSchema(): z$1.ZodObject<Properties<SearchFilterInput>>;
|
|
3183
|
-
declare function SyncEnvelopeInputSchema(): z$1.ZodObject<Properties<SyncEnvelopeInput>>;
|
|
3184
|
-
declare function
|
|
3185
|
-
declare function
|
|
3186
|
-
declare
|
|
3187
|
-
declare const
|
|
3188
|
-
declare const
|
|
3189
|
-
declare const
|
|
3190
|
-
declare const
|
|
3191
|
-
declare const
|
|
3192
|
-
declare const
|
|
3193
|
-
declare const
|
|
3194
|
-
declare const
|
|
3195
|
-
declare const
|
|
3196
|
-
declare const
|
|
3197
|
-
declare const
|
|
3198
|
-
declare const
|
|
3199
|
-
declare const
|
|
3200
|
-
declare const
|
|
3201
|
-
declare const
|
|
3202
|
-
declare const
|
|
3203
|
-
declare const
|
|
3204
|
-
declare const
|
|
3205
|
-
declare const
|
|
3206
|
-
declare const
|
|
3207
|
-
declare const
|
|
3208
|
-
declare const
|
|
3209
|
-
declare const
|
|
3210
|
-
declare const
|
|
3211
|
-
declare const
|
|
3212
|
-
|
|
3213
|
-
declare
|
|
3535
|
+
export declare const isDefinedNonNullAny: (v: any) => v is definedNonNullAny;
|
|
3536
|
+
export declare const definedNonNullAnySchema: z$1.ZodAny & z$1.ZodType<definedNonNullAny, any, z$1.core.$ZodTypeInternals<definedNonNullAny, any>>;
|
|
3537
|
+
export declare const AuthDecisionSchema: z$1.ZodEnum<typeof AuthDecision>;
|
|
3538
|
+
export declare const DocumentChangeTypeSchema: z$1.ZodEnum<typeof DocumentChangeType>;
|
|
3539
|
+
export declare const PropagationModeSchema: z$1.ZodEnum<typeof PropagationMode>;
|
|
3540
|
+
export declare const SyncEnvelopeTypeSchema: z$1.ZodEnum<typeof SyncEnvelopeType>;
|
|
3541
|
+
export declare function ActionCandidateInputSchema(): z$1.ZodObject<Properties<ActionCandidateInput>>;
|
|
3542
|
+
export declare function ActionContextInputSchema(): z$1.ZodObject<Properties<ActionContextInput>>;
|
|
3543
|
+
export declare function ActionInputSchema(): z$1.ZodObject<Properties<ActionInput>>;
|
|
3544
|
+
export declare function ChannelMetaInputSchema(): z$1.ZodObject<Properties<ChannelMetaInput>>;
|
|
3545
|
+
export declare function DocumentOperationsFilterInputSchema(): z$1.ZodObject<Properties<DocumentOperationsFilterInput>>;
|
|
3546
|
+
export declare function OperationContextInputSchema(): z$1.ZodObject<Properties<OperationContextInput>>;
|
|
3547
|
+
export declare function OperationInputSchema(): z$1.ZodObject<Properties<OperationInput>>;
|
|
3548
|
+
export declare function OperationWithContextInputSchema(): z$1.ZodObject<Properties<OperationWithContextInput>>;
|
|
3549
|
+
export declare function OperationsFilterInputSchema(): z$1.ZodObject<Properties<OperationsFilterInput>>;
|
|
3550
|
+
export declare function PagingInputSchema(): z$1.ZodObject<Properties<PagingInput>>;
|
|
3551
|
+
export declare function ReactorSignerAppInputSchema(): z$1.ZodObject<Properties<ReactorSignerAppInput>>;
|
|
3552
|
+
export declare function ReactorSignerInputSchema(): z$1.ZodObject<Properties<ReactorSignerInput>>;
|
|
3553
|
+
export declare function ReactorSignerUserInputSchema(): z$1.ZodObject<Properties<ReactorSignerUserInput>>;
|
|
3554
|
+
export declare function RemoteCursorInputSchema(): z$1.ZodObject<Properties<RemoteCursorInput>>;
|
|
3555
|
+
export declare function RemoteFilterInputSchema(): z$1.ZodObject<Properties<RemoteFilterInput>>;
|
|
3556
|
+
export declare function SearchFilterInputSchema(): z$1.ZodObject<Properties<SearchFilterInput>>;
|
|
3557
|
+
export declare function SyncEnvelopeInputSchema(): z$1.ZodObject<Properties<SyncEnvelopeInput>>;
|
|
3558
|
+
export declare function SyncRefusalInputSchema(): z$1.ZodObject<Properties<SyncRefusalInput>>;
|
|
3559
|
+
export declare function TouchChannelInputSchema(): z$1.ZodObject<Properties<TouchChannelInput>>;
|
|
3560
|
+
export declare function ViewFilterInputSchema(): z$1.ZodObject<Properties<ViewFilterInput>>;
|
|
3561
|
+
export declare const PhDocumentFieldsFragmentDoc: DocumentNode;
|
|
3562
|
+
export declare const DocumentRelationshipFieldsFragmentDoc: DocumentNode;
|
|
3563
|
+
export declare const GetDocumentModelsDocument: DocumentNode;
|
|
3564
|
+
export declare const GetDocumentDocument: DocumentNode;
|
|
3565
|
+
export declare const GetDocumentWithOperationsDocument: DocumentNode;
|
|
3566
|
+
export declare const GetDocumentOutgoingRelationshipsDocument: DocumentNode;
|
|
3567
|
+
export declare const GetDocumentIncomingRelationshipsDocument: DocumentNode;
|
|
3568
|
+
export declare const GetDocumentOutgoingRelationshipEdgesDocument: DocumentNode;
|
|
3569
|
+
export declare const GetDocumentIncomingRelationshipEdgesDocument: DocumentNode;
|
|
3570
|
+
export declare const FindDocumentsDocument: DocumentNode;
|
|
3571
|
+
export declare const GetDocumentOperationsDocument: DocumentNode;
|
|
3572
|
+
export declare const GetJobStatusDocument: DocumentNode;
|
|
3573
|
+
export declare const EvaluateActionsDocument: DocumentNode;
|
|
3574
|
+
export declare const CreateDocumentDocument: DocumentNode;
|
|
3575
|
+
export declare const CreateEmptyDocumentDocument: DocumentNode;
|
|
3576
|
+
export declare const MutateDocumentDocument: DocumentNode;
|
|
3577
|
+
export declare const MutateDocumentAsyncDocument: DocumentNode;
|
|
3578
|
+
export declare const RenameDocumentDocument: DocumentNode;
|
|
3579
|
+
export declare const SetPreferredEditorDocument: DocumentNode;
|
|
3580
|
+
export declare const AddRelationshipDocument: DocumentNode;
|
|
3581
|
+
export declare const UpdateRelationshipDocument: DocumentNode;
|
|
3582
|
+
export declare const RemoveRelationshipDocument: DocumentNode;
|
|
3583
|
+
export declare const MoveRelationshipDocument: DocumentNode;
|
|
3584
|
+
export declare const DeleteDocumentDocument: DocumentNode;
|
|
3585
|
+
export declare const DeleteDocumentsDocument: DocumentNode;
|
|
3586
|
+
export declare const DocumentChangesDocument: DocumentNode;
|
|
3587
|
+
export declare const JobChangesDocument: DocumentNode;
|
|
3588
|
+
export declare const PollSyncEnvelopesDocument: DocumentNode;
|
|
3589
|
+
export declare const TouchChannelDocument: DocumentNode;
|
|
3590
|
+
export declare const PushSyncEnvelopesDocument: DocumentNode;
|
|
3591
|
+
export type Requester<C = {}> = <R, V>(doc: DocumentNode, vars?: V, options?: C) => Promise<R> | AsyncIterable<R>;
|
|
3592
|
+
export declare function getSdk<C>(requester: Requester<C>): {
|
|
3214
3593
|
GetDocumentModels(variables?: GetDocumentModelsQueryVariables, options?: C): Promise<GetDocumentModelsQuery>;
|
|
3215
3594
|
GetDocument(variables: GetDocumentQueryVariables, options?: C): Promise<GetDocumentQuery>;
|
|
3216
3595
|
GetDocumentWithOperations(variables: GetDocumentWithOperationsQueryVariables, options?: C): Promise<GetDocumentWithOperationsQuery>;
|
|
3217
3596
|
GetDocumentOutgoingRelationships(variables: GetDocumentOutgoingRelationshipsQueryVariables, options?: C): Promise<GetDocumentOutgoingRelationshipsQuery>;
|
|
3218
3597
|
GetDocumentIncomingRelationships(variables: GetDocumentIncomingRelationshipsQueryVariables, options?: C): Promise<GetDocumentIncomingRelationshipsQuery>;
|
|
3598
|
+
GetDocumentOutgoingRelationshipEdges(variables: GetDocumentOutgoingRelationshipEdgesQueryVariables, options?: C): Promise<GetDocumentOutgoingRelationshipEdgesQuery>;
|
|
3599
|
+
GetDocumentIncomingRelationshipEdges(variables: GetDocumentIncomingRelationshipEdgesQueryVariables, options?: C): Promise<GetDocumentIncomingRelationshipEdgesQuery>;
|
|
3219
3600
|
FindDocuments(variables?: FindDocumentsQueryVariables, options?: C): Promise<FindDocumentsQuery>;
|
|
3220
3601
|
GetDocumentOperations(variables: GetDocumentOperationsQueryVariables, options?: C): Promise<GetDocumentOperationsQuery>;
|
|
3221
3602
|
GetJobStatus(variables: GetJobStatusQueryVariables, options?: C): Promise<GetJobStatusQuery>;
|
|
@@ -3227,6 +3608,7 @@ declare function getSdk<C>(requester: Requester<C>): {
|
|
|
3227
3608
|
RenameDocument(variables: RenameDocumentMutationVariables, options?: C): Promise<RenameDocumentMutation>;
|
|
3228
3609
|
SetPreferredEditor(variables: SetPreferredEditorMutationVariables, options?: C): Promise<SetPreferredEditorMutation>;
|
|
3229
3610
|
AddRelationship(variables: AddRelationshipMutationVariables, options?: C): Promise<AddRelationshipMutation>;
|
|
3611
|
+
UpdateRelationship(variables: UpdateRelationshipMutationVariables, options?: C): Promise<UpdateRelationshipMutation>;
|
|
3230
3612
|
RemoveRelationship(variables: RemoveRelationshipMutationVariables, options?: C): Promise<RemoveRelationshipMutation>;
|
|
3231
3613
|
MoveRelationship(variables: MoveRelationshipMutationVariables, options?: C): Promise<MoveRelationshipMutation>;
|
|
3232
3614
|
DeleteDocument(variables: DeleteDocumentMutationVariables, options?: C): Promise<DeleteDocumentMutation>;
|
|
@@ -3237,13 +3619,13 @@ declare function getSdk<C>(requester: Requester<C>): {
|
|
|
3237
3619
|
TouchChannel(variables: TouchChannelMutationVariables, options?: C): Promise<TouchChannelMutation>;
|
|
3238
3620
|
PushSyncEnvelopes(variables: PushSyncEnvelopesMutationVariables, options?: C): Promise<PushSyncEnvelopesMutation>;
|
|
3239
3621
|
};
|
|
3240
|
-
type Sdk = ReturnType<typeof getSdk>;
|
|
3622
|
+
export type Sdk = ReturnType<typeof getSdk>;
|
|
3241
3623
|
//#endregion
|
|
3242
3624
|
//#region src/graphql/reactor/requester.d.ts
|
|
3243
3625
|
type FetchLike = (input: URL | string, init: RequestInit) => Promise<Response>;
|
|
3244
3626
|
//#endregion
|
|
3245
3627
|
//#region src/graphql/reactor/factory.d.ts
|
|
3246
|
-
declare function createReactorGraphQLClient(url: string, fetchImpl?: FetchLike, headers?: Record<string, string>): {
|
|
3628
|
+
export declare function createReactorGraphQLClient(url: string, fetchImpl?: FetchLike, headers?: Record<string, string>): {
|
|
3247
3629
|
GetDocumentModels(variables?: Exact<{
|
|
3248
3630
|
namespace?: InputMaybe<Scalars["String"]["input"]>;
|
|
3249
3631
|
paging?: InputMaybe<PagingInput>;
|
|
@@ -3270,6 +3652,18 @@ declare function createReactorGraphQLClient(url: string, fetchImpl?: FetchLike,
|
|
|
3270
3652
|
view?: InputMaybe<ViewFilterInput>;
|
|
3271
3653
|
paging?: InputMaybe<PagingInput>;
|
|
3272
3654
|
}>, options?: {} | undefined): Promise<GetDocumentIncomingRelationshipsQuery>;
|
|
3655
|
+
GetDocumentOutgoingRelationshipEdges(variables: Exact<{
|
|
3656
|
+
sourceIdentifier: Scalars["String"]["input"];
|
|
3657
|
+
relationshipType?: InputMaybe<Scalars["String"]["input"]>;
|
|
3658
|
+
view?: InputMaybe<ViewFilterInput>;
|
|
3659
|
+
paging?: InputMaybe<PagingInput>;
|
|
3660
|
+
}>, options?: {} | undefined): Promise<GetDocumentOutgoingRelationshipEdgesQuery>;
|
|
3661
|
+
GetDocumentIncomingRelationshipEdges(variables: Exact<{
|
|
3662
|
+
targetIdentifier: Scalars["String"]["input"];
|
|
3663
|
+
relationshipType?: InputMaybe<Scalars["String"]["input"]>;
|
|
3664
|
+
view?: InputMaybe<ViewFilterInput>;
|
|
3665
|
+
paging?: InputMaybe<PagingInput>;
|
|
3666
|
+
}>, options?: {} | undefined): Promise<GetDocumentIncomingRelationshipEdgesQuery>;
|
|
3273
3667
|
FindDocuments(variables?: Exact<{
|
|
3274
3668
|
search?: InputMaybe<SearchFilterInput>;
|
|
3275
3669
|
view?: InputMaybe<ViewFilterInput>;
|
|
@@ -3319,8 +3713,16 @@ declare function createReactorGraphQLClient(url: string, fetchImpl?: FetchLike,
|
|
|
3319
3713
|
sourceIdentifier: Scalars["String"]["input"];
|
|
3320
3714
|
targetIdentifier: Scalars["String"]["input"];
|
|
3321
3715
|
relationshipType: Scalars["String"]["input"];
|
|
3716
|
+
metadata?: InputMaybe<Scalars["JSONObject"]["input"]>;
|
|
3322
3717
|
branch?: InputMaybe<Scalars["String"]["input"]>;
|
|
3323
3718
|
}>, options?: {} | undefined): Promise<AddRelationshipMutation>;
|
|
3719
|
+
UpdateRelationship(variables: Exact<{
|
|
3720
|
+
sourceIdentifier: Scalars["String"]["input"];
|
|
3721
|
+
targetIdentifier: Scalars["String"]["input"];
|
|
3722
|
+
relationshipType: Scalars["String"]["input"];
|
|
3723
|
+
metadata?: InputMaybe<Scalars["JSONObject"]["input"]>;
|
|
3724
|
+
branch?: InputMaybe<Scalars["String"]["input"]>;
|
|
3725
|
+
}>, options?: {} | undefined): Promise<UpdateRelationshipMutation>;
|
|
3324
3726
|
RemoveRelationship(variables: Exact<{
|
|
3325
3727
|
sourceIdentifier: Scalars["String"]["input"];
|
|
3326
3728
|
targetIdentifier: Scalars["String"]["input"];
|
|
@@ -3353,40 +3755,59 @@ declare function createReactorGraphQLClient(url: string, fetchImpl?: FetchLike,
|
|
|
3353
3755
|
channelId: Scalars["String"]["input"];
|
|
3354
3756
|
outboxAck: Scalars["Int"]["input"];
|
|
3355
3757
|
outboxLatest: Scalars["Int"]["input"];
|
|
3758
|
+
manifestRevision?: InputMaybe<Scalars["String"]["input"]>;
|
|
3759
|
+
refusals?: InputMaybe<ReadonlyArray<SyncRefusalInput>>;
|
|
3356
3760
|
}>, options?: {} | undefined): Promise<PollSyncEnvelopesQuery>;
|
|
3357
3761
|
TouchChannel(variables: Exact<{
|
|
3358
3762
|
input: TouchChannelInput;
|
|
3359
3763
|
}>, options?: {} | undefined): Promise<TouchChannelMutation>;
|
|
3360
3764
|
PushSyncEnvelopes(variables: Exact<{
|
|
3361
3765
|
envelopes: ReadonlyArray<SyncEnvelopeInput>;
|
|
3766
|
+
peerManifestRevision?: InputMaybe<Scalars["String"]["input"]>;
|
|
3362
3767
|
}>, options?: {} | undefined): Promise<PushSyncEnvelopesMutation>;
|
|
3363
3768
|
};
|
|
3364
3769
|
//#endregion
|
|
3365
3770
|
//#region src/graphql/reactor/subgraph.d.ts
|
|
3366
|
-
declare class ReactorSubgraph extends BaseSubgraph {
|
|
3771
|
+
export declare class ReactorSubgraph extends BaseSubgraph {
|
|
3367
3772
|
#private;
|
|
3368
3773
|
private logger;
|
|
3369
3774
|
constructor(args: SubgraphArgs);
|
|
3370
3775
|
name: string;
|
|
3371
3776
|
hasSubscriptions: boolean;
|
|
3777
|
+
private get documentChanges();
|
|
3372
3778
|
/**
|
|
3373
3779
|
* Check operation-level permissions for an array of actions.
|
|
3374
3780
|
* Delegates to base assertCanExecuteOperation for each action.
|
|
3375
3781
|
*/
|
|
3376
3782
|
private assertCanExecuteOperations;
|
|
3377
|
-
|
|
3783
|
+
/**
|
|
3784
|
+
* Drops the relationship edges whose far-end document the caller cannot read.
|
|
3785
|
+
*
|
|
3786
|
+
* An edge names two documents, so returning it discloses the far end's id. The
|
|
3787
|
+
* document-shaped relationship queries already withhold far-end documents the
|
|
3788
|
+
* caller cannot read; the edge-shaped queries have to withhold the same ones,
|
|
3789
|
+
* or they become a way to enumerate around that check. Supreme admins read
|
|
3790
|
+
* everything, so the per-edge check is skipped for them.
|
|
3791
|
+
*
|
|
3792
|
+
* The cursor describes where to resume in the underlying unfiltered stream,
|
|
3793
|
+
* so it is left as it came. A filtered page is therefore often shorter than
|
|
3794
|
+
* the requested limit, and that is the stream continuing rather than a sign
|
|
3795
|
+
* it ended.
|
|
3796
|
+
*/
|
|
3797
|
+
private filterRelationshipEdges;
|
|
3798
|
+
typeDefs: import("graphql").DocumentNode;
|
|
3378
3799
|
resolvers: Resolvers;
|
|
3379
3800
|
onSetup(): Promise<void>;
|
|
3380
3801
|
}
|
|
3381
3802
|
//#endregion
|
|
3382
3803
|
//#region src/graphql/system/env/index.d.ts
|
|
3383
|
-
declare const ADMIN_USERS: string[];
|
|
3804
|
+
export declare const ADMIN_USERS: string[];
|
|
3384
3805
|
//#endregion
|
|
3385
3806
|
//#region src/graphql/system/subgraph.d.ts
|
|
3386
|
-
declare class SystemSubgraph extends BaseSubgraph {
|
|
3807
|
+
export declare class SystemSubgraph extends BaseSubgraph {
|
|
3387
3808
|
name: string;
|
|
3388
3809
|
hasSubscriptions: boolean;
|
|
3389
|
-
typeDefs: graphql.DocumentNode;
|
|
3810
|
+
typeDefs: import("graphql").DocumentNode;
|
|
3390
3811
|
resolvers: {
|
|
3391
3812
|
Query: {
|
|
3392
3813
|
system: () => {
|
|
@@ -3399,28 +3820,78 @@ declare class SystemSubgraph extends BaseSubgraph {
|
|
|
3399
3820
|
}
|
|
3400
3821
|
//#endregion
|
|
3401
3822
|
//#region src/graphql/system/version.d.ts
|
|
3402
|
-
declare function getVersion(): string;
|
|
3403
|
-
declare function getGitHash(): string;
|
|
3404
|
-
declare function getGitUrl(): string | null;
|
|
3823
|
+
export declare function getVersion(): string;
|
|
3824
|
+
export declare function getGitHash(): string;
|
|
3825
|
+
export declare function getGitUrl(): string | null;
|
|
3405
3826
|
//#endregion
|
|
3406
3827
|
//#region src/graphql/utils.d.ts
|
|
3407
|
-
declare function isSubgraphClass(candidate: unknown): candidate is SubgraphClass$1;
|
|
3408
|
-
declare function buildGraphqlOperations(operations: Operation[], skip: number, first: number): GqlOperation$1[];
|
|
3409
|
-
declare function buildGraphqlOperation(operation: Operation): GqlOperation$1;
|
|
3410
|
-
declare function buildGraphQlDocument(doc: PHDocument): GqlDocument$1;
|
|
3411
|
-
declare function buildGraphQlDriveDocument(doc: DocumentDriveDocument): GqlDriveDocument$1;
|
|
3828
|
+
export declare function isSubgraphClass(candidate: unknown): candidate is SubgraphClass$1;
|
|
3829
|
+
export declare function buildGraphqlOperations(operations: Operation[], skip: number, first: number): GqlOperation$1[];
|
|
3830
|
+
export declare function buildGraphqlOperation(operation: Operation): GqlOperation$1;
|
|
3831
|
+
export declare function buildGraphQlDocument(doc: PHDocument): GqlDocument$1;
|
|
3832
|
+
export declare function buildGraphQlDriveDocument(doc: DocumentDriveDocument): GqlDriveDocument$1;
|
|
3833
|
+
//#endregion
|
|
3834
|
+
//#region src/graphql/errors.d.ts
|
|
3835
|
+
/** Caller (authenticated or anonymous) lacks permission for the document. */
|
|
3836
|
+
export declare class ForbiddenError extends GraphQLError {
|
|
3837
|
+
constructor(detail?: string);
|
|
3838
|
+
}
|
|
3839
|
+
/** Anonymous caller on an action that requires logging in. */
|
|
3840
|
+
export declare class AuthenticationRequiredError extends GraphQLError {
|
|
3841
|
+
constructor(detail?: string);
|
|
3842
|
+
}
|
|
3843
|
+
/**
|
|
3844
|
+
* The reactor holds no decision model, so no authorization preflight can be
|
|
3845
|
+
* answered.
|
|
3846
|
+
*
|
|
3847
|
+
* Distinct from a denial, and deliberately so: a caller that cannot get a
|
|
3848
|
+
* prediction should render its controls as it did before it asked and let the
|
|
3849
|
+
* submit path refuse. Reading this as a denial would disable every control on a
|
|
3850
|
+
* switchboard running without authEnforcement. The code is what a client
|
|
3851
|
+
* branches on, since the message is not a contract.
|
|
3852
|
+
*/
|
|
3853
|
+
export declare class AuthEvaluationUnsupportedError extends GraphQLError {
|
|
3854
|
+
constructor();
|
|
3855
|
+
}
|
|
3856
|
+
/**
|
|
3857
|
+
* A stored operation cannot be represented in the schema, so it is reported
|
|
3858
|
+
* rather than served.
|
|
3859
|
+
*
|
|
3860
|
+
* The schema declares an action's id, type, timestamp, input and scope
|
|
3861
|
+
* non-null; an operation written before the API rejected an action without an
|
|
3862
|
+
* id violates that. Left to the executor, the missing value nullifies the
|
|
3863
|
+
* action, which bubbles up through the non-null chain until it nullifies the
|
|
3864
|
+
* envelope's whole operation list, and the caller receives a partial response
|
|
3865
|
+
* beside "Cannot return null for non-nullable field Action.id" - which says
|
|
3866
|
+
* nothing about which operation, and which a sync client can only read as a
|
|
3867
|
+
* permanent GraphQL rejection, stopping its poll timer for good.
|
|
3868
|
+
*
|
|
3869
|
+
* Thrown instead, with a code that says the failure is worth polling through:
|
|
3870
|
+
* the document holding the operation needs repairing, but the channel serves
|
|
3871
|
+
* every other document, and a peer that stopped polling would stop receiving
|
|
3872
|
+
* those too. The code is what a client branches on, since the message is not a
|
|
3873
|
+
* contract.
|
|
3874
|
+
*/
|
|
3875
|
+
export declare class MalformedStoredOperationError extends GraphQLError {
|
|
3876
|
+
constructor(detail: string);
|
|
3877
|
+
}
|
|
3412
3878
|
//#endregion
|
|
3413
3879
|
//#region src/packages/import-loader.d.ts
|
|
3414
3880
|
/**
|
|
3415
3881
|
* This class is used to load packages using the import keyword.
|
|
3416
3882
|
*/
|
|
3417
|
-
declare class ImportPackageLoader implements IPackageLoader {
|
|
3883
|
+
export declare class ImportPackageLoader implements IPackageLoader {
|
|
3884
|
+
private readonly hostDir;
|
|
3418
3885
|
private readonly logger;
|
|
3419
3886
|
readonly name = "ImportPackageLoader";
|
|
3887
|
+
constructor(hostDir?: string);
|
|
3888
|
+
private readonly reportedUnbuilt;
|
|
3420
3889
|
loadDocumentModels(identifier: string): Promise<DocumentModelModule[]>;
|
|
3421
3890
|
loadUpgradeManifests(identifier: string): Promise<UpgradeManifest<readonly number[]>[]>;
|
|
3422
3891
|
loadSubgraphs(identifier: string): Promise<SubgraphClass$1[]>;
|
|
3423
3892
|
loadProcessors(identifier: string): Promise<ProcessorFactoryBuilder | null>;
|
|
3893
|
+
loadPieces(identifier: string): Promise<PackagePieceEntry[]>;
|
|
3894
|
+
private reportUnbuilt;
|
|
3424
3895
|
}
|
|
3425
3896
|
//#endregion
|
|
3426
3897
|
//#region src/packages/package-manager.d.ts
|
|
@@ -3436,10 +3907,10 @@ declare class ImportPackageLoader implements IPackageLoader {
|
|
|
3436
3907
|
* either bare (`'pkg'`) or as a subpath (`'pkg/subgraphs'`), since loaders
|
|
3437
3908
|
* import sub-entries like `${pkg}/subgraphs` / `${pkg}/document-models`.
|
|
3438
3909
|
*/
|
|
3439
|
-
declare function isExpectedLoaderMiss(error: unknown, pkg: string): boolean;
|
|
3440
|
-
declare function getUniqueDocumentModels(...documentModels: readonly (readonly DocumentModelModule<any>[])[]): DocumentModelModule[];
|
|
3441
|
-
declare function getUniqueUpgradeManifests(...upgradeManifests: readonly (readonly UpgradeManifest<readonly number[]>[])[]): UpgradeManifest<readonly number[]>[];
|
|
3442
|
-
declare class PackageManager implements IPackageManager {
|
|
3910
|
+
export declare function isExpectedLoaderMiss(error: unknown, pkg: string, subPath?: string): boolean;
|
|
3911
|
+
export declare function getUniqueDocumentModels(...documentModels: readonly (readonly DocumentModelModule<any>[])[]): DocumentModelModule[];
|
|
3912
|
+
export declare function getUniqueUpgradeManifests(...upgradeManifests: readonly (readonly UpgradeManifest<readonly number[]>[])[]): UpgradeManifest<readonly number[]>[];
|
|
3913
|
+
export declare class PackageManager implements IPackageManager {
|
|
3443
3914
|
protected options: IPackageManagerOptions;
|
|
3444
3915
|
private readonly logger;
|
|
3445
3916
|
private loaders;
|
|
@@ -3447,6 +3918,7 @@ declare class PackageManager implements IPackageManager {
|
|
|
3447
3918
|
private upgradeManifestsMap;
|
|
3448
3919
|
private subgraphsMap;
|
|
3449
3920
|
private processorMap;
|
|
3921
|
+
private piecesMap;
|
|
3450
3922
|
private configWatcher;
|
|
3451
3923
|
private debouncedUpdateCallbacks;
|
|
3452
3924
|
private eventEmitter;
|
|
@@ -3459,10 +3931,12 @@ declare class PackageManager implements IPackageManager {
|
|
|
3459
3931
|
private loadUpgradeManifests;
|
|
3460
3932
|
private loadSubgraphs;
|
|
3461
3933
|
private loadProcessors;
|
|
3934
|
+
private loadPieces;
|
|
3462
3935
|
private maybeWarnAllLoadersFailed;
|
|
3463
3936
|
private updateDocumentModelsForPackage;
|
|
3464
3937
|
private updateSubgraphsForPackage;
|
|
3465
3938
|
private updateProcessorsForPackage;
|
|
3939
|
+
private updatePiecesForPackage;
|
|
3466
3940
|
/** Debounced per key so repeated subscribePackages calls reuse one timer. */
|
|
3467
3941
|
private getDebouncedUpdateCallback;
|
|
3468
3942
|
private subscribePackages;
|
|
@@ -3472,6 +3946,9 @@ declare class PackageManager implements IPackageManager {
|
|
|
3472
3946
|
private updatePackagesMap;
|
|
3473
3947
|
private updateSubgraphsMap;
|
|
3474
3948
|
private updateProcessorsMap;
|
|
3949
|
+
private updatePiecesMap;
|
|
3950
|
+
/** The pieces every loaded package ships, keyed by the package. */
|
|
3951
|
+
getPieces(): Map<string, PackagePieceEntry[]>;
|
|
3475
3952
|
/**
|
|
3476
3953
|
* Remove `pkg` from all package maps and emit the change events, tearing
|
|
3477
3954
|
* down everything the package registered (subgraphs, processors, document
|
|
@@ -3482,28 +3959,29 @@ declare class PackageManager implements IPackageManager {
|
|
|
3482
3959
|
onDocumentModelsChange(handler: (documentModels: Record<string, DocumentModelModule[]>) => void): void;
|
|
3483
3960
|
onSubgraphsChange(handler: (subgraphs: Map<string, SubgraphClass$1[]>) => void): void;
|
|
3484
3961
|
onProcessorsChange(handler: (processors: Map<string, Processor$1>) => void): void;
|
|
3962
|
+
onPiecesChange(handler: (pieces: Map<string, PackagePieceEntry[]>) => void): void;
|
|
3485
3963
|
}
|
|
3486
3964
|
//#endregion
|
|
3487
3965
|
//#region src/services/renown-config.d.ts
|
|
3488
3966
|
/** Where the credential check reads from: a remote Renown or Switchboard
|
|
3489
3967
|
* instance, or this switchboard's own renown read model. */
|
|
3490
|
-
type RenownSource = NonNullable<PHReactorRenown["source"]>;
|
|
3968
|
+
export type RenownSource = NonNullable<PHReactorRenown["source"]>;
|
|
3491
3969
|
/** The `auth.renown` config block: which Renown instance to authenticate
|
|
3492
3970
|
* against, before env overrides are applied. */
|
|
3493
|
-
type RenownConfig = PHReactorRenown;
|
|
3971
|
+
export type RenownConfig = PHReactorRenown;
|
|
3494
3972
|
/** Resolved renown coordinates. `url` also drives this reactor's own identity,
|
|
3495
3973
|
* so it stays meaningful when `source` is "self". */
|
|
3496
|
-
type ResolvedRenownConfig = {
|
|
3974
|
+
export type ResolvedRenownConfig = {
|
|
3497
3975
|
source: RenownSource;
|
|
3498
3976
|
url: string | undefined;
|
|
3499
3977
|
switchboardUrl: string | undefined;
|
|
3500
3978
|
};
|
|
3501
3979
|
/** Reading credentials from this reactor's own read model needs a host-supplied
|
|
3502
3980
|
* verifier: core has no idea which subgraph serves that read model. */
|
|
3503
|
-
declare function assertCredentialVerifierForSource(source: RenownSource, hasVerifier: boolean): void;
|
|
3981
|
+
export declare function assertCredentialVerifierForSource(source: RenownSource, hasVerifier: boolean): void;
|
|
3504
3982
|
/** Resolve `auth.renown`; RENOWN_SOURCE / RENOWN_URL / SWITCHBOARD_URL win
|
|
3505
3983
|
* over the config file, which wins over the SDK defaults. */
|
|
3506
|
-
declare function resolveRenownConfig(configured: RenownConfig | undefined, env: NodeJS.ProcessEnv, logger: ILogger): ResolvedRenownConfig;
|
|
3984
|
+
export declare function resolveRenownConfig(configured: RenownConfig | undefined, env: NodeJS.ProcessEnv, logger: ILogger): ResolvedRenownConfig;
|
|
3507
3985
|
//#endregion
|
|
3508
3986
|
//#region src/server.d.ts
|
|
3509
3987
|
type Options = {
|
|
@@ -3529,6 +4007,19 @@ type Options = {
|
|
|
3529
4007
|
* request. Off by default; `REQUIRE_AUTHENTICATED_CALLER` overrides.
|
|
3530
4008
|
* Requires identity resolution to be on — refused at boot without it. */
|
|
3531
4009
|
requireAuthenticatedCaller?: boolean;
|
|
4010
|
+
/** Mounted paths that stay reachable anonymously while
|
|
4011
|
+
* `requireAuthenticatedCaller` is on, for a flow that runs before
|
|
4012
|
+
* sign-in. Matched against the request's pathname in full, never as a
|
|
4013
|
+
* prefix. `REQUIRE_AUTHENTICATED_CALLER_EXEMPT_PATHS` overrides, as a
|
|
4014
|
+
* comma-separated list. Each entry is a hole in the floor: only ever name
|
|
4015
|
+
* a path serving operations that are safe without a caller. */
|
|
4016
|
+
requireAuthenticatedCallerExemptPaths?: string[];
|
|
4017
|
+
/** Decide an attachment read with the referencing document's own policy
|
|
4018
|
+
* instead of the host permission tables. Off by default;
|
|
4019
|
+
* `ATTACHMENT_READS_FOLLOW_DOCUMENT_POLICY` overrides. Requires auth
|
|
4020
|
+
* enforcement, which is what supplies the model — refused at boot
|
|
4021
|
+
* without it. */
|
|
4022
|
+
attachmentReadsFollowDocumentPolicy?: boolean;
|
|
3532
4023
|
};
|
|
3533
4024
|
/** Renown coordinates the host already resolved, used verbatim instead of
|
|
3534
4025
|
* resolving `auth.renown` and the env again (which would warn twice). */
|
|
@@ -3566,13 +4057,13 @@ type ProcessorInitializer = ProcessorFactoryBuilder;
|
|
|
3566
4057
|
* Doc-perms require auth: with auth off no `user` is ever resolved, so every
|
|
3567
4058
|
* authorization check fails closed. Refuse to boot rather than run broken.
|
|
3568
4059
|
*/
|
|
3569
|
-
declare function assertAuthRequiredForDocumentPermissions(authEnabled: boolean, documentPermissionsRequested: boolean): void;
|
|
4060
|
+
export declare function assertAuthRequiredForDocumentPermissions(authEnabled: boolean, documentPermissionsRequested: boolean): void;
|
|
3570
4061
|
/**
|
|
3571
4062
|
* Refuses SKIP_CREDENTIAL_VERIFICATION at boot outside tests or an explicit
|
|
3572
4063
|
* opt-in: it removes the only binding between a token's claimed address and its
|
|
3573
4064
|
* signing key. Fail-closed — unset NODE_ENV counts as production.
|
|
3574
4065
|
*/
|
|
3575
|
-
declare function assertSkipCredentialVerificationAllowed(resolvesCallerIdentity: boolean, skipCredentialVerification: boolean, env: NodeJS.ProcessEnv): void;
|
|
4066
|
+
export declare function assertSkipCredentialVerificationAllowed(resolvesCallerIdentity: boolean, skipCredentialVerification: boolean, env: NodeJS.ProcessEnv): void;
|
|
3576
4067
|
/**
|
|
3577
4068
|
* Requiring an authenticated caller requires identity resolution to exist at
|
|
3578
4069
|
* all: with neither AUTH_ENABLED nor RESOLVE_CALLER_IDENTITY the middleware
|
|
@@ -3580,14 +4071,22 @@ declare function assertSkipCredentialVerificationAllowed(resolvesCallerIdentity:
|
|
|
3580
4071
|
* require-authenticated-caller middleware would reject every caller —
|
|
3581
4072
|
* authenticated ones included. Refuse to boot rather than run broken.
|
|
3582
4073
|
*/
|
|
3583
|
-
declare function assertRequireAuthenticatedCallerAllowed(requireAuthenticatedCaller: boolean, resolvesCallerIdentity: boolean): void;
|
|
4074
|
+
export declare function assertRequireAuthenticatedCallerAllowed(requireAuthenticatedCaller: boolean, resolvesCallerIdentity: boolean, exemptPaths?: readonly string[]): void;
|
|
4075
|
+
/**
|
|
4076
|
+
* Deciding an attachment read by the document's policy needs a policy model to
|
|
4077
|
+
* decide with, and that is what auth enforcement supplies. Without one there is
|
|
4078
|
+
* nothing to consult, so the setting would silently leave the permission tables
|
|
4079
|
+
* in charge — configuration that describes a protection the server is not
|
|
4080
|
+
* applying, which is worse than no configuration at all. Refuse instead.
|
|
4081
|
+
*/
|
|
4082
|
+
export declare function assertAttachmentPolicyReadsAllowed(attachmentReadsFollowDocumentPolicy: boolean, hasDecisionModel: boolean): void;
|
|
3584
4083
|
/**
|
|
3585
4084
|
* The GraphiQL explorer page's mount prefix. `path.posix.join` normalizes the
|
|
3586
4085
|
* join with `basePath` — a naive template literal would produce `//explorer`
|
|
3587
4086
|
* for the default `/` basePath, which express compiles into a route that only
|
|
3588
4087
|
* matches `//explorer`, leaving `GET /explorer` a 404.
|
|
3589
4088
|
*/
|
|
3590
|
-
declare function getExplorerPrefix(basePath: string): string;
|
|
4089
|
+
export declare function getExplorerPrefix(basePath: string): string;
|
|
3591
4090
|
/**
|
|
3592
4091
|
* Initializes and starts the API server using an initializer function.
|
|
3593
4092
|
* This function first loads packages to get document models, then calls the initializer function
|
|
@@ -3603,17 +4102,17 @@ declare function getExplorerPrefix(basePath: string): string;
|
|
|
3603
4102
|
* alongside the reactor module so resolvers can dispatch reactor-drive parent
|
|
3604
4103
|
* ops to it; legacy switchboards omit it.
|
|
3605
4104
|
*/
|
|
3606
|
-
interface ClientInitializerResult {
|
|
4105
|
+
export interface ClientInitializerResult {
|
|
3607
4106
|
module: InProcessReactorClientModule;
|
|
3608
4107
|
reactorDriveClient?: IDriveClient;
|
|
3609
4108
|
attachmentReferenceProjection?: AttachmentReferenceProjectionCapability;
|
|
3610
4109
|
}
|
|
3611
|
-
interface ClientInitializerDependencies {
|
|
4110
|
+
export interface ClientInitializerDependencies {
|
|
3612
4111
|
attachmentReferenceWriter: IAttachmentReferenceWriter;
|
|
3613
4112
|
/** Upgrade manifests exported by the loaded packages, one per type. */
|
|
3614
4113
|
upgradeManifests: UpgradeManifest<readonly number[]>[];
|
|
3615
4114
|
}
|
|
3616
|
-
declare function initializeAndStartAPI(clientInitializer: (documentModels: DocumentModelModule[], dependencies: ClientInitializerDependencies) => Promise<ClientInitializerResult>, options: Options, processorApp: ProcessorApp): Promise<API & {
|
|
4115
|
+
export declare function initializeAndStartAPI(clientInitializer: (documentModels: DocumentModelModule[], dependencies: ClientInitializerDependencies) => Promise<ClientInitializerResult>, options: Options, processorApp: ProcessorApp): Promise<API & {
|
|
3617
4116
|
client: IReactorClient;
|
|
3618
4117
|
syncManager: ISyncManager;
|
|
3619
4118
|
documentModelRegistry: IDocumentModelRegistry;
|
|
@@ -3623,27 +4122,27 @@ declare function initializeAndStartAPI(clientInitializer: (documentModels: Docum
|
|
|
3623
4122
|
}>;
|
|
3624
4123
|
//#endregion
|
|
3625
4124
|
//#region src/services/renown-credential-verifier.d.ts
|
|
3626
|
-
interface RenownCredentialVerifierConfig {
|
|
4125
|
+
export interface RenownCredentialVerifierConfig {
|
|
3627
4126
|
renownUrl?: string;
|
|
3628
4127
|
switchboardUrl?: string;
|
|
3629
4128
|
}
|
|
3630
|
-
declare function createRenownCredentialVerifier(config?: RenownCredentialVerifierConfig): Promise<CredentialVerifier>;
|
|
4129
|
+
export declare function createRenownCredentialVerifier(config?: RenownCredentialVerifierConfig): Promise<CredentialVerifier>;
|
|
3631
4130
|
//#endregion
|
|
3632
4131
|
//#region src/utils/create-schema.d.ts
|
|
3633
|
-
declare const buildSubgraphSchemaModule: (documentModels: DocumentModelModule[], resolvers: GraphQLResolverMap<Context$1>, typeDefs: DocumentNode) => GraphQLSchemaModule;
|
|
3634
|
-
declare const createSchema: (documentModels: DocumentModelModule[], resolvers: GraphQLResolverMap<Context$1>, typeDefs: DocumentNode) => graphql.GraphQLSchema;
|
|
4132
|
+
export declare const buildSubgraphSchemaModule: (documentModels: DocumentModelModule[], resolvers: GraphQLResolverMap<Context$1>, typeDefs: DocumentNode) => GraphQLSchemaModule;
|
|
4133
|
+
export declare const createSchema: (documentModels: DocumentModelModule[], resolvers: GraphQLResolverMap<Context$1>, typeDefs: DocumentNode) => import("graphql").GraphQLSchema;
|
|
3635
4134
|
/**
|
|
3636
4135
|
* Create a merged GraphQL schema from multiple subgraph modules.
|
|
3637
4136
|
* Uses buildSubgraphSchema's array overload to combine type definitions
|
|
3638
4137
|
* and resolvers from multiple subgraphs into a single executable schema.
|
|
3639
4138
|
*/
|
|
3640
|
-
declare const createMergedSchema: (modules: GraphQLSchemaModule[]) => graphql.GraphQLSchema;
|
|
3641
|
-
declare function getDocumentModelSchemaName(documentModel: DocumentModelGlobalState$1): string;
|
|
3642
|
-
declare const getDocumentModelTypeDefs: (documentModels: DocumentModelModule[], typeDefs: DocumentNode) => DocumentNode;
|
|
4139
|
+
export declare const createMergedSchema: (modules: GraphQLSchemaModule[]) => import("graphql").GraphQLSchema;
|
|
4140
|
+
export declare function getDocumentModelSchemaName(documentModel: DocumentModelGlobalState$1): string;
|
|
4141
|
+
export declare const getDocumentModelTypeDefs: (documentModels: DocumentModelModule[], typeDefs: DocumentNode) => DocumentNode;
|
|
3643
4142
|
/**
|
|
3644
4143
|
* Options for generating document model GraphQL schemas.
|
|
3645
4144
|
*/
|
|
3646
|
-
interface DocumentModelSchemaOptions {
|
|
4145
|
+
export interface DocumentModelSchemaOptions {
|
|
3647
4146
|
/**
|
|
3648
4147
|
* When true, generates new API patterns:
|
|
3649
4148
|
* - Mutations return full document objects (MutationResult type)
|
|
@@ -3660,7 +4159,8 @@ interface DocumentModelSchemaOptions {
|
|
|
3660
4159
|
* @param options - Schema generation options
|
|
3661
4160
|
* @returns GraphQL DocumentNode
|
|
3662
4161
|
*/
|
|
3663
|
-
declare function generateDocumentModelSchema(documentModel: DocumentModelGlobalState$1, options?: DocumentModelSchemaOptions): DocumentNode;
|
|
4162
|
+
export declare function generateDocumentModelSchema(documentModel: DocumentModelGlobalState$1, options?: DocumentModelSchemaOptions): DocumentNode;
|
|
3664
4163
|
//#endregion
|
|
3665
|
-
export { ADMIN_USERS, API, Action, ActionCandidateInput, ActionCandidateInputSchema, ActionContext, ActionContextInput, ActionContextInputSchema, ActionContextResolvers, ActionEvaluation, ActionEvaluationResolvers, ActionEvaluations, ActionEvaluationsResolvers, ActionInput, ActionInputSchema, ActionResolvers, AdapterRouteHandle, AddRelationshipDocument, AddRelationshipMutation, AddRelationshipMutationVariables, AnalyticsSubgraph, AttachmentAccessRequest, AttachmentAccessResult, AttachmentAccessService, type AttachmentReferenceProjectionCapability, AuthConfig, AuthContext, AuthDecision, AuthDecisionSchema, AuthFetchMiddleware, AuthService, AuthSubgraph, type AuthorizationConfig, AuthorizationPolicy, AuthorizedDocumentHandle, type AuthorizerResult, BaseSubgraph, CORE_PACKAGE_NAME, type CanonicalDocumentId, CanonicalDocumentIdResolutionError, CanonicalDocumentIdResolver, ChannelMeta, ChannelMetaInput, ChannelMetaInputSchema, ChannelMetaResolvers, ClientInitializerDependencies, ClientInitializerResult, Context, CreateDocumentDocument, CreateDocumentMutation, CreateDocumentMutationVariables, CreateEmptyDocumentDocument, CreateEmptyDocumentMutation, CreateEmptyDocumentMutationVariables, CredentialVerifier, DateTimeScalarConfig, DbClient, DeadLetterInfo, DeadLetterInfoResolvers, DeleteDocumentDocument, DeleteDocumentMutation, DeleteDocumentMutationVariables, DeleteDocumentsDocument, DeleteDocumentsMutation, DeleteDocumentsMutationVariables, DirectiveResolverFn, DocumentChangeContext, DocumentChangeContextResolvers, DocumentChangeEvent, DocumentChangeEventResolvers, DocumentChangeType, DocumentChangeTypeSchema, DocumentChangesDocument, DocumentChangesSubscription, DocumentChangesSubscriptionVariables, DocumentModelGlobalState, DocumentModelGlobalStateResolvers, DocumentModelResultPage, DocumentModelResultPageResolvers, DocumentModelSchemaOptions, DocumentOperationsFilterInput, DocumentOperationsFilterInputSchema, DocumentPermissionConfig, DocumentPermissionDatabase, DocumentPermissionEntry, DocumentPermissionLevel, DocumentPermissionService, DocumentPermissionTable, DocumentProtectionTable, DocumentWithChildren, DocumentWithChildrenResolvers, EvaluateActionsDocument, EvaluateActionsQuery, EvaluateActionsQueryVariables, Exact, ExplorerUrlState, FetchHandler, FindDocumentsDocument, FindDocumentsQuery, FindDocumentsQueryVariables, GatewayAdapterType, GatewayContextFactory, GetDocumentDocument, GetDocumentIncomingRelationshipsDocument, GetDocumentIncomingRelationshipsQuery, GetDocumentIncomingRelationshipsQueryVariables, GetDocumentModelsDocument, GetDocumentModelsQuery, GetDocumentModelsQueryVariables, GetDocumentOperationsDocument, GetDocumentOperationsQuery, GetDocumentOperationsQueryVariables, GetDocumentOutgoingRelationshipsDocument, GetDocumentOutgoingRelationshipsQuery, GetDocumentOutgoingRelationshipsQueryVariables, GetDocumentQuery, GetDocumentQueryVariables, GetDocumentWithOperationsDocument, GetDocumentWithOperationsQuery, GetDocumentWithOperationsQueryVariables, GetJobStatusDocument, GetJobStatusQuery, GetJobStatusQueryVariables, GetParentIdsFn, GqlDocument, GqlDriveDocument, GqlOperation, GqlOperationContext, GqlSigner, GqlSignerApp, GqlSignerUser, GraphQLManager, GraphqlManagerFeatureFlags, HttpAdapterSetup, HttpAdapterType, HttpDocumentModelLoader, HttpMethod, HttpPackageLoader, HttpPackageLoaderLogger, HttpPackageLoaderOptions, HttpRouteService, type HttpRouteServiceOptions, IAttachmentAccessService, type IAuthorizationService, IGatewayAdapter, IHttpAdapter, type IHttpScope, type IPackageLoader, type IPackageLoaderOptions, IPackageStorage, IProcessorHostModule, IReactorProcessorHostModule, ISubgraph, type IWebhookEndpoints, type IWebhookScope, type IWebhookStore, ImportPackageLoader, InMemoryPackageStorage, Incremental, InputMaybe, InstallPackageResult, InstalledPackageInfo, InvalidNamespaceError, IsTypeOfResolverFn, JobChangeEvent, JobChangeEventResolvers, JobChangesDocument, JobChangesSubscription, JobChangesSubscriptionVariables, JobInfo, JobInfoResolvers, JsonObjectScalarConfig, MakeEmpty, MakeMaybe, MakeOptional, Maybe, MemoryWebhookStore, MoveRelationshipDocument, MoveRelationshipMutation, MoveRelationshipMutationVariables, MoveRelationshipResult, MoveRelationshipResultResolvers, MutateDocumentAsyncDocument, MutateDocumentAsyncMutation, MutateDocumentAsyncMutationVariables, MutateDocumentDocument, MutateDocumentMutation, MutateDocumentMutationVariables, Mutation, MutationAddRelationshipArgs, MutationCreateDocumentArgs, MutationCreateEmptyDocumentArgs, MutationDeleteDocumentArgs, MutationDeleteDocumentsArgs, MutationExecuteArgs, MutationExecuteAsyncArgs, MutationMoveRelationshipArgs, MutationMutateDocumentArgs, MutationMutateDocumentAsyncArgs, MutationPushSyncEnvelopesArgs, MutationRemoveRelationshipArgs, MutationRenameDocumentArgs, MutationResolvers, MutationSetPreferredEditorArgs, MutationTouchChannelArgs, NextResolverFn, NodeRouteOptions, type NodeRouteSpec, OperationContext, OperationContextInput, OperationContextInputSchema, OperationContextResolvers, OperationInput, OperationInputSchema, OperationUserPermissionEntry, OperationUserPermissionTable, OperationWithContext, OperationWithContextInput, OperationWithContextInputSchema, OperationWithContextResolvers, OperationsFilterInput, OperationsFilterInputSchema, PACKAGE_ROUTE_SEGMENT, PGLITE_UTC_PARSERS, PackageManagementService, PackageManagementServiceOptions, PackageManager, PackagesSubgraph, type PackagesSubgraphArgs, PagingInput, PagingInputSchema, type ParsedDriveUrl, PgliteFactory, PhDocument, PhDocumentFieldsFragment, PhDocumentFieldsFragmentDoc, PhDocumentOperationsArgs, PhDocumentResolvers, PhDocumentResultPage, PhDocumentResultPageResolvers, PollSyncEnvelopesDocument, PollSyncEnvelopesQuery, PollSyncEnvelopesQueryVariables, PollSyncEnvelopesResult, PollSyncEnvelopesResultResolvers, Processor, ProcessorDriveFactory, ProcessorFactoryBuilder, PropagationMode, PropagationModeSchema, PushSyncEnvelopesDocument, PushSyncEnvelopesMutation, PushSyncEnvelopesMutationVariables, Query, QueryDocumentArgs, QueryDocumentIncomingRelationshipsArgs, QueryDocumentModelsArgs, QueryDocumentOperationsArgs, QueryDocumentOutgoingRelationshipsArgs, QueryEvaluateActionsArgs, QueryFindDocumentsArgs, QueryJobStatusArgs, QueryPollSyncEnvelopesArgs, QueryResolvers, ReactorModule, ReactorOperation, ReactorOperationResolvers, ReactorOperationResultPage, ReactorOperationResultPageResolvers, ReactorSigner, ReactorSignerApp, ReactorSignerAppInput, ReactorSignerAppInputSchema, ReactorSignerAppResolvers, ReactorSignerInput, ReactorSignerInputSchema, ReactorSignerResolvers, ReactorSignerUser, ReactorSignerUserInput, ReactorSignerUserInputSchema, ReactorSignerUserResolvers, ReactorSubgraph, ReadinessGate, RelationalWebhookStore, RemoteCursor, RemoteCursorInput, RemoteCursorInputSchema, RemoteCursorResolvers, RemoteFilterInput, RemoteFilterInputSchema, RemoveRelationshipDocument, RemoveRelationshipMutation, RemoveRelationshipMutationVariables, RenameDocumentDocument, RenameDocumentMutation, RenameDocumentMutationVariables, RenownConfig, RenownCredentialVerifierConfig, RenownSource, Requester, RequireFields, ResolvedRenownConfig, Resolver, ResolverFn, ResolverTypeWrapper, ResolverWithResolve, Resolvers, ResolversObject, ResolversParentTypes, ResolversTypes, Revision, RevisionResolvers, type RouteActor, type RouteAuth, type RouteAuthorizer, type RouteBody, type RouteContext, type RouteHandler, type RouteMethod, type RouteOptions, type RouteSpec, type RouteTransport, type RouteUser, Scalars, type ScopedRouteHandle, Sdk, SearchFilterInput, SearchFilterInputSchema, SetPreferredEditorDocument, SetPreferredEditorMutation, SetPreferredEditorMutationVariables, SubgraphArgs, SubgraphClass, SubgraphDefinition, Subscription, SubscriptionDocumentChangesArgs, SubscriptionJobChangesArgs, SubscriptionObject, SubscriptionResolveFn, SubscriptionResolver, SubscriptionResolverObject, SubscriptionResolvers, SubscriptionSubscribeFn, SubscriptionSubscriberObject, SyncEnvelope, SyncEnvelopeInput, SyncEnvelopeInputSchema, SyncEnvelopeResolvers, SyncEnvelopeType, SyncEnvelopeTypeSchema, SystemSubgraph, TlsOptions, TouchChannelDocument, TouchChannelInput, TouchChannelInputSchema, TouchChannelMutation, TouchChannelMutationVariables, TouchChannelResult, TouchChannelResultResolvers, TypeResolveFn, User, ViewFilterInput, ViewFilterInputSchema, WEBHOOK_SEGMENT, 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 };
|
|
4164
|
+
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 };
|
|
4165
|
+
export {};
|
|
3666
4166
|
//# sourceMappingURL=index.d.mts.map
|