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