@3dverse/api 0.4.2 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -92,15 +92,15 @@ export type GetUserUploadTasks_UploadTask = {
92
92
  uploaded_by: string;
93
93
  progress: number;
94
94
  download_progress?: number;
95
- status: "waiting" | "downloading" | "pending" | "converting" | "error";
95
+ status: "waiting" | "downloading" | "pending" | "converting" | "error" | "success";
96
96
  conversion_tasks: Array<GetUserUploadTasks_ConversionTask>;
97
97
  };
98
98
  export type GetUserUploadTasks_ConversionTask = {
99
- asset_id?: string;
100
- source_file_id?: string;
101
- conversion_pipeline?: "auto-detect" | "volume" | "scene" | "texture" | "animation";
102
- progress?: number;
103
- status?: "waiting" | "downloading" | "pending" | "converting" | "error";
99
+ asset_id: string;
100
+ source_file_id: string;
101
+ conversion_pipeline: "auto-detect" | "volume" | "scene" | "texture" | "animation";
102
+ progress: number;
103
+ status: "waiting" | "pending" | "converting" | "error" | "success";
104
104
  };
105
105
  export declare function getUserUploadTasks({ user_id, offset, limit }: {
106
106
  user_id: string;
@@ -338,15 +338,15 @@ export type GetUploadTasksInFolder_UploadTask = {
338
338
  uploaded_by: string;
339
339
  progress: number;
340
340
  download_progress?: number;
341
- status: "waiting" | "downloading" | "pending" | "converting" | "error";
341
+ status: "waiting" | "downloading" | "pending" | "converting" | "error" | "success";
342
342
  conversion_tasks: Array<GetUploadTasksInFolder_ConversionTask>;
343
343
  };
344
344
  export type GetUploadTasksInFolder_ConversionTask = {
345
- asset_id?: string;
346
- source_file_id?: string;
347
- conversion_pipeline?: "auto-detect" | "volume" | "scene" | "texture" | "animation";
348
- progress?: number;
349
- status?: "waiting" | "downloading" | "pending" | "converting" | "error";
345
+ asset_id: string;
346
+ source_file_id: string;
347
+ conversion_pipeline: "auto-detect" | "volume" | "scene" | "texture" | "animation";
348
+ progress: number;
349
+ status: "waiting" | "pending" | "converting" | "error" | "success";
350
350
  };
351
351
  export declare function getUploadTasksInFolder({ folder_id, offset, limit }: {
352
352
  folder_id: string;
@@ -512,15 +512,15 @@ export type GetUploadTask_UploadTask = {
512
512
  uploaded_by: string;
513
513
  progress: number;
514
514
  download_progress?: number;
515
- status: "waiting" | "downloading" | "pending" | "converting" | "error";
515
+ status: "waiting" | "downloading" | "pending" | "converting" | "error" | "success";
516
516
  conversion_tasks: Array<GetUploadTask_ConversionTask>;
517
517
  };
518
518
  export type GetUploadTask_ConversionTask = {
519
- asset_id?: string;
520
- source_file_id?: string;
521
- conversion_pipeline?: "auto-detect" | "volume" | "scene" | "texture" | "animation";
522
- progress?: number;
523
- status?: "waiting" | "downloading" | "pending" | "converting" | "error";
519
+ asset_id: string;
520
+ source_file_id: string;
521
+ conversion_pipeline: "auto-detect" | "volume" | "scene" | "texture" | "animation";
522
+ progress: number;
523
+ status: "waiting" | "pending" | "converting" | "error" | "success";
524
524
  };
525
525
  export declare function getUploadTask({ upload_task_id }: {
526
526
  upload_task_id: string;
@@ -1591,10 +1591,11 @@ export declare function deleteEntity({ scene_id, entity_id }: {
1591
1591
  entity_id: string;
1592
1592
  }): Promise<import("axios").AxiosResponse<any, any>>;
1593
1593
  export type CreateSession_Object = {
1594
- session_id?: string;
1594
+ session_id: string;
1595
1595
  };
1596
- export declare function createSession({ scene_id }: {
1597
- scene_id?: string;
1596
+ export declare function createSession({ scene_id, renderer_version }: {
1597
+ scene_id: string;
1598
+ renderer_version?: string;
1598
1599
  }): AxiosPromise<CreateSession_Object>;
1599
1600
  export type GetSession_Session = {
1600
1601
  session_id: string;
@@ -1621,13 +1622,13 @@ export declare function killSession({ session_id }: {
1621
1622
  session_id: string;
1622
1623
  }): Promise<import("axios").AxiosResponse<any, any>>;
1623
1624
  export type JoinSession_SessionToken = {
1624
- session_token?: string;
1625
- endpoint_info?: JoinSession_Object;
1625
+ session_token: string;
1626
+ endpoint_info: JoinSession_Object;
1626
1627
  };
1627
1628
  export type JoinSession_Object = {
1628
- ip?: string;
1629
- port?: number;
1630
- ssl_port?: number;
1629
+ ip: string;
1630
+ port: number;
1631
+ ssl_port: number;
1631
1632
  };
1632
1633
  export declare function joinSession({ session_id }: {
1633
1634
  session_id: string;
@@ -1637,13 +1638,13 @@ export declare function kickClientFromSession({ session_id, client_id }: {
1637
1638
  client_id: string;
1638
1639
  }): Promise<import("axios").AxiosResponse<any, any>>;
1639
1640
  export type JoinSessionAsGuest_SessionToken = {
1640
- session_token?: string;
1641
- endpoint_info?: JoinSessionAsGuest_Object;
1641
+ session_token: string;
1642
+ endpoint_info: JoinSessionAsGuest_Object;
1642
1643
  };
1643
1644
  export type JoinSessionAsGuest_Object = {
1644
- ip?: string;
1645
- port?: number;
1646
- ssl_port?: number;
1645
+ ip: string;
1646
+ port: number;
1647
+ ssl_port: number;
1647
1648
  };
1648
1649
  export declare function joinSessionAsGuest(): AxiosPromise<JoinSessionAsGuest_SessionToken>;
1649
1650
  export type GenerateGuestToken_GuestToken = {
package/dist/index.js CHANGED
@@ -884,14 +884,16 @@ function deleteEntity({
884
884
  });
885
885
  }
886
886
  function createSession({
887
- scene_id
887
+ scene_id,
888
+ renderer_version
888
889
  }) {
889
890
  return axiosInstance({
890
891
  operationId: "createSession",
891
892
  method: "post",
892
893
  url: "/sessions",
893
894
  data: {
894
- scene_id
895
+ scene_id,
896
+ renderer_version
895
897
  }
896
898
  });
897
899
  }