@feltmaps/js-sdk 1.5.0-next.0 → 1.5.0-next.10

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/handler.d.ts CHANGED
@@ -1,6 +1,5 @@
1
- import * as zod from 'zod';
2
1
  import { z } from 'zod';
3
- import { z as zInfer, E as Element, G as Geometry, b as ElementGroup, d as ElementChangeCallbackParams, e as ElementGroupChangeCallbackParams, M as MapInteractionEvent, L as Layer, h as LayerGroup, l as LegendItem, o as LayerFilters, q as Feature, g as LayerChangeCallbackParams, j as LayerGroupChangeCallbackParams, n as LegendItemChangeCallbackParams, A as FilterTernary, r as EntityNode, V as ViewportState, X as UnionToIntersection, Y as PromiseOrNot } from './types-BDviYZ-T.js';
2
+ import { K as zInfer, E as Element, G as GeoJsonGeometry, b as ElementGroup, d as ElementChangeCallbackParams, e as ElementGroupChangeCallbackParams, M as MapInteractionEvent, L as Layer, j as LayerGroup, n as LegendItem, q as LayerFilters, s as LayerFeature, t as GeoJsonFeature, v as GetLayerCategoriesGroup, x as GetLayerHistogramBin, A as AggregationMethod, i as LayerChangeCallbackParams, l as LayerGroupChangeCallbackParams, p as LegendItemChangeCallbackParams, ap as FilterTernary, z as MapDetails, B as EntityNode, T as ToolType, H as ToolSettingsMap, J as ToolSettingsChangeEvent, V as ViewportState, P as ViewportConstraints, aV as UnionToIntersection, aW as PromiseOrNot } from './types-CWwhAtt1.js';
4
3
 
