@3dverse/api 0.5.1 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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 = {
@@ -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;
@@ -402,14 +397,12 @@ export declare function getFolderAssets({ folder_id, offset, limit, filter }: {
402
397
  limit?: number;
403
398
  filter?: GetFolderAssets_Filter;
404
399
  }): AxiosPromise<GetFolderAssets__index_AssetList_AssetList>;
405
- export declare function moveAssets({ folder_id, assetIds }: {
406
- folder_id: string;
407
- assetIds: Array<string>;
408
- }): Promise<import("axios").AxiosResponse<any, any>>;
409
400
  export type CreateAsset_NewAsset = {
401
+ asset_type: "action_map" | "algorithm" | "animation_graph" | "animation_sequence" | "cubemap" | "event_map" | "material" | "module" | "render_graph" | "scene" | "script" | "shader" | "volume_material";
410
402
  name: string;
411
403
  };
412
404
  export type CreateAsset_AssetDuplication = {
405
+ asset_type: "action_map" | "algorithm" | "animation" | "animation_graph" | "animation_sequence" | "animation_set" | "collision_geometry" | "cubemap" | "event_map" | "material" | "mesh" | "module" | "point_cloud" | "render_graph" | "scene" | "script" | "shader" | "skeleton" | "sound" | "texture" | "texture_1d" | "texture_3d" | "volume_material";
413
406
  copy_from_asset_id: string;
414
407
  new_asset_name?: string;
415
408
  options?: CreateAsset_DuplicationOptions;
@@ -426,11 +419,14 @@ export type CreateAsset_AssetDuplicationResult = {
426
419
  export type CreateAsset_SourceToCopyAssetIdMap = {
427
420
  [source_asset_id: string]: string;
428
421
  };
429
- export declare function createAsset({ folder_id, asset_container_creatable, assetCreationOptions }: {
422
+ export declare function createAsset({ folder_id, asset_creation_options }: {
430
423
  folder_id: string;
431
- asset_container_creatable: "action_maps" | "algorithms" | "animation_graphs" | "animation_sequences" | "cubemaps" | "event_maps" | "materials" | "modules" | "render_graphs" | "scenes" | "scripts" | "shaders" | "volume_materials";
432
- assetCreationOptions: StrictUnion<CreateAsset_NewAsset | CreateAsset_AssetDuplication>;
424
+ asset_creation_options: StrictUnion<CreateAsset_NewAsset | CreateAsset_AssetDuplication>;
433
425
  }): AxiosPromise<CreateAsset_AssetDuplicationResult>;
426
+ export declare function moveAssets({ folder_id, asset_ids }: {
427
+ folder_id: string;
428
+ asset_ids: Array<string>;
429
+ }): Promise<import("axios").AxiosResponse<any, any>>;
434
430
  export type GetSessionsInFolder_Session = {
435
431
  session_id: string;
436
432
  scene_id: string;
@@ -463,8 +459,8 @@ export declare function listSourceFiles({ offset, limit }: {
463
459
  offset?: number;
464
460
  limit?: number;
465
461
  }): AxiosPromise<Array<ListSourceFiles_SourceFile>>;
466
- export declare function deleteSourceFiles({ sourceFileIds }: {
467
- sourceFileIds: Array<string>;
462
+ export declare function deleteSourceFiles({ source_file_ids }: {
463
+ source_file_ids: Array<string>;
468
464
  }): Promise<import("axios").AxiosResponse<any, any>>;
469
465
  export declare function downloadSourceFile({ source_file_id }: {
470
466
  source_file_id: string;
@@ -577,8 +573,8 @@ export declare function listAssets({ offset, limit }: {
577
573
  offset?: number;
578
574
  limit?: number;
579
575
  }): AxiosPromise<ListAssets__index_AssetList_AssetList>;
580
- export declare function deleteAssets({ assetIds }: {
581
- assetIds: Array<string>;
576
+ export declare function deleteAssets({ asset_ids }: {
577
+ asset_ids: Array<string>;
582
578
  }): Promise<import("axios").AxiosResponse<any, any>>;
583
579
  export declare function deleteAsset({ asset_container, asset_id }: {
584
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";
@@ -1629,10 +1625,10 @@ export type UpdateEntity_volume_ref = {
1629
1625
  export type UpdateEntity_VolumeReference = {
1630
1626
  texture3dRef: string;
1631
1627
  };
1632
- export declare function updateEntity({ scene_id, entity_id, entityComponents }: {
1628
+ export declare function updateEntity({ scene_id, entity_id, entity_components }: {
1633
1629
  scene_id: string;
1634
1630
  entity_id: string;
1635
- 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);
1636
1632
  }): Promise<import("axios").AxiosResponse<any, any>>;
1637
1633
  export declare function deleteEntity({ scene_id, entity_id }: {
1638
1634
  scene_id: string;