Move database work off the main thread on Node.js 24 and improve message handling and runtime diagnostics. Preserve migration, restart, and concurrency coverage with the async SQLite driver.
36 lines
1.1 KiB
TypeScript
36 lines
1.1 KiB
TypeScript
export { toInt } from '@snowluma/protocol/oidb-services/shared';
|
|
|
|
// The bot's-own-UID resolver is the single source of truth in @snowluma/protocol
|
|
// (a Bridge satisfies its BridgeContext slice). Re-exported here so the existing
|
|
// `resolveSelfUid(bridge)` call sites in this package keep importing from shared.
|
|
export { resolveSelfUid } from '@snowluma/protocol/self-uid';
|
|
|
|
/**
|
|
* Index describing a server-side rich-media object (image / video /
|
|
* voice). Returned by message parsers, consumed by the media-URL
|
|
* fetchers in group-file.ts.
|
|
*/
|
|
export interface MediaIndexNode {
|
|
info?: {
|
|
fileSize?: number;
|
|
fileHash?: string;
|
|
fileSha1?: string;
|
|
fileName?: string;
|
|
width?: number;
|
|
height?: number;
|
|
time?: number;
|
|
original?: number;
|
|
type?: {
|
|
type?: number;
|
|
picFormat?: number;
|
|
videoFormat?: number;
|
|
voiceFormat?: number;
|
|
};
|
|
};
|
|
fileUuid?: string;
|
|
storeId?: number;
|
|
uploadTime?: number;
|
|
ttl?: number;
|
|
subType?: number;
|
|
}
|