@stream-io/node-sdk 0.8.2 → 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
  }
@@ -415,6 +415,14 @@ export interface ActivityProcessorConfig {
415
415
  * Type of activity processor (required)
416
416
  */
417
417
  type: string;
418
+ /**
419
+ * Minimum number of characters the activity text must have before this processor runs. 0 (the default) disables the check. Only applies to text_interest_tags.
420
+ */
421
+ min_text_length?: number;
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. 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
+ */
425
+ min_word_count?: number;
418
426
  }
419
427
  export interface ActivityReactionAddedEvent {
420
428
  /**
@@ -1412,6 +1420,7 @@ export interface AppResponseFields {
1412
1420
  id: number;
1413
1421
  image_moderation_enabled: boolean;
1414
1422
  max_aggregated_activities_length: number;
1423
+ member_custom_on_mentioned_users_enabled: boolean;
1415
1424
  member_custom_on_messages_enabled: boolean;
1416
1425
  moderation_audio_call_moderation_enabled: boolean;
1417
1426
  moderation_enabled: boolean;
@@ -4185,16 +4194,13 @@ export interface ChannelMemberPartialResponse {
4185
4194
  custom?: Record<string, any>;
4186
4195
  }
4187
4196
  export interface ChannelMemberRequest {
4188
- user_id: string;
4189
4197
  /**
4190
4198
  * Role of the member in the channel
4191
4199
  */
4192
4200
  channel_role?: string;
4201
+ user_id?: string;
4193
4202
  custom?: Record<string, any>;
4194
- /**
4195
- * User response object
4196
- */
4197
- user?: UserResponse;
4203
+ user?: MemberUserRequest;
4198
4204
  }
