@powerhousedao/shared 6.2.3-dev.22 → 6.2.3-dev.24

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.
Files changed (106) hide show
  1. package/dist/clis/args/{access-token-Bf1K1Fpc.mjs → access-token-l4ne3id6.mjs} +2 -2
  2. package/dist/clis/args/{access-token-Bf1K1Fpc.mjs.map → access-token-l4ne3id6.mjs.map} +1 -1
  3. package/dist/clis/args/access-token.mjs +1 -1
  4. package/dist/clis/args/{common-rEpM4Oqq.d.mts → common-Bc6Phg3O.d.mts} +6 -3
  5. package/dist/clis/args/common-Bc6Phg3O.d.mts.map +1 -0
  6. package/dist/clis/args/{common-BpnFLR-_.mjs → common-BnSmBXOm.mjs} +8 -1
  7. package/dist/clis/args/{common-BpnFLR-_.mjs.map → common-BnSmBXOm.mjs.map} +1 -1
  8. package/dist/clis/args/common.d.mts +1 -1
  9. package/dist/clis/args/common.mjs +1 -1
  10. package/dist/clis/args/{connect-_FQWS7p3.d.mts → connect-BD-C5BkE.d.mts} +6 -6
  11. package/dist/clis/args/{connect-_FQWS7p3.d.mts.map → connect-BD-C5BkE.d.mts.map} +1 -1
  12. package/dist/clis/args/{connect-ByiLv365.mjs → connect-CkPZNzui.mjs} +2 -2
  13. package/dist/clis/args/{connect-ByiLv365.mjs.map → connect-CkPZNzui.mjs.map} +1 -1
  14. package/dist/clis/args/connect.d.mts +1 -1
  15. package/dist/clis/args/connect.mjs +1 -1
  16. package/dist/clis/args/{generate-C51i00At.mjs → generate-BzRnsIbV.mjs} +2 -2
  17. package/dist/clis/args/{generate-C51i00At.mjs.map → generate-BzRnsIbV.mjs.map} +1 -1
  18. package/dist/clis/args/generate.mjs +1 -1
  19. package/dist/clis/args/{help-D2SeQC09.mjs → help-DnzLlEb7.mjs} +15 -15
  20. package/dist/clis/args/{help-D2SeQC09.mjs.map → help-DnzLlEb7.mjs.map} +1 -1
  21. package/dist/clis/args/help.mjs +1 -1
  22. package/dist/clis/args/index.d.mts +3 -3
  23. package/dist/clis/args/index.mjs +18 -18
  24. package/dist/clis/args/{init-DBYYsV0Y.mjs → init-Q3FOdRyY.mjs} +2 -2
  25. package/dist/clis/args/{init-DBYYsV0Y.mjs.map → init-Q3FOdRyY.mjs.map} +1 -1
  26. package/dist/clis/args/init.mjs +1 -1
  27. package/dist/clis/args/{inspect-BzBsZ0UO.mjs → inspect-99GSVTTt.mjs} +2 -2
  28. package/dist/clis/args/{inspect-BzBsZ0UO.mjs.map → inspect-99GSVTTt.mjs.map} +1 -1
  29. package/dist/clis/args/inspect.mjs +1 -1
  30. package/dist/clis/args/{install-D0jaysiP.mjs → install-Dcal76Iq.mjs} +2 -2
  31. package/dist/clis/args/{install-D0jaysiP.mjs.map → install-Dcal76Iq.mjs.map} +1 -1
  32. package/dist/clis/args/install.mjs +1 -1
  33. package/dist/clis/args/{list-BaO47Btz.mjs → list-BFbHTSf3.mjs} +2 -2
  34. package/dist/clis/args/{list-BaO47Btz.mjs.map → list-BFbHTSf3.mjs.map} +1 -1
  35. package/dist/clis/args/list.mjs +1 -1
  36. package/dist/clis/args/{login-DM-qhiYI.mjs → login-BB0WTY2n.mjs} +2 -2
  37. package/dist/clis/args/{login-DM-qhiYI.mjs.map → login-BB0WTY2n.mjs.map} +1 -1
  38. package/dist/clis/args/login.mjs +1 -1
  39. package/dist/clis/args/{migrate-EitaI7jq.mjs → migrate-0xLgeOxh.mjs} +2 -2
  40. package/dist/clis/args/{migrate-EitaI7jq.mjs.map → migrate-0xLgeOxh.mjs.map} +1 -1
  41. package/dist/clis/args/migrate.mjs +1 -1
  42. package/dist/clis/args/{publish-DfMF3Nmc.mjs → publish-BJF3ET2v.mjs} +2 -2
  43. package/dist/clis/args/{publish-DfMF3Nmc.mjs.map → publish-BJF3ET2v.mjs.map} +1 -1
  44. package/dist/clis/args/publish.mjs +1 -1
  45. package/dist/clis/args/{registry-Di1tZqbn.mjs → registry-CbORgFD8.mjs} +2 -2
  46. package/dist/clis/args/{registry-Di1tZqbn.mjs.map → registry-CbORgFD8.mjs.map} +1 -1
  47. package/dist/clis/args/registry.mjs +1 -1
  48. package/dist/clis/args/{service-jRX2qPul.mjs → service-BfDN3YBu.mjs} +2 -2
  49. package/dist/clis/args/{service-jRX2qPul.mjs.map → service-BfDN3YBu.mjs.map} +1 -1
  50. package/dist/clis/args/service.mjs +1 -1
  51. package/dist/clis/args/{switchboard-BhR-ZwGV.mjs → switchboard-tj30Z45Y.mjs} +2 -2
  52. package/dist/clis/args/{switchboard-BhR-ZwGV.mjs.map → switchboard-tj30Z45Y.mjs.map} +1 -1
  53. package/dist/clis/args/switchboard.mjs +1 -1
  54. package/dist/clis/args/{uninstall-diefi70g.mjs → uninstall-CjVkOmXN.mjs} +2 -2
  55. package/dist/clis/args/{uninstall-diefi70g.mjs.map → uninstall-CjVkOmXN.mjs.map} +1 -1
  56. package/dist/clis/args/uninstall.mjs +1 -1
  57. package/dist/clis/args/{unpublish-C6eNRzsU.mjs → unpublish-DSvGNHhr.mjs} +2 -2
  58. package/dist/clis/args/{unpublish-C6eNRzsU.mjs.map → unpublish-DSvGNHhr.mjs.map} +1 -1
  59. package/dist/clis/args/unpublish.mjs +1 -1
  60. package/dist/clis/args/{vetra-DV0zQzba.mjs → vetra-CMIe5hyF.mjs} +2 -2
  61. package/dist/clis/args/{vetra-DV0zQzba.mjs.map → vetra-CMIe5hyF.mjs.map} +1 -1
  62. package/dist/clis/args/{vetra-DLQ6lhLl.d.mts → vetra-CoMvTJK7.d.mts} +2 -2
  63. package/dist/clis/args/{vetra-DLQ6lhLl.d.mts.map → vetra-CoMvTJK7.d.mts.map} +1 -1
  64. package/dist/clis/args/vetra.d.mts +1 -1
  65. package/dist/clis/args/vetra.mjs +1 -1
  66. package/dist/clis/build-pieces.d.mts +1 -1
  67. package/dist/clis/constants.d.mts +1 -1
  68. package/dist/clis/constants.mjs +1 -1
  69. package/dist/clis/constants.mjs.map +1 -1
  70. package/dist/clis/index.d.mts +12 -2
  71. package/dist/clis/index.d.mts.map +1 -1
  72. package/dist/clis/index.mjs +41 -26
  73. package/dist/clis/index.mjs.map +1 -1
  74. package/dist/clis/{types-DXhVHupa.d.mts → types-B-Il50oC.d.mts} +4 -3
  75. package/dist/clis/{types-DXhVHupa.d.mts.map → types-B-Il50oC.d.mts.map} +1 -1
  76. package/dist/{config-loader-e4-qdVVI.js → config-loader-DcwNJiBB.js} +10 -7
  77. package/dist/config-loader-DcwNJiBB.js.map +1 -0
  78. package/dist/connect/config-loader.d.ts +1 -1
  79. package/dist/connect/config-loader.js +1 -1
  80. package/dist/connect/index.d.ts +7 -1
  81. package/dist/connect/index.d.ts.map +1 -1
  82. package/dist/connect/index.js +34 -26
  83. package/dist/connect/index.js.map +1 -1
  84. package/dist/document-drive/index.d.ts +5 -4
  85. package/dist/document-drive/index.d.ts.map +1 -1
  86. package/dist/document-drive/index.js +15 -4
  87. package/dist/document-drive/index.js.map +1 -1
  88. package/dist/document-model/index.d.ts +3 -3
  89. package/dist/document-model/index.js +390 -182
  90. package/dist/document-model/index.js.map +1 -1
  91. package/dist/{index-ChZbyPGQ.d.ts → index-BmL07S5O.d.ts} +25 -16
  92. package/dist/{index-ChZbyPGQ.d.ts.map → index-BmL07S5O.d.ts.map} +1 -1
  93. package/dist/index.d.ts +3 -3
  94. package/dist/processors/index.d.ts +1 -1
  95. package/dist/registry/index.d.ts +2 -2
  96. package/dist/registry/index.js.map +1 -1
  97. package/dist/registry/manifest-slim.d.ts +1 -1
  98. package/dist/{types-Cphf695h.d.ts → types-COsoOK42.d.ts} +287 -248
  99. package/dist/types-COsoOK42.d.ts.map +1 -0
  100. package/dist/{types-Dh7xKo_B.d.ts → types-DhOXIQ4c.d.ts} +8 -3
  101. package/dist/types-DhOXIQ4c.d.ts.map +1 -0
  102. package/package.json +2 -1
  103. package/dist/clis/args/common-rEpM4Oqq.d.mts.map +0 -1
  104. package/dist/config-loader-e4-qdVVI.js.map +0 -1
  105. package/dist/types-Cphf695h.d.ts.map +0 -1
  106. package/dist/types-Dh7xKo_B.d.ts.map +0 -1
@@ -101,6 +101,186 @@ type HashConfig = {
101
101
  params?: Record<string, unknown>;
102
102
  };
103
103
  //#endregion
