@3dverse/api 0.6.5 → 0.6.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1657,6 +1657,33 @@ export declare function deleteEntity({ scene_id, entity_id }: {
1657
1657
  scene_id: string;
1658
1658
  entity_id: string;
1659
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>>;
1660
1687
  export type CreateSession_Object = {
1661
1688
  session_id: string;
1662
1689
  };
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,6 +831,17 @@ 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
847
  renderer_version,
@@ -1024,6 +1036,7 @@ function uploadSourceFiles({
1024
1036
  getFolderAssets,
1025
1037
  getFolderInfo,
1026
1038
  getGroup,
1039
+ getRunningSessions,
1027
1040
  getSceneAABB,
1028
1041
  getSceneSessions,
1029
1042
  getSession,