stream-chat 10.2.0 → 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 (108) hide show
  1. package/dist/cjs/index.browser.js +4712 -2818
  2. package/dist/cjs/index.browser.js.map +4 -4
  3. package/dist/cjs/index.node.js +4733 -2818
  4. package/dist/cjs/index.node.js.map +4 -4
  5. package/dist/esm/index.mjs +4712 -2818
  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 +41 -0
  37. package/dist/types/pagination/paginators/ChannelPaginator.d.ts +0 -9
  38. package/dist/types/pagination/paginators/MessageMarkPaginator.d.ts +61 -0
  39. package/dist/types/pagination/paginators/ScheduledMessagePaginator.d.ts +83 -0
  40. package/dist/types/pagination/paginators/index.d.ts +2 -0
  41. package/dist/types/scheduledMessages/ScheduledMessagePaginatorsManager.d.ts +47 -0
  42. package/dist/types/scheduledMessages/ScheduledMessageStatePolicy.d.ts +12 -0
  43. package/dist/types/scheduledMessages/ScheduledMessagesView.d.ts +38 -0
  44. package/dist/types/scheduledMessages/composition.d.ts +5 -0
  45. package/dist/types/scheduledMessages/constants.d.ts +56 -0
  46. package/dist/types/scheduledMessages/editResolvers.d.ts +4 -0
  47. package/dist/types/scheduledMessages/errors.d.ts +3 -0
  48. package/dist/types/scheduledMessages/eventHandlers.d.ts +8 -0
  49. package/dist/types/scheduledMessages/index.d.ts +7 -0
  50. package/dist/types/scheduledMessages/limits.d.ts +6 -0
  51. package/dist/types/scheduledMessages/types.d.ts +65 -0
  52. package/dist/types/thread.d.ts +12 -1
  53. package/dist/types/utils.d.ts +7 -0
  54. package/package.json +1 -1
  55. package/src/channel.ts +231 -7
  56. package/src/client.ts +46 -2
  57. package/src/configuration/keys.ts +2 -0
  58. package/src/configuration/shape.ts +15 -0
  59. package/src/configuration/types.ts +3 -1
  60. package/src/connection/ConnectionRecoveryManager.ts +7 -0
  61. package/src/errors.ts +11 -0
  62. package/src/gen/chat/ChatApi.ts +60 -3
  63. package/src/gen/models/index.ts +794 -23
  64. package/src/gen/moderation/ModerationApi.ts +24 -3
  65. package/src/index.ts +2 -0
  66. package/src/messageComposer/attachmentManager.ts +43 -24
  67. package/src/messageComposer/index.ts +1 -0
  68. package/src/messageComposer/messageComposer.ts +140 -32
  69. package/src/messageComposer/middleware/messageComposer/MessageComposerMiddlewareExecutor.ts +2 -0
  70. package/src/messageComposer/middleware/messageComposer/compositionValidation.ts +40 -47
  71. package/src/messageComposer/middleware/messageComposer/index.ts +1 -0
  72. package/src/messageComposer/middleware/messageComposer/scheduledMessage.ts +38 -0
  73. package/src/messageComposer/middleware/textComposer/commandUtils.ts +8 -0
  74. package/src/messageComposer/scheduledMessageComposition.ts +324 -0
  75. package/src/messageMarks/MessageMarkManager.ts +145 -0
  76. package/src/messageMarks/index.ts +1 -0
  77. package/src/messageOperations/MessageOperationStatePolicy.ts +7 -0
  78. package/src/messageOperations/MessageOperations.ts +154 -1
  79. package/src/messageOperations/index.ts +1 -0
  80. package/src/messageOperations/reflectMessageMarkEvent.ts +47 -0
  81. package/src/messageOperations/reflectReactionEvent.ts +3 -0
  82. package/src/messageOperations/sendOrdering.ts +11 -4
  83. package/src/messageOperations/types.ts +6 -2
  84. package/src/notifications/types.ts +4 -0
  85. package/src/offline-support/offline_support_api.ts +61 -1
  86. package/src/offline-support/queueableOperations.ts +6 -0
  87. package/src/offline-support/types.ts +28 -0
  88. package/src/pagination/PaginatorView.ts +103 -0
  89. package/src/pagination/index.ts +1 -0
  90. package/src/pagination/paginators/BasePaginator.ts +179 -27
  91. package/src/pagination/paginators/ChannelPaginator.ts +8 -28
  92. package/src/pagination/paginators/MessageIntervalPaginator.ts +4 -1
  93. package/src/pagination/paginators/MessageMarkPaginator.ts +222 -0
  94. package/src/pagination/paginators/ScheduledMessagePaginator.ts +352 -0
  95. package/src/pagination/paginators/index.ts +2 -0
  96. package/src/scheduledMessages/ScheduledMessagePaginatorsManager.ts +268 -0
  97. package/src/scheduledMessages/ScheduledMessageStatePolicy.ts +42 -0
  98. package/src/scheduledMessages/ScheduledMessagesView.ts +57 -0
  99. package/src/scheduledMessages/composition.ts +129 -0
  100. package/src/scheduledMessages/constants.ts +79 -0
  101. package/src/scheduledMessages/editResolvers.ts +51 -0
  102. package/src/scheduledMessages/errors.ts +45 -0
  103. package/src/scheduledMessages/eventHandlers.ts +58 -0
  104. package/src/scheduledMessages/index.ts +7 -0
  105. package/src/scheduledMessages/limits.ts +32 -0
  106. package/src/scheduledMessages/types.ts +124 -0
  107. package/src/thread.ts +41 -17
  108. package/src/utils.ts +18 -0
