@stream-io/node-sdk 0.8.3 → 0.8.4

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 { AddSegmentTargetsRequest, CampaignResponse, CastPollVoteRequest, ChannelBatchUpdateRequest, ChannelBatchUpdateResponse, ChannelGetOrCreateRequest, ChannelStateResponse, CommitMessageRequest, CreateCampaignRequest, CreateCampaignResponse, CreateChannelTypeRequest, CreateChannelTypeResponse, CreateCommandRequest, CreateCommandResponse, CreatePredefinedFilterRequest, CreatePredefinedFilterResponse, CreateReminderRequest, CreateSegmentRequest, CreateSegmentResponse, DeleteCampaignResponse, DeleteChannelResponse, DeleteChannelsRequest, DeleteChannelsResponse, DeleteCommandResponse, DeleteMessageResponse, DeleteReactionResponse, DeleteReminderResponse, DeleteRetentionPolicyRequest, DeleteRetentionPolicyResponse, DeleteSegmentTargetsRequest, EventResponse, ExportChannelsRequest, ExportChannelsResponse, GetCampaignResponse, GetChannelTypeResponse, GetCommandResponse, GetDraftResponse, GetManyMessagesResponse, GetMessageResponse, GetPinnedMessagesResponse, GetPredefinedFilterResponse, GetReactionsResponse, GetRepliesResponse, GetRetentionPolicyResponse, GetRetentionPolicyRunsRequest, GetRetentionPolicyRunsResponse, GetSegmentResponse, GetThreadResponse, GroupedQueryChannelsRequest, GroupedQueryChannelsResponse, HideChannelRequest, HideChannelResponse, ListChannelTypesResponse, ListCommandsResponse, MarkChannelsReadRequest, MarkDeliveredRequest, MarkDeliveredResponse, MarkReadRequest, MarkReadResponse, MarkUnreadRequest, MembersResponse, MessageActionRequest, MessageActionResponse, MuteChannelRequest, MuteChannelResponse, PollVoteResponse, QueryBannedUsersPayload, QueryBannedUsersResponse, QueryCampaignsRequest, QueryCampaignsResponse, QueryChannelsRequest, QueryChannelsResponse, QueryDraftsRequest, QueryDraftsResponse, QueryFutureChannelBansPayload, QueryFutureChannelBansResponse, QueryMembersPayload, QueryMessageFlagsPayload, QueryMessageFlagsResponse, QueryMessageHistoryRequest, QueryMessageHistoryResponse, QueryPredefinedFiltersResponse, QueryReactionsRequest, QueryReactionsResponse, QueryRemindersRequest, QueryRemindersResponse, QuerySegmentTargetsRequest, QuerySegmentTargetsResponse, QuerySegmentsRequest, QuerySegmentsResponse, QueryTeamUsageStatsRequest, QueryTeamUsageStatsResponse, QueryThreadsRequest, QueryThreadsResponse, ReminderResponseData, Response, SearchPayload, SearchResponse, SendEventRequest, SendMessageRequest, SendMessageResponse, SendReactionRequest, SendReactionResponse, SendUserCustomEventRequest, SetRetentionPolicyRequest, SetRetentionPolicyResponse, ShowChannelRequest, ShowChannelResponse, SortParamRequest, StartCampaignRequest, StartCampaignResponse, StopCampaignRequest, TranslateMessageRequest, TruncateChannelRequest, TruncateChannelResponse, UndeleteMessageRequest, UndeleteMessageResponse, UnmuteChannelRequest, UnmuteResponse, UnreadCountsBatchRequest, UnreadCountsBatchResponse, UpdateCampaignRequest, UpdateChannelPartialRequest, UpdateChannelPartialResponse, UpdateChannelRequest, UpdateChannelResponse, UpdateChannelTypeRequest, UpdateChannelTypeResponse, UpdateCommandRequest, UpdateCommandResponse, UpdateMemberPartialRequest, UpdateMemberPartialResponse, UpdateMessagePartialRequest, UpdateMessagePartialResponse, UpdateMessageRequest, UpdateMessageResponse, UpdatePredefinedFilterRequest, UpdatePredefinedFilterResponse, UpdateReminderRequest, UpdateReminderResponse, UpdateSegmentRequest, UpdateSegmentResponse, UpdateThreadPartialRequest, UpdateThreadPartialResponse, UploadChannelFileRequest, UploadChannelFileResponse, UploadChannelRequest, UploadChannelResponse, WrappedUnreadCountsResponse } from '../models';
2
+ import { AddSegmentTargetsRequest, CampaignResponse, CastPollVoteRequest, ChannelBatchUpdateRequest, ChannelBatchUpdateResponse, ChannelGetOrCreateRequest, ChannelStateResponse, CommitMessageRequest, CreateCampaignRequest, CreateCampaignResponse, CreateChannelTypeRequest, CreateChannelTypeResponse, CreateCommandRequest, CreateCommandResponse, CreatePredefinedFilterRequest, CreatePredefinedFilterResponse, CreateReminderRequest, CreateReminderResponse, CreateSegmentRequest, CreateSegmentResponse, DeleteCampaignResponse, DeleteChannelResponse, DeleteChannelsRequest, DeleteChannelsResponse, DeleteCommandResponse, DeleteMessageResponse, DeleteReactionResponse, DeleteReminderResponse, DeleteRetentionPolicyRequest, DeleteRetentionPolicyResponse, DeleteSegmentTargetsRequest, EventResponse, ExportChannelsRequest, ExportChannelsResponse, GetCampaignResponse, GetChannelTypeResponse, GetCommandResponse, GetDraftResponse, GetManyMessagesResponse, GetMessageResponse, GetPinnedMessagesResponse, GetPredefinedFilterResponse, GetReactionsResponse, GetRepliesResponse, GetRetentionPolicyResponse, GetRetentionPolicyRunsRequest, GetRetentionPolicyRunsResponse, GetSegmentResponse, GetThreadResponse, GroupedQueryChannelsRequest, GroupedQueryChannelsResponse, HideChannelRequest, HideChannelResponse, ListChannelTypesResponse, ListCommandsResponse, MarkChannelsReadRequest, MarkDeliveredRequest, MarkDeliveredResponse, MarkReadRequest, MarkReadResponse, MarkUnreadRequest, MembersResponse, MessageActionRequest, MessageActionResponse, MuteChannelRequest, MuteChannelResponse, PollVoteResponse, QueryBannedUsersPayload, QueryBannedUsersResponse, QueryCampaignsRequest, QueryCampaignsResponse, QueryChannelsRequest, QueryChannelsResponse, QueryDraftsRequest, QueryDraftsResponse, QueryFutureChannelBansPayload, QueryFutureChannelBansResponse, QueryMembersPayload, QueryMessageFlagsPayload, QueryMessageFlagsResponse, QueryMessageHistoryRequest, QueryMessageHistoryResponse, QueryPredefinedFiltersResponse, QueryReactionsRequest, QueryReactionsResponse, QueryRemindersRequest, QueryRemindersResponse, QuerySegmentTargetsRequest, QuerySegmentTargetsResponse, QuerySegmentsRequest, QuerySegmentsResponse, QueryTeamUsageStatsRequest, QueryTeamUsageStatsResponse, QueryThreadsRequest, QueryThreadsResponse, Response, SearchPayload, SearchResponse, SendEventRequest, SendMessageRequest, SendMessageResponse, SendReactionRequest, SendReactionResponse, SendUserCustomEventRequest, SetRetentionPolicyRequest, SetRetentionPolicyResponse, ShowChannelRequest, ShowChannelResponse, SortParamRequest, StartCampaignRequest, StartCampaignResponse, StopCampaignRequest, TranslateMessageRequest, TruncateChannelRequest, TruncateChannelResponse, UndeleteMessageRequest, UndeleteMessageResponse, UnmuteChannelRequest, UnmuteResponse, UnreadCountsBatchRequest, UnreadCountsBatchResponse, UpdateCampaignRequest, UpdateChannelPartialRequest, UpdateChannelPartialResponse, UpdateChannelRequest, UpdateChannelResponse, UpdateChannelTypeRequest, UpdateChannelTypeResponse, UpdateCommandRequest, UpdateCommandResponse, UpdateMemberPartialRequest, UpdateMemberPartialResponse, UpdateMessagePartialRequest, UpdateMessagePartialResponse, UpdateMessageRequest, UpdateMessageResponse, UpdatePredefinedFilterRequest, UpdatePredefinedFilterResponse, UpdateReminderRequest, UpdateReminderResponse, UpdateSegmentRequest, UpdateSegmentResponse, UpdateThreadPartialRequest, UpdateThreadPartialResponse, UploadChannelFileRequest, UploadChannelFileResponse, UploadChannelRequest, UploadChannelResponse, WrappedUnreadCountsResponse } from '../models';
3
3
  export declare class ChatApi {
4
4
  readonly apiClient: ApiClient;
5
5
  constructor(apiClient: ApiClient);
@@ -247,7 +247,7 @@ export declare class ChatApi {
247
247
  }): Promise<StreamResponse<UpdateReminderResponse>>;
