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