@mappedin/mappedin-js 6.31.0 → 6.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@ import { MVFv2_STANDARD_MVFv3 as MVFv2_STANDARD_MVFv3$1, ParsedMVF as ParsedMVF$
4
4
  import * as _mappedin_renderer_three0 from "@mappedin/renderer-three";
5
5
  import { AddLabelOptionsInternal, AddText3DOptions, AddText3DOptions as AddText3DOptions$1, AddText3DPointOptions, AddText3DPointOptions as AddText3DPointOptions$1, CameraSystemState, ColorString, DebugState, DebugState as DebugState$1, EntityId, EnvMapOptions, EnvMapOptions as EnvMapOptions$1, GLTFExportOptions as GLTFExportOptions$1, GroupContainerState, ISystemPlugin, ISystemPlugin as ISystemPlugin$1, ImagePlacementOptions, InitializeModelState, InitializeModelState as InitializeModelState$1, InitializeText3DState, InsetPadding, InsetPadding as InsetPadding$1, InsetPaddingOption, InsetPaddingOption as InsetPaddingOption$1, InterpolateOn, Interpolation, LabelRenderedState, LineStyle, LineStyle as LineStyle$1, MapViewState, MarkerState, OutlinesOptions, PaintStyle, PaintStyle as PaintStyle$1, PathState, PathWidth, PathWidth as PathWidth$1, PixelWidth, Position as Position$1, RendererCore, RendererCoreOptions, RendererCoreOptions as RendererCoreOptions$1, Shading, ShadowsOptions, Text3DState, WatermarkUpdateOptions } from "@mappedin/renderer-three";
6
6
  import * as three0 from "three";
7
- import { AmbientLight, BatchedMesh, BatchedMeshGeometryRange, Box3, BufferAttribute, BufferGeometry, Camera as Camera$1, Color, DataTexture, DirectionalLight, Group, Intersection, LineSegments, Matrix4, Mesh, MeshLambertMaterial, MeshLambertMaterialParameters, Object3D, Object3DEventMap, PerspectiveCamera, Plane, PlaneGeometry, Raycaster, Scene, ShaderMaterial, Texture, TubeGeometry, Vector2, Vector3, WebGLRenderer } from "three";
7
+ import { AmbientLight, BatchedMesh, BatchedMeshGeometryRange, Box3, BufferAttribute, BufferGeometry, Camera as Camera$1, Color, DataTexture, DirectionalLight, Group, IUniform, Intersection, LineSegments, Matrix4, Mesh, MeshLambertMaterial, MeshLambertMaterialParameters, Object3D, Object3DEventMap, PerspectiveCamera, Plane, PlaneGeometry, Raycaster, Scene, ShaderMaterial, Texture, TubeGeometry, Vector2, Vector3, WebGLRenderer } from "three";
8
8
  import * as _tweenjs_tween_js0 from "@tweenjs/tween.js";
9
9
  import { Group as Group$1, Tween } from "@tweenjs/tween.js";
10
10
  import { CustomLayerInterface, IControl, Map as Map$1, MapEventType } from "@mappedin/outdoor-context";
@@ -226,8 +226,68 @@ type TMVFVersion = '2.0.0' | '2.0.0-c' | '3.0.0' | '3.0.0-native';
226
226
  type TSearchOptions = {
227
227
  /**
228
228
  * Indicates whether search functionality is enabled.
229
+ * @default false
229
230
  */
230
231
  enabled: boolean;
232
+ /**
233
+ * Index runs of neighbouring words in separate joined fields, so a query
234
+ * typed without spaces ("katespade") matches a value stored with spaces
235
+ * ("Kate Spade"). Opt-in: disabled unless `enabled: true`.
236
+ *
237
+ * The base `name`/`tags` fields, their ranking, and `suggest()` are
238
+ * untouched. Joined runs live in their own fields, so they can only add
239
+ * matches; they never leak into suggestions. Search `limit` is applied after
240
+ * the merge, so a joined-only match can push a base match out of a truncated
241
+ * list.
242
+ *
243
+ * Modelled on Elasticsearch's `shingle` token filter, applied to a separate
244
+ * multi-field: runs are only of size 2 and up (`output_unigrams: true` keeps
245
+ * single words in the base fields), and the separator is `""`
246
+ * (`token_separator` defaults to a space, which would make each run several
247
+ * tokens again).
248
+ *
249
+ * @experimental
250
+ */
251
+ joinedWords?: TSearchJoinedWordsOptions;
252
+ };
253
+ /**
254
+ * Options for the separate joined-word index fields. Equivalent to
255
+ * Elasticsearch's `shingle` token filter with `min_shingle_size: 2`,
256
+ * `token_separator: ""`, and `output_unigrams: true`, written to a sub-field
257
+ * that `search()` reads and `suggest()` never does.
258
+ *
259
+ * There is no minimum option: runs of two or more words are always included.
260
+ * There is no separator option: the joined text is tokenized again, so only
261
+ * `""` keeps a run as one term. `maxWords` is clamped to 2–4, matching
262
+ * `search_as_you_type.max_shingle_size` ("integer values 2 - 4 inclusive");
263
+ * unlike that field type we default to 2, because pairs cover the common
264
+ * joined brand names and every extra size adds terms.
265
+ *
266
+ * @experimental
267
+ */
268
+ type TSearchJoinedWordsOptions = {
269
+ /**
270
+ * Whether to index joined word runs.
271
+ * @default false
272
+ */
273
+ enabled?: boolean;
274
+ /**
275
+ * Largest run of neighbouring words indexed as one joined term. All sizes
276
+ * from 2 up to this value are indexed in one field (Elasticsearch's
277
+ * `search_as_you_type` instead creates one sub-field per size).
278
+ *
279
+ * Fractional values are floored, and values outside 2–4 are clamped; both log
280
+ * one warning. `NaN` resolves to 2 and `Infinity` to 4.
281
+ * @default 2
282
+ */
283
+ maxWords?: number;
284
+ /**
285
+ * Fields to index joined runs for. `name` covers places, enterprise locations
286
+ * and enterprise categories; `tags` covers enterprise-location tags.
287
+ * An empty array turns joined words off.
288
+ * @default ['name', 'tags']
289
+ */
290
+ fields?: ('name' | 'tags')[];
231
291
  };
232
292
  /**
233
293
  * A pre-resolved (typically signed) MVF bundle URL, or a function that returns one.
@@ -690,8 +750,9 @@ declare enum TEXTALIGN {
690
750
  RIGHT = "right",
691
751
  }
692
752
  //#endregion
693
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema.d.cts
753
+ //#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/json-schema.d.cts
694
754
  type _JSONSchema = boolean | JSONSchema;
755
+ type SchemaType = "object" | "array" | "string" | "number" | "boolean" | "null" | "integer";
695
756
  type JSONSchema = {
696
757
  [k: string]: unknown;
697
758
  $schema?: "https://json-schema.org/draft/2020-12/schema" | "http://json-schema.org/draft-07/schema#" | "http://json-schema.org/draft-04/schema#";
@@ -703,7 +764,7 @@ type JSONSchema = {
703
764
  $vocabulary?: Record<string, boolean>;
704
765
  $comment?: string;
705
766
  $defs?: Record<string, JSONSchema>;
706
- type?: "object" | "array" | "string" | "number" | "boolean" | "null" | "integer";
767
+ type?: SchemaType | SchemaType[];
707
768
  additionalItems?: _JSONSchema;
708
769
  unevaluatedItems?: _JSONSchema;
709
770
  prefixItems?: _JSONSchema[];
@@ -758,7 +819,7 @@ type JSONSchema = {
758
819
  };
759
820
  type BaseSchema = JSONSchema;
760
821
  //#endregion
761
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/standard-schema.d.cts
822
+ //#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/standard-schema.d.cts
762
823
  /** The Standard interface. */
763
824
  interface StandardTypedV1<Input = unknown, Output = Input> {
764
825
  /** The Standard properties. */
@@ -877,12 +938,12 @@ declare namespace StandardJSONSchemaV1 {
877
938
  }
878
939
  interface StandardSchemaWithJSONProps<Input = unknown, Output = Input> extends StandardSchemaV1.Props<Input, Output>, StandardJSONSchemaV1.Props<Input, Output> {}
879
940
  //#endregion
880
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.d.cts
941
+ //#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/registries.d.cts
881
942
  declare const $output: unique symbol;
882
943
  type $output = typeof $output;
883
944
  declare const $input: unique symbol;
884
945
  type $input = typeof $input;
885
- type $replace<Meta, S extends $ZodType> = Meta extends $output ? output<S> : Meta extends $input ? input<S> : Meta extends (infer M)[] ? $replace<M, S>[] : Meta extends ((...args: infer P) => infer R) ? (...args: { [K in keyof P]: $replace<P[K], S> }) => $replace<R, S> : Meta extends object ? { [K in keyof Meta]: $replace<Meta[K], S> } : Meta;
946
+ type $replace<Meta, S extends $ZodType> = Meta extends $output ? output<S> : Meta extends $input ? input$1<S> : Meta extends (infer M)[] ? $replace<M, S>[] : Meta extends ((...args: infer P) => infer R) ? (...args: { [K in keyof P]: $replace<P[K], S> }) => $replace<R, S> : Meta extends object ? { [K in keyof Meta]: $replace<Meta[K], S> } : Meta;
886
947
  type MetadataType = object | undefined;
887
948
  declare class $ZodRegistry<Meta extends MetadataType = MetadataType, Schema extends $ZodType = $ZodType> {
888
949
  _meta: Meta;
@@ -904,8 +965,20 @@ interface JSONSchemaMeta {
904
965
  }
905
966
  interface GlobalMeta extends JSONSchemaMeta {}
906
967
  //#endregion
907
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.d.cts
968
+ //#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/to-json-schema.d.cts
908
969
  type Processor<T$1 extends $ZodType = $ZodType> = (schema: T$1, ctx: ToJSONSchemaContext, json: BaseSchema, params: ProcessParams) => void;
970
+ /**
971
+ * Called for each schema that has no JSON Schema equivalent. Return a JSON Schema to use in its
972
+ * place, `"any"` to fall back to the `unrepresentable: "any"` behavior, or `"throw"`/`undefined` to
973
+ * throw the default error. Throwing from the handler propagates, so custom errors work too.
974
+ */
975
+ type UnrepresentableHandler<T$1 extends $ZodType = $ZodType> = (ctx: {
976
+ zodSchema: T$1;
977
+ path: (string | number)[];
978
+ /** The error Zod would throw. Distinguishes sites that share a `zodSchema`, e.g. an `undefined`
979
+ * vs a `bigint` member of the same literal. */
980
+ message: string;
981
+ }) => BaseSchema | "throw" | "any" | undefined;
909
982
  interface JSONSchemaGeneratorParams {
910
983
  processors: Record<string, Processor>;
911
984
  /** A registry used to look up metadata for each schema. Any schema with an `id` property will be extracted as a $def.
@@ -919,8 +992,9 @@ interface JSONSchemaGeneratorParams {
919
992
  target?: "draft-04" | "draft-07" | "draft-2020-12" | "openapi-3.0" | ({} & string) | undefined;
920
993
  /** How to handle unrepresentable types.
921
994
  * - `"throw"` — Default. Unrepresentable types throw an error
922
- * - `"any"` — Unrepresentable types become `{}` */
923
- unrepresentable?: "throw" | "any";
995
+ * - `"any"` — Unrepresentable types become `{}`
996
+ * - A function — called once per unrepresentable schema; see {@link UnrepresentableHandler}. */
997
+ unrepresentable?: "throw" | "any" | UnrepresentableHandler<$ZodTypes>;
924
998
  /** Arbitrary custom logic that can be used to modify the generated JSON Schema. */
925
999
  override?: (ctx: {
926
1000
  zodSchema: $ZodTypes;
@@ -969,7 +1043,7 @@ interface ToJSONSchemaContext {
969
1043
  processors: Record<string, Processor>;
970
1044
  metadataRegistry: $ZodRegistry<Record<string, any>>;
971
1045
  target: "draft-04" | "draft-07" | "draft-2020-12" | "openapi-3.0" | ({} & string);
972
- unrepresentable: "throw" | "any";
1046
+ unrepresentable: "throw" | "any" | UnrepresentableHandler;
973
1047
  override: (ctx: {
974
1048
  zodSchema: $ZodType;
975
1049
  jsonSchema: BaseSchema;
@@ -978,8 +1052,28 @@ interface ToJSONSchemaContext {
978
1052
  io: "input" | "output";
979
1053
  counter: number;
980
1054
  seen: Map<$ZodType, Seen>;
1055
+ /** Registry conversions share one `seen` map across every emitted schema. These hold the
1056
+ * `external` the whole-map passes below last ran for, so the passes are not repeated once per
1057
+ * schema — and still re-run if the map grows or `external` is swapped. `sharedEmitDoneFor`
1058
+ * covers both passes in `finalize`: the ref flattening and the `$defs` build.
1059
+ *
1060
+ * The passes are valid only while nothing they read has changed, so both are cleared in
1061
+ * `processSchema()` when the map grows, and in `JSONSchemaGenerator.emit()`, which can also change
1062
+ * the `cycles` and `reused` they branch on.
1063
+ *
1064
+ * One case is deliberately not covered: an `override` callback that writes to
1065
+ * `metadataRegistry` mid-conversion. It runs inside `finalize`, so a registry conversion has
1066
+ * nowhere left to clear the guards, and later schemas keep the ids the first pass saw. That
1067
+ * output was never coherent — before this, whether a shared subschema was inlined or extracted
1068
+ * depended on which registry entry happened to be emitted when the callback fired. */
1069
+ sharedDefsExtractedFor?: ToJSONSchemaContext["external"];
1070
+ sharedEmitDoneFor?: ToJSONSchemaContext["external"];
981
1071
  cycles: "ref" | "throw";
982
1072
  reused: "ref" | "inline";
1073
+ /** The `allOf` array of each intersection encountered during traversal, innermost first. `finalize` folds every emitted object holding one; see `foldIntersection`. */
1074
+ intersections: BaseSchema[][];
1075
+ /** Rewrites a processor deferred to `finalize`, where the flatten has resolved every ref and the union branches are in place. */
1076
+ deferred: (() => void)[];
983
1077
  external?: {
984
1078
  registry: $ZodRegistry<{
985
1079
  id?: string | undefined;
@@ -988,12 +1082,12 @@ interface ToJSONSchemaContext {
988
1082
  defs: Record<string, BaseSchema>;
989
1083
  } | undefined;
990
1084
  }
991
- type ZodStandardSchemaWithJSON$1<T$1> = StandardSchemaWithJSONProps<input<T$1>, output<T$1>>;
1085
+ type ZodStandardSchemaWithJSON$1<T$1> = StandardSchemaWithJSONProps<input$1<T$1>, output<T$1>>;
992
1086
  interface ZodStandardJSONSchemaPayload<T$1> extends BaseSchema {
993
1087
  "~standard": ZodStandardSchemaWithJSON$1<T$1>;
994
1088
  }
995
1089
  //#endregion
996
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.d.cts
1090
+ //#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/util.d.cts
997
1091
  type JWTAlgorithm = "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | (string & {});
998
1092
  type MimeTypes = "application/json" | "application/xml" | "application/x-www-form-urlencoded" | "application/javascript" | "application/pdf" | "application/zip" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.ms-powerpoint" | "application/vnd.openxmlformats-officedocument.presentationml.presentation" | "application/octet-stream" | "application/graphql" | "text/html" | "text/plain" | "text/css" | "text/javascript" | "text/csv" | "image/png" | "image/jpeg" | "image/gif" | "image/svg+xml" | "image/webp" | "audio/mpeg" | "audio/ogg" | "audio/wav" | "audio/webm" | "video/mp4" | "video/webm" | "video/ogg" | "font/woff" | "font/woff2" | "font/ttf" | "font/otf" | "multipart/form-data" | (string & {});
999
1093
  type IsAny$1<T$1> = 0 extends 1 & T$1 ? true : false;
@@ -1004,6 +1098,7 @@ type LoosePartial<T$1 extends object> = InexactPartial<T$1> & {
1004
1098
  [k: string]: unknown;
1005
1099
  };
1006
1100
  type Mask$1<Keys extends PropertyKey> = { [K in Keys]?: true };
1101
+ type Writeable<T$1> = { -readonly [P in keyof T$1]: T$1[P] } & {};
1007
1102
  type InexactPartial<T$1> = { [P in keyof T$1]?: T$1[P] | undefined };
1008
1103
  type BuiltIn = (((...args: any[]) => any) | (new (...args: any[]) => any)) | {
1009
1104
  readonly [Symbol.toStringTag]: string;
@@ -1013,7 +1108,7 @@ type SomeObject = Record<PropertyKey, any>;
1013
1108
  type Identity<T$1> = T$1;
1014
1109
  type Flatten<T$1> = Identity<{ [k in keyof T$1]: T$1[k] }>;
1015
1110
  type Prettify<T$1> = { [K in keyof T$1]: T$1[K] } & {};
1016
- type Extend<A extends SomeObject, B extends SomeObject> = Flatten<keyof A & keyof B extends never ? A & B : { [K in keyof A as K extends keyof B ? never : K]: A[K] } & { [K in keyof B]: B[K] }>;
1111
+ type Extend<A$1 extends SomeObject, B extends SomeObject> = Flatten<keyof A$1 & keyof B extends never ? A$1 & B : { [K in keyof A$1 as K extends keyof B ? never : K]: A$1[K] } & { [K in keyof B]: B[K] }>;
1017
1112
  type TupleItems = ReadonlyArray<SomeType>;
1018
1113
  type AnyFunc = (...args: any[]) => any;
1019
1114
  type MaybeAsync<T$1> = T$1 | Promise<T$1>;
@@ -1032,15 +1127,17 @@ type EmptyToNever<T$1> = keyof T$1 extends never ? never : T$1;
1032
1127
  declare abstract class Class {
1033
1128
  constructor(..._args: any[]);
1034
1129
  }
1130
+ /** A trait's prototype members: a partial view of its own interface, with `this` typed as the instance. */
1131
+ type ProtoOf<T$1> = { [K in keyof T$1]?: (T$1[K] extends ((...args: infer A) => infer R) ? (...args: A) => R : T$1[K]) | undefined } & ThisType<T$1>;
1035
1132
  //#endregion
1036
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.d.cts
1133
+ //#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/versions.d.cts
1037
1134
  declare const version: {
1038
1135
  readonly major: 4;
1039
- readonly minor: 3;
1136
+ readonly minor: 6;
1040
1137
  readonly patch: number;
1041
1138
  };
1042
1139
  //#endregion
1043
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.d.cts
1140
+ //#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/schemas.d.cts
1044
1141
  interface ParseContext<T$1 extends $ZodIssueBase = never> {
1045
1142
  /** Customize error messages. */
1046
1143
  readonly error?: $ZodErrorMap<T$1>;
@@ -1054,12 +1151,17 @@ interface ParseContextInternal<T$1 extends $ZodIssueBase = never> extends ParseC
1054
1151
  readonly async?: boolean | undefined;
1055
1152
  readonly direction?: "forward" | "backward";
1056
1153
  readonly skipChecks?: boolean;
1154
+ /** Set only by `validate`/`validateAsync`. A container may stop before its next child, never inside one, so a map entry and a tuple's fixed items parse whole. */
1155
+ readonly abortEarly?: boolean;
1057
1156
  }
1058
1157
  interface ParsePayload<T$1 = unknown> {
1059
1158
  value: T$1;
1060
1159
  issues: $ZodRawIssue[];
1061
- /** A may to mark a whole payload as aborted. Used in codecs/pipes. */
1160
+ /** A way to mark a whole payload as aborted. Used in codecs/pipes. */
1062
1161
  aborted?: boolean;
1162
+ /** @internal Set when the value came from a repeat visit to a node still being
1163
+ * parsed. Its checks run on the node itself, against the finished value. */
1164
+ memo?: boolean | undefined;
1063
1165
  }
1064
1166
  type CheckFn<T$1> = (input: ParsePayload<T$1>) => MaybeAsync<void>;
1065
1167
  interface $ZodTypeDef {
@@ -1084,8 +1186,13 @@ interface _$ZodTypeInternals {
1084
1186
  /** @internal Indicates that a schema output type should be considered optional inside objects.
1085
1187
  * @default Required
1086
1188
  */
1087
- /** @internal */
1088
- optin?: "optional" | undefined;
1189
+ /** @internal Three rungs, each strictly stronger than the last:
1190
+ * undefined — required; the container may not omit this slot
1191
+ * "optional" — the container may omit it; nothing is supplied in its place
1192
+ * "defaulted" — the container may omit it AND this schema substitutes a value
1193
+ * Consumers asking "may the slot be absent?" test `!== undefined`.
1194
+ * $ZodOptional asks the stronger question and tests `=== "defaulted"`. */
1195
+ optin?: "optional" | "defaulted" | undefined;
1089
1196
  /** @internal */
1090
1197
  optout?: "optional" | undefined;
1091
1198
  /** @internal The set of literal values that will pass validation. Must be an exhaustive set. Used to determine optionality in z.record().
@@ -1114,17 +1221,17 @@ interface _$ZodTypeInternals {
1114
1221
  parent?: $ZodType | undefined;
1115
1222
  }
1116
1223
  /** @internal */
1117
- interface $ZodTypeInternals<out O = unknown, out I = unknown> extends _$ZodTypeInternals {
1224
+ interface $ZodTypeInternals<out O = unknown, out I$1 = unknown> extends _$ZodTypeInternals {
1118
1225
  /** @internal The inferred output type */
1119
1226
  output: O;
1120
1227
  /** @internal The inferred input type */
1121
- input: I;
1228
+ input: I$1;
1122
1229
  }
1123
- type $ZodStandardSchema<T$1> = StandardSchemaV1.Props<input<T$1>, output<T$1>>;
1230
+ type $ZodStandardSchema<T$1> = StandardSchemaV1.Props<input$1<T$1>, output<T$1>>;
1124
1231
  type SomeType = {
1125
1232
  _zod: _$ZodTypeInternals;
1126
1233
  };
1127
- interface $ZodType<O = unknown, I = unknown, Internals extends $ZodTypeInternals<O, I> = $ZodTypeInternals<O, I>> {
1234
+ interface $ZodType<O = unknown, I$1 = unknown, Internals extends $ZodTypeInternals<O, I$1> = $ZodTypeInternals<O, I$1>> {
1128
1235
  _zod: Internals;
1129
1236
  "~standard": $ZodStandardSchema<this>;
1130
1237
  }
@@ -1147,6 +1254,8 @@ interface $ZodStringInternals<Input> extends $ZodTypeInternals<string, Input> {
1147
1254
  patterns: Set<RegExp>;
1148
1255
  format: string;
1149
1256
  contentEncoding: string;
1257
+ /** the pattern admits strings its `format` keyword forbids, so `toJSONSchema` must not emit it */
1258
+ laxFormat: boolean;
1150
1259
  }>;
1151
1260
  }
1152
1261
  interface $ZodString<Input = unknown> extends _$ZodType<$ZodStringInternals<Input>> {}
@@ -1196,15 +1305,35 @@ interface $ZodEmoji extends $ZodType {
1196
1305
  _zod: $ZodEmojiInternals;
1197
1306
  }
1198
1307
  declare const $ZodEmoji: $constructor<$ZodEmoji>;
1199
- interface $ZodNanoIDInternals extends $ZodStringFormatInternals<"nanoid"> {}
1308
+ interface $ZodNanoIDDef extends $ZodStringFormatDef<"nanoid"> {
1309
+ length?: number | undefined;
1310
+ }
1311
+ interface $ZodNanoIDInternals extends $ZodStringFormatInternals<"nanoid"> {
1312
+ def: $ZodNanoIDDef;
1313
+ }
1200
1314
  interface $ZodNanoID extends $ZodType {
1201
1315
  _zod: $ZodNanoIDInternals;
1202
1316
  }
1203
1317
  declare const $ZodNanoID: $constructor<$ZodNanoID>;
1318
+ /**
1319
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
1320
+ * (timestamps embedded in the id). Use {@link $ZodCUID2} instead.
1321
+ * See https://github.com/paralleldrive/cuid.
1322
+ */
1204
1323
  interface $ZodCUIDInternals extends $ZodStringFormatInternals<"cuid"> {}
1324
+ /**
1325
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
1326
+ * (timestamps embedded in the id). Use {@link $ZodCUID2} instead.
1327
+ * See https://github.com/paralleldrive/cuid.
1328
+ */
1205
1329
  interface $ZodCUID extends $ZodType {
1206
1330
  _zod: $ZodCUIDInternals;
1207
1331
  }
1332
+ /**
1333
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
1334
+ * (timestamps embedded in the id). Use {@link $ZodCUID2} instead.
1335
+ * See https://github.com/paralleldrive/cuid.
1336
+ */
1208
1337
  declare const $ZodCUID: $constructor<$ZodCUID>;
1209
1338
  interface $ZodCUID2Internals extends $ZodStringFormatInternals<"cuid2"> {}
1210
1339
  interface $ZodCUID2 extends $ZodType {
@@ -1485,7 +1614,7 @@ interface $ZodArrayInternals<T$1 extends SomeType = $ZodType> extends _$ZodTypeI
1485
1614
  def: $ZodArrayDef<T$1>;
1486
1615
  isst: $ZodIssueInvalidType;
1487
1616
  output: output<T$1>[];
1488
- input: input<T$1>[];
1617
+ input: input$1<T$1>[];
1489
1618
  }
1490
1619
  interface $ZodArray<T$1 extends SomeType = $ZodType> extends $ZodType<any, any, $ZodArrayInternals<T$1>> {}
1491
1620
  declare const $ZodArray: $constructor<$ZodArray>;
@@ -1496,11 +1625,11 @@ type OptionalOutSchema = {
1496
1625
  };
1497
1626
  type OptionalInSchema = {
1498
1627
  _zod: {
1499
- optin: "optional";
1628
+ optin: "optional" | "defaulted";
1500
1629
  };
1501
1630
  };
1502
- type $InferObjectOutput<T$1 extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T$1 ? IsAny$1<T$1[keyof T$1]> extends true ? Record<string, unknown> : Record<string, output<T$1[keyof T$1]>> : keyof (T$1 & Extra) extends never ? Record<string, never> : Prettify<{ -readonly [k in keyof T$1 as T$1[k] extends OptionalOutSchema ? never : k]: T$1[k]["_zod"]["output"] } & { -readonly [k in keyof T$1 as T$1[k] extends OptionalOutSchema ? k : never]?: T$1[k]["_zod"]["output"] } & Extra>;
1503
- type $InferObjectInput<T$1 extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T$1 ? IsAny$1<T$1[keyof T$1]> extends true ? Record<string, unknown> : Record<string, input<T$1[keyof T$1]>> : keyof (T$1 & Extra) extends never ? Record<string, never> : Prettify<{ -readonly [k in keyof T$1 as T$1[k] extends OptionalInSchema ? never : k]: T$1[k]["_zod"]["input"] } & { -readonly [k in keyof T$1 as T$1[k] extends OptionalInSchema ? k : never]?: T$1[k]["_zod"]["input"] } & Extra>;
1631
+ type $InferObjectOutput<T$1 extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T$1 ? IsAny$1<T$1[keyof T$1]> extends true ? Record<string, unknown> : { [k in string]: output<T$1[keyof T$1]> } : keyof (T$1 & Extra) extends never ? Record<string, never> : Prettify<{ -readonly [k in keyof T$1 as T$1[k] extends OptionalOutSchema ? never : k]: T$1[k]["_zod"]["output"] } & { -readonly [k in keyof T$1 as T$1[k] extends OptionalOutSchema ? k : never]?: T$1[k]["_zod"]["output"] } & Extra>;
1632
+ type $InferObjectInput<T$1 extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T$1 ? IsAny$1<T$1[keyof T$1]> extends true ? Record<string, unknown> : { [k in string]: input$1<T$1[keyof T$1]> } : keyof (T$1 & Extra) extends never ? Record<string, never> : Prettify<{ -readonly [k in keyof T$1 as T$1[k] extends OptionalInSchema ? never : k]: T$1[k]["_zod"]["input"] } & { -readonly [k in keyof T$1 as T$1[k] extends OptionalInSchema ? k : never]?: T$1[k]["_zod"]["input"] } & Extra>;
1504
1633
  type $ZodObjectConfig = {
1505
1634
  out: Record<string, unknown>;
1506
1635
  in: Record<string, unknown>;
@@ -1522,34 +1651,34 @@ type $catchall<T$1 extends SomeType> = {
1522
1651
  [k: string]: output<T$1>;
1523
1652
  };
1524
1653
  in: {
1525
- [k: string]: input<T$1>;
1654
+ [k: string]: input$1<T$1>;
1526
1655
  };
1527
1656
  };
1528
1657
  type $ZodShape = Readonly<{
1529
1658
  [k: string]: $ZodType;
1530
1659
  }>;
1531
- interface $ZodObjectDef<Shape$1 extends $ZodShape = $ZodShape> extends $ZodTypeDef {
1660
+ interface $ZodObjectDef<Shape$2 extends $ZodShape = $ZodShape> extends $ZodTypeDef {
1532
1661
  type: "object";
1533
- shape: Shape$1;
1662
+ shape: Shape$2;
1534
1663
  catchall?: $ZodType | undefined;
1535
1664
  }
1536
1665
  interface $ZodObjectInternals< /** @ts-ignore Cast variance */
1537
- out Shape$1 extends $ZodShape = $ZodShape, out Config extends $ZodObjectConfig = $ZodObjectConfig> extends _$ZodTypeInternals {
1538
- def: $ZodObjectDef<Shape$1>;
1539
- config: Config;
1666
+ out Shape$2 extends $ZodShape = $ZodShape, out Config$1 extends $ZodObjectConfig = $ZodObjectConfig> extends _$ZodTypeInternals {
1667
+ def: $ZodObjectDef<Shape$2>;
1668
+ config: Config$1;
1540
1669
  isst: $ZodIssueInvalidType | $ZodIssueUnrecognizedKeys;
1541
1670
  propValues: PropValues;
1542
- output: $InferObjectOutput<Shape$1, Config["out"]>;
1543
- input: $InferObjectInput<Shape$1, Config["in"]>;
1671
+ output: $InferObjectOutput<Shape$2, Config$1["out"]>;
1672
+ input: $InferObjectInput<Shape$2, Config$1["in"]>;
1544
1673
  optin?: "optional" | undefined;
1545
1674
  optout?: "optional" | undefined;
1546
1675
  }
1547
1676
  type $ZodLooseShape = Record<string, any>;
1548
1677
  interface $ZodObject< /** @ts-ignore Cast variance */
1549
- out Shape$1 extends Readonly<$ZodShape> = Readonly<$ZodShape>, out Params$1 extends $ZodObjectConfig = $ZodObjectConfig> extends $ZodType<any, any, $ZodObjectInternals<Shape$1, Params$1>> {}
1678
+ out Shape$2 extends Readonly<$ZodShape> = Readonly<$ZodShape>, out Params$1 extends $ZodObjectConfig = $ZodObjectConfig> extends $ZodType<any, any, $ZodObjectInternals<Shape$2, Params$1>> {}
1550
1679
  declare const $ZodObject: $constructor<$ZodObject>;
1551
1680
  type $InferUnionOutput<T$1 extends SomeType> = T$1 extends any ? output<T$1> : never;
1552
- type $InferUnionInput<T$1 extends SomeType> = T$1 extends any ? input<T$1> : never;
1681
+ type $InferUnionInput<T$1 extends SomeType> = T$1 extends any ? input$1<T$1> : never;
1553
1682
  interface $ZodUnionDef<Options extends readonly SomeType[] = readonly $ZodType[]> extends $ZodTypeDef {
1554
1683
  type: "union";
1555
1684
  options: Options;
@@ -1564,7 +1693,7 @@ interface $ZodUnionInternals<T$1 extends readonly SomeType[] = readonly $ZodType
1564
1693
  values: T$1[number]["_zod"]["values"];
1565
1694
  output: $InferUnionOutput<T$1[number]>;
1566
1695
  input: $InferUnionInput<T$1[number]>;
1567
- optin: IsOptionalIn<T$1[number]> extends false ? "optional" | undefined : "optional";
1696
+ optin: IsOptionalIn<T$1[number]> extends false ? "optional" | "defaulted" | undefined : "optional" | "defaulted";
1568
1697
  optout: IsOptionalOut<T$1[number]> extends false ? "optional" | undefined : "optional";
1569
1698
  }
1570
1699
  interface $ZodUnion<T$1 extends readonly SomeType[] = readonly $ZodType[]> extends $ZodType<any, any, $ZodUnionInternals<T$1>> {
@@ -1578,6 +1707,9 @@ interface $ZodDiscriminatedUnionDef<Options extends readonly SomeType[] = readon
1578
1707
  interface $ZodDiscriminatedUnionInternals<Options extends readonly SomeType[] = readonly $ZodType[], Disc extends string = string> extends $ZodUnionInternals<Options> {
1579
1708
  def: $ZodDiscriminatedUnionDef<Options, Disc>;
1580
1709
  propValues: PropValues;
1710
+ bag: LoosePartial<{
1711
+ optionsMap: Map<Primitive$1, $ZodType | null>;
1712
+ }>;
1581
1713
  }
1582
1714
  interface $ZodDiscriminatedUnion<Options extends readonly SomeType[] = readonly $ZodType[], Disc extends string = string> extends $ZodType {
1583
1715
  _zod: $ZodDiscriminatedUnionInternals<Options, Disc>;
@@ -1588,16 +1720,16 @@ interface $ZodIntersectionDef<Left extends SomeType = $ZodType, Right extends So
1588
1720
  left: Left;
1589
1721
  right: Right;
1590
1722
  }
1591
- interface $ZodIntersectionInternals<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends _$ZodTypeInternals {
1592
- def: $ZodIntersectionDef<A, B>;
1723
+ interface $ZodIntersectionInternals<A$1 extends SomeType = $ZodType, B extends SomeType = $ZodType> extends _$ZodTypeInternals {
1724
+ def: $ZodIntersectionDef<A$1, B>;
1593
1725
  isst: never;
1594
- optin: A["_zod"]["optin"] | B["_zod"]["optin"];
1595
- optout: A["_zod"]["optout"] | B["_zod"]["optout"];
1596
- output: output<A> & output<B>;
1597
- input: input<A> & input<B>;
1726
+ optin: A$1["_zod"]["optin"] | B["_zod"]["optin"];
1727
+ optout: A$1["_zod"]["optout"] | B["_zod"]["optout"];
1728
+ output: output<A$1> & output<B>;
1729
+ input: input$1<A$1> & input$1<B>;
1598
1730
  }
1599
- interface $ZodIntersection<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodType {
1600
- _zod: $ZodIntersectionInternals<A, B>;
1731
+ interface $ZodIntersection<A$1 extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodType {
1732
+ _zod: $ZodIntersectionInternals<A$1, B>;
1601
1733
  }
1602
1734
  declare const $ZodIntersection: $constructor<$ZodIntersection>;
1603
1735
  interface $ZodTupleDef<T$1 extends TupleItems = readonly $ZodType[], Rest$1 extends SomeType | null = $ZodType | null> extends $ZodTypeDef {
@@ -1605,9 +1737,9 @@ interface $ZodTupleDef<T$1 extends TupleItems = readonly $ZodType[], Rest$1 exte
1605
1737
  items: T$1;
1606
1738
  rest: Rest$1;
1607
1739
  }
1608
- type $InferTupleInputType<T$1 extends TupleItems, Rest$1 extends SomeType | null> = [...TupleInputTypeWithOptionals<T$1>, ...(Rest$1 extends SomeType ? input<Rest$1>[] : [])];
1609
- type TupleInputTypeNoOptionals<T$1 extends TupleItems> = { [k in keyof T$1]: input<T$1[k]> };
1610
- type TupleInputTypeWithOptionals<T$1 extends TupleItems> = T$1 extends readonly [...infer Prefix extends SomeType[], infer Tail extends SomeType] ? Tail["_zod"]["optin"] extends "optional" ? [...TupleInputTypeWithOptionals<Prefix>, input<Tail>?] : TupleInputTypeNoOptionals<T$1> : [];
1740
+ type $InferTupleInputType<T$1 extends TupleItems, Rest$1 extends SomeType | null> = [...TupleInputTypeWithOptionals<T$1>, ...(Rest$1 extends SomeType ? input$1<Rest$1>[] : [])];
1741
+ type TupleInputTypeNoOptionals<T$1 extends TupleItems> = { [k in keyof T$1]: input$1<T$1[k]> };
1742
+ type TupleInputTypeWithOptionals<T$1 extends TupleItems> = T$1 extends readonly [...infer Prefix extends SomeType[], infer Tail extends SomeType] ? Tail["_zod"]["optin"] extends "optional" | "defaulted" ? [...TupleInputTypeWithOptionals<Prefix>, input$1<Tail>?] : TupleInputTypeNoOptionals<T$1> : [];
1611
1743
  type $InferTupleOutputType<T$1 extends TupleItems, Rest$1 extends SomeType | null> = [...TupleOutputTypeWithOptionals<T$1>, ...(Rest$1 extends SomeType ? output<Rest$1>[] : [])];
1612
1744
  type TupleOutputTypeNoOptionals<T$1 extends TupleItems> = { [k in keyof T$1]: output<T$1[k]> };
1613
1745
  type TupleOutputTypeWithOptionals<T$1 extends TupleItems> = T$1 extends readonly [...infer Prefix extends SomeType[], infer Tail extends SomeType] ? Tail["_zod"]["optout"] extends "optional" ? [...TupleOutputTypeWithOptionals<Prefix>, output<Tail>?] : TupleOutputTypeNoOptionals<T$1> : [];
@@ -1628,11 +1760,14 @@ interface $ZodRecordDef<Key$1 extends $ZodRecordKey = $ZodRecordKey, Value exten
1628
1760
  valueType: Value;
1629
1761
  /** @default "strict" - errors on keys not matching keyType. "loose" passes through non-matching keys unchanged. */
1630
1762
  mode?: "strict" | "loose";
1763
+ partial?: boolean;
1631
1764
  }
1632
1765
  type $InferZodRecordOutput<Key$1 extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> = Key$1 extends $partial ? Partial<Record<output<Key$1>, output<Value>>> : Record<output<Key$1>, output<Value>>;
1633
- type $InferZodRecordInput<Key$1 extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> = Key$1 extends $partial ? Partial<Record<input<Key$1> & PropertyKey, input<Value>>> : Record<input<Key$1> & PropertyKey, input<Value>>;
1634
- interface $ZodRecordInternals<Key$1 extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodTypeInternals<$InferZodRecordOutput<Key$1, Value>, $InferZodRecordInput<Key$1, Value>> {
1766
+ type $InferZodRecordInput<Key$1 extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> = Key$1 extends $partial ? Partial<Record<input$1<Key$1> & PropertyKey, input$1<Value>>> : [Value] extends [OptionalInSchema] ? Partial<Record<input$1<Key$1> & PropertyKey, input$1<Value>>> : Record<input$1<Key$1> & PropertyKey, input$1<Value>>;
1767
+ interface $ZodRecordInternals<Key$1 extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodTypeInternals {
1635
1768
  def: $ZodRecordDef<Key$1, Value>;
1769
+ output: $InferZodRecordOutput<Key$1, Value>;
1770
+ input: $InferZodRecordInput<Key$1, Value>;
1636
1771
  isst: $ZodIssueInvalidType | $ZodIssueInvalidKey<Record<PropertyKey, unknown>>;
1637
1772
  optin?: "optional" | undefined;
1638
1773
  optout?: "optional" | undefined;
@@ -1649,7 +1784,7 @@ interface $ZodMapDef<Key$1 extends SomeType = $ZodType, Value extends SomeType =
1649
1784
  keyType: Key$1;
1650
1785
  valueType: Value;
1651
1786
  }
1652
- interface $ZodMapInternals<Key$1 extends SomeType = $ZodType, Value extends SomeType = $ZodType> extends $ZodTypeInternals<Map<output<Key$1>, output<Value>>, Map<input<Key$1>, input<Value>>> {
1787
+ interface $ZodMapInternals<Key$1 extends SomeType = $ZodType, Value extends SomeType = $ZodType> extends $ZodTypeInternals<Map<output<Key$1>, output<Value>>, Map<input$1<Key$1>, input$1<Value>>> {
1653
1788
  def: $ZodMapDef<Key$1, Value>;
1654
1789
  isst: $ZodIssueInvalidType | $ZodIssueInvalidKey | $ZodIssueInvalidElement<unknown>;
1655
1790
  optin?: "optional" | undefined;
@@ -1663,7 +1798,7 @@ interface $ZodSetDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
1663
1798
  type: "set";
1664
1799
  valueType: T$1;
1665
1800
  }
1666
- interface $ZodSetInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<Set<output<T$1>>, Set<input<T$1>>> {
1801
+ interface $ZodSetInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<Set<output<T$1>>, Set<input$1<T$1>>> {
1667
1802
  def: $ZodSetDef<T$1>;
1668
1803
  isst: $ZodIssueInvalidType;
1669
1804
  optin?: "optional" | undefined;
@@ -1734,21 +1869,21 @@ interface $ZodTransformDef extends $ZodTypeDef {
1734
1869
  type: "transform";
1735
1870
  transform: (input: unknown, payload: ParsePayload<unknown>) => MaybeAsync<unknown>;
1736
1871
  }
1737
- interface $ZodTransformInternals<O = unknown, I = unknown> extends $ZodTypeInternals<O, I> {
1872
+ interface $ZodTransformInternals<O = unknown, I$1 = unknown> extends $ZodTypeInternals<O, I$1> {
1738
1873
  def: $ZodTransformDef;
1739
1874
  isst: never;
1740
1875
  }
1741
- interface $ZodTransform<O = unknown, I = unknown> extends $ZodType {
1742
- _zod: $ZodTransformInternals<O, I>;
1876
+ interface $ZodTransform<O = unknown, I$1 = unknown> extends $ZodType {
1877
+ _zod: $ZodTransformInternals<O, I$1>;
1743
1878
  }
1744
1879
  declare const $ZodTransform: $constructor<$ZodTransform>;
1745
1880
  interface $ZodOptionalDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
1746
1881
  type: "optional";
1747
1882
  innerType: T$1;
1748
1883
  }
1749
- interface $ZodOptionalInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<output<T$1> | undefined, input<T$1> | undefined> {
1884
+ interface $ZodOptionalInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<output<T$1> | undefined, input$1<T$1> | undefined> {
1750
1885
  def: $ZodOptionalDef<T$1>;
1751
- optin: "optional";
1886
+ optin: "optional" | "defaulted";
1752
1887
  optout: "optional";
1753
1888
  isst: never;
1754
1889
  values: T$1["_zod"]["values"];
@@ -1762,7 +1897,7 @@ interface $ZodExactOptionalDef<T$1 extends SomeType = $ZodType> extends $ZodOpti
1762
1897
  interface $ZodExactOptionalInternals<T$1 extends SomeType = $ZodType> extends $ZodOptionalInternals<T$1> {
1763
1898
  def: $ZodExactOptionalDef<T$1>;
1764
1899
  output: output<T$1>;
1765
- input: input<T$1>;
1900
+ input: input$1<T$1>;
1766
1901
  }
1767
1902
  interface $ZodExactOptional<T$1 extends SomeType = $ZodType> extends $ZodType {
1768
1903
  _zod: $ZodExactOptionalInternals<T$1>;
@@ -1772,7 +1907,7 @@ interface $ZodNullableDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
1772
1907
  type: "nullable";
1773
1908
  innerType: T$1;
1774
1909
  }
1775
- interface $ZodNullableInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<output<T$1> | null, input<T$1> | null> {
1910
+ interface $ZodNullableInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<output<T$1> | null, input$1<T$1> | null> {
1776
1911
  def: $ZodNullableDef<T$1>;
1777
1912
  optin: T$1["_zod"]["optin"];
1778
1913
  optout: T$1["_zod"]["optout"];
@@ -1790,9 +1925,9 @@ interface $ZodDefaultDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
1790
1925
  /** The default value. May be a getter. */
1791
1926
  defaultValue: NoUndefined<output<T$1>>;
1792
1927
  }
1793
- interface $ZodDefaultInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T$1>>, input<T$1> | undefined> {
1928
+ interface $ZodDefaultInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T$1>>, input$1<T$1> | undefined> {
1794
1929
  def: $ZodDefaultDef<T$1>;
1795
- optin: "optional";
1930
+ optin: "defaulted";
1796
1931
  optout?: "optional" | undefined;
1797
1932
  isst: never;
1798
1933
  values: T$1["_zod"]["values"];
@@ -1805,11 +1940,11 @@ interface $ZodPrefaultDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
1805
1940
  type: "prefault";
1806
1941
  innerType: T$1;
1807
1942
  /** The default value. May be a getter. */
1808
- defaultValue: input<T$1>;
1943
+ defaultValue: input$1<T$1>;
1809
1944
  }
1810
- interface $ZodPrefaultInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T$1>>, input<T$1> | undefined> {
1945
+ interface $ZodPrefaultInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<output<T$1>, input$1<T$1> | undefined> {
1811
1946
  def: $ZodPrefaultDef<T$1>;
1812
- optin: "optional";
1947
+ optin: "defaulted";
1813
1948
  optout?: "optional" | undefined;
1814
1949
  isst: never;
1815
1950
  values: T$1["_zod"]["values"];
@@ -1822,7 +1957,7 @@ interface $ZodNonOptionalDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDe
1822
1957
  type: "nonoptional";
1823
1958
  innerType: T$1;
1824
1959
  }
1825
- interface $ZodNonOptionalInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T$1>>, NoUndefined<input<T$1>>> {
1960
+ interface $ZodNonOptionalInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T$1>>, NoUndefined<input$1<T$1>>> {
1826
1961
  def: $ZodNonOptionalDef<T$1>;
1827
1962
  isst: $ZodIssueInvalidType;
1828
1963
  values: T$1["_zod"]["values"];
@@ -1837,7 +1972,7 @@ interface $ZodSuccessDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
1837
1972
  type: "success";
1838
1973
  innerType: T$1;
1839
1974
  }
1840
- interface $ZodSuccessInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<boolean, input<T$1>> {
1975
+ interface $ZodSuccessInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<boolean, input$1<T$1>> {
1841
1976
  def: $ZodSuccessDef<T$1>;
1842
1977
  isst: never;
1843
1978
  optin: T$1["_zod"]["optin"];
@@ -1860,7 +1995,7 @@ interface $ZodCatchDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
1860
1995
  innerType: T$1;
1861
1996
  catchValue: (ctx: $ZodCatchCtx) => unknown;
1862
1997
  }
1863
- interface $ZodCatchInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<output<T$1>, input<T$1>> {
1998
+ interface $ZodCatchInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<output<T$1>, input$1<T$1>> {
1864
1999
  def: $ZodCatchDef<T$1>;
1865
2000
  optin: T$1["_zod"]["optin"];
1866
2001
  optout: T$1["_zod"]["optout"];
@@ -1882,32 +2017,32 @@ interface $ZodNaN extends $ZodType {
1882
2017
  _zod: $ZodNaNInternals;
1883
2018
  }
1884
2019
  declare const $ZodNaN: $constructor<$ZodNaN>;
1885
- interface $ZodPipeDef<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodTypeDef {
2020
+ interface $ZodPipeDef<A$1 extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodTypeDef {
1886
2021
  type: "pipe";
1887
- in: A;
2022
+ in: A$1;
1888
2023
  out: B;
1889
2024
  /** Only defined inside $ZodCodec instances. */
1890
- transform?: (value: output<A>, payload: ParsePayload<output<A>>) => MaybeAsync<input<B>>;
2025
+ transform?: (value: output<A$1>, payload: ParsePayload<output<A$1>>) => MaybeAsync<input$1<B>>;
1891
2026
  /** Only defined inside $ZodCodec instances. */
1892
- reverseTransform?: (value: input<B>, payload: ParsePayload<input<B>>) => MaybeAsync<output<A>>;
2027
+ reverseTransform?: (value: input$1<B>, payload: ParsePayload<input$1<B>>) => MaybeAsync<output<A$1>>;
1893
2028
  }
1894
- interface $ZodPipeInternals<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodTypeInternals<output<B>, input<A>> {
1895
- def: $ZodPipeDef<A, B>;
2029
+ interface $ZodPipeInternals<A$1 extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodTypeInternals<output<B>, input$1<A$1>> {
2030
+ def: $ZodPipeDef<A$1, B>;
1896
2031
  isst: never;
1897
- values: A["_zod"]["values"];
1898
- optin: A["_zod"]["optin"];
2032
+ values: A$1["_zod"]["values"];
2033
+ optin: A$1["_zod"]["optin"];
1899
2034
  optout: B["_zod"]["optout"];
1900
- propValues: A["_zod"]["propValues"];
2035
+ propValues: A$1["_zod"]["propValues"];
1901
2036
  }
1902
- interface $ZodPipe<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodType {
1903
- _zod: $ZodPipeInternals<A, B>;
2037
+ interface $ZodPipe<A$1 extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodType {
2038
+ _zod: $ZodPipeInternals<A$1, B>;
1904
2039
  }
1905
2040
  declare const $ZodPipe: $constructor<$ZodPipe>;
1906
2041
  interface $ZodReadonlyDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
1907
2042
  type: "readonly";
1908
2043
  innerType: T$1;
1909
2044
  }
1910
- interface $ZodReadonlyInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<MakeReadonly<output<T$1>>, MakeReadonly<input<T$1>>> {
2045
+ interface $ZodReadonlyInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<MakeReadonly<output<T$1>>, MakeReadonly<input$1<T$1>>> {
1911
2046
  def: $ZodReadonlyDef<T$1>;
1912
2047
  optin: T$1["_zod"]["optin"];
1913
2048
  optout: T$1["_zod"]["optout"];
@@ -1944,14 +2079,14 @@ declare const $ZodTemplateLiteral: $constructor<$ZodTemplateLiteral>;
1944
2079
  type $ZodFunctionArgs = $ZodType<unknown[], unknown[]>;
1945
2080
  type $ZodFunctionIn = $ZodFunctionArgs;
1946
2081
  type $ZodFunctionOut = $ZodType;
1947
- type $InferInnerFunctionType<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : output<Args>) => input<Returns>;
1948
- type $InferInnerFunctionTypeAsync<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : output<Args>) => MaybeAsync<input<Returns>>;
1949
- type $InferOuterFunctionType<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : input<Args>) => output<Returns>;
1950
- type $InferOuterFunctionTypeAsync<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : input<Args>) => Promise<output<Returns>>;
1951
- interface $ZodFunctionDef<In extends $ZodFunctionIn = $ZodFunctionIn, Out extends $ZodFunctionOut = $ZodFunctionOut> extends $ZodTypeDef {
2082
+ type $InferInnerFunctionType<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : output<Args>) => input$1<Returns>;
2083
+ type $InferInnerFunctionTypeAsync<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : output<Args>) => MaybeAsync<input$1<Returns>>;
2084
+ type $InferOuterFunctionType<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : input$1<Args>) => output<Returns>;
2085
+ type $InferOuterFunctionTypeAsync<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : input$1<Args>) => Promise<output<Returns>>;
2086
+ interface $ZodFunctionDef<In extends $ZodFunctionIn = $ZodFunctionIn, Out$1 extends $ZodFunctionOut = $ZodFunctionOut> extends $ZodTypeDef {
1952
2087
  type: "function";
1953
2088
  input: In;
1954
- output: Out;
2089
+ output: Out$1;
1955
2090
  }
1956
2091
  interface $ZodFunctionInternals<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> extends $ZodTypeInternals<$InferOuterFunctionType<Args, Returns>, $InferInnerFunctionType<Args, Returns>> {
1957
2092
  def: $ZodFunctionDef<Args, Returns>;
@@ -1974,7 +2109,7 @@ interface $ZodPromiseDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
1974
2109
  type: "promise";
1975
2110
  innerType: T$1;
1976
2111
  }
1977
- interface $ZodPromiseInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<Promise<output<T$1>>, MaybeAsync<input<T$1>>> {
2112
+ interface $ZodPromiseInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<Promise<output<T$1>>, MaybeAsync<input$1<T$1>>> {
1978
2113
  def: $ZodPromiseDef<T$1>;
1979
2114
  isst: never;
1980
2115
  }
@@ -1986,7 +2121,7 @@ interface $ZodLazyDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
1986
2121
  type: "lazy";
1987
2122
  getter: () => T$1;
1988
2123
  }
1989
- interface $ZodLazyInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<output<T$1>, input<T$1>> {
2124
+ interface $ZodLazyInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<output<T$1>, input$1<T$1>> {
1990
2125
  def: $ZodLazyDef<T$1>;
1991
2126
  isst: never;
1992
2127
  /** Auto-cached way to retrieve the inner schema */
@@ -2008,7 +2143,7 @@ interface $ZodCustomDef<O = unknown> extends $ZodTypeDef, $ZodCheckDef {
2008
2143
  params?: Record<string, any> | undefined;
2009
2144
  fn: (arg: O) => unknown;
2010
2145
  }
2011
- interface $ZodCustomInternals<O = unknown, I = unknown> extends $ZodTypeInternals<O, I>, $ZodCheckInternals<O> {
2146
+ interface $ZodCustomInternals<O = unknown, I$1 = unknown> extends $ZodTypeInternals<O, I$1>, $ZodCheckInternals<O> {
2012
2147
  def: $ZodCustomDef;
2013
2148
  issc: $ZodIssue;
2014
2149
  isst: never;
@@ -2016,19 +2151,19 @@ interface $ZodCustomInternals<O = unknown, I = unknown> extends $ZodTypeInternal
2016
2151
  Class: typeof Class;
2017
2152
  }>;
2018
2153
  }
2019
- interface $ZodCustom<O = unknown, I = unknown> extends $ZodType {
2020
- _zod: $ZodCustomInternals<O, I>;
2154
+ interface $ZodCustom<O = unknown, I$1 = unknown> extends $ZodType {
2155
+ _zod: $ZodCustomInternals<O, I$1>;
2021
2156
  }
2022
2157
  declare const $ZodCustom: $constructor<$ZodCustom>;
2023
2158
  type $ZodTypes = $ZodString | $ZodNumber | $ZodBigInt | $ZodBoolean | $ZodDate | $ZodSymbol | $ZodUndefined | $ZodNullable | $ZodNull | $ZodAny | $ZodUnknown | $ZodNever | $ZodVoid | $ZodArray | $ZodObject | $ZodUnion | $ZodIntersection | $ZodTuple | $ZodRecord | $ZodMap | $ZodSet | $ZodLiteral | $ZodEnum | $ZodFunction | $ZodPromise | $ZodLazy | $ZodOptional | $ZodDefault | $ZodPrefault | $ZodTemplateLiteral | $ZodCustom | $ZodTransform | $ZodNonOptional | $ZodReadonly | $ZodNaN | $ZodPipe | $ZodSuccess | $ZodCatch | $ZodFile;
2024
2159
  //#endregion
2025
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/checks.d.cts
2160
+ //#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/checks.d.cts
2026
2161
  interface $ZodCheckDef {
2027
2162
  check: string;
2028
2163
  error?: $ZodErrorMap<never> | undefined;
2029
2164
  /** If true, no later checks will be executed if this check fails. Default `false`. */
2030
2165
  abort?: boolean | undefined;
2031
- /** If provided, this check will only be executed if the function returns `true`. Defaults to `payload => z.util.isAborted(payload)`. */
2166
+ /** If provided, the check runs only when this returns `true`. By default, it is skipped if prior parsing produced aborting issues. */
2032
2167
  when?: ((payload: ParsePayload) => boolean) | undefined;
2033
2168
  }
2034
2169
  interface $ZodCheckInternals<T$1> {
@@ -2081,16 +2216,16 @@ interface $ZodCheckMultipleOf<T$1 extends number | bigint = number | bigint> ext
2081
2216
  }
2082
2217
  declare const $ZodCheckMultipleOf: $constructor<$ZodCheckMultipleOf<number | bigint>>;
2083
2218
  type $ZodNumberFormats = "int32" | "uint32" | "float32" | "float64" | "safeint";
2084
- interface $ZodCheckNumberFormatDef extends $ZodCheckDef {
2219
+ interface $ZodCheckNumberFormatDef<Format extends $ZodNumberFormats = $ZodNumberFormats> extends $ZodCheckDef {
2085
2220
  check: "number_format";
2086
- format: $ZodNumberFormats;
2221
+ format: Format;
2087
2222
  }
2088
- interface $ZodCheckNumberFormatInternals extends $ZodCheckInternals<number> {
2089
- def: $ZodCheckNumberFormatDef;
2223
+ interface $ZodCheckNumberFormatInternals<Format extends $ZodNumberFormats = $ZodNumberFormats> extends $ZodCheckInternals<number> {
2224
+ def: $ZodCheckNumberFormatDef<Format>;
2090
2225
  issc: $ZodIssueInvalidType | $ZodIssueTooBig<"number"> | $ZodIssueTooSmall<"number">;
2091
2226
  }
2092
- interface $ZodCheckNumberFormat extends $ZodCheck<number> {
2093
- _zod: $ZodCheckNumberFormatInternals;
2227
+ interface $ZodCheckNumberFormat<Format extends $ZodNumberFormats = $ZodNumberFormats> extends $ZodCheck<number> {
2228
+ _zod: $ZodCheckNumberFormatInternals<Format>;
2094
2229
  }
2095
2230
  declare const $ZodCheckNumberFormat: $constructor<$ZodCheckNumberFormat>;
2096
2231
  interface $ZodCheckMaxLengthDef extends $ZodCheckDef {
@@ -2129,7 +2264,7 @@ interface $ZodCheckLengthEquals<T$1 extends HasLength = HasLength> extends $ZodC
2129
2264
  _zod: $ZodCheckLengthEqualsInternals<T$1>;
2130
2265
  }
2131
2266
  declare const $ZodCheckLengthEquals: $constructor<$ZodCheckLengthEquals>;
2132
- type $ZodStringFormats = "email" | "url" | "emoji" | "uuid" | "guid" | "nanoid" | "cuid" | "cuid2" | "ulid" | "xid" | "ksuid" | "datetime" | "date" | "time" | "duration" | "ipv4" | "ipv6" | "cidrv4" | "cidrv6" | "base64" | "base64url" | "json_string" | "e164" | "lowercase" | "uppercase" | "regex" | "jwt" | "starts_with" | "ends_with" | "includes";
2267
+ type $ZodStringFormats = "email" | "url" | "emoji" | "uuid" | "guid" | "nanoid" | "cuid" | "cuid2" | "ulid" | "xid" | "ksuid" | "datetime" | "date" | "time" | "duration" | "ipv4" | "ipv6" | "cidrv4" | "cidrv6" | "base64" | "base64url" | "json_string" | "e164" | "credit_card" | "iban" | "lowercase" | "uppercase" | "regex" | "jwt" | "starts_with" | "ends_with" | "includes";
2133
2268
  interface $ZodCheckStringFormatDef<Format extends string = string> extends $ZodCheckDef {
2134
2269
  check: "string_format";
2135
2270
  format: Format;
@@ -2204,7 +2339,7 @@ interface $ZodCheckEndsWith extends $ZodCheckInternals<string> {
2204
2339
  }
2205
2340
  declare const $ZodCheckEndsWith: $constructor<$ZodCheckEndsWith>;
2206
2341
  //#endregion
2207
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.d.cts
2342
+ //#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/errors.d.cts
2208
2343
  interface $ZodIssueBase {
2209
2344
  readonly code?: string;
2210
2345
  readonly input?: unknown;
@@ -2256,6 +2391,7 @@ interface $ZodIssueInvalidUnionNoMatch extends $ZodIssueBase {
2256
2391
  readonly errors: $ZodIssue[][];
2257
2392
  readonly input?: unknown;
2258
2393
  readonly discriminator?: string | undefined;
2394
+ readonly options?: Primitive$1[];
2259
2395
  readonly inclusive?: true;
2260
2396
  }
2261
2397
  interface $ZodIssueInvalidUnionMultipleMatch extends $ZodIssueBase {
@@ -2264,6 +2400,8 @@ interface $ZodIssueInvalidUnionMultipleMatch extends $ZodIssueBase {
2264
2400
  readonly input?: unknown;
2265
2401
  readonly discriminator?: string | undefined;
2266
2402
  readonly inclusive: false;
2403
+ /** Indices of the options that matched */
2404
+ readonly matches: number[];
2267
2405
  }
2268
2406
  type $ZodIssueInvalidUnion = $ZodIssueInvalidUnionNoMatch | $ZodIssueInvalidUnionMultipleMatch;
2269
2407
  interface $ZodIssueInvalidKey<Input = unknown> extends $ZodIssueBase {
@@ -2296,6 +2434,8 @@ type RawIssue$1<T$1 extends $ZodIssueBase> = T$1 extends any ? Flatten<MakeParti
2296
2434
  readonly input: unknown;
2297
2435
  /** The schema or check that originated this issue. */
2298
2436
  readonly inst?: $ZodType | $ZodCheck;
2437
+ /** The schema that owns the issue. Equal to `inst` when a schema originated the issue, and the schema the check was attached to when a check did. */
2438
+ readonly schema?: $ZodType | undefined;
2299
2439
  /** If `true`, Zod will continue executing checks/refinements after this issue. */
2300
2440
  readonly continue?: boolean | undefined;
2301
2441
  } & Record<string, unknown>> : never;
@@ -2328,7 +2468,7 @@ type $ZodFormattedError<T$1, U$1 = string> = {
2328
2468
  _errors: U$1[];
2329
2469
  } & Flatten<_ZodFormattedError<T$1, U$1>>;
2330
2470
  //#endregion
2331
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/core.d.cts
2471
+ //#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/core.d.cts
2332
2472
  type ZodTrait = {
2333
2473
  _zod: {
2334
2474
  def: any;
@@ -2339,28 +2479,30 @@ interface $constructor<T$1 extends ZodTrait, D = T$1["_zod"]["def"]> {
2339
2479
  new (def: D): T$1;
2340
2480
  init(inst: T$1, def: D): asserts inst is T$1;
2341
2481
  }
2342
- declare function $constructor<T$1 extends ZodTrait, D = T$1["_zod"]["def"]>(name: string, initializer: (inst: T$1, def: D) => void, params?: {
2482
+ interface $constructorParams {
2343
2483
  Parent?: typeof Class;
2344
- }): $constructor<T$1, D>;
2484
+ }
2485
+ declare function $constructor<T$1 extends ZodTrait, D = T$1["_zod"]["def"]>(name: string, initializer: (inst: T$1, def: D) => void, /** This trait's members, installed once on every prototype that composes it. They cannot be declared in the initializer above: that runs per instance, and the prototype is shared. */
2486
+ proto?: ProtoOf<T$1>, params?: $constructorParams): $constructor<T$1, D>;
2345
2487
  declare const $brand: unique symbol;
2346
2488
  type $brand<T$1 extends string | number | symbol = string | number | symbol> = {
2347
2489
  [$brand]: { [k in T$1]: true };
2348
2490
  };
2349
2491
  type $ZodBranded<T$1 extends SomeType, Brand extends string | number | symbol, Dir extends "in" | "out" | "inout" = "out"> = T$1 & (Dir extends "inout" ? {
2350
2492
  _zod: {
2351
- input: input<T$1> & $brand<Brand>;
2493
+ input: input$1<T$1> & $brand<Brand>;
2352
2494
  output: output<T$1> & $brand<Brand>;
2353
2495
  };
2354
2496
  } : Dir extends "in" ? {
2355
2497
  _zod: {
2356
- input: input<T$1> & $brand<Brand>;
2498
+ input: input$1<T$1> & $brand<Brand>;
2357
2499
  };
2358
2500
  } : {
2359
2501
  _zod: {
2360
2502
  output: output<T$1> & $brand<Brand>;
2361
2503
  };
2362
2504
  });
2363
- type input<T$1> = T$1 extends {
2505
+ type input$1<T$1> = T$1 extends {
2364
2506
  _zod: {
2365
2507
  input: any;
2366
2508
  };
@@ -2371,7 +2513,7 @@ type output<T$1> = T$1 extends {
2371
2513
  };
2372
2514
  } ? T$1["_zod"]["output"] : unknown;
2373
2515
  //#endregion
2374
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/api.d.cts
2516
+ //#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/api.d.cts
2375
2517
  type Params<T$1 extends $ZodType | $ZodCheck, IssueTypes extends $ZodIssueBase, OmitKeys extends keyof T$1["_zod"]["def"] = never> = Flatten<Partial<EmptyToNever<Omit<T$1["_zod"]["def"], OmitKeys> & ([IssueTypes] extends [never] ? {} : {
2376
2518
  error?: string | $ZodErrorMap<IssueTypes> | undefined;
2377
2519
  /** @deprecated This parameter is deprecated. Use `error` instead. */
@@ -2390,7 +2532,12 @@ type $ZodCheckGUIDParams = CheckStringFormatParams<$ZodGUID, "pattern" | "when">
2390
2532
  type $ZodCheckUUIDParams = CheckStringFormatParams<$ZodUUID, "pattern" | "when">;
2391
2533
  type $ZodCheckURLParams = CheckStringFormatParams<$ZodURL, "when">;
2392
2534
  type $ZodCheckEmojiParams = CheckStringFormatParams<$ZodEmoji, "when">;
2393
- type $ZodCheckNanoIDParams = CheckStringFormatParams<$ZodNanoID, "when">;
2535
+ type $ZodCheckNanoIDParams = CheckStringFormatParams<$ZodNanoID, "when" | "pattern">;
2536
+ /**
2537
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
2538
+ * (timestamps embedded in the id). Use {@link _cuid2} instead.
2539
+ * See https://github.com/paralleldrive/cuid.
2540
+ */
2394
2541
  type $ZodCheckCUIDParams = CheckStringFormatParams<$ZodCUID, "when">;
2395
2542
  type $ZodCheckCUID2Params = CheckStringFormatParams<$ZodCUID2, "when">;
2396
2543
  type $ZodCheckULIDParams = CheckStringFormatParams<$ZodULID, "when">;
@@ -2434,8 +2581,12 @@ type RawIssue<T$1 extends $ZodIssueBase> = T$1 extends any ? Flatten<MakePartial
2434
2581
  interface $RefinementCtx<T$1 = unknown> extends ParsePayload<T$1> {
2435
2582
  addIssue(arg: string | $ZodSuperRefineIssue): void;
2436
2583
  }
2584
+ interface $ZodSuperRefineParams {
2585
+ /** If provided, the refinement runs only when this returns `true`. By default, it is skipped if prior parsing produced aborting issues. */
2586
+ when?: ((payload: ParsePayload) => boolean) | undefined;
2587
+ }
2437
2588
  //#endregion
2438
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/errors.d.cts
2589
+ //#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/errors.d.cts
2439
2590
  /** An Error-like class used to store Zod validation issues. */
2440
2591
  interface ZodError<T$1 = unknown> extends $ZodError<T$1> {
2441
2592
  /** @deprecated Use the `z.treeifyError(err)` function instead. */
@@ -2453,7 +2604,7 @@ interface ZodError<T$1 = unknown> extends $ZodError<T$1> {
2453
2604
  }
2454
2605
  declare const ZodError: $constructor<ZodError>;
2455
2606
  //#endregion
2456
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/parse.d.cts
2607
+ //#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/parse.d.cts
2457
2608
  type ZodSafeParseResult<T$1> = ZodSafeParseSuccess<T$1> | ZodSafeParseError<T$1>;
2458
2609
  type ZodSafeParseSuccess<T$1> = {
2459
2610
  success: true;
@@ -2466,8 +2617,8 @@ type ZodSafeParseError<T$1> = {
2466
2617
  error: ZodError<T$1>;
2467
2618
  };
2468
2619
  //#endregion
2469
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/schemas.d.cts
2470
- type ZodStandardSchemaWithJSON<T$1> = StandardSchemaWithJSONProps<input<T$1>, output<T$1>>;
2620
+ //#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/schemas.d.cts
2621
+ type ZodStandardSchemaWithJSON<T$1> = StandardSchemaWithJSONProps<input$1<T$1>, output<T$1>>;
2471
2622
  interface ZodType<out Output = unknown, out Input = unknown, out Internals extends $ZodTypeInternals<Output, Input> = $ZodTypeInternals<Output, Input>> extends $ZodType<Output, Input, Internals> {
2472
2623
  def: Internals["def"];
2473
2624
  type: Internals["def"]["type"];
@@ -2492,16 +2643,18 @@ interface ZodType<out Output = unknown, out Input = unknown, out Internals exten
2492
2643
  parseAsync(data: unknown, params?: ParseContext<$ZodIssue>): Promise<output<this>>;
2493
2644
  safeParseAsync(data: unknown, params?: ParseContext<$ZodIssue>): Promise<ZodSafeParseResult<output<this>>>;
2494
2645
  spa: (data: unknown, params?: ParseContext<$ZodIssue>) => Promise<ZodSafeParseResult<output<this>>>;
2495
- encode(data: output<this>, params?: ParseContext<$ZodIssue>): input<this>;
2496
- decode(data: input<this>, params?: ParseContext<$ZodIssue>): output<this>;
2497
- encodeAsync(data: output<this>, params?: ParseContext<$ZodIssue>): Promise<input<this>>;
2498
- decodeAsync(data: input<this>, params?: ParseContext<$ZodIssue>): Promise<output<this>>;
2499
- safeEncode(data: output<this>, params?: ParseContext<$ZodIssue>): ZodSafeParseResult<input<this>>;
2500
- safeDecode(data: input<this>, params?: ParseContext<$ZodIssue>): ZodSafeParseResult<output<this>>;
2501
- safeEncodeAsync(data: output<this>, params?: ParseContext<$ZodIssue>): Promise<ZodSafeParseResult<input<this>>>;
2502
- safeDecodeAsync(data: input<this>, params?: ParseContext<$ZodIssue>): Promise<ZodSafeParseResult<output<this>>>;
2503
- refine<Ch extends (arg: output<this>) => unknown | Promise<unknown>>(check: Ch, params?: string | $ZodCustomParams): Ch extends ((arg: any) => arg is infer R) ? this & ZodType<R$1, input<this>> : this;
2504
- superRefine(refinement: (arg: output<this>, ctx: $RefinementCtx<output<this>>) => void | Promise<void>): this;
2646
+ validate(data: unknown, params?: ParseContext<$ZodIssue>): data is input$1<this>;
2647
+ validateAsync(data: unknown, params?: ParseContext<$ZodIssue>): Promise<boolean>;
2648
+ encode(data: output<this>, params?: ParseContext<$ZodIssue>): input$1<this>;
2649
+ decode(data: input$1<this>, params?: ParseContext<$ZodIssue>): output<this>;
2650
+ encodeAsync(data: output<this>, params?: ParseContext<$ZodIssue>): Promise<input$1<this>>;
2651
+ decodeAsync(data: input$1<this>, params?: ParseContext<$ZodIssue>): Promise<output<this>>;
2652
+ safeEncode(data: output<this>, params?: ParseContext<$ZodIssue>): ZodSafeParseResult<input$1<this>>;
2653
+ safeDecode(data: input$1<this>, params?: ParseContext<$ZodIssue>): ZodSafeParseResult<output<this>>;
2654
+ safeEncodeAsync(data: output<this>, params?: ParseContext<$ZodIssue>): Promise<ZodSafeParseResult<input$1<this>>>;
2655
+ safeDecodeAsync(data: input$1<this>, params?: ParseContext<$ZodIssue>): Promise<ZodSafeParseResult<output<this>>>;
2656
+ refine<Ch extends (arg: output<this>) => unknown | Promise<unknown>>(check: Ch, params?: string | $ZodCustomParams): Ch extends ((arg: any) => arg is infer R) ? this & ZodType<R$1, input$1<this>> : this;
2657
+ superRefine(refinement: (arg: output<this>, ctx: $RefinementCtx<output<this>>) => void | Promise<void>, params?: $ZodSuperRefineParams): this;
2505
2658
  overwrite(fn: (x: output<this>) => output<this>): this;
2506
2659
  optional(): ZodOptional<this>;
2507
2660
  exactOptional(): ZodExactOptional<this>;
@@ -2510,8 +2663,8 @@ interface ZodType<out Output = unknown, out Input = unknown, out Internals exten
2510
2663
  nullish(): ZodOptional<ZodNullable<this>>;
2511
2664
  default(def: NoUndefined<output<this>>): ZodDefault<this>;
2512
2665
  default(def: () => NoUndefined<output<this>>): ZodDefault<this>;
2513
- prefault(def: () => input<this>): ZodPrefault<this>;
2514
- prefault(def: input<this>): ZodPrefault<this>;
2666
+ prefault(def: () => input$1<this>): ZodPrefault<this>;
2667
+ prefault(def: input$1<this>): ZodPrefault<this>;
2515
2668
  array(): ZodArray<this>;
2516
2669
  or<T$1 extends SomeType>(option: T$1): ZodUnion<[this, T$1]>;
2517
2670
  and<T$1 extends SomeType>(incoming: T$1): ZodIntersection<this, T$1>;
@@ -2544,7 +2697,7 @@ interface ZodType<out Output = unknown, out Input = unknown, out Internals exten
2544
2697
  * ```
2545
2698
  */
2546
2699
  isNullable(): boolean;
2547
- apply<T$1>(fn: (schema: this) => T$1): T$1;
2700
+ apply<T$1, TArgs extends unknown[] = []>(fn: (schema: this, ...args: TArgs) => T$1, ...args: TArgs): T$1;
2548
2701
  }
2549
2702
  interface _ZodType<out Internals extends $ZodTypeInternals = $ZodTypeInternals> extends ZodType<any, any, Internals> {}
2550
2703
  declare const ZodType: $constructor<ZodType>;
@@ -2593,7 +2746,11 @@ interface ZodString extends _ZodString<$ZodStringInternals<string>> {
2593
2746
  nanoid(params?: string | $ZodCheckNanoIDParams): this;
2594
2747
  /** @deprecated Use `z.guid()` instead. */
2595
2748
  guid(params?: string | $ZodCheckGUIDParams): this;
2596
- /** @deprecated Use `z.cuid()` instead. */
2749
+ /**
2750
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
2751
+ * (timestamps embedded in the id). Use `z.cuid2()` instead.
2752
+ * See https://github.com/paralleldrive/cuid.
2753
+ */
2597
2754
  cuid(params?: string | $ZodCheckCUIDParams): this;
2598
2755
  /** @deprecated Use `z.cuid2()` instead. */
2599
2756
  cuid2(params?: string | $ZodCheckCUID2Params): this;
@@ -2674,34 +2831,36 @@ interface ZodArray<T$1 extends SomeType = $ZodType> extends _ZodType<$ZodArrayIn
2674
2831
  "~standard": ZodStandardSchemaWithJSON<this>;
2675
2832
  }
2676
2833
  declare const ZodArray: $constructor<ZodArray>;
2677
- type SafeExtendShape<Base extends $ZodShape, Ext extends $ZodLooseShape> = { [K in keyof Ext]: K extends keyof Base ? output<Ext[K]> extends output<Base[K]> ? input<Ext[K]> extends input<Base[K]> ? Ext[K] : never : never : Ext[K] };
2834
+ type SafeExtendShape<Base extends $ZodShape, Ext extends $ZodLooseShape> = { [K in keyof Ext]: K extends keyof Base ? output<Ext[K]> extends output<Base[K]> ? input$1<Ext[K]> extends input$1<Base[K]> ? Ext[K] : never : never : Ext[K] };
2678
2835
  interface ZodObject< /** @ts-ignore Cast variance */
2679
- out Shape$1 extends $ZodShape = $ZodLooseShape, out Config extends $ZodObjectConfig = $strip> extends _ZodType<$ZodObjectInternals<Shape$1, Config>>, $ZodObject<Shape$1, Config> {
2836
+ out Shape$2 extends $ZodShape = $ZodLooseShape, out Config$1 extends $ZodObjectConfig = $strip> extends _ZodType<$ZodObjectInternals<Shape$2, Config$1>>, $ZodObject<Shape$2, Config$1> {
2680
2837
  "~standard": ZodStandardSchemaWithJSON<this>;
2681
- shape: Shape$1;
2682
- keyof(): ZodEnum<ToEnum<keyof Shape$1 & string>>;
2838
+ shape: Shape$2;
2839
+ keyof(): ZodEnum<ToEnum<keyof Shape$2 & string>>;
2683
2840
  /** Define a schema to validate all unrecognized keys. This overrides the existing strict/loose behavior. */
2684
- catchall<T$1 extends SomeType>(schema: T$1): ZodObject<Shape$1, $catchall<T$1>>;
2841
+ catchall<T$1 extends SomeType>(schema: T$1): ZodObject<Shape$2, $catchall<T$1>>;
2685
2842
  /** @deprecated Use `z.looseObject()` or `.loose()` instead. */
2686
- passthrough(): ZodObject<Shape$1, $loose>;
2843
+ passthrough(): ZodObject<Shape$2, $loose>;
2687
2844
  /** Consider `z.looseObject(A.shape)` instead */
2688
- loose(): ZodObject<Shape$1, $loose>;
2845
+ loose(): ZodObject<Shape$2, $loose>;
2689
2846
  /** Consider `z.strictObject(A.shape)` instead */
2690
- strict(): ZodObject<Shape$1, $strict>;
2847
+ strict(): ZodObject<Shape$2, $strict>;
2691
2848
  /** This is the default behavior. This method call is likely unnecessary. */
2692
- strip(): ZodObject<Shape$1, $strip>;
2693
- extend<U$1 extends $ZodLooseShape>(shape: U$1): ZodObject<Extend<Shape$1, U$1>, Config>;
2694
- safeExtend<U$1 extends $ZodLooseShape>(shape: SafeExtendShape<Shape$1, U$1> & Partial<Record<keyof Shape$1, SomeType>>): ZodObject<Extend<Shape$1, U$1>, Config>;
2849
+ strip(): ZodObject<Shape$2, $strip>;
2850
+ extend<U$1 extends $ZodLooseShape>(shape: U$1): ZodObject<Extend<Shape$2, Writeable<U$1>>, Config$1>;
2851
+ safeExtend<U$1 extends $ZodLooseShape>(shape: SafeExtendShape<Shape$2, U$1> & Partial<Record<keyof Shape$2, SomeType>>): ZodObject<Extend<Shape$2, Writeable<U$1>>, Config$1>;
2695
2852
  /**
2696
2853
  * @deprecated Use [`A.extend(B.shape)`](https://zod.dev/api?id=extend) instead.
2697
2854
  */
2698
- merge<U$1 extends ZodObject>(other: U$1): ZodObject<Extend<Shape$1, U$1["shape"]>, U$1["_zod"]["config"]>;
2699
- pick<M$1 extends Mask$1<keyof Shape$1>>(mask: M$1 & Record<Exclude<keyof M$1, keyof Shape$1>, never>): ZodObject<Flatten<Pick<Shape$1, Extract<keyof Shape$1, keyof M$1>>>, Config>;
2700
- omit<M$1 extends Mask$1<keyof Shape$1>>(mask: M$1 & Record<Exclude<keyof M$1, keyof Shape$1>, never>): ZodObject<Flatten<Omit<Shape$1, Extract<keyof Shape$1, keyof M$1>>>, Config>;
2701
- partial(): ZodObject<{ [k in keyof Shape$1]: ZodOptional<Shape$1[k]> }, Config>;
2702
- partial<M$1 extends Mask$1<keyof Shape$1>>(mask: M$1 & Record<Exclude<keyof M$1, keyof Shape$1>, never>): ZodObject<{ [k in keyof Shape$1]: k extends keyof M$1 ? ZodOptional<Shape$1[k]> : Shape$1[k] }, Config>;
2703
- required(): ZodObject<{ [k in keyof Shape$1]: ZodNonOptional<Shape$1[k]> }, Config>;
2704
- required<M$1 extends Mask$1<keyof Shape$1>>(mask: M$1 & Record<Exclude<keyof M$1, keyof Shape$1>, never>): ZodObject<{ [k in keyof Shape$1]: k extends keyof M$1 ? ZodNonOptional<Shape$1[k]> : Shape$1[k] }, Config>;
2855
+ merge<U$1 extends ZodObject>(other: U$1): ZodObject<Extend<Shape$2, U$1["shape"]>, U$1["_zod"]["config"]>;
2856
+ pick<M$1 extends Mask$1<keyof Shape$2>>(mask: M$1 & Record<Exclude<keyof M$1, keyof Shape$2>, never>): ZodObject<Flatten<Pick<Shape$2, Extract<keyof Shape$2, keyof M$1>>>, Config$1>;
2857
+ omit<M$1 extends Mask$1<keyof Shape$2>>(mask: M$1 & Record<Exclude<keyof M$1, keyof Shape$2>, never>): ZodObject<Flatten<Omit<Shape$2, Extract<keyof Shape$2, keyof M$1>>>, Config$1>;
2858
+ partial(): ZodObject<{ -readonly [k in keyof Shape$2]: ZodOptional<Shape$2[k]> }, Config$1>;
2859
+ partial<M$1 extends Mask$1<keyof Shape$2>>(mask: M$1 & Record<Exclude<keyof M$1, keyof Shape$2>, never>): ZodObject<{ -readonly [k in keyof Shape$2]: k extends keyof M$1 ? ZodOptional<Shape$2[k]> : Shape$2[k] }, Config$1>;
2860
+ exactPartial(): ZodObject<{ -readonly [k in keyof Shape$2]: ZodExactOptional<Shape$2[k]> }, Config$1>;
2861
+ exactPartial<M$1 extends Mask$1<keyof Shape$2>>(mask: M$1 & Record<Exclude<keyof M$1, keyof Shape$2>, never>): ZodObject<{ -readonly [k in keyof Shape$2]: k extends keyof M$1 ? ZodExactOptional<Shape$2[k]> : Shape$2[k] }, Config$1>;
2862
+ required(): ZodObject<{ -readonly [k in keyof Shape$2]: ZodNonOptional<Shape$2[k]> }, Config$1>;
2863
+ required<M$1 extends Mask$1<keyof Shape$2>>(mask: M$1 & Record<Exclude<keyof M$1, keyof Shape$2>, never>): ZodObject<{ -readonly [k in keyof Shape$2]: k extends keyof M$1 ? ZodNonOptional<Shape$2[k]> : Shape$2[k] }, Config$1>;
2705
2864
  }
2706
2865
  declare const ZodObject: $constructor<ZodObject>;
2707
2866
  interface ZodUnion<T$1 extends readonly SomeType[] = readonly $ZodType[]> extends _ZodType<$ZodUnionInternals<T$1>>, $ZodUnion<T$1> {
@@ -2715,13 +2874,14 @@ interface ZodDiscriminatedUnion<Options extends readonly SomeType[] = readonly $
2715
2874
  def: $ZodDiscriminatedUnionDef<Options, Disc>;
2716
2875
  }
2717
2876
  declare const ZodDiscriminatedUnion: $constructor<ZodDiscriminatedUnion>;
2718
- interface ZodIntersection<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends _ZodType<$ZodIntersectionInternals<A, B>>, $ZodIntersection<A, B> {
2877
+ interface ZodIntersection<A$1 extends SomeType = $ZodType, B extends SomeType = $ZodType> extends _ZodType<$ZodIntersectionInternals<A$1, B>>, $ZodIntersection<A$1, B> {
2719
2878
  "~standard": ZodStandardSchemaWithJSON<this>;
2720
2879
  }
2721
2880
  declare const ZodIntersection: $constructor<ZodIntersection>;
2722
2881
  interface ZodTuple<T$1 extends TupleItems = readonly $ZodType[], Rest$1 extends SomeType | null = $ZodType | null> extends _ZodType<$ZodTupleInternals<T$1, Rest$1>>, $ZodTuple<T$1, Rest$1> {
2723
2882
  "~standard": ZodStandardSchemaWithJSON<this>;
2724
2883
  rest<Rest$1 extends SomeType = $ZodType>(rest: Rest$1): ZodTuple<T$1, Rest$1>;
2884
+ partial(): ZodTuple<{ -readonly [k in keyof T$1]: ZodOptional<T$1[k]> }, Rest$1>;
2725
2885
  }
2726
2886
  declare const ZodTuple: $constructor<ZodTuple>;
2727
2887
  interface ZodRecord<Key$1 extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends _ZodType<$ZodRecordInternals<Key$1, Value>>, $ZodRecord<Key$1, Value> {
@@ -2746,7 +2906,7 @@ interface ZodLiteral<T$1 extends Literal = Literal> extends _ZodType<$ZodLiteral
2746
2906
  value: T$1;
2747
2907
  }
2748
2908
  declare const ZodLiteral: $constructor<ZodLiteral>;
2749
- interface ZodTransform<O = unknown, I = unknown> extends _ZodType<$ZodTransformInternals<O, I>>, $ZodTransform<O, I> {
2909
+ interface ZodTransform<O = unknown, I$1 = unknown> extends _ZodType<$ZodTransformInternals<O, I$1>>, $ZodTransform<O, I$1> {
2750
2910
  "~standard": ZodStandardSchemaWithJSON<this>;
2751
2911
  }
2752
2912
  declare const ZodTransform: $constructor<ZodTransform>;
@@ -2789,9 +2949,9 @@ interface ZodCatch<T$1 extends SomeType = $ZodType> extends _ZodType<$ZodCatchIn
2789
2949
  removeCatch(): T$1;
2790
2950
  }
2791
2951
  declare const ZodCatch: $constructor<ZodCatch>;
2792
- interface ZodPipe<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends _ZodType<$ZodPipeInternals<A, B>>, $ZodPipe<A, B> {
2952
+ interface ZodPipe<A$1 extends SomeType = $ZodType, B extends SomeType = $ZodType> extends _ZodType<$ZodPipeInternals<A$1, B>>, $ZodPipe<A$1, B> {
2793
2953
  "~standard": ZodStandardSchemaWithJSON<this>;
2794
- in: A;
2954
+ in: A$1;
2795
2955
  out: B;
2796
2956
  }
2797
2957
  declare const ZodPipe: $constructor<ZodPipe>;
@@ -2800,11 +2960,16 @@ interface ZodReadonly<T$1 extends SomeType = $ZodType> extends _ZodType<$ZodRead
2800
2960
  unwrap(): T$1;
2801
2961
  }
2802
2962
  declare const ZodReadonly: $constructor<ZodReadonly>;
2803
- interface ZodCustom<O = unknown, I = unknown> extends _ZodType<$ZodCustomInternals<O, I>>, $ZodCustom<O, I> {
2963
+ interface ZodCustom<O = unknown, I$1 = unknown> extends _ZodType<$ZodCustomInternals<O, I$1>>, $ZodCustom<O, I$1> {
2804
2964
  "~standard": ZodStandardSchemaWithJSON<this>;
2805
2965
  }
2806
2966
  declare const ZodCustom: $constructor<ZodCustom>;
2807
2967
  //#endregion
2968
+ //#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/in-out.d.cts
2969
+ type input<T$1> = input$1<T$1>;
2970
+ /** Returns a copy of the schema with every pipe replaced by its input side. A codec's checks are dropped: they constrain the decoded value the input side never produces. */
2971
+ declare function input<T$1 extends $ZodType>(schema: T$1): ZodType<input$1<T$1>, input$1<T$1>>;
2972
+ //#endregion
2808
2973
  //#region ../2d-labels-markers/lib/esm/collision-ranking.d.ts
2809
2974
  declare const collisionRankingTierSchema: ZodUnion<readonly [ZodEnum<{
2810
2975
  low: "low";
@@ -4451,6 +4616,8 @@ interface ConnectionRecord {
4451
4616
  nodeIds: string[];
4452
4617
  /** geometry-anchored anchors (v2: from connection nodes; v3: from connection entrances/exits) */
4453
4618
  anchors: AnchorRecord[];
4619
+ /** navigation flag words (v2: connection.flags only; v3: OR of entrance/exit flags) */
4620
+ flags?: number[];
4454
4621
  details?: Record<string, unknown>;
4455
4622
  }
4456
4623
  //#endregion
@@ -4752,8 +4919,7 @@ type DecorationStyle = {
4752
4919
  };
4753
4920
  /**
4754
4921
  * A space or obstruction bevel, as the renderer reads it off the feature (renderer-three batched-mesh merges it under
4755
- * any style bevel). Either complete, from geometry effects ({@link bevelFromGeometryEffects}), or as injected onto a
4756
- * parsed MVFv2 feature through `onMVFParsed` (`WithBevel`: every field optional, e.g. cms-v6-compat's v5 bevels).
4922
+ * any style bevel). Built from the bundle's `geometry-effects.json` ({@link bevelFromGeometryEffects}).
4757
4923
  */
4758
4924
  type DecorationBevel = {
4759
4925
  enabled?: boolean;
@@ -4776,8 +4942,7 @@ interface DecorationRecord {
4776
4942
  /** Every texture anchored to the geometry, in source order (e.g. one per face). */
4777
4943
  textures?: EnterpriseTexture[];
4778
4944
  /**
4779
- * The geometry's bevel. Sources, later wins: one set on the parsed MVFv2 feature (e.g. injected through
4780
- * `onMVFParsed`), then the `geometry-effects.json` effects (spaces; SDK #1817, {@link bevelFromGeometryEffects}).
4945
+ * The geometry's bevel, from the bundle's `geometry-effects.json` effects ({@link bevelFromGeometryEffects}).
4781
4946
  * The renderer reads it off the space or object feature (`render/spaces.ts`, `render/objects.ts`).
4782
4947
  */
4783
4948
  bevel?: DecorationBevel;
@@ -6005,6 +6170,34 @@ declare class Connection extends DetailedMapData<Feature$1<Point$1, SpacePropert
6005
6170
  * @returns {boolean} Whether the connection is accessible.
6006
6171
  */
6007
6172
  get accessible(): boolean;
6173
+ /**
6174
+ * The navigation flags set on the connection, as their declared keys.
6175
+ *
6176
+ * Flag keys come from the venue's navigation flag declarations (`navigationFlags.json` in MVFv2, or the v3
6177
+ * bundle's `navigationFlags`). MVFv2 decodes `connection.flags` only: a connection whose bundle omits it has no
6178
+ * flags, the same as cms-v6-compat reads it (node flags describe a point, not passage through it). MVFv3 has no
6179
+ * connection-level flag field, so a flag belongs to the connection when any of its entrances or exits sets it
6180
+ * (the converter's `someFlags`).
6181
+ *
6182
+ * This may include `'accessible'` even when {@link Connection.accessible} is `false`: that getter requires the flag
6183
+ * on some entrance *and* some exit, while this reports any flagged anchor. Returns an empty array when the venue
6184
+ * declares no flags. Results depend on the venue's data: a declared key that no connection carries does not appear,
6185
+ * and many real venues declare custom filter-flag keys without putting them on connections.
6186
+ *
6187
+ * Door connections are exposed on enterprise MVFv2 loads (and can be excluded like any other connection); the
6188
+ * non-enterprise MVFv2 builder and native MVFv3 do not expose them as {@link Connection} objects.
6189
+ *
6190
+ * @returns {readonly string[]} The declared navigation flag keys present on the connection.
6191
+ * @example
6192
+ * ```ts
6193
+ * const mapData = await getMapData({ mapId, key, secret });
6194
+ * const excludedConnections = mapData
6195
+ * .getByType('connection')
6196
+ * .filter(connection => connection.navigationFlags.includes('staff-only'));
6197
+ * const directions = await mapData.getDirections(from, to, { excludedConnections });
6198
+ * ```
6199
+ */
6200
+ get navigationFlags(): readonly string[];
6008
6201
  /**
6009
6202
  * Gets the type of the connection.
6010
6203
  *
@@ -7033,6 +7226,11 @@ declare class EnterpriseLocation extends BaseMetaData implements Omit<Enterprise
7033
7226
  * The tags of the location.
7034
7227
  */
7035
7228
  tags?: string[] | undefined;
7229
+ /**
7230
+ * Navigation flag keys that apps use to gate routing (filter flags) for this location, as declared by the venue.
7231
+ * Undefined when the location carries no filter flags.
7232
+ */
7233
+ filterFlags?: string[] | undefined;
7036
7234
  /**
7037
7235
  * The type of the location.
7038
7236
  */
@@ -8925,6 +9123,7 @@ declare class Marker implements IFocusable, INavigatable {
8925
9123
  * 3D Models can be added to a {@link Coordinate}, {@link Door} or {@link Space}.
8926
9124
  * When adding the same model to multiple locations at the same time always use an array instead of calling the add method multiple times.
8927
9125
  * This allows the SDK to re-use the same instance of the model to reduce RAM usage and rendering time, resulting in better performance.
9126
+ * A model added with `EXPERIMENTAL_batchedDraw` is never instanced: each placement draws its own copy.
8928
9127
  *
8929
9128
  * Models are added using {@link Models.add}.
8930
9129
  *
@@ -8933,7 +9132,11 @@ declare class Marker implements IFocusable, INavigatable {
8933
9132
  declare class Model implements INavigatable {
8934
9133
  #private;
8935
9134
  /**
8936
- * The model's id
9135
+ * The model's id.
9136
+ *
9137
+ * When it was created with the `id` option — as {@link Models.all} does with the venue's
9138
+ * model id — this is that id, so the model can be matched back to its map data entry.
9139
+ * Otherwise it is the renderer's id for the model.
8937
9140
  */
8938
9141
  id: string;
8939
9142
  /**
@@ -9981,7 +10184,7 @@ declare class GeojsonApiMapObject extends PubSub<{
9981
10184
  add: <T$1 extends FeatureCollection<Polygon | MultiPolygon | LineString, any>>(geometry: T$1, style: T$1 extends FeatureCollection<LineString, any> ? LineStyle$1 : PaintStyle$1, opts: {
9982
10185
  floorId?: string;
9983
10186
  }) => string;
9984
- remove: (customGeometry: Shape) => string;
10187
+ remove: (customGeometry: Shape$1) => string;
9985
10188
  };
9986
10189
  Text3D: {
9987
10190
  label: (target: Space, content?: string, options?: TAddText3DOptions) => Text3DInfo | undefined;
@@ -10114,7 +10317,7 @@ declare class Shapes {
10114
10317
  /**
10115
10318
  * @internal
10116
10319
  */
10117
- getById(id: string): Shape | undefined;
10320
+ getById(id: string): Shape$1 | undefined;
10118
10321
  /**
10119
10322
  * Adds a custom GeoJSON geometry ({@link Shape}) to the map.
10120
10323
  *
@@ -10168,14 +10371,14 @@ declare class Shapes {
10168
10371
  *
10169
10372
  * @see [Shapes Guide](https://developer.mappedin.com/web-sdk/shapes)
10170
10373
  */
10171
- add<T$1 extends FeatureCollection<Polygon | MultiPolygon | LineString, any>>(geometry: T$1, style: T$1 extends FeatureCollection<LineString, any> ? LineStyle$1 : PaintStyle$1, floor?: Floor): Shape;
10374
+ add<T$1 extends FeatureCollection<Polygon | MultiPolygon | LineString, any>>(geometry: T$1, style: T$1 extends FeatureCollection<LineString, any> ? LineStyle$1 : PaintStyle$1, floor?: Floor): Shape$1;
10172
10375
  /**
10173
10376
  * Removes a specific shape ({@link Shape}) from the map.
10174
10377
  * @param shape The shape to be removed.
10175
10378
  * @example
10176
10379
  * mapView.Shapes.remove(shape);
10177
10380
  */
10178
- remove(shape: Shape): void;
10381
+ remove(shape: Shape$1): void;
10179
10382
  /**
10180
10383
  * Removes all Shapes ({@link Shape}) from the map.
10181
10384
  *
@@ -12462,7 +12665,7 @@ declare class Camera {
12462
12665
  /**
12463
12666
  * The camera's current pan mode.
12464
12667
  */
12465
- get panMode(): "default" | "elevation";
12668
+ get panMode(): "elevation" | "default";
12466
12669
  /**
12467
12670
  * Set the camera's pan mode. 'elevation' moves the camera up and down, while 'default' allows the camera to pan in all directions.
12468
12671
  * @experimental
@@ -13089,6 +13292,12 @@ type CurrentMapGetter = () => GeojsonApiMapObject | undefined;
13089
13292
  //#endregion
13090
13293
  //#region src/api-geojson/models.d.ts
13091
13294
  type MapDataInternalGetter = () => MapDataInternal | undefined;
13295
+ /** A model added through {@link Models}, keyed by its public id and by the renderer's entity id. */
13296
+ type ModelRecord = {
13297
+ model: Model;
13298
+ entityId: string;
13299
+ groupId: string;
13300
+ };
13092
13301
  /**
13093
13302
  * ## 3D Models in Mappedin JS
13094
13303
  *
@@ -13126,8 +13335,57 @@ type MapDataInternalGetter = () => MapDataInternal | undefined;
13126
13335
  *
13127
13336
  * > **Best Practice:** Use self-hosted GLB files for smaller download size and better caching. Use direct imports for convenience and rapid prototyping.
13128
13337
  *
13338
+ * ### Model Clipping (cut-aways)
13339
+ *
13340
+ * A model that represents a **building** is a closed shell: it sits over the venue and its
13341
+ * walls and roof hide the floors inside it. Pass `clippingEnabled: true` to
13342
+ * {@link TAddModelOptions} to cut the model away with a horizontal plane, so everything below
13343
+ * the plane is drawn and everything above it is removed — the familiar cut-away view of a
13344
+ * building, looking down into the floor the user is on:
13345
+ *
13346
+ * ```ts
13347
+ * const building = mapView.Models.add(mapData.mapCenter, buildingUrl, {
13348
+ * clippingEnabled: true,
13349
+ * });
13350
+ * ```
13351
+ *
13352
+ * - `clippingEnabled` is the switch. It is decided when the model is added — setting it
13353
+ * later has no effect — and it de-optimizes the model by disabling instancing, so keep
13354
+ * it to the models that actually need it.
13355
+ * - `clippingPlaneZOffset` is the height of the cut, in meters on the map's vertical axis —
13356
+ * the same scale the floors use, so `getState(floor).altitude` can be used directly. It
13357
+ * defaults to `Infinity`, which puts the plane above everything and so cuts nothing: set a
13358
+ * finite height, and move it at runtime with
13359
+ * `mapView.updateState(model, { clippingPlaneZOffset })`.
13360
+ * - `clippingPlaneTopColor` and `clippingPlaneTopVisible` style the exposed cut face.
13361
+ *
13362
+ * Follow the floor the user is on by reading `getState(floor).altitude` — the floor's visual
13363
+ * height in the scene, which already includes the floor spacing of a multi-floor view — and
13364
+ * using it as the cut height:
13365
+ *
13366
+ * ```ts
13367
+ * function clipToCurrentFloor() {
13368
+ * const altitude = mapView.getState(mapView.currentFloor)?.altitude ?? 0;
13369
+ *
13370
+ * mapView.updateState(building, {
13371
+ * clippingPlaneZOffset: altitude + 0.05, // a hair above the floor, not through it
13372
+ * clippingPlaneTopColor: '#8899aa',
13373
+ * });
13374
+ * }
13375
+ *
13376
+ * clipToCurrentFloor();
13377
+ * mapView.on('floor-change', clipToCurrentFloor);
13378
+ * ```
13379
+ *
13380
+ * Venue models added with {@link Models.all} enable clipping automatically when the venue
13381
+ * marks them as manifolded.
13382
+ *
13383
+ * > **Deprecated:** `EXPERIMENTAL_clippingEnabled` still works and logs a warning. It is
13384
+ * > the pre-release name of `clippingEnabled` — rename it.
13385
+ *
13129
13386
  * ### Performance Tips
13130
13387
  * - Avoid using models with nested meshes.
13388
+ * - Clipping disables instancing for the model, so enable it only on the models that need it.
13131
13389
  *
13132
13390
  * ### More Information
13133
13391
  * - [3D Models Guide](https://developer.mappedin.com/web-sdk/3d-models)
@@ -13154,11 +13412,11 @@ declare class Models {
13154
13412
  /**
13155
13413
  * @internal
13156
13414
  */
13157
- getById(id: string): {
13158
- model: Model;
13159
- entityId: string;
13160
- groupId: string;
13161
- } | undefined;
13415
+ getById(id: string): ModelRecord | undefined;
13416
+ /**
13417
+ * @internal
13418
+ */
13419
+ getByEntityId(entityId: string): ModelRecord | undefined;
13162
13420
  /**
13163
13421
  * Adds a 3D model to the map at the specified coordinate.
13164
13422
  *
@@ -13188,6 +13446,22 @@ declare class Models {
13188
13446
  * });
13189
13447
  * ```
13190
13448
  *
13449
+ * @example Add a building model and cut it open at the floor the user is on
13450
+ * ```ts
13451
+ * const building = mapView.Models.add(mapData.mapCenter, buildingUrl, {
13452
+ * clippingEnabled: true,
13453
+ * });
13454
+ *
13455
+ * function clipToCurrentFloor() {
13456
+ * const altitude = mapView.getState(mapView.currentFloor)?.altitude ?? 0;
13457
+ *
13458
+ * mapView.updateState(building, { clippingPlaneZOffset: altitude + 0.05 });
13459
+ * }
13460
+ *
13461
+ * clipToCurrentFloor();
13462
+ * mapView.on('floor-change', clipToCurrentFloor);
13463
+ * ```
13464
+ *
13191
13465
  * @see [3D Models Guide](https://developer.mappedin.com/web-sdk/3d-models)
13192
13466
  * @see [Mappedin 3D Assets Library](https://www.npmjs.com/package/@mappedin/3d-assets)
13193
13467
  */
@@ -13199,6 +13473,28 @@ declare class Models {
13199
13473
  * each model to the map at its configured coordinate with the specified
13200
13474
  * rotation, scale, color, and clipping settings.
13201
13475
  *
13476
+ * Venue models either carry a `url` of their own, or just the `modelId` of a model from
13477
+ * the [Mappedin 3D Assets Library](https://www.npmjs.com/package/@mappedin/3d-assets).
13478
+ * The library is not bundled with the SDK — pass `resolveModel` to resolve those ids
13479
+ * (see {@link TModelsAllOptions}). Entries that resolve to neither are skipped.
13480
+ *
13481
+ * Each {@link Model} takes the venue entry's id, so it can be matched back to its entry in
13482
+ * the venue's `extra.models` data.
13483
+ *
13484
+ * Each model is drawn the cheapest way the venue data allows. A model with its own `url` that appears **once** in
13485
+ * the venue (a building, clipped or not) is batched: its pieces draw in a few calls instead of one call per piece.
13486
+ * An asset-library model, or a `url` that appears more than once, is instanced, so its placements share one copy of
13487
+ * the geometry. (Experimental: batching uses `EXPERIMENTAL_batchedDraw` under the hood.)
13488
+ *
13489
+ * The entry's `visibility` (`'always'`, `'outdoors-only'`, `'indoors-only'`) is not applied:
13490
+ * every model is added visible. A model placed on a real floor still hides and shows with that
13491
+ * floor, because it is added to the floor's models layer. An outdoor entry has no floor to
13492
+ * follow — it is parented at the scene root — so it stays visible on every floor and does not
13493
+ * follow the outdoor container's visibility either, which means an `outdoors-only` asset is
13494
+ * also visible indoors. Apply the field yourself with `updateState(model, { visible })` when a
13495
+ * venue relies on it.
13496
+ *
13497
+ * @param options - Options for {@link TModelsAllOptions}.
13202
13498
  * @returns An array of {@link Model} instances that were added to the map.
13203
13499
  * Returns an empty array when the venue has no model data
13204
13500
  * or none of the model entries are valid.
@@ -13208,8 +13504,17 @@ declare class Models {
13208
13504
  * const models = mapView.Models.all();
13209
13505
  * console.log(`Added ${models.length} models to the map`);
13210
13506
  * ```
13507
+ *
13508
+ * @example Resolve venue models that use the 3D Assets Library
13509
+ * ```ts
13510
+ * import * as assets from '@mappedin/3d-assets';
13511
+ *
13512
+ * const models = mapView.Models.all({
13513
+ * resolveModel: modelId => (assets as Record<string, string>)[modelId],
13514
+ * });
13515
+ * ```
13211
13516
  */
13212
- all(): Model[];
13517
+ all(options?: TModelsAllOptions): Model[];
13213
13518
  /**
13214
13519
  * Removes a model from the map.
13215
13520
  *
@@ -13783,9 +14088,9 @@ declare const floorStateSchemaPartial: ZodObject<{
13783
14088
  height: ZodOptional<ZodDefault<ZodNumber>>;
13784
14089
  opacity: ZodOptional<ZodDefault<ZodNumber>>;
13785
14090
  side: ZodOptional<ZodDefault<ZodEnum<{
13786
- back: "back";
13787
- front: "front";
13788
14091
  double: "double";
14092
+ front: "front";
14093
+ back: "back";
13789
14094
  }>>>;
13790
14095
  color: ZodOptional<ZodDefault<ZodString>>;
13791
14096
  ceilingVisible: ZodOptional<ZodDefault<ZodBoolean>>;
@@ -13868,9 +14173,9 @@ declare const floorStateSchemaStrict: ZodObject<{
13868
14173
  height: ZodDefault<ZodNumber>;
13869
14174
  opacity: ZodDefault<ZodNumber>;
13870
14175
  side: ZodDefault<ZodEnum<{
13871
- back: "back";
13872
- front: "front";
13873
14176
  double: "double";
14177
+ front: "front";
14178
+ back: "back";
13874
14179
  }>>;
13875
14180
  color: ZodDefault<ZodString>;
13876
14181
  ceilingVisible: ZodDefault<ZodBoolean>;
@@ -13942,6 +14247,12 @@ declare const geometryStateSchemaPartial: ZodObject<{
13942
14247
  borderVisible: ZodOptional<ZodDefault<ZodBoolean>>;
13943
14248
  borderColor: ZodOptional<ZodOptional<ZodString>>;
13944
14249
  borderWidth: ZodOptional<ZodOptional<ZodNumber>>;
14250
+ EXPERIMENTAL_surfaceEffect: ZodOptional<ZodOptional<ZodNullable<ZodObject<{
14251
+ id: ZodString;
14252
+ params: ZodObject<{
14253
+ amount: ZodNumber;
14254
+ }, $strip>;
14255
+ }, $strip>>>>;
13945
14256
  }, $strip>;
13946
14257
  /** @internal */
13947
14258
  declare const geometryStateSchemaStrict: ZodObject<{
@@ -13968,6 +14279,12 @@ declare const geometryStateSchemaStrict: ZodObject<{
13968
14279
  borderVisible: ZodDefault<ZodBoolean>;
13969
14280
  borderColor: ZodOptional<ZodString>;
13970
14281
  borderWidth: ZodOptional<ZodNumber>;
14282
+ EXPERIMENTAL_surfaceEffect: ZodOptional<ZodNullable<ZodObject<{
14283
+ id: ZodString;
14284
+ params: ZodObject<{
14285
+ amount: ZodNumber;
14286
+ }, $strip>;
14287
+ }, $strip>>>;
13971
14288
  }, $strict>;
13972
14289
  /**
13973
14290
  * The serialized state of a geometry element such as a {@link Space}, including
@@ -14080,8 +14397,8 @@ declare const markerStateSchema: ZodObject<{
14080
14397
  }, $strip>;
14081
14398
  /** @internal */
14082
14399
  declare const markerStateSchemaPartial: ZodObject<{
14083
- enabled: ZodOptional<ZodDefault<ZodBoolean>>;
14084
14400
  type: ZodOptional<ZodDefault<ZodLiteral<"marker">>>;
14401
+ enabled: ZodOptional<ZodDefault<ZodBoolean>>;
14085
14402
  interactive: ZodOptional<ZodDefault<ZodUnion<readonly [ZodBoolean, ZodLiteral<"pointer-events-auto">]>>>;
14086
14403
  rank: ZodOptional<ZodCustom<"initial" | TCollisionRankingTier, "initial" | TCollisionRankingTier>>;
14087
14404
  occlude: ZodOptional<ZodDefault<ZodBoolean>>;
@@ -14416,23 +14733,23 @@ type TImage3DUpdateState = output<typeof imageStateSchemaPartial>;
14416
14733
  //#region src/states/model-state.d.ts
14417
14734
  /** @internal */
14418
14735
  declare const modelStateUpdateSchema: ZodObject<{
14419
- altitude: ZodOptional<ZodOptional<ZodNumber>>;
14420
14736
  id: ZodOptional<ZodOptional<ZodUnion<readonly [ZodNumber, ZodString]>>>;
14421
14737
  type: ZodOptional<ZodDefault<ZodLiteral<"model">>>;
14422
14738
  color: ZodOptional<ZodOptional<ZodString>>;
14423
- position: ZodOptional<ZodCustom<Coordinate, Coordinate>>;
14739
+ rotation: ZodOptional<ZodUnion<readonly [ZodNumber, ZodTuple<[ZodNumber, ZodNumber, ZodNumber], null>]>>;
14740
+ scale: ZodOptional<ZodUnion<readonly [ZodNumber, ZodTuple<[ZodNumber, ZodNumber, ZodNumber], null>]>>;
14424
14741
  visible: ZodOptional<ZodDefault<ZodBoolean>>;
14425
- verticalOffset: ZodOptional<ZodDefault<ZodNumber>>;
14426
14742
  opacity: ZodOptional<ZodDefault<ZodNumber>>;
14427
14743
  material: ZodOptional<ZodOptional<ZodRecord<ZodString, ZodObject<{
14428
14744
  color: ZodString;
14429
14745
  }, $strip>>>>;
14430
- interactive: ZodOptional<ZodDefault<ZodBoolean>>;
14746
+ verticalOffset: ZodOptional<ZodDefault<ZodNumber>>;
14431
14747
  clippingPlaneZOffset: ZodOptional<ZodDefault<ZodCustom<number, number>>>;
14432
14748
  clippingPlaneTopColor: ZodOptional<ZodDefault<ZodString>>;
14433
14749
  clippingPlaneTopVisible: ZodOptional<ZodDefault<ZodBoolean>>;
14434
- scale: ZodOptional<ZodUnion<readonly [ZodNumber, ZodTuple<[ZodNumber, ZodNumber, ZodNumber], null>]>>;
14435
- rotation: ZodOptional<ZodUnion<readonly [ZodNumber, ZodTuple<[ZodNumber, ZodNumber, ZodNumber], null>]>>;
14750
+ position: ZodOptional<ZodCustom<Coordinate, Coordinate>>;
14751
+ interactive: ZodOptional<ZodDefault<ZodBoolean>>;
14752
+ altitude: ZodOptional<ZodOptional<ZodNumber>>;
14436
14753
  }, $strip>;
14437
14754
  /** @internal */
14438
14755
  declare const modelStateSchemaStrict: ZodObject<{
@@ -14453,6 +14770,9 @@ declare const modelStateSchemaStrict: ZodObject<{
14453
14770
  clippingPlaneZOffset: ZodDefault<ZodCustom<number, number>>;
14454
14771
  clippingPlaneTopColor: ZodDefault<ZodString>;
14455
14772
  clippingPlaneTopVisible: ZodDefault<ZodBoolean>;
14773
+ castShadow: ZodDefault<ZodBoolean>;
14774
+ receiveShadow: ZodDefault<ZodBoolean>;
14775
+ clippingEnabled: ZodDefault<ZodBoolean>;
14456
14776
  }, $strict>;
14457
14777
  /**
14458
14778
  * The serialized state of a 3D model, including its coordinate, rotation, and scale.
@@ -14580,7 +14900,7 @@ type TWallsUpdateState = output<typeof wallsStateSchemaPartial>;
14580
14900
  type MapElementToGetState = {
14581
14901
  [Marker.__type]: ReadonlyDeep<TMarkerState>;
14582
14902
  [Label.__type]: ReadonlyDeep<TLabelState>;
14583
- [Shape.__type]: ReadonlyDeep<TShapeState>;
14903
+ [Shape$1.__type]: ReadonlyDeep<TShapeState>;
14584
14904
  [Model.__type]: ReadonlyDeep<TModelState>;
14585
14905
  [Path.__type]: ReadonlyDeep<TPathState>;
14586
14906
  [PathSegment$1.__type]: ReadonlyDeep<TPathState>;
@@ -14603,7 +14923,7 @@ type MapElementToGetState = {
14603
14923
  type MapElementToUpdateState = {
14604
14924
  [Marker.__type]: TMarkerUpdateState;
14605
14925
  [Label.__type]: TLabelUpdateState;
14606
- [Shape.__type]: TShapeUpdateState;
14926
+ [Shape$1.__type]: TShapeUpdateState;
14607
14927
  [Model.__type]: TModelUpdateState;
14608
14928
  [Path.__type]: TPathUpdateState;
14609
14929
  [PathSegment$1.__type]: TPathUpdateState;
@@ -14843,7 +15163,7 @@ declare class CameraTransform {
14843
15163
  *
14844
15164
  * Refer to the [Shapes Guide](https://developer.mappedin.com/web-sdk/shapes) for more information and interactive examples.
14845
15165
  */
14846
- declare class Shape implements IFocusable {
15166
+ declare class Shape$1 implements IFocusable {
14847
15167
  /**
14848
15168
  * id of Shape
14849
15169
  */
@@ -14862,7 +15182,7 @@ declare class Shape implements IFocusable {
14862
15182
  * @param instance The instance to check.
14863
15183
  * @returns {boolean} True if the instance is a Shape, false otherwise.
14864
15184
  */
14865
- static is(instance: object): instance is Shape;
15185
+ static is(instance: object): instance is Shape$1;
14866
15186
  /** @internal */
14867
15187
  get focusTarget(): this;
14868
15188
  /**
@@ -14973,7 +15293,7 @@ type TClickPayload = {
14973
15293
  /**
14974
15294
  * Interactive {@link Shape}s under the pointer.
14975
15295
  */
14976
- shapes?: Shape[];
15296
+ shapes?: Shape$1[];
14977
15297
  };
14978
15298
  /**
14979
15299
  * Represents the payload for a hover event on the map.
@@ -15339,7 +15659,7 @@ type MapDataElements = Space | MapObject | Door | Facade | Floor | FloorStack |
15339
15659
  /**
15340
15660
  * Elements created by the MapView.
15341
15661
  */
15342
- type MapViewElements = Label | Marker | Model | Shape | Text3DView | Path | PathSegment$1 | Image3DView;
15662
+ type MapViewElements = Label | Marker | Model | Shape$1 | Text3DView | Path | PathSegment$1 | Image3DView;
15343
15663
  /**
15344
15664
  * Options for {@link Camera} animations on the map.
15345
15665
  */
@@ -16191,9 +16511,90 @@ type TAddModel = {
16191
16511
  };
16192
16512
  /**
16193
16513
  * Options for controlling the behavior of a {@link Model}.
16514
+ *
16515
+ * ## Model clipping
16516
+ *
16517
+ * A model that represents a **building** is a closed shell: it sits over the venue and its
16518
+ * walls and roof hide the floors inside it. Set `clippingEnabled: true` to cut the model away
16519
+ * with a horizontal plane, so everything below the plane is drawn and everything above it is
16520
+ * removed — the familiar cut-away view of a building, looking down into the floor the user has
16521
+ * selected.
16522
+ *
16523
+ * Clipping is decided when the model is added — setting it later has no effect — and it
16524
+ * de-optimizes the model by disabling instancing, so enable it only on the models that need it.
16525
+ * Models added by {@link Models.all} enable it automatically when the venue marks them as
16526
+ * manifolded.
16527
+ *
16528
+ * The plane itself moves at runtime. `clippingPlaneZOffset` is the height of the cut, in meters
16529
+ * on the map's vertical axis — the same scale the floors use — and it defaults to `Infinity`,
16530
+ * which puts the plane above everything and so cuts nothing: set a finite height to see a cut.
16531
+ * `clippingPlaneTopColor` and `clippingPlaneTopVisible` style the exposed cut face.
16532
+ *
16533
+ * To follow the floor the user is on, read `getState(floor).altitude` — the floor's visual
16534
+ * height in the scene, which already includes the floor spacing of a multi-floor view — and use
16535
+ * it as the cut height.
16536
+ * @example Cut a building model open at the floor the user is on
16537
+ * ```ts
16538
+ * const building = mapView.Models.add(mapData.mapCenter, buildingUrl, {
16539
+ * clippingEnabled: true,
16540
+ * });
16541
+ *
16542
+ * function clipToCurrentFloor() {
16543
+ * const altitude = mapView.getState(mapView.currentFloor)?.altitude ?? 0;
16544
+ *
16545
+ * mapView.updateState(building, {
16546
+ * clippingPlaneZOffset: altitude + 0.05, // a hair above the floor, not through it
16547
+ * clippingPlaneTopColor: '#8899aa',
16548
+ * });
16549
+ * }
16550
+ *
16551
+ * clipToCurrentFloor();
16552
+ * mapView.on('floor-change', clipToCurrentFloor);
16553
+ * ```
16194
16554
  */
16195
16555
  type TAddModelOptions = Omit<InitializeModelState$1, 'scale' | 'url'> & {
16196
16556
  scale?: number | [number, number, number];
16557
+ /**
16558
+ * An id for the model, used as {@link Model.id} so it can be cross-referenced with the
16559
+ * data it came from — {@link Models.all} passes the venue's model id.
16560
+ *
16561
+ * It must be unique on the map. If it is already taken, or the call creates more than one
16562
+ * instance, the renderer's own id is used instead and a warning is logged.
16563
+ */
16564
+ id?: string;
16565
+ /**
16566
+ * Whether the model should be cut away at its clipping plane, exposing the interior.
16567
+ *
16568
+ * This is the pre-release name of the promoted `clippingEnabled` option: it still works,
16569
+ * but logs a warning and is never forwarded to the renderer. Clipping is no longer
16570
+ * experimental — rename the key.
16571
+ * @deprecated Use `clippingEnabled` instead. This alias will be removed in a future version.
16572
+ */
16573
+ EXPERIMENTAL_clippingEnabled?: boolean;
16574
+ };
16575
+ /**
16576
+ * Options for {@link Models.all}.
16577
+ * @interface
16578
+ */
16579
+ type TModelsAllOptions = {
16580
+ /**
16581
+ * Resolves a venue model's `modelId` to a model URL or an inline base64 asset, for
16582
+ * entries that carry no `url` of their own.
16583
+ *
16584
+ * Models placed from the Mappedin 3D Assets Library store only the asset's `modelId`
16585
+ * (e.g. `'truck'`). The SDK does not bundle the library — pass the lookup and the
16586
+ * models resolve the way `Models.add` resolves an inline asset.
16587
+ *
16588
+ * @example Add venue models that reference the 3D Assets Library
16589
+ * ```ts
16590
+ * import * as assets from '@mappedin/3d-assets';
16591
+ *
16592
+ * const models = mapView.Models.all({
16593
+ * resolveModel: modelId => (assets as Record<string, string>)[modelId],
16594
+ * });
16595
+ * ```
16596
+ */
16597
+ resolveModel?: (modelId: string) => string | undefined;
16197
16598
  };
16198
16599
  /**
16199
16600
  * Options for adding a 3D text element to the map.
@@ -16541,7 +16942,7 @@ interface UpdateGlobalState {
16541
16942
  /**
16542
16943
  * A map element that can be focused on by the camera.
16543
16944
  */
16544
- type TFocusTarget = Coordinate | Space | Area | MapObject | Floor | FloorStack | Shape;
16945
+ type TFocusTarget = Coordinate | Space | Area | MapObject | Floor | FloorStack | Shape$1;
16545
16946
  /**
16546
16947
  * Associates MapData type strings with their corresponding classes.
16547
16948
  */
@@ -16570,7 +16971,7 @@ type TMapViewObjectTypes = {
16570
16971
  [Label.__type]: Label;
16571
16972
  [Marker.__type]: Marker;
16572
16973
  [Model.__type]: Model;
16573
- [Shape.__type]: Shape;
16974
+ [Shape$1.__type]: Shape$1;
16574
16975
  [Path.__type]: Path;
16575
16976
  [PathSegment$1.__type]: PathSegment$1;
16576
16977
  [Image3DView.__type]: Image3DView;
@@ -17247,13 +17648,21 @@ type THydrateMapDataBundle = {
17247
17648
  */
17248
17649
  declare const hydrateMapData: (backup: THydrateMapDataBundle | ParsedMVF, userOptions?: TGetMapDataOptions) => Promise<MapData>;
17249
17650
  //#endregion
17651
+ //#region src/search/joined-words.d.ts
17652
+ type JoinedWordsSettings = {
17653
+ maxWords: number;
17654
+ name: boolean;
17655
+ tags: boolean;
17656
+ };
17657
+ //#endregion
17250
17658
  //#region src/search/internal.d.ts
17251
17659
  declare class InternalSearch {
17252
17660
  #private;
17253
17661
  private mapData;
17254
17662
  private indexes;
17255
17663
  private ready;
17256
- constructor(mapData: MapData);
17664
+ private joinedWords;
17665
+ constructor(mapData: MapData, joinedWords?: JoinedWordsSettings | null);
17257
17666
  /**
17258
17667
  * Populates the search indexes with the map data.
17259
17668
  * @returns A promise that resolves when the indexes are populated.
@@ -17316,12 +17725,18 @@ type SearchResult = {
17316
17725
  * that `undefined` is *not* a valid MiniSearch value — it would silently
17317
17726
  * disable fuzzy if forwarded verbatim — so `applyMatchOptions()` drops it and
17318
17727
  * the index default applies.
17728
+ *
17729
+ * The budget applies to folded terms: queries are accent-stripped, apostrophe-
17730
+ * stripped and lowercased before MiniSearch sees them.
17319
17731
  */
17320
17732
  type Fuzzy = number;
17321
17733
  /**
17322
17734
  * Whether prefix (as-you-type) matching is enabled per search source. Mirrors
17323
17735
  * MiniSearch's `prefix` option: a boolean, or a `(term, index, terms) => boolean`
17324
17736
  * function.
17737
+ *
17738
+ * A callback receives the folded query terms (accent-stripped, apostrophe-
17739
+ * stripped, lowercased), not the raw input string.
17325
17740
  */
17326
17741
  type Prefix$1 = SearchOptions$1['prefix'];
17327
17742
  declare const searchOptionsSchema: ZodObject<{
@@ -17398,10 +17813,9 @@ declare class Search {
17398
17813
  * @internal
17399
17814
  */
17400
17815
  constructor(mapData: MapData, mapDataInternal: MapDataInternal, {
17401
- enabled
17402
- }?: {
17403
- enabled?: boolean;
17404
- });
17816
+ enabled,
17817
+ joinedWords
17818
+ }?: Partial<Pick<TSearchOptions, 'enabled' | 'joinedWords'>>);
17405
17819
  /**
17406
17820
  * Use query to search for locations based on a string input:
17407
17821
  *
@@ -18426,9 +18840,24 @@ type Style$1 = {
18426
18840
  desaturateUseDepth?: boolean;
18427
18841
  washOutAmount?: number;
18428
18842
  washOutUseDepth?: boolean;
18843
+ /**
18844
+ * Per-geometry *additions* to the effect amounts above, summed with them and clamped in the shader.
18845
+ *
18846
+ * Additive on purpose: a caller can raise an effect the scene asks for but never lower or cancel it, so
18847
+ * this cannot express "off". Absent is the common case and means nothing on top.
18848
+ */
18849
+ effectAdditions?: EffectAdditions;
18429
18850
  maxImageSize?: number;
18430
18851
  visibleThroughGeometry?: boolean;
18431
18852
  };
18853
+ /**
18854
+ * Additions to the three depth-effect amounts, in [0, 1], applied on top of the style's own amounts.
18855
+ */
18856
+ type EffectAdditions = {
18857
+ darken: number;
18858
+ desaturate: number;
18859
+ washOut: number;
18860
+ };
18432
18861
  declare class StyleComponent implements Style$1 {
18433
18862
  #private;
18434
18863
  readonly type: "style";
@@ -18482,6 +18911,7 @@ declare class StyleComponent implements Style$1 {
18482
18911
  desaturateUseDepth: boolean;
18483
18912
  washOutAmount: number;
18484
18913
  washOutUseDepth: boolean;
18914
+ effectAdditions?: EffectAdditions;
18485
18915
  maxImageSize?: number;
18486
18916
  /**
18487
18917
  * Whether this geometry renders on top of other geometry (depth test/write off).
@@ -18733,15 +19163,42 @@ type ModelStyle = {
18733
19163
  */
18734
19164
  visibleThroughGeometry: boolean;
18735
19165
  /**
18736
- * When true, enables clipping plane functionality for this model.
18737
- * This cannot be changed at runtime.
19166
+ * Whether the model is cut away at its clipping plane, exposing the interior.
19167
+ *
19168
+ * Use this for models that represent a **building**: their walls and roof are a closed
19169
+ * shell over the venue, and clipping removes everything above `clippingPlaneZOffset` so
19170
+ * the floors inside the model stay visible — the familiar cut-away view of a building.
19171
+ * `clippingPlaneTopColor` and `clippingPlaneTopVisible` style the exposed cut face.
19172
+ *
19173
+ * Clipping is decided when the model is added: setting it later has no effect.
18738
19174
  *
18739
19175
  * Note: This will de-optimize the model by disabling instancing.
18740
19176
  * @default false
18741
19177
  */
18742
- EXPERIMENTAL_clippingEnabled: boolean;
19178
+ clippingEnabled: boolean;
18743
19179
  /**
18744
- * The clipping plane z offset of the model.
19180
+ * Draw the model's GLB pieces as batches — one draw per material and attribute layout — instead of one draw per
19181
+ * piece. A model with hundreds of pieces and a handful of materials then costs a handful of draws.
19182
+ *
19183
+ * A batched model is **never instanced**: it draws its own batches on its own container, clipped or not, so placing
19184
+ * the same model again uploads another copy of its geometry and adds its draws again. Use it for models placed once
19185
+ * (a venue's buildings), not for models placed many times (trees, kiosks), which instancing draws more cheaply. A
19186
+ * `visibleThroughGeometry` model ignores it (its depth settings are per material, one-to-one with its meshes) with a
19187
+ * warning. Decided when the model is added. See ADR 0016.
19188
+ * @experimental
19189
+ * @default false
19190
+ */
19191
+ EXPERIMENTAL_batchedDraw: boolean;
19192
+ /**
19193
+ * Height of the clipping plane on the map's vertical axis, in meters.
19194
+ *
19195
+ * The plane is horizontal and the world is cut at this height: everything below it is
19196
+ * drawn, everything above it is removed. It is the same vertical scale the floors use,
19197
+ * so a floor's `altitude` can be used directly as the cut height.
19198
+ *
19199
+ * `Infinity` — the default — puts the plane above everything, so nothing is cut. Set a
19200
+ * finite height to clip; it can be moved afterwards with
19201
+ * `mapView.updateState(model, { clippingPlaneZOffset })`.
18745
19202
  * @default Infinity
18746
19203
  */
18747
19204
  clippingPlaneZOffset: number;
@@ -18751,10 +19208,35 @@ type ModelStyle = {
18751
19208
  clippingPlaneTopColor: string;
18752
19209
  /**
18753
19210
  * Whether the clipping plane is visible.
18754
- * @experimental
18755
19211
  * @default true
18756
19212
  */
18757
19213
  clippingPlaneTopVisible: boolean;
19214
+ /**
19215
+ * Whether the model casts a shadow onto the map. Fixed when the model is created, because casting
19216
+ * is a layer on the batch's meshes: it cannot be changed on an existing model. A no-op while
19217
+ * shadows are disabled for the map.
19218
+ *
19219
+ * For instanced models the layer is per batch and this setting is part of the batch identity, so a
19220
+ * model that opts out is placed in its own batch (same URL and container, one extra draw call)
19221
+ * rather than changing what the instances sharing its batch do. A non-instanced model (created
19222
+ * with `visibleThroughGeometry` or `clippingEnabled`) owns its mesh, so the layer
19223
+ * applies to that mesh alone — no batch to move into and no extra draw call.
19224
+ * @default true
19225
+ */
19226
+ castShadow: boolean;
19227
+ /**
19228
+ * Whether the model receives shadows cast onto it. Fixed when the model is created, because
19229
+ * receiving is a material state that decides how the model's clones are compiled — the patch
19230
+ * cannot be removed from an already-compiled material. A no-op while shadows are disabled for the
19231
+ * map: the batches' material clones are then never patched, so nothing receives.
19232
+ *
19233
+ * For instanced models it is part of the batch identity too: models that do not receive are placed
19234
+ * in their own unpatched batch instead of sharing the patched one — one extra draw call per
19235
+ * distinct opt-out shape. A non-instanced model owns its materials, so it is simply created with
19236
+ * unpatched clones.
19237
+ * @default true
19238
+ */
19239
+ receiveShadow: boolean;
18758
19240
  };
18759
19241
  declare class ModelStyleComponnet implements Partial<ModelStyle> {
18760
19242
  #private;
@@ -18770,10 +19252,13 @@ declare class ModelStyleComponnet implements Partial<ModelStyle> {
18770
19252
  material?: ModelStyle['material'];
18771
19253
  rotation?: [number, number, number];
18772
19254
  scale?: [number, number, number];
18773
- EXPERIMENTAL_clippingEnabled: boolean;
19255
+ clippingEnabled: boolean;
19256
+ EXPERIMENTAL_batchedDraw: boolean;
18774
19257
  clippingPlaneZOffset: number;
18775
19258
  clippingPlaneTopColor?: string;
18776
19259
  clippingPlaneTopVisible: boolean;
19260
+ castShadow: boolean;
19261
+ receiveShadow: boolean;
18777
19262
  get visibleThroughGeometry(): boolean;
18778
19263
  set visibleThroughGeometry(value: boolean);
18779
19264
  constructor(init?: Partial<ModelStyle>);
@@ -19036,6 +19521,28 @@ declare class BatchedStandardMaterial extends MeshLambertMaterial {
19036
19521
  color: Color;
19037
19522
  topColor: Color;
19038
19523
  };
19524
+ /**
19525
+ * Sets this instance's *additions* to the scene's depth effect amounts, in [0, 1].
19526
+ *
19527
+ * Additive by design: the shader sums them with the material's uniforms and clamps at 1, so a geometry
19528
+ * can raise an effect the feature turned on but never reduce or cancel it.
19529
+ * @param batchId - Instance index within this material's batch.
19530
+ * @param darken - Addition to the darken amount.
19531
+ * @param desaturate - Addition to the desaturate amount.
19532
+ * @param washOut - Addition to the wash-out amount.
19533
+ */
19534
+ setEffectAdditions(batchId: number, darken: number, desaturate: number, washOut: number): void;
19535
+ /**
19536
+ * Reads an instance's per-geometry effect additions back, in the form
19537
+ * {@link setEffectAdditions} accepts.
19538
+ * @param batchId - Instance index within the batch.
19539
+ * @returns The addition to each effect amount, in [0, 1]; zeros for an unbatched index.
19540
+ */
19541
+ getEffectAdditions(batchId: number): {
19542
+ darken: number;
19543
+ desaturate: number;
19544
+ washOut: number;
19545
+ };
19039
19546
  showTextures: (batchId: number) => void;
19040
19547
  hideTextures(batchId: number): void;
19041
19548
  removeSideTexture(batchId: number): void;
@@ -19062,6 +19569,22 @@ declare class SimpleGeometryMaterial extends MeshLambertMaterial {
19062
19569
  * Sets `color` and `topColor` as uniforms directly (no batchId / data texture).
19063
19570
  */
19064
19571
  setColor(color: Color, topColor: Color): void;
19572
+ /**
19573
+ * Sets this mesh's *additions* to the scene's depth effect amounts, in [0, 1], clamped.
19574
+ *
19575
+ * The merged counterpart of `BatchedStandardMaterial.setEffectAdditions(batchId, …)`: same meaning,
19576
+ * same clamped sum in the shader, so an override looks identical on either kind of geometry.
19577
+ */
19578
+ setEffectAdditions(darken: number, desaturate: number, washOut: number): void;
19579
+ /**
19580
+ * Reads the per-geometry effect additions back, in the form {@link setEffectAdditions} accepts.
19581
+ * @returns The addition to each effect amount, in [0, 1].
19582
+ */
19583
+ getEffectAdditions(): {
19584
+ darken: number;
19585
+ desaturate: number;
19586
+ washOut: number;
19587
+ };
19065
19588
  getColor(): {
19066
19589
  color: Color;
19067
19590
  topColor: Color;
@@ -19199,6 +19722,16 @@ declare class EntityBatchedMesh extends BatchedMesh {
19199
19722
  [key: number]: string | number;
19200
19723
  };
19201
19724
  detached?: boolean;
19725
+ /**
19726
+ * Authored colour of the source GLB material, used when no per-instance override applies. Model batches
19727
+ * only; mirrors the `InstancedMesh` contract.
19728
+ */
19729
+ originalColor?: Color;
19730
+ /**
19731
+ * Entity this batch draws, for a model that owns its container (any batched model). Picking and the
19732
+ * interaction system's clipped-region filter read it. Model batches only.
19733
+ */
19734
+ entityId?: string;
19202
19735
  };
19203
19736
  /**
19204
19737
  * Assigned by three's BatchedMesh constructor / setColorAt but not present in @types/three.
@@ -19369,6 +19902,21 @@ type GeometryState = {
19369
19902
  * @default false
19370
19903
  */
19371
19904
  visibleThroughGeometry?: boolean;
19905
+ /**
19906
+ * Adds an amount to one depth effect for this geometry only, on top of the scene's own amount; `null`
19907
+ * clears every addition. Additive: a geometry can raise an effect the feature turned on but never
19908
+ * lower or cancel it, so there is no way to express "off" here.
19909
+ *
19910
+ * Write-only, like the effect amounts it adds to: `getState` does not report it back.
19911
+ *
19912
+ * @experimental
19913
+ */
19914
+ EXPERIMENTAL_surfaceEffect?: {
19915
+ id: string;
19916
+ params: {
19917
+ amount: number;
19918
+ };
19919
+ } | null;
19372
19920
  };
19373
19921
  declare class MeshComponent {
19374
19922
  #private;
@@ -19455,16 +20003,16 @@ type ModelState = {
19455
20003
  interactive: boolean;
19456
20004
  } & Partial<Omit<ModelStyle, 'rotation' | 'scale'>> & Pick<ModelStyle, 'rotation' | 'scale'>;
19457
20005
  /**
19458
- * initialize model state
20006
+ * Initial state for a model, including its transform, appearance and clipping.
19459
20007
  * @interface
19460
- * Note: EXPERIMENTAL_clippingEnabled and visibleThroughGeometry are now part of ModelStyle
20008
+ * Note: `clippingEnabled` and `visibleThroughGeometry` are passed via the style, not as GeoJSON feature properties.
19461
20009
  */
19462
20010
  type InitializeModelState$2 = Omit<Partial<ModelState>, 'id' | 'type' | 'parent' | 'position'>;
19463
20011
  /**
19464
20012
  * updatable model state
19465
20013
  * @interface
19466
20014
  */
19467
- type UpdateModelState = Omit<InitializeModelState$2, 'url'> & {
20015
+ type UpdateModelState = Omit<InitializeModelState$2, 'url' | 'clippingEnabled'> & {
19468
20016
  position?: Position$2;
19469
20017
  };
19470
20018
  declare class ModelComponent {
@@ -19491,8 +20039,9 @@ declare class ModelComponent {
19491
20039
  feature: Feature<Point, ModelProperties>;
19492
20040
  instanceIndex?: number;
19493
20041
  /**
19494
- * If true, this model uses a regular mesh instead of instancing.
19495
- * Set at creation time based on visibleThroughGeometry or EXPERIMENTAL_clippingEnabled.
20042
+ * If true, this model draws on its own container instead of the shared instanced one: cloned meshes for
20043
+ * `visibleThroughGeometry` or `clippingEnabled`, or batches for `EXPERIMENTAL_batchedDraw` (ADR 0016).
20044
+ * Set at creation time.
19496
20045
  * Cannot be changed at runtime.
19497
20046
  */
19498
20047
  instancingDisabled: boolean;
@@ -20451,9 +21000,9 @@ type ComponentTypeMap$1 = {
20451
21000
  clippingPlane: ClippingPlaneComponent;
20452
21001
  slope: SlopeComponent;
20453
21002
  };
20454
- declare class Geometry3D<M$1 extends MeshComponentTypes = MeshComponent, S extends StyleComponent | Text3DStyleComponent | ModelStyleComponnet = StyleComponent, I extends InteractionComponent = InteractionComponent, T$1 extends MappedComponentType<M$1> = MappedComponentType<M$1>, O extends OutlineComponent | undefined = OutlineComponent | undefined, F$1 extends FocusableComponent | undefined = FocusableComponent | undefined, TX extends TextureComponent | undefined = TextureComponent | undefined, B extends BorderComponent | undefined = BorderComponent | undefined, C extends ClippingPlaneComponent | undefined = ClippingPlaneComponent | undefined, Sl extends SlopeComponent | undefined = SlopeComponent | undefined> {
21003
+ declare class Geometry3D<M$1 extends MeshComponentTypes = MeshComponent, S extends StyleComponent | Text3DStyleComponent | ModelStyleComponnet = StyleComponent, I$1 extends InteractionComponent = InteractionComponent, T$1 extends MappedComponentType<M$1> = MappedComponentType<M$1>, O extends OutlineComponent | undefined = OutlineComponent | undefined, F$1 extends FocusableComponent | undefined = FocusableComponent | undefined, TX extends TextureComponent | undefined = TextureComponent | undefined, B extends BorderComponent | undefined = BorderComponent | undefined, C extends ClippingPlaneComponent | undefined = ClippingPlaneComponent | undefined, Sl extends SlopeComponent | undefined = SlopeComponent | undefined> {
20455
21004
  id: string | number;
20456
- components: [M$1, S, I?, O?, F$1?, B?, TX?, C?, Sl?];
21005
+ components: [M$1, S, I$1?, O?, F$1?, B?, TX?, C?, Sl?];
20457
21006
  getComponent<K$1 extends keyof ComponentTypeMap$1>(type: K$1): ComponentTypeMap$1[K$1] | undefined;
20458
21007
  /**
20459
21008
  * Parent geometry group ID
@@ -20867,6 +21416,12 @@ declare class InteractionSystem extends PubSub<InteractionEvents> {
20867
21416
  private onPointerMove;
20868
21417
  tapsControl: TapsController;
20869
21418
  getThreeDIntersectsFromXY(point: Vector2): Intersection<Object3D<Object3DEventMap>>[];
21419
+ /**
21420
+ * A hit on a model that nothing can interact with. `_hitBoxes` already leaves such models out, so
21421
+ * this only matches an instance of a shared batch that stays raycastable because another model on it
21422
+ * is interactive — the pointer goes through that instance to whatever is behind it.
21423
+ */
21424
+ private isNonInteractiveModel;
20870
21425
  getGroupContainerIntersectsFromXY(point: Vector2): any;
20871
21426
  private onPointerDown;
20872
21427
  private clickTimeout;
@@ -22838,6 +23393,15 @@ declare class ClippingPlaneSystem {
22838
23393
  dirty: boolean;
22839
23394
  constructor(rendererState: RendererState);
22840
23395
  update(): void;
23396
+ /**
23397
+ * Builds the clipped rendering of a model: the clipped children, the hole-fill cap and the
23398
+ * stencil counting passes.
23399
+ * @param meshComponent - The model's mesh component
23400
+ * @param clippingPlaneComponent - The model's clipping plane component
23401
+ * @param receiveShadow - Whether the model receives shadows (`ModelStyle.receiveShadow`). The cap is
23402
+ * the model's visible cut surface, so it is patched as a receiver only when the model is one; a cap
23403
+ * built patched for a model that opted out would show a shadowed cut surface.
23404
+ */
22841
23405
  private process;
22842
23406
  /**
22843
23407
  * Creates the stencil counting passes that mark cross-section pixels.
@@ -23028,6 +23592,8 @@ declare class ShadowsSystem {
23028
23592
  private rangeNear;
23029
23593
  private rangeFar;
23030
23594
  private readonly scratchBox;
23595
+ /** Uniforms shared by every patched model material (see `receiver-patch.ts`). */
23596
+ private readonly receiverContext;
23031
23597
  /** Reused by `groundShadowFitHalfSize` for the light camera's two view-plane axes. */
23032
23598
  private readonly scratchRight;
23033
23599
  private readonly scratchUp;
@@ -23055,8 +23621,6 @@ declare class ShadowsSystem {
23055
23621
  private readonly shadowResolutionSizes;
23056
23622
  private readonly shadowResolutionZoomThresholds;
23057
23623
  constructor(state: RendererState, rendererService: Renderer, cameraOrbit: Object3D, options?: ShadowsOptions$1, ladder?: ShadowLadder);
23058
- /** Depth-only material for the shadow pass: receivers sample the depth attachment, never colour. */
23059
- private static createDepthMaterial;
23060
23624
  /**
23061
23625
  * Creates a WebGLRenderTarget for shadow mapping with the specified size
23062
23626
  * @param size - The width and height of the render target in pixels
@@ -23248,6 +23812,8 @@ declare class ShadowsSystem {
23248
23812
  */
23249
23813
  private recreateDebugGrid;
23250
23814
  private transparentGeometryVisibilityStateMap;
23815
+ /** Reused by `renderShadowMap`: each swapped caster's own material, restored after the pass. */
23816
+ private readonly swappedMaterials;
23251
23817
  private renderShadowMap;
23252
23818
  /**
23253
23819
  * Depth-comparison tolerance for the receivers, in the shader's normalised light-depth units.
@@ -23362,6 +23928,8 @@ declare class ModelSystem extends PubSub<{
23362
23928
  * @param containerId - The container this batch belongs to
23363
23929
  * @param opacity - The opacity for this batch (1 = default)
23364
23930
  * @param maxCount - Maximum instance capacity
23931
+ * @param receiveShadow - Whether the batch's materials receive shadows
23932
+ * @param castShadow - Whether the batch's meshes are on the shadow-caster layer
23365
23933
  * @returns The created batch entry
23366
23934
  */
23367
23935
  private createBatch;
@@ -23381,6 +23949,23 @@ declare class ModelSystem extends PubSub<{
23381
23949
  * @returns The batch entry or undefined
23382
23950
  */
23383
23951
  private getBatchForMesh;
23952
+ /**
23953
+ * The shadow receiver context a model with this receive setting should be built with.
23954
+ * @param receiveShadow - Whether the model (or batch) opted into receiving
23955
+ * @returns The context to patch with, or undefined when shadows are off or the model opts out
23956
+ */
23957
+ private shadowReceiverFor;
23958
+ /**
23959
+ * The batching key for one of the two per-model shadow settings (`receiveShadow`, `castShadow`).
23960
+ *
23961
+ * While shadows are off for the map there is nothing to receive and nothing to cast into, so both
23962
+ * settings are no-ops: every model keys `true` and the system batches exactly as it did before these
23963
+ * options existed — one shared, unpatched batch per URL and container. That is what keeps a shadows-off
23964
+ * scene from splitting into per-model batches it never had before, and it makes the "shadows off" case
23965
+ * of the divergence checks fall out of the key comparison instead of needing its own guard.
23966
+ * @param enabled - The model's own setting
23967
+ */
23968
+ private shadowBatchKey;
23384
23969
  /**
23385
23970
  * Updates the debug UI with current batch information
23386
23971
  */
@@ -23428,6 +24013,25 @@ declare class ModelSystem extends PubSub<{
23428
24013
  * @returns The loaded GLTF data
23429
24014
  */
23430
24015
  private getOrLoadGLTF;
24016
+ /**
24017
+ * Fills an own container with one cloned mesh per GLB piece — the default for a model that draws on its own.
24018
+ * @param meshContainer - The model's own container.
24019
+ * @param gltf - The loaded GLTF data.
24020
+ * @param entityId - The model entity, recorded on each mesh for picking.
24021
+ * @param shadowReceiver - Live receiver context when the model receives shadows.
24022
+ */
24023
+ private addClonedPieces;
24024
+ /**
24025
+ * Fills an own container with the model's pieces as batches — one per material and attribute layout — for a
24026
+ * model on `EXPERIMENTAL_batchedDraw`, clipped or not. The GLTF scene is never cloned on this path: the batches read
24027
+ * the pieces straight from it.
24028
+ * @param meshContainer - The model's own container.
24029
+ * @param gltf - The loaded GLTF data.
24030
+ * @param entityId - The model entity, recorded on each batch for picking and the clipped-region filter.
24031
+ * @param shadowReceiver - Live receiver context when the model receives shadows.
24032
+ * @param keepPlacementSource - The model is clipped, so its hull will read the batches' pieces.
24033
+ */
24034
+ private addBatchedPieces;
23431
24035
  /**
23432
24036
  * Creates a non-instanced model (regular mesh) for entities with visibleThroughGeometry or clippingEnabled
23433
24037
  * @param entity - The model entity
@@ -23455,7 +24059,7 @@ declare class ModelSystem extends PubSub<{
23455
24059
  * Creates a model entity from a GeoJSON feature
23456
24060
  * @param id - The unique identifier for the model
23457
24061
  * @param feature - The GeoJSON Point feature with model properties
23458
- * @param style - Optional model style overrides (includes EXPERIMENTAL_clippingEnabled)
24062
+ * @param style - Optional model style overrides (includes clippingEnabled)
23459
24063
  * @returns The created model geometry entity
23460
24064
  */
23461
24065
  createModelFromFeature(id: string | number, feature: Feature<Point, ModelProperties>, style?: Partial<InitializeModelState$2>): ModelGeometry3D;
@@ -23478,7 +24082,8 @@ declare class ModelSystem extends PubSub<{
23478
24082
  */
23479
24083
  private rebatchDetachedInstances;
23480
24084
  /**
23481
- * Creates a shared InstancedMesh batch for multiple detached entities with the same opacity
24085
+ * Creates a shared InstancedMesh batch for multiple detached entities with the same opacity,
24086
+ * receive and cast setting
23482
24087
  */
23483
24088
  private createSharedBatchForDetached;
23484
24089
  /**
@@ -24271,6 +24876,48 @@ declare class Geometry2D {
24271
24876
  //#region ../renderer-three/src/types/geometry.d.ts
24272
24877
  type Position$2 = [lon: number, lat: number] | [lon: number, lat: number, alt: number];
24273
24878
  //#endregion
24879
+ //#region ../renderer-three/src/systems/shadows/receiver-patch.d.ts
24880
+ /**
24881
+ * The shadow-receiver uniforms shared by every patched (non-SDK) material, e.g. glTF model materials.
24882
+ *
24883
+ * One object, owned by `ShadowsSystem`: every patched material's compiled program binds these exact `IUniform`
24884
+ * instances, so a shadow-map update writes each value once (`setShadowUniformValues`) and every model sees it —
24885
+ * no per-material or per-model work, however many models are loaded.
24886
+ */
24887
+ type ShadowReceiverUniforms = {
24888
+ shadowMap: IUniform;
24889
+ lightMatrix: IUniform<Matrix4>;
24890
+ cameraNear: IUniform<number>;
24891
+ cameraFar: IUniform<number>;
24892
+ shadowBias: IUniform<number>;
24893
+ selfShadowThreshold: IUniform<number>;
24894
+ shadowOpacity: IUniform<number>;
24895
+ baseColor: IUniform;
24896
+ shadowMapSize: IUniform<number>;
24897
+ pcfSpread: IUniform<number>;
24898
+ sunDir: IUniform<Vector3>;
24899
+ normalBias: IUniform<number>;
24900
+ shadowEnabled: IUniform<boolean>;
24901
+ depthRangeMax: IUniform<number>;
24902
+ };
24903
+ /**
24904
+ * The live shadow system's hooks for non-SDK geometry (models). Published on `RendererState.shadowReceiver` while
24905
+ * shadows are enabled; `undefined` otherwise.
24906
+ */
24907
+ type ShadowReceiverContext = {
24908
+ uniforms: ShadowReceiverUniforms;
24909
+ /** Compile-time PCF sample count (`#define PCF_SAMPLES`). Fixed per session; part of the program key. */
24910
+ pcfSamples: number;
24911
+ /**
24912
+ * Casters that must render the depth pass with their own `customDepthMaterial` (clipped models), because the
24913
+ * shared override material cannot know their clipping planes. Registered by the clipping system; entries that
24914
+ * have left the scene are pruned by the shadow pass.
24915
+ */
24916
+ customDepthCasters: Set<Mesh>;
24917
+ /** Invalidates the shadow map (and caster bounds), e.g. when a clipping plane moves. */
24918
+ castersChanged: () => void;
24919
+ };
24920
+ //#endregion
24274
24921
  //#region ../renderer-three/src/types/options.d.ts
24275
24922
  /**
24276
24923
  * Selects which environment map is used for image-based lighting.
@@ -24678,13 +25325,18 @@ type ModelProperties = {
24678
25325
  id?: string | number;
24679
25326
  verticalOffset?: number;
24680
25327
  /**
24681
- * When true, enables clipping plane functionality for this model.
24682
- * This cannot be changed at runtime.
25328
+ * Whether the model is cut away at its clipping plane, exposing the interior.
25329
+ *
25330
+ * Use this for models that represent a **building**: their walls and roof are a closed
25331
+ * shell over the venue, and clipping removes everything above `clippingPlaneZOffset` so
25332
+ * the floors inside the model stay visible — the familiar cut-away view of a building.
25333
+ *
25334
+ * Clipping is decided when the model is added: setting it later has no effect.
24683
25335
  *
24684
25336
  * Note: This will de-optimize the model by disabling instancing.
24685
25337
  * @default false
24686
25338
  */
24687
- EXPERIMENTAL_clippingEnabled?: boolean;
25339
+ clippingEnabled?: boolean;
24688
25340
  /**
24689
25341
  * When true at creation time, the model will be visible through other geometry.
24690
25342
  * This value at creation time determines instancing behavior and cannot be changed.
@@ -24990,6 +25642,11 @@ type RendererState = {
24990
25642
  * @defaultValue [0, 1]
24991
25643
  */
24992
25644
  depthRangeFor3D: [number, number];
25645
+ /**
25646
+ * Shared shadow-receiver uniforms for patched non-SDK materials (glTF models). Set by `ShadowsSystem` when shadows
25647
+ * are enabled; `undefined` otherwise, which makes model material patching a no-op.
25648
+ */
25649
+ shadowReceiver?: ShadowReceiverContext;
24993
25650
  /**
24994
25651
  * Options for configuring outline rendering
24995
25652
  */
@@ -25181,6 +25838,23 @@ declare const MAPPEDIN_COLORS: {
25181
25838
  lightTeal: string;
25182
25839
  };
25183
25840
  //#endregion
25841
+ //#region src/enterprise-mode.d.ts
25842
+ /**
25843
+ * @internal
25844
+ * @hidden
25845
+ *
25846
+ * If true, the SDK will create enterprise locations in addition to location profiles. Use this to allow
25847
+ * legacy applications to load platform maps.
25848
+ */
25849
+ declare function forceEnterpriseLocations(value: boolean): void;
25850
+ /**
25851
+ * @hidden
25852
+ * @internal
25853
+ *
25854
+ * See {@link forceEnterpriseLocations}
25855
+ */
25856
+ declare function shouldForceEnterpriseLocations(): boolean;
25857
+ //#endregion
25184
25858
  //#region src/utils/convert-renderer-core-options.d.ts
25185
25859
  /**
25186
25860
  * Converts TShow3DMapOptions to RendererCoreOptions format.
@@ -25599,21 +26273,6 @@ declare const hydrateMapDataFromMVF: (mvf: TMVF, options?: TGetMapDataWithCreden
25599
26273
  * @deprecated Use {@link getMapData} and enterprise will be inferred from key/secret.
25600
26274
  */
25601
26275
  declare function setUseEnterpriseAPI(value: boolean): void;
25602
- /**
25603
- * @internal
25604
- * @hidden
25605
- *
25606
- * If true, the SDK will create enterprise locations in addition to location profiles. Use this to allow
25607
- * legacy applications to load platform maps.
25608
- */
25609
- declare function forceEnterpriseLocations(value: boolean): void;
25610
- /**
25611
- * @hidden
25612
- * @internal
25613
- *
25614
- * See {@link forceEnterpriseLocations}
25615
- */
25616
- declare function shouldForceEnterpriseLocations(): boolean;
25617
26276
  /**
25618
26277
  * Asynchronously retrieves map data ({@link MapData}) based on user-provided options.
25619
26278
  *
@@ -25708,4 +26367,4 @@ declare const getVersion: () => string | undefined;
25708
26367
  */
25709
26368
  declare const show3dMapGeojson: (el: HTMLElement, mapData: MapData, options?: TShow3DMapOptions) => Promise<MapView>;
25710
26369
  //#endregion
25711
- export { ACTION_TYPE, ANIMATION_TWEENS, type AddText3DOptions, type AddText3DPointOptions, type Analytics, Annotation, Area, type AutoElements, BBox, BEARING_TYPE, CONNECTION_TYPE, type Camera, type CameraBounds, type CameraTransform, type CaptureEventsPayloadMap, type ColorString, Connection, Coordinate, DOORS, type Debug, type DebugState, DetailedMapData, Directions, Door, E_SDK_LOG_LEVEL, type EasingCurve, EnterpriseCategory, EnterpriseLocation, EnterpriseVenue, type EnvMapOptions, type Environment, type Exporter, Facade, Feature, FeatureCollection, Floor, FloorStack, type FootprintConfig, type Fuzzy, GeoJSON$1 as GeoJSON, GeoJsonGeometryTypes, GeoJsonObject, GeoJsonProperties, GeoJsonTypes, Geometry, GeometryCollection, GeometryObject, type GlobalState, Hyperlink, type IAnchorable, type IFocusable, type IGeoJSONData, type INavigatable, type ISystemPlugin, type Image3D, type Image3DView, ImageMetaData, type InitializeModelState, type InitializeText3DState, type InsetPadding, type InsetPaddingOption, type InterpolateOn, type Interpolation, type Label, type LabelAppearance, type LabelTextPlacement, type LabelTextWrap, type Labels, LineString, type LineStyle, LocationCategory, LocationProfile, type LocationSocial, type LocationState, MAPPEDIN_COLORS, type MapData, type MapDataElements, type MapElementToGetRenderedState, type MapElementToGetState, type MapElementToUpdateState, type MapElementsWithState, type MapFeatureOfType, MapObject, MapView, type MapViewElements, type MapViewState, type MappedinError, type MappedinRenderError, type Marker, type Markers, type MatchInfo, type Model, type Models, type MultiFloorViewEffectState, MultiLineString, MultiPoint, MultiPolygon, type Navigation, type NavigationState, Node, type OpeningHours, type OperationHours, type Outdoor, type OutlinesOptions, type PaintStyle, type Path, type PathSegment$1 as PathSegment, type PathWidth, type Paths, type PixelWidth, type Places, Point, PointOfInterest, Polygon, type Position, type Prefix$1 as Prefix, type PubSub, type Query, type RendererCoreOptions, type Search, type SearchOptions, type SearchResult, type SearchResultEnterpriseCategory, type SearchResultEnterpriseLocations, type SearchResultItem, type SearchResultPlaces, type SetFloorHandler, type Shading, type ShadowsOptions, type Shape, type Shapes, type SiblingGroup, Space, type Style, type SuggestOptions, type Suggestion, type TActionType, type TAddImageOptions, type TAddLabelOptions, type TAddMarkerOptions, type TAddModel, type TAddModelOptions, type TAddPathOptions, type TAddText3DAnchorableOptions, type TAddText3DOptions, type TAnalyticsUpdateState, type TAnimateStateResult, type TAnimationOptions, type TAntialiasingOptions, type TBearingType, type TCameraAnimationOptions, type TCameraInteractionsSetOptions, type TCameraTarget, type TCancellablePromise, type TClickPayload, type TCollisionRankingTier, type TConnectionPathOptions, type TConnectionType, type TCoordinateParams, type TCreateMarker, type TDashOptions, type TDirectionInstruction, type TDirectionInstructionAction, type TDirectionZone, type TDoorsState, type TDoorsUpdateState, type TEasingFunction, type TEventPayload, type TEvents, type TExperimentalDashOptions, type TFacadeState, type TFacadeUpdateState, type TFindNearestOptions, type TFindNearestResult, type TFindNearestTravelOptions, type TFindPreferredLanguageInVenueOptions, type TFloorAltitudeData, type TFloorChangePayload, type TFloorChangeReason, type TFloorState, type TFloorUpdateState, type TFocusOnOptions, type TFocusTarget, type TGeometryState, type TGeometryUpdateState, type TGetDirectionsOptions, type TGetMapDataOptions, type TGetMapDataSharedOptions, type TGetMapDataWithAccessTokenOptions, type TGetMapDataWithCredentialsOptions, type TGetState, type THoverPayload, type THydrateMapDataBundle, type TImage3DState as TImageState, type TImage3DUpdateState as TImageUpdateState, type TLabelState, type TLabelUpdateState, type TLogLevelName, type TLongPressPayload, type TMVF, type TMVFLineStringStyle, type TMVFPointStyle, type TMVFPolygonStyle, type TMVFStyle, type TMVFStyleCollection, type TMapDataEvents, type TMapDataObjectTypes, type TMapFeatureTypes, type TMapViewObjectTypes, type TMarkerPlacement, type TMarkerState, type TMarkerUpdateState, type TModelState, type TModelUpdateState, type TMultiFloorViewOptions, type TNavigationMarker, type TNavigationMarkerType, type TNavigationOptions, type TNavigationPathOptions, type TNavigationTarget, type TOutsideThresholdPathStyle, type TPathSectionHighlightOptions, type TPathState, type TPathUpdateState, type TQueriables, type TQueryAtResult, type RendererState as TRendererState, type TSearchOptions, type TSetFloorOptions, type TShapeState, type TShapeUpdateState, type TShow3DMapOptions, type TSpaceType, type TStateChangedInternalPayload, type TTakeScreenshotOptions, type TTetheredOptions as TTetherOptions, type TText3DState, type TText3DUpdateState, type TTrackCoordinateOptions, type TTravelledOptions, type TUpdateState, type TWallsState, type TWallsUpdateState, TWatermarkOptions, type Text3D, type Text3DView, type UpdateGlobalState, type VisibilityState, WALLS, type WithState, MAPPEDIN_LAYER_ID as __INTERNAL__MAPPEDIN_LAYER_ID, MapLibreOverlay as __INTERNAL__MapLibreOverlay, Core as __INTERNAL__RendererCore, convertToRendererCoreOptions as __INTERNAL__convertToRendererCoreOptions, __setWatermarkOnClickFn, checkWorkerUrls, disableText3DWorker, enableTestMode, findPreferredLanguageInVenue, forceEnterpriseLocations, getMapData, getMapDataEnterprise, getMultiFloorState, getVersion, hydrateMapData, hydrateMapDataFromMVF, parseLogLevel, parseMVFv2 as parseMVF, preloadFont, setHeadlessViewport, setLoggerLevel, setUseEnterpriseAPI, setWorkersUrl, shouldForceEnterpriseLocations, show3dMap, show3dMapGeojson, unzipAndParseMVFv2, unzipMVFv2 as unzipMVF };
26370
+ export { ACTION_TYPE, ANIMATION_TWEENS, type AddText3DOptions, type AddText3DPointOptions, type Analytics, Annotation, Area, type AutoElements, BBox, BEARING_TYPE, CONNECTION_TYPE, type Camera, type CameraBounds, type CameraTransform, type CaptureEventsPayloadMap, type ColorString, Connection, Coordinate, DOORS, type Debug, type DebugState, DetailedMapData, Directions, Door, E_SDK_LOG_LEVEL, type EasingCurve, EnterpriseCategory, EnterpriseLocation, EnterpriseVenue, type EnvMapOptions, type Environment, type Exporter, Facade, Feature, FeatureCollection, Floor, FloorStack, type FootprintConfig, type Fuzzy, GeoJSON$1 as GeoJSON, GeoJsonGeometryTypes, GeoJsonObject, GeoJsonProperties, GeoJsonTypes, Geometry, GeometryCollection, GeometryObject, type GlobalState, Hyperlink, type IAnchorable, type IFocusable, type IGeoJSONData, type INavigatable, type ISystemPlugin, type Image3D, type Image3DView, ImageMetaData, type InitializeModelState, type InitializeText3DState, type InsetPadding, type InsetPaddingOption, type InterpolateOn, type Interpolation, type Label, type LabelAppearance, type LabelTextPlacement, type LabelTextWrap, type Labels, LineString, type LineStyle, LocationCategory, LocationProfile, type LocationSocial, type LocationState, MAPPEDIN_COLORS, type MapData, type MapDataElements, type MapElementToGetRenderedState, type MapElementToGetState, type MapElementToUpdateState, type MapElementsWithState, type MapFeatureOfType, MapObject, MapView, type MapViewElements, type MapViewState, type MappedinError, type MappedinRenderError, type Marker, type Markers, type MatchInfo, type Model, type Models, type MultiFloorViewEffectState, MultiLineString, MultiPoint, MultiPolygon, type Navigation, type NavigationState, Node, type OpeningHours, type OperationHours, type Outdoor, type OutlinesOptions, type PaintStyle, type Path, type PathSegment$1 as PathSegment, type PathWidth, type Paths, type PixelWidth, type Places, Point, PointOfInterest, Polygon, type Position, type Prefix$1 as Prefix, type PubSub, type Query, type RendererCoreOptions, type Search, type SearchOptions, type SearchResult, type SearchResultEnterpriseCategory, type SearchResultEnterpriseLocations, type SearchResultItem, type SearchResultPlaces, type SetFloorHandler, type Shading, type ShadowsOptions, type Shape$1 as Shape, type Shapes, type SiblingGroup, Space, type Style, type SuggestOptions, type Suggestion, type TActionType, type TAddImageOptions, type TAddLabelOptions, type TAddMarkerOptions, type TAddModel, type TAddModelOptions, type TAddPathOptions, type TAddText3DAnchorableOptions, type TAddText3DOptions, type TAnalyticsUpdateState, type TAnimateStateResult, type TAnimationOptions, type TAntialiasingOptions, type TBearingType, type TCameraAnimationOptions, type TCameraInteractionsSetOptions, type TCameraTarget, type TCancellablePromise, type TClickPayload, type TCollisionRankingTier, type TConnectionPathOptions, type TConnectionType, type TCoordinateParams, type TCreateMarker, type TDashOptions, type TDirectionInstruction, type TDirectionInstructionAction, type TDirectionZone, type TDoorsState, type TDoorsUpdateState, type TEasingFunction, type TEventPayload, type TEvents, type TExperimentalDashOptions, type TFacadeState, type TFacadeUpdateState, type TFindNearestOptions, type TFindNearestResult, type TFindNearestTravelOptions, type TFindPreferredLanguageInVenueOptions, type TFloorAltitudeData, type TFloorChangePayload, type TFloorChangeReason, type TFloorState, type TFloorUpdateState, type TFocusOnOptions, type TFocusTarget, type TGeometryState, type TGeometryUpdateState, type TGetDirectionsOptions, type TGetMapDataOptions, type TGetMapDataSharedOptions, type TGetMapDataWithAccessTokenOptions, type TGetMapDataWithCredentialsOptions, type TGetState, type THoverPayload, type THydrateMapDataBundle, type TImage3DState as TImageState, type TImage3DUpdateState as TImageUpdateState, type TLabelState, type TLabelUpdateState, type TLogLevelName, type TLongPressPayload, type TMVF, type TMVFLineStringStyle, type TMVFPointStyle, type TMVFPolygonStyle, type TMVFStyle, type TMVFStyleCollection, type TMapDataEvents, type TMapDataObjectTypes, type TMapFeatureTypes, type TMapViewObjectTypes, type TMarkerPlacement, type TMarkerState, type TMarkerUpdateState, type TModelState, type TModelUpdateState, type TModelsAllOptions, type TMultiFloorViewOptions, type TNavigationMarker, type TNavigationMarkerType, type TNavigationOptions, type TNavigationPathOptions, type TNavigationTarget, type TOutsideThresholdPathStyle, type TPathSectionHighlightOptions, type TPathState, type TPathUpdateState, type TQueriables, type TQueryAtResult, type RendererState as TRendererState, type TSearchJoinedWordsOptions, type TSearchOptions, type TSetFloorOptions, type TShapeState, type TShapeUpdateState, type TShow3DMapOptions, type TSpaceType, type TStateChangedInternalPayload, type TTakeScreenshotOptions, type TTetheredOptions as TTetherOptions, type TText3DState, type TText3DUpdateState, type TTrackCoordinateOptions, type TTravelledOptions, type TUpdateState, type TWallsState, type TWallsUpdateState, TWatermarkOptions, type Text3D, type Text3DView, type UpdateGlobalState, type VisibilityState, WALLS, type WithState, MAPPEDIN_LAYER_ID as __INTERNAL__MAPPEDIN_LAYER_ID, MapLibreOverlay as __INTERNAL__MapLibreOverlay, Core as __INTERNAL__RendererCore, convertToRendererCoreOptions as __INTERNAL__convertToRendererCoreOptions, __setWatermarkOnClickFn, checkWorkerUrls, disableText3DWorker, enableTestMode, findPreferredLanguageInVenue, forceEnterpriseLocations, getMapData, getMapDataEnterprise, getMultiFloorState, getVersion, hydrateMapData, hydrateMapDataFromMVF, parseLogLevel, parseMVFv2 as parseMVF, preloadFont, setHeadlessViewport, setLoggerLevel, setUseEnterpriseAPI, setWorkersUrl, shouldForceEnterpriseLocations, show3dMap, show3dMapGeojson, unzipAndParseMVFv2, unzipMVFv2 as unzipMVF };