@powerhousedao/reactor-api 6.2.2-dev.5 → 6.2.2-dev.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +274 -9
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +342 -52
- package/dist/index.mjs.map +1 -1
- package/dist/src/packages/vite-loader.d.mts +3 -2
- package/dist/src/packages/vite-loader.d.mts.map +1 -1
- package/dist/src/packages/vite-loader.mjs +16 -3
- package/dist/src/packages/vite-loader.mjs.map +1 -1
- package/dist/{types-DnHgkahK.d.mts → types-D2ZrjmCk.d.mts} +8 -2
- package/dist/types-D2ZrjmCk.d.mts.map +1 -0
- package/dist/{utils-iibOQ50e.mjs → utils-Tw4hVMpc.mjs} +86 -7
- package/dist/utils-Tw4hVMpc.mjs.map +1 -0
- package/package.json +14 -13
- package/dist/types-DnHgkahK.d.mts.map +0 -1
- package/dist/utils-iibOQ50e.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { i as IPackageManagerOptions, n as IPackageLoaderOptions, r as IPackageManager, s as PackageManagerResult, t as IPackageLoader } from "./types-
|
|
1
|
+
import { i as IPackageManagerOptions, n as IPackageLoaderOptions, r as IPackageManager, s as PackageManagerResult, t as IPackageLoader } from "./types-D2ZrjmCk.mjs";
|
|
2
2
|
import { IAnalyticsStore } from "@powerhousedao/analytics-engine-core";
|
|
3
3
|
import { AnalyticsModel } from "@powerhousedao/analytics-engine-graphql";
|
|
4
4
|
import * as graphql from "graphql";
|
|
5
5
|
import { DocumentNode, GraphQLResolveInfo, GraphQLScalarType, GraphQLScalarTypeConfig, GraphQLSchema } from "graphql";
|
|
6
|
-
import { IDocumentModelLoader, IDocumentModelRegistry, IDriveClient, IReactorClient, IRelationalDb, ISyncManager, InProcessReactorClientModule, ParsedDriveUrl, driveIdFromUrl, parseDriveUrl } from "@powerhousedao/reactor";
|
|
6
|
+
import { AttachmentRef, IDocumentModelLoader, IDocumentModelRegistry, IDriveClient, IReactorClient, IRelationalDb, ISyncManager, InProcessReactorClientModule, ParsedDriveUrl, driveIdFromUrl, parseDriveUrl } from "@powerhousedao/reactor";
|
|
7
7
|
import { ILogger } from "document-model";
|
|
8
|
-
import { DocumentModelGlobalState as DocumentModelGlobalState$1, DocumentModelModule, Operation, PHDocument, PHDocumentHeader } from "@powerhousedao/shared/document-model";
|
|
8
|
+
import { AuthSubject, DocumentModelGlobalState as DocumentModelGlobalState$1, DocumentModelModule, Operation, PHDocument, PHDocumentHeader, UpgradeManifest } from "@powerhousedao/shared/document-model";
|
|
9
9
|
import * as z$1 from "zod";
|
|
10
10
|
import { DocumentDriveDocument, DocumentDriveGlobalState } from "@powerhousedao/shared/document-drive";
|
|
11
|
-
import { AttachmentBuildResult } from "@powerhousedao/reactor-attachments";
|
|
11
|
+
import { AttachmentBuildResult, AttachmentReferenceIndexBuildResult, IAttachmentReferenceReader, IAttachmentReferenceWriter } from "@powerhousedao/reactor-attachments";
|
|
12
12
|
import { IAttachmentClient } from "@powerhousedao/reactor-attachments/client";
|
|
13
13
|
import { WebSocketServer } from "ws";
|
|
14
14
|
import { IProcessorHostModule, IRelationalDb as IRelationalDb$1, ProcessorApp, ProcessorRecord } from "@powerhousedao/shared/processors";
|
|
@@ -215,7 +215,7 @@ declare class DocumentPermissionService {
|
|
|
215
215
|
* must key on the canonical id, so branding it forces every caller to resolve a
|
|
216
216
|
* slug to its id before consulting this service, closing the slug-aliasing
|
|
217
217
|
* bypass (S-C1). The only sanctioned cast from string to CanonicalDocumentId
|
|
218
|
-
* lives in
|
|
218
|
+
* lives in createCanonicalDocumentIdResolver, immediately after the shared
|
|
219
219
|
* resolveIdOrSlug lookup returns.
|
|
220
220
|
*/
|
|
221
221
|
type CanonicalDocumentId = string & {
|
|
@@ -293,7 +293,8 @@ type Context = {
|
|
|
293
293
|
user?: {
|
|
294
294
|
address: string;
|
|
295
295
|
chainId: number;
|
|
296
|
-
networkId: string;
|
|
296
|
+
networkId: string; /** The did:key of the app instance that issued this request's token. */
|
|
297
|
+
appKey: string;
|
|
297
298
|
};
|
|
298
299
|
};
|
|
299
300
|
type ISubgraph = {
|
|
@@ -411,6 +412,17 @@ declare class BaseSubgraph implements ISubgraph$1 {
|
|
|
411
412
|
* layer, such as a fetched document's id). Performs no slug resolution.
|
|
412
413
|
*/
|
|
413
414
|
canReadDocument(documentId: CanonicalDocumentId, ctx: Context): Promise<boolean>;
|
|
415
|
+
/**
|
|
416
|
+
* The principal a request decides as: the authenticated caller's address, and
|
|
417
|
+
* the did:key of the app instance whose token authenticated it.
|
|
418
|
+
*
|
|
419
|
+
* Both, because a policy can name either. The key is what a document records
|
|
420
|
+
* as its creator, so a subject built without one cannot match the creator's
|
|
421
|
+
* standing permission over the auth scope -- the document's own creator would
|
|
422
|
+
* be refused an operation the write path accepts, since a signed action
|
|
423
|
+
* carries the same key. Anonymous callers supply neither.
|
|
424
|
+
*/
|
|
425
|
+
protected viewSubject(ctx: Context): AuthSubject;
|
|
414
426
|
/**
|
|
415
427
|
* Asserts read access, resolving a slug first. Returns a handle whose
|
|
416
428
|
* `fetchIdentifier` the caller reuses for the data fetch; a denial throws.
|
|
@@ -594,16 +606,35 @@ declare class AuthSubgraph extends BaseSubgraph {
|
|
|
594
606
|
}
|
|
595
607
|
//#endregion
|
|
596
608
|
//#region src/services/auth.service.d.ts
|
|
609
|
+
type CredentialVerifier = (params: {
|
|
610
|
+
address: string;
|
|
611
|
+
chainId: number;
|
|
612
|
+
appId: string;
|
|
613
|
+
}) => Promise<boolean>;
|
|
597
614
|
interface AuthConfig {
|
|
598
615
|
enabled: boolean;
|
|
599
616
|
admins: string[];
|
|
600
617
|
skipCredentialVerification?: boolean;
|
|
601
618
|
credentialVerificationCacheTtlMs?: number;
|
|
619
|
+
verifyCredential?: CredentialVerifier;
|
|
602
620
|
}
|
|
603
621
|
interface User {
|
|
604
622
|
address: string;
|
|
605
623
|
chainId: number;
|
|
606
624
|
networkId: string;
|
|
625
|
+
/**
|
|
626
|
+
* The did:key of the app instance that issued this request's token, taken
|
|
627
|
+
* from the verified credential's issuer.
|
|
628
|
+
*
|
|
629
|
+
* It is the same value a signer presents as its app key when it signs an
|
|
630
|
+
* action, which is what a document records as its creator. Carrying it here
|
|
631
|
+
* is what lets a request decide as the same principal the write path
|
|
632
|
+
* presents, rather than as an address with no key.
|
|
633
|
+
*
|
|
634
|
+
* Authenticated, not asserted: the token is verified by resolving this very
|
|
635
|
+
* DID, so a caller cannot name someone else's.
|
|
636
|
+
*/
|
|
637
|
+
appKey: string;
|
|
607
638
|
}
|
|
608
639
|
interface AuthContext {
|
|
609
640
|
user?: User;
|
|
@@ -626,7 +657,12 @@ declare class AuthService {
|
|
|
626
657
|
*/
|
|
627
658
|
private verifyToken;
|
|
628
659
|
/**
|
|
629
|
-
* Extract user information from verification result
|
|
660
|
+
* Extract user information from verification result.
|
|
661
|
+
*
|
|
662
|
+
* The issuer is required along with the credential subject. A credential that
|
|
663
|
+
* verified must carry one -- resolving it is how the signature was checked --
|
|
664
|
+
* so this rejects a shape that cannot have come from verification rather than
|
|
665
|
+
* admitting a keyless principal.
|
|
630
666
|
*/
|
|
631
667
|
private extractUserFromVerification;
|
|
632
668
|
/**
|
|
@@ -874,6 +910,78 @@ declare class InMemoryPackageStorage implements IPackageStorage {
|
|
|
874
910
|
has(name: string): Promise<boolean>;
|
|
875
911
|
}
|
|
876
912
|
//#endregion
|
|
913
|
+
//#region src/services/canonical-document-id.d.ts
|
|
914
|
+
/**
|
|
915
|
+
* Raised when a caller-supplied identifier cannot be resolved to a canonical
|
|
916
|
+
* document id. Carries no detail on purpose: resolution failures must not act
|
|
917
|
+
* as a document-existence oracle, so consumers map this to their generic
|
|
918
|
+
* fail-closed response.
|
|
919
|
+
*/
|
|
920
|
+
declare class CanonicalDocumentIdResolutionError extends Error {
|
|
921
|
+
constructor();
|
|
922
|
+
}
|
|
923
|
+
type CanonicalDocumentIdResolver = (identifier: string) => Promise<CanonicalDocumentId>;
|
|
924
|
+
/**
|
|
925
|
+
* The sanctioned string-to-CanonicalDocumentId cast: both the GraphQL layer
|
|
926
|
+
* and server routes must resolve caller identifiers through this helper so
|
|
927
|
+
* decision and data layers always agree on the subject document.
|
|
928
|
+
*/
|
|
929
|
+
declare function createCanonicalDocumentIdResolver(client: Pick<IReactorClient, "resolveIdOrSlug">): CanonicalDocumentIdResolver;
|
|
930
|
+
//#endregion
|
|
931
|
+
//#region src/services/attachment-access.service.d.ts
|
|
932
|
+
/**
|
|
933
|
+
* Whether the active Reactor composition hosts the attachment-reference
|
|
934
|
+
* projection. Reported by the client initializer: the built-in stack always
|
|
935
|
+
* registers it, while a caller-provided Reactor may lack the live
|
|
936
|
+
* registration capability. Consumers of reference evidence must fail closed
|
|
937
|
+
* when it is unavailable.
|
|
938
|
+
*/
|
|
939
|
+
type AttachmentReferenceProjectionCapability = {
|
|
940
|
+
status: "available";
|
|
941
|
+
} | {
|
|
942
|
+
status: "unavailable";
|
|
943
|
+
reason: "live-read-model-registration-unsupported" | "in-process-reactor-module-unavailable" | "initializer-did-not-report";
|
|
944
|
+
};
|
|
945
|
+
/**
|
|
946
|
+
* Outcome of an attachment read authorization. `denied` intentionally covers
|
|
947
|
+
* both an unreadable document and an absent document/ref relationship so the
|
|
948
|
+
* route layer cannot leak which check failed. `projection-unavailable` means
|
|
949
|
+
* the reference index is not being maintained in this composition; it is
|
|
950
|
+
* returned before any document-authorization or reference lookup runs.
|
|
951
|
+
*/
|
|
952
|
+
type AttachmentAccessResult = {
|
|
953
|
+
kind: "allowed";
|
|
954
|
+
documentId: CanonicalDocumentId;
|
|
955
|
+
ref: AttachmentRef;
|
|
956
|
+
} | {
|
|
957
|
+
kind: "denied";
|
|
958
|
+
} | {
|
|
959
|
+
kind: "projection-unavailable";
|
|
960
|
+
};
|
|
961
|
+
interface AttachmentAccessRequest {
|
|
962
|
+
documentId: string;
|
|
963
|
+
attachmentRef: string;
|
|
964
|
+
userAddress?: string;
|
|
965
|
+
}
|
|
966
|
+
interface IAttachmentAccessService {
|
|
967
|
+
canReadAttachment(request: AttachmentAccessRequest): Promise<AttachmentAccessResult>;
|
|
968
|
+
}
|
|
969
|
+
/**
|
|
970
|
+
* Composes document authorization with the projected document/ref
|
|
971
|
+
* relationship. Order is fixed: validate ref, resolve the canonical document
|
|
972
|
+
* id, check `canRead`, then check the reference index. A denied document
|
|
973
|
+
* never reaches the reference reader, and the facade never touches
|
|
974
|
+
* attachment metadata, storage backends, or presigners.
|
|
975
|
+
*/
|
|
976
|
+
declare class AttachmentAccessService implements IAttachmentAccessService {
|
|
977
|
+
private readonly resolveCanonicalId;
|
|
978
|
+
private readonly authorization;
|
|
979
|
+
private readonly references;
|
|
980
|
+
private readonly projection;
|
|
981
|
+
constructor(resolveCanonicalId: CanonicalDocumentIdResolver, authorization: IAuthorizationService, references: IAttachmentReferenceReader, projection: AttachmentReferenceProjectionCapability);
|
|
982
|
+
canReadAttachment(request: AttachmentAccessRequest): Promise<AttachmentAccessResult>;
|
|
983
|
+
}
|
|
984
|
+
//#endregion
|
|
877
985
|
//#region src/types.d.ts
|
|
878
986
|
interface IReactorProcessorHostModule extends IProcessorHostModule {
|
|
879
987
|
client: IReactorClient;
|
|
@@ -888,6 +996,8 @@ type API = {
|
|
|
888
996
|
graphqlManager: GraphQLManager$1;
|
|
889
997
|
packages: IPackageManager;
|
|
890
998
|
attachments: AttachmentBuildResult;
|
|
999
|
+
attachmentReferenceIndex: AttachmentReferenceIndexBuildResult; /** Document-authorized attachment read decisions; see AttachmentAccessService. */
|
|
1000
|
+
attachmentAccess: IAttachmentAccessService;
|
|
891
1001
|
authService: AuthService | undefined;
|
|
892
1002
|
/**
|
|
893
1003
|
* Releases resources owned by the API: shuts down the GraphQL gateway,
|
|
@@ -955,6 +1065,7 @@ declare class HttpPackageLoader implements IPackageLoader {
|
|
|
955
1065
|
*/
|
|
956
1066
|
private parsePackageSpec;
|
|
957
1067
|
loadDocumentModels(packageSpec: string): Promise<DocumentModelModule[]>;
|
|
1068
|
+
loadUpgradeManifests(packageSpec: string): Promise<UpgradeManifest<readonly number[]>[]>;
|
|
958
1069
|
loadSubgraphs(packageSpec: string): Promise<SubgraphClass$1[]>;
|
|
959
1070
|
loadProcessors(packageSpec: string): Promise<ProcessorFactoryBuilder | null>;
|
|
960
1071
|
/**
|
|
@@ -1128,12 +1239,48 @@ type Action = {
|
|
|
1128
1239
|
readonly timestampUtcMs: Scalars["String"]["output"];
|
|
1129
1240
|
readonly type: Scalars["String"]["output"];
|
|
1130
1241
|
};
|
|
1242
|
+
/**
|
|
1243
|
+
* One operation an authorization preflight predicts a verdict for.
|
|
1244
|
+
*
|
|
1245
|
+
* `input` is what a conditional grant reads, so a candidate standing for a
|
|
1246
|
+
* filled-in form carries that form's input. Omitting it predicts the verdict an
|
|
1247
|
+
* empty input earns, not the verdict the filled-in form will get.
|
|
1248
|
+
*/
|
|
1249
|
+
type ActionCandidateInput = {
|
|
1250
|
+
readonly input?: InputMaybe<Scalars["JSONObject"]["input"]>;
|
|
1251
|
+
readonly scope: Scalars["String"]["input"];
|
|
1252
|
+
readonly type: Scalars["String"]["input"];
|
|
1253
|
+
};
|
|
1131
1254
|
type ActionContext = {
|
|
1132
1255
|
readonly signer?: Maybe<ReactorSigner>;
|
|
1133
1256
|
};
|
|
1134
1257
|
type ActionContextInput = {
|
|
1135
1258
|
readonly signer?: InputMaybe<ReactorSignerInput>;
|
|
1136
1259
|
};
|
|
1260
|
+
/**
|
|
1261
|
+
* One candidate's predicted verdict. `reason` carries the refusal a DENY is
|
|
1262
|
+
* recorded with, and is null on an ALLOW.
|
|
1263
|
+
*/
|
|
1264
|
+
type ActionEvaluation = {
|
|
1265
|
+
readonly decision: AuthDecision;
|
|
1266
|
+
readonly reason?: Maybe<Scalars["String"]["output"]>;
|
|
1267
|
+
};
|
|
1268
|
+
/**
|
|
1269
|
+
* The predicted verdicts for a set of candidates, in the order they were given,
|
|
1270
|
+
* with the aggregates a caller branches on.
|
|
1271
|
+
*
|
|
1272
|
+
* The aggregates are redundant -- a verdict is binary -- and all four are returned
|
|
1273
|
+
* so a caller reads the one its question is phrased in rather than negating
|
|
1274
|
+
* another. Over no candidates every aggregate is false: nothing is allowed and
|
|
1275
|
+
* nothing is denied.
|
|
1276
|
+
*/
|
|
1277
|
+
type ActionEvaluations = {
|
|
1278
|
+
readonly allAllowed: Scalars["Boolean"]["output"];
|
|
1279
|
+
readonly allDenied: Scalars["Boolean"]["output"];
|
|
1280
|
+
readonly anyAllowed: Scalars["Boolean"]["output"];
|
|
1281
|
+
readonly anyDenied: Scalars["Boolean"]["output"];
|
|
1282
|
+
readonly evaluations: ReadonlyArray<ActionEvaluation>;
|
|
1283
|
+
};
|
|
1137
1284
|
type ActionInput = {
|
|
1138
1285
|
readonly context?: InputMaybe<ActionContextInput>;
|
|
1139
1286
|
readonly id: Scalars["String"]["input"];
|
|
@@ -1142,6 +1289,10 @@ type ActionInput = {
|
|
|
1142
1289
|
readonly timestampUtcMs: Scalars["String"]["input"];
|
|
1143
1290
|
readonly type: Scalars["String"]["input"];
|
|
1144
1291
|
};
|
|
1292
|
+
declare enum AuthDecision {
|
|
1293
|
+
Allow = "ALLOW",
|
|
1294
|
+
Deny = "DENY"
|
|
1295
|
+
}
|
|
1145
1296
|
type ChannelMeta = {
|
|
1146
1297
|
readonly id: Scalars["String"]["output"];
|
|
1147
1298
|
};
|
|
@@ -1152,6 +1303,12 @@ type DeadLetterInfo = {
|
|
|
1152
1303
|
readonly branch: Scalars["String"]["output"];
|
|
1153
1304
|
readonly documentId: Scalars["String"]["output"];
|
|
1154
1305
|
readonly error: Scalars["String"]["output"];
|
|
1306
|
+
/**
|
|
1307
|
+
* How the origin classified the failure. A peer needs this to mirror the origin's
|
|
1308
|
+
* quarantine decision; without it a held auth operation would freeze the document
|
|
1309
|
+
* on the peer side while the origin kept syncing.
|
|
1310
|
+
*/
|
|
1311
|
+
readonly errorType?: Maybe<Scalars["String"]["output"]>;
|
|
1155
1312
|
readonly jobId: Scalars["String"]["output"];
|
|
1156
1313
|
readonly operationCount: Scalars["Int"]["output"];
|
|
1157
1314
|
readonly scopes: ReadonlyArray<Scalars["String"]["output"]>;
|
|
@@ -1310,6 +1467,7 @@ type OperationContextInput = {
|
|
|
1310
1467
|
};
|
|
1311
1468
|
type OperationInput = {
|
|
1312
1469
|
readonly action: ActionInput;
|
|
1470
|
+
readonly deniedReason?: InputMaybe<Scalars["String"]["input"]>;
|
|
1313
1471
|
readonly error?: InputMaybe<Scalars["String"]["input"]>;
|
|
1314
1472
|
readonly hash: Scalars["String"]["input"];
|
|
1315
1473
|
readonly id?: InputMaybe<Scalars["String"]["input"]>;
|
|
@@ -1378,6 +1536,34 @@ type Query = {
|
|
|
1378
1536
|
readonly documentModels: DocumentModelResultPage;
|
|
1379
1537
|
readonly documentOperations: ReactorOperationResultPage;
|
|
1380
1538
|
readonly documentOutgoingRelationships: PhDocumentResultPage;
|
|
1539
|
+
/**
|
|
1540
|
+
* Predicts whether the calling subject would be admitted to execute each of a
|
|
1541
|
+
* set of candidate operations, without submitting any of them. A UI asks this to
|
|
1542
|
+
* disable a control rather than offer an action that fails on submit.
|
|
1543
|
+
*
|
|
1544
|
+
* The answer is a prediction, not a promise:
|
|
1545
|
+
*
|
|
1546
|
+
* - Real admission compiles an append condition over everything it read and the
|
|
1547
|
+
* store enforces it at write time. A preflight reads no future, so a policy
|
|
1548
|
+
* change landing between this answer and the submit changes the verdict. The
|
|
1549
|
+
* submit path stays the only authority.
|
|
1550
|
+
* - The verdict is evaluated at the stream heads, so it is correct for a
|
|
1551
|
+
* candidate about to be submitted. A backdated submission is out of contract;
|
|
1552
|
+
* the reactor decides that one by position.
|
|
1553
|
+
* - A candidate whose verdict depends on its input has to carry that input, since
|
|
1554
|
+
* a conditional grant reads it.
|
|
1555
|
+
*
|
|
1556
|
+
* The subject is the authenticated caller and cannot be named in the request:
|
|
1557
|
+
* answering for an arbitrary subject would disclose what a policy grants
|
|
1558
|
+
* somebody else. It carries both the caller's address and the did:key of the app
|
|
1559
|
+
* instance whose token authenticated the request, so a policy naming either
|
|
1560
|
+
* matches the same principal the write path presents.
|
|
1561
|
+
*
|
|
1562
|
+
* Requires the reactor's authEnforcement feature flag. Without it the reactor
|
|
1563
|
+
* holds no decision model, so this fails with extensions.code
|
|
1564
|
+
* AUTH_EVALUATION_UNSUPPORTED rather than guessing.
|
|
1565
|
+
*/
|
|
1566
|
+
readonly evaluateActions: ActionEvaluations;
|
|
1381
1567
|
readonly findDocuments: PhDocumentResultPage;
|
|
1382
1568
|
readonly jobStatus?: Maybe<JobInfo>;
|
|
1383
1569
|
readonly pollSyncEnvelopes: PollSyncEnvelopesResult;
|
|
@@ -1406,6 +1592,11 @@ type QueryDocumentOutgoingRelationshipsArgs = {
|
|
|
1406
1592
|
sourceIdentifier: Scalars["String"]["input"];
|
|
1407
1593
|
view?: InputMaybe<ViewFilterInput>;
|
|
1408
1594
|
};
|
|
1595
|
+
type QueryEvaluateActionsArgs = {
|
|
1596
|
+
branch?: InputMaybe<Scalars["String"]["input"]>;
|
|
1597
|
+
candidates: ReadonlyArray<ActionCandidateInput>;
|
|
1598
|
+
documentIdentifier: Scalars["String"]["input"];
|
|
1599
|
+
};
|
|
1409
1600
|
type QueryFindDocumentsArgs = {
|
|
1410
1601
|
paging?: InputMaybe<PagingInput>;
|
|
1411
1602
|
search?: InputMaybe<SearchFilterInput>;
|
|
@@ -1421,6 +1612,7 @@ type QueryPollSyncEnvelopesArgs = {
|
|
|
1421
1612
|
};
|
|
1422
1613
|
type ReactorOperation = {
|
|
1423
1614
|
readonly action: Action;
|
|
1615
|
+
readonly deniedReason?: Maybe<Scalars["String"]["output"]>;
|
|
1424
1616
|
readonly error?: Maybe<Scalars["String"]["output"]>;
|
|
1425
1617
|
readonly hash: Scalars["String"]["output"];
|
|
1426
1618
|
readonly id?: Maybe<Scalars["String"]["output"]>;
|
|
@@ -1615,6 +1807,7 @@ type GetDocumentWithOperationsQuery = {
|
|
|
1615
1807
|
readonly hash: string;
|
|
1616
1808
|
readonly skip: number;
|
|
1617
1809
|
readonly error?: string | null | undefined;
|
|
1810
|
+
readonly deniedReason?: string | null | undefined;
|
|
1618
1811
|
readonly id?: string | null | undefined;
|
|
1619
1812
|
readonly action: {
|
|
1620
1813
|
readonly id: string;
|
|
@@ -1742,6 +1935,7 @@ type GetDocumentOperationsQuery = {
|
|
|
1742
1935
|
readonly hash: string;
|
|
1743
1936
|
readonly skip: number;
|
|
1744
1937
|
readonly error?: string | null | undefined;
|
|
1938
|
+
readonly deniedReason?: string | null | undefined;
|
|
1745
1939
|
readonly id?: string | null | undefined;
|
|
1746
1940
|
readonly action: {
|
|
1747
1941
|
readonly id: string;
|
|
@@ -1780,6 +1974,23 @@ type GetJobStatusQuery = {
|
|
|
1780
1974
|
readonly completedAt?: string | Date | null | undefined;
|
|
1781
1975
|
} | null | undefined;
|
|
1782
1976
|
};
|
|
1977
|
+
type EvaluateActionsQueryVariables = Exact<{
|
|
1978
|
+
documentIdentifier: Scalars["String"]["input"];
|
|
1979
|
+
branch?: InputMaybe<Scalars["String"]["input"]>;
|
|
1980
|
+
candidates: ReadonlyArray<ActionCandidateInput>;
|
|
1981
|
+
}>;
|
|
1982
|
+
type EvaluateActionsQuery = {
|
|
1983
|
+
readonly evaluateActions: {
|
|
1984
|
+
readonly allAllowed: boolean;
|
|
1985
|
+
readonly anyAllowed: boolean;
|
|
1986
|
+
readonly allDenied: boolean;
|
|
1987
|
+
readonly anyDenied: boolean;
|
|
1988
|
+
readonly evaluations: ReadonlyArray<{
|
|
1989
|
+
readonly decision: AuthDecision;
|
|
1990
|
+
readonly reason?: string | null | undefined;
|
|
1991
|
+
}>;
|
|
1992
|
+
};
|
|
1993
|
+
};
|
|
1783
1994
|
type CreateDocumentMutationVariables = Exact<{
|
|
1784
1995
|
document: Scalars["JSONObject"]["input"];
|
|
1785
1996
|
parentIdentifier?: InputMaybe<Scalars["String"]["input"]>;
|
|
@@ -2039,6 +2250,7 @@ type PollSyncEnvelopesQuery = {
|
|
|
2039
2250
|
readonly hash: string;
|
|
2040
2251
|
readonly skip: number;
|
|
2041
2252
|
readonly error?: string | null | undefined;
|
|
2253
|
+
readonly deniedReason?: string | null | undefined;
|
|
2042
2254
|
readonly id?: string | null | undefined;
|
|
2043
2255
|
readonly action: {
|
|
2044
2256
|
readonly id: string;
|
|
@@ -2078,6 +2290,7 @@ type PollSyncEnvelopesQuery = {
|
|
|
2078
2290
|
readonly deadLetters: ReadonlyArray<{
|
|
2079
2291
|
readonly documentId: string;
|
|
2080
2292
|
readonly error: string;
|
|
2293
|
+
readonly errorType?: string | null | undefined;
|
|
2081
2294
|
}>;
|
|
2082
2295
|
};
|
|
2083
2296
|
};
|
|
@@ -2123,9 +2336,13 @@ type DirectiveResolverFn<TResult = Record<PropertyKey, never>, TParent = Record<
|
|
|
2123
2336
|
/** Mapping between all available schema types and the resolvers types */
|
|
2124
2337
|
type ResolversTypes = ResolversObject<{
|
|
2125
2338
|
Action: ResolverTypeWrapper<Action>;
|
|
2339
|
+
ActionCandidateInput: ActionCandidateInput;
|
|
2126
2340
|
ActionContext: ResolverTypeWrapper<ActionContext>;
|
|
2127
2341
|
ActionContextInput: ActionContextInput;
|
|
2342
|
+
ActionEvaluation: ResolverTypeWrapper<ActionEvaluation>;
|
|
2343
|
+
ActionEvaluations: ResolverTypeWrapper<ActionEvaluations>;
|
|
2128
2344
|
ActionInput: ActionInput;
|
|
2345
|
+
AuthDecision: AuthDecision;
|
|
2129
2346
|
Boolean: ResolverTypeWrapper<Scalars["Boolean"]["output"]>;
|
|
2130
2347
|
ChannelMeta: ResolverTypeWrapper<ChannelMeta>;
|
|
2131
2348
|
ChannelMetaInput: ChannelMetaInput;
|
|
@@ -2181,8 +2398,11 @@ type ResolversTypes = ResolversObject<{
|
|
|
2181
2398
|
/** Mapping between all available schema types and the resolvers parents */
|
|
2182
2399
|
type ResolversParentTypes = ResolversObject<{
|
|
2183
2400
|
Action: Action;
|
|
2401
|
+
ActionCandidateInput: ActionCandidateInput;
|
|
2184
2402
|
ActionContext: ActionContext;
|
|
2185
2403
|
ActionContextInput: ActionContextInput;
|
|
2404
|
+
ActionEvaluation: ActionEvaluation;
|
|
2405
|
+
ActionEvaluations: ActionEvaluations;
|
|
2186
2406
|
ActionInput: ActionInput;
|
|
2187
2407
|
Boolean: Scalars["Boolean"]["output"];
|
|
2188
2408
|
ChannelMeta: ChannelMeta;
|
|
@@ -2244,6 +2464,17 @@ type ActionResolvers<ContextType = Context, ParentType extends ResolversParentTy
|
|
|
2244
2464
|
type ActionContextResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ActionContext"] = ResolversParentTypes["ActionContext"]> = ResolversObject<{
|
|
2245
2465
|
signer?: Resolver<Maybe<ResolversTypes["ReactorSigner"]>, ParentType, ContextType>;
|
|
2246
2466
|
}>;
|
|
2467
|
+
type ActionEvaluationResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ActionEvaluation"] = ResolversParentTypes["ActionEvaluation"]> = ResolversObject<{
|
|
2468
|
+
decision?: Resolver<ResolversTypes["AuthDecision"], ParentType, ContextType>;
|
|
2469
|
+
reason?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
2470
|
+
}>;
|
|
2471
|
+
type ActionEvaluationsResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ActionEvaluations"] = ResolversParentTypes["ActionEvaluations"]> = ResolversObject<{
|
|
2472
|
+
allAllowed?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
|
|
2473
|
+
allDenied?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
|
|
2474
|
+
anyAllowed?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
|
|
2475
|
+
anyDenied?: Resolver<ResolversTypes["Boolean"], ParentType, ContextType>;
|
|
2476
|
+
evaluations?: Resolver<ReadonlyArray<ResolversTypes["ActionEvaluation"]>, ParentType, ContextType>;
|
|
2477
|
+
}>;
|
|
2247
2478
|
type ChannelMetaResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ChannelMeta"] = ResolversParentTypes["ChannelMeta"]> = ResolversObject<{
|
|
2248
2479
|
id?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
2249
2480
|
}>;
|
|
@@ -2254,6 +2485,7 @@ type DeadLetterInfoResolvers<ContextType = Context, ParentType extends Resolvers
|
|
|
2254
2485
|
branch?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
2255
2486
|
documentId?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
2256
2487
|
error?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
2488
|
+
errorType?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
2257
2489
|
jobId?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
2258
2490
|
operationCount?: Resolver<ResolversTypes["Int"], ParentType, ContextType>;
|
|
2259
2491
|
scopes?: Resolver<ReadonlyArray<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
@@ -2363,12 +2595,14 @@ type QueryResolvers<ContextType = Context, ParentType extends ResolversParentTyp
|
|
|
2363
2595
|
documentModels?: Resolver<ResolversTypes["DocumentModelResultPage"], ParentType, ContextType, Partial<QueryDocumentModelsArgs>>;
|
|
2364
2596
|
documentOperations?: Resolver<ResolversTypes["ReactorOperationResultPage"], ParentType, ContextType, RequireFields<QueryDocumentOperationsArgs, "filter">>;
|
|
2365
2597
|
documentOutgoingRelationships?: Resolver<ResolversTypes["PHDocumentResultPage"], ParentType, ContextType, RequireFields<QueryDocumentOutgoingRelationshipsArgs, "relationshipType" | "sourceIdentifier">>;
|
|
2598
|
+
evaluateActions?: Resolver<ResolversTypes["ActionEvaluations"], ParentType, ContextType, RequireFields<QueryEvaluateActionsArgs, "candidates" | "documentIdentifier">>;
|
|
2366
2599
|
findDocuments?: Resolver<ResolversTypes["PHDocumentResultPage"], ParentType, ContextType, Partial<QueryFindDocumentsArgs>>;
|
|
2367
2600
|
jobStatus?: Resolver<Maybe<ResolversTypes["JobInfo"]>, ParentType, ContextType, RequireFields<QueryJobStatusArgs, "jobId">>;
|
|
2368
2601
|
pollSyncEnvelopes?: Resolver<ResolversTypes["PollSyncEnvelopesResult"], ParentType, ContextType, RequireFields<QueryPollSyncEnvelopesArgs, "channelId" | "outboxAck" | "outboxLatest">>;
|
|
2369
2602
|
}>;
|
|
2370
2603
|
type ReactorOperationResolvers<ContextType = Context, ParentType extends ResolversParentTypes["ReactorOperation"] = ResolversParentTypes["ReactorOperation"]> = ResolversObject<{
|
|
2371
2604
|
action?: Resolver<ResolversTypes["Action"], ParentType, ContextType>;
|
|
2605
|
+
deniedReason?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
2372
2606
|
error?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
2373
2607
|
hash?: Resolver<ResolversTypes["String"], ParentType, ContextType>;
|
|
2374
2608
|
id?: Resolver<Maybe<ResolversTypes["String"]>, ParentType, ContextType>;
|
|
@@ -2425,6 +2659,8 @@ type TouchChannelResultResolvers<ContextType = Context, ParentType extends Resol
|
|
|
2425
2659
|
type Resolvers<ContextType = Context> = ResolversObject<{
|
|
2426
2660
|
Action?: ActionResolvers<ContextType>;
|
|
2427
2661
|
ActionContext?: ActionContextResolvers<ContextType>;
|
|
2662
|
+
ActionEvaluation?: ActionEvaluationResolvers<ContextType>;
|
|
2663
|
+
ActionEvaluations?: ActionEvaluationsResolvers<ContextType>;
|
|
2428
2664
|
ChannelMeta?: ChannelMetaResolvers<ContextType>;
|
|
2429
2665
|
DateTime?: GraphQLScalarType;
|
|
2430
2666
|
DeadLetterInfo?: DeadLetterInfoResolvers<ContextType>;
|
|
@@ -2459,9 +2695,11 @@ type Properties<T> = Required<{ [K in keyof T]: z$1.ZodType<T[K]> }>;
|
|
|
2459
2695
|
type definedNonNullAny = {};
|
|
2460
2696
|
declare const isDefinedNonNullAny: (v: any) => v is definedNonNullAny;
|
|
2461
2697
|
declare const definedNonNullAnySchema: z$1.ZodAny & z$1.ZodType<definedNonNullAny, any, z$1.core.$ZodTypeInternals<definedNonNullAny, any>>;
|
|
2698
|
+
declare const AuthDecisionSchema: z$1.ZodEnum<typeof AuthDecision>;
|
|
2462
2699
|
declare const DocumentChangeTypeSchema: z$1.ZodEnum<typeof DocumentChangeType>;
|
|
2463
2700
|
declare const PropagationModeSchema: z$1.ZodEnum<typeof PropagationMode>;
|
|
2464
2701
|
declare const SyncEnvelopeTypeSchema: z$1.ZodEnum<typeof SyncEnvelopeType>;
|
|
2702
|
+
declare function ActionCandidateInputSchema(): z$1.ZodObject<Properties<ActionCandidateInput>>;
|
|
2465
2703
|
declare function ActionContextInputSchema(): z$1.ZodObject<Properties<ActionContextInput>>;
|
|
2466
2704
|
declare function ActionInputSchema(): z$1.ZodObject<Properties<ActionInput>>;
|
|
2467
2705
|
declare function ChannelMetaInputSchema(): z$1.ZodObject<Properties<ChannelMetaInput>>;
|
|
@@ -2489,6 +2727,7 @@ declare const GetDocumentIncomingRelationshipsDocument: DocumentNode;
|
|
|
2489
2727
|
declare const FindDocumentsDocument: DocumentNode;
|
|
2490
2728
|
declare const GetDocumentOperationsDocument: DocumentNode;
|
|
2491
2729
|
declare const GetJobStatusDocument: DocumentNode;
|
|
2730
|
+
declare const EvaluateActionsDocument: DocumentNode;
|
|
2492
2731
|
declare const CreateDocumentDocument: DocumentNode;
|
|
2493
2732
|
declare const CreateEmptyDocumentDocument: DocumentNode;
|
|
2494
2733
|
declare const MutateDocumentDocument: DocumentNode;
|
|
@@ -2515,6 +2754,7 @@ declare function getSdk<C>(requester: Requester<C>): {
|
|
|
2515
2754
|
FindDocuments(variables?: FindDocumentsQueryVariables, options?: C): Promise<FindDocumentsQuery>;
|
|
2516
2755
|
GetDocumentOperations(variables: GetDocumentOperationsQueryVariables, options?: C): Promise<GetDocumentOperationsQuery>;
|
|
2517
2756
|
GetJobStatus(variables: GetJobStatusQueryVariables, options?: C): Promise<GetJobStatusQuery>;
|
|
2757
|
+
EvaluateActions(variables: EvaluateActionsQueryVariables, options?: C): Promise<EvaluateActionsQuery>;
|
|
2518
2758
|
CreateDocument(variables: CreateDocumentMutationVariables, options?: C): Promise<CreateDocumentMutation>;
|
|
2519
2759
|
CreateEmptyDocument(variables: CreateEmptyDocumentMutationVariables, options?: C): Promise<CreateEmptyDocumentMutation>;
|
|
2520
2760
|
MutateDocument(variables: MutateDocumentMutationVariables, options?: C): Promise<MutateDocumentMutation>;
|
|
@@ -2577,6 +2817,11 @@ declare function createReactorGraphQLClient(url: string, fetchImpl?: FetchLike,
|
|
|
2577
2817
|
GetJobStatus(variables: Exact<{
|
|
2578
2818
|
jobId: Scalars["String"]["input"];
|
|
2579
2819
|
}>, options?: {} | undefined): Promise<GetJobStatusQuery>;
|
|
2820
|
+
EvaluateActions(variables: Exact<{
|
|
2821
|
+
documentIdentifier: Scalars["String"]["input"];
|
|
2822
|
+
branch?: InputMaybe<Scalars["String"]["input"]>;
|
|
2823
|
+
candidates: ReadonlyArray<ActionCandidateInput>;
|
|
2824
|
+
}>, options?: {} | undefined): Promise<EvaluateActionsQuery>;
|
|
2580
2825
|
CreateDocument(variables: Exact<{
|
|
2581
2826
|
document: Scalars["JSONObject"]["input"];
|
|
2582
2827
|
parentIdentifier?: InputMaybe<Scalars["String"]["input"]>;
|
|
@@ -2708,6 +2953,7 @@ declare class ImportPackageLoader implements IPackageLoader {
|
|
|
2708
2953
|
private readonly logger;
|
|
2709
2954
|
readonly name = "ImportPackageLoader";
|
|
2710
2955
|
loadDocumentModels(identifier: string): Promise<DocumentModelModule[]>;
|
|
2956
|
+
loadUpgradeManifests(identifier: string): Promise<UpgradeManifest<readonly number[]>[]>;
|
|
2711
2957
|
loadSubgraphs(identifier: string): Promise<SubgraphClass$1[]>;
|
|
2712
2958
|
loadProcessors(identifier: string): Promise<ProcessorFactoryBuilder | null>;
|
|
2713
2959
|
}
|
|
@@ -2727,11 +2973,13 @@ declare class ImportPackageLoader implements IPackageLoader {
|
|
|
2727
2973
|
*/
|
|
2728
2974
|
declare function isExpectedLoaderMiss(error: unknown, pkg: string): boolean;
|
|
2729
2975
|
declare function getUniqueDocumentModels(...documentModels: readonly (readonly DocumentModelModule<any>[])[]): DocumentModelModule[];
|
|
2976
|
+
declare function getUniqueUpgradeManifests(...upgradeManifests: readonly (readonly UpgradeManifest<readonly number[]>[])[]): UpgradeManifest<readonly number[]>[];
|
|
2730
2977
|
declare class PackageManager implements IPackageManager {
|
|
2731
2978
|
protected options: IPackageManagerOptions;
|
|
2732
2979
|
private readonly logger;
|
|
2733
2980
|
private loaders;
|
|
2734
2981
|
private docModelsMap;
|
|
2982
|
+
private upgradeManifestsMap;
|
|
2735
2983
|
private subgraphsMap;
|
|
2736
2984
|
private processorMap;
|
|
2737
2985
|
private configWatcher;
|
|
@@ -2741,6 +2989,9 @@ declare class PackageManager implements IPackageManager {
|
|
|
2741
2989
|
init(): Promise<PackageManagerResult>;
|
|
2742
2990
|
private loadPackages;
|
|
2743
2991
|
private loadDocumentModels;
|
|
2992
|
+
/** Upgrade manifests currently loaded across all packages, one per type. */
|
|
2993
|
+
getUniqueUpgradeManifests(): UpgradeManifest<readonly number[]>[];
|
|
2994
|
+
private loadUpgradeManifests;
|
|
2744
2995
|
private loadSubgraphs;
|
|
2745
2996
|
private loadProcessors;
|
|
2746
2997
|
private maybeWarnAllLoadersFailed;
|
|
@@ -2830,14 +3081,28 @@ declare function assertSkipCredentialVerificationAllowed(authEnabled: boolean, s
|
|
|
2830
3081
|
interface ClientInitializerResult {
|
|
2831
3082
|
module: InProcessReactorClientModule;
|
|
2832
3083
|
reactorDriveClient?: IDriveClient;
|
|
3084
|
+
attachmentReferenceProjection?: AttachmentReferenceProjectionCapability;
|
|
3085
|
+
}
|
|
3086
|
+
interface ClientInitializerDependencies {
|
|
3087
|
+
attachmentReferenceWriter: IAttachmentReferenceWriter;
|
|
3088
|
+
/** Upgrade manifests exported by the loaded packages, one per type. */
|
|
3089
|
+
upgradeManifests: UpgradeManifest<readonly number[]>[];
|
|
2833
3090
|
}
|
|
2834
|
-
declare function initializeAndStartAPI(clientInitializer: (documentModels: DocumentModelModule[]) => Promise<ClientInitializerResult>, options: Options, processorApp: ProcessorApp): Promise<API & {
|
|
3091
|
+
declare function initializeAndStartAPI(clientInitializer: (documentModels: DocumentModelModule[], dependencies: ClientInitializerDependencies) => Promise<ClientInitializerResult>, options: Options, processorApp: ProcessorApp): Promise<API & {
|
|
2835
3092
|
client: IReactorClient;
|
|
2836
3093
|
syncManager: ISyncManager;
|
|
2837
3094
|
documentModelRegistry: IDocumentModelRegistry;
|
|
2838
3095
|
readiness: ReadinessGate;
|
|
3096
|
+
attachmentReferenceProjection: AttachmentReferenceProjectionCapability;
|
|
2839
3097
|
}>;
|
|
2840
3098
|
//#endregion
|
|
3099
|
+
//#region src/services/renown-credential-verifier.d.ts
|
|
3100
|
+
interface RenownCredentialVerifierConfig {
|
|
3101
|
+
renownUrl?: string;
|
|
3102
|
+
switchboardUrl?: string;
|
|
3103
|
+
}
|
|
3104
|
+
declare function createRenownCredentialVerifier(config?: RenownCredentialVerifierConfig): Promise<CredentialVerifier>;
|
|
3105
|
+
//#endregion
|
|
2841
3106
|
//#region src/utils/create-schema.d.ts
|
|
2842
3107
|
declare const buildSubgraphSchemaModule: (documentModels: DocumentModelModule[], resolvers: GraphQLResolverMap<Context$1>, typeDefs: DocumentNode) => GraphQLSchemaModule;
|
|
2843
3108
|
declare const createSchema: (documentModels: DocumentModelModule[], resolvers: GraphQLResolverMap<Context$1>, typeDefs: DocumentNode) => graphql.GraphQLSchema;
|
|
@@ -2871,5 +3136,5 @@ interface DocumentModelSchemaOptions {
|
|
|
2871
3136
|
*/
|
|
2872
3137
|
declare function generateDocumentModelSchema(documentModel: DocumentModelGlobalState$1, options?: DocumentModelSchemaOptions): DocumentNode;
|
|
2873
3138
|
//#endregion
|
|
2874
|
-
export { ADMIN_USERS, API, Action, ActionContext, ActionContextInput, ActionContextInputSchema, ActionContextResolvers, ActionInput, ActionInputSchema, ActionResolvers, AddRelationshipDocument, AddRelationshipMutation, AddRelationshipMutationVariables, AnalyticsSubgraph, AuthConfig, AuthContext, AuthFetchMiddleware, AuthService, AuthSubgraph, type AuthorizationConfig, AuthorizationPolicy, AuthorizedDocumentHandle, BaseSubgraph, type CanonicalDocumentId, ChannelMeta, ChannelMetaInput, ChannelMetaInputSchema, ChannelMetaResolvers, ClientInitializerResult, Context, CreateDocumentDocument, CreateDocumentMutation, CreateDocumentMutationVariables, CreateEmptyDocumentDocument, CreateEmptyDocumentMutation, CreateEmptyDocumentMutationVariables, DateTimeScalarConfig, DbClient, DeadLetterInfo, DeadLetterInfoResolvers, DeleteDocumentDocument, DeleteDocumentMutation, DeleteDocumentMutationVariables, DeleteDocumentsDocument, DeleteDocumentsMutation, DeleteDocumentsMutationVariables, DirectiveResolverFn, DocumentChangeContext, DocumentChangeContextResolvers, DocumentChangeEvent, DocumentChangeEventResolvers, DocumentChangeType, DocumentChangeTypeSchema, DocumentChangesDocument, DocumentChangesSubscription, DocumentChangesSubscriptionVariables, DocumentModelGlobalState, DocumentModelGlobalStateResolvers, DocumentModelResultPage, DocumentModelResultPageResolvers, DocumentModelSchemaOptions, DocumentOperationsFilterInput, DocumentOperationsFilterInputSchema, DocumentPermissionConfig, DocumentPermissionDatabase, DocumentPermissionEntry, DocumentPermissionLevel, DocumentPermissionService, DocumentPermissionTable, DocumentProtectionTable, DocumentWithChildren, DocumentWithChildrenResolvers, Exact, FetchHandler, FindDocumentsDocument, FindDocumentsQuery, FindDocumentsQueryVariables, GatewayAdapterType, GatewayContextFactory, GetDocumentDocument, GetDocumentIncomingRelationshipsDocument, GetDocumentIncomingRelationshipsQuery, GetDocumentIncomingRelationshipsQueryVariables, GetDocumentModelsDocument, GetDocumentModelsQuery, GetDocumentModelsQueryVariables, GetDocumentOperationsDocument, GetDocumentOperationsQuery, GetDocumentOperationsQueryVariables, GetDocumentOutgoingRelationshipsDocument, GetDocumentOutgoingRelationshipsQuery, GetDocumentOutgoingRelationshipsQueryVariables, GetDocumentQuery, GetDocumentQueryVariables, GetDocumentWithOperationsDocument, GetDocumentWithOperationsQuery, GetDocumentWithOperationsQueryVariables, GetJobStatusDocument, GetJobStatusQuery, GetJobStatusQueryVariables, GetParentIdsFn, GqlDocument, GqlDriveDocument, GqlOperation, GqlOperationContext, GqlSigner, GqlSignerApp, GqlSignerUser, GraphQLManager, GraphqlManagerFeatureFlags, HttpAdapterSetup, HttpAdapterType, HttpDocumentModelLoader, HttpPackageLoader, HttpPackageLoaderLogger, HttpPackageLoaderOptions, type IAuthorizationService, IGatewayAdapter, IHttpAdapter, type IPackageLoader, type IPackageLoaderOptions, IPackageStorage, IReactorProcessorHostModule, ISubgraph, ImportPackageLoader, InMemoryPackageStorage, Incremental, InputMaybe, InstallPackageResult, InstalledPackageInfo, IsTypeOfResolverFn, JobChangeEvent, JobChangeEventResolvers, JobChangesDocument, JobChangesSubscription, JobChangesSubscriptionVariables, JobInfo, JobInfoResolvers, JsonObjectScalarConfig, MakeEmpty, MakeMaybe, MakeOptional, Maybe, MoveRelationshipDocument, MoveRelationshipMutation, MoveRelationshipMutationVariables, MoveRelationshipResult, MoveRelationshipResultResolvers, MutateDocumentAsyncDocument, MutateDocumentAsyncMutation, MutateDocumentAsyncMutationVariables, MutateDocumentDocument, MutateDocumentMutation, MutateDocumentMutationVariables, Mutation, MutationAddRelationshipArgs, MutationCreateDocumentArgs, MutationCreateEmptyDocumentArgs, MutationDeleteDocumentArgs, MutationDeleteDocumentsArgs, MutationMoveRelationshipArgs, MutationMutateDocumentArgs, MutationMutateDocumentAsyncArgs, MutationPushSyncEnvelopesArgs, MutationRemoveRelationshipArgs, MutationRenameDocumentArgs, MutationResolvers, MutationSetPreferredEditorArgs, MutationTouchChannelArgs, NextResolverFn, OperationContext, OperationContextInput, OperationContextInputSchema, OperationContextResolvers, OperationInput, OperationInputSchema, OperationUserPermissionEntry, OperationUserPermissionTable, OperationWithContext, OperationWithContextInput, OperationWithContextInputSchema, OperationWithContextResolvers, OperationsFilterInput, OperationsFilterInputSchema, PackageManagementService, PackageManagementServiceOptions, PackageManager, PackagesSubgraph, type PackagesSubgraphArgs, PagingInput, PagingInputSchema, type ParsedDriveUrl, PgliteFactory, PhDocument, PhDocumentFieldsFragment, PhDocumentFieldsFragmentDoc, PhDocumentOperationsArgs, PhDocumentResolvers, PhDocumentResultPage, PhDocumentResultPageResolvers, PollSyncEnvelopesDocument, PollSyncEnvelopesQuery, PollSyncEnvelopesQueryVariables, PollSyncEnvelopesResult, PollSyncEnvelopesResultResolvers, Processor, ProcessorDriveFactory, ProcessorFactoryBuilder, PropagationMode, PropagationModeSchema, PushSyncEnvelopesDocument, PushSyncEnvelopesMutation, PushSyncEnvelopesMutationVariables, Query, QueryDocumentArgs, QueryDocumentIncomingRelationshipsArgs, QueryDocumentModelsArgs, QueryDocumentOperationsArgs, QueryDocumentOutgoingRelationshipsArgs, QueryFindDocumentsArgs, QueryJobStatusArgs, QueryPollSyncEnvelopesArgs, QueryResolvers, ReactorModule, ReactorOperation, ReactorOperationResolvers, ReactorOperationResultPage, ReactorOperationResultPageResolvers, ReactorSigner, ReactorSignerApp, ReactorSignerAppInput, ReactorSignerAppInputSchema, ReactorSignerAppResolvers, ReactorSignerInput, ReactorSignerInputSchema, ReactorSignerResolvers, ReactorSignerUser, ReactorSignerUserInput, ReactorSignerUserInputSchema, ReactorSignerUserResolvers, ReactorSubgraph, ReadinessGate, RemoteCursor, RemoteCursorInput, RemoteCursorInputSchema, RemoteCursorResolvers, RemoteFilterInput, RemoteFilterInputSchema, RemoveRelationshipDocument, RemoveRelationshipMutation, RemoveRelationshipMutationVariables, RenameDocumentDocument, RenameDocumentMutation, RenameDocumentMutationVariables, Requester, RequireFields, Resolver, ResolverFn, ResolverTypeWrapper, ResolverWithResolve, Resolvers, ResolversObject, ResolversParentTypes, ResolversTypes, Revision, RevisionResolvers, Scalars, Sdk, SearchFilterInput, SearchFilterInputSchema, SetPreferredEditorDocument, SetPreferredEditorMutation, SetPreferredEditorMutationVariables, SubgraphArgs, SubgraphClass, SubgraphDefinition, Subscription, SubscriptionDocumentChangesArgs, SubscriptionJobChangesArgs, SubscriptionObject, SubscriptionResolveFn, SubscriptionResolver, SubscriptionResolverObject, SubscriptionResolvers, SubscriptionSubscribeFn, SubscriptionSubscriberObject, SyncEnvelope, SyncEnvelopeInput, SyncEnvelopeInputSchema, SyncEnvelopeResolvers, SyncEnvelopeType, SyncEnvelopeTypeSchema, SystemSubgraph, TlsOptions, TouchChannelDocument, TouchChannelInput, TouchChannelInputSchema, TouchChannelMutation, TouchChannelMutationVariables, TouchChannelResult, TouchChannelResultResolvers, TypeResolveFn, User, ViewFilterInput, ViewFilterInputSchema, WithIndex, WsContextFactory, WsDisposer, assertAuthRequiredForDocumentPermissions, assertSkipCredentialVerificationAllowed, buildGraphQlDocument, buildGraphQlDriveDocument, buildGraphqlOperation, buildGraphqlOperations, buildSubgraphSchemaModule, createAuthFetchMiddleware, createGatewayAdapter, createHttpAdapter, createMergedSchema, createReactorGraphQLClient, createSchema, definedNonNullAnySchema, driveIdFromUrl, extractSubgraphsFromModule, generateDocumentModelSchema, getAuthContext, getDbClient, getDocumentModelSchemaName, getDocumentModelTypeDefs, getGitHash, getGitUrl, getSdk, getUniqueDocumentModels, getVersion, initAnalyticsStoreSql, initializeAndStartAPI, isDefinedNonNullAny, isExpectedLoaderMiss, isSubgraphClass, parseDriveUrl, renderGraphqlPlayground };
|
|
3139
|
+
export { ADMIN_USERS, API, Action, ActionCandidateInput, ActionCandidateInputSchema, ActionContext, ActionContextInput, ActionContextInputSchema, ActionContextResolvers, ActionEvaluation, ActionEvaluationResolvers, ActionEvaluations, ActionEvaluationsResolvers, ActionInput, ActionInputSchema, ActionResolvers, AddRelationshipDocument, AddRelationshipMutation, AddRelationshipMutationVariables, AnalyticsSubgraph, AttachmentAccessRequest, AttachmentAccessResult, AttachmentAccessService, type AttachmentReferenceProjectionCapability, AuthConfig, AuthContext, AuthDecision, AuthDecisionSchema, AuthFetchMiddleware, AuthService, AuthSubgraph, type AuthorizationConfig, AuthorizationPolicy, AuthorizedDocumentHandle, BaseSubgraph, type CanonicalDocumentId, CanonicalDocumentIdResolutionError, CanonicalDocumentIdResolver, ChannelMeta, ChannelMetaInput, ChannelMetaInputSchema, ChannelMetaResolvers, ClientInitializerDependencies, ClientInitializerResult, Context, CreateDocumentDocument, CreateDocumentMutation, CreateDocumentMutationVariables, CreateEmptyDocumentDocument, CreateEmptyDocumentMutation, CreateEmptyDocumentMutationVariables, CredentialVerifier, DateTimeScalarConfig, DbClient, DeadLetterInfo, DeadLetterInfoResolvers, DeleteDocumentDocument, DeleteDocumentMutation, DeleteDocumentMutationVariables, DeleteDocumentsDocument, DeleteDocumentsMutation, DeleteDocumentsMutationVariables, DirectiveResolverFn, DocumentChangeContext, DocumentChangeContextResolvers, DocumentChangeEvent, DocumentChangeEventResolvers, DocumentChangeType, DocumentChangeTypeSchema, DocumentChangesDocument, DocumentChangesSubscription, DocumentChangesSubscriptionVariables, DocumentModelGlobalState, DocumentModelGlobalStateResolvers, DocumentModelResultPage, DocumentModelResultPageResolvers, DocumentModelSchemaOptions, DocumentOperationsFilterInput, DocumentOperationsFilterInputSchema, DocumentPermissionConfig, DocumentPermissionDatabase, DocumentPermissionEntry, DocumentPermissionLevel, DocumentPermissionService, DocumentPermissionTable, DocumentProtectionTable, DocumentWithChildren, DocumentWithChildrenResolvers, EvaluateActionsDocument, EvaluateActionsQuery, EvaluateActionsQueryVariables, Exact, FetchHandler, FindDocumentsDocument, FindDocumentsQuery, FindDocumentsQueryVariables, GatewayAdapterType, GatewayContextFactory, GetDocumentDocument, GetDocumentIncomingRelationshipsDocument, GetDocumentIncomingRelationshipsQuery, GetDocumentIncomingRelationshipsQueryVariables, GetDocumentModelsDocument, GetDocumentModelsQuery, GetDocumentModelsQueryVariables, GetDocumentOperationsDocument, GetDocumentOperationsQuery, GetDocumentOperationsQueryVariables, GetDocumentOutgoingRelationshipsDocument, GetDocumentOutgoingRelationshipsQuery, GetDocumentOutgoingRelationshipsQueryVariables, GetDocumentQuery, GetDocumentQueryVariables, GetDocumentWithOperationsDocument, GetDocumentWithOperationsQuery, GetDocumentWithOperationsQueryVariables, GetJobStatusDocument, GetJobStatusQuery, GetJobStatusQueryVariables, GetParentIdsFn, GqlDocument, GqlDriveDocument, GqlOperation, GqlOperationContext, GqlSigner, GqlSignerApp, GqlSignerUser, GraphQLManager, GraphqlManagerFeatureFlags, HttpAdapterSetup, HttpAdapterType, HttpDocumentModelLoader, HttpPackageLoader, HttpPackageLoaderLogger, HttpPackageLoaderOptions, IAttachmentAccessService, type IAuthorizationService, IGatewayAdapter, IHttpAdapter, type IPackageLoader, type IPackageLoaderOptions, IPackageStorage, IReactorProcessorHostModule, ISubgraph, ImportPackageLoader, InMemoryPackageStorage, Incremental, InputMaybe, InstallPackageResult, InstalledPackageInfo, IsTypeOfResolverFn, JobChangeEvent, JobChangeEventResolvers, JobChangesDocument, JobChangesSubscription, JobChangesSubscriptionVariables, JobInfo, JobInfoResolvers, JsonObjectScalarConfig, MakeEmpty, MakeMaybe, MakeOptional, Maybe, MoveRelationshipDocument, MoveRelationshipMutation, MoveRelationshipMutationVariables, MoveRelationshipResult, MoveRelationshipResultResolvers, MutateDocumentAsyncDocument, MutateDocumentAsyncMutation, MutateDocumentAsyncMutationVariables, MutateDocumentDocument, MutateDocumentMutation, MutateDocumentMutationVariables, Mutation, MutationAddRelationshipArgs, MutationCreateDocumentArgs, MutationCreateEmptyDocumentArgs, MutationDeleteDocumentArgs, MutationDeleteDocumentsArgs, MutationMoveRelationshipArgs, MutationMutateDocumentArgs, MutationMutateDocumentAsyncArgs, MutationPushSyncEnvelopesArgs, MutationRemoveRelationshipArgs, MutationRenameDocumentArgs, MutationResolvers, MutationSetPreferredEditorArgs, MutationTouchChannelArgs, NextResolverFn, OperationContext, OperationContextInput, OperationContextInputSchema, OperationContextResolvers, OperationInput, OperationInputSchema, OperationUserPermissionEntry, OperationUserPermissionTable, OperationWithContext, OperationWithContextInput, OperationWithContextInputSchema, OperationWithContextResolvers, OperationsFilterInput, OperationsFilterInputSchema, PackageManagementService, PackageManagementServiceOptions, PackageManager, PackagesSubgraph, type PackagesSubgraphArgs, PagingInput, PagingInputSchema, type ParsedDriveUrl, PgliteFactory, PhDocument, PhDocumentFieldsFragment, PhDocumentFieldsFragmentDoc, PhDocumentOperationsArgs, PhDocumentResolvers, PhDocumentResultPage, PhDocumentResultPageResolvers, PollSyncEnvelopesDocument, PollSyncEnvelopesQuery, PollSyncEnvelopesQueryVariables, PollSyncEnvelopesResult, PollSyncEnvelopesResultResolvers, Processor, ProcessorDriveFactory, ProcessorFactoryBuilder, PropagationMode, PropagationModeSchema, PushSyncEnvelopesDocument, PushSyncEnvelopesMutation, PushSyncEnvelopesMutationVariables, Query, QueryDocumentArgs, QueryDocumentIncomingRelationshipsArgs, QueryDocumentModelsArgs, QueryDocumentOperationsArgs, QueryDocumentOutgoingRelationshipsArgs, QueryEvaluateActionsArgs, QueryFindDocumentsArgs, QueryJobStatusArgs, QueryPollSyncEnvelopesArgs, QueryResolvers, ReactorModule, ReactorOperation, ReactorOperationResolvers, ReactorOperationResultPage, ReactorOperationResultPageResolvers, ReactorSigner, ReactorSignerApp, ReactorSignerAppInput, ReactorSignerAppInputSchema, ReactorSignerAppResolvers, ReactorSignerInput, ReactorSignerInputSchema, ReactorSignerResolvers, ReactorSignerUser, ReactorSignerUserInput, ReactorSignerUserInputSchema, ReactorSignerUserResolvers, ReactorSubgraph, ReadinessGate, RemoteCursor, RemoteCursorInput, RemoteCursorInputSchema, RemoteCursorResolvers, RemoteFilterInput, RemoteFilterInputSchema, RemoveRelationshipDocument, RemoveRelationshipMutation, RemoveRelationshipMutationVariables, RenameDocumentDocument, RenameDocumentMutation, RenameDocumentMutationVariables, RenownCredentialVerifierConfig, Requester, RequireFields, Resolver, ResolverFn, ResolverTypeWrapper, ResolverWithResolve, Resolvers, ResolversObject, ResolversParentTypes, ResolversTypes, Revision, RevisionResolvers, Scalars, Sdk, SearchFilterInput, SearchFilterInputSchema, SetPreferredEditorDocument, SetPreferredEditorMutation, SetPreferredEditorMutationVariables, SubgraphArgs, SubgraphClass, SubgraphDefinition, Subscription, SubscriptionDocumentChangesArgs, SubscriptionJobChangesArgs, SubscriptionObject, SubscriptionResolveFn, SubscriptionResolver, SubscriptionResolverObject, SubscriptionResolvers, SubscriptionSubscribeFn, SubscriptionSubscriberObject, SyncEnvelope, SyncEnvelopeInput, SyncEnvelopeInputSchema, SyncEnvelopeResolvers, SyncEnvelopeType, SyncEnvelopeTypeSchema, SystemSubgraph, TlsOptions, TouchChannelDocument, TouchChannelInput, TouchChannelInputSchema, TouchChannelMutation, TouchChannelMutationVariables, TouchChannelResult, TouchChannelResultResolvers, TypeResolveFn, User, ViewFilterInput, ViewFilterInputSchema, WithIndex, WsContextFactory, WsDisposer, assertAuthRequiredForDocumentPermissions, assertSkipCredentialVerificationAllowed, buildGraphQlDocument, buildGraphQlDriveDocument, buildGraphqlOperation, buildGraphqlOperations, buildSubgraphSchemaModule, createAuthFetchMiddleware, createCanonicalDocumentIdResolver, createGatewayAdapter, createHttpAdapter, createMergedSchema, createReactorGraphQLClient, createRenownCredentialVerifier, createSchema, definedNonNullAnySchema, driveIdFromUrl, extractSubgraphsFromModule, generateDocumentModelSchema, getAuthContext, getDbClient, getDocumentModelSchemaName, getDocumentModelTypeDefs, getGitHash, getGitUrl, getSdk, getUniqueDocumentModels, getUniqueUpgradeManifests, getVersion, initAnalyticsStoreSql, initializeAndStartAPI, isDefinedNonNullAny, isExpectedLoaderMiss, isSubgraphClass, parseDriveUrl, renderGraphqlPlayground };
|
|
2875
3140
|
//# sourceMappingURL=index.d.mts.map
|