@3dverse/api 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -390,12 +390,17 @@ export declare function moveAssets({ folder_id, assetIds }: {
390
390
  folder_id: string;
391
391
  assetIds: Array<string>;
392
392
  }): Promise<import("axios").AxiosResponse<any, any>>;
393
- export type CreateAsset_Object = {
393
+ export type CreateAsset_NewAsset = {
394
+ name: string;
395
+ };
396
+ export type CreateAsset_AssetDuplication = {
394
397
  copy_from_asset_id: string;
395
398
  new_asset_name?: string;
399
+ options?: CreateAsset_DuplicationOptions;
396
400
  };
397
- export type CreateAsset_AssetDescription = {
398
- name: string;
401
+ export type CreateAsset_DuplicationOptions = {
402
+ asset_types?: Array<"animation" | "animationGraph" | "animationSequence" | "animationSet" | "cubemap" | "eventMap" | "material" | "mesh" | "pointCloud" | "renderGraph" | "scene" | "script" | "shader" | "skeleton" | "sound" | "texture" | "volumeMaterial">;
403
+ max_depth?: number;
399
404
  };
400
405
  export type CreateAsset_asset_item = {
401
406
  asset_id: string;
@@ -404,7 +409,7 @@ export type CreateAsset_asset_item = {
404
409
  export declare function createAsset({ folder_id, asset_container_creatable, assetCreationOptions }: {
405
410
  folder_id: string;
406
411
  asset_container_creatable: "animationGraphs" | "animationSequences" | "cubemaps" | "eventMaps" | "materials" | "renderGraphs" | "scenes" | "scripts" | "shaders" | "volumeMaterials";
407
- assetCreationOptions: StrictUnion<CreateAsset_Object | CreateAsset_AssetDescription> & any;
412
+ assetCreationOptions: StrictUnion<CreateAsset_NewAsset | CreateAsset_AssetDuplication> & any;
408
413
  }): AxiosPromise<CreateAsset_asset_item>;
409
414
  export type GetSessionsInFolder_Session = {
410
415
  session_id: string;