@3dverse/api 0.8.10 → 0.8.12

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.
@@ -467,7 +467,7 @@ export declare function getUploadTasksInFolder({ folder_id, offset, limit, }: {
467
467
  }, headers?: AxiosRequestHeaders): AxiosPromise<Array<GetUploadTasksInFolder_UploadTask>>;
468
468
  export type GetFolderAssets_Filters = {
469
469
  asset_name?: string;
470
- asset_type?: Array<'action_map' | 'algorithm' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'skeleton' | 'sound' | 'texture' | 'texture_1d' | 'texture_3d' | 'volume_material'> | 'action_map' | 'algorithm' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'skeleton' | 'sound' | 'texture' | 'texture_1d' | 'texture_3d' | 'volume_material';
470
+ asset_type?: Array<'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'skeleton' | 'sound' | 'texture' | 'texture_1d' | 'texture_3d' | 'volume_material'> | 'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'skeleton' | 'sound' | 'texture' | 'texture_1d' | 'texture_3d' | 'volume_material';
471
471
  source_file?: Array<string> | string | 'exclude';
472
472
  };
473
473
  export type GetFolderAssets_AssetCount = {
@@ -476,7 +476,6 @@ export type GetFolderAssets_AssetCount = {
476
476
  };
477
477
  export type GetFolderAssets__index_AssetList_AssetList = {
478
478
  action_maps?: Array<GetFolderAssets_Object>;
479
- algorithms?: Array<GetFolderAssets_Object>;
480
479
  animation_graphs?: Array<GetFolderAssets_Object>;
481
480
  animation_sequences?: Array<GetFolderAssets_Object>;
482
481
  animation_sets?: Array<GetFolderAssets_Object>;
@@ -514,17 +513,17 @@ export declare function getFolderAssets({ folder_id, offset, limit, filter, recu
514
513
  recursive?: boolean;
515
514
  }, headers?: AxiosRequestHeaders): AxiosPromise<GetFolderAssets__index_AssetList_AssetList>;
516
515
  export type CreateAsset_NewAsset = {
517
- asset_type: 'action_map' | 'algorithm' | 'animation_graph' | 'animation_sequence' | 'cubemap' | 'event_map' | 'material' | 'module' | 'render_graph' | 'scene' | 'script' | 'shader' | 'volume_material';
516
+ asset_type: 'action_map' | 'animation_graph' | 'animation_sequence' | 'cubemap' | 'event_map' | 'material' | 'module' | 'render_graph' | 'scene' | 'script' | 'shader' | 'volume_material';
518
517
  name: string;
519
518
  };
520
519
  export type CreateAsset_AssetDuplication = {
521
- asset_type: 'action_map' | 'algorithm' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'skeleton' | 'sound' | 'texture' | 'texture_1d' | 'texture_3d' | 'volume_material';
520
+ asset_type: 'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'skeleton' | 'sound' | 'texture' | 'texture_1d' | 'texture_3d' | 'volume_material';
522
521
  copy_from_asset_id: string;
523
522
  new_asset_name?: string;
524
523
  options?: CreateAsset_DuplicationOptions;
525
524
  };
526
525
  export type CreateAsset_DuplicationOptions = {
527
- asset_types?: Array<'action_map' | 'algorithm' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'skeleton' | 'sound' | 'texture' | 'texture_1d' | 'texture_3d' | 'volume_material'>;
526
+ asset_types?: Array<'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'skeleton' | 'sound' | 'texture' | 'texture_1d' | 'texture_3d' | 'volume_material'>;
528
527
  max_depth?: number;
529
528
  };
530
529
  export type CreateAsset_AssetDuplicationResult = {
@@ -573,6 +572,19 @@ export declare function createCubemap({ folder_id, faces, name, }: {
573
572
  faces: Array<string>;
574
573
  name: string;
575
574
  }, headers?: AxiosRequestHeaders): AxiosPromise<CreateCubemap_Object>;
575
+ export type CreateCollisionGeometry_Object = {
576
+ pipeline_id: string;
577
+ };
578
+ /**
579
+ * Request to create collision geometry. The collision geometry will be processed asynchronously.
580
+ */
581
+ export declare function createCollisionGeometry({ folder_id, name, geometry_type, meshes, submesh_indices_per_mesh, }: {
582
+ folder_id: string;
583
+ name: string;
584
+ geometry_type: 'triangular' | 'convex';
585
+ meshes: Array<string>;
586
+ submesh_indices_per_mesh: Array<Array<number>>;
587
+ }, headers?: AxiosRequestHeaders): AxiosPromise<CreateCollisionGeometry_Object>;
576
588
  export type ImportAssets__index_ImportAssetsResponse_ImportAssetsResponse = {
577
589
  asset_ids: ImportAssets_AssetIds;
578
590
  skipped_files?: Array<string>;
@@ -697,7 +709,6 @@ export declare function updateSourceFileDetails({ source_file_id, name, }: {
697
709
  }, headers?: AxiosRequestHeaders): Promise<import("axios").AxiosResponse<any, any, {}>>;
698
710
  export type GetSourceFileAssets__index_AssetList_AssetList = {
699
711
  action_maps?: Array<GetSourceFileAssets_Object>;
700
- algorithms?: Array<GetSourceFileAssets_Object>;
701
712
  animation_graphs?: Array<GetSourceFileAssets_Object>;
702
713
  animation_sequences?: Array<GetSourceFileAssets_Object>;
703
714
  animation_sets?: Array<GetSourceFileAssets_Object>;
@@ -772,14 +783,53 @@ export declare function getConversionTaskMetadata<T extends 'arraybuffer' | 'str
772
783
  conversion_task_id: string;
773
784
  filename: string;
774
785
  }, headers?: AxiosRequestHeaders, responseType?: T): AxiosPromise<T extends 'arraybuffer' ? ArrayBuffer : T extends 'json' ? object : T extends 'text' ? string : T extends 'stream' ? ReadableStream : never>;
786
+ export type GetPipeline_Pipeline = {
787
+ data_pipeline_id: string;
788
+ environment_id: string;
789
+ finished_at?: string;
790
+ folder_id: string;
791
+ jobs: Array<GetPipeline_Job>;
792
+ name: string;
793
+ pipeline_id: string;
794
+ progress: number;
795
+ queued_at?: string;
796
+ status: 'created' | 'downloading' | 'extracting' | 'pending-approval' | 'queued' | 'running' | 'passed-with-errors' | 'failed' | 'succeeded';
797
+ triggered_at: string;
798
+ user_id: string;
799
+ };
800
+ export type GetPipeline_Job = {
801
+ finished_at?: string;
802
+ job_id: string;
803
+ name: string;
804
+ pipeline_id: string;
805
+ progress: number;
806
+ queued_at?: string;
807
+ started_at?: string;
808
+ status: 'created' | 'queued' | 'running' | 'timed-out' | 'failed' | 'succeeded';
809
+ steps: Array<GetPipeline_Step>;
810
+ };
811
+ export type GetPipeline_Step = {
812
+ finished_at?: string;
813
+ job_id: string;
814
+ name: string;
815
+ progress: number;
816
+ started_at?: string;
817
+ status: 'created' | 'skipped' | 'queued' | 'running' | 'timed-out' | 'failed' | 'succeeded';
818
+ step_id: string;
819
+ };
820
+ /**
821
+ * Retrieves a specific instantiated Data Pipeline by its ID.
822
+ */
823
+ export declare function getPipeline({ pipeline_id, }: {
824
+ pipeline_id: string;
825
+ }, headers?: AxiosRequestHeaders): AxiosPromise<GetPipeline_Pipeline>;
775
826
  export type ListAssets_Filter = {
776
- asset_type?: Array<'action_map' | 'algorithm' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'skeleton' | 'sound' | 'texture' | 'texture_1d' | 'texture_3d' | 'volume_material'> | 'action_map' | 'algorithm' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'skeleton' | 'sound' | 'texture' | 'texture_1d' | 'texture_3d' | 'volume_material';
827
+ asset_type?: Array<'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'skeleton' | 'sound' | 'texture' | 'texture_1d' | 'texture_3d' | 'volume_material'> | 'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'skeleton' | 'sound' | 'texture' | 'texture_1d' | 'texture_3d' | 'volume_material';
777
828
  asset_name?: string;
778
829
  include_public_assets?: boolean;
779
830
  };
780
831
  export type ListAssets__index_AssetList_AssetList = {
781
832
  action_maps?: Array<ListAssets_Object>;
782
- algorithms?: Array<ListAssets_Object>;
783
833
  animation_graphs?: Array<ListAssets_Object>;
784
834
  animation_sequences?: Array<ListAssets_Object>;
785
835
  animation_sets?: Array<ListAssets_Object>;
@@ -824,7 +874,7 @@ export declare function deleteAssets({ asset_ids, }: {
824
874
  * Deletes the asset.
825
875
  */
826
876
  export declare function deleteAsset({ asset_container, asset_id, }: {
827
- asset_container: 'action_maps' | 'algorithms' | 'animations' | 'animation_graphs' | 'animation_sequences' | 'animation_sets' | 'collision_geometries' | 'cubemaps' | 'event_maps' | 'materials' | 'meshes' | 'modules' | 'point_clouds' | 'render_graphs' | 'scenes' | 'scripts' | 'shaders' | 'skeletons' | 'sounds' | 'textures' | 'textures_1d' | 'textures_3d' | 'volume_materials';
877
+ asset_container: 'action_maps' | 'animations' | 'animation_graphs' | 'animation_sequences' | 'animation_sets' | 'collision_geometries' | 'cubemaps' | 'event_maps' | 'materials' | 'meshes' | 'modules' | 'point_clouds' | 'render_graphs' | 'scenes' | 'scripts' | 'shaders' | 'skeletons' | 'sounds' | 'textures' | 'textures_1d' | 'textures_3d' | 'volume_materials';
828
878
  asset_id: string;
829
879
  }, headers?: AxiosRequestHeaders): Promise<import("axios").AxiosResponse<any, any, {}>>;
830
880
  export type GetAssetSourceFile_SourceFile = {
@@ -837,7 +887,7 @@ export type GetAssetSourceFile_SourceFile = {
837
887
  * Gets the source file of the specified asset.
838
888
  */
839
889
  export declare function getAssetSourceFile({ asset_container, asset_id, }: {
840
- asset_container: 'action_maps' | 'algorithms' | 'animations' | 'animation_graphs' | 'animation_sequences' | 'animation_sets' | 'collision_geometries' | 'cubemaps' | 'event_maps' | 'materials' | 'meshes' | 'modules' | 'point_clouds' | 'render_graphs' | 'scenes' | 'scripts' | 'shaders' | 'skeletons' | 'sounds' | 'textures' | 'textures_1d' | 'textures_3d' | 'volume_materials';
890
+ asset_container: 'action_maps' | 'animations' | 'animation_graphs' | 'animation_sequences' | 'animation_sets' | 'collision_geometries' | 'cubemaps' | 'event_maps' | 'materials' | 'meshes' | 'modules' | 'point_clouds' | 'render_graphs' | 'scenes' | 'scripts' | 'shaders' | 'skeletons' | 'sounds' | 'textures' | 'textures_1d' | 'textures_3d' | 'volume_materials';
841
891
  asset_id: string;
842
892
  }, headers?: AxiosRequestHeaders): AxiosPromise<GetAssetSourceFile_SourceFile>;
843
893
  export type GetAssetDetails__index_AssetDetails_AssetDetails = {
@@ -848,7 +898,7 @@ export type GetAssetDetails__index_AssetDetails_AssetDetails = {
848
898
  last_edited_at?: string;
849
899
  last_edited_by?: GetAssetDetails_LastEditedBy;
850
900
  name: string;
851
- type: 'action_map' | 'algorithm' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'skeleton' | 'sound' | 'texture' | 'texture_1d' | 'texture_3d' | 'volume_material';
901
+ type: 'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'skeleton' | 'sound' | 'texture' | 'texture_1d' | 'texture_3d' | 'volume_material';
852
902
  };
853
903
  export type GetAssetDetails_Contributor = {
854
904
  contribution_count: number;
@@ -868,7 +918,7 @@ export type GetAssetDetails_LastEditedBy = {
868
918
  * Gets the asset details from the specified asset.
869
919
  */
870
920
  export declare function getAssetDetails({ asset_container, asset_id, }: {
871
- asset_container: 'action_maps' | 'algorithms' | 'animations' | 'animation_graphs' | 'animation_sequences' | 'animation_sets' | 'collision_geometries' | 'cubemaps' | 'event_maps' | 'materials' | 'meshes' | 'modules' | 'point_clouds' | 'render_graphs' | 'scenes' | 'scripts' | 'shaders' | 'skeletons' | 'sounds' | 'textures' | 'textures_1d' | 'textures_3d' | 'volume_materials';
921
+ asset_container: 'action_maps' | 'animations' | 'animation_graphs' | 'animation_sequences' | 'animation_sets' | 'collision_geometries' | 'cubemaps' | 'event_maps' | 'materials' | 'meshes' | 'modules' | 'point_clouds' | 'render_graphs' | 'scenes' | 'scripts' | 'shaders' | 'skeletons' | 'sounds' | 'textures' | 'textures_1d' | 'textures_3d' | 'volume_materials';
872
922
  asset_id: string;
873
923
  }, headers?: AxiosRequestHeaders): AxiosPromise<GetAssetDetails__index_AssetDetails_AssetDetails>;
874
924
  export type GetAssetFolder_Folder = {
@@ -890,17 +940,17 @@ export type GetAssetFolder_Object = {
890
940
  * Gets the asset folder from the specified asset.
891
941
  */
892
942
  export declare function getAssetFolder({ asset_container, asset_id, }: {
893
- asset_container: 'action_maps' | 'algorithms' | 'animations' | 'animation_graphs' | 'animation_sequences' | 'animation_sets' | 'collision_geometries' | 'cubemaps' | 'event_maps' | 'materials' | 'meshes' | 'modules' | 'point_clouds' | 'render_graphs' | 'scenes' | 'scripts' | 'shaders' | 'skeletons' | 'sounds' | 'textures' | 'textures_1d' | 'textures_3d' | 'volume_materials';
943
+ asset_container: 'action_maps' | 'animations' | 'animation_graphs' | 'animation_sequences' | 'animation_sets' | 'collision_geometries' | 'cubemaps' | 'event_maps' | 'materials' | 'meshes' | 'modules' | 'point_clouds' | 'render_graphs' | 'scenes' | 'scripts' | 'shaders' | 'skeletons' | 'sounds' | 'textures' | 'textures_1d' | 'textures_3d' | 'volume_materials';
894
944
  asset_id: string;
895
945
  }, headers?: AxiosRequestHeaders): AxiosPromise<GetAssetFolder_Folder>;
896
946
  export type GetAssetDependencies_Filter = {
897
- with_asset_types?: Array<'action_map' | 'algorithm' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'skeleton' | 'sound' | 'texture' | 'texture_1d' | 'texture_3d' | 'volume_material'>;
898
- without_asset_types?: Array<'action_map' | 'algorithm' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'skeleton' | 'sound' | 'texture' | 'texture_1d' | 'texture_3d' | 'volume_material'>;
947
+ with_asset_types?: Array<'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'skeleton' | 'sound' | 'texture' | 'texture_1d' | 'texture_3d' | 'volume_material'>;
948
+ without_asset_types?: Array<'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'skeleton' | 'sound' | 'texture' | 'texture_1d' | 'texture_3d' | 'volume_material'>;
899
949
  public?: 'include' | 'exclude' | 'restrict-to';
900
950
  };
901
951
  export type GetAssetDependencies_Asset = {
902
952
  asset_id: string;
903
- asset_type: 'action_map' | 'algorithm' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'skeleton' | 'sound' | 'texture' | 'texture_1d' | 'texture_3d' | 'volume_material';
953
+ asset_type: 'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'skeleton' | 'sound' | 'texture' | 'texture_1d' | 'texture_3d' | 'volume_material';
904
954
  properties?: GetAssetDependencies_Object;
905
955
  };
906
956
  export type GetAssetDependencies_Object = {
@@ -924,17 +974,17 @@ export type GetAssetDependencies_Dependency = {
924
974
  * Gets the asset dependencies from the specified asset.
925
975
  */
926
976
  export declare function getAssetDependencies({ asset_container, asset_id, offset, limit, depth, filters, properties, }: {
927
- asset_container: 'action_maps' | 'algorithms' | 'animations' | 'animation_graphs' | 'animation_sequences' | 'animation_sets' | 'collision_geometries' | 'cubemaps' | 'event_maps' | 'materials' | 'meshes' | 'modules' | 'point_clouds' | 'render_graphs' | 'scenes' | 'scripts' | 'shaders' | 'skeletons' | 'sounds' | 'textures' | 'textures_1d' | 'textures_3d' | 'volume_materials';
977
+ asset_container: 'action_maps' | 'animations' | 'animation_graphs' | 'animation_sequences' | 'animation_sets' | 'collision_geometries' | 'cubemaps' | 'event_maps' | 'materials' | 'meshes' | 'modules' | 'point_clouds' | 'render_graphs' | 'scenes' | 'scripts' | 'shaders' | 'skeletons' | 'sounds' | 'textures' | 'textures_1d' | 'textures_3d' | 'volume_materials';
928
978
  asset_id: string;
929
979
  offset?: number;
930
980
  limit?: number;
931
- depth?: 'all' | 'direct' | number;
981
+ depth?: 'all' | 'direct' | 'all-until-self-dependent' | number;
932
982
  filters?: GetAssetDependencies_Filter;
933
983
  properties?: Array<'name' | 'dependencies' | 'count' | 'public' | 'accessible' | 'payload_info'>;
934
984
  }, headers?: AxiosRequestHeaders): AxiosPromise<Array<GetAssetDependencies_Asset>>;
935
985
  export type GetAssetReferences_Asset = {
936
986
  asset_id: string;
937
- asset_type: 'action_map' | 'algorithm' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'skeleton' | 'sound' | 'texture' | 'texture_1d' | 'texture_3d' | 'volume_material';
987
+ asset_type: 'action_map' | 'animation' | 'animation_graph' | 'animation_sequence' | 'animation_set' | 'collision_geometry' | 'cubemap' | 'event_map' | 'material' | 'mesh' | 'module' | 'point_cloud' | 'render_graph' | 'scene' | 'script' | 'shader' | 'skeleton' | 'sound' | 'texture' | 'texture_1d' | 'texture_3d' | 'volume_material';
938
988
  properties?: GetAssetReferences_Object;
939
989
  };
940
990
  export type GetAssetReferences_Object = {
@@ -946,7 +996,7 @@ export type GetAssetReferences_Object = {
946
996
  * Gets the asset references from the specified asset.
947
997
  */
948
998
  export declare function getAssetReferences({ asset_container, asset_id, offset, limit, properties, }: {
949
- asset_container: 'action_maps' | 'algorithms' | 'animations' | 'animation_graphs' | 'animation_sequences' | 'animation_sets' | 'collision_geometries' | 'cubemaps' | 'event_maps' | 'materials' | 'meshes' | 'modules' | 'point_clouds' | 'render_graphs' | 'scenes' | 'scripts' | 'shaders' | 'skeletons' | 'sounds' | 'textures' | 'textures_1d' | 'textures_3d' | 'volume_materials';
999
+ asset_container: 'action_maps' | 'animations' | 'animation_graphs' | 'animation_sequences' | 'animation_sets' | 'collision_geometries' | 'cubemaps' | 'event_maps' | 'materials' | 'meshes' | 'modules' | 'point_clouds' | 'render_graphs' | 'scenes' | 'scripts' | 'shaders' | 'skeletons' | 'sounds' | 'textures' | 'textures_1d' | 'textures_3d' | 'volume_materials';
950
1000
  asset_id: string;
951
1001
  offset?: number;
952
1002
  limit?: number;
@@ -960,12 +1010,6 @@ export type GetAssetDescription_ActionMap = {
960
1010
  export type GetAssetDescription_Object = {
961
1011
  [action_name: string]: object;
962
1012
  };
963
- export type GetAssetDescription_Algorithm = {
964
- inputDescriptor: Array<object>;
965
- name: string;
966
- outputDescriptor: Array<object>;
967
- uuid: string;
968
- };
969
1013
  export type GetAssetDescription_Animation = {
970
1014
  animationEventTrack: GetAssetDescription_Object;
971
1015
  durationInMs: number;
@@ -1156,14 +1200,14 @@ export type GetAssetDescription_VolumeMaterial = {
1156
1200
  * Gets the asset description from the specified asset.
1157
1201
  */
1158
1202
  export declare function getAssetDescription({ asset_container, asset_id, }: {
1159
- asset_container: 'action_maps' | 'algorithms' | 'animations' | 'animation_graphs' | 'animation_sequences' | 'animation_sets' | 'collision_geometries' | 'cubemaps' | 'event_maps' | 'materials' | 'meshes' | 'modules' | 'point_clouds' | 'render_graphs' | 'scenes' | 'scripts' | 'shaders' | 'skeletons' | 'sounds' | 'textures' | 'textures_1d' | 'textures_3d' | 'volume_materials';
1203
+ asset_container: 'action_maps' | 'animations' | 'animation_graphs' | 'animation_sequences' | 'animation_sets' | 'collision_geometries' | 'cubemaps' | 'event_maps' | 'materials' | 'meshes' | 'modules' | 'point_clouds' | 'render_graphs' | 'scenes' | 'scripts' | 'shaders' | 'skeletons' | 'sounds' | 'textures' | 'textures_1d' | 'textures_3d' | 'volume_materials';
1160
1204
  asset_id: string;
1161
- }, headers?: AxiosRequestHeaders): AxiosPromise<StrictUnion<GetAssetDescription_ActionMap | GetAssetDescription_Algorithm | GetAssetDescription_Animation | GetAssetDescription_AnimationGraph | GetAssetDescription_AnimationSequence | GetAssetDescription_AnimationSet | GetAssetDescription_CollisionGeometry | GetAssetDescription_Cubemap | GetAssetDescription_EventMap | GetAssetDescription_Material | GetAssetDescription_Mesh | GetAssetDescription_Module | GetAssetDescription_PointCloud | GetAssetDescription_RenderGraph | GetAssetDescription_Scene | GetAssetDescription_Script | GetAssetDescription_Shader | GetAssetDescription_Skeleton | GetAssetDescription_Sound | GetAssetDescription_Texture | GetAssetDescription_Texture_1D | GetAssetDescription_Texture_3D | GetAssetDescription_VolumeMaterial>>;
1205
+ }, headers?: AxiosRequestHeaders): AxiosPromise<StrictUnion<GetAssetDescription_ActionMap | GetAssetDescription_Animation | GetAssetDescription_AnimationGraph | GetAssetDescription_AnimationSequence | GetAssetDescription_AnimationSet | GetAssetDescription_CollisionGeometry | GetAssetDescription_Cubemap | GetAssetDescription_EventMap | GetAssetDescription_Material | GetAssetDescription_Mesh | GetAssetDescription_Module | GetAssetDescription_PointCloud | GetAssetDescription_RenderGraph | GetAssetDescription_Scene | GetAssetDescription_Script | GetAssetDescription_Shader | GetAssetDescription_Skeleton | GetAssetDescription_Sound | GetAssetDescription_Texture | GetAssetDescription_Texture_1D | GetAssetDescription_Texture_3D | GetAssetDescription_VolumeMaterial>>;
1162
1206
  /**
1163
1207
  * Updates asset description. Supports only updating name.
1164
1208
  */
1165
1209
  export declare function renameAsset({ asset_container, asset_id, name, }: {
1166
- asset_container: 'action_maps' | 'algorithms' | 'animations' | 'animation_graphs' | 'animation_sequences' | 'animation_sets' | 'collision_geometries' | 'cubemaps' | 'event_maps' | 'materials' | 'meshes' | 'modules' | 'point_clouds' | 'render_graphs' | 'scenes' | 'scripts' | 'shaders' | 'skeletons' | 'sounds' | 'textures' | 'textures_1d' | 'textures_3d' | 'volume_materials';
1210
+ asset_container: 'action_maps' | 'animations' | 'animation_graphs' | 'animation_sequences' | 'animation_sets' | 'collision_geometries' | 'cubemaps' | 'event_maps' | 'materials' | 'meshes' | 'modules' | 'point_clouds' | 'render_graphs' | 'scenes' | 'scripts' | 'shaders' | 'skeletons' | 'sounds' | 'textures' | 'textures_1d' | 'textures_3d' | 'volume_materials';
1167
1211
  asset_id: string;
1168
1212
  name?: string;
1169
1213
  }, headers?: AxiosRequestHeaders): Promise<import("axios").AxiosResponse<any, any, {}>>;
@@ -1179,28 +1223,28 @@ export declare function getAssetPayload<T extends 'arraybuffer' | 'stream' | 'js
1179
1223
  * Gets the asset history from the specified asset.
1180
1224
  */
1181
1225
  export declare function getAssetHistory({ asset_container, asset_id, }: {
1182
- asset_container: 'action_maps' | 'algorithms' | 'animations' | 'animation_graphs' | 'animation_sequences' | 'animation_sets' | 'collision_geometries' | 'cubemaps' | 'event_maps' | 'materials' | 'meshes' | 'modules' | 'point_clouds' | 'render_graphs' | 'scenes' | 'scripts' | 'shaders' | 'skeletons' | 'sounds' | 'textures' | 'textures_1d' | 'textures_3d' | 'volume_materials';
1226
+ asset_container: 'action_maps' | 'animations' | 'animation_graphs' | 'animation_sequences' | 'animation_sets' | 'collision_geometries' | 'cubemaps' | 'event_maps' | 'materials' | 'meshes' | 'modules' | 'point_clouds' | 'render_graphs' | 'scenes' | 'scripts' | 'shaders' | 'skeletons' | 'sounds' | 'textures' | 'textures_1d' | 'textures_3d' | 'volume_materials';
1183
1227
  asset_id: string;
1184
1228
  }, headers?: AxiosRequestHeaders): AxiosPromise<object>;
1185
1229
  /**
1186
1230
  * Gets the asset metadata from the specified asset.
1187
1231
  */
1188
1232
  export declare function getAssetMeta({ asset_container, asset_id, }: {
1189
- asset_container: 'action_maps' | 'algorithms' | 'animations' | 'animation_graphs' | 'animation_sequences' | 'animation_sets' | 'collision_geometries' | 'cubemaps' | 'event_maps' | 'materials' | 'meshes' | 'modules' | 'point_clouds' | 'render_graphs' | 'scenes' | 'scripts' | 'shaders' | 'skeletons' | 'sounds' | 'textures' | 'textures_1d' | 'textures_3d' | 'volume_materials';
1233
+ asset_container: 'action_maps' | 'animations' | 'animation_graphs' | 'animation_sequences' | 'animation_sets' | 'collision_geometries' | 'cubemaps' | 'event_maps' | 'materials' | 'meshes' | 'modules' | 'point_clouds' | 'render_graphs' | 'scenes' | 'scripts' | 'shaders' | 'skeletons' | 'sounds' | 'textures' | 'textures_1d' | 'textures_3d' | 'volume_materials';
1190
1234
  asset_id: string;
1191
1235
  }, headers?: AxiosRequestHeaders): AxiosPromise<object>;
1192
1236
  /**
1193
1237
  * Gets the code of the specified asset.
1194
1238
  */
1195
1239
  export declare function getAssetCode({ asset_container_with_code, asset_id, }: {
1196
- asset_container_with_code: 'algorithms' | 'animation_sequences' | 'modules' | 'scripts' | 'shaders';
1240
+ asset_container_with_code: 'animation_sequences' | 'modules' | 'scripts' | 'shaders';
1197
1241
  asset_id: string;
1198
1242
  }, headers?: AxiosRequestHeaders): AxiosPromise<string>;
1199
1243
  /**
1200
1244
  * Gets the asset thumbnail from the specified asset.
1201
1245
  */
1202
1246
  export declare function getAssetThumbnail<T extends 'arraybuffer' | 'stream' | 'json' | 'text' = 'arraybuffer'>({ asset_container, asset_id, size, default_url, }: {
1203
- asset_container: 'action_maps' | 'algorithms' | 'animations' | 'animation_graphs' | 'animation_sequences' | 'animation_sets' | 'collision_geometries' | 'cubemaps' | 'event_maps' | 'materials' | 'meshes' | 'modules' | 'point_clouds' | 'render_graphs' | 'scenes' | 'scripts' | 'shaders' | 'skeletons' | 'sounds' | 'textures' | 'textures_1d' | 'textures_3d' | 'volume_materials';
1247
+ asset_container: 'action_maps' | 'animations' | 'animation_graphs' | 'animation_sequences' | 'animation_sets' | 'collision_geometries' | 'cubemaps' | 'event_maps' | 'materials' | 'meshes' | 'modules' | 'point_clouds' | 'render_graphs' | 'scenes' | 'scripts' | 'shaders' | 'skeletons' | 'sounds' | 'textures' | 'textures_1d' | 'textures_3d' | 'volume_materials';
1204
1248
  asset_id: string;
1205
1249
  size: 'large' | 'medium' | 'small' | 'tiny';
1206
1250
  default_url?: string;
@@ -1209,7 +1253,7 @@ export declare function getAssetThumbnail<T extends 'arraybuffer' | 'stream' | '
1209
1253
  * Assigns a thumbnail to the specified asset.
1210
1254
  */
1211
1255
  export declare function setAssetThumbnail({ asset_container, asset_id, body, }: {
1212
- asset_container: 'action_maps' | 'algorithms' | 'animations' | 'animation_graphs' | 'animation_sequences' | 'animation_sets' | 'collision_geometries' | 'cubemaps' | 'event_maps' | 'materials' | 'meshes' | 'modules' | 'point_clouds' | 'render_graphs' | 'scenes' | 'scripts' | 'shaders' | 'skeletons' | 'sounds' | 'textures' | 'textures_1d' | 'textures_3d' | 'volume_materials';
1256
+ asset_container: 'action_maps' | 'animations' | 'animation_graphs' | 'animation_sequences' | 'animation_sets' | 'collision_geometries' | 'cubemaps' | 'event_maps' | 'materials' | 'meshes' | 'modules' | 'point_clouds' | 'render_graphs' | 'scenes' | 'scripts' | 'shaders' | 'skeletons' | 'sounds' | 'textures' | 'textures_1d' | 'textures_3d' | 'volume_materials';
1213
1257
  asset_id: string;
1214
1258
  body: ArrayBuffer | ReadableStream;
1215
1259
  }, contentType: 'image/jpg' | 'image/png', headers?: AxiosRequestHeaders): Promise<import("axios").AxiosResponse<any, any, {}>>;
@@ -1224,7 +1268,7 @@ export declare function getAssetCustomTypes({ asset_container_with_custom_types,
1224
1268
  * Packages and downloads the target asset.
1225
1269
  */
1226
1270
  export declare function packageAsset<T extends 'arraybuffer' | 'stream' | 'json' | 'text' = 'arraybuffer'>({ asset_container, asset_id, }: {
1227
- asset_container: 'action_maps' | 'algorithms' | 'animations' | 'animation_graphs' | 'animation_sequences' | 'animation_sets' | 'collision_geometries' | 'cubemaps' | 'event_maps' | 'materials' | 'meshes' | 'modules' | 'point_clouds' | 'render_graphs' | 'scenes' | 'scripts' | 'shaders' | 'skeletons' | 'sounds' | 'textures' | 'textures_1d' | 'textures_3d' | 'volume_materials';
1271
+ asset_container: 'action_maps' | 'animations' | 'animation_graphs' | 'animation_sequences' | 'animation_sets' | 'collision_geometries' | 'cubemaps' | 'event_maps' | 'materials' | 'meshes' | 'modules' | 'point_clouds' | 'render_graphs' | 'scenes' | 'scripts' | 'shaders' | 'skeletons' | 'sounds' | 'textures' | 'textures_1d' | 'textures_3d' | 'volume_materials';
1228
1272
  asset_id: string;
1229
1273
  }, headers?: AxiosRequestHeaders, responseType?: T): AxiosPromise<T extends 'arraybuffer' ? ArrayBuffer : T extends 'json' ? object : T extends 'text' ? string : T extends 'stream' ? ReadableStream : never>;
1230
1274
  /**
package/dist/index.js CHANGED
@@ -33,6 +33,7 @@ __export(index_exports, {
33
33
  UnexpectedServiceError: () => UnexpectedServiceError,
34
34
  axiosInstance: () => axiosInstance,
35
35
  createAsset: () => createAsset,
36
+ createCollisionGeometry: () => createCollisionGeometry,
36
37
  createCubemap: () => createCubemap,
37
38
  createEntity: () => createEntity,
38
39
  createFolder: () => createFolder,
@@ -69,6 +70,7 @@ __export(index_exports, {
69
70
  getFolderAssets: () => getFolderAssets,
70
71
  getFolderInfo: () => getFolderInfo,
71
72
  getGroup: () => getGroup,
73
+ getPipeline: () => getPipeline,
72
74
  getRunningSessions: () => getRunningSessions,
73
75
  getSceneAABB: () => getSceneAABB,
74
76
  getSceneSessions: () => getSceneSessions,
@@ -570,6 +572,25 @@ function createCubemap({
570
572
  headers
571
573
  });
572
574
  }
575
+ function createCollisionGeometry({
576
+ folder_id,
577
+ name,
578
+ geometry_type,
579
+ meshes,
580
+ submesh_indices_per_mesh
581
+ }, headers) {
582
+ return axiosInstance({
583
+ method: "post",
584
+ url: "/folders/" + folder_id + "/assets/collision_geometries",
585
+ data: {
586
+ name,
587
+ geometry_type,
588
+ meshes,
589
+ submesh_indices_per_mesh
590
+ },
591
+ headers
592
+ });
593
+ }
573
594
  function importAssets({
574
595
  folder_id,
575
596
  overwrite = "never",
@@ -707,6 +728,15 @@ function getConversionTaskMetadata({
707
728
  responseType: responseType || "arraybuffer"
708
729
  });
709
730
  }
731
+ function getPipeline({
732
+ pipeline_id
733
+ }, headers) {
734
+ return axiosInstance({
735
+ method: "get",
736
+ url: "/pipelines/" + pipeline_id,
737
+ headers
738
+ });
739
+ }
710
740
  function listAssets({
711
741
  offset = 0,
712
742
  limit = 10,
@@ -1212,6 +1242,7 @@ installInterceptors();
1212
1242
  UnexpectedServiceError,
1213
1243
  axiosInstance,
1214
1244
  createAsset,
1245
+ createCollisionGeometry,
1215
1246
  createCubemap,
1216
1247
  createEntity,
1217
1248
  createFolder,
@@ -1248,6 +1279,7 @@ installInterceptors();
1248
1279
  getFolderAssets,
1249
1280
  getFolderInfo,
1250
1281
  getGroup,
1282
+ getPipeline,
1251
1283
  getRunningSessions,
1252
1284
  getSceneAABB,
1253
1285
  getSceneSessions,