mezon-js 2.10.21 → 2.10.23
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 +62 -57
- package/client.ts +18 -10
- package/dist/api.gen.d.ts +1 -0
- package/dist/client.d.ts +3 -3
- package/dist/mezon-js.cjs.js +10 -3
- package/dist/mezon-js.esm.mjs +10 -3
- package/dist/socket.d.ts +8 -3
- package/package.json +1 -1
- package/socket.ts +8 -5
package/api.gen.ts
CHANGED
@@ -200,13 +200,15 @@ export interface MezonUpdateClanStickerByIdBody {
|
|
200
200
|
|
201
201
|
/** update a event within clan. */
|
202
202
|
export interface MezonUpdateEventBody {
|
203
|
+
//
|
204
|
+
event_id?: string;
|
203
205
|
//
|
204
206
|
address?: string;
|
205
207
|
//
|
206
208
|
channel_id?: string;
|
207
209
|
//
|
208
210
|
clan_id?: string;
|
209
|
-
//
|
211
|
+
//
|
210
212
|
creator_id?: string;
|
211
213
|
//
|
212
214
|
description?: string;
|
@@ -1179,7 +1181,7 @@ export interface ApiDeleteChannelDescRequest {
|
|
1179
1181
|
export interface ApiDeleteEventRequest {
|
1180
1182
|
//
|
1181
1183
|
clan_id?: string;
|
1182
|
-
//
|
1184
|
+
//
|
1183
1185
|
creator_id?: string;
|
1184
1186
|
//The id of a event.
|
1185
1187
|
event_id?: string;
|
@@ -4923,7 +4925,7 @@ export class MezonApi {
|
|
4923
4925
|
messageId?: string,
|
4924
4926
|
direction?: number,
|
4925
4927
|
limit?: number,
|
4926
|
-
topicId?:string,
|
4928
|
+
topicId?: string,
|
4927
4929
|
options: any = {}
|
4928
4930
|
): Promise<ApiChannelMessageList> {
|
4929
4931
|
if (channelId === null || channelId === undefined) {
|
@@ -5368,22 +5370,23 @@ export class MezonApi {
|
|
5368
5370
|
}
|
5369
5371
|
|
5370
5372
|
/** list user add channel by channel ids */
|
5371
|
-
listChannelUsersUC(
|
5372
|
-
|
5373
|
-
|
5374
|
-
|
5375
|
-
|
5373
|
+
listChannelUsersUC(
|
5374
|
+
bearerToken: string,
|
5375
|
+
channelId?: string,
|
5376
|
+
limit?: number,
|
5377
|
+
options: any = {}
|
5378
|
+
): Promise<ApiAllUsersAddChannelResponse> {
|
5376
5379
|
const urlPath = "/v2/channeldesc/users";
|
5377
5380
|
const queryParams = new Map<string, any>();
|
5378
5381
|
queryParams.set("channel_id", channelId);
|
5379
5382
|
queryParams.set("limit", limit);
|
5380
5383
|
|
5381
|
-
let bodyJson
|
5384
|
+
let bodyJson: string = "";
|
5382
5385
|
|
5383
5386
|
const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
|
5384
5387
|
const fetchOptions = buildFetchOptions("GET", options, bodyJson);
|
5385
5388
|
if (bearerToken) {
|
5386
|
-
|
5389
|
+
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
5387
5390
|
}
|
5388
5391
|
|
5389
5392
|
return Promise.race([
|
@@ -5400,7 +5403,7 @@ export class MezonApi {
|
|
5400
5403
|
setTimeout(reject, this.timeoutMs, "Request timed out.")
|
5401
5404
|
),
|
5402
5405
|
]);
|
5403
|
-
}
|
5406
|
+
}
|
5404
5407
|
|
5405
5408
|
/** Delete a channel by ID. */
|
5406
5409
|
deleteChannelDesc(
|
@@ -6563,12 +6566,13 @@ export class MezonApi {
|
|
6563
6566
|
}
|
6564
6567
|
|
6565
6568
|
/** Delete a event by ID. */
|
6566
|
-
deleteEvent(
|
6567
|
-
|
6568
|
-
|
6569
|
-
|
6570
|
-
|
6571
|
-
|
6569
|
+
deleteEvent(
|
6570
|
+
bearerToken: string,
|
6571
|
+
eventId: string,
|
6572
|
+
clanId?: string,
|
6573
|
+
creatorId?: string,
|
6574
|
+
options: any = {}
|
6575
|
+
): Promise<any> {
|
6572
6576
|
if (eventId === null || eventId === undefined) {
|
6573
6577
|
throw new Error(
|
6574
6578
|
"'eventId' is a required parameter but is null or undefined."
|
@@ -6580,7 +6584,7 @@ export class MezonApi {
|
|
6580
6584
|
);
|
6581
6585
|
const queryParams = new Map<string, any>();
|
6582
6586
|
queryParams.set("clan_id", clanId);
|
6583
|
-
queryParams.set("creator_id", creatorId);
|
6587
|
+
queryParams.set("creator_id", creatorId);
|
6584
6588
|
|
6585
6589
|
let bodyJson: string = "";
|
6586
6590
|
|
@@ -7505,45 +7509,46 @@ queryParams.set("creator_id", creatorId);
|
|
7505
7509
|
}
|
7506
7510
|
|
7507
7511
|
/** Fetch list of notifications. */
|
7508
|
-
listNotifications(
|
7509
|
-
|
7510
|
-
|
7511
|
-
|
7512
|
-
|
7513
|
-
|
7514
|
-
|
7515
|
-
|
7516
|
-
|
7517
|
-
|
7518
|
-
|
7519
|
-
|
7520
|
-
|
7521
|
-
|
7522
|
-
|
7523
|
-
|
7524
|
-
|
7525
|
-
|
7526
|
-
|
7527
|
-
|
7528
|
-
|
7529
|
-
|
7530
|
-
|
7531
|
-
|
7532
|
-
|
7533
|
-
|
7534
|
-
|
7535
|
-
|
7536
|
-
|
7537
|
-
|
7538
|
-
|
7539
|
-
|
7540
|
-
|
7541
|
-
|
7542
|
-
|
7543
|
-
|
7544
|
-
|
7545
|
-
|
7546
|
-
|
7512
|
+
listNotifications(
|
7513
|
+
bearerToken: string,
|
7514
|
+
limit?: number,
|
7515
|
+
clanId?: string,
|
7516
|
+
notificationId?: string,
|
7517
|
+
code?: number,
|
7518
|
+
direction?: number,
|
7519
|
+
options: any = {}
|
7520
|
+
): Promise<ApiNotificationList> {
|
7521
|
+
const urlPath = "/v2/notification";
|
7522
|
+
const queryParams = new Map<string, any>();
|
7523
|
+
queryParams.set("limit", limit);
|
7524
|
+
queryParams.set("clan_id", clanId);
|
7525
|
+
queryParams.set("notification_id", notificationId);
|
7526
|
+
queryParams.set("code", code);
|
7527
|
+
queryParams.set("direction", direction);
|
7528
|
+
|
7529
|
+
let bodyJson: string = "";
|
7530
|
+
|
7531
|
+
const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
|
7532
|
+
const fetchOptions = buildFetchOptions("GET", options, bodyJson);
|
7533
|
+
if (bearerToken) {
|
7534
|
+
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
7535
|
+
}
|
7536
|
+
|
7537
|
+
return Promise.race([
|
7538
|
+
fetch(fullUrl, fetchOptions).then((response) => {
|
7539
|
+
if (response.status == 204) {
|
7540
|
+
return response;
|
7541
|
+
} else if (response.status >= 200 && response.status < 300) {
|
7542
|
+
return response.json();
|
7543
|
+
} else {
|
7544
|
+
throw response;
|
7545
|
+
}
|
7546
|
+
}),
|
7547
|
+
new Promise((_, reject) =>
|
7548
|
+
setTimeout(reject, this.timeoutMs, "Request timed out.")
|
7549
|
+
),
|
7550
|
+
]);
|
7551
|
+
}
|
7547
7552
|
|
7548
7553
|
/** set notification user channel. */
|
7549
7554
|
setNotificationChannelSetting(
|
package/client.ts
CHANGED
@@ -56,7 +56,6 @@ import {
|
|
56
56
|
ApiChannelUserList,
|
57
57
|
ApiClanUserList,
|
58
58
|
ApiLinkInviteUserRequest,
|
59
|
-
ApiUpdateEventRequest,
|
60
59
|
ApiLinkInviteUser,
|
61
60
|
ApiInviteUserRes,
|
62
61
|
ApiUploadAttachmentRequest,
|
@@ -158,6 +157,7 @@ import {
|
|
158
157
|
ApiSdTopicRequest,
|
159
158
|
ApiSdTopic,
|
160
159
|
ApiPTTChannelUserList,
|
160
|
+
MezonUpdateEventBody,
|
161
161
|
} from "./api.gen";
|
162
162
|
|
163
163
|
import { Session } from "./session";
|
@@ -201,7 +201,7 @@ export enum WebrtcSignalingType {
|
|
201
201
|
WEBRTC_SDP_OFFER = 1,
|
202
202
|
WEBRTC_SDP_ANSWER = 2,
|
203
203
|
WEBRTC_ICE_CANDIDATE = 3,
|
204
|
-
WEBRTC_SDP_QUIT = 4
|
204
|
+
WEBRTC_SDP_QUIT = 4,
|
205
205
|
}
|
206
206
|
|
207
207
|
/** Response for an RPC function executed on the server. */
|
@@ -1201,7 +1201,8 @@ export class Client {
|
|
1201
1201
|
async deleteEvent(
|
1202
1202
|
session: Session,
|
1203
1203
|
eventId: string,
|
1204
|
-
clanId: string
|
1204
|
+
clanId: string,
|
1205
|
+
creatorId: string
|
1205
1206
|
): Promise<boolean> {
|
1206
1207
|
if (
|
1207
1208
|
this.autoRefreshSession &&
|
@@ -1212,7 +1213,7 @@ export class Client {
|
|
1212
1213
|
}
|
1213
1214
|
|
1214
1215
|
return this.apiClient
|
1215
|
-
.deleteEvent(session.token, eventId, clanId)
|
1216
|
+
.deleteEvent(session.token, eventId, clanId, creatorId)
|
1216
1217
|
.then((response: any) => {
|
1217
1218
|
return response !== undefined;
|
1218
1219
|
});
|
@@ -1409,7 +1410,7 @@ export class Client {
|
|
1409
1410
|
messageId?: string,
|
1410
1411
|
direction?: number,
|
1411
1412
|
limit?: number,
|
1412
|
-
topicId?:string
|
1413
|
+
topicId?: string
|
1413
1414
|
): Promise<ChannelMessageList> {
|
1414
1415
|
if (
|
1415
1416
|
this.autoRefreshSession &&
|
@@ -2231,9 +2232,9 @@ export class Client {
|
|
2231
2232
|
session: Session,
|
2232
2233
|
clanId: string,
|
2233
2234
|
limit?: number,
|
2234
|
-
notificationId?:string,
|
2235
|
-
code?:number,
|
2236
|
-
direction?:number
|
2235
|
+
notificationId?: string,
|
2236
|
+
code?: number,
|
2237
|
+
direction?: number
|
2237
2238
|
): Promise<NotificationList> {
|
2238
2239
|
if (
|
2239
2240
|
this.autoRefreshSession &&
|
@@ -2244,7 +2245,14 @@ export class Client {
|
|
2244
2245
|
}
|
2245
2246
|
|
2246
2247
|
return this.apiClient
|
2247
|
-
.listNotifications(
|
2248
|
+
.listNotifications(
|
2249
|
+
session.token,
|
2250
|
+
limit,
|
2251
|
+
clanId,
|
2252
|
+
notificationId,
|
2253
|
+
code,
|
2254
|
+
direction
|
2255
|
+
)
|
2248
2256
|
.then((response: ApiNotificationList) => {
|
2249
2257
|
var result: NotificationList = {
|
2250
2258
|
cacheable_cursor: response.cacheable_cursor,
|
@@ -2710,7 +2718,7 @@ export class Client {
|
|
2710
2718
|
async updateEvent(
|
2711
2719
|
session: Session,
|
2712
2720
|
roleId: string,
|
2713
|
-
request:
|
2721
|
+
request: MezonUpdateEventBody
|
2714
2722
|
): Promise<boolean> {
|
2715
2723
|
if (
|
2716
2724
|
this.autoRefreshSession &&
|
package/dist/api.gen.d.ts
CHANGED
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, ApiPermissionList, ApiRoleUserList, ApiRole, ApiCreateRoleRequest, ApiAddRoleChannelDescRequest, ApiCreateCategoryDescRequest, ApiUpdateCategoryDescRequest, ApiEvent, ApiUpdateAccountRequest, ApiAccountApple, ApiLinkSteamRequest, ApiClanDescProfile, ApiClanProfile, ApiChannelUserList, ApiClanUserList, ApiLinkInviteUserRequest,
|
16
|
+
import { ApiAccount, ApiAccountCustom, ApiAccountDevice, ApiAccountEmail, ApiAccountFacebook, ApiAccountFacebookInstantGame, ApiAccountGoogle, ApiAccountGameCenter, ApiAccountSteam, ApiChannelDescList, ApiChannelDescription, ApiCreateChannelDescRequest, ApiDeleteRoleRequest, ApiClanDescList, ApiCreateClanDescRequest, ApiClanDesc, ApiCategoryDesc, ApiCategoryDescList, ApiPermissionList, ApiRoleUserList, ApiRole, ApiCreateRoleRequest, ApiAddRoleChannelDescRequest, ApiCreateCategoryDescRequest, ApiUpdateCategoryDescRequest, ApiEvent, ApiUpdateAccountRequest, ApiAccountApple, ApiLinkSteamRequest, ApiClanDescProfile, ApiClanProfile, ApiChannelUserList, ApiClanUserList, ApiLinkInviteUserRequest, ApiLinkInviteUser, ApiInviteUserRes, ApiUploadAttachmentRequest, ApiUploadAttachment, ApiMessageReaction, ApiMessageMention, ApiMessageAttachment, ApiMessageRef, ApiChannelMessageHeader, ApiVoiceChannelUserList, ApiChannelAttachmentList, ApiCreateEventRequest, ApiEventManagement, ApiEventList, ApiDeleteEventRequest, ApiSetDefaultNotificationRequest, ApiSetNotificationRequest, ApiSetMuteNotificationRequest, ApiSearchMessageRequest, ApiSearchMessageResponse, ApiPinMessageRequest, ApiPinMessagesList, ApiDeleteChannelDescRequest, ApiChangeChannelPrivateRequest, ApiClanEmojiCreateRequest, MezonUpdateClanEmojiByIdBody, ApiWebhookCreateRequest, ApiWebhookListResponse, MezonUpdateWebhookByIdBody, ApiWebhookGenerateResponse, ApiCheckDuplicateClanNameResponse, ApiClanStickerAddRequest, MezonUpdateClanStickerByIdBody, MezonChangeChannelCategoryBody, ApiUpdateRoleChannelRequest, ApiAddAppRequest, ApiAppList, ApiApp, MezonUpdateAppBody, ApiSystemMessagesList, ApiSystemMessage, ApiSystemMessageRequest, MezonUpdateSystemMessageBody, ApiUpdateCategoryOrderRequest, ApiGiveCoffeeEvent, ApiListStreamingChannelsResponse, ApiStreamingChannelUserList, ApiRegisterStreamingChannelRequest, ApiRoleList, ApiListChannelAppsResponse, ApiNotificationChannelCategorySettingList, ApiNotificationUserChannel, ApiNotificationSetting, ApiNotifiReactMessage, ApiHashtagDmList, ApiEmojiListedResponse, ApiStickerListedResponse, ApiAllUsersAddChannelResponse, ApiRoleListEventResponse, ApiAllUserClans, ApiUserPermissionInChannelListResponse, ApiPermissionRoleChannelListEventResponse, ApiMarkAsReadRequest, ApiEditChannelCanvasRequest, ApiChannelSettingListResponse, ApiAddFavoriteChannelResponse, ApiRegistFcmDeviceTokenResponse, ApiListUserActivity, ApiCreateActivityRequest, ApiLoginIDResponse, ApiLoginRequest, ApiConfirmLoginRequest, ApiUserActivity, ApiChanEncryptionMethod, ApiGetPubKeysResponse, ApiPubKey, ApiGetKeyServerResp, MezonapiListAuditLog, ApiTokenSentEvent, MezonDeleteWebhookByIdBody, ApiWithdrawTokenRequest, ApiListOnboardingResponse, ApiCreateOnboardingRequest, MezonUpdateOnboardingBody, ApiOnboardingItem, ApiGenerateClanWebhookRequest, ApiGenerateClanWebhookResponse, ApiListClanWebhookResponse, MezonUpdateClanWebhookByIdBody, MezonUpdateClanDescBody, ApiUserStatusUpdate, ApiUserStatus, ApiListOnboardingStepResponse, MezonUpdateOnboardingStepByClanIdBody, ApiWalletLedgerList, ApiSdTopicList, ApiSdTopicRequest, ApiSdTopic, ApiPTTChannelUserList, MezonUpdateEventBody } from "./api.gen";
|
17
17
|
import { Session } from "./session";
|
18
18
|
import { Socket } from "./socket";
|
19
19
|
import { WebSocketAdapter } from "./web_socket_adapter";
|
@@ -400,7 +400,7 @@ export declare class Client {
|
|
400
400
|
/** Delete a role by ID. */
|
401
401
|
deleteRole(session: Session, roleId: string, clanId: string): Promise<boolean>;
|
402
402
|
/** Delete a event by ID. */
|
403
|
-
deleteEvent(session: Session, eventId: string, clanId: string): Promise<boolean>;
|
403
|
+
deleteEvent(session: Session, eventId: string, clanId: string, creatorId: string): Promise<boolean>;
|
404
404
|
/** update user a event by ID. */
|
405
405
|
updateEventUser(session: Session, request: ApiDeleteEventRequest): Promise<boolean>;
|
406
406
|
/** Submit an event for processing in the server's registered runtime custom events handler. */
|
@@ -509,7 +509,7 @@ export declare class Client {
|
|
509
509
|
/** Update fields in a given role. */
|
510
510
|
updateRole(session: Session, roleId: string, request: ApiUpdateRoleRequest): Promise<boolean>;
|
511
511
|
/** Update fields in a given event. */
|
512
|
-
updateEvent(session: Session, roleId: string, request:
|
512
|
+
updateEvent(session: Session, roleId: string, request: MezonUpdateEventBody): Promise<boolean>;
|
513
513
|
/** Update fields in a given event. */
|
514
514
|
updateApp(session: Session, roleId: string, request: MezonUpdateAppBody): Promise<boolean>;
|
515
515
|
/** Update fields in a given clan profile. */
|
package/dist/mezon-js.cjs.js
CHANGED
@@ -8448,12 +8448,12 @@ var Client = class {
|
|
8448
8448
|
});
|
8449
8449
|
}
|
8450
8450
|
/** Delete a event by ID. */
|
8451
|
-
deleteEvent(session, eventId, clanId) {
|
8451
|
+
deleteEvent(session, eventId, clanId, creatorId) {
|
8452
8452
|
return __async(this, null, function* () {
|
8453
8453
|
if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
|
8454
8454
|
yield this.sessionRefresh(session);
|
8455
8455
|
}
|
8456
|
-
return this.apiClient.deleteEvent(session.token, eventId, clanId).then((response) => {
|
8456
|
+
return this.apiClient.deleteEvent(session.token, eventId, clanId, creatorId).then((response) => {
|
8457
8457
|
return response !== void 0;
|
8458
8458
|
});
|
8459
8459
|
});
|
@@ -9112,7 +9112,14 @@ var Client = class {
|
|
9112
9112
|
if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
|
9113
9113
|
yield this.sessionRefresh(session);
|
9114
9114
|
}
|
9115
|
-
return this.apiClient.listNotifications(
|
9115
|
+
return this.apiClient.listNotifications(
|
9116
|
+
session.token,
|
9117
|
+
limit,
|
9118
|
+
clanId,
|
9119
|
+
notificationId,
|
9120
|
+
code,
|
9121
|
+
direction
|
9122
|
+
).then((response) => {
|
9116
9123
|
var result = {
|
9117
9124
|
cacheable_cursor: response.cacheable_cursor,
|
9118
9125
|
notifications: []
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -8414,12 +8414,12 @@ var Client = class {
|
|
8414
8414
|
});
|
8415
8415
|
}
|
8416
8416
|
/** Delete a event by ID. */
|
8417
|
-
deleteEvent(session, eventId, clanId) {
|
8417
|
+
deleteEvent(session, eventId, clanId, creatorId) {
|
8418
8418
|
return __async(this, null, function* () {
|
8419
8419
|
if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
|
8420
8420
|
yield this.sessionRefresh(session);
|
8421
8421
|
}
|
8422
|
-
return this.apiClient.deleteEvent(session.token, eventId, clanId).then((response) => {
|
8422
|
+
return this.apiClient.deleteEvent(session.token, eventId, clanId, creatorId).then((response) => {
|
8423
8423
|
return response !== void 0;
|
8424
8424
|
});
|
8425
8425
|
});
|
@@ -9078,7 +9078,14 @@ var Client = class {
|
|
9078
9078
|
if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
|
9079
9079
|
yield this.sessionRefresh(session);
|
9080
9080
|
}
|
9081
|
-
return this.apiClient.listNotifications(
|
9081
|
+
return this.apiClient.listNotifications(
|
9082
|
+
session.token,
|
9083
|
+
limit,
|
9084
|
+
clanId,
|
9085
|
+
notificationId,
|
9086
|
+
code,
|
9087
|
+
direction
|
9088
|
+
).then((response) => {
|
9082
9089
|
var result = {
|
9083
9090
|
cacheable_cursor: response.cacheable_cursor,
|
9084
9091
|
notifications: []
|
package/dist/socket.d.ts
CHANGED
@@ -99,12 +99,10 @@ export interface UserProfileRedis {
|
|
99
99
|
}
|
100
100
|
/** UserChannelAddedEvent */
|
101
101
|
export interface UserChannelAddedEvent {
|
102
|
-
|
102
|
+
channel_desc: ChannelDescription;
|
103
103
|
users: UserProfileRedis[];
|
104
104
|
status: string;
|
105
105
|
clan_id: string;
|
106
|
-
channel_type: number;
|
107
|
-
is_public: boolean;
|
108
106
|
}
|
109
107
|
export interface UserChannelRemovedEvent {
|
110
108
|
channel_id: string;
|
@@ -438,6 +436,10 @@ export interface RoleEvent {
|
|
438
436
|
role: ApiRole;
|
439
437
|
status: number;
|
440
438
|
user_id: string;
|
439
|
+
user_add_ids: Array<string>;
|
440
|
+
user_remove_ids: Array<string>;
|
441
|
+
active_permission_ids: Array<string>;
|
442
|
+
remove_permission_ids: Array<string>;
|
441
443
|
}
|
442
444
|
export interface EventEmoji {
|
443
445
|
id: string;
|
@@ -582,6 +584,9 @@ export interface PermissionSet {
|
|
582
584
|
export interface PermissionChangedEvent {
|
583
585
|
user_id: string;
|
584
586
|
channel_id: string;
|
587
|
+
add_permissions: ApiPermissionUpdate[];
|
588
|
+
remove_permissions: ApiPermissionUpdate[];
|
589
|
+
default_permissions: ApiPermissionUpdate[];
|
585
590
|
}
|
586
591
|
export interface DropdownBoxSelected {
|
587
592
|
message_id: string;
|
package/package.json
CHANGED
package/socket.ts
CHANGED
@@ -140,17 +140,13 @@ export interface UserProfileRedis {
|
|
140
140
|
/** UserChannelAddedEvent */
|
141
141
|
export interface UserChannelAddedEvent {
|
142
142
|
// the channel id
|
143
|
-
|
143
|
+
channel_desc: ChannelDescription;
|
144
144
|
// the user
|
145
145
|
users: UserProfileRedis[];
|
146
146
|
// the custom status
|
147
147
|
status: string;
|
148
148
|
// the clan id
|
149
149
|
clan_id: string;
|
150
|
-
// the channel type
|
151
|
-
channel_type: number;
|
152
|
-
// is public
|
153
|
-
is_public: boolean;
|
154
150
|
}
|
155
151
|
|
156
152
|
export interface UserChannelRemovedEvent {
|
@@ -637,6 +633,10 @@ export interface RoleEvent {
|
|
637
633
|
role: ApiRole;
|
638
634
|
status: number;
|
639
635
|
user_id: string;
|
636
|
+
user_add_ids: Array<string>;
|
637
|
+
user_remove_ids: Array<string>;
|
638
|
+
active_permission_ids: Array<string>;
|
639
|
+
remove_permission_ids: Array<string>;
|
640
640
|
}
|
641
641
|
|
642
642
|
export interface EventEmoji {
|
@@ -831,6 +831,9 @@ export interface PermissionSet {
|
|
831
831
|
export interface PermissionChangedEvent {
|
832
832
|
user_id: string;
|
833
833
|
channel_id: string;
|
834
|
+
add_permissions: ApiPermissionUpdate[];
|
835
|
+
remove_permissions: ApiPermissionUpdate[];
|
836
|
+
default_permissions: ApiPermissionUpdate[];
|
834
837
|
}
|
835
838
|
|
836
839
|
export interface DropdownBoxSelected {
|