@mappedin/mappedin-js 6.31.0 → 6.32.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";
@@ -4752,8 +4917,7 @@ type DecorationStyle = {
4752
4917
  };
4753
4918
  /**
4754
4919
  * 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).
4920
+ * any style bevel). Built from the bundle's `geometry-effects.json` ({@link bevelFromGeometryEffects}).
4757
4921
  */
4758
4922
  type DecorationBevel = {
4759
4923
  enabled?: boolean;
@@ -4776,8 +4940,7 @@ interface DecorationRecord {
4776
4940
  /** Every texture anchored to the geometry, in source order (e.g. one per face). */
4777
4941
  textures?: EnterpriseTexture[];
4778
4942
  /**
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}).
4943
+ * The geometry's bevel, from the bundle's `geometry-effects.json` effects ({@link bevelFromGeometryEffects}).
4781
4944
  * The renderer reads it off the space or object feature (`render/spaces.ts`, `render/objects.ts`).
4782
4945
  */
4783
4946
  bevel?: DecorationBevel;
@@ -8925,6 +9088,7 @@ declare class Marker implements IFocusable, INavigatable {
8925
9088
  * 3D Models can be added to a {@link Coordinate}, {@link Door} or {@link Space}.
8926
9089
  * 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
9090
  * This allows the SDK to re-use the same instance of the model to reduce RAM usage and rendering time, resulting in better performance.
9091
+ * A model added with `EXPERIMENTAL_batchedDraw` is never instanced: each placement draws its own copy.
8928
9092
  *
8929
9093
  * Models are added using {@link Models.add}.
8930
9094
  *
@@ -8933,7 +9097,11 @@ declare class Marker implements IFocusable, INavigatable {
8933
9097
  declare class Model implements INavigatable {
8934
9098
  #private;
8935
9099
  /**
8936
- * The model's id
9100
+ * The model's id.
9101
+ *
9102
+ * When it was created with the `id` option — as {@link Models.all} does with the venue's
9103
+ * model id — this is that id, so the model can be matched back to its map data entry.
9104
+ * Otherwise it is the renderer's id for the model.
8937
9105
  */
8938
9106
  id: string;
8939
9107
  /**
@@ -9981,7 +10149,7 @@ declare class GeojsonApiMapObject extends PubSub<{
9981
10149
  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
10150
  floorId?: string;
9983
10151
  }) => string;
9984
- remove: (customGeometry: Shape) => string;
10152
+ remove: (customGeometry: Shape$1) => string;
9985
10153
  };
9986
10154
  Text3D: {
9987
10155
  label: (target: Space, content?: string, options?: TAddText3DOptions) => Text3DInfo | undefined;
@@ -10114,7 +10282,7 @@ declare class Shapes {
10114
10282
  /**
10115
10283
  * @internal
10116
10284
  */
10117
- getById(id: string): Shape | undefined;
10285
+ getById(id: string): Shape$1 | undefined;
10118
10286
  /**
10119
10287
  * Adds a custom GeoJSON geometry ({@link Shape}) to the map.
10120
10288
  *
@@ -10168,14 +10336,14 @@ declare class Shapes {
10168
10336
  *
10169
10337
  * @see [Shapes Guide](https://developer.mappedin.com/web-sdk/shapes)
10170
10338
  */
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;
10339
+ 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
10340
  /**
10173
10341
  * Removes a specific shape ({@link Shape}) from the map.
10174
10342
  * @param shape The shape to be removed.
10175
10343
  * @example
10176
10344
  * mapView.Shapes.remove(shape);
10177
10345
  */
10178
- remove(shape: Shape): void;
10346
+ remove(shape: Shape$1): void;
10179
10347
  /**
10180
10348
  * Removes all Shapes ({@link Shape}) from the map.
10181
10349
  *
@@ -12462,7 +12630,7 @@ declare class Camera {
12462
12630
  /**
12463
12631
  * The camera's current pan mode.
12464
12632
  */
12465
- get panMode(): "default" | "elevation";
12633
+ get panMode(): "elevation" | "default";
12466
12634
  /**
12467
12635
  * Set the camera's pan mode. 'elevation' moves the camera up and down, while 'default' allows the camera to pan in all directions.
12468
12636
  * @experimental
@@ -13089,6 +13257,12 @@ type CurrentMapGetter = () => GeojsonApiMapObject | undefined;
13089
13257
  //#endregion
13090
13258
  //#region src/api-geojson/models.d.ts
13091
13259
  type MapDataInternalGetter = () => MapDataInternal | undefined;
13260
+ /** A model added through {@link Models}, keyed by its public id and by the renderer's entity id. */
13261
+ type ModelRecord = {
13262
+ model: Model;
13263
+ entityId: string;
13264
+ groupId: string;
13265
+ };
13092
13266
  /**
13093
13267
  * ## 3D Models in Mappedin JS
13094
13268
  *
@@ -13126,8 +13300,57 @@ type MapDataInternalGetter = () => MapDataInternal | undefined;
13126
13300
  *
13127
13301
  * > **Best Practice:** Use self-hosted GLB files for smaller download size and better caching. Use direct imports for convenience and rapid prototyping.
13128
13302
  *
13303
+ * ### Model Clipping (cut-aways)
13304
+ *
13305
+ * A model that represents a **building** is a closed shell: it sits over the venue and its
13306
+ * walls and roof hide the floors inside it. Pass `clippingEnabled: true` to
13307
+ * {@link TAddModelOptions} to cut the model away with a horizontal plane, so everything below
13308
+ * the plane is drawn and everything above it is removed — the familiar cut-away view of a
13309
+ * building, looking down into the floor the user is on:
13310
+ *
13311
+ * ```ts
13312
+ * const building = mapView.Models.add(mapData.mapCenter, buildingUrl, {
13313
+ * clippingEnabled: true,
13314
+ * });
13315
+ * ```
13316
+ *
13317
+ * - `clippingEnabled` is the switch. It is decided when the model is added — setting it
13318
+ * later has no effect — and it de-optimizes the model by disabling instancing, so keep
13319
+ * it to the models that actually need it.
13320
+ * - `clippingPlaneZOffset` is the height of the cut, in meters on the map's vertical axis —
13321
+ * the same scale the floors use, so `getState(floor).altitude` can be used directly. It
13322
+ * defaults to `Infinity`, which puts the plane above everything and so cuts nothing: set a
13323
+ * finite height, and move it at runtime with
13324
+ * `mapView.updateState(model, { clippingPlaneZOffset })`.
13325
+ * - `clippingPlaneTopColor` and `clippingPlaneTopVisible` style the exposed cut face.
13326
+ *
13327
+ * Follow the floor the user is on by reading `getState(floor).altitude` — the floor's visual
13328
+ * height in the scene, which already includes the floor spacing of a multi-floor view — and
13329
+ * using it as the cut height:
13330
+ *
13331
+ * ```ts
13332
+ * function clipToCurrentFloor() {
13333
+ * const altitude = mapView.getState(mapView.currentFloor)?.altitude ?? 0;
13334
+ *
13335
+ * mapView.updateState(building, {
13336
+ * clippingPlaneZOffset: altitude + 0.05, // a hair above the floor, not through it
13337
+ * clippingPlaneTopColor: '#8899aa',
13338
+ * });
13339
+ * }
13340
+ *
13341
+ * clipToCurrentFloor();
13342
+ * mapView.on('floor-change', clipToCurrentFloor);
13343
+ * ```
13344
+ *
13345
+ * Venue models added with {@link Models.all} enable clipping automatically when the venue
13346
+ * marks them as manifolded.
13347
+ *
13348
+ * > **Deprecated:** `EXPERIMENTAL_clippingEnabled` still works and logs a warning. It is
13349
+ * > the pre-release name of `clippingEnabled` — rename it.
13350
+ *
13129
13351
  * ### Performance Tips
13130
13352
  * - Avoid using models with nested meshes.
13353
+ * - Clipping disables instancing for the model, so enable it only on the models that need it.
13131
13354
  *
13132
13355
  * ### More Information
13133
13356
  * - [3D Models Guide](https://developer.mappedin.com/web-sdk/3d-models)
@@ -13154,11 +13377,11 @@ declare class Models {
13154
13377
  /**
13155
13378
  * @internal
13156
13379
  */
13157
- getById(id: string): {
13158
- model: Model;
13159
- entityId: string;
13160
- groupId: string;
13161
- } | undefined;
13380
+ getById(id: string): ModelRecord | undefined;
13381
+ /**
13382
+ * @internal
13383
+ */
13384
+ getByEntityId(entityId: string): ModelRecord | undefined;
13162
13385
  /**
13163
13386
  * Adds a 3D model to the map at the specified coordinate.
13164
13387
  *
@@ -13188,6 +13411,22 @@ declare class Models {
13188
13411
  * });
13189
13412
  * ```
13190
13413
  *
13414
+ * @example Add a building model and cut it open at the floor the user is on
13415
+ * ```ts
13416
+ * const building = mapView.Models.add(mapData.mapCenter, buildingUrl, {
13417
+ * clippingEnabled: true,
13418
+ * });
13419
+ *
13420
+ * function clipToCurrentFloor() {
13421
+ * const altitude = mapView.getState(mapView.currentFloor)?.altitude ?? 0;
13422
+ *
13423
+ * mapView.updateState(building, { clippingPlaneZOffset: altitude + 0.05 });
13424
+ * }
13425
+ *
13426
+ * clipToCurrentFloor();
13427
+ * mapView.on('floor-change', clipToCurrentFloor);
13428
+ * ```
13429
+ *
13191
13430
  * @see [3D Models Guide](https://developer.mappedin.com/web-sdk/3d-models)
13192
13431
  * @see [Mappedin 3D Assets Library](https://www.npmjs.com/package/@mappedin/3d-assets)
13193
13432
  */
@@ -13199,6 +13438,28 @@ declare class Models {
13199
13438
  * each model to the map at its configured coordinate with the specified
13200
13439
  * rotation, scale, color, and clipping settings.
13201
13440
  *
13441
+ * Venue models either carry a `url` of their own, or just the `modelId` of a model from
13442
+ * the [Mappedin 3D Assets Library](https://www.npmjs.com/package/@mappedin/3d-assets).
13443
+ * The library is not bundled with the SDK — pass `resolveModel` to resolve those ids
13444
+ * (see {@link TModelsAllOptions}). Entries that resolve to neither are skipped.
13445
+ *
13446
+ * Each {@link Model} takes the venue entry's id, so it can be matched back to its entry in
13447
+ * the venue's `extra.models` data.
13448
+ *
13449
+ * Each model is drawn the cheapest way the venue data allows. A model with its own `url` that appears **once** in
13450
+ * the venue (a building, clipped or not) is batched: its pieces draw in a few calls instead of one call per piece.
13451
+ * An asset-library model, or a `url` that appears more than once, is instanced, so its placements share one copy of
13452
+ * the geometry. (Experimental: batching uses `EXPERIMENTAL_batchedDraw` under the hood.)
13453
+ *
13454
+ * The entry's `visibility` (`'always'`, `'outdoors-only'`, `'indoors-only'`) is not applied:
13455
+ * every model is added visible. A model placed on a real floor still hides and shows with that
13456
+ * floor, because it is added to the floor's models layer. An outdoor entry has no floor to
13457
+ * follow — it is parented at the scene root — so it stays visible on every floor and does not
13458
+ * follow the outdoor container's visibility either, which means an `outdoors-only` asset is
13459
+ * also visible indoors. Apply the field yourself with `updateState(model, { visible })` when a
13460
+ * venue relies on it.
13461
+ *
13462
+ * @param options - Options for {@link TModelsAllOptions}.
13202
13463
  * @returns An array of {@link Model} instances that were added to the map.
13203
13464
  * Returns an empty array when the venue has no model data
13204
13465
  * or none of the model entries are valid.
@@ -13208,8 +13469,17 @@ declare class Models {
13208
13469
  * const models = mapView.Models.all();
13209
13470
  * console.log(`Added ${models.length} models to the map`);
13210
13471
  * ```
13472
+ *
13473
+ * @example Resolve venue models that use the 3D Assets Library
13474
+ * ```ts
13475
+ * import * as assets from '@mappedin/3d-assets';
13476
+ *
13477
+ * const models = mapView.Models.all({
13478
+ * resolveModel: modelId => (assets as Record<string, string>)[modelId],
13479
+ * });
13480
+ * ```
13211
13481
  */
13212
- all(): Model[];
13482
+ all(options?: TModelsAllOptions): Model[];
13213
13483
  /**
13214
13484
  * Removes a model from the map.
13215
13485
  *
@@ -13984,7 +14254,7 @@ type TGeometryUpdateState = output<typeof geometryStateSchemaPartial>;
13984
14254
  declare const labelStateSchema: ZodObject<{
13985
14255
  type: ZodDefault<ZodLiteral<"label">>;
13986
14256
  text: ZodString;
13987
- rank: ZodCustom<"initial" | TCollisionRankingTier, "initial" | TCollisionRankingTier>;
14257
+ rank: ZodCustom<TCollisionRankingTier | "initial", TCollisionRankingTier | "initial">;
13988
14258
  appearance: ZodCustom<LabelAppearance, LabelAppearance>;
13989
14259
  interactive: ZodDefault<ZodBoolean>;
13990
14260
  enabled: ZodDefault<ZodBoolean>;
@@ -14007,7 +14277,7 @@ declare const labelStateSchema: ZodObject<{
14007
14277
  declare const labelStateSchemaPartial: ZodObject<{
14008
14278
  type: ZodOptional<ZodDefault<ZodLiteral<"label">>>;
14009
14279
  text: ZodOptional<ZodString>;
14010
- rank: ZodOptional<ZodCustom<"initial" | TCollisionRankingTier, "initial" | TCollisionRankingTier>>;
14280
+ rank: ZodOptional<ZodCustom<TCollisionRankingTier | "initial", TCollisionRankingTier | "initial">>;
14011
14281
  appearance: ZodOptional<ZodCustom<LabelAppearance, LabelAppearance>>;
14012
14282
  interactive: ZodOptional<ZodDefault<ZodBoolean>>;
14013
14283
  enabled: ZodOptional<ZodDefault<ZodBoolean>>;
@@ -14040,7 +14310,7 @@ type TLabelUpdateState = output<typeof labelStateSchemaPartial>;
14040
14310
  /** @internal */
14041
14311
  declare const markerStateSchema: ZodObject<{
14042
14312
  type: ZodDefault<ZodLiteral<"marker">>;
14043
- rank: ZodCustom<"initial" | TCollisionRankingTier, "initial" | TCollisionRankingTier>;
14313
+ rank: ZodCustom<TCollisionRankingTier | "initial", TCollisionRankingTier | "initial">;
14044
14314
  placement: ZodOptional<ZodUnion<readonly [ZodEnum<{
14045
14315
  hidden: "hidden";
14046
14316
  top: "top";
@@ -14080,10 +14350,10 @@ declare const markerStateSchema: ZodObject<{
14080
14350
  }, $strip>;
14081
14351
  /** @internal */
14082
14352
  declare const markerStateSchemaPartial: ZodObject<{
14083
- enabled: ZodOptional<ZodDefault<ZodBoolean>>;
14084
14353
  type: ZodOptional<ZodDefault<ZodLiteral<"marker">>>;
14354
+ enabled: ZodOptional<ZodDefault<ZodBoolean>>;
14085
14355
  interactive: ZodOptional<ZodDefault<ZodUnion<readonly [ZodBoolean, ZodLiteral<"pointer-events-auto">]>>>;
14086
- rank: ZodOptional<ZodCustom<"initial" | TCollisionRankingTier, "initial" | TCollisionRankingTier>>;
14356
+ rank: ZodOptional<ZodCustom<TCollisionRankingTier | "initial", TCollisionRankingTier | "initial">>;
14087
14357
  occlude: ZodOptional<ZodDefault<ZodBoolean>>;
14088
14358
  placement: ZodOptional<ZodOptional<ZodUnion<readonly [ZodEnum<{
14089
14359
  hidden: "hidden";
@@ -14416,23 +14686,23 @@ type TImage3DUpdateState = output<typeof imageStateSchemaPartial>;
14416
14686
  //#region src/states/model-state.d.ts
14417
14687
  /** @internal */
14418
14688
  declare const modelStateUpdateSchema: ZodObject<{
14419
- altitude: ZodOptional<ZodOptional<ZodNumber>>;
14420
14689
  id: ZodOptional<ZodOptional<ZodUnion<readonly [ZodNumber, ZodString]>>>;
14421
14690
  type: ZodOptional<ZodDefault<ZodLiteral<"model">>>;
14422
14691
  color: ZodOptional<ZodOptional<ZodString>>;
14423
- position: ZodOptional<ZodCustom<Coordinate, Coordinate>>;
14692
+ rotation: ZodOptional<ZodUnion<readonly [ZodNumber, ZodTuple<[ZodNumber, ZodNumber, ZodNumber], null>]>>;
14693
+ scale: ZodOptional<ZodUnion<readonly [ZodNumber, ZodTuple<[ZodNumber, ZodNumber, ZodNumber], null>]>>;
14424
14694
  visible: ZodOptional<ZodDefault<ZodBoolean>>;
14425
- verticalOffset: ZodOptional<ZodDefault<ZodNumber>>;
14426
14695
  opacity: ZodOptional<ZodDefault<ZodNumber>>;
14427
14696
  material: ZodOptional<ZodOptional<ZodRecord<ZodString, ZodObject<{
14428
14697
  color: ZodString;
14429
14698
  }, $strip>>>>;
14430
- interactive: ZodOptional<ZodDefault<ZodBoolean>>;
14699
+ verticalOffset: ZodOptional<ZodDefault<ZodNumber>>;
14431
14700
  clippingPlaneZOffset: ZodOptional<ZodDefault<ZodCustom<number, number>>>;
14432
14701
  clippingPlaneTopColor: ZodOptional<ZodDefault<ZodString>>;
14433
14702
  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>]>>;
14703
+ altitude: ZodOptional<ZodOptional<ZodNumber>>;
14704
+ position: ZodOptional<ZodCustom<Coordinate, Coordinate>>;
14705
+ interactive: ZodOptional<ZodDefault<ZodBoolean>>;
14436
14706
  }, $strip>;
14437
14707
  /** @internal */
14438
14708
  declare const modelStateSchemaStrict: ZodObject<{
@@ -14453,6 +14723,9 @@ declare const modelStateSchemaStrict: ZodObject<{
14453
14723
  clippingPlaneZOffset: ZodDefault<ZodCustom<number, number>>;
14454
14724
  clippingPlaneTopColor: ZodDefault<ZodString>;
14455
14725
  clippingPlaneTopVisible: ZodDefault<ZodBoolean>;
14726
+ castShadow: ZodDefault<ZodBoolean>;
14727
+ receiveShadow: ZodDefault<ZodBoolean>;
14728
+ clippingEnabled: ZodDefault<ZodBoolean>;
14456
14729
  }, $strict>;
14457
14730
  /**
14458
14731
  * The serialized state of a 3D model, including its coordinate, rotation, and scale.
@@ -14580,7 +14853,7 @@ type TWallsUpdateState = output<typeof wallsStateSchemaPartial>;
14580
14853
  type MapElementToGetState = {
14581
14854
  [Marker.__type]: ReadonlyDeep<TMarkerState>;
14582
14855
  [Label.__type]: ReadonlyDeep<TLabelState>;
14583
- [Shape.__type]: ReadonlyDeep<TShapeState>;
14856
+ [Shape$1.__type]: ReadonlyDeep<TShapeState>;
14584
14857
  [Model.__type]: ReadonlyDeep<TModelState>;
14585
14858
  [Path.__type]: ReadonlyDeep<TPathState>;
14586
14859
  [PathSegment$1.__type]: ReadonlyDeep<TPathState>;
@@ -14603,7 +14876,7 @@ type MapElementToGetState = {
14603
14876
  type MapElementToUpdateState = {
14604
14877
  [Marker.__type]: TMarkerUpdateState;
14605
14878
  [Label.__type]: TLabelUpdateState;
14606
- [Shape.__type]: TShapeUpdateState;
14879
+ [Shape$1.__type]: TShapeUpdateState;
14607
14880
  [Model.__type]: TModelUpdateState;
14608
14881
  [Path.__type]: TPathUpdateState;
14609
14882
  [PathSegment$1.__type]: TPathUpdateState;
@@ -14843,7 +15116,7 @@ declare class CameraTransform {
14843
15116
  *
14844
15117
  * Refer to the [Shapes Guide](https://developer.mappedin.com/web-sdk/shapes) for more information and interactive examples.
14845
15118
  */
14846
- declare class Shape implements IFocusable {
15119
+ declare class Shape$1 implements IFocusable {
14847
15120
  /**
14848
15121
  * id of Shape
14849
15122
  */
@@ -14862,7 +15135,7 @@ declare class Shape implements IFocusable {
14862
15135
  * @param instance The instance to check.
14863
15136
  * @returns {boolean} True if the instance is a Shape, false otherwise.
14864
15137
  */
14865
- static is(instance: object): instance is Shape;
15138
+ static is(instance: object): instance is Shape$1;
14866
15139
  /** @internal */
14867
15140
  get focusTarget(): this;
14868
15141
  /**
@@ -14973,7 +15246,7 @@ type TClickPayload = {
14973
15246
  /**
14974
15247
  * Interactive {@link Shape}s under the pointer.
14975
15248
  */
14976
- shapes?: Shape[];
15249
+ shapes?: Shape$1[];
14977
15250
  };
14978
15251
  /**
14979
15252
  * Represents the payload for a hover event on the map.
@@ -15339,7 +15612,7 @@ type MapDataElements = Space | MapObject | Door | Facade | Floor | FloorStack |
15339
15612
  /**
15340
15613
  * Elements created by the MapView.
15341
15614
  */
15342
- type MapViewElements = Label | Marker | Model | Shape | Text3DView | Path | PathSegment$1 | Image3DView;
15615
+ type MapViewElements = Label | Marker | Model | Shape$1 | Text3DView | Path | PathSegment$1 | Image3DView;
15343
15616
  /**
15344
15617
  * Options for {@link Camera} animations on the map.
15345
15618
  */
@@ -16191,9 +16464,90 @@ type TAddModel = {
16191
16464
  };
16192
16465
  /**
16193
16466
  * Options for controlling the behavior of a {@link Model}.
16467
+ *
16468
+ * ## Model clipping
16469
+ *
16470
+ * A model that represents a **building** is a closed shell: it sits over the venue and its
16471
+ * walls and roof hide the floors inside it. Set `clippingEnabled: true` to cut the model away
16472
+ * with a horizontal plane, so everything below the plane is drawn and everything above it is
16473
+ * removed — the familiar cut-away view of a building, looking down into the floor the user has
16474
+ * selected.
16475
+ *
16476
+ * Clipping is decided when the model is added — setting it later has no effect — and it
16477
+ * de-optimizes the model by disabling instancing, so enable it only on the models that need it.
16478
+ * Models added by {@link Models.all} enable it automatically when the venue marks them as
16479
+ * manifolded.
16480
+ *
16481
+ * The plane itself moves at runtime. `clippingPlaneZOffset` is the height of the cut, in meters
16482
+ * on the map's vertical axis — the same scale the floors use — and it defaults to `Infinity`,
16483
+ * which puts the plane above everything and so cuts nothing: set a finite height to see a cut.
16484
+ * `clippingPlaneTopColor` and `clippingPlaneTopVisible` style the exposed cut face.
16485
+ *
16486
+ * To follow the floor the user is on, read `getState(floor).altitude` — the floor's visual
16487
+ * height in the scene, which already includes the floor spacing of a multi-floor view — and use
16488
+ * it as the cut height.
16489
+ * @example Cut a building model open at the floor the user is on
16490
+ * ```ts
16491
+ * const building = mapView.Models.add(mapData.mapCenter, buildingUrl, {
16492
+ * clippingEnabled: true,
16493
+ * });
16494
+ *
16495
+ * function clipToCurrentFloor() {
16496
+ * const altitude = mapView.getState(mapView.currentFloor)?.altitude ?? 0;
16497
+ *
16498
+ * mapView.updateState(building, {
16499
+ * clippingPlaneZOffset: altitude + 0.05, // a hair above the floor, not through it
16500
+ * clippingPlaneTopColor: '#8899aa',
16501
+ * });
16502
+ * }
16503
+ *
16504
+ * clipToCurrentFloor();
16505
+ * mapView.on('floor-change', clipToCurrentFloor);
16506
+ * ```
16194
16507
  */
16195
16508
  type TAddModelOptions = Omit<InitializeModelState$1, 'scale' | 'url'> & {
16196
16509
  scale?: number | [number, number, number];
16510
+ /**
16511
+ * An id for the model, used as {@link Model.id} so it can be cross-referenced with the
16512
+ * data it came from — {@link Models.all} passes the venue's model id.
16513
+ *
16514
+ * It must be unique on the map. If it is already taken, or the call creates more than one
16515
+ * instance, the renderer's own id is used instead and a warning is logged.
16516
+ */
16517
+ id?: string;
16518
+ /**
16519
+ * Whether the model should be cut away at its clipping plane, exposing the interior.
16520
+ *
16521
+ * This is the pre-release name of the promoted `clippingEnabled` option: it still works,
16522
+ * but logs a warning and is never forwarded to the renderer. Clipping is no longer
16523
+ * experimental — rename the key.
16524
+ * @deprecated Use `clippingEnabled` instead. This alias will be removed in a future version.
16525
+ */
16526
+ EXPERIMENTAL_clippingEnabled?: boolean;
16527
+ };
16528
+ /**
16529
+ * Options for {@link Models.all}.
16530
+ * @interface
16531
+ */
16532
+ type TModelsAllOptions = {
16533
+ /**
16534
+ * Resolves a venue model's `modelId` to a model URL or an inline base64 asset, for
16535
+ * entries that carry no `url` of their own.
16536
+ *
16537
+ * Models placed from the Mappedin 3D Assets Library store only the asset's `modelId`
16538
+ * (e.g. `'truck'`). The SDK does not bundle the library — pass the lookup and the
16539
+ * models resolve the way `Models.add` resolves an inline asset.
16540
+ *
16541
+ * @example Add venue models that reference the 3D Assets Library
16542
+ * ```ts
16543
+ * import * as assets from '@mappedin/3d-assets';
16544
+ *
16545
+ * const models = mapView.Models.all({
16546
+ * resolveModel: modelId => (assets as Record<string, string>)[modelId],
16547
+ * });
16548
+ * ```
16549
+ */
16550
+ resolveModel?: (modelId: string) => string | undefined;
16197
16551
  };
16198
16552
  /**
16199
16553
  * Options for adding a 3D text element to the map.
@@ -16541,7 +16895,7 @@ interface UpdateGlobalState {
16541
16895
  /**
16542
16896
  * A map element that can be focused on by the camera.
16543
16897
  */
16544
- type TFocusTarget = Coordinate | Space | Area | MapObject | Floor | FloorStack | Shape;
16898
+ type TFocusTarget = Coordinate | Space | Area | MapObject | Floor | FloorStack | Shape$1;
16545
16899
  /**
16546
16900
  * Associates MapData type strings with their corresponding classes.
16547
16901
  */
@@ -16570,7 +16924,7 @@ type TMapViewObjectTypes = {
16570
16924
  [Label.__type]: Label;
16571
16925
  [Marker.__type]: Marker;
16572
16926
  [Model.__type]: Model;
16573
- [Shape.__type]: Shape;
16927
+ [Shape$1.__type]: Shape$1;
16574
16928
  [Path.__type]: Path;
16575
16929
  [PathSegment$1.__type]: PathSegment$1;
16576
16930
  [Image3DView.__type]: Image3DView;
@@ -17247,13 +17601,21 @@ type THydrateMapDataBundle = {
17247
17601
  */
17248
17602
  declare const hydrateMapData: (backup: THydrateMapDataBundle | ParsedMVF, userOptions?: TGetMapDataOptions) => Promise<MapData>;
17249
17603
  //#endregion
17604
+ //#region src/search/joined-words.d.ts
17605
+ type JoinedWordsSettings = {
17606
+ maxWords: number;
17607
+ name: boolean;
17608
+ tags: boolean;
17609
+ };
17610
+ //#endregion
17250
17611
  //#region src/search/internal.d.ts
17251
17612
  declare class InternalSearch {
17252
17613
  #private;
17253
17614
  private mapData;
17254
17615
  private indexes;
17255
17616
  private ready;
17256
- constructor(mapData: MapData);
17617
+ private joinedWords;
17618
+ constructor(mapData: MapData, joinedWords?: JoinedWordsSettings | null);
17257
17619
  /**
17258
17620
  * Populates the search indexes with the map data.
17259
17621
  * @returns A promise that resolves when the indexes are populated.
@@ -17316,12 +17678,18 @@ type SearchResult = {
17316
17678
  * that `undefined` is *not* a valid MiniSearch value — it would silently
17317
17679
  * disable fuzzy if forwarded verbatim — so `applyMatchOptions()` drops it and
17318
17680
  * the index default applies.
17681
+ *
17682
+ * The budget applies to folded terms: queries are accent-stripped, apostrophe-
17683
+ * stripped and lowercased before MiniSearch sees them.
17319
17684
  */
17320
17685
  type Fuzzy = number;
17321
17686
  /**
17322
17687
  * Whether prefix (as-you-type) matching is enabled per search source. Mirrors
17323
17688
  * MiniSearch's `prefix` option: a boolean, or a `(term, index, terms) => boolean`
17324
17689
  * function.
17690
+ *
17691
+ * A callback receives the folded query terms (accent-stripped, apostrophe-
17692
+ * stripped, lowercased), not the raw input string.
17325
17693
  */
17326
17694
  type Prefix$1 = SearchOptions$1['prefix'];
17327
17695
  declare const searchOptionsSchema: ZodObject<{
@@ -17398,10 +17766,9 @@ declare class Search {
17398
17766
  * @internal
17399
17767
  */
17400
17768
  constructor(mapData: MapData, mapDataInternal: MapDataInternal, {
17401
- enabled
17402
- }?: {
17403
- enabled?: boolean;
17404
- });
17769
+ enabled,
17770
+ joinedWords
17771
+ }?: Partial<Pick<TSearchOptions, 'enabled' | 'joinedWords'>>);
17405
17772
  /**
17406
17773
  * Use query to search for locations based on a string input:
17407
17774
  *
@@ -18733,15 +19100,42 @@ type ModelStyle = {
18733
19100
  */
18734
19101
  visibleThroughGeometry: boolean;
18735
19102
  /**
18736
- * When true, enables clipping plane functionality for this model.
18737
- * This cannot be changed at runtime.
19103
+ * Whether the model is cut away at its clipping plane, exposing the interior.
19104
+ *
19105
+ * Use this for models that represent a **building**: their walls and roof are a closed
19106
+ * shell over the venue, and clipping removes everything above `clippingPlaneZOffset` so
19107
+ * the floors inside the model stay visible — the familiar cut-away view of a building.
19108
+ * `clippingPlaneTopColor` and `clippingPlaneTopVisible` style the exposed cut face.
19109
+ *
19110
+ * Clipping is decided when the model is added: setting it later has no effect.
18738
19111
  *
18739
19112
  * Note: This will de-optimize the model by disabling instancing.
18740
19113
  * @default false
18741
19114
  */
18742
- EXPERIMENTAL_clippingEnabled: boolean;
19115
+ clippingEnabled: boolean;
18743
19116
  /**
18744
- * The clipping plane z offset of the model.
19117
+ * Draw the model's GLB pieces as batches — one draw per material and attribute layout — instead of one draw per
19118
+ * piece. A model with hundreds of pieces and a handful of materials then costs a handful of draws.
19119
+ *
19120
+ * A batched model is **never instanced**: it draws its own batches on its own container, clipped or not, so placing
19121
+ * the same model again uploads another copy of its geometry and adds its draws again. Use it for models placed once
19122
+ * (a venue's buildings), not for models placed many times (trees, kiosks), which instancing draws more cheaply. A
19123
+ * `visibleThroughGeometry` model ignores it (its depth settings are per material, one-to-one with its meshes) with a
19124
+ * warning. Decided when the model is added. See ADR 0016.
19125
+ * @experimental
19126
+ * @default false
19127
+ */
19128
+ EXPERIMENTAL_batchedDraw: boolean;
19129
+ /**
19130
+ * Height of the clipping plane on the map's vertical axis, in meters.
19131
+ *
19132
+ * The plane is horizontal and the world is cut at this height: everything below it is
19133
+ * drawn, everything above it is removed. It is the same vertical scale the floors use,
19134
+ * so a floor's `altitude` can be used directly as the cut height.
19135
+ *
19136
+ * `Infinity` — the default — puts the plane above everything, so nothing is cut. Set a
19137
+ * finite height to clip; it can be moved afterwards with
19138
+ * `mapView.updateState(model, { clippingPlaneZOffset })`.
18745
19139
  * @default Infinity
18746
19140
  */
18747
19141
  clippingPlaneZOffset: number;
@@ -18755,6 +19149,32 @@ type ModelStyle = {
18755
19149
  * @default true
18756
19150
  */
18757
19151
  clippingPlaneTopVisible: boolean;
19152
+ /**
19153
+ * Whether the model casts a shadow onto the map. Fixed when the model is created, because casting
19154
+ * is a layer on the batch's meshes: it cannot be changed on an existing model. A no-op while
19155
+ * shadows are disabled for the map.
19156
+ *
19157
+ * For instanced models the layer is per batch and this setting is part of the batch identity, so a
19158
+ * model that opts out is placed in its own batch (same URL and container, one extra draw call)
19159
+ * rather than changing what the instances sharing its batch do. A non-instanced model (created
19160
+ * with `visibleThroughGeometry` or `clippingEnabled`) owns its mesh, so the layer
19161
+ * applies to that mesh alone — no batch to move into and no extra draw call.
19162
+ * @default true
19163
+ */
19164
+ castShadow: boolean;
19165
+ /**
19166
+ * Whether the model receives shadows cast onto it. Fixed when the model is created, because
19167
+ * receiving is a material state that decides how the model's clones are compiled — the patch
19168
+ * cannot be removed from an already-compiled material. A no-op while shadows are disabled for the
19169
+ * map: the batches' material clones are then never patched, so nothing receives.
19170
+ *
19171
+ * For instanced models it is part of the batch identity too: models that do not receive are placed
19172
+ * in their own unpatched batch instead of sharing the patched one — one extra draw call per
19173
+ * distinct opt-out shape. A non-instanced model owns its materials, so it is simply created with
19174
+ * unpatched clones.
19175
+ * @default true
19176
+ */
19177
+ receiveShadow: boolean;
18758
19178
  };
18759
19179
  declare class ModelStyleComponnet implements Partial<ModelStyle> {
18760
19180
  #private;
@@ -18770,10 +19190,13 @@ declare class ModelStyleComponnet implements Partial<ModelStyle> {
18770
19190
  material?: ModelStyle['material'];
18771
19191
  rotation?: [number, number, number];
18772
19192
  scale?: [number, number, number];
18773
- EXPERIMENTAL_clippingEnabled: boolean;
19193
+ clippingEnabled: boolean;
19194
+ EXPERIMENTAL_batchedDraw: boolean;
18774
19195
  clippingPlaneZOffset: number;
18775
19196
  clippingPlaneTopColor?: string;
18776
19197
  clippingPlaneTopVisible: boolean;
19198
+ castShadow: boolean;
19199
+ receiveShadow: boolean;
18777
19200
  get visibleThroughGeometry(): boolean;
18778
19201
  set visibleThroughGeometry(value: boolean);
18779
19202
  constructor(init?: Partial<ModelStyle>);
@@ -19199,6 +19622,16 @@ declare class EntityBatchedMesh extends BatchedMesh {
19199
19622
  [key: number]: string | number;
19200
19623
  };
19201
19624
  detached?: boolean;
19625
+ /**
19626
+ * Authored colour of the source GLB material, used when no per-instance override applies. Model batches
19627
+ * only; mirrors the `InstancedMesh` contract.
19628
+ */
19629
+ originalColor?: Color;
19630
+ /**
19631
+ * Entity this batch draws, for a model that owns its container (any batched model). Picking and the
19632
+ * interaction system's clipped-region filter read it. Model batches only.
19633
+ */
19634
+ entityId?: string;
19202
19635
  };
19203
19636
  /**
19204
19637
  * Assigned by three's BatchedMesh constructor / setColorAt but not present in @types/three.
@@ -19455,16 +19888,16 @@ type ModelState = {
19455
19888
  interactive: boolean;
19456
19889
  } & Partial<Omit<ModelStyle, 'rotation' | 'scale'>> & Pick<ModelStyle, 'rotation' | 'scale'>;
19457
19890
  /**
19458
- * initialize model state
19891
+ * Initial state for a model, including its transform, appearance and clipping.
19459
19892
  * @interface
19460
- * Note: EXPERIMENTAL_clippingEnabled and visibleThroughGeometry are now part of ModelStyle
19893
+ * Note: `clippingEnabled` and `visibleThroughGeometry` are passed via the style, not as GeoJSON feature properties.
19461
19894
  */
19462
19895
  type InitializeModelState$2 = Omit<Partial<ModelState>, 'id' | 'type' | 'parent' | 'position'>;
19463
19896
  /**
19464
19897
  * updatable model state
19465
19898
  * @interface
19466
19899
  */
19467
- type UpdateModelState = Omit<InitializeModelState$2, 'url'> & {
19900
+ type UpdateModelState = Omit<InitializeModelState$2, 'url' | 'clippingEnabled'> & {
19468
19901
  position?: Position$2;
19469
19902
  };
19470
19903
  declare class ModelComponent {
@@ -19491,8 +19924,9 @@ declare class ModelComponent {
19491
19924
  feature: Feature<Point, ModelProperties>;
19492
19925
  instanceIndex?: number;
19493
19926
  /**
19494
- * If true, this model uses a regular mesh instead of instancing.
19495
- * Set at creation time based on visibleThroughGeometry or EXPERIMENTAL_clippingEnabled.
19927
+ * If true, this model draws on its own container instead of the shared instanced one: cloned meshes for
19928
+ * `visibleThroughGeometry` or `clippingEnabled`, or batches for `EXPERIMENTAL_batchedDraw` (ADR 0016).
19929
+ * Set at creation time.
19496
19930
  * Cannot be changed at runtime.
19497
19931
  */
19498
19932
  instancingDisabled: boolean;
@@ -20451,9 +20885,9 @@ type ComponentTypeMap$1 = {
20451
20885
  clippingPlane: ClippingPlaneComponent;
20452
20886
  slope: SlopeComponent;
20453
20887
  };
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> {
20888
+ 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
20889
  id: string | number;
20456
- components: [M$1, S, I?, O?, F$1?, B?, TX?, C?, Sl?];
20890
+ components: [M$1, S, I$1?, O?, F$1?, B?, TX?, C?, Sl?];
20457
20891
  getComponent<K$1 extends keyof ComponentTypeMap$1>(type: K$1): ComponentTypeMap$1[K$1] | undefined;
20458
20892
  /**
20459
20893
  * Parent geometry group ID
@@ -20867,6 +21301,12 @@ declare class InteractionSystem extends PubSub<InteractionEvents> {
20867
21301
  private onPointerMove;
20868
21302
  tapsControl: TapsController;
20869
21303
  getThreeDIntersectsFromXY(point: Vector2): Intersection<Object3D<Object3DEventMap>>[];
21304
+ /**
21305
+ * A hit on a model that nothing can interact with. `_hitBoxes` already leaves such models out, so
21306
+ * this only matches an instance of a shared batch that stays raycastable because another model on it
21307
+ * is interactive — the pointer goes through that instance to whatever is behind it.
21308
+ */
21309
+ private isNonInteractiveModel;
20870
21310
  getGroupContainerIntersectsFromXY(point: Vector2): any;
20871
21311
  private onPointerDown;
20872
21312
  private clickTimeout;
@@ -22838,6 +23278,15 @@ declare class ClippingPlaneSystem {
22838
23278
  dirty: boolean;
22839
23279
  constructor(rendererState: RendererState);
22840
23280
  update(): void;
23281
+ /**
23282
+ * Builds the clipped rendering of a model: the clipped children, the hole-fill cap and the
23283
+ * stencil counting passes.
23284
+ * @param meshComponent - The model's mesh component
23285
+ * @param clippingPlaneComponent - The model's clipping plane component
23286
+ * @param receiveShadow - Whether the model receives shadows (`ModelStyle.receiveShadow`). The cap is
23287
+ * the model's visible cut surface, so it is patched as a receiver only when the model is one; a cap
23288
+ * built patched for a model that opted out would show a shadowed cut surface.
23289
+ */
22841
23290
  private process;
22842
23291
  /**
22843
23292
  * Creates the stencil counting passes that mark cross-section pixels.
@@ -23028,6 +23477,8 @@ declare class ShadowsSystem {
23028
23477
  private rangeNear;
23029
23478
  private rangeFar;
23030
23479
  private readonly scratchBox;
23480
+ /** Uniforms shared by every patched model material (see `receiver-patch.ts`). */
23481
+ private readonly receiverContext;
23031
23482
  /** Reused by `groundShadowFitHalfSize` for the light camera's two view-plane axes. */
23032
23483
  private readonly scratchRight;
23033
23484
  private readonly scratchUp;
@@ -23055,8 +23506,6 @@ declare class ShadowsSystem {
23055
23506
  private readonly shadowResolutionSizes;
23056
23507
  private readonly shadowResolutionZoomThresholds;
23057
23508
  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
23509
  /**
23061
23510
  * Creates a WebGLRenderTarget for shadow mapping with the specified size
23062
23511
  * @param size - The width and height of the render target in pixels
@@ -23248,6 +23697,8 @@ declare class ShadowsSystem {
23248
23697
  */
23249
23698
  private recreateDebugGrid;
23250
23699
  private transparentGeometryVisibilityStateMap;
23700
+ /** Reused by `renderShadowMap`: each swapped caster's own material, restored after the pass. */
23701
+ private readonly swappedMaterials;
23251
23702
  private renderShadowMap;
23252
23703
  /**
23253
23704
  * Depth-comparison tolerance for the receivers, in the shader's normalised light-depth units.
@@ -23362,6 +23813,8 @@ declare class ModelSystem extends PubSub<{
23362
23813
  * @param containerId - The container this batch belongs to
23363
23814
  * @param opacity - The opacity for this batch (1 = default)
23364
23815
  * @param maxCount - Maximum instance capacity
23816
+ * @param receiveShadow - Whether the batch's materials receive shadows
23817
+ * @param castShadow - Whether the batch's meshes are on the shadow-caster layer
23365
23818
  * @returns The created batch entry
23366
23819
  */
23367
23820
  private createBatch;
@@ -23381,6 +23834,23 @@ declare class ModelSystem extends PubSub<{
23381
23834
  * @returns The batch entry or undefined
23382
23835
  */
23383
23836
  private getBatchForMesh;
23837
+ /**
23838
+ * The shadow receiver context a model with this receive setting should be built with.
23839
+ * @param receiveShadow - Whether the model (or batch) opted into receiving
23840
+ * @returns The context to patch with, or undefined when shadows are off or the model opts out
23841
+ */
23842
+ private shadowReceiverFor;
23843
+ /**
23844
+ * The batching key for one of the two per-model shadow settings (`receiveShadow`, `castShadow`).
23845
+ *
23846
+ * While shadows are off for the map there is nothing to receive and nothing to cast into, so both
23847
+ * settings are no-ops: every model keys `true` and the system batches exactly as it did before these
23848
+ * options existed — one shared, unpatched batch per URL and container. That is what keeps a shadows-off
23849
+ * scene from splitting into per-model batches it never had before, and it makes the "shadows off" case
23850
+ * of the divergence checks fall out of the key comparison instead of needing its own guard.
23851
+ * @param enabled - The model's own setting
23852
+ */
23853
+ private shadowBatchKey;
23384
23854
  /**
23385
23855
  * Updates the debug UI with current batch information
23386
23856
  */
@@ -23428,6 +23898,25 @@ declare class ModelSystem extends PubSub<{
23428
23898
  * @returns The loaded GLTF data
23429
23899
  */
23430
23900
  private getOrLoadGLTF;
23901
+ /**
23902
+ * Fills an own container with one cloned mesh per GLB piece — the default for a model that draws on its own.
23903
+ * @param meshContainer - The model's own container.
23904
+ * @param gltf - The loaded GLTF data.
23905
+ * @param entityId - The model entity, recorded on each mesh for picking.
23906
+ * @param shadowReceiver - Live receiver context when the model receives shadows.
23907
+ */
23908
+ private addClonedPieces;
23909
+ /**
23910
+ * Fills an own container with the model's pieces as batches — one per material and attribute layout — for a
23911
+ * model on `EXPERIMENTAL_batchedDraw`, clipped or not. The GLTF scene is never cloned on this path: the batches read
23912
+ * the pieces straight from it.
23913
+ * @param meshContainer - The model's own container.
23914
+ * @param gltf - The loaded GLTF data.
23915
+ * @param entityId - The model entity, recorded on each batch for picking and the clipped-region filter.
23916
+ * @param shadowReceiver - Live receiver context when the model receives shadows.
23917
+ * @param keepPlacementSource - The model is clipped, so its hull will read the batches' pieces.
23918
+ */
23919
+ private addBatchedPieces;
23431
23920
  /**
23432
23921
  * Creates a non-instanced model (regular mesh) for entities with visibleThroughGeometry or clippingEnabled
23433
23922
  * @param entity - The model entity
@@ -23455,7 +23944,7 @@ declare class ModelSystem extends PubSub<{
23455
23944
  * Creates a model entity from a GeoJSON feature
23456
23945
  * @param id - The unique identifier for the model
23457
23946
  * @param feature - The GeoJSON Point feature with model properties
23458
- * @param style - Optional model style overrides (includes EXPERIMENTAL_clippingEnabled)
23947
+ * @param style - Optional model style overrides (includes clippingEnabled)
23459
23948
  * @returns The created model geometry entity
23460
23949
  */
23461
23950
  createModelFromFeature(id: string | number, feature: Feature<Point, ModelProperties>, style?: Partial<InitializeModelState$2>): ModelGeometry3D;
@@ -23478,7 +23967,8 @@ declare class ModelSystem extends PubSub<{
23478
23967
  */
23479
23968
  private rebatchDetachedInstances;
23480
23969
  /**
23481
- * Creates a shared InstancedMesh batch for multiple detached entities with the same opacity
23970
+ * Creates a shared InstancedMesh batch for multiple detached entities with the same opacity,
23971
+ * receive and cast setting
23482
23972
  */
23483
23973
  private createSharedBatchForDetached;
23484
23974
  /**
@@ -24271,6 +24761,48 @@ declare class Geometry2D {
24271
24761
  //#region ../renderer-three/src/types/geometry.d.ts
24272
24762
  type Position$2 = [lon: number, lat: number] | [lon: number, lat: number, alt: number];
24273
24763
  //#endregion
24764
+ //#region ../renderer-three/src/systems/shadows/receiver-patch.d.ts
24765
+ /**
24766
+ * The shadow-receiver uniforms shared by every patched (non-SDK) material, e.g. glTF model materials.
24767
+ *
24768
+ * One object, owned by `ShadowsSystem`: every patched material's compiled program binds these exact `IUniform`
24769
+ * instances, so a shadow-map update writes each value once (`setShadowUniformValues`) and every model sees it —
24770
+ * no per-material or per-model work, however many models are loaded.
24771
+ */
24772
+ type ShadowReceiverUniforms = {
24773
+ shadowMap: IUniform;
24774
+ lightMatrix: IUniform<Matrix4>;
24775
+ cameraNear: IUniform<number>;
24776
+ cameraFar: IUniform<number>;
24777
+ shadowBias: IUniform<number>;
24778
+ selfShadowThreshold: IUniform<number>;
24779
+ shadowOpacity: IUniform<number>;
24780
+ baseColor: IUniform;
24781
+ shadowMapSize: IUniform<number>;
24782
+ pcfSpread: IUniform<number>;
24783
+ sunDir: IUniform<Vector3>;
24784
+ normalBias: IUniform<number>;
24785
+ shadowEnabled: IUniform<boolean>;
24786
+ depthRangeMax: IUniform<number>;
24787
+ };
24788
+ /**
24789
+ * The live shadow system's hooks for non-SDK geometry (models). Published on `RendererState.shadowReceiver` while
24790
+ * shadows are enabled; `undefined` otherwise.
24791
+ */
24792
+ type ShadowReceiverContext = {
24793
+ uniforms: ShadowReceiverUniforms;
24794
+ /** Compile-time PCF sample count (`#define PCF_SAMPLES`). Fixed per session; part of the program key. */
24795
+ pcfSamples: number;
24796
+ /**
24797
+ * Casters that must render the depth pass with their own `customDepthMaterial` (clipped models), because the
24798
+ * shared override material cannot know their clipping planes. Registered by the clipping system; entries that
24799
+ * have left the scene are pruned by the shadow pass.
24800
+ */
24801
+ customDepthCasters: Set<Mesh>;
24802
+ /** Invalidates the shadow map (and caster bounds), e.g. when a clipping plane moves. */
24803
+ castersChanged: () => void;
24804
+ };
24805
+ //#endregion
24274
24806
  //#region ../renderer-three/src/types/options.d.ts
24275
24807
  /**
24276
24808
  * Selects which environment map is used for image-based lighting.
@@ -24678,13 +25210,18 @@ type ModelProperties = {
24678
25210
  id?: string | number;
24679
25211
  verticalOffset?: number;
24680
25212
  /**
24681
- * When true, enables clipping plane functionality for this model.
24682
- * This cannot be changed at runtime.
25213
+ * Whether the model is cut away at its clipping plane, exposing the interior.
25214
+ *
25215
+ * Use this for models that represent a **building**: their walls and roof are a closed
25216
+ * shell over the venue, and clipping removes everything above `clippingPlaneZOffset` so
25217
+ * the floors inside the model stay visible — the familiar cut-away view of a building.
25218
+ *
25219
+ * Clipping is decided when the model is added: setting it later has no effect.
24683
25220
  *
24684
25221
  * Note: This will de-optimize the model by disabling instancing.
24685
25222
  * @default false
24686
25223
  */
24687
- EXPERIMENTAL_clippingEnabled?: boolean;
25224
+ clippingEnabled?: boolean;
24688
25225
  /**
24689
25226
  * When true at creation time, the model will be visible through other geometry.
24690
25227
  * This value at creation time determines instancing behavior and cannot be changed.
@@ -24990,6 +25527,11 @@ type RendererState = {
24990
25527
  * @defaultValue [0, 1]
24991
25528
  */
24992
25529
  depthRangeFor3D: [number, number];
25530
+ /**
25531
+ * Shared shadow-receiver uniforms for patched non-SDK materials (glTF models). Set by `ShadowsSystem` when shadows
25532
+ * are enabled; `undefined` otherwise, which makes model material patching a no-op.
25533
+ */
25534
+ shadowReceiver?: ShadowReceiverContext;
24993
25535
  /**
24994
25536
  * Options for configuring outline rendering
24995
25537
  */
@@ -25181,6 +25723,23 @@ declare const MAPPEDIN_COLORS: {
25181
25723
  lightTeal: string;
25182
25724
  };
25183
25725
  //#endregion
25726
+ //#region src/enterprise-mode.d.ts
25727
+ /**
25728
+ * @internal
25729
+ * @hidden
25730
+ *
25731
+ * If true, the SDK will create enterprise locations in addition to location profiles. Use this to allow
25732
+ * legacy applications to load platform maps.
25733
+ */
25734
+ declare function forceEnterpriseLocations(value: boolean): void;
25735
+ /**
25736
+ * @hidden
25737
+ * @internal
25738
+ *
25739
+ * See {@link forceEnterpriseLocations}
25740
+ */
25741
+ declare function shouldForceEnterpriseLocations(): boolean;
25742
+ //#endregion
25184
25743
  //#region src/utils/convert-renderer-core-options.d.ts
25185
25744
  /**
25186
25745
  * Converts TShow3DMapOptions to RendererCoreOptions format.
@@ -25599,21 +26158,6 @@ declare const hydrateMapDataFromMVF: (mvf: TMVF, options?: TGetMapDataWithCreden
25599
26158
  * @deprecated Use {@link getMapData} and enterprise will be inferred from key/secret.
25600
26159
  */
25601
26160
  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
26161
  /**
25618
26162
  * Asynchronously retrieves map data ({@link MapData}) based on user-provided options.
25619
26163
  *
@@ -25708,4 +26252,4 @@ declare const getVersion: () => string | undefined;
25708
26252
  */
25709
26253
  declare const show3dMapGeojson: (el: HTMLElement, mapData: MapData, options?: TShow3DMapOptions) => Promise<MapView>;
25710
26254
  //#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 };
26255
+ 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 };