@3dverse/api 0.6.0 → 0.6.2

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.
@@ -87,7 +87,7 @@ export type GetUserUploadTasks_UploadTask = {
87
87
  uploaded_by: GetUserUploadTasks_Object;
88
88
  progress: number;
89
89
  download_progress?: number;
90
- status: StrictUnion<'waiting' | 'downloading' | 'pending' | 'converting' | 'error' | 'success'> & string;
90
+ status: StrictUnion<'waiting' | 'downloading' | 'pending' | 'converting' | 'error' | 'success' | 'rejected'> & string;
91
91
  conversion_tasks: Array<GetUserUploadTasks_ConversionTask>;
92
92
  };
93
93
  export type GetUserUploadTasks_Object = {
@@ -338,7 +338,7 @@ export type GetUploadTasksInFolder_UploadTask = {
338
338
  uploaded_by: GetUploadTasksInFolder_Object;
339
339
  progress: number;
340
340
  download_progress?: number;
341
- status: StrictUnion<'waiting' | 'downloading' | 'pending' | 'converting' | 'error' | 'success'> & string;
341
+ status: StrictUnion<'waiting' | 'downloading' | 'pending' | 'converting' | 'error' | 'success' | 'rejected'> & string;
342
342
  conversion_tasks: Array<GetUploadTasksInFolder_ConversionTask>;
343
343
  };
344
344
  export type GetUploadTasksInFolder_Object = {
@@ -522,7 +522,7 @@ export type GetUploadTask_UploadTask = {
522
522
  uploaded_by: GetUploadTask_Object;
523
523
  progress: number;
524
524
  download_progress?: number;
525
- status: StrictUnion<'waiting' | 'downloading' | 'pending' | 'converting' | 'error' | 'success'> & string;
525
+ status: StrictUnion<'waiting' | 'downloading' | 'pending' | 'converting' | 'error' | 'success' | 'rejected'> & string;
526
526
  conversion_tasks: Array<GetUploadTask_ConversionTask>;
527
527
  };
528
528
  export type GetUploadTask_Object = {
@@ -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
  }