@k-msg/channel
v0.20.0
Published
AlimTalk channel and sender number management
Maintainers
Readme
@k-msg/channel
Canonical docs: k-msg.and.guide
Runtime-first Kakao channel orchestration for k-msg.
Installation
npm install @k-msg/channel @k-msg/core
# or
bun add @k-msg/channel @k-msg/coreRuntime API (@k-msg/channel)
Root exports are runtime-focused:
KakaoChannelCapabilityServiceKakaoChannelBindingResolverKakaoChannelLifecycleService- runtime types (
KakaoChannelCapabilityMode,KakaoChannelBinding,ResolvedKakaoChannelBinding,KakaoChannelListItem, ...)
Capability modes
api: provider exposes channel onboarding APIs (list/auth/add/categories)manual: provider requires manual onboarding (no channel onboarding API calls)none: provider does not support channel onboarding APIs
Example: resolve config binding
import { KakaoChannelBindingResolver } from "@k-msg/channel";
const resolver = new KakaoChannelBindingResolver(config);
const resolved = resolver.resolve({
providerId: "solapi-main",
channelAlias: "main",
senderKey: undefined,
plusId: undefined,
});
// precedence: explicit > alias > defaults > provider config
console.log(resolved.senderKey, resolved.plusId);Example: provider lifecycle calls
import { KakaoChannelLifecycleService } from "@k-msg/channel";
const service = new KakaoChannelLifecycleService(provider);
const channels = await service.list();
if (channels.isSuccess) {
console.log(channels.value); // KakaoChannelListItem[] with source="api"
}Toolkit API (@k-msg/channel/toolkit)
In-memory channel/sender helpers are now toolkit-only exports:
KakaoChannelManagerKakaoSenderNumberManagerChannelCRUDPermissionManagerChannelService- verification helpers and legacy channel types
import { KakaoChannelManager } from "@k-msg/channel/toolkit";License
MIT
