mezon-js 2.8.35 → 2.8.37

Sign up to get free protection for your applications and to get access to all the features.
package/api.gen.ts CHANGED
@@ -359,6 +359,34 @@ export interface ApiAddRoleChannelDescRequest {
359
359
  role_ids?: Array<string>;
360
360
  }
361
361
 
362
+ /** App information. */
363
+ export interface ApiApp {
364
+ //
365
+ applogo?: string;
366
+ //
367
+ appname?: string;
368
+ //
369
+ creator_id?: string;
370
+ //The UNIX time when the app was disabled.
371
+ disable_time?: string;
372
+ //
373
+ is_shadow?: boolean;
374
+ //
375
+ role?: number;
376
+ //
377
+ token?: string;
378
+ }
379
+
380
+ /** A list of apps. */
381
+ export interface ApiAppList {
382
+ //A list of apps.
383
+ apps?: Array<ApiApp>;
384
+ //Next cursor.
385
+ next_cursor?: string;
386
+ //Approximate total number of apps.
387
+ total_count?: number;
388
+ }
389
+
362
390
  /** */
363
391
  export interface ApiCategoryDesc {
364
392
  //
@@ -5020,39 +5048,6 @@ export class MezonApi {
5020
5048
  ]);
5021
5049
  }
5022
5050
 
5023
- /** notification selected */
5024
- getNotificationChannelSetting(bearerToken: string,
5025
- channelId?:string,
5026
- options: any = {}): Promise<ApiNotificationUserChannel> {
5027
-
5028
- const urlPath = "/v2/notificationchannel/get";
5029
- const queryParams = new Map<string, any>();
5030
- queryParams.set("channel_id", channelId);
5031
-
5032
- let bodyJson : string = "";
5033
-
5034
- const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
5035
- const fetchOptions = buildFetchOptions("GET", options, bodyJson);
5036
- if (bearerToken) {
5037
- fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
5038
- }
5039
-
5040
- return Promise.race([
5041
- fetch(fullUrl, fetchOptions).then((response) => {
5042
- if (response.status == 204) {
5043
- return response;
5044
- } else if (response.status >= 200 && response.status < 300) {
5045
- return response.json();
5046
- } else {
5047
- throw response;
5048
- }
5049
- }),
5050
- new Promise((_, reject) =>
5051
- setTimeout(reject, this.timeoutMs, "Request timed out.")
5052
- ),
5053
- ]);
5054
- }
5055
-
5056
5051
  /** set notification user channel. */
5057
5052
  setNotificationChannelSetting(bearerToken: string,
5058
5053
  body:ApiSetNotificationRequest,
@@ -5194,39 +5189,6 @@ export class MezonApi {
5194
5189
  ]);
5195
5190
  }
5196
5191
 
5197
- /** notification selected */
5198
- getNotificationCategorySetting(bearerToken: string,
5199
- categoryId?:string,
5200
- options: any = {}): Promise<ApiNotificationUserChannel> {
5201
-
5202
- const urlPath = "/v2/notificationusercategory/get";
5203
- const queryParams = new Map<string, any>();
5204
- queryParams.set("category_id", categoryId);
5205
-
5206
- let bodyJson : string = "";
5207
-
5208
- const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
5209
- const fetchOptions = buildFetchOptions("GET", options, bodyJson);
5210
- if (bearerToken) {
5211
- fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
5212
- }
5213
-
5214
- return Promise.race([
5215
- fetch(fullUrl, fetchOptions).then((response) => {
5216
- if (response.status == 204) {
5217
- return response;
5218
- } else if (response.status >= 200 && response.status < 300) {
5219
- return response.json();
5220
- } else {
5221
- throw response;
5222
- }
5223
- }),
5224
- new Promise((_, reject) =>
5225
- setTimeout(reject, this.timeoutMs, "Request timed out.")
5226
- ),
5227
- ]);
5228
- }
5229
-
5230
5192
  /** */
5231
5193
  deleteNotificationChannel(bearerToken: string,
5232
5194
  channelId?:string,
@@ -5260,72 +5222,38 @@ export class MezonApi {
5260
5222
  ]);
5261
5223
  }
5262
5224
 
