@@ -152,6 +152,7 @@ import type {
152152 PushProviderID ,
153153 PushProviderListResponse ,
154154 PushProviderUpsertResponse ,
155+ QueryChannelsAPIResponse ,
155156 QueryFutureChannelBansOptions ,
156157 QueryMessageHistoryFilters ,
157158 QueryMessageHistoryOptions ,
@@ -240,14 +241,14 @@ import type { MessageComposer } from './messageComposer';
240241import type { AbstractOfflineDB } from './offline-support' ;
241242import { getPendingTaskChannelData } from './offline-support/util' ;
242243import type {
243- PushPreferenceInput ,
244- TranslateMessageRequest ,
245- UpdateMessageRequest ,
244+ GetApplicationResponse as Gen_GetApplicationResponse ,
245+ PushPreferenceInput as Gen_PushPreferenceInput ,
246+ TranslateMessageRequest as Gen_TranslateMessageRequest ,
247+ UpdateMessageRequest as Gen_UpdateMessageRequest ,
246248 WSEvent ,
247249} from './gen/models' ;
248250import { ChatApi } from './gen-imports' ;
249251import type { StreamResponse } from './types' ;
250- import type { GetApplicationResponse } from './gen/models' ;
251252
252253function isString ( value : unknown ) : value is string {
253254 return typeof value === 'string' || value instanceof String ;
@@ -296,7 +297,7 @@ export class StreamChat {
296297 */
297298 uploadManager : UploadManager ;
298299 _user ?: ClientUser ;
299- appSettingsPromise ?: Promise < StreamResponse < GetApplicationResponse > > ;
300+ appSettingsPromise ?: Promise < StreamResponse < Gen_GetApplicationResponse > > ;
300301 activeChannels : {
301302 [ key : string ] : Channel ;
302303 } ;
@@ -2054,7 +2055,7 @@ export class StreamChat {
20542055 *
20552056 * @return {<UpsertPushPreferencesResponse> }
20562057 */
2057- async setPushPreferences ( preferences : PushPreferenceInput [ ] ) {
2058+ async setPushPreferences ( preferences : Gen_PushPreferenceInput [ ] ) {
20582059 return await this . chatApi . updatePushNotificationPreferences ( {
20592060 preferences,
20602061 } ) ;
@@ -2814,7 +2815,7 @@ export class StreamChat {
28142815 */
28152816 async translateMessage (
28162817 messageId : string ,
2817- language : TranslateMessageRequest [ 'language' ] ,
2818+ language : Gen_TranslateMessageRequest [ 'language' ] ,
28182819 ) {
28192820 return await this . chatApi . translateMessage ( {
28202821 id : messageId ,
@@ -2942,7 +2943,7 @@ export class StreamChat {
29422943 * @return {{ message: LocalMessage | MessageResponse } } Response that includes the message
29432944 */
29442945 async updateMessage (
2945- message : UpdateMessageRequest [ 'message' ] & { cid ?: string } ,
2946+ message : Gen_UpdateMessageRequest [ 'message' ] & { cid ?: string ; status ?: string } ,
29462947 options ?: UpdateMessageOptions ,
29472948 ) {
29482949 if ( ! message . id ) {
@@ -2973,7 +2974,7 @@ export class StreamChat {
29732974 }
29742975
29752976 async _updateMessage (
2976- message : UpdateMessageRequest [ 'message' ] ,
2977+ message : Gen_UpdateMessageRequest [ 'message' ] ,
29772978 options ?: UpdateMessageOptions ,
29782979 ) {
29792980 if ( ! message . id ) {
0 commit comments