@powerhousedao/shared 6.2.3-dev.86 → 6.2.3-dev.88
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/clis/build-pieces.d.mts +1 -1
- package/dist/clis/constants.d.mts +1 -1
- package/dist/clis/index.d.mts +37 -2
- package/dist/clis/index.d.mts.map +1 -1
- package/dist/clis/index.mjs +15 -2
- package/dist/clis/index.mjs.map +1 -1
- package/dist/clis/{types-Cu2NW3TI.d.mts → types-ByIjNbGg.d.mts} +36 -2
- package/dist/clis/{types-Cu2NW3TI.d.mts.map → types-ByIjNbGg.d.mts.map} +1 -1
- package/dist/connect/config-loader.d.ts +1 -1
- package/dist/connect/connect-config-schema.d.ts +2 -2
- package/dist/connect/connect-config-schema.js +16 -3
- package/dist/connect/connect-config-schema.js.map +1 -1
- package/dist/connect/index.d.ts +3 -3
- package/dist/connect/index.js +2 -2
- package/dist/{connect-config-schema-c39dvEne.d.ts → connect-config-schema-LzQbfZHm.d.ts} +37 -3
- package/dist/{connect-config-schema-c39dvEne.d.ts.map → connect-config-schema-LzQbfZHm.d.ts.map} +1 -1
- package/dist/document-drive/index.d.ts +3 -3
- package/dist/document-drive/index.js +1 -1
- package/dist/document-model/dispatch.d.ts +1 -1
- package/dist/document-model/errors.d.ts +2 -2
- package/dist/document-model/errors.js +49 -1
- package/dist/document-model/errors.js.map +1 -1
- package/dist/document-model/index.d.ts +2 -3
- package/dist/document-model/index.js +5 -5
- package/dist/document-model/utils.d.ts +2 -2
- package/dist/document-model/utils.js +2 -2
- package/dist/{document-model-CMyP_XZ8.js → document-model-B98EymhI.js} +927 -402
- package/dist/document-model-B98EymhI.js.map +1 -0
- package/dist/{index-Dl4JuIBh.d.ts → index-59YGevDz.d.ts} +2 -2
- package/dist/{index-Dl4JuIBh.d.ts.map → index-59YGevDz.d.ts.map} +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/processors/index.d.ts +1 -1
- package/dist/processors/index.js +1 -1
- package/dist/processors/testing.d.ts +1 -1
- package/dist/{purge-YMJM0Vl7.js → purge-BOqSpe4O.js} +224 -6
- package/dist/purge-BOqSpe4O.js.map +1 -0
- package/dist/registry/index.d.ts +2 -2
- package/dist/registry/manifest-slim.d.ts +2 -2
- package/dist/{types-BbovaqKc.d.ts → types-D1ToC1mB.d.ts} +518 -124
- package/dist/types-D1ToC1mB.d.ts.map +1 -0
- package/dist/{types-nQBneHs2.d.ts → types-DRj0sF2w.d.ts} +2 -2
- package/dist/{types-nQBneHs2.d.ts.map → types-DRj0sF2w.d.ts.map} +1 -1
- package/dist/{utils-CSF716ux.js → utils-DiV32YIj.js} +45 -2
- package/dist/utils-DiV32YIj.js.map +1 -0
- package/package.json +1 -1
- package/dist/document-model-CMyP_XZ8.js.map +0 -1
- package/dist/purge-YMJM0Vl7.js.map +0 -1
- package/dist/types-BbovaqKc.d.ts.map +0 -1
- package/dist/utils-BrKxCmKx.d.ts +0 -18
- package/dist/utils-BrKxCmKx.d.ts.map +0 -1
- package/dist/utils-CSF716ux.js.map +0 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { f as IAnalyticsStore } from "./types-Bsp8VL2y.js";
|
|
2
|
-
import { $ as
|
|
3
|
-
import "./utils-BrKxCmKx.js";
|
|
2
|
+
import { $ as connectRuntimePwaSchema, A as connectPackagesSchema, B as connectReactorSchema, C as connectExplorerIconsSchema, D as connectLengthSchema, F as connectPwaRuntimeCachingSchema, G as connectRenownSchema, H as connectRenownAdaptersSchema, J as connectRuntimeDefaultDriveRemoteSchema, K as connectRouterSettingsSchema, L as connectPwaUrlPatternSchema, M as connectPwaFileHandlerSchema, N as connectPwaIconSchema, O as connectLoaderSchema, Q as connectRuntimePwaManifestSchema, R as connectReactorClientModeSchema, S as connectEdgesSchema, T as connectImageRefSchema, U as connectRenownPrivyAdapterSchema, V as connectRemoteBackendSchema, W as connectRenownRainbowAdapterSchema, Y as connectRuntimeDefaultDriveSchema, Z as connectRuntimeInstanceSchema, _ as connectDefaultDriveSchema, a as connectAiSchema, b as connectDriveSectionsSchema, c as connectBackgroundLayersSchema, d as connectCollectionSchema, et as connectSchemedColorSchema, f as connectCompositionEntrySchema, g as connectDefaultDriveRemoteSchema, h as connectDefaultDriveLocalSchema, j as connectPwaCacheStrategySchema, k as connectOpenPanelSchema, l as connectBackgroundSchema, nt as connectSentrySchema, o as connectAppSchema, q as connectRuntimeConfigSchema, rt as connect_config_schema_d_exports, s as connectBackgroundLayerSchema, tt as connectSchemedImageSchema, u as connectBrandingSchema, w as connectHomeSchema, x as connectDrivesSchema, y as connectDriveSectionSchema, z as connectReactorFeatureFlagsSchema } from "./connect-config-schema-LzQbfZHm.js";
|
|
4
3
|
import { ZodIssue, ZodRawShape, z } from "zod";
|
|
5
4
|
import { Draft } from "mutative";
|
|
6
5
|
import { Kysely, QueryCreator } from "kysely";
|
|
@@ -255,6 +254,12 @@ type OperationWithContext$1 = {
|
|
|
255
254
|
context: OperationContext;
|
|
256
255
|
};
|
|
257
256
|
//#endregion
|
|
257
|
+
//#region document-model/operation-order.d.ts
|
|
258
|
+
declare function isDocumentAction(action: Action): action is DocumentAction;
|
|
259
|
+
declare function garbageCollect<TOpIndex extends OperationIndex>(sortedOperations: TOpIndex[]): TOpIndex[];
|
|
260
|
+
declare function sortOperations<TOpIndex extends OperationIndex>(operations: TOpIndex[]): TOpIndex[];
|
|
261
|
+
declare function nextSkipNumber(sortedOperations: OperationIndex[]): number;
|
|
262
|
+
//#endregion
|
|
258
263
|
//#region document-model/signature-policy.d.ts
|
|
259
264
|
/** The `protocolVersions` key that fixes a document's signature requirement. */
|
|
260
265
|
declare const SIGNATURE_PROTOCOL = "signature";
|
|
@@ -272,7 +277,7 @@ type ProtocolVersions = {
|
|
|
272
277
|
declare function signaturePolicyOf(source: {
|
|
273
278
|
protocolVersions?: ProtocolVersions | null;
|
|
274
279
|
} | ProtocolVersions | null | undefined): SignaturePolicy$1;
|
|
275
|
-
/** `protocolVersions` for a new v2-required document
|
|
280
|
+
/** `protocolVersions` for a new v2-required document, over `base`. */
|
|
276
281
|
declare function v2RequiredProtocolVersions(base?: ProtocolVersions): ProtocolVersions;
|
|
277
282
|
/**
|
|
278
283
|
* The policy a create call asks for: `signaturePolicy`, else the `signature`
|
|
@@ -576,7 +581,6 @@ declare function isNoopOperation<TOp extends {
|
|
|
576
581
|
}>(op: Partial<TOp>): boolean;
|
|
577
582
|
declare function isUndoRedo(action: Action): action is UndoRedoAction;
|
|
578
583
|
declare function isUndo(action: Action): action is UndoAction;
|
|
579
|
-
declare function isDocumentAction(action: Action): action is DocumentAction;
|
|
580
584
|
/**
|
|
581
585
|
* Creates a new document. When `documentType` is given the header is stamped
|
|
582
586
|
* with it and the document-scope operations are seeded. Without
|
|
@@ -628,14 +632,6 @@ declare function mapSkippedOperationsV2(operations: Operation[]): MappedOperatio
|
|
|
628
632
|
* Uses the V2 model where consecutive NOOPs form chains.
|
|
629
633
|
* Unlike V1 garbageCollect, this preserves ALL operations but marks which to apply.
|
|
630
634
|
*/
|
|
631
|
-
/**
|
|
632
|
-
* The base-reducer protocol version a document is written against. Every
|
|
633
|
-
* document carries one, set from the CREATE_DOCUMENT input. A header without
|
|
634
|
-
* one was built outside that path, and choosing a version on its behalf would
|
|
635
|
-
* replay the document through a reducer it was not written for, so it is an
|
|
636
|
-
* error rather than a default.
|
|
637
|
-
*/
|
|
638
|
-
declare function baseReducerVersion(header: PHDocumentHeader): number;
|
|
639
635
|
declare function garbageCollectV2<TOpIndex extends OperationIndex>(sortedOperations: TOpIndex[]): TOpIndex[];
|
|
640
636
|
declare function sortMappedOperations(operations: DocumentOperationsIgnoreMap): MappedOperation[];
|
|
641
637
|
/**
|
|
@@ -646,6 +642,11 @@ declare function sortMappedOperations(operations: DocumentOperationsIgnoreMap):
|
|
|
646
642
|
* that is walking one stream and does not want to trust the action's copy.
|
|
647
643
|
*/
|
|
648
644
|
declare function appendWithoutApplying<TState extends PHBaseState>(document: PHDocument$1<TState>, operation: Operation, scope?: string): PHDocument$1<TState>;
|
|
645
|
+
/** The state reducer base-reducer 3 derives with; throws when `reducer` wraps none. */
|
|
646
|
+
declare function requireStateReducer<TState extends PHBaseState = PHBaseState>(reducer: Reducer<TState>, documentType: string, version?: number): StateReducer<TState>;
|
|
647
|
+
/** Rejects the index gaps the reducer rejects when it appends a replayed row. */
|
|
648
|
+
declare function assertReplayIndices(operations: readonly Operation[]): void;
|
|
649
|
+
declare function appendRows<TState extends PHBaseState>(document: PHDocument$1<TState>, scope: string, rows: readonly Operation[]): PHDocument$1<TState>;
|
|
649
650
|
declare function replayDocument<TState extends PHBaseState = PHBaseState>(initialState: TState, operations: DocumentOperations, reducer: Reducer<TState>, header: PHDocumentHeader, dispatch?: SignalDispatch, skipHeaderOperations?: SkipHeaderOperations, options?: ReplayDocumentOptions): PHDocument$1<TState>;
|
|
650
651
|
declare function parseResultingState<TState>(state: string | null | undefined): TState;
|
|
651
652
|
declare enum IntegrityIssueType {
|
|
@@ -663,9 +664,7 @@ type IntegrityIssue = {
|
|
|
663
664
|
};
|
|
664
665
|
type Reshuffle = (startIndex: OperationIndex, opsA: Operation[], opsB: Operation[]) => Operation[];
|
|
665
666
|
declare function checkCleanedOperationsIntegrity(sortedOperations: OperationIndex[]): IntegrityIssue[];
|
|
666
|
-
declare function garbageCollect<TOpIndex extends OperationIndex>(sortedOperations: TOpIndex[]): TOpIndex[];
|
|
667
667
|
declare function addUndo(sortedOperations: Operation[]): Operation[];
|
|
668
|
-
declare function sortOperations<TOpIndex extends OperationIndex>(operations: TOpIndex[]): TOpIndex[];
|
|
669
668
|
declare function reshuffleByTimestamp<TOp extends OperationIndex>(startIndex: OperationIndex, opsA: TOp[], opsB: TOp[]): TOp[];
|
|
670
669
|
declare function reshuffleByTimestampAndIndex<TOp extends OperationIndex>(startIndex: OperationIndex, opsA: TOp[], opsB: TOp[]): TOp[];
|
|
671
670
|
declare function operationsAreEqual<TOp extends {
|
|
@@ -679,7 +678,6 @@ declare function attachBranch(trunk: Operation[], newBranch: Operation[]): [Oper
|
|
|
679
678
|
declare function precedes(op1: OperationIndex, op2: OperationIndex): boolean;
|
|
680
679
|
declare function split(sortedTargetOperations: Operation[], sortedMergeOperations: Operation[]): [Operation[], Operation[], Operation[]];
|
|
681
680
|
declare function merge(sortedTargetOperations: Operation[], sortedMergeOperations: Operation[], reshuffle: Reshuffle): Operation[];
|
|
682
|
-
declare function nextSkipNumber(sortedOperations: OperationIndex[]): number;
|
|
683
681
|
declare function checkOperationsIntegrity(operations: Operation[]): IntegrityIssue[];
|
|
684
682
|
declare function groupOperationsByScope(operations: Operation[]): Partial<Record<string, Operation[]>>;
|
|
685
683
|
type PrepareOperationsResult = {
|
|
@@ -764,6 +762,12 @@ declare const undo: (count?: number, scope?: string) => UndoAction;
|
|
|
764
762
|
*/
|
|
765
763
|
declare const redo: (count?: number, scope?: string) => RedoAction;
|
|
766
764
|
declare const noop: (scope?: string) => NOOPAction;
|
|
765
|
+
/**
|
|
766
|
+
* Retracts the action with id `target` on base-reducer 3.
|
|
767
|
+
*
|
|
768
|
+
* @category Actions
|
|
769
|
+
*/
|
|
770
|
+
declare const retract: (target: string, scope?: string) => RetractAction;
|
|
767
771
|
/**
|
|
768
772
|
* Helper function to be used by action creators.
|
|
769
773
|
*
|
|
@@ -1391,6 +1395,265 @@ declare function evaluateGrantStack(grants: Grant[], subject: AuthSubject, reque
|
|
|
1391
1395
|
*/
|
|
1392
1396
|
declare function evaluateGrants(grants: Grant[], subject: AuthSubject, request: AuthRequest, groups?: AuthGroups, conditions?: ConditionContext): AuthDecision;
|
|
1393
1397
|
//#endregion
|
|
1398
|
+
//#region document-model/peer-agreement.d.ts
|
|
1399
|
+
/** The reactor feature flags a capability's support is a function of. */
|
|
1400
|
+
type PeerCapabilityFlags = {
|
|
1401
|
+
readonly undoV3?: boolean;
|
|
1402
|
+
readonly [flag: string]: boolean | undefined;
|
|
1403
|
+
};
|
|
1404
|
+
/** A document protocol, named by its `protocolVersions` key. */
|
|
1405
|
+
type ProtocolCapability = {
|
|
1406
|
+
kind: "protocol";
|
|
1407
|
+
name: string;
|
|
1408
|
+
/** What a peer that announces nothing is assumed to support. */
|
|
1409
|
+
baseline: readonly number[];
|
|
1410
|
+
supported(flags: PeerCapabilityFlags): readonly number[];
|
|
1411
|
+
/** The version new documents take when peers agree. Absent: not negotiated. */
|
|
1412
|
+
preferred?(flags: PeerCapabilityFlags): number;
|
|
1413
|
+
/** Who chooses a new document's version, given the creator's preference; absent: "agreed". */
|
|
1414
|
+
selection?: ProtocolSelectionRule | ((preferred: number) => ProtocolSelectionRule);
|
|
1415
|
+
/** A header may omit the key. */
|
|
1416
|
+
optional: boolean;
|
|
1417
|
+
};
|
|
1418
|
+
/**
|
|
1419
|
+
* "agreed": the creator's preference narrowed to what every member supports.
|
|
1420
|
+
* "creator": the creator's preference; a member that cannot run it is held.
|
|
1421
|
+
*/
|
|
1422
|
+
type ProtocolSelectionRule = "agreed" | "creator";
|
|
1423
|
+
/** A feature that changes what a peer sends or expects on the wire. */
|
|
1424
|
+
type FeatureCapability = {
|
|
1425
|
+
kind: "feature";
|
|
1426
|
+
name: string;
|
|
1427
|
+
baseline: readonly number[];
|
|
1428
|
+
supported(flags: PeerCapabilityFlags): readonly number[];
|
|
1429
|
+
};
|
|
1430
|
+
type PeerCapability = ProtocolCapability | FeatureCapability;
|
|
1431
|
+
/** A purged document's protocol; never preferred, so creation never selects it. */
|
|
1432
|
+
declare const DOCUMENT_PURGE_PROTOCOL = "document-purge";
|
|
1433
|
+
/** A peer that takes refusals of polled purge markers on the poll. */
|
|
1434
|
+
declare const MARKER_REFUSAL_FEATURE = "marker-refusal";
|
|
1435
|
+
declare const PEER_CAPABILITIES: readonly PeerCapability[];
|
|
1436
|
+
/** `base-reducer`'s preference with no reactor flags, which shared never holds. */
|
|
1437
|
+
declare const FLAGLESS_BASE_REDUCER_VERSION: number;
|
|
1438
|
+
/** `base` plus `extra`; an extra replaces a base entry of the same name. */
|
|
1439
|
+
declare function mergePeerCapabilities(base: readonly PeerCapability[], extra: readonly PeerCapability[]): PeerCapability[];
|
|
1440
|
+
declare const PEER_MANIFEST_FORMAT = 1;
|
|
1441
|
+
type Supports = {
|
|
1442
|
+
protocols: {
|
|
1443
|
+
[protocol: string]: readonly number[];
|
|
1444
|
+
};
|
|
1445
|
+
features: {
|
|
1446
|
+
[feature: string]: readonly number[];
|
|
1447
|
+
};
|
|
1448
|
+
};
|
|
1449
|
+
type PeerManifest = Supports & {
|
|
1450
|
+
format: 1;
|
|
1451
|
+
/** The signer's did:key, when configured; informational. */
|
|
1452
|
+
appKey?: string;
|
|
1453
|
+
/** Grows with every start of the reactor; a peer ignores an older one. */
|
|
1454
|
+
sequence: number;
|
|
1455
|
+
/** base64url(sha256(canonicalJson(Supports & { sequence }))) */
|
|
1456
|
+
revision: string;
|
|
1457
|
+
};
|
|
1458
|
+
/** What this reactor supports, for every capability it registers. */
|
|
1459
|
+
declare function localSupports(capabilities: readonly PeerCapability[], flags: PeerCapabilityFlags): Supports;
|
|
1460
|
+
/** What a peer that announces nothing supports. */
|
|
1461
|
+
declare function legacySupports(capabilities: readonly PeerCapability[]): Supports;
|
|
1462
|
+
declare function manifestRevision(supports: Supports, sequence?: number): string;
|
|
1463
|
+
declare function localPeerManifest(capabilities: readonly PeerCapability[], flags: PeerCapabilityFlags, appKey?: string, sequence?: number): PeerManifest;
|
|
1464
|
+
/** A manifest sent before the one already held; silence carries no sequence. */
|
|
1465
|
+
declare function isOlderManifest(next: PeerManifest | null, held: PeerManifest | null | undefined): boolean;
|
|
1466
|
+
/** A peer's manifest, or the baselines for a peer that announced none. */
|
|
1467
|
+
declare function peerSupports(manifest: PeerManifest | null, capabilities: readonly PeerCapability[]): Supports;
|
|
1468
|
+
/**
|
|
1469
|
+
* A manifest as received from a peer, or null when it is not one. Formats only
|
|
1470
|
+
* add fields, so one of an unknown format is read as its two maps.
|
|
1471
|
+
*/
|
|
1472
|
+
declare function readPeerManifest(value: unknown): PeerManifest | null;
|
|
1473
|
+
/** Why a document may not go to a peer. */
|
|
1474
|
+
type HoldReason = {
|
|
1475
|
+
protocol: string;
|
|
1476
|
+
version: number;
|
|
1477
|
+
peerSupports: readonly number[];
|
|
1478
|
+
};
|
|
1479
|
+
/** Only keys this reactor registers are judged; an absent key agrees. */
|
|
1480
|
+
declare function holdReason(peer: Supports, versions: {
|
|
1481
|
+
readonly [protocol: string]: number;
|
|
1482
|
+
}, capabilities: readonly PeerCapability[]): HoldReason | undefined;
|
|
1483
|
+
/** Whether a peer runs every version this reactor does, so nothing is held. */
|
|
1484
|
+
declare function coversLocal(peer: Supports, local: Supports, capabilities: readonly PeerCapability[]): boolean;
|
|
1485
|
+
/**
|
|
1486
|
+
* protocolVersions for a new document: per negotiated protocol, the highest
|
|
1487
|
+
* version up to the local preference that every member supports, else the
|
|
1488
|
+
* lowest local one. `requested` wins over what is selected.
|
|
1489
|
+
*/
|
|
1490
|
+
declare function selectProtocolVersions(input: {
|
|
1491
|
+
capabilities: readonly PeerCapability[];
|
|
1492
|
+
flags: PeerCapabilityFlags;
|
|
1493
|
+
members: Iterable<Supports>;
|
|
1494
|
+
requested?: {
|
|
1495
|
+
readonly [protocol: string]: number;
|
|
1496
|
+
};
|
|
1497
|
+
}): {
|
|
1498
|
+
[protocol: string]: number;
|
|
1499
|
+
};
|
|
1500
|
+
/**
|
|
1501
|
+
* Another reactor's selection for a new document, within `supports`: a
|
|
1502
|
+
* negotiated protocol drops to the highest supported version at or below it,
|
|
1503
|
+
* or takes its baseline when absent; another known protocol must be
|
|
1504
|
+
* supported; an unknown one passes, as refusalFor admits it.
|
|
1505
|
+
*/
|
|
1506
|
+
declare function capSelection(selected: {
|
|
1507
|
+
readonly [protocol: string]: number;
|
|
1508
|
+
} | undefined, capabilities: readonly PeerCapability[], supports: Supports): {
|
|
1509
|
+
[protocol: string]: number;
|
|
1510
|
+
};
|
|
1511
|
+
//#endregion
|
|
1512
|
+
//#region document-model/base-reducer-protocol.d.ts
|
|
1513
|
+
declare const BASE_REDUCER_VERSIONS: readonly [1, 2, 3];
|
|
1514
|
+
type BaseReducerVersion = (typeof BASE_REDUCER_VERSIONS)[number];
|
|
1515
|
+
interface UndoModelValues {
|
|
1516
|
+
skip: true;
|
|
1517
|
+
"noop-chain": true;
|
|
1518
|
+
retraction: true;
|
|
1519
|
+
}
|
|
1520
|
+
/** What UNDO and REDO become. */
|
|
1521
|
+
type UndoModel = keyof UndoModelValues;
|
|
1522
|
+
interface SkipMeaningValues {
|
|
1523
|
+
"undo-or-rewind": true;
|
|
1524
|
+
rewind: true;
|
|
1525
|
+
}
|
|
1526
|
+
/** Whether a stored skip can be an undo, or is only a replica's rewind. */
|
|
1527
|
+
type SkipMeaning = keyof SkipMeaningValues;
|
|
1528
|
+
interface TieOrderValues {
|
|
1529
|
+
"rank-locale": true;
|
|
1530
|
+
canonical: true;
|
|
1531
|
+
}
|
|
1532
|
+
/** How same-timestamp actions are ordered. */
|
|
1533
|
+
type TieOrder = keyof TieOrderValues;
|
|
1534
|
+
interface SynthesizedIdFormValues {
|
|
1535
|
+
hashed: true;
|
|
1536
|
+
none: true;
|
|
1537
|
+
}
|
|
1538
|
+
/** How a synthesized row's action id derives from its source's; "none" synthesizes nothing. */
|
|
1539
|
+
type SynthesizedIdForm = keyof SynthesizedIdFormValues;
|
|
1540
|
+
interface ReplayHashValues {
|
|
1541
|
+
sender: true;
|
|
1542
|
+
receiver: true;
|
|
1543
|
+
}
|
|
1544
|
+
/** Whose state hash a received row keeps. */
|
|
1545
|
+
type ReplayHash = keyof ReplayHashValues;
|
|
1546
|
+
interface DerivationModelValues {
|
|
1547
|
+
replay: true;
|
|
1548
|
+
"retraction-rule": true;
|
|
1549
|
+
}
|
|
1550
|
+
/** How a scope's state derives from its rows. */
|
|
1551
|
+
type DerivationModel = keyof DerivationModelValues;
|
|
1552
|
+
interface ReducerContractValues {
|
|
1553
|
+
any: true;
|
|
1554
|
+
"state-reducer": true;
|
|
1555
|
+
}
|
|
1556
|
+
/** Which registered reducers a version runs. */
|
|
1557
|
+
type ReducerContract = keyof ReducerContractValues;
|
|
1558
|
+
interface GatingFlagValues {
|
|
1559
|
+
undoV3: true;
|
|
1560
|
+
}
|
|
1561
|
+
/** A reactor feature flag a version runs only under. */
|
|
1562
|
+
type GatingFlag = keyof GatingFlagValues;
|
|
1563
|
+
type BaseReducerCapabilities = {
|
|
1564
|
+
readonly version: BaseReducerVersion;
|
|
1565
|
+
readonly undo: UndoModel;
|
|
1566
|
+
/** "retraction-rule" derives every scope outside RULE_EXEMPT_SCOPES by the rule. */
|
|
1567
|
+
readonly derivation: DerivationModel;
|
|
1568
|
+
readonly skip: SkipMeaning;
|
|
1569
|
+
readonly tieOrder: TieOrder;
|
|
1570
|
+
readonly synthesizedId: SynthesizedIdForm;
|
|
1571
|
+
readonly replayHash: ReplayHash;
|
|
1572
|
+
/** "state-reducer" runs only models whose every registered reducer createReducer tagged. */
|
|
1573
|
+
readonly reducerContract: ReducerContract;
|
|
1574
|
+
/** The flag this version runs only under; null runs always. */
|
|
1575
|
+
readonly gatedBy: GatingFlag | null;
|
|
1576
|
+
};
|
|
1577
|
+
/** The versions a reactor running `flags` supports. */
|
|
1578
|
+
declare function baseReducerVersionsFor(flags: PeerCapabilityFlags): BaseReducerVersion[];
|
|
1579
|
+
/** Flags under which this build runs every version it knows. */
|
|
1580
|
+
declare const FLAGS_FOR_EVERY_VERSION: { readonly [F in GatingFlag]: true; };
|
|
1581
|
+
/** Scopes the retraction rule never derives. */
|
|
1582
|
+
declare const RULE_EXEMPT_SCOPES: ReadonlySet<string>;
|
|
1583
|
+
declare function assertNever(value: never, what: string): never;
|
|
1584
|
+
declare function isBaseReducerVersion(value: unknown): value is BaseReducerVersion;
|
|
1585
|
+
declare function capabilitiesOf(version: BaseReducerVersion): BaseReducerCapabilities;
|
|
1586
|
+
/** Throws on a missing version: defaulting one would replay through the wrong reducer. */
|
|
1587
|
+
declare function baseReducerVersion(header: PHDocumentHeader): BaseReducerVersion;
|
|
1588
|
+
/** Throws on a missing or unknown version. */
|
|
1589
|
+
declare function baseReducerCapabilities(header: PHDocumentHeader): BaseReducerCapabilities;
|
|
1590
|
+
/** Undefined only for a header without a version; throws on an unknown one. */
|
|
1591
|
+
declare function optionalBaseReducerCapabilities(header: PHDocumentHeader): BaseReducerCapabilities | undefined;
|
|
1592
|
+
/** Undefined when `versions` names no known base-reducer version. */
|
|
1593
|
+
declare function capabilitiesFor(versions: ProtocolVersions | undefined): BaseReducerCapabilities | undefined;
|
|
1594
|
+
/** From CREATE_DOCUMENT input; undefined when it names no known version. */
|
|
1595
|
+
declare function createdCapabilities(input: Partial<CreateDocumentActionInput> | undefined): BaseReducerCapabilities | undefined;
|
|
1596
|
+
/**
|
|
1597
|
+
* Every decision a consumer may take on a capability axis. Outside this module
|
|
1598
|
+
* and the other protocol owners, an axis is read only through these or through
|
|
1599
|
+
* an exhaustive switch.
|
|
1600
|
+
*/
|
|
1601
|
+
declare const CAPABILITY_DECISIONS: {
|
|
1602
|
+
readonly usesRetractionRule: {
|
|
1603
|
+
replay: false;
|
|
1604
|
+
"retraction-rule": true;
|
|
1605
|
+
};
|
|
1606
|
+
readonly needsTaggedModel: {
|
|
1607
|
+
any: false;
|
|
1608
|
+
"state-reducer": true;
|
|
1609
|
+
};
|
|
1610
|
+
readonly sortsJobsCanonically: {
|
|
1611
|
+
"rank-locale": false;
|
|
1612
|
+
canonical: true;
|
|
1613
|
+
};
|
|
1614
|
+
readonly conflictWindowMovesEveryRow: {
|
|
1615
|
+
"rank-locale": false;
|
|
1616
|
+
canonical: true;
|
|
1617
|
+
};
|
|
1618
|
+
readonly skipMayUndo: {
|
|
1619
|
+
"undo-or-rewind": true;
|
|
1620
|
+
rewind: false;
|
|
1621
|
+
};
|
|
1622
|
+
};
|
|
1623
|
+
/** Whether the version derives scopes by the retraction rule; a versionless header does not. */
|
|
1624
|
+
declare function usesRetractionRule(caps: BaseReducerCapabilities | undefined): boolean;
|
|
1625
|
+
/** Whether the retraction rule derives `scope`. */
|
|
1626
|
+
declare function derivesByRule(caps: BaseReducerCapabilities | undefined, scope: string): boolean;
|
|
1627
|
+
/** Whether the retraction rule derives `scope` of the document `header` heads. */
|
|
1628
|
+
declare function documentDerivesByRule(header: PHDocumentHeader, scope: string): boolean;
|
|
1629
|
+
/** Whether the version runs only models whose every reducer is tagged. */
|
|
1630
|
+
declare function needsTaggedModel(caps: BaseReducerCapabilities | undefined): boolean;
|
|
1631
|
+
/** How same-timestamp actions are ordered; a versionless header ranks and compares by locale. */
|
|
1632
|
+
declare function tieOrderOf(caps: BaseReducerCapabilities | undefined): TieOrder;
|
|
1633
|
+
/** Whether a job's actions are stored in canonical order rather than as submitted. */
|
|
1634
|
+
declare function sortsJobsCanonically(caps: BaseReducerCapabilities | undefined): boolean;
|
|
1635
|
+
/** Whether every conflicting row of a load moves, rather than only those past the predecessor bound. */
|
|
1636
|
+
declare function conflictWindowMovesEveryRow(caps: BaseReducerCapabilities | undefined): boolean;
|
|
1637
|
+
/** Whether a stored skip may be an undo, not only a replica's rewind. */
|
|
1638
|
+
declare function skipMayUndo(caps: BaseReducerCapabilities | undefined): boolean;
|
|
1639
|
+
/** Whether a stored skip in `scope` is a rewind the reducer applies. */
|
|
1640
|
+
declare function appliesRewind(caps: BaseReducerCapabilities, scope: string): boolean;
|
|
1641
|
+
/** Whether a submitted RETRACT is this version's undo. */
|
|
1642
|
+
declare function acceptsSubmittedRetract(caps: BaseReducerCapabilities): boolean;
|
|
1643
|
+
/** Whether a submitted UNDO or REDO is this version's undo; on retraction a client submits RETRACT. */
|
|
1644
|
+
declare function acceptsSubmittedUndoRedo(caps: BaseReducerCapabilities): boolean;
|
|
1645
|
+
/** Whether every registered version of `documentType` runs under `caps`; undefined when none is. */
|
|
1646
|
+
declare function modelRunsBaseReducer(caps: BaseReducerCapabilities, documentType: string, modules: readonly DocumentModelModule[]): boolean | undefined;
|
|
1647
|
+
type ProtocolSupport = Supports["protocols"];
|
|
1648
|
+
type ProtocolRefusal = {
|
|
1649
|
+
protocol: string;
|
|
1650
|
+
version: number;
|
|
1651
|
+
/** Set when the version is supported but this model cannot run it. */
|
|
1652
|
+
documentType?: string;
|
|
1653
|
+
};
|
|
1654
|
+
/** Why `versions` cannot run here; unregistered protocols and types are admitted. */
|
|
1655
|
+
declare function refusalFor(documentType: string | undefined, versions: ProtocolVersions | undefined, support: ProtocolSupport, modules: readonly DocumentModelModule[]): ProtocolRefusal | undefined;
|
|
1656
|
+
//#endregion
|
|
1394
1657
|
//#region document-model/constants.d.ts
|
|
1395
1658
|
declare const documentModelFileExtension: "phdm";
|
|
1396
1659
|
declare const documentModelInitialLocalState: DocumentModelLocalState;
|
|
@@ -1402,6 +1665,18 @@ declare const HASH_ALGORITHM_SHA512 = "sha512";
|
|
|
1402
1665
|
declare const HASH_ENCODING_BASE64 = "base64";
|
|
1403
1666
|
declare const HASH_ENCODING_HEX = "hex";
|
|
1404
1667
|
//#endregion
|
|
1668
|
+
//#region document-model/create-base-reducer.d.ts
|
|
1669
|
+
type CreateBaseReducerLogger = {
|
|
1670
|
+
debug: (message: string, ...replacements: unknown[]) => void;
|
|
1671
|
+
warn: (message: string, ...replacements: unknown[]) => void;
|
|
1672
|
+
};
|
|
1673
|
+
/**
|
|
1674
|
+
* Steps a selected base-reducer down to the highest version the model runs.
|
|
1675
|
+
* An unregistered type cannot be checked, so it takes the highest version
|
|
1676
|
+
* that needs no tagged reducer.
|
|
1677
|
+
*/
|
|
1678
|
+
declare function fitCreateBaseReducer(selected: ProtocolVersions, documentType: string | undefined, modules: readonly DocumentModelModule[], logger: CreateBaseReducerLogger): ProtocolVersions;
|
|
1679
|
+
//#endregion
|
|
1405
1680
|
//#region document-model/crypto.d.ts
|
|
1406
1681
|
declare const hashBrowser: (data: string | Uint8Array | ArrayBufferView | DataView, algorithm?: string, encoding?: string, _params?: Record<string, unknown>) => string;
|
|
1407
1682
|
declare function getUnixTimestamp(date: Date | string): string;
|
|
@@ -2087,6 +2362,31 @@ declare class InvalidActionInputZodError extends InvalidActionInputError {
|
|
|
2087
2362
|
issues: ZodIssue[];
|
|
2088
2363
|
constructor(issues: ZodIssue[]);
|
|
2089
2364
|
}
|
|
2365
|
+
/** A model version a rule derivation needs, whose reducer createReducer did not build. */
|
|
2366
|
+
declare class MissingStateReducerError extends Error {
|
|
2367
|
+
readonly documentType: string;
|
|
2368
|
+
readonly version?: number;
|
|
2369
|
+
constructor(documentType: string, version?: number);
|
|
2370
|
+
static isError(error: unknown): error is MissingStateReducerError;
|
|
2371
|
+
}
|
|
2372
|
+
/**
|
|
2373
|
+
* An UNDO or REDO, submitted or loaded from a peer, into a document whose base
|
|
2374
|
+
* reducer undoes by retraction. Its client resolves the target and submits a
|
|
2375
|
+
* RETRACT of it, signed by the author, as IReactorClient.undo does.
|
|
2376
|
+
*/
|
|
2377
|
+
declare class SubmittedUndoRefusedError extends Error {
|
|
2378
|
+
readonly documentId: string;
|
|
2379
|
+
readonly actionType: string;
|
|
2380
|
+
constructor(documentId: string, actionType: string);
|
|
2381
|
+
static isError(error: unknown): error is SubmittedUndoRefusedError;
|
|
2382
|
+
}
|
|
2383
|
+
/** A base-reducer 3 UNDO or REDO of a scope with no row to retract. */
|
|
2384
|
+
declare class NoUndoRedoTargetError extends Error {
|
|
2385
|
+
readonly actionType: "UNDO" | "REDO";
|
|
2386
|
+
readonly scope: string;
|
|
2387
|
+
constructor(actionType: "UNDO" | "REDO", scope: string);
|
|
2388
|
+
static isError(error: unknown): error is NoUndoRedoTargetError;
|
|
2389
|
+
}
|
|
2090
2390
|
/**
|
|
2091
2391
|
* Error thrown when attempting to downgrade a document version.
|
|
2092
2392
|
*/
|
|
@@ -2380,110 +2680,6 @@ declare function headNewDocument(module: DocumentModelModule, options: NewDocume
|
|
|
2380
2680
|
/** The registered module for a type: the requested version, else the latest. */
|
|
2381
2681
|
declare function selectDocumentModelModule(modules: readonly DocumentModelModule[], documentModelType: string, documentModelVersion?: number): DocumentModelModule;
|
|
2382
2682
|
//#endregion
|
|
2383
|
-
//#region document-model/peer-agreement.d.ts
|
|
2384
|
-
/** The reactor feature flags a capability's support is a function of. */
|
|
2385
|
-
type PeerCapabilityFlags = {
|
|
2386
|
-
readonly [flag: string]: boolean | undefined;
|
|
2387
|
-
};
|
|
2388
|
-
/** A document protocol, named by its `protocolVersions` key. */
|
|
2389
|
-
type ProtocolCapability = {
|
|
2390
|
-
kind: "protocol";
|
|
2391
|
-
name: string;
|
|
2392
|
-
/** What a peer that announces nothing is assumed to support. */
|
|
2393
|
-
baseline: readonly number[];
|
|
2394
|
-
supported(flags: PeerCapabilityFlags): readonly number[];
|
|
2395
|
-
/** The version new documents take when peers agree. Absent: not negotiated. */
|
|
2396
|
-
preferred?(flags: PeerCapabilityFlags): number;
|
|
2397
|
-
/** A header may omit the key. */
|
|
2398
|
-
optional: boolean;
|
|
2399
|
-
};
|
|
2400
|
-
/** A feature that changes what a peer sends or expects on the wire. */
|
|
2401
|
-
type FeatureCapability = {
|
|
2402
|
-
kind: "feature";
|
|
2403
|
-
name: string;
|
|
2404
|
-
baseline: readonly number[];
|
|
2405
|
-
supported(flags: PeerCapabilityFlags): readonly number[];
|
|
2406
|
-
};
|
|
2407
|
-
type PeerCapability = ProtocolCapability | FeatureCapability;
|
|
2408
|
-
/** A purged document's protocol; never preferred, so creation never selects it. */
|
|
2409
|
-
declare const DOCUMENT_PURGE_PROTOCOL = "document-purge";
|
|
2410
|
-
/** A peer that takes refusals of polled purge markers on the poll. */
|
|
2411
|
-
declare const MARKER_REFUSAL_FEATURE = "marker-refusal";
|
|
2412
|
-
declare const PEER_CAPABILITIES: readonly PeerCapability[];
|
|
2413
|
-
/** `base` plus `extra`; an extra replaces a base entry of the same name. */
|
|
2414
|
-
declare function mergePeerCapabilities(base: readonly PeerCapability[], extra: readonly PeerCapability[]): PeerCapability[];
|
|
2415
|
-
declare const PEER_MANIFEST_FORMAT = 1;
|
|
2416
|
-
type Supports = {
|
|
2417
|
-
protocols: {
|
|
2418
|
-
[protocol: string]: readonly number[];
|
|
2419
|
-
};
|
|
2420
|
-
features: {
|
|
2421
|
-
[feature: string]: readonly number[];
|
|
2422
|
-
};
|
|
2423
|
-
};
|
|
2424
|
-
type PeerManifest = Supports & {
|
|
2425
|
-
format: 1;
|
|
2426
|
-
/** The signer's did:key, when configured; informational. */
|
|
2427
|
-
appKey?: string;
|
|
2428
|
-
/** Grows with every start of the reactor; a peer ignores an older one. */
|
|
2429
|
-
sequence: number;
|
|
2430
|
-
/** base64url(sha256(canonicalJson(Supports & { sequence }))) */
|
|
2431
|
-
revision: string;
|
|
2432
|
-
};
|
|
2433
|
-
/** What this reactor supports, for every capability it registers. */
|
|
2434
|
-
declare function localSupports(capabilities: readonly PeerCapability[], flags: PeerCapabilityFlags): Supports;
|
|
2435
|
-
/** What a peer that announces nothing supports. */
|
|
2436
|
-
declare function legacySupports(capabilities: readonly PeerCapability[]): Supports;
|
|
2437
|
-
declare function manifestRevision(supports: Supports, sequence?: number): string;
|
|
2438
|
-
declare function localPeerManifest(capabilities: readonly PeerCapability[], flags: PeerCapabilityFlags, appKey?: string, sequence?: number): PeerManifest;
|
|
2439
|
-
/** A manifest sent before the one already held; silence carries no sequence. */
|
|
2440
|
-
declare function isOlderManifest(next: PeerManifest | null, held: PeerManifest | null | undefined): boolean;
|
|
2441
|
-
/** A peer's manifest, or the baselines for a peer that announced none. */
|
|
2442
|
-
declare function peerSupports(manifest: PeerManifest | null, capabilities: readonly PeerCapability[]): Supports;
|
|
2443
|
-
/**
|
|
2444
|
-
* A manifest as received from a peer, or null when it is not one. Formats only
|
|
2445
|
-
* add fields, so one of an unknown format is read as its two maps.
|
|
2446
|
-
*/
|
|
2447
|
-
declare function readPeerManifest(value: unknown): PeerManifest | null;
|
|
2448
|
-
/** Why a document may not go to a peer. */
|
|
2449
|
-
type HoldReason = {
|
|
2450
|
-
protocol: string;
|
|
2451
|
-
version: number;
|
|
2452
|
-
peerSupports: readonly number[];
|
|
2453
|
-
};
|
|
2454
|
-
/** Only keys this reactor registers are judged; an absent key agrees. */
|
|
2455
|
-
declare function holdReason(peer: Supports, versions: {
|
|
2456
|
-
readonly [protocol: string]: number;
|
|
2457
|
-
}, capabilities: readonly PeerCapability[]): HoldReason | undefined;
|
|
2458
|
-
/** Whether a peer runs every version this reactor does, so nothing is held. */
|
|
2459
|
-
declare function coversLocal(peer: Supports, local: Supports, capabilities: readonly PeerCapability[]): boolean;
|
|
2460
|
-
/**
|
|
2461
|
-
* protocolVersions for a new document: per negotiated protocol, the highest
|
|
2462
|
-
* version up to the local preference that every member supports, else the
|
|
2463
|
-
* lowest local one. `requested` wins over what is selected.
|
|
2464
|
-
*/
|
|
2465
|
-
declare function selectProtocolVersions(input: {
|
|
2466
|
-
capabilities: readonly PeerCapability[];
|
|
2467
|
-
flags: PeerCapabilityFlags;
|
|
2468
|
-
members: Iterable<Supports>;
|
|
2469
|
-
requested?: {
|
|
2470
|
-
readonly [protocol: string]: number;
|
|
2471
|
-
};
|
|
2472
|
-
}): {
|
|
2473
|
-
[protocol: string]: number;
|
|
2474
|
-
};
|
|
2475
|
-
/**
|
|
2476
|
-
* Another reactor's selection for a new document, within `supports`: a
|
|
2477
|
-
* negotiated protocol drops to the highest supported version at or below it,
|
|
2478
|
-
* or takes its baseline when absent; another known protocol must be
|
|
2479
|
-
* supported; an unknown one passes, as refusalFor admits it.
|
|
2480
|
-
*/
|
|
2481
|
-
declare function capSelection(selected: {
|
|
2482
|
-
readonly [protocol: string]: number;
|
|
2483
|
-
} | undefined, capabilities: readonly PeerCapability[], supports: Supports): {
|
|
2484
|
-
[protocol: string]: number;
|
|
2485
|
-
};
|
|
2486
|
-
//#endregion
|
|
2487
2683
|
//#region document-model/purge.d.ts
|
|
2488
2684
|
declare const PURGE_DOCUMENT = "PURGE_DOCUMENT";
|
|
2489
2685
|
type PurgeMarkerOperation = Operation & {
|
|
@@ -2512,6 +2708,10 @@ declare function purgedProtocolVersions(): {
|
|
|
2512
2708
|
[protocol: string]: number;
|
|
2513
2709
|
};
|
|
2514
2710
|
//#endregion
|
|
2711
|
+
//#region document-model/state-reducer.d.ts
|
|
2712
|
+
/** The state reducer a `createReducer` reducer wraps, for base-reducer 3 derivation. */
|
|
2713
|
+
declare function stateReducerOf<TState extends PHBaseState = PHBaseState>(reducer: Reducer<TState>): StateReducer<TState> | undefined;
|
|
2714
|
+
//#endregion
|
|
2515
2715
|
//#region document-model/reducer.d.ts
|
|
2516
2716
|
declare function replayOperations<TState extends PHBaseState = PHBaseState>(initialState: TState, clearedOperations: DocumentOperations, stateReducer: StateReducer<TState>, header: PHDocumentHeader, dispatch?: SignalDispatch, documentReducer?: typeof baseReducer, skipHeaderOperations?: SkipHeaderOperations, options?: ReplayDocumentOptions): PHDocument$1<TState>;
|
|
2517
2717
|
/**
|
|
@@ -2531,9 +2731,10 @@ declare function updateDocument<TDocument extends PHDocument$1>(document: TDocum
|
|
|
2531
2731
|
* @param document The current state of the document.
|
|
2532
2732
|
* @param action The action being applied to the document.
|
|
2533
2733
|
* @param skip The number of operations to skip before applying the action.
|
|
2734
|
+
* @param protocolVersion The document's base-reducer version.
|
|
2534
2735
|
* @returns The updated document, calculated skip value and transformed action (if applied).
|
|
2535
2736
|
*/
|
|
2536
|
-
declare function processUndoRedo<TState extends PHBaseState = PHBaseState>(document: PHDocument$1<TState>, action: Action, skip: number, protocolVersion?:
|
|
2737
|
+
declare function processUndoRedo<TState extends PHBaseState = PHBaseState>(document: PHDocument$1<TState>, action: Action, skip: number, protocolVersion?: BaseReducerVersion): {
|
|
2537
2738
|
document: PHDocument$1<TState>;
|
|
2538
2739
|
action: Action;
|
|
2539
2740
|
skip: number;
|
|
@@ -2582,6 +2783,112 @@ declare const documentModelVersioningReducer: DocumentModelVersioningOperations;
|
|
|
2582
2783
|
declare const documentModelStateReducer: StateReducer<DocumentModelPHState>;
|
|
2583
2784
|
declare const documentModelReducer: Reducer<DocumentModelPHState>;
|
|
2584
2785
|
//#endregion
|
|
2786
|
+
//#region document-model/undo-redo-plan.d.ts
|
|
2787
|
+
/** The action ids a retraction-model UNDO and REDO on a scope would retract. */
|
|
2788
|
+
type UndoRedoTargets = {
|
|
2789
|
+
undoTarget?: string;
|
|
2790
|
+
redoTarget?: string;
|
|
2791
|
+
};
|
|
2792
|
+
/** Whether an UNDO or a REDO of one scope would succeed now. */
|
|
2793
|
+
type UndoRedoAvailability = {
|
|
2794
|
+
canUndo: boolean;
|
|
2795
|
+
canRedo: boolean;
|
|
2796
|
+
};
|
|
2797
|
+
/** An older host serves no header versions; CREATE_DOCUMENT carries them. */
|
|
2798
|
+
declare function undoCapabilitiesOf(header: PHDocumentHeader, createInput?: Partial<CreateDocumentActionInput>): BaseReducerCapabilities | undefined;
|
|
2799
|
+
/** Whether undo resolves a target before it can be planned. */
|
|
2800
|
+
declare function undoNeedsTargets(caps: BaseReducerCapabilities): boolean;
|
|
2801
|
+
/** What a client submits, signed by its author; throws NoUndoRedoTargetError when nothing is retractable. */
|
|
2802
|
+
declare function undoRedoActions(caps: BaseReducerCapabilities, type: "UNDO" | "REDO", scope: string, targets: UndoRedoTargets | undefined): Action[];
|
|
2803
|
+
/** Below the retraction model reads serve no clipboard: undo is approximate. */
|
|
2804
|
+
declare function undoRedoAvailabilityOf(caps: BaseReducerCapabilities, targets: UndoRedoTargets | undefined, revision: number, readable: boolean): UndoRedoAvailability;
|
|
2805
|
+
/** Runs `run` after every earlier call with the same key has settled. */
|
|
2806
|
+
declare function serializeByKey<T>(chains: Map<string, Promise<unknown>>, key: string, run: () => Promise<T>): Promise<T>;
|
|
2807
|
+
//#endregion
|
|
2808
|
+
//#region document-model/retraction.d.ts
|
|
2809
|
+
/** Base-reducer 3: the rows left once each reshuffle rewind removes what it covers. */
|
|
2810
|
+
declare function positionalOperations<T extends OperationIndex>(stream: readonly T[]): T[];
|
|
2811
|
+
/** A stored row that changes which earlier rows apply: a RETRACT, or one a retraction names. */
|
|
2812
|
+
declare function retractionRewrites(row: {
|
|
2813
|
+
action: Action;
|
|
2814
|
+
}, named: (actionId: string) => boolean): boolean;
|
|
2815
|
+
declare function retractionTarget(operation: Operation): string | undefined;
|
|
2816
|
+
/** The action ids `action` names; stores index exactly these for findReferencing. */
|
|
2817
|
+
declare function actionReferences(action: Action): string[];
|
|
2818
|
+
/** Ids a live retraction names; a retraction is live iff no live retraction names it. */
|
|
2819
|
+
declare function retractedActionIds(rows: readonly Operation[]): Set<string>;
|
|
2820
|
+
/** The rows whose actions apply to state, in stream order. */
|
|
2821
|
+
declare function appliedOperations(stream: readonly Operation[]): Operation[];
|
|
2822
|
+
/** Resolves the state reducer for a row, by the row's module version. */
|
|
2823
|
+
type ReducerFor<TState extends PHBaseState = PHBaseState> = (operation: Operation) => StateReducer<TState>;
|
|
2824
|
+
/** Applies one row's action to the scope state; throws when the action throws. */
|
|
2825
|
+
declare function reduceOne<TState extends PHBaseState = PHBaseState>(document: PHDocument$1<TState>, operation: Operation, reducerFor: ReducerFor<TState>): PHDocument$1<TState>;
|
|
2826
|
+
/** Receives a row whose action threw while deriving a scope. */
|
|
2827
|
+
type OnThrow = (operation: Operation, error: unknown) => void;
|
|
2828
|
+
/** Which reducer each row of a scope takes, and the upgrades between model versions. */
|
|
2829
|
+
type ScopeVersions = {
|
|
2830
|
+
/** The model version a row applies under. */
|
|
2831
|
+
versionOf: (operation: Operation) => number;
|
|
2832
|
+
/** The state reducer of a model version. */
|
|
2833
|
+
reducerOf: (version: number) => StateReducer;
|
|
2834
|
+
/** Applies the held-back upgrades through `version`; called before every row. */
|
|
2835
|
+
upgradeTo: <TState extends PHBaseState>(document: PHDocument$1<TState>, version: number) => PHDocument$1<TState>;
|
|
2836
|
+
};
|
|
2837
|
+
/** Derives `scope` from initial state; `applied` holds the ids whose action did not throw. */
|
|
2838
|
+
declare function deriveScope<TState extends PHBaseState = PHBaseState>(document: PHDocument$1<TState>, stream: readonly Operation[], reducerFor: ReducerFor<TState>, scope?: string | undefined, onThrow?: OnThrow): {
|
|
2839
|
+
document: PHDocument$1<TState>;
|
|
2840
|
+
applied: ReadonlySet<string>;
|
|
2841
|
+
};
|
|
2842
|
+
/**
|
|
2843
|
+
* Derives `scope` from initial state across model versions: each row applies
|
|
2844
|
+
* with its own version's reducer, and each upgrade applies where its boundary
|
|
2845
|
+
* falls. Every row is visited, applied or not, so an upgrade a skipped row
|
|
2846
|
+
* crosses still applies there.
|
|
2847
|
+
*/
|
|
2848
|
+
declare function deriveScopeVersioned<TState extends PHBaseState = PHBaseState>(document: PHDocument$1<TState>, stream: readonly Operation[], versions: ScopeVersions, scope?: string | undefined, onThrow?: OnThrow): {
|
|
2849
|
+
document: PHDocument$1<TState>;
|
|
2850
|
+
applied: ReadonlySet<string>;
|
|
2851
|
+
};
|
|
2852
|
+
/** The action UNDO retracts: the last applied content row. */
|
|
2853
|
+
declare function undoTarget(stream: readonly Operation[], applied: ReadonlySet<string>): string | undefined;
|
|
2854
|
+
/** The last live retraction of content, unless applied content follows it. */
|
|
2855
|
+
declare function redoTarget(stream: readonly Operation[], applied: ReadonlySet<string>): string | undefined;
|
|
2856
|
+
/**
|
|
2857
|
+
* The targets of `scope` derived from the rows `document` holds; for a client
|
|
2858
|
+
* holding the whole log. None where the rule does not derive `scope`.
|
|
2859
|
+
*/
|
|
2860
|
+
declare function undoRedoTargetsOf<TState extends PHBaseState>(document: PHDocument$1<TState>, caps: BaseReducerCapabilities, scope: string, reducer: StateReducer<TState>): UndoRedoTargets;
|
|
2861
|
+
/** What a stream's targets advance from: the targets, and the ids that make a row rewrite. */
|
|
2862
|
+
type UndoTargetsBase = {
|
|
2863
|
+
targets: UndoRedoTargets;
|
|
2864
|
+
/** Every id a RETRACT in the stream names, present or not. */
|
|
2865
|
+
named: ReadonlySet<string>;
|
|
2866
|
+
};
|
|
2867
|
+
/** The targets of a fully derived stream, with what advancing them needs. */
|
|
2868
|
+
declare function undoTargetsBase(stream: readonly Operation[], applied: ReadonlySet<string>): UndoTargetsBase;
|
|
2869
|
+
/** What a stream holds before a tail appended to it. */
|
|
2870
|
+
type TailBase = {
|
|
2871
|
+
/** Whether a stored RETRACT names `actionId`, present or not. */
|
|
2872
|
+
readonly named: (actionId: string) => boolean;
|
|
2873
|
+
};
|
|
2874
|
+
/**
|
|
2875
|
+
* Whether `tail`, rows appended in index order after a derived base, applies
|
|
2876
|
+
* row by row. Not when a row rewinds, retracts, or is named by a retraction.
|
|
2877
|
+
* It assumes no tail row repeats a stored action id, as a reactor's admission
|
|
2878
|
+
* guarantees on a rule scope; a stream that holds such a repeat must be
|
|
2879
|
+
* derived whole.
|
|
2880
|
+
*/
|
|
2881
|
+
declare function tailAppliesIncrementally(tail: readonly {
|
|
2882
|
+
skip: number;
|
|
2883
|
+
action: Action;
|
|
2884
|
+
}[], base: TailBase): boolean;
|
|
2885
|
+
/**
|
|
2886
|
+
* The targets after `appended`, rows past the end of `base`'s stream in index
|
|
2887
|
+
* order; "rederive" unless the tail applies incrementally. A row's stored
|
|
2888
|
+
* `error` says whether it applied.
|
|
2889
|
+
*/
|
|
2890
|
+
declare function advanceUndoTargets(base: Pick<UndoTargetsBase, "targets" | "named">, appended: readonly Operation[]): UndoRedoTargets | "rederive";
|
|
2891
|
+
//#endregion
|
|
2585
2892
|
//#region document-model/schemas.d.ts
|
|
2586
2893
|
type definedNonNullAny = {};
|
|
2587
2894
|
declare const isDefinedNonNullAny: (v: any) => v is definedNonNullAny;
|
|
@@ -2639,6 +2946,9 @@ declare function SetPreferredEditorActionSchema(): z.ZodObject<Properties<Schema
|
|
|
2639
2946
|
declare function UndoActionInputSchema(): z.ZodObject<{
|
|
2640
2947
|
count: z.ZodNumber;
|
|
2641
2948
|
}, z.core.$strip>;
|
|
2949
|
+
declare function RetractActionInputSchema(): z.ZodObject<{
|
|
2950
|
+
target: z.ZodString;
|
|
2951
|
+
}, z.core.$strip>;
|
|
2642
2952
|
declare function UndoActionSchema(): z.ZodObject<Properties<SchemaUndoAction>>;
|
|
2643
2953
|
type Properties<T> = Required<{ [K in keyof T]: z.ZodType<T[K], T[K]>; }>;
|
|
2644
2954
|
declare function AddChangeLogItemInputSchema(): z.ZodObject<Properties<AddChangeLogItemInput>>;
|
|
@@ -3035,12 +3345,66 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
3035
3345
|
connectRoutes: z.ZodOptional<z.ZodBoolean>;
|
|
3036
3346
|
}, z.core.$strip>;
|
|
3037
3347
|
//#endregion
|
|
3348
|
+
//#region document-model/undo-redo-batch.d.ts
|
|
3349
|
+
/** One job's actions, UNDO and REDO among them, built in order. */
|
|
3350
|
+
type UndoRedoBatch = {
|
|
3351
|
+
/** The job, in the order its actions were added. */
|
|
3352
|
+
readonly actions: readonly Action[];
|
|
3353
|
+
add(action: Action): void;
|
|
3354
|
+
/** Adds the RETRACT of a target resolved as if every earlier action were stored. */
|
|
3355
|
+
undoOrRedo(type: "UNDO" | "REDO", scope: string): void;
|
|
3356
|
+
};
|
|
3357
|
+
/** Base-reducer 3 only. Create each action as it is added: a v3 job runs in creation order. */
|
|
3358
|
+
declare function undoRedoBatch<TState extends PHBaseState>(document: PHDocument$1<TState>, caps: BaseReducerCapabilities, reducer: StateReducer<TState>): UndoRedoBatch;
|
|
3359
|
+
//#endregion
|
|
3360
|
+
//#region document-model/action-order.d.ts
|
|
3361
|
+
/** Compares two ids: action ids, then operation ids. */
|
|
3362
|
+
type IdOrder = (a: string, b: string) => number;
|
|
3363
|
+
/** Code unit, locale-free; one process's v7 ids sort in creation order. */
|
|
3364
|
+
declare const compareActionIds: IdOrder;
|
|
3365
|
+
/** Base-reducer 1 and 2 order, which depends on the default locale. */
|
|
3366
|
+
declare const legacyIdOrder: IdOrder;
|
|
3367
|
+
/** A versionless document is legacy. */
|
|
3368
|
+
declare function idOrderFor(tieOrder: TieOrder | undefined): IdOrder;
|
|
3369
|
+
type CanonicalKey = {
|
|
3370
|
+
id: string;
|
|
3371
|
+
timestampUtcMs: string;
|
|
3372
|
+
action?: {
|
|
3373
|
+
id?: string;
|
|
3374
|
+
};
|
|
3375
|
+
};
|
|
3376
|
+
/** Base-reducer 3: timestamp, then action id, then operation id. */
|
|
3377
|
+
declare function compareCanonical(a: CanonicalKey, b: CanonicalKey): number;
|
|
3378
|
+
/** `<v7 id>~ug:<group>`: the id leads, so it sorts by creation. */
|
|
3379
|
+
declare const UNDO_GROUP_MARK = "~ug:";
|
|
3380
|
+
/** Parsed only: ids stored before the mark, `undo-group:<group>:<id>`. */
|
|
3381
|
+
declare const LEGACY_UNDO_GROUP_PREFIX = "undo-group:";
|
|
3382
|
+
declare function groupedActionId(id: string, group: string): string;
|
|
3383
|
+
/** The undo group an action id carries, in either form. */
|
|
3384
|
+
declare function undoGroupOfId(id: string): string | undefined;
|
|
3385
|
+
/** The sha1 form released v1/v2 stores hold; v3 synthesizes nothing. */
|
|
3386
|
+
declare function synthesizedActionId(submittedId: string, form: SynthesizedIdForm): string;
|
|
3387
|
+
//#endregion
|
|
3388
|
+
//#region document-model/utils.d.ts
|
|
3389
|
+
declare function generateId(method?: "UUIDv4"): string;
|
|
3390
|
+
/**
|
|
3391
|
+
* Derives a deterministic operation ID from stable properties.
|
|
3392
|
+
*/
|
|
3393
|
+
declare function deriveOperationId(documentId: string, scope: string, branch: string, actionId: string): string;
|
|
3394
|
+
/**
|
|
3395
|
+
* @deprecated Moved to `document-model/mock`
|
|
3396
|
+
* (`@powerhousedao/shared/document-model/mock`) so runtime bundles no longer
|
|
3397
|
+
* ship zocker and faker. This stub only throws; update the import or run
|
|
3398
|
+
* `ph migrate`.
|
|
3399
|
+
*/
|
|
3400
|
+
declare function generateMock<TSchema extends z.ZodType>(_schema: TSchema, _overrides?: Partial<z.infer<TSchema>>): z.infer<TSchema>;
|
|
3401
|
+
//#endregion
|
|
3038
3402
|
//#region document-model/validation.d.ts
|
|
3039
3403
|
/**
|
|
3040
3404
|
* Reserved operation names from base reducer (core/actions.ts).
|
|
3041
3405
|
* These names cannot be used for custom operations.
|
|
3042
3406
|
*/
|
|
3043
|
-
declare const RESERVED_OPERATION_NAMES: readonly ["UNDO", "REDO", "SET_NAME", "SET_PREFERRED_EDITOR", "NOOP", "PURGE_DOCUMENT"];
|
|
3407
|
+
declare const RESERVED_OPERATION_NAMES: readonly ["UNDO", "REDO", "SET_NAME", "SET_PREFERRED_EDITOR", "NOOP", "PURGE_DOCUMENT", "RETRACT"];
|
|
3044
3408
|
type ReservedOperationName = (typeof RESERVED_OPERATION_NAMES)[number];
|
|
3045
3409
|
/**
|
|
3046
3410
|
* Operation names become the literal action `type` string at runtime and the
|
|
@@ -4651,6 +5015,14 @@ type NOOPAction = Action & {
|
|
|
4651
5015
|
type: "NOOP";
|
|
4652
5016
|
input: SchemaNOOPAction["input"];
|
|
4653
5017
|
};
|
|
5018
|
+
type RetractActionInput = {
|
|
5019
|
+
target: string;
|
|
5020
|
+
};
|
|
5021
|
+
/** Retracts the action named by `target` in the same document, scope and branch. */
|
|
5022
|
+
type RetractAction = Action & {
|
|
5023
|
+
type: "RETRACT";
|
|
5024
|
+
input: RetractActionInput;
|
|
5025
|
+
};
|
|
4654
5026
|
type CreateDocumentActionInput = {
|
|
4655
5027
|
model: string;
|
|
4656
5028
|
version: 0;
|
|
@@ -4805,12 +5177,31 @@ type ReducerOptions = {
|
|
|
4805
5177
|
* - Version 1 (default): Legacy behavior with index reuse
|
|
4806
5178
|
* - Version 2: Reactor behavior with monotonic indices
|
|
4807
5179
|
*/
|
|
4808
|
-
protocolVersion?:
|
|
5180
|
+
protocolVersion?: BaseReducerVersion;
|
|
4809
5181
|
/**
|
|
4810
5182
|
* When true, skip index contiguity validation during replay.
|
|
4811
5183
|
* Used for V2 state rebuild where gapped indices are expected.
|
|
4812
5184
|
*/
|
|
4813
5185
|
skipIndexValidation?: boolean;
|
|
5186
|
+
/**
|
|
5187
|
+
* Base-reducer 3: the action ids in the scope that a stored RETRACT names.
|
|
5188
|
+
* Computed from the document's operations when absent.
|
|
5189
|
+
*/
|
|
5190
|
+
targeted?: ReadonlySet<string>;
|
|
5191
|
+
/**
|
|
5192
|
+
* Base-reducer 3: derives a scope from every row, each with its own model
|
|
5193
|
+
* version's reducer and the upgrades applied at their boundaries. Without
|
|
5194
|
+
* it, every row takes the reducer this one wraps.
|
|
5195
|
+
*/
|
|
5196
|
+
deriveScope?: DeriveScope;
|
|
5197
|
+
};
|
|
5198
|
+
/**
|
|
5199
|
+
* Derives `scope` from every row of `operations`, returning `document` with
|
|
5200
|
+
* that scope's state replaced and the ids whose action applied.
|
|
5201
|
+
*/
|
|
5202
|
+
type DeriveScope = <TState extends PHBaseState>(document: PHDocument$1<TState>, operations: readonly Operation[], scope: string, onThrow?: (operation: Operation, error: unknown) => void) => {
|
|
5203
|
+
document: PHDocument$1<TState>;
|
|
5204
|
+
applied: ReadonlySet<string>;
|
|
4814
5205
|
};
|
|
4815
5206
|
/**
|
|
4816
5207
|
* A pure function that takes an action and the previous state
|
|
@@ -4904,6 +5295,8 @@ type ReplayDocumentOptions = {
|
|
|
4904
5295
|
reuseOperationResultingState?: boolean;
|
|
4905
5296
|
operationResultingStateParser?: <TState>(state: string) => TState;
|
|
4906
5297
|
skipIndexValidation?: boolean;
|
|
5298
|
+
/** The base-reducer version to replay under when the header names one this build does not know. */
|
|
5299
|
+
protocolVersion?: BaseReducerVersion;
|
|
4907
5300
|
};
|
|
4908
5301
|
type OperationIndex = {
|
|
4909
5302
|
index: number;
|
|
@@ -5101,6 +5494,7 @@ type PHConnectDefaultDrive = z.infer<typeof connectDefaultDriveSchema>;
|
|
|
5101
5494
|
type PHConnectRuntimeDefaultDrive = z.infer<typeof connectRuntimeDefaultDriveSchema>;
|
|
5102
5495
|
type PHConnectRuntimeDefaultDriveRemote = z.infer<typeof connectRuntimeDefaultDriveRemoteSchema>;
|
|
5103
5496
|
type PHConnectRemoteBackend = z.infer<typeof connectRemoteBackendSchema>;
|
|
5497
|
+
type PHConnectRouterSettings = z.infer<typeof connectRouterSettingsSchema>;
|
|
5104
5498
|
type PHConnectCollection = z.infer<typeof connectCollectionSchema>;
|
|
5105
5499
|
type PHConnectDriveSection = z.infer<typeof connectDriveSectionSchema>;
|
|
5106
5500
|
type PHConnectDriveSections = z.infer<typeof connectDriveSectionsSchema>;
|
|
@@ -5234,6 +5628,6 @@ type PowerhouseConfig = {
|
|
|
5234
5628
|
connect?: PHConnectRuntimeConfig;
|
|
5235
5629
|
};
|
|
5236
5630
|
//#endregion
|
|
5237
|
-
export { ParsedCmdResult as $, PHDocumentSignatureInfo as $_, Undo as $a, SetModelExtensionInputSchema as $c, DefinitionRef as $d, ResolverCoordinateDefinition as $f, split as $g, setOperationErrorTemplate as $h, SetModelDescriptionAction as $i, MARKER_REFUSAL_FEATURE as $l, signActionV2 as $m, MakeOptional as $n, ProcessorRerunOptions as $o, AUTH_ACTION_TYPES as $p, OperationErrorSpecification as $r, isValidOperationNameFormat as $s, DeleteStateExampleAction as $t, UpgradeTransition as $u, PHConnectPwaRuntimeCaching as A, SIGNATURE_PROTOCOL_V2 as A_, SetOperationScopeAction as Aa, OperationErrorSchema as Ac, AUTH_NO_GRANT_REASON as Ad, GraphQLOperationTypeDefinitionNode as Af, getDocumentLastModified as Ag, operationWithContext as Ah, ReorderOperationErrorsAction as Ai, documentModelHeaderReducer as Al, initializeAuth as Am, ENSInfo as An, HashAlgorithms as Ao, documentModelFileExtension as Ap, MutationSetInitialStateArgs as Ar, WebhookField as As, ConfigEntryType as At, sign as Au, PHConnectSentry as B, Operation as B_, Set_PreferredEditor as Ba, RedoActionSchema as Bc, CatalogScalarReferenceDefinition as Bd, InterfaceTypeDefinition as Bf, nextSkipNumber as Bg, setAuthorWebsite as Bh, Scalars as Bi, createReducer as Bl, TransportSigner as Bm, IDocument as Bn, IProcessorHostModuleBase as Bo, MAX_CAPABILITY_OPERATIONS as Bp, MutationSetOperationErrorDescriptionArgs as Br, OPERATION_NAME_PATTERN as Bs, DeleteChangeLogItemInput as Bt, documentModelSaveToFileHandle as Bu, PHConnectOpenPanel as C, defaultGlobalState as C_, SetOperationErrorTemplateInput as Ca, DocumentActionSchema as Cc, DocumentModelPHStateSchema as Cd, GraphQLInterfaceTypeDefinitionNode as Cf, checkOperationsIntegrity as Cg, deleteStateExample as Ch, RemoveRelationshipActionInput as Ci, UndoActionSchema as Cl, applyMoveGrantAction as Cm, DocumentModelStateAction as Cn, createNamespacedQueryBuilder as Co, hashBrowser as Cp, MutationReorderModuleOperationsArgs as Cr, RouteMethod as Cs, AddStateExampleAction as Ct, selectDocumentModelModule as Cu, PHConnectPwaFileHandler as D, DocumentIdParams as D_, SetOperationReducerInput as Da, ManifestSchema as Dc, isDocumentModelDocument as Dd, GraphQLNonNullTypeNode as Df, garbageCollect as Dg, operationExampleCreators as Dh, ReorderModuleOperationsInput as Di, UpdateStateExampleInputSchema as Dl, assertAuthScopeActionAllowed as Dm, DocumentModelVersioningOperations as Dn, relationalDbToQueryBuilder as Do, HASH_ALGORITHM_SHA512 as Dp, MutationReorderStateExamplesArgs as Dr, RouteUser as Ds, Author as Dt, createSignedHeaderForSigner as Du, PHConnectPwaCacheStrategy as E, DEFAULT_SIGNATURE_POLICY as E_, SetOperationReducerAction as Ea, DocumentSpecificationSchema as Ec, assertIsDocumentModelState as Ed, GraphQLNamedTypeNode as Ef, filterDuplicatedOperations as Eg, noop as Eh, ReorderModuleOperationsAction as Ei, UpdateOperationExampleInputSchema as El, assertAuthPreservedOnDuplicate as Em, DocumentModelVersioningAction as En, namespaceSchemaOf as Eo, HASH_ALGORITHM_SHA256 as Ep, MutationReorderOperationExamplesArgs as Er, RouteTransport as Es, AssertIsStateOfType as Et, createSignedHeader as Eu, PHConnectRenown as F, protocolVersionsFor as F_, SetPreferredEditorActionInput as Fa, PowerhouseModuleSchema as Fc, creationActions as Fd, GraphQLTypeSystemDefinitionNode as Ff, isUndo as Fg, reorderModules as Fh, ReorderStateExamplesInput as Fi, documentModelReducer as Fl, removeGrant as Fm, FileInput as Fn, IRelationalQueryMethods as Fo, AuthAdministrationMissingError as Fp, MutationSetModuleDescriptionArgs as Fr, WebhookScheme as Fs, CreateDocument as Ft, baseLoadFromInputVersioned as Fu, PHPackageProvider as G, redoOperation as G_, SignalType as Ga, ReorderOperationErrorsInputSchema as Gc, DefinitionCheckSkipReason as Gd, LocationFreeGraphQLDocumentNode as Gf, readOnly as Gg, setModelName as Gh, SchemaUndoAction as Gi, PurgeMarkerOperation as Gl, CanonicalJsonError as Gm, Incremental as Gn, ProcessorDispatchCreateResult as Go, assertValidGrantUpsert as Gp, MutationSetOperationSchemaArgs as Gr, assertOperationExampleIdUnique as Gs, DeleteModuleAction as Gt, readFileBrowser as Gu, PHImageRef as H, OperationOutcome as H_, SignalDispatch as Ha, ReorderChangeLogItemsInputSchema as Hc, DefinitionCheckProfile as Hd, JsonPrimitive as Hf, parseResultingState as Hg, setModelDescription as Hh, SchemaRedoAction as Hi, replayOperations as Hl, ACTION_SIGNATURE_V2_PREFIX as Hm, ISignal as Hn, ProcessorApp as Ho, MAX_CONDITION_NODES as Hp, MutationSetOperationErrorTemplateArgs as Hr, ReservedOperationName as Hs, DeleteChildDocumentSignal as Ht, getFileBrowser as Hu, PHConnectRenownAdapters as I, requestedSignaturePolicy as I_, SetPreferredEditorOperation as Ia, PowerhouseModulesSchema as Ic, creationState as Id, GraphQLTypeSystemExtensionNode as If, isUndoRedo as Ig, reorderOperationErrors as Ih, ReplayDocumentOptions as Ii, documentModelStateReducer as Il, resolveSnapshotAuth as Im, GetDocumentOptions as In, RelationalDbProcessor as Io, GrantSchema as Ip, MutationSetModuleNameArgs as Ir, WebhookSignatureEncoding as Is, CreateDocumentAction as It, baseSaveToFileHandle as Iu, PHRenownPrivyAdapterConfig as J, undoOperation as J_, SkipHeaderOperationIndex as Ja, ScopeStateSchema as Jc, DefinitionDiagnosticPhase as Jd, NamedTypeReferenceDefinition as Jf, reshuffleByTimestamp as Jg, setName as Jh, SetAuthorNameInput as Ji, purgeMarkerOperation as Jl, actionSignerIdentity as Jm, IsStateOfType as Jn, ProcessorFactoryBuilder as Jo, evaluateGrantStack as Jp, MutationUndoArgs as Jr, findOperationErrorOrThrow as Js, DeleteOperationErrorAction as Jt, VersionedReducers as Ju, PHReactorClientMode as K, setNameOperation as K_, SignatureVerificationHandler as Ka, ReorderOperationExamplesInputSchema as Kc, DefinitionCompatibilitySelection as Kd, MaterializedStateDefinition as Kf, removeExistingOperations as Kg, setModuleDescription as Kh, ScopeState as Ki, isPurgeMarker as Kl, DOCUMENT_SCOPE_ACTION_TYPES as Km, InputMaybe as Kn, ProcessorDispatchResult as Ko, assertValidInitialGrants as Kp, MutationSetOperationTemplateArgs as Kr, assertOperationIdUnique as Ks, DeleteModuleInput as Kt, writeFileBrowser as Ku, PHConnectRuntimeConfig as L, signaturePolicyOf as L_, SetStateSchemaAction as La, PublisherSchema as Lc, documentFromCreation as Ld, GraphQLUnionTypeDefinitionNode as Lf, mapSkippedOperations as Lg, reorderOperationExamples as Lh, RevisionsFilter as Li, documentModelStateSchemaReducer as Ll, setGrant as Lm, HostedEditorProps as Ln, RelationalDbProcessorClass as Lo, GroupPrincipalNotAllowedError as Lp, MutationSetNameArgs as Lr, WebhookSpec as Ls, CreateDocumentActionInput as Lt, createMinimalZip as Lu, PHConnectReactor as M, deriveDocumentId as M_, SetOperationTemplateAction as Ma, OperationSpecificationSchema as Mc, DOCUMENT_DELETED_REASON as Md, GraphQLSchemaDefinitionNode as Mf, hashDocumentStateForScope as Mg, releaseNewVersion as Mh, ReorderOperationExamplesAction as Mi, documentModelOperationErrorReducer as Ml, isDocumentCreator as Mm, EditorModule as Mn, IRelationalDb as Mo, documentModelInitialGlobalState as Mp, MutationSetModelExtensionArgs as Mr, WebhookPolicy as Ms, CopyChildDocumentSignal as Mt, verify as Mu, PHConnectReactorFeatureFlags as N, isDerivedDocumentId as N_, SetOperationTemplateInput as Na, PieceModuleSchema as Nc, isDenied as Nd, GraphQLStringValueNode as Nf, isDocumentAction as Ng, reorderChangeLogItems as Nh, ReorderOperationExamplesInput as Ni, documentModelOperationExampleReducer as Nl, mentionedGroupIds as Nm, EditorProps as Nn, IRelationalDbProcessor as No, documentModelInitialLocalState as Np, MutationSetModelIdArgs as Nr, WebhookReply as Ns, CreateChildDocumentInput as Nt, BulkArchiveEntry as Nu, PHConnectPwaIcon as O, ProtocolVersions as O_, SetOperationSchemaAction as Oa, ModuleSchema as Oc, isDocumentModelState as Od, GraphQLObjectFieldNode as Of, garbageCollectDocumentOperations as Og, operationFromAction as Oh, ReorderModulesAction as Oi, definedNonNullAnySchema as Ol, decide as Om, DocumentOperationsIgnoreMap as On, DOCUMENT_ID_COLUMNS as Oo, HASH_ENCODING_BASE64 as Op, MutationSetAuthorNameArgs as Or, ScopedRouteHandle as Os, CodeExample as Ot, createVerificationSigner as Ou, PHConnectRemoteBackend as P, isSignaturePolicy as P_, SetPreferredEditorAction as Pa, PieceModulesSchema as Pc, createDocumentAction as Pd, GraphQLTypeNode as Pf, isNoopOperation as Pg, reorderModuleOperations as Ph, ReorderStateExamplesAction as Pi, documentModelOperationReducer as Pl, moveGrant as Pm, Exact as Pn, IRelationalQueryBuilder as Po, AuthAdministrationLockoutError as Pp, MutationSetModelNameArgs as Pr, WebhookRequest as Ps, CreateChildDocumentSignal as Pt, baseLoadFromInput as Pu, PackageManagerArgs as Q, HashConfig as Q_, SubgraphModule as Qa, SetModelDescriptionInputSchema as Qc, DefinitionPath as Qd, PowerhouseScalarName as Qf, sortOperations as Qg, setOperationErrorName as Qh, SetInitialStateInput as Qi, HoldReason as Ql, isV2ActionHash as Qm, MakeMaybe as Qn, ProcessorRecord as Qo, referencedGroupIds as Qp, NOOPAction as Qr, isReservedOperationName as Qs, DeleteOperationInput as Qt, UpgradeReducer as Qu, PHConnectRuntimeDefaultDrive as R, v2RequiredProtocolVersions as R_, SetStateSchemaInput as Ra, PwaConfigSchema as Rc, upgradeDocumentAction as Rd, InputFieldDefinition as Rf, mapSkippedOperationsV2 as Rg, reorderStateExamples as Rh, SaveToFile as Ri, documentModelVersioningReducer as Rl, TransportAction as Rm, IAction as Rn, IProcessor as Ro, InvalidGrantError as Rp, MutationSetOperationDescriptionArgs as Rr, WebhookVerification as Rs, CreateState as Rt, createZip as Ru, PHConnectLoader as S, defaultDocumentState as S_, SetOperationErrorTemplateAction as Sa, DeleteStateExampleInputSchema as Sc, DocumentModelHeaderSchema as Sd, GraphQLInputValueDefinitionNode as Sf, checkCleanedOperationsIntegrity as Sg, deleteOperationExample as Sh, RemoveRelationshipAction as Si, UndoActionInputSchema as Sl, applyInitializeAuthAction as Sm, DocumentModelPHState as Sn, createNamespacedDb as So, getUnixTimestamp as Sp, MutationReorderChangeLogItemsInputArgs as Sr, RouteHandler as Ss, AddRelationshipActionInput as St, headNewDocument as Su, PHConnectPwa as T, defaultPHState as T_, SetOperationNameInput as Ta, DocumentModelInputSchema as Tc, assertIsDocumentModelDocument as Td, GraphQLNameNode as Tf, filterDocumentOperationsResultingState as Tg, moveOperation as Th, ReorderChangeLogItemsInput as Ti, UpdateChangeLogItemInputSchema as Tl, applySetGrantAction as Tm, DocumentModelUtils as Tn, hashNamespace as To, HASH_ALGORITHM_SHA1 as Tp, MutationReorderOperationErrorsArgs as Tr, RouteSpec as Ts, AssertIsDocumentOfType as Tt, createPresignedHeader as Tu, PHKeyframeRule as U, OperationWithContext$1 as U_, SignalResult as Ua, ReorderModuleOperationsInputSchema as Uc, DefinitionCheckReport as Ud, JsonValue as Uf, precedes as Ug, setModelExtension as Uh, SchemaSetNameAction as Ui, updateDocument as Ul, ActionSignerIdentity as Um, ISignalResult as Un, ProcessorApps as Uo, assertAuthAdministrationRetained as Up, MutationSetOperationNameArgs as Ur, assertModuleIdUnique as Us, DeleteDocumentAction as Ut, isDocumentZip as Uu, PHEdges as V, OperationContext as V_, Signal as Va, RedoSchema as Vc, CompiledErrorDefinition as Vd, InternalScalarName as Vf, operationsAreEqual as Vg, setInitialState as Vh, SchemaNOOPAction as Vi, processUndoRedo as Vl, toTransportAction as Vm, IOperation as Vn, IProcessorManager as Vo, MAX_CONDITION_DEPTH as Vp, MutationSetOperationErrorNameArgs as Vr, RESERVED_OPERATION_NAMES as Vs, DeleteChildDocumentInput as Vt, fetchFileBrowser as Vu, PHLength as W, operationOutcome as W_, SignalResults as Wa, ReorderModulesInputSchema as Wc, DefinitionCheckRequest as Wd, ListTypeReferenceDefinition as Wf, prepareOperations as Wg, setModelId as Wh, SchemaSetPreferredEditorAction as Wi, PURGE_DOCUMENT as Wl, ActionSigningTarget as Wm, ISigner as Wn, ProcessorDeletePropagation as Wo, assertValidGrant as Wp, MutationSetOperationReducerArgs as Wr, assertOperationErrorIdUnique as Ws, DeleteDocumentActionInput as Wt, parseBulkArchive as Wu, PHSchemedColor as X, ActionSigner as X_, State as Xa, SetAuthorWebsiteInputSchema as Xc, DefinitionExample as Xd, ObjectTypeDefinition as Xf, skipHeaderOperations as Xg, setOperationErrorCode as Xh, SetAuthorWebsiteInput as Xi, DOCUMENT_PURGE_PROTOCOL as Xl, canonicalJson as Xm, LoadFromInput as Xn, ProcessorPhase as Xo, grantProblem as Xp, MutationUpdateOperationExampleArgs as Xr, findOperationOrThrow as Xs, DeleteOperationExampleAction as Xt, replayDocumentVersioned as Xu, PHRenownRainbowAdapterConfig as Y, undoOperationV2 as Y_, SkipHeaderOperations as Ya, SetAuthorNameInputSchema as Yc, DefinitionDiagnosticSeverity as Yd, NonEmptyStateDefinition as Yf, reshuffleByTimestampAndIndex as Yg, setOperationDescription as Yh, SetAuthorWebsiteAction as Yi, purgedProtocolVersions as Yl, actionSigningTarget as Ym, LoadFromFile as Yn, ProcessorFilter as Yo, evaluateGrants as Yp, MutationUpdateChangeLogItemInputArgs as Yr, findOperationExampleOrThrow as Ys, DeleteOperationErrorInput as Yt, VersionedReplayConfig as Yu, PHSchemedImage as Z, AppActionSigner as Z_, StateReducer as Za, SetInitialStateInputSchema as Zc, DefinitionKind as Zd, PackageScalarReferenceDefinition as Zf, sortMappedOperations as Zg, setOperationErrorDescription as Zh, SetInitialStateAction as Zi, FeatureCapability as Zl, hashActionV2 as Zm, MakeEmpty as Zn, ProcessorQueueDepth as Zo, isPlainValue as Zp, MutationUpdateStateExampleArgs as Zr, getAllOperationNames as Zs, DeleteOperationExampleInput as Zt, UpgradeManifest as Zu, PHConnectDriveSections as _, createGlobalState as __, SetOperationErrorCodeInput as _a, DeleteChangeLogItemInputSchema as _c, documentModelDocumentType as _d, GraphQLDirectiveNode as _f, addUndo as _g, createAction as _h, RedoActionInput as _i, SetPreferredEditorActionSchema as _l, RemoveGrantActionInputSchema as _m, DocumentModelOperationErrorAction as _n, CodegenStatusRegistry as _o, base58Decode as _p, MutationDeleteOperationErrorArgs as _r, RouteActor as _s, AddOperationErrorInput as _t, readPeerManifest as _u, PHBackground as a, Condition as a_, SetModelNameAction as aa, validateOperations as ac, AuthActionNotAllowedError as ad, DocumentModelModuleDefinition as af, setPreferredEditor as ag, actionFromAction as ah, PhAiChatImage as ai, SetNameActionSchema as al, AuthSubject as am, DocumentModelDocument as an, UpdateOperationExampleAction as ao, SchemaFirstGraphQLDocumentCompatibility as ap, MoveOperationAction as ar, ProcessorTimingHorizon as as, DEFAULT_REGISTRY_URL as at, ProtocolCapability as au, DEFAULT_RELATIONAL_PROCESSOR_DB_NAME as av, PHConnectHome as b, defaultAuthState as b_, SetOperationErrorNameAction as ba, DeleteOperationExampleInputSchema as bc, BaseDocumentHeaderSchema as bd, GraphQLFieldDefinitionNode as bf, baseCreateDocument as bg, deleteOperation as bh, RejectedAction as bi, Set_PreferredEditorSchema as bl, SetGrantActionInputSchema as bm, DocumentModelOperationExampleOperations as bn, getCodegenStatusRegistry as bo, buildOperationSignatureParams as bp, MutationMoveOperationArgs as br, RouteBody as bs, AddOperationInput as bt, NewDocumentHeaderOptions as bu, PHConnectAi as c, PHAuthState as c_, SetModuleDescriptionInput as ca, AddModuleInputSchema as cc, AuthPolicyNotPreservedError as cd, DocumentScalarReferenceDefinition as cf, updateChangeLogItem as cg, addChangeLogItem as ch, PhAiToolDescriptor as ci, SetOperationErrorDescriptionInputSchema as cl, InitializeAuthAction as cm, DocumentModelHeaderAction as cn, UpdateRelationshipActionInput as co, StoredScalarDefinition as cp, MutationAddChangeLogItemInputArgs as cr, ProcessorTimingPath as cs, ActionSigningHandler as ct, coversLocal as cu, PHConnectCollection as d, PHGroupState as d_, SetNameAction as da, AddOperationInputSchema as dc, GrantNotFoundError as dd, EnumValueDefinition as df, verifyOperationSignature as dg, addOperationError as dh, Publisher as di, SetOperationNameInputSchema as dl, MAX_SUPPORTED_AUTH_VERSION as dm, DocumentModelLib as dn, UpgradeDocumentAction as do, SubgraphEntryAccess as dp, MutationAddOperationErrorArgs as dr, TrackedProcessor as ds, AddChangeLogItemAction as dt, legacySupports as du, updateHeaderRevision as e_, SetModelDescriptionInput as ea, validateInitialState as ec, applyDeleteDocumentAction as ed, DefinitionRelatedLocation as ef, setOperationName as eg, targetDocumentId as eh, OperationIndex as ei, SetModelIdInputSchema as el, AuthAction as em, DeleteStateExampleInput as en, UndoAction as eo, ScalarGraphQLProfile as ep, Manifest as er, ProcessorStatus as es, PathValidation as et, PEER_CAPABILITIES as eu, Signature as ev, PHConnectCompositionEntry as f, Principal as f_, SetNameActionInput as fa, AddStateExampleInputSchema as fc, HashMismatchError as fd, FieldDefinition as ff, IntegrityIssueSubType as fg, addOperationExample as fh, PurgeDocumentAction as fi, SetOperationReducerInputSchema as fl, MoveGrantAction as fm, DocumentModelLocalState as fn, UpgradeDocumentActionInput as fo, SubgraphEntryDefinition as fp, MutationAddOperationExampleArgs as fr, AuthorizerResult as fs, AddChangeLogItemInput as ft, localPeerManifest as fu, PHConnectDriveSection as g, createDocumentState as g_, SetOperationErrorCodeAction as ga, ConfigEntryTypeSchema as gc, UnsupportedDocumentModelVersionError as gd, GraphQLDirectiveDefinitionNode as gf, PHDocumentMeta as gg, buildSignedAction as gh, RedoAction as gi, SetPreferredEditorActionInputSchema as gl, RemoveGrantActionInput as gm, DocumentModelOperationAction as gn, CodegenStatus as go, ab2hex as gp, MutationDeleteOperationArgs as gr, NodeRouteSpec as gs, AddOperationErrorAction as gt, peerSupports as gu, PHConnectDefaultDriveRemote as h, createBaseState as h_, SetOperationDescriptionInput as ha, ConfigEntrySchema as hc, InvalidAuthVersionError as hd, GraphQLConstValueNode as hf, PHDocumentHeader as hg, buildOperationSignature as hh, Redo as hi, SetOperationTemplateInputSchema as hl, RemoveGrantAction as hm, DocumentModelModuleOperations as hn, CodegenState as ho, UnionTypeDefinition as hp, MutationDeleteModuleArgs as hr, IWebhookScope as hs, AddOperationAction as ht, mergePeerCapabilities as hu, LogLevels as i, Capability as i_, SetModelIdInput as ia, validateOperationName as ic, withProtocolVersions as id, DocumentModelDefinition as if, setOperationTemplate as ig, actionContext as ih, PartialState as ii, SetNameActionInputSchema as il, AuthRequest as im, DocumentModelAction as in, UpdateChangeLogItemInput as io, ScalarValidationProfile as ip, ModuleSpecification as ir, ProcessorTimingDocumentType as is, ServiceActions as it, PeerManifest as iu, DEFAULT_ANALYTICS_PROCESSOR_DB_NAME as iv, PHConnectPwaUrlPattern as j, SignaturePolicy$1 as j_, SetOperationScopeInput as ja, OperationScopeSchema as jc, AUTH_VERSION_UNSUPPORTED_REASON as jd, GraphQLScalarTypeDefinitionNode as jf, groupOperationsByScope as jg, redo as jh, ReorderOperationErrorsInput as ji, documentModelModuleReducer as jl, isAuthAction as jm, EditorDispatch as jn, IBaseRelationalDb as jo, documentModelGlobalState as jp, MutationSetModelDescriptionArgs as jr, WebhookHashAlgorithm as js, CopyChildDocumentInput as jt, validateHeader as ju, PHConnectPwaManifest as k, SIGNATURE_PROTOCOL as k_, SetOperationSchemaInput as ka, MoveOperationInputSchema as kc, AUTH_DENIED_BY_GRANT_REASON as kd, GraphQLObjectTypeDefinitionNode as kf, garbageCollectV2 as kg, operationFromOperation as kh, ReorderModulesInput as ki, isDefinedNonNullAny as kl, evaluate as km, DocumentSpecification as kn, ExtractProcessorSchemaOrSelf as ko, HASH_ENCODING_HEX as kp, MutationSetAuthorWebsiteArgs as kr, WebhookEndpointInfo as ks, ConfigEntry as kt, hasDerivedDocumentId as ku, PHConnectApp as l, PHBaseState as l_, SetModuleNameAction as la, AddOperationErrorInputSchema as lc, DowngradeNotSupportedError as ld, EmptyLocalStateDefinition as lf, updateOperationExample as lg, addModule as lh, PieceModule as li, SetOperationErrorNameInputSchema as ll, InitializeAuthActionInput as lm, DocumentModelHeaderOperations as ln, UpdateStateExampleAction as lo, SubgraphDefinition as lp, MutationAddModuleArgs as lr, ProcessorTimingRun as ls, ActionVerificationHandler as lt, holdReason as lu, PHConnectDefaultDriveLocal as m, createAuthState as m_, SetOperationDescriptionAction as ma, CodeExampleSchema as mc, InvalidActionInputZodError as md, GraphQLBuiltInScalarName as mf, PHDocument$1 as mg, baseActions as mh, Query as mi, SetOperationScopeInputSchema as ml, MoveGrantActionInputSchema as mm, DocumentModelModuleAction as mn, ValidationError as mo, TypeReferenceDefinition as mp, MutationDeleteChangeLogItemInputArgs as mr, IWebhookEndpoints as ms, AddModuleInput as mt, manifestRevision as mu, DrivePreserveStrategy as n, withSignaturePolicy as n_, SetModelExtensionInput as na, validateModuleOperation as nc, computeUpgradeTransitions as nd, DefinitionSourcesConfig as nf, setOperationSchema as ng, Action as nh, OperationsByScope as ni, SetModuleDescriptionInputSchema as nl, AuthEvaluation as nm, DocumentAction as nn, UndoRedoAction as no, ScalarRepresentation as np, Maybe as nr, ProcessorTimingBatch as ns, PowerhousePackage as nt, PeerCapability as nu, deserializeSignature as nv, PHBackgroundLayer as o, Grant as o_, SetModelNameInput as oa, validateStateSchemaName as oc, AuthAlreadyInitializedError as od, DocumentModelOperationDefinition as of, setStateSchema as og, actionSigner as oh, PhAiToolAnnotations as oi, SetOperationDescriptionInputSchema as ol, AuthVerb as om, DocumentModelDocumentModelModule as on, UpdateOperationExampleInput as oo, Sha256Digest as op, MoveOperationInput as or, ProcessorTimingLastRun as os, ActionErrorCallback as ot, Supports as ou, PROCESSOR_APPS as ov, PHConnectDefaultDrive as p, backfillAuthState as p_, SetNameOperation as pa, AuthorSchema as pc, InvalidActionInputError as pd, GraphQLArgumentNode as pf, IntegrityIssueType as pg, addStateExample as ph, PurgeDocumentActionInput as pi, SetOperationSchemaInputSchema as pl, MoveGrantActionInput as pm, DocumentModelModule as pn, User as po, SubgraphScalarReferenceDefinition as pp, MutationAddStateExampleArgs as pr, IHttpScope as ps, AddModuleAction as pt, localSupports as pu, PHReactorRenown as q, setPreferredEditorOperation as q_, SigningParameters as qa, ReorderStateExamplesInputSchema as qc, DefinitionDiagnostic as qd, NamedGraphQLTypeDefinition as qf, replayDocument as qg, setModuleName as qh, SetAuthorNameAction as qi, purgeDocumentAction as ql, actionPreimageV2 as qm, IsDocumentOfType as qn, ProcessorFactory as qo, evaluateCondition as qp, MutationSetStateSchemaArgs as qr, findModuleOrThrow as qs, DeleteOperationAction as qt, zipEntries as qu, LogLevel as r, AuthGroups as r_, SetModelIdAction as ra, validateModules as rc, latestVersionOf as rd, DirectiveUseDefinition as rf, setOperationScope as rg, ActionContext as rh, PartialRecord as ri, SetModuleNameInputSchema as rl, AuthRefusal as rm, DocumentDispatch$1 as rn, UpdateChangeLogItemAction as ro, ScalarTypeReferenceDefinition as rp, MinimalBackupData as rr, ProcessorTimingCounters as rs, ServiceAction as rt, PeerCapabilityFlags as ru, serializeSignature as rv, PHBackgroundLayers as s, Operand as s_, SetModuleDescriptionAction as sa, AddChangeLogItemInputSchema as sc, AuthInitializerNotCreatorError as sd, DocumentModelSpecificationDefinition as sf, undo as sg, actions as sh, PhAiToolContext as si, SetOperationErrorCodeInputSchema as sl, ConditionContext as sm, DocumentModelGlobalState as sn, UpdateRelationshipAction as so, StateDefinition as sp, Mutation as sr, ProcessorTimingLevel as ss, ActionSignatureContext as st, capSelection as su, DrivePreserveStrategies as t, withScopeRevisions as t_, SetModelExtensionAction as ta, validateModule as tc, applyUpgradeDocumentAction as td, DefinitionSource as tf, setOperationReducer as tg, v2TupleProblem as th, OperationSpecification as ti, SetModelNameInputSchema as tl, AuthDecision as tm, DispatchOutcome as tn, UndoActionInput as to, ScalarName as tp, MappedOperation as tr, ProcessorTiming as ts, PowerhouseConfig as tt, PEER_MANIFEST_FORMAT as tu, UserActionSigner as tv, PHConnectBranding as u, PHDocumentState as u_, SetModuleNameInput as ua, AddOperationExampleInputSchema as uc, FileSystemError as ud, EnumTypeDefinition as uf, updateStateExample as ug, addOperation as uh, PowerhouseModule as ui, SetOperationErrorTemplateInputSchema as ul, InitializeAuthActionInputSchema as um, DocumentModelInput as un, UpdateStateExampleInput as uo, SubgraphDefinitionBase as up, MutationAddOperationArgs as ur, ReplayStateMode as us, Actions as ut, isOlderManifest as uu, PHConnectDrives as v, createLocalState as v_, SetOperationErrorDescriptionAction as va, DeleteModuleInputSchema as vc, groupDocumentType as vd, GraphQLEnumTypeDefinitionNode as vf, appendWithoutApplying as vg, deleteChangeLogItem as vh, Reducer as vi, SetStateSchemaInputSchema as vl, SetGrantAction as vm, DocumentModelOperationErrorOperations as vn, PackageLoadFailure as vo, base64UrlToBytes as vp, MutationDeleteOperationExampleArgs as vr, RouteAuth as vs, AddOperationExampleAction as vt, selectProtocolVersions as vu, PHConnectPackages as w, defaultLocalState as w_, SetOperationNameAction as wa, DocumentModelGlobalStateSchema as wc, DocumentModelSchema as wd, GraphQLListTypeNode as wf, diffOperations as wg, documentModelActions as wh, ReorderChangeLogItemsAction as wi, UndoSchema as wl, applyRemoveGrantAction as wm, DocumentModelStateOperations as wn, createRelationalDb as wo, hex2ab as wp, MutationReorderModulesArgs as wr, RouteOptions as ws, AddStateExampleInput as wt, createCopyHeader as wu, PHConnectInstance as x, defaultBaseState as x_, SetOperationErrorNameInput as xa, DeleteOperationInputSchema as xc, BaseDocumentStateSchema as xd, GraphQLInputObjectTypeDefinitionNode as xf, baseReducerVersion as xg, deleteOperationError as xh, ReleaseNewVersionAction as xi, StateSchema as xl, applyAuthAction as xm, DocumentModelOperationOperations as xn, isSettledCodegenState as xo, bytesToBase64Url as xp, MutationRedoArgs as xr, RouteContext as xs, AddRelationshipAction as xt, createVersionsOf as xu, PHConnectExplorerIcons as y, createState as y_, SetOperationErrorDescriptionInput as ya, DeleteOperationErrorInputSchema as yc, groupMembershipActionTypes as yd, GraphQLEnumValueDefinitionNode as yf, attachBranch as yg, deleteModule as yh, ReducerOptions as yi, Set_NameSchema as yl, SetGrantActionInput as ym, DocumentModelOperationExampleAction as yn, SETTLED_CODEGEN_STATES as yo, buildOperationSignatureMessage as yp, MutationDeleteStateExampleArgs as yr, RouteAuthorizer as ys, AddOperationExampleInput as yt, CreateProtocolVersionsOptions as yu, PHConnectRuntimeDefaultDriveRemote as z, DocumentOperations as z_, Set_Name as za, RedoActionInputSchema as zc, CatalogScalarName as zd, InputTypeDefinition as zf, merge as zg, setAuthorName as zh, SaveToFileHandle as zi, baseReducer as zl, TransportActionContext as zm, ID as zn, IProcessorDispatch as zo, MAX_AUTH_GRANTS as zp, MutationSetOperationErrorCodeArgs as zr, deletedDocumentId as zs, DeleteChangeLogItemAction as zt, documentModelLoadFromInput as zu };
|
|
5631
|
+
export { PackageManagerArgs as $, setOperationTemplate as $_, SkipHeaderOperations as $a, PieceModuleSchema as $c, DocumentModelSchema as $d, GraphQLListTypeNode as $f, actionFromAction as $g, AuthSubject as $h, SetAuthorWebsiteAction as $i, ScopeVersions as $l, skipMayUndo as $m, MakeEmpty as $n, ProcessorFilter as $o, hex2ab as $p, MutationUpdateStateExampleArgs as $r, findOperationExampleOrThrow as $s, DeleteOperationInput as $t, createSignedHeaderForSigner as $u, Grant as $v, deserializeSignature as $y, PHConnectPwaRuntimeCaching as A, reorderOperationErrors as A_, SetOperationReducerAction as Aa, AddOperationExampleInputSchema as Ac, withProtocolVersions as Ad, DefinitionSource as Af, resolveSnapshotAuth as Ag, GrantSchema as Ah, ReorderModulesAction as Ai, SetOperationErrorNameInputSchema as Al, SynthesizedIdFormValues as Am, DocumentOperationsIgnoreMap as An, namespaceSchemaOf as Ao, ScalarName as Ap, MutationSetAuthorNameArgs as Ar, RouteTransport as As, ConfigEntry as At, documentModelStateReducer as Au, isUndoRedo as Av, signaturePolicyOf as Ay, PHConnectRuntimeDefaultDriveRemote as B, setModelName as B_, SetPreferredEditorOperation as Ba, DeleteOperationExampleInputSchema as Bc, InvalidActionInputZodError as Bd, EnumValueDefinition as Bf, DOCUMENT_SCOPE_ACTION_TYPES as Bg, assertValidInitialGrants as Bh, RetractActionInput as Bi, Set_NameSchema as Bl, baseReducerVersion as Bm, IAction as Bn, RelationalDbProcessor as Bo, SubgraphEntryAccess as Bp, MutationSetOperationDescriptionArgs as Br, WebhookSignatureEncoding as Bs, DeleteChangeLogItemAction as Bt, PurgeMarkerOperation as Bu, replayDocument as Bv, OperationWithContext$1 as By, PHConnectOpenPanel as C, operationFromOperation as C_, SetOperationErrorDescriptionInput as Ca, synthesizedActionId as Cc, UpgradeManifest as Cd, DefinitionDiagnosticPhase as Cf, evaluate as Cg, manifestRevision as Ch, ReleaseNewVersionAction as Ci, SetModuleDescriptionInputSchema as Cl, ReducerContract as Cm, DocumentModelOperationOperations as Cn, SETTLED_CODEGEN_STATES as Co, NamedTypeReferenceDefinition as Cp, MutationRedoArgs as Cr, RouteAuthorizer as Cs, AddRelationshipActionInput as Ct, undoRedoAvailabilityOf as Cu, garbageCollectDocumentOperations as Cv, SIGNATURE_PROTOCOL_V2 as Cy, PHConnectPwaFileHandler as D, reorderChangeLogItems as D_, SetOperationErrorTemplateInput as Da, AddChangeLogItemInputSchema as Dc, applyUpgradeDocumentAction as Dd, DefinitionPath as Df, mentionedGroupIds as Dg, selectProtocolVersions as Dh, ReorderChangeLogItemsInput as Di, SetOperationDescriptionInputSchema as Dl, SkipMeaning as Dm, DocumentModelUtils as Dn, createNamespacedQueryBuilder as Do, PowerhouseScalarName as Dp, MutationReorderOperationErrorsArgs as Dr, RouteMethod as Ds, AssertIsStateOfType as Dt, documentModelOperationExampleReducer as Du, hashDocumentStateForScope as Dv, isSignaturePolicy as Dy, PHConnectPwaCacheStrategy as E, releaseNewVersion as E_, SetOperationErrorTemplateAction as Ea, undoRedoBatch as Ec, applyDeleteDocumentAction as Ed, DefinitionKind as Ef, isDocumentCreator as Eg, readPeerManifest as Eh, ReorderChangeLogItemsAction as Ei, SetNameActionSchema as El, ReplayHashValues as Em, DocumentModelStateOperations as En, createNamespacedDb as Eo, PackageScalarReferenceDefinition as Ep, MutationReorderModulesArgs as Er, RouteHandler as Es, AssertIsDocumentOfType as Et, documentModelOperationErrorReducer as Eu, groupOperationsByScope as Ev, isDerivedDocumentId as Ey, PHConnectRenown as F, setAuthorWebsite as F_, SetOperationScopeInput as Fa, ConfigEntrySchema as Fc, DowngradeNotSupportedError as Fd, DocumentModelOperationDefinition as Ff, toTransportAction as Fg, MAX_CONDITION_DEPTH as Fh, ReorderOperationExamplesInput as Fi, SetOperationScopeInputSchema as Fl, acceptsSubmittedRetract as Fm, EditorProps as Fn, IBaseRelationalDb as Fo, Sha256Digest as Fp, MutationSetModelIdArgs as Fr, WebhookHashAlgorithm as Fs, CreateChildDocumentSignal as Ft, processUndoRedo as Fu, parseResultingState as Fv, sortOperations as Fy, PHLength as G, setOperationErrorCode as G_, Signal as Ga, DocumentModelInputSchema as Gc, UnsupportedDocumentModelVersionError as Gd, GraphQLDirectiveDefinitionNode as Gf, hashActionV2 as Gg, isPlainValue as Gh, SchemaNOOPAction as Gi, UndoSchema as Gl, createdCapabilities as Gm, ISignalResult as Gn, IProcessorManager as Go, ab2hex as Gp, MutationSetOperationNameArgs as Gr, RESERVED_OPERATION_NAMES as Gs, DeleteDocumentActionInput as Gt, CreateProtocolVersionsOptions as Gu, sortMappedOperations as Gv, undoOperation as Gy, PHEdges as H, setModuleName as H_, SetStateSchemaInput as Ha, DeleteStateExampleInputSchema as Hc, MissingStateReducerError as Hd, GraphQLArgumentNode as Hf, actionSignerIdentity as Hg, evaluateGrantStack as Hh, SaveToFile as Hi, StateSchema as Hl, capabilitiesFor as Hm, IDocument as Hn, IProcessor as Ho, SubgraphScalarReferenceDefinition as Hp, MutationSetOperationErrorDescriptionArgs as Hr, WebhookVerification as Hs, DeleteChildDocumentInput as Ht, purgeDocumentAction as Hu, reshuffleByTimestamp as Hv, redoOperation as Hy, PHConnectRenownAdapters as I, setInitialState as I_, SetOperationTemplateAction as Ia, ConfigEntryTypeSchema as Ic, FileSystemError as Id, DocumentModelSpecificationDefinition as If, ACTION_SIGNATURE_V2_PREFIX as Ig, MAX_CONDITION_NODES as Ih, ReorderStateExamplesAction as Ii, SetOperationTemplateInputSchema as Il, acceptsSubmittedUndoRedo as Im, Exact as In, IRelationalDb as Io, StateDefinition as Ip, MutationSetModelNameArgs as Ir, WebhookPolicy as Is, CreateDocument as It, replayOperations as Iu, precedes as Iv, DocumentOperations as Iy, PHReactorRenown as J, setOperationErrorTemplate as J_, SignalResults as Ja, ModuleSchema as Jc, groupMembershipActionTypes as Jd, GraphQLEnumValueDefinitionNode as Jf, targetDocumentId as Jg, AuthAction as Jh, SchemaSetPreferredEditorAction as Ji, UpdateStateExampleInputSchema as Jl, isBaseReducerVersion as Jm, InputMaybe as Jn, ProcessorDeletePropagation as Jo, buildOperationSignatureMessage as Jp, MutationSetOperationTemplateArgs as Jr, assertOperationErrorIdUnique as Js, DeleteOperationAction as Jt, headNewDocument as Ju, withScopeRevisions as Jv, AppActionSigner as Jy, PHPackageProvider as K, setOperationErrorDescription as K_, SignalDispatch as Ka, DocumentSpecificationSchema as Kc, documentModelDocumentType as Kd, GraphQLDirectiveNode as Kf, isV2ActionHash as Kg, referencedGroupIds as Kh, SchemaRedoAction as Ki, UpdateChangeLogItemInputSchema as Kl, derivesByRule as Km, ISigner as Kn, ProcessorApp as Ko, base58Decode as Kp, MutationSetOperationReducerArgs as Kr, ReservedOperationName as Ks, DeleteModuleAction as Kt, NewDocumentHeaderOptions as Ku, split as Kv, undoOperationV2 as Ky, PHConnectRouterSettings as L, setModelDescription as L_, SetOperationTemplateInput as La, DeleteChangeLogItemInputSchema as Lc, GrantNotFoundError as Ld, DocumentScalarReferenceDefinition as Lf, ActionSignerIdentity as Lg, assertAuthAdministrationRetained as Lh, ReorderStateExamplesInput as Li, SetPreferredEditorActionInputSchema as Ll, appliesRewind as Lm, FileInput as Ln, IRelationalDbProcessor as Lo, StoredScalarDefinition as Lp, MutationSetModuleDescriptionArgs as Lr, WebhookReply as Ls, CreateDocumentAction as Lt, updateDocument as Lu, prepareOperations as Lv, Operation as Ly, PHConnectReactor as M, reorderStateExamples as M_, SetOperationSchemaAction as Ma, AddStateExampleInputSchema as Mc, AuthAlreadyInitializedError as Md, DirectiveUseDefinition as Mf, TransportAction as Mg, InvalidGrantError as Mh, ReorderOperationErrorsAction as Mi, SetOperationNameInputSchema as Ml, TieOrderValues as Mm, ENSInfo as Mn, DOCUMENT_ID_COLUMNS as Mo, ScalarTypeReferenceDefinition as Mp, MutationSetInitialStateArgs as Mr, ScopedRouteHandle as Ms, CopyChildDocumentInput as Mt, documentModelVersioningReducer as Mu, mapSkippedOperationsV2 as Mv, garbageCollect as My, PHConnectReactorFeatureFlags as N, retract as N_, SetOperationSchemaInput as Na, AuthorSchema as Nc, AuthInitializerNotCreatorError as Nd, DocumentModelDefinition as Nf, TransportActionContext as Ng, MAX_AUTH_GRANTS as Nh, ReorderOperationErrorsInput as Ni, SetOperationReducerInputSchema as Nl, UndoModel as Nm, EditorDispatch as Nn, ExtractProcessorSchemaOrSelf as No, ScalarValidationProfile as Np, MutationSetModelDescriptionArgs as Nr, WebhookEndpointInfo as Ns, CopyChildDocumentSignal as Nt, baseReducer as Nu, merge as Nv, isDocumentAction as Ny, PHConnectPwaIcon as O, reorderModuleOperations as O_, SetOperationNameAction as Oa, AddModuleInputSchema as Oc, computeUpgradeTransitions as Od, DefinitionRef as Of, moveGrant as Og, AuthAdministrationLockoutError as Oh, ReorderModuleOperationsAction as Oi, SetOperationErrorCodeInputSchema as Ol, SkipMeaningValues as Om, DocumentModelVersioningAction as On, createRelationalDb as Oo, ResolverCoordinateDefinition as Op, MutationReorderOperationExamplesArgs as Or, RouteOptions as Os, Author as Ot, documentModelOperationReducer as Ou, isNoopOperation as Ov, protocolVersionsFor as Oy, PHConnectRemoteBackend as P, setAuthorName as P_, SetOperationScopeAction as Pa, CodeExampleSchema as Pc, AuthPolicyNotPreservedError as Pd, DocumentModelModuleDefinition as Pf, TransportSigner as Pg, MAX_CAPABILITY_OPERATIONS as Ph, ReorderOperationExamplesAction as Pi, SetOperationSchemaInputSchema as Pl, UndoModelValues as Pm, EditorModule as Pn, HashAlgorithms as Po, SchemaFirstGraphQLDocumentCompatibility as Pp, MutationSetModelExtensionArgs as Pr, WebhookField as Ps, CreateChildDocumentInput as Pt, createReducer as Pu, operationsAreEqual as Pv, nextSkipNumber as Py, PHSchemedImage as Q, setOperationScope as Q_, SkipHeaderOperationIndex as Qa, OperationSpecificationSchema as Qc, DocumentModelPHStateSchema as Qd, GraphQLInterfaceTypeDefinitionNode as Qf, actionContext as Qg, AuthRequest as Qh, SetAuthorNameInput as Qi, ReducerFor as Ql, refusalFor as Qm, LoadFromInput as Qn, ProcessorFactoryBuilder as Qo, hashBrowser as Qp, MutationUpdateOperationExampleArgs as Qr, findOperationErrorOrThrow as Qs, DeleteOperationExampleInput as Qt, createSignedHeader as Qu, Condition as Qv, UserActionSigner as Qy, PHConnectRuntimeConfig as R, setModelExtension as R_, SetPreferredEditorAction as Ra, DeleteModuleInputSchema as Rc, HashMismatchError as Rd, EmptyLocalStateDefinition as Rf, ActionSigningTarget as Rg, assertValidGrant as Rh, ReplayDocumentOptions as Ri, SetPreferredEditorActionSchema as Rl, assertNever as Rm, GetDocumentOptions as Rn, IRelationalQueryBuilder as Ro, SubgraphDefinition as Rp, MutationSetModuleNameArgs as Rr, WebhookRequest as Rs, CreateDocumentActionInput as Rt, stateReducerOf as Ru, readOnly as Rv, OperationContext as Ry, PHConnectLoader as S, operationFromAction as S_, SetOperationErrorDescriptionAction as Sa, legacyIdOrder as Sc, replayDocumentVersioned as Sd, DefinitionDiagnostic as Sf, decide as Sg, localSupports as Sh, RejectedAction as Si, SetModelNameInputSchema as Sl, RULE_EXEMPT_SCOPES as Sm, DocumentModelOperationExampleOperations as Sn, PackageLoadFailure as So, NamedGraphQLTypeDefinition as Sp, MutationMoveOperationArgs as Sr, RouteAuth as Ss, AddRelationshipAction as St, undoRedoActions as Su, filterDuplicatedOperations as Sv, SIGNATURE_PROTOCOL as Sy, PHConnectPwa as T, redo as T_, SetOperationErrorNameInput as Ta, UndoRedoBatch as Tc, UpgradeTransition as Td, DefinitionExample as Tf, isAuthAction as Tg, peerSupports as Th, RemoveRelationshipActionInput as Ti, SetNameActionInputSchema as Tl, ReplayHash as Tm, DocumentModelStateAction as Tn, isSettledCodegenState as To, ObjectTypeDefinition as Tp, MutationReorderModuleOperationsArgs as Tr, RouteContext as Ts, AddStateExampleInput as Tt, documentModelModuleReducer as Tu, getDocumentLastModified as Tv, deriveDocumentId as Ty, PHImageRef as U, setName as U_, Set_Name as Ua, DocumentActionSchema as Uc, NoUndoRedoTargetError as Ud, GraphQLBuiltInScalarName as Uf, actionSigningTarget as Ug, evaluateGrants as Uh, SaveToFileHandle as Ui, UndoActionInputSchema as Ul, capabilitiesOf as Um, IOperation as Un, IProcessorDispatch as Uo, TypeReferenceDefinition as Up, MutationSetOperationErrorNameArgs as Ur, deletedDocumentId as Us, DeleteChildDocumentSignal as Ut, purgeMarkerOperation as Uu, reshuffleByTimestampAndIndex as Uv, setNameOperation as Uy, PHConnectSentry as V, setModuleDescription as V_, SetStateSchemaAction as Va, DeleteOperationInputSchema as Vc, InvalidAuthVersionError as Vd, FieldDefinition as Vf, actionPreimageV2 as Vg, evaluateCondition as Vh, RevisionsFilter as Vi, Set_PreferredEditorSchema as Vl, baseReducerVersionsFor as Vm, ID as Vn, RelationalDbProcessorClass as Vo, SubgraphEntryDefinition as Vp, MutationSetOperationErrorCodeArgs as Vr, WebhookSpec as Vs, DeleteChangeLogItemInput as Vt, isPurgeMarker as Vu, requireStateReducer as Vv, operationOutcome as Vy, PHKeyframeRule as W, setOperationDescription as W_, Set_PreferredEditor as Wa, DocumentModelGlobalStateSchema as Wc, SubmittedUndoRefusedError as Wd, GraphQLConstValueNode as Wf, canonicalJson as Wg, grantProblem as Wh, Scalars as Wi, UndoActionSchema as Wl, conflictWindowMovesEveryRow as Wm, ISignal as Wn, IProcessorHostModuleBase as Wo, UnionTypeDefinition as Wp, MutationSetOperationErrorTemplateArgs as Wr, OPERATION_NAME_PATTERN as Ws, DeleteDocumentAction as Wt, purgedProtocolVersions as Wu, skipHeaderOperations as Wv, setPreferredEditorOperation as Wy, PHRenownRainbowAdapterConfig as X, setOperationReducer as X_, SignatureVerificationHandler as Xa, OperationErrorSchema as Xc, BaseDocumentStateSchema as Xd, GraphQLInputObjectTypeDefinitionNode as Xf, Action as Xg, AuthEvaluation as Xh, ScopeState as Xi, isDefinedNonNullAny as Xl, needsTaggedModel as Xm, IsStateOfType as Xn, ProcessorDispatchResult as Xo, bytesToBase64Url as Xp, MutationUndoArgs as Xr, assertOperationIdUnique as Xs, DeleteOperationErrorInput as Xt, createCopyHeader as Xu, AuthGroups as Xv, PHDocumentSignatureInfo as Xy, PHRenownPrivyAdapterConfig as Y, setOperationName as Y_, SignalType as Ya, MoveOperationInputSchema as Yc, BaseDocumentHeaderSchema as Yd, GraphQLFieldDefinitionNode as Yf, v2TupleProblem as Yg, AuthDecision as Yh, SchemaUndoAction as Yi, definedNonNullAnySchema as Yl, modelRunsBaseReducer as Ym, IsDocumentOfType as Yn, ProcessorDispatchCreateResult as Yo, buildOperationSignatureParams as Yp, MutationSetStateSchemaArgs as Yr, assertOperationExampleIdUnique as Ys, DeleteOperationErrorAction as Yt, selectDocumentModelModule as Yu, withSignaturePolicy as Yv, HashConfig as Yy, PHSchemedColor as Z, setOperationSchema as Z_, SigningParameters as Za, OperationScopeSchema as Zc, DocumentModelHeaderSchema as Zd, GraphQLInputValueDefinitionNode as Zf, ActionContext as Zg, AuthRefusal as Zh, SetAuthorNameAction as Zi, OnThrow as Zl, optionalBaseReducerCapabilities as Zm, LoadFromFile as Zn, ProcessorFactory as Zo, getUnixTimestamp as Zp, MutationUpdateChangeLogItemInputArgs as Zr, findModuleOrThrow as Zs, DeleteOperationExampleAction as Zt, createPresignedHeader as Zu, Capability as Zv, Signature as Zy, PHConnectDriveSections as _, deleteStateExample as __, SetNameOperation as _a, UNDO_GROUP_MARK as _c, readFileBrowser as _d, DefinitionCheckProfile as _f, applyMoveGrantAction as _g, coversLocal as _h, Redo as _i, SetAuthorWebsiteInputSchema as _l, FLAGS_FOR_EVERY_VERSION as _m, DocumentModelModuleOperations as _n, User as _o, JsonPrimitive as _p, MutationDeleteModuleArgs as _r, IHttpScope as _s, AddOperationErrorAction as _t, UndoRedoAvailability as _u, baseCreateDocument as _v, defaultLocalState as _y, PHBackground as a, addOperationError as a_, SetModelExtensionAction as aa, validateModule as ac, BulkArchiveEntry as ad, AUTH_NO_GRANT_REASON as af, MAX_SUPPORTED_AUTH_VERSION as ag, FeatureCapability as ah, PartialRecord as ai, RedoActionInputSchema as al, HASH_ENCODING_BASE64 as am, DocumentDispatch$1 as an, UndoActionInput as ao, GraphQLOperationTypeDefinitionNode as ap, MinimalBackupData as ar, ProcessorTiming as as, ServiceActions as at, deriveScope as au, updateStateExample as av, Principal as ay, PHConnectHome as b, noop as b_, SetOperationErrorCodeAction as ba, groupedActionId as bc, VersionedReducers as bd, DefinitionCheckSkipReason as bf, assertAuthPreservedOnDuplicate as bg, legacySupports as bh, Reducer as bi, SetModelExtensionInputSchema as bl, ProtocolRefusal as bm, DocumentModelOperationErrorOperations as bn, CodegenStatus as bo, LocationFreeGraphQLDocumentNode as bp, MutationDeleteOperationExampleArgs as br, NodeRouteSpec as bs, AddOperationExampleInput as bt, undoCapabilitiesOf as bu, diffOperations as bv, DocumentIdParams as by, PHConnectAi as c, baseActions as c_, SetModelIdInput as ca, validateOperationName as cc, baseSaveToFileHandle as cd, isDenied as cf, MoveGrantActionInputSchema as cg, PEER_CAPABILITIES as ch, PhAiToolAnnotations as ci, ReorderChangeLogItemsInputSchema as cl, documentModelGlobalState as cm, DocumentModelDocumentModelModule as cn, UpdateChangeLogItemInput as co, GraphQLStringValueNode as cp, MoveOperationInput as cr, ProcessorTimingDocumentType as cs, ActionSignatureContext as ct, redoTarget as cu, IntegrityIssueType as cv, createBaseState as cy, PHConnectCollection as d, createAction as d_, SetModuleDescriptionAction as da, deriveOperationId as dc, documentModelLoadFromInput as dd, creationState as df, RemoveGrantActionInputSchema as dg, PeerCapabilityFlags as dh, PieceModule as di, ReorderOperationErrorsInputSchema as dl, BASE_REDUCER_VERSIONS as dm, DocumentModelHeaderOperations as dn, UpdateRelationshipAction as do, GraphQLTypeSystemExtensionNode as dp, MutationAddModuleArgs as dr, ProcessorTimingLevel as ds, Actions as dt, retractionRewrites as du, PHDocumentMeta as dv, createLocalState as dy, actionSigner as e_, SetAuthorWebsiteInput as ea, serializeSignature as eb, findOperationOrThrow as ec, createVerificationSigner as ed, assertIsDocumentModelDocument as ef, AuthVerb as eg, sortsJobsCanonically as eh, NOOPAction as ei, PieceModulesSchema as el, CreateBaseReducerLogger as em, DeleteStateExampleAction as en, State as eo, GraphQLNameNode as ep, MakeMaybe as er, ProcessorPhase as es, ParsedCmdResult as et, TailBase as eu, setPreferredEditor as ev, Operand as ey, PHConnectCompositionEntry as f, deleteChangeLogItem as f_, SetModuleDescriptionInput as fa, generateId as fc, documentModelSaveToFileHandle as fd, documentFromCreation as ff, SetGrantAction as fg, PeerManifest as fh, PowerhouseModule as fi, ReorderOperationExamplesInputSchema as fl, BaseReducerCapabilities as fm, DocumentModelInput as fn, UpdateRelationshipActionInput as fo, GraphQLUnionTypeDefinitionNode as fp, MutationAddOperationArgs as fr, ProcessorTimingPath as fs, AddChangeLogItemAction as ft, retractionTarget as fu, addUndo as fv, createState as fy, PHConnectDriveSection as g, deleteOperationExample as g_, SetNameActionInput as ga, LEGACY_UNDO_GROUP_PREFIX as gc, parseBulkArchive as gd, CompiledErrorDefinition as gf, applyInitializeAuthAction as gg, capSelection as gh, Query as gi, SetAuthorNameInputSchema as gl, DerivationModelValues as gm, DocumentModelModuleAction as gn, UpgradeDocumentActionInput as go, InternalScalarName as gp, MutationDeleteChangeLogItemInputArgs as gr, AuthorizerResult as gs, AddOperationAction as gt, undoTargetsBase as gu, attachBranch as gv, defaultGlobalState as gy, PHConnectDefaultDriveRemote as h, deleteOperationError as h_, SetNameAction as ha, IdOrder as hc, isDocumentZip as hd, CatalogScalarReferenceDefinition as hf, applyAuthAction as hg, Supports as hh, PurgeDocumentActionInput as hi, ScopeStateSchema as hl, DerivationModel as hm, DocumentModelModule as hn, UpgradeDocumentAction as ho, InterfaceTypeDefinition as hp, MutationAddStateExampleArgs as hr, TrackedProcessor as hs, AddModuleInput as ht, undoTarget as hu, assertReplayIndices as hv, defaultDocumentState as hy, LogLevels as i, addOperation as i_, SetModelDescriptionInput as ia, validateInitialState as ic, verify as id, AUTH_DENIED_BY_GRANT_REASON as if, InitializeAuthActionInputSchema as ig, FLAGLESS_BASE_REDUCER_VERSION as ih, OperationsByScope as ii, PwaConfigSchema as il, HASH_ALGORITHM_SHA512 as im, DocumentAction as in, UndoAction as io, GraphQLObjectTypeDefinitionNode as ip, Maybe as ir, ProcessorStatus as is, ServiceAction as it, appliedOperations as iu, updateOperationExample as iv, PHGroupState as iy, PHConnectPwaUrlPattern as j, reorderOperationExamples as j_, SetOperationReducerInput as ja, AddOperationInputSchema as jc, AuthActionNotAllowedError as jd, DefinitionSourcesConfig as jf, setGrant as jg, GroupPrincipalNotAllowedError as jh, ReorderModulesInput as ji, SetOperationErrorTemplateInputSchema as jl, TieOrder as jm, DocumentSpecification as jn, relationalDbToQueryBuilder as jo, ScalarRepresentation as jp, MutationSetAuthorWebsiteArgs as jr, RouteUser as js, ConfigEntryType as jt, documentModelStateSchemaReducer as ju, mapSkippedOperations as jv, v2RequiredProtocolVersions as jy, PHConnectPwaManifest as k, reorderModules as k_, SetOperationNameInput as ka, AddOperationErrorInputSchema as kc, latestVersionOf as kd, DefinitionRelatedLocation as kf, removeGrant as kg, AuthAdministrationMissingError as kh, ReorderModuleOperationsInput as ki, SetOperationErrorDescriptionInputSchema as kl, SynthesizedIdForm as km, DocumentModelVersioningOperations as kn, hashNamespace as ko, ScalarGraphQLProfile as kp, MutationReorderStateExamplesArgs as kr, RouteSpec as ks, CodeExample as kt, documentModelReducer as ku, isUndo as kv, requestedSignaturePolicy as ky, PHConnectApp as l, buildOperationSignature as l_, SetModelNameAction as la, validateOperations as lc, createMinimalZip as ld, createDocumentAction as lf, RemoveGrantAction as lg, PEER_MANIFEST_FORMAT as lh, PhAiToolContext as li, ReorderModuleOperationsInputSchema as ll, documentModelInitialGlobalState as lm, DocumentModelGlobalState as ln, UpdateOperationExampleAction as lo, GraphQLTypeNode as lp, Mutation as lr, ProcessorTimingHorizon as ls, ActionSigningHandler as lt, reduceOne as lu, PHDocument$1 as lv, createDocumentState as ly, PHConnectDefaultDriveLocal as m, deleteOperation as m_, SetModuleNameInput as ma, CanonicalKey as mc, getFileBrowser as md, CatalogScalarName as mf, SetGrantActionInputSchema as mg, ProtocolSelectionRule as mh, PurgeDocumentAction as mi, RetractActionInputSchema as ml, CAPABILITY_DECISIONS as mm, DocumentModelLocalState as mn, UpdateStateExampleInput as mo, InputTypeDefinition as mp, MutationAddOperationExampleArgs as mr, ReplayStateMode as ms, AddModuleAction as mt, undoRedoTargetsOf as mu, appendWithoutApplying as mv, defaultBaseState as my, DrivePreserveStrategy as n, addChangeLogItem as n_, SetInitialStateInput as na, DEFAULT_RELATIONAL_PROCESSOR_DB_NAME as nb, isReservedOperationName as nc, sign as nd, isDocumentModelDocument as nf, InitializeAuthAction as ng, usesRetractionRule as nh, OperationIndex as ni, PowerhouseModulesSchema as nl, HASH_ALGORITHM_SHA1 as nm, DeriveScope as nn, SubgraphModule as no, GraphQLNonNullTypeNode as np, Manifest as nr, ProcessorRecord as ns, PowerhouseConfig as nt, actionReferences as nu, undo as nv, PHBaseState as ny, PHBackgroundLayer as o, addOperationExample as o_, SetModelExtensionInput as oa, validateModuleOperation as oc, baseLoadFromInput as od, AUTH_VERSION_UNSUPPORTED_REASON as of, MoveGrantAction as og, HoldReason as oh, PartialState as oi, RedoActionSchema as ol, HASH_ENCODING_HEX as om, DocumentModelAction as on, UndoRedoAction as oo, GraphQLScalarTypeDefinitionNode as op, ModuleSpecification as or, ProcessorTimingBatch as os, DEFAULT_REGISTRY_URL as ot, deriveScopeVersioned as ou, verifyOperationSignature as ov, backfillAuthState as oy, PHConnectDefaultDrive as p, deleteModule as p_, SetModuleNameAction as pa, generateMock as pc, fetchFileBrowser as pd, upgradeDocumentAction as pf, SetGrantActionInput as pg, ProtocolCapability as ph, Publisher as pi, ReorderStateExamplesInputSchema as pl, BaseReducerVersion as pm, DocumentModelLib as pn, UpdateStateExampleAction as po, InputFieldDefinition as pp, MutationAddOperationErrorArgs as pr, ProcessorTimingRun as ps, AddChangeLogItemInput as pt, tailAppliesIncrementally as pu, appendRows as pv, defaultAuthState as py, PHReactorClientMode as q, setOperationErrorName as q_, SignalResult as qa, ManifestSchema as qc, groupDocumentType as qd, GraphQLEnumTypeDefinitionNode as qf, signActionV2 as qg, AUTH_ACTION_TYPES as qh, SchemaSetNameAction as qi, UpdateOperationExampleInputSchema as ql, documentDerivesByRule as qm, Incremental as qn, ProcessorApps as qo, base64UrlToBytes as qp, MutationSetOperationSchemaArgs as qr, assertModuleIdUnique as qs, DeleteModuleInput as qt, createVersionsOf as qu, updateHeaderRevision as qv, ActionSigner as qy, LogLevel as r, addModule as r_, SetModelDescriptionAction as ra, PROCESSOR_APPS as rb, isValidOperationNameFormat as rc, validateHeader as rd, isDocumentModelState as rf, InitializeAuthActionInput as rg, DOCUMENT_PURGE_PROTOCOL as rh, OperationSpecification as ri, PublisherSchema as rl, HASH_ALGORITHM_SHA256 as rm, DispatchOutcome as rn, Undo as ro, GraphQLObjectFieldNode as rp, MappedOperation as rr, ProcessorRerunOptions as rs, PowerhousePackage as rt, advanceUndoTargets as ru, updateChangeLogItem as rv, PHDocumentState as ry, PHBackgroundLayers as s, addStateExample as s_, SetModelIdAction as sa, validateModules as sc, baseLoadFromInputVersioned as sd, DOCUMENT_DELETED_REASON as sf, MoveGrantActionInput as sg, MARKER_REFUSAL_FEATURE as sh, PhAiChatImage as si, RedoSchema as sl, documentModelFileExtension as sm, DocumentModelDocument as sn, UpdateChangeLogItemAction as so, GraphQLSchemaDefinitionNode as sp, MoveOperationAction as sr, ProcessorTimingCounters as ss, ActionErrorCallback as st, positionalOperations as su, IntegrityIssueSubType as sv, createAuthState as sy, DrivePreserveStrategies as t, actions as t_, SetInitialStateAction as ta, DEFAULT_ANALYTICS_PROCESSOR_DB_NAME as tb, getAllOperationNames as tc, hasDerivedDocumentId as td, assertIsDocumentModelState as tf, ConditionContext as tg, tieOrderOf as th, OperationErrorSpecification as ti, PowerhouseModuleSchema as tl, fitCreateBaseReducer as tm, DeleteStateExampleInput as tn, StateReducer as to, GraphQLNamedTypeNode as tp, MakeOptional as tr, ProcessorQueueDepth as ts, PathValidation as tt, UndoTargetsBase as tu, setStateSchema as tv, PHAuthState as ty, PHConnectBranding as u, buildSignedAction as u_, SetModelNameInput as ua, validateStateSchemaName as uc, createZip as ud, creationActions as uf, RemoveGrantActionInput as ug, PeerCapability as uh, PhAiToolDescriptor as ui, ReorderModulesInputSchema as ul, documentModelInitialLocalState as um, DocumentModelHeaderAction as un, UpdateOperationExampleInput as uo, GraphQLTypeSystemDefinitionNode as up, MutationAddChangeLogItemInputArgs as ur, ProcessorTimingLastRun as us, ActionVerificationHandler as ut, retractedActionIds as uu, PHDocumentHeader as uv, createGlobalState as uy, PHConnectDrives as v, documentModelActions as v_, SetOperationDescriptionAction as va, compareActionIds as vc, writeFileBrowser as vd, DefinitionCheckReport as vf, applyRemoveGrantAction as vg, holdReason as vh, RedoAction as vi, SetInitialStateInputSchema as vl, GatingFlag as vm, DocumentModelOperationAction as vn, ValidationError as vo, JsonValue as vp, MutationDeleteOperationArgs as vr, IWebhookEndpoints as vs, AddOperationErrorInput as vt, UndoRedoTargets as vu, checkCleanedOperationsIntegrity as vv, defaultPHState as vy, PHConnectPackages as w, operationWithContext as w_, SetOperationErrorNameAction as wa, undoGroupOfId as wc, UpgradeReducer as wd, DefinitionDiagnosticSeverity as wf, initializeAuth as wg, mergePeerCapabilities as wh, RemoveRelationshipAction as wi, SetModuleNameInputSchema as wl, ReducerContractValues as wm, DocumentModelPHState as wn, getCodegenStatusRegistry as wo, NonEmptyStateDefinition as wp, MutationReorderChangeLogItemsInputArgs as wr, RouteBody as ws, AddStateExampleAction as wt, documentModelHeaderReducer as wu, garbageCollectV2 as wv, SignaturePolicy$1 as wy, PHConnectInstance as x, operationExampleCreators as x_, SetOperationErrorCodeInput as xa, idOrderFor as xc, VersionedReplayConfig as xd, DefinitionCompatibilitySelection as xf, assertAuthScopeActionAllowed as xg, localPeerManifest as xh, ReducerOptions as xi, SetModelIdInputSchema as xl, ProtocolSupport as xm, DocumentModelOperationExampleAction as xn, CodegenStatusRegistry as xo, MaterializedStateDefinition as xp, MutationDeleteStateExampleArgs as xr, RouteActor as xs, AddOperationInput as xt, undoNeedsTargets as xu, filterDocumentOperationsResultingState as xv, ProtocolVersions as xy, PHConnectExplorerIcons as y, moveOperation as y_, SetOperationDescriptionInput as ya, compareCanonical as yc, zipEntries as yd, DefinitionCheckRequest as yf, applySetGrantAction as yg, isOlderManifest as yh, RedoActionInput as yi, SetModelDescriptionInputSchema as yl, GatingFlagValues as ym, DocumentModelOperationErrorAction as yn, CodegenState as yo, ListTypeReferenceDefinition as yp, MutationDeleteOperationErrorArgs as yr, IWebhookScope as ys, AddOperationExampleAction as yt, serializeByKey as yu, checkOperationsIntegrity as yv, DEFAULT_SIGNATURE_POLICY as yy, PHConnectRuntimeDefaultDrive as z, setModelId as z_, SetPreferredEditorActionInput as za, DeleteOperationErrorInputSchema as zc, InvalidActionInputError as zd, EnumTypeDefinition as zf, CanonicalJsonError as zg, assertValidGrantUpsert as zh, RetractAction as zi, SetStateSchemaInputSchema as zl, baseReducerCapabilities as zm, HostedEditorProps as zn, IRelationalQueryMethods as zo, SubgraphDefinitionBase as zp, MutationSetNameArgs as zr, WebhookScheme as zs, CreateState as zt, PURGE_DOCUMENT as zu, removeExistingOperations as zv, OperationOutcome as zy };
|
|
5238
5632
|
export {};
|
|
5239
|
-
//# sourceMappingURL=types-
|
|
5633
|
+
//# sourceMappingURL=types-D1ToC1mB.d.ts.map
|