deprecate(roomGroupI) removed roomgroups for simplicity

This commit is contained in:
2023-07-27 15:04:07 -04:00
parent 5aa750e79e
commit 21780b9bd2
2 changed files with 4 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "discreetly-interfaces",
"version": "0.1.13",
"version": "0.1.14",
"description": "Common interfaces and utilities for discreetly",
"author": "AtHeartEngineer",
"homepage": "https://github.com/Discreetly",

View File

@@ -37,18 +37,13 @@ export interface SystemMessageI {
export interface RoomI {
id: RLNFullProof['rlnIdentifier'] | string; // RLN Identifier
name: string; // Readable name
rateLimit?: number; // Milliseconds between messages
rateLimit?: number; // Milliseconds between epochs
messageLimit?: number; // default number of messages per epoch per user
membership?: MembershipI; // List of Identity Commitments, or a contract address for an RLN contract
type?: RoomType; // Public or private, if undefinied, assume public
messageHandlerSocket?: string; // Port for websocket connections
}
export interface RoomGroupI {
name: string;
id: bigint;
rooms: RoomI[];
}
export interface ServerI {
id: bigint;
name: string;
@@ -56,6 +51,6 @@ export interface ServerI {
serverInfoEndpoint: string;
messageHandlerSocket?: string; // Default port for websocket connections
publicMembership?: MembershipI;
roomGroups: RoomGroupI[];
rooms: RoomI[];
selectedRoom?: RoomI['id'];
}