mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 18:00:54 +00:00
refactor: trim extension internal type exports
This commit is contained in:
@@ -1,22 +1,9 @@
|
||||
import type { CoreConfig } from "../../types.js";
|
||||
import {
|
||||
MATRIX_ANNOTATION_RELATION_TYPE,
|
||||
MATRIX_REACTION_EVENT_TYPE,
|
||||
type MatrixReactionEventContent,
|
||||
} from "../reaction-common.js";
|
||||
import { MATRIX_REACTION_EVENT_TYPE } from "../reaction-common.js";
|
||||
import type { MatrixClient, MessageEventContent } from "../sdk.js";
|
||||
export type { MatrixRawEvent } from "../sdk.js";
|
||||
export type { MatrixReactionSummary } from "../reaction-common.js";
|
||||
|
||||
export const MsgType = {
|
||||
Text: "m.text",
|
||||
} as const;
|
||||
|
||||
export const RelationType = {
|
||||
Replace: "m.replace",
|
||||
Annotation: MATRIX_ANNOTATION_RELATION_TYPE,
|
||||
} as const;
|
||||
|
||||
export const EventType = {
|
||||
RoomMessage: "m.room.message",
|
||||
RoomPinnedEvents: "m.room.pinned_events",
|
||||
@@ -35,16 +22,10 @@ export type RoomMessageEventContent = MessageEventContent & {
|
||||
};
|
||||
};
|
||||
|
||||
export type ReactionEventContent = MatrixReactionEventContent;
|
||||
|
||||
export type RoomPinnedEventsEventContent = {
|
||||
pinned: string[];
|
||||
};
|
||||
|
||||
export type RoomTopicEventContent = {
|
||||
topic?: string;
|
||||
};
|
||||
|
||||
export type MatrixActionClientOpts = {
|
||||
client?: MatrixClient;
|
||||
cfg?: CoreConfig;
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
import type { CoreConfig } from "../../types.js";
|
||||
import {
|
||||
MATRIX_ANNOTATION_RELATION_TYPE,
|
||||
MATRIX_REACTION_EVENT_TYPE,
|
||||
type MatrixReactionEventContent,
|
||||
} from "../reaction-common.js";
|
||||
import { MATRIX_ANNOTATION_RELATION_TYPE, MATRIX_REACTION_EVENT_TYPE } from "../reaction-common.js";
|
||||
import type {
|
||||
DimensionalFileInfo,
|
||||
EncryptedFile,
|
||||
@@ -79,8 +75,6 @@ export type MatrixMediaContent = MessageEventContent &
|
||||
|
||||
export type MatrixOutboundContent = MatrixTextContent | MatrixMediaContent;
|
||||
|
||||
export type ReactionEventContent = MatrixReactionEventContent;
|
||||
|
||||
export type MatrixSendResult = {
|
||||
messageId: string;
|
||||
roomId: string;
|
||||
|
||||
Reference in New Issue
Block a user