mezon-js-protobuf 1.7.47 → 1.8.1
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 +626 -3665
- package/dist/mezon-js-protobuf/api/api.d.ts +282 -1886
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +68 -0
- package/dist/mezon-js-protobuf.cjs.js +35 -6
- package/dist/mezon-js-protobuf.esm.mjs +35 -6
- package/package.json +1 -1
- package/rtapi/realtime.ts +39 -2
|
@@ -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
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
|
};
|