@stream-io/node-sdk 0.7.52 → 0.7.53

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.
@@ -450,18 +450,6 @@ export interface ActivityFeedbackResponse {
450
450
  duration: string;
451
451
  }
452
452
 
453
- export interface ActivityLocation {
454
- /**
455
- * Latitude coordinate
456
- */
457
- lat: number;
458
-
459
- /**
460
- * Longitude coordinate
461
- */
462
- lng: number;
463
- }
464
-
465
453
  export interface ActivityMarkEvent {
466
454
  /**
467
455
  * Date/time of creation
@@ -775,7 +763,7 @@ export interface ActivityRequest {
775
763
  */
776
764
  custom?: Record<string, any>;
777
765
 
778
- location?: ActivityLocation;
766
+ location?: Location;
779
767
 
780
768
  /**
781
769
  * Additional data for search indexing
@@ -979,7 +967,7 @@ export interface ActivityResponse {
979
967
 
980
968
  current_feed?: FeedResponse;
981
969
 
982
- location?: ActivityLocation;
970
+ location?: Location;
983
971
 
984
972
  metrics?: Record<string, number>;
985
973
 
@@ -1188,6 +1176,8 @@ export interface AddActivityRequest {
1188
1176
  */
1189
1177
  expires_at?: string;
1190
1178
 
1179
+ force_moderation?: boolean;
1180
+
1191
1181
  /**
1192
1182
  * Optional ID for the activity
1193
1183
  */
@@ -1270,7 +1260,7 @@ export interface AddActivityRequest {
1270
1260
  */
1271
1261
  custom?: Record<string, any>;
1272
1262
 
1273
- location?: ActivityLocation;
1263
+ location?: Location;
1274
1264
 
1275
1265
  /**
1276
1266
  * Additional data for search indexing
@@ -1313,6 +1303,30 @@ export interface AddBookmarkResponse {
1313
1303
  bookmark: BookmarkResponse;
1314
1304
  }
1315
1305
 
1306
+ export interface AddCommentBookmarkRequest {
1307
+ /**
1308
+ * ID of the folder to add the bookmark to
1309
+ */
1310
+ folder_id?: string;
1311
+
1312
+ user_id?: string;
1313
+
1314
+ /**
1315
+ * Custom data for the bookmark
1316
+ */
1317
+ custom?: Record<string, any>;
1318
+
1319
+ new_folder?: AddFolderRequest;
1320
+
1321
+ user?: UserRequest;
1322
+ }
1323
+
1324
+ export interface AddCommentBookmarkResponse {
1325
+ duration: string;
1326
+
1327
+ bookmark: BookmarkResponse;
1328
+ }
1329
+
1316
1330
  export interface AddCommentReactionRequest {
1317
1331
  /**
1318
1332
  * The type of reaction, eg upvote, like, ...
@@ -1380,6 +1394,11 @@ export interface AddCommentRequest {
1380
1394
  */
1381
1395
  create_notification_activity?: boolean;
1382
1396
 
1397
+ /**
1398
+ * If true, forces moderation to run for server-side requests. By default, server-side requests skip moderation. Client-side requests always run moderation regardless of this field.
1399
+ */
1400
+ force_moderation?: boolean;
1401
+
1383
1402
  /**
1384
1403
  * Optional custom ID for the comment (max 255 characters). If not provided, a UUID will be generated.
1385
1404
  */
@@ -1593,6 +1612,12 @@ export interface AggregatedActivityResponse {
1593
1612
  }
1594
1613
 
1595
1614
  export interface AggregationConfig {
1615
+ /**
1616
+ * Order of member activities inside each aggregated group for non-stories feeds: created_at_desc (newest first, default) or created_at_asc (oldest first). Stories feeds ignore this and always use oldest first.
1617
+ */
1618
+
1619
+ activities_sort?: 'created_at_asc' | 'created_at_desc';
1620
+
1596
1621
  /**
1597
1622
  * Format for activity aggregation
1598
1623
  */
@@ -2590,6 +2615,16 @@ export interface BookmarkResponse {
2590
2615
  */
2591
2616
  created_at: Date;
2592
2617
 
2618
+ /**
2619
+ * ID of the bookmarked object
2620
+ */
2621
+ object_id: string;
2622
+
2623
+ /**
2624
+ * Type of the bookmarked object (activity or comment)
2625
+ */
2626
+ object_type: string;
2627
+
2593
2628
  /**
2594
2629
  * When the bookmark was last updated
2595
2630
  */
@@ -2599,6 +2634,10 @@ export interface BookmarkResponse {
2599
2634
 
2600
2635
  user: UserResponse;
2601
2636
 
2637
+ activity_id?: string;
2638
+
2639
+ comment?: CommentResponse;
2640
+
2602
2641
  /**
2603
2642
  * Custom data for the bookmark
2604
2643
  */
@@ -2679,6 +2718,26 @@ export interface BulkImageModerationResponse {
2679
2718
  task_id: string;
2680
2719
  }
2681
2720
 
2721
+ export interface BypassActionRequest {
2722
+ enabled?: boolean;
2723
+ }
2724
+
2725
+ export interface BypassRequest {
2726
+ /**
2727
+ * Whether to enable moderation bypass for this user
2728
+ */
2729
+ enabled: boolean;
2730
+
2731
+ /**
2732
+ * ID of the user to update
2733
+ */
2734
+ target_user_id: string;
2735
+ }
2736
+
2737
+ export interface BypassResponse {
2738
+ duration: string;
2739
+ }
2740
+
2682
2741
  export interface CallAcceptedEvent {
2683
2742
  call_cid: string;
2684
2743
 
@@ -3888,10 +3947,18 @@ export interface CallStatsParticipantCounts {
3888
3947
 
3889
3948
  sessions: number;
3890
3949
 
3950
+ sfus_used: number;
3951
+
3952
+ average_jitter_ms?: number;
3953
+
3954
+ average_latency_ms?: number;
3955
+
3891
3956
  call_event_count?: number;
3892
3957
 
3893
3958
  cq_score?: number;
3894
3959
 
3960
+ max_freezes_duration_ms?: number;
3961
+
3895
3962
  total_participant_duration?: number;
3896
3963
  }
3897
3964
 
@@ -3916,6 +3983,12 @@ export interface CallStatsParticipantSession {
3916
3983
 
3917
3984
  ended_at?: Date;
3918
3985
 
3986
+ freezes_duration_ms?: number;
3987
+
3988
+ jitter_ms?: number;
3989
+
3990
+ latency_ms?: number;
3991
+
3919
3992
  os?: string;
3920
3993
 
3921
3994
  publisher_type?: string;
@@ -3943,6 +4016,8 @@ export interface CallStatsReportReadyEvent {
3943
4016
  */
3944
4017
  session_id: string;
3945
4018
 
4019
+ counts: CallStatsParticipantCounts;
4020
+
3946
4021
  /**
3947
4022
  * The type of event, "call.report_ready" in this case
3948
4023
  */
@@ -3977,6 +4052,22 @@ export interface CallStatsReportSummaryResponse {
3977
4052
  quality_score?: number;
3978
4053
  }
3979
4054
 
4055
+ export interface CallStatsSessionResponse {
4056
+ call_id: string;
4057
+
4058
+ call_session_id: string;
4059
+
4060
+ call_type: string;
4061
+
4062
+ generated_at: Date;
4063
+
4064
+ counts: CallStatsParticipantCounts;
4065
+
4066
+ call_ended_at?: Date;
4067
+
4068
+ call_started_at?: Date;
4069
+ }
4070
+
3980
4071
  export interface CallTranscription {
3981
4072
  end_time: Date;
3982
4073
 
@@ -6150,6 +6241,8 @@ export interface CommentReactionUpdatedEvent {
6150
6241
  }
6151
6242
 
6152
6243
  export interface CommentResponse {
6244
+ bookmark_count: number;
6245
+
6153
6246
  /**
6154
6247
  * Confidence score of the comment
6155
6248
  */
@@ -7697,6 +7790,12 @@ export interface DeleteCommandResponse {
7697
7790
  name: string;
7698
7791
  }
7699
7792
 
7793
+ export interface DeleteCommentBookmarkResponse {
7794
+ duration: string;
7795
+
7796
+ bookmark: BookmarkResponse;
7797
+ }
7798
+
7700
7799
  export interface DeleteCommentReactionResponse {
7701
7800
  duration: string;
7702
7801
 
@@ -8181,6 +8280,23 @@ export interface DraftResponse {
8181
8280
  quoted_message?: MessageResponse;
8182
8281
  }
8183
8282
 
8283
+ export interface EMAUStatsResponse {
8284
+ /**
8285
+ * Per-day unique engaged user counts
8286
+ */
8287
+ daily: DailyMetricResponse[];
8288
+
8289
+ /**
8290
+ * Rolling 30-day engaged user count snapshots
8291
+ */
8292
+ last_30_days: DailyMetricResponse[];
8293
+
8294
+ /**
8295
+ * Calendar month-to-date engaged user count snapshots
8296
+ */
8297
+ month_to_date: DailyMetricResponse[];
8298
+ }
8299
+
8184
8300
  export interface EdgeResponse {
8185
8301
  continent_code: string;
8186
8302
 
@@ -8358,11 +8474,6 @@ export interface EnrichmentOptions {
8358
8474
  */
8359
8475
  enrich_own_followings?: boolean;
8360
8476
 
8361
- /**
8362
- * Default: false. When true, includes the top-level flat 'activities' array in responses for aggregated feeds. By default, aggregated feeds only return 'aggregated_activities'.
8363
- */
8364
- include_flat_activities?: boolean;
8365
-
8366
8477
  /**
8367
8478
  * Default: false. When true, includes score_vars in activity responses containing variable values used at ranking time.
8368
8479
  */
@@ -8498,6 +8609,8 @@ export interface EntityCreatorResponse {
8498
8609
 
8499
8610
  ban_expires?: Date;
8500
8611
 
8612
+ bypass_moderation?: boolean;
8613
+
8501
8614
  deactivated_at?: Date;
8502
8615
 
8503
8616
  deleted_at?: Date;
@@ -8978,6 +9091,8 @@ export interface FeedInput {
8978
9091
  members?: FeedMemberRequest[];
8979
9092
 
8980
9093
  custom?: Record<string, any>;
9094
+
9095
+ location?: Location;
8981
9096
  }
8982
9097
 
8983
9098
  export interface FeedMemberAddedEvent {
@@ -9222,6 +9337,8 @@ export interface FeedRequest {
9222
9337
  * Custom data for the feed
9223
9338
  */
9224
9339
  custom?: Record<string, any>;
9340
+
9341
+ location?: Location;
9225
9342
  }
9226
9343
 
9227
9344
  export interface FeedResponse {
@@ -9320,6 +9437,8 @@ export interface FeedResponse {
9320
9437
  */
9321
9438
  custom?: Record<string, any>;
9322
9439
 
9440
+ location?: Location;
9441
+
9323
9442
  own_membership?: FeedMemberResponse;
9324
9443
  }
9325
9444
 
@@ -9425,6 +9544,8 @@ export interface FeedSuggestionResponse {
9425
9544
  */
9426
9545
  custom?: Record<string, any>;
9427
9546
 
9547
+ location?: Location;
9548
+
9428
9549
  own_membership?: FeedMemberResponse;
9429
9550
  }
9430
9551
 
@@ -10205,6 +10326,8 @@ export interface FullUserResponse {
10205
10326
 
10206
10327
  ban_expires?: Date;
10207
10328
 
10329
+ bypass_moderation?: boolean;
10330
+
10208
10331
  deactivated_at?: Date;
10209
10332
 
10210
10333
  deleted_at?: Date;
@@ -10722,6 +10845,8 @@ export interface GetImportV2TaskResponse {
10722
10845
  updated_at: Date;
10723
10846
 
10724
10847
  settings: ImportV2TaskSettings;
10848
+
10849
+ result?: Record<string, any>;
10725
10850
  }
10726
10851
 
10727
10852
  export interface GetManyMessagesResponse {
@@ -11405,6 +11530,8 @@ export interface ImportV2TaskItem {
11405
11530
  updated_at: Date;
11406
11531
 
11407
11532
  settings: ImportV2TaskSettings;
11533
+
11534
+ result?: Record<string, any>;
11408
11535
  }
11409
11536
 
11410
11537
  export interface ImportV2TaskSettings {
@@ -11416,6 +11543,8 @@ export interface ImportV2TaskSettings {
11416
11543
 
11417
11544
  skip_references_check?: boolean;
11418
11545
 
11546
+ source?: string;
11547
+
11419
11548
  s3?: ImportV2TaskSettingsS3;
11420
11549
  }
11421
11550
 
@@ -12069,6 +12198,18 @@ export interface ListUserGroupsResponse {
12069
12198
  user_groups: UserGroupResponse[];
12070
12199
  }
12071
12200
 
12201
+ export interface Location {
12202
+ /**
12203
+ * Latitude coordinate
12204
+ */
12205
+ lat: number;
12206
+
12207
+ /**
12208
+ * Longitude coordinate
12209
+ */
12210
+ lng: number;
12211
+ }
12212
+
12072
12213
  export interface LocationResponse {
12073
12214
  /**
12074
12215
  * Continent code
@@ -15964,6 +16105,37 @@ export interface QueryCallSessionParticipantStatsTimelineResponse {
15964
16105
  events: CallParticipantTimeline[];
15965
16106
  }
15966
16107
 
16108
+ export interface QueryCallSessionStatsRequest {
16109
+ limit?: number;
16110
+
16111
+ next?: string;
16112
+
16113
+ prev?: string;
16114
+
16115
+ /**
16116
+ * Array of sort parameters
16117
+ */
16118
+ sort?: SortParamRequest[];
16119
+
16120
+ /**
16121
+ * Filter conditions to apply to the query
16122
+ */
16123
+ filter_conditions?: Record<string, any>;
16124
+ }
16125
+
16126
+ export interface QueryCallSessionStatsResponse {
16127
+ /**
16128
+ * Duration of the request in milliseconds
16129
+ */
16130
+ duration: string;
16131
+
16132
+ call_stats: CallStatsSessionResponse[];
16133
+
16134
+ next?: string;
16135
+
16136
+ prev?: string;
16137
+ }
16138
+
15967
16139
  export interface QueryCallStatsMapResponse {
15968
16140
  call_id: string;
15969
16141
 
@@ -16221,7 +16393,7 @@ export interface QueryCommentReactionsResponse {
16221
16393
 
16222
16394
  export interface QueryCommentsRequest {
16223
16395
  /**
16224
- * MongoDB-style filter for querying comments
16396
+ * Filter to apply to the query
16225
16397
  */
16226
16398
  filter: Record<string, any>;
16227
16399
 
@@ -16240,7 +16412,7 @@ export interface QueryCommentsRequest {
16240
16412
  prev?: string;
16241
16413
 
16242
16414
  /**
16243
- * first (oldest), last (newest) or top. One of: first, last, top, best, controversial
16415
+ * Array of sort parameters
16244
16416
  */
16245
16417
 
16246
16418
  sort?: 'first' | 'last' | 'top' | 'best' | 'controversial';
@@ -16438,6 +16610,8 @@ export interface QueryFeedsUsageStatsResponse {
16438
16610
  follows: DailyMetricStatsResponse;
16439
16611
 
16440
16612
  openai_requests: DailyMetricStatsResponse;
16613
+
16614
+ emau?: EMAUStatsResponse;
16441
16615
  }
16442
16616
 
16443
16617
  export interface QueryFollowsRequest {
@@ -17384,6 +17558,8 @@ export interface RankingConfig {
17384
17558
 
17385
17559
  export interface RawRecordSettings {
17386
17560
  mode: 'available' | 'disabled' | 'auto-on';
17561
+
17562
+ audio_only?: boolean;
17387
17563
  }
17388
17564
 
17389
17565
  export interface RawRecordingResponse {
@@ -17396,10 +17572,17 @@ export interface RawRecordingSettingsRequest {
17396
17572
  */
17397
17573
 
17398
17574
  mode: 'available' | 'disabled' | 'auto-on';
17575
+
17576
+ /**
17577
+ * If true, only audio tracks will be recorded
17578
+ */
17579
+ audio_only?: boolean;
17399
17580
  }
17400
17581
 
17401
17582
  export interface RawRecordingSettingsResponse {
17402
17583
  mode: 'available' | 'disabled' | 'auto-on';
17584
+
17585
+ audio_only?: boolean;
17403
17586
  }
17404
17587
 
17405
17588
  export interface Reaction {
@@ -20042,7 +20225,8 @@ export interface SubmitActionRequest {
20042
20225
  | 'end_call'
20043
20226
  | 'reject_appeal'
20044
20227
  | 'escalate'
20045
- | 'de_escalate';
20228
+ | 'de_escalate'
20229
+ | 'bypass';
20046
20230
 
20047
20231
  /**
20048
20232
  * UUID of the appeal to act on (required for reject_appeal, optional for other actions)
@@ -20060,6 +20244,8 @@ export interface SubmitActionRequest {
20060
20244
 
20061
20245
  block?: BlockActionRequestPayload;
20062
20246
 
20247
+ bypass?: BypassActionRequest;
20248
+
20063
20249
  custom?: CustomActionRequestPayload;
20064
20250
 
20065
20251
  delete_activity?: DeleteActivityRequestPayload;
@@ -20421,6 +20607,8 @@ export interface ThreadUpdatedEvent {
20421
20607
  }
20422
20608
 
20423
20609
  export interface ThreadedCommentResponse {
20610
+ bookmark_count: number;
20611
+
20424
20612
  confidence_score: number;
20425
20613
 
20426
20614
  created_at: Date;
@@ -21140,6 +21328,11 @@ export interface UpdateActivitiesPartialBatchRequest {
21140
21328
  * List of activity changes to apply. Each change specifies an activity ID and the fields to set/unset
21141
21329
  */
21142
21330
  changes: UpdateActivityPartialChangeRequest[];
21331
+
21332
+ /**
21333
+ * If true, forces moderation to run for server-side requests. By default, server-side requests skip moderation. Client-side requests always run moderation regardless of this field.
21334
+ */
21335
+ force_moderation?: boolean;
21143
21336
  }
21144
21337
 
21145
21338
  export interface UpdateActivitiesPartialBatchResponse {
@@ -21191,6 +21384,11 @@ export interface UpdateActivityPartialRequest {
21191
21384
  */
21192
21385
  enrich_own_fields?: boolean;
21193
21386
 
21387
+ /**
21388
+ * If true, forces moderation to run for server-side requests. By default, server-side requests skip moderation. Client-side requests always run moderation regardless of this field.
21389
+ */
21390
+ force_moderation?: boolean;
21391
+
21194
21392
  /**
21195
21393
  * If true, creates notification activities for newly mentioned users and deletes notifications for users no longer mentioned
21196
21394
  */
@@ -21239,6 +21437,11 @@ export interface UpdateActivityRequest {
21239
21437
  */
21240
21438
  expires_at?: Date;
21241
21439
 
21440
+ /**
21441
+ * If true, forces moderation to run for server-side requests. By default, server-side requests skip moderation. Client-side requests always run moderation regardless of this field.
21442
+ */
21443
+ force_moderation?: boolean;
21444
+
21242
21445
  /**
21243
21446
  * If true, creates notification activities for newly mentioned users and deletes notifications for users no longer mentioned
21244
21447
  */
@@ -21318,7 +21521,7 @@ export interface UpdateActivityRequest {
21318
21521
  */
21319
21522
  custom?: Record<string, any>;
21320
21523
 
21321
- location?: ActivityLocation;
21524
+ location?: Location;
21322
21525
 
21323
21526
  /**
21324
21527
  * Additional data for search indexing
@@ -21482,10 +21685,13 @@ export interface UpdateBookmarkFolderResponse {
21482
21685
 
21483
21686
  export interface UpdateBookmarkRequest {
21484
21687
  /**
21485
- * ID of the folder to move the bookmark to
21688
+ * ID of the folder containing the bookmark
21486
21689
  */
21487
21690
  folder_id?: string;
21488
21691
 
21692
+ /**
21693
+ * Move the bookmark to this folder (empty string removes the folder)
21694
+ */
21489
21695
  new_folder_id?: string;
21490
21696
 
21491
21697
  user_id?: string;
@@ -21929,6 +22135,35 @@ export interface UpdateCommandResponse {
21929
22135
  command?: Command;
21930
22136
  }
21931
22137
 
22138
+ export interface UpdateCommentBookmarkRequest {
22139
+ /**
22140
+ * ID of the folder containing the bookmark
22141
+ */
22142
+ folder_id?: string;
22143
+
22144
+ /**
22145
+ * Move the bookmark to this folder (empty string removes the folder)
22146
+ */
22147
+ new_folder_id?: string;
22148
+
22149
+ user_id?: string;
22150
+
22151
+ /**
22152
+ * Custom data for the bookmark
22153
+ */
22154
+ custom?: Record<string, any>;
22155
+
22156
+ new_folder?: AddFolderRequest;
22157
+
22158
+ user?: UserRequest;
22159
+ }
22160
+
22161
+ export interface UpdateCommentBookmarkResponse {
22162
+ duration: string;
22163
+
22164
+ bookmark: BookmarkResponse;
22165
+ }
22166
+
21932
22167
  export interface UpdateCommentPartialRequest {
21933
22168
  /**
21934
22169
  * @deprecated
@@ -21936,6 +22171,11 @@ export interface UpdateCommentPartialRequest {
21936
22171
  */
21937
22172
  copy_custom_to_notification?: boolean;
21938
22173
 
22174
+ /**
22175
+ * If true, forces moderation to run for server-side requests. By default, server-side requests skip moderation. Client-side requests always run moderation regardless of this field.
22176
+ */
22177
+ force_moderation?: boolean;
22178
+
21939
22179
  /**
21940
22180
  * Whether to handle mention notification changes
21941
22181
  */
@@ -21984,6 +22224,11 @@ export interface UpdateCommentRequest {
21984
22224
  */
21985
22225
  copy_custom_to_notification?: boolean;
21986
22226
 
22227
+ /**
22228
+ * If true, forces moderation to run for server-side requests. By default, server-side requests skip moderation. Client-side requests always run moderation regardless of this field.
22229
+ */
22230
+ force_moderation?: boolean;
22231
+
21987
22232
  /**
21988
22233
  * If true, creates notification activities for newly mentioned users and deletes notifications for users no longer mentioned
21989
22234
  */
@@ -22134,6 +22379,11 @@ export interface UpdateFeedMembersResponse {
22134
22379
  }
22135
22380
 
22136
22381
  export interface UpdateFeedRequest {
22382
+ /**
22383
+ * If true, removes the geographic location from the feed
22384
+ */
22385
+ clear_location?: boolean;
22386
+
22137
22387
  /**
22138
22388
  * ID of the new feed creator (owner)
22139
22389
  */
@@ -22163,6 +22413,8 @@ export interface UpdateFeedRequest {
22163
22413
  * Custom data for the feed
22164
22414
  */
22165
22415
  custom?: Record<string, any>;
22416
+
22417
+ location?: Location;
22166
22418
  }
22167
22419
 
22168
22420
  export interface UpdateFeedResponse {
@@ -22750,6 +23002,11 @@ export interface UpsertActivitiesRequest {
22750
23002
  * If true, enriches the activities' current_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.
22751
23003
  */
22752
23004
  enrich_own_fields?: boolean;
23005
+
23006
+ /**
23007
+ * If true, forces moderation to run for server-side requests. By default, server-side requests skip moderation. Client-side requests always run moderation regardless of this field.
23008
+ */
23009
+ force_moderation?: boolean;
22753
23010
  }
22754
23011
 
22755
23012
  export interface UpsertActivitiesResponse {
@@ -22798,6 +23055,9 @@ export interface UpsertConfigRequest {
22798
23055
  */
22799
23056
  team?: string;
22800
23057
 
23058
+ /**
23059
+ * Optional user ID to associate with the audit log entry
23060
+ */
22801
23061
  user_id?: string;
22802
23062
 
22803
23063
  ai_image_config?: AIImageConfig;
@@ -22861,29 +23121,69 @@ export interface UpsertExternalStorageResponse {
22861
23121
  }
22862
23122
 
22863
23123
  export interface UpsertModerationRuleRequest {
23124
+ /**
23125
+ * Unique rule name
23126
+ */
22864
23127
  name: string;
22865
23128
 
23129
+ /**
23130
+ * Type of rule: user, content, or call
23131
+ */
22866
23132
  rule_type: string;
22867
23133
 
23134
+ /**
23135
+ * Duration before rule can trigger again (e.g. 24h, 7d)
23136
+ */
22868
23137
  cooldown_period?: string;
22869
23138
 
23139
+ /**
23140
+ * Optional description of the rule
23141
+ */
22870
23142
  description?: string;
22871
23143
 
23144
+ /**
23145
+ * Whether the rule is active
23146
+ */
22872
23147
  enabled?: boolean;
22873
23148
 
23149
+ /**
23150
+ * Logical operator between conditions/groups: AND or OR
23151
+ */
22874
23152
  logic?: string;
22875
23153
 
23154
+ /**
23155
+ * Team scope for the rule
23156
+ */
22876
23157
  team?: string;
22877
23158
 
23159
+ /**
23160
+ * Optional user ID to associate with the audit log entry
23161
+ */
23162
+ user_id?: string;
23163
+
23164
+ /**
23165
+ * Escalation sequences for call rules
23166
+ */
22878
23167
  action_sequences?: CallRuleActionSequence[];
22879
23168
 
23169
+ /**
23170
+ * Flat list of conditions (legacy)
23171
+ */
22880
23172
  conditions?: RuleBuilderCondition[];
22881
23173
 
23174
+ /**
23175
+ * List of config keys this rule applies to
23176
+ */
22882
23177
  config_keys?: string[];
22883
23178
 
23179
+ /**
23180
+ * Nested condition groups
23181
+ */
22884
23182
  groups?: RuleBuilderConditionGroup[];
22885
23183
 
22886
23184
  action?: RuleBuilderAction;
23185
+
23186
+ user?: UserRequest;
22887
23187
  }
22888
23188
 
22889
23189
  export interface UpsertModerationRuleResponse {
@@ -23612,6 +23912,8 @@ export interface UserResponse {
23612
23912
  */
23613
23913
  ban_expires?: Date;
23614
23914
 
23915
+ bypass_moderation?: boolean;
23916
+
23615
23917
  /**
23616
23918
  * Date of deactivation
23617
23919
  */