mezon-js-protobuf 1.8.51 → 1.8.52
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.
|
@@ -187,6 +187,7 @@ export interface BannedUserEvent {
|
|
|
187
187
|
user_ids: string[];
|
|
188
188
|
action: number;
|
|
189
189
|
banner_id: string;
|
|
190
|
+
channel_id: string;
|
|
190
191
|
}
|
|
191
192
|
export interface ChannelCanvas {
|
|
192
193
|
/** id */
|
|
@@ -3321,6 +3322,7 @@ export declare const Envelope: {
|
|
|
3321
3322
|
user_ids?: string[] | undefined;
|
|
3322
3323
|
action?: number | undefined;
|
|
3323
3324
|
banner_id?: string | undefined;
|
|
3325
|
+
channel_id?: string | undefined;
|
|
3324
3326
|
} | undefined;
|
|
3325
3327
|
} & {
|
|
3326
3328
|
cid?: string | undefined;
|
|
@@ -11235,10 +11237,12 @@ export declare const Envelope: {
|
|
|
11235
11237
|
user_ids?: string[] | undefined;
|
|
11236
11238
|
action?: number | undefined;
|
|
11237
11239
|
banner_id?: string | undefined;
|
|
11240
|
+
channel_id?: string | undefined;
|
|
11238
11241
|
} & {
|
|
11239
11242
|
user_ids?: (string[] & string[] & { [K_392 in Exclude<keyof I["ban_user_event"]["user_ids"], keyof string[]>]: never; }) | undefined;
|
|
11240
11243
|
action?: number | undefined;
|
|
11241
11244
|
banner_id?: string | undefined;
|
|
11245
|
+
channel_id?: string | undefined;
|
|
11242
11246
|
} & { [K_393 in Exclude<keyof I["ban_user_event"], keyof BannedUserEvent>]: never; }) | undefined;
|
|
11243
11247
|
} & { [K_394 in Exclude<keyof I, keyof Envelope>]: never; }>(base?: I | undefined): Envelope;
|
|
11244
11248
|
fromPartial<I_1 extends {
|
|
@@ -13260,6 +13264,7 @@ export declare const Envelope: {
|
|
|
13260
13264
|
user_ids?: string[] | undefined;
|
|
13261
13265
|
action?: number | undefined;
|
|
13262
13266
|
banner_id?: string | undefined;
|
|
13267
|
+
channel_id?: string | undefined;
|
|
13263
13268
|
} | undefined;
|
|
13264
13269
|
} & {
|
|
13265
13270
|
cid?: string | undefined;
|
|
@@ -21174,10 +21179,12 @@ export declare const Envelope: {
|
|
|
21174
21179
|
user_ids?: string[] | undefined;
|
|
21175
21180
|
action?: number | undefined;
|
|
21176
21181
|
banner_id?: string | undefined;
|
|
21182
|
+
channel_id?: string | undefined;
|
|
21177
21183
|
} & {
|
|
21178
21184
|
user_ids?: (string[] & string[] & { [K_787 in Exclude<keyof I_1["ban_user_event"]["user_ids"], keyof string[]>]: never; }) | undefined;
|
|
21179
21185
|
action?: number | undefined;
|
|
21180
21186
|
banner_id?: string | undefined;
|
|
21187
|
+
channel_id?: string | undefined;
|
|
21181
21188
|
} & { [K_788 in Exclude<keyof I_1["ban_user_event"], keyof BannedUserEvent>]: never; }) | undefined;
|
|
21182
21189
|
} & { [K_789 in Exclude<keyof I_1, keyof Envelope>]: never; }>(object: I_1): Envelope;
|
|
21183
21190
|
};
|
|
@@ -21198,19 +21205,23 @@ export declare const BannedUserEvent: {
|
|
|
21198
21205
|
user_ids?: string[] | undefined;
|
|
21199
21206
|
action?: number | undefined;
|
|
21200
21207
|
banner_id?: string | undefined;
|
|
21208
|
+
channel_id?: string | undefined;
|
|
21201
21209
|
} & {
|
|
21202
21210
|
user_ids?: (string[] & string[] & { [K in Exclude<keyof I["user_ids"], keyof string[]>]: never; }) | undefined;
|
|
21203
21211
|
action?: number | undefined;
|
|
21204
21212
|
banner_id?: string | undefined;
|
|
21213
|
+
channel_id?: string | undefined;
|
|
21205
21214
|
} & { [K_1 in Exclude<keyof I, keyof BannedUserEvent>]: never; }>(base?: I | undefined): BannedUserEvent;
|
|
21206
21215
|
fromPartial<I_1 extends {
|
|
21207
21216
|
user_ids?: string[] | undefined;
|
|
21208
21217
|
action?: number | undefined;
|
|
21209
21218
|
banner_id?: string | undefined;
|
|
21219
|
+
channel_id?: string | undefined;
|
|
21210
21220
|
} & {
|
|
21211
21221
|
user_ids?: (string[] & string[] & { [K_2 in Exclude<keyof I_1["user_ids"], keyof string[]>]: never; }) | undefined;
|
|
21212
21222
|
action?: number | undefined;
|
|
21213
21223
|
banner_id?: string | undefined;
|
|
21224
|
+
channel_id?: string | undefined;
|
|
21214
21225
|
} & { [K_3 in Exclude<keyof I_1, keyof BannedUserEvent>]: never; }>(object: I_1): BannedUserEvent;
|
|
21215
21226
|
};
|
|
21216
21227
|
export declare const ChannelCanvas: {
|
|
@@ -15842,7 +15842,7 @@ var FollowEvent = {
|
|
|
15842
15842
|
}
|
|
15843
15843
|
};
|
|
15844
15844
|
function createBaseBannedUserEvent() {
|
|
15845
|
-
return { user_ids: [], action: 0, banner_id: "" };
|
|
15845
|
+
return { user_ids: [], action: 0, banner_id: "", channel_id: "" };
|
|
15846
15846
|
}
|
|
15847
15847
|
var BannedUserEvent = {
|
|
15848
15848
|
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
@@ -15855,6 +15855,9 @@ var BannedUserEvent = {
|
|
|
15855
15855
|
if (message.banner_id !== "") {
|
|
15856
15856
|
writer.uint32(26).string(message.banner_id);
|
|
15857
15857
|
}
|
|
15858
|
+
if (message.channel_id !== "") {
|
|
15859
|
+
writer.uint32(34).string(message.channel_id);
|
|
15860
|
+
}
|
|
15858
15861
|
return writer;
|
|
15859
15862
|
},
|
|
15860
15863
|
decode(input, length) {
|
|
@@ -15882,6 +15885,12 @@ var BannedUserEvent = {
|
|
|
15882
15885
|
}
|
|
15883
15886
|
message.banner_id = reader.string();
|
|
15884
15887
|
continue;
|
|
15888
|
+
case 4:
|
|
15889
|
+
if (tag !== 34) {
|
|
15890
|
+
break;
|
|
15891
|
+
}
|
|
15892
|
+
message.channel_id = reader.string();
|
|
15893
|
+
continue;
|
|
15885
15894
|
}
|
|
15886
15895
|
if ((tag & 7) === 4 || tag === 0) {
|
|
15887
15896
|
break;
|
|
@@ -15894,7 +15903,8 @@ var BannedUserEvent = {
|
|
|
15894
15903
|
return {
|
|
15895
15904
|
user_ids: globalThis.Array.isArray(object == null ? void 0 : object.user_ids) ? object.user_ids.map((e) => globalThis.String(e)) : [],
|
|
15896
15905
|
action: isSet4(object.action) ? globalThis.Number(object.action) : 0,
|
|
15897
|
-
banner_id: isSet4(object.banner_id) ? globalThis.String(object.banner_id) : ""
|
|
15906
|
+
banner_id: isSet4(object.banner_id) ? globalThis.String(object.banner_id) : "",
|
|
15907
|
+
channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : ""
|
|
15898
15908
|
};
|
|
15899
15909
|
},
|
|
15900
15910
|
toJSON(message) {
|
|
@@ -15909,17 +15919,21 @@ var BannedUserEvent = {
|
|
|
15909
15919
|
if (message.banner_id !== "") {
|
|
15910
15920
|
obj.banner_id = message.banner_id;
|
|
15911
15921
|
}
|
|
15922
|
+
if (message.channel_id !== "") {
|
|
15923
|
+
obj.channel_id = message.channel_id;
|
|
15924
|
+
}
|
|
15912
15925
|
return obj;
|
|
15913
15926
|
},
|
|
15914
15927
|
create(base) {
|
|
15915
15928
|
return BannedUserEvent.fromPartial(base != null ? base : {});
|
|
15916
15929
|
},
|
|
15917
15930
|
fromPartial(object) {
|
|
15918
|
-
var _a, _b, _c;
|
|
15931
|
+
var _a, _b, _c, _d;
|
|
15919
15932
|
const message = createBaseBannedUserEvent();
|
|
15920
15933
|
message.user_ids = ((_a = object.user_ids) == null ? void 0 : _a.map((e) => e)) || [];
|
|
15921
15934
|
message.action = (_b = object.action) != null ? _b : 0;
|
|
15922
15935
|
message.banner_id = (_c = object.banner_id) != null ? _c : "";
|
|
15936
|
+
message.channel_id = (_d = object.channel_id) != null ? _d : "";
|
|
15923
15937
|
return message;
|
|
15924
15938
|
}
|
|
15925
15939
|
};
|
|
@@ -15829,7 +15829,7 @@ var FollowEvent = {
|
|
|
15829
15829
|
}
|
|
15830
15830
|
};
|
|
15831
15831
|
function createBaseBannedUserEvent() {
|
|
15832
|
-
return { user_ids: [], action: 0, banner_id: "" };
|
|
15832
|
+
return { user_ids: [], action: 0, banner_id: "", channel_id: "" };
|
|
15833
15833
|
}
|
|
15834
15834
|
var BannedUserEvent = {
|
|
15835
15835
|
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
@@ -15842,6 +15842,9 @@ var BannedUserEvent = {
|
|
|
15842
15842
|
if (message.banner_id !== "") {
|
|
15843
15843
|
writer.uint32(26).string(message.banner_id);
|
|
15844
15844
|
}
|
|
15845
|
+
if (message.channel_id !== "") {
|
|
15846
|
+
writer.uint32(34).string(message.channel_id);
|
|
15847
|
+
}
|
|
15845
15848
|
return writer;
|
|
15846
15849
|
},
|
|
15847
15850
|
decode(input, length) {
|
|
@@ -15869,6 +15872,12 @@ var BannedUserEvent = {
|
|
|
15869
15872
|
}
|
|
15870
15873
|
message.banner_id = reader.string();
|
|
15871
15874
|
continue;
|
|
15875
|
+
case 4:
|
|
15876
|
+
if (tag !== 34) {
|
|
15877
|
+
break;
|
|
15878
|
+
}
|
|
15879
|
+
message.channel_id = reader.string();
|
|
15880
|
+
continue;
|
|
15872
15881
|
}
|
|
15873
15882
|
if ((tag & 7) === 4 || tag === 0) {
|
|
15874
15883
|
break;
|
|
@@ -15881,7 +15890,8 @@ var BannedUserEvent = {
|
|
|
15881
15890
|
return {
|
|
15882
15891
|
user_ids: globalThis.Array.isArray(object == null ? void 0 : object.user_ids) ? object.user_ids.map((e) => globalThis.String(e)) : [],
|
|
15883
15892
|
action: isSet4(object.action) ? globalThis.Number(object.action) : 0,
|
|
15884
|
-
banner_id: isSet4(object.banner_id) ? globalThis.String(object.banner_id) : ""
|
|
15893
|
+
banner_id: isSet4(object.banner_id) ? globalThis.String(object.banner_id) : "",
|
|
15894
|
+
channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : ""
|
|
15885
15895
|
};
|
|
15886
15896
|
},
|
|
15887
15897
|
toJSON(message) {
|
|
@@ -15896,17 +15906,21 @@ var BannedUserEvent = {
|
|
|
15896
15906
|
if (message.banner_id !== "") {
|
|
15897
15907
|
obj.banner_id = message.banner_id;
|
|
15898
15908
|
}
|
|
15909
|
+
if (message.channel_id !== "") {
|
|
15910
|
+
obj.channel_id = message.channel_id;
|
|
15911
|
+
}
|
|
15899
15912
|
return obj;
|
|
15900
15913
|
},
|
|
15901
15914
|
create(base) {
|
|
15902
15915
|
return BannedUserEvent.fromPartial(base != null ? base : {});
|
|
15903
15916
|
},
|
|
15904
15917
|
fromPartial(object) {
|
|
15905
|
-
var _a, _b, _c;
|
|
15918
|
+
var _a, _b, _c, _d;
|
|
15906
15919
|
const message = createBaseBannedUserEvent();
|
|
15907
15920
|
message.user_ids = ((_a = object.user_ids) == null ? void 0 : _a.map((e) => e)) || [];
|
|
15908
15921
|
message.action = (_b = object.action) != null ? _b : 0;
|
|
15909
15922
|
message.banner_id = (_c = object.banner_id) != null ? _c : "";
|
|
15923
|
+
message.channel_id = (_d = object.channel_id) != null ? _d : "";
|
|
15910
15924
|
return message;
|
|
15911
15925
|
}
|
|
15912
15926
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.52",
|
|
4
4
|
"description": "Websocket adapter adding protocol buffer support to the Mezon Javascript client.",
|
|
5
5
|
"main": "dist/mezon-js-protobuf.cjs.js",
|
|
6
6
|
"module": "dist/mezon-js-protobuf.esm.mjs",
|