Give downstream bots a notice when an account comes up or goes down, so they can handle their own alerts. Operator notification channels are unchanged.
80 lines
1.5 KiB
TypeScript
80 lines
1.5 KiB
TypeScript
export { SnowLumaApiClient } from './client/api-client';
|
|
export { createHttpClient, SnowLumaHttpClient } from './client/http-client';
|
|
export type {
|
|
SnowLumaHttpClientOptions
|
|
} from './client/http-client';
|
|
export { createWebSocketClient, SnowLumaWebSocketClient } from './client/websocket-client';
|
|
export {
|
|
createSnowLumaApiError, SnowLumaAbortError,
|
|
SnowLumaApiError,
|
|
SnowLumaAuthError,
|
|
SnowLumaConnectionError,
|
|
SnowLumaError,
|
|
SnowLumaParseError,
|
|
SnowLumaTimeoutError,
|
|
SnowLumaTransportError
|
|
} from './errors';
|
|
export {
|
|
createEventContext,
|
|
isBotStatusEvent,
|
|
isGroupMessageEvent,
|
|
isMessageEvent,
|
|
isMetaEvent,
|
|
isNoticeEvent,
|
|
isPrivateMessageEvent,
|
|
isRequestEvent,
|
|
matchCommand,
|
|
noticeType,
|
|
requestType
|
|
} from './events/index';
|
|
export {
|
|
at,
|
|
atAll,
|
|
br,
|
|
chain,
|
|
contact,
|
|
escapeCqParam,
|
|
escapeCqText,
|
|
face,
|
|
forward, fromCQString, image,
|
|
json,
|
|
location,
|
|
message, MessageChain, music,
|
|
node,
|
|
normalizeMessage,
|
|
parseSegments,
|
|
poke,
|
|
raw,
|
|
record,
|
|
reply,
|
|
share,
|
|
text,
|
|
toCQString,
|
|
video,
|
|
xml
|
|
} from './messages/index';
|
|
|
|
export type {
|
|
ReconnectOptions,
|
|
SnowLumaWebSocketClientOptions,
|
|
SnowLumaWebSocketEvents,
|
|
WebSocketCloseInfo,
|
|
WebSocketConstructor
|
|
} from './client/websocket-client';
|
|
|
|
export type {
|
|
CommandHandler,
|
|
CommandMatch,
|
|
CommandOptions,
|
|
EventHandler,
|
|
EventMiddleware,
|
|
EventNext,
|
|
EventPredicate,
|
|
MaybePromise,
|
|
RequestDecisionOptions,
|
|
SnowLumaEventContext
|
|
} from './events/index';
|
|
|
|
export type * from './types/index';
|
|
|