@3dverse/api 0.19.1 → 0.20.1

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 nav mesh asset (shown in the nav mesh description). Defaults to "nav_mesh" 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 nav mesh. 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,27 +3735,20 @@ 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>;
3710
3742
  /** Minimum point of the box */
3711
3743
  min: Array<number>;
3712
3744
  };
3713
- /** World-space origin of the tile grid (bottom-left corner at layer 0) */
3714
- gridOrigin: Array<number>;
3715
3745
  /** Name of the asset */
3716
3746
  name: string;
3717
- /** Size in bytes of the payloads of all the tiles. */
3747
+ /** Size in bytes of the payload, the sum of the tiles' payloadSize. */
3718
3748
  payloadSize: number;
3719
3749
  /** World-space dimensions of each tile: {width along x, height along z, depth along y}. Tiles are square on the xz-plane, so x == y. z is always 0. */
3720
3750
  tileDimensions: Array<number>;
3721
- /** Description of each tile of the grid holding walkable area, the payload tile<N> storing the N-th. */
3751
+ /** Description of each tile of the grid holding walkable area. The payload stores the tiles back to back, in this order, each taking its payloadSize bytes. */
3722
3752
  tiles: Array<{
3723
3753
  /** World-space axis-aligned bounding box of this tile. */
3724
3754
  boundingBox: {
@@ -3729,7 +3759,7 @@ export type AssetDescription = {
3729
3759
  };
3730
3760
  /** Grid position within the tile grid. */
3731
3761
  gridPosition: Array<number>;
3732
- /** Size in bytes of the raw binary tile payload. */
3762
+ /** Size in bytes of this tile's data within the payload. */
3733
3763
  payloadSize: number;
3734
3764
  }>;
3735
3765
  /** Unique identifier for the asset */
@@ -3748,7 +3778,7 @@ export type AssetDescription = {
3748
3778
  channels: Array<{
3749
3779
  /** Offset in bytes from the beginning of the associated buffer where the first element of the first attribute can be found */
3750
3780
  dataOffset: number;
3751
- /** Size of this channel in bytes */
3781
+ /** Size of this channel in bytes. Note that every channel must be aligned to 16 bytes. */
3752
3782
  dataSize: number;
3753
3783
  /** Number of elements that make one attribute. 2 for vec2, 3 for vec3, 16 for mat4, etc. */
3754
3784
  elementCount: number;
@@ -4246,10 +4276,12 @@ export type AssetDescription = {
4246
4276
  format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
4247
4277
  /** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
4248
4278
  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) */
4279
+ /** 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
4280
  spec?: {
4251
4281
  [_additionalproperties_: string]: number | boolean;
4252
- };
4282
+ } | Array<{
4283
+ [_additionalproperties_: string]: number | boolean;
4284
+ }>;
4253
4285
  };
4254
4286
  /** Parameter type */
4255
4287
  type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
@@ -4390,10 +4422,12 @@ export type AssetDescription = {
4390
4422
  format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
4391
4423
  /** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
4392
4424
  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) */
4425
+ /** 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
4426
  spec?: {
4395
4427
  [_additionalproperties_: string]: number | boolean;
4396
- };
4428
+ } | Array<{
4429
+ [_additionalproperties_: string]: number | boolean;
4430
+ }>;
4397
4431
  };
4398
4432
  /** Parameter type */
4399
4433
  type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
@@ -4478,10 +4512,12 @@ export type AssetDescription = {
4478
4512
  format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
4479
4513
  /** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
4480
4514
  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) */
4515
+ /** 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
4516
  spec?: {
4483
4517
  [_additionalproperties_: string]: number | boolean;
4484
- };
4518
+ } | Array<{
4519
+ [_additionalproperties_: string]: number | boolean;
4520
+ }>;
4485
4521
  };
4486
4522
  /** Parameter type */
4487
4523
  type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
@@ -4551,10 +4587,12 @@ export type AssetDescription = {
4551
4587
  format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
4552
4588
  /** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
4553
4589
  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) */
4590
+ /** 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
4591
  spec?: {
4556
4592
  [_additionalproperties_: string]: number | boolean;
4557
- };
4593
+ } | Array<{
4594
+ [_additionalproperties_: string]: number | boolean;
4595
+ }>;
4558
4596
  };
4559
4597
  /** Parameter type */
4560
4598
  type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
@@ -5423,10 +5461,12 @@ export type EditableAssetDescription = {
5423
5461
  format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
5424
5462
  /** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
5425
5463
  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) */
5464
+ /** 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
5465
  spec?: {
5428
5466
  [_additionalproperties_: string]: number | boolean;
5429
- };
5467
+ } | Array<{
5468
+ [_additionalproperties_: string]: number | boolean;
5469
+ }>;
5430
5470
  };
5431
5471
  /** Parameter type */
5432
5472
  type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
@@ -5567,10 +5607,12 @@ export type EditableAssetDescription = {
5567
5607
  format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
5568
5608
  /** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
5569
5609
  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) */
5610
+ /** 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
5611
  spec?: {
5572
5612
  [_additionalproperties_: string]: number | boolean;
5573
- };
5613
+ } | Array<{
5614
+ [_additionalproperties_: string]: number | boolean;
5615
+ }>;
5574
5616
  };
5575
5617
  /** Parameter type */
5576
5618
  type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
@@ -5655,10 +5697,12 @@ export type EditableAssetDescription = {
5655
5697
  format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
5656
5698
  /** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
5657
5699
  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) */
5700
+ /** 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
5701
  spec?: {
5660
5702
  [_additionalproperties_: string]: number | boolean;
5661
- };
5703
+ } | Array<{
5704
+ [_additionalproperties_: string]: number | boolean;
5705
+ }>;
5662
5706
  };
5663
5707
  /** Parameter type */
5664
5708
  type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
@@ -5726,7 +5770,7 @@ export type EditableAssetDescription = {
5726
5770
  /** Unique identifier for the asset */
5727
5771
  uuid: string;
5728
5772
  };
5729
- export type AssetContainerWithPayload = 'animations' | 'animation_graphs' | 'animation_sequences' | 'collision_geometries' | 'meshes' | 'modules' | 'navmeshes' | 'point_clouds' | 'scripts' | 'shaders' | 'skeletons' | 'sounds' | 'textures' | 'textures_3d';
5773
+ export type AssetContainerWithPayload = 'animations' | 'animation_graphs' | 'animation_sequences' | 'collision_geometries' | 'meshes' | 'modules' | 'nav_meshes' | 'point_clouds' | 'scripts' | 'shaders' | 'skeletons' | 'sounds' | 'textures' | 'textures_3d';
5730
5774
  export type AssetContainerWithGraph = 'animation_graphs' | 'render_graphs' | 'scripts' | 'shaders';
5731
5775
  /** A tool keeping a document of an asset, and when it last wrote it */
5732
5776
  export type AssetDocumentSummary = {
@@ -6099,8 +6143,8 @@ export type Entity = {
6099
6143
  };
6100
6144
  };
6101
6145
  /** Reference to a navigation mesh asset. */
6102
- navmesh_ref?: {
6103
- /** Referenced navmesh (UUID). */
6146
+ nav_mesh_ref?: {
6147
+ /** Referenced nav mesh (UUID). */
6104
6148
  value?: string;
6105
6149
  };
6106
6150
  /** Orthographic projection lens with configurable zoom and depth range. */
@@ -6670,8 +6714,8 @@ export type SceneEntity = {
6670
6714
  };
6671
6715
  };
6672
6716
  /** Reference to a navigation mesh asset. */
6673
- navmesh_ref?: {
6674
- /** Referenced navmesh (UUID). */
6717
+ nav_mesh_ref?: {
6718
+ /** Referenced nav mesh (UUID). */
6675
6719
  value?: string;
6676
6720
  };
6677
6721
  /** Orthographic projection lens with configurable zoom and depth range. */
@@ -7320,7 +7364,7 @@ export type ConversionCreated = {
7320
7364
  used_assets?: Array<{
7321
7365
  /** Asset unique identifier, a version 4 uuid in its canonical lowercase form */
7322
7366
  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';
7367
+ 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
7368
  }>;
7325
7369
  };
7326
7370
  /** A conversion, or one of its steps, moved on, before it completed. */
@@ -8158,10 +8202,12 @@ export type AssetCreationFromDescriptionInput = ({
8158
8202
  format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
8159
8203
  /** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
8160
8204
  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) */
8205
+ /** 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
8206
  spec?: {
8163
8207
  [_additionalproperties_: string]: number | boolean;
8164
- };
8208
+ } | Array<{
8209
+ [_additionalproperties_: string]: number | boolean;
8210
+ }>;
8165
8211
  };
8166
8212
  /** Parameter type */
8167
8213
  type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
@@ -8308,10 +8354,12 @@ export type AssetCreationFromDescriptionInput = ({
8308
8354
  format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
8309
8355
  /** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
8310
8356
  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) */
8357
+ /** 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
8358
  spec?: {
8313
8359
  [_additionalproperties_: string]: number | boolean;
8314
- };
8360
+ } | Array<{
8361
+ [_additionalproperties_: string]: number | boolean;
8362
+ }>;
8315
8363
  };
8316
8364
  /** Parameter type */
8317
8365
  type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
@@ -8396,10 +8444,12 @@ export type AssetCreationFromDescriptionInput = ({
8396
8444
  format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
8397
8445
  /** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
8398
8446
  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) */
8447
+ /** 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
8448
  spec?: {
8401
8449
  [_additionalproperties_: string]: number | boolean;
8402
- };
8450
+ } | Array<{
8451
+ [_additionalproperties_: string]: number | boolean;
8452
+ }>;
8403
8453
  };
8404
8454
  /** Parameter type */
8405
8455
  type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
@@ -9174,10 +9224,12 @@ export type EditableAssetDescriptionInput = {
9174
9224
  format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
9175
9225
  /** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
9176
9226
  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) */
9227
+ /** 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
9228
  spec?: {
9179
9229
  [_additionalproperties_: string]: number | boolean;
9180
- };
9230
+ } | Array<{
9231
+ [_additionalproperties_: string]: number | boolean;
9232
+ }>;
9181
9233
  };
9182
9234
  /** Parameter type */
9183
9235
  type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
@@ -9312,10 +9364,12 @@ export type EditableAssetDescriptionInput = {
9312
9364
  format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
9313
9365
  /** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
9314
9366
  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) */
9367
+ /** 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
9368
  spec?: {
9317
9369
  [_additionalproperties_: string]: number | boolean;
9318
- };
9370
+ } | Array<{
9371
+ [_additionalproperties_: string]: number | boolean;
9372
+ }>;
9319
9373
  };
9320
9374
  /** Parameter type */
9321
9375
  type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
@@ -9400,10 +9454,12 @@ export type EditableAssetDescriptionInput = {
9400
9454
  format?: 'int32' | 'uint32' | 'int64' | 'uint64' | 'float32' | 'float64' | 'vec2' | 'ivec2' | 'vec3' | 'ivec3' | 'vec4' | 'ivec4' | 'color3' | 'color4';
9401
9455
  /** For a parameter of type "buffer" or "render_target_index": how the underlying resource is accessed */
9402
9456
  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) */
9457
+ /** 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
9458
  spec?: {
9405
9459
  [_additionalproperties_: string]: number | boolean;
9406
- };
9460
+ } | Array<{
9461
+ [_additionalproperties_: string]: number | boolean;
9462
+ }>;
9407
9463
  };
9408
9464
  /** Parameter type */
9409
9465
  type: 'vec4' | 'ivec4' | 'quat' | 'color_alpha' | 'vec3' | 'ivec3' | 'color' | 'vec2' | 'ivec2' | 'float' | 'int' | 'uint' | 'bool' | 'texture' | 'render_target_index' | 'buffer';
@@ -10404,14 +10460,21 @@ export declare function createImport({ folder_id, body, }: {
10404
10460
  submesh_indices_per_mesh: Array<Array<number>>;
10405
10461
  };
10406
10462
  } | {
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. */
10463
+ asset_type: 'nav_mesh';
10464
+ data_pipeline: 'nav-mesh-baker';
10465
+ /** 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
10466
  options: {
10411
- /** Traversal cost multiplier of each area, by area id: 1 for an area left out */
10412
- area_costs?: Array<number>;
10467
+ /** Name of the nav mesh asset (shown in the nav mesh description). Defaults to "nav_mesh" if omitted. */
10468
+ asset_name?: string;
10413
10469
  /** Border around a tile, in voxels */
10414
10470
  border_size?: number;
10471
+ /** Axis-aligned bounding box restricting which geometry is baked into the nav mesh. Triangles outside are discarded; triangles partially inside are clipped. Omit to bake all geometry. */
10472
+ bounding_box?: {
10473
+ /** Maximum point of the box */
10474
+ max: Array<number>;
10475
+ /** Minimum point of the box */
10476
+ min: Array<number>;
10477
+ };
10415
10478
  /** Build a bounding volume tree for each tile */
10416
10479
  build_bv_tree?: boolean;
10417
10480
  /** Build the detail mesh of each tile */
@@ -10432,14 +10495,32 @@ export declare function createImport({ folder_id, body, }: {
10432
10495
  max_verts_per_poly?: number;
10433
10496
  /** Area under which a region is merged into a larger one, in voxels */
10434
10497
  merge_region_area?: number;
10435
- /** The meshes the navmesh is baked from */
10436
- mesh_ids: Array<string>;
10498
+ /** List of mesh references with submesh instances for baking */
10499
+ meshes: Array<{
10500
+ /** UUID of the mesh asset */
10501
+ mesh_id: string;
10502
+ /** Submeshes with instances from this mesh */
10503
+ submeshes: Array<{
10504
+ /** Instances of this submesh with transforms */
10505
+ instances: Array<{
10506
+ /** World-space transform (position, orientation, scale) */
10507
+ transform: {
10508
+ /** World orientation as quaternion (x, y, z, w) */
10509
+ orientation: Array<number>;
10510
+ /** World position in meters */
10511
+ position: Array<number>;
10512
+ /** World scale (x, y, z) */
10513
+ scale: Array<number>;
10514
+ };
10515
+ }>;
10516
+ /** Index of the submesh within the mesh's submesh array */
10517
+ submesh_id: number;
10518
+ }>;
10519
+ }>;
10437
10520
  /** Area of the smallest region kept, in voxels */
10438
10521
  min_region_area?: number;
10439
10522
  /** How the walkable area is partitioned into regions */
10440
10523
  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
10524
  /** Size of a tile, in voxels */
10444
10525
  tile_size?: number;
10445
10526
  /** Height of a step an agent climbs, in voxels */
@@ -11177,7 +11258,7 @@ export declare function getSceneAABB({ scene_id, }: {
11177
11258
  * @throws {InsufficientPermissions}
11178
11259
  * @throws {TooManyRequests}
11179
11260
  */
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, }: {
11261
+ 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
11262
  scene_id: AssetId;
11182
11263
  /** Drives skeletal animation using an Animation Graph and Animation Set; animates descendant skinned meshes whose skeletons are compatible with the set. */
11183
11264
  animation_controller?: {
@@ -11465,8 +11546,8 @@ export declare function createEntity({ scene_id, animation_controller, animation
11465
11546
  };
11466
11547
  };
11467
11548
  /** Reference to a navigation mesh asset. */
11468
- navmesh_ref?: {
11469
- /** Referenced navmesh (UUID). */
11549
+ nav_mesh_ref?: {
11550
+ /** Referenced nav mesh (UUID). */
11470
11551
  value?: string;
11471
11552
  };
11472
11553
  /** Orthographic projection lens with configurable zoom and depth range. */
@@ -11773,7 +11854,7 @@ export declare function getEntity({ scene_id, entity_id, compute_global_transfor
11773
11854
  * @throws {InsufficientPermissions}
11774
11855
  * @throws {TooManyRequests}
11775
11856
  */
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, }: {
11857
+ 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
11858
  scene_id: AssetId;
11778
11859
  entity_id: string;
11779
11860
  /** Drives skeletal animation using an Animation Graph and Animation Set; animates descendant skinned meshes whose skeletons are compatible with the set. */
@@ -12062,8 +12143,8 @@ export declare function updateEntity({ scene_id, entity_id, animation_controller
12062
12143
  };
12063
12144
  };
12064
12145
  /** Reference to a navigation mesh asset. */
12065
- navmesh_ref?: {
12066
- /** Referenced navmesh (UUID). */
12146
+ nav_mesh_ref?: {
12147
+ /** Referenced nav mesh (UUID). */
12067
12148
  value?: string;
12068
12149
  };
12069
12150
  /** Orthographic projection lens with configurable zoom and depth range. */
@@ -12599,8 +12680,8 @@ export declare function updateEntity({ scene_id, entity_id, animation_controller
12599
12680
  [_additionalproperties_: string]: number;
12600
12681
  };
12601
12682
  };
12602
- navmesh_ref: {
12603
- /** Referenced navmesh (UUID). */
12683
+ nav_mesh_ref: {
12684
+ /** Referenced nav mesh (UUID). */
12604
12685
  value?: string;
12605
12686
  };
12606
12687
  orthographic_lens: {