@stream-io/node-sdk 0.7.49 → 0.7.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,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;
@@ -6953,9 +6987,13 @@ export interface FollowRequest {
6953
6987
  * Fully qualified ID of the target feed
6954
6988
  */
6955
6989
  target: string;
6990
+ /**
6991
+ * Maximum number of historical activities to copy from the target feed when the follow is first materialized. Not set = unlimited (default). 0 = copy nothing. Range: 0-1000.
6992
+ */
6993
+ activity_copy_limit?: number;
6956
6994
  /**
6957
6995
  * @deprecated
6958
- * Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
6996
+ * 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
6997
  */
6960
6998
  copy_custom_to_notification?: boolean;
6961
6999
  /**
@@ -7335,6 +7373,22 @@ export interface GetEdgesResponse {
7335
7373
  duration: string;
7336
7374
  edges: EdgeResponse[];
7337
7375
  }
7376
+ export interface GetExternalStorageAWSS3Response {
7377
+ bucket: string;
7378
+ region: string;
7379
+ role_arn: string;
7380
+ path_prefix?: string;
7381
+ }
7382
+ export interface GetExternalStorageResponse {
7383
+ created_at: Date;
7384
+ /**
7385
+ * Duration of the request in milliseconds
7386
+ */
7387
+ duration: string;
7388
+ type: string;
7389
+ updated_at: Date;
7390
+ aws_s3?: GetExternalStorageAWSS3Response;
7391
+ }
7338
7392
  export interface GetFeedGroupResponse {
7339
7393
  duration: string;
7340
7394
  feed_group: FeedGroupResponse;
@@ -7366,6 +7420,23 @@ export interface GetFeedsRateLimitsResponse {
7366
7420
  */
7367
7421
  web?: Record<string, LimitInfoResponse>;
7368
7422
  }
7423
+ export interface GetFlagCountRequest {
7424
+ /**
7425
+ * ID of the user whose content was flagged
7426
+ */
7427
+ entity_creator_id: string;
7428
+ /**
7429
+ * Optional entity type filter (e.g., stream:chat:v1:message, stream:user)
7430
+ */
7431
+ entity_type?: string;
7432
+ }
7433
+ export interface GetFlagCountResponse {
7434
+ /**
7435
+ * Total number of flags against the specified user's content
7436
+ */
7437
+ count: number;
7438
+ duration: string;
7439
+ }
7369
7440
  export interface GetFollowSuggestionsResponse {
7370
7441
  duration: string;
7371
7442
  /**
@@ -7628,7 +7699,13 @@ export interface GetRetentionPolicyRunsRequest {
7628
7699
  limit?: number;
7629
7700
  next?: string;
7630
7701
  prev?: string;
7702
+ /**
7703
+ * Array of sort parameters
7704
+ */
7631
7705
  sort?: SortParamRequest[];
7706
+ /**
7707
+ * Filter conditions to apply to the query
7708
+ */
7632
7709
  filter_conditions?: Record<string, any>;
7633
7710
  }
7634
7711
  export interface GetRetentionPolicyRunsResponse {
@@ -9497,6 +9574,10 @@ export interface ModerationActionConfigResponse {
9497
9574
  * Display order (lower numbers shown first)
9498
9575
  */
9499
9576
  order: number;
9577
+ /**
9578
+ * Queue type this action config belongs to
9579
+ */
9580
+ queue_type?: string;
9500
9581
  /**
9501
9582
  * Custom data for the action
9502
9583
  */
@@ -9564,9 +9645,11 @@ export interface ModerationDashboardPreferences {
9564
9645
  async_review_queue_upsert?: boolean;
9565
9646
  disable_audit_logs?: boolean;
9566
9647
  disable_flagging_reviewed_entity?: boolean;
9648
+ escalation_queue_enabled?: boolean;
9567
9649
  flag_user_on_flagged_content?: boolean;
9568
9650
  media_queue_blur_enabled?: boolean;
9569
9651
  allowed_moderation_action_reasons?: string[];
9652
+ escalation_reasons?: string[];
9570
9653
  keyframe_classifications_map?: Record<string, Record<string, boolean>>;
9571
9654
  overview_dashboard?: OverviewDashboardConfig;
9572
9655
  }
@@ -10753,6 +10836,10 @@ export interface QueryActivitiesRequest {
10753
10836
  */
10754
10837
  include_expired_activities?: boolean;
10755
10838
  include_private_activities?: boolean;
10839
+ /**
10840
+ * When true, include soft-deleted activities in the result.
10841
+ */
10842
+ include_soft_deleted_activities?: boolean;
10756
10843
  limit?: number;
10757
10844
  next?: string;
10758
10845
  prev?: string;
@@ -10841,6 +10928,9 @@ export interface QueryAppealsResponse {
10841
10928
  prev?: string;
10842
10929
  }
10843
10930
  export interface QueryBannedUsersPayload {
10931
+ /**
10932
+ * Filter conditions to apply to the query
10933
+ */
10844
10934
  filter_conditions: Record<string, any>;
10845
10935
  /**
10846
10936
  * Whether to exclude expired bans or not
@@ -10934,7 +11024,13 @@ export interface QueryCallMembersRequest {
10934
11024
  limit?: number;
10935
11025
  next?: string;
10936
11026
  prev?: string;
11027
+ /**
11028
+ * Array of sort parameters
11029
+ */
10937
11030
  sort?: SortParamRequest[];
11031
+ /**
11032
+ * Filter conditions to apply to the query
11033
+ */
10938
11034
  filter_conditions?: Record<string, any>;
10939
11035
  }
10940
11036
  export interface QueryCallMembersResponse {
@@ -10962,6 +11058,9 @@ export interface QueryCallParticipantSessionsResponse {
10962
11058
  session?: CallSessionResponse;
10963
11059
  }
10964
11060
  export interface QueryCallParticipantsRequest {
11061
+ /**
11062
+ * Filter conditions to apply to the query
11063
+ */
10965
11064
  filter_conditions?: Record<string, any>;
10966
11065
  }
10967
11066
  export interface QueryCallParticipantsResponse {
@@ -10990,6 +11089,7 @@ export interface QueryCallSessionParticipantStatsResponse {
10990
11089
  next?: string;
10991
11090
  prev?: string;
10992
11091
  tmp_data_source?: string;
11092
+ call_events?: CallLevelEventPayload[];
10993
11093
  }
10994
11094
  export interface QueryCallSessionParticipantStatsTimelineResponse {
10995
11095
  call_id: string;
@@ -11026,7 +11126,13 @@ export interface QueryCallStatsRequest {
11026
11126
  limit?: number;
11027
11127
  next?: string;
11028
11128
  prev?: string;
11129
+ /**
11130
+ * Array of sort parameters
11131
+ */
11029
11132
  sort?: SortParamRequest[];
11133
+ /**
11134
+ * Filter conditions to apply to the query
11135
+ */
11030
11136
  filter_conditions?: Record<string, any>;
11031
11137
  }
11032
11138
  export interface QueryCallStatsResponse {
@@ -11046,6 +11152,9 @@ export interface QueryCallsRequest {
11046
11152
  * Array of sort parameters
11047
11153
  */
11048
11154
  sort?: SortParamRequest[];
11155
+ /**
11156
+ * Filter conditions to apply to the query
11157
+ */
11049
11158
  filter_conditions?: Record<string, any>;
11050
11159
  }
11051
11160
  export interface QueryCallsResponse {
@@ -11104,6 +11213,9 @@ export interface QueryChannelsRequest {
11104
11213
  * List of sort parameters
11105
11214
  */
11106
11215
  sort?: SortParamRequest[];
11216
+ /**
11217
+ * Filter conditions to apply to the query
11218
+ */
11107
11219
  filter_conditions?: Record<string, any>;
11108
11220
  /**
11109
11221
  * Values to interpolate into the predefined filter template
@@ -11393,12 +11505,18 @@ export interface QueryFutureChannelBansResponse {
11393
11505
  }
11394
11506
  export interface QueryMembersPayload {
11395
11507
  type: string;
11508
+ /**
11509
+ * Filter conditions to apply to the query
11510
+ */
11396
11511
  filter_conditions: Record<string, any>;
11397
11512
  id?: string;
11398
11513
  limit?: number;
11399
11514
  offset?: number;
11400
11515
  user_id?: string;
11401
11516
  members?: ChannelMemberRequest[];
11517
+ /**
11518
+ * Array of sort parameters
11519
+ */
11402
11520
  sort?: SortParamRequest[];
11403
11521
  user?: UserRequest;
11404
11522
  }
@@ -11435,7 +11553,13 @@ export interface QueryMessageFlagsPayload {
11435
11553
  */
11436
11554
  show_deleted_messages?: boolean;
11437
11555
  user_id?: string;
11556
+ /**
11557
+ * Array of sort parameters
11558
+ */
11438
11559
  sort?: SortParamRequest[];
11560
+ /**
11561
+ * Filter conditions to apply to the query
11562
+ */
11439
11563
  filter_conditions?: Record<string, any>;
11440
11564
  user?: UserRequest;
11441
11565
  }
@@ -11876,7 +12000,13 @@ export interface QueryUserFeedbackRequest {
11876
12000
  limit?: number;
11877
12001
  next?: string;
11878
12002
  prev?: string;
12003
+ /**
12004
+ * Array of sort parameters
12005
+ */
11879
12006
  sort?: SortParamRequest[];
12007
+ /**
12008
+ * Filter conditions to apply to the query
12009
+ */
11880
12010
  filter_conditions?: Record<string, any>;
11881
12011
  }
11882
12012
  export interface QueryUserFeedbackResponse {
@@ -11889,12 +12019,18 @@ export interface QueryUserFeedbackResponse {
11889
12019
  prev?: string;
11890
12020
  }
11891
12021
  export interface QueryUsersPayload {
12022
+ /**
12023
+ * Filter conditions to apply to the query
12024
+ */
11892
12025
  filter_conditions: Record<string, any>;
11893
12026
  include_deactivated_users?: boolean;
11894
12027
  limit?: number;
11895
12028
  offset?: number;
11896
12029
  presence?: boolean;
11897
12030
  user_id?: string;
12031
+ /**
12032
+ * Array of sort parameters
12033
+ */
11898
12034
  sort?: SortParamRequest[];
11899
12035
  user?: UserRequest;
11900
12036
  }
@@ -12658,6 +12794,10 @@ export interface ReviewQueueItemResponse {
12658
12794
  * Type of entity being reviewed
12659
12795
  */
12660
12796
  entity_type: string;
12797
+ /**
12798
+ * Whether the item has been escalated
12799
+ */
12800
+ escalated: boolean;
12661
12801
  flags_count: number;
12662
12802
  /**
12663
12803
  * Unique identifier of the review queue item
@@ -12709,6 +12849,14 @@ export interface ReviewQueueItemResponse {
12709
12849
  * ID of who created the entity
12710
12850
  */
12711
12851
  entity_creator_id?: string;
12852
+ /**
12853
+ * When the item was escalated
12854
+ */
12855
+ escalated_at?: Date;
12856
+ /**
12857
+ * ID of the moderator who escalated the item
12858
+ */
12859
+ escalated_by?: string;
12712
12860
  /**
12713
12861
  * When the item was reviewed
12714
12862
  */
@@ -12722,6 +12870,7 @@ export interface ReviewQueueItemResponse {
12722
12870
  assigned_to?: UserResponse;
12723
12871
  call?: CallResponse;
12724
12872
  entity_creator?: EntityCreatorResponse;
12873
+ escalation_metadata?: EscalationMetadata;
12725
12874
  feeds_v2_activity?: EnrichedActivity;
12726
12875
  feeds_v2_reaction?: Reaction;
12727
12876
  feeds_v3_activity?: FeedsV3ActivityResponse;
@@ -13457,8 +13606,8 @@ export interface SessionWarningResponse {
13457
13606
  time?: Date;
13458
13607
  }
13459
13608
  export interface SetRetentionPolicyRequest {
13609
+ max_age_hours: number;
13460
13610
  policy: 'old-messages' | 'inactive-channels';
13461
- max_age_hours?: number;
13462
13611
  }
13463
13612
  export interface SetRetentionPolicyResponse {
13464
13613
  /**
@@ -13804,9 +13953,9 @@ export interface StoriesFeedUpdatedEvent {
13804
13953
  }
13805
13954
  export interface SubmitActionRequest {
13806
13955
  /**
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
13956
+ * 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
13957
  */
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';
13958
+ 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
13959
  /**
13811
13960
  * UUID of the appeal to act on (required for reject_appeal, optional for other actions)
13812
13961
  */
@@ -13824,6 +13973,7 @@ export interface SubmitActionRequest {
13824
13973
  delete_message?: DeleteMessageRequestPayload;
13825
13974
  delete_reaction?: DeleteReactionRequestPayload;
13826
13975
  delete_user?: DeleteUserRequestPayload;
13976
+ escalate?: EscalatePayload;
13827
13977
  flag?: FlagRequest;
13828
13978
  mark_reviewed?: MarkReviewedRequestPayload;
13829
13979
  reject_appeal?: RejectAppealRequestPayload;
@@ -14260,6 +14410,10 @@ export interface UnbanActionRequestPayload {
14260
14410
  * Reason for the appeal decision
14261
14411
  */
14262
14412
  decision_reason?: string;
14413
+ /**
14414
+ * Also remove the future channels ban for this user
14415
+ */
14416
+ remove_future_channels_ban?: boolean;
14263
14417
  }
14264
14418
  export interface UnbanRequest {
14265
14419
  /**
@@ -14470,7 +14624,7 @@ export interface UpdateActivityPartialChangeRequest {
14470
14624
  activity_id: string;
14471
14625
  /**
14472
14626
  * @deprecated
14473
- * Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
14627
+ * 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
14628
  */
14475
14629
  copy_custom_to_notification?: boolean;
14476
14630
  /**
@@ -14489,7 +14643,7 @@ export interface UpdateActivityPartialChangeRequest {
14489
14643
  export interface UpdateActivityPartialRequest {
14490
14644
  /**
14491
14645
  * @deprecated
14492
- * Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
14646
+ * 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
14647
  */
14494
14648
  copy_custom_to_notification?: boolean;
14495
14649
  /**
@@ -14522,7 +14676,7 @@ export interface UpdateActivityPartialResponse {
14522
14676
  export interface UpdateActivityRequest {
14523
14677
  /**
14524
14678
  * @deprecated
14525
- * Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
14679
+ * 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
14680
  */
14527
14681
  copy_custom_to_notification?: boolean;
14528
14682
  /**
@@ -14994,7 +15148,7 @@ export interface UpdateCommandResponse {
14994
15148
  export interface UpdateCommentPartialRequest {
14995
15149
  /**
14996
15150
  * @deprecated
14997
- * Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
15151
+ * Whether to copy custom data to notification activities Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
14998
15152
  */
14999
15153
  copy_custom_to_notification?: boolean;
15000
15154
  /**
@@ -15031,7 +15185,7 @@ export interface UpdateCommentRequest {
15031
15185
  comment?: string;
15032
15186
  /**
15033
15187
  * @deprecated
15034
- * Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
15188
+ * 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
15189
  */
15036
15190
  copy_custom_to_notification?: boolean;
15037
15191
  /**
@@ -15196,9 +15350,13 @@ export interface UpdateFollowRequest {
15196
15350
  * Fully qualified ID of the target feed
15197
15351
  */
15198
15352
  target: string;
15353
+ /**
15354
+ * Maximum number of historical activities to copy from the target feed when the follow is first materialized. Not set = unlimited (default). 0 = copy nothing. Range: 0-1000.
15355
+ */
15356
+ activity_copy_limit?: number;
15199
15357
  /**
15200
15358
  * @deprecated
15201
- * Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
15359
+ * 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
15360
  */
15203
15361
  copy_custom_to_notification?: boolean;
15204
15362
  /**
@@ -15658,6 +15816,22 @@ export interface UpsertConfigResponse {
15658
15816
  duration: string;
15659
15817
  config?: ConfigResponse;
15660
15818
  }
15819
+ export interface UpsertExternalStorageAWSS3Request {
15820
+ bucket: string;
15821
+ region: string;
15822
+ role_arn: string;
15823
+ path_prefix?: string;
15824
+ }
15825
+ export interface UpsertExternalStorageRequest {
15826
+ type: 'aws_s3';
15827
+ aws_s3?: UpsertExternalStorageAWSS3Request;
15828
+ }
15829
+ export interface UpsertExternalStorageResponse {
15830
+ /**
15831
+ * Duration of the request in milliseconds
15832
+ */
15833
+ duration: string;
15834
+ }
15661
15835
  export interface UpsertModerationRuleRequest {
15662
15836
  name: string;
15663
15837
  rule_type: string;
@@ -16349,6 +16523,12 @@ export interface UserUpdatedEvent {
16349
16523
  type: string;
16350
16524
  received_at?: Date;
16351
16525
  }
16526
+ export interface ValidateExternalStorageResponse {
16527
+ /**
16528
+ * Duration of the request in milliseconds
16529
+ */
16530
+ duration: string;
16531
+ }
16352
16532
  export interface VelocityFilterConfig {
16353
16533
  advanced_filters?: boolean;
16354
16534
  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>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stream-io/node-sdk",
3
- "version": "0.7.49",
3
+ "version": "0.7.51",
4
4
  "description": "",
5
5
  "exports": {
6
6
  ".": {