@inf-monkeys-tech/monkeys 1.1.55 → 1.1.57
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/lib/contracts/artifact-platform.d.ts +495 -0
- package/lib/contracts/artifact-platform.d.ts.map +1 -0
- package/lib/contracts/artifact-platform.js +311 -0
- package/lib/contracts/artifact-platform.js.map +1 -0
- package/lib/contracts/declarative-control-http.d.ts +398 -398
- package/lib/contracts/declarative-control.d.ts +41 -41
- package/lib/contracts/declarative-diagnostic.d.ts +2 -2
- package/lib/contracts/declarative-document-import.d.ts +7 -7
- package/lib/contracts/declarative-publication-job.d.ts +111 -111
- package/lib/contracts/declarative-publication-verification.d.ts +1 -1
- package/lib/contracts/design-board.d.ts +6 -6
- package/lib/contracts/engineering-artifacts.d.ts +359 -0
- package/lib/contracts/engineering-artifacts.d.ts.map +1 -0
- package/lib/contracts/engineering-artifacts.js +191 -0
- package/lib/contracts/engineering-artifacts.js.map +1 -0
- package/lib/contracts/index.d.ts +2 -0
- package/lib/contracts/index.d.ts.map +1 -1
- package/lib/contracts/index.js +2 -0
- package/lib/contracts/index.js.map +1 -1
- package/lib/contracts/menu.d.ts +10 -10
- package/lib/contracts/page-expression.d.ts +1 -1
- package/lib/contracts/render.d.ts +22 -22
- package/lib/contracts/tenant.d.ts +8 -8
- package/lib/contracts/theme.d.ts +1 -1
- package/lib/contracts/workflow-definition.d.ts +4 -4
- package/lib/esm/{chunk-66A4GGOV.mjs → chunk-5ZGNWCL4.mjs} +466 -307
- package/lib/esm/chunk-5ZGNWCL4.mjs.map +1 -0
- package/lib/esm/{chunk-RMZW3SVL.mjs → chunk-C3X5SSRD.mjs} +3 -3
- package/lib/esm/chunk-C3X5SSRD.mjs.map +1 -0
- package/lib/esm/{chunk-DIIMDX7F.mjs → chunk-FIZWECL6.mjs} +2878 -2609
- package/lib/esm/chunk-FIZWECL6.mjs.map +1 -0
- package/lib/esm/{chunk-TROZIHS4.mjs → chunk-HJNQDSLC.mjs} +2 -2
- package/lib/esm/{chunk-E6YPJ4DR.mjs → chunk-USWQ4YP5.mjs} +2 -2
- package/lib/esm/{chunk-ITGLKSCE.mjs → chunk-VYC47WKJ.mjs} +540 -3
- package/lib/esm/chunk-VYC47WKJ.mjs.map +1 -0
- package/lib/esm/contracts/index.mjs +66 -4
- package/lib/esm/index.mjs +86 -6
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +21 -3
- package/lib/esm/schemas/index.mjs +63 -3
- package/lib/runtime/artifact-session.d.ts +54 -0
- package/lib/runtime/artifact-session.d.ts.map +1 -0
- package/lib/runtime/artifact-session.js +541 -0
- package/lib/runtime/artifact-session.js.map +1 -0
- package/lib/runtime/index.d.ts +1 -0
- package/lib/runtime/index.d.ts.map +1 -1
- package/lib/runtime/index.js +1 -0
- package/lib/runtime/index.js.map +1 -1
- package/lib/runtime/runtime-definition-wire.d.ts +44 -44
- package/lib/schemas/index.d.ts +48 -46
- package/lib/schemas/index.d.ts.map +1 -1
- package/lib/schemas/index.js +40 -8
- package/lib/schemas/index.js.map +1 -1
- package/package.json +2 -2
- package/lib/esm/chunk-66A4GGOV.mjs.map +0 -1
- package/lib/esm/chunk-DIIMDX7F.mjs.map +0 -1
- package/lib/esm/chunk-ITGLKSCE.mjs.map +0 -1
- package/lib/esm/chunk-RMZW3SVL.mjs.map +0 -1
- /package/lib/esm/{chunk-TROZIHS4.mjs.map → chunk-HJNQDSLC.mjs.map} +0 -0
- /package/lib/esm/{chunk-E6YPJ4DR.mjs.map → chunk-USWQ4YP5.mjs.map} +0 -0
|
@@ -0,0 +1,495 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const BUILTIN_ARTIFACT_KINDS: readonly ["board", "workflow", "document", "cad.part", "cad.assembly", "eda.schematic", "eda.pcb", "eda.circuit"];
|
|
3
|
+
export declare const ArtifactKindSchema: z.ZodString;
|
|
4
|
+
export declare const ArtifactStorageModeSchema: z.ZodEnum<{
|
|
5
|
+
aggregate: "aggregate";
|
|
6
|
+
"loro-aggregate": "loro-aggregate";
|
|
7
|
+
}>;
|
|
8
|
+
export declare const ArtifactCrdtCodecSchema: z.ZodEnum<{
|
|
9
|
+
none: "none";
|
|
10
|
+
"loro-v1": "loro-v1";
|
|
11
|
+
}>;
|
|
12
|
+
export declare const ViewSubjectSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
13
|
+
kind: z.ZodLiteral<"collection">;
|
|
14
|
+
ontologyId: z.ZodString;
|
|
15
|
+
savedQueryId: z.ZodOptional<z.ZodString>;
|
|
16
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
17
|
+
kind: z.ZodLiteral<"record">;
|
|
18
|
+
ontologyId: z.ZodString;
|
|
19
|
+
recordIdParam: z.ZodOptional<z.ZodString>;
|
|
20
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
21
|
+
kind: z.ZodLiteral<"artifact">;
|
|
22
|
+
ontologyId: z.ZodString;
|
|
23
|
+
artifactKind: z.ZodString;
|
|
24
|
+
recordIdParam: z.ZodOptional<z.ZodString>;
|
|
25
|
+
}, z.core.$strict>], "kind">;
|
|
26
|
+
export declare const ViewSortSchema: z.ZodObject<{
|
|
27
|
+
field: z.ZodString;
|
|
28
|
+
direction: z.ZodEnum<{
|
|
29
|
+
asc: "asc";
|
|
30
|
+
desc: "desc";
|
|
31
|
+
}>;
|
|
32
|
+
}, z.core.$strict>;
|
|
33
|
+
export declare const ViewQuerySchema: z.ZodObject<{
|
|
34
|
+
source: z.ZodEnum<{
|
|
35
|
+
filter: "filter";
|
|
36
|
+
self: "self";
|
|
37
|
+
container: "container";
|
|
38
|
+
relation: "relation";
|
|
39
|
+
}>;
|
|
40
|
+
filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, unknown, z.core.$ZodTypeInternals<import("./common").JsonValue, unknown>>>>;
|
|
41
|
+
sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
42
|
+
field: z.ZodString;
|
|
43
|
+
direction: z.ZodEnum<{
|
|
44
|
+
asc: "asc";
|
|
45
|
+
desc: "desc";
|
|
46
|
+
}>;
|
|
47
|
+
}, z.core.$strict>>>;
|
|
48
|
+
groupBy: z.ZodOptional<z.ZodString>;
|
|
49
|
+
containerId: z.ZodOptional<z.ZodString>;
|
|
50
|
+
relationPath: z.ZodOptional<z.ZodString>;
|
|
51
|
+
}, z.core.$strict>;
|
|
52
|
+
export declare const ViewBlockDataSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
53
|
+
kind: z.ZodLiteral<"artifact.body">;
|
|
54
|
+
session: z.ZodDefault<z.ZodEnum<{
|
|
55
|
+
aggregate: "aggregate";
|
|
56
|
+
loro: "loro";
|
|
57
|
+
}>>;
|
|
58
|
+
slice: z.ZodOptional<z.ZodString>;
|
|
59
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
60
|
+
kind: z.ZodLiteral<"record.fields">;
|
|
61
|
+
recordRef: z.ZodDefault<z.ZodString>;
|
|
62
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
63
|
+
kind: z.ZodLiteral<"collection.query">;
|
|
64
|
+
queryRef: z.ZodDefault<z.ZodString>;
|
|
65
|
+
relationPath: z.ZodOptional<z.ZodString>;
|
|
66
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
67
|
+
read: "read";
|
|
68
|
+
create: "create";
|
|
69
|
+
"read-write": "read-write";
|
|
70
|
+
}>>;
|
|
71
|
+
}, z.core.$strict>], "kind">;
|
|
72
|
+
export declare const ViewBlockSchema: z.ZodObject<{
|
|
73
|
+
blockId: z.ZodString;
|
|
74
|
+
capability: z.ZodString;
|
|
75
|
+
slot: z.ZodDefault<z.ZodString>;
|
|
76
|
+
title: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
77
|
+
dataSource: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
78
|
+
kind: z.ZodLiteral<"artifact.body">;
|
|
79
|
+
session: z.ZodDefault<z.ZodEnum<{
|
|
80
|
+
aggregate: "aggregate";
|
|
81
|
+
loro: "loro";
|
|
82
|
+
}>>;
|
|
83
|
+
slice: z.ZodOptional<z.ZodString>;
|
|
84
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
85
|
+
kind: z.ZodLiteral<"record.fields">;
|
|
86
|
+
recordRef: z.ZodDefault<z.ZodString>;
|
|
87
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
88
|
+
kind: z.ZodLiteral<"collection.query">;
|
|
89
|
+
queryRef: z.ZodDefault<z.ZodString>;
|
|
90
|
+
relationPath: z.ZodOptional<z.ZodString>;
|
|
91
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
92
|
+
read: "read";
|
|
93
|
+
create: "create";
|
|
94
|
+
"read-write": "read-write";
|
|
95
|
+
}>>;
|
|
96
|
+
}, z.core.$strict>], "kind">;
|
|
97
|
+
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, unknown, z.core.$ZodTypeInternals<import("./common").JsonValue, unknown>>>>;
|
|
98
|
+
}, z.core.$strict>;
|
|
99
|
+
export declare const ViewWiringRuleSchema: z.ZodObject<{
|
|
100
|
+
sourceBlockId: z.ZodString;
|
|
101
|
+
event: z.ZodString;
|
|
102
|
+
targetBlockId: z.ZodOptional<z.ZodString>;
|
|
103
|
+
targetStateKey: z.ZodOptional<z.ZodString>;
|
|
104
|
+
action: z.ZodString;
|
|
105
|
+
payloadMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, unknown, z.core.$ZodTypeInternals<import("./common").JsonValue, unknown>>>>;
|
|
106
|
+
}, z.core.$strict>;
|
|
107
|
+
export declare const ViewLayoutRegionSchema: z.ZodObject<{
|
|
108
|
+
id: z.ZodString;
|
|
109
|
+
slot: z.ZodString;
|
|
110
|
+
size: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
111
|
+
minSize: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
112
|
+
maxSize: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
113
|
+
collapsible: z.ZodOptional<z.ZodBoolean>;
|
|
114
|
+
}, z.core.$strict>;
|
|
115
|
+
export declare const ViewLayoutSchema: z.ZodObject<{
|
|
116
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
117
|
+
custom: "custom";
|
|
118
|
+
single: "single";
|
|
119
|
+
"split-horizontal": "split-horizontal";
|
|
120
|
+
"split-vertical": "split-vertical";
|
|
121
|
+
"three-pane": "three-pane";
|
|
122
|
+
}>>;
|
|
123
|
+
regions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
124
|
+
id: z.ZodString;
|
|
125
|
+
slot: z.ZodString;
|
|
126
|
+
size: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
127
|
+
minSize: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
128
|
+
maxSize: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
129
|
+
collapsible: z.ZodOptional<z.ZodBoolean>;
|
|
130
|
+
}, z.core.$strict>>>;
|
|
131
|
+
}, z.core.$strict>;
|
|
132
|
+
export declare const ViewSpecSchema: z.ZodObject<{
|
|
133
|
+
contract: z.ZodLiteral<"ViewSpec">;
|
|
134
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
135
|
+
viewId: z.ZodString;
|
|
136
|
+
title: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
|
|
137
|
+
subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
138
|
+
kind: z.ZodLiteral<"collection">;
|
|
139
|
+
ontologyId: z.ZodString;
|
|
140
|
+
savedQueryId: z.ZodOptional<z.ZodString>;
|
|
141
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
142
|
+
kind: z.ZodLiteral<"record">;
|
|
143
|
+
ontologyId: z.ZodString;
|
|
144
|
+
recordIdParam: z.ZodOptional<z.ZodString>;
|
|
145
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
146
|
+
kind: z.ZodLiteral<"artifact">;
|
|
147
|
+
ontologyId: z.ZodString;
|
|
148
|
+
artifactKind: z.ZodString;
|
|
149
|
+
recordIdParam: z.ZodOptional<z.ZodString>;
|
|
150
|
+
}, z.core.$strict>], "kind">;
|
|
151
|
+
query: z.ZodOptional<z.ZodObject<{
|
|
152
|
+
source: z.ZodEnum<{
|
|
153
|
+
filter: "filter";
|
|
154
|
+
self: "self";
|
|
155
|
+
container: "container";
|
|
156
|
+
relation: "relation";
|
|
157
|
+
}>;
|
|
158
|
+
filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, unknown, z.core.$ZodTypeInternals<import("./common").JsonValue, unknown>>>>;
|
|
159
|
+
sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
160
|
+
field: z.ZodString;
|
|
161
|
+
direction: z.ZodEnum<{
|
|
162
|
+
asc: "asc";
|
|
163
|
+
desc: "desc";
|
|
164
|
+
}>;
|
|
165
|
+
}, z.core.$strict>>>;
|
|
166
|
+
groupBy: z.ZodOptional<z.ZodString>;
|
|
167
|
+
containerId: z.ZodOptional<z.ZodString>;
|
|
168
|
+
relationPath: z.ZodOptional<z.ZodString>;
|
|
169
|
+
}, z.core.$strict>>;
|
|
170
|
+
layout: z.ZodDefault<z.ZodObject<{
|
|
171
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
172
|
+
custom: "custom";
|
|
173
|
+
single: "single";
|
|
174
|
+
"split-horizontal": "split-horizontal";
|
|
175
|
+
"split-vertical": "split-vertical";
|
|
176
|
+
"three-pane": "three-pane";
|
|
177
|
+
}>>;
|
|
178
|
+
regions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
179
|
+
id: z.ZodString;
|
|
180
|
+
slot: z.ZodString;
|
|
181
|
+
size: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
182
|
+
minSize: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
183
|
+
maxSize: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
184
|
+
collapsible: z.ZodOptional<z.ZodBoolean>;
|
|
185
|
+
}, z.core.$strict>>>;
|
|
186
|
+
}, z.core.$strict>>;
|
|
187
|
+
blocks: z.ZodArray<z.ZodObject<{
|
|
188
|
+
blockId: z.ZodString;
|
|
189
|
+
capability: z.ZodString;
|
|
190
|
+
slot: z.ZodDefault<z.ZodString>;
|
|
191
|
+
title: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
192
|
+
dataSource: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
193
|
+
kind: z.ZodLiteral<"artifact.body">;
|
|
194
|
+
session: z.ZodDefault<z.ZodEnum<{
|
|
195
|
+
aggregate: "aggregate";
|
|
196
|
+
loro: "loro";
|
|
197
|
+
}>>;
|
|
198
|
+
slice: z.ZodOptional<z.ZodString>;
|
|
199
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
200
|
+
kind: z.ZodLiteral<"record.fields">;
|
|
201
|
+
recordRef: z.ZodDefault<z.ZodString>;
|
|
202
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
203
|
+
kind: z.ZodLiteral<"collection.query">;
|
|
204
|
+
queryRef: z.ZodDefault<z.ZodString>;
|
|
205
|
+
relationPath: z.ZodOptional<z.ZodString>;
|
|
206
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
207
|
+
read: "read";
|
|
208
|
+
create: "create";
|
|
209
|
+
"read-write": "read-write";
|
|
210
|
+
}>>;
|
|
211
|
+
}, z.core.$strict>], "kind">;
|
|
212
|
+
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, unknown, z.core.$ZodTypeInternals<import("./common").JsonValue, unknown>>>>;
|
|
213
|
+
}, z.core.$strict>>;
|
|
214
|
+
wiring: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
215
|
+
sourceBlockId: z.ZodString;
|
|
216
|
+
event: z.ZodString;
|
|
217
|
+
targetBlockId: z.ZodOptional<z.ZodString>;
|
|
218
|
+
targetStateKey: z.ZodOptional<z.ZodString>;
|
|
219
|
+
action: z.ZodString;
|
|
220
|
+
payloadMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, unknown, z.core.$ZodTypeInternals<import("./common").JsonValue, unknown>>>>;
|
|
221
|
+
}, z.core.$strict>>>;
|
|
222
|
+
}, z.core.$strict>;
|
|
223
|
+
export declare const ArtifactProfileSchema: z.ZodObject<{
|
|
224
|
+
contract: z.ZodLiteral<"ArtifactProfile">;
|
|
225
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
226
|
+
artifactKind: z.ZodString;
|
|
227
|
+
bodySchemaRef: z.ZodString;
|
|
228
|
+
storageMode: z.ZodDefault<z.ZodEnum<{
|
|
229
|
+
aggregate: "aggregate";
|
|
230
|
+
"loro-aggregate": "loro-aggregate";
|
|
231
|
+
}>>;
|
|
232
|
+
crdtCodec: z.ZodDefault<z.ZodEnum<{
|
|
233
|
+
none: "none";
|
|
234
|
+
"loro-v1": "loro-v1";
|
|
235
|
+
}>>;
|
|
236
|
+
defaultViewId: z.ZodString;
|
|
237
|
+
views: z.ZodArray<z.ZodObject<{
|
|
238
|
+
contract: z.ZodLiteral<"ViewSpec">;
|
|
239
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
240
|
+
viewId: z.ZodString;
|
|
241
|
+
title: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
|
|
242
|
+
subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
243
|
+
kind: z.ZodLiteral<"collection">;
|
|
244
|
+
ontologyId: z.ZodString;
|
|
245
|
+
savedQueryId: z.ZodOptional<z.ZodString>;
|
|
246
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
247
|
+
kind: z.ZodLiteral<"record">;
|
|
248
|
+
ontologyId: z.ZodString;
|
|
249
|
+
recordIdParam: z.ZodOptional<z.ZodString>;
|
|
250
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
251
|
+
kind: z.ZodLiteral<"artifact">;
|
|
252
|
+
ontologyId: z.ZodString;
|
|
253
|
+
artifactKind: z.ZodString;
|
|
254
|
+
recordIdParam: z.ZodOptional<z.ZodString>;
|
|
255
|
+
}, z.core.$strict>], "kind">;
|
|
256
|
+
query: z.ZodOptional<z.ZodObject<{
|
|
257
|
+
source: z.ZodEnum<{
|
|
258
|
+
filter: "filter";
|
|
259
|
+
self: "self";
|
|
260
|
+
container: "container";
|
|
261
|
+
relation: "relation";
|
|
262
|
+
}>;
|
|
263
|
+
filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, unknown, z.core.$ZodTypeInternals<import("./common").JsonValue, unknown>>>>;
|
|
264
|
+
sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
265
|
+
field: z.ZodString;
|
|
266
|
+
direction: z.ZodEnum<{
|
|
267
|
+
asc: "asc";
|
|
268
|
+
desc: "desc";
|
|
269
|
+
}>;
|
|
270
|
+
}, z.core.$strict>>>;
|
|
271
|
+
groupBy: z.ZodOptional<z.ZodString>;
|
|
272
|
+
containerId: z.ZodOptional<z.ZodString>;
|
|
273
|
+
relationPath: z.ZodOptional<z.ZodString>;
|
|
274
|
+
}, z.core.$strict>>;
|
|
275
|
+
layout: z.ZodDefault<z.ZodObject<{
|
|
276
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
277
|
+
custom: "custom";
|
|
278
|
+
single: "single";
|
|
279
|
+
"split-horizontal": "split-horizontal";
|
|
280
|
+
"split-vertical": "split-vertical";
|
|
281
|
+
"three-pane": "three-pane";
|
|
282
|
+
}>>;
|
|
283
|
+
regions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
284
|
+
id: z.ZodString;
|
|
285
|
+
slot: z.ZodString;
|
|
286
|
+
size: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
287
|
+
minSize: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
288
|
+
maxSize: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
289
|
+
collapsible: z.ZodOptional<z.ZodBoolean>;
|
|
290
|
+
}, z.core.$strict>>>;
|
|
291
|
+
}, z.core.$strict>>;
|
|
292
|
+
blocks: z.ZodArray<z.ZodObject<{
|
|
293
|
+
blockId: z.ZodString;
|
|
294
|
+
capability: z.ZodString;
|
|
295
|
+
slot: z.ZodDefault<z.ZodString>;
|
|
296
|
+
title: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
297
|
+
dataSource: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
298
|
+
kind: z.ZodLiteral<"artifact.body">;
|
|
299
|
+
session: z.ZodDefault<z.ZodEnum<{
|
|
300
|
+
aggregate: "aggregate";
|
|
301
|
+
loro: "loro";
|
|
302
|
+
}>>;
|
|
303
|
+
slice: z.ZodOptional<z.ZodString>;
|
|
304
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
305
|
+
kind: z.ZodLiteral<"record.fields">;
|
|
306
|
+
recordRef: z.ZodDefault<z.ZodString>;
|
|
307
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
308
|
+
kind: z.ZodLiteral<"collection.query">;
|
|
309
|
+
queryRef: z.ZodDefault<z.ZodString>;
|
|
310
|
+
relationPath: z.ZodOptional<z.ZodString>;
|
|
311
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
312
|
+
read: "read";
|
|
313
|
+
create: "create";
|
|
314
|
+
"read-write": "read-write";
|
|
315
|
+
}>>;
|
|
316
|
+
}, z.core.$strict>], "kind">;
|
|
317
|
+
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, unknown, z.core.$ZodTypeInternals<import("./common").JsonValue, unknown>>>>;
|
|
318
|
+
}, z.core.$strict>>;
|
|
319
|
+
wiring: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
320
|
+
sourceBlockId: z.ZodString;
|
|
321
|
+
event: z.ZodString;
|
|
322
|
+
targetBlockId: z.ZodOptional<z.ZodString>;
|
|
323
|
+
targetStateKey: z.ZodOptional<z.ZodString>;
|
|
324
|
+
action: z.ZodString;
|
|
325
|
+
payloadMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, unknown, z.core.$ZodTypeInternals<import("./common").JsonValue, unknown>>>>;
|
|
326
|
+
}, z.core.$strict>>>;
|
|
327
|
+
}, z.core.$strict>>;
|
|
328
|
+
}, z.core.$strict>;
|
|
329
|
+
export declare const ArtifactCollabRoomKeySchema: z.ZodObject<{
|
|
330
|
+
tenantId: z.ZodOptional<z.ZodString>;
|
|
331
|
+
teamId: z.ZodString;
|
|
332
|
+
ontologyId: z.ZodString;
|
|
333
|
+
artifactKind: z.ZodString;
|
|
334
|
+
recordId: z.ZodString;
|
|
335
|
+
}, z.core.$strict>;
|
|
336
|
+
export declare const ArtifactPresenceCursorSchema: z.ZodObject<{
|
|
337
|
+
x: z.ZodNumber;
|
|
338
|
+
y: z.ZodNumber;
|
|
339
|
+
z: z.ZodOptional<z.ZodNumber>;
|
|
340
|
+
}, z.core.$strict>;
|
|
341
|
+
export declare const ArtifactPresenceStateSchema: z.ZodObject<{
|
|
342
|
+
peerId: z.ZodString;
|
|
343
|
+
userId: z.ZodString;
|
|
344
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
345
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
346
|
+
color: z.ZodOptional<z.ZodString>;
|
|
347
|
+
activeViewId: z.ZodOptional<z.ZodString>;
|
|
348
|
+
activeSheetId: z.ZodOptional<z.ZodString>;
|
|
349
|
+
cursor: z.ZodOptional<z.ZodObject<{
|
|
350
|
+
x: z.ZodNumber;
|
|
351
|
+
y: z.ZodNumber;
|
|
352
|
+
z: z.ZodOptional<z.ZodNumber>;
|
|
353
|
+
}, z.core.$strict>>;
|
|
354
|
+
selectionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
355
|
+
updatedAt: z.ZodNumber;
|
|
356
|
+
}, z.core.$strict>;
|
|
357
|
+
export declare const ArtifactCollabClientMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
358
|
+
type: z.ZodLiteral<"join">;
|
|
359
|
+
roomKey: z.ZodObject<{
|
|
360
|
+
tenantId: z.ZodOptional<z.ZodString>;
|
|
361
|
+
teamId: z.ZodString;
|
|
362
|
+
ontologyId: z.ZodString;
|
|
363
|
+
artifactKind: z.ZodString;
|
|
364
|
+
recordId: z.ZodString;
|
|
365
|
+
}, z.core.$strict>;
|
|
366
|
+
clientVersionVectorBase64: z.ZodOptional<z.ZodString>;
|
|
367
|
+
presence: z.ZodOptional<z.ZodObject<{
|
|
368
|
+
userId: z.ZodString;
|
|
369
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
370
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
371
|
+
color: z.ZodOptional<z.ZodString>;
|
|
372
|
+
activeViewId: z.ZodOptional<z.ZodString>;
|
|
373
|
+
activeSheetId: z.ZodOptional<z.ZodString>;
|
|
374
|
+
cursor: z.ZodOptional<z.ZodObject<{
|
|
375
|
+
x: z.ZodNumber;
|
|
376
|
+
y: z.ZodNumber;
|
|
377
|
+
z: z.ZodOptional<z.ZodNumber>;
|
|
378
|
+
}, z.core.$strict>>;
|
|
379
|
+
selectionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
380
|
+
}, z.core.$strict>>;
|
|
381
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
382
|
+
type: z.ZodLiteral<"update">;
|
|
383
|
+
updateBase64: z.ZodString;
|
|
384
|
+
origin: z.ZodOptional<z.ZodString>;
|
|
385
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
386
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
387
|
+
type: z.ZodLiteral<"awareness">;
|
|
388
|
+
presence: z.ZodObject<{
|
|
389
|
+
userId: z.ZodString;
|
|
390
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
391
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
392
|
+
color: z.ZodOptional<z.ZodString>;
|
|
393
|
+
activeViewId: z.ZodOptional<z.ZodString>;
|
|
394
|
+
activeSheetId: z.ZodOptional<z.ZodString>;
|
|
395
|
+
cursor: z.ZodOptional<z.ZodObject<{
|
|
396
|
+
x: z.ZodNumber;
|
|
397
|
+
y: z.ZodNumber;
|
|
398
|
+
z: z.ZodOptional<z.ZodNumber>;
|
|
399
|
+
}, z.core.$strict>>;
|
|
400
|
+
selectionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
401
|
+
}, z.core.$strict>;
|
|
402
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
403
|
+
type: z.ZodLiteral<"checkpoint">;
|
|
404
|
+
requestId: z.ZodString;
|
|
405
|
+
note: z.ZodOptional<z.ZodString>;
|
|
406
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
407
|
+
type: z.ZodLiteral<"ping">;
|
|
408
|
+
ts: z.ZodOptional<z.ZodNumber>;
|
|
409
|
+
}, z.core.$strict>], "type">;
|
|
410
|
+
export declare const ArtifactCollabServerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
411
|
+
type: z.ZodLiteral<"welcome">;
|
|
412
|
+
roomId: z.ZodString;
|
|
413
|
+
peerId: z.ZodString;
|
|
414
|
+
codec: z.ZodEnum<{
|
|
415
|
+
none: "none";
|
|
416
|
+
"loro-v1": "loro-v1";
|
|
417
|
+
}>;
|
|
418
|
+
snapshotBase64: z.ZodString;
|
|
419
|
+
versionVectorBase64: z.ZodString;
|
|
420
|
+
revision: z.ZodNumber;
|
|
421
|
+
peers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
422
|
+
peerId: z.ZodString;
|
|
423
|
+
userId: z.ZodString;
|
|
424
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
425
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
426
|
+
color: z.ZodOptional<z.ZodString>;
|
|
427
|
+
activeViewId: z.ZodOptional<z.ZodString>;
|
|
428
|
+
activeSheetId: z.ZodOptional<z.ZodString>;
|
|
429
|
+
cursor: z.ZodOptional<z.ZodObject<{
|
|
430
|
+
x: z.ZodNumber;
|
|
431
|
+
y: z.ZodNumber;
|
|
432
|
+
z: z.ZodOptional<z.ZodNumber>;
|
|
433
|
+
}, z.core.$strict>>;
|
|
434
|
+
selectionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
435
|
+
updatedAt: z.ZodNumber;
|
|
436
|
+
}, z.core.$strict>>>;
|
|
437
|
+
readOnly: z.ZodDefault<z.ZodBoolean>;
|
|
438
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
439
|
+
type: z.ZodLiteral<"update">;
|
|
440
|
+
updateBase64: z.ZodString;
|
|
441
|
+
senderPeerId: z.ZodString;
|
|
442
|
+
origin: z.ZodOptional<z.ZodString>;
|
|
443
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
444
|
+
type: z.ZodLiteral<"awareness">;
|
|
445
|
+
peers: z.ZodArray<z.ZodObject<{
|
|
446
|
+
peerId: z.ZodString;
|
|
447
|
+
userId: z.ZodString;
|
|
448
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
449
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
450
|
+
color: z.ZodOptional<z.ZodString>;
|
|
451
|
+
activeViewId: z.ZodOptional<z.ZodString>;
|
|
452
|
+
activeSheetId: z.ZodOptional<z.ZodString>;
|
|
453
|
+
cursor: z.ZodOptional<z.ZodObject<{
|
|
454
|
+
x: z.ZodNumber;
|
|
455
|
+
y: z.ZodNumber;
|
|
456
|
+
z: z.ZodOptional<z.ZodNumber>;
|
|
457
|
+
}, z.core.$strict>>;
|
|
458
|
+
selectionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
459
|
+
updatedAt: z.ZodNumber;
|
|
460
|
+
}, z.core.$strict>>;
|
|
461
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
462
|
+
type: z.ZodLiteral<"checkpointed">;
|
|
463
|
+
commitId: z.ZodOptional<z.ZodString>;
|
|
464
|
+
revision: z.ZodNumber;
|
|
465
|
+
updatedTimestamp: z.ZodNumber;
|
|
466
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
467
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
468
|
+
type: z.ZodLiteral<"error">;
|
|
469
|
+
code: z.ZodString;
|
|
470
|
+
message: z.ZodString;
|
|
471
|
+
recoverable: z.ZodDefault<z.ZodBoolean>;
|
|
472
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
473
|
+
type: z.ZodLiteral<"pong">;
|
|
474
|
+
ts: z.ZodOptional<z.ZodNumber>;
|
|
475
|
+
}, z.core.$strict>], "type">;
|
|
476
|
+
export type BuiltinArtifactKind = (typeof BUILTIN_ARTIFACT_KINDS)[number];
|
|
477
|
+
export type ArtifactKind = z.infer<typeof ArtifactKindSchema>;
|
|
478
|
+
export type ArtifactStorageMode = z.infer<typeof ArtifactStorageModeSchema>;
|
|
479
|
+
export type ArtifactCrdtCodec = z.infer<typeof ArtifactCrdtCodecSchema>;
|
|
480
|
+
export type ViewSubject = z.infer<typeof ViewSubjectSchema>;
|
|
481
|
+
export type ViewSort = z.infer<typeof ViewSortSchema>;
|
|
482
|
+
export type ViewQuery = z.infer<typeof ViewQuerySchema>;
|
|
483
|
+
export type ViewBlockDataSource = z.infer<typeof ViewBlockDataSourceSchema>;
|
|
484
|
+
export type ViewBlock = z.infer<typeof ViewBlockSchema>;
|
|
485
|
+
export type ViewWiringRule = z.infer<typeof ViewWiringRuleSchema>;
|
|
486
|
+
export type ViewLayoutRegion = z.infer<typeof ViewLayoutRegionSchema>;
|
|
487
|
+
export type ViewLayout = z.infer<typeof ViewLayoutSchema>;
|
|
488
|
+
export type ViewSpec = z.infer<typeof ViewSpecSchema>;
|
|
489
|
+
export type ArtifactProfile = z.infer<typeof ArtifactProfileSchema>;
|
|
490
|
+
export type ArtifactCollabRoomKey = z.infer<typeof ArtifactCollabRoomKeySchema>;
|
|
491
|
+
export type ArtifactPresenceCursor = z.infer<typeof ArtifactPresenceCursorSchema>;
|
|
492
|
+
export type ArtifactPresenceState = z.infer<typeof ArtifactPresenceStateSchema>;
|
|
493
|
+
export type ArtifactCollabClientMessage = z.infer<typeof ArtifactCollabClientMessageSchema>;
|
|
494
|
+
export type ArtifactCollabServerMessage = z.infer<typeof ArtifactCollabServerMessageSchema>;
|
|
495
|
+
//# sourceMappingURL=artifact-platform.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"artifact-platform.d.ts","sourceRoot":"","sources":["../../src/contracts/artifact-platform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,sBAAsB,mHASzB,CAAC;AAEX,eAAO,MAAM,kBAAkB,aAA2B,CAAC;AAE3D,eAAO,MAAM,yBAAyB;;;EAA0C,CAAC;AAEjF,eAAO,MAAM,uBAAuB;;;EAA8B,CAAC;AAEnE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;4BAuB5B,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;kBAKhB,CAAC;AAEZ,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;kBASjB,CAAC;AAEZ,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;4BAsBpC,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;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