@3dverse/api 0.0.4 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.esm.js CHANGED
@@ -1,629 +1,765 @@
1
1
  import axios from 'axios';
2
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
- //--------------------------------------------------------------------------
18
- const axiosInstance = createAxiosInstance();
19
- //------------------------------------------------------------------------------
20
- function createAxiosInstance() {
21
- const axiosInstance = axios.create({
22
- baseURL: "https://api.3dverse.com/v1"
23
- });
24
- axiosInstance.interceptors.response.use(successFulResponse => {
25
- if (successFulResponse.config.responseType === 'stream') {
26
- successFulResponse.data.pause();
27
- }
28
- return successFulResponse;
29
- }, axiosError => {
30
- if (!axiosError.response) {
31
- return Promise.reject(axiosError);
32
- }
33
- const errorData = axiosError.response.data;
34
- const error = {
35
- errorCode: errorData.errorCode,
36
- message: errorData.message,
37
- status: axiosError.response.status,
38
- error: errorData.error || errorData,
39
- };
40
- return Promise.reject(error);
41
- });
42
- return axiosInstance;
43
- }
44
- //------------------------------------------------------------------------------
45
- function setBaseURL(baseURL) {
46
- axiosInstance.defaults.baseURL = baseURL;
47
- }
48
- function listUsers({ offset = 0, limit = 10 }) {
49
- return axiosInstance({
50
- method: "get",
51
- url: "/users",
52
- params: {
53
- offset: offset,
54
- limit: limit
55
- }
56
- });
57
- }
58
- function registerUser({ username }) {
59
- return axiosInstance({
60
- method: "post",
61
- url: "/users",
62
- data: {
63
- username: username
64
- }
65
- });
66
- }
67
- function getUser({ user_id }) {
68
- return axiosInstance({
69
- method: "get",
70
- url: "/users/" + user_id + ""
71
- });
72
- }
73
- //--------------------------------------------------------------------------
74
- // Updates the details of the target user.
75
- function updateUser({ user_id, username }) {
76
- return axiosInstance({
77
- method: "patch",
78
- url: "/users/" + user_id + "",
79
- data: {
80
- username: username
81
- }
82
- });
83
- }
84
- function deleteUser({ user_id }) {
85
- return axiosInstance({
86
- method: "delete",
87
- url: "/users/" + user_id + ""
88
- });
89
- }
90
- function generateUserToken({ user_id, scope, ttl = '1h' }) {
91
- return axiosInstance({
92
- method: "post",
93
- url: "/users/" + user_id + "/tokens",
94
- data: {
95
- scope: scope,
96
- ttl: ttl
97
- }
98
- });
99
- }
100
- function getUserGroups({ user_id }) {
101
- return axiosInstance({
102
- method: "get",
103
- url: "/users/" + user_id + "/groups"
104
- });
105
- }
106
- function getUserUploadTasks({ user_id, offset = 0, limit = 10 }) {
107
- return axiosInstance({
108
- method: "get",
109
- url: "/users/" + user_id + "/upload-tasks",
110
- params: {
111
- offset: offset,
112
- limit: limit
113
- }
114
- });
115
- }
116
- function createGroup({ group_name, group_description, members }) {
117
- return axiosInstance({
118
- method: "post",
119
- url: "/groups",
120
- data: {
121
- group_name: group_name,
122
- group_description: group_description,
123
- members: members
124
- }
125
- });
126
- }
127
- function getGroup({ group_id }) {
128
- return axiosInstance({
129
- method: "get",
130
- url: "/groups/" + group_id + ""
131
- });
132
- }
133
- //--------------------------------------------------------------------------
134
- // Updates a group details.
135
- function updateGroupDescription({ group_id, group_name, group_description }) {
136
- return axiosInstance({
137
- method: "patch",
138
- url: "/groups/" + group_id + "",
139
- data: {
140
- group_name: group_name,
141
- group_description: group_description
142
- }
143
- });
144
- }
145
- //--------------------------------------------------------------------------
146
- // Deletes a group and all its access rights.
147
- function deleteGroup({ group_id }) {
148
- return axiosInstance({
149
- method: "delete",
150
- url: "/groups/" + group_id + ""
151
- });
152
- }
153
- //--------------------------------------------------------------------------
154
- // Grants member access to the group.
155
- function grantMemberAccessToGroup({ group_id, member_type, member_id, group_access, folder_access }) {
156
- return axiosInstance({
157
- method: "put",
158
- url: "/groups/" + group_id + "/members/" + member_type + "/" + member_id + "",
159
- data: {
160
- group_access: group_access,
161
- folder_access: folder_access
162
- }
163
- });
164
- }
165
- //--------------------------------------------------------------------------
166
- // Revoke requested user access to group.
167
- function revokeMemberAccessToGroup({ group_id, member_type, member_id }) {
168
- return axiosInstance({
169
- method: "delete",
170
- url: "/groups/" + group_id + "/members/" + member_type + "/" + member_id + ""
171
- });
172
- }
173
- function listFolders({ offset = 0, limit = 10 }) {
174
- return axiosInstance({
175
- method: "get",
176
- url: "/folders",
177
- params: {
178
- offset: offset,
179
- limit: limit
180
- }
181
- });
182
- }
183
- function createFolder({ folder_name, subfolders }) {
184
- return axiosInstance({
185
- method: "post",
186
- url: "/folders",
187
- data: {
188
- folder_name: folder_name,
189
- subfolders: subfolders
190
- }
191
- });
192
- }
193
- function getFolderInfo({ folder_id }) {
194
- return axiosInstance({
195
- method: "get",
196
- url: "/folders/" + folder_id + ""
197
- });
198
- }
199
- //--------------------------------------------------------------------------
200
- // Move folders inside the specified folder.
201
- function moveFolders({ folder_id, folder_ids }) {
202
- return axiosInstance({
203
- method: "put",
204
- url: "/folders/" + folder_id + "",
205
- data: folder_ids
206
- });
207
- }
208
- //--------------------------------------------------------------------------
209
- // Updates the folder details.
210
- function updateFolder({ folder_id, folder_name }) {
211
- return axiosInstance({
212
- method: "patch",
213
- url: "/folders/" + folder_id + "",
214
- data: {
215
- folder_name: folder_name
216
- }
217
- });
218
- }
219
- //--------------------------------------------------------------------------
220
- // Deletes the requested folder. The target folder must be empty.
221
- function deleteFolder({ folder_id }) {
222
- return axiosInstance({
223
- method: "delete",
224
- url: "/folders/" + folder_id + ""
225
- });
226
- }
227
- function listFolderAccesses({ folder_id }) {
228
- return axiosInstance({
229
- method: "get",
230
- url: "/folders/" + folder_id + "/access"
231
- });
232
- }
233
- //--------------------------------------------------------------------------
234
- // Grants member access to the targeted folder.
235
- function grantMemberAccessToFolder({ folder_id, member_type, member_id, access }) {
236
- return axiosInstance({
237
- method: "put",
238
- url: "/folders/" + folder_id + "/access/" + member_type + "/" + member_id + "",
239
- data: {
240
- access: access
241
- }
242
- });
243
- }
244
- //--------------------------------------------------------------------------
245
- // Revokes member access to a target folder.
246
- function revokeMemberAccessToFolder({ folder_id, member_type, member_id }) {
247
- return axiosInstance({
248
- method: "delete",
249
- url: "/folders/" + folder_id + "/access/" + member_type + "/" + member_id + ""
250
- });
251
- }
252
- function createSubfolder({ folder_id, folder_name, subfolders }) {
253
- return axiosInstance({
254
- method: "post",
255
- url: "/folders/" + folder_id + "/folders",
256
- data: {
257
- folder_name: folder_name,
258
- subfolders: subfolders
259
- }
260
- });
261
- }
262
- function listFolderSubFolders({ folder_id, depth = 0 }) {
263
- return axiosInstance({
264
- method: "get",
265
- url: "/folders/" + folder_id + "/folders",
266
- params: {
267
- depth: depth
268
- }
269
- });
270
- }
271
- function uploadSourceFiles({ folder_id, body }) {
272
- return axiosInstance({
273
- method: "post",
274
- url: "/folders/" + folder_id + "/source-files",
275
- headers: {
276
- "Content-Type": "multipart/form-data"
277
- },
278
- data: body
279
- });
280
- }
281
- function getSourceFilesInFolder({ folder_id, offset = 0, limit = 10 }) {
282
- return axiosInstance({
283
- method: "get",
284
- url: "/folders/" + folder_id + "/source-files",
285
- params: {
286
- offset: offset,
287
- limit: limit
288
- }
289
- });
290
- }
291
- //--------------------------------------------------------------------------
292
- // Move source files inside the specified folder.
293
- function moveSourceFiles({ folder_id, source_file_ids }) {
294
- return axiosInstance({
295
- method: "put",
296
- url: "/folders/" + folder_id + "/source-files",
297
- data: source_file_ids
298
- });
299
- }
300
- function getUploadTasksInFolder({ folder_id, offset = 0, limit = 10 }) {
301
- return axiosInstance({
302
- method: "get",
303
- url: "/folders/" + folder_id + "/upload-tasks",
304
- params: {
305
- offset: offset,
306
- limit: limit
307
- }
308
- });
309
- }
310
- function getFolderAssets({ folder_id }) {
311
- return axiosInstance({
312
- method: "get",
313
- url: "/folders/" + folder_id + "/assets"
314
- });
315
- }
316
- //--------------------------------------------------------------------------
317
- // Move assets inside the specified folder.
318
- function moveAssets({ folder_id, asset_ids }) {
319
- return axiosInstance({
320
- method: "put",
321
- url: "/folders/" + folder_id + "/assets",
322
- data: asset_ids
323
- });
324
- }
325
- function createAsset({ folder_id, asset_container_creatable, body }) {
326
- return axiosInstance({
327
- method: "post",
328
- url: "/folders/" + folder_id + "/assets/" + asset_container_creatable + "",
329
- data: body
330
- });
331
- }
332
- function getSessionsInFolder({ folder_id }) {
333
- return axiosInstance({
334
- method: "get",
335
- url: "/folders/" + folder_id + "/sessions"
336
- });
337
- }
338
- function listSourceFiles({ offset = 0, limit = 10 }) {
339
- return axiosInstance({
340
- method: "get",
341
- url: "/source-files",
342
- params: {
343
- offset: offset,
344
- limit: limit
345
- }
346
- });
347
- }
348
- //--------------------------------------------------------------------------
349
- // Deletes the target source files. Deleting a source file is permanent.
350
- function deleteSourceFiles({ source_file_ids }) {
351
- return axiosInstance({
352
- method: "delete",
353
- url: "/source-files",
354
- data: source_file_ids
355
- });
356
- }
357
- //--------------------------------------------------------------------------
358
- // Downloads the target source file.
359
- function downloadSourceFile({ source_file_id }) {
360
- return axiosInstance({
361
- method: "get",
362
- url: "/source-files/" + source_file_id + "",
363
- responseType: "arraybuffer"
364
- });
365
- }
366
- function getSourceFileDetails({ source_file_id }) {
367
- return axiosInstance({
368
- method: "get",
369
- url: "/source-files/" + source_file_id + "/details"
370
- });
371
- }
372
- //--------------------------------------------------------------------------
373
- // Updates details for a specific source file.
374
- function updateSourceFileDetails({ source_file_id, source_file_name }) {
375
- return axiosInstance({
376
- method: "patch",
377
- url: "/source-files/" + source_file_id + "/details",
378
- data: {
379
- source_file_name: source_file_name
380
- }
381
- });
382
- }
383
- function getSourceFileAssets({ source_file_id }) {
384
- return axiosInstance({
385
- method: "get",
386
- url: "/source-files/" + source_file_id + "/assets"
387
- });
388
- }
389
- function getUploadTask({ upload_task_id }) {
390
- return axiosInstance({
391
- method: "get",
392
- url: "/upload-tasks/" + upload_task_id + ""
393
- });
394
- }
395
- function listAssets({ offset = 0, limit = 10 }) {
396
- return axiosInstance({
397
- method: "get",
398
- url: "/assets",
399
- params: {
400
- offset: offset,
401
- limit: limit
402
- }
403
- });
404
- }
405
- //--------------------------------------------------------------------------
406
- // Batch delete assets. You **MUST NOT** reference assets.
407
- function deleteAssets({ asset_ids }) {
408
- return axiosInstance({
409
- method: "delete",
410
- url: "/assets",
411
- data: asset_ids
412
- });
413
- }
414
- //--------------------------------------------------------------------------
415
- // Deletes the asset.
416
- function deleteAsset({ asset_container, asset_id }) {
417
- return axiosInstance({
418
- method: "delete",
419
- url: "/assets/" + asset_container + "/" + asset_id + ""
420
- });
421
- }
422
- function getAssetSourceFile({ asset_container, asset_id }) {
423
- return axiosInstance({
424
- method: "get",
425
- url: "/assets/" + asset_container + "/" + asset_id + "/source-file"
426
- });
427
- }
428
- function getAssetDetails({ asset_container, asset_id }) {
429
- return axiosInstance({
430
- method: "get",
431
- url: "/assets/" + asset_container + "/" + asset_id + "/details"
432
- });
433
- }
434
- function getAssetFolder({ asset_container, asset_id }) {
435
- return axiosInstance({
436
- method: "get",
437
- url: "/assets/" + asset_container + "/" + asset_id + "/folder"
438
- });
439
- }
440
- function getAssetDependencies({ asset_container, asset_id, format = 'flat', depth = 'all', filter }) {
441
- return axiosInstance({
442
- method: "get",
443
- url: "/assets/" + asset_container + "/" + asset_id + "/dependencies",
444
- params: {
445
- format: format,
446
- depth: depth,
447
- filter: filter
448
- }
449
- });
450
- }
451
- function getAssetReferences({ asset_container, asset_id }) {
452
- return axiosInstance({
453
- method: "get",
454
- url: "/assets/" + asset_container + "/" + asset_id + "/references"
455
- });
456
- }
457
- function getAssetDescription({ asset_container, asset_id }) {
458
- return axiosInstance({
459
- method: "get",
460
- url: "/assets/" + asset_container + "/" + asset_id + "/description"
461
- });
462
- }
463
- //--------------------------------------------------------------------------
464
- // Updates asset description. Supports only updating name.
465
- function updateAssetDescription({ asset_container, asset_id, name }) {
466
- return axiosInstance({
467
- method: "patch",
468
- url: "/assets/" + asset_container + "/" + asset_id + "/description",
469
- data: {
470
- name: name
471
- }
472
- });
473
- }
474
- //--------------------------------------------------------------------------
475
- // Gets the asset payload from the specified asset.
476
- function getAssetPayload({ asset_container_with_payload, asset_id }) {
477
- return axiosInstance({
478
- method: "get",
479
- url: "/assets/" + asset_container_with_payload + "/" + asset_id + "/payload",
480
- responseType: "arraybuffer"
481
- });
482
- }
483
- function getAssetHistory({ asset_container, asset_id }) {
484
- return axiosInstance({
485
- method: "get",
486
- url: "/assets/" + asset_container + "/" + asset_id + "/history"
487
- });
488
- }
489
- function getAssetMeta({ asset_container, asset_id }) {
490
- return axiosInstance({
491
- method: "get",
492
- url: "/assets/" + asset_container + "/" + asset_id + "/meta"
493
- });
494
- }
495
- //--------------------------------------------------------------------------
496
- // Gets the code of the specified asset.
497
- function getAssetCode({ asset_container_with_code, asset_id }) {
498
- return axiosInstance({
499
- method: "get",
500
- url: "/assets/" + asset_container_with_code + "/" + asset_id + "/code"
501
- });
502
- }
503
- //--------------------------------------------------------------------------
504
- // Gets the asset thumbnail from the specified asset.
505
- function getAssetThumbnail({ asset_container, asset_id, size, default_url }) {
506
- return axiosInstance({
507
- method: "get",
508
- url: "/assets/" + asset_container + "/" + asset_id + "/thumbnail",
509
- params: {
510
- size: size,
511
- default_url: default_url
512
- }
513
- });
514
- }
515
- //--------------------------------------------------------------------------
516
- // Assigns a thumbnail to the specified asset.
517
- function setAssetThumbnail({ asset_container, asset_id, body }, contentType) {
518
- return axiosInstance({
519
- method: "put",
520
- url: "/assets/" + asset_container + "/" + asset_id + "/thumbnail",
521
- headers: {
522
- "Content-Type": contentType
523
- },
524
- data: body
525
- });
526
- }
527
- function getAssetCustomTypes({ asset_container_with_custom_types, asset_id }) {
528
- return axiosInstance({
529
- method: "get",
530
- url: "/assets/" + asset_container_with_custom_types + "/" + asset_id + "/custom-types"
531
- });
532
- }
533
- //--------------------------------------------------------------------------
534
- // Packages and downloads the target asset.
535
- function packageAsset({ asset_container, asset_id }) {
536
- return axiosInstance({
537
- method: "get",
538
- url: "/assets/" + asset_container + "/" + asset_id + "/package",
539
- responseType: "arraybuffer"
540
- });
541
- }
542
- //--------------------------------------------------------------------------
543
- // Downloads an asset payload in a given format. Only mesh is supported for the moment. This endpoint requires special export permission.
544
- function exportAsset({ asset_container_exportable, asset_id, format, scale = 1 }) {
545
- return axiosInstance({
546
- method: "get",
547
- url: "/assets/" + asset_container_exportable + "/" + asset_id + "/exports/" + format + "",
548
- responseType: "arraybuffer",
549
- params: {
550
- scale: scale
551
- }
552
- });
553
- }
554
- function getSceneSessions({ scene_id }) {
555
- return axiosInstance({
556
- method: "get",
557
- url: "/assets/scenes/" + scene_id + "/sessions"
558
- });
559
- }
560
- function getSceneAABB({ scene_id }) {
561
- return axiosInstance({
562
- method: "get",
563
- url: "/assets/scenes/" + scene_id + "/aabb"
564
- });
565
- }
566
- function getEntity({ scene_id, entity_id, compute_global_transform = false }) {
567
- return axiosInstance({
568
- method: "get",
569
- url: "/assets/scenes/" + scene_id + "/entities/" + entity_id + "",
570
- params: {
571
- compute_global_transform: compute_global_transform
572
- }
573
- });
574
- }
575
- function createSession({ scene_id }) {
576
- return axiosInstance({
577
- method: "post",
578
- url: "/sessions",
579
- data: {
580
- scene_id: scene_id
581
- }
582
- });
583
- }
584
- function getSession({ session_id }) {
585
- return axiosInstance({
586
- method: "get",
587
- url: "/sessions/" + session_id + ""
588
- });
589
- }
590
- //--------------------------------------------------------------------------
591
- // Forcefully terminates a session.
592
- function killSession({ session_id }) {
593
- return axiosInstance({
594
- method: "delete",
595
- url: "/sessions/" + session_id + ""
596
- });
597
- }
598
- function joinSession({ session_id }) {
599
- return axiosInstance({
600
- method: "post",
601
- url: "/sessions/" + session_id + "/clients"
602
- });
603
- }
604
- //--------------------------------------------------------------------------
605
- // Kick a client from a running session.
606
- function kickClientFromSession({ session_id, client_id }) {
607
- return axiosInstance({
608
- method: "delete",
609
- url: "/sessions/" + session_id + "/clients/" + client_id + ""
610
- });
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
+ //--------------------------------------------------------------------------
18
+ const axiosInstance = axios.create({
19
+ baseURL: "https://api.3dverse.com/app/v1",
20
+ operationId: "3dverse"
21
+ });
22
+ //------------------------------------------------------------------------------
23
+ function setBaseURL(baseURL) {
24
+ axiosInstance.defaults.baseURL = baseURL;
25
+ }
26
+ function listUsers({ offset = 0, limit = 10 }) {
27
+ return axiosInstance({
28
+ operationId: "listUsers",
29
+ method: "get",
30
+ url: "/users",
31
+ params: {
32
+ offset: offset,
33
+ limit: limit
34
+ }
35
+ });
36
+ }
37
+ function registerUser({ username }) {
38
+ return axiosInstance({
39
+ operationId: "registerUser",
40
+ method: "post",
41
+ url: "/users",
42
+ data: {
43
+ username: username
44
+ }
45
+ });
46
+ }
47
+ function getUser({ user_id }) {
48
+ return axiosInstance({
49
+ operationId: "getUser",
50
+ method: "get",
51
+ url: "/users/" + user_id + ""
52
+ });
53
+ }
54
+ //--------------------------------------------------------------------------
55
+ // Updates the details of the target user.
56
+ function updateUser({ user_id, username }) {
57
+ return axiosInstance({
58
+ operationId: "updateUser",
59
+ method: "patch",
60
+ url: "/users/" + user_id + "",
61
+ data: {
62
+ username: username
63
+ }
64
+ });
65
+ }
66
+ function deleteUser({ user_id }) {
67
+ return axiosInstance({
68
+ operationId: "deleteUser",
69
+ method: "delete",
70
+ url: "/users/" + user_id + ""
71
+ });
72
+ }
73
+ function generateUserToken({ user_id, scope, ttl = '1h' }) {
74
+ return axiosInstance({
75
+ operationId: "generateUserToken",
76
+ method: "post",
77
+ url: "/users/" + user_id + "/tokens",
78
+ data: {
79
+ scope: scope,
80
+ ttl: ttl
81
+ }
82
+ });
83
+ }
84
+ function getUserGroups({ user_id }) {
85
+ return axiosInstance({
86
+ operationId: "getUserGroups",
87
+ method: "get",
88
+ url: "/users/" + user_id + "/groups"
89
+ });
90
+ }
91
+ function getUserUploadTasks({ user_id, offset = 0, limit = 10 }) {
92
+ return axiosInstance({
93
+ operationId: "getUserUploadTasks",
94
+ method: "get",
95
+ url: "/users/" + user_id + "/upload-tasks",
96
+ params: {
97
+ offset: offset,
98
+ limit: limit
99
+ }
100
+ });
101
+ }
102
+ function createGroup({ group_name, group_description, members }) {
103
+ return axiosInstance({
104
+ operationId: "createGroup",
105
+ method: "post",
106
+ url: "/groups",
107
+ data: {
108
+ group_name: group_name,
109
+ group_description: group_description,
110
+ members: members
111
+ }
112
+ });
113
+ }
114
+ function getGroup({ group_id }) {
115
+ return axiosInstance({
116
+ operationId: "getGroup",
117
+ method: "get",
118
+ url: "/groups/" + group_id + ""
119
+ });
120
+ }
121
+ //--------------------------------------------------------------------------
122
+ // Updates a group details.
123
+ function updateGroupDescription({ group_id, group_name, group_description }) {
124
+ return axiosInstance({
125
+ operationId: "updateGroupDescription",
126
+ method: "patch",
127
+ url: "/groups/" + group_id + "",
128
+ data: {
129
+ group_name: group_name,
130
+ group_description: group_description
131
+ }
132
+ });
133
+ }
134
+ //--------------------------------------------------------------------------
135
+ // Deletes a group and all its access rights.
136
+ function deleteGroup({ group_id }) {
137
+ return axiosInstance({
138
+ operationId: "deleteGroup",
139
+ method: "delete",
140
+ url: "/groups/" + group_id + ""
141
+ });
142
+ }
143
+ //--------------------------------------------------------------------------
144
+ // Grants member access to the group.
145
+ function grantMemberAccessToGroup({ group_id, member_type, member_id, group_access, folder_access }) {
146
+ return axiosInstance({
147
+ operationId: "grantMemberAccessToGroup",
148
+ method: "put",
149
+ url: "/groups/" + group_id + "/members/" + member_type + "/" + member_id + "",
150
+ data: {
151
+ group_access: group_access,
152
+ folder_access: folder_access
153
+ }
154
+ });
155
+ }
156
+ //--------------------------------------------------------------------------
157
+ // Revoke requested user access to group.
158
+ function revokeMemberAccessToGroup({ group_id, member_type, member_id }) {
159
+ return axiosInstance({
160
+ operationId: "revokeMemberAccessToGroup",
161
+ method: "delete",
162
+ url: "/groups/" + group_id + "/members/" + member_type + "/" + member_id + ""
163
+ });
164
+ }
165
+ function listFolders({ offset = 0, limit = 10 }) {
166
+ return axiosInstance({
167
+ operationId: "listFolders",
168
+ method: "get",
169
+ url: "/folders",
170
+ params: {
171
+ offset: offset,
172
+ limit: limit
173
+ }
174
+ });
175
+ }
176
+ function createFolder({ folder_name, subfolders }) {
177
+ return axiosInstance({
178
+ operationId: "createFolder",
179
+ method: "post",
180
+ url: "/folders",
181
+ data: {
182
+ folder_name: folder_name,
183
+ subfolders: subfolders
184
+ }
185
+ });
186
+ }
187
+ function getFolderInfo({ folder_id }) {
188
+ return axiosInstance({
189
+ operationId: "getFolderInfo",
190
+ method: "get",
191
+ url: "/folders/" + folder_id + ""
192
+ });
193
+ }
194
+ //--------------------------------------------------------------------------
195
+ // Move folders inside the specified folder.
196
+ function moveFolders({ folder_id, folderIds }) {
197
+ return axiosInstance({
198
+ operationId: "moveFolders",
199
+ method: "put",
200
+ url: "/folders/" + folder_id + "",
201
+ data: folderIds
202
+ });
203
+ }
204
+ //--------------------------------------------------------------------------
205
+ // Updates the folder details.
206
+ function updateFolder({ folder_id, folder_name }) {
207
+ return axiosInstance({
208
+ operationId: "updateFolder",
209
+ method: "patch",
210
+ url: "/folders/" + folder_id + "",
211
+ data: {
212
+ folder_name: folder_name
213
+ }
214
+ });
215
+ }
216
+ //--------------------------------------------------------------------------
217
+ // Deletes the requested folder. The target folder must be empty.
218
+ function deleteFolder({ folder_id }) {
219
+ return axiosInstance({
220
+ operationId: "deleteFolder",
221
+ method: "delete",
222
+ url: "/folders/" + folder_id + ""
223
+ });
224
+ }
225
+ function listFolderAccesses({ folder_id }) {
226
+ return axiosInstance({
227
+ operationId: "listFolderAccesses",
228
+ method: "get",
229
+ url: "/folders/" + folder_id + "/access"
230
+ });
231
+ }
232
+ //--------------------------------------------------------------------------
233
+ // Grants member access to the targeted folder.
234
+ function grantMemberAccessToFolder({ folder_id, member_type, member_id, access }) {
235
+ return axiosInstance({
236
+ operationId: "grantMemberAccessToFolder",
237
+ method: "put",
238
+ url: "/folders/" + folder_id + "/access/" + member_type + "/" + member_id + "",
239
+ data: {
240
+ access: access
241
+ }
242
+ });
243
+ }
244
+ //--------------------------------------------------------------------------
245
+ // Revokes member access to a target folder.
246
+ function revokeMemberAccessToFolder({ folder_id, member_type, member_id }) {
247
+ return axiosInstance({
248
+ operationId: "revokeMemberAccessToFolder",
249
+ method: "delete",
250
+ url: "/folders/" + folder_id + "/access/" + member_type + "/" + member_id + ""
251
+ });
252
+ }
253
+ function createSubfolder({ folder_id, folder_name, subfolders }) {
254
+ return axiosInstance({
255
+ operationId: "createSubfolder",
256
+ method: "post",
257
+ url: "/folders/" + folder_id + "/folders",
258
+ data: {
259
+ folder_name: folder_name,
260
+ subfolders: subfolders
261
+ }
262
+ });
263
+ }
264
+ function listFolderSubFolders({ folder_id, depth = 0 }) {
265
+ return axiosInstance({
266
+ operationId: "listFolderSubFolders",
267
+ method: "get",
268
+ url: "/folders/" + folder_id + "/folders",
269
+ params: {
270
+ depth: depth
271
+ }
272
+ });
273
+ }
274
+ function uploadSourceFiles({ folder_id, body }) {
275
+ return axiosInstance({
276
+ operationId: "uploadSourceFiles",
277
+ method: "post",
278
+ url: "/folders/" + folder_id + "/source-files",
279
+ headers: {
280
+ "Content-Type": "multipart/form-data"
281
+ },
282
+ data: body
283
+ });
284
+ }
285
+ function getSourceFilesInFolder({ folder_id, offset = 0, limit = 10 }) {
286
+ return axiosInstance({
287
+ operationId: "getSourceFilesInFolder",
288
+ method: "get",
289
+ url: "/folders/" + folder_id + "/source-files",
290
+ params: {
291
+ offset: offset,
292
+ limit: limit
293
+ }
294
+ });
295
+ }
296
+ //--------------------------------------------------------------------------
297
+ // Move source files inside the specified folder.
298
+ function moveSourceFiles({ folder_id, sourceFileIds }) {
299
+ return axiosInstance({
300
+ operationId: "moveSourceFiles",
301
+ method: "put",
302
+ url: "/folders/" + folder_id + "/source-files",
303
+ data: sourceFileIds
304
+ });
305
+ }
306
+ function getUploadTasksInFolder({ folder_id, offset = 0, limit = 10 }) {
307
+ return axiosInstance({
308
+ operationId: "getUploadTasksInFolder",
309
+ method: "get",
310
+ url: "/folders/" + folder_id + "/upload-tasks",
311
+ params: {
312
+ offset: offset,
313
+ limit: limit
314
+ }
315
+ });
316
+ }
317
+ function getFolderAssets({ folder_id, offset = 0, limit = 10 }) {
318
+ return axiosInstance({
319
+ operationId: "getFolderAssets",
320
+ method: "get",
321
+ url: "/folders/" + folder_id + "/assets",
322
+ params: {
323
+ offset: offset,
324
+ limit: limit
325
+ }
326
+ });
327
+ }
328
+ //--------------------------------------------------------------------------
329
+ // Move assets inside the specified folder.
330
+ function moveAssets({ folder_id, assetIds }) {
331
+ return axiosInstance({
332
+ operationId: "moveAssets",
333
+ method: "put",
334
+ url: "/folders/" + folder_id + "/assets",
335
+ data: assetIds
336
+ });
337
+ }
338
+ function createAsset({ folder_id, asset_container_creatable, assetCreationOptions }) {
339
+ return axiosInstance({
340
+ operationId: "createAsset",
341
+ method: "post",
342
+ url: "/folders/" + folder_id + "/assets/" + asset_container_creatable + "",
343
+ data: assetCreationOptions
344
+ });
345
+ }
346
+ function getSessionsInFolder({ folder_id }) {
347
+ return axiosInstance({
348
+ operationId: "getSessionsInFolder",
349
+ method: "get",
350
+ url: "/folders/" + folder_id + "/sessions"
351
+ });
352
+ }
353
+ function listSourceFiles({ offset = 0, limit = 10 }) {
354
+ return axiosInstance({
355
+ operationId: "listSourceFiles",
356
+ method: "get",
357
+ url: "/source-files",
358
+ params: {
359
+ offset: offset,
360
+ limit: limit
361
+ }
362
+ });
363
+ }
364
+ //--------------------------------------------------------------------------
365
+ // Deletes the target source files. Deleting a source file is permanent.
366
+ function deleteSourceFiles({ sourceFileIds }) {
367
+ return axiosInstance({
368
+ operationId: "deleteSourceFiles",
369
+ method: "delete",
370
+ url: "/source-files",
371
+ data: sourceFileIds
372
+ });
373
+ }
374
+ //--------------------------------------------------------------------------
375
+ // Downloads the target source file.
376
+ function downloadSourceFile({ source_file_id }) {
377
+ return axiosInstance({
378
+ operationId: "downloadSourceFile",
379
+ method: "get",
380
+ url: "/source-files/" + source_file_id + "",
381
+ responseType: "arraybuffer"
382
+ });
383
+ }
384
+ function getSourceFileDetails({ source_file_id }) {
385
+ return axiosInstance({
386
+ operationId: "getSourceFileDetails",
387
+ method: "get",
388
+ url: "/source-files/" + source_file_id + "/details"
389
+ });
390
+ }
391
+ //--------------------------------------------------------------------------
392
+ // Updates details for a specific source file.
393
+ function updateSourceFileDetails({ source_file_id, source_file_name }) {
394
+ return axiosInstance({
395
+ operationId: "updateSourceFileDetails",
396
+ method: "patch",
397
+ url: "/source-files/" + source_file_id + "/details",
398
+ data: {
399
+ source_file_name: source_file_name
400
+ }
401
+ });
402
+ }
403
+ function getSourceFileAssets({ source_file_id }) {
404
+ return axiosInstance({
405
+ operationId: "getSourceFileAssets",
406
+ method: "get",
407
+ url: "/source-files/" + source_file_id + "/assets"
408
+ });
409
+ }
410
+ function getUploadTask({ upload_task_id }) {
411
+ return axiosInstance({
412
+ operationId: "getUploadTask",
413
+ method: "get",
414
+ url: "/upload-tasks/" + upload_task_id + ""
415
+ });
416
+ }
417
+ function listAssets({ offset = 0, limit = 10 }) {
418
+ return axiosInstance({
419
+ operationId: "listAssets",
420
+ method: "get",
421
+ url: "/assets",
422
+ params: {
423
+ offset: offset,
424
+ limit: limit
425
+ }
426
+ });
427
+ }
428
+ //--------------------------------------------------------------------------
429
+ // Batch delete assets. You **MUST NOT** reference assets.
430
+ function deleteAssets({ assetIds }) {
431
+ return axiosInstance({
432
+ operationId: "deleteAssets",
433
+ method: "delete",
434
+ url: "/assets",
435
+ data: assetIds
436
+ });
437
+ }
438
+ //--------------------------------------------------------------------------
439
+ // Deletes the asset.
440
+ function deleteAsset({ asset_container, asset_id }) {
441
+ return axiosInstance({
442
+ operationId: "deleteAsset",
443
+ method: "delete",
444
+ url: "/assets/" + asset_container + "/" + asset_id + ""
445
+ });
446
+ }
447
+ function getAssetSourceFile({ asset_container, asset_id }) {
448
+ return axiosInstance({
449
+ operationId: "getAssetSourceFile",
450
+ method: "get",
451
+ url: "/assets/" + asset_container + "/" + asset_id + "/source-file"
452
+ });
453
+ }
454
+ function getAssetDetails({ asset_container, asset_id }) {
455
+ return axiosInstance({
456
+ operationId: "getAssetDetails",
457
+ method: "get",
458
+ url: "/assets/" + asset_container + "/" + asset_id + "/details"
459
+ });
460
+ }
461
+ function getAssetFolder({ asset_container, asset_id }) {
462
+ return axiosInstance({
463
+ operationId: "getAssetFolder",
464
+ method: "get",
465
+ url: "/assets/" + asset_container + "/" + asset_id + "/folder"
466
+ });
467
+ }
468
+ function getAssetDependencies({ asset_container, asset_id, format = 'flat', depth = 'all', filter }) {
469
+ return axiosInstance({
470
+ operationId: "getAssetDependencies",
471
+ method: "get",
472
+ url: "/assets/" + asset_container + "/" + asset_id + "/dependencies",
473
+ params: {
474
+ format: format,
475
+ depth: depth,
476
+ filter: filter
477
+ }
478
+ });
479
+ }
480
+ function getAssetReferences({ asset_container, asset_id }) {
481
+ return axiosInstance({
482
+ operationId: "getAssetReferences",
483
+ method: "get",
484
+ url: "/assets/" + asset_container + "/" + asset_id + "/references"
485
+ });
486
+ }
487
+ function getAssetDescription({ asset_container, asset_id }) {
488
+ return axiosInstance({
489
+ operationId: "getAssetDescription",
490
+ method: "get",
491
+ url: "/assets/" + asset_container + "/" + asset_id + "/description"
492
+ });
493
+ }
494
+ function updateAssetDescription({ asset_container, asset_id, assetDescription }) {
495
+ return axiosInstance({
496
+ operationId: "updateAssetDescription",
497
+ method: "patch",
498
+ url: "/assets/" + asset_container + "/" + asset_id + "/description",
499
+ data: assetDescription
500
+ });
501
+ }
502
+ //--------------------------------------------------------------------------
503
+ // Gets the asset payload from the specified asset.
504
+ function getAssetPayload({ asset_container_with_payload, asset_id }) {
505
+ return axiosInstance({
506
+ operationId: "getAssetPayload",
507
+ method: "get",
508
+ url: "/assets/" + asset_container_with_payload + "/" + asset_id + "/payload",
509
+ responseType: "arraybuffer"
510
+ });
511
+ }
512
+ function getAssetHistory({ asset_container, asset_id }) {
513
+ return axiosInstance({
514
+ operationId: "getAssetHistory",
515
+ method: "get",
516
+ url: "/assets/" + asset_container + "/" + asset_id + "/history"
517
+ });
518
+ }
519
+ function getAssetMeta({ asset_container, asset_id }) {
520
+ return axiosInstance({
521
+ operationId: "getAssetMeta",
522
+ method: "get",
523
+ url: "/assets/" + asset_container + "/" + asset_id + "/meta"
524
+ });
525
+ }
526
+ //--------------------------------------------------------------------------
527
+ // Gets the code of the specified asset.
528
+ function getAssetCode({ asset_container_with_code, asset_id }) {
529
+ return axiosInstance({
530
+ operationId: "getAssetCode",
531
+ method: "get",
532
+ url: "/assets/" + asset_container_with_code + "/" + asset_id + "/code"
533
+ });
534
+ }
535
+ //--------------------------------------------------------------------------
536
+ // Gets the asset thumbnail from the specified asset.
537
+ function getAssetThumbnail({ asset_container, asset_id, size, default_url }) {
538
+ return axiosInstance({
539
+ operationId: "getAssetThumbnail",
540
+ method: "get",
541
+ url: "/assets/" + asset_container + "/" + asset_id + "/thumbnail",
542
+ params: {
543
+ size: size,
544
+ default_url: default_url
545
+ }
546
+ });
547
+ }
548
+ //--------------------------------------------------------------------------
549
+ // Assigns a thumbnail to the specified asset.
550
+ function setAssetThumbnail({ asset_container, asset_id, body }, contentType) {
551
+ return axiosInstance({
552
+ operationId: "setAssetThumbnail",
553
+ method: "put",
554
+ url: "/assets/" + asset_container + "/" + asset_id + "/thumbnail",
555
+ headers: {
556
+ "Content-Type": contentType
557
+ },
558
+ data: body
559
+ });
560
+ }
561
+ function getAssetCustomTypes({ asset_container_with_custom_types, asset_id }) {
562
+ return axiosInstance({
563
+ operationId: "getAssetCustomTypes",
564
+ method: "get",
565
+ url: "/assets/" + asset_container_with_custom_types + "/" + asset_id + "/custom-types"
566
+ });
567
+ }
568
+ //--------------------------------------------------------------------------
569
+ // Packages and downloads the target asset.
570
+ function packageAsset({ asset_container, asset_id }) {
571
+ return axiosInstance({
572
+ operationId: "packageAsset",
573
+ method: "get",
574
+ url: "/assets/" + asset_container + "/" + asset_id + "/package",
575
+ responseType: "arraybuffer"
576
+ });
577
+ }
578
+ //--------------------------------------------------------------------------
579
+ // Downloads an asset payload in a given format. Only mesh is supported for the moment. This endpoint requires special export permission.
580
+ function exportAsset({ asset_container_exportable, asset_id, format, scale = 1 }) {
581
+ return axiosInstance({
582
+ operationId: "exportAsset",
583
+ method: "get",
584
+ url: "/assets/" + asset_container_exportable + "/" + asset_id + "/exports/" + format + "",
585
+ responseType: "arraybuffer",
586
+ params: {
587
+ scale: scale
588
+ }
589
+ });
590
+ }
591
+ function getSceneSessions({ scene_id }) {
592
+ return axiosInstance({
593
+ operationId: "getSceneSessions",
594
+ method: "get",
595
+ url: "/assets/scenes/" + scene_id + "/sessions"
596
+ });
597
+ }
598
+ function getSceneAABB({ scene_id }) {
599
+ return axiosInstance({
600
+ operationId: "getSceneAABB",
601
+ method: "get",
602
+ url: "/assets/scenes/" + scene_id + "/aabb"
603
+ });
604
+ }
605
+ function getEntity({ scene_id, entity_id, compute_global_transform = false }) {
606
+ return axiosInstance({
607
+ operationId: "getEntity",
608
+ method: "get",
609
+ url: "/assets/scenes/" + scene_id + "/entities/" + entity_id + "",
610
+ params: {
611
+ compute_global_transform: compute_global_transform
612
+ }
613
+ });
614
+ }
615
+ function updateEntity({ scene_id, entity_id, entity }) {
616
+ return axiosInstance({
617
+ operationId: "updateEntity",
618
+ method: "patch",
619
+ url: "/assets/scenes/" + scene_id + "/entities/" + entity_id + "",
620
+ data: entity
621
+ });
622
+ }
623
+ //--------------------------------------------------------------------------
624
+ // Delete a specific entity from a scene
625
+ function deleteEntity({ scene_id, entity_id }) {
626
+ return axiosInstance({
627
+ operationId: "deleteEntity",
628
+ method: "delete",
629
+ url: "/assets/scenes/" + scene_id + "/entities/" + entity_id + ""
630
+ });
631
+ }
632
+ function createSession({ scene_id }) {
633
+ return axiosInstance({
634
+ operationId: "createSession",
635
+ method: "post",
636
+ url: "/sessions",
637
+ data: {
638
+ scene_id: scene_id
639
+ }
640
+ });
641
+ }
642
+ function getSession({ session_id }) {
643
+ return axiosInstance({
644
+ operationId: "getSession",
645
+ method: "get",
646
+ url: "/sessions/" + session_id + ""
647
+ });
648
+ }
649
+ //--------------------------------------------------------------------------
650
+ // Forcefully terminates a session.
651
+ function killSession({ session_id }) {
652
+ return axiosInstance({
653
+ operationId: "killSession",
654
+ method: "delete",
655
+ url: "/sessions/" + session_id + ""
656
+ });
657
+ }
658
+ function joinSession({ session_id }) {
659
+ return axiosInstance({
660
+ operationId: "joinSession",
661
+ method: "post",
662
+ url: "/sessions/" + session_id + "/clients"
663
+ });
664
+ }
665
+ //--------------------------------------------------------------------------
666
+ // Kick a client from a running session.
667
+ function kickClientFromSession({ session_id, client_id }) {
668
+ return axiosInstance({
669
+ operationId: "kickClientFromSession",
670
+ method: "delete",
671
+ url: "/sessions/" + session_id + "/clients/" + client_id + ""
672
+ });
673
+ }
674
+ function joinSessionAsGuest() {
675
+ return axiosInstance({
676
+ operationId: "joinSessionAsGuest",
677
+ method: "post",
678
+ url: "/sessions/guests"
679
+ });
680
+ }
681
+ function generateGuestToken({ session_id }) {
682
+ return axiosInstance({
683
+ operationId: "generateGuestToken",
684
+ method: "post",
685
+ url: "/sessions/" + session_id + "/guests"
686
+ });
611
687
  }
612
688
 
613
- //--------------------------------------------------------------------------
614
- //------------------------------------------------------------------------------
615
- function setApiKey(apiKey) {
616
- axiosInstance.defaults.headers.common['api_key'] = apiKey;
617
- delete axiosInstance.defaults.headers.common['user_token'];
618
- }
619
- //------------------------------------------------------------------------------
620
- function setUserToken(userToken) {
621
- axiosInstance.defaults.headers.common['user_token'] = userToken;
622
- delete axiosInstance.defaults.headers.common['api_key'];
623
- }
624
- function setBaseUrl(url) {
625
- axiosInstance.defaults.baseURL = url;
626
- }
689
+ //------------------------------------------------------------------------------
690
+ function setApiKey(apiKey) {
691
+ axiosInstance.defaults.headers.common['api_key'] = apiKey;
692
+ delete axiosInstance.defaults.headers.common['user_token'];
693
+ }
694
+ //------------------------------------------------------------------------------
695
+ function setUserToken(userToken) {
696
+ axiosInstance.defaults.headers.common['user_token'] = userToken;
697
+ delete axiosInstance.defaults.headers.common['api_key'];
698
+ }
699
+ //------------------------------------------------------------------------------
700
+ function setBaseUrl(url) {
701
+ axiosInstance.defaults.baseURL = url;
702
+ }
703
+ //------------------------------------------------------------------------------
704
+ class ServiceError extends Error {
705
+ errorCode;
706
+ httpCode;
707
+ message;
708
+ //--------------------------------------------------------------------------
709
+ constructor(errorCode, httpCode, message) {
710
+ super();
711
+ this.errorCode = errorCode;
712
+ this.httpCode = httpCode;
713
+ this.message = message;
714
+ }
715
+ }
716
+ //------------------------------------------------------------------------------
717
+ class ApiError extends ServiceError {
718
+ serviceError;
719
+ constructor(errorCode, status, message, serviceError) {
720
+ super(errorCode, status, message);
721
+ this.serviceError = serviceError;
722
+ }
723
+ }
724
+ //------------------------------------------------------------------------------
725
+ class UnexpectedServiceError extends ServiceError {
726
+ unexpectedError;
727
+ constructor(status, unexpectedError) {
728
+ super(0, status, 'Unexpected service error error');
729
+ this.unexpectedError = unexpectedError;
730
+ }
731
+ }
732
+ //------------------------------------------------------------------------------
733
+ function installInterceptors() {
734
+ const CLIENT_ERROR = 400;
735
+ const INTERNAL_SERVER_ERROR = 500;
736
+ axiosInstance.interceptors.response.use(successFulResponse => {
737
+ if (successFulResponse.config.responseType === 'stream') {
738
+ successFulResponse.data.pause();
739
+ }
740
+ return successFulResponse;
741
+ }, error => {
742
+ if (!error.response) {
743
+ return Promise.reject(error);
744
+ }
745
+ const axiosError = error;
746
+ const status = axiosError.response?.status || INTERNAL_SERVER_ERROR;
747
+ const errorData = axiosError.response?.data;
748
+ if (!errorData &&
749
+ axiosError.request.method === 'HEAD' &&
750
+ status >= CLIENT_ERROR &&
751
+ status < INTERNAL_SERVER_ERROR) {
752
+ return axiosError.response;
753
+ }
754
+ if (!errorData || !('error' in errorData)) {
755
+ return Promise.reject(new UnexpectedServiceError(status, errorData));
756
+ }
757
+ const serviceError = errorData.error;
758
+ return Promise.reject(new ApiError(serviceError.errorCode, status, serviceError.message, serviceError));
759
+ });
760
+ }
761
+ //------------------------------------------------------------------------------
762
+ installInterceptors();
627
763
 
628
- export { 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 };
764
+ export { ApiError, UnexpectedServiceError, axiosInstance, createAsset, createFolder, createGroup, createSession, createSubfolder, deleteAsset, deleteAssets, deleteEntity, deleteFolder, deleteGroup, deleteSourceFiles, deleteUser, downloadSourceFile, exportAsset, generateGuestToken, 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, joinSessionAsGuest, kickClientFromSession, killSession, listAssets, listFolderAccesses, listFolderSubFolders, listFolders, listSourceFiles, listUsers, moveAssets, moveFolders, moveSourceFiles, packageAsset, registerUser, revokeMemberAccessToFolder, revokeMemberAccessToGroup, setApiKey, setAssetThumbnail, setBaseURL, setBaseUrl, setUserToken, updateAssetDescription, updateEntity, updateFolder, updateGroupDescription, updateSourceFileDetails, updateUser, uploadSourceFiles };
629
765
  //# sourceMappingURL=index.esm.js.map