Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/StreamCall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ export class StreamCall extends CallApi {

create = this.getOrCreate;

ring = (params: { member_ids?: string[] }) => {
return this.videoApi.getCall({
...params,
id: this.id,
type: this.type,
ring: true,
});
};

queryMembers = (request?: OmitTypeId<QueryCallMembersRequest>) => {
return this.videoApi.queryCallMembers({
id: this.id,
Expand Down
2 changes: 2 additions & 0 deletions src/gen/model-decoders/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ decoders.CallResponse = (input?: Record<string, any>) => {

decoders.CallSessionResponse = (input?: Record<string, any>) => {
const typeMappings: TypeMapping = {
created_at: { type: 'DatetimeType', isSingle: true },

participants: { type: 'CallParticipantResponse', isSingle: false },

accepted_by: { type: 'DatetimeType', isSingle: false },
Expand Down
22 changes: 22 additions & 0 deletions src/gen/models/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
export interface AIImageConfig {
enabled: boolean;

ocr_rules: OCRRule[];

rules: AWSRekognitionRule[];

async?: boolean;
Expand Down Expand Up @@ -1303,6 +1305,8 @@ export interface CallSessionParticipantLeftEvent {
export interface CallSessionResponse {
anonymous_participant_count: number;

created_at: Date;

id: string;

participants: CallParticipantResponse[];
Expand Down Expand Up @@ -1641,6 +1645,8 @@ export interface CampaignResponse {

sender_mode: string;

show_channels: boolean;

skip_push: boolean;

skip_webhook: boolean;
Expand Down Expand Up @@ -5430,6 +5436,18 @@ export interface NotificationSettings {

export interface NullTime {}

export interface OCRRule {
action:
| 'flag'
| 'shadow'
| 'remove'
| 'bounce'
| 'bounce_flag'
| 'bounce_remove';

label: string;
}

export interface OnlyUserID {
id: string;
}
Expand Down Expand Up @@ -6941,6 +6959,8 @@ export interface ReviewQueueItem {

bounce_count: number;

config_key: string;

content_changed: boolean;

created_at: Date;
Expand Down Expand Up @@ -7049,6 +7069,8 @@ export interface ReviewQueueItemResponse {

completed_at?: Date;

config_key?: string;

entity_creator_id?: string;

reviewed_at?: Date;
Expand Down
7 changes: 4 additions & 3 deletions src/gen/video/CallApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ import {
StartFrameRecordingRequest,
StartFrameRecordingResponse,
StartHLSBroadcastingResponse,
StartRTMPBroadcastsRequest,
StartRTMPBroadcastsResponse,
StartRecordingRequest,
StartRecordingResponse,
StartRTMPBroadcastsRequest,
StartRTMPBroadcastsResponse,
StartTranscriptionRequest,
StartTranscriptionResponse,
StopAllRTMPBroadcastsResponse,
Expand All @@ -43,9 +43,9 @@ import {
StopHLSBroadcastingResponse,
StopLiveRequest,
StopLiveResponse,
StopRecordingResponse,
StopRTMPBroadcastsRequest,
StopRTMPBroadcastsResponse,
StopRecordingResponse,
StopTranscriptionRequest,
StopTranscriptionResponse,
UnblockUserRequest,
Expand All @@ -72,6 +72,7 @@ export class CallApi {
ring?: boolean;
notify?: boolean;
video?: boolean;
member_ids?: string[];
}): Promise<StreamResponse<GetCallResponse>> => {
return this.videoApi.getCall({ id: this.id, type: this.type, ...request });
};
Expand Down
12 changes: 7 additions & 5 deletions src/gen/video/VideoApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ import {
QueryAggregateCallStatsResponse,
QueryCallMembersRequest,
QueryCallMembersResponse,
QueryCallStatsRequest,
QueryCallStatsResponse,
QueryCallsRequest,
QueryCallsResponse,
QueryCallStatsRequest,
QueryCallStatsResponse,
QueryUserFeedbackRequest,
QueryUserFeedbackResponse,
Response,
Expand All @@ -46,10 +46,10 @@ import {
StartFrameRecordingRequest,
StartFrameRecordingResponse,
StartHLSBroadcastingResponse,
StartRTMPBroadcastsRequest,
StartRTMPBroadcastsResponse,
StartRecordingRequest,
StartRecordingResponse,
StartRTMPBroadcastsRequest,
StartRTMPBroadcastsResponse,
StartTranscriptionRequest,
StartTranscriptionResponse,
StopAllRTMPBroadcastsResponse,
Expand All @@ -59,9 +59,9 @@ import {
StopHLSBroadcastingResponse,
StopLiveRequest,
StopLiveResponse,
StopRecordingResponse,
StopRTMPBroadcastsRequest,
StopRTMPBroadcastsResponse,
StopRecordingResponse,
StopTranscriptionRequest,
StopTranscriptionResponse,
UnblockUserRequest,
Expand Down Expand Up @@ -152,12 +152,14 @@ export class VideoApi extends BaseApi {
ring?: boolean;
notify?: boolean;
video?: boolean;
member_ids?: string[];
}): Promise<StreamResponse<GetCallResponse>> => {
const queryParams = {
members_limit: request?.members_limit,
ring: request?.ring,
notify: request?.notify,
video: request?.video,
member_ids: request?.member_ids,
};
const pathParams = {
type: request?.type,
Expand Down
Loading