@feltmaps/js-sdk 1.5.0-next.16 → 1.5.0-next.18

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.
@@ -80,7 +80,14 @@ interface PolygonGeometry extends zInfer<typeof PolygonGeometrySchema> {
80
80
  */
81
81
  declare const PolygonGeometrySchema: z.ZodObject<{
82
82
  type: z.ZodLiteral<"Polygon">;
83
- coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
83
+ /**
84
+ * The coordinates of a polygon. The first array is the exterior ring, and
85
+ * any subsequent arrays are the interior rings.
86
+ *
87
+ * Each ring must have at least 4 points: 3 to make a valid triangle and the
88
+ * last to close the path, which must be identical to the first.
89
+ */
90
+ coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
84
91
  }, "strip", z.ZodTypeAny, {
85
92
  type: "Polygon";
86
93
  coordinates: [number, number][][];
@@ -525,7 +532,7 @@ declare const PolygonCreateSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
525
532
  strokeWidth: z.ZodOptional<z.ZodNumber>;
526
533
  strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
527
534
  type: z.ZodOptional<z.ZodLiteral<"Polygon">>;
528
- coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
535
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">>;
529
536
  fillOpacity: z.ZodOptional<z.ZodNumber>;
530
537
  areaMarker: z.ZodOptional<z.ZodBoolean>;
531
538
  }, Pick<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
@@ -618,7 +625,7 @@ declare const PolygonCreateSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
618
625
  strokeStyle: z.ZodEnum<["solid", "dashed", "dotted"]>;
619
626
  }>, {
620
627
  type: z.ZodLiteral<"Polygon">;
621
- coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
628
+ coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
622
629
  /**
623
630
  * The opacity of the polygon's fill, between 0 and 1.
624
631
  *
@@ -980,7 +987,7 @@ declare const HighlighterCreateSchema: z.ZodObject<Omit<z.objectUtil.extendShape
980
987
  attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
981
988
  interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
982
989
  type: z.ZodOptional<z.ZodLiteral<"Highlighter">>;
983
- coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">, "many">>;
990
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">, "many">>;
984
991
  renderHoles: z.ZodOptional<z.ZodBoolean>;
985
992
  opacity: z.ZodOptional<z.ZodNumber>;
986
993
  }, Pick<z.objectUtil.extendShape<{
@@ -1055,7 +1062,7 @@ declare const HighlighterCreateSchema: z.ZodObject<Omit<z.objectUtil.extendShape
1055
1062
  * If `renderHoles` is set to false, only the outer ring of each polygon
1056
1063
  * will be rendered, filling in the area inside the highlighted region.
1057
1064
  */
1058
- coordinates: z.ZodArray<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">, "many">;
1065
+ coordinates: z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">, "many">;
1059
1066
  /**
1060
1067
  * Whether to render the holes of the highlighted area.
1061
1068
  *
@@ -1102,7 +1109,7 @@ declare const TextCreateSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
1102
1109
  rotation: z.ZodOptional<z.ZodNumber>;
1103
1110
  scale: z.ZodOptional<z.ZodNumber>;
1104
1111
  zoom: z.ZodOptional<z.ZodNumber>;
1105
- coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
1112
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">>;
1106
1113
  text: z.ZodOptional<z.ZodString>;
1107
1114
  align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
1108
1115
  style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
@@ -1151,7 +1158,7 @@ declare const NoteCreateSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
1151
1158
  rotation: z.ZodOptional<z.ZodNumber>;
1152
1159
  scale: z.ZodOptional<z.ZodNumber>;
1153
1160
  zoom: z.ZodOptional<z.ZodNumber>;
1154
- coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
1161
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">>;
1155
1162
  text: z.ZodOptional<z.ZodString>;
1156
1163
  align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
1157
1164
  style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
@@ -1666,7 +1673,7 @@ declare const PolygonReadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<z.obj
1666
1673
  strokeStyle: z.ZodEnum<["solid", "dashed", "dotted"]>;
1667
1674
  }>, {
1668
1675
  type: z.ZodLiteral<"Polygon">;
1669
- coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
1676
+ coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
1670
1677
  /**
1671
1678
  * The opacity of the polygon's fill, between 0 and 1.
1672
1679
  *
@@ -2061,7 +2068,7 @@ declare const HighlighterReadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
2061
2068
  * If `renderHoles` is set to false, only the outer ring of each polygon
2062
2069
  * will be rendered, filling in the area inside the highlighted region.
2063
2070
  */
2064
- coordinates: z.ZodArray<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">, "many">;
2071
+ coordinates: z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">, "many">;
2065
2072
  /**
2066
2073
  * Whether to render the holes of the highlighted area.
2067
2074
  *
@@ -2166,7 +2173,7 @@ declare const TextReadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<z.object
2166
2173
  rotation: z.ZodNumber;
2167
2174
  scale: z.ZodNumber;
2168
2175
  zoom: z.ZodNumber;
2169
- coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
2176
+ coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
2170
2177
  }>, {
2171
2178
  /**
2172
2179
  * The text in the element.
@@ -2295,7 +2302,7 @@ declare const NoteReadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<z.object
2295
2302
  rotation: z.ZodNumber;
2296
2303
  scale: z.ZodNumber;
2297
2304
  zoom: z.ZodNumber;
2298
- coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
2305
+ coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
2299
2306
  }>, {
2300
2307
  /**
2301
2308
  * The text in the element.
@@ -2869,7 +2876,7 @@ declare const PolygonUpdateSchema: z.ZodObject<z.objectUtil.extendShape<{
2869
2876
  strokeWidth: z.ZodOptional<z.ZodNumber>;
2870
2877
  strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
2871
2878
  type: z.ZodOptional<z.ZodLiteral<"Polygon">>;
2872
- coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
2879
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">>;
2873
2880
  fillOpacity: z.ZodOptional<z.ZodNumber>;
2874
2881
  areaMarker: z.ZodOptional<z.ZodBoolean>;
2875
2882
  }, Pick<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
@@ -2962,7 +2969,7 @@ declare const PolygonUpdateSchema: z.ZodObject<z.objectUtil.extendShape<{
2962
2969
  strokeStyle: z.ZodEnum<["solid", "dashed", "dotted"]>;
2963
2970
  }>, {
2964
2971
  type: z.ZodLiteral<"Polygon">;
2965
- coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
2972
+ coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
2966
2973
  /**
2967
2974
  * The opacity of the polygon's fill, between 0 and 1.
2968
2975
  *
@@ -3330,7 +3337,7 @@ declare const HighlighterUpdateSchema: z.ZodObject<z.objectUtil.extendShape<{
3330
3337
  attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3331
3338
  interaction: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "locked"]>>>;
3332
3339
  type: z.ZodOptional<z.ZodLiteral<"Highlighter">>;
3333
- coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">, "many">>;
3340
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">, "many">>;
3334
3341
  renderHoles: z.ZodOptional<z.ZodBoolean>;
3335
3342
  opacity: z.ZodOptional<z.ZodNumber>;
3336
3343
  }, Pick<z.objectUtil.extendShape<{
@@ -3405,7 +3412,7 @@ declare const HighlighterUpdateSchema: z.ZodObject<z.objectUtil.extendShape<{
3405
3412
  * If `renderHoles` is set to false, only the outer ring of each polygon
3406
3413
  * will be rendered, filling in the area inside the highlighted region.
3407
3414
  */
3408
- coordinates: z.ZodArray<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">, "many">;
3415
+ coordinates: z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">, "many">;
3409
3416
  /**
3410
3417
  * Whether to render the holes of the highlighted area.
3411
3418
  *
@@ -3454,7 +3461,7 @@ declare const TextUpdateSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
3454
3461
  rotation: z.ZodOptional<z.ZodNumber>;
3455
3462
  scale: z.ZodOptional<z.ZodNumber>;
3456
3463
  zoom: z.ZodOptional<z.ZodNumber>;
3457
- coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
3464
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">>;
3458
3465
  text: z.ZodOptional<z.ZodString>;
3459
3466
  align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
3460
3467
  style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
@@ -3529,7 +3536,7 @@ declare const TextUpdateSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
3529
3536
  rotation: z.ZodNumber;
3530
3537
  scale: z.ZodNumber;
3531
3538
  zoom: z.ZodNumber;
3532
- coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
3539
+ coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
3533
3540
  }>, {
3534
3541
  /**
3535
3542
  * The text in the element.
@@ -3598,7 +3605,7 @@ declare const NoteUpdateSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
3598
3605
  rotation: z.ZodOptional<z.ZodNumber>;
3599
3606
  scale: z.ZodOptional<z.ZodNumber>;
3600
3607
  zoom: z.ZodOptional<z.ZodNumber>;
3601
- coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
3608
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">>;
3602
3609
  text: z.ZodOptional<z.ZodString>;
3603
3610
  align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
3604
3611
  style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
@@ -3674,7 +3681,7 @@ declare const NoteUpdateSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
3674
3681
  rotation: z.ZodNumber;
3675
3682
  scale: z.ZodNumber;
3676
3683
  zoom: z.ZodNumber;
3677
- coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
3684
+ coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
3678
3685
  }>, {
3679
3686
  /**
3680
3687
  * The text in the element.
@@ -4630,7 +4637,6 @@ interface LayerSchemaDateTimeAttribute extends LayerSchemaCommonAttribute {
4630
4637
  }>;
4631
4638
  }
4632
4639
  declare const EphemeralLayerSourceSchema: z.ZodObject<{
4633
- type: z.ZodLiteral<"application/geo+json">;
4634
4640
  name: z.ZodString;
4635
4641
  geometryStyles: z.ZodOptional<z.ZodObject<{
4636
4642
  Point: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
@@ -4646,7 +4652,6 @@ declare const EphemeralLayerSourceSchema: z.ZodObject<{
4646
4652
  Line?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
4647
4653
  }>>;
4648
4654
  }, "strip", z.ZodTypeAny, {
4649
- type: "application/geo+json";
4650
4655
  name: string;
4651
4656
  geometryStyles?: {
4652
4657
  Point?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
@@ -4654,7 +4659,6 @@ declare const EphemeralLayerSourceSchema: z.ZodObject<{
4654
4659
  Line?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
4655
4660
  } | undefined;
4656
4661
  }, {
4657
- type: "application/geo+json";
4658
4662
  name: string;
4659
4663
  geometryStyles?: {
4660
4664
  Point?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
@@ -4663,9 +4667,41 @@ declare const EphemeralLayerSourceSchema: z.ZodObject<{
4663
4667
  } | undefined;
4664
4668
  }>;
4665
4669
  interface EphemeralLayerSource extends zInfer<typeof EphemeralLayerSourceSchema> {
4670
+ /**
4671
+ * The styles to apply to each geometry on the layer.
4672
+ *
4673
+ * Each style should be a valid FSL style, as described in {@link Layer.style}.
4674
+ *
4675
+ * These are optional, and if missing will use a default style determined by
4676
+ * Felt, which you can consider to be undefined behaviour.
4677
+ *
4678
+ * @example
4679
+ * ```typescript
4680
+ * const layer = await layersController.createLayersFromGeoJson({
4681
+ * name: "My Layer",
4682
+ * geometryStyles: {
4683
+ * Point: {
4684
+ * paint: { color: "red", size: 8 },
4685
+ * },
4686
+ * Line: {
4687
+ * paint: { color: "blue", size: 4 },
4688
+ * config: { labelAttribute: ["name"] },
4689
+ * label: { minZoom: 0 },
4690
+ * },
4691
+ * Polygon: {
4692
+ * paint: { color: "green", strokeColor: "darkgreen" },
4693
+ * },
4694
+ * },
4695
+ * });
4696
+ * ```
4697
+ */
4698
+ geometryStyles?: {
4699
+ Point?: Record<string, unknown>;
4700
+ Line?: Record<string, unknown>;
4701
+ Polygon?: Record<string, unknown>;
4702
+ };
4666
4703
  }
