@stream-io/node-sdk 0.7.62 → 0.7.63

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.
@@ -1,3 +1,17 @@
1
+ export interface AIAudioConfigRequest {
2
+ profile?: string;
3
+
4
+ rules?: BodyguardRule[];
5
+ }
6
+
7
+ export interface AIAudioConfigResponse {
8
+ enabled: boolean;
9
+
10
+ profile: string;
11
+
12
+ rules: BodyguardRule[];
13
+ }
14
+
1
15
  export interface AIImageConfig {
2
16
  async?: boolean;
3
17
 
@@ -231,6 +245,11 @@ export interface ActionLogResponse {
231
245
  */
232
246
  reason: string;
233
247
 
248
+ /**
249
+ * Classification of who triggered the action (e.g. user, moderator, automod, api_integration)
250
+ */
251
+ reporter_type: string;
252
+
234
253
  /**
235
254
  * ID of the user who was the target of the action
236
255
  */
@@ -972,8 +991,15 @@ export interface ActivityResponse {
972
991
  */
973
992
  friend_reactions?: FeedsReactionResponse[];
974
993
 
994
+ /**
995
+ * Recent shares of the activity, one entry per share (org-gated)
996
+ */
997
+ latest_shares?: ShareResponse[];
998
+
975
999
  current_feed?: FeedResponse;
976
1000
 
1001
+ i18n?: Record<string, string>;
1002
+
977
1003
  location?: Location;
978
1004
 
979
1005
  metrics?: Record<string, number>;
@@ -1176,6 +1202,8 @@ export interface AddActivityRequest {
1176
1202
  */
1177
1203
  create_notification_activity?: boolean;
1178
1204
 
1205
+ create_users?: boolean;
1206
+
1179
1207
  enrich_own_fields?: boolean;
1180
1208
 
1181
1209
  /**
@@ -1360,6 +1388,11 @@ export interface AddCommentReactionRequest {
1360
1388
 
1361
1389
  user_id?: string;
1362
1390
 
1391
+ /**
1392
+ * Optional list of feeds to create a reference (share) activity of the commented-on activity in. The reference activity's type mirrors the reaction type.
1393
+ */
1394
+ target_feeds?: string[];
1395
+
1363
1396
  /**
1364
1397
  * Optional custom data to add to the reaction
1365
1398
  */
@@ -1379,9 +1412,22 @@ export interface AddCommentReactionResponse {
1379
1412
  reaction: FeedsReactionResponse;
1380
1413
 
1381
1414
  /**
1382
- * Whether a notification activity was successfully created
1415
+ * Whether notification creation was accepted for asynchronous processing
1416
+ */
1417
+ notification_accepted?: boolean;
1418
+
1419
+ /**
1420
+ * @deprecated
1421
+ * Deprecated. Mirrors notification_accepted; use notification_accepted for async enqueue status Deprecated: use notification_accepted
1383
1422
  */
1384
1423
  notification_created?: boolean;
1424
+
1425
+ /**
1426
+ * ID of the async notification-creation task; poll GET /tasks/{id} for its status
1427
+ */
1428
+ notification_task_id?: string;
1429
+
1430
+ reference_activity?: ActivityResponse;
1385
1431
  }
1386
1432
 
1387
1433
  export interface AddCommentRequest {
@@ -1514,6 +1560,11 @@ export interface AddReactionRequest {
1514
1560
  */
1515
1561
  create_notification_activity?: boolean;
1516
1562
 
1563
+ /**
1564
+ * Server-side only. If true, auto-creates the reacting user identified by user_id when they don't already exist. Default: false.
1565
+ */
1566
+ create_users?: boolean;
1567
+
1517
1568
  /**
1518
1569
  * Whether to enforce unique reactions per user (remove other reaction types from the user when adding this one)
1519
1570
  */
@@ -1523,6 +1574,11 @@ export interface AddReactionRequest {
1523
1574
 
1524
1575
  user_id?: string;
1525
1576
 
1577
+ /**
1578
+ * Optional list of feeds to create a reference (share) activity of the original activity in. The reference activity's type mirrors the reaction type.
1579
+ */
1580
+ target_feeds?: string[];
1581
+
1526
1582
  /**
1527
1583
  * Custom data for the reaction
1528
1584
  */
@@ -1539,9 +1595,29 @@ export interface AddReactionResponse {
1539
1595
  reaction: FeedsReactionResponse;
1540
1596
 
1541
1597
  /**
1542
- * Whether a notification activity was successfully created
1598
+ * Whether notification creation was accepted for asynchronous processing
1599
+ */
1600
+ notification_accepted?: boolean;
1601
+
1602
+ /**
1603
+ * @deprecated
1604
+ * Deprecated. Mirrors notification_accepted; use notification_accepted for async enqueue status Deprecated: use notification_accepted
1543
1605
  */
1544
1606
  notification_created?: boolean;
1607
+
1608
+ /**
1609
+ * ID of the async notification-creation task; poll GET /tasks/{id} for its status
1610
+ */
1611
+ notification_task_id?: string;
1612
+
1613
+ reference_activity?: ActivityResponse;
1614
+ }
1615
+
1616
+ export interface AddSegmentTargetsRequest {
1617
+ /**
1618
+ * Target IDs
1619
+ */
1620
+ target_ids: string[];
1545
1621
  }
1546
1622
 
1547
1623
  export interface AddUserGroupMembersRequest {
@@ -1637,6 +1713,140 @@ export interface AggregationConfig {
1637
1713
  score_strategy?: 'sum' | 'max' | 'avg';
1638
1714
  }
1639
1715
 
1716
+ export interface AnalyzeImageField {
1717
+ /**
1718
+ * Per-image action: keep | flag | remove.
1719
+ */
1720
+ action?: string;
1721
+
1722
+ /**
1723
+ * Highest confidence (0–1) across detected classifications + sub-classifications. Convenience aggregate over the nested values in `classifications`.
1724
+ */
1725
+ confidence?: number;
1726
+
1727
+ /**
1728
+ * Set when moderation couldn't be determined for this image — action is absent.
1729
+ */
1730
+ error?: string;
1731
+
1732
+ /**
1733
+ * Echo of `content_ids[label]` when supplied on the request; omitted otherwise.
1734
+ */
1735
+ id?: string;
1736
+
1737
+ /**
1738
+ * Hierarchical list of L1 (parent) classifications. Each entry: `name`, `confidence` (0–1), and nested `subclassifications` (L2 leaves with their own confidence). Resolved against the app's effective taxonomy (custom taxonomy when configured, otherwise the standard Bodyguard catalogue).
1739
+ */
1740
+ classifications?: Classification[];
1741
+
1742
+ /**
1743
+ * Flat list of Bodyguard OCR text-moderation labels on the image's extracted text (e.g. VULGARITY, PII). Each entry: `name` + `severity`. Populated when BG's OCR pipeline returned non-empty results for this image.
1744
+ */
1745
+ ocr_classifications?: Classification[];
1746
+ }
1747
+
1748
+ export interface AnalyzeRequest {
1749
+ /**
1750
+ * When true, the response carries no verdicts (status `pending`) and per-modality results arrive via `moderation.text_analysis.complete` and `moderation.image_analysis.complete` webhooks. Image moderation runs on a background worker; text moderation runs synchronously and is then delivered via webhook.
1751
+ */
1752
+ async_response?: boolean;
1753
+
1754
+ /**
1755
+ * Moderation policy key. Optional in stateful mode, required in stateless mode.
1756
+ */
1757
+ config_key?: string;
1758
+
1759
+ /**
1760
+ * Original timestamp when the content was produced. Used as the `published_at` timestamp on per-content log entries that surface in `matched_contents` on aggregation-rule webhooks.
1761
+ */
1762
+ content_published_at?: Date;
1763
+
1764
+ /**
1765
+ * ID of the user who created the content. Required with entity_type + entity_id; omit all three for stateless mode.
1766
+ */
1767
+ entity_creator_id?: string;
1768
+
1769
+ /**
1770
+ * Caller-supplied content identifier. Required with entity_type + entity_creator_id; omit all three for stateless mode.
1771
+ */
1772
+ entity_id?: string;
1773
+
1774
+ /**
1775
+ * Caller-defined entity type. Required with entity_id + entity_creator_id; omit all three for stateless mode.
1776
+ */
1777
+ entity_type?: string;
1778
+
1779
+ user_id?: string;
1780
+
1781
+ /**
1782
+ * Optional map from a content label (either a `texts` key or an `image:<key>` multipart label) to a caller-supplied per-instance identifier. Echoed on per-field verdicts and surfaced in `matched_contents` when an aggregation rule fires.
1783
+ */
1784
+ content_ids?: Record<string, string>;
1785
+
1786
+ /**
1787
+ * Arbitrary metadata surfaced in the dashboard.
1788
+ */
1789
+ custom?: Record<string, any>;
1790
+
1791
+ /**
1792
+ * Named text fields to moderate, keyed by caller label (e.g. title, description).
1793
+ */
1794
+ texts?: Record<string, string>;
1795
+
1796
+ user?: UserRequest;
1797
+ }
1798
+
1799
+ export interface AnalyzeResponse {
1800
+ duration: string;
1801
+
1802
+ /**
1803
+ * Always `complete` — /analyze is sync-only and the full verdict is in the response.
1804
+ */
1805
+ status: string;
1806
+
1807
+ /**
1808
+ * Per-image moderation verdicts keyed by caller label.
1809
+ */
1810
+ images?: Record<string, AnalyzeImageField>;
1811
+
1812
+ /**
1813
+ * Per-text-field moderation verdicts keyed by caller label.
1814
+ */
1815
+ texts?: Record<string, AnalyzeTextField>;
1816
+ }
1817
+
1818
+ export interface AnalyzeTextField {
1819
+ /**
1820
+ * Per-field action: keep | flag | remove.
1821
+ */
1822
+ action?: string;
1823
+
1824
+ /**
1825
+ * Set when moderation couldn't be determined for this field — action is absent.
1826
+ */
1827
+ error?: string;
1828
+
1829
+ /**
1830
+ * Echo of `content_ids[label]` when supplied on the request; omitted otherwise.
1831
+ */
1832
+ id?: string;
1833
+
1834
+ /**
1835
+ * Detected language code.
1836
+ */
1837
+ language?: string;
1838
+
1839
+ /**
1840
+ * Aggregate severity across the field: LOW | MEDIUM | HIGH | CRITICAL.
1841
+ */
1842
+ severity?: string;
1843
+
1844
+ /**
1845
+ * Flat list of detected Bodyguard text labels (e.g. INSULT, VULGARITY). Each entry carries `name` and `severity`.
1846
+ */
1847
+ classifications?: Classification[];
1848
+ }
1849
+
1640
1850
  export interface AppResponseFields {
1641
1851
  allow_multi_user_devices: boolean;
1642
1852
 
@@ -1670,6 +1880,8 @@ export interface AppResponseFields {
1670
1880
 
1671
1881
  moderation_enabled: boolean;
1672
1882
 
1883
+ moderation_flood_rules_enabled: boolean;
1884
+
1673
1885
  moderation_llm_configurability_enabled: boolean;
1674
1886
 
1675
1887
  moderation_multitenant_blocklist_enabled: boolean;
@@ -1732,14 +1944,20 @@ export interface AppResponseFields {
1732
1944
 
1733
1945
  push_notifications: PushNotificationFields;
1734
1946
 
1947
+ before_message_send_hook_attempt_timeout_ms?: number;
1948
+
1735
1949
  before_message_send_hook_url?: string;
1736
1950
 
1737
- before_message_send_hook_attempt_timeout_ms?: number;
1951
+ chat_primary_use_case?: string;
1952
+
1953
+ moderation_onboarding_complete?: boolean;
1738
1954
 
1739
1955
  moderation_s3_image_access_role_arn?: string;
1740
1956
 
1741
1957
  revoke_tokens_issued_before?: Date;
1742
1958
 
1959
+ video_primary_use_case?: string;
1960
+
1743
1961
  allowed_flag_reasons?: string[];
1744
1962
 
1745
1963
  geofences?: GeofenceResponse[];
@@ -1810,18 +2028,72 @@ export interface AppealItemResponse {
1810
2028
  */
1811
2029
  updated_at: Date;
1812
2030
 
2031
+ /**
2032
+ * Text severity level assigned by the AI provider
2033
+ */
2034
+ ai_text_severity?: string;
2035
+
2036
+ /**
2037
+ * CID of the channel the entity belongs to, if applicable
2038
+ */
2039
+ channel_cid?: string;
2040
+
2041
+ /**
2042
+ * Moderation policy key that was applied
2043
+ */
2044
+ config_key?: string;
2045
+
1813
2046
  /**
1814
2047
  * Decision Reason of the Appeal Item
1815
2048
  */
1816
2049
  decision_reason?: string;
1817
2050
 
2051
+ /**
2052
+ * Action recommended by the automated moderation system (e.g. flag, remove, shadow)
2053
+ */
2054
+ recommended_action?: string;
2055
+
2056
+ /**
2057
+ * ID of the review queue item linked to this appeal, if the appeal was submitted with one
2058
+ */
2059
+ review_queue_item_id?: string;
2060
+
2061
+ /**
2062
+ * Overall content severity score (1–100)
2063
+ */
2064
+ severity?: number;
2065
+
2066
+ /**
2067
+ * Full chronological history of all moderation actions on the review queue item
2068
+ */
2069
+ actions?: ActionLogResponse[];
2070
+
1818
2071
  /**
1819
2072
  * Attachments(e.g. Images) of the Appeal Item
1820
2073
  */
1821
2074
  attachments?: string[];
1822
2075
 
2076
+ /**
2077
+ * Classification labels from automated and manual review
2078
+ */
2079
+ flag_labels?: string[];
2080
+
2081
+ /**
2082
+ * Types of flags applied to the entity (e.g. user_report, bodyguard)
2083
+ */
2084
+ flag_types?: string[];
2085
+
2086
+ /**
2087
+ * Per-provider flag records explaining why the action was taken
2088
+ */
2089
+ flags?: ModerationFlagResponse[];
2090
+
1823
2091
  entity_content?: ModerationPayload;
1824
2092
 
2093
+ moderation_action?: ActionLogResponse;
2094
+
2095
+ original_moderation_action?: ActionLogResponse;
2096
+
1825
2097
  user?: UserResponse;
1826
2098
  }
1827
2099
 
@@ -1853,6 +2125,11 @@ export interface AppealRequest {
1853
2125
  */
1854
2126
  entity_type: string;
1855
2127
 
2128
+ /**
2129
+ * ID of the review queue item (flagged message) that triggered the ban. Applicable only for user ban appeals.
2130
+ */
2131
+ review_queue_item_id?: string;
2132
+
1856
2133
  user_id?: string;
1857
2134
 
1858
2135
  /**
@@ -1944,6 +2221,24 @@ export interface AsyncExportModerationLogsEvent {
1944
2221
  received_at?: Date;
1945
2222
  }
1946
2223
 
2224
+ export interface AsyncExportReviewQueueEvent {
2225
+ created_at: Date;
2226
+
2227
+ finished_at: Date;
2228
+
2229
+ started_at: Date;
2230
+
2231
+ task_id: string;
2232
+
2233
+ url: string;
2234
+
2235
+ custom: Record<string, any>;
2236
+
2237
+ type: string;
2238
+
2239
+ received_at?: Date;
2240
+ }
2241
+
1947
2242
  export interface AsyncExportUsersEvent {
1948
2243
  created_at: Date;
1949
2244
 
@@ -2232,6 +2527,11 @@ export interface BanInfoResponse {
2232
2527
  */
2233
2528
  created_at: Date;
2234
2529
 
2530
+ /**
2531
+ * The channel this ban applies to. Empty if this is an app-wide (global) ban rather than a per-channel ban.
2532
+ */
2533
+ channel_cid?: string;
2534
+
2235
2535
  /**
2236
2536
  * When the ban expires
2237
2537
  */
@@ -2247,6 +2547,8 @@ export interface BanInfoResponse {
2247
2547
  */
2248
2548
  shadow?: boolean;
2249
2549
 
2550
+ channel?: ChannelMetadata;
2551
+
2250
2552
  created_by?: UserResponse;
2251
2553
 
2252
2554
  user?: UserResponse;
@@ -2432,10 +2734,14 @@ export interface BlockListOptions {
2432
2734
  }
2433
2735
 
2434
2736
  export interface BlockListResponse {
2737
+ is_confusable_folding_enabled: boolean;
2738
+
2435
2739
  is_leet_check_enabled: boolean;
2436
2740
 
2437
2741
  is_plural_check_enabled: boolean;
2438
2742
 
2743
+ is_substring_matching_enabled: boolean;
2744
+
2439
2745
  /**
2440
2746
  * Block list name
2441
2747
  */
@@ -2458,6 +2764,8 @@ export interface BlockListResponse {
2458
2764
 
2459
2765
  id?: string;
2460
2766
 
2767
+ owner_user_id?: string;
2768
+
2461
2769
  team?: string;
2462
2770
 
2463
2771
  /**
@@ -2469,6 +2777,7 @@ export interface BlockListResponse {
2469
2777
  export interface BlockListRule {
2470
2778
  action:
2471
2779
  | 'flag'
2780
+ | 'mask'
2472
2781
  | 'mask_flag'
2473
2782
  | 'shadow'
2474
2783
  | 'remove'
@@ -2565,11 +2874,22 @@ export interface BodyguardImageAnalysisConfig {
2565
2874
  rules?: BodyguardRule[];
2566
2875
  }
2567
2876
 
2877
+ export interface BodyguardProfileSummary {
2878
+ name: string;
2879
+
2880
+ display_name?: string;
2881
+
2882
+ text_type?: string;
2883
+ }
2884
+
2568
2885
  export interface BodyguardRule {
2569
2886
  label: string;
2570
2887
 
2571
2888
  action?:
2889
+ | 'keep'
2572
2890
  | 'flag'
2891
+ | 'mask'
2892
+ | 'mask_flag'
2573
2893
  | 'shadow'
2574
2894
  | 'remove'
2575
2895
  | 'bounce'
@@ -2581,7 +2901,9 @@ export interface BodyguardRule {
2581
2901
 
2582
2902
  export interface BodyguardSeverityRule {
2583
2903
  action:
2904
+ | 'keep'
2584
2905
  | 'flag'
2906
+ | 'mask'
2585
2907
  | 'shadow'
2586
2908
  | 'remove'
2587
2909
  | 'bounce'
@@ -2793,31 +3115,129 @@ export interface BrowserDataResponse {
2793
3115
  version?: string;
2794
3116
  }
2795
3117
 
2796
- export interface BulkImageModerationRequest {
3118
+ export interface BulkActionAppealsRequest {
2797
3119
  /**
2798
- * URL to CSV file containing image URLs to moderate
3120
+ * Action to apply: unban, restore, unblock, mark_reviewed, or reject_appeal
2799
3121
  */
2800
- csv_file: string;
2801
- }
2802
3122
 
2803
- export interface BulkImageModerationResponse {
2804
- duration: string;
3123
+ action_type:
3124
+ | 'unban'
3125
+ | 'restore'
3126
+ | 'unblock'
3127
+ | 'mark_reviewed'
3128
+ | 'reject_appeal';
2805
3129
 
2806
3130
  /**
2807
- * ID of the task for processing the bulk image moderation
3131
+ * List of appeal UUIDs to process
2808
3132
  */
2809
- task_id: string;
2810
- }
3133
+ appeal_ids: string[];
2811
3134
 
2812
- export interface BypassActionRequest {
2813
- enabled?: boolean;
2814
- }
3135
+ user_id?: string;
2815
3136
 
2816
- export interface BypassRequest {
2817
- /**
2818
- * Whether to enable moderation bypass for this user
2819
- */
2820
- enabled: boolean;
3137
+ mark_reviewed?: MarkReviewedRequestPayload;
3138
+
3139
+ reject_appeal?: RejectAppealRequestPayload;
3140
+
3141
+ restore?: RestoreActionRequestPayload;
3142
+
3143
+ unban?: UnbanActionRequestPayload;
3144
+
3145
+ unblock?: UnblockActionRequestPayload;
3146
+
3147
+ user?: UserRequest;
3148
+ }
3149
+
3150
+ export interface BulkActionAppealsResponse {
3151
+ duration: string;
3152
+
3153
+ /**
3154
+ * Appeals that could not be processed, with per-item error messages
3155
+ */
3156
+ errors: BulkAppealError[];
3157
+
3158
+ /**
3159
+ * Successfully processed appeals
3160
+ */
3161
+ results: BulkAppealResult[];
3162
+ }
3163
+
3164
+ export interface BulkAppealError {
3165
+ appeal_id: string;
3166
+
3167
+ error: string;
3168
+ }
3169
+
3170
+ export interface BulkAppealResult {
3171
+ appeal_id: string;
3172
+
3173
+ appeal_item?: AppealItemResponse;
3174
+ }
3175
+
3176
+ export interface BulkDeleteActionConfigRequest {
3177
+ /**
3178
+ * UUIDs of the action configs to delete
3179
+ */
3180
+ ids: string[];
3181
+
3182
+ user_id?: string;
3183
+
3184
+ user?: UserRequest;
3185
+ }
3186
+
3187
+ export interface BulkDeleteActionConfigResponse {
3188
+ /**
3189
+ * Number of action configs deleted
3190
+ */
3191
+ deleted: number;
3192
+
3193
+ duration: string;
3194
+ }
3195
+
3196
+ export interface BulkImageModerationRequest {
3197
+ /**
3198
+ * URL to CSV file containing image URLs to moderate
3199
+ */
3200
+ csv_file: string;
3201
+ }
3202
+
3203
+ export interface BulkImageModerationResponse {
3204
+ duration: string;
3205
+
3206
+ /**
3207
+ * ID of the task for processing the bulk image moderation
3208
+ */
3209
+ task_id: string;
3210
+ }
3211
+
3212
+ export interface BulkUpsertActionConfigRequest {
3213
+ /**
3214
+ * List of action configs to create or update
3215
+ */
3216
+ action_configs: UpsertActionConfigItem[];
3217
+
3218
+ user_id?: string;
3219
+
3220
+ user?: UserRequest;
3221
+ }
3222
+
3223
+ export interface BulkUpsertActionConfigResponse {
3224
+ duration: string;
3225
+
3226
+ /**
3227
+ * The created or updated action configs in the same order as the request
3228
+ */
3229
+ action_configs: ModerationActionConfigResponse[];
3230
+ }
3231
+
3232
+ export interface BypassActionRequest {
3233
+ enabled?: boolean;
3234
+ }
3235
+
3236
+ export interface BypassRequest {
3237
+ /**
3238
+ * Whether to enable moderation bypass for this user
3239
+ */
3240
+ enabled: boolean;
2821
3241
 
2822
3242
  /**
2823
3243
  * ID of the user to update
@@ -3873,6 +4293,8 @@ export interface CallSettingsRequest {
3873
4293
 
3874
4294
  broadcasting?: BroadcastSettingsRequest;
3875
4295
 
4296
+ encryption?: EncryptionSettingsRequest;
4297
+
3876
4298
  frame_recording?: FrameRecordingSettingsRequest;
3877
4299
 
3878
4300
  geofencing?: GeofenceSettingsRequest;
@@ -3907,6 +4329,8 @@ export interface CallSettingsResponse {
3907
4329
 
3908
4330
  broadcasting: BroadcastSettingsResponse;
3909
4331
 
4332
+ encryption: EncryptionSettingsResponse;
4333
+
3910
4334
  frame_recording: FrameRecordingSettingsResponse;
3911
4335
 
3912
4336
  geofencing: GeofenceSettingsResponse;
@@ -4044,12 +4468,16 @@ export interface CallStatsParticipantCounts {
4044
4468
 
4045
4469
  average_latency_ms?: number;
4046
4470
 
4471
+ avg_user_rating?: number;
4472
+
4047
4473
  call_event_count?: number;
4048
4474
 
4049
4475
  cq_score?: number;
4050
4476
 
4051
4477
  max_freezes_duration_ms?: number;
4052
4478
 
4479
+ min_user_rating?: number;
4480
+
4053
4481
  total_participant_duration?: number;
4054
4482
  }
4055
4483
 
@@ -4076,6 +4504,8 @@ export interface CallStatsParticipantSession {
4076
4504
 
4077
4505
  freezes_duration_ms?: number;
4078
4506
 
4507
+ ingress?: string;
4508
+
4079
4509
  jitter_ms?: number;
4080
4510
 
4081
4511
  latency_ms?: number;
@@ -4380,8 +4810,6 @@ export interface CampaignChannelMember {
4380
4810
  export interface CampaignChannelTemplate {
4381
4811
  type: string;
4382
4812
 
4383
- custom: Record<string, any>;
4384
-
4385
4813
  id?: string;
4386
4814
 
4387
4815
  team?: string;
@@ -4389,6 +4817,8 @@ export interface CampaignChannelTemplate {
4389
4817
  members?: string[];
4390
4818
 
4391
4819
  members_template?: CampaignChannelMember[];
4820
+
4821
+ custom?: Record<string, any>;
4392
4822
  }
4393
4823
 
4394
4824
  export interface CampaignCompletedEvent {
@@ -4404,15 +4834,15 @@ export interface CampaignCompletedEvent {
4404
4834
  }
4405
4835
 
4406
4836
  export interface CampaignMessageTemplate {
4407
- poll_id: string;
4837
+ text: string;
4408
4838
 
4409
- searchable: boolean;
4839
+ poll_id?: string;
4410
4840
 
4411
- text: string;
4841
+ searchable?: boolean;
4412
4842
 
4413
- attachments: Attachment[];
4843
+ attachments?: Attachment[];
4414
4844
 
4415
- custom: Record<string, any>;
4845
+ custom?: Record<string, any>;
4416
4846
  }
4417
4847
 
4418
4848
  export interface CampaignResponse {
@@ -4491,6 +4921,15 @@ export interface CampaignStatsResponse {
4491
4921
  stats_users_sent: number;
4492
4922
  }
4493
4923
 
4924
+ export interface CancelImportV2TaskRequest {}
4925
+
4926
+ export interface CancelImportV2TaskResponse {
4927
+ /**
4928
+ * Duration of the request in milliseconds
4929
+ */
4930
+ duration: string;
4931
+ }
4932
+
4494
4933
  export interface CastPollVoteRequest {
4495
4934
  user_id?: string;
4496
4935
 
@@ -4499,6 +4938,26 @@ export interface CastPollVoteRequest {
4499
4938
  vote?: VoteData;
4500
4939
  }
4501
4940
 
4941
+ export interface ChangeFeedVisibilityRequest {
4942
+ /**
4943
+ * Feed visibility level: public, visible, followers, members, or private
4944
+ */
4945
+
4946
+ visibility: 'public' | 'visible' | 'followers' | 'members' | 'private';
4947
+
4948
+ /**
4949
+ * What to do with existing pending follows when loosening visibility from 'followers': auto_approve (default) or reject
4950
+ */
4951
+
4952
+ pending_follows_action?: 'auto_approve' | 'reject';
4953
+ }
4954
+
4955
+ export interface ChangeFeedVisibilityResponse {
4956
+ duration: string;
4957
+
4958
+ feed: FeedResponse;
4959
+ }
4960
+
4502
4961
  export interface ChannelBatchCompletedEvent {
4503
4962
  batch_created_at: Date;
4504
4963
 
@@ -4661,6 +5120,77 @@ export interface ChannelConfig {
4661
5120
  chat_preferences?: ChatPreferences;
4662
5121
  }
4663
5122
 
5123
+ export interface ChannelConfigOverrides {
5124
+ blocklist?: string;
5125
+
5126
+ blocklist_behavior?: 'flag' | 'block';
5127
+
5128
+ /**
5129
+ * Enable/disable message counting
5130
+ */
5131
+ count_messages?: boolean;
5132
+
5133
+ /**
5134
+ * Overrides max message length
5135
+ */
5136
+ max_message_length?: number;
5137
+
5138
+ /**
5139
+ * Overrides the push notification level for this channel
5140
+ */
5141
+
5142
+ push_level?: 'all' | 'all_mentions' | 'mentions' | 'direct_mentions' | 'none';
5143
+
5144
+ /**
5145
+ * Enables message quotes
5146
+ */
5147
+ quotes?: boolean;
5148
+
5149
+ /**
5150
+ * Enables or disables reactions
5151
+ */
5152
+ reactions?: boolean;
5153
+
5154
+ /**
5155
+ * Enables message replies (threads)
5156
+ */
5157
+ replies?: boolean;
5158
+
5159
+ /**
5160
+ * Enable/disable shared locations
5161
+ */
5162
+ shared_locations?: boolean;
5163
+
5164
+ /**
5165
+ * Enables or disables typing events
5166
+ */
5167
+ typing_events?: boolean;
5168
+
5169
+ /**
5170
+ * Enables or disables file uploads
5171
+ */
5172
+ uploads?: boolean;
5173
+
5174
+ /**
5175
+ * Enables or disables URL enrichment
5176
+ */
5177
+ url_enrichment?: boolean;
5178
+
5179
+ /**
5180
+ * Enable/disable user message reminders
5181
+ */
5182
+ user_message_reminders?: boolean;
5183
+
5184
+ /**
5185
+ * List of commands that channel supports
5186
+ */
5187
+ commands?: string[];
5188
+
5189
+ chat_preferences?: ChatPreferences;
5190
+
5191
+ grants?: Record<string, string[]>;
5192
+ }
5193
+
4664
5194
  export interface ChannelConfigWithInfo {
4665
5195
  automod: 'disabled' | 'simple' | 'AI';
4666
5196
 
@@ -4797,7 +5327,7 @@ export interface ChannelDataUpdate {
4797
5327
 
4798
5328
  team?: string;
4799
5329
 
4800
- config_overrides?: ChannelConfig;
5330
+ config_overrides?: ChannelConfigOverrides;
4801
5331
 
4802
5332
  custom?: Record<string, any>;
4803
5333
  }
@@ -5015,7 +5545,7 @@ export interface ChannelInput {
5015
5545
 
5016
5546
  members?: ChannelMemberRequest[];
5017
5547
 
5018
- config_overrides?: ChannelConfig;
5548
+ config_overrides?: ChannelConfigOverrides;
5019
5549
 
5020
5550
  created_by?: UserRequest;
5021
5551
 
@@ -5044,6 +5574,18 @@ export interface ChannelInputRequest {
5044
5574
  custom?: Record<string, any>;
5045
5575
  }
5046
5576
 
5577
+ export interface ChannelMemberPartialResponse {
5578
+ /**
5579
+ * Role of the member in the channel
5580
+ */
5581
+ channel_role: string;
5582
+
5583
+ /**
5584
+ * Whether the user muted notifications for this channel
5585
+ */
5586
+ notifications_muted: boolean;
5587
+ }
5588
+
5047
5589
  export interface ChannelMemberRequest {
5048
5590
  user_id: string;
5049
5591
 
@@ -5132,6 +5674,12 @@ export interface ChannelMemberResponse {
5132
5674
  user?: UserResponse;
5133
5675
  }
5134
5676
 
5677
+ export interface ChannelMessageCountRuleParameters {
5678
+ operator?: string;
5679
+
5680
+ threshold?: number;
5681
+ }
5682
+
5135
5683
  export interface ChannelMessagesResponse {
5136
5684
  /**
5137
5685
  * List of messages
@@ -5141,6 +5689,26 @@ export interface ChannelMessagesResponse {
5141
5689
  channel: ChannelResponse;
5142
5690
  }
5143
5691
 
5692
+ export interface ChannelMetadata {
5693
+ cid: string;
5694
+
5695
+ id: string;
5696
+
5697
+ type: string;
5698
+
5699
+ custom: Record<string, any>;
5700
+
5701
+ last_message_at?: Date;
5702
+
5703
+ member_count?: number;
5704
+
5705
+ message_count?: number;
5706
+
5707
+ push_level?: string;
5708
+
5709
+ team?: string;
5710
+ }
5711
+
5144
5712
  export interface ChannelMute {
5145
5713
  /**
5146
5714
  * Date/time of creation
@@ -5192,6 +5760,7 @@ export const ChannelOwnCapability = {
5192
5760
  CAST_POLL_VOTE: 'cast-poll-vote',
5193
5761
  CONNECT_EVENTS: 'connect-events',
5194
5762
  CREATE_ATTACHMENT: 'create-attachment',
5763
+ CREATE_MENTION: 'create-mention',
5195
5764
  DELETE_ANY_MESSAGE: 'delete-any-message',
5196
5765
  DELETE_CHANNEL: 'delete-channel',
5197
5766
  DELETE_OWN_MESSAGE: 'delete-own-message',
@@ -5201,6 +5770,10 @@ export const ChannelOwnCapability = {
5201
5770
  JOIN_CHANNEL: 'join-channel',
5202
5771
  LEAVE_CHANNEL: 'leave-channel',
5203
5772
  MUTE_CHANNEL: 'mute-channel',
5773
+ NOTIFY_CHANNEL: 'notify-channel',
5774
+ NOTIFY_GROUP: 'notify-group',
5775
+ NOTIFY_HERE: 'notify-here',
5776
+ NOTIFY_ROLE: 'notify-role',
5204
5777
  PIN_MESSAGE: 'pin-message',
5205
5778
  QUERY_POLL_VOTES: 'query-poll-votes',
5206
5779
  QUOTE_MESSAGE: 'quote-message',
@@ -5758,42 +6331,202 @@ export interface ChatActivityStatsResponse {
5758
6331
  messages?: MessageStatsResponse;
5759
6332
  }
5760
6333
 
5761
- export interface ChatPreferences {
5762
- channel_mentions?: string;
6334
+ export interface ChatDraftPayloadResponse {
6335
+ id: string;
5763
6336
 
5764
- default_preference?: string;
6337
+ text: string;
5765
6338
 
5766
- direct_mentions?: string;
6339
+ custom: Record<string, any>;
5767
6340
 
5768
- distinct_channel_messages?: string;
6341
+ html?: string;
5769
6342
 
5770
- group_mentions?: string;
6343
+ mml?: string;
5771
6344
 
5772
- here_mentions?: string;
6345
+ parent_id?: string;
5773
6346
 
5774
- role_mentions?: string;
6347
+ poll_id?: string;
5775
6348
 
5776
- thread_replies?: string;
5777
- }
6349
+ quoted_message_id?: string;
5778
6350
 
5779
- export interface ChatPreferencesInput {
5780
- channel_mentions?: 'all' | 'none';
6351
+ show_in_channel?: boolean;
5781
6352
 
5782
- default_preference?: 'all' | 'none';
6353
+ silent?: boolean;
5783
6354
 
5784
- direct_mentions?: 'all' | 'none';
6355
+ type?: string;
5785
6356
 
5786
- group_mentions?: 'all' | 'none';
6357
+ attachments?: Attachment[];
5787
6358
 
5788
- here_mentions?: 'all' | 'none';
6359
+ mentioned_users?: UserResponse[];
6360
+ }
5789
6361
 
5790
- role_mentions?: 'all' | 'none';
6362
+ export interface ChatDraftResponse {
6363
+ channel_cid: string;
5791
6364
 
5792
- thread_replies?: 'all' | 'none';
5793
- }
6365
+ created_at: Date;
5794
6366
 
5795
- export interface ChatPreferencesResponse {
5796
- channel_mentions?: string;
6367
+ message: ChatDraftPayloadResponse;
6368
+
6369
+ parent_id?: string;
6370
+
6371
+ parent_message?: ChatMessageResponse;
6372
+
6373
+ quoted_message?: ChatMessageResponse;
6374
+ }
6375
+
6376
+ export interface ChatMessageResponse {
6377
+ cid: string;
6378
+
6379
+ created_at: Date;
6380
+
6381
+ deleted_reply_count: number;
6382
+
6383
+ html: string;
6384
+
6385
+ id: string;
6386
+
6387
+ mentioned_channel: boolean;
6388
+
6389
+ mentioned_here: boolean;
6390
+
6391
+ pinned: boolean;
6392
+
6393
+ reply_count: number;
6394
+
6395
+ shadowed: boolean;
6396
+
6397
+ silent: boolean;
6398
+
6399
+ text: string;
6400
+
6401
+ type: string;
6402
+
6403
+ updated_at: Date;
6404
+
6405
+ attachments: Attachment[];
6406
+
6407
+ latest_reactions: ChatReactionResponse[];
6408
+
6409
+ mentioned_users: UserResponse[];
6410
+
6411
+ own_reactions: ChatReactionResponse[];
6412
+
6413
+ restricted_visibility: string[];
6414
+
6415
+ custom: Record<string, any>;
6416
+
6417
+ reaction_counts: Record<string, number>;
6418
+
6419
+ reaction_scores: Record<string, number>;
6420
+
6421
+ user: UserResponse;
6422
+
6423
+ command?: string;
6424
+
6425
+ deleted_at?: Date;
6426
+
6427
+ deleted_for_me?: boolean;
6428
+
6429
+ message_text_updated_at?: Date;
6430
+
6431
+ mml?: string;
6432
+
6433
+ parent_id?: string;
6434
+
6435
+ pin_expires?: Date;
6436
+
6437
+ pinned_at?: Date;
6438
+
6439
+ poll_id?: string;
6440
+
6441
+ quoted_message_id?: string;
6442
+
6443
+ show_in_channel?: boolean;
6444
+
6445
+ mentioned_group_ids?: string[];
6446
+
6447
+ mentioned_groups?: UserGroupResponse[];
6448
+
6449
+ mentioned_roles?: string[];
6450
+
6451
+ thread_participants?: UserResponse[];
6452
+
6453
+ draft?: ChatDraftResponse;
6454
+
6455
+ i18n?: Record<string, string>;
6456
+
6457
+ image_labels?: Record<string, string[]>;
6458
+
6459
+ member?: ChannelMemberPartialResponse;
6460
+
6461
+ moderation?: ChatModerationV2Response;
6462
+
6463
+ pinned_by?: UserResponse;
6464
+
6465
+ poll?: PollResponseData;
6466
+
6467
+ quoted_message?: ChatMessageResponse;
6468
+
6469
+ reaction_groups?: Record<string, ChatReactionGroupResponse>;
6470
+
6471
+ reminder?: ChatReminderResponseData;
6472
+
6473
+ shared_location?: ChatSharedLocationResponseData;
6474
+ }
6475
+
6476
+ export interface ChatModerationV2Response {
6477
+ action: string;
6478
+
6479
+ original_text: string;
6480
+
6481
+ blocklist_matched?: string;
6482
+
6483
+ platform_circumvented?: boolean;
6484
+
6485
+ semantic_filter_matched?: string;
6486
+
6487
+ blocklists_matched?: string[];
6488
+
6489
+ image_harms?: string[];
6490
+
6491
+ text_harms?: string[];
6492
+ }
6493
+
6494
+ export interface ChatPreferences {
6495
+ channel_mentions?: string;
6496
+
6497
+ default_preference?: string;
6498
+
6499
+ direct_mentions?: string;
6500
+
6501
+ distinct_channel_messages?: string;
6502
+
6503
+ group_mentions?: string;
6504
+
6505
+ here_mentions?: string;
6506
+
6507
+ role_mentions?: string;
6508
+
6509
+ thread_replies?: string;
6510
+ }
6511
+
6512
+ export interface ChatPreferencesInput {
6513
+ channel_mentions?: 'all' | 'none';
6514
+
6515
+ default_preference?: 'all' | 'none';
6516
+
6517
+ direct_mentions?: 'all' | 'none';
6518
+
6519
+ group_mentions?: 'all' | 'none';
6520
+
6521
+ here_mentions?: 'all' | 'none';
6522
+
6523
+ role_mentions?: 'all' | 'none';
6524
+
6525
+ thread_replies?: 'all' | 'none';
6526
+ }
6527
+
6528
+ export interface ChatPreferencesResponse {
6529
+ channel_mentions?: string;
5797
6530
 
5798
6531
  default_preference?: string;
5799
6532
 
@@ -5808,6 +6541,84 @@ export interface ChatPreferencesResponse {
5808
6541
  thread_replies?: string;
5809
6542
  }
5810
6543
 
6544
+ export interface ChatReactionGroupResponse {
6545
+ count: number;
6546
+
6547
+ first_reaction_at: Date;
6548
+
6549
+ last_reaction_at: Date;
6550
+
6551
+ sum_scores: number;
6552
+
6553
+ latest_reactions_by: ChatReactionGroupUserResponse[];
6554
+ }
6555
+
6556
+ export interface ChatReactionGroupUserResponse {
6557
+ created_at: Date;
6558
+
6559
+ user_id: string;
6560
+
6561
+ user?: UserResponse;
6562
+ }
6563
+
6564
+ export interface ChatReactionResponse {
6565
+ created_at: Date;
6566
+
6567
+ message_id: string;
6568
+
6569
+ score: number;
6570
+
6571
+ type: string;
6572
+
6573
+ updated_at: Date;
6574
+
6575
+ user_id: string;
6576
+
6577
+ custom: Record<string, any>;
6578
+
6579
+ user: UserResponse;
6580
+ }
6581
+
6582
+ export interface ChatReminderResponseData {
6583
+ channel_cid: string;
6584
+
6585
+ created_at: Date;
6586
+
6587
+ message_id: string;
6588
+
6589
+ updated_at: Date;
6590
+
6591
+ user_id: string;
6592
+
6593
+ remind_at?: Date;
6594
+
6595
+ message?: ChatMessageResponse;
6596
+
6597
+ user?: UserResponse;
6598
+ }
6599
+
6600
+ export interface ChatSharedLocationResponseData {
6601
+ channel_cid: string;
6602
+
6603
+ created_at: Date;
6604
+
6605
+ created_by_device_id: string;
6606
+
6607
+ latitude: number;
6608
+
6609
+ longitude: number;
6610
+
6611
+ message_id: string;
6612
+
6613
+ updated_at: Date;
6614
+
6615
+ user_id: string;
6616
+
6617
+ end_at?: Date;
6618
+
6619
+ message?: ChatMessageResponse;
6620
+ }
6621
+
5811
6622
  export interface CheckExternalStorageResponse {
5812
6623
  /**
5813
6624
  * Duration of the request in milliseconds
@@ -5967,6 +6778,11 @@ export interface CheckResponse {
5967
6778
  */
5968
6779
  task_id?: string;
5969
6780
 
6781
+ /**
6782
+ * All moderation rules triggered by this check (content, user, and call rules), with their resolved actions
6783
+ */
6784
+ triggered_rules?: TriggeredRuleResponse[];
6785
+
5970
6786
  item?: ReviewQueueItemResponse;
5971
6787
 
5972
6788
  triggered_rule?: TriggeredRuleResponse;
@@ -6065,6 +6881,153 @@ export interface CheckSQSResponse {
6065
6881
  data?: Record<string, any>;
6066
6882
  }
6067
6883
 
6884
+ export interface Classification {
6885
+ name: string;
6886
+
6887
+ confidence?: number;
6888
+
6889
+ severity?: string;
6890
+
6891
+ subclassifications?: Classification[];
6892
+ }
6893
+
6894
+ export interface ClientEvent {
6895
+ /**
6896
+ * Call session ID associated with the attempt. Required on every event except CoordinatorJoin initiation and CoordinatorJoin failure (where the call session is not yet established); optional on MediaDevicePermission.
6897
+ */
6898
+ call_session_id?: string;
6899
+
6900
+ /**
6901
+ * Camera permission status: INITIATED, FAILED, GRANTED, or NOT_INITIATED. Required on every MediaDevicePermission event.
6902
+ */
6903
+ camera_permission_status?: string;
6904
+
6905
+ /**
6906
+ * UUID generated by the client and shared across every event of the same coordinator connection. Required on every event except JoinInitiated, which is reported before a coordinator connection exists.
6907
+ */
6908
+ coordinator_connect_id?: string;
6909
+
6910
+ /**
6911
+ * Milliseconds elapsed between the stage attempt's initiation and this event.
6912
+ */
6913
+ elapsed_time?: number;
6914
+
6915
+ /**
6916
+ * Whether the event marks the start (initiated) or resolution (completed) of a stage attempt, or another event-specific value
6917
+ */
6918
+ event_type?: string;
6919
+
6920
+ /**
6921
+ * Terminal state of the peer connection. Required on PeerConnectionConnect failure.
6922
+ */
6923
+ ice_state?: string;
6924
+
6925
+ /**
6926
+ * Call ID associated with the event. Required on every stage except CoordinatorWS, where it is optional.
6927
+ */
6928
+ id?: string;
6929
+
6930
+ /**
6931
+ * UUID generated by the client and shared across JoinInitiated and the join-lifecycle events (CoordinatorJoin, WSJoin, PeerConnectionConnect) of the same overall join attempt. Required on every join event except CoordinatorWS, which is reported before a join attempt is established.
6932
+ */
6933
+ join_attempt_id?: string;
6934
+
6935
+ /**
6936
+ * Reason the client initiated the join. Optional on CoordinatorJoin events; empty when not provided.
6937
+ */
6938
+ join_reason?: string;
6939
+
6940
+ /**
6941
+ * Microphone permission status: INITIATED, FAILED, GRANTED, or NOT_INITIATED. Required on every MediaDevicePermission event.
6942
+ */
6943
+ microphone_permission_status?: string;
6944
+
6945
+ /**
6946
+ * Resolution of a completed event: success or failure. Required on completed join events; forbidden on initiated join events.
6947
+ */
6948
+ outcome?: string;
6949
+
6950
+ /**
6951
+ * Which peer connection a PeerConnectionConnect event reports on: publish or subscribe. Required on every PeerConnectionConnect event.
6952
+ */
6953
+ peer_connection?: string;
6954
+
6955
+ /**
6956
+ * UTC timestamp at which the ICE connection was established earlier in the session, when applicable
6957
+ */
6958
+ previously_connected_timestamp?: Date;
6959
+
6960
+ /**
6961
+ * Total in-stage retries the client made before resolving (0–1000). Required on completed join events.
6962
+ */
6963
+ retry_count_attempt?: number;
6964
+
6965
+ /**
6966
+ * Failure code string. Required on CoordinatorJoin, CoordinatorWS, WSJoin, and PeerConnectionConnect failure.
6967
+ */
6968
+ retry_failure_code?: string;
6969
+
6970
+ /**
6971
+ * Failure reason string. Required on CoordinatorJoin, CoordinatorWS, WSJoin, and PeerConnectionConnect failure.
6972
+ */
6973
+ retry_failure_reason?: string;
6974
+
6975
+ /**
6976
+ * Screen-share permission status: INITIATED, FAILED, GRANTED, or NOT_INITIATED. Optional on MediaDevicePermission events.
6977
+ */
6978
+ screen_share_status?: string;
6979
+
6980
+ /**
6981
+ * Version of the client SDK
6982
+ */
6983
+ sdk_version?: string;
6984
+
6985
+ /**
6986
+ * Identifier of the SFU the client was attempting to connect to. Required on WSJoin and PeerConnectionConnect failure, and on FirstAudioFrame and FirstVideoFrame.
6987
+ */
6988
+ sfu_id?: string;
6989
+
6990
+ /**
6991
+ * 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.
6992
+ */
6993
+ stage?: string;
6994
+
6995
+ /**
6996
+ * UUID generated by the client at initiation. Identical on the matching completion event. Absent on JoinInitiated.
6997
+ */
6998
+ stage_id?: string;
6999
+
7000
+ /**
7001
+ * UTC timestamp at which the event was recorded
7002
+ */
7003
+ timestamp?: Date;
7004
+
7005
+ /**
7006
+ * Identifier of the media track the frame belongs to. Required on FirstVideoFrame; optional on FirstAudioFrame.
7007
+ */
7008
+ track_id?: string;
7009
+
7010
+ /**
7011
+ * Call type associated with the event. Required on every stage except CoordinatorWS, where it is optional.
7012
+ */
7013
+ type?: string;
7014
+
7015
+ /**
7016
+ * User agent string of the client SDK
7017
+ */
7018
+ user_agent?: string;
7019
+
7020
+ /**
7021
+ * ID of the user the event was recorded for
7022
+ */
7023
+ user_id?: string;
7024
+
7025
+ /**
7026
+ * Whether the ICE connection had been established earlier in the same session. Required on every PeerConnectionConnect event so reconnects can be distinguished from fresh connects.
7027
+ */
7028
+ was_previously_connected?: boolean;
7029
+ }
7030
+
6068
7031
  export interface ClientOSDataResponse {
6069
7032
  architecture?: string;
6070
7033
 
@@ -6087,8 +7050,12 @@ export interface ClosedCaptionEvent {
6087
7050
  }
6088
7051
 
6089
7052
  export interface ClosedCaptionRuleParameters {
7053
+ severity?: string;
7054
+
6090
7055
  threshold?: number;
6091
7056
 
7057
+ time_window?: string;
7058
+
6092
7059
  harm_labels?: string[];
6093
7060
 
6094
7061
  llm_harm_labels?: Record<string, string>;
@@ -6447,6 +7414,8 @@ export interface CommentResponse {
6447
7414
  */
6448
7415
  custom?: Record<string, any>;
6449
7416
 
7417
+ i18n?: Record<string, string>;
7418
+
6450
7419
  moderation?: ModerationV2Response;
6451
7420
 
6452
7421
  /**
@@ -6619,6 +7588,13 @@ export interface ConfigResponse {
6619
7588
  */
6620
7589
  ai_image_label_definitions?: AIImageLabelDefinition[];
6621
7590
 
7591
+ /**
7592
+ * Names of Bodyguard credential profiles registered on this app. The dashboard uses this list to render the profile picker on the AI Text section.
7593
+ */
7594
+ available_bodyguard_profiles?: BodyguardProfileSummary[];
7595
+
7596
+ ai_audio_config?: AIAudioConfigResponse;
7597
+
6622
7598
  ai_image_config?: AIImageConfig;
6623
7599
 
6624
7600
  /**
@@ -6638,6 +7614,8 @@ export interface ConfigResponse {
6638
7614
 
6639
7615
  block_list_config?: BlockListConfig;
6640
7616
 
7617
+ flood_config?: FloodConfig;
7618
+
6641
7619
  llm_config?: LLMConfig;
6642
7620
 
6643
7621
  velocity_filter_config?: VelocityFilterConfig;
@@ -6651,6 +7629,22 @@ export interface ContentCountRuleParameters {
6651
7629
  time_window?: string;
6652
7630
  }
6653
7631
 
7632
+ export interface ContentCustomPropertyCountParameters {
7633
+ operator?: string;
7634
+
7635
+ property_key?: string;
7636
+
7637
+ threshold?: number;
7638
+
7639
+ time_window?: string;
7640
+ }
7641
+
7642
+ export interface ContentCustomPropertyParameters {
7643
+ operator?: string;
7644
+
7645
+ property_key?: string;
7646
+ }
7647
+
6654
7648
  export interface CoordinatesResponse {
6655
7649
  /**
6656
7650
  * Latitude coordinate
@@ -6680,10 +7674,14 @@ export interface CreateBlockListRequest {
6680
7674
  */
6681
7675
  words: string[];
6682
7676
 
7677
+ is_confusable_folding_enabled?: boolean;
7678
+
6683
7679
  is_leet_check_enabled?: boolean;
6684
7680
 
6685
7681
  is_plural_check_enabled?: boolean;
6686
7682
 
7683
+ is_substring_matching_enabled?: boolean;
7684
+
6687
7685
  team?: string;
6688
7686
 
6689
7687
  /**
@@ -6726,37 +7724,113 @@ export interface CreateCallTypeRequest {
6726
7724
  settings?: CallSettingsRequest;
6727
7725
  }
6728
7726
 
6729
- export interface CreateCallTypeResponse {
7727
+ export interface CreateCallTypeResponse {
7728
+ /**
7729
+ * the time the call type was created
7730
+ */
7731
+ created_at: Date;
7732
+
7733
+ duration: string;
7734
+
7735
+ /**
7736
+ * the name of the call type
7737
+ */
7738
+ name: string;
7739
+
7740
+ /**
7741
+ * the time the call type was last updated
7742
+ */
7743
+ updated_at: Date;
7744
+
7745
+ /**
7746
+ * the permissions granted to each role
7747
+ */
7748
+ grants: Record<string, string[]>;
7749
+
7750
+ notification_settings: NotificationSettingsResponse;
7751
+
7752
+ settings: CallSettingsResponse;
7753
+
7754
+ /**
7755
+ * the external storage for the call type
7756
+ */
7757
+ external_storage?: string;
7758
+ }
7759
+
7760
+ export interface CreateCampaignRequest {
7761
+ /**
7762
+ * The user ID of the sender
7763
+ */
7764
+ sender_id: string;
7765
+
7766
+ message_template: CampaignMessageTemplate;
7767
+
7768
+ /**
7769
+ * Whether to create channels for the campaign, if they don't exist
7770
+ */
7771
+ create_channels?: boolean;
7772
+
7773
+ /**
7774
+ * The description of the campaign
7775
+ */
7776
+ description?: string;
7777
+
7778
+ id?: string;
7779
+
7780
+ /**
7781
+ * The name of the campaign
7782
+ */
7783
+ name?: string;
7784
+
7785
+ /**
7786
+ * The sender mode of the campaign
7787
+ */
7788
+
7789
+ sender_mode?: 'exclude' | 'include';
7790
+
6730
7791
  /**
6731
- * the time the call type was created
7792
+ * The visibility of the created channels for the sender
6732
7793
  */
6733
- created_at: Date;
6734
7794
 
6735
- duration: string;
7795
+ sender_visibility?: 'hidden' | 'archived';
6736
7796
 
6737
7797
  /**
6738
- * the name of the call type
7798
+ * Whether the campaign should show channels, if they are hidden
6739
7799
  */
6740
- name: string;
7800
+ show_channels?: boolean;
6741
7801
 
6742
7802
  /**
6743
- * the time the call type was last updated
7803
+ * Whether to skip push notifications
6744
7804
  */
6745
- updated_at: Date;
7805
+ skip_push?: boolean;
6746
7806
 
6747
7807
  /**
6748
- * the permissions granted to each role
7808
+ * Whether to skip webhooks
6749
7809
  */
6750
- grants: Record<string, string[]>;
7810
+ skip_webhook?: boolean;
6751
7811
 
6752
- notification_settings: NotificationSettingsResponse;
7812
+ /**
7813
+ * The IDs of the segments to send the campaign to. Duplicate user IDs are removed. Use either user_ids or segment_ids, not both
7814
+ */
7815
+ segment_ids?: string[];
6753
7816
 
6754
- settings: CallSettingsResponse;
7817
+ /**
7818
+ * The userIDs to send the campaign to. Use either segment ids or user ids not both
7819
+ */
7820
+ user_ids?: string[];
7821
+
7822
+ channel_template?: CampaignChannelTemplate;
7823
+ }
6755
7824
 
7825
+ export interface CreateCampaignResponse {
6756
7826
  /**
6757
- * the external storage for the call type
7827
+ * Duration of the request in milliseconds
6758
7828
  */
6759
- external_storage?: string;
7829
+ duration: string;
7830
+
7831
+ campaign?: CampaignResponse;
7832
+
7833
+ users?: PagerResponse;
6760
7834
  }
6761
7835
 
6762
7836
  export interface CreateChannelTypeRequest {
@@ -7058,6 +8132,11 @@ export interface CreateDeviceRequest {
7058
8132
 
7059
8133
  push_provider: 'firebase' | 'apn' | 'huawei' | 'xiaomi';
7060
8134
 
8135
+ /**
8136
+ * Stable physical device identifier used to deduplicate pushes across push providers (e.g. APNs VoIP and Firebase on the same iOS device). Distinct from 'id', which is the push token.
8137
+ */
8138
+ hardware_id?: string;
8139
+
7061
8140
  /**
7062
8141
  * Push provider name
7063
8142
  */
@@ -7384,6 +8463,22 @@ export interface CreatePollRequest {
7384
8463
  user?: UserRequest;
7385
8464
  }
7386
8465
 
8466
+ export interface CreateQueueRequest {
8467
+ name: string;
8468
+
8469
+ type: 'personal_view' | 'operational_queue';
8470
+
8471
+ description?: string;
8472
+
8473
+ user_id?: string;
8474
+
8475
+ sort?: Array<Record<string, any>>;
8476
+
8477
+ filters?: Record<string, any>;
8478
+
8479
+ user?: UserRequest;
8480
+ }
8481
+
7387
8482
  export interface CreateReminderRequest {
7388
8483
  remind_at?: Date;
7389
8484
 
@@ -7436,6 +8531,53 @@ export interface CreateSIPTrunkResponse {
7436
8531
  sip_trunk?: SIPTrunkResponse;
7437
8532
  }
7438
8533
 
8534
+ export interface CreateSegmentRequest {
8535
+ /**
8536
+ * The type of the segment
8537
+ */
8538
+
8539
+ type: 'user' | 'channel';
8540
+
8541
+ /**
8542
+ * If true, all sender channels are included in the segment
8543
+ */
8544
+ all_sender_channels?: boolean;
8545
+
8546
+ /**
8547
+ * If true, all users are included in the segment
8548
+ */
8549
+ all_users?: boolean;
8550
+
8551
+ /**
8552
+ * The description of the segment (max 256 characters)
8553
+ */
8554
+ description?: string;
8555
+
8556
+ /**
8557
+ * The ID of the segment
8558
+ */
8559
+ id?: string;
8560
+
8561
+ /**
8562
+ * The name of the segment (max 128 characters)
8563
+ */
8564
+ name?: string;
8565
+
8566
+ /**
8567
+ * Filter to apply to the query
8568
+ */
8569
+ filter?: Record<string, any>;
8570
+ }
8571
+
8572
+ export interface CreateSegmentResponse {
8573
+ /**
8574
+ * Duration of the request in milliseconds
8575
+ */
8576
+ duration: string;
8577
+
8578
+ segment?: SegmentResponse;
8579
+ }
8580
+
7439
8581
  export interface CreateUserGroupRequest {
7440
8582
  /**
7441
8583
  * The user friendly name of the user group
@@ -7740,6 +8882,15 @@ export interface DecayFunctionConfig {
7740
8882
  scale?: string;
7741
8883
  }
7742
8884
 
8885
+ export interface DeleteActionConfigResponse {
8886
+ /**
8887
+ * Number of action configs deleted (0 or 1)
8888
+ */
8889
+ deleted: number;
8890
+
8891
+ duration: string;
8892
+ }
8893
+
7743
8894
  export interface DeleteActivitiesRequest {
7744
8895
  /**
7745
8896
  * List of activity IDs to delete
@@ -7829,6 +8980,13 @@ export interface DeleteCallResponse {
7829
8980
  task_id?: string;
7830
8981
  }
7831
8982
 
8983
+ export interface DeleteCampaignResponse {
8984
+ /**
8985
+ * Duration of the request in milliseconds
8986
+ */
8987
+ duration: string;
8988
+ }
8989
+
7832
8990
  export interface DeleteChannelResponse {
7833
8991
  /**
7834
8992
  * Duration of the request in milliseconds
@@ -8049,6 +9207,12 @@ export interface DeleteModerationTemplateResponse {
8049
9207
  duration: string;
8050
9208
  }
8051
9209
 
9210
+ export interface DeleteQueueRequest {
9211
+ user_id?: string;
9212
+
9213
+ user?: UserRequest;
9214
+ }
9215
+
8052
9216
  export interface DeleteReactionRequestPayload {
8053
9217
  /**
8054
9218
  * ID of the reaction to delete (alternative to item_id)
@@ -8242,7 +9406,7 @@ export interface DeliveredMessagePayload {
8242
9406
  }
8243
9407
 
8244
9408
  export interface DeliveryReceiptsResponse {
8245
- enabled?: boolean;
9409
+ enabled: boolean;
8246
9410
  }
8247
9411
 
8248
9412
  export interface DeviceDataResponse {
@@ -8290,6 +9454,11 @@ export interface DeviceResponse {
8290
9454
  */
8291
9455
  disabled_reason?: string;
8292
9456
 
9457
+ /**
9458
+ * Stable physical device identifier used to deduplicate pushes across push providers
9459
+ */
9460
+ hardware_id?: string;
9461
+
8293
9462
  /**
8294
9463
  * Push provider name
8295
9464
  */
@@ -8449,6 +9618,20 @@ export interface EgressResponse {
8449
9618
  raw_recording?: RawRecordingResponse;
8450
9619
  }
8451
9620
 
9621
+ export interface EncryptionSettingsRequest {
9622
+ /**
9623
+ * if true, the call is created end-to-end encrypted
9624
+ */
9625
+ enabled?: boolean;
9626
+ }
9627
+
9628
+ export interface EncryptionSettingsResponse {
9629
+ /**
9630
+ * whether the call is end-to-end encrypted
9631
+ */
9632
+ enabled: boolean;
9633
+ }
9634
+
8452
9635
  export interface EndCallRequest {}
8453
9636
 
8454
9637
  export interface EndCallResponse {
@@ -8484,22 +9667,6 @@ export interface EnrichedActivity {
8484
9667
  target?: Data;
8485
9668
  }
8486
9669
 
8487
- export interface EnrichedCollection {
8488
- created_at: Date;
8489
-
8490
- id: string;
8491
-
8492
- name: string;
8493
-
8494
- status: string;
8495
-
8496
- updated_at: Date;
8497
-
8498
- user_id: string;
8499
-
8500
- custom: Record<string, any>;
8501
- }
8502
-
8503
9670
  export interface EnrichedCollectionResponse {
8504
9671
  /**
8505
9672
  * Unique identifier for the collection within its name
@@ -8736,6 +9903,8 @@ export interface EntityCreatorResponse {
8736
9903
  }
8737
9904
 
8738
9905
  export interface ErrorResult {
9906
+ description: string;
9907
+
8739
9908
  type: string;
8740
9909
 
8741
9910
  stacktrace?: string;
@@ -8816,6 +9985,8 @@ export interface EventHook {
8816
9985
  event_types?: string[];
8817
9986
 
8818
9987
  callback?: AsyncModerationCallbackConfig;
9988
+
9989
+ failover_config?: WebhookFailoverConfig;
8819
9990
  }
8820
9991
 
8821
9992
  export interface EventNotificationSettings {
@@ -9715,6 +10886,82 @@ export interface FeedVisibilityResponse {
9715
10886
  grants: Record<string, string[]>;
9716
10887
  }
9717
10888
 
10889
+ export interface FeedsActivityLocation {
10890
+ lat: number;
10891
+
10892
+ lng: number;
10893
+ }
10894
+
10895
+ export interface FeedsBookmarkResponse {
10896
+ created_at: Date;
10897
+
10898
+ object_id: string;
10899
+
10900
+ object_type: string;
10901
+
10902
+ updated_at: Date;
10903
+
10904
+ user: UserResponse;
10905
+
10906
+ activity_id?: string;
10907
+
10908
+ custom?: Record<string, any>;
10909
+ }
10910
+
10911
+ export interface FeedsEnrichedCollectionResponse {
10912
+ created_at: Date;
10913
+
10914
+ id: string;
10915
+
10916
+ name: string;
10917
+
10918
+ status: string;
10919
+
10920
+ updated_at: Date;
10921
+
10922
+ user_id: string;
10923
+
10924
+ custom: Record<string, any>;
10925
+ }
10926
+
10927
+ export interface FeedsFeedResponse {
10928
+ activity_count: number;
10929
+
10930
+ created_at: Date;
10931
+
10932
+ description: string;
10933
+
10934
+ feed: string;
10935
+
10936
+ follower_count: number;
10937
+
10938
+ following_count: number;
10939
+
10940
+ group_id: string;
10941
+
10942
+ id: string;
10943
+
10944
+ member_count: number;
10945
+
10946
+ name: string;
10947
+
10948
+ pin_count: number;
10949
+
10950
+ updated_at: Date;
10951
+
10952
+ created_by: UserResponse;
10953
+
10954
+ deleted_at?: Date;
10955
+
10956
+ visibility?: string;
10957
+
10958
+ filter_tags?: string[];
10959
+
10960
+ custom?: Record<string, any>;
10961
+
10962
+ location?: FeedsActivityLocation;
10963
+ }
10964
+
9718
10965
  export interface FeedsModerationTemplateConfigPayload {
9719
10966
  /**
9720
10967
  * Map of data type names to their content types
@@ -9727,6 +10974,64 @@ export interface FeedsModerationTemplateConfigPayload {
9727
10974
  config_key?: string;
9728
10975
  }
9729
10976
 
10977
+ export interface FeedsNotificationComment {
10978
+ comment: string;
10979
+
10980
+ id: string;
10981
+
10982
+ user_id: string;
10983
+
10984
+ attachments?: Attachment[];
10985
+ }
10986
+
10987
+ export interface FeedsNotificationContext {
10988
+ target?: FeedsNotificationTarget;
10989
+
10990
+ trigger?: FeedsNotificationTrigger;
10991
+ }
10992
+
10993
+ export interface FeedsNotificationParentActivity {
10994
+ id: string;
10995
+
10996
+ text?: string;
10997
+
10998
+ type?: string;
10999
+
11000
+ user_id?: string;
11001
+
11002
+ attachments?: Attachment[];
11003
+ }
11004
+
11005
+ export interface FeedsNotificationTarget {
11006
+ id: string;
11007
+
11008
+ name?: string;
11009
+
11010
+ text?: string;
11011
+
11012
+ type?: string;
11013
+
11014
+ user_id?: string;
11015
+
11016
+ attachments?: Attachment[];
11017
+
11018
+ comment?: FeedsNotificationComment;
11019
+
11020
+ custom?: Record<string, any>;
11021
+
11022
+ parent_activity?: FeedsNotificationParentActivity;
11023
+ }
11024
+
11025
+ export interface FeedsNotificationTrigger {
11026
+ text: string;
11027
+
11028
+ type: string;
11029
+
11030
+ comment?: FeedsNotificationComment;
11031
+
11032
+ custom?: Record<string, any>;
11033
+ }
11034
+
9730
11035
  export interface FeedsPreferences {
9731
11036
  /**
9732
11037
  * Push notification preference for comments on user's activities. One of: all, none
@@ -9794,65 +11099,38 @@ export interface FeedsPreferencesResponse {
9794
11099
  custom_activity_types?: Record<string, string>;
9795
11100
  }
9796
11101
 
9797
- export interface FeedsReactionGroup {
9798
- count: number;
9799
-
9800
- first_reaction_at: Date;
9801
-
9802
- last_reaction_at: Date;
9803
- }
9804
-
9805
11102
  export interface FeedsReactionGroupResponse {
9806
- /**
9807
- * Number of reactions in this group
9808
- */
9809
11103
  count: number;
9810
11104
 
9811
- /**
9812
- * Time of the first reaction
9813
- */
9814
11105
  first_reaction_at: Date;
9815
11106
 
9816
- /**
9817
- * Time of the most recent reaction
9818
- */
9819
11107
  last_reaction_at: Date;
9820
11108
  }
9821
11109
 
9822
11110
  export interface FeedsReactionResponse {
9823
- /**
9824
- * ID of the activity that was reacted to
9825
- */
9826
11111
  activity_id: string;
9827
11112
 
9828
- /**
9829
- * When the reaction was created
9830
- */
9831
11113
  created_at: Date;
9832
11114
 
9833
- /**
9834
- * Type of reaction
9835
- */
9836
11115
  type: string;
9837
11116
 
9838
- /**
9839
- * When the reaction was last updated
9840
- */
9841
11117
  updated_at: Date;
9842
11118
 
9843
11119
  user: UserResponse;
9844
11120
 
9845
- /**
9846
- * ID of the comment that was reacted to
9847
- */
9848
11121
  comment_id?: string;
9849
11122
 
9850
- /**
9851
- * Custom data for the reaction
9852
- */
9853
11123
  custom?: Record<string, any>;
9854
11124
  }
9855
11125
 
11126
+ export interface FeedsShareResponse {
11127
+ activity_id: string;
11128
+
11129
+ created_at: Date;
11130
+
11131
+ user: UserResponse;
11132
+ }
11133
+
9856
11134
  export interface FeedsV3ActivityResponse {
9857
11135
  bookmark_count: number;
9858
11136
 
@@ -9892,19 +11170,19 @@ export interface FeedsV3ActivityResponse {
9892
11170
 
9893
11171
  interest_tags: string[];
9894
11172
 
9895
- latest_reactions: any[];
11173
+ latest_reactions: FeedsReactionResponse[];
9896
11174
 
9897
11175
  mentioned_users: UserResponse[];
9898
11176
 
9899
- own_bookmarks: any[];
11177
+ own_bookmarks: FeedsBookmarkResponse[];
9900
11178
 
9901
- own_reactions: any[];
11179
+ own_reactions: FeedsReactionResponse[];
9902
11180
 
9903
- collections: Record<string, EnrichedCollection>;
11181
+ collections: Record<string, FeedsEnrichedCollectionResponse>;
9904
11182
 
9905
11183
  custom: Record<string, any>;
9906
11184
 
9907
- reaction_groups: Record<string, FeedsReactionGroup>;
11185
+ reaction_groups: Record<string, FeedsReactionGroupResponse>;
9908
11186
 
9909
11187
  search_data: Record<string, any>;
9910
11188
 
@@ -9916,18 +11194,48 @@ export interface FeedsV3ActivityResponse {
9916
11194
 
9917
11195
  expires_at?: Date;
9918
11196
 
11197
+ friend_reaction_count?: number;
11198
+
11199
+ is_read?: boolean;
11200
+
11201
+ is_seen?: boolean;
11202
+
11203
+ is_watched?: boolean;
11204
+
9919
11205
  moderation_action?: string;
9920
11206
 
11207
+ selector_source?: string;
11208
+
9921
11209
  text?: string;
9922
11210
 
9923
11211
  visibility_tag?: string;
9924
11212
 
11213
+ friend_reactions?: FeedsReactionResponse[];
11214
+
11215
+ latest_shares?: FeedsShareResponse[];
11216
+
11217
+ current_feed?: FeedsFeedResponse;
11218
+
11219
+ i18n?: Record<string, string>;
11220
+
11221
+ location?: FeedsActivityLocation;
11222
+
9925
11223
  metrics?: Record<string, number>;
9926
11224
 
9927
11225
  moderation?: ModerationV2Response;
11226
+
11227
+ notification_context?: FeedsNotificationContext;
11228
+
11229
+ parent?: FeedsV3ActivityResponse;
11230
+
11231
+ poll?: PollResponseData;
11232
+
11233
+ score_vars?: Record<string, any>;
9928
11234
  }
9929
11235
 
9930
11236
  export interface FeedsV3CommentResponse {
11237
+ bookmark_count: number;
11238
+
9931
11239
  confidence_score: number;
9932
11240
 
9933
11241
  created_at: Date;
@@ -9954,7 +11262,7 @@ export interface FeedsV3CommentResponse {
9954
11262
 
9955
11263
  mentioned_users: UserResponse[];
9956
11264
 
9957
- own_reactions: any[];
11265
+ own_reactions: FeedsReactionResponse[];
9958
11266
 
9959
11267
  user: UserResponse;
9960
11268
 
@@ -9970,9 +11278,15 @@ export interface FeedsV3CommentResponse {
9970
11278
 
9971
11279
  attachments?: Attachment[];
9972
11280
 
11281
+ latest_reactions?: FeedsReactionResponse[];
11282
+
9973
11283
  custom?: Record<string, any>;
9974
11284
 
11285
+ i18n?: Record<string, string>;
11286
+
9975
11287
  moderation?: ModerationV2Response;
11288
+
11289
+ reaction_groups?: Record<string, FeedsReactionGroupResponse>;
9976
11290
  }
9977
11291
 
9978
11292
  export interface Field {
@@ -10022,11 +11336,30 @@ export interface FileUploadResponse {
10022
11336
  }
10023
11337
 
10024
11338
  export interface FilterConfigResponse {
11339
+ /**
11340
+ * LLM moderation labels available as filter values
11341
+ */
10025
11342
  llm_labels: string[];
10026
11343
 
11344
+ /**
11345
+ * AI image moderation labels available as filter values. Reflects the app's effective image taxonomy: custom Bodyguard taxonomy when enabled, otherwise the standard L1 label set.
11346
+ */
11347
+ ai_image_labels?: string[];
11348
+
11349
+ /**
11350
+ * AI text moderation labels available as filter values
11351
+ */
10027
11352
  ai_text_labels?: string[];
10028
11353
 
11354
+ /**
11355
+ * Moderation config keys present in the queue, available as filter values
11356
+ */
10029
11357
  config_keys?: string[];
11358
+
11359
+ /**
11360
+ * The moderation_payload.custom keys the app has configured as review-queue filter chips (via moderation_dashboard_preferences.filterable_custom_keys). Discovery hint for the dashboard only — the filter accepts any custom key regardless of this list.
11361
+ */
11362
+ filterable_custom_keys?: string[];
10030
11363
  }
10031
11364
 
10032
11365
  export interface FirebaseConfig {
@@ -10061,6 +11394,12 @@ export interface FlagCountRuleParameters {
10061
11394
  threshold?: number;
10062
11395
  }
10063
11396
 
11397
+ export interface FlagDetails {
11398
+ original_text: string;
11399
+
11400
+ automod?: AutomodDetailsResponse;
11401
+ }
11402
+
10064
11403
  export interface FlagDetailsResponse {
10065
11404
  original_text: string;
10066
11405
 
@@ -10077,6 +11416,15 @@ export interface FlagFeedbackResponse {
10077
11416
  labels: LabelResponse[];
10078
11417
  }
10079
11418
 
11419
+ export interface FlagItemResponse {
11420
+ duration: string;
11421
+
11422
+ /**
11423
+ * Unique identifier of the created moderation item
11424
+ */
11425
+ item_id: string;
11426
+ }
11427
+
10080
11428
  export interface FlagMessageDetailsResponse {
10081
11429
  pin_changed?: boolean;
10082
11430
 
@@ -10121,12 +11469,33 @@ export interface FlagRequest {
10121
11469
  }
10122
11470
 
10123
11471
  export interface FlagResponse {
10124
- duration: string;
11472
+ created_at: Date;
10125
11473
 
10126
- /**
10127
- * Unique identifier of the created moderation item
10128
- */
10129
- item_id: string;
11474
+ created_by_automod: boolean;
11475
+
11476
+ updated_at: Date;
11477
+
11478
+ approved_at?: Date;
11479
+
11480
+ reason?: string;
11481
+
11482
+ rejected_at?: Date;
11483
+
11484
+ reviewed_at?: Date;
11485
+
11486
+ reviewed_by?: string;
11487
+
11488
+ target_message_id?: string;
11489
+
11490
+ custom?: Record<string, any>;
11491
+
11492
+ details?: FlagDetails;
11493
+
11494
+ target_message?: MessageResponse;
11495
+
11496
+ target_user?: UserResponse;
11497
+
11498
+ user?: UserResponse;
10130
11499
  }
10131
11500
 
10132
11501
  export interface FlagUpdatedEvent {
@@ -10149,6 +11518,48 @@ export interface FlagUserOptions {
10149
11518
  reason?: string;
10150
11519
  }
10151
11520
 
11521
+ export interface FloodConfig {
11522
+ identical?: FloodIdenticalConfig;
11523
+
11524
+ similar?: FloodSimilarConfig;
11525
+ }
11526
+
11527
+ export interface FloodIdenticalConfig {
11528
+ action?: string;
11529
+
11530
+ enabled?: boolean;
11531
+
11532
+ threshold?: number;
11533
+
11534
+ time_window?: string;
11535
+ }
11536
+
11537
+ export interface FloodIdenticalRuleParameters {
11538
+ threshold?: number;
11539
+
11540
+ time_window?: string;
11541
+ }
11542
+
11543
+ export interface FloodSimilarConfig {
11544
+ action?: string;
11545
+
11546
+ enabled?: boolean;
11547
+
11548
+ similarity_distance?: number;
11549
+
11550
+ threshold?: number;
11551
+
11552
+ time_window?: string;
11553
+ }
11554
+
11555
+ export interface FloodSimilarRuleParameters {
11556
+ similarity_distance?: number;
11557
+
11558
+ threshold?: number;
11559
+
11560
+ time_window?: string;
11561
+ }
11562
+
10152
11563
  export interface FollowBatchRequest {
10153
11564
  /**
10154
11565
  * List of follow relationships to create
@@ -10252,7 +11663,7 @@ export interface FollowRequest {
10252
11663
  create_notification_activity?: boolean;
10253
11664
 
10254
11665
  /**
10255
- * If true, auto-creates users referenced by the source and target FIDs when they don't already exist. Server-side only. Defaults to false. For FollowBatch/GetOrCreateFollows, use the top-level create_users field; per-item follows[i].create_users is rejected.
11666
+ * If true, auto-creates users referenced by the source and target FIDs when they don't already exist. Server-side only. Defaults to false. Use directly on single follow endpoints (Follow, GetOrCreateFollow). On batch endpoints (FollowBatch, GetOrCreateFollows), use the top-level create_users field; per-item follows[i].create_users is rejected.
10256
11667
  */
10257
11668
  create_users?: boolean;
10258
11669
 
@@ -10500,6 +11911,15 @@ export interface GeofenceSettingsResponse {
10500
11911
  names: string[];
10501
11912
  }
10502
11913
 
11914
+ export interface GetActionConfigResponse {
11915
+ duration: string;
11916
+
11917
+ /**
11918
+ * Moderation action configs grouped by entity type, sorted by order ascending
11919
+ */
11920
+ action_config: Record<string, ModerationActionConfigResponse[]>;
11921
+ }
11922
+
10503
11923
  export interface GetActiveCallsStatusResponse {
10504
11924
  duration: string;
10505
11925
 
@@ -10835,31 +12255,6 @@ export interface GetEdgesResponse {
10835
12255
  edges: EdgeResponse[];
10836
12256
  }
10837
12257
 
10838
- export interface GetExternalStorageAWSS3Response {
10839
- bucket: string;
10840
-
10841
- region: string;
10842
-
10843
- role_arn: string;
10844
-
10845
- path_prefix?: string;
10846
- }
10847
-
10848
- export interface GetExternalStorageResponse {
10849
- created_at: Date;
10850
-
10851
- /**
10852
- * Duration of the request in milliseconds
10853
- */
10854
- duration: string;
10855
-
10856
- type: string;
10857
-
10858
- updated_at: Date;
10859
-
10860
- aws_s3?: GetExternalStorageAWSS3Response;
10861
- }
10862
-
10863
12258
  export interface GetFeedGroupResponse {
10864
12259
  duration: string;
10865
12260
 
@@ -11161,6 +12556,8 @@ export interface GetOrCreateFeedRequest {
11161
12556
 
11162
12557
  next?: string;
11163
12558
 
12559
+ overwrite_interest_weights?: boolean;
12560
+
11164
12561
  prev?: string;
11165
12562
 
11166
12563
  user_id?: string;
@@ -11407,6 +12804,12 @@ export interface GetSegmentResponse {
11407
12804
  segment?: SegmentResponse;
11408
12805
  }
11409
12806
 
12807
+ export interface GetSetupSessionResponse {
12808
+ duration: string;
12809
+
12810
+ setup_session?: SetupSession;
12811
+ }
12812
+
11410
12813
  export interface GetTaskResponse {
11411
12814
  created_at: Date;
11412
12815
 
@@ -11486,6 +12889,64 @@ export interface GoogleVisionConfig {
11486
12889
  enabled?: boolean;
11487
12890
  }
11488
12891
 
12892
+ export interface GroupedChannelsBucket {
12893
+ /**
12894
+ * Channels returned for this bucket
12895
+ */
12896
+ channels: ChannelStateResponseFields[];
12897
+
12898
+ /**
12899
+ * Cursor for the next page of this group
12900
+ */
12901
+ next?: string;
12902
+
12903
+ /**
12904
+ * Cursor for the previous page of this group
12905
+ */
12906
+ prev?: string;
12907
+
12908
+ /**
12909
+ * Unread channels currently classified into this bucket
12910
+ */
12911
+ unread_channels?: number;
12912
+ }
12913
+
12914
+ export interface GroupedChannelsGroupRequest {
12915
+ limit?: number;
12916
+
12917
+ next?: string;
12918
+
12919
+ prev?: string;
12920
+ }
12921
+
12922
+ export interface GroupedQueryChannelsRequest {
12923
+ /**
12924
+ * Default max channels per group (default 10)
12925
+ */
12926
+ limit?: number;
12927
+
12928
+ user_id?: string;
12929
+
12930
+ /**
12931
+ * Groups to return, keyed by group name. Each group can define limit, next, or prev. 'next' and 'prev' cursors are only allowed when the request contains exactly one group; multi-group pagination is rejected.
12932
+ */
12933
+ groups?: Record<string, GroupedChannelsGroupRequest>;
12934
+
12935
+ user?: UserRequest;
12936
+ }
12937
+
12938
+ export interface GroupedQueryChannelsResponse {
12939
+ /**
12940
+ * Duration of the request in milliseconds
12941
+ */
12942
+ duration: string;
12943
+
12944
+ /**
12945
+ * Predefined channel groups keyed by group name
12946
+ */
12947
+ groups: Record<string, GroupedChannelsBucket>;
12948
+ }
12949
+
11489
12950
  export interface GroupedStatsResponse {
11490
12951
  name: string;
11491
12952
 
@@ -11577,6 +13038,22 @@ export interface HuaweiConfigFields {
11577
13038
  secret?: string;
11578
13039
  }
11579
13040
 
13041
+ export interface IPContentCountRuleParameters {
13042
+ threshold?: number;
13043
+
13044
+ time_window?: string;
13045
+ }
13046
+
13047
+ export interface IPFlagCountRuleParameters {
13048
+ severity?: string;
13049
+
13050
+ threshold?: number;
13051
+
13052
+ time_window?: string;
13053
+
13054
+ harm_labels?: string[];
13055
+ }
13056
+
11580
13057
  export interface ImageContentParameters {
11581
13058
  label_operator?: string;
11582
13059
 
@@ -11672,6 +13149,21 @@ export interface Images {
11672
13149
  original: ImageData;
11673
13150
  }
11674
13151
 
13152
+ export interface ImportBlockListRequest {
13153
+ items: string[];
13154
+
13155
+ chunk_size?: number;
13156
+ }
13157
+
13158
+ export interface ImportBlockListResponse {
13159
+ /**
13160
+ * Duration of the request in milliseconds
13161
+ */
13162
+ duration: string;
13163
+
13164
+ task_id: string;
13165
+ }
13166
+
11675
13167
  export interface ImportTask {
11676
13168
  created_at: Date;
11677
13169
 
@@ -11725,7 +13217,7 @@ export interface ImportV2TaskSettings {
11725
13217
 
11726
13218
  skip_references_check?: boolean;
11727
13219
 
11728
- source?: string;
13220
+ use_import_time_as_op_time?: boolean;
11729
13221
 
11730
13222
  s3?: ImportV2TaskSettingsS3;
11731
13223
  }
@@ -12008,9 +13500,19 @@ export interface InsertActionLogRequest {
12008
13500
  entity_type: string;
12009
13501
 
12010
13502
  /**
12011
- * Reason for the action
13503
+ * Reason for the action
13504
+ */
13505
+ reason?: string;
13506
+
13507
+ /**
13508
+ * Type of reporter; 'api_integration' when the action was triggered by an API integration call with no authenticated user
13509
+ */
13510
+ reporter_type?: string;
13511
+
13512
+ /**
13513
+ * ID of the user who triggered the action; empty for automated actions
12012
13514
  */
12013
- reason?: string;
13515
+ reporter_user_id?: string;
12014
13516
 
12015
13517
  /**
12016
13518
  * Custom metadata for the action log
@@ -12042,11 +13544,21 @@ export interface JoinCallAPIMetrics {
12042
13544
  latency?: ActiveCallsLatencyStats;
12043
13545
  }
12044
13546
 
13547
+ export interface KeyframeOCRRuleParameters {
13548
+ threshold?: number;
13549
+
13550
+ time_window?: string;
13551
+
13552
+ harm_labels?: string[];
13553
+ }
13554
+
12045
13555
  export interface KeyframeRuleParameters {
12046
13556
  min_confidence?: number;
12047
13557
 
12048
13558
  threshold?: number;
12049
13559
 
13560
+ time_window?: string;
13561
+
12050
13562
  harm_labels?: string[];
12051
13563
  }
12052
13564
 
@@ -12104,8 +13616,6 @@ export interface LLMConfig {
12104
13616
  }
12105
13617
 
12106
13618
  export interface LLMRule {
12107
- description: string;
12108
-
12109
13619
  label: string;
12110
13620
 
12111
13621
  action?:
@@ -12117,6 +13627,8 @@ export interface LLMRule {
12117
13627
  | 'bounce_remove'
12118
13628
  | 'keep';
12119
13629
 
13630
+ description?: string;
13631
+
12120
13632
  severity_rules?: BodyguardSeverityRule[];
12121
13633
  }
12122
13634
 
@@ -12128,6 +13640,82 @@ export interface LabelResponse {
12128
13640
  phrase_list_ids?: number[];
12129
13641
  }
12130
13642
 
13643
+ export interface LabelResultResponse {
13644
+ /**
13645
+ * Category
13646
+ */
13647
+ category: string;
13648
+
13649
+ /**
13650
+ * The moderated content
13651
+ */
13652
+ content: string;
13653
+
13654
+ content_type: string;
13655
+
13656
+ /**
13657
+ * Timestamp
13658
+ */
13659
+ created_at: Date;
13660
+
13661
+ /**
13662
+ * High-level harm category
13663
+ */
13664
+ harm_type: string;
13665
+
13666
+ /**
13667
+ * Unique identifier
13668
+ */
13669
+ id: string;
13670
+
13671
+ /**
13672
+ * Detected language
13673
+ */
13674
+ language: string;
13675
+
13676
+ /**
13677
+ * Provider recommended action
13678
+ */
13679
+ recommended_action: string;
13680
+
13681
+ /**
13682
+ * Severity level
13683
+ */
13684
+ severity: string;
13685
+
13686
+ /**
13687
+ * Moderation labels
13688
+ */
13689
+ labels: string[];
13690
+
13691
+ /**
13692
+ * Customer-supplied identifier for the moderated content
13693
+ */
13694
+ content_id?: string;
13695
+
13696
+ /**
13697
+ * Who the content is directed at (USER, GROUP, EVERYONE, NONE, etc.)
13698
+ */
13699
+ directed_at?: string;
13700
+
13701
+ /**
13702
+ * The stored content with every non-whitespace character masked. Present only when recommended_action is not 'keep'. Derived at runtime and never stored.
13703
+ */
13704
+ fully_masked_content?: string;
13705
+
13706
+ /**
13707
+ * Content with blocklisted tokens masked (when a blocklist rule with action=mask rewrote the original)
13708
+ */
13709
+ masked_content?: string;
13710
+
13711
+ policy?: string;
13712
+
13713
+ /**
13714
+ * Customer-supplied user identifier for the content author
13715
+ */
13716
+ user_id?: string;
13717
+ }
13718
+
12131
13719
  export interface LabelThresholds {
12132
13720
  /**
12133
13721
  * Threshold for automatic message block
@@ -12140,6 +13728,93 @@ export interface LabelThresholds {
12140
13728
  flag?: number;
12141
13729
  }
12142
13730
 
13731
+ export interface LabelsRequest {
13732
+ /**
13733
+ * Content to moderate
13734
+ */
13735
+ content: string;
13736
+
13737
+ /**
13738
+ * Optional category for filtering (max 128 chars)
13739
+ */
13740
+ category?: string;
13741
+
13742
+ /**
13743
+ * Customer-supplied identifier for the moderated content, for tracing
13744
+ */
13745
+ content_id?: string;
13746
+
13747
+ /**
13748
+ * Type of content: 'text' (default), 'message', or 'username'. Stored as-sent; only 'username' routes to the username moderation API.
13749
+ */
13750
+
13751
+ content_type?: 'text' | 'message' | 'username';
13752
+
13753
+ /**
13754
+ * When true, run moderation and return labels without persisting the result. Useful for one-off checks (e.g. UI testers) that should not be recorded in the stored history.
13755
+ */
13756
+ dry_run?: boolean;
13757
+
13758
+ /**
13759
+ * 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.
13760
+ */
13761
+ policy?: string;
13762
+
13763
+ /**
13764
+ * Optional customer-supplied user identifier for the content author (max 256 chars). Enables filtering stored results by user_id.
13765
+ */
13766
+ user_id?: string;
13767
+ }
13768
+
13769
+ export interface LabelsResponse {
13770
+ duration: string;
13771
+
13772
+ /**
13773
+ * Provider recommended action
13774
+ */
13775
+ recommended_action: string;
13776
+
13777
+ /**
13778
+ * Customer-supplied identifier for the moderated content, for tracing
13779
+ */
13780
+ content_id?: string;
13781
+
13782
+ /**
13783
+ * Who the content is directed at (USER, GROUP, EVERYONE, NONE, etc.), when the provider exposes it
13784
+ */
13785
+ directed_at?: string;
13786
+
13787
+ /**
13788
+ * The original content with every non-whitespace character masked. Present only when recommended_action is not 'keep'. Derived at runtime and never stored.
13789
+ */
13790
+ fully_masked_content?: string;
13791
+
13792
+ /**
13793
+ * High-level harm category
13794
+ */
13795
+ harm_type?: string;
13796
+
13797
+ /**
13798
+ * Detected language
13799
+ */
13800
+ language?: string;
13801
+
13802
+ /**
13803
+ * Content with blocklisted tokens masked or substituted. Present only when a blocklist rewrote the original content.
13804
+ */
13805
+ masked_content?: string;
13806
+
13807
+ /**
13808
+ * Severity level
13809
+ */
13810
+ severity?: string;
13811
+
13812
+ /**
13813
+ * Moderation labels detected
13814
+ */
13815
+ labels?: string[];
13816
+ }
13817
+
12143
13818
  export interface LayoutSettings {
12144
13819
  external_app_url: string;
12145
13820
 
@@ -12230,6 +13905,8 @@ export interface ListBlockListResponse {
12230
13905
  duration: string;
12231
13906
 
12232
13907
  blocklists: BlockListResponse[];
13908
+
13909
+ next_cursor?: string;
12233
13910
  }
12234
13911
 
12235
13912
  export interface ListCallTypeResponse {
@@ -12341,6 +14018,15 @@ export interface ListPushProvidersResponse {
12341
14018
  push_providers: PushProviderResponse[];
12342
14019
  }
12343
14020
 
14021
+ export interface ListQueuesResponse {
14022
+ /**
14023
+ * Duration of the request in milliseconds
14024
+ */
14025
+ duration: string;
14026
+
14027
+ queues: ModerationQueueResponse[];
14028
+ }
14029
+
12344
14030
  export interface ListRecordingsResponse {
12345
14031
  duration: string;
12346
14032
 
@@ -12561,6 +14247,43 @@ export interface MarkUnreadRequest {
12561
14247
  user?: UserRequest;
12562
14248
  }
12563
14249
 
14250
+ export interface MatchedContent {
14251
+ /**
14252
+ * The `content_ids[label]` value supplied on the `/analyze` request that contributed this entry.
14253
+ */
14254
+ id: string;
14255
+
14256
+ /**
14257
+ * `content_published_at` from the contributing `/analyze` request, or server receive time when that field was omitted.
14258
+ */
14259
+ published_at: Date;
14260
+
14261
+ /**
14262
+ * Content type that contributed this entry: `image` or `text`.
14263
+ */
14264
+ type: string;
14265
+
14266
+ /**
14267
+ * Image-classification entries only. Aggregate (max) confidence score across the entry's classifications + sub-classifications. Absent on text and OCR entries.
14268
+ */
14269
+ confidence?: number;
14270
+
14271
+ /**
14272
+ * Text and OCR entries. Aggregate (max) Bodyguard severity level (`LOW` / `MEDIUM` / `HIGH` / `CRITICAL`). Absent on image-classification entries.
14273
+ */
14274
+ severity?: string;
14275
+
14276
+ /**
14277
+ * Image-classification entries (keyframe rule, Type=image) carry nested L1 → L2 classifications. Text entries (closed_caption rule, Type=text) carry flat label + severity. Resolved against the app's effective taxonomy on the image side.
14278
+ */
14279
+ classifications?: Classification[];
14280
+
14281
+ /**
14282
+ * OCR entries only (keyframe_ocr rule, Type=image). Bodyguard labels that fired against the keyframe's OCR-extracted text (e.g. `INSULT`, `HATE_SPEECH`). Distinct from `classifications` so consumers can route OCR matches separately from image-classification matches.
14283
+ */
14284
+ ocr_classifications?: Classification[];
14285
+ }
14286
+
12564
14287
  export interface MaxStreakChangedEvent {
12565
14288
  created_at: Date;
12566
14289
 
@@ -13175,6 +14898,8 @@ export interface MessageNewEvent {
13175
14898
 
13176
14899
  channel_custom?: Record<string, any>;
13177
14900
 
14901
+ grouped_unread_channels?: Record<string, number>;
14902
+
13178
14903
  user?: UserResponseCommonFields;
13179
14904
  }
13180
14905
 
@@ -13555,6 +15280,11 @@ export interface MessageResponse {
13555
15280
  */
13556
15281
  mentioned_group_ids?: string[];
13557
15282
 
15283
+ /**
15284
+ * List of mentioned user group objects.
15285
+ */
15286
+ mentioned_groups?: UserGroupResponse[];
15287
+
13558
15288
  /**
13559
15289
  * List of roles mentioned in the message (e.g. admin, channel_moderator, custom roles). Members with matching roles will receive push notifications based on their push preferences. Max 10 roles
13560
15290
  */
@@ -13577,7 +15307,7 @@ export interface MessageResponse {
13577
15307
  */
13578
15308
  image_labels?: Record<string, string[]>;
13579
15309
 
13580
- member?: ChannelMemberResponse;
15310
+ member?: ChannelMemberPartialResponse;
13581
15311
 
13582
15312
  moderation?: ModerationV2Response;
13583
15313
 
@@ -13899,6 +15629,11 @@ export interface MessageWithChannelResponse {
13899
15629
  */
13900
15630
  mentioned_group_ids?: string[];
13901
15631
 
15632
+ /**
15633
+ * List of mentioned user group objects.
15634
+ */
15635
+ mentioned_groups?: UserGroupResponse[];
15636
+
13902
15637
  /**
13903
15638
  * List of roles mentioned in the message (e.g. admin, channel_moderator, custom roles). Members with matching roles will receive push notifications based on their push preferences. Max 10 roles
13904
15639
  */
@@ -13921,7 +15656,7 @@ export interface MessageWithChannelResponse {
13921
15656
  */
13922
15657
  image_labels?: Record<string, string[]>;
13923
15658
 
13924
- member?: ChannelMemberResponse;
15659
+ member?: ChannelMemberPartialResponse;
13925
15660
 
13926
15661
  moderation?: ModerationV2Response;
13927
15662
 
@@ -14000,6 +15735,8 @@ export interface ModerationActionConfigResponse {
14000
15735
  */
14001
15736
  order: number;
14002
15737
 
15738
+ id?: string;
15739
+
14003
15740
  /**
14004
15741
  * Queue type this action config belongs to
14005
15742
  */
@@ -14011,6 +15748,52 @@ export interface ModerationActionConfigResponse {
14011
15748
  custom?: Record<string, any>;
14012
15749
  }
14013
15750
 
15751
+ export interface ModerationBanResponse {
15752
+ duration: string;
15753
+ }
15754
+
15755
+ export interface ModerationCallResponse {
15756
+ backstage: boolean;
15757
+
15758
+ captioning: boolean;
15759
+
15760
+ cid: string;
15761
+
15762
+ created_at: Date;
15763
+
15764
+ current_session_id: string;
15765
+
15766
+ id: string;
15767
+
15768
+ recording: boolean;
15769
+
15770
+ transcribing: boolean;
15771
+
15772
+ translating: boolean;
15773
+
15774
+ type: string;
15775
+
15776
+ updated_at: Date;
15777
+
15778
+ blocked_user_ids: string[];
15779
+
15780
+ custom: Record<string, any>;
15781
+
15782
+ channel_cid?: string;
15783
+
15784
+ ended_at?: Date;
15785
+
15786
+ join_ahead_time_seconds?: number;
15787
+
15788
+ routing_number?: string;
15789
+
15790
+ starts_at?: Date;
15791
+
15792
+ team?: string;
15793
+
15794
+ created_by?: UserResponse;
15795
+ }
15796
+
14014
15797
  export interface ModerationCheckCompletedEvent {
14015
15798
  created_at: Date;
14016
15799
 
@@ -14070,6 +15853,8 @@ export interface ModerationConfig {
14070
15853
 
14071
15854
  block_list_config?: BlockListConfig;
14072
15855
 
15856
+ flood_config?: FloodConfig;
15857
+
14073
15858
  google_vision_config?: GoogleVisionConfig;
14074
15859
 
14075
15860
  llm_config?: LLMConfig;
@@ -14106,6 +15891,10 @@ export interface ModerationCustomActionEvent {
14106
15891
  export interface ModerationDashboardPreferences {
14107
15892
  async_review_queue_upsert?: boolean;
14108
15893
 
15894
+ block_foreign_cdn_attachments?: boolean;
15895
+
15896
+ custom_views_enabled?: boolean;
15897
+
14109
15898
  disable_audit_logs?: boolean;
14110
15899
 
14111
15900
  disable_flagging_reviewed_entity?: boolean;
@@ -14114,12 +15903,16 @@ export interface ModerationDashboardPreferences {
14114
15903
 
14115
15904
  flag_user_on_flagged_content?: boolean;
14116
15905
 
15906
+ include_attachment_payload?: boolean;
15907
+
14117
15908
  media_queue_blur_enabled?: boolean;
14118
15909
 
14119
15910
  allowed_moderation_action_reasons?: string[];
14120
15911
 
14121
15912
  escalation_reasons?: string[];
14122
15913
 
15914
+ filterable_custom_keys?: string[];
15915
+
14123
15916
  keyframe_classifications_map?: Record<string, Record<string, boolean>>;
14124
15917
 
14125
15918
  overview_dashboard?: OverviewDashboardConfig;
@@ -14154,27 +15947,75 @@ export interface ModerationFlagResponse {
14154
15947
 
14155
15948
  review_queue_item?: ReviewQueueItemResponse;
14156
15949
 
14157
- user?: UserResponse;
14158
- }
15950
+ user?: UserResponse;
15951
+ }
15952
+
15953
+ export interface ModerationFlaggedEvent {
15954
+ /**
15955
+ * The type of content that was flagged
15956
+ */
15957
+ content_type: string;
15958
+
15959
+ created_at: Date;
15960
+
15961
+ /**
15962
+ * The ID of the flagged content
15963
+ */
15964
+ object_id: string;
15965
+
15966
+ custom: Record<string, any>;
15967
+
15968
+ type: string;
15969
+
15970
+ received_at?: Date;
15971
+ }
15972
+
15973
+ export interface ModerationImageAnalysisCompleteEvent {
15974
+ created_at: Date;
15975
+
15976
+ type: string;
15977
+
15978
+ /**
15979
+ * The moderation policy key that was applied.
15980
+ */
15981
+ config_key?: string;
15982
+
15983
+ /**
15984
+ * Echo of the `entity_creator_id` on the /analyze request.
15985
+ */
15986
+ entity_creator_id?: string;
15987
+
15988
+ /**
15989
+ * Echo of the `entity_id` on the /analyze request.
15990
+ */
15991
+ entity_id?: string;
14159
15992
 
14160
- export interface ModerationFlaggedEvent {
14161
15993
  /**
14162
- * The type of content that was flagged
15994
+ * Echo of the `entity_type` on the /analyze request.
14163
15995
  */
14164
- content_type: string;
15996
+ entity_type?: string;
14165
15997
 
14166
- created_at: Date;
15998
+ received_at?: Date;
14167
15999
 
14168
16000
  /**
14169
- * The ID of the flagged content
16001
+ * Review queue row ID for deep-linking into the dashboard.
14170
16002
  */
14171
- object_id: string;
16003
+ review_queue_item_id?: string;
14172
16004
 
14173
- custom: Record<string, any>;
16005
+ /**
16006
+ * Echo of the `custom` metadata on the /analyze request.
16007
+ */
16008
+ custom?: Record<string, any>;
14174
16009
 
14175
- type: string;
16010
+ /**
16011
+ * Per-image verdicts, same shape as the /analyze HTTP response. Each entry carries `id` when the request supplied `content_ids`.
16012
+ */
16013
+ images?: Record<string, AnalyzeImageField>;
14176
16014
 
14177
- received_at?: Date;
16015
+ /**
16016
+ * Per-text-field verdicts, same shape as the /analyze HTTP response. Each entry carries `id` when the request supplied `content_ids`.
16017
+ */
16018
+ texts?: Record<string, AnalyzeTextField>;
14178
16019
  }
14179
16020
 
14180
16021
  export interface ModerationMarkReviewedEvent {
@@ -14192,16 +16033,31 @@ export interface ModerationMarkReviewedEvent {
14192
16033
  }
14193
16034
 
14194
16035
  export interface ModerationPayload {
16036
+ audios?: string[];
16037
+
16038
+ image_ordered_keys?: string[];
16039
+
14195
16040
  images?: string[];
14196
16041
 
16042
+ text_ordered_keys?: string[];
16043
+
14197
16044
  texts?: string[];
14198
16045
 
14199
16046
  videos?: string[];
14200
16047
 
14201
16048
  custom?: Record<string, any>;
16049
+
16050
+ image_ids?: Record<string, string>;
16051
+
16052
+ text_ids?: Record<string, string>;
14202
16053
  }
14203
16054
 
14204
16055
  export interface ModerationPayloadRequest {
16056
+ /**
16057
+ * Audio URLs to moderate
16058
+ */
16059
+ audios?: string[];
16060
+
14205
16061
  /**
14206
16062
  * Image URLs to moderate (max 30)
14207
16063
  */
@@ -14224,11 +16080,26 @@ export interface ModerationPayloadRequest {
14224
16080
  }
14225
16081
 
14226
16082
  export interface ModerationPayloadResponse {
16083
+ /**
16084
+ * Audio URLs to moderate
16085
+ */
16086
+ audios?: string[];
16087
+
16088
+ /**
16089
+ * Caller-supplied keys for images, index-aligned with images[]
16090
+ */
16091
+ image_ordered_keys?: string[];
16092
+
14227
16093
  /**
14228
16094
  * Image URLs to moderate
14229
16095
  */
14230
16096
  images?: string[];
14231
16097
 
16098
+ /**
16099
+ * Caller-supplied keys for texts (e.g. "title", "description"), index-aligned with texts[]
16100
+ */
16101
+ text_ordered_keys?: string[];
16102
+
14232
16103
  /**
14233
16104
  * Text content to moderate
14234
16105
  */
@@ -14243,6 +16114,38 @@ export interface ModerationPayloadResponse {
14243
16114
  * Custom data for moderation
14244
16115
  */
14245
16116
  custom?: Record<string, any>;
16117
+
16118
+ /**
16119
+ * Caller-supplied content IDs per image key (from content_ids on /analyze)
16120
+ */
16121
+ image_ids?: Record<string, string>;
16122
+
16123
+ /**
16124
+ * Caller-supplied content IDs per text key (from content_ids on /analyze)
16125
+ */
16126
+ text_ids?: Record<string, string>;
16127
+ }
16128
+
16129
+ export interface ModerationQueueResponse {
16130
+ created_at: Date;
16131
+
16132
+ created_by: string;
16133
+
16134
+ description: string;
16135
+
16136
+ id: string;
16137
+
16138
+ item_count: number;
16139
+
16140
+ name: string;
16141
+
16142
+ type: string;
16143
+
16144
+ updated_at: Date;
16145
+
16146
+ sort: Array<Record<string, any>>;
16147
+
16148
+ filters: Record<string, any>;
14246
16149
  }
14247
16150
 
14248
16151
  export interface ModerationResponse {
@@ -14337,6 +16240,54 @@ export interface ModerationRulesTriggeredEvent {
14337
16240
  * The violation number for call rules (optional)
14338
16241
  */
14339
16242
  violation_number?: number;
16243
+
16244
+ /**
16245
+ * Ordered list of contents whose verdicts contributed to an aggregation rule's threshold. Populated only for aggregation rules when callers supplied `content_ids`.
16246
+ */
16247
+ matched_contents?: MatchedContent[];
16248
+ }
16249
+
16250
+ export interface ModerationTextAnalysisCompleteEvent {
16251
+ created_at: Date;
16252
+
16253
+ type: string;
16254
+
16255
+ /**
16256
+ * The moderation policy key that was applied.
16257
+ */
16258
+ config_key?: string;
16259
+
16260
+ /**
16261
+ * Echo of the `entity_creator_id` on the /analyze request.
16262
+ */
16263
+ entity_creator_id?: string;
16264
+
16265
+ /**
16266
+ * Echo of the `entity_id` on the /analyze request.
16267
+ */
16268
+ entity_id?: string;
16269
+
16270
+ /**
16271
+ * Echo of the `entity_type` on the /analyze request.
16272
+ */
16273
+ entity_type?: string;
16274
+
16275
+ received_at?: Date;
16276
+
16277
+ /**
16278
+ * Review queue row ID for deep-linking into the dashboard.
16279
+ */
16280
+ review_queue_item_id?: string;
16281
+
16282
+ /**
16283
+ * Echo of the `custom` metadata on the /analyze request.
16284
+ */
16285
+ custom?: Record<string, any>;
16286
+
16287
+ /**
16288
+ * Per-text-field verdicts, same shape as the /analyze HTTP response. Each entry carries `id` when the request supplied `content_ids`.
16289
+ */
16290
+ texts?: Record<string, AnalyzeTextField>;
14340
16291
  }
14341
16292
 
14342
16293
  export interface ModerationV2Response {
@@ -14618,6 +16569,8 @@ export interface NotificationMarkUnreadEvent {
14618
16569
 
14619
16570
  channel_custom?: Record<string, any>;
14620
16571
 
16572
+ grouped_unread_channels?: Record<string, number>;
16573
+
14621
16574
  user?: UserResponseCommonFields;
14622
16575
  }
14623
16576
 
@@ -14836,6 +16789,14 @@ export interface NotificationTrigger {
14836
16789
  custom?: Record<string, any>;
14837
16790
  }
14838
16791
 
16792
+ export interface OCRContentParameters {
16793
+ label_operator?: string;
16794
+
16795
+ severity?: string;
16796
+
16797
+ harm_labels?: string[];
16798
+ }
16799
+
14839
16800
  export interface OCRRule {
14840
16801
  action:
14841
16802
  | 'flag'
@@ -15227,6 +17188,11 @@ export interface Permission {
15227
17188
  */
15228
17189
  owner: boolean;
15229
17190
 
17191
+ /**
17192
+ * Resource type that defines ownership for this permission's action (e.g. 'Channel' for CreateMessage, 'Message' for UpdateMessage). Identical across all variants of an action; primarily meaningful for owner grants.
17193
+ */
17194
+ owner_resource: string;
17195
+
15230
17196
  /**
15231
17197
  * Whether this permission applies to teammates (multi-tenancy mode only)
15232
17198
  */
@@ -15984,6 +17950,19 @@ export interface QueryActivityReactionsResponse {
15984
17950
  prev?: string;
15985
17951
  }
15986
17952
 
17953
+ export interface QueryActivitySharesResponse {
17954
+ /**
17955
+ * Duration of the request in milliseconds
17956
+ */
17957
+ duration: string;
17958
+
17959
+ shares: ShareResponse[];
17960
+
17961
+ next?: string;
17962
+
17963
+ prev?: string;
17964
+ }
17965
+
15987
17966
  export interface QueryAggregateCallStatsRequest {
15988
17967
  from?: string;
15989
17968
 
@@ -16137,6 +18116,8 @@ export interface QueryBookmarksRequest {
16137
18116
 
16138
18117
  prev?: string;
16139
18118
 
18119
+ user_id?: string;
18120
+
16140
18121
  /**
16141
18122
  * Sorting parameters for the query
16142
18123
  */
@@ -16146,6 +18127,8 @@ export interface QueryBookmarksRequest {
16146
18127
  * Filters to apply to the query
16147
18128
  */
16148
18129
  filter?: Record<string, any>;
18130
+
18131
+ user?: UserRequest;
16149
18132
  }
16150
18133
 
16151
18134
  export interface QueryBookmarksResponse {
@@ -16883,6 +18866,41 @@ export interface QueryFutureChannelBansResponse {
16883
18866
  bans: FutureChannelBanResponse[];
16884
18867
  }
16885
18868
 
18869
+ export interface QueryLabelResultsRequest {
18870
+ limit?: number;
18871
+
18872
+ next?: string;
18873
+
18874
+ prev?: string;
18875
+
18876
+ user_id?: string;
18877
+
18878
+ /**
18879
+ * Sorting parameters
18880
+ */
18881
+ sort?: SortParamRequest[];
18882
+
18883
+ /**
18884
+ * Filter conditions
18885
+ */
18886
+ filter?: Record<string, any>;
18887
+
18888
+ user?: UserRequest;
18889
+ }
18890
+
18891
+ export interface QueryLabelResultsResponse {
18892
+ duration: string;
18893
+
18894
+ /**
18895
+ * List of moderation label results
18896
+ */
18897
+ label_results: LabelResultResponse[];
18898
+
18899
+ next?: string;
18900
+
18901
+ prev?: string;
18902
+ }
18903
+
16886
18904
  export interface QueryMembersPayload {
16887
18905
  type: string;
16888
18906
 
@@ -17149,6 +19167,11 @@ export interface QueryModerationRulesResponse {
17149
19167
  */
17150
19168
  keyframe_labels: string[];
17151
19169
 
19170
+ /**
19171
+ * Available harm labels for OCR-based rule conditions (keyframe_ocr_rule and ocr_content). Mirrors `closed_caption_labels` today but kept as a separate field so the pickers can diverge later.
19172
+ */
19173
+ ocr_labels: string[];
19174
+
17152
19175
  /**
17153
19176
  * List of moderation rules
17154
19177
  */
@@ -17164,6 +19187,11 @@ export interface QueryModerationRulesResponse {
17164
19187
  */
17165
19188
  default_llm_labels: Record<string, string>;
17166
19189
 
19190
+ /**
19191
+ * Recommended LLM label descriptions for username-scoped policies (key starts with 'username:'). Used by /moderation/v2/labels fast-path.
19192
+ */
19193
+ default_username_llm_labels: Record<string, string>;
19194
+
17167
19195
  /**
17168
19196
  * L1 to L2 mapping of keyframe harm label classifications
17169
19197
  */
@@ -17339,6 +19367,8 @@ export interface QueryRemindersResponse {
17339
19367
  }
17340
19368
 
17341
19369
  export interface QueryReviewQueueRequest {
19370
+ exclude_default_action_config?: boolean;
19371
+
17342
19372
  limit?: number;
17343
19373
 
17344
19374
  /**
@@ -17373,7 +19403,7 @@ export interface QueryReviewQueueRequest {
17373
19403
  sort?: SortParamRequest[];
17374
19404
 
17375
19405
  /**
17376
- * Filter conditions for review queue items
19406
+ * Filter conditions for review queue items. Accepts built-in fields (e.g. status, channel_cid, severity, recommended_action) and customer-supplied moderation_payload.custom keys: any key that is not a built-in field is matched against the item's custom moderation data (e.g. {"location_id": "loc-42"}). Use filter_config.filterable_custom_keys to discover which custom keys the app exposes as chips.
17377
19407
  */
17378
19408
  filter?: Record<string, any>;
17379
19409
 
@@ -17402,6 +19432,8 @@ export interface QueryReviewQueueResponse {
17402
19432
 
17403
19433
  prev?: string;
17404
19434
 
19435
+ default_action_config?: Record<string, ModerationActionConfigResponse[]>;
19436
+
17405
19437
  filter_config?: FilterConfigResponse;
17406
19438
  }
17407
19439
 
@@ -17671,6 +19703,15 @@ export interface QueryUsersResponse {
17671
19703
  users: FullUserResponse[];
17672
19704
  }
17673
19705
 
19706
+ export interface QueueResponse {
19707
+ /**
19708
+ * Duration of the request in milliseconds
19709
+ */
19710
+ duration: string;
19711
+
19712
+ queue?: ModerationQueueResponse;
19713
+ }
19714
+
17674
19715
  export interface RTMPBroadcastRequest {
17675
19716
  /**
17676
19717
  * Name identifier for RTMP broadcast, must be unique in call
@@ -18205,7 +20246,7 @@ export interface ReadCollectionsResponse {
18205
20246
  }
18206
20247
 
18207
20248
  export interface ReadReceiptsResponse {
18208
- enabled?: boolean;
20249
+ enabled: boolean;
18209
20250
  }
18210
20251
 
18211
20252
  export interface ReadStateResponse {
@@ -18528,6 +20569,20 @@ export interface ReportByHistogramBucket {
18528
20569
  upper_bound?: Bound;
18529
20570
  }
18530
20571
 
20572
+ export interface ReportClientEventRequest {
20573
+ /**
20574
+ * Client-side events to report (1-100 per request)
20575
+ */
20576
+ events: ClientEvent[];
20577
+ }
20578
+
20579
+ export interface ReportClientEventResponse {
20580
+ /**
20581
+ * Duration of the request in milliseconds
20582
+ */
20583
+ duration: string;
20584
+ }
20585
+
18531
20586
  export interface ReportResponse {
18532
20587
  call: CallReportResponse;
18533
20588
 
@@ -18836,7 +20891,7 @@ export interface ReviewQueueItemResponse {
18836
20891
 
18837
20892
  assigned_to?: UserResponse;
18838
20893
 
18839
- call?: CallResponse;
20894
+ call?: ModerationCallResponse;
18840
20895
 
18841
20896
  entity_creator?: EntityCreatorResponse;
18842
20897
 
@@ -18850,7 +20905,7 @@ export interface ReviewQueueItemResponse {
18850
20905
 
18851
20906
  feeds_v3_comment?: FeedsV3CommentResponse;
18852
20907
 
18853
- message?: MessageResponse;
20908
+ message?: ChatMessageResponse;
18854
20909
 
18855
20910
  moderation_payload?: ModerationPayloadResponse;
18856
20911
 
@@ -18976,6 +21031,8 @@ export interface Role {
18976
21031
  }
18977
21032
 
18978
21033
  export interface RuleBuilderAction {
21034
+ reason?: string;
21035
+
18979
21036
  skip_inbox?: boolean;
18980
21037
 
18981
21038
  type?:
@@ -19015,18 +21072,36 @@ export interface RuleBuilderCondition {
19015
21072
 
19016
21073
  call_violation_count_params?: CallViolationCountParameters;
19017
21074
 
21075
+ channel_message_count_rule_params?: ChannelMessageCountRuleParameters;
21076
+
19018
21077
  closed_caption_rule_params?: ClosedCaptionRuleParameters;
19019
21078
 
19020
21079
  content_count_rule_params?: ContentCountRuleParameters;
19021
21080
 
21081
+ content_custom_property_count_params?: ContentCustomPropertyCountParameters;
21082
+
21083
+ content_custom_property_params?: ContentCustomPropertyParameters;
21084
+
19022
21085
  content_flag_count_rule_params?: FlagCountRuleParameters;
19023
21086
 
21087
+ flood_identical_params?: FloodIdenticalRuleParameters;
21088
+
21089
+ flood_similar_params?: FloodSimilarRuleParameters;
21090
+
19024
21091
  image_content_params?: ImageContentParameters;
19025
21092
 
19026
21093
  image_rule_params?: ImageRuleParameters;
19027
21094
 
21095
+ ip_content_count_rule_params?: IPContentCountRuleParameters;
21096
+
21097
+ ip_flag_count_rule_params?: IPFlagCountRuleParameters;
21098
+
21099
+ keyframe_ocr_rule_params?: KeyframeOCRRuleParameters;
21100
+
19028
21101
  keyframe_rule_params?: KeyframeRuleParameters;
19029
21102
 
21103
+ ocr_content_params?: OCRContentParameters;
21104
+
19030
21105
  text_content_params?: TextContentParameters;
19031
21106
 
19032
21107
  text_rule_params?: TextRuleParameters;
@@ -19666,6 +21741,8 @@ export interface SearchResultMessage {
19666
21741
 
19667
21742
  mentioned_group_ids?: string[];
19668
21743
 
21744
+ mentioned_groups?: UserGroupResponse[];
21745
+
19669
21746
  mentioned_roles?: string[];
19670
21747
 
19671
21748
  thread_participants?: UserResponse[];
@@ -19678,7 +21755,7 @@ export interface SearchResultMessage {
19678
21755
 
19679
21756
  image_labels?: Record<string, string[]>;
19680
21757
 
19681
- member?: ChannelMemberResponse;
21758
+ member?: ChannelMemberPartialResponse;
19682
21759
 
19683
21760
  moderation?: ModerationV2Response;
19684
21761
 
@@ -19695,6 +21772,15 @@ export interface SearchResultMessage {
19695
21772
  shared_location?: SharedLocationResponseData;
19696
21773
  }
19697
21774
 
21775
+ export interface SearchRolesResponse {
21776
+ duration: string;
21777
+
21778
+ /**
21779
+ * Matching roles, sorted ascending by name
21780
+ */
21781
+ roles: Role[];
21782
+ }
21783
+
19698
21784
  export interface SearchUserGroupsResponse {
19699
21785
  duration: string;
19700
21786
 
@@ -19935,6 +22021,20 @@ export interface SetRetentionPolicyResponse {
19935
22021
  policy: RetentionPolicy;
19936
22022
  }
19937
22023
 
22024
+ export interface SetupSession {
22025
+ created_at: Date;
22026
+
22027
+ current_step: string;
22028
+
22029
+ status: string;
22030
+
22031
+ updated_at: Date;
22032
+
22033
+ setup_data: Record<string, any>;
22034
+
22035
+ completed_at?: Date;
22036
+ }
22037
+
19938
22038
  export interface ShadowBlockActionRequestPayload {
19939
22039
  /**
19940
22040
  * Reason for shadow blocking
@@ -19942,6 +22042,20 @@ export interface ShadowBlockActionRequestPayload {
19942
22042
  reason?: string;
19943
22043
  }
19944
22044
 
22045
+ export interface ShareResponse {
22046
+ /**
22047
+ * ID of the sharing (child) activity
22048
+ */
22049
+ activity_id: string;
22050
+
22051
+ /**
22052
+ * When the share occurred
22053
+ */
22054
+ created_at: Date;
22055
+
22056
+ user: UserResponse;
22057
+ }
22058
+
19945
22059
  export interface SharedLocation {
19946
22060
  latitude: number;
19947
22061
 
@@ -20506,29 +22620,85 @@ export interface SubmitActionRequest {
20506
22620
 
20507
22621
  escalate?: EscalatePayload;
20508
22622
 
20509
- flag?: FlagRequest;
22623
+ flag?: FlagRequest;
22624
+
22625
+ mark_reviewed?: MarkReviewedRequestPayload;
22626
+
22627
+ reject_appeal?: RejectAppealRequestPayload;
22628
+
22629
+ restore?: RestoreActionRequestPayload;
22630
+
22631
+ shadow_block?: ShadowBlockActionRequestPayload;
22632
+
22633
+ unban?: UnbanActionRequestPayload;
22634
+
22635
+ unblock?: UnblockActionRequestPayload;
22636
+
22637
+ user?: UserRequest;
22638
+ }
22639
+
22640
+ export interface SubmitActionResponse {
22641
+ duration: string;
22642
+
22643
+ /**
22644
+ * Present when the appeal was accepted but the entity could not be restored automatically. The moderator should restore it manually.
22645
+ */
22646
+ auto_restore_warning?: string;
22647
+
22648
+ appeal_item?: AppealItemResponse;
22649
+
22650
+ item?: ReviewQueueItemResponse;
22651
+ }
22652
+
22653
+ export interface SubmitModerationFeedbackRequest {
22654
+ /**
22655
+ * The moderated content the moderator is providing feedback on
22656
+ */
22657
+ message: string;
22658
+
22659
+ /**
22660
+ * Original publication time of the moderated content (RFC3339)
22661
+ */
22662
+ published_at: string;
20510
22663
 
20511
- mark_reviewed?: MarkReviewedRequestPayload;
22664
+ /**
22665
+ * Provider-side reference identifying the moderated content
22666
+ */
22667
+ reference: string;
20512
22668
 
20513
- reject_appeal?: RejectAppealRequestPayload;
22669
+ /**
22670
+ * Optional moderation channel UUID for context
22671
+ */
22672
+ channel_id?: string;
20514
22673
 
20515
- restore?: RestoreActionRequestPayload;
22674
+ /**
22675
+ * Action originally produced by the moderation system
22676
+ */
22677
+ current_recommended_action?: string;
20516
22678
 
20517
- shadow_block?: ShadowBlockActionRequestPayload;
22679
+ /**
22680
+ * Optional free-form note explaining why the classification was wrong
22681
+ */
22682
+ description?: string;
20518
22683
 
20519
- unban?: UnbanActionRequestPayload;
22684
+ /**
22685
+ * Optional moderator-supplied action
22686
+ */
22687
+ expected_recommended_action?: string;
20520
22688
 
20521
- unblock?: UnblockActionRequestPayload;
22689
+ /**
22690
+ * Classifications originally produced by the moderation system
22691
+ */
22692
+ current_labels?: string[];
20522
22693
 
20523
- user?: UserRequest;
22694
+ /**
22695
+ * Optional moderator-supplied classifications (up to 16 entries)
22696
+ */
22697
+ expected_labels?: string[];
20524
22698
  }
20525
22699
 
20526
- export interface SubmitActionResponse {
22700
+ export interface SubmitModerationFeedbackResponse {
20527
22701
  duration: string;
20528
-
20529
- appeal_item?: AppealItemResponse;
20530
-
20531
- item?: ReviewQueueItemResponse;
20532
22702
  }
20533
22703
 
20534
22704
  export interface SubscriberAllMetrics {
@@ -20568,11 +22738,11 @@ export interface SubscribersMetrics {
20568
22738
  }
20569
22739
 
20570
22740
  export interface TargetResolution {
20571
- bitrate: number;
20572
-
20573
22741
  height: number;
20574
22742
 
20575
22743
  width: number;
22744
+
22745
+ bitrate?: number;
20576
22746
  }
20577
22747
 
20578
22748
  export interface TeamUsageStats {
@@ -20621,6 +22791,10 @@ export interface TextContentParameters {
20621
22791
 
20622
22792
  severity?: string;
20623
22793
 
22794
+ text_length?: number;
22795
+
22796
+ text_length_operator?: string;
22797
+
20624
22798
  blocklist_match?: string[];
20625
22799
 
20626
22800
  harm_labels?: string[];
@@ -20910,6 +23084,8 @@ export interface ThreadedCommentResponse {
20910
23084
 
20911
23085
  custom?: Record<string, any>;
20912
23086
 
23087
+ i18n?: Record<string, string>;
23088
+
20913
23089
  meta?: RepliesMeta;
20914
23090
 
20915
23091
  moderation?: ModerationV2Response;
@@ -21163,6 +23339,38 @@ export interface TranscriptionSettingsResponse {
21163
23339
  translation?: TranslationSettings;
21164
23340
  }
21165
23341
 
23342
+ export interface TranslateActivityRequest {
23343
+ /**
23344
+ * ISO 639-1 language code to translate to
23345
+ */
23346
+ language: string;
23347
+ }
23348
+
23349
+ export interface TranslateActivityResponse {
23350
+ /**
23351
+ * Duration of the request in milliseconds
23352
+ */
23353
+ duration: string;
23354
+
23355
+ activity: ActivityResponse;
23356
+ }
23357
+
23358
+ export interface TranslateCommentRequest {
23359
+ /**
23360
+ * ISO 639-1 language code to translate to
23361
+ */
23362
+ language: string;
23363
+ }
23364
+
23365
+ export interface TranslateCommentResponse {
23366
+ /**
23367
+ * Duration of the request in milliseconds
23368
+ */
23369
+ duration: string;
23370
+
23371
+ comment: CommentResponse;
23372
+ }
23373
+
21166
23374
  export interface TranslateMessageRequest {
21167
23375
  /**
21168
23376
  * Language to translate message to
@@ -21229,9 +23437,9 @@ export interface TranslateMessageRequest {
21229
23437
  }
21230
23438
 
21231
23439
  export interface TranslationSettings {
21232
- enabled: boolean;
23440
+ enabled?: boolean;
21233
23441
 
21234
- languages: string[];
23442
+ languages?: string[];
21235
23443
  }
21236
23444
 
21237
23445
  export interface TriggeredRuleResponse {
@@ -21250,6 +23458,11 @@ export interface TriggeredRuleResponse {
21250
23458
  */
21251
23459
  rule_name?: string;
21252
23460
 
23461
+ /**
23462
+ * Type of the moderation rule that triggered (content, user, or call)
23463
+ */
23464
+ type?: string;
23465
+
21253
23466
  /**
21254
23467
  * Violation count for action sequence rules (1-based)
21255
23468
  */
@@ -21298,7 +23511,7 @@ export interface TruncateChannelResponse {
21298
23511
  }
21299
23512
 
21300
23513
  export interface TypingIndicatorsResponse {
21301
- enabled?: boolean;
23514
+ enabled: boolean;
21302
23515
  }
21303
23516
 
21304
23517
  export interface UnbanActionRequestPayload {
@@ -21788,22 +24001,41 @@ export interface UpdateAppRequest {
21788
24001
 
21789
24002
  auto_translation_enabled?: boolean;
21790
24003
 
21791
- before_message_send_hook_url?: string;
21792
-
21793
24004
  before_message_send_hook_attempt_timeout_ms?: number;
21794
24005
 
24006
+ before_message_send_hook_url?: string;
24007
+
21795
24008
  cdn_expiration_seconds?: number;
21796
24009
 
21797
24010
  channel_hide_members_only?: boolean;
21798
24011
 
24012
+ chat_primary_use_case?:
24013
+ | 'messaging'
24014
+ | 'customer-support'
24015
+ | 'community'
24016
+ | 'marketplace'
24017
+ | 'gaming'
24018
+ | 'telehealth'
24019
+ | 'on-demand'
24020
+ | 'workforce-management'
24021
+ | 'dating'
24022
+ | 'education'
24023
+ | 'financial'
24024
+ | 'sports'
24025
+ | 'real-money-gaming';
24026
+
21799
24027
  custom_action_handler_url?: string;
21800
24028
 
21801
24029
  disable_auth_checks?: boolean;
21802
24030
 
21803
24031
  disable_permissions_checks?: boolean;
21804
24032
 
24033
+ enable_hook_payload_compression?: boolean;
24034
+
21805
24035
  enforce_unique_usernames?: 'no' | 'app' | 'team';
21806
24036
 
24037
+ feed_audit_logs_enabled?: boolean;
24038
+
21807
24039
  feeds_moderation_enabled?: boolean;
21808
24040
 
21809
24041
  feeds_v2_region?: string;
@@ -21820,6 +24052,8 @@ export interface UpdateAppRequest {
21820
24052
 
21821
24053
  moderation_enabled?: boolean;
21822
24054
 
24055
+ moderation_onboarding_complete?: boolean;
24056
+
21823
24057
  moderation_s3_image_access_role_arn?: string;
21824
24058
 
21825
24059
  moderation_webhook_url?: string;
@@ -21832,6 +24066,8 @@ export interface UpdateAppRequest {
21832
24066
 
21833
24067
  reminders_max_members?: number;
21834
24068
 
24069
+ reminders_max_per_user?: number;
24070
+
21835
24071
  revoke_tokens_issued_before?: Date;
21836
24072
 
21837
24073
  sns_key?: string;
@@ -21848,6 +24084,15 @@ export interface UpdateAppRequest {
21848
24084
 
21849
24085
  user_response_time_enabled?: boolean;
21850
24086
 
24087
+ video_primary_use_case?:
24088
+ | 'video-calling'
24089
+ | 'voice-calling'
24090
+ | 'livestreaming'
24091
+ | 'audio-rooms'
24092
+ | 'ai-agents'
24093
+ | 'live-shopping'
24094
+ | 'other';
24095
+
21851
24096
  webhook_url?: string;
21852
24097
 
21853
24098
  allowed_flag_reasons?: string[];
@@ -21888,10 +24133,14 @@ export interface UpdateAppRequest {
21888
24133
  }
21889
24134
 
21890
24135
  export interface UpdateBlockListRequest {
24136
+ is_confusable_folding_enabled?: boolean;
24137
+
21891
24138
  is_leet_check_enabled?: boolean;
21892
24139
 
21893
24140
  is_plural_check_enabled?: boolean;
21894
24141
 
24142
+ is_substring_matching_enabled?: boolean;
24143
+
21895
24144
  team?: string;
21896
24145
 
21897
24146
  /**
@@ -22048,6 +24297,36 @@ export interface UpdateCallTypeResponse {
22048
24297
  external_storage?: string;
22049
24298
  }
22050
24299
 
24300
+ export interface UpdateCampaignRequest {
24301
+ sender_id: string;
24302
+
24303
+ message_template: CampaignMessageTemplate;
24304
+
24305
+ create_channels?: boolean;
24306
+
24307
+ description?: string;
24308
+
24309
+ id?: string;
24310
+
24311
+ name?: string;
24312
+
24313
+ sender_mode?: 'exclude' | 'include';
24314
+
24315
+ sender_visibility?: 'hidden' | 'archived';
24316
+
24317
+ show_channels?: boolean;
24318
+
24319
+ skip_push?: boolean;
24320
+
24321
+ skip_webhook?: boolean;
24322
+
24323
+ segment_ids?: string[];
24324
+
24325
+ user_ids?: string[];
24326
+
24327
+ channel_template?: CampaignChannelTemplate;
24328
+ }
24329
+
22051
24330
  export interface UpdateChannelPartialRequest {
22052
24331
  user_id?: string;
22053
24332
 
@@ -22731,7 +25010,7 @@ export interface UpdateFollowRequest {
22731
25010
  create_notification_activity?: boolean;
22732
25011
 
22733
25012
  /**
22734
- * If true, auto-creates users referenced by the source and target FIDs when they don't already exist. Server-side only. Defaults to false. For FollowBatch/GetOrCreateFollows, use the top-level create_users field; per-item follows[i].create_users is rejected.
25013
+ * If true, auto-creates users referenced by the source and target FIDs when they don't already exist. Server-side only. Defaults to false. Use directly on single follow endpoints (Follow, GetOrCreateFollow). On batch endpoints (FollowBatch, GetOrCreateFollows), use the top-level create_users field; per-item follows[i].create_users is rejected.
22735
25014
  */
22736
25015
  create_users?: boolean;
22737
25016
 
@@ -22993,6 +25272,20 @@ export interface UpdatePollRequest {
22993
25272
  user?: UserRequest;
22994
25273
  }
22995
25274
 
25275
+ export interface UpdateQueueRequest {
25276
+ description?: string;
25277
+
25278
+ name?: string;
25279
+
25280
+ user_id?: string;
25281
+
25282
+ sort?: Array<Record<string, any>>;
25283
+
25284
+ filters?: Record<string, any>;
25285
+
25286
+ user?: UserRequest;
25287
+ }
25288
+
22996
25289
  export interface UpdateReminderRequest {
22997
25290
  remind_at?: Date;
22998
25291
 
@@ -23076,6 +25369,32 @@ export interface UpdateSIPTrunkResponse {
23076
25369
  sip_trunk?: SIPTrunkResponse;
23077
25370
  }
23078
25371
 
25372
+ export interface UpdateSegmentRequest {
25373
+ /**
25374
+ * The description of the segment (max 256 characters)
25375
+ */
25376
+ description?: string;
25377
+
25378
+ /**
25379
+ * The name of the segment (max 128 characters)
25380
+ */
25381
+ name?: string;
25382
+
25383
+ /**
25384
+ * Filter to apply to the query
25385
+ */
25386
+ filter?: Record<string, any>;
25387
+ }
25388
+
25389
+ export interface UpdateSegmentResponse {
25390
+ /**
25391
+ * Duration of the request in milliseconds
25392
+ */
25393
+ duration: string;
25394
+
25395
+ segment: SegmentResponse;
25396
+ }
25397
+
23079
25398
  export interface UpdateThreadPartialRequest {
23080
25399
  user_id?: string;
23081
25400
 
@@ -23247,12 +25566,90 @@ export interface UploadChannelResponse {
23247
25566
  upload_sizes?: ImageSize[];
23248
25567
  }
23249
25568
 
25569
+ export interface UpsertActionConfigItem {
25570
+ action: string;
25571
+
25572
+ entity_type: string;
25573
+
25574
+ order: number;
25575
+
25576
+ description?: string;
25577
+
25578
+ icon?: string;
25579
+
25580
+ id?: string;
25581
+
25582
+ queue_type?: string;
25583
+
25584
+ custom?: Record<string, any>;
25585
+ }
25586
+
25587
+ export interface UpsertActionConfigRequest {
25588
+ /**
25589
+ * The action to perform (e.g. ban, delete_message, custom)
25590
+ */
25591
+ action: string;
25592
+
25593
+ /**
25594
+ * Type of entity this action applies to (e.g. stream:chat:v1:message)
25595
+ */
25596
+ entity_type: string;
25597
+
25598
+ /**
25599
+ * Display order in the dashboard (0–100, lower numbers shown first)
25600
+ */
25601
+ order: number;
25602
+
25603
+ /**
25604
+ * Human-readable label for the dashboard button
25605
+ */
25606
+ description?: string;
25607
+
25608
+ /**
25609
+ * Icon identifier for the dashboard button
25610
+ */
25611
+ icon?: string;
25612
+
25613
+ /**
25614
+ * UUID of an existing action config to update; omit to create a new record
25615
+ */
25616
+ id?: string;
25617
+
25618
+ /**
25619
+ * Queue this config belongs to; null means the default queue
25620
+ */
25621
+ queue_type?: string;
25622
+
25623
+ /**
25624
+ * Optional user ID to associate with the audit log entry
25625
+ */
25626
+ user_id?: string;
25627
+
25628
+ /**
25629
+ * Action-specific parameters passed to the action handler
25630
+ */
25631
+ custom?: Record<string, any>;
25632
+
25633
+ user?: UserRequest;
25634
+ }
25635
+
25636
+ export interface UpsertActionConfigResponse {
25637
+ duration: string;
25638
+
25639
+ action_config?: ModerationActionConfigResponse;
25640
+ }
25641
+
23250
25642
  export interface UpsertActivitiesRequest {
23251
25643
  /**
23252
25644
  * List of activities to create or update
23253
25645
  */
23254
25646
  activities: ActivityRequest[];
23255
25647
 
25648
+ /**
25649
+ * Server-side only. If true, auto-creates users referenced by activity user_id values that don't already exist. Default: false.
25650
+ */
25651
+ create_users?: boolean;
25652
+
23256
25653
  /**
23257
25654
  * If true, enriches the activities' current_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.
23258
25655
  */
@@ -23315,6 +25712,8 @@ export interface UpsertConfigRequest {
23315
25712
  */
23316
25713
  user_id?: string;
23317
25714
 
25715
+ ai_audio_config?: AIAudioConfigRequest;
25716
+
23318
25717
  ai_image_config?: AIImageConfig;
23319
25718
 
23320
25719
  ai_text_config?: AITextConfig;
@@ -23333,6 +25732,8 @@ export interface UpsertConfigRequest {
23333
25732
 
23334
25733
  bodyguard_config?: AITextConfig;
23335
25734
 
25735
+ flood_config?: FloodConfig;
25736
+
23336
25737
  google_vision_config?: GoogleVisionConfig;
23337
25738
 
23338
25739
  llm_config?: LLMConfig;
@@ -23352,29 +25753,6 @@ export interface UpsertConfigResponse {
23352
25753
  config?: ConfigResponse;
23353
25754
  }
23354
25755
 
23355
- export interface UpsertExternalStorageAWSS3Request {
23356
- bucket: string;
23357
-
23358
- region: string;
23359
-
23360
- role_arn: string;
23361
-
23362
- path_prefix?: string;
23363
- }
23364
-
23365
- export interface UpsertExternalStorageRequest {
23366
- type: 'aws_s3';
23367
-
23368
- aws_s3?: UpsertExternalStorageAWSS3Request;
23369
- }
23370
-
23371
- export interface UpsertExternalStorageResponse {
23372
- /**
23373
- * Duration of the request in milliseconds
23374
- */
23375
- duration: string;
23376
- }
23377
-
23378
25756
  export interface UpsertModerationRuleRequest {
23379
25757
  /**
23380
25758
  * Unique rule name
@@ -23382,7 +25760,7 @@ export interface UpsertModerationRuleRequest {
23382
25760
  name: string;
23383
25761
 
23384
25762
  /**
23385
- * Type of rule: user, content, or call
25763
+ * Type of rule: user, content, call, or flood
23386
25764
  */
23387
25765
  rule_type: string;
23388
25766
 
@@ -23498,7 +25876,7 @@ export interface UpsertPushPreferencesResponse {
23498
25876
  */
23499
25877
  user_channel_preferences: Record<
23500
25878
  string,
23501
- Record<string, ChannelPushPreferencesResponse | null>
25879
+ Record<string, ChannelPushPreferencesResponse>
23502
25880
  >;
23503
25881
 
23504
25882
  /**
@@ -23568,6 +25946,31 @@ export interface UpsertPushTemplateResponse {
23568
25946
  template?: PushTemplateResponse;
23569
25947
  }
23570
25948
 
25949
+ export interface UpsertSetupSessionRequest {
25950
+ /**
25951
+ * The current step of the setup wizard. One of: welcome, input, configure, live
25952
+ */
25953
+
25954
+ current_step: 'welcome' | 'input' | 'configure' | 'live';
25955
+
25956
+ /**
25957
+ * The status of the setup session. One of: in_progress, completed
25958
+ */
25959
+
25960
+ status: 'in_progress' | 'completed';
25961
+
25962
+ /**
25963
+ * Per-step data keyed by step name (welcome, input, configure, live)
25964
+ */
25965
+ setup_data?: Record<string, any>;
25966
+ }
25967
+
25968
+ export interface UpsertSetupSessionResponse {
25969
+ duration: string;
25970
+
25971
+ setup_session?: SetupSession;
25972
+ }
25973
+
23571
25974
  export interface User {
23572
25975
  id: string;
23573
25976
 
@@ -23620,6 +26023,11 @@ export interface UserBannedEvent {
23620
26023
 
23621
26024
  received_at?: Date;
23622
26025
 
26026
+ /**
26027
+ * ID of the review queue item (flagged message) that triggered the ban, if the ban was applied from the moderation review queue
26028
+ */
26029
+ review_queue_item_id?: string;
26030
+
23623
26031
  /**
23624
26032
  * Whether the user was shadow banned
23625
26033
  */
@@ -24415,13 +26823,6 @@ export interface UserUpdatedEvent {
24415
26823
  received_at?: Date;
24416
26824
  }
24417
26825
 
24418
- export interface ValidateExternalStorageResponse {
24419
- /**
24420
- * Duration of the request in milliseconds
24421
- */
24422
- duration: string;
24423
- }
24424
-
24425
26826
  export interface VelocityFilterConfig {
24426
26827
  advanced_filters?: boolean;
24427
26828
 
@@ -24652,6 +27053,8 @@ export type WHEvent =
24652
27053
  | ({
24653
27054
  type: 'export.moderation_logs.success';
24654
27055
  } & AsyncExportModerationLogsEvent)
27056
+ | ({ type: 'export.review_queue.error' } & AsyncExportErrorEvent)
27057
+ | ({ type: 'export.review_queue.success' } & AsyncExportReviewQueueEvent)
24655
27058
  | ({ type: 'export.users.error' } & AsyncExportErrorEvent)
24656
27059
  | ({ type: 'export.users.success' } & AsyncExportUsersEvent)
24657
27060
  | ({ type: 'feeds.activity.added' } & ActivityAddedEvent)
@@ -24711,7 +27114,13 @@ export type WHEvent =
24711
27114
  | ({ type: 'message.updated' } & MessageUpdatedEvent)
24712
27115
  | ({ type: 'moderation.custom_action' } & ModerationCustomActionEvent)
24713
27116
  | ({ type: 'moderation.flagged' } & ModerationFlaggedEvent)
27117
+ | ({
27118
+ type: 'moderation.image_analysis.complete';
27119
+ } & ModerationImageAnalysisCompleteEvent)
24714
27120
  | ({ type: 'moderation.mark_reviewed' } & ModerationMarkReviewedEvent)
27121
+ | ({
27122
+ type: 'moderation.text_analysis.complete';
27123
+ } & ModerationTextAnalysisCompleteEvent)
24715
27124
  | ({ type: 'moderation_check.completed' } & ModerationCheckCompletedEvent)
24716
27125
  | ({ type: 'moderation_rule.triggered' } & ModerationRulesTriggeredEvent)
24717
27126
  | ({ type: 'notification.mark_unread' } & NotificationMarkUnreadEvent)
@@ -24808,6 +27217,16 @@ export interface WSEvent {
24808
27217
  user?: UserResponse;
24809
27218
  }
24810
27219
 
27220
+ export interface WebhookFailoverConfig {
27221
+ gcs_bucket?: string;
27222
+
27223
+ gcs_credentials?: string;
27224
+
27225
+ gcs_path?: string;
27226
+
27227
+ type?: string;
27228
+ }
27229
+
24811
27230
  export interface WrappedUnreadCountsResponse {
24812
27231
  /**
24813
27232
  * Duration of the request in milliseconds