// package: wechaty.puppet // file: wechaty/puppet/event.proto import * as jspb from "google-protobuf"; export class EventRequest extends jspb.Message { getSeq(): number; setSeq(value: number): void; getAccountId(): string; setAccountId(value: string): void; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): EventRequest.AsObject; static toObject(includeInstance: boolean, msg: EventRequest): EventRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; static serializeBinaryToWriter(message: EventRequest, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): EventRequest; static deserializeBinaryFromReader(message: EventRequest, reader: jspb.BinaryReader): EventRequest; } export namespace EventRequest { export type AsObject = { seq: number, accountId: string, } } export class EventResponse extends jspb.Message { getType(): EventTypeMap[keyof EventTypeMap]; setType(value: EventTypeMap[keyof EventTypeMap]): void; getPayload(): string; setPayload(value: string): void; getSeq(): number; setSeq(value: number): void; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): EventResponse.AsObject; static toObject(includeInstance: boolean, msg: EventResponse): EventResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; static serializeBinaryToWriter(message: EventResponse, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): EventResponse; static deserializeBinaryFromReader(message: EventResponse, reader: jspb.BinaryReader): EventResponse; } export namespace EventResponse { export type AsObject = { type: EventTypeMap[keyof EventTypeMap], payload: string, seq: number, } } export interface EventTypeMap { EVENT_TYPE_UNSPECIFIED: 0; EVENT_TYPE_HEARTBEAT: 1; EVENT_TYPE_MESSAGE: 2; EVENT_TYPE_DONG: 3; EVENT_TYPE_POST: 4; EVENT_TYPE_ERROR: 16; EVENT_TYPE_FRIENDSHIP: 17; EVENT_TYPE_ROOM_INVITE: 18; EVENT_TYPE_ROOM_JOIN: 19; EVENT_TYPE_ROOM_LEAVE: 20; EVENT_TYPE_ROOM_TOPIC: 21; EVENT_TYPE_SCAN: 22; EVENT_TYPE_READY: 23; EVENT_TYPE_RESET: 24; EVENT_TYPE_LOGIN: 25; EVENT_TYPE_LOGOUT: 26; EVENT_TYPE_DIRTY: 27; EVENT_TYPE_TAG: 28; EVENT_TYPE_TAG_GROUP: 29; EVENT_TYPE_POST_COMMENT: 30; EVENT_TYPE_POST_TAP: 31; EVENT_TYPE_ROOM_ANNOUNCE: 32; EVENT_TYPE_VERIFY_CODE: 33; EVENT_TYPE_VERIFY_SLIDE: 34; EVENT_TYPE_CALL: 35; } export const EventType: EventTypeMap;