5263
- /** notification selected */
5264
- getNotificationClanSetting(bearerToken: string,
5265
- clanId?:string,
5266
- options: any = {}): Promise<ApiNotificationSetting> {
5267
-
5268
- const urlPath = "/v2/notificationuserclan/get";
5269
- const queryParams = new Map<string, any>();
5270
- queryParams.set("clan_id", clanId);
5271
-
5272
- let bodyJson : string = "";
5273
-
5274
- const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
5275
- const fetchOptions = buildFetchOptions("GET", options, bodyJson);
5276
- if (bearerToken) {
5277
- fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
5278
- }
5279
-
5280
- return Promise.race([
5281
- fetch(fullUrl, fetchOptions).then((response) => {
5282
- if (response.status == 204) {
5283
- return response;
5284
- } else if (response.status >= 200 && response.status < 300) {
5285
- return response.json();
5286
- } else {
5287
- throw response;
5288
- }
5289
- }),
5290
- new Promise((_, reject) =>
5291
- setTimeout(reject, this.timeoutMs, "Request timed out.")
5292
- ),
5293
- ]);
5294
- }
5295
-
5296
5225
  /** notification category, channel selected */
5297
5226
  getChannelCategoryNotiSettingsList(bearerToken: string,
5298
- clanId?:string,
5299
- options: any = {}): Promise<ApiNotificationChannelCategoySettingsList> {
5300
-
5301
- const urlPath = "/v2/notifichannelcategory/get";
5302
- const queryParams = new Map<string, any>();
5303
- queryParams.set("clan_id", clanId);
5304
-
5305
- let bodyJson : string = "";
5306
-
5307
- const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
5308
- const fetchOptions = buildFetchOptions("GET", options, bodyJson);
5309
- if (bearerToken) {
5310
- fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
5311
- }
5312
-
5313
- return Promise.race([
5314
- fetch(fullUrl, fetchOptions).then((response) => {
5315
- if (response.status == 204) {
5316
- return response;
5317
- } else if (response.status >= 200 && response.status < 300) {
5318
- return response.json();
5319
- } else {
5320
- throw response;
5321
- }
5322
- }),
5323
- new Promise((_, reject) =>
5324
- setTimeout(reject, this.timeoutMs, "Request timed out.")
5325
- ),
5326
- ]);
5227
+ clanId?:string,
5228
+ options: any = {}): Promise<ApiNotificationChannelCategoySettingsList> {
5229
+
5230
+ const urlPath = "/v2/notifichannelcategory/get";
5231
+ const queryParams = new Map<string, any>();
5232
+ queryParams.set("clan_id", clanId);
5233
+
5234
+ let bodyJson : string = "";
5235
+
5236
+ const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
5237
+ const fetchOptions = buildFetchOptions("GET", options, bodyJson);
5238
+ if (bearerToken) {
5239
+ fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
5240
+ }
5241
+
5242
+ return Promise.race([
5243
+ fetch(fullUrl, fetchOptions).then((response) => {
5244
+ if (response.status == 204) {
5245
+ return response;
5246
+ } else if (response.status >= 200 && response.status < 300) {
5247
+ return response.json();
5248
+ } else {
5249
+ throw response;
5250
+ }
5251
+ }),
5252
+ new Promise((_, reject) =>
5253
+ setTimeout(reject, this.timeoutMs, "Request timed out.")
5254
+ ),
5255
+ ]);
5327
5256
  }
5328
-
5329
5257
  /** */
5330
5258
  deleteNotiReactMessage(bearerToken: string,
5331
5259
  channelId?:string,
@@ -5359,39 +5287,6 @@ export class MezonApi {
5359
5287
  ]);
5360
5288
  }
5361
5289
 
5362
- /** */
5363
- getNotificationReactMessage(bearerToken: string,
5364
- channelId?:string,
5365
- options: any = {}): Promise<ApiNotifiReactMessage> {
5366
-
5367
- const urlPath = "/v2/notifireactmessage/get";
5368
- const queryParams = new Map<string, any>();
5369
- queryParams.set("channel_id", channelId);
5370
-
5371
- let bodyJson : string = "";
5372
-
5373
- const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
5374
- const fetchOptions = buildFetchOptions("GET", options, bodyJson);
5375
- if (bearerToken) {
5376
- fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
5377
- }
5378
-
5379
- return Promise.race([
5380
- fetch(fullUrl, fetchOptions).then((response) => {
5381
- if (response.status == 204) {
5382
- return response;
5383
- } else if (response.status >= 200 && response.status < 300) {
5384
- return response.json();
5385
- } else {
5386
- throw response;
5387
- }
5388
- }),
5389
- new Promise((_, reject) =>
5390
- setTimeout(reject, this.timeoutMs, "Request timed out.")
5391
- ),
5392
- ]);
5393
- }
5394
-
5395
5290
  /** */
