@stream-io/node-sdk 0.4.8 → 0.4.10

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.
@@ -1,6 +1,6 @@
1
1
  import { BaseApi } from '../../BaseApi';
2
2
  import { StreamResponse } from '../../types';
3
- import { CampaignResponse, CastPollVoteRequest, ChannelGetOrCreateRequest, ChannelStateResponse, CommitMessageRequest, CreateChannelTypeRequest, CreateChannelTypeResponse, CreateCommandRequest, CreateCommandResponse, CreatePollOptionRequest, CreatePollRequest, DeleteChannelResponse, DeleteChannelsRequest, DeleteChannelsResponse, DeleteCommandResponse, DeleteMessageResponse, DeleteSegmentTargetsRequest, EventResponse, ExportChannelsRequest, ExportChannelsResponse, FileUploadRequest, FileUploadResponse, GetCampaignResponse, GetChannelTypeResponse, GetCommandResponse, GetExportChannelsStatusResponse, GetManyMessagesResponse, GetMessageResponse, GetReactionsResponse, GetRepliesResponse, GetSegmentResponse, GetThreadResponse, HideChannelRequest, HideChannelResponse, ImageUploadRequest, ImageUploadResponse, ListChannelTypesResponse, ListCommandsResponse, MarkChannelsReadRequest, MarkReadRequest, MarkReadResponse, MarkUnreadRequest, MembersResponse, MessageActionRequest, MessageResponse, MuteChannelRequest, MuteChannelResponse, PollOptionResponse, PollResponse, PollVoteResponse, PollVotesResponse, QueryBannedUsersPayload, QueryBannedUsersResponse, QueryCampaignsRequest, QueryCampaignsResponse, QueryChannelsRequest, QueryChannelsResponse, QueryMembersPayload, QueryMessageFlagsPayload, QueryMessageFlagsResponse, QueryMessageHistoryRequest, QueryMessageHistoryResponse, QueryPollVotesRequest, QueryPollsRequest, QueryPollsResponse, QueryReactionsRequest, QueryReactionsResponse, QuerySegmentTargetsRequest, QuerySegmentTargetsResponse, QuerySegmentsRequest, QuerySegmentsResponse, QueryThreadsRequest, QueryThreadsResponse, ReactionRemovalResponse, Response, SearchPayload, SearchResponse, SendEventRequest, SendMessageRequest, SendMessageResponse, SendReactionRequest, SendReactionResponse, SendUserCustomEventRequest, ShowChannelRequest, ShowChannelResponse, SortParamRequest, StartCampaignRequest, StartCampaignResponse, StopCampaignRequest, TranslateMessageRequest, TruncateChannelRequest, TruncateChannelResponse, UnmuteChannelRequest, UnmuteResponse, UnreadCountsBatchRequest, UnreadCountsBatchResponse, UpdateChannelPartialRequest, UpdateChannelPartialResponse, UpdateChannelRequest, UpdateChannelResponse, UpdateChannelTypeRequest, UpdateChannelTypeResponse, UpdateCommandRequest, UpdateCommandResponse, UpdateMemberPartialRequest, UpdateMemberPartialResponse, UpdateMessagePartialRequest, UpdateMessagePartialResponse, UpdateMessageRequest, UpdateMessageResponse, UpdatePollOptionRequest, UpdatePollPartialRequest, UpdatePollRequest, UpdateThreadPartialRequest, UpdateThreadPartialResponse, WrappedUnreadCountsResponse } from '../models';
3
+ import { CampaignResponse, CastPollVoteRequest, ChannelGetOrCreateRequest, ChannelStateResponse, CommitMessageRequest, CreateChannelTypeRequest, CreateChannelTypeResponse, CreateCommandRequest, CreateCommandResponse, CreatePollOptionRequest, CreatePollRequest, DeleteChannelResponse, DeleteChannelsRequest, DeleteChannelsResponse, DeleteCommandResponse, DeleteMessageResponse, DeleteReactionResponse, DeleteSegmentTargetsRequest, EventResponse, ExportChannelsRequest, ExportChannelsResponse, FileUploadRequest, FileUploadResponse, GetCampaignResponse, GetChannelTypeResponse, GetCommandResponse, GetExportChannelsStatusResponse, GetManyMessagesResponse, GetMessageResponse, GetReactionsResponse, GetRepliesResponse, GetSegmentResponse, GetThreadResponse, HideChannelRequest, HideChannelResponse, ImageUploadRequest, ImageUploadResponse, ListChannelTypesResponse, ListCommandsResponse, MarkChannelsReadRequest, MarkReadRequest, MarkReadResponse, MarkUnreadRequest, MembersResponse, MessageActionRequest, MessageResponse, MuteChannelRequest, MuteChannelResponse, PollOptionResponse, PollResponse, PollVoteResponse, PollVotesResponse, QueryBannedUsersPayload, QueryBannedUsersResponse, QueryCampaignsRequest, QueryCampaignsResponse, QueryChannelsRequest, QueryChannelsResponse, QueryMembersPayload, QueryMessageFlagsPayload, QueryMessageFlagsResponse, QueryMessageHistoryRequest, QueryMessageHistoryResponse, QueryPollVotesRequest, QueryPollsRequest, QueryPollsResponse, QueryReactionsRequest, QueryReactionsResponse, QuerySegmentTargetsRequest, QuerySegmentTargetsResponse, QuerySegmentsRequest, QuerySegmentsResponse, QueryThreadsRequest, QueryThreadsResponse, Response, SearchPayload, SearchResponse, SendEventRequest, SendMessageRequest, SendMessageResponse, SendReactionRequest, SendReactionResponse, SendUserCustomEventRequest, ShowChannelRequest, ShowChannelResponse, SortParamRequest, StartCampaignRequest, StartCampaignResponse, StopCampaignRequest, TranslateMessageRequest, TruncateChannelRequest, TruncateChannelResponse, UnmuteChannelRequest, UnmuteResponse, UnreadCountsBatchRequest, UnreadCountsBatchResponse, UpdateChannelPartialRequest, UpdateChannelPartialResponse, UpdateChannelRequest, UpdateChannelResponse, UpdateChannelTypeRequest, UpdateChannelTypeResponse, UpdateCommandRequest, UpdateCommandResponse, UpdateMemberPartialRequest, UpdateMemberPartialResponse, UpdateMessagePartialRequest, UpdateMessagePartialResponse, UpdateMessageRequest, UpdateMessageResponse, UpdatePollOptionRequest, UpdatePollPartialRequest, UpdatePollRequest, UpdateThreadPartialRequest, UpdateThreadPartialResponse, WrappedUnreadCountsResponse } from '../models';
4
4
  export declare class ChatApi extends BaseApi {
5
5
  queryCampaigns: (request?: QueryCampaignsRequest) => Promise<StreamResponse<QueryCampaignsResponse>>;
6
6
  getCampaign: (request: {
@@ -149,7 +149,7 @@ export declare class ChatApi extends BaseApi {
149
149
  id: string;
150
150
  type: string;
151
151
  user_id?: string;
152
- }) => Promise<StreamResponse<ReactionRemovalResponse>>;
152
+ }) => Promise<StreamResponse<DeleteReactionResponse>>;
153
153
  getReactions: (request: {
154
154
  id: string;
155
155
  limit?: number;
@@ -367,6 +367,10 @@ export interface BroadcastSettingsResponse {
367
367
  hls: HLSSettingsResponse;
368
368
  rtmp: RTMPSettingsResponse;
369
369
  }
370
+ export interface BrowserDataResponse {
371
+ name?: string;
372
+ version?: string;
373
+ }
370
374
  export interface CallAcceptedEvent {
371
375
  call_cid: string;
372
376
  created_at: Date;
@@ -822,6 +826,7 @@ export interface CampaignResponse {
822
826
  id: string;
823
827
  name: string;
824
828
  sender_id: string;
829
+ sender_mode: string;
825
830
  skip_push: boolean;
826
831
  skip_webhook: boolean;
827
832
  status: string;
@@ -1294,6 +1299,11 @@ export interface CheckSQSResponse {
1294
1299
  error?: string;
1295
1300
  data?: Record<string, any>;
1296
1301
  }
1302
+ export interface ClientOSDataResponse {
1303
+ architecture?: string;
1304
+ name?: string;
1305
+ version?: string;
1306
+ }
1297
1307
  export interface ClosedCaptionEvent {
1298
1308
  call_cid: string;
1299
1309
  created_at: Date;
@@ -1666,6 +1676,11 @@ export interface DeleteModerationTemplateResponse {
1666
1676
  export interface DeleteReactionRequest {
1667
1677
  hard_delete?: boolean;
1668
1678
  }
1679
+ export interface DeleteReactionResponse {
1680
+ duration: string;
1681
+ message: MessageResponse;
1682
+ reaction: ReactionResponse;
1683
+ }
1669
1684
  export interface DeleteRecordingResponse {
1670
1685
  duration: string;
1671
1686
  }
@@ -1704,6 +1719,10 @@ export interface Device {
1704
1719
  push_provider_name?: string;
1705
1720
  voip?: boolean;
1706
1721
  }
1722
+ export interface DeviceDataResponse {
1723
+ name?: string;
1724
+ version?: string;
1725
+ }
1707
1726
  export interface DeviceErrorInfo {
1708
1727
  error_message: string;
1709
1728
  provider: string;
@@ -3131,6 +3150,11 @@ export interface PinRequest {
3131
3150
  export interface PinResponse {
3132
3151
  duration: string;
3133
3152
  }
3153
+ export interface PlatformDataResponse {
3154
+ browser: BrowserDataResponse;
3155
+ device: DeviceDataResponse;
3156
+ os: ClientOSDataResponse;
3157
+ }
3134
3158
  export interface Policy {
3135
3159
  action: number;
3136
3160
  created_at: Date;
@@ -3647,6 +3671,19 @@ export interface QueryUsageStatsResponse {
3647
3671
  next?: string;
3648
3672
  prev?: string;
3649
3673
  }
3674
+ export interface QueryUserFeedbackRequest {
3675
+ limit?: number;
3676
+ next?: string;
3677
+ prev?: string;
3678
+ sort?: SortParamRequest[];
3679
+ filter_conditions?: Record<string, any>;
3680
+ }
3681
+ export interface QueryUserFeedbackResponse {
3682
+ duration: string;
3683
+ user_feedback: UserFeedbackResponse[];
3684
+ next?: string;
3685
+ prev?: string;
3686
+ }
3650
3687
  export interface QueryUsersPayload {
3651
3688
  filter_conditions: Record<string, any>;
3652
3689
  include_deactivated_users?: boolean;
@@ -3737,11 +3774,6 @@ export interface ReactionNewEvent {
3737
3774
  reaction?: Reaction;
3738
3775
  user?: User;
3739
3776
  }
3740
- export interface ReactionRemovalResponse {
3741
- duration: string;
3742
- message?: Message;
3743
- reaction?: Reaction;
3744
- }
3745
3777
  export interface ReactionRequest {
3746
3778
  type: string;
3747
3779
  created_at?: Date;
@@ -4856,6 +4888,17 @@ export interface UserFeedbackReport {
4856
4888
  export interface UserFeedbackReportResponse {
4857
4889
  daily: DailyAggregateUserFeedbackReportResponse[];
4858
4890
  }
4891
+ export interface UserFeedbackResponse {
4892
+ cid: string;
4893
+ rating: number;
4894
+ reason: string;
4895
+ sdk: string;
4896
+ sdk_version: string;
4897
+ session_id: string;
4898
+ user_id: string;
4899
+ platform: PlatformDataResponse;
4900
+ custom?: Record<string, any>;
4901
+ }
4859
4902
  export interface UserFlaggedEvent {
4860
4903
  created_at: Date;
4861
4904
  type: string;
@@ -1,7 +1,10 @@
1
1
  import { BaseApi } from '../../BaseApi';
2
2
  import { StreamResponse } from '../../types';
3
- import { BlockUserRequest, BlockUserResponse, CollectUserFeedbackRequest, CollectUserFeedbackResponse, CreateCallTypeRequest, CreateCallTypeResponse, DeleteCallRequest, DeleteCallResponse, DeleteRecordingResponse, DeleteTranscriptionResponse, EndCallResponse, GetCallReportResponse, GetCallResponse, GetCallStatsResponse, GetCallTypeResponse, GetEdgesResponse, GetOrCreateCallRequest, GetOrCreateCallResponse, GoLiveRequest, GoLiveResponse, ListCallTypeResponse, ListRecordingsResponse, ListTranscriptionsResponse, MuteUsersRequest, MuteUsersResponse, PinRequest, PinResponse, QueryAggregateCallStatsRequest, QueryAggregateCallStatsResponse, QueryCallMembersRequest, QueryCallMembersResponse, QueryCallStatsRequest, QueryCallStatsResponse, QueryCallsRequest, QueryCallsResponse, Response, SendCallEventRequest, SendCallEventResponse, StartClosedCaptionsRequest, StartClosedCaptionsResponse, StartHLSBroadcastingResponse, StartRTMPBroadcastsRequest, StartRTMPBroadcastsResponse, StartRecordingRequest, StartRecordingResponse, StartTranscriptionRequest, StartTranscriptionResponse, StopAllRTMPBroadcastsResponse, StopClosedCaptionsRequest, StopClosedCaptionsResponse, StopHLSBroadcastingResponse, StopLiveRequest, StopLiveResponse, StopRTMPBroadcastsRequest, StopRTMPBroadcastsResponse, StopRecordingResponse, StopTranscriptionRequest, StopTranscriptionResponse, UnblockUserRequest, UnblockUserResponse, UnpinRequest, UnpinResponse, UpdateCallMembersRequest, UpdateCallMembersResponse, UpdateCallRequest, UpdateCallResponse, UpdateCallTypeRequest, UpdateCallTypeResponse, UpdateUserPermissionsRequest, UpdateUserPermissionsResponse } from '../models';
3
+ import { BlockUserRequest, BlockUserResponse, CollectUserFeedbackRequest, CollectUserFeedbackResponse, CreateCallTypeRequest, CreateCallTypeResponse, DeleteCallRequest, DeleteCallResponse, DeleteRecordingResponse, DeleteTranscriptionResponse, EndCallResponse, GetCallReportResponse, GetCallResponse, GetCallStatsResponse, GetCallTypeResponse, GetEdgesResponse, GetOrCreateCallRequest, GetOrCreateCallResponse, GoLiveRequest, GoLiveResponse, ListCallTypeResponse, ListRecordingsResponse, ListTranscriptionsResponse, MuteUsersRequest, MuteUsersResponse, PinRequest, PinResponse, QueryAggregateCallStatsRequest, QueryAggregateCallStatsResponse, QueryCallMembersRequest, QueryCallMembersResponse, QueryCallStatsRequest, QueryCallStatsResponse, QueryCallsRequest, QueryCallsResponse, QueryUserFeedbackRequest, QueryUserFeedbackResponse, Response, SendCallEventRequest, SendCallEventResponse, StartClosedCaptionsRequest, StartClosedCaptionsResponse, StartHLSBroadcastingResponse, StartRTMPBroadcastsRequest, StartRTMPBroadcastsResponse, StartRecordingRequest, StartRecordingResponse, StartTranscriptionRequest, StartTranscriptionResponse, StopAllRTMPBroadcastsResponse, StopClosedCaptionsRequest, StopClosedCaptionsResponse, StopHLSBroadcastingResponse, StopLiveRequest, StopLiveResponse, StopRTMPBroadcastsRequest, StopRTMPBroadcastsResponse, StopRecordingResponse, StopTranscriptionRequest, StopTranscriptionResponse, UnblockUserRequest, UnblockUserResponse, UnpinRequest, UnpinResponse, UpdateCallMembersRequest, UpdateCallMembersResponse, UpdateCallRequest, UpdateCallResponse, UpdateCallTypeRequest, UpdateCallTypeResponse, UpdateUserPermissionsRequest, UpdateUserPermissionsResponse } from '../models';
4
4
  export declare class VideoApi extends BaseApi {
5
+ queryUserFeedback: (request?: QueryUserFeedbackRequest & {
6
+ full?: boolean;
7
+ }) => Promise<StreamResponse<QueryUserFeedbackResponse>>;
5
8
  queryCallMembers: (request: QueryCallMembersRequest) => Promise<StreamResponse<QueryCallMembersResponse>>;
6
9
  queryCallStats: (request?: QueryCallStatsRequest) => Promise<StreamResponse<QueryCallStatsResponse>>;
7
10
  getCall: (request: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stream-io/node-sdk",
3
- "version": "0.4.8",
3
+ "version": "0.4.10",
4
4
  "description": "",
5
5
  "exports": {
6
6
  ".": {
@@ -17,6 +17,7 @@ import {
17
17
  DeleteChannelsResponse,
18
18
  DeleteCommandResponse,
19
19
  DeleteMessageResponse,
20
+ DeleteReactionResponse,
20
21
  DeleteSegmentTargetsRequest,
21
22
  EventResponse,
22
23
  ExportChannelsRequest,
@@ -74,7 +75,6 @@ import {
74
75
  QuerySegmentsResponse,
75
76
  QueryThreadsRequest,
76
77
  QueryThreadsResponse,
77
- ReactionRemovalResponse,
78
78
  Response,
79
79
  SearchPayload,
80
80
  SearchResponse,
@@ -1231,7 +1231,7 @@ export class ChatApi extends BaseApi {
1231
1231
  id: string;
1232
1232
  type: string;
1233
1233
  user_id?: string;
1234
- }): Promise<StreamResponse<ReactionRemovalResponse>> => {
1234
+ }): Promise<StreamResponse<DeleteReactionResponse>> => {
1235
1235
  const queryParams = {
1236
1236
  user_id: request?.user_id,
1237
1237
  };
@@ -1241,7 +1241,7 @@ export class ChatApi extends BaseApi {
1241
1241
  };
1242
1242
 
1243
1243
  const response = await this.sendRequest<
1244
- StreamResponse<ReactionRemovalResponse>
1244
+ StreamResponse<DeleteReactionResponse>
1245
1245
  >(
1246
1246
  'DELETE',
1247
1247
  '/api/v2/chat/messages/{id}/reaction/{type}',
@@ -1249,7 +1249,7 @@ export class ChatApi extends BaseApi {
1249
1249
  queryParams,
1250
1250
  );
1251
1251
 
1252
- decoders.ReactionRemovalResponse?.(response.body);
1252
+ decoders.DeleteReactionResponse?.(response.body);
1253
1253
 
1254
1254
  return { ...response.body, metadata: response.metadata };
1255
1255
  };
@@ -575,6 +575,15 @@ decoders.DeleteMessageResponse = (input?: Record<string, any>) => {
575
575
  return decode(typeMappings, input);
576
576
  };
577
577
 
578
+ decoders.DeleteReactionResponse = (input?: Record<string, any>) => {
579
+ const typeMappings: TypeMapping = {
580
+ message: { type: 'MessageResponse', isSingle: true },
581
+
582
+ reaction: { type: 'ReactionResponse', isSingle: true },
583
+ };
584
+ return decode(typeMappings, input);
585
+ };
586
+
578
587
  decoders.Device = (input?: Record<string, any>) => {
579
588
  const typeMappings: TypeMapping = {
580
589
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -1559,15 +1568,6 @@ decoders.ReactionGroupResponse = (input?: Record<string, any>) => {
1559
1568
  return decode(typeMappings, input);
1560
1569
  };
1561
1570
 
1562
- decoders.ReactionRemovalResponse = (input?: Record<string, any>) => {
1563
- const typeMappings: TypeMapping = {
1564
- message: { type: 'Message', isSingle: true },
1565
-
1566
- reaction: { type: 'Reaction', isSingle: true },
1567
- };
1568
- return decode(typeMappings, input);
1569
- };
1570
-
1571
1571
  decoders.ReactionResponse = (input?: Record<string, any>) => {
1572
1572
  const typeMappings: TypeMapping = {
1573
1573
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -666,6 +666,12 @@ export interface BroadcastSettingsResponse {
666
666
  rtmp: RTMPSettingsResponse;
667
667
  }
668
668
 
669
+ export interface BrowserDataResponse {
670
+ name?: string;
671
+
672
+ version?: string;
673
+ }
674
+
669
675
  export interface CallAcceptedEvent {
670
676
  call_cid: string;
671
677
 
@@ -1447,6 +1453,8 @@ export interface CampaignResponse {
1447
1453
 
1448
1454
  sender_id: string;
1449
1455
 
1456
+ sender_mode: string;
1457
+
1450
1458
  skip_push: boolean;
1451
1459
 
1452
1460
  skip_webhook: boolean;
@@ -2285,6 +2293,14 @@ export interface CheckSQSResponse {
2285
2293
  data?: Record<string, any>;
2286
2294
  }
2287
2295
 
2296
+ export interface ClientOSDataResponse {
2297
+ architecture?: string;
2298
+
2299
+ name?: string;
2300
+
2301
+ version?: string;
2302
+ }
2303
+
2288
2304
  export interface ClosedCaptionEvent {
2289
2305
  call_cid: string;
2290
2306
 
@@ -2907,6 +2923,14 @@ export interface DeleteReactionRequest {
2907
2923
  hard_delete?: boolean;
2908
2924
  }
2909
2925
 
2926
+ export interface DeleteReactionResponse {
2927
+ duration: string;
2928
+
2929
+ message: MessageResponse;
2930
+
2931
+ reaction: ReactionResponse;
2932
+ }
2933
+
2910
2934
  export interface DeleteRecordingResponse {
2911
2935
  duration: string;
2912
2936
  }
@@ -2969,6 +2993,12 @@ export interface Device {
2969
2993
  voip?: boolean;
2970
2994
  }
2971
2995
 
2996
+ export interface DeviceDataResponse {
2997
+ name?: string;
2998
+
2999
+ version?: string;
3000
+ }
3001
+
2972
3002
  export interface DeviceErrorInfo {
2973
3003
  error_message: string;
2974
3004
 
@@ -5449,6 +5479,14 @@ export interface PinResponse {
5449
5479
  duration: string;
5450
5480
  }
5451
5481
 
5482
+ export interface PlatformDataResponse {
5483
+ browser: BrowserDataResponse;
5484
+
5485
+ device: DeviceDataResponse;
5486
+
5487
+ os: ClientOSDataResponse;
5488
+ }
5489
+
5452
5490
  export interface Policy {
5453
5491
  action: number;
5454
5492
 
@@ -6347,6 +6385,28 @@ export interface QueryUsageStatsResponse {
6347
6385
  prev?: string;
6348
6386
  }
6349
6387
 
6388
+ export interface QueryUserFeedbackRequest {
6389
+ limit?: number;
6390
+
6391
+ next?: string;
6392
+
6393
+ prev?: string;
6394
+
6395
+ sort?: SortParamRequest[];
6396
+
6397
+ filter_conditions?: Record<string, any>;
6398
+ }
6399
+
6400
+ export interface QueryUserFeedbackResponse {
6401
+ duration: string;
6402
+
6403
+ user_feedback: UserFeedbackResponse[];
6404
+
6405
+ next?: string;
6406
+
6407
+ prev?: string;
6408
+ }
6409
+
6350
6410
  export interface QueryUsersPayload {
6351
6411
  filter_conditions: Record<string, any>;
6352
6412
 
@@ -6521,14 +6581,6 @@ export interface ReactionNewEvent {
6521
6581
  user?: User;
6522
6582
  }
6523
6583
 
6524
- export interface ReactionRemovalResponse {
6525
- duration: string;
6526
-
6527
- message?: Message;
6528
-
6529
- reaction?: Reaction;
6530
- }
6531
-
6532
6584
  export interface ReactionRequest {
6533
6585
  type: string;
6534
6586
 
@@ -8582,6 +8634,26 @@ export interface UserFeedbackReportResponse {
8582
8634
  daily: DailyAggregateUserFeedbackReportResponse[];
8583
8635
  }
8584
8636
 
8637
+ export interface UserFeedbackResponse {
8638
+ cid: string;
8639
+
8640
+ rating: number;
8641
+
8642
+ reason: string;
8643
+
8644
+ sdk: string;
8645
+
8646
+ sdk_version: string;
8647
+
8648
+ session_id: string;
8649
+
8650
+ user_id: string;
8651
+
8652
+ platform: PlatformDataResponse;
8653
+
8654
+ custom?: Record<string, any>;
8655
+ }
8656
+
8585
8657
  export interface UserFlaggedEvent {
8586
8658
  created_at: Date;
8587
8659
 
@@ -36,6 +36,8 @@ import {
36
36
  QueryCallStatsResponse,
37
37
  QueryCallsRequest,
38
38
  QueryCallsResponse,
39
+ QueryUserFeedbackRequest,
40
+ QueryUserFeedbackResponse,
39
41
  Response,
40
42
  SendCallEventRequest,
41
43
  SendCallEventResponse,
@@ -75,6 +77,29 @@ import {
75
77
  import { decoders } from '../model-decoders';
76
78
 
77
79
  export class VideoApi extends BaseApi {
80
+ queryUserFeedback = async (
81
+ request?: QueryUserFeedbackRequest & { full?: boolean },
82
+ ): Promise<StreamResponse<QueryUserFeedbackResponse>> => {
83
+ const queryParams = {
84
+ full: request?.full,
85
+ };
86
+ const body = {
87
+ limit: request?.limit,
88
+ next: request?.next,
89
+ prev: request?.prev,
90
+ sort: request?.sort,
91
+ filter_conditions: request?.filter_conditions,
92
+ };
93
+
94
+ const response = await this.sendRequest<
95
+ StreamResponse<QueryUserFeedbackResponse>
96
+ >('POST', '/api/v2/video/call/feedback', undefined, queryParams, body);
97
+
98
+ decoders.QueryUserFeedbackResponse?.(response.body);
99
+
100
+ return { ...response.body, metadata: response.metadata };
101
+ };
102
+
78
103
  queryCallMembers = async (
79
104
  request: QueryCallMembersRequest,
80
105
  ): Promise<StreamResponse<QueryCallMembersResponse>> => {