@@ -375,7 +375,7 @@ decoders.ChannelStateResponse = (input?: Record<string, any>) => {
375375
376376 hide_messages_before : { type : 'DatetimeType' , isSingle : true } ,
377377
378- pending_messages : { type : 'PendingMessage ' , isSingle : false } ,
378+ pending_messages : { type : 'PendingMessageResponse ' , isSingle : false } ,
379379
380380 read : { type : 'ReadStateResponse' , isSingle : false } ,
381381
@@ -400,7 +400,7 @@ decoders.ChannelStateResponseFields = (input?: Record<string, any>) => {
400400
401401 hide_messages_before : { type : 'DatetimeType' , isSingle : true } ,
402402
403- pending_messages : { type : 'PendingMessage ' , isSingle : false } ,
403+ pending_messages : { type : 'PendingMessageResponse ' , isSingle : false } ,
404404
405405 read : { type : 'ReadStateResponse' , isSingle : false } ,
406406
@@ -445,6 +445,8 @@ decoders.ConfigResponse = (input?: Record<string, any>) => {
445445 created_at : { type : 'DatetimeType' , isSingle : true } ,
446446
447447 updated_at : { type : 'DatetimeType' , isSingle : true } ,
448+
449+ velocity_filter_config : { type : 'VelocityFilterConfig' , isSingle : true } ,
448450 } ;
449451 return decode ( typeMappings , input ) ;
450452} ;
@@ -570,8 +572,6 @@ decoders.Flag2 = (input?: Record<string, any>) => {
570572
571573 updated_at : { type : 'DatetimeType' , isSingle : true } ,
572574
573- moderation_payload : { type : 'ModerationPayload' , isSingle : true } ,
574-
575575 user : { type : 'UserObject' , isSingle : true } ,
576576 } ;
577577 return decode ( typeMappings , input ) ;
@@ -1057,13 +1057,6 @@ decoders.MessageWithChannelResponse = (input?: Record<string, any>) => {
10571057 return decode ( typeMappings , input ) ;
10581058} ;
10591059
1060- decoders . ModerationPayload = ( input ?: Record < string , any > ) => {
1061- const typeMappings : TypeMapping = {
1062- created_at : { type : 'DatetimeType' , isSingle : true } ,
1063- } ;
1064- return decode ( typeMappings , input ) ;
1065- } ;
1066-
10671060decoders . ModerationUsageStats = ( input ?: Record < string , any > ) => {
10681061 const typeMappings : TypeMapping = {
10691062 updated_at : { type : 'DatetimeType' , isSingle : true } ,
@@ -1121,13 +1114,13 @@ decoders.OwnUser = (input?: Record<string, any>) => {
11211114 return decode ( typeMappings , input ) ;
11221115} ;
11231116
1124- decoders . PendingMessage = ( input ?: Record < string , any > ) => {
1117+ decoders . PendingMessageResponse = ( input ?: Record < string , any > ) => {
11251118 const typeMappings : TypeMapping = {
1126- channel : { type : 'Channel ' , isSingle : true } ,
1119+ channel : { type : 'ChannelResponse ' , isSingle : true } ,
11271120
1128- message : { type : 'Message ' , isSingle : true } ,
1121+ message : { type : 'MessageResponse ' , isSingle : true } ,
11291122
1130- user : { type : 'UserObject ' , isSingle : true } ,
1123+ user : { type : 'UserResponse ' , isSingle : true } ,
11311124 } ;
11321125 return decode ( typeMappings , input ) ;
11331126} ;
@@ -1450,8 +1443,6 @@ decoders.ReviewQueueItem = (input?: Record<string, any>) => {
14501443 feeds_v2_reaction : { type : 'Reaction' , isSingle : true } ,
14511444
14521445 message : { type : 'Message' , isSingle : true } ,
1453-
1454- moderation_payload : { type : 'ModerationPayload' , isSingle : true } ,
14551446 } ;
14561447 return decode ( typeMappings , input ) ;
14571448} ;
@@ -1606,7 +1597,7 @@ decoders.ThreadStateResponse = (input?: Record<string, any>) => {
16061597
16071598 updated_at : { type : 'DatetimeType' , isSingle : true } ,
16081599
1609- latest_replies : { type : 'Message ' , isSingle : false } ,
1600+ latest_replies : { type : 'MessageResponse ' , isSingle : false } ,
16101601
16111602 deleted_at : { type : 'DatetimeType' , isSingle : true } ,
16121603
@@ -1629,7 +1620,7 @@ decoders.TruncateChannelResponse = (input?: Record<string, any>) => {
16291620 const typeMappings : TypeMapping = {
16301621 channel : { type : 'ChannelResponse' , isSingle : true } ,
16311622
1632- message : { type : 'Message ' , isSingle : true } ,
1623+ message : { type : 'MessageResponse ' , isSingle : true } ,
16331624 } ;
16341625 return decode ( typeMappings , input ) ;
16351626} ;
@@ -1725,6 +1716,13 @@ decoders.UpdateCommandResponse = (input?: Record<string, any>) => {
17251716 return decode ( typeMappings , input ) ;
17261717} ;
17271718
1719+ decoders . UpdateMemberPartialResponse = ( input ?: Record < string , any > ) => {
1720+ const typeMappings : TypeMapping = {
1721+ channel_member : { type : 'ChannelMemberResponse' , isSingle : true } ,
1722+ } ;
1723+ return decode ( typeMappings , input ) ;
1724+ } ;
1725+
17281726decoders . UpdateMessagePartialResponse = ( input ?: Record < string , any > ) => {
17291727 const typeMappings : TypeMapping = {
17301728 message : { type : 'Message' , isSingle : true } ,
@@ -1860,6 +1858,20 @@ decoders.UserResponse = (input?: Record<string, any>) => {
18601858 return decode ( typeMappings , input ) ;
18611859} ;
18621860
1861+ decoders . VelocityFilterConfig = ( input ?: Record < string , any > ) => {
1862+ const typeMappings : TypeMapping = {
1863+ rule : { type : 'VelocityFilterConfigRule' , isSingle : false } ,
1864+ } ;
1865+ return decode ( typeMappings , input ) ;
1866+ } ;
1867+
1868+ decoders . VelocityFilterConfigRule = ( input ?: Record < string , any > ) => {
1869+ const typeMappings : TypeMapping = {
1870+ timeout : { type : 'DatetimeType' , isSingle : true } ,
1871+ } ;
1872+ return decode ( typeMappings , input ) ;
1873+ } ;
1874+
18631875decoders . WSEvent = ( input ?: Record < string , any > ) => {
18641876 const typeMappings : TypeMapping = {
18651877 created_at : { type : 'DatetimeType' , isSingle : true } ,
0 commit comments