@3dverse/api 0.6.4 → 0.6.6

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.
@@ -451,6 +451,7 @@ export type GetSessionsInFolder_Session = {
451
451
  created_at: string;
452
452
  country_code: string;
453
453
  continent_code: string;
454
+ is_transient_session: boolean;
454
455
  clients: Array<GetSessionsInFolder_UserInfo>;
455
456
  };
456
457
  export type GetSessionsInFolder_UserInfo = {
@@ -935,6 +936,7 @@ export type GetSceneSessions_Session = {
935
936
  created_at: string;
936
937
  country_code: string;
937
938
  continent_code: string;
939
+ is_transient_session: boolean;
938
940
  clients: Array<GetSceneSessions_UserInfo>;
939
941
  };
940
942
  export type GetSceneSessions_UserInfo = {
@@ -1655,12 +1657,40 @@ export declare function deleteEntity({ scene_id, entity_id }: {
1655
1657
  scene_id: string;
1656
1658
  entity_id: string;
1657
1659
  }): Promise<import("axios").AxiosResponse<any, any>>;
1660
+ export type GetRunningSessions_Filter = {
1661
+ user_id?: string;
1662
+ scene_id?: string;
1663
+ folder_id?: string;
1664
+ };
1665
+ export type GetRunningSessions_Session = {
1666
+ session_id: string;
1667
+ scene_id: string;
1668
+ scene_name: string;
1669
+ folder_id: string;
1670
+ max_users: number;
1671
+ creator_user_id: string;
1672
+ created_at: string;
1673
+ country_code: string;
1674
+ continent_code: string;
1675
+ is_transient_session: boolean;
1676
+ clients: Array<GetRunningSessions_UserInfo>;
1677
+ };
1678
+ export type GetRunningSessions_UserInfo = {
1679
+ client_id?: string;
1680
+ client_type?: StrictUnion<'user' | 'guest'>;
1681
+ user_id: string;
1682
+ username: string;
1683
+ };
1684
+ export declare function getRunningSessions({ filters }: {
1685
+ filters?: GetRunningSessions_Filter;
1686
+ }): AxiosPromise<Array<GetRunningSessions_Session>>;
1658
1687
  export type CreateSession_Object = {
1659
1688
  session_id: string;
1660
1689
  };
1661
- export declare function createSession({ scene_id, renderer_version }: {
1690
+ export declare function createSession({ scene_id, renderer_version, is_transient }: {
1662
1691
  scene_id: string;
1663
1692
  renderer_version?: string;
1693
+ is_transient?: boolean;
1664
1694
  }): AxiosPromise<CreateSession_Object>;
1665
1695
  export type GetSession_Session = {
1666
1696
  session_id: string;
@@ -1672,6 +1702,7 @@ export type GetSession_Session = {
1672
1702
  created_at: string;
1673
1703
  country_code: string;
1674
1704
  continent_code: string;
1705
+ is_transient_session: boolean;
1675
1706
  clients: Array<GetSession_UserInfo>;
1676
1707
  };
1677
1708
  export type GetSession_UserInfo = {
package/dist/index.js CHANGED
@@ -64,6 +64,7 @@ __export(library_exports, {
64
64
  getFolderAssets: () => getFolderAssets,
65
65
  getFolderInfo: () => getFolderInfo,
66
66
  getGroup: () => getGroup,
67
+ getRunningSessions: () => getRunningSessions,
67
68
  getSceneAABB: () => getSceneAABB,
68
69
  getSceneSessions: () => getSceneSessions,
69
70
  getSession: () => getSession,
@@ -830,16 +831,29 @@ function deleteEntity({
830
831
  url: "/assets/scenes/" + scene_id + "/entities/" + entity_id
831
832
  });
832
833
  }
834
+ function getRunningSessions({
835
+ filters
836
+ }) {
837
+ return axiosInstance({
838
+ method: "get",
839
+ url: "/sessions",
840
+ params: {
841
+ filters
842
+ }
843
+ });
844
+ }
833
845
  function createSession({
834
846
  scene_id,
835
- renderer_version
847
+ renderer_version,
848
+ is_transient = false
836
849
  }) {
837
850
  return axiosInstance({
838
851
  method: "post",
839
852
  url: "/sessions",
840
853
  data: {
841
854
  scene_id,
842
- renderer_version
855
+ renderer_version,
856
+ is_transient
843
857
  }
844
858
  });
845
859
  }
@@ -1022,6 +1036,7 @@ function uploadSourceFiles({
1022
1036
  getFolderAssets,
1023
1037
  getFolderInfo,
1024
1038
  getGroup,
1039
+ getRunningSessions,
1025
1040
  getSceneAABB,
1026
1041
  getSceneSessions,
1027
1042
  getSession,