@stream-io/node-sdk 0.8.5 → 0.8.7

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.
@@ -54,6 +54,7 @@ import {
54
54
  DeleteFeedViewResponse,
55
55
  DeleteFeedsBatchRequest,
56
56
  DeleteFeedsBatchResponse,
57
+ DeleteUserInterestsResponse,
57
58
  ExportFeedUserDataResponse,
58
59
  FollowBatchRequest,
59
60
  FollowBatchResponse,
@@ -174,6 +175,8 @@ import {
174
175
  UpsertActivitiesResponse,
175
176
  UpsertCollectionsRequest,
176
177
  UpsertCollectionsResponse,
178
+ UpsertUserInterestsRequest,
179
+ UpsertUserInterestsResponse,
177
180
  } from '../models';
178
181
  import { decoders } from '../model-decoders/decoders';
179
182
 
@@ -726,6 +729,7 @@ export class FeedsApi {
726
729
  id: string;
727
730
  comment_sort?: string;
728
731
  comment_limit?: number;
732
+ skip_own_followings?: boolean;
729
733
  user_id?: string;
730
734
  language?: string;
731
735
  translate_text?: boolean;
@@ -733,6 +737,7 @@ export class FeedsApi {
733
737
  const queryParams = {
734
738
  comment_sort: request?.comment_sort,
735
739
  comment_limit: request?.comment_limit,
740
+ skip_own_followings: request?.skip_own_followings,
736
741
  user_id: request?.user_id,
737
742
  language: request?.language,
738
743
  translate_text: request?.translate_text,
@@ -1720,6 +1725,7 @@ export class FeedsApi {
1720
1725
  activity_processors: request?.activity_processors,
1721
1726
  activity_selectors: request?.activity_selectors,
1722
1727
  activity_filter: request?.activity_filter,
1728
+ activity_marks: request?.activity_marks,
1723
1729
  activity_processing: request?.activity_processing,
1724
1730
  aggregation: request?.aggregation,
1725
1731
  custom: request?.custom,
@@ -2282,6 +2288,7 @@ export class FeedsApi {
2282
2288
  activity_processors: request?.activity_processors,
2283
2289
  activity_selectors: request?.activity_selectors,
2284
2290
  activity_filter: request?.activity_filter,
2291
+ activity_marks: request?.activity_marks,
2285
2292
  activity_processing: request?.activity_processing,
2286
2293
  aggregation: request?.aggregation,
2287
2294
  custom: request?.custom,
@@ -2319,6 +2326,7 @@ export class FeedsApi {
2319
2326
  activity_processors: request?.activity_processors,
2320
2327
  activity_selectors: request?.activity_selectors,
2321
2328
  activity_filter: request?.activity_filter,
2329
+ activity_marks: request?.activity_marks,
2322
2330
  activity_processing: request?.activity_processing,
2323
2331
  aggregation: request?.aggregation,
2324
2332
  custom: request?.custom,
@@ -2633,6 +2641,8 @@ export class FeedsApi {
2633
2641
  ios?: boolean;
2634
2642
  web?: boolean;
2635
2643
  unity?: boolean;
2644
+ unity_desktop?: boolean;
2645
+ unity_console?: boolean;
2636
2646
  server_side?: boolean;
2637
2647
  }): Promise<StreamResponse<GetFeedsRateLimitsResponse>> {
2638
2648
  const queryParams = {
@@ -2641,6 +2651,8 @@ export class FeedsApi {
2641
2651
  ios: request?.ios,
2642
2652
  web: request?.web,
2643
2653
  unity: request?.unity,
2654
+ unity_desktop: request?.unity_desktop,
2655
+ unity_console: request?.unity_console,
2644
2656
  server_side: request?.server_side,
2645
2657
  };
2646
2658
 
@@ -3184,6 +3196,31 @@ export class FeedsApi {
3184
3196
  return { ...response.body, metadata: response.metadata };
3185
3197
  }
3186
3198
 
3199
+ async deleteUserInterests(request: {
3200
+ user_id: string;
3201
+ tags: Array<string>;
3202
+ }): Promise<StreamResponse<DeleteUserInterestsResponse>> {
3203
+ const queryParams = {
3204
+ tags: request?.tags,
3205
+ };
3206
+ const pathParams = {
3207
+ user_id: request?.user_id,
3208
+ };
3209
+
3210
+ const response = await this.apiClient.sendRequest<
3211
+ StreamResponse<DeleteUserInterestsResponse>
3212
+ >(
3213
+ 'DELETE',
3214
+ '/api/v2/feeds/users/{user_id}/interests',
3215
+ pathParams,
3216
+ queryParams,
3217
+ );
3218
+
3219
+ decoders['DeleteUserInterestsResponse']?.(response.body);
3220
+
3221
+ return { ...response.body, metadata: response.metadata };
3222
+ }
3223
+
3187
3224
  async getUserInterests(request: {
3188
3225
  user_id: string;
3189
3226
  limit?: number;
@@ -3208,4 +3245,30 @@ export class FeedsApi {
3208
3245
 
3209
3246
  return { ...response.body, metadata: response.metadata };
3210
3247
  }
3248
+
3249
+ async upsertUserInterests(
3250
+ request: UpsertUserInterestsRequest & { user_id: string },
3251
+ ): Promise<StreamResponse<UpsertUserInterestsResponse>> {
3252
+ const pathParams = {
3253
+ user_id: request?.user_id,
3254
+ };
3255
+ const body = {
3256
+ interests: request?.interests,
3257
+ };
3258
+
3259
+ const response = await this.apiClient.sendRequest<
3260
+ StreamResponse<UpsertUserInterestsResponse>
3261
+ >(
3262
+ 'PUT',
3263
+ '/api/v2/feeds/users/{user_id}/interests',
3264
+ pathParams,
3265
+ undefined,
3266
+ body,
3267
+ 'application/json',
3268
+ );
3269
+
3270
+ decoders['UpsertUserInterestsResponse']?.(response.body);
3271
+
3272
+ return { ...response.body, metadata: response.metadata };
3273
+ }
3211
3274
  }
@@ -49,8 +49,6 @@ export interface AIVideoConfig {
49
49
 
50
50
  enabled?: boolean;
51
51
 
52
- provider?: string;
53
-
54
52
  rules?: Array<AWSRekognitionRule>;
55
53
  }
56
54
 
@@ -557,6 +555,18 @@ export interface ActivityMarkEvent {
557
555
  user?: UserResponseCommonFields;
558
556
  }
559
557
 
558
+ export interface ActivityMarksConfig {
559
+ /**
560
+ * Whether to return per-activity read status on content feeds
561
+ */
562
+ track_read?: boolean;
563
+
564
+ /**
565
+ * Whether to return per-activity seen status on content feeds
566
+ */
567
+ track_seen?: boolean;
568
+ }
569
+
560
570
  export interface ActivityPinResponse {
561
571
  /**
562
572
  * When the pin was created
@@ -1148,6 +1158,8 @@ export interface ActivitySelectorConfig {
1148
1158
  */
1149
1159
  sort?: Array<SortParamRequest>;
1150
1160
 
1161
+ feed_groups?: FeedGroupScope;
1162
+
1151
1163
  /**
1152
1164
  * Filter for activity selection
1153
1165
  */
@@ -1190,6 +1202,8 @@ export interface ActivitySelectorConfigResponse {
1190
1202
  */
1191
1203
  sort?: Array<SortParamRequest>;
1192
1204
 
1205
+ feed_groups?: FeedGroupScope;
1206
+
1193
1207
  /**
1194
1208
  * Filter for activity selection
1195
1209
  */
@@ -1488,11 +1502,21 @@ export interface AddCommentReactionRequest {
1488
1502
  }
1489
1503
 
1490
1504
  export interface AddCommentReactionResponse {
1505
+ /**
1506
+ * The change this write made to the number of reactions the user holds on this target: 1 when outcome is 'created', 0 when it is 'replaced' or 'unchanged'. These endpoints never return -1; a successful delete-reaction call is what decrements the count. With enforce_unique this is the delta of the user's reaction on the target; without it, the delta of reactions of this type.
1507
+ */
1508
+ counter_delta: number;
1509
+
1491
1510
  /**
1492
1511
  * Duration of the request
1493
1512
  */
1494
1513
  duration: string;
1495
1514
 
1515
+ /**
1516
+ * What this write did to the user's reaction on this target. One of: created, replaced, unchanged. 'created' means a new reaction was written and nothing was replaced; 'replaced' means enforce_unique removed one or more of the user's other reaction types; 'unchanged' means the user already held this reaction type (its custom data may still have been updated). Without enforce_unique a user can hold several reaction types on one target, so 'created' then means 'this reaction type was newly added', not 'the user's first reaction on this target'.
1517
+ */
1518
+ outcome: string;
1519
+
1496
1520
  comment: CommentResponse;
1497
1521
 
1498
1522
  reaction: FeedsReactionResponse;
@@ -1513,6 +1537,11 @@ export interface AddCommentReactionResponse {
1513
1537
  */
1514
1538
  notification_task_id?: string;
1515
1539
 
1540
+ /**
1541
+ * The reaction type this write replaced, or null when nothing was replaced. Non-null exactly when outcome is 'replaced'. If enforce_unique removed several reactions — possible only for data created before enforce_unique was adopted — this is the most recently created one.
1542
+ */
1543
+ previous_reaction_type?: string;
1544
+
1516
1545
  reference_activity?: ActivityResponse;
1517
1546
  }
1518
1547
 
@@ -1680,8 +1709,18 @@ export interface AddReactionRequest {
1680
1709
  }
1681
1710
 
1682
1711
  export interface AddReactionResponse {
1712
+ /**
1713
+ * The change this write made to the number of reactions the user holds on this target: 1 when outcome is 'created', 0 when it is 'replaced' or 'unchanged'. These endpoints never return -1; a successful delete-reaction call is what decrements the count. With enforce_unique this is the delta of the user's reaction on the target; without it, the delta of reactions of this type.
1714
+ */
1715
+ counter_delta: number;
1716
+
1683
1717
  duration: string;
1684
1718
 
1719
+ /**
1720
+ * What this write did to the user's reaction on this target. One of: created, replaced, unchanged. 'created' means a new reaction was written and nothing was replaced; 'replaced' means enforce_unique removed one or more of the user's other reaction types; 'unchanged' means the user already held this reaction type (its custom data may still have been updated). Without enforce_unique a user can hold several reaction types on one target, so 'created' then means 'this reaction type was newly added', not 'the user's first reaction on this target'.
1721
+ */
1722
+ outcome: string;
1723
+
1685
1724
  activity: ActivityResponse;
1686
1725
 
1687
1726
  reaction: FeedsReactionResponse;
@@ -1702,6 +1741,11 @@ export interface AddReactionResponse {
1702
1741
  */
1703
1742
  notification_task_id?: string;
1704
1743
 
1744
+ /**
1745
+ * The reaction type this write replaced, or null when nothing was replaced. Non-null exactly when outcome is 'replaced'. If enforce_unique removed several reactions — possible only for data created before enforce_unique was adopted — this is the most recently created one.
1746
+ */
1747
+ previous_reaction_type?: string;
1748
+
1705
1749
  reference_activity?: ActivityResponse;
1706
1750
  }
1707
1751
 
@@ -1949,6 +1993,8 @@ export interface AppResponseFields {
1949
1993
 
1950
1994
  auto_translation_enabled: boolean;
1951
1995
 
1996
+ before_message_send_hook_system_messages: boolean;
1997
+
1952
1998
  campaign_enabled: boolean;
1953
1999
 
1954
2000
  cdn_expiration_seconds: number;
@@ -2135,7 +2181,7 @@ export interface AppealItemResponse {
2135
2181
  ai_text_severity?: string;
2136
2182
 
2137
2183
  /**
2138
- * CID of the channel the entity belongs to, if applicable
2184
+ * CID of the channel the entity belongs to (content appeals), or of the channel ban being appealed (stream:user appeals). Empty for a global ban appeal.
2139
2185
  */
2140
2186
  channel_cid?: string;
2141
2187
 
@@ -2229,6 +2275,11 @@ export interface AppealRequest {
2229
2275
  */
2230
2276
  entity_type: string;
2231
2277
 
2278
+ /**
2279
+ * CID of the channel ban being appealed. Only used when entity_type is stream:user; omit to appeal the global ban.
2280
+ */
2281
+ channel_cid?: string;
2282
+
2232
2283
  /**
2233
2284
  * ID of the review queue item (flagged message) that triggered the ban. Applicable only for user ban appeals.
2234
2285
  */
@@ -5420,6 +5471,7 @@ export interface ChannelBatchStartedEvent {
5420
5471
  export interface ChannelBatchUpdateRequest {
5421
5472
  operation:
5422
5473
  | 'addMembers'
5474
+ | 'addMembersHideHistory'
5423
5475
  | 'removeMembers'
5424
5476
  | 'inviteMembers'
5425
5477
  | 'invites'
@@ -5437,6 +5489,16 @@ export interface ChannelBatchUpdateRequest {
5437
5489
  */
5438
5490
  filter: Record<string, any>;
5439
5491
 
5492
+ /**
5493
+ * Required with the `addMembersHideHistory` operation, and rejected with every other operation including `addMembers`. Hides each matched channel's history before this time from the members the operation adds. Members that already belong to a matched channel are never affected. Must be in RFC3339 format (e.g., "2024-01-01T10:00:00Z") and in the past.
5494
+ */
5495
+ hide_history_before?: Date;
5496
+
5497
+ /**
5498
+ * For updateData only. Requires a root cids $eq or $in filter with at most 100 CIDs and no root $or/$and. Split larger selections into requests of at most 100 CIDs. A success_channels_count response means the database update completed; a task_id response means it was queued and must be polled, including on older API nodes.
5499
+ */
5500
+ synchronous?: boolean;
5501
+
5440
5502
  /**
5441
5503
  * `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`
5442
5504
  */
@@ -5453,11 +5515,16 @@ export interface ChannelBatchUpdateRequest {
5453
5515
  }
5454
5516
 
5455
5517
  export interface ChannelBatchUpdateResponse {
5518
+ duration: string;
5519
+
5456
5520
  /**
5457
- * Duration of the request in milliseconds
5521
+ * Positive count of channels selected for a completed synchronous database update, not an affected-row count. Concurrent deletion may reduce the rows written. task_id is absent.
5458
5522
  */
5459
- duration: string;
5523
+ success_channels_count?: number;
5460
5524
 
5525
+ /**
5526
+ * Present for asynchronous updates. Poll this task even if synchronous was requested: an older API node may have queued the update.
5527
+ */
5461
5528
  task_id?: string;
5462
5529
  }
5463
5530
 
@@ -7547,6 +7614,11 @@ export interface ClientEvent {
7547
7614
  */
7548
7615
  sfu_id?: string;
7549
7616
 
7617
+ /**
7618
+ * Source of the coordinator join. Optional on CoordinatorJoin events; omitted when not provided.
7619
+ */
7620
+ source?: string;
7621
+
7550
7622
  /**
7551
7623
  * Discriminator identifying the event kind. JoinInitiated marks the start of a join attempt; join-lifecycle events use CoordinatorJoin, CoordinatorWS, WSJoin, or PeerConnectionConnect; media-readiness events use FirstAudioFrame or FirstVideoFrame; MediaDevicePermission reports device permission results; other values denote generic client events.
7552
7624
  */
@@ -8837,6 +8909,8 @@ export interface CreateFeedGroupRequest {
8837
8909
 
8838
8910
  activity_filter?: ActivityFilterConfig;
8839
8911
 
8912
+ activity_marks?: ActivityMarksConfig;
8913
+
8840
8914
  activity_processing?: ActivityProcessingConfig;
8841
8915
 
8842
8916
  aggregation?: AggregationConfig;
@@ -9803,9 +9877,14 @@ export interface DeleteChannelsRequest {
9803
9877
  cids: Array<string>;
9804
9878
 
9805
9879
  /**
9806
- * Specify if channels and all ressources should be hard deleted
9880
+ * Server-side only. When true, the channels and all their resources are permanently deleted instead of soft-deleted.
9807
9881
  */
9808
9882
  hard_delete?: boolean;
9883
+
9884
+ /**
9885
+ * Server-side only. When true, the soft delete preserves message history instead of hiding it, so a later recreation of any of these channel IDs restores the full history. Only supported for distinct channels. Cannot be combined with hard_delete.
9886
+ */
9887
+ skip_truncate?: boolean;
9809
9888
  }
9810
9889
 
9811
9890
  export interface DeleteChannelsResponse {
@@ -10102,6 +10181,15 @@ export interface DeleteTranscriptionResponse {
10102
10181
  duration: string;
10103
10182
  }
10104
10183
 
10184
+ export interface DeleteUserInterestsResponse {
10185
+ duration: string;
10186
+
10187
+ /**
10188
+ * Interest tags still set on the user
10189
+ */
10190
+ interests: Array<InterestTagResponse>;
10191
+ }
10192
+
10105
10193
  export interface DeleteUserMessagesRequestPayload {
10106
10194
  /**
10107
10195
  * Message deletion mode: soft, pruning, or hard
@@ -11245,6 +11333,8 @@ export interface FeedGroupResponse {
11245
11333
 
11246
11334
  activity_filter?: ActivityFilterConfig;
11247
11335
 
11336
+ activity_marks?: ActivityMarksConfig;
11337
+
11248
11338
  activity_processing?: ActivityProcessingConfig;
11249
11339
 
11250
11340
  aggregation?: AggregationConfig;
@@ -11288,6 +11378,18 @@ export interface FeedGroupRestoredEvent {
11288
11378
  received_at?: Date;
11289
11379
  }
11290
11380
 
11381
+ export interface FeedGroupScope {
11382
+ /**
11383
+ * 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
11384
+ */
11385
+ exclude?: Array<string>;
11386
+
11387
+ /**
11388
+ * Select only activities that live in a feed belonging to one of these feed groups. Mutually exclusive with exclude
11389
+ */
11390
+ include?: Array<string>;
11391
+ }
11392
+
11291
11393
  export interface FeedInput {
11292
11394
  description?: string;
11293
11395
 
@@ -12520,10 +12622,14 @@ export interface FloodIdenticalConfig {
12520
12622
  }
12521
12623
 
12522
12624
  export interface FloodIdenticalRuleParameters {
12625
+ min_text_length?: number;
12626
+
12523
12627
  threshold?: number;
12524
12628
 
12525
12629
  time_window?: string;
12526
12630
 
12631
+ track_across_users?: boolean;
12632
+
12527
12633
  allowlist?: Array<string>;
12528
12634
  }
12529
12635
 
@@ -13385,6 +13491,16 @@ export interface GetFeedsRateLimitsResponse {
13385
13491
  */
13386
13492
  unity?: Record<string, LimitInfoResponse>;
13387
13493
 
13494
+ /**
13495
+ * Rate limits for Unity console platform (endpoint name -> limit info)
13496
+ */
13497
+ unity_console?: Record<string, LimitInfoResponse>;
13498
+
13499
+ /**
13500
+ * Rate limits for Unity desktop platform (endpoint name -> limit info)
13501
+ */
13502
+ unity_desktop?: Record<string, LimitInfoResponse>;
13503
+
13388
13504
  /**
13389
13505
  * Rate limits for Web platform (endpoint name -> limit info)
13390
13506
  */
@@ -13626,6 +13742,8 @@ export interface GetOrCreateFeedGroupRequest {
13626
13742
 
13627
13743
  activity_filter?: ActivityFilterConfig;
13628
13744
 
13745
+ activity_marks?: ActivityMarksConfig;
13746
+
13629
13747
  activity_processing?: ActivityProcessingConfig;
13630
13748
 
13631
13749
  aggregation?: AggregationConfig;
@@ -13866,6 +13984,16 @@ export interface GetRateLimitsResponse {
13866
13984
  */
13867
13985
  unity?: Record<string, LimitInfoResponse>;
13868
13986
 
13987
+ /**
13988
+ * Map of endpoint rate limits for the Unity console platform
13989
+ */
13990
+ unity_console?: Record<string, LimitInfoResponse>;
13991
+
13992
+ /**
13993
+ * Map of endpoint rate limits for the Unity desktop platform
13994
+ */
13995
+ unity_desktop?: Record<string, LimitInfoResponse>;
13996
+
13869
13997
  /**
13870
13998
  * Map of endpoint rate limits for the web platform
13871
13999
  */
@@ -13992,7 +14120,7 @@ export interface GetUserInterestsResponse {
13992
14120
  duration: string;
13993
14121
 
13994
14122
  /**
13995
- * Top-N interest tags sorted by descending count, then alphabetically by tag
14123
+ * Interest tags sorted by descending weight, then manually set tags before computed ones, then descending count, then alphabetically by tag
13996
14124
  */
13997
14125
  interests: Array<InterestTagResponse>;
13998
14126
  }
@@ -14686,14 +14814,24 @@ export interface InsertActionLogResponse {
14686
14814
 
14687
14815
  export interface InterestTagResponse {
14688
14816
  /**
14689
- * Number of distinct reacted-to activities tagged with this value
14817
+ * Lifetime number of distinct reacted-to activities tagged with this value, without decay; 0 for manually set tags
14690
14818
  */
14691
14819
  count: number;
14692
14820
 
14821
+ /**
14822
+ * How the tag was set: computed (from the user's reactions) or manual (through the API)
14823
+ */
14824
+ source: string;
14825
+
14693
14826
  /**
14694
14827
  * The interest tag value
14695
14828
  */
14696
14829
  tag: string;
14830
+
14831
+ /**
14832
+ * Ranking weight between -1.0 and 1.0. Computed tags carry a recency-decayed weight in (0, 1.0]: the user's strongest tag is 1.0 and every other a proportional share
14833
+ */
14834
+ weight: number;
14697
14835
  }
14698
14836
 
14699
14837
  export interface JoinCallAPIMetrics {
@@ -14937,7 +15075,7 @@ export interface LabelsRequest {
14937
15075
  dry_run?: boolean;
14938
15076
 
14939
15077
  /**
14940
- * Optional moderation policy key (max 128 chars). For username moderation, set this to a policy whose key starts with 'username:' (e.g. 'username:default') to opt into the low-latency fast-path: blocklists (customer + Stream-managed defaults) short-circuit the LLM, and the LLM fallback uses gpt-4.1-nano with a 24h Valkey verdict cache. Without a 'username:' prefix the request falls through to the standard Bodyguard Analyze v1 username path.
15078
+ * Optional moderation policy key (max 128 chars). For username moderation, set this to a policy whose key starts with 'username:' (e.g. 'username:default') to opt into the low-latency fast-path: blocklists (customer + Stream-managed defaults) short-circuit the LLM, and the LLM fallback uses gpt-4o-mini (overridable via moderation_settings.llm_username_model) with a 24h Valkey verdict cache. Without a 'username:' prefix the request falls through to the standard Bodyguard Analyze v1 username path.
14941
15079
  */
14942
15080
  policy?: string;
14943
15081
 
@@ -17267,6 +17405,8 @@ export interface ModerationDashboardPreferences {
17267
17405
 
17268
17406
  custom_views_enabled?: boolean;
17269
17407
 
17408
+ disable_action_logs?: boolean;
17409
+
17270
17410
  disable_audit_logs?: boolean;
17271
17411
 
17272
17412
  disable_flagging_reviewed_entity?: boolean;
@@ -18370,6 +18510,14 @@ export interface PagerResponse {
18370
18510
  }
18371
18511
 
18372
18512
  export interface PaginationParams {
18513
+ id_gt?: number;
18514
+
18515
+ id_gte?: number;
18516
+
18517
+ id_lt?: number;
18518
+
18519
+ id_lte?: number;
18520
+
18373
18521
  limit?: number;
18374
18522
 
18375
18523
  offset?: number;
@@ -19813,6 +19961,14 @@ export interface QueryBannedUsersPayload {
19813
19961
  */
19814
19962
  filter_conditions: Record<string, any>;
19815
19963
 
19964
+ created_at_after?: Date;
19965
+
19966
+ created_at_after_or_equal?: Date;
19967
+
19968
+ created_at_before?: Date;
19969
+
19970
+ created_at_before_or_equal?: Date;
19971
+
19816
19972
  /**
19817
19973
  * Whether to exclude expired bans or not
19818
19974
  */
@@ -20644,6 +20800,14 @@ export interface QueryFollowsResponse {
20644
20800
  }
20645
20801
 
20646
20802
  export interface QueryFutureChannelBansPayload {
20803
+ created_at_after?: Date;
20804
+
20805
+ created_at_after_or_equal?: Date;
20806
+
20807
+ created_at_before?: Date;
20808
+
20809
+ created_at_before_or_equal?: Date;
20810
+
20647
20811
  /**
20648
20812
  * Whether to exclude expired bans or not
20649
20813
  */
@@ -20735,6 +20899,14 @@ export interface QueryLabelResultsResponse {
20735
20899
  export interface QueryMembersPayload {
20736
20900
  type: string;
20737
20901
 
20902
+ created_at_after?: Date;
20903
+
20904
+ created_at_after_or_equal?: Date;
20905
+
20906
+ created_at_before?: Date;
20907
+
20908
+ created_at_before_or_equal?: Date;
20909
+
20738
20910
  id?: string;
20739
20911
 
20740
20912
  limit?: number;
@@ -20743,6 +20915,14 @@ export interface QueryMembersPayload {
20743
20915
 
20744
20916
  user_id?: string;
20745
20917
 
20918
+ user_id_gt?: string;
20919
+
20920
+ user_id_gte?: string;
20921
+
20922
+ user_id_lt?: string;
20923
+
20924
+ user_id_lte?: string;
20925
+
20746
20926
  members?: Array<ChannelMemberRequest>;
20747
20927
 
20748
20928
  /**
@@ -21555,6 +21735,14 @@ export interface QueryUsersPayload {
21555
21735
  */
21556
21736
  filter_conditions: Record<string, any>;
21557
21737
 
21738
+ id_gt?: string;
21739
+
21740
+ id_gte?: string;
21741
+
21742
+ id_lt?: string;
21743
+
21744
+ id_lte?: string;
21745
+
21558
21746
  include_deactivated_users?: boolean;
21559
21747
 
21560
21748
  limit?: number;
@@ -22806,6 +22994,11 @@ export interface ReviewQueueItemResponse {
22806
22994
  */
22807
22995
  completed_at?: Date;
22808
22996
 
22997
+ /**
22998
+ * Highest per-label confidence (0-1) any provider reported across the item's flags; absent when no flag carried one
22999
+ */
23000
+ confidence_score?: number;
23001
+
22809
23002
  config_key?: string;
22810
23003
 
22811
23004
  /**
@@ -23068,6 +23261,10 @@ export interface RuleBuilderCondition {
23068
23261
 
23069
23262
  user_identical_content_count_params?: UserIdenticalContentCountParameters;
23070
23263
 
23264
+ user_identical_image_count_params?: UserIdenticalImageCountParameters;
23265
+
23266
+ user_reaction_count_params?: UserReactionCountRuleParameters;
23267
+
23071
23268
  user_role_params?: UserRoleParameters;
23072
23269
 
23073
23270
  user_rule_params?: UserRuleParameters;
@@ -23108,6 +23305,8 @@ export interface RuleBuilderRule {
23108
23305
  }
23109
23306
 
23110
23307
  export interface RunStats {
23308
+ activities_deleted?: number;
23309
+
23111
23310
  channels_deleted?: number;
23112
23311
 
23113
23312
  messages_deleted?: number;
@@ -27255,6 +27454,8 @@ export interface UpdateFeedGroupRequest {
27255
27454
 
27256
27455
  activity_filter?: ActivityFilterConfig;
27257
27456
 
27457
+ activity_marks?: ActivityMarksConfig;
27458
+
27258
27459
  activity_processing?: ActivityProcessingConfig;
27259
27460
 
27260
27461
  aggregation?: AggregationConfig;
@@ -28522,6 +28723,22 @@ export interface UpsertSetupSessionResponse {
28522
28723
  setup_session?: SetupSession;
28523
28724
  }
28524
28725
 
28726
+ export interface UpsertUserInterestsRequest {
28727
+ /**
28728
+ * Interest tags to add or update (1-50)
28729
+ */
28730
+ interests: Array<UserInterestRequest>;
28731
+ }
28732
+
28733
+ export interface UpsertUserInterestsResponse {
28734
+ duration: string;
28735
+
28736
+ /**
28737
+ * All interest tags of the user after the write
28738
+ */
28739
+ interests: Array<InterestTagResponse>;
28740
+ }
28741
+
28525
28742
  export interface User {
28526
28743
  id: string;
28527
28744
 
@@ -28909,6 +29126,28 @@ export interface UserIdenticalContentCountParameters {
28909
29126
  time_window?: string;
28910
29127
  }
28911
29128
 
29129
+ export interface UserIdenticalImageCountParameters {
29130
+ match?: string;
29131
+
29132
+ similarity_distance?: number;
29133
+
29134
+ threshold?: number;
29135
+
29136
+ time_window?: string;
29137
+ }
29138
+
29139
+ export interface UserInterestRequest {
29140
+ /**
29141
+ * The interest tag; trimmed and lower-cased like activity interest_tags
29142
+ */
29143
+ tag: string;
29144
+
29145
+ /**
29146
+ * Ranking weight between -1.0 (dislike) and 1.0 (like). Defaults to 1.0
29147
+ */
29148
+ weight?: number;
29149
+ }
29150
+
28912
29151
  export interface UserMessagesDeletedEvent {
28913
29152
  /**
28914
29153
  * Date/time of creation
@@ -29007,6 +29246,14 @@ export interface UserRatingReportResponse {
29007
29246
  count: number;
29008
29247
  }
29009
29248
 
29249
+ export interface UserReactionCountRuleParameters {
29250
+ count?: string;
29251
+
29252
+ threshold?: number;
29253
+
29254
+ time_window?: string;
29255
+ }
29256
+
29010
29257
  export interface UserReactivatedEvent {
29011
29258
  /**
29012
29259
  * Date/time of creation
@@ -29822,6 +30069,18 @@ export interface WebhookFailoverConfig {
29822
30069
 
29823
30070
  gcs_path?: string;
29824
30071
 
30072
+ s3_api_key?: string;
30073
+
30074
+ s3_bucket?: string;
30075
+
30076
+ s3_path?: string;
30077
+
30078
+ s3_region?: string;
30079
+
30080
+ s3_role_arn?: string;
30081
+
30082
+ s3_secret?: string;
30083
+
29825
30084
  type?: string;
29826
30085
  }
29827
30086