@3dverse/api 0.19.1 → 0.20.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.
@@ -171,7 +171,7 @@ export type FolderAccess = {
171
171
  export type SourceFileId = string;
172
172
  /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
173
173
  export type AssetId = string;
174
- export type AssetType = 'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'navmesh' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'shader_context' | 'skeleton' | 'sound' | 'texture' | 'texture_3d' | 'volume_material';
174
+ export type AssetType = 'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'nav_mesh' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'shader_context' | 'skeleton' | 'sound' | 'texture' | 'texture_3d' | 'volume_material';
175
175
  /** An asset's metadata: flat key-values the tools set, to tell what they made of it, e.g. a shader's `kind`, which a consumer reads to pick the tool opening it, as its type's x-asset-traits declare them, a type without them taking none */
176
176
  export type AssetMeta = {
177
177
  /** What the asset is, which tells the tool opening it */
@@ -258,9 +258,9 @@ export type AssetListFilters = {
258
258
  /** Look for assets containing the given name (case-insensitive) */
259
259
  asset_name?: string;
260
260
  /** @deprecated Deprecated. Use asset_types instead. Look for assets of the given type */
261
- asset_type?: (Array<'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'navmesh' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'shader_context' | 'skeleton' | 'sound' | 'texture' | 'texture_3d' | 'volume_material'> | 'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'navmesh' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'shader_context' | 'skeleton' | 'sound' | 'texture' | 'texture_3d' | 'volume_material') & any;
261
+ asset_type?: (Array<'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'nav_mesh' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'shader_context' | 'skeleton' | 'sound' | 'texture' | 'texture_3d' | 'volume_material'> | 'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'nav_mesh' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'shader_context' | 'skeleton' | 'sound' | 'texture' | 'texture_3d' | 'volume_material') & any;
262
262
  /** Look for assets of the given types */
263
- asset_types?: Array<'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'navmesh' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'shader_context' | 'skeleton' | 'sound' | 'texture' | 'texture_3d' | 'volume_material'>;
263
+ asset_types?: Array<'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'nav_mesh' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'shader_context' | 'skeleton' | 'sound' | 'texture' | 'texture_3d' | 'volume_material'>;
264
264
  /** Look for assets associated with or without libraries */
265
265
  library?: Array<string> | string | 'exclude';
266
266
  /**
@@ -483,7 +483,7 @@ export type AssetsByContainer = {
483
483
  };
484
484
  name: string;
485
485
  }>;
486
- navmeshes?: Array<{
486
+ nav_meshes?: Array<{
487
487
  /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
488
488
  asset_id: string;
489
489
  /** Whether the content service stores a thumbnail of the asset */
@@ -1458,10 +1458,12 @@ export type AssetCreatableWithType = {
1458
1458
  format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
1459
1459
  /** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
1460
1460
  openMode?: 'read' | 'write' | 'readwrite';
1461
- /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */
1461
+ /** The condition on specialization constants under which this parameter is relevant (e.g. shown in the material editor). A map holds when every constant it names has the value it gives: A && !B is {A: true, B: false}. A list of maps holds when any of them does: (A && B) || C is [{A, B}, {C}], A && (B || C) is [{A, B}, {A, C}]. A single map is given as itself, never as a list */
1462
1462
  spec?: {
1463
1463
  [_additionalproperties_: string]: number | boolean;
1464
- };
1464
+ } | Array<{
1465
+ [_additionalproperties_: string]: number | boolean;
1466
+ }>;
1465
1467
  };
1466
1468
  /** Parameter type */
1467
1469
  type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
@@ -1614,10 +1616,12 @@ export type AssetCreatableWithType = {
1614
1616
  format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
1615
1617
  /** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
1616
1618
  openMode?: 'read' | 'write' | 'readwrite';
1617
- /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */
1619
+ /** The condition on specialization constants under which this parameter is relevant (e.g. shown in the material editor). A map holds when every constant it names has the value it gives: A && !B is {A: true, B: false}. A list of maps holds when any of them does: (A && B) || C is [{A, B}, {C}], A && (B || C) is [{A, B}, {A, C}]. A single map is given as itself, never as a list */
1618
1620
  spec?: {
1619
1621
  [_additionalproperties_: string]: number | boolean;
1620
- };
1622
+ } | Array<{
1623
+ [_additionalproperties_: string]: number | boolean;
1624
+ }>;
1621
1625
  };
1622
1626
  /** Parameter type */
1623
1627
  type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
@@ -1702,10 +1706,12 @@ export type AssetCreatableWithType = {
1702
1706
  format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
1703
1707
  /** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
1704
1708
  openMode?: 'read' | 'write' | 'readwrite';
1705
- /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */
1709
+ /** The condition on specialization constants under which this parameter is relevant (e.g. shown in the material editor). A map holds when every constant it names has the value it gives: A && !B is {A: true, B: false}. A list of maps holds when any of them does: (A && B) || C is [{A, B}, {C}], A && (B || C) is [{A, B}, {A, C}]. A single map is given as itself, never as a list */
1706
1710
  spec?: {
1707
1711
  [_additionalproperties_: string]: number | boolean;
1708
- };
1712
+ } | Array<{
1713
+ [_additionalproperties_: string]: number | boolean;
1714
+ }>;
1709
1715
  };
1710
1716
  /** Parameter type */
1711
1717
  type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
