@3dverse/api 0.1.2 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/_prebuild/wrapper.d.ts +39 -38
- package/dist/index.js +16 -16
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +16 -16
- package/dist/index.mjs.map +2 -2
- package/package.json +1 -1
@@ -70,8 +70,8 @@ export declare function generateUserToken({ user_id, scope, ttl }: {
|
|
70
70
|
}): AxiosPromise<GenerateUserToken_Token>;
|
71
71
|
export type GetUserGroups_Group_GroupInfo = {
|
72
72
|
group_id: string;
|
73
|
-
|
74
|
-
|
73
|
+
name: string;
|
74
|
+
description?: string;
|
75
75
|
created_at: string;
|
76
76
|
members: Array<GetUserGroups_GroupMember_GroupAccess>;
|
77
77
|
};
|
@@ -112,8 +112,8 @@ export type CreateGroup_GroupMember_GroupAccess = {
|
|
112
112
|
};
|
113
113
|
export type CreateGroup_Group_GroupInfo = {
|
114
114
|
group_id: string;
|
115
|
-
|
116
|
-
|
115
|
+
name: string;
|
116
|
+
description?: string;
|
117
117
|
created_at: string;
|
118
118
|
members: Array<CreateGroup_GroupMember_GroupAccess_Writable>;
|
119
119
|
};
|
@@ -123,15 +123,15 @@ export type CreateGroup_GroupMember_GroupAccess_Writable = {
|
|
123
123
|
group_access: "read" | "write" | "manage";
|
124
124
|
folder_access: "read" | "write" | "manage";
|
125
125
|
};
|
126
|
-
export declare function createGroup({
|
127
|
-
|
128
|
-
|
126
|
+
export declare function createGroup({ name, description, members }: {
|
127
|
+
name: string;
|
128
|
+
description?: string;
|
129
129
|
members: Array<CreateGroup_GroupMember_GroupAccess>;
|
130
130
|
}): AxiosPromise<CreateGroup_Group_GroupInfo>;
|
131
131
|
export type GetGroup_Group_GroupInfo = {
|
132
132
|
group_id: string;
|
133
|
-
|
134
|
-
|
133
|
+
name: string;
|
134
|
+
description?: string;
|
135
135
|
created_at: string;
|
136
136
|
members: Array<GetGroup_GroupMember_GroupAccess>;
|
137
137
|
};
|
@@ -144,10 +144,10 @@ export type GetGroup_GroupMember_GroupAccess = {
|
|
144
144
|
export declare function getGroup({ group_id }: {
|
145
145
|
group_id: string;
|
146
146
|
}): AxiosPromise<GetGroup_Group_GroupInfo>;
|
147
|
-
export declare function updateGroupDescription({ group_id,
|
147
|
+
export declare function updateGroupDescription({ group_id, name, description }: {
|
148
148
|
group_id: string;
|
149
|
-
|
150
|
-
|
149
|
+
name: string;
|
150
|
+
description: string;
|
151
151
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
152
152
|
export declare function deleteGroup({ group_id }: {
|
153
153
|
group_id: string;
|
@@ -167,7 +167,7 @@ export declare function revokeMemberAccessToGroup({ group_id, member_type, membe
|
|
167
167
|
export type ListFolders_Folder = {
|
168
168
|
folder_id: string;
|
169
169
|
parent_folder_id?: string;
|
170
|
-
|
170
|
+
name: string;
|
171
171
|
created_at?: string;
|
172
172
|
created_by?: ListFolders_Object;
|
173
173
|
subfolders?: Array<ListFolders_Folder>;
|
@@ -184,13 +184,13 @@ export declare function listFolders({ offset, limit }: {
|
|
184
184
|
limit?: number;
|
185
185
|
}): AxiosPromise<Array<ListFolders_Folder>>;
|
186
186
|
export type CreateFolder_Folder = {
|
187
|
-
|
187
|
+
name: string;
|
188
188
|
subfolders?: Array<CreateFolder_Folder>;
|
189
189
|
};
|
190
190
|
export type CreateFolder_Folder_Writable = {
|
191
191
|
folder_id: string;
|
192
192
|
parent_folder_id?: string;
|
193
|
-
|
193
|
+
name: string;
|
194
194
|
created_at?: string;
|
195
195
|
created_by?: CreateFolder_Object;
|
196
196
|
subfolders?: Array<CreateFolder_Folder_Writable>;
|
@@ -202,14 +202,14 @@ export type CreateFolder_Object = {
|
|
202
202
|
username: string;
|
203
203
|
registered_at?: string;
|
204
204
|
};
|
205
|
-
export declare function createFolder({
|
206
|
-
|
205
|
+
export declare function createFolder({ name, subfolders }: {
|
206
|
+
name: string;
|
207
207
|
subfolders?: Array<CreateFolder_Folder>;
|
208
208
|
}): AxiosPromise<CreateFolder_Folder_Writable>;
|
209
209
|
export type GetFolderInfo_Folder = {
|
210
210
|
folder_id: string;
|
211
211
|
parent_folder_id?: string;
|
212
|
-
|
212
|
+
name: string;
|
213
213
|
created_at?: string;
|
214
214
|
created_by?: GetFolderInfo_Object;
|
215
215
|
subfolders?: Array<GetFolderInfo_Folder>;
|
@@ -228,9 +228,9 @@ export declare function moveFolders({ folder_id, folderIds }: {
|
|
228
228
|
folder_id: string;
|
229
229
|
folderIds: Array<string>;
|
230
230
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
231
|
-
export declare function updateFolder({ folder_id,
|
231
|
+
export declare function updateFolder({ folder_id, name }: {
|
232
232
|
folder_id: string;
|
233
|
-
|
233
|
+
name?: string;
|
234
234
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
235
235
|
export declare function deleteFolder({ folder_id }: {
|
236
236
|
folder_id: string;
|
@@ -246,7 +246,7 @@ export type ListFolderAccesses_UserInfo_FolderAccess = {
|
|
246
246
|
};
|
247
247
|
export type ListFolderAccesses_GroupInfo_FolderAccess = {
|
248
248
|
group_id: string;
|
249
|
-
|
249
|
+
name: string;
|
250
250
|
access: "read" | "write" | "manage";
|
251
251
|
};
|
252
252
|
export declare function listFolderAccesses({ folder_id }: {
|
@@ -264,13 +264,13 @@ export declare function revokeMemberAccessToFolder({ folder_id, member_type, mem
|
|
264
264
|
member_id: string;
|
265
265
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
266
266
|
export type CreateSubfolder_Folder = {
|
267
|
-
|
267
|
+
name: string;
|
268
268
|
subfolders?: Array<CreateSubfolder_Folder>;
|
269
269
|
};
|
270
270
|
export type CreateSubfolder_Folder_Writable = {
|
271
271
|
folder_id: string;
|
272
272
|
parent_folder_id?: string;
|
273
|
-
|
273
|
+
name: string;
|
274
274
|
created_at?: string;
|
275
275
|
created_by?: CreateSubfolder_Object;
|
276
276
|
subfolders?: Array<CreateSubfolder_Folder_Writable>;
|
@@ -282,15 +282,15 @@ export type CreateSubfolder_Object = {
|
|
282
282
|
username: string;
|
283
283
|
registered_at?: string;
|
284
284
|
};
|
285
|
-
export declare function createSubfolder({ folder_id,
|
285
|
+
export declare function createSubfolder({ folder_id, name, subfolders }: {
|
286
286
|
folder_id: string;
|
287
|
-
|
287
|
+
name: string;
|
288
288
|
subfolders?: Array<CreateSubfolder_Folder>;
|
289
289
|
}): AxiosPromise<CreateSubfolder_Folder_Writable>;
|
290
290
|
export type ListFolderSubFolders_Folder = {
|
291
291
|
folder_id: string;
|
292
292
|
parent_folder_id?: string;
|
293
|
-
|
293
|
+
name: string;
|
294
294
|
created_at?: string;
|
295
295
|
created_by?: ListFolderSubFolders_Object;
|
296
296
|
subfolders?: Array<ListFolderSubFolders_Folder>;
|
@@ -317,7 +317,7 @@ export type GetSourceFilesInFolder_SourceFile = {
|
|
317
317
|
source_file_id?: string;
|
318
318
|
upload_task_id?: string;
|
319
319
|
source_file_original_name?: string;
|
320
|
-
|
320
|
+
name?: string;
|
321
321
|
size?: number;
|
322
322
|
};
|
323
323
|
export declare function getSourceFilesInFolder({ folder_id, offset, limit }: {
|
@@ -371,7 +371,7 @@ export type GetFolderAssets_asset_list = {
|
|
371
371
|
};
|
372
372
|
export type GetFolderAssets_asset_item = {
|
373
373
|
asset_id: string;
|
374
|
-
|
374
|
+
name: string;
|
375
375
|
};
|
376
376
|
export declare function getFolderAssets({ folder_id, offset, limit }: {
|
377
377
|
folder_id: string;
|
@@ -384,13 +384,14 @@ export declare function moveAssets({ folder_id, assetIds }: {
|
|
384
384
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
385
385
|
export type CreateAsset_Object = {
|
386
386
|
copy_from_asset_id: string;
|
387
|
+
new_asset_name?: string;
|
387
388
|
};
|
388
389
|
export type CreateAsset_AssetDescription = {
|
389
390
|
name: string;
|
390
391
|
};
|
391
392
|
export type CreateAsset_asset_item = {
|
392
393
|
asset_id: string;
|
393
|
-
|
394
|
+
name: string;
|
394
395
|
};
|
395
396
|
export declare function createAsset({ folder_id, asset_container_creatable, assetCreationOptions }: {
|
396
397
|
folder_id: string;
|
@@ -422,7 +423,7 @@ export type ListSourceFiles_SourceFile = {
|
|
422
423
|
source_file_id?: string;
|
423
424
|
upload_task_id?: string;
|
424
425
|
source_file_original_name?: string;
|
425
|
-
|
426
|
+
name?: string;
|
426
427
|
size?: number;
|
427
428
|
};
|
428
429
|
export declare function listSourceFiles({ offset, limit }: {
|
@@ -439,15 +440,15 @@ export type GetSourceFileDetails_SourceFile = {
|
|
439
440
|
source_file_id?: string;
|
440
441
|
upload_task_id?: string;
|
441
442
|
source_file_original_name?: string;
|
442
|
-
|
443
|
+
name?: string;
|
443
444
|
size?: number;
|
444
445
|
};
|
445
446
|
export declare function getSourceFileDetails({ source_file_id }: {
|
446
447
|
source_file_id: string;
|
447
448
|
}): AxiosPromise<GetSourceFileDetails_SourceFile>;
|
448
|
-
export declare function updateSourceFileDetails({ source_file_id,
|
449
|
+
export declare function updateSourceFileDetails({ source_file_id, name }: {
|
449
450
|
source_file_id: string;
|
450
|
-
|
451
|
+
name?: string;
|
451
452
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
452
453
|
export type GetSourceFileAssets_asset_list = {
|
453
454
|
animations?: Array<GetSourceFileAssets_asset_item>;
|
@@ -470,7 +471,7 @@ export type GetSourceFileAssets_asset_list = {
|
|
470
471
|
};
|
471
472
|
export type GetSourceFileAssets_asset_item = {
|
472
473
|
asset_id: string;
|
473
|
-
|
474
|
+
name: string;
|
474
475
|
};
|
475
476
|
export declare function getSourceFileAssets({ source_file_id }: {
|
476
477
|
source_file_id: string;
|
@@ -515,7 +516,7 @@ export type ListAssets_asset_list = {
|
|
515
516
|
};
|
516
517
|
export type ListAssets_asset_item = {
|
517
518
|
asset_id: string;
|
518
|
-
|
519
|
+
name: string;
|
519
520
|
};
|
520
521
|
export declare function listAssets({ offset, limit }: {
|
521
522
|
offset?: number;
|
@@ -532,7 +533,7 @@ export type GetAssetSourceFile_SourceFile = {
|
|
532
533
|
source_file_id?: string;
|
533
534
|
upload_task_id?: string;
|
534
535
|
source_file_original_name?: string;
|
535
|
-
|
536
|
+
name?: string;
|
536
537
|
size?: number;
|
537
538
|
};
|
538
539
|
export declare function getAssetSourceFile({ asset_container, asset_id }: {
|
@@ -565,7 +566,7 @@ export declare function getAssetDetails({ asset_container, asset_id }: {
|
|
565
566
|
export type GetAssetFolder_Folder = {
|
566
567
|
folder_id: string;
|
567
568
|
parent_folder_id?: string;
|
568
|
-
|
569
|
+
name: string;
|
569
570
|
created_at?: string;
|
570
571
|
created_by?: GetAssetFolder_Object;
|
571
572
|
subfolders?: Array<GetAssetFolder_Folder>;
|
@@ -605,7 +606,7 @@ export type GetAssetDependencies_Flat = {
|
|
605
606
|
};
|
606
607
|
export type GetAssetDependencies_asset_item = {
|
607
608
|
asset_id: string;
|
608
|
-
|
609
|
+
name: string;
|
609
610
|
};
|
610
611
|
export declare function getAssetDependencies({ asset_container, asset_id, format, depth, filter }: {
|
611
612
|
asset_container: "animations" | "animationGraphs" | "animationSequences" | "animationSets" | "cubemaps" | "eventMaps" | "materials" | "meshes" | "pointClouds" | "renderGraphs" | "scenes" | "scripts" | "shaders" | "skeletons" | "sounds" | "textures" | "volumeMaterials";
|
package/dist/index.js
CHANGED
@@ -216,8 +216,8 @@ function getUserUploadTasks({
|
|
216
216
|
});
|
217
217
|
}
|
218
218
|
function createGroup({
|
219
|
-
|
220
|
-
|
219
|
+
name,
|
220
|
+
description,
|
221
221
|
members
|
222
222
|
}) {
|
223
223
|
return axiosInstance({
|
@@ -225,8 +225,8 @@ function createGroup({
|
|
225
225
|
method: "post",
|
226
226
|
url: "/groups",
|
227
227
|
data: {
|
228
|
-
|
229
|
-
|
228
|
+
name,
|
229
|
+
description,
|
230
230
|
members
|
231
231
|
}
|
232
232
|
});
|
@@ -242,16 +242,16 @@ function getGroup({
|
|
242
242
|
}
|
243
243
|
function updateGroupDescription({
|
244
244
|
group_id,
|
245
|
-
|
246
|
-
|
245
|
+
name,
|
246
|
+
description
|
247
247
|
}) {
|
248
248
|
return axiosInstance({
|
249
249
|
operationId: "updateGroupDescription",
|
250
250
|
method: "patch",
|
251
251
|
url: "/groups/" + group_id,
|
252
252
|
data: {
|
253
|
-
|
254
|
-
|
253
|
+
name,
|
254
|
+
description
|
255
255
|
}
|
256
256
|
});
|
257
257
|
}
|
@@ -307,7 +307,7 @@ function listFolders({
|
|
307
307
|
});
|
308
308
|
}
|
309
309
|
function createFolder({
|
310
|
-
|
310
|
+
name,
|
311
311
|
subfolders
|
312
312
|
}) {
|
313
313
|
return axiosInstance({
|
@@ -315,7 +315,7 @@ function createFolder({
|
|
315
315
|
method: "post",
|
316
316
|
url: "/folders",
|
317
317
|
data: {
|
318
|
-
|
318
|
+
name,
|
319
319
|
subfolders
|
320
320
|
}
|
321
321
|
});
|
@@ -342,14 +342,14 @@ function moveFolders({
|
|
342
342
|
}
|
343
343
|
function updateFolder({
|
344
344
|
folder_id,
|
345
|
-
|
345
|
+
name
|
346
346
|
}) {
|
347
347
|
return axiosInstance({
|
348
348
|
operationId: "updateFolder",
|
349
349
|
method: "patch",
|
350
350
|
url: "/folders/" + folder_id,
|
351
351
|
data: {
|
352
|
-
|
352
|
+
name
|
353
353
|
}
|
354
354
|
});
|
355
355
|
}
|
@@ -399,7 +399,7 @@ function revokeMemberAccessToFolder({
|
|
399
399
|
}
|
400
400
|
function createSubfolder({
|
401
401
|
folder_id,
|
402
|
-
|
402
|
+
name,
|
403
403
|
subfolders
|
404
404
|
}) {
|
405
405
|
return axiosInstance({
|
@@ -407,7 +407,7 @@ function createSubfolder({
|
|
407
407
|
method: "post",
|
408
408
|
url: "/folders/" + folder_id + "/folders",
|
409
409
|
data: {
|
410
|
-
|
410
|
+
name,
|
411
411
|
subfolders
|
412
412
|
}
|
413
413
|
});
|
@@ -572,14 +572,14 @@ function getSourceFileDetails({
|
|
572
572
|
}
|
573
573
|
function updateSourceFileDetails({
|
574
574
|
source_file_id,
|
575
|
-
|
575
|
+
name
|
576
576
|
}) {
|
577
577
|
return axiosInstance({
|
578
578
|
operationId: "updateSourceFileDetails",
|
579
579
|
method: "patch",
|
580
580
|
url: "/source-files/" + source_file_id + "/details",
|
581
581
|
data: {
|
582
|
-
|
582
|
+
name
|
583
583
|
}
|
584
584
|
});
|
585
585
|
}
|