@powerhousedao/shared 6.2.3-dev.77 → 6.2.3-dev.79
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/action-id-DON1WCeY.d.ts +19 -0
- package/dist/action-id-DON1WCeY.d.ts.map +1 -0
- package/dist/clis/args/{access-token-3Hqv_U8I.mjs → access-token-D28cJ6Ov.mjs} +2 -2
- package/dist/clis/args/{access-token-3Hqv_U8I.mjs.map → access-token-D28cJ6Ov.mjs.map} +1 -1
- package/dist/clis/args/access-token.mjs +1 -1
- package/dist/clis/args/{common-BXabdhiO.mjs → common-CHSGBvxM.mjs} +29 -5
- package/dist/clis/args/common-CHSGBvxM.mjs.map +1 -0
- package/dist/clis/args/common.mjs +1 -1
- package/dist/clis/args/{connect-Bad05YS-.mjs → connect-CmErgUlp.mjs} +2 -2
- package/dist/clis/args/{connect-Bad05YS-.mjs.map → connect-CmErgUlp.mjs.map} +1 -1
- package/dist/clis/args/connect.mjs +1 -1
- package/dist/clis/args/{generate-BOItUNvP.mjs → generate-DLPqkD9L.mjs} +2 -2
- package/dist/clis/args/{generate-BOItUNvP.mjs.map → generate-DLPqkD9L.mjs.map} +1 -1
- package/dist/clis/args/generate.mjs +1 -1
- package/dist/clis/args/{help-QVFzsXQl.mjs → help-B16JXhxy.mjs} +25 -17
- package/dist/clis/args/help-B16JXhxy.mjs.map +1 -0
- package/dist/clis/args/{help-BeKM3Nce.d.mts → help-CmnOv3z3.d.mts} +14 -2
- package/dist/clis/args/help-CmnOv3z3.d.mts.map +1 -0
- package/dist/clis/args/help.d.mts +1 -1
- package/dist/clis/args/help.mjs +1 -1
- package/dist/clis/args/{host-Dzd_py0N.mjs → host-BRXA3WP5.mjs} +14 -2
- package/dist/clis/args/host-BRXA3WP5.mjs.map +1 -0
- package/dist/clis/args/{host-CblNFF4o.d.mts → host-BX7KQ0Fp.d.mts} +10 -2
- package/dist/clis/args/host-BX7KQ0Fp.d.mts.map +1 -0
- package/dist/clis/args/host.d.mts +2 -2
- package/dist/clis/args/host.mjs +2 -2
- package/dist/clis/args/index.d.mts +5 -4
- package/dist/clis/args/index.mjs +21 -20
- package/dist/clis/args/{init-xlCNZ8Oe.mjs → init-DYFFSkxI.mjs} +2 -2
- package/dist/clis/args/{init-xlCNZ8Oe.mjs.map → init-DYFFSkxI.mjs.map} +1 -1
- package/dist/clis/args/init.mjs +1 -1
- package/dist/clis/args/{inspect-UNQgtuR0.mjs → inspect-BniSlWn2.mjs} +2 -2
- package/dist/clis/args/{inspect-UNQgtuR0.mjs.map → inspect-BniSlWn2.mjs.map} +1 -1
- package/dist/clis/args/inspect.mjs +1 -1
- package/dist/clis/args/{install-F-27kF6m.mjs → install-sBi-hWv6.mjs} +2 -2
- package/dist/clis/args/{install-F-27kF6m.mjs.map → install-sBi-hWv6.mjs.map} +1 -1
- package/dist/clis/args/install.mjs +1 -1
- package/dist/clis/args/{list-Bkfn8Yuo.mjs → list-DcBHE_2X.mjs} +2 -2
- package/dist/clis/args/{list-Bkfn8Yuo.mjs.map → list-DcBHE_2X.mjs.map} +1 -1
- package/dist/clis/args/list.mjs +1 -1
- package/dist/clis/args/{login-CIFkQExi.mjs → login-C8lWLGqU.mjs} +2 -2
- package/dist/clis/args/{login-CIFkQExi.mjs.map → login-C8lWLGqU.mjs.map} +1 -1
- package/dist/clis/args/login.mjs +1 -1
- package/dist/clis/args/mcp-9ETsMr71.mjs +22 -0
- package/dist/clis/args/mcp-9ETsMr71.mjs.map +1 -0
- package/dist/clis/args/mcp-Cl5PPlkl.d.mts +16 -0
- package/dist/clis/args/mcp-Cl5PPlkl.d.mts.map +1 -0
- package/dist/clis/args/mcp.d.mts +3 -0
- package/dist/clis/args/mcp.mjs +2 -0
- package/dist/clis/args/{migrate-hHLa-0_q.mjs → migrate-39GBHGb-.mjs} +2 -2
- package/dist/clis/args/{migrate-hHLa-0_q.mjs.map → migrate-39GBHGb-.mjs.map} +1 -1
- package/dist/clis/args/migrate.mjs +1 -1
- package/dist/clis/args/{publish-DHqlGWmL.mjs → publish-Rtu9dx7q.mjs} +2 -2
- package/dist/clis/args/{publish-DHqlGWmL.mjs.map → publish-Rtu9dx7q.mjs.map} +1 -1
- package/dist/clis/args/publish.mjs +1 -1
- package/dist/clis/args/{registry-DIwES3l2.mjs → registry-Pt5yN9xS.mjs} +2 -2
- package/dist/clis/args/{registry-DIwES3l2.mjs.map → registry-Pt5yN9xS.mjs.map} +1 -1
- package/dist/clis/args/registry.mjs +1 -1
- package/dist/clis/args/{service-Cpjlyeu5.mjs → service-B3FHLTcp.mjs} +2 -2
- package/dist/clis/args/{service-Cpjlyeu5.mjs.map → service-B3FHLTcp.mjs.map} +1 -1
- package/dist/clis/args/service.mjs +1 -1
- package/dist/clis/args/{switchboard-CCaAtU56.mjs → switchboard-BXLSuEoC.mjs} +3 -3
- package/dist/clis/args/switchboard-BXLSuEoC.mjs.map +1 -0
- package/dist/clis/args/switchboard.mjs +1 -1
- package/dist/clis/args/{uninstall-3U0B8g5c.mjs → uninstall-ChFF846g.mjs} +2 -2
- package/dist/clis/args/{uninstall-3U0B8g5c.mjs.map → uninstall-ChFF846g.mjs.map} +1 -1
- package/dist/clis/args/uninstall.mjs +1 -1
- package/dist/clis/args/{unpublish-s9zUh6Gw.mjs → unpublish-MW7IKVH6.mjs} +2 -2
- package/dist/clis/args/{unpublish-s9zUh6Gw.mjs.map → unpublish-MW7IKVH6.mjs.map} +1 -1
- package/dist/clis/args/unpublish.mjs +1 -1
- package/dist/clis/args/{vetra-DkDaWFPi.d.mts → vetra-CviuwTcH.d.mts} +4 -1
- package/dist/clis/args/vetra-CviuwTcH.d.mts.map +1 -0
- package/dist/clis/args/{vetra-BCOpgM59.mjs → vetra-F4zGu_hG.mjs} +11 -2
- package/dist/clis/args/vetra-F4zGu_hG.mjs.map +1 -0
- package/dist/clis/args/vetra.d.mts +1 -1
- package/dist/clis/args/vetra.mjs +1 -1
- package/dist/clis/build-pieces.d.mts +1 -1
- package/dist/clis/command-names.d.mts +1 -1
- package/dist/clis/command-names.d.mts.map +1 -1
- package/dist/clis/command-names.mjs +1 -0
- package/dist/clis/command-names.mjs.map +1 -1
- package/dist/clis/constants.d.mts +2 -2
- package/dist/clis/constants.mjs +32 -9
- package/dist/clis/constants.mjs.map +1 -1
- package/dist/clis/index.d.mts +60 -7
- package/dist/clis/index.d.mts.map +1 -1
- package/dist/clis/index.mjs +90 -11
- package/dist/clis/index.mjs.map +1 -1
- package/dist/clis/project-env.d.mts +3 -0
- package/dist/clis/project-env.d.mts.map +1 -1
- package/dist/clis/project-env.mjs +9 -1
- package/dist/clis/project-env.mjs.map +1 -1
- package/dist/clis/{types-BNdhWTBs.d.mts → types-BKM2kIEW.d.mts} +37 -10
- package/dist/clis/types-BKM2kIEW.d.mts.map +1 -0
- package/dist/{config-loader-BWt0c0eU.js → config-loader-B7SqNz8z.js} +3 -2
- package/dist/config-loader-B7SqNz8z.js.map +1 -0
- package/dist/connect/config-loader.d.ts +1 -1
- package/dist/connect/config-loader.js +1 -1
- package/dist/connect/connect-config-schema.d.ts +1 -1
- package/dist/connect/connect-config-schema.js +4 -0
- package/dist/connect/connect-config-schema.js.map +1 -1
- package/dist/connect/index.d.ts +8 -2
- package/dist/connect/index.d.ts.map +1 -1
- package/dist/connect/index.js +13 -2
- package/dist/connect/index.js.map +1 -1
- package/dist/{connect-config-schema-1-O1CQ4v.d.ts → connect-config-schema-hSe_84zI.d.ts} +6 -1
- package/dist/connect-config-schema-hSe_84zI.d.ts.map +1 -0
- package/dist/constants-4Y5b-joA.d.ts +9 -0
- package/dist/constants-4Y5b-joA.d.ts.map +1 -0
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -0
- package/dist/constants.js.map +1 -1
- package/dist/document-drive/index.d.ts +3 -3
- package/dist/document-drive/index.js +1 -1
- package/dist/document-model/action-id.d.ts +3 -0
- package/dist/document-model/action-id.js +59 -0
- package/dist/document-model/action-id.js.map +1 -0
- package/dist/document-model/dispatch.d.ts +25 -0
- package/dist/document-model/dispatch.d.ts.map +1 -0
- package/dist/document-model/dispatch.js +0 -0
- package/dist/document-model/errors.d.ts +1 -1
- package/dist/document-model/index.d.ts +4 -2
- package/dist/document-model/index.js +4 -5047
- package/dist/document-model/utils.d.ts +2 -1
- package/dist/document-model/utils.js +2 -1
- package/dist/document-model-D8Z3NUYl.js +5202 -0
- package/dist/document-model-D8Z3NUYl.js.map +1 -0
- package/dist/{index-69rWzMmt.d.ts → index-BzueQ7B3.d.ts} +2 -2
- package/dist/{index-69rWzMmt.d.ts.map → index-BzueQ7B3.d.ts.map} +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/processors/index.d.ts +2 -2
- package/dist/processors/index.js +121 -77
- package/dist/processors/index.js.map +1 -1
- package/dist/processors/testing.d.ts +22 -0
- package/dist/processors/testing.d.ts.map +1 -0
- package/dist/processors/testing.js +77 -0
- package/dist/processors/testing.js.map +1 -0
- package/dist/{purge-v06m_oGz.js → purge-YMJM0Vl7.js} +25 -4
- package/dist/{purge-v06m_oGz.js.map → purge-YMJM0Vl7.js.map} +1 -1
- package/dist/registry/index.d.ts +2 -2
- package/dist/registry/index.js +28 -4
- package/dist/registry/index.js.map +1 -1
- package/dist/registry/manifest-slim.d.ts +2 -2
- package/dist/{types-NkUDXG7c.d.ts → types-B1HqOXqL.d.ts} +178 -57
- package/dist/types-B1HqOXqL.d.ts.map +1 -0
- package/dist/{types-B5-IgDft.d.ts → types-BoYyqmJ2.d.ts} +2 -2
- package/dist/{types-B5-IgDft.d.ts.map → types-BoYyqmJ2.d.ts.map} +1 -1
- package/dist/utils-BrKxCmKx.d.ts.map +1 -1
- package/dist/utils-CSF716ux.js.map +1 -1
- package/dist/utils-MrLmLEVr.js +78 -0
- package/dist/utils-MrLmLEVr.js.map +1 -0
- package/package.json +7 -1
- package/dist/clis/args/common-BXabdhiO.mjs.map +0 -1
- package/dist/clis/args/help-BeKM3Nce.d.mts.map +0 -1
- package/dist/clis/args/help-QVFzsXQl.mjs.map +0 -1
- package/dist/clis/args/host-CblNFF4o.d.mts.map +0 -1
- package/dist/clis/args/host-Dzd_py0N.mjs.map +0 -1
- package/dist/clis/args/switchboard-CCaAtU56.mjs.map +0 -1
- package/dist/clis/args/vetra-BCOpgM59.mjs.map +0 -1
- package/dist/clis/args/vetra-DkDaWFPi.d.mts.map +0 -1
- package/dist/clis/types-BNdhWTBs.d.mts.map +0 -1
- package/dist/config-loader-BWt0c0eU.js.map +0 -1
- package/dist/connect-config-schema-1-O1CQ4v.d.ts.map +0 -1
- package/dist/constants-CcaK3k1D.d.ts +0 -9
- package/dist/constants-CcaK3k1D.d.ts.map +0 -1
- package/dist/document-model/index.js.map +0 -1
- package/dist/types-NkUDXG7c.d.ts.map +0 -1
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { f as IAnalyticsStore } from "./types-Bsp8VL2y.js";
|
|
2
|
-
import { A as connectPwaCacheStrategySchema, B as connectRenownAdaptersSchema, C as connectHomeSchema, D as connectLoaderSchema, E as connectLengthSchema, G as connectRuntimeInstanceSchema, H as connectRenownRainbowAdapterSchema, I as connectPwaUrlPatternSchema, J as connectSchemedColorSchema, K as connectRuntimePwaManifestSchema, L as connectReactorClientModeSchema, M as connectPwaIconSchema, O as connectOpenPanelSchema, P as connectPwaRuntimeCachingSchema, R as connectReactorFeatureFlagsSchema, S as connectExplorerIconsSchema, U as connectRenownSchema, V as connectRenownPrivyAdapterSchema, W as connectRuntimeConfigSchema, X as connectSentrySchema, Y as connectSchemedImageSchema, Z as connect_config_schema_d_exports, a as connectAiSchema, b as connectDrivesSchema, c as connectBackgroundLayersSchema, d as connectCompositionEntrySchema, g as connectDefaultDriveSchema, h as connectDefaultDriveRemoteSchema, j as connectPwaFileHandlerSchema, k as connectPackagesSchema, l as connectBackgroundSchema, m as connectDefaultDriveLocalSchema, o as connectAppSchema, q as connectRuntimePwaSchema, s as connectBackgroundLayerSchema, u as connectBrandingSchema, v as connectDriveSectionSchema, w as connectImageRefSchema, x as connectEdgesSchema, y as connectDriveSectionsSchema, z as connectReactorSchema } from "./connect-config-schema-
|
|
2
|
+
import { A as connectPwaCacheStrategySchema, B as connectRenownAdaptersSchema, C as connectHomeSchema, D as connectLoaderSchema, E as connectLengthSchema, G as connectRuntimeInstanceSchema, H as connectRenownRainbowAdapterSchema, I as connectPwaUrlPatternSchema, J as connectSchemedColorSchema, K as connectRuntimePwaManifestSchema, L as connectReactorClientModeSchema, M as connectPwaIconSchema, O as connectOpenPanelSchema, P as connectPwaRuntimeCachingSchema, R as connectReactorFeatureFlagsSchema, S as connectExplorerIconsSchema, U as connectRenownSchema, V as connectRenownPrivyAdapterSchema, W as connectRuntimeConfigSchema, X as connectSentrySchema, Y as connectSchemedImageSchema, Z as connect_config_schema_d_exports, a as connectAiSchema, b as connectDrivesSchema, c as connectBackgroundLayersSchema, d as connectCompositionEntrySchema, g as connectDefaultDriveSchema, h as connectDefaultDriveRemoteSchema, j as connectPwaFileHandlerSchema, k as connectPackagesSchema, l as connectBackgroundSchema, m as connectDefaultDriveLocalSchema, o as connectAppSchema, q as connectRuntimePwaSchema, s as connectBackgroundLayerSchema, u as connectBrandingSchema, v as connectDriveSectionSchema, w as connectImageRefSchema, x as connectEdgesSchema, y as connectDriveSectionsSchema, z as connectReactorSchema } from "./connect-config-schema-hSe_84zI.js";
|
|
3
3
|
import "./utils-BrKxCmKx.js";
|
|
4
4
|
import { ZodIssue, ZodRawShape, z } from "zod";
|
|
5
5
|
import { Draft } from "mutative";
|
|
6
6
|
import { Kysely, QueryCreator } from "kysely";
|
|
7
7
|
import { ArgParser } from "cmd-ts/dist/cjs/argparser.js";
|
|
8
8
|
import { Agent } from "package-manager-detector";
|
|
9
|
+
import { DispatchOutcome, DocumentDispatch, DocumentDispatch as DocumentDispatch$1, RejectedAction } from "@powerhousedao/shared/document-model/dispatch";
|
|
9
10
|
import { OperationWithContext } from "@powerhousedao/shared/document-model";
|
|
10
11
|
import { IncomingMessage, ServerResponse } from "node:http";
|
|
11
12
|
import { FC, ReactNode } from "react";
|
|
@@ -104,7 +105,7 @@ type HashConfig = {
|
|
|
104
105
|
};
|
|
105
106
|
//#endregion
|
|
106
107
|
//#region document-model/operations.d.ts
|
|
107
|
-
declare function setNameOperation<TDocument extends PHDocument>(document: TDocument, input: {
|
|
108
|
+
declare function setNameOperation<TDocument extends PHDocument$1>(document: TDocument, input: {
|
|
108
109
|
name: string;
|
|
109
110
|
}): TDocument & {
|
|
110
111
|
header: {
|
|
@@ -125,10 +126,10 @@ declare function setNameOperation<TDocument extends PHDocument>(document: TDocum
|
|
|
125
126
|
meta?: PHDocumentMeta;
|
|
126
127
|
};
|
|
127
128
|
};
|
|
128
|
-
declare function setPreferredEditorOperation<TDocument extends PHDocument>(document: TDocument, input: {
|
|
129
|
+
declare function setPreferredEditorOperation<TDocument extends PHDocument$1>(document: TDocument, input: {
|
|
129
130
|
preferredEditor: string | null;
|
|
130
131
|
}): TDocument;
|
|
131
|
-
declare function undoOperation<TDocument extends PHDocument>(document: TDocument, action: Action, skip: number): {
|
|
132
|
+
declare function undoOperation<TDocument extends PHDocument$1>(document: TDocument, action: Action, skip: number): {
|
|
132
133
|
document: TDocument;
|
|
133
134
|
action: Action;
|
|
134
135
|
skip: number;
|
|
@@ -141,13 +142,13 @@ declare function undoOperation<TDocument extends PHDocument>(document: TDocument
|
|
|
141
142
|
* - Always sets skip=1 (consecutive NOOPs are handled during rebuild/GC)
|
|
142
143
|
* - No complex skip calculation - simpler model where each UNDO is independent
|
|
143
144
|
*/
|
|
144
|
-
declare function undoOperationV2<TDocument extends PHDocument>(document: TDocument, action: Action, skip: number): {
|
|
145
|
+
declare function undoOperationV2<TDocument extends PHDocument$1>(document: TDocument, action: Action, skip: number): {
|
|
145
146
|
document: TDocument;
|
|
146
147
|
action: Action;
|
|
147
148
|
skip: number;
|
|
148
149
|
reuseLastOperationIndex: false;
|
|
149
150
|
};
|
|
150
|
-
declare function redoOperation<TDocument extends PHDocument>(document: TDocument, action: Action, skip: number): {
|
|
151
|
+
declare function redoOperation<TDocument extends PHDocument$1>(document: TDocument, action: Action, skip: number): {
|
|
151
152
|
document: TDocument;
|
|
152
153
|
action: Action;
|
|
153
154
|
skip: number;
|
|
@@ -197,6 +198,10 @@ type Operation = {
|
|
|
197
198
|
hash: string;
|
|
198
199
|
/** Error message for a failed action */
|
|
199
200
|
error?: string;
|
|
201
|
+
/** The name of the error a reducer threw, e.g. "BookNotStartedError"; not stored. */
|
|
202
|
+
errorName?: string;
|
|
203
|
+
/** The `errorCode` of the error a reducer threw, e.g. "BOOK_NOT_STARTED"; not stored. */
|
|
204
|
+
errorCode?: string;
|
|
200
205
|
/**
|
|
201
206
|
* If authorization rejected the action, this records the reason why.
|
|
202
207
|
*/
|
|
@@ -226,6 +231,8 @@ type OperationOutcome = {
|
|
|
226
231
|
} | {
|
|
227
232
|
kind: "reducer-error";
|
|
228
233
|
message: string;
|
|
234
|
+
name?: string;
|
|
235
|
+
code?: string;
|
|
229
236
|
} | {
|
|
230
237
|
kind: "denied";
|
|
231
238
|
reason: string;
|
|
@@ -533,7 +540,7 @@ type PHDocumentHeader = {
|
|
|
533
540
|
*
|
|
534
541
|
* @typeParam TState - The type of the document state.
|
|
535
542
|
*/
|
|
536
|
-
type PHDocument<TState extends PHBaseState = PHBaseState> = {
|
|
543
|
+
type PHDocument$1<TState extends PHBaseState = PHBaseState> = {
|
|
537
544
|
/** The header of the document. */
|
|
538
545
|
header: PHDocumentHeader;
|
|
539
546
|
/** The document model specific state. */
|
|
@@ -576,7 +583,7 @@ declare function isDocumentAction(action: Action): action is DocumentAction;
|
|
|
576
583
|
* `protocolVersions` the document is v2-required and takes a derived id; with
|
|
577
584
|
* them it is v2-required only if they say so (see {@link protocolVersionsFor}).
|
|
578
585
|
*/
|
|
579
|
-
declare function baseCreateDocument<TState extends PHBaseState = PHBaseState>(createState: CreateState<TState>, initialState?: Partial<TState>, documentType?: string, protocolVersions?: ProtocolVersions): PHDocument<TState>;
|
|
586
|
+
declare function baseCreateDocument<TState extends PHBaseState = PHBaseState>(createState: CreateState<TState>, initialState?: Partial<TState>, documentType?: string, protocolVersions?: ProtocolVersions): PHDocument$1<TState>;
|
|
580
587
|
/**
|
|
581
588
|
* `document`, not yet created, under a fresh header for `policy`. A legacy
|
|
582
589
|
* header takes `id` when given; a v2-required one ignores `id` and derives its
|
|
@@ -585,7 +592,7 @@ declare function baseCreateDocument<TState extends PHBaseState = PHBaseState>(cr
|
|
|
585
592
|
* meta carry over. A document already under `policy` is returned as is unless
|
|
586
593
|
* a legacy `id` or `protocolVersions` are given.
|
|
587
594
|
*/
|
|
588
|
-
declare function withSignaturePolicy<TDocument extends PHDocument>(document: TDocument, policy: SignaturePolicy$1, options?: {
|
|
595
|
+
declare function withSignaturePolicy<TDocument extends PHDocument$1>(document: TDocument, policy: SignaturePolicy$1, options?: {
|
|
589
596
|
id?: string;
|
|
590
597
|
protocolVersions?: ProtocolVersions;
|
|
591
598
|
}): TDocument;
|
|
@@ -638,8 +645,8 @@ declare function sortMappedOperations(operations: DocumentOperationsIgnoreMap):
|
|
|
638
645
|
* The scope defaults to the action's own, and is passed explicitly by a rebuild
|
|
639
646
|
* that is walking one stream and does not want to trust the action's copy.
|
|
640
647
|
*/
|
|
641
|
-
declare function appendWithoutApplying<TState extends PHBaseState>(document: PHDocument<TState>, operation: Operation, scope?: string): PHDocument<TState>;
|
|
642
|
-
declare function replayDocument<TState extends PHBaseState = PHBaseState>(initialState: TState, operations: DocumentOperations, reducer: Reducer<TState>, header: PHDocumentHeader, dispatch?: SignalDispatch, skipHeaderOperations?: SkipHeaderOperations, options?: ReplayDocumentOptions): PHDocument<TState>;
|
|
648
|
+
declare function appendWithoutApplying<TState extends PHBaseState>(document: PHDocument$1<TState>, operation: Operation, scope?: string): PHDocument$1<TState>;
|
|
649
|
+
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>;
|
|
643
650
|
declare function parseResultingState<TState>(state: string | null | undefined): TState;
|
|
644
651
|
declare enum IntegrityIssueType {
|
|
645
652
|
UNEXPECTED_INDEX = "UNEXPECTED_INDEX"
|
|
@@ -711,6 +718,8 @@ declare function filterDocumentOperationsResultingState(documentOperations?: Doc
|
|
|
711
718
|
timestampUtcMs: string;
|
|
712
719
|
hash: string;
|
|
713
720
|
error?: string;
|
|
721
|
+
errorName?: string;
|
|
722
|
+
errorCode?: string;
|
|
714
723
|
deniedReason?: string;
|
|
715
724
|
action: Action;
|
|
716
725
|
}[];
|
|
@@ -725,7 +734,9 @@ declare function filterDocumentOperationsResultingState(documentOperations?: Doc
|
|
|
725
734
|
* @returns {TOp[]} - The difference between the two arrays of operations.
|
|
726
735
|
*/
|
|
727
736
|
declare function diffOperations<TOp extends OperationIndex>(clearedOperationsA: TOp[], clearedOperationsB: TOp[]): TOp[];
|
|
728
|
-
declare function getDocumentLastModified(document: PHDocument): string;
|
|
737
|
+
declare function getDocumentLastModified(document: PHDocument$1): string;
|
|
738
|
+
/** `revision` with a 0 for each scope of `state` it lacks; auth is not a model scope, so it is left out. */
|
|
739
|
+
declare function withScopeRevisions(revision: PHDocumentHeader["revision"], state: object): PHDocumentHeader["revision"];
|
|
729
740
|
/**
|
|
730
741
|
* Updates the document header with the latest revision number and
|
|
731
742
|
* date of last modification.
|
|
@@ -735,7 +746,7 @@ declare function getDocumentLastModified(document: PHDocument): string;
|
|
|
735
746
|
* @param lastModifiedTimestamp Optional timestamp to use directly, avoiding a scan of all operations.
|
|
736
747
|
* @returns The updated document state.
|
|
737
748
|
*/
|
|
738
|
-
declare function updateHeaderRevision(document: PHDocument, scope: string, lastModifiedTimestamp?: string): PHDocument;
|
|
749
|
+
declare function updateHeaderRevision(document: PHDocument$1, scope: string, lastModifiedTimestamp?: string): PHDocument$1;
|
|
739
750
|
//#endregion
|
|
740
751
|
//#region document-model/actions.d.ts
|
|
741
752
|
/**
|
|
@@ -788,7 +799,7 @@ declare const actionContext: () => ActionContext;
|
|
|
788
799
|
declare const actionSigner: (user: UserActionSigner, app: AppActionSigner, signatures?: Signature[]) => ActionSigner;
|
|
789
800
|
declare function buildOperationSignature(context: ActionSignatureContext, signMethod: ActionSigningHandler): Promise<Signature>;
|
|
790
801
|
/** @deprecated Emits a legacy SHA-1 tuple; sign through `ISigner.signAction`. */
|
|
791
|
-
declare function buildSignedAction<TState extends PHBaseState = PHBaseState>(action: Action, reducer: Reducer<TState>, document: PHDocument<TState>, signer: ActionSigner, signHandler: ActionSigningHandler): Promise<Operation>;
|
|
802
|
+
declare function buildSignedAction<TState extends PHBaseState = PHBaseState>(action: Action, reducer: Reducer<TState>, document: PHDocument$1<TState>, signer: ActionSigner, signHandler: ActionSigningHandler): Promise<Operation>;
|
|
792
803
|
/** @deprecated Use `verifyActionSignature` from `@powerhousedao/reactor`. */
|
|
793
804
|
declare function verifyOperationSignature(signature: Signature, signer: Omit<ActionSigner, "signatures">, verifyHandler: ActionVerificationHandler): Promise<boolean>;
|
|
794
805
|
/**
|
|
@@ -1167,14 +1178,14 @@ declare function isDocumentCreator(creatorKey: JsonWebKey | undefined, signerKey
|
|
|
1167
1178
|
* A creator-less policy must include a grant permitting execute on the auth
|
|
1168
1179
|
* scope, or it would be born locked out.
|
|
1169
1180
|
*/
|
|
1170
|
-
declare function applyInitializeAuthAction<TState extends PHBaseState>(document: PHDocument<TState>, action: InitializeAuthAction): PHDocument<TState>;
|
|
1181
|
+
declare function applyInitializeAuthAction<TState extends PHBaseState>(document: PHDocument$1<TState>, action: InitializeAuthAction): PHDocument$1<TState>;
|
|
1171
1182
|
/** Upserts a grant by id: replaces in place if present, otherwise appends. */
|
|
1172
|
-
declare function applySetGrantAction<TState extends PHBaseState>(document: PHDocument<TState>, action: SetGrantAction): PHDocument<TState>;
|
|
1183
|
+
declare function applySetGrantAction<TState extends PHBaseState>(document: PHDocument$1<TState>, action: SetGrantAction): PHDocument$1<TState>;
|
|
1173
1184
|
/**
|
|
1174
1185
|
* Removes a grant by id; throws if the id is not present or if the removal
|
|
1175
1186
|
* would leave a creator-less policy with no auth-administration grant.
|
|
1176
1187
|
*/
|
|
1177
|
-
declare function applyRemoveGrantAction<TState extends PHBaseState>(document: PHDocument<TState>, action: RemoveGrantAction): PHDocument<TState>;
|
|
1188
|
+
declare function applyRemoveGrantAction<TState extends PHBaseState>(document: PHDocument$1<TState>, action: RemoveGrantAction): PHDocument$1<TState>;
|
|
1178
1189
|
/**
|
|
1179
1190
|
* Moves a grant by id to a new index. Order is load-bearing (the last
|
|
1180
1191
|
* applicable grant wins), so the relative order of the other grants is kept.
|
|
@@ -1184,14 +1195,14 @@ declare function applyRemoveGrantAction<TState extends PHBaseState>(document: PH
|
|
|
1184
1195
|
* without changing the list's contents. It carries the same retention rule as
|
|
1185
1196
|
* the two mutation paths.
|
|
1186
1197
|
*/
|
|
1187
|
-
declare function applyMoveGrantAction<TState extends PHBaseState>(document: PHDocument<TState>, action: MoveGrantAction): PHDocument<TState>;
|
|
1198
|
+
declare function applyMoveGrantAction<TState extends PHBaseState>(document: PHDocument$1<TState>, action: MoveGrantAction): PHDocument$1<TState>;
|
|
1188
1199
|
/**
|
|
1189
1200
|
* Dispatches an auth-scope action to its handler. This is the auth scope's
|
|
1190
1201
|
* dedicated reducer: it is applied by the base reducer instead of the model
|
|
1191
1202
|
* reducer, mirroring the document-scope platform handlers. Unknown types are a
|
|
1192
1203
|
* no-op, matching the model-reducer default.
|
|
1193
1204
|
*/
|
|
1194
|
-
declare function applyAuthAction<TState extends PHBaseState>(document: PHDocument<TState>, action: Action): PHDocument<TState>;
|
|
1205
|
+
declare function applyAuthAction<TState extends PHBaseState>(document: PHDocument$1<TState>, action: Action): PHDocument$1<TState>;
|
|
1195
1206
|
/**
|
|
1196
1207
|
* Because only creators can initialize auth scopes, we must verify that either
|
|
1197
1208
|
* the document has no auth or the version and creator match.
|
|
@@ -1408,6 +1419,17 @@ declare function bytesToBase64Url(bytes: Uint8Array): string;
|
|
|
1408
1419
|
/** Decodes a base64url string to bytes (portable across node, browsers, workers). */
|
|
1409
1420
|
declare function base64UrlToBytes(input: string): Uint8Array;
|
|
1410
1421
|
//#endregion
|
|
1422
|
+
//#region document-model/create-document.d.ts
|
|
1423
|
+
declare function createDocumentAction(input: CreateDocumentActionInput): Action;
|
|
1424
|
+
/** Sets the model version and, on the first upgrade, the initial state. */
|
|
1425
|
+
declare function upgradeDocumentAction(input: UpgradeDocumentActionInput): Action;
|
|
1426
|
+
/** The unsigned CREATE_DOCUMENT and UPGRADE_DOCUMENT that create `document`. */
|
|
1427
|
+
declare function creationActions(document: PHDocument$1, protocolVersions: ProtocolVersions): Action[];
|
|
1428
|
+
/** The state `creationActions` recorded: the snapshot the document scope's first UPGRADE_DOCUMENT carries. */
|
|
1429
|
+
declare function creationState(documentScope: readonly Operation[]): PHBaseState | undefined;
|
|
1430
|
+
/** The document a CREATE_DOCUMENT heads, before UPGRADE_DOCUMENT sets its state. */
|
|
1431
|
+
declare function documentFromCreation(action: CreateDocumentAction): PHDocument$1;
|
|
1432
|
+
//#endregion
|
|
1411
1433
|
//#region document-model/denied.d.ts
|
|
1412
1434
|
/**
|
|
1413
1435
|
* True iff authorization rejected the action.
|
|
@@ -1567,10 +1589,10 @@ declare class AuthActionNotAllowedError extends Error {
|
|
|
1567
1589
|
}
|
|
1568
1590
|
declare class HashMismatchError extends Error {
|
|
1569
1591
|
protected _scope: string;
|
|
1570
|
-
protected _document: PHDocument;
|
|
1592
|
+
protected _document: PHDocument$1;
|
|
1571
1593
|
protected _operation: Operation;
|
|
1572
|
-
constructor(scope: string, document: PHDocument, operation: Operation);
|
|
1573
|
-
get document(): PHDocument;
|
|
1594
|
+
constructor(scope: string, document: PHDocument$1, operation: Operation);
|
|
1595
|
+
get document(): PHDocument$1;
|
|
1574
1596
|
get scope(): string;
|
|
1575
1597
|
get operation(): Operation;
|
|
1576
1598
|
}
|
|
@@ -1588,7 +1610,7 @@ declare class UnsupportedDocumentModelVersionError extends Error {
|
|
|
1588
1610
|
//#endregion
|
|
1589
1611
|
//#region document-model/upgrades.d.ts
|
|
1590
1612
|
/** Upgrade reducer transforms a document from one version to another */
|
|
1591
|
-
type UpgradeReducer<TFrom extends PHBaseState, TTo extends PHBaseState> = (document: PHDocument<TFrom>, action: Action) => PHDocument<TTo>;
|
|
1613
|
+
type UpgradeReducer<TFrom extends PHBaseState, TTo extends PHBaseState> = (document: PHDocument$1<TFrom>, action: Action) => PHDocument$1<TTo>;
|
|
1592
1614
|
type ModelVersion = number;
|
|
1593
1615
|
/** Metadata about a version transition */
|
|
1594
1616
|
type UpgradeTransition = {
|
|
@@ -1613,14 +1635,14 @@ type UpgradeManifest<TVersions extends readonly number[]> = {
|
|
|
1613
1635
|
* - fromVersion > toVersion: Throw DowngradeNotSupportedError
|
|
1614
1636
|
* - All other cases: Apply upgradePath transitions (if provided), then apply initialState, set version
|
|
1615
1637
|
*/
|
|
1616
|
-
declare function applyUpgradeDocumentAction(document: PHDocument, action: UpgradeDocumentAction, upgradePath?: UpgradeTransition[]): PHDocument;
|
|
1638
|
+
declare function applyUpgradeDocumentAction(document: PHDocument$1, action: UpgradeDocumentAction, upgradePath?: UpgradeTransition[]): PHDocument$1;
|
|
1617
1639
|
/** CREATE_DOCUMENT fixes `protocolVersions`; this puts them back after a reducer. */
|
|
1618
|
-
declare function withProtocolVersions<TDocument extends PHDocument>(document: TDocument, protocolVersions: PHDocument["header"]["protocolVersions"]): TDocument;
|
|
1640
|
+
declare function withProtocolVersions<TDocument extends PHDocument$1>(document: TDocument, protocolVersions: PHDocument$1["header"]["protocolVersions"]): TDocument;
|
|
1619
1641
|
/**
|
|
1620
1642
|
* Applies a DELETE_DOCUMENT action, or a PURGE_DOCUMENT marker, to a document.
|
|
1621
1643
|
* Marks the document as deleted in the document scope state.
|
|
1622
1644
|
*/
|
|
1623
|
-
declare function applyDeleteDocumentAction(document: PHDocument, action: DeleteDocumentAction | PurgeDocumentAction): PHDocument;
|
|
1645
|
+
declare function applyDeleteDocumentAction(document: PHDocument$1, action: DeleteDocumentAction | PurgeDocumentAction): PHDocument$1;
|
|
1624
1646
|
/**
|
|
1625
1647
|
* Computes the ordered list of upgrade transitions needed to move from
|
|
1626
1648
|
* fromVersion to toVersion using the provided manifest.
|
|
@@ -1655,19 +1677,19 @@ type VersionedReplayConfig = {
|
|
|
1655
1677
|
* reuseOperationResultingState is ignored by this function — zip operations never carry
|
|
1656
1678
|
* resultingState.
|
|
1657
1679
|
*/
|
|
1658
|
-
declare function replayDocumentVersioned<TState extends PHBaseState>(initialState: TState, operations: DocumentOperations, config: VersionedReplayConfig, header: PHDocumentHeader, dispatch?: SignalDispatch, options?: ReplayDocumentOptions): PHDocument<TState>;
|
|
1680
|
+
declare function replayDocumentVersioned<TState extends PHBaseState>(initialState: TState, operations: DocumentOperations, config: VersionedReplayConfig, header: PHDocumentHeader, dispatch?: SignalDispatch, options?: ReplayDocumentOptions): PHDocument$1<TState>;
|
|
1659
1681
|
//#endregion
|
|
1660
1682
|
//#region document-model/files.d.ts
|
|
1661
|
-
declare function createZip(document: PHDocument): Promise<Uint8Array>;
|
|
1683
|
+
declare function createZip(document: PHDocument$1): Promise<Uint8Array>;
|
|
1662
1684
|
/**
|
|
1663
1685
|
* Creates a minimal ZIP backup from strand data.
|
|
1664
1686
|
* Used when the full document is not available (e.g., in onOperations handler).
|
|
1665
1687
|
* Creates a ZIP with minimal header and empty operations.
|
|
1666
1688
|
*/
|
|
1667
1689
|
declare function createMinimalZip(data: MinimalBackupData): Promise<Uint8Array>;
|
|
1668
|
-
declare function baseSaveToFileHandle(document: PHDocument, input: FileSystemFileHandle): Promise<void>;
|
|
1669
|
-
declare function baseLoadFromInput<TState extends PHBaseState>(input: FileInput, reducer: Reducer<TState>, options?: ReplayDocumentOptions): Promise<PHDocument<TState>>;
|
|
1670
|
-
declare function baseLoadFromInputVersioned<TState extends PHBaseState>(input: FileInput, config: VersionedReplayConfig, options?: ReplayDocumentOptions): Promise<PHDocument<TState>>;
|
|
1690
|
+
declare function baseSaveToFileHandle(document: PHDocument$1, input: FileSystemFileHandle): Promise<void>;
|
|
1691
|
+
declare function baseLoadFromInput<TState extends PHBaseState>(input: FileInput, reducer: Reducer<TState>, options?: ReplayDocumentOptions): Promise<PHDocument$1<TState>>;
|
|
1692
|
+
declare function baseLoadFromInputVersioned<TState extends PHBaseState>(input: FileInput, config: VersionedReplayConfig, options?: ReplayDocumentOptions): Promise<PHDocument$1<TState>>;
|
|
1671
1693
|
type BulkArchiveEntry = {
|
|
1672
1694
|
/** "/"-separated zip path of a file entry (no trailing slash). */
|
|
1673
1695
|
path: string;
|
|
@@ -1774,6 +1796,34 @@ declare const createSignedHeader: (unsignedHeader: PHDocumentHeader, documentTyp
|
|
|
1774
1796
|
*/
|
|
1775
1797
|
declare const createSignedHeaderForSigner: (documentType: string, signer: ISigner) => Promise<PHDocumentHeader>;
|
|
1776
1798
|
//#endregion
|
|
1799
|
+
//#region document-model/new-document.d.ts
|
|
1800
|
+
/** What a new document takes besides the client's selected versions. */
|
|
1801
|
+
type NewDocumentHeaderOptions = {
|
|
1802
|
+
/** Merged over the selected versions; `signature: 2` makes it v2-required. */
|
|
1803
|
+
protocolVersions?: ProtocolVersions;
|
|
1804
|
+
/** Overrides the client's creation default. */
|
|
1805
|
+
signaturePolicy?: SignaturePolicy$1;
|
|
1806
|
+
/** Passed to the model's createDocument, which fills what it leaves out. */
|
|
1807
|
+
initialState?: Partial<PHBaseState>;
|
|
1808
|
+
name?: string;
|
|
1809
|
+
/** Kept only under the legacy policy; any other policy derives the id. */
|
|
1810
|
+
id?: string;
|
|
1811
|
+
};
|
|
1812
|
+
type CreateProtocolVersionsOptions = {
|
|
1813
|
+
/**
|
|
1814
|
+
* The new document's type, which fits base-reducer to its reducer.
|
|
1815
|
+
* `undefined` only where the type is not known, e.g. a legacy request.
|
|
1816
|
+
*/
|
|
1817
|
+
documentType: string | undefined;
|
|
1818
|
+
parentIdentifier?: string;
|
|
1819
|
+
};
|
|
1820
|
+
/** A header's versions are its creator's choice; only a versionless legacy header is selected for. */
|
|
1821
|
+
declare function createVersionsOf(document: PHDocument$1, select: (options: CreateProtocolVersionsOptions) => Promise<ProtocolVersions>, parentIdentifier?: string): Promise<ProtocolVersions>;
|
|
1822
|
+
/** A new, uncreated document of `module`, headed with `baseVersions` under `options`. */
|
|
1823
|
+
declare function headNewDocument(module: DocumentModelModule, options: NewDocumentHeaderOptions | undefined, defaultPolicy: SignaturePolicy$1, baseVersions: ProtocolVersions): PHDocument$1;
|
|
1824
|
+
/** The registered module for a type: the requested version, else the latest. */
|
|
1825
|
+
declare function selectDocumentModelModule(modules: readonly DocumentModelModule[], documentModelType: string, documentModelVersion?: number): DocumentModelModule;
|
|
1826
|
+
//#endregion
|
|
1777
1827
|
//#region document-model/peer-agreement.d.ts
|
|
1778
1828
|
/** The reactor feature flags a capability's support is a function of. */
|
|
1779
1829
|
type PeerCapabilityFlags = {
|
|
@@ -1866,6 +1916,17 @@ declare function selectProtocolVersions(input: {
|
|
|
1866
1916
|
}): {
|
|
1867
1917
|
[protocol: string]: number;
|
|
1868
1918
|
};
|
|
1919
|
+
/**
|
|
1920
|
+
* Another reactor's selection for a new document, within `supports`: a
|
|
1921
|
+
* negotiated protocol drops to the highest supported version at or below it,
|
|
1922
|
+
* or takes its baseline when absent; another known protocol must be
|
|
1923
|
+
* supported; an unknown one passes, as refusalFor admits it.
|
|
1924
|
+
*/
|
|
1925
|
+
declare function capSelection(selected: {
|
|
1926
|
+
readonly [protocol: string]: number;
|
|
1927
|
+
} | undefined, capabilities: readonly PeerCapability[], supports: Supports): {
|
|
1928
|
+
[protocol: string]: number;
|
|
1929
|
+
};
|
|
1869
1930
|
//#endregion
|
|
1870
1931
|
//#region document-model/purge.d.ts
|
|
1871
1932
|
declare const PURGE_DOCUMENT = "PURGE_DOCUMENT";
|
|
@@ -1896,7 +1957,7 @@ declare function purgedProtocolVersions(): {
|
|
|
1896
1957
|
};
|
|
1897
1958
|
//#endregion
|
|
1898
1959
|
//#region document-model/reducer.d.ts
|
|
1899
|
-
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<TState>;
|
|
1960
|
+
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>;
|
|
1900
1961
|
/**
|
|
1901
1962
|
* Updates the document state based on the provided action.
|
|
1902
1963
|
*
|
|
@@ -1907,7 +1968,7 @@ declare function replayOperations<TState extends PHBaseState = PHBaseState>(init
|
|
|
1907
1968
|
* @param context The operation context for deterministic ID generation.
|
|
1908
1969
|
* @returns The updated document state.
|
|
1909
1970
|
*/
|
|
1910
|
-
declare function updateDocument<TDocument extends PHDocument>(document: TDocument, action: Action, reuseLastOperationIndex: boolean, skip: number, context: OperationContext, operation?: Operation, skipIndexValidation?: boolean): TDocument;
|
|
1971
|
+
declare function updateDocument<TDocument extends PHDocument$1>(document: TDocument, action: Action, reuseLastOperationIndex: boolean, skip: number, context: OperationContext, operation?: Operation, skipIndexValidation?: boolean): TDocument;
|
|
1911
1972
|
/**
|
|
1912
1973
|
* Processes an UNDO or REDO action.
|
|
1913
1974
|
*
|
|
@@ -1916,8 +1977,8 @@ declare function updateDocument<TDocument extends PHDocument>(document: TDocumen
|
|
|
1916
1977
|
* @param skip The number of operations to skip before applying the action.
|
|
1917
1978
|
* @returns The updated document, calculated skip value and transformed action (if applied).
|
|
1918
1979
|
*/
|
|
1919
|
-
declare function processUndoRedo<TState extends PHBaseState = PHBaseState>(document: PHDocument<TState>, action: Action, skip: number, protocolVersion?: number): {
|
|
1920
|
-
document: PHDocument<TState>;
|
|
1980
|
+
declare function processUndoRedo<TState extends PHBaseState = PHBaseState>(document: PHDocument$1<TState>, action: Action, skip: number, protocolVersion?: number): {
|
|
1981
|
+
document: PHDocument$1<TState>;
|
|
1921
1982
|
action: Action;
|
|
1922
1983
|
skip: number;
|
|
1923
1984
|
reuseLastOperationIndex: boolean;
|
|
@@ -1934,7 +1995,7 @@ declare function processUndoRedo<TState extends PHBaseState = PHBaseState>(docum
|
|
|
1934
1995
|
* specific to the document's state.
|
|
1935
1996
|
* @returns The new state of the document.
|
|
1936
1997
|
*/
|
|
1937
|
-
declare function baseReducer<TState extends PHBaseState = PHBaseState>(document: PHDocument<TState>, action: Action, customReducer: StateReducer<TState>, dispatch?: SignalDispatch, options?: ReducerOptions): PHDocument<TState>;
|
|
1998
|
+
declare function baseReducer<TState extends PHBaseState = PHBaseState>(document: PHDocument$1<TState>, action: Action, customReducer: StateReducer<TState>, dispatch?: SignalDispatch, options?: ReducerOptions): PHDocument$1<TState>;
|
|
1938
1999
|
/**
|
|
1939
2000
|
* Helper function to create a document model reducer.
|
|
1940
2001
|
*
|
|
@@ -2724,7 +2785,7 @@ interface IProcessorDispatch {
|
|
|
2724
2785
|
* document's own creation has completed when this resolves; the drive's
|
|
2725
2786
|
* file node has been accepted.
|
|
2726
2787
|
*/
|
|
2727
|
-
createInDrive(driveId: string, document: PHDocument, parentFolder?: string, signal?: AbortSignal): Promise<ProcessorDispatchCreateResult>;
|
|
2788
|
+
createInDrive(driveId: string, document: PHDocument$1, parentFolder?: string, signal?: AbortSignal): Promise<ProcessorDispatchCreateResult>;
|
|
2728
2789
|
/** Deletes a document, and with "cascade" its orphaned children. */
|
|
2729
2790
|
deleteDocument(docId: string, propagate?: ProcessorDeletePropagation, signal?: AbortSignal): Promise<ProcessorDispatchResult>;
|
|
2730
2791
|
}
|
|
@@ -3058,6 +3119,64 @@ declare function createNamespacedQueryBuilder<Schema>(db: IBaseRelationalDb<any>
|
|
|
3058
3119
|
*/
|
|
3059
3120
|
declare function relationalDbToQueryBuilder<TSchema>(query: IBaseRelationalDb<TSchema>): IRelationalQueryBuilder<TSchema>;
|
|
3060
3121
|
//#endregion
|
|
3122
|
+
//#region processors/codegen-status.d.ts
|
|
3123
|
+
/** Where a codegen job for one document stands; `done`, `failed` and `skipped` are settled. */
|
|
3124
|
+
type CodegenState = "queued" | "running" | "waiting-for-install" | "done" | "failed" | "skipped";
|
|
3125
|
+
declare const SETTLED_CODEGEN_STATES: readonly CodegenState[];
|
|
3126
|
+
type CodegenStatus = {
|
|
3127
|
+
documentId: string;
|
|
3128
|
+
documentType: string;
|
|
3129
|
+
/** The module's name, once the job has read the document. */
|
|
3130
|
+
name?: string;
|
|
3131
|
+
state: CodegenState;
|
|
3132
|
+
/** Why it was skipped or failed, or what it waits for. */
|
|
3133
|
+
message?: string;
|
|
3134
|
+
/** Project files the job wrote, relative to the project. */
|
|
3135
|
+
files?: string[];
|
|
3136
|
+
/** ISO timestamp of the last change. */
|
|
3137
|
+
updatedAt: string;
|
|
3138
|
+
};
|
|
3139
|
+
/** A package module the reactor failed to load, e.g. broken generated code. */
|
|
3140
|
+
type PackageLoadFailure = {
|
|
3141
|
+
package: string;
|
|
3142
|
+
/** What was loaded: "document models", "subgraphs", "processors", ... */
|
|
3143
|
+
kind: string;
|
|
3144
|
+
message: string;
|
|
3145
|
+
updatedAt: string;
|
|
3146
|
+
};
|
|
3147
|
+
declare function isSettledCodegenState(state: CodegenState): boolean;
|
|
3148
|
+
/** Vetra's codegen status per document, and failed package loads. The codegen
|
|
3149
|
+
* processor, the package loader and reactor-mcp share it in one process. */
|
|
3150
|
+
declare class CodegenStatusRegistry {
|
|
3151
|
+
#private;
|
|
3152
|
+
/** Records that a codegen processor generates code for `documentTypes`. */
|
|
3153
|
+
watch(documentTypes: readonly string[]): void;
|
|
3154
|
+
/** Whether a codegen processor runs in this process. */
|
|
3155
|
+
get active(): boolean;
|
|
3156
|
+
get documentTypes(): string[];
|
|
3157
|
+
watches(documentType: string): boolean;
|
|
3158
|
+
/** Replaces a document's status; `name` carries over unless given. */
|
|
3159
|
+
set(status: Omit<CodegenStatus, "updatedAt" | "name"> & {
|
|
3160
|
+
name?: string;
|
|
3161
|
+
}): CodegenStatus;
|
|
3162
|
+
get(documentId: string): CodegenStatus | undefined;
|
|
3163
|
+
/** Most recently updated first. */
|
|
3164
|
+
list(): CodegenStatus[];
|
|
3165
|
+
delete(documentId: string): void;
|
|
3166
|
+
/** Records a failed load of `kind` from `pkg`; no `failure` clears it. */
|
|
3167
|
+
reportLoad(pkg: string, kind: string, failure?: string): void;
|
|
3168
|
+
loadFailures(): PackageLoadFailure[];
|
|
3169
|
+
/** Whether `documentId`'s job, or every job when omitted, has settled. */
|
|
3170
|
+
settled(documentId?: string): boolean;
|
|
3171
|
+
/** Resolves to whether the jobs settled within `timeoutMs`. */
|
|
3172
|
+
waitUntilSettled(documentId: string | undefined, timeoutMs: number): Promise<boolean>;
|
|
3173
|
+
subscribe(listener: () => void): () => void;
|
|
3174
|
+
/** Forgets everything; for tests. */
|
|
3175
|
+
clear(): void;
|
|
3176
|
+
}
|
|
3177
|
+
/** The process's codegen status registry. */
|
|
3178
|
+
declare function getCodegenStatusRegistry(): CodegenStatusRegistry;
|
|
3179
|
+
//#endregion
|
|
3061
3180
|
//#region document-model/types.d.ts
|
|
3062
3181
|
type State = {
|
|
3063
3182
|
examples: CodeExample[];
|
|
@@ -3119,7 +3238,7 @@ type DocumentModelPHState = PHBaseState & {
|
|
|
3119
3238
|
global: DocumentModelGlobalState;
|
|
3120
3239
|
local: DocumentModelLocalState;
|
|
3121
3240
|
};
|
|
3122
|
-
type DocumentModelDocument = PHDocument<DocumentModelPHState>;
|
|
3241
|
+
type DocumentModelDocument = PHDocument$1<DocumentModelPHState>;
|
|
3123
3242
|
type DocumentModelAction = DocumentModelHeaderAction | DocumentModelVersioningAction | DocumentModelModuleAction | DocumentModelOperationErrorAction | DocumentModelOperationExampleAction | DocumentModelOperationAction | DocumentModelStateAction;
|
|
3124
3243
|
type AddChangeLogItemInput = {
|
|
3125
3244
|
__typename?: "AddChangeLogItemInput";
|
|
@@ -3986,10 +4105,10 @@ type CopyChildDocumentInput = {
|
|
|
3986
4105
|
type CopyChildDocumentSignal = ISignal<"COPY_CHILD_DOCUMENT", CopyChildDocumentInput>;
|
|
3987
4106
|
type Signal = CreateChildDocumentSignal | CopyChildDocumentSignal | DeleteChildDocumentSignal;
|
|
3988
4107
|
type SignalDispatch = (signal: Signal) => void;
|
|
3989
|
-
type SignalResult = ISignalResult<CreateChildDocumentSignal["type"], CreateChildDocumentSignal["input"], PHDocument> | ISignalResult<CopyChildDocumentSignal["type"], CopyChildDocumentSignal["input"], boolean> | ISignalResult<DeleteChildDocumentSignal["type"], DeleteChildDocumentSignal["input"], PHDocument>;
|
|
4108
|
+
type SignalResult = ISignalResult<CreateChildDocumentSignal["type"], CreateChildDocumentSignal["input"], PHDocument$1> | ISignalResult<CopyChildDocumentSignal["type"], CopyChildDocumentSignal["input"], boolean> | ISignalResult<DeleteChildDocumentSignal["type"], DeleteChildDocumentSignal["input"], PHDocument$1>;
|
|
3990
4109
|
type SignalResults = {
|
|
3991
|
-
CREATE_CHILD_DOCUMENT: PHDocument;
|
|
3992
|
-
COPY_CHILD_DOCUMENT: PHDocument;
|
|
4110
|
+
CREATE_CHILD_DOCUMENT: PHDocument$1;
|
|
4111
|
+
COPY_CHILD_DOCUMENT: PHDocument$1;
|
|
3993
4112
|
DELETE_CHILD_DOCUMENT: boolean;
|
|
3994
4113
|
};
|
|
3995
4114
|
type SignalType<T extends Signal> = T["type"];
|
|
@@ -4033,7 +4152,7 @@ type ReducerOptions = {
|
|
|
4033
4152
|
* A pure function that takes an action and the previous state
|
|
4034
4153
|
* of the document and returns the new state.
|
|
4035
4154
|
*/
|
|
4036
|
-
type Reducer<TState extends PHBaseState = PHBaseState> = (document: PHDocument<TState>, action: Action, dispatch?: SignalDispatch, options?: ReducerOptions) => PHDocument<TState>;
|
|
4155
|
+
type Reducer<TState extends PHBaseState = PHBaseState> = (document: PHDocument$1<TState>, action: Action, dispatch?: SignalDispatch, options?: ReducerOptions) => PHDocument$1<TState>;
|
|
4037
4156
|
type StateReducer<TState extends PHBaseState = PHBaseState> = (state: Draft<TState>, action: Action, dispatch?: SignalDispatch) => TState | undefined;
|
|
4038
4157
|
type MappedOperation = {
|
|
4039
4158
|
ignore: boolean;
|
|
@@ -4074,17 +4193,14 @@ type GetDocumentOptions = ReducerOptions & {
|
|
|
4074
4193
|
};
|
|
4075
4194
|
type ActionErrorCallback = (error: unknown) => void;
|
|
4076
4195
|
type EditorDispatch = (action: Action, onErrorCallback?: ActionErrorCallback) => void;
|
|
4077
|
-
/** Dispatches actions to a document; `onErrors`/`onSuccess` report the outcome.
|
|
4078
|
-
* In Connect, `onErrors` gets an `OperationRejectedError` per rejected action. */
|
|
4079
|
-
type DocumentDispatch<TAction extends Action = Action> = (actionOrActions: TAction | TAction[] | DocumentAction | DocumentAction[] | undefined, onErrors?: (errors: Error[]) => void, onSuccess?: (result: PHDocument) => void) => void;
|
|
4080
4196
|
type EditorBaseProps = {
|
|
4081
4197
|
children?: ReactNode;
|
|
4082
4198
|
className?: string;
|
|
4083
4199
|
};
|
|
4084
4200
|
/** `EditorProps<MyDocument, MyAction>`: the document and dispatch a host passes
|
|
4085
4201
|
* an editor. Bare `EditorProps` leaves them optional, as before. */
|
|
4086
|
-
type EditorProps<TDocument extends PHDocument = never, TAction extends Action = Action> = [TDocument] extends [never] ? EditorBaseProps & {
|
|
4087
|
-
document?: PHDocument;
|
|
4202
|
+
type EditorProps<TDocument extends PHDocument$1 = never, TAction extends Action = Action> = [TDocument] extends [never] ? EditorBaseProps & {
|
|
4203
|
+
document?: PHDocument$1;
|
|
4088
4204
|
dispatch?: DocumentDispatch;
|
|
4089
4205
|
} : EditorBaseProps & {
|
|
4090
4206
|
document: TDocument;
|
|
@@ -4106,7 +4222,7 @@ type HostedEditorProps = {
|
|
|
4106
4222
|
displayToolbar?: boolean;
|
|
4107
4223
|
};
|
|
4108
4224
|
/** Hosts render `Component` with `document` and `dispatch`. */
|
|
4109
|
-
type EditorModule<TDocument extends PHDocument = any, TAction extends Action = any, TProps = HostedEditorProps> = {
|
|
4225
|
+
type EditorModule<TDocument extends PHDocument$1 = any, TAction extends Action = any, TProps = HostedEditorProps> = {
|
|
4110
4226
|
Component: FC<EditorProps<TDocument, TAction> & TProps>;
|
|
4111
4227
|
documentTypes: string[];
|
|
4112
4228
|
config: {
|
|
@@ -4178,15 +4294,15 @@ interface ISigner {
|
|
|
4178
4294
|
}
|
|
4179
4295
|
type IsStateOfType<TState> = (state: unknown) => state is TState;
|
|
4180
4296
|
type AssertIsStateOfType<TState> = (state: unknown) => asserts state is TState;
|
|
4181
|
-
type IsDocumentOfType<TState extends PHBaseState> = (document: unknown) => document is PHDocument<TState>;
|
|
4182
|
-
type AssertIsDocumentOfType<TState extends PHBaseState> = (document: unknown) => asserts document is PHDocument<TState>;
|
|
4297
|
+
type IsDocumentOfType<TState extends PHBaseState> = (document: unknown) => document is PHDocument$1<TState>;
|
|
4298
|
+
type AssertIsDocumentOfType<TState extends PHBaseState> = (document: unknown) => asserts document is PHDocument$1<TState>;
|
|
4183
4299
|
type PartialState<TState> = TState | Partial<TState>;
|
|
4184
4300
|
type CreateState<TState extends PHBaseState = PHBaseState> = (state?: PartialState<TState>) => TState;
|
|
4185
|
-
type SaveToFileHandle = (document: PHDocument, input: FileSystemFileHandle) => void | Promise<void>;
|
|
4186
|
-
type SaveToFile = (document: PHDocument, path: string, name?: string) => string | Promise<string>;
|
|
4187
|
-
type LoadFromInput<TState extends PHBaseState = PHBaseState> = (input: FileInput) => PHDocument<TState> | Promise<PHDocument<TState>>;
|
|
4188
|
-
type LoadFromFile<TState extends PHBaseState = PHBaseState> = (path: string) => PHDocument<TState> | Promise<PHDocument<TState>>;
|
|
4189
|
-
type CreateDocument<TState extends PHBaseState = PHBaseState> = (initialState?: Partial<TState>, createState?: CreateState<TState>) => PHDocument<TState>;
|
|
4301
|
+
type SaveToFileHandle = (document: PHDocument$1, input: FileSystemFileHandle) => void | Promise<void>;
|
|
4302
|
+
type SaveToFile = (document: PHDocument$1, path: string, name?: string) => string | Promise<string>;
|
|
4303
|
+
type LoadFromInput<TState extends PHBaseState = PHBaseState> = (input: FileInput) => PHDocument$1<TState> | Promise<PHDocument$1<TState>>;
|
|
4304
|
+
type LoadFromFile<TState extends PHBaseState = PHBaseState> = (path: string) => PHDocument$1<TState> | Promise<PHDocument$1<TState>>;
|
|
4305
|
+
type CreateDocument<TState extends PHBaseState = PHBaseState> = (initialState?: Partial<TState>, createState?: CreateState<TState>) => PHDocument$1<TState>;
|
|
4190
4306
|
type MinimalBackupData = {
|
|
4191
4307
|
documentId: string;
|
|
4192
4308
|
documentType: string;
|
|
@@ -4408,6 +4524,11 @@ type PowerhouseConfig = {
|
|
|
4408
4524
|
driveId?: string;
|
|
4409
4525
|
driveUrl?: string;
|
|
4410
4526
|
connectPort?: number;
|
|
4527
|
+
/** The Vetra Preview drive `ph vetra` creates in watch mode. */
|
|
4528
|
+
previewDrive?: {
|
|
4529
|
+
/** The id of the drive app the drive opens in, set each time `ph vetra` starts. */
|
|
4530
|
+
app?: string;
|
|
4531
|
+
};
|
|
4411
4532
|
};
|
|
4412
4533
|
assistant?: {
|
|
4413
4534
|
port?: number;
|
|
@@ -4419,6 +4540,6 @@ type PowerhouseConfig = {
|
|
|
4419
4540
|
connect?: PHConnectRuntimeConfig;
|
|
4420
4541
|
};
|
|
4421
4542
|
//#endregion
|
|
4422
|
-
export { ServiceActions as $, UpdateRelationshipActionInput as $a, UpdateChangeLogItemInputSchema as $c, MoveGrantActionInputSchema as $d, baseActions as $f, SetModuleDescriptionInput as $i, validateHeader as $l, createBaseState as $m, MoveOperationAction as $n, RouteSpec as $o, PHDocument as $p, PhAiToolAnnotations as $r, DocumentModelInputSchema as $s, DocumentModelDocument as $t, DOCUMENT_DELETED_REASON as $u, PHConnectPwaUrlPattern as A, Set_Name as Aa, SetModuleDescriptionInputSchema as Ac, assertValidGrantUpsert as Ad, CanonicalJsonError as Af, setNameOperation as Ah, SaveToFileHandle as Ai, PeerCapability as Al, readOnly as Am, GetDocumentOptions as An, ProcessorDispatchResult as Ao, setModelName as Ap, MutationSetModuleNameArgs as Ar, validateModuleOperation as As, CreateDocument as At, DowngradeNotSupportedError as Au, PHPackageProvider as B, SkipHeaderOperations as Ba, SetOperationReducerInputSchema as Bc, AuthDecision as Bd, v2TupleProblem as Bf, deserializeSignature as Bh, SetAuthorWebsiteAction as Bi, localSupports as Bl, withSignaturePolicy as Bm, InputMaybe as Bn, AuthorizerResult as Bo, setOperationReducer as Bp, MutationSetOperationTemplateArgs as Br, AddStateExampleInputSchema as Bs, DeleteModuleAction as Bt, groupMembershipActionTypes as Bu, PHConnectPackages as C, SetOperationTemplateAction as Ca, SetAuthorNameInputSchema as Cc, InvalidGrantError as Cd, TransportAction as Cf, DocumentOperations as Ch, ReorderOperationExamplesAction as Ci, purgedProtocolVersions as Cl, mapSkippedOperationsV2 as Cm, DocumentSpecification as Cn, IProcessorDispatch as Co, reorderStateExamples as Cp, MutationSetAuthorWebsiteArgs as Cr, findOperationExampleOrThrow as Cs, CodeExample as Ct, applyUpgradeDocumentAction as Cu, PHConnectPwaIcon as D, SetPreferredEditorOperation as Da, SetModelExtensionInputSchema as Dc, MAX_CONDITION_NODES as Dd, ACTION_SIGNATURE_V2_PREFIX as Df, OperationWithContext$1 as Dh, ReplayDocumentOptions as Di, MARKER_REFUSAL_FEATURE as Dl, parseResultingState as Dm, EditorProps as Dn, ProcessorApps as Do, setModelDescription as Dp, MutationSetModelIdArgs as Dr, isValidOperationNameFormat as Ds, CopyChildDocumentSignal as Dt, AuthAlreadyInitializedError as Du, PHConnectPwaFileHandler as E, SetPreferredEditorActionInput as Ea, SetModelDescriptionInputSchema as Ec, MAX_CONDITION_DEPTH as Ed, toTransportAction as Ef, OperationOutcome as Eh, ReorderStateExamplesInput as Ei, HoldReason as El, operationsAreEqual as Em, EditorModule as En, ProcessorApp as Eo, setInitialState as Ep, MutationSetModelExtensionArgs as Er, isReservedOperationName as Es, CopyChildDocumentInput as Et, AuthActionNotAllowedError as Eu, PHConnectRuntimeConfig as F, SignalResults as Fa, SetOperationErrorCodeInputSchema as Fc, grantProblem as Fd, canonicalJson as Ff, AppActionSigner as Fh, SchemaSetPreferredEditorAction as Fi, coversLocal as Fl, skipHeaderOperations as Fm, IOperation as Fn, ProcessorRecord as Fo, setOperationErrorCode as Fp, MutationSetOperationErrorNameArgs as Fr, AddChangeLogItemInputSchema as Fs, DeleteChangeLogItemInput as Ft, InvalidActionInputZodError as Fu, PHSchemedColor as G, UndoAction as Ga, SetPreferredEditorActionSchema as Gc, AuthVerb as Gd, actionSigner as Gf, SetModelDescriptionInput as Gi, selectProtocolVersions as Gl, Operand as Gm, MakeEmpty as Gn, RouteActor as Go, setStateSchema as Gp, MutationUpdateStateExampleArgs as Gr, DeleteChangeLogItemInputSchema as Gs, DeleteOperationExampleAction as Gt, DocumentModelSchema as Gu, PHReactorRenown as H, StateReducer as Ha, SetOperationScopeInputSchema as Hc, AuthRefusal as Hd, ActionContext as Hf, DEFAULT_ANALYTICS_PROCESSOR_DB_NAME as Hh, SetInitialStateAction as Hi, mergePeerCapabilities as Hl, Capability as Hm, IsStateOfType as Hn, IWebhookEndpoints as Ho, setOperationScope as Hp, MutationUndoArgs as Hr, CodeExampleSchema as Hs, DeleteOperationAction as Ht, BaseDocumentStateSchema as Hu, PHConnectSentry as I, SignalType as Ia, SetOperationErrorDescriptionInputSchema as Ic, isPlainValue as Id, hashActionV2 as If, HashConfig as Ih, SchemaUndoAction as Ii, holdReason as Il, sortMappedOperations as Im, ISignal as In, ProcessorRerunOptions as Io, setOperationErrorDescription as Ip, MutationSetOperationErrorTemplateArgs as Ir, AddModuleInputSchema as Is, DeleteChildDocumentInput as It, InvalidAuthVersionError as Iu, ParsedCmdResult as J, UpdateChangeLogItemAction as Ja, Set_PreferredEditorSchema as Jc, InitializeAuthActionInput as Jd, addModule as Jf, SetModelIdAction as Ji, createSignedHeader as Jl, PHDocumentState as Jm, Manifest as Jn, RouteBody as Jo, updateOperationExample as Jp, OperationIndex as Jr, DeleteOperationExampleInputSchema as Js, DeleteStateExampleAction as Jt, isDocumentModelDocument as Ju, PHSchemedImage as K, UndoActionInput as Ka, SetStateSchemaInputSchema as Kc, ConditionContext as Kd, actions as Kf, SetModelExtensionAction as Ki, createCopyHeader as Kl, PHAuthState as Km, MakeMaybe as Kn, RouteAuth as Ko, undo as Kp, NOOPAction as Kr, DeleteModuleInputSchema as Ks, DeleteOperationExampleInput as Kt, assertIsDocumentModelDocument as Ku, PHEdges as L, SignatureVerificationHandler as La, SetOperationErrorNameInputSchema as Lc, referencedGroupIds as Ld, isV2ActionHash as Lf, PHDocumentSignatureInfo as Lh, ScopeState as Li, isOlderManifest as Ll, sortOperations as Lm, ISignalResult as Ln, ProcessorStatus as Lo, setOperationErrorName as Lp, MutationSetOperationNameArgs as Lr, AddOperationErrorInputSchema as Ls, DeleteChildDocumentSignal as Lt, UnsupportedDocumentModelVersionError as Lu, PHConnectReactorFeatureFlags as M, Signal as Ma, SetNameActionInputSchema as Mc, evaluateCondition as Md, actionPreimageV2 as Mf, undoOperation as Mh, SchemaNOOPAction as Mi, PeerManifest as Ml, replayDocument as Mm, IAction as Mn, ProcessorFactoryBuilder as Mo, setModuleName as Mp, MutationSetOperationDescriptionArgs as Mr, validateOperationName as Ms, CreateDocumentActionInput as Mt, GrantNotFoundError as Mu, PHConnectRenown as N, SignalDispatch as Na, SetNameActionSchema as Nc, evaluateGrantStack as Nd, actionSignerIdentity as Nf, undoOperationV2 as Nh, SchemaRedoAction as Ni, ProtocolCapability as Nl, reshuffleByTimestamp as Nm, ID as Nn, ProcessorFilter as No, setName as Np, MutationSetOperationErrorCodeArgs as Nr, validateOperations as Ns, CreateState as Nt, HashMismatchError as Nu, PHConnectPwaManifest as O, SetStateSchemaAction as Oa, SetModelIdInputSchema as Oc, assertAuthAdministrationRetained as Od, ActionSignerIdentity as Of, operationOutcome as Oh, RevisionsFilter as Oi, PEER_CAPABILITIES as Ol, precedes as Om, Exact as On, ProcessorDeletePropagation as Oo, setModelExtension as Op, MutationSetModelNameArgs as Or, validateInitialState as Os, CreateChildDocumentInput as Ot, AuthInitializerNotCreatorError as Ou, PHConnectRenownAdapters as P, SignalResult as Pa, SetOperationDescriptionInputSchema as Pc, evaluateGrants as Pd, actionSigningTarget as Pf, ActionSigner as Ph, SchemaSetNameAction as Pi, Supports as Pl, reshuffleByTimestampAndIndex as Pm, IDocument as Pn, ProcessorPhase as Po, setOperationDescription as Pp, MutationSetOperationErrorDescriptionArgs as Pr, validateStateSchemaName as Ps, DeleteChangeLogItemAction as Pt, InvalidActionInputError as Pu, ServiceAction as Q, UpdateRelationshipAction as Qa, UndoSchema as Qc, MoveGrantActionInput as Qd, addStateExample as Qf, SetModuleDescriptionAction as Qi, sign as Ql, createAuthState as Qm, ModuleSpecification as Qn, RouteOptions as Qo, IntegrityIssueType as Qp, PartialState as Qr, DocumentModelGlobalStateSchema as Qs, DocumentModelAction as Qt, AUTH_VERSION_UNSUPPORTED_REASON as Qu, PHImageRef as R, SigningParameters as Ra, SetOperationErrorTemplateInputSchema as Rc, AUTH_ACTION_TYPES as Rd, signActionV2 as Rf, Signature as Rh, SetAuthorNameAction as Ri, legacySupports as Rl, split as Rm, ISigner as Rn, ReplayStateMode as Ro, setOperationErrorTemplate as Rp, MutationSetOperationReducerArgs as Rr, AddOperationExampleInputSchema as Rs, DeleteDocumentAction as Rt, documentModelDocumentType as Ru, PHConnectOpenPanel as S, SetOperationScopeInput as Sa, ScopeStateSchema as Sc, GroupPrincipalNotAllowedError as Sd, setGrant as Sf, v2RequiredProtocolVersions as Sh, ReorderOperationErrorsInput as Si, purgeMarkerOperation as Sl, mapSkippedOperations as Sm, DocumentOperationsIgnoreMap as Sn, IProcessor as So, reorderOperationExamples as Sp, MutationSetAuthorNameArgs as Sr, findOperationErrorOrThrow as Ss, Author as St, applyDeleteDocumentAction as Su, PHConnectPwaCacheStrategy as T, SetPreferredEditorAction as Ta, SetInitialStateInputSchema as Tc, MAX_CAPABILITY_OPERATIONS as Td, TransportSigner as Tf, OperationContext as Th, ReorderStateExamplesAction as Ti, FeatureCapability as Tl, nextSkipNumber as Tm, EditorDispatch as Tn, IProcessorManager as To, setAuthorWebsite as Tp, MutationSetModelDescriptionArgs as Tr, getAllOperationNames as Ts, ConfigEntryType as Tt, withProtocolVersions as Tu, PHRenownPrivyAdapterConfig as U, SubgraphModule as Ua, SetOperationTemplateInputSchema as Uc, AuthRequest as Ud, actionContext as Uf, DEFAULT_RELATIONAL_PROCESSOR_DB_NAME as Uh, SetInitialStateInput as Ui, peerSupports as Ul, Condition as Um, LoadFromFile as Un, IWebhookScope as Uo, setOperationTemplate as Up, MutationUpdateChangeLogItemInputArgs as Ur, ConfigEntrySchema as Us, DeleteOperationErrorAction as Ut, DocumentModelHeaderSchema as Uu, PHReactorClientMode as V, State as Va, SetOperationSchemaInputSchema as Vc, AuthEvaluation as Vd, Action as Vf, serializeSignature as Vh, SetAuthorWebsiteInput as Vi, manifestRevision as Vl, AuthGroups as Vm, IsDocumentOfType as Vn, IHttpScope as Vo, setOperationSchema as Vp, MutationSetStateSchemaArgs as Vr, AuthorSchema as Vs, DeleteModuleInput as Vt, BaseDocumentHeaderSchema as Vu, PHRenownRainbowAdapterConfig as W, Undo as Wa, SetPreferredEditorActionInputSchema as Wc, AuthSubject as Wd, actionFromAction as Wf, PROCESSOR_APPS as Wh, SetModelDescriptionAction as Wi, readPeerManifest as Wl, Grant as Wm, LoadFromInput as Wn, NodeRouteSpec as Wo, setPreferredEditor as Wp, MutationUpdateOperationExampleArgs as Wr, ConfigEntryTypeSchema as Ws, DeleteOperationErrorInput as Wt, DocumentModelPHStateSchema as Wu, PowerhouseConfig as X, UpdateOperationExampleAction as Xa, UndoActionInputSchema as Xc, MAX_SUPPORTED_AUTH_VERSION as Xd, addOperationError as Xf, SetModelNameAction as Xi, createVerificationSigner as Xl, Principal as Xm, Maybe as Xn, RouteHandler as Xo, verifyOperationSignature as Xp, OperationsByScope as Xr, DeleteStateExampleInputSchema as Xs, DocumentAction as Xt, AUTH_DENIED_BY_GRANT_REASON as Xu, PathValidation as Y, UpdateChangeLogItemInput as Ya, StateSchema as Yc, InitializeAuthActionInputSchema as Yd, addOperation as Yf, SetModelIdInput as Yi, createSignedHeaderForSigner as Yl, PHGroupState as Ym, MappedOperation as Yn, RouteContext as Yo, updateStateExample as Yp, OperationSpecification as Yr, DeleteOperationInputSchema as Ys, DeleteStateExampleInput as Yt, isDocumentModelState as Yu, PowerhousePackage as Z, UpdateOperationExampleInput as Za, UndoActionSchema as Zc, MoveGrantAction as Zd, addOperationExample as Zf, SetModelNameInput as Zi, hasDerivedDocumentId as Zl, backfillAuthState as Zm, MinimalBackupData as Zn, RouteMethod as Zo, IntegrityIssueSubType as Zp, PartialRecord as Zr, DocumentActionSchema as Zs, DocumentDispatch as Zt, AUTH_NO_GRANT_REASON as Zu, PHConnectDrives as _, SetOperationReducerAction as _a, ReorderModuleOperationsInputSchema as _c, documentModelInitialGlobalState as _d, isDocumentCreator as _f, isDerivedDocumentId as _h, ReorderModuleOperationsAction as _i, updateDocument as _l, hashDocumentStateForScope as _m, DocumentModelStateAction as _n, IRelationalDbProcessor as _o, releaseNewVersion as _p, MutationReorderModuleOperationsArgs as _r, assertModuleIdUnique as _s, AddRelationshipActionInput as _t, VersionedReplayConfig as _u, PHBackground as a, SetOperationDescriptionAction as aa, OperationScopeSchema as ac, buildOperationSignatureParams as ad, SetGrantActionInputSchema as af, defaultBaseState as ah, PurgeDocumentActionInput as ai, documentModelModuleReducer as al, baseCreateDocument as am, DocumentModelLib as an, ValidationError as ao, deleteOperation as ap, MutationAddOperationErrorArgs as ar, WebhookHashAlgorithm as as, Actions as at, createMinimalZip as au, PHConnectInstance as b, SetOperationSchemaInput as ba, ReorderOperationExamplesInputSchema as bc, AuthAdministrationMissingError as bd, removeGrant as bf, requestedSignaturePolicy as bh, ReorderModulesInput as bi, isPurgeMarker as bl, isUndo as bm, DocumentModelVersioningAction as bn, RelationalDbProcessor as bo, reorderModules as bp, MutationReorderOperationExamplesArgs as br, assertOperationIdUnique as bs, AssertIsDocumentOfType as bt, UpgradeReducer as bu, PHConnectAi as c, SetOperationErrorCodeInput as ca, PieceModulesSchema as cc, hashBrowser as cd, applyMoveGrantAction as cf, defaultLocalState as ch, RedoAction as ci, documentModelOperationReducer as cl, checkOperationsIntegrity as cm, DocumentModelModuleAction as cn, createRelationalDb as co, deleteStateExample as cp, MutationDeleteChangeLogItemInputArgs as cr, WebhookRequest as cs, AddModuleAction as ct, documentModelSaveToFileHandle as cu, PHConnectCompositionEntry as d, SetOperationErrorNameAction as da, PublisherSchema as dc, HASH_ALGORITHM_SHA256 as dd, assertAuthPreservedOnDuplicate as df, DocumentIdParams as dh, ReducerOptions as di, documentModelStateSchemaReducer as dl, filterDuplicatedOperations as dm, DocumentModelOperationErrorAction as dn, relationalDbToQueryBuilder as do, noop as dp, MutationDeleteOperationErrorArgs as dr, WebhookSpec as ds, AddOperationErrorAction as dt, isDocumentZip as du, SetModuleNameAction as ea, DocumentSpecificationSchema as ec, isDenied as ed, RemoveGrantAction as ef, createDocumentState as eh, PhAiToolDescriptor as ei, UpdateOperationExampleInputSchema as el, PHDocumentHeader as em, DocumentModelDocumentModelModule as en, UpdateStateExampleAction as eo, buildOperationSignature as ep, MoveOperationInput as er, RouteTransport as es, DEFAULT_REGISTRY_URL as et, verify as eu, PHConnectDefaultDrive as f, SetOperationErrorNameInput as fa, PwaConfigSchema as fc, HASH_ALGORITHM_SHA512 as fd, assertAuthScopeActionAllowed as ff, ProtocolVersions as fh, ReleaseNewVersionAction as fi, documentModelVersioningReducer as fl, garbageCollect as fm, DocumentModelOperationErrorOperations as fn, DOCUMENT_ID_COLUMNS as fo, operationExampleCreators as fp, MutationDeleteOperationExampleArgs as fr, WebhookVerification as fs, AddOperationErrorInput as ft, parseBulkArchive as fu, PHConnectDriveSections as g, SetOperationNameInput as ga, ReorderChangeLogItemsInputSchema as gc, documentModelGlobalState as gd, isAuthAction as gf, deriveDocumentId as gh, ReorderChangeLogItemsInput as gi, replayOperations as gl, groupOperationsByScope as gm, DocumentModelPHState as gn, IRelationalDb as go, redo as gp, MutationReorderChangeLogItemsInputArgs as gr, ReservedOperationName as gs, AddRelationshipAction as gt, VersionedReducers as gu, PHConnectDriveSection as h, SetOperationNameAction as ha, RedoSchema as hc, documentModelFileExtension as hd, initializeAuth as hf, SignaturePolicy$1 as hh, ReorderChangeLogItemsAction as hi, processUndoRedo as hl, getDocumentLastModified as hm, DocumentModelOperationOperations as hn, IBaseRelationalDb as ho, operationWithContext as hp, MutationRedoArgs as hr, RESERVED_OPERATION_NAMES as hs, AddOperationInput as ht, zipEntries as hu, LogLevels as i, SetNameOperation as ia, OperationErrorSchema as ic, buildOperationSignatureMessage as id, SetGrantActionInput as if, defaultAuthState as ih, PurgeDocumentAction as ii, documentModelHeaderReducer as il, attachBranch as im, DocumentModelInput as in, User as io, deleteModule as ip, MutationAddOperationArgs as ir, WebhookField as is, ActionVerificationHandler as it, baseSaveToFileHandle as iu, PHConnectReactor as j, Set_PreferredEditor as ja, SetModuleNameInputSchema as jc, assertValidInitialGrants as jd, DOCUMENT_SCOPE_ACTION_TYPES as jf, setPreferredEditorOperation as jh, Scalars as ji, PeerCapabilityFlags as jl, removeExistingOperations as jm, HostedEditorProps as jn, ProcessorFactory as jo, setModuleDescription as jp, MutationSetNameArgs as jr, validateModules as js, CreateDocumentAction as jt, FileSystemError as ju, PHConnectPwaRuntimeCaching as k, SetStateSchemaInput as ka, SetModelNameInputSchema as kc, assertValidGrant as kd, ActionSigningTarget as kf, redoOperation as kh, SaveToFile as ki, PEER_MANIFEST_FORMAT as kl, prepareOperations as km, FileInput as kn, ProcessorDispatchCreateResult as ko, setModelId as kp, MutationSetModuleDescriptionArgs as kr, validateModule as ks, CreateChildDocumentSignal as kt, AuthPolicyNotPreservedError as ku, PHConnectApp as l, SetOperationErrorDescriptionAction as la, PowerhouseModuleSchema as lc, hex2ab as ld, applyRemoveGrantAction as lf, defaultPHState as lh, RedoActionInput as li, documentModelReducer as ll, diffOperations as lm, DocumentModelModuleOperations as ln, hashNamespace as lo, documentModelActions as lp, MutationDeleteModuleArgs as lr, WebhookScheme as ls, AddModuleInput as lt, fetchFileBrowser as lu, PHConnectDefaultDriveRemote as m, SetOperationErrorTemplateInput as ma, RedoActionSchema as mc, HASH_ENCODING_HEX as md, evaluate as mf, SIGNATURE_PROTOCOL_V2 as mh, RemoveRelationshipActionInput as mi, createReducer as ml, garbageCollectV2 as mm, DocumentModelOperationExampleOperations as mn, HashAlgorithms as mo, operationFromOperation as mp, MutationMoveOperationArgs as mr, OPERATION_NAME_PATTERN as ms, AddOperationExampleInput as mt, writeFileBrowser as mu, DrivePreserveStrategy as n, SetNameAction as na, ModuleSchema as nc, base58Decode as nd, RemoveGrantActionInputSchema as nf, createLocalState as nh, PowerhouseModule as ni, definedNonNullAnySchema as nl, addUndo as nm, DocumentModelHeaderAction as nn, UpgradeDocumentAction as no, createAction as np, MutationAddChangeLogItemInputArgs as nr, ScopedRouteHandle as ns, ActionSignatureContext as nt, baseLoadFromInput as nu, PHBackgroundLayer as o, SetOperationDescriptionInput as oa, OperationSpecificationSchema as oc, bytesToBase64Url as od, applyAuthAction as of, defaultDocumentState as oh, Query as oi, documentModelOperationErrorReducer as ol, baseReducerVersion as om, DocumentModelLocalState as on, createNamespacedDb as oo, deleteOperationError as op, MutationAddOperationExampleArgs as or, WebhookPolicy as os, AddChangeLogItemAction as ot, createZip as ou, PHConnectDefaultDriveLocal as p, SetOperationErrorTemplateAction as pa, RedoActionInputSchema as pc, HASH_ENCODING_BASE64 as pd, decide as pf, SIGNATURE_PROTOCOL as ph, RemoveRelationshipAction as pi, baseReducer as pl, garbageCollectDocumentOperations as pm, DocumentModelOperationExampleAction as pn, ExtractProcessorSchemaOrSelf as po, operationFromAction as pp, MutationDeleteStateExampleArgs as pr, deletedDocumentId as ps, AddOperationExampleAction as pt, readFileBrowser as pu, PackageManagerArgs as q, UndoRedoAction as qa, Set_NameSchema as qc, InitializeAuthAction as qd, addChangeLogItem as qf, SetModelExtensionInput as qi, createPresignedHeader as ql, PHBaseState as qm, MakeOptional as qn, RouteAuthorizer as qo, updateChangeLogItem as qp, OperationErrorSpecification as qr, DeleteOperationErrorInputSchema as qs, DeleteOperationInput as qt, assertIsDocumentModelState as qu, LogLevel as r, SetNameActionInput as ra, MoveOperationInputSchema as rc, base64UrlToBytes as rd, SetGrantAction as rf, createState as rh, Publisher as ri, isDefinedNonNullAny as rl, appendWithoutApplying as rm, DocumentModelHeaderOperations as rn, UpgradeDocumentActionInput as ro, deleteChangeLogItem as rp, MutationAddModuleArgs as rr, WebhookEndpointInfo as rs, ActionSigningHandler as rt, baseLoadFromInputVersioned as ru, PHBackgroundLayers as s, SetOperationErrorCodeAction as sa, PieceModuleSchema as sc, getUnixTimestamp as sd, applyInitializeAuthAction as sf, defaultGlobalState as sh, Redo as si, documentModelOperationExampleReducer as sl, checkCleanedOperationsIntegrity as sm, DocumentModelModule as sn, createNamespacedQueryBuilder as so, deleteOperationExample as sp, MutationAddStateExampleArgs as sr, WebhookReply as ss, AddChangeLogItemInput as st, documentModelLoadFromInput as su, DrivePreserveStrategies as t, SetModuleNameInput as ta, ManifestSchema as tc, ab2hex as td, RemoveGrantActionInput as tf, createGlobalState as th, PieceModule as ti, UpdateStateExampleInputSchema as tl, PHDocumentMeta as tm, DocumentModelGlobalState as tn, UpdateStateExampleInput as to, buildSignedAction as tp, Mutation as tr, RouteUser as ts, ActionErrorCallback as tt, BulkArchiveEntry as tu, PHConnectBranding as u, SetOperationErrorDescriptionInput as ua, PowerhouseModulesSchema as uc, HASH_ALGORITHM_SHA1 as ud, applySetGrantAction as uf, DEFAULT_SIGNATURE_POLICY as uh, Reducer as ui, documentModelStateReducer as ul, filterDocumentOperationsResultingState as um, DocumentModelOperationAction as un, namespaceSchemaOf as uo, moveOperation as up, MutationDeleteOperationArgs as ur, WebhookSignatureEncoding as us, AddOperationAction as ut, getFileBrowser as uu, PHConnectExplorerIcons as v, SetOperationReducerInput as va, ReorderModulesInputSchema as vc, documentModelInitialLocalState as vd, mentionedGroupIds as vf, isSignaturePolicy as vh, ReorderModuleOperationsInput as vi, PURGE_DOCUMENT as vl, isDocumentAction as vm, DocumentModelStateOperations as vn, IRelationalQueryBuilder as vo, reorderChangeLogItems as vp, MutationReorderModulesArgs as vr, assertOperationErrorIdUnique as vs, AddStateExampleAction as vt, replayDocumentVersioned as vu, PHConnectPwa as w, SetOperationTemplateInput as wa, SetAuthorWebsiteInputSchema as wc, MAX_AUTH_GRANTS as wd, TransportActionContext as wf, Operation as wh, ReorderOperationExamplesInput as wi, DOCUMENT_PURGE_PROTOCOL as wl, merge as wm, ENSInfo as wn, IProcessorHostModuleBase as wo, setAuthorName as wp, MutationSetInitialStateArgs as wr, findOperationOrThrow as ws, ConfigEntry as wt, computeUpgradeTransitions as wu, PHConnectLoader as x, SetOperationScopeAction as xa, ReorderStateExamplesInputSchema as xc, GrantSchema as xd, resolveSnapshotAuth as xf, signaturePolicyOf as xh, ReorderOperationErrorsAction as xi, purgeDocumentAction as xl, isUndoRedo as xm, DocumentModelVersioningOperations as xn, RelationalDbProcessorClass as xo, reorderOperationErrors as xp, MutationReorderStateExamplesArgs as xr, findModuleOrThrow as xs, AssertIsStateOfType as xt, UpgradeTransition as xu, PHConnectHome as y, SetOperationSchemaAction as ya, ReorderOperationErrorsInputSchema as yc, AuthAdministrationLockoutError as yd, moveGrant as yf, protocolVersionsFor as yh, ReorderModulesAction as yi, PurgeMarkerOperation as yl, isNoopOperation as ym, DocumentModelUtils as yn, IRelationalQueryMethods as yo, reorderModuleOperations as yp, MutationReorderOperationErrorsArgs as yr, assertOperationExampleIdUnique as ys, AddStateExampleInput as yt, UpgradeManifest as yu, PHLength as z, SkipHeaderOperationIndex as za, SetOperationNameInputSchema as zc, AuthAction as zd, targetDocumentId as zf, UserActionSigner as zh, SetAuthorNameInput as zi, localPeerManifest as zl, updateHeaderRevision as zm, Incremental as zn, TrackedProcessor as zo, setOperationName as zp, MutationSetOperationSchemaArgs as zr, AddOperationInputSchema as zs, DeleteDocumentActionInput as zt, groupDocumentType as zu };
|
|
4543
|
+
export { ServiceActions as $, UpdateOperationExampleInput as $a, SetPreferredEditorActionInputSchema as $c, evaluateGrantStack as $d, actionSignerIdentity as $f, undoOperation as $h, SetModelNameInput as $i, peerSupports as $l, reshuffleByTimestamp as $m, ModuleSpecification as $n, NodeRouteSpec as $o, setName as $p, PartialState as $r, ConfigEntryTypeSchema as $s, DocumentModelAction as $t, documentModelDocumentType as $u, PHConnectPwaUrlPattern as A, SetStateSchemaAction as Aa, ReorderStateExamplesInputSchema as Ac, HASH_ALGORITHM_SHA1 as Ad, applySetGrantAction as Af, defaultPHState as Ah, RevisionsFilter as Ai, purgeDocumentAction as Al, filterDocumentOperationsResultingState as Am, FileInput as An, RelationalDbProcessorClass as Ao, moveOperation as Ap, MutationSetModuleDescriptionArgs as Ar, findModuleOrThrow as As, CreateDocument as At, zipEntries as Au, PHPackageProvider as B, SigningParameters as Ba, SetModuleNameInputSchema as Bc, AuthAdministrationMissingError as Bd, removeGrant as Bf, protocolVersionsFor as Bh, SetAuthorNameAction as Bi, PeerCapabilityFlags as Bl, isUndo as Bm, Incremental as Bn, ProcessorFactory as Bo, reorderModules as Bp, MutationSetOperationSchemaArgs as Br, validateModules as Bs, DeleteModuleAction as Bt, withProtocolVersions as Bu, PHConnectPackages as C, SetOperationScopeAction as Ca, RedoActionSchema as Cc, base64UrlToBytes as Cd, SetGrantAction as Cf, createLocalState as Ch, ReorderOperationErrorsAction as Ci, createReducer as Cl, appendWithoutApplying as Cm, DocumentOperationsIgnoreMap as Cn, HashAlgorithms as Co, deleteChangeLogItem as Cp, MutationSetAuthorNameArgs as Cr, OPERATION_NAME_PATTERN as Cs, CodeExample as Ct, documentModelSaveToFileHandle as Cu, PHConnectPwaIcon as D, SetPreferredEditorAction as Da, ReorderModulesInputSchema as Dc, getUnixTimestamp as Dd, applyInitializeAuthAction as Df, defaultDocumentState as Dh, ReorderStateExamplesAction as Di, PURGE_DOCUMENT as Dl, checkCleanedOperationsIntegrity as Dm, EditorModule as Dn, IRelationalQueryBuilder as Do, deleteOperationExample as Dp, MutationSetModelExtensionArgs as Dr, assertOperationErrorIdUnique as Ds, CopyChildDocumentSignal as Dt, parseBulkArchive as Du, PHConnectPwaFileHandler as E, SetOperationTemplateInput as Ea, ReorderModuleOperationsInputSchema as Ec, bytesToBase64Url as Ed, applyAuthAction as Ef, defaultBaseState as Eh, ReorderOperationExamplesInput as Ei, updateDocument as El, baseReducerVersion as Em, EditorDispatch as En, IRelationalDbProcessor as Eo, deleteOperationError as Ep, MutationSetModelDescriptionArgs as Er, assertModuleIdUnique as Es, CopyChildDocumentInput as Et, isDocumentZip as Eu, PHConnectRuntimeConfig as F, SignalDispatch as Fa, SetModelDescriptionInputSchema as Fc, documentModelFileExtension as Fd, initializeAuth as Ff, SIGNATURE_PROTOCOL_V2 as Fh, SchemaRedoAction as Fi, HoldReason as Fl, getDocumentLastModified as Fm, IDocument as Fn, ProcessorApp as Fo, operationWithContext as Fp, MutationSetOperationErrorDescriptionArgs as Fr, isReservedOperationName as Fs, DeleteChangeLogItemInput as Ft, UpgradeReducer as Fu, PHSchemedColor as G, SubgraphModule as Ga, SetOperationErrorDescriptionInputSchema as Gc, MAX_CAPABILITY_OPERATIONS as Gd, TransportSigner as Gf, Operation as Gh, SetInitialStateInput as Gi, coversLocal as Gl, nextSkipNumber as Gm, LoadFromInput as Gn, ProcessorRerunOptions as Go, setAuthorWebsite as Gp, MutationUpdateOperationExampleArgs as Gr, AddModuleInputSchema as Gs, DeleteOperationExampleAction as Gt, DowngradeNotSupportedError as Gu, PHReactorRenown as H, SkipHeaderOperations as Ha, SetNameActionSchema as Hc, GroupPrincipalNotAllowedError as Hd, setGrant as Hf, signaturePolicyOf as Hh, SetAuthorWebsiteAction as Hi, ProtocolCapability as Hl, mapSkippedOperations as Hm, IsDocumentOfType as Hn, ProcessorFilter as Ho, reorderOperationExamples as Hp, MutationSetStateSchemaArgs as Hr, validateOperations as Hs, DeleteOperationAction as Ht, AuthAlreadyInitializedError as Hu, PHConnectSentry as I, SignalResult as Ia, SetModelExtensionInputSchema as Ic, documentModelGlobalState as Id, isAuthAction as If, SignaturePolicy$1 as Ih, SchemaSetNameAction as Ii, MARKER_REFUSAL_FEATURE as Il, groupOperationsByScope as Im, IOperation as In, ProcessorApps as Io, redo as Ip, MutationSetOperationErrorNameArgs as Ir, isValidOperationNameFormat as Is, DeleteChildDocumentInput as It, UpgradeTransition as Iu, ParsedCmdResult as J, UndoActionInput as Ja, SetOperationNameInputSchema as Jc, assertAuthAdministrationRetained as Jd, ActionSignerIdentity as Jf, OperationWithContext$1 as Jh, SetModelExtensionAction as Ji, legacySupports as Jl, precedes as Jm, MakeOptional as Jn, TrackedProcessor as Jo, setModelExtension as Jp, OperationErrorSpecification as Jr, AddOperationInputSchema as Js, DeleteStateExampleAction as Jt, HashMismatchError as Ju, PHSchemedImage as K, Undo as Ka, SetOperationErrorNameInputSchema as Kc, MAX_CONDITION_DEPTH as Kd, toTransportAction as Kf, OperationContext as Kh, SetModelDescriptionAction as Ki, holdReason as Kl, operationsAreEqual as Km, MakeEmpty as Kn, ProcessorStatus as Ko, setInitialState as Kp, MutationUpdateStateExampleArgs as Kr, AddOperationErrorInputSchema as Ks, DeleteOperationExampleInput as Kt, FileSystemError as Ku, PHEdges as L, SignalResults as La, SetModelIdInputSchema as Lc, documentModelInitialGlobalState as Ld, isDocumentCreator as Lf, deriveDocumentId as Lh, SchemaSetPreferredEditorAction as Li, PEER_CAPABILITIES as Ll, hashDocumentStateForScope as Lm, ISignal as Ln, ProcessorDeletePropagation as Lo, releaseNewVersion as Lp, MutationSetOperationErrorTemplateArgs as Lr, validateInitialState as Ls, DeleteChildDocumentSignal as Lt, applyDeleteDocumentAction as Lu, PHConnectReactorFeatureFlags as M, Set_Name as Ma, SetAuthorNameInputSchema as Mc, HASH_ALGORITHM_SHA512 as Md, assertAuthScopeActionAllowed as Mf, DocumentIdParams as Mh, SaveToFileHandle as Mi, purgedProtocolVersions as Ml, garbageCollect as Mm, HostedEditorProps as Mn, IProcessorDispatch as Mo, operationExampleCreators as Mp, MutationSetNameArgs as Mr, findOperationExampleOrThrow as Ms, CreateDocumentActionInput as Mt, VersionedReplayConfig as Mu, PHConnectRenown as N, Set_PreferredEditor as Na, SetAuthorWebsiteInputSchema as Nc, HASH_ENCODING_BASE64 as Nd, decide as Nf, ProtocolVersions as Nh, Scalars as Ni, DOCUMENT_PURGE_PROTOCOL as Nl, garbageCollectDocumentOperations as Nm, IAction as Nn, IProcessorHostModuleBase as No, operationFromAction as Np, MutationSetOperationDescriptionArgs as Nr, findOperationOrThrow as Ns, CreateState as Nt, replayDocumentVersioned as Nu, PHConnectPwaManifest as O, SetPreferredEditorActionInput as Oa, ReorderOperationErrorsInputSchema as Oc, hashBrowser as Od, applyMoveGrantAction as Of, defaultGlobalState as Oh, ReorderStateExamplesInput as Oi, PurgeMarkerOperation as Ol, checkOperationsIntegrity as Om, EditorProps as On, IRelationalQueryMethods as Oo, deleteStateExample as Op, MutationSetModelIdArgs as Or, assertOperationExampleIdUnique as Os, CreateChildDocumentInput as Ot, readFileBrowser as Ou, PHConnectRenownAdapters as P, Signal as Pa, SetInitialStateInputSchema as Pc, HASH_ENCODING_HEX as Pd, evaluate as Pf, SIGNATURE_PROTOCOL as Ph, SchemaNOOPAction as Pi, FeatureCapability as Pl, garbageCollectV2 as Pm, ID as Pn, IProcessorManager as Po, operationFromOperation as Pp, MutationSetOperationErrorCodeArgs as Pr, getAllOperationNames as Ps, DeleteChangeLogItemAction as Pt, UpgradeManifest as Pu, ServiceAction as Q, UpdateOperationExampleAction as Qa, SetOperationTemplateInputSchema as Qc, evaluateCondition as Qd, actionPreimageV2 as Qf, setPreferredEditorOperation as Qh, SetModelNameAction as Qi, mergePeerCapabilities as Ql, replayDocument as Qm, MinimalBackupData as Qn, IWebhookScope as Qo, setModuleName as Qp, PartialRecord as Qr, ConfigEntrySchema as Qs, DocumentDispatch$1 as Qt, UnsupportedDocumentModelVersionError as Qu, PHImageRef as R, SignalType as Ra, SetModelNameInputSchema as Rc, documentModelInitialLocalState as Rd, mentionedGroupIds as Rf, isDerivedDocumentId as Rh, SchemaUndoAction as Ri, PEER_MANIFEST_FORMAT as Rl, isDocumentAction as Rm, ISignalResult as Rn, ProcessorDispatchCreateResult as Ro, reorderChangeLogItems as Rp, MutationSetOperationNameArgs as Rr, validateModule as Rs, DeleteDocumentAction as Rt, applyUpgradeDocumentAction as Ru, PHConnectOpenPanel as S, SetOperationSchemaInput as Sa, RedoActionInputSchema as Sc, base58Decode as Sd, RemoveGrantActionInputSchema as Sf, createGlobalState as Sh, ReorderModulesInput as Si, baseReducer as Sl, addUndo as Sm, DocumentModelVersioningOperations as Sn, ExtractProcessorSchemaOrSelf as So, createAction as Sp, MutationReorderStateExamplesArgs as Sr, deletedDocumentId as Ss, Author as St, documentModelLoadFromInput as Su, PHConnectPwaCacheStrategy as T, SetOperationTemplateAction as Ta, ReorderChangeLogItemsInputSchema as Tc, buildOperationSignatureParams as Td, SetGrantActionInputSchema as Tf, defaultAuthState as Th, ReorderOperationExamplesAction as Ti, replayOperations as Tl, baseCreateDocument as Tm, ENSInfo as Tn, IRelationalDb as To, deleteOperation as Tp, MutationSetInitialStateArgs as Tr, ReservedOperationName as Ts, ConfigEntryType as Tt, getFileBrowser as Tu, PHRenownPrivyAdapterConfig as U, State as Ua, SetOperationDescriptionInputSchema as Uc, InvalidGrantError as Ud, TransportAction as Uf, v2RequiredProtocolVersions as Uh, SetAuthorWebsiteInput as Ui, Supports as Ul, mapSkippedOperationsV2 as Um, IsStateOfType as Un, ProcessorPhase as Uo, reorderStateExamples as Up, MutationUndoArgs as Ur, validateStateSchemaName as Us, DeleteOperationErrorAction as Ut, AuthInitializerNotCreatorError as Uu, PHReactorClientMode as V, SkipHeaderOperationIndex as Va, SetNameActionInputSchema as Vc, GrantSchema as Vd, resolveSnapshotAuth as Vf, requestedSignaturePolicy as Vh, SetAuthorNameInput as Vi, PeerManifest as Vl, isUndoRedo as Vm, InputMaybe as Vn, ProcessorFactoryBuilder as Vo, reorderOperationErrors as Vp, MutationSetOperationTemplateArgs as Vr, validateOperationName as Vs, DeleteModuleInput as Vt, AuthActionNotAllowedError as Vu, PHRenownRainbowAdapterConfig as W, StateReducer as Wa, SetOperationErrorCodeInputSchema as Wc, MAX_AUTH_GRANTS as Wd, TransportActionContext as Wf, DocumentOperations as Wh, SetInitialStateAction as Wi, capSelection as Wl, merge as Wm, LoadFromFile as Wn, ProcessorRecord as Wo, setAuthorName as Wp, MutationUpdateChangeLogItemInputArgs as Wr, AddChangeLogItemInputSchema as Ws, DeleteOperationErrorInput as Wt, AuthPolicyNotPreservedError as Wu, PowerhouseConfig as X, UpdateChangeLogItemAction as Xa, SetOperationSchemaInputSchema as Xc, assertValidGrantUpsert as Xd, CanonicalJsonError as Xf, redoOperation as Xh, SetModelIdAction as Xi, localSupports as Xl, readOnly as Xm, MappedOperation as Xn, IHttpScope as Xo, setModelName as Xp, OperationSpecification as Xr, AuthorSchema as Xs, DispatchOutcome as Xt, InvalidActionInputZodError as Xu, PathValidation as Y, UndoRedoAction as Ya, SetOperationReducerInputSchema as Yc, assertValidGrant as Yd, ActionSigningTarget as Yf, operationOutcome as Yh, SetModelExtensionInput as Yi, localPeerManifest as Yl, prepareOperations as Ym, Manifest as Yn, AuthorizerResult as Yo, setModelId as Yp, OperationIndex as Yr, AddStateExampleInputSchema as Ys, DeleteStateExampleInput as Yt, InvalidActionInputError as Yu, PowerhousePackage as Z, UpdateChangeLogItemInput as Za, SetOperationScopeInputSchema as Zc, assertValidInitialGrants as Zd, DOCUMENT_SCOPE_ACTION_TYPES as Zf, setNameOperation as Zh, SetModelIdInput as Zi, manifestRevision as Zl, removeExistingOperations as Zm, Maybe as Zn, IWebhookEndpoints as Zo, setModuleDescription as Zp, OperationsByScope as Zr, CodeExampleSchema as Zs, DocumentAction as Zt, InvalidAuthVersionError as Zu, PHConnectDrives as _, SetOperationNameAction as _a, PieceModulesSchema as _c, creationActions as _d, MoveGrantAction as _f, Principal as _h, ReorderChangeLogItemsAction as _i, documentModelOperationReducer as _l, IntegrityIssueSubType as _m, DocumentModelPHState as _n, createRelationalDb as _o, addOperationExample as _p, MutationReorderChangeLogItemsInputArgs as _r, WebhookRequest as _s, AddRelationshipActionInput as _t, baseLoadFromInput as _u, PHBackground as a, SetNameActionInput as aa, DeleteStateExampleInputSchema as ac, DocumentModelPHStateSchema as ad, AuthAction as af, Signature as ag, updateHeaderRevision as ah, PurgeDocumentAction as ai, UndoActionInputSchema as al, setOperationName as am, DocumentModelInput as an, UpgradeDocumentActionInput as ao, targetDocumentId as ap, MutationAddOperationArgs as ar, RouteHandler as as, Actions as at, headNewDocument as au, PHConnectInstance as b, SetOperationReducerInput as ba, PublisherSchema as bc, upgradeDocumentAction as bd, RemoveGrantAction as bf, createBaseState as bh, ReorderModuleOperationsInput as bi, documentModelStateSchemaReducer as bl, PHDocumentHeader as bm, DocumentModelUtils as bn, relationalDbToQueryBuilder as bo, buildOperationSignature as bp, MutationReorderOperationErrorsArgs as br, WebhookSpec as bs, AssertIsDocumentOfType as bt, createMinimalZip as bu, PHConnectAi as c, SetOperationDescriptionInput as ca, DocumentModelInputSchema as cc, assertIsDocumentModelState as cd, AuthRefusal as cf, serializeSignature as cg, AuthGroups as ch, Redo as ci, UpdateChangeLogItemInputSchema as cl, setOperationScope as cm, DocumentModelModule as cn, CodegenState as co, ActionContext as cp, MutationAddStateExampleArgs as cr, RouteSpec as cs, AddModuleAction as ct, createPresignedHeader as cu, PHConnectCompositionEntry as d, SetOperationErrorDescriptionAction as da, ModuleSchema as dc, AUTH_DENIED_BY_GRANT_REASON as dd, AuthVerb as df, PROCESSOR_APPS as dg, Grant as dh, Reducer as di, definedNonNullAnySchema as dl, setStateSchema as dm, DocumentModelOperationAction as dn, PackageLoadFailure as do, actionSigner as dp, MutationDeleteOperationArgs as dr, ScopedRouteHandle as ds, AddOperationErrorAction as dt, createVerificationSigner as du, SetModuleDescriptionAction as ea, DeleteChangeLogItemInputSchema as ec, groupDocumentType as ed, evaluateGrants as ef, undoOperationV2 as eg, reshuffleByTimestampAndIndex as eh, PhAiToolAnnotations as ei, SetPreferredEditorActionSchema as el, setOperationDescription as em, DocumentModelDocument as en, UpdateRelationshipAction as eo, actionSigningTarget as ep, MoveOperationAction as er, RouteActor as es, DEFAULT_REGISTRY_URL as et, readPeerManifest as eu, PHConnectDefaultDrive as f, SetOperationErrorDescriptionInput as fa, MoveOperationInputSchema as fc, AUTH_NO_GRANT_REASON as fd, ConditionContext as ff, Operand as fh, ReducerOptions as fi, isDefinedNonNullAny as fl, undo as fm, DocumentModelOperationErrorAction as fn, SETTLED_CODEGEN_STATES as fo, actions as fp, MutationDeleteOperationErrorArgs as fr, WebhookEndpointInfo as fs, AddOperationErrorInput as ft, hasDerivedDocumentId as fu, PHConnectDriveSections as g, SetOperationErrorTemplateInput as ga, PieceModuleSchema as gc, createDocumentAction as gd, MAX_SUPPORTED_AUTH_VERSION as gf, PHGroupState as gh, RemoveRelationshipActionInput as gi, documentModelOperationExampleReducer as gl, verifyOperationSignature as gm, DocumentModelOperationOperations as gn, createNamespacedQueryBuilder as go, addOperationError as gp, MutationRedoArgs as gr, WebhookReply as gs, AddRelationshipAction as gt, BulkArchiveEntry as gu, PHConnectDriveSection as h, SetOperationErrorTemplateAction as ha, OperationSpecificationSchema as hc, isDenied as hd, InitializeAuthActionInputSchema as hf, PHDocumentState as hh, RemoveRelationshipAction as hi, documentModelOperationErrorReducer as hl, updateStateExample as hm, DocumentModelOperationExampleOperations as hn, createNamespacedDb as ho, addOperation as hp, MutationMoveOperationArgs as hr, WebhookPolicy as hs, AddOperationInput as ht, verify as hu, LogLevels as i, SetNameAction as ia, DeleteOperationInputSchema as ic, DocumentModelHeaderSchema as id, AUTH_ACTION_TYPES as if, PHDocumentSignatureInfo as ig, split as ih, Publisher as ii, StateSchema as il, setOperationErrorTemplate as im, DocumentModelHeaderOperations as in, UpgradeDocumentAction as io, signActionV2 as ip, MutationAddModuleArgs as ir, RouteContext as is, ActionVerificationHandler as it, createVersionsOf as iu, PHConnectReactor as j, SetStateSchemaInput as ja, ScopeStateSchema as jc, HASH_ALGORITHM_SHA256 as jd, assertAuthPreservedOnDuplicate as jf, DEFAULT_SIGNATURE_POLICY as jh, SaveToFile as ji, purgeMarkerOperation as jl, filterDuplicatedOperations as jm, GetDocumentOptions as jn, IProcessor as jo, noop as jp, MutationSetModuleNameArgs as jr, findOperationErrorOrThrow as js, CreateDocumentAction as jt, VersionedReducers as ju, PHConnectPwaRuntimeCaching as k, SetPreferredEditorOperation as ka, ReorderOperationExamplesInputSchema as kc, hex2ab as kd, applyRemoveGrantAction as kf, defaultLocalState as kh, ReplayDocumentOptions as ki, isPurgeMarker as kl, diffOperations as km, Exact as kn, RelationalDbProcessor as ko, documentModelActions as kp, MutationSetModelNameArgs as kr, assertOperationIdUnique as ks, CreateChildDocumentSignal as kt, writeFileBrowser as ku, PHConnectApp as l, SetOperationErrorCodeAction as la, DocumentSpecificationSchema as lc, isDocumentModelDocument as ld, AuthRequest as lf, DEFAULT_ANALYTICS_PROCESSOR_DB_NAME as lg, Capability as lh, RedoAction as li, UpdateOperationExampleInputSchema as ll, setOperationTemplate as lm, DocumentModelModuleAction as ln, CodegenStatus as lo, actionContext as lp, MutationDeleteChangeLogItemInputArgs as lr, RouteTransport as ls, AddModuleInput as lt, createSignedHeader as lu, PHConnectDefaultDriveRemote as m, SetOperationErrorNameInput as ma, OperationScopeSchema as mc, DOCUMENT_DELETED_REASON as md, InitializeAuthActionInput as mf, PHBaseState as mh, ReleaseNewVersionAction as mi, documentModelModuleReducer as ml, updateOperationExample as mm, DocumentModelOperationExampleAction as mn, isSettledCodegenState as mo, addModule as mp, MutationDeleteStateExampleArgs as mr, WebhookHashAlgorithm as ms, AddOperationExampleInput as mt, validateHeader as mu, DrivePreserveStrategy as n, SetModuleNameAction as na, DeleteOperationErrorInputSchema as nc, BaseDocumentHeaderSchema as nd, isPlainValue as nf, AppActionSigner as ng, sortMappedOperations as nh, PieceModule as ni, Set_NameSchema as nl, setOperationErrorDescription as nm, DocumentModelGlobalState as nn, UpdateStateExampleAction as no, hashActionV2 as np, Mutation as nr, RouteAuthorizer as ns, ActionSignatureContext as nt, CreateProtocolVersionsOptions as nu, PHBackgroundLayer as o, SetNameOperation as oa, DocumentActionSchema as oc, DocumentModelSchema as od, AuthDecision as of, UserActionSigner as og, withScopeRevisions as oh, PurgeDocumentActionInput as oi, UndoActionSchema as ol, setOperationReducer as om, DocumentModelLib as on, User as oo, v2TupleProblem as op, MutationAddOperationErrorArgs as or, RouteMethod as os, AddChangeLogItemAction as ot, selectDocumentModelModule as ou, PHConnectDefaultDriveLocal as p, SetOperationErrorNameAction as pa, OperationErrorSchema as pc, AUTH_VERSION_UNSUPPORTED_REASON as pd, InitializeAuthAction as pf, PHAuthState as ph, RejectedAction as pi, documentModelHeaderReducer as pl, updateChangeLogItem as pm, DocumentModelOperationErrorOperations as pn, getCodegenStatusRegistry as po, addChangeLogItem as pp, MutationDeleteOperationExampleArgs as pr, WebhookField as ps, AddOperationExampleAction as pt, sign as pu, PackageManagerArgs as q, UndoAction as qa, SetOperationErrorTemplateInputSchema as qc, MAX_CONDITION_NODES as qd, ACTION_SIGNATURE_V2_PREFIX as qf, OperationOutcome as qh, SetModelDescriptionInput as qi, isOlderManifest as ql, parseResultingState as qm, MakeMaybe as qn, ReplayStateMode as qo, setModelDescription as qp, NOOPAction as qr, AddOperationExampleInputSchema as qs, DeleteOperationInput as qt, GrantNotFoundError as qu, LogLevel as r, SetModuleNameInput as ra, DeleteOperationExampleInputSchema as rc, BaseDocumentStateSchema as rd, referencedGroupIds as rf, HashConfig as rg, sortOperations as rh, PowerhouseModule as ri, Set_PreferredEditorSchema as rl, setOperationErrorName as rm, DocumentModelHeaderAction as rn, UpdateStateExampleInput as ro, isV2ActionHash as rp, MutationAddChangeLogItemInputArgs as rr, RouteBody as rs, ActionSigningHandler as rt, NewDocumentHeaderOptions as ru, PHBackgroundLayers as s, SetOperationDescriptionAction as sa, DocumentModelGlobalStateSchema as sc, assertIsDocumentModelDocument as sd, AuthEvaluation as sf, deserializeSignature as sg, withSignaturePolicy as sh, Query as si, UndoSchema as sl, setOperationSchema as sm, DocumentModelLocalState as sn, ValidationError as so, Action as sp, MutationAddOperationExampleArgs as sr, RouteOptions as ss, AddChangeLogItemInput as st, createCopyHeader as su, DrivePreserveStrategies as t, SetModuleDescriptionInput as ta, DeleteModuleInputSchema as tc, groupMembershipActionTypes as td, grantProblem as tf, ActionSigner as tg, skipHeaderOperations as th, PhAiToolDescriptor as ti, SetStateSchemaInputSchema as tl, setOperationErrorCode as tm, DocumentModelDocumentModelModule as tn, UpdateRelationshipActionInput as to, canonicalJson as tp, MoveOperationInput as tr, RouteAuth as ts, ActionErrorCallback as tt, selectProtocolVersions as tu, PHConnectBranding as u, SetOperationErrorCodeInput as ua, ManifestSchema as uc, isDocumentModelState as ud, AuthSubject as uf, DEFAULT_RELATIONAL_PROCESSOR_DB_NAME as ug, Condition as uh, RedoActionInput as ui, UpdateStateExampleInputSchema as ul, setPreferredEditor as um, DocumentModelModuleOperations as un, CodegenStatusRegistry as uo, actionFromAction as up, MutationDeleteModuleArgs as ur, RouteUser as us, AddOperationAction as ut, createSignedHeaderForSigner as uu, PHConnectExplorerIcons as v, SetOperationNameInput as va, PowerhouseModuleSchema as vc, creationState as vd, MoveGrantActionInput as vf, backfillAuthState as vh, ReorderChangeLogItemsInput as vi, documentModelReducer as vl, IntegrityIssueType as vm, DocumentModelStateAction as vn, hashNamespace as vo, addStateExample as vp, MutationReorderModuleOperationsArgs as vr, WebhookScheme as vs, AddStateExampleAction as vt, baseLoadFromInputVersioned as vu, PHConnectPwa as w, SetOperationScopeInput as wa, RedoSchema as wc, buildOperationSignatureMessage as wd, SetGrantActionInput as wf, createState as wh, ReorderOperationErrorsInput as wi, processUndoRedo as wl, attachBranch as wm, DocumentSpecification as wn, IBaseRelationalDb as wo, deleteModule as wp, MutationSetAuthorWebsiteArgs as wr, RESERVED_OPERATION_NAMES as ws, ConfigEntry as wt, fetchFileBrowser as wu, PHConnectLoader as x, SetOperationSchemaAction as xa, PwaConfigSchema as xc, ab2hex as xd, RemoveGrantActionInput as xf, createDocumentState as xh, ReorderModulesAction as xi, documentModelVersioningReducer as xl, PHDocumentMeta as xm, DocumentModelVersioningAction as xn, DOCUMENT_ID_COLUMNS as xo, buildSignedAction as xp, MutationReorderOperationExamplesArgs as xr, WebhookVerification as xs, AssertIsStateOfType as xt, createZip as xu, PHConnectHome as y, SetOperationReducerAction as ya, PowerhouseModulesSchema as yc, documentFromCreation as yd, MoveGrantActionInputSchema as yf, createAuthState as yh, ReorderModuleOperationsAction as yi, documentModelStateReducer as yl, PHDocument$1 as ym, DocumentModelStateOperations as yn, namespaceSchemaOf as yo, baseActions as yp, MutationReorderModulesArgs as yr, WebhookSignatureEncoding as ys, AddStateExampleInput as yt, baseSaveToFileHandle as yu, PHLength as z, SignatureVerificationHandler as za, SetModuleDescriptionInputSchema as zc, AuthAdministrationLockoutError as zd, moveGrant as zf, isSignaturePolicy as zh, ScopeState as zi, PeerCapability as zl, isNoopOperation as zm, ISigner as zn, ProcessorDispatchResult as zo, reorderModuleOperations as zp, MutationSetOperationReducerArgs as zr, validateModuleOperation as zs, DeleteDocumentActionInput as zt, computeUpgradeTransitions as zu };
|
|
4423
4544
|
export {};
|
|
4424
|
-
//# sourceMappingURL=types-
|
|
4545
|
+
//# sourceMappingURL=types-B1HqOXqL.d.ts.map
|