4199
4205
  export interface ChannelMemberResponse {
4200
4206
  /**
@@ -6150,6 +6156,7 @@ export interface CreateFeedGroupRequest {
6150
6156
  * Unique identifier for the feed group
6151
6157
  */
6152
6158
  id: string;
6159
+ default_follower_role?: string;
6153
6160
  /**
6154
6161
  * Default visibility for the feed group, can be 'public', 'visible', 'followers', 'members', or 'private'. Defaults to 'visible' if not provided.
6155
6162
  */
@@ -6198,6 +6205,10 @@ export interface CreateFeedsBatchRequest {
6198
6205
  * List of feeds to create
6199
6206
  */
6200
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;
6201
6212
  /**
6202
6213
  * If true, enriches the created feeds with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.
6203
6214
  */
@@ -6458,6 +6469,13 @@ export interface CreateReminderRequest {
6458
6469
  */
6459
6470
  user?: UserRequest;
6460
6471
  }
6472
+ export interface CreateReminderResponse {
6473
+ /**
6474
+ * Duration of the request in milliseconds
6475
+ */
6476
+ duration: string;
6477
+ reminder: ReminderResponseData;
6478
+ }
6461
6479
  export interface CreateRoleRequest {
6462
6480
  /**
6463
6481
  * Role name
@@ -7850,6 +7868,7 @@ export interface FeedGroup {
7850
7868
  aggregation_version: number;
7851
7869
  app_pk: number;
7852
7870
  created_at: Date;
7871
+ default_follower_role: string;
7853
7872
  default_visibility: string;
7854
7873
  group_id: string;
7855
7874
  updated_at: Date;
@@ -7912,6 +7931,10 @@ export interface FeedGroupResponse {
7912
7931
  * When the feed group was last updated
7913
7932
  */
7914
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;
7915
7938
  /**
7916
7939
  * Default visibility for activities. One of: public, visible, followers, members, private
7917
7940
  */
@@ -8926,7 +8949,7 @@ export interface FollowResponse {
8926
8949
  */
8927
8950
  created_at: Date;
8928
8951
  /**
8929
- * 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'.
8930
8953
  */
8931
8954
  follower_role: string;
8932
8955
  /**
@@ -9538,6 +9561,7 @@ export interface GetOrCreateCallResponse {
9538
9561
  call: CallResponse;
9539
9562
  }
9540
9563
  export interface GetOrCreateFeedGroupRequest {
9564
+ default_follower_role?: string;
9541
9565
  /**
9542
9566
  * Default visibility for the feed group, can be 'public', 'visible', 'followers', 'members', or 'private'. Defaults to 'visible' if not provided.
9543
9567
  */
@@ -11049,6 +11073,18 @@ export interface MemberUpdatedEvent {
11049
11073
  channel_custom?: Record<string, any>;
11050
11074
  user?: UserResponseCommonFields;
11051
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
+ }
11052
11088
  export interface MembersResponse {
11053
11089
  /**
11054
11090
  * Duration of the request in milliseconds
@@ -11703,6 +11739,10 @@ export interface MessageResponse {
11703
11739
  */
11704
11740
  image_labels?: Record<string, Array<string>>;
11705
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>;
11706
11746
  moderation?: ModerationV2Response;
11707
11747
  /**
11708
11748
  * User response object
@@ -11984,6 +12024,10 @@ export interface MessageWithChannelResponse {
11984
12024
  */
11985
12025
  image_labels?: Record<string, Array<string>>;
11986
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>;
11987
12031
  moderation?: ModerationV2Response;
11988
12032
  /**
11989
12033
  * User response object
@@ -13425,7 +13469,10 @@ export interface PollResponseData {
13425
13469
  name: string;
13426
13470
  updated_at: Date;
13427
13471
  vote_count: number;
13428
- voting_visibility: string;
13472
+ /**
13473
+ * Voting visibility of the poll
13474
+ */
13475
+ voting_visibility: 'anonymous' | 'public';
13429
13476
  latest_answers: Array<PollVoteResponseData>;
13430
13477
  options: Array<PollOptionResponseData>;
13431
13478
  own_votes: Array<PollVoteResponseData>;
@@ -14556,10 +14603,6 @@ export interface QueryLabelResultsResponse {
14556
14603
  }
14557
14604
  export interface QueryMembersPayload {
14558
14605
  type: string;
14559
- /**
14560
- * Filter conditions to apply to the query
14561
- */
14562
- filter_conditions: Record<string, any>;
14563
14606
  id?: string;
14564
14607
  limit?: number;
14565
14608
  offset?: number;
@@ -14569,6 +14612,10 @@ export interface QueryMembersPayload {
14569
14612
  * Array of sort parameters
14570
14613
  */
14571
14614
  sort?: Array<SortParamRequest>;
14615
+ /**
14616
+ * Filter conditions to apply to the query
14617
+ */
14618
+ filter_conditions?: Record<string, any>;
14572
14619
  /**
14573
14620
  * User request object
14574
14621
  */
@@ -15688,6 +15735,7 @@ export interface ReminderCreatedEvent {
15688
15735
  */
15689
15736
  user_id: string;
15690
15737
  custom: Record<string, any>;
15738
+ reminder: ReminderResponseData;
15691
15739
  /**
15692
15740
  * The type of event: "reminder.created" in this case
15693
15741
  */
@@ -15697,7 +15745,6 @@ export interface ReminderCreatedEvent {
15697
15745
  */
15698
15746
  parent_id?: string;
15699
15747
  received_at?: Date;
15700
- reminder?: ReminderResponseData;
15701
15748
  }
15702
15749
  export interface ReminderDeletedEvent {
15703
15750
  /**
@@ -15717,6 +15764,7 @@ export interface ReminderDeletedEvent {
15717
15764
  */
15718
15765
  user_id: string;
15719
15766
  custom: Record<string, any>;
15767
+ reminder: ReminderResponseData;
15720
15768
  /**
15721
15769
  * The type of event: "reminder.deleted" in this case
15722
15770
  */
@@ -15726,7 +15774,6 @@ export interface ReminderDeletedEvent {
15726
15774
  */
15727
15775
  parent_id?: string;
15728
15776
  received_at?: Date;
15729
- reminder?: ReminderResponseData;
15730
15777
  }
15731
15778
  export interface ReminderNotificationEvent {
15732
15779
  /**
@@ -15746,13 +15793,13 @@ export interface ReminderNotificationEvent {
15746
15793
  */
15747
15794
  user_id: string;
15748
15795
  custom: Record<string, any>;
15796
+ reminder: ReminderResponseData;
15749
15797
  /**
15750
15798
  * The type of event: "notification.reminder_due" in this case
15751
15799
  */
15752
15800
  type: string;
15753
15801
  parent_id?: string;
15754
15802
  received_at?: Date;
15755
- reminder?: ReminderResponseData;
15756
15803
  }
15757
15804
  export interface ReminderResponseData {
15758
15805
  channel_cid: string;
@@ -15792,6 +15839,7 @@ export interface ReminderUpdatedEvent {
15792
15839
  */
15793
15840
  user_id: string;
15794
15841
  custom: Record<string, any>;
15842
+ reminder: ReminderResponseData;
15795
15843
  /**
15796
15844
  * The type of event: "reminder.updated" in this case
15797
15845
  */
@@ -15801,7 +15849,6 @@ export interface ReminderUpdatedEvent {
15801
15849
  */
15802
15850
  parent_id?: string;
15803
15851
  received_at?: Date;
15804
- reminder?: ReminderResponseData;
15805
15852
  }
15806
15853
  export interface RemoveUserGroupMembersRequest {
15807
15854
  /**
@@ -16751,6 +16798,7 @@ export interface SearchResultMessage {
16751
16798
  i18n?: Record<string, string>;
16752
16799
  image_labels?: Record<string, Array<string>>;
16753
16800
  member?: ChannelMemberPartialResponse;
16801
+ mentioned_channel_members?: Record<string, ChannelMemberPartialResponse>;
16754
16802
  moderation?: ModerationV2Response;
16755
16803
  /**
16756
16804
  * User response object
@@ -18074,7 +18122,8 @@ export interface UnbanActionRequestPayload {
18074
18122
  }
18075
18123
  export interface UnbanRequest {
18076
18124
  /**
18077
- * ID of the user performing the unban
18125
+ * @deprecated
18126
+ * ID of the user performing the unban Deprecated: not used by the unban flow
18078
18127
  */
18079
18128
  unbanned_by_id?: string;
18080
18129
  /**
@@ -18471,6 +18520,7 @@ export interface UpdateAppRequest {
18471
18520
  guest_user_creation_disabled?: boolean;
18472
18521
  image_moderation_enabled?: boolean;
18473
18522
  max_aggregated_activities_length?: number;
18523
+ member_custom_on_mentioned_users_enabled?: boolean;
18474
18524
  member_custom_on_messages_enabled?: boolean;
18475
18525
  migrate_permissions_to_v2?: boolean;
18476
18526
  moderation_analytics_enabled?: boolean;
@@ -19059,6 +19109,7 @@ export interface UpdateExternalStorageResponse {
19059
19109
  type: 's3' | 'gcs' | 'abs';
19060
19110
  }
19061
19111
  export interface UpdateFeedGroupRequest {
19112
+ default_follower_role?: string;
19062
19113
  default_visibility?: 'public' | 'visible' | 'followers' | 'members' | 'private';
19063
19114
  /**
19064
19115
  * Configuration for activity processors
@@ -19192,6 +19243,9 @@ export interface UpdateFollowRequest {
19192
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.
19193
19244
  */
19194
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
+ */
19195
19249
  follower_role?: string;
19196
19250
  /**
19197
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.2",
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
  };