5396
5291
  setNotificationReactMessage(bearerToken: string,
5397
5292
  body:ApiNotificationChannel,
package/client.ts CHANGED
@@ -74,11 +74,8 @@ import {
74
74
  ApiEventList,
75
75
  ApiDeleteEventRequest,
76
76
  ApiNotificationChannelCategoySettingsList,
77
- ApiNotificationSetting,
78
77
  ApiSetDefaultNotificationRequest,
79
- ApiNotificationUserChannel,
80
78
  ApiSetNotificationRequest,
81
- ApiNotifiReactMessage,
82
79
  ApiSetMuteNotificationRequest,
83
80
  ApiSearchMessageRequest,
84
81
  ApiSearchMessageResponse,
@@ -100,6 +97,7 @@ import {
100
97
  ApiUpdateRoleChannelRequest,
101
98
  ApiAddAppRequest,
102
99
  ApiAppList,
100
+ ApiApp,
103
101
  } from "./api.gen";
104
102
 
105
103
  import { Session } from "./session";
@@ -141,58 +139,6 @@ export interface RpcResponse {
141
139
  payload?: object;
142
140
  }
143
141
 
144
- /** The object to store. */
145
- export interface WriteStorageObject {
146
- /** The collection to store the object. */
147
- collection?: string;
148
- /** The key for the object within the collection. */
149
- key?: string;
150
- /** The read access permissions for the object. */
151
- permission_read?: number;
152
- /** The write access permissions for the object. */
153
- permission_write?: number;
154
- /** The value of the object. */
155
- value?: object;
156
- /** The version hash of the object to check. Possible values are: ["", "*", "#hash#"]. */
157
- version?: string;
158
- }
159
-
160
- /** An object within the storage engine. */
161
- export interface StorageObject {
162
- /** The collection which stores the object. */
163
- collection?: string;
164
- /** The UNIX time when the object was created. */
165
- create_time?: string;
166
- /** The key of the object within the collection. */
167
- key?: string;
168
- /** The read access permissions for the object. */
169
- permission_read?: number;
170
- /** The write access permissions for the object. */
171
- permission_write?: number;
172
- /** The UNIX time when the object was last updated. */
173
- update_time?: string;
174
- /** The user owner of the object. */
175
- user_id?: string;
176
- /** The value of the object. */
177
- value?: object;
178
- /** The version hash of the object. */
179
- version?: string;
180
- }
181
-
182
- /** List of storage objects. */
183
- export interface StorageObjectList {
184
- /** The cursor associated with the query a page of results. */
185
- cursor?: string;
186
- /** The list of storage objects. */
187
- objects: Array<StorageObject>;
188
- }
189
-
190
- /** Batch of storage objects. */
191
- export interface StorageObjects {
192
- /** The batch of storage objects. */
193
- objects: Array<StorageObject>;
194
- }
195
-
196
142
  /** A message sent on a channel. */
197
143
  export interface ChannelMessage {
198
144
  //The unique ID of this message.
@@ -243,6 +189,10 @@ export interface ChannelMessage {
243
189
  create_time_ms?: number;
244
190
  //
245
191
  update_time_ms?: number;
192
+ //
193
+ mode?: number;
194
+ //
195
+ message_id?: string;
246
196
  }
247
197
 
248
198
  /** A list of channel messages, usually a result of a list operation. */
@@ -1966,18 +1916,6 @@ export class Client {
1966
1916
  });
1967
1917
  }
1968
1918
 
1969
- /** get default notification clan */
1970
- async getNotificationClanSetting(session: Session, clanId: string): Promise<ApiNotificationSetting> {
1971
- if (this.autoRefreshSession && session.refresh_token &&
1972
- session.isexpired((Date.now() + this.expiredTimespanMs)/1000)) {
1973
- await this.sessionRefresh(session);
1974
- }
1975
-
1976
- return this.apiClient.getNotificationClanSetting(session.token, clanId, {}).then((response: ApiNotificationSetting) => {
1977
- return Promise.resolve(response);
1978
- });
1979
- }
1980
-
1981
1919
  /** Set notification channel*/
1982
1920
  async setNotificationChannel(session: Session, request: ApiSetNotificationRequest): Promise<boolean> {
1983
1921
  if (this.autoRefreshSession && session.refresh_token &&
@@ -2014,18 +1952,6 @@ async updateChannelPrivate(session: Session, request: ApiChangeChannelPrivateReq
2014
1952
  });
2015
1953
  }
2016
1954
 
2017
- /** get default notification clan */
2018
- async getNotificationChannel(session: Session, channelId: string): Promise<ApiNotificationUserChannel> {
2019
- if (this.autoRefreshSession && session.refresh_token &&
2020
- session.isexpired((Date.now() + this.expiredTimespanMs)/1000)) {
2021
- await this.sessionRefresh(session);
2022
- }
2023
-
2024
- return this.apiClient.getNotificationChannelSetting(session.token, channelId, {}).then((response: ApiNotificationUserChannel) => {
2025
- return Promise.resolve(response);
2026
- });
2027
- }
2028
-
2029
1955
  /** Set default notification category*/
2030
1956
  async setNotificationCategory(session: Session, request: ApiSetDefaultNotificationRequest): Promise<boolean> {
2031
1957
  if (this.autoRefreshSession && session.refresh_token &&
@@ -2038,18 +1964,6 @@ async getNotificationChannel(session: Session, channelId: string): Promise<ApiNo
2038
1964
  });
2039
1965
  }