@@ -2531,10 +2537,12 @@ export type AssetCreationFromDescription = ({
2531
2537
  format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
2532
2538
  /** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
2533
2539
  openMode?: 'read' | 'write' | 'readwrite';
2534
- /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */
2540
+ /** The condition on specialization constants under which this parameter is relevant (e.g. shown in the material editor). A map holds when every constant it names has the value it gives: A && !B is {A: true, B: false}. A list of maps holds when any of them does: (A && B) || C is [{A, B}, {C}], A && (B || C) is [{A, B}, {A, C}]. A single map is given as itself, never as a list */
2535
2541
  spec?: {
2536
2542
  [_additionalproperties_: string]: number | boolean;
2537
- };
2543
+ } | Array<{
2544
+ [_additionalproperties_: string]: number | boolean;
2545
+ }>;
2538
2546
  };
2539
2547
  /** Parameter type */
2540
2548
  type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
@@ -2687,10 +2695,12 @@ export type AssetCreationFromDescription = ({
2687
2695
  format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
2688
2696
  /** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
2689
2697
  openMode?: 'read' | 'write' | 'readwrite';
2690
- /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */
2698
+ /** The condition on specialization constants under which this parameter is relevant (e.g. shown in the material editor). A map holds when every constant it names has the value it gives: A && !B is {A: true, B: false}. A list of maps holds when any of them does: (A && B) || C is [{A, B}, {C}], A && (B || C) is [{A, B}, {A, C}]. A single map is given as itself, never as a list */
2691
2699
  spec?: {
2692
2700
  [_additionalproperties_: string]: number | boolean;
2693
- };
2701
+ } | Array<{
2702
+ [_additionalproperties_: string]: number | boolean;
2703
+ }>;
2694
2704
  };
2695
2705
  /** Parameter type */
2696
2706
  type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
@@ -2775,10 +2785,12 @@ export type AssetCreationFromDescription = ({
2775
2785
  format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
2776
2786
  /** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
2777
2787
  openMode?: 'read' | 'write' | 'readwrite';
2778
- /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */
2788
+ /** The condition on specialization constants under which this parameter is relevant (e.g. shown in the material editor). A map holds when every constant it names has the value it gives: A && !B is {A: true, B: false}. A list of maps holds when any of them does: (A && B) || C is [{A, B}, {C}], A && (B || C) is [{A, B}, {A, C}]. A single map is given as itself, never as a list */
2779
2789
  spec?: {
2780
2790
  [_additionalproperties_: string]: number | boolean;
2781
- };
2791
+ } | Array<{
2792
+ [_additionalproperties_: string]: number | boolean;
2793
+ }>;
2782
2794
  };
2783
2795
  /** Parameter type */
2784
2796
  type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