@@ -270,6 +270,8 @@ export interface AITextConfig {
270
270
  export interface AIVideoConfigRequest {
271
271
  async?: boolean;
272
272
  enabled?: boolean;
273
+ ocr_rules?: Array<OCRRule>;
274
+ ocr_severity_rules?: Array<BodyguardRule>;
273
275
  rules?: Array<AWSRekognitionRule>;
274
276
  }
275
277
 
@@ -277,6 +279,8 @@ export interface AIVideoConfigResponse {
277
279
  enabled: boolean;
278
280
  rules: Array<AWSRekognitionRule>;
279
281
  async?: boolean;
282
+ ocr_rules?: Array<OCRRule>;
283
+ ocr_severity_rules?: Array<BodyguardRule>;
280
284
  }
281
285
 
282
286
  export interface APIError {
@@ -350,7 +354,7 @@ export interface ActionLogResponse {
350
354
  */
351
355
  reason: string;
352
356
  /**
353
- * Classification of who triggered the action (e.g. user, moderator, automod, api_integration)
357
+ * Classification of who triggered the action (e.g. user, moderator, automod, agent_reviewer, api_integration)
354
358
  */
355
359
  reporter_type: string;
356
360
  /**
@@ -367,9 +371,10 @@ export interface ActionLogResponse {
367
371
  user_id: string;
368
372
  ai_providers: Array<string>;
369
373
  /**
370
- * Additional metadata about the action
374
+ * Additional metadata about the action. An agent_recommendation log keeps the suggested action under recommended_action
371
375
  */
372
376
  custom: Record<string, any>;
377
+ agent_recommendation?: AgentRecommendationResponse;
373
378
  review_queue_item?: ReviewQueueItemResponse;
374
379
  /**
375
380
  * User response object
@@ -410,6 +415,67 @@ export interface AddUserGroupMembersResponse {
410
415
  user_group?: UserGroupResponse;
411
416
  }
412
417
 
418
+ export interface AgentRecommendationPayload {
419
+ /**
420
+ * Why Nora suggests this action. Stored on the action log, cut to 500 bytes
421
+ */
422
+ reason: string;
423
+ /**
424
+ * Action Nora suggests for the item
425
+ */
426
+ recommended_action:
427
+ | 'keep'
428
+ | 'flag'
429
+ | 'mask'
430
+ | 'mask_flag'
431
+ | 'shadow'
432
+ | 'remove'
433
+ | 'bounce'
434
+ | 'bounce_flag'
435
+ | 'bounce_remove'
436
+ | 'review';
437
+ }
438
+
439
+ export interface AgentRecommendationResponse {
440
+ /**
441
+ * Why Nora suggested this action
442
+ */
443
+ reason: string;
444
+ /**
445
+ * Action Nora suggested for the item
446
+ */
447
+ recommended_action:
448
+ | 'keep'
449
+ | 'flag'
450
+ | 'mask'
451
+ | 'mask_flag'
452
+ | 'shadow'
453
+ | 'remove'
454
+ | 'bounce'
455
+ | 'bounce_flag'
456
+ | 'bounce_remove'
457
+ | 'review';
458
+ }
459
+
460
+ export interface AgentReviewSummaryResponse {
461
+ /**
462
+ * Verdict confidence from 0 to 1
463
+ */
464
+ confidence: number;
465
+ /**
466
+ * pending, processing, done, failed, or skipped
467
+ */
468
+ status: string;
469
+ /**
470
+ * Whether the flag matches the content. Set once the review is done
471
+ */
472
+ flag_assessment?: string;
473
+ /**
474
+ * The action Nora recommends. Set once the review is done
475
+ */
476
+ recommended_action?: string;
477
+ }
478
+
413
479
  export interface AppChannelCountParameters {
414
480
  threshold?: number;
415
481
  time_window?: string;
@@ -637,6 +703,22 @@ export interface Attachment {
637
703
  actions?: Array<Action>;
638
704
  fields?: Array<Field>;
639
705
  giphy?: Images;
706
+ voice_transcript?: AttachmentTranscriptResponse;
707
+ }
708
+
709
+ export interface AttachmentTranscriptResponse {
710
+ /**
711
+ * Why the recording could not be transcribed: unsupported_format, too_large, blocked_url, fetch_failed or invalid_response
712
+ */
713
+ error?: string;
714
+ /**
715
+ * Transcribed text of the recording
716
+ */
717
+ text?: string;
718
+ /**
719
+ * Languages detected in the recording
720
+ */
721
+ languages?: Array<TranscriptLanguageResponse>;
640
722
  }
641
723
 
642
724
  export interface AutomodDetailsResponse {
@@ -1076,6 +1158,7 @@ export interface CallActionOptions {
1076
1158
  }
1077
1159
 
1078
1160
  export interface CallCustomPropertyParameters {
1161
+ expected_value?: any;
1079
1162
  operator?: string;
1080
1163
  property_key?: string;
1081
1164
  }
@@ -1176,6 +1259,10 @@ export interface ChannelConfigOverrides {
1176
1259
  * Enable/disable user message reminders
1177
1260
  */
1178
1261
  user_message_reminders?: boolean;
1262
+ /**
1263
+ * Enables or disables transcription of voice recordings
1264
+ */
1265
+ voice_transcription?: boolean;
1179
1266
  /**
1180
1267
  * List of commands that channel supports
1181
1268
  */
@@ -1218,6 +1305,7 @@ export interface ChannelConfigWithInfo {
1218
1305
  uploads: boolean;
1219
1306
  url_enrichment: boolean;
1220
1307
  user_message_reminders: boolean;
1308
+ voice_transcription: boolean;
1221
1309
  commands: Array<Command>;
1222
1310
  blocklist?: string;
1223
1311
  /**
@@ -1248,6 +1336,7 @@ export interface ChannelConfigWithInfo {
1248
1336
  scheduled_messages_min_lead_time_seconds?: number;
1249
1337
  allowed_flag_reasons?: Array<string>;
1250
1338
  blocklists?: Array<BlockListOptions>;
1339
+ mark_types?: Array<string>;
1251
1340
  /**
1252
1341
  * Sets thresholds for AI moderation
1253
1342
  */
@@ -1843,6 +1932,7 @@ export const ChannelOwnCapability = {
1843
1932
  SEND_CUSTOM_EVENTS: 'send-custom-events',
1844
1933
  SEND_LINKS: 'send-links',
1845
1934
  SEND_MESSAGE: 'send-message',
1935
+ SEND_MESSAGE_MARK: 'send-message-mark',
1846
1936
  SEND_POLL: 'send-poll',
1847
1937
  SEND_REACTION: 'send-reaction',
1848
1938
  SEND_REPLY: 'send-reply',
@@ -2410,6 +2500,16 @@ export interface ChatDraftResponse {
2410
2500
  quoted_message?: ChatMessageResponse;
2411
2501
  }
2412
2502
 
2503
+ export interface ChatMarkGroupResponse {
2504
+ count: number;
2505
+ latest_by: Array<ChatMessageMarkerResponse>;
2506
+ }
2507
+
2508
+ export interface ChatMessageMarkerResponse {
2509
+ created_at: TimestampNS;
2510
+ user_id: string;
2511
+ }
2512
+
2413
2513
  export interface ChatMessageResponse {
2414
2514
  cid: string;
2415
2515
  created_at: TimestampNS;
@@ -2451,10 +2551,12 @@ export interface ChatMessageResponse {
2451
2551
  mentioned_group_ids?: Array<string>;
2452
2552
  mentioned_groups?: Array<UserGroupResponse>;
2453
2553
  mentioned_roles?: Array<string>;
2554
+ own_marks?: Array<ChatOwnMarkResponse>;
2454
2555
  thread_participants?: Array<UserResponse>;
2455
2556
  draft?: ChatDraftResponse;
2456
2557
  i18n?: Record<string, string>;
2457
2558
  image_labels?: Record<string, Array<string>>;
2559
+ mark_groups?: Record<string, ChatMarkGroupResponse>;
2458
2560
  member?: ChannelMemberPartialResponse;
2459
2561
  moderation?: ChatModerationV2Response;
2460
2562
  /**
@@ -2479,6 +2581,11 @@ export interface ChatModerationV2Response {
2479
2581
  text_harms?: Array<string>;
2480
2582
  }
2481
2583
 
2584
+ export interface ChatOwnMarkResponse {
2585
+ created_at: TimestampNS;
2586
+ type: string;
2587
+ }
2588
+
2482
2589
  export interface ChatPreferences {
2483
2590
  channel_mentions?: string;
2484
2591
  default_preference?: string;
@@ -2573,6 +2680,7 @@ export interface ClosedCaptionRuleParameters {
2573
2680
  threshold?: number;
2574
2681
  time_window?: string;
2575
2682
  harm_labels?: Array<string>;
2683
+ severities?: Array<string>;
2576
2684
  llm_harm_labels?: Record<string, string>;
2577
2685
  }
2578
2686
 
@@ -2665,6 +2773,10 @@ export interface ConfigOverridesRequest {
2665
2773
  * Enable/disable user message reminders
2666
2774
  */
2667
2775
  user_message_reminders?: boolean;
2776
+ /**
2777
+ * Enable/disable transcription of voice recordings in this channel
2778
+ */
2779
+ voice_transcription?: boolean;
2668
2780
  /**
2669
2781
  * List of available commands
2670
2782
  */
@@ -2718,8 +2830,17 @@ export interface ConfigResponse {
2718
2830
  ai_image_subclassifications?: Record<string, Array<string>>;
2719
2831
  ai_text_config?: AITextConfig;
2720
2832
  ai_video_config?: AIVideoConfigResponse;
2833
+ /**
2834
+ * @deprecated
2835
+ */
2721
2836
  automod_platform_circumvention_config?: AutomodPlatformCircumventionConfig;
2837
+ /**
2838
+ * @deprecated
2839
+ */
2722
2840
  automod_semantic_filters_config?: AutomodSemanticFiltersConfig;
2841
+ /**
2842
+ * @deprecated
2843
+ */
2723
2844
  automod_toxicity_config?: AutomodToxicityConfig;
2724
2845
  block_list_config?: BlockListConfig;
2725
2846
  engine?: ModerationEngineConfigResponse;
@@ -2790,21 +2911,323 @@ export interface ContentCountRuleParameters {
2790
2911
  time_window?: string;
2791
2912
  }
2792
2913
 
2793
- export interface ContentCountryCodeParameters {
2794
- operator?: string;
2795
- country_codes?: Array<string>;
2796
- }
2914
+ export interface ContentCountryCodeParameters {
2915
+ operator?: string;
2916
+ country_codes?: Array<string>;
2917
+ }
2918
+
2919
+ export interface ContentCustomPropertyCountParameters {
2920
+ expected_value?: any;
2921
+ operator?: string;
2922
+ property_key?: string;
2923
+ threshold?: number;
2924
+ time_window?: string;
2925
+ }
2926
+
2927
+ export interface ContentCustomPropertyParameters {
2928
+ expected_value?: any;
2929
+ operator?: string;
2930
+ property_key?: string;
2931
+ }
2932
+
2933
+ export interface CountReviewQueueRequest {
2934
+ /**
2935
+ * 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.
2936
+ */
2937
+ filter?: Filters<{
2938
+ agent_review_action: {
2939
+ type: string;
2940
+ operators: '$eq';
2941
+ };
2942
+
2943
+ agent_reviewed: {
2944
+ type: boolean;
2945
+ operators: '$eq';
2946
+ };
2947
+
2948
+ ai_text_severity: {
2949
+ type: string;
2950
+ operators: '$eq';
2951
+ };
2952
+
2953
+ appeal: {
2954
+ type: boolean;
2955
+ operators: '$eq';
2956
+ };
2957
+
2958
+ appeal_id: {
2959
+ type: string;
2960
+ operators: '$eq';
2961
+ };
2962
+
2963
+ appeal_status: {
2964
+ type: string;
2965
+ operators: '$eq';
2966
+ };
2967
+
2968
+ archived_at: {
2969
+ type: Date | string;
2970
+ operators: '$eq' | '$exists' | '$gt' | '$gte' | '$in' | '$lt' | '$lte';
2971
+ };
2972
+
2973
+ bounce_count: {
2974
+ type: number;
2975
+ operators: '$eq' | '$exists' | '$gt' | '$gte' | '$in' | '$lt' | '$lte';
2976
+ };
2977
+
2978
+ category: {
2979
+ type: string;
2980
+ operators: '$eq' | '$in';
2981
+ };
2982
+
2983
+ channel_cid: {
2984
+ type: string;
2985
+ operators: '$eq';
2986
+ };
2987
+
2988
+ channel_id: {
2989
+ type: string;
2990
+ operators: '$eq';
2991
+ };
2992
+
2993
+ completed_at: {
2994
+ type: Date | string;
2995
+ operators: '$eq' | '$exists' | '$gt' | '$gte' | '$in' | '$lt' | '$lte';
2996
+ };
2997
+
2998
+ confidence_score: {
2999
+ type: number;
3000
+ operators: '$eq' | '$exists' | '$gt' | '$gte' | '$in' | '$lt' | '$lte';
3001
+ };
3002
+
3003
+ config_key: {
3004
+ type: string;
3005
+ operators: '$eq' | '$exists' | '$gt' | '$gte' | '$in' | '$lt' | '$lte';
3006
+ };
3007
+
3008
+ content_text: {
3009
+ type: string;
3010
+ operators: '$eq' | '$in' | '$q';
3011
+ };
3012
+
3013
+ country_code: {
3014
+ type: string;
3015
+ operators: '$eq' | '$exists' | '$gt' | '$gte' | '$in' | '$lt' | '$lte';
3016
+ };
3017
+
3018
+ created_at: {
3019
+ type: Date | string;
3020
+ operators: '$eq' | '$exists' | '$gt' | '$gte' | '$in' | '$lt' | '$lte';
3021
+ };
3022
+
3023
+ custom: {
3024
+ type: Record<string, any>;
3025
+ operators:
3026
+ | '$autocomplete'
3027
+ | '$contains'
3028
+ | '$eq'
3029
+ | '$exists'
3030
+ | '$gt'
3031
+ | '$gte'
3032
+ | '$in'
3033
+ | '$lt'
3034
+ | '$lte'
3035
+ | '$q';
3036
+ };
3037
+
3038
+ date_range: {
3039
+ type: string;
3040
+ operators: '$eq';
3041
+ };
3042
+
3043
+ entity_creator_id: {
3044
+ type: string;
3045
+ operators: '$eq' | '$exists' | '$gt' | '$gte' | '$in' | '$lt' | '$lte';
3046
+ };
3047
+
3048
+ entity_creator_name: {
3049
+ type: string;
3050
+ operators:
3051
+ | '$contains'
3052
+ | '$eq'
3053
+ | '$exists'
3054
+ | '$gt'
3055
+ | '$gte'
3056
+ | '$in'
3057
+ | '$lt'
3058
+ | '$lte';
3059
+ };
3060
+
3061
+ entity_id: {
3062
+ type: string;
3063
+ operators: '$eq' | '$exists' | '$gt' | '$gte' | '$in' | '$lt' | '$lte';
3064
+ };
3065
+
3066
+ entity_type: {
3067
+ type: string;
3068
+ operators: '$eq' | '$exists' | '$gt' | '$gte' | '$in' | '$lt' | '$lte';
3069
+ };
3070
+
3071
+ escalated: {
3072
+ type: boolean;
3073
+ operators: '$eq';
3074
+ };
3075
+
3076
+ escalated_at: {
3077
+ type: Date | string;
3078
+ operators: '$eq' | '$exists' | '$gt' | '$gte' | '$in' | '$lt' | '$lte';
3079
+ };
3080
+
3081
+ escalated_by: {
3082
+ type: string;
3083
+ operators: '$eq' | '$exists' | '$gt' | '$gte' | '$in' | '$lt' | '$lte';
3084
+ };
3085
+
3086
+ escalation_priority: {
3087
+ type: string;
3088
+ operators: '$eq';
3089
+ };
3090
+
3091
+ escalation_reason: {
3092
+ type: string;
3093
+ operators: '$eq';
3094
+ };
3095
+
3096
+ flagged_user_id: {
3097
+ type: string;
3098
+ operators: '$eq';
3099
+ };
3100
+
3101
+ flags_count: {
3102
+ type: number;
3103
+ operators: '$eq';
3104
+ };
3105
+
3106
+ has_audio: {
3107
+ type: boolean;
3108
+ operators: '$eq';
3109
+ };
3110
+
3111
+ has_false_positive: {
3112
+ type: boolean;
3113
+ operators: '$eq';
3114
+ };
3115
+
3116
+ has_image: {
3117
+ type: boolean;
3118
+ operators: '$eq';
3119
+ };
3120
+
3121
+ has_text: {
3122
+ type: boolean;
3123
+ operators: '$eq';
3124
+ };
3125
+
3126
+ has_video: {
3127
+ type: boolean;
3128
+ operators: '$eq';
3129
+ };
3130
+
3131
+ id: {
3132
+ type: string;
3133
+ operators: '$eq' | '$exists' | '$gt' | '$gte' | '$in' | '$lt' | '$lte';
3134
+ };
3135
+
3136
+ label: {
3137
+ type: string;
3138
+ operators: '$eq' | '$in';
3139
+ };
3140
+
3141
+ language: {
3142
+ type: string;
3143
+ operators: '$contains' | '$eq' | '$in';
3144
+ };
3145
+
3146
+ latest_moderator_action: {
3147
+ type: string;
3148
+ operators: '$eq' | '$exists' | '$gt' | '$gte' | '$in' | '$lt' | '$lte';
3149
+ };
3150
+
3151
+ queue_type: {
3152
+ type: string;
3153
+ operators: '$eq' | '$in';
3154
+ };
3155
+
3156
+ recommended_action: {
3157
+ type: string;
3158
+ operators: '$eq' | '$in';
3159
+ };
3160
+
3161
+ reporter_id: {
3162
+ type: string;
3163
+ operators: '$eq' | '$in';
3164
+ };
3165
+
3166
+ reporter_type: {
3167
+ type: string;
3168
+ operators: '$eq' | '$in';
3169
+ };
3170
+
3171
+ reviewed: {
3172
+ type: boolean;
3173
+ operators: '$eq';
3174
+ };
3175
+
3176
+ reviewed_at: {
3177
+ type: Date | string;
3178
+ operators: '$eq' | '$exists' | '$gt' | '$gte' | '$in' | '$lt' | '$lte';
3179
+ };
3180
+
3181
+ severity: {
3182
+ type: number;
3183
+ operators: '$eq' | '$exists' | '$gt' | '$gte' | '$in' | '$lt' | '$lte';
3184
+ };
3185
+
3186
+ status: {
3187
+ type: string;
3188
+ operators: '$eq' | '$exists' | '$gt' | '$gte' | '$in' | '$lt' | '$lte';
3189
+ };
3190
+
3191
+ teams: {
3192
+ type: string;
3193
+ operators: '$contains' | '$eq' | '$in';
3194
+ };
3195
+
3196
+ type: {
3197
+ type: string;
3198
+ operators: '$eq' | '$exists' | '$gt' | '$gte' | '$in' | '$lt' | '$lte';
3199
+ };
3200
+
3201
+ updated_at: {
3202
+ type: Date | string;
3203
+ operators: '$eq' | '$exists' | '$gt' | '$gte' | '$in' | '$lt' | '$lte';
3204
+ };
2797
3205
 
2798
- export interface ContentCustomPropertyCountParameters {
2799
- operator?: string;
2800
- property_key?: string;
2801
- threshold?: number;
2802
- time_window?: string;
3206
+ user_report_reason: {
3207
+ type: string;
3208
+ operators: '$eq' | '$in';
3209
+ };
3210
+ }>;
2803
3211
  }
2804
3212
 
2805
- export interface ContentCustomPropertyParameters {
2806
- operator?: string;
2807
- property_key?: string;
3213
+ export interface CountReviewQueueResponse {
3214
+ /**
3215
+ * Whether more items match than are counted exactly (50,000), so total is a lower bound
3216
+ */
3217
+ capped: boolean;
3218
+ duration: string;
3219
+ /**
3220
+ * 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.
3221
+ */
3222
+ pending: boolean;
3223
+ /**
3224
+ * Number of review queue items matching the filter. When capped is true, at least this many items match.
3225
+ */
3226
+ total: number;
3227
+ /**
3228
+ * When the count was computed. Counts are refreshed in the background as the review queue changes.
3229
+ */
3230
+ computed_at?: TimestampNS;
2808
3231
  }
2809
3232
 
2810
3233
  export interface CreateBlockListRequest {
@@ -2905,6 +3328,25 @@ export interface CreateGuestResponse {
2905
3328
  user: UserResponse;
2906
3329
  }
2907
3330
 
3331
+ export interface CreateMessageMarkRequest {
3332
+ /**
3333
+ * 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
3334
+ */
3335
+ type: string;
3336
+ }
3337
+
3338
+ export interface CreateMessageMarkResponse {
3339
+ /**
3340
+ * Whether this request wrote the mark. False on a repeat and on the author's own mark
3341
+ */
3342
+ created: boolean;
3343
+ duration: string;
3344
+ /**
3345
+ * 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.
3346
+ */
3347
+ mark: MessageMarkResponse;
3348
+ }
3349
+
2908
3350
  export interface CreatePollOptionRequest {
2909
3351
  /**
2910
3352
  * Option text
@@ -4250,6 +4692,7 @@ export interface GetOGResponse {
4250
4692
  actions?: Array<Action>;
4251
4693
  fields?: Array<Field>;
4252
4694
  giphy?: Images;
4695
+ voice_transcript?: AttachmentTranscriptResponse;
4253
4696
  }
4254
4697
 
4255
4698
  export interface GetOrCreateChannelDefaults {
@@ -4428,6 +4871,7 @@ export interface IPFlagCountRuleParameters {
4428
4871
  threshold?: number;
4429
4872
  time_window?: string;
4430
4873
  harm_labels?: Array<string>;
4874
+ severities?: Array<string>;
4431
4875
  }
4432
4876
 
4433
4877
  export interface ImageContentParameters {
@@ -4660,6 +5104,17 @@ export interface MarkDeliveredResponse {
4660
5104
  duration: string;
4661
5105
  }
4662
5106
 
5107
+ export interface MarkGroupResponse {
5108
+ /**
5109
+ * Number of users who marked the message with this type
5110
+ */
5111
+ count: number;
5112
+ /**
5113
+ * The users who marked the message with this type, newest first, at most 100
5114
+ */
5115
+ latest_by: Array<MessageMarkerResponse>;
5116
+ }
5117
+
4663
5118
  export interface MarkReadRequest {
4664
5119
  /**
4665
5120
  * ID of the message that is considered last read by client
@@ -5070,6 +5525,97 @@ export interface MessageFlagResponse {
5070
5525
  user?: UserResponse;
5071
5526
  }
5072
5527
 
5528
+ export interface MessageMarkAddedEvent {
5529
+ /**
5530
+ * Date/time of creation
5531
+ */
5532
+ created_at: TimestampNS;
5533
+ /**
5534
+ * The marked message
5535
+ */
5536
+ message_id: string;
5537
+ custom: Record<string, any>;
5538
+ /**
5539
+ * 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.
5540
+ */
5541
+ mark: MessageMarkResponse;
5542
+ /**
5543
+ * The type of event: "message.mark_added" in this case
5544
+ */
5545
+ type: string;
5546
+ /**
5547
+ * The ID of the channel holding the marked message
5548
+ */
5549
+ channel_id?: string;
5550
+ /**
5551
+ * The type of the channel holding the marked message
5552
+ */
5553
+ channel_type?: string;
5554
+ /**
5555
+ * The CID of the channel holding the marked message
5556
+ */
5557
+ cid?: string;
5558
+ /**
5559
+ * The ID of the parent message, when the marked message is a thread reply
5560
+ */
5561
+ parent_id?: string;
5562
+ received_at?: TimestampNS;
5563
+ user?: UserResponseCommonFields;
5564
+ }
5565
+
5566
+ export interface MessageMarkResponse {
5567
+ /**
5568
+ * When the mark was written
5569
+ */
5570
+ created_at: TimestampNS;
5571
+ /**
5572
+ * The marked message
5573
+ */
5574
+ message_id: string;
5575
+ /**
5576
+ * The mark type, for example played
5577
+ */
5578
+ type: string;
5579
+ /**
5580
+ * The user who marked the message
5581
+ */
5582
+ user_id: string;
5583
+ }
5584
+
5585
+ export interface MessageMarkWithUserResponse {
5586
+ /**
5587
+ * When the mark was written
5588
+ */
5589
+ created_at: TimestampNS;
5590
+ /**
5591
+ * The marked message
5592
+ */
5593
+ message_id: string;
5594
+ /**
5595
+ * The mark type, for example played
5596
+ */
5597
+ type: string;
5598
+ /**
5599
+ * The user who marked the message
5600
+ */
5601
+ user_id: string;
5602
+ /**
5603
+ * User response object
5604
+ */
5605
+ user: UserResponse;
5606
+ }
5607
+
5608
+ export interface MessageMarkerResponse {
5609
+ /**
5610
+ * When the mark was written
5611
+ */
5612
+ created_at: TimestampNS;
5613
+ /**
5614
+ * The user who marked the message
5615
+ */
5616
+ user_id: string;
5617
+ }
5618
+
5073
5619
  export interface MessageModerationResult {
5074
5620
  /**
5075
5621
  * Action taken by automod
@@ -5487,6 +6033,10 @@ export interface MessageResponse {
5487
6033
  * 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
5488
6034
  */
5489
6035
  mentioned_roles?: Array<string>;
6036
+ /**
6037
+ * The viewer's own marks on this message, for example played. Omitted when marks are off for the channel type
6038
+ */
6039
+ own_marks?: Array<OwnMarkResponse>;
5490
6040
  /**
5491
6041
  * List of users who participate in thread
5492
6042
  */
@@ -5500,6 +6050,10 @@ export interface MessageResponse {
5500
6050
  * Contains image moderation information
5501
6051
  */
5502
6052
  image_labels?: Record<string, Array<string>>;
6053
+ /**
6054
+ * On the viewer's own messages: who marked them, per mark type (for example played). Omitted when marks are off for the channel type
6055
+ */
6056
+ mark_groups?: Record<string, MarkGroupResponse>;
5503
6057
  member?: ChannelMemberPartialResponse;
5504
6058
  /**
5505
6059
  * 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
@@ -5751,6 +6305,10 @@ export interface MessageWithChannelResponse {
5751
6305
  * 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
5752
6306
  */
5753
6307
  mentioned_roles?: Array<string>;
6308
+ /**
6309
+ * The viewer's own marks on this message, for example played. Omitted when marks are off for the channel type
6310
+ */
6311
+ own_marks?: Array<OwnMarkResponse>;
5754
6312
  /**
5755
6313
  * List of users who participate in thread
5756
6314
  */
@@ -5764,6 +6322,10 @@ export interface MessageWithChannelResponse {
5764
6322
  * Contains image moderation information
5765
6323
  */
5766
6324
  image_labels?: Record<string, Array<string>>;
6325
+ /**
6326
+ * On the viewer's own messages: who marked them, per mark type (for example played). Omitted when marks are off for the channel type
6327
+ */
6328
+ mark_groups?: Record<string, MarkGroupResponse>;
5767
6329
  member?: ChannelMemberPartialResponse;
5768
6330
  /**
5769
6331
  * 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
@@ -5876,24 +6438,46 @@ export interface ModerationCustomActionEvent {
5876
6438
 
5877
6439
  export interface ModerationEngineConfigRequest {
5878
6440
  /**
5879
- * LLM model used when the provider resolves to llm. Not allowed with provider nlp. Empty uses the app's moderation settings
6441
+ * 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
6442
+ */
6443
+ model?:
6444
+ | 'gpt-4o-mini'
6445
+ | 'gpt-4o'
6446
+ | 'gpt-6-luna'
6447
+ | 'stream-mammoth-1'
6448
+ | 'stream-elephant-1'
6449
+ | 'stream-whale-1';
6450
+ /**
6451
+ * llm, nlp or stream. Empty follows the app's LLM moderation setting
6452
+ */
6453
+ provider?: 'llm' | 'nlp' | 'stream';
6454
+ /**
6455
+ * OpenAI reasoning effort for model. Requires model, and must be one the model accepts. Empty uses the model's default
5880
6456
  */
5881
- model?: 'gpt-4o-mini' | 'gpt-4o';
6457
+ reasoning_effort?: string;
5882
6458
  /**
5883
- * llm or nlp. Empty follows the app's LLM moderation setting
6459
+ * How sure a Stream model must be before it flags: relaxed, balanced or strict. Only with provider stream. Empty is balanced
5884
6460
  */
5885
- provider?: 'llm' | 'nlp';
6461
+ strictness?: 'relaxed' | 'balanced' | 'strict';
5886
6462
  }
5887
6463
 
5888
6464
  export interface ModerationEngineConfigResponse {
5889
6465
  /**
5890
- * LLM model used when the provider resolves to llm. Not allowed with provider nlp. Empty uses the app's moderation settings
6466
+ * 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
5891
6467
  */
5892
6468
  model?: string;
5893
6469
  /**
5894
- * llm or nlp. Empty follows the app's LLM moderation setting
6470
+ * llm, nlp or stream. Empty follows the app's LLM moderation setting
6471
+ */
6472
+ provider?: 'llm' | 'nlp' | 'stream';
6473
+ /**
6474
+ * OpenAI reasoning effort for model. Requires model, and must be one the model accepts. Empty uses the model's default
6475
+ */
6476
+ reasoning_effort?: string;
6477
+ /**
6478
+ * How sure a Stream model must be before it flags: relaxed, balanced or strict. Only with provider stream. Empty is balanced
5895
6479
  */
5896
- provider?: 'llm' | 'nlp';
6480
+ strictness?: 'relaxed' | 'balanced' | 'strict';
5897
6481
  }
5898
6482
 
5899
6483
  export interface ModerationFlagResponse {
@@ -6016,6 +6600,8 @@ export interface ModerationQueueResponse {
6016
6600
  description: string;
6017
6601
  id: string;
6018
6602
  item_count: number;
6603
+ item_count_capped: boolean;
6604
+ item_count_pending: boolean;
6019
6605
  name: string;
6020
6606
  type: string;
6021
6607
  updated_at: TimestampNS;
@@ -6818,6 +7404,7 @@ export interface OCRContentParameters {
6818
7404
  label_operator?: string;
6819
7405
  severity?: string;
6820
7406
  harm_labels?: Array<string>;
7407
+ severities?: Array<string>;
6821
7408
  }
6822
7409
 
6823
7410
  export interface OCRRule {
@@ -6832,6 +7419,17 @@ export interface OnlyUserID {
6832
7419
  id: string;
6833
7420
  }
6834
7421
 
7422
+ export interface OwnMarkResponse {
7423
+ /**
7424
+ * When the mark was written
7425
+ */
7426
+ created_at: TimestampNS;
7427
+ /**
7428
+ * The mark type, for example played
7429
+ */
7430
+ type: string;
7431
+ }
7432
+
6835
7433
  export interface OwnUserResponse {
6836
7434
  banned: boolean;
6837
7435
  created_at: TimestampNS;
@@ -8054,6 +8652,43 @@ export interface QueryMessageFlagsResponse {
8054
8652
  flags: Array<MessageFlagResponse>;
8055
8653
  }
8056
8654
 
8655
+ export interface QueryMessageMarksFilter {
8656
+ /**
8657
+ * Only marks of this type, for example played
8658
+ */
8659
+ type?: string;
8660
+ }
8661
+
8662
+ export interface QueryMessageMarksRequest {
8663
+ /**
8664
+ * Page size, 1 to 100. Defaults to 25
8665
+ */
8666
+ limit?: number;
8667
+ /**
8668
+ * Cursor from the previous page's next field. The order is fixed: newest first
8669
+ */
8670
+ next?: string;
8671
+ /**
8672
+ * Filter for listing the marks on a message
8673
+ */
8674
+ filter?: QueryMessageMarksFilter;
8675
+ }
8676
+
8677
+ export interface QueryMessageMarksResponse {
8678
+ /**
8679
+ * Duration of the request in milliseconds
8680
+ */
8681
+ duration: string;
8682
+ /**
8683
+ * The marks of this page, newest first
8684
+ */
8685
+ marks: Array<MessageMarkWithUserResponse>;
8686
+ /**
8687
+ * Cursor for the next page; absent on the last page
8688
+ */
8689
+ next?: string;
8690
+ }
8691
+
8057
8692
  export interface QueryModerationConfigsRequest {
8058
8693
  limit?: number;
8059
8694
  next?: string;
@@ -8367,6 +9002,16 @@ export interface QueryReviewQueueRequest {
8367
9002
  * 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.
8368
9003
  */
8369
9004
  filter?: Filters<{
9005
+ agent_review_action: {
9006
+ type: string;
9007
+ operators: '$eq';
9008
+ };
9009
+
9010
+ agent_reviewed: {
9011
+ type: boolean;
9012
+ operators: '$eq';
9013
+ };
9014
+
8370
9015
  ai_text_severity: {
8371
9016
  type: string;
8372
9017
  operators: '$eq';
@@ -9546,6 +10191,7 @@ export interface ReviewQueueItemResponse {
9546
10191
  */
9547
10192
  teams?: Array<string>;
9548
10193
  activity?: EnrichedActivity;
10194
+ agent_review?: AgentReviewSummaryResponse;
9549
10195
  appeal?: AppealItemResponse;
9550
10196
  /**
9551
10197
  * User response object
@@ -9738,8 +10384,17 @@ export interface SaveConfigVersionRequest {
9738
10384
  ai_image_config?: AIImageConfig;
9739
10385
  ai_text_config?: AITextConfig;
9740
10386
  ai_video_config?: AIVideoConfigRequest;
10387
+ /**
10388
+ * @deprecated
10389
+ */
9741
10390
  automod_platform_circumvention_config?: AutomodPlatformCircumventionConfig;
10391
+ /**
10392
+ * @deprecated
10393
+ */
9742
10394
  automod_semantic_filters_config?: AutomodSemanticFiltersConfig;
10395
+ /**
10396
+ * @deprecated
10397
+ */
9743
10398
  automod_toxicity_config?: AutomodToxicityConfig;
9744
10399
  aws_rekognition_config?: AIImageConfig;
9745
10400
  block_list_config?: BlockListConfig;
@@ -9857,6 +10512,10 @@ export interface ScheduledMessageContentResponse {
9857
10512
  * IDs of the users the message will be visible to
9858
10513
  */
9859
10514
  restricted_visibility?: Array<string>;
10515
+ /**
10516
+ * Represents any chat message
10517
+ */
10518
+ quoted_message?: MessageResponse;
9860
10519
  /**
9861
10520
  * The location a scheduled message will share
9862
10521
  */
@@ -10073,6 +10732,93 @@ export interface ScheduledMessagesFilter {
10073
10732
  status?: Array<ScheduledMessageQueryStatus>;
10074
10733
  }
10075
10734
 
10735
+ export interface SearchAllChannelsSection {
10736
+ /**
10737
+ * 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
10738
+ */
10739
+ next?: string;
10740
+ /**
10741
+ * 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
10742
+ */
10743
+ channels?: Array<ChannelStateResponseFields>;
10744
+ error?: SearchAllSectionError;
10745
+ warning?: SearchAllWarning;
10746
+ }
10747
+
10748
+ export interface SearchAllMessagesSection {
10749
+ /**
10750
+ * 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
10751
+ */
10752
+ next?: string;
10753
+ /**
10754
+ * Matching messages, newest first, in the same shape as the search endpoint's results
10755
+ */
10756
+ results?: Array<SearchResult>;
10757
+ error?: SearchAllSectionError;
10758
+ results_warning?: SearchWarning;
10759
+ warning?: SearchAllWarning;
10760
+ }
10761
+
10762
+ export interface SearchAllRequest {
10763
+ /**
10764
+ * Number of results per section, 1-30. Defaults to 10. Applies to every requested section; there is no per-section limit
10765
+ */
10766
+ limit?: number;
10767
+ /**
10768
+ * 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
10769
+ */
10770
+ query?: string;
10771
+ /**
10772
+ * 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
10773
+ */
10774
+ entities?: Array<string>;
10775
+ /**
10776
+ * 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
10777
+ */
10778
+ next?: Record<string, string>;
10779
+ }
10780
+
10781
+ export interface SearchAllResponse {
10782
+ /**
10783
+ * Duration of the request in milliseconds
10784
+ */
10785
+ duration: string;
10786
+ channels?: SearchAllChannelsSection;
10787
+ messages?: SearchAllMessagesSection;
10788
+ users?: SearchAllUsersSection;
10789
+ }
10790
+
10791
+ export interface SearchAllSectionError {
10792
+ /**
10793
+ * Error code. backend_timeout and backend_unavailable are retryable; unsupported (the app's configuration cannot serve this section) and internal_error are not
10794
+ */
10795
+ code: 'backend_unavailable' | 'backend_timeout' | 'unsupported' | 'internal_error';
10796
+ /**
10797
+ * Human-readable description of the failure
10798
+ */
10799
+ message: string;
10800
+ }
10801
+
10802
+ export interface SearchAllUsersSection {
10803
+ /**
10804
+ * 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
10805
+ */
10806
+ next?: string;
10807
+ /**
10808
+ * Users whose name or username starts with the query, in the same shape as the query users endpoint's results
10809
+ */
10810
+ users?: Array<FullUserResponse>;
10811
+ error?: SearchAllSectionError;
10812
+ warning?: SearchAllWarning;
10813
+ }
10814
+
10815
+ export interface SearchAllWarning {
10816
+ /**
10817
+ * Warning code. cursor_rejected: the cursor supplied for this section failed to decode, so the section restarted from page 1
10818
+ */
10819
+ code: 'cursor_rejected';
10820
+ }
10821
+
10076
10822
  export interface SearchPayload {
10077
10823
  /**
10078
10824
  * Channel filter conditions
@@ -10425,6 +11171,7 @@ export interface SearchResultMessage {
10425
11171
  mentioned_group_ids?: Array<string>;
10426
11172
  mentioned_groups?: Array<UserGroupResponse>;
10427
11173
  mentioned_roles?: Array<string>;
11174
+ own_marks?: Array<OwnMarkResponse>;
10428
11175
  thread_participants?: Array<UserResponse>;
10429
11176
  /**
10430
11177
  * Represents channel in chat
@@ -10433,6 +11180,7 @@ export interface SearchResultMessage {
10433
11180
  draft?: DraftResponse;
10434
11181
  i18n?: Record<string, string>;
10435
11182
  image_labels?: Record<string, Array<string>>;
11183
+ mark_groups?: Record<string, MarkGroupResponse>;
10436
11184
  member?: ChannelMemberPartialResponse;
10437
11185
  mentioned_channel_members?: Record<string, ChannelMemberPartialResponse>;
10438
11186
  moderation?: ModerationV2Response;
@@ -10715,7 +11463,7 @@ export type SortParamType = '' | 'number' | 'boolean';
10715
11463
 
10716
11464
  export interface SubmitActionRequest {
10717
11465
  /**
10718
- * 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
11466
+ * 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
10719
11467
  */
10720
11468
  action_type:
10721
11469
  | 'flag'
@@ -10742,7 +11490,8 @@ export interface SubmitActionRequest {
10742
11490
  | 'reject_appeal'
10743
11491
  | 'escalate'
10744
11492
  | 'de_escalate'
10745
- | 'bypass';
11493
+ | 'bypass'
11494
+ | 'agent_recommendation';
10746
11495
  /**
10747
11496
  * UUID of the appeal to act on (required for reject_appeal, optional for other actions)
10748
11497
  */
@@ -10751,6 +11500,7 @@ export interface SubmitActionRequest {
10751
11500
  * UUID of the review queue item to act on
10752
11501
  */
10753
11502
  item_id?: string;
11503
+ agent_recommendation?: AgentRecommendationPayload;
10754
11504
  /**
10755
11505
  * Configuration for ban moderation action
10756
11506
  */
@@ -10876,6 +11626,7 @@ export interface TextContentParameters {
10876
11626
  text_length_operator?: string;
10877
11627
  blocklist_match?: Array<string>;
10878
11628
  harm_labels?: Array<string>;
11629
+ severities?: Array<string>;
10879
11630
  llm_harm_labels?: Record<string, string>;
10880
11631
  }
10881
11632
 
@@ -10888,6 +11639,7 @@ export interface TextRuleParameters {
10888
11639
  blocklist_match?: Array<string>;
10889
11640
  harm_labels?: Array<string>;
10890
11641
  semantic_filter_names?: Array<string>;
11642
+ severities?: Array<string>;
10891
11643
  llm_harm_labels?: Record<string, string>;
10892
11644
  }
10893
11645
 
@@ -11072,6 +11824,13 @@ export interface Thresholds {
11072
11824
  toxic?: LabelThresholds;
11073
11825
  }
11074
11826
 
11827
+ export interface TranscriptLanguageResponse {
11828
+ /**
11829
+ * Language code, e.g. en
11830
+ */
11831
+ code: string;
11832
+ }
11833
+
11075
11834
  export interface TranslateMessageRequest {
11076
11835
  /**
11077
11836
  * Language to translate message to
@@ -11878,8 +12637,17 @@ export interface UpsertConfigRequest {
11878
12637
  ai_image_config?: AIImageConfig;
11879
12638
  ai_text_config?: AITextConfig;
11880
12639
  ai_video_config?: AIVideoConfigRequest;
12640
+ /**
12641
+ * @deprecated
12642
+ */
11881
12643
  automod_platform_circumvention_config?: AutomodPlatformCircumventionConfig;
12644
+ /**
12645
+ * @deprecated
12646
+ */
11882
12647
  automod_semantic_filters_config?: AutomodSemanticFiltersConfig;
12648
+ /**
12649
+ * @deprecated
12650
+ */
11883
12651
  automod_toxicity_config?: AutomodToxicityConfig;
11884
12652
  aws_rekognition_config?: AIImageConfig;
11885
12653
  block_list_config?: BlockListConfig;
@@ -12015,6 +12783,7 @@ export interface UserCreatedWithinParameters {
12015
12783
  }
12016
12784
 
12017
12785
  export interface UserCustomPropertyParameters {
12786
+ expected_value?: any;
12018
12787
  operator?: string;
12019
12788
  property_key?: string;
12020
12789
  }
@@ -12650,6 +13419,7 @@ export type WSClientEvent =
12650
13419
  | ({ type: 'member.updated' } & MemberUpdatedEvent)
12651
13420
  | ({ type: 'message.deleted' } & MessageDeletedEvent)
12652
13421
  | ({ type: 'message.delivered' } & MessageDeliveredEvent)
13422
+ | ({ type: 'message.mark_added' } & MessageMarkAddedEvent)
12653
13423
  | ({ type: 'message.new' } & MessageNewEvent)
12654
13424
  | ({ type: 'message.pending' } & PendingMessageEvent)
12655
13425
  | ({ type: 'message.read' } & MessageReadEvent)
@@ -12744,6 +13514,7 @@ export type WSEvent =
12744
13514
  | ({ type: 'member.updated' } & MemberUpdatedEvent)
12745
13515
  | ({ type: 'message.deleted' } & MessageDeletedEvent)
12746
13516
  | ({ type: 'message.delivered' } & MessageDeliveredEvent)
13517
+ | ({ type: 'message.mark_added' } & MessageMarkAddedEvent)
12747
13518
  | ({ type: 'message.new' } & MessageNewEvent)
12748
13519
  | ({ type: 'message.pending' } & PendingMessageEvent)
12749
13520
  | ({ type: 'message.read' } & MessageReadEvent)