@powerhousedao/shared 6.0.0-dev.247 → 6.0.0-dev.248
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions-BizGiU87.d.ts +21058 -0
- package/dist/actions-BizGiU87.d.ts.map +1 -0
- package/dist/clis/args/access-token.mjs +1 -1
- package/dist/clis/args/{common-Bc8EcW9w.mjs → common-DPYlcz-d.mjs} +7 -1
- package/dist/clis/args/common-DPYlcz-d.mjs.map +1 -0
- package/dist/clis/args/common.mjs +1 -1
- package/dist/clis/args/connect.mjs +1 -1
- package/dist/clis/args/{generate-DNGRYRdp.mjs → generate-BJPBa0mK.mjs} +2 -2
- package/dist/clis/args/{generate-DNGRYRdp.mjs.map → generate-BJPBa0mK.mjs.map} +1 -1
- package/dist/clis/args/generate.mjs +1 -1
- package/dist/clis/args/{help-CFAVJzhI.mjs → help-rztSuf9S.mjs} +3 -3
- package/dist/clis/args/{help-CFAVJzhI.mjs.map → help-rztSuf9S.mjs.map} +1 -1
- package/dist/clis/args/help.mjs +1 -1
- package/dist/clis/args/index.d.mts +1 -1
- package/dist/clis/args/index.mjs +3 -3
- package/dist/clis/args/init.mjs +1 -1
- package/dist/clis/args/inspect.mjs +1 -1
- package/dist/clis/args/install.mjs +1 -1
- package/dist/clis/args/list.mjs +1 -1
- package/dist/clis/args/login.mjs +1 -1
- package/dist/clis/args/migrate.mjs +1 -1
- package/dist/clis/args/publish.mjs +1 -1
- package/dist/clis/args/registry.mjs +1 -1
- package/dist/clis/args/service-zdLhL5Q0.d.mts +106 -0
- package/dist/clis/args/service-zdLhL5Q0.d.mts.map +1 -0
- package/dist/clis/args/service.d.mts +1 -1
- package/dist/clis/args/service.mjs +1 -1
- package/dist/clis/args/switchboard.mjs +1 -1
- package/dist/clis/args/uninstall.mjs +1 -1
- package/dist/clis/args/unpublish.mjs +1 -1
- package/dist/clis/args/vetra.mjs +1 -1
- package/dist/clis/constants.d.mts +247 -1
- package/dist/clis/constants.d.mts.map +1 -1
- package/dist/clis/constants.mjs +132 -9
- package/dist/clis/constants.mjs.map +1 -1
- package/dist/clis/index.d.mts +258 -8
- package/dist/clis/index.d.mts.map +1 -1
- package/dist/clis/index.mjs +144 -13
- package/dist/clis/index.mjs.map +1 -1
- package/dist/document-drive/index.d.ts +2 -2
- package/dist/document-model/index.d.ts +2 -2
- package/dist/document-model/index.js +65 -33
- package/dist/document-model/index.js.map +1 -1
- package/dist/{index-fzb9xR0z.d.ts → index-lpBA_hRO.d.ts} +4 -5
- package/dist/index-lpBA_hRO.d.ts.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/processors/index.d.ts +1 -1
- package/dist/registry/index.d.ts +1 -1
- package/dist/registry/index.js +6 -0
- package/dist/registry/index.js.map +1 -1
- package/dist/{types-DotvSp4R.d.ts → types-KaPjC4vI.d.ts} +2 -2
- package/dist/{types-DotvSp4R.d.ts.map → types-KaPjC4vI.d.ts.map} +1 -1
- package/package.json +3 -3
- package/dist/actions-muZIbpCg.d.ts +0 -2499
- package/dist/actions-muZIbpCg.d.ts.map +0 -1
- package/dist/clis/args/common-Bc8EcW9w.mjs.map +0 -1
- package/dist/clis/args/service-C88bN_g_.d.mts +0 -22
- package/dist/clis/args/service-C88bN_g_.d.mts.map +0 -1
- package/dist/index-fzb9xR0z.d.ts.map +0 -1
|
@@ -1,2499 +0,0 @@
|
|
|
1
|
-
import { f as IAnalyticsStore } from "./types-BFDlQkXZ.js";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
import { Draft } from "mutative";
|
|
4
|
-
import { OperationWithContext } from "@powerhousedao/shared/document-model";
|
|
5
|
-
import { Kysely, QueryCreator } from "kysely";
|
|
6
|
-
import { FC, ReactNode } from "react";
|
|
7
|
-
|
|
8
|
-
//#region document-model/signatures.d.ts
|
|
9
|
-
/**
|
|
10
|
-
* A signature of an action.
|
|
11
|
-
*
|
|
12
|
-
* This will be refactored in a future release.
|
|
13
|
-
*/
|
|
14
|
-
type Signature = [string, string, string, string, string];
|
|
15
|
-
/**
|
|
16
|
-
* A user action signer.
|
|
17
|
-
*/
|
|
18
|
-
type UserActionSigner = {
|
|
19
|
-
address: string;
|
|
20
|
-
networkId: string;
|
|
21
|
-
chainId: number;
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* An app action signer.
|
|
25
|
-
*/
|
|
26
|
-
type AppActionSigner = {
|
|
27
|
-
name: string;
|
|
28
|
-
key: string;
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* An action signer.
|
|
32
|
-
*/
|
|
33
|
-
type ActionSigner = {
|
|
34
|
-
user: UserActionSigner;
|
|
35
|
-
app: AppActionSigner;
|
|
36
|
-
signatures: Signature[];
|
|
37
|
-
};
|
|
38
|
-
/**
|
|
39
|
-
* Information to verify the document creator.
|
|
40
|
-
*/
|
|
41
|
-
type PHDocumentSignatureInfo = {
|
|
42
|
-
/**
|
|
43
|
-
* The public key of the document creator.
|
|
44
|
-
**/
|
|
45
|
-
publicKey: JsonWebKey; /** The nonce that was appended to the message to create the signature. */
|
|
46
|
-
nonce: string;
|
|
47
|
-
};
|
|
48
|
-
/**
|
|
49
|
-
* Configuration for hashing document state in operations.
|
|
50
|
-
*/
|
|
51
|
-
type HashConfig = {
|
|
52
|
-
/** The hashing algorithm to use (e.g., "sha1", "sha256") */algorithm: string; /** The encoding format for the hash output (e.g., "base64", "hex") */
|
|
53
|
-
encoding: string; /** Optional algorithm-specific parameters */
|
|
54
|
-
params?: Record<string, unknown>;
|
|
55
|
-
};
|
|
56
|
-
//#endregion
|
|
57
|
-
//#region processors/constants.d.ts
|
|
58
|
-
declare const PROCESSOR_APPS: readonly ["connect", "switchboard"];
|
|
59
|
-
declare const DEFAULT_RELATIONAL_PROCESSOR_DB_NAME = "relational-db";
|
|
60
|
-
declare const DEFAULT_ANALYTICS_PROCESSOR_DB_NAME = "analytics-db";
|
|
61
|
-
//#endregion
|
|
62
|
-
//#region processors/types.d.ts
|
|
63
|
-
type ProcessorDispatchResult = {
|
|
64
|
-
id: string;
|
|
65
|
-
status: string;
|
|
66
|
-
};
|
|
67
|
-
interface IProcessorDispatch {
|
|
68
|
-
execute(docId: string, branch: string, actions: Action[], signal?: AbortSignal, meta?: Record<string, unknown>): Promise<ProcessorDispatchResult>;
|
|
69
|
-
}
|
|
70
|
-
interface IProcessorHostModule {
|
|
71
|
-
analyticsStore: IAnalyticsStore;
|
|
72
|
-
relationalDb: IRelationalDb;
|
|
73
|
-
processorApp: ProcessorApp;
|
|
74
|
-
dispatch: IProcessorDispatch;
|
|
75
|
-
getReadModel<T>(name: string): T;
|
|
76
|
-
config?: Map<string, unknown>;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Filter for matching operations to processors.
|
|
80
|
-
* All fields are optional arrays - when provided, operations must match at least one value in each specified field.
|
|
81
|
-
* When a field is undefined or empty, it matches all values for that field.
|
|
82
|
-
*/
|
|
83
|
-
type ProcessorFilter = {
|
|
84
|
-
documentType?: string[];
|
|
85
|
-
scope?: string[];
|
|
86
|
-
branch?: string[];
|
|
87
|
-
documentId?: string[];
|
|
88
|
-
};
|
|
89
|
-
/**
|
|
90
|
-
* Describes an object that can process operations.
|
|
91
|
-
*/
|
|
92
|
-
interface IProcessor {
|
|
93
|
-
/**
|
|
94
|
-
* Processes a list of operations with context.
|
|
95
|
-
* Called when operations match this processor's filter.
|
|
96
|
-
*/
|
|
97
|
-
onOperations(operations: OperationWithContext[]): Promise<void>;
|
|
98
|
-
/**
|
|
99
|
-
* Called when the processor is disconnected.
|
|
100
|
-
* Used to clean up any resources allocated during processor creation.
|
|
101
|
-
*/
|
|
102
|
-
onDisconnect(): Promise<void>;
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* Relates a processor to its filter configuration.
|
|
106
|
-
*/
|
|
107
|
-
type ProcessorRecord = {
|
|
108
|
-
processor: IProcessor;
|
|
109
|
-
filter: ProcessorFilter;
|
|
110
|
-
startFrom?: "beginning" | "current";
|
|
111
|
-
};
|
|
112
|
-
/**
|
|
113
|
-
* A factory function that creates processor records for a given drive.
|
|
114
|
-
* Called once per drive when the drive is first detected or when the factory is registered.
|
|
115
|
-
*/
|
|
116
|
-
type ProcessorFactory = (driveHeader: PHDocumentHeader, processorApp?: ProcessorApp) => Promise<ProcessorRecord[]> | ProcessorRecord[];
|
|
117
|
-
/** Takes a processor host module and builds processor factories using its context */
|
|
118
|
-
type ProcessorFactoryBuilder = (module: IProcessorHostModule) => Promise<ProcessorFactory> | ProcessorFactory;
|
|
119
|
-
type ProcessorStatus = "active" | "errored";
|
|
120
|
-
type TrackedProcessor = {
|
|
121
|
-
processorId: string;
|
|
122
|
-
factoryId: string;
|
|
123
|
-
driveId: string;
|
|
124
|
-
processorIndex: number;
|
|
125
|
-
record: ProcessorRecord;
|
|
126
|
-
lastOrdinal: number;
|
|
127
|
-
status: ProcessorStatus;
|
|
128
|
-
lastError: string | undefined;
|
|
129
|
-
lastErrorTimestamp: Date | undefined;
|
|
130
|
-
retry: () => Promise<void>;
|
|
131
|
-
};
|
|
132
|
-
/**
|
|
133
|
-
* Manages processor creation and destruction based on drive operations.
|
|
134
|
-
*/
|
|
135
|
-
interface IProcessorManager {
|
|
136
|
-
/**
|
|
137
|
-
* Registers a processor factory.
|
|
138
|
-
* Immediately creates processors for all existing drives.
|
|
139
|
-
*/
|
|
140
|
-
registerFactory(identifier: string, factory: ProcessorFactory): Promise<void>;
|
|
141
|
-
/**
|
|
142
|
-
* Unregisters a processor factory and disconnects all processors it created.
|
|
143
|
-
*/
|
|
144
|
-
unregisterFactory(identifier: string): Promise<void>;
|
|
145
|
-
/**
|
|
146
|
-
* Gets a tracked processor by its ID.
|
|
147
|
-
*/
|
|
148
|
-
get(processorId: string): TrackedProcessor | undefined;
|
|
149
|
-
/**
|
|
150
|
-
* Gets all tracked processors.
|
|
151
|
-
*/
|
|
152
|
-
getAll(): TrackedProcessor[];
|
|
153
|
-
}
|
|
154
|
-
type ProcessorApp = (typeof PROCESSOR_APPS)[number];
|
|
155
|
-
type ProcessorApps = readonly ProcessorApp[];
|
|
156
|
-
//#endregion
|
|
157
|
-
//#region processors/relational/types.d.ts
|
|
158
|
-
type IRelationalQueryMethods = "selectFrom" | "selectNoFrom" | "with" | "withRecursive";
|
|
159
|
-
type IRelationalQueryBuilder<Schema = unknown> = Pick<QueryCreator<Schema>, IRelationalQueryMethods> & {
|
|
160
|
-
withSchema: (schema: string) => IRelationalQueryBuilder<Schema>;
|
|
161
|
-
};
|
|
162
|
-
type HashAlgorithms = "fnv1a";
|
|
163
|
-
type IBaseRelationalDb<Schema = unknown> = Kysely<Schema>;
|
|
164
|
-
/**
|
|
165
|
-
* The standardized relational database interface for relational db processors.
|
|
166
|
-
* This abstraction provides type-safe database operations while hiding the underlying
|
|
167
|
-
* database framework implementation details.
|
|
168
|
-
**/
|
|
169
|
-
type IRelationalDb<Schema = unknown> = IBaseRelationalDb<Schema> & {
|
|
170
|
-
createNamespace<NamespaceSchema>(namespace: string): Promise<IRelationalDb<ExtractProcessorSchemaOrSelf<NamespaceSchema>>>;
|
|
171
|
-
queryNamespace<NamespaceSchema>(namespace: string): IRelationalQueryBuilder<NamespaceSchema>;
|
|
172
|
-
};
|
|
173
|
-
type ExtractProcessorSchemaOrSelf<TProcessor> = TProcessor extends RelationalDbProcessor<infer TSchema> ? TSchema : TProcessor;
|
|
174
|
-
type RelationalDbProcessorClass<TSchema> = typeof RelationalDbProcessor<TSchema>;
|
|
175
|
-
interface IRelationalDbProcessor<TDatabaseSchema = unknown> extends IProcessor {
|
|
176
|
-
namespace: string;
|
|
177
|
-
query: IRelationalQueryBuilder<TDatabaseSchema>;
|
|
178
|
-
filter: ProcessorFilter;
|
|
179
|
-
initAndUpgrade(): Promise<void>;
|
|
180
|
-
}
|
|
181
|
-
declare const IS_RELATIONAL_DB_PROCESSOR: unique symbol;
|
|
182
|
-
/**
|
|
183
|
-
* Base class for relational db processors that require a relational database storage.
|
|
184
|
-
* This class abstracts database initialization, migration management, and resource cleanup,
|
|
185
|
-
* allowing derived classes to focus on business logic.
|
|
186
|
-
*/
|
|
187
|
-
declare abstract class RelationalDbProcessor<TDatabaseSchema = unknown> implements IRelationalDbProcessor<TDatabaseSchema> {
|
|
188
|
-
protected _namespace: string;
|
|
189
|
-
protected _filter: ProcessorFilter;
|
|
190
|
-
protected relationalDb: IRelationalDb<TDatabaseSchema>;
|
|
191
|
-
constructor(_namespace: string, _filter: ProcessorFilter, relationalDb: IRelationalDb<TDatabaseSchema>);
|
|
192
|
-
static [IS_RELATIONAL_DB_PROCESSOR]: boolean;
|
|
193
|
-
/**
|
|
194
|
-
* Returns the namespace for a given drive id.
|
|
195
|
-
* This method can be overridden by derived classes to provide a custom namespace.
|
|
196
|
-
*/
|
|
197
|
-
static getNamespace(driveId: string): string;
|
|
198
|
-
static query<Schema>(this: RelationalDbProcessorClass<Schema>, driveId: string, db: IRelationalDb<any>): IRelationalQueryBuilder<Schema>;
|
|
199
|
-
/**
|
|
200
|
-
* Processes a list of operations with context.
|
|
201
|
-
* Called when operations match this processor's filter.
|
|
202
|
-
*/
|
|
203
|
-
abstract onOperations(operations: OperationWithContext[]): Promise<void>;
|
|
204
|
-
/**
|
|
205
|
-
* Returns the filter for the processor.
|
|
206
|
-
* This method can be overridden by derived classes to provide a custom filter.
|
|
207
|
-
*/
|
|
208
|
-
get filter(): ProcessorFilter;
|
|
209
|
-
/**
|
|
210
|
-
* Returns the namespace used by the processor.
|
|
211
|
-
*/
|
|
212
|
-
get namespace(): string;
|
|
213
|
-
get query(): IRelationalQueryBuilder<TDatabaseSchema>;
|
|
214
|
-
/**
|
|
215
|
-
* Abstract method that derived classes must implement.
|
|
216
|
-
* This method is meant to be called on subclasses to initialize and upgrade the database.
|
|
217
|
-
*/
|
|
218
|
-
abstract initAndUpgrade(): Promise<void>;
|
|
219
|
-
/**
|
|
220
|
-
* Called when the processor is disconnected.
|
|
221
|
-
* This method is meant to be overridden by subclasses to clean up resources.
|
|
222
|
-
*/
|
|
223
|
-
abstract onDisconnect(): Promise<void>;
|
|
224
|
-
}
|
|
225
|
-
//#endregion
|
|
226
|
-
//#region processors/relational/utils.d.ts
|
|
227
|
-
/**
|
|
228
|
-
* Hashes a string to a lowercase base-26 string.
|
|
229
|
-
* @param str The string to hash.
|
|
230
|
-
* @param length The length of the hash. Defaults to 10.
|
|
231
|
-
* @param algorithm The hashing algorithm to use. Defaults to "fnv1a".
|
|
232
|
-
* @returns The hashed string.
|
|
233
|
-
*/
|
|
234
|
-
declare function hashNamespace(str: string, length?: number): string;
|
|
235
|
-
/**
|
|
236
|
-
* Creates a RelationalDb instance with namespace support.
|
|
237
|
-
* @param baseDb The base RelationalDb instance to enhance.
|
|
238
|
-
* @param baseOptions The default options for namespace creation. Hashes namespace by default.
|
|
239
|
-
* @returns The enhanced RelationalDb instance.
|
|
240
|
-
*/
|
|
241
|
-
declare function createRelationalDb<Schema>(baseDb: IBaseRelationalDb<Schema>, baseOptions?: NamespaceOptions): IRelationalDb<Schema>;
|
|
242
|
-
type NamespaceOptions = {
|
|
243
|
-
hashNamespace?: boolean;
|
|
244
|
-
};
|
|
245
|
-
declare function createNamespacedDb<Schema>(db: IBaseRelationalDb<any>, namespace: string, options?: NamespaceOptions): Promise<IRelationalDb<Schema>>;
|
|
246
|
-
declare function createNamespacedQueryBuilder<Schema>(db: IBaseRelationalDb<any>, namespace: string, options?: NamespaceOptions): IRelationalQueryBuilder<Schema>;
|
|
247
|
-
/**
|
|
248
|
-
* Returns a query builder for a RelationalDb instance.
|
|
249
|
-
* @param query The RelationalDb instance to convert.
|
|
250
|
-
* @returns The IRelationalQueryBuilder instance.
|
|
251
|
-
*/
|
|
252
|
-
declare function relationalDbToQueryBuilder<TSchema>(query: IBaseRelationalDb<TSchema>): IRelationalQueryBuilder<TSchema>;
|
|
253
|
-
//#endregion
|
|
254
|
-
//#region document-model/schemas.d.ts
|
|
255
|
-
type definedNonNullAny = {};
|
|
256
|
-
declare const isDefinedNonNullAny: (v: any) => v is definedNonNullAny;
|
|
257
|
-
declare const definedNonNullAnySchema: z.ZodAny & z.ZodType<definedNonNullAny, any, z.core.$ZodTypeInternals<definedNonNullAny, any>>;
|
|
258
|
-
declare const Load_StateSchema: z.ZodEnum<{
|
|
259
|
-
LOAD_STATE: "LOAD_STATE";
|
|
260
|
-
}>;
|
|
261
|
-
declare const PruneSchema: z.ZodEnum<{
|
|
262
|
-
PRUNE: "PRUNE";
|
|
263
|
-
}>;
|
|
264
|
-
declare const RedoSchema: z.ZodEnum<{
|
|
265
|
-
REDO: "REDO";
|
|
266
|
-
}>;
|
|
267
|
-
declare const Set_NameSchema: z.ZodEnum<{
|
|
268
|
-
SET_NAME: "SET_NAME";
|
|
269
|
-
}>;
|
|
270
|
-
declare const Set_PreferredEditorSchema: z.ZodEnum<{
|
|
271
|
-
SET_PREFERRED_EDITOR: "SET_PREFERRED_EDITOR";
|
|
272
|
-
}>;
|
|
273
|
-
declare const UndoSchema: z.ZodEnum<{
|
|
274
|
-
UNDO: "UNDO";
|
|
275
|
-
}>;
|
|
276
|
-
declare function OperationScopeSchema(): z.ZodString;
|
|
277
|
-
declare function DocumentActionSchema(): z.ZodUnion<readonly [z.ZodObject<Required<{
|
|
278
|
-
id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
279
|
-
timestampUtcMs: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
280
|
-
input: z.ZodType<LoadStateActionInput, LoadStateActionInput, z.core.$ZodTypeInternals<LoadStateActionInput, LoadStateActionInput>>;
|
|
281
|
-
type: z.ZodType<"LOAD_STATE", "LOAD_STATE", z.core.$ZodTypeInternals<"LOAD_STATE", "LOAD_STATE">>;
|
|
282
|
-
scope: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
283
|
-
}>, z.core.$strip>, z.ZodObject<Required<{
|
|
284
|
-
id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
285
|
-
timestampUtcMs: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
286
|
-
input: z.ZodType<PruneActionInput, PruneActionInput, z.core.$ZodTypeInternals<PruneActionInput, PruneActionInput>>;
|
|
287
|
-
type: z.ZodType<"PRUNE", "PRUNE", z.core.$ZodTypeInternals<"PRUNE", "PRUNE">>;
|
|
288
|
-
scope: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
289
|
-
}>, z.core.$strip>, z.ZodObject<Required<{
|
|
290
|
-
id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
291
|
-
timestampUtcMs: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
292
|
-
input: z.ZodType<RedoActionInput, RedoActionInput, z.core.$ZodTypeInternals<RedoActionInput, RedoActionInput>>;
|
|
293
|
-
type: z.ZodType<"REDO", "REDO", z.core.$ZodTypeInternals<"REDO", "REDO">>;
|
|
294
|
-
scope: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
295
|
-
}>, z.core.$strip>, z.ZodObject<Required<{
|
|
296
|
-
id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
297
|
-
timestampUtcMs: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
298
|
-
input: z.ZodType<SetNameActionInput, SetNameActionInput, z.core.$ZodTypeInternals<SetNameActionInput, SetNameActionInput>>;
|
|
299
|
-
type: z.ZodType<"SET_NAME", "SET_NAME", z.core.$ZodTypeInternals<"SET_NAME", "SET_NAME">>;
|
|
300
|
-
scope: z.ZodType<"global", "global", z.core.$ZodTypeInternals<"global", "global">>;
|
|
301
|
-
}>, z.core.$strip>, z.ZodObject<Required<{
|
|
302
|
-
id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
303
|
-
timestampUtcMs: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
304
|
-
input: z.ZodType<SetPreferredEditorActionInput, SetPreferredEditorActionInput, z.core.$ZodTypeInternals<SetPreferredEditorActionInput, SetPreferredEditorActionInput>>;
|
|
305
|
-
type: z.ZodType<"SET_PREFERRED_EDITOR", "SET_PREFERRED_EDITOR", z.core.$ZodTypeInternals<"SET_PREFERRED_EDITOR", "SET_PREFERRED_EDITOR">>;
|
|
306
|
-
scope: z.ZodType<"header", "header", z.core.$ZodTypeInternals<"header", "header">>;
|
|
307
|
-
}>, z.core.$strip>, z.ZodObject<Required<{
|
|
308
|
-
id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
309
|
-
timestampUtcMs: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
310
|
-
input: z.ZodType<UndoActionInput, UndoActionInput, z.core.$ZodTypeInternals<UndoActionInput, UndoActionInput>>;
|
|
311
|
-
type: z.ZodType<"UNDO", "UNDO", z.core.$ZodTypeInternals<"UNDO", "UNDO">>;
|
|
312
|
-
scope: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
313
|
-
}>, z.core.$strip>]>;
|
|
314
|
-
declare function DocumentFileSchema(): z.ZodObject<Properties<DocumentFile>>;
|
|
315
|
-
declare function LoadStateActionSchema(): z.ZodObject<Properties<SchemaLoadStateAction>>;
|
|
316
|
-
declare function LoadStateActionInputSchema(): z.ZodObject<Properties<LoadStateActionInput>>;
|
|
317
|
-
declare function LoadStateActionStateInputSchema(): z.ZodObject<Properties<LoadStateActionStateInput>>;
|
|
318
|
-
declare function PruneActionSchema(): z.ZodObject<Properties<SchemaPruneAction>>;
|
|
319
|
-
declare function PruneActionInputSchema(): z.ZodObject<Properties<PruneActionInput>>;
|
|
320
|
-
declare function RedoActionInputSchema(): z.ZodObject<{
|
|
321
|
-
count: z.ZodNumber;
|
|
322
|
-
}, z.core.$strip>;
|
|
323
|
-
declare function RedoActionSchema(): z.ZodObject<Properties<SchemaRedoAction>>;
|
|
324
|
-
declare function SetNameActionInputSchema(): z.ZodObject<{
|
|
325
|
-
name: z.ZodString;
|
|
326
|
-
}, z.core.$strip>;
|
|
327
|
-
declare function SetNameActionSchema(): z.ZodObject<Properties<SchemaSetNameAction>>;
|
|
328
|
-
declare function SetPreferredEditorActionInputSchema(): z.ZodObject<{
|
|
329
|
-
preferredEditor: z.ZodNullable<z.ZodString>;
|
|
330
|
-
}, z.core.$strip>;
|
|
331
|
-
declare function SetPreferredEditorActionSchema(): z.ZodObject<Properties<SchemaSetPreferredEditorAction>>;
|
|
332
|
-
declare function UndoActionInputSchema(): z.ZodObject<{
|
|
333
|
-
count: z.ZodNumber;
|
|
334
|
-
}, z.core.$strip>;
|
|
335
|
-
declare function UndoActionSchema(): z.ZodObject<Properties<SchemaUndoAction>>;
|
|
336
|
-
type Properties<T> = Required<{ [K in keyof T]: z.ZodType<T[K], T[K]> }>;
|
|
337
|
-
declare function AddChangeLogItemInputSchema(): z.ZodObject<Properties<AddChangeLogItemInput>>;
|
|
338
|
-
declare function AddModuleInputSchema(): z.ZodObject<Properties<AddModuleInput>>;
|
|
339
|
-
declare function AddOperationErrorInputSchema(): z.ZodObject<Properties<AddOperationErrorInput>>;
|
|
340
|
-
declare function AddOperationExampleInputSchema(): z.ZodObject<Properties<AddOperationExampleInput>>;
|
|
341
|
-
declare function AddOperationInputSchema(): z.ZodObject<Properties<AddOperationInput>>;
|
|
342
|
-
declare function AddStateExampleInputSchema(): z.ZodObject<Properties<AddStateExampleInput>>;
|
|
343
|
-
declare function AuthorSchema(): z.ZodObject<Properties<Author>>;
|
|
344
|
-
declare function CodeExampleSchema(): z.ZodObject<Properties<CodeExample>>;
|
|
345
|
-
declare function DeleteChangeLogItemInputSchema(): z.ZodObject<Properties<DeleteChangeLogItemInput>>;
|
|
346
|
-
declare function DeleteModuleInputSchema(): z.ZodObject<Properties<DeleteModuleInput>>;
|
|
347
|
-
declare function DeleteOperationErrorInputSchema(): z.ZodObject<Properties<DeleteOperationErrorInput>>;
|
|
348
|
-
declare function DeleteOperationExampleInputSchema(): z.ZodObject<Properties<DeleteOperationExampleInput>>;
|
|
349
|
-
declare function DeleteOperationInputSchema(): z.ZodObject<Properties<DeleteOperationInput>>;
|
|
350
|
-
declare function DeleteStateExampleInputSchema(): z.ZodObject<Properties<DeleteStateExampleInput>>;
|
|
351
|
-
declare function DocumentModelInputSchema(): z.ZodUnion<readonly [z.ZodObject<Required<{
|
|
352
|
-
__typename?: z.ZodType<"AddChangeLogItemInput" | undefined, "AddChangeLogItemInput" | undefined, z.core.$ZodTypeInternals<"AddChangeLogItemInput" | undefined, "AddChangeLogItemInput" | undefined>> | undefined;
|
|
353
|
-
content: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
354
|
-
id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
355
|
-
insertBefore: z.ZodType<Maybe<string>, Maybe<string>, z.core.$ZodTypeInternals<Maybe<string>, Maybe<string>>>;
|
|
356
|
-
}>, z.core.$strip>, z.ZodObject<Required<{
|
|
357
|
-
description?: z.ZodType<InputMaybe<string>, InputMaybe<string>, z.core.$ZodTypeInternals<InputMaybe<string>, InputMaybe<string>>> | undefined;
|
|
358
|
-
id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
359
|
-
name: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
360
|
-
}>, z.core.$strip>, z.ZodObject<Required<{
|
|
361
|
-
errorCode?: z.ZodType<InputMaybe<string>, InputMaybe<string>, z.core.$ZodTypeInternals<InputMaybe<string>, InputMaybe<string>>> | undefined;
|
|
362
|
-
errorDescription?: z.ZodType<InputMaybe<string>, InputMaybe<string>, z.core.$ZodTypeInternals<InputMaybe<string>, InputMaybe<string>>> | undefined;
|
|
363
|
-
errorName?: z.ZodType<InputMaybe<string>, InputMaybe<string>, z.core.$ZodTypeInternals<InputMaybe<string>, InputMaybe<string>>> | undefined;
|
|
364
|
-
errorTemplate?: 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
|
-
operationId: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
367
|
-
}>, z.core.$strip>, z.ZodObject<Required<{
|
|
368
|
-
example: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
369
|
-
id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
370
|
-
operationId: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
371
|
-
}>, z.core.$strip>, z.ZodObject<Required<{
|
|
372
|
-
description?: z.ZodType<InputMaybe<string>, InputMaybe<string>, z.core.$ZodTypeInternals<InputMaybe<string>, InputMaybe<string>>> | undefined;
|
|
373
|
-
id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
374
|
-
moduleId: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
375
|
-
name: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
376
|
-
reducer?: z.ZodType<InputMaybe<string>, InputMaybe<string>, z.core.$ZodTypeInternals<InputMaybe<string>, InputMaybe<string>>> | undefined;
|
|
377
|
-
schema?: z.ZodType<InputMaybe<string>, InputMaybe<string>, z.core.$ZodTypeInternals<InputMaybe<string>, InputMaybe<string>>> | undefined;
|
|
378
|
-
template?: z.ZodType<InputMaybe<string>, InputMaybe<string>, z.core.$ZodTypeInternals<InputMaybe<string>, InputMaybe<string>>> | undefined;
|
|
379
|
-
scope?: z.ZodType<InputMaybe<string>, InputMaybe<string>, z.core.$ZodTypeInternals<InputMaybe<string>, InputMaybe<string>>> | undefined;
|
|
380
|
-
}>, z.core.$strip>, z.ZodObject<Required<{
|
|
381
|
-
scope: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
382
|
-
example: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
383
|
-
id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
384
|
-
insertBefore?: z.ZodType<InputMaybe<string>, InputMaybe<string>, z.core.$ZodTypeInternals<InputMaybe<string>, InputMaybe<string>>> | undefined;
|
|
385
|
-
}>, z.core.$strip>, z.ZodObject<Required<{
|
|
386
|
-
__typename?: z.ZodType<"DeleteChangeLogItemInput" | undefined, "DeleteChangeLogItemInput" | undefined, z.core.$ZodTypeInternals<"DeleteChangeLogItemInput" | undefined, "DeleteChangeLogItemInput" | undefined>> | undefined;
|
|
387
|
-
id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
388
|
-
}>, z.core.$strip>, z.ZodObject<Required<{
|
|
389
|
-
id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
390
|
-
}>, z.core.$strip>, z.ZodObject<Required<{
|
|
391
|
-
id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
392
|
-
}>, z.core.$strip>, z.ZodObject<Required<{
|
|
393
|
-
id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
394
|
-
}>, z.core.$strip>, z.ZodObject<Required<{
|
|
395
|
-
id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
396
|
-
}>, z.core.$strip>, z.ZodObject<Required<{
|
|
397
|
-
scope: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
398
|
-
id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
399
|
-
}>, z.core.$strip>, z.ZodObject<Required<{
|
|
400
|
-
newModuleId: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
401
|
-
operationId: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
402
|
-
}>, z.core.$strip>, z.ZodObject<Required<{
|
|
403
|
-
__typename?: z.ZodType<"ReorderChangeLogItemsInput" | undefined, "ReorderChangeLogItemsInput" | undefined, z.core.$ZodTypeInternals<"ReorderChangeLogItemsInput" | undefined, "ReorderChangeLogItemsInput" | undefined>> | undefined;
|
|
404
|
-
order: z.ZodType<string[], string[], z.core.$ZodTypeInternals<string[], string[]>>;
|
|
405
|
-
}>, z.core.$strip>, z.ZodObject<Required<{
|
|
406
|
-
moduleId: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
407
|
-
order: z.ZodType<string[], string[], z.core.$ZodTypeInternals<string[], string[]>>;
|
|
408
|
-
}>, z.core.$strip>, z.ZodObject<Required<{
|
|
409
|
-
order: z.ZodType<string[], string[], z.core.$ZodTypeInternals<string[], string[]>>;
|
|
410
|
-
}>, z.core.$strip>, z.ZodObject<Required<{
|
|
411
|
-
operationId: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
412
|
-
order: z.ZodType<string[], string[], z.core.$ZodTypeInternals<string[], string[]>>;
|
|
413
|
-
}>, z.core.$strip>, z.ZodObject<Required<{
|
|
414
|
-
operationId: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
415
|
-
order: z.ZodType<string[], string[], z.core.$ZodTypeInternals<string[], string[]>>;
|
|
416
|
-
}>, z.core.$strip>, z.ZodObject<Required<{
|
|
417
|
-
scope: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
418
|
-
order: z.ZodType<string[], string[], z.core.$ZodTypeInternals<string[], string[]>>;
|
|
419
|
-
}>, z.core.$strip>, z.ZodObject<Required<{
|
|
420
|
-
authorName: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
421
|
-
}>, z.core.$strip>, z.ZodObject<Required<{
|
|
422
|
-
authorWebsite: 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
|
-
initialValue: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
426
|
-
}>, z.core.$strip>, z.ZodObject<Required<{
|
|
427
|
-
description: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
428
|
-
}>, z.core.$strip>, z.ZodObject<Required<{
|
|
429
|
-
extension: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
430
|
-
}>, z.core.$strip>, z.ZodObject<Required<{
|
|
431
|
-
id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
432
|
-
}>, z.core.$strip>, z.ZodObject<Required<{
|
|
433
|
-
name: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
434
|
-
}>, z.core.$strip>, z.ZodObject<Required<{
|
|
435
|
-
description?: z.ZodType<InputMaybe<string>, InputMaybe<string>, z.core.$ZodTypeInternals<InputMaybe<string>, InputMaybe<string>>> | undefined;
|
|
436
|
-
id: 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
|
-
name?: z.ZodType<InputMaybe<string>, InputMaybe<string>, z.core.$ZodTypeInternals<InputMaybe<string>, InputMaybe<string>>> | undefined;
|
|
440
|
-
}>, z.core.$strip>, z.ZodObject<Required<{
|
|
441
|
-
description?: z.ZodType<InputMaybe<string>, InputMaybe<string>, z.core.$ZodTypeInternals<InputMaybe<string>, InputMaybe<string>>> | undefined;
|
|
442
|
-
id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
443
|
-
}>, z.core.$strip>, z.ZodObject<Required<{
|
|
444
|
-
errorCode?: z.ZodType<InputMaybe<string>, InputMaybe<string>, z.core.$ZodTypeInternals<InputMaybe<string>, InputMaybe<string>>> | undefined;
|
|
445
|
-
id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
446
|
-
}>, z.core.$strip>, z.ZodObject<Required<{
|
|
447
|
-
errorDescription?: z.ZodType<InputMaybe<string>, InputMaybe<string>, z.core.$ZodTypeInternals<InputMaybe<string>, InputMaybe<string>>> | undefined;
|
|
448
|
-
id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
449
|
-
}>, z.core.$strip>, z.ZodObject<Required<{
|
|
450
|
-
errorName?: z.ZodType<InputMaybe<string>, InputMaybe<string>, z.core.$ZodTypeInternals<InputMaybe<string>, InputMaybe<string>>> | undefined;
|
|
451
|
-
id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
452
|
-
}>, z.core.$strip>, z.ZodObject<Required<{
|
|
453
|
-
errorTemplate?: z.ZodType<InputMaybe<string>, InputMaybe<string>, z.core.$ZodTypeInternals<InputMaybe<string>, InputMaybe<string>>> | undefined;
|
|
454
|
-
id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
455
|
-
}>, z.core.$strip>, z.ZodObject<Required<{
|
|
456
|
-
id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
457
|
-
name?: z.ZodType<InputMaybe<string>, InputMaybe<string>, z.core.$ZodTypeInternals<InputMaybe<string>, InputMaybe<string>>> | undefined;
|
|
458
|
-
}>, z.core.$strip>, z.ZodObject<Required<{
|
|
459
|
-
id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
460
|
-
reducer?: z.ZodType<InputMaybe<string>, InputMaybe<string>, z.core.$ZodTypeInternals<InputMaybe<string>, InputMaybe<string>>> | undefined;
|
|
461
|
-
}>, z.core.$strip>, z.ZodObject<Required<{
|
|
462
|
-
id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
463
|
-
schema?: z.ZodType<InputMaybe<string>, InputMaybe<string>, z.core.$ZodTypeInternals<InputMaybe<string>, InputMaybe<string>>> | undefined;
|
|
464
|
-
}>, z.core.$strip>, z.ZodObject<Required<{
|
|
465
|
-
id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
466
|
-
template?: z.ZodType<InputMaybe<string>, InputMaybe<string>, z.core.$ZodTypeInternals<InputMaybe<string>, InputMaybe<string>>> | undefined;
|
|
467
|
-
}>, z.core.$strip>, z.ZodObject<Required<{
|
|
468
|
-
scope: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
469
|
-
schema: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
470
|
-
}>, z.core.$strip>, z.ZodObject<Required<{
|
|
471
|
-
__typename?: z.ZodType<"UpdateChangeLogItemInput" | undefined, "UpdateChangeLogItemInput" | undefined, z.core.$ZodTypeInternals<"UpdateChangeLogItemInput" | undefined, "UpdateChangeLogItemInput" | undefined>> | undefined;
|
|
472
|
-
id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
473
|
-
newContent: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
474
|
-
}>, z.core.$strip>, z.ZodObject<Required<{
|
|
475
|
-
example: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
476
|
-
id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
477
|
-
}>, z.core.$strip>, z.ZodObject<Required<{
|
|
478
|
-
scope: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
479
|
-
id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
480
|
-
newExample: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
481
|
-
}>, z.core.$strip>]>;
|
|
482
|
-
declare function DocumentModelGlobalStateSchema(): z.ZodObject<Properties<DocumentModelGlobalState>>;
|
|
483
|
-
declare function DocumentSpecificationSchema(): z.ZodObject<Properties<DocumentSpecification>>;
|
|
484
|
-
declare function ModuleSchema(): z.ZodObject<Properties<ModuleSpecification>>;
|
|
485
|
-
declare function MoveOperationInputSchema(): z.ZodObject<Properties<MoveOperationInput>>;
|
|
486
|
-
declare function OperationSpecificationSchema(): z.ZodObject<Properties<OperationSpecification>>;
|
|
487
|
-
declare function OperationErrorSchema(): z.ZodObject<Properties<OperationErrorSpecification>>;
|
|
488
|
-
declare function ReorderChangeLogItemsInputSchema(): z.ZodObject<Properties<ReorderChangeLogItemsInput>>;
|
|
489
|
-
declare function ReorderModuleOperationsInputSchema(): z.ZodObject<Properties<ReorderModuleOperationsInput>>;
|
|
490
|
-
declare function ReorderModulesInputSchema(): z.ZodObject<Properties<ReorderModulesInput>>;
|
|
491
|
-
declare function ReorderOperationErrorsInputSchema(): z.ZodObject<Properties<ReorderOperationErrorsInput>>;
|
|
492
|
-
declare function ReorderOperationExamplesInputSchema(): z.ZodObject<Properties<ReorderOperationExamplesInput>>;
|
|
493
|
-
declare function ReorderStateExamplesInputSchema(): z.ZodObject<Properties<ReorderStateExamplesInput>>;
|
|
494
|
-
declare function SetAuthorNameInputSchema(): z.ZodObject<Properties<SetAuthorNameInput>>;
|
|
495
|
-
declare function SetAuthorWebsiteInputSchema(): z.ZodObject<Properties<SetAuthorWebsiteInput>>;
|
|
496
|
-
declare function SetInitialStateInputSchema(): z.ZodObject<Properties<SetInitialStateInput>>;
|
|
497
|
-
declare function SetModelDescriptionInputSchema(): z.ZodObject<Properties<SetModelDescriptionInput>>;
|
|
498
|
-
declare function SetModelExtensionInputSchema(): z.ZodObject<Properties<SetModelExtensionInput>>;
|
|
499
|
-
declare function SetModelIdInputSchema(): z.ZodObject<Properties<SetModelIdInput>>;
|
|
500
|
-
declare function SetModelNameInputSchema(): z.ZodObject<Properties<SetModelNameInput>>;
|
|
501
|
-
declare function SetModuleDescriptionInputSchema(): z.ZodObject<Properties<SetModuleDescriptionInput>>;
|
|
502
|
-
declare function SetModuleNameInputSchema(): z.ZodObject<Properties<SetModuleNameInput>>;
|
|
503
|
-
declare function SetOperationDescriptionInputSchema(): z.ZodObject<Properties<SetOperationDescriptionInput>>;
|
|
504
|
-
declare function SetOperationErrorCodeInputSchema(): z.ZodObject<Properties<SetOperationErrorCodeInput>>;
|
|
505
|
-
declare function SetOperationErrorDescriptionInputSchema(): z.ZodObject<Properties<SetOperationErrorDescriptionInput>>;
|
|
506
|
-
declare function SetOperationErrorNameInputSchema(): z.ZodObject<Properties<SetOperationErrorNameInput>>;
|
|
507
|
-
declare function SetOperationErrorTemplateInputSchema(): z.ZodObject<Properties<SetOperationErrorTemplateInput>>;
|
|
508
|
-
declare function SetOperationNameInputSchema(): z.ZodObject<Properties<SetOperationNameInput>>;
|
|
509
|
-
declare function SetOperationScopeInputSchema(): z.ZodObject<Properties<SetOperationScopeInput>>;
|
|
510
|
-
declare function SetOperationReducerInputSchema(): z.ZodObject<Properties<SetOperationReducerInput>>;
|
|
511
|
-
declare function SetOperationSchemaInputSchema(): z.ZodObject<Properties<SetOperationSchemaInput>>;
|
|
512
|
-
declare function SetOperationTemplateInputSchema(): z.ZodObject<Properties<SetOperationTemplateInput>>;
|
|
513
|
-
declare function SetStateSchemaInputSchema(): z.ZodObject<Properties<SetStateSchemaInput>>;
|
|
514
|
-
declare function StateSchema(): z.ZodObject<Properties<State>>;
|
|
515
|
-
declare function ScopeStateSchema(): z.ZodObject<Properties<ScopeState>>;
|
|
516
|
-
declare function UpdateChangeLogItemInputSchema(): z.ZodObject<Properties<UpdateChangeLogItemInput>>;
|
|
517
|
-
declare function UpdateOperationExampleInputSchema(): z.ZodObject<Properties<UpdateOperationExampleInput>>;
|
|
518
|
-
declare function UpdateStateExampleInputSchema(): z.ZodObject<Properties<UpdateStateExampleInput>>;
|
|
519
|
-
declare const PowerhouseModuleSchema: z.ZodObject<{
|
|
520
|
-
id: z.ZodString;
|
|
521
|
-
name: z.ZodString;
|
|
522
|
-
documentTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
523
|
-
}, z.core.$strip>;
|
|
524
|
-
declare const PowerhouseModulesSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
525
|
-
id: z.ZodString;
|
|
526
|
-
name: z.ZodString;
|
|
527
|
-
documentTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
528
|
-
}, z.core.$strip>>>;
|
|
529
|
-
declare const PublisherSchema: z.ZodObject<{
|
|
530
|
-
name: z.ZodOptional<z.ZodString>;
|
|
531
|
-
url: z.ZodOptional<z.ZodString>;
|
|
532
|
-
}, z.core.$strip>;
|
|
533
|
-
declare const ConfigEntryTypeSchema: z.ZodUnion<readonly [z.ZodLiteral<"var">, z.ZodLiteral<"secret">]>;
|
|
534
|
-
declare const ConfigEntrySchema: z.ZodObject<{
|
|
535
|
-
name: z.ZodString;
|
|
536
|
-
type: z.ZodUnion<readonly [z.ZodLiteral<"var">, z.ZodLiteral<"secret">]>;
|
|
537
|
-
description: z.ZodOptional<z.ZodString>;
|
|
538
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
539
|
-
default: z.ZodOptional<z.ZodBoolean>;
|
|
540
|
-
}, z.core.$strip>;
|
|
541
|
-
declare const ManifestSchema: z.ZodObject<{
|
|
542
|
-
name: z.ZodString;
|
|
543
|
-
description: z.ZodOptional<z.ZodString>;
|
|
544
|
-
category: z.ZodOptional<z.ZodString>;
|
|
545
|
-
publisher: z.ZodOptional<z.ZodObject<{
|
|
546
|
-
name: z.ZodOptional<z.ZodString>;
|
|
547
|
-
url: z.ZodOptional<z.ZodString>;
|
|
548
|
-
}, z.core.$strip>>;
|
|
549
|
-
documentModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
550
|
-
id: z.ZodString;
|
|
551
|
-
name: z.ZodString;
|
|
552
|
-
documentTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
553
|
-
}, z.core.$strip>>>;
|
|
554
|
-
apps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
555
|
-
id: z.ZodString;
|
|
556
|
-
name: z.ZodString;
|
|
557
|
-
documentTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
558
|
-
}, z.core.$strip>>>;
|
|
559
|
-
editors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
560
|
-
id: z.ZodString;
|
|
561
|
-
name: z.ZodString;
|
|
562
|
-
documentTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
563
|
-
}, z.core.$strip>>>;
|
|
564
|
-
processors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
565
|
-
id: z.ZodString;
|
|
566
|
-
name: z.ZodString;
|
|
567
|
-
documentTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
568
|
-
}, z.core.$strip>>>;
|
|
569
|
-
subgraphs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
570
|
-
id: z.ZodString;
|
|
571
|
-
name: z.ZodString;
|
|
572
|
-
documentTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
573
|
-
}, z.core.$strip>>>;
|
|
574
|
-
config: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
575
|
-
name: z.ZodString;
|
|
576
|
-
type: z.ZodUnion<readonly [z.ZodLiteral<"var">, z.ZodLiteral<"secret">]>;
|
|
577
|
-
description: z.ZodOptional<z.ZodString>;
|
|
578
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
579
|
-
default: z.ZodOptional<z.ZodBoolean>;
|
|
580
|
-
}, z.core.$strip>>>;
|
|
581
|
-
}, z.core.$strip>;
|
|
582
|
-
//#endregion
|
|
583
|
-
//#region document-model/upgrades.d.ts
|
|
584
|
-
/** Upgrade reducer transforms a document from one version to another */
|
|
585
|
-
type UpgradeReducer<TFrom extends PHBaseState, TTo extends PHBaseState> = (document: PHDocument<TFrom>, action: Action) => PHDocument<TTo>;
|
|
586
|
-
type ModelVersion = number;
|
|
587
|
-
/** Metadata about a version transition */
|
|
588
|
-
type UpgradeTransition = {
|
|
589
|
-
toVersion: ModelVersion;
|
|
590
|
-
upgradeReducer: UpgradeReducer<any, any>;
|
|
591
|
-
description?: string;
|
|
592
|
-
};
|
|
593
|
-
type TupleMember<T extends readonly unknown[]> = T[number];
|
|
594
|
-
/** Manifest declaring all supported versions and upgrade paths */
|
|
595
|
-
type UpgradeManifest<TVersions extends readonly number[]> = {
|
|
596
|
-
documentType: string;
|
|
597
|
-
latestVersion: TupleMember<TVersions>;
|
|
598
|
-
supportedVersions: TVersions;
|
|
599
|
-
upgrades: { [V in Exclude<TupleMember<TVersions>, 1> as `v${V}`]: UpgradeTransition };
|
|
600
|
-
};
|
|
601
|
-
//#endregion
|
|
602
|
-
//#region document-model/types.d.ts
|
|
603
|
-
type State = {
|
|
604
|
-
examples: CodeExample[];
|
|
605
|
-
initialValue: string;
|
|
606
|
-
schema: string;
|
|
607
|
-
};
|
|
608
|
-
type ScopeState = {
|
|
609
|
-
global: State;
|
|
610
|
-
local: State;
|
|
611
|
-
};
|
|
612
|
-
type Author = {
|
|
613
|
-
name: string;
|
|
614
|
-
website: string | null;
|
|
615
|
-
};
|
|
616
|
-
type OperationErrorSpecification = {
|
|
617
|
-
code: string | null;
|
|
618
|
-
description: string | null;
|
|
619
|
-
id: ID;
|
|
620
|
-
name: string | null;
|
|
621
|
-
template: string | null;
|
|
622
|
-
};
|
|
623
|
-
type CodeExample = {
|
|
624
|
-
id: ID;
|
|
625
|
-
value: string;
|
|
626
|
-
};
|
|
627
|
-
type OperationSpecification = {
|
|
628
|
-
description: string | null;
|
|
629
|
-
errors: OperationErrorSpecification[];
|
|
630
|
-
examples: CodeExample[];
|
|
631
|
-
id: ID;
|
|
632
|
-
name: string | null;
|
|
633
|
-
reducer: string | null;
|
|
634
|
-
schema: string | null;
|
|
635
|
-
template: string | null;
|
|
636
|
-
scope: string;
|
|
637
|
-
};
|
|
638
|
-
type ModuleSpecification = {
|
|
639
|
-
description: string | null;
|
|
640
|
-
id: ID;
|
|
641
|
-
name: string;
|
|
642
|
-
operations: OperationSpecification[];
|
|
643
|
-
};
|
|
644
|
-
type DocumentSpecification = {
|
|
645
|
-
changeLog: string[];
|
|
646
|
-
modules: ModuleSpecification[];
|
|
647
|
-
state: ScopeState;
|
|
648
|
-
version: number;
|
|
649
|
-
};
|
|
650
|
-
type DocumentModelGlobalState = {
|
|
651
|
-
author: Author;
|
|
652
|
-
description: string;
|
|
653
|
-
extension: string;
|
|
654
|
-
id: string;
|
|
655
|
-
name: string;
|
|
656
|
-
specifications: DocumentSpecification[];
|
|
657
|
-
};
|
|
658
|
-
type DocumentModelLocalState = {};
|
|
659
|
-
type DocumentModelPHState = PHBaseState & {
|
|
660
|
-
global: DocumentModelGlobalState;
|
|
661
|
-
local: DocumentModelLocalState;
|
|
662
|
-
};
|
|
663
|
-
type DocumentModelDocument = PHDocument<DocumentModelPHState>;
|
|
664
|
-
type DocumentModelAction = DocumentModelHeaderAction | DocumentModelVersioningAction | DocumentModelModuleAction | DocumentModelOperationErrorAction | DocumentModelOperationExampleAction | DocumentModelOperationAction | DocumentModelStateAction;
|
|
665
|
-
type AddChangeLogItemInput = {
|
|
666
|
-
__typename?: "AddChangeLogItemInput";
|
|
667
|
-
content: Scalars["String"]["output"];
|
|
668
|
-
id: Scalars["ID"]["output"];
|
|
669
|
-
insertBefore: Maybe<Scalars["ID"]["output"]>;
|
|
670
|
-
};
|
|
671
|
-
type AddModuleInput = {
|
|
672
|
-
description?: InputMaybe<Scalars["String"]["input"]>;
|
|
673
|
-
id: Scalars["ID"]["input"];
|
|
674
|
-
name: Scalars["String"]["input"];
|
|
675
|
-
};
|
|
676
|
-
type AddOperationErrorInput = {
|
|
677
|
-
errorCode?: InputMaybe<Scalars["String"]["input"]>;
|
|
678
|
-
errorDescription?: InputMaybe<Scalars["String"]["input"]>;
|
|
679
|
-
errorName?: InputMaybe<Scalars["String"]["input"]>;
|
|
680
|
-
errorTemplate?: InputMaybe<Scalars["String"]["input"]>;
|
|
681
|
-
id: Scalars["ID"]["input"];
|
|
682
|
-
operationId: Scalars["ID"]["input"];
|
|
683
|
-
};
|
|
684
|
-
type AddOperationExampleInput = {
|
|
685
|
-
example: Scalars["String"]["input"];
|
|
686
|
-
id: Scalars["ID"]["input"];
|
|
687
|
-
operationId: Scalars["ID"]["input"];
|
|
688
|
-
};
|
|
689
|
-
type AddOperationInput = {
|
|
690
|
-
description?: InputMaybe<Scalars["String"]["input"]>;
|
|
691
|
-
id: Scalars["ID"]["input"];
|
|
692
|
-
moduleId: Scalars["ID"]["input"];
|
|
693
|
-
name: Scalars["String"]["input"];
|
|
694
|
-
reducer?: InputMaybe<Scalars["String"]["input"]>;
|
|
695
|
-
schema?: InputMaybe<Scalars["String"]["input"]>;
|
|
696
|
-
template?: InputMaybe<Scalars["String"]["input"]>;
|
|
697
|
-
scope?: InputMaybe<string>;
|
|
698
|
-
};
|
|
699
|
-
type AddStateExampleInput = {
|
|
700
|
-
scope: Scalars["String"]["input"];
|
|
701
|
-
example: Scalars["String"]["input"];
|
|
702
|
-
id: Scalars["ID"]["input"];
|
|
703
|
-
insertBefore?: InputMaybe<Scalars["ID"]["input"]>;
|
|
704
|
-
};
|
|
705
|
-
type DeleteChangeLogItemInput = {
|
|
706
|
-
__typename?: "DeleteChangeLogItemInput";
|
|
707
|
-
id: Scalars["ID"]["output"];
|
|
708
|
-
};
|
|
709
|
-
type DeleteModuleInput = {
|
|
710
|
-
id: Scalars["ID"]["input"];
|
|
711
|
-
};
|
|
712
|
-
type DeleteOperationErrorInput = {
|
|
713
|
-
id: Scalars["ID"]["input"];
|
|
714
|
-
};
|
|
715
|
-
type DeleteOperationExampleInput = {
|
|
716
|
-
id: Scalars["ID"]["input"];
|
|
717
|
-
};
|
|
718
|
-
type DeleteOperationInput = {
|
|
719
|
-
id: Scalars["ID"]["input"];
|
|
720
|
-
};
|
|
721
|
-
type DeleteStateExampleInput = {
|
|
722
|
-
scope: Scalars["String"]["input"];
|
|
723
|
-
id: Scalars["ID"]["input"];
|
|
724
|
-
};
|
|
725
|
-
type DocumentModelInput = AddChangeLogItemInput | AddModuleInput | AddOperationErrorInput | AddOperationExampleInput | AddOperationInput | AddStateExampleInput | DeleteChangeLogItemInput | DeleteModuleInput | DeleteOperationErrorInput | DeleteOperationExampleInput | DeleteOperationInput | DeleteStateExampleInput | MoveOperationInput | ReorderChangeLogItemsInput | ReorderModuleOperationsInput | ReorderModulesInput | ReorderOperationErrorsInput | ReorderOperationExamplesInput | ReorderStateExamplesInput | SetAuthorNameInput | SetAuthorWebsiteInput | SetInitialStateInput | SetModelDescriptionInput | SetModelExtensionInput | SetModelIdInput | SetModelNameInput | SetModuleDescriptionInput | SetModuleNameInput | SetOperationDescriptionInput | SetOperationErrorCodeInput | SetOperationErrorDescriptionInput | SetOperationErrorNameInput | SetOperationErrorTemplateInput | SetOperationNameInput | SetOperationReducerInput | SetOperationSchemaInput | SetOperationTemplateInput | SetStateSchemaInput | UpdateChangeLogItemInput | UpdateOperationExampleInput | UpdateStateExampleInput;
|
|
726
|
-
type MoveOperationInput = {
|
|
727
|
-
newModuleId: Scalars["ID"]["input"];
|
|
728
|
-
operationId: Scalars["ID"]["input"];
|
|
729
|
-
};
|
|
730
|
-
type Mutation = {
|
|
731
|
-
__typename?: "Mutation";
|
|
732
|
-
addChangeLogItemInput: DocumentModelGlobalState;
|
|
733
|
-
addModule: DocumentModelGlobalState;
|
|
734
|
-
addOperation: DocumentModelGlobalState;
|
|
735
|
-
addOperationError: DocumentModelGlobalState;
|
|
736
|
-
addOperationExample: DocumentModelGlobalState;
|
|
737
|
-
addStateExample: DocumentModelGlobalState;
|
|
738
|
-
deleteChangeLogItemInput: DocumentModelGlobalState;
|
|
739
|
-
deleteModule: DocumentModelGlobalState;
|
|
740
|
-
deleteOperation: DocumentModelGlobalState;
|
|
741
|
-
deleteOperationError: DocumentModelGlobalState;
|
|
742
|
-
deleteOperationExample: DocumentModelGlobalState;
|
|
743
|
-
deleteStateExample: DocumentModelGlobalState;
|
|
744
|
-
moveOperation: DocumentModelGlobalState;
|
|
745
|
-
releaseNewVersion: DocumentModelGlobalState;
|
|
746
|
-
reorderChangeLogItemsInput: DocumentModelGlobalState;
|
|
747
|
-
reorderModuleOperations: DocumentModelGlobalState;
|
|
748
|
-
reorderModules: DocumentModelGlobalState;
|
|
749
|
-
reorderOperationErrors: DocumentModelGlobalState;
|
|
750
|
-
reorderOperationExamples: DocumentModelGlobalState;
|
|
751
|
-
reorderStateExamples: DocumentModelGlobalState;
|
|
752
|
-
setAuthorName: DocumentModelGlobalState;
|
|
753
|
-
setAuthorWebsite: DocumentModelGlobalState;
|
|
754
|
-
setInitialState: DocumentModelGlobalState;
|
|
755
|
-
setModelDescription: DocumentModelGlobalState;
|
|
756
|
-
setModelExtension: DocumentModelGlobalState;
|
|
757
|
-
setModelId: DocumentModelGlobalState;
|
|
758
|
-
setModelName: DocumentModelGlobalState;
|
|
759
|
-
setModuleDescription: DocumentModelGlobalState;
|
|
760
|
-
setModuleName: DocumentModelGlobalState;
|
|
761
|
-
setOperationDescription: DocumentModelGlobalState;
|
|
762
|
-
setOperationErrorCode: DocumentModelGlobalState;
|
|
763
|
-
setOperationErrorDescription: DocumentModelGlobalState;
|
|
764
|
-
setOperationErrorName: DocumentModelGlobalState;
|
|
765
|
-
setOperationErrorTemplate: DocumentModelGlobalState;
|
|
766
|
-
setOperationName: DocumentModelGlobalState;
|
|
767
|
-
setOperationReducer: DocumentModelGlobalState;
|
|
768
|
-
setOperationSchema: DocumentModelGlobalState;
|
|
769
|
-
setOperationTemplate: DocumentModelGlobalState;
|
|
770
|
-
setStateSchema: DocumentModelGlobalState;
|
|
771
|
-
updateChangeLogItemInput: DocumentModelGlobalState;
|
|
772
|
-
updateOperationExample: DocumentModelGlobalState;
|
|
773
|
-
updateStateExample: DocumentModelGlobalState;
|
|
774
|
-
};
|
|
775
|
-
type MutationAddChangeLogItemInputArgs = {
|
|
776
|
-
input?: InputMaybe<AddChangeLogItemInput>;
|
|
777
|
-
};
|
|
778
|
-
type MutationAddModuleArgs = {
|
|
779
|
-
input: AddModuleInput;
|
|
780
|
-
};
|
|
781
|
-
type MutationAddOperationArgs = {
|
|
782
|
-
input: AddOperationInput;
|
|
783
|
-
};
|
|
784
|
-
type MutationAddOperationErrorArgs = {
|
|
785
|
-
input: AddOperationErrorInput;
|
|
786
|
-
};
|
|
787
|
-
type MutationAddOperationExampleArgs = {
|
|
788
|
-
input: AddOperationExampleInput;
|
|
789
|
-
};
|
|
790
|
-
type MutationAddStateExampleArgs = {
|
|
791
|
-
input: AddStateExampleInput;
|
|
792
|
-
};
|
|
793
|
-
type MutationDeleteChangeLogItemInputArgs = {
|
|
794
|
-
input?: InputMaybe<DeleteChangeLogItemInput>;
|
|
795
|
-
};
|
|
796
|
-
type MutationDeleteModuleArgs = {
|
|
797
|
-
input: DeleteModuleInput;
|
|
798
|
-
};
|
|
799
|
-
type MutationDeleteOperationArgs = {
|
|
800
|
-
input: DeleteOperationInput;
|
|
801
|
-
};
|
|
802
|
-
type MutationDeleteOperationErrorArgs = {
|
|
803
|
-
input: DeleteOperationErrorInput;
|
|
804
|
-
};
|
|
805
|
-
type MutationDeleteOperationExampleArgs = {
|
|
806
|
-
input: DeleteOperationExampleInput;
|
|
807
|
-
};
|
|
808
|
-
type MutationDeleteStateExampleArgs = {
|
|
809
|
-
input: DeleteStateExampleInput;
|
|
810
|
-
};
|
|
811
|
-
type MutationMoveOperationArgs = {
|
|
812
|
-
input: MoveOperationInput;
|
|
813
|
-
};
|
|
814
|
-
type MutationReorderChangeLogItemsInputArgs = {
|
|
815
|
-
input?: InputMaybe<ReorderChangeLogItemsInput>;
|
|
816
|
-
};
|
|
817
|
-
type MutationReorderModuleOperationsArgs = {
|
|
818
|
-
input: ReorderModuleOperationsInput;
|
|
819
|
-
};
|
|
820
|
-
type MutationReorderModulesArgs = {
|
|
821
|
-
input: ReorderModulesInput;
|
|
822
|
-
};
|
|
823
|
-
type MutationReorderOperationErrorsArgs = {
|
|
824
|
-
input: ReorderOperationErrorsInput;
|
|
825
|
-
};
|
|
826
|
-
type MutationReorderOperationExamplesArgs = {
|
|
827
|
-
input: ReorderOperationExamplesInput;
|
|
828
|
-
};
|
|
829
|
-
type MutationReorderStateExamplesArgs = {
|
|
830
|
-
input: ReorderStateExamplesInput;
|
|
831
|
-
};
|
|
832
|
-
type MutationSetAuthorNameArgs = {
|
|
833
|
-
input: SetAuthorNameInput;
|
|
834
|
-
};
|
|
835
|
-
type MutationSetAuthorWebsiteArgs = {
|
|
836
|
-
input: SetAuthorWebsiteInput;
|
|
837
|
-
};
|
|
838
|
-
type MutationSetInitialStateArgs = {
|
|
839
|
-
input: SetInitialStateInput;
|
|
840
|
-
};
|
|
841
|
-
type MutationSetModelDescriptionArgs = {
|
|
842
|
-
input: SetModelDescriptionInput;
|
|
843
|
-
};
|
|
844
|
-
type MutationSetModelExtensionArgs = {
|
|
845
|
-
input: SetModelExtensionInput;
|
|
846
|
-
};
|
|
847
|
-
type MutationSetModelIdArgs = {
|
|
848
|
-
input: SetModelIdInput;
|
|
849
|
-
};
|
|
850
|
-
type MutationSetModelNameArgs = {
|
|
851
|
-
input: SetModelNameInput;
|
|
852
|
-
};
|
|
853
|
-
type MutationSetModuleDescriptionArgs = {
|
|
854
|
-
input: SetModuleDescriptionInput;
|
|
855
|
-
};
|
|
856
|
-
type MutationSetModuleNameArgs = {
|
|
857
|
-
input: SetModuleNameInput;
|
|
858
|
-
};
|
|
859
|
-
type MutationSetOperationDescriptionArgs = {
|
|
860
|
-
input: SetOperationDescriptionInput;
|
|
861
|
-
};
|
|
862
|
-
type MutationSetOperationErrorCodeArgs = {
|
|
863
|
-
input: SetOperationErrorCodeInput;
|
|
864
|
-
};
|
|
865
|
-
type MutationSetOperationErrorDescriptionArgs = {
|
|
866
|
-
input: SetOperationErrorDescriptionInput;
|
|
867
|
-
};
|
|
868
|
-
type MutationSetOperationErrorNameArgs = {
|
|
869
|
-
input: SetOperationErrorNameInput;
|
|
870
|
-
};
|
|
871
|
-
type MutationSetOperationErrorTemplateArgs = {
|
|
872
|
-
input: SetOperationErrorTemplateInput;
|
|
873
|
-
};
|
|
874
|
-
type MutationSetOperationNameArgs = {
|
|
875
|
-
input: SetOperationNameInput;
|
|
876
|
-
};
|
|
877
|
-
type MutationSetOperationReducerArgs = {
|
|
878
|
-
input: SetOperationReducerInput;
|
|
879
|
-
};
|
|
880
|
-
type MutationSetOperationSchemaArgs = {
|
|
881
|
-
input: SetOperationSchemaInput;
|
|
882
|
-
};
|
|
883
|
-
type MutationSetOperationTemplateArgs = {
|
|
884
|
-
input: SetOperationTemplateInput;
|
|
885
|
-
};
|
|
886
|
-
type MutationSetStateSchemaArgs = {
|
|
887
|
-
input: SetStateSchemaInput;
|
|
888
|
-
};
|
|
889
|
-
type MutationUpdateChangeLogItemInputArgs = {
|
|
890
|
-
input?: InputMaybe<UpdateChangeLogItemInput>;
|
|
891
|
-
};
|
|
892
|
-
type MutationUpdateOperationExampleArgs = {
|
|
893
|
-
input: UpdateOperationExampleInput;
|
|
894
|
-
};
|
|
895
|
-
type MutationUpdateStateExampleArgs = {
|
|
896
|
-
input: UpdateStateExampleInput;
|
|
897
|
-
};
|
|
898
|
-
type ReorderChangeLogItemsInput = {
|
|
899
|
-
__typename?: "ReorderChangeLogItemsInput";
|
|
900
|
-
order: Array<Scalars["ID"]["output"]>;
|
|
901
|
-
};
|
|
902
|
-
type ReorderModuleOperationsInput = {
|
|
903
|
-
moduleId: Scalars["ID"]["input"];
|
|
904
|
-
order: Array<Scalars["ID"]["input"]>;
|
|
905
|
-
};
|
|
906
|
-
type ReorderModulesInput = {
|
|
907
|
-
order: Array<Scalars["ID"]["input"]>;
|
|
908
|
-
};
|
|
909
|
-
type ReorderOperationErrorsInput = {
|
|
910
|
-
operationId: Scalars["ID"]["input"];
|
|
911
|
-
order: Array<Scalars["ID"]["input"]>;
|
|
912
|
-
};
|
|
913
|
-
type ReorderOperationExamplesInput = {
|
|
914
|
-
operationId: Scalars["ID"]["input"];
|
|
915
|
-
order: Array<Scalars["ID"]["input"]>;
|
|
916
|
-
};
|
|
917
|
-
type ReorderStateExamplesInput = {
|
|
918
|
-
scope: Scalars["String"]["input"];
|
|
919
|
-
order: Array<Scalars["ID"]["input"]>;
|
|
920
|
-
};
|
|
921
|
-
type SetAuthorNameInput = {
|
|
922
|
-
authorName: Scalars["String"]["input"];
|
|
923
|
-
};
|
|
924
|
-
type SetAuthorWebsiteInput = {
|
|
925
|
-
authorWebsite: Scalars["String"]["input"];
|
|
926
|
-
};
|
|
927
|
-
type SetInitialStateInput = {
|
|
928
|
-
scope: Scalars["String"]["input"];
|
|
929
|
-
initialValue: Scalars["String"]["input"];
|
|
930
|
-
};
|
|
931
|
-
type SetModelDescriptionInput = {
|
|
932
|
-
description: Scalars["String"]["input"];
|
|
933
|
-
};
|
|
934
|
-
type SetModelExtensionInput = {
|
|
935
|
-
extension: Scalars["String"]["input"];
|
|
936
|
-
};
|
|
937
|
-
type SetModelIdInput = {
|
|
938
|
-
id: Scalars["String"]["input"];
|
|
939
|
-
};
|
|
940
|
-
type SetModelNameInput = {
|
|
941
|
-
name: Scalars["String"]["input"];
|
|
942
|
-
};
|
|
943
|
-
type SetModuleDescriptionInput = {
|
|
944
|
-
description?: InputMaybe<Scalars["String"]["input"]>;
|
|
945
|
-
id: Scalars["ID"]["input"];
|
|
946
|
-
};
|
|
947
|
-
type SetModuleNameInput = {
|
|
948
|
-
id: Scalars["ID"]["input"];
|
|
949
|
-
name?: InputMaybe<Scalars["String"]["input"]>;
|
|
950
|
-
};
|
|
951
|
-
type SetOperationDescriptionInput = {
|
|
952
|
-
description?: InputMaybe<Scalars["String"]["input"]>;
|
|
953
|
-
id: Scalars["ID"]["input"];
|
|
954
|
-
};
|
|
955
|
-
type SetOperationErrorCodeInput = {
|
|
956
|
-
errorCode?: InputMaybe<Scalars["String"]["input"]>;
|
|
957
|
-
id: Scalars["ID"]["input"];
|
|
958
|
-
};
|
|
959
|
-
type SetOperationErrorDescriptionInput = {
|
|
960
|
-
errorDescription?: InputMaybe<Scalars["String"]["input"]>;
|
|
961
|
-
id: Scalars["ID"]["input"];
|
|
962
|
-
};
|
|
963
|
-
type SetOperationErrorNameInput = {
|
|
964
|
-
errorName?: InputMaybe<Scalars["String"]["input"]>;
|
|
965
|
-
id: Scalars["ID"]["input"];
|
|
966
|
-
};
|
|
967
|
-
type SetOperationErrorTemplateInput = {
|
|
968
|
-
errorTemplate?: InputMaybe<Scalars["String"]["input"]>;
|
|
969
|
-
id: Scalars["ID"]["input"];
|
|
970
|
-
};
|
|
971
|
-
type SetOperationNameInput = {
|
|
972
|
-
id: Scalars["ID"]["input"];
|
|
973
|
-
name?: InputMaybe<Scalars["String"]["input"]>;
|
|
974
|
-
};
|
|
975
|
-
type SetOperationScopeInput = {
|
|
976
|
-
id: Scalars["ID"]["input"];
|
|
977
|
-
scope?: InputMaybe<string>;
|
|
978
|
-
};
|
|
979
|
-
type SetOperationReducerInput = {
|
|
980
|
-
id: Scalars["ID"]["input"];
|
|
981
|
-
reducer?: InputMaybe<Scalars["String"]["input"]>;
|
|
982
|
-
};
|
|
983
|
-
type SetOperationSchemaInput = {
|
|
984
|
-
id: Scalars["ID"]["input"];
|
|
985
|
-
schema?: InputMaybe<Scalars["String"]["input"]>;
|
|
986
|
-
};
|
|
987
|
-
type SetOperationTemplateInput = {
|
|
988
|
-
id: Scalars["ID"]["input"];
|
|
989
|
-
template?: InputMaybe<Scalars["String"]["input"]>;
|
|
990
|
-
};
|
|
991
|
-
type SetStateSchemaInput = {
|
|
992
|
-
scope: Scalars["String"]["input"];
|
|
993
|
-
schema: Scalars["String"]["input"];
|
|
994
|
-
};
|
|
995
|
-
type UpdateChangeLogItemInput = {
|
|
996
|
-
__typename?: "UpdateChangeLogItemInput";
|
|
997
|
-
id: Scalars["ID"]["output"];
|
|
998
|
-
newContent: Scalars["String"]["output"];
|
|
999
|
-
};
|
|
1000
|
-
type UpdateOperationExampleInput = {
|
|
1001
|
-
example: Scalars["String"]["input"];
|
|
1002
|
-
id: Scalars["ID"]["input"];
|
|
1003
|
-
};
|
|
1004
|
-
type UpdateStateExampleInput = {
|
|
1005
|
-
scope: Scalars["String"]["input"];
|
|
1006
|
-
id: Scalars["ID"]["input"];
|
|
1007
|
-
newExample: Scalars["String"]["input"];
|
|
1008
|
-
};
|
|
1009
|
-
type SetModelNameAction = Action & {
|
|
1010
|
-
type: "SET_MODEL_NAME";
|
|
1011
|
-
input: SetModelNameInput;
|
|
1012
|
-
};
|
|
1013
|
-
type SetModelIdAction = Action & {
|
|
1014
|
-
type: "SET_MODEL_ID";
|
|
1015
|
-
input: SetModelIdInput;
|
|
1016
|
-
};
|
|
1017
|
-
type SetModelExtensionAction = Action & {
|
|
1018
|
-
type: "SET_MODEL_EXTENSION";
|
|
1019
|
-
input: SetModelExtensionInput;
|
|
1020
|
-
};
|
|
1021
|
-
type SetModelDescriptionAction = Action & {
|
|
1022
|
-
type: "SET_MODEL_DESCRIPTION";
|
|
1023
|
-
input: SetModelDescriptionInput;
|
|
1024
|
-
};
|
|
1025
|
-
type SetAuthorNameAction = Action & {
|
|
1026
|
-
type: "SET_AUTHOR_NAME";
|
|
1027
|
-
input: SetAuthorNameInput;
|
|
1028
|
-
};
|
|
1029
|
-
type SetAuthorWebsiteAction = Action & {
|
|
1030
|
-
type: "SET_AUTHOR_WEBSITE";
|
|
1031
|
-
input: SetAuthorWebsiteInput;
|
|
1032
|
-
};
|
|
1033
|
-
type DocumentModelHeaderAction = SetModelNameAction | SetModelIdAction | SetModelExtensionAction | SetModelDescriptionAction | SetAuthorNameAction | SetAuthorWebsiteAction;
|
|
1034
|
-
type AddModuleAction = Action & {
|
|
1035
|
-
type: "ADD_MODULE";
|
|
1036
|
-
input: AddModuleInput;
|
|
1037
|
-
};
|
|
1038
|
-
type SetModuleNameAction = Action & {
|
|
1039
|
-
type: "SET_MODULE_NAME";
|
|
1040
|
-
input: SetModuleNameInput;
|
|
1041
|
-
};
|
|
1042
|
-
type SetModuleDescriptionAction = Action & {
|
|
1043
|
-
type: "SET_MODULE_DESCRIPTION";
|
|
1044
|
-
input: SetModuleDescriptionInput;
|
|
1045
|
-
};
|
|
1046
|
-
type DeleteModuleAction = Action & {
|
|
1047
|
-
type: "DELETE_MODULE";
|
|
1048
|
-
input: DeleteModuleInput;
|
|
1049
|
-
};
|
|
1050
|
-
type ReorderModulesAction = Action & {
|
|
1051
|
-
type: "REORDER_MODULES";
|
|
1052
|
-
input: ReorderModulesInput;
|
|
1053
|
-
};
|
|
1054
|
-
type DocumentModelModuleAction = AddModuleAction | SetModuleNameAction | SetModuleDescriptionAction | DeleteModuleAction | ReorderModulesAction;
|
|
1055
|
-
type AddOperationAction = Action & {
|
|
1056
|
-
type: "ADD_OPERATION";
|
|
1057
|
-
input: AddOperationInput;
|
|
1058
|
-
};
|
|
1059
|
-
type SetOperationNameAction = Action & {
|
|
1060
|
-
type: "SET_OPERATION_NAME";
|
|
1061
|
-
input: SetOperationNameInput;
|
|
1062
|
-
};
|
|
1063
|
-
type SetOperationScopeAction = Action & {
|
|
1064
|
-
type: "SET_OPERATION_SCOPE";
|
|
1065
|
-
input: SetOperationScopeInput;
|
|
1066
|
-
};
|
|
1067
|
-
type SetOperationSchemaAction = Action & {
|
|
1068
|
-
type: "SET_OPERATION_SCHEMA";
|
|
1069
|
-
input: SetOperationSchemaInput;
|
|
1070
|
-
};
|
|
1071
|
-
type SetOperationDescriptionAction = Action & {
|
|
1072
|
-
type: "SET_OPERATION_DESCRIPTION";
|
|
1073
|
-
input: SetOperationDescriptionInput;
|
|
1074
|
-
};
|
|
1075
|
-
type SetOperationTemplateAction = Action & {
|
|
1076
|
-
type: "SET_OPERATION_TEMPLATE";
|
|
1077
|
-
input: SetOperationTemplateInput;
|
|
1078
|
-
};
|
|
1079
|
-
type SetOperationReducerAction = Action & {
|
|
1080
|
-
type: "SET_OPERATION_REDUCER";
|
|
1081
|
-
input: SetOperationReducerInput;
|
|
1082
|
-
};
|
|
1083
|
-
type MoveOperationAction = Action & {
|
|
1084
|
-
type: "MOVE_OPERATION";
|
|
1085
|
-
input: MoveOperationInput;
|
|
1086
|
-
};
|
|
1087
|
-
type DeleteOperationAction = Action & {
|
|
1088
|
-
type: "DELETE_OPERATION";
|
|
1089
|
-
input: DeleteOperationInput;
|
|
1090
|
-
};
|
|
1091
|
-
type ReorderModuleOperationsAction = Action & {
|
|
1092
|
-
type: "REORDER_MODULE_OPERATIONS";
|
|
1093
|
-
input: ReorderModuleOperationsInput;
|
|
1094
|
-
};
|
|
1095
|
-
type DocumentModelOperationAction = AddOperationAction | SetOperationNameAction | SetOperationScopeAction | SetOperationSchemaAction | SetOperationDescriptionAction | SetOperationTemplateAction | SetOperationReducerAction | MoveOperationAction | DeleteOperationAction | ReorderModuleOperationsAction;
|
|
1096
|
-
type AddOperationErrorAction = Action & {
|
|
1097
|
-
type: "ADD_OPERATION_ERROR";
|
|
1098
|
-
input: AddOperationErrorInput;
|
|
1099
|
-
};
|
|
1100
|
-
type SetOperationErrorCodeAction = Action & {
|
|
1101
|
-
type: "SET_OPERATION_ERROR_CODE";
|
|
1102
|
-
input: SetOperationErrorCodeInput;
|
|
1103
|
-
};
|
|
1104
|
-
type SetOperationErrorNameAction = Action & {
|
|
1105
|
-
type: "SET_OPERATION_ERROR_NAME";
|
|
1106
|
-
input: SetOperationErrorNameInput;
|
|
1107
|
-
};
|
|
1108
|
-
type SetOperationErrorDescriptionAction = Action & {
|
|
1109
|
-
type: "SET_OPERATION_ERROR_DESCRIPTION";
|
|
1110
|
-
input: SetOperationErrorDescriptionInput;
|
|
1111
|
-
};
|
|
1112
|
-
type SetOperationErrorTemplateAction = Action & {
|
|
1113
|
-
type: "SET_OPERATION_ERROR_TEMPLATE";
|
|
1114
|
-
input: SetOperationErrorTemplateInput;
|
|
1115
|
-
};
|
|
1116
|
-
type DeleteOperationErrorAction = Action & {
|
|
1117
|
-
type: "DELETE_OPERATION_ERROR";
|
|
1118
|
-
input: DeleteOperationErrorInput;
|
|
1119
|
-
};
|
|
1120
|
-
type ReorderOperationErrorsAction = Action & {
|
|
1121
|
-
type: "REORDER_OPERATION_ERRORS";
|
|
1122
|
-
input: ReorderOperationErrorsInput;
|
|
1123
|
-
};
|
|
1124
|
-
type DocumentModelOperationErrorAction = AddOperationErrorAction | SetOperationErrorCodeAction | SetOperationErrorNameAction | SetOperationErrorDescriptionAction | SetOperationErrorTemplateAction | DeleteOperationErrorAction | ReorderOperationErrorsAction;
|
|
1125
|
-
type AddOperationExampleAction = Action & {
|
|
1126
|
-
type: "ADD_OPERATION_EXAMPLE";
|
|
1127
|
-
input: AddOperationExampleInput;
|
|
1128
|
-
};
|
|
1129
|
-
type UpdateOperationExampleAction = Action & {
|
|
1130
|
-
type: "UPDATE_OPERATION_EXAMPLE";
|
|
1131
|
-
input: UpdateOperationExampleInput;
|
|
1132
|
-
};
|
|
1133
|
-
type DeleteOperationExampleAction = Action & {
|
|
1134
|
-
type: "DELETE_OPERATION_EXAMPLE";
|
|
1135
|
-
input: DeleteOperationExampleInput;
|
|
1136
|
-
};
|
|
1137
|
-
type ReorderOperationExamplesAction = Action & {
|
|
1138
|
-
type: "REORDER_OPERATION_EXAMPLES";
|
|
1139
|
-
input: ReorderOperationExamplesInput;
|
|
1140
|
-
};
|
|
1141
|
-
type DocumentModelOperationExampleAction = AddOperationExampleAction | UpdateOperationExampleAction | DeleteOperationExampleAction | ReorderOperationExamplesAction;
|
|
1142
|
-
type SetStateSchemaAction = Action & {
|
|
1143
|
-
type: "SET_STATE_SCHEMA";
|
|
1144
|
-
input: SetStateSchemaInput;
|
|
1145
|
-
};
|
|
1146
|
-
type SetInitialStateAction = Action & {
|
|
1147
|
-
type: "SET_INITIAL_STATE";
|
|
1148
|
-
input: SetInitialStateInput;
|
|
1149
|
-
};
|
|
1150
|
-
type AddStateExampleAction = Action & {
|
|
1151
|
-
type: "ADD_STATE_EXAMPLE";
|
|
1152
|
-
input: AddStateExampleInput;
|
|
1153
|
-
};
|
|
1154
|
-
type UpdateStateExampleAction = Action & {
|
|
1155
|
-
type: "UPDATE_STATE_EXAMPLE";
|
|
1156
|
-
input: UpdateStateExampleInput;
|
|
1157
|
-
};
|
|
1158
|
-
type DeleteStateExampleAction = Action & {
|
|
1159
|
-
type: "DELETE_STATE_EXAMPLE";
|
|
1160
|
-
input: DeleteStateExampleInput;
|
|
1161
|
-
};
|
|
1162
|
-
type ReorderStateExamplesAction = Action & {
|
|
1163
|
-
type: "REORDER_STATE_EXAMPLES";
|
|
1164
|
-
input: ReorderStateExamplesInput;
|
|
1165
|
-
};
|
|
1166
|
-
type DocumentModelStateAction = SetStateSchemaAction | SetInitialStateAction | AddStateExampleAction | UpdateStateExampleAction | DeleteStateExampleAction | ReorderStateExamplesAction;
|
|
1167
|
-
type AddChangeLogItemAction = Action & {
|
|
1168
|
-
type: "ADD_CHANGE_LOG_ITEM";
|
|
1169
|
-
input: AddChangeLogItemInput;
|
|
1170
|
-
};
|
|
1171
|
-
type UpdateChangeLogItemAction = Action & {
|
|
1172
|
-
type: "UPDATE_CHANGE_LOG_ITEM";
|
|
1173
|
-
input: UpdateChangeLogItemInput;
|
|
1174
|
-
};
|
|
1175
|
-
type DeleteChangeLogItemAction = Action & {
|
|
1176
|
-
type: "DELETE_CHANGE_LOG_ITEM";
|
|
1177
|
-
input: DeleteChangeLogItemInput;
|
|
1178
|
-
};
|
|
1179
|
-
type ReorderChangeLogItemsAction = Action & {
|
|
1180
|
-
type: "REORDER_CHANGE_LOG_ITEMS";
|
|
1181
|
-
input: ReorderChangeLogItemsInput;
|
|
1182
|
-
};
|
|
1183
|
-
type ReleaseNewVersionAction = Action & {
|
|
1184
|
-
type: "RELEASE_NEW_VERSION";
|
|
1185
|
-
input: {};
|
|
1186
|
-
};
|
|
1187
|
-
type DocumentModelVersioningAction = AddChangeLogItemAction | UpdateChangeLogItemAction | DeleteChangeLogItemAction | ReorderChangeLogItemsAction | ReleaseNewVersionAction;
|
|
1188
|
-
interface DocumentModelHeaderOperations {
|
|
1189
|
-
setModelNameOperation: (state: DocumentModelGlobalState, action: SetModelNameAction) => void;
|
|
1190
|
-
setModelIdOperation: (state: DocumentModelGlobalState, action: SetModelIdAction) => void;
|
|
1191
|
-
setModelExtensionOperation: (state: DocumentModelGlobalState, action: SetModelExtensionAction) => void;
|
|
1192
|
-
setModelDescriptionOperation: (state: DocumentModelGlobalState, action: SetModelDescriptionAction) => void;
|
|
1193
|
-
setAuthorNameOperation: (state: DocumentModelGlobalState, action: SetAuthorNameAction) => void;
|
|
1194
|
-
setAuthorWebsiteOperation: (state: DocumentModelGlobalState, action: SetAuthorWebsiteAction) => void;
|
|
1195
|
-
}
|
|
1196
|
-
interface DocumentModelModuleOperations {
|
|
1197
|
-
addModuleOperation: (state: DocumentModelGlobalState, action: AddModuleAction) => void;
|
|
1198
|
-
setModuleNameOperation: (state: DocumentModelGlobalState, action: SetModuleNameAction) => void;
|
|
1199
|
-
setModuleDescriptionOperation: (state: DocumentModelGlobalState, action: SetModuleDescriptionAction) => void;
|
|
1200
|
-
deleteModuleOperation: (state: DocumentModelGlobalState, action: DeleteModuleAction) => void;
|
|
1201
|
-
reorderModulesOperation: (state: DocumentModelGlobalState, action: ReorderModulesAction) => void;
|
|
1202
|
-
}
|
|
1203
|
-
type DocumentModelOperationOperations = {
|
|
1204
|
-
addOperationOperation: (state: DocumentModelGlobalState, action: AddOperationAction) => void;
|
|
1205
|
-
setOperationNameOperation: (state: DocumentModelGlobalState, action: SetOperationNameAction) => void;
|
|
1206
|
-
setOperationScopeOperation: (state: DocumentModelGlobalState, action: SetOperationScopeAction) => void;
|
|
1207
|
-
setOperationSchemaOperation: (state: DocumentModelGlobalState, action: SetOperationSchemaAction) => void;
|
|
1208
|
-
setOperationDescriptionOperation: (state: DocumentModelGlobalState, action: SetOperationDescriptionAction) => void;
|
|
1209
|
-
setOperationTemplateOperation: (state: DocumentModelGlobalState, action: SetOperationTemplateAction) => void;
|
|
1210
|
-
setOperationReducerOperation: (state: DocumentModelGlobalState, action: SetOperationReducerAction) => void;
|
|
1211
|
-
moveOperationOperation: (state: DocumentModelGlobalState, action: MoveOperationAction) => void;
|
|
1212
|
-
deleteOperationOperation: (state: DocumentModelGlobalState, action: DeleteOperationAction) => void;
|
|
1213
|
-
reorderModuleOperationsOperation: (state: DocumentModelGlobalState, action: ReorderModuleOperationsAction) => void;
|
|
1214
|
-
};
|
|
1215
|
-
interface DocumentModelOperationErrorOperations {
|
|
1216
|
-
addOperationErrorOperation: (state: DocumentModelGlobalState, action: AddOperationErrorAction) => void;
|
|
1217
|
-
setOperationErrorCodeOperation: (state: DocumentModelGlobalState, action: SetOperationErrorCodeAction) => void;
|
|
1218
|
-
setOperationErrorNameOperation: (state: DocumentModelGlobalState, action: SetOperationErrorNameAction) => void;
|
|
1219
|
-
setOperationErrorDescriptionOperation: (state: DocumentModelGlobalState, action: SetOperationErrorDescriptionAction) => void;
|
|
1220
|
-
setOperationErrorTemplateOperation: (state: DocumentModelGlobalState, action: SetOperationErrorTemplateAction) => void;
|
|
1221
|
-
deleteOperationErrorOperation: (state: DocumentModelGlobalState, action: DeleteOperationErrorAction) => void;
|
|
1222
|
-
reorderOperationErrorsOperation: (state: DocumentModelGlobalState, action: ReorderOperationErrorsAction) => void;
|
|
1223
|
-
}
|
|
1224
|
-
interface DocumentModelOperationExampleOperations {
|
|
1225
|
-
addOperationExampleOperation: (state: DocumentModelGlobalState, action: AddOperationExampleAction) => void;
|
|
1226
|
-
updateOperationExampleOperation: (state: DocumentModelGlobalState, action: UpdateOperationExampleAction) => void;
|
|
1227
|
-
deleteOperationExampleOperation: (state: DocumentModelGlobalState, action: DeleteOperationExampleAction) => void;
|
|
1228
|
-
reorderOperationExamplesOperation: (state: DocumentModelGlobalState, action: ReorderOperationExamplesAction) => void;
|
|
1229
|
-
}
|
|
1230
|
-
interface DocumentModelStateOperations {
|
|
1231
|
-
setStateSchemaOperation: (state: DocumentModelGlobalState, action: SetStateSchemaAction) => void;
|
|
1232
|
-
setInitialStateOperation: (state: DocumentModelGlobalState, action: SetInitialStateAction) => void;
|
|
1233
|
-
addStateExampleOperation: (state: DocumentModelGlobalState, action: AddStateExampleAction) => void;
|
|
1234
|
-
updateStateExampleOperation: (state: DocumentModelGlobalState, action: UpdateStateExampleAction) => void;
|
|
1235
|
-
deleteStateExampleOperation: (state: DocumentModelGlobalState, action: DeleteStateExampleAction) => void;
|
|
1236
|
-
reorderStateExamplesOperation: (state: DocumentModelGlobalState, action: ReorderStateExamplesAction) => void;
|
|
1237
|
-
}
|
|
1238
|
-
interface DocumentModelVersioningOperations {
|
|
1239
|
-
addChangeLogItemOperation: (state: DocumentModelGlobalState, action: AddChangeLogItemAction) => void;
|
|
1240
|
-
updateChangeLogItemOperation: (state: DocumentModelGlobalState, action: UpdateChangeLogItemAction) => void;
|
|
1241
|
-
deleteChangeLogItemOperation: (state: DocumentModelGlobalState, action: DeleteChangeLogItemAction) => void;
|
|
1242
|
-
reorderChangeLogItemsOperation: (state: DocumentModelGlobalState, action: ReorderChangeLogItemsAction) => void;
|
|
1243
|
-
releaseNewVersionOperation: (state: DocumentModelGlobalState, action: ReleaseNewVersionAction) => void;
|
|
1244
|
-
}
|
|
1245
|
-
type Maybe<T> = T | null;
|
|
1246
|
-
type InputMaybe<T> = T | null | undefined;
|
|
1247
|
-
type Exact<T extends Record<string, unknown>> = { [K in keyof T]: T[K] };
|
|
1248
|
-
type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
|
|
1249
|
-
type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
|
|
1250
|
-
type MakeEmpty<T extends Record<string, unknown>, K extends keyof T> = { [_ in K]?: never };
|
|
1251
|
-
type Incremental<T> = T | { [P in keyof T]?: P extends " $fragmentName" | "__typename" ? T[P] : never };
|
|
1252
|
-
/** All built-in and custom scalars, mapped to their actual values */
|
|
1253
|
-
type Scalars = {
|
|
1254
|
-
ID: {
|
|
1255
|
-
input: string;
|
|
1256
|
-
output: string;
|
|
1257
|
-
};
|
|
1258
|
-
String: {
|
|
1259
|
-
input: string;
|
|
1260
|
-
output: string;
|
|
1261
|
-
};
|
|
1262
|
-
Boolean: {
|
|
1263
|
-
input: boolean;
|
|
1264
|
-
output: boolean;
|
|
1265
|
-
};
|
|
1266
|
-
Int: {
|
|
1267
|
-
input: number;
|
|
1268
|
-
output: number;
|
|
1269
|
-
};
|
|
1270
|
-
Float: {
|
|
1271
|
-
input: number;
|
|
1272
|
-
output: number;
|
|
1273
|
-
};
|
|
1274
|
-
Address: {
|
|
1275
|
-
input: `${string}:0x${string}`;
|
|
1276
|
-
output: `${string}:0x${string}`;
|
|
1277
|
-
};
|
|
1278
|
-
Attachment: {
|
|
1279
|
-
input: string;
|
|
1280
|
-
output: string;
|
|
1281
|
-
};
|
|
1282
|
-
DateTime: {
|
|
1283
|
-
input: string;
|
|
1284
|
-
output: string;
|
|
1285
|
-
};
|
|
1286
|
-
Unknown: {
|
|
1287
|
-
input: unknown;
|
|
1288
|
-
output: unknown;
|
|
1289
|
-
};
|
|
1290
|
-
};
|
|
1291
|
-
type ID = string;
|
|
1292
|
-
type OperationsByScope = Partial<Record<string, Operation[]>>;
|
|
1293
|
-
type SkipHeaderOperationIndex = Partial<Pick<OperationIndex, "index">> & Pick<OperationIndex, "skip">;
|
|
1294
|
-
type UndoRedoAction = SchemaRedoAction | SchemaUndoAction;
|
|
1295
|
-
type DocumentFile = {
|
|
1296
|
-
__typename?: "DocumentFile";
|
|
1297
|
-
data: Scalars["String"]["output"];
|
|
1298
|
-
extension: Maybe<Scalars["String"]["output"]>;
|
|
1299
|
-
fileName: Maybe<Scalars["String"]["output"]>;
|
|
1300
|
-
mimeType: Scalars["String"]["output"];
|
|
1301
|
-
};
|
|
1302
|
-
type IAction = {
|
|
1303
|
-
type: Scalars["String"]["output"];
|
|
1304
|
-
};
|
|
1305
|
-
type IDocument = {
|
|
1306
|
-
created: Scalars["DateTime"]["output"];
|
|
1307
|
-
documentType: Scalars["String"]["output"];
|
|
1308
|
-
lastModified: Scalars["DateTime"]["output"];
|
|
1309
|
-
name: Scalars["String"]["output"];
|
|
1310
|
-
operations: Array<IOperation>;
|
|
1311
|
-
revision: Scalars["Int"]["output"];
|
|
1312
|
-
};
|
|
1313
|
-
type IOperation = {
|
|
1314
|
-
hash: Scalars["String"]["output"];
|
|
1315
|
-
index: Scalars["Int"]["output"];
|
|
1316
|
-
timestampUtcMs: Scalars["DateTime"]["output"];
|
|
1317
|
-
type: Scalars["String"]["output"];
|
|
1318
|
-
};
|
|
1319
|
-
type Load_State = "LOAD_STATE";
|
|
1320
|
-
type SchemaLoadStateAction = {
|
|
1321
|
-
id: Scalars["String"]["output"];
|
|
1322
|
-
timestampUtcMs: Scalars["DateTime"]["output"];
|
|
1323
|
-
input: LoadStateActionInput;
|
|
1324
|
-
type: Load_State;
|
|
1325
|
-
scope: string;
|
|
1326
|
-
};
|
|
1327
|
-
type LoadStateActionInput = {
|
|
1328
|
-
operations: Scalars["Int"]["input"];
|
|
1329
|
-
state: LoadStateActionStateInput;
|
|
1330
|
-
};
|
|
1331
|
-
type LoadStateActionStateInput = {
|
|
1332
|
-
data?: InputMaybe<Scalars["Unknown"]["input"]>;
|
|
1333
|
-
name: Scalars["String"]["input"];
|
|
1334
|
-
};
|
|
1335
|
-
type MutationLoadStateArgs = {
|
|
1336
|
-
input: SchemaLoadStateAction;
|
|
1337
|
-
};
|
|
1338
|
-
type MutationPruneArgs = {
|
|
1339
|
-
input: SchemaPruneAction;
|
|
1340
|
-
};
|
|
1341
|
-
type MutationRedoArgs = {
|
|
1342
|
-
input: SchemaRedoAction;
|
|
1343
|
-
};
|
|
1344
|
-
type MutationSetNameArgs = {
|
|
1345
|
-
input: SchemaSetNameAction;
|
|
1346
|
-
};
|
|
1347
|
-
type MutationUndoArgs = {
|
|
1348
|
-
input: SchemaUndoAction;
|
|
1349
|
-
};
|
|
1350
|
-
type Prune = "PRUNE";
|
|
1351
|
-
type SchemaPruneAction = {
|
|
1352
|
-
id: Scalars["String"]["output"];
|
|
1353
|
-
timestampUtcMs: Scalars["DateTime"]["output"];
|
|
1354
|
-
input: PruneActionInput;
|
|
1355
|
-
type: Prune;
|
|
1356
|
-
scope: string;
|
|
1357
|
-
};
|
|
1358
|
-
type PruneActionInput = {
|
|
1359
|
-
end?: InputMaybe<Scalars["Int"]["input"]>;
|
|
1360
|
-
start?: InputMaybe<Scalars["Int"]["input"]>;
|
|
1361
|
-
};
|
|
1362
|
-
type Query = {
|
|
1363
|
-
__typename?: "Query";
|
|
1364
|
-
document: Maybe<IDocument>;
|
|
1365
|
-
};
|
|
1366
|
-
type Redo = "REDO";
|
|
1367
|
-
type RedoActionInput = {
|
|
1368
|
-
count: Scalars["Int"]["input"];
|
|
1369
|
-
};
|
|
1370
|
-
type SchemaRedoAction = {
|
|
1371
|
-
id: Scalars["String"]["output"];
|
|
1372
|
-
timestampUtcMs: Scalars["DateTime"]["output"];
|
|
1373
|
-
input: RedoActionInput;
|
|
1374
|
-
type: Redo;
|
|
1375
|
-
scope: string;
|
|
1376
|
-
};
|
|
1377
|
-
type Set_Name = "SET_NAME";
|
|
1378
|
-
type SetNameActionInput = {
|
|
1379
|
-
name: Scalars["String"]["input"];
|
|
1380
|
-
};
|
|
1381
|
-
type SchemaSetNameAction = {
|
|
1382
|
-
id: Scalars["String"]["output"];
|
|
1383
|
-
timestampUtcMs: Scalars["DateTime"]["output"];
|
|
1384
|
-
input: SetNameActionInput;
|
|
1385
|
-
type: Set_Name;
|
|
1386
|
-
scope: "global";
|
|
1387
|
-
};
|
|
1388
|
-
type SetNameOperation = IOperation & {
|
|
1389
|
-
__typename?: "SetNameOperation";
|
|
1390
|
-
hash: Scalars["String"]["output"];
|
|
1391
|
-
index: Scalars["Int"]["output"];
|
|
1392
|
-
input: Scalars["String"]["output"];
|
|
1393
|
-
timestamp: Scalars["DateTime"]["output"];
|
|
1394
|
-
type: Scalars["String"]["output"];
|
|
1395
|
-
};
|
|
1396
|
-
type Set_PreferredEditor = "SET_PREFERRED_EDITOR";
|
|
1397
|
-
type SetPreferredEditorActionInput = {
|
|
1398
|
-
preferredEditor: Scalars["String"]["input"] | null;
|
|
1399
|
-
};
|
|
1400
|
-
type SchemaSetPreferredEditorAction = {
|
|
1401
|
-
id: Scalars["String"]["output"];
|
|
1402
|
-
timestampUtcMs: Scalars["DateTime"]["output"];
|
|
1403
|
-
input: SetPreferredEditorActionInput;
|
|
1404
|
-
type: Set_PreferredEditor;
|
|
1405
|
-
scope: "header";
|
|
1406
|
-
};
|
|
1407
|
-
type SetPreferredEditorOperation = IOperation & {
|
|
1408
|
-
__typename?: "SetPreferredEditorOperation";
|
|
1409
|
-
hash: Scalars["String"]["output"];
|
|
1410
|
-
index: Scalars["Int"]["output"];
|
|
1411
|
-
input: SetPreferredEditorActionInput;
|
|
1412
|
-
timestamp: Scalars["DateTime"]["output"];
|
|
1413
|
-
type: Scalars["String"]["output"];
|
|
1414
|
-
};
|
|
1415
|
-
type Undo = "UNDO";
|
|
1416
|
-
type UndoActionInput = {
|
|
1417
|
-
count: Scalars["Int"]["input"];
|
|
1418
|
-
};
|
|
1419
|
-
type SchemaUndoAction = {
|
|
1420
|
-
id: Scalars["String"]["output"];
|
|
1421
|
-
timestampUtcMs: Scalars["DateTime"]["output"];
|
|
1422
|
-
input: UndoActionInput;
|
|
1423
|
-
type: Undo;
|
|
1424
|
-
scope: string;
|
|
1425
|
-
};
|
|
1426
|
-
type SchemaNOOPAction = {
|
|
1427
|
-
id: Scalars["String"]["output"];
|
|
1428
|
-
input: Scalars["Unknown"]["input"];
|
|
1429
|
-
scope: string;
|
|
1430
|
-
timestampUtcMs: Scalars["DateTime"]["output"];
|
|
1431
|
-
type: "NOOP";
|
|
1432
|
-
};
|
|
1433
|
-
type LoadStateAction = Action & {
|
|
1434
|
-
type: "LOAD_STATE";
|
|
1435
|
-
input: LoadStateActionInput;
|
|
1436
|
-
};
|
|
1437
|
-
type PruneAction = Action & {
|
|
1438
|
-
type: "PRUNE";
|
|
1439
|
-
input: PruneActionInput;
|
|
1440
|
-
};
|
|
1441
|
-
type RedoAction = Action & {
|
|
1442
|
-
type: "REDO";
|
|
1443
|
-
input: SchemaRedoAction["input"];
|
|
1444
|
-
};
|
|
1445
|
-
type SetNameAction = Action & {
|
|
1446
|
-
type: "SET_NAME";
|
|
1447
|
-
input: SchemaSetNameAction["input"];
|
|
1448
|
-
};
|
|
1449
|
-
type SetPreferredEditorAction = Action & {
|
|
1450
|
-
type: "SET_PREFERRED_EDITOR";
|
|
1451
|
-
input: SchemaSetPreferredEditorAction["input"];
|
|
1452
|
-
};
|
|
1453
|
-
type UndoAction = Action & {
|
|
1454
|
-
type: "UNDO";
|
|
1455
|
-
input: SchemaUndoAction["input"];
|
|
1456
|
-
};
|
|
1457
|
-
type NOOPAction = Action & {
|
|
1458
|
-
type: "NOOP";
|
|
1459
|
-
input: SchemaNOOPAction["input"];
|
|
1460
|
-
};
|
|
1461
|
-
type CreateDocumentActionInput = {
|
|
1462
|
-
model: string;
|
|
1463
|
-
version: 0;
|
|
1464
|
-
documentId: string;
|
|
1465
|
-
signing?: {
|
|
1466
|
-
signature: string;
|
|
1467
|
-
publicKey: JsonWebKey;
|
|
1468
|
-
nonce: string;
|
|
1469
|
-
createdAtUtcIso: string;
|
|
1470
|
-
documentType: string;
|
|
1471
|
-
};
|
|
1472
|
-
slug?: string;
|
|
1473
|
-
name?: string;
|
|
1474
|
-
branch?: string;
|
|
1475
|
-
meta?: Record<string, unknown>;
|
|
1476
|
-
protocolVersions?: {
|
|
1477
|
-
[key: string]: number;
|
|
1478
|
-
};
|
|
1479
|
-
};
|
|
1480
|
-
type UpgradeDocumentActionInput = {
|
|
1481
|
-
model: string;
|
|
1482
|
-
fromVersion: number;
|
|
1483
|
-
toVersion: number;
|
|
1484
|
-
documentId: string;
|
|
1485
|
-
initialState?: object;
|
|
1486
|
-
};
|
|
1487
|
-
type DeleteDocumentActionInput = {
|
|
1488
|
-
documentId: string;
|
|
1489
|
-
propagate?: "none" | "cascade";
|
|
1490
|
-
};
|
|
1491
|
-
type AddRelationshipActionInput = {
|
|
1492
|
-
sourceId: string;
|
|
1493
|
-
targetId: string;
|
|
1494
|
-
relationshipType: string;
|
|
1495
|
-
metadata?: Record<string, unknown>;
|
|
1496
|
-
};
|
|
1497
|
-
type RemoveRelationshipActionInput = {
|
|
1498
|
-
sourceId: string;
|
|
1499
|
-
targetId: string;
|
|
1500
|
-
relationshipType: string;
|
|
1501
|
-
};
|
|
1502
|
-
type CreateDocumentAction = Action & {
|
|
1503
|
-
type: "CREATE_DOCUMENT";
|
|
1504
|
-
input: CreateDocumentActionInput;
|
|
1505
|
-
};
|
|
1506
|
-
type UpgradeDocumentAction = Action & {
|
|
1507
|
-
type: "UPGRADE_DOCUMENT";
|
|
1508
|
-
input: UpgradeDocumentActionInput;
|
|
1509
|
-
};
|
|
1510
|
-
type DeleteDocumentAction = Action & {
|
|
1511
|
-
type: "DELETE_DOCUMENT";
|
|
1512
|
-
input: DeleteDocumentActionInput;
|
|
1513
|
-
};
|
|
1514
|
-
type AddRelationshipAction = Action & {
|
|
1515
|
-
type: "ADD_RELATIONSHIP";
|
|
1516
|
-
input: AddRelationshipActionInput;
|
|
1517
|
-
};
|
|
1518
|
-
type RemoveRelationshipAction = Action & {
|
|
1519
|
-
type: "REMOVE_RELATIONSHIP";
|
|
1520
|
-
input: RemoveRelationshipActionInput;
|
|
1521
|
-
};
|
|
1522
|
-
type DocumentAction = LoadStateAction | PruneAction | RedoAction | SetNameAction | SetPreferredEditorAction | UndoAction | NOOPAction;
|
|
1523
|
-
interface ISignal<TType extends string, TInput> {
|
|
1524
|
-
type: TType;
|
|
1525
|
-
input: TInput;
|
|
1526
|
-
}
|
|
1527
|
-
type ISignalResult<TTYpe, TInput, TResult> = {
|
|
1528
|
-
signal: {
|
|
1529
|
-
type: TTYpe;
|
|
1530
|
-
input: TInput;
|
|
1531
|
-
};
|
|
1532
|
-
result: TResult;
|
|
1533
|
-
};
|
|
1534
|
-
type CreateChildDocumentInput = {
|
|
1535
|
-
id: string;
|
|
1536
|
-
documentType: string;
|
|
1537
|
-
};
|
|
1538
|
-
type CreateChildDocumentSignal = ISignal<"CREATE_CHILD_DOCUMENT", CreateChildDocumentInput>;
|
|
1539
|
-
type DeleteChildDocumentInput = {
|
|
1540
|
-
id: string;
|
|
1541
|
-
};
|
|
1542
|
-
type DeleteChildDocumentSignal = ISignal<"DELETE_CHILD_DOCUMENT", DeleteChildDocumentInput>;
|
|
1543
|
-
type CopyChildDocumentInput = {
|
|
1544
|
-
id: string;
|
|
1545
|
-
newId: string;
|
|
1546
|
-
};
|
|
1547
|
-
type CopyChildDocumentSignal = ISignal<"COPY_CHILD_DOCUMENT", CopyChildDocumentInput>;
|
|
1548
|
-
type Signal = CreateChildDocumentSignal | CopyChildDocumentSignal | DeleteChildDocumentSignal;
|
|
1549
|
-
type SignalDispatch = (signal: Signal) => void;
|
|
1550
|
-
type SignalResult = ISignalResult<CreateChildDocumentSignal["type"], CreateChildDocumentSignal["input"], PHDocument> | ISignalResult<CopyChildDocumentSignal["type"], CopyChildDocumentSignal["input"], boolean> | ISignalResult<DeleteChildDocumentSignal["type"], DeleteChildDocumentSignal["input"], PHDocument>;
|
|
1551
|
-
type SignalResults = {
|
|
1552
|
-
CREATE_CHILD_DOCUMENT: PHDocument;
|
|
1553
|
-
COPY_CHILD_DOCUMENT: PHDocument;
|
|
1554
|
-
DELETE_CHILD_DOCUMENT: boolean;
|
|
1555
|
-
};
|
|
1556
|
-
type SignalType<T extends Signal> = T["type"];
|
|
1557
|
-
type FileInput = string | number[] | Uint8Array | ArrayBuffer | Blob;
|
|
1558
|
-
type ReducerOptions = {
|
|
1559
|
-
/** The number of operations to skip before this new action is applied. This overrides the skip count in the operation. */skip?: number; /** When true the skip count is ignored and the action is applied regardless of the skip count */
|
|
1560
|
-
ignoreSkipOperations?: boolean; /** if true reuses the provided action resulting state instead of replaying it */
|
|
1561
|
-
reuseOperationResultingState?: boolean; /** if true checks the hashes of the operations */
|
|
1562
|
-
checkHashes?: boolean; /** Options for performing a replay. */
|
|
1563
|
-
replayOptions?: {
|
|
1564
|
-
/** The previously created operation to verify against. */operation: Operation;
|
|
1565
|
-
}; /** Optional parser for the operation resulting state, uses JSON.parse by default */
|
|
1566
|
-
operationResultingStateParser?: <TState>(state: string | null | undefined) => TState;
|
|
1567
|
-
/**
|
|
1568
|
-
* When true (default), the reducer will prune operations (garbage collect) when processing a skip.
|
|
1569
|
-
* When false, it will recompute state for the skip but preserve the existing operations history.
|
|
1570
|
-
*/
|
|
1571
|
-
pruneOnSkip?: boolean; /** The branch being operated on. Defaults to "main". */
|
|
1572
|
-
branch?: string;
|
|
1573
|
-
/**
|
|
1574
|
-
* Protocol version controlling undo/redo behavior.
|
|
1575
|
-
* - Version 1 (default): Legacy behavior with index reuse
|
|
1576
|
-
* - Version 2: Reactor behavior with monotonic indices
|
|
1577
|
-
*/
|
|
1578
|
-
protocolVersion?: number;
|
|
1579
|
-
/**
|
|
1580
|
-
* When true, skip index contiguity validation during replay.
|
|
1581
|
-
* Used for V2 state rebuild where gapped indices are expected.
|
|
1582
|
-
*/
|
|
1583
|
-
skipIndexValidation?: boolean;
|
|
1584
|
-
};
|
|
1585
|
-
/**
|
|
1586
|
-
* A pure function that takes an action and the previous state
|
|
1587
|
-
* of the document and returns the new state.
|
|
1588
|
-
*/
|
|
1589
|
-
type Reducer<TState extends PHBaseState = PHBaseState> = (document: PHDocument<TState>, action: Action, dispatch?: SignalDispatch, options?: ReducerOptions) => PHDocument<TState>;
|
|
1590
|
-
type StateReducer<TState extends PHBaseState = PHBaseState> = (state: Draft<TState>, action: Action, dispatch?: SignalDispatch) => TState | undefined;
|
|
1591
|
-
/**
|
|
1592
|
-
* Object that indexes attachments of a Document.
|
|
1593
|
-
*
|
|
1594
|
-
* @remarks
|
|
1595
|
-
* This is used to reduce memory usage to avoid
|
|
1596
|
-
* multiple instances of the binary data of the attachments.
|
|
1597
|
-
*
|
|
1598
|
-
*/
|
|
1599
|
-
type FileRegistry = Record<AttachmentRef, Attachment>;
|
|
1600
|
-
type MappedOperation = {
|
|
1601
|
-
ignore: boolean;
|
|
1602
|
-
operation: Operation;
|
|
1603
|
-
};
|
|
1604
|
-
type DocumentOperationsIgnoreMap = Record<string, MappedOperation[]>;
|
|
1605
|
-
type ActionSignatureContext = {
|
|
1606
|
-
documentId: string;
|
|
1607
|
-
signer: ActionSigner;
|
|
1608
|
-
action: Action;
|
|
1609
|
-
previousStateHash: string;
|
|
1610
|
-
};
|
|
1611
|
-
type ActionSigningHandler = (message: Uint8Array) => Promise<Uint8Array>;
|
|
1612
|
-
type ActionVerificationHandler = (publicKey: string, signature: Uint8Array, data: Uint8Array) => Promise<boolean>;
|
|
1613
|
-
/**
|
|
1614
|
-
* Handler for verifying operation signatures.
|
|
1615
|
-
*
|
|
1616
|
-
* @param operation - The operation to verify
|
|
1617
|
-
* @param publicKey - The public key to verify against (from signer.app.key)
|
|
1618
|
-
* @returns Promise that resolves to true if signature is valid, false otherwise
|
|
1619
|
-
*/
|
|
1620
|
-
type SignatureVerificationHandler = (operation: Operation, publicKey: string) => Promise<boolean>;
|
|
1621
|
-
type ENSInfo = {
|
|
1622
|
-
name?: string;
|
|
1623
|
-
avatarUrl?: string;
|
|
1624
|
-
};
|
|
1625
|
-
type User = {
|
|
1626
|
-
address: `0x${string}`;
|
|
1627
|
-
networkId: string;
|
|
1628
|
-
chainId: number;
|
|
1629
|
-
ens?: ENSInfo;
|
|
1630
|
-
};
|
|
1631
|
-
type PartialRecord<K extends keyof any, T> = { [P in K]?: T };
|
|
1632
|
-
type RevisionsFilter = PartialRecord<string, number>;
|
|
1633
|
-
type GetDocumentOptions = ReducerOptions & {
|
|
1634
|
-
revisions?: RevisionsFilter;
|
|
1635
|
-
checkHashes?: boolean;
|
|
1636
|
-
};
|
|
1637
|
-
type ActionErrorCallback = (error: unknown) => void;
|
|
1638
|
-
type EditorDispatch = (action: Action, onErrorCallback?: ActionErrorCallback) => void;
|
|
1639
|
-
type EditorProps = {
|
|
1640
|
-
children?: ReactNode;
|
|
1641
|
-
className?: string;
|
|
1642
|
-
document?: PHDocument;
|
|
1643
|
-
};
|
|
1644
|
-
type SubgraphModule = {
|
|
1645
|
-
id: string;
|
|
1646
|
-
name: string;
|
|
1647
|
-
gql: string;
|
|
1648
|
-
endpoint: string;
|
|
1649
|
-
};
|
|
1650
|
-
type EditorModule<TProps = any> = {
|
|
1651
|
-
Component: FC<EditorProps & TProps>;
|
|
1652
|
-
documentTypes: string[];
|
|
1653
|
-
config: {
|
|
1654
|
-
id: string;
|
|
1655
|
-
name: string;
|
|
1656
|
-
};
|
|
1657
|
-
};
|
|
1658
|
-
type ValidationError = {
|
|
1659
|
-
message: string;
|
|
1660
|
-
details: object;
|
|
1661
|
-
};
|
|
1662
|
-
type SkipHeaderOperations = Partial<Record<string, number>>;
|
|
1663
|
-
type ReplayDocumentOptions = {
|
|
1664
|
-
checkHashes?: boolean;
|
|
1665
|
-
reuseOperationResultingState?: boolean;
|
|
1666
|
-
operationResultingStateParser?: <TState>(state: string) => TState;
|
|
1667
|
-
skipIndexValidation?: boolean;
|
|
1668
|
-
};
|
|
1669
|
-
type OperationIndex = {
|
|
1670
|
-
index: number;
|
|
1671
|
-
skip: number;
|
|
1672
|
-
id?: string;
|
|
1673
|
-
timestampUtcMs?: string;
|
|
1674
|
-
};
|
|
1675
|
-
/**
|
|
1676
|
-
* Parameters used in a document signature.
|
|
1677
|
-
*/
|
|
1678
|
-
type SigningParameters = {
|
|
1679
|
-
documentType: string;
|
|
1680
|
-
createdAtUtcIso: string;
|
|
1681
|
-
/**
|
|
1682
|
-
* The nonce can act as both a salt and a typical nonce.
|
|
1683
|
-
*/
|
|
1684
|
-
nonce: string;
|
|
1685
|
-
};
|
|
1686
|
-
/**
|
|
1687
|
-
* Describes a signer that can sign both document headers and actions.
|
|
1688
|
-
*/
|
|
1689
|
-
interface ISigner {
|
|
1690
|
-
/** The user associated with the signer */
|
|
1691
|
-
user?: UserActionSigner;
|
|
1692
|
-
/** The app associated with the signer */
|
|
1693
|
-
app?: AppActionSigner;
|
|
1694
|
-
/** The corresponding public key */
|
|
1695
|
-
publicKey: CryptoKey;
|
|
1696
|
-
/**
|
|
1697
|
-
* Signs raw data (used for document header signing).
|
|
1698
|
-
*
|
|
1699
|
-
* @param data - The data to sign.
|
|
1700
|
-
* @returns The signature of the data.
|
|
1701
|
-
*/
|
|
1702
|
-
sign: (data: Uint8Array) => Promise<Uint8Array>;
|
|
1703
|
-
/**
|
|
1704
|
-
* Verifies a signature.
|
|
1705
|
-
*
|
|
1706
|
-
* @param data - The data to verify.
|
|
1707
|
-
* @param signature - The signature to verify.
|
|
1708
|
-
*/
|
|
1709
|
-
verify: (data: Uint8Array, signature: Uint8Array) => Promise<void>;
|
|
1710
|
-
/**
|
|
1711
|
-
* Signs an action (used for operation signing).
|
|
1712
|
-
*
|
|
1713
|
-
* @param action - The action to sign.
|
|
1714
|
-
* @param abortSignal - Optional abort signal to cancel the signing.
|
|
1715
|
-
* @returns The signature tuple.
|
|
1716
|
-
*/
|
|
1717
|
-
signAction: (action: Action, abortSignal?: AbortSignal) => Promise<Signature>;
|
|
1718
|
-
}
|
|
1719
|
-
type IsStateOfType<TState> = (state: unknown) => state is TState;
|
|
1720
|
-
type AssertIsStateOfType<TState> = (state: unknown) => asserts state is TState;
|
|
1721
|
-
type IsDocumentOfType<TState extends PHBaseState> = (document: unknown) => document is PHDocument<TState>;
|
|
1722
|
-
type AssertIsDocumentOfType<TState extends PHBaseState> = (document: unknown) => asserts document is PHDocument<TState>;
|
|
1723
|
-
type PartialState<TState> = TState | Partial<TState>;
|
|
1724
|
-
type CreateState<TState extends PHBaseState = PHBaseState> = (state?: PartialState<TState>) => TState;
|
|
1725
|
-
type SaveToFileHandle = (document: PHDocument, input: FileSystemFileHandle) => void | Promise<void>;
|
|
1726
|
-
type SaveToFile = (document: PHDocument, path: string, name?: string) => string | Promise<string>;
|
|
1727
|
-
type LoadFromInput<TState extends PHBaseState = PHBaseState> = (input: FileInput) => PHDocument<TState> | Promise<PHDocument<TState>>;
|
|
1728
|
-
type LoadFromFile<TState extends PHBaseState = PHBaseState> = (path: string) => PHDocument<TState> | Promise<PHDocument<TState>>;
|
|
1729
|
-
type CreateDocument<TState extends PHBaseState = PHBaseState> = (initialState?: Partial<TState>, createState?: CreateState<TState>) => PHDocument<TState>;
|
|
1730
|
-
type MinimalBackupData = {
|
|
1731
|
-
documentId: string;
|
|
1732
|
-
documentType: string;
|
|
1733
|
-
branch: string;
|
|
1734
|
-
state: PHBaseState;
|
|
1735
|
-
name: string;
|
|
1736
|
-
};
|
|
1737
|
-
type DocumentModelUtils<TState extends PHBaseState = PHBaseState> = {
|
|
1738
|
-
fileExtension: string;
|
|
1739
|
-
createState: CreateState<TState>;
|
|
1740
|
-
createDocument: CreateDocument<TState>;
|
|
1741
|
-
loadFromInput: LoadFromInput<TState>;
|
|
1742
|
-
saveToFileHandle: SaveToFileHandle;
|
|
1743
|
-
isStateOfType: IsStateOfType<TState>;
|
|
1744
|
-
assertIsStateOfType: AssertIsStateOfType<TState>;
|
|
1745
|
-
isDocumentOfType: IsDocumentOfType<TState>;
|
|
1746
|
-
assertIsDocumentOfType: AssertIsDocumentOfType<TState>;
|
|
1747
|
-
};
|
|
1748
|
-
type Actions = Record<string, (...args: any[]) => Action>;
|
|
1749
|
-
type DocumentModelModule<TState extends PHBaseState = PHBaseState> = {
|
|
1750
|
-
/** optional version field, should be made required */version?: number;
|
|
1751
|
-
reducer: Reducer<TState>;
|
|
1752
|
-
actions: Actions;
|
|
1753
|
-
utils: DocumentModelUtils<TState>;
|
|
1754
|
-
documentModel: DocumentModelPHState;
|
|
1755
|
-
};
|
|
1756
|
-
type DocumentModelLib<TState extends PHBaseState = PHBaseState> = {
|
|
1757
|
-
manifest: Manifest;
|
|
1758
|
-
documentModels: readonly DocumentModelModule<TState>[];
|
|
1759
|
-
editors: readonly EditorModule[];
|
|
1760
|
-
subgraphs?: readonly SubgraphModule[];
|
|
1761
|
-
upgradeManifests?: readonly UpgradeManifest<readonly number[]>[] | undefined;
|
|
1762
|
-
processorFactory?: ProcessorFactoryBuilder;
|
|
1763
|
-
};
|
|
1764
|
-
type DocumentModelDocumentModelModule = DocumentModelModule<DocumentModelPHState>;
|
|
1765
|
-
type ConfigEntryType = z.infer<typeof ConfigEntryTypeSchema>;
|
|
1766
|
-
type ConfigEntry = z.infer<typeof ConfigEntrySchema>;
|
|
1767
|
-
type PowerhouseModule = z.infer<typeof PowerhouseModuleSchema>;
|
|
1768
|
-
type Publisher = z.infer<typeof PublisherSchema>;
|
|
1769
|
-
type Manifest = z.infer<typeof ManifestSchema>;
|
|
1770
|
-
//#endregion
|
|
1771
|
-
//#region document-model/state.d.ts
|
|
1772
|
-
/**
|
|
1773
|
-
* Creates a default PHAuthState
|
|
1774
|
-
*/
|
|
1775
|
-
declare function defaultAuthState(): PHAuthState;
|
|
1776
|
-
/**
|
|
1777
|
-
* Creates a default PHDocumentState
|
|
1778
|
-
*/
|
|
1779
|
-
declare function defaultDocumentState(): PHDocumentState;
|
|
1780
|
-
/**
|
|
1781
|
-
* Creates a default PHBaseState with auth and document properties
|
|
1782
|
-
*/
|
|
1783
|
-
declare function defaultBaseState(): PHBaseState;
|
|
1784
|
-
/**
|
|
1785
|
-
* Creates a PHAuthState with the given properties
|
|
1786
|
-
*/
|
|
1787
|
-
declare function createAuthState(auth?: Partial<PHAuthState>): PHAuthState;
|
|
1788
|
-
/**
|
|
1789
|
-
* Creates a PHDocumentState with the given properties
|
|
1790
|
-
*/
|
|
1791
|
-
declare function createDocumentState(document?: Partial<PHDocumentState>): PHDocumentState;
|
|
1792
|
-
/**
|
|
1793
|
-
* Creates a PHBaseState with the given auth and document properties
|
|
1794
|
-
*/
|
|
1795
|
-
declare function createBaseState(auth?: Partial<PHAuthState>, document?: Partial<PHDocumentState>): PHBaseState;
|
|
1796
|
-
/**
|
|
1797
|
-
* The document state of the document.
|
|
1798
|
-
*/
|
|
1799
|
-
type PHDocumentState = {
|
|
1800
|
-
/**
|
|
1801
|
-
* The current document model schema version of the document. This is used
|
|
1802
|
-
* with the UPGRADE_DOCUMENT operation to specify the DocumentModelModule
|
|
1803
|
-
* version to use for reducer execution.
|
|
1804
|
-
*/
|
|
1805
|
-
version: number; /** Hash configuration for operation state verification */
|
|
1806
|
-
hash: HashConfig; /** True if and only if the document has been deleted */
|
|
1807
|
-
isDeleted?: boolean; /** The timestamp when the document was deleted, in UTC ISO format */
|
|
1808
|
-
deletedAtUtcIso?: string; /** Optional: who deleted the document */
|
|
1809
|
-
deletedBy?: string; /** Optional: reason for deletion */
|
|
1810
|
-
deletionReason?: string;
|
|
1811
|
-
};
|
|
1812
|
-
/**
|
|
1813
|
-
* The authentication state of the document.
|
|
1814
|
-
*
|
|
1815
|
-
* This has yet to be implemented.
|
|
1816
|
-
*/
|
|
1817
|
-
type PHAuthState = {};
|
|
1818
|
-
/**
|
|
1819
|
-
* The base state of the document.
|
|
1820
|
-
*/
|
|
1821
|
-
type PHBaseState = {
|
|
1822
|
-
/** Carries authentication information. */auth: PHAuthState; /** Carries information about the document. */
|
|
1823
|
-
document: PHDocumentState;
|
|
1824
|
-
};
|
|
1825
|
-
declare function defaultGlobalState(): DocumentModelGlobalState;
|
|
1826
|
-
declare function defaultLocalState(): DocumentModelLocalState;
|
|
1827
|
-
declare function defaultPHState(): DocumentModelPHState;
|
|
1828
|
-
declare function createGlobalState(state?: Partial<DocumentModelGlobalState>): DocumentModelGlobalState;
|
|
1829
|
-
declare function createLocalState(state?: Partial<DocumentModelLocalState>): DocumentModelLocalState;
|
|
1830
|
-
declare function createState(baseState?: Partial<PHBaseState>, globalState?: Partial<DocumentModelGlobalState>, localState?: Partial<DocumentModelLocalState>): DocumentModelPHState;
|
|
1831
|
-
//#endregion
|
|
1832
|
-
//#region document-model/operations.d.ts
|
|
1833
|
-
declare function setNameOperation<TDocument extends PHDocument>(document: TDocument, input: {
|
|
1834
|
-
name: string;
|
|
1835
|
-
}): TDocument & {
|
|
1836
|
-
header: {
|
|
1837
|
-
name: string;
|
|
1838
|
-
id: string;
|
|
1839
|
-
sig: PHDocumentSignatureInfo;
|
|
1840
|
-
documentType: string;
|
|
1841
|
-
createdAtUtcIso: string;
|
|
1842
|
-
slug: string;
|
|
1843
|
-
branch: string;
|
|
1844
|
-
revision: {
|
|
1845
|
-
[scope: string]: number;
|
|
1846
|
-
};
|
|
1847
|
-
lastModifiedAtUtcIso: string;
|
|
1848
|
-
protocolVersions?: {
|
|
1849
|
-
[key: string]: number;
|
|
1850
|
-
};
|
|
1851
|
-
meta?: PHDocumentMeta;
|
|
1852
|
-
};
|
|
1853
|
-
};
|
|
1854
|
-
declare function setPreferredEditorOperation<TDocument extends PHDocument>(document: TDocument, input: {
|
|
1855
|
-
preferredEditor: string | null;
|
|
1856
|
-
}): TDocument;
|
|
1857
|
-
declare function undoOperation<TDocument extends PHDocument>(document: TDocument, action: Action, skip: number): {
|
|
1858
|
-
document: TDocument;
|
|
1859
|
-
action: Action;
|
|
1860
|
-
skip: number;
|
|
1861
|
-
reuseLastOperationIndex: boolean;
|
|
1862
|
-
};
|
|
1863
|
-
/**
|
|
1864
|
-
* V2 of undoOperation for protocol version 2+.
|
|
1865
|
-
* Key differences from undoOperation:
|
|
1866
|
-
* - Never reuses operation index (always increments)
|
|
1867
|
-
* - Always sets skip=1 (consecutive NOOPs are handled during rebuild/GC)
|
|
1868
|
-
* - No complex skip calculation - simpler model where each UNDO is independent
|
|
1869
|
-
*/
|
|
1870
|
-
declare function undoOperationV2<TDocument extends PHDocument>(document: TDocument, action: Action, skip: number): {
|
|
1871
|
-
document: TDocument;
|
|
1872
|
-
action: Action;
|
|
1873
|
-
skip: number;
|
|
1874
|
-
reuseLastOperationIndex: false;
|
|
1875
|
-
};
|
|
1876
|
-
declare function redoOperation<TDocument extends PHDocument>(document: TDocument, action: Action, skip: number): {
|
|
1877
|
-
document: TDocument;
|
|
1878
|
-
action: Action;
|
|
1879
|
-
skip: number;
|
|
1880
|
-
reuseLastOperationIndex: boolean;
|
|
1881
|
-
};
|
|
1882
|
-
declare function loadStateOperation<TState extends PHBaseState>(document: PHDocument<TState>, action: LoadStateActionInput): PHDocument<TState>;
|
|
1883
|
-
/**
|
|
1884
|
-
* An operation that was applied to a {@link BaseDocument}.
|
|
1885
|
-
*
|
|
1886
|
-
* @remarks
|
|
1887
|
-
* Wraps an action with an index, to be added to the operations history of a Document.
|
|
1888
|
-
* The `index` field is used to keep all operations in order and enable replaying the
|
|
1889
|
-
* document's history from the beginning. Note that indices and skips are relative to
|
|
1890
|
-
* a specific reactor. Example below:
|
|
1891
|
-
*
|
|
1892
|
-
* For (index, skip, ts, action)
|
|
1893
|
-
* A - [(0, 0, 1, "A0"), (1, 0, 2, "A1")]
|
|
1894
|
-
* B - [(0, 0, 0, "B0"), (1, 0, 3, "B1")]
|
|
1895
|
-
* ...
|
|
1896
|
-
* B gets A's Operations Scenario:
|
|
1897
|
-
* B' - [(0, 0, 0, "B0"), (1, 0, 3, "B1"), (2, 1, 1, "A0"), (3, 0, 2, "A1"), (4, 0, 3, "B1")]
|
|
1898
|
-
* Then A needs to end up with:
|
|
1899
|
-
* 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")]
|
|
1900
|
-
* So that both A and B end up with the stream of actions (action):
|
|
1901
|
-
* [("B0"), ("A0"), ("A1"), ("B1")]
|
|
1902
|
-
*
|
|
1903
|
-
* @typeParam A - The type of the action.
|
|
1904
|
-
*/
|
|
1905
|
-
type Operation = {
|
|
1906
|
-
/**
|
|
1907
|
-
* This is a stable id, derived from various document and action properties
|
|
1908
|
-
* in deriveOperationId().
|
|
1909
|
-
*
|
|
1910
|
-
* It _cannot_ be an arbitrary string.
|
|
1911
|
-
*
|
|
1912
|
-
* It it also not unique per operation, as reshuffled operations will keep'
|
|
1913
|
-
* the same id they had before they were reshuffled. This means that the
|
|
1914
|
-
* IOperationStore may have multiple operations with the same operation id.
|
|
1915
|
-
**/
|
|
1916
|
-
id: string; /** Position of the operation in the history. This is relative to a specific reactor -- they may not all agree on this value. */
|
|
1917
|
-
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. */
|
|
1918
|
-
skip: number; /** Timestamp of when the operation was added */
|
|
1919
|
-
timestampUtcMs: string; /** Hash of the resulting document data after the operation */
|
|
1920
|
-
hash: string; /** Error message for a failed action */
|
|
1921
|
-
error?: string; /** The resulting state after the operation */
|
|
1922
|
-
resultingState?: string;
|
|
1923
|
-
/**
|
|
1924
|
-
* The action that was applied to the document to produce this operation.
|
|
1925
|
-
*/
|
|
1926
|
-
action: Action;
|
|
1927
|
-
};
|
|
1928
|
-
/**
|
|
1929
|
-
* The operations history of the document by scope.
|
|
1930
|
-
*
|
|
1931
|
-
* This will be removed in a future release.
|
|
1932
|
-
*
|
|
1933
|
-
* TODO: Type should be Partial<Record<string, Operation[]>>,
|
|
1934
|
-
* but that is a breaking change for codegen + external doc models.
|
|
1935
|
-
*/
|
|
1936
|
-
type DocumentOperations = Record<string, Operation[]>;
|
|
1937
|
-
type OperationContext = {
|
|
1938
|
-
documentId: string;
|
|
1939
|
-
documentType: string;
|
|
1940
|
-
scope: string;
|
|
1941
|
-
branch: string;
|
|
1942
|
-
resultingState?: string;
|
|
1943
|
-
ordinal: number;
|
|
1944
|
-
};
|
|
1945
|
-
type OperationWithContext$1 = {
|
|
1946
|
-
operation: Operation;
|
|
1947
|
-
context: OperationContext;
|
|
1948
|
-
};
|
|
1949
|
-
//#endregion
|
|
1950
|
-
//#region document-model/documents.d.ts
|
|
1951
|
-
/** Meta information about the document. */
|
|
1952
|
-
type PHDocumentMeta = {
|
|
1953
|
-
/** The preferred editor for the document. */preferredEditor?: string;
|
|
1954
|
-
};
|
|
1955
|
-
/**
|
|
1956
|
-
* The header of a document.
|
|
1957
|
-
*/
|
|
1958
|
-
type PHDocumentHeader = {
|
|
1959
|
-
/**
|
|
1960
|
-
* The id of the document.
|
|
1961
|
-
*
|
|
1962
|
-
* This is a Ed25519 signature and is immutable.
|
|
1963
|
-
**/
|
|
1964
|
-
id: string;
|
|
1965
|
-
/**
|
|
1966
|
-
* Information to verify the document creator.
|
|
1967
|
-
*
|
|
1968
|
-
* This is immutable.
|
|
1969
|
-
**/
|
|
1970
|
-
sig: PHDocumentSignatureInfo;
|
|
1971
|
-
/**
|
|
1972
|
-
* The type of the document.
|
|
1973
|
-
*
|
|
1974
|
-
* This is used as part of the signature payload and thus, cannot be changed
|
|
1975
|
-
* after the document header has been created.
|
|
1976
|
-
**/
|
|
1977
|
-
documentType: string;
|
|
1978
|
-
/**
|
|
1979
|
-
* The timestamp of the creation date of the document, in UTC ISO format.
|
|
1980
|
-
*
|
|
1981
|
-
* This is used as part of the signature payload and thus, cannot be changed
|
|
1982
|
-
* after the document header has been created.
|
|
1983
|
-
**/
|
|
1984
|
-
createdAtUtcIso: string; /** The slug of the document. */
|
|
1985
|
-
slug: string; /** The name of the document. */
|
|
1986
|
-
name: string; /** The branch of this document. */
|
|
1987
|
-
branch: string;
|
|
1988
|
-
/**
|
|
1989
|
-
* The revision of each scope of the document. This object is updated every
|
|
1990
|
-
* time any _other_ scope is updated.
|
|
1991
|
-
*/
|
|
1992
|
-
revision: {
|
|
1993
|
-
[scope: string]: number;
|
|
1994
|
-
};
|
|
1995
|
-
/**
|
|
1996
|
-
* The timestamp of the last change in the document, in UTC ISO format.
|
|
1997
|
-
**/
|
|
1998
|
-
lastModifiedAtUtcIso: string;
|
|
1999
|
-
/**
|
|
2000
|
-
* This is a map from protocol name to version. A protocol can be any set of
|
|
2001
|
-
* rules that are applied to the document.
|
|
2002
|
-
*
|
|
2003
|
-
* Examples of protocols include:
|
|
2004
|
-
*
|
|
2005
|
-
* - "base-reducer"
|
|
2006
|
-
*/
|
|
2007
|
-
protocolVersions?: {
|
|
2008
|
-
[key: string]: number;
|
|
2009
|
-
}; /** Meta information about the document. */
|
|
2010
|
-
meta?: PHDocumentMeta;
|
|
2011
|
-
};
|
|
2012
|
-
/**
|
|
2013
|
-
* The base type of a document model.
|
|
2014
|
-
*
|
|
2015
|
-
* @remarks
|
|
2016
|
-
* This type is extended by all Document models.
|
|
2017
|
-
*
|
|
2018
|
-
* @typeParam TState - The type of the document state.
|
|
2019
|
-
*/
|
|
2020
|
-
type PHDocument<TState extends PHBaseState = PHBaseState> = {
|
|
2021
|
-
/** The header of the document. */header: PHDocumentHeader; /** The document model specific state. */
|
|
2022
|
-
state: TState;
|
|
2023
|
-
/**
|
|
2024
|
-
* The initial state of the document, enabling replaying operations.
|
|
2025
|
-
*
|
|
2026
|
-
* This will be removed in a future release.
|
|
2027
|
-
*/
|
|
2028
|
-
initialState: TState;
|
|
2029
|
-
/**
|
|
2030
|
-
* The operations history of the document.
|
|
2031
|
-
*
|
|
2032
|
-
* This will be removed in a future release.
|
|
2033
|
-
*/
|
|
2034
|
-
operations: DocumentOperations;
|
|
2035
|
-
/**
|
|
2036
|
-
* A list of undone operations
|
|
2037
|
-
*
|
|
2038
|
-
* This will be removed in a future release.
|
|
2039
|
-
*/
|
|
2040
|
-
clipboard: Operation[];
|
|
2041
|
-
};
|
|
2042
|
-
declare function isNoopOperation<TOp extends {
|
|
2043
|
-
type: string;
|
|
2044
|
-
skip: number;
|
|
2045
|
-
hash: string;
|
|
2046
|
-
}>(op: Partial<TOp>): boolean;
|
|
2047
|
-
declare function isUndoRedo(action: Action): action is UndoRedoAction;
|
|
2048
|
-
declare function isUndo(action: Action): action is UndoAction;
|
|
2049
|
-
declare function isDocumentAction(action: Action): action is DocumentAction;
|
|
2050
|
-
/**
|
|
2051
|
-
* Important note: it is the responsibility of the caller to set the document type
|
|
2052
|
-
* on the header.
|
|
2053
|
-
*/
|
|
2054
|
-
declare function baseCreateDocument<TState extends PHBaseState = PHBaseState>(createState: CreateState<TState>, initialState?: Partial<TState>): PHDocument<TState>;
|
|
2055
|
-
declare function hashDocumentStateForScope(document: {
|
|
2056
|
-
state: {
|
|
2057
|
-
[key: string]: unknown;
|
|
2058
|
-
};
|
|
2059
|
-
}, scope?: string): string;
|
|
2060
|
-
declare function readOnly<T>(value: T): Readonly<T>;
|
|
2061
|
-
/**
|
|
2062
|
-
* Maps skipped operations in an array of operations.
|
|
2063
|
-
* Skipped operations are operations that are ignored during processing.
|
|
2064
|
-
* @param operations - The array of operations to map.
|
|
2065
|
-
* @param skippedHeadOperations - The number of operations to skip at the head of the array of operations.
|
|
2066
|
-
* @returns An array of mapped operations with ignore flag indicating if the operation is skipped.
|
|
2067
|
-
* @throws Error if the operation index is invalid and there are missing operations.
|
|
2068
|
-
*/
|
|
2069
|
-
declare function mapSkippedOperations(operations: Operation[], skippedHeadOperations?: number): MappedOperation[];
|
|
2070
|
-
/**
|
|
2071
|
-
* V2 version of mapSkippedOperations for protocol version 2+.
|
|
2072
|
-
* In V2, all NOOPs have skip=1 and consecutive NOOPs form chains.
|
|
2073
|
-
* N consecutive NOOPs at any point skip N preceding content operations.
|
|
2074
|
-
*
|
|
2075
|
-
* Algorithm: Process from end to start
|
|
2076
|
-
* - When hitting a NOOP: increment chain length, mark as ignored
|
|
2077
|
-
* - When hitting a non-NOOP:
|
|
2078
|
-
* - If chain > 0: decrement chain, mark as ignored (this op was undone)
|
|
2079
|
-
* - If chain == 0: mark as not ignored (apply this op)
|
|
2080
|
-
*/
|
|
2081
|
-
declare function mapSkippedOperationsV2(operations: Operation[]): MappedOperation[];
|
|
2082
|
-
/**
|
|
2083
|
-
* V2 garbage collect that returns only operations that should be applied for state.
|
|
2084
|
-
* Uses the V2 model where consecutive NOOPs form chains.
|
|
2085
|
-
* Unlike V1 garbageCollect, this preserves ALL operations but marks which to apply.
|
|
2086
|
-
*/
|
|
2087
|
-
declare function garbageCollectV2<TOpIndex extends OperationIndex>(sortedOperations: TOpIndex[]): TOpIndex[];
|
|
2088
|
-
declare function sortMappedOperations(operations: DocumentOperationsIgnoreMap): MappedOperation[];
|
|
2089
|
-
declare function replayDocument<TState extends PHBaseState = PHBaseState>(initialState: TState, operations: DocumentOperations, reducer: Reducer<TState>, header: PHDocumentHeader, dispatch?: SignalDispatch, skipHeaderOperations?: SkipHeaderOperations, options?: ReplayDocumentOptions): PHDocument<TState>;
|
|
2090
|
-
declare function parseResultingState<TState>(state: string | null | undefined): TState;
|
|
2091
|
-
declare enum IntegrityIssueType {
|
|
2092
|
-
UNEXPECTED_INDEX = "UNEXPECTED_INDEX"
|
|
2093
|
-
}
|
|
2094
|
-
declare enum IntegrityIssueSubType {
|
|
2095
|
-
DUPLICATED_INDEX = "DUPLICATED_INDEX",
|
|
2096
|
-
MISSING_INDEX = "MISSING_INDEX"
|
|
2097
|
-
}
|
|
2098
|
-
type IntegrityIssue = {
|
|
2099
|
-
operation: OperationIndex;
|
|
2100
|
-
issue: IntegrityIssueType;
|
|
2101
|
-
category: IntegrityIssueSubType;
|
|
2102
|
-
message: string;
|
|
2103
|
-
};
|
|
2104
|
-
type Reshuffle = (startIndex: OperationIndex, opsA: Operation[], opsB: Operation[]) => Operation[];
|
|
2105
|
-
declare function checkCleanedOperationsIntegrity(sortedOperations: OperationIndex[]): IntegrityIssue[];
|
|
2106
|
-
declare function garbageCollect<TOpIndex extends OperationIndex>(sortedOperations: TOpIndex[]): TOpIndex[];
|
|
2107
|
-
declare function addUndo(sortedOperations: Operation[]): Operation[];
|
|
2108
|
-
declare function sortOperations<TOpIndex extends OperationIndex>(operations: TOpIndex[]): TOpIndex[];
|
|
2109
|
-
declare function reshuffleByTimestamp<TOp extends OperationIndex>(startIndex: OperationIndex, opsA: TOp[], opsB: TOp[]): TOp[];
|
|
2110
|
-
declare function reshuffleByTimestampAndIndex<TOp extends OperationIndex>(startIndex: OperationIndex, opsA: TOp[], opsB: TOp[]): TOp[];
|
|
2111
|
-
declare function operationsAreEqual<TOp extends {
|
|
2112
|
-
index: number;
|
|
2113
|
-
skip: number;
|
|
2114
|
-
type?: string;
|
|
2115
|
-
scope?: string;
|
|
2116
|
-
input?: unknown;
|
|
2117
|
-
}>(op1: TOp, op2: TOp): boolean;
|
|
2118
|
-
declare function attachBranch(trunk: Operation[], newBranch: Operation[]): [Operation[], Operation[]];
|
|
2119
|
-
declare function precedes(op1: OperationIndex, op2: OperationIndex): boolean;
|
|
2120
|
-
declare function split(sortedTargetOperations: Operation[], sortedMergeOperations: Operation[]): [Operation[], Operation[], Operation[]];
|
|
2121
|
-
declare function merge(sortedTargetOperations: Operation[], sortedMergeOperations: Operation[], reshuffle: Reshuffle): Operation[];
|
|
2122
|
-
declare function nextSkipNumber(sortedOperations: OperationIndex[]): number;
|
|
2123
|
-
declare function checkOperationsIntegrity(operations: Operation[]): IntegrityIssue[];
|
|
2124
|
-
declare function groupOperationsByScope(operations: Operation[]): Partial<Record<string, Operation[]>>;
|
|
2125
|
-
type PrepareOperationsResult = {
|
|
2126
|
-
validOperations: Operation[];
|
|
2127
|
-
invalidOperations: Operation[];
|
|
2128
|
-
duplicatedOperations: Operation[];
|
|
2129
|
-
integrityIssues: IntegrityIssue[];
|
|
2130
|
-
};
|
|
2131
|
-
declare function prepareOperations(operationsHistory: Operation[], newOperations: Operation[]): PrepareOperationsResult;
|
|
2132
|
-
declare function removeExistingOperations(newOperations: Operation[], operationsHistory: Operation[]): Operation[];
|
|
2133
|
-
/**
|
|
2134
|
-
* Skips header operations and returns the remaining operations.
|
|
2135
|
-
*
|
|
2136
|
-
* @param operations - The array of operations.
|
|
2137
|
-
* @param skipHeaderOperation - The skip header operation index.
|
|
2138
|
-
* @returns The remaining operations after skipping header operations.
|
|
2139
|
-
*/
|
|
2140
|
-
declare function skipHeaderOperations(operations: Operation[], skipHeaderOperation: SkipHeaderOperationIndex): Operation[];
|
|
2141
|
-
declare function garbageCollectDocumentOperations(documentOperations: DocumentOperations): DocumentOperations;
|
|
2142
|
-
/**
|
|
2143
|
-
* Filters out duplicated operations from the target operations array based on their IDs.
|
|
2144
|
-
* If an operation has an ID, it is considered duplicated if there is another operation in the source operations array with the same ID.
|
|
2145
|
-
* If an operation does not have an ID, it is considered unique and will not be filtered out.
|
|
2146
|
-
* @param targetOperations - The array of target operations to filter.
|
|
2147
|
-
* @param sourceOperations - The array of source operations to compare against.
|
|
2148
|
-
* @returns An array of operations with duplicates filtered out.
|
|
2149
|
-
*/
|
|
2150
|
-
declare function filterDuplicatedOperations<T extends {
|
|
2151
|
-
id?: string | number;
|
|
2152
|
-
}>(targetOperations: T[], sourceOperations: T[]): T[];
|
|
2153
|
-
declare function filterDocumentOperationsResultingState(documentOperations?: DocumentOperations): {
|
|
2154
|
-
[x: string]: Operation[] | {
|
|
2155
|
-
id: string;
|
|
2156
|
-
index: number;
|
|
2157
|
-
skip: number;
|
|
2158
|
-
timestampUtcMs: string;
|
|
2159
|
-
hash: string;
|
|
2160
|
-
error?: string;
|
|
2161
|
-
action: Action;
|
|
2162
|
-
}[];
|
|
2163
|
-
};
|
|
2164
|
-
/**
|
|
2165
|
-
* Calculates the difference between two arrays of operations.
|
|
2166
|
-
* Returns an array of operations that are present in `clearedOperationsA` but not in `clearedOperationsB`.
|
|
2167
|
-
*
|
|
2168
|
-
* @template TOp - The type of the operations.
|
|
2169
|
-
* @param {TOp[]} clearedOperationsA - The first array of operations.
|
|
2170
|
-
* @param {TOp[]} clearedOperationsB - The second array of operations.
|
|
2171
|
-
* @returns {TOp[]} - The difference between the two arrays of operations.
|
|
2172
|
-
*/
|
|
2173
|
-
declare function diffOperations<TOp extends OperationIndex>(clearedOperationsA: TOp[], clearedOperationsB: TOp[]): TOp[];
|
|
2174
|
-
declare function getDocumentLastModified(document: PHDocument): string;
|
|
2175
|
-
/**
|
|
2176
|
-
* Updates the document header with the latest revision number and
|
|
2177
|
-
* date of last modification.
|
|
2178
|
-
*
|
|
2179
|
-
* @param document The current state of the document.
|
|
2180
|
-
* @param scope The scope of the operation.
|
|
2181
|
-
* @param lastModifiedTimestamp Optional timestamp to use directly, avoiding a scan of all operations.
|
|
2182
|
-
* @returns The updated document state.
|
|
2183
|
-
*/
|
|
2184
|
-
declare function updateHeaderRevision(document: PHDocument, scope: string, lastModifiedTimestamp?: string): PHDocument;
|
|
2185
|
-
//#endregion
|
|
2186
|
-
//#region document-model/actions.d.ts
|
|
2187
|
-
/**
|
|
2188
|
-
* Cancels the last `count` operations.
|
|
2189
|
-
*
|
|
2190
|
-
* @param count - Number of operations to cancel
|
|
2191
|
-
* @category Actions
|
|
2192
|
-
*/
|
|
2193
|
-
declare const undo: (count?: number, scope?: string) => UndoAction;
|
|
2194
|
-
/**
|
|
2195
|
-
* Cancels the last `count` {@link undo | UNDO} operations.
|
|
2196
|
-
*
|
|
2197
|
-
* @param count - Number of UNDO operations to cancel
|
|
2198
|
-
* @category Actions
|
|
2199
|
-
*/
|
|
2200
|
-
declare const redo: (count?: number, scope?: string) => RedoAction;
|
|
2201
|
-
/**
|
|
2202
|
-
* Joins multiple operations into a single {@link loadState | LOAD_STATE} operation.
|
|
2203
|
-
*
|
|
2204
|
-
* @remarks
|
|
2205
|
-
* Useful to keep operations history smaller. Operations to prune are selected by index,
|
|
2206
|
-
* similar to the {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice | slice} method in Arrays.
|
|
2207
|
-
*
|
|
2208
|
-
* @param start - Index of the first operation to prune
|
|
2209
|
-
* @param end - Index of the last operation to prune
|
|
2210
|
-
* @category Actions
|
|
2211
|
-
*/
|
|
2212
|
-
declare const prune: (start?: number, end?: number, scope?: string) => SchemaPruneAction;
|
|
2213
|
-
/**
|
|
2214
|
-
* Replaces the state of the document.
|
|
2215
|
-
*
|
|
2216
|
-
* @remarks
|
|
2217
|
-
* This action shouldn't be used directly. It is dispatched by the {@link prune} action.
|
|
2218
|
-
*
|
|
2219
|
-
* @param state - State to be set in the document.
|
|
2220
|
-
* @param operations - Number of operations that were removed from the previous state.
|
|
2221
|
-
* @category Actions
|
|
2222
|
-
*/
|
|
2223
|
-
declare const loadState: <TState extends PHBaseState = PHBaseState>(state: TState & {
|
|
2224
|
-
name: string;
|
|
2225
|
-
}, operations: number) => LoadStateAction;
|
|
2226
|
-
declare const noop: (scope?: string) => NOOPAction;
|
|
2227
|
-
/**
|
|
2228
|
-
* Helper function to be used by action creators.
|
|
2229
|
-
*
|
|
2230
|
-
* @remarks
|
|
2231
|
-
* Creates an action with the given type and input properties. The input
|
|
2232
|
-
* properties default to an empty object.
|
|
2233
|
-
*
|
|
2234
|
-
* @typeParam A - Type of the action to be returned.
|
|
2235
|
-
*
|
|
2236
|
-
* @param type - The type of the action.
|
|
2237
|
-
* @param input - The input properties of the action.
|
|
2238
|
-
* @param attachments - The attachments included in the action.
|
|
2239
|
-
* @param validator - The validator to use for the input properties.
|
|
2240
|
-
* @param scope - The scope of the action, can either be 'global' or 'local'.
|
|
2241
|
-
* @param skip - The number of operations to skip before this new action is applied.
|
|
2242
|
-
*
|
|
2243
|
-
* @throws Error if the type is empty or not a string.
|
|
2244
|
-
*
|
|
2245
|
-
* @returns The new action.
|
|
2246
|
-
*/
|
|
2247
|
-
declare function createAction<TAction extends Action>(type: TAction["type"], input?: TAction["input"], attachments?: TAction["attachments"], validator?: () => {
|
|
2248
|
-
parse(v: unknown): TAction["input"];
|
|
2249
|
-
}, scope?: Action["scope"]): TAction;
|
|
2250
|
-
/**
|
|
2251
|
-
* This function should be used instead of { ...action } to ensure
|
|
2252
|
-
* that extra properties are not included in the action.
|
|
2253
|
-
*/
|
|
2254
|
-
declare const actionFromAction: (action: Action) => Action;
|
|
2255
|
-
declare const operationFromAction: (action: Action, index: number, skip: number, context: OperationContext) => Operation;
|
|
2256
|
-
declare const operationFromOperation: (operation: Operation, index: number, skip: number, context: OperationContext) => Operation;
|
|
2257
|
-
declare const operationWithContext: (operation: Operation, context: ActionContext) => Operation;
|
|
2258
|
-
declare const actionContext: () => ActionContext;
|
|
2259
|
-
declare const actionSigner: (user: UserActionSigner, app: AppActionSigner, signatures?: Signature[]) => ActionSigner;
|
|
2260
|
-
declare function buildOperationSignature(context: ActionSignatureContext, signMethod: ActionSigningHandler): Promise<Signature>;
|
|
2261
|
-
declare function buildSignedAction<TState extends PHBaseState = PHBaseState>(action: Action, reducer: Reducer<TState>, document: PHDocument<TState>, signer: ActionSigner, signHandler: ActionSigningHandler): Promise<Operation>;
|
|
2262
|
-
declare function verifyOperationSignature(signature: Signature, signer: Omit<ActionSigner, "signatures">, verifyHandler: ActionVerificationHandler): Promise<boolean>;
|
|
2263
|
-
/**
|
|
2264
|
-
* Changes the name of the document.
|
|
2265
|
-
*
|
|
2266
|
-
* @param name - The name to be set in the document.
|
|
2267
|
-
* @category Actions
|
|
2268
|
-
*/
|
|
2269
|
-
declare const setName: (name: string | {
|
|
2270
|
-
name: string;
|
|
2271
|
-
}) => SetNameAction;
|
|
2272
|
-
/**
|
|
2273
|
-
* Changes the preferred editor recorded in the document header meta.
|
|
2274
|
-
*
|
|
2275
|
-
* Passing `null` clears the preferred editor.
|
|
2276
|
-
*
|
|
2277
|
-
* @category Actions
|
|
2278
|
-
*/
|
|
2279
|
-
declare const setPreferredEditor: (input: string | null | {
|
|
2280
|
-
preferredEditor: string | null;
|
|
2281
|
-
}) => SetPreferredEditorAction;
|
|
2282
|
-
declare const setModelName: (input: SetModelNameInput) => SetModelNameAction;
|
|
2283
|
-
declare const setModelId: (input: SetModelIdInput) => SetModelIdAction;
|
|
2284
|
-
declare const setModelExtension: (input: SetModelExtensionInput) => SetModelExtensionAction;
|
|
2285
|
-
declare const setModelDescription: (input: SetModelDescriptionInput) => SetModelDescriptionAction;
|
|
2286
|
-
declare const setAuthorName: (input: SetAuthorNameInput) => SetAuthorNameAction;
|
|
2287
|
-
declare const setAuthorWebsite: (input: SetAuthorWebsiteInput) => SetAuthorWebsiteAction;
|
|
2288
|
-
declare const addModule: (input: AddModuleInput) => AddModuleAction;
|
|
2289
|
-
declare const setModuleName: (input: SetModuleNameInput) => SetModuleNameAction;
|
|
2290
|
-
declare const setModuleDescription: (input: SetModuleDescriptionInput) => SetModuleDescriptionAction;
|
|
2291
|
-
declare const deleteModule: (input: DeleteModuleInput) => DeleteModuleAction;
|
|
2292
|
-
declare const reorderModules: (input: ReorderModulesInput) => ReorderModulesAction;
|
|
2293
|
-
declare const addOperation: (input: AddOperationInput) => AddOperationAction;
|
|
2294
|
-
declare const setOperationName: (input: SetOperationNameInput) => SetOperationNameAction;
|
|
2295
|
-
declare const setOperationScope: (input: SetOperationScopeInput) => SetOperationScopeAction;
|
|
2296
|
-
declare const setOperationSchema: (input: SetOperationSchemaInput) => SetOperationSchemaAction;
|
|
2297
|
-
declare const setOperationDescription: (input: SetOperationDescriptionInput) => SetOperationDescriptionAction;
|
|
2298
|
-
declare const setOperationTemplate: (input: SetOperationTemplateInput) => SetOperationTemplateAction;
|
|
2299
|
-
declare const setOperationReducer: (input: SetOperationReducerInput) => SetOperationReducerAction;
|
|
2300
|
-
declare const moveOperation: (input: MoveOperationInput) => MoveOperationAction;
|
|
2301
|
-
declare const deleteOperation: (input: DeleteOperationInput) => DeleteOperationAction;
|
|
2302
|
-
declare const reorderModuleOperations: (input: ReorderModuleOperationsInput) => ReorderModuleOperationsAction;
|
|
2303
|
-
declare const addOperationError: (input: AddOperationErrorInput) => AddOperationErrorAction;
|
|
2304
|
-
declare const setOperationErrorCode: (input: SetOperationErrorCodeInput) => SetOperationErrorCodeAction;
|
|
2305
|
-
declare const setOperationErrorName: (input: SetOperationErrorNameInput) => SetOperationErrorNameAction;
|
|
2306
|
-
declare const setOperationErrorDescription: (input: SetOperationErrorDescriptionInput) => SetOperationErrorDescriptionAction;
|
|
2307
|
-
declare const setOperationErrorTemplate: (input: SetOperationErrorTemplateInput) => SetOperationErrorTemplateAction;
|
|
2308
|
-
declare const deleteOperationError: (input: DeleteOperationErrorInput) => DeleteOperationErrorAction;
|
|
2309
|
-
declare const reorderOperationErrors: (input: ReorderOperationErrorsInput) => ReorderOperationErrorsAction;
|
|
2310
|
-
declare const addOperationExample: (input: AddOperationExampleInput) => AddOperationExampleAction;
|
|
2311
|
-
declare const updateOperationExample: (input: UpdateOperationExampleInput) => UpdateOperationExampleAction;
|
|
2312
|
-
declare const deleteOperationExample: (input: DeleteOperationExampleInput) => DeleteOperationExampleAction;
|
|
2313
|
-
declare const reorderOperationExamples: (input: ReorderOperationExamplesInput) => ReorderOperationExamplesAction;
|
|
2314
|
-
declare const operationExampleCreators: {
|
|
2315
|
-
addOperationExample: (input: AddOperationExampleInput) => AddOperationExampleAction;
|
|
2316
|
-
updateOperationExample: (input: UpdateOperationExampleInput) => UpdateOperationExampleAction;
|
|
2317
|
-
deleteOperationExample: (input: DeleteOperationExampleInput) => DeleteOperationExampleAction;
|
|
2318
|
-
reorderOperationExamples: (input: ReorderOperationExamplesInput) => ReorderOperationExamplesAction;
|
|
2319
|
-
};
|
|
2320
|
-
declare const setStateSchema: (input: SetStateSchemaInput) => SetStateSchemaAction;
|
|
2321
|
-
declare const setInitialState: (input: SetInitialStateInput) => SetInitialStateAction;
|
|
2322
|
-
declare const addStateExample: (input: AddStateExampleInput) => AddStateExampleAction;
|
|
2323
|
-
declare const updateStateExample: (input: UpdateStateExampleInput) => UpdateStateExampleAction;
|
|
2324
|
-
declare const deleteStateExample: (input: DeleteStateExampleInput) => DeleteStateExampleAction;
|
|
2325
|
-
declare const reorderStateExamples: (input: ReorderStateExamplesInput) => ReorderStateExamplesAction;
|
|
2326
|
-
declare const addChangeLogItem: (input: AddChangeLogItemInput) => AddChangeLogItemAction;
|
|
2327
|
-
declare const updateChangeLogItem: (input: UpdateChangeLogItemInput) => UpdateChangeLogItemAction;
|
|
2328
|
-
declare const deleteChangeLogItem: (input: DeleteChangeLogItemInput) => DeleteChangeLogItemAction;
|
|
2329
|
-
declare const reorderChangeLogItems: (input: ReorderChangeLogItemsInput) => ReorderChangeLogItemsAction;
|
|
2330
|
-
declare const releaseNewVersion: () => ReleaseNewVersionAction;
|
|
2331
|
-
declare const baseActions: {
|
|
2332
|
-
setName: (name: string | {
|
|
2333
|
-
name: string;
|
|
2334
|
-
}) => SetNameAction;
|
|
2335
|
-
setPreferredEditor: (input: string | null | {
|
|
2336
|
-
preferredEditor: string | null;
|
|
2337
|
-
}) => SetPreferredEditorAction;
|
|
2338
|
-
undo: (count?: number, scope?: string) => UndoAction;
|
|
2339
|
-
redo: (count?: number, scope?: string) => RedoAction;
|
|
2340
|
-
prune: (start?: number, end?: number, scope?: string) => SchemaPruneAction;
|
|
2341
|
-
loadState: <TState extends PHBaseState = PHBaseState>(state: TState & {
|
|
2342
|
-
name: string;
|
|
2343
|
-
}, operations: number) => LoadStateAction;
|
|
2344
|
-
noop: (scope?: string) => NOOPAction;
|
|
2345
|
-
};
|
|
2346
|
-
declare const documentModelActions: {
|
|
2347
|
-
setModelName: (input: SetModelNameInput) => SetModelNameAction;
|
|
2348
|
-
setModelId: (input: SetModelIdInput) => SetModelIdAction;
|
|
2349
|
-
setModelExtension: (input: SetModelExtensionInput) => SetModelExtensionAction;
|
|
2350
|
-
setModelDescription: (input: SetModelDescriptionInput) => SetModelDescriptionAction;
|
|
2351
|
-
setAuthorName: (input: SetAuthorNameInput) => SetAuthorNameAction;
|
|
2352
|
-
setAuthorWebsite: (input: SetAuthorWebsiteInput) => SetAuthorWebsiteAction;
|
|
2353
|
-
addModule: (input: AddModuleInput) => AddModuleAction;
|
|
2354
|
-
setModuleName: (input: SetModuleNameInput) => SetModuleNameAction;
|
|
2355
|
-
setModuleDescription: (input: SetModuleDescriptionInput) => SetModuleDescriptionAction;
|
|
2356
|
-
deleteModule: (input: DeleteModuleInput) => DeleteModuleAction;
|
|
2357
|
-
reorderModules: (input: ReorderModulesInput) => ReorderModulesAction;
|
|
2358
|
-
addOperation: (input: AddOperationInput) => AddOperationAction;
|
|
2359
|
-
setOperationName: (input: SetOperationNameInput) => SetOperationNameAction;
|
|
2360
|
-
setOperationScope: (input: SetOperationScopeInput) => SetOperationScopeAction;
|
|
2361
|
-
setOperationSchema: (input: SetOperationSchemaInput) => SetOperationSchemaAction;
|
|
2362
|
-
setOperationDescription: (input: SetOperationDescriptionInput) => SetOperationDescriptionAction;
|
|
2363
|
-
setOperationTemplate: (input: SetOperationTemplateInput) => SetOperationTemplateAction;
|
|
2364
|
-
setOperationReducer: (input: SetOperationReducerInput) => SetOperationReducerAction;
|
|
2365
|
-
moveOperation: (input: MoveOperationInput) => MoveOperationAction;
|
|
2366
|
-
deleteOperation: (input: DeleteOperationInput) => DeleteOperationAction;
|
|
2367
|
-
reorderModuleOperations: (input: ReorderModuleOperationsInput) => ReorderModuleOperationsAction;
|
|
2368
|
-
addOperationError: (input: AddOperationErrorInput) => AddOperationErrorAction;
|
|
2369
|
-
setOperationErrorCode: (input: SetOperationErrorCodeInput) => SetOperationErrorCodeAction;
|
|
2370
|
-
setOperationErrorName: (input: SetOperationErrorNameInput) => SetOperationErrorNameAction;
|
|
2371
|
-
setOperationErrorDescription: (input: SetOperationErrorDescriptionInput) => SetOperationErrorDescriptionAction;
|
|
2372
|
-
setOperationErrorTemplate: (input: SetOperationErrorTemplateInput) => SetOperationErrorTemplateAction;
|
|
2373
|
-
deleteOperationError: (input: DeleteOperationErrorInput) => DeleteOperationErrorAction;
|
|
2374
|
-
reorderOperationErrors: (input: ReorderOperationErrorsInput) => ReorderOperationErrorsAction;
|
|
2375
|
-
addOperationExample: (input: AddOperationExampleInput) => AddOperationExampleAction;
|
|
2376
|
-
updateOperationExample: (input: UpdateOperationExampleInput) => UpdateOperationExampleAction;
|
|
2377
|
-
deleteOperationExample: (input: DeleteOperationExampleInput) => DeleteOperationExampleAction;
|
|
2378
|
-
reorderOperationExamples: (input: ReorderOperationExamplesInput) => ReorderOperationExamplesAction;
|
|
2379
|
-
setStateSchema: (input: SetStateSchemaInput) => SetStateSchemaAction;
|
|
2380
|
-
setInitialState: (input: SetInitialStateInput) => SetInitialStateAction;
|
|
2381
|
-
addStateExample: (input: AddStateExampleInput) => AddStateExampleAction;
|
|
2382
|
-
updateStateExample: (input: UpdateStateExampleInput) => UpdateStateExampleAction;
|
|
2383
|
-
deleteStateExample: (input: DeleteStateExampleInput) => DeleteStateExampleAction;
|
|
2384
|
-
reorderStateExamples: (input: ReorderStateExamplesInput) => ReorderStateExamplesAction;
|
|
2385
|
-
addChangeLogItem: (input: AddChangeLogItemInput) => AddChangeLogItemAction;
|
|
2386
|
-
updateChangeLogItem: (input: UpdateChangeLogItemInput) => UpdateChangeLogItemAction;
|
|
2387
|
-
deleteChangeLogItem: (input: DeleteChangeLogItemInput) => DeleteChangeLogItemAction;
|
|
2388
|
-
reorderChangeLogItems: (input: ReorderChangeLogItemsInput) => ReorderChangeLogItemsAction;
|
|
2389
|
-
releaseNewVersion: () => ReleaseNewVersionAction;
|
|
2390
|
-
};
|
|
2391
|
-
declare const actions: {
|
|
2392
|
-
setModelName: (input: SetModelNameInput) => SetModelNameAction;
|
|
2393
|
-
setModelId: (input: SetModelIdInput) => SetModelIdAction;
|
|
2394
|
-
setModelExtension: (input: SetModelExtensionInput) => SetModelExtensionAction;
|
|
2395
|
-
setModelDescription: (input: SetModelDescriptionInput) => SetModelDescriptionAction;
|
|
2396
|
-
setAuthorName: (input: SetAuthorNameInput) => SetAuthorNameAction;
|
|
2397
|
-
setAuthorWebsite: (input: SetAuthorWebsiteInput) => SetAuthorWebsiteAction;
|
|
2398
|
-
addModule: (input: AddModuleInput) => AddModuleAction;
|
|
2399
|
-
setModuleName: (input: SetModuleNameInput) => SetModuleNameAction;
|
|
2400
|
-
setModuleDescription: (input: SetModuleDescriptionInput) => SetModuleDescriptionAction;
|
|
2401
|
-
deleteModule: (input: DeleteModuleInput) => DeleteModuleAction;
|
|
2402
|
-
reorderModules: (input: ReorderModulesInput) => ReorderModulesAction;
|
|
2403
|
-
addOperation: (input: AddOperationInput) => AddOperationAction;
|
|
2404
|
-
setOperationName: (input: SetOperationNameInput) => SetOperationNameAction;
|
|
2405
|
-
setOperationScope: (input: SetOperationScopeInput) => SetOperationScopeAction;
|
|
2406
|
-
setOperationSchema: (input: SetOperationSchemaInput) => SetOperationSchemaAction;
|
|
2407
|
-
setOperationDescription: (input: SetOperationDescriptionInput) => SetOperationDescriptionAction;
|
|
2408
|
-
setOperationTemplate: (input: SetOperationTemplateInput) => SetOperationTemplateAction;
|
|
2409
|
-
setOperationReducer: (input: SetOperationReducerInput) => SetOperationReducerAction;
|
|
2410
|
-
moveOperation: (input: MoveOperationInput) => MoveOperationAction;
|
|
2411
|
-
deleteOperation: (input: DeleteOperationInput) => DeleteOperationAction;
|
|
2412
|
-
reorderModuleOperations: (input: ReorderModuleOperationsInput) => ReorderModuleOperationsAction;
|
|
2413
|
-
addOperationError: (input: AddOperationErrorInput) => AddOperationErrorAction;
|
|
2414
|
-
setOperationErrorCode: (input: SetOperationErrorCodeInput) => SetOperationErrorCodeAction;
|
|
2415
|
-
setOperationErrorName: (input: SetOperationErrorNameInput) => SetOperationErrorNameAction;
|
|
2416
|
-
setOperationErrorDescription: (input: SetOperationErrorDescriptionInput) => SetOperationErrorDescriptionAction;
|
|
2417
|
-
setOperationErrorTemplate: (input: SetOperationErrorTemplateInput) => SetOperationErrorTemplateAction;
|
|
2418
|
-
deleteOperationError: (input: DeleteOperationErrorInput) => DeleteOperationErrorAction;
|
|
2419
|
-
reorderOperationErrors: (input: ReorderOperationErrorsInput) => ReorderOperationErrorsAction;
|
|
2420
|
-
addOperationExample: (input: AddOperationExampleInput) => AddOperationExampleAction;
|
|
2421
|
-
updateOperationExample: (input: UpdateOperationExampleInput) => UpdateOperationExampleAction;
|
|
2422
|
-
deleteOperationExample: (input: DeleteOperationExampleInput) => DeleteOperationExampleAction;
|
|
2423
|
-
reorderOperationExamples: (input: ReorderOperationExamplesInput) => ReorderOperationExamplesAction;
|
|
2424
|
-
setStateSchema: (input: SetStateSchemaInput) => SetStateSchemaAction;
|
|
2425
|
-
setInitialState: (input: SetInitialStateInput) => SetInitialStateAction;
|
|
2426
|
-
addStateExample: (input: AddStateExampleInput) => AddStateExampleAction;
|
|
2427
|
-
updateStateExample: (input: UpdateStateExampleInput) => UpdateStateExampleAction;
|
|
2428
|
-
deleteStateExample: (input: DeleteStateExampleInput) => DeleteStateExampleAction;
|
|
2429
|
-
reorderStateExamples: (input: ReorderStateExamplesInput) => ReorderStateExamplesAction;
|
|
2430
|
-
addChangeLogItem: (input: AddChangeLogItemInput) => AddChangeLogItemAction;
|
|
2431
|
-
updateChangeLogItem: (input: UpdateChangeLogItemInput) => UpdateChangeLogItemAction;
|
|
2432
|
-
deleteChangeLogItem: (input: DeleteChangeLogItemInput) => DeleteChangeLogItemAction;
|
|
2433
|
-
reorderChangeLogItems: (input: ReorderChangeLogItemsInput) => ReorderChangeLogItemsAction;
|
|
2434
|
-
releaseNewVersion: () => ReleaseNewVersionAction;
|
|
2435
|
-
setName: (name: string | {
|
|
2436
|
-
name: string;
|
|
2437
|
-
}) => SetNameAction;
|
|
2438
|
-
setPreferredEditor: (input: string | null | {
|
|
2439
|
-
preferredEditor: string | null;
|
|
2440
|
-
}) => SetPreferredEditorAction;
|
|
2441
|
-
undo: (count?: number, scope?: string) => UndoAction;
|
|
2442
|
-
redo: (count?: number, scope?: string) => RedoAction;
|
|
2443
|
-
prune: (start?: number, end?: number, scope?: string) => SchemaPruneAction;
|
|
2444
|
-
loadState: <TState extends PHBaseState = PHBaseState>(state: TState & {
|
|
2445
|
-
name: string;
|
|
2446
|
-
}, operations: number) => LoadStateAction;
|
|
2447
|
-
noop: (scope?: string) => NOOPAction;
|
|
2448
|
-
};
|
|
2449
|
-
/**
|
|
2450
|
-
* The context of an action.
|
|
2451
|
-
*/
|
|
2452
|
-
type ActionContext = {
|
|
2453
|
-
/** The index of the previous operation, showing intended ordering. */prevOpIndex?: number; /** The hash of the previous operation, showing intended state. */
|
|
2454
|
-
prevOpHash?: string; /** A nonce, to cover specific signing attacks and to prevent replay attacks from no-ops. */
|
|
2455
|
-
nonce?: string; /** The signer of the action. */
|
|
2456
|
-
signer?: ActionSigner;
|
|
2457
|
-
};
|
|
2458
|
-
/**
|
|
2459
|
-
* Defines the basic structure of an action.
|
|
2460
|
-
*/
|
|
2461
|
-
type Action = {
|
|
2462
|
-
/** The id of the action. This is distinct from the operation id. */id: string; /** The name of the action. */
|
|
2463
|
-
type: string; /** The timestamp of the action. */
|
|
2464
|
-
timestampUtcMs: string; /** The payload of the action. */
|
|
2465
|
-
input: unknown; /** The scope of the action */
|
|
2466
|
-
scope: string;
|
|
2467
|
-
/**
|
|
2468
|
-
* The attachments included in the action.
|
|
2469
|
-
*
|
|
2470
|
-
* This will be refactored in a future release.
|
|
2471
|
-
*/
|
|
2472
|
-
attachments?: AttachmentInput[]; /** The context of the action. */
|
|
2473
|
-
context?: ActionContext;
|
|
2474
|
-
};
|
|
2475
|
-
/**
|
|
2476
|
-
* The attributes stored for a file. Namely, attachments of a document.
|
|
2477
|
-
*/
|
|
2478
|
-
type Attachment = {
|
|
2479
|
-
/** The binary data of the attachment in Base64 */data: string; /** The MIME type of the attachment */
|
|
2480
|
-
mimeType: string;
|
|
2481
|
-
extension?: string | null;
|
|
2482
|
-
fileName?: string | null;
|
|
2483
|
-
};
|
|
2484
|
-
type AttachmentInput = Attachment & {
|
|
2485
|
-
hash: string;
|
|
2486
|
-
};
|
|
2487
|
-
type ActionWithAttachment = Action & {
|
|
2488
|
-
attachments: AttachmentInput[];
|
|
2489
|
-
};
|
|
2490
|
-
/**
|
|
2491
|
-
* String type representing an attachment in a Document.
|
|
2492
|
-
*
|
|
2493
|
-
* @remarks
|
|
2494
|
-
* Attachment string is formatted as `attachment://<filename>`.
|
|
2495
|
-
*/
|
|
2496
|
-
type AttachmentRef = string;
|
|
2497
|
-
//#endregion
|
|
2498
|
-
export { setName as $, ReorderOperationErrorsAction as $a, SetOperationScopeInputSchema as $c, MutationReorderOperationErrorsArgs as $i, ConfigEntryType as $n, SetOperationSchemaAction as $o, EditorDispatch as $r, DeleteOperationErrorInputSchema as $s, skipHeaderOperations as $t, noop as A, OperationsByScope as Aa, ReorderOperationErrorsInputSchema as Ac, ModuleSpecification as Ai, IProcessorDispatch as Al, ActionSignatureContext as An, SetModelNameAction as Ao, DocumentModelHeaderAction as Ar, UpdateOperationExampleAction as As, garbageCollect as At, reorderModules as B, RedoAction as Ba, SetModelNameInputSchema as Bc, MutationDeleteChangeLogItemInputArgs as Bi, ProcessorStatus as Bl, AddOperationErrorInput as Bn, SetOperationDescriptionInput as Bo, DocumentModelOperationErrorOperations as Br, UpgradeTransition as Bs, mapSkippedOperations as Bt, deleteOperation as C, MutationUpdateChangeLogItemInputArgs as Ca, PublisherSchema as Cc, MakeEmpty as Ci, IRelationalDb as Cl, defaultAuthState as Cn, SetInitialStateInput as Co, DeleteStateExampleInput as Cr, SubgraphModule as Cs, attachBranch as Ct, documentModelActions as D, OperationErrorSpecification as Da, ReorderChangeLogItemsInputSchema as Dc, MappedOperation as Di, RelationalDbProcessor as Dl, defaultLocalState as Dn, SetModelExtensionInput as Do, DocumentModelDocument as Dr, UndoRedoAction as Ds, diffOperations as Dt, deleteStateExample as E, NOOPAction as Ea, RedoSchema as Ec, Manifest as Ei, IRelationalQueryMethods as El, defaultGlobalState as En, SetModelExtensionAction as Eo, DocumentModelAction as Er, UndoActionInput as Es, checkOperationsIntegrity as Et, prune as F, PruneAction as Fa, SetAuthorWebsiteInputSchema as Fc, MutationAddModuleArgs as Fi, ProcessorDispatchResult as Fl, AddChangeLogItemInput as Fn, SetModuleNameInput as Fo, DocumentModelModule as Fr, UpgradeDocumentActionInput as Fs, hashDocumentStateForScope as Ft, setAuthorWebsite as G, RemoveRelationshipAction as Ga, SetOperationDescriptionInputSchema as Gc, MutationDeleteStateExampleArgs as Gi, ActionSigner as Gl, AddRelationshipActionInput as Gn, SetOperationErrorNameAction as Go, DocumentModelStateAction as Gr, AddOperationInputSchema as Gs, parseResultingState as Gt, reorderOperationExamples as H, Reducer as Ha, SetModuleNameInputSchema as Hc, MutationDeleteOperationArgs as Hi, DEFAULT_ANALYTICS_PROCESSOR_DB_NAME as Hl, AddOperationExampleInput as Hn, SetOperationErrorCodeInput as Ho, DocumentModelOperationExampleOperations as Hr, AddModuleInputSchema as Hs, merge as Ht, redo as I, PruneActionInput as Ia, SetInitialStateInputSchema as Ic, MutationAddOperationArgs as Ii, ProcessorFactory as Il, AddModuleAction as In, SetNameAction as Io, DocumentModelModuleAction as Ir, User as Is, isDocumentAction as It, setModelExtension as J, ReorderChangeLogItemsInput as Ja, SetOperationErrorNameInputSchema as Jc, MutationPruneArgs as Ji, PHDocumentSignatureInfo as Jl, AssertIsDocumentOfType as Jn, SetOperationErrorTemplateInput as Jo, DocumentModelVersioningAction as Jr, CodeExampleSchema as Js, readOnly as Jt, setInitialState as K, RemoveRelationshipActionInput as Ka, SetOperationErrorCodeInputSchema as Kc, MutationLoadStateArgs as Ki, AppActionSigner as Kl, AddStateExampleAction as Kn, SetOperationErrorNameInput as Ko, DocumentModelStateOperations as Kr, AddStateExampleInputSchema as Ks, precedes as Kt, releaseNewVersion as L, Publisher as La, SetModelDescriptionInputSchema as Lc, MutationAddOperationErrorArgs as Li, ProcessorFactoryBuilder as Ll, AddModuleInput as Ln, SetNameActionInput as Lo, DocumentModelModuleOperations as Lr, ValidationError as Ls, isNoopOperation as Lt, operationFromAction as M, PartialState as Ma, ReorderStateExamplesInputSchema as Mc, MoveOperationInput as Mi, IProcessorManager as Ml, ActionVerificationHandler as Mn, SetModuleDescriptionAction as Mo, DocumentModelInput as Mr, UpdateStateExampleAction as Ms, garbageCollectV2 as Mt, operationFromOperation as N, PowerhouseModule as Na, ScopeStateSchema as Nc, Mutation as Ni, ProcessorApp as Nl, Actions as Nn, SetModuleDescriptionInput as No, DocumentModelLib as Nr, UpdateStateExampleInput as Ns, getDocumentLastModified as Nt, loadState as O, OperationIndex as Oa, ReorderModuleOperationsInputSchema as Oc, Maybe as Oi, RelationalDbProcessorClass as Ol, defaultPHState as On, SetModelIdAction as Oo, DocumentModelDocumentModelModule as Or, UpdateChangeLogItemAction as Os, filterDocumentOperationsResultingState as Ot, operationWithContext as P, Prune as Pa, SetAuthorNameInputSchema as Pc, MutationAddChangeLogItemInputArgs as Pi, ProcessorApps as Pl, AddChangeLogItemAction as Pn, SetModuleNameAction as Po, DocumentModelLocalState as Pr, UpgradeDocumentAction as Ps, groupOperationsByScope as Pt, setModuleName as Q, ReorderModulesInput as Qa, SetOperationSchemaInputSchema as Qc, MutationReorderModulesArgs as Qi, ConfigEntry as Qn, SetOperationReducerInput as Qo, ENSInfo as Qr, DeleteModuleInputSchema as Qs, reshuffleByTimestampAndIndex as Qt, reorderChangeLogItems as R, Query as Ra, SetModelExtensionInputSchema as Rc, MutationAddOperationExampleArgs as Ri, ProcessorFilter as Rl, AddOperationAction as Rn, SetNameOperation as Ro, DocumentModelOperationAction as Rr, UpgradeManifest as Rs, isUndo as Rt, deleteModule as S, MutationUndoArgs as Sa, PruneSchema as Sc, Load_State as Si, IBaseRelationalDb as Sl, createState as Sn, SetInitialStateAction as So, DeleteStateExampleAction as Sr, StateReducer as Ss, addUndo as St, deleteOperationExample as T, MutationUpdateStateExampleArgs as Ta, RedoActionSchema as Tc, MakeOptional as Ti, IRelationalQueryBuilder as Tl, defaultDocumentState as Tn, SetModelDescriptionInput as To, DocumentFile as Tr, UndoAction as Ts, checkCleanedOperationsIntegrity as Tt, reorderStateExamples as U, ReducerOptions as Ua, SetNameActionInputSchema as Uc, MutationDeleteOperationErrorArgs as Ui, DEFAULT_RELATIONAL_PROCESSOR_DB_NAME as Ul, AddOperationInput as Un, SetOperationErrorDescriptionAction as Uo, DocumentModelOperationOperations as Ur, AddOperationErrorInputSchema as Us, nextSkipNumber as Ut, reorderOperationErrors as V, RedoActionInput as Va, SetModuleDescriptionInputSchema as Vc, MutationDeleteModuleArgs as Vi, TrackedProcessor as Vl, AddOperationExampleAction as Vn, SetOperationErrorCodeAction as Vo, DocumentModelOperationExampleAction as Vr, AddChangeLogItemInputSchema as Vs, mapSkippedOperationsV2 as Vt, setAuthorName as W, ReleaseNewVersionAction as Wa, SetNameActionSchema as Wc, MutationDeleteOperationExampleArgs as Wi, PROCESSOR_APPS as Wl, AddRelationshipAction as Wn, SetOperationErrorDescriptionInput as Wo, DocumentModelPHState as Wr, AddOperationExampleInputSchema as Ws, operationsAreEqual as Wt, setModelName as X, ReorderModuleOperationsInput as Xa, SetOperationNameInputSchema as Xc, MutationReorderChangeLogItemsInputArgs as Xi, UserActionSigner as Xl, Author as Xn, SetOperationNameInput as Xo, DocumentOperationsIgnoreMap as Xr, ConfigEntryTypeSchema as Xs, replayDocument as Xt, setModelId as Y, ReorderModuleOperationsAction as Ya, SetOperationErrorTemplateInputSchema as Yc, MutationRedoArgs as Yi, Signature as Yl, AssertIsStateOfType as Yn, SetOperationNameAction as Yo, DocumentModelVersioningOperations as Yr, ConfigEntrySchema as Ys, removeExistingOperations as Yt, setModuleDescription as Z, ReorderModulesAction as Za, SetOperationReducerInputSchema as Zc, MutationReorderModuleOperationsArgs as Zi, CodeExample as Zn, SetOperationReducerAction as Zo, DocumentSpecification as Zr, DeleteChangeLogItemInputSchema as Zs, reshuffleByTimestamp as Zt, baseActions as _, MutationSetOperationNameArgs as _a, OperationSpecificationSchema as _c, LoadFromFile as _i, createRelationalDb as _l, createAuthState as _n, ScopeState as _o, DeleteOperationErrorAction as _r, SignatureVerificationHandler as _s, IntegrityIssueSubType as _t, AttachmentInput as a, MutationSetModelDescriptionArgs as aa, DocumentModelGlobalStateSchema as ac, GetDocumentOptions as ai, Set_PreferredEditorSchema as al, Operation as an, ReplayDocumentOptions as ao, CreateDocumentAction as ar, SetPreferredEditorAction as as, setOperationName as at, createAction as b, MutationSetOperationTemplateArgs as ba, PruneActionInputSchema as bc, LoadStateActionInput as bi, ExtractProcessorSchemaOrSelf as bl, createGlobalState as bn, SetAuthorWebsiteAction as bo, DeleteOperationExampleInput as br, SkipHeaderOperations as bs, PHDocumentHeader as bt, actionFromAction as c, MutationSetModelNameArgs as ca, LoadStateActionInputSchema as cc, IDocument as ci, UndoActionSchema as cl, loadStateOperation as cn, SaveToFileHandle as co, DeleteChangeLogItemAction as cr, SetStateSchemaAction as cs, setOperationScope as ct, addChangeLogItem as d, MutationSetNameArgs as da, Load_StateSchema as dc, ISignalResult as di, UpdateOperationExampleInputSchema as dl, setPreferredEditorOperation as dn, SchemaNOOPAction as do, DeleteChildDocumentSignal as dr, Set_PreferredEditor as ds, setStateSchema as dt, MutationReorderOperationExamplesArgs as ea, DeleteOperationExampleInputSchema as ec, EditorModule as ei, SetOperationTemplateInputSchema as el, sortMappedOperations as en, ReorderOperationErrorsInput as eo, CopyChildDocumentInput as er, SetOperationSchemaInput as es, setOperationDescription as et, addModule as f, MutationSetOperationDescriptionArgs as fa, ManifestSchema as fc, ISigner as fi, UpdateStateExampleInputSchema as fl, undoOperation as fn, SchemaPruneAction as fo, DeleteDocumentAction as fr, Signal as fs, undo as ft, addStateExample as g, MutationSetOperationErrorTemplateArgs as ga, OperationScopeSchema as gc, IsStateOfType as gi, createNamespacedQueryBuilder as gl, PHDocumentState as gn, SchemaUndoAction as go, DeleteOperationAction as gr, SignalType as gs, verifyOperationSignature as gt, addOperationExample as h, MutationSetOperationErrorNameArgs as ha, OperationErrorSchema as hc, IsDocumentOfType as hi, createNamespacedDb as hl, PHBaseState as hn, SchemaSetPreferredEditorAction as ho, DeleteModuleInput as hr, SignalResults as hs, updateStateExample as ht, Attachment as i, MutationSetInitialStateArgs as ia, DocumentFileSchema as ic, FileRegistry as ii, Set_NameSchema as il, DocumentOperations as in, ReorderStateExamplesInput as io, CreateDocument as ir, SetOperationTemplateInput as is, setOperationErrorTemplate as it, operationExampleCreators as j, PartialRecord as ja, ReorderOperationExamplesInputSchema as jc, MoveOperationAction as ji, IProcessorHostModule as jl, ActionSigningHandler as jn, SetModelNameInput as jo, DocumentModelHeaderOperations as jr, UpdateOperationExampleInput as js, garbageCollectDocumentOperations as jt, moveOperation as k, OperationSpecification as ka, ReorderModulesInputSchema as kc, MinimalBackupData as ki, IProcessor as kl, ActionErrorCallback as kn, SetModelIdInput as ko, DocumentModelGlobalState as kr, UpdateChangeLogItemInput as ks, filterDuplicatedOperations as kt, actionSigner as l, MutationSetModuleDescriptionArgs as la, LoadStateActionSchema as lc, IOperation as li, UndoSchema as ll, redoOperation as ln, Scalars as lo, DeleteChangeLogItemInput as lr, SetStateSchemaInput as ls, setOperationTemplate as lt, addOperationError as m, MutationSetOperationErrorDescriptionArgs as ma, MoveOperationInputSchema as mc, InputMaybe as mi, isDefinedNonNullAny as ml, PHAuthState as mn, SchemaSetNameAction as mo, DeleteModuleAction as mr, SignalResult as ms, updateOperationExample as mt, ActionContext as n, MutationSetAuthorNameArgs as na, DeleteStateExampleInputSchema as nc, Exact as ni, SetPreferredEditorActionSchema as nl, split as nn, ReorderOperationExamplesInput as no, CreateChildDocumentInput as nr, SetOperationScopeInput as ns, setOperationErrorDescription as nt, AttachmentRef as o, MutationSetModelExtensionArgs as oa, DocumentModelInputSchema as oc, IAction as oi, StateSchema as ol, OperationContext as on, RevisionsFilter as oo, CreateDocumentActionInput as or, SetPreferredEditorActionInput as os, setOperationReducer as ot, addOperation as p, MutationSetOperationErrorCodeArgs as pa, ModuleSchema as pc, Incremental as pi, definedNonNullAnySchema as pl, undoOperationV2 as pn, SchemaRedoAction as po, DeleteDocumentActionInput as pr, SignalDispatch as ps, updateChangeLogItem as pt, setModelDescription as q, ReorderChangeLogItemsAction as qa, SetOperationErrorDescriptionInputSchema as qc, MutationMoveOperationArgs as qi, HashConfig as ql, AddStateExampleInput as qn, SetOperationErrorTemplateAction as qo, DocumentModelUtils as qr, AuthorSchema as qs, prepareOperations as qt, ActionWithAttachment as r, MutationSetAuthorWebsiteArgs as ra, DocumentActionSchema as rc, FileInput as ri, SetStateSchemaInputSchema as rl, updateHeaderRevision as rn, ReorderStateExamplesAction as ro, CreateChildDocumentSignal as rr, SetOperationTemplateAction as rs, setOperationErrorName as rt, actionContext as s, MutationSetModelIdArgs as sa, DocumentSpecificationSchema as sc, ID as si, UndoActionInputSchema as sl, OperationWithContext$1 as sn, SaveToFile as so, CreateState as sr, SetPreferredEditorOperation as ss, setOperationSchema as st, Action as t, MutationReorderStateExamplesArgs as ta, DeleteOperationInputSchema as tc, EditorProps as ti, SetPreferredEditorActionInputSchema as tl, sortOperations as tn, ReorderOperationExamplesAction as to, CopyChildDocumentSignal as tr, SetOperationScopeAction as ts, setOperationErrorCode as tt, actions as u, MutationSetModuleNameArgs as ua, LoadStateActionStateInputSchema as uc, ISignal as ui, UpdateChangeLogItemInputSchema as ul, setNameOperation as un, SchemaLoadStateAction as uo, DeleteChildDocumentInput as ur, Set_Name as us, setPreferredEditor as ut, buildOperationSignature as v, MutationSetOperationReducerArgs as va, PowerhouseModuleSchema as vc, LoadFromInput as vi, hashNamespace as vl, createBaseState as vn, SetAuthorNameAction as vo, DeleteOperationErrorInput as vr, SigningParameters as vs, IntegrityIssueType as vt, deleteOperationError as w, MutationUpdateOperationExampleArgs as wa, RedoActionInputSchema as wc, MakeMaybe as wi, IRelationalDbProcessor as wl, defaultBaseState as wn, SetModelDescriptionAction as wo, DocumentAction as wr, Undo as ws, baseCreateDocument as wt, deleteChangeLogItem as x, MutationSetStateSchemaArgs as xa, PruneActionSchema as xc, LoadStateActionStateInput as xi, HashAlgorithms as xl, createLocalState as xn, SetAuthorWebsiteInput as xo, DeleteOperationInput as xr, State as xs, PHDocumentMeta as xt, buildSignedAction as y, MutationSetOperationSchemaArgs as ya, PowerhouseModulesSchema as yc, LoadStateAction as yi, relationalDbToQueryBuilder as yl, createDocumentState as yn, SetAuthorNameInput as yo, DeleteOperationExampleAction as yr, SkipHeaderOperationIndex as ys, PHDocument as yt, reorderModuleOperations as z, Redo as za, SetModelIdInputSchema as zc, MutationAddStateExampleArgs as zi, ProcessorRecord as zl, AddOperationErrorAction as zn, SetOperationDescriptionAction as zo, DocumentModelOperationErrorAction as zr, UpgradeReducer as zs, isUndoRedo as zt };
|
|
2499
|
-
//# sourceMappingURL=actions-muZIbpCg.d.ts.map
|