@3dverse/api 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/_prebuild/wrapper.d.ts +47 -30
- package/dist/index.js +1 -1
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +3 -3
- package/package.json +1 -1
@@ -86,20 +86,21 @@ export declare function getUserGroups({ user_id }: {
|
|
86
86
|
user_id: string;
|
87
87
|
}): AxiosPromise<Array<GetUserGroups_Group_GroupInfo>>;
|
88
88
|
export type GetUserUploadTasks_UploadTask = {
|
89
|
-
upload_task_id
|
90
|
-
folder_id
|
91
|
-
uploaded_at
|
92
|
-
uploaded_by
|
93
|
-
progress
|
94
|
-
|
95
|
-
|
89
|
+
upload_task_id: string;
|
90
|
+
folder_id: string;
|
91
|
+
uploaded_at: string;
|
92
|
+
uploaded_by: string;
|
93
|
+
progress: number;
|
94
|
+
downloadProgress?: number;
|
95
|
+
status: "waiting" | "downloading" | "pending" | "converting" | "error";
|
96
|
+
conversion_tasks: Array<GetUserUploadTasks_ConversionTask>;
|
96
97
|
};
|
97
98
|
export type GetUserUploadTasks_ConversionTask = {
|
98
99
|
asset_id?: string;
|
99
100
|
source_file_id?: string;
|
100
101
|
conversion_pipeline?: "auto-detect" | "volume" | "scene" | "texture" | "animation";
|
101
102
|
progress?: number;
|
102
|
-
status?: "waiting" | "pending" | "converting" | "error";
|
103
|
+
status?: "waiting" | "downloading" | "pending" | "converting" | "error";
|
103
104
|
};
|
104
105
|
export declare function getUserUploadTasks({ user_id, offset, limit }: {
|
105
106
|
user_id: string;
|
@@ -331,20 +332,21 @@ export declare function moveSourceFiles({ folder_id, sourceFileIds }: {
|
|
331
332
|
sourceFileIds: Array<string>;
|
332
333
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
333
334
|
export type GetUploadTasksInFolder_UploadTask = {
|
334
|
-
upload_task_id
|
335
|
-
folder_id
|
336
|
-
uploaded_at
|
337
|
-
uploaded_by
|
338
|
-
progress
|
339
|
-
|
340
|
-
|
335
|
+
upload_task_id: string;
|
336
|
+
folder_id: string;
|
337
|
+
uploaded_at: string;
|
338
|
+
uploaded_by: string;
|
339
|
+
progress: number;
|
340
|
+
downloadProgress?: number;
|
341
|
+
status: "waiting" | "downloading" | "pending" | "converting" | "error";
|
342
|
+
conversion_tasks: Array<GetUploadTasksInFolder_ConversionTask>;
|
341
343
|
};
|
342
344
|
export type GetUploadTasksInFolder_ConversionTask = {
|
343
345
|
asset_id?: string;
|
344
346
|
source_file_id?: string;
|
345
347
|
conversion_pipeline?: "auto-detect" | "volume" | "scene" | "texture" | "animation";
|
346
348
|
progress?: number;
|
347
|
-
status?: "waiting" | "pending" | "converting" | "error";
|
349
|
+
status?: "waiting" | "downloading" | "pending" | "converting" | "error";
|
348
350
|
};
|
349
351
|
export declare function getUploadTasksInFolder({ folder_id, offset, limit }: {
|
350
352
|
folder_id: string;
|
@@ -483,20 +485,21 @@ export declare function getSourceFileAssets({ source_file_id }: {
|
|
483
485
|
source_file_id: string;
|
484
486
|
}): AxiosPromise<GetSourceFileAssets_asset_list>;
|
485
487
|
export type GetUploadTask_UploadTask = {
|
486
|
-
upload_task_id
|
487
|
-
folder_id
|
488
|
-
uploaded_at
|
489
|
-
uploaded_by
|
490
|
-
progress
|
491
|
-
|
492
|
-
|
488
|
+
upload_task_id: string;
|
489
|
+
folder_id: string;
|
490
|
+
uploaded_at: string;
|
491
|
+
uploaded_by: string;
|
492
|
+
progress: number;
|
493
|
+
downloadProgress?: number;
|
494
|
+
status: "waiting" | "downloading" | "pending" | "converting" | "error";
|
495
|
+
conversion_tasks: Array<GetUploadTask_ConversionTask>;
|
493
496
|
};
|
494
497
|
export type GetUploadTask_ConversionTask = {
|
495
498
|
asset_id?: string;
|
496
499
|
source_file_id?: string;
|
497
500
|
conversion_pipeline?: "auto-detect" | "volume" | "scene" | "texture" | "animation";
|
498
501
|
progress?: number;
|
499
|
-
status?: "waiting" | "pending" | "converting" | "error";
|
502
|
+
status?: "waiting" | "downloading" | "pending" | "converting" | "error";
|
500
503
|
};
|
501
504
|
export declare function getUploadTask({ upload_task_id }: {
|
502
505
|
upload_task_id: string;
|
@@ -863,12 +866,19 @@ export type GetAssetDescription_VkPipelineColorBlendAttachmentState = {
|
|
863
866
|
colorWriteMask?: GetAssetDescription_Object;
|
864
867
|
};
|
865
868
|
export type GetAssetDescription_Scene = {
|
866
|
-
|
867
|
-
entities
|
868
|
-
triangleCount
|
869
|
+
aabb: GetAssetDescription_Aabb;
|
870
|
+
entities: Array<GetAssetDescription_Entity>;
|
871
|
+
triangleCount: number;
|
869
872
|
settings?: GetAssetDescription_Object;
|
870
873
|
animationSequenceInstances?: Array<GetAssetDescription_animation_sequence_instance>;
|
871
874
|
};
|
875
|
+
export type GetAssetDescription_Aabb = {
|
876
|
+
min: Array<number>;
|
877
|
+
max: Array<number>;
|
878
|
+
};
|
879
|
+
export type GetAssetDescription_Entity = {
|
880
|
+
entity: GetAssetDescription_Entity;
|
881
|
+
};
|
872
882
|
export type GetAssetDescription_animation_sequence_instance = {
|
873
883
|
ref?: string;
|
874
884
|
entities?: Array<string>;
|
@@ -1190,12 +1200,19 @@ export type UpdateAssetDescription_VkPipelineColorBlendAttachmentState = {
|
|
1190
1200
|
colorWriteMask?: UpdateAssetDescription_Object;
|
1191
1201
|
};
|
1192
1202
|
export type UpdateAssetDescription_Scene = {
|
1193
|
-
|
1194
|
-
entities
|
1195
|
-
triangleCount
|
1203
|
+
aabb: UpdateAssetDescription_Aabb;
|
1204
|
+
entities: Array<UpdateAssetDescription_Entity>;
|
1205
|
+
triangleCount: number;
|
1196
1206
|
settings?: UpdateAssetDescription_Object;
|
1197
1207
|
animationSequenceInstances?: Array<UpdateAssetDescription_animation_sequence_instance>;
|
1198
1208
|
};
|
1209
|
+
export type UpdateAssetDescription_Aabb = {
|
1210
|
+
min: Array<number>;
|
1211
|
+
max: Array<number>;
|
1212
|
+
};
|
1213
|
+
export type UpdateAssetDescription_Entity = {
|
1214
|
+
entity: UpdateAssetDescription_Entity;
|
1215
|
+
};
|
1199
1216
|
export type UpdateAssetDescription_animation_sequence_instance = {
|
1200
1217
|
ref?: string;
|
1201
1218
|
entities?: Array<string>;
|
package/dist/index.js
CHANGED
@@ -108,6 +108,7 @@ __export(library_exports, {
|
|
108
108
|
uploadSourceFiles: () => uploadSourceFiles
|
109
109
|
});
|
110
110
|
module.exports = __toCommonJS(library_exports);
|
111
|
+
var import_axios_retry = __toESM(require("axios-retry"));
|
111
112
|
|
112
113
|
// _prebuild/wrapper.ts
|
113
114
|
var import_axios = __toESM(require("axios"));
|
@@ -947,7 +948,6 @@ function generateGuestToken({
|
|
947
948
|
}
|
948
949
|
|
949
950
|
// index.ts
|
950
|
-
var import_axios_retry = __toESM(require("axios-retry"));
|
951
951
|
function setApiKey(apiKey) {
|
952
952
|
axiosInstance.defaults.headers.common["api_key"] = apiKey;
|
953
953
|
delete axiosInstance.defaults.headers.common["user_token"];
|