2040
1966
 
2041
- /** get default notification category */
2042
- async getNotificationCategory(session: Session, category_id: string): Promise<ApiNotificationSetting> {
2043
- if (this.autoRefreshSession && session.refresh_token &&
2044
- session.isexpired((Date.now() + this.expiredTimespanMs)/1000)) {
2045
- await this.sessionRefresh(session);
2046
- }
2047
-
2048
- return this.apiClient.getNotificationCategorySetting(session.token, category_id, {}).then((response: ApiNotificationSetting) => {
2049
- return Promise.resolve(response);
2050
- });
2051
- }
2052
-
2053
1967
  async deleteNotificationCategory(session: Session, category_id: string): Promise<boolean> {
2054
1968
  if (this.autoRefreshSession && session.refresh_token &&
2055
1969
  session.isexpired((Date.now() + this.expiredTimespanMs)/1000)) {
@@ -2095,17 +2009,6 @@ async deleteNotificationChannel(session: Session, channel_id: string): Promise<b
2095
2009
  });
2096
2010
  }
2097
2011
 
2098
- /** */
2099
- async getNotificationReactMessage(session: Session, channelId: string): Promise<ApiNotifiReactMessage> {
2100
- if (this.autoRefreshSession && session.refresh_token &&
2101
- session.isexpired((Date.now() + this.expiredTimespanMs)/1000)) {
2102
- await this.sessionRefresh(session);
2103
- }
2104
-
2105
- return this.apiClient.getNotificationReactMessage(session.token, channelId).then((response: ApiNotifiReactMessage) => {
2106
- return Promise.resolve(response);
2107
- });
2108
- }
2109
2012
  //** */
2110
2013
  async deleteNotiReactMessage(session: Session, channel_id: string): Promise<boolean> {
2111
2014
  if (this.autoRefreshSession && session.refresh_token &&
@@ -2344,7 +2247,18 @@ async addApp(session: Session, request: ApiAddAppRequest): Promise<boolean> {
2344
2247
  });
2345
2248
  }
2346
2249
 