104
+ //#region document-model/operations.d.ts
105
+ declare function setNameOperation<TDocument extends PHDocument>(document: TDocument, input: {
106
+ name: string;
107
+ }): TDocument & {
108
+ header: {
109
+ name: string;
110
+ id: string;
111
+ sig: PHDocumentSignatureInfo;
112
+ documentType: string;
113
+ createdAtUtcIso: string;
114
+ slug: string;
115
+ branch: string;
116
+ revision: {
117
+ [scope: string]: number;
118
+ };
119
+ lastModifiedAtUtcIso: string;
120
+ protocolVersions?: {
121
+ [key: string]: number;
122
+ };
123
+ meta?: PHDocumentMeta;
124
+ };
125
+ };
126
+ declare function setPreferredEditorOperation<TDocument extends PHDocument>(document: TDocument, input: {
127
+ preferredEditor: string | null;
128
+ }): TDocument;
129
+ declare function undoOperation<TDocument extends PHDocument>(document: TDocument, action: Action, skip: number): {
130
+ document: TDocument;
131
+ action: Action;
132
+ skip: number;
133
+ reuseLastOperationIndex: boolean;
134
+ };
135
+ /**
136
+ * V2 of undoOperation for protocol version 2+.
137
+ * Key differences from undoOperation:
138
+ * - Never reuses operation index (always increments)
139
+ * - Always sets skip=1 (consecutive NOOPs are handled during rebuild/GC)
140
+ * - No complex skip calculation - simpler model where each UNDO is independent
141
+ */
142
+ declare function undoOperationV2<TDocument extends PHDocument>(document: TDocument, action: Action, skip: number): {
143
+ document: TDocument;
144
+ action: Action;
145
+ skip: number;
146
+ reuseLastOperationIndex: false;
147
+ };
148
+ declare function redoOperation<TDocument extends PHDocument>(document: TDocument, action: Action, skip: number): {
149
+ document: TDocument;
150
+ action: Action;
151
+ skip: number;
152
+ reuseLastOperationIndex: boolean;
153
+ };
154
+ /**
155
+ * An operation that was applied to a {@link BaseDocument}.
156
+ *
157
+ * @remarks
158
+ * Wraps an action with an index, to be added to the operations history of a Document.
159
+ * The `index` field is used to keep all operations in order and enable replaying the
160
+ * document's history from the beginning. Note that indices and skips are relative to
161
+ * a specific reactor. Example below:
162
+ *
163
+ * For (index, skip, ts, action)
164
+ * A - [(0, 0, 1, "A0"), (1, 0, 2, "A1")]
165
+ * B - [(0, 0, 0, "B0"), (1, 0, 3, "B1")]
166
+ * ...
167
+ * B gets A's Operations Scenario:
168
+ * B' - [(0, 0, 0, "B0"), (1, 0, 3, "B1"), (2, 1, 1, "A0"), (3, 0, 2, "A1"), (4, 0, 3, "B1")]
169
+ * Then A needs to end up with:
170
+ * A' - [(0, 0, 1, "A0"), (1, 0, 2, "A1"), (2, 2, 0, "B0"), (3, 0, 1, "A0"), (4, 0, 2, "A1"), (5, 0, 3, "B1")]
171
+ * So that both A and B end up with the stream of actions (action):
172
+ * [("B0"), ("A0"), ("A1"), ("B1")]
173
+ *
174
+ * @typeParam A - The type of the action.
175
+ */
176
+ type Operation = {
177
+ /**
178
+ * This is a stable id, derived from various document and action properties
179
+ * in deriveOperationId().
180
+ *
181
+ * It _cannot_ be an arbitrary string.
182
+ *
183
+ * It it also not unique per operation, as reshuffled operations will keep'
184
+ * the same id they had before they were reshuffled. This means that the
185
+ * IOperationStore may have multiple operations with the same operation id.
186
+ **/
187
+ id: string; /** Position of the operation in the history. This is relative to a specific reactor -- they may not all agree on this value. */
188
+ index: number; /** The number of operations skipped with this Operation. This is relative to a specific reactor -- they may not all agree on this value. */
189
+ skip: number; /** Timestamp of when the operation was added */
190
+ timestampUtcMs: string; /** Hash of the resulting document data after the operation */
191
+ hash: string; /** Error message for a failed action */
192
+ error?: string;
193
+ /**
194
+ * If authorization rejected the action, this records the reason why.
195
+ */
196
+ deniedReason?: string; /** The resulting state after the operation */
197
+ resultingState?: string;
198
+ /**
199
+ * The action that was applied to the document to produce this operation.
200
+ */
201
+ action: Action;
202
+ };
203
+ /**
204
+ * The operations history of the document by scope.
205
+ *
206
+ * This will be removed in a future release.
207
+ *
208
+ * TODO: Type should be Partial<Record<string, Operation[]>>,
209
+ * but that is a breaking change for codegen + external doc models.
210
+ */
211
+ type DocumentOperations = Record<string, Operation[]>;
212
+ /**
213
+ * What happened to an operation. An operation that is not `applied` still
214
+ * occupies its index but contributes nothing to the document's state.
215
+ */
216
+ type OperationOutcome = {
217
+ kind: "applied";
218
+ } | {
219
+ kind: "reducer-error";
220
+ message: string;
221
+ } | {
222
+ kind: "denied";
223
+ reason: string;
224
+ };
225
+ /**
226
+ * Reads an operation's outcome. A denial takes precedence over a reducer
227
+ * error, since a denied operation never reaches its reducer.
228
+ */
229
+ declare function operationOutcome(operation: Operation): OperationOutcome;
230
+ type OperationContext = {
231
+ documentId: string;
232
+ documentType: string;
233
+ scope: string;
234
+ branch: string;
235
+ resultingState?: string;
236
+ ordinal: number;
237
+ };
238
+ type OperationWithContext$1 = {
239
+ operation: Operation;
240
+ context: OperationContext;
241
+ };
242
+ //#endregion
243
+ //#region document-model/signature-policy.d.ts
244
+ /** The `protocolVersions` key that fixes a document's signature requirement. */
245
+ declare const SIGNATURE_PROTOCOL = "signature";
246
+ /** `protocolVersions.signature` of a document that requires v2 tuples. */
247
+ declare const SIGNATURE_PROTOCOL_V2 = 2;
248
+ /** `v2-required`: v2 tuples only and a content-addressed id. */
249
+ type SignaturePolicy$1 = "legacy" | "v2-required";
250
+ /** What a new document is created as unless the caller or host says otherwise. */
251
+ declare const DEFAULT_SIGNATURE_POLICY: SignaturePolicy$1;
252
+ declare function isSignaturePolicy(value: unknown): value is SignaturePolicy$1;
253
+ type ProtocolVersions = {
254
+ [protocol: string]: number;
255
+ };
256
+ /** Read from a header, a CREATE_DOCUMENT input or a bare map. */
257
+ declare function signaturePolicyOf(source: {
258
+ protocolVersions?: ProtocolVersions | null;
259
+ } | ProtocolVersions | null | undefined): SignaturePolicy$1;
260
+ /** `protocolVersions` for a new v2-required document. */
261
+ declare function v2RequiredProtocolVersions(base?: ProtocolVersions): ProtocolVersions;
262
+ /**
263
+ * The policy a create call asks for: `signaturePolicy`, else the `signature`
264
+ * key of its `protocolVersions`, else `fallback`, the host's default.
265
+ */
266
+ declare function requestedSignaturePolicy(request: {
267
+ signaturePolicy?: SignaturePolicy$1;
268
+ protocolVersions?: ProtocolVersions;
269
+ } | undefined, fallback: SignaturePolicy$1): SignaturePolicy$1;
270
+ /** `protocolVersions` for a new document under `policy`, over `base`. */
271
+ declare function protocolVersionsFor(policy: SignaturePolicy$1, base?: ProtocolVersions): ProtocolVersions;
272
+ /** What the id of a v2-required document is a hash of. */
273
+ type DocumentIdParams = {
274
+ documentType: string;
275
+ createdAtUtcIso: string;
276
+ nonce: string;
277
+ protocolVersions: ProtocolVersions;
278
+ };
279
+ /** `base64url(sha256(canonicalJson(params)))`, unpadded. */
280
+ declare function deriveDocumentId(params: DocumentIdParams): string;
281
+ /** Whether `id` has the shape `deriveDocumentId` produces. */
282
+ declare function isDerivedDocumentId(id: string): boolean;
283
+ //#endregion
104
284
  //#region document-model/state.d.ts
105
285
  /**
106
286
  * Creates a default PHAuthState
@@ -262,146 +442,6 @@ declare function createGlobalState(state?: Partial<DocumentModelGlobalState>): D
262
442
  declare function createLocalState(state?: Partial<DocumentModelLocalState>): DocumentModelLocalState;
263
443
  declare function createState(baseState?: Partial<PHBaseState>, globalState?: Partial<DocumentModelGlobalState>, localState?: Partial<DocumentModelLocalState>): DocumentModelPHState;
264
444
  //#endregion
265
- //#region document-model/operations.d.ts
266
- declare function setNameOperation<TDocument extends PHDocument>(document: TDocument, input: {
267
- name: string;
268
- }): TDocument & {
269
- header: {
270
- name: string;
271
- id: string;
272
- sig: PHDocumentSignatureInfo;
273
- documentType: string;
274
- createdAtUtcIso: string;
275
- slug: string;
276
- branch: string;
277
- revision: {
278
- [scope: string]: number;
279
- };
280
- lastModifiedAtUtcIso: string;
281
- protocolVersions?: {
282
- [key: string]: number;
283
- };
284
- meta?: PHDocumentMeta;
285
- };
286
- };
287
- declare function setPreferredEditorOperation<TDocument extends PHDocument>(document: TDocument, input: {
288
- preferredEditor: string | null;
289
- }): TDocument;
290
- declare function undoOperation<TDocument extends PHDocument>(document: TDocument, action: Action, skip: number): {
291
- document: TDocument;
292
- action: Action;
293
- skip: number;
294
- reuseLastOperationIndex: boolean;
295
- };
296
- /**
297
- * V2 of undoOperation for protocol version 2+.
298
- * Key differences from undoOperation:
299
- * - Never reuses operation index (always increments)
300
- * - Always sets skip=1 (consecutive NOOPs are handled during rebuild/GC)
301
- * - No complex skip calculation - simpler model where each UNDO is independent
302
- */
303
- declare function undoOperationV2<TDocument extends PHDocument>(document: TDocument, action: Action, skip: number): {
304
- document: TDocument;
305
- action: Action;
306
- skip: number;
307
- reuseLastOperationIndex: false;
308
- };
309
- declare function redoOperation<TDocument extends PHDocument>(document: TDocument, action: Action, skip: number): {
310
- document: TDocument;
311
- action: Action;
312
- skip: number;
313
- reuseLastOperationIndex: boolean;
314
- };
315
- declare function loadStateOperation<TState extends PHBaseState>(document: PHDocument<TState>, action: LoadStateActionInput): PHDocument<TState>;
316
- /**
317
- * An operation that was applied to a {@link BaseDocument}.
318
- *
319
- * @remarks
320
- * Wraps an action with an index, to be added to the operations history of a Document.
321
- * The `index` field is used to keep all operations in order and enable replaying the
322
- * document's history from the beginning. Note that indices and skips are relative to
323
- * a specific reactor. Example below:
324
- *
325
- * For (index, skip, ts, action)
326
- * A - [(0, 0, 1, "A0"), (1, 0, 2, "A1")]
327
- * B - [(0, 0, 0, "B0"), (1, 0, 3, "B1")]
328
- * ...
329
- * B gets A's Operations Scenario:
330
- * B' - [(0, 0, 0, "B0"), (1, 0, 3, "B1"), (2, 1, 1, "A0"), (3, 0, 2, "A1"), (4, 0, 3, "B1")]
331
- * Then A needs to end up with:
332
- * A' - [(0, 0, 1, "A0"), (1, 0, 2, "A1"), (2, 2, 0, "B0"), (3, 0, 1, "A0"), (4, 0, 2, "A1"), (5, 0, 3, "B1")]
333
- * So that both A and B end up with the stream of actions (action):
334
- * [("B0"), ("A0"), ("A1"), ("B1")]
335
- *
336
- * @typeParam A - The type of the action.
337
- */
338
- type Operation = {
339
- /**
340
- * This is a stable id, derived from various document and action properties
341
- * in deriveOperationId().
342
- *
343
- * It _cannot_ be an arbitrary string.
344
- *
345
- * It it also not unique per operation, as reshuffled operations will keep'
346
- * the same id they had before they were reshuffled. This means that the
347
- * IOperationStore may have multiple operations with the same operation id.
348
- **/
349
- id: string; /** Position of the operation in the history. This is relative to a specific reactor -- they may not all agree on this value. */
350
- index: number; /** The number of operations skipped with this Operation. This is relative to a specific reactor -- they may not all agree on this value. */
351
- skip: number; /** Timestamp of when the operation was added */
352
- timestampUtcMs: string; /** Hash of the resulting document data after the operation */
353
- hash: string; /** Error message for a failed action */
354
- error?: string;
355
- /**
356
- * If authorization rejected the action, this records the reason why.
357
- */
358
- deniedReason?: string; /** The resulting state after the operation */
359
- resultingState?: string;
360
- /**
361
- * The action that was applied to the document to produce this operation.
362
- */
363
- action: Action;
364
- };
365
- /**
366
- * The operations history of the document by scope.
367
- *
368
- * This will be removed in a future release.
369
- *
370
- * TODO: Type should be Partial<Record<string, Operation[]>>,
371
- * but that is a breaking change for codegen + external doc models.
372
- */
373
- type DocumentOperations = Record<string, Operation[]>;
374
- /**
375
- * What happened to an operation. An operation that is not `applied` still
376
- * occupies its index but contributes nothing to the document's state.
377
- */
378
- type OperationOutcome = {
379
- kind: "applied";
380
- } | {
381
- kind: "reducer-error";
382
- message: string;
383
- } | {
384
- kind: "denied";
385
- reason: string;
386
- };
387
- /**
388
- * Reads an operation's outcome. A denial takes precedence over a reducer
389
- * error, since a denied operation never reaches its reducer.
390
- */
391
- declare function operationOutcome(operation: Operation): OperationOutcome;
392
- type OperationContext = {
393
- documentId: string;
394
- documentType: string;
395
- scope: string;
396
- branch: string;
397
- resultingState?: string;
398
- ordinal: number;
399
- };
400
- type OperationWithContext$1 = {
401
- operation: Operation;
402
- context: OperationContext;
403
- };
404
- //#endregion
405
445
  //#region document-model/documents.d.ts
