@stream-io/node-sdk 0.4.22 → 0.4.23
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.
- package/dist/index.cjs.js +73 -21
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +73 -21
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/chat/ChannelApi.d.ts +2 -2
- package/dist/src/gen/chat/ChatApi.d.ts +1 -1
- package/dist/src/gen/models/index.d.ts +89 -182
- package/dist/src/gen/video/CallApi.d.ts +4 -4
- package/dist/src/gen/video/VideoApi.d.ts +6 -6
- package/package.json +1 -1
- package/src/gen/chat/ChannelApi.ts +1 -1
- package/src/gen/chat/ChatApi.ts +8 -4
- package/src/gen/model-decoders/index.ts +53 -2
- package/src/gen/models/index.ts +230 -310
- package/src/gen/video/CallApi.ts +12 -11
- package/src/gen/video/VideoApi.ts +35 -26
|
@@ -29,8 +29,8 @@ export declare class ChannelApi {
|
|
|
29
29
|
url?: string;
|
|
30
30
|
}) => Promise<StreamResponse<Response>>;
|
|
31
31
|
uploadImage: (request?: ImageUploadRequest) => Promise<StreamResponse<ImageUploadResponse>>;
|
|
32
|
-
updateMemberPartial: (request
|
|
33
|
-
user_id
|
|
32
|
+
updateMemberPartial: (request?: UpdateMemberPartialRequest & {
|
|
33
|
+
user_id?: string;
|
|
34
34
|
}) => Promise<StreamResponse<UpdateMemberPartialResponse>>;
|
|
35
35
|
sendMessage: (request: SendMessageRequest) => Promise<StreamResponse<SendMessageResponse>>;
|
|
36
36
|
getManyMessages: (request: {
|
|
@@ -73,9 +73,9 @@ export declare class ChatApi extends BaseApi {
|
|
|
73
73
|
id: string;
|
|
74
74
|
}) => Promise<StreamResponse<ImageUploadResponse>>;
|
|
75
75
|
updateMemberPartial: (request: UpdateMemberPartialRequest & {
|
|
76
|
-
user_id: string;
|
|
77
76
|
type: string;
|
|
78
77
|
id: string;
|
|
78
|
+
user_id?: string;
|
|
79
79
|
}) => Promise<StreamResponse<UpdateMemberPartialResponse>>;
|
|
80
80
|
sendMessage: (request: SendMessageRequest & {
|
|
81
81
|
type: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export interface AIImageConfig {
|
|
2
2
|
enabled: boolean;
|
|
3
|
+
ocr_rules: OCRRule[];
|
|
3
4
|
rules: AWSRekognitionRule[];
|
|
4
5
|
async?: boolean;
|
|
5
6
|
}
|
|
@@ -90,10 +91,6 @@ export interface ActionLogResponse {
|
|
|
90
91
|
target_user?: UserResponse;
|
|
91
92
|
user?: UserResponse;
|
|
92
93
|
}
|
|
93
|
-
export interface AggregatedStats {
|
|
94
|
-
publisher_aggregate_stats?: PublisherAggregateStats;
|
|
95
|
-
turn?: TURNAggregatedStats;
|
|
96
|
-
}
|
|
97
94
|
export interface AnyEvent {
|
|
98
95
|
created_at: Date;
|
|
99
96
|
type: string;
|
|
@@ -470,18 +467,6 @@ export interface CallEndedEvent {
|
|
|
470
467
|
type: string;
|
|
471
468
|
user?: UserResponse;
|
|
472
469
|
}
|
|
473
|
-
export interface CallEvent {
|
|
474
|
-
description: string;
|
|
475
|
-
end_timestamp: number;
|
|
476
|
-
internal: boolean;
|
|
477
|
-
kind: string;
|
|
478
|
-
severity: number;
|
|
479
|
-
timestamp: number;
|
|
480
|
-
type: string;
|
|
481
|
-
category?: string;
|
|
482
|
-
component?: string;
|
|
483
|
-
issue_tags?: string[];
|
|
484
|
-
}
|
|
485
470
|
export interface CallFrameRecordingFailedEvent {
|
|
486
471
|
call_cid: string;
|
|
487
472
|
created_at: Date;
|
|
@@ -652,6 +637,7 @@ export interface CallReportResponse {
|
|
|
652
637
|
started_at?: Date;
|
|
653
638
|
}
|
|
654
639
|
export interface CallRequest {
|
|
640
|
+
channel_cid?: string;
|
|
655
641
|
created_by_id?: string;
|
|
656
642
|
starts_at?: Date;
|
|
657
643
|
team?: string;
|
|
@@ -678,6 +664,7 @@ export interface CallResponse {
|
|
|
678
664
|
egress: EgressResponse;
|
|
679
665
|
ingress: CallIngressResponse;
|
|
680
666
|
settings: CallSettingsResponse;
|
|
667
|
+
channel_cid?: string;
|
|
681
668
|
ended_at?: Date;
|
|
682
669
|
join_ahead_time_seconds?: number;
|
|
683
670
|
starts_at?: Date;
|
|
@@ -806,6 +793,12 @@ export interface CallStateResponseFields {
|
|
|
806
793
|
own_capabilities: OwnCapability[];
|
|
807
794
|
call: CallResponse;
|
|
808
795
|
}
|
|
796
|
+
export interface CallStatsReportReadyEvent {
|
|
797
|
+
call_cid: string;
|
|
798
|
+
created_at: Date;
|
|
799
|
+
session_id: string;
|
|
800
|
+
type: string;
|
|
801
|
+
}
|
|
809
802
|
export interface CallStatsReportSummaryResponse {
|
|
810
803
|
call_cid: string;
|
|
811
804
|
call_duration_seconds: number;
|
|
@@ -816,9 +809,6 @@ export interface CallStatsReportSummaryResponse {
|
|
|
816
809
|
min_user_rating?: number;
|
|
817
810
|
quality_score?: number;
|
|
818
811
|
}
|
|
819
|
-
export interface CallTimeline {
|
|
820
|
-
events: CallEvent[];
|
|
821
|
-
}
|
|
822
812
|
export interface CallTranscription {
|
|
823
813
|
end_time: Date;
|
|
824
814
|
filename: string;
|
|
@@ -853,6 +843,7 @@ export interface CallTranscriptionStoppedEvent {
|
|
|
853
843
|
export interface CallType {
|
|
854
844
|
app_pk: number;
|
|
855
845
|
created_at: Date;
|
|
846
|
+
enable_live_insights: boolean;
|
|
856
847
|
external_storage: string;
|
|
857
848
|
name: string;
|
|
858
849
|
pk: number;
|
|
@@ -929,6 +920,7 @@ export interface CampaignResponse {
|
|
|
929
920
|
name: string;
|
|
930
921
|
sender_id: string;
|
|
931
922
|
sender_mode: string;
|
|
923
|
+
show_channels: boolean;
|
|
932
924
|
skip_push: boolean;
|
|
933
925
|
skip_webhook: boolean;
|
|
934
926
|
status: string;
|
|
@@ -1350,6 +1342,9 @@ export interface ChannelVisibleEvent {
|
|
|
1350
1342
|
type: string;
|
|
1351
1343
|
user?: User;
|
|
1352
1344
|
}
|
|
1345
|
+
export interface ChatActivityStatsResponse {
|
|
1346
|
+
messages?: MessageStatsResponse;
|
|
1347
|
+
}
|
|
1353
1348
|
export interface CheckExternalStorageResponse {
|
|
1354
1349
|
duration: string;
|
|
1355
1350
|
file_url: string;
|
|
@@ -1475,19 +1470,15 @@ export interface ConfigResponse {
|
|
|
1475
1470
|
block_list_config?: BlockListConfig;
|
|
1476
1471
|
velocity_filter_config?: VelocityFilterConfig;
|
|
1477
1472
|
}
|
|
1478
|
-
export interface
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
}
|
|
1482
|
-
export interface Count {
|
|
1483
|
-
approximate: boolean;
|
|
1484
|
-
value: number;
|
|
1473
|
+
export interface CountByMinuteResponse {
|
|
1474
|
+
count: number;
|
|
1475
|
+
start_ts: Date;
|
|
1485
1476
|
}
|
|
1486
1477
|
export interface CreateBlockListRequest {
|
|
1487
1478
|
name: string;
|
|
1488
1479
|
words: string[];
|
|
1489
1480
|
team?: string;
|
|
1490
|
-
type?: 'regex' | 'domain' | 'email' | 'word';
|
|
1481
|
+
type?: 'regex' | 'domain' | 'domain_allowlist' | 'email' | 'word';
|
|
1491
1482
|
}
|
|
1492
1483
|
export interface CreateBlockListResponse {
|
|
1493
1484
|
duration: string;
|
|
@@ -2039,10 +2030,6 @@ export interface ExternalStorageResponse {
|
|
|
2039
2030
|
path: string;
|
|
2040
2031
|
type: 's3' | 'gcs' | 'abs';
|
|
2041
2032
|
}
|
|
2042
|
-
export interface FPSStats {
|
|
2043
|
-
average_fps: number;
|
|
2044
|
-
tracked: number;
|
|
2045
|
-
}
|
|
2046
2033
|
export interface FeedsModerationTemplateConfig {
|
|
2047
2034
|
config_key: string;
|
|
2048
2035
|
data_types: Record<string, string>;
|
|
@@ -2203,18 +2190,6 @@ export interface GeofenceSettingsRequest {
|
|
|
2203
2190
|
export interface GeofenceSettingsResponse {
|
|
2204
2191
|
names: string[];
|
|
2205
2192
|
}
|
|
2206
|
-
export interface GeolocationResult {
|
|
2207
|
-
accuracy_radius: number;
|
|
2208
|
-
city: string;
|
|
2209
|
-
continent: string;
|
|
2210
|
-
continent_code: string;
|
|
2211
|
-
country: string;
|
|
2212
|
-
country_iso_code: string;
|
|
2213
|
-
latitude: number;
|
|
2214
|
-
longitude: number;
|
|
2215
|
-
subdivision: string;
|
|
2216
|
-
subdivision_iso_code: string;
|
|
2217
|
-
}
|
|
2218
2193
|
export interface GetApplicationResponse {
|
|
2219
2194
|
duration: string;
|
|
2220
2195
|
app: AppResponseFields;
|
|
@@ -2231,6 +2206,7 @@ export interface GetCallReportResponse {
|
|
|
2231
2206
|
duration: string;
|
|
2232
2207
|
session_id: string;
|
|
2233
2208
|
report: ReportResponse;
|
|
2209
|
+
chat_activity?: ChatActivityStatsResponse;
|
|
2234
2210
|
}
|
|
2235
2211
|
export interface GetCallResponse {
|
|
2236
2212
|
duration: string;
|
|
@@ -2238,25 +2214,6 @@ export interface GetCallResponse {
|
|
|
2238
2214
|
own_capabilities: OwnCapability[];
|
|
2239
2215
|
call: CallResponse;
|
|
2240
2216
|
}
|
|
2241
|
-
export interface GetCallStatsResponse {
|
|
2242
|
-
call_duration_seconds: number;
|
|
2243
|
-
call_status: string;
|
|
2244
|
-
duration: string;
|
|
2245
|
-
is_truncated_report: boolean;
|
|
2246
|
-
max_freezes_duration_seconds: number;
|
|
2247
|
-
max_participants: number;
|
|
2248
|
-
max_total_quality_limitation_duration_seconds: number;
|
|
2249
|
-
publishing_participants: number;
|
|
2250
|
-
quality_score: number;
|
|
2251
|
-
sfu_count: number;
|
|
2252
|
-
participant_report: UserStats[];
|
|
2253
|
-
sfus: SFULocationResponse[];
|
|
2254
|
-
average_connection_time?: number;
|
|
2255
|
-
aggregated?: AggregatedStats;
|
|
2256
|
-
call_timeline?: CallTimeline;
|
|
2257
|
-
jitter?: TimeStats;
|
|
2258
|
-
latency?: TimeStats;
|
|
2259
|
-
}
|
|
2260
2217
|
export interface GetCallTypeResponse {
|
|
2261
2218
|
created_at: Date;
|
|
2262
2219
|
duration: string;
|
|
@@ -2404,7 +2361,6 @@ export interface GetRepliesResponse {
|
|
|
2404
2361
|
}
|
|
2405
2362
|
export interface GetReviewQueueItemResponse {
|
|
2406
2363
|
duration: string;
|
|
2407
|
-
history: ReviewQueueItemResponse[];
|
|
2408
2364
|
item?: ReviewQueueItemResponse;
|
|
2409
2365
|
}
|
|
2410
2366
|
export interface GetSegmentResponse {
|
|
@@ -2439,6 +2395,10 @@ export interface GoLiveResponse {
|
|
|
2439
2395
|
export interface GoogleVisionConfig {
|
|
2440
2396
|
enabled?: boolean;
|
|
2441
2397
|
}
|
|
2398
|
+
export interface GroupedStatsResponse {
|
|
2399
|
+
name: string;
|
|
2400
|
+
unique: number;
|
|
2401
|
+
}
|
|
2442
2402
|
export interface HLSSettings {
|
|
2443
2403
|
auto_on: boolean;
|
|
2444
2404
|
enabled: boolean;
|
|
@@ -2618,11 +2578,6 @@ export interface ListTranscriptionsResponse {
|
|
|
2618
2578
|
duration: string;
|
|
2619
2579
|
transcriptions: CallTranscription[];
|
|
2620
2580
|
}
|
|
2621
|
-
export interface Location {
|
|
2622
|
-
continent_code: string;
|
|
2623
|
-
country_iso_code: string;
|
|
2624
|
-
subdivision_iso_code: string;
|
|
2625
|
-
}
|
|
2626
2581
|
export interface MarkChannelsReadRequest {
|
|
2627
2582
|
user_id?: string;
|
|
2628
2583
|
read_by_channel?: Record<string, string>;
|
|
@@ -2648,12 +2603,6 @@ export interface MarkUnreadRequest {
|
|
|
2648
2603
|
user_id?: string;
|
|
2649
2604
|
user?: UserRequest;
|
|
2650
2605
|
}
|
|
2651
|
-
export interface MediaPubSubHint {
|
|
2652
|
-
audio_published: boolean;
|
|
2653
|
-
audio_subscribed: boolean;
|
|
2654
|
-
video_published: boolean;
|
|
2655
|
-
video_subscribed: boolean;
|
|
2656
|
-
}
|
|
2657
2606
|
export interface MemberAddedEvent {
|
|
2658
2607
|
channel_id: string;
|
|
2659
2608
|
channel_type: string;
|
|
@@ -2910,6 +2859,9 @@ export interface MessageResponse {
|
|
|
2910
2859
|
quoted_message?: MessageResponse;
|
|
2911
2860
|
reaction_groups?: Record<string, ReactionGroupResponse>;
|
|
2912
2861
|
}
|
|
2862
|
+
export interface MessageStatsResponse {
|
|
2863
|
+
count_over_time?: CountByMinuteResponse[];
|
|
2864
|
+
}
|
|
2913
2865
|
export interface MessageUnblockedEvent {
|
|
2914
2866
|
cid: string;
|
|
2915
2867
|
created_at: Date;
|
|
@@ -2995,6 +2947,16 @@ export interface ModerationActionConfig {
|
|
|
2995
2947
|
order: number;
|
|
2996
2948
|
custom: Record<string, any>;
|
|
2997
2949
|
}
|
|
2950
|
+
export interface ModerationCheckCompletedEvent {
|
|
2951
|
+
created_at: Date;
|
|
2952
|
+
entity_id: string;
|
|
2953
|
+
entity_type: string;
|
|
2954
|
+
recommended_action: string;
|
|
2955
|
+
review_queue_item_id: string;
|
|
2956
|
+
custom: Record<string, any>;
|
|
2957
|
+
type: string;
|
|
2958
|
+
received_at?: Date;
|
|
2959
|
+
}
|
|
2998
2960
|
export interface ModerationCustomActionEvent {
|
|
2999
2961
|
created_at: Date;
|
|
3000
2962
|
type: string;
|
|
@@ -3113,6 +3075,10 @@ export interface NotificationSettings {
|
|
|
3113
3075
|
}
|
|
3114
3076
|
export interface NullTime {
|
|
3115
3077
|
}
|
|
3078
|
+
export interface OCRRule {
|
|
3079
|
+
action: 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove';
|
|
3080
|
+
label: string;
|
|
3081
|
+
}
|
|
3116
3082
|
export interface OnlyUserID {
|
|
3117
3083
|
id: string;
|
|
3118
3084
|
}
|
|
@@ -3215,9 +3181,27 @@ export interface PaginationParams {
|
|
|
3215
3181
|
limit?: number;
|
|
3216
3182
|
offset?: number;
|
|
3217
3183
|
}
|
|
3184
|
+
export interface ParticipantCountByMinuteResponse {
|
|
3185
|
+
first: number;
|
|
3186
|
+
last: number;
|
|
3187
|
+
max: number;
|
|
3188
|
+
min: number;
|
|
3189
|
+
start_ts: Date;
|
|
3190
|
+
}
|
|
3191
|
+
export interface ParticipantCountOverTimeResponse {
|
|
3192
|
+
by_minute?: ParticipantCountByMinuteResponse[];
|
|
3193
|
+
}
|
|
3218
3194
|
export interface ParticipantReportResponse {
|
|
3219
3195
|
sum: number;
|
|
3220
3196
|
unique: number;
|
|
3197
|
+
max_concurrent?: number;
|
|
3198
|
+
by_browser?: GroupedStatsResponse[];
|
|
3199
|
+
by_country?: GroupedStatsResponse[];
|
|
3200
|
+
by_device?: GroupedStatsResponse[];
|
|
3201
|
+
by_operating_system?: GroupedStatsResponse[];
|
|
3202
|
+
count_over_time?: ParticipantCountOverTimeResponse;
|
|
3203
|
+
publishers?: PublisherStatsResponse;
|
|
3204
|
+
subscribers?: SubscriberStatsResponse;
|
|
3221
3205
|
}
|
|
3222
3206
|
export interface PendingMessageResponse {
|
|
3223
3207
|
channel?: ChannelResponse;
|
|
@@ -3391,14 +3375,10 @@ export interface PrivacySettingsResponse {
|
|
|
3391
3375
|
read_receipts?: ReadReceiptsResponse;
|
|
3392
3376
|
typing_indicators?: TypingIndicatorsResponse;
|
|
3393
3377
|
}
|
|
3394
|
-
export interface
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
}
|
|
3399
|
-
export interface PublisherAggregateStats {
|
|
3400
|
-
by_track_type?: Record<string, Count>;
|
|
3401
|
-
total?: Count;
|
|
3378
|
+
export interface PublisherStatsResponse {
|
|
3379
|
+
total: number;
|
|
3380
|
+
unique: number;
|
|
3381
|
+
by_track?: TrackStatsResponse[];
|
|
3402
3382
|
}
|
|
3403
3383
|
export interface PushConfig {
|
|
3404
3384
|
version: 'v1' | 'v2';
|
|
@@ -3536,6 +3516,17 @@ export interface QueryCallMembersResponse {
|
|
|
3536
3516
|
next?: string;
|
|
3537
3517
|
prev?: string;
|
|
3538
3518
|
}
|
|
3519
|
+
export interface QueryCallParticipantsRequest {
|
|
3520
|
+
filter_conditions?: Record<string, any>;
|
|
3521
|
+
}
|
|
3522
|
+
export interface QueryCallParticipantsResponse {
|
|
3523
|
+
duration: string;
|
|
3524
|
+
total_participants: number;
|
|
3525
|
+
members: MemberResponse[];
|
|
3526
|
+
own_capabilities: OwnCapability[];
|
|
3527
|
+
participants: CallParticipantResponse[];
|
|
3528
|
+
call: CallResponse;
|
|
3529
|
+
}
|
|
3539
3530
|
export interface QueryCallStatsRequest {
|
|
3540
3531
|
limit?: number;
|
|
3541
3532
|
next?: string;
|
|
@@ -3773,6 +3764,8 @@ export interface QueryThreadsRequest {
|
|
|
3773
3764
|
prev?: string;
|
|
3774
3765
|
reply_limit?: number;
|
|
3775
3766
|
user_id?: string;
|
|
3767
|
+
sort?: SortParamRequest[];
|
|
3768
|
+
filter?: Record<string, any>;
|
|
3776
3769
|
user?: UserRequest;
|
|
3777
3770
|
}
|
|
3778
3771
|
export interface QueryThreadsResponse {
|
|
@@ -3981,6 +3974,7 @@ export interface RestoreUsersRequest {
|
|
|
3981
3974
|
export interface ReviewQueueItem {
|
|
3982
3975
|
ai_text_severity: string;
|
|
3983
3976
|
bounce_count: number;
|
|
3977
|
+
config_key: string;
|
|
3984
3978
|
content_changed: boolean;
|
|
3985
3979
|
created_at: Date;
|
|
3986
3980
|
entity_id: string;
|
|
@@ -4037,6 +4031,7 @@ export interface ReviewQueueItemResponse {
|
|
|
4037
4031
|
flags: FlagResponse[];
|
|
4038
4032
|
languages: string[];
|
|
4039
4033
|
completed_at?: Date;
|
|
4034
|
+
config_key?: string;
|
|
4040
4035
|
entity_creator_id?: string;
|
|
4041
4036
|
reviewed_at?: Date;
|
|
4042
4037
|
teams?: string[];
|
|
@@ -4091,12 +4086,6 @@ export interface SDKUsageReport {
|
|
|
4091
4086
|
export interface SDKUsageReportResponse {
|
|
4092
4087
|
daily: DailyAggregateSDKUsageReportResponse[];
|
|
4093
4088
|
}
|
|
4094
|
-
export interface SFULocationResponse {
|
|
4095
|
-
datacenter: string;
|
|
4096
|
-
id: string;
|
|
4097
|
-
coordinates: Coordinates;
|
|
4098
|
-
location: Location;
|
|
4099
|
-
}
|
|
4100
4089
|
export interface ScreensharingSettings {
|
|
4101
4090
|
access_request_enabled: boolean;
|
|
4102
4091
|
enabled: boolean;
|
|
@@ -4286,7 +4275,7 @@ export interface StartCampaignResponse {
|
|
|
4286
4275
|
export interface StartClosedCaptionsRequest {
|
|
4287
4276
|
enable_transcription?: boolean;
|
|
4288
4277
|
external_storage?: string;
|
|
4289
|
-
language?:
|
|
4278
|
+
language?: 'auto' | 'en' | 'fr' | 'es' | 'de' | 'it' | 'nl' | 'pt' | 'pl' | 'ca' | 'cs' | 'da' | 'el' | 'fi' | 'id' | 'ja' | 'ru' | 'sv' | 'ta' | 'th' | 'tr' | 'hu' | 'ro' | 'zh' | 'ar' | 'tl' | 'he' | 'hi' | 'hr' | 'ko' | 'ms' | 'no' | 'uk' | 'bg' | 'et' | 'sl' | 'sk';
|
|
4290
4279
|
}
|
|
4291
4280
|
export interface StartClosedCaptionsResponse {
|
|
4292
4281
|
duration: string;
|
|
@@ -4317,7 +4306,7 @@ export interface StartRecordingResponse {
|
|
|
4317
4306
|
}
|
|
4318
4307
|
export interface StartTranscriptionRequest {
|
|
4319
4308
|
enable_closed_captions?: boolean;
|
|
4320
|
-
language?:
|
|
4309
|
+
language?: 'auto' | 'en' | 'fr' | 'es' | 'de' | 'it' | 'nl' | 'pt' | 'pl' | 'ca' | 'cs' | 'da' | 'el' | 'fi' | 'id' | 'ja' | 'ru' | 'sv' | 'ta' | 'th' | 'tr' | 'hu' | 'ro' | 'zh' | 'ar' | 'tl' | 'he' | 'hi' | 'hr' | 'ko' | 'ms' | 'no' | 'uk' | 'bg' | 'et' | 'sl' | 'sk';
|
|
4321
4310
|
transcription_external_storage?: string;
|
|
4322
4311
|
}
|
|
4323
4312
|
export interface StartTranscriptionResponse {
|
|
@@ -4391,15 +4380,10 @@ export interface SubmitActionResponse {
|
|
|
4391
4380
|
duration: string;
|
|
4392
4381
|
item?: ReviewQueueItem;
|
|
4393
4382
|
}
|
|
4394
|
-
export interface
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
pub_sub_hint?: MediaPubSubHint;
|
|
4399
|
-
}
|
|
4400
|
-
export interface TURNAggregatedStats {
|
|
4401
|
-
tcp?: Count;
|
|
4402
|
-
total?: Count;
|
|
4383
|
+
export interface SubscriberStatsResponse {
|
|
4384
|
+
total: number;
|
|
4385
|
+
total_subscribed_duration_seconds: number;
|
|
4386
|
+
unique: number;
|
|
4403
4387
|
}
|
|
4404
4388
|
export interface TargetResolution {
|
|
4405
4389
|
bitrate: number;
|
|
@@ -4485,23 +4469,23 @@ export interface ThumbnailsSettingsResponse {
|
|
|
4485
4469
|
}
|
|
4486
4470
|
export interface Time {
|
|
4487
4471
|
}
|
|
4488
|
-
export interface
|
|
4489
|
-
|
|
4490
|
-
|
|
4472
|
+
export interface TrackStatsResponse {
|
|
4473
|
+
duration_seconds: number;
|
|
4474
|
+
track_type: string;
|
|
4491
4475
|
}
|
|
4492
4476
|
export interface TranscriptionSettings {
|
|
4493
4477
|
closed_caption_mode: 'available' | 'disabled' | 'auto-on';
|
|
4494
|
-
language: 'auto' | 'en' | 'fr' | 'es' | 'de' | 'it' | 'nl' | 'pt' | 'pl' | 'ca' | 'cs' | 'da' | 'el' | 'fi' | 'id' | 'ja' | 'ru' | 'sv' | 'ta' | 'th' | 'tr' | 'hu' | 'ro' | 'zh' | 'ar' | 'tl' | 'he' | 'hi' | 'hr' | 'ko' | 'ms' | 'no' | 'uk';
|
|
4478
|
+
language: 'auto' | 'en' | 'fr' | 'es' | 'de' | 'it' | 'nl' | 'pt' | 'pl' | 'ca' | 'cs' | 'da' | 'el' | 'fi' | 'id' | 'ja' | 'ru' | 'sv' | 'ta' | 'th' | 'tr' | 'hu' | 'ro' | 'zh' | 'ar' | 'tl' | 'he' | 'hi' | 'hr' | 'ko' | 'ms' | 'no' | 'uk' | 'bg' | 'et' | 'sl' | 'sk';
|
|
4495
4479
|
mode: 'available' | 'disabled' | 'auto-on';
|
|
4496
4480
|
}
|
|
4497
4481
|
export interface TranscriptionSettingsRequest {
|
|
4498
4482
|
mode: 'available' | 'disabled' | 'auto-on';
|
|
4499
4483
|
closed_caption_mode?: 'available' | 'disabled' | 'auto-on';
|
|
4500
|
-
language?: 'auto' | 'en' | 'fr' | 'es' | 'de' | 'it' | 'nl' | 'pt' | 'pl' | 'ca' | 'cs' | 'da' | 'el' | 'fi' | 'id' | 'ja' | 'ru' | 'sv' | 'ta' | 'th' | 'tr' | 'hu' | 'ro' | 'zh' | 'ar' | 'tl' | 'he' | 'hi' | 'hr' | 'ko' | 'ms' | 'no' | 'uk';
|
|
4484
|
+
language?: 'auto' | 'en' | 'fr' | 'es' | 'de' | 'it' | 'nl' | 'pt' | 'pl' | 'ca' | 'cs' | 'da' | 'el' | 'fi' | 'id' | 'ja' | 'ru' | 'sv' | 'ta' | 'th' | 'tr' | 'hu' | 'ro' | 'zh' | 'ar' | 'tl' | 'he' | 'hi' | 'hr' | 'ko' | 'ms' | 'no' | 'uk' | 'bg' | 'et' | 'sl' | 'sk';
|
|
4501
4485
|
}
|
|
4502
4486
|
export interface TranscriptionSettingsResponse {
|
|
4503
4487
|
closed_caption_mode: 'available' | 'disabled' | 'auto-on';
|
|
4504
|
-
language: 'auto' | 'en' | 'fr' | 'es' | 'de' | 'it' | 'nl' | 'pt' | 'pl' | 'ca' | 'cs' | 'da' | 'el' | 'fi' | 'id' | 'ja' | 'ru' | 'sv' | 'ta' | 'th' | 'tr' | 'hu' | 'ro' | 'zh' | 'ar' | 'tl' | 'he' | 'hi' | 'hr' | 'ko' | 'ms' | 'no' | 'uk';
|
|
4488
|
+
language: 'auto' | 'en' | 'fr' | 'es' | 'de' | 'it' | 'nl' | 'pt' | 'pl' | 'ca' | 'cs' | 'da' | 'el' | 'fi' | 'id' | 'ja' | 'ru' | 'sv' | 'ta' | 'th' | 'tr' | 'hu' | 'ro' | 'zh' | 'ar' | 'tl' | 'he' | 'hi' | 'hr' | 'ko' | 'ms' | 'no' | 'uk' | 'bg' | 'et' | 'sl' | 'sk';
|
|
4505
4489
|
mode: 'available' | 'disabled' | 'auto-on';
|
|
4506
4490
|
}
|
|
4507
4491
|
export interface TranslateMessageRequest {
|
|
@@ -5043,13 +5027,6 @@ export interface UserFlaggedEvent {
|
|
|
5043
5027
|
target_users?: string[];
|
|
5044
5028
|
user?: User;
|
|
5045
5029
|
}
|
|
5046
|
-
export interface UserInfoResponse {
|
|
5047
|
-
id: string;
|
|
5048
|
-
image: string;
|
|
5049
|
-
name: string;
|
|
5050
|
-
roles: string[];
|
|
5051
|
-
custom: Record<string, any>;
|
|
5052
|
-
}
|
|
5053
5030
|
export interface UserMute {
|
|
5054
5031
|
created_at: Date;
|
|
5055
5032
|
updated_at: Date;
|
|
@@ -5157,68 +5134,6 @@ export interface UserResponsePrivacyFields {
|
|
|
5157
5134
|
privacy_settings?: PrivacySettingsResponse;
|
|
5158
5135
|
teams_role?: Record<string, string>;
|
|
5159
5136
|
}
|
|
5160
|
-
export interface UserSessionStats {
|
|
5161
|
-
freeze_duration_seconds: number;
|
|
5162
|
-
group: string;
|
|
5163
|
-
max_freeze_fraction: number;
|
|
5164
|
-
max_freezes_duration_seconds: number;
|
|
5165
|
-
min_event_ts: number;
|
|
5166
|
-
packet_loss_fraction: number;
|
|
5167
|
-
publisher_packet_loss_fraction: number;
|
|
5168
|
-
publishing_duration_seconds: number;
|
|
5169
|
-
quality_score: number;
|
|
5170
|
-
receiving_duration_seconds: number;
|
|
5171
|
-
session_id: string;
|
|
5172
|
-
total_pixels_in: number;
|
|
5173
|
-
total_pixels_out: number;
|
|
5174
|
-
average_connection_time?: number;
|
|
5175
|
-
browser?: string;
|
|
5176
|
-
browser_version?: string;
|
|
5177
|
-
current_ip?: string;
|
|
5178
|
-
current_sfu?: string;
|
|
5179
|
-
device_model?: string;
|
|
5180
|
-
device_version?: string;
|
|
5181
|
-
distance_to_sfu_kilometers?: number;
|
|
5182
|
-
max_fir_per_second?: number;
|
|
5183
|
-
max_freezes_per_second?: number;
|
|
5184
|
-
max_nack_per_second?: number;
|
|
5185
|
-
max_pli_per_second?: number;
|
|
5186
|
-
os?: string;
|
|
5187
|
-
os_version?: string;
|
|
5188
|
-
publisher_noise_cancellation_seconds?: number;
|
|
5189
|
-
publisher_quality_limitation_fraction?: number;
|
|
5190
|
-
publishing_audio_codec?: string;
|
|
5191
|
-
publishing_video_codec?: string;
|
|
5192
|
-
receiving_audio_codec?: string;
|
|
5193
|
-
receiving_video_codec?: string;
|
|
5194
|
-
sdk?: string;
|
|
5195
|
-
sdk_version?: string;
|
|
5196
|
-
subscriber_video_quality_throttled_duration_seconds?: number;
|
|
5197
|
-
truncated?: boolean;
|
|
5198
|
-
webrtc_version?: string;
|
|
5199
|
-
published_tracks?: PublishedTrackInfo[];
|
|
5200
|
-
subsessions?: Subsession[];
|
|
5201
|
-
fps?: FPSStats;
|
|
5202
|
-
geolocation?: GeolocationResult;
|
|
5203
|
-
jitter?: TimeStats;
|
|
5204
|
-
latency?: TimeStats;
|
|
5205
|
-
max_publishing_video_quality?: VideoQuality;
|
|
5206
|
-
max_receiving_video_quality?: VideoQuality;
|
|
5207
|
-
pub_sub_hints?: MediaPubSubHint;
|
|
5208
|
-
publisher_jitter?: TimeStats;
|
|
5209
|
-
publisher_latency?: TimeStats;
|
|
5210
|
-
publisher_video_quality_limitation_duration_seconds?: Record<string, number>;
|
|
5211
|
-
subscriber_jitter?: TimeStats;
|
|
5212
|
-
subscriber_latency?: TimeStats;
|
|
5213
|
-
timeline?: CallTimeline;
|
|
5214
|
-
}
|
|
5215
|
-
export interface UserStats {
|
|
5216
|
-
min_event_ts: number;
|
|
5217
|
-
session_stats: UserSessionStats[];
|
|
5218
|
-
info: UserInfoResponse;
|
|
5219
|
-
feedback?: string;
|
|
5220
|
-
rating?: number;
|
|
5221
|
-
}
|
|
5222
5137
|
export interface UserUnbannedEvent {
|
|
5223
5138
|
channel_id: string;
|
|
5224
5139
|
channel_type: string;
|
|
@@ -5274,14 +5189,6 @@ export interface VelocityFilterConfigRule {
|
|
|
5274
5189
|
url_only: boolean;
|
|
5275
5190
|
slow_spam_ban_duration?: number;
|
|
5276
5191
|
}
|
|
5277
|
-
export interface VideoDimension {
|
|
5278
|
-
height: number;
|
|
5279
|
-
width: number;
|
|
5280
|
-
}
|
|
5281
|
-
export interface VideoQuality {
|
|
5282
|
-
usage_type?: string;
|
|
5283
|
-
resolution?: VideoDimension;
|
|
5284
|
-
}
|
|
5285
5192
|
export interface VideoSettings {
|
|
5286
5193
|
access_request_enabled: boolean;
|
|
5287
5194
|
camera_default_on: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VideoApi } from './VideoApi';
|
|
2
2
|
import { StreamResponse } from '../../types';
|
|
3
|
-
import { BlockUserRequest, BlockUserResponse, CollectUserFeedbackRequest, CollectUserFeedbackResponse, DeleteCallRequest, DeleteCallResponse, DeleteRecordingResponse, DeleteTranscriptionResponse, EndCallResponse, GetCallReportResponse, GetCallResponse,
|
|
3
|
+
import { BlockUserRequest, BlockUserResponse, CollectUserFeedbackRequest, CollectUserFeedbackResponse, DeleteCallRequest, DeleteCallResponse, DeleteRecordingResponse, DeleteTranscriptionResponse, EndCallResponse, GetCallReportResponse, GetCallResponse, GetOrCreateCallRequest, GetOrCreateCallResponse, GoLiveRequest, GoLiveResponse, ListRecordingsResponse, ListTranscriptionsResponse, MuteUsersRequest, MuteUsersResponse, PinRequest, PinResponse, QueryCallParticipantsRequest, QueryCallParticipantsResponse, SendCallEventRequest, SendCallEventResponse, StartClosedCaptionsRequest, StartClosedCaptionsResponse, StartFrameRecordingRequest, StartFrameRecordingResponse, StartHLSBroadcastingResponse, StartRTMPBroadcastsRequest, StartRTMPBroadcastsResponse, StartRecordingRequest, StartRecordingResponse, StartTranscriptionRequest, StartTranscriptionResponse, StopAllRTMPBroadcastsResponse, StopClosedCaptionsRequest, StopClosedCaptionsResponse, StopFrameRecordingResponse, StopHLSBroadcastingResponse, StopLiveRequest, StopLiveResponse, StopRTMPBroadcastsRequest, StopRTMPBroadcastsResponse, StopRecordingResponse, StopTranscriptionRequest, StopTranscriptionResponse, UnblockUserRequest, UnblockUserResponse, UnpinRequest, UnpinResponse, UpdateCallMembersRequest, UpdateCallMembersResponse, UpdateCallRequest, UpdateCallResponse, UpdateUserPermissionsRequest, UpdateUserPermissionsResponse } from '../models';
|
|
4
4
|
export declare class CallApi {
|
|
5
5
|
protected videoApi: VideoApi;
|
|
6
6
|
readonly type: string;
|
|
@@ -22,6 +22,9 @@ export declare class CallApi {
|
|
|
22
22
|
end: () => Promise<StreamResponse<EndCallResponse>>;
|
|
23
23
|
updateCallMembers: (request?: UpdateCallMembersRequest) => Promise<StreamResponse<UpdateCallMembersResponse>>;
|
|
24
24
|
muteUsers: (request?: MuteUsersRequest) => Promise<StreamResponse<MuteUsersResponse>>;
|
|
25
|
+
queryCallParticipants: (request?: QueryCallParticipantsRequest & {
|
|
26
|
+
limit?: number;
|
|
27
|
+
}) => Promise<StreamResponse<QueryCallParticipantsResponse>>;
|
|
25
28
|
videoPin: (request: PinRequest) => Promise<StreamResponse<PinResponse>>;
|
|
26
29
|
listRecordings: () => Promise<StreamResponse<ListRecordingsResponse>>;
|
|
27
30
|
getCallReport: (request?: {
|
|
@@ -37,9 +40,6 @@ export declare class CallApi {
|
|
|
37
40
|
startFrameRecording: (request?: StartFrameRecordingRequest) => Promise<StreamResponse<StartFrameRecordingResponse>>;
|
|
38
41
|
startRecording: (request?: StartRecordingRequest) => Promise<StreamResponse<StartRecordingResponse>>;
|
|
39
42
|
startTranscription: (request?: StartTranscriptionRequest) => Promise<StreamResponse<StartTranscriptionResponse>>;
|
|
40
|
-
getCallStats: (request: {
|
|
41
|
-
session: string;
|
|
42
|
-
}) => Promise<StreamResponse<GetCallStatsResponse>>;
|
|
43
43
|
stopHLSBroadcasting: () => Promise<StreamResponse<StopHLSBroadcastingResponse>>;
|
|
44
44
|
stopClosedCaptions: (request?: StopClosedCaptionsRequest) => Promise<StreamResponse<StopClosedCaptionsResponse>>;
|
|
45
45
|
stopFrameRecording: () => Promise<StreamResponse<StopFrameRecordingResponse>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
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,
|
|
3
|
+
import { BlockUserRequest, BlockUserResponse, CollectUserFeedbackRequest, CollectUserFeedbackResponse, CreateCallTypeRequest, CreateCallTypeResponse, DeleteCallRequest, DeleteCallResponse, DeleteRecordingResponse, DeleteTranscriptionResponse, EndCallResponse, GetCallReportResponse, GetCallResponse, GetCallTypeResponse, GetEdgesResponse, GetOrCreateCallRequest, GetOrCreateCallResponse, GoLiveRequest, GoLiveResponse, ListCallTypeResponse, ListRecordingsResponse, ListTranscriptionsResponse, MuteUsersRequest, MuteUsersResponse, PinRequest, PinResponse, QueryAggregateCallStatsRequest, QueryAggregateCallStatsResponse, QueryCallMembersRequest, QueryCallMembersResponse, QueryCallParticipantsRequest, QueryCallParticipantsResponse, QueryCallStatsRequest, QueryCallStatsResponse, QueryCallsRequest, QueryCallsResponse, QueryUserFeedbackRequest, QueryUserFeedbackResponse, Response, SendCallEventRequest, SendCallEventResponse, StartClosedCaptionsRequest, StartClosedCaptionsResponse, StartFrameRecordingRequest, StartFrameRecordingResponse, StartHLSBroadcastingResponse, StartRTMPBroadcastsRequest, StartRTMPBroadcastsResponse, StartRecordingRequest, StartRecordingResponse, StartTranscriptionRequest, StartTranscriptionResponse, StopAllRTMPBroadcastsResponse, StopClosedCaptionsRequest, StopClosedCaptionsResponse, StopFrameRecordingResponse, 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
5
|
queryUserFeedback: (request?: QueryUserFeedbackRequest & {
|
|
6
6
|
full?: boolean;
|
|
@@ -55,6 +55,11 @@ export declare class VideoApi extends BaseApi {
|
|
|
55
55
|
type: string;
|
|
56
56
|
id: string;
|
|
57
57
|
}) => Promise<StreamResponse<MuteUsersResponse>>;
|
|
58
|
+
queryCallParticipants: (request: QueryCallParticipantsRequest & {
|
|
59
|
+
id: string;
|
|
60
|
+
type: string;
|
|
61
|
+
limit?: number;
|
|
62
|
+
}) => Promise<StreamResponse<QueryCallParticipantsResponse>>;
|
|
58
63
|
videoPin: (request: PinRequest & {
|
|
59
64
|
type: string;
|
|
60
65
|
id: string;
|
|
@@ -101,11 +106,6 @@ export declare class VideoApi extends BaseApi {
|
|
|
101
106
|
type: string;
|
|
102
107
|
id: string;
|
|
103
108
|
}) => Promise<StreamResponse<StartTranscriptionResponse>>;
|
|
104
|
-
getCallStats: (request: {
|
|
105
|
-
type: string;
|
|
106
|
-
id: string;
|
|
107
|
-
session: string;
|
|
108
|
-
}) => Promise<StreamResponse<GetCallStatsResponse>>;
|
|
109
109
|
stopHLSBroadcasting: (request: {
|
|
110
110
|
type: string;
|
|
111
111
|
id: string;
|
package/package.json
CHANGED
|
@@ -199,7 +199,7 @@ export class ChannelApi {
|
|
|
199
199
|
};
|
|
200
200
|
|
|
201
201
|
updateMemberPartial = (
|
|
202
|
-
request
|
|
202
|
+
request?: UpdateMemberPartialRequest & { user_id?: string },
|
|
203
203
|
): Promise<StreamResponse<UpdateMemberPartialResponse>> => {
|
|
204
204
|
if (!this.id) {
|
|
205
205
|
throw new Error(
|
package/src/gen/chat/ChatApi.ts
CHANGED
|
@@ -601,13 +601,15 @@ export class ChatApi extends BaseApi {
|
|
|
601
601
|
|
|
602
602
|
updateMemberPartial = async (
|
|
603
603
|
request: UpdateMemberPartialRequest & {
|
|
604
|
-
user_id: string;
|
|
605
604
|
type: string;
|
|
606
605
|
id: string;
|
|
606
|
+
user_id?: string;
|
|
607
607
|
},
|
|
608
608
|
): Promise<StreamResponse<UpdateMemberPartialResponse>> => {
|
|
609
|
-
const
|
|
609
|
+
const queryParams = {
|
|
610
610
|
user_id: request?.user_id,
|
|
611
|
+
};
|
|
612
|
+
const pathParams = {
|
|
611
613
|
type: request?.type,
|
|
612
614
|
id: request?.id,
|
|
613
615
|
};
|
|
@@ -620,9 +622,9 @@ export class ChatApi extends BaseApi {
|
|
|
620
622
|
StreamResponse<UpdateMemberPartialResponse>
|
|
621
623
|
>(
|
|
622
624
|
'PATCH',
|
|
623
|
-
'/api/v2/chat/channels/{type}/{id}/member
|
|
625
|
+
'/api/v2/chat/channels/{type}/{id}/member',
|
|
624
626
|
pathParams,
|
|
625
|
-
|
|
627
|
+
queryParams,
|
|
626
628
|
body,
|
|
627
629
|
);
|
|
628
630
|
|
|
@@ -2083,6 +2085,8 @@ export class ChatApi extends BaseApi {
|
|
|
2083
2085
|
prev: request?.prev,
|
|
2084
2086
|
reply_limit: request?.reply_limit,
|
|
2085
2087
|
user_id: request?.user_id,
|
|
2088
|
+
sort: request?.sort,
|
|
2089
|
+
filter: request?.filter,
|
|
2086
2090
|
user: request?.user,
|
|
2087
2091
|
};
|
|
2088
2092
|
|