@@ -1239,29 +1239,6 @@ decoders.ChannelMember = (input?: Record<string, any>) => {
12391239 return decode ( typeMappings , input ) ;
12401240} ;
12411241
1242- decoders . ChannelMemberResponse = ( input ?: Record < string , any > ) => {
1243- const typeMappings : TypeMapping = {
1244- created_at : { type : 'DatetimeType' , isSingle : true } ,
1245-
1246- updated_at : { type : 'DatetimeType' , isSingle : true } ,
1247-
1248- archived_at : { type : 'DatetimeType' , isSingle : true } ,
1249-
1250- ban_expires : { type : 'DatetimeType' , isSingle : true } ,
1251-
1252- deleted_at : { type : 'DatetimeType' , isSingle : true } ,
1253-
1254- invite_accepted_at : { type : 'DatetimeType' , isSingle : true } ,
1255-
1256- invite_rejected_at : { type : 'DatetimeType' , isSingle : true } ,
1257-
1258- pinned_at : { type : 'DatetimeType' , isSingle : true } ,
1259-
1260- user : { type : 'UserResponse' , isSingle : true } ,
1261- } ;
1262- return decode ( typeMappings , input ) ;
1263- } ;
1264-
12651242decoders . ChannelMute = ( input ?: Record < string , any > ) => {
12661243 const typeMappings : TypeMapping = {
12671244 created_at : { type : 'DatetimeType' , isSingle : true } ,
@@ -1476,6 +1453,8 @@ decoders.CommentAddedEvent = (input?: Record<string, any>) => {
14761453 const typeMappings : TypeMapping = {
14771454 created_at : { type : 'DatetimeType' , isSingle : true } ,
14781455
1456+ activity : { type : 'ActivityResponse' , isSingle : true } ,
1457+
14791458 comment : { type : 'CommentResponse' , isSingle : true } ,
14801459
14811460 received_at : { type : 'DatetimeType' , isSingle : true } ,
@@ -1502,6 +1481,8 @@ decoders.CommentReactionAddedEvent = (input?: Record<string, any>) => {
15021481 const typeMappings : TypeMapping = {
15031482 created_at : { type : 'DatetimeType' , isSingle : true } ,
15041483
1484+ activity : { type : 'ActivityResponse' , isSingle : true } ,
1485+
15051486 comment : { type : 'CommentResponse' , isSingle : true } ,
15061487
15071488 reaction : { type : 'FeedsReactionResponse' , isSingle : true } ,
@@ -1530,6 +1511,8 @@ decoders.CommentReactionUpdatedEvent = (input?: Record<string, any>) => {
15301511 const typeMappings : TypeMapping = {
15311512 created_at : { type : 'DatetimeType' , isSingle : true } ,
15321513
1514+ activity : { type : 'ActivityResponse' , isSingle : true } ,
1515+
15331516 comment : { type : 'CommentResponse' , isSingle : true } ,
15341517
15351518 reaction : { type : 'FeedsReactionResponse' , isSingle : true } ,
@@ -2277,6 +2260,13 @@ decoders.GetMessageResponse = (input?: Record<string, any>) => {
22772260 return decode ( typeMappings , input ) ;
22782261} ;
22792262
2263+ decoders . GetModerationRuleResponse = ( input ?: Record < string , any > ) => {
2264+ const typeMappings : TypeMapping = {
2265+ rule : { type : 'ModerationRuleV2Response' , isSingle : true } ,
2266+ } ;
2267+ return decode ( typeMappings , input ) ;
2268+ } ;
2269+
22802270decoders . GetOrCreateCallResponse = ( input ?: Record < string , any > ) => {
22812271 const typeMappings : TypeMapping = {
22822272 members : { type : 'MemberResponse' , isSingle : false } ,
@@ -2592,6 +2582,8 @@ decoders.Message = (input?: Record<string, any>) => {
25922582
25932583 thread_participants : { type : 'User' , isSingle : false } ,
25942584
2585+ member : { type : 'ChannelMember' , isSingle : true } ,
2586+
25952587 pinned_by : { type : 'User' , isSingle : true } ,
25962588
25972589 poll : { type : 'Poll' , isSingle : true } ,
@@ -2871,6 +2863,10 @@ decoders.ModerationCustomActionEvent = (input?: Record<string, any>) => {
28712863
28722864decoders . ModerationFlagResponse = ( input ?: Record < string , any > ) => {
28732865 const typeMappings : TypeMapping = {
2866+ created_at : { type : 'DatetimeType' , isSingle : true } ,
2867+
2868+ updated_at : { type : 'DatetimeType' , isSingle : true } ,
2869+
28742870 review_queue_item : { type : 'ReviewQueueItemResponse' , isSingle : true } ,
28752871
28762872 user : { type : 'UserResponse' , isSingle : true } ,
@@ -2898,6 +2894,15 @@ decoders.ModerationMarkReviewedEvent = (input?: Record<string, any>) => {
28982894 return decode ( typeMappings , input ) ;
28992895} ;
29002896
2897+ decoders . ModerationRuleV2Response = ( input ?: Record < string , any > ) => {
2898+ const typeMappings : TypeMapping = {
2899+ created_at : { type : 'DatetimeType' , isSingle : true } ,
2900+
2901+ updated_at : { type : 'DatetimeType' , isSingle : true } ,
2902+ } ;
2903+ return decode ( typeMappings , input ) ;
2904+ } ;
2905+
29012906decoders . MuteChannelResponse = ( input ?: Record < string , any > ) => {
29022907 const typeMappings : TypeMapping = {
29032908 channel_mutes : { type : 'ChannelMute' , isSingle : false } ,
@@ -3376,6 +3381,13 @@ decoders.QueryModerationLogsResponse = (input?: Record<string, any>) => {
33763381 return decode ( typeMappings , input ) ;
33773382} ;
33783383
3384+ decoders . QueryModerationRulesResponse = ( input ?: Record < string , any > ) => {
3385+ const typeMappings : TypeMapping = {
3386+ rules : { type : 'ModerationRuleV2Response' , isSingle : false } ,
3387+ } ;
3388+ return decode ( typeMappings , input ) ;
3389+ } ;
3390+
33793391decoders . QueryPollsResponse = ( input ?: Record < string , any > ) => {
33803392 const typeMappings : TypeMapping = {
33813393 polls : { type : 'PollResponseData' , isSingle : false } ,
@@ -4066,8 +4078,6 @@ decoders.UpdateCallTypeResponse = (input?: Record<string, any>) => {
40664078
40674079decoders . UpdateChannelPartialResponse = ( input ?: Record < string , any > ) => {
40684080 const typeMappings : TypeMapping = {
4069- members : { type : 'ChannelMemberResponse' , isSingle : false } ,
4070-
40714081 channel : { type : 'ChannelResponse' , isSingle : true } ,
40724082 } ;
40734083 return decode ( typeMappings , input ) ;
@@ -4144,13 +4154,6 @@ decoders.UpdateFollowResponse = (input?: Record<string, any>) => {
41444154 return decode ( typeMappings , input ) ;
41454155} ;
41464156
4147- decoders . UpdateMemberPartialResponse = ( input ?: Record < string , any > ) => {
4148- const typeMappings : TypeMapping = {
4149- channel_member : { type : 'ChannelMemberResponse' , isSingle : true } ,
4150- } ;
4151- return decode ( typeMappings , input ) ;
4152- } ;
4153-
41544157decoders . UpdateMembershipLevelResponse = ( input ?: Record < string , any > ) => {
41554158 const typeMappings : TypeMapping = {
41564159 membership_level : { type : 'MembershipLevelResponse' , isSingle : true } ,
@@ -4216,6 +4219,13 @@ decoders.UpsertConfigResponse = (input?: Record<string, any>) => {
42164219 return decode ( typeMappings , input ) ;
42174220} ;
42184221
4222+ decoders . UpsertModerationRuleResponse = ( input ?: Record < string , any > ) => {
4223+ const typeMappings : TypeMapping = {
4224+ rule : { type : 'ModerationRuleV2Response' , isSingle : true } ,
4225+ } ;
4226+ return decode ( typeMappings , input ) ;
4227+ } ;
4228+
42194229decoders . UpsertModerationTemplateResponse = ( input ?: Record < string , any > ) => {
42204230 const typeMappings : TypeMapping = {
42214231 created_at : { type : 'DatetimeType' , isSingle : true } ,
0 commit comments