Skip to content

Commit

Permalink
Merge pull request #100 from mynaparrot/api_change
Browse files Browse the repository at this point in the history
added new changes
  • Loading branch information
jibon57 authored Sep 25, 2024
2 parents bda072b + f66126a commit 1dbf332
Show file tree
Hide file tree
Showing 12 changed files with 3,768 additions and 5,799 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/ deploy_page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,17 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16.x

node-version: 20.x
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9
- name: Install dependencies
run: npm install
run: pnpm install
- name: Build module
run: npm run build
run: pnpm run build
- name: Build docs
run: npm run build-docs
run: pnpm run build-docs

# Popular action to deploy to GitHub Pages:
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,15 @@ jobs:
- name: setup node
uses: actions/setup-node@v4
with:
node-version: '16.x'
node-version: '20.x'
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9
- name: Build and publish
run: |
npm install
npm run build
pnpm install
pnpm run build
npm config set '//registry.npmjs.org/:_authToken' $NPM_TOKEN
npm publish
env:
Expand Down
28 changes: 11 additions & 17 deletions deno_dist/types/createRoom.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { ActiveRoomInfo } from "./activeRoomInfo.ts"

export type CreateRoomParams = {
room_id: string;
max_participants?: number;
Expand Down Expand Up @@ -28,6 +30,7 @@ export type RoomFeaturesParams = {
enable_analytics: boolean;
allow_virtual_bg: boolean;
allow_raise_hand: boolean;
auto_gen_user_id?: boolean;
recording_features: RecordingFeaturesParams;
chat_features: ChatFeaturesParams;
shared_note_pad_features?: SharedNotePadFeaturesParams;
Expand Down Expand Up @@ -92,6 +95,8 @@ export type SpeechToTextTranslationFeatures = {

export type EndToEndEncryptionFeatures = {
is_enabled: boolean;
included_chat_messages?: boolean;
included_whiteboard?: boolean;
};

export type LockSettingsParams = {
Expand All @@ -105,24 +110,13 @@ export type LockSettingsParams = {
lock_chat_file_share?: boolean;
};

export type CreateRoomResponse = {
status: boolean;
msg: string;
roomInfo?: CreateRoomResponseRoomInfo;
};

export type CreateRoomResponseRoomInfo = {
sid: string;
name: string;
max_participants: number;
empty_timeout: number;
creation_time: number;
turn_password: string;
enabled_codecs: Array<any>;
metadata: string;
};

export type CopyrightConf = {
display: boolean;
text: string;
}

export type CreateRoomResponse = {
status: boolean;
msg: string;
room_info?: ActiveRoomInfo;
};
4 changes: 4 additions & 0 deletions deno_dist/types/joinToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ export type JoinTokenUserInfo = {

export type JoinTokenUserMetadata = {
profile_pic?: string;
record_webcam?: boolean;
preferred_lang?: string;
ex_user_id?: string;
extra_data?: string;
lock_settings?: LockSettingsParams;
};

Expand Down
Loading

0 comments on commit 1dbf332

Please sign in to comment.