diff --git a/packages/client/src/Call.ts b/packages/client/src/Call.ts index 47c2768d0a..d11cdb1574 100644 --- a/packages/client/src/Call.ts +++ b/packages/client/src/Call.ts @@ -37,6 +37,7 @@ import { GoLiveRequest, GoLiveResponse, ListRecordingsResponse, + ListRTMPBroadcastsResponse, ListTranscriptionsResponse, MuteUsersRequest, MuteUsersResponse, @@ -56,12 +57,16 @@ import { StartHLSBroadcastingResponse, StartRecordingRequest, StartRecordingResponse, + StartRTMPBroadcastsRequest, + StartRTMPBroadcastsResponse, StartTranscriptionRequest, StartTranscriptionResponse, StatsOptions, StopHLSBroadcastingResponse, StopLiveResponse, StopRecordingResponse, + StopRTMPBroadcastsRequest, + StopRTMPBroadcastsResponse, StopTranscriptionResponse, UnblockUserRequest, UnblockUserResponse, @@ -634,6 +639,27 @@ export class Call { return response; }; + startRTMPBroadcast = async (data: StartRTMPBroadcastsRequest) => { + console.log('Niv is VERY VERY 1232 awesome >>>>') + return this.streamClient.post( + `${this.streamClientBasePath}/start_rtmp_broadcasts`, + data, + ); + }; + + stopRTMPBroadcast = async (data: StopRTMPBroadcastsRequest) => { + return this.streamClient.post( + `${this.streamClientBasePath}/stop_rtmp_broadcasts`, + data, + ); + }; + + listRTMPBroadcasts = async () => { + return this.streamClient.get( + `${this.streamClientBasePath}/list_rtmp_broadcasts`, + ); + }; + /** * Creates a call * diff --git a/packages/client/src/gen/coordinator/index.ts b/packages/client/src/gen/coordinator/index.ts index 6125e95729..49800fcd79 100644 --- a/packages/client/src/gen/coordinator/index.ts +++ b/packages/client/src/gen/coordinator/index.ts @@ -3437,6 +3437,12 @@ export interface GoLiveRequest { * @memberof GoLiveRequest */ start_recording?: boolean; + /** + * + * @type {boolean} + * @memberof GoLiveRequest + */ + start_rtmp_broadcasts?: boolean; /** * * @type {boolean} @@ -3723,6 +3729,25 @@ export interface ListDevicesResponse { */ duration: string; } +/** + * + * @export + * @interface ListRTMPBroadcastsResponse + */ +export interface ListRTMPBroadcastsResponse { + /** + * + * @type {Array} + * @memberof ListRTMPBroadcastsResponse + */ + broadcasts: Array; + /** + * Duration of the request in human-readable format + * @type {string} + * @memberof ListRTMPBroadcastsResponse + */ + duration: string; +} /** * * @export @@ -4285,7 +4310,7 @@ export interface OwnUserResponse { * @type {boolean} * @memberof OwnUserResponse */ - invisible?: boolean; + invisible: boolean; /** * * @type {string} @@ -4751,6 +4776,85 @@ export interface QueryCallsResponse { */ prev?: string; } +/** + * + * @export + * @interface RTMPBroadcast + */ +export interface RTMPBroadcast { + /** + * + * @type {string} + * @memberof RTMPBroadcast + */ + created_at: string; + /** + * + * @type {string} + * @memberof RTMPBroadcast + */ + deleted_at?: string; + /** + * + * @type {string} + * @memberof RTMPBroadcast + */ + ended_at?: string; + /** + * + * @type {string} + * @memberof RTMPBroadcast + */ + error?: string; + /** + * + * @type {string} + * @memberof RTMPBroadcast + */ + error_message?: string; + /** + * + * @type {string} + * @memberof RTMPBroadcast + */ + name: string; + /** + * + * @type {string} + * @memberof RTMPBroadcast + */ + password?: string; + /** + * + * @type {string} + * @memberof RTMPBroadcast + */ + started_at?: string; + /** + * + * @type {string} + * @memberof RTMPBroadcast + */ + status: string; + /** + * + * @type {string} + * @memberof RTMPBroadcast + */ + stream_key: string; + /** + * + * @type {string} + * @memberof RTMPBroadcast + */ + stream_url: string; + /** + * + * @type {string} + * @memberof RTMPBroadcast + */ + username?: string; +} /** * RTMP input settings * @export @@ -5187,6 +5291,56 @@ export interface StartHLSBroadcastingResponse { */ playlist_url: string; } +/** + * + * @export + * @interface StartRTMPBroadcastsRequest + */ +export interface StartRTMPBroadcastsRequest { + /** + * + * @type {string} + * @memberof StartRTMPBroadcastsRequest + */ + name?: string; + /** + * + * @type {string} + * @memberof StartRTMPBroadcastsRequest + */ + password?: string; + /** + * + * @type {string} + * @memberof StartRTMPBroadcastsRequest + */ + stream_key?: string; + /** + * + * @type {string} + * @memberof StartRTMPBroadcastsRequest + */ + stream_url?: string; + /** + * + * @type {string} + * @memberof StartRTMPBroadcastsRequest + */ + username?: string; +} +/** + * + * @export + * @interface StartRTMPBroadcastsResponse + */ +export interface StartRTMPBroadcastsResponse { + /** + * Duration of the request in human-readable format + * @type {string} + * @memberof StartRTMPBroadcastsResponse + */ + duration: string; +} /** * * @export @@ -5303,6 +5457,32 @@ export interface StopLiveResponse { */ duration: string; } +/** + * + * @export + * @interface StopRTMPBroadcastsRequest + */ +export interface StopRTMPBroadcastsRequest { + /** + * + * @type {string} + * @memberof StopRTMPBroadcastsRequest + */ + name?: string; +} +/** + * + * @export + * @interface StopRTMPBroadcastsResponse + */ +export interface StopRTMPBroadcastsResponse { + /** + * Duration of the request in human-readable format + * @type {string} + * @memberof StopRTMPBroadcastsResponse + */ + duration: string; +} /** * * @export