@levelchat/shared-types

v0.2.1

Published

LevelChat shared TypeScript types and zod schemas used across SDKs, admin, landing, and docs.

Downloads

124

Readme

@levelchat/shared-types

Shared TypeScript types and zod schemas for LevelChat SDKs, admin UI, landing site, and docs.

import {
  LevelChatRoom,
  Participant,
  QualityScore,
  SignalingEvent,
  WebhookEvent,
} from '@levelchat/shared-types';

import { RoomSchema, SignalingEventSchema } from '@levelchat/shared-types/schemas';

const parsed = SignalingEventSchema.parse(JSON.parse(wire));

Types and schemas are kept in lock-step — if you change one, change the other. CI fails otherwise.

MIT licensed.