plugnmeet-sdk-js 1.2.0 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/README.md +1 -1
  2. package/{PlugNmeet.d.ts → dist/PlugNmeet.d.ts} +0 -0
  3. package/{PlugNmeet.js → dist/PlugNmeet.js} +0 -0
  4. package/{PlugNmeet.js.map → dist/PlugNmeet.js.map} +0 -0
  5. package/{api.d.ts → dist/api.d.ts} +0 -0
  6. package/{api.js → dist/api.js} +0 -0
  7. package/{api.js.map → dist/api.js.map} +0 -0
  8. package/dist/cjs/PlugNmeet.d.ts +76 -0
  9. package/dist/cjs/PlugNmeet.js +231 -0
  10. package/dist/cjs/PlugNmeet.js.map +1 -0
  11. package/dist/cjs/api.d.ts +6 -0
  12. package/dist/cjs/api.js +85 -0
  13. package/dist/cjs/api.js.map +1 -0
  14. package/{index.d.ts → dist/cjs/index.d.ts} +0 -0
  15. package/dist/cjs/index.js +6 -0
  16. package/dist/cjs/index.js.map +1 -0
  17. package/{types → dist/cjs/types}/RecordingDownloadToken.d.ts +0 -0
  18. package/dist/cjs/types/RecordingDownloadToken.js +3 -0
  19. package/dist/cjs/types/RecordingDownloadToken.js.map +1 -0
  20. package/{types → dist/cjs/types}/activeRoomInfo.d.ts +0 -0
  21. package/dist/cjs/types/activeRoomInfo.js +3 -0
  22. package/dist/cjs/types/activeRoomInfo.js.map +1 -0
  23. package/{types → dist/cjs/types}/activeRoomsInfo.d.ts +0 -0
  24. package/dist/cjs/types/activeRoomsInfo.js +3 -0
  25. package/dist/cjs/types/activeRoomsInfo.js.map +1 -0
  26. package/{types → dist/cjs/types}/clientFiles.d.ts +0 -0
  27. package/dist/cjs/types/clientFiles.js +3 -0
  28. package/dist/cjs/types/clientFiles.js.map +1 -0
  29. package/{types → dist/cjs/types}/createRoom.d.ts +1 -0
  30. package/dist/cjs/types/createRoom.js +3 -0
  31. package/dist/cjs/types/createRoom.js.map +1 -0
  32. package/{types → dist/cjs/types}/deleteRecordings.d.ts +0 -0
  33. package/dist/cjs/types/deleteRecordings.js +3 -0
  34. package/dist/cjs/types/deleteRecordings.js.map +1 -0
  35. package/{types → dist/cjs/types}/endRoom.d.ts +0 -0
  36. package/dist/cjs/types/endRoom.js +3 -0
  37. package/dist/cjs/types/endRoom.js.map +1 -0
  38. package/{types → dist/cjs/types}/fetchRecordings.d.ts +0 -0
  39. package/dist/cjs/types/fetchRecordings.js +3 -0
  40. package/dist/cjs/types/fetchRecordings.js.map +1 -0
  41. package/{types → dist/cjs/types}/isRoomActive.d.ts +0 -0
  42. package/dist/cjs/types/isRoomActive.js +3 -0
  43. package/dist/cjs/types/isRoomActive.js.map +1 -0
  44. package/{types → dist/cjs/types}/joinToken.d.ts +0 -0
  45. package/dist/cjs/types/joinToken.js +3 -0
  46. package/dist/cjs/types/joinToken.js.map +1 -0
  47. package/dist/index.d.ts +11 -0
  48. package/{index.js → dist/index.js} +0 -0
  49. package/{index.js.map → dist/index.js.map} +0 -0
  50. package/dist/types/RecordingDownloadToken.d.ts +8 -0
  51. package/{types → dist/types}/RecordingDownloadToken.js +0 -0
  52. package/{types → dist/types}/RecordingDownloadToken.js.map +0 -0
  53. package/dist/types/activeRoomInfo.d.ts +34 -0
  54. package/{types → dist/types}/activeRoomInfo.js +0 -0
  55. package/{types → dist/types}/activeRoomInfo.js.map +0 -0
  56. package/dist/types/activeRoomsInfo.d.ts +6 -0
  57. package/{types → dist/types}/activeRoomsInfo.js +0 -0
  58. package/{types → dist/types}/activeRoomsInfo.js.map +0 -0
  59. package/dist/types/clientFiles.d.ts +6 -0
  60. package/{types → dist/types}/clientFiles.js +0 -0
  61. package/{types → dist/types}/clientFiles.js.map +0 -0
  62. package/dist/types/createRoom.d.ts +83 -0
  63. package/{types → dist/types}/createRoom.js +0 -0
  64. package/{types → dist/types}/createRoom.js.map +0 -0
  65. package/dist/types/deleteRecordings.d.ts +7 -0
  66. package/{types → dist/types}/deleteRecordings.js +0 -0
  67. package/{types → dist/types}/deleteRecordings.js.map +0 -0
  68. package/dist/types/endRoom.d.ts +7 -0
  69. package/{types → dist/types}/endRoom.js +0 -0
  70. package/{types → dist/types}/endRoom.js.map +0 -0
  71. package/dist/types/fetchRecordings.d.ts +27 -0
  72. package/{types → dist/types}/fetchRecordings.js +0 -0
  73. package/{types → dist/types}/fetchRecordings.js.map +0 -0
  74. package/dist/types/isRoomActive.d.ts +7 -0
  75. package/{types → dist/types}/isRoomActive.js +0 -0
  76. package/{types → dist/types}/isRoomActive.js.map +0 -0
  77. package/dist/types/joinToken.d.ts +21 -0
  78. package/{types → dist/types}/joinToken.js +0 -0
  79. package/{types → dist/types}/joinToken.js.map +0 -0
  80. package/package.json +11 -9
  81. package/src/PlugNmeet.ts +255 -0
  82. package/src/api.ts +92 -0
  83. package/src/index.ts +48 -0
  84. package/src/types/RecordingDownloadToken.ts +9 -0
  85. package/src/types/activeRoomInfo.ts +38 -0
  86. package/src/types/activeRoomsInfo.ts +7 -0
  87. package/src/types/clientFiles.ts +6 -0
  88. package/src/types/createRoom.ts +95 -0
  89. package/src/types/deleteRecordings.ts +8 -0
  90. package/src/types/endRoom.ts +8 -0
  91. package/src/types/fetchRecordings.ts +30 -0
  92. package/src/types/isRoomActive.ts +8 -0
  93. package/src/types/joinToken.ts +25 -0