5
4
  type Method<TRequest extends {
6
5
  type: string;
@@ -13,6 +12,9 @@ type Listener<TOptions, TParams> = {
13
12
  options: TOptions;
14
13
  eventParams: TParams;
15
14
  };
15
+ type ListenerNoOptions<TParams> = {
16
+ eventParams: TParams;
17
+ };
16
18
 
17
19
  declare const GetElementMessage: z.ZodObject<{
18
20
  type: z.ZodLiteral<"getElement">;
@@ -123,14 +125,37 @@ declare const OnElementChangeMessage: z.ZodObject<{
123
125
  options: {
124
126
  id: string;
125
127
  };
126
- eventName: "onElementChange";
127
128
  id: string;
129
+ eventName: "onElementChange";
128
130
  }, {
129
131
  options: {
130
132
  id: string;
131
133
  };
134
+ id: string;
132
135
  eventName: "onElementChange";
136
+ }>;
137
+ declare const OnElementDeleteMessage: z.ZodObject<{
138
+ eventName: z.ZodLiteral<"onElementDelete">;
139
+ id: z.ZodString;
140
+ options: z.ZodObject<{
141
+ id: z.ZodString;
142
+ }, "strip", z.ZodTypeAny, {
143
+ id: string;
144
+ }, {
145
+ id: string;
146
+ }>;
147
+ }, "strict", z.ZodTypeAny, {
148
+ options: {
149
+ id: string;
150
+ };
151
+ id: string;
152
+ eventName: "onElementDelete";
153
+ }, {
154
+ options: {
155
+ id: string;
156
+ };
133
157
  id: string;
158
+ eventName: "onElementDelete";
134
159
  }>;
135
160
  declare const OnElementGroupChangeMessage: z.ZodObject<{
136
161
  eventName: z.ZodLiteral<"onElementGroupChange">;
@@ -146,35 +171,1365 @@ declare const OnElementGroupChangeMessage: z.ZodObject<{
146
171
  options: {
147
172
  id: string;
148
173
  };
149
- eventName: "onElementGroupChange";
150
174
  id: string;
175
+ eventName: "onElementGroupChange";
151
176
  }, {
152
177
  options: {
153
178
  id: string;
154
179
  };
155
- eventName: "onElementGroupChange";
156
180
  id: string;
181
+ eventName: "onElementGroupChange";
182
+ }>;
183
+ declare const CreateElementMessage: z.ZodObject<{
184
+ type: z.ZodLiteral<"createElement">;
185
+ params: z.ZodDiscriminatedUnion<"type", [z.ZodObject<Omit<{
186
+ symbol: z.ZodOptional<z.ZodString>;
187
+ type: z.ZodLiteral<"Place">;
188
+ coordinates: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
189
+ id: z.ZodOptional<z.ZodString>;
190
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
191
+ color: z.ZodOptional<z.ZodString>;
192
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
193
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
194
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
195
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
196
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
197
+ frame: z.ZodOptional<z.ZodNullable<z.ZodEnum<["frame-circle", "frame-square"]>>>;
198
+ hideLabel: z.ZodOptional<z.ZodBoolean>;
199
+ }, "id">, "strip", z.ZodTypeAny, {
200
+ type: "Place";
201
+ coordinates: [number, number];
202
+ symbol?: string | undefined;
203
+ groupId?: string | null | undefined;
204
+ color?: string | undefined;
205
+ name?: string | null | undefined;
206
+ description?: string | null | undefined;
207
+ attributes?: Record<string, unknown> | undefined;
208
+ interaction?: "default" | "locked" | undefined;
209
+ imageUrl?: string | null | undefined;
210
+ frame?: "frame-circle" | "frame-square" | null | undefined;
211
+ hideLabel?: boolean | undefined;
212
+ }, {
213
+ type: "Place";
214
+ coordinates: [number, number];
215
+ symbol?: string | undefined;
216
+ groupId?: string | null | undefined;
217
+ color?: string | undefined;
218
+ name?: string | null | undefined;
219
+ description?: string | null | undefined;
220
+ attributes?: Record<string, unknown> | undefined;
221
+ interaction?: "default" | "locked" | undefined;
222
+ imageUrl?: string | null | undefined;
223
+ frame?: "frame-circle" | "frame-square" | null | undefined;
224
+ hideLabel?: boolean | undefined;
225
+ }>, z.ZodObject<Omit<{
226
+ type: z.ZodLiteral<"Path">;
227
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
228
+ id: z.ZodOptional<z.ZodString>;
229
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
230
+ color: z.ZodOptional<z.ZodString>;
231
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
232
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
233
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
234
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
235
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
236
+ strokeOpacity: z.ZodOptional<z.ZodNumber>;
237
+ strokeWidth: z.ZodOptional<z.ZodNumber>;
238
+ strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
239
+ distanceMarker: z.ZodOptional<z.ZodBoolean>;
240
+ endCaps: z.ZodOptional<z.ZodBoolean>;
241
+ routingMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["driving", "cycling", "walking", "flying"]>>>;
242
+ }, "id">, "strip", z.ZodTypeAny, {
243
+ type: "Path";
244
+ coordinates: [number, number][][];
245
+ groupId?: string | null | undefined;
246
+ color?: string | undefined;
247
+ name?: string | null | undefined;
248
+ description?: string | null | undefined;
249
+ attributes?: Record<string, unknown> | undefined;
250
+ interaction?: "default" | "locked" | undefined;
251
+ imageUrl?: string | null | undefined;
252
+ strokeOpacity?: number | undefined;
253
+ strokeWidth?: number | undefined;
254
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
255
+ distanceMarker?: boolean | undefined;
256
+ endCaps?: boolean | undefined;
257
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
258
+ }, {
259
+ type: "Path";
260
+ coordinates: [number, number][][];
261
+ groupId?: string | null | undefined;
262
+ color?: string | undefined;
263
+ name?: string | null | undefined;
264
+ description?: string | null | undefined;
265
+ attributes?: Record<string, unknown> | undefined;
266
+ interaction?: "default" | "locked" | undefined;
267
+ imageUrl?: string | null | undefined;
268
+ strokeOpacity?: number | undefined;
269
+ strokeWidth?: number | undefined;
270
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
271
+ distanceMarker?: boolean | undefined;
272
+ endCaps?: boolean | undefined;
273
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
274
+ }>, z.ZodObject<Omit<{
275
+ type: z.ZodLiteral<"Polygon">;
276
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
277
+ id: z.ZodOptional<z.ZodString>;
278
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
279
+ color: z.ZodOptional<z.ZodString>;
280
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
281
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
282
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
283
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
284
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
285
+ strokeOpacity: z.ZodOptional<z.ZodNumber>;
286
+ strokeWidth: z.ZodOptional<z.ZodNumber>;
287
+ strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
288
+ fillOpacity: z.ZodOptional<z.ZodNumber>;
289
+ areaMarker: z.ZodOptional<z.ZodBoolean>;
290
+ }, "id">, "strip", z.ZodTypeAny, {
291
+ type: "Polygon";
292
+ coordinates: [number, number][][];
293
+ groupId?: string | null | undefined;
294
+ color?: string | undefined;
295
+ name?: string | null | undefined;
296
+ description?: string | null | undefined;
297
+ attributes?: Record<string, unknown> | undefined;
298
+ interaction?: "default" | "locked" | undefined;
299
+ imageUrl?: string | null | undefined;
300
+ strokeOpacity?: number | undefined;
301
+ strokeWidth?: number | undefined;
302
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
303
+ fillOpacity?: number | undefined;
304
+ areaMarker?: boolean | undefined;
305
+ }, {
306
+ type: "Polygon";
307
+ coordinates: [number, number][][];
308
+ groupId?: string | null | undefined;
309
+ color?: string | undefined;
310
+ name?: string | null | undefined;
311
+ description?: string | null | undefined;
312
+ attributes?: Record<string, unknown> | undefined;
313
+ interaction?: "default" | "locked" | undefined;
314
+ imageUrl?: string | null | undefined;
315
+ strokeOpacity?: number | undefined;
316
+ strokeWidth?: number | undefined;
317
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
318
+ fillOpacity?: number | undefined;
319
+ areaMarker?: boolean | undefined;
320
+ }>, z.ZodObject<Omit<{
321
+ type: z.ZodLiteral<"Circle">;
322
+ coordinates: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
323
+ id: z.ZodOptional<z.ZodString>;
324
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
325
+ color: z.ZodOptional<z.ZodString>;
326
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
327
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
328
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
329
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
330
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
331
+ strokeOpacity: z.ZodOptional<z.ZodNumber>;
332
+ strokeWidth: z.ZodOptional<z.ZodNumber>;
333
+ strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
334
+ fillOpacity: z.ZodOptional<z.ZodNumber>;
335
+ radius: z.ZodNumber;
336
+ radiusDisplayAngle: z.ZodOptional<z.ZodNumber>;
337
+ radiusDisplayUnit: z.ZodOptional<z.ZodNullable<z.ZodEnum<["meter", "kilometer", "foot", "mile"]>>>;
338
+ radiusMarker: z.ZodOptional<z.ZodBoolean>;
339
+ }, "id">, "strip", z.ZodTypeAny, {
340
+ type: "Circle";
341
+ coordinates: [number, number];
342
+ radius: number;
343
+ groupId?: string | null | undefined;
344
+ color?: string | undefined;
345
+ name?: string | null | undefined;
346
+ description?: string | null | undefined;
347
+ attributes?: Record<string, unknown> | undefined;
348
+ interaction?: "default" | "locked" | undefined;
349
+ imageUrl?: string | null | undefined;
350
+ strokeOpacity?: number | undefined;
351
+ strokeWidth?: number | undefined;
352
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
353
+ fillOpacity?: number | undefined;
354
+ radiusDisplayAngle?: number | undefined;
355
+ radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
356
+ radiusMarker?: boolean | undefined;
357
+ }, {
358
+ type: "Circle";
359
+ coordinates: [number, number];
360
+ radius: number;
361
+ groupId?: string | null | undefined;
362
+ color?: string | undefined;
363
+ name?: string | null | undefined;
364
+ description?: string | null | undefined;
365
+ attributes?: Record<string, unknown> | undefined;
366
+ interaction?: "default" | "locked" | undefined;
367
+ imageUrl?: string | null | undefined;
368
+ strokeOpacity?: number | undefined;
369
+ strokeWidth?: number | undefined;
370
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
371
+ fillOpacity?: number | undefined;
372
+ radiusDisplayAngle?: number | undefined;
373
+ radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
374
+ radiusMarker?: boolean | undefined;
375
+ }>, z.ZodObject<Omit<{
376
+ type: z.ZodLiteral<"Marker">;
377
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
378
+ id: z.ZodOptional<z.ZodString>;
379
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
380
+ color: z.ZodOptional<z.ZodString>;
381
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
382
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
383
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
384
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
385
+ opacity: z.ZodOptional<z.ZodNumber>;
386
+ size: z.ZodOptional<z.ZodNumber>;
387
+ zoom: z.ZodOptional<z.ZodNumber>;
388
+ }, "id">, "strip", z.ZodTypeAny, {
389
+ type: "Marker";
390
+ coordinates: [number, number][][];
391
+ groupId?: string | null | undefined;
392
+ color?: string | undefined;
393
+ name?: string | null | undefined;
394
+ description?: string | null | undefined;
395
+ attributes?: Record<string, unknown> | undefined;
396
+ interaction?: "default" | "locked" | undefined;
397
+ opacity?: number | undefined;
398
+ size?: number | undefined;
399
+ zoom?: number | undefined;
400
+ }, {
401
+ type: "Marker";
402
+ coordinates: [number, number][][];
403
+ groupId?: string | null | undefined;
404
+ color?: string | undefined;
405
+ name?: string | null | undefined;
406
+ description?: string | null | undefined;
407
+ attributes?: Record<string, unknown> | undefined;
408
+ interaction?: "default" | "locked" | undefined;
409
+ opacity?: number | undefined;
410
+ size?: number | undefined;
411
+ zoom?: number | undefined;
412
+ }>, z.ZodObject<Omit<{
413
+ type: z.ZodLiteral<"Highlighter">;
414
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
415
+ id: z.ZodOptional<z.ZodString>;
416
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
417
+ color: z.ZodOptional<z.ZodString>;
418
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
419
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
420
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
421
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
422
+ opacity: z.ZodOptional<z.ZodNumber>;
423
+ }, "id">, "strip", z.ZodTypeAny, {
424
+ type: "Highlighter";
425
+ coordinates: [number, number][][];
426
+ groupId?: string | null | undefined;
427
+ color?: string | undefined;
428
+ name?: string | null | undefined;
429
+ description?: string | null | undefined;
430
+ attributes?: Record<string, unknown> | undefined;
431
+ interaction?: "default" | "locked" | undefined;
432
+ opacity?: number | undefined;
433
+ }, {
434
+ type: "Highlighter";
435
+ coordinates: [number, number][][];
436
+ groupId?: string | null | undefined;
437
+ color?: string | undefined;
438
+ name?: string | null | undefined;
439
+ description?: string | null | undefined;
440
+ attributes?: Record<string, unknown> | undefined;
441
+ interaction?: "default" | "locked" | undefined;
442
+ opacity?: number | undefined;
443
+ }>, z.ZodObject<Omit<{
444
+ type: z.ZodLiteral<"Image">;
445
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
446
+ id: z.ZodOptional<z.ZodString>;
447
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
448
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
449
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
450
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
451
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
452
+ imageUrl: z.ZodString;
453
+ opacity: z.ZodOptional<z.ZodNumber>;
454
+ }, "id">, "strip", z.ZodTypeAny, {
455
+ type: "Image";
456
+ coordinates: [number, number][][];
457
+ imageUrl: string;
458
+ groupId?: string | null | undefined;
459
+ name?: string | null | undefined;
460
+ description?: string | null | undefined;
461
+ attributes?: Record<string, unknown> | undefined;
462
+ interaction?: "default" | "locked" | undefined;
463
+ opacity?: number | undefined;
464
+ }, {
465
+ type: "Image";
466
+ coordinates: [number, number][][];
467
+ imageUrl: string;
468
+ groupId?: string | null | undefined;
469
+ name?: string | null | undefined;
470
+ description?: string | null | undefined;
471
+ attributes?: Record<string, unknown> | undefined;
472
+ interaction?: "default" | "locked" | undefined;
473
+ opacity?: number | undefined;
474
+ }>, z.ZodObject<Omit<Omit<{
475
+ type: z.ZodLiteral<"Text">;
476
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
477
+ id: z.ZodOptional<z.ZodString>;
478
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
479
+ color: z.ZodOptional<z.ZodString>;
480
+ name: z.ZodOptional<z.ZodString>;
481
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
482
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
483
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
484
+ zoom: z.ZodOptional<z.ZodNumber>;
485
+ position: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
486
+ rotation: z.ZodOptional<z.ZodNumber>;
487
+ scale: z.ZodOptional<z.ZodNumber>;
488
+ text: z.ZodString;
489
+ align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
490
+ style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
491
+ }, "id">, "coordinates" | "name">, "strip", z.ZodTypeAny, {
492
+ type: "Text";
493
+ text: string;
494
+ groupId?: string | null | undefined;
495
+ color?: string | undefined;
496
+ description?: string | null | undefined;
497
+ attributes?: Record<string, unknown> | undefined;
498
+ interaction?: "default" | "locked" | undefined;
499
+ zoom?: number | undefined;
500
+ position?: [number, number] | undefined;
501
+ rotation?: number | undefined;
502
+ scale?: number | undefined;
503
+ align?: "left" | "center" | "right" | undefined;
504
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
505
+ }, {
506
+ type: "Text";
507
+ text: string;
508
+ groupId?: string | null | undefined;
509
+ color?: string | undefined;
510
+ description?: string | null | undefined;
511
+ attributes?: Record<string, unknown> | undefined;
512
+ interaction?: "default" | "locked" | undefined;
513
+ zoom?: number | undefined;
514
+ position?: [number, number] | undefined;
515
+ rotation?: number | undefined;
516
+ scale?: number | undefined;
517
+ align?: "left" | "center" | "right" | undefined;
518
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
519
+ }>, z.ZodObject<Omit<Omit<{
520
+ type: z.ZodLiteral<"Note">;
521
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
522
+ id: z.ZodOptional<z.ZodString>;
523
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
524
+ color: z.ZodOptional<z.ZodString>;
525
+ name: z.ZodOptional<z.ZodString>;
526
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
527
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
528
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
529
+ zoom: z.ZodOptional<z.ZodNumber>;
530
+ position: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
531
+ rotation: z.ZodOptional<z.ZodNumber>;
532
+ scale: z.ZodOptional<z.ZodNumber>;
533
+ text: z.ZodString;
534
+ align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
535
+ style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
536
+ widthScale: z.ZodOptional<z.ZodNumber>;
537
+ }, "id">, "coordinates" | "name">, "strip", z.ZodTypeAny, {
538
+ type: "Note";
539
+ text: string;
540
+ groupId?: string | null | undefined;
541
+ color?: string | undefined;
542
+ description?: string | null | undefined;
543
+ attributes?: Record<string, unknown> | undefined;
544
+ interaction?: "default" | "locked" | undefined;
545
+ zoom?: number | undefined;
546
+ position?: [number, number] | undefined;
547
+ rotation?: number | undefined;
548
+ scale?: number | undefined;
549
+ align?: "left" | "center" | "right" | undefined;
550
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
551
+ widthScale?: number | undefined;
552
+ }, {
553
+ type: "Note";
554
+ text: string;
555
+ groupId?: string | null | undefined;
556
+ color?: string | undefined;
557
+ description?: string | null | undefined;
558
+ attributes?: Record<string, unknown> | undefined;
559
+ interaction?: "default" | "locked" | undefined;
560
+ zoom?: number | undefined;
561
+ position?: [number, number] | undefined;
562
+ rotation?: number | undefined;
563
+ scale?: number | undefined;
564
+ align?: "left" | "center" | "right" | undefined;
565
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
566
+ widthScale?: number | undefined;
567
+ }>]>;
568
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
569
+ params: {
570
+ type: "Place";
571
+ coordinates: [number, number];
572
+ symbol?: string | undefined;
573
+ groupId?: string | null | undefined;
574
+ color?: string | undefined;
575
+ name?: string | null | undefined;
576
+ description?: string | null | undefined;
577
+ attributes?: Record<string, unknown> | undefined;
578
+ interaction?: "default" | "locked" | undefined;
579
+ imageUrl?: string | null | undefined;
580
+ frame?: "frame-circle" | "frame-square" | null | undefined;
581
+ hideLabel?: boolean | undefined;
582
+ } | {
583
+ type: "Path";
584
+ coordinates: [number, number][][];
585
+ groupId?: string | null | undefined;
586
+ color?: string | undefined;
587
+ name?: string | null | undefined;
588
+ description?: string | null | undefined;
589
+ attributes?: Record<string, unknown> | undefined;
590
+ interaction?: "default" | "locked" | undefined;
591
+ imageUrl?: string | null | undefined;
592
+ strokeOpacity?: number | undefined;
593
+ strokeWidth?: number | undefined;
594
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
595
+ distanceMarker?: boolean | undefined;
596
+ endCaps?: boolean | undefined;
597
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
598
+ } | {
599
+ type: "Polygon";
600
+ coordinates: [number, number][][];
601
+ groupId?: string | null | undefined;
602
+ color?: string | undefined;
603
+ name?: string | null | undefined;
604
+ description?: string | null | undefined;
605
+ attributes?: Record<string, unknown> | undefined;
606
+ interaction?: "default" | "locked" | undefined;
607
+ imageUrl?: string | null | undefined;
608
+ strokeOpacity?: number | undefined;
609
+ strokeWidth?: number | undefined;
610
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
611
+ fillOpacity?: number | undefined;
612
+ areaMarker?: boolean | undefined;
613
+ } | {
614
+ type: "Circle";
615
+ coordinates: [number, number];
616
+ radius: number;
617
+ groupId?: string | null | undefined;
618
+ color?: string | undefined;
619
+ name?: string | null | undefined;
620
+ description?: string | null | undefined;
621
+ attributes?: Record<string, unknown> | undefined;
622
+ interaction?: "default" | "locked" | undefined;
623
+ imageUrl?: string | null | undefined;
624
+ strokeOpacity?: number | undefined;
625
+ strokeWidth?: number | undefined;
626
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
627
+ fillOpacity?: number | undefined;
628
+ radiusDisplayAngle?: number | undefined;
629
+ radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
630
+ radiusMarker?: boolean | undefined;
631
+ } | {
632
+ type: "Marker";
633
+ coordinates: [number, number][][];
634
+ groupId?: string | null | undefined;
635
+ color?: string | undefined;
636
+ name?: string | null | undefined;
637
+ description?: string | null | undefined;
638
+ attributes?: Record<string, unknown> | undefined;
639
+ interaction?: "default" | "locked" | undefined;
640
+ opacity?: number | undefined;
641
+ size?: number | undefined;
642
+ zoom?: number | undefined;
643
+ } | {
644
+ type: "Highlighter";
645
+ coordinates: [number, number][][];
646
+ groupId?: string | null | undefined;
647
+ color?: string | undefined;
648
+ name?: string | null | undefined;
649
+ description?: string | null | undefined;
650
+ attributes?: Record<string, unknown> | undefined;
651
+ interaction?: "default" | "locked" | undefined;
652
+ opacity?: number | undefined;
653
+ } | {
654
+ type: "Text";
655
+ text: string;
656
+ groupId?: string | null | undefined;
657
+ color?: string | undefined;
658
+ description?: string | null | undefined;
659
+ attributes?: Record<string, unknown> | undefined;
660
+ interaction?: "default" | "locked" | undefined;
661
+ zoom?: number | undefined;
662
+ position?: [number, number] | undefined;
663
+ rotation?: number | undefined;
664
+ scale?: number | undefined;
665
+ align?: "left" | "center" | "right" | undefined;
666
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
667
+ } | {
668
+ type: "Note";
669
+ text: string;
670
+ groupId?: string | null | undefined;
671
+ color?: string | undefined;
672
+ description?: string | null | undefined;
673
+ attributes?: Record<string, unknown> | undefined;
674
+ interaction?: "default" | "locked" | undefined;
675
+ zoom?: number | undefined;
676
+ position?: [number, number] | undefined;
677
+ rotation?: number | undefined;
678
+ scale?: number | undefined;
679
+ align?: "left" | "center" | "right" | undefined;
680
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
681
+ widthScale?: number | undefined;
682
+ } | {
683
+ type: "Image";
684
+ coordinates: [number, number][][];
685
+ imageUrl: string;
686
+ groupId?: string | null | undefined;
687
+ name?: string | null | undefined;
688
+ description?: string | null | undefined;
689
+ attributes?: Record<string, unknown> | undefined;
690
+ interaction?: "default" | "locked" | undefined;
691
+ opacity?: number | undefined;
692
+ };
693
+ type: "createElement";
694
+ }, {
695
+ params: {
696
+ type: "Place";
697
+ coordinates: [number, number];
698
+ symbol?: string | undefined;
699
+ groupId?: string | null | undefined;
700
+ color?: string | undefined;
701
+ name?: string | null | undefined;
702
+ description?: string | null | undefined;
703
+ attributes?: Record<string, unknown> | undefined;
704
+ interaction?: "default" | "locked" | undefined;
705
+ imageUrl?: string | null | undefined;
706
+ frame?: "frame-circle" | "frame-square" | null | undefined;
707
+ hideLabel?: boolean | undefined;
708
+ } | {
709
+ type: "Path";
710
+ coordinates: [number, number][][];
711
+ groupId?: string | null | undefined;
712
+ color?: string | undefined;
713
+ name?: string | null | undefined;
714
+ description?: string | null | undefined;
715
+ attributes?: Record<string, unknown> | undefined;
716
+ interaction?: "default" | "locked" | undefined;
717
+ imageUrl?: string | null | undefined;
718
+ strokeOpacity?: number | undefined;
719
+ strokeWidth?: number | undefined;
720
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
721
+ distanceMarker?: boolean | undefined;
722
+ endCaps?: boolean | undefined;
723
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
724
+ } | {
725
+ type: "Polygon";
726
+ coordinates: [number, number][][];
727
+ groupId?: string | null | undefined;
728
+ color?: string | undefined;
729
+ name?: string | null | undefined;
730
+ description?: string | null | undefined;
731
+ attributes?: Record<string, unknown> | undefined;
732
+ interaction?: "default" | "locked" | undefined;
733
+ imageUrl?: string | null | undefined;
734
+ strokeOpacity?: number | undefined;
735
+ strokeWidth?: number | undefined;
736
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
737
+ fillOpacity?: number | undefined;
738
+ areaMarker?: boolean | undefined;
739
+ } | {
740
+ type: "Circle";
741
+ coordinates: [number, number];
742
+ radius: number;
743
+ groupId?: string | null | undefined;
744
+ color?: string | undefined;
745
+ name?: string | null | undefined;
746
+ description?: string | null | undefined;
747
+ attributes?: Record<string, unknown> | undefined;
748
+ interaction?: "default" | "locked" | undefined;
749
+ imageUrl?: string | null | undefined;
750
+ strokeOpacity?: number | undefined;
751
+ strokeWidth?: number | undefined;
752
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
753
+ fillOpacity?: number | undefined;
754
+ radiusDisplayAngle?: number | undefined;
755
+ radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
756
+ radiusMarker?: boolean | undefined;
757
+ } | {
758
+ type: "Marker";
759
+ coordinates: [number, number][][];
760
+ groupId?: string | null | undefined;
761
+ color?: string | undefined;
762
+ name?: string | null | undefined;
763
+ description?: string | null | undefined;
764
+ attributes?: Record<string, unknown> | undefined;
765
+ interaction?: "default" | "locked" | undefined;
766
+ opacity?: number | undefined;
767
+ size?: number | undefined;
768
+ zoom?: number | undefined;
769
+ } | {
770
+ type: "Highlighter";
771
+ coordinates: [number, number][][];
772
+ groupId?: string | null | undefined;
773
+ color?: string | undefined;
774
+ name?: string | null | undefined;
775
+ description?: string | null | undefined;
776
+ attributes?: Record<string, unknown> | undefined;
777
+ interaction?: "default" | "locked" | undefined;
778
+ opacity?: number | undefined;
779
+ } | {
780
+ type: "Text";
781
+ text: string;
782
+ groupId?: string | null | undefined;
783
+ color?: string | undefined;
784
+ description?: string | null | undefined;
785
+ attributes?: Record<string, unknown> | undefined;
786
+ interaction?: "default" | "locked" | undefined;
787
+ zoom?: number | undefined;
788
+ position?: [number, number] | undefined;
789
+ rotation?: number | undefined;
790
+ scale?: number | undefined;
791
+ align?: "left" | "center" | "right" | undefined;
792
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
793
+ } | {
794
+ type: "Note";
795
+ text: string;
796
+ groupId?: string | null | undefined;
797
+ color?: string | undefined;
798
+ description?: string | null | undefined;
799
+ attributes?: Record<string, unknown> | undefined;
800
+ interaction?: "default" | "locked" | undefined;
801
+ zoom?: number | undefined;
802
+ position?: [number, number] | undefined;
803
+ rotation?: number | undefined;
804
+ scale?: number | undefined;
805
+ align?: "left" | "center" | "right" | undefined;
806
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
807
+ widthScale?: number | undefined;
808
+ } | {
809
+ type: "Image";
810
+ coordinates: [number, number][][];
811
+ imageUrl: string;
812
+ groupId?: string | null | undefined;
813
+ name?: string | null | undefined;
814
+ description?: string | null | undefined;
815
+ attributes?: Record<string, unknown> | undefined;
816
+ interaction?: "default" | "locked" | undefined;
817
+ opacity?: number | undefined;
818
+ };
819
+ type: "createElement";
820
+ }>;
821
+ declare const UpdateElementMessage: z.ZodObject<{
822
+ type: z.ZodLiteral<"updateElement">;
823
+ params: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
824
+ symbol: z.ZodOptional<z.ZodString>;
825
+ type: z.ZodLiteral<"Place">;
826
+ coordinates: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
827
+ id: z.ZodString;
828
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
829
+ color: z.ZodOptional<z.ZodString>;
830
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
831
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
832
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
833
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
834
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
835
+ frame: z.ZodOptional<z.ZodNullable<z.ZodEnum<["frame-circle", "frame-square"]>>>;
836
+ hideLabel: z.ZodOptional<z.ZodBoolean>;
837
+ }, "strip", z.ZodTypeAny, {
838
+ type: "Place";
839
+ id: string;
840
+ symbol?: string | undefined;
841
+ coordinates?: [number, number] | undefined;
842
+ groupId?: string | null | undefined;
843
+ color?: string | undefined;
844
+ name?: string | null | undefined;
845
+ description?: string | null | undefined;
846
+ attributes?: Record<string, unknown> | undefined;
847
+ interaction?: "default" | "locked" | undefined;
848
+ imageUrl?: string | null | undefined;
849
+ frame?: "frame-circle" | "frame-square" | null | undefined;
850
+ hideLabel?: boolean | undefined;
851
+ }, {
852
+ type: "Place";
853
+ id: string;
854
+ symbol?: string | undefined;
855
+ coordinates?: [number, number] | undefined;
856
+ groupId?: string | null | undefined;
857
+ color?: string | undefined;
858
+ name?: string | null | undefined;
859
+ description?: string | null | undefined;
860
+ attributes?: Record<string, unknown> | undefined;
861
+ interaction?: "default" | "locked" | undefined;
862
+ imageUrl?: string | null | undefined;
863
+ frame?: "frame-circle" | "frame-square" | null | undefined;
864
+ hideLabel?: boolean | undefined;
865
+ }>, z.ZodObject<{
866
+ type: z.ZodLiteral<"Path">;
867
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
868
+ id: z.ZodString;
869
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
870
+ color: z.ZodOptional<z.ZodString>;
871
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
872
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
873
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
874
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
875
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
876
+ strokeOpacity: z.ZodOptional<z.ZodNumber>;
877
+ strokeWidth: z.ZodOptional<z.ZodNumber>;
878
+ strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
879
+ distanceMarker: z.ZodOptional<z.ZodBoolean>;
880
+ endCaps: z.ZodOptional<z.ZodBoolean>;
881
+ routingMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["driving", "cycling", "walking", "flying"]>>>;
882
+ }, "strip", z.ZodTypeAny, {
883
+ type: "Path";
884
+ id: string;
885
+ coordinates?: [number, number][][] | undefined;
886
+ groupId?: string | null | undefined;
887
+ color?: string | undefined;
888
+ name?: string | null | undefined;
889
+ description?: string | null | undefined;
890
+ attributes?: Record<string, unknown> | undefined;
891
+ interaction?: "default" | "locked" | undefined;
892
+ imageUrl?: string | null | undefined;
893
+ strokeOpacity?: number | undefined;
894
+ strokeWidth?: number | undefined;
895
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
896
+ distanceMarker?: boolean | undefined;
897
+ endCaps?: boolean | undefined;
898
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
899
+ }, {
900
+ type: "Path";
901
+ id: string;
902
+ coordinates?: [number, number][][] | undefined;
903
+ groupId?: string | null | undefined;
904
+ color?: string | undefined;
905
+ name?: string | null | undefined;
906
+ description?: string | null | undefined;
907
+ attributes?: Record<string, unknown> | undefined;
908
+ interaction?: "default" | "locked" | undefined;
909
+ imageUrl?: string | null | undefined;
910
+ strokeOpacity?: number | undefined;
911
+ strokeWidth?: number | undefined;
912
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
913
+ distanceMarker?: boolean | undefined;
914
+ endCaps?: boolean | undefined;
915
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
916
+ }>, z.ZodObject<{
917
+ type: z.ZodLiteral<"Polygon">;
918
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
919
+ id: z.ZodString;
920
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
921
+ color: z.ZodOptional<z.ZodString>;
922
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
923
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
924
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
925
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
926
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
927
+ strokeOpacity: z.ZodOptional<z.ZodNumber>;
928
+ strokeWidth: z.ZodOptional<z.ZodNumber>;
929
+ strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
930
+ fillOpacity: z.ZodOptional<z.ZodNumber>;
931
+ areaMarker: z.ZodOptional<z.ZodBoolean>;
932
+ }, "strip", z.ZodTypeAny, {
933
+ type: "Polygon";
934
+ id: string;
935
+ coordinates?: [number, number][][] | undefined;
936
+ groupId?: string | null | undefined;
937
+ color?: string | undefined;
938
+ name?: string | null | undefined;
939
+ description?: string | null | undefined;
940
+ attributes?: Record<string, unknown> | undefined;
941
+ interaction?: "default" | "locked" | undefined;
942
+ imageUrl?: string | null | undefined;
943
+ strokeOpacity?: number | undefined;
944
+ strokeWidth?: number | undefined;
945
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
946
+ fillOpacity?: number | undefined;
947
+ areaMarker?: boolean | undefined;
948
+ }, {
949
+ type: "Polygon";
950
+ id: string;
951
+ coordinates?: [number, number][][] | undefined;
952
+ groupId?: string | null | undefined;
953
+ color?: string | undefined;
954
+ name?: string | null | undefined;
955
+ description?: string | null | undefined;
956
+ attributes?: Record<string, unknown> | undefined;
957
+ interaction?: "default" | "locked" | undefined;
958
+ imageUrl?: string | null | undefined;
959
+ strokeOpacity?: number | undefined;
960
+ strokeWidth?: number | undefined;
961
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
962
+ fillOpacity?: number | undefined;
963
+ areaMarker?: boolean | undefined;
964
+ }>, z.ZodObject<{
965
+ type: z.ZodLiteral<"Circle">;
966
+ coordinates: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
967
+ id: z.ZodString;
968
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
969
+ color: z.ZodOptional<z.ZodString>;
970
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
971
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
972
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
973
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
974
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
975
+ strokeOpacity: z.ZodOptional<z.ZodNumber>;
976
+ strokeWidth: z.ZodOptional<z.ZodNumber>;
977
+ strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
978
+ fillOpacity: z.ZodOptional<z.ZodNumber>;
979
+ radius: z.ZodOptional<z.ZodNumber>;
980
+ radiusDisplayAngle: z.ZodOptional<z.ZodNumber>;
981
+ radiusDisplayUnit: z.ZodOptional<z.ZodNullable<z.ZodEnum<["meter", "kilometer", "foot", "mile"]>>>;
982
+ radiusMarker: z.ZodOptional<z.ZodBoolean>;
983
+ }, "strip", z.ZodTypeAny, {
984
+ type: "Circle";
985
+ id: string;
986
+ coordinates?: [number, number] | undefined;
987
+ groupId?: string | null | undefined;
988
+ color?: string | undefined;
989
+ name?: string | null | undefined;
990
+ description?: string | null | undefined;
991
+ attributes?: Record<string, unknown> | undefined;
992
+ interaction?: "default" | "locked" | undefined;
993
+ imageUrl?: string | null | undefined;
994
+ strokeOpacity?: number | undefined;
995
+ strokeWidth?: number | undefined;
996
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
997
+ fillOpacity?: number | undefined;
998
+ radius?: number | undefined;
999
+ radiusDisplayAngle?: number | undefined;
1000
+ radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
1001
+ radiusMarker?: boolean | undefined;
1002
+ }, {
1003
+ type: "Circle";
1004
+ id: string;
1005
+ coordinates?: [number, number] | undefined;
1006
+ groupId?: string | null | undefined;
1007
+ color?: string | undefined;
1008
+ name?: string | null | undefined;
1009
+ description?: string | null | undefined;
1010
+ attributes?: Record<string, unknown> | undefined;
1011
+ interaction?: "default" | "locked" | undefined;
1012
+ imageUrl?: string | null | undefined;
1013
+ strokeOpacity?: number | undefined;
1014
+ strokeWidth?: number | undefined;
1015
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
1016
+ fillOpacity?: number | undefined;
1017
+ radius?: number | undefined;
1018
+ radiusDisplayAngle?: number | undefined;
1019
+ radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
1020
+ radiusMarker?: boolean | undefined;
1021
+ }>, z.ZodObject<{
1022
+ type: z.ZodLiteral<"Marker">;
1023
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
1024
+ id: z.ZodString;
1025
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1026
+ color: z.ZodOptional<z.ZodString>;
1027
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
1028
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
1029
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1030
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
1031
+ opacity: z.ZodOptional<z.ZodNumber>;
1032
+ size: z.ZodOptional<z.ZodNumber>;
1033
+ zoom: z.ZodOptional<z.ZodNumber>;
1034
+ }, "strip", z.ZodTypeAny, {
1035
+ type: "Marker";
1036
+ id: string;
1037
+ coordinates?: [number, number][][] | undefined;
1038
+ groupId?: string | null | undefined;
1039
+ color?: string | undefined;
1040
+ name?: string | null | undefined;
1041
+ description?: string | null | undefined;
1042
+ attributes?: Record<string, unknown> | undefined;
1043
+ interaction?: "default" | "locked" | undefined;
1044
+ opacity?: number | undefined;
1045
+ size?: number | undefined;
1046
+ zoom?: number | undefined;
1047
+ }, {
1048
+ type: "Marker";
1049
+ id: string;
1050
+ coordinates?: [number, number][][] | undefined;
1051
+ groupId?: string | null | undefined;
1052
+ color?: string | undefined;
1053
+ name?: string | null | undefined;
1054
+ description?: string | null | undefined;
1055
+ attributes?: Record<string, unknown> | undefined;
1056
+ interaction?: "default" | "locked" | undefined;
1057
+ opacity?: number | undefined;
1058
+ size?: number | undefined;
1059
+ zoom?: number | undefined;
1060
+ }>, z.ZodObject<{
1061
+ type: z.ZodLiteral<"Highlighter">;
1062
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
1063
+ id: z.ZodString;
1064
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1065
+ color: z.ZodOptional<z.ZodString>;
1066
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
1067
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
1068
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1069
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
1070
+ opacity: z.ZodOptional<z.ZodNumber>;
1071
+ }, "strip", z.ZodTypeAny, {
1072
+ type: "Highlighter";
1073
+ id: string;
1074
+ coordinates?: [number, number][][] | undefined;
1075
+ groupId?: string | null | undefined;
1076
+ color?: string | undefined;
1077
+ name?: string | null | undefined;
1078
+ description?: string | null | undefined;
1079
+ attributes?: Record<string, unknown> | undefined;
1080
+ interaction?: "default" | "locked" | undefined;
1081
+ opacity?: number | undefined;
1082
+ }, {
1083
+ type: "Highlighter";
1084
+ id: string;
1085
+ coordinates?: [number, number][][] | undefined;
1086
+ groupId?: string | null | undefined;
1087
+ color?: string | undefined;
1088
+ name?: string | null | undefined;
1089
+ description?: string | null | undefined;
1090
+ attributes?: Record<string, unknown> | undefined;
1091
+ interaction?: "default" | "locked" | undefined;
1092
+ opacity?: number | undefined;
1093
+ }>, z.ZodObject<Omit<{
1094
+ type: z.ZodLiteral<"Text">;
1095
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
1096
+ id: z.ZodString;
1097
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1098
+ color: z.ZodOptional<z.ZodString>;
1099
+ name: z.ZodOptional<z.ZodString>;
1100
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
1101
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1102
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
1103
+ zoom: z.ZodOptional<z.ZodNumber>;
1104
+ position: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
1105
+ rotation: z.ZodOptional<z.ZodNumber>;
1106
+ scale: z.ZodOptional<z.ZodNumber>;
1107
+ text: z.ZodOptional<z.ZodString>;
1108
+ align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
1109
+ style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
1110
+ }, "coordinates" | "name">, "strip", z.ZodTypeAny, {
1111
+ type: "Text";
1112
+ id: string;
1113
+ groupId?: string | null | undefined;
1114
+ color?: string | undefined;
1115
+ description?: string | null | undefined;
1116
+ attributes?: Record<string, unknown> | undefined;
1117
+ interaction?: "default" | "locked" | undefined;
1118
+ zoom?: number | undefined;
1119
+ position?: [number, number] | undefined;
1120
+ rotation?: number | undefined;
1121
+ scale?: number | undefined;
1122
+ text?: string | undefined;
1123
+ align?: "left" | "center" | "right" | undefined;
1124
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1125
+ }, {
1126
+ type: "Text";
1127
+ id: string;
1128
+ groupId?: string | null | undefined;
1129
+ color?: string | undefined;
1130
+ description?: string | null | undefined;
1131
+ attributes?: Record<string, unknown> | undefined;
1132
+ interaction?: "default" | "locked" | undefined;
1133
+ zoom?: number | undefined;
1134
+ position?: [number, number] | undefined;
1135
+ rotation?: number | undefined;
1136
+ scale?: number | undefined;
1137
+ text?: string | undefined;
1138
+ align?: "left" | "center" | "right" | undefined;
1139
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1140
+ }>, z.ZodObject<Omit<{
1141
+ type: z.ZodLiteral<"Note">;
1142
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
1143
+ id: z.ZodString;
1144
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1145
+ color: z.ZodOptional<z.ZodString>;
1146
+ name: z.ZodOptional<z.ZodString>;
1147
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
1148
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1149
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
1150
+ zoom: z.ZodOptional<z.ZodNumber>;
1151
+ position: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
1152
+ rotation: z.ZodOptional<z.ZodNumber>;
1153
+ scale: z.ZodOptional<z.ZodNumber>;
1154
+ text: z.ZodOptional<z.ZodString>;
1155
+ align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
1156
+ style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
1157
+ widthScale: z.ZodOptional<z.ZodNumber>;
1158
+ }, "coordinates" | "name">, "strip", z.ZodTypeAny, {
1159
+ type: "Note";
1160
+ id: string;
1161
+ groupId?: string | null | undefined;
1162
+ color?: string | undefined;
1163
+ description?: string | null | undefined;
1164
+ attributes?: Record<string, unknown> | undefined;
1165
+ interaction?: "default" | "locked" | undefined;
1166
+ zoom?: number | undefined;
1167
+ position?: [number, number] | undefined;
1168
+ rotation?: number | undefined;
1169
+ scale?: number | undefined;
1170
+ text?: string | undefined;
1171
+ align?: "left" | "center" | "right" | undefined;
1172
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1173
+ widthScale?: number | undefined;
1174
+ }, {
1175
+ type: "Note";
1176
+ id: string;
1177
+ groupId?: string | null | undefined;
1178
+ color?: string | undefined;
1179
+ description?: string | null | undefined;
1180
+ attributes?: Record<string, unknown> | undefined;
1181
+ interaction?: "default" | "locked" | undefined;
1182
+ zoom?: number | undefined;
1183
+ position?: [number, number] | undefined;
1184
+ rotation?: number | undefined;
1185
+ scale?: number | undefined;
1186
+ text?: string | undefined;
1187
+ align?: "left" | "center" | "right" | undefined;
1188
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1189
+ widthScale?: number | undefined;
1190
+ }>, z.ZodObject<{
1191
+ type: z.ZodLiteral<"Image">;
1192
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
1193
+ id: z.ZodString;
1194
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1195
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
1196
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
1197
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1198
+ interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
1199
+ imageUrl: z.ZodOptional<z.ZodString>;
1200
+ opacity: z.ZodOptional<z.ZodNumber>;
1201
+ }, "strip", z.ZodTypeAny, {
1202
+ type: "Image";
1203
+ id: string;
1204
+ coordinates?: [number, number][][] | undefined;
1205
+ groupId?: string | null | undefined;
1206
+ name?: string | null | undefined;
1207
+ description?: string | null | undefined;
1208
+ attributes?: Record<string, unknown> | undefined;
1209
+ interaction?: "default" | "locked" | undefined;
1210
+ imageUrl?: string | undefined;
1211
+ opacity?: number | undefined;
1212
+ }, {
1213
+ type: "Image";
1214
+ id: string;
1215
+ coordinates?: [number, number][][] | undefined;
1216
+ groupId?: string | null | undefined;
1217
+ name?: string | null | undefined;
1218
+ description?: string | null | undefined;
1219
+ attributes?: Record<string, unknown> | undefined;
1220
+ interaction?: "default" | "locked" | undefined;
1221
+ imageUrl?: string | undefined;
1222
+ opacity?: number | undefined;
1223
+ }>]>;
1224
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
1225
+ params: {
1226
+ type: "Place";
1227
+ id: string;
1228
+ symbol?: string | undefined;
1229
+ coordinates?: [number, number] | undefined;
1230
+ groupId?: string | null | undefined;
1231
+ color?: string | undefined;
1232
+ name?: string | null | undefined;
1233
+ description?: string | null | undefined;
1234
+ attributes?: Record<string, unknown> | undefined;
1235
+ interaction?: "default" | "locked" | undefined;
1236
+ imageUrl?: string | null | undefined;
1237
+ frame?: "frame-circle" | "frame-square" | null | undefined;
1238
+ hideLabel?: boolean | undefined;
1239
+ } | {
1240
+ type: "Path";
1241
+ id: string;
1242
+ coordinates?: [number, number][][] | undefined;
1243
+ groupId?: string | null | undefined;
1244
+ color?: string | undefined;
1245
+ name?: string | null | undefined;
1246
+ description?: string | null | undefined;
1247
+ attributes?: Record<string, unknown> | undefined;
1248
+ interaction?: "default" | "locked" | undefined;
1249
+ imageUrl?: string | null | undefined;
1250
+ strokeOpacity?: number | undefined;
1251
+ strokeWidth?: number | undefined;
1252
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
1253
+ distanceMarker?: boolean | undefined;
1254
+ endCaps?: boolean | undefined;
1255
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
1256
+ } | {
1257
+ type: "Polygon";
1258
+ id: string;
1259
+ coordinates?: [number, number][][] | undefined;
1260
+ groupId?: string | null | undefined;
1261
+ color?: string | undefined;
1262
+ name?: string | null | undefined;
1263
+ description?: string | null | undefined;
1264
+ attributes?: Record<string, unknown> | undefined;
1265
+ interaction?: "default" | "locked" | undefined;
1266
+ imageUrl?: string | null | undefined;
1267
+ strokeOpacity?: number | undefined;
1268
+ strokeWidth?: number | undefined;
1269
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
1270
+ fillOpacity?: number | undefined;
1271
+ areaMarker?: boolean | undefined;
1272
+ } | {
1273
+ type: "Circle";
1274
+ id: string;
1275
+ coordinates?: [number, number] | undefined;
1276
+ groupId?: string | null | undefined;
1277
+ color?: string | undefined;
1278
+ name?: string | null | undefined;
1279
+ description?: string | null | undefined;
1280
+ attributes?: Record<string, unknown> | undefined;
1281
+ interaction?: "default" | "locked" | undefined;
1282
+ imageUrl?: string | null | undefined;
1283
+ strokeOpacity?: number | undefined;
1284
+ strokeWidth?: number | undefined;
1285
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
1286
+ fillOpacity?: number | undefined;
1287
+ radius?: number | undefined;
1288
+ radiusDisplayAngle?: number | undefined;
1289
+ radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
1290
+ radiusMarker?: boolean | undefined;
1291
+ } | {
1292
+ type: "Marker";
1293
+ id: string;
1294
+ coordinates?: [number, number][][] | undefined;
1295
+ groupId?: string | null | undefined;
1296
+ color?: string | undefined;
1297
+ name?: string | null | undefined;
1298
+ description?: string | null | undefined;
1299
+ attributes?: Record<string, unknown> | undefined;
1300
+ interaction?: "default" | "locked" | undefined;
1301
+ opacity?: number | undefined;
1302
+ size?: number | undefined;
1303
+ zoom?: number | undefined;
1304
+ } | {
1305
+ type: "Highlighter";
1306
+ id: string;
1307
+ coordinates?: [number, number][][] | undefined;
1308
+ groupId?: string | null | undefined;
1309
+ color?: string | undefined;
1310
+ name?: string | null | undefined;
1311
+ description?: string | null | undefined;
1312
+ attributes?: Record<string, unknown> | undefined;
1313
+ interaction?: "default" | "locked" | undefined;
1314
+ opacity?: number | undefined;
1315
+ } | {
1316
+ type: "Text";
1317
+ id: string;
1318
+ groupId?: string | null | undefined;
1319
+ color?: string | undefined;
1320
+ description?: string | null | undefined;
1321
+ attributes?: Record<string, unknown> | undefined;
1322
+ interaction?: "default" | "locked" | undefined;
1323
+ zoom?: number | undefined;
1324
+ position?: [number, number] | undefined;
1325
+ rotation?: number | undefined;
1326
+ scale?: number | undefined;
1327
+ text?: string | undefined;
1328
+ align?: "left" | "center" | "right" | undefined;
1329
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1330
+ } | {
1331
+ type: "Note";
1332
+ id: string;
1333
+ groupId?: string | null | undefined;
1334
+ color?: string | undefined;
1335
+ description?: string | null | undefined;
1336
+ attributes?: Record<string, unknown> | undefined;
1337
+ interaction?: "default" | "locked" | undefined;
1338
+ zoom?: number | undefined;
1339
+ position?: [number, number] | undefined;
1340
+ rotation?: number | undefined;
1341
+ scale?: number | undefined;
1342
+ text?: string | undefined;
1343
+ align?: "left" | "center" | "right" | undefined;
1344
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1345
+ widthScale?: number | undefined;
1346
+ } | {
1347
+ type: "Image";
1348
+ id: string;
1349
+ coordinates?: [number, number][][] | undefined;
1350
+ groupId?: string | null | undefined;
1351
+ name?: string | null | undefined;
1352
+ description?: string | null | undefined;
1353
+ attributes?: Record<string, unknown> | undefined;
1354
+ interaction?: "default" | "locked" | undefined;
1355
+ imageUrl?: string | undefined;
1356
+ opacity?: number | undefined;
1357
+ };
1358
+ type: "updateElement";
1359
+ }, {
1360
+ params: {
1361
+ type: "Place";
1362
+ id: string;
1363
+ symbol?: string | undefined;
1364
+ coordinates?: [number, number] | undefined;
1365
+ groupId?: string | null | undefined;
1366
+ color?: string | undefined;
1367
+ name?: string | null | undefined;
1368
+ description?: string | null | undefined;
1369
+ attributes?: Record<string, unknown> | undefined;
1370
+ interaction?: "default" | "locked" | undefined;
1371
+ imageUrl?: string | null | undefined;
1372
+ frame?: "frame-circle" | "frame-square" | null | undefined;
1373
+ hideLabel?: boolean | undefined;
1374
+ } | {
1375
+ type: "Path";
1376
+ id: string;
1377
+ coordinates?: [number, number][][] | undefined;
1378
+ groupId?: string | null | undefined;
1379
+ color?: string | undefined;
1380
+ name?: string | null | undefined;
1381
+ description?: string | null | undefined;
1382
+ attributes?: Record<string, unknown> | undefined;
1383
+ interaction?: "default" | "locked" | undefined;
1384
+ imageUrl?: string | null | undefined;
1385
+ strokeOpacity?: number | undefined;
1386
+ strokeWidth?: number | undefined;
1387
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
1388
+ distanceMarker?: boolean | undefined;
1389
+ endCaps?: boolean | undefined;
1390
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
1391
+ } | {
1392
+ type: "Polygon";
1393
+ id: string;
1394
+ coordinates?: [number, number][][] | undefined;
1395
+ groupId?: string | null | undefined;
1396
+ color?: string | undefined;
1397
+ name?: string | null | undefined;
1398
+ description?: string | null | undefined;
1399
+ attributes?: Record<string, unknown> | undefined;
1400
+ interaction?: "default" | "locked" | undefined;
1401
+ imageUrl?: string | null | undefined;
1402
+ strokeOpacity?: number | undefined;
1403
+ strokeWidth?: number | undefined;
1404
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
1405
+ fillOpacity?: number | undefined;
1406
+ areaMarker?: boolean | undefined;
1407
+ } | {
1408
+ type: "Circle";
1409
+ id: string;
1410
+ coordinates?: [number, number] | undefined;
1411
+ groupId?: string | null | undefined;
1412
+ color?: string | undefined;
1413
+ name?: string | null | undefined;
1414
+ description?: string | null | undefined;
1415
+ attributes?: Record<string, unknown> | undefined;
1416
+ interaction?: "default" | "locked" | undefined;
1417
+ imageUrl?: string | null | undefined;
1418
+ strokeOpacity?: number | undefined;
1419
+ strokeWidth?: number | undefined;
1420
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
1421
+ fillOpacity?: number | undefined;
1422
+ radius?: number | undefined;
1423
+ radiusDisplayAngle?: number | undefined;
1424
+ radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
1425
+ radiusMarker?: boolean | undefined;
1426
+ } | {
1427
+ type: "Marker";
1428
+ id: string;
1429
+ coordinates?: [number, number][][] | undefined;
1430
+ groupId?: string | null | undefined;
1431
+ color?: string | undefined;
1432
+ name?: string | null | undefined;
1433
+ description?: string | null | undefined;
1434
+ attributes?: Record<string, unknown> | undefined;
1435
+ interaction?: "default" | "locked" | undefined;
1436
+ opacity?: number | undefined;
1437
+ size?: number | undefined;
1438
+ zoom?: number | undefined;
1439
+ } | {
1440
+ type: "Highlighter";
1441
+ id: string;
1442
+ coordinates?: [number, number][][] | undefined;
1443
+ groupId?: string | null | undefined;
1444
+ color?: string | undefined;
1445
+ name?: string | null | undefined;
1446
+ description?: string | null | undefined;
1447
+ attributes?: Record<string, unknown> | undefined;
1448
+ interaction?: "default" | "locked" | undefined;
1449
+ opacity?: number | undefined;
1450
+ } | {
1451
+ type: "Text";
1452
+ id: string;
1453
+ groupId?: string | null | undefined;
1454
+ color?: string | undefined;
1455
+ description?: string | null | undefined;
1456
+ attributes?: Record<string, unknown> | undefined;
1457
+ interaction?: "default" | "locked" | undefined;
1458
+ zoom?: number | undefined;
1459
+ position?: [number, number] | undefined;
1460
+ rotation?: number | undefined;
1461
+ scale?: number | undefined;
1462
+ text?: string | undefined;
1463
+ align?: "left" | "center" | "right" | undefined;
1464
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1465
+ } | {
1466
+ type: "Note";
1467
+ id: string;
1468
+ groupId?: string | null | undefined;
1469
+ color?: string | undefined;
1470
+ description?: string | null | undefined;
1471
+ attributes?: Record<string, unknown> | undefined;
1472
+ interaction?: "default" | "locked" | undefined;
1473
+ zoom?: number | undefined;
1474
+ position?: [number, number] | undefined;
1475
+ rotation?: number | undefined;
1476
+ scale?: number | undefined;
1477
+ text?: string | undefined;
1478
+ align?: "left" | "center" | "right" | undefined;
1479
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1480
+ widthScale?: number | undefined;
1481
+ } | {
1482
+ type: "Image";
1483
+ id: string;
1484
+ coordinates?: [number, number][][] | undefined;
1485
+ groupId?: string | null | undefined;
1486
+ name?: string | null | undefined;
1487
+ description?: string | null | undefined;
1488
+ attributes?: Record<string, unknown> | undefined;
1489
+ interaction?: "default" | "locked" | undefined;
1490
+ imageUrl?: string | undefined;
1491
+ opacity?: number | undefined;
1492
+ };
1493
+ type: "updateElement";
1494
+ }>;
1495
+ declare const DeleteElementMessage: z.ZodObject<{
1496
+ type: z.ZodLiteral<"deleteElement">;
1497
+ params: z.ZodString;
1498
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
1499
+ params: string;
1500
+ type: "deleteElement";
1501
+ }, {
1502
+ params: string;
1503
+ type: "deleteElement";
157
1504
  }>;
158
1505
  type ElementsSchema = {
159
1506
  methods: {
160
1507
  getElement: Method<zInfer<typeof GetElementMessage>, Element | null>;
161
- getElementGeometry: Method<zInfer<typeof GetElementGeometryMessage>, Geometry | null>;
1508
+ getElementGeometry: Method<zInfer<typeof GetElementGeometryMessage>, GeoJsonGeometry | null>;
162
1509
  getElements: Method<zInfer<typeof GetElementsMessage>, Array<Element | null>>;
163
1510
  getElementGroup: Method<zInfer<typeof GetGroupMessage$1>, ElementGroup | null>;
164
1511
  getElementGroups: Method<zInfer<typeof GetGroupsMessage$1>, Array<ElementGroup | null>>;
165
1512
  setElementGroupVisibility: Method<zInfer<typeof SetElementGroupVisibilityMessage>, void>;
1513
+ createElement: Method<zInfer<typeof CreateElementMessage>, Element>;
1514
+ updateElement: Method<zInfer<typeof UpdateElementMessage>, Element>;
1515
+ deleteElement: Method<zInfer<typeof DeleteElementMessage>, void>;
166
1516
  };
167
1517
  listeners: {
168
1518
  onElementChange: Listener<zInfer<typeof OnElementChangeMessage.shape.options>, ElementChangeCallbackParams>;
169
1519
  onElementGroupChange: Listener<zInfer<typeof OnElementGroupChangeMessage.shape.options>, ElementGroupChangeCallbackParams>;
1520
+ onElementCreate: ListenerNoOptions<ElementChangeCallbackParams>;
1521
+ onElementCreateEnd: ListenerNoOptions<{
1522
+ element: Element;
1523
+ }>;
1524
+ onElementDelete: Listener<zInfer<typeof OnElementDeleteMessage.shape.options>, void>;
170
1525
  };
171
1526
  };
172
1527
 
173
1528
  type InteractionsSchema = {
174
1529
  methods: {};
175
1530
  listeners: {
176
- onPointerClick: Listener<void, MapInteractionEvent>;
177
- onPointerMove: Listener<void, MapInteractionEvent>;
1531
+ onPointerClick: ListenerNoOptions<MapInteractionEvent>;
1532
+ onPointerMove: ListenerNoOptions<MapInteractionEvent>;
178
1533
  };
179
1534
  };
180
1535
 
@@ -247,14 +1602,14 @@ declare const OnLayerChangeMessage: z.ZodObject<{
247
1602
  options: {
248
1603
  id: string;
249
1604
  };
250
- eventName: "onLayerChange";
251
1605
  id: string;
1606
+ eventName: "onLayerChange";
252
1607
  }, {
253
1608
  options: {
254
1609
  id: string;
255
1610
  };
256
- eventName: "onLayerChange";
257
1611
  id: string;
1612
+ eventName: "onLayerChange";
258
1613
  }>;
259
1614
  declare const SetLayerStyleMessage: z.ZodObject<{
260
1615
  type: z.ZodLiteral<"setLayerStyle">;
@@ -408,14 +1763,14 @@ declare const OnLayerGroupChangeMessage: z.ZodObject<{
408
1763
  options: {
409
1764
  id: string;
410
1765
  };
411
- eventName: "onLayerGroupChange";
412
1766
  id: string;
1767
+ eventName: "onLayerGroupChange";
413
1768
  }, {
414
1769
  options: {
415
1770
  id: string;
416
1771
  };
417
- eventName: "onLayerGroupChange";
418
1772
  id: string;
1773
+ eventName: "onLayerGroupChange";
419
1774
  }>;
420
1775
  declare const GetLegendItemMessage: z.ZodObject<{
421
1776
  type: z.ZodLiteral<"getLegendItem">;
@@ -506,15 +1861,15 @@ declare const OnLegendItemChangeMessage: z.ZodObject<{
506
1861
  id: string;
507
1862
  layerId: string;
508
1863
  };
509
- eventName: "onLegendItemChange";
510
1864
  id: string;
1865
+ eventName: "onLegendItemChange";
511
1866
  }, {
512
1867
  options: {
513
1868
  id: string;
514
1869
  layerId: string;
515
1870
  };
516
- eventName: "onLegendItemChange";
517
1871
  id: string;
1872
+ eventName: "onLegendItemChange";
518
1873
  }>;
519
1874
  declare const SetLegendItemVisibilityMessage: z.ZodObject<{
520
1875
  type: z.ZodLiteral<"setLegendItemVisibility">;
@@ -601,28 +1956,51 @@ declare const SetFiltersMessage: z.ZodObject<{
601
1956
  note: z.ZodOptional<z.ZodString>;
602
1957
  }, "strip", z.ZodTypeAny, {
603
1958
  layerId: string;
604
- filters: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null;
1959
+ filters: boolean | FilterTernary | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | null;
605
1960
  note?: string | undefined;
606
1961
  }, {
607
1962
  layerId: string;
608
- filters: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null;
1963
+ filters: boolean | FilterTernary | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | null;
609
1964
  note?: string | undefined;
610
1965
  }>;
611
1966
  }, z.UnknownKeysParam, z.ZodTypeAny, {
612
1967
  params: {
613
1968
  layerId: string;
614
- filters: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null;
1969
+ filters: boolean | FilterTernary | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | null;
615
1970
  note?: string | undefined;
616
1971
  };
617
1972
  type: "setLayerFilters";
618
1973
  }, {
619
1974
  params: {
620
1975
  layerId: string;
621
- filters: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null;
1976
+ filters: boolean | FilterTernary | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | null;
622
1977
  note?: string | undefined;
623
1978
  };
624
1979
  type: "setLayerFilters";
625
1980
  }>;
1981
+ declare const OnLayerFiltersChangeMessage: z.ZodObject<{
1982
+ eventName: z.ZodLiteral<"onLayerFiltersChange">;
1983
+ id: z.ZodString;
1984
+ options: z.ZodObject<{
1985
+ layerId: z.ZodString;
1986
+ }, "strip", z.ZodTypeAny, {
1987
+ layerId: string;
1988
+ }, {
1989
+ layerId: string;
1990
+ }>;
1991
+ }, "strict", z.ZodTypeAny, {
1992
+ options: {
1993
+ layerId: string;
1994
+ };
1995
+ id: string;
1996
+ eventName: "onLayerFiltersChange";
1997
+ }, {
1998
+ options: {
1999
+ layerId: string;
2000
+ };
2001
+ id: string;
2002
+ eventName: "onLayerFiltersChange";
2003
+ }>;
626
2004
  declare const GetRenderedFeaturesMessage: z.ZodObject<{
627
2005
  type: z.ZodLiteral<"getRenderedFeatures">;
628
2006
  params: z.ZodOptional<z.ZodObject<{
@@ -703,6 +2081,471 @@ declare const GetRenderedFeaturesMessage: z.ZodObject<{
703
2081
  } | undefined;
704
2082
  } | undefined;
705
2083
  }>;
2084
+ declare const GetFeatureMessage: z.ZodObject<{
2085
+ type: z.ZodLiteral<"getFeature">;
2086
+ params: z.ZodObject<{
2087
+ id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
2088
+ layerId: z.ZodString;
2089
+ }, "strip", z.ZodTypeAny, {
2090
+ id: string | number;
2091
+ layerId: string;
2092
+ }, {
2093
+ id: string | number;
2094
+ layerId: string;
2095
+ }>;
2096
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
2097
+ params: {
2098
+ id: string | number;
2099
+ layerId: string;
2100
+ };
2101
+ type: "getFeature";
2102
+ }, {
2103
+ params: {
2104
+ id: string | number;
2105
+ layerId: string;
2106
+ };
2107
+ type: "getFeature";
2108
+ }>;
2109
+ declare const GetGeoJsonFeatureMessage: z.ZodObject<{
2110
+ type: z.ZodLiteral<"getGeoJsonFeature">;
2111
+ params: z.ZodObject<{
2112
+ id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
2113
+ layerId: z.ZodString;
2114
+ }, "strip", z.ZodTypeAny, {
2115
+ id: string | number;
2116
+ layerId: string;
2117
+ }, {
2118
+ id: string | number;
2119
+ layerId: string;
2120
+ }>;
2121
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
2122
+ params: {
2123
+ id: string | number;
2124
+ layerId: string;
2125
+ };
2126
+ type: "getGeoJsonFeature";
2127
+ }, {
2128
+ params: {
2129
+ id: string | number;
2130
+ layerId: string;
2131
+ };
2132
+ type: "getGeoJsonFeature";
2133
+ }>;
2134
+ declare const GetLayerCategoriesMessage: z.ZodObject<{
2135
+ type: z.ZodLiteral<"getCategoryData">;
2136
+ params: z.ZodObject<{
2137
+ layerId: z.ZodString;
2138
+ attribute: z.ZodString;
2139
+ limit: z.ZodOptional<z.ZodNumber>;
2140
+ boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
2141
+ type: z.ZodLiteral<"Polygon">;
2142
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
2143
+ }, "strip", z.ZodTypeAny, {
2144
+ type: "Polygon";
2145
+ coordinates: [number, number][][];
2146
+ }, {
2147
+ type: "Polygon";
2148
+ coordinates: [number, number][][];
2149
+ }>, z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">]>>;
2150
+ filters: z.ZodOptional<z.ZodUnion<[z.ZodType<FilterTernary, z.ZodTypeDef, FilterTernary>, z.ZodUnion<[z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["in", "ni"]>, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>, "many">, z.ZodNull]>], null>, z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["lt", "gt", "le", "ge", "eq", "ne", "cn", "nc", "is", "isnt"]>, z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>], null>]>, z.ZodNull, z.ZodBoolean]>>;
2151
+ values: z.ZodOptional<z.ZodObject<{
2152
+ boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
2153
+ type: z.ZodLiteral<"Polygon">;
2154
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
2155
+ }, "strip", z.ZodTypeAny, {
2156
+ type: "Polygon";
2157
+ coordinates: [number, number][][];
2158
+ }, {
2159
+ type: "Polygon";
2160
+ coordinates: [number, number][][];
2161
+ }>, z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">]>>;
2162
+ filters: z.ZodOptional<z.ZodUnion<[z.ZodType<FilterTernary, z.ZodTypeDef, FilterTernary>, z.ZodUnion<[z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["in", "ni"]>, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>, "many">, z.ZodNull]>], null>, z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["lt", "gt", "le", "ge", "eq", "ne", "cn", "nc", "is", "isnt"]>, z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>], null>]>, z.ZodNull, z.ZodBoolean]>>;
2163
+ aggregation: z.ZodOptional<z.ZodObject<{
2164
+ method: z.ZodEnum<["avg", "max", "min", "sum", "median"]>;
2165
+ attribute: z.ZodString;
2166
+ }, "strip", z.ZodTypeAny, {
2167
+ attribute: string;
2168
+ method: "avg" | "max" | "min" | "sum" | "median";
2169
+ }, {
2170
+ attribute: string;
2171
+ method: "avg" | "max" | "min" | "sum" | "median";
2172
+ }>>;
2173
+ }, "strip", z.ZodTypeAny, {
2174
+ filters?: boolean | FilterTernary | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | null | undefined;
2175
+ boundary?: [number, number, number, number] | [number, number][] | {
2176
+ type: "Polygon";
2177
+ coordinates: [number, number][][];
2178
+ } | undefined;
2179
+ aggregation?: {
2180
+ attribute: string;
2181
+ method: "avg" | "max" | "min" | "sum" | "median";
2182
+ } | undefined;
2183
+ }, {
2184
+ filters?: boolean | FilterTernary | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | null | undefined;
2185
+ boundary?: [number, number, number, number] | [number, number][] | {
2186
+ type: "Polygon";
2187
+ coordinates: [number, number][][];
2188
+ } | undefined;
2189
+ aggregation?: {
2190
+ attribute: string;
2191
+ method: "avg" | "max" | "min" | "sum" | "median";
2192
+ } | undefined;
2193
+ }>>;
2194
+ }, "strip", z.ZodTypeAny, {
2195
+ attribute: string;
2196
+ layerId: string;
2197
+ values?: {
2198
+ filters?: boolean | FilterTernary | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | null | undefined;
2199
+ boundary?: [number, number, number, number] | [number, number][] | {
2200
+ type: "Polygon";
2201
+ coordinates: [number, number][][];
2202
+ } | undefined;
2203
+ aggregation?: {
2204
+ attribute: string;
2205
+ method: "avg" | "max" | "min" | "sum" | "median";
2206
+ } | undefined;
2207
+ } | undefined;
2208
+ filters?: boolean | FilterTernary | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | null | undefined;
2209
+ boundary?: [number, number, number, number] | [number, number][] | {
2210
+ type: "Polygon";
2211
+ coordinates: [number, number][][];
2212
+ } | undefined;
2213
+ limit?: number | undefined;
2214
+ }, {
2215
+ attribute: string;
2216
+ layerId: string;
2217
+ values?: {
2218
+ filters?: boolean | FilterTernary | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | null | undefined;
2219
+ boundary?: [number, number, number, number] | [number, number][] | {
2220
+ type: "Polygon";
2221
+ coordinates: [number, number][][];
2222
+ } | undefined;
2223
+ aggregation?: {
2224
+ attribute: string;
2225
+ method: "avg" | "max" | "min" | "sum" | "median";
2226
+ } | undefined;
2227
+ } | undefined;
2228
+ filters?: boolean | FilterTernary | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | null | undefined;
2229
+ boundary?: [number, number, number, number] | [number, number][] | {
2230
+ type: "Polygon";
2231
+ coordinates: [number, number][][];
2232
+ } | undefined;
2233
+ limit?: number | undefined;
2234
+ }>;
2235
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
2236
+ params: {
2237
+ attribute: string;
2238
+ layerId: string;
2239
+ values?: {
2240
+ filters?: boolean | FilterTernary | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | null | undefined;
2241
+ boundary?: [number, number, number, number] | [number, number][] | {
2242
+ type: "Polygon";
2243
+ coordinates: [number, number][][];
2244
+ } | undefined;
2245
+ aggregation?: {
2246
+ attribute: string;
2247
+ method: "avg" | "max" | "min" | "sum" | "median";
2248
+ } | undefined;
2249
+ } | undefined;
2250
+ filters?: boolean | FilterTernary | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | null | undefined;
2251
+ boundary?: [number, number, number, number] | [number, number][] | {
2252
+ type: "Polygon";
2253
+ coordinates: [number, number][][];
2254
+ } | undefined;
2255
+ limit?: number | undefined;
2256
+ };
2257
+ type: "getCategoryData";
2258
+ }, {
2259
+ params: {
2260
+ attribute: string;
2261
+ layerId: string;
2262
+ values?: {
2263
+ filters?: boolean | FilterTernary | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | null | undefined;
2264
+ boundary?: [number, number, number, number] | [number, number][] | {
2265
+ type: "Polygon";
2266
+ coordinates: [number, number][][];
2267
+ } | undefined;
2268
+ aggregation?: {
2269
+ attribute: string;
2270
+ method: "avg" | "max" | "min" | "sum" | "median";
2271
+ } | undefined;
2272
+ } | undefined;
2273
+ filters?: boolean | FilterTernary | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | null | undefined;
2274
+ boundary?: [number, number, number, number] | [number, number][] | {
2275
+ type: "Polygon";
2276
+ coordinates: [number, number][][];
2277
+ } | undefined;
2278
+ limit?: number | undefined;
2279
+ };
2280
+ type: "getCategoryData";
2281
+ }>;
2282
+ declare const GetLayerHistogramMessage: z.ZodObject<{
2283
+ type: z.ZodLiteral<"getHistogramData">;
2284
+ params: z.ZodObject<{
2285
+ layerId: z.ZodString;
2286
+ attribute: z.ZodString;
2287
+ steps: z.ZodUnion<[z.ZodObject<{
2288
+ type: z.ZodLiteral<"equal-intervals">;
2289
+ count: z.ZodNumber;
2290
+ }, "strip", z.ZodTypeAny, {
2291
+ type: "equal-intervals";
2292
+ count: number;
2293
+ }, {
2294
+ type: "equal-intervals";
2295
+ count: number;
2296
+ }>, z.ZodObject<{
2297
+ type: z.ZodLiteral<"time-interval">;
2298
+ interval: z.ZodEnum<["hour", "day", "week", "month", "year"]>;
2299
+ }, "strip", z.ZodTypeAny, {
2300
+ type: "time-interval";
2301
+ interval: "hour" | "day" | "week" | "month" | "year";
2302
+ }, {
2303
+ type: "time-interval";
2304
+ interval: "hour" | "day" | "week" | "month" | "year";
2305
+ }>, z.ZodArray<z.ZodNumber, "many">]>;
2306
+ boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
2307
+ type: z.ZodLiteral<"Polygon">;
2308
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
2309
+ }, "strip", z.ZodTypeAny, {
2310
+ type: "Polygon";
2311
+ coordinates: [number, number][][];
2312
+ }, {
2313
+ type: "Polygon";
2314
+ coordinates: [number, number][][];
2315
+ }>, z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">]>>;
2316
+ filters: z.ZodOptional<z.ZodUnion<[z.ZodType<FilterTernary, z.ZodTypeDef, FilterTernary>, z.ZodUnion<[z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["in", "ni"]>, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>, "many">, z.ZodNull]>], null>, z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["lt", "gt", "le", "ge", "eq", "ne", "cn", "nc", "is", "isnt"]>, z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>], null>]>, z.ZodNull, z.ZodBoolean]>>;
2317
+ values: z.ZodOptional<z.ZodObject<{
2318
+ boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
2319
+ type: z.ZodLiteral<"Polygon">;
2320
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
2321
+ }, "strip", z.ZodTypeAny, {
2322
+ type: "Polygon";
2323
+ coordinates: [number, number][][];
2324
+ }, {
2325
+ type: "Polygon";
2326
+ coordinates: [number, number][][];
2327
+ }>, z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">]>>;
2328
+ filters: z.ZodOptional<z.ZodUnion<[z.ZodType<FilterTernary, z.ZodTypeDef, FilterTernary>, z.ZodUnion<[z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["in", "ni"]>, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>, "many">, z.ZodNull]>], null>, z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["lt", "gt", "le", "ge", "eq", "ne", "cn", "nc", "is", "isnt"]>, z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>], null>]>, z.ZodNull, z.ZodBoolean]>>;
2329
+ aggregation: z.ZodOptional<z.ZodObject<{
2330
+ method: z.ZodEnum<["avg", "max", "min", "sum", "median"]>;
2331
+ attribute: z.ZodString;
2332
+ }, "strip", z.ZodTypeAny, {
2333
+ attribute: string;
2334
+ method: "avg" | "max" | "min" | "sum" | "median";
2335
+ }, {
2336
+ attribute: string;
2337
+ method: "avg" | "max" | "min" | "sum" | "median";
2338
+ }>>;
2339
+ }, "strip", z.ZodTypeAny, {
2340
+ filters?: boolean | FilterTernary | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | null | undefined;
2341
+ boundary?: [number, number, number, number] | [number, number][] | {
2342
+ type: "Polygon";
2343
+ coordinates: [number, number][][];
2344
+ } | undefined;
2345
+ aggregation?: {
2346
+ attribute: string;
2347
+ method: "avg" | "max" | "min" | "sum" | "median";
2348
+ } | undefined;
2349
+ }, {
2350
+ filters?: boolean | FilterTernary | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | null | undefined;
2351
+ boundary?: [number, number, number, number] | [number, number][] | {
2352
+ type: "Polygon";
2353
+ coordinates: [number, number][][];
2354
+ } | undefined;
2355
+ aggregation?: {
2356
+ attribute: string;
2357
+ method: "avg" | "max" | "min" | "sum" | "median";
2358
+ } | undefined;
2359
+ }>>;
2360
+ }, "strip", z.ZodTypeAny, {
2361
+ attribute: string;
2362
+ layerId: string;
2363
+ steps: number[] | {
2364
+ type: "equal-intervals";
2365
+ count: number;
2366
+ } | {
2367
+ type: "time-interval";
2368
+ interval: "hour" | "day" | "week" | "month" | "year";
2369
+ };
2370
+ values?: {
2371
+ filters?: boolean | FilterTernary | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | null | undefined;
2372
+ boundary?: [number, number, number, number] | [number, number][] | {
2373
+ type: "Polygon";
2374
+ coordinates: [number, number][][];
2375
+ } | undefined;
2376
+ aggregation?: {
2377
+ attribute: string;
2378
+ method: "avg" | "max" | "min" | "sum" | "median";
2379
+ } | undefined;
2380
+ } | undefined;
2381
+ filters?: boolean | FilterTernary | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | null | undefined;
2382
+ boundary?: [number, number, number, number] | [number, number][] | {
2383
+ type: "Polygon";
2384
+ coordinates: [number, number][][];
2385
+ } | undefined;
2386
+ }, {
2387
+ attribute: string;
2388
+ layerId: string;
2389
+ steps: number[] | {
2390
+ type: "equal-intervals";
2391
+ count: number;
2392
+ } | {
2393
+ type: "time-interval";
2394
+ interval: "hour" | "day" | "week" | "month" | "year";
2395
+ };
2396
+ values?: {
2397
+ filters?: boolean | FilterTernary | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | null | undefined;
2398
+ boundary?: [number, number, number, number] | [number, number][] | {
2399
+ type: "Polygon";
2400
+ coordinates: [number, number][][];
2401
+ } | undefined;
2402
+ aggregation?: {
2403
+ attribute: string;
2404
+ method: "avg" | "max" | "min" | "sum" | "median";
2405
+ } | undefined;
2406
+ } | undefined;
2407
+ filters?: boolean | FilterTernary | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | null | undefined;
2408
+ boundary?: [number, number, number, number] | [number, number][] | {
2409
+ type: "Polygon";
2410
+ coordinates: [number, number][][];
2411
+ } | undefined;
2412
+ }>;
2413
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
2414
+ params: {
2415
+ attribute: string;
2416
+ layerId: string;
2417
+ steps: number[] | {
2418
+ type: "equal-intervals";
2419
+ count: number;
2420
+ } | {
2421
+ type: "time-interval";
2422
+ interval: "hour" | "day" | "week" | "month" | "year";
2423
+ };
2424
+ values?: {
2425
+ filters?: boolean | FilterTernary | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | null | undefined;
2426
+ boundary?: [number, number, number, number] | [number, number][] | {
2427
+ type: "Polygon";
2428
+ coordinates: [number, number][][];
2429
+ } | undefined;
2430
+ aggregation?: {
2431
+ attribute: string;
2432
+ method: "avg" | "max" | "min" | "sum" | "median";
2433
+ } | undefined;
2434
+ } | undefined;
2435
+ filters?: boolean | FilterTernary | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | null | undefined;
2436
+ boundary?: [number, number, number, number] | [number, number][] | {
2437
+ type: "Polygon";
2438
+ coordinates: [number, number][][];
2439
+ } | undefined;
2440
+ };
2441
+ type: "getHistogramData";
2442
+ }, {
2443
+ params: {
2444
+ attribute: string;
2445
+ layerId: string;
2446
+ steps: number[] | {
2447
+ type: "equal-intervals";
2448
+ count: number;
2449
+ } | {
2450
+ type: "time-interval";
2451
+ interval: "hour" | "day" | "week" | "month" | "year";
2452
+ };
2453
+ values?: {
2454
+ filters?: boolean | FilterTernary | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | null | undefined;
2455
+ boundary?: [number, number, number, number] | [number, number][] | {
2456
+ type: "Polygon";
2457
+ coordinates: [number, number][][];
2458
+ } | undefined;
2459
+ aggregation?: {
2460
+ attribute: string;
2461
+ method: "avg" | "max" | "min" | "sum" | "median";
2462
+ } | undefined;
2463
+ } | undefined;
2464
+ filters?: boolean | FilterTernary | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | null | undefined;
2465
+ boundary?: [number, number, number, number] | [number, number][] | {
2466
+ type: "Polygon";
2467
+ coordinates: [number, number][][];
2468
+ } | undefined;
2469
+ };
2470
+ type: "getHistogramData";
2471
+ }>;
2472
+ declare const GetLayerCalculationMessage: z.ZodObject<{
2473
+ type: z.ZodLiteral<"getAggregates">;
2474
+ params: z.ZodObject<{
2475
+ layerId: z.ZodString;
2476
+ boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
2477
+ type: z.ZodLiteral<"Polygon">;
2478
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
2479
+ }, "strip", z.ZodTypeAny, {
2480
+ type: "Polygon";
2481
+ coordinates: [number, number][][];
2482
+ }, {
2483
+ type: "Polygon";
2484
+ coordinates: [number, number][][];
2485
+ }>, z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">]>>;
2486
+ filters: z.ZodOptional<z.ZodUnion<[z.ZodType<FilterTernary, z.ZodTypeDef, FilterTernary>, z.ZodUnion<[z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["in", "ni"]>, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>, "many">, z.ZodNull]>], null>, z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["lt", "gt", "le", "ge", "eq", "ne", "cn", "nc", "is", "isnt"]>, z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>], null>]>, z.ZodNull, z.ZodBoolean]>>;
2487
+ aggregation: z.ZodObject<{
2488
+ methods: z.ZodArray<z.ZodUnion<[z.ZodEnum<["avg", "max", "min", "sum", "median"]>, z.ZodLiteral<"count">]>, "many">;
2489
+ attribute: z.ZodOptional<z.ZodString>;
2490
+ }, "strip", z.ZodTypeAny, {
2491
+ methods: ("avg" | "max" | "min" | "sum" | "median" | "count")[];
2492
+ attribute?: string | undefined;
2493
+ }, {
2494
+ methods: ("avg" | "max" | "min" | "sum" | "median" | "count")[];
2495
+ attribute?: string | undefined;
2496
+ }>;
2497
+ }, "strip", z.ZodTypeAny, {
2498
+ layerId: string;
2499
+ aggregation: {
2500
+ methods: ("avg" | "max" | "min" | "sum" | "median" | "count")[];
2501
+ attribute?: string | undefined;
2502
+ };
2503
+ filters?: boolean | FilterTernary | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | null | undefined;
2504
+ boundary?: [number, number, number, number] | [number, number][] | {
2505
+ type: "Polygon";
2506
+ coordinates: [number, number][][];
2507
+ } | undefined;
2508
+ }, {
2509
+ layerId: string;
2510
+ aggregation: {
2511
+ methods: ("avg" | "max" | "min" | "sum" | "median" | "count")[];
2512
+ attribute?: string | undefined;
2513
+ };
2514
+ filters?: boolean | FilterTernary | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | null | undefined;
2515
+ boundary?: [number, number, number, number] | [number, number][] | {
2516
+ type: "Polygon";
2517
+ coordinates: [number, number][][];
2518
+ } | undefined;
2519
+ }>;
2520
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
2521
+ params: {
2522
+ layerId: string;
2523
+ aggregation: {
2524
+ methods: ("avg" | "max" | "min" | "sum" | "median" | "count")[];
2525
+ attribute?: string | undefined;
2526
+ };
2527
+ filters?: boolean | FilterTernary | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | null | undefined;
2528
+ boundary?: [number, number, number, number] | [number, number][] | {
2529
+ type: "Polygon";
2530
+ coordinates: [number, number][][];
2531
+ } | undefined;
2532
+ };
2533
+ type: "getAggregates";
2534
+ }, {
2535
+ params: {
2536
+ layerId: string;
2537
+ aggregation: {
2538
+ methods: ("avg" | "max" | "min" | "sum" | "median" | "count")[];
2539
+ attribute?: string | undefined;
2540
+ };
2541
+ filters?: boolean | FilterTernary | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | null | undefined;
2542
+ boundary?: [number, number, number, number] | [number, number][] | {
2543
+ type: "Polygon";
2544
+ coordinates: [number, number][][];
2545
+ } | undefined;
2546
+ };
2547
+ type: "getAggregates";
2548
+ }>;
706
2549
  type LayersSchema = {
707
2550
  methods: {
708
2551
  getLayer: Method<zInfer<typeof GetLayerMessage>, Layer | null>;
@@ -719,13 +2562,36 @@ type LayersSchema = {
719
2562
  setLegendItemVisibility: Method<zInfer<typeof SetLegendItemVisibilityMessage>, void>;
720
2563
  getLayerFilters: Method<zInfer<typeof GetFiltersMessage>, LayerFilters | null>;
721
2564
  setLayerFilters: Method<zInfer<typeof SetFiltersMessage>, void>;
722
- getRenderedFeatures: Method<zInfer<typeof GetRenderedFeaturesMessage>, Array<Feature>>;
2565
+ getRenderedFeatures: Method<zInfer<typeof GetRenderedFeaturesMessage>, Array<LayerFeature>>;
2566
+ getFeature: Method<zInfer<typeof GetFeatureMessage>, LayerFeature | null>;
2567
+ getGeoJsonFeature: Method<zInfer<typeof GetGeoJsonFeatureMessage>, GeoJsonFeature | null>;
2568
+ getCategoryData: Method<zInfer<typeof GetLayerCategoriesMessage>, Array<GetLayerCategoriesGroup>>;
2569
+ getHistogramData: Method<zInfer<typeof GetLayerHistogramMessage>, Array<GetLayerHistogramBin>>;
2570
+ getAggregates: Method<zInfer<typeof GetLayerCalculationMessage>, Record<AggregationMethod | "count", number | null>>;
723
2571
  };
724
2572
  listeners: {
725
2573
  onLayerChange: Listener<zInfer<typeof OnLayerChangeMessage.shape.options>, LayerChangeCallbackParams>;
726
2574
  onLayerGroupChange: Listener<zInfer<typeof OnLayerGroupChangeMessage.shape.options>, LayerGroupChangeCallbackParams>;
727
2575
  onLegendItemChange: Listener<zInfer<typeof OnLegendItemChangeMessage.shape.options>, LegendItemChangeCallbackParams>;
2576
+ onLayerFiltersChange: Listener<zInfer<typeof OnLayerFiltersChangeMessage.shape.options>, LayerFilters>;
2577
+ };
2578
+ };
2579
+
2580
+ declare const GetMapDetailsMessage: z.ZodObject<{
2581
+ type: z.ZodLiteral<"getMapDetails">;
2582
+ params: z.ZodUndefined;
2583
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
2584
+ type: "getMapDetails";
2585
+ params?: undefined;
2586
+ }, {
2587
+ type: "getMapDetails";
2588
+ params?: undefined;
2589
+ }>;
2590
+ type MiscSchema = {
2591
+ methods: {
2592
+ getMapDetails: Method<zInfer<typeof GetMapDetailsMessage>, MapDetails>;
728
2593
  };
2594
+ listeners: {};
729
2595
  };
730
2596
 
731
2597
  declare const GetSelectionMessage: z.ZodObject<{
@@ -819,22 +2685,374 @@ type SelectionSchema = {
819
2685
  clearSelection: Method<zInfer<typeof ClearSelectionMessage>, void>;
820
2686
  };
821
2687
  listeners: {
822
- onSelectionChange: Listener<void, {
2688
+ onSelectionChange: ListenerNoOptions<{
823
2689
  selection: Array<EntityNode>;
824
2690
  }>;
825
2691
  };
826
2692
  };
827
2693
 
828
- declare const UiControlsMessage: zod.ZodObject<{
829
- type: zod.ZodLiteral<"updateUiControls">;
830
- params: zod.ZodObject<{
831
- showLegend: zod.ZodOptional<zod.ZodBoolean>;
832
- cooperativeGestures: zod.ZodOptional<zod.ZodBoolean>;
833
- fullScreenButton: zod.ZodOptional<zod.ZodBoolean>;
834
- geolocation: zod.ZodOptional<zod.ZodBoolean>;
835
- zoomControls: zod.ZodOptional<zod.ZodBoolean>;
836
- scaleBar: zod.ZodOptional<zod.ZodBoolean>;
837
- }, "strip", zod.ZodTypeAny, {
2694
+ declare const SetToolMessage: z.ZodObject<{
2695
+ type: z.ZodLiteral<"setTool">;
2696
+ params: z.ZodNullable<z.ZodEnum<["pin", "line", "route", "polygon", "circle", "marker", "highlighter", "text", "note", "link"]>>;
2697
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
2698
+ params: "text" | "link" | "pin" | "line" | "route" | "polygon" | "circle" | "marker" | "highlighter" | "note" | null;
2699
+ type: "setTool";
2700
+ }, {
2701
+ params: "text" | "link" | "pin" | "line" | "route" | "polygon" | "circle" | "marker" | "highlighter" | "note" | null;
2702
+ type: "setTool";
2703
+ }>;
2704
+ declare const GetToolMessage: z.ZodObject<{
2705
+ type: z.ZodLiteral<"getTool">;
2706
+ params: z.ZodUndefined;
2707
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
2708
+ type: "getTool";
2709
+ params?: undefined;
2710
+ }, {
2711
+ type: "getTool";
2712
+ params?: undefined;
2713
+ }>;
2714
+ declare const SetToolSettingsMessage: z.ZodObject<{
2715
+ type: z.ZodLiteral<"setToolSettings">;
2716
+ params: z.ZodDiscriminatedUnion<"tool", [z.ZodObject<z.objectUtil.extendShape<{
2717
+ symbol: z.ZodOptional<z.ZodString>;
2718
+ color: z.ZodOptional<z.ZodString>;
2719
+ frame: z.ZodOptional<z.ZodNullable<z.ZodEnum<["frame-circle", "frame-square"]>>>;
2720
+ afterCreation: z.ZodOptional<z.ZodEnum<["enter name", "add another", "select"]>>;
2721
+ }, {
2722
+ tool: z.ZodLiteral<"pin">;
2723
+ }>, "strip", z.ZodTypeAny, {
2724
+ tool: "pin";
2725
+ symbol?: string | undefined;
2726
+ color?: string | undefined;
2727
+ frame?: "frame-circle" | "frame-square" | null | undefined;
2728
+ afterCreation?: "enter name" | "add another" | "select" | undefined;
2729
+ }, {
2730
+ tool: "pin";
2731
+ symbol?: string | undefined;
2732
+ color?: string | undefined;
2733
+ frame?: "frame-circle" | "frame-square" | null | undefined;
2734
+ afterCreation?: "enter name" | "add another" | "select" | undefined;
2735
+ }>, z.ZodObject<z.objectUtil.extendShape<{
2736
+ color: z.ZodOptional<z.ZodString>;
2737
+ strokeOpacity: z.ZodOptional<z.ZodNumber>;
2738
+ strokeWidth: z.ZodOptional<z.ZodNumber>;
2739
+ strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
2740
+ distanceMarker: z.ZodOptional<z.ZodBoolean>;
2741
+ }, {
2742
+ tool: z.ZodLiteral<"line">;
2743
+ }>, "strip", z.ZodTypeAny, {
2744
+ tool: "line";
2745
+ color?: string | undefined;
2746
+ strokeOpacity?: number | undefined;
2747
+ strokeWidth?: number | undefined;
2748
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
2749
+ distanceMarker?: boolean | undefined;
2750
+ }, {
2751
+ tool: "line";
2752
+ color?: string | undefined;
2753
+ strokeOpacity?: number | undefined;
2754
+ strokeWidth?: number | undefined;
2755
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
2756
+ distanceMarker?: boolean | undefined;
2757
+ }>, z.ZodObject<z.objectUtil.extendShape<{
2758
+ color: z.ZodOptional<z.ZodString>;
2759
+ strokeOpacity: z.ZodOptional<z.ZodNumber>;
2760
+ strokeWidth: z.ZodOptional<z.ZodNumber>;
2761
+ strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
2762
+ distanceMarker: z.ZodOptional<z.ZodBoolean>;
2763
+ endCaps: z.ZodOptional<z.ZodBoolean>;
2764
+ routingMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["driving", "cycling", "walking", "flying"]>>>;
2765
+ }, {
2766
+ tool: z.ZodLiteral<"route">;
2767
+ }>, "strip", z.ZodTypeAny, {
2768
+ tool: "route";
2769
+ color?: string | undefined;
2770
+ strokeOpacity?: number | undefined;
2771
+ strokeWidth?: number | undefined;
2772
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
2773
+ distanceMarker?: boolean | undefined;
2774
+ endCaps?: boolean | undefined;
2775
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
2776
+ }, {
2777
+ tool: "route";
2778
+ color?: string | undefined;
2779
+ strokeOpacity?: number | undefined;
2780
+ strokeWidth?: number | undefined;
2781
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
2782
+ distanceMarker?: boolean | undefined;
2783
+ endCaps?: boolean | undefined;
2784
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
2785
+ }>, z.ZodObject<z.objectUtil.extendShape<{
2786
+ color: z.ZodOptional<z.ZodString>;
2787
+ strokeOpacity: z.ZodOptional<z.ZodNumber>;
2788
+ strokeWidth: z.ZodOptional<z.ZodNumber>;
2789
+ strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
2790
+ fillOpacity: z.ZodOptional<z.ZodNumber>;
2791
+ areaMarker: z.ZodOptional<z.ZodBoolean>;
2792
+ }, {
2793
+ tool: z.ZodLiteral<"polygon">;
2794
+ }>, "strip", z.ZodTypeAny, {
2795
+ tool: "polygon";
2796
+ color?: string | undefined;
2797
+ strokeOpacity?: number | undefined;
2798
+ strokeWidth?: number | undefined;
2799
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
2800
+ fillOpacity?: number | undefined;
2801
+ areaMarker?: boolean | undefined;
2802
+ }, {
2803
+ tool: "polygon";
2804
+ color?: string | undefined;
2805
+ strokeOpacity?: number | undefined;
2806
+ strokeWidth?: number | undefined;
2807
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
2808
+ fillOpacity?: number | undefined;
2809
+ areaMarker?: boolean | undefined;
2810
+ }>, z.ZodObject<z.objectUtil.extendShape<{
2811
+ color: z.ZodOptional<z.ZodString>;
2812
+ strokeOpacity: z.ZodOptional<z.ZodNumber>;
2813
+ strokeWidth: z.ZodOptional<z.ZodNumber>;
2814
+ strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
2815
+ fillOpacity: z.ZodOptional<z.ZodNumber>;
2816
+ radiusMarker: z.ZodOptional<z.ZodBoolean>;
2817
+ }, {
2818
+ tool: z.ZodLiteral<"circle">;
2819
+ }>, "strip", z.ZodTypeAny, {
2820
+ tool: "circle";
2821
+ color?: string | undefined;
2822
+ strokeOpacity?: number | undefined;
2823
+ strokeWidth?: number | undefined;
2824
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
2825
+ fillOpacity?: number | undefined;
2826
+ radiusMarker?: boolean | undefined;
2827
+ }, {
2828
+ tool: "circle";
2829
+ color?: string | undefined;
2830
+ strokeOpacity?: number | undefined;
2831
+ strokeWidth?: number | undefined;
2832
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
2833
+ fillOpacity?: number | undefined;
2834
+ radiusMarker?: boolean | undefined;
2835
+ }>, z.ZodObject<z.objectUtil.extendShape<{
2836
+ color: z.ZodOptional<z.ZodString>;
2837
+ opacity: z.ZodOptional<z.ZodNumber>;
2838
+ size: z.ZodOptional<z.ZodNumber>;
2839
+ }, {
2840
+ tool: z.ZodLiteral<"marker">;
2841
+ }>, "strip", z.ZodTypeAny, {
2842
+ tool: "marker";
2843
+ color?: string | undefined;
2844
+ opacity?: number | undefined;
2845
+ size?: number | undefined;
2846
+ }, {
2847
+ tool: "marker";
2848
+ color?: string | undefined;
2849
+ opacity?: number | undefined;
2850
+ size?: number | undefined;
2851
+ }>, z.ZodObject<z.objectUtil.extendShape<{
2852
+ color: z.ZodOptional<z.ZodString>;
2853
+ opacity: z.ZodOptional<z.ZodNumber>;
2854
+ size: z.ZodOptional<z.ZodNumber>;
2855
+ }, {
2856
+ tool: z.ZodLiteral<"highlighter">;
2857
+ }>, "strip", z.ZodTypeAny, {
2858
+ tool: "highlighter";
2859
+ color?: string | undefined;
2860
+ opacity?: number | undefined;
2861
+ size?: number | undefined;
2862
+ }, {
2863
+ tool: "highlighter";
2864
+ color?: string | undefined;
2865
+ opacity?: number | undefined;
2866
+ size?: number | undefined;
2867
+ }>, z.ZodObject<z.objectUtil.extendShape<{
2868
+ color: z.ZodOptional<z.ZodString>;
2869
+ align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
2870
+ style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
2871
+ }, {
2872
+ tool: z.ZodLiteral<"text">;
2873
+ }>, "strip", z.ZodTypeAny, {
2874
+ tool: "text";
2875
+ color?: string | undefined;
2876
+ align?: "left" | "center" | "right" | undefined;
2877
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
2878
+ }, {
2879
+ tool: "text";
2880
+ color?: string | undefined;
2881
+ align?: "left" | "center" | "right" | undefined;
2882
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
2883
+ }>, z.ZodObject<z.objectUtil.extendShape<{
2884
+ color: z.ZodOptional<z.ZodString>;
2885
+ align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
2886
+ style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
2887
+ }, {
2888
+ tool: z.ZodLiteral<"note">;
2889
+ }>, "strip", z.ZodTypeAny, {
2890
+ tool: "note";
2891
+ color?: string | undefined;
2892
+ align?: "left" | "center" | "right" | undefined;
2893
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
2894
+ }, {
2895
+ tool: "note";
2896
+ color?: string | undefined;
2897
+ align?: "left" | "center" | "right" | undefined;
2898
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
2899
+ }>]>;
2900
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
2901
+ params: {
2902
+ tool: "pin";
2903
+ symbol?: string | undefined;
2904
+ color?: string | undefined;
2905
+ frame?: "frame-circle" | "frame-square" | null | undefined;
2906
+ afterCreation?: "enter name" | "add another" | "select" | undefined;
2907
+ } | {
2908
+ tool: "line";
2909
+ color?: string | undefined;
2910
+ strokeOpacity?: number | undefined;
2911
+ strokeWidth?: number | undefined;
2912
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
2913
+ distanceMarker?: boolean | undefined;
2914
+ } | {
2915
+ tool: "route";
2916
+ color?: string | undefined;
2917
+ strokeOpacity?: number | undefined;
2918
+ strokeWidth?: number | undefined;
2919
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
2920
+ distanceMarker?: boolean | undefined;
2921
+ endCaps?: boolean | undefined;
2922
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
2923
+ } | {
2924
+ tool: "polygon";
2925
+ color?: string | undefined;
2926
+ strokeOpacity?: number | undefined;
2927
+ strokeWidth?: number | undefined;
2928
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
2929
+ fillOpacity?: number | undefined;
2930
+ areaMarker?: boolean | undefined;
2931
+ } | {
2932
+ tool: "circle";
2933
+ color?: string | undefined;
2934
+ strokeOpacity?: number | undefined;
2935
+ strokeWidth?: number | undefined;
2936
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
2937
+ fillOpacity?: number | undefined;
2938
+ radiusMarker?: boolean | undefined;
2939
+ } | {
2940
+ tool: "marker";
2941
+ color?: string | undefined;
2942
+ opacity?: number | undefined;
2943
+ size?: number | undefined;
2944
+ } | {
2945
+ tool: "highlighter";
2946
+ color?: string | undefined;
2947
+ opacity?: number | undefined;
2948
+ size?: number | undefined;
2949
+ } | {
2950
+ tool: "text";
2951
+ color?: string | undefined;
2952
+ align?: "left" | "center" | "right" | undefined;
2953
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
2954
+ } | {
2955
+ tool: "note";
2956
+ color?: string | undefined;
2957
+ align?: "left" | "center" | "right" | undefined;
2958
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
2959
+ };
2960
+ type: "setToolSettings";
2961
+ }, {
2962
+ params: {
2963
+ tool: "pin";
2964
+ symbol?: string | undefined;
2965
+ color?: string | undefined;
2966
+ frame?: "frame-circle" | "frame-square" | null | undefined;
2967
+ afterCreation?: "enter name" | "add another" | "select" | undefined;
2968
+ } | {
2969
+ tool: "line";
2970
+ color?: string | undefined;
2971
+ strokeOpacity?: number | undefined;
2972
+ strokeWidth?: number | undefined;
2973
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
2974
+ distanceMarker?: boolean | undefined;
2975
+ } | {
2976
+ tool: "route";
2977
+ color?: string | undefined;
2978
+ strokeOpacity?: number | undefined;
2979
+ strokeWidth?: number | undefined;
2980
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
2981
+ distanceMarker?: boolean | undefined;
2982
+ endCaps?: boolean | undefined;
2983
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
2984
+ } | {
2985
+ tool: "polygon";
2986
+ color?: string | undefined;
2987
+ strokeOpacity?: number | undefined;
2988
+ strokeWidth?: number | undefined;
2989
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
2990
+ fillOpacity?: number | undefined;
2991
+ areaMarker?: boolean | undefined;
2992
+ } | {
2993
+ tool: "circle";
2994
+ color?: string | undefined;
2995
+ strokeOpacity?: number | undefined;
2996
+ strokeWidth?: number | undefined;
2997
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
2998
+ fillOpacity?: number | undefined;
2999
+ radiusMarker?: boolean | undefined;
3000
+ } | {
3001
+ tool: "marker";
3002
+ color?: string | undefined;
3003
+ opacity?: number | undefined;
3004
+ size?: number | undefined;
3005
+ } | {
3006
+ tool: "highlighter";
3007
+ color?: string | undefined;
3008
+ opacity?: number | undefined;
3009
+ size?: number | undefined;
3010
+ } | {
3011
+ tool: "text";
3012
+ color?: string | undefined;
3013
+ align?: "left" | "center" | "right" | undefined;
3014
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
3015
+ } | {
3016
+ tool: "note";
3017
+ color?: string | undefined;
3018
+ align?: "left" | "center" | "right" | undefined;
3019
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
3020
+ };
3021
+ type: "setToolSettings";
3022
+ }>;
3023
+ declare const GetToolSettingsMessage: z.ZodObject<{
3024
+ type: z.ZodLiteral<"getToolSettings">;
3025
+ params: z.ZodEnum<["pin", "line", "route", "polygon", "circle", "marker", "highlighter", "text", "note"]>;
3026
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
3027
+ params: "text" | "pin" | "line" | "route" | "polygon" | "circle" | "marker" | "highlighter" | "note";
3028
+ type: "getToolSettings";
3029
+ }, {
3030
+ params: "text" | "pin" | "line" | "route" | "polygon" | "circle" | "marker" | "highlighter" | "note";
3031
+ type: "getToolSettings";
3032
+ }>;
3033
+ type ToolsSchema = {
3034
+ methods: {
3035
+ setTool: Method<zInfer<typeof SetToolMessage>, void>;
3036
+ getTool: Method<zInfer<typeof GetToolMessage>, ToolType | null>;
3037
+ setToolSettings: Method<zInfer<typeof SetToolSettingsMessage>, void>;
3038
+ getToolSettings: Method<zInfer<typeof GetToolSettingsMessage>, ToolSettingsMap[keyof ToolSettingsMap]>;
3039
+ };
3040
+ listeners: {
3041
+ onToolChange: ListenerNoOptions<ToolType | null>;
3042
+ onToolSettingsChange: ListenerNoOptions<ToolSettingsChangeEvent>;
3043
+ };
3044
+ };
3045
+
3046
+ declare const UiControlsMessage: z.ZodObject<{
3047
+ type: z.ZodLiteral<"updateUiControls">;
3048
+ params: z.ZodObject<{
3049
+ showLegend: z.ZodOptional<z.ZodBoolean>;
3050
+ cooperativeGestures: z.ZodOptional<z.ZodBoolean>;
3051
+ fullScreenButton: z.ZodOptional<z.ZodBoolean>;
3052
+ geolocation: z.ZodOptional<z.ZodBoolean>;
3053
+ zoomControls: z.ZodOptional<z.ZodBoolean>;
3054
+ scaleBar: z.ZodOptional<z.ZodBoolean>;
3055
+ }, "strip", z.ZodTypeAny, {
838
3056
  showLegend?: boolean | undefined;
839
3057
  cooperativeGestures?: boolean | undefined;
840
3058
  fullScreenButton?: boolean | undefined;
@@ -849,7 +3067,7 @@ declare const UiControlsMessage: zod.ZodObject<{
849
3067
  zoomControls?: boolean | undefined;
850
3068
  scaleBar?: boolean | undefined;
851
3069
  }>;
852
- }, zod.UnknownKeysParam, zod.ZodTypeAny, {
3070
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
853
3071
  params: {
854
3072
  showLegend?: boolean | undefined;
855
3073
  cooperativeGestures?: boolean | undefined;
@@ -870,15 +3088,15 @@ declare const UiControlsMessage: zod.ZodObject<{
870
3088
  };
871
3089
  type: "updateUiControls";
872
3090
  }>;
873
- declare const OnMapInteractionsMessage: zod.ZodObject<{
874
- type: zod.ZodLiteral<"setOnMapInteractionsUi">;
875
- params: zod.ZodObject<{
876
- featureSelectPanel: zod.ZodOptional<zod.ZodBoolean>;
877
- featureHoverPanel: zod.ZodOptional<zod.ZodBoolean>;
878
- elementSelectPanel: zod.ZodOptional<zod.ZodBoolean>;
879
- linkClickOpen: zod.ZodOptional<zod.ZodBoolean>;
880
- imageLightboxOpen: zod.ZodOptional<zod.ZodBoolean>;
881
- }, "strip", zod.ZodTypeAny, {
3091
+ declare const OnMapInteractionsMessage: z.ZodObject<{
3092
+ type: z.ZodLiteral<"setOnMapInteractionsUi">;
3093
+ params: z.ZodObject<{
3094
+ featureSelectPanel: z.ZodOptional<z.ZodBoolean>;
3095
+ featureHoverPanel: z.ZodOptional<z.ZodBoolean>;
3096
+ elementSelectPanel: z.ZodOptional<z.ZodBoolean>;
3097
+ linkClickOpen: z.ZodOptional<z.ZodBoolean>;
3098
+ imageLightboxOpen: z.ZodOptional<z.ZodBoolean>;
3099
+ }, "strip", z.ZodTypeAny, {
882
3100
  featureSelectPanel?: boolean | undefined;
883
3101
  featureHoverPanel?: boolean | undefined;
884
3102
  elementSelectPanel?: boolean | undefined;
@@ -891,7 +3109,7 @@ declare const OnMapInteractionsMessage: zod.ZodObject<{
891
3109
  linkClickOpen?: boolean | undefined;
892
3110
  imageLightboxOpen?: boolean | undefined;
893
3111
  }>;
894
- }, zod.UnknownKeysParam, zod.ZodTypeAny, {
3112
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
895
3113
  params: {
896
3114
  featureSelectPanel?: boolean | undefined;
897
3115
  featureHoverPanel?: boolean | undefined;
@@ -910,10 +3128,68 @@ declare const OnMapInteractionsMessage: zod.ZodObject<{
910
3128
  };
911
3129
  type: "setOnMapInteractionsUi";
912
3130
  }>;
3131
+ declare const ShowLayerDataTableMessage: z.ZodObject<{
3132
+ type: z.ZodLiteral<"showLayerDataTable">;
3133
+ params: z.ZodOptional<z.ZodObject<{
3134
+ layerId: z.ZodString;
3135
+ sorting: z.ZodOptional<z.ZodObject<{
3136
+ attribute: z.ZodString;
3137
+ direction: z.ZodEnum<["asc", "desc"]>;
3138
+ }, "strip", z.ZodTypeAny, {
3139
+ attribute: string;
3140
+ direction: "asc" | "desc";
3141
+ }, {
3142
+ attribute: string;
3143
+ direction: "asc" | "desc";
3144
+ }>>;
3145
+ }, "strip", z.ZodTypeAny, {
3146
+ layerId: string;
3147
+ sorting?: {
3148
+ attribute: string;
3149
+ direction: "asc" | "desc";
3150
+ } | undefined;
3151
+ }, {
3152
+ layerId: string;
3153
+ sorting?: {
3154
+ attribute: string;
3155
+ direction: "asc" | "desc";
3156
+ } | undefined;
3157
+ }>>;
3158
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
3159
+ type: "showLayerDataTable";
3160
+ params?: {
3161
+ layerId: string;
3162
+ sorting?: {
3163
+ attribute: string;
3164
+ direction: "asc" | "desc";
3165
+ } | undefined;
3166
+ } | undefined;
3167
+ }, {
3168
+ type: "showLayerDataTable";
3169
+ params?: {
3170
+ layerId: string;
3171
+ sorting?: {
3172
+ attribute: string;
3173
+ direction: "asc" | "desc";
3174
+ } | undefined;
3175
+ } | undefined;
3176
+ }>;
3177
+ declare const HideLayerDataTableMessage: z.ZodObject<{
3178
+ type: z.ZodLiteral<"hideLayerDataTable">;
3179
+ params: z.ZodUndefined;
3180
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
3181
+ type: "hideLayerDataTable";
3182
+ params?: undefined;
3183
+ }, {
3184
+ type: "hideLayerDataTable";
3185
+ params?: undefined;
3186
+ }>;
913
3187
  type UiSchema = {
914
3188
  methods: {
915
3189
  updateUiControls: Method<zInfer<typeof UiControlsMessage>, void>;
916
3190
  setOnMapInteractionsUi: Method<zInfer<typeof OnMapInteractionsMessage>, void>;
3191
+ showLayerDataTable: Method<zInfer<typeof ShowLayerDataTableMessage>, void>;
3192
+ hideLayerDataTable: Method<zInfer<typeof HideLayerDataTableMessage>, void>;
917
3193
  };
918
3194
  listeners: {};
919
3195
  };
@@ -943,37 +3219,77 @@ declare const GotoViewportMessage: z.ZodObject<{
943
3219
  }>>;
944
3220
  zoom: z.ZodOptional<z.ZodNumber>;
945
3221
  }, "strip", z.ZodTypeAny, {
3222
+ zoom?: number | undefined;
946
3223
  center?: {
947
3224
  latitude: number;
948
3225
  longitude: number;
949
3226
  } | undefined;
950
- zoom?: number | undefined;
951
3227
  }, {
3228
+ zoom?: number | undefined;
952
3229
  center?: {
953
3230
  latitude: number;
954
3231
  longitude: number;
955
3232
  } | undefined;
956
- zoom?: number | undefined;
957
3233
  }>;
958
3234
  }, z.UnknownKeysParam, z.ZodTypeAny, {
959
3235
  params: {
3236
+ zoom?: number | undefined;
960
3237
  center?: {
961
3238
  latitude: number;
962
3239
  longitude: number;
963
3240
  } | undefined;
964
- zoom?: number | undefined;
965
3241
  };
966
3242
  type: "setViewport";
967
3243
  }, {
968
3244
  params: {
3245
+ zoom?: number | undefined;
969
3246
  center?: {
970
3247
  latitude: number;
971
3248
  longitude: number;
972
3249
  } | undefined;
973
- zoom?: number | undefined;
974
3250
  };
975
3251
  type: "setViewport";
976
3252
  }>;
3253
+ declare const GetViewportConstraintsMessage: z.ZodObject<{
3254
+ type: z.ZodLiteral<"getViewportConstraints">;
3255
+ params: z.ZodUndefined;
3256
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
3257
+ type: "getViewportConstraints";
3258
+ params?: undefined;
3259
+ }, {
3260
+ type: "getViewportConstraints";
3261
+ params?: undefined;
3262
+ }>;
3263
+ declare const SetViewportConstraintsMessage: z.ZodObject<{
3264
+ type: z.ZodLiteral<"setViewportConstraints">;
3265
+ params: z.ZodNullable<z.ZodObject<{
3266
+ minZoom: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3267
+ maxZoom: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3268
+ bounds: z.ZodOptional<z.ZodNullable<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>>;
3269
+ }, "strip", z.ZodTypeAny, {
3270
+ maxZoom?: number | null | undefined;
3271
+ minZoom?: number | null | undefined;
3272
+ bounds?: [number, number, number, number] | null | undefined;
3273
+ }, {
3274
+ maxZoom?: number | null | undefined;
3275
+ minZoom?: number | null | undefined;
3276
+ bounds?: [number, number, number, number] | null | undefined;
3277
+ }>>;
3278
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
3279
+ params: {
3280
+ maxZoom?: number | null | undefined;
3281
+ minZoom?: number | null | undefined;
3282
+ bounds?: [number, number, number, number] | null | undefined;
3283
+ } | null;
3284
+ type: "setViewportConstraints";
3285
+ }, {
3286
+ params: {
3287
+ maxZoom?: number | null | undefined;
3288
+ minZoom?: number | null | undefined;
3289
+ bounds?: [number, number, number, number] | null | undefined;
3290
+ } | null;
3291
+ type: "setViewportConstraints";
3292
+ }>;
977
3293
  declare const ViewportFitBoundsMessage: z.ZodObject<{
978
3294
  type: z.ZodLiteral<"fitViewportToBounds">;
979
3295
  params: z.ZodObject<{
@@ -998,16 +3314,18 @@ type ViewportSchema = {
998
3314
  methods: {
999
3315
  getViewport: Method<zInfer<typeof GetViewportMessage>, ViewportState>;
1000
3316
  setViewport: Method<zInfer<typeof GotoViewportMessage>, void>;
3317
+ getViewportConstraints: Method<zInfer<typeof GetViewportConstraintsMessage>, ViewportConstraints | null>;
3318
+ setViewportConstraints: Method<zInfer<typeof SetViewportConstraintsMessage>, void>;
1001
3319
  fitViewportToBounds: Method<zInfer<typeof ViewportFitBoundsMessage>, void>;
1002
3320
  };
1003
3321
  listeners: {
1004
- onViewportMove: Listener<void, ViewportState>;
1005
- onViewportMoveEnd: Listener<void, ViewportState>;
1006
- onMapIdle: Listener<void, void>;
3322
+ onViewportMove: ListenerNoOptions<ViewportState>;
3323
+ onViewportMoveEnd: ListenerNoOptions<ViewportState>;
3324
+ onMapIdle: ListenerNoOptions<void>;
1007
3325
  };
1008
3326
  };
1009
3327
 
1010
- type AllModules = UiSchema | ViewportSchema | LayersSchema | ElementsSchema | SelectionSchema | InteractionsSchema;
3328
+ type AllModules = UiSchema | ViewportSchema | LayersSchema | ElementsSchema | SelectionSchema | InteractionsSchema | ToolsSchema | InteractionsSchema | MiscSchema;
1011
3329
 
1012
3330
  type FeltHandlers = {
1013
3331
  methods: FeltMethodHandlers;
@@ -1015,28 +3333,40 @@ type FeltHandlers = {
1015
3333
  };
1016
3334
  type MethodSpec = UnionToIntersection<AllModules["methods"]>;
1017
3335
  type ListenerSpec = UnionToIntersection<AllModules["listeners"]>;
1018
- type ExtractMethodParams<T extends Record<string, {
3336
+ type ExtractMethodParams<T extends Record<string, AnyFunction | {
1019
3337
  request: {
1020
3338
  params?: any;
1021
3339
  };
1022
3340
  response: any;
1023
3341
  }>> = {
1024
- [K in keyof T]: {
3342
+ [K in keyof T]: T[K] extends {
3343
+ request: {
3344
+ params?: any;
3345
+ };
3346
+ response: any;
3347
+ } ? {
1025
3348
  request: T[K]["request"]["params"];
1026
3349
  response: T[K]["response"];
1027
- };
3350
+ } : T[K];
1028
3351
  };
1029
3352
  type ExtractListenerParams<T extends Record<string, {
1030
3353
  options: any;
1031
3354
  eventParams: any;
3355
+ } | {
3356
+ eventParams: any;
1032
3357
  }>> = {
1033
- [K in keyof T]: {
3358
+ [K in keyof T]: T[K] extends {
3359
+ options: any;
3360
+ } ? {
1034
3361
  options: T[K]["options"];
1035
3362
  eventParams: T[K]["eventParams"];
3363
+ } : {
3364
+ eventParams: T[K]["eventParams"];
1036
3365
  };
1037
3366
  };
3367
+ type AnyFunction = (...args: any[]) => any;
1038
3368
  type MethodHandlers<T> = {
1039
- [K in keyof T]: (request: T[K] extends {
3369
+ [K in keyof T]: T[K] extends AnyFunction ? T[K] : (request: T[K] extends {
1040
3370
  request: any;
1041
3371
  } ? T[K]["request"] : never) => PromiseOrNot<T[K] extends {
1042
3372
  response: any;
@@ -1044,13 +3374,17 @@ type MethodHandlers<T> = {
1044
3374
  };
1045
3375
  type FeltMethodHandlers = MethodHandlers<ExtractMethodParams<MethodSpec>>;
1046
3376
  type ListenerHandlers<T> = {
1047
- [K in keyof T]: (args: {
3377
+ [K in keyof T]: (args: T[K] extends {
3378
+ options: any;
3379
+ } ? {
3380
+ handler: (event: T[K] extends {
3381
+ eventParams: any;
3382
+ } ? T[K]["eventParams"] : never) => void;
3383
+ options: T[K]["options"];
3384
+ } : {
1048
3385
  handler: (event: T[K] extends {
1049
3386
  eventParams: any;
1050
3387
  } ? T[K]["eventParams"] : never) => void;
1051
- options: T[K] extends {
1052
- options: any;
1053
- } ? T[K]["options"] : never;
1054
3388
  }) => VoidFunction;
1055
3389
  };
1056
3390
  type FeltListenerHandlers = ListenerHandlers<ExtractListenerParams<ListenerSpec>>;