mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-29 00:23:36 +00:00
refactor(channels): hide internal channel types
This commit is contained in:
@@ -13,8 +13,6 @@ function getChatChannelMetaById(): Record<ChatChannelId, ChatChannelMeta> {
|
||||
return chatChannelMetaCache;
|
||||
}
|
||||
|
||||
export type { ChatChannelMeta };
|
||||
|
||||
/**
|
||||
* Lists built-in chat channel metadata in configured display order.
|
||||
*/
|
||||
|
||||
@@ -43,13 +43,13 @@ export type DurableMessageBatchSendParams = Omit<
|
||||
previousReceipt?: MessageReceipt;
|
||||
};
|
||||
|
||||
export type DurableMessageSuppressionReason =
|
||||
type DurableMessageSuppressionReason =
|
||||
| OutboundPayloadDeliverySuppressionReason
|
||||
| "no_visible_result";
|
||||
|
||||
export type DurableMessageFailureStage = "platform_send" | "queue" | "unknown";
|
||||
type DurableMessageFailureStage = "platform_send" | "queue" | "unknown";
|
||||
|
||||
export type DurableMessagePayloadDeliveryOutcome =
|
||||
type DurableMessagePayloadDeliveryOutcome =
|
||||
| {
|
||||
index: number;
|
||||
status: "sent";
|
||||
@@ -104,8 +104,6 @@ export type DurableMessageBatchSendResult =
|
||||
payloadOutcomes?: DurableMessagePayloadDeliveryOutcome[];
|
||||
};
|
||||
|
||||
export type DurableMessageDeliveryOutcome = DurableMessageBatchSendResult;
|
||||
|
||||
const neverAbortedSignal = new AbortController().signal;
|
||||
|
||||
function toDurableMessageIntent(
|
||||
|
||||
@@ -39,7 +39,7 @@ type ChannelPackageStateMetadata = {
|
||||
/**
|
||||
* Metadata keys that can declare a lightweight package-state checker.
|
||||
*/
|
||||
export type ChannelPackageStateMetadataKey = "configuredState" | "persistedAuthState";
|
||||
type ChannelPackageStateMetadataKey = "configuredState" | "persistedAuthState";
|
||||
|
||||
const log = createSubsystemLogger("channels");
|
||||
const sourcePackageStateLoaderCache: PluginModuleLoaderCache = new Map();
|
||||
|
||||
@@ -10,7 +10,7 @@ export type RuntimeChannelStatusPayload = {
|
||||
channelAccounts?: unknown;
|
||||
};
|
||||
|
||||
export type RuntimeChannelAccount = Record<string, unknown>;
|
||||
type RuntimeChannelAccount = Record<string, unknown>;
|
||||
|
||||
const CREDENTIAL_STATUS_KEYS = [
|
||||
"tokenStatus",
|
||||
|
||||
@@ -46,7 +46,7 @@ export type ThreadBindingSpawnPolicy = {
|
||||
};
|
||||
|
||||
/** Starting transcript mode for a spawned thread-bound session. */
|
||||
export type ThreadBindingSpawnContext = "isolated" | "fork";
|
||||
type ThreadBindingSpawnContext = "isolated" | "fork";
|
||||
|
||||
function normalizeChannelId(value: string | undefined | null): string {
|
||||
return normalizeLowercaseStringOrEmpty(value);
|
||||
|
||||
Reference in New Issue
Block a user