@stream-io/node-sdk 0.4.11 → 0.4.13
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 +164 -98
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +164 -98
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/common/CommonApi.d.ts +8 -4
- package/dist/src/gen/models/index.d.ts +119 -2
- package/dist/src/gen/moderation/ModerationApi.d.ts +2 -1
- package/dist/src/gen/video/CallApi.d.ts +4 -4
- package/dist/src/gen/video/VideoApi.d.ts +9 -2
- package/package.json +1 -1
- package/src/gen/common/CommonApi.ts +33 -22
- package/src/gen/model-decoders/index.ts +14 -0
- package/src/gen/models/index.ts +201 -4
- package/src/gen/moderation/ModerationApi.ts +20 -0
- package/src/gen/video/CallApi.ts +20 -1
- package/src/gen/video/VideoApi.ts +55 -8
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
import { BaseApi } from '../../BaseApi';
|
|
2
2
|
import { StreamResponse } from '../../types';
|
|
3
|
-
import { BlockUsersRequest, BlockUsersResponse, CheckExternalStorageResponse, CheckPushRequest, CheckPushResponse, CheckSNSRequest, CheckSNSResponse, CheckSQSRequest, CheckSQSResponse, CreateBlockListRequest, CreateDeviceRequest, CreateExternalStorageRequest, CreateExternalStorageResponse, CreateGuestRequest, CreateGuestResponse, CreateImportRequest, CreateImportResponse, CreateImportURLRequest, CreateImportURLResponse, CreateRoleRequest, CreateRoleResponse, DeactivateUserRequest, DeactivateUserResponse, DeactivateUsersRequest, DeactivateUsersResponse, DeleteExternalStorageResponse, DeleteUsersRequest, DeleteUsersResponse, ExportUserResponse, ExportUsersRequest, ExportUsersResponse, GetApplicationResponse, GetBlockListResponse, GetBlockedUsersResponse, GetCustomPermissionResponse, GetImportResponse, GetOGResponse, GetRateLimitsResponse, GetTaskResponse, ListBlockListResponse, ListDevicesResponse, ListExternalStorageResponse, ListImportsResponse, ListPermissionsResponse, ListPushProvidersResponse, ListRolesResponse, QueryUsersPayload, QueryUsersResponse, ReactivateUserRequest, ReactivateUserResponse, ReactivateUsersRequest, ReactivateUsersResponse, Response, RestoreUsersRequest, UnblockUsersRequest, UnblockUsersResponse, UpdateAppRequest, UpdateBlockListRequest, UpdateExternalStorageRequest, UpdateExternalStorageResponse, UpdateUsersPartialRequest, UpdateUsersRequest, UpdateUsersResponse, UpsertPushProviderRequest, UpsertPushProviderResponse } from '../models';
|
|
3
|
+
import { BlockUsersRequest, BlockUsersResponse, CheckExternalStorageResponse, CheckPushRequest, CheckPushResponse, CheckSNSRequest, CheckSNSResponse, CheckSQSRequest, CheckSQSResponse, CreateBlockListRequest, CreateBlockListResponse, CreateDeviceRequest, CreateExternalStorageRequest, CreateExternalStorageResponse, CreateGuestRequest, CreateGuestResponse, CreateImportRequest, CreateImportResponse, CreateImportURLRequest, CreateImportURLResponse, CreateRoleRequest, CreateRoleResponse, DeactivateUserRequest, DeactivateUserResponse, DeactivateUsersRequest, DeactivateUsersResponse, DeleteExternalStorageResponse, DeleteUsersRequest, DeleteUsersResponse, ExportUserResponse, ExportUsersRequest, ExportUsersResponse, GetApplicationResponse, GetBlockListResponse, GetBlockedUsersResponse, GetCustomPermissionResponse, GetImportResponse, GetOGResponse, GetRateLimitsResponse, GetTaskResponse, ListBlockListResponse, ListDevicesResponse, ListExternalStorageResponse, ListImportsResponse, ListPermissionsResponse, ListPushProvidersResponse, ListRolesResponse, QueryUsersPayload, QueryUsersResponse, ReactivateUserRequest, ReactivateUserResponse, ReactivateUsersRequest, ReactivateUsersResponse, Response, RestoreUsersRequest, UnblockUsersRequest, UnblockUsersResponse, UpdateAppRequest, UpdateBlockListRequest, UpdateBlockListResponse, UpdateExternalStorageRequest, UpdateExternalStorageResponse, UpdateUsersPartialRequest, UpdateUsersRequest, UpdateUsersResponse, UpsertPushProviderRequest, UpsertPushProviderResponse } from '../models';
|
|
4
4
|
export declare class CommonApi extends BaseApi {
|
|
5
5
|
getApp: () => Promise<StreamResponse<GetApplicationResponse>>;
|
|
6
6
|
updateApp: (request?: UpdateAppRequest) => Promise<StreamResponse<Response>>;
|
|
7
|
-
listBlockLists: (
|
|
8
|
-
|
|
7
|
+
listBlockLists: (request?: {
|
|
8
|
+
team?: string;
|
|
9
|
+
}) => Promise<StreamResponse<ListBlockListResponse>>;
|
|
10
|
+
createBlockList: (request: CreateBlockListRequest) => Promise<StreamResponse<CreateBlockListResponse>>;
|
|
9
11
|
deleteBlockList: (request: {
|
|
10
12
|
name: string;
|
|
13
|
+
team?: string;
|
|
11
14
|
}) => Promise<StreamResponse<Response>>;
|
|
12
15
|
getBlockList: (request: {
|
|
13
16
|
name: string;
|
|
17
|
+
team?: string;
|
|
14
18
|
}) => Promise<StreamResponse<GetBlockListResponse>>;
|
|
15
19
|
updateBlockList: (request: UpdateBlockListRequest & {
|
|
16
20
|
name: string;
|
|
17
|
-
}) => Promise<StreamResponse<
|
|
21
|
+
}) => Promise<StreamResponse<UpdateBlockListResponse>>;
|
|
18
22
|
checkPush: (request?: CheckPushRequest) => Promise<StreamResponse<CheckPushResponse>>;
|
|
19
23
|
checkSNS: (request?: CheckSNSRequest) => Promise<StreamResponse<CheckSNSResponse>>;
|
|
20
24
|
checkSQS: (request?: CheckSQSRequest) => Promise<StreamResponse<CheckSQSResponse>>;
|
|
@@ -107,8 +107,10 @@ export interface AppResponseFields {
|
|
|
107
107
|
disable_auth_checks: boolean;
|
|
108
108
|
disable_permissions_checks: boolean;
|
|
109
109
|
enforce_unique_usernames: string;
|
|
110
|
+
guest_user_creation_disabled: boolean;
|
|
110
111
|
image_moderation_enabled: boolean;
|
|
111
112
|
moderation_enabled: boolean;
|
|
113
|
+
moderation_multitenant_blocklist_enabled: boolean;
|
|
112
114
|
moderation_webhook_url: string;
|
|
113
115
|
multi_tenant_enabled: boolean;
|
|
114
116
|
name: string;
|
|
@@ -301,11 +303,14 @@ export interface BlockListResponse {
|
|
|
301
303
|
type: string;
|
|
302
304
|
words: string[];
|
|
303
305
|
created_at?: Date;
|
|
306
|
+
id?: string;
|
|
307
|
+
team?: string;
|
|
304
308
|
updated_at?: Date;
|
|
305
309
|
}
|
|
306
310
|
export interface BlockListRule {
|
|
307
311
|
action: 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove';
|
|
308
312
|
name: string;
|
|
313
|
+
team: string;
|
|
309
314
|
}
|
|
310
315
|
export interface BlockUserRequest {
|
|
311
316
|
user_id: string;
|
|
@@ -437,6 +442,38 @@ export interface CallEvent {
|
|
|
437
442
|
component?: string;
|
|
438
443
|
issue_tags?: string[];
|
|
439
444
|
}
|
|
445
|
+
export interface CallFrameRecordingFailedEvent {
|
|
446
|
+
call_cid: string;
|
|
447
|
+
created_at: Date;
|
|
448
|
+
egress_id: string;
|
|
449
|
+
call: CallResponse;
|
|
450
|
+
type: string;
|
|
451
|
+
}
|
|
452
|
+
export interface CallFrameRecordingFrameReadyEvent {
|
|
453
|
+
call_cid: string;
|
|
454
|
+
captured_at: Date;
|
|
455
|
+
created_at: Date;
|
|
456
|
+
egress_id: string;
|
|
457
|
+
session_id: string;
|
|
458
|
+
track_type: string;
|
|
459
|
+
url: string;
|
|
460
|
+
users: Record<string, UserResponse>;
|
|
461
|
+
type: string;
|
|
462
|
+
}
|
|
463
|
+
export interface CallFrameRecordingStartedEvent {
|
|
464
|
+
call_cid: string;
|
|
465
|
+
created_at: Date;
|
|
466
|
+
egress_id: string;
|
|
467
|
+
call: CallResponse;
|
|
468
|
+
type: string;
|
|
469
|
+
}
|
|
470
|
+
export interface CallFrameRecordingStoppedEvent {
|
|
471
|
+
call_cid: string;
|
|
472
|
+
created_at: Date;
|
|
473
|
+
egress_id: string;
|
|
474
|
+
call: CallResponse;
|
|
475
|
+
type: string;
|
|
476
|
+
}
|
|
440
477
|
export interface CallHLSBroadcastingFailedEvent {
|
|
441
478
|
call_cid: string;
|
|
442
479
|
created_at: Date;
|
|
@@ -446,6 +483,7 @@ export interface CallHLSBroadcastingStartedEvent {
|
|
|
446
483
|
call_cid: string;
|
|
447
484
|
created_at: Date;
|
|
448
485
|
hls_playlist_url: string;
|
|
486
|
+
call: CallResponse;
|
|
449
487
|
type: string;
|
|
450
488
|
}
|
|
451
489
|
export interface CallHLSBroadcastingStoppedEvent {
|
|
@@ -681,6 +719,7 @@ export interface CallSettings {
|
|
|
681
719
|
audio?: AudioSettings;
|
|
682
720
|
backstage?: BackstageSettings;
|
|
683
721
|
broadcasting?: BroadcastSettings;
|
|
722
|
+
frame_recording?: FrameRecordSettings;
|
|
684
723
|
geofencing?: GeofenceSettings;
|
|
685
724
|
limits?: LimitsSettings;
|
|
686
725
|
recording?: RecordSettings;
|
|
@@ -695,6 +734,7 @@ export interface CallSettingsRequest {
|
|
|
695
734
|
audio?: AudioSettingsRequest;
|
|
696
735
|
backstage?: BackstageSettingsRequest;
|
|
697
736
|
broadcasting?: BroadcastSettingsRequest;
|
|
737
|
+
frame_recording?: FrameRecordingSettingsRequest;
|
|
698
738
|
geofencing?: GeofenceSettingsRequest;
|
|
699
739
|
limits?: LimitsSettingsRequest;
|
|
700
740
|
recording?: RecordSettingsRequest;
|
|
@@ -709,6 +749,7 @@ export interface CallSettingsResponse {
|
|
|
709
749
|
audio: AudioSettingsResponse;
|
|
710
750
|
backstage: BackstageSettingsResponse;
|
|
711
751
|
broadcasting: BroadcastSettingsResponse;
|
|
752
|
+
frame_recording: FrameRecordingSettingsResponse;
|
|
712
753
|
geofencing: GeofenceSettingsResponse;
|
|
713
754
|
limits: LimitsSettingsResponse;
|
|
714
755
|
recording: RecordSettingsResponse;
|
|
@@ -1100,6 +1141,7 @@ export declare const ChannelOwnCapability: {
|
|
|
1100
1141
|
readonly SEND_POLL: "send-poll";
|
|
1101
1142
|
readonly SEND_REACTION: "send-reaction";
|
|
1102
1143
|
readonly SEND_REPLY: "send-reply";
|
|
1144
|
+
readonly SEND_RESTRICTED_VISIBILITY_MESSAGE: "send-restricted-visibility-message";
|
|
1103
1145
|
readonly SEND_TYPING_EVENTS: "send-typing-events";
|
|
1104
1146
|
readonly SET_CHANNEL_COOLDOWN: "set-channel-cooldown";
|
|
1105
1147
|
readonly SKIP_SLOW_MODE: "skip-slow-mode";
|
|
@@ -1279,6 +1321,7 @@ export interface CheckRequest {
|
|
|
1279
1321
|
entity_creator_id: string;
|
|
1280
1322
|
entity_id: string;
|
|
1281
1323
|
entity_type: string;
|
|
1324
|
+
config_team?: string;
|
|
1282
1325
|
test_mode?: boolean;
|
|
1283
1326
|
user_id?: string;
|
|
1284
1327
|
moderation_payload?: ModerationPayload;
|
|
@@ -1329,8 +1372,8 @@ export interface CollectUserFeedbackRequest {
|
|
|
1329
1372
|
rating: number;
|
|
1330
1373
|
sdk: string;
|
|
1331
1374
|
sdk_version: string;
|
|
1332
|
-
user_session_id: string;
|
|
1333
1375
|
reason?: string;
|
|
1376
|
+
user_session_id?: string;
|
|
1334
1377
|
custom?: Record<string, any>;
|
|
1335
1378
|
}
|
|
1336
1379
|
export interface CollectUserFeedbackResponse {
|
|
@@ -1385,8 +1428,13 @@ export interface Count {
|
|
|
1385
1428
|
export interface CreateBlockListRequest {
|
|
1386
1429
|
name: string;
|
|
1387
1430
|
words: string[];
|
|
1431
|
+
team?: string;
|
|
1388
1432
|
type?: 'regex' | 'domain' | 'email' | 'word';
|
|
1389
1433
|
}
|
|
1434
|
+
export interface CreateBlockListResponse {
|
|
1435
|
+
duration: string;
|
|
1436
|
+
blocklist?: BlockListResponse;
|
|
1437
|
+
}
|
|
1390
1438
|
export interface CreateCallTypeRequest {
|
|
1391
1439
|
name: string;
|
|
1392
1440
|
external_storage?: string;
|
|
@@ -1771,6 +1819,7 @@ export interface EgressRTMPResponse {
|
|
|
1771
1819
|
export interface EgressResponse {
|
|
1772
1820
|
broadcasting: boolean;
|
|
1773
1821
|
rtmps: EgressRTMPResponse[];
|
|
1822
|
+
frame_recording?: FrameRecordingResponse;
|
|
1774
1823
|
hls?: EgressHLSResponse;
|
|
1775
1824
|
}
|
|
1776
1825
|
export interface EndCallRequest {
|
|
@@ -2038,6 +2087,24 @@ export interface FlagUpdatedEvent {
|
|
|
2038
2087
|
message?: MessageResponse;
|
|
2039
2088
|
user?: UserResponse;
|
|
2040
2089
|
}
|
|
2090
|
+
export interface FrameRecordSettings {
|
|
2091
|
+
capture_interval_in_seconds: number;
|
|
2092
|
+
mode: 'available' | 'disabled' | 'auto-on';
|
|
2093
|
+
quality?: string;
|
|
2094
|
+
}
|
|
2095
|
+
export interface FrameRecordingResponse {
|
|
2096
|
+
status: string;
|
|
2097
|
+
}
|
|
2098
|
+
export interface FrameRecordingSettingsRequest {
|
|
2099
|
+
capture_interval_in_seconds: number;
|
|
2100
|
+
mode: 'available' | 'disabled' | 'auto-on';
|
|
2101
|
+
quality?: '360p' | '480p' | '720p' | '1080p' | '1440p';
|
|
2102
|
+
}
|
|
2103
|
+
export interface FrameRecordingSettingsResponse {
|
|
2104
|
+
capture_interval_in_seconds: number;
|
|
2105
|
+
mode: 'available' | 'disabled' | 'auto-on';
|
|
2106
|
+
quality?: string;
|
|
2107
|
+
}
|
|
2041
2108
|
export interface FullUserResponse {
|
|
2042
2109
|
banned: boolean;
|
|
2043
2110
|
created_at: Date;
|
|
@@ -2227,6 +2294,14 @@ export interface GetMessageResponse {
|
|
|
2227
2294
|
message: MessageWithChannelResponse;
|
|
2228
2295
|
pending_message_metadata?: Record<string, string>;
|
|
2229
2296
|
}
|
|
2297
|
+
export interface GetModerationAnalyticsRequest {
|
|
2298
|
+
end_date?: string;
|
|
2299
|
+
start_date?: string;
|
|
2300
|
+
}
|
|
2301
|
+
export interface GetModerationAnalyticsResponse {
|
|
2302
|
+
duration: string;
|
|
2303
|
+
analytics?: ModerationAnalytics;
|
|
2304
|
+
}
|
|
2230
2305
|
export interface GetOGResponse {
|
|
2231
2306
|
duration: string;
|
|
2232
2307
|
custom: Record<string, any>;
|
|
@@ -2607,6 +2682,7 @@ export interface Message {
|
|
|
2607
2682
|
latest_reactions: Reaction[];
|
|
2608
2683
|
mentioned_users: User[];
|
|
2609
2684
|
own_reactions: Reaction[];
|
|
2685
|
+
restricted_visibility: string[];
|
|
2610
2686
|
custom: Record<string, any>;
|
|
2611
2687
|
reaction_counts: Record<string, number>;
|
|
2612
2688
|
reaction_groups: Record<string, ReactionGroupResponse>;
|
|
@@ -2749,6 +2825,7 @@ export interface MessageRequest {
|
|
|
2749
2825
|
user_id?: string;
|
|
2750
2826
|
attachments?: Attachment[];
|
|
2751
2827
|
mentioned_users?: string[];
|
|
2828
|
+
restricted_visibility?: string[];
|
|
2752
2829
|
custom?: Record<string, any>;
|
|
2753
2830
|
user?: UserRequest;
|
|
2754
2831
|
}
|
|
@@ -2769,6 +2846,7 @@ export interface MessageResponse {
|
|
|
2769
2846
|
latest_reactions: ReactionResponse[];
|
|
2770
2847
|
mentioned_users: UserResponse[];
|
|
2771
2848
|
own_reactions: ReactionResponse[];
|
|
2849
|
+
restricted_visibility: string[];
|
|
2772
2850
|
custom: Record<string, any>;
|
|
2773
2851
|
reaction_counts: Record<string, number>;
|
|
2774
2852
|
reaction_scores: Record<string, number>;
|
|
@@ -2843,6 +2921,7 @@ export interface MessageWithChannelResponse {
|
|
|
2843
2921
|
latest_reactions: ReactionResponse[];
|
|
2844
2922
|
mentioned_users: UserResponse[];
|
|
2845
2923
|
own_reactions: ReactionResponse[];
|
|
2924
|
+
restricted_visibility: string[];
|
|
2846
2925
|
channel: ChannelResponse;
|
|
2847
2926
|
custom: Record<string, any>;
|
|
2848
2927
|
reaction_counts: Record<string, number>;
|
|
@@ -2875,6 +2954,22 @@ export interface ModerationActionConfig {
|
|
|
2875
2954
|
order: number;
|
|
2876
2955
|
custom: Record<string, any>;
|
|
2877
2956
|
}
|
|
2957
|
+
export interface ModerationAnalytics {
|
|
2958
|
+
total_items_moderated: number;
|
|
2959
|
+
ai_image_harms: Array<Record<string, any>>;
|
|
2960
|
+
ai_text_harms: Array<Record<string, any>>;
|
|
2961
|
+
ai_video_harms: Array<Record<string, any>>;
|
|
2962
|
+
blocklist_by_list: Array<Record<string, any>>;
|
|
2963
|
+
blocklist_matches: Array<Record<string, any>>;
|
|
2964
|
+
model_accuracy: Array<Record<string, any>>;
|
|
2965
|
+
moderator_actions: Array<Record<string, any>>;
|
|
2966
|
+
moderator_productivity: Array<Record<string, any>>;
|
|
2967
|
+
semantic_filter_top_matches: Array<Record<string, any>>;
|
|
2968
|
+
sla_metrics: Array<Record<string, any>>;
|
|
2969
|
+
usage_metrics: Array<Record<string, any>>;
|
|
2970
|
+
action_distribution_over_time: Record<string, Record<string, any>>;
|
|
2971
|
+
detection_by_engine_over_time: Record<string, Record<string, any>>;
|
|
2972
|
+
}
|
|
2878
2973
|
export interface ModerationCustomActionEvent {
|
|
2879
2974
|
created_at: Date;
|
|
2880
2975
|
type: string;
|
|
@@ -3042,10 +3137,12 @@ export declare const OwnCapability: {
|
|
|
3042
3137
|
readonly SEND_VIDEO: "send-video";
|
|
3043
3138
|
readonly START_BROADCAST_CALL: "start-broadcast-call";
|
|
3044
3139
|
readonly START_CLOSED_CAPTIONS_CALL: "start-closed-captions-call";
|
|
3140
|
+
readonly START_FRAME_RECORD_CALL: "start-frame-record-call";
|
|
3045
3141
|
readonly START_RECORD_CALL: "start-record-call";
|
|
3046
3142
|
readonly START_TRANSCRIPTION_CALL: "start-transcription-call";
|
|
3047
3143
|
readonly STOP_BROADCAST_CALL: "stop-broadcast-call";
|
|
3048
3144
|
readonly STOP_CLOSED_CAPTIONS_CALL: "stop-closed-captions-call";
|
|
3145
|
+
readonly STOP_FRAME_RECORD_CALL: "stop-frame-record-call";
|
|
3049
3146
|
readonly STOP_RECORD_CALL: "stop-record-call";
|
|
3050
3147
|
readonly STOP_TRANSCRIPTION_CALL: "stop-transcription-call";
|
|
3051
3148
|
readonly UPDATE_CALL: "update-call";
|
|
@@ -3864,7 +3961,6 @@ export interface RecordSettingsResponse {
|
|
|
3864
3961
|
export interface ReportByHistogramBucket {
|
|
3865
3962
|
category: string;
|
|
3866
3963
|
count: number;
|
|
3867
|
-
mean: number;
|
|
3868
3964
|
sum: number;
|
|
3869
3965
|
lower_bound?: Bound;
|
|
3870
3966
|
upper_bound?: Bound;
|
|
@@ -3883,6 +3979,7 @@ export interface RestoreUsersRequest {
|
|
|
3883
3979
|
user_ids: string[];
|
|
3884
3980
|
}
|
|
3885
3981
|
export interface ReviewQueueItem {
|
|
3982
|
+
ai_text_severity: string;
|
|
3886
3983
|
bounce_count: number;
|
|
3887
3984
|
content_changed: boolean;
|
|
3888
3985
|
created_at: Date;
|
|
@@ -3912,6 +4009,7 @@ export interface ReviewQueueItem {
|
|
|
3912
4009
|
moderation_payload?: ModerationPayload;
|
|
3913
4010
|
}
|
|
3914
4011
|
export interface ReviewQueueItemResponse {
|
|
4012
|
+
ai_text_severity: string;
|
|
3915
4013
|
created_at: Date;
|
|
3916
4014
|
entity_id: string;
|
|
3917
4015
|
entity_type: string;
|
|
@@ -3928,6 +4026,7 @@ export interface ReviewQueueItemResponse {
|
|
|
3928
4026
|
completed_at?: Date;
|
|
3929
4027
|
entity_creator_id?: string;
|
|
3930
4028
|
reviewed_at?: Date;
|
|
4029
|
+
teams?: string[];
|
|
3931
4030
|
assigned_to?: UserResponse;
|
|
3932
4031
|
entity_creator?: EntityCreatorResponse;
|
|
3933
4032
|
feeds_v2_activity?: EnrichedActivity;
|
|
@@ -4025,6 +4124,7 @@ export interface SearchResultMessage {
|
|
|
4025
4124
|
latest_reactions: ReactionResponse[];
|
|
4026
4125
|
mentioned_users: UserResponse[];
|
|
4027
4126
|
own_reactions: ReactionResponse[];
|
|
4127
|
+
restricted_visibility: string[];
|
|
4028
4128
|
custom: Record<string, any>;
|
|
4029
4129
|
reaction_counts: Record<string, number>;
|
|
4030
4130
|
reaction_scores: Record<string, number>;
|
|
@@ -4162,6 +4262,12 @@ export interface StartClosedCaptionsRequest {
|
|
|
4162
4262
|
export interface StartClosedCaptionsResponse {
|
|
4163
4263
|
duration: string;
|
|
4164
4264
|
}
|
|
4265
|
+
export interface StartFrameRecordingRequest {
|
|
4266
|
+
recording_external_storage?: string;
|
|
4267
|
+
}
|
|
4268
|
+
export interface StartFrameRecordingResponse {
|
|
4269
|
+
duration: string;
|
|
4270
|
+
}
|
|
4165
4271
|
export interface StartHLSBroadcastingRequest {
|
|
4166
4272
|
}
|
|
4167
4273
|
export interface StartHLSBroadcastingResponse {
|
|
@@ -4201,6 +4307,11 @@ export interface StopClosedCaptionsRequest {
|
|
|
4201
4307
|
export interface StopClosedCaptionsResponse {
|
|
4202
4308
|
duration: string;
|
|
4203
4309
|
}
|
|
4310
|
+
export interface StopFrameRecordingRequest {
|
|
4311
|
+
}
|
|
4312
|
+
export interface StopFrameRecordingResponse {
|
|
4313
|
+
duration: string;
|
|
4314
|
+
}
|
|
4204
4315
|
export interface StopHLSBroadcastingRequest {
|
|
4205
4316
|
}
|
|
4206
4317
|
export interface StopHLSBroadcastingResponse {
|
|
@@ -4480,6 +4591,7 @@ export interface UpdateAppRequest {
|
|
|
4480
4591
|
enforce_unique_usernames?: 'no' | 'app' | 'team';
|
|
4481
4592
|
feeds_moderation_enabled?: boolean;
|
|
4482
4593
|
feeds_v2_region?: string;
|
|
4594
|
+
guest_user_creation_disabled?: boolean;
|
|
4483
4595
|
image_moderation_enabled?: boolean;
|
|
4484
4596
|
migrate_permissions_to_v2?: boolean;
|
|
4485
4597
|
moderation_enabled?: boolean;
|
|
@@ -4513,8 +4625,13 @@ export interface UpdateAppRequest {
|
|
|
4513
4625
|
xiaomi_config?: XiaomiConfig;
|
|
4514
4626
|
}
|
|
4515
4627
|
export interface UpdateBlockListRequest {
|
|
4628
|
+
team?: string;
|
|
4516
4629
|
words?: string[];
|
|
4517
4630
|
}
|
|
4631
|
+
export interface UpdateBlockListResponse {
|
|
4632
|
+
duration: string;
|
|
4633
|
+
blocklist?: BlockListResponse;
|
|
4634
|
+
}
|
|
4518
4635
|
export interface UpdateCallMembersRequest {
|
|
4519
4636
|
remove_members?: string[];
|
|
4520
4637
|
update_members?: MemberRequest[];
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { BaseApi } from '../../BaseApi';
|
|
2
2
|
import { StreamResponse } from '../../types';
|
|
3
|
-
import { BanRequest, BanResponse, CheckRequest, CheckResponse, CustomCheckRequest, CustomCheckResponse, DeleteModerationConfigResponse, DeleteModerationTemplateResponse, FlagRequest, FlagResponse, GetConfigResponse, GetReviewQueueItemResponse, GetUserModerationReportResponse, ModeratorStatsResponse, MuteRequest, MuteResponse, QueryFeedModerationTemplatesResponse, QueryModerationConfigsRequest, QueryModerationConfigsResponse, QueryModerationLogsRequest, QueryModerationLogsResponse, QueryReviewQueueRequest, QueryReviewQueueResponse, QueryUsageStatsRequest, QueryUsageStatsResponse, QueueStatsResponse, SubmitActionRequest, SubmitActionResponse, UnbanRequest, UnbanResponse, UnmuteRequest, UnmuteResponse, UpsertConfigRequest, UpsertConfigResponse, UpsertModerationTemplateRequest, UpsertModerationTemplateResponse } from '../models';
|
|
3
|
+
import { BanRequest, BanResponse, CheckRequest, CheckResponse, CustomCheckRequest, CustomCheckResponse, DeleteModerationConfigResponse, DeleteModerationTemplateResponse, FlagRequest, FlagResponse, GetConfigResponse, GetModerationAnalyticsRequest, GetModerationAnalyticsResponse, GetReviewQueueItemResponse, GetUserModerationReportResponse, ModeratorStatsResponse, MuteRequest, MuteResponse, QueryFeedModerationTemplatesResponse, QueryModerationConfigsRequest, QueryModerationConfigsResponse, QueryModerationLogsRequest, QueryModerationLogsResponse, QueryReviewQueueRequest, QueryReviewQueueResponse, QueryUsageStatsRequest, QueryUsageStatsResponse, QueueStatsResponse, SubmitActionRequest, SubmitActionResponse, UnbanRequest, UnbanResponse, UnmuteRequest, UnmuteResponse, UpsertConfigRequest, UpsertConfigResponse, UpsertModerationTemplateRequest, UpsertModerationTemplateResponse } from '../models';
|
|
4
4
|
export declare class ModerationApi extends BaseApi {
|
|
5
|
+
getModerationAnalytics: (request?: GetModerationAnalyticsRequest) => Promise<StreamResponse<GetModerationAnalyticsResponse>>;
|
|
5
6
|
ban: (request: BanRequest) => Promise<StreamResponse<BanResponse>>;
|
|
6
7
|
check: (request: CheckRequest) => Promise<StreamResponse<CheckResponse>>;
|
|
7
8
|
upsertConfig: (request: UpsertConfigRequest) => Promise<StreamResponse<UpsertConfigResponse>>;
|
|
@@ -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, GetCallStatsResponse, GetOrCreateCallRequest, GetOrCreateCallResponse, GoLiveRequest, GoLiveResponse, ListRecordingsResponse, ListTranscriptionsResponse, MuteUsersRequest, MuteUsersResponse, PinRequest, PinResponse, 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, UpdateUserPermissionsRequest, UpdateUserPermissionsResponse } from '../models';
|
|
3
|
+
import { BlockUserRequest, BlockUserResponse, CollectUserFeedbackRequest, CollectUserFeedbackResponse, DeleteCallRequest, DeleteCallResponse, DeleteRecordingResponse, DeleteTranscriptionResponse, EndCallResponse, GetCallReportResponse, GetCallResponse, GetCallStatsResponse, GetOrCreateCallRequest, GetOrCreateCallResponse, GoLiveRequest, GoLiveResponse, ListRecordingsResponse, ListTranscriptionsResponse, MuteUsersRequest, MuteUsersResponse, PinRequest, PinResponse, 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;
|
|
@@ -17,9 +17,7 @@ export declare class CallApi {
|
|
|
17
17
|
blockUser: (request: BlockUserRequest) => Promise<StreamResponse<BlockUserResponse>>;
|
|
18
18
|
delete: (request?: DeleteCallRequest) => Promise<StreamResponse<DeleteCallResponse>>;
|
|
19
19
|
sendCallEvent: (request?: SendCallEventRequest) => Promise<StreamResponse<SendCallEventResponse>>;
|
|
20
|
-
collectUserFeedback: (request: CollectUserFeedbackRequest
|
|
21
|
-
session: string;
|
|
22
|
-
}) => Promise<StreamResponse<CollectUserFeedbackResponse>>;
|
|
20
|
+
collectUserFeedback: (request: CollectUserFeedbackRequest) => Promise<StreamResponse<CollectUserFeedbackResponse>>;
|
|
23
21
|
goLive: (request?: GoLiveRequest) => Promise<StreamResponse<GoLiveResponse>>;
|
|
24
22
|
end: () => Promise<StreamResponse<EndCallResponse>>;
|
|
25
23
|
updateCallMembers: (request?: UpdateCallMembersRequest) => Promise<StreamResponse<UpdateCallMembersResponse>>;
|
|
@@ -36,6 +34,7 @@ export declare class CallApi {
|
|
|
36
34
|
}) => Promise<StreamResponse<StopRTMPBroadcastsResponse>>;
|
|
37
35
|
startHLSBroadcasting: () => Promise<StreamResponse<StartHLSBroadcastingResponse>>;
|
|
38
36
|
startClosedCaptions: (request?: StartClosedCaptionsRequest) => Promise<StreamResponse<StartClosedCaptionsResponse>>;
|
|
37
|
+
startFrameRecording: (request?: StartFrameRecordingRequest) => Promise<StreamResponse<StartFrameRecordingResponse>>;
|
|
39
38
|
startRecording: (request?: StartRecordingRequest) => Promise<StreamResponse<StartRecordingResponse>>;
|
|
40
39
|
startTranscription: (request?: StartTranscriptionRequest) => Promise<StreamResponse<StartTranscriptionResponse>>;
|
|
41
40
|
getCallStats: (request: {
|
|
@@ -43,6 +42,7 @@ export declare class CallApi {
|
|
|
43
42
|
}) => Promise<StreamResponse<GetCallStatsResponse>>;
|
|
44
43
|
stopHLSBroadcasting: () => Promise<StreamResponse<StopHLSBroadcastingResponse>>;
|
|
45
44
|
stopClosedCaptions: (request?: StopClosedCaptionsRequest) => Promise<StreamResponse<StopClosedCaptionsResponse>>;
|
|
45
|
+
stopFrameRecording: () => Promise<StreamResponse<StopFrameRecordingResponse>>;
|
|
46
46
|
stopLive: (request?: StopLiveRequest) => Promise<StreamResponse<StopLiveResponse>>;
|
|
47
47
|
stopRecording: () => Promise<StreamResponse<StopRecordingResponse>>;
|
|
48
48
|
stopTranscription: (request?: StopTranscriptionRequest) => Promise<StreamResponse<StopTranscriptionResponse>>;
|
|
@@ -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, 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';
|
|
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, 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;
|
|
@@ -38,7 +38,6 @@ export declare class VideoApi extends BaseApi {
|
|
|
38
38
|
collectUserFeedback: (request: CollectUserFeedbackRequest & {
|
|
39
39
|
type: string;
|
|
40
40
|
id: string;
|
|
41
|
-
session: string;
|
|
42
41
|
}) => Promise<StreamResponse<CollectUserFeedbackResponse>>;
|
|
43
42
|
goLive: (request: GoLiveRequest & {
|
|
44
43
|
type: string;
|
|
@@ -90,6 +89,10 @@ export declare class VideoApi extends BaseApi {
|
|
|
90
89
|
type: string;
|
|
91
90
|
id: string;
|
|
92
91
|
}) => Promise<StreamResponse<StartClosedCaptionsResponse>>;
|
|
92
|
+
startFrameRecording: (request: StartFrameRecordingRequest & {
|
|
93
|
+
type: string;
|
|
94
|
+
id: string;
|
|
95
|
+
}) => Promise<StreamResponse<StartFrameRecordingResponse>>;
|
|
93
96
|
startRecording: (request: StartRecordingRequest & {
|
|
94
97
|
type: string;
|
|
95
98
|
id: string;
|
|
@@ -111,6 +114,10 @@ export declare class VideoApi extends BaseApi {
|
|
|
111
114
|
type: string;
|
|
112
115
|
id: string;
|
|
113
116
|
}) => Promise<StreamResponse<StopClosedCaptionsResponse>>;
|
|
117
|
+
stopFrameRecording: (request: {
|
|
118
|
+
type: string;
|
|
119
|
+
id: string;
|
|
120
|
+
}) => Promise<StreamResponse<StopFrameRecordingResponse>>;
|
|
114
121
|
stopLive: (request: StopLiveRequest & {
|
|
115
122
|
type: string;
|
|
116
123
|
id: string;
|
package/package.json
CHANGED
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
CheckSQSRequest,
|
|
12
12
|
CheckSQSResponse,
|
|
13
13
|
CreateBlockListRequest,
|
|
14
|
+
CreateBlockListResponse,
|
|
14
15
|
CreateDeviceRequest,
|
|
15
16
|
CreateExternalStorageRequest,
|
|
16
17
|
CreateExternalStorageResponse,
|
|
@@ -59,6 +60,7 @@ import {
|
|
|
59
60
|
UnblockUsersResponse,
|
|
60
61
|
UpdateAppRequest,
|
|
61
62
|
UpdateBlockListRequest,
|
|
63
|
+
UpdateBlockListResponse,
|
|
62
64
|
UpdateExternalStorageRequest,
|
|
63
65
|
UpdateExternalStorageResponse,
|
|
64
66
|
UpdateUsersPartialRequest,
|
|
@@ -95,6 +97,7 @@ export class CommonApi extends BaseApi {
|
|
|
95
97
|
enforce_unique_usernames: request?.enforce_unique_usernames,
|
|
96
98
|
feeds_moderation_enabled: request?.feeds_moderation_enabled,
|
|
97
99
|
feeds_v2_region: request?.feeds_v2_region,
|
|
100
|
+
guest_user_creation_disabled: request?.guest_user_creation_disabled,
|
|
98
101
|
image_moderation_enabled: request?.image_moderation_enabled,
|
|
99
102
|
migrate_permissions_to_v2: request?.migrate_permissions_to_v2,
|
|
100
103
|
moderation_enabled: request?.moderation_enabled,
|
|
@@ -141,10 +144,16 @@ export class CommonApi extends BaseApi {
|
|
|
141
144
|
return { ...response.body, metadata: response.metadata };
|
|
142
145
|
};
|
|
143
146
|
|
|
144
|
-
listBlockLists = async (
|
|
147
|
+
listBlockLists = async (request?: {
|
|
148
|
+
team?: string;
|
|
149
|
+
}): Promise<StreamResponse<ListBlockListResponse>> => {
|
|
150
|
+
const queryParams = {
|
|
151
|
+
team: request?.team,
|
|
152
|
+
};
|
|
153
|
+
|
|
145
154
|
const response = await this.sendRequest<
|
|
146
155
|
StreamResponse<ListBlockListResponse>
|
|
147
|
-
>('GET', '/api/v2/blocklists', undefined,
|
|
156
|
+
>('GET', '/api/v2/blocklists', undefined, queryParams);
|
|
148
157
|
|
|
149
158
|
decoders.ListBlockListResponse?.(response.body);
|
|
150
159
|
|
|
@@ -153,29 +162,30 @@ export class CommonApi extends BaseApi {
|
|
|
153
162
|
|
|
154
163
|
createBlockList = async (
|
|
155
164
|
request: CreateBlockListRequest,
|
|
156
|
-
): Promise<StreamResponse<
|
|
165
|
+
): Promise<StreamResponse<CreateBlockListResponse>> => {
|
|
157
166
|
const body = {
|
|
158
167
|
name: request?.name,
|
|
159
168
|
words: request?.words,
|
|
169
|
+
team: request?.team,
|
|
160
170
|
type: request?.type,
|
|
161
171
|
};
|
|
162
172
|
|
|
163
|
-
const response = await this.sendRequest<
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
undefined,
|
|
167
|
-
undefined,
|
|
168
|
-
body,
|
|
169
|
-
);
|
|
173
|
+
const response = await this.sendRequest<
|
|
174
|
+
StreamResponse<CreateBlockListResponse>
|
|
175
|
+
>('POST', '/api/v2/blocklists', undefined, undefined, body);
|
|
170
176
|
|
|
171
|
-
decoders.
|
|
177
|
+
decoders.CreateBlockListResponse?.(response.body);
|
|
172
178
|
|
|
173
179
|
return { ...response.body, metadata: response.metadata };
|
|
174
180
|
};
|
|
175
181
|
|
|
176
182
|
deleteBlockList = async (request: {
|
|
177
183
|
name: string;
|
|
184
|
+
team?: string;
|
|
178
185
|
}): Promise<StreamResponse<Response>> => {
|
|
186
|
+
const queryParams = {
|
|
187
|
+
team: request?.team,
|
|
188
|
+
};
|
|
179
189
|
const pathParams = {
|
|
180
190
|
name: request?.name,
|
|
181
191
|
};
|
|
@@ -184,7 +194,7 @@ export class CommonApi extends BaseApi {
|
|
|
184
194
|
'DELETE',
|
|
185
195
|
'/api/v2/blocklists/{name}',
|
|
186
196
|
pathParams,
|
|
187
|
-
|
|
197
|
+
queryParams,
|
|
188
198
|
);
|
|
189
199
|
|
|
190
200
|
decoders.Response?.(response.body);
|
|
@@ -194,14 +204,18 @@ export class CommonApi extends BaseApi {
|
|
|
194
204
|
|
|
195
205
|
getBlockList = async (request: {
|
|
196
206
|
name: string;
|
|
207
|
+
team?: string;
|
|
197
208
|
}): Promise<StreamResponse<GetBlockListResponse>> => {
|
|
209
|
+
const queryParams = {
|
|
210
|
+
team: request?.team,
|
|
211
|
+
};
|
|
198
212
|
const pathParams = {
|
|
199
213
|
name: request?.name,
|
|
200
214
|
};
|
|
201
215
|
|
|
202
216
|
const response = await this.sendRequest<
|
|
203
217
|
StreamResponse<GetBlockListResponse>
|
|
204
|
-
>('GET', '/api/v2/blocklists/{name}', pathParams,
|
|
218
|
+
>('GET', '/api/v2/blocklists/{name}', pathParams, queryParams);
|
|
205
219
|
|
|
206
220
|
decoders.GetBlockListResponse?.(response.body);
|
|
207
221
|
|
|
@@ -210,23 +224,20 @@ export class CommonApi extends BaseApi {
|
|
|
210
224
|
|
|
211
225
|
updateBlockList = async (
|
|
212
226
|
request: UpdateBlockListRequest & { name: string },
|
|
213
|
-
): Promise<StreamResponse<
|
|
227
|
+
): Promise<StreamResponse<UpdateBlockListResponse>> => {
|
|
214
228
|
const pathParams = {
|
|
215
229
|
name: request?.name,
|
|
216
230
|
};
|
|
217
231
|
const body = {
|
|
232
|
+
team: request?.team,
|
|
218
233
|
words: request?.words,
|
|
219
234
|
};
|
|
220
235
|
|
|
221
|
-
const response = await this.sendRequest<
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
pathParams,
|
|
225
|
-
undefined,
|
|
226
|
-
body,
|
|
227
|
-
);
|
|
236
|
+
const response = await this.sendRequest<
|
|
237
|
+
StreamResponse<UpdateBlockListResponse>
|
|
238
|
+
>('PUT', '/api/v2/blocklists/{name}', pathParams, undefined, body);
|
|
228
239
|
|
|
229
|
-
decoders.
|
|
240
|
+
decoders.UpdateBlockListResponse?.(response.body);
|
|
230
241
|
|
|
231
242
|
return { ...response.body, metadata: response.metadata };
|
|
232
243
|
};
|
|
@@ -505,6 +505,13 @@ decoders.ConfigResponse = (input?: Record<string, any>) => {
|
|
|
505
505
|
return decode(typeMappings, input);
|
|
506
506
|
};
|
|
507
507
|
|
|
508
|
+
decoders.CreateBlockListResponse = (input?: Record<string, any>) => {
|
|
509
|
+
const typeMappings: TypeMapping = {
|
|
510
|
+
blocklist: { type: 'BlockListResponse', isSingle: true },
|
|
511
|
+
};
|
|
512
|
+
return decode(typeMappings, input);
|
|
513
|
+
};
|
|
514
|
+
|
|
508
515
|
decoders.CreateCallTypeResponse = (input?: Record<string, any>) => {
|
|
509
516
|
const typeMappings: TypeMapping = {
|
|
510
517
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1860,6 +1867,13 @@ decoders.UnreadCountsThread = (input?: Record<string, any>) => {
|
|
|
1860
1867
|
return decode(typeMappings, input);
|
|
1861
1868
|
};
|
|
1862
1869
|
|
|
1870
|
+
decoders.UpdateBlockListResponse = (input?: Record<string, any>) => {
|
|
1871
|
+
const typeMappings: TypeMapping = {
|
|
1872
|
+
blocklist: { type: 'BlockListResponse', isSingle: true },
|
|
1873
|
+
};
|
|
1874
|
+
return decode(typeMappings, input);
|
|
1875
|
+
};
|
|
1876
|
+
|
|
1863
1877
|
decoders.UpdateCallMembersResponse = (input?: Record<string, any>) => {
|
|
1864
1878
|
const typeMappings: TypeMapping = {
|
|
1865
1879
|
members: { type: 'MemberResponse', isSingle: false },
|