@@ -2870,12 +2882,12 @@ export type DuplicationRequestId = string;
2870
2882
  export type DuplicationRequest = {
2871
2883
  /** The account duplicating the assets, absent for a user's request */
2872
2884
  account_id?: string;
2873
- asset_types?: Array<'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'navmesh' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'shader_context' | 'skeleton' | 'sound' | 'texture' | 'texture_3d' | 'volume_material'>;
2885
+ asset_types?: Array<'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'nav_mesh' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'shader_context' | 'skeleton' | 'sound' | 'texture' | 'texture_3d' | 'volume_material'>;
2874
2886
  /** The copies, sorted by id. A completed or failed request has none left. */
2875
2887
  assets: Array<{
2876
2888
  /** The id of the copy */
2877
2889
  asset_id: string;
2878
- asset_type: 'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'navmesh' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'shader_context' | 'skeleton' | 'sound' | 'texture' | 'texture_3d' | 'volume_material';
2890
+ asset_type: 'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'nav_mesh' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'shader_context' | 'skeleton' | 'sound' | 'texture' | 'texture_3d' | 'volume_material';
2879
2891
  /** What it depends on, copies and sources alike */
2880
2892
  dependencies: Array<{
2881
2893
  /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
@@ -2922,7 +2934,7 @@ export type DuplicationRequest = {
2922
2934
  /** When a draft, a completed request or a failed one is deleted */
2923
2935
  expires_at?: string;
2924
2936
  folders_by_type: Array<{
2925
- asset_type: 'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'navmesh' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'shader_context' | 'skeleton' | 'sound' | 'texture' | 'texture_3d' | 'volume_material';
2937
+ asset_type: 'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'nav_mesh' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'shader_context' | 'skeleton' | 'sound' | 'texture' | 'texture_3d' | 'volume_material';
2926
2938
  /** Folder unique identifier */
2927
2939
  folder_id: string;
2928
2940
  }>;
@@ -3143,14 +3155,21 @@ export type AssetGenerationOptions = {
3143
3155
  submesh_indices_per_mesh: Array<Array<number>>;
3144
3156
  };
3145
3157
  } | {
3146
- asset_type: 'navmesh';
3147
- data_pipeline: 'navmesh-baker';
3148
- /** What a navmesh is baked from, submeshes of meshes, and how Recast bakes it: each setting left out takes its default. The data pipeline scheduler adds the asset's asset_name. */
3158
+ asset_type: 'nav_mesh';
3159
+ data_pipeline: 'nav-mesh-baker';
3160
+ /** List of mesh references with submesh instances for baking, and how Recast bakes it: each setting left out takes its default. The data pipeline scheduler adds the asset's asset_name. All triangles use a default area cost of 1.0 (walkable). */
3149
3161
  options: {
3150
- /** Traversal cost multiplier of each area, by area id: 1 for an area left out */
3151
- area_costs?: Array<number>;
3162
+ /** Name of the navmesh asset (shown in the navmesh description). Defaults to "navmesh" if omitted. */
3163
+ asset_name?: string;
3152
3164
  /** Border around a tile, in voxels */
3153
3165
  border_size?: number;
3166
+ /** Axis-aligned bounding box restricting which geometry is baked into the navmesh. Triangles outside are discarded; triangles partially inside are clipped. Omit to bake all geometry. */
3167
+ bounding_box?: {
3168
+ /** Maximum point of the box */
3169
+ max: Array<number>;
3170
+ /** Minimum point of the box */
3171
+ min: Array<number>;
3172
+ };
3154
3173
  /** Build a bounding volume tree for each tile */
3155
3174
  build_bv_tree?: boolean;
3156
3175
  /** Build the detail mesh of each tile */
@@ -3171,14 +3190,32 @@ export type AssetGenerationOptions = {
3171
3190
  max_verts_per_poly?: number;
3172
3191
  /** Area under which a region is merged into a larger one, in voxels */
3173
3192
  merge_region_area?: number;
3174
- /** The meshes the navmesh is baked from */
3175
- mesh_ids: Array<string>;
3193
+ /** List of mesh references with submesh instances for baking */
3194
+ meshes: Array<{
3195
+ /** UUID of the mesh asset */
3196
+ mesh_id: string;
3197
+ /** Submeshes with instances from this mesh */
3198
+ submeshes: Array<{
3199
+ /** Instances of this submesh with transforms */
3200
+ instances: Array<{
3201
+ /** World-space transform (position, orientation, scale) */
3202
+ transform: {
3203
+ /** World orientation as quaternion (x, y, z, w) */
3204
+ orientation: Array<number>;
3205
+ /** World position in meters */
3206
+ position: Array<number>;
3207
+ /** World scale (x, y, z) */
3208
+ scale: Array<number>;
3209
+ };
3210
+ }>;
3211
+ /** Index of the submesh within the mesh's submesh array */
3212
+ submesh_id: number;
3213
+ }>;
3214
+ }>;
3176
3215
  /** Area of the smallest region kept, in voxels */
3177
3216
  min_region_area?: number;
3178
3217
  /** How the walkable area is partitioned into regions */
3179
3218
  partition_type?: 'watershed' | 'monotone' | 'layers';
3180
- /** For each mesh of mesh_ids, at the same index, the submeshes baked */
3181
- submesh_indices_per_mesh: Array<Array<number>>;
3182
3219
  /** Size of a tile, in voxels */
3183
3220
  tile_size?: number;
3184
3221
  /** Height of a step an agent climbs, in voxels */
@@ -3219,7 +3256,7 @@ export type EnvironmentAssetListFilters = {
3219
3256
  /** Include the assets shared with the platform, from any environment */
3220
3257
  include_public_assets?: boolean;
3221
3258
  };
3222
- export type AssetContainer = 'action_maps' | 'animations' | 'animation_graphs' | 'animation_sequences' | 'animation_sets' | 'collision_geometries' | 'cubemaps' | 'event_maps' | 'materials' | 'meshes' | 'modules' | 'navmeshes' | 'point_clouds' | 'render_graphs' | 'scenes' | 'scripts' | 'shaders' | 'shader_contexts' | 'skeletons' | 'sounds' | 'textures' | 'textures_3d' | 'volume_materials';
3259
+ export type AssetContainer = 'action_maps' | 'animations' | 'animation_graphs' | 'animation_sequences' | 'animation_sets' | 'collision_geometries' | 'cubemaps' | 'event_maps' | 'materials' | 'meshes' | 'modules' | 'nav_meshes' | 'point_clouds' | 'render_graphs' | 'scenes' | 'scripts' | 'shaders' | 'shader_contexts' | 'skeletons' | 'sounds' | 'textures' | 'textures_3d' | 'volume_materials';
3223
3260
  /** A change of an asset's metadata, merged into them, a key set to null removed, the others kept */
3224
3261
  export type AssetMetaChange = {
3225
3262
  kind?: 'slang' | 'glsl' | null;
@@ -3230,10 +3267,10 @@ export type AssetMetaChange = {
3230
3267
  };
3231
3268
  /** An asset as platform-management holds it, where it is included, and how it was edited */
3232
3269
  export type AssetDetails = {
3233
- asset_container: 'action_maps' | 'animations' | 'animation_graphs' | 'animation_sequences' | 'animation_sets' | 'collision_geometries' | 'cubemaps' | 'event_maps' | 'materials' | 'meshes' | 'modules' | 'navmeshes' | 'point_clouds' | 'render_graphs' | 'scenes' | 'scripts' | 'shaders' | 'shader_contexts' | 'skeletons' | 'sounds' | 'textures' | 'textures_3d' | 'volume_materials';
3270
+ asset_container: 'action_maps' | 'animations' | 'animation_graphs' | 'animation_sequences' | 'animation_sets' | 'collision_geometries' | 'cubemaps' | 'event_maps' | 'materials' | 'meshes' | 'modules' | 'nav_meshes' | 'point_clouds' | 'render_graphs' | 'scenes' | 'scripts' | 'shaders' | 'shader_contexts' | 'skeletons' | 'sounds' | 'textures' | 'textures_3d' | 'volume_materials';
3234
3271
  /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
3235
3272
  asset_id: string;
3236
- asset_type: 'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'navmesh' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'shader_context' | 'skeleton' | 'sound' | 'texture' | 'texture_3d' | 'volume_material';
3273
+ asset_type: 'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'nav_mesh' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'shader_context' | 'skeleton' | 'sound' | 'texture' | 'texture_3d' | 'volume_material';
3237
3274
  contributors?: Array<{
3238
3275
  contribution_count: number;
3239
3276
  /** A user of an environment: a registered user, an API key's user, or an account's user. */
@@ -3630,7 +3667,7 @@ export type AssetDescription = {
3630
3667
  channels: Array<{
3631
3668
  /** Offset in bytes from the beginning of the associated buffer where the first element of the first attribute can be found */
3632
3669
  dataOffset: number;
3633
- /** Size of this channel in bytes */
3670
+ /** Size of this channel in bytes. Note that every channel must be aligned to 16 bytes. */
3634
3671
  dataSize: number;
3635
3672
  /** Number of elements that make one attribute. 2 for vec2, 3 for vec3, 16 for mat4, etc. */
3636
3673
  elementCount: number;
@@ -3659,7 +3696,7 @@ export type AssetDescription = {
3659
3696
  channels: Array<{
3660
3697
  /** Offset in bytes from the beginning of the associated buffer where the first element of the first attribute can be found */
3661
3698
  dataOffset: number;
3662
- /** Size of this channel in bytes */
3699
+ /** Size of this channel in bytes. Note that every channel must be aligned to 16 bytes. */
3663
3700
  dataSize: number;
3664
3701
  /** Number of elements that make one attribute. 2 for vec2, 3 for vec3, 16 for mat4, etc. */
3665
3702
  elementCount: number;
@@ -3698,12 +3735,7 @@ export type AssetDescription = {
3698
3735
  /** Unique identifier for the asset */
3699
3736
  uuid: string;
3700
3737
  } | {
3701
- /** Area cost overrides (area ID -> traversal cost multiplier). Only non-default (!= 1.0f) entries need to be stored. */
3702
- areaCosts?: Array<{
3703
- areaId: number;
3704
- cost: number;
3705
- }>;
3706
- /** World-space axis-aligned bounding box of the entire navmesh */
3738
+ /** World-space axis-aligned bounding box of the entire nav mesh */
3707
3739
  boundingBox: {
3708
3740
  /** Maximum point of the box */
3709
3741
  max: Array<number>;
@@ -3748,7 +3780,7 @@ export type AssetDescription = {
3748
3780
  channels: Array<{
3749
3781
  /** Offset in bytes from the beginning of the associated buffer where the first element of the first attribute can be found */
3750
3782
  dataOffset: number;
3751
- /** Size of this channel in bytes */
3783
+ /** Size of this channel in bytes. Note that every channel must be aligned to 16 bytes. */
3752
3784
  dataSize: number;
3753
3785
  /** Number of elements that make one attribute. 2 for vec2, 3 for vec3, 16 for mat4, etc. */
3754
3786
  elementCount: number;
@@ -4246,10 +4278,12 @@ export type AssetDescription = {
4246
4278
  format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
4247
4279
  /** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
4248
4280
  openMode?: 'read' | 'write' | 'readwrite';
4249
- /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */
4281
+ /** The condition on specialization constants under which this parameter is relevant (e.g. shown in the material editor). A map holds when every constant it names has the value it gives: A && !B is {A: true, B: false}. A list of maps holds when any of them does: (A && B) || C is [{A, B}, {C}], A && (B || C) is [{A, B}, {A, C}]. A single map is given as itself, never as a list */
4250
4282
  spec?: {
4251
4283
  [_additionalproperties_: string]: number | boolean;
4252
- };
4284
+ } | Array<{
4285
+ [_additionalproperties_: string]: number | boolean;
4286
+ }>;
4253
4287
  };
4254
4288
  /** Parameter type */
4255
4289
  type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
@@ -4390,10 +4424,12 @@ export type AssetDescription = {
4390
4424
  format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
4391
4425
  /** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
4392
4426
  openMode?: 'read' | 'write' | 'readwrite';
4393
- /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */
4427
+ /** The condition on specialization constants under which this parameter is relevant (e.g. shown in the material editor). A map holds when every constant it names has the value it gives: A && !B is {A: true, B: false}. A list of maps holds when any of them does: (A && B) || C is [{A, B}, {C}], A && (B || C) is [{A, B}, {A, C}]. A single map is given as itself, never as a list */
4394
4428
  spec?: {
4395
4429
  [_additionalproperties_: string]: number | boolean;
4396
- };
4430
+ } | Array<{
4431
+ [_additionalproperties_: string]: number | boolean;
4432
+ }>;
4397
4433
  };
4398
4434
  /** Parameter type */
4399
4435
  type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
@@ -4478,10 +4514,12 @@ export type AssetDescription = {
4478
4514
  format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
4479
4515
  /** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
4480
4516
  openMode?: 'read' | 'write' | 'readwrite';
4481
- /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */
4517
+ /** The condition on specialization constants under which this parameter is relevant (e.g. shown in the material editor). A map holds when every constant it names has the value it gives: A && !B is {A: true, B: false}. A list of maps holds when any of them does: (A && B) || C is [{A, B}, {C}], A && (B || C) is [{A, B}, {A, C}]. A single map is given as itself, never as a list */
4482
4518
  spec?: {
4483
4519
  [_additionalproperties_: string]: number | boolean;
4484
- };
4520
+ } | Array<{
4521
+ [_additionalproperties_: string]: number | boolean;
4522
+ }>;
4485
4523
  };
4486
4524
  /** Parameter type */
4487
4525
  type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
@@ -4551,10 +4589,12 @@ export type AssetDescription = {
4551
4589
  format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
4552
4590
  /** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
4553
4591
  openMode?: 'read' | 'write' | 'readwrite';
4554
- /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */
4592
+ /** The condition on specialization constants under which this parameter is relevant (e.g. shown in the material editor). A map holds when every constant it names has the value it gives: A && !B is {A: true, B: false}. A list of maps holds when any of them does: (A && B) || C is [{A, B}, {C}], A && (B || C) is [{A, B}, {A, C}]. A single map is given as itself, never as a list */
4555
4593
  spec?: {
4556
4594
  [_additionalproperties_: string]: number | boolean;
4557
- };
4595
+ } | Array<{
4596
+ [_additionalproperties_: string]: number | boolean;
4597
+ }>;
4558
4598
  };
4559
4599
  /** Parameter type */
4560
4600
  type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
@@ -5423,10 +5463,12 @@ export type EditableAssetDescription = {
5423
5463
  format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
5424
5464
  /** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
5425
5465
  openMode?: 'read' | 'write' | 'readwrite';
5426
- /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */
5466
+ /** The condition on specialization constants under which this parameter is relevant (e.g. shown in the material editor). A map holds when every constant it names has the value it gives: A && !B is {A: true, B: false}. A list of maps holds when any of them does: (A && B) || C is [{A, B}, {C}], A && (B || C) is [{A, B}, {A, C}]. A single map is given as itself, never as a list */
5427
5467
  spec?: {
5428
5468
  [_additionalproperties_: string]: number | boolean;
5429
- };
5469
+ } | Array<{
5470
+ [_additionalproperties_: string]: number | boolean;
5471
+ }>;
5430
5472
  };
5431
5473
  /** Parameter type */
5432
5474
  type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
@@ -5567,10 +5609,12 @@ export type EditableAssetDescription = {
5567
5609
  format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
5568
5610
  /** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
5569
5611
  openMode?: 'read' | 'write' | 'readwrite';
5570
- /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */
5612
+ /** The condition on specialization constants under which this parameter is relevant (e.g. shown in the material editor). A map holds when every constant it names has the value it gives: A && !B is {A: true, B: false}. A list of maps holds when any of them does: (A && B) || C is [{A, B}, {C}], A && (B || C) is [{A, B}, {A, C}]. A single map is given as itself, never as a list */
5571
5613
  spec?: {
5572
5614
  [_additionalproperties_: string]: number | boolean;
5573
- };
5615
+ } | Array<{
5616
+ [_additionalproperties_: string]: number | boolean;
5617
+ }>;
5574
5618
  };
5575
5619
  /** Parameter type */
5576
5620
  type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
@@ -5655,10 +5699,12 @@ export type EditableAssetDescription = {
5655
5699
  format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
5656
5700
  /** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
5657
5701
  openMode?: 'read' | 'write' | 'readwrite';
5658
- /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */
5702
+ /** The condition on specialization constants under which this parameter is relevant (e.g. shown in the material editor). A map holds when every constant it names has the value it gives: A && !B is {A: true, B: false}. A list of maps holds when any of them does: (A && B) || C is [{A, B}, {C}], A && (B || C) is [{A, B}, {A, C}]. A single map is given as itself, never as a list */
5659
5703
  spec?: {
5660
5704
  [_additionalproperties_: string]: number | boolean;
5661
- };
5705
+ } | Array<{
5706
+ [_additionalproperties_: string]: number | boolean;
5707
+ }>;
5662
5708
  };
5663
5709
  /** Parameter type */
5664
5710
  type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
@@ -5726,7 +5772,7 @@ export type EditableAssetDescription = {
5726
5772
  /** Unique identifier for the asset */
5727
5773
  uuid: string;
5728
5774
  };
5729
- export type AssetContainerWithPayload = 'animations' | 'animation_graphs' | 'animation_sequences' | 'collision_geometries' | 'meshes' | 'modules' | 'navmeshes' | 'point_clouds' | 'scripts' | 'shaders' | 'skeletons' | 'sounds' | 'textures' | 'textures_3d';
5775
+ export type AssetContainerWithPayload = 'animations' | 'animation_graphs' | 'animation_sequences' | 'collision_geometries' | 'meshes' | 'modules' | 'nav_meshes' | 'point_clouds' | 'scripts' | 'shaders' | 'skeletons' | 'sounds' | 'textures' | 'textures_3d';
5730
5776
  export type AssetContainerWithGraph = 'animation_graphs' | 'render_graphs' | 'scripts' | 'shaders';
5731
5777
  /** A tool keeping a document of an asset, and when it last wrote it */
5732
5778
  export type AssetDocumentSummary = {
@@ -6099,8 +6145,8 @@ export type Entity = {
6099
6145
  };
6100
6146
  };
6101
6147
  /** Reference to a navigation mesh asset. */
6102
- navmesh_ref?: {
6103
- /** Referenced navmesh (UUID). */
6148
+ nav_mesh_ref?: {
6149
+ /** Referenced nav mesh (UUID). */
6104
6150
  value?: string;
6105
6151
  };
6106
6152
  /** Orthographic projection lens with configurable zoom and depth range. */
@@ -6670,8 +6716,8 @@ export type SceneEntity = {
6670
6716
  };
6671
6717
  };
6672
6718
  /** Reference to a navigation mesh asset. */
6673
- navmesh_ref?: {
6674
- /** Referenced navmesh (UUID). */
6719
+ nav_mesh_ref?: {
6720
+ /** Referenced nav mesh (UUID). */
6675
6721
  value?: string;
6676
6722
  };
6677
6723
  /** Orthographic projection lens with configurable zoom and depth range. */
@@ -7320,7 +7366,7 @@ export type ConversionCreated = {
7320
7366
  used_assets?: Array<{
7321
7367
  /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
7322
7368
  asset_id: string;
7323
- asset_type: 'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'navmesh' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'shader_context' | 'skeleton' | 'sound' | 'texture' | 'texture_3d' | 'volume_material';
7369
+ asset_type: 'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'nav_mesh' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'shader_context' | 'skeleton' | 'sound' | 'texture' | 'texture_3d' | 'volume_material';
7324
7370
  }>;
7325
7371
  };
7326
7372
  /** A conversion, or one of its steps, moved on, before it completed. */
@@ -8158,10 +8204,12 @@ export type AssetCreationFromDescriptionInput = ({
8158
8204
  format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
8159
8205
  /** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
8160
8206
  openMode?: 'read' | 'write' | 'readwrite';
8161
- /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */
8207
+ /** The condition on specialization constants under which this parameter is relevant (e.g. shown in the material editor). A map holds when every constant it names has the value it gives: A && !B is {A: true, B: false}. A list of maps holds when any of them does: (A && B) || C is [{A, B}, {C}], A && (B || C) is [{A, B}, {A, C}]. A single map is given as itself, never as a list */
8162
8208
  spec?: {
8163
8209
  [_additionalproperties_: string]: number | boolean;
8164
- };
8210
+ } | Array<{
8211
+ [_additionalproperties_: string]: number | boolean;
8212
+ }>;
8165
8213
  };
8166
8214
  /** Parameter type */
8167
8215
  type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
@@ -8308,10 +8356,12 @@ export type AssetCreationFromDescriptionInput = ({
8308
8356
  format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
8309
8357
  /** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
8310
8358
  openMode?: 'read' | 'write' | 'readwrite';
8311
- /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */
8359
+ /** The condition on specialization constants under which this parameter is relevant (e.g. shown in the material editor). A map holds when every constant it names has the value it gives: A && !B is {A: true, B: false}. A list of maps holds when any of them does: (A && B) || C is [{A, B}, {C}], A && (B || C) is [{A, B}, {A, C}]. A single map is given as itself, never as a list */
8312
8360
  spec?: {
8313
8361
  [_additionalproperties_: string]: number | boolean;
8314
- };
8362
+ } | Array<{
8363
+ [_additionalproperties_: string]: number | boolean;
8364
+ }>;
8315
8365
  };
8316
8366
  /** Parameter type */
8317
8367
  type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
@@ -8396,10 +8446,12 @@ export type AssetCreationFromDescriptionInput = ({
8396
8446
  format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
8397
8447
  /** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
8398
8448
  openMode?: 'read' | 'write' | 'readwrite';
8399
- /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */
8449
+ /** The condition on specialization constants under which this parameter is relevant (e.g. shown in the material editor). A map holds when every constant it names has the value it gives: A && !B is {A: true, B: false}. A list of maps holds when any of them does: (A && B) || C is [{A, B}, {C}], A && (B || C) is [{A, B}, {A, C}]. A single map is given as itself, never as a list */
8400
8450
  spec?: {
8401
8451
  [_additionalproperties_: string]: number | boolean;
8402
- };
8452
+ } | Array<{
8453
+ [_additionalproperties_: string]: number | boolean;
8454
+ }>;
8403
8455
  };
8404
8456
  /** Parameter type */
8405
8457
  type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
@@ -9174,10 +9226,12 @@ export type EditableAssetDescriptionInput = {
9174
9226
  format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
9175
9227
  /** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
9176
9228
  openMode?: 'read' | 'write' | 'readwrite';
9177
- /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */
9229
+ /** The condition on specialization constants under which this parameter is relevant (e.g. shown in the material editor). A map holds when every constant it names has the value it gives: A && !B is {A: true, B: false}. A list of maps holds when any of them does: (A && B) || C is [{A, B}, {C}], A && (B || C) is [{A, B}, {A, C}]. A single map is given as itself, never as a list */
9178
9230
  spec?: {
9179
9231
  [_additionalproperties_: string]: number | boolean;
9180
- };
9232
+ } | Array<{
9233
+ [_additionalproperties_: string]: number | boolean;
9234
+ }>;
9181
9235
  };
9182
9236
  /** Parameter type */
9183
9237
  type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
@@ -9312,10 +9366,12 @@ export type EditableAssetDescriptionInput = {
9312
9366
  format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
9313
9367
  /** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
9314
9368
  openMode?: 'read' | 'write' | 'readwrite';
9315
- /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */
9369
+ /** The condition on specialization constants under which this parameter is relevant (e.g. shown in the material editor). A map holds when every constant it names has the value it gives: A && !B is {A: true, B: false}. A list of maps holds when any of them does: (A && B) || C is [{A, B}, {C}], A && (B || C) is [{A, B}, {A, C}]. A single map is given as itself, never as a list */
9316
9370
  spec?: {
9317
9371
  [_additionalproperties_: string]: number | boolean;
9318
- };
9372
+ } | Array<{
9373
+ [_additionalproperties_: string]: number | boolean;
9374
+ }>;
9319
9375
  };
9320
9376
  /** Parameter type */
9321
9377
  type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
@@ -9400,10 +9456,12 @@ export type EditableAssetDescriptionInput = {
9400
9456
  format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
9401
9457
  /** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
9402
9458
  openMode?: 'read' | 'write' | 'readwrite';
9403
- /** Specialization constants gating this parameter's relevance: the key is a constant name, the value is what it must hold for the parameter to be relevant (e.g. shown in the material editor) */
9459
+ /** The condition on specialization constants under which this parameter is relevant (e.g. shown in the material editor). A map holds when every constant it names has the value it gives: A && !B is {A: true, B: false}. A list of maps holds when any of them does: (A && B) || C is [{A, B}, {C}], A && (B || C) is [{A, B}, {A, C}]. A single map is given as itself, never as a list */
9404
9460
  spec?: {
9405
9461
  [_additionalproperties_: string]: number | boolean;
9406
- };
9462
+ } | Array<{
9463
+ [_additionalproperties_: string]: number | boolean;
9464
+ }>;
9407
9465
  };
9408
9466
  /** Parameter type */
9409
9467
  type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
@@ -10404,14 +10462,21 @@ export declare function createImport({ folder_id, body, }: {
10404
10462
  submesh_indices_per_mesh: Array<Array<number>>;
10405
10463
  };
10406
10464
  } | {
10407
- asset_type: 'navmesh';
10408
- data_pipeline: 'navmesh-baker';
10409
- /** What a navmesh is baked from, submeshes of meshes, and how Recast bakes it: each setting left out takes its default. The data pipeline scheduler adds the asset's asset_name. */
10465
+ asset_type: 'nav_mesh';
10466
+ data_pipeline: 'nav-mesh-baker';
10467
+ /** List of mesh references with submesh instances for baking, and how Recast bakes it: each setting left out takes its default. The data pipeline scheduler adds the asset's asset_name. All triangles use a default area cost of 1.0 (walkable). */
10410
10468
  options: {
10411
- /** Traversal cost multiplier of each area, by area id: 1 for an area left out */
10412
- area_costs?: Array<number>;
10469
+ /** Name of the navmesh asset (shown in the navmesh description). Defaults to "navmesh" if omitted. */
10470
+ asset_name?: string;
10413
10471
  /** Border around a tile, in voxels */
10414
10472
  border_size?: number;
10473
+ /** Axis-aligned bounding box restricting which geometry is baked into the navmesh. Triangles outside are discarded; triangles partially inside are clipped. Omit to bake all geometry. */
10474
+ bounding_box?: {
10475
+ /** Maximum point of the box */
10476
+ max: Array<number>;
10477
+ /** Minimum point of the box */
10478
+ min: Array<number>;
10479
+ };
10415
10480
  /** Build a bounding volume tree for each tile */
10416
10481
  build_bv_tree?: boolean;
10417
10482
  /** Build the detail mesh of each tile */
@@ -10432,14 +10497,32 @@ export declare function createImport({ folder_id, body, }: {
10432
10497
  max_verts_per_poly?: number;
10433
10498
  /** Area under which a region is merged into a larger one, in voxels */
10434
10499
  merge_region_area?: number;
10435
- /** The meshes the navmesh is baked from */
10436
- mesh_ids: Array<string>;
10500
+ /** List of mesh references with submesh instances for baking */
10501
+ meshes: Array<{
10502
+ /** UUID of the mesh asset */
10503
+ mesh_id: string;
10504
+ /** Submeshes with instances from this mesh */
10505
+ submeshes: Array<{
10506
+ /** Instances of this submesh with transforms */
10507
+ instances: Array<{
10508
+ /** World-space transform (position, orientation, scale) */
10509
+ transform: {
10510
+ /** World orientation as quaternion (x, y, z, w) */
10511
+ orientation: Array<number>;
10512
+ /** World position in meters */
10513
+ position: Array<number>;
10514
+ /** World scale (x, y, z) */
10515
+ scale: Array<number>;
10516
+ };
10517
+ }>;
10518
+ /** Index of the submesh within the mesh's submesh array */
10519
+ submesh_id: number;
10520
+ }>;
10521
+ }>;
10437
10522
  /** Area of the smallest region kept, in voxels */
10438
10523
  min_region_area?: number;
10439
10524
  /** How the walkable area is partitioned into regions */
10440
10525
  partition_type?: 'watershed' | 'monotone' | 'layers';
10441
- /** For each mesh of mesh_ids, at the same index, the submeshes baked */
10442
- submesh_indices_per_mesh: Array<Array<number>>;
10443
10526
  /** Size of a tile, in voxels */
10444
10527
  tile_size?: number;
10445
10528
  /** Height of a step an agent climbs, in voxels */
@@ -11177,7 +11260,7 @@ export declare function getSceneAABB({ scene_id, }: {
11177
11260
  * @throws {InsufficientPermissions}
11178
11261
  * @throws {TooManyRequests}
11179
11262
  */
11180
- export declare function createEntity({ scene_id, animation_controller, animation_sequence_controller, bone, box_geometry, camera, capsule_geometry, character_controller, collision_geometry_ref, constraint, constraint_actuator, culling_geometry, custom_lens, cylinder_geometry, debug_name, decal_projector, environment, joint, label, lineage, local_aabb, local_transform, material, material_ref, measure, mesh_ref, morph_targets, navmesh_ref, orthographic_lens, overrider, perspective_lens, physics_material, plane_geometry, point_cloud_ref, point_light, reflection_probe, rigid_body, scene_ref, script_element, script_map, shadow_caster, skeleton_ref, sound_ref, sphere_geometry, spline, spot_light, tags, vehicle_controller, volume_filter, volume_material_ref, volume_ref, }: {
11263
+ export declare function createEntity({ scene_id, animation_controller, animation_sequence_controller, bone, box_geometry, camera, capsule_geometry, character_controller, collision_geometry_ref, constraint, constraint_actuator, culling_geometry, custom_lens, cylinder_geometry, debug_name, decal_projector, environment, joint, label, lineage, local_aabb, local_transform, material, material_ref, measure, mesh_ref, morph_targets, nav_mesh_ref, orthographic_lens, overrider, perspective_lens, physics_material, plane_geometry, point_cloud_ref, point_light, reflection_probe, rigid_body, scene_ref, script_element, script_map, shadow_caster, skeleton_ref, sound_ref, sphere_geometry, spline, spot_light, tags, vehicle_controller, volume_filter, volume_material_ref, volume_ref, }: {
11181
11264
  scene_id: AssetId;
11182
11265
  /** Drives skeletal animation using an Animation Graph and Animation Set; animates descendant skinned meshes whose skeletons are compatible with the set. */
11183
11266
  animation_controller?: {
@@ -11465,8 +11548,8 @@ export declare function createEntity({ scene_id, animation_controller, animation
11465
11548
  };
11466
11549
  };
11467
11550
  /** Reference to a navigation mesh asset. */
11468
- navmesh_ref?: {
11469
- /** Referenced navmesh (UUID). */
11551
+ nav_mesh_ref?: {
11552
+ /** Referenced nav mesh (UUID). */
11470
11553
  value?: string;
11471
11554
  };
11472
11555
  /** Orthographic projection lens with configurable zoom and depth range. */
@@ -11773,7 +11856,7 @@ export declare function getEntity({ scene_id, entity_id, compute_global_transfor
11773
11856
  * @throws {InsufficientPermissions}
11774
11857
  * @throws {TooManyRequests}
11775
11858
  */
11776
- export declare function updateEntity({ scene_id, entity_id, animation_controller, animation_sequence_controller, bone, box_geometry, camera, capsule_geometry, character_controller, collision_geometry_ref, constraint, constraint_actuator, culling_geometry, custom_lens, cylinder_geometry, debug_name, decal_projector, environment, joint, label, lineage, local_aabb, local_transform, material, material_ref, measure, mesh_ref, morph_targets, navmesh_ref, orthographic_lens, overrider, perspective_lens, physics_material, plane_geometry, point_cloud_ref, point_light, reflection_probe, rigid_body, scene_ref, script_element, script_map, shadow_caster, skeleton_ref, sound_ref, sphere_geometry, spline, spot_light, tags, vehicle_controller, volume_filter, volume_material_ref, volume_ref, }: {
11859
+ export declare function updateEntity({ scene_id, entity_id, animation_controller, animation_sequence_controller, bone, box_geometry, camera, capsule_geometry, character_controller, collision_geometry_ref, constraint, constraint_actuator, culling_geometry, custom_lens, cylinder_geometry, debug_name, decal_projector, environment, joint, label, lineage, local_aabb, local_transform, material, material_ref, measure, mesh_ref, morph_targets, nav_mesh_ref, orthographic_lens, overrider, perspective_lens, physics_material, plane_geometry, point_cloud_ref, point_light, reflection_probe, rigid_body, scene_ref, script_element, script_map, shadow_caster, skeleton_ref, sound_ref, sphere_geometry, spline, spot_light, tags, vehicle_controller, volume_filter, volume_material_ref, volume_ref, }: {
11777
11860
  scene_id: AssetId;
11778
11861
  entity_id: string;
11779
11862
  /** Drives skeletal animation using an Animation Graph and Animation Set; animates descendant skinned meshes whose skeletons are compatible with the set. */
@@ -12062,8 +12145,8 @@ export declare function updateEntity({ scene_id, entity_id, animation_controller
12062
12145
  };
12063
12146
  };
12064
12147
  /** Reference to a navigation mesh asset. */
12065
- navmesh_ref?: {
12066
- /** Referenced navmesh (UUID). */
12148
+ nav_mesh_ref?: {
12149
+ /** Referenced nav mesh (UUID). */
12067
12150
  value?: string;
12068
12151
  };
12069
12152
  /** Orthographic projection lens with configurable zoom and depth range. */
@@ -12599,8 +12682,8 @@ export declare function updateEntity({ scene_id, entity_id, animation_controller
12599
12682
  [_additionalproperties_: string]: number;
12600
12683
  };
12601
12684
  };
12602
- navmesh_ref: {
12603
- /** Referenced navmesh (UUID). */
12685
+ nav_mesh_ref: {
12686
+ /** Referenced nav mesh (UUID). */
12604
12687
  value?: string;
12605
12688
  };
12606
12689
  orthographic_lens: {