stream-chat 10.1.1 → 10.3.0

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.
Files changed (109) hide show
  1. package/dist/cjs/index.browser.js +4736 -2819
  2. package/dist/cjs/index.browser.js.map +4 -4
  3. package/dist/cjs/index.node.js +4757 -2819
  4. package/dist/cjs/index.node.js.map +4 -4
  5. package/dist/esm/index.mjs +4736 -2819
  6. package/dist/esm/index.mjs.map +4 -4
  7. package/dist/types/channel.d.ts +62 -3
  8. package/dist/types/client.d.ts +9 -1
  9. package/dist/types/configuration/types.d.ts +2 -0
  10. package/dist/types/connection/ConnectionRecoveryManager.d.ts +1 -0
  11. package/dist/types/gen/chat/ChatApi.d.ts +12 -1
  12. package/dist/types/gen/models/index.d.ts +659 -11
  13. package/dist/types/gen/moderation/ModerationApi.d.ts +3 -1
  14. package/dist/types/index.d.ts +2 -0
  15. package/dist/types/messageComposer/attachmentManager.d.ts +2 -0
  16. package/dist/types/messageComposer/index.d.ts +1 -0
  17. package/dist/types/messageComposer/linkPreviewsManager.d.ts +1 -0
  18. package/dist/types/messageComposer/messageComposer.d.ts +33 -7
  19. package/dist/types/messageComposer/middleware/messageComposer/compositionValidation.d.ts +1 -2
  20. package/dist/types/messageComposer/middleware/messageComposer/index.d.ts +1 -0
  21. package/dist/types/messageComposer/middleware/messageComposer/scheduledMessage.d.ts +4 -0
  22. package/dist/types/messageComposer/middleware/textComposer/commandUtils.d.ts +1 -0
  23. package/dist/types/messageComposer/scheduledMessageComposition.d.ts +32 -0
  24. package/dist/types/messageMarks/MessageMarkManager.d.ts +44 -0
  25. package/dist/types/messageMarks/index.d.ts +1 -0
  26. package/dist/types/messageOperations/MessageOperations.d.ts +12 -1
  27. package/dist/types/messageOperations/index.d.ts +1 -0
  28. package/dist/types/messageOperations/reflectMessageMarkEvent.d.ts +9 -0
  29. package/dist/types/messageOperations/sendOrdering.d.ts +4 -3
  30. package/dist/types/messageOperations/types.d.ts +6 -2
  31. package/dist/types/notifications/types.d.ts +4 -0
  32. package/dist/types/offline-support/offline_support_api.d.ts +19 -1
  33. package/dist/types/offline-support/types.d.ts +19 -1
  34. package/dist/types/pagination/PaginatorView.d.ts +55 -0
  35. package/dist/types/pagination/index.d.ts +1 -0
  36. package/dist/types/pagination/paginators/BasePaginator.d.ts +49 -0
  37. package/dist/types/pagination/paginators/ChannelPaginator.d.ts +0 -9
  38. package/dist/types/pagination/paginators/MessageIntervalPaginator.d.ts +6 -0
  39. package/dist/types/pagination/paginators/MessageMarkPaginator.d.ts +61 -0
  40. package/dist/types/pagination/paginators/ScheduledMessagePaginator.d.ts +83 -0
  41. package/dist/types/pagination/paginators/index.d.ts +2 -0
  42. package/dist/types/scheduledMessages/ScheduledMessagePaginatorsManager.d.ts +47 -0
  43. package/dist/types/scheduledMessages/ScheduledMessageStatePolicy.d.ts +12 -0
  44. package/dist/types/scheduledMessages/ScheduledMessagesView.d.ts +38 -0
  45. package/dist/types/scheduledMessages/composition.d.ts +5 -0
  46. package/dist/types/scheduledMessages/constants.d.ts +56 -0
  47. package/dist/types/scheduledMessages/editResolvers.d.ts +4 -0
  48. package/dist/types/scheduledMessages/errors.d.ts +3 -0
  49. package/dist/types/scheduledMessages/eventHandlers.d.ts +8 -0
  50. package/dist/types/scheduledMessages/index.d.ts +7 -0
  51. package/dist/types/scheduledMessages/limits.d.ts +6 -0
  52. package/dist/types/scheduledMessages/types.d.ts +65 -0
  53. package/dist/types/thread.d.ts +12 -1
  54. package/dist/types/utils.d.ts +7 -0
  55. package/package.json +1 -1
  56. package/src/channel.ts +231 -7
  57. package/src/client.ts +46 -2
  58. package/src/configuration/keys.ts +2 -0
  59. package/src/configuration/shape.ts +15 -0
  60. package/src/configuration/types.ts +3 -1
  61. package/src/connection/ConnectionRecoveryManager.ts +7 -0
  62. package/src/errors.ts +11 -0
  63. package/src/gen/chat/ChatApi.ts +60 -3
  64. package/src/gen/models/index.ts +794 -23
  65. package/src/gen/moderation/ModerationApi.ts +24 -3
  66. package/src/index.ts +2 -0
  67. package/src/messageComposer/attachmentManager.ts +43 -24
  68. package/src/messageComposer/index.ts +1 -0
  69. package/src/messageComposer/messageComposer.ts +140 -32
  70. package/src/messageComposer/middleware/messageComposer/MessageComposerMiddlewareExecutor.ts +2 -0
  71. package/src/messageComposer/middleware/messageComposer/compositionValidation.ts +40 -47
  72. package/src/messageComposer/middleware/messageComposer/index.ts +1 -0
  73. package/src/messageComposer/middleware/messageComposer/scheduledMessage.ts +38 -0
  74. package/src/messageComposer/middleware/textComposer/commandUtils.ts +8 -0
  75. package/src/messageComposer/scheduledMessageComposition.ts +324 -0
  76. package/src/messageMarks/MessageMarkManager.ts +145 -0
  77. package/src/messageMarks/index.ts +1 -0
  78. package/src/messageOperations/MessageOperationStatePolicy.ts +7 -0
  79. package/src/messageOperations/MessageOperations.ts +154 -1
  80. package/src/messageOperations/index.ts +1 -0
  81. package/src/messageOperations/reflectMessageMarkEvent.ts +47 -0
  82. package/src/messageOperations/reflectReactionEvent.ts +3 -0
  83. package/src/messageOperations/sendOrdering.ts +11 -4
  84. package/src/messageOperations/types.ts +6 -2
  85. package/src/notifications/types.ts +4 -0
  86. package/src/offline-support/offline_support_api.ts +61 -1
  87. package/src/offline-support/queueableOperations.ts +6 -0
  88. package/src/offline-support/types.ts +28 -0
  89. package/src/pagination/PaginatorView.ts +103 -0
  90. package/src/pagination/index.ts +1 -0
  91. package/src/pagination/paginators/BasePaginator.ts +204 -29
  92. package/src/pagination/paginators/ChannelPaginator.ts +8 -28
  93. package/src/pagination/paginators/MessageIntervalPaginator.ts +14 -1
  94. package/src/pagination/paginators/MessageMarkPaginator.ts +222 -0
  95. package/src/pagination/paginators/ScheduledMessagePaginator.ts +352 -0
  96. package/src/pagination/paginators/index.ts +2 -0
  97. package/src/scheduledMessages/ScheduledMessagePaginatorsManager.ts +268 -0
  98. package/src/scheduledMessages/ScheduledMessageStatePolicy.ts +42 -0
  99. package/src/scheduledMessages/ScheduledMessagesView.ts +57 -0
  100. package/src/scheduledMessages/composition.ts +129 -0
  101. package/src/scheduledMessages/constants.ts +79 -0
  102. package/src/scheduledMessages/editResolvers.ts +51 -0
  103. package/src/scheduledMessages/errors.ts +45 -0
  104. package/src/scheduledMessages/eventHandlers.ts +58 -0
  105. package/src/scheduledMessages/index.ts +7 -0
  106. package/src/scheduledMessages/limits.ts +32 -0
  107. package/src/scheduledMessages/types.ts +124 -0
  108. package/src/thread.ts +41 -17
  109. package/src/utils.ts +18 -0
