@waboyz-baileys/shared
Version:
74 lines (73 loc) • 3.31 kB
TypeScript
import { Empty } from './proto/google/protobuf/empty.js';
import { ActionClearUnreadCount, ActionSendMessage, ActionSpawnDestroyClient, ActionSpawnGracefulClient, ActionSpawnGracefulShutdown, ActionSpawnRestartClient, ActionSpawnStartBatch, ActionSpawnStartClient, ActionUploadMediaFromWa, EventChatsUpdate, EventChatsUpsert, EventConnected, EventError, EventMessageUpdate, EventMessageUpsert, EventNull, EventPresenceUpdate, EventQr, EventSendMessage, EventSendMessageError, EventSpawnCrashed, EventSpawnDestroyDone, EventSpawnGracefulClientDone, EventSpawnGracefulDone, TopicsInput } from './proto/wag.js';
export declare const ServerRegistry: import("@grpc-pipe/core").SchemaRegistry<{
'spawn:boot': ActionSpawnStartClient;
'spawn:batch': ActionSpawnStartBatch;
'spawn:restart': ActionSpawnRestartClient;
'spawn:graceful:client': ActionSpawnGracefulClient;
'spawn:graceful': ActionSpawnGracefulShutdown;
'spawn:destroy': ActionSpawnDestroyClient;
'send.message': ActionSendMessage;
'clear.unread-count': ActionClearUnreadCount;
'upload.media-from-wa': ActionUploadMediaFromWa;
'fetch.pps': Empty;
subscribe: TopicsInput;
unsubscribe: TopicsInput;
}, {
'spawn:graceful:client.done': EventSpawnGracefulClientDone;
'spawn:graceful.done': EventSpawnGracefulDone;
'spawn:destroy.done': EventSpawnDestroyDone;
'spawn:crashed': EventSpawnCrashed;
error: EventError;
warn: EventError;
initialized: EventNull;
'history.sync.complete': EventNull;
qr: EventQr;
connected: EventConnected;
logout: EventNull;
'creds.update': EventNull;
'messages.send': EventSendMessage;
'messages.error': EventSendMessageError;
'messages.upsert': EventMessageUpsert;
'messages.update': EventMessageUpdate;
'presence.update': EventPresenceUpdate;
'chats.upsert': EventChatsUpsert;
'chats.update': EventChatsUpdate;
}>;
export declare const ClientRegistry: import("@grpc-pipe/core").SchemaRegistry<{
error: EventError;
warn: EventError;
initialized: EventNull;
'history.sync.complete': EventNull;
qr: EventQr;
connected: EventConnected;
logout: EventNull;
'creds.update': EventNull;
'messages.send': EventSendMessage;
'messages.error': EventSendMessageError;
'messages.upsert': EventMessageUpsert;
'messages.update': EventMessageUpdate;
'presence.update': EventPresenceUpdate;
'chats.upsert': EventChatsUpsert;
'chats.update': EventChatsUpdate;
}, {
'send.message': ActionSendMessage;
'clear.unread-count': ActionClearUnreadCount;
'upload.media-from-wa': ActionUploadMediaFromWa;
'fetch.pps': Empty;
subscribe: TopicsInput;
unsubscribe: TopicsInput;
}>;
export declare const SpawnRegistry: import("@grpc-pipe/core").SchemaRegistry<{
'spawn:graceful:client.done': EventSpawnGracefulClientDone;
'spawn:graceful.done': EventSpawnGracefulDone;
'spawn:destroy.done': EventSpawnDestroyDone;
'spawn:crashed': EventSpawnCrashed;
}, {
'spawn:boot': ActionSpawnStartClient;
'spawn:batch': ActionSpawnStartBatch;
'spawn:restart': ActionSpawnRestartClient;
'spawn:graceful:client': ActionSpawnGracefulClient;
'spawn:graceful': ActionSpawnGracefulShutdown;
'spawn:destroy': ActionSpawnDestroyClient;
}>;