mezon-js-protobuf 1.7.46 → 1.7.48
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 +210 -9
- package/dist/mezon-js-protobuf/api/api.d.ts +224 -165
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +184 -116
- package/dist/mezon-js-protobuf.cjs.js +43 -14
- package/dist/mezon-js-protobuf.esm.mjs +43 -14
- package/package.json +1 -1
- package/rtapi/realtime.ts +39 -2
|
@@ -4071,7 +4071,7 @@ function createBaseChannelMessageHeader() {
|
|
|
4071
4071
|
sender_id: "",
|
|
4072
4072
|
content: "",
|
|
4073
4073
|
attachment: "",
|
|
4074
|
-
|
|
4074
|
+
reference: "",
|
|
4075
4075
|
mention: "",
|
|
4076
4076
|
reaction: "",
|
|
4077
4077
|
repliers: []
|
|
@@ -4094,8 +4094,8 @@ var ChannelMessageHeader = {
|
|
|
4094
4094
|
if (message.attachment !== "") {
|
|
4095
4095
|
writer.uint32(42).string(message.attachment);
|
|
4096
4096
|
}
|
|
4097
|
-
if (message.
|
|
4098
|
-
writer.uint32(50).string(message.
|
|
4097
|
+
if (message.reference !== "") {
|
|
4098
|
+
writer.uint32(50).string(message.reference);
|
|
4099
4099
|
}
|
|
4100
4100
|
if (message.mention !== "") {
|
|
4101
4101
|
writer.uint32(58).string(message.mention);
|
|
@@ -4149,7 +4149,7 @@ var ChannelMessageHeader = {
|
|
|
4149
4149
|
if (tag !== 50) {
|
|
4150
4150
|
break;
|
|
4151
4151
|
}
|
|
4152
|
-
message.
|
|
4152
|
+
message.reference = reader.string();
|
|
4153
4153
|
continue;
|
|
4154
4154
|
case 7:
|
|
4155
4155
|
if (tag !== 58) {
|
|
@@ -4184,7 +4184,7 @@ var ChannelMessageHeader = {
|
|
|
4184
4184
|
sender_id: isSet3(object.sender_id) ? globalThis.String(object.sender_id) : "",
|
|
4185
4185
|
content: isSet3(object.content) ? globalThis.String(object.content) : "",
|
|
4186
4186
|
attachment: isSet3(object.attachment) ? globalThis.String(object.attachment) : "",
|
|
4187
|
-
|
|
4187
|
+
reference: isSet3(object.reference) ? globalThis.String(object.reference) : "",
|
|
4188
4188
|
mention: isSet3(object.mention) ? globalThis.String(object.mention) : "",
|
|
4189
4189
|
reaction: isSet3(object.reaction) ? globalThis.String(object.reaction) : "",
|
|
4190
4190
|
repliers: globalThis.Array.isArray(object == null ? void 0 : object.repliers) ? object.repliers.map((e) => globalThis.String(e)) : []
|
|
@@ -4208,8 +4208,8 @@ var ChannelMessageHeader = {
|
|
|
4208
4208
|
if (message.attachment !== "") {
|
|
4209
4209
|
obj.attachment = message.attachment;
|
|
4210
4210
|
}
|
|
4211
|
-
if (message.
|
|
4212
|
-
obj.
|
|
4211
|
+
if (message.reference !== "") {
|
|
4212
|
+
obj.reference = message.reference;
|
|
4213
4213
|
}
|
|
4214
4214
|
if (message.mention !== "") {
|
|
4215
4215
|
obj.mention = message.mention;
|
|
@@ -4233,7 +4233,7 @@ var ChannelMessageHeader = {
|
|
|
4233
4233
|
message.sender_id = (_c = object.sender_id) != null ? _c : "";
|
|
4234
4234
|
message.content = (_d = object.content) != null ? _d : "";
|
|
4235
4235
|
message.attachment = (_e = object.attachment) != null ? _e : "";
|
|
4236
|
-
message.
|
|
4236
|
+
message.reference = (_f = object.reference) != null ? _f : "";
|
|
4237
4237
|
message.mention = (_g = object.mention) != null ? _g : "";
|
|
4238
4238
|
message.reaction = (_h = object.reaction) != null ? _h : "";
|
|
4239
4239
|
message.repliers = ((_i = object.repliers) == null ? void 0 : _i.map((e) => e)) || [];
|
|
@@ -8324,7 +8324,7 @@ var WebrtcSignalingFwd = {
|
|
|
8324
8324
|
}
|
|
8325
8325
|
};
|
|
8326
8326
|
function createBaseAddClanUserEvent() {
|
|
8327
|
-
return { clan_id: "", user: void 0 };
|
|
8327
|
+
return { clan_id: "", user: void 0, invitor: "" };
|
|
8328
8328
|
}
|
|
8329
8329
|
var AddClanUserEvent = {
|
|
8330
8330
|
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
@@ -8334,6 +8334,9 @@ var AddClanUserEvent = {
|
|
|
8334
8334
|
if (message.user !== void 0) {
|
|
8335
8335
|
UserProfileRedis.encode(message.user, writer.uint32(18).fork()).ldelim();
|
|
8336
8336
|
}
|
|
8337
|
+
if (message.invitor !== "") {
|
|
8338
|
+
writer.uint32(26).string(message.invitor);
|
|
8339
|
+
}
|
|
8337
8340
|
return writer;
|
|
8338
8341
|
},
|
|
8339
8342
|
decode(input, length) {
|
|
@@ -8355,6 +8358,12 @@ var AddClanUserEvent = {
|
|
|
8355
8358
|
}
|
|
8356
8359
|
message.user = UserProfileRedis.decode(reader, reader.uint32());
|
|
8357
8360
|
continue;
|
|
8361
|
+
case 3:
|
|
8362
|
+
if (tag !== 26) {
|
|
8363
|
+
break;
|
|
8364
|
+
}
|
|
8365
|
+
message.invitor = reader.string();
|
|
8366
|
+
continue;
|
|
8358
8367
|
}
|
|
8359
8368
|
if ((tag & 7) === 4 || tag === 0) {
|
|
8360
8369
|
break;
|
|
@@ -8366,7 +8375,8 @@ var AddClanUserEvent = {
|
|
|
8366
8375
|
fromJSON(object) {
|
|
8367
8376
|
return {
|
|
8368
8377
|
clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
8369
|
-
user: isSet4(object.user) ? UserProfileRedis.fromJSON(object.user) : void 0
|
|
8378
|
+
user: isSet4(object.user) ? UserProfileRedis.fromJSON(object.user) : void 0,
|
|
8379
|
+
invitor: isSet4(object.invitor) ? globalThis.String(object.invitor) : ""
|
|
8370
8380
|
};
|
|
8371
8381
|
},
|
|
8372
8382
|
toJSON(message) {
|
|
@@ -8377,16 +8387,20 @@ var AddClanUserEvent = {
|
|
|
8377
8387
|
if (message.user !== void 0) {
|
|
8378
8388
|
obj.user = UserProfileRedis.toJSON(message.user);
|
|
8379
8389
|
}
|
|
8390
|
+
if (message.invitor !== "") {
|
|
8391
|
+
obj.invitor = message.invitor;
|
|
8392
|
+
}
|
|
8380
8393
|
return obj;
|
|
8381
8394
|
},
|
|
8382
8395
|
create(base) {
|
|
8383
8396
|
return AddClanUserEvent.fromPartial(base != null ? base : {});
|
|
8384
8397
|
},
|
|
8385
8398
|
fromPartial(object) {
|
|
8386
|
-
var _a;
|
|
8399
|
+
var _a, _b;
|
|
8387
8400
|
const message = createBaseAddClanUserEvent();
|
|
8388
8401
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
8389
8402
|
message.user = object.user !== void 0 && object.user !== null ? UserProfileRedis.fromPartial(object.user) : void 0;
|
|
8403
|
+
message.invitor = (_b = object.invitor) != null ? _b : "";
|
|
8390
8404
|
return message;
|
|
8391
8405
|
}
|
|
8392
8406
|
};
|
|
@@ -14114,7 +14128,8 @@ function createBaseUserProfileRedis() {
|
|
|
14114
14128
|
pubkey: "",
|
|
14115
14129
|
mezon_id: "",
|
|
14116
14130
|
app_token: "",
|
|
14117
|
-
app_url: ""
|
|
14131
|
+
app_url: "",
|
|
14132
|
+
is_bot: false
|
|
14118
14133
|
};
|
|
14119
14134
|
}
|
|
14120
14135
|
var UserProfileRedis = {
|
|
@@ -14167,6 +14182,9 @@ var UserProfileRedis = {
|
|
|
14167
14182
|
if (message.app_url !== "") {
|
|
14168
14183
|
writer.uint32(130).string(message.app_url);
|
|
14169
14184
|
}
|
|
14185
|
+
if (message.is_bot !== false) {
|
|
14186
|
+
writer.uint32(136).bool(message.is_bot);
|
|
14187
|
+
}
|
|
14170
14188
|
return writer;
|
|
14171
14189
|
},
|
|
14172
14190
|
decode(input, length) {
|
|
@@ -14272,6 +14290,12 @@ var UserProfileRedis = {
|
|
|
14272
14290
|
}
|
|
14273
14291
|
message.app_url = reader.string();
|
|
14274
14292
|
continue;
|
|
14293
|
+
case 17:
|
|
14294
|
+
if (tag !== 136) {
|
|
14295
|
+
break;
|
|
14296
|
+
}
|
|
14297
|
+
message.is_bot = reader.bool();
|
|
14298
|
+
continue;
|
|
14275
14299
|
}
|
|
14276
14300
|
if ((tag & 7) === 4 || tag === 0) {
|
|
14277
14301
|
break;
|
|
@@ -14297,7 +14321,8 @@ var UserProfileRedis = {
|
|
|
14297
14321
|
pubkey: isSet4(object.pubkey) ? globalThis.String(object.pubkey) : "",
|
|
14298
14322
|
mezon_id: isSet4(object.mezon_id) ? globalThis.String(object.mezon_id) : "",
|
|
14299
14323
|
app_token: isSet4(object.app_token) ? globalThis.String(object.app_token) : "",
|
|
14300
|
-
app_url: isSet4(object.app_url) ? globalThis.String(object.app_url) : ""
|
|
14324
|
+
app_url: isSet4(object.app_url) ? globalThis.String(object.app_url) : "",
|
|
14325
|
+
is_bot: isSet4(object.is_bot) ? globalThis.Boolean(object.is_bot) : false
|
|
14301
14326
|
};
|
|
14302
14327
|
},
|
|
14303
14328
|
toJSON(message) {
|
|
@@ -14351,13 +14376,16 @@ var UserProfileRedis = {
|
|
|
14351
14376
|
if (message.app_url !== "") {
|
|
14352
14377
|
obj.app_url = message.app_url;
|
|
14353
14378
|
}
|
|
14379
|
+
if (message.is_bot !== false) {
|
|
14380
|
+
obj.is_bot = message.is_bot;
|
|
14381
|
+
}
|
|
14354
14382
|
return obj;
|
|
14355
14383
|
},
|
|
14356
14384
|
create(base) {
|
|
14357
14385
|
return UserProfileRedis.fromPartial(base != null ? base : {});
|
|
14358
14386
|
},
|
|
14359
14387
|
fromPartial(object) {
|
|
14360
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
|
|
14388
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
|
|
14361
14389
|
const message = createBaseUserProfileRedis();
|
|
14362
14390
|
message.user_id = (_a = object.user_id) != null ? _a : "";
|
|
14363
14391
|
message.username = (_b = object.username) != null ? _b : "";
|
|
@@ -14375,6 +14403,7 @@ var UserProfileRedis = {
|
|
|
14375
14403
|
message.mezon_id = (_n = object.mezon_id) != null ? _n : "";
|
|
14376
14404
|
message.app_token = (_o = object.app_token) != null ? _o : "";
|
|
14377
14405
|
message.app_url = (_p = object.app_url) != null ? _p : "";
|
|
14406
|
+
message.is_bot = (_q = object.is_bot) != null ? _q : false;
|
|
14378
14407
|
return message;
|
|
14379
14408
|
}
|
|
14380
14409
|
};
|
|
@@ -4058,7 +4058,7 @@ function createBaseChannelMessageHeader() {
|
|
|
4058
4058
|
sender_id: "",
|
|
4059
4059
|
content: "",
|
|
4060
4060
|
attachment: "",
|
|
4061
|
-
|
|
4061
|
+
reference: "",
|
|
4062
4062
|
mention: "",
|
|
4063
4063
|
reaction: "",
|
|
4064
4064
|
repliers: []
|
|
@@ -4081,8 +4081,8 @@ var ChannelMessageHeader = {
|
|
|
4081
4081
|
if (message.attachment !== "") {
|
|
4082
4082
|
writer.uint32(42).string(message.attachment);
|
|
4083
4083
|
}
|
|
4084
|
-
if (message.
|
|
4085
|
-
writer.uint32(50).string(message.
|
|
4084
|
+
if (message.reference !== "") {
|
|
4085
|
+
writer.uint32(50).string(message.reference);
|
|
4086
4086
|
}
|
|
4087
4087
|
if (message.mention !== "") {
|
|
4088
4088
|
writer.uint32(58).string(message.mention);
|
|
@@ -4136,7 +4136,7 @@ var ChannelMessageHeader = {
|
|
|
4136
4136
|
if (tag !== 50) {
|
|
4137
4137
|
break;
|
|
4138
4138
|
}
|
|
4139
|
-
message.
|
|
4139
|
+
message.reference = reader.string();
|
|
4140
4140
|
continue;
|
|
4141
4141
|
case 7:
|
|
4142
4142
|
if (tag !== 58) {
|
|
@@ -4171,7 +4171,7 @@ var ChannelMessageHeader = {
|
|
|
4171
4171
|
sender_id: isSet3(object.sender_id) ? globalThis.String(object.sender_id) : "",
|
|
4172
4172
|
content: isSet3(object.content) ? globalThis.String(object.content) : "",
|
|
4173
4173
|
attachment: isSet3(object.attachment) ? globalThis.String(object.attachment) : "",
|
|
4174
|
-
|
|
4174
|
+
reference: isSet3(object.reference) ? globalThis.String(object.reference) : "",
|
|
4175
4175
|
mention: isSet3(object.mention) ? globalThis.String(object.mention) : "",
|
|
4176
4176
|
reaction: isSet3(object.reaction) ? globalThis.String(object.reaction) : "",
|
|
4177
4177
|
repliers: globalThis.Array.isArray(object == null ? void 0 : object.repliers) ? object.repliers.map((e) => globalThis.String(e)) : []
|
|
@@ -4195,8 +4195,8 @@ var ChannelMessageHeader = {
|
|
|
4195
4195
|
if (message.attachment !== "") {
|
|
4196
4196
|
obj.attachment = message.attachment;
|
|
4197
4197
|
}
|
|
4198
|
-
if (message.
|
|
4199
|
-
obj.
|
|
4198
|
+
if (message.reference !== "") {
|
|
4199
|
+
obj.reference = message.reference;
|
|
4200
4200
|
}
|
|
4201
4201
|
if (message.mention !== "") {
|
|
4202
4202
|
obj.mention = message.mention;
|
|
@@ -4220,7 +4220,7 @@ var ChannelMessageHeader = {
|
|
|
4220
4220
|
message.sender_id = (_c = object.sender_id) != null ? _c : "";
|
|
4221
4221
|
message.content = (_d = object.content) != null ? _d : "";
|
|
4222
4222
|
message.attachment = (_e = object.attachment) != null ? _e : "";
|
|
4223
|
-
message.
|
|
4223
|
+
message.reference = (_f = object.reference) != null ? _f : "";
|
|
4224
4224
|
message.mention = (_g = object.mention) != null ? _g : "";
|
|
4225
4225
|
message.reaction = (_h = object.reaction) != null ? _h : "";
|
|
4226
4226
|
message.repliers = ((_i = object.repliers) == null ? void 0 : _i.map((e) => e)) || [];
|
|
@@ -8311,7 +8311,7 @@ var WebrtcSignalingFwd = {
|
|
|
8311
8311
|
}
|
|
8312
8312
|
};
|
|
8313
8313
|
function createBaseAddClanUserEvent() {
|
|
8314
|
-
return { clan_id: "", user: void 0 };
|
|
8314
|
+
return { clan_id: "", user: void 0, invitor: "" };
|
|
8315
8315
|
}
|
|
8316
8316
|
var AddClanUserEvent = {
|
|
8317
8317
|
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
@@ -8321,6 +8321,9 @@ var AddClanUserEvent = {
|
|
|
8321
8321
|
if (message.user !== void 0) {
|
|
8322
8322
|
UserProfileRedis.encode(message.user, writer.uint32(18).fork()).ldelim();
|
|
8323
8323
|
}
|
|
8324
|
+
if (message.invitor !== "") {
|
|
8325
|
+
writer.uint32(26).string(message.invitor);
|
|
8326
|
+
}
|
|
8324
8327
|
return writer;
|
|
8325
8328
|
},
|
|
8326
8329
|
decode(input, length) {
|
|
@@ -8342,6 +8345,12 @@ var AddClanUserEvent = {
|
|
|
8342
8345
|
}
|
|
8343
8346
|
message.user = UserProfileRedis.decode(reader, reader.uint32());
|
|
8344
8347
|
continue;
|
|
8348
|
+
case 3:
|
|
8349
|
+
if (tag !== 26) {
|
|
8350
|
+
break;
|
|
8351
|
+
}
|
|
8352
|
+
message.invitor = reader.string();
|
|
8353
|
+
continue;
|
|
8345
8354
|
}
|
|
8346
8355
|
if ((tag & 7) === 4 || tag === 0) {
|
|
8347
8356
|
break;
|
|
@@ -8353,7 +8362,8 @@ var AddClanUserEvent = {
|
|
|
8353
8362
|
fromJSON(object) {
|
|
8354
8363
|
return {
|
|
8355
8364
|
clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
8356
|
-
user: isSet4(object.user) ? UserProfileRedis.fromJSON(object.user) : void 0
|
|
8365
|
+
user: isSet4(object.user) ? UserProfileRedis.fromJSON(object.user) : void 0,
|
|
8366
|
+
invitor: isSet4(object.invitor) ? globalThis.String(object.invitor) : ""
|
|
8357
8367
|
};
|
|
8358
8368
|
},
|
|
8359
8369
|
toJSON(message) {
|
|
@@ -8364,16 +8374,20 @@ var AddClanUserEvent = {
|
|
|
8364
8374
|
if (message.user !== void 0) {
|
|
8365
8375
|
obj.user = UserProfileRedis.toJSON(message.user);
|
|
8366
8376
|
}
|
|
8377
|
+
if (message.invitor !== "") {
|
|
8378
|
+
obj.invitor = message.invitor;
|
|
8379
|
+
}
|
|
8367
8380
|
return obj;
|
|
8368
8381
|
},
|
|
8369
8382
|
create(base) {
|
|
8370
8383
|
return AddClanUserEvent.fromPartial(base != null ? base : {});
|
|
8371
8384
|
},
|
|
8372
8385
|
fromPartial(object) {
|
|
8373
|
-
var _a;
|
|
8386
|
+
var _a, _b;
|
|
8374
8387
|
const message = createBaseAddClanUserEvent();
|
|
8375
8388
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
8376
8389
|
message.user = object.user !== void 0 && object.user !== null ? UserProfileRedis.fromPartial(object.user) : void 0;
|
|
8390
|
+
message.invitor = (_b = object.invitor) != null ? _b : "";
|
|
8377
8391
|
return message;
|
|
8378
8392
|
}
|
|
8379
8393
|
};
|
|
@@ -14101,7 +14115,8 @@ function createBaseUserProfileRedis() {
|
|
|
14101
14115
|
pubkey: "",
|
|
14102
14116
|
mezon_id: "",
|
|
14103
14117
|
app_token: "",
|
|
14104
|
-
app_url: ""
|
|
14118
|
+
app_url: "",
|
|
14119
|
+
is_bot: false
|
|
14105
14120
|
};
|
|
14106
14121
|
}
|
|
14107
14122
|
var UserProfileRedis = {
|
|
@@ -14154,6 +14169,9 @@ var UserProfileRedis = {
|
|
|
14154
14169
|
if (message.app_url !== "") {
|
|
14155
14170
|
writer.uint32(130).string(message.app_url);
|
|
14156
14171
|
}
|
|
14172
|
+
if (message.is_bot !== false) {
|
|
14173
|
+
writer.uint32(136).bool(message.is_bot);
|
|
14174
|
+
}
|
|
14157
14175
|
return writer;
|
|
14158
14176
|
},
|
|
14159
14177
|
decode(input, length) {
|
|
@@ -14259,6 +14277,12 @@ var UserProfileRedis = {
|
|
|
14259
14277
|
}
|
|
14260
14278
|
message.app_url = reader.string();
|
|
14261
14279
|
continue;
|
|
14280
|
+
case 17:
|
|
14281
|
+
if (tag !== 136) {
|
|
14282
|
+
break;
|
|
14283
|
+
}
|
|
14284
|
+
message.is_bot = reader.bool();
|
|
14285
|
+
continue;
|
|
14262
14286
|
}
|
|
14263
14287
|
if ((tag & 7) === 4 || tag === 0) {
|
|
14264
14288
|
break;
|
|
@@ -14284,7 +14308,8 @@ var UserProfileRedis = {
|
|
|
14284
14308
|
pubkey: isSet4(object.pubkey) ? globalThis.String(object.pubkey) : "",
|
|
14285
14309
|
mezon_id: isSet4(object.mezon_id) ? globalThis.String(object.mezon_id) : "",
|
|
14286
14310
|
app_token: isSet4(object.app_token) ? globalThis.String(object.app_token) : "",
|
|
14287
|
-
app_url: isSet4(object.app_url) ? globalThis.String(object.app_url) : ""
|
|
14311
|
+
app_url: isSet4(object.app_url) ? globalThis.String(object.app_url) : "",
|
|
14312
|
+
is_bot: isSet4(object.is_bot) ? globalThis.Boolean(object.is_bot) : false
|
|
14288
14313
|
};
|
|
14289
14314
|
},
|
|
14290
14315
|
toJSON(message) {
|
|
@@ -14338,13 +14363,16 @@ var UserProfileRedis = {
|
|
|
14338
14363
|
if (message.app_url !== "") {
|
|
14339
14364
|
obj.app_url = message.app_url;
|
|
14340
14365
|
}
|
|
14366
|
+
if (message.is_bot !== false) {
|
|
14367
|
+
obj.is_bot = message.is_bot;
|
|
14368
|
+
}
|
|
14341
14369
|
return obj;
|
|
14342
14370
|
},
|
|
14343
14371
|
create(base) {
|
|
14344
14372
|
return UserProfileRedis.fromPartial(base != null ? base : {});
|
|
14345
14373
|
},
|
|
14346
14374
|
fromPartial(object) {
|
|
14347
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
|
|
14375
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
|
|
14348
14376
|
const message = createBaseUserProfileRedis();
|
|
14349
14377
|
message.user_id = (_a = object.user_id) != null ? _a : "";
|
|
14350
14378
|
message.username = (_b = object.username) != null ? _b : "";
|
|
@@ -14362,6 +14390,7 @@ var UserProfileRedis = {
|
|
|
14362
14390
|
message.mezon_id = (_n = object.mezon_id) != null ? _n : "";
|
|
14363
14391
|
message.app_token = (_o = object.app_token) != null ? _o : "";
|
|
14364
14392
|
message.app_url = (_p = object.app_url) != null ? _p : "";
|
|
14393
|
+
message.is_bot = (_q = object.is_bot) != null ? _q : false;
|
|
14365
14394
|
return message;
|
|
14366
14395
|
}
|
|
14367
14396
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.48",
|
|
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
|
@@ -386,7 +386,11 @@ export interface AddClanUserEvent {
|
|
|
386
386
|
/** the clan id */
|
|
387
387
|
clan_id: string;
|
|
388
388
|
/** the user */
|
|
389
|
-
user:
|
|
389
|
+
user:
|
|
390
|
+
| UserProfileRedis
|
|
391
|
+
| undefined;
|
|
392
|
+
/** inviter */
|
|
393
|
+
invitor: string;
|
|
390
394
|
}
|
|
391
395
|
|
|
392
396
|
/** On role assign */
|
|
@@ -1285,6 +1289,8 @@ export interface UserProfileRedis {
|
|
|
1285
1289
|
app_token: string;
|
|
1286
1290
|
/** app url */
|
|
1287
1291
|
app_url: string;
|
|
1292
|
+
/** is bot */
|
|
1293
|
+
is_bot: boolean;
|
|
1288
1294
|
}
|
|
1289
1295
|
|
|
1290
1296
|
export interface FCMTokens {
|
|
@@ -3561,7 +3567,7 @@ export const SFUSignalingFwd = {
|
|
|
3561
3567
|
};
|
|
3562
3568
|
|
|
3563
3569
|
function createBaseAddClanUserEvent(): AddClanUserEvent {
|
|
3564
|
-
return { clan_id: "", user: undefined };
|
|
3570
|
+
return { clan_id: "", user: undefined, invitor: "" };
|
|
3565
3571
|
}
|
|
3566
3572
|
|
|
3567
3573
|
export const AddClanUserEvent = {
|
|
@@ -3572,6 +3578,9 @@ export const AddClanUserEvent = {
|
|
|
3572
3578
|
if (message.user !== undefined) {
|
|
3573
3579
|
UserProfileRedis.encode(message.user, writer.uint32(18).fork()).ldelim();
|
|
3574
3580
|
}
|
|
3581
|
+
if (message.invitor !== "") {
|
|
3582
|
+
writer.uint32(26).string(message.invitor);
|
|
3583
|
+
}
|
|
3575
3584
|
return writer;
|
|
3576
3585
|
},
|
|
3577
3586
|
|
|
@@ -3596,6 +3605,13 @@ export const AddClanUserEvent = {
|
|
|
3596
3605
|
|
|
3597
3606
|
message.user = UserProfileRedis.decode(reader, reader.uint32());
|
|
3598
3607
|
continue;
|
|
3608
|
+
case 3:
|
|
3609
|
+
if (tag !== 26) {
|
|
3610
|
+
break;
|
|
3611
|
+
}
|
|
3612
|
+
|
|
3613
|
+
message.invitor = reader.string();
|
|
3614
|
+
continue;
|
|
3599
3615
|
}
|
|
3600
3616
|
if ((tag & 7) === 4 || tag === 0) {
|
|
3601
3617
|
break;
|
|
@@ -3609,6 +3625,7 @@ export const AddClanUserEvent = {
|
|
|
3609
3625
|
return {
|
|
3610
3626
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
3611
3627
|
user: isSet(object.user) ? UserProfileRedis.fromJSON(object.user) : undefined,
|
|
3628
|
+
invitor: isSet(object.invitor) ? globalThis.String(object.invitor) : "",
|
|
3612
3629
|
};
|
|
3613
3630
|
},
|
|
3614
3631
|
|
|
@@ -3620,6 +3637,9 @@ export const AddClanUserEvent = {
|
|
|
3620
3637
|
if (message.user !== undefined) {
|
|
3621
3638
|
obj.user = UserProfileRedis.toJSON(message.user);
|
|
3622
3639
|
}
|
|
3640
|
+
if (message.invitor !== "") {
|
|
3641
|
+
obj.invitor = message.invitor;
|
|
3642
|
+
}
|
|
3623
3643
|
return obj;
|
|
3624
3644
|
},
|
|
3625
3645
|
|
|
@@ -3632,6 +3652,7 @@ export const AddClanUserEvent = {
|
|
|
3632
3652
|
message.user = (object.user !== undefined && object.user !== null)
|
|
3633
3653
|
? UserProfileRedis.fromPartial(object.user)
|
|
3634
3654
|
: undefined;
|
|
3655
|
+
message.invitor = object.invitor ?? "";
|
|
3635
3656
|
return message;
|
|
3636
3657
|
},
|
|
3637
3658
|
};
|
|
@@ -10508,6 +10529,7 @@ function createBaseUserProfileRedis(): UserProfileRedis {
|
|
|
10508
10529
|
mezon_id: "",
|
|
10509
10530
|
app_token: "",
|
|
10510
10531
|
app_url: "",
|
|
10532
|
+
is_bot: false,
|
|
10511
10533
|
};
|
|
10512
10534
|
}
|
|
10513
10535
|
|
|
@@ -10561,6 +10583,9 @@ export const UserProfileRedis = {
|
|
|
10561
10583
|
if (message.app_url !== "") {
|
|
10562
10584
|
writer.uint32(130).string(message.app_url);
|
|
10563
10585
|
}
|
|
10586
|
+
if (message.is_bot !== false) {
|
|
10587
|
+
writer.uint32(136).bool(message.is_bot);
|
|
10588
|
+
}
|
|
10564
10589
|
return writer;
|
|
10565
10590
|
},
|
|
10566
10591
|
|
|
@@ -10683,6 +10708,13 @@ export const UserProfileRedis = {
|
|
|
10683
10708
|
|
|
10684
10709
|
message.app_url = reader.string();
|
|
10685
10710
|
continue;
|
|
10711
|
+
case 17:
|
|
10712
|
+
if (tag !== 136) {
|
|
10713
|
+
break;
|
|
10714
|
+
}
|
|
10715
|
+
|
|
10716
|
+
message.is_bot = reader.bool();
|
|
10717
|
+
continue;
|
|
10686
10718
|
}
|
|
10687
10719
|
if ((tag & 7) === 4 || tag === 0) {
|
|
10688
10720
|
break;
|
|
@@ -10714,6 +10746,7 @@ export const UserProfileRedis = {
|
|
|
10714
10746
|
mezon_id: isSet(object.mezon_id) ? globalThis.String(object.mezon_id) : "",
|
|
10715
10747
|
app_token: isSet(object.app_token) ? globalThis.String(object.app_token) : "",
|
|
10716
10748
|
app_url: isSet(object.app_url) ? globalThis.String(object.app_url) : "",
|
|
10749
|
+
is_bot: isSet(object.is_bot) ? globalThis.Boolean(object.is_bot) : false,
|
|
10717
10750
|
};
|
|
10718
10751
|
},
|
|
10719
10752
|
|
|
@@ -10767,6 +10800,9 @@ export const UserProfileRedis = {
|
|
|
10767
10800
|
if (message.app_url !== "") {
|
|
10768
10801
|
obj.app_url = message.app_url;
|
|
10769
10802
|
}
|
|
10803
|
+
if (message.is_bot !== false) {
|
|
10804
|
+
obj.is_bot = message.is_bot;
|
|
10805
|
+
}
|
|
10770
10806
|
return obj;
|
|
10771
10807
|
},
|
|
10772
10808
|
|
|
@@ -10791,6 +10827,7 @@ export const UserProfileRedis = {
|
|
|
10791
10827
|
message.mezon_id = object.mezon_id ?? "";
|
|
10792
10828
|
message.app_token = object.app_token ?? "";
|
|
10793
10829
|
message.app_url = object.app_url ?? "";
|
|
10830
|
+
message.is_bot = object.is_bot ?? false;
|
|
10794
10831
|
return message;
|
|
10795
10832
|
},
|
|
10796
10833
|
};
|