mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:40:44 +00:00
refactor: trim twitch helper exports
This commit is contained in:
@@ -4,7 +4,7 @@ import type { TwitchAccountConfig, TwitchChatMessage } from "./types.js";
|
||||
/**
|
||||
* Result of checking access control for a Twitch message
|
||||
*/
|
||||
export type TwitchAccessControlResult = {
|
||||
type TwitchAccessControlResult = {
|
||||
allowed: boolean;
|
||||
reason?: string;
|
||||
matchKey?: string;
|
||||
|
||||
@@ -8,7 +8,7 @@ import { normalizeToken } from "./utils/twitch.js";
|
||||
/**
|
||||
* Result of probing a Twitch account
|
||||
*/
|
||||
export type ProbeTwitchResult = BaseProbeResult<string> & {
|
||||
type ProbeTwitchResult = BaseProbeResult<string> & {
|
||||
username?: string;
|
||||
elapsedMs: number;
|
||||
connected?: boolean;
|
||||
|
||||
@@ -7,21 +7,15 @@
|
||||
|
||||
import type {
|
||||
ChannelAccountSnapshot,
|
||||
ChannelCapabilities,
|
||||
ChannelGatewayContext,
|
||||
ChannelLogSink,
|
||||
ChannelMessageActionAdapter,
|
||||
ChannelMessageActionContext,
|
||||
ChannelMeta,
|
||||
ChannelOutboundAdapter,
|
||||
ChannelOutboundContext,
|
||||
ChannelPlugin,
|
||||
ChannelResolveKind,
|
||||
ChannelResolveResult,
|
||||
ChannelStatusAdapter,
|
||||
OpenClawConfig,
|
||||
OutboundDeliveryResult,
|
||||
RuntimeEnv,
|
||||
} from "../runtime-api.js";
|
||||
|
||||
// ============================================================================
|
||||
@@ -98,20 +92,13 @@ export interface TwitchChatMessage {
|
||||
// Re-export core types for convenience
|
||||
export type {
|
||||
ChannelAccountSnapshot,
|
||||
ChannelGatewayContext,
|
||||
ChannelLogSink,
|
||||
ChannelMessageActionAdapter,
|
||||
ChannelMessageActionContext,
|
||||
ChannelMeta,
|
||||
ChannelOutboundAdapter,
|
||||
ChannelStatusAdapter,
|
||||
ChannelCapabilities,
|
||||
ChannelResolveKind,
|
||||
ChannelResolveResult,
|
||||
ChannelPlugin,
|
||||
ChannelOutboundContext,
|
||||
OutboundDeliveryResult,
|
||||
};
|
||||
|
||||
export type { OpenClawConfig };
|
||||
export type { RuntimeEnv };
|
||||
|
||||
Reference in New Issue
Block a user