@powerhousedao/shared 6.0.0-dev.105 → 6.0.0-dev.106

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 (131) hide show
  1. package/dist/analytics/index.d.ts +42 -4
  2. package/dist/analytics/index.d.ts.map +1 -1
  3. package/dist/analytics/index.js +307 -4
  4. package/dist/analytics/index.js.map +1 -1
  5. package/dist/clis/index.d.mts +1271 -0
  6. package/dist/clis/index.d.mts.map +1 -0
  7. package/dist/clis/index.mjs +6801 -0
  8. package/dist/clis/index.mjs.map +1 -0
  9. package/dist/connect/index.d.ts +866 -1
  10. package/dist/connect/index.d.ts.map +1 -1
  11. package/dist/connect/index.js +254 -1
  12. package/dist/connect/index.js.map +1 -1
  13. package/dist/constants.d.ts +8 -0
  14. package/dist/constants.d.ts.map +1 -0
  15. package/dist/constants.js +41 -0
  16. package/dist/constants.js.map +1 -0
  17. package/dist/document-drive/index.d.ts +546 -0
  18. package/dist/document-drive/index.d.ts.map +1 -0
  19. package/dist/document-drive/index.js +956 -0
  20. package/dist/document-drive/index.js.map +1 -0
  21. package/dist/document-model/index.d.ts +3 -5
  22. package/dist/document-model/index.js +3408 -2
  23. package/dist/document-model/index.js.map +1 -1
  24. package/dist/index-dg_xL7sp.d.ts +567 -0
  25. package/dist/index-dg_xL7sp.d.ts.map +1 -0
  26. package/dist/processors/index.d.ts +2 -5
  27. package/dist/processors/index.js +116 -3
  28. package/dist/processors/index.js.map +1 -1
  29. package/dist/registry/index.d.ts +46 -0
  30. package/dist/registry/index.d.ts.map +1 -0
  31. package/dist/registry/index.js +0 -0
  32. package/dist/types-DWXYsIF1.d.ts +158 -0
  33. package/dist/types-DWXYsIF1.d.ts.map +1 -0
  34. package/dist/types-faUXKACL.d.ts +2153 -0
  35. package/dist/types-faUXKACL.d.ts.map +1 -0
  36. package/package.json +44 -4
  37. package/dist/analytics/analytics-path.d.ts +0 -36
  38. package/dist/analytics/analytics-path.d.ts.map +0 -1
  39. package/dist/analytics/analytics-path.js +0 -170
  40. package/dist/analytics/analytics-path.js.map +0 -1
  41. package/dist/analytics/analytics-period.d.ts +0 -40
  42. package/dist/analytics/analytics-period.d.ts.map +0 -1
  43. package/dist/analytics/analytics-period.js +0 -204
  44. package/dist/analytics/analytics-period.js.map +0 -1
  45. package/dist/analytics/constants.d.ts +0 -35
  46. package/dist/analytics/constants.d.ts.map +0 -1
  47. package/dist/analytics/constants.js +0 -40
  48. package/dist/analytics/constants.js.map +0 -1
  49. package/dist/analytics/types.d.ts +0 -85
  50. package/dist/analytics/types.d.ts.map +0 -1
  51. package/dist/analytics/types.js +0 -2
  52. package/dist/analytics/types.js.map +0 -1
  53. package/dist/connect/env-config.d.ts +0 -862
  54. package/dist/connect/env-config.d.ts.map +0 -1
  55. package/dist/connect/env-config.js +0 -525
  56. package/dist/connect/env-config.js.map +0 -1
  57. package/dist/document-model/core/actions.d.ts +0 -62
  58. package/dist/document-model/core/actions.d.ts.map +0 -1
  59. package/dist/document-model/core/actions.js +0 -2
  60. package/dist/document-model/core/actions.js.map +0 -1
  61. package/dist/document-model/core/constants.d.ts +0 -6
  62. package/dist/document-model/core/constants.d.ts.map +0 -1
  63. package/dist/document-model/core/constants.js +0 -8
  64. package/dist/document-model/core/constants.js.map +0 -1
  65. package/dist/document-model/core/documents.d.ts +0 -102
  66. package/dist/document-model/core/documents.d.ts.map +0 -1
  67. package/dist/document-model/core/documents.js +0 -2
  68. package/dist/document-model/core/documents.js.map +0 -1
  69. package/dist/document-model/core/operations.d.ts +0 -74
  70. package/dist/document-model/core/operations.d.ts.map +0 -1
  71. package/dist/document-model/core/operations.js +0 -2
  72. package/dist/document-model/core/operations.js.map +0 -1
  73. package/dist/document-model/core/ph-types.d.ts +0 -7
  74. package/dist/document-model/core/ph-types.d.ts.map +0 -1
  75. package/dist/document-model/core/ph-types.js +0 -2
  76. package/dist/document-model/core/ph-types.js.map +0 -1
  77. package/dist/document-model/core/signatures.d.ts +0 -52
  78. package/dist/document-model/core/signatures.d.ts.map +0 -1
  79. package/dist/document-model/core/signatures.js +0 -2
  80. package/dist/document-model/core/signatures.js.map +0 -1
  81. package/dist/document-model/core/state.d.ts +0 -38
  82. package/dist/document-model/core/state.d.ts.map +0 -1
  83. package/dist/document-model/core/state.js +0 -2
  84. package/dist/document-model/core/state.js.map +0 -1
  85. package/dist/document-model/core/types.d.ts +0 -533
  86. package/dist/document-model/core/types.d.ts.map +0 -1
  87. package/dist/document-model/core/types.js +0 -2
  88. package/dist/document-model/core/types.js.map +0 -1
  89. package/dist/document-model/core/upgrades.d.ts +0 -24
  90. package/dist/document-model/core/upgrades.d.ts.map +0 -1
  91. package/dist/document-model/core/upgrades.js +0 -2
  92. package/dist/document-model/core/upgrades.js.map +0 -1
  93. package/dist/document-model/index.d.ts.map +0 -1
  94. package/dist/document-model/types.d.ts +0 -97
  95. package/dist/document-model/types.d.ts.map +0 -1
  96. package/dist/document-model/types.js +0 -2
  97. package/dist/document-model/types.js.map +0 -1
  98. package/dist/processors/constants.d.ts +0 -4
  99. package/dist/processors/constants.d.ts.map +0 -1
  100. package/dist/processors/constants.js +0 -4
  101. package/dist/processors/constants.js.map +0 -1
  102. package/dist/processors/drive-analytics/document-processor.d.ts +0 -10
  103. package/dist/processors/drive-analytics/document-processor.d.ts.map +0 -1
  104. package/dist/processors/drive-analytics/document-processor.js +0 -43
  105. package/dist/processors/drive-analytics/document-processor.js.map +0 -1
  106. package/dist/processors/drive-analytics/drive-processor.d.ts +0 -10
  107. package/dist/processors/drive-analytics/drive-processor.d.ts.map +0 -1
  108. package/dist/processors/drive-analytics/drive-processor.js +0 -85
  109. package/dist/processors/drive-analytics/drive-processor.js.map +0 -1
  110. package/dist/processors/drive-analytics/index.d.ts +0 -10
  111. package/dist/processors/drive-analytics/index.d.ts.map +0 -1
  112. package/dist/processors/drive-analytics/index.js +0 -28
  113. package/dist/processors/drive-analytics/index.js.map +0 -1
  114. package/dist/processors/drive-analytics/types.d.ts +0 -3
  115. package/dist/processors/drive-analytics/types.d.ts.map +0 -1
  116. package/dist/processors/drive-analytics/types.js +0 -2
  117. package/dist/processors/drive-analytics/types.js.map +0 -1
  118. package/dist/processors/index.d.ts.map +0 -1
  119. package/dist/processors/relational/types.d.ts +0 -72
  120. package/dist/processors/relational/types.d.ts.map +0 -1
  121. package/dist/processors/relational/types.js +0 -45
  122. package/dist/processors/relational/types.js.map +0 -1
  123. package/dist/processors/relational/utils.d.ts +0 -29
  124. package/dist/processors/relational/utils.d.ts.map +0 -1
  125. package/dist/processors/relational/utils.js +0 -67
  126. package/dist/processors/relational/utils.js.map +0 -1
  127. package/dist/processors/types.d.ts +0 -90
  128. package/dist/processors/types.d.ts.map +0 -1
  129. package/dist/processors/types.js +0 -2
  130. package/dist/processors/types.js.map +0 -1
  131. package/dist/tsconfig.tsbuildinfo +0 -1
