@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.
@@ -17,11 +17,6 @@ import { AxiosPromise } from 'axios';
17
17
  type UnionKeys<T> = T extends T ? keyof T : never;
18
18
  type StrictUnionHelper<T, TAll> = T extends any ? T & Partial<Record<Exclude<UnionKeys<TAll>, keyof T>, never>> : never;
19
19
  type StrictUnion<T> = StrictUnionHelper<T, T>;
20
- declare module 'axios' {
21
- interface AxiosRequestConfig<D = any, T = any> {
22
- operationId: string;
23
- }
24
- }
25
20
  export declare const axiosInstance: import("axios").AxiosInstance;
26
21
  export declare function setBaseURL(baseURL: string): void;
27
22
  export type ListUsers_User_UserInfo = {
@@ -92,7 +87,7 @@ export type GetUserUploadTasks_UploadTask = {
92
87
  uploaded_by: GetUserUploadTasks_Object;
93
88
  progress: number;
94
89
  download_progress?: number;
95
- status: StrictUnion<'waiting' | 'downloading' | 'pending' | 'converting' | 'error' | 'success'> & string;
90
+ status: StrictUnion<'waiting' | 'downloading' | 'pending' | 'converting' | 'error' | 'success' | 'rejected'> & string;
96
91
  conversion_tasks: Array<GetUserUploadTasks_ConversionTask>;
97
92
  };
98
93
  export type GetUserUploadTasks_Object = {
@@ -231,9 +226,9 @@ export type GetFolderInfo_Object = {
231
226
  export declare function getFolderInfo({ folder_id }: {
232
227
  folder_id: string;
233
228
  }): AxiosPromise<GetFolderInfo_Folder>;
234
- export declare function moveFolders({ folder_id, folderIds }: {
229
+ export declare function moveFolders({ folder_id, folder_ids }: {
235
230
  folder_id: string;
236
- folderIds: Array<string>;
231
+ folder_ids: Array<string>;
237
232
  }): Promise<import("axios").AxiosResponse<any, any>>;
238
233
  export declare function updateFolder({ folder_id, name }: {
239
234
  folder_id: string;
@@ -332,9 +327,9 @@ export declare function getSourceFilesInFolder({ folder_id, offset, limit }: {
332
327
  offset?: number;
333
328
  limit?: number;
334
329
  }): AxiosPromise<Array<GetSourceFilesInFolder_SourceFile>>;
335
- export declare function moveSourceFiles({ folder_id, sourceFileIds }: {
330
+ export declare function moveSourceFiles({ folder_id, source_file_ids }: {
336
331
  folder_id: string;
337
- sourceFileIds: Array<string>;
332
+ source_file_ids: Array<string>;
338
333
  }): Promise<import("axios").AxiosResponse<any, any>>;
339
334
  export type GetUploadTasksInFolder_UploadTask = {
340
335
  upload_task_id: string;
@@ -343,7 +338,7 @@ export type GetUploadTasksInFolder_UploadTask = {
343
338
  uploaded_by: GetUploadTasksInFolder_Object;
344
339
  progress: number;
345
340
  download_progress?: number;
346
- status: StrictUnion<'waiting' | 'downloading' | 'pending' | 'converting' | 'error' | 'success'> & string;
341
+ status: StrictUnion<'waiting' | 'downloading' | 'pending' | 'converting' | 'error' | 'success' | 'rejected'> & string;
347
342
  conversion_tasks: Array<GetUploadTasksInFolder_ConversionTask>;
348
343
  };
349
344
  export type GetUploadTasksInFolder_Object = {
@@ -424,13 +419,13 @@ export type CreateAsset_AssetDuplicationResult = {
424
419
  export type CreateAsset_SourceToCopyAssetIdMap = {
425
420
  [source_asset_id: string]: string;
426
421
  };
427
- export declare function createAsset({ folder_id, assetCreationOptions }: {
422
+ export declare function createAsset({ folder_id, asset_creation_options }: {
428
423
  folder_id: string;
429
- assetCreationOptions: StrictUnion<CreateAsset_NewAsset | CreateAsset_AssetDuplication>;
424
+ asset_creation_options: StrictUnion<CreateAsset_NewAsset | CreateAsset_AssetDuplication>;
430
425
  }): AxiosPromise<CreateAsset_AssetDuplicationResult>;
431
- export declare function moveAssets({ folder_id, assetIds }: {
426
+ export declare function moveAssets({ folder_id, asset_ids }: {
432
427
  folder_id: string;
433
- assetIds: Array<string>;
428
+ asset_ids: Array<string>;
434
429
  }): Promise<import("axios").AxiosResponse<any, any>>;
435
430
  export type GetSessionsInFolder_Session = {
436
431
  session_id: string;
@@ -464,8 +459,8 @@ export declare function listSourceFiles({ offset, limit }: {
464
459
  offset?: number;
465
460
  limit?: number;
466
461
  }): AxiosPromise<Array<ListSourceFiles_SourceFile>>;
467
- export declare function deleteSourceFiles({ sourceFileIds }: {
468
- sourceFileIds: Array<string>;
462
+ export declare function deleteSourceFiles({ source_file_ids }: {
463
+ source_file_ids: Array<string>;
469
464
  }): Promise<import("axios").AxiosResponse<any, any>>;
470
465
  export declare function downloadSourceFile({ source_file_id }: {
471
466
  source_file_id: string;
@@ -527,7 +522,7 @@ export type GetUploadTask_UploadTask = {
527
522
  uploaded_by: GetUploadTask_Object;
528
523
  progress: number;
529
524
  download_progress?: number;
530
- status: StrictUnion<'waiting' | 'downloading' | 'pending' | 'converting' | 'error' | 'success'> & string;
525
+ status: StrictUnion<'waiting' | 'downloading' | 'pending' | 'converting' | 'error' | 'success' | 'rejected'> & string;
531
526
  conversion_tasks: Array<GetUploadTask_ConversionTask>;
532
527
  };
533
528
  export type GetUploadTask_Object = {
@@ -578,8 +573,8 @@ export declare function listAssets({ offset, limit }: {
578
573
  offset?: number;
579
574
  limit?: number;
580
575
  }): AxiosPromise<ListAssets__index_AssetList_AssetList>;
581
- export declare function deleteAssets({ assetIds }: {
582
- assetIds: Array<string>;
576
+ export declare function deleteAssets({ asset_ids }: {
577
+ asset_ids: Array<string>;
583
578
  }): Promise<import("axios").AxiosResponse<any, any>>;
584
579
  export declare function deleteAsset({ asset_container, asset_id }: {
585
580
  asset_container: "action_maps" | "algorithms" | "animations" | "animation_graphs" | "animation_sequences" | "animation_sets" | "collision_geometries" | "cubemaps" | "event_maps" | "materials" | "meshes" | "modules" | "point_clouds" | "render_graphs" | "scenes" | "scripts" | "shaders" | "skeletons" | "sounds" | "textures" | "textures_1d" | "textures_3d" | "volume_materials";
@@ -1630,10 +1625,10 @@ export type UpdateEntity_volume_ref = {
1630
1625
  export type UpdateEntity_VolumeReference = {
1631
1626
  texture3dRef: string;
1632
1627
  };
1633
- export declare function updateEntity({ scene_id, entity_id, entityComponents }: {
1628
+ export declare function updateEntity({ scene_id, entity_id, entity_components }: {
1634
1629
  scene_id: string;
1635
1630
  entity_id: string;
1636
- entityComponents: (UpdateEntity_animation_controller | UpdateEntity_bone | UpdateEntity_box_geometry | UpdateEntity_camera | UpdateEntity_capsule_geometry | UpdateEntity_character_controller | UpdateEntity_collision_geometry_ref | UpdateEntity_cylinder_geometry | UpdateEntity_debug_name | UpdateEntity_decal_projector | UpdateEntity_environment | UpdateEntity_joint | UpdateEntity_lineage | UpdateEntity_local_aabb | UpdateEntity_local_transform | UpdateEntity_material | UpdateEntity_material_ref | UpdateEntity_mesh_ref | UpdateEntity_orthographic_lens | UpdateEntity_overrider | UpdateEntity_perspective_lens | UpdateEntity_physics_material | UpdateEntity_plane_geometry | UpdateEntity_point_cloud_ref | UpdateEntity_point_light | UpdateEntity_reflection_probe | UpdateEntity_revolute_joint | UpdateEntity_rigid_body | UpdateEntity_scene_ref | UpdateEntity_script_element | UpdateEntity_script_map | UpdateEntity_shadow_caster | UpdateEntity_skeleton_ref | UpdateEntity_sound_ref | UpdateEntity_sphere_geometry | UpdateEntity_spot_light | UpdateEntity_stereoscopic_lens | UpdateEntity_tags | UpdateEntity_volume_filter | UpdateEntity_volume_material_ref | UpdateEntity_volume_ref);
1631
+ entity_components: (UpdateEntity_animation_controller | UpdateEntity_bone | UpdateEntity_box_geometry | UpdateEntity_camera | UpdateEntity_capsule_geometry | UpdateEntity_character_controller | UpdateEntity_collision_geometry_ref | UpdateEntity_cylinder_geometry | UpdateEntity_debug_name | UpdateEntity_decal_projector | UpdateEntity_environment | UpdateEntity_joint | UpdateEntity_lineage | UpdateEntity_local_aabb | UpdateEntity_local_transform | UpdateEntity_material | UpdateEntity_material_ref | UpdateEntity_mesh_ref | UpdateEntity_orthographic_lens | UpdateEntity_overrider | UpdateEntity_perspective_lens | UpdateEntity_physics_material | UpdateEntity_plane_geometry | UpdateEntity_point_cloud_ref | UpdateEntity_point_light | UpdateEntity_reflection_probe | UpdateEntity_revolute_joint | UpdateEntity_rigid_body | UpdateEntity_scene_ref | UpdateEntity_script_element | UpdateEntity_script_map | UpdateEntity_shadow_caster | UpdateEntity_skeleton_ref | UpdateEntity_sound_ref | UpdateEntity_sphere_geometry | UpdateEntity_spot_light | UpdateEntity_stereoscopic_lens | UpdateEntity_tags | UpdateEntity_volume_filter | UpdateEntity_volume_material_ref | UpdateEntity_volume_ref);
1637
1632
  }): Promise<import("axios").AxiosResponse<any, any>>;
1638
1633
  export declare function deleteEntity({ scene_id, entity_id }: {
1639
1634
  scene_id: string;