@stream-io/node-sdk 0.4.9 → 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.
@@ -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;
@@ -1295,6 +1299,11 @@ export interface CheckSQSResponse {
1295
1299
  error?: string;
1296
1300
  data?: Record<string, any>;
1297
1301
  }
1302
+ export interface ClientOSDataResponse {
1303
+ architecture?: string;
1304
+ name?: string;
1305
+ version?: string;
1306
+ }
1298
1307
  export interface ClosedCaptionEvent {
1299
1308
  call_cid: string;
1300
1309
  created_at: Date;
@@ -1710,6 +1719,10 @@ export interface Device {
1710
1719
  push_provider_name?: string;
1711
1720
  voip?: boolean;
1712
1721
  }
1722
+ export interface DeviceDataResponse {
1723
+ name?: string;
1724
+ version?: string;
1725
+ }
1713
1726
  export interface DeviceErrorInfo {
1714
1727
  error_message: string;
1715
1728
  provider: string;
@@ -3137,6 +3150,11 @@ export interface PinRequest {
3137
3150
  export interface PinResponse {
3138
3151
  duration: string;
3139
3152
  }
3153
+ export interface PlatformDataResponse {
3154
+ browser: BrowserDataResponse;
3155
+ device: DeviceDataResponse;
3156
+ os: ClientOSDataResponse;
3157
+ }
3140
3158
  export interface Policy {
3141
3159
  action: number;
3142
3160
  created_at: Date;
@@ -3653,6 +3671,19 @@ export interface QueryUsageStatsResponse {
3653
3671
  next?: string;
3654
3672
  prev?: string;
3655
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
+ }
3656
3687
  export interface QueryUsersPayload {
3657
3688
  filter_conditions: Record<string, any>;
3658
3689
  include_deactivated_users?: boolean;
@@ -4857,6 +4888,17 @@ export interface UserFeedbackReport {
4857
4888
  export interface UserFeedbackReportResponse {
4858
4889
  daily: DailyAggregateUserFeedbackReportResponse[];
4859
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
+ }
4860
4902
  export interface UserFlaggedEvent {
4861
4903
  created_at: Date;
4862
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.9",
3
+ "version": "0.4.10",
4
4
  "description": "",
5
5
  "exports": {
6
6
  ".": {
@@ -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
 
@@ -2287,6 +2293,14 @@ export interface CheckSQSResponse {
2287
2293
  data?: Record<string, any>;
2288
2294
  }
2289
2295
 
2296
+ export interface ClientOSDataResponse {
2297
+ architecture?: string;
2298
+
2299
+ name?: string;
2300
+
2301
+ version?: string;
2302
+ }
2303
+
2290
2304
  export interface ClosedCaptionEvent {
2291
2305
  call_cid: string;
2292
2306
 
@@ -2979,6 +2993,12 @@ export interface Device {
2979
2993
  voip?: boolean;
2980
2994
  }
2981
2995
 
2996
+ export interface DeviceDataResponse {
2997
+ name?: string;
2998
+
2999
+ version?: string;
3000
+ }
3001
+
2982
3002
  export interface DeviceErrorInfo {
2983
3003
  error_message: string;
2984
3004
 
@@ -5459,6 +5479,14 @@ export interface PinResponse {
5459
5479
  duration: string;
5460
5480
  }
5461
5481
 
5482
+ export interface PlatformDataResponse {
5483
+ browser: BrowserDataResponse;
5484
+
5485
+ device: DeviceDataResponse;
5486
+
5487
+ os: ClientOSDataResponse;
5488
+ }
5489
+
5462
5490
  export interface Policy {
5463
5491
  action: number;
5464
5492
 
@@ -6357,6 +6385,28 @@ export interface QueryUsageStatsResponse {
6357
6385
  prev?: string;
6358
6386
  }
6359
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
+
6360
6410
  export interface QueryUsersPayload {
6361
6411
  filter_conditions: Record<string, any>;
6362
6412
 
@@ -8584,6 +8634,26 @@ export interface UserFeedbackReportResponse {
8584
8634
  daily: DailyAggregateUserFeedbackReportResponse[];
8585
8635
  }
8586
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
+
8587
8657
  export interface UserFlaggedEvent {
8588
8658
  created_at: Date;
8589
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>> => {