@3dverse/api 0.0.1 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.d.ts CHANGED
@@ -1,3 +1,1078 @@
1
- export declare function setApiKey(apiKey: string): void;
2
- export declare function setUserToken(userToken: string): void;
3
- export * from './_prebuild/wrapper';
1
+ import * as axios from 'axios';
2
+
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
+ declare const axiosInstance: axios.AxiosInstance;
18
+ interface ApiError {
19
+ errorCode: number;
20
+ status: number;
21
+ error: any;
22
+ }
23
+ type ListUsers_User_UserInfo = {
24
+ user_id: string;
25
+ username: string;
26
+ registered_at?: string;
27
+ };
28
+ declare function listUsers({ offset, limit }: {
29
+ offset?: number;
30
+ limit?: number;
31
+ }): Promise<Array<ListUsers_User_UserInfo>>;
32
+ type RegisterUser_User_UserInfo = {
33
+ user_id: string;
34
+ username: string;
35
+ registered_at?: string;
36
+ };
37
+ declare function registerUser({ username }: {
38
+ username: string;
39
+ }): Promise<RegisterUser_User_UserInfo>;
40
+ type GetUser_User_UserInfo = {
41
+ user_id: string;
42
+ username: string;
43
+ registered_at?: string;
44
+ };
45
+ declare function getUser({ user_id }: {
46
+ user_id: string;
47
+ }): Promise<GetUser_User_UserInfo>;
48
+ declare function updateUser({ user_id, username }: {
49
+ user_id: string;
50
+ username: string;
51
+ }): Promise<axios.AxiosResponse<any, any>>;
52
+ type DeleteUser_Object = {
53
+ deleted_assets?: DeleteUser_asset_list;
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;
77
+ };
78
+ declare function deleteUser({ user_id }: {
79
+ user_id: string;
80
+ }): Promise<DeleteUser_Object>;
81
+ type GenerateUserToken_Token = {
82
+ user_token?: string;
83
+ expires_in?: number;
84
+ expires_on?: number;
85
+ };
86
+ declare function generateUserToken({ user_id, scope, ttl }: {
87
+ user_id: string;
88
+ scope: "read" | "write" | "manage";
89
+ ttl?: string;
90
+ }): Promise<GenerateUserToken_Token>;
91
+ type GetUserGroups_Group_GroupInfo = {
92
+ group_id: string;
93
+ group_name: string;
94
+ group_description?: string;
95
+ created_at?: string;
96
+ members?: Array<GetUserGroups_GroupMember_GroupAccess>;
97
+ };
98
+ type GetUserGroups_GroupMember_GroupAccess = {
99
+ user_id: string;
100
+ joined_at?: string;
101
+ group_access: "read" | "write" | "manage";
102
+ folder_access: "read" | "write" | "manage";
103
+ };
104
+ declare function getUserGroups({ user_id }: {
105
+ user_id: string;
106
+ }): Promise<Array<GetUserGroups_Group_GroupInfo>>;
107
+ type GetUserUploadTasks_UploadTask = {
108
+ upload_task_id?: string;
109
+ folder_id?: string;
110
+ uploaded_at?: string;
111
+ uploaded_by?: string;
112
+ progress?: number;
113
+ status?: string;
114
+ conversion_tasks?: Array<GetUserUploadTasks_ConversionTask>;
115
+ };
116
+ type GetUserUploadTasks_ConversionTask = {
117
+ source_file_id?: string;
118
+ conversion_pipeline?: string;
119
+ progress?: number;
120
+ status?: string;
121
+ };
122
+ declare function getUserUploadTasks({ user_id, offset, limit }: {
123
+ user_id: string;
124
+ offset?: number;
125
+ limit?: number;
126
+ }): Promise<Array<GetUserUploadTasks_UploadTask>>;
127
+ type CreateGroup_GroupMember_GroupAccess = {
128
+ user_id: string;
129
+ group_access: "read" | "write" | "manage";
130
+ folder_access: "read" | "write" | "manage";
131
+ };
132
+ type CreateGroup_Group_GroupInfo = {
133
+ group_id: string;
134
+ group_name: string;
135
+ group_description?: string;
136
+ created_at?: string;
137
+ members?: Array<CreateGroup_GroupMember_GroupAccess>;
138
+ };
139
+ declare function createGroup({ group_name, group_description, members }: {
140
+ group_name: string;
141
+ group_description?: string;
142
+ members?: Array<CreateGroup_GroupMember_GroupAccess>;
143
+ }): Promise<CreateGroup_Group_GroupInfo>;
144
+ type GetGroup_Group_GroupInfo = {
145
+ group_id: string;
146
+ group_name: string;
147
+ group_description?: string;
148
+ created_at?: string;
149
+ members?: Array<GetGroup_GroupMember_GroupAccess>;
150
+ };
151
+ type GetGroup_GroupMember_GroupAccess = {
152
+ user_id: string;
153
+ joined_at?: string;
154
+ group_access: "read" | "write" | "manage";
155
+ folder_access: "read" | "write" | "manage";
156
+ };
157
+ declare function getGroup({ group_id }: {
158
+ group_id: string;
159
+ }): Promise<GetGroup_Group_GroupInfo>;
160
+ declare function updateGroupDescription({ group_id, group_name, group_description }: {
161
+ group_id: string;
162
+ group_name: string;
163
+ group_description: string;
164
+ }): Promise<axios.AxiosResponse<any, any>>;
165
+ declare function deleteGroup({ group_id }: {
166
+ group_id: string;
167
+ }): Promise<axios.AxiosResponse<any, any>>;
168
+ declare function grantMemberAccessToGroup({ group_id, member_type, member_id, group_access, folder_access }: {
169
+ group_id: string;
170
+ member_type: "users" | "groups";
171
+ member_id: string;
172
+ group_access: "read" | "write" | "manage";
173
+ folder_access: "read" | "write" | "manage";
174
+ }): Promise<axios.AxiosResponse<any, any>>;
175
+ declare function revokeMemberAccessToGroup({ group_id, member_type, member_id }: {
176
+ group_id: string;
177
+ member_type: "users" | "groups";
178
+ member_id: string;
179
+ }): Promise<axios.AxiosResponse<any, any>>;
180
+ type ListFolders_Folder = {
181
+ folder_id: string;
182
+ parent_folder_id?: string;
183
+ folder_name: string;
184
+ created_at?: string;
185
+ created_by?: ListFolders_User_UserInfo;
186
+ subfolders?: Array<ListFolders_Folder>;
187
+ source_file_count?: number;
188
+ asset_count?: number;
189
+ };
190
+ type ListFolders_User_UserInfo = {
191
+ user_id: string;
192
+ username: string;
193
+ registered_at?: string;
194
+ };
195
+ declare function listFolders({ offset, limit }: {
196
+ offset?: number;
197
+ limit?: number;
198
+ }): Promise<Array<ListFolders_Folder>>;
199
+ type CreateFolder_Folder = {
200
+ folder_name: string;
201
+ subfolders?: Array<CreateFolder_Folder>;
202
+ };
203
+ declare function createFolder({ folder_name, subfolders }: {
204
+ folder_name: string;
205
+ subfolders?: Array<CreateFolder_Folder>;
206
+ }): Promise<CreateFolder_Folder>;
207
+ type GetFolderInfo_Folder = {
208
+ folder_id: string;
209
+ parent_folder_id?: string;
210
+ folder_name: string;
211
+ created_at?: string;
212
+ created_by?: GetFolderInfo_User_UserInfo;
213
+ subfolders?: Array<GetFolderInfo_Folder>;
214
+ source_file_count?: number;
215
+ asset_count?: number;
216
+ };
217
+ type GetFolderInfo_User_UserInfo = {
218
+ user_id: string;
219
+ username: string;
220
+ registered_at?: string;
221
+ };
222
+ declare function getFolderInfo({ folder_id }: {
223
+ folder_id: string;
224
+ }): Promise<GetFolderInfo_Folder>;
225
+ declare function moveFolders({ folder_id, folder_ids }: {
226
+ folder_id: string;
227
+ folder_ids: Array<string>;
228
+ }): Promise<axios.AxiosResponse<any, any>>;
229
+ declare function updateFolder({ folder_id, folder_name }: {
230
+ folder_id: string;
231
+ folder_name?: string;
232
+ }): Promise<axios.AxiosResponse<any, any>>;
233
+ declare function deleteFolder({ folder_id }: {
234
+ folder_id: string;
235
+ }): Promise<axios.AxiosResponse<any, any>>;
236
+ type ListFolderAccesses_Object = {
237
+ users?: Array<ListFolderAccesses_UserInfo_FolderAccess>;
238
+ groups?: Array<ListFolderAccesses_GroupInfo_FolderAccess>;
239
+ };
240
+ type ListFolderAccesses_UserInfo_FolderAccess = {
241
+ user_id: string;
242
+ username: string;
243
+ access: "read" | "write" | "manage";
244
+ };
245
+ type ListFolderAccesses_GroupInfo_FolderAccess = {
246
+ group_id: string;
247
+ group_name: string;
248
+ access: "read" | "write" | "manage";
249
+ };
250
+ declare function listFolderAccesses({ folder_id }: {
251
+ folder_id: string;
252
+ }): Promise<ListFolderAccesses_Object>;
253
+ declare function grantMemberAccessToFolder({ folder_id, member_type, member_id, access }: {
254
+ folder_id: string;
255
+ member_type: "users" | "groups";
256
+ member_id: string;
257
+ access: "read" | "write" | "manage";
258
+ }): Promise<axios.AxiosResponse<any, any>>;
259
+ declare function revokeMemberAccessToFolder({ folder_id, member_type, member_id }: {
260
+ folder_id: string;
261
+ member_type: "users" | "groups";
262
+ member_id: string;
263
+ }): Promise<axios.AxiosResponse<any, any>>;
264
+ type CreateSubfolder_Folder = {
265
+ folder_name: string;
266
+ subfolders?: Array<CreateSubfolder_Folder>;
267
+ };
268
+ declare function createSubfolder({ folder_id, folder_name, subfolders }: {
269
+ folder_id: string;
270
+ folder_name: string;
271
+ subfolders?: Array<CreateSubfolder_Folder>;
272
+ }): Promise<CreateSubfolder_Folder>;
273
+ type ListFolderSubFolders_Folder = {
274
+ folder_id: string;
275
+ parent_folder_id?: string;
276
+ folder_name: string;
277
+ created_at?: string;
278
+ created_by?: ListFolderSubFolders_User_UserInfo;
279
+ subfolders?: Array<ListFolderSubFolders_Folder>;
280
+ source_file_count?: number;
281
+ asset_count?: number;
282
+ };
283
+ type ListFolderSubFolders_User_UserInfo = {
284
+ user_id: string;
285
+ username: string;
286
+ registered_at?: string;
287
+ };
288
+ declare function listFolderSubFolders({ folder_id, depth }: {
289
+ folder_id: string;
290
+ depth?: number;
291
+ }): Promise<Array<ListFolderSubFolders_Folder>>;
292
+ type UploadSourceFiles_Object = {
293
+ upload_task_id?: string;
294
+ };
295
+ declare function uploadSourceFiles({ folder_id, body }: {
296
+ folder_id: string;
297
+ body: FormData;
298
+ }): Promise<UploadSourceFiles_Object>;
299
+ type GetSourceFilesInFolder_SourceFile = {
300
+ source_file_id?: string;
301
+ upload_task_id?: string;
302
+ source_file_original_name?: string;
303
+ source_file_name?: string;
304
+ size?: number;
305
+ };
306
+ declare function getSourceFilesInFolder({ folder_id, offset, limit }: {
307
+ folder_id: string;
308
+ offset?: number;
309
+ limit?: number;
310
+ }): Promise<Array<GetSourceFilesInFolder_SourceFile>>;
311
+ declare function moveSourceFiles({ folder_id, source_file_ids }: {
312
+ folder_id: string;
313
+ source_file_ids: Array<string>;
314
+ }): Promise<axios.AxiosResponse<any, any>>;
315
+ type GetUploadTasksInFolder_UploadTask = {
316
+ upload_task_id?: string;
317
+ folder_id?: string;
318
+ uploaded_at?: string;
319
+ uploaded_by?: string;
320
+ progress?: number;
321
+ status?: string;
322
+ conversion_tasks?: Array<GetUploadTasksInFolder_ConversionTask>;
323
+ };
324
+ type GetUploadTasksInFolder_ConversionTask = {
325
+ source_file_id?: string;
326
+ conversion_pipeline?: string;
327
+ progress?: number;
328
+ status?: string;
329
+ };
330
+ declare function getUploadTasksInFolder({ folder_id, offset, limit }: {
331
+ folder_id: string;
332
+ offset?: number;
333
+ limit?: number;
334
+ }): Promise<Array<GetUploadTasksInFolder_UploadTask>>;
335
+ type GetFolderAssets_asset_list = {
336
+ animations?: Array<GetFolderAssets_asset_item>;
337
+ animationGraphs?: Array<GetFolderAssets_asset_item>;
338
+ animationSequences?: Array<GetFolderAssets_asset_item>;
339
+ animationSets?: Array<GetFolderAssets_asset_item>;
340
+ cubemaps?: Array<GetFolderAssets_asset_item>;
341
+ eventMaps?: Array<GetFolderAssets_asset_item>;
342
+ materials?: Array<GetFolderAssets_asset_item>;
343
+ meshes?: Array<GetFolderAssets_asset_item>;
344
+ pointClouds?: Array<GetFolderAssets_asset_item>;
345
+ renderGraphs?: Array<GetFolderAssets_asset_item>;
346
+ scenes?: Array<GetFolderAssets_asset_item>;
347
+ scripts?: Array<GetFolderAssets_asset_item>;
348
+ shaders?: Array<GetFolderAssets_asset_item>;
349
+ skeletons?: Array<GetFolderAssets_asset_item>;
350
+ sounds?: Array<GetFolderAssets_asset_item>;
351
+ textures?: Array<GetFolderAssets_asset_item>;
352
+ volumeMaterials?: Array<GetFolderAssets_asset_item>;
353
+ };
354
+ type GetFolderAssets_asset_item = {
355
+ asset_id?: string;
356
+ asset_name?: string;
357
+ };
358
+ declare function getFolderAssets({ folder_id }: {
359
+ folder_id: string;
360
+ }): Promise<GetFolderAssets_asset_list>;
361
+ declare function moveAssets({ folder_id, asset_ids }: {
362
+ folder_id: string;
363
+ asset_ids: Array<string>;
364
+ }): Promise<axios.AxiosResponse<any, any>>;
365
+ type CreateAsset_Object = {
366
+ copy_from_asset_id: string;
367
+ };
368
+ type CreateAsset_AssetDescription = {
369
+ name?: string;
370
+ };
371
+ declare function createAsset({ folder_id, asset_container_creatable, body }: {
372
+ folder_id: string;
373
+ asset_container_creatable: "animationGraphs" | "animationSequences" | "cubemaps" | "eventMaps" | "materials" | "renderGraphs" | "scenes" | "scripts" | "shaders" | "volumeMaterials";
374
+ body: CreateAsset_Object | CreateAsset_AssetDescription;
375
+ }): Promise<axios.AxiosResponse<any, any>>;
376
+ type GetSessionsInFolder_Session = {
377
+ session_id: string;
378
+ scene_id: string;
379
+ scene_name: string;
380
+ folder_id: string;
381
+ max_users: number;
382
+ creator_user_id: string;
383
+ created_at: string;
384
+ country_code: string;
385
+ continent_code: string;
386
+ clients: Array<GetSessionsInFolder_UserInfo>;
387
+ };
388
+ type GetSessionsInFolder_UserInfo = {
389
+ client_id?: string;
390
+ client_type?: 'user' | 'guest';
391
+ user_id: string;
392
+ username: string;
393
+ };
394
+ declare function getSessionsInFolder({ folder_id }: {
395
+ folder_id: string;
396
+ }): Promise<Array<GetSessionsInFolder_Session>>;
397
+ type ListSourceFiles_SourceFile = {
398
+ source_file_id?: string;
399
+ upload_task_id?: string;
400
+ source_file_original_name?: string;
401
+ source_file_name?: string;
402
+ size?: number;
403
+ };
404
+ declare function listSourceFiles({ offset, limit }: {
405
+ offset?: number;
406
+ limit?: number;
407
+ }): Promise<Array<ListSourceFiles_SourceFile>>;
408
+ declare function deleteSourceFiles({ source_file_ids }: {
409
+ source_file_ids: Array<string>;
410
+ }): Promise<axios.AxiosResponse<any, any>>;
411
+ declare function downloadSourceFile({ source_file_id }: {
412
+ source_file_id: string;
413
+ }): Promise<ArrayBuffer>;
414
+ type GetSourceFileDetails_SourceFile = {
415
+ source_file_id?: string;
416
+ upload_task_id?: string;
417
+ source_file_original_name?: string;
418
+ source_file_name?: string;
419
+ size?: number;
420
+ };
421
+ declare function getSourceFileDetails({ source_file_id }: {
422
+ source_file_id: string;
423
+ }): Promise<GetSourceFileDetails_SourceFile>;
424
+ declare function updateSourceFileDetails({ source_file_id, source_file_name }: {
425
+ source_file_id: string;
426
+ source_file_name?: string;
427
+ }): Promise<axios.AxiosResponse<any, any>>;
428
+ type GetSourceFileAssets_asset_list = {
429
+ animations?: Array<GetSourceFileAssets_asset_item>;
430
+ animationGraphs?: Array<GetSourceFileAssets_asset_item>;
431
+ animationSequences?: Array<GetSourceFileAssets_asset_item>;
432
+ animationSets?: Array<GetSourceFileAssets_asset_item>;
433
+ cubemaps?: Array<GetSourceFileAssets_asset_item>;
434
+ eventMaps?: Array<GetSourceFileAssets_asset_item>;
435
+ materials?: Array<GetSourceFileAssets_asset_item>;
436
+ meshes?: Array<GetSourceFileAssets_asset_item>;
437
+ pointClouds?: Array<GetSourceFileAssets_asset_item>;
438
+ renderGraphs?: Array<GetSourceFileAssets_asset_item>;
439
+ scenes?: Array<GetSourceFileAssets_asset_item>;
440
+ scripts?: Array<GetSourceFileAssets_asset_item>;
441
+ shaders?: Array<GetSourceFileAssets_asset_item>;
442
+ skeletons?: Array<GetSourceFileAssets_asset_item>;
443
+ sounds?: Array<GetSourceFileAssets_asset_item>;
444
+ textures?: Array<GetSourceFileAssets_asset_item>;
445
+ volumeMaterials?: Array<GetSourceFileAssets_asset_item>;
446
+ };
447
+ type GetSourceFileAssets_asset_item = {
448
+ asset_id?: string;
449
+ asset_name?: string;
450
+ };
451
+ declare function getSourceFileAssets({ source_file_id }: {
452
+ source_file_id: string;
453
+ }): Promise<GetSourceFileAssets_asset_list>;
454
+ type GetUploadTask_UploadTask = {
455
+ upload_task_id?: string;
456
+ folder_id?: string;
457
+ uploaded_at?: string;
458
+ uploaded_by?: string;
459
+ progress?: number;
460
+ status?: string;
461
+ conversion_tasks?: Array<GetUploadTask_ConversionTask>;
462
+ };
463
+ type GetUploadTask_ConversionTask = {
464
+ source_file_id?: string;
465
+ conversion_pipeline?: string;
466
+ progress?: number;
467
+ status?: string;
468
+ };
469
+ declare function getUploadTask({ upload_task_id }: {
470
+ upload_task_id: string;
471
+ }): Promise<GetUploadTask_UploadTask>;
472
+ type ListAssets_asset_list = {
473
+ animations?: Array<ListAssets_asset_item>;
474
+ animationGraphs?: Array<ListAssets_asset_item>;
475
+ animationSequences?: Array<ListAssets_asset_item>;
476
+ animationSets?: Array<ListAssets_asset_item>;
477
+ cubemaps?: Array<ListAssets_asset_item>;
478
+ eventMaps?: Array<ListAssets_asset_item>;
479
+ materials?: Array<ListAssets_asset_item>;
480
+ meshes?: Array<ListAssets_asset_item>;
481
+ pointClouds?: Array<ListAssets_asset_item>;
482
+ renderGraphs?: Array<ListAssets_asset_item>;
483
+ scenes?: Array<ListAssets_asset_item>;
484
+ scripts?: Array<ListAssets_asset_item>;
485
+ shaders?: Array<ListAssets_asset_item>;
486
+ skeletons?: Array<ListAssets_asset_item>;
487
+ sounds?: Array<ListAssets_asset_item>;
488
+ textures?: Array<ListAssets_asset_item>;
489
+ volumeMaterials?: Array<ListAssets_asset_item>;
490
+ };
491
+ type ListAssets_asset_item = {
492
+ asset_id?: string;
493
+ asset_name?: string;
494
+ };
495
+ declare function listAssets({ offset, limit }: {
496
+ offset?: number;
497
+ limit?: number;
498
+ }): Promise<ListAssets_asset_list>;
499
+ declare function deleteAssets({ asset_ids }: {
500
+ asset_ids: Array<string>;
501
+ }): Promise<axios.AxiosResponse<any, any>>;
502
+ declare function deleteAsset({ asset_container, asset_id }: {
503
+ asset_container: "animations" | "animationGraphs" | "animationSequences" | "animationSets" | "cubemaps" | "eventMaps" | "materials" | "meshes" | "pointClouds" | "renderGraphs" | "scenes" | "scripts" | "shaders" | "skeletons" | "sounds" | "textures" | "volumeMaterials";
504
+ asset_id: string;
505
+ }): Promise<axios.AxiosResponse<any, any>>;
506
+ type GetAssetSourceFile_SourceFile = {
507
+ source_file_id?: string;
508
+ upload_task_id?: string;
509
+ source_file_original_name?: string;
510
+ source_file_name?: string;
511
+ size?: number;
512
+ };
513
+ declare function getAssetSourceFile({ asset_container, asset_id }: {
514
+ asset_container: "animations" | "animationGraphs" | "animationSequences" | "animationSets" | "cubemaps" | "eventMaps" | "materials" | "meshes" | "pointClouds" | "renderGraphs" | "scenes" | "scripts" | "shaders" | "skeletons" | "sounds" | "textures" | "volumeMaterials";
515
+ asset_id: string;
516
+ }): Promise<GetAssetSourceFile_SourceFile>;
517
+ type GetAssetDetails_asset_details = {
518
+ type?: string;
519
+ asset_id?: string;
520
+ name?: string;
521
+ created_at?: string;
522
+ created_by?: GetAssetDetails_User_UserInfo;
523
+ last_edited_at?: string;
524
+ last_edited_by?: GetAssetDetails_User_UserInfo;
525
+ contributors?: Array<GetAssetDetails_UserContribution>;
526
+ };
527
+ type GetAssetDetails_User_UserInfo = {
528
+ user_id: string;
529
+ username: string;
530
+ registered_at?: string;
531
+ };
532
+ type GetAssetDetails_UserContribution = {
533
+ user?: GetAssetDetails_User_UserInfo;
534
+ contribution_count?: number;
535
+ };
536
+ declare function getAssetDetails({ asset_container, asset_id }: {
537
+ asset_container: "animations" | "animationGraphs" | "animationSequences" | "animationSets" | "cubemaps" | "eventMaps" | "materials" | "meshes" | "pointClouds" | "renderGraphs" | "scenes" | "scripts" | "shaders" | "skeletons" | "sounds" | "textures" | "volumeMaterials";
538
+ asset_id: string;
539
+ }): Promise<GetAssetDetails_asset_details>;
540
+ type GetAssetFolder_Folder = {
541
+ folder_id: string;
542
+ parent_folder_id?: string;
543
+ folder_name: string;
544
+ created_at?: string;
545
+ created_by?: GetAssetFolder_User_UserInfo;
546
+ subfolders?: Array<GetAssetFolder_Folder>;
547
+ source_file_count?: number;
548
+ asset_count?: number;
549
+ };
550
+ type GetAssetFolder_User_UserInfo = {
551
+ user_id: string;
552
+ username: string;
553
+ registered_at?: string;
554
+ };
555
+ declare function getAssetFolder({ asset_container, asset_id }: {
556
+ asset_container: "animations" | "animationGraphs" | "animationSequences" | "animationSets" | "cubemaps" | "eventMaps" | "materials" | "meshes" | "pointClouds" | "renderGraphs" | "scenes" | "scripts" | "shaders" | "skeletons" | "sounds" | "textures" | "volumeMaterials";
557
+ asset_id: string;
558
+ }): Promise<GetAssetFolder_Folder>;
559
+ type GetAssetDependencies_Object = {
560
+ type?: Array<string>;
561
+ };
562
+ declare function getAssetDependencies({ asset_container, asset_id, format, depth, filter }: {
563
+ asset_container: "animations" | "animationGraphs" | "animationSequences" | "animationSets" | "cubemaps" | "eventMaps" | "materials" | "meshes" | "pointClouds" | "renderGraphs" | "scenes" | "scripts" | "shaders" | "skeletons" | "sounds" | "textures" | "volumeMaterials";
564
+ asset_id: string;
565
+ format?: 'flat' | 'graph';
566
+ depth?: 'all' | 'direct';
567
+ filter?: GetAssetDependencies_Object;
568
+ }): Promise<GetAssetDependencies_Object>;
569
+ type GetAssetReferences_Object = {};
570
+ declare function getAssetReferences({ asset_container, asset_id }: {
571
+ asset_container: "animations" | "animationGraphs" | "animationSequences" | "animationSets" | "cubemaps" | "eventMaps" | "materials" | "meshes" | "pointClouds" | "renderGraphs" | "scenes" | "scripts" | "shaders" | "skeletons" | "sounds" | "textures" | "volumeMaterials";
572
+ asset_id: string;
573
+ }): Promise<GetAssetReferences_Object>;
574
+ type GetAssetDescription_animation_asset_schema = {
575
+ durationInMs: number;
576
+ payloadSize: number;
577
+ animationEventTrack: GetAssetDescription_animation_event_track;
578
+ skeletonRef?: string;
579
+ };
580
+ type GetAssetDescription_animation_event_track = {
581
+ eventNames?: Array<string>;
582
+ eventTimeline?: Array<GetAssetDescription_animation_event>;
583
+ };
584
+ type GetAssetDescription_animation_event = {
585
+ eventIndex?: number;
586
+ triggerTime?: number;
587
+ triggerGlobally?: boolean;
588
+ };
589
+ type GetAssetDescription_animation_graph_asset_schema = {
590
+ stateMachines?: Array<GetAssetDescription_animation_state_machine_description>;
591
+ inputDescriptor?: GetAssetDescription_animation_graph_data_object_descriptor;
592
+ };
593
+ type GetAssetDescription_animation_state_machine_description = {
594
+ states?: Array<GetAssetDescription_animation_state_description>;
595
+ transitions?: Array<GetAssetDescription_transition_description>;
596
+ };
597
+ type GetAssetDescription_animation_state_description = {
598
+ name?: string;
599
+ nodes?: Array<GetAssetDescription_animation_node_description>;
600
+ transitionIndices?: Array<number>;
601
+ };
602
+ type GetAssetDescription_animation_node_description = {
603
+ nodeType?: any;
604
+ inputs?: Array<number>;
605
+ 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;
606
+ };
607
+ type GetAssetDescription_playback_settings_animation_settings = {
608
+ playbackSpeed?: number;
609
+ startOffset?: number;
610
+ loop?: boolean;
611
+ animationKey?: number;
612
+ };
613
+ type GetAssetDescription_blendspace_1d_settings_animation_settings = {
614
+ playbackSpeed?: number;
615
+ startOffset?: number;
616
+ loop?: boolean;
617
+ controlPoints?: Array<GetAssetDescription_blend_axis>;
618
+ horizontalAxis?: GetAssetDescription_blend_axis;
619
+ };
620
+ type GetAssetDescription_blend_axis = {
621
+ name?: string;
622
+ rangeMin?: number;
623
+ rangeMax?: number;
624
+ };
625
+ type GetAssetDescription_blendspace_2d_settings_animation_settings = {
626
+ playbackSpeed?: number;
627
+ startOffset?: number;
628
+ loop?: boolean;
629
+ controlPoints?: Array<GetAssetDescription_blend_axis>;
630
+ horizontalAxis?: GetAssetDescription_blend_axis;
631
+ verticalAxis?: GetAssetDescription_blend_axis;
632
+ };
633
+ type GetAssetDescription_blend_settings = {
634
+ weights?: Array<number>;
635
+ boneIndices?: Array<number>;
636
+ };
637
+ type GetAssetDescription_random_settings = {
638
+ probabilities?: Array<number>;
639
+ };
640
+ type GetAssetDescription_animation_state_machine_settings = {
641
+ stateMachineIndex?: number;
642
+ };
643
+ type GetAssetDescription_ik_two_bone_settings = {
644
+ ws_poleVector?: Array<number>;
645
+ targetId?: string;
646
+ startJoint?: number;
647
+ midJoint?: number;
648
+ endJoint?: number;
649
+ soften?: number;
650
+ twistAngle?: number;
651
+ weight?: number;
652
+ };
653
+ type GetAssetDescription_ik_aim_settings = {
654
+ targetNameId?: string;
655
+ aimingBoneId?: string;
656
+ chainLength?: number;
657
+ eyesOffset?: Array<number>;
658
+ chainWeight?: number;
659
+ boneWeight?: number;
660
+ };
661
+ type GetAssetDescription_transition_description = {
662
+ durationInMs?: number;
663
+ exitTime?: number;
664
+ nextStateIndex?: number;
665
+ condition?: string;
666
+ };
667
+ type GetAssetDescription_animation_graph_data_object_descriptor = {};
668
+ type GetAssetDescription_animation_sequence_asset_schema = {
669
+ inputDescriptor: GetAssetDescription_animation_sequence_data_object_descriptor;
670
+ };
671
+ type GetAssetDescription_animation_sequence_data_object_descriptor = {};
672
+ type GetAssetDescription_animation_set_asset_schema = {
673
+ animationSet: Array<GetAssetDescription_Object>;
674
+ animationGraphUUID: string;
675
+ };
676
+ type GetAssetDescription_Object = {
677
+ key?: number;
678
+ value?: string;
679
+ };
680
+ type GetAssetDescription_cubemap_asset_schema = {
681
+ faces: Array<string>;
682
+ };
683
+ type GetAssetDescription_event_map_asset_schema = {
684
+ eventDescriptors: Array<GetAssetDescription_Object>;
685
+ };
686
+ type GetAssetDescription_material_asset_schema = {
687
+ shaderRef: string;
688
+ skinnedShaderRef: string;
689
+ dataJson: GetAssetDescription_Object;
690
+ isDoubleSided: boolean;
691
+ };
692
+ type GetAssetDescription_mesh_asset_schema = {
693
+ submeshes: Array<GetAssetDescription_submesh_description>;
694
+ payloadSize: number;
695
+ };
696
+ type GetAssetDescription_submesh_description = {
697
+ boundingBox: GetAssetDescription_aabb;
698
+ channels: Array<GetAssetDescription_channel_description>;
699
+ payloadSize: number;
700
+ indexCount: number;
701
+ vertexCount?: number;
702
+ };
703
+ type GetAssetDescription_aabb = {};
704
+ type GetAssetDescription_channel_description = {
705
+ semantic?: any;
706
+ elementCount?: number;
707
+ elementType?: any;
708
+ elementSize?: number;
709
+ dataOffset?: number;
710
+ dataSize?: number;
711
+ };
712
+ type GetAssetDescription_point_cloud_asset_schema = {
713
+ format: any;
714
+ payloadTotalSize: number;
715
+ pointCount: number;
716
+ translation?: Array<number>;
717
+ scale?: Array<number>;
718
+ };
719
+ type GetAssetDescription_render_graph_asset_schema = {
720
+ renderTargetDescriptions?: Array<GetAssetDescription_render_target_description>;
721
+ nodeDataDescriptions?: Array<GetAssetDescription_node_data_description>;
722
+ renderPassDescriptions?: Array<GetAssetDescription_render_pass_description>;
723
+ graphOrder?: Array<GetAssetDescription_pair_int16_int16>;
724
+ inputDescriptor?: GetAssetDescription_render_graph_data_object_descriptor;
725
+ stencilStates?: Array<GetAssetDescription_VkStencilOpState>;
726
+ blendStates?: Array<GetAssetDescription_VkPipelineColorBlendAttachmentState>;
727
+ defaultRenderTargetIndex?: number;
728
+ occlusionInputDepthRenderTargetIndex?: number;
729
+ };
730
+ type GetAssetDescription_render_target_description = {
731
+ name?: string;
732
+ format?: GetAssetDescription_VkFormat;
733
+ sampleCount?: GetAssetDescription_VkSampleCountFlagBits;
734
+ usage?: GetAssetDescription_VkImageUsageFlags;
735
+ aspect?: GetAssetDescription_VkImageAspectFlagBits;
736
+ samplerType?: number;
737
+ mipLevels?: number;
738
+ extent?: GetAssetDescription_$defs_vec3;
739
+ flags?: GetAssetDescription_VkImageCreateFlags;
740
+ tiling?: GetAssetDescription_VkImageTiling;
741
+ memoryUsage?: GetAssetDescription_vk__memory_usage;
742
+ memoryType?: GetAssetDescription_vk__memory_type;
743
+ };
744
+ type GetAssetDescription_VkFormat = {};
745
+ type GetAssetDescription_VkSampleCountFlagBits = {};
746
+ type GetAssetDescription_VkImageUsageFlags = {};
747
+ type GetAssetDescription_VkImageAspectFlagBits = {};
748
+ type GetAssetDescription_$defs_vec3 = {};
749
+ type GetAssetDescription_VkImageCreateFlags = {};
750
+ type GetAssetDescription_VkImageTiling = {};
751
+ type GetAssetDescription_vk__memory_usage = {};
752
+ type GetAssetDescription_vk__memory_type = {};
753
+ type GetAssetDescription_node_data_description = {
754
+ name?: string;
755
+ frameNodeType?: any;
756
+ inputDepthRenderTargetIndices?: Array<number>;
757
+ outputDepthRenderTargetIndices?: Array<number>;
758
+ inputRenderTargetIndices?: Array<number>;
759
+ outputRenderTargetIndices?: Array<number>;
760
+ shaderRef?: GetAssetDescription_$defs_shader_ref;
761
+ dataJson?: GetAssetDescription_Object;
762
+ aliases?: Array<any>;
763
+ batchType?: any;
764
+ pipelineDescription?: GetAssetDescription_pipeline_description;
765
+ copyToFaceIndex?: number;
766
+ drawIndirect?: boolean;
767
+ conditions?: Array<string>;
768
+ clearColors?: Array<GetAssetDescription_vec4>;
769
+ constDataType?: any;
770
+ };
771
+ type GetAssetDescription_$defs_shader_ref = {};
772
+ type GetAssetDescription_pipeline_description = {
773
+ topology?: GetAssetDescription_VkPrimitiveTopology;
774
+ blendStateIndices?: Array<number>;
775
+ polygonMode?: GetAssetDescription_VkPrimitiveTopology;
776
+ cullMode?: GetAssetDescription_VkCullModeFlags;
777
+ frontFace?: GetAssetDescription_VkFrontFace;
778
+ depthTestEnable?: boolean;
779
+ depthWriteEnable?: boolean;
780
+ depthCompareOp?: GetAssetDescription_VkCompareOp;
781
+ frontFaceStencilOpStateIndex?: number;
782
+ backFaceStencilOpStateIndex?: number;
783
+ stencilStateIndex?: number;
784
+ };
785
+ type GetAssetDescription_VkPrimitiveTopology = {};
786
+ type GetAssetDescription_VkCullModeFlags = {};
787
+ type GetAssetDescription_VkFrontFace = {};
788
+ type GetAssetDescription_VkCompareOp = {};
789
+ type GetAssetDescription_vec4 = {};
790
+ type GetAssetDescription_render_pass_description = {
791
+ name?: string;
792
+ sampleCount?: number;
793
+ nodeIndices?: Array<number>;
794
+ colorAttachmentIndices?: Array<number>;
795
+ depthAttachmentIndex?: number;
796
+ resolveAttachmentIndices?: Array<number>;
797
+ colorAttachmentReferences?: Array<GetAssetDescription_VkAttachmentReference>;
798
+ depthAttachmentReference?: GetAssetDescription_VkAttachmentReference;
799
+ resolveAttachmentReferences?: Array<GetAssetDescription_VkAttachmentReference>;
800
+ attachmentDescriptions?: Array<GetAssetDescription_VkAttachmentDescription>;
801
+ attachmentClearColors?: Array<GetAssetDescription_vec4>;
802
+ };
803
+ type GetAssetDescription_VkAttachmentReference = {
804
+ attachment?: number;
805
+ layout?: GetAssetDescription_VkImageLayout;
806
+ };
807
+ type GetAssetDescription_VkImageLayout = {};
808
+ type GetAssetDescription_VkAttachmentDescription = {
809
+ flags?: GetAssetDescription_VkAttachmentDescriptionFlags;
810
+ format?: GetAssetDescription_VkFormat;
811
+ samples?: GetAssetDescription_VkSampleCountFlagBits;
812
+ loadOp?: GetAssetDescription_VkAttachmentLoadOp;
813
+ storeOp?: GetAssetDescription_VkAttachmentStoreOp;
814
+ stencilLoadOp?: GetAssetDescription_VkAttachmentLoadOp;
815
+ stencilStoreOp?: GetAssetDescription_VkAttachmentStoreOp;
816
+ initialLayout?: GetAssetDescription_VkImageLayout;
817
+ finalLayout?: GetAssetDescription_VkImageLayout;
818
+ };
819
+ type GetAssetDescription_VkAttachmentDescriptionFlags = {};
820
+ type GetAssetDescription_VkAttachmentLoadOp = {};
821
+ type GetAssetDescription_VkAttachmentStoreOp = {};
822
+ type GetAssetDescription_pair_int16_int16 = {};
823
+ type GetAssetDescription_render_graph_data_object_descriptor = {};
824
+ type GetAssetDescription_VkStencilOpState = {
825
+ failOp?: GetAssetDescription_VkStencilOp;
826
+ passOp?: GetAssetDescription_VkStencilOp;
827
+ depthFailOp?: GetAssetDescription_VkStencilOp;
828
+ compareOp?: GetAssetDescription_VkCompareOp;
829
+ compareMask?: number;
830
+ writeMask?: number;
831
+ reference?: number;
832
+ };
833
+ type GetAssetDescription_VkStencilOp = {};
834
+ type GetAssetDescription_VkPipelineColorBlendAttachmentState = {
835
+ blendEnable?: boolean;
836
+ srcColorBlendFactor?: GetAssetDescription_VkBlendFactor;
837
+ dstColorBlendFactor?: GetAssetDescription_VkBlendFactor;
838
+ colorBlendOp?: GetAssetDescription_VkBlendOp;
839
+ srcAlphaBlendFactor?: GetAssetDescription_VkBlendFactor;
840
+ dstAlphaBlendFactor?: GetAssetDescription_VkBlendFactor;
841
+ alphaBlendOp?: GetAssetDescription_VkBlendOp;
842
+ colorWriteMask?: GetAssetDescription_VkColorComponentFlags;
843
+ };
844
+ type GetAssetDescription_VkBlendFactor = {};
845
+ type GetAssetDescription_VkBlendOp = {};
846
+ type GetAssetDescription_VkColorComponentFlags = {};
847
+ type GetAssetDescription_scene_asset_schema = {
848
+ boundingBox?: GetAssetDescription_aabb;
849
+ entities?: Array<GetAssetDescription_Object>;
850
+ triangleCount?: number;
851
+ settings?: GetAssetDescription_Object;
852
+ animationSequenceInstances?: Array<GetAssetDescription_animation_sequence_instance>;
853
+ };
854
+ type GetAssetDescription_animation_sequence_instance = {
855
+ ref?: string;
856
+ entities?: Array<string>;
857
+ dataJSON?: GetAssetDescription_Object;
858
+ durationInMs?: number;
859
+ loop?: boolean;
860
+ };
861
+ type GetAssetDescription_script_asset_schema = {
862
+ inputDescriptor?: GetAssetDescription_$defs_script_data_object_descriptor;
863
+ eventNames: Array<string>;
864
+ subScripts?: Array<string>;
865
+ };
866
+ type GetAssetDescription_$defs_script_data_object_descriptor = {};
867
+ type GetAssetDescription_shader_asset_schema = {
868
+ payloadSize: number;
869
+ shaderStages?: number;
870
+ moduleDescriptions?: Array<GetAssetDescription_shader_module_description>;
871
+ materialDescriptor?: GetAssetDescription_shader_data_object_descriptor;
872
+ nodeDataDescriptor?: GetAssetDescription_shader_data_object_descriptor;
873
+ vertexDescriptor?: Array<GetAssetDescription_vertex_attribute_descriptor>;
874
+ blendMode?: any;
875
+ localGroupCount?: Array<number>;
876
+ optGlobalGroupMultiplier?: Array<number>;
877
+ optGlobalGroupReference?: any;
878
+ };
879
+ type GetAssetDescription_shader_module_description = {
880
+ shaderStage?: GetAssetDescription_VkShaderStageFlagBits;
881
+ payloadOffset?: number;
882
+ payloadSize?: number;
883
+ usedBindings?: number;
884
+ };
885
+ type GetAssetDescription_VkShaderStageFlagBits = {};
886
+ type GetAssetDescription_shader_data_object_descriptor = {};
887
+ type GetAssetDescription_vertex_attribute_descriptor = {
888
+ semantic?: any;
889
+ binding?: number;
890
+ location?: number;
891
+ stride?: number;
892
+ format?: GetAssetDescription_VkFormat;
893
+ offset?: number;
894
+ };
895
+ type GetAssetDescription_skeleton_asset_schema = {
896
+ payloadSize: number;
897
+ bones: Array<GetAssetDescription_bone_description>;
898
+ };
899
+ type GetAssetDescription_bone_description = {
900
+ name?: string;
901
+ childrenCount?: number;
902
+ firstChildIndex?: number;
903
+ parentIndex?: number;
904
+ offsetMatrix?: Array<number>;
905
+ };
906
+ type GetAssetDescription_sound_asset_schema = {
907
+ payloadSize: number;
908
+ sampleCount: number;
909
+ durationInMs: number;
910
+ sampleFrequencyInHz: number;
911
+ bitDepth: number;
912
+ channelCount: number;
913
+ };
914
+ type GetAssetDescription_texture_asset_schema = {
915
+ format: any;
916
+ payloadTotalSize: number;
917
+ mips: Array<GetAssetDescription_mip_description>;
918
+ };
919
+ type GetAssetDescription_mip_description = {
920
+ dimension?: Array<number>;
921
+ payloadSize?: number;
922
+ };
923
+ type GetAssetDescription_volume_material_asset_schema = {
924
+ albedoLUT?: Array<GetAssetDescription_control_point>;
925
+ opacityLUT?: Array<GetAssetDescription_control_point>;
926
+ metallicLUT?: Array<GetAssetDescription_control_point>;
927
+ roughnessLUT?: Array<GetAssetDescription_control_point>;
928
+ rangeMin?: number;
929
+ rangeMax?: number;
930
+ };
931
+ type GetAssetDescription_control_point = {
932
+ key?: number;
933
+ value?: Array<number> | number;
934
+ };
935
+ declare function getAssetDescription({ asset_container, asset_id }: {
936
+ asset_container: "animations" | "animationGraphs" | "animationSequences" | "animationSets" | "cubemaps" | "eventMaps" | "materials" | "meshes" | "pointClouds" | "renderGraphs" | "scenes" | "scripts" | "shaders" | "skeletons" | "sounds" | "textures" | "volumeMaterials";
937
+ asset_id: string;
938
+ }): Promise<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>;
939
+ declare function updateAssetDescription({ asset_container, asset_id, name }: {
940
+ asset_container: "animations" | "animationGraphs" | "animationSequences" | "animationSets" | "cubemaps" | "eventMaps" | "materials" | "meshes" | "pointClouds" | "renderGraphs" | "scenes" | "scripts" | "shaders" | "skeletons" | "sounds" | "textures" | "volumeMaterials";
941
+ asset_id: string;
942
+ name?: string;
943
+ }): Promise<axios.AxiosResponse<any, any>>;
944
+ declare function getAssetPayload({ asset_container_with_payload, asset_id }: {
945
+ asset_container_with_payload: "animations" | "animationSequences" | "meshes" | "pointClouds" | "scripts" | "shaders" | "skeletons" | "sounds" | "textures";
946
+ asset_id: string;
947
+ }): Promise<ArrayBuffer>;
948
+ type GetAssetHistory_Object = {};
949
+ declare function getAssetHistory({ asset_container, asset_id }: {
950
+ asset_container: "animations" | "animationGraphs" | "animationSequences" | "animationSets" | "cubemaps" | "eventMaps" | "materials" | "meshes" | "pointClouds" | "renderGraphs" | "scenes" | "scripts" | "shaders" | "skeletons" | "sounds" | "textures" | "volumeMaterials";
951
+ asset_id: string;
952
+ }): Promise<GetAssetHistory_Object>;
953
+ type GetAssetMeta_Object = {};
954
+ declare function getAssetMeta({ asset_container, asset_id }: {
955
+ asset_container: "animations" | "animationGraphs" | "animationSequences" | "animationSets" | "cubemaps" | "eventMaps" | "materials" | "meshes" | "pointClouds" | "renderGraphs" | "scenes" | "scripts" | "shaders" | "skeletons" | "sounds" | "textures" | "volumeMaterials";
956
+ asset_id: string;
957
+ }): Promise<GetAssetMeta_Object>;
958
+ declare function getAssetCode({ asset_container_with_code, asset_id }: {
959
+ asset_container_with_code: "animationSequences" | "scripts" | "shaders";
960
+ asset_id: string;
961
+ }): Promise<string>;
962
+ declare function getAssetThumbnail({ asset_container, asset_id, size, default_url }: {
963
+ asset_container: "animations" | "animationGraphs" | "animationSequences" | "animationSets" | "cubemaps" | "eventMaps" | "materials" | "meshes" | "pointClouds" | "renderGraphs" | "scenes" | "scripts" | "shaders" | "skeletons" | "sounds" | "textures" | "volumeMaterials";
964
+ asset_id: string;
965
+ size: "large" | "medium" | "small" | "tiny";
966
+ default_url?: string;
967
+ }): Promise<axios.AxiosResponse<any, any>>;
968
+ declare function setAssetThumbnail({ asset_container, asset_id, body }: {
969
+ asset_container: "animations" | "animationGraphs" | "animationSequences" | "animationSets" | "cubemaps" | "eventMaps" | "materials" | "meshes" | "pointClouds" | "renderGraphs" | "scenes" | "scripts" | "shaders" | "skeletons" | "sounds" | "textures" | "volumeMaterials";
970
+ asset_id: string;
971
+ body: ArrayBuffer;
972
+ }, contentType: 'image/jpg' | 'image/png'): Promise<axios.AxiosResponse<any, any>>;
973
+ type GetAssetCustomTypes_Object = {};
974
+ declare function getAssetCustomTypes({ asset_container_with_custom_types, asset_id }: {
975
+ asset_container_with_custom_types: "modules";
976
+ asset_id: string;
977
+ }): Promise<GetAssetCustomTypes_Object>;
978
+ declare function packageAsset({ asset_container, asset_id }: {
979
+ asset_container: "animations" | "animationGraphs" | "animationSequences" | "animationSets" | "cubemaps" | "eventMaps" | "materials" | "meshes" | "pointClouds" | "renderGraphs" | "scenes" | "scripts" | "shaders" | "skeletons" | "sounds" | "textures" | "volumeMaterials";
980
+ asset_id: string;
981
+ }): Promise<ArrayBuffer>;
982
+ declare function exportAsset({ asset_container_exportable, asset_id, format, scale }: {
983
+ asset_container_exportable: "meshes" | "sounds";
984
+ asset_id: string;
985
+ format: "obj" | "stl";
986
+ scale?: number;
987
+ }): Promise<ArrayBuffer>;
988
+ type GetSceneSessions_Session = {
989
+ session_id: string;
990
+ scene_id: string;
991
+ scene_name: string;
992
+ folder_id: string;
993
+ max_users: number;
994
+ creator_user_id: string;
995
+ created_at: string;
996
+ country_code: string;
997
+ continent_code: string;
998
+ clients: Array<GetSceneSessions_UserInfo>;
999
+ };
1000
+ type GetSceneSessions_UserInfo = {
1001
+ client_id?: string;
1002
+ client_type?: 'user' | 'guest';
1003
+ user_id: string;
1004
+ username: string;
1005
+ };
1006
+ declare function getSceneSessions({ scene_id }: {
1007
+ scene_id: string;
1008
+ }): Promise<Array<GetSceneSessions_Session>>;
1009
+ type GetSceneAabb_Object = {
1010
+ max?: Array<number>;
1011
+ min?: Array<number>;
1012
+ };
1013
+ declare function getSceneAABB({ scene_id }: {
1014
+ scene_id: string;
1015
+ }): Promise<GetSceneAabb_Object>;
1016
+ type GetEntity_entity_euid = {
1017
+ euid?: GetEntity_Object;
1018
+ };
1019
+ type GetEntity_Object = {
1020
+ value?: string;
1021
+ };
1022
+ declare function getEntity({ scene_id, entity_id, compute_global_transform }: {
1023
+ scene_id: string;
1024
+ entity_id: string;
1025
+ compute_global_transform?: boolean;
1026
+ }): Promise<GetEntity_entity_euid>;
1027
+ type CreateSession_Object = {
1028
+ session_id?: string;
1029
+ };
1030
+ declare function createSession({ scene_id }: {
1031
+ scene_id?: string;
1032
+ }): Promise<CreateSession_Object>;
1033
+ type GetSession_Session = {
1034
+ session_id: string;
1035
+ scene_id: string;
1036
+ scene_name: string;
1037
+ folder_id: string;
1038
+ max_users: number;
1039
+ creator_user_id: string;
1040
+ created_at: string;
1041
+ country_code: string;
1042
+ continent_code: string;
1043
+ clients: Array<GetSession_UserInfo>;
1044
+ };
1045
+ type GetSession_UserInfo = {
1046
+ client_id?: string;
1047
+ client_type?: 'user' | 'guest';
1048
+ user_id: string;
1049
+ username: string;
1050
+ };
1051
+ declare function getSession({ session_id }: {
1052
+ session_id: string;
1053
+ }): Promise<GetSession_Session>;
1054
+ declare function killSession({ session_id }: {
1055
+ session_id: string;
1056
+ }): Promise<axios.AxiosResponse<any, any>>;
1057
+ type JoinSession_SessionToken = {
1058
+ session_token?: string;
1059
+ endpoint_info?: JoinSession_Object;
1060
+ };
1061
+ type JoinSession_Object = {
1062
+ ip?: string;
1063
+ port?: number;
1064
+ ssl_port?: number;
1065
+ };
1066
+ declare function joinSession({ session_id }: {
1067
+ session_id: string;
1068
+ }): Promise<JoinSession_SessionToken>;
1069
+ declare function kickClientFromSession({ session_id, client_id }: {
1070
+ session_id: string;
1071
+ client_id: string;
1072
+ }): Promise<axios.AxiosResponse<any, any>>;
1073
+
1074
+ declare function setApiKey(apiKey: string): void;
1075
+ declare function setUserToken(userToken: string): void;
1076
+ declare function setBaseUrl(url: string): void;
1077
+
1078
+ export { ApiError, CreateAsset_AssetDescription, CreateAsset_Object, CreateFolder_Folder, CreateGroup_GroupMember_GroupAccess, CreateGroup_Group_GroupInfo, CreateSession_Object, CreateSubfolder_Folder, DeleteUser_Object, DeleteUser_asset_item, DeleteUser_asset_list, GenerateUserToken_Token, GetAssetCustomTypes_Object, GetAssetDependencies_Object, GetAssetDescription_$defs_script_data_object_descriptor, GetAssetDescription_$defs_shader_ref, GetAssetDescription_$defs_vec3, GetAssetDescription_Object, GetAssetDescription_VkAttachmentDescription, GetAssetDescription_VkAttachmentDescriptionFlags, GetAssetDescription_VkAttachmentLoadOp, GetAssetDescription_VkAttachmentReference, GetAssetDescription_VkAttachmentStoreOp, GetAssetDescription_VkBlendFactor, GetAssetDescription_VkBlendOp, GetAssetDescription_VkColorComponentFlags, GetAssetDescription_VkCompareOp, GetAssetDescription_VkCullModeFlags, GetAssetDescription_VkFormat, GetAssetDescription_VkFrontFace, GetAssetDescription_VkImageAspectFlagBits, GetAssetDescription_VkImageCreateFlags, GetAssetDescription_VkImageLayout, GetAssetDescription_VkImageTiling, GetAssetDescription_VkImageUsageFlags, GetAssetDescription_VkPipelineColorBlendAttachmentState, GetAssetDescription_VkPrimitiveTopology, GetAssetDescription_VkSampleCountFlagBits, GetAssetDescription_VkShaderStageFlagBits, GetAssetDescription_VkStencilOp, GetAssetDescription_VkStencilOpState, GetAssetDescription_aabb, GetAssetDescription_animation_asset_schema, GetAssetDescription_animation_event, GetAssetDescription_animation_event_track, GetAssetDescription_animation_graph_asset_schema, GetAssetDescription_animation_graph_data_object_descriptor, GetAssetDescription_animation_node_description, GetAssetDescription_animation_sequence_asset_schema, GetAssetDescription_animation_sequence_data_object_descriptor, 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_pipeline_description, GetAssetDescription_playback_settings_animation_settings, GetAssetDescription_point_cloud_asset_schema, GetAssetDescription_random_settings, GetAssetDescription_render_graph_asset_schema, GetAssetDescription_render_graph_data_object_descriptor, GetAssetDescription_render_pass_description, GetAssetDescription_render_target_description, GetAssetDescription_scene_asset_schema, GetAssetDescription_script_asset_schema, GetAssetDescription_shader_asset_schema, GetAssetDescription_shader_data_object_descriptor, 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_vk__memory_type, GetAssetDescription_vk__memory_usage, GetAssetDescription_volume_material_asset_schema, GetAssetDetails_UserContribution, GetAssetDetails_User_UserInfo, GetAssetDetails_asset_details, GetAssetFolder_Folder, GetAssetFolder_User_UserInfo, GetAssetHistory_Object, GetAssetMeta_Object, GetAssetReferences_Object, GetAssetSourceFile_SourceFile, GetEntity_Object, GetEntity_entity_euid, GetFolderAssets_asset_item, GetFolderAssets_asset_list, GetFolderInfo_Folder, GetFolderInfo_User_UserInfo, 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_User_UserInfo, ListFolders_Folder, ListFolders_User_UserInfo, 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, setUserToken, updateAssetDescription, updateFolder, updateGroupDescription, updateSourceFileDetails, updateUser, uploadSourceFiles };