1.0.32 • Published 6 months ago

cv-contracts v1.0.32

Weekly downloads
-
License
ISC
Repository
-
Last release
6 months ago

cv-contracts

Project Overview

This repository contains a collection of TypeScript interfaces and enums that are used to model various entities and events with Carbon Voice API. These entities include users, channels, workspaces, and messages, among others.

The primary idea is to have a centralized place for webhook communication with Carbon Voice API

Usage example:

Install library

npm i cv-contracts

Import respective contract

import { Message, Conversation } from 'cv-contracts';

const msg: Message = {
  id: string;
  link: string;
  creator_id: string;
  conversation_id?: string | null;
  workspace_id?: string | null;
  created_at: string;
  last_updated_at: string;
  deleted_at?: string | null;
  duration_ms: number;
  audio_url?: string | null;
  audio_stream_url?: string | null;
  transcript?: string | null;
  ai_summary?: string | null;
  has_ai_summary?: boolean;
  waveform_url?: string | null;
  reply_count: number;
  parent_message_id?: string | null;
  language?: string | null;
  status: MessageStatus;
  attachments?: Attachment[];
  type: MessageType;
}
 const conversation: Conversation = {
    id: string;
    link: string;
    name: string;
    description?: string | null;
    workspace_id: string;
    workspace_name: string;
    workspace_image_url?: string | null;
    owner_id: string;
    type: ChannelType;
    visibility: ChannelVisibility;
    total_messages: number;
    total_duration_ms: number;
    image_url?: string | null;
    is_private: boolean;
    is_async: boolean;
    async_stats?: AsyncMeetingStats | null;
    created_at: string;
    last_updated_at: string;
    deleted_at?: string;
 }
1.0.32

6 months ago

1.0.31

6 months ago

1.0.30

9 months ago

1.0.29

9 months ago

1.0.28

12 months ago

1.0.27

12 months ago

1.0.26

1 year ago

1.0.25

1 year ago

1.0.24

1 year ago

1.0.23

1 year ago

1.0.19

1 year ago

1.0.22

1 year ago

1.0.21

1 year ago

1.0.20

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

0.0.20

1 year ago

0.0.21

1 year ago

0.0.22

1 year ago

0.0.23

1 year ago

0.0.24

1 year ago

0.0.25

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

0.0.15

1 year ago

0.0.16

1 year ago

0.0.17

1 year ago

0.0.18

1 year ago

0.0.19

1 year ago

0.0.12

1 year ago

0.0.13

1 year ago

0.0.14

1 year ago

0.0.26

1 year ago

0.0.27

1 year ago

0.0.28

1 year ago

0.0.29

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago