@3dverse/api 0.5.2 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_prebuild/wrapper.d.ts +17 -22
- package/dist/index.js +15 -88
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +15 -88
- package/dist/index.mjs.map +2 -2
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -4,8 +4,7 @@ import axiosRetry, { isNetworkError, isIdempotentRequestError } from "axios-retr
|
|
|
4
4
|
// _prebuild/wrapper.ts
|
|
5
5
|
import axios from "axios";
|
|
6
6
|
var axiosInstance = axios.create({
|
|
7
|
-
baseURL: "https://api.3dverse.com/app/v1"
|
|
8
|
-
operationId: "3dverse"
|
|
7
|
+
baseURL: "https://api.3dverse.com/app/v1"
|
|
9
8
|
});
|
|
10
9
|
function setBaseURL(baseURL) {
|
|
11
10
|
axiosInstance.defaults.baseURL = baseURL;
|
|
@@ -15,7 +14,6 @@ function listUsers({
|
|
|
15
14
|
limit = 10
|
|
16
15
|
}) {
|
|
17
16
|
return axiosInstance({
|
|
18
|
-
operationId: "listUsers",
|
|
19
17
|
method: "get",
|
|
20
18
|
url: "/users",
|
|
21
19
|
params: {
|
|
@@ -28,7 +26,6 @@ function registerUser({
|
|
|
28
26
|
username
|
|
29
27
|
}) {
|
|
30
28
|
return axiosInstance({
|
|
31
|
-
operationId: "registerUser",
|
|
32
29
|
method: "post",
|
|
33
30
|
url: "/users",
|
|
34
31
|
data: {
|
|
@@ -40,7 +37,6 @@ function getUser({
|
|
|
40
37
|
user_id
|
|
41
38
|
}) {
|
|
42
39
|
return axiosInstance({
|
|
43
|
-
operationId: "getUser",
|
|
44
40
|
method: "get",
|
|
45
41
|
url: "/users/" + user_id
|
|
46
42
|
});
|
|
@@ -50,7 +46,6 @@ function updateUser({
|
|
|
50
46
|
username
|
|
51
47
|
}) {
|
|
52
48
|
return axiosInstance({
|
|
53
|
-
operationId: "updateUser",
|
|
54
49
|
method: "patch",
|
|
55
50
|
url: "/users/" + user_id,
|
|
56
51
|
data: {
|
|
@@ -62,7 +57,6 @@ function deleteUser({
|
|
|
62
57
|
user_id
|
|
63
58
|
}) {
|
|
64
59
|
return axiosInstance({
|
|
65
|
-
operationId: "deleteUser",
|
|
66
60
|
method: "delete",
|
|
67
61
|
url: "/users/" + user_id
|
|
68
62
|
});
|
|
@@ -73,7 +67,6 @@ function generateUserToken({
|
|
|
73
67
|
ttl = "1h"
|
|
74
68
|
}) {
|
|
75
69
|
return axiosInstance({
|
|
76
|
-
operationId: "generateUserToken",
|
|
77
70
|
method: "post",
|
|
78
71
|
url: "/users/" + user_id + "/tokens",
|
|
79
72
|
data: {
|
|
@@ -86,7 +79,6 @@ function getUserGroups({
|
|
|
86
79
|
user_id
|
|
87
80
|
}) {
|
|
88
81
|
return axiosInstance({
|
|
89
|
-
operationId: "getUserGroups",
|
|
90
82
|
method: "get",
|
|
91
83
|
url: "/users/" + user_id + "/groups"
|
|
92
84
|
});
|
|
@@ -97,7 +89,6 @@ function getUserUploadTasks({
|
|
|
97
89
|
limit = 10
|
|
98
90
|
}) {
|
|
99
91
|
return axiosInstance({
|
|
100
|
-
operationId: "getUserUploadTasks",
|
|
101
92
|
method: "get",
|
|
102
93
|
url: "/users/" + user_id + "/upload-tasks",
|
|
103
94
|
params: {
|
|
@@ -112,7 +103,6 @@ function createGroup({
|
|
|
112
103
|
members
|
|
113
104
|
}) {
|
|
114
105
|
return axiosInstance({
|
|
115
|
-
operationId: "createGroup",
|
|
116
106
|
method: "post",
|
|
117
107
|
url: "/groups",
|
|
118
108
|
data: {
|
|
@@ -126,7 +116,6 @@ function getGroup({
|
|
|
126
116
|
group_id
|
|
127
117
|
}) {
|
|
128
118
|
return axiosInstance({
|
|
129
|
-
operationId: "getGroup",
|
|
130
119
|
method: "get",
|
|
131
120
|
url: "/groups/" + group_id
|
|
132
121
|
});
|
|
@@ -137,7 +126,6 @@ function updateGroupDescription({
|
|
|
137
126
|
description
|
|
138
127
|
}) {
|
|
139
128
|
return axiosInstance({
|
|
140
|
-
operationId: "updateGroupDescription",
|
|
141
129
|
method: "patch",
|
|
142
130
|
url: "/groups/" + group_id,
|
|
143
131
|
data: {
|
|
@@ -150,7 +138,6 @@ function deleteGroup({
|
|
|
150
138
|
group_id
|
|
151
139
|
}) {
|
|
152
140
|
return axiosInstance({
|
|
153
|
-
operationId: "deleteGroup",
|
|
154
141
|
method: "delete",
|
|
155
142
|
url: "/groups/" + group_id
|
|
156
143
|
});
|
|
@@ -163,7 +150,6 @@ function grantMemberAccessToGroup({
|
|
|
163
150
|
folder_access
|
|
164
151
|
}) {
|
|
165
152
|
return axiosInstance({
|
|
166
|
-
operationId: "grantMemberAccessToGroup",
|
|
167
153
|
method: "put",
|
|
168
154
|
url: "/groups/" + group_id + "/members/" + member_type + "/" + member_id,
|
|
169
155
|
data: {
|
|
@@ -178,7 +164,6 @@ function revokeMemberAccessToGroup({
|
|
|
178
164
|
member_id
|
|
179
165
|
}) {
|
|
180
166
|
return axiosInstance({
|
|
181
|
-
operationId: "revokeMemberAccessToGroup",
|
|
182
167
|
method: "delete",
|
|
183
168
|
url: "/groups/" + group_id + "/members/" + member_type + "/" + member_id
|
|
184
169
|
});
|
|
@@ -188,7 +173,6 @@ function listFolders({
|
|
|
188
173
|
limit = 10
|
|
189
174
|
}) {
|
|
190
175
|
return axiosInstance({
|
|
191
|
-
operationId: "listFolders",
|
|
192
176
|
method: "get",
|
|
193
177
|
url: "/folders",
|
|
194
178
|
params: {
|
|
@@ -202,7 +186,6 @@ function createFolder({
|
|
|
202
186
|
subfolders
|
|
203
187
|
}) {
|
|
204
188
|
return axiosInstance({
|
|
205
|
-
operationId: "createFolder",
|
|
206
189
|
method: "post",
|
|
207
190
|
url: "/folders",
|
|
208
191
|
data: {
|
|
@@ -215,20 +198,18 @@ function getFolderInfo({
|
|
|
215
198
|
folder_id
|
|
216
199
|
}) {
|
|
217
200
|
return axiosInstance({
|
|
218
|
-
operationId: "getFolderInfo",
|
|
219
201
|
method: "get",
|
|
220
202
|
url: "/folders/" + folder_id
|
|
221
203
|
});
|
|
222
204
|
}
|
|
223
205
|
function moveFolders({
|
|
224
206
|
folder_id,
|
|
225
|
-
|
|
207
|
+
folder_ids
|
|
226
208
|
}) {
|
|
227
209
|
return axiosInstance({
|
|
228
|
-
operationId: "moveFolders",
|
|
229
210
|
method: "put",
|
|
230
211
|
url: "/folders/" + folder_id,
|
|
231
|
-
data:
|
|
212
|
+
data: folder_ids
|
|
232
213
|
});
|
|
233
214
|
}
|
|
234
215
|
function updateFolder({
|
|
@@ -236,7 +217,6 @@ function updateFolder({
|
|
|
236
217
|
name
|
|
237
218
|
}) {
|
|
238
219
|
return axiosInstance({
|
|
239
|
-
operationId: "updateFolder",
|
|
240
220
|
method: "patch",
|
|
241
221
|
url: "/folders/" + folder_id,
|
|
242
222
|
data: {
|
|
@@ -248,7 +228,6 @@ function deleteFolder({
|
|
|
248
228
|
folder_id
|
|
249
229
|
}) {
|
|
250
230
|
return axiosInstance({
|
|
251
|
-
operationId: "deleteFolder",
|
|
252
231
|
method: "delete",
|
|
253
232
|
url: "/folders/" + folder_id
|
|
254
233
|
});
|
|
@@ -257,7 +236,6 @@ function listFolderAccesses({
|
|
|
257
236
|
folder_id
|
|
258
237
|
}) {
|
|
259
238
|
return axiosInstance({
|
|
260
|
-
operationId: "listFolderAccesses",
|
|
261
239
|
method: "get",
|
|
262
240
|
url: "/folders/" + folder_id + "/access"
|
|
263
241
|
});
|
|
@@ -269,7 +247,6 @@ function grantMemberAccessToFolder({
|
|
|
269
247
|
access
|
|
270
248
|
}) {
|
|
271
249
|
return axiosInstance({
|
|
272
|
-
operationId: "grantMemberAccessToFolder",
|
|
273
250
|
method: "put",
|
|
274
251
|
url: "/folders/" + folder_id + "/access/" + member_type + "/" + member_id,
|
|
275
252
|
data: {
|
|
@@ -283,7 +260,6 @@ function revokeMemberAccessToFolder({
|
|
|
283
260
|
member_id
|
|
284
261
|
}) {
|
|
285
262
|
return axiosInstance({
|
|
286
|
-
operationId: "revokeMemberAccessToFolder",
|
|
287
263
|
method: "delete",
|
|
288
264
|
url: "/folders/" + folder_id + "/access/" + member_type + "/" + member_id
|
|
289
265
|
});
|
|
@@ -294,7 +270,6 @@ function createSubfolder({
|
|
|
294
270
|
subfolders
|
|
295
271
|
}) {
|
|
296
272
|
return axiosInstance({
|
|
297
|
-
operationId: "createSubfolder",
|
|
298
273
|
method: "post",
|
|
299
274
|
url: "/folders/" + folder_id + "/folders",
|
|
300
275
|
data: {
|
|
@@ -308,7 +283,6 @@ function listFolderSubFolders({
|
|
|
308
283
|
depth = 0
|
|
309
284
|
}) {
|
|
310
285
|
return axiosInstance({
|
|
311
|
-
operationId: "listFolderSubFolders",
|
|
312
286
|
method: "get",
|
|
313
287
|
url: "/folders/" + folder_id + "/folders",
|
|
314
288
|
params: {
|
|
@@ -322,7 +296,6 @@ function getSourceFilesInFolder({
|
|
|
322
296
|
limit = 10
|
|
323
297
|
}) {
|
|
324
298
|
return axiosInstance({
|
|
325
|
-
operationId: "getSourceFilesInFolder",
|
|
326
299
|
method: "get",
|
|
327
300
|
url: "/folders/" + folder_id + "/source-files",
|
|
328
301
|
params: {
|
|
@@ -333,13 +306,12 @@ function getSourceFilesInFolder({
|
|
|
333
306
|
}
|
|
334
307
|
function moveSourceFiles({
|
|
335
308
|
folder_id,
|
|
336
|
-
|
|
309
|
+
source_file_ids
|
|
337
310
|
}) {
|
|
338
311
|
return axiosInstance({
|
|
339
|
-
operationId: "moveSourceFiles",
|
|
340
312
|
method: "put",
|
|
341
313
|
url: "/folders/" + folder_id + "/source-files",
|
|
342
|
-
data:
|
|
314
|
+
data: source_file_ids
|
|
343
315
|
});
|
|
344
316
|
}
|
|
345
317
|
function getUploadTasksInFolder({
|
|
@@ -348,7 +320,6 @@ function getUploadTasksInFolder({
|
|
|
348
320
|
limit = 10
|
|
349
321
|
}) {
|
|
350
322
|
return axiosInstance({
|
|
351
|
-
operationId: "getUploadTasksInFolder",
|
|
352
323
|
method: "get",
|
|
353
324
|
url: "/folders/" + folder_id + "/upload-tasks",
|
|
354
325
|
params: {
|
|
@@ -364,7 +335,6 @@ function getFolderAssets({
|
|
|
364
335
|
filter
|
|
365
336
|
}) {
|
|
366
337
|
return axiosInstance({
|
|
367
|
-
operationId: "getFolderAssets",
|
|
368
338
|
method: "get",
|
|
369
339
|
url: "/folders/" + folder_id + "/assets",
|
|
370
340
|
params: {
|
|
@@ -376,31 +346,28 @@ function getFolderAssets({
|
|
|
376
346
|
}
|
|
377
347
|
function createAsset({
|
|
378
348
|
folder_id,
|
|
379
|
-
|
|
349
|
+
asset_creation_options
|
|
380
350
|
}) {
|
|
381
351
|
return axiosInstance({
|
|
382
|
-
operationId: "createAsset",
|
|
383
352
|
method: "post",
|
|
384
353
|
url: "/folders/" + folder_id + "/assets",
|
|
385
|
-
data:
|
|
354
|
+
data: asset_creation_options
|
|
386
355
|
});
|
|
387
356
|
}
|
|
388
357
|
function moveAssets({
|
|
389
358
|
folder_id,
|
|
390
|
-
|
|
359
|
+
asset_ids
|
|
391
360
|
}) {
|
|
392
361
|
return axiosInstance({
|
|
393
|
-
operationId: "moveAssets",
|
|
394
362
|
method: "put",
|
|
395
363
|
url: "/folders/" + folder_id + "/assets",
|
|
396
|
-
data:
|
|
364
|
+
data: asset_ids
|
|
397
365
|
});
|
|
398
366
|
}
|
|
399
367
|
function getSessionsInFolder({
|
|
400
368
|
folder_id
|
|
401
369
|
}) {
|
|
402
370
|
return axiosInstance({
|
|
403
|
-
operationId: "getSessionsInFolder",
|
|
404
371
|
method: "get",
|
|
405
372
|
url: "/folders/" + folder_id + "/sessions"
|
|
406
373
|
});
|
|
@@ -410,7 +377,6 @@ function listSourceFiles({
|
|
|
410
377
|
limit = 10
|
|
411
378
|
}) {
|
|
412
379
|
return axiosInstance({
|
|
413
|
-
operationId: "listSourceFiles",
|
|
414
380
|
method: "get",
|
|
415
381
|
url: "/source-files",
|
|
416
382
|
params: {
|
|
@@ -420,20 +386,18 @@ function listSourceFiles({
|
|
|
420
386
|
});
|
|
421
387
|
}
|
|
422
388
|
function deleteSourceFiles({
|
|
423
|
-
|
|
389
|
+
source_file_ids
|
|
424
390
|
}) {
|
|
425
391
|
return axiosInstance({
|
|
426
|
-
operationId: "deleteSourceFiles",
|
|
427
392
|
method: "delete",
|
|
428
393
|
url: "/source-files",
|
|
429
|
-
data:
|
|
394
|
+
data: source_file_ids
|
|
430
395
|
});
|
|
431
396
|
}
|
|
432
397
|
function downloadSourceFile({
|
|
433
398
|
source_file_id
|
|
434
399
|
}) {
|
|
435
400
|
return axiosInstance({
|
|
436
|
-
operationId: "downloadSourceFile",
|
|
437
401
|
method: "get",
|
|
438
402
|
url: "/source-files/" + source_file_id,
|
|
439
403
|
responseType: "arraybuffer"
|
|
@@ -443,7 +407,6 @@ function getSourceFileDetails({
|
|
|
443
407
|
source_file_id
|
|
444
408
|
}) {
|
|
445
409
|
return axiosInstance({
|
|
446
|
-
operationId: "getSourceFileDetails",
|
|
447
410
|
method: "get",
|
|
448
411
|
url: "/source-files/" + source_file_id + "/details"
|
|
449
412
|
});
|
|
@@ -453,7 +416,6 @@ function updateSourceFileDetails({
|
|
|
453
416
|
name
|
|
454
417
|
}) {
|
|
455
418
|
return axiosInstance({
|
|
456
|
-
operationId: "updateSourceFileDetails",
|
|
457
419
|
method: "patch",
|
|
458
420
|
url: "/source-files/" + source_file_id + "/details",
|
|
459
421
|
data: {
|
|
@@ -465,7 +427,6 @@ function getSourceFileAssets({
|
|
|
465
427
|
source_file_id
|
|
466
428
|
}) {
|
|
467
429
|
return axiosInstance({
|
|
468
|
-
operationId: "getSourceFileAssets",
|
|
469
430
|
method: "get",
|
|
470
431
|
url: "/source-files/" + source_file_id + "/assets"
|
|
471
432
|
});
|
|
@@ -475,7 +436,6 @@ function getUploadTasks({
|
|
|
475
436
|
limit = 10
|
|
476
437
|
}) {
|
|
477
438
|
return axiosInstance({
|
|
478
|
-
operationId: "getUploadTasks",
|
|
479
439
|
method: "get",
|
|
480
440
|
url: "/upload-tasks",
|
|
481
441
|
params: {
|
|
@@ -488,7 +448,6 @@ function getUploadTask({
|
|
|
488
448
|
upload_task_id
|
|
489
449
|
}) {
|
|
490
450
|
return axiosInstance({
|
|
491
|
-
operationId: "getUploadTask",
|
|
492
451
|
method: "get",
|
|
493
452
|
url: "/upload-tasks/" + upload_task_id
|
|
494
453
|
});
|
|
@@ -498,7 +457,6 @@ function listAssets({
|
|
|
498
457
|
limit = 10
|
|
499
458
|
}) {
|
|
500
459
|
return axiosInstance({
|
|
501
|
-
operationId: "listAssets",
|
|
502
460
|
method: "get",
|
|
503
461
|
url: "/assets",
|
|
504
462
|
params: {
|
|
@@ -508,13 +466,12 @@ function listAssets({
|
|
|
508
466
|
});
|
|
509
467
|
}
|
|
510
468
|
function deleteAssets({
|
|
511
|
-
|
|
469
|
+
asset_ids
|
|
512
470
|
}) {
|
|
513
471
|
return axiosInstance({
|
|
514
|
-
operationId: "deleteAssets",
|
|
515
472
|
method: "delete",
|
|
516
473
|
url: "/assets",
|
|
517
|
-
data:
|
|
474
|
+
data: asset_ids
|
|
518
475
|
});
|
|
519
476
|
}
|
|
520
477
|
function deleteAsset({
|
|
@@ -522,7 +479,6 @@ function deleteAsset({
|
|
|
522
479
|
asset_id
|
|
523
480
|
}) {
|
|
524
481
|
return axiosInstance({
|
|
525
|
-
operationId: "deleteAsset",
|
|
526
482
|
method: "delete",
|
|
527
483
|
url: "/assets/" + asset_container + "/" + asset_id
|
|
528
484
|
});
|
|
@@ -532,7 +488,6 @@ function getAssetSourceFile({
|
|
|
532
488
|
asset_id
|
|
533
489
|
}) {
|
|
534
490
|
return axiosInstance({
|
|
535
|
-
operationId: "getAssetSourceFile",
|
|
536
491
|
method: "get",
|
|
537
492
|
url: "/assets/" + asset_container + "/" + asset_id + "/source-file"
|
|
538
493
|
});
|
|
@@ -542,7 +497,6 @@ function getAssetDetails({
|
|
|
542
497
|
asset_id
|
|
543
498
|
}) {
|
|
544
499
|
return axiosInstance({
|
|
545
|
-
operationId: "getAssetDetails",
|
|
546
500
|
method: "get",
|
|
547
501
|
url: "/assets/" + asset_container + "/" + asset_id + "/details"
|
|
548
502
|
});
|
|
@@ -552,7 +506,6 @@ function getAssetFolder({
|
|
|
552
506
|
asset_id
|
|
553
507
|
}) {
|
|
554
508
|
return axiosInstance({
|
|
555
|
-
operationId: "getAssetFolder",
|
|
556
509
|
method: "get",
|
|
557
510
|
url: "/assets/" + asset_container + "/" + asset_id + "/folder"
|
|
558
511
|
});
|
|
@@ -565,7 +518,6 @@ function getAssetDependencies({
|
|
|
565
518
|
filter
|
|
566
519
|
}) {
|
|
567
520
|
return axiosInstance({
|
|
568
|
-
operationId: "getAssetDependencies",
|
|
569
521
|
method: "get",
|
|
570
522
|
url: "/assets/" + asset_container + "/" + asset_id + "/dependencies",
|
|
571
523
|
params: {
|
|
@@ -580,7 +532,6 @@ function getAssetReferences({
|
|
|
580
532
|
asset_id
|
|
581
533
|
}) {
|
|
582
534
|
return axiosInstance({
|
|
583
|
-
operationId: "getAssetReferences",
|
|
584
535
|
method: "get",
|
|
585
536
|
url: "/assets/" + asset_container + "/" + asset_id + "/references"
|
|
586
537
|
});
|
|
@@ -590,7 +541,6 @@ function getAssetDescription({
|
|
|
590
541
|
asset_id
|
|
591
542
|
}) {
|
|
592
543
|
return axiosInstance({
|
|
593
|
-
operationId: "getAssetDescription",
|
|
594
544
|
method: "get",
|
|
595
545
|
url: "/assets/" + asset_container + "/" + asset_id + "/description"
|
|
596
546
|
});
|
|
@@ -601,7 +551,6 @@ function renameAsset({
|
|
|
601
551
|
name
|
|
602
552
|
}) {
|
|
603
553
|
return axiosInstance({
|
|
604
|
-
operationId: "renameAsset",
|
|
605
554
|
method: "patch",
|
|
606
555
|
url: "/assets/" + asset_container + "/" + asset_id + "/description",
|
|
607
556
|
data: {
|
|
@@ -614,7 +563,6 @@ function getAssetPayload({
|
|
|
614
563
|
asset_id
|
|
615
564
|
}) {
|
|
616
565
|
return axiosInstance({
|
|
617
|
-
operationId: "getAssetPayload",
|
|
618
566
|
method: "get",
|
|
619
567
|
url: "/assets/" + asset_container_with_payload + "/" + asset_id + "/payload",
|
|
620
568
|
responseType: "arraybuffer"
|
|
@@ -625,7 +573,6 @@ function getAssetHistory({
|
|
|
625
573
|
asset_id
|
|
626
574
|
}) {
|
|
627
575
|
return axiosInstance({
|
|
628
|
-
operationId: "getAssetHistory",
|
|
629
576
|
method: "get",
|
|
630
577
|
url: "/assets/" + asset_container + "/" + asset_id + "/history"
|
|
631
578
|
});
|
|
@@ -635,7 +582,6 @@ function getAssetMeta({
|
|
|
635
582
|
asset_id
|
|
636
583
|
}) {
|
|
637
584
|
return axiosInstance({
|
|
638
|
-
operationId: "getAssetMeta",
|
|
639
585
|
method: "get",
|
|
640
586
|
url: "/assets/" + asset_container + "/" + asset_id + "/meta"
|
|
641
587
|
});
|
|
@@ -645,7 +591,6 @@ function getAssetCode({
|
|
|
645
591
|
asset_id
|
|
646
592
|
}) {
|
|
647
593
|
return axiosInstance({
|
|
648
|
-
operationId: "getAssetCode",
|
|
649
594
|
method: "get",
|
|
650
595
|
url: "/assets/" + asset_container_with_code + "/" + asset_id + "/code"
|
|
651
596
|
});
|
|
@@ -657,7 +602,6 @@ function getAssetThumbnail({
|
|
|
657
602
|
default_url
|
|
658
603
|
}) {
|
|
659
604
|
return axiosInstance({
|
|
660
|
-
operationId: "getAssetThumbnail",
|
|
661
605
|
method: "get",
|
|
662
606
|
url: "/assets/" + asset_container + "/" + asset_id + "/thumbnail",
|
|
663
607
|
responseType: "arraybuffer",
|
|
@@ -673,7 +617,6 @@ function setAssetThumbnail({
|
|
|
673
617
|
body
|
|
674
618
|
}, contentType) {
|
|
675
619
|
return axiosInstance({
|
|
676
|
-
operationId: "setAssetThumbnail",
|
|
677
620
|
method: "put",
|
|
678
621
|
url: "/assets/" + asset_container + "/" + asset_id + "/thumbnail",
|
|
679
622
|
headers: {
|
|
@@ -687,7 +630,6 @@ function getAssetCustomTypes({
|
|
|
687
630
|
asset_id
|
|
688
631
|
}) {
|
|
689
632
|
return axiosInstance({
|
|
690
|
-
operationId: "getAssetCustomTypes",
|
|
691
633
|
method: "get",
|
|
692
634
|
url: "/assets/" + asset_container_with_custom_types + "/" + asset_id + "/custom-types"
|
|
693
635
|
});
|
|
@@ -697,7 +639,6 @@ function packageAsset({
|
|
|
697
639
|
asset_id
|
|
698
640
|
}) {
|
|
699
641
|
return axiosInstance({
|
|
700
|
-
operationId: "packageAsset",
|
|
701
642
|
method: "get",
|
|
702
643
|
url: "/assets/" + asset_container + "/" + asset_id + "/package",
|
|
703
644
|
responseType: "arraybuffer"
|
|
@@ -710,7 +651,6 @@ function exportAsset({
|
|
|
710
651
|
scale = 1
|
|
711
652
|
}) {
|
|
712
653
|
return axiosInstance({
|
|
713
|
-
operationId: "exportAsset",
|
|
714
654
|
method: "get",
|
|
715
655
|
url: "/assets/" + asset_container_exportable + "/" + asset_id + "/exports/" + format,
|
|
716
656
|
responseType: "arraybuffer",
|
|
@@ -723,7 +663,6 @@ function getSceneSessions({
|
|
|
723
663
|
scene_id
|
|
724
664
|
}) {
|
|
725
665
|
return axiosInstance({
|
|
726
|
-
operationId: "getSceneSessions",
|
|
727
666
|
method: "get",
|
|
728
667
|
url: "/assets/scenes/" + scene_id + "/sessions"
|
|
729
668
|
});
|
|
@@ -732,7 +671,6 @@ function getSceneAABB({
|
|
|
732
671
|
scene_id
|
|
733
672
|
}) {
|
|
734
673
|
return axiosInstance({
|
|
735
|
-
operationId: "getSceneAABB",
|
|
736
674
|
method: "get",
|
|
737
675
|
url: "/assets/scenes/" + scene_id + "/aabb"
|
|
738
676
|
});
|
|
@@ -743,7 +681,6 @@ function getEntity({
|
|
|
743
681
|
compute_global_transform = false
|
|
744
682
|
}) {
|
|
745
683
|
return axiosInstance({
|
|
746
|
-
operationId: "getEntity",
|
|
747
684
|
method: "get",
|
|
748
685
|
url: "/assets/scenes/" + scene_id + "/entities/" + entity_id,
|
|
749
686
|
params: {
|
|
@@ -754,13 +691,12 @@ function getEntity({
|
|
|
754
691
|
function updateEntity({
|
|
755
692
|
scene_id,
|
|
756
693
|
entity_id,
|
|
757
|
-
|
|
694
|
+
entity_components
|
|
758
695
|
}) {
|
|
759
696
|
return axiosInstance({
|
|
760
|
-
operationId: "updateEntity",
|
|
761
697
|
method: "patch",
|
|
762
698
|
url: "/assets/scenes/" + scene_id + "/entities/" + entity_id,
|
|
763
|
-
data:
|
|
699
|
+
data: entity_components
|
|
764
700
|
});
|
|
765
701
|
}
|
|
766
702
|
function deleteEntity({
|
|
@@ -768,7 +704,6 @@ function deleteEntity({
|
|
|
768
704
|
entity_id
|
|
769
705
|
}) {
|
|
770
706
|
return axiosInstance({
|
|
771
|
-
operationId: "deleteEntity",
|
|
772
707
|
method: "delete",
|
|
773
708
|
url: "/assets/scenes/" + scene_id + "/entities/" + entity_id
|
|
774
709
|
});
|
|
@@ -778,7 +713,6 @@ function createSession({
|
|
|
778
713
|
renderer_version
|
|
779
714
|
}) {
|
|
780
715
|
return axiosInstance({
|
|
781
|
-
operationId: "createSession",
|
|
782
716
|
method: "post",
|
|
783
717
|
url: "/sessions",
|
|
784
718
|
data: {
|
|
@@ -791,7 +725,6 @@ function getSession({
|
|
|
791
725
|
session_id
|
|
792
726
|
}) {
|
|
793
727
|
return axiosInstance({
|
|
794
|
-
operationId: "getSession",
|
|
795
728
|
method: "get",
|
|
796
729
|
url: "/sessions/" + session_id
|
|
797
730
|
});
|
|
@@ -800,7 +733,6 @@ function killSession({
|
|
|
800
733
|
session_id
|
|
801
734
|
}) {
|
|
802
735
|
return axiosInstance({
|
|
803
|
-
operationId: "killSession",
|
|
804
736
|
method: "delete",
|
|
805
737
|
url: "/sessions/" + session_id
|
|
806
738
|
});
|
|
@@ -809,7 +741,6 @@ function joinSession({
|
|
|
809
741
|
session_id
|
|
810
742
|
}) {
|
|
811
743
|
return axiosInstance({
|
|
812
|
-
operationId: "joinSession",
|
|
813
744
|
method: "post",
|
|
814
745
|
url: "/sessions/" + session_id + "/clients"
|
|
815
746
|
});
|
|
@@ -819,14 +750,12 @@ function kickClientFromSession({
|
|
|
819
750
|
client_id
|
|
820
751
|
}) {
|
|
821
752
|
return axiosInstance({
|
|
822
|
-
operationId: "kickClientFromSession",
|
|
823
753
|
method: "delete",
|
|
824
754
|
url: "/sessions/" + session_id + "/clients/" + client_id
|
|
825
755
|
});
|
|
826
756
|
}
|
|
827
757
|
function joinSessionAsGuest() {
|
|
828
758
|
return axiosInstance({
|
|
829
|
-
operationId: "joinSessionAsGuest",
|
|
830
759
|
method: "post",
|
|
831
760
|
url: "/sessions/guests"
|
|
832
761
|
});
|
|
@@ -835,7 +764,6 @@ function generateGuestToken({
|
|
|
835
764
|
session_id
|
|
836
765
|
}) {
|
|
837
766
|
return axiosInstance({
|
|
838
|
-
operationId: "generateGuestToken",
|
|
839
767
|
method: "post",
|
|
840
768
|
url: "/sessions/" + session_id + "/guests"
|
|
841
769
|
});
|
|
@@ -926,7 +854,6 @@ function uploadSourceFiles({
|
|
|
926
854
|
onUploadProgress
|
|
927
855
|
}) {
|
|
928
856
|
return axiosInstance({
|
|
929
|
-
operationId: "uploadSourceFiles",
|
|
930
857
|
method: "post",
|
|
931
858
|
url: `/folders/${folder_id}/source-files`,
|
|
932
859
|
headers: {
|