diff options
Diffstat (limited to 'dist/types/ICLIEvent.d.ts')
-rw-r--r-- | dist/types/ICLIEvent.d.ts | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/dist/types/ICLIEvent.d.ts b/dist/types/ICLIEvent.d.ts index 31c310f..ea4ba30 100644 --- a/dist/types/ICLIEvent.d.ts +++ b/dist/types/ICLIEvent.d.ts @@ -1,9 +1,35 @@ +/** + * An event received from signal-cli that is not associated + * with any earlier request + */ export interface ICLIEvent { - jsonrpc: string; + jsonrpc: "2.0"; + /** + * The version of JSON-RPC used by signal-cli + */ + /** + * The method used internally to receive this + * event (usually "receive") + */ method: string; + /** + * The data received from the event + */ params: { + /** + * The decrypted message + */ envelope: any; + /** + * The phone number of the account that received the event + */ account: string; + /** + * Undocumented, but we suppose this has something to do with + * the account having a Signal badge or not. + * + * If you know what this does, feel free to edit this + */ subscription: number; }; } |