@stream-io/node-sdk 0.4.18 → 0.4.19

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.
@@ -373,6 +373,9 @@ export interface BlockedUserResponse {
373
373
  blocked_user: UserResponse;
374
374
  user: UserResponse;
375
375
  }
376
+ export interface BodyguardImageAnalysisConfig {
377
+ rules?: BodyguardRule[];
378
+ }
376
379
  export interface BodyguardRule {
377
380
  action: 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove';
378
381
  label: string;
@@ -1988,7 +1991,6 @@ export interface ExternalStorageResponse {
1988
1991
  }
1989
1992
  export interface FPSStats {
1990
1993
  average_fps: number;
1991
- harmonic_fps: number;
1992
1994
  tracked: number;
1993
1995
  }
1994
1996
  export interface FeedsModerationTemplateConfig {
@@ -2157,6 +2159,7 @@ export interface FullUserResponse {
2157
2159
  mutes: UserMuteResponse[];
2158
2160
  teams: string[];
2159
2161
  custom: Record<string, any>;
2162
+ ban_expires?: Date;
2160
2163
  deactivated_at?: Date;
2161
2164
  deleted_at?: Date;
2162
2165
  image?: string;
@@ -2220,6 +2223,7 @@ export interface GetCallStatsResponse {
2220
2223
  call_duration_seconds: number;
2221
2224
  call_status: string;
2222
2225
  duration: string;
2226
+ is_truncated_report: boolean;
2223
2227
  max_freezes_duration_seconds: number;
2224
2228
  max_participants: number;
2225
2229
  max_total_quality_limitation_duration_seconds: number;
@@ -4022,12 +4026,14 @@ export interface ReviewQueueItem {
4022
4026
  languages: string[];
4023
4027
  teams: string[];
4024
4028
  reviewed_at: NullTime;
4029
+ activity?: EnrichedActivity;
4025
4030
  assigned_to?: User;
4026
4031
  entity_creator?: EntityCreator;
4027
4032
  feeds_v2_activity?: EnrichedActivity;
4028
4033
  feeds_v2_reaction?: Reaction;
4029
4034
  message?: Message;
4030
4035
  moderation_payload?: ModerationPayload;
4036
+ reaction?: Reaction;
4031
4037
  }
4032
4038
  export interface ReviewQueueItemResponse {
4033
4039
  ai_text_severity: string;
@@ -4048,12 +4054,14 @@ export interface ReviewQueueItemResponse {
4048
4054
  entity_creator_id?: string;
4049
4055
  reviewed_at?: Date;
4050
4056
  teams?: string[];
4057
+ activity?: EnrichedActivity;
4051
4058
  assigned_to?: UserResponse;
4052
4059
  entity_creator?: EntityCreatorResponse;
4053
4060
  feeds_v2_activity?: EnrichedActivity;
4054
4061
  feeds_v2_reaction?: Reaction;
4055
4062
  message?: MessageResponse;
4056
4063
  moderation_payload?: ModerationPayload;
4064
+ reaction?: Reaction;
4057
4065
  }
4058
4066
  export interface RingSettings {
4059
4067
  auto_cancel_timeout_ms: number;
@@ -4498,7 +4506,7 @@ export interface TranscriptionSettingsResponse {
4498
4506
  mode: 'available' | 'disabled' | 'auto-on';
4499
4507
  }
4500
4508
  export interface TranslateMessageRequest {
4501
- language: 'af' | 'sq' | 'am' | 'ar' | 'az' | 'bn' | 'bs' | 'bg' | 'zh' | 'zh-TW' | 'hr' | 'cs' | 'da' | 'fa-AF' | 'nl' | 'en' | 'et' | 'fi' | 'fr' | 'fr-CA' | 'ka' | 'de' | 'el' | 'ha' | 'he' | 'hi' | 'hu' | 'id' | 'it' | 'ja' | 'ko' | 'lv' | 'ms' | 'no' | 'fa' | 'ps' | 'pl' | 'pt' | 'ro' | 'ru' | 'sr' | 'sk' | 'sl' | 'so' | 'es' | 'es-MX' | 'sw' | 'sv' | 'tl' | 'ta' | 'th' | 'tr' | 'uk' | 'ur' | 'vi' | 'lt';
4509
+ language: 'af' | 'sq' | 'am' | 'ar' | 'az' | 'bn' | 'bs' | 'bg' | 'zh' | 'zh-TW' | 'hr' | 'cs' | 'da' | 'fa-AF' | 'nl' | 'en' | 'et' | 'fi' | 'fr' | 'fr-CA' | 'ka' | 'de' | 'el' | 'ha' | 'he' | 'hi' | 'hu' | 'id' | 'it' | 'ja' | 'ko' | 'lv' | 'ms' | 'no' | 'fa' | 'ps' | 'pl' | 'pt' | 'ro' | 'ru' | 'sr' | 'sk' | 'sl' | 'so' | 'es' | 'es-MX' | 'sw' | 'sv' | 'tl' | 'ta' | 'th' | 'tr' | 'uk' | 'ur' | 'vi' | 'lt' | 'ht';
4502
4510
  }
4503
4511
  export interface TruncateChannelRequest {
4504
4512
  hard_delete?: boolean;
@@ -4918,6 +4926,7 @@ export interface UpsertConfigRequest {
4918
4926
  team?: string;
4919
4927
  user_id?: string;
4920
4928
  ai_image_config?: AIImageConfig;
4929
+ ai_image_lite_config?: BodyguardImageAnalysisConfig;
4921
4930
  ai_text_config?: AITextConfig;
4922
4931
  ai_video_config?: AIVideoConfig;
4923
4932
  automod_platform_circumvention_config?: AutomodPlatformCircumventionConfig;
@@ -5209,6 +5218,7 @@ export interface UserStats {
5209
5218
  min_event_ts: number;
5210
5219
  session_stats: UserSessionStats[];
5211
5220
  info: UserInfoResponse;
5221
+ feedback?: string;
5212
5222
  rating?: number;
5213
5223
  }
5214
5224
  export interface UserUnbannedEvent {
@@ -5242,6 +5252,7 @@ export interface UserUpdatedEvent {
5242
5252
  received_at?: Date;
5243
5253
  }
5244
5254
  export interface VelocityFilterConfig {
5255
+ advanced_filters: boolean;
5245
5256
  cascading_actions: boolean;
5246
5257
  cids_per_user: number;
5247
5258
  enabled: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stream-io/node-sdk",
3
- "version": "0.4.18",
3
+ "version": "0.4.19",
4
4
  "description": "",
5
5
  "exports": {
6
6
  ".": {
@@ -736,6 +736,8 @@ decoders.FullUserResponse = (input?: Record<string, any>) => {
736
736
 
737
737
  mutes: { type: 'UserMuteResponse', isSingle: false },
738
738
 
739
+ ban_expires: { type: 'DatetimeType', isSingle: true },
740
+
739
741
  deactivated_at: { type: 'DatetimeType', isSingle: true },
740
742
 
741
743
  deleted_at: { type: 'DatetimeType', isSingle: true },
@@ -1608,6 +1610,8 @@ decoders.ReviewQueueItem = (input?: Record<string, any>) => {
1608
1610
  feeds_v2_reaction: { type: 'Reaction', isSingle: true },
1609
1611
 
1610
1612
  message: { type: 'Message', isSingle: true },
1613
+
1614
+ reaction: { type: 'Reaction', isSingle: true },
1611
1615
  };
1612
1616
  return decode(typeMappings, input);
1613
1617
  };
@@ -1635,6 +1639,8 @@ decoders.ReviewQueueItemResponse = (input?: Record<string, any>) => {
1635
1639
  feeds_v2_reaction: { type: 'Reaction', isSingle: true },
1636
1640
 
1637
1641
  message: { type: 'MessageResponse', isSingle: true },
1642
+
1643
+ reaction: { type: 'Reaction', isSingle: true },
1638
1644
  };
1639
1645
  return decode(typeMappings, input);
1640
1646
  };
@@ -672,6 +672,10 @@ export interface BlockedUserResponse {
672
672
  user: UserResponse;
673
673
  }
674
674
 
675
+ export interface BodyguardImageAnalysisConfig {
676
+ rules?: BodyguardRule[];
677
+ }
678
+
675
679
  export interface BodyguardRule {
676
680
  action:
677
681
  | 'flag'
@@ -3467,8 +3471,6 @@ export interface ExternalStorageResponse {
3467
3471
  export interface FPSStats {
3468
3472
  average_fps: number;
3469
3473
 
3470
- harmonic_fps: number;
3471
-
3472
3474
  tracked: number;
3473
3475
  }
3474
3476
 
@@ -3763,6 +3765,8 @@ export interface FullUserResponse {
3763
3765
 
3764
3766
  custom: Record<string, any>;
3765
3767
 
3768
+ ban_expires?: Date;
3769
+
3766
3770
  deactivated_at?: Date;
3767
3771
 
3768
3772
  deleted_at?: Date;
@@ -3867,6 +3871,8 @@ export interface GetCallStatsResponse {
3867
3871
 
3868
3872
  duration: string;
3869
3873
 
3874
+ is_truncated_report: boolean;
3875
+
3870
3876
  max_freezes_duration_seconds: number;
3871
3877
 
3872
3878
  max_participants: number;
@@ -7015,6 +7021,8 @@ export interface ReviewQueueItem {
7015
7021
 
7016
7022
  reviewed_at: NullTime;
7017
7023
 
7024
+ activity?: EnrichedActivity;
7025
+
7018
7026
  assigned_to?: User;
7019
7027
 
7020
7028
  entity_creator?: EntityCreator;
@@ -7026,6 +7034,8 @@ export interface ReviewQueueItem {
7026
7034
  message?: Message;
7027
7035
 
7028
7036
  moderation_payload?: ModerationPayload;
7037
+
7038
+ reaction?: Reaction;
7029
7039
  }
7030
7040
 
7031
7041
  export interface ReviewQueueItemResponse {
@@ -7065,6 +7075,8 @@ export interface ReviewQueueItemResponse {
7065
7075
 
7066
7076
  teams?: string[];
7067
7077
 
7078
+ activity?: EnrichedActivity;
7079
+
7068
7080
  assigned_to?: UserResponse;
7069
7081
 
7070
7082
  entity_creator?: EntityCreatorResponse;
@@ -7076,6 +7088,8 @@ export interface ReviewQueueItemResponse {
7076
7088
  message?: MessageResponse;
7077
7089
 
7078
7090
  moderation_payload?: ModerationPayload;
7091
+
7092
+ reaction?: Reaction;
7079
7093
  }
7080
7094
 
7081
7095
  export interface RingSettings {
@@ -7961,7 +7975,8 @@ export interface TranslateMessageRequest {
7961
7975
  | 'uk'
7962
7976
  | 'ur'
7963
7977
  | 'vi'
7964
- | 'lt';
7978
+ | 'lt'
7979
+ | 'ht';
7965
7980
  }
7966
7981
 
7967
7982
  export interface TruncateChannelRequest {
@@ -8677,6 +8692,8 @@ export interface UpsertConfigRequest {
8677
8692
 
8678
8693
  ai_image_config?: AIImageConfig;
8679
8694
 
8695
+ ai_image_lite_config?: BodyguardImageAnalysisConfig;
8696
+
8680
8697
  ai_text_config?: AITextConfig;
8681
8698
 
8682
8699
  ai_video_config?: AIVideoConfig;
@@ -9204,6 +9221,8 @@ export interface UserStats {
9204
9221
 
9205
9222
  info: UserInfoResponse;
9206
9223
 
9224
+ feedback?: string;
9225
+
9207
9226
  rating?: number;
9208
9227
  }
9209
9228
 
@@ -9260,6 +9279,8 @@ export interface UserUpdatedEvent {
9260
9279
  }
9261
9280
 
9262
9281
  export interface VelocityFilterConfig {
9282
+ advanced_filters: boolean;
9283
+
9263
9284
  cascading_actions: boolean;
9264
9285
 
9265
9286
  cids_per_user: number;
@@ -123,6 +123,7 @@ export class ModerationApi extends BaseApi {
123
123
  team: request?.team,
124
124
  user_id: request?.user_id,
125
125
  ai_image_config: request?.ai_image_config,
126
+ ai_image_lite_config: request?.ai_image_lite_config,
126
127
  ai_text_config: request?.ai_text_config,
127
128
  ai_video_config: request?.ai_video_config,
128
129
  automod_platform_circumvention_config: