@stream-io/node-sdk 0.8.4 → 0.8.6

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.
@@ -49,9 +49,27 @@ export interface AIVideoConfig {
49
49
 
50
50
  enabled?: boolean;
51
51
 
52
+ provider?: string;
53
+
54
+ rules?: Array<AWSRekognitionRule>;
55
+ }
56
+
57
+ export interface AIVideoConfigRequest {
58
+ async?: boolean;
59
+
60
+ enabled?: boolean;
61
+
52
62
  rules?: Array<AWSRekognitionRule>;
53
63
  }
54
64
 
65
+ export interface AIVideoConfigResponse {
66
+ enabled: boolean;
67
+
68
+ rules: Array<AWSRekognitionRule>;
69
+
70
+ async?: boolean;
71
+ }
72
+
55
73
  export interface APIError {
56
74
  /**
57
75
  * API error code
@@ -210,7 +228,7 @@ export interface AcceptFollowRequest {
210
228
  target: string;
211
229
 
212
230
  /**
213
- * Optional role for the follower in the follow relationship. Server-side only, and one of 'feed_follower' (the default) or 'feed_member_viewer'.
231
+ * Optional role for the follower in the follow relationship. Server-side only. Either a built-in ('feed_follower' (the default) or 'feed_member_viewer') or any role your app has defined; grants are not inspected.
214
232
  */
215
233
  follower_role?: string;
216
234
  }
@@ -590,6 +608,23 @@ export interface ActivityPinnedEvent {
590
608
  user?: UserResponseCommonFields;
591
609
  }
592
610
 
611
+ export interface ActivityProcessingConfig {
612
+ /**
613
+ * When true, this feed group's allowed_tags is given to the model as a constrained vocabulary so it maps its own wording onto a configured tag instead of that output being discarded. Improves how often a tag is produced, at the cost of sending the list on every request. Scoped to this group's own list: leaving it false keeps this group's tags out of the request even when another feed group on the same activity sets it true. Requires allowed_tags. Off by default.
614
+ */
615
+ send_allowed_tags_to_ai?: boolean;
616
+
617
+ /**
618
+ * When set, the LLM activity processors may only write interest tags from this list. By default the model is not told about the list, so a tag is only written when the model happens to produce that exact word after lower-casing and trimming, which for any vocabulary is often not the case; set send_allowed_tags_to_ai to have the model choose from the list instead. Mutually exclusive with blocked_tags.
619
+ */
620
+ allowed_tags?: Array<string>;
621
+
622
+ /**
623
+ * Interest tags the LLM activity processors are never allowed to write. Mutually exclusive with allowed_tags.
624
+ */
625
+ blocked_tags?: Array<string>;
626
+ }
627
+
593
628
  export interface ActivityProcessorConfig {
594
629
  /**
595
630
  * Type of activity processor (required)
@@ -1113,6 +1148,8 @@ export interface ActivitySelectorConfig {
1113
1148
  */
1114
1149
  sort?: Array<SortParamRequest>;
1115
1150
 
1151
+ feed_groups?: FeedGroupScope;
1152
+
1116
1153
  /**
1117
1154
  * Filter for activity selection
1118
1155
  */
@@ -1155,6 +1192,8 @@ export interface ActivitySelectorConfigResponse {
1155
1192
  */
1156
1193
  sort?: Array<SortParamRequest>;
1157
1194
 
1195
+ feed_groups?: FeedGroupScope;
1196
+
1158
1197
  /**
1159
1198
  * Filter for activity selection
1160
1199
  */
@@ -1860,7 +1899,7 @@ export interface AnalyzeResponse {
1860
1899
  duration: string;
1861
1900
 
1862
1901
  /**
1863
- * Always `complete` — /analyze is sync-only and the full verdict is in the response.
1902
+ * `complete` (all fields screened), `partial` (mix of verdicts and per-field errors), or `pending` (async).
1864
1903
  */
1865
1904
  status: string;
1866
1905
 
@@ -1940,10 +1979,14 @@ export interface AppResponseFields {
1940
1979
 
1941
1980
  member_custom_on_messages_enabled: boolean;
1942
1981
 
1982
+ member_custom_on_typing_events_enabled: boolean;
1983
+
1943
1984
  moderation_audio_call_moderation_enabled: boolean;
1944
1985
 
1945
1986
  moderation_enabled: boolean;
1946
1987
 
1988
+ moderation_keyframe_video_enabled: boolean;
1989
+
1947
1990
  moderation_llm_configurability_enabled: boolean;
1948
1991
 
1949
1992
  moderation_multitenant_blocklist_enabled: boolean;
@@ -5398,8 +5441,18 @@ export interface ChannelBatchUpdateRequest {
5398
5441
  */
5399
5442
  filter: Record<string, any>;
5400
5443
 
5444
+ /**
5445
+ * `updateData` only. Deletes these keys from each channel's existing custom object, leaving every other custom key untouched. Keys are dot-paths; deleting a key that does not exist is a no-op. Cannot be combined with `data.custom`
5446
+ */
5447
+ custom_unset?: Array<string>;
5448
+
5401
5449
  members?: Array<ChannelBatchMemberRequest>;
5402
5450
 
5451
+ /**
5452
+ * `updateData` only. Merges these keys into each channel's existing custom object, leaving every other custom key untouched. Keys are dot-paths, so `a.b` sets key `b` inside object `a` (the parent object must already exist). Cannot be combined with `data.custom`
5453
+ */
5454
+ custom_set?: Record<string, any>;
5455
+
5403
5456
  data?: ChannelDataUpdate;
5404
5457
  }
5405
5458
 
@@ -8133,7 +8186,7 @@ export interface ConfigResponse {
8133
8186
 
8134
8187
  ai_text_config?: AITextConfig;
8135
8188
 
8136
- ai_video_config?: AIVideoConfig;
8189
+ ai_video_config?: AIVideoConfigResponse;
8137
8190
 
8138
8191
  automod_platform_circumvention_config?: AutomodPlatformCircumventionConfig;
8139
8192
 
@@ -8764,6 +8817,9 @@ export interface CreateFeedGroupRequest {
8764
8817
  */
8765
8818
  id: string;
8766
8819
 
8820
+ /**
8821
+ * Role new followers of feeds in this group are given. Either a built-in (feed_follower, feed_member_viewer) or any role your app has defined. Empty means feed_follower. Applied when the follow is accepted, so a follow that starts pending picks it up on approval
8822
+ */
8767
8823
  default_follower_role?: string;
8768
8824
 
8769
8825
  /**
@@ -8785,6 +8841,8 @@ export interface CreateFeedGroupRequest {
8785
8841
 
8786
8842
  activity_filter?: ActivityFilterConfig;
8787
8843
 
8844
+ activity_processing?: ActivityProcessingConfig;
8845
+
8788
8846
  aggregation?: AggregationConfig;
8789
8847
 
8790
8848
  /**
@@ -11166,7 +11224,7 @@ export interface FeedGroupResponse {
11166
11224
  updated_at: Date;
11167
11225
 
11168
11226
  /**
11169
- * Role new followers of feeds in this group are given. One of: feed_follower, feed_member_viewer. Empty means feed_follower. Applied when the follow is accepted, so a follow that starts pending picks it up on approval
11227
+ * Role new followers of feeds in this group are given. Either a built-in (feed_follower, feed_member_viewer) or any role your app has defined. Empty means feed_follower. Applied when the follow is accepted, so a follow that starts pending picks it up on approval
11170
11228
  */
11171
11229
  default_follower_role?: string;
11172
11230
 
@@ -11191,6 +11249,8 @@ export interface FeedGroupResponse {
11191
11249
 
11192
11250
  activity_filter?: ActivityFilterConfig;
11193
11251
 
11252
+ activity_processing?: ActivityProcessingConfig;
11253
+
11194
11254
  aggregation?: AggregationConfig;
11195
11255
 
11196
11256
  /**
@@ -11232,6 +11292,18 @@ export interface FeedGroupRestoredEvent {
11232
11292
  received_at?: Date;
11233
11293
  }
11234
11294
 
11295
+ export interface FeedGroupScope {
11296
+ /**
11297
+ * Select activities from every feed group except these. An activity cross-posted to an excluded and a non-excluded group is still selected. Mutually exclusive with include
11298
+ */
11299
+ exclude?: Array<string>;
11300
+
11301
+ /**
11302
+ * Select only activities that live in a feed belonging to one of these feed groups. Mutually exclusive with exclude
11303
+ */
11304
+ include?: Array<string>;
11305
+ }
11306
+
11235
11307
  export interface FeedInput {
11236
11308
  description?: string;
11237
11309
 
@@ -12635,7 +12707,7 @@ export interface FollowResponse {
12635
12707
  created_at: Date;
12636
12708
 
12637
12709
  /**
12638
- * Role of the follower (source user) in the follow relationship, as stored. A value outside the allowed set is reported as stored but evaluated as 'feed_follower'.
12710
+ * Role of the follower (source user) in the follow relationship, as stored. A reserved name, or a role your app no longer defines, is reported as stored but evaluated as 'feed_follower'.
12639
12711
  */
12640
12712
  follower_role: string;
12641
12713
 
@@ -13546,6 +13618,9 @@ export interface GetOrCreateCallResponse {
13546
13618
  }
13547
13619
 
13548
13620
  export interface GetOrCreateFeedGroupRequest {
13621
+ /**
13622
+ * Role new followers of feeds in this group are given. Either a built-in (feed_follower, feed_member_viewer) or any role your app has defined. Empty means feed_follower. Applied when the follow is accepted, so a follow that starts pending picks it up on approval
13623
+ */
13549
13624
  default_follower_role?: string;
13550
13625
 
13551
13626
  /**
@@ -13567,6 +13642,8 @@ export interface GetOrCreateFeedGroupRequest {
13567
13642
 
13568
13643
  activity_filter?: ActivityFilterConfig;
13569
13644
 
13645
+ activity_processing?: ActivityProcessingConfig;
13646
+
13570
13647
  aggregation?: AggregationConfig;
13571
13648
 
13572
13649
  /**
@@ -17210,6 +17287,8 @@ export interface ModerationDashboardPreferences {
17210
17287
 
17211
17288
  disable_flagging_reviewed_entity?: boolean;
17212
17289
 
17290
+ enforce_shadow_server_side?: boolean;
17291
+
17213
17292
  escalation_queue_enabled?: boolean;
17214
17293
 
17215
17294
  flag_user_on_flagged_content?: boolean;
@@ -17244,6 +17323,8 @@ export interface ModerationFlagResponse {
17244
17323
 
17245
17324
  result: Array<Record<string, any>>;
17246
17325
 
17326
+ content_published_at?: Date;
17327
+
17247
17328
  entity_creator_id?: string;
17248
17329
 
17249
17330
  reason?: string;
@@ -25640,6 +25721,18 @@ export interface TranslateMessageRequest {
25640
25721
  | 'ht';
25641
25722
  }
25642
25723
 
25724
+ export interface TranslateMessageResponse {
25725
+ /**
25726
+ * Duration of the request in milliseconds
25727
+ */
25728
+ duration: string;
25729
+
25730
+ /**
25731
+ * Represents any chat message
25732
+ */
25733
+ message: MessageResponse;
25734
+ }
25735
+
25643
25736
  export interface TranslationSettings {
25644
25737
  enabled?: boolean;
25645
25738
 
@@ -26296,6 +26389,8 @@ export interface UpdateAppRequest {
26296
26389
 
26297
26390
  member_custom_on_messages_enabled?: boolean;
26298
26391
 
26392
+ member_custom_on_typing_events_enabled?: boolean;
26393
+
26299
26394
  migrate_permissions_to_v2?: boolean;
26300
26395
 
26301
26396
  moderation_analytics_enabled?: boolean;
@@ -27152,8 +27247,15 @@ export interface UpdateExternalStorageResponse {
27152
27247
  }
27153
27248
 
27154
27249
  export interface UpdateFeedGroupRequest {
27250
+ /**
27251
+ * Role new followers of feeds in this group are given. Either a built-in (feed_follower, feed_member_viewer) or any role your app has defined. Empty means feed_follower. Applied when the follow is accepted, so a follow that starts pending picks it up on approval
27252
+ */
27155
27253
  default_follower_role?: string;
27156
27254
 
27255
+ /**
27256
+ * Default visibility for the feed group. One of: public, visible, followers, members, private
27257
+ */
27258
+
27157
27259
  default_visibility?:
27158
27260
  'public' | 'visible' | 'followers' | 'members' | 'private';
27159
27261
 
@@ -27169,6 +27271,8 @@ export interface UpdateFeedGroupRequest {
27169
27271
 
27170
27272
  activity_filter?: ActivityFilterConfig;
27171
27273
 
27274
+ activity_processing?: ActivityProcessingConfig;
27275
+
27172
27276
  aggregation?: AggregationConfig;
27173
27277
 
27174
27278
  /**
@@ -27336,7 +27440,7 @@ export interface UpdateFollowRequest {
27336
27440
  enrich_own_fields?: boolean;
27337
27441
 
27338
27442
  /**
27339
- * Optional role for the follower in the follow relationship. Server-side only, and one of 'feed_follower' (the default) or 'feed_member_viewer'.
27443
+ * Optional role for the follower in the follow relationship. Server-side only. Either a built-in ('feed_follower' (the default) or 'feed_member_viewer') or any role your app has defined; grants are not inspected.
27340
27444
  */
27341
27445
  follower_role?: string;
27342
27446
 
@@ -27888,6 +27992,10 @@ export interface UpdateUsersResponse {
27888
27992
  */
27889
27993
  duration: string;
27890
27994
 
27995
+ /**
27996
+ * @deprecated
27997
+ * Deprecated: always empty. Removing a user from a team no longer deletes their memberships in that team's channels, so there is no task to poll
27998
+ */
27891
27999
  membership_deletion_task_id: string;
27892
28000
 
27893
28001
  /**
@@ -28132,7 +28240,7 @@ export interface UpsertConfigRequest {
28132
28240
 
28133
28241
  ai_text_config?: AITextConfig;
28134
28242
 
28135
- ai_video_config?: AIVideoConfig;
28243
+ ai_video_config?: AIVideoConfigRequest;
28136
28244
 
28137
28245
  automod_platform_circumvention_config?: AutomodPlatformCircumventionConfig;
28138
28246