@stream-io/node-sdk 0.7.51 → 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
 
@@ -8493,6 +8609,8 @@ export interface EntityCreatorResponse {
8493
8609
 
8494
8610
  ban_expires?: Date;
8495
8611
 
8612
+ bypass_moderation?: boolean;
8613
+
8496
8614
  deactivated_at?: Date;
8497
8615
 
8498
8616
  deleted_at?: Date;
@@ -8973,6 +9091,8 @@ export interface FeedInput {
8973
9091
  members?: FeedMemberRequest[];
8974
9092
 
8975
9093
  custom?: Record<string, any>;
9094
+
9095
+ location?: Location;
8976
9096
  }
8977
9097
 
8978
9098
  export interface FeedMemberAddedEvent {
@@ -9217,6 +9337,8 @@ export interface FeedRequest {
9217
9337
  * Custom data for the feed
9218
9338
  */
9219
9339
  custom?: Record<string, any>;
9340
+
9341
+ location?: Location;
9220
9342
  }
9221
9343
 
9222
9344
  export interface FeedResponse {
@@ -9315,6 +9437,8 @@ export interface FeedResponse {
9315
9437
  */
9316
9438
  custom?: Record<string, any>;
9317
9439
 
9440
+ location?: Location;
9441
+
9318
9442
  own_membership?: FeedMemberResponse;
9319
9443
  }
9320
9444
 
@@ -9420,6 +9544,8 @@ export interface FeedSuggestionResponse {
9420
9544
  */
9421
9545
  custom?: Record<string, any>;
9422
9546
 
9547
+ location?: Location;
9548
+
9423
9549
  own_membership?: FeedMemberResponse;
9424
9550
  }
9425
9551
 
@@ -10200,6 +10326,8 @@ export interface FullUserResponse {
10200
10326
 
10201
10327
  ban_expires?: Date;
10202
10328
 
10329
+ bypass_moderation?: boolean;
10330
+
10203
10331
  deactivated_at?: Date;
10204
10332
 
10205
10333
  deleted_at?: Date;
@@ -10717,6 +10845,8 @@ export interface GetImportV2TaskResponse {
10717
10845
  updated_at: Date;
10718
10846
 
10719
10847
  settings: ImportV2TaskSettings;
10848
+
10849
+ result?: Record<string, any>;
10720
10850
  }
10721
10851
 
10722
10852
  export interface GetManyMessagesResponse {
@@ -11400,6 +11530,8 @@ export interface ImportV2TaskItem {
11400
11530
  updated_at: Date;
11401
11531
 
11402
11532
  settings: ImportV2TaskSettings;
11533
+
11534
+ result?: Record<string, any>;
11403
11535
  }
11404
11536
 
11405
11537
  export interface ImportV2TaskSettings {
@@ -11411,6 +11543,8 @@ export interface ImportV2TaskSettings {
11411
11543
 
11412
11544
  skip_references_check?: boolean;
11413
11545
 
11546
+ source?: string;
11547
+
11414
11548
  s3?: ImportV2TaskSettingsS3;
11415
11549
  }
11416
11550
 
@@ -12064,6 +12198,18 @@ export interface ListUserGroupsResponse {
12064
12198
  user_groups: UserGroupResponse[];
12065
12199
  }
12066
12200
 
12201
+ export interface Location {
12202
+ /**
12203
+ * Latitude coordinate
12204
+ */
12205
+ lat: number;
12206
+
12207
+ /**
12208
+ * Longitude coordinate
12209
+ */
12210
+ lng: number;
12211
+ }
12212
+
12067
12213
  export interface LocationResponse {
12068
12214
  /**
12069
12215
  * Continent code
@@ -15959,6 +16105,37 @@ export interface QueryCallSessionParticipantStatsTimelineResponse {
15959
16105
  events: CallParticipantTimeline[];
15960
16106
  }
15961
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
+
15962
16139
  export interface QueryCallStatsMapResponse {
15963
16140
  call_id: string;
15964
16141
 
@@ -16216,7 +16393,7 @@ export interface QueryCommentReactionsResponse {
16216
16393
 
16217
16394
  export interface QueryCommentsRequest {
16218
16395
  /**
16219
- * MongoDB-style filter for querying comments
16396
+ * Filter to apply to the query
16220
16397
  */
16221
16398
  filter: Record<string, any>;
16222
16399
 
@@ -16235,7 +16412,7 @@ export interface QueryCommentsRequest {
16235
16412
  prev?: string;
16236
16413
 
16237
16414
  /**
16238
- * first (oldest), last (newest) or top. One of: first, last, top, best, controversial
16415
+ * Array of sort parameters
16239
16416
  */
16240
16417
 
16241
16418
  sort?: 'first' | 'last' | 'top' | 'best' | 'controversial';
@@ -16433,6 +16610,8 @@ export interface QueryFeedsUsageStatsResponse {
16433
16610
  follows: DailyMetricStatsResponse;
16434
16611
 
16435
16612
  openai_requests: DailyMetricStatsResponse;
16613
+
16614
+ emau?: EMAUStatsResponse;
16436
16615
  }
16437
16616
 
16438
16617
  export interface QueryFollowsRequest {
@@ -16901,8 +17080,14 @@ export interface QueryReactionsRequest {
16901
17080
 
16902
17081
  user_id?: string;
16903
17082
 
17083
+ /**
17084
+ * Array of sort parameters
17085
+ */
16904
17086
  sort?: SortParamRequest[];
16905
17087
 
17088
+ /**
17089
+ * Filter to apply to the query
17090
+ */
16906
17091
  filter?: Record<string, any>;
16907
17092
 
16908
17093
  user?: UserRequest;
@@ -17163,12 +17348,12 @@ export interface QueryThreadsRequest {
17163
17348
  user_id?: string;
17164
17349
 
17165
17350
  /**
17166
- * Sort conditions to apply to threads
17351
+ * Array of sort parameters
17167
17352
  */
17168
17353
  sort?: SortParamRequest[];
17169
17354
 
17170
17355
  /**
17171
- * Filter conditions to apply to threads
17356
+ * Filter to apply to the query
17172
17357
  */
17173
17358
  filter?: Record<string, any>;
17174
17359
 
@@ -17373,6 +17558,8 @@ export interface RankingConfig {
17373
17558
 
17374
17559
  export interface RawRecordSettings {
17375
17560
  mode: 'available' | 'disabled' | 'auto-on';
17561
+
17562
+ audio_only?: boolean;
17376
17563
  }
17377
17564
 
17378
17565
  export interface RawRecordingResponse {
@@ -17385,10 +17572,17 @@ export interface RawRecordingSettingsRequest {
17385
17572
  */
17386
17573
 
17387
17574
  mode: 'available' | 'disabled' | 'auto-on';
17575
+
17576
+ /**
17577
+ * If true, only audio tracks will be recorded
17578
+ */
17579
+ audio_only?: boolean;
17388
17580
  }
17389
17581
 
17390
17582
  export interface RawRecordingSettingsResponse {
17391
17583
  mode: 'available' | 'disabled' | 'auto-on';
17584
+
17585
+ audio_only?: boolean;
17392
17586
  }
17393
17587
 
17394
17588
  export interface Reaction {
@@ -20031,7 +20225,8 @@ export interface SubmitActionRequest {
20031
20225
  | 'end_call'
20032
20226
  | 'reject_appeal'
20033
20227
  | 'escalate'
20034
- | 'de_escalate';
20228
+ | 'de_escalate'
20229
+ | 'bypass';
20035
20230
 
20036
20231
  /**
20037
20232
  * UUID of the appeal to act on (required for reject_appeal, optional for other actions)
@@ -20049,6 +20244,8 @@ export interface SubmitActionRequest {
20049
20244
 
20050
20245
  block?: BlockActionRequestPayload;
20051
20246
 
20247
+ bypass?: BypassActionRequest;
20248
+
20052
20249
  custom?: CustomActionRequestPayload;
20053
20250
 
20054
20251
  delete_activity?: DeleteActivityRequestPayload;
@@ -20410,6 +20607,8 @@ export interface ThreadUpdatedEvent {
20410
20607
  }
20411
20608
 
20412
20609
  export interface ThreadedCommentResponse {
20610
+ bookmark_count: number;
20611
+
20413
20612
  confidence_score: number;
20414
20613
 
20415
20614
  created_at: Date;
@@ -21129,6 +21328,11 @@ export interface UpdateActivitiesPartialBatchRequest {
21129
21328
  * List of activity changes to apply. Each change specifies an activity ID and the fields to set/unset
21130
21329
  */
21131
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;
21132
21336
  }
21133
21337
 
21134
21338
  export interface UpdateActivitiesPartialBatchResponse {
@@ -21180,6 +21384,11 @@ export interface UpdateActivityPartialRequest {
21180
21384
  */
21181
21385
  enrich_own_fields?: boolean;
21182
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
+
21183
21392
  /**
21184
21393
  * If true, creates notification activities for newly mentioned users and deletes notifications for users no longer mentioned
21185
21394
  */
@@ -21228,6 +21437,11 @@ export interface UpdateActivityRequest {
21228
21437
  */
21229
21438
  expires_at?: Date;
21230
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
+
21231
21445
  /**
21232
21446
  * If true, creates notification activities for newly mentioned users and deletes notifications for users no longer mentioned
21233
21447
  */
@@ -21307,7 +21521,7 @@ export interface UpdateActivityRequest {
21307
21521
  */
21308
21522
  custom?: Record<string, any>;
21309
21523
 
21310
- location?: ActivityLocation;
21524
+ location?: Location;
21311
21525
 
21312
21526
  /**
21313
21527
  * Additional data for search indexing
@@ -21471,10 +21685,13 @@ export interface UpdateBookmarkFolderResponse {
21471
21685
 
21472
21686
  export interface UpdateBookmarkRequest {
21473
21687
  /**
21474
- * ID of the folder to move the bookmark to
21688
+ * ID of the folder containing the bookmark
21475
21689
  */
21476
21690
  folder_id?: string;
21477
21691
 
21692
+ /**
21693
+ * Move the bookmark to this folder (empty string removes the folder)
21694
+ */
21478
21695
  new_folder_id?: string;
21479
21696
 
21480
21697
  user_id?: string;
@@ -21918,6 +22135,35 @@ export interface UpdateCommandResponse {
21918
22135
  command?: Command;
21919
22136
  }
21920
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
+
21921
22167
  export interface UpdateCommentPartialRequest {
21922
22168
  /**
21923
22169
  * @deprecated
@@ -21925,6 +22171,11 @@ export interface UpdateCommentPartialRequest {
21925
22171
  */
21926
22172
  copy_custom_to_notification?: boolean;
21927
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
+
21928
22179
  /**
21929
22180
  * Whether to handle mention notification changes
21930
22181
  */
@@ -21973,6 +22224,11 @@ export interface UpdateCommentRequest {
21973
22224
  */
21974
22225
  copy_custom_to_notification?: boolean;
21975
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
+
21976
22232
  /**
21977
22233
  * If true, creates notification activities for newly mentioned users and deletes notifications for users no longer mentioned
21978
22234
  */
@@ -22123,6 +22379,11 @@ export interface UpdateFeedMembersResponse {
22123
22379
  }
22124
22380
 
22125
22381
  export interface UpdateFeedRequest {
22382
+ /**
22383
+ * If true, removes the geographic location from the feed
22384
+ */
22385
+ clear_location?: boolean;
22386
+
22126
22387
  /**
22127
22388
  * ID of the new feed creator (owner)
22128
22389
  */
@@ -22152,6 +22413,8 @@ export interface UpdateFeedRequest {
22152
22413
  * Custom data for the feed
22153
22414
  */
22154
22415
  custom?: Record<string, any>;
22416
+
22417
+ location?: Location;
22155
22418
  }
22156
22419
 
22157
22420
  export interface UpdateFeedResponse {
@@ -22739,6 +23002,11 @@ export interface UpsertActivitiesRequest {
22739
23002
  * If true, enriches the activities' current_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.
22740
23003
  */
22741
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;
22742
23010
  }
22743
23011
 
22744
23012
  export interface UpsertActivitiesResponse {
@@ -22787,6 +23055,9 @@ export interface UpsertConfigRequest {
22787
23055
  */
22788
23056
  team?: string;
22789
23057
 
23058
+ /**
23059
+ * Optional user ID to associate with the audit log entry
23060
+ */
22790
23061
  user_id?: string;
22791
23062
 
22792
23063
  ai_image_config?: AIImageConfig;
@@ -22850,29 +23121,69 @@ export interface UpsertExternalStorageResponse {
22850
23121
  }
22851
23122
 
22852
23123
  export interface UpsertModerationRuleRequest {
23124
+ /**
23125
+ * Unique rule name
23126
+ */
22853
23127
  name: string;
22854
23128
 
23129
+ /**
23130
+ * Type of rule: user, content, or call
23131
+ */
22855
23132
  rule_type: string;
22856
23133
 
23134
+ /**
23135
+ * Duration before rule can trigger again (e.g. 24h, 7d)
23136
+ */
22857
23137
  cooldown_period?: string;
22858
23138
 
23139
+ /**
23140
+ * Optional description of the rule
23141
+ */
22859
23142
  description?: string;
22860
23143
 
23144
+ /**
23145
+ * Whether the rule is active
23146
+ */
22861
23147
  enabled?: boolean;
22862
23148
 
23149
+ /**
23150
+ * Logical operator between conditions/groups: AND or OR
23151
+ */
22863
23152
  logic?: string;
22864
23153
 
23154
+ /**
23155
+ * Team scope for the rule
23156
+ */
22865
23157
  team?: string;
22866
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
+ */
22867
23167
  action_sequences?: CallRuleActionSequence[];
22868
23168
 
23169
+ /**
23170
+ * Flat list of conditions (legacy)
23171
+ */
22869
23172
  conditions?: RuleBuilderCondition[];
22870
23173
 
23174
+ /**
23175
+ * List of config keys this rule applies to
23176
+ */
22871
23177
  config_keys?: string[];
22872
23178
 
23179
+ /**
23180
+ * Nested condition groups
23181
+ */
22873
23182
  groups?: RuleBuilderConditionGroup[];
22874
23183
 
22875
23184
  action?: RuleBuilderAction;
23185
+
23186
+ user?: UserRequest;
22876
23187
  }
22877
23188
 
22878
23189
  export interface UpsertModerationRuleResponse {
@@ -23601,6 +23912,8 @@ export interface UserResponse {
23601
23912
  */
23602
23913
  ban_expires?: Date;
23603
23914
 
23915
+ bypass_moderation?: boolean;
23916
+
23604
23917
  /**
23605
23918
  * Date of deactivation
23606
23919
  */