@stream-io/node-sdk 0.7.52 → 0.7.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { ApiClient, StreamResponse } from '../../gen-imports';
2
- import { AcceptFeedMemberInviteRequest, AcceptFeedMemberInviteResponse, AcceptFollowRequest, AcceptFollowResponse, ActivityFeedbackRequest, ActivityFeedbackResponse, AddActivityRequest, AddActivityResponse, AddBookmarkRequest, AddBookmarkResponse, AddCommentReactionRequest, AddCommentReactionResponse, AddCommentRequest, AddCommentResponse, AddCommentsBatchRequest, AddCommentsBatchResponse, AddReactionRequest, AddReactionResponse, CastPollVoteRequest, CreateCollectionsRequest, CreateCollectionsResponse, CreateFeedGroupRequest, CreateFeedGroupResponse, CreateFeedViewRequest, CreateFeedViewResponse, CreateFeedsBatchRequest, CreateFeedsBatchResponse, CreateMembershipLevelRequest, CreateMembershipLevelResponse, DeleteActivitiesRequest, DeleteActivitiesResponse, DeleteActivityReactionResponse, DeleteActivityResponse, DeleteBookmarkFolderResponse, DeleteBookmarkResponse, DeleteCollectionsResponse, DeleteCommentReactionResponse, DeleteCommentResponse, DeleteFeedGroupResponse, DeleteFeedResponse, DeleteFeedUserDataRequest, DeleteFeedUserDataResponse, DeleteFeedViewResponse, DeleteFeedsBatchRequest, DeleteFeedsBatchResponse, ExportFeedUserDataResponse, FollowBatchRequest, FollowBatchResponse, FollowRequest, GetActivityResponse, GetCommentRepliesResponse, GetCommentResponse, GetCommentsResponse, GetFeedGroupResponse, GetFeedViewResponse, GetFeedVisibilityResponse, GetFeedsRateLimitsResponse, GetFollowSuggestionsResponse, GetOrCreateFeedGroupRequest, GetOrCreateFeedGroupResponse, GetOrCreateFeedRequest, GetOrCreateFeedResponse, GetOrCreateFeedViewRequest, GetOrCreateFeedViewResponse, ListFeedGroupsResponse, ListFeedViewsResponse, ListFeedVisibilitiesResponse, MarkActivityRequest, OwnBatchRequest, OwnBatchResponse, PinActivityRequest, PinActivityResponse, PollVoteResponse, QueryActivitiesRequest, QueryActivitiesResponse, QueryActivityReactionsRequest, QueryActivityReactionsResponse, QueryBookmarkFoldersRequest, QueryBookmarkFoldersResponse, QueryBookmarksRequest, QueryBookmarksResponse, QueryCollectionsRequest, QueryCollectionsResponse, QueryCommentReactionsRequest, QueryCommentReactionsResponse, QueryCommentsRequest, QueryCommentsResponse, QueryFeedMembersRequest, QueryFeedMembersResponse, QueryFeedsRequest, QueryFeedsResponse, QueryFeedsUsageStatsRequest, QueryFeedsUsageStatsResponse, QueryFollowsRequest, QueryFollowsResponse, QueryMembershipLevelsRequest, QueryMembershipLevelsResponse, QueryPinnedActivitiesRequest, QueryPinnedActivitiesResponse, ReadCollectionsResponse, RejectFeedMemberInviteRequest, RejectFeedMemberInviteResponse, RejectFollowRequest, RejectFollowResponse, Response, RestoreActivityRequest, RestoreActivityResponse, RestoreCommentRequest, RestoreCommentResponse, RestoreFeedGroupResponse, SingleFollowResponse, TrackActivityMetricsRequest, TrackActivityMetricsResponse, UnfollowBatchRequest, UnfollowBatchResponse, UnfollowResponse, UnpinActivityResponse, UpdateActivitiesPartialBatchRequest, UpdateActivitiesPartialBatchResponse, UpdateActivityPartialRequest, UpdateActivityPartialResponse, UpdateActivityRequest, UpdateActivityResponse, UpdateBookmarkFolderRequest, UpdateBookmarkFolderResponse, UpdateBookmarkRequest, UpdateBookmarkResponse, UpdateCollectionsRequest, UpdateCollectionsResponse, UpdateCommentPartialRequest, UpdateCommentPartialResponse, UpdateCommentRequest, UpdateCommentResponse, UpdateFeedGroupRequest, UpdateFeedGroupResponse, UpdateFeedMembersRequest, UpdateFeedMembersResponse, UpdateFeedRequest, UpdateFeedResponse, UpdateFeedViewRequest, UpdateFeedViewResponse, UpdateFeedVisibilityRequest, UpdateFeedVisibilityResponse, UpdateFollowRequest, UpdateFollowResponse, UpdateMembershipLevelRequest, UpdateMembershipLevelResponse, UpsertActivitiesRequest, UpsertActivitiesResponse, UpsertCollectionsRequest, UpsertCollectionsResponse } from '../models';
2
+ import { AcceptFeedMemberInviteRequest, AcceptFeedMemberInviteResponse, AcceptFollowRequest, AcceptFollowResponse, ActivityFeedbackRequest, ActivityFeedbackResponse, AddActivityRequest, AddActivityResponse, AddBookmarkRequest, AddBookmarkResponse, AddCommentBookmarkRequest, AddCommentBookmarkResponse, AddCommentReactionRequest, AddCommentReactionResponse, AddCommentRequest, AddCommentResponse, AddCommentsBatchRequest, AddCommentsBatchResponse, AddReactionRequest, AddReactionResponse, CastPollVoteRequest, CreateCollectionsRequest, CreateCollectionsResponse, CreateFeedGroupRequest, CreateFeedGroupResponse, CreateFeedViewRequest, CreateFeedViewResponse, CreateFeedsBatchRequest, CreateFeedsBatchResponse, CreateMembershipLevelRequest, CreateMembershipLevelResponse, DeleteActivitiesRequest, DeleteActivitiesResponse, DeleteActivityReactionResponse, DeleteActivityResponse, DeleteBookmarkFolderResponse, DeleteBookmarkResponse, DeleteCollectionsResponse, DeleteCommentBookmarkResponse, DeleteCommentReactionResponse, DeleteCommentResponse, DeleteFeedGroupResponse, DeleteFeedResponse, DeleteFeedUserDataRequest, DeleteFeedUserDataResponse, DeleteFeedViewResponse, DeleteFeedsBatchRequest, DeleteFeedsBatchResponse, ExportFeedUserDataResponse, FollowBatchRequest, FollowBatchResponse, FollowRequest, GetActivityResponse, GetCommentRepliesResponse, GetCommentResponse, GetCommentsResponse, GetFeedGroupResponse, GetFeedViewResponse, GetFeedVisibilityResponse, GetFeedsRateLimitsResponse, GetFollowSuggestionsResponse, GetOrCreateFeedGroupRequest, GetOrCreateFeedGroupResponse, GetOrCreateFeedRequest, GetOrCreateFeedResponse, GetOrCreateFeedViewRequest, GetOrCreateFeedViewResponse, ListFeedGroupsResponse, ListFeedViewsResponse, ListFeedVisibilitiesResponse, MarkActivityRequest, OwnBatchRequest, OwnBatchResponse, PinActivityRequest, PinActivityResponse, PollVoteResponse, QueryActivitiesRequest, QueryActivitiesResponse, QueryActivityReactionsRequest, QueryActivityReactionsResponse, QueryBookmarkFoldersRequest, QueryBookmarkFoldersResponse, QueryBookmarksRequest, QueryBookmarksResponse, QueryCollectionsRequest, QueryCollectionsResponse, QueryCommentReactionsRequest, QueryCommentReactionsResponse, QueryCommentsRequest, QueryCommentsResponse, QueryFeedMembersRequest, QueryFeedMembersResponse, QueryFeedsRequest, QueryFeedsResponse, QueryFeedsUsageStatsRequest, QueryFeedsUsageStatsResponse, QueryFollowsRequest, QueryFollowsResponse, QueryMembershipLevelsRequest, QueryMembershipLevelsResponse, QueryPinnedActivitiesRequest, QueryPinnedActivitiesResponse, ReadCollectionsResponse, RejectFeedMemberInviteRequest, RejectFeedMemberInviteResponse, RejectFollowRequest, RejectFollowResponse, Response, RestoreActivityRequest, RestoreActivityResponse, RestoreCommentRequest, RestoreCommentResponse, RestoreFeedGroupResponse, SingleFollowResponse, TrackActivityMetricsRequest, TrackActivityMetricsResponse, UnfollowBatchRequest, UnfollowBatchResponse, UnfollowResponse, UnpinActivityResponse, UpdateActivitiesPartialBatchRequest, UpdateActivitiesPartialBatchResponse, UpdateActivityPartialRequest, UpdateActivityPartialResponse, UpdateActivityRequest, UpdateActivityResponse, UpdateBookmarkFolderRequest, UpdateBookmarkFolderResponse, UpdateBookmarkRequest, UpdateBookmarkResponse, UpdateCollectionsRequest, UpdateCollectionsResponse, UpdateCommentBookmarkRequest, UpdateCommentBookmarkResponse, UpdateCommentPartialRequest, UpdateCommentPartialResponse, UpdateCommentRequest, UpdateCommentResponse, UpdateFeedGroupRequest, UpdateFeedGroupResponse, UpdateFeedMembersRequest, UpdateFeedMembersResponse, UpdateFeedRequest, UpdateFeedResponse, UpdateFeedViewRequest, UpdateFeedViewResponse, UpdateFeedVisibilityRequest, UpdateFeedVisibilityResponse, UpdateFollowRequest, UpdateFollowResponse, UpdateMembershipLevelRequest, UpdateMembershipLevelResponse, UpsertActivitiesRequest, UpsertActivitiesResponse, UpsertCollectionsRequest, UpsertCollectionsResponse } from '../models';
3
3
  export declare class FeedsApi {
4
4
  readonly apiClient: ApiClient;
5
5
  constructor(apiClient: ApiClient);
@@ -52,6 +52,9 @@ export declare class FeedsApi {
52
52
  }): Promise<StreamResponse<DeleteActivityResponse>>;