248
248
  createReminder(request: CreateReminderRequest & {
249
249
  message_id: string;
250
- }): Promise<StreamResponse<ReminderResponseData>>;
250
+ }): Promise<StreamResponse<CreateReminderResponse>>;
251
251
  getReplies(request: {
252
252
  parent_id: string;
253
253
  limit?: number;
@@ -136,7 +136,7 @@ export interface AcceptFollowRequest {
136
136
  */
137
137
  target: string;
138
138
  /**
139
- * Optional role for the follower in the follow relationship
139
+ * Optional role for the follower in the follow relationship. Server-side only, and one of 'feed_follower' (the default) or 'feed_member_viewer'.
140
140
  */
141
141
  follower_role?: string;
142
142
  }
@@ -420,7 +420,7 @@ export interface ActivityProcessorConfig {
420
420
  */
421
421
  min_text_length?: number;
422
422
  /**
423
- * Minimum number of words the activity text must have before this processor runs. 0 (the default) disables the check. Only applies to text_interest_tags.
423
+ * Minimum number of words the activity text must have before this processor runs. 0 (the default) disables the check. Only applies to text_interest_tags. Words are whitespace-separated, so scripts written without word spacing (Chinese, Japanese, Thai) always count as 1 word regardless of length — use min_text_length for those.
424
424
  */
425
425
  min_word_count?: number;
426
426
  }
@@ -1420,6 +1420,7 @@ export interface AppResponseFields {
1420
1420
  id: number;
1421
1421
  image_moderation_enabled: boolean;
1422
1422
  max_aggregated_activities_length: number;
1423
+ member_custom_on_mentioned_users_enabled: boolean;
1423
1424
  member_custom_on_messages_enabled: boolean;
1424
1425
  moderation_audio_call_moderation_enabled: boolean;
1425
1426
  moderation_enabled: boolean;
@@ -4193,16 +4194,13 @@ export interface ChannelMemberPartialResponse {
4193
4194
  custom?: Record<string, any>;
4194
4195
  }
4195
4196
  export interface ChannelMemberRequest {
4196
- user_id: string;
4197
4197
  /**
4198
4198
  * Role of the member in the channel
4199
4199
  */
4200
4200
  channel_role?: string;
4201
+ user_id?: string;
4201
4202
  custom?: Record<string, any>;
4202
- /**
4203
- * User response object
4204
- */
4205
- user?: UserResponse;
4203
+ user?: MemberUserRequest;
4206
4204
  }
4207
4205
  export interface ChannelMemberResponse {
4208
4206
  /**
@@ -6158,6 +6156,7 @@ export interface CreateFeedGroupRequest {
6158
6156
  * Unique identifier for the feed group
6159
6157
  */
6160
6158
  id: string;
6159
+ default_follower_role?: string;
6161
6160
  /**
6162
6161
  * Default visibility for the feed group, can be 'public', 'visible', 'followers', 'members', or 'private'. Defaults to 'visible' if not provided.
6163
6162
  */
@@ -6206,6 +6205,10 @@ export interface CreateFeedsBatchRequest {
6206
6205
  * List of feeds to create
6207
6206
  */
6208
6207
  feeds: Array<FeedRequest>;
6208
+ /**
6209
+ * Server-side only. If true, auto-creates users referenced by feeds[].created_by_id that don't already exist. Default: false.
6210
+ */
6211
+ create_users?: boolean;
6209
6212
  /**
6210
6213
  * If true, enriches the created feeds with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.
6211
6214
  */
@@ -6466,6 +6469,13 @@ export interface CreateReminderRequest {
6466
6469
  */
6467
6470
  user?: UserRequest;
6468
6471
  }
6472
+ export interface CreateReminderResponse {
6473
+ /**
6474
+ * Duration of the request in milliseconds
6475
+ */
6476
+ duration: string;
6477
+ reminder: ReminderResponseData;
6478
+ }
6469
6479
  export interface CreateRoleRequest {
6470
6480
  /**
6471
6481
  * Role name
@@ -7858,6 +7868,7 @@ export interface FeedGroup {
7858
7868
  aggregation_version: number;
7859
7869
  app_pk: number;
7860
7870
  created_at: Date;
7871
+ default_follower_role: string;
7861
7872
  default_visibility: string;
7862
7873
  group_id: string;
7863
7874
  updated_at: Date;
@@ -7920,6 +7931,10 @@ export interface FeedGroupResponse {
7920
7931
  * When the feed group was last updated
7921
7932
  */
7922
7933
  updated_at: Date;
7934
+ /**
7935
+ * Role new followers of feeds in this group are given. One of: feed_follower, feed_member_viewer. Empty means feed_follower. Applied when the follow is accepted, so a follow that starts pending picks it up on approval
7936
+ */
7937
+ default_follower_role?: string;
7923
7938
  /**
7924
7939
  * Default visibility for activities. One of: public, visible, followers, members, private
7925
7940
  */
@@ -8934,7 +8949,7 @@ export interface FollowResponse {
8934
8949
  */
8935
8950
  created_at: Date;
8936
8951
  /**
8937
- * Role of the follower (source user) in the follow relationship
8952
+ * Role of the follower (source user) in the follow relationship, as stored. A value outside the allowed set is reported as stored but evaluated as 'feed_follower'.
8938
8953
  */
8939
8954
  follower_role: string;
8940
8955
  /**
@@ -9546,6 +9561,7 @@ export interface GetOrCreateCallResponse {
9546
9561
  call: CallResponse;
9547
9562
  }
9548
9563
  export interface GetOrCreateFeedGroupRequest {
9564
+ default_follower_role?: string;
9549
9565
  /**
9550
9566
  * Default visibility for the feed group, can be 'public', 'visible', 'followers', 'members', or 'private'. Defaults to 'visible' if not provided.
9551
9567
  */
@@ -11057,6 +11073,18 @@ export interface MemberUpdatedEvent {
11057
11073
  channel_custom?: Record<string, any>;
11058
11074
  user?: UserResponseCommonFields;
11059
11075
  }
11076
+ export interface MemberUserRequest {
11077
+ id: string;
11078
+ image?: string;
11079
+ invisible?: boolean;
11080
+ language?: string;
11081
+ name?: string;
11082
+ role?: string;
11083
+ teams?: Array<string>;
11084
+ custom?: Record<string, any>;
11085
+ privacy_settings?: PrivacySettingsResponse;
11086
+ teams_role?: Record<string, string>;
11087
+ }
11060
11088
  export interface MembersResponse {
11061
11089
  /**
11062
11090
  * Duration of the request in milliseconds
@@ -11711,6 +11739,10 @@ export interface MessageResponse {
11711
11739
  */
11712
11740
  image_labels?: Record<string, Array<string>>;
11713
11741
  member?: ChannelMemberPartialResponse;
11742
+ /**
11743
+ * 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
11744
+ */
11745
+ mentioned_channel_members?: Record<string, ChannelMemberPartialResponse>;
11714
11746
  moderation?: ModerationV2Response;
11715
11747
  /**
11716
11748
  * User response object
@@ -11992,6 +12024,10 @@ export interface MessageWithChannelResponse {
11992
12024
  */
11993
12025
  image_labels?: Record<string, Array<string>>;
11994
12026
  member?: ChannelMemberPartialResponse;
12027
+ /**
12028
+ * 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
12029
+ */
12030
+ mentioned_channel_members?: Record<string, ChannelMemberPartialResponse>;
11995
12031
  moderation?: ModerationV2Response;
11996
12032
  /**
11997
12033
  * User response object
@@ -13433,7 +13469,10 @@ export interface PollResponseData {
13433
13469
  name: string;
13434
13470
  updated_at: Date;
13435
13471
  vote_count: number;
13436
- voting_visibility: string;
13472
+ /**
13473
+ * Voting visibility of the poll
13474
+ */
13475
+ voting_visibility: 'anonymous' | 'public';
13437
13476
  latest_answers: Array<PollVoteResponseData>;
13438
13477
  options: Array<PollOptionResponseData>;
13439
13478
  own_votes: Array<PollVoteResponseData>;
@@ -14564,10 +14603,6 @@ export interface QueryLabelResultsResponse {
14564
14603
  }
14565
14604
  export interface QueryMembersPayload {
14566
14605
  type: string;
14567
- /**
14568
- * Filter conditions to apply to the query
14569
- */
14570
- filter_conditions: Record<string, any>;
14571
14606
  id?: string;
14572
14607
  limit?: number;
14573
14608
  offset?: number;
@@ -14577,6 +14612,10 @@ export interface QueryMembersPayload {
14577
14612
  * Array of sort parameters
14578
14613
  */
14579
14614
  sort?: Array<SortParamRequest>;
14615
+ /**
14616
+ * Filter conditions to apply to the query
14617
+ */
14618
+ filter_conditions?: Record<string, any>;
14580
14619
  /**
14581
14620
  * User request object
14582
14621
  */
@@ -15696,6 +15735,7 @@ export interface ReminderCreatedEvent {
15696
15735
  */
15697
15736
  user_id: string;
15698
15737
  custom: Record<string, any>;
15738
+ reminder: ReminderResponseData;
15699
15739
  /**
15700
15740
  * The type of event: "reminder.created" in this case
15701
15741
  */
@@ -15705,7 +15745,6 @@ export interface ReminderCreatedEvent {
15705
15745
  */
15706
15746
  parent_id?: string;
15707
15747
  received_at?: Date;
15708
- reminder?: ReminderResponseData;
15709
15748
  }
15710
15749
  export interface ReminderDeletedEvent {
15711
15750
  /**
@@ -15725,6 +15764,7 @@ export interface ReminderDeletedEvent {
15725
15764
  */
15726
15765
  user_id: string;
15727
15766
  custom: Record<string, any>;
15767
+ reminder: ReminderResponseData;
15728
15768
  /**
15729
15769
  * The type of event: "reminder.deleted" in this case
15730
15770
  */
@@ -15734,7 +15774,6 @@ export interface ReminderDeletedEvent {
15734
15774
  */
15735
15775
  parent_id?: string;
15736
15776
  received_at?: Date;
15737
- reminder?: ReminderResponseData;
15738
15777
  }
15739
15778
  export interface ReminderNotificationEvent {
15740
15779
  /**
@@ -15754,13 +15793,13 @@ export interface ReminderNotificationEvent {
15754
15793
  */
15755
15794
  user_id: string;
15756
15795
  custom: Record<string, any>;
15796
+ reminder: ReminderResponseData;
15757
15797
  /**
15758
15798
  * The type of event: "notification.reminder_due" in this case
15759
15799
  */
15760
15800
  type: string;
15761
15801
  parent_id?: string;
15762
15802
  received_at?: Date;
15763
- reminder?: ReminderResponseData;
15764
15803
  }
15765
15804
  export interface ReminderResponseData {
15766
15805
  channel_cid: string;
@@ -15800,6 +15839,7 @@ export interface ReminderUpdatedEvent {
15800
15839
  */
15801
15840
  user_id: string;
15802
15841
  custom: Record<string, any>;
15842
+ reminder: ReminderResponseData;
15803
15843
  /**
15804
15844
  * The type of event: "reminder.updated" in this case
15805
15845
  */
@@ -15809,7 +15849,6 @@ export interface ReminderUpdatedEvent {
15809
15849
  */
15810
15850
  parent_id?: string;
15811
15851
  received_at?: Date;
15812
- reminder?: ReminderResponseData;
15813
15852
  }
15814
15853
  export interface RemoveUserGroupMembersRequest {
15815
15854
  /**
@@ -16759,6 +16798,7 @@ export interface SearchResultMessage {
16759
16798
  i18n?: Record<string, string>;
16760
16799
  image_labels?: Record<string, Array<string>>;
16761
16800
  member?: ChannelMemberPartialResponse;
16801
+ mentioned_channel_members?: Record<string, ChannelMemberPartialResponse>;
16762
16802
  moderation?: ModerationV2Response;
16763
16803
  /**
16764
16804
  * User response object
@@ -18082,7 +18122,8 @@ export interface UnbanActionRequestPayload {
18082
18122
  }
18083
18123
  export interface UnbanRequest {
18084
18124
  /**
18085
- * ID of the user performing the unban
18125
+ * @deprecated
18126
+ * ID of the user performing the unban Deprecated: not used by the unban flow
18086
18127
  */
18087
18128
  unbanned_by_id?: string;
18088
18129
  /**
@@ -18479,6 +18520,7 @@ export interface UpdateAppRequest {
18479
18520
  guest_user_creation_disabled?: boolean;
18480
18521
  image_moderation_enabled?: boolean;
18481
18522
  max_aggregated_activities_length?: number;
18523
+ member_custom_on_mentioned_users_enabled?: boolean;
18482
18524
  member_custom_on_messages_enabled?: boolean;
18483
18525
  migrate_permissions_to_v2?: boolean;
18484
18526
  moderation_analytics_enabled?: boolean;
@@ -19067,6 +19109,7 @@ export interface UpdateExternalStorageResponse {
19067
19109
  type: 's3' | 'gcs' | 'abs';
19068
19110
  }
19069
19111
  export interface UpdateFeedGroupRequest {
19112
+ default_follower_role?: string;
19070
19113
  default_visibility?: 'public' | 'visible' | 'followers' | 'members' | 'private';
19071
19114
  /**
19072
19115
  * Configuration for activity processors
@@ -19200,6 +19243,9 @@ export interface UpdateFollowRequest {
19200
19243
  * If true, enriches the follow's source_feed and target_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.
19201
19244
  */
19202
19245
  enrich_own_fields?: boolean;
19246
+ /**
19247
+ * Optional role for the follower in the follow relationship. Server-side only, and one of 'feed_follower' (the default) or 'feed_member_viewer'.
19248
+ */
19203
19249
  follower_role?: string;
19204
19250
  /**
19205
19251
  * Push preference for the follow relationship
@@ -268,6 +268,6 @@ export declare class VideoApi {
268
268
  queryAggregateCallStats(request?: QueryAggregateCallStatsRequest): Promise<StreamResponse<QueryAggregateCallStatsResponse>>;
269
269
  getDailyDigest(request?: {
270
270
  date?: string;
271
- app_id?: string;
271
+ target_app_id?: string;
272
272
  }): Promise<StreamResponse<GetDailyDigestResponse>>;
273
273
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stream-io/node-sdk",
3
- "version": "0.8.3",
3
+ "version": "0.8.4",
4
4
  "description": "",
5
5
  "exports": {
6
6
  ".": {
@@ -17,6 +17,7 @@ import {
17
17
  CreatePredefinedFilterRequest,
18
18
  CreatePredefinedFilterResponse,
19
19
  CreateReminderRequest,
20
+ CreateReminderResponse,
20
21
  CreateSegmentRequest,
21
22
  CreateSegmentResponse,
22
23
  DeleteCampaignResponse,
@@ -94,7 +95,6 @@ import {
94
95
  QueryTeamUsageStatsResponse,
95
96
  QueryThreadsRequest,
96
97
  QueryThreadsResponse,
97
- ReminderResponseData,
98
98
  Response,
99
99
  SearchPayload,
100
100
  SearchResponse,
@@ -2028,7 +2028,7 @@ export class ChatApi {
2028
2028
 
2029
2029
  async createReminder(
2030
2030
  request: CreateReminderRequest & { message_id: string },
2031
- ): Promise<StreamResponse<ReminderResponseData>> {
2031
+ ): Promise<StreamResponse<CreateReminderResponse>> {
2032
2032
  const pathParams = {
2033
2033
  message_id: request?.message_id,
2034
2034
  };
@@ -2039,7 +2039,7 @@ export class ChatApi {
2039
2039
  };
2040
2040
 
2041
2041
  const response = await this.apiClient.sendRequest<
2042
- StreamResponse<ReminderResponseData>
2042
+ StreamResponse<CreateReminderResponse>
2043
2043
  >(
2044
2044
  'POST',
2045
2045
  '/api/v2/chat/messages/{message_id}/reminders',
@@ -2049,7 +2049,7 @@ export class ChatApi {
2049
2049
  'application/json',
2050
2050
  );
2051
2051
 
2052
- decoders['ReminderResponseData']?.(response.body);
2052
+ decoders['CreateReminderResponse']?.(response.body);
2053
2053
 
2054
2054
  return { ...response.body, metadata: response.metadata };
2055
2055
  }
@@ -156,6 +156,8 @@ export class CommonApi {
156
156
  image_moderation_enabled: request?.image_moderation_enabled,
157
157
  max_aggregated_activities_length:
158
158
  request?.max_aggregated_activities_length,
159
+ member_custom_on_mentioned_users_enabled:
160
+ request?.member_custom_on_mentioned_users_enabled,
159
161
  member_custom_on_messages_enabled:
160
162
  request?.member_custom_on_messages_enabled,
161
163
  migrate_permissions_to_v2: request?.migrate_permissions_to_v2,
@@ -1715,6 +1715,7 @@ export class FeedsApi {
1715
1715
  ): Promise<StreamResponse<CreateFeedGroupResponse>> {
1716
1716
  const body = {
1717
1717
  id: request?.id,
1718
+ default_follower_role: request?.default_follower_role,
1718
1719
  default_visibility: request?.default_visibility,
1719
1720
  activity_processors: request?.activity_processors,
1720
1721
  activity_selectors: request?.activity_selectors,
@@ -2275,6 +2276,7 @@ export class FeedsApi {
2275
2276
  id: request?.id,
2276
2277
  };
2277
2278
  const body = {
2279
+ default_follower_role: request?.default_follower_role,
2278
2280
  default_visibility: request?.default_visibility,
2279
2281
  activity_processors: request?.activity_processors,
2280
2282
  activity_selectors: request?.activity_selectors,
@@ -2310,6 +2312,7 @@ export class FeedsApi {
2310
2312
  id: request?.id,
2311
2313
  };
2312
2314
  const body = {
2315
+ default_follower_role: request?.default_follower_role,
2313
2316
  default_visibility: request?.default_visibility,
2314
2317
  activity_processors: request?.activity_processors,
2315
2318
  activity_selectors: request?.activity_selectors,
@@ -2521,6 +2524,7 @@ export class FeedsApi {
2521
2524
  ): Promise<StreamResponse<CreateFeedsBatchResponse>> {
2522
2525
  const body = {
2523
2526
  feeds: request?.feeds,
2527
+ create_users: request?.create_users,
2524
2528
  enrich_own_fields: request?.enrich_own_fields,
2525
2529
  };
2526
2530
 
@@ -2150,6 +2150,13 @@ decoders['CreatePredefinedFilterResponse'] = (input?: {
2150
2150
  return decode(typeMappings, input);
2151
2151
  };
2152
2152
 
2153
+ decoders['CreateReminderResponse'] = (input?: { [key: string]: any }) => {
2154
+ const typeMappings: TypeMapping = {
2155
+ reminder: { type: 'ReminderResponseData', isSingle: true },
2156
+ };
2157
+ return decode(typeMappings, input);
2158
+ };
2159
+
2153
2160
  decoders['CreateRoleResponse'] = (input?: { [key: string]: any }) => {
2154
2161
  const typeMappings: TypeMapping = {
2155
2162
  role: { type: 'Role', isSingle: true },
@@ -4844,9 +4851,9 @@ decoders['ReminderCreatedEvent'] = (input?: { [key: string]: any }) => {
4844
4851
  const typeMappings: TypeMapping = {
4845
4852
  created_at: { type: 'DatetimeType', isSingle: true },
4846
4853
 
4847
- received_at: { type: 'DatetimeType', isSingle: true },
4848
-
4849
4854
  reminder: { type: 'ReminderResponseData', isSingle: true },
4855
+
4856
+ received_at: { type: 'DatetimeType', isSingle: true },
4850
4857
  };
4851
4858
  return decode(typeMappings, input);
4852
4859
  };
@@ -4855,9 +4862,9 @@ decoders['ReminderDeletedEvent'] = (input?: { [key: string]: any }) => {
4855
4862
  const typeMappings: TypeMapping = {
4856
4863
  created_at: { type: 'DatetimeType', isSingle: true },
4857
4864
 
4858
- received_at: { type: 'DatetimeType', isSingle: true },
4859
-
4860
4865
  reminder: { type: 'ReminderResponseData', isSingle: true },
4866
+
4867
+ received_at: { type: 'DatetimeType', isSingle: true },
4861
4868
  };
4862
4869
  return decode(typeMappings, input);
4863
4870
  };
@@ -4866,9 +4873,9 @@ decoders['ReminderNotificationEvent'] = (input?: { [key: string]: any }) => {
4866
4873
  const typeMappings: TypeMapping = {
4867
4874
  created_at: { type: 'DatetimeType', isSingle: true },
4868
4875
 
4869
- received_at: { type: 'DatetimeType', isSingle: true },
4870
-
4871
4876
  reminder: { type: 'ReminderResponseData', isSingle: true },
4877
+
4878
+ received_at: { type: 'DatetimeType', isSingle: true },
4872
4879
  };
4873
4880
  return decode(typeMappings, input);
4874
4881
  };
@@ -4894,9 +4901,9 @@ decoders['ReminderUpdatedEvent'] = (input?: { [key: string]: any }) => {
4894
4901
  const typeMappings: TypeMapping = {
4895
4902
  created_at: { type: 'DatetimeType', isSingle: true },
4896
4903
 
4897
- received_at: { type: 'DatetimeType', isSingle: true },
4898
-
4899
4904
  reminder: { type: 'ReminderResponseData', isSingle: true },
4905
+
4906
+ received_at: { type: 'DatetimeType', isSingle: true },
4900
4907
  };
4901
4908
  return decode(typeMappings, input);
4902
4909
  };