406
446
  /** Meta information about the document. */
407
447
  type PHDocumentMeta = {
@@ -504,9 +544,23 @@ declare function isUndo(action: Action): action is UndoAction;
504
544
  declare function isDocumentAction(action: Action): action is DocumentAction;
505
545
  /**
506
546
  * Creates a new document. When `documentType` is given the header is stamped
507
- * with it and the document-scope operations are seeded.
547
+ * with it and the document-scope operations are seeded. Without
548
+ * `protocolVersions` the document is v2-required and takes a derived id; with
549
+ * them it is v2-required only if they say so (see {@link protocolVersionsFor}).
508
550
  */
509
- declare function baseCreateDocument<TState extends PHBaseState = PHBaseState>(createState: CreateState<TState>, initialState?: Partial<TState>, documentType?: string): PHDocument<TState>;
551
+ declare function baseCreateDocument<TState extends PHBaseState = PHBaseState>(createState: CreateState<TState>, initialState?: Partial<TState>, documentType?: string, protocolVersions?: ProtocolVersions): PHDocument<TState>;
552
+ /**
553
+ * `document`, not yet created, under a fresh header for `policy`. A legacy
554
+ * header takes `id` when given; a v2-required one ignores `id` and derives its
555
+ * own, so a caller that needs a fixed id must ask for legacy.
556
+ * `protocolVersions` are merged over the document's. Name, slug, branch and
557
+ * meta carry over. A document already under `policy` is returned as is unless
558
+ * a legacy `id` or `protocolVersions` are given.
559
+ */
560
+ declare function withSignaturePolicy<TDocument extends PHDocument>(document: TDocument, policy: SignaturePolicy$1, options?: {
561
+ id?: string;
562
+ protocolVersions?: ProtocolVersions;
563
+ }): TDocument;
510
564
  declare function hashDocumentStateForScope(document: {
511
565
  state: {
512
566
  [key: string]: unknown;
@@ -670,31 +724,6 @@ declare const undo: (count?: number, scope?: string) => UndoAction;
670
724
  * @category Actions
671
725
  */
672
726
  declare const redo: (count?: number, scope?: string) => RedoAction;
673
- /**
674
- * Joins multiple operations into a single {@link loadState | LOAD_STATE} operation.
675
- *
676
- * @remarks
677
- * Useful to keep operations history smaller. Operations to prune are selected by index,
678
- * similar to the {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice | slice} method in Arrays.
679
- *
680
- * @param start - Index of the first operation to prune
681
- * @param end - Index of the last operation to prune
682
- * @category Actions
683
- */
684
- declare const prune: (start?: number, end?: number, scope?: string) => SchemaPruneAction;
685
- /**
686
- * Replaces the state of the document.
687
- *
688
- * @remarks
689
- * This action shouldn't be used directly. It is dispatched by the {@link prune} action.
690
- *
691
- * @param state - State to be set in the document.
692
- * @param operations - Number of operations that were removed from the previous state.
693
- * @category Actions
694
- */
695
- declare const loadState: <TState extends PHBaseState = PHBaseState>(state: TState & {
696
- name: string;
697
- }, operations: number) => LoadStateAction;
698
727
  declare const noop: (scope?: string) => NOOPAction;
699
728
  /**
700
729
  * Helper function to be used by action creators.
@@ -730,7 +759,9 @@ declare const operationWithContext: (operation: Operation, context: ActionContex
730
759
  declare const actionContext: () => ActionContext;
731
760
  declare const actionSigner: (user: UserActionSigner, app: AppActionSigner, signatures?: Signature[]) => ActionSigner;
732
761
  declare function buildOperationSignature(context: ActionSignatureContext, signMethod: ActionSigningHandler): Promise<Signature>;
762
+ /** @deprecated Emits a legacy SHA-1 tuple; sign through `ISigner.signAction`. */
733
763
  declare function buildSignedAction<TState extends PHBaseState = PHBaseState>(action: Action, reducer: Reducer<TState>, document: PHDocument<TState>, signer: ActionSigner, signHandler: ActionSigningHandler): Promise<Operation>;
764
+ /** @deprecated Use `verifyActionSignature` from `@powerhousedao/reactor`. */
734
765
  declare function verifyOperationSignature(signature: Signature, signer: Omit<ActionSigner, "signatures">, verifyHandler: ActionVerificationHandler): Promise<boolean>;
735
766
  /**
736
767
  * Changes the name of the document.
@@ -809,10 +840,6 @@ declare const baseActions: {
809
840
  }) => SetPreferredEditorAction;
810
841
  undo: (count?: number, scope?: string) => UndoAction;
811
842
  redo: (count?: number, scope?: string) => RedoAction;
812
- prune: (start?: number, end?: number, scope?: string) => SchemaPruneAction;
813
- loadState: <TState extends PHBaseState = PHBaseState>(state: TState & {
814
- name: string;
815
- }, operations: number) => LoadStateAction;
816
843
  noop: (scope?: string) => NOOPAction;
817
844
  };
818
845
  declare const documentModelActions: {
@@ -912,10 +939,6 @@ declare const actions: {
912
939
  }) => SetPreferredEditorAction;
913
940
  undo: (count?: number, scope?: string) => UndoAction;
914
941
  redo: (count?: number, scope?: string) => RedoAction;
915
- prune: (start?: number, end?: number, scope?: string) => SchemaPruneAction;
916
- loadState: <TState extends PHBaseState = PHBaseState>(state: TState & {
917
- name: string;
918
- }, operations: number) => LoadStateAction;
919
942
  noop: (scope?: string) => NOOPAction;
920
943
  };
921
944
  /**
@@ -1155,6 +1178,15 @@ interface IProcessor {
1155
1178
  /**
1156
1179
  * Processes a list of operations with context.
1157
1180
  * Called when operations match this processor's filter.
1181
+ *
1182
+ * Delivery is at-least-once: a processor may see an operation again after
1183
+ * a restart or a retry, or when a backfill reads an operation whose live
1184
+ * batch has not reached the manager yet. Within one document's scope and
1185
+ * branch, operations arrive in ordinal order. Across documents there is no
1186
+ * ordering guarantee. A processor receives one `onOperations` call at a
1187
+ * time; the next call begins after the previous resolves. A crash between
1188
+ * two concurrently projected documents, after the higher ordinal's cursor
1189
+ * was persisted, can leave the lower ordinals unreplayed.
1158
1190
  */
1159
1191
  onOperations(operations: OperationWithContext[]): Promise<void>;
1160
1192
  /**
@@ -1192,6 +1224,12 @@ type TrackedProcessor = {
1192
1224
  status: ProcessorStatus;
1193
1225
  lastError: string | undefined;
1194
1226
  lastErrorTimestamp: Date | undefined;
1227
+ /**
1228
+ * Clears the error and resolves once the replay from the cursor completes.
1229
+ * Safe from anywhere, but awaiting it from this processor's own
1230
+ * `onOperations` waits on itself: the replay runs after that call returns.
1231
+ * A no-op once the processor has been removed.
1232
+ */
1195
1233
  retry: () => Promise<void>;
1196
1234
  };
1197
1235
  /**
@@ -1200,11 +1238,21 @@ type TrackedProcessor = {
1200
1238
  interface IProcessorManager {
1201
1239
  /**
1202
1240
  * Registers a processor factory.
1203
- * Immediately creates processors for all existing drives.
1241
+ * Immediately creates processors for all existing drives and resolves once
1242
+ * every factory run has completed and its processors are bound. Their
1243
+ * backfills run afterwards, on each processor's own queue. If processors
1244
+ * from an earlier registration under the same identifier are still
1245
+ * draining, or a call of the previous factory is still in flight, the
1246
+ * factory runs after they have settled, so awaiting a re-registration of
1247
+ * a factory from inside that factory or one of its processors'
1248
+ * `onOperations` waits on itself.
1204
1249
  */
1205
1250
  registerFactory(identifier: string, factory: ProcessorFactory): Promise<void>;
1206
1251
  /**
1207
- * Unregisters a processor factory and disconnects all processors it created.
1252
+ * Unregisters a processor factory. Resolves once its processors receive no
1253
+ * new deliveries and their cursors are deleted; each one's in-flight
1254
+ * delivery finishes first, then `onDisconnect` runs. Safe to call from
1255
+ * inside a processor's own `onOperations`.
1208
1256
  */
1209
1257
  unregisterFactory(identifier: string): Promise<void>;
1210
1258
  /**
@@ -1316,16 +1364,62 @@ declare function createNamespacedQueryBuilder<Schema>(db: IBaseRelationalDb<any>
1316
1364
  */
1317
1365
  declare function relationalDbToQueryBuilder<TSchema>(query: IBaseRelationalDb<TSchema>): IRelationalQueryBuilder<TSchema>;
1318
1366
  //#endregion
1367
+ //#region document-model/action-signature.d.ts
1368
+ declare const ACTION_SIGNATURE_V2_PREFIX = "v2:";
1369
+ /** The log an operation is stored in, which a v2 tuple is bound to. */
1370
+ type ActionSigningTarget = {
1371
+ documentId: string;
1372
+ branch: string;
1373
+ };
1374
+ /** Who a v2 tuple attributes the action to; both halves are in the preimage. */
1375
+ type ActionSignerIdentity = {
1376
+ user: UserActionSigner;
1377
+ app: AppActionSigner;
1378
+ };
1379
+ /** A value that would not survive a JSON store round trip unchanged. */
1380
+ declare class CanonicalJsonError extends Error {
1381
+ constructor(path: string, detail: string);
1382
+ }
1383
+ /** Sorted-key JSON, as the state hash encodes; drops `undefined` properties. */
1384
+ declare function canonicalJson(value: unknown, label?: string): string;
1385
+ /** Actions the reactor reduces itself, onto the document scope. */
1386
+ declare const DOCUMENT_SCOPE_ACTION_TYPES: ReadonlySet<string>;
1387
+ /** Where a document-scope action writes: `sourceId` or `documentId`. */
1388
+ declare function targetDocumentId(action: {
1389
+ type: string;
1390
+ input: unknown;
1391
+ }, fallback: string): string;
1392
+ /** The log an action submitted to a job on `documentId` is stored in. */
1393
+ declare function actionSigningTarget(action: {
1394
+ type: string;
1395
+ input: unknown;
1396
+ }, documentId: string, branch: string): ActionSigningTarget;
1397
+ /** The identity a signer writes into `context.signer`, and signs over. */
1398
+ declare function actionSignerIdentity(signer: {
1399
+ user?: UserActionSigner;
1400
+ app?: AppActionSigner;
1401
+ }): ActionSignerIdentity;
1402
+ /** The v2 preimage; throws `CanonicalJsonError` on an unsignable action. */
1403
+ declare function actionPreimageV2(action: Action, target: ActionSigningTarget, signer: ActionSignerIdentity): string;
1404
+ /** `"v2:" + base64url(sha256(preimage))`, unpadded. */
1405
+ declare function hashActionV2(action: Action, target: ActionSigningTarget, signer: ActionSignerIdentity): Promise<string>;
1406
+ /** Signs `action` as a v2 tuple; the message layout is the legacy one. */
1407
+ declare function signActionV2(params: {
1408
+ action: Action;
1409
+ target: ActionSigningTarget;
1410
+ signer: ActionSignerIdentity;
1411
+ sign: ActionSigningHandler;
1412
+ previousStateHash?: string;
1413
+ }): Promise<Signature>;
1414
+ /** Element [2] carries the v2 prefix, whether or not it is well formed. */
1415
+ declare function isV2ActionHash(hash: string): boolean;
1416
+ /** The strict shape of a v2 tuple, apart from what its hash covers. */
1417
+ declare function v2TupleProblem(tuple: Signature): string | undefined;
1418
+ //#endregion
1319
1419
  //#region document-model/schemas.d.ts
1320
1420
  type definedNonNullAny = {};
1321
1421
  declare const isDefinedNonNullAny: (v: any) => v is definedNonNullAny;
1322
1422
  declare const definedNonNullAnySchema: z.ZodAny & z.ZodType<definedNonNullAny, any, z.core.$ZodTypeInternals<definedNonNullAny, any>>;
1323
- declare const Load_StateSchema: z.ZodEnum<{
1324
- LOAD_STATE: "LOAD_STATE";
1325
- }>;
1326
- declare const PruneSchema: z.ZodEnum<{
1327
- PRUNE: "PRUNE";
1328
- }>;
1329
1423
  declare const RedoSchema: z.ZodEnum<{
1330
1424
  REDO: "REDO";
1331
1425
  }>;
@@ -1340,18 +1434,6 @@ declare const UndoSchema: z.ZodEnum<{
1340
1434
  }>;
1341
1435
  declare function OperationScopeSchema(): z.ZodString;
1342
1436
  declare function DocumentActionSchema(): z.ZodUnion<readonly [z.ZodObject<Required<{
1343
- id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
1344
- timestampUtcMs: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
1345
- input: z.ZodType<LoadStateActionInput, LoadStateActionInput, z.core.$ZodTypeInternals<LoadStateActionInput, LoadStateActionInput>>;
1346
- type: z.ZodType<"LOAD_STATE", "LOAD_STATE", z.core.$ZodTypeInternals<"LOAD_STATE", "LOAD_STATE">>;
1347
- scope: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
1348
- }>, z.core.$strip>, z.ZodObject<Required<{
1349
- id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
1350
- timestampUtcMs: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
1351
- input: z.ZodType<PruneActionInput, PruneActionInput, z.core.$ZodTypeInternals<PruneActionInput, PruneActionInput>>;
1352
- type: z.ZodType<"PRUNE", "PRUNE", z.core.$ZodTypeInternals<"PRUNE", "PRUNE">>;
1353
- scope: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
1354
- }>, z.core.$strip>, z.ZodObject<Required<{
1355
1437
  id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
1356
1438
  timestampUtcMs: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
1357
1439
  input: z.ZodType<RedoActionInput, RedoActionInput, z.core.$ZodTypeInternals<RedoActionInput, RedoActionInput>>;
@@ -1376,11 +1458,6 @@ declare function DocumentActionSchema(): z.ZodUnion<readonly [z.ZodObject<Requir
1376
1458
  type: z.ZodType<"UNDO", "UNDO", z.core.$ZodTypeInternals<"UNDO", "UNDO">>;
1377
1459
  scope: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
1378
1460
  }>, z.core.$strip>]>;
1379
- declare function LoadStateActionSchema(): z.ZodObject<Properties<SchemaLoadStateAction>>;
1380
- declare function LoadStateActionInputSchema(): z.ZodObject<Properties<LoadStateActionInput>>;
1381
- declare function LoadStateActionStateInputSchema(): z.ZodObject<Properties<LoadStateActionStateInput>>;
1382
- declare function PruneActionSchema(): z.ZodObject<Properties<SchemaPruneAction>>;
1383
- declare function PruneActionInputSchema(): z.ZodObject<Properties<PruneActionInput>>;
1384
1461
  declare function RedoActionInputSchema(): z.ZodObject<{
1385
1462
  count: z.ZodNumber;
1386
1463
  }, z.core.$strip>;
@@ -1711,6 +1788,8 @@ declare function normalizeDocumentModelVersion(version: number | undefined | nul
1711
1788
  * - All other cases: Apply upgradePath transitions (if provided), then apply initialState, set version
1712
1789
  */
1713
1790
  declare function applyUpgradeDocumentAction(document: PHDocument, action: UpgradeDocumentAction, upgradePath?: UpgradeTransition[]): PHDocument;
1791
+ /** CREATE_DOCUMENT fixes `protocolVersions`; this puts them back after a reducer. */
1792
+ declare function withProtocolVersions<TDocument extends PHDocument>(document: TDocument, protocolVersions: PHDocument["header"]["protocolVersions"]): TDocument;
1714
1793
  /**
1715
1794
  * Applies a DELETE_DOCUMENT action to a document.
1716
1795
  * Marks the document as deleted in the document scope state.
@@ -2434,28 +2513,6 @@ type IOperation = {
2434
2513
  timestampUtcMs: Scalars["DateTime"]["output"];
2435
2514
  type: Scalars["String"]["output"];
2436
2515
  };
2437
- type Load_State = "LOAD_STATE";
2438
- type SchemaLoadStateAction = {
2439
- id: Scalars["String"]["output"];
2440
- timestampUtcMs: Scalars["DateTime"]["output"];
2441
- input: LoadStateActionInput;
2442
- type: Load_State;
2443
- scope: string;
2444
- };
2445
- type LoadStateActionInput = {
2446
- operations: Scalars["Int"]["input"];
2447
- state: LoadStateActionStateInput;
2448
- };
2449
- type LoadStateActionStateInput = {
2450
- data?: InputMaybe<Scalars["Unknown"]["input"]>;
2451
- name: Scalars["String"]["input"];
2452
- };
2453
- type MutationLoadStateArgs = {
2454
- input: SchemaLoadStateAction;
2455
- };
2456
- type MutationPruneArgs = {
2457
- input: SchemaPruneAction;
2458
- };
2459
2516
  type MutationRedoArgs = {
2460
2517
  input: SchemaRedoAction;
2461
2518
  };
@@ -2465,18 +2522,6 @@ type MutationSetNameArgs = {
2465
2522
  type MutationUndoArgs = {
2466
2523
  input: SchemaUndoAction;
2467
2524
  };
2468
- type Prune = "PRUNE";
2469
- type SchemaPruneAction = {
2470
- id: Scalars["String"]["output"];
2471
- timestampUtcMs: Scalars["DateTime"]["output"];
2472
- input: PruneActionInput;
2473
- type: Prune;
2474
- scope: string;
2475
- };
2476
- type PruneActionInput = {
2477
- end?: InputMaybe<Scalars["Int"]["input"]>;
2478
- start?: InputMaybe<Scalars["Int"]["input"]>;
2479
- };
2480
2525
  type Query = {
2481
2526
  __typename?: "Query";
2482
2527
  document: Maybe<IDocument>;
@@ -2548,14 +2593,6 @@ type SchemaNOOPAction = {
2548
2593
  timestampUtcMs: Scalars["DateTime"]["output"];
2549
2594
  type: "NOOP";
2550
2595
  };
2551
- type LoadStateAction = Action & {
2552
- type: "LOAD_STATE";
2553
- input: LoadStateActionInput;
2554
- };
2555
- type PruneAction = Action & {
2556
- type: "PRUNE";
2557
- input: PruneActionInput;
2558
- };
2559
2596
  type RedoAction = Action & {
2560
2597
  type: "REDO";
2561
2598
  input: SchemaRedoAction["input"];
@@ -2653,7 +2690,7 @@ type UpdateRelationshipAction = Action & {
2653
2690
  type: "UPDATE_RELATIONSHIP";
2654
2691
  input: UpdateRelationshipActionInput;
2655
2692
  };
2656
- type DocumentAction = LoadStateAction | PruneAction | RedoAction | SetNameAction | SetPreferredEditorAction | UndoAction | NOOPAction;
2693
+ type DocumentAction = RedoAction | SetNameAction | SetPreferredEditorAction | UndoAction | NOOPAction;
2657
2694
  interface ISignal<TType extends string, TInput> {
2658
2695
  type: TType;
2659
2696
  input: TInput;
@@ -2833,13 +2870,14 @@ interface ISigner {
2833
2870
  */
2834
2871
  verify: (data: Uint8Array, signature: Uint8Array) => Promise<void>;
2835
2872
  /**
2836
- * Signs an action (used for operation signing).
2873
+ * Signs an action for the log it is written to.
2837
2874
  *
2838
2875
  * @param action - The action to sign.
2876
+ * @param target - The document and branch whose log stores the action.
2839
2877
  * @param abortSignal - Optional abort signal to cancel the signing.
2840
2878
  * @returns The signature tuple.
2841
2879
  */
2842
- signAction: (action: Action, abortSignal?: AbortSignal) => Promise<Signature>;
2880
+ signAction: (action: Action, target: ActionSigningTarget, abortSignal?: AbortSignal) => Promise<Signature>;
2843
2881
  }
2844
2882
  type IsStateOfType<TState> = (state: unknown) => state is TState;
2845
2883
  type AssertIsStateOfType<TState> = (state: unknown) => asserts state is TState;
@@ -3032,7 +3070,8 @@ type PHConnectReactorFeatureFlags = {
3032
3070
  authConditions?: boolean;
3033
3071
  };
3034
3072
  type PHConnectReactor = {
3035
- featureFlags?: PHConnectReactorFeatureFlags;
3073
+ featureFlags?: PHConnectReactorFeatureFlags; /** What new documents are created as; `legacy` while peers predate v2-required documents. */
3074
+ createSignaturePolicy?: "legacy" | "v2-required";
3036
3075
  };
3037
3076
  /**
3038
3077
  * A URL-matching pattern for a service-worker runtime-caching rule, in
@@ -3195,5 +3234,5 @@ type PowerhouseConfig = {
3195
3234
  connect?: PHConnectRuntimeConfig;
3196
3235
  };
3197
3236
  //#endregion
3198
- export { AddOperationExampleAction as $, UpgradeManifest as $a, deleteModule as $c, SetOperationDescriptionInput as $i, addUndo as $l, MutationDeleteOperationErrorArgs as $n, ReorderStateExamplesInputSchema as $o, RedoAction as $r, IProcessorManager as $s, DocumentModelOperationExampleOperations as $t, Operand as $u, PHReactorRenown as A, SignatureVerificationHandler as Aa, WebhookReply as Ac, ScopeState as Ai, setName as Al, LoadStateActionInput as An, ManifestSchema as Ao, MutationSetOperationTemplateArgs as Ar, UndoSchema as As, DeleteOperationErrorInput as At, reshuffleByTimestamp as Au, DEFAULT_REGISTRY_URL as B, UndoRedoAction as Ba, actionSigner as Bc, SetModelExtensionInput as Bi, setOperationTemplate as Bl, ModuleSpecification as Bn, PruneActionInputSchema as Bo, OperationsByScope as Br, relationalDbToQueryBuilder as Bs, DocumentModelGlobalState as Bt, OperationOutcome as Bu, PHConnectReactor as C, Set_Name as Ca, RouteTransport as Cc, UserActionSigner as Cd, SchemaLoadStateAction as Ci, setInitialState as Cl, Incremental as Cn, DocumentModelGlobalStateSchema as Co, MutationSetOperationErrorCodeArgs as Cr, SetPreferredEditorActionSchema as Cs, DeleteChildDocumentSignal as Ct, operationsAreEqual as Cu, PHConnectRuntimeConfig as D, SignalResult as Da, WebhookField as Dc, DEFAULT_RELATIONAL_PROCESSOR_DB_NAME as Dd, SchemaSetNameAction as Di, setModelName as Dl, LoadFromFile as Dn, LoadStateActionSchema as Do, MutationSetOperationNameArgs as Dr, StateSchema as Ds, DeleteModuleInput as Dt, readOnly as Du, PHConnectRenownAdapters as E, SignalDispatch as Ea, WebhookEndpointInfo as Ec, DEFAULT_ANALYTICS_PROCESSOR_DB_NAME as Ed, SchemaRedoAction as Ei, setModelId as El, IsStateOfType as En, LoadStateActionInputSchema as Eo, MutationSetOperationErrorTemplateArgs as Er, Set_PreferredEditorSchema as Es, DeleteModuleAction as Et, prepareOperations as Eu, PathValidation as F, StateReducer as Fa, WebhookVerification as Fc, SetInitialStateAction as Fi, setOperationErrorTemplate as Fl, MakeOptional as Fn, OperationSpecificationSchema as Fo, MutationUpdateStateExampleArgs as Fr, isDefinedNonNullAny as Fs, DeleteStateExampleInput as Ft, split as Fu, Actions as G, UpdateRelationshipAction as Ga, addOperationError as Gc, SetModuleDescriptionAction as Gi, updateOperationExample as Gl, MutationAddModuleArgs as Gn, RedoActionInputSchema as Go, PieceModule as Gr, IRelationalDbProcessor as Gs, DocumentModelLocalState as Gt, setNameOperation as Gu, ActionSignatureContext as H, UpdateChangeLogItemInput as Ha, addChangeLogItem as Hc, SetModelIdInput as Hi, setStateSchema as Hl, MoveOperationInput as Hn, PruneSchema as Ho, PartialState as Hr, HashAlgorithms as Hs, DocumentModelHeaderOperations as Ht, loadStateOperation as Hu, PowerhouseConfig as I, SubgraphModule as Ia, Action as Ic, SetInitialStateInput as Ii, setOperationName as Il, Manifest as In, PieceModuleSchema as Io, NOOPAction as Ir, createNamespacedDb as Is, DocumentAction as It, updateHeaderRevision as Iu, AddModuleAction as J, UpdateStateExampleInput as Ja, baseActions as Jc, SetModuleNameInput as Ji, IntegrityIssueSubType as Jl, MutationAddOperationExampleArgs as Jn, ReorderChangeLogItemsInputSchema as Jo, PruneAction as Jr, RelationalDbProcessor as Js, DocumentModelModuleOperations as Jt, undoOperationV2 as Ju, AddChangeLogItemAction as K, UpdateRelationshipActionInput as Ka, addOperationExample as Kc, SetModuleDescriptionInput as Ki, updateStateExample as Kl, MutationAddOperationArgs as Kn, RedoActionSchema as Ko, PowerhouseModule as Kr, IRelationalQueryBuilder as Ks, DocumentModelModule as Kt, setPreferredEditorOperation as Ku, PowerhousePackage as L, Undo as La, ActionContext as Lc, SetModelDescriptionAction as Li, setOperationReducer as Ll, MappedOperation as Ln, PieceModulesSchema as Lo, OperationErrorSpecification as Lr, createNamespacedQueryBuilder as Ls, DocumentModelAction as Lt, DocumentOperations as Lu, PHRenownRainbowAdapterConfig as M, SkipHeaderOperationIndex as Ma, WebhookScheme as Mc, SetAuthorNameInput as Mi, setOperationErrorCode as Ml, Load_State as Mn, MoveOperationInputSchema as Mo, MutationUndoArgs as Mr, UpdateOperationExampleInputSchema as Ms, DeleteOperationExampleInput as Mt, skipHeaderOperations as Mu, PackageManagerArgs as N, SkipHeaderOperations as Na, WebhookSignatureEncoding as Nc, SetAuthorWebsiteAction as Ni, setOperationErrorDescription as Nl, MakeEmpty as Nn, OperationErrorSchema as No, MutationUpdateChangeLogItemInputArgs as Nr, UpdateStateExampleInputSchema as Ns, DeleteOperationInput as Nt, sortMappedOperations as Nu, PHConnectSentry as O, SignalResults as Oa, WebhookHashAlgorithm as Oc, PROCESSOR_APPS as Od, SchemaSetPreferredEditorAction as Oi, setModuleDescription as Ol, LoadFromInput as On, LoadStateActionStateInputSchema as Oo, MutationSetOperationReducerArgs as Or, UndoActionInputSchema as Os, DeleteOperationAction as Ot, removeExistingOperations as Ou, ParsedCmdResult as P, State as Pa, WebhookSpec as Pc, SetAuthorWebsiteInput as Pi, setOperationErrorName as Pl, MakeMaybe as Pn, OperationScopeSchema as Po, MutationUpdateOperationExampleArgs as Pr, definedNonNullAnySchema as Ps, DeleteStateExampleAction as Pt, sortOperations as Pu, AddOperationErrorInput as Q, ValidationError as Qa, deleteChangeLogItem as Qc, SetOperationDescriptionAction as Qi, PHDocumentMeta as Ql, MutationDeleteOperationArgs as Qn, ReorderOperationExamplesInputSchema as Qo, Redo as Qr, IProcessorHostModuleBase as Qs, DocumentModelOperationExampleAction as Qt, Grant as Qu, ServiceAction as R, UndoAction as Ra, actionContext as Rc, SetModelDescriptionInput as Ri, setOperationSchema as Rl, Maybe as Rn, PowerhouseModuleSchema as Ro, OperationIndex as Rr, createRelationalDb as Rs, DocumentModelDocument as Rt, Operation as Ru, PHConnectPwaUrlPattern as S, SetStateSchemaInput as Sa, RouteSpec as Sc, Signature as Sd, Scalars as Si, setAuthorWebsite as Sl, ISigner as Sn, DocumentActionSchema as So, MutationSetOperationDescriptionArgs as Sr, SetPreferredEditorActionInputSchema as Ss, DeleteChildDocumentInput as St, nextSkipNumber as Su, PHConnectRenown as T, Signal as Ta, ScopedRouteHandle as Tc, serializeSignature as Td, SchemaPruneAction as Ti, setModelExtension as Tl, IsDocumentOfType as Tn, DocumentSpecificationSchema as To, MutationSetOperationErrorNameArgs as Tr, Set_NameSchema as Ts, DeleteDocumentActionInput as Tt, precedes as Tu, ActionSigningHandler as U, UpdateOperationExampleAction as Ua, addModule as Uc, SetModelNameAction as Ui, undo as Ul, Mutation as Un, PublisherSchema as Uo, PhAiToolAnnotations as Ur, IBaseRelationalDb as Us, DocumentModelInput as Ut, operationOutcome as Uu, ActionErrorCallback as V, UpdateChangeLogItemAction as Va, actions as Vc, SetModelIdAction as Vi, setPreferredEditor as Vl, MoveOperationAction as Vn, PruneActionSchema as Vo, PartialRecord as Vr, ExtractProcessorSchemaOrSelf as Vs, DocumentModelHeaderAction as Vt, OperationWithContext$1 as Vu, ActionVerificationHandler as W, UpdateOperationExampleInput as Wa, addOperation as Wc, SetModelNameInput as Wi, updateChangeLogItem as Wl, MutationAddChangeLogItemInputArgs as Wn, PwaConfigSchema as Wo, PhAiToolDescriptor as Wr, IRelationalDb as Ws, DocumentModelLib as Wt, redoOperation as Wu, AddOperationAction as X, UpgradeDocumentActionInput as Xa, buildSignedAction as Xc, SetNameActionInput as Xi, PHDocument as Xl, MutationDeleteChangeLogItemInputArgs as Xn, ReorderModulesInputSchema as Xo, Publisher as Xr, IProcessor as Xs, DocumentModelOperationErrorAction as Xt, Capability as Xu, AddModuleInput as Y, UpgradeDocumentAction as Ya, buildOperationSignature as Yc, SetNameAction as Yi, IntegrityIssueType as Yl, MutationAddStateExampleArgs as Yn, ReorderModuleOperationsInputSchema as Yo, PruneActionInput as Yr, RelationalDbProcessorClass as Ys, DocumentModelOperationAction as Yt, AuthGroups as Yu, AddOperationErrorAction as Z, User as Za, createAction as Zc, SetNameOperation as Zi, PHDocumentHeader as Zl, MutationDeleteModuleArgs as Zn, ReorderOperationErrorsInputSchema as Zo, Query as Zr, IProcessorDispatch as Zs, DocumentModelOperationErrorOperations as Zt, Condition as Zu, PHConnectPwaCacheStrategy as _, SetOperationTemplateInput as _a, RouteBody as _c, defaultPHState as _d, ReorderStateExamplesInput as _i, reorderModules as _l, ID as _n, DeleteModuleInputSchema as _o, MutationSetModelIdArgs as _r, SetOperationNameInputSchema as _s, CreateDocumentAction as _t, isUndo as _u, PHConnectAi as a, SetOperationErrorNameInput as aa, ProcessorFilter as ac, backfillAuthState as ad, RemoveRelationshipActionInput as ai, loadState as al, DocumentModelVersioningAction as an, normalizeDocumentModelVersion as ao, MutationRedoArgs as ar, SetModelExtensionInputSchema as as, AddStateExampleInput as at, checkOperationsIntegrity as au, PHConnectPwaManifest as b, SetPreferredEditorOperation as ba, RouteMethod as bc, HashConfig as bd, SaveToFile as bi, reorderStateExamples as bl, ISignal as bn, DeleteOperationInputSchema as bo, MutationSetModuleNameArgs as br, SetOperationScopeInputSchema as bs, DeleteChangeLogItemAction as bt, mapSkippedOperationsV2 as bu, PHConnectDefaultDrive as c, SetOperationNameAction as ca, TrackedProcessor as cc, createDocumentState as cd, ReorderModuleOperationsAction as ci, operationExampleCreators as cl, DocumentSpecification as cn, AddOperationErrorInputSchema as co, MutationReorderModulesArgs as cr, SetModuleDescriptionInputSchema as cs, Author as ct, filterDuplicatedOperations as cu, PHConnectDriveSection as d, SetOperationReducerInput as da, IWebhookEndpoints as dc, createState as dd, ReorderModulesInput as di, operationWithContext as dl, EditorModule as dn, AddStateExampleInputSchema as do, MutationReorderStateExamplesArgs as dr, SetNameActionSchema as ds, ConfigEntryType as dt, garbageCollectV2 as du, SetOperationErrorCodeAction as ea, ProcessorApp as ec, PHAuthState as ed, RedoActionInput as ei, deleteOperation as el, DocumentModelOperationOperations as en, UpgradeReducer as eo, MutationDeleteOperationExampleArgs as er, ScopeStateSchema as es, AddOperationExampleInput as et, appendWithoutApplying as eu, PHConnectDriveSections as f, SetOperationSchemaAction as fa, IWebhookScope as fc, defaultAuthState as fd, ReorderOperationErrorsAction as fi, prune as fl, EditorProps as fn, AuthorSchema as fo, MutationSetAuthorNameArgs as fr, SetOperationDescriptionInputSchema as fs, CopyChildDocumentInput as ft, getDocumentLastModified as fu, PHConnectPwa as g, SetOperationTemplateAction as ga, RouteAuthorizer as gc, defaultLocalState as gd, ReorderStateExamplesAction as gi, reorderModuleOperations as gl, IAction as gn, DeleteChangeLogItemInputSchema as go, MutationSetModelExtensionArgs as gr, SetOperationErrorTemplateInputSchema as gs, CreateDocument as gt, isNoopOperation as gu, PHConnectPackages as h, SetOperationScopeInput as ha, RouteAuth as hc, defaultGlobalState as hd, ReorderOperationExamplesInput as hi, reorderChangeLogItems as hl, GetDocumentOptions as hn, ConfigEntryTypeSchema as ho, MutationSetModelDescriptionArgs as hr, SetOperationErrorNameInputSchema as hs, CreateChildDocumentSignal as ht, isDocumentAction as hu, LogLevels as i, SetOperationErrorNameAction as ia, ProcessorFactoryBuilder as ic, Principal as id, RemoveRelationshipAction as ii, documentModelActions as il, DocumentModelUtils as in, computeUpgradeTransitions as io, MutationPruneArgs as ir, SetModelDescriptionInputSchema as is, AddStateExampleAction as it, checkCleanedOperationsIntegrity as iu, PHRenownPrivyAdapterConfig as j, SigningParameters as ja, WebhookRequest as jc, SetAuthorNameAction as ji, setOperationDescription as jl, LoadStateActionStateInput as jn, ModuleSchema as jo, MutationSetStateSchemaArgs as jr, UpdateChangeLogItemInputSchema as js, DeleteOperationExampleAction as jt, reshuffleByTimestampAndIndex as ju, PHPackageProvider as k, SignalType as ka, WebhookPolicy as kc, SchemaUndoAction as ki, setModuleName as kl, LoadStateAction as kn, Load_StateSchema as ko, MutationSetOperationSchemaArgs as kr, UndoActionSchema as ks, DeleteOperationErrorAction as kt, replayDocument as ku, PHConnectDefaultDriveLocal as l, SetOperationNameInput as la, AuthorizerResult as lc, createGlobalState as ld, ReorderModuleOperationsInput as li, operationFromAction as ll, ENSInfo as ln, AddOperationExampleInputSchema as lo, MutationReorderOperationErrorsArgs as lr, SetModuleNameInputSchema as ls, CodeExample as lt, garbageCollect as lu, PHConnectInstance as m, SetOperationScopeAction as ma, RouteActor as mc, defaultDocumentState as md, ReorderOperationExamplesAction as mi, releaseNewVersion as ml, FileInput as mn, ConfigEntrySchema as mo, MutationSetInitialStateArgs as mr, SetOperationErrorDescriptionInputSchema as ms, CreateChildDocumentInput as mt, hashDocumentStateForScope as mu, DrivePreserveStrategy as n, SetOperationErrorDescriptionAction as na, ProcessorDispatchResult as nc, PHDocumentState as nd, ReducerOptions as ni, deleteOperationExample as nl, DocumentModelStateAction as nn, applyDeleteDocumentAction as no, MutationLoadStateArgs as nr, SetAuthorWebsiteInputSchema as ns, AddRelationshipAction as nt, baseCreateDocument as nu, PHConnectApp as o, SetOperationErrorTemplateAction as oa, ProcessorRecord as oc, createAuthState as od, ReorderChangeLogItemsAction as oi, moveOperation as ol, DocumentModelVersioningOperations as on, AddChangeLogItemInputSchema as oo, MutationReorderChangeLogItemsInputArgs as or, SetModelIdInputSchema as os, AssertIsDocumentOfType as ot, diffOperations as ou, PHConnectDrives as p, SetOperationSchemaInput as pa, NodeRouteSpec as pc, defaultBaseState as pd, ReorderOperationErrorsInput as pi, redo as pl, Exact as pn, CodeExampleSchema as po, MutationSetAuthorWebsiteArgs as pr, SetOperationErrorCodeInputSchema as ps, CopyChildDocumentSignal as pt, groupOperationsByScope as pu, AddChangeLogItemInput as q, UpdateStateExampleAction as qa, addStateExample as qc, SetModuleNameAction as qi, verifyOperationSignature as ql, MutationAddOperationErrorArgs as qn, RedoSchema as qo, Prune as qr, IRelationalQueryMethods as qs, DocumentModelModuleAction as qt, undoOperation as qu, LogLevel as r, SetOperationErrorDescriptionInput as ra, ProcessorFactory as rc, PHGroupState as rd, ReleaseNewVersionAction as ri, deleteStateExample as rl, DocumentModelStateOperations as rn, applyUpgradeDocumentAction as ro, MutationMoveOperationArgs as rr, SetInitialStateInputSchema as rs, AddRelationshipActionInput as rt, baseReducerVersion as ru, PHConnectBranding as s, SetOperationErrorTemplateInput as sa, ProcessorStatus as sc, createBaseState as sd, ReorderChangeLogItemsInput as si, noop as sl, DocumentOperationsIgnoreMap as sn, AddModuleInputSchema as so, MutationReorderModuleOperationsArgs as sr, SetModelNameInputSchema as ss, AssertIsStateOfType as st, filterDocumentOperationsResultingState as su, DrivePreserveStrategies as t, SetOperationErrorCodeInput as ta, ProcessorApps as tc, PHBaseState as td, Reducer as ti, deleteOperationError as tl, DocumentModelPHState as tn, UpgradeTransition as to, MutationDeleteStateExampleArgs as tr, SetAuthorNameInputSchema as ts, AddOperationInput as tt, attachBranch as tu, PHConnectDefaultDriveRemote as u, SetOperationReducerAction as ua, IHttpScope as uc, createLocalState as ud, ReorderModulesAction as ui, operationFromOperation as ul, EditorDispatch as un, AddOperationInputSchema as uo, MutationReorderOperationExamplesArgs as ur, SetNameActionInputSchema as us, ConfigEntry as ut, garbageCollectDocumentOperations as uu, PHConnectPwaFileHandler as v, SetPreferredEditorAction as va, RouteContext as vc, ActionSigner as vd, ReplayDocumentOptions as vi, reorderOperationErrors as vl, IDocument as vn, DeleteOperationErrorInputSchema as vo, MutationSetModelNameArgs as vr, SetOperationReducerInputSchema as vs, CreateDocumentActionInput as vt, isUndoRedo as vu, PHConnectReactorFeatureFlags as w, Set_PreferredEditor as wa, RouteUser as wc, deserializeSignature as wd, SchemaNOOPAction as wi, setModelDescription as wl, InputMaybe as wn, DocumentModelInputSchema as wo, MutationSetOperationErrorDescriptionArgs as wr, SetStateSchemaInputSchema as ws, DeleteDocumentAction as wt, parseResultingState as wu, PHConnectPwaRuntimeCaching as x, SetStateSchemaAction as xa, RouteOptions as xc, PHDocumentSignatureInfo as xd, SaveToFileHandle as xi, setAuthorName as xl, ISignalResult as xn, DeleteStateExampleInputSchema as xo, MutationSetNameArgs as xr, SetOperationTemplateInputSchema as xs, DeleteChangeLogItemInput as xt, merge as xu, PHConnectPwaIcon as y, SetPreferredEditorActionInput as ya, RouteHandler as yc, AppActionSigner as yd, RevisionsFilter as yi, reorderOperationExamples as yl, IOperation as yn, DeleteOperationExampleInputSchema as yo, MutationSetModuleDescriptionArgs as yr, SetOperationSchemaInputSchema as ys, CreateState as yt, mapSkippedOperations as yu, ServiceActions as z, UndoActionInput as za, actionFromAction as zc, SetModelExtensionAction as zi, setOperationScope as zl, MinimalBackupData as zn, PowerhouseModulesSchema as zo, OperationSpecification as zr, hashNamespace as zs, DocumentModelDocumentModelModule as zt, OperationContext as zu };
3199
- //# sourceMappingURL=types-Cphf695h.d.ts.map
3237
+ export { AddOperationExampleAction as $, AddOperationExampleInputSchema as $a, deleteOperationExample as $c, SetOperationReducerAction as $i, checkCleanedOperationsIntegrity as $l, MutationRedoArgs as $n, SetOperationErrorTemplateInputSchema as $o, ReorderModuleOperationsAction as $r, ProcessorDispatchResult as $s, DocumentModelOperationExampleOperations as $t, defaultGlobalState as $u, PHReactorRenown as A, UpdateChangeLogItemAction as Aa, WebhookSignatureEncoding as Ac, Signature as Ad, SetModelIdAction as Ai, setOperationErrorTemplate as Al, MakeMaybe as An, RedoSchema as Ao, NOOPAction as Ar, signActionV2 as As, DeleteOperationErrorInput as At, split as Au, DEFAULT_REGISTRY_URL as B, User as Ba, addModule as Bc, SetNameOperation as Bi, updateOperationExample as Bl, MutationAddChangeLogItemInputArgs as Bn, SetInitialStateInputSchema as Bo, PowerhouseModule as Br, IBaseRelationalDb as Bs, DocumentModelGlobalState as Bt, PHDocumentState as Bu, PHConnectReactor as C, State as Ca, WebhookEndpointInfo as Cc, setPreferredEditorOperation as Cd, SetAuthorWebsiteInput as Ci, setModuleDescription as Cl, Incremental as Cn, PieceModulesSchema as Co, MutationSetOperationSchemaArgs as Cr, DOCUMENT_SCOPE_ACTION_TYPES as Cs, DeleteChildDocumentSignal as Ct, removeExistingOperations as Cu, PHConnectRuntimeConfig as D, UndoAction as Da, WebhookReply as Dc, AppActionSigner as Dd, SetModelDescriptionInput as Di, setOperationErrorCode as Dl, LoadFromFile as Dn, PwaConfigSchema as Do, MutationUpdateChangeLogItemInputArgs as Dr, canonicalJson as Ds, DeleteModuleInput as Dt, skipHeaderOperations as Du, PHConnectRenownAdapters as E, Undo as Ea, WebhookPolicy as Ec, ActionSigner as Ed, SetModelDescriptionAction as Ei, setOperationDescription as El, IsStateOfType as En, PublisherSchema as Eo, MutationUndoArgs as Er, actionSigningTarget as Es, DeleteModuleAction as Et, reshuffleByTimestampAndIndex as Eu, PathValidation as F, UpdateRelationshipActionInput as Fa, actionContext as Fc, DEFAULT_RELATIONAL_PROCESSOR_DB_NAME as Fd, SetModuleDescriptionInput as Fi, setOperationTemplate as Fl, MinimalBackupData as Fn, ReorderOperationExamplesInputSchema as Fo, PartialRecord as Fr, createRelationalDb as Fs, DeleteStateExampleInput as Ft, Condition as Fu, Actions as G, applyDeleteDocumentAction as Ga, baseActions as Gc, SetOperationErrorDescriptionAction as Gi, PHDocument as Gl, MutationAddStateExampleArgs as Gn, SetModuleDescriptionInputSchema as Go, RedoActionInput as Gr, RelationalDbProcessor as Gs, DocumentModelLocalState as Gt, createBaseState as Gu, ActionSignatureContext as H, UpgradeManifest as Ha, addOperationError as Hc, SetOperationDescriptionInput as Hi, verifyOperationSignature as Hl, MutationAddOperationArgs as Hn, SetModelExtensionInputSchema as Ho, Query as Hr, IRelationalDbProcessor as Hs, DocumentModelHeaderOperations as Ht, Principal as Hu, PowerhouseConfig as I, UpdateStateExampleAction as Ia, actionFromAction as Ic, PROCESSOR_APPS as Id, SetModuleNameAction as Ii, setPreferredEditor as Il, ModuleSpecification as In, ReorderStateExamplesInputSchema as Io, PartialState as Ir, hashNamespace as Is, DocumentAction as It, Grant as Iu, AddModuleAction as J, normalizeDocumentModelVersion as Ja, createAction as Jc, SetOperationErrorNameInput as Ji, addUndo as Jl, MutationDeleteOperationArgs as Jn, SetNameActionSchema as Jo, ReleaseNewVersionAction as Jr, IProcessorDispatch as Js, DocumentModelModuleOperations as Jt, createLocalState as Ju, AddChangeLogItemAction as K, applyUpgradeDocumentAction as Ka, buildOperationSignature as Kc, SetOperationErrorDescriptionInput as Ki, PHDocumentHeader as Kl, MutationDeleteChangeLogItemInputArgs as Kn, SetModuleNameInputSchema as Ko, Reducer as Kr, RelationalDbProcessorClass as Ks, DocumentModelModule as Kt, createDocumentState as Ku, PowerhousePackage as L, UpdateStateExampleInput as La, actionSigner as Lc, SetModuleNameInput as Li, setStateSchema as Ll, MoveOperationAction as Ln, ScopeStateSchema as Lo, PhAiToolAnnotations as Lr, relationalDbToQueryBuilder as Ls, DocumentModelAction as Lt, Operand as Lu, PHRenownRainbowAdapterConfig as M, UpdateOperationExampleAction as Ma, WebhookVerification as Mc, deserializeSignature as Md, SetModelNameAction as Mi, setOperationReducer as Ml, Manifest as Mn, ReorderModuleOperationsInputSchema as Mo, OperationIndex as Mr, v2TupleProblem as Ms, DeleteOperationExampleInput as Mt, withSignaturePolicy as Mu, PackageManagerArgs as N, UpdateOperationExampleInput as Na, Action as Nc, serializeSignature as Nd, SetModelNameInput as Ni, setOperationSchema as Nl, MappedOperation as Nn, ReorderModulesInputSchema as No, OperationSpecification as Nr, createNamespacedDb as Ns, DeleteOperationInput as Nt, AuthGroups as Nu, PHConnectSentry as O, UndoActionInput as Oa, WebhookRequest as Oc, HashConfig as Od, SetModelExtensionAction as Oi, setOperationErrorDescription as Ol, LoadFromInput as On, RedoActionInputSchema as Oo, MutationUpdateOperationExampleArgs as Or, hashActionV2 as Os, DeleteOperationAction as Ot, sortMappedOperations as Ou, ParsedCmdResult as P, UpdateRelationshipAction as Pa, ActionContext as Pc, DEFAULT_ANALYTICS_PROCESSOR_DB_NAME as Pd, SetModuleDescriptionAction as Pi, setOperationScope as Pl, Maybe as Pn, ReorderOperationErrorsInputSchema as Po, OperationsByScope as Pr, createNamespacedQueryBuilder as Ps, DeleteStateExampleAction as Pt, Capability as Pu, AddOperationErrorInput as Q, AddOperationErrorInputSchema as Qa, deleteOperationError as Qc, SetOperationNameInput as Qi, baseReducerVersion as Ql, MutationMoveOperationArgs as Qn, SetOperationErrorNameInputSchema as Qo, ReorderChangeLogItemsInput as Qr, ProcessorApps as Qs, DocumentModelOperationExampleAction as Qt, defaultDocumentState as Qu, ServiceAction as R, UpgradeDocumentAction as Ra, actions as Rc, SetNameAction as Ri, undo as Rl, MoveOperationInput as Rn, SetAuthorNameInputSchema as Ro, PhAiToolDescriptor as Rr, ExtractProcessorSchemaOrSelf as Rs, DocumentModelDocument as Rt, PHAuthState as Ru, PHConnectPwaUrlPattern as S, SkipHeaderOperations as Sa, ScopedRouteHandle as Sc, setNameOperation as Sd, SetAuthorWebsiteAction as Si, setModelName as Sl, ISigner as Sn, PieceModuleSchema as So, MutationSetOperationReducerArgs as Sr, CanonicalJsonError as Ss, DeleteChildDocumentInput as St, readOnly as Su, PHConnectRenown as T, SubgraphModule as Ta, WebhookHashAlgorithm as Tc, undoOperationV2 as Td, SetInitialStateInput as Ti, setName as Tl, IsDocumentOfType as Tn, PowerhouseModulesSchema as To, MutationSetStateSchemaArgs as Tr, actionSignerIdentity as Ts, DeleteDocumentActionInput as Tt, reshuffleByTimestamp as Tu, ActionSigningHandler as U, UpgradeReducer as Ua, addOperationExample as Uc, SetOperationErrorCodeAction as Ui, IntegrityIssueSubType as Ul, MutationAddOperationErrorArgs as Un, SetModelIdInputSchema as Uo, Redo as Ur, IRelationalQueryBuilder as Us, DocumentModelInput as Ut, backfillAuthState as Uu, ActionErrorCallback as V, ValidationError as Va, addOperation as Vc, SetOperationDescriptionAction as Vi, updateStateExample as Vl, MutationAddModuleArgs as Vn, SetModelDescriptionInputSchema as Vo, Publisher as Vr, IRelationalDb as Vs, DocumentModelHeaderAction as Vt, PHGroupState as Vu, ActionVerificationHandler as W, UpgradeTransition as Wa, addStateExample as Wc, SetOperationErrorCodeInput as Wi, IntegrityIssueType as Wl, MutationAddOperationExampleArgs as Wn, SetModelNameInputSchema as Wo, RedoAction as Wr, IRelationalQueryMethods as Ws, DocumentModelLib as Wt, createAuthState as Wu, AddOperationAction as X, AddChangeLogItemInputSchema as Xa, deleteModule as Xc, SetOperationErrorTemplateInput as Xi, attachBranch as Xl, MutationDeleteOperationExampleArgs as Xn, SetOperationErrorCodeInputSchema as Xo, RemoveRelationshipActionInput as Xr, IProcessorManager as Xs, DocumentModelOperationErrorAction as Xt, defaultAuthState as Xu, AddModuleInput as Y, withProtocolVersions as Ya, deleteChangeLogItem as Yc, SetOperationErrorTemplateAction as Yi, appendWithoutApplying as Yl, MutationDeleteOperationErrorArgs as Yn, SetOperationDescriptionInputSchema as Yo, RemoveRelationshipAction as Yr, IProcessorHostModuleBase as Ys, DocumentModelOperationAction as Yt, createState as Yu, AddOperationErrorAction as Z, AddModuleInputSchema as Za, deleteOperation as Zc, SetOperationNameAction as Zi, baseCreateDocument as Zl, MutationDeleteStateExampleArgs as Zn, SetOperationErrorDescriptionInputSchema as Zo, ReorderChangeLogItemsAction as Zr, ProcessorApp as Zs, DocumentModelOperationErrorOperations as Zt, defaultBaseState as Zu, PHConnectPwaCacheStrategy as _, SignalResults as _a, RouteMethod as _c, OperationContext as _d, SchemaSetPreferredEditorAction as _i, setAuthorWebsite as _l, ID as _n, ModuleSchema as _o, MutationSetOperationErrorCodeArgs as _r, definedNonNullAnySchema as _s, CreateDocumentAction as _t, nextSkipNumber as _u, PHConnectAi as a, SetOperationTemplateAction as aa, TrackedProcessor as ac, SIGNATURE_PROTOCOL as ad, ReorderOperationExamplesAction as ai, operationFromAction as al, DocumentModelVersioningAction as an, ConfigEntryTypeSchema as ao, MutationReorderStateExamplesArgs as ar, SetPreferredEditorActionInputSchema as as, AddStateExampleInput as at, garbageCollectDocumentOperations as au, PHConnectPwaManifest as b, SigningParameters as ba, RouteTransport as bc, operationOutcome as bd, SetAuthorNameAction as bi, setModelExtension as bl, ISignal as bn, OperationScopeSchema as bo, MutationSetOperationErrorTemplateArgs as br, ActionSignerIdentity as bs, DeleteChangeLogItemAction as bt, precedes as bu, PHConnectDefaultDrive as c, SetPreferredEditorActionInput as ca, IWebhookEndpoints as cc, deriveDocumentId as cd, ReorderStateExamplesInput as ci, redo as cl, DocumentSpecification as cn, DeleteOperationErrorInputSchema as co, MutationSetInitialStateArgs as cr, Set_NameSchema as cs, Author as ct, groupOperationsByScope as cu, PHConnectDriveSection as d, SetStateSchemaInput as da, RouteActor as dc, protocolVersionsFor as dd, SaveToFile as di, reorderModuleOperations as dl, EditorModule as dn, DeleteStateExampleInputSchema as do, MutationSetModelIdArgs as dr, UndoActionInputSchema as ds, ConfigEntryType as dt, isNoopOperation as du, SetOperationReducerInput as ea, ProcessorFactory as ec, defaultLocalState as ed, ReorderModuleOperationsInput as ei, deleteStateExample as el, DocumentModelOperationOperations as en, AddOperationInputSchema as eo, MutationReorderChangeLogItemsInputArgs as er, SetOperationNameInputSchema as es, AddOperationExampleInput as et, checkOperationsIntegrity as eu, PHConnectDriveSections as f, Set_Name as fa, RouteAuth as fc, requestedSignaturePolicy as fd, SaveToFileHandle as fi, reorderModules as fl, EditorProps as fn, DocumentActionSchema as fo, MutationSetModelNameArgs as fr, UndoActionSchema as fs, CopyChildDocumentInput as ft, isUndo as fu, PHConnectPwa as g, SignalResult as ga, RouteHandler as gc, Operation as gd, SchemaSetNameAction as gi, setAuthorName as gl, IAction as gn, ManifestSchema as go, MutationSetOperationDescriptionArgs as gr, UpdateStateExampleInputSchema as gs, CreateDocument as gt, merge as gu, PHConnectPackages as h, SignalDispatch as ha, RouteContext as hc, DocumentOperations as hd, SchemaRedoAction as hi, reorderStateExamples as hl, GetDocumentOptions as hn, DocumentSpecificationSchema as ho, MutationSetNameArgs as hr, UpdateOperationExampleInputSchema as hs, CreateChildDocumentSignal as ht, mapSkippedOperationsV2 as hu, LogLevels as i, SetOperationScopeInput as ia, ProcessorStatus as ic, ProtocolVersions as id, ReorderOperationErrorsInput as ii, operationExampleCreators as il, DocumentModelUtils as in, ConfigEntrySchema as io, MutationReorderOperationExamplesArgs as ir, SetOperationTemplateInputSchema as is, AddStateExampleAction as it, garbageCollect as iu, PHRenownPrivyAdapterConfig as j, UpdateChangeLogItemInput as ja, WebhookSpec as jc, UserActionSigner as jd, SetModelIdInput as ji, setOperationName as jl, MakeOptional as jn, ReorderChangeLogItemsInputSchema as jo, OperationErrorSpecification as jr, targetDocumentId as js, DeleteOperationExampleAction as jt, updateHeaderRevision as ju, PHPackageProvider as k, UndoRedoAction as ka, WebhookScheme as kc, PHDocumentSignatureInfo as kd, SetModelExtensionInput as ki, setOperationErrorName as kl, MakeEmpty as kn, RedoActionSchema as ko, MutationUpdateStateExampleArgs as kr, isV2ActionHash as ks, DeleteOperationErrorAction as kt, sortOperations as ku, PHConnectDefaultDriveLocal as l, SetPreferredEditorOperation as la, IWebhookScope as lc, isDerivedDocumentId as ld, ReplayDocumentOptions as li, releaseNewVersion as ll, ENSInfo as ln, DeleteOperationExampleInputSchema as lo, MutationSetModelDescriptionArgs as lr, Set_PreferredEditorSchema as ls, CodeExample as lt, hashDocumentStateForScope as lu, PHConnectInstance as m, Signal as ma, RouteBody as mc, v2RequiredProtocolVersions as md, SchemaNOOPAction as mi, reorderOperationExamples as ml, FileInput as mn, DocumentModelInputSchema as mo, MutationSetModuleNameArgs as mr, UpdateChangeLogItemInputSchema as ms, CreateChildDocumentInput as mt, mapSkippedOperations as mu, DrivePreserveStrategy as n, SetOperationSchemaInput as na, ProcessorFilter as nc, DEFAULT_SIGNATURE_POLICY as nd, ReorderModulesInput as ni, moveOperation as nl, DocumentModelStateAction as nn, AuthorSchema as no, MutationReorderModulesArgs as nr, SetOperationSchemaInputSchema as ns, AddRelationshipAction as nt, filterDocumentOperationsResultingState as nu, PHConnectApp as o, SetOperationTemplateInput as oa, AuthorizerResult as oc, SIGNATURE_PROTOCOL_V2 as od, ReorderOperationExamplesInput as oi, operationFromOperation as ol, DocumentModelVersioningOperations as on, DeleteChangeLogItemInputSchema as oo, MutationSetAuthorNameArgs as or, SetPreferredEditorActionSchema as os, AssertIsDocumentOfType as ot, garbageCollectV2 as ou, PHConnectDrives as p, Set_PreferredEditor as pa, RouteAuthorizer as pc, signaturePolicyOf as pd, Scalars as pi, reorderOperationErrors as pl, Exact as pn, DocumentModelGlobalStateSchema as po, MutationSetModuleDescriptionArgs as pr, UndoSchema as ps, CopyChildDocumentSignal as pt, isUndoRedo as pu, AddChangeLogItemInput as q, computeUpgradeTransitions as qa, buildSignedAction as qc, SetOperationErrorNameAction as qi, PHDocumentMeta as ql, MutationDeleteModuleArgs as qn, SetNameActionInputSchema as qo, ReducerOptions as qr, IProcessor as qs, DocumentModelModuleAction as qt, createGlobalState as qu, LogLevel as r, SetOperationScopeAction as ra, ProcessorRecord as rc, DocumentIdParams as rd, ReorderOperationErrorsAction as ri, noop as rl, DocumentModelStateOperations as rn, CodeExampleSchema as ro, MutationReorderOperationErrorsArgs as rr, SetOperationScopeInputSchema as rs, AddRelationshipActionInput as rt, filterDuplicatedOperations as ru, PHConnectBranding as s, SetPreferredEditorAction as sa, IHttpScope as sc, SignaturePolicy$1 as sd, ReorderStateExamplesAction as si, operationWithContext as sl, DocumentOperationsIgnoreMap as sn, DeleteModuleInputSchema as so, MutationSetAuthorWebsiteArgs as sr, SetStateSchemaInputSchema as ss, AssertIsStateOfType as st, getDocumentLastModified as su, DrivePreserveStrategies as t, SetOperationSchemaAction as ta, ProcessorFactoryBuilder as tc, defaultPHState as td, ReorderModulesAction as ti, documentModelActions as tl, DocumentModelPHState as tn, AddStateExampleInputSchema as to, MutationReorderModuleOperationsArgs as tr, SetOperationReducerInputSchema as ts, AddOperationInput as tt, diffOperations as tu, PHConnectDefaultDriveRemote as u, SetStateSchemaAction as ua, NodeRouteSpec as uc, isSignaturePolicy as ud, RevisionsFilter as ui, reorderChangeLogItems as ul, EditorDispatch as un, DeleteOperationInputSchema as uo, MutationSetModelExtensionArgs as ur, StateSchema as us, ConfigEntry as ut, isDocumentAction as uu, PHConnectPwaFileHandler as v, SignalType as va, RouteOptions as vc, OperationOutcome as vd, SchemaUndoAction as vi, setInitialState as vl, IDocument as vn, MoveOperationInputSchema as vo, MutationSetOperationErrorDescriptionArgs as vr, isDefinedNonNullAny as vs, CreateDocumentActionInput as vt, operationsAreEqual as vu, PHConnectReactorFeatureFlags as w, StateReducer as wa, WebhookField as wc, undoOperation as wd, SetInitialStateAction as wi, setModuleName as wl, InputMaybe as wn, PowerhouseModuleSchema as wo, MutationSetOperationTemplateArgs as wr, actionPreimageV2 as ws, DeleteDocumentAction as wt, replayDocument as wu, PHConnectPwaRuntimeCaching as x, SkipHeaderOperationIndex as xa, RouteUser as xc, redoOperation as xd, SetAuthorNameInput as xi, setModelId as xl, ISignalResult as xn, OperationSpecificationSchema as xo, MutationSetOperationNameArgs as xr, ActionSigningTarget as xs, DeleteChangeLogItemInput as xt, prepareOperations as xu, PHConnectPwaIcon as y, SignatureVerificationHandler as ya, RouteSpec as yc, OperationWithContext$1 as yd, ScopeState as yi, setModelDescription as yl, IOperation as yn, OperationErrorSchema as yo, MutationSetOperationErrorNameArgs as yr, ACTION_SIGNATURE_V2_PREFIX as ys, CreateState as yt, parseResultingState as yu, ServiceActions as z, UpgradeDocumentActionInput as za, addChangeLogItem as zc, SetNameActionInput as zi, updateChangeLogItem as zl, Mutation as zn, SetAuthorWebsiteInputSchema as zo, PieceModule as zr, HashAlgorithms as zs, DocumentModelDocumentModelModule as zt, PHBaseState as zu };
3238
+ //# sourceMappingURL=types-COsoOK42.d.ts.map