@3dverse/api 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- group_name: string;
74
- group_description?: string;
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
- group_name: string;
116
- group_description?: string;
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({ group_name, group_description, members }: {
127
- group_name: string;
128
- group_description?: string;
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
- group_name: string;
134
- group_description?: string;
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, group_name, group_description }: {
147
+ export declare function updateGroupDescription({ group_id, name, description }: {
148
148
  group_id: string;
149
- group_name: string;
150
- group_description: string;
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
- folder_name: string;
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
- folder_name: string;
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
- folder_name: string;
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({ folder_name, subfolders }: {
206
- folder_name: string;
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
- folder_name: string;
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, folder_name }: {
231
+ export declare function updateFolder({ folder_id, name }: {
232
232
  folder_id: string;
233
- folder_name?: string;
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
- group_name: string;
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
- folder_name: string;
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
- folder_name: string;
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, folder_name, subfolders }: {
285
+ export declare function createSubfolder({ folder_id, name, subfolders }: {
286
286
  folder_id: string;
287
- folder_name: string;
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
- folder_name: string;
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
- source_file_name?: string;
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
- asset_name: string;
374
+ name: string;
375
375
  };
376
376
  export declare function getFolderAssets({ folder_id, offset, limit }: {
377
377
  folder_id: string;
@@ -390,7 +390,7 @@ export type CreateAsset_AssetDescription = {
390
390
  };
391
391
  export type CreateAsset_asset_item = {
392
392
  asset_id: string;
393
- asset_name: string;
393
+ name: string;
394
394
  };
395
395
  export declare function createAsset({ folder_id, asset_container_creatable, assetCreationOptions }: {
396
396
  folder_id: string;
@@ -422,7 +422,7 @@ export type ListSourceFiles_SourceFile = {
422
422
  source_file_id?: string;
423
423
  upload_task_id?: string;
424
424
  source_file_original_name?: string;
425
- source_file_name?: string;
425
+ name?: string;
426
426
  size?: number;
427
427
  };
428
428
  export declare function listSourceFiles({ offset, limit }: {
@@ -439,15 +439,15 @@ export type GetSourceFileDetails_SourceFile = {
439
439
  source_file_id?: string;
440
440
  upload_task_id?: string;
441
441
  source_file_original_name?: string;
442
- source_file_name?: string;
442
+ name?: string;
443
443
  size?: number;
444
444
  };
445
445
  export declare function getSourceFileDetails({ source_file_id }: {
446
446
  source_file_id: string;
447
447
  }): AxiosPromise<GetSourceFileDetails_SourceFile>;
448
- export declare function updateSourceFileDetails({ source_file_id, source_file_name }: {
448
+ export declare function updateSourceFileDetails({ source_file_id, name }: {
449
449
  source_file_id: string;
450
- source_file_name?: string;
450
+ name?: string;
451
451
  }): Promise<import("axios").AxiosResponse<any, any>>;
452
452
  export type GetSourceFileAssets_asset_list = {
453
453
  animations?: Array<GetSourceFileAssets_asset_item>;
@@ -470,7 +470,7 @@ export type GetSourceFileAssets_asset_list = {
470
470
  };
471
471
  export type GetSourceFileAssets_asset_item = {
472
472
  asset_id: string;
473
- asset_name: string;
473
+ name: string;
474
474
  };
475
475
  export declare function getSourceFileAssets({ source_file_id }: {
476
476
  source_file_id: string;
@@ -515,7 +515,7 @@ export type ListAssets_asset_list = {
515
515
  };
516
516
  export type ListAssets_asset_item = {
517
517
  asset_id: string;
518
- asset_name: string;
518
+ name: string;
519
519
  };
520
520
  export declare function listAssets({ offset, limit }: {
521
521
  offset?: number;
@@ -532,7 +532,7 @@ export type GetAssetSourceFile_SourceFile = {
532
532
  source_file_id?: string;
533
533
  upload_task_id?: string;
534
534
  source_file_original_name?: string;
535
- source_file_name?: string;
535
+ name?: string;
536
536
  size?: number;
537
537
  };
538
538
  export declare function getAssetSourceFile({ asset_container, asset_id }: {
@@ -565,7 +565,7 @@ export declare function getAssetDetails({ asset_container, asset_id }: {
565
565
  export type GetAssetFolder_Folder = {
566
566
  folder_id: string;
567
567
  parent_folder_id?: string;
568
- folder_name: string;
568
+ name: string;
569
569
  created_at?: string;
570
570
  created_by?: GetAssetFolder_Object;
571
571
  subfolders?: Array<GetAssetFolder_Folder>;
@@ -605,7 +605,7 @@ export type GetAssetDependencies_Flat = {
605
605
  };
606
606
  export type GetAssetDependencies_asset_item = {
607
607
  asset_id: string;
608
- asset_name: string;
608
+ name: string;
609
609
  };
610
610
  export declare function getAssetDependencies({ asset_container, asset_id, format, depth, filter }: {
611
611
  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
- group_name,
220
- group_description,
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
- group_name,
229
- group_description,
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
- group_name,
246
- group_description
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
- group_name,
254
- group_description
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
- folder_name,
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
- folder_name,
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
- folder_name
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
- folder_name
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
- folder_name,
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
- folder_name,
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
- source_file_name
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
- source_file_name
582
+ name
583
583
  }
584
584
  });
585
585
  }