@@ -0,0 +1,7 @@
1
+ import { Room } from './activeRoomInfo';
2
+
3
+ export type ActiveRoomsInfoResponse = {
4
+ status: boolean;
5
+ msg: string;
6
+ rooms?: Array<Room>;
7
+ };
@@ -0,0 +1,6 @@
1
+ export type ClientFilesResponse = {
2
+ status: boolean;
3
+ msg: string;
4
+ css?: Array<string>;
5
+ js?: Array<string>;
6
+ };
@@ -0,0 +1,95 @@
1
+ export type CreateRoomParams = {
2
+ room_id: string;
3
+ max_participants?: number;
4
+ empty_timeout?: number;
5
+ metadata: RooMetadata;
6
+ };
7
+
8
+ export type RooMetadata = {
9
+ room_title: string;
10
+ welcome_message?: string;
11
+ webhook_url?: string;
12
+ logout_url?: string;
13
+ room_features: RoomFeaturesParams;
14
+ default_lock_settings?: LockSettingsParams;
15
+ };
16
+
17
+ export type RoomFeaturesParams = {
18
+ allow_webcams: boolean;
19
+ mute_on_start: boolean;
20
+ allow_screen_share: boolean;
21
+ allow_rtmp: boolean;
22
+ admin_only_webcams: boolean;
23
+ allow_view_other_webcams: boolean;
24
+ allow_view_other_users_list: boolean;
25
+ recording_features: RecordingFeaturesParams;
26
+ chat_features: ChatFeaturesParams;
27
+ shared_note_pad_features?: SharedNotePadFeaturesParams;
28
+ whiteboard_features?: WhiteboardFeaturesParams;
29
+ external_media_player_features?: ExternalMediaPlayerFeatures;
30
+ waiting_room_features?: WaitingRoomFeatures;
31
+ breakout_room_features?: BreakoutRoomFeatures;
32
+ };
33
+
34
+ export type RecordingFeaturesParams = {
35
+ is_allow: boolean;
36
+ is_allow_cloud: boolean;
37
+ is_allow_local: boolean;
38
+ enable_auto_cloud_recording: boolean;
39
+ };
40
+
41
+ export type ChatFeaturesParams = {
42
+ allow_chat: boolean;
43
+ allow_file_upload: boolean;
44
+ allowed_file_types: Array<string>;
45
+ max_file_size: number;
46
+ };
47
+
48
+ export type SharedNotePadFeaturesParams = {
49
+ allowed_shared_note_pad: boolean;
50
+ };
51
+
52
+ export type WhiteboardFeaturesParams = {
53
+ allowed_whiteboard: boolean;
54
+ };
55
+
56
+ export type ExternalMediaPlayerFeatures = {
57
+ allowed_external_media_player: boolean;
58
+ };
59
+
60
+ export type WaitingRoomFeatures = {
61
+ is_active: boolean;
62
+ waiting_room_msg?: string;
63
+ };
64
+
65
+ export type BreakoutRoomFeatures = {
66
+ is_allow: boolean;
67
+ };
68
+
69
+ export type LockSettingsParams = {
70
+ lock_microphone?: boolean;
71
+ lock_webcam?: boolean;
72
+ lock_screen_sharing?: boolean;
73
+ lock_whiteboard?: boolean;
74
+ lock_shared_notepad?: boolean;
75
+ lock_chat?: boolean;
76
+ lock_chat_send_message?: boolean;
77
+ lock_chat_file_share?: boolean;
78
+ };
79
+
80
+ export type CreateRoomResponse = {
81
+ status: boolean;
82
+ msg: string;
83
+ roomInfo?: CreateRoomResponseRoomInfo;
84
+ };
85
+
86
+ export type CreateRoomResponseRoomInfo = {
87
+ sid: string;
88
+ name: string;
89
+ max_participants: number;
90
+ empty_timeout: number;
91
+ creation_time: number;
92
+ turn_password: string;
93
+ enabled_codecs: Array<any>;
94
+ metadata: string;
95
+ };
@@ -0,0 +1,8 @@
1
+ export type DeleteRecordingsParams = {
2
+ record_id: string;
3
+ };
4
+
5
+ export type DeleteRecordingsResponse = {
6
+ status: boolean;
7
+ msg: string;
8
+ };
@@ -0,0 +1,8 @@
1
+ export type EndRoomParams = {
2
+ room_id: string;
3
+ };
4
+
5
+ export type EndRoomResponse = {
6
+ status: boolean;
7
+ msg: string;
8
+ };
@@ -0,0 +1,30 @@
1
+ export type FetchRecordingsParams = {
2
+ room_ids: Array<string>;
3
+ from?: number;
4
+ limit?: number;
5
+ order_by?: 'ASC' | 'DESC';
6
+ };
7
+
8
+ export type FetchRecordingsResponse = {
9
+ status: boolean;
10
+ msg: string;
11
+ result?: FetchRecordingsResult;
12
+ };
13
+
14
+ export type FetchRecordingsResult = {
15
+ total_recordings: number;
16
+ from: number;
17
+ limit: number;
18
+ order_by: string;
19
+ recordings_list: Array<RecordingInfo>;
20
+ };
21
+
22
+ export type RecordingInfo = {
23
+ record_id: string;
24
+ room_id: string;
25
+ room_sid: string;
26
+ file_path: string;
27
+ file_size: number;
28
+ creation_time: number;
29
+ room_creation_time: number;
30
+ };
@@ -0,0 +1,8 @@
1
+ export type IsRoomActiveParams = {
2
+ room_id: string;
3
+ };
4
+
5
+ export type IsRoomActiveResponse = {
6
+ status: boolean;
7
+ msg: string;
8
+ };
@@ -0,0 +1,25 @@
1
+ import { LockSettingsParams } from './createRoom';
2
+
3
+ export type JoinTokenParams = {
4
+ room_id: string;
5
+ user_info: JoinTokenUserInfo;
6
+ };
7
+
8
+ export type JoinTokenUserInfo = {
9
+ name: string;
10
+ user_id: string;
11
+ is_admin: boolean;
12
+ is_hidden: boolean;
13
+ user_metadata?: JoinTokenUserMetadata;
14
+ };
15
+
16
+ export type JoinTokenUserMetadata = {
17
+ profile_pic?: string;
18
+ lock_settings?: LockSettingsParams;
19
+ };
20
+
21
+ export type JoinTokenResponse = {
22
+ status: boolean;
23
+ msg: string;
24
+ token?: string;
25
+ };