@3dverse/api 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -540,6 +540,10 @@ export type GetUploadTask_ConversionTask = {
540
540
  export declare function getUploadTask({ upload_task_id }: {
541
541
  upload_task_id: string;
542
542
  }): AxiosPromise<GetUploadTask_UploadTask>;
543
+ export type ListAssets_Filter = {
544
+ asset_type?: (Array<"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"> | "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");
545
+ asset_name?: string;
546
+ };
543
547
  export type ListAssets__index_AssetList_AssetList = {
544
548
  action_maps?: Array<ListAssets_Object>;
545
549
  algorithms?: Array<ListAssets_Object>;
@@ -569,9 +573,10 @@ export type ListAssets_Object = {
569
573
  asset_id: string;
570
574
  name: string;
571
575
  };
572
- export declare function listAssets({ offset, limit }: {
576
+ export declare function listAssets({ offset, limit, filter }: {
573
577
  offset?: number;
574
578
  limit?: number;
579
+ filter?: ListAssets_Filter;
575
580
  }): AxiosPromise<ListAssets__index_AssetList_AssetList>;
576
581
  export declare function deleteAssets({ asset_ids }: {
577
582
  asset_ids: Array<string>;
package/dist/index.js CHANGED
@@ -564,14 +564,16 @@ function getUploadTask({
564
564
  }
565
565
  function listAssets({
566
566
  offset = 0,
567
- limit = 10
567
+ limit = 10,
568
+ filter
568
569
  }) {
569
570
  return axiosInstance({
570
571
  method: "get",
571
572
  url: "/assets",
572
573
  params: {
573
574
  offset,
574
- limit
575
+ limit,
576
+ filter
575
577
  }
576
578
  });
577
579
  }