refactor(channels): hide internal channel types

This commit is contained in:
Vincent Koc
2026-06-17 17:30:08 +08:00
parent cf7850040e
commit 5370e73ee9
5 changed files with 6 additions and 10 deletions

View File

@@ -13,8 +13,6 @@ function getChatChannelMetaById(): Record<ChatChannelId, ChatChannelMeta> {
return chatChannelMetaCache;
}
export type { ChatChannelMeta };
/**
* Lists built-in chat channel metadata in configured display order.
*/

View File

@@ -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(

View File

@@ -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();

View File

@@ -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",

View File

@@ -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);