mezon-js-protobuf 1.7.8 → 1.7.11
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 +1460 -442
- package/dist/mezon-js-protobuf/api/api.d.ts +914 -144
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +63 -15
- package/dist/mezon-js-protobuf.cjs.js +65 -9
- package/dist/mezon-js-protobuf.esm.mjs +65 -9
- package/google/protobuf/struct.ts +554 -554
- package/google/protobuf/timestamp.ts +223 -223
- package/google/protobuf/wrappers.ts +670 -670
- package/package.json +1 -1
- package/rtapi/realtime.ts +81 -13
package/package.json
CHANGED
package/rtapi/realtime.ts
CHANGED
|
@@ -1126,7 +1126,7 @@ export interface UserChannelRemoved {
|
|
|
1126
1126
|
user_ids: string[];
|
|
1127
1127
|
/** the channel type */
|
|
1128
1128
|
channel_type: number;
|
|
1129
|
-
/** the
|
|
1129
|
+
/** the clan_id */
|
|
1130
1130
|
clan_id: string;
|
|
1131
1131
|
}
|
|
1132
1132
|
|
|
@@ -1140,12 +1140,20 @@ export interface UserClanRemoved {
|
|
|
1140
1140
|
|
|
1141
1141
|
/** clan updated event */
|
|
1142
1142
|
export interface ClanUpdatedEvent {
|
|
1143
|
-
/**
|
|
1143
|
+
/** clan id */
|
|
1144
1144
|
clan_id: string;
|
|
1145
|
-
/**
|
|
1145
|
+
/** clan name */
|
|
1146
1146
|
clan_name: string;
|
|
1147
|
-
/**
|
|
1148
|
-
|
|
1147
|
+
/** logo */
|
|
1148
|
+
logo: string;
|
|
1149
|
+
/** banner */
|
|
1150
|
+
banner: string;
|
|
1151
|
+
/** status */
|
|
1152
|
+
status: number;
|
|
1153
|
+
/** is onboarding */
|
|
1154
|
+
is_onboarding: boolean;
|
|
1155
|
+
/** welcome channel id */
|
|
1156
|
+
welcome_channel_id: string;
|
|
1149
1157
|
}
|
|
1150
1158
|
|
|
1151
1159
|
/** clan profile updated event */
|
|
@@ -9444,7 +9452,7 @@ export const UserClanRemoved = {
|
|
|
9444
9452
|
};
|
|
9445
9453
|
|
|
9446
9454
|
function createBaseClanUpdatedEvent(): ClanUpdatedEvent {
|
|
9447
|
-
return { clan_id: "", clan_name: "",
|
|
9455
|
+
return { clan_id: "", clan_name: "", logo: "", banner: "", status: 0, is_onboarding: false, welcome_channel_id: "" };
|
|
9448
9456
|
}
|
|
9449
9457
|
|
|
9450
9458
|
export const ClanUpdatedEvent = {
|
|
@@ -9455,8 +9463,20 @@ export const ClanUpdatedEvent = {
|
|
|
9455
9463
|
if (message.clan_name !== "") {
|
|
9456
9464
|
writer.uint32(18).string(message.clan_name);
|
|
9457
9465
|
}
|
|
9458
|
-
if (message.
|
|
9459
|
-
writer.uint32(26).string(message.
|
|
9466
|
+
if (message.logo !== "") {
|
|
9467
|
+
writer.uint32(26).string(message.logo);
|
|
9468
|
+
}
|
|
9469
|
+
if (message.banner !== "") {
|
|
9470
|
+
writer.uint32(34).string(message.banner);
|
|
9471
|
+
}
|
|
9472
|
+
if (message.status !== 0) {
|
|
9473
|
+
writer.uint32(40).int32(message.status);
|
|
9474
|
+
}
|
|
9475
|
+
if (message.is_onboarding !== false) {
|
|
9476
|
+
writer.uint32(48).bool(message.is_onboarding);
|
|
9477
|
+
}
|
|
9478
|
+
if (message.welcome_channel_id !== "") {
|
|
9479
|
+
writer.uint32(58).string(message.welcome_channel_id);
|
|
9460
9480
|
}
|
|
9461
9481
|
return writer;
|
|
9462
9482
|
},
|
|
@@ -9487,7 +9507,35 @@ export const ClanUpdatedEvent = {
|
|
|
9487
9507
|
break;
|
|
9488
9508
|
}
|
|
9489
9509
|
|
|
9490
|
-
message.
|
|
9510
|
+
message.logo = reader.string();
|
|
9511
|
+
continue;
|
|
9512
|
+
case 4:
|
|
9513
|
+
if (tag !== 34) {
|
|
9514
|
+
break;
|
|
9515
|
+
}
|
|
9516
|
+
|
|
9517
|
+
message.banner = reader.string();
|
|
9518
|
+
continue;
|
|
9519
|
+
case 5:
|
|
9520
|
+
if (tag !== 40) {
|
|
9521
|
+
break;
|
|
9522
|
+
}
|
|
9523
|
+
|
|
9524
|
+
message.status = reader.int32();
|
|
9525
|
+
continue;
|
|
9526
|
+
case 6:
|
|
9527
|
+
if (tag !== 48) {
|
|
9528
|
+
break;
|
|
9529
|
+
}
|
|
9530
|
+
|
|
9531
|
+
message.is_onboarding = reader.bool();
|
|
9532
|
+
continue;
|
|
9533
|
+
case 7:
|
|
9534
|
+
if (tag !== 58) {
|
|
9535
|
+
break;
|
|
9536
|
+
}
|
|
9537
|
+
|
|
9538
|
+
message.welcome_channel_id = reader.string();
|
|
9491
9539
|
continue;
|
|
9492
9540
|
}
|
|
9493
9541
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -9502,7 +9550,11 @@ export const ClanUpdatedEvent = {
|
|
|
9502
9550
|
return {
|
|
9503
9551
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
9504
9552
|
clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
9505
|
-
|
|
9553
|
+
logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
|
|
9554
|
+
banner: isSet(object.banner) ? globalThis.String(object.banner) : "",
|
|
9555
|
+
status: isSet(object.status) ? globalThis.Number(object.status) : 0,
|
|
9556
|
+
is_onboarding: isSet(object.is_onboarding) ? globalThis.Boolean(object.is_onboarding) : false,
|
|
9557
|
+
welcome_channel_id: isSet(object.welcome_channel_id) ? globalThis.String(object.welcome_channel_id) : "",
|
|
9506
9558
|
};
|
|
9507
9559
|
},
|
|
9508
9560
|
|
|
@@ -9514,8 +9566,20 @@ export const ClanUpdatedEvent = {
|
|
|
9514
9566
|
if (message.clan_name !== "") {
|
|
9515
9567
|
obj.clan_name = message.clan_name;
|
|
9516
9568
|
}
|
|
9517
|
-
if (message.
|
|
9518
|
-
obj.
|
|
9569
|
+
if (message.logo !== "") {
|
|
9570
|
+
obj.logo = message.logo;
|
|
9571
|
+
}
|
|
9572
|
+
if (message.banner !== "") {
|
|
9573
|
+
obj.banner = message.banner;
|
|
9574
|
+
}
|
|
9575
|
+
if (message.status !== 0) {
|
|
9576
|
+
obj.status = Math.round(message.status);
|
|
9577
|
+
}
|
|
9578
|
+
if (message.is_onboarding !== false) {
|
|
9579
|
+
obj.is_onboarding = message.is_onboarding;
|
|
9580
|
+
}
|
|
9581
|
+
if (message.welcome_channel_id !== "") {
|
|
9582
|
+
obj.welcome_channel_id = message.welcome_channel_id;
|
|
9519
9583
|
}
|
|
9520
9584
|
return obj;
|
|
9521
9585
|
},
|
|
@@ -9527,7 +9591,11 @@ export const ClanUpdatedEvent = {
|
|
|
9527
9591
|
const message = createBaseClanUpdatedEvent();
|
|
9528
9592
|
message.clan_id = object.clan_id ?? "";
|
|
9529
9593
|
message.clan_name = object.clan_name ?? "";
|
|
9530
|
-
message.
|
|
9594
|
+
message.logo = object.logo ?? "";
|
|
9595
|
+
message.banner = object.banner ?? "";
|
|
9596
|
+
message.status = object.status ?? 0;
|
|
9597
|
+
message.is_onboarding = object.is_onboarding ?? false;
|
|
9598
|
+
message.welcome_channel_id = object.welcome_channel_id ?? "";
|
|
9531
9599
|
return message;
|
|
9532
9600
|
},
|
|
9533
9601
|
};
|