53
53
  getActivity(request: {
54
54
  id: string;
55
+ comment_sort?: string;
56
+ comment_limit?: number;
57
+ user_id?: string;
55
58
  }): Promise<StreamResponse<GetActivityResponse>>;
56
59
  updateActivityPartial(request: UpdateActivityPartialRequest & {
57
60
  id: string;
@@ -97,6 +100,17 @@ export declare class FeedsApi {
97
100
  addComment(request?: AddCommentRequest): Promise<StreamResponse<AddCommentResponse>>;
98
101
  addCommentsBatch(request: AddCommentsBatchRequest): Promise<StreamResponse<AddCommentsBatchResponse>>;
99
102
  queryComments(request: QueryCommentsRequest): Promise<StreamResponse<QueryCommentsResponse>>;
103
+ deleteCommentBookmark(request: {
104
+ comment_id: string;
105
+ folder_id?: string;
106
+ user_id?: string;
107
+ }): Promise<StreamResponse<DeleteCommentBookmarkResponse>>;
108
+ updateCommentBookmark(request: UpdateCommentBookmarkRequest & {
109
+ comment_id: string;
110
+ }): Promise<StreamResponse<UpdateCommentBookmarkResponse>>;
111
+ addCommentBookmark(request: AddCommentBookmarkRequest & {
112
+ comment_id: string;
113
+ }): Promise<StreamResponse<AddCommentBookmarkResponse>>;
100
114
  deleteComment(request: {
101
115
  id: string;
102
116
  hard_delete?: boolean;
@@ -104,6 +118,7 @@ export declare class FeedsApi {
104
118
  }): Promise<StreamResponse<DeleteCommentResponse>>;
105
119
  getComment(request: {
106
120
  id: string;
121
+ user_id?: string;
107
122
  }): Promise<StreamResponse<GetCommentResponse>>;
108
123
  updateComment(request: UpdateCommentRequest & {
109
124
  id: string;
@@ -299,16 +299,6 @@ export interface ActivityFeedbackResponse {
299
299
  activity_id: string;
300
300
  duration: string;
301
301
  }
302
- export interface ActivityLocation {
303
- /**
304
- * Latitude coordinate
305
- */
306
- lat: number;
307
- /**
308
- * Longitude coordinate
309
- */
310
- lng: number;
311
- }
312
302
  export interface ActivityMarkEvent {
313
303
  /**
314
304
  * Date/time of creation
@@ -538,7 +528,7 @@ export interface ActivityRequest {
538
528
  * Custom data for the activity
539
529
  */
540
530
  custom?: Record<string, any>;
541
- location?: ActivityLocation;
531
+ location?: Location;
542
532
  /**
543
533
  * Additional data for search indexing
544
534
  */
@@ -697,7 +687,7 @@ export interface ActivityResponse {
697
687
  */
698
688
  friend_reactions?: FeedsReactionResponse[];
699
689
  current_feed?: FeedResponse;
700
- location?: ActivityLocation;
690
+ location?: Location;
701
691
  metrics?: Record<string, number>;
702
692
  moderation?: ModerationV2Response;
703
693
  notification_context?: NotificationContext;
@@ -839,6 +829,7 @@ export interface AddActivityRequest {
839
829
  * Expiration time for the activity
840
830
  */
841
831
  expires_at?: string;
832
+ force_moderation?: boolean;
842
833
  /**
843
834
  * Optional ID for the activity
844
835
  */
@@ -903,7 +894,7 @@ export interface AddActivityRequest {
903
894
  * Custom data for the activity
904
895
  */
905
896
  custom?: Record<string, any>;
906
- location?: ActivityLocation;
897
+ location?: Location;
907
898
  /**
908
899
  * Additional data for search indexing
909
900
  */
@@ -934,6 +925,23 @@ export interface AddBookmarkResponse {
934
925
  duration: string;
935
926
  bookmark: BookmarkResponse;
936
927
  }
928
+ export interface AddCommentBookmarkRequest {
929
+ /**
930
+ * ID of the folder to add the bookmark to
931
+ */
932
+ folder_id?: string;
933
+ user_id?: string;
934
+ /**
935
+ * Custom data for the bookmark
936
+ */
937
+ custom?: Record<string, any>;
938
+ new_folder?: AddFolderRequest;
939
+ user?: UserRequest;
940
+ }
941
+ export interface AddCommentBookmarkResponse {
942
+ duration: string;
943
+ bookmark: BookmarkResponse;
944
+ }
937
945
  export interface AddCommentReactionRequest {
938
946
  /**
939
947
  * The type of reaction, eg upvote, like, ...
@@ -986,6 +994,10 @@ export interface AddCommentRequest {
986
994
  * Whether to create a notification activity for this comment
987
995
  */
988
996
  create_notification_activity?: boolean;
997
+ /**
998
+ * If true, forces moderation to run for server-side requests. By default, server-side requests skip moderation. Client-side requests always run moderation regardless of this field.
999
+ */
1000
+ force_moderation?: boolean;
989
1001
  /**
990
1002
  * Optional custom ID for the comment (max 255 characters). If not provided, a UUID will be generated.
991
1003
  */
@@ -1151,6 +1163,10 @@ export interface AggregatedActivityResponse {
1151
1163
  is_watched?: boolean;
1152
1164
  }
1153
1165
  export interface AggregationConfig {
1166
+ /**
1167
+ * Order of member activities inside each aggregated group for non-stories feeds: created_at_desc (newest first, default) or created_at_asc (oldest first). Stories feeds ignore this and always use oldest first.
1168
+ */
1169
+ activities_sort?: 'created_at_asc' | 'created_at_desc';
1154
1170
  /**
1155
1171
  * Format for activity aggregation
1156
1172
  */
@@ -1792,12 +1808,22 @@ export interface BookmarkResponse {
1792
1808
  * When the bookmark was created
1793
1809
  */
1794
1810
  created_at: Date;
1811
+ /**
1812
+ * ID of the bookmarked object
1813
+ */
1814
+ object_id: string;
1815
+ /**
1816
+ * Type of the bookmarked object (activity or comment)
1817
+ */
1818
+ object_type: string;
1795
1819
  /**
1796
1820
  * When the bookmark was last updated
1797
1821
  */
1798
1822
  updated_at: Date;
1799
1823
  activity: ActivityResponse;
1800
1824
  user: UserResponse;
1825
+ activity_id?: string;
1826
+ comment?: CommentResponse;
1801
1827
  /**
1802
1828
  * Custom data for the bookmark
1803
1829
  */
@@ -1854,6 +1880,22 @@ export interface BulkImageModerationResponse {
1854
1880
  */
1855
1881
  task_id: string;
1856
1882
  }
1883
+ export interface BypassActionRequest {
1884
+ enabled?: boolean;
1885
+ }
1886
+ export interface BypassRequest {
1887
+ /**
1888
+ * Whether to enable moderation bypass for this user
1889
+ */
1890
+ enabled: boolean;
1891
+ /**
1892
+ * ID of the user to update
1893
+ */
1894
+ target_user_id: string;
1895
+ }
1896
+ export interface BypassResponse {
1897
+ duration: string;
1898
+ }
1857
1899
  export interface CallAcceptedEvent {
1858
1900
  call_cid: string;
1859
1901
  created_at: Date;
@@ -2672,8 +2714,12 @@ export interface CallStatsParticipantCounts {
2672
2714
  peak_concurrent_users: number;
2673
2715
  publishers: number;
2674
2716
  sessions: number;
2717
+ sfus_used: number;
2718
+ average_jitter_ms?: number;
2719
+ average_latency_ms?: number;
2675
2720
  call_event_count?: number;
2676
2721
  cq_score?: number;
2722
+ max_freezes_duration_ms?: number;
2677
2723
  total_participant_duration?: number;
2678
2724
  }
2679
2725
  export interface CallStatsParticipantSession {
@@ -2687,6 +2733,9 @@ export interface CallStatsParticipantSession {
2687
2733
  current_sfu?: string;
2688
2734
  distance_to_sfu_kilometers?: number;
2689
2735
  ended_at?: Date;
2736
+ freezes_duration_ms?: number;
2737
+ jitter_ms?: number;
2738
+ latency_ms?: number;
2690
2739
  os?: string;
2691
2740
  publisher_type?: string;
2692
2741
  sdk?: string;
@@ -2703,6 +2752,7 @@ export interface CallStatsReportReadyEvent {
2703
2752
  * Call session ID
2704
2753
  */
2705
2754
  session_id: string;
2755
+ counts: CallStatsParticipantCounts;
2706
2756
  /**
2707
2757
  * The type of event, "call.report_ready" in this case
2708
2758
  */
@@ -2726,6 +2776,15 @@ export interface CallStatsReportSummaryResponse {
2726
2776
  min_user_rating?: number;
2727
2777
  quality_score?: number;
2728
2778
  }
2779
+ export interface CallStatsSessionResponse {
2780
+ call_id: string;
2781
+ call_session_id: string;
2782
+ call_type: string;
2783
+ generated_at: Date;
2784
+ counts: CallStatsParticipantCounts;
2785
+ call_ended_at?: Date;
2786
+ call_started_at?: Date;
2787
+ }
2729
2788
  export interface CallTranscription {
2730
2789
  end_time: Date;
2731
2790
  filename: string;
@@ -4212,6 +4271,7 @@ export interface CommentReactionUpdatedEvent {
4212
4271
  user?: UserResponseCommonFields;
4213
4272
  }
4214
4273
  export interface CommentResponse {
4274
+ bookmark_count: number;
4215
4275
  /**
4216
4276
  * Confidence score of the comment
4217
4277
  */
@@ -5349,6 +5409,10 @@ export interface DeleteCommandResponse {
5349
5409
  */
5350
5410
  name: string;
5351
5411
  }
5412
+ export interface DeleteCommentBookmarkResponse {
5413
+ duration: string;
5414
+ bookmark: BookmarkResponse;
5415
+ }
5352
5416
  export interface DeleteCommentReactionResponse {
5353
5417
  duration: string;
5354
5418
  comment: CommentResponse;
@@ -5729,6 +5793,20 @@ export interface DraftResponse {
5729
5793
  parent_message?: MessageResponse;
5730
5794
  quoted_message?: MessageResponse;
5731
5795
  }
5796
+ export interface EMAUStatsResponse {
5797
+ /**
5798
+ * Per-day unique engaged user counts
5799
+ */
5800
+ daily: DailyMetricResponse[];
5801
+ /**
5802
+ * Rolling 30-day engaged user count snapshots
5803
+ */
5804
+ last_30_days: DailyMetricResponse[];
5805
+ /**
5806
+ * Calendar month-to-date engaged user count snapshots
5807
+ */
5808
+ month_to_date: DailyMetricResponse[];
5809
+ }
5732
5810
  export interface EdgeResponse {
5733
5811
  continent_code: string;
5734
5812
  country_iso_code: string;
@@ -5841,10 +5919,6 @@ export interface EnrichmentOptions {
5841
5919
  * Default: false. When true, includes fetching and enriching own_followings (follows where activity author's feeds follow current user's feeds).
5842
5920
  */
5843
5921
  enrich_own_followings?: boolean;
5844
- /**
5845
- * Default: false. When true, includes the top-level flat 'activities' array in responses for aggregated feeds. By default, aggregated feeds only return 'aggregated_activities'.
5846
- */
5847
- include_flat_activities?: boolean;
5848
5922
  /**
5849
5923
  * Default: false. When true, includes score_vars in activity responses containing variable values used at ranking time.
5850
5924
  */
@@ -5945,6 +6019,7 @@ export interface EntityCreatorResponse {
5945
6019
  custom: Record<string, any>;
5946
6020
  avg_response_time?: number;
5947
6021
  ban_expires?: Date;
6022
+ bypass_moderation?: boolean;
5948
6023
  deactivated_at?: Date;
5949
6024
  deleted_at?: Date;
5950
6025
  image?: string;
@@ -6263,6 +6338,7 @@ export interface FeedInput {
6263
6338
  filter_tags?: string[];
6264
6339
  members?: FeedMemberRequest[];
6265
6340
  custom?: Record<string, any>;
6341
+ location?: Location;
6266
6342
  }
6267
6343
  export interface FeedMemberAddedEvent {
6268
6344
  /**
@@ -6450,6 +6526,7 @@ export interface FeedRequest {
6450
6526
  * Custom data for the feed
6451
6527
  */
6452
6528
  custom?: Record<string, any>;
6529
+ location?: Location;
6453
6530
  }
6454
6531
  export interface FeedResponse {
6455
6532
  activity_count: number;
@@ -6526,6 +6603,7 @@ export interface FeedResponse {
6526
6603
  * Custom data for the feed
6527
6604
  */
6528
6605
  custom?: Record<string, any>;
6606
+ location?: Location;
6529
6607
  own_membership?: FeedMemberResponse;
6530
6608
  }
6531
6609
  export interface FeedSuggestionResponse {
@@ -6606,6 +6684,7 @@ export interface FeedSuggestionResponse {
6606
6684
  * Custom data for the feed
6607
6685
  */
6608
6686
  custom?: Record<string, any>;
6687
+ location?: Location;
6609
6688
  own_membership?: FeedMemberResponse;
6610
6689
  }
6611
6690
  export interface FeedUpdatedEvent {
@@ -7130,6 +7209,7 @@ export interface FullUserResponse {
7130
7209
  custom: Record<string, any>;
7131
7210
  avg_response_time?: number;
7132
7211
  ban_expires?: Date;
7212
+ bypass_moderation?: boolean;
7133
7213
  deactivated_at?: Date;
7134
7214
  deleted_at?: Date;
7135
7215
  image?: string;
@@ -7468,6 +7548,7 @@ export interface GetImportV2TaskResponse {
7468
7548
  state: number;
7469
7549
  updated_at: Date;
7470
7550
  settings: ImportV2TaskSettings;
7551
+ result?: Record<string, any>;
7471
7552
  }
7472
7553
  export interface GetManyMessagesResponse {
7473
7554
  duration: string;
@@ -7929,12 +8010,14 @@ export interface ImportV2TaskItem {
7929
8010
  state: number;
7930
8011
  updated_at: Date;
7931
8012
  settings: ImportV2TaskSettings;
8013
+ result?: Record<string, any>;
7932
8014
  }
7933
8015
  export interface ImportV2TaskSettings {
7934
8016
  merge_custom?: boolean;
7935
8017
  mode?: string;
7936
8018
  path?: string;
7937
8019
  skip_references_check?: boolean;
8020
+ source?: string;
7938
8021
  s3?: ImportV2TaskSettingsS3;
7939
8022
  }
7940
8023
  export interface ImportV2TaskSettingsS3 {
@@ -8393,6 +8476,16 @@ export interface ListUserGroupsResponse {
8393
8476
  */
8394
8477
  user_groups: UserGroupResponse[];
8395
8478
  }
8479
+ export interface Location {
8480
+ /**
8481
+ * Latitude coordinate
8482
+ */
8483
+ lat: number;
8484
+ /**
8485
+ * Longitude coordinate
8486
+ */
8487
+ lng: number;
8488
+ }
8396
8489
  export interface LocationResponse {
8397
8490
  /**
8398
8491
  * Continent code
@@ -11107,6 +11200,28 @@ export interface QueryCallSessionParticipantStatsTimelineResponse {
11107
11200
  user_session_id: string;
11108
11201
  events: CallParticipantTimeline[];
11109
11202
  }
11203
+ export interface QueryCallSessionStatsRequest {
11204
+ limit?: number;
11205
+ next?: string;
11206
+ prev?: string;
11207
+ /**
11208
+ * Array of sort parameters
11209
+ */
11210
+ sort?: SortParamRequest[];
11211
+ /**
11212
+ * Filter conditions to apply to the query
11213
+ */
11214
+ filter_conditions?: Record<string, any>;
11215
+ }
11216
+ export interface QueryCallSessionStatsResponse {
11217
+ /**
11218
+ * Duration of the request in milliseconds
11219
+ */
11220
+ duration: string;
11221
+ call_stats: CallStatsSessionResponse[];
11222
+ next?: string;
11223
+ prev?: string;
11224
+ }
11110
11225
  export interface QueryCallStatsMapResponse {
11111
11226
  call_id: string;
11112
11227
  call_session_id: string;
@@ -11287,7 +11402,7 @@ export interface QueryCommentReactionsResponse {
11287
11402
  }
11288
11403
  export interface QueryCommentsRequest {
11289
11404
  /**
11290
- * MongoDB-style filter for querying comments
11405
+ * Filter to apply to the query
11291
11406
  */
11292
11407
  filter: Record<string, any>;
11293
11408
  /**
@@ -11301,7 +11416,7 @@ export interface QueryCommentsRequest {
11301
11416
  next?: string;
11302
11417
  prev?: string;
11303
11418
  /**
11304
- * first (oldest), last (newest) or top. One of: first, last, top, best, controversial
11419
+ * Array of sort parameters
11305
11420
  */
11306
11421
  sort?: 'first' | 'last' | 'top' | 'best' | 'controversial';
11307
11422
  user_id?: string;
@@ -11448,6 +11563,7 @@ export interface QueryFeedsUsageStatsResponse {
11448
11563
  api_requests: DailyMetricStatsResponse;
11449
11564
  follows: DailyMetricStatsResponse;
11450
11565
  openai_requests: DailyMetricStatsResponse;
11566
+ emau?: EMAUStatsResponse;
11451
11567
  }
11452
11568
  export interface QueryFollowsRequest {
11453
11569
  limit?: number;
@@ -12123,6 +12239,7 @@ export interface RankingConfig {
12123
12239
  }
12124
12240
  export interface RawRecordSettings {
12125
12241
  mode: 'available' | 'disabled' | 'auto-on';
12242
+ audio_only?: boolean;
12126
12243
  }
12127
12244
  export interface RawRecordingResponse {
12128
12245
  status: string;
@@ -12132,9 +12249,14 @@ export interface RawRecordingSettingsRequest {
12132
12249
  * Recording mode. One of: available, disabled, auto-on
12133
12250
  */
12134
12251
  mode: 'available' | 'disabled' | 'auto-on';
12252
+ /**
12253
+ * If true, only audio tracks will be recorded
12254
+ */
12255
+ audio_only?: boolean;
12135
12256
  }
12136
12257
  export interface RawRecordingSettingsResponse {
12137
12258
  mode: 'available' | 'disabled' | 'auto-on';
12259
+ audio_only?: boolean;
12138
12260
  }
12139
12261
  export interface Reaction {
12140
12262
  activity_id: string;
@@ -13965,7 +14087,7 @@ export interface SubmitActionRequest {
13965
14087
  /**
13966
14088
  * Type of moderation action to perform. One of: mark_reviewed, delete_message, delete_activity, delete_comment, delete_reaction, ban, custom, unban, restore, delete_user, unblock, block, shadow_block, unmask, kick_user, end_call, escalate, de_escalate
13967
14089
  */
13968
- action_type: 'flag' | 'mark_reviewed' | 'delete_message' | 'delete_activity' | 'delete_comment' | 'delete_reaction' | 'ban' | 'custom' | 'unban' | 'restore' | 'delete_user' | 'unblock' | 'block' | 'shadow_block' | 'unmask' | 'kick_user' | 'end_call' | 'reject_appeal' | 'escalate' | 'de_escalate';
14090
+ action_type: 'flag' | 'mark_reviewed' | 'delete_message' | 'delete_activity' | 'delete_comment' | 'delete_reaction' | 'ban' | 'custom' | 'unban' | 'restore' | 'delete_user' | 'unblock' | 'block' | 'shadow_block' | 'unmask' | 'kick_user' | 'end_call' | 'reject_appeal' | 'escalate' | 'de_escalate' | 'bypass';
13969
14091
  /**
13970
14092
  * UUID of the appeal to act on (required for reject_appeal, optional for other actions)
13971
14093
  */
@@ -13977,6 +14099,7 @@ export interface SubmitActionRequest {
13977
14099
  user_id?: string;
13978
14100
  ban?: BanActionRequestPayload;
13979
14101
  block?: BlockActionRequestPayload;
14102
+ bypass?: BypassActionRequest;
13980
14103
  custom?: CustomActionRequestPayload;
13981
14104
  delete_activity?: DeleteActivityRequestPayload;
13982
14105
  delete_comment?: DeleteCommentRequestPayload;
@@ -14219,6 +14342,7 @@ export interface ThreadUpdatedEvent {
14219
14342
  thread?: ThreadResponse;
14220
14343
  }
14221
14344
  export interface ThreadedCommentResponse {
14345
+ bookmark_count: number;
14222
14346
  confidence_score: number;
14223
14347
  created_at: Date;
14224
14348
  downvote_count: number;
@@ -14619,6 +14743,10 @@ export interface UpdateActivitiesPartialBatchRequest {
14619
14743
  * List of activity changes to apply. Each change specifies an activity ID and the fields to set/unset
14620
14744
  */
14621
14745
  changes: UpdateActivityPartialChangeRequest[];
14746
+ /**
14747
+ * If true, forces moderation to run for server-side requests. By default, server-side requests skip moderation. Client-side requests always run moderation regardless of this field.
14748
+ */
14749
+ force_moderation?: boolean;
14622
14750
  }
14623
14751
  export interface UpdateActivitiesPartialBatchResponse {
14624
14752
  duration: string;
@@ -14660,6 +14788,10 @@ export interface UpdateActivityPartialRequest {
14660
14788
  * If true, enriches the activity's current_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.
14661
14789
  */
14662
14790
  enrich_own_fields?: boolean;
14791
+ /**
14792
+ * If true, forces moderation to run for server-side requests. By default, server-side requests skip moderation. Client-side requests always run moderation regardless of this field.
14793
+ */
14794
+ force_moderation?: boolean;
14663
14795
  /**
14664
14796
  * If true, creates notification activities for newly mentioned users and deletes notifications for users no longer mentioned
14665
14797
  */
@@ -14697,6 +14829,10 @@ export interface UpdateActivityRequest {
14697
14829
  * Time when the activity will expire
14698
14830
  */
14699
14831
  expires_at?: Date;
14832
+ /**
14833
+ * If true, forces moderation to run for server-side requests. By default, server-side requests skip moderation. Client-side requests always run moderation regardless of this field.
14834
+ */
14835
+ force_moderation?: boolean;
14700
14836
  /**
14701
14837
  * If true, creates notification activities for newly mentioned users and deletes notifications for users no longer mentioned
14702
14838
  */
@@ -14758,7 +14894,7 @@ export interface UpdateActivityRequest {
14758
14894
  * Custom data for the activity
14759
14895
  */
14760
14896
  custom?: Record<string, any>;
14761
- location?: ActivityLocation;
14897
+ location?: Location;
14762
14898
  /**
14763
14899
  * Additional data for search indexing
14764
14900
  */
@@ -14855,9 +14991,12 @@ export interface UpdateBookmarkFolderResponse {
14855
14991
  }
14856
14992
  export interface UpdateBookmarkRequest {
14857
14993
  /**
14858
- * ID of the folder to move the bookmark to
14994
+ * ID of the folder containing the bookmark
14859
14995
  */
14860
14996
  folder_id?: string;
14997
+ /**
14998
+ * Move the bookmark to this folder (empty string removes the folder)
14999
+ */
14861
15000
  new_folder_id?: string;
14862
15001
  user_id?: string;
14863
15002
  /**
@@ -15155,12 +15294,37 @@ export interface UpdateCommandResponse {
15155
15294
  duration: string;
15156
15295
  command?: Command;
15157
15296
  }
15297
+ export interface UpdateCommentBookmarkRequest {
15298
+ /**
15299
+ * ID of the folder containing the bookmark
15300
+ */
15301
+ folder_id?: string;
15302
+ /**
15303
+ * Move the bookmark to this folder (empty string removes the folder)
15304
+ */
15305
+ new_folder_id?: string;
15306
+ user_id?: string;
15307
+ /**
15308
+ * Custom data for the bookmark
15309
+ */
15310
+ custom?: Record<string, any>;
15311
+ new_folder?: AddFolderRequest;
15312
+ user?: UserRequest;
15313
+ }
15314
+ export interface UpdateCommentBookmarkResponse {
15315
+ duration: string;
15316
+ bookmark: BookmarkResponse;
15317
+ }
15158
15318
  export interface UpdateCommentPartialRequest {
15159
15319
  /**
15160
15320
  * @deprecated
15161
15321
  * Whether to copy custom data to notification activities Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
15162
15322
  */
15163
15323
  copy_custom_to_notification?: boolean;
15324
+ /**
15325
+ * If true, forces moderation to run for server-side requests. By default, server-side requests skip moderation. Client-side requests always run moderation regardless of this field.
15326
+ */
15327
+ force_moderation?: boolean;
15164
15328
  /**
15165
15329
  * Whether to handle mention notification changes
15166
15330
  */
@@ -15198,6 +15362,10 @@ export interface UpdateCommentRequest {
15198
15362
  * Whether to copy custom data to the notification activity (only applies when handle_mention_notifications creates notifications) Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
15199
15363
  */
15200
15364
  copy_custom_to_notification?: boolean;
15365
+ /**
15366
+ * If true, forces moderation to run for server-side requests. By default, server-side requests skip moderation. Client-side requests always run moderation regardless of this field.
15367
+ */
15368
+ force_moderation?: boolean;
15201
15369
  /**
15202
15370
  * If true, creates notification activities for newly mentioned users and deletes notifications for users no longer mentioned
15203
15371
  */
@@ -15300,6 +15468,10 @@ export interface UpdateFeedMembersResponse {
15300
15468
  updated: FeedMemberResponse[];
15301
15469
  }
15302
15470
  export interface UpdateFeedRequest {
15471
+ /**
15472
+ * If true, removes the geographic location from the feed
15473
+ */
15474
+ clear_location?: boolean;
15303
15475
  /**
15304
15476
  * ID of the new feed creator (owner)
15305
15477
  */
@@ -15324,6 +15496,7 @@ export interface UpdateFeedRequest {
15324
15496
  * Custom data for the feed
15325
15497
  */
15326
15498
  custom?: Record<string, any>;
15499
+ location?: Location;
15327
15500
  }
15328
15501
  export interface UpdateFeedResponse {
15329
15502
  duration: string;
@@ -15767,6 +15940,10 @@ export interface UpsertActivitiesRequest {
15767
15940
  * If true, enriches the activities' current_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.
15768
15941
  */
15769
15942
  enrich_own_fields?: boolean;
15943
+ /**
15944
+ * If true, forces moderation to run for server-side requests. By default, server-side requests skip moderation. Client-side requests always run moderation regardless of this field.
15945
+ */
15946
+ force_moderation?: boolean;
15770
15947
  }
15771
15948
  export interface UpsertActivitiesResponse {
15772
15949
  duration: string;
@@ -15805,6 +15982,9 @@ export interface UpsertConfigRequest {
15805
15982
  * Team associated with the configuration
15806
15983
  */
15807
15984
  team?: string;
15985
+ /**
15986
+ * Optional user ID to associate with the audit log entry
15987
+ */
15808
15988
  user_id?: string;
15809
15989
  ai_image_config?: AIImageConfig;
15810
15990
  ai_text_config?: AITextConfig;
@@ -15843,18 +16023,56 @@ export interface UpsertExternalStorageResponse {
15843
16023
  duration: string;
15844
16024
  }
15845
16025
  export interface UpsertModerationRuleRequest {
16026
+ /**
16027
+ * Unique rule name
16028
+ */
15846
16029
  name: string;
16030
+ /**
16031
+ * Type of rule: user, content, or call
16032
+ */
15847
16033
  rule_type: string;
16034
+ /**
16035
+ * Duration before rule can trigger again (e.g. 24h, 7d)
16036
+ */
15848
16037
  cooldown_period?: string;
16038
+ /**
16039
+ * Optional description of the rule
16040
+ */
15849
16041
  description?: string;
16042
+ /**
16043
+ * Whether the rule is active
16044
+ */
15850
16045
  enabled?: boolean;
16046
+ /**
16047
+ * Logical operator between conditions/groups: AND or OR
16048
+ */
15851
16049
  logic?: string;
16050
+ /**
16051
+ * Team scope for the rule
16052
+ */
15852
16053
  team?: string;
16054
+ /**
16055
+ * Optional user ID to associate with the audit log entry
16056
+ */
16057
+ user_id?: string;
16058
+ /**
16059
+ * Escalation sequences for call rules
16060
+ */
15853
16061
  action_sequences?: CallRuleActionSequence[];
16062
+ /**
16063
+ * Flat list of conditions (legacy)
16064
+ */
15854
16065
  conditions?: RuleBuilderCondition[];
16066
+ /**
16067
+ * List of config keys this rule applies to
16068
+ */
15855
16069
  config_keys?: string[];
16070
+ /**
16071
+ * Nested condition groups
16072
+ */
15856
16073
  groups?: RuleBuilderConditionGroup[];
15857
16074
  action?: RuleBuilderAction;
16075
+ user?: UserRequest;
15858
16076
  }
15859
16077
  export interface UpsertModerationRuleResponse {
15860
16078
  /**
@@ -16370,6 +16588,7 @@ export interface UserResponse {
16370
16588
  * Date when ban expires
16371
16589
  */
16372
16590
  ban_expires?: Date;
16591
+ bypass_moderation?: boolean;
16373
16592
  /**
16374
16593
  * Date of deactivation
16375
16594
  */