@tensnap/protocol 0.2.0
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/README.md +143 -0
- package/dist/LICENSE +21 -0
- package/dist/asset.d.ts +17 -0
- package/dist/asset.d.ts.map +1 -0
- package/dist/asset.js +15 -0
- package/dist/asset.js.map +7 -0
- package/dist/binary.d.ts +10 -0
- package/dist/binary.d.ts.map +1 -0
- package/dist/binary.js +95 -0
- package/dist/binary.js.map +7 -0
- package/dist/chart.d.ts +34 -0
- package/dist/chart.d.ts.map +1 -0
- package/dist/chart.js +26 -0
- package/dist/chart.js.map +7 -0
- package/dist/codec.d.ts +12 -0
- package/dist/codec.d.ts.map +1 -0
- package/dist/codec.js +430 -0
- package/dist/codec.js.map +7 -0
- package/dist/controls.d.ts +102 -0
- package/dist/controls.d.ts.map +1 -0
- package/dist/controls.js +53 -0
- package/dist/controls.js.map +7 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +557 -0
- package/dist/index.js.map +7 -0
- package/dist/schemas.d.ts +393 -0
- package/dist/schemas.d.ts.map +1 -0
- package/dist/schemas.js +435 -0
- package/dist/schemas.js.map +7 -0
- package/dist/types.d.ts +180 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +1 -0
- package/dist/types.js.map +7 -0
- package/package.json +79 -0
|
@@ -0,0 +1,393 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ItemSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3
|
+
export declare const ItemDiffSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4
|
+
export declare const ItemKeySchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
5
|
+
export declare const PrimitiveItemKeySchema: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
6
|
+
export declare const MetadataUpdatePayloadSchema: z.ZodObject<{
|
|
7
|
+
time: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
}, z.core.$loose>;
|
|
9
|
+
export declare const StateSyncBoundaryPayloadSchema: z.ZodObject<{
|
|
10
|
+
request_id: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export declare const TickTimingBreakdownSchema: z.ZodObject<{
|
|
13
|
+
simulate_ms: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
communicate_ms: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
render_ms: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
}, z.core.$catchall<z.ZodNumber>>;
|
|
17
|
+
export declare const ActionEndPayloadSchema: z.ZodObject<{
|
|
18
|
+
id: z.ZodString;
|
|
19
|
+
tick_id: z.ZodOptional<z.ZodString>;
|
|
20
|
+
continue: z.ZodOptional<z.ZodBoolean>;
|
|
21
|
+
timings: z.ZodOptional<z.ZodObject<{
|
|
22
|
+
simulate_ms: z.ZodOptional<z.ZodNumber>;
|
|
23
|
+
communicate_ms: z.ZodOptional<z.ZodNumber>;
|
|
24
|
+
render_ms: z.ZodOptional<z.ZodNumber>;
|
|
25
|
+
}, z.core.$catchall<z.ZodNumber>>>;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
export declare const ActionDeletePayloadSchema: z.ZodObject<{
|
|
28
|
+
id: z.ZodString;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
export declare const EnvCreatePayloadSchema: z.ZodObject<{
|
|
31
|
+
id: z.ZodString;
|
|
32
|
+
type: z.ZodEnum<{
|
|
33
|
+
uniform: "uniform";
|
|
34
|
+
"2d": "2d";
|
|
35
|
+
}>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
export declare const EnvDeletePayloadSchema: z.ZodObject<{
|
|
38
|
+
id: z.ZodString;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
export declare const EnvLayerCreatePayloadSchema: z.ZodObject<{
|
|
41
|
+
env_id: z.ZodString;
|
|
42
|
+
layer_id: z.ZodString;
|
|
43
|
+
layer_type: z.ZodString;
|
|
44
|
+
dependency_layer_ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
45
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
export declare const EnvLayerUpdatePayloadSchema: z.ZodObject<{
|
|
48
|
+
env_id: z.ZodString;
|
|
49
|
+
layer_id: z.ZodString;
|
|
50
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
51
|
+
}, z.core.$strip>;
|
|
52
|
+
export declare const EnvLayerDeletePayloadSchema: z.ZodObject<{
|
|
53
|
+
env_id: z.ZodString;
|
|
54
|
+
layer_id: z.ZodString;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
export declare const ItemCreatePayloadSchema: z.ZodObject<{
|
|
57
|
+
env_id: z.ZodString;
|
|
58
|
+
layer_id: z.ZodString;
|
|
59
|
+
items: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
60
|
+
}, z.core.$strip>;
|
|
61
|
+
export declare const ItemUpdatePayloadSchema: z.ZodObject<{
|
|
62
|
+
env_id: z.ZodString;
|
|
63
|
+
layer_id: z.ZodString;
|
|
64
|
+
items: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
65
|
+
}, z.core.$strip>;
|
|
66
|
+
export declare const ItemDeletePayloadSchema: z.ZodObject<{
|
|
67
|
+
env_id: z.ZodString;
|
|
68
|
+
layer_id: z.ZodString;
|
|
69
|
+
items: z.ZodUnion<readonly [z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
export declare const ParameterDeletePayloadSchema: z.ZodObject<{
|
|
72
|
+
id: z.ZodString;
|
|
73
|
+
}, z.core.$strip>;
|
|
74
|
+
export declare const ParameterSyncPayloadSchema: z.ZodObject<{
|
|
75
|
+
id: z.ZodString;
|
|
76
|
+
value: z.ZodUnknown;
|
|
77
|
+
}, z.core.$strip>;
|
|
78
|
+
export declare const ChartDeletePayloadSchema: z.ZodObject<{
|
|
79
|
+
id: z.ZodString;
|
|
80
|
+
}, z.core.$strip>;
|
|
81
|
+
export declare const ChartUpdatePayloadSchema: z.ZodObject<{
|
|
82
|
+
updates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
83
|
+
id: z.ZodString;
|
|
84
|
+
time: z.ZodOptional<z.ZodNumber>;
|
|
85
|
+
value: z.ZodUnknown;
|
|
86
|
+
}, z.core.$strip>>>;
|
|
87
|
+
operations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
88
|
+
id: z.ZodString;
|
|
89
|
+
operation: z.ZodLiteral<"clear">;
|
|
90
|
+
}, z.core.$strip>>>;
|
|
91
|
+
}, z.core.$strip>;
|
|
92
|
+
export declare const LogLevelSchema: z.ZodEnum<{
|
|
93
|
+
error: "error";
|
|
94
|
+
debug: "debug";
|
|
95
|
+
info: "info";
|
|
96
|
+
warning: "warning";
|
|
97
|
+
critical: "critical";
|
|
98
|
+
}>;
|
|
99
|
+
export declare const LogPayloadSchema: z.ZodObject<{
|
|
100
|
+
message: z.ZodString;
|
|
101
|
+
level: z.ZodOptional<z.ZodEnum<{
|
|
102
|
+
error: "error";
|
|
103
|
+
debug: "debug";
|
|
104
|
+
info: "info";
|
|
105
|
+
warning: "warning";
|
|
106
|
+
critical: "critical";
|
|
107
|
+
}>>;
|
|
108
|
+
target: z.ZodOptional<z.ZodString>;
|
|
109
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
110
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
111
|
+
}, z.core.$strip>;
|
|
112
|
+
export declare const ErrorPayloadSchema: z.ZodObject<{
|
|
113
|
+
error: z.ZodString;
|
|
114
|
+
}, z.core.$strip>;
|
|
115
|
+
export declare const AssetMetaPayloadSchema: z.ZodObject<{
|
|
116
|
+
assets: z.ZodArray<z.ZodObject<{
|
|
117
|
+
id: z.ZodString;
|
|
118
|
+
hash: z.ZodString;
|
|
119
|
+
mime: z.ZodString;
|
|
120
|
+
size: z.ZodNumber;
|
|
121
|
+
label: z.ZodOptional<z.ZodString>;
|
|
122
|
+
}, z.core.$strip>>;
|
|
123
|
+
}, z.core.$strip>;
|
|
124
|
+
export declare const AssetDataPayloadSchema: z.ZodObject<{
|
|
125
|
+
id: z.ZodString;
|
|
126
|
+
hash: z.ZodString;
|
|
127
|
+
mime: z.ZodString;
|
|
128
|
+
data: z.ZodUnion<readonly [z.ZodString, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>]>;
|
|
129
|
+
}, z.core.$strip>;
|
|
130
|
+
export declare const AssetDeletePayloadSchema: z.ZodObject<{
|
|
131
|
+
ids: z.ZodArray<z.ZodString>;
|
|
132
|
+
}, z.core.$strip>;
|
|
133
|
+
export declare const AssetSyncPayloadSchema: z.ZodObject<{
|
|
134
|
+
assets: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
135
|
+
}, z.core.$strip>;
|
|
136
|
+
export declare const ScreenshotRequestPayloadSchema: z.ZodObject<{
|
|
137
|
+
request_id: z.ZodString;
|
|
138
|
+
env_id: z.ZodOptional<z.ZodString>;
|
|
139
|
+
chart_id: z.ZodOptional<z.ZodString>;
|
|
140
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
141
|
+
png: "png";
|
|
142
|
+
jpeg: "jpeg";
|
|
143
|
+
}>>;
|
|
144
|
+
quality: z.ZodOptional<z.ZodNumber>;
|
|
145
|
+
}, z.core.$strip>;
|
|
146
|
+
export declare const ScreenshotResponsePayloadSchema: z.ZodObject<{
|
|
147
|
+
request_id: z.ZodString;
|
|
148
|
+
data: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>]>>;
|
|
149
|
+
mime: z.ZodOptional<z.ZodString>;
|
|
150
|
+
error: z.ZodOptional<z.ZodString>;
|
|
151
|
+
}, z.core.$strip>;
|
|
152
|
+
export declare const StateSyncRequestSchema: z.ZodObject<{
|
|
153
|
+
request_id: z.ZodOptional<z.ZodString>;
|
|
154
|
+
parameters: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
155
|
+
id: z.ZodString;
|
|
156
|
+
label: z.ZodString;
|
|
157
|
+
allowRuntimeChange: z.ZodOptional<z.ZodBoolean>;
|
|
158
|
+
type: z.ZodLiteral<"number">;
|
|
159
|
+
value: z.ZodNumber;
|
|
160
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
161
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
162
|
+
step: z.ZodOptional<z.ZodNumber>;
|
|
163
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
164
|
+
id: z.ZodString;
|
|
165
|
+
label: z.ZodString;
|
|
166
|
+
allowRuntimeChange: z.ZodOptional<z.ZodBoolean>;
|
|
167
|
+
type: z.ZodLiteral<"enum">;
|
|
168
|
+
value: z.ZodString;
|
|
169
|
+
options: z.ZodArray<z.ZodString>;
|
|
170
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
171
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
172
|
+
id: z.ZodString;
|
|
173
|
+
label: z.ZodString;
|
|
174
|
+
allowRuntimeChange: z.ZodOptional<z.ZodBoolean>;
|
|
175
|
+
type: z.ZodLiteral<"boolean">;
|
|
176
|
+
value: z.ZodBoolean;
|
|
177
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
178
|
+
id: z.ZodString;
|
|
179
|
+
label: z.ZodString;
|
|
180
|
+
allowRuntimeChange: z.ZodOptional<z.ZodBoolean>;
|
|
181
|
+
type: z.ZodLiteral<"string">;
|
|
182
|
+
value: z.ZodString;
|
|
183
|
+
}, z.core.$strip>]>>;
|
|
184
|
+
actions: z.ZodArray<z.ZodObject<{
|
|
185
|
+
id: z.ZodString;
|
|
186
|
+
label: z.ZodString;
|
|
187
|
+
continuous: z.ZodOptional<z.ZodBoolean>;
|
|
188
|
+
allowRuntimeChange: z.ZodOptional<z.ZodBoolean>;
|
|
189
|
+
}, z.core.$strip>>;
|
|
190
|
+
envs: z.ZodArray<z.ZodObject<{
|
|
191
|
+
id: z.ZodString;
|
|
192
|
+
type: z.ZodString;
|
|
193
|
+
layers: z.ZodArray<z.ZodObject<{
|
|
194
|
+
layer_id: z.ZodString;
|
|
195
|
+
layer_type: z.ZodString;
|
|
196
|
+
}, z.core.$strip>>;
|
|
197
|
+
}, z.core.$strip>>;
|
|
198
|
+
charts: z.ZodArray<z.ZodObject<{
|
|
199
|
+
id: z.ZodString;
|
|
200
|
+
label: z.ZodString;
|
|
201
|
+
color: z.ZodOptional<z.ZodString>;
|
|
202
|
+
}, z.core.$strip>>;
|
|
203
|
+
}, z.core.$strip>;
|
|
204
|
+
export declare const ParameterChangePayloadSchema: z.ZodObject<{
|
|
205
|
+
id: z.ZodString;
|
|
206
|
+
value: z.ZodUnknown;
|
|
207
|
+
}, z.core.$strip>;
|
|
208
|
+
export declare const ActionStartPayloadSchema: z.ZodObject<{
|
|
209
|
+
id: z.ZodString;
|
|
210
|
+
tick_id: z.ZodOptional<z.ZodString>;
|
|
211
|
+
continuous: z.ZodOptional<z.ZodBoolean>;
|
|
212
|
+
}, z.core.$strip>;
|
|
213
|
+
export declare const SimulatorToRendererMessageSchema: z.ZodObject<{
|
|
214
|
+
type: z.ZodEnum<{
|
|
215
|
+
error: "error";
|
|
216
|
+
metadata_update: "metadata_update";
|
|
217
|
+
state_sync_begin: "state_sync_begin";
|
|
218
|
+
state_sync_end: "state_sync_end";
|
|
219
|
+
action_end: "action_end";
|
|
220
|
+
action_create: "action_create";
|
|
221
|
+
action_update: "action_update";
|
|
222
|
+
action_delete: "action_delete";
|
|
223
|
+
env_create: "env_create";
|
|
224
|
+
env_delete: "env_delete";
|
|
225
|
+
env_layer_create: "env_layer_create";
|
|
226
|
+
env_layer_update: "env_layer_update";
|
|
227
|
+
env_layer_delete: "env_layer_delete";
|
|
228
|
+
item_create: "item_create";
|
|
229
|
+
item_update: "item_update";
|
|
230
|
+
item_delete: "item_delete";
|
|
231
|
+
param_create: "param_create";
|
|
232
|
+
param_update: "param_update";
|
|
233
|
+
param_delete: "param_delete";
|
|
234
|
+
param_sync: "param_sync";
|
|
235
|
+
chart_create: "chart_create";
|
|
236
|
+
chart_update: "chart_update";
|
|
237
|
+
chart_delete: "chart_delete";
|
|
238
|
+
asset_meta: "asset_meta";
|
|
239
|
+
asset_data: "asset_data";
|
|
240
|
+
asset_delete: "asset_delete";
|
|
241
|
+
screenshot_request: "screenshot_request";
|
|
242
|
+
log: "log";
|
|
243
|
+
}>;
|
|
244
|
+
payload: z.ZodUnknown;
|
|
245
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
246
|
+
}, z.core.$strip>;
|
|
247
|
+
export declare const RendererToSimulatorMessageSchema: z.ZodObject<{
|
|
248
|
+
type: z.ZodEnum<{
|
|
249
|
+
error: "error";
|
|
250
|
+
state_sync: "state_sync";
|
|
251
|
+
param_change: "param_change";
|
|
252
|
+
action_start: "action_start";
|
|
253
|
+
asset_sync: "asset_sync";
|
|
254
|
+
screenshot_response: "screenshot_response";
|
|
255
|
+
}>;
|
|
256
|
+
payload: z.ZodUnknown;
|
|
257
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
258
|
+
}, z.core.$strip>;
|
|
259
|
+
export declare const AnyProtocolMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
260
|
+
type: z.ZodEnum<{
|
|
261
|
+
error: "error";
|
|
262
|
+
metadata_update: "metadata_update";
|
|
263
|
+
state_sync_begin: "state_sync_begin";
|
|
264
|
+
state_sync_end: "state_sync_end";
|
|
265
|
+
action_end: "action_end";
|
|
266
|
+
action_create: "action_create";
|
|
267
|
+
action_update: "action_update";
|
|
268
|
+
action_delete: "action_delete";
|
|
269
|
+
env_create: "env_create";
|
|
270
|
+
env_delete: "env_delete";
|
|
271
|
+
env_layer_create: "env_layer_create";
|
|
272
|
+
env_layer_update: "env_layer_update";
|
|
273
|
+
env_layer_delete: "env_layer_delete";
|
|
274
|
+
item_create: "item_create";
|
|
275
|
+
item_update: "item_update";
|
|
276
|
+
item_delete: "item_delete";
|
|
277
|
+
param_create: "param_create";
|
|
278
|
+
param_update: "param_update";
|
|
279
|
+
param_delete: "param_delete";
|
|
280
|
+
param_sync: "param_sync";
|
|
281
|
+
chart_create: "chart_create";
|
|
282
|
+
chart_update: "chart_update";
|
|
283
|
+
chart_delete: "chart_delete";
|
|
284
|
+
asset_meta: "asset_meta";
|
|
285
|
+
asset_data: "asset_data";
|
|
286
|
+
asset_delete: "asset_delete";
|
|
287
|
+
screenshot_request: "screenshot_request";
|
|
288
|
+
log: "log";
|
|
289
|
+
}>;
|
|
290
|
+
payload: z.ZodUnknown;
|
|
291
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
292
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
293
|
+
type: z.ZodEnum<{
|
|
294
|
+
error: "error";
|
|
295
|
+
state_sync: "state_sync";
|
|
296
|
+
param_change: "param_change";
|
|
297
|
+
action_start: "action_start";
|
|
298
|
+
asset_sync: "asset_sync";
|
|
299
|
+
screenshot_response: "screenshot_response";
|
|
300
|
+
}>;
|
|
301
|
+
payload: z.ZodUnknown;
|
|
302
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
303
|
+
}, z.core.$strip>]>;
|
|
304
|
+
export declare const getPayloadSchema: (type: string) => z.ZodUnknown | z.ZodUnion<readonly [z.ZodObject<{
|
|
305
|
+
id: z.ZodString;
|
|
306
|
+
label: z.ZodString;
|
|
307
|
+
allowRuntimeChange: z.ZodOptional<z.ZodBoolean>;
|
|
308
|
+
type: z.ZodLiteral<"number">;
|
|
309
|
+
value: z.ZodNumber;
|
|
310
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
311
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
312
|
+
step: z.ZodOptional<z.ZodNumber>;
|
|
313
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
314
|
+
id: z.ZodString;
|
|
315
|
+
label: z.ZodString;
|
|
316
|
+
allowRuntimeChange: z.ZodOptional<z.ZodBoolean>;
|
|
317
|
+
type: z.ZodLiteral<"enum">;
|
|
318
|
+
value: z.ZodString;
|
|
319
|
+
options: z.ZodArray<z.ZodString>;
|
|
320
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
321
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
322
|
+
id: z.ZodString;
|
|
323
|
+
label: z.ZodString;
|
|
324
|
+
allowRuntimeChange: z.ZodOptional<z.ZodBoolean>;
|
|
325
|
+
type: z.ZodLiteral<"boolean">;
|
|
326
|
+
value: z.ZodBoolean;
|
|
327
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
328
|
+
id: z.ZodString;
|
|
329
|
+
label: z.ZodString;
|
|
330
|
+
allowRuntimeChange: z.ZodOptional<z.ZodBoolean>;
|
|
331
|
+
type: z.ZodLiteral<"string">;
|
|
332
|
+
value: z.ZodString;
|
|
333
|
+
}, z.core.$strip>]> | z.ZodObject<{
|
|
334
|
+
time: z.ZodOptional<z.ZodNumber>;
|
|
335
|
+
}, z.core.$loose> | z.ZodObject<{
|
|
336
|
+
request_id: z.ZodOptional<z.ZodString>;
|
|
337
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
338
|
+
id: z.ZodString;
|
|
339
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
340
|
+
env_id: z.ZodString;
|
|
341
|
+
layer_id: z.ZodString;
|
|
342
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
343
|
+
updates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
344
|
+
id: z.ZodString;
|
|
345
|
+
time: z.ZodOptional<z.ZodNumber>;
|
|
346
|
+
value: z.ZodUnknown;
|
|
347
|
+
}, z.core.$strip>>>;
|
|
348
|
+
operations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
349
|
+
id: z.ZodString;
|
|
350
|
+
operation: z.ZodLiteral<"clear">;
|
|
351
|
+
}, z.core.$strip>>>;
|
|
352
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
353
|
+
message: z.ZodString;
|
|
354
|
+
level: z.ZodOptional<z.ZodEnum<{
|
|
355
|
+
error: "error";
|
|
356
|
+
debug: "debug";
|
|
357
|
+
info: "info";
|
|
358
|
+
warning: "warning";
|
|
359
|
+
critical: "critical";
|
|
360
|
+
}>>;
|
|
361
|
+
target: z.ZodOptional<z.ZodString>;
|
|
362
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
363
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
364
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
365
|
+
error: z.ZodString;
|
|
366
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
367
|
+
assets: z.ZodArray<z.ZodObject<{
|
|
368
|
+
id: z.ZodString;
|
|
369
|
+
hash: z.ZodString;
|
|
370
|
+
mime: z.ZodString;
|
|
371
|
+
size: z.ZodNumber;
|
|
372
|
+
label: z.ZodOptional<z.ZodString>;
|
|
373
|
+
}, z.core.$strip>>;
|
|
374
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
375
|
+
ids: z.ZodArray<z.ZodString>;
|
|
376
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
377
|
+
assets: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
378
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
379
|
+
request_id: z.ZodString;
|
|
380
|
+
env_id: z.ZodOptional<z.ZodString>;
|
|
381
|
+
chart_id: z.ZodOptional<z.ZodString>;
|
|
382
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
383
|
+
png: "png";
|
|
384
|
+
jpeg: "jpeg";
|
|
385
|
+
}>>;
|
|
386
|
+
quality: z.ZodOptional<z.ZodNumber>;
|
|
387
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
388
|
+
request_id: z.ZodString;
|
|
389
|
+
data: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>]>>;
|
|
390
|
+
mime: z.ZodOptional<z.ZodString>;
|
|
391
|
+
error: z.ZodOptional<z.ZodString>;
|
|
392
|
+
}, z.core.$strip>;
|
|
393
|
+
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkBxB,eAAO,MAAM,UAAU,wCAAoC,CAAC;AAC5D,eAAO,MAAM,cAAc,wCAAoC,CAAC;AAChE,eAAO,MAAM,aAAa,wCAAoC,CAAC;AAC/D,eAAO,MAAM,sBAAsB,iDAAoC,CAAC;AAExE,eAAO,MAAM,2BAA2B;;iBAE9B,CAAC;AAEX,eAAO,MAAM,8BAA8B;;iBAEzC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;iCAID,CAAC;AAEtC,eAAO,MAAM,sBAAsB;;;;;;;;;iBAKjC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;iBAA+B,CAAC;AAEtE,eAAO,MAAM,sBAAsB;;;;;;iBAGjC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;iBAA+B,CAAC;AAEnE,eAAO,MAAM,2BAA2B;;;;;;iBAMtC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;iBAItC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;iBAGtC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;iBAIlC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;iBAIlC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;iBAIlC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;iBAA+B,CAAC;AAEzE,eAAO,MAAM,0BAA0B;;;iBAGrC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;iBAA+B,CAAC;AAErE,eAAO,MAAM,wBAAwB;;;;;;;;;;iBAGnC,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;EAA4D,CAAC;AAExF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;iBAM3B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;iBAAkC,CAAC;AAElE,eAAO,MAAM,sBAAsB;;;;;;;;iBAEjC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;iBAKjC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;iBAEnC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;iBAEjC,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;;;;;;iBAMzC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;iBAK1C,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAUjC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;iBAGvC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;iBAInC,CAAC;AAEH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiC3C,CAAC;AAEH,eAAO,MAAM,gCAAgC;;;;;;;;;;;iBAW3C,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAGnC,CAAC;AAEH,eAAO,MAAM,gBAAgB,GAAI,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAqC5C,CAAC"}
|