4667
4704
  declare const GeoJsonFileSourceSchema: z.ZodObject<z.objectUtil.extendShape<{
4668
- type: z.ZodLiteral<"application/geo+json">;
4669
4705
  name: z.ZodString;
4670
4706
  geometryStyles: z.ZodOptional<z.ZodObject<{
4671
4707
  Point: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
@@ -4683,7 +4719,6 @@ declare const GeoJsonFileSourceSchema: z.ZodObject<z.objectUtil.extendShape<{
4683
4719
  }, {
4684
4720
  file: z.ZodType<File, z.ZodTypeDef, File>;
4685
4721
  }>, "strip", z.ZodTypeAny, {
4686
- type: "application/geo+json";
4687
4722
  name: string;
4688
4723
  file: File;
4689
4724
  geometryStyles?: {
@@ -4692,7 +4727,6 @@ declare const GeoJsonFileSourceSchema: z.ZodObject<z.objectUtil.extendShape<{
4692
4727
  Line?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
4693
4728
  } | undefined;
4694
4729
  }, {
4695
- type: "application/geo+json";
4696
4730
  name: string;
4697
4731
  file: File;
4698
4732
  geometryStyles?: {
@@ -4701,10 +4735,9 @@ declare const GeoJsonFileSourceSchema: z.ZodObject<z.objectUtil.extendShape<{
4701
4735
  Line?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
4702
4736
  } | undefined;
4703
4737
  }>;
4704
- interface GeoJsonFileSource extends zInfer<typeof GeoJsonFileSourceSchema>, EphemeralLayerSource {
4738
+ interface GeoJsonFileSource extends Omit<zInfer<typeof GeoJsonFileSourceSchema>, "geometryStyles">, EphemeralLayerSource {
4705
4739
  }
4706
4740
  declare const GeoJsonUrlSourceSchema: z.ZodObject<z.objectUtil.extendShape<{
4707
- type: z.ZodLiteral<"application/geo+json">;
4708
4741
  name: z.ZodString;
4709
4742
  geometryStyles: z.ZodOptional<z.ZodObject<{
4710
4743
  Point: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
@@ -4722,7 +4755,6 @@ declare const GeoJsonUrlSourceSchema: z.ZodObject<z.objectUtil.extendShape<{
4722
4755
  }, {
4723
4756
  url: z.ZodString;
4724
4757
  }>, "strip", z.ZodTypeAny, {
4725
- type: "application/geo+json";
4726
4758
  name: string;
4727
4759
  url: string;
4728
4760
  geometryStyles?: {
@@ -4731,7 +4763,6 @@ declare const GeoJsonUrlSourceSchema: z.ZodObject<z.objectUtil.extendShape<{
4731
4763
  Line?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
4732
4764
  } | undefined;
4733
4765
  }, {
4734
- type: "application/geo+json";
4735
4766
  name: string;
4736
4767
  url: string;
4737
4768
  geometryStyles?: {
@@ -4740,10 +4771,9 @@ declare const GeoJsonUrlSourceSchema: z.ZodObject<z.objectUtil.extendShape<{
4740
4771
  Line?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
4741
4772
  } | undefined;
4742
4773
  }>;
4743
- interface GeoJsonUrlSource extends z.infer<typeof GeoJsonUrlSourceSchema>, EphemeralLayerSource {
4774
+ interface GeoJsonUrlSource extends Omit<zInfer<typeof GeoJsonUrlSourceSchema>, "geometryStyles">, EphemeralLayerSource {
4744
4775
  }
4745
4776
  declare const GeoJsonArrayBufferSourceSchema: z.ZodObject<z.objectUtil.extendShape<{
4746
- type: z.ZodLiteral<"application/geo+json">;
4747
4777
  name: z.ZodString;
4748
4778
  geometryStyles: z.ZodOptional<z.ZodObject<{
4749
4779
  Point: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
@@ -4761,7 +4791,6 @@ declare const GeoJsonArrayBufferSourceSchema: z.ZodObject<z.objectUtil.extendSha
4761
4791
  }, {
4762
4792
  arrayBuffer: z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>;
4763
4793
  }>, "strip", z.ZodTypeAny, {
4764
- type: "application/geo+json";
4765
4794
  name: string;
4766
4795
  arrayBuffer: ArrayBuffer;
4767
4796
  geometryStyles?: {
@@ -4770,7 +4799,6 @@ declare const GeoJsonArrayBufferSourceSchema: z.ZodObject<z.objectUtil.extendSha
4770
4799
  Line?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
4771
4800
  } | undefined;
4772
4801
  }, {
4773
- type: "application/geo+json";
4774
4802
  name: string;
4775
4803
  arrayBuffer: ArrayBuffer;
4776
4804
  geometryStyles?: {
@@ -4779,7 +4807,7 @@ declare const GeoJsonArrayBufferSourceSchema: z.ZodObject<z.objectUtil.extendSha
4779
4807
  Line?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
4780
4808
  } | undefined;
4781
4809
  }>;
4782
- interface GeoJsonArrayBufferSource extends zInfer<typeof GeoJsonArrayBufferSourceSchema>, EphemeralLayerSource {
4810
+ interface GeoJsonArrayBufferSource extends Omit<zInfer<typeof GeoJsonArrayBufferSourceSchema>, "geometryStyles">, EphemeralLayerSource {
4783
4811
  }
4784
4812
 
4785
4813
  /**
@@ -5028,16 +5056,35 @@ interface MultiAggregationConfig<T extends AggregationMethod | "count"> extends
5028
5056
  */
5029
5057
  attribute?: string;
5030
5058
  }
5059
+ /**
5060
+ * The common type for filtering data by a spatial boundary.
5061
+ *
5062
+ * This can be either:
5063
+ * - `FeltBoundary`: a [w, s, e, n] bounding box
5064
+ * - `PolygonGeometry`: a GeoJSON Polygon geometry
5065
+ * - `MultiPolygonGeometry`: a GeoJSON MultiPolygon geometry
5066
+ * - `LngLatTuple[]`: a list of coordinates describing a single ring of a polygon
5067
+ */
5068
+ type GeometryFilter = FeltBoundary | PolygonGeometry | MultiPolygonGeometry | LngLatTuple[];
5031
5069
  declare const ValueConfigurationSchema: z.ZodObject<{
5032
5070
  boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
5033
5071
  type: z.ZodLiteral<"Polygon">;
5034
- coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
5072
+ coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
5035
5073
  }, "strip", z.ZodTypeAny, {
5036
5074
  type: "Polygon";
5037
5075
  coordinates: [number, number][][];
5038
5076
  }, {
5039
5077
  type: "Polygon";
5040
5078
  coordinates: [number, number][][];
5079
+ }>, z.ZodObject<{
5080
+ type: z.ZodLiteral<"MultiPolygon">;
5081
+ coordinates: z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">, "many">;
5082
+ }, "strip", z.ZodTypeAny, {
5083
+ type: "MultiPolygon";
5084
+ coordinates: [number, number][][][];
5085
+ }, {
5086
+ type: "MultiPolygon";
5087
+ coordinates: [number, number][][][];
5041
5088
  }>, z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">]>>;
5042
5089
  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]>>;
5043
5090
  aggregation: z.ZodOptional<z.ZodObject<{
@@ -5060,6 +5107,9 @@ declare const ValueConfigurationSchema: z.ZodObject<{
5060
5107
  boundary?: [number, number, number, number] | [number, number][] | {
5061
5108
  type: "Polygon";
5062
5109
  coordinates: [number, number][][];
5110
+ } | {
5111
+ type: "MultiPolygon";
5112
+ coordinates: [number, number][][][];
5063
5113
  } | undefined;
5064
5114
  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 | undefined;
5065
5115
  aggregation?: {
@@ -5070,6 +5120,9 @@ declare const ValueConfigurationSchema: z.ZodObject<{
5070
5120
  boundary?: [number, number, number, number] | [number, number][] | {
5071
5121
  type: "Polygon";
5072
5122
  coordinates: [number, number][][];
5123
+ } | {
5124
+ type: "MultiPolygon";
5125
+ coordinates: [number, number][][][];
5073
5126
  } | undefined;
5074
5127
  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 | undefined;
5075
5128
  aggregation?: {
@@ -5087,13 +5140,11 @@ declare const ValueConfigurationSchema: z.ZodObject<{
5087
5140
  */
5088
5141
  interface ValueConfiguration extends zInfer<typeof ValueConfigurationSchema> {
5089
5142
  /**
5090
- * A spatial boundary to filter what gets counted or aggregated, while still including
5091
- * all possible categories or bin ranges in the results.
5143
+ * The spatial boundary for what to count or aggregate.
5092
5144
  */
5093
- boundary?: PolygonGeometry | LngLatTuple[] | FeltBoundary;
5145
+ boundary?: GeometryFilter;
5094
5146
  /**
5095
- * Attribute filters to determine what gets counted or aggregated, while still including
5096
- * all possible categories or bin ranges in the results.
5147
+ * Attribute filters to determine what gets counted or aggregated.
5097
5148
  */
5098
5149
  filters?: Filters;
5099
5150
  /**
@@ -5121,25 +5172,43 @@ declare const GetLayerCategoriesParamsSchema: z.ZodObject<{
5121
5172
  limit: z.ZodOptional<z.ZodNumber>;
5122
5173
  boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
5123
5174
  type: z.ZodLiteral<"Polygon">;
5124
- coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
5175
+ coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
5125
5176
  }, "strip", z.ZodTypeAny, {
5126
5177
  type: "Polygon";
5127
5178
  coordinates: [number, number][][];
5128
5179
  }, {
5129
5180
  type: "Polygon";
5130
5181
  coordinates: [number, number][][];
5182
+ }>, z.ZodObject<{
5183
+ type: z.ZodLiteral<"MultiPolygon">;
5184
+ coordinates: z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">, "many">;
5185
+ }, "strip", z.ZodTypeAny, {
5186
+ type: "MultiPolygon";
5187
+ coordinates: [number, number][][][];
5188
+ }, {
5189
+ type: "MultiPolygon";
5190
+ coordinates: [number, number][][][];
5131
5191
  }>, z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">]>>;
5132
5192
  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]>>;
5133
5193
  values: z.ZodOptional<z.ZodObject<{
5134
5194
  boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
5135
5195
  type: z.ZodLiteral<"Polygon">;
5136
- coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
5196
+ coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
5137
5197
  }, "strip", z.ZodTypeAny, {
5138
5198
  type: "Polygon";
5139
5199
  coordinates: [number, number][][];
5140
5200
  }, {
5141
5201
  type: "Polygon";
5142
5202
  coordinates: [number, number][][];
5203
+ }>, z.ZodObject<{
5204
+ type: z.ZodLiteral<"MultiPolygon">;
5205
+ coordinates: z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">, "many">;
5206
+ }, "strip", z.ZodTypeAny, {
5207
+ type: "MultiPolygon";
5208
+ coordinates: [number, number][][][];
5209
+ }, {
5210
+ type: "MultiPolygon";
5211
+ coordinates: [number, number][][][];
5143
5212
  }>, z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">]>>;
5144
5213
  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]>>;
5145
5214
  aggregation: z.ZodOptional<z.ZodObject<{
@@ -5162,6 +5231,9 @@ declare const GetLayerCategoriesParamsSchema: z.ZodObject<{
5162
5231
  boundary?: [number, number, number, number] | [number, number][] | {
5163
5232
  type: "Polygon";
5164
5233
  coordinates: [number, number][][];
5234
+ } | {
5235
+ type: "MultiPolygon";
5236
+ coordinates: [number, number][][][];
5165
5237
  } | undefined;
5166
5238
  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 | undefined;
5167
5239
  aggregation?: {
@@ -5172,6 +5244,9 @@ declare const GetLayerCategoriesParamsSchema: z.ZodObject<{
5172
5244
  boundary?: [number, number, number, number] | [number, number][] | {
5173
5245
  type: "Polygon";
5174
5246
  coordinates: [number, number][][];
5247
+ } | {
5248
+ type: "MultiPolygon";
5249
+ coordinates: [number, number][][][];
5175
5250
  } | undefined;
5176
5251
  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 | undefined;
5177
5252
  aggregation?: {
@@ -5186,6 +5261,9 @@ declare const GetLayerCategoriesParamsSchema: z.ZodObject<{
5186
5261
  boundary?: [number, number, number, number] | [number, number][] | {
5187
5262
  type: "Polygon";
5188
5263
  coordinates: [number, number][][];
5264
+ } | {
5265
+ type: "MultiPolygon";
5266
+ coordinates: [number, number][][][];
5189
5267
  } | undefined;
5190
5268
  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 | undefined;
5191
5269
  aggregation?: {
@@ -5196,6 +5274,9 @@ declare const GetLayerCategoriesParamsSchema: z.ZodObject<{
5196
5274
  boundary?: [number, number, number, number] | [number, number][] | {
5197
5275
  type: "Polygon";
5198
5276
  coordinates: [number, number][][];
5277
+ } | {
5278
+ type: "MultiPolygon";
5279
+ coordinates: [number, number][][][];
5199
5280
  } | undefined;
5200
5281
  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 | undefined;
5201
5282
  limit?: number | undefined;
@@ -5206,6 +5287,9 @@ declare const GetLayerCategoriesParamsSchema: z.ZodObject<{
5206
5287
  boundary?: [number, number, number, number] | [number, number][] | {
5207
5288
  type: "Polygon";
5208
5289
  coordinates: [number, number][][];
5290
+ } | {
5291
+ type: "MultiPolygon";
5292
+ coordinates: [number, number][][][];
5209
5293
  } | undefined;
5210
5294
  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 | undefined;
5211
5295
  aggregation?: {
@@ -5216,6 +5300,9 @@ declare const GetLayerCategoriesParamsSchema: z.ZodObject<{
5216
5300
  boundary?: [number, number, number, number] | [number, number][] | {
5217
5301
  type: "Polygon";
5218
5302
  coordinates: [number, number][][];
5303
+ } | {
5304
+ type: "MultiPolygon";
5305
+ coordinates: [number, number][][][];
5219
5306
  } | undefined;
5220
5307
  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 | undefined;
5221
5308
  limit?: number | undefined;
@@ -5226,15 +5313,13 @@ declare const GetLayerCategoriesParamsSchema: z.ZodObject<{
5226
5313
  */
5227
5314
  interface GetLayerCategoriesParams extends zInfer<typeof GetLayerCategoriesParamsSchema> {
5228
5315
  /**
5229
- * Attribute filters to determine what gets counted or aggregated.
5316
+ * Attribute filters for the features to include when calculating the categories.
5230
5317
  */
5231
5318
  filters?: Filters;
5232
5319
  /**
5233
- * A spatial boundary to filter what gets counted or aggregated. This can be either
5234
- * a [w, s, e, n] bounding box, a GeoJSON Polygon geometry, or a list of coordinates
5235
- * that form a polyline.
5320
+ * The spatial boundary for the features to include when calculating the categories.
5236
5321
  */
5237
- boundary?: PolygonGeometry | LngLatTuple[] | FeltBoundary;
5322
+ boundary?: GeometryFilter;
5238
5323
  /**
5239
5324
  * Configuration for filtering and aggregating values while preserving the full set of
5240
5325
  * categories in the results.
@@ -5299,13 +5384,22 @@ declare const GetLayerHistogramParamsSchema: z.ZodObject<{
5299
5384
  }>, z.ZodArray<z.ZodNumber, "many">]>;
5300
5385
  boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
5301
5386
  type: z.ZodLiteral<"Polygon">;
5302
- coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
5387
+ coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
5303
5388
  }, "strip", z.ZodTypeAny, {
5304
5389
  type: "Polygon";
5305
5390
  coordinates: [number, number][][];
5306
5391
  }, {
5307
5392
  type: "Polygon";
5308
5393
  coordinates: [number, number][][];
5394
+ }>, z.ZodObject<{
5395
+ type: z.ZodLiteral<"MultiPolygon">;
5396
+ coordinates: z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">, "many">;
5397
+ }, "strip", z.ZodTypeAny, {
5398
+ type: "MultiPolygon";
5399
+ coordinates: [number, number][][][];
5400
+ }, {
5401
+ type: "MultiPolygon";
5402
+ coordinates: [number, number][][][];
5309
5403
  }>, z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">]>>;
5310
5404
  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]>>;
5311
5405
  /**
@@ -5324,13 +5418,22 @@ declare const GetLayerHistogramParamsSchema: z.ZodObject<{
5324
5418
  values: z.ZodOptional<z.ZodObject<{
5325
5419
  boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
5326
5420
  type: z.ZodLiteral<"Polygon">;
5327
- coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
5421
+ coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
5328
5422
  }, "strip", z.ZodTypeAny, {
5329
5423
  type: "Polygon";
5330
5424
  coordinates: [number, number][][];
5331
5425
  }, {
5332
5426
  type: "Polygon";
5333
5427
  coordinates: [number, number][][];
5428
+ }>, z.ZodObject<{
5429
+ type: z.ZodLiteral<"MultiPolygon">;
5430
+ coordinates: z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">, "many">;
5431
+ }, "strip", z.ZodTypeAny, {
5432
+ type: "MultiPolygon";
5433
+ coordinates: [number, number][][][];
5434
+ }, {
5435
+ type: "MultiPolygon";
5436
+ coordinates: [number, number][][][];
5334
5437
  }>, z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">]>>;
5335
5438
  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]>>;
5336
5439
  aggregation: z.ZodOptional<z.ZodObject<{
@@ -5353,6 +5456,9 @@ declare const GetLayerHistogramParamsSchema: z.ZodObject<{
5353
5456
  boundary?: [number, number, number, number] | [number, number][] | {
5354
5457
  type: "Polygon";
5355
5458
  coordinates: [number, number][][];
5459
+ } | {
5460
+ type: "MultiPolygon";
5461
+ coordinates: [number, number][][][];
5356
5462
  } | undefined;
5357
5463
  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 | undefined;
5358
5464
  aggregation?: {
@@ -5363,6 +5469,9 @@ declare const GetLayerHistogramParamsSchema: z.ZodObject<{
5363
5469
  boundary?: [number, number, number, number] | [number, number][] | {
5364
5470
  type: "Polygon";
5365
5471
  coordinates: [number, number][][];
5472
+ } | {
5473
+ type: "MultiPolygon";
5474
+ coordinates: [number, number][][][];
5366
5475
  } | undefined;
5367
5476
  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 | undefined;
5368
5477
  aggregation?: {
@@ -5384,6 +5493,9 @@ declare const GetLayerHistogramParamsSchema: z.ZodObject<{
5384
5493
  boundary?: [number, number, number, number] | [number, number][] | {
5385
5494
  type: "Polygon";
5386
5495
  coordinates: [number, number][][];
5496
+ } | {
5497
+ type: "MultiPolygon";
5498
+ coordinates: [number, number][][][];
5387
5499
  } | undefined;
5388
5500
  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 | undefined;
5389
5501
  aggregation?: {
@@ -5394,6 +5506,9 @@ declare const GetLayerHistogramParamsSchema: z.ZodObject<{
5394
5506
  boundary?: [number, number, number, number] | [number, number][] | {
5395
5507
  type: "Polygon";
5396
5508
  coordinates: [number, number][][];
5509
+ } | {
5510
+ type: "MultiPolygon";
5511
+ coordinates: [number, number][][][];
5397
5512
  } | undefined;
5398
5513
  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 | undefined;
5399
5514
  }, {
@@ -5410,6 +5525,9 @@ declare const GetLayerHistogramParamsSchema: z.ZodObject<{
5410
5525
  boundary?: [number, number, number, number] | [number, number][] | {
5411
5526
  type: "Polygon";
5412
5527
  coordinates: [number, number][][];
5528
+ } | {
5529
+ type: "MultiPolygon";
5530
+ coordinates: [number, number][][][];
5413
5531
  } | undefined;
5414
5532
  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 | undefined;
5415
5533
  aggregation?: {
@@ -5420,6 +5538,9 @@ declare const GetLayerHistogramParamsSchema: z.ZodObject<{
5420
5538
  boundary?: [number, number, number, number] | [number, number][] | {
5421
5539
  type: "Polygon";
5422
5540
  coordinates: [number, number][][];
5541
+ } | {
5542
+ type: "MultiPolygon";
5543
+ coordinates: [number, number][][][];
5423
5544
  } | undefined;
5424
5545
  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 | undefined;
5425
5546
  }>;
@@ -5429,15 +5550,13 @@ declare const GetLayerHistogramParamsSchema: z.ZodObject<{
5429
5550
  */
5430
5551
  interface GetLayerHistogramParams extends zInfer<typeof GetLayerHistogramParamsSchema> {
5431
5552
  /**
5432
- * Attribute filters to determine what gets counted or aggregated.
5553
+ * Attribute filters for the features to include when calculating the histogram bins.
5433
5554
  */
5434
5555
  filters?: Filters;
5435
5556
  /**
5436
- * A spatial boundary to filter what gets counted or aggregated. This can be either
5437
- * a [w, s, e, n] bounding box, a GeoJSON Polygon geometry, or a list of coordinates
5438
- * that form a polyline.
5557
+ * The spatial boundary for the features to include when calculating the histogram bins.
5439
5558
  */
5440
- boundary?: PolygonGeometry | LngLatTuple[] | FeltBoundary;
5559
+ boundary?: GeometryFilter;
5441
5560
  }
5442
5561
  declare const GetLayerHistogramBinSchema: z.ZodObject<{
5443
5562
  /**
@@ -5473,13 +5592,22 @@ declare const GetLayerCalculationParamsSchema: z.ZodObject<{
5473
5592
  layerId: z.ZodString;
5474
5593
  boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
5475
5594
  type: z.ZodLiteral<"Polygon">;
5476
- coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
5595
+ coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
5477
5596
  }, "strip", z.ZodTypeAny, {
5478
5597
  type: "Polygon";
5479
5598
  coordinates: [number, number][][];
5480
5599
  }, {
5481
5600
  type: "Polygon";
5482
5601
  coordinates: [number, number][][];
5602
+ }>, z.ZodObject<{
5603
+ type: z.ZodLiteral<"MultiPolygon">;
5604
+ coordinates: z.ZodArray<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">, "many">;
5605
+ }, "strip", z.ZodTypeAny, {
5606
+ type: "MultiPolygon";
5607
+ coordinates: [number, number][][][];
5608
+ }, {
5609
+ type: "MultiPolygon";
5610
+ coordinates: [number, number][][][];
5483
5611
  }>, z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">]>>;
5484
5612
  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]>>;
5485
5613
  aggregation: z.ZodObject<{
@@ -5507,6 +5635,9 @@ declare const GetLayerCalculationParamsSchema: z.ZodObject<{
5507
5635
  boundary?: [number, number, number, number] | [number, number][] | {
5508
5636
  type: "Polygon";
5509
5637
  coordinates: [number, number][][];
5638
+ } | {
5639
+ type: "MultiPolygon";
5640
+ coordinates: [number, number][][][];
5510
5641
  } | undefined;
5511
5642
  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 | undefined;
5512
5643
  }, {
@@ -5518,6 +5649,9 @@ declare const GetLayerCalculationParamsSchema: z.ZodObject<{
5518
5649
  boundary?: [number, number, number, number] | [number, number][] | {
5519
5650
  type: "Polygon";
5520
5651
  coordinates: [number, number][][];
5652
+ } | {
5653
+ type: "MultiPolygon";
5654
+ coordinates: [number, number][][][];
5521
5655
  } | undefined;
5522
5656
  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 | undefined;
5523
5657
  }>;
@@ -5527,15 +5661,13 @@ declare const GetLayerCalculationParamsSchema: z.ZodObject<{
5527
5661
  */
5528
5662
  interface GetLayerCalculationParams<T extends AggregationMethod | "count"> extends z.infer<typeof GetLayerCalculationParamsSchema> {
5529
5663
  /**
5530
- * Attribute filters to determine what gets counted or aggregated.
5664
+ * Attribute filters for the features to include when calculating the aggregate value.
5531
5665
  */
5532
5666
  filters?: Filters;
5533
5667
  /**
5534
- * A spatial boundary to filter what gets counted or aggregated. This can be either
5535
- * a [w, s, e, n] bounding box, a GeoJSON Polygon geometry, or a list of coordinates
5536
- * that form a polyline.
5668
+ * The spatial boundary for the features to include when calculating the aggregate value.
5537
5669
  */
5538
- boundary?: PolygonGeometry | LngLatTuple[] | FeltBoundary;
5670
+ boundary?: GeometryFilter;
5539
5671
  /**
5540
5672
  * Specifies how to aggregate values within each category or bin. When omitted,
5541
5673
  * features are counted. When specified, the chosen calculation (avg, sum, etc.)
@@ -6095,4 +6227,4 @@ declare const ViewportFitBoundsParamsSchema: z.ZodObject<{
6095
6227
  bounds: [number, number, number, number];
6096
6228
  }>;
6097
6229
 
6098
- export type { CircleElementUpdate as $, GetLayerHistogramBin as A, AggregationMethod as B, GetLayerCalculationParams as C, LayerSchema as D, Element as E, Filters as F, GeoJsonGeometry as G, MapDetails as H, EntityNode as I, FeatureSelection as J, InputToolSettings as K, Layer as L, MapInteractionEvent as M, ConfigurableToolType as N, ToolSettingsMap as O, ToolSettingsChangeEvent as P, zInfer as Q, SortConfig as R, SetVisibilityRequest as S, ToolType as T, SetViewportCenterZoomParams as U, ViewportState as V, ViewportConstraints as W, ViewportFitBoundsParams as X, ViewportCenterZoom as Y, CircleElementCreate as Z, CircleElementRead as _, GetElementsConstraint as a, PinToolSettings as a$, HighlighterElementCreate as a0, HighlighterElementRead as a1, HighlighterElementUpdate as a2, ImageElementCreate as a3, ImageElementRead as a4, ImageElementUpdate as a5, LinkElementRead as a6, MarkerElementCreate as a7, MarkerElementRead as a8, MarkerElementUpdate as a9, FilterLogicGate as aA, FilterTernary as aB, AggregationConfig as aC, MultiAggregationConfig as aD, ValueConfiguration as aE, ElementGroupNode as aF, ElementNode as aG, FeatureNode as aH, LayerGroupNode as aI, LayerNode as aJ, FeltBoundary as aK, FeltZoom as aL, GeoJsonProperties as aM, LatLng as aN, LineStringGeometry as aO, LngLatTuple as aP, MultiLineStringGeometry as aQ, MultiPointGeometry as aR, MultiPolygonGeometry as aS, PointGeometry as aT, PolygonGeometry as aU, SortDirection as aV, CircleToolSettings as aW, HighlighterToolSettings as aX, LineToolSettings as aY, MarkerToolSettings as aZ, NoteToolSettings as a_, NoteElementCreate as aa, NoteElementRead as ab, NoteElementUpdate as ac, PathElementCreate as ad, PathElementRead as ae, PathElementUpdate as af, PlaceElementCreate as ag, PlaceElementRead as ah, PlaceElementUpdate as ai, PolygonElementCreate as aj, PolygonElementRead as ak, PolygonElementUpdate as al, TextElementCreate as am, TextElementRead as an, TextElementUpdate as ao, EphemeralLayerSource as ap, LayerProcessingStatus as aq, RasterValue as ar, LayerSchemaAttribute as as, LayerSchemaBooleanAttribute as at, LayerSchemaCommonAttribute as au, LayerSchemaDateAttribute as av, LayerSchemaDateTimeAttribute as aw, LayerSchemaNumericAttribute as ax, LayerSchemaTextAttribute as ay, FilterExpression as az, ElementGroup as b, PlaceFrame as b0, PlaceSymbol as b1, PolygonToolSettings as b2, RouteToolSettings as b3, TextToolSettings as b4, UnionToIntersection as b5, PromiseOrNot as b6, GetElementGroupsConstraint as c, ElementChangeCallbackParams as d, ElementGroupChangeCallbackParams as e, ElementCreate as f, ElementUpdate as g, GetLayersConstraint as h, LayerChangeCallbackParams as i, GeoJsonArrayBufferSource as j, GeoJsonFileSource as k, GeoJsonUrlSource as l, LayerGroup as m, GetLayerGroupsConstraint as n, LayerGroupChangeCallbackParams as o, LegendItemIdentifier as p, LegendItem as q, LegendItemsConstraint as r, LegendItemChangeCallbackParams as s, LayerFilters as t, GetRenderedFeaturesConstraint as u, LayerFeature as v, GeoJsonFeature as w, GetLayerCategoriesParams as x, GetLayerCategoriesGroup as y, GetLayerHistogramParams as z };
6230
+ export type { CircleElementUpdate as $, GetLayerHistogramBin as A, AggregationMethod as B, GetLayerCalculationParams as C, LayerSchema as D, Element as E, Filters as F, GeoJsonGeometry as G, MapDetails as H, EntityNode as I, FeatureSelection as J, InputToolSettings as K, Layer as L, MapInteractionEvent as M, ConfigurableToolType as N, ToolSettingsMap as O, ToolSettingsChangeEvent as P, zInfer as Q, SortConfig as R, SetVisibilityRequest as S, ToolType as T, SetViewportCenterZoomParams as U, ViewportState as V, ViewportConstraints as W, ViewportFitBoundsParams as X, ViewportCenterZoom as Y, CircleElementCreate as Z, CircleElementRead as _, GetElementsConstraint as a, NoteToolSettings as a$, HighlighterElementCreate as a0, HighlighterElementRead as a1, HighlighterElementUpdate as a2, ImageElementCreate as a3, ImageElementRead as a4, ImageElementUpdate as a5, LinkElementRead as a6, MarkerElementCreate as a7, MarkerElementRead as a8, MarkerElementUpdate as a9, FilterLogicGate as aA, FilterTernary as aB, AggregationConfig as aC, GeometryFilter as aD, MultiAggregationConfig as aE, ValueConfiguration as aF, ElementGroupNode as aG, ElementNode as aH, FeatureNode as aI, LayerGroupNode as aJ, LayerNode as aK, FeltBoundary as aL, FeltZoom as aM, GeoJsonProperties as aN, LatLng as aO, LineStringGeometry as aP, LngLatTuple as aQ, MultiLineStringGeometry as aR, MultiPointGeometry as aS, MultiPolygonGeometry as aT, PointGeometry as aU, PolygonGeometry as aV, SortDirection as aW, CircleToolSettings as aX, HighlighterToolSettings as aY, LineToolSettings as aZ, MarkerToolSettings as a_, NoteElementCreate as aa, NoteElementRead as ab, NoteElementUpdate as ac, PathElementCreate as ad, PathElementRead as ae, PathElementUpdate as af, PlaceElementCreate as ag, PlaceElementRead as ah, PlaceElementUpdate as ai, PolygonElementCreate as aj, PolygonElementRead as ak, PolygonElementUpdate as al, TextElementCreate as am, TextElementRead as an, TextElementUpdate as ao, EphemeralLayerSource as ap, LayerProcessingStatus as aq, RasterValue as ar, LayerSchemaAttribute as as, LayerSchemaBooleanAttribute as at, LayerSchemaCommonAttribute as au, LayerSchemaDateAttribute as av, LayerSchemaDateTimeAttribute as aw, LayerSchemaNumericAttribute as ax, LayerSchemaTextAttribute as ay, FilterExpression as az, ElementGroup as b, PinToolSettings as b0, PlaceFrame as b1, PlaceSymbol as b2, PolygonToolSettings as b3, RouteToolSettings as b4, TextToolSettings as b5, UnionToIntersection as b6, PromiseOrNot as b7, GetElementGroupsConstraint as c, ElementChangeCallbackParams as d, ElementGroupChangeCallbackParams as e, ElementCreate as f, ElementUpdate as g, GetLayersConstraint as h, LayerChangeCallbackParams as i, GeoJsonArrayBufferSource as j, GeoJsonFileSource as k, GeoJsonUrlSource as l, LayerGroup as m, GetLayerGroupsConstraint as n, LayerGroupChangeCallbackParams as o, LegendItemIdentifier as p, LegendItem as q, LegendItemsConstraint as r, LegendItemChangeCallbackParams as s, LayerFilters as t, GetRenderedFeaturesConstraint as u, LayerFeature as v, GeoJsonFeature as w, GetLayerCategoriesParams as x, GetLayerCategoriesGroup as y, GetLayerHistogramParams as z };