@3dverse/api 0.5.1 → 0.6.0
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 +18 -22
- package/dist/index.js +20 -94
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +20 -94
- package/dist/index.mjs.map +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
@@ -114,8 +114,7 @@ var import_axios_retry = __toESM(require("axios-retry"));
|
|
114
114
|
// _prebuild/wrapper.ts
|
115
115
|
var import_axios = __toESM(require("axios"));
|
116
116
|
var axiosInstance = import_axios.default.create({
|
117
|
-
baseURL: "https://api.3dverse.com/app/v1"
|
118
|
-
operationId: "3dverse"
|
117
|
+
baseURL: "https://api.3dverse.com/app/v1"
|
119
118
|
});
|
120
119
|
function setBaseURL(baseURL) {
|
121
120
|
axiosInstance.defaults.baseURL = baseURL;
|
@@ -125,7 +124,6 @@ function listUsers({
|
|
125
124
|
limit = 10
|
126
125
|
}) {
|
127
126
|
return axiosInstance({
|
128
|
-
operationId: "listUsers",
|
129
127
|
method: "get",
|
130
128
|
url: "/users",
|
131
129
|
params: {
|
@@ -138,7 +136,6 @@ function registerUser({
|
|
138
136
|
username
|
139
137
|
}) {
|
140
138
|
return axiosInstance({
|
141
|
-
operationId: "registerUser",
|
142
139
|
method: "post",
|
143
140
|
url: "/users",
|
144
141
|
data: {
|
@@ -150,7 +147,6 @@ function getUser({
|
|
150
147
|
user_id
|
151
148
|
}) {
|
152
149
|
return axiosInstance({
|
153
|
-
operationId: "getUser",
|
154
150
|
method: "get",
|
155
151
|
url: "/users/" + user_id
|
156
152
|
});
|
@@ -160,7 +156,6 @@ function updateUser({
|
|
160
156
|
username
|
161
157
|
}) {
|
162
158
|
return axiosInstance({
|
163
|
-
operationId: "updateUser",
|
164
159
|
method: "patch",
|
165
160
|
url: "/users/" + user_id,
|
166
161
|
data: {
|
@@ -172,7 +167,6 @@ function deleteUser({
|
|
172
167
|
user_id
|
173
168
|
}) {
|
174
169
|
return axiosInstance({
|
175
|
-
operationId: "deleteUser",
|
176
170
|
method: "delete",
|
177
171
|
url: "/users/" + user_id
|
178
172
|
});
|
@@ -183,7 +177,6 @@ function generateUserToken({
|
|
183
177
|
ttl = "1h"
|
184
178
|
}) {
|
185
179
|
return axiosInstance({
|
186
|
-
operationId: "generateUserToken",
|
187
180
|
method: "post",
|
188
181
|
url: "/users/" + user_id + "/tokens",
|
189
182
|
data: {
|
@@ -196,7 +189,6 @@ function getUserGroups({
|
|
196
189
|
user_id
|
197
190
|
}) {
|
198
191
|
return axiosInstance({
|
199
|
-
operationId: "getUserGroups",
|
200
192
|
method: "get",
|
201
193
|
url: "/users/" + user_id + "/groups"
|
202
194
|
});
|
@@ -207,7 +199,6 @@ function getUserUploadTasks({
|
|
207
199
|
limit = 10
|
208
200
|
}) {
|
209
201
|
return axiosInstance({
|
210
|
-
operationId: "getUserUploadTasks",
|
211
202
|
method: "get",
|
212
203
|
url: "/users/" + user_id + "/upload-tasks",
|
213
204
|
params: {
|
@@ -222,7 +213,6 @@ function createGroup({
|
|
222
213
|
members
|
223
214
|
}) {
|
224
215
|
return axiosInstance({
|
225
|
-
operationId: "createGroup",
|
226
216
|
method: "post",
|
227
217
|
url: "/groups",
|
228
218
|
data: {
|
@@ -236,7 +226,6 @@ function getGroup({
|
|
236
226
|
group_id
|
237
227
|
}) {
|
238
228
|
return axiosInstance({
|
239
|
-
operationId: "getGroup",
|
240
229
|
method: "get",
|
241
230
|
url: "/groups/" + group_id
|
242
231
|
});
|
@@ -247,7 +236,6 @@ function updateGroupDescription({
|
|
247
236
|
description
|
248
237
|
}) {
|
249
238
|
return axiosInstance({
|
250
|
-
operationId: "updateGroupDescription",
|
251
239
|
method: "patch",
|
252
240
|
url: "/groups/" + group_id,
|
253
241
|
data: {
|
@@ -260,7 +248,6 @@ function deleteGroup({
|
|
260
248
|
group_id
|
261
249
|
}) {
|
262
250
|
return axiosInstance({
|
263
|
-
operationId: "deleteGroup",
|
264
251
|
method: "delete",
|
265
252
|
url: "/groups/" + group_id
|
266
253
|
});
|
@@ -273,7 +260,6 @@ function grantMemberAccessToGroup({
|
|
273
260
|
folder_access
|
274
261
|
}) {
|
275
262
|
return axiosInstance({
|
276
|
-
operationId: "grantMemberAccessToGroup",
|
277
263
|
method: "put",
|
278
264
|
url: "/groups/" + group_id + "/members/" + member_type + "/" + member_id,
|
279
265
|
data: {
|
@@ -288,7 +274,6 @@ function revokeMemberAccessToGroup({
|
|
288
274
|
member_id
|
289
275
|
}) {
|
290
276
|
return axiosInstance({
|
291
|
-
operationId: "revokeMemberAccessToGroup",
|
292
277
|
method: "delete",
|
293
278
|
url: "/groups/" + group_id + "/members/" + member_type + "/" + member_id
|
294
279
|
});
|
@@ -298,7 +283,6 @@ function listFolders({
|
|
298
283
|
limit = 10
|
299
284
|
}) {
|
300
285
|
return axiosInstance({
|
301
|
-
operationId: "listFolders",
|
302
286
|
method: "get",
|
303
287
|
url: "/folders",
|
304
288
|
params: {
|
@@ -312,7 +296,6 @@ function createFolder({
|
|
312
296
|
subfolders
|
313
297
|
}) {
|
314
298
|
return axiosInstance({
|
315
|
-
operationId: "createFolder",
|
316
299
|
method: "post",
|
317
300
|
url: "/folders",
|
318
301
|
data: {
|
@@ -325,20 +308,18 @@ function getFolderInfo({
|
|
325
308
|
folder_id
|
326
309
|
}) {
|
327
310
|
return axiosInstance({
|
328
|
-
operationId: "getFolderInfo",
|
329
311
|
method: "get",
|
330
312
|
url: "/folders/" + folder_id
|
331
313
|
});
|
332
314
|
}
|
333
315
|
function moveFolders({
|
334
316
|
folder_id,
|
335
|
-
|
317
|
+
folder_ids
|
336
318
|
}) {
|
337
319
|
return axiosInstance({
|
338
|
-
operationId: "moveFolders",
|
339
320
|
method: "put",
|
340
321
|
url: "/folders/" + folder_id,
|
341
|
-
data:
|
322
|
+
data: folder_ids
|
342
323
|
});
|
343
324
|
}
|
344
325
|
function updateFolder({
|
@@ -346,7 +327,6 @@ function updateFolder({
|
|
346
327
|
name
|
347
328
|
}) {
|
348
329
|
return axiosInstance({
|
349
|
-
operationId: "updateFolder",
|
350
330
|
method: "patch",
|
351
331
|
url: "/folders/" + folder_id,
|
352
332
|
data: {
|
@@ -358,7 +338,6 @@ function deleteFolder({
|
|
358
338
|
folder_id
|
359
339
|
}) {
|
360
340
|
return axiosInstance({
|
361
|
-
operationId: "deleteFolder",
|
362
341
|
method: "delete",
|
363
342
|
url: "/folders/" + folder_id
|
364
343
|
});
|
@@ -367,7 +346,6 @@ function listFolderAccesses({
|
|
367
346
|
folder_id
|
368
347
|
}) {
|
369
348
|
return axiosInstance({
|
370
|
-
operationId: "listFolderAccesses",
|
371
349
|
method: "get",
|
372
350
|
url: "/folders/" + folder_id + "/access"
|
373
351
|
});
|
@@ -379,7 +357,6 @@ function grantMemberAccessToFolder({
|
|
379
357
|
access
|
380
358
|
}) {
|
381
359
|
return axiosInstance({
|
382
|
-
operationId: "grantMemberAccessToFolder",
|
383
360
|
method: "put",
|
384
361
|
url: "/folders/" + folder_id + "/access/" + member_type + "/" + member_id,
|
385
362
|
data: {
|
@@ -393,7 +370,6 @@ function revokeMemberAccessToFolder({
|
|
393
370
|
member_id
|
394
371
|
}) {
|
395
372
|
return axiosInstance({
|
396
|
-
operationId: "revokeMemberAccessToFolder",
|
397
373
|
method: "delete",
|
398
374
|
url: "/folders/" + folder_id + "/access/" + member_type + "/" + member_id
|
399
375
|
});
|
@@ -404,7 +380,6 @@ function createSubfolder({
|
|
404
380
|
subfolders
|
405
381
|
}) {
|
406
382
|
return axiosInstance({
|
407
|
-
operationId: "createSubfolder",
|
408
383
|
method: "post",
|
409
384
|
url: "/folders/" + folder_id + "/folders",
|
410
385
|
data: {
|
@@ -418,7 +393,6 @@ function listFolderSubFolders({
|
|
418
393
|
depth = 0
|
419
394
|
}) {
|
420
395
|
return axiosInstance({
|
421
|
-
operationId: "listFolderSubFolders",
|
422
396
|
method: "get",
|
423
397
|
url: "/folders/" + folder_id + "/folders",
|
424
398
|
params: {
|
@@ -432,7 +406,6 @@ function getSourceFilesInFolder({
|
|
432
406
|
limit = 10
|
433
407
|
}) {
|
434
408
|
return axiosInstance({
|
435
|
-
operationId: "getSourceFilesInFolder",
|
436
409
|
method: "get",
|
437
410
|
url: "/folders/" + folder_id + "/source-files",
|
438
411
|
params: {
|
@@ -443,13 +416,12 @@ function getSourceFilesInFolder({
|
|
443
416
|
}
|
444
417
|
function moveSourceFiles({
|
445
418
|
folder_id,
|
446
|
-
|
419
|
+
source_file_ids
|
447
420
|
}) {
|
448
421
|
return axiosInstance({
|
449
|
-
operationId: "moveSourceFiles",
|
450
422
|
method: "put",
|
451
423
|
url: "/folders/" + folder_id + "/source-files",
|
452
|
-
data:
|
424
|
+
data: source_file_ids
|
453
425
|
});
|
454
426
|
}
|
455
427
|
function getUploadTasksInFolder({
|
@@ -458,7 +430,6 @@ function getUploadTasksInFolder({
|
|
458
430
|
limit = 10
|
459
431
|
}) {
|
460
432
|
return axiosInstance({
|
461
|
-
operationId: "getUploadTasksInFolder",
|
462
433
|
method: "get",
|
463
434
|
url: "/folders/" + folder_id + "/upload-tasks",
|
464
435
|
params: {
|
@@ -474,7 +445,6 @@ function getFolderAssets({
|
|
474
445
|
filter
|
475
446
|
}) {
|
476
447
|
return axiosInstance({
|
477
|
-
operationId: "getFolderAssets",
|
478
448
|
method: "get",
|
479
449
|
url: "/folders/" + folder_id + "/assets",
|
480
450
|
params: {
|
@@ -484,34 +454,30 @@ function getFolderAssets({
|
|
484
454
|
}
|
485
455
|
});
|
486
456
|
}
|
487
|
-
function
|
457
|
+
function createAsset({
|
488
458
|
folder_id,
|
489
|
-
|
459
|
+
asset_creation_options
|
490
460
|
}) {
|
491
461
|
return axiosInstance({
|
492
|
-
|
493
|
-
method: "put",
|
462
|
+
method: "post",
|
494
463
|
url: "/folders/" + folder_id + "/assets",
|
495
|
-
data:
|
464
|
+
data: asset_creation_options
|
496
465
|
});
|
497
466
|
}
|
498
|
-
function
|
467
|
+
function moveAssets({
|
499
468
|
folder_id,
|
500
|
-
|
501
|
-
assetCreationOptions
|
469
|
+
asset_ids
|
502
470
|
}) {
|
503
471
|
return axiosInstance({
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
data: assetCreationOptions
|
472
|
+
method: "put",
|
473
|
+
url: "/folders/" + folder_id + "/assets",
|
474
|
+
data: asset_ids
|
508
475
|
});
|
509
476
|
}
|
510
477
|
function getSessionsInFolder({
|
511
478
|
folder_id
|
512
479
|
}) {
|
513
480
|
return axiosInstance({
|
514
|
-
operationId: "getSessionsInFolder",
|
515
481
|
method: "get",
|
516
482
|
url: "/folders/" + folder_id + "/sessions"
|
517
483
|
});
|
@@ -521,7 +487,6 @@ function listSourceFiles({
|
|
521
487
|
limit = 10
|
522
488
|
}) {
|
523
489
|
return axiosInstance({
|
524
|
-
operationId: "listSourceFiles",
|
525
490
|
method: "get",
|
526
491
|
url: "/source-files",
|
527
492
|
params: {
|
@@ -531,20 +496,18 @@ function listSourceFiles({
|
|
531
496
|
});
|
532
497
|
}
|
533
498
|
function deleteSourceFiles({
|
534
|
-
|
499
|
+
source_file_ids
|
535
500
|
}) {
|
536
501
|
return axiosInstance({
|
537
|
-
operationId: "deleteSourceFiles",
|
538
502
|
method: "delete",
|
539
503
|
url: "/source-files",
|
540
|
-
data:
|
504
|
+
data: source_file_ids
|
541
505
|
});
|
542
506
|
}
|
543
507
|
function downloadSourceFile({
|
544
508
|
source_file_id
|
545
509
|
}) {
|
546
510
|
return axiosInstance({
|
547
|
-
operationId: "downloadSourceFile",
|
548
511
|
method: "get",
|
549
512
|
url: "/source-files/" + source_file_id,
|
550
513
|
responseType: "arraybuffer"
|
@@ -554,7 +517,6 @@ function getSourceFileDetails({
|
|
554
517
|
source_file_id
|
555
518
|
}) {
|
556
519
|
return axiosInstance({
|
557
|
-
operationId: "getSourceFileDetails",
|
558
520
|
method: "get",
|
559
521
|
url: "/source-files/" + source_file_id + "/details"
|
560
522
|
});
|
@@ -564,7 +526,6 @@ function updateSourceFileDetails({
|
|
564
526
|
name
|
565
527
|
}) {
|
566
528
|
return axiosInstance({
|
567
|
-
operationId: "updateSourceFileDetails",
|
568
529
|
method: "patch",
|
569
530
|
url: "/source-files/" + source_file_id + "/details",
|
570
531
|
data: {
|
@@ -576,7 +537,6 @@ function getSourceFileAssets({
|
|
576
537
|
source_file_id
|
577
538
|
}) {
|
578
539
|
return axiosInstance({
|
579
|
-
operationId: "getSourceFileAssets",
|
580
540
|
method: "get",
|
581
541
|
url: "/source-files/" + source_file_id + "/assets"
|
582
542
|
});
|
@@ -586,7 +546,6 @@ function getUploadTasks({
|
|
586
546
|
limit = 10
|
587
547
|
}) {
|
588
548
|
return axiosInstance({
|
589
|
-
operationId: "getUploadTasks",
|
590
549
|
method: "get",
|
591
550
|
url: "/upload-tasks",
|
592
551
|
params: {
|
@@ -599,7 +558,6 @@ function getUploadTask({
|
|
599
558
|
upload_task_id
|
600
559
|
}) {
|
601
560
|
return axiosInstance({
|
602
|
-
operationId: "getUploadTask",
|
603
561
|
method: "get",
|
604
562
|
url: "/upload-tasks/" + upload_task_id
|
605
563
|
});
|
@@ -609,7 +567,6 @@ function listAssets({
|
|
609
567
|
limit = 10
|
610
568
|
}) {
|
611
569
|
return axiosInstance({
|
612
|
-
operationId: "listAssets",
|
613
570
|
method: "get",
|
614
571
|
url: "/assets",
|
615
572
|
params: {
|
@@ -619,13 +576,12 @@ function listAssets({
|
|
619
576
|
});
|
620
577
|
}
|
621
578
|
function deleteAssets({
|
622
|
-
|
579
|
+
asset_ids
|
623
580
|
}) {
|
624
581
|
return axiosInstance({
|
625
|
-
operationId: "deleteAssets",
|
626
582
|
method: "delete",
|
627
583
|
url: "/assets",
|
628
|
-
data:
|
584
|
+
data: asset_ids
|
629
585
|
});
|
630
586
|
}
|
631
587
|
function deleteAsset({
|
@@ -633,7 +589,6 @@ function deleteAsset({
|
|
633
589
|
asset_id
|
634
590
|
}) {
|
635
591
|
return axiosInstance({
|
636
|
-
operationId: "deleteAsset",
|
637
592
|
method: "delete",
|
638
593
|
url: "/assets/" + asset_container + "/" + asset_id
|
639
594
|
});
|
@@ -643,7 +598,6 @@ function getAssetSourceFile({
|
|
643
598
|
asset_id
|
644
599
|
}) {
|
645
600
|
return axiosInstance({
|
646
|
-
operationId: "getAssetSourceFile",
|
647
601
|
method: "get",
|
648
602
|
url: "/assets/" + asset_container + "/" + asset_id + "/source-file"
|
649
603
|
});
|
@@ -653,7 +607,6 @@ function getAssetDetails({
|
|
653
607
|
asset_id
|
654
608
|
}) {
|
655
609
|
return axiosInstance({
|
656
|
-
operationId: "getAssetDetails",
|
657
610
|
method: "get",
|
658
611
|
url: "/assets/" + asset_container + "/" + asset_id + "/details"
|
659
612
|
});
|
@@ -663,7 +616,6 @@ function getAssetFolder({
|
|
663
616
|
asset_id
|
664
617
|
}) {
|
665
618
|
return axiosInstance({
|
666
|
-
operationId: "getAssetFolder",
|
667
619
|
method: "get",
|
668
620
|
url: "/assets/" + asset_container + "/" + asset_id + "/folder"
|
669
621
|
});
|
@@ -676,7 +628,6 @@ function getAssetDependencies({
|
|
676
628
|
filter
|
677
629
|
}) {
|
678
630
|
return axiosInstance({
|
679
|
-
operationId: "getAssetDependencies",
|
680
631
|
method: "get",
|
681
632
|
url: "/assets/" + asset_container + "/" + asset_id + "/dependencies",
|
682
633
|
params: {
|
@@ -691,7 +642,6 @@ function getAssetReferences({
|
|
691
642
|
asset_id
|
692
643
|
}) {
|
693
644
|
return axiosInstance({
|
694
|
-
operationId: "getAssetReferences",
|
695
645
|
method: "get",
|
696
646
|
url: "/assets/" + asset_container + "/" + asset_id + "/references"
|
697
647
|
});
|
@@ -701,7 +651,6 @@ function getAssetDescription({
|
|
701
651
|
asset_id
|
702
652
|
}) {
|
703
653
|
return axiosInstance({
|
704
|
-
operationId: "getAssetDescription",
|
705
654
|
method: "get",
|
706
655
|
url: "/assets/" + asset_container + "/" + asset_id + "/description"
|
707
656
|
});
|
@@ -712,7 +661,6 @@ function renameAsset({
|
|
712
661
|
name
|
713
662
|
}) {
|
714
663
|
return axiosInstance({
|
715
|
-
operationId: "renameAsset",
|
716
664
|
method: "patch",
|
717
665
|
url: "/assets/" + asset_container + "/" + asset_id + "/description",
|
718
666
|
data: {
|
@@ -725,7 +673,6 @@ function getAssetPayload({
|
|
725
673
|
asset_id
|
726
674
|
}) {
|
727
675
|
return axiosInstance({
|
728
|
-
operationId: "getAssetPayload",
|
729
676
|
method: "get",
|
730
677
|
url: "/assets/" + asset_container_with_payload + "/" + asset_id + "/payload",
|
731
678
|
responseType: "arraybuffer"
|
@@ -736,7 +683,6 @@ function getAssetHistory({
|
|
736
683
|
asset_id
|
737
684
|
}) {
|
738
685
|
return axiosInstance({
|
739
|
-
operationId: "getAssetHistory",
|
740
686
|
method: "get",
|
741
687
|
url: "/assets/" + asset_container + "/" + asset_id + "/history"
|
742
688
|
});
|
@@ -746,7 +692,6 @@ function getAssetMeta({
|
|
746
692
|
asset_id
|
747
693
|
}) {
|
748
694
|
return axiosInstance({
|
749
|
-
operationId: "getAssetMeta",
|
750
695
|
method: "get",
|
751
696
|
url: "/assets/" + asset_container + "/" + asset_id + "/meta"
|
752
697
|
});
|
@@ -756,7 +701,6 @@ function getAssetCode({
|
|
756
701
|
asset_id
|
757
702
|
}) {
|
758
703
|
return axiosInstance({
|
759
|
-
operationId: "getAssetCode",
|
760
704
|
method: "get",
|
761
705
|
url: "/assets/" + asset_container_with_code + "/" + asset_id + "/code"
|
762
706
|
});
|
@@ -768,7 +712,6 @@ function getAssetThumbnail({
|
|
768
712
|
default_url
|
769
713
|
}) {
|
770
714
|
return axiosInstance({
|
771
|
-
operationId: "getAssetThumbnail",
|
772
715
|
method: "get",
|
773
716
|
url: "/assets/" + asset_container + "/" + asset_id + "/thumbnail",
|
774
717
|
responseType: "arraybuffer",
|
@@ -784,7 +727,6 @@ function setAssetThumbnail({
|
|
784
727
|
body
|
785
728
|
}, contentType) {
|
786
729
|
return axiosInstance({
|
787
|
-
operationId: "setAssetThumbnail",
|
788
730
|
method: "put",
|
789
731
|
url: "/assets/" + asset_container + "/" + asset_id + "/thumbnail",
|
790
732
|
headers: {
|
@@ -798,7 +740,6 @@ function getAssetCustomTypes({
|
|
798
740
|
asset_id
|
799
741
|
}) {
|
800
742
|
return axiosInstance({
|
801
|
-
operationId: "getAssetCustomTypes",
|
802
743
|
method: "get",
|
803
744
|
url: "/assets/" + asset_container_with_custom_types + "/" + asset_id + "/custom-types"
|
804
745
|
});
|
@@ -808,7 +749,6 @@ function packageAsset({
|
|
808
749
|
asset_id
|
809
750
|
}) {
|
810
751
|
return axiosInstance({
|
811
|
-
operationId: "packageAsset",
|
812
752
|
method: "get",
|
813
753
|
url: "/assets/" + asset_container + "/" + asset_id + "/package",
|
814
754
|
responseType: "arraybuffer"
|
@@ -821,7 +761,6 @@ function exportAsset({
|
|
821
761
|
scale = 1
|
822
762
|
}) {
|
823
763
|
return axiosInstance({
|
824
|
-
operationId: "exportAsset",
|
825
764
|
method: "get",
|
826
765
|
url: "/assets/" + asset_container_exportable + "/" + asset_id + "/exports/" + format,
|
827
766
|
responseType: "arraybuffer",
|
@@ -834,7 +773,6 @@ function getSceneSessions({
|
|
834
773
|
scene_id
|
835
774
|
}) {
|
836
775
|
return axiosInstance({
|
837
|
-
operationId: "getSceneSessions",
|
838
776
|
method: "get",
|
839
777
|
url: "/assets/scenes/" + scene_id + "/sessions"
|
840
778
|
});
|
@@ -843,7 +781,6 @@ function getSceneAABB({
|
|
843
781
|
scene_id
|
844
782
|
}) {
|
845
783
|
return axiosInstance({
|
846
|
-
operationId: "getSceneAABB",
|
847
784
|
method: "get",
|
848
785
|
url: "/assets/scenes/" + scene_id + "/aabb"
|
849
786
|
});
|
@@ -854,7 +791,6 @@ function getEntity({
|
|
854
791
|
compute_global_transform = false
|
855
792
|
}) {
|
856
793
|
return axiosInstance({
|
857
|
-
operationId: "getEntity",
|
858
794
|
method: "get",
|
859
795
|
url: "/assets/scenes/" + scene_id + "/entities/" + entity_id,
|
860
796
|
params: {
|
@@ -865,13 +801,12 @@ function getEntity({
|
|
865
801
|
function updateEntity({
|
866
802
|
scene_id,
|
867
803
|
entity_id,
|
868
|
-
|
804
|
+
entity_components
|
869
805
|
}) {
|
870
806
|
return axiosInstance({
|
871
|
-
operationId: "updateEntity",
|
872
807
|
method: "patch",
|
873
808
|
url: "/assets/scenes/" + scene_id + "/entities/" + entity_id,
|
874
|
-
data:
|
809
|
+
data: entity_components
|
875
810
|
});
|
876
811
|
}
|
877
812
|
function deleteEntity({
|
@@ -879,7 +814,6 @@ function deleteEntity({
|
|
879
814
|
entity_id
|
880
815
|
}) {
|
881
816
|
return axiosInstance({
|
882
|
-
operationId: "deleteEntity",
|
883
817
|
method: "delete",
|
884
818
|
url: "/assets/scenes/" + scene_id + "/entities/" + entity_id
|
885
819
|
});
|
@@ -889,7 +823,6 @@ function createSession({
|
|
889
823
|
renderer_version
|
890
824
|
}) {
|
891
825
|
return axiosInstance({
|
892
|
-
operationId: "createSession",
|
893
826
|
method: "post",
|
894
827
|
url: "/sessions",
|
895
828
|
data: {
|
@@ -902,7 +835,6 @@ function getSession({
|
|
902
835
|
session_id
|
903
836
|
}) {
|
904
837
|
return axiosInstance({
|
905
|
-
operationId: "getSession",
|
906
838
|
method: "get",
|
907
839
|
url: "/sessions/" + session_id
|
908
840
|
});
|
@@ -911,7 +843,6 @@ function killSession({
|
|
911
843
|
session_id
|
912
844
|
}) {
|
913
845
|
return axiosInstance({
|
914
|
-
operationId: "killSession",
|
915
846
|
method: "delete",
|
916
847
|
url: "/sessions/" + session_id
|
917
848
|
});
|
@@ -920,7 +851,6 @@ function joinSession({
|
|
920
851
|
session_id
|
921
852
|
}) {
|
922
853
|
return axiosInstance({
|
923
|
-
operationId: "joinSession",
|
924
854
|
method: "post",
|
925
855
|
url: "/sessions/" + session_id + "/clients"
|
926
856
|
});
|
@@ -930,14 +860,12 @@ function kickClientFromSession({
|
|
930
860
|
client_id
|
931
861
|
}) {
|
932
862
|
return axiosInstance({
|
933
|
-
operationId: "kickClientFromSession",
|
934
863
|
method: "delete",
|
935
864
|
url: "/sessions/" + session_id + "/clients/" + client_id
|
936
865
|
});
|
937
866
|
}
|
938
867
|
function joinSessionAsGuest() {
|
939
868
|
return axiosInstance({
|
940
|
-
operationId: "joinSessionAsGuest",
|
941
869
|
method: "post",
|
942
870
|
url: "/sessions/guests"
|
943
871
|
});
|
@@ -946,7 +874,6 @@ function generateGuestToken({
|
|
946
874
|
session_id
|
947
875
|
}) {
|
948
876
|
return axiosInstance({
|
949
|
-
operationId: "generateGuestToken",
|
950
877
|
method: "post",
|
951
878
|
url: "/sessions/" + session_id + "/guests"
|
952
879
|
});
|
@@ -1037,7 +964,6 @@ function uploadSourceFiles({
|
|
1037
964
|
onUploadProgress
|
1038
965
|
}) {
|
1039
966
|
return axiosInstance({
|
1040
|
-
operationId: "uploadSourceFiles",
|
1041
967
|
method: "post",
|
1042
968
|
url: `/folders/${folder_id}/source-files`,
|
1043
969
|
headers: {
|