mezon-js 2.8.36 → 2.8.37

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.
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.
@@ -1970,18 +1916,6 @@ export class Client {
1970
1916
  });
1971
1917
  }
1972
1918
 
1973
- /** get default notification clan */
1974
- async getNotificationClanSetting(session: Session, clanId: string): Promise<ApiNotificationSetting> {
1975
- if (this.autoRefreshSession && session.refresh_token &&
1976
- session.isexpired((Date.now() + this.expiredTimespanMs)/1000)) {
1977
- await this.sessionRefresh(session);
1978
- }
1979
-
1980
- return this.apiClient.getNotificationClanSetting(session.token, clanId, {}).then((response: ApiNotificationSetting) => {
1981
- return Promise.resolve(response);
1982
- });
1983
- }
1984
-
1985
1919
  /** Set notification channel*/
1986
1920
  async setNotificationChannel(session: Session, request: ApiSetNotificationRequest): Promise<boolean> {
1987
1921
  if (this.autoRefreshSession && session.refresh_token &&
@@ -2018,18 +1952,6 @@ async updateChannelPrivate(session: Session, request: ApiChangeChannelPrivateReq
2018
1952
  });
2019
1953
  }
2020
1954
 
2021
- /** get default notification clan */
2022
- async getNotificationChannel(session: Session, channelId: string): Promise<ApiNotificationUserChannel> {
2023
- if (this.autoRefreshSession && session.refresh_token &&
2024
- session.isexpired((Date.now() + this.expiredTimespanMs)/1000)) {
2025
- await this.sessionRefresh(session);
2026
- }
2027
-
2028
- return this.apiClient.getNotificationChannelSetting(session.token, channelId, {}).then((response: ApiNotificationUserChannel) => {
2029
- return Promise.resolve(response);
2030
- });
2031
- }
2032
-
2033
1955
  /** Set default notification category*/
2034
1956
  async setNotificationCategory(session: Session, request: ApiSetDefaultNotificationRequest): Promise<boolean> {
2035
1957
  if (this.autoRefreshSession && session.refresh_token &&
@@ -2042,18 +1964,6 @@ async getNotificationChannel(session: Session, channelId: string): Promise<ApiNo
2042
1964
  });
2043
1965
  }
2044
1966
 
2045
- /** get default notification category */
2046
- async getNotificationCategory(session: Session, category_id: string): Promise<ApiNotificationSetting> {
2047
- if (this.autoRefreshSession && session.refresh_token &&
2048
- session.isexpired((Date.now() + this.expiredTimespanMs)/1000)) {
2049
- await this.sessionRefresh(session);
2050
- }
2051
-
2052
- return this.apiClient.getNotificationCategorySetting(session.token, category_id, {}).then((response: ApiNotificationSetting) => {
2053
- return Promise.resolve(response);
2054
- });
2055
- }
2056
-
2057
1967
  async deleteNotificationCategory(session: Session, category_id: string): Promise<boolean> {
2058
1968
  if (this.autoRefreshSession && session.refresh_token &&
2059
1969
  session.isexpired((Date.now() + this.expiredTimespanMs)/1000)) {
@@ -2099,17 +2009,6 @@ async deleteNotificationChannel(session: Session, channel_id: string): Promise<b
2099
2009
  });
2100
2010
  }
2101
2011
 
2102
- /** */
2103
- async getNotificationReactMessage(session: Session, channelId: string): Promise<ApiNotifiReactMessage> {
2104
- if (this.autoRefreshSession && session.refresh_token &&
2105
- session.isexpired((Date.now() + this.expiredTimespanMs)/1000)) {
2106
- await this.sessionRefresh(session);
2107
- }
2108
-
2109
- return this.apiClient.getNotificationReactMessage(session.token, channelId).then((response: ApiNotifiReactMessage) => {
2110
- return Promise.resolve(response);
2111
- });
2112
- }
2113
2012
  //** */
2114
2013
  async deleteNotiReactMessage(session: Session, channel_id: string): Promise<boolean> {
2115
2014
  if (this.autoRefreshSession && session.refresh_token &&
@@ -2348,7 +2247,18 @@ async addApp(session: Session, request: ApiAddAppRequest): Promise<boolean> {
2348
2247
  });
2349
2248
  }
2350
2249
 
2351
- 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> {
2352
2262
  if (this.autoRefreshSession && session.refresh_token &&
2353
2263
  session.isexpired((Date.now() + this.expiredTimespanMs)/1000)) {
2354
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;
@@ -549,27 +501,19 @@ export declare class Client {
549
501
  inviteUser(session: Session, inviteId: string): Promise<ApiInviteUserRes>;
550
502
  /** Set default notification clan*/
551
503
  setNotificationClan(session: Session, request: ApiSetDefaultNotificationRequest): Promise<boolean>;
552
- /** get default notification clan */
553
- getNotificationClanSetting(session: Session, clanId: string): Promise<ApiNotificationSetting>;
554
504
  /** Set notification channel*/
555
505
  setNotificationChannel(session: Session, request: ApiSetNotificationRequest): Promise<boolean>;
556
506
  /** Set notification channel*/
557
507
  setMuteNotificationChannel(session: Session, request: ApiSetMuteNotificationRequest): Promise<boolean>;
558
508
  /** update channel private*/
559
509
  updateChannelPrivate(session: Session, request: ApiChangeChannelPrivateRequest): Promise<boolean>;
560
- /** get default notification clan */
561
- getNotificationChannel(session: Session, channelId: string): Promise<ApiNotificationUserChannel>;
562
510
  /** Set default notification category*/
563
511
  setNotificationCategory(session: Session, request: ApiSetDefaultNotificationRequest): Promise<boolean>;
564
- /** get default notification category */
565
- getNotificationCategory(session: Session, category_id: string): Promise<ApiNotificationSetting>;
566
512
  deleteNotificationCategory(session: Session, category_id: string): Promise<boolean>;
567
513
  getChannelCategoryNotiSettingsList(session: Session, clan_id: string): Promise<ApiNotificationChannelCategoySettingsList>;
568
514
  deleteNotificationChannel(session: Session, channel_id: string): Promise<boolean>;
569
515
  /** */
570
516
  setNotificationReactMessage(session: Session, channel_id: string): Promise<boolean>;
571
- /** */
572
- getNotificationReactMessage(session: Session, channelId: string): Promise<ApiNotifiReactMessage>;
573
517
  deleteNotiReactMessage(session: Session, channel_id: string): Promise<boolean>;
574
518
  /** query message in elasticsearch */
575
519
  searchMessage(session: Session, request: ApiSearchMessageRequest): Promise<ApiSearchMessageResponse>;
@@ -595,5 +539,6 @@ export declare class Client {
595
539
  /** */
596
540
  setRoleChannelPermission(session: Session, request: ApiUpdateRoleChannelRequest): Promise<boolean>;
597
541
  addApp(session: Session, request: ApiAddAppRequest): Promise<boolean>;
598
- ListApp(session: Session): Promise<ApiAppList>;
542
+ getApp(session: Session, id: string): Promise<ApiApp>;
543
+ listApp(session: Session): Promise<ApiAppList>;
599
544
  }