@zencomms/cc-types
v0.1.0-alpha.3
Published
ZenComms cc-types package
Readme
@zencomms/cc-types
Contact-center domain types and ports: schemas for agent status, queues,
routing rules, IVR, screen pop, callbacks, business hours, SLA; the
RoutingPort, QueuePort, AgentStatusPort, and CallerLookupPort
interfaces; and the agent-state FSM + CCEventMap.
Install
pnpm add @zencomms/cc-typesStability
Alpha — APIs may change until 0.1.0.
Entry points
@zencomms/cc-types— single root export at./dist/index.js.
Usage
import { AgentStatusSchema, type AgentStatus } from '@zencomms/cc-types';
import { Value } from '@sinclair/typebox/value';
const status: AgentStatus = { agentId: 'a_1', state: 'available' };
Value.Assert(AgentStatusSchema, status);See also
- See the root README for architecture and contributing.
- ADR-001 explains contract stability.
