@3dverse/api 0.10.1 → 0.11.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/README.md +0 -1
- package/dist/_prebuild/wrapper.d.ts +4096 -921
- package/dist/index.js +211 -370
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +192 -339
- package/dist/index.mjs.map +2 -2
- package/package.json +4 -3
package/dist/index.js
CHANGED
|
@@ -30,34 +30,32 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
30
30
|
var index_exports = {};
|
|
31
31
|
__export(index_exports, {
|
|
32
32
|
ApiError: () => ApiError,
|
|
33
|
-
AssetSourceFileNotFound: () => AssetSourceFileNotFound,
|
|
34
33
|
ConversionTaskNotFound: () => ConversionTaskNotFound,
|
|
35
|
-
EnvironmentMismatch: () => EnvironmentMismatch,
|
|
36
34
|
InsufficientPermissions: () => InsufficientPermissions,
|
|
37
35
|
InsufficientSecurityScope: () => InsufficientSecurityScope,
|
|
38
36
|
InvalidApiKey: () => InvalidApiKey,
|
|
39
37
|
InvalidAuthorization: () => InvalidAuthorization,
|
|
40
38
|
InvalidGuestToken: () => InvalidGuestToken,
|
|
41
39
|
InvalidMaterial: () => InvalidMaterial,
|
|
40
|
+
InvalidParameter: () => InvalidParameter,
|
|
42
41
|
InvalidRequest: () => InvalidRequest,
|
|
43
42
|
InvalidTokenTtl: () => InvalidTokenTtl,
|
|
43
|
+
LogsUnavailable: () => LogsUnavailable,
|
|
44
|
+
MemberAccessesDiffer: () => MemberAccessesDiffer,
|
|
44
45
|
MissingAuthorizationHeader: () => MissingAuthorizationHeader,
|
|
45
46
|
NoFileUploaded: () => NoFileUploaded,
|
|
46
47
|
ServiceErrorResponse: () => ServiceErrorResponse,
|
|
48
|
+
TooManyRequests: () => TooManyRequests,
|
|
47
49
|
Unauthorized: () => Unauthorized,
|
|
48
50
|
UnexpectedServiceError: () => UnexpectedServiceError,
|
|
49
51
|
UploadAborted: () => UploadAborted,
|
|
50
52
|
UploadTaskNotFound: () => UploadTaskNotFound,
|
|
51
53
|
UploadedPayloadTooLarge: () => UploadedPayloadTooLarge,
|
|
52
54
|
axiosInstance: () => axiosInstance,
|
|
53
|
-
confirmDuplicationRequest: () => confirmDuplicationRequest,
|
|
54
55
|
createAsset: () => createAsset,
|
|
55
|
-
createCubemap: () => createCubemap,
|
|
56
|
-
createDuplicationRequest: () => createDuplicationRequest,
|
|
57
56
|
createEntity: () => createEntity,
|
|
58
57
|
createFolder: () => createFolder,
|
|
59
58
|
createGroup: () => createGroup,
|
|
60
|
-
createMaterial: () => createMaterial,
|
|
61
59
|
createSession: () => createSession,
|
|
62
60
|
createSubfolder: () => createSubfolder,
|
|
63
61
|
deleteAsset: () => deleteAsset,
|
|
@@ -67,60 +65,52 @@ __export(index_exports, {
|
|
|
67
65
|
deleteGroup: () => deleteGroup,
|
|
68
66
|
deleteSourceFiles: () => deleteSourceFiles,
|
|
69
67
|
deleteUser: () => deleteUser,
|
|
70
|
-
discardDuplicationRequest: () => discardDuplicationRequest,
|
|
71
68
|
errorOf: () => errorOf,
|
|
72
69
|
exportAsset: () => exportAsset,
|
|
73
70
|
generateGuestToken: () => generateGuestToken,
|
|
74
71
|
generateUserToken: () => generateUserToken,
|
|
75
72
|
getAssetCode: () => getAssetCode,
|
|
76
|
-
getAssetDependencies: () => getAssetDependencies,
|
|
77
73
|
getAssetDescription: () => getAssetDescription,
|
|
78
74
|
getAssetDetails: () => getAssetDetails,
|
|
79
|
-
getAssetFolder: () => getAssetFolder,
|
|
80
75
|
getAssetGraph: () => getAssetGraph,
|
|
81
76
|
getAssetHistory: () => getAssetHistory,
|
|
82
|
-
getAssetMeta: () => getAssetMeta,
|
|
83
77
|
getAssetPayload: () => getAssetPayload,
|
|
84
|
-
getAssetReferences: () => getAssetReferences,
|
|
85
|
-
getAssetSourceFile: () => getAssetSourceFile,
|
|
86
78
|
getAssetThumbnail: () => getAssetThumbnail,
|
|
87
79
|
getClient: () => getClient,
|
|
80
|
+
getConversionTaskLogs: () => getConversionTaskLogs,
|
|
88
81
|
getConversionTaskMetadata: () => getConversionTaskMetadata,
|
|
89
82
|
getCurrentUser: () => getCurrentUser,
|
|
90
83
|
getDuplicationRequest: () => getDuplicationRequest,
|
|
91
84
|
getEntity: () => getEntity,
|
|
92
|
-
|
|
93
|
-
getFolderInfo: () => getFolderInfo,
|
|
85
|
+
getFolder: () => getFolder,
|
|
94
86
|
getGroup: () => getGroup,
|
|
95
|
-
getPipeline: () => getPipeline,
|
|
96
|
-
getRunningSessions: () => getRunningSessions,
|
|
97
87
|
getSceneAABB: () => getSceneAABB,
|
|
98
|
-
getSceneSessions: () => getSceneSessions,
|
|
99
88
|
getSceneSettings: () => getSceneSettings,
|
|
100
89
|
getSession: () => getSession,
|
|
101
|
-
|
|
102
|
-
getSourceFileAssets: () => getSourceFileAssets,
|
|
103
|
-
getSourceFileDetails: () => getSourceFileDetails,
|
|
104
|
-
getSourceFilesInFolder: () => getSourceFilesInFolder,
|
|
90
|
+
getSourceFile: () => getSourceFile,
|
|
105
91
|
getSupportedSourceFileFormats: () => getSupportedSourceFileFormats,
|
|
106
92
|
getUploadTask: () => getUploadTask,
|
|
107
|
-
getUploadTasks: () => getUploadTasks,
|
|
108
|
-
getUploadTasksInFolder: () => getUploadTasksInFolder,
|
|
109
93
|
getUser: () => getUser,
|
|
110
|
-
getUserGroups: () => getUserGroups,
|
|
111
|
-
getUserUploadTasks: () => getUserUploadTasks,
|
|
112
94
|
grantMemberAccessToFolder: () => grantMemberAccessToFolder,
|
|
113
95
|
grantMemberAccessToGroup: () => grantMemberAccessToGroup,
|
|
114
96
|
joinSession: () => joinSession,
|
|
115
97
|
joinSessionAsGuest: () => joinSessionAsGuest,
|
|
116
98
|
kickClientFromSession: () => kickClientFromSession,
|
|
117
99
|
killSession: () => killSession,
|
|
100
|
+
listAssetDependencies: () => listAssetDependencies,
|
|
101
|
+
listAssetReferences: () => listAssetReferences,
|
|
118
102
|
listAssets: () => listAssets,
|
|
119
|
-
listDuplicationRequests: () => listDuplicationRequests,
|
|
120
103
|
listFolderAccesses: () => listFolderAccesses,
|
|
121
|
-
|
|
104
|
+
listFolderAssets: () => listFolderAssets,
|
|
105
|
+
listFolderSourceFiles: () => listFolderSourceFiles,
|
|
106
|
+
listFolderSubfolders: () => listFolderSubfolders,
|
|
107
|
+
listFolderUploadTasks: () => listFolderUploadTasks,
|
|
122
108
|
listFolders: () => listFolders,
|
|
109
|
+
listRunningSessions: () => listRunningSessions,
|
|
110
|
+
listSourceFileAssets: () => listSourceFileAssets,
|
|
123
111
|
listSourceFiles: () => listSourceFiles,
|
|
112
|
+
listUploadTasks: () => listUploadTasks,
|
|
113
|
+
listUserGroups: () => listUserGroups,
|
|
124
114
|
listUsers: () => listUsers,
|
|
125
115
|
moveAssets: () => moveAssets,
|
|
126
116
|
moveFolders: () => moveFolders,
|
|
@@ -130,19 +120,17 @@ __export(index_exports, {
|
|
|
130
120
|
renameAsset: () => renameAsset,
|
|
131
121
|
revokeMemberAccessToFolder: () => revokeMemberAccessToFolder,
|
|
132
122
|
revokeMemberAccessToGroup: () => revokeMemberAccessToGroup,
|
|
133
|
-
schedulePipeline: () => schedulePipeline,
|
|
134
123
|
setApiKey: () => setApiKey,
|
|
135
124
|
setAssetThumbnail: () => setAssetThumbnail,
|
|
136
125
|
setBaseURL: () => setBaseURL,
|
|
137
126
|
setUserToken: () => setUserToken,
|
|
138
127
|
updateAssetDescription: () => updateAssetDescription,
|
|
139
128
|
updateAssetGraph: () => updateAssetGraph,
|
|
140
|
-
updateDuplicationRequest: () => updateDuplicationRequest,
|
|
141
129
|
updateEntity: () => updateEntity,
|
|
142
130
|
updateFolder: () => updateFolder,
|
|
143
|
-
|
|
131
|
+
updateGroup: () => updateGroup,
|
|
144
132
|
updateSceneSettings: () => updateSceneSettings,
|
|
145
|
-
|
|
133
|
+
updateSourceFile: () => updateSourceFile,
|
|
146
134
|
updateUser: () => updateUser,
|
|
147
135
|
uploadSourceFiles: () => uploadSourceFiles
|
|
148
136
|
});
|
|
@@ -195,20 +183,6 @@ var axiosInstance = import_axios.default.create({
|
|
|
195
183
|
function setBaseURL(baseURL) {
|
|
196
184
|
axiosInstance.defaults.baseURL = baseURL;
|
|
197
185
|
}
|
|
198
|
-
var AssetSourceFileNotFound = class extends ServiceErrorResponse {
|
|
199
|
-
static ERROR_CODE = 1018;
|
|
200
|
-
constructor(serviceError) {
|
|
201
|
-
super(1018, 404, "The asset was imported from no source file", serviceError);
|
|
202
|
-
Object.assign(this, serviceError);
|
|
203
|
-
}
|
|
204
|
-
};
|
|
205
|
-
var InsufficientPermissions = class extends ServiceErrorResponse {
|
|
206
|
-
static ERROR_CODE = 1002;
|
|
207
|
-
constructor(serviceError) {
|
|
208
|
-
super(1002, 403, "Insufficient permissions", serviceError);
|
|
209
|
-
Object.assign(this, serviceError);
|
|
210
|
-
}
|
|
211
|
-
};
|
|
212
186
|
var InvalidAuthorization = class extends ServiceErrorResponse {
|
|
213
187
|
static ERROR_CODE = 1003;
|
|
214
188
|
constructor(serviceError) {
|
|
@@ -223,45 +197,45 @@ var InsufficientSecurityScope = class extends ServiceErrorResponse {
|
|
|
223
197
|
Object.assign(this, serviceError);
|
|
224
198
|
}
|
|
225
199
|
};
|
|
226
|
-
var
|
|
227
|
-
static ERROR_CODE =
|
|
200
|
+
var InsufficientPermissions = class extends ServiceErrorResponse {
|
|
201
|
+
static ERROR_CODE = 1002;
|
|
228
202
|
constructor(serviceError) {
|
|
229
|
-
super(
|
|
203
|
+
super(1002, 403, "Insufficient permissions", serviceError);
|
|
230
204
|
Object.assign(this, serviceError);
|
|
231
205
|
}
|
|
232
206
|
};
|
|
233
|
-
var
|
|
234
|
-
static ERROR_CODE =
|
|
207
|
+
var InvalidTokenTtl = class extends ServiceErrorResponse {
|
|
208
|
+
static ERROR_CODE = 1017;
|
|
235
209
|
constructor(serviceError) {
|
|
236
|
-
super(
|
|
210
|
+
super(1017, 400, "The time to live of a user token is a duration from 1 minute to 14 days", serviceError);
|
|
237
211
|
Object.assign(this, serviceError);
|
|
238
212
|
}
|
|
239
213
|
};
|
|
240
|
-
var
|
|
241
|
-
static ERROR_CODE =
|
|
214
|
+
var InvalidParameter = class extends ServiceErrorResponse {
|
|
215
|
+
static ERROR_CODE = 1;
|
|
242
216
|
constructor(serviceError) {
|
|
243
|
-
super(
|
|
217
|
+
super(1, 400, "Invalid parameter", serviceError);
|
|
244
218
|
Object.assign(this, serviceError);
|
|
245
219
|
}
|
|
246
220
|
};
|
|
247
|
-
var
|
|
248
|
-
static ERROR_CODE =
|
|
221
|
+
var MemberAccessesDiffer = class extends ServiceErrorResponse {
|
|
222
|
+
static ERROR_CODE = 1020;
|
|
249
223
|
constructor(serviceError) {
|
|
250
|
-
super(
|
|
224
|
+
super(1020, 422, "A member's group and folder accesses differ, while it holds a single role", serviceError);
|
|
251
225
|
Object.assign(this, serviceError);
|
|
252
226
|
}
|
|
253
227
|
};
|
|
254
|
-
var
|
|
255
|
-
static ERROR_CODE =
|
|
228
|
+
var InvalidMaterial = class extends ServiceErrorResponse {
|
|
229
|
+
static ERROR_CODE = 1013;
|
|
256
230
|
constructor(serviceError) {
|
|
257
|
-
super(
|
|
231
|
+
super(1013, 400, "Some of the asset ids are not materials", serviceError);
|
|
258
232
|
Object.assign(this, serviceError);
|
|
259
233
|
}
|
|
260
234
|
};
|
|
261
|
-
var
|
|
262
|
-
static ERROR_CODE =
|
|
235
|
+
var InvalidRequest = class extends ServiceErrorResponse {
|
|
236
|
+
static ERROR_CODE = 1014;
|
|
263
237
|
constructor(serviceError) {
|
|
264
|
-
super(
|
|
238
|
+
super(1014, 400, "Invalid request", serviceError);
|
|
265
239
|
Object.assign(this, serviceError);
|
|
266
240
|
}
|
|
267
241
|
};
|
|
@@ -293,45 +267,75 @@ var UploadTaskNotFound = class extends ServiceErrorResponse {
|
|
|
293
267
|
Object.assign(this, serviceError);
|
|
294
268
|
}
|
|
295
269
|
};
|
|
296
|
-
var
|
|
297
|
-
static ERROR_CODE =
|
|
270
|
+
var ConversionTaskNotFound = class extends ServiceErrorResponse {
|
|
271
|
+
static ERROR_CODE = 1015;
|
|
298
272
|
constructor(serviceError) {
|
|
299
|
-
super(
|
|
273
|
+
super(1015, 404, "Conversion task not found", serviceError);
|
|
300
274
|
Object.assign(this, serviceError);
|
|
301
275
|
}
|
|
302
276
|
};
|
|
303
|
-
var
|
|
304
|
-
static ERROR_CODE =
|
|
277
|
+
var LogsUnavailable = class extends ServiceErrorResponse {
|
|
278
|
+
static ERROR_CODE = 1019;
|
|
305
279
|
constructor(serviceError) {
|
|
306
|
-
super(
|
|
280
|
+
super(1019, 502, "Logs unavailable", serviceError);
|
|
307
281
|
Object.assign(this, serviceError);
|
|
308
282
|
}
|
|
309
283
|
};
|
|
310
|
-
var
|
|
311
|
-
static ERROR_CODE =
|
|
284
|
+
var InvalidGuestToken = class extends ServiceErrorResponse {
|
|
285
|
+
static ERROR_CODE = 1016;
|
|
312
286
|
constructor(serviceError) {
|
|
313
|
-
super(
|
|
287
|
+
super(1016, 403, "You are not allowed to use this guest token for this session", serviceError);
|
|
288
|
+
Object.assign(this, serviceError);
|
|
289
|
+
}
|
|
290
|
+
};
|
|
291
|
+
var Unauthorized = class extends ServiceErrorResponse {
|
|
292
|
+
static ERROR_CODE = 1005;
|
|
293
|
+
constructor(serviceError) {
|
|
294
|
+
super(1005, 401, "Invalid or expired token", serviceError);
|
|
295
|
+
Object.assign(this, serviceError);
|
|
296
|
+
}
|
|
297
|
+
};
|
|
298
|
+
var MissingAuthorizationHeader = class extends ServiceErrorResponse {
|
|
299
|
+
static ERROR_CODE = 1011;
|
|
300
|
+
constructor(serviceError) {
|
|
301
|
+
super(1011, 401, "Missing api key or user token", serviceError);
|
|
302
|
+
Object.assign(this, serviceError);
|
|
303
|
+
}
|
|
304
|
+
};
|
|
305
|
+
var InvalidApiKey = class extends ServiceErrorResponse {
|
|
306
|
+
static ERROR_CODE = 1012;
|
|
307
|
+
constructor(serviceError) {
|
|
308
|
+
super(1012, 401, "Invalid api key", serviceError);
|
|
309
|
+
Object.assign(this, serviceError);
|
|
310
|
+
}
|
|
311
|
+
};
|
|
312
|
+
var TooManyRequests = class extends ServiceErrorResponse {
|
|
313
|
+
static ERROR_CODE = 1021;
|
|
314
|
+
constructor(serviceError) {
|
|
315
|
+
super(1021, 429, "Too many requests", serviceError);
|
|
314
316
|
Object.assign(this, serviceError);
|
|
315
317
|
}
|
|
316
318
|
};
|
|
317
319
|
var declaredErrors = {
|
|
318
|
-
1018: AssetSourceFileNotFound,
|
|
319
|
-
1002: InsufficientPermissions,
|
|
320
320
|
1003: InvalidAuthorization,
|
|
321
321
|
1004: InsufficientSecurityScope,
|
|
322
|
-
|
|
323
|
-
1006: EnvironmentMismatch,
|
|
324
|
-
1011: MissingAuthorizationHeader,
|
|
325
|
-
1012: InvalidApiKey,
|
|
326
|
-
1016: InvalidGuestToken,
|
|
322
|
+
1002: InsufficientPermissions,
|
|
327
323
|
1017: InvalidTokenTtl,
|
|
324
|
+
1: InvalidParameter,
|
|
325
|
+
1020: MemberAccessesDiffer,
|
|
326
|
+
1013: InvalidMaterial,
|
|
327
|
+
1014: InvalidRequest,
|
|
328
328
|
1007: UploadedPayloadTooLarge,
|
|
329
329
|
1008: NoFileUploaded,
|
|
330
330
|
1009: UploadAborted,
|
|
331
331
|
1010: UploadTaskNotFound,
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
332
|
+
1015: ConversionTaskNotFound,
|
|
333
|
+
1019: LogsUnavailable,
|
|
334
|
+
1016: InvalidGuestToken,
|
|
335
|
+
1005: Unauthorized,
|
|
336
|
+
1011: MissingAuthorizationHeader,
|
|
337
|
+
1012: InvalidApiKey,
|
|
338
|
+
1021: TooManyRequests
|
|
335
339
|
};
|
|
336
340
|
function errorOf(error) {
|
|
337
341
|
if (Object.values(declaredErrors).some((declared2) => error instanceof declared2)) {
|
|
@@ -355,6 +359,11 @@ function listUsers({
|
|
|
355
359
|
limit
|
|
356
360
|
},
|
|
357
361
|
headers
|
|
362
|
+
}).then((response) => {
|
|
363
|
+
if ("x-total-count" in response.headers) {
|
|
364
|
+
response.headers["x-total-count"] = JSON.parse(response.headers["x-total-count"]);
|
|
365
|
+
}
|
|
366
|
+
return response;
|
|
358
367
|
});
|
|
359
368
|
}
|
|
360
369
|
function registerUser({
|
|
@@ -422,7 +431,7 @@ function generateUserToken({
|
|
|
422
431
|
headers
|
|
423
432
|
});
|
|
424
433
|
}
|
|
425
|
-
function
|
|
434
|
+
function listUserGroups({
|
|
426
435
|
user_id
|
|
427
436
|
}, headers) {
|
|
428
437
|
return axiosInstance({
|
|
@@ -431,21 +440,6 @@ function getUserGroups({
|
|
|
431
440
|
headers
|
|
432
441
|
});
|
|
433
442
|
}
|
|
434
|
-
function getUserUploadTasks({
|
|
435
|
-
user_id,
|
|
436
|
-
offset = 0,
|
|
437
|
-
limit = 10
|
|
438
|
-
}, headers) {
|
|
439
|
-
return axiosInstance({
|
|
440
|
-
method: "get",
|
|
441
|
-
url: "/users/" + encodeURIComponent(user_id) + "/upload-tasks",
|
|
442
|
-
params: {
|
|
443
|
-
offset,
|
|
444
|
-
limit
|
|
445
|
-
},
|
|
446
|
-
headers
|
|
447
|
-
});
|
|
448
|
-
}
|
|
449
443
|
function createGroup({
|
|
450
444
|
name,
|
|
451
445
|
description,
|
|
@@ -471,7 +465,7 @@ function getGroup({
|
|
|
471
465
|
headers
|
|
472
466
|
});
|
|
473
467
|
}
|
|
474
|
-
function
|
|
468
|
+
function updateGroup({
|
|
475
469
|
group_id,
|
|
476
470
|
name,
|
|
477
471
|
description
|
|
@@ -551,7 +545,7 @@ function createFolder({
|
|
|
551
545
|
headers
|
|
552
546
|
});
|
|
553
547
|
}
|
|
554
|
-
function
|
|
548
|
+
function getFolder({
|
|
555
549
|
folder_id
|
|
556
550
|
}, headers) {
|
|
557
551
|
return axiosInstance({
|
|
@@ -560,17 +554,6 @@ function getFolderInfo({
|
|
|
560
554
|
headers
|
|
561
555
|
});
|
|
562
556
|
}
|
|
563
|
-
function moveFolders({
|
|
564
|
-
folder_id,
|
|
565
|
-
folder_ids
|
|
566
|
-
}, headers) {
|
|
567
|
-
return axiosInstance({
|
|
568
|
-
method: "put",
|
|
569
|
-
url: "/folders/" + encodeURIComponent(folder_id),
|
|
570
|
-
data: folder_ids,
|
|
571
|
-
headers
|
|
572
|
-
});
|
|
573
|
-
}
|
|
574
557
|
function updateFolder({
|
|
575
558
|
folder_id,
|
|
576
559
|
name
|
|
@@ -643,7 +626,7 @@ function createSubfolder({
|
|
|
643
626
|
headers
|
|
644
627
|
});
|
|
645
628
|
}
|
|
646
|
-
function
|
|
629
|
+
function listFolderSubfolders({
|
|
647
630
|
folder_id
|
|
648
631
|
}, headers) {
|
|
649
632
|
return axiosInstance({
|
|
@@ -652,10 +635,22 @@ function listFolderSubFolders({
|
|
|
652
635
|
headers
|
|
653
636
|
});
|
|
654
637
|
}
|
|
638
|
+
function moveFolders({
|
|
639
|
+
folder_id,
|
|
640
|
+
folder_ids
|
|
641
|
+
}, headers) {
|
|
642
|
+
return axiosInstance({
|
|
643
|
+
method: "patch",
|
|
644
|
+
url: "/folders/" + encodeURIComponent(folder_id) + "/folders",
|
|
645
|
+
data: {
|
|
646
|
+
folder_ids
|
|
647
|
+
},
|
|
648
|
+
headers
|
|
649
|
+
});
|
|
650
|
+
}
|
|
655
651
|
function uploadSourceFiles({
|
|
656
652
|
folder_id,
|
|
657
653
|
files,
|
|
658
|
-
task_name,
|
|
659
654
|
conversion_pipeline = "auto-detect",
|
|
660
655
|
source_files,
|
|
661
656
|
options
|
|
@@ -665,7 +660,6 @@ function uploadSourceFiles({
|
|
|
665
660
|
url: "/folders/" + encodeURIComponent(folder_id) + "/source-files",
|
|
666
661
|
data: multipartBody(
|
|
667
662
|
{
|
|
668
|
-
task_name,
|
|
669
663
|
conversion_pipeline,
|
|
670
664
|
source_files,
|
|
671
665
|
options
|
|
@@ -681,7 +675,7 @@ function uploadSourceFiles({
|
|
|
681
675
|
}
|
|
682
676
|
});
|
|
683
677
|
}
|
|
684
|
-
function
|
|
678
|
+
function listFolderSourceFiles({
|
|
685
679
|
folder_id,
|
|
686
680
|
offset = 0,
|
|
687
681
|
limit = 10,
|
|
@@ -697,7 +691,12 @@ function getSourceFilesInFolder({
|
|
|
697
691
|
},
|
|
698
692
|
headers
|
|
699
693
|
}).then((response) => {
|
|
700
|
-
response.headers["x-source-files-count"] = JSON.parse(
|
|
694
|
+
response.headers["x-source-files-count"] = JSON.parse(
|
|
695
|
+
response.headers["x-source-files-count"]
|
|
696
|
+
);
|
|
697
|
+
if ("x-total-count" in response.headers) {
|
|
698
|
+
response.headers["x-total-count"] = JSON.parse(response.headers["x-total-count"]);
|
|
699
|
+
}
|
|
701
700
|
return response;
|
|
702
701
|
});
|
|
703
702
|
}
|
|
@@ -706,13 +705,15 @@ function moveSourceFiles({
|
|
|
706
705
|
source_file_ids
|
|
707
706
|
}, headers) {
|
|
708
707
|
return axiosInstance({
|
|
709
|
-
method: "
|
|
708
|
+
method: "patch",
|
|
710
709
|
url: "/folders/" + encodeURIComponent(folder_id) + "/source-files",
|
|
711
|
-
data:
|
|
710
|
+
data: {
|
|
711
|
+
source_file_ids
|
|
712
|
+
},
|
|
712
713
|
headers
|
|
713
714
|
});
|
|
714
715
|
}
|
|
715
|
-
function
|
|
716
|
+
function listFolderUploadTasks({
|
|
716
717
|
folder_id,
|
|
717
718
|
offset = 0,
|
|
718
719
|
limit = 10
|
|
@@ -727,11 +728,11 @@ function getUploadTasksInFolder({
|
|
|
727
728
|
headers
|
|
728
729
|
});
|
|
729
730
|
}
|
|
730
|
-
function
|
|
731
|
+
function listFolderAssets({
|
|
731
732
|
folder_id,
|
|
732
733
|
offset = 0,
|
|
733
734
|
limit = 10,
|
|
734
|
-
|
|
735
|
+
filters,
|
|
735
736
|
recursive = false
|
|
736
737
|
}, headers) {
|
|
737
738
|
return axiosInstance({
|
|
@@ -740,12 +741,15 @@ function getFolderAssets({
|
|
|
740
741
|
params: {
|
|
741
742
|
offset,
|
|
742
743
|
limit,
|
|
743
|
-
|
|
744
|
+
filters,
|
|
744
745
|
recursive
|
|
745
746
|
},
|
|
746
747
|
headers
|
|
747
748
|
}).then((response) => {
|
|
748
749
|
response.headers["x-assets-count"] = JSON.parse(response.headers["x-assets-count"]);
|
|
750
|
+
if ("x-total-count" in response.headers) {
|
|
751
|
+
response.headers["x-total-count"] = JSON.parse(response.headers["x-total-count"]);
|
|
752
|
+
}
|
|
749
753
|
return response;
|
|
750
754
|
});
|
|
751
755
|
}
|
|
@@ -765,90 +769,10 @@ function moveAssets({
|
|
|
765
769
|
asset_ids
|
|
766
770
|
}, headers) {
|
|
767
771
|
return axiosInstance({
|
|
768
|
-
method: "
|
|
772
|
+
method: "patch",
|
|
769
773
|
url: "/folders/" + encodeURIComponent(folder_id) + "/assets",
|
|
770
|
-
data: asset_ids,
|
|
771
|
-
headers
|
|
772
|
-
});
|
|
773
|
-
}
|
|
774
|
-
function createMaterial({
|
|
775
|
-
folder_id,
|
|
776
|
-
dataJson = {},
|
|
777
|
-
isDoubleSided = false,
|
|
778
|
-
name,
|
|
779
|
-
shaderRef = "00000000-0000-0000-0000-000000000000"
|
|
780
|
-
}, headers) {
|
|
781
|
-
return axiosInstance({
|
|
782
|
-
method: "post",
|
|
783
|
-
url: "/folders/" + encodeURIComponent(folder_id) + "/assets/materials",
|
|
784
774
|
data: {
|
|
785
|
-
|
|
786
|
-
isDoubleSided,
|
|
787
|
-
name,
|
|
788
|
-
shaderRef
|
|
789
|
-
},
|
|
790
|
-
headers
|
|
791
|
-
});
|
|
792
|
-
}
|
|
793
|
-
function createCubemap({
|
|
794
|
-
folder_id,
|
|
795
|
-
faces = [
|
|
796
|
-
"00000000-0000-0000-0000-000000000000",
|
|
797
|
-
"00000000-0000-0000-0000-000000000000",
|
|
798
|
-
"00000000-0000-0000-0000-000000000000",
|
|
799
|
-
"00000000-0000-0000-0000-000000000000",
|
|
800
|
-
"00000000-0000-0000-0000-000000000000",
|
|
801
|
-
"00000000-0000-0000-0000-000000000000"
|
|
802
|
-
],
|
|
803
|
-
name
|
|
804
|
-
}, headers) {
|
|
805
|
-
return axiosInstance({
|
|
806
|
-
method: "post",
|
|
807
|
-
url: "/folders/" + encodeURIComponent(folder_id) + "/assets/cubemaps",
|
|
808
|
-
data: {
|
|
809
|
-
faces,
|
|
810
|
-
name
|
|
811
|
-
},
|
|
812
|
-
headers
|
|
813
|
-
});
|
|
814
|
-
}
|
|
815
|
-
function getSessionsInFolder({
|
|
816
|
-
folder_id
|
|
817
|
-
}, headers) {
|
|
818
|
-
return axiosInstance({
|
|
819
|
-
method: "get",
|
|
820
|
-
url: "/folders/" + encodeURIComponent(folder_id) + "/sessions",
|
|
821
|
-
headers
|
|
822
|
-
});
|
|
823
|
-
}
|
|
824
|
-
function createDuplicationRequest({
|
|
825
|
-
assets,
|
|
826
|
-
options
|
|
827
|
-
}, headers) {
|
|
828
|
-
return axiosInstance({
|
|
829
|
-
method: "post",
|
|
830
|
-
url: "/duplication-requests",
|
|
831
|
-
data: {
|
|
832
|
-
assets,
|
|
833
|
-
options
|
|
834
|
-
},
|
|
835
|
-
headers
|
|
836
|
-
});
|
|
837
|
-
}
|
|
838
|
-
function listDuplicationRequests({
|
|
839
|
-
offset = 0,
|
|
840
|
-
limit = 10,
|
|
841
|
-
states,
|
|
842
|
-
mine = false
|
|
843
|
-
}, headers) {
|
|
844
|
-
return axiosInstance({
|
|
845
|
-
method: "get",
|
|
846
|
-
url: "/duplication-requests",
|
|
847
|
-
params: {
|
|
848
|
-
offset,
|
|
849
|
-
limit,
|
|
850
|
-
states,
|
|
851
|
-
mine
|
|
775
|
+
asset_ids
|
|
852
776
|
},
|
|
853
777
|
headers
|
|
854
778
|
});
|
|
@@ -862,41 +786,6 @@ function getDuplicationRequest({
|
|
|
862
786
|
headers
|
|
863
787
|
});
|
|
864
788
|
}
|
|
865
|
-
function updateDuplicationRequest({
|
|
866
|
-
duplication_request_id,
|
|
867
|
-
assets,
|
|
868
|
-
folders_by_type,
|
|
869
|
-
dependencies_folders
|
|
870
|
-
}, headers) {
|
|
871
|
-
return axiosInstance({
|
|
872
|
-
method: "patch",
|
|
873
|
-
url: "/duplication-requests/" + encodeURIComponent(duplication_request_id),
|
|
874
|
-
data: {
|
|
875
|
-
assets,
|
|
876
|
-
folders_by_type,
|
|
877
|
-
dependencies_folders
|
|
878
|
-
},
|
|
879
|
-
headers
|
|
880
|
-
});
|
|
881
|
-
}
|
|
882
|
-
function discardDuplicationRequest({
|
|
883
|
-
duplication_request_id
|
|
884
|
-
}, headers) {
|
|
885
|
-
return axiosInstance({
|
|
886
|
-
method: "delete",
|
|
887
|
-
url: "/duplication-requests/" + encodeURIComponent(duplication_request_id),
|
|
888
|
-
headers
|
|
889
|
-
});
|
|
890
|
-
}
|
|
891
|
-
function confirmDuplicationRequest({
|
|
892
|
-
duplication_request_id
|
|
893
|
-
}, headers) {
|
|
894
|
-
return axiosInstance({
|
|
895
|
-
method: "post",
|
|
896
|
-
url: "/duplication-requests/" + encodeURIComponent(duplication_request_id) + "/confirm",
|
|
897
|
-
headers
|
|
898
|
-
});
|
|
899
|
-
}
|
|
900
789
|
function listSourceFiles({
|
|
901
790
|
offset = 0,
|
|
902
791
|
limit = 10,
|
|
@@ -912,7 +801,12 @@ function listSourceFiles({
|
|
|
912
801
|
},
|
|
913
802
|
headers
|
|
914
803
|
}).then((response) => {
|
|
915
|
-
response.headers["x-source-files-count"] = JSON.parse(
|
|
804
|
+
response.headers["x-source-files-count"] = JSON.parse(
|
|
805
|
+
response.headers["x-source-files-count"]
|
|
806
|
+
);
|
|
807
|
+
if ("x-total-count" in response.headers) {
|
|
808
|
+
response.headers["x-total-count"] = JSON.parse(response.headers["x-total-count"]);
|
|
809
|
+
}
|
|
916
810
|
return response;
|
|
917
811
|
});
|
|
918
812
|
}
|
|
@@ -937,29 +831,29 @@ function getSupportedSourceFileFormats(headers) {
|
|
|
937
831
|
headers
|
|
938
832
|
});
|
|
939
833
|
}
|
|
940
|
-
function
|
|
834
|
+
function getSourceFile({
|
|
941
835
|
source_file_id
|
|
942
836
|
}, headers) {
|
|
943
837
|
return axiosInstance({
|
|
944
838
|
method: "get",
|
|
945
|
-
url: "/source-files/" + encodeURIComponent(source_file_id)
|
|
839
|
+
url: "/source-files/" + encodeURIComponent(source_file_id),
|
|
946
840
|
headers
|
|
947
841
|
});
|
|
948
842
|
}
|
|
949
|
-
function
|
|
843
|
+
function updateSourceFile({
|
|
950
844
|
source_file_id,
|
|
951
845
|
name
|
|
952
846
|
}, headers) {
|
|
953
847
|
return axiosInstance({
|
|
954
848
|
method: "patch",
|
|
955
|
-
url: "/source-files/" + encodeURIComponent(source_file_id)
|
|
849
|
+
url: "/source-files/" + encodeURIComponent(source_file_id),
|
|
956
850
|
data: {
|
|
957
851
|
name
|
|
958
852
|
},
|
|
959
853
|
headers
|
|
960
854
|
});
|
|
961
855
|
}
|
|
962
|
-
function
|
|
856
|
+
function listSourceFileAssets({
|
|
963
857
|
source_file_id
|
|
964
858
|
}, headers) {
|
|
965
859
|
return axiosInstance({
|
|
@@ -968,16 +862,18 @@ function getSourceFileAssets({
|
|
|
968
862
|
headers
|
|
969
863
|
});
|
|
970
864
|
}
|
|
971
|
-
function
|
|
865
|
+
function listUploadTasks({
|
|
972
866
|
offset = 0,
|
|
973
|
-
limit = 10
|
|
867
|
+
limit = 10,
|
|
868
|
+
filters
|
|
974
869
|
}, headers) {
|
|
975
870
|
return axiosInstance({
|
|
976
871
|
method: "get",
|
|
977
872
|
url: "/upload-tasks",
|
|
978
873
|
params: {
|
|
979
874
|
offset,
|
|
980
|
-
limit
|
|
875
|
+
limit,
|
|
876
|
+
filters
|
|
981
877
|
},
|
|
982
878
|
headers
|
|
983
879
|
});
|
|
@@ -997,44 +893,32 @@ function getConversionTaskMetadata({
|
|
|
997
893
|
}, headers, responseType) {
|
|
998
894
|
return axiosInstance({
|
|
999
895
|
method: "get",
|
|
1000
|
-
url: "/
|
|
896
|
+
url: "/conversion-tasks/" + encodeURIComponent(conversion_task_id) + "/metadata/" + encodeURIComponent(filename),
|
|
1001
897
|
headers,
|
|
1002
898
|
responseType: responseType || "arraybuffer"
|
|
1003
899
|
});
|
|
1004
900
|
}
|
|
1005
|
-
function
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
asset_refs
|
|
1011
|
-
}, headers) {
|
|
1012
|
-
return axiosInstance({
|
|
1013
|
-
method: "post",
|
|
1014
|
-
url: "/pipelines",
|
|
1015
|
-
data: {
|
|
1016
|
-
data_pipeline_id,
|
|
1017
|
-
pipeline_name,
|
|
1018
|
-
folder_id,
|
|
1019
|
-
inputs,
|
|
1020
|
-
asset_refs
|
|
1021
|
-
},
|
|
1022
|
-
headers
|
|
1023
|
-
});
|
|
1024
|
-
}
|
|
1025
|
-
function getPipeline({
|
|
1026
|
-
pipeline_id
|
|
901
|
+
function getConversionTaskLogs({
|
|
902
|
+
conversion_task_id,
|
|
903
|
+
from,
|
|
904
|
+
to,
|
|
905
|
+
limit
|
|
1027
906
|
}, headers) {
|
|
1028
907
|
return axiosInstance({
|
|
1029
908
|
method: "get",
|
|
1030
|
-
url: "/
|
|
909
|
+
url: "/conversion-tasks/" + encodeURIComponent(conversion_task_id) + "/logs",
|
|
910
|
+
params: {
|
|
911
|
+
from,
|
|
912
|
+
to,
|
|
913
|
+
limit
|
|
914
|
+
},
|
|
1031
915
|
headers
|
|
1032
916
|
});
|
|
1033
917
|
}
|
|
1034
918
|
function listAssets({
|
|
1035
919
|
offset = 0,
|
|
1036
920
|
limit = 10,
|
|
1037
|
-
|
|
921
|
+
filters
|
|
1038
922
|
}, headers) {
|
|
1039
923
|
return axiosInstance({
|
|
1040
924
|
method: "get",
|
|
@@ -1042,9 +926,14 @@ function listAssets({
|
|
|
1042
926
|
params: {
|
|
1043
927
|
offset,
|
|
1044
928
|
limit,
|
|
1045
|
-
|
|
929
|
+
filters
|
|
1046
930
|
},
|
|
1047
931
|
headers
|
|
932
|
+
}).then((response) => {
|
|
933
|
+
if ("x-total-count" in response.headers) {
|
|
934
|
+
response.headers["x-total-count"] = JSON.parse(response.headers["x-total-count"]);
|
|
935
|
+
}
|
|
936
|
+
return response;
|
|
1048
937
|
});
|
|
1049
938
|
}
|
|
1050
939
|
function deleteAssets({
|
|
@@ -1067,13 +956,17 @@ function deleteAsset({
|
|
|
1067
956
|
headers
|
|
1068
957
|
});
|
|
1069
958
|
}
|
|
1070
|
-
function
|
|
959
|
+
function renameAsset({
|
|
1071
960
|
asset_container,
|
|
1072
|
-
asset_id
|
|
961
|
+
asset_id,
|
|
962
|
+
name
|
|
1073
963
|
}, headers) {
|
|
1074
964
|
return axiosInstance({
|
|
1075
|
-
method: "
|
|
1076
|
-
url: "/assets/" + encodeURIComponent(asset_container) + "/" + encodeURIComponent(asset_id)
|
|
965
|
+
method: "patch",
|
|
966
|
+
url: "/assets/" + encodeURIComponent(asset_container) + "/" + encodeURIComponent(asset_id),
|
|
967
|
+
data: {
|
|
968
|
+
name
|
|
969
|
+
},
|
|
1077
970
|
headers
|
|
1078
971
|
});
|
|
1079
972
|
}
|
|
@@ -1087,17 +980,7 @@ function getAssetDetails({
|
|
|
1087
980
|
headers
|
|
1088
981
|
});
|
|
1089
982
|
}
|
|
1090
|
-
function
|
|
1091
|
-
asset_container,
|
|
1092
|
-
asset_id
|
|
1093
|
-
}, headers) {
|
|
1094
|
-
return axiosInstance({
|
|
1095
|
-
method: "get",
|
|
1096
|
-
url: "/assets/" + encodeURIComponent(asset_container) + "/" + encodeURIComponent(asset_id) + "/folder",
|
|
1097
|
-
headers
|
|
1098
|
-
});
|
|
1099
|
-
}
|
|
1100
|
-
function getAssetDependencies({
|
|
983
|
+
function listAssetDependencies({
|
|
1101
984
|
asset_container,
|
|
1102
985
|
asset_id,
|
|
1103
986
|
offset = 0,
|
|
@@ -1119,7 +1002,7 @@ function getAssetDependencies({
|
|
|
1119
1002
|
headers
|
|
1120
1003
|
});
|
|
1121
1004
|
}
|
|
1122
|
-
function
|
|
1005
|
+
function listAssetReferences({
|
|
1123
1006
|
asset_container,
|
|
1124
1007
|
asset_id,
|
|
1125
1008
|
offset = 0,
|
|
@@ -1159,20 +1042,6 @@ function updateAssetDescription({
|
|
|
1159
1042
|
headers
|
|
1160
1043
|
});
|
|
1161
1044
|
}
|
|
1162
|
-
function renameAsset({
|
|
1163
|
-
asset_id,
|
|
1164
|
-
asset_container,
|
|
1165
|
-
name
|
|
1166
|
-
}, headers) {
|
|
1167
|
-
return axiosInstance({
|
|
1168
|
-
method: "patch",
|
|
1169
|
-
url: "/assets/" + encodeURIComponent(asset_container) + "/" + encodeURIComponent(asset_id) + "/description",
|
|
1170
|
-
data: {
|
|
1171
|
-
name
|
|
1172
|
-
},
|
|
1173
|
-
headers
|
|
1174
|
-
});
|
|
1175
|
-
}
|
|
1176
1045
|
function getAssetPayload({
|
|
1177
1046
|
asset_container_with_payload,
|
|
1178
1047
|
asset_id,
|
|
@@ -1220,16 +1089,6 @@ function getAssetHistory({
|
|
|
1220
1089
|
headers
|
|
1221
1090
|
});
|
|
1222
1091
|
}
|
|
1223
|
-
function getAssetMeta({
|
|
1224
|
-
asset_container,
|
|
1225
|
-
asset_id
|
|
1226
|
-
}, headers) {
|
|
1227
|
-
return axiosInstance({
|
|
1228
|
-
method: "get",
|
|
1229
|
-
url: "/assets/" + encodeURIComponent(asset_container) + "/" + encodeURIComponent(asset_id) + "/meta",
|
|
1230
|
-
headers
|
|
1231
|
-
});
|
|
1232
|
-
}
|
|
1233
1092
|
function getAssetCode({
|
|
1234
1093
|
asset_container_with_code,
|
|
1235
1094
|
asset_id
|
|
@@ -1291,7 +1150,7 @@ function exportAsset({
|
|
|
1291
1150
|
format,
|
|
1292
1151
|
scale = 1,
|
|
1293
1152
|
sub_mesh_index
|
|
1294
|
-
}, headers) {
|
|
1153
|
+
}, headers, responseType) {
|
|
1295
1154
|
return axiosInstance({
|
|
1296
1155
|
method: "get",
|
|
1297
1156
|
url: "/assets/" + encodeURIComponent(asset_container_exportable) + "/" + encodeURIComponent(asset_id) + "/exports/" + encodeURIComponent(format),
|
|
@@ -1299,16 +1158,8 @@ function exportAsset({
|
|
|
1299
1158
|
scale,
|
|
1300
1159
|
sub_mesh_index
|
|
1301
1160
|
},
|
|
1302
|
-
headers
|
|
1303
|
-
|
|
1304
|
-
}
|
|
1305
|
-
function getSceneSessions({
|
|
1306
|
-
scene_id
|
|
1307
|
-
}, headers) {
|
|
1308
|
-
return axiosInstance({
|
|
1309
|
-
method: "get",
|
|
1310
|
-
url: "/assets/scenes/" + encodeURIComponent(scene_id) + "/sessions",
|
|
1311
|
-
headers
|
|
1161
|
+
headers,
|
|
1162
|
+
responseType: responseType || "arraybuffer"
|
|
1312
1163
|
});
|
|
1313
1164
|
}
|
|
1314
1165
|
function getSceneAABB({
|
|
@@ -1583,7 +1434,7 @@ function updateSceneSettings({
|
|
|
1583
1434
|
headers
|
|
1584
1435
|
});
|
|
1585
1436
|
}
|
|
1586
|
-
function
|
|
1437
|
+
function listRunningSessions({
|
|
1587
1438
|
filters
|
|
1588
1439
|
}, headers) {
|
|
1589
1440
|
return axiosInstance({
|
|
@@ -1599,7 +1450,8 @@ function createSession({
|
|
|
1599
1450
|
scene_id,
|
|
1600
1451
|
renderer_version,
|
|
1601
1452
|
is_transient = false,
|
|
1602
|
-
options
|
|
1453
|
+
options,
|
|
1454
|
+
metadata
|
|
1603
1455
|
}, headers) {
|
|
1604
1456
|
return axiosInstance({
|
|
1605
1457
|
method: "post",
|
|
@@ -1608,7 +1460,8 @@ function createSession({
|
|
|
1608
1460
|
scene_id,
|
|
1609
1461
|
renderer_version,
|
|
1610
1462
|
is_transient,
|
|
1611
|
-
options
|
|
1463
|
+
options,
|
|
1464
|
+
metadata
|
|
1612
1465
|
},
|
|
1613
1466
|
headers
|
|
1614
1467
|
});
|
|
@@ -1633,13 +1486,15 @@ function killSession({
|
|
|
1633
1486
|
}
|
|
1634
1487
|
function joinSession({
|
|
1635
1488
|
session_id,
|
|
1636
|
-
is_headless = false
|
|
1489
|
+
is_headless = false,
|
|
1490
|
+
metadata
|
|
1637
1491
|
}, headers) {
|
|
1638
1492
|
return axiosInstance({
|
|
1639
1493
|
method: "post",
|
|
1640
1494
|
url: "/sessions/" + encodeURIComponent(session_id) + "/clients",
|
|
1641
1495
|
data: optionalBody({
|
|
1642
|
-
is_headless
|
|
1496
|
+
is_headless,
|
|
1497
|
+
metadata
|
|
1643
1498
|
}),
|
|
1644
1499
|
headers
|
|
1645
1500
|
});
|
|
@@ -1664,10 +1519,15 @@ function kickClientFromSession({
|
|
|
1664
1519
|
headers
|
|
1665
1520
|
});
|
|
1666
1521
|
}
|
|
1667
|
-
function joinSessionAsGuest(
|
|
1522
|
+
function joinSessionAsGuest({
|
|
1523
|
+
metadata
|
|
1524
|
+
}, headers) {
|
|
1668
1525
|
return axiosInstance({
|
|
1669
1526
|
method: "post",
|
|
1670
1527
|
url: "/sessions/guests",
|
|
1528
|
+
data: optionalBody({
|
|
1529
|
+
metadata
|
|
1530
|
+
}),
|
|
1671
1531
|
headers
|
|
1672
1532
|
});
|
|
1673
1533
|
}
|
|
@@ -1750,47 +1610,38 @@ function installInterceptors() {
|
|
|
1750
1610
|
);
|
|
1751
1611
|
}
|
|
1752
1612
|
function shouldRetryRequest(error) {
|
|
1753
|
-
|
|
1754
|
-
switch (status) {
|
|
1755
|
-
case 403:
|
|
1756
|
-
case 404:
|
|
1757
|
-
return true;
|
|
1758
|
-
default:
|
|
1759
|
-
return (0, import_axios_retry.isNetworkError)(error) || (0, import_axios_retry.isIdempotentRequestError)(error);
|
|
1760
|
-
}
|
|
1613
|
+
return (0, import_axios_retry.isNetworkError)(error) || (0, import_axios_retry.isIdempotentRequestError)(error);
|
|
1761
1614
|
}
|
|
1762
1615
|
installInterceptors();
|
|
1763
1616
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1764
1617
|
0 && (module.exports = {
|
|
1765
1618
|
ApiError,
|
|
1766
|
-
AssetSourceFileNotFound,
|
|
1767
1619
|
ConversionTaskNotFound,
|
|
1768
|
-
EnvironmentMismatch,
|
|
1769
1620
|
InsufficientPermissions,
|
|
1770
1621
|
InsufficientSecurityScope,
|
|
1771
1622
|
InvalidApiKey,
|
|
1772
1623
|
InvalidAuthorization,
|
|
1773
1624
|
InvalidGuestToken,
|
|
1774
1625
|
InvalidMaterial,
|
|
1626
|
+
InvalidParameter,
|
|
1775
1627
|
InvalidRequest,
|
|
1776
1628
|
InvalidTokenTtl,
|
|
1629
|
+
LogsUnavailable,
|
|
1630
|
+
MemberAccessesDiffer,
|
|
1777
1631
|
MissingAuthorizationHeader,
|
|
1778
1632
|
NoFileUploaded,
|
|
1779
1633
|
ServiceErrorResponse,
|
|
1634
|
+
TooManyRequests,
|
|
1780
1635
|
Unauthorized,
|
|
1781
1636
|
UnexpectedServiceError,
|
|
1782
1637
|
UploadAborted,
|
|
1783
1638
|
UploadTaskNotFound,
|
|
1784
1639
|
UploadedPayloadTooLarge,
|
|
1785
1640
|
axiosInstance,
|
|
1786
|
-
confirmDuplicationRequest,
|
|
1787
1641
|
createAsset,
|
|
1788
|
-
createCubemap,
|
|
1789
|
-
createDuplicationRequest,
|
|
1790
1642
|
createEntity,
|
|
1791
1643
|
createFolder,
|
|
1792
1644
|
createGroup,
|
|
1793
|
-
createMaterial,
|
|
1794
1645
|
createSession,
|
|
1795
1646
|
createSubfolder,
|
|
1796
1647
|
deleteAsset,
|
|
@@ -1800,60 +1651,52 @@ installInterceptors();
|
|
|
1800
1651
|
deleteGroup,
|
|
1801
1652
|
deleteSourceFiles,
|
|
1802
1653
|
deleteUser,
|
|
1803
|
-
discardDuplicationRequest,
|
|
1804
1654
|
errorOf,
|
|
1805
1655
|
exportAsset,
|
|
1806
1656
|
generateGuestToken,
|
|
1807
1657
|
generateUserToken,
|
|
1808
1658
|
getAssetCode,
|
|
1809
|
-
getAssetDependencies,
|
|
1810
1659
|
getAssetDescription,
|
|
1811
1660
|
getAssetDetails,
|
|
1812
|
-
getAssetFolder,
|
|
1813
1661
|
getAssetGraph,
|
|
1814
1662
|
getAssetHistory,
|
|
1815
|
-
getAssetMeta,
|
|
1816
1663
|
getAssetPayload,
|
|
1817
|
-
getAssetReferences,
|
|
1818
|
-
getAssetSourceFile,
|
|
1819
1664
|
getAssetThumbnail,
|
|
1820
1665
|
getClient,
|
|
1666
|
+
getConversionTaskLogs,
|
|
1821
1667
|
getConversionTaskMetadata,
|
|
1822
1668
|
getCurrentUser,
|
|
1823
1669
|
getDuplicationRequest,
|
|
1824
1670
|
getEntity,
|
|
1825
|
-
|
|
1826
|
-
getFolderInfo,
|
|
1671
|
+
getFolder,
|
|
1827
1672
|
getGroup,
|
|
1828
|
-
getPipeline,
|
|
1829
|
-
getRunningSessions,
|
|
1830
1673
|
getSceneAABB,
|
|
1831
|
-
getSceneSessions,
|
|
1832
1674
|
getSceneSettings,
|
|
1833
1675
|
getSession,
|
|
1834
|
-
|
|
1835
|
-
getSourceFileAssets,
|
|
1836
|
-
getSourceFileDetails,
|
|
1837
|
-
getSourceFilesInFolder,
|
|
1676
|
+
getSourceFile,
|
|
1838
1677
|
getSupportedSourceFileFormats,
|
|
1839
1678
|
getUploadTask,
|
|
1840
|
-
getUploadTasks,
|
|
1841
|
-
getUploadTasksInFolder,
|
|
1842
1679
|
getUser,
|
|
1843
|
-
getUserGroups,
|
|
1844
|
-
getUserUploadTasks,
|
|
1845
1680
|
grantMemberAccessToFolder,
|
|
1846
1681
|
grantMemberAccessToGroup,
|
|
1847
1682
|
joinSession,
|
|
1848
1683
|
joinSessionAsGuest,
|
|
1849
1684
|
kickClientFromSession,
|
|
1850
1685
|
killSession,
|
|
1686
|
+
listAssetDependencies,
|
|
1687
|
+
listAssetReferences,
|
|
1851
1688
|
listAssets,
|
|
1852
|
-
listDuplicationRequests,
|
|
1853
1689
|
listFolderAccesses,
|
|
1854
|
-
|
|
1690
|
+
listFolderAssets,
|
|
1691
|
+
listFolderSourceFiles,
|
|
1692
|
+
listFolderSubfolders,
|
|
1693
|
+
listFolderUploadTasks,
|
|
1855
1694
|
listFolders,
|
|
1695
|
+
listRunningSessions,
|
|
1696
|
+
listSourceFileAssets,
|
|
1856
1697
|
listSourceFiles,
|
|
1698
|
+
listUploadTasks,
|
|
1699
|
+
listUserGroups,
|
|
1857
1700
|
listUsers,
|
|
1858
1701
|
moveAssets,
|
|
1859
1702
|
moveFolders,
|
|
@@ -1863,19 +1706,17 @@ installInterceptors();
|
|
|
1863
1706
|
renameAsset,
|
|
1864
1707
|
revokeMemberAccessToFolder,
|
|
1865
1708
|
revokeMemberAccessToGroup,
|
|
1866
|
-
schedulePipeline,
|
|
1867
1709
|
setApiKey,
|
|
1868
1710
|
setAssetThumbnail,
|
|
1869
1711
|
setBaseURL,
|
|
1870
1712
|
setUserToken,
|
|
1871
1713
|
updateAssetDescription,
|
|
1872
1714
|
updateAssetGraph,
|
|
1873
|
-
updateDuplicationRequest,
|
|
1874
1715
|
updateEntity,
|
|
1875
1716
|
updateFolder,
|
|
1876
|
-
|
|
1717
|
+
updateGroup,
|
|
1877
1718
|
updateSceneSettings,
|
|
1878
|
-
|
|
1719
|
+
updateSourceFile,
|
|
1879
1720
|
updateUser,
|
|
1880
1721
|
uploadSourceFiles
|
|
1881
1722
|
});
|