mezon-js-protobuf 1.5.33 → 1.5.34
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.
|
@@ -677,6 +677,8 @@ export interface UserChannelAdded {
|
|
|
677
677
|
clan_id: string;
|
|
678
678
|
/** the channel type */
|
|
679
679
|
channel_type: number;
|
|
680
|
+
/** is public */
|
|
681
|
+
is_public: boolean;
|
|
680
682
|
}
|
|
681
683
|
/** */
|
|
682
684
|
export interface UserChannelRemoved {
|
|
@@ -1209,6 +1211,7 @@ export declare const Envelope: {
|
|
|
1209
1211
|
status?: string | undefined;
|
|
1210
1212
|
clan_id?: string | undefined;
|
|
1211
1213
|
channel_type?: number | undefined;
|
|
1214
|
+
is_public?: boolean | undefined;
|
|
1212
1215
|
} | undefined;
|
|
1213
1216
|
user_channel_removed_event?: {
|
|
1214
1217
|
channel_id?: string | undefined;
|
|
@@ -2513,6 +2516,7 @@ export declare const Envelope: {
|
|
|
2513
2516
|
status?: string | undefined;
|
|
2514
2517
|
clan_id?: string | undefined;
|
|
2515
2518
|
channel_type?: number | undefined;
|
|
2519
|
+
is_public?: boolean | undefined;
|
|
2516
2520
|
} & {
|
|
2517
2521
|
channel_id?: string | undefined;
|
|
2518
2522
|
users?: ({
|
|
@@ -2535,6 +2539,7 @@ export declare const Envelope: {
|
|
|
2535
2539
|
status?: string | undefined;
|
|
2536
2540
|
clan_id?: string | undefined;
|
|
2537
2541
|
channel_type?: number | undefined;
|
|
2542
|
+
is_public?: boolean | undefined;
|
|
2538
2543
|
} & { [K_72 in Exclude<keyof I["user_channel_added_event"], keyof UserChannelAdded>]: never; }) | undefined;
|
|
2539
2544
|
user_channel_removed_event?: ({
|
|
2540
2545
|
channel_id?: string | undefined;
|
|
@@ -3910,6 +3915,7 @@ export declare const Envelope: {
|
|
|
3910
3915
|
status?: string | undefined;
|
|
3911
3916
|
clan_id?: string | undefined;
|
|
3912
3917
|
channel_type?: number | undefined;
|
|
3918
|
+
is_public?: boolean | undefined;
|
|
3913
3919
|
} | undefined;
|
|
3914
3920
|
user_channel_removed_event?: {
|
|
3915
3921
|
channel_id?: string | undefined;
|
|
@@ -5214,6 +5220,7 @@ export declare const Envelope: {
|
|
|
5214
5220
|
status?: string | undefined;
|
|
5215
5221
|
clan_id?: string | undefined;
|
|
5216
5222
|
channel_type?: number | undefined;
|
|
5223
|
+
is_public?: boolean | undefined;
|
|
5217
5224
|
} & {
|
|
5218
5225
|
channel_id?: string | undefined;
|
|
5219
5226
|
users?: ({
|
|
@@ -5236,6 +5243,7 @@ export declare const Envelope: {
|
|
|
5236
5243
|
status?: string | undefined;
|
|
5237
5244
|
clan_id?: string | undefined;
|
|
5238
5245
|
channel_type?: number | undefined;
|
|
5246
|
+
is_public?: boolean | undefined;
|
|
5239
5247
|
} & { [K_204 in Exclude<keyof I_1["user_channel_added_event"], keyof UserChannelAdded>]: never; }) | undefined;
|
|
5240
5248
|
user_channel_removed_event?: ({
|
|
5241
5249
|
channel_id?: string | undefined;
|
|
@@ -10302,6 +10310,7 @@ export declare const UserChannelAdded: {
|
|
|
10302
10310
|
status?: string | undefined;
|
|
10303
10311
|
clan_id?: string | undefined;
|
|
10304
10312
|
channel_type?: number | undefined;
|
|
10313
|
+
is_public?: boolean | undefined;
|
|
10305
10314
|
} & {
|
|
10306
10315
|
channel_id?: string | undefined;
|
|
10307
10316
|
users?: ({
|
|
@@ -10324,6 +10333,7 @@ export declare const UserChannelAdded: {
|
|
|
10324
10333
|
status?: string | undefined;
|
|
10325
10334
|
clan_id?: string | undefined;
|
|
10326
10335
|
channel_type?: number | undefined;
|
|
10336
|
+
is_public?: boolean | undefined;
|
|
10327
10337
|
} & { [K_2 in Exclude<keyof I, keyof UserChannelAdded>]: never; }>(base?: I | undefined): UserChannelAdded;
|
|
10328
10338
|
fromPartial<I_1 extends {
|
|
10329
10339
|
channel_id?: string | undefined;
|
|
@@ -10335,6 +10345,7 @@ export declare const UserChannelAdded: {
|
|
|
10335
10345
|
status?: string | undefined;
|
|
10336
10346
|
clan_id?: string | undefined;
|
|
10337
10347
|
channel_type?: number | undefined;
|
|
10348
|
+
is_public?: boolean | undefined;
|
|
10338
10349
|
} & {
|
|
10339
10350
|
channel_id?: string | undefined;
|
|
10340
10351
|
users?: ({
|
|
@@ -10357,6 +10368,7 @@ export declare const UserChannelAdded: {
|
|
|
10357
10368
|
status?: string | undefined;
|
|
10358
10369
|
clan_id?: string | undefined;
|
|
10359
10370
|
channel_type?: number | undefined;
|
|
10371
|
+
is_public?: boolean | undefined;
|
|
10360
10372
|
} & { [K_5 in Exclude<keyof I_1, keyof UserChannelAdded>]: never; }>(object: I_1): UserChannelAdded;
|
|
10361
10373
|
};
|
|
10362
10374
|
export declare const UserChannelRemoved: {
|
|
@@ -9161,7 +9161,7 @@ var AddUsers = {
|
|
|
9161
9161
|
}
|
|
9162
9162
|
};
|
|
9163
9163
|
function createBaseUserChannelAdded() {
|
|
9164
|
-
return { channel_id: "", users: [], status: "", clan_id: "", channel_type: 0 };
|
|
9164
|
+
return { channel_id: "", users: [], status: "", clan_id: "", channel_type: 0, is_public: false };
|
|
9165
9165
|
}
|
|
9166
9166
|
var UserChannelAdded = {
|
|
9167
9167
|
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
@@ -9180,6 +9180,9 @@ var UserChannelAdded = {
|
|
|
9180
9180
|
if (message.channel_type !== 0) {
|
|
9181
9181
|
writer.uint32(40).int32(message.channel_type);
|
|
9182
9182
|
}
|
|
9183
|
+
if (message.is_public === true) {
|
|
9184
|
+
writer.uint32(48).bool(message.is_public);
|
|
9185
|
+
}
|
|
9183
9186
|
return writer;
|
|
9184
9187
|
},
|
|
9185
9188
|
decode(input, length) {
|
|
@@ -9204,6 +9207,9 @@ var UserChannelAdded = {
|
|
|
9204
9207
|
case 5:
|
|
9205
9208
|
message.channel_type = reader.int32();
|
|
9206
9209
|
break;
|
|
9210
|
+
case 6:
|
|
9211
|
+
message.is_public = reader.bool();
|
|
9212
|
+
break;
|
|
9207
9213
|
default:
|
|
9208
9214
|
reader.skipType(tag & 7);
|
|
9209
9215
|
break;
|
|
@@ -9217,7 +9223,8 @@ var UserChannelAdded = {
|
|
|
9217
9223
|
users: Array.isArray(object == null ? void 0 : object.users) ? object.users.map((e) => AddUsers.fromJSON(e)) : [],
|
|
9218
9224
|
status: isSet4(object.status) ? String(object.status) : "",
|
|
9219
9225
|
clan_id: isSet4(object.clan_id) ? String(object.clan_id) : "",
|
|
9220
|
-
channel_type: isSet4(object.channel_type) ? Number(object.channel_type) : 0
|
|
9226
|
+
channel_type: isSet4(object.channel_type) ? Number(object.channel_type) : 0,
|
|
9227
|
+
is_public: isSet4(object.is_public) ? Boolean(object.is_public) : false
|
|
9221
9228
|
};
|
|
9222
9229
|
},
|
|
9223
9230
|
toJSON(message) {
|
|
@@ -9231,19 +9238,21 @@ var UserChannelAdded = {
|
|
|
9231
9238
|
message.status !== void 0 && (obj.status = message.status);
|
|
9232
9239
|
message.clan_id !== void 0 && (obj.clan_id = message.clan_id);
|
|
9233
9240
|
message.channel_type !== void 0 && (obj.channel_type = Math.round(message.channel_type));
|
|
9241
|
+
message.is_public !== void 0 && (obj.is_public = message.is_public);
|
|
9234
9242
|
return obj;
|
|
9235
9243
|
},
|
|
9236
9244
|
create(base) {
|
|
9237
9245
|
return UserChannelAdded.fromPartial(base != null ? base : {});
|
|
9238
9246
|
},
|
|
9239
9247
|
fromPartial(object) {
|
|
9240
|
-
var _a, _b, _c, _d, _e;
|
|
9248
|
+
var _a, _b, _c, _d, _e, _f;
|
|
9241
9249
|
const message = createBaseUserChannelAdded();
|
|
9242
9250
|
message.channel_id = (_a = object.channel_id) != null ? _a : "";
|
|
9243
9251
|
message.users = ((_b = object.users) == null ? void 0 : _b.map((e) => AddUsers.fromPartial(e))) || [];
|
|
9244
9252
|
message.status = (_c = object.status) != null ? _c : "";
|
|
9245
9253
|
message.clan_id = (_d = object.clan_id) != null ? _d : "";
|
|
9246
9254
|
message.channel_type = (_e = object.channel_type) != null ? _e : 0;
|
|
9255
|
+
message.is_public = (_f = object.is_public) != null ? _f : false;
|
|
9247
9256
|
return message;
|
|
9248
9257
|
}
|
|
9249
9258
|
};
|
|
@@ -9148,7 +9148,7 @@ var AddUsers = {
|
|
|
9148
9148
|
}
|
|
9149
9149
|
};
|
|
9150
9150
|
function createBaseUserChannelAdded() {
|
|
9151
|
-
return { channel_id: "", users: [], status: "", clan_id: "", channel_type: 0 };
|
|
9151
|
+
return { channel_id: "", users: [], status: "", clan_id: "", channel_type: 0, is_public: false };
|
|
9152
9152
|
}
|
|
9153
9153
|
var UserChannelAdded = {
|
|
9154
9154
|
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
@@ -9167,6 +9167,9 @@ var UserChannelAdded = {
|
|
|
9167
9167
|
if (message.channel_type !== 0) {
|
|
9168
9168
|
writer.uint32(40).int32(message.channel_type);
|
|
9169
9169
|
}
|
|
9170
|
+
if (message.is_public === true) {
|
|
9171
|
+
writer.uint32(48).bool(message.is_public);
|
|
9172
|
+
}
|
|
9170
9173
|
return writer;
|
|
9171
9174
|
},
|
|
9172
9175
|
decode(input, length) {
|
|
@@ -9191,6 +9194,9 @@ var UserChannelAdded = {
|
|
|
9191
9194
|
case 5:
|
|
9192
9195
|
message.channel_type = reader.int32();
|
|
9193
9196
|
break;
|
|
9197
|
+
case 6:
|
|
9198
|
+
message.is_public = reader.bool();
|
|
9199
|
+
break;
|
|
9194
9200
|
default:
|
|
9195
9201
|
reader.skipType(tag & 7);
|
|
9196
9202
|
break;
|
|
@@ -9204,7 +9210,8 @@ var UserChannelAdded = {
|
|
|
9204
9210
|
users: Array.isArray(object == null ? void 0 : object.users) ? object.users.map((e) => AddUsers.fromJSON(e)) : [],
|
|
9205
9211
|
status: isSet4(object.status) ? String(object.status) : "",
|
|
9206
9212
|
clan_id: isSet4(object.clan_id) ? String(object.clan_id) : "",
|
|
9207
|
-
channel_type: isSet4(object.channel_type) ? Number(object.channel_type) : 0
|
|
9213
|
+
channel_type: isSet4(object.channel_type) ? Number(object.channel_type) : 0,
|
|
9214
|
+
is_public: isSet4(object.is_public) ? Boolean(object.is_public) : false
|
|
9208
9215
|
};
|
|
9209
9216
|
},
|
|
9210
9217
|
toJSON(message) {
|
|
@@ -9218,19 +9225,21 @@ var UserChannelAdded = {
|
|
|
9218
9225
|
message.status !== void 0 && (obj.status = message.status);
|
|
9219
9226
|
message.clan_id !== void 0 && (obj.clan_id = message.clan_id);
|
|
9220
9227
|
message.channel_type !== void 0 && (obj.channel_type = Math.round(message.channel_type));
|
|
9228
|
+
message.is_public !== void 0 && (obj.is_public = message.is_public);
|
|
9221
9229
|
return obj;
|
|
9222
9230
|
},
|
|
9223
9231
|
create(base) {
|
|
9224
9232
|
return UserChannelAdded.fromPartial(base != null ? base : {});
|
|
9225
9233
|
},
|
|
9226
9234
|
fromPartial(object) {
|
|
9227
|
-
var _a, _b, _c, _d, _e;
|
|
9235
|
+
var _a, _b, _c, _d, _e, _f;
|
|
9228
9236
|
const message = createBaseUserChannelAdded();
|
|
9229
9237
|
message.channel_id = (_a = object.channel_id) != null ? _a : "";
|
|
9230
9238
|
message.users = ((_b = object.users) == null ? void 0 : _b.map((e) => AddUsers.fromPartial(e))) || [];
|
|
9231
9239
|
message.status = (_c = object.status) != null ? _c : "";
|
|
9232
9240
|
message.clan_id = (_d = object.clan_id) != null ? _d : "";
|
|
9233
9241
|
message.channel_type = (_e = object.channel_type) != null ? _e : 0;
|
|
9242
|
+
message.is_public = (_f = object.is_public) != null ? _f : false;
|
|
9234
9243
|
return message;
|
|
9235
9244
|
}
|
|
9236
9245
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.34",
|
|
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",
|
package/rtapi/realtime.ts
CHANGED
|
@@ -936,6 +936,8 @@ export interface UserChannelAdded {
|
|
|
936
936
|
clan_id: string;
|
|
937
937
|
/** the channel type */
|
|
938
938
|
channel_type: number;
|
|
939
|
+
/** is public */
|
|
940
|
+
is_public: boolean;
|
|
939
941
|
}
|
|
940
942
|
|
|
941
943
|
/** */
|
|
@@ -6256,7 +6258,7 @@ export const AddUsers = {
|
|
|
6256
6258
|
};
|
|
6257
6259
|
|
|
6258
6260
|
function createBaseUserChannelAdded(): UserChannelAdded {
|
|
6259
|
-
return { channel_id: "", users: [], status: "", clan_id: "", channel_type: 0 };
|
|
6261
|
+
return { channel_id: "", users: [], status: "", clan_id: "", channel_type: 0, is_public: false };
|
|
6260
6262
|
}
|
|
6261
6263
|
|
|
6262
6264
|
export const UserChannelAdded = {
|
|
@@ -6276,6 +6278,9 @@ export const UserChannelAdded = {
|
|
|
6276
6278
|
if (message.channel_type !== 0) {
|
|
6277
6279
|
writer.uint32(40).int32(message.channel_type);
|
|
6278
6280
|
}
|
|
6281
|
+
if (message.is_public === true) {
|
|
6282
|
+
writer.uint32(48).bool(message.is_public);
|
|
6283
|
+
}
|
|
6279
6284
|
return writer;
|
|
6280
6285
|
},
|
|
6281
6286
|
|
|
@@ -6301,6 +6306,9 @@ export const UserChannelAdded = {
|
|
|
6301
6306
|
case 5:
|
|
6302
6307
|
message.channel_type = reader.int32();
|
|
6303
6308
|
break;
|
|
6309
|
+
case 6:
|
|
6310
|
+
message.is_public = reader.bool();
|
|
6311
|
+
break;
|
|
6304
6312
|
default:
|
|
6305
6313
|
reader.skipType(tag & 7);
|
|
6306
6314
|
break;
|
|
@@ -6316,6 +6324,7 @@ export const UserChannelAdded = {
|
|
|
6316
6324
|
status: isSet(object.status) ? String(object.status) : "",
|
|
6317
6325
|
clan_id: isSet(object.clan_id) ? String(object.clan_id) : "",
|
|
6318
6326
|
channel_type: isSet(object.channel_type) ? Number(object.channel_type) : 0,
|
|
6327
|
+
is_public: isSet(object.is_public) ? Boolean(object.is_public) : false,
|
|
6319
6328
|
};
|
|
6320
6329
|
},
|
|
6321
6330
|
|
|
@@ -6330,6 +6339,7 @@ export const UserChannelAdded = {
|
|
|
6330
6339
|
message.status !== undefined && (obj.status = message.status);
|
|
6331
6340
|
message.clan_id !== undefined && (obj.clan_id = message.clan_id);
|
|
6332
6341
|
message.channel_type !== undefined && (obj.channel_type = Math.round(message.channel_type));
|
|
6342
|
+
message.is_public !== undefined && (obj.is_public = message.is_public);
|
|
6333
6343
|
return obj;
|
|
6334
6344
|
},
|
|
6335
6345
|
|
|
@@ -6344,6 +6354,7 @@ export const UserChannelAdded = {
|
|
|
6344
6354
|
message.status = object.status ?? "";
|
|
6345
6355
|
message.clan_id = object.clan_id ?? "";
|
|
6346
6356
|
message.channel_type = object.channel_type ?? 0;
|
|
6357
|
+
message.is_public = object.is_public ?? false;
|
|
6347
6358
|
return message;
|
|
6348
6359
|
},
|
|
6349
6360
|
};
|