@stream-io/node-sdk 0.7.49 → 0.7.50
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 +92 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +92 -1
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/chat/ChatApi.d.ts +5 -1
- package/dist/src/gen/common/CommonApi.d.ts +5 -1
- package/dist/src/gen/models/index.d.ts +183 -15
- package/dist/src/gen/moderation/ModerationApi.d.ts +3 -1
- package/package.json +1 -1
- package/src/gen/chat/ChatApi.ts +93 -0
- package/src/gen/common/CommonApi.ts +70 -0
- package/src/gen/model-decoders/decoders.ts +11 -0
- package/src/gen/models/index.ts +230 -16
- package/src/gen/moderation/ModerationApi.ts +58 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApiClient, StreamResponse } from '../../gen-imports';
|
|
2
|
-
import { CampaignResponse, CastPollVoteRequest, ChannelBatchUpdateRequest, ChannelBatchUpdateResponse, ChannelGetOrCreateRequest, ChannelStateResponse, CommitMessageRequest, CreateChannelTypeRequest, CreateChannelTypeResponse, CreateCommandRequest, CreateCommandResponse, CreateReminderRequest, DeleteChannelResponse, DeleteChannelsRequest, DeleteChannelsResponse, DeleteCommandResponse, DeleteMessageResponse, DeleteReactionResponse, DeleteReminderResponse, DeleteSegmentTargetsRequest, EventResponse, ExportChannelsRequest, ExportChannelsResponse, GetCampaignResponse, GetChannelTypeResponse, GetCommandResponse, GetDraftResponse, GetManyMessagesResponse, GetMessageResponse, GetReactionsResponse, GetRepliesResponse, GetSegmentResponse, GetThreadResponse, HideChannelRequest, HideChannelResponse, ListChannelTypesResponse, ListCommandsResponse, MarkChannelsReadRequest, MarkDeliveredRequest, MarkDeliveredResponse, MarkReadRequest, MarkReadResponse, MarkUnreadRequest, MembersResponse, MessageActionRequest, MessageActionResponse, MuteChannelRequest, MuteChannelResponse, PollVoteResponse, QueryBannedUsersPayload, QueryBannedUsersResponse, QueryCampaignsRequest, QueryCampaignsResponse, QueryChannelsRequest, QueryChannelsResponse, QueryDraftsRequest, QueryDraftsResponse, QueryFutureChannelBansPayload, QueryFutureChannelBansResponse, QueryMembersPayload, QueryMessageFlagsPayload, QueryMessageFlagsResponse, QueryMessageHistoryRequest, QueryMessageHistoryResponse, QueryReactionsRequest, QueryReactionsResponse, QueryRemindersRequest, QueryRemindersResponse, QuerySegmentTargetsRequest, QuerySegmentTargetsResponse, QuerySegmentsRequest, QuerySegmentsResponse, QueryTeamUsageStatsRequest, QueryTeamUsageStatsResponse, QueryThreadsRequest, QueryThreadsResponse, ReminderResponseData, Response, SearchPayload, SearchResponse, SendEventRequest, SendMessageRequest, SendMessageResponse, SendReactionRequest, SendReactionResponse, SendUserCustomEventRequest, ShowChannelRequest, ShowChannelResponse, SortParamRequest, StartCampaignRequest, StartCampaignResponse, StopCampaignRequest, TranslateMessageRequest, TruncateChannelRequest, TruncateChannelResponse, UndeleteMessageRequest, UndeleteMessageResponse, UnmuteChannelRequest, UnmuteResponse, UnreadCountsBatchRequest, UnreadCountsBatchResponse, UpdateChannelPartialRequest, UpdateChannelPartialResponse, UpdateChannelRequest, UpdateChannelResponse, UpdateChannelTypeRequest, UpdateChannelTypeResponse, UpdateCommandRequest, UpdateCommandResponse, UpdateMemberPartialRequest, UpdateMemberPartialResponse, UpdateMessagePartialRequest, UpdateMessagePartialResponse, UpdateMessageRequest, UpdateMessageResponse, UpdateReminderRequest, UpdateReminderResponse, UpdateThreadPartialRequest, UpdateThreadPartialResponse, UploadChannelFileRequest, UploadChannelFileResponse, UploadChannelRequest, UploadChannelResponse, WrappedUnreadCountsResponse } from '../models';
|
|
2
|
+
import { CampaignResponse, CastPollVoteRequest, ChannelBatchUpdateRequest, ChannelBatchUpdateResponse, ChannelGetOrCreateRequest, ChannelStateResponse, CommitMessageRequest, CreateChannelTypeRequest, CreateChannelTypeResponse, CreateCommandRequest, CreateCommandResponse, CreateReminderRequest, DeleteChannelResponse, DeleteChannelsRequest, DeleteChannelsResponse, DeleteCommandResponse, DeleteMessageResponse, DeleteReactionResponse, DeleteReminderResponse, DeleteRetentionPolicyRequest, DeleteRetentionPolicyResponse, DeleteSegmentTargetsRequest, EventResponse, ExportChannelsRequest, ExportChannelsResponse, GetCampaignResponse, GetChannelTypeResponse, GetCommandResponse, GetDraftResponse, GetManyMessagesResponse, GetMessageResponse, GetReactionsResponse, GetRepliesResponse, GetRetentionPolicyResponse, GetRetentionPolicyRunsRequest, GetRetentionPolicyRunsResponse, GetSegmentResponse, GetThreadResponse, HideChannelRequest, HideChannelResponse, ListChannelTypesResponse, ListCommandsResponse, MarkChannelsReadRequest, MarkDeliveredRequest, MarkDeliveredResponse, MarkReadRequest, MarkReadResponse, MarkUnreadRequest, MembersResponse, MessageActionRequest, MessageActionResponse, MuteChannelRequest, MuteChannelResponse, PollVoteResponse, QueryBannedUsersPayload, QueryBannedUsersResponse, QueryCampaignsRequest, QueryCampaignsResponse, QueryChannelsRequest, QueryChannelsResponse, QueryDraftsRequest, QueryDraftsResponse, QueryFutureChannelBansPayload, QueryFutureChannelBansResponse, QueryMembersPayload, QueryMessageFlagsPayload, QueryMessageFlagsResponse, QueryMessageHistoryRequest, QueryMessageHistoryResponse, QueryReactionsRequest, QueryReactionsResponse, QueryRemindersRequest, QueryRemindersResponse, QuerySegmentTargetsRequest, QuerySegmentTargetsResponse, QuerySegmentsRequest, QuerySegmentsResponse, QueryTeamUsageStatsRequest, QueryTeamUsageStatsResponse, QueryThreadsRequest, QueryThreadsResponse, ReminderResponseData, Response, SearchPayload, SearchResponse, SendEventRequest, SendMessageRequest, SendMessageResponse, SendReactionRequest, SendReactionResponse, SendUserCustomEventRequest, SetRetentionPolicyRequest, SetRetentionPolicyResponse, ShowChannelRequest, ShowChannelResponse, SortParamRequest, StartCampaignRequest, StartCampaignResponse, StopCampaignRequest, TranslateMessageRequest, TruncateChannelRequest, TruncateChannelResponse, UndeleteMessageRequest, UndeleteMessageResponse, UnmuteChannelRequest, UnmuteResponse, UnreadCountsBatchRequest, UnreadCountsBatchResponse, UpdateChannelPartialRequest, UpdateChannelPartialResponse, UpdateChannelRequest, UpdateChannelResponse, UpdateChannelTypeRequest, UpdateChannelTypeResponse, UpdateCommandRequest, UpdateCommandResponse, UpdateMemberPartialRequest, UpdateMemberPartialResponse, UpdateMessagePartialRequest, UpdateMessagePartialResponse, UpdateMessageRequest, UpdateMessageResponse, UpdateReminderRequest, UpdateReminderResponse, UpdateThreadPartialRequest, UpdateThreadPartialResponse, UploadChannelFileRequest, UploadChannelFileResponse, UploadChannelRequest, UploadChannelResponse, WrappedUnreadCountsResponse } from '../models';
|
|
3
3
|
export declare class ChatApi {
|
|
4
4
|
readonly apiClient: ApiClient;
|
|
5
5
|
constructor(apiClient: ApiClient);
|
|
@@ -228,6 +228,10 @@ export declare class ChatApi {
|
|
|
228
228
|
payload?: QueryFutureChannelBansPayload;
|
|
229
229
|
}): Promise<StreamResponse<QueryFutureChannelBansResponse>>;
|
|
230
230
|
queryReminders(request?: QueryRemindersRequest): Promise<StreamResponse<QueryRemindersResponse>>;
|
|
231
|
+
getRetentionPolicy(): Promise<StreamResponse<GetRetentionPolicyResponse>>;
|
|
232
|
+
setRetentionPolicy(request: SetRetentionPolicyRequest): Promise<StreamResponse<SetRetentionPolicyResponse>>;
|
|
233
|
+
deleteRetentionPolicy(request: DeleteRetentionPolicyRequest): Promise<StreamResponse<DeleteRetentionPolicyResponse>>;
|
|
234
|
+
getRetentionPolicyRuns(request?: GetRetentionPolicyRunsRequest): Promise<StreamResponse<GetRetentionPolicyRunsResponse>>;
|
|
231
235
|
search(request?: {
|
|
232
236
|
payload?: SearchPayload;
|
|
233
237
|
}): Promise<StreamResponse<SearchResponse>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApiClient, StreamResponse } from '../../gen-imports';
|
|
2
|
-
import { AddUserGroupMembersRequest, AddUserGroupMembersResponse, BlockUsersRequest, BlockUsersResponse, CheckExternalStorageResponse, CheckPushRequest, CheckPushResponse, CheckSNSRequest, CheckSNSResponse, CheckSQSRequest, CheckSQSResponse, CreateBlockListRequest, CreateBlockListResponse, CreateDeviceRequest, CreateExternalStorageRequest, CreateExternalStorageResponse, CreateGuestRequest, CreateGuestResponse, CreateImportRequest, CreateImportResponse, CreateImportURLRequest, CreateImportURLResponse, CreateImportV2TaskRequest, CreateImportV2TaskResponse, CreatePollOptionRequest, CreatePollRequest, CreateRoleRequest, CreateRoleResponse, CreateUserGroupRequest, CreateUserGroupResponse, DeactivateUserRequest, DeactivateUserResponse, DeactivateUsersRequest, DeactivateUsersResponse, DeleteExternalStorageResponse, DeleteImportV2TaskResponse, DeleteUsersRequest, DeleteUsersResponse, ExportUserResponse, ExportUsersRequest, ExportUsersResponse, FileUploadRequest, FileUploadResponse, GetApplicationResponse, GetBlockListResponse, GetBlockedUsersResponse, GetCustomPermissionResponse, GetImportResponse, GetImportV2TaskResponse, GetOGResponse, GetPushTemplatesResponse, GetRateLimitsResponse, GetTaskResponse, GetUserGroupResponse, ImageUploadRequest, ImageUploadResponse, ListBlockListResponse, ListDevicesResponse, ListExternalStorageResponse, ListImportV2TasksResponse, ListImportsResponse, ListPermissionsResponse, ListPushProvidersResponse, ListRolesResponse, ListUserGroupsResponse, PollOptionResponse, PollResponse, PollVotesResponse, QueryPollVotesRequest, QueryPollsRequest, QueryPollsResponse, QueryUsersPayload, QueryUsersResponse, ReactivateUserRequest, ReactivateUserResponse, ReactivateUsersRequest, ReactivateUsersResponse, RemoveUserGroupMembersRequest, RemoveUserGroupMembersResponse, Response, RestoreUsersRequest, SearchUserGroupsResponse, SharedLocationResponse, SharedLocationsResponse, UnblockUsersRequest, UnblockUsersResponse, UpdateAppRequest, UpdateBlockListRequest, UpdateBlockListResponse, UpdateExternalStorageRequest, UpdateExternalStorageResponse, UpdateLiveLocationRequest, UpdatePollOptionRequest, UpdatePollPartialRequest, UpdatePollRequest, UpdateUserGroupRequest, UpdateUserGroupResponse, UpdateUsersPartialRequest, UpdateUsersRequest, UpdateUsersResponse, UpsertPushPreferencesRequest, UpsertPushPreferencesResponse, UpsertPushProviderRequest, UpsertPushProviderResponse, UpsertPushTemplateRequest, UpsertPushTemplateResponse } from '../models';
|
|
2
|
+
import { AddUserGroupMembersRequest, AddUserGroupMembersResponse, BlockUsersRequest, BlockUsersResponse, CheckExternalStorageResponse, CheckPushRequest, CheckPushResponse, CheckSNSRequest, CheckSNSResponse, CheckSQSRequest, CheckSQSResponse, CreateBlockListRequest, CreateBlockListResponse, CreateDeviceRequest, CreateExternalStorageRequest, CreateExternalStorageResponse, CreateGuestRequest, CreateGuestResponse, CreateImportRequest, CreateImportResponse, CreateImportURLRequest, CreateImportURLResponse, CreateImportV2TaskRequest, CreateImportV2TaskResponse, CreatePollOptionRequest, CreatePollRequest, CreateRoleRequest, CreateRoleResponse, CreateUserGroupRequest, CreateUserGroupResponse, DeactivateUserRequest, DeactivateUserResponse, DeactivateUsersRequest, DeactivateUsersResponse, DeleteExternalStorageResponse, DeleteImportV2TaskResponse, DeleteUsersRequest, DeleteUsersResponse, ExportUserResponse, ExportUsersRequest, ExportUsersResponse, FileUploadRequest, FileUploadResponse, GetApplicationResponse, GetBlockListResponse, GetBlockedUsersResponse, GetCustomPermissionResponse, GetExternalStorageResponse, GetImportResponse, GetImportV2TaskResponse, GetOGResponse, GetPushTemplatesResponse, GetRateLimitsResponse, GetTaskResponse, GetUserGroupResponse, ImageUploadRequest, ImageUploadResponse, ListBlockListResponse, ListDevicesResponse, ListExternalStorageResponse, ListImportV2TasksResponse, ListImportsResponse, ListPermissionsResponse, ListPushProvidersResponse, ListRolesResponse, ListUserGroupsResponse, PollOptionResponse, PollResponse, PollVotesResponse, QueryPollVotesRequest, QueryPollsRequest, QueryPollsResponse, QueryUsersPayload, QueryUsersResponse, ReactivateUserRequest, ReactivateUserResponse, ReactivateUsersRequest, ReactivateUsersResponse, RemoveUserGroupMembersRequest, RemoveUserGroupMembersResponse, Response, RestoreUsersRequest, SearchUserGroupsResponse, SharedLocationResponse, SharedLocationsResponse, UnblockUsersRequest, UnblockUsersResponse, UpdateAppRequest, UpdateBlockListRequest, UpdateBlockListResponse, UpdateExternalStorageRequest, UpdateExternalStorageResponse, UpdateLiveLocationRequest, UpdatePollOptionRequest, UpdatePollPartialRequest, UpdatePollRequest, UpdateUserGroupRequest, UpdateUserGroupResponse, UpdateUsersPartialRequest, UpdateUsersRequest, UpdateUsersResponse, UpsertExternalStorageRequest, UpsertExternalStorageResponse, UpsertPushPreferencesRequest, UpsertPushPreferencesResponse, UpsertPushProviderRequest, UpsertPushProviderResponse, UpsertPushTemplateRequest, UpsertPushTemplateResponse, ValidateExternalStorageResponse } from '../models';
|
|
3
3
|
export declare class CommonApi {
|
|
4
4
|
readonly apiClient: ApiClient;
|
|
5
5
|
constructor(apiClient: ApiClient);
|
|
@@ -51,6 +51,10 @@ export declare class CommonApi {
|
|
|
51
51
|
state?: number;
|
|
52
52
|
}): Promise<StreamResponse<ListImportV2TasksResponse>>;
|
|
53
53
|
createImportV2Task(request: CreateImportV2TaskRequest): Promise<StreamResponse<CreateImportV2TaskResponse>>;
|
|
54
|
+
deleteImporterExternalStorage(): Promise<StreamResponse<DeleteExternalStorageResponse>>;
|
|
55
|
+
getImporterExternalStorage(): Promise<StreamResponse<GetExternalStorageResponse>>;
|
|
56
|
+
upsertImporterExternalStorage(request: UpsertExternalStorageRequest): Promise<StreamResponse<UpsertExternalStorageResponse>>;
|
|
57
|
+
validateImporterExternalStorage(): Promise<StreamResponse<ValidateExternalStorageResponse>>;
|
|
54
58
|
deleteImportV2Task(request: {
|
|
55
59
|
id: string;
|
|
56
60
|
}): Promise<StreamResponse<DeleteImportV2TaskResponse>>;
|
|
@@ -463,7 +463,7 @@ export interface ActivityRequest {
|
|
|
463
463
|
feeds: string[];
|
|
464
464
|
/**
|
|
465
465
|
* @deprecated
|
|
466
|
-
* Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
|
|
466
|
+
* Whether to copy custom data to the notification activity (only applies when create_notification_activity is true) Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
|
|
467
467
|
*/
|
|
468
468
|
copy_custom_to_notification?: boolean;
|
|
469
469
|
/**
|
|
@@ -827,7 +827,7 @@ export interface AddActivityRequest {
|
|
|
827
827
|
feeds: string[];
|
|
828
828
|
/**
|
|
829
829
|
* @deprecated
|
|
830
|
-
* Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
|
|
830
|
+
* Whether to copy custom data to the notification activity (only applies when create_notification_activity is true) Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
|
|
831
831
|
*/
|
|
832
832
|
copy_custom_to_notification?: boolean;
|
|
833
833
|
/**
|
|
@@ -941,7 +941,7 @@ export interface AddCommentReactionRequest {
|
|
|
941
941
|
type: string;
|
|
942
942
|
/**
|
|
943
943
|
* @deprecated
|
|
944
|
-
* Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
|
|
944
|
+
* Whether to copy custom data to the notification activity (only applies when create_notification_activity is true) Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
|
|
945
945
|
*/
|
|
946
946
|
copy_custom_to_notification?: boolean;
|
|
947
947
|
/**
|
|
@@ -979,7 +979,7 @@ export interface AddCommentRequest {
|
|
|
979
979
|
comment?: string;
|
|
980
980
|
/**
|
|
981
981
|
* @deprecated
|
|
982
|
-
* Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
|
|
982
|
+
* Whether to copy custom data to the notification activity (only applies when create_notification_activity is true) Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
|
|
983
983
|
*/
|
|
984
984
|
copy_custom_to_notification?: boolean;
|
|
985
985
|
/**
|
|
@@ -1064,7 +1064,7 @@ export interface AddReactionRequest {
|
|
|
1064
1064
|
type: string;
|
|
1065
1065
|
/**
|
|
1066
1066
|
* @deprecated
|
|
1067
|
-
* Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
|
|
1067
|
+
* Whether to copy custom data to the notification activity (only applies when create_notification_activity is true) Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
|
|
1068
1068
|
*/
|
|
1069
1069
|
copy_custom_to_notification?: boolean;
|
|
1070
1070
|
/**
|
|
@@ -1480,6 +1480,10 @@ export interface BackstageSettingsResponse {
|
|
|
1480
1480
|
join_ahead_time_seconds?: number;
|
|
1481
1481
|
}
|
|
1482
1482
|
export interface BanActionRequestPayload {
|
|
1483
|
+
/**
|
|
1484
|
+
* Also ban user from all channels this moderator creates in the future
|
|
1485
|
+
*/
|
|
1486
|
+
ban_from_future_channels?: boolean;
|
|
1483
1487
|
/**
|
|
1484
1488
|
* Ban only from specific channel
|
|
1485
1489
|
*/
|
|
@@ -2069,6 +2073,12 @@ export interface CallIngressResponse {
|
|
|
2069
2073
|
srt: SRTIngress;
|
|
2070
2074
|
whip: WHIPIngress;
|
|
2071
2075
|
}
|
|
2076
|
+
export interface CallLevelEventPayload {
|
|
2077
|
+
event_type: string;
|
|
2078
|
+
timestamp: number;
|
|
2079
|
+
user_id: string;
|
|
2080
|
+
payload?: Record<string, any>;
|
|
2081
|
+
}
|
|
2072
2082
|
export interface CallLiveStartedEvent {
|
|
2073
2083
|
call_cid: string;
|
|
2074
2084
|
created_at: Date;
|
|
@@ -2662,6 +2672,7 @@ export interface CallStatsParticipantCounts {
|
|
|
2662
2672
|
peak_concurrent_users: number;
|
|
2663
2673
|
publishers: number;
|
|
2664
2674
|
sessions: number;
|
|
2675
|
+
call_event_count?: number;
|
|
2665
2676
|
cq_score?: number;
|
|
2666
2677
|
total_participant_duration?: number;
|
|
2667
2678
|
}
|
|
@@ -3903,6 +3914,10 @@ export interface CheckRequest {
|
|
|
3903
3914
|
* Team associated with the configuration
|
|
3904
3915
|
*/
|
|
3905
3916
|
config_team?: string;
|
|
3917
|
+
/**
|
|
3918
|
+
* Original timestamp when the content was produced (for correlating flagged content with source video timeline)
|
|
3919
|
+
*/
|
|
3920
|
+
content_published_at?: Date;
|
|
3906
3921
|
/**
|
|
3907
3922
|
* Whether to run moderation in test mode
|
|
3908
3923
|
*/
|
|
@@ -5942,6 +5957,25 @@ export interface ErrorResult {
|
|
|
5942
5957
|
stacktrace?: string;
|
|
5943
5958
|
version?: string;
|
|
5944
5959
|
}
|
|
5960
|
+
export interface EscalatePayload {
|
|
5961
|
+
/**
|
|
5962
|
+
* Additional context for the reviewer
|
|
5963
|
+
*/
|
|
5964
|
+
notes?: string;
|
|
5965
|
+
/**
|
|
5966
|
+
* Priority of the escalation (low, medium, high)
|
|
5967
|
+
*/
|
|
5968
|
+
priority?: string;
|
|
5969
|
+
/**
|
|
5970
|
+
* Reason for the escalation (from configured escalation_reasons)
|
|
5971
|
+
*/
|
|
5972
|
+
reason?: string;
|
|
5973
|
+
}
|
|
5974
|
+
export interface EscalationMetadata {
|
|
5975
|
+
notes?: string;
|
|
5976
|
+
priority?: string;
|
|
5977
|
+
reason?: string;
|
|
5978
|
+
}
|
|
5945
5979
|
export interface EventHook {
|
|
5946
5980
|
created_at?: Date;
|
|
5947
5981
|
enabled?: boolean;
|
|
@@ -6955,7 +6989,7 @@ export interface FollowRequest {
|
|
|
6955
6989
|
target: string;
|
|
6956
6990
|
/**
|
|
6957
6991
|
* @deprecated
|
|
6958
|
-
* Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
|
|
6992
|
+
* Whether to copy custom data to the notification activity (only applies when create_notification_activity is true) Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
|
|
6959
6993
|
*/
|
|
6960
6994
|
copy_custom_to_notification?: boolean;
|
|
6961
6995
|
/**
|
|
@@ -7335,6 +7369,22 @@ export interface GetEdgesResponse {
|
|
|
7335
7369
|
duration: string;
|
|
7336
7370
|
edges: EdgeResponse[];
|
|
7337
7371
|
}
|
|
7372
|
+
export interface GetExternalStorageAWSS3Response {
|
|
7373
|
+
bucket: string;
|
|
7374
|
+
region: string;
|
|
7375
|
+
role_arn: string;
|
|
7376
|
+
path_prefix?: string;
|
|
7377
|
+
}
|
|
7378
|
+
export interface GetExternalStorageResponse {
|
|
7379
|
+
created_at: Date;
|
|
7380
|
+
/**
|
|
7381
|
+
* Duration of the request in milliseconds
|
|
7382
|
+
*/
|
|
7383
|
+
duration: string;
|
|
7384
|
+
type: string;
|
|
7385
|
+
updated_at: Date;
|
|
7386
|
+
aws_s3?: GetExternalStorageAWSS3Response;
|
|
7387
|
+
}
|
|
7338
7388
|
export interface GetFeedGroupResponse {
|
|
7339
7389
|
duration: string;
|
|
7340
7390
|
feed_group: FeedGroupResponse;
|
|
@@ -7366,6 +7416,23 @@ export interface GetFeedsRateLimitsResponse {
|
|
|
7366
7416
|
*/
|
|
7367
7417
|
web?: Record<string, LimitInfoResponse>;
|
|
7368
7418
|
}
|
|
7419
|
+
export interface GetFlagCountRequest {
|
|
7420
|
+
/**
|
|
7421
|
+
* ID of the user whose content was flagged
|
|
7422
|
+
*/
|
|
7423
|
+
entity_creator_id: string;
|
|
7424
|
+
/**
|
|
7425
|
+
* Optional entity type filter (e.g., stream:chat:v1:message, stream:user)
|
|
7426
|
+
*/
|
|
7427
|
+
entity_type?: string;
|
|
7428
|
+
}
|
|
7429
|
+
export interface GetFlagCountResponse {
|
|
7430
|
+
/**
|
|
7431
|
+
* Total number of flags against the specified user's content
|
|
7432
|
+
*/
|
|
7433
|
+
count: number;
|
|
7434
|
+
duration: string;
|
|
7435
|
+
}
|
|
7369
7436
|
export interface GetFollowSuggestionsResponse {
|
|
7370
7437
|
duration: string;
|
|
7371
7438
|
/**
|
|
@@ -7628,7 +7695,13 @@ export interface GetRetentionPolicyRunsRequest {
|
|
|
7628
7695
|
limit?: number;
|
|
7629
7696
|
next?: string;
|
|
7630
7697
|
prev?: string;
|
|
7698
|
+
/**
|
|
7699
|
+
* Array of sort parameters
|
|
7700
|
+
*/
|
|
7631
7701
|
sort?: SortParamRequest[];
|
|
7702
|
+
/**
|
|
7703
|
+
* Filter conditions to apply to the query
|
|
7704
|
+
*/
|
|
7632
7705
|
filter_conditions?: Record<string, any>;
|
|
7633
7706
|
}
|
|
7634
7707
|
export interface GetRetentionPolicyRunsResponse {
|
|
@@ -9497,6 +9570,10 @@ export interface ModerationActionConfigResponse {
|
|
|
9497
9570
|
* Display order (lower numbers shown first)
|
|
9498
9571
|
*/
|
|
9499
9572
|
order: number;
|
|
9573
|
+
/**
|
|
9574
|
+
* Queue type this action config belongs to
|
|
9575
|
+
*/
|
|
9576
|
+
queue_type?: string;
|
|
9500
9577
|
/**
|
|
9501
9578
|
* Custom data for the action
|
|
9502
9579
|
*/
|
|
@@ -9564,9 +9641,11 @@ export interface ModerationDashboardPreferences {
|
|
|
9564
9641
|
async_review_queue_upsert?: boolean;
|
|
9565
9642
|
disable_audit_logs?: boolean;
|
|
9566
9643
|
disable_flagging_reviewed_entity?: boolean;
|
|
9644
|
+
escalation_queue_enabled?: boolean;
|
|
9567
9645
|
flag_user_on_flagged_content?: boolean;
|
|
9568
9646
|
media_queue_blur_enabled?: boolean;
|
|
9569
9647
|
allowed_moderation_action_reasons?: string[];
|
|
9648
|
+
escalation_reasons?: string[];
|
|
9570
9649
|
keyframe_classifications_map?: Record<string, Record<string, boolean>>;
|
|
9571
9650
|
overview_dashboard?: OverviewDashboardConfig;
|
|
9572
9651
|
}
|
|
@@ -10841,6 +10920,9 @@ export interface QueryAppealsResponse {
|
|
|
10841
10920
|
prev?: string;
|
|
10842
10921
|
}
|
|
10843
10922
|
export interface QueryBannedUsersPayload {
|
|
10923
|
+
/**
|
|
10924
|
+
* Filter conditions to apply to the query
|
|
10925
|
+
*/
|
|
10844
10926
|
filter_conditions: Record<string, any>;
|
|
10845
10927
|
/**
|
|
10846
10928
|
* Whether to exclude expired bans or not
|
|
@@ -10934,7 +11016,13 @@ export interface QueryCallMembersRequest {
|
|
|
10934
11016
|
limit?: number;
|
|
10935
11017
|
next?: string;
|
|
10936
11018
|
prev?: string;
|
|
11019
|
+
/**
|
|
11020
|
+
* Array of sort parameters
|
|
11021
|
+
*/
|
|
10937
11022
|
sort?: SortParamRequest[];
|
|
11023
|
+
/**
|
|
11024
|
+
* Filter conditions to apply to the query
|
|
11025
|
+
*/
|
|
10938
11026
|
filter_conditions?: Record<string, any>;
|
|
10939
11027
|
}
|
|
10940
11028
|
export interface QueryCallMembersResponse {
|
|
@@ -10962,6 +11050,9 @@ export interface QueryCallParticipantSessionsResponse {
|
|
|
10962
11050
|
session?: CallSessionResponse;
|
|
10963
11051
|
}
|
|
10964
11052
|
export interface QueryCallParticipantsRequest {
|
|
11053
|
+
/**
|
|
11054
|
+
* Filter conditions to apply to the query
|
|
11055
|
+
*/
|
|
10965
11056
|
filter_conditions?: Record<string, any>;
|
|
10966
11057
|
}
|
|
10967
11058
|
export interface QueryCallParticipantsResponse {
|
|
@@ -10990,6 +11081,7 @@ export interface QueryCallSessionParticipantStatsResponse {
|
|
|
10990
11081
|
next?: string;
|
|
10991
11082
|
prev?: string;
|
|
10992
11083
|
tmp_data_source?: string;
|
|
11084
|
+
call_events?: CallLevelEventPayload[];
|
|
10993
11085
|
}
|
|
10994
11086
|
export interface QueryCallSessionParticipantStatsTimelineResponse {
|
|
10995
11087
|
call_id: string;
|
|
@@ -11026,7 +11118,13 @@ export interface QueryCallStatsRequest {
|
|
|
11026
11118
|
limit?: number;
|
|
11027
11119
|
next?: string;
|
|
11028
11120
|
prev?: string;
|
|
11121
|
+
/**
|
|
11122
|
+
* Array of sort parameters
|
|
11123
|
+
*/
|
|
11029
11124
|
sort?: SortParamRequest[];
|
|
11125
|
+
/**
|
|
11126
|
+
* Filter conditions to apply to the query
|
|
11127
|
+
*/
|
|
11030
11128
|
filter_conditions?: Record<string, any>;
|
|
11031
11129
|
}
|
|
11032
11130
|
export interface QueryCallStatsResponse {
|
|
@@ -11046,6 +11144,9 @@ export interface QueryCallsRequest {
|
|
|
11046
11144
|
* Array of sort parameters
|
|
11047
11145
|
*/
|
|
11048
11146
|
sort?: SortParamRequest[];
|
|
11147
|
+
/**
|
|
11148
|
+
* Filter conditions to apply to the query
|
|
11149
|
+
*/
|
|
11049
11150
|
filter_conditions?: Record<string, any>;
|
|
11050
11151
|
}
|
|
11051
11152
|
export interface QueryCallsResponse {
|
|
@@ -11104,6 +11205,9 @@ export interface QueryChannelsRequest {
|
|
|
11104
11205
|
* List of sort parameters
|
|
11105
11206
|
*/
|
|
11106
11207
|
sort?: SortParamRequest[];
|
|
11208
|
+
/**
|
|
11209
|
+
* Filter conditions to apply to the query
|
|
11210
|
+
*/
|
|
11107
11211
|
filter_conditions?: Record<string, any>;
|
|
11108
11212
|
/**
|
|
11109
11213
|
* Values to interpolate into the predefined filter template
|
|
@@ -11393,12 +11497,18 @@ export interface QueryFutureChannelBansResponse {
|
|
|
11393
11497
|
}
|
|
11394
11498
|
export interface QueryMembersPayload {
|
|
11395
11499
|
type: string;
|
|
11500
|
+
/**
|
|
11501
|
+
* Filter conditions to apply to the query
|
|
11502
|
+
*/
|
|
11396
11503
|
filter_conditions: Record<string, any>;
|
|
11397
11504
|
id?: string;
|
|
11398
11505
|
limit?: number;
|
|
11399
11506
|
offset?: number;
|
|
11400
11507
|
user_id?: string;
|
|
11401
11508
|
members?: ChannelMemberRequest[];
|
|
11509
|
+
/**
|
|
11510
|
+
* Array of sort parameters
|
|
11511
|
+
*/
|
|
11402
11512
|
sort?: SortParamRequest[];
|
|
11403
11513
|
user?: UserRequest;
|
|
11404
11514
|
}
|
|
@@ -11435,7 +11545,13 @@ export interface QueryMessageFlagsPayload {
|
|
|
11435
11545
|
*/
|
|
11436
11546
|
show_deleted_messages?: boolean;
|
|
11437
11547
|
user_id?: string;
|
|
11548
|
+
/**
|
|
11549
|
+
* Array of sort parameters
|
|
11550
|
+
*/
|
|
11438
11551
|
sort?: SortParamRequest[];
|
|
11552
|
+
/**
|
|
11553
|
+
* Filter conditions to apply to the query
|
|
11554
|
+
*/
|
|
11439
11555
|
filter_conditions?: Record<string, any>;
|
|
11440
11556
|
user?: UserRequest;
|
|
11441
11557
|
}
|
|
@@ -11876,7 +11992,13 @@ export interface QueryUserFeedbackRequest {
|
|
|
11876
11992
|
limit?: number;
|
|
11877
11993
|
next?: string;
|
|
11878
11994
|
prev?: string;
|
|
11995
|
+
/**
|
|
11996
|
+
* Array of sort parameters
|
|
11997
|
+
*/
|
|
11879
11998
|
sort?: SortParamRequest[];
|
|
11999
|
+
/**
|
|
12000
|
+
* Filter conditions to apply to the query
|
|
12001
|
+
*/
|
|
11880
12002
|
filter_conditions?: Record<string, any>;
|
|
11881
12003
|
}
|
|
11882
12004
|
export interface QueryUserFeedbackResponse {
|
|
@@ -11889,12 +12011,18 @@ export interface QueryUserFeedbackResponse {
|
|
|
11889
12011
|
prev?: string;
|
|
11890
12012
|
}
|
|
11891
12013
|
export interface QueryUsersPayload {
|
|
12014
|
+
/**
|
|
12015
|
+
* Filter conditions to apply to the query
|
|
12016
|
+
*/
|
|
11892
12017
|
filter_conditions: Record<string, any>;
|
|
11893
12018
|
include_deactivated_users?: boolean;
|
|
11894
12019
|
limit?: number;
|
|
11895
12020
|
offset?: number;
|
|
11896
12021
|
presence?: boolean;
|
|
11897
12022
|
user_id?: string;
|
|
12023
|
+
/**
|
|
12024
|
+
* Array of sort parameters
|
|
12025
|
+
*/
|
|
11898
12026
|
sort?: SortParamRequest[];
|
|
11899
12027
|
user?: UserRequest;
|
|
11900
12028
|
}
|
|
@@ -12658,6 +12786,10 @@ export interface ReviewQueueItemResponse {
|
|
|
12658
12786
|
* Type of entity being reviewed
|
|
12659
12787
|
*/
|
|
12660
12788
|
entity_type: string;
|
|
12789
|
+
/**
|
|
12790
|
+
* Whether the item has been escalated
|
|
12791
|
+
*/
|
|
12792
|
+
escalated: boolean;
|
|
12661
12793
|
flags_count: number;
|
|
12662
12794
|
/**
|
|
12663
12795
|
* Unique identifier of the review queue item
|
|
@@ -12709,6 +12841,14 @@ export interface ReviewQueueItemResponse {
|
|
|
12709
12841
|
* ID of who created the entity
|
|
12710
12842
|
*/
|
|
12711
12843
|
entity_creator_id?: string;
|
|
12844
|
+
/**
|
|
12845
|
+
* When the item was escalated
|
|
12846
|
+
*/
|
|
12847
|
+
escalated_at?: Date;
|
|
12848
|
+
/**
|
|
12849
|
+
* ID of the moderator who escalated the item
|
|
12850
|
+
*/
|
|
12851
|
+
escalated_by?: string;
|
|
12712
12852
|
/**
|
|
12713
12853
|
* When the item was reviewed
|
|
12714
12854
|
*/
|
|
@@ -12722,6 +12862,7 @@ export interface ReviewQueueItemResponse {
|
|
|
12722
12862
|
assigned_to?: UserResponse;
|
|
12723
12863
|
call?: CallResponse;
|
|
12724
12864
|
entity_creator?: EntityCreatorResponse;
|
|
12865
|
+
escalation_metadata?: EscalationMetadata;
|
|
12725
12866
|
feeds_v2_activity?: EnrichedActivity;
|
|
12726
12867
|
feeds_v2_reaction?: Reaction;
|
|
12727
12868
|
feeds_v3_activity?: FeedsV3ActivityResponse;
|
|
@@ -13457,8 +13598,8 @@ export interface SessionWarningResponse {
|
|
|
13457
13598
|
time?: Date;
|
|
13458
13599
|
}
|
|
13459
13600
|
export interface SetRetentionPolicyRequest {
|
|
13601
|
+
max_age_hours: number;
|
|
13460
13602
|
policy: 'old-messages' | 'inactive-channels';
|
|
13461
|
-
max_age_hours?: number;
|
|
13462
13603
|
}
|
|
13463
13604
|
export interface SetRetentionPolicyResponse {
|
|
13464
13605
|
/**
|
|
@@ -13804,9 +13945,9 @@ export interface StoriesFeedUpdatedEvent {
|
|
|
13804
13945
|
}
|
|
13805
13946
|
export interface SubmitActionRequest {
|
|
13806
13947
|
/**
|
|
13807
|
-
* Type of moderation action to perform. One of: mark_reviewed, delete_message, delete_activity, delete_comment, delete_reaction, ban, custom, unban, restore, delete_user, unblock, block, shadow_block, unmask, kick_user, end_call
|
|
13948
|
+
* Type of moderation action to perform. One of: mark_reviewed, delete_message, delete_activity, delete_comment, delete_reaction, ban, custom, unban, restore, delete_user, unblock, block, shadow_block, unmask, kick_user, end_call, escalate, de_escalate
|
|
13808
13949
|
*/
|
|
13809
|
-
action_type: 'flag' | 'mark_reviewed' | 'delete_message' | 'delete_activity' | 'delete_comment' | 'delete_reaction' | 'ban' | 'custom' | 'unban' | 'restore' | 'delete_user' | 'unblock' | 'block' | 'shadow_block' | 'unmask' | 'kick_user' | 'end_call' | 'reject_appeal';
|
|
13950
|
+
action_type: 'flag' | 'mark_reviewed' | 'delete_message' | 'delete_activity' | 'delete_comment' | 'delete_reaction' | 'ban' | 'custom' | 'unban' | 'restore' | 'delete_user' | 'unblock' | 'block' | 'shadow_block' | 'unmask' | 'kick_user' | 'end_call' | 'reject_appeal' | 'escalate' | 'de_escalate';
|
|
13810
13951
|
/**
|
|
13811
13952
|
* UUID of the appeal to act on (required for reject_appeal, optional for other actions)
|
|
13812
13953
|
*/
|
|
@@ -13824,6 +13965,7 @@ export interface SubmitActionRequest {
|
|
|
13824
13965
|
delete_message?: DeleteMessageRequestPayload;
|
|
13825
13966
|
delete_reaction?: DeleteReactionRequestPayload;
|
|
13826
13967
|
delete_user?: DeleteUserRequestPayload;
|
|
13968
|
+
escalate?: EscalatePayload;
|
|
13827
13969
|
flag?: FlagRequest;
|
|
13828
13970
|
mark_reviewed?: MarkReviewedRequestPayload;
|
|
13829
13971
|
reject_appeal?: RejectAppealRequestPayload;
|
|
@@ -14260,6 +14402,10 @@ export interface UnbanActionRequestPayload {
|
|
|
14260
14402
|
* Reason for the appeal decision
|
|
14261
14403
|
*/
|
|
14262
14404
|
decision_reason?: string;
|
|
14405
|
+
/**
|
|
14406
|
+
* Also remove the future channels ban for this user
|
|
14407
|
+
*/
|
|
14408
|
+
remove_future_channels_ban?: boolean;
|
|
14263
14409
|
}
|
|
14264
14410
|
export interface UnbanRequest {
|
|
14265
14411
|
/**
|
|
@@ -14470,7 +14616,7 @@ export interface UpdateActivityPartialChangeRequest {
|
|
|
14470
14616
|
activity_id: string;
|
|
14471
14617
|
/**
|
|
14472
14618
|
* @deprecated
|
|
14473
|
-
* Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
|
|
14619
|
+
* Whether to copy custom data to the notification activity (only applies when handle_mention_notifications creates notifications) Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
|
|
14474
14620
|
*/
|
|
14475
14621
|
copy_custom_to_notification?: boolean;
|
|
14476
14622
|
/**
|
|
@@ -14489,7 +14635,7 @@ export interface UpdateActivityPartialChangeRequest {
|
|
|
14489
14635
|
export interface UpdateActivityPartialRequest {
|
|
14490
14636
|
/**
|
|
14491
14637
|
* @deprecated
|
|
14492
|
-
* Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
|
|
14638
|
+
* Whether to copy custom data to the notification activity (only applies when handle_mention_notifications creates notifications) Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
|
|
14493
14639
|
*/
|
|
14494
14640
|
copy_custom_to_notification?: boolean;
|
|
14495
14641
|
/**
|
|
@@ -14522,7 +14668,7 @@ export interface UpdateActivityPartialResponse {
|
|
|
14522
14668
|
export interface UpdateActivityRequest {
|
|
14523
14669
|
/**
|
|
14524
14670
|
* @deprecated
|
|
14525
|
-
* Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
|
|
14671
|
+
* Whether to copy custom data to the notification activity (only applies when handle_mention_notifications creates notifications) Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
|
|
14526
14672
|
*/
|
|
14527
14673
|
copy_custom_to_notification?: boolean;
|
|
14528
14674
|
/**
|
|
@@ -14994,7 +15140,7 @@ export interface UpdateCommandResponse {
|
|
|
14994
15140
|
export interface UpdateCommentPartialRequest {
|
|
14995
15141
|
/**
|
|
14996
15142
|
* @deprecated
|
|
14997
|
-
* Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
|
|
15143
|
+
* Whether to copy custom data to notification activities Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
|
|
14998
15144
|
*/
|
|
14999
15145
|
copy_custom_to_notification?: boolean;
|
|
15000
15146
|
/**
|
|
@@ -15031,7 +15177,7 @@ export interface UpdateCommentRequest {
|
|
|
15031
15177
|
comment?: string;
|
|
15032
15178
|
/**
|
|
15033
15179
|
* @deprecated
|
|
15034
|
-
* Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
|
|
15180
|
+
* Whether to copy custom data to the notification activity (only applies when handle_mention_notifications creates notifications) Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
|
|
15035
15181
|
*/
|
|
15036
15182
|
copy_custom_to_notification?: boolean;
|
|
15037
15183
|
/**
|
|
@@ -15198,7 +15344,7 @@ export interface UpdateFollowRequest {
|
|
|
15198
15344
|
target: string;
|
|
15199
15345
|
/**
|
|
15200
15346
|
* @deprecated
|
|
15201
|
-
* Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
|
|
15347
|
+
* Whether to copy custom data to the notification activity (only applies when create_notification_activity is true) Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
|
|
15202
15348
|
*/
|
|
15203
15349
|
copy_custom_to_notification?: boolean;
|
|
15204
15350
|
/**
|
|
@@ -15658,6 +15804,22 @@ export interface UpsertConfigResponse {
|
|
|
15658
15804
|
duration: string;
|
|
15659
15805
|
config?: ConfigResponse;
|
|
15660
15806
|
}
|
|
15807
|
+
export interface UpsertExternalStorageAWSS3Request {
|
|
15808
|
+
bucket: string;
|
|
15809
|
+
region: string;
|
|
15810
|
+
role_arn: string;
|
|
15811
|
+
path_prefix?: string;
|
|
15812
|
+
}
|
|
15813
|
+
export interface UpsertExternalStorageRequest {
|
|
15814
|
+
type: 'aws_s3';
|
|
15815
|
+
aws_s3?: UpsertExternalStorageAWSS3Request;
|
|
15816
|
+
}
|
|
15817
|
+
export interface UpsertExternalStorageResponse {
|
|
15818
|
+
/**
|
|
15819
|
+
* Duration of the request in milliseconds
|
|
15820
|
+
*/
|
|
15821
|
+
duration: string;
|
|
15822
|
+
}
|
|
15661
15823
|
export interface UpsertModerationRuleRequest {
|
|
15662
15824
|
name: string;
|
|
15663
15825
|
rule_type: string;
|
|
@@ -16349,6 +16511,12 @@ export interface UserUpdatedEvent {
|
|
|
16349
16511
|
type: string;
|
|
16350
16512
|
received_at?: Date;
|
|
16351
16513
|
}
|
|
16514
|
+
export interface ValidateExternalStorageResponse {
|
|
16515
|
+
/**
|
|
16516
|
+
* Duration of the request in milliseconds
|
|
16517
|
+
*/
|
|
16518
|
+
duration: string;
|
|
16519
|
+
}
|
|
16352
16520
|
export interface VelocityFilterConfig {
|
|
16353
16521
|
advanced_filters?: boolean;
|
|
16354
16522
|
async?: boolean;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { ApiClient, StreamResponse } from '../../gen-imports';
|
|
2
|
-
import { AppealRequest, AppealResponse, BanRequest, BanResponse, BulkImageModerationRequest, BulkImageModerationResponse, CheckRequest, CheckResponse, CheckS3AccessRequest, CheckS3AccessResponse, CustomCheckRequest, CustomCheckResponse, DeleteModerationConfigResponse, DeleteModerationRuleResponse, DeleteModerationTemplateResponse, FlagRequest, FlagResponse, GetAppealResponse, GetConfigResponse, GetModerationRuleResponse, GetReviewQueueItemResponse, MuteRequest, MuteResponse, QueryAppealsRequest, QueryAppealsResponse, QueryFeedModerationTemplatesResponse, QueryModerationConfigsRequest, QueryModerationConfigsResponse, QueryModerationFlagsRequest, QueryModerationFlagsResponse, QueryModerationLogsRequest, QueryModerationLogsResponse, QueryModerationRulesRequest, QueryModerationRulesResponse, QueryReviewQueueRequest, QueryReviewQueueResponse, SubmitActionRequest, SubmitActionResponse, UnbanRequest, UnbanResponse, UnmuteRequest, UnmuteResponse, UpsertConfigRequest, UpsertConfigResponse, UpsertModerationRuleRequest, UpsertModerationRuleResponse, UpsertModerationTemplateRequest, UpsertModerationTemplateResponse } from '../models';
|
|
2
|
+
import { AppealRequest, AppealResponse, BanRequest, BanResponse, BulkImageModerationRequest, BulkImageModerationResponse, CheckRequest, CheckResponse, CheckS3AccessRequest, CheckS3AccessResponse, CustomCheckRequest, CustomCheckResponse, DeleteModerationConfigResponse, DeleteModerationRuleResponse, DeleteModerationTemplateResponse, FlagRequest, FlagResponse, GetAppealResponse, GetConfigResponse, GetFlagCountRequest, GetFlagCountResponse, GetModerationRuleResponse, GetReviewQueueItemResponse, InsertActionLogRequest, InsertActionLogResponse, MuteRequest, MuteResponse, QueryAppealsRequest, QueryAppealsResponse, QueryFeedModerationTemplatesResponse, QueryModerationConfigsRequest, QueryModerationConfigsResponse, QueryModerationFlagsRequest, QueryModerationFlagsResponse, QueryModerationLogsRequest, QueryModerationLogsResponse, QueryModerationRulesRequest, QueryModerationRulesResponse, QueryReviewQueueRequest, QueryReviewQueueResponse, SubmitActionRequest, SubmitActionResponse, UnbanRequest, UnbanResponse, UnmuteRequest, UnmuteResponse, UpsertConfigRequest, UpsertConfigResponse, UpsertModerationRuleRequest, UpsertModerationRuleResponse, UpsertModerationTemplateRequest, UpsertModerationTemplateResponse } from '../models';
|
|
3
3
|
export declare class ModerationApi {
|
|
4
4
|
readonly apiClient: ApiClient;
|
|
5
5
|
constructor(apiClient: ApiClient);
|
|
6
|
+
insertActionLog(request: InsertActionLogRequest): Promise<StreamResponse<InsertActionLogResponse>>;
|
|
6
7
|
appeal(request: AppealRequest): Promise<StreamResponse<AppealResponse>>;
|
|
7
8
|
getAppeal(request: {
|
|
8
9
|
id: string;
|
|
@@ -27,6 +28,7 @@ export declare class ModerationApi {
|
|
|
27
28
|
v2QueryTemplates(): Promise<StreamResponse<QueryFeedModerationTemplatesResponse>>;
|
|
28
29
|
v2UpsertTemplate(request: UpsertModerationTemplateRequest): Promise<StreamResponse<UpsertModerationTemplateResponse>>;
|
|
29
30
|
flag(request: FlagRequest): Promise<StreamResponse<FlagResponse>>;
|
|
31
|
+
getFlagCount(request: GetFlagCountRequest): Promise<StreamResponse<GetFlagCountResponse>>;
|
|
30
32
|
queryModerationFlags(request?: QueryModerationFlagsRequest): Promise<StreamResponse<QueryModerationFlagsResponse>>;
|
|
31
33
|
queryModerationLogs(request?: QueryModerationLogsRequest): Promise<StreamResponse<QueryModerationLogsResponse>>;
|
|
32
34
|
upsertModerationRule(request: UpsertModerationRuleRequest): Promise<StreamResponse<UpsertModerationRuleResponse>>;
|