mirror of
https://github.com/Discreetly/interfaces.git
synced 2026-01-09 12:57:58 -05:00
deprecate(roomGroupI) removed roomgroups for simplicity
This commit is contained in:
@@ -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",
|
||||
|
||||
11
src/index.ts
11
src/index.ts
@@ -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'];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user