document-model 6.0.0-dev.45 → 6.0.0-dev.46
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.
|
@@ -6,7 +6,7 @@ export declare function setNameOperation<TDocument extends PHDocument>(document:
|
|
|
6
6
|
header: {
|
|
7
7
|
name: string;
|
|
8
8
|
id: string;
|
|
9
|
-
sig: import("
|
|
9
|
+
sig: import("./ph-types.js").PHDocumentSignatureInfo;
|
|
10
10
|
documentType: string;
|
|
11
11
|
createdAtUtcIso: string;
|
|
12
12
|
slug: string;
|
|
@@ -18,7 +18,7 @@ export declare function setNameOperation<TDocument extends PHDocument>(document:
|
|
|
18
18
|
protocolVersions?: {
|
|
19
19
|
[key: string]: number;
|
|
20
20
|
};
|
|
21
|
-
meta?: import("
|
|
21
|
+
meta?: import("./ph-types.js").PHDocumentMeta;
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
24
|
export declare function undoOperation<TDocument extends PHDocument>(document: TDocument, action: Action, skip: number): {
|
|
@@ -37,19 +37,19 @@ export declare function DocumentActionSchema(): z.ZodUnion<readonly [z.ZodObject
|
|
|
37
37
|
}>, z.core.$strip>, z.ZodObject<Required<{
|
|
38
38
|
id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
39
39
|
timestampUtcMs: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
40
|
-
input: z.ZodType<import("
|
|
40
|
+
input: z.ZodType<import("./types.js").RedoActionInput, import("./types.js").RedoActionInput, z.core.$ZodTypeInternals<import("./types.js").RedoActionInput, import("./types.js").RedoActionInput>>;
|
|
41
41
|
type: z.ZodType<"REDO", "REDO", z.core.$ZodTypeInternals<"REDO", "REDO">>;
|
|
42
42
|
scope: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
43
43
|
}>, z.core.$strip>, z.ZodObject<Required<{
|
|
44
44
|
id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
45
45
|
timestampUtcMs: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
46
|
-
input: z.ZodType<import("
|
|
46
|
+
input: z.ZodType<import("./types.js").SetNameActionInput, import("./types.js").SetNameActionInput, z.core.$ZodTypeInternals<import("./types.js").SetNameActionInput, import("./types.js").SetNameActionInput>>;
|
|
47
47
|
type: z.ZodType<"SET_NAME", "SET_NAME", z.core.$ZodTypeInternals<"SET_NAME", "SET_NAME">>;
|
|
48
48
|
scope: z.ZodType<"global", "global", z.core.$ZodTypeInternals<"global", "global">>;
|
|
49
49
|
}>, z.core.$strip>, z.ZodObject<Required<{
|
|
50
50
|
id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
51
51
|
timestampUtcMs: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
52
|
-
input: z.ZodType<import("
|
|
52
|
+
input: z.ZodType<import("./types.js").UndoActionInput, import("./types.js").UndoActionInput, z.core.$ZodTypeInternals<import("./types.js").UndoActionInput, import("./types.js").UndoActionInput>>;
|
|
53
53
|
type: z.ZodType<"UNDO", "UNDO", z.core.$ZodTypeInternals<"UNDO", "UNDO">>;
|
|
54
54
|
scope: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
55
55
|
}>, z.core.$strip>]>;
|
|
@@ -21,12 +21,12 @@ export declare const DocumentModelHeaderSchema: z.ZodObject<{
|
|
|
21
21
|
/** Schema for validating the state object of a DocumentModel document */
|
|
22
22
|
export declare const DocumentModelPHStateSchema: z.ZodObject<{
|
|
23
23
|
global: z.ZodObject<Required<{
|
|
24
|
-
author: z.ZodType<import("
|
|
24
|
+
author: z.ZodType<import("./types.js").Author, import("./types.js").Author, z.core.$ZodTypeInternals<import("./types.js").Author, import("./types.js").Author>>;
|
|
25
25
|
description: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
26
26
|
extension: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
27
27
|
id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
28
28
|
name: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
29
|
-
specifications: z.ZodType<import("
|
|
29
|
+
specifications: z.ZodType<import("./types.js").DocumentSpecification[], import("./types.js").DocumentSpecification[], z.core.$ZodTypeInternals<import("./types.js").DocumentSpecification[], import("./types.js").DocumentSpecification[]>>;
|
|
30
30
|
}>, z.core.$strip>;
|
|
31
31
|
}, z.core.$strip>;
|
|
32
32
|
export declare const DocumentModelSchema: z.ZodObject<{
|
|
@@ -39,22 +39,22 @@ export declare const DocumentModelSchema: z.ZodObject<{
|
|
|
39
39
|
}, z.core.$strip>;
|
|
40
40
|
state: z.ZodObject<{
|
|
41
41
|
global: z.ZodObject<Required<{
|
|
42
|
-
author: z.ZodType<import("
|
|
42
|
+
author: z.ZodType<import("./types.js").Author, import("./types.js").Author, z.core.$ZodTypeInternals<import("./types.js").Author, import("./types.js").Author>>;
|
|
43
43
|
description: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
44
44
|
extension: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
45
45
|
id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
46
46
|
name: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
47
|
-
specifications: z.ZodType<import("
|
|
47
|
+
specifications: z.ZodType<import("./types.js").DocumentSpecification[], import("./types.js").DocumentSpecification[], z.core.$ZodTypeInternals<import("./types.js").DocumentSpecification[], import("./types.js").DocumentSpecification[]>>;
|
|
48
48
|
}>, z.core.$strip>;
|
|
49
49
|
}, z.core.$strip>;
|
|
50
50
|
initialState: z.ZodObject<{
|
|
51
51
|
global: z.ZodObject<Required<{
|
|
52
|
-
author: z.ZodType<import("
|
|
52
|
+
author: z.ZodType<import("./types.js").Author, import("./types.js").Author, z.core.$ZodTypeInternals<import("./types.js").Author, import("./types.js").Author>>;
|
|
53
53
|
description: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
54
54
|
extension: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
55
55
|
id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
56
56
|
name: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
57
|
-
specifications: z.ZodType<import("
|
|
57
|
+
specifications: z.ZodType<import("./types.js").DocumentSpecification[], import("./types.js").DocumentSpecification[], z.core.$ZodTypeInternals<import("./types.js").DocumentSpecification[], import("./types.js").DocumentSpecification[]>>;
|
|
58
58
|
}>, z.core.$strip>;
|
|
59
59
|
}, z.core.$strip>;
|
|
60
60
|
}, z.core.$strip>;
|