mezon-js-protobuf 1.7.1 → 1.7.3
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/api.ts +264 -1
- package/dist/mezon-js-protobuf/api/api.d.ts +1474 -39
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +1730 -260
- package/dist/mezon-js-protobuf.cjs.js +143 -4
- package/dist/mezon-js-protobuf.esm.mjs +143 -4
- package/package.json +1 -1
- package/rtapi/realtime.ts +26 -1
|
@@ -3716,7 +3716,8 @@ function createBaseNotification() {
|
|
|
3716
3716
|
clan_id: "",
|
|
3717
3717
|
channel_id: "",
|
|
3718
3718
|
channel_type: 0,
|
|
3719
|
-
avatar_url: ""
|
|
3719
|
+
avatar_url: "",
|
|
3720
|
+
channel: void 0
|
|
3720
3721
|
};
|
|
3721
3722
|
}
|
|
3722
3723
|
var Notification = {
|
|
@@ -3754,6 +3755,9 @@ var Notification = {
|
|
|
3754
3755
|
if (message.avatar_url !== "") {
|
|
3755
3756
|
writer.uint32(90).string(message.avatar_url);
|
|
3756
3757
|
}
|
|
3758
|
+
if (message.channel !== void 0) {
|
|
3759
|
+
ChannelDescription.encode(message.channel, writer.uint32(98).fork()).ldelim();
|
|
3760
|
+
}
|
|
3757
3761
|
return writer;
|
|
3758
3762
|
},
|
|
3759
3763
|
decode(input, length) {
|
|
@@ -3829,6 +3833,12 @@ var Notification = {
|
|
|
3829
3833
|
}
|
|
3830
3834
|
message.avatar_url = reader.string();
|
|
3831
3835
|
continue;
|
|
3836
|
+
case 12:
|
|
3837
|
+
if (tag !== 98) {
|
|
3838
|
+
break;
|
|
3839
|
+
}
|
|
3840
|
+
message.channel = ChannelDescription.decode(reader, reader.uint32());
|
|
3841
|
+
continue;
|
|
3832
3842
|
}
|
|
3833
3843
|
if ((tag & 7) === 4 || tag === 0) {
|
|
3834
3844
|
break;
|
|
@@ -3849,7 +3859,8 @@ var Notification = {
|
|
|
3849
3859
|
clan_id: isSet3(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
3850
3860
|
channel_id: isSet3(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
3851
3861
|
channel_type: isSet3(object.channel_type) ? globalThis.Number(object.channel_type) : 0,
|
|
3852
|
-
avatar_url: isSet3(object.avatar_url) ? globalThis.String(object.avatar_url) : ""
|
|
3862
|
+
avatar_url: isSet3(object.avatar_url) ? globalThis.String(object.avatar_url) : "",
|
|
3863
|
+
channel: isSet3(object.channel) ? ChannelDescription.fromJSON(object.channel) : void 0
|
|
3853
3864
|
};
|
|
3854
3865
|
},
|
|
3855
3866
|
toJSON(message) {
|
|
@@ -3887,6 +3898,9 @@ var Notification = {
|
|
|
3887
3898
|
if (message.avatar_url !== "") {
|
|
3888
3899
|
obj.avatar_url = message.avatar_url;
|
|
3889
3900
|
}
|
|
3901
|
+
if (message.channel !== void 0) {
|
|
3902
|
+
obj.channel = ChannelDescription.toJSON(message.channel);
|
|
3903
|
+
}
|
|
3890
3904
|
return obj;
|
|
3891
3905
|
},
|
|
3892
3906
|
create(base) {
|
|
@@ -3906,6 +3920,7 @@ var Notification = {
|
|
|
3906
3920
|
message.channel_id = (_i = object.channel_id) != null ? _i : "";
|
|
3907
3921
|
message.channel_type = (_j = object.channel_type) != null ? _j : 0;
|
|
3908
3922
|
message.avatar_url = (_k = object.avatar_url) != null ? _k : "";
|
|
3923
|
+
message.channel = object.channel !== void 0 && object.channel !== null ? ChannelDescription.fromPartial(object.channel) : void 0;
|
|
3909
3924
|
return message;
|
|
3910
3925
|
}
|
|
3911
3926
|
};
|
|
@@ -5084,6 +5099,115 @@ var Permission = {
|
|
|
5084
5099
|
return message;
|
|
5085
5100
|
}
|
|
5086
5101
|
};
|
|
5102
|
+
function createBaseNotificationUserChannel() {
|
|
5103
|
+
return { id: "", notification_setting_type: 0, time_mute: void 0, active: 0, channel_id: "" };
|
|
5104
|
+
}
|
|
5105
|
+
var NotificationUserChannel = {
|
|
5106
|
+
encode(message, writer = import_minimal4.default.Writer.create()) {
|
|
5107
|
+
if (message.id !== "") {
|
|
5108
|
+
writer.uint32(10).string(message.id);
|
|
5109
|
+
}
|
|
5110
|
+
if (message.notification_setting_type !== 0) {
|
|
5111
|
+
writer.uint32(16).int32(message.notification_setting_type);
|
|
5112
|
+
}
|
|
5113
|
+
if (message.time_mute !== void 0) {
|
|
5114
|
+
Timestamp.encode(toTimestamp(message.time_mute), writer.uint32(26).fork()).ldelim();
|
|
5115
|
+
}
|
|
5116
|
+
if (message.active !== 0) {
|
|
5117
|
+
writer.uint32(32).int32(message.active);
|
|
5118
|
+
}
|
|
5119
|
+
if (message.channel_id !== "") {
|
|
5120
|
+
writer.uint32(42).string(message.channel_id);
|
|
5121
|
+
}
|
|
5122
|
+
return writer;
|
|
5123
|
+
},
|
|
5124
|
+
decode(input, length) {
|
|
5125
|
+
const reader = input instanceof import_minimal4.default.Reader ? input : import_minimal4.default.Reader.create(input);
|
|
5126
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
5127
|
+
const message = createBaseNotificationUserChannel();
|
|
5128
|
+
while (reader.pos < end) {
|
|
5129
|
+
const tag = reader.uint32();
|
|
5130
|
+
switch (tag >>> 3) {
|
|
5131
|
+
case 1:
|
|
5132
|
+
if (tag !== 10) {
|
|
5133
|
+
break;
|
|
5134
|
+
}
|
|
5135
|
+
message.id = reader.string();
|
|
5136
|
+
continue;
|
|
5137
|
+
case 2:
|
|
5138
|
+
if (tag !== 16) {
|
|
5139
|
+
break;
|
|
5140
|
+
}
|
|
5141
|
+
message.notification_setting_type = reader.int32();
|
|
5142
|
+
continue;
|
|
5143
|
+
case 3:
|
|
5144
|
+
if (tag !== 26) {
|
|
5145
|
+
break;
|
|
5146
|
+
}
|
|
5147
|
+
message.time_mute = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
5148
|
+
continue;
|
|
5149
|
+
case 4:
|
|
5150
|
+
if (tag !== 32) {
|
|
5151
|
+
break;
|
|
5152
|
+
}
|
|
5153
|
+
message.active = reader.int32();
|
|
5154
|
+
continue;
|
|
5155
|
+
case 5:
|
|
5156
|
+
if (tag !== 42) {
|
|
5157
|
+
break;
|
|
5158
|
+
}
|
|
5159
|
+
message.channel_id = reader.string();
|
|
5160
|
+
continue;
|
|
5161
|
+
}
|
|
5162
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
5163
|
+
break;
|
|
5164
|
+
}
|
|
5165
|
+
reader.skipType(tag & 7);
|
|
5166
|
+
}
|
|
5167
|
+
return message;
|
|
5168
|
+
},
|
|
5169
|
+
fromJSON(object) {
|
|
5170
|
+
return {
|
|
5171
|
+
id: isSet3(object.id) ? globalThis.String(object.id) : "",
|
|
5172
|
+
notification_setting_type: isSet3(object.notification_setting_type) ? globalThis.Number(object.notification_setting_type) : 0,
|
|
5173
|
+
time_mute: isSet3(object.time_mute) ? fromJsonTimestamp(object.time_mute) : void 0,
|
|
5174
|
+
active: isSet3(object.active) ? globalThis.Number(object.active) : 0,
|
|
5175
|
+
channel_id: isSet3(object.channel_id) ? globalThis.String(object.channel_id) : ""
|
|
5176
|
+
};
|
|
5177
|
+
},
|
|
5178
|
+
toJSON(message) {
|
|
5179
|
+
const obj = {};
|
|
5180
|
+
if (message.id !== "") {
|
|
5181
|
+
obj.id = message.id;
|
|
5182
|
+
}
|
|
5183
|
+
if (message.notification_setting_type !== 0) {
|
|
5184
|
+
obj.notification_setting_type = Math.round(message.notification_setting_type);
|
|
5185
|
+
}
|
|
5186
|
+
if (message.time_mute !== void 0) {
|
|
5187
|
+
obj.time_mute = message.time_mute.toISOString();
|
|
5188
|
+
}
|
|
5189
|
+
if (message.active !== 0) {
|
|
5190
|
+
obj.active = Math.round(message.active);
|
|
5191
|
+
}
|
|
5192
|
+
if (message.channel_id !== "") {
|
|
5193
|
+
obj.channel_id = message.channel_id;
|
|
5194
|
+
}
|
|
5195
|
+
return obj;
|
|
5196
|
+
},
|
|
5197
|
+
create(base) {
|
|
5198
|
+
return NotificationUserChannel.fromPartial(base != null ? base : {});
|
|
5199
|
+
},
|
|
5200
|
+
fromPartial(object) {
|
|
5201
|
+
var _a, _b, _c, _d, _e;
|
|
5202
|
+
const message = createBaseNotificationUserChannel();
|
|
5203
|
+
message.id = (_a = object.id) != null ? _a : "";
|
|
5204
|
+
message.notification_setting_type = (_b = object.notification_setting_type) != null ? _b : 0;
|
|
5205
|
+
message.time_mute = (_c = object.time_mute) != null ? _c : void 0;
|
|
5206
|
+
message.active = (_d = object.active) != null ? _d : 0;
|
|
5207
|
+
message.channel_id = (_e = object.channel_id) != null ? _e : "";
|
|
5208
|
+
return message;
|
|
5209
|
+
}
|
|
5210
|
+
};
|
|
5087
5211
|
function createBasePermissionList() {
|
|
5088
5212
|
return { permissions: [], max_level_permission: 0 };
|
|
5089
5213
|
}
|
|
@@ -6415,7 +6539,8 @@ function createBaseEnvelope() {
|
|
|
6415
6539
|
channel_app_event: void 0,
|
|
6416
6540
|
user_status_event: void 0,
|
|
6417
6541
|
remove_friend: void 0,
|
|
6418
|
-
webhook_event: void 0
|
|
6542
|
+
webhook_event: void 0,
|
|
6543
|
+
noti_user_channel: void 0
|
|
6419
6544
|
};
|
|
6420
6545
|
}
|
|
6421
6546
|
var Envelope = {
|
|
@@ -6633,6 +6758,9 @@ var Envelope = {
|
|
|
6633
6758
|
if (message.webhook_event !== void 0) {
|
|
6634
6759
|
Webhook.encode(message.webhook_event, writer.uint32(570).fork()).ldelim();
|
|
6635
6760
|
}
|
|
6761
|
+
if (message.noti_user_channel !== void 0) {
|
|
6762
|
+
NotificationUserChannel.encode(message.noti_user_channel, writer.uint32(578).fork()).ldelim();
|
|
6763
|
+
}
|
|
6636
6764
|
return writer;
|
|
6637
6765
|
},
|
|
6638
6766
|
decode(input, length) {
|
|
@@ -7068,6 +7196,12 @@ var Envelope = {
|
|
|
7068
7196
|
}
|
|
7069
7197
|
message.webhook_event = Webhook.decode(reader, reader.uint32());
|
|
7070
7198
|
continue;
|
|
7199
|
+
case 72:
|
|
7200
|
+
if (tag !== 578) {
|
|
7201
|
+
break;
|
|
7202
|
+
}
|
|
7203
|
+
message.noti_user_channel = NotificationUserChannel.decode(reader, reader.uint32());
|
|
7204
|
+
continue;
|
|
7071
7205
|
}
|
|
7072
7206
|
if ((tag & 7) === 4 || tag === 0) {
|
|
7073
7207
|
break;
|
|
@@ -7148,7 +7282,8 @@ var Envelope = {
|
|
|
7148
7282
|
channel_app_event: isSet4(object.channel_app_event) ? ChannelAppEvent.fromJSON(object.channel_app_event) : void 0,
|
|
7149
7283
|
user_status_event: isSet4(object.user_status_event) ? UserStatusEvent.fromJSON(object.user_status_event) : void 0,
|
|
7150
7284
|
remove_friend: isSet4(object.remove_friend) ? RemoveFriend.fromJSON(object.remove_friend) : void 0,
|
|
7151
|
-
webhook_event: isSet4(object.webhook_event) ? Webhook.fromJSON(object.webhook_event) : void 0
|
|
7285
|
+
webhook_event: isSet4(object.webhook_event) ? Webhook.fromJSON(object.webhook_event) : void 0,
|
|
7286
|
+
noti_user_channel: isSet4(object.noti_user_channel) ? NotificationUserChannel.fromJSON(object.noti_user_channel) : void 0
|
|
7152
7287
|
};
|
|
7153
7288
|
},
|
|
7154
7289
|
toJSON(message) {
|
|
@@ -7366,6 +7501,9 @@ var Envelope = {
|
|
|
7366
7501
|
if (message.webhook_event !== void 0) {
|
|
7367
7502
|
obj.webhook_event = Webhook.toJSON(message.webhook_event);
|
|
7368
7503
|
}
|
|
7504
|
+
if (message.noti_user_channel !== void 0) {
|
|
7505
|
+
obj.noti_user_channel = NotificationUserChannel.toJSON(message.noti_user_channel);
|
|
7506
|
+
}
|
|
7369
7507
|
return obj;
|
|
7370
7508
|
},
|
|
7371
7509
|
create(base) {
|
|
@@ -7445,6 +7583,7 @@ var Envelope = {
|
|
|
7445
7583
|
message.user_status_event = object.user_status_event !== void 0 && object.user_status_event !== null ? UserStatusEvent.fromPartial(object.user_status_event) : void 0;
|
|
7446
7584
|
message.remove_friend = object.remove_friend !== void 0 && object.remove_friend !== null ? RemoveFriend.fromPartial(object.remove_friend) : void 0;
|
|
7447
7585
|
message.webhook_event = object.webhook_event !== void 0 && object.webhook_event !== null ? Webhook.fromPartial(object.webhook_event) : void 0;
|
|
7586
|
+
message.noti_user_channel = object.noti_user_channel !== void 0 && object.noti_user_channel !== null ? NotificationUserChannel.fromPartial(object.noti_user_channel) : void 0;
|
|
7448
7587
|
return message;
|
|
7449
7588
|
}
|
|
7450
7589
|
};
|
|
@@ -3703,7 +3703,8 @@ function createBaseNotification() {
|
|
|
3703
3703
|
clan_id: "",
|
|
3704
3704
|
channel_id: "",
|
|
3705
3705
|
channel_type: 0,
|
|
3706
|
-
avatar_url: ""
|
|
3706
|
+
avatar_url: "",
|
|
3707
|
+
channel: void 0
|
|
3707
3708
|
};
|
|
3708
3709
|
}
|
|
3709
3710
|
var Notification = {
|
|
@@ -3741,6 +3742,9 @@ var Notification = {
|
|
|
3741
3742
|
if (message.avatar_url !== "") {
|
|
3742
3743
|
writer.uint32(90).string(message.avatar_url);
|
|
3743
3744
|
}
|
|
3745
|
+
if (message.channel !== void 0) {
|
|
3746
|
+
ChannelDescription.encode(message.channel, writer.uint32(98).fork()).ldelim();
|
|
3747
|
+
}
|
|
3744
3748
|
return writer;
|
|
3745
3749
|
},
|
|
3746
3750
|
decode(input, length) {
|
|
@@ -3816,6 +3820,12 @@ var Notification = {
|
|
|
3816
3820
|
}
|
|
3817
3821
|
message.avatar_url = reader.string();
|
|
3818
3822
|
continue;
|
|
3823
|
+
case 12:
|
|
3824
|
+
if (tag !== 98) {
|
|
3825
|
+
break;
|
|
3826
|
+
}
|
|
3827
|
+
message.channel = ChannelDescription.decode(reader, reader.uint32());
|
|
3828
|
+
continue;
|
|
3819
3829
|
}
|
|
3820
3830
|
if ((tag & 7) === 4 || tag === 0) {
|
|
3821
3831
|
break;
|
|
@@ -3836,7 +3846,8 @@ var Notification = {
|
|
|
3836
3846
|
clan_id: isSet3(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
3837
3847
|
channel_id: isSet3(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
3838
3848
|
channel_type: isSet3(object.channel_type) ? globalThis.Number(object.channel_type) : 0,
|
|
3839
|
-
avatar_url: isSet3(object.avatar_url) ? globalThis.String(object.avatar_url) : ""
|
|
3849
|
+
avatar_url: isSet3(object.avatar_url) ? globalThis.String(object.avatar_url) : "",
|
|
3850
|
+
channel: isSet3(object.channel) ? ChannelDescription.fromJSON(object.channel) : void 0
|
|
3840
3851
|
};
|
|
3841
3852
|
},
|
|
3842
3853
|
toJSON(message) {
|
|
@@ -3874,6 +3885,9 @@ var Notification = {
|
|
|
3874
3885
|
if (message.avatar_url !== "") {
|
|
3875
3886
|
obj.avatar_url = message.avatar_url;
|
|
3876
3887
|
}
|
|
3888
|
+
if (message.channel !== void 0) {
|
|
3889
|
+
obj.channel = ChannelDescription.toJSON(message.channel);
|
|
3890
|
+
}
|
|
3877
3891
|
return obj;
|
|
3878
3892
|
},
|
|
3879
3893
|
create(base) {
|
|
@@ -3893,6 +3907,7 @@ var Notification = {
|
|
|
3893
3907
|
message.channel_id = (_i = object.channel_id) != null ? _i : "";
|
|
3894
3908
|
message.channel_type = (_j = object.channel_type) != null ? _j : 0;
|
|
3895
3909
|
message.avatar_url = (_k = object.avatar_url) != null ? _k : "";
|
|
3910
|
+
message.channel = object.channel !== void 0 && object.channel !== null ? ChannelDescription.fromPartial(object.channel) : void 0;
|
|
3896
3911
|
return message;
|
|
3897
3912
|
}
|
|
3898
3913
|
};
|
|
@@ -5071,6 +5086,115 @@ var Permission = {
|
|
|
5071
5086
|
return message;
|
|
5072
5087
|
}
|
|
5073
5088
|
};
|
|
5089
|
+
function createBaseNotificationUserChannel() {
|
|
5090
|
+
return { id: "", notification_setting_type: 0, time_mute: void 0, active: 0, channel_id: "" };
|
|
5091
|
+
}
|
|
5092
|
+
var NotificationUserChannel = {
|
|
5093
|
+
encode(message, writer = import_minimal4.default.Writer.create()) {
|
|
5094
|
+
if (message.id !== "") {
|
|
5095
|
+
writer.uint32(10).string(message.id);
|
|
5096
|
+
}
|
|
5097
|
+
if (message.notification_setting_type !== 0) {
|
|
5098
|
+
writer.uint32(16).int32(message.notification_setting_type);
|
|
5099
|
+
}
|
|
5100
|
+
if (message.time_mute !== void 0) {
|
|
5101
|
+
Timestamp.encode(toTimestamp(message.time_mute), writer.uint32(26).fork()).ldelim();
|
|
5102
|
+
}
|
|
5103
|
+
if (message.active !== 0) {
|
|
5104
|
+
writer.uint32(32).int32(message.active);
|
|
5105
|
+
}
|
|
5106
|
+
if (message.channel_id !== "") {
|
|
5107
|
+
writer.uint32(42).string(message.channel_id);
|
|
5108
|
+
}
|
|
5109
|
+
return writer;
|
|
5110
|
+
},
|
|
5111
|
+
decode(input, length) {
|
|
5112
|
+
const reader = input instanceof import_minimal4.default.Reader ? input : import_minimal4.default.Reader.create(input);
|
|
5113
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
5114
|
+
const message = createBaseNotificationUserChannel();
|
|
5115
|
+
while (reader.pos < end) {
|
|
5116
|
+
const tag = reader.uint32();
|
|
5117
|
+
switch (tag >>> 3) {
|
|
5118
|
+
case 1:
|
|
5119
|
+
if (tag !== 10) {
|
|
5120
|
+
break;
|
|
5121
|
+
}
|
|
5122
|
+
message.id = reader.string();
|
|
5123
|
+
continue;
|
|
5124
|
+
case 2:
|
|
5125
|
+
if (tag !== 16) {
|
|
5126
|
+
break;
|
|
5127
|
+
}
|
|
5128
|
+
message.notification_setting_type = reader.int32();
|
|
5129
|
+
continue;
|
|
5130
|
+
case 3:
|
|
5131
|
+
if (tag !== 26) {
|
|
5132
|
+
break;
|
|
5133
|
+
}
|
|
5134
|
+
message.time_mute = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
5135
|
+
continue;
|
|
5136
|
+
case 4:
|
|
5137
|
+
if (tag !== 32) {
|
|
5138
|
+
break;
|
|
5139
|
+
}
|
|
5140
|
+
message.active = reader.int32();
|
|
5141
|
+
continue;
|
|
5142
|
+
case 5:
|
|
5143
|
+
if (tag !== 42) {
|
|
5144
|
+
break;
|
|
5145
|
+
}
|
|
5146
|
+
message.channel_id = reader.string();
|
|
5147
|
+
continue;
|
|
5148
|
+
}
|
|
5149
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
5150
|
+
break;
|
|
5151
|
+
}
|
|
5152
|
+
reader.skipType(tag & 7);
|
|
5153
|
+
}
|
|
5154
|
+
return message;
|
|
5155
|
+
},
|
|
5156
|
+
fromJSON(object) {
|
|
5157
|
+
return {
|
|
5158
|
+
id: isSet3(object.id) ? globalThis.String(object.id) : "",
|
|
5159
|
+
notification_setting_type: isSet3(object.notification_setting_type) ? globalThis.Number(object.notification_setting_type) : 0,
|
|
5160
|
+
time_mute: isSet3(object.time_mute) ? fromJsonTimestamp(object.time_mute) : void 0,
|
|
5161
|
+
active: isSet3(object.active) ? globalThis.Number(object.active) : 0,
|
|
5162
|
+
channel_id: isSet3(object.channel_id) ? globalThis.String(object.channel_id) : ""
|
|
5163
|
+
};
|
|
5164
|
+
},
|
|
5165
|
+
toJSON(message) {
|
|
5166
|
+
const obj = {};
|
|
5167
|
+
if (message.id !== "") {
|
|
5168
|
+
obj.id = message.id;
|
|
5169
|
+
}
|
|
5170
|
+
if (message.notification_setting_type !== 0) {
|
|
5171
|
+
obj.notification_setting_type = Math.round(message.notification_setting_type);
|
|
5172
|
+
}
|
|
5173
|
+
if (message.time_mute !== void 0) {
|
|
5174
|
+
obj.time_mute = message.time_mute.toISOString();
|
|
5175
|
+
}
|
|
5176
|
+
if (message.active !== 0) {
|
|
5177
|
+
obj.active = Math.round(message.active);
|
|
5178
|
+
}
|
|
5179
|
+
if (message.channel_id !== "") {
|
|
5180
|
+
obj.channel_id = message.channel_id;
|
|
5181
|
+
}
|
|
5182
|
+
return obj;
|
|
5183
|
+
},
|
|
5184
|
+
create(base) {
|
|
5185
|
+
return NotificationUserChannel.fromPartial(base != null ? base : {});
|
|
5186
|
+
},
|
|
5187
|
+
fromPartial(object) {
|
|
5188
|
+
var _a, _b, _c, _d, _e;
|
|
5189
|
+
const message = createBaseNotificationUserChannel();
|
|
5190
|
+
message.id = (_a = object.id) != null ? _a : "";
|
|
5191
|
+
message.notification_setting_type = (_b = object.notification_setting_type) != null ? _b : 0;
|
|
5192
|
+
message.time_mute = (_c = object.time_mute) != null ? _c : void 0;
|
|
5193
|
+
message.active = (_d = object.active) != null ? _d : 0;
|
|
5194
|
+
message.channel_id = (_e = object.channel_id) != null ? _e : "";
|
|
5195
|
+
return message;
|
|
5196
|
+
}
|
|
5197
|
+
};
|
|
5074
5198
|
function createBasePermissionList() {
|
|
5075
5199
|
return { permissions: [], max_level_permission: 0 };
|
|
5076
5200
|
}
|
|
@@ -6402,7 +6526,8 @@ function createBaseEnvelope() {
|
|
|
6402
6526
|
channel_app_event: void 0,
|
|
6403
6527
|
user_status_event: void 0,
|
|
6404
6528
|
remove_friend: void 0,
|
|
6405
|
-
webhook_event: void 0
|
|
6529
|
+
webhook_event: void 0,
|
|
6530
|
+
noti_user_channel: void 0
|
|
6406
6531
|
};
|
|
6407
6532
|
}
|
|
6408
6533
|
var Envelope = {
|
|
@@ -6620,6 +6745,9 @@ var Envelope = {
|
|
|
6620
6745
|
if (message.webhook_event !== void 0) {
|
|
6621
6746
|
Webhook.encode(message.webhook_event, writer.uint32(570).fork()).ldelim();
|
|
6622
6747
|
}
|
|
6748
|
+
if (message.noti_user_channel !== void 0) {
|
|
6749
|
+
NotificationUserChannel.encode(message.noti_user_channel, writer.uint32(578).fork()).ldelim();
|
|
6750
|
+
}
|
|
6623
6751
|
return writer;
|
|
6624
6752
|
},
|
|
6625
6753
|
decode(input, length) {
|
|
@@ -7055,6 +7183,12 @@ var Envelope = {
|
|
|
7055
7183
|
}
|
|
7056
7184
|
message.webhook_event = Webhook.decode(reader, reader.uint32());
|
|
7057
7185
|
continue;
|
|
7186
|
+
case 72:
|
|
7187
|
+
if (tag !== 578) {
|
|
7188
|
+
break;
|
|
7189
|
+
}
|
|
7190
|
+
message.noti_user_channel = NotificationUserChannel.decode(reader, reader.uint32());
|
|
7191
|
+
continue;
|
|
7058
7192
|
}
|
|
7059
7193
|
if ((tag & 7) === 4 || tag === 0) {
|
|
7060
7194
|
break;
|
|
@@ -7135,7 +7269,8 @@ var Envelope = {
|
|
|
7135
7269
|
channel_app_event: isSet4(object.channel_app_event) ? ChannelAppEvent.fromJSON(object.channel_app_event) : void 0,
|
|
7136
7270
|
user_status_event: isSet4(object.user_status_event) ? UserStatusEvent.fromJSON(object.user_status_event) : void 0,
|
|
7137
7271
|
remove_friend: isSet4(object.remove_friend) ? RemoveFriend.fromJSON(object.remove_friend) : void 0,
|
|
7138
|
-
webhook_event: isSet4(object.webhook_event) ? Webhook.fromJSON(object.webhook_event) : void 0
|
|
7272
|
+
webhook_event: isSet4(object.webhook_event) ? Webhook.fromJSON(object.webhook_event) : void 0,
|
|
7273
|
+
noti_user_channel: isSet4(object.noti_user_channel) ? NotificationUserChannel.fromJSON(object.noti_user_channel) : void 0
|
|
7139
7274
|
};
|
|
7140
7275
|
},
|
|
7141
7276
|
toJSON(message) {
|
|
@@ -7353,6 +7488,9 @@ var Envelope = {
|
|
|
7353
7488
|
if (message.webhook_event !== void 0) {
|
|
7354
7489
|
obj.webhook_event = Webhook.toJSON(message.webhook_event);
|
|
7355
7490
|
}
|
|
7491
|
+
if (message.noti_user_channel !== void 0) {
|
|
7492
|
+
obj.noti_user_channel = NotificationUserChannel.toJSON(message.noti_user_channel);
|
|
7493
|
+
}
|
|
7356
7494
|
return obj;
|
|
7357
7495
|
},
|
|
7358
7496
|
create(base) {
|
|
@@ -7432,6 +7570,7 @@ var Envelope = {
|
|
|
7432
7570
|
message.user_status_event = object.user_status_event !== void 0 && object.user_status_event !== null ? UserStatusEvent.fromPartial(object.user_status_event) : void 0;
|
|
7433
7571
|
message.remove_friend = object.remove_friend !== void 0 && object.remove_friend !== null ? RemoveFriend.fromPartial(object.remove_friend) : void 0;
|
|
7434
7572
|
message.webhook_event = object.webhook_event !== void 0 && object.webhook_event !== null ? Webhook.fromPartial(object.webhook_event) : void 0;
|
|
7573
|
+
message.noti_user_channel = object.noti_user_channel !== void 0 && object.noti_user_channel !== null ? NotificationUserChannel.fromPartial(object.noti_user_channel) : void 0;
|
|
7435
7574
|
return message;
|
|
7436
7575
|
}
|
|
7437
7576
|
};
|
package/package.json
CHANGED
package/rtapi/realtime.ts
CHANGED
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
MessageReaction,
|
|
18
18
|
MessageRef,
|
|
19
19
|
Notification,
|
|
20
|
+
NotificationUserChannel,
|
|
20
21
|
PermissionUpdate,
|
|
21
22
|
Role,
|
|
22
23
|
Rpc,
|
|
@@ -308,7 +309,11 @@ export interface Envelope {
|
|
|
308
309
|
| RemoveFriend
|
|
309
310
|
| undefined;
|
|
310
311
|
/** */
|
|
311
|
-
webhook_event?:
|
|
312
|
+
webhook_event?:
|
|
313
|
+
| Webhook
|
|
314
|
+
| undefined;
|
|
315
|
+
/** */
|
|
316
|
+
noti_user_channel?: NotificationUserChannel | undefined;
|
|
312
317
|
}
|
|
313
318
|
|
|
314
319
|
export interface FollowEvent {
|
|
@@ -1383,6 +1388,7 @@ function createBaseEnvelope(): Envelope {
|
|
|
1383
1388
|
user_status_event: undefined,
|
|
1384
1389
|
remove_friend: undefined,
|
|
1385
1390
|
webhook_event: undefined,
|
|
1391
|
+
noti_user_channel: undefined,
|
|
1386
1392
|
};
|
|
1387
1393
|
}
|
|
1388
1394
|
|
|
@@ -1601,6 +1607,9 @@ export const Envelope = {
|
|
|
1601
1607
|
if (message.webhook_event !== undefined) {
|
|
1602
1608
|
Webhook.encode(message.webhook_event, writer.uint32(570).fork()).ldelim();
|
|
1603
1609
|
}
|
|
1610
|
+
if (message.noti_user_channel !== undefined) {
|
|
1611
|
+
NotificationUserChannel.encode(message.noti_user_channel, writer.uint32(578).fork()).ldelim();
|
|
1612
|
+
}
|
|
1604
1613
|
return writer;
|
|
1605
1614
|
},
|
|
1606
1615
|
|
|
@@ -2108,6 +2117,13 @@ export const Envelope = {
|
|
|
2108
2117
|
|
|
2109
2118
|
message.webhook_event = Webhook.decode(reader, reader.uint32());
|
|
2110
2119
|
continue;
|
|
2120
|
+
case 72:
|
|
2121
|
+
if (tag !== 578) {
|
|
2122
|
+
break;
|
|
2123
|
+
}
|
|
2124
|
+
|
|
2125
|
+
message.noti_user_channel = NotificationUserChannel.decode(reader, reader.uint32());
|
|
2126
|
+
continue;
|
|
2111
2127
|
}
|
|
2112
2128
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2113
2129
|
break;
|
|
@@ -2282,6 +2298,9 @@ export const Envelope = {
|
|
|
2282
2298
|
: undefined,
|
|
2283
2299
|
remove_friend: isSet(object.remove_friend) ? RemoveFriend.fromJSON(object.remove_friend) : undefined,
|
|
2284
2300
|
webhook_event: isSet(object.webhook_event) ? Webhook.fromJSON(object.webhook_event) : undefined,
|
|
2301
|
+
noti_user_channel: isSet(object.noti_user_channel)
|
|
2302
|
+
? NotificationUserChannel.fromJSON(object.noti_user_channel)
|
|
2303
|
+
: undefined,
|
|
2285
2304
|
};
|
|
2286
2305
|
},
|
|
2287
2306
|
|
|
@@ -2500,6 +2519,9 @@ export const Envelope = {
|
|
|
2500
2519
|
if (message.webhook_event !== undefined) {
|
|
2501
2520
|
obj.webhook_event = Webhook.toJSON(message.webhook_event);
|
|
2502
2521
|
}
|
|
2522
|
+
if (message.noti_user_channel !== undefined) {
|
|
2523
|
+
obj.noti_user_channel = NotificationUserChannel.toJSON(message.noti_user_channel);
|
|
2524
|
+
}
|
|
2503
2525
|
return obj;
|
|
2504
2526
|
},
|
|
2505
2527
|
|
|
@@ -2735,6 +2757,9 @@ export const Envelope = {
|
|
|
2735
2757
|
message.webhook_event = (object.webhook_event !== undefined && object.webhook_event !== null)
|
|
2736
2758
|
? Webhook.fromPartial(object.webhook_event)
|
|
2737
2759
|
: undefined;
|
|
2760
|
+
message.noti_user_channel = (object.noti_user_channel !== undefined && object.noti_user_channel !== null)
|
|
2761
|
+
? NotificationUserChannel.fromPartial(object.noti_user_channel)
|
|
2762
|
+
: undefined;
|
|
2738
2763
|
return message;
|
|
2739
2764
|
},
|
|
2740
2765
|
};
|