@3dverse/api 0.6.7 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/_prebuild/wrapper.d.ts +51 -76
- package/dist/index.js +24 -8
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +24 -8
- package/dist/index.mjs.map +2 -2
- package/package.json +1 -1
@@ -32,7 +32,7 @@ export declare function setBaseURL(baseURL: string): void;
|
|
32
32
|
export type ListUsers_User_UserInfo = {
|
33
33
|
user_id: string;
|
34
34
|
username: string;
|
35
|
-
registered_at
|
35
|
+
registered_at: string;
|
36
36
|
};
|
37
37
|
export declare function listUsers({ offset, limit }: {
|
38
38
|
offset?: number;
|
@@ -41,7 +41,7 @@ export declare function listUsers({ offset, limit }: {
|
|
41
41
|
export type RegisterUser_User_UserInfo = {
|
42
42
|
user_id: string;
|
43
43
|
username: string;
|
44
|
-
registered_at
|
44
|
+
registered_at: string;
|
45
45
|
};
|
46
46
|
export declare function registerUser({ username }: {
|
47
47
|
username: string;
|
@@ -49,7 +49,7 @@ export declare function registerUser({ username }: {
|
|
49
49
|
export type GetUser_User_UserInfo = {
|
50
50
|
user_id: string;
|
51
51
|
username: string;
|
52
|
-
registered_at
|
52
|
+
registered_at: string;
|
53
53
|
};
|
54
54
|
export declare function getUser({ user_id }: {
|
55
55
|
user_id: string;
|
@@ -108,7 +108,7 @@ export type GetUserUploadTasks_ConversionTask = {
|
|
108
108
|
asset_id: string;
|
109
109
|
source_file_id: string;
|
110
110
|
source_file_name: string;
|
111
|
-
conversion_pipeline: "auto-detect" | "volume" | "scene" | "texture" | "animation";
|
111
|
+
conversion_pipeline: "auto-detect" | "volume" | "scene" | "texture" | "animation" | "beta-pipeline";
|
112
112
|
progress: number;
|
113
113
|
status: StrictUnion<'pending' | 'converting' | 'error' | 'success'> & string;
|
114
114
|
};
|
@@ -189,7 +189,7 @@ export type ListFolders_Folder = {
|
|
189
189
|
export type ListFolders_Object = {
|
190
190
|
user_id: string;
|
191
191
|
username: string;
|
192
|
-
registered_at
|
192
|
+
registered_at: string;
|
193
193
|
};
|
194
194
|
export declare function listFolders({ offset, limit }: {
|
195
195
|
offset?: number;
|
@@ -212,7 +212,7 @@ export type CreateFolder_Folder_Writable = {
|
|
212
212
|
export type CreateFolder_Object = {
|
213
213
|
user_id: string;
|
214
214
|
username: string;
|
215
|
-
registered_at
|
215
|
+
registered_at: string;
|
216
216
|
};
|
217
217
|
export declare function createFolder({ name, subfolders }: {
|
218
218
|
name: string;
|
@@ -231,7 +231,7 @@ export type GetFolderInfo_Folder = {
|
|
231
231
|
export type GetFolderInfo_Object = {
|
232
232
|
user_id: string;
|
233
233
|
username: string;
|
234
|
-
registered_at
|
234
|
+
registered_at: string;
|
235
235
|
};
|
236
236
|
export declare function getFolderInfo({ folder_id }: {
|
237
237
|
folder_id: string;
|
@@ -292,7 +292,7 @@ export type CreateSubfolder_Folder_Writable = {
|
|
292
292
|
export type CreateSubfolder_Object = {
|
293
293
|
user_id: string;
|
294
294
|
username: string;
|
295
|
-
registered_at
|
295
|
+
registered_at: string;
|
296
296
|
};
|
297
297
|
export declare function createSubfolder({ folder_id, name, subfolders }: {
|
298
298
|
folder_id: string;
|
@@ -312,7 +312,7 @@ export type ListFolderSubFolders_Folder = {
|
|
312
312
|
export type ListFolderSubFolders_Object = {
|
313
313
|
user_id: string;
|
314
314
|
username: string;
|
315
|
-
registered_at
|
315
|
+
registered_at: string;
|
316
316
|
};
|
317
317
|
export declare function listFolderSubFolders({ folder_id, depth }: {
|
318
318
|
folder_id: string;
|
@@ -362,7 +362,7 @@ export type GetUploadTasksInFolder_ConversionTask = {
|
|
362
362
|
asset_id: string;
|
363
363
|
source_file_id: string;
|
364
364
|
source_file_name: string;
|
365
|
-
conversion_pipeline: "auto-detect" | "volume" | "scene" | "texture" | "animation";
|
365
|
+
conversion_pipeline: "auto-detect" | "volume" | "scene" | "texture" | "animation" | "beta-pipeline";
|
366
366
|
progress: number;
|
367
367
|
status: StrictUnion<'pending' | 'converting' | 'error' | 'success'> & string;
|
368
368
|
};
|
@@ -477,8 +477,9 @@ export declare function listSourceFiles({ offset, limit, filters }: {
|
|
477
477
|
limit?: number;
|
478
478
|
filters?: ListSourceFiles_Filters;
|
479
479
|
}): AxiosPromise<Array<ListSourceFiles_SourceFile>>;
|
480
|
-
export declare function deleteSourceFiles({ source_file_ids }: {
|
480
|
+
export declare function deleteSourceFiles({ source_file_ids, delete_assets }: {
|
481
481
|
source_file_ids: Array<string>;
|
482
|
+
delete_assets?: boolean;
|
482
483
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
483
484
|
export declare function downloadSourceFile({ source_file_id }: {
|
484
485
|
source_file_id: string;
|
@@ -550,7 +551,7 @@ export type GetUploadTask_ConversionTask = {
|
|
550
551
|
asset_id: string;
|
551
552
|
source_file_id: string;
|
552
553
|
source_file_name: string;
|
553
|
-
conversion_pipeline: "auto-detect" | "volume" | "scene" | "texture" | "animation";
|
554
|
+
conversion_pipeline: "auto-detect" | "volume" | "scene" | "texture" | "animation" | "beta-pipeline";
|
554
555
|
progress: number;
|
555
556
|
status: StrictUnion<'pending' | 'converting' | 'error' | 'success'> & string;
|
556
557
|
};
|
@@ -619,7 +620,7 @@ export type GetAssetDetails__index_AssetDetails_AssetDetails = {
|
|
619
620
|
created_at?: string;
|
620
621
|
created_by?: GetAssetDetails_Object;
|
621
622
|
last_edited_at?: string;
|
622
|
-
last_edited_by?:
|
623
|
+
last_edited_by?: GetAssetDetails_LastEditedBy;
|
623
624
|
name: string;
|
624
625
|
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";
|
625
626
|
};
|
@@ -632,6 +633,11 @@ export type GetAssetDetails_Object = {
|
|
632
633
|
user_id: string;
|
633
634
|
username: string;
|
634
635
|
};
|
636
|
+
export type GetAssetDetails_LastEditedBy = {
|
637
|
+
registered_at: string;
|
638
|
+
user_id: string;
|
639
|
+
username: string;
|
640
|
+
};
|
635
641
|
export declare function getAssetDetails({ asset_container, asset_id }: {
|
636
642
|
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";
|
637
643
|
asset_id: string;
|
@@ -649,7 +655,7 @@ export type GetAssetFolder_Folder = {
|
|
649
655
|
export type GetAssetFolder_Object = {
|
650
656
|
user_id: string;
|
651
657
|
username: string;
|
652
|
-
registered_at
|
658
|
+
registered_at: string;
|
653
659
|
};
|
654
660
|
export declare function getAssetFolder({ asset_container, asset_id }: {
|
655
661
|
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";
|
@@ -657,81 +663,50 @@ export declare function getAssetFolder({ asset_container, asset_id }: {
|
|
657
663
|
}): AxiosPromise<GetAssetFolder_Folder>;
|
658
664
|
export type GetAssetDependencies_Filter = {
|
659
665
|
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";
|
666
|
+
public?: StrictUnion<'include' | 'exclude' | 'restrict-to'>;
|
660
667
|
};
|
661
|
-
export type
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
animation_sequences?: Array<GetAssetDependencies_Object>;
|
666
|
-
animation_sets?: Array<GetAssetDependencies_Object>;
|
667
|
-
animations?: Array<GetAssetDependencies_Object>;
|
668
|
-
collision_geometries?: Array<GetAssetDependencies_Object>;
|
669
|
-
cubemaps?: Array<GetAssetDependencies_Object>;
|
670
|
-
event_maps?: Array<GetAssetDependencies_Object>;
|
671
|
-
materials?: Array<GetAssetDependencies_Object>;
|
672
|
-
meshes?: Array<GetAssetDependencies_Object>;
|
673
|
-
modules?: Array<GetAssetDependencies_Object>;
|
674
|
-
point_clouds?: Array<GetAssetDependencies_Object>;
|
675
|
-
render_graphs?: Array<GetAssetDependencies_Object>;
|
676
|
-
scenes?: Array<GetAssetDependencies_Object>;
|
677
|
-
scripts?: Array<GetAssetDependencies_Object>;
|
678
|
-
shaders?: Array<GetAssetDependencies_Object>;
|
679
|
-
skeletons?: Array<GetAssetDependencies_Object>;
|
680
|
-
sounds?: Array<GetAssetDependencies_Object>;
|
681
|
-
textures?: Array<GetAssetDependencies_Object>;
|
682
|
-
textures_1d?: Array<GetAssetDependencies_Object>;
|
683
|
-
textures_3d?: Array<GetAssetDependencies_Object>;
|
684
|
-
volume_materials?: Array<GetAssetDependencies_Object>;
|
668
|
+
export type GetAssetDependencies_Asset = {
|
669
|
+
asset_id: string;
|
670
|
+
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";
|
671
|
+
properties?: GetAssetDependencies_Object;
|
685
672
|
};
|
686
673
|
export type GetAssetDependencies_Object = {
|
687
|
-
|
688
|
-
|
674
|
+
name?: string;
|
675
|
+
direct_count?: number;
|
676
|
+
indirect_count?: number;
|
677
|
+
is_public?: boolean;
|
678
|
+
dependencies?: Array<GetAssetDependencies_Dependency>;
|
689
679
|
};
|
690
|
-
export type
|
680
|
+
export type GetAssetDependencies_Dependency = {
|
691
681
|
asset_id: string;
|
692
|
-
|
693
|
-
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";
|
682
|
+
count: number;
|
694
683
|
};
|
695
|
-
export declare function getAssetDependencies({ asset_container, asset_id,
|
684
|
+
export declare function getAssetDependencies({ asset_container, asset_id, offset, limit, depth, filters, properties }: {
|
696
685
|
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";
|
697
686
|
asset_id: string;
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
animations?: Array<GetAssetReferences_Object>;
|
709
|
-
collision_geometries?: Array<GetAssetReferences_Object>;
|
710
|
-
cubemaps?: Array<GetAssetReferences_Object>;
|
711
|
-
event_maps?: Array<GetAssetReferences_Object>;
|
712
|
-
materials?: Array<GetAssetReferences_Object>;
|
713
|
-
meshes?: Array<GetAssetReferences_Object>;
|
714
|
-
modules?: Array<GetAssetReferences_Object>;
|
715
|
-
point_clouds?: Array<GetAssetReferences_Object>;
|
716
|
-
render_graphs?: Array<GetAssetReferences_Object>;
|
717
|
-
scenes?: Array<GetAssetReferences_Object>;
|
718
|
-
scripts?: Array<GetAssetReferences_Object>;
|
719
|
-
shaders?: Array<GetAssetReferences_Object>;
|
720
|
-
skeletons?: Array<GetAssetReferences_Object>;
|
721
|
-
sounds?: Array<GetAssetReferences_Object>;
|
722
|
-
textures?: Array<GetAssetReferences_Object>;
|
723
|
-
textures_1d?: Array<GetAssetReferences_Object>;
|
724
|
-
textures_3d?: Array<GetAssetReferences_Object>;
|
725
|
-
volume_materials?: Array<GetAssetReferences_Object>;
|
687
|
+
offset?: number;
|
688
|
+
limit?: number;
|
689
|
+
depth?: ('all' | 'direct' | number);
|
690
|
+
filters?: GetAssetDependencies_Filter;
|
691
|
+
properties?: Array<StrictUnion<'name' | 'dependencies' | 'count' | 'public'>>;
|
692
|
+
}): AxiosPromise<Array<GetAssetDependencies_Asset>>;
|
693
|
+
export type GetAssetReferences_Asset = {
|
694
|
+
asset_id: string;
|
695
|
+
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";
|
696
|
+
properties?: GetAssetReferences_Object;
|
726
697
|
};
|
727
698
|
export type GetAssetReferences_Object = {
|
728
|
-
|
729
|
-
|
699
|
+
name?: string;
|
700
|
+
direct_count?: number;
|
701
|
+
is_public?: boolean;
|
730
702
|
};
|
731
|
-
export declare function getAssetReferences({ asset_container, asset_id }: {
|
703
|
+
export declare function getAssetReferences({ asset_container, asset_id, offset, limit, properties }: {
|
732
704
|
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";
|
733
705
|
asset_id: string;
|
734
|
-
|
706
|
+
offset?: number;
|
707
|
+
limit?: number;
|
708
|
+
properties?: Array<StrictUnion<'name' | 'count' | 'public'>>;
|
709
|
+
}): AxiosPromise<Array<GetAssetReferences_Asset>>;
|
735
710
|
export type GetAssetDescription_ActionMap = {
|
736
711
|
actions: GetAssetDescription_Object;
|
737
712
|
};
|
package/dist/index.js
CHANGED
@@ -507,12 +507,16 @@ function listSourceFiles({
|
|
507
507
|
});
|
508
508
|
}
|
509
509
|
function deleteSourceFiles({
|
510
|
-
source_file_ids
|
510
|
+
source_file_ids,
|
511
|
+
delete_assets = false
|
511
512
|
}) {
|
512
513
|
return axiosInstance({
|
513
514
|
method: "delete",
|
514
515
|
url: "/source-files",
|
515
|
-
data:
|
516
|
+
data: {
|
517
|
+
source_file_ids,
|
518
|
+
delete_assets
|
519
|
+
}
|
516
520
|
});
|
517
521
|
}
|
518
522
|
function downloadSourceFile({
|
@@ -636,27 +640,39 @@ function getAssetFolder({
|
|
636
640
|
function getAssetDependencies({
|
637
641
|
asset_container,
|
638
642
|
asset_id,
|
639
|
-
|
643
|
+
offset = 0,
|
644
|
+
limit = 10,
|
640
645
|
depth = "all",
|
641
|
-
|
646
|
+
filters,
|
647
|
+
properties
|
642
648
|
}) {
|
643
649
|
return axiosInstance({
|
644
650
|
method: "get",
|
645
651
|
url: "/assets/" + asset_container + "/" + asset_id + "/dependencies",
|
646
652
|
params: {
|
647
|
-
|
653
|
+
offset,
|
654
|
+
limit,
|
648
655
|
depth,
|
649
|
-
|
656
|
+
filters,
|
657
|
+
properties
|
650
658
|
}
|
651
659
|
});
|
652
660
|
}
|
653
661
|
function getAssetReferences({
|
654
662
|
asset_container,
|
655
|
-
asset_id
|
663
|
+
asset_id,
|
664
|
+
offset = 0,
|
665
|
+
limit = 10,
|
666
|
+
properties
|
656
667
|
}) {
|
657
668
|
return axiosInstance({
|
658
669
|
method: "get",
|
659
|
-
url: "/assets/" + asset_container + "/" + asset_id + "/references"
|
670
|
+
url: "/assets/" + asset_container + "/" + asset_id + "/references",
|
671
|
+
params: {
|
672
|
+
offset,
|
673
|
+
limit,
|
674
|
+
properties
|
675
|
+
}
|
660
676
|
});
|
661
677
|
}
|
662
678
|
function getAssetDescription({
|