diff --git a/package.json b/package.json index c148690..e034b2a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "discreetly-interfaces", - "version": "0.1.29", + "version": "0.1.30", "description": "Common interfaces and utilities for discreetly", "author": "AtHeartEngineer", "homepage": "https://github.com/Discreetly", diff --git a/src/index.ts b/src/index.ts index 951c935..64b2224 100644 --- a/src/index.ts +++ b/src/index.ts @@ -14,7 +14,7 @@ export interface RLNContractI { export interface MessageI { id?: string; // database ID messageId?: string; // internal nullifier as string - roomId?: RLNFullProof['rlnIdentifier']; + roomId?: RLNFullProof['rlnIdentifier'] | string; message: string; proof?: RLNFullProof; epoch?: number | bigint; @@ -24,7 +24,7 @@ export interface MessageI { export interface SystemMessageI { timestamp: string; // unix epoch time in ms as string message: string; // plain text message - room?: RLNFullProof['rlnIdentifier']; // optionally send it to one room or all rooms + room?: RLNFullProof['rlnIdentifier'] | string; // optionally send it to one room or all rooms } export interface RoomI { @@ -45,7 +45,7 @@ export interface RoomI { } export interface ServerI { - id: bigint; + id: bigint | string; name: string; version?: string; serverInfoEndpoint?: string;