anniedrawing 0.3.1
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/CHANGELOG.md +33 -0
- package/LICENSE +21 -0
- package/NOTICE +292 -0
- package/README.md +162 -0
- package/dist/agent/describe.d.ts +12 -0
- package/dist/agent/index.d.ts +10 -0
- package/dist/agent/index.js +2 -0
- package/dist/agent/index.js.map +1 -0
- package/dist/agent/place.d.ts +4 -0
- package/dist/agent/query.d.ts +3 -0
- package/dist/agent/toolDefs.d.ts +343 -0
- package/dist/board.d.ts +193 -0
- package/dist/core/catalog.d.ts +22 -0
- package/dist/core/clipboard.d.ts +2 -0
- package/dist/core/defaults.d.ts +19 -0
- package/dist/core/doc.d.ts +2 -0
- package/dist/core/ids.d.ts +5 -0
- package/dist/core/index.d.ts +16 -0
- package/dist/core/index.js +1 -0
- package/dist/core/item.d.ts +25 -0
- package/dist/core/links.d.ts +21 -0
- package/dist/core/locks.d.ts +3 -0
- package/dist/core/migrate.d.ts +5 -0
- package/dist/core/paste.d.ts +27 -0
- package/dist/core/schema.d.ts +644 -0
- package/dist/core/types.d.ts +313 -0
- package/dist/docs/agents-repository.md +56 -0
- package/dist/docs/agents.md +157 -0
- package/dist/docs/api.md +258 -0
- package/dist/docs/board-js.md +345 -0
- package/dist/docs/code-of-conduct.md +11 -0
- package/dist/docs/contributing.md +35 -0
- package/dist/docs/decisions.md +107 -0
- package/dist/docs/extensions.md +122 -0
- package/dist/docs/format.md +79 -0
- package/dist/docs/index.html +993 -0
- package/dist/docs/license.txt +21 -0
- package/dist/docs/llms-full.txt +345 -0
- package/dist/docs/llms.txt +90 -0
- package/dist/docs/mcp.md +97 -0
- package/dist/docs/notice.txt +292 -0
- package/dist/docs/nunito-OFL.txt +93 -0
- package/dist/docs/releasing.md +38 -0
- package/dist/docs/security.md +33 -0
- package/dist/favicon.svg +1 -0
- package/dist/fellow.d.ts +7 -0
- package/dist/fellow.js +2 -0
- package/dist/fellow.js.map +1 -0
- package/dist/geo/box.d.ts +13 -0
- package/dist/geo/index.d.ts +5 -0
- package/dist/geo/picker.d.ts +25 -0
- package/dist/geo/router.d.ts +11 -0
- package/dist/geo/vec.d.ts +8 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +1 -0
- package/dist/input/autosave.d.ts +2 -0
- package/dist/input/cursors.d.ts +8 -0
- package/dist/input/measure.d.ts +6 -0
- package/dist/input/urlPaste.d.ts +18 -0
- package/dist/kinds/index.d.ts +2 -0
- package/dist/kinds/registry.d.ts +45 -0
- package/dist/porter/index.d.ts +5 -0
- package/dist/porter/indexedPng.d.ts +13 -0
- package/dist/porter/json.d.ts +3 -0
- package/dist/porter/png.d.ts +10 -0
- package/dist/porter/svg.d.ts +9 -0
- package/dist/shared/board-Bya0O1I7.js +2 -0
- package/dist/shared/board-Bya0O1I7.js.map +1 -0
- package/dist/shared/cards-DWgSVE54.js +2 -0
- package/dist/shared/cards-DWgSVE54.js.map +1 -0
- package/dist/shared/defaults-C-aC_B4z.js +2 -0
- package/dist/shared/defaults-C-aC_B4z.js.map +1 -0
- package/dist/shared/describe-DaWyf3qV.js +3 -0
- package/dist/shared/describe-DaWyf3qV.js.map +1 -0
- package/dist/shared/paste-C22i8o-g.js +2 -0
- package/dist/shared/paste-C22i8o-g.js.map +1 -0
- package/dist/shared/picker-Dv_i4iNP.js +2 -0
- package/dist/shared/picker-Dv_i4iNP.js.map +1 -0
- package/dist/shared/ui-Cay6AVqT.js +2 -0
- package/dist/shared/ui-Cay6AVqT.js.map +1 -0
- package/dist/shared/urlPaste-DN4JtgeB.js +2 -0
- package/dist/shared/urlPaste-DN4JtgeB.js.map +1 -0
- package/dist/stage/cards.d.ts +2 -0
- package/dist/stage/index.d.ts +3 -0
- package/dist/stage/itemView.d.ts +22 -0
- package/dist/stage/lens.d.ts +26 -0
- package/dist/stage/paint.d.ts +23 -0
- package/dist/stage/presence.d.ts +50 -0
- package/dist/stage/stage.d.ts +60 -0
- package/dist/style.css +2 -0
- package/dist/ui/icons.d.ts +2 -0
- package/dist/ui/index.d.ts +16 -0
- package/dist/ui/index.js +1 -0
- package/dist/ui/version.d.ts +3 -0
- package/llms-full.txt +345 -0
- package/llms.txt +90 -0
- package/package.json +120 -0
|
@@ -0,0 +1,644 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const LIMITS: {
|
|
3
|
+
readonly maxBatch: 1000;
|
|
4
|
+
readonly maxItems: 50000;
|
|
5
|
+
readonly maxCoordinate: 1000000;
|
|
6
|
+
readonly maxTextLength: 100000;
|
|
7
|
+
readonly maxDepth: 32;
|
|
8
|
+
readonly maxPoints: 100000;
|
|
9
|
+
readonly maxMediaLength: 20000000;
|
|
10
|
+
readonly maxHistory: 100;
|
|
11
|
+
readonly maxSessionLog: 500;
|
|
12
|
+
readonly maxJsonDepth: 104;
|
|
13
|
+
};
|
|
14
|
+
/** Default labeled PNG for vision tools: 32-color indexed, 240 KiB budget. */
|
|
15
|
+
export declare const VISION_PNG: {
|
|
16
|
+
readonly colors: 32;
|
|
17
|
+
readonly maxBytes: 245760;
|
|
18
|
+
};
|
|
19
|
+
export declare const PointSchema: v.ObjectSchema<{
|
|
20
|
+
readonly x: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, 1000000, undefined>]>;
|
|
21
|
+
readonly y: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, 1000000, undefined>]>;
|
|
22
|
+
}, undefined>;
|
|
23
|
+
export declare const BoxSchema: v.ObjectSchema<{
|
|
24
|
+
readonly x: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, 1000000, undefined>]>;
|
|
25
|
+
readonly y: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, 1000000, undefined>]>;
|
|
26
|
+
readonly w: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1000000, undefined>]>;
|
|
27
|
+
readonly h: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1000000, undefined>]>;
|
|
28
|
+
}, undefined>;
|
|
29
|
+
export declare const StyleSchema: v.ObjectSchema<{
|
|
30
|
+
readonly stroke: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
31
|
+
readonly strokeWidth: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1000000, undefined>]>, v.MaxValueAction<number, 1000, undefined>]>, undefined>;
|
|
32
|
+
readonly dash: v.OptionalSchema<v.PicklistSchema<["solid", "dashed", "dotted"], undefined>, undefined>;
|
|
33
|
+
readonly fill: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
34
|
+
readonly fillMode: v.OptionalSchema<v.PicklistSchema<["solid", "tint", "hatch"], undefined>, undefined>;
|
|
35
|
+
readonly corner: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1000000, undefined>]>, undefined>;
|
|
36
|
+
readonly opacity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
37
|
+
}, undefined>;
|
|
38
|
+
export declare const TextSchema: v.ObjectSchema<{
|
|
39
|
+
readonly value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 100000, undefined>]>;
|
|
40
|
+
readonly align: v.OptionalSchema<v.PicklistSchema<["start", "center", "end"], undefined>, undefined>;
|
|
41
|
+
readonly valign: v.OptionalSchema<v.PicklistSchema<["top", "middle", "bottom"], undefined>, undefined>;
|
|
42
|
+
readonly size: v.OptionalSchema<v.UnionSchema<[v.PicklistSchema<["s", "m", "l", "xl"], undefined>, v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 1000, undefined>]>], undefined>, undefined>;
|
|
43
|
+
readonly font: v.OptionalSchema<v.PicklistSchema<["sans", "serif", "mono", "hand"], undefined>, undefined>;
|
|
44
|
+
}, undefined>;
|
|
45
|
+
export declare const EndpointSchema: v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>, v.ObjectSchema<{
|
|
46
|
+
readonly item: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>;
|
|
47
|
+
readonly side: v.OptionalSchema<v.PicklistSchema<["auto", "top", "right", "bottom", "left"], undefined>, undefined>;
|
|
48
|
+
readonly anchor: v.OptionalSchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>], undefined>, undefined>;
|
|
49
|
+
}, undefined>, v.ObjectSchema<{
|
|
50
|
+
readonly x: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, 1000000, undefined>]>;
|
|
51
|
+
readonly y: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, 1000000, undefined>]>;
|
|
52
|
+
}, undefined>], undefined>;
|
|
53
|
+
export declare const ItemSchema: v.GenericSchema;
|
|
54
|
+
export declare const PatchSchema: v.LooseObjectSchema<{
|
|
55
|
+
readonly x: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, 1000000, undefined>]>, undefined>;
|
|
56
|
+
readonly y: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, 1000000, undefined>]>, undefined>;
|
|
57
|
+
readonly w: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1000000, undefined>]>, undefined>;
|
|
58
|
+
readonly h: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1000000, undefined>]>, undefined>;
|
|
59
|
+
readonly rotation: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, 1000000, undefined>]>, undefined>;
|
|
60
|
+
readonly style: v.OptionalSchema<v.ObjectSchema<{
|
|
61
|
+
readonly stroke: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
62
|
+
readonly strokeWidth: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1000000, undefined>]>, v.MaxValueAction<number, 1000, undefined>]>, undefined>;
|
|
63
|
+
readonly dash: v.OptionalSchema<v.PicklistSchema<["solid", "dashed", "dotted"], undefined>, undefined>;
|
|
64
|
+
readonly fill: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
65
|
+
readonly fillMode: v.OptionalSchema<v.PicklistSchema<["solid", "tint", "hatch"], undefined>, undefined>;
|
|
66
|
+
readonly corner: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1000000, undefined>]>, undefined>;
|
|
67
|
+
readonly opacity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
68
|
+
}, undefined>, undefined>;
|
|
69
|
+
readonly text: v.OptionalSchema<Omit<v.ObjectSchema<{
|
|
70
|
+
readonly value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 100000, undefined>]>;
|
|
71
|
+
readonly align: v.OptionalSchema<v.PicklistSchema<["start", "center", "end"], undefined>, undefined>;
|
|
72
|
+
readonly valign: v.OptionalSchema<v.PicklistSchema<["top", "middle", "bottom"], undefined>, undefined>;
|
|
73
|
+
readonly size: v.OptionalSchema<v.UnionSchema<[v.PicklistSchema<["s", "m", "l", "xl"], undefined>, v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 1000, undefined>]>], undefined>, undefined>;
|
|
74
|
+
readonly font: v.OptionalSchema<v.PicklistSchema<["sans", "serif", "mono", "hand"], undefined>, undefined>;
|
|
75
|
+
}, undefined>, "entries" | "~run" | "~standard" | "~types"> & {
|
|
76
|
+
readonly entries: {
|
|
77
|
+
readonly value: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 100000, undefined>]>, undefined>;
|
|
78
|
+
readonly align: v.OptionalSchema<v.OptionalSchema<v.PicklistSchema<["start", "center", "end"], undefined>, undefined>, undefined>;
|
|
79
|
+
readonly valign: v.OptionalSchema<v.OptionalSchema<v.PicklistSchema<["top", "middle", "bottom"], undefined>, undefined>, undefined>;
|
|
80
|
+
readonly size: v.OptionalSchema<v.OptionalSchema<v.UnionSchema<[v.PicklistSchema<["s", "m", "l", "xl"], undefined>, v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 1000, undefined>]>], undefined>, undefined>, undefined>;
|
|
81
|
+
readonly font: v.OptionalSchema<v.OptionalSchema<v.PicklistSchema<["sans", "serif", "mono", "hand"], undefined>, undefined>, undefined>;
|
|
82
|
+
};
|
|
83
|
+
readonly "~standard": v.StandardProps<{
|
|
84
|
+
value?: string | undefined;
|
|
85
|
+
align?: "center" | "end" | "start" | undefined;
|
|
86
|
+
valign?: "bottom" | "middle" | "top" | undefined;
|
|
87
|
+
size?: number | "l" | "m" | "s" | "xl" | undefined;
|
|
88
|
+
font?: "hand" | "mono" | "sans" | "serif" | undefined;
|
|
89
|
+
}, {
|
|
90
|
+
value?: string | undefined;
|
|
91
|
+
align?: "center" | "end" | "start" | undefined;
|
|
92
|
+
valign?: "bottom" | "middle" | "top" | undefined;
|
|
93
|
+
size?: number | "l" | "m" | "s" | "xl" | undefined;
|
|
94
|
+
font?: "hand" | "mono" | "sans" | "serif" | undefined;
|
|
95
|
+
}>;
|
|
96
|
+
readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
97
|
+
value?: string | undefined;
|
|
98
|
+
align?: "center" | "end" | "start" | undefined;
|
|
99
|
+
valign?: "bottom" | "middle" | "top" | undefined;
|
|
100
|
+
size?: number | "l" | "m" | "s" | "xl" | undefined;
|
|
101
|
+
font?: "hand" | "mono" | "sans" | "serif" | undefined;
|
|
102
|
+
}, v.FiniteIssue<number> | v.MaxLengthIssue<string, 100000> | v.MaxValueIssue<number, 1000> | v.MinValueIssue<number, 1> | v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.StringIssue | v.UnionIssue<v.FiniteIssue<number> | v.MaxValueIssue<number, 1000> | v.MinValueIssue<number, 1> | v.NumberIssue | v.PicklistIssue>>;
|
|
103
|
+
readonly "~types"?: {
|
|
104
|
+
readonly input: {
|
|
105
|
+
value?: string | undefined;
|
|
106
|
+
align?: "center" | "end" | "start" | undefined;
|
|
107
|
+
valign?: "bottom" | "middle" | "top" | undefined;
|
|
108
|
+
size?: number | "l" | "m" | "s" | "xl" | undefined;
|
|
109
|
+
font?: "hand" | "mono" | "sans" | "serif" | undefined;
|
|
110
|
+
};
|
|
111
|
+
readonly output: {
|
|
112
|
+
value?: string | undefined;
|
|
113
|
+
align?: "center" | "end" | "start" | undefined;
|
|
114
|
+
valign?: "bottom" | "middle" | "top" | undefined;
|
|
115
|
+
size?: number | "l" | "m" | "s" | "xl" | undefined;
|
|
116
|
+
font?: "hand" | "mono" | "sans" | "serif" | undefined;
|
|
117
|
+
};
|
|
118
|
+
readonly issue: v.FiniteIssue<number> | v.MaxLengthIssue<string, 100000> | v.MaxValueIssue<number, 1000> | v.MinValueIssue<number, 1> | v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.StringIssue | v.UnionIssue<v.FiniteIssue<number> | v.MaxValueIssue<number, 1000> | v.MinValueIssue<number, 1> | v.NumberIssue | v.PicklistIssue>;
|
|
119
|
+
} | undefined;
|
|
120
|
+
}, undefined>;
|
|
121
|
+
readonly href: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 100000, undefined>]>, undefined>;
|
|
122
|
+
readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 100000, undefined>]>, undefined>;
|
|
123
|
+
readonly data: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
124
|
+
readonly from: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>, v.ObjectSchema<{
|
|
125
|
+
readonly item: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>;
|
|
126
|
+
readonly side: v.OptionalSchema<v.PicklistSchema<["auto", "top", "right", "bottom", "left"], undefined>, undefined>;
|
|
127
|
+
readonly anchor: v.OptionalSchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>], undefined>, undefined>;
|
|
128
|
+
}, undefined>, v.ObjectSchema<{
|
|
129
|
+
readonly x: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, 1000000, undefined>]>;
|
|
130
|
+
readonly y: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, 1000000, undefined>]>;
|
|
131
|
+
}, undefined>], undefined>, undefined>;
|
|
132
|
+
readonly to: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>, v.ObjectSchema<{
|
|
133
|
+
readonly item: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>;
|
|
134
|
+
readonly side: v.OptionalSchema<v.PicklistSchema<["auto", "top", "right", "bottom", "left"], undefined>, undefined>;
|
|
135
|
+
readonly anchor: v.OptionalSchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>], undefined>, undefined>;
|
|
136
|
+
}, undefined>, v.ObjectSchema<{
|
|
137
|
+
readonly x: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, 1000000, undefined>]>;
|
|
138
|
+
readonly y: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, 1000000, undefined>]>;
|
|
139
|
+
}, undefined>], undefined>, undefined>;
|
|
140
|
+
}, undefined>;
|
|
141
|
+
export declare const PlacementSchema: v.ObjectSchema<{
|
|
142
|
+
readonly rightOf: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>, undefined>;
|
|
143
|
+
readonly leftOf: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>, undefined>;
|
|
144
|
+
readonly above: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>, undefined>;
|
|
145
|
+
readonly below: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>, undefined>;
|
|
146
|
+
readonly inside: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>, undefined>;
|
|
147
|
+
readonly near: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>, undefined>;
|
|
148
|
+
readonly gap: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1000000, undefined>]>, undefined>;
|
|
149
|
+
readonly align: v.OptionalSchema<v.PicklistSchema<["start", "middle", "end"], undefined>, undefined>;
|
|
150
|
+
}, undefined>;
|
|
151
|
+
export declare const MediaSchema: v.ObjectSchema<{
|
|
152
|
+
readonly mime: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
153
|
+
readonly w: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1000000, undefined>]>;
|
|
154
|
+
readonly h: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1000000, undefined>]>;
|
|
155
|
+
readonly src: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 20000000, undefined>]>;
|
|
156
|
+
}, undefined>;
|
|
157
|
+
export declare const PageSchema: v.ObjectSchema<{
|
|
158
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>;
|
|
159
|
+
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 100000, undefined>]>;
|
|
160
|
+
readonly background: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
161
|
+
readonly items: v.ArraySchema<v.GenericSchema, undefined>;
|
|
162
|
+
}, undefined>;
|
|
163
|
+
export declare const DocumentSchema: v.ObjectSchema<{
|
|
164
|
+
readonly format: v.LiteralSchema<"anniedrawing", undefined>;
|
|
165
|
+
readonly version: v.LiteralSchema<2, undefined>;
|
|
166
|
+
readonly meta: v.LooseObjectSchema<{
|
|
167
|
+
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 100000, undefined>]>;
|
|
168
|
+
readonly modified: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
169
|
+
}, undefined>;
|
|
170
|
+
readonly pages: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
171
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>;
|
|
172
|
+
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 100000, undefined>]>;
|
|
173
|
+
readonly background: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
174
|
+
readonly items: v.ArraySchema<v.GenericSchema, undefined>;
|
|
175
|
+
}, undefined>, undefined>, v.MinLengthAction<{
|
|
176
|
+
id: string;
|
|
177
|
+
name: string;
|
|
178
|
+
background?: string | undefined;
|
|
179
|
+
items: unknown[];
|
|
180
|
+
}[], 1, undefined>]>;
|
|
181
|
+
readonly media: v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
|
|
182
|
+
readonly mime: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
183
|
+
readonly w: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1000000, undefined>]>;
|
|
184
|
+
readonly h: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1000000, undefined>]>;
|
|
185
|
+
readonly src: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 20000000, undefined>]>;
|
|
186
|
+
}, undefined>, undefined>;
|
|
187
|
+
}, undefined>;
|
|
188
|
+
export declare const OpSchema: v.VariantSchema<"op", [v.ObjectSchema<{
|
|
189
|
+
readonly op: v.LiteralSchema<"add", undefined>;
|
|
190
|
+
readonly item: v.GenericSchema;
|
|
191
|
+
readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>, undefined>;
|
|
192
|
+
readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>, undefined>;
|
|
193
|
+
readonly index: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
194
|
+
readonly place: v.OptionalSchema<v.ObjectSchema<{
|
|
195
|
+
readonly rightOf: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>, undefined>;
|
|
196
|
+
readonly leftOf: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>, undefined>;
|
|
197
|
+
readonly above: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>, undefined>;
|
|
198
|
+
readonly below: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>, undefined>;
|
|
199
|
+
readonly inside: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>, undefined>;
|
|
200
|
+
readonly near: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>, undefined>;
|
|
201
|
+
readonly gap: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1000000, undefined>]>, undefined>;
|
|
202
|
+
readonly align: v.OptionalSchema<v.PicklistSchema<["start", "middle", "end"], undefined>, undefined>;
|
|
203
|
+
}, undefined>, undefined>;
|
|
204
|
+
}, undefined>, v.ObjectSchema<{
|
|
205
|
+
readonly op: v.LiteralSchema<"set", undefined>;
|
|
206
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>;
|
|
207
|
+
readonly patch: v.LooseObjectSchema<{
|
|
208
|
+
readonly x: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, 1000000, undefined>]>, undefined>;
|
|
209
|
+
readonly y: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, 1000000, undefined>]>, undefined>;
|
|
210
|
+
readonly w: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1000000, undefined>]>, undefined>;
|
|
211
|
+
readonly h: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1000000, undefined>]>, undefined>;
|
|
212
|
+
readonly rotation: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, 1000000, undefined>]>, undefined>;
|
|
213
|
+
readonly style: v.OptionalSchema<v.ObjectSchema<{
|
|
214
|
+
readonly stroke: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
215
|
+
readonly strokeWidth: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1000000, undefined>]>, v.MaxValueAction<number, 1000, undefined>]>, undefined>;
|
|
216
|
+
readonly dash: v.OptionalSchema<v.PicklistSchema<["solid", "dashed", "dotted"], undefined>, undefined>;
|
|
217
|
+
readonly fill: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
218
|
+
readonly fillMode: v.OptionalSchema<v.PicklistSchema<["solid", "tint", "hatch"], undefined>, undefined>;
|
|
219
|
+
readonly corner: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1000000, undefined>]>, undefined>;
|
|
220
|
+
readonly opacity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
221
|
+
}, undefined>, undefined>;
|
|
222
|
+
readonly text: v.OptionalSchema<Omit<v.ObjectSchema<{
|
|
223
|
+
readonly value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 100000, undefined>]>;
|
|
224
|
+
readonly align: v.OptionalSchema<v.PicklistSchema<["start", "center", "end"], undefined>, undefined>;
|
|
225
|
+
readonly valign: v.OptionalSchema<v.PicklistSchema<["top", "middle", "bottom"], undefined>, undefined>;
|
|
226
|
+
readonly size: v.OptionalSchema<v.UnionSchema<[v.PicklistSchema<["s", "m", "l", "xl"], undefined>, v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 1000, undefined>]>], undefined>, undefined>;
|
|
227
|
+
readonly font: v.OptionalSchema<v.PicklistSchema<["sans", "serif", "mono", "hand"], undefined>, undefined>;
|
|
228
|
+
}, undefined>, "entries" | "~run" | "~standard" | "~types"> & {
|
|
229
|
+
readonly entries: {
|
|
230
|
+
readonly value: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 100000, undefined>]>, undefined>;
|
|
231
|
+
readonly align: v.OptionalSchema<v.OptionalSchema<v.PicklistSchema<["start", "center", "end"], undefined>, undefined>, undefined>;
|
|
232
|
+
readonly valign: v.OptionalSchema<v.OptionalSchema<v.PicklistSchema<["top", "middle", "bottom"], undefined>, undefined>, undefined>;
|
|
233
|
+
readonly size: v.OptionalSchema<v.OptionalSchema<v.UnionSchema<[v.PicklistSchema<["s", "m", "l", "xl"], undefined>, v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 1000, undefined>]>], undefined>, undefined>, undefined>;
|
|
234
|
+
readonly font: v.OptionalSchema<v.OptionalSchema<v.PicklistSchema<["sans", "serif", "mono", "hand"], undefined>, undefined>, undefined>;
|
|
235
|
+
};
|
|
236
|
+
readonly "~standard": v.StandardProps<{
|
|
237
|
+
value?: string | undefined;
|
|
238
|
+
align?: "center" | "end" | "start" | undefined;
|
|
239
|
+
valign?: "bottom" | "middle" | "top" | undefined;
|
|
240
|
+
size?: number | "l" | "m" | "s" | "xl" | undefined;
|
|
241
|
+
font?: "hand" | "mono" | "sans" | "serif" | undefined;
|
|
242
|
+
}, {
|
|
243
|
+
value?: string | undefined;
|
|
244
|
+
align?: "center" | "end" | "start" | undefined;
|
|
245
|
+
valign?: "bottom" | "middle" | "top" | undefined;
|
|
246
|
+
size?: number | "l" | "m" | "s" | "xl" | undefined;
|
|
247
|
+
font?: "hand" | "mono" | "sans" | "serif" | undefined;
|
|
248
|
+
}>;
|
|
249
|
+
readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
250
|
+
value?: string | undefined;
|
|
251
|
+
align?: "center" | "end" | "start" | undefined;
|
|
252
|
+
valign?: "bottom" | "middle" | "top" | undefined;
|
|
253
|
+
size?: number | "l" | "m" | "s" | "xl" | undefined;
|
|
254
|
+
font?: "hand" | "mono" | "sans" | "serif" | undefined;
|
|
255
|
+
}, v.FiniteIssue<number> | v.MaxLengthIssue<string, 100000> | v.MaxValueIssue<number, 1000> | v.MinValueIssue<number, 1> | v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.StringIssue | v.UnionIssue<v.FiniteIssue<number> | v.MaxValueIssue<number, 1000> | v.MinValueIssue<number, 1> | v.NumberIssue | v.PicklistIssue>>;
|
|
256
|
+
readonly "~types"?: {
|
|
257
|
+
readonly input: {
|
|
258
|
+
value?: string | undefined;
|
|
259
|
+
align?: "center" | "end" | "start" | undefined;
|
|
260
|
+
valign?: "bottom" | "middle" | "top" | undefined;
|
|
261
|
+
size?: number | "l" | "m" | "s" | "xl" | undefined;
|
|
262
|
+
font?: "hand" | "mono" | "sans" | "serif" | undefined;
|
|
263
|
+
};
|
|
264
|
+
readonly output: {
|
|
265
|
+
value?: string | undefined;
|
|
266
|
+
align?: "center" | "end" | "start" | undefined;
|
|
267
|
+
valign?: "bottom" | "middle" | "top" | undefined;
|
|
268
|
+
size?: number | "l" | "m" | "s" | "xl" | undefined;
|
|
269
|
+
font?: "hand" | "mono" | "sans" | "serif" | undefined;
|
|
270
|
+
};
|
|
271
|
+
readonly issue: v.FiniteIssue<number> | v.MaxLengthIssue<string, 100000> | v.MaxValueIssue<number, 1000> | v.MinValueIssue<number, 1> | v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.StringIssue | v.UnionIssue<v.FiniteIssue<number> | v.MaxValueIssue<number, 1000> | v.MinValueIssue<number, 1> | v.NumberIssue | v.PicklistIssue>;
|
|
272
|
+
} | undefined;
|
|
273
|
+
}, undefined>;
|
|
274
|
+
readonly href: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 100000, undefined>]>, undefined>;
|
|
275
|
+
readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 100000, undefined>]>, undefined>;
|
|
276
|
+
readonly data: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
277
|
+
readonly from: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>, v.ObjectSchema<{
|
|
278
|
+
readonly item: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>;
|
|
279
|
+
readonly side: v.OptionalSchema<v.PicklistSchema<["auto", "top", "right", "bottom", "left"], undefined>, undefined>;
|
|
280
|
+
readonly anchor: v.OptionalSchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>], undefined>, undefined>;
|
|
281
|
+
}, undefined>, v.ObjectSchema<{
|
|
282
|
+
readonly x: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, 1000000, undefined>]>;
|
|
283
|
+
readonly y: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, 1000000, undefined>]>;
|
|
284
|
+
}, undefined>], undefined>, undefined>;
|
|
285
|
+
readonly to: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>, v.ObjectSchema<{
|
|
286
|
+
readonly item: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>;
|
|
287
|
+
readonly side: v.OptionalSchema<v.PicklistSchema<["auto", "top", "right", "bottom", "left"], undefined>, undefined>;
|
|
288
|
+
readonly anchor: v.OptionalSchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>], undefined>, undefined>;
|
|
289
|
+
}, undefined>, v.ObjectSchema<{
|
|
290
|
+
readonly x: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, 1000000, undefined>]>;
|
|
291
|
+
readonly y: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, 1000000, undefined>]>;
|
|
292
|
+
}, undefined>], undefined>, undefined>;
|
|
293
|
+
}, undefined>;
|
|
294
|
+
}, undefined>, v.ObjectSchema<{
|
|
295
|
+
readonly op: v.LiteralSchema<"remove", undefined>;
|
|
296
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>;
|
|
297
|
+
}, undefined>, v.ObjectSchema<{
|
|
298
|
+
readonly op: v.LiteralSchema<"order", undefined>;
|
|
299
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>;
|
|
300
|
+
readonly to: v.UnionSchema<[v.PicklistSchema<["front", "back", "forward", "backward"], undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>], undefined>;
|
|
301
|
+
}, undefined>, v.ObjectSchema<{
|
|
302
|
+
readonly op: v.LiteralSchema<"reparent", undefined>;
|
|
303
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>;
|
|
304
|
+
readonly parent: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>, undefined>;
|
|
305
|
+
readonly index: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
306
|
+
}, undefined>, v.ObjectSchema<{
|
|
307
|
+
readonly op: v.LiteralSchema<"page.add", undefined>;
|
|
308
|
+
readonly index: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
309
|
+
readonly page: v.ObjectSchema<{
|
|
310
|
+
readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>, undefined>;
|
|
311
|
+
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 100000, undefined>]>;
|
|
312
|
+
readonly background: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
313
|
+
readonly items: v.OptionalSchema<v.ArraySchema<v.GenericSchema, undefined>, undefined>;
|
|
314
|
+
}, undefined>;
|
|
315
|
+
}, undefined>, v.ObjectSchema<{
|
|
316
|
+
readonly op: v.LiteralSchema<"page.set", undefined>;
|
|
317
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>;
|
|
318
|
+
readonly patch: v.ObjectSchema<{
|
|
319
|
+
readonly name: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 100000, undefined>]>, undefined>;
|
|
320
|
+
readonly background: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
321
|
+
}, undefined>;
|
|
322
|
+
}, undefined>, v.ObjectSchema<{
|
|
323
|
+
readonly op: v.LiteralSchema<"page.remove", undefined>;
|
|
324
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>;
|
|
325
|
+
}, undefined>, v.ObjectSchema<{
|
|
326
|
+
readonly op: v.LiteralSchema<"meta.set", undefined>;
|
|
327
|
+
readonly patch: v.LooseObjectSchema<{
|
|
328
|
+
readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 100000, undefined>]>, undefined>;
|
|
329
|
+
readonly modified: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
330
|
+
}, undefined>;
|
|
331
|
+
}, undefined>, v.ObjectSchema<{
|
|
332
|
+
readonly op: v.LiteralSchema<"media.set", undefined>;
|
|
333
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>;
|
|
334
|
+
readonly media: v.ObjectSchema<{
|
|
335
|
+
readonly mime: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
336
|
+
readonly w: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1000000, undefined>]>;
|
|
337
|
+
readonly h: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1000000, undefined>]>;
|
|
338
|
+
readonly src: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 20000000, undefined>]>;
|
|
339
|
+
}, undefined>;
|
|
340
|
+
}, undefined>, v.ObjectSchema<{
|
|
341
|
+
readonly op: v.LiteralSchema<"media.remove", undefined>;
|
|
342
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>;
|
|
343
|
+
}, undefined>], undefined>;
|
|
344
|
+
export declare const OpsSchema: v.SchemaWithPipe<readonly [v.ArraySchema<v.VariantSchema<"op", [v.ObjectSchema<{
|
|
345
|
+
readonly op: v.LiteralSchema<"add", undefined>;
|
|
346
|
+
readonly item: v.GenericSchema;
|
|
347
|
+
readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>, undefined>;
|
|
348
|
+
readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>, undefined>;
|
|
349
|
+
readonly index: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
350
|
+
readonly place: v.OptionalSchema<v.ObjectSchema<{
|
|
351
|
+
readonly rightOf: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>, undefined>;
|
|
352
|
+
readonly leftOf: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>, undefined>;
|
|
353
|
+
readonly above: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>, undefined>;
|
|
354
|
+
readonly below: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>, undefined>;
|
|
355
|
+
readonly inside: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>, undefined>;
|
|
356
|
+
readonly near: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>, undefined>;
|
|
357
|
+
readonly gap: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1000000, undefined>]>, undefined>;
|
|
358
|
+
readonly align: v.OptionalSchema<v.PicklistSchema<["start", "middle", "end"], undefined>, undefined>;
|
|
359
|
+
}, undefined>, undefined>;
|
|
360
|
+
}, undefined>, v.ObjectSchema<{
|
|
361
|
+
readonly op: v.LiteralSchema<"set", undefined>;
|
|
362
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>;
|
|
363
|
+
readonly patch: v.LooseObjectSchema<{
|
|
364
|
+
readonly x: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, 1000000, undefined>]>, undefined>;
|
|
365
|
+
readonly y: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, 1000000, undefined>]>, undefined>;
|
|
366
|
+
readonly w: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1000000, undefined>]>, undefined>;
|
|
367
|
+
readonly h: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1000000, undefined>]>, undefined>;
|
|
368
|
+
readonly rotation: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, 1000000, undefined>]>, undefined>;
|
|
369
|
+
readonly style: v.OptionalSchema<v.ObjectSchema<{
|
|
370
|
+
readonly stroke: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
371
|
+
readonly strokeWidth: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1000000, undefined>]>, v.MaxValueAction<number, 1000, undefined>]>, undefined>;
|
|
372
|
+
readonly dash: v.OptionalSchema<v.PicklistSchema<["solid", "dashed", "dotted"], undefined>, undefined>;
|
|
373
|
+
readonly fill: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
374
|
+
readonly fillMode: v.OptionalSchema<v.PicklistSchema<["solid", "tint", "hatch"], undefined>, undefined>;
|
|
375
|
+
readonly corner: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1000000, undefined>]>, undefined>;
|
|
376
|
+
readonly opacity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
377
|
+
}, undefined>, undefined>;
|
|
378
|
+
readonly text: v.OptionalSchema<Omit<v.ObjectSchema<{
|
|
379
|
+
readonly value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 100000, undefined>]>;
|
|
380
|
+
readonly align: v.OptionalSchema<v.PicklistSchema<["start", "center", "end"], undefined>, undefined>;
|
|
381
|
+
readonly valign: v.OptionalSchema<v.PicklistSchema<["top", "middle", "bottom"], undefined>, undefined>;
|
|
382
|
+
readonly size: v.OptionalSchema<v.UnionSchema<[v.PicklistSchema<["s", "m", "l", "xl"], undefined>, v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 1000, undefined>]>], undefined>, undefined>;
|
|
383
|
+
readonly font: v.OptionalSchema<v.PicklistSchema<["sans", "serif", "mono", "hand"], undefined>, undefined>;
|
|
384
|
+
}, undefined>, "entries" | "~run" | "~standard" | "~types"> & {
|
|
385
|
+
readonly entries: {
|
|
386
|
+
readonly value: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 100000, undefined>]>, undefined>;
|
|
387
|
+
readonly align: v.OptionalSchema<v.OptionalSchema<v.PicklistSchema<["start", "center", "end"], undefined>, undefined>, undefined>;
|
|
388
|
+
readonly valign: v.OptionalSchema<v.OptionalSchema<v.PicklistSchema<["top", "middle", "bottom"], undefined>, undefined>, undefined>;
|
|
389
|
+
readonly size: v.OptionalSchema<v.OptionalSchema<v.UnionSchema<[v.PicklistSchema<["s", "m", "l", "xl"], undefined>, v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 1000, undefined>]>], undefined>, undefined>, undefined>;
|
|
390
|
+
readonly font: v.OptionalSchema<v.OptionalSchema<v.PicklistSchema<["sans", "serif", "mono", "hand"], undefined>, undefined>, undefined>;
|
|
391
|
+
};
|
|
392
|
+
readonly "~standard": v.StandardProps<{
|
|
393
|
+
value?: string | undefined;
|
|
394
|
+
align?: "center" | "end" | "start" | undefined;
|
|
395
|
+
valign?: "bottom" | "middle" | "top" | undefined;
|
|
396
|
+
size?: number | "l" | "m" | "s" | "xl" | undefined;
|
|
397
|
+
font?: "hand" | "mono" | "sans" | "serif" | undefined;
|
|
398
|
+
}, {
|
|
399
|
+
value?: string | undefined;
|
|
400
|
+
align?: "center" | "end" | "start" | undefined;
|
|
401
|
+
valign?: "bottom" | "middle" | "top" | undefined;
|
|
402
|
+
size?: number | "l" | "m" | "s" | "xl" | undefined;
|
|
403
|
+
font?: "hand" | "mono" | "sans" | "serif" | undefined;
|
|
404
|
+
}>;
|
|
405
|
+
readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
406
|
+
value?: string | undefined;
|
|
407
|
+
align?: "center" | "end" | "start" | undefined;
|
|
408
|
+
valign?: "bottom" | "middle" | "top" | undefined;
|
|
409
|
+
size?: number | "l" | "m" | "s" | "xl" | undefined;
|
|
410
|
+
font?: "hand" | "mono" | "sans" | "serif" | undefined;
|
|
411
|
+
}, v.FiniteIssue<number> | v.MaxLengthIssue<string, 100000> | v.MaxValueIssue<number, 1000> | v.MinValueIssue<number, 1> | v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.StringIssue | v.UnionIssue<v.FiniteIssue<number> | v.MaxValueIssue<number, 1000> | v.MinValueIssue<number, 1> | v.NumberIssue | v.PicklistIssue>>;
|
|
412
|
+
readonly "~types"?: {
|
|
413
|
+
readonly input: {
|
|
414
|
+
value?: string | undefined;
|
|
415
|
+
align?: "center" | "end" | "start" | undefined;
|
|
416
|
+
valign?: "bottom" | "middle" | "top" | undefined;
|
|
417
|
+
size?: number | "l" | "m" | "s" | "xl" | undefined;
|
|
418
|
+
font?: "hand" | "mono" | "sans" | "serif" | undefined;
|
|
419
|
+
};
|
|
420
|
+
readonly output: {
|
|
421
|
+
value?: string | undefined;
|
|
422
|
+
align?: "center" | "end" | "start" | undefined;
|
|
423
|
+
valign?: "bottom" | "middle" | "top" | undefined;
|
|
424
|
+
size?: number | "l" | "m" | "s" | "xl" | undefined;
|
|
425
|
+
font?: "hand" | "mono" | "sans" | "serif" | undefined;
|
|
426
|
+
};
|
|
427
|
+
readonly issue: v.FiniteIssue<number> | v.MaxLengthIssue<string, 100000> | v.MaxValueIssue<number, 1000> | v.MinValueIssue<number, 1> | v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.StringIssue | v.UnionIssue<v.FiniteIssue<number> | v.MaxValueIssue<number, 1000> | v.MinValueIssue<number, 1> | v.NumberIssue | v.PicklistIssue>;
|
|
428
|
+
} | undefined;
|
|
429
|
+
}, undefined>;
|
|
430
|
+
readonly href: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 100000, undefined>]>, undefined>;
|
|
431
|
+
readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 100000, undefined>]>, undefined>;
|
|
432
|
+
readonly data: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
433
|
+
readonly from: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>, v.ObjectSchema<{
|
|
434
|
+
readonly item: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>;
|
|
435
|
+
readonly side: v.OptionalSchema<v.PicklistSchema<["auto", "top", "right", "bottom", "left"], undefined>, undefined>;
|
|
436
|
+
readonly anchor: v.OptionalSchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>], undefined>, undefined>;
|
|
437
|
+
}, undefined>, v.ObjectSchema<{
|
|
438
|
+
readonly x: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, 1000000, undefined>]>;
|
|
439
|
+
readonly y: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, 1000000, undefined>]>;
|
|
440
|
+
}, undefined>], undefined>, undefined>;
|
|
441
|
+
readonly to: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>, v.ObjectSchema<{
|
|
442
|
+
readonly item: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>;
|
|
443
|
+
readonly side: v.OptionalSchema<v.PicklistSchema<["auto", "top", "right", "bottom", "left"], undefined>, undefined>;
|
|
444
|
+
readonly anchor: v.OptionalSchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>], undefined>, undefined>;
|
|
445
|
+
}, undefined>, v.ObjectSchema<{
|
|
446
|
+
readonly x: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, 1000000, undefined>]>;
|
|
447
|
+
readonly y: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, 1000000, undefined>]>;
|
|
448
|
+
}, undefined>], undefined>, undefined>;
|
|
449
|
+
}, undefined>;
|
|
450
|
+
}, undefined>, v.ObjectSchema<{
|
|
451
|
+
readonly op: v.LiteralSchema<"remove", undefined>;
|
|
452
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>;
|
|
453
|
+
}, undefined>, v.ObjectSchema<{
|
|
454
|
+
readonly op: v.LiteralSchema<"order", undefined>;
|
|
455
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>;
|
|
456
|
+
readonly to: v.UnionSchema<[v.PicklistSchema<["front", "back", "forward", "backward"], undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>], undefined>;
|
|
457
|
+
}, undefined>, v.ObjectSchema<{
|
|
458
|
+
readonly op: v.LiteralSchema<"reparent", undefined>;
|
|
459
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>;
|
|
460
|
+
readonly parent: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>, undefined>;
|
|
461
|
+
readonly index: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
462
|
+
}, undefined>, v.ObjectSchema<{
|
|
463
|
+
readonly op: v.LiteralSchema<"page.add", undefined>;
|
|
464
|
+
readonly index: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
465
|
+
readonly page: v.ObjectSchema<{
|
|
466
|
+
readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>, undefined>;
|
|
467
|
+
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 100000, undefined>]>;
|
|
468
|
+
readonly background: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
469
|
+
readonly items: v.OptionalSchema<v.ArraySchema<v.GenericSchema, undefined>, undefined>;
|
|
470
|
+
}, undefined>;
|
|
471
|
+
}, undefined>, v.ObjectSchema<{
|
|
472
|
+
readonly op: v.LiteralSchema<"page.set", undefined>;
|
|
473
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>;
|
|
474
|
+
readonly patch: v.ObjectSchema<{
|
|
475
|
+
readonly name: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 100000, undefined>]>, undefined>;
|
|
476
|
+
readonly background: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
477
|
+
}, undefined>;
|
|
478
|
+
}, undefined>, v.ObjectSchema<{
|
|
479
|
+
readonly op: v.LiteralSchema<"page.remove", undefined>;
|
|
480
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>;
|
|
481
|
+
}, undefined>, v.ObjectSchema<{
|
|
482
|
+
readonly op: v.LiteralSchema<"meta.set", undefined>;
|
|
483
|
+
readonly patch: v.LooseObjectSchema<{
|
|
484
|
+
readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 100000, undefined>]>, undefined>;
|
|
485
|
+
readonly modified: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
486
|
+
}, undefined>;
|
|
487
|
+
}, undefined>, v.ObjectSchema<{
|
|
488
|
+
readonly op: v.LiteralSchema<"media.set", undefined>;
|
|
489
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>;
|
|
490
|
+
readonly media: v.ObjectSchema<{
|
|
491
|
+
readonly mime: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
492
|
+
readonly w: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1000000, undefined>]>;
|
|
493
|
+
readonly h: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1000000, undefined>]>;
|
|
494
|
+
readonly src: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 20000000, undefined>]>;
|
|
495
|
+
}, undefined>;
|
|
496
|
+
}, undefined>, v.ObjectSchema<{
|
|
497
|
+
readonly op: v.LiteralSchema<"media.remove", undefined>;
|
|
498
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>;
|
|
499
|
+
}, undefined>], undefined>, undefined>, v.MaxLengthAction<({
|
|
500
|
+
op: "add";
|
|
501
|
+
item: unknown;
|
|
502
|
+
page?: string | undefined;
|
|
503
|
+
parent?: string | undefined;
|
|
504
|
+
index?: number | undefined;
|
|
505
|
+
place?: {
|
|
506
|
+
rightOf?: string | undefined;
|
|
507
|
+
leftOf?: string | undefined;
|
|
508
|
+
above?: string | undefined;
|
|
509
|
+
below?: string | undefined;
|
|
510
|
+
inside?: string | undefined;
|
|
511
|
+
near?: string | undefined;
|
|
512
|
+
gap?: number | undefined;
|
|
513
|
+
align?: "end" | "middle" | "start" | undefined;
|
|
514
|
+
} | undefined;
|
|
515
|
+
} | {
|
|
516
|
+
op: "set";
|
|
517
|
+
id: string;
|
|
518
|
+
patch: {
|
|
519
|
+
x?: number | undefined;
|
|
520
|
+
y?: number | undefined;
|
|
521
|
+
w?: number | undefined;
|
|
522
|
+
h?: number | undefined;
|
|
523
|
+
rotation?: number | undefined;
|
|
524
|
+
style?: {
|
|
525
|
+
stroke?: string | undefined;
|
|
526
|
+
strokeWidth?: number | undefined;
|
|
527
|
+
dash?: "dashed" | "dotted" | "solid" | undefined;
|
|
528
|
+
fill?: string | undefined;
|
|
529
|
+
fillMode?: "hatch" | "solid" | "tint" | undefined;
|
|
530
|
+
corner?: number | undefined;
|
|
531
|
+
opacity?: number | undefined;
|
|
532
|
+
} | undefined;
|
|
533
|
+
text?: {
|
|
534
|
+
value?: string | undefined;
|
|
535
|
+
align?: "center" | "end" | "start" | undefined;
|
|
536
|
+
valign?: "bottom" | "middle" | "top" | undefined;
|
|
537
|
+
size?: number | "l" | "m" | "s" | "xl" | undefined;
|
|
538
|
+
font?: "hand" | "mono" | "sans" | "serif" | undefined;
|
|
539
|
+
} | undefined;
|
|
540
|
+
href?: string | undefined;
|
|
541
|
+
description?: string | undefined;
|
|
542
|
+
data?: {
|
|
543
|
+
[x: string]: unknown;
|
|
544
|
+
} | undefined;
|
|
545
|
+
from?: string | {
|
|
546
|
+
item: string;
|
|
547
|
+
side?: "auto" | "bottom" | "left" | "right" | "top" | undefined;
|
|
548
|
+
anchor?: [number, number] | undefined;
|
|
549
|
+
} | {
|
|
550
|
+
x: number;
|
|
551
|
+
y: number;
|
|
552
|
+
} | undefined;
|
|
553
|
+
to?: string | {
|
|
554
|
+
item: string;
|
|
555
|
+
side?: "auto" | "bottom" | "left" | "right" | "top" | undefined;
|
|
556
|
+
anchor?: [number, number] | undefined;
|
|
557
|
+
} | {
|
|
558
|
+
x: number;
|
|
559
|
+
y: number;
|
|
560
|
+
} | undefined;
|
|
561
|
+
} & {
|
|
562
|
+
[key: string]: unknown;
|
|
563
|
+
};
|
|
564
|
+
} | {
|
|
565
|
+
op: "remove";
|
|
566
|
+
id: string;
|
|
567
|
+
} | {
|
|
568
|
+
op: "order";
|
|
569
|
+
id: string;
|
|
570
|
+
to: number | "back" | "backward" | "forward" | "front";
|
|
571
|
+
} | {
|
|
572
|
+
op: "reparent";
|
|
573
|
+
id: string;
|
|
574
|
+
parent: string | null;
|
|
575
|
+
index?: number | undefined;
|
|
576
|
+
} | {
|
|
577
|
+
op: "page.add";
|
|
578
|
+
index?: number | undefined;
|
|
579
|
+
page: {
|
|
580
|
+
id?: string | undefined;
|
|
581
|
+
name: string;
|
|
582
|
+
background?: string | undefined;
|
|
583
|
+
items?: unknown[] | undefined;
|
|
584
|
+
};
|
|
585
|
+
} | {
|
|
586
|
+
op: "page.set";
|
|
587
|
+
id: string;
|
|
588
|
+
patch: {
|
|
589
|
+
name?: string | undefined;
|
|
590
|
+
background?: string | undefined;
|
|
591
|
+
};
|
|
592
|
+
} | {
|
|
593
|
+
op: "page.remove";
|
|
594
|
+
id: string;
|
|
595
|
+
} | {
|
|
596
|
+
op: "meta.set";
|
|
597
|
+
patch: {
|
|
598
|
+
title?: string | undefined;
|
|
599
|
+
modified?: string | undefined;
|
|
600
|
+
} & {
|
|
601
|
+
[key: string]: unknown;
|
|
602
|
+
};
|
|
603
|
+
} | {
|
|
604
|
+
op: "media.set";
|
|
605
|
+
id: string;
|
|
606
|
+
media: {
|
|
607
|
+
mime: string;
|
|
608
|
+
w: number;
|
|
609
|
+
h: number;
|
|
610
|
+
src: string;
|
|
611
|
+
};
|
|
612
|
+
} | {
|
|
613
|
+
op: "media.remove";
|
|
614
|
+
id: string;
|
|
615
|
+
})[], 1000, undefined>]>;
|
|
616
|
+
export declare const QuerySchema: v.ObjectSchema<{
|
|
617
|
+
readonly kind: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>], undefined>, undefined>;
|
|
618
|
+
/** JSON tools send a string; the JavaScript Query type also accepts RegExp. */
|
|
619
|
+
readonly text: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
620
|
+
readonly within: v.OptionalSchema<v.ObjectSchema<{
|
|
621
|
+
readonly x: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, 1000000, undefined>]>;
|
|
622
|
+
readonly y: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, 1000000, undefined>]>;
|
|
623
|
+
readonly w: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1000000, undefined>]>;
|
|
624
|
+
readonly h: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1000000, undefined>]>;
|
|
625
|
+
}, undefined>, undefined>;
|
|
626
|
+
readonly connectedTo: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>, undefined>;
|
|
627
|
+
readonly direction: v.OptionalSchema<v.PicklistSchema<["in", "out", "both"], undefined>, undefined>;
|
|
628
|
+
readonly inside: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>, undefined>;
|
|
629
|
+
readonly data: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
630
|
+
readonly hidden: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
631
|
+
readonly locked: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
632
|
+
readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>, undefined>;
|
|
633
|
+
}, undefined>;
|
|
634
|
+
export declare const DescribeSchema: v.ObjectSchema<{
|
|
635
|
+
readonly scope: v.OptionalSchema<v.PicklistSchema<["doc", "page", "selection", "viewport"], undefined>, undefined>;
|
|
636
|
+
readonly detail: v.OptionalSchema<v.PicklistSchema<["brief", "normal", "full"], undefined>, undefined>;
|
|
637
|
+
readonly relations: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
638
|
+
readonly freeSpace: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
639
|
+
readonly maxItems: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 10000, undefined>]>, undefined>;
|
|
640
|
+
readonly selection: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>, undefined>, undefined>;
|
|
641
|
+
readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 160, undefined>]>, undefined>;
|
|
642
|
+
readonly since: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, undefined>;
|
|
643
|
+
}, undefined>;
|
|
644
|
+
export declare function schemaError(schema: v.GenericSchema, value: unknown): string | undefined;
|