@@ -214,12 +214,16 @@ export interface AITextConfig {
214
214
  export interface AIVideoConfigRequest {
215
215
  async?: boolean;
216
216
  enabled?: boolean;
217
+ ocr_rules?: Array<OCRRule>;
218
+ ocr_severity_rules?: Array<BodyguardRule>;
217
219
  rules?: Array<AWSRekognitionRule>;
218
220
  }
219
221
  export interface AIVideoConfigResponse {
220
222
  enabled: boolean;
221
223
  rules: Array<AWSRekognitionRule>;
222
224
  async?: boolean;
225
+ ocr_rules?: Array<OCRRule>;
226
+ ocr_severity_rules?: Array<BodyguardRule>;
223
227
  }
224
228
  export interface APIError {
225
229
  /**
@@ -289,7 +293,7 @@ export interface ActionLogResponse {
289
293
  */
290
294
  reason: string;
291
295
  /**
292
- * Classification of who triggered the action (e.g. user, moderator, automod, api_integration)
296
+ * Classification of who triggered the action (e.g. user, moderator, automod, agent_reviewer, api_integration)
293
297
  */
294
298
  reporter_type: string;
295
299
  /**
@@ -306,9 +310,10 @@ export interface ActionLogResponse {
306
310
  user_id: string;
307
311
  ai_providers: Array<string>;
308
312
  /**
309
- * Additional metadata about the action
313
+ * Additional metadata about the action. An agent_recommendation log keeps the suggested action under recommended_action
310
314
  */
311
315
  custom: Record<string, any>;
316
+ agent_recommendation?: AgentRecommendationResponse;
312
317
  review_queue_item?: ReviewQueueItemResponse;
313
318
  /**
314
319
  * User response object
@@ -344,6 +349,44 @@ export interface AddUserGroupMembersResponse {
344
349
  duration: string;
345
350
  user_group?: UserGroupResponse;
346
351
  }
352
+ export interface AgentRecommendationPayload {
353
+ /**
354
+ * Why Nora suggests this action. Stored on the action log, cut to 500 bytes
355
+ */
356
+ reason: string;
357
+ /**
358
+ * Action Nora suggests for the item
359
+ */
360
+ recommended_action: 'keep' | 'flag' | 'mask' | 'mask_flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove' | 'review';
361
+ }
362
+ export interface AgentRecommendationResponse {
363
+ /**
364
+ * Why Nora suggested this action
365
+ */
366
+ reason: string;
367
+ /**
368
+ * Action Nora suggested for the item
369
+ */
370
+ recommended_action: 'keep' | 'flag' | 'mask' | 'mask_flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove' | 'review';
371
+ }
372
+ export interface AgentReviewSummaryResponse {
373
+ /**
374
+ * Verdict confidence from 0 to 1
375
+ */
376
+ confidence: number;
377
+ /**
378
+ * pending, processing, done, failed, or skipped
379
+ */
380
+ status: string;
381
+ /**
382
+ * Whether the flag matches the content. Set once the review is done
383
+ */
384
+ flag_assessment?: string;
385
+ /**
386
+ * The action Nora recommends. Set once the review is done
387
+ */
388
+ recommended_action?: string;
389
+ }
347
390
  export interface AppChannelCountParameters {
348
391
  threshold?: number;
349
392
  time_window?: string;
@@ -562,6 +605,21 @@ export interface Attachment {
562
605
  actions?: Array<Action>;
563
606
  fields?: Array<Field>;
564
607
  giphy?: Images;
608
+ voice_transcript?: AttachmentTranscriptResponse;
609
+ }
610
+ export interface AttachmentTranscriptResponse {
611
+ /**
612
+ * Why the recording could not be transcribed: unsupported_format, too_large, blocked_url, fetch_failed or invalid_response
613
+ */
614
+ error?: string;
615
+ /**
616
+ * Transcribed text of the recording
617
+ */
618
+ text?: string;
619
+ /**
620
+ * Languages detected in the recording
621
+ */
622
+ languages?: Array<TranscriptLanguageResponse>;
565
623
  }
566
624
  export interface AutomodDetailsResponse {
567
625
  action?: string;
@@ -941,6 +999,7 @@ export interface CallActionOptions {
941
999
  warning_text?: string;
942
1000
  }
943
1001
  export interface CallCustomPropertyParameters {
1002
+ expected_value?: any;
944
1003
  operator?: string;
945
1004
  property_key?: string;
946
1005
  }
@@ -1033,6 +1092,10 @@ export interface ChannelConfigOverrides {
1033
1092
  * Enable/disable user message reminders
1034
1093
  */
1035
1094
  user_message_reminders?: boolean;
1095
+ /**
1096
+ * Enables or disables transcription of voice recordings
1097
+ */
1098
+ voice_transcription?: boolean;
1036
1099
  /**
1037
1100
  * List of commands that channel supports
1038
1101
  */
@@ -1074,6 +1137,7 @@ export interface ChannelConfigWithInfo {
1074
1137
  uploads: boolean;
1075
1138
  url_enrichment: boolean;
1076
1139
  user_message_reminders: boolean;
1140
+ voice_transcription: boolean;
1077
1141
  commands: Array<Command>;
1078
1142
  blocklist?: string;
1079
1143
  /**
@@ -1104,6 +1168,7 @@ export interface ChannelConfigWithInfo {
1104
1168
  scheduled_messages_min_lead_time_seconds?: number;
1105
1169
  allowed_flag_reasons?: Array<string>;
1106
1170
  blocklists?: Array<BlockListOptions>;
1171
+ mark_types?: Array<string>;
1107
1172
  /**
1108
1173
  * Sets thresholds for AI moderation
1109
1174
  */
@@ -1679,6 +1744,7 @@ export declare const ChannelOwnCapability: {
1679
1744
  readonly SEND_CUSTOM_EVENTS: "send-custom-events";
1680
1745
  readonly SEND_LINKS: "send-links";
1681
1746
  readonly SEND_MESSAGE: "send-message";
1747
+ readonly SEND_MESSAGE_MARK: "send-message-mark";
1682
1748
  readonly SEND_POLL: "send-poll";
1683
1749
  readonly SEND_REACTION: "send-reaction";
1684
1750
  readonly SEND_REPLY: "send-reply";
@@ -2230,6 +2296,14 @@ export interface ChatDraftResponse {
2230
2296
  parent_message?: ChatMessageResponse;
2231
2297
  quoted_message?: ChatMessageResponse;
2232
2298
  }
2299
+ export interface ChatMarkGroupResponse {
2300
+ count: number;
2301
+ latest_by: Array<ChatMessageMarkerResponse>;
2302
+ }
2303
+ export interface ChatMessageMarkerResponse {
2304
+ created_at: TimestampNS;
2305
+ user_id: string;
2306
+ }
2233
2307
  export interface ChatMessageResponse {
2234
2308
  cid: string;
2235
2309
  created_at: TimestampNS;
@@ -2271,10 +2345,12 @@ export interface ChatMessageResponse {
2271
2345
  mentioned_group_ids?: Array<string>;
2272
2346
  mentioned_groups?: Array<UserGroupResponse>;
2273
2347
  mentioned_roles?: Array<string>;
2348
+ own_marks?: Array<ChatOwnMarkResponse>;
2274
2349
  thread_participants?: Array<UserResponse>;
2275
2350
  draft?: ChatDraftResponse;
2276
2351
  i18n?: Record<string, string>;
2277
2352
  image_labels?: Record<string, Array<string>>;
2353
+ mark_groups?: Record<string, ChatMarkGroupResponse>;
2278
2354
  member?: ChannelMemberPartialResponse;
2279
2355
  moderation?: ChatModerationV2Response;
2280
2356
  /**
@@ -2297,6 +2373,10 @@ export interface ChatModerationV2Response {
2297
2373
  image_harms?: Array<string>;
2298
2374
  text_harms?: Array<string>;
2299
2375
  }
2376
+ export interface ChatOwnMarkResponse {
2377
+ created_at: TimestampNS;
2378
+ type: string;
2379
+ }
2300
2380
  export interface ChatPreferences {
2301
2381
  channel_mentions?: string;
2302
2382
  default_preference?: string;
@@ -2383,6 +2463,7 @@ export interface ClosedCaptionRuleParameters {
2383
2463
  threshold?: number;
2384
2464
  time_window?: string;
2385
2465
  harm_labels?: Array<string>;
2466
+ severities?: Array<string>;
2386
2467
  llm_harm_labels?: Record<string, string>;
2387
2468
  }
2388
2469
  export type CollectionStatus = 'ok' | 'notfound';
@@ -2466,6 +2547,10 @@ export interface ConfigOverridesRequest {
2466
2547
  * Enable/disable user message reminders
2467
2548
  */
2468
2549
  user_message_reminders?: boolean;
2550
+ /**
2551
+ * Enable/disable transcription of voice recordings in this channel
2552
+ */
2553
+ voice_transcription?: boolean;
2469
2554
  /**
2470
2555
  * List of available commands
2471
2556
  */
@@ -2518,8 +2603,17 @@ export interface ConfigResponse {
2518
2603
  ai_image_subclassifications?: Record<string, Array<string>>;
2519
2604
  ai_text_config?: AITextConfig;
2520
2605
  ai_video_config?: AIVideoConfigResponse;
2606
+ /**
2607
+ * @deprecated
2608
+ */
2521
2609
  automod_platform_circumvention_config?: AutomodPlatformCircumventionConfig;
2610
+ /**
2611
+ * @deprecated
2612
+ */
2522
2613
  automod_semantic_filters_config?: AutomodSemanticFiltersConfig;
2614
+ /**
2615
+ * @deprecated
2616
+ */
2523
2617
  automod_toxicity_config?: AutomodToxicityConfig;
2524
2618
  block_list_config?: BlockListConfig;
2525
2619
  engine?: ModerationEngineConfigResponse;
@@ -2589,15 +2683,247 @@ export interface ContentCountryCodeParameters {
2589
2683
  country_codes?: Array<string>;
2590
2684
  }
2591
2685
  export interface ContentCustomPropertyCountParameters {
2686
+ expected_value?: any;
2592
2687
  operator?: string;
2593
2688
  property_key?: string;
2594
2689
  threshold?: number;
2595
2690
  time_window?: string;
2596
2691
  }
2597
2692
  export interface ContentCustomPropertyParameters {
2693
+ expected_value?: any;
2598
2694
  operator?: string;
2599
2695
  property_key?: string;
2600
2696
  }
2697
+ export interface CountReviewQueueRequest {
2698
+ /**
2699
+ * Filter conditions for review queue items, the same filter Query Review Queue takes. The count covers exactly the items that query lists for this filter, ignoring sort, paging and item locks.
2700
+ */
2701
+ filter?: Filters<{
2702
+ agent_review_action: {
2703
+ type: string;
2704
+ operators: '$eq';
2705
+ };
2706
+ agent_reviewed: {
2707
+ type: boolean;
2708
+ operators: '$eq';
2709
+ };
2710
+ ai_text_severity: {
2711
+ type: string;
2712
+ operators: '$eq';
2713
+ };
2714
+ appeal: {
2715
+ type: boolean;
2716
+ operators: '$eq';
2717
+ };
2718
+ appeal_id: {
2719
+ type: string;
2720
+ operators: '$eq';
2721
+ };
2722
+ appeal_status: {
2723
+ type: string;
2724
+ operators: '$eq';
2725
+ };
2726
+ archived_at: {
2727
+ type: Date | string;
2728
+ operators: '$eq' | '$exists' | '$gt' | '$gte' | '$in' | '$lt' | '$lte';
2729
+ };
2730
+ bounce_count: {
2731
+ type: number;
2732
+ operators: '$eq' | '$exists' | '$gt' | '$gte' | '$in' | '$lt' | '$lte';
2733
+ };
2734
+ category: {
2735
+ type: string;
2736
+ operators: '$eq' | '$in';
2737
+ };
2738
+ channel_cid: {
2739
+ type: string;
2740
+ operators: '$eq';
2741
+ };
2742
+ channel_id: {
2743
+ type: string;
2744
+ operators: '$eq';
2745
+ };
2746
+ completed_at: {
2747
+ type: Date | string;
2748
+ operators: '$eq' | '$exists' | '$gt' | '$gte' | '$in' | '$lt' | '$lte';
2749
+ };
2750
+ confidence_score: {
2751
+ type: number;
2752
+ operators: '$eq' | '$exists' | '$gt' | '$gte' | '$in' | '$lt' | '$lte';
2753
+ };
2754
+ config_key: {
2755
+ type: string;
2756
+ operators: '$eq' | '$exists' | '$gt' | '$gte' | '$in' | '$lt' | '$lte';
2757
+ };
2758
+ content_text: {
2759
+ type: string;
2760
+ operators: '$eq' | '$in' | '$q';
2761
+ };
2762
+ country_code: {
2763
+ type: string;
2764
+ operators: '$eq' | '$exists' | '$gt' | '$gte' | '$in' | '$lt' | '$lte';
2765
+ };
2766
+ created_at: {
2767
+ type: Date | string;
2768
+ operators: '$eq' | '$exists' | '$gt' | '$gte' | '$in' | '$lt' | '$lte';
2769
+ };
2770
+ custom: {
2771
+ type: Record<string, any>;
2772
+ operators: '$autocomplete' | '$contains' | '$eq' | '$exists' | '$gt' | '$gte' | '$in' | '$lt' | '$lte' | '$q';
2773
+ };
2774
+ date_range: {
2775
+ type: string;
2776
+ operators: '$eq';
2777
+ };
2778
+ entity_creator_id: {
2779
+ type: string;
2780
+ operators: '$eq' | '$exists' | '$gt' | '$gte' | '$in' | '$lt' | '$lte';
2781
+ };
2782
+ entity_creator_name: {
2783
+ type: string;
2784
+ operators: '$contains' | '$eq' | '$exists' | '$gt' | '$gte' | '$in' | '$lt' | '$lte';
2785
+ };
2786
+ entity_id: {
2787
+ type: string;
2788
+ operators: '$eq' | '$exists' | '$gt' | '$gte' | '$in' | '$lt' | '$lte';
2789
+ };
2790
+ entity_type: {
2791
+ type: string;
2792
+ operators: '$eq' | '$exists' | '$gt' | '$gte' | '$in' | '$lt' | '$lte';
2793
+ };
2794
+ escalated: {
2795
+ type: boolean;
2796
+ operators: '$eq';
2797
+ };
2798
+ escalated_at: {
2799
+ type: Date | string;
2800
+ operators: '$eq' | '$exists' | '$gt' | '$gte' | '$in' | '$lt' | '$lte';
2801
+ };
2802
+ escalated_by: {
2803
+ type: string;
2804
+ operators: '$eq' | '$exists' | '$gt' | '$gte' | '$in' | '$lt' | '$lte';
2805
+ };
2806
+ escalation_priority: {
2807
+ type: string;
2808
+ operators: '$eq';
2809
+ };
2810
+ escalation_reason: {
2811
+ type: string;
2812
+ operators: '$eq';
2813
+ };
2814
+ flagged_user_id: {
2815
+ type: string;
2816
+ operators: '$eq';
2817
+ };
2818
+ flags_count: {
2819
+ type: number;
2820
+ operators: '$eq';
2821
+ };
2822
+ has_audio: {
2823
+ type: boolean;
2824
+ operators: '$eq';
2825
+ };
2826
+ has_false_positive: {
2827
+ type: boolean;
2828
+ operators: '$eq';
2829
+ };
2830
+ has_image: {
2831
+ type: boolean;
2832
+ operators: '$eq';
2833
+ };
2834
+ has_text: {
2835
+ type: boolean;
2836
+ operators: '$eq';
2837
+ };
2838
+ has_video: {
2839
+ type: boolean;
2840
+ operators: '$eq';
2841
+ };
2842
+ id: {
2843
+ type: string;
2844
+ operators: '$eq' | '$exists' | '$gt' | '$gte' | '$in' | '$lt' | '$lte';
2845
+ };
2846
+ label: {
2847
+ type: string;
2848
+ operators: '$eq' | '$in';
2849
+ };
2850
+ language: {
2851
+ type: string;
2852
+ operators: '$contains' | '$eq' | '$in';
2853
+ };
2854
+ latest_moderator_action: {
2855
+ type: string;
2856
+ operators: '$eq' | '$exists' | '$gt' | '$gte' | '$in' | '$lt' | '$lte';
2857
+ };
2858
+ queue_type: {
2859
+ type: string;
2860
+ operators: '$eq' | '$in';
2861
+ };
2862
+ recommended_action: {
2863
+ type: string;
2864
+ operators: '$eq' | '$in';
2865
+ };
2866
+ reporter_id: {
2867
+ type: string;
2868
+ operators: '$eq' | '$in';
2869
+ };
2870
+ reporter_type: {
2871
+ type: string;
2872
+ operators: '$eq' | '$in';
2873
+ };
2874
+ reviewed: {
2875
+ type: boolean;
2876
+ operators: '$eq';
2877
+ };
2878
+ reviewed_at: {
2879
+ type: Date | string;
2880
+ operators: '$eq' | '$exists' | '$gt' | '$gte' | '$in' | '$lt' | '$lte';
2881
+ };
2882
+ severity: {
2883
+ type: number;
2884
+ operators: '$eq' | '$exists' | '$gt' | '$gte' | '$in' | '$lt' | '$lte';
2885
+ };
2886
+ status: {
2887
+ type: string;
2888
+ operators: '$eq' | '$exists' | '$gt' | '$gte' | '$in' | '$lt' | '$lte';
2889
+ };
2890
+ teams: {
2891
+ type: string;
2892
+ operators: '$contains' | '$eq' | '$in';
2893
+ };
2894
+ type: {
2895
+ type: string;
2896
+ operators: '$eq' | '$exists' | '$gt' | '$gte' | '$in' | '$lt' | '$lte';
2897
+ };
2898
+ updated_at: {
2899
+ type: Date | string;
2900
+ operators: '$eq' | '$exists' | '$gt' | '$gte' | '$in' | '$lt' | '$lte';
2901
+ };
2902
+ user_report_reason: {
2903
+ type: string;
2904
+ operators: '$eq' | '$in';
2905
+ };
2906
+ }>;
2907
+ }
2908
+ export interface CountReviewQueueResponse {
2909
+ /**
2910
+ * Whether more items match than are counted exactly (50,000), so total is a lower bound
2911
+ */
2912
+ capped: boolean;
2913
+ duration: string;
2914
+ /**
2915
+ * Whether the count is missing or out of date because the queue changed since it was computed. A later request may return a fresher count.
2916
+ */
2917
+ pending: boolean;
2918
+ /**
2919
+ * Number of review queue items matching the filter. When capped is true, at least this many items match.
2920
+ */
2921
+ total: number;
2922
+ /**
2923
+ * When the count was computed. Counts are refreshed in the background as the review queue changes.
2924
+ */
2925
+ computed_at?: TimestampNS;
2926
+ }
2601
2927
  export interface CreateBlockListRequest {
2602
2928
  /**
2603
2929
  * Block list name
@@ -2682,6 +3008,23 @@ export interface CreateGuestResponse {
2682
3008
  */
2683
3009
  user: UserResponse;
2684
3010
  }
3011
+ export interface CreateMessageMarkRequest {
3012
+ /**
3013
+ * The mark type: a built-in type such as played (the acting user played the message's audio, voiceRecording or video attachment) or a type the app defines in its message_marks settings
3014
+ */
3015
+ type: string;
3016
+ }
3017
+ export interface CreateMessageMarkResponse {
3018
+ /**
3019
+ * Whether this request wrote the mark. False on a repeat and on the author's own mark
3020
+ */
3021
+ created: boolean;
3022
+ duration: string;
3023
+ /**
3024
+ * A mark one user put on one message, for example played on a voice note. A mark is written once and never removed by users.
3025
+ */
3026
+ mark: MessageMarkResponse;
3027
+ }
2685
3028
  export interface CreatePollOptionRequest {
2686
3029
  /**
2687
3030
  * Option text
@@ -3935,6 +4278,7 @@ export interface GetOGResponse {
3935
4278
  actions?: Array<Action>;
3936
4279
  fields?: Array<Field>;
3937
4280
  giphy?: Images;
4281
+ voice_transcript?: AttachmentTranscriptResponse;
3938
4282
  }
3939
4283
  export interface GetOrCreateChannelDefaults {
3940
4284
  /**
@@ -4095,6 +4439,7 @@ export interface IPFlagCountRuleParameters {
4095
4439
  threshold?: number;
4096
4440
  time_window?: string;
4097
4441
  harm_labels?: Array<string>;
4442
+ severities?: Array<string>;
4098
4443
  }
4099
4444
  export interface ImageContentParameters {
4100
4445
  label_operator?: string;
@@ -4293,6 +4638,16 @@ export interface MarkDeliveredResponse {
4293
4638
  */
4294
4639
  duration: string;
4295
4640
  }
4641
+ export interface MarkGroupResponse {
4642
+ /**
4643
+ * Number of users who marked the message with this type
4644
+ */
4645
+ count: number;
4646
+ /**
4647
+ * The users who marked the message with this type, newest first, at most 100
4648
+ */
4649
+ latest_by: Array<MessageMarkerResponse>;
4650
+ }
4296
4651
  export interface MarkReadRequest {
4297
4652
  /**
4298
4653
  * ID of the message that is considered last read by client
@@ -4685,6 +5040,93 @@ export interface MessageFlagResponse {
4685
5040
  */
4686
5041
  user?: UserResponse;
4687
5042
  }
5043
+ export interface MessageMarkAddedEvent {
5044
+ /**
5045
+ * Date/time of creation
5046
+ */
5047
+ created_at: TimestampNS;
5048
+ /**
5049
+ * The marked message
5050
+ */
5051
+ message_id: string;
5052
+ custom: Record<string, any>;
5053
+ /**
5054
+ * A mark one user put on one message, for example played on a voice note. A mark is written once and never removed by users.
5055
+ */
5056
+ mark: MessageMarkResponse;
5057
+ /**
5058
+ * The type of event: "message.mark_added" in this case
5059
+ */
5060
+ type: string;
5061
+ /**
5062
+ * The ID of the channel holding the marked message
5063
+ */
5064
+ channel_id?: string;
5065
+ /**
5066
+ * The type of the channel holding the marked message
5067
+ */
5068
+ channel_type?: string;
5069
+ /**
5070
+ * The CID of the channel holding the marked message
5071
+ */
5072
+ cid?: string;
5073
+ /**
5074
+ * The ID of the parent message, when the marked message is a thread reply
5075
+ */
5076
+ parent_id?: string;
5077
+ received_at?: TimestampNS;
5078
+ user?: UserResponseCommonFields;
5079
+ }
5080
+ export interface MessageMarkResponse {
5081
+ /**
5082
+ * When the mark was written
5083
+ */
5084
+ created_at: TimestampNS;
5085
+ /**
5086
+ * The marked message
5087
+ */
5088
+ message_id: string;
5089
+ /**
5090
+ * The mark type, for example played
5091
+ */
5092
+ type: string;
5093
+ /**
5094
+ * The user who marked the message
5095
+ */
5096
+ user_id: string;
5097
+ }
5098
+ export interface MessageMarkWithUserResponse {
5099
+ /**
5100
+ * When the mark was written
5101
+ */
5102
+ created_at: TimestampNS;
5103
+ /**
5104
+ * The marked message
5105
+ */
5106
+ message_id: string;
5107
+ /**
5108
+ * The mark type, for example played
5109
+ */
5110
+ type: string;
5111
+ /**
5112
+ * The user who marked the message
5113
+ */
5114
+ user_id: string;
5115
+ /**
5116
+ * User response object
5117
+ */
5118
+ user: UserResponse;
5119
+ }
5120
+ export interface MessageMarkerResponse {
5121
+ /**
5122
+ * When the mark was written
5123
+ */
5124
+ created_at: TimestampNS;
5125
+ /**
5126
+ * The user who marked the message
5127
+ */
5128
+ user_id: string;
5129
+ }
4688
5130
  export interface MessageModerationResult {
4689
5131
  /**
4690
5132
  * Action taken by automod
@@ -5096,6 +5538,10 @@ export interface MessageResponse {
5096
5538
  * 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
5097
5539
  */
5098
5540
  mentioned_roles?: Array<string>;
5541
+ /**
5542
+ * The viewer's own marks on this message, for example played. Omitted when marks are off for the channel type
5543
+ */
5544
+ own_marks?: Array<OwnMarkResponse>;
5099
5545
  /**
5100
5546
  * List of users who participate in thread
5101
5547
  */
@@ -5109,6 +5555,10 @@ export interface MessageResponse {
5109
5555
  * Contains image moderation information
5110
5556
  */
5111
5557
  image_labels?: Record<string, Array<string>>;
5558
+ /**
5559
+ * On the viewer's own messages: who marked them, per mark type (for example played). Omitted when marks are off for the channel type
5560
+ */
5561
+ mark_groups?: Record<string, MarkGroupResponse>;
5112
5562
  member?: ChannelMemberPartialResponse;
5113
5563
  /**
5114
5564
  * Channel member data for the users mentioned in the message, keyed by user id. Only present when the app has member custom on mentioned users enabled, and only for the first two mentioned users of each message
@@ -5356,6 +5806,10 @@ export interface MessageWithChannelResponse {
5356
5806
  * 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
5357
5807
  */
5358
5808
  mentioned_roles?: Array<string>;
5809
+ /**
5810
+ * The viewer's own marks on this message, for example played. Omitted when marks are off for the channel type
5811
+ */
5812
+ own_marks?: Array<OwnMarkResponse>;
5359
5813
  /**
5360
5814
  * List of users who participate in thread
5361
5815
  */
@@ -5369,6 +5823,10 @@ export interface MessageWithChannelResponse {
5369
5823
  * Contains image moderation information
5370
5824
  */
5371
5825
  image_labels?: Record<string, Array<string>>;
5826
+ /**
5827
+ * On the viewer's own messages: who marked them, per mark type (for example played). Omitted when marks are off for the channel type
5828
+ */
5829
+ mark_groups?: Record<string, MarkGroupResponse>;
5372
5830
  member?: ChannelMemberPartialResponse;
5373
5831
  /**
5374
5832
  * Channel member data for the users mentioned in the message, keyed by user id. Only present when the app has member custom on mentioned users enabled, and only for the first two mentioned users of each message
@@ -5469,23 +5927,39 @@ export interface ModerationCustomActionEvent {
5469
5927
  }
5470
5928
  export interface ModerationEngineConfigRequest {
5471
5929
  /**
5472
- * LLM model used when the provider resolves to llm. Not allowed with provider nlp. Empty uses the app's moderation settings
5930
+ * LLM model used when the provider resolves to llm, or a Stream model with provider stream (an alias, or a pinned version the server accepts). Not allowed with provider nlp. Empty uses the app's moderation settings, or the latest Stream model
5931
+ */
5932
+ model?: 'gpt-4o-mini' | 'gpt-4o' | 'gpt-6-luna' | 'stream-mammoth-1' | 'stream-elephant-1' | 'stream-whale-1';
5933
+ /**
5934
+ * llm, nlp or stream. Empty follows the app's LLM moderation setting
5473
5935
  */
5474
- model?: 'gpt-4o-mini' | 'gpt-4o';
5936
+ provider?: 'llm' | 'nlp' | 'stream';
5475
5937
  /**
5476
- * llm or nlp. Empty follows the app's LLM moderation setting
5938
+ * OpenAI reasoning effort for model. Requires model, and must be one the model accepts. Empty uses the model's default
5477
5939
  */
5478
- provider?: 'llm' | 'nlp';
5940
+ reasoning_effort?: string;
5941
+ /**
5942
+ * How sure a Stream model must be before it flags: relaxed, balanced or strict. Only with provider stream. Empty is balanced
5943
+ */
5944
+ strictness?: 'relaxed' | 'balanced' | 'strict';
5479
5945
  }
5480
5946
  export interface ModerationEngineConfigResponse {
5481
5947
  /**
5482
- * LLM model used when the provider resolves to llm. Not allowed with provider nlp. Empty uses the app's moderation settings
5948
+ * LLM model used when the provider resolves to llm, or a Stream model with provider stream (an alias, or a pinned version the server accepts). Not allowed with provider nlp. Empty uses the app's moderation settings, or the latest Stream model
5483
5949
  */
5484
5950
  model?: string;
5485
5951
  /**
5486
- * llm or nlp. Empty follows the app's LLM moderation setting
5952
+ * llm, nlp or stream. Empty follows the app's LLM moderation setting
5953
+ */
5954
+ provider?: 'llm' | 'nlp' | 'stream';
5955
+ /**
5956
+ * OpenAI reasoning effort for model. Requires model, and must be one the model accepts. Empty uses the model's default
5487
5957
  */
5488
- provider?: 'llm' | 'nlp';
5958
+ reasoning_effort?: string;
5959
+ /**
5960
+ * How sure a Stream model must be before it flags: relaxed, balanced or strict. Only with provider stream. Empty is balanced
5961
+ */
5962
+ strictness?: 'relaxed' | 'balanced' | 'strict';
5489
5963
  }
5490
5964
  export interface ModerationFlagResponse {
5491
5965
  created_at: TimestampNS;
@@ -5602,6 +6076,8 @@ export interface ModerationQueueResponse {
5602
6076
  description: string;
5603
6077
  id: string;
5604
6078
  item_count: number;
6079
+ item_count_capped: boolean;
6080
+ item_count_pending: boolean;
5605
6081
  name: string;
5606
6082
  type: string;
5607
6083
  updated_at: TimestampNS;
@@ -6382,6 +6858,7 @@ export interface OCRContentParameters {
6382
6858
  label_operator?: string;
6383
6859
  severity?: string;
6384
6860
  harm_labels?: Array<string>;
6861
+ severities?: Array<string>;
6385
6862
  }
6386
6863
  export interface OCRRule {
6387
6864
  /**
@@ -6393,6 +6870,16 @@ export interface OCRRule {
6393
6870
  export interface OnlyUserID {
6394
6871
  id: string;
6395
6872
  }
6873
+ export interface OwnMarkResponse {
6874
+ /**
6875
+ * When the mark was written
6876
+ */
6877
+ created_at: TimestampNS;
6878
+ /**
6879
+ * The mark type, for example played
6880
+ */
6881
+ type: string;
6882
+ }
6396
6883
  export interface OwnUserResponse {
6397
6884
  banned: boolean;
6398
6885
  created_at: TimestampNS;
@@ -7455,6 +7942,40 @@ export interface QueryMessageFlagsResponse {
7455
7942
  */
7456
7943
  flags: Array<MessageFlagResponse>;
7457
7944
  }
7945
+ export interface QueryMessageMarksFilter {
7946
+ /**
7947
+ * Only marks of this type, for example played
7948
+ */
7949
+ type?: string;
7950
+ }
7951
+ export interface QueryMessageMarksRequest {
7952
+ /**
7953
+ * Page size, 1 to 100. Defaults to 25
7954
+ */
7955
+ limit?: number;
7956
+ /**
7957
+ * Cursor from the previous page's next field. The order is fixed: newest first
7958
+ */
7959
+ next?: string;
7960
+ /**
7961
+ * Filter for listing the marks on a message
7962
+ */
7963
+ filter?: QueryMessageMarksFilter;
7964
+ }
7965
+ export interface QueryMessageMarksResponse {
7966
+ /**
7967
+ * Duration of the request in milliseconds
7968
+ */
7969
+ duration: string;
7970
+ /**
7971
+ * The marks of this page, newest first
7972
+ */
7973
+ marks: Array<MessageMarkWithUserResponse>;
7974
+ /**
7975
+ * Cursor for the next page; absent on the last page
7976
+ */
7977
+ next?: string;
7978
+ }
7458
7979
  export interface QueryModerationConfigsRequest {
7459
7980
  limit?: number;
7460
7981
  next?: string;
@@ -7716,6 +8237,14 @@ export interface QueryReviewQueueRequest {
7716
8237
  * 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. content_text searches the moderated text: "$q" is a keyword search (terms ANDed, no adjacency) over the indexed tsvector, while "$eq" (or "$in" for several wordings) matches the text exactly. The exact form is unindexed, so scope it with date_range rather than running it across the whole queue.
7717
8238
  */
7718
8239
  filter?: Filters<{
8240
+ agent_review_action: {
8241
+ type: string;
8242
+ operators: '$eq';
8243
+ };
8244
+ agent_reviewed: {
8245
+ type: boolean;
8246
+ operators: '$eq';
8247
+ };
7719
8248
  ai_text_severity: {
7720
8249
  type: string;
7721
8250
  operators: '$eq';
@@ -8734,6 +9263,7 @@ export interface ReviewQueueItemResponse {
8734
9263
  */
8735
9264
  teams?: Array<string>;
8736
9265
  activity?: EnrichedActivity;
9266
+ agent_review?: AgentReviewSummaryResponse;
8737
9267
  appeal?: AppealItemResponse;
8738
9268
  /**
8739
9269
  * User response object
@@ -8900,8 +9430,17 @@ export interface SaveConfigVersionRequest {
8900
9430
  ai_image_config?: AIImageConfig;
8901
9431
  ai_text_config?: AITextConfig;
8902
9432
  ai_video_config?: AIVideoConfigRequest;
9433
+ /**
9434
+ * @deprecated
9435
+ */
8903
9436
  automod_platform_circumvention_config?: AutomodPlatformCircumventionConfig;
9437
+ /**
9438
+ * @deprecated
9439
+ */
8904
9440
  automod_semantic_filters_config?: AutomodSemanticFiltersConfig;
9441
+ /**
9442
+ * @deprecated
9443
+ */
8905
9444
  automod_toxicity_config?: AutomodToxicityConfig;
8906
9445
  aws_rekognition_config?: AIImageConfig;
8907
9446
  block_list_config?: BlockListConfig;
@@ -9016,6 +9555,10 @@ export interface ScheduledMessageContentResponse {
9016
9555
  * IDs of the users the message will be visible to
9017
9556
  */
9018
9557
  restricted_visibility?: Array<string>;
9558
+ /**
9559
+ * Represents any chat message
9560
+ */
9561
+ quoted_message?: MessageResponse;
9019
9562
  /**
9020
9563
  * The location a scheduled message will share
9021
9564
  */
@@ -9204,6 +9747,86 @@ export interface ScheduledMessagesFilter {
9204
9747
  */
9205
9748
  status?: Array<ScheduledMessageQueryStatus>;
9206
9749
  }
9750
+ export interface SearchAllChannelsSection {
9751
+ /**
9752
+ * Opaque cursor for the next page of this section, present only when more results exist. Pass it back under next.channels with the same query
9753
+ */
9754
+ next?: string;
9755
+ /**
9756
+ * Channels the caller is a member of whose name starts with the query, in the same shape as the query channels endpoint's results but without messages or members
9757
+ */
9758
+ channels?: Array<ChannelStateResponseFields>;
9759
+ error?: SearchAllSectionError;
9760
+ warning?: SearchAllWarning;
9761
+ }
9762
+ export interface SearchAllMessagesSection {
9763
+ /**
9764
+ * Opaque cursor for the next page of this section, present only when more results exist. Pass it back under next.messages with the same query
9765
+ */
9766
+ next?: string;
9767
+ /**
9768
+ * Matching messages, newest first, in the same shape as the search endpoint's results
9769
+ */
9770
+ results?: Array<SearchResult>;
9771
+ error?: SearchAllSectionError;
9772
+ results_warning?: SearchWarning;
9773
+ warning?: SearchAllWarning;
9774
+ }
9775
+ export interface SearchAllRequest {
9776
+ /**
9777
+ * Number of results per section, 1-30. Defaults to 10. Applies to every requested section; there is no per-section limit
9778
+ */
9779
+ limit?: number;
9780
+ /**
9781
+ * Free-text search phrase, 1-80 characters after trimming whitespace. Required. Matched as a prefix of a user's name or username and of a channel's name, and as full-text against message text
9782
+ */
9783
+ query?: string;
9784
+ /**
9785
+ * Which sections to search: any subset of messages, users and channels. Defaults to all three when omitted; must not be empty when provided. Response sections always appear in the order messages, users, channels
9786
+ */
9787
+ entities?: Array<string>;
9788
+ /**
9789
+ * Opaque pagination cursors from a previous response, keyed by entity. A cursor that fails to decode restarts that section from page 1 with a cursor_rejected warning; the request fails with 400 only when every cursor supplied for a requested entity is invalid. Cursors for entities not in entities are ignored
9790
+ */
9791
+ next?: Record<string, string>;
9792
+ }
9793
+ export interface SearchAllResponse {
9794
+ /**
9795
+ * Duration of the request in milliseconds
9796
+ */
9797
+ duration: string;
9798
+ channels?: SearchAllChannelsSection;
9799
+ messages?: SearchAllMessagesSection;
9800
+ users?: SearchAllUsersSection;
9801
+ }
9802
+ export interface SearchAllSectionError {
9803
+ /**
9804
+ * Error code. backend_timeout and backend_unavailable are retryable; unsupported (the app's configuration cannot serve this section) and internal_error are not
9805
+ */
9806
+ code: 'backend_unavailable' | 'backend_timeout' | 'unsupported' | 'internal_error';
9807
+ /**
9808
+ * Human-readable description of the failure
9809
+ */
9810
+ message: string;
9811
+ }
9812
+ export interface SearchAllUsersSection {
9813
+ /**
9814
+ * Opaque cursor for the next page of this section, present only when more results exist. Pass it back under next.users with the same query
9815
+ */
9816
+ next?: string;
9817
+ /**
9818
+ * Users whose name or username starts with the query, in the same shape as the query users endpoint's results
9819
+ */
9820
+ users?: Array<FullUserResponse>;
9821
+ error?: SearchAllSectionError;
9822
+ warning?: SearchAllWarning;
9823
+ }
9824
+ export interface SearchAllWarning {
9825
+ /**
9826
+ * Warning code. cursor_rejected: the cursor supplied for this section failed to decode, so the section restarted from page 1
9827
+ */
9828
+ code: 'cursor_rejected';
9829
+ }
9207
9830
  export interface SearchPayload {
9208
9831
  /**
9209
9832
  * Channel filter conditions
@@ -9486,6 +10109,7 @@ export interface SearchResultMessage {
9486
10109
  mentioned_group_ids?: Array<string>;
9487
10110
  mentioned_groups?: Array<UserGroupResponse>;
9488
10111
  mentioned_roles?: Array<string>;
10112
+ own_marks?: Array<OwnMarkResponse>;
9489
10113
  thread_participants?: Array<UserResponse>;
9490
10114
  /**
9491
10115
  * Represents channel in chat
@@ -9494,6 +10118,7 @@ export interface SearchResultMessage {
9494
10118
  draft?: DraftResponse;
9495
10119
  i18n?: Record<string, string>;
9496
10120
  image_labels?: Record<string, Array<string>>;
10121
+ mark_groups?: Record<string, MarkGroupResponse>;
9497
10122
  member?: ChannelMemberPartialResponse;
9498
10123
  mentioned_channel_members?: Record<string, ChannelMemberPartialResponse>;
9499
10124
  moderation?: ModerationV2Response;
@@ -9758,9 +10383,9 @@ export interface SortParamRequest {
9758
10383
  export type SortParamType = '' | 'number' | 'boolean';
9759
10384
  export interface SubmitActionRequest {
9760
10385
  /**
9761
- * Type of moderation action to perform. One of: mark_reviewed, delete_message, delete_activity, delete_comment, delete_reaction, delete_poll, delete_poll_option, delete_poll_answer, ban, custom, unban, restore, delete_user, delete_user_messages, unblock, block, shadow_block, unmask, kick_user, end_call, escalate, de_escalate
10386
+ * Type of moderation action to perform. One of: mark_reviewed, delete_message, delete_activity, delete_comment, delete_reaction, delete_poll, delete_poll_option, delete_poll_answer, ban, custom, unban, restore, delete_user, delete_user_messages, unblock, block, shadow_block, unmask, kick_user, end_call, escalate, de_escalate, agent_recommendation
9762
10387
  */
9763
- action_type: 'flag' | 'mark_reviewed' | 'delete_message' | 'delete_activity' | 'delete_comment' | 'delete_reaction' | 'delete_poll' | 'delete_poll_option' | 'delete_poll_answer' | 'ban' | 'custom' | 'unban' | 'restore' | 'delete_user' | 'delete_user_messages' | 'unblock' | 'block' | 'shadow_block' | 'unmask' | 'kick_user' | 'end_call' | 'reject_appeal' | 'escalate' | 'de_escalate' | 'bypass';
10388
+ action_type: 'flag' | 'mark_reviewed' | 'delete_message' | 'delete_activity' | 'delete_comment' | 'delete_reaction' | 'delete_poll' | 'delete_poll_option' | 'delete_poll_answer' | 'ban' | 'custom' | 'unban' | 'restore' | 'delete_user' | 'delete_user_messages' | 'unblock' | 'block' | 'shadow_block' | 'unmask' | 'kick_user' | 'end_call' | 'reject_appeal' | 'escalate' | 'de_escalate' | 'bypass' | 'agent_recommendation';
9764
10389
  /**
9765
10390
  * UUID of the appeal to act on (required for reject_appeal, optional for other actions)
9766
10391
  */
@@ -9769,6 +10394,7 @@ export interface SubmitActionRequest {
9769
10394
  * UUID of the review queue item to act on
9770
10395
  */
9771
10396
  item_id?: string;
10397
+ agent_recommendation?: AgentRecommendationPayload;
9772
10398
  /**
9773
10399
  * Configuration for ban moderation action
9774
10400
  */
@@ -9890,6 +10516,7 @@ export interface TextContentParameters {
9890
10516
  text_length_operator?: string;
9891
10517
  blocklist_match?: Array<string>;
9892
10518
  harm_labels?: Array<string>;
10519
+ severities?: Array<string>;
9893
10520
  llm_harm_labels?: Record<string, string>;
9894
10521
  }
9895
10522
  export interface TextRuleParameters {
@@ -9901,6 +10528,7 @@ export interface TextRuleParameters {
9901
10528
  blocklist_match?: Array<string>;
9902
10529
  harm_labels?: Array<string>;
9903
10530
  semantic_filter_names?: Array<string>;
10531
+ severities?: Array<string>;
9904
10532
  llm_harm_labels?: Record<string, string>;
9905
10533
  }
9906
10534
  export interface ThreadParticipant {
@@ -10079,6 +10707,12 @@ export interface Thresholds {
10079
10707
  spam?: LabelThresholds;
10080
10708
  toxic?: LabelThresholds;
10081
10709
  }
10710
+ export interface TranscriptLanguageResponse {
10711
+ /**
10712
+ * Language code, e.g. en
10713
+ */
10714
+ code: string;
10715
+ }
10082
10716
  export interface TranslateMessageRequest {
10083
10717
  /**
10084
10718
  * Language to translate message to
@@ -10774,8 +11408,17 @@ export interface UpsertConfigRequest {
10774
11408
  ai_image_config?: AIImageConfig;
10775
11409
  ai_text_config?: AITextConfig;
10776
11410
  ai_video_config?: AIVideoConfigRequest;
11411
+ /**
11412
+ * @deprecated
11413
+ */
10777
11414
  automod_platform_circumvention_config?: AutomodPlatformCircumventionConfig;
11415
+ /**
11416
+ * @deprecated
11417
+ */
10778
11418
  automod_semantic_filters_config?: AutomodSemanticFiltersConfig;
11419
+ /**
11420
+ * @deprecated
11421
+ */
10779
11422
  automod_toxicity_config?: AutomodToxicityConfig;
10780
11423
  aws_rekognition_config?: AIImageConfig;
10781
11424
  block_list_config?: BlockListConfig;
@@ -10898,6 +11541,7 @@ export interface UserCreatedWithinParameters {
10898
11541
  max_age?: string;
10899
11542
  }
10900
11543
  export interface UserCustomPropertyParameters {
11544
+ expected_value?: any;
10901
11545
  operator?: string;
10902
11546
  property_key?: string;
10903
11547
  }
@@ -11521,6 +12165,8 @@ export type WSClientEvent = ({
11521
12165
  } & MessageDeletedEvent) | ({
11522
12166
  type: 'message.delivered';
11523
12167
  } & MessageDeliveredEvent) | ({
12168
+ type: 'message.mark_added';
12169
+ } & MessageMarkAddedEvent) | ({
11524
12170
  type: 'message.new';
11525
12171
  } & MessageNewEvent) | ({
11526
12172
  type: 'message.pending';
@@ -11698,6 +12344,8 @@ export type WSEvent = ({
11698
12344
  } & MessageDeletedEvent) | ({
11699
12345
  type: 'message.delivered';
11700
12346
  } & MessageDeliveredEvent) | ({
12347
+ type: 'message.mark_added';
12348
+ } & MessageMarkAddedEvent) | ({
11701
12349
  type: 'message.new';
11702
12350
  } & MessageNewEvent) | ({
11703
12351
  type: 'message.pending';