@3dverse/api 0.0.2 → 0.0.4
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.
- package/dist/index.cjs.js +16 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +517 -410
- package/dist/index.esm.js +15 -7
- package/dist/index.esm.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,34 +1,23 @@
|
|
|
1
1
|
import * as axios from 'axios';
|
|
2
|
+
import { AxiosPromise } from 'axios';
|
|
2
3
|
|
|
3
|
-
/**
|
|
4
|
-
* 3dverse v1.0
|
|
5
|
-
* # 3dverse API
|
|
6
|
-
*
|
|
7
|
-
* Welcome to the 3dverse API. The 3dverse API scopes to an API key. Each development environment of an application requires a separate API key.
|
|
8
|
-
* Through the API key, you can manage ownership, access, and permissions for each environment.
|
|
9
|
-
* Each environment has its own set of users, groups, folders, and assets.
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* Contact: 3dverse Support (support@3dverse.com)
|
|
13
|
-
*
|
|
14
|
-
* NOTE: This file is auto generated by library-generator (https://gitlab.com/3dverse/libs/library-generator).
|
|
15
|
-
* Do not edit this file class manually.
|
|
16
|
-
*/
|
|
17
4
|
declare const axiosInstance: axios.AxiosInstance;
|
|
18
5
|
interface ApiError {
|
|
19
6
|
errorCode: number;
|
|
7
|
+
message: string;
|
|
20
8
|
status: number;
|
|
21
9
|
error: any;
|
|
22
10
|
}
|
|
11
|
+
declare function setBaseURL(baseURL: string): void;
|
|
23
12
|
type ListUsers_User_UserInfo = {
|
|
24
13
|
user_id: string;
|
|
25
14
|
username: string;
|
|
26
15
|
registered_at?: string;
|
|
27
16
|
};
|
|
28
17
|
declare function listUsers({ offset, limit }: {
|
|
29
|
-
offset
|
|
30
|
-
limit
|
|
31
|
-
}):
|
|
18
|
+
offset?: number;
|
|
19
|
+
limit?: number;
|
|
20
|
+
}): AxiosPromise<Array<ListUsers_User_UserInfo>>;
|
|
32
21
|
type RegisterUser_User_UserInfo = {
|
|
33
22
|
user_id: string;
|
|
34
23
|
username: string;
|
|
@@ -36,7 +25,7 @@ type RegisterUser_User_UserInfo = {
|
|
|
36
25
|
};
|
|
37
26
|
declare function registerUser({ username }: {
|
|
38
27
|
username: string;
|
|
39
|
-
}):
|
|
28
|
+
}): AxiosPromise<RegisterUser_User_UserInfo>;
|
|
40
29
|
type GetUser_User_UserInfo = {
|
|
41
30
|
user_id: string;
|
|
42
31
|
username: string;
|
|
@@ -44,40 +33,17 @@ type GetUser_User_UserInfo = {
|
|
|
44
33
|
};
|
|
45
34
|
declare function getUser({ user_id }: {
|
|
46
35
|
user_id: string;
|
|
47
|
-
}):
|
|
36
|
+
}): AxiosPromise<GetUser_User_UserInfo>;
|
|
48
37
|
declare function updateUser({ user_id, username }: {
|
|
49
38
|
user_id: string;
|
|
50
39
|
username: string;
|
|
51
40
|
}): Promise<axios.AxiosResponse<any, any>>;
|
|
52
41
|
type DeleteUser_Object = {
|
|
53
|
-
deleted_assets?:
|
|
54
|
-
};
|
|
55
|
-
type DeleteUser_asset_list = {
|
|
56
|
-
animations?: Array<DeleteUser_asset_item>;
|
|
57
|
-
animationGraphs?: Array<DeleteUser_asset_item>;
|
|
58
|
-
animationSequences?: Array<DeleteUser_asset_item>;
|
|
59
|
-
animationSets?: Array<DeleteUser_asset_item>;
|
|
60
|
-
cubemaps?: Array<DeleteUser_asset_item>;
|
|
61
|
-
eventMaps?: Array<DeleteUser_asset_item>;
|
|
62
|
-
materials?: Array<DeleteUser_asset_item>;
|
|
63
|
-
meshes?: Array<DeleteUser_asset_item>;
|
|
64
|
-
pointClouds?: Array<DeleteUser_asset_item>;
|
|
65
|
-
renderGraphs?: Array<DeleteUser_asset_item>;
|
|
66
|
-
scenes?: Array<DeleteUser_asset_item>;
|
|
67
|
-
scripts?: Array<DeleteUser_asset_item>;
|
|
68
|
-
shaders?: Array<DeleteUser_asset_item>;
|
|
69
|
-
skeletons?: Array<DeleteUser_asset_item>;
|
|
70
|
-
sounds?: Array<DeleteUser_asset_item>;
|
|
71
|
-
textures?: Array<DeleteUser_asset_item>;
|
|
72
|
-
volumeMaterials?: Array<DeleteUser_asset_item>;
|
|
73
|
-
};
|
|
74
|
-
type DeleteUser_asset_item = {
|
|
75
|
-
asset_id?: string;
|
|
76
|
-
asset_name?: string;
|
|
42
|
+
deleted_assets?: DeleteUser_Object;
|
|
77
43
|
};
|
|
78
44
|
declare function deleteUser({ user_id }: {
|
|
79
45
|
user_id: string;
|
|
80
|
-
}):
|
|
46
|
+
}): AxiosPromise<DeleteUser_Object>;
|
|
81
47
|
type GenerateUserToken_Token = {
|
|
82
48
|
user_token?: string;
|
|
83
49
|
expires_in?: number;
|
|
@@ -86,14 +52,14 @@ type GenerateUserToken_Token = {
|
|
|
86
52
|
declare function generateUserToken({ user_id, scope, ttl }: {
|
|
87
53
|
user_id: string;
|
|
88
54
|
scope: "read" | "write" | "manage";
|
|
89
|
-
ttl
|
|
90
|
-
}):
|
|
55
|
+
ttl?: string;
|
|
56
|
+
}): AxiosPromise<GenerateUserToken_Token>;
|
|
91
57
|
type GetUserGroups_Group_GroupInfo = {
|
|
92
58
|
group_id: string;
|
|
93
59
|
group_name: string;
|
|
94
60
|
group_description?: string;
|
|
95
|
-
created_at
|
|
96
|
-
members
|
|
61
|
+
created_at: string;
|
|
62
|
+
members: Array<GetUserGroups_GroupMember_GroupAccess>;
|
|
97
63
|
};
|
|
98
64
|
type GetUserGroups_GroupMember_GroupAccess = {
|
|
99
65
|
user_id: string;
|
|
@@ -103,27 +69,27 @@ type GetUserGroups_GroupMember_GroupAccess = {
|
|
|
103
69
|
};
|
|
104
70
|
declare function getUserGroups({ user_id }: {
|
|
105
71
|
user_id: string;
|
|
106
|
-
}):
|
|
72
|
+
}): AxiosPromise<Array<GetUserGroups_Group_GroupInfo>>;
|
|
107
73
|
type GetUserUploadTasks_UploadTask = {
|
|
108
74
|
upload_task_id?: string;
|
|
109
75
|
folder_id?: string;
|
|
110
76
|
uploaded_at?: string;
|
|
111
77
|
uploaded_by?: string;
|
|
112
78
|
progress?: number;
|
|
113
|
-
status?:
|
|
79
|
+
status?: "waiting" | "pending" | "converting" | "error";
|
|
114
80
|
conversion_tasks?: Array<GetUserUploadTasks_ConversionTask>;
|
|
115
81
|
};
|
|
116
82
|
type GetUserUploadTasks_ConversionTask = {
|
|
117
83
|
source_file_id?: string;
|
|
118
|
-
conversion_pipeline?:
|
|
84
|
+
conversion_pipeline?: "auto-detect" | "volume" | "scene" | "texture" | "animation";
|
|
119
85
|
progress?: number;
|
|
120
|
-
status?:
|
|
86
|
+
status?: "waiting" | "pending" | "converting" | "error";
|
|
121
87
|
};
|
|
122
88
|
declare function getUserUploadTasks({ user_id, offset, limit }: {
|
|
123
89
|
user_id: string;
|
|
124
|
-
offset
|
|
125
|
-
limit
|
|
126
|
-
}):
|
|
90
|
+
offset?: number;
|
|
91
|
+
limit?: number;
|
|
92
|
+
}): AxiosPromise<Array<GetUserUploadTasks_UploadTask>>;
|
|
127
93
|
type CreateGroup_GroupMember_GroupAccess = {
|
|
128
94
|
user_id: string;
|
|
129
95
|
group_access: "read" | "write" | "manage";
|
|
@@ -133,20 +99,26 @@ type CreateGroup_Group_GroupInfo = {
|
|
|
133
99
|
group_id: string;
|
|
134
100
|
group_name: string;
|
|
135
101
|
group_description?: string;
|
|
136
|
-
created_at
|
|
137
|
-
members
|
|
102
|
+
created_at: string;
|
|
103
|
+
members: Array<CreateGroup_GroupMember_GroupAccess_Writable>;
|
|
104
|
+
};
|
|
105
|
+
type CreateGroup_GroupMember_GroupAccess_Writable = {
|
|
106
|
+
user_id: string;
|
|
107
|
+
joined_at?: string;
|
|
108
|
+
group_access: "read" | "write" | "manage";
|
|
109
|
+
folder_access: "read" | "write" | "manage";
|
|
138
110
|
};
|
|
139
111
|
declare function createGroup({ group_name, group_description, members }: {
|
|
140
112
|
group_name: string;
|
|
141
113
|
group_description?: string;
|
|
142
|
-
members
|
|
143
|
-
}):
|
|
114
|
+
members: Array<CreateGroup_GroupMember_GroupAccess>;
|
|
115
|
+
}): AxiosPromise<CreateGroup_Group_GroupInfo>;
|
|
144
116
|
type GetGroup_Group_GroupInfo = {
|
|
145
117
|
group_id: string;
|
|
146
118
|
group_name: string;
|
|
147
119
|
group_description?: string;
|
|
148
|
-
created_at
|
|
149
|
-
members
|
|
120
|
+
created_at: string;
|
|
121
|
+
members: Array<GetGroup_GroupMember_GroupAccess>;
|
|
150
122
|
};
|
|
151
123
|
type GetGroup_GroupMember_GroupAccess = {
|
|
152
124
|
user_id: string;
|
|
@@ -156,7 +128,7 @@ type GetGroup_GroupMember_GroupAccess = {
|
|
|
156
128
|
};
|
|
157
129
|
declare function getGroup({ group_id }: {
|
|
158
130
|
group_id: string;
|
|
159
|
-
}):
|
|
131
|
+
}): AxiosPromise<GetGroup_Group_GroupInfo>;
|
|
160
132
|
declare function updateGroupDescription({ group_id, group_name, group_description }: {
|
|
161
133
|
group_id: string;
|
|
162
134
|
group_name: string;
|
|
@@ -182,46 +154,61 @@ type ListFolders_Folder = {
|
|
|
182
154
|
parent_folder_id?: string;
|
|
183
155
|
folder_name: string;
|
|
184
156
|
created_at?: string;
|
|
185
|
-
created_by?:
|
|
157
|
+
created_by?: ListFolders_Object;
|
|
186
158
|
subfolders?: Array<ListFolders_Folder>;
|
|
187
159
|
source_file_count?: number;
|
|
188
160
|
asset_count?: number;
|
|
189
161
|
};
|
|
190
|
-
type
|
|
162
|
+
type ListFolders_Object = {
|
|
191
163
|
user_id: string;
|
|
192
164
|
username: string;
|
|
193
165
|
registered_at?: string;
|
|
194
166
|
};
|
|
195
167
|
declare function listFolders({ offset, limit }: {
|
|
196
|
-
offset
|
|
197
|
-
limit
|
|
198
|
-
}):
|
|
168
|
+
offset?: number;
|
|
169
|
+
limit?: number;
|
|
170
|
+
}): AxiosPromise<Array<ListFolders_Folder>>;
|
|
199
171
|
type CreateFolder_Folder = {
|
|
200
172
|
folder_name: string;
|
|
201
173
|
subfolders?: Array<CreateFolder_Folder>;
|
|
202
174
|
};
|
|
175
|
+
type CreateFolder_Folder_Writable = {
|
|
176
|
+
folder_id: string;
|
|
177
|
+
parent_folder_id?: string;
|
|
178
|
+
folder_name: string;
|
|
179
|
+
created_at?: string;
|
|
180
|
+
created_by?: CreateFolder_Object;
|
|
181
|
+
subfolders?: Array<CreateFolder_Folder_Writable>;
|
|
182
|
+
source_file_count?: number;
|
|
183
|
+
asset_count?: number;
|
|
184
|
+
};
|
|
185
|
+
type CreateFolder_Object = {
|
|
186
|
+
user_id: string;
|
|
187
|
+
username: string;
|
|
188
|
+
registered_at?: string;
|
|
189
|
+
};
|
|
203
190
|
declare function createFolder({ folder_name, subfolders }: {
|
|
204
191
|
folder_name: string;
|
|
205
192
|
subfolders?: Array<CreateFolder_Folder>;
|
|
206
|
-
}):
|
|
193
|
+
}): AxiosPromise<CreateFolder_Folder_Writable>;
|
|
207
194
|
type GetFolderInfo_Folder = {
|
|
208
195
|
folder_id: string;
|
|
209
196
|
parent_folder_id?: string;
|
|
210
197
|
folder_name: string;
|
|
211
198
|
created_at?: string;
|
|
212
|
-
created_by?:
|
|
199
|
+
created_by?: GetFolderInfo_Object;
|
|
213
200
|
subfolders?: Array<GetFolderInfo_Folder>;
|
|
214
201
|
source_file_count?: number;
|
|
215
202
|
asset_count?: number;
|
|
216
203
|
};
|
|
217
|
-
type
|
|
204
|
+
type GetFolderInfo_Object = {
|
|
218
205
|
user_id: string;
|
|
219
206
|
username: string;
|
|
220
207
|
registered_at?: string;
|
|
221
208
|
};
|
|
222
209
|
declare function getFolderInfo({ folder_id }: {
|
|
223
210
|
folder_id: string;
|
|
224
|
-
}):
|
|
211
|
+
}): AxiosPromise<GetFolderInfo_Folder>;
|
|
225
212
|
declare function moveFolders({ folder_id, folder_ids }: {
|
|
226
213
|
folder_id: string;
|
|
227
214
|
folder_ids: Array<string>;
|
|
@@ -249,7 +236,7 @@ type ListFolderAccesses_GroupInfo_FolderAccess = {
|
|
|
249
236
|
};
|
|
250
237
|
declare function listFolderAccesses({ folder_id }: {
|
|
251
238
|
folder_id: string;
|
|
252
|
-
}):
|
|
239
|
+
}): AxiosPromise<ListFolderAccesses_Object>;
|
|
253
240
|
declare function grantMemberAccessToFolder({ folder_id, member_type, member_id, access }: {
|
|
254
241
|
folder_id: string;
|
|
255
242
|
member_type: "users" | "groups";
|
|
@@ -265,37 +252,52 @@ type CreateSubfolder_Folder = {
|
|
|
265
252
|
folder_name: string;
|
|
266
253
|
subfolders?: Array<CreateSubfolder_Folder>;
|
|
267
254
|
};
|
|
255
|
+
type CreateSubfolder_Folder_Writable = {
|
|
256
|
+
folder_id: string;
|
|
257
|
+
parent_folder_id?: string;
|
|
258
|
+
folder_name: string;
|
|
259
|
+
created_at?: string;
|
|
260
|
+
created_by?: CreateSubfolder_Object;
|
|
261
|
+
subfolders?: Array<CreateSubfolder_Folder_Writable>;
|
|
262
|
+
source_file_count?: number;
|
|
263
|
+
asset_count?: number;
|
|
264
|
+
};
|
|
265
|
+
type CreateSubfolder_Object = {
|
|
266
|
+
user_id: string;
|
|
267
|
+
username: string;
|
|
268
|
+
registered_at?: string;
|
|
269
|
+
};
|
|
268
270
|
declare function createSubfolder({ folder_id, folder_name, subfolders }: {
|
|
269
271
|
folder_id: string;
|
|
270
272
|
folder_name: string;
|
|
271
273
|
subfolders?: Array<CreateSubfolder_Folder>;
|
|
272
|
-
}):
|
|
274
|
+
}): AxiosPromise<CreateSubfolder_Folder_Writable>;
|
|
273
275
|
type ListFolderSubFolders_Folder = {
|
|
274
276
|
folder_id: string;
|
|
275
277
|
parent_folder_id?: string;
|
|
276
278
|
folder_name: string;
|
|
277
279
|
created_at?: string;
|
|
278
|
-
created_by?:
|
|
280
|
+
created_by?: ListFolderSubFolders_Object;
|
|
279
281
|
subfolders?: Array<ListFolderSubFolders_Folder>;
|
|
280
282
|
source_file_count?: number;
|
|
281
283
|
asset_count?: number;
|
|
282
284
|
};
|
|
283
|
-
type
|
|
285
|
+
type ListFolderSubFolders_Object = {
|
|
284
286
|
user_id: string;
|
|
285
287
|
username: string;
|
|
286
288
|
registered_at?: string;
|
|
287
289
|
};
|
|
288
290
|
declare function listFolderSubFolders({ folder_id, depth }: {
|
|
289
291
|
folder_id: string;
|
|
290
|
-
depth
|
|
291
|
-
}):
|
|
292
|
+
depth?: number;
|
|
293
|
+
}): AxiosPromise<Array<ListFolderSubFolders_Folder>>;
|
|
292
294
|
type UploadSourceFiles_Object = {
|
|
293
295
|
upload_task_id?: string;
|
|
294
296
|
};
|
|
295
297
|
declare function uploadSourceFiles({ folder_id, body }: {
|
|
296
298
|
folder_id: string;
|
|
297
299
|
body: FormData;
|
|
298
|
-
}):
|
|
300
|
+
}): AxiosPromise<UploadSourceFiles_Object>;
|
|
299
301
|
type GetSourceFilesInFolder_SourceFile = {
|
|
300
302
|
source_file_id?: string;
|
|
301
303
|
upload_task_id?: string;
|
|
@@ -305,9 +307,9 @@ type GetSourceFilesInFolder_SourceFile = {
|
|
|
305
307
|
};
|
|
306
308
|
declare function getSourceFilesInFolder({ folder_id, offset, limit }: {
|
|
307
309
|
folder_id: string;
|
|
308
|
-
offset
|
|
309
|
-
limit
|
|
310
|
-
}):
|
|
310
|
+
offset?: number;
|
|
311
|
+
limit?: number;
|
|
312
|
+
}): AxiosPromise<Array<GetSourceFilesInFolder_SourceFile>>;
|
|
311
313
|
declare function moveSourceFiles({ folder_id, source_file_ids }: {
|
|
312
314
|
folder_id: string;
|
|
313
315
|
source_file_ids: Array<string>;
|
|
@@ -318,20 +320,20 @@ type GetUploadTasksInFolder_UploadTask = {
|
|
|
318
320
|
uploaded_at?: string;
|
|
319
321
|
uploaded_by?: string;
|
|
320
322
|
progress?: number;
|
|
321
|
-
status?:
|
|
323
|
+
status?: "waiting" | "pending" | "converting" | "error";
|
|
322
324
|
conversion_tasks?: Array<GetUploadTasksInFolder_ConversionTask>;
|
|
323
325
|
};
|
|
324
326
|
type GetUploadTasksInFolder_ConversionTask = {
|
|
325
327
|
source_file_id?: string;
|
|
326
|
-
conversion_pipeline?:
|
|
328
|
+
conversion_pipeline?: "auto-detect" | "volume" | "scene" | "texture" | "animation";
|
|
327
329
|
progress?: number;
|
|
328
|
-
status?:
|
|
330
|
+
status?: "waiting" | "pending" | "converting" | "error";
|
|
329
331
|
};
|
|
330
332
|
declare function getUploadTasksInFolder({ folder_id, offset, limit }: {
|
|
331
333
|
folder_id: string;
|
|
332
|
-
offset
|
|
333
|
-
limit
|
|
334
|
-
}):
|
|
334
|
+
offset?: number;
|
|
335
|
+
limit?: number;
|
|
336
|
+
}): AxiosPromise<Array<GetUploadTasksInFolder_UploadTask>>;
|
|
335
337
|
type GetFolderAssets_asset_list = {
|
|
336
338
|
animations?: Array<GetFolderAssets_asset_item>;
|
|
337
339
|
animationGraphs?: Array<GetFolderAssets_asset_item>;
|
|
@@ -352,12 +354,12 @@ type GetFolderAssets_asset_list = {
|
|
|
352
354
|
volumeMaterials?: Array<GetFolderAssets_asset_item>;
|
|
353
355
|
};
|
|
354
356
|
type GetFolderAssets_asset_item = {
|
|
355
|
-
asset_id
|
|
356
|
-
asset_name
|
|
357
|
+
asset_id: string;
|
|
358
|
+
asset_name: string;
|
|
357
359
|
};
|
|
358
360
|
declare function getFolderAssets({ folder_id }: {
|
|
359
361
|
folder_id: string;
|
|
360
|
-
}):
|
|
362
|
+
}): AxiosPromise<GetFolderAssets_asset_list>;
|
|
361
363
|
declare function moveAssets({ folder_id, asset_ids }: {
|
|
362
364
|
folder_id: string;
|
|
363
365
|
asset_ids: Array<string>;
|
|
@@ -366,19 +368,24 @@ type CreateAsset_Object = {
|
|
|
366
368
|
copy_from_asset_id: string;
|
|
367
369
|
};
|
|
368
370
|
type CreateAsset_AssetDescription = {
|
|
369
|
-
name
|
|
371
|
+
name: string;
|
|
372
|
+
};
|
|
373
|
+
type CreateAsset_asset_item = {
|
|
374
|
+
asset_id: string;
|
|
375
|
+
asset_name: string;
|
|
370
376
|
};
|
|
371
377
|
declare function createAsset({ folder_id, asset_container_creatable, body }: {
|
|
372
378
|
folder_id: string;
|
|
373
379
|
asset_container_creatable: "animationGraphs" | "animationSequences" | "cubemaps" | "eventMaps" | "materials" | "renderGraphs" | "scenes" | "scripts" | "shaders" | "volumeMaterials";
|
|
374
380
|
body: CreateAsset_Object | CreateAsset_AssetDescription;
|
|
375
|
-
}):
|
|
381
|
+
}): AxiosPromise<CreateAsset_asset_item>;
|
|
376
382
|
type GetSessionsInFolder_Session = {
|
|
377
383
|
session_id: string;
|
|
378
384
|
scene_id: string;
|
|
379
385
|
scene_name: string;
|
|
380
386
|
folder_id: string;
|
|
381
387
|
max_users: number;
|
|
388
|
+
creator_user_id: string;
|
|
382
389
|
created_at: string;
|
|
383
390
|
country_code: string;
|
|
384
391
|
continent_code: string;
|
|
@@ -392,7 +399,7 @@ type GetSessionsInFolder_UserInfo = {
|
|
|
392
399
|
};
|
|
393
400
|
declare function getSessionsInFolder({ folder_id }: {
|
|
394
401
|
folder_id: string;
|
|
395
|
-
}):
|
|
402
|
+
}): AxiosPromise<Array<GetSessionsInFolder_Session>>;
|
|
396
403
|
type ListSourceFiles_SourceFile = {
|
|
397
404
|
source_file_id?: string;
|
|
398
405
|
upload_task_id?: string;
|
|
@@ -401,15 +408,15 @@ type ListSourceFiles_SourceFile = {
|
|
|
401
408
|
size?: number;
|
|
402
409
|
};
|
|
403
410
|
declare function listSourceFiles({ offset, limit }: {
|
|
404
|
-
offset
|
|
405
|
-
limit
|
|
406
|
-
}):
|
|
411
|
+
offset?: number;
|
|
412
|
+
limit?: number;
|
|
413
|
+
}): AxiosPromise<Array<ListSourceFiles_SourceFile>>;
|
|
407
414
|
declare function deleteSourceFiles({ source_file_ids }: {
|
|
408
415
|
source_file_ids: Array<string>;
|
|
409
416
|
}): Promise<axios.AxiosResponse<any, any>>;
|
|
410
417
|
declare function downloadSourceFile({ source_file_id }: {
|
|
411
418
|
source_file_id: string;
|
|
412
|
-
}):
|
|
419
|
+
}): AxiosPromise<ArrayBuffer>;
|
|
413
420
|
type GetSourceFileDetails_SourceFile = {
|
|
414
421
|
source_file_id?: string;
|
|
415
422
|
upload_task_id?: string;
|
|
@@ -419,7 +426,7 @@ type GetSourceFileDetails_SourceFile = {
|
|
|
419
426
|
};
|
|
420
427
|
declare function getSourceFileDetails({ source_file_id }: {
|
|
421
428
|
source_file_id: string;
|
|
422
|
-
}):
|
|
429
|
+
}): AxiosPromise<GetSourceFileDetails_SourceFile>;
|
|
423
430
|
declare function updateSourceFileDetails({ source_file_id, source_file_name }: {
|
|
424
431
|
source_file_id: string;
|
|
425
432
|
source_file_name?: string;
|
|
@@ -444,30 +451,30 @@ type GetSourceFileAssets_asset_list = {
|
|
|
444
451
|
volumeMaterials?: Array<GetSourceFileAssets_asset_item>;
|
|
445
452
|
};
|
|
446
453
|
type GetSourceFileAssets_asset_item = {
|
|
447
|
-
asset_id
|
|
448
|
-
asset_name
|
|
454
|
+
asset_id: string;
|
|
455
|
+
asset_name: string;
|
|
449
456
|
};
|
|
450
457
|
declare function getSourceFileAssets({ source_file_id }: {
|
|
451
458
|
source_file_id: string;
|
|
452
|
-
}):
|
|
459
|
+
}): AxiosPromise<GetSourceFileAssets_asset_list>;
|
|
453
460
|
type GetUploadTask_UploadTask = {
|
|
454
461
|
upload_task_id?: string;
|
|
455
462
|
folder_id?: string;
|
|
456
463
|
uploaded_at?: string;
|
|
457
464
|
uploaded_by?: string;
|
|
458
465
|
progress?: number;
|
|
459
|
-
status?:
|
|
466
|
+
status?: "waiting" | "pending" | "converting" | "error";
|
|
460
467
|
conversion_tasks?: Array<GetUploadTask_ConversionTask>;
|
|
461
468
|
};
|
|
462
469
|
type GetUploadTask_ConversionTask = {
|
|
463
470
|
source_file_id?: string;
|
|
464
|
-
conversion_pipeline?:
|
|
471
|
+
conversion_pipeline?: "auto-detect" | "volume" | "scene" | "texture" | "animation";
|
|
465
472
|
progress?: number;
|
|
466
|
-
status?:
|
|
473
|
+
status?: "waiting" | "pending" | "converting" | "error";
|
|
467
474
|
};
|
|
468
475
|
declare function getUploadTask({ upload_task_id }: {
|
|
469
476
|
upload_task_id: string;
|
|
470
|
-
}):
|
|
477
|
+
}): AxiosPromise<GetUploadTask_UploadTask>;
|
|
471
478
|
type ListAssets_asset_list = {
|
|
472
479
|
animations?: Array<ListAssets_asset_item>;
|
|
473
480
|
animationGraphs?: Array<ListAssets_asset_item>;
|
|
@@ -488,13 +495,13 @@ type ListAssets_asset_list = {
|
|
|
488
495
|
volumeMaterials?: Array<ListAssets_asset_item>;
|
|
489
496
|
};
|
|
490
497
|
type ListAssets_asset_item = {
|
|
491
|
-
asset_id
|
|
492
|
-
asset_name
|
|
498
|
+
asset_id: string;
|
|
499
|
+
asset_name: string;
|
|
493
500
|
};
|
|
494
501
|
declare function listAssets({ offset, limit }: {
|
|
495
|
-
offset
|
|
496
|
-
limit
|
|
497
|
-
}):
|
|
502
|
+
offset?: number;
|
|
503
|
+
limit?: number;
|
|
504
|
+
}): AxiosPromise<ListAssets_asset_list>;
|
|
498
505
|
declare function deleteAssets({ asset_ids }: {
|
|
499
506
|
asset_ids: Array<string>;
|
|
500
507
|
}): Promise<axios.AxiosResponse<any, any>>;
|
|
@@ -512,41 +519,41 @@ type GetAssetSourceFile_SourceFile = {
|
|
|
512
519
|
declare function getAssetSourceFile({ asset_container, asset_id }: {
|
|
513
520
|
asset_container: "animations" | "animationGraphs" | "animationSequences" | "animationSets" | "cubemaps" | "eventMaps" | "materials" | "meshes" | "pointClouds" | "renderGraphs" | "scenes" | "scripts" | "shaders" | "skeletons" | "sounds" | "textures" | "volumeMaterials";
|
|
514
521
|
asset_id: string;
|
|
515
|
-
}):
|
|
522
|
+
}): AxiosPromise<GetAssetSourceFile_SourceFile>;
|
|
516
523
|
type GetAssetDetails_asset_details = {
|
|
517
|
-
type
|
|
518
|
-
asset_id
|
|
519
|
-
name
|
|
524
|
+
type: "animation" | "animationGraph" | "animationSequence" | "animationSet" | "cubemap" | "eventMap" | "material" | "mesh" | "pointCloud" | "renderGraph" | "scene" | "script" | "shader" | "skeleton" | "sound" | "texture" | "volumeMaterial";
|
|
525
|
+
asset_id: string;
|
|
526
|
+
name: string;
|
|
520
527
|
created_at?: string;
|
|
521
|
-
created_by?:
|
|
528
|
+
created_by?: GetAssetDetails_Object;
|
|
522
529
|
last_edited_at?: string;
|
|
523
|
-
last_edited_by?:
|
|
530
|
+
last_edited_by?: GetAssetDetails_Object;
|
|
524
531
|
contributors?: Array<GetAssetDetails_UserContribution>;
|
|
525
532
|
};
|
|
526
|
-
type
|
|
533
|
+
type GetAssetDetails_Object = {
|
|
527
534
|
user_id: string;
|
|
528
535
|
username: string;
|
|
529
536
|
registered_at?: string;
|
|
530
537
|
};
|
|
531
538
|
type GetAssetDetails_UserContribution = {
|
|
532
|
-
user
|
|
533
|
-
contribution_count
|
|
539
|
+
user: GetAssetDetails_Object;
|
|
540
|
+
contribution_count: number;
|
|
534
541
|
};
|
|
535
542
|
declare function getAssetDetails({ asset_container, asset_id }: {
|
|
536
543
|
asset_container: "animations" | "animationGraphs" | "animationSequences" | "animationSets" | "cubemaps" | "eventMaps" | "materials" | "meshes" | "pointClouds" | "renderGraphs" | "scenes" | "scripts" | "shaders" | "skeletons" | "sounds" | "textures" | "volumeMaterials";
|
|
537
544
|
asset_id: string;
|
|
538
|
-
}):
|
|
545
|
+
}): AxiosPromise<GetAssetDetails_asset_details>;
|
|
539
546
|
type GetAssetFolder_Folder = {
|
|
540
547
|
folder_id: string;
|
|
541
548
|
parent_folder_id?: string;
|
|
542
549
|
folder_name: string;
|
|
543
550
|
created_at?: string;
|
|
544
|
-
created_by?:
|
|
551
|
+
created_by?: GetAssetFolder_Object;
|
|
545
552
|
subfolders?: Array<GetAssetFolder_Folder>;
|
|
546
553
|
source_file_count?: number;
|
|
547
554
|
asset_count?: number;
|
|
548
555
|
};
|
|
549
|
-
type
|
|
556
|
+
type GetAssetFolder_Object = {
|
|
550
557
|
user_id: string;
|
|
551
558
|
username: string;
|
|
552
559
|
registered_at?: string;
|
|
@@ -554,27 +561,364 @@ type GetAssetFolder_User_UserInfo = {
|
|
|
554
561
|
declare function getAssetFolder({ asset_container, asset_id }: {
|
|
555
562
|
asset_container: "animations" | "animationGraphs" | "animationSequences" | "animationSets" | "cubemaps" | "eventMaps" | "materials" | "meshes" | "pointClouds" | "renderGraphs" | "scenes" | "scripts" | "shaders" | "skeletons" | "sounds" | "textures" | "volumeMaterials";
|
|
556
563
|
asset_id: string;
|
|
557
|
-
}):
|
|
564
|
+
}): AxiosPromise<GetAssetFolder_Folder>;
|
|
558
565
|
type GetAssetDependencies_Object = {
|
|
559
566
|
type?: Array<string>;
|
|
560
567
|
};
|
|
568
|
+
type GetAssetDependencies_asset_list = {
|
|
569
|
+
animations?: Array<GetAssetDependencies_asset_item>;
|
|
570
|
+
animationGraphs?: Array<GetAssetDependencies_asset_item>;
|
|
571
|
+
animationSequences?: Array<GetAssetDependencies_asset_item>;
|
|
572
|
+
animationSets?: Array<GetAssetDependencies_asset_item>;
|
|
573
|
+
cubemaps?: Array<GetAssetDependencies_asset_item>;
|
|
574
|
+
eventMaps?: Array<GetAssetDependencies_asset_item>;
|
|
575
|
+
materials?: Array<GetAssetDependencies_asset_item>;
|
|
576
|
+
meshes?: Array<GetAssetDependencies_asset_item>;
|
|
577
|
+
pointClouds?: Array<GetAssetDependencies_asset_item>;
|
|
578
|
+
renderGraphs?: Array<GetAssetDependencies_asset_item>;
|
|
579
|
+
scenes?: Array<GetAssetDependencies_asset_item>;
|
|
580
|
+
scripts?: Array<GetAssetDependencies_asset_item>;
|
|
581
|
+
shaders?: Array<GetAssetDependencies_asset_item>;
|
|
582
|
+
skeletons?: Array<GetAssetDependencies_asset_item>;
|
|
583
|
+
sounds?: Array<GetAssetDependencies_asset_item>;
|
|
584
|
+
textures?: Array<GetAssetDependencies_asset_item>;
|
|
585
|
+
volumeMaterials?: Array<GetAssetDependencies_asset_item>;
|
|
586
|
+
};
|
|
587
|
+
type GetAssetDependencies_asset_item = {
|
|
588
|
+
asset_id: string;
|
|
589
|
+
asset_name: string;
|
|
590
|
+
};
|
|
561
591
|
declare function getAssetDependencies({ asset_container, asset_id, format, depth, filter }: {
|
|
562
592
|
asset_container: "animations" | "animationGraphs" | "animationSequences" | "animationSets" | "cubemaps" | "eventMaps" | "materials" | "meshes" | "pointClouds" | "renderGraphs" | "scenes" | "scripts" | "shaders" | "skeletons" | "sounds" | "textures" | "volumeMaterials";
|
|
563
593
|
asset_id: string;
|
|
564
|
-
format
|
|
565
|
-
depth
|
|
594
|
+
format?: 'flat' | 'graph';
|
|
595
|
+
depth?: 'all' | 'direct';
|
|
566
596
|
filter?: GetAssetDependencies_Object;
|
|
567
|
-
}):
|
|
597
|
+
}): AxiosPromise<GetAssetDependencies_asset_list | Array<Array<GetAssetDependencies_asset_item>>>;
|
|
568
598
|
type GetAssetReferences_Object = {};
|
|
569
599
|
declare function getAssetReferences({ asset_container, asset_id }: {
|
|
570
600
|
asset_container: "animations" | "animationGraphs" | "animationSequences" | "animationSets" | "cubemaps" | "eventMaps" | "materials" | "meshes" | "pointClouds" | "renderGraphs" | "scenes" | "scripts" | "shaders" | "skeletons" | "sounds" | "textures" | "volumeMaterials";
|
|
571
601
|
asset_id: string;
|
|
572
|
-
}):
|
|
573
|
-
type
|
|
602
|
+
}): AxiosPromise<GetAssetReferences_Object>;
|
|
603
|
+
type GetAssetDescription_animation_asset_schema = {
|
|
604
|
+
durationInMs: number;
|
|
605
|
+
payloadSize: number;
|
|
606
|
+
animationEventTrack: GetAssetDescription_Object;
|
|
607
|
+
skeletonRef?: string;
|
|
608
|
+
};
|
|
609
|
+
type GetAssetDescription_Object = {
|
|
610
|
+
eventNames?: Array<string>;
|
|
611
|
+
eventTimeline?: Array<GetAssetDescription_animation_event>;
|
|
612
|
+
};
|
|
613
|
+
type GetAssetDescription_animation_event = {
|
|
614
|
+
eventIndex?: number;
|
|
615
|
+
triggerTime?: number;
|
|
616
|
+
triggerGlobally?: boolean;
|
|
617
|
+
};
|
|
618
|
+
type GetAssetDescription_animation_graph_asset_schema = {
|
|
619
|
+
stateMachines?: Array<GetAssetDescription_animation_state_machine_description>;
|
|
620
|
+
inputDescriptor?: GetAssetDescription_Object;
|
|
621
|
+
};
|
|
622
|
+
type GetAssetDescription_animation_state_machine_description = {
|
|
623
|
+
states?: Array<GetAssetDescription_animation_state_description>;
|
|
624
|
+
transitions?: Array<GetAssetDescription_transition_description>;
|
|
625
|
+
};
|
|
626
|
+
type GetAssetDescription_animation_state_description = {
|
|
627
|
+
name?: string;
|
|
628
|
+
nodes?: Array<GetAssetDescription_animation_node_description>;
|
|
629
|
+
transitionIndices?: Array<number>;
|
|
630
|
+
};
|
|
631
|
+
type GetAssetDescription_animation_node_description = {
|
|
632
|
+
nodeType?: "state_machine" | "playback" | "blendspace_1d" | "blendspace_2d" | "blend" | "random" | "ik_aim" | "ik_two_bone";
|
|
633
|
+
inputs?: Array<number>;
|
|
634
|
+
settings?: GetAssetDescription_playback_settings_animation_settings | GetAssetDescription_blendspace_1d_settings_animation_settings | GetAssetDescription_blendspace_2d_settings_animation_settings | GetAssetDescription_blend_settings | GetAssetDescription_random_settings | GetAssetDescription_animation_state_machine_settings | GetAssetDescription_ik_two_bone_settings | GetAssetDescription_ik_aim_settings;
|
|
635
|
+
};
|
|
636
|
+
type GetAssetDescription_playback_settings_animation_settings = {
|
|
637
|
+
playbackSpeed?: number;
|
|
638
|
+
startOffset?: number;
|
|
639
|
+
loop?: boolean;
|
|
640
|
+
animationKey?: number;
|
|
641
|
+
};
|
|
642
|
+
type GetAssetDescription_blendspace_1d_settings_animation_settings = {
|
|
643
|
+
playbackSpeed?: number;
|
|
644
|
+
startOffset?: number;
|
|
645
|
+
loop?: boolean;
|
|
646
|
+
controlPoints?: Array<GetAssetDescription_blend_axis>;
|
|
647
|
+
horizontalAxis?: GetAssetDescription_Object;
|
|
648
|
+
};
|
|
649
|
+
type GetAssetDescription_blend_axis = {
|
|
650
|
+
name?: string;
|
|
651
|
+
rangeMin?: number;
|
|
652
|
+
rangeMax?: number;
|
|
653
|
+
};
|
|
654
|
+
type GetAssetDescription_blendspace_2d_settings_animation_settings = {
|
|
655
|
+
playbackSpeed?: number;
|
|
656
|
+
startOffset?: number;
|
|
657
|
+
loop?: boolean;
|
|
658
|
+
controlPoints?: Array<GetAssetDescription_blend_axis>;
|
|
659
|
+
horizontalAxis?: GetAssetDescription_Object;
|
|
660
|
+
verticalAxis?: GetAssetDescription_Object;
|
|
661
|
+
};
|
|
662
|
+
type GetAssetDescription_blend_settings = {
|
|
663
|
+
weights?: Array<number>;
|
|
664
|
+
boneIndices?: Array<number>;
|
|
665
|
+
};
|
|
666
|
+
type GetAssetDescription_random_settings = {
|
|
667
|
+
probabilities?: Array<number>;
|
|
668
|
+
};
|
|
669
|
+
type GetAssetDescription_animation_state_machine_settings = {
|
|
670
|
+
stateMachineIndex?: number;
|
|
671
|
+
};
|
|
672
|
+
type GetAssetDescription_ik_two_bone_settings = {
|
|
673
|
+
ws_poleVector?: Array<number>;
|
|
674
|
+
targetId?: string;
|
|
675
|
+
startJoint?: number;
|
|
676
|
+
midJoint?: number;
|
|
677
|
+
endJoint?: number;
|
|
678
|
+
soften?: number;
|
|
679
|
+
twistAngle?: number;
|
|
680
|
+
weight?: number;
|
|
681
|
+
};
|
|
682
|
+
type GetAssetDescription_ik_aim_settings = {
|
|
683
|
+
targetNameId?: string;
|
|
684
|
+
aimingBoneId?: string;
|
|
685
|
+
chainLength?: number;
|
|
686
|
+
eyesOffset?: Array<number>;
|
|
687
|
+
chainWeight?: number;
|
|
688
|
+
boneWeight?: number;
|
|
689
|
+
};
|
|
690
|
+
type GetAssetDescription_transition_description = {
|
|
691
|
+
durationInMs?: number;
|
|
692
|
+
exitTime?: number;
|
|
693
|
+
nextStateIndex?: number;
|
|
694
|
+
condition?: string;
|
|
695
|
+
};
|
|
696
|
+
type GetAssetDescription_animation_sequence_asset_schema = {
|
|
697
|
+
inputDescriptor: GetAssetDescription_Object;
|
|
698
|
+
};
|
|
699
|
+
type GetAssetDescription_animation_set_asset_schema = {
|
|
700
|
+
animationSet: Array<GetAssetDescription_Object>;
|
|
701
|
+
animationGraphUUID: string;
|
|
702
|
+
};
|
|
703
|
+
type GetAssetDescription_cubemap_asset_schema = {
|
|
704
|
+
faces: Array<string>;
|
|
705
|
+
};
|
|
706
|
+
type GetAssetDescription_event_map_asset_schema = {
|
|
707
|
+
eventDescriptors: Array<GetAssetDescription_Object>;
|
|
708
|
+
};
|
|
709
|
+
type GetAssetDescription_material_asset_schema = {
|
|
710
|
+
shaderRef: string;
|
|
711
|
+
skinnedShaderRef: string;
|
|
712
|
+
dataJson: GetAssetDescription_Object;
|
|
713
|
+
isDoubleSided: boolean;
|
|
714
|
+
};
|
|
715
|
+
type GetAssetDescription_mesh_asset_schema = {
|
|
716
|
+
submeshes: Array<GetAssetDescription_submesh_description>;
|
|
717
|
+
payloadSize: number;
|
|
718
|
+
};
|
|
719
|
+
type GetAssetDescription_submesh_description = {
|
|
720
|
+
boundingBox: GetAssetDescription_Object;
|
|
721
|
+
channels: Array<GetAssetDescription_channel_description>;
|
|
722
|
+
payloadSize: number;
|
|
723
|
+
indexCount: number;
|
|
724
|
+
vertexCount?: number;
|
|
725
|
+
};
|
|
726
|
+
type GetAssetDescription_channel_description = {
|
|
727
|
+
semantic?: "invalid" | "index" | "position" | "normal" | "uv" | "color" | "bone_id" | "weight";
|
|
728
|
+
elementCount?: number;
|
|
729
|
+
elementType?: "dt_signed" | "dt_unsigned" | "dt_float";
|
|
730
|
+
elementSize?: number;
|
|
731
|
+
dataOffset?: number;
|
|
732
|
+
dataSize?: number;
|
|
733
|
+
};
|
|
734
|
+
type GetAssetDescription_point_cloud_asset_schema = {
|
|
735
|
+
format: "invalid" | "xyz32" | "xyz32_rgb8";
|
|
736
|
+
payloadTotalSize: number;
|
|
737
|
+
pointCount: number;
|
|
738
|
+
translation?: Array<number>;
|
|
739
|
+
scale?: Array<number>;
|
|
740
|
+
};
|
|
741
|
+
type GetAssetDescription_render_graph_asset_schema = {
|
|
742
|
+
renderTargetDescriptions?: Array<GetAssetDescription_render_target_description>;
|
|
743
|
+
nodeDataDescriptions?: Array<GetAssetDescription_node_data_description>;
|
|
744
|
+
renderPassDescriptions?: Array<GetAssetDescription_render_pass_description>;
|
|
745
|
+
graphOrder?: Array<GetAssetDescription_pair_int16_int16>;
|
|
746
|
+
inputDescriptor?: GetAssetDescription_Object;
|
|
747
|
+
stencilStates?: Array<GetAssetDescription_VkStencilOpState>;
|
|
748
|
+
blendStates?: Array<GetAssetDescription_VkPipelineColorBlendAttachmentState>;
|
|
749
|
+
defaultRenderTargetIndex?: number;
|
|
750
|
+
occlusionInputDepthRenderTargetIndex?: number;
|
|
751
|
+
};
|
|
752
|
+
type GetAssetDescription_render_target_description = {
|
|
753
|
+
name?: string;
|
|
754
|
+
format?: GetAssetDescription_Object;
|
|
755
|
+
sampleCount?: GetAssetDescription_Object;
|
|
756
|
+
usage?: GetAssetDescription_Object;
|
|
757
|
+
aspect?: GetAssetDescription_Object;
|
|
758
|
+
samplerType?: number;
|
|
759
|
+
mipLevels?: number;
|
|
760
|
+
extent?: GetAssetDescription_Object;
|
|
761
|
+
flags?: GetAssetDescription_Object;
|
|
762
|
+
tiling?: GetAssetDescription_Object;
|
|
763
|
+
memoryUsage?: GetAssetDescription_Object;
|
|
764
|
+
memoryType?: GetAssetDescription_Object;
|
|
765
|
+
};
|
|
766
|
+
type GetAssetDescription_node_data_description = {
|
|
767
|
+
name?: string;
|
|
768
|
+
frameNodeType?: "viewport" | "draw_batch" | "draw_batch_with_materials" | "dispatch_compute" | "blit_image" | "blit_image_pointer_to_dst" | "copy_image" | "resolve_image" | "node_draw_quad" | "generate_mip_chain" | "copy_to_cubemap" | "copy_to_light_cubemap" | "copy_to_reflection_cubemap" | "clear_images" | "timestamp" | "clear_point_cloud_buffer" | "draw_debug_lines" | "draw_skybox" | "draw_xr";
|
|
769
|
+
inputDepthRenderTargetIndices?: Array<number>;
|
|
770
|
+
outputDepthRenderTargetIndices?: Array<number>;
|
|
771
|
+
inputRenderTargetIndices?: Array<number>;
|
|
772
|
+
outputRenderTargetIndices?: Array<number>;
|
|
773
|
+
shaderRef?: GetAssetDescription_Object;
|
|
774
|
+
dataJson?: GetAssetDescription_Object;
|
|
775
|
+
aliases?: Array<any>;
|
|
776
|
+
batchType?: "opaque = 1 << 0" | "transparent = 1 << 1" | "static_meshes = 1 << 2" | "static_textured_meshes = 1 << 3" | "all_static_meshes = 1 << 4" | "skinned = 1 << 5" | "selected = 1 << 6" | "do_not_use_material = 1 << 7" | "double_sided = 1 << 8" | "single_sided = 1 << 9" | "pass_occlusion_test = 1 << 10";
|
|
777
|
+
pipelineDescription?: GetAssetDescription_Object;
|
|
778
|
+
copyToFaceIndex?: number;
|
|
779
|
+
drawIndirect?: boolean;
|
|
780
|
+
conditions?: Array<string>;
|
|
781
|
+
clearColors?: Array<GetAssetDescription_vec4>;
|
|
782
|
+
constDataType?: "none" | "material" | "skybox [[deprecated]]" | "debug" | "clear_ssao [[deprecated]]" | "ssao [[deprecated]]" | "blur [[deprecated]]" | "voxel" | "temporal_denoise [[deprecated]]" | "spatial_denoise [[deprecated]]" | "outline [[deprecated]]" | "bloom [[deprecated]]" | "atmosphere [[deprecated]]" | "ssr [[deprecated]]" | "compose_reflections [[deprecated]]" | "compose_outlines [[deprecated]]" | "compose_transparent [[deprecated]]" | "grid_quad [[deprecated]]" | "timestamp [[deprecated]]" | "volumetric_lighting [[deprecated]]" | "color_grading [[deprecated]]" | "exposure [[deprecated]]" | "minmip [[deprecated]]" | "gpu_occlusion_culling" | "cpu_occlusion_culling" | "edge_outline [[deprecated]]" | "point_cloud [[deprecated]]" | "downsample [[deprecated]]" | "upsample_combine [[deprecated]]";
|
|
783
|
+
};
|
|
784
|
+
type GetAssetDescription_vec4 = {};
|
|
785
|
+
type GetAssetDescription_render_pass_description = {
|
|
786
|
+
name?: string;
|
|
787
|
+
sampleCount?: number;
|
|
788
|
+
nodeIndices?: Array<number>;
|
|
789
|
+
colorAttachmentIndices?: Array<number>;
|
|
790
|
+
depthAttachmentIndex?: number;
|
|
791
|
+
resolveAttachmentIndices?: Array<number>;
|
|
792
|
+
colorAttachmentReferences?: Array<GetAssetDescription_VkAttachmentReference>;
|
|
793
|
+
depthAttachmentReference?: GetAssetDescription_Object;
|
|
794
|
+
resolveAttachmentReferences?: Array<GetAssetDescription_VkAttachmentReference>;
|
|
795
|
+
attachmentDescriptions?: Array<GetAssetDescription_VkAttachmentDescription>;
|
|
796
|
+
attachmentClearColors?: Array<GetAssetDescription_vec4>;
|
|
797
|
+
};
|
|
798
|
+
type GetAssetDescription_VkAttachmentReference = {
|
|
799
|
+
attachment?: number;
|
|
800
|
+
layout?: GetAssetDescription_Object;
|
|
801
|
+
};
|
|
802
|
+
type GetAssetDescription_VkAttachmentDescription = {
|
|
803
|
+
flags?: GetAssetDescription_Object;
|
|
804
|
+
format?: GetAssetDescription_Object;
|
|
805
|
+
samples?: GetAssetDescription_Object;
|
|
806
|
+
loadOp?: GetAssetDescription_Object;
|
|
807
|
+
storeOp?: GetAssetDescription_Object;
|
|
808
|
+
stencilLoadOp?: GetAssetDescription_Object;
|
|
809
|
+
stencilStoreOp?: GetAssetDescription_Object;
|
|
810
|
+
initialLayout?: GetAssetDescription_Object;
|
|
811
|
+
finalLayout?: GetAssetDescription_Object;
|
|
812
|
+
};
|
|
813
|
+
type GetAssetDescription_pair_int16_int16 = {};
|
|
814
|
+
type GetAssetDescription_VkStencilOpState = {
|
|
815
|
+
failOp?: GetAssetDescription_Object;
|
|
816
|
+
passOp?: GetAssetDescription_Object;
|
|
817
|
+
depthFailOp?: GetAssetDescription_Object;
|
|
818
|
+
compareOp?: GetAssetDescription_Object;
|
|
819
|
+
compareMask?: number;
|
|
820
|
+
writeMask?: number;
|
|
821
|
+
reference?: number;
|
|
822
|
+
};
|
|
823
|
+
type GetAssetDescription_VkPipelineColorBlendAttachmentState = {
|
|
824
|
+
blendEnable?: boolean;
|
|
825
|
+
srcColorBlendFactor?: GetAssetDescription_Object;
|
|
826
|
+
dstColorBlendFactor?: GetAssetDescription_Object;
|
|
827
|
+
colorBlendOp?: GetAssetDescription_Object;
|
|
828
|
+
srcAlphaBlendFactor?: GetAssetDescription_Object;
|
|
829
|
+
dstAlphaBlendFactor?: GetAssetDescription_Object;
|
|
830
|
+
alphaBlendOp?: GetAssetDescription_Object;
|
|
831
|
+
colorWriteMask?: GetAssetDescription_Object;
|
|
832
|
+
};
|
|
833
|
+
type GetAssetDescription_scene_asset_schema = {
|
|
834
|
+
boundingBox?: GetAssetDescription_Object;
|
|
835
|
+
entities?: Array<GetAssetDescription_Object>;
|
|
836
|
+
triangleCount?: number;
|
|
837
|
+
settings?: GetAssetDescription_Object;
|
|
838
|
+
animationSequenceInstances?: Array<GetAssetDescription_animation_sequence_instance>;
|
|
839
|
+
};
|
|
840
|
+
type GetAssetDescription_animation_sequence_instance = {
|
|
841
|
+
ref?: string;
|
|
842
|
+
entities?: Array<string>;
|
|
843
|
+
dataJSON?: GetAssetDescription_Object;
|
|
844
|
+
durationInMs?: number;
|
|
845
|
+
loop?: boolean;
|
|
846
|
+
};
|
|
847
|
+
type GetAssetDescription_script_asset_schema = {
|
|
848
|
+
inputDescriptor?: GetAssetDescription_Object;
|
|
849
|
+
eventNames: Array<string>;
|
|
850
|
+
subScripts?: Array<string>;
|
|
851
|
+
};
|
|
852
|
+
type GetAssetDescription_shader_asset_schema = {
|
|
853
|
+
payloadSize: number;
|
|
854
|
+
shaderStages?: number;
|
|
855
|
+
moduleDescriptions?: Array<GetAssetDescription_shader_module_description>;
|
|
856
|
+
materialDescriptor?: GetAssetDescription_Object;
|
|
857
|
+
nodeDataDescriptor?: GetAssetDescription_Object;
|
|
858
|
+
vertexDescriptor?: Array<GetAssetDescription_vertex_attribute_descriptor>;
|
|
859
|
+
blendMode?: "invalid" | "opaque" | "alpha_blended" | "masked";
|
|
860
|
+
localGroupCount?: Array<number>;
|
|
861
|
+
optGlobalGroupMultiplier?: Array<number>;
|
|
862
|
+
optGlobalGroupReference?: "render_target_automatic_split" | "render_target_exact" | "output_render_target_exact" | "instances_buffer" | "point_cloud_input_buffer";
|
|
863
|
+
};
|
|
864
|
+
type GetAssetDescription_shader_module_description = {
|
|
865
|
+
shaderStage?: GetAssetDescription_Object;
|
|
866
|
+
payloadOffset?: number;
|
|
867
|
+
payloadSize?: number;
|
|
868
|
+
usedBindings?: number;
|
|
869
|
+
};
|
|
870
|
+
type GetAssetDescription_vertex_attribute_descriptor = {
|
|
871
|
+
semantic?: "position = 1 << 0" | "normal = 1 << 1" | "tex_coord = 1 << 2" | "skin_bone_ids = 1 << 3" | "skin_weights = 1 << 4" | "custom = 1 << 5";
|
|
872
|
+
binding?: number;
|
|
873
|
+
location?: number;
|
|
874
|
+
stride?: number;
|
|
875
|
+
format?: GetAssetDescription_Object;
|
|
876
|
+
offset?: number;
|
|
877
|
+
};
|
|
878
|
+
type GetAssetDescription_skeleton_asset_schema = {
|
|
879
|
+
payloadSize: number;
|
|
880
|
+
bones: Array<GetAssetDescription_bone_description>;
|
|
881
|
+
};
|
|
882
|
+
type GetAssetDescription_bone_description = {
|
|
883
|
+
name?: string;
|
|
884
|
+
childrenCount?: number;
|
|
885
|
+
firstChildIndex?: number;
|
|
886
|
+
parentIndex?: number;
|
|
887
|
+
offsetMatrix?: Array<number>;
|
|
888
|
+
};
|
|
889
|
+
type GetAssetDescription_sound_asset_schema = {
|
|
890
|
+
payloadSize: number;
|
|
891
|
+
sampleCount: number;
|
|
892
|
+
durationInMs: number;
|
|
893
|
+
sampleFrequencyInHz: number;
|
|
894
|
+
bitDepth: number;
|
|
895
|
+
channelCount: number;
|
|
896
|
+
};
|
|
897
|
+
type GetAssetDescription_texture_asset_schema = {
|
|
898
|
+
format: "invalid" | "r8s" | "r8u" | "r16s" | "r16u" | "bc1" | "bc1a" | "bc2" | "bc3" | "bc3n" | "bc4" | "bc5" | "bc6" | "bc7" | "rgba8";
|
|
899
|
+
payloadTotalSize: number;
|
|
900
|
+
mips: Array<GetAssetDescription_mip_description>;
|
|
901
|
+
};
|
|
902
|
+
type GetAssetDescription_mip_description = {
|
|
903
|
+
dimension?: Array<number>;
|
|
904
|
+
payloadSize?: number;
|
|
905
|
+
};
|
|
906
|
+
type GetAssetDescription_volume_material_asset_schema = {
|
|
907
|
+
albedoLUT?: Array<GetAssetDescription_control_point>;
|
|
908
|
+
opacityLUT?: Array<GetAssetDescription_control_point>;
|
|
909
|
+
metallicLUT?: Array<GetAssetDescription_control_point>;
|
|
910
|
+
roughnessLUT?: Array<GetAssetDescription_control_point>;
|
|
911
|
+
rangeMin?: number;
|
|
912
|
+
rangeMax?: number;
|
|
913
|
+
};
|
|
914
|
+
type GetAssetDescription_control_point = {
|
|
915
|
+
key?: number;
|
|
916
|
+
value?: Array<number> | number;
|
|
917
|
+
};
|
|
574
918
|
declare function getAssetDescription({ asset_container, asset_id }: {
|
|
575
919
|
asset_container: "animations" | "animationGraphs" | "animationSequences" | "animationSets" | "cubemaps" | "eventMaps" | "materials" | "meshes" | "pointClouds" | "renderGraphs" | "scenes" | "scripts" | "shaders" | "skeletons" | "sounds" | "textures" | "volumeMaterials";
|
|
576
920
|
asset_id: string;
|
|
577
|
-
}):
|
|
921
|
+
}): AxiosPromise<GetAssetDescription_animation_asset_schema | GetAssetDescription_animation_graph_asset_schema | GetAssetDescription_animation_sequence_asset_schema | GetAssetDescription_animation_set_asset_schema | GetAssetDescription_cubemap_asset_schema | GetAssetDescription_event_map_asset_schema | GetAssetDescription_material_asset_schema | GetAssetDescription_mesh_asset_schema | GetAssetDescription_point_cloud_asset_schema | GetAssetDescription_render_graph_asset_schema | GetAssetDescription_scene_asset_schema | GetAssetDescription_script_asset_schema | GetAssetDescription_shader_asset_schema | GetAssetDescription_skeleton_asset_schema | GetAssetDescription_sound_asset_schema | GetAssetDescription_texture_asset_schema | GetAssetDescription_volume_material_asset_schema>;
|
|
578
922
|
declare function updateAssetDescription({ asset_container, asset_id, name }: {
|
|
579
923
|
asset_container: "animations" | "animationGraphs" | "animationSequences" | "animationSets" | "cubemaps" | "eventMaps" | "materials" | "meshes" | "pointClouds" | "renderGraphs" | "scenes" | "scripts" | "shaders" | "skeletons" | "sounds" | "textures" | "volumeMaterials";
|
|
580
924
|
asset_id: string;
|
|
@@ -583,21 +927,21 @@ declare function updateAssetDescription({ asset_container, asset_id, name }: {
|
|
|
583
927
|
declare function getAssetPayload({ asset_container_with_payload, asset_id }: {
|
|
584
928
|
asset_container_with_payload: "animations" | "animationSequences" | "meshes" | "pointClouds" | "scripts" | "shaders" | "skeletons" | "sounds" | "textures";
|
|
585
929
|
asset_id: string;
|
|
586
|
-
}):
|
|
930
|
+
}): AxiosPromise<ArrayBuffer>;
|
|
587
931
|
type GetAssetHistory_Object = {};
|
|
588
932
|
declare function getAssetHistory({ asset_container, asset_id }: {
|
|
589
933
|
asset_container: "animations" | "animationGraphs" | "animationSequences" | "animationSets" | "cubemaps" | "eventMaps" | "materials" | "meshes" | "pointClouds" | "renderGraphs" | "scenes" | "scripts" | "shaders" | "skeletons" | "sounds" | "textures" | "volumeMaterials";
|
|
590
934
|
asset_id: string;
|
|
591
|
-
}):
|
|
935
|
+
}): AxiosPromise<GetAssetHistory_Object>;
|
|
592
936
|
type GetAssetMeta_Object = {};
|
|
593
937
|
declare function getAssetMeta({ asset_container, asset_id }: {
|
|
594
938
|
asset_container: "animations" | "animationGraphs" | "animationSequences" | "animationSets" | "cubemaps" | "eventMaps" | "materials" | "meshes" | "pointClouds" | "renderGraphs" | "scenes" | "scripts" | "shaders" | "skeletons" | "sounds" | "textures" | "volumeMaterials";
|
|
595
939
|
asset_id: string;
|
|
596
|
-
}):
|
|
940
|
+
}): AxiosPromise<GetAssetMeta_Object>;
|
|
597
941
|
declare function getAssetCode({ asset_container_with_code, asset_id }: {
|
|
598
942
|
asset_container_with_code: "animationSequences" | "scripts" | "shaders";
|
|
599
943
|
asset_id: string;
|
|
600
|
-
}):
|
|
944
|
+
}): AxiosPromise<string>;
|
|
601
945
|
declare function getAssetThumbnail({ asset_container, asset_id, size, default_url }: {
|
|
602
946
|
asset_container: "animations" | "animationGraphs" | "animationSequences" | "animationSets" | "cubemaps" | "eventMaps" | "materials" | "meshes" | "pointClouds" | "renderGraphs" | "scenes" | "scripts" | "shaders" | "skeletons" | "sounds" | "textures" | "volumeMaterials";
|
|
603
947
|
asset_id: string;
|
|
@@ -613,23 +957,24 @@ type GetAssetCustomTypes_Object = {};
|
|
|
613
957
|
declare function getAssetCustomTypes({ asset_container_with_custom_types, asset_id }: {
|
|
614
958
|
asset_container_with_custom_types: "modules";
|
|
615
959
|
asset_id: string;
|
|
616
|
-
}):
|
|
960
|
+
}): AxiosPromise<GetAssetCustomTypes_Object>;
|
|
617
961
|
declare function packageAsset({ asset_container, asset_id }: {
|
|
618
962
|
asset_container: "animations" | "animationGraphs" | "animationSequences" | "animationSets" | "cubemaps" | "eventMaps" | "materials" | "meshes" | "pointClouds" | "renderGraphs" | "scenes" | "scripts" | "shaders" | "skeletons" | "sounds" | "textures" | "volumeMaterials";
|
|
619
963
|
asset_id: string;
|
|
620
|
-
}):
|
|
964
|
+
}): AxiosPromise<ArrayBuffer>;
|
|
621
965
|
declare function exportAsset({ asset_container_exportable, asset_id, format, scale }: {
|
|
622
966
|
asset_container_exportable: "meshes" | "sounds";
|
|
623
967
|
asset_id: string;
|
|
624
968
|
format: "obj" | "stl";
|
|
625
|
-
scale
|
|
626
|
-
}):
|
|
969
|
+
scale?: number;
|
|
970
|
+
}): AxiosPromise<ArrayBuffer>;
|
|
627
971
|
type GetSceneSessions_Session = {
|
|
628
972
|
session_id: string;
|
|
629
973
|
scene_id: string;
|
|
630
974
|
scene_name: string;
|
|
631
975
|
folder_id: string;
|
|
632
976
|
max_users: number;
|
|
977
|
+
creator_user_id: string;
|
|
633
978
|
created_at: string;
|
|
634
979
|
country_code: string;
|
|
635
980
|
continent_code: string;
|
|
@@ -643,290 +988,52 @@ type GetSceneSessions_UserInfo = {
|
|
|
643
988
|
};
|
|
644
989
|
declare function getSceneSessions({ scene_id }: {
|
|
645
990
|
scene_id: string;
|
|
646
|
-
}):
|
|
991
|
+
}): AxiosPromise<Array<GetSceneSessions_Session>>;
|
|
647
992
|
type GetSceneAabb_Object = {
|
|
648
|
-
max
|
|
649
|
-
min
|
|
993
|
+
max: Array<number>;
|
|
994
|
+
min: Array<number>;
|
|
650
995
|
};
|
|
651
996
|
declare function getSceneAABB({ scene_id }: {
|
|
652
997
|
scene_id: string;
|
|
653
|
-
}):
|
|
654
|
-
type
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
capsule_geometry?: GetEntity_capsule_geometry;
|
|
660
|
-
character_controller?: GetEntity_character_controller;
|
|
661
|
-
collision_geometry_ref?: GetEntity_collision_geometry_ref;
|
|
662
|
-
cylinder_geometry?: GetEntity_cylinder_geometry;
|
|
663
|
-
debug_name?: GetEntity_debug_name;
|
|
664
|
-
decal_projector?: GetEntity_decal_projector;
|
|
665
|
-
environment?: GetEntity_environment;
|
|
666
|
-
euid: GetEntity_euid;
|
|
667
|
-
joint?: GetEntity_joint;
|
|
668
|
-
lineage?: GetEntity_lineage;
|
|
669
|
-
local_aabb?: GetEntity_local_aabb;
|
|
670
|
-
local_transform?: GetEntity_local_transform;
|
|
671
|
-
material?: GetEntity_material;
|
|
672
|
-
material_ref?: GetEntity_material_ref;
|
|
673
|
-
mesh_ref?: GetEntity_mesh_ref;
|
|
674
|
-
orthographic_lens?: GetEntity_orthographic_lens;
|
|
675
|
-
overrider?: GetEntity_overrider;
|
|
676
|
-
perspective_lens?: GetEntity_perspective_lens;
|
|
677
|
-
physics_material?: GetEntity_physics_material;
|
|
678
|
-
plane_geometry?: GetEntity_plane_geometry;
|
|
679
|
-
point_cloud_ref?: GetEntity_point_cloud_ref;
|
|
680
|
-
point_light?: GetEntity_point_light;
|
|
681
|
-
reflection_probe?: GetEntity_reflection_probe;
|
|
682
|
-
revolute_joint?: GetEntity_revolute_joint;
|
|
683
|
-
rigid_body?: GetEntity_rigid_body;
|
|
684
|
-
scene_ref?: GetEntity_scene_ref;
|
|
685
|
-
script_element?: GetEntity_script_element;
|
|
686
|
-
script_map?: GetEntity_script_map;
|
|
687
|
-
shadow_caster?: GetEntity_shadow_caster;
|
|
688
|
-
skeleton_ref?: GetEntity_skeleton_ref;
|
|
689
|
-
sound_ref?: GetEntity_sound_ref;
|
|
690
|
-
sphere_geometry?: GetEntity_sphere_geometry;
|
|
691
|
-
spot_light?: GetEntity_spot_light;
|
|
692
|
-
stereoscopic_lens?: GetEntity_stereoscopic_lens;
|
|
693
|
-
tags?: GetEntity_tags;
|
|
694
|
-
volume_filter?: GetEntity_volume_filter;
|
|
695
|
-
volume_material_ref?: GetEntity_volume_material_ref;
|
|
696
|
-
volume_ref?: GetEntity_volume_ref;
|
|
697
|
-
};
|
|
698
|
-
type GetEntity_animation_controller = {
|
|
699
|
-
animationGraphRef?: string;
|
|
700
|
-
animationSetRef?: string;
|
|
701
|
-
dataJSON?: GetEntity_json;
|
|
702
|
-
rootBoneEntityRef?: GetEntity_entity_ref;
|
|
703
|
-
rootMotionEnabled?: boolean;
|
|
704
|
-
};
|
|
705
|
-
type GetEntity_json = {};
|
|
706
|
-
type GetEntity_entity_ref = {
|
|
707
|
-
originalEUID: string;
|
|
708
|
-
linkage: Array<string>;
|
|
709
|
-
};
|
|
710
|
-
type GetEntity_bone = {
|
|
711
|
-
boneIndex?: number;
|
|
712
|
-
};
|
|
713
|
-
type GetEntity_box_geometry = {
|
|
714
|
-
dimension?: Array<number>;
|
|
715
|
-
isAdditive?: boolean;
|
|
716
|
-
offset?: Array<number>;
|
|
717
|
-
};
|
|
718
|
-
type GetEntity_camera = {
|
|
719
|
-
renderGraphRef?: string;
|
|
720
|
-
renderTargetIndex?: number;
|
|
721
|
-
dataJSON?: GetEntity_json;
|
|
722
|
-
};
|
|
723
|
-
type GetEntity_capsule_geometry = {
|
|
724
|
-
radius?: number;
|
|
725
|
-
height?: number;
|
|
726
|
-
axis?: number;
|
|
727
|
-
isAdditive?: boolean;
|
|
728
|
-
offset?: Array<number>;
|
|
729
|
-
};
|
|
730
|
-
type GetEntity_character_controller = {
|
|
731
|
-
stepOffset?: number;
|
|
732
|
-
slopeLimit?: number;
|
|
733
|
-
skinWidth?: number;
|
|
734
|
-
velocity?: Array<number>;
|
|
735
|
-
};
|
|
736
|
-
type GetEntity_collision_geometry_ref = {
|
|
737
|
-
collisionGeometryRef?: string;
|
|
738
|
-
};
|
|
739
|
-
type GetEntity_cylinder_geometry = {
|
|
740
|
-
radius?: number;
|
|
741
|
-
height?: number;
|
|
742
|
-
axis?: number;
|
|
743
|
-
isAdditive?: boolean;
|
|
744
|
-
offset?: Array<number>;
|
|
745
|
-
};
|
|
746
|
-
type GetEntity_debug_name = {
|
|
747
|
-
value?: string;
|
|
748
|
-
};
|
|
749
|
-
type GetEntity_decal_projector = {
|
|
750
|
-
zIndex?: number;
|
|
751
|
-
};
|
|
752
|
-
type GetEntity_environment = {
|
|
753
|
-
skyboxUUID?: string;
|
|
754
|
-
radianceUUID?: string;
|
|
755
|
-
irradianceUUID?: string;
|
|
756
|
-
};
|
|
757
|
-
type GetEntity_euid = {
|
|
758
|
-
value?: string;
|
|
759
|
-
};
|
|
760
|
-
type GetEntity_joint = {
|
|
761
|
-
constrainee?: GetEntity_entity_ref;
|
|
762
|
-
constrainer?: GetEntity_entity_ref;
|
|
763
|
-
breakForce?: number;
|
|
764
|
-
breakTorque?: number;
|
|
765
|
-
};
|
|
766
|
-
type GetEntity_lineage = {
|
|
767
|
-
parentUUID?: string;
|
|
768
|
-
ordinal?: number;
|
|
769
|
-
};
|
|
770
|
-
type GetEntity_local_aabb = {
|
|
771
|
-
min?: Array<number>;
|
|
772
|
-
max?: Array<number>;
|
|
773
|
-
};
|
|
774
|
-
type GetEntity_local_transform = {
|
|
775
|
-
position?: Array<number>;
|
|
776
|
-
orientation?: Array<number>;
|
|
777
|
-
scale?: Array<number>;
|
|
778
|
-
eulerOrientation?: Array<number>;
|
|
779
|
-
globalEulerOrientation?: Array<number>;
|
|
780
|
-
};
|
|
781
|
-
type GetEntity_material = {
|
|
782
|
-
shaderRef?: string;
|
|
783
|
-
transparencyMode?: number;
|
|
784
|
-
isDoubleSided?: boolean;
|
|
785
|
-
dataJSON?: GetEntity_json;
|
|
786
|
-
};
|
|
787
|
-
type GetEntity_material_ref = {
|
|
788
|
-
value?: string;
|
|
789
|
-
faceCulling?: number;
|
|
790
|
-
};
|
|
791
|
-
type GetEntity_mesh_ref = {
|
|
792
|
-
value?: string;
|
|
793
|
-
submeshIndex?: number;
|
|
794
|
-
};
|
|
795
|
-
type GetEntity_orthographic_lens = {
|
|
796
|
-
left?: number;
|
|
797
|
-
right?: number;
|
|
798
|
-
top?: number;
|
|
799
|
-
bottom?: number;
|
|
800
|
-
zNear?: number;
|
|
801
|
-
zFar?: number;
|
|
802
|
-
};
|
|
803
|
-
type GetEntity_overrider = {
|
|
804
|
-
deleter?: boolean;
|
|
805
|
-
entityRef?: GetEntity_entity_ref;
|
|
806
|
-
componentsToDetach?: Array<number>;
|
|
807
|
-
};
|
|
808
|
-
type GetEntity_perspective_lens = {
|
|
809
|
-
aspectRatio?: number;
|
|
810
|
-
fovy?: number;
|
|
811
|
-
nearPlane?: number;
|
|
812
|
-
farPlane?: number;
|
|
813
|
-
};
|
|
814
|
-
type GetEntity_physics_material = {
|
|
815
|
-
staticFriction?: number;
|
|
816
|
-
dynamicFriction?: number;
|
|
817
|
-
restitution?: number;
|
|
818
|
-
isTrigger?: boolean;
|
|
819
|
-
};
|
|
820
|
-
type GetEntity_plane_geometry = {
|
|
821
|
-
distance?: number;
|
|
822
|
-
normal?: Array<number>;
|
|
823
|
-
};
|
|
824
|
-
type GetEntity_point_cloud_ref = {
|
|
825
|
-
value?: string;
|
|
826
|
-
};
|
|
827
|
-
type GetEntity_point_light = {
|
|
828
|
-
color?: Array<number>;
|
|
829
|
-
intensity?: number;
|
|
830
|
-
range?: number;
|
|
831
|
-
isDirectional?: boolean;
|
|
832
|
-
isSun?: boolean;
|
|
833
|
-
};
|
|
834
|
-
type GetEntity_reflection_probe = {
|
|
835
|
-
offset?: Array<number>;
|
|
836
|
-
nearDist?: number;
|
|
837
|
-
farDist?: number;
|
|
838
|
-
quality?: number;
|
|
839
|
-
};
|
|
840
|
-
type GetEntity_revolute_joint = {
|
|
841
|
-
axis?: Array<number>;
|
|
842
|
-
anchor?: Array<number>;
|
|
843
|
-
};
|
|
844
|
-
type GetEntity_rigid_body = {
|
|
845
|
-
mass?: number;
|
|
846
|
-
linearDamping?: number;
|
|
847
|
-
angularDamping?: number;
|
|
848
|
-
friction?: number;
|
|
849
|
-
rollingFriction?: number;
|
|
850
|
-
spinningFriction?: number;
|
|
851
|
-
restitution?: number;
|
|
852
|
-
linearSleepingThreshold?: number;
|
|
853
|
-
angularSleepingThreshold?: number;
|
|
854
|
-
isKinematic?: boolean;
|
|
855
|
-
};
|
|
856
|
-
type GetEntity_scene_ref = {
|
|
857
|
-
value?: string;
|
|
858
|
-
maxRecursionCount?: number;
|
|
859
|
-
};
|
|
860
|
-
type GetEntity_script_element = {
|
|
861
|
-
scriptRef?: string;
|
|
862
|
-
dataJSON?: GetEntity_json;
|
|
863
|
-
};
|
|
864
|
-
type GetEntity_script_map = {
|
|
865
|
-
elements?: GetEntity_map_script_element;
|
|
866
|
-
};
|
|
867
|
-
type GetEntity_map_script_element = {};
|
|
868
|
-
type GetEntity_shadow_caster = {
|
|
869
|
-
bias?: number;
|
|
870
|
-
nearDist?: number;
|
|
871
|
-
farDist?: number;
|
|
872
|
-
quality?: number;
|
|
873
|
-
accumulateShadowCascades?: boolean;
|
|
874
|
-
};
|
|
875
|
-
type GetEntity_skeleton_ref = {
|
|
876
|
-
value?: string;
|
|
877
|
-
};
|
|
878
|
-
type GetEntity_sound_ref = {
|
|
879
|
-
value?: string;
|
|
880
|
-
volume?: number;
|
|
881
|
-
pan?: number;
|
|
882
|
-
playSpeed?: number;
|
|
883
|
-
looping?: boolean;
|
|
884
|
-
};
|
|
885
|
-
type GetEntity_sphere_geometry = {
|
|
886
|
-
radius?: number;
|
|
887
|
-
isAdditive?: boolean;
|
|
888
|
-
offset?: Array<number>;
|
|
889
|
-
};
|
|
890
|
-
type GetEntity_spot_light = {
|
|
891
|
-
cutoff?: number;
|
|
892
|
-
IESProfile?: string;
|
|
893
|
-
};
|
|
894
|
-
type GetEntity_stereoscopic_lens = {
|
|
895
|
-
angleLeft?: number;
|
|
896
|
-
angleRight?: number;
|
|
897
|
-
angleUp?: number;
|
|
898
|
-
angleDown?: number;
|
|
899
|
-
nearPlane?: number;
|
|
900
|
-
farPlane?: number;
|
|
901
|
-
aspectRatio?: number;
|
|
902
|
-
};
|
|
903
|
-
type GetEntity_tags = {
|
|
904
|
-
value?: Array<string>;
|
|
905
|
-
};
|
|
906
|
-
type GetEntity_volume_filter = {
|
|
907
|
-
range?: Array<number>;
|
|
908
|
-
applyGaussianFiltering?: boolean;
|
|
909
|
-
sampleUnfiltered?: boolean;
|
|
910
|
-
enableMPR?: boolean;
|
|
911
|
-
enable3D?: boolean;
|
|
912
|
-
};
|
|
913
|
-
type GetEntity_volume_material_ref = {
|
|
914
|
-
value?: string;
|
|
915
|
-
};
|
|
916
|
-
type GetEntity_volume_ref = {
|
|
917
|
-
texture3dRef?: string;
|
|
998
|
+
}): AxiosPromise<GetSceneAabb_Object>;
|
|
999
|
+
type GetEntity_entity_euid = {
|
|
1000
|
+
euid: GetEntity_Object;
|
|
1001
|
+
};
|
|
1002
|
+
type GetEntity_Object = {
|
|
1003
|
+
value: string;
|
|
918
1004
|
};
|
|
919
1005
|
declare function getEntity({ scene_id, entity_id, compute_global_transform }: {
|
|
920
1006
|
scene_id: string;
|
|
921
1007
|
entity_id: string;
|
|
922
|
-
compute_global_transform
|
|
923
|
-
}):
|
|
1008
|
+
compute_global_transform?: boolean;
|
|
1009
|
+
}): AxiosPromise<GetEntity_entity_euid>;
|
|
924
1010
|
type CreateSession_Object = {
|
|
925
1011
|
session_id?: string;
|
|
926
1012
|
};
|
|
927
1013
|
declare function createSession({ scene_id }: {
|
|
928
1014
|
scene_id?: string;
|
|
929
|
-
}):
|
|
1015
|
+
}): AxiosPromise<CreateSession_Object>;
|
|
1016
|
+
type GetSession_Session = {
|
|
1017
|
+
session_id: string;
|
|
1018
|
+
scene_id: string;
|
|
1019
|
+
scene_name: string;
|
|
1020
|
+
folder_id: string;
|
|
1021
|
+
max_users: number;
|
|
1022
|
+
creator_user_id: string;
|
|
1023
|
+
created_at: string;
|
|
1024
|
+
country_code: string;
|
|
1025
|
+
continent_code: string;
|
|
1026
|
+
clients: Array<GetSession_UserInfo>;
|
|
1027
|
+
};
|
|
1028
|
+
type GetSession_UserInfo = {
|
|
1029
|
+
client_id?: string;
|
|
1030
|
+
client_type?: 'user' | 'guest';
|
|
1031
|
+
user_id: string;
|
|
1032
|
+
username: string;
|
|
1033
|
+
};
|
|
1034
|
+
declare function getSession({ session_id }: {
|
|
1035
|
+
session_id: string;
|
|
1036
|
+
}): AxiosPromise<GetSession_Session>;
|
|
930
1037
|
declare function killSession({ session_id }: {
|
|
931
1038
|
session_id: string;
|
|
932
1039
|
}): Promise<axios.AxiosResponse<any, any>>;
|
|
@@ -941,7 +1048,7 @@ type JoinSession_Object = {
|
|
|
941
1048
|
};
|
|
942
1049
|
declare function joinSession({ session_id }: {
|
|
943
1050
|
session_id: string;
|
|
944
|
-
}):
|
|
1051
|
+
}): AxiosPromise<JoinSession_SessionToken>;
|
|
945
1052
|
declare function kickClientFromSession({ session_id, client_id }: {
|
|
946
1053
|
session_id: string;
|
|
947
1054
|
client_id: string;
|
|
@@ -951,4 +1058,4 @@ declare function setApiKey(apiKey: string): void;
|
|
|
951
1058
|
declare function setUserToken(userToken: string): void;
|
|
952
1059
|
declare function setBaseUrl(url: string): void;
|
|
953
1060
|
|
|
954
|
-
export { ApiError, CreateAsset_AssetDescription, CreateAsset_Object, CreateFolder_Folder, CreateGroup_GroupMember_GroupAccess, CreateGroup_Group_GroupInfo, CreateSession_Object, CreateSubfolder_Folder,
|
|
1061
|
+
export { ApiError, CreateAsset_AssetDescription, CreateAsset_Object, CreateAsset_asset_item, CreateFolder_Folder, CreateFolder_Folder_Writable, CreateFolder_Object, CreateGroup_GroupMember_GroupAccess, CreateGroup_GroupMember_GroupAccess_Writable, CreateGroup_Group_GroupInfo, CreateSession_Object, CreateSubfolder_Folder, CreateSubfolder_Folder_Writable, CreateSubfolder_Object, DeleteUser_Object, GenerateUserToken_Token, GetAssetCustomTypes_Object, GetAssetDependencies_Object, GetAssetDependencies_asset_item, GetAssetDependencies_asset_list, GetAssetDescription_Object, GetAssetDescription_VkAttachmentDescription, GetAssetDescription_VkAttachmentReference, GetAssetDescription_VkPipelineColorBlendAttachmentState, GetAssetDescription_VkStencilOpState, GetAssetDescription_animation_asset_schema, GetAssetDescription_animation_event, GetAssetDescription_animation_graph_asset_schema, GetAssetDescription_animation_node_description, GetAssetDescription_animation_sequence_asset_schema, GetAssetDescription_animation_sequence_instance, GetAssetDescription_animation_set_asset_schema, GetAssetDescription_animation_state_description, GetAssetDescription_animation_state_machine_description, GetAssetDescription_animation_state_machine_settings, GetAssetDescription_blend_axis, GetAssetDescription_blend_settings, GetAssetDescription_blendspace_1d_settings_animation_settings, GetAssetDescription_blendspace_2d_settings_animation_settings, GetAssetDescription_bone_description, GetAssetDescription_channel_description, GetAssetDescription_control_point, GetAssetDescription_cubemap_asset_schema, GetAssetDescription_event_map_asset_schema, GetAssetDescription_ik_aim_settings, GetAssetDescription_ik_two_bone_settings, GetAssetDescription_material_asset_schema, GetAssetDescription_mesh_asset_schema, GetAssetDescription_mip_description, GetAssetDescription_node_data_description, GetAssetDescription_pair_int16_int16, GetAssetDescription_playback_settings_animation_settings, GetAssetDescription_point_cloud_asset_schema, GetAssetDescription_random_settings, GetAssetDescription_render_graph_asset_schema, GetAssetDescription_render_pass_description, GetAssetDescription_render_target_description, GetAssetDescription_scene_asset_schema, GetAssetDescription_script_asset_schema, GetAssetDescription_shader_asset_schema, GetAssetDescription_shader_module_description, GetAssetDescription_skeleton_asset_schema, GetAssetDescription_sound_asset_schema, GetAssetDescription_submesh_description, GetAssetDescription_texture_asset_schema, GetAssetDescription_transition_description, GetAssetDescription_vec4, GetAssetDescription_vertex_attribute_descriptor, GetAssetDescription_volume_material_asset_schema, GetAssetDetails_Object, GetAssetDetails_UserContribution, GetAssetDetails_asset_details, GetAssetFolder_Folder, GetAssetFolder_Object, GetAssetHistory_Object, GetAssetMeta_Object, GetAssetReferences_Object, GetAssetSourceFile_SourceFile, GetEntity_Object, GetEntity_entity_euid, GetFolderAssets_asset_item, GetFolderAssets_asset_list, GetFolderInfo_Folder, GetFolderInfo_Object, GetGroup_GroupMember_GroupAccess, GetGroup_Group_GroupInfo, GetSceneAabb_Object, GetSceneSessions_Session, GetSceneSessions_UserInfo, GetSession_Session, GetSession_UserInfo, GetSessionsInFolder_Session, GetSessionsInFolder_UserInfo, GetSourceFileAssets_asset_item, GetSourceFileAssets_asset_list, GetSourceFileDetails_SourceFile, GetSourceFilesInFolder_SourceFile, GetUploadTask_ConversionTask, GetUploadTask_UploadTask, GetUploadTasksInFolder_ConversionTask, GetUploadTasksInFolder_UploadTask, GetUserGroups_GroupMember_GroupAccess, GetUserGroups_Group_GroupInfo, GetUserUploadTasks_ConversionTask, GetUserUploadTasks_UploadTask, GetUser_User_UserInfo, JoinSession_Object, JoinSession_SessionToken, ListAssets_asset_item, ListAssets_asset_list, ListFolderAccesses_GroupInfo_FolderAccess, ListFolderAccesses_Object, ListFolderAccesses_UserInfo_FolderAccess, ListFolderSubFolders_Folder, ListFolderSubFolders_Object, ListFolders_Folder, ListFolders_Object, ListSourceFiles_SourceFile, ListUsers_User_UserInfo, RegisterUser_User_UserInfo, UploadSourceFiles_Object, axiosInstance, createAsset, createFolder, createGroup, createSession, createSubfolder, deleteAsset, deleteAssets, deleteFolder, deleteGroup, deleteSourceFiles, deleteUser, downloadSourceFile, exportAsset, generateUserToken, getAssetCode, getAssetCustomTypes, getAssetDependencies, getAssetDescription, getAssetDetails, getAssetFolder, getAssetHistory, getAssetMeta, getAssetPayload, getAssetReferences, getAssetSourceFile, getAssetThumbnail, getEntity, getFolderAssets, getFolderInfo, getGroup, getSceneAABB, getSceneSessions, getSession, getSessionsInFolder, getSourceFileAssets, getSourceFileDetails, getSourceFilesInFolder, getUploadTask, getUploadTasksInFolder, getUser, getUserGroups, getUserUploadTasks, grantMemberAccessToFolder, grantMemberAccessToGroup, joinSession, kickClientFromSession, killSession, listAssets, listFolderAccesses, listFolderSubFolders, listFolders, listSourceFiles, listUsers, moveAssets, moveFolders, moveSourceFiles, packageAsset, registerUser, revokeMemberAccessToFolder, revokeMemberAccessToGroup, setApiKey, setAssetThumbnail, setBaseURL, setBaseUrl, setUserToken, updateAssetDescription, updateFolder, updateGroupDescription, updateSourceFileDetails, updateUser, uploadSourceFiles };
|