@@ -0,0 +1,567 @@
1
+ import { Ar as ReorderStateExamplesInput, B as DeleteModuleInput, Br as SchemaSetNameAction, Bt as InputMaybe, C as Author, Ci as SetOperationReducerInput, Di as SetOperationScopeInput, Er as ReorderOperationErrorsInput, Fa as PHDocument, Fs as DocumentOperations, G as DeleteOperationExampleInput, Gs as PHBaseState, Hi as State, Hr as ScopeState, Ia as PHDocumentHeader, Ir as SchemaLoadStateAction, Is as Operation, J as DeleteStateExampleInput, Jr as SetInitialStateInput, K as DeleteOperationInput, Kr as SetAuthorWebsiteInput, Kt as LoadStateActionInput, Ls as OperationContext, Lt as ISigner, Or as ReorderOperationExamplesInput, Ot as FileInput, P as DeleteChangeLogItemInput, Pi as SignalDispatch, Pr as SaveToFileHandle, Q as DocumentModelDocument, Qi as UpdateOperationExampleInput, Qr as SetModelExtensionInput, Rr as SchemaPruneAction, Sr as ReorderModuleOperationsInput, St as DocumentSpecification, Ti as SetOperationSchemaInput, U as DeleteOperationErrorInput, Ui as StateReducer, Vi as SkipHeaderOperations, Vr as SchemaUndoAction, Wr as SetAuthorNameInput, Wt as LoadFromInput, X as DocumentFile, Xi as UpdateChangeLogItemInput, Xr as SetModelDescriptionInput, _i as SetOperationErrorNameInput, _t as DocumentModelStateOperations, an as MoveOperationInput, at as DocumentModelLocalState, bo as Action, br as ReorderChangeLogItemsInput, bt as DocumentModelVersioningOperations, ci as SetNameActionInput, ct as DocumentModelModuleOperations, di as SetOperationDescriptionInput, dt as DocumentModelOperationErrorOperations, ea as UpdateStateExampleInput, ei as SetModelIdInput, en as Maybe, er as OperationErrorSpecification, et as DocumentModelGlobalState, f as AddOperationErrorInput, h as AddOperationInput, hi as SetOperationErrorDescriptionInput, hr as ReducerOptions, ht as DocumentModelPHState, ia as ValidationError, ii as SetModuleDescriptionInput, ji as SetStateSchemaInput, jr as ReplayDocumentOptions, ki as SetOperationTemplateInput, l as AddModuleInput, lr as PruneActionInput, m as AddOperationExampleInput, mr as Reducer, mt as DocumentModelOperationOperations, n as ActionSignatureContext, ni as SetModelNameInput, nn as MinimalBackupData, nr as OperationSpecification, nt as DocumentModelHeaderOperations, oi as SetModuleNameInput, pi as SetOperationErrorCodeInput, pr as RedoActionInput, pt as DocumentModelOperationExampleOperations, qi as UndoActionInput, qt as LoadStateActionStateInput, rn as ModuleSpecification, s as AddChangeLogItemInput, w as CodeExample, wr as ReorderModulesInput, xi as SetOperationNameInput, y as AddStateExampleInput, yi as SetOperationErrorTemplateInput, zi as SigningParameters, zr as SchemaRedoAction } from "./types-faUXKACL.js";
2
+ import { ZodIssue, z } from "zod";
3
+ import JSZip from "jszip";
4
+
5
+ //#region document-model/constants.d.ts
6
+ declare const documentModelFileExtension: "phdm";
7
+ declare const documentModelInitialLocalState: DocumentModelLocalState;
8
+ declare const documentModelInitialGlobalState: DocumentModelGlobalState;
9
+ declare const documentModelGlobalState: DocumentModelGlobalState;
10
+ declare const HASH_ALGORITHM_SHA1 = "sha1";
11
+ declare const HASH_ALGORITHM_SHA256 = "sha256";
12
+ declare const HASH_ALGORITHM_SHA512 = "sha512";
13
+ declare const HASH_ENCODING_BASE64 = "base64";
14
+ declare const HASH_ENCODING_HEX = "hex";
15
+ //#endregion
16
+ //#region document-model/crypto.d.ts
17
+ declare const hashBrowser: (data: string | Uint8Array | ArrayBufferView | DataView, algorithm?: string, encoding?: string, _params?: Record<string, unknown>) => string;
18
+ declare function getUnixTimestamp(date: Date | string): string;
19
+ declare function buildOperationSignatureParams({
20
+ documentId,
21
+ signer,
22
+ action,
23
+ previousStateHash
24
+ }: ActionSignatureContext): [string, string, string, string];
25
+ declare function buildOperationSignatureMessage(params: [string, string, string, string]): Uint8Array;
26
+ declare function ab2hex(ab: ArrayBuffer | ArrayBufferView): string;
27
+ declare function hex2ab(hex: string): Uint8Array<ArrayBuffer>;
28
+ //#endregion
29
+ //#region document-model/document-schema.d.ts
30
+ declare const BaseDocumentHeaderSchema: z.ZodObject<{
31
+ id: z.ZodString;
32
+ name: z.ZodString;
33
+ createdAtUtcIso: z.ZodString;
34
+ lastModifiedAtUtcIso: z.ZodString;
35
+ documentType: z.ZodString;
36
+ }, z.core.$strip>;
37
+ declare const BaseDocumentStateSchema: z.ZodObject<{
38
+ global: z.ZodUnknown;
39
+ }, z.core.$strip>;
40
+ /** Schema for validating the header object of a DocumentModel document */
41
+ declare const DocumentModelHeaderSchema: z.ZodObject<{
42
+ id: z.ZodString;
43
+ name: z.ZodString;
44
+ createdAtUtcIso: z.ZodString;
45
+ lastModifiedAtUtcIso: z.ZodString;
46
+ documentType: z.ZodLiteral<"powerhouse/document-model">;
47
+ }, z.core.$strip>;
48
+ /** Schema for validating the state object of a DocumentModel document */
49
+ declare const DocumentModelPHStateSchema: z.ZodObject<{
50
+ global: z.ZodObject<Required<{
51
+ author: z.ZodType<Author, Author, z.core.$ZodTypeInternals<Author, Author>>;
52
+ description: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
53
+ extension: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
54
+ id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
55
+ name: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
56
+ specifications: z.ZodType<DocumentSpecification[], DocumentSpecification[], z.core.$ZodTypeInternals<DocumentSpecification[], DocumentSpecification[]>>;
57
+ }>, z.core.$strip>;
58
+ }, z.core.$strip>;
59
+ declare const DocumentModelSchema: z.ZodObject<{
60
+ header: z.ZodObject<{
61
+ id: z.ZodString;
62
+ name: z.ZodString;
63
+ createdAtUtcIso: z.ZodString;
64
+ lastModifiedAtUtcIso: z.ZodString;
65
+ documentType: z.ZodLiteral<"powerhouse/document-model">;
66
+ }, z.core.$strip>;
67
+ state: z.ZodObject<{
68
+ global: z.ZodObject<Required<{
69
+ author: z.ZodType<Author, Author, z.core.$ZodTypeInternals<Author, Author>>;
70
+ description: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
71
+ extension: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
72
+ id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
73
+ name: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
74
+ specifications: z.ZodType<DocumentSpecification[], DocumentSpecification[], z.core.$ZodTypeInternals<DocumentSpecification[], DocumentSpecification[]>>;
75
+ }>, z.core.$strip>;
76
+ }, z.core.$strip>;
77
+ initialState: z.ZodObject<{
78
+ global: z.ZodObject<Required<{
79
+ author: z.ZodType<Author, Author, z.core.$ZodTypeInternals<Author, Author>>;
80
+ description: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
81
+ extension: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
82
+ id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
83
+ name: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
84
+ specifications: z.ZodType<DocumentSpecification[], DocumentSpecification[], z.core.$ZodTypeInternals<DocumentSpecification[], DocumentSpecification[]>>;
85
+ }>, z.core.$strip>;
86
+ }, z.core.$strip>;
87
+ }, z.core.$strip>;
88
+ /** Simple helper function to check if a state object is a DocumentModel document state object */
89
+ declare function isDocumentModelState(state: unknown): state is DocumentModelPHState;
90
+ /** Simple helper function to assert that a document state object is a DocumentModel document state object */
91
+ declare function assertIsDocumentModelState(state: unknown): asserts state is DocumentModelPHState;
92
+ /** Simple helper function to check if a document is a DocumentModel document */
93
+ declare function isDocumentModelDocument(document: unknown): document is DocumentModelDocument;
94
+ /** Simple helper function to assert that a document is a DocumentModel document */
95
+ declare function assertIsDocumentModelDocument(document: unknown): asserts document is DocumentModelDocument;
96
+ //#endregion
97
+ //#region document-model/document-type.d.ts
98
+ declare const documentModelDocumentType = "powerhouse/document-model";
99
+ //#endregion
100
+ //#region document-model/errors.d.ts
101
+ declare const FileSystemError: Error;
102
+ declare class InvalidActionInputError extends Error {
103
+ data: unknown;
104
+ constructor(data: unknown);
105
+ }
106
+ declare class InvalidActionInputZodError extends InvalidActionInputError {
107
+ issues: ZodIssue[];
108
+ constructor(issues: ZodIssue[]);
109
+ }
110
+ declare class HashMismatchError extends Error {
111
+ protected _scope: string;
112
+ protected _document: PHDocument;
113
+ protected _operation: Operation;
114
+ constructor(scope: string, document: PHDocument, operation: Operation);
115
+ get document(): PHDocument;
116
+ get scope(): string;
117
+ get operation(): Operation;
118
+ }
119
+ //#endregion
120
+ //#region document-model/files.d.ts
121
+ declare function createZip(document: PHDocument): JSZip;
122
+ /**
123
+ * Creates a minimal ZIP backup from strand data.
124
+ * Used when the full document is not available (e.g., in onOperations handler).
125
+ * Creates a ZIP with minimal header and empty operations.
126
+ */
127
+ declare function createMinimalZip(data: MinimalBackupData): JSZip;
128
+ declare function baseSaveToFileHandle(document: PHDocument, input: FileSystemFileHandle): Promise<void>;
129
+ declare function baseLoadFromInput<TState extends PHBaseState>(input: FileInput, reducer: Reducer<TState>, options?: ReplayDocumentOptions): Promise<PHDocument<TState>>;
130
+ declare const documentModelLoadFromInput: LoadFromInput<DocumentModelPHState>;
131
+ declare const documentModelSaveToFileHandle: SaveToFileHandle;
132
+ declare function writeFileBrowser(path: string, name: string, stream: Uint8Array): Promise<string>;
133
+ declare function readFileBrowser(path: string): void;
134
+ declare function fetchFileBrowser(url: string): Promise<{
135
+ data: Buffer;
136
+ mimeType?: string;
137
+ }>;
138
+ declare const getFileBrowser: (file: string) => Promise<void>;
139
+ //#endregion
140
+ //#region document-model/header.d.ts
141
+ /**
142
+ * Creates a verification-only signer from a public key.
143
+ * This signer can only verify signatures, not sign data.
144
+ *
145
+ * @param pubKey - The public key to use for verification.
146
+ * @returns An ISigner that can only verify signatures.
147
+ */
148
+ declare function createVerificationSigner(pubKey: JsonWebKey): Promise<ISigner>;
149
+ /**
150
+ * Signs a header. Generally, this is not called directly, but rather through
151
+ * {@link createSignedHeader}.
152
+ *
153
+ * @param parameters - The parameters used to sign the header.
154
+ * @param signer - The signer of the document.
155
+ *
156
+ * @returns The signature of the header.
157
+ */
158
+ declare const sign: (parameters: SigningParameters, signer: ISigner) => Promise<string>;
159
+ /**
160
+ * Verifies a header signature. Generally, this is not called directly, but
161
+ * rather through {@link validateHeader}.
162
+ *
163
+ * @param parameters - The parameters used to sign the header.
164
+ * @param signature - The signature to verify.
165
+ * @param signer - The signer of the document.
166
+ */
167
+ declare const verify: (parameters: SigningParameters, signature: string, signer: ISigner) => Promise<void>;
168
+ /**
169
+ * Validates a header signature.
170
+ */
171
+ declare const validateHeader: (header: PHDocumentHeader) => Promise<void>;
172
+ /**
173
+ * Creates a header that has yet to be signed. This header is not valid, but
174
+ * can be input into {@link createSignedHeader} to create a signed header.
175
+ *
176
+ * @returns An unsigned header for a document.
177
+ */
178
+ declare const createPresignedHeader: (id?: string, documentType?: string) => PHDocumentHeader;
179
+ /**
180
+ * Creates a new, signed header for a document. This will replace the id of the
181
+ * document.
182
+ *
183
+ * @param unsignedHeader - The unsigned header to created the signed header from.
184
+ * @param signer - The signer of the document.
185
+ *
186
+ * @returns A new signed header for a document. Some fields are mutable and
187
+ * some are not. See the PHDocumentHeader type for more information.
188
+ */
189
+ declare const createSignedHeader: (unsignedHeader: PHDocumentHeader, documentType: string, signer: ISigner) => Promise<PHDocumentHeader>;
190
+ /**
191
+ * Creates a signed header for a document. The document header requires a signer
192
+ * as the document id is a cryptographic signature.
193
+ *
194
+ * @param documentType - The type of the document.
195
+ * @param signer - The signer of the document.
196
+ *
197
+ * @returns The signed header for a document. Some fields are mutable and
198
+ * some are not. See the PHDocumentHeader type for more information.
199
+ */
200
+ declare const createSignedHeaderForSigner: (documentType: string, signer: ISigner) => Promise<PHDocumentHeader>;
201
+ //#endregion
202
+ //#region document-model/reducer.d.ts
203
+ 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>;
204
+ /**
205
+ * Updates the document state based on the provided action.
206
+ *
207
+ * @param state The current state of the document.
208
+ * @param action The action being applied to the document.
209
+ * @param skip The number of operations to skip before applying the action.
210
+ * @param reuseLastOperationIndex Whether to reuse the last operation index (used when a an UNDO operation is performed after an existing one).
211
+ * @param context The operation context for deterministic ID generation.
212
+ * @returns The updated document state.
213
+ */
214
+ declare function updateDocument<TDocument extends PHDocument>(document: TDocument, action: Action, reuseLastOperationIndex: boolean, skip: number, context: OperationContext, operation?: Operation, skipIndexValidation?: boolean): TDocument;
215
+ /**
216
+ * Processes an UNDO or REDO action.
217
+ *
218
+ * @param document The current state of the document.
219
+ * @param action The action being applied to the document.
220
+ * @param skip The number of operations to skip before applying the action.
221
+ * @returns The updated document, calculated skip value and transformed action (if applied).
222
+ */
223
+ declare function processUndoRedo<TState extends PHBaseState = PHBaseState>(document: PHDocument<TState>, action: Action, skip: number, protocolVersion?: number): {
224
+ document: PHDocument<TState>;
225
+ action: Action;
226
+ skip: number;
227
+ reuseLastOperationIndex: boolean;
228
+ };
229
+ /**
230
+ * Base document reducer that wraps a custom document reducer and handles
231
+ * document-level actions such as undo, redo, prune, and set name.
232
+ *
233
+ * @template TGlobalState - The type of the state of the custom reducer.
234
+ * @template TAction - The type of the actions of the custom reducer.
235
+ * @param state - The current state of the document.
236
+ * @param action - The action object to apply to the state.
237
+ * @param customReducer - The custom reducer that implements the application logic
238
+ * specific to the document's state.
239
+ * @returns The new state of the document.
240
+ */
241
+ declare function baseReducer<TState extends PHBaseState = PHBaseState>(document: PHDocument<TState>, action: Action, customReducer: StateReducer<TState>, dispatch?: SignalDispatch, options?: ReducerOptions): PHDocument<TState>;
242
+ /**
243
+ * Helper function to create a document model reducer.
244
+ *
245
+ * @remarks
246
+ * This function creates a new reducer that wraps the provided `reducer` with
247
+ * `documentReducer`, adding support for document actions:
248
+ * - `SET_NAME`
249
+ * - `UNDO`
250
+ * - `REDO`
251
+ * - `PRUNE`
252
+ *
253
+ * It also updates the document-related attributes on every operation.
254
+ *
255
+ * @param reducer - The custom reducer to wrap.
256
+ * @param documentReducer - The document reducer to use.
257
+ *
258
+ * @returns The new reducer.
259
+ */
260
+ declare function createReducer<TState extends PHBaseState = PHBaseState>(stateReducer: StateReducer<TState>, documentReducer?: typeof baseReducer): Reducer<TState>;
261
+ declare function pruneOperation<TState extends PHBaseState = PHBaseState>(document: PHDocument<TState>, input: PruneActionInput, wrappedReducer: StateReducer<TState>): PHDocument<TState>;
262
+ //#endregion
263
+ //#region document-model/reducers.d.ts
264
+ declare const documentModelHeaderReducer: DocumentModelHeaderOperations;
265
+ declare const documentModelModuleReducer: DocumentModelModuleOperations;
266
+ declare const documentModelOperationErrorReducer: DocumentModelOperationErrorOperations;
267
+ declare const documentModelOperationExampleReducer: DocumentModelOperationExampleOperations;
268
+ declare const documentModelOperationReducer: DocumentModelOperationOperations;
269
+ declare const documentModelStateSchemaReducer: DocumentModelStateOperations;
270
+ declare const documentModelVersioningReducer: DocumentModelVersioningOperations;
271
+ declare const documentModelStateReducer: StateReducer<DocumentModelPHState>;
272
+ declare const documentModelReducer: Reducer<DocumentModelPHState>;
273
+ //#endregion
274
+ //#region document-model/schemas.d.ts
275
+ type definedNonNullAny = {};
276
+ declare const isDefinedNonNullAny: (v: any) => v is definedNonNullAny;
277
+ declare const definedNonNullAnySchema: z.ZodAny & z.ZodType<definedNonNullAny, any, z.core.$ZodTypeInternals<definedNonNullAny, any>>;
278
+ declare const Load_StateSchema: z.ZodEnum<{
279
+ LOAD_STATE: "LOAD_STATE";
280
+ }>;
281
+ declare const PruneSchema: z.ZodEnum<{
282
+ PRUNE: "PRUNE";
283
+ }>;
284
+ declare const RedoSchema: z.ZodEnum<{
285
+ REDO: "REDO";
286
+ }>;
287
+ declare const Set_NameSchema: z.ZodEnum<{
288
+ SET_NAME: "SET_NAME";
289
+ }>;
290
+ declare const UndoSchema: z.ZodEnum<{
291
+ UNDO: "UNDO";
292
+ }>;
293
+ declare function OperationScopeSchema(): z.ZodString;
294
+ declare function DocumentActionSchema(): z.ZodUnion<readonly [z.ZodObject<Required<{
295
+ id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
296
+ timestampUtcMs: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
297
+ input: z.ZodType<LoadStateActionInput, LoadStateActionInput, z.core.$ZodTypeInternals<LoadStateActionInput, LoadStateActionInput>>;
298
+ type: z.ZodType<"LOAD_STATE", "LOAD_STATE", z.core.$ZodTypeInternals<"LOAD_STATE", "LOAD_STATE">>;
299
+ scope: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
300
+ }>, z.core.$strip>, z.ZodObject<Required<{
301
+ id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
302
+ timestampUtcMs: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
303
+ input: z.ZodType<PruneActionInput, PruneActionInput, z.core.$ZodTypeInternals<PruneActionInput, PruneActionInput>>;
304
+ type: z.ZodType<"PRUNE", "PRUNE", z.core.$ZodTypeInternals<"PRUNE", "PRUNE">>;
305
+ scope: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
306
+ }>, z.core.$strip>, z.ZodObject<Required<{
307
+ id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
308
+ timestampUtcMs: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
309
+ input: z.ZodType<RedoActionInput, RedoActionInput, z.core.$ZodTypeInternals<RedoActionInput, RedoActionInput>>;
310
+ type: z.ZodType<"REDO", "REDO", z.core.$ZodTypeInternals<"REDO", "REDO">>;
311
+ scope: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
312
+ }>, z.core.$strip>, z.ZodObject<Required<{
313
+ id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
314
+ timestampUtcMs: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
315
+ input: z.ZodType<SetNameActionInput, SetNameActionInput, z.core.$ZodTypeInternals<SetNameActionInput, SetNameActionInput>>;
316
+ type: z.ZodType<"SET_NAME", "SET_NAME", z.core.$ZodTypeInternals<"SET_NAME", "SET_NAME">>;
317
+ scope: z.ZodType<"global", "global", z.core.$ZodTypeInternals<"global", "global">>;
318
+ }>, z.core.$strip>, z.ZodObject<Required<{
319
+ id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
320
+ timestampUtcMs: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
321
+ input: z.ZodType<UndoActionInput, UndoActionInput, z.core.$ZodTypeInternals<UndoActionInput, UndoActionInput>>;
322
+ type: z.ZodType<"UNDO", "UNDO", z.core.$ZodTypeInternals<"UNDO", "UNDO">>;
323
+ scope: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
324
+ }>, z.core.$strip>]>;
325
+ declare function DocumentFileSchema(): z.ZodObject<Properties<DocumentFile>>;
326
+ declare function LoadStateActionSchema(): z.ZodObject<Properties<SchemaLoadStateAction>>;
327
+ declare function LoadStateActionInputSchema(): z.ZodObject<Properties<LoadStateActionInput>>;
328
+ declare function LoadStateActionStateInputSchema(): z.ZodObject<Properties<LoadStateActionStateInput>>;
329
+ declare function PruneActionSchema(): z.ZodObject<Properties<SchemaPruneAction>>;
330
+ declare function PruneActionInputSchema(): z.ZodObject<Properties<PruneActionInput>>;
331
+ declare function RedoActionInputSchema(): z.ZodObject<{
332
+ count: z.ZodNumber;
333
+ }, z.core.$strip>;
334
+ declare function RedoActionSchema(): z.ZodObject<Properties<SchemaRedoAction>>;
335
+ declare function SetNameActionInputSchema(): z.ZodObject<{
336
+ name: z.ZodString;
337
+ }, z.core.$strip>;
338
+ declare function SetNameActionSchema(): z.ZodObject<Properties<SchemaSetNameAction>>;
339
+ declare function UndoActionInputSchema(): z.ZodObject<{
340
+ count: z.ZodNumber;
341
+ }, z.core.$strip>;
342
+ declare function UndoActionSchema(): z.ZodObject<Properties<SchemaUndoAction>>;
343
+ type Properties<T> = Required<{ [K in keyof T]: z.ZodType<T[K], T[K]> }>;
344
+ declare function AddChangeLogItemInputSchema(): z.ZodObject<Properties<AddChangeLogItemInput>>;
345
+ declare function AddModuleInputSchema(): z.ZodObject<Properties<AddModuleInput>>;
346
+ declare function AddOperationErrorInputSchema(): z.ZodObject<Properties<AddOperationErrorInput>>;
347
+ declare function AddOperationExampleInputSchema(): z.ZodObject<Properties<AddOperationExampleInput>>;
348
+ declare function AddOperationInputSchema(): z.ZodObject<Properties<AddOperationInput>>;
349
+ declare function AddStateExampleInputSchema(): z.ZodObject<Properties<AddStateExampleInput>>;
350
+ declare function AuthorSchema(): z.ZodObject<Properties<Author>>;
351
+ declare function CodeExampleSchema(): z.ZodObject<Properties<CodeExample>>;
352
+ declare function DeleteChangeLogItemInputSchema(): z.ZodObject<Properties<DeleteChangeLogItemInput>>;
353
+ declare function DeleteModuleInputSchema(): z.ZodObject<Properties<DeleteModuleInput>>;
354
+ declare function DeleteOperationErrorInputSchema(): z.ZodObject<Properties<DeleteOperationErrorInput>>;
355
+ declare function DeleteOperationExampleInputSchema(): z.ZodObject<Properties<DeleteOperationExampleInput>>;
356
+ declare function DeleteOperationInputSchema(): z.ZodObject<Properties<DeleteOperationInput>>;
357
+ declare function DeleteStateExampleInputSchema(): z.ZodObject<Properties<DeleteStateExampleInput>>;
358
+ declare function DocumentModelInputSchema(): z.ZodUnion<readonly [z.ZodObject<Required<{
359
+ __typename?: z.ZodType<"AddChangeLogItemInput" | undefined, "AddChangeLogItemInput" | undefined, z.core.$ZodTypeInternals<"AddChangeLogItemInput" | undefined, "AddChangeLogItemInput" | undefined>> | undefined;
360
+ content: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
361
+ id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
362
+ insertBefore: z.ZodType<Maybe<string>, Maybe<string>, z.core.$ZodTypeInternals<Maybe<string>, Maybe<string>>>;
363
+ }>, z.core.$strip>, z.ZodObject<Required<{
364
+ description?: z.ZodType<InputMaybe<string>, InputMaybe<string>, z.core.$ZodTypeInternals<InputMaybe<string>, InputMaybe<string>>> | undefined;
365
+ id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
366
+ name: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
367
+ }>, z.core.$strip>, z.ZodObject<Required<{
368
+ errorCode?: z.ZodType<InputMaybe<string>, InputMaybe<string>, z.core.$ZodTypeInternals<InputMaybe<string>, InputMaybe<string>>> | undefined;
369
+ errorDescription?: z.ZodType<InputMaybe<string>, InputMaybe<string>, z.core.$ZodTypeInternals<InputMaybe<string>, InputMaybe<string>>> | undefined;
370
+ errorName?: z.ZodType<InputMaybe<string>, InputMaybe<string>, z.core.$ZodTypeInternals<InputMaybe<string>, InputMaybe<string>>> | undefined;
371
+ errorTemplate?: z.ZodType<InputMaybe<string>, InputMaybe<string>, z.core.$ZodTypeInternals<InputMaybe<string>, InputMaybe<string>>> | undefined;
372
+ id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
373
+ operationId: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
374
+ }>, z.core.$strip>, z.ZodObject<Required<{
375
+ example: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
376
+ id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
377
+ operationId: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
378
+ }>, z.core.$strip>, z.ZodObject<Required<{
379
+ description?: z.ZodType<InputMaybe<string>, InputMaybe<string>, z.core.$ZodTypeInternals<InputMaybe<string>, InputMaybe<string>>> | undefined;
380
+ id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
381
+ moduleId: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
382
+ name: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
383
+ reducer?: z.ZodType<InputMaybe<string>, InputMaybe<string>, z.core.$ZodTypeInternals<InputMaybe<string>, InputMaybe<string>>> | undefined;
384
+ schema?: z.ZodType<InputMaybe<string>, InputMaybe<string>, z.core.$ZodTypeInternals<InputMaybe<string>, InputMaybe<string>>> | undefined;
385
+ template?: z.ZodType<InputMaybe<string>, InputMaybe<string>, z.core.$ZodTypeInternals<InputMaybe<string>, InputMaybe<string>>> | undefined;
386
+ scope?: z.ZodType<InputMaybe<string>, InputMaybe<string>, z.core.$ZodTypeInternals<InputMaybe<string>, InputMaybe<string>>> | undefined;
387
+ }>, z.core.$strip>, z.ZodObject<Required<{
388
+ scope: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
389
+ example: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
390
+ id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
391
+ insertBefore?: z.ZodType<InputMaybe<string>, InputMaybe<string>, z.core.$ZodTypeInternals<InputMaybe<string>, InputMaybe<string>>> | undefined;
392
+ }>, z.core.$strip>, z.ZodObject<Required<{
393
+ __typename?: z.ZodType<"DeleteChangeLogItemInput" | undefined, "DeleteChangeLogItemInput" | undefined, z.core.$ZodTypeInternals<"DeleteChangeLogItemInput" | undefined, "DeleteChangeLogItemInput" | undefined>> | undefined;
394
+ id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
395
+ }>, z.core.$strip>, z.ZodObject<Required<{
396
+ id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
397
+ }>, z.core.$strip>, z.ZodObject<Required<{
398
+ id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
399
+ }>, z.core.$strip>, z.ZodObject<Required<{
400
+ id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
401
+ }>, z.core.$strip>, z.ZodObject<Required<{
402
+ id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
403
+ }>, z.core.$strip>, z.ZodObject<Required<{
404
+ scope: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
405
+ id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
406
+ }>, z.core.$strip>, z.ZodObject<Required<{
407
+ newModuleId: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
408
+ operationId: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
409
+ }>, z.core.$strip>, z.ZodObject<Required<{
410
+ __typename?: z.ZodType<"ReorderChangeLogItemsInput" | undefined, "ReorderChangeLogItemsInput" | undefined, z.core.$ZodTypeInternals<"ReorderChangeLogItemsInput" | undefined, "ReorderChangeLogItemsInput" | undefined>> | undefined;
411
+ order: z.ZodType<string[], string[], z.core.$ZodTypeInternals<string[], string[]>>;
412
+ }>, z.core.$strip>, z.ZodObject<Required<{
413
+ moduleId: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
414
+ order: z.ZodType<string[], string[], z.core.$ZodTypeInternals<string[], string[]>>;
415
+ }>, z.core.$strip>, z.ZodObject<Required<{
416
+ order: z.ZodType<string[], string[], z.core.$ZodTypeInternals<string[], string[]>>;
417
+ }>, z.core.$strip>, z.ZodObject<Required<{
418
+ operationId: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
419
+ order: z.ZodType<string[], string[], z.core.$ZodTypeInternals<string[], string[]>>;
420
+ }>, z.core.$strip>, z.ZodObject<Required<{
421
+ operationId: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
422
+ order: z.ZodType<string[], string[], z.core.$ZodTypeInternals<string[], string[]>>;
423
+ }>, z.core.$strip>, z.ZodObject<Required<{
424
+ scope: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
425
+ order: z.ZodType<string[], string[], z.core.$ZodTypeInternals<string[], string[]>>;
426
+ }>, z.core.$strip>, z.ZodObject<Required<{
427
+ authorName: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
428
+ }>, z.core.$strip>, z.ZodObject<Required<{
429
+ authorWebsite: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
430
+ }>, z.core.$strip>, z.ZodObject<Required<{
431
+ scope: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
432
+ initialValue: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
433
+ }>, z.core.$strip>, z.ZodObject<Required<{
434
+ description: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
435
+ }>, z.core.$strip>, z.ZodObject<Required<{
436
+ extension: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
437
+ }>, z.core.$strip>, z.ZodObject<Required<{
438
+ id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
439
+ }>, z.core.$strip>, z.ZodObject<Required<{
440
+ name: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
441
+ }>, z.core.$strip>, z.ZodObject<Required<{
442
+ description?: z.ZodType<InputMaybe<string>, InputMaybe<string>, z.core.$ZodTypeInternals<InputMaybe<string>, InputMaybe<string>>> | undefined;
443
+ id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
444
+ }>, z.core.$strip>, z.ZodObject<Required<{
445
+ id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
446
+ name?: z.ZodType<InputMaybe<string>, InputMaybe<string>, z.core.$ZodTypeInternals<InputMaybe<string>, InputMaybe<string>>> | undefined;
447
+ }>, z.core.$strip>, z.ZodObject<Required<{
448
+ description?: z.ZodType<InputMaybe<string>, InputMaybe<string>, z.core.$ZodTypeInternals<InputMaybe<string>, InputMaybe<string>>> | undefined;
449
+ id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
450
+ }>, z.core.$strip>, z.ZodObject<Required<{
451
+ errorCode?: z.ZodType<InputMaybe<string>, InputMaybe<string>, z.core.$ZodTypeInternals<InputMaybe<string>, InputMaybe<string>>> | undefined;
452
+ id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
453
+ }>, z.core.$strip>, z.ZodObject<Required<{
454
+ errorDescription?: z.ZodType<InputMaybe<string>, InputMaybe<string>, z.core.$ZodTypeInternals<InputMaybe<string>, InputMaybe<string>>> | undefined;
455
+ id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
456
+ }>, z.core.$strip>, z.ZodObject<Required<{
457
+ errorName?: z.ZodType<InputMaybe<string>, InputMaybe<string>, z.core.$ZodTypeInternals<InputMaybe<string>, InputMaybe<string>>> | undefined;
458
+ id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
459
+ }>, z.core.$strip>, z.ZodObject<Required<{
460
+ errorTemplate?: z.ZodType<InputMaybe<string>, InputMaybe<string>, z.core.$ZodTypeInternals<InputMaybe<string>, InputMaybe<string>>> | undefined;
461
+ id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
462
+ }>, z.core.$strip>, z.ZodObject<Required<{
463
+ id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
464
+ name?: z.ZodType<InputMaybe<string>, InputMaybe<string>, z.core.$ZodTypeInternals<InputMaybe<string>, InputMaybe<string>>> | undefined;
465
+ }>, z.core.$strip>, z.ZodObject<Required<{
466
+ id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
467
+ reducer?: z.ZodType<InputMaybe<string>, InputMaybe<string>, z.core.$ZodTypeInternals<InputMaybe<string>, InputMaybe<string>>> | undefined;
468
+ }>, z.core.$strip>, z.ZodObject<Required<{
469
+ id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
470
+ schema?: z.ZodType<InputMaybe<string>, InputMaybe<string>, z.core.$ZodTypeInternals<InputMaybe<string>, InputMaybe<string>>> | undefined;
471
+ }>, z.core.$strip>, z.ZodObject<Required<{
472
+ id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
473
+ template?: z.ZodType<InputMaybe<string>, InputMaybe<string>, z.core.$ZodTypeInternals<InputMaybe<string>, InputMaybe<string>>> | undefined;
474
+ }>, z.core.$strip>, z.ZodObject<Required<{
475
+ scope: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
476
+ schema: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
477
+ }>, z.core.$strip>, z.ZodObject<Required<{
478
+ __typename?: z.ZodType<"UpdateChangeLogItemInput" | undefined, "UpdateChangeLogItemInput" | undefined, z.core.$ZodTypeInternals<"UpdateChangeLogItemInput" | undefined, "UpdateChangeLogItemInput" | undefined>> | undefined;
479
+ id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
480
+ newContent: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
481
+ }>, z.core.$strip>, z.ZodObject<Required<{
482
+ example: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
483
+ id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
484
+ }>, z.core.$strip>, z.ZodObject<Required<{
485
+ scope: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
486
+ id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
487
+ newExample: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
488
+ }>, z.core.$strip>]>;
489
+ declare function DocumentModelGlobalStateSchema(): z.ZodObject<Properties<DocumentModelGlobalState>>;
490
+ declare function DocumentSpecificationSchema(): z.ZodObject<Properties<DocumentSpecification>>;
491
+ declare function ModuleSchema(): z.ZodObject<Properties<ModuleSpecification>>;
492
+ declare function MoveOperationInputSchema(): z.ZodObject<Properties<MoveOperationInput>>;
493
+ declare function OperationSpecificationSchema(): z.ZodObject<Properties<OperationSpecification>>;
494
+ declare function OperationErrorSchema(): z.ZodObject<Properties<OperationErrorSpecification>>;
495
+ declare function ReorderChangeLogItemsInputSchema(): z.ZodObject<Properties<ReorderChangeLogItemsInput>>;
496
+ declare function ReorderModuleOperationsInputSchema(): z.ZodObject<Properties<ReorderModuleOperationsInput>>;
497
+ declare function ReorderModulesInputSchema(): z.ZodObject<Properties<ReorderModulesInput>>;
498
+ declare function ReorderOperationErrorsInputSchema(): z.ZodObject<Properties<ReorderOperationErrorsInput>>;
499
+ declare function ReorderOperationExamplesInputSchema(): z.ZodObject<Properties<ReorderOperationExamplesInput>>;
500
+ declare function ReorderStateExamplesInputSchema(): z.ZodObject<Properties<ReorderStateExamplesInput>>;
501
+ declare function SetAuthorNameInputSchema(): z.ZodObject<Properties<SetAuthorNameInput>>;
502
+ declare function SetAuthorWebsiteInputSchema(): z.ZodObject<Properties<SetAuthorWebsiteInput>>;
503
+ declare function SetInitialStateInputSchema(): z.ZodObject<Properties<SetInitialStateInput>>;
504
+ declare function SetModelDescriptionInputSchema(): z.ZodObject<Properties<SetModelDescriptionInput>>;
505
+ declare function SetModelExtensionInputSchema(): z.ZodObject<Properties<SetModelExtensionInput>>;
506
+ declare function SetModelIdInputSchema(): z.ZodObject<Properties<SetModelIdInput>>;
507
+ declare function SetModelNameInputSchema(): z.ZodObject<Properties<SetModelNameInput>>;
508
+ declare function SetModuleDescriptionInputSchema(): z.ZodObject<Properties<SetModuleDescriptionInput>>;
509
+ declare function SetModuleNameInputSchema(): z.ZodObject<Properties<SetModuleNameInput>>;
510
+ declare function SetOperationDescriptionInputSchema(): z.ZodObject<Properties<SetOperationDescriptionInput>>;
511
+ declare function SetOperationErrorCodeInputSchema(): z.ZodObject<Properties<SetOperationErrorCodeInput>>;
512
+ declare function SetOperationErrorDescriptionInputSchema(): z.ZodObject<Properties<SetOperationErrorDescriptionInput>>;
513
+ declare function SetOperationErrorNameInputSchema(): z.ZodObject<Properties<SetOperationErrorNameInput>>;
514
+ declare function SetOperationErrorTemplateInputSchema(): z.ZodObject<Properties<SetOperationErrorTemplateInput>>;
515
+ declare function SetOperationNameInputSchema(): z.ZodObject<Properties<SetOperationNameInput>>;
516
+ declare function SetOperationScopeInputSchema(): z.ZodObject<Properties<SetOperationScopeInput>>;
517
+ declare function SetOperationReducerInputSchema(): z.ZodObject<Properties<SetOperationReducerInput>>;
518
+ declare function SetOperationSchemaInputSchema(): z.ZodObject<Properties<SetOperationSchemaInput>>;
519
+ declare function SetOperationTemplateInputSchema(): z.ZodObject<Properties<SetOperationTemplateInput>>;
520
+ declare function SetStateSchemaInputSchema(): z.ZodObject<Properties<SetStateSchemaInput>>;
521
+ declare function StateSchema(): z.ZodObject<Properties<State>>;
522
+ declare function ScopeStateSchema(): z.ZodObject<Properties<ScopeState>>;
523
+ declare function UpdateChangeLogItemInputSchema(): z.ZodObject<Properties<UpdateChangeLogItemInput>>;
524
+ declare function UpdateOperationExampleInputSchema(): z.ZodObject<Properties<UpdateOperationExampleInput>>;
525
+ declare function UpdateStateExampleInputSchema(): z.ZodObject<Properties<UpdateStateExampleInput>>;
526
+ //#endregion
527
+ //#region document-model/utils.d.ts
528
+ declare function generateId(method?: "UUIDv4"): string;
529
+ /**
530
+ * Derives a deterministic operation ID from stable properties.
531
+ */
532
+ declare function deriveOperationId(documentId: string, scope: string, branch: string, actionId: string): string;
533
+ //#endregion
534
+ //#region document-model/validation.d.ts
535
+ /**
536
+ * Reserved operation names from base reducer (core/actions.ts).
537
+ * These names cannot be used for custom operations.
538
+ */
539
+ declare const RESERVED_OPERATION_NAMES: readonly ["UNDO", "REDO", "PRUNE", "LOAD_STATE", "SET_NAME", "NOOP"];
540
+ type ReservedOperationName = (typeof RESERVED_OPERATION_NAMES)[number];
541
+ /**
542
+ * Check if name conflicts with base reducer actions (case-insensitive).
543
+ */
544
+ declare function isReservedOperationName(name: string): boolean;
545
+ /**
546
+ * Get all operation names from all modules in the latest specification.
547
+ * Returns names in uppercase for case-insensitive comparison.
548
+ */
549
+ declare function getAllOperationNames(state: DocumentModelGlobalState, excludeOperationId?: string): string[];
550
+ /**
551
+ * Validate operation name is not reserved or duplicate. Throws on failure.
552
+ *
553
+ * @param name - The operation name to validate
554
+ * @param state - The document model global state
555
+ * @param excludeOperationId - Optional operation ID to exclude (for rename validation)
556
+ * @throws Error if the name is reserved or a duplicate
557
+ */
558
+ declare function validateOperationName(name: string, state: DocumentModelGlobalState, excludeOperationId?: string): void;
559
+ declare function validateInitialState(initialState: string, allowEmptyState?: boolean): ValidationError[];
560
+ declare function validateStateSchemaName(schema: string, documentName: string, scope?: string, allowEmptySchema?: boolean): ValidationError[];
561
+ declare function validateModules(modules: ModuleSpecification[]): ValidationError[];
562
+ declare function validateModule(mod: ModuleSpecification): ValidationError[];
563
+ declare function validateModuleOperation(operation: OperationSpecification): ValidationError[];
564
+ declare function validateOperations(operations: DocumentOperations): ValidationError[];
565
+ //#endregion
566
+ export { ReorderStateExamplesInputSchema as $, validateHeader as $t, DocumentModelGlobalStateSchema as A, hex2ab as An, UpdateStateExampleInputSchema as At, OperationScopeSchema as B, documentModelStateSchemaReducer as Bt, DeleteModuleInputSchema as C, isDocumentModelDocument as Cn, Set_NameSchema as Ct, DeleteStateExampleInputSchema as D, buildOperationSignatureParams as Dn, UndoSchema as Dt, DeleteOperationInputSchema as E, buildOperationSignatureMessage as En, UndoActionSchema as Et, LoadStateActionStateInputSchema as F, HASH_ENCODING_HEX as Fn, documentModelOperationErrorReducer as Ft, RedoActionInputSchema as G, pruneOperation as Gt, PruneActionInputSchema as H, baseReducer as Ht, Load_StateSchema as I, documentModelFileExtension as In, documentModelOperationExampleReducer as It, ReorderChangeLogItemsInputSchema as J, createPresignedHeader as Jt, RedoActionSchema as K, replayOperations as Kt, ModuleSchema as L, documentModelGlobalState as Ln, documentModelOperationReducer as Lt, DocumentSpecificationSchema as M, HASH_ALGORITHM_SHA256 as Mn, isDefinedNonNullAny as Mt, LoadStateActionInputSchema as N, HASH_ALGORITHM_SHA512 as Nn, documentModelHeaderReducer as Nt, DocumentActionSchema as O, getUnixTimestamp as On, UpdateChangeLogItemInputSchema as Ot, LoadStateActionSchema as P, HASH_ENCODING_BASE64 as Pn, documentModelModuleReducer as Pt, ReorderOperationExamplesInputSchema as Q, sign as Qt, MoveOperationInputSchema as R, documentModelInitialGlobalState as Rn, documentModelReducer as Rt, DeleteChangeLogItemInputSchema as S, assertIsDocumentModelState as Sn, SetStateSchemaInputSchema as St, DeleteOperationExampleInputSchema as T, ab2hex as Tn, UndoActionInputSchema as Tt, PruneActionSchema as U, createReducer as Ut, OperationSpecificationSchema as V, documentModelVersioningReducer as Vt, PruneSchema as W, processUndoRedo as Wt, ReorderModulesInputSchema as X, createSignedHeaderForSigner as Xt, ReorderModuleOperationsInputSchema as Y, createSignedHeader as Yt, ReorderOperationErrorsInputSchema as Z, createVerificationSigner as Zt, AddOperationExampleInputSchema as _, BaseDocumentStateSchema as _n, SetOperationNameInputSchema as _t, validateInitialState as a, documentModelLoadFromInput as an, SetModelExtensionInputSchema as at, AuthorSchema as b, DocumentModelSchema as bn, SetOperationScopeInputSchema as bt, validateModules as c, getFileBrowser as cn, SetModuleDescriptionInputSchema as ct, validateStateSchemaName as d, FileSystemError as dn, SetNameActionSchema as dt, verify as en, ScopeStateSchema as et, deriveOperationId as f, HashMismatchError as fn, SetOperationDescriptionInputSchema as ft, AddOperationErrorInputSchema as g, BaseDocumentHeaderSchema as gn, SetOperationErrorTemplateInputSchema as gt, AddModuleInputSchema as h, documentModelDocumentType as hn, SetOperationErrorNameInputSchema as ht, isReservedOperationName as i, createZip as in, SetModelDescriptionInputSchema as it, DocumentModelInputSchema as j, HASH_ALGORITHM_SHA1 as jn, definedNonNullAnySchema as jt, DocumentFileSchema as k, hashBrowser as kn, UpdateOperationExampleInputSchema as kt, validateOperationName as l, readFileBrowser as ln, SetModuleNameInputSchema as lt, AddChangeLogItemInputSchema as m, InvalidActionInputZodError as mn, SetOperationErrorDescriptionInputSchema as mt, ReservedOperationName as n, baseSaveToFileHandle as nn, SetAuthorWebsiteInputSchema as nt, validateModule as o, documentModelSaveToFileHandle as on, SetModelIdInputSchema as ot, generateId as p, InvalidActionInputError as pn, SetOperationErrorCodeInputSchema as pt, RedoSchema as q, updateDocument as qt, getAllOperationNames as r, createMinimalZip as rn, SetInitialStateInputSchema as rt, validateModuleOperation as s, fetchFileBrowser as sn, SetModelNameInputSchema as st, RESERVED_OPERATION_NAMES as t, baseLoadFromInput as tn, SetAuthorNameInputSchema as tt, validateOperations as u, writeFileBrowser as un, SetNameActionInputSchema as ut, AddOperationInputSchema as v, DocumentModelHeaderSchema as vn, SetOperationReducerInputSchema as vt, DeleteOperationErrorInputSchema as w, isDocumentModelState as wn, StateSchema as wt, CodeExampleSchema as x, assertIsDocumentModelDocument as xn, SetOperationTemplateInputSchema as xt, AddStateExampleInputSchema as y, DocumentModelPHStateSchema as yn, SetOperationSchemaInputSchema as yt, OperationErrorSchema as z, documentModelInitialLocalState as zn, documentModelStateReducer as zt };
567
+ //# sourceMappingURL=index-dg_xL7sp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-dg_xL7sp.d.ts","names":[],"sources":["../document-model/constants.ts","../document-model/crypto.ts","../document-model/document-schema.ts","../document-model/document-type.ts","../document-model/errors.ts","../document-model/files.ts","../document-model/header.ts","../document-model/reducer.ts","../document-model/reducers.ts","../document-model/schemas.ts","../document-model/utils.ts","../document-model/validation.ts"],"mappings":";;;;;cAKa,0BAAA;AAAA,cAEA,8BAAA,EAAgC,uBAAA;AAAA,cAChC,+BAAA,EAAiC,wBAAA;AAAA,cA6BjC,wBAAA,EAA0B,wBAAA;AAAA,cAylB1B,mBAAA;AAAA,cACA,qBAAA;AAAA,cACA,qBAAA;AAAA,cAGA,oBAAA;AAAA,cACA,iBAAA;;;cChoBA,WAAA,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GAAkC,CAAA,CAAE,SAAA,CAClD,UAAA,CAAW,wBAAA;AAAA,iBASG,iCAAA,CAAA,GAAqC,CAAA,CAAE,SAAA,CACrD,UAAA,CAAW,2BAAA;AAAA,iBAQG,6BAAA,CAAA,GAAiC,CAAA,CAAE,SAAA,CACjD,UAAA,CAAW,uBAAA;;;iBCjuBG,UAAA,CAAW,MAAA;;;;iBAaX,iBAAA,CACd,UAAA,UACA,KAAA,UACA,MAAA,UACA,QAAA;;;;;;AVdF;cWQa,wBAAA;AAAA,KASD,qBAAA,WAAgC,wBAAA;;;AXf5C;iBWoBgB,uBAAA,CAAwB,IAAA;;;;AXnBxC;iBW6BgB,oBAAA,CACd,KAAA,EAAO,wBAAA,EACP,kBAAA;;;;AXFF;;;;;iBWyBgB,qBAAA,CACd,IAAA,UACA,KAAA,EAAO,wBAAA,EACP,kBAAA;AAAA,iBAoBc,oBAAA,CACd,YAAA,UACA,eAAA,aACC,eAAA;AAAA,iBA4Ba,uBAAA,CACd,MAAA,UACA,YAAA,UACA,KAAA,WACA,gBAAA,aACC,eAAA;AAAA,iBAqCa,eAAA,CACd,OAAA,EAAS,mBAAA,KACR,eAAA;AAAA,iBAmBa,cAAA,CAAe,GAAA,EAAK,mBAAA,GAAsB,eAAA;AAAA,iBA6B1C,uBAAA,CACd,SAAA,EAAW,sBAAA,GACV,eAAA;AAAA,iBAwBa,kBAAA,CAAmB,UAAA,EAAY,kBAAA,GAAkB,eAAA"}
@@ -1,5 +1,2 @@
1
- export * from "./constants.js";
2
- export * from "./relational/types.js";
3
- export * from "./relational/utils.js";
4
- export type * from "./types.js";
5
- //# sourceMappingURL=index.d.ts.map
1
+ import { Aa as ProcessorRecord, Ca as IProcessorHostModule, Da as ProcessorFactory, Ea as ProcessorApps, Ma as TrackedProcessor, Oa as ProcessorFactoryBuilder, Sa as IProcessor, Ta as ProcessorApp, _a as IRelationalDbProcessor, ba as RelationalDbProcessor, ca as createNamespacedDb, da as hashNamespace, dc as DEFAULT_ANALYTICS_PROCESSOR_DB_NAME, fa as relationalDbToQueryBuilder, fc as DEFAULT_RELATIONAL_PROCESSOR_DB_NAME, ga as IRelationalDb, ha as IBaseRelationalDb, ja as ProcessorStatus, ka as ProcessorFilter, la as createNamespacedQueryBuilder, ma as HashAlgorithms, pa as ExtractProcessorSchemaOrSelf, pc as PROCESSOR_APPS, ua as createRelationalDb, va as IRelationalQueryBuilder, wa as IProcessorManager, xa as RelationalDbProcessorClass, ya as IRelationalQueryMethods } from "../types-faUXKACL.js";
2
+ export { DEFAULT_ANALYTICS_PROCESSOR_DB_NAME, DEFAULT_RELATIONAL_PROCESSOR_DB_NAME, ExtractProcessorSchemaOrSelf, HashAlgorithms, IBaseRelationalDb, IProcessor, IProcessorHostModule, IProcessorManager, IRelationalDb, IRelationalDbProcessor, IRelationalQueryBuilder, IRelationalQueryMethods, PROCESSOR_APPS, ProcessorApp, ProcessorApps, ProcessorFactory, ProcessorFactoryBuilder, ProcessorFilter, ProcessorRecord, ProcessorStatus, RelationalDbProcessor, RelationalDbProcessorClass, TrackedProcessor, createNamespacedDb, createNamespacedQueryBuilder, createRelationalDb, hashNamespace, relationalDbToQueryBuilder };