2347
- async ListApp(session: Session): Promise<ApiAppList> {
2250
+ async getApp(session: Session, id: string): Promise<ApiApp> {
2251
+ if (this.autoRefreshSession && session.refresh_token &&
2252
+ session.isexpired((Date.now() + this.expiredTimespanMs)/1000)) {
2253
+ await this.sessionRefresh(session);
2254
+ }
2255
+
2256
+ return this.apiClient.getApp(session.token, id).then((response: ApiApp) => {
2257
+ return Promise.resolve(response);
2258
+ });
2259
+ }
2260
+
2261
+ async listApp(session: Session): Promise<ApiAppList> {
2348
2262
  if (this.autoRefreshSession && session.refresh_token &&
2349
2263
  session.isexpired((Date.now() + this.expiredTimespanMs)/1000)) {
2350
2264
  await this.sessionRefresh(session);
package/dist/api.gen.d.ts CHANGED
@@ -209,6 +209,22 @@ export interface ApiAddRoleChannelDescRequest {
209
209
  channel_id?: string;
210
210
  role_ids?: Array<string>;
211
211
  }
212
+ /** App information. */
213
+ export interface ApiApp {
214
+ applogo?: string;
215
+ appname?: string;
216
+ creator_id?: string;
217
+ disable_time?: string;
218
+ is_shadow?: boolean;
219
+ role?: number;
220
+ token?: string;
221
+ }
222
+ /** A list of apps. */
223
+ export interface ApiAppList {
224
+ apps?: Array<ApiApp>;
225
+ next_cursor?: string;
226
+ total_count?: number;
227
+ }
212
228
  /** */
213
229
  export interface ApiCategoryDesc {
214
230
  category_id?: string;
@@ -1166,8 +1182,6 @@ export declare class MezonApi {
1166
1182
  deleteNotifications(bearerToken: string, ids?: Array<string>, options?: any): Promise<any>;
1167
1183
  /** Fetch list of notifications. */
1168
1184
  listNotifications(bearerToken: string, clanId: string, limit?: number, cacheableCursor?: string, options?: any): Promise<ApiNotificationList>;
1169
- /** notification selected */
1170
- getNotificationChannelSetting(bearerToken: string, channelId?: string, options?: any): Promise<ApiNotificationUserChannel>;
1171
1185
  /** set notification user channel. */
1172
1186
  setNotificationChannelSetting(bearerToken: string, body: ApiSetNotificationRequest, options?: any): Promise<any>;
1173
1187
  /** set notification user channel. */
@@ -1176,19 +1190,13 @@ export declare class MezonApi {
1176
1190
  setNotificationCategorySetting(bearerToken: string, body: ApiSetNotificationRequest, options?: any): Promise<any>;
1177
1191
  /** */
1178
1192
  deleteNotificationCategorySetting(bearerToken: string, categoryId?: string, options?: any): Promise<any>;
1179
- /** notification selected */
1180
- getNotificationCategorySetting(bearerToken: string, categoryId?: string, options?: any): Promise<ApiNotificationUserChannel>;
1181
1193
  /** */
1182
1194
  deleteNotificationChannel(bearerToken: string, channelId?: string, options?: any): Promise<any>;
1183
- /** notification selected */
1184
- getNotificationClanSetting(bearerToken: string, clanId?: string, options?: any): Promise<ApiNotificationSetting>;
1185
1195
  /** notification category, channel selected */
1186
1196
  getChannelCategoryNotiSettingsList(bearerToken: string, clanId?: string, options?: any): Promise<ApiNotificationChannelCategoySettingsList>;
1187
1197
  /** */
1188
1198
  deleteNotiReactMessage(bearerToken: string, channelId?: string, options?: any): Promise<any>;
1189
1199
  /** */
1190
- getNotificationReactMessage(bearerToken: string, channelId?: string, options?: any): Promise<ApiNotifiReactMessage>;
1191
- /** */
1192
1200
  setNotificationReactMessage(bearerToken: string, body: ApiNotificationChannel, options?: any): Promise<any>;
1193
1201
  /** List permission role channel */
1194
1202
  getListPermissionRoleChannel(bearerToken: string, roleId?: string, channelId?: string, options?: any): Promise<ApiPermissionRoleChannelList>;
package/dist/client.d.ts CHANGED
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { ApiAccount, ApiAccountCustom, ApiAccountDevice, ApiAccountEmail, ApiAccountFacebook, ApiAccountFacebookInstantGame, ApiAccountGoogle, ApiAccountGameCenter, ApiAccountSteam, ApiChannelDescList, ApiChannelDescription, ApiCreateChannelDescRequest, ApiDeleteRoleRequest, ApiClanDescList, ApiCreateClanDescRequest, ApiClanDesc, ApiCategoryDesc, ApiCategoryDescList, ApiRoleList, ApiPermissionList, ApiRoleUserList, ApiRole, ApiCreateRoleRequest, ApiAddRoleChannelDescRequest, ApiCreateCategoryDescRequest, ApiUpdateCategoryDescRequest, ApiEvent, ApiUpdateAccountRequest, ApiAccountApple, ApiLinkSteamRequest, ApiClanDescProfile, ApiClanProfile, ApiChannelUserList, ApiClanUserList, ApiLinkInviteUserRequest, ApiUpdateEventRequest, ApiLinkInviteUser, ApiInviteUserRes, ApiUploadAttachmentRequest, ApiUploadAttachment, ApiMessageReaction, ApiMessageMention, ApiMessageAttachment, ApiMessageRef, ApiChannelMessageHeader, ApiVoiceChannelUserList, ApiChannelAttachmentList, ApiCreateEventRequest, ApiEventManagement, ApiEventList, ApiDeleteEventRequest, ApiNotificationChannelCategoySettingsList, ApiNotificationSetting, ApiSetDefaultNotificationRequest, ApiNotificationUserChannel, ApiSetNotificationRequest, ApiNotifiReactMessage, ApiSetMuteNotificationRequest, ApiSearchMessageRequest, ApiSearchMessageResponse, ApiPinMessageRequest, ApiPinMessagesList, ApiDeleteChannelDescRequest, ApiChangeChannelPrivateRequest, ApiClanEmojiCreateRequest, MezonUpdateClanEmojiByIdBody, ApiWebhookCreateRequest, ApiWebhookListResponse, MezonUpdateWebhookByIdBody, ApiWebhookGenerateResponse, ApiCheckDuplicateClanNameResponse, ApiClanStickerAddRequest, MezonUpdateClanStickerByIdBody, MezonChangeChannelCategoryBody, ApiPermissionRoleChannelList, ApiUpdateRoleChannelRequest, ApiAddAppRequest, ApiAppList } from "./api.gen";
16
+ import { ApiAccount, ApiAccountCustom, ApiAccountDevice, ApiAccountEmail, ApiAccountFacebook, ApiAccountFacebookInstantGame, ApiAccountGoogle, ApiAccountGameCenter, ApiAccountSteam, ApiChannelDescList, ApiChannelDescription, ApiCreateChannelDescRequest, ApiDeleteRoleRequest, ApiClanDescList, ApiCreateClanDescRequest, ApiClanDesc, ApiCategoryDesc, ApiCategoryDescList, ApiRoleList, ApiPermissionList, ApiRoleUserList, ApiRole, ApiCreateRoleRequest, ApiAddRoleChannelDescRequest, ApiCreateCategoryDescRequest, ApiUpdateCategoryDescRequest, ApiEvent, ApiUpdateAccountRequest, ApiAccountApple, ApiLinkSteamRequest, ApiClanDescProfile, ApiClanProfile, ApiChannelUserList, ApiClanUserList, ApiLinkInviteUserRequest, ApiUpdateEventRequest, ApiLinkInviteUser, ApiInviteUserRes, ApiUploadAttachmentRequest, ApiUploadAttachment, ApiMessageReaction, ApiMessageMention, ApiMessageAttachment, ApiMessageRef, ApiChannelMessageHeader, ApiVoiceChannelUserList, ApiChannelAttachmentList, ApiCreateEventRequest, ApiEventManagement, ApiEventList, ApiDeleteEventRequest, ApiNotificationChannelCategoySettingsList, ApiSetDefaultNotificationRequest, ApiSetNotificationRequest, ApiSetMuteNotificationRequest, ApiSearchMessageRequest, ApiSearchMessageResponse, ApiPinMessageRequest, ApiPinMessagesList, ApiDeleteChannelDescRequest, ApiChangeChannelPrivateRequest, ApiClanEmojiCreateRequest, MezonUpdateClanEmojiByIdBody, ApiWebhookCreateRequest, ApiWebhookListResponse, MezonUpdateWebhookByIdBody, ApiWebhookGenerateResponse, ApiCheckDuplicateClanNameResponse, ApiClanStickerAddRequest, MezonUpdateClanStickerByIdBody, MezonChangeChannelCategoryBody, ApiPermissionRoleChannelList, ApiUpdateRoleChannelRequest, ApiAddAppRequest, ApiAppList, ApiApp } from "./api.gen";
17
17
  import { Session } from "./session";
18
18
  import { Socket } from "./socket";
19
19
  import { WebSocketAdapter } from "./web_socket_adapter";
@@ -43,54 +43,6 @@ export interface RpcResponse {
43
43
  /** The payload of the function which must be a JSON object. */
44
44
  payload?: object;
45
45
  }
46
- /** The object to store. */
47
- export interface WriteStorageObject {
48
- /** The collection to store the object. */
49
- collection?: string;
50
- /** The key for the object within the collection. */
51
- key?: string;
52
- /** The read access permissions for the object. */
53
- permission_read?: number;
54
- /** The write access permissions for the object. */
55
- permission_write?: number;
56
- /** The value of the object. */
57
- value?: object;
58
- /** The version hash of the object to check. Possible values are: ["", "*", "#hash#"]. */
59
- version?: string;
60
- }
61
- /** An object within the storage engine. */
62
- export interface StorageObject {
63
- /** The collection which stores the object. */
64
- collection?: string;
65
- /** The UNIX time when the object was created. */
66
- create_time?: string;
67
- /** The key of the object within the collection. */
68
- key?: string;
69
- /** The read access permissions for the object. */
70
- permission_read?: number;
71
- /** The write access permissions for the object. */
72
- permission_write?: number;
73
- /** The UNIX time when the object was last updated. */
74
- update_time?: string;
75
- /** The user owner of the object. */
76
- user_id?: string;
77
- /** The value of the object. */
78
- value?: object;
79
- /** The version hash of the object. */
80
- version?: string;
81
- }
82
- /** List of storage objects. */
83
- export interface StorageObjectList {
84
- /** The cursor associated with the query a page of results. */
85
- cursor?: string;
86
- /** The list of storage objects. */
87
- objects: Array<StorageObject>;
88
- }
89
- /** Batch of storage objects. */
90
- export interface StorageObjects {
91
- /** The batch of storage objects. */
92
- objects: Array<StorageObject>;
93
- }
94
46
  /** A message sent on a channel. */
95
47
  export interface ChannelMessage {
96
48
  id: string;
@@ -117,6 +69,8 @@ export interface ChannelMessage {
117
69
  display_name?: string;
118
70
  create_time_ms?: number;
119
71
  update_time_ms?: number;
72
+ mode?: number;
73
+ message_id?: string;
120
74
  }
121
75
  /** A list of channel messages, usually a result of a list operation. */
122
76
  export interface ChannelMessageList {
@@ -547,27 +501,19 @@ export declare class Client {
547
501
  inviteUser(session: Session, inviteId: string): Promise<ApiInviteUserRes>;
548
502
  /** Set default notification clan*/
549
503
  setNotificationClan(session: Session, request: ApiSetDefaultNotificationRequest): Promise<boolean>;
550
- /** get default notification clan */
551
- getNotificationClanSetting(session: Session, clanId: string): Promise<ApiNotificationSetting>;
552
504
  /** Set notification channel*/
553
505
  setNotificationChannel(session: Session, request: ApiSetNotificationRequest): Promise<boolean>;
554
506
  /** Set notification channel*/
555
507
  setMuteNotificationChannel(session: Session, request: ApiSetMuteNotificationRequest): Promise<boolean>;
556
508
  /** update channel private*/
557
509
  updateChannelPrivate(session: Session, request: ApiChangeChannelPrivateRequest): Promise<boolean>;
558
- /** get default notification clan */
559
- getNotificationChannel(session: Session, channelId: string): Promise<ApiNotificationUserChannel>;
560
510
  /** Set default notification category*/
561
511
  setNotificationCategory(session: Session, request: ApiSetDefaultNotificationRequest): Promise<boolean>;
562
- /** get default notification category */
563
- getNotificationCategory(session: Session, category_id: string): Promise<ApiNotificationSetting>;
564
512
  deleteNotificationCategory(session: Session, category_id: string): Promise<boolean>;
565
513
  getChannelCategoryNotiSettingsList(session: Session, clan_id: string): Promise<ApiNotificationChannelCategoySettingsList>;
566
514
  deleteNotificationChannel(session: Session, channel_id: string): Promise<boolean>;
567
515
  /** */
568
516
  setNotificationReactMessage(session: Session, channel_id: string): Promise<boolean>;
569
- /** */
570
- getNotificationReactMessage(session: Session, channelId: string): Promise<ApiNotifiReactMessage>;
571
517
  deleteNotiReactMessage(session: Session, channel_id: string): Promise<boolean>;
572
518
  /** query message in elasticsearch */
573
519
  searchMessage(session: Session, request: ApiSearchMessageRequest): Promise<ApiSearchMessageResponse>;
@@ -593,5 +539,6 @@ export declare class Client {
593
539
  /** */
594
540
  setRoleChannelPermission(session: Session, request: ApiUpdateRoleChannelRequest): Promise<boolean>;
595
541
  addApp(session: Session, request: ApiAddAppRequest): Promise<boolean>;
596
- ListApp(session: Session): Promise<ApiAppList>;
542
+ getApp(session: Session, id: string): Promise<ApiApp>;
543
+ listApp(session: Session): Promise<ApiAppList>;
597
544
  }