mezon-js-protobuf 1.8.88 → 1.8.89
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 +117 -129
- package/dist/mezon-js/api/api.d.ts +235 -235
- package/dist/mezon-js/utils.d.ts +1 -1
- package/dist/mezon-js-protobuf/api/api.d.ts +235 -235
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +479 -479
- package/dist/mezon-js-protobuf.cjs.js +288 -210
- package/dist/mezon-js-protobuf.esm.mjs +288 -210
- package/package.json +1 -1
- package/rtapi/realtime.ts +304 -181
package/api/api.ts
CHANGED
|
@@ -247,7 +247,7 @@ export interface SessionLogoutRequest {
|
|
|
247
247
|
/** Refresh token to invalidate. */
|
|
248
248
|
refresh_token: string;
|
|
249
249
|
/** Device Id */
|
|
250
|
-
device_id:
|
|
250
|
+
device_id: string;
|
|
251
251
|
/** FCM token from firebase */
|
|
252
252
|
fcm_token: string;
|
|
253
253
|
/** platform */
|
|
@@ -420,7 +420,7 @@ export interface MessageAttachment {
|
|
|
420
420
|
/** Attachment file name */
|
|
421
421
|
filename: string;
|
|
422
422
|
/** Attachment file size */
|
|
423
|
-
size:
|
|
423
|
+
size: number;
|
|
424
424
|
/** Attachment url */
|
|
425
425
|
url: string;
|
|
426
426
|
/** Attachment file type */
|
|
@@ -641,7 +641,7 @@ export interface ChannelUserList_ChannelUser {
|
|
|
641
641
|
/** clan Id */
|
|
642
642
|
clan_id: bigint;
|
|
643
643
|
/** added by */
|
|
644
|
-
added_by:
|
|
644
|
+
added_by: bigint;
|
|
645
645
|
/** is banned */
|
|
646
646
|
is_banned: boolean;
|
|
647
647
|
/** expired time */
|
|
@@ -679,7 +679,7 @@ export interface ChannelAttachment {
|
|
|
679
679
|
/** url */
|
|
680
680
|
url: string;
|
|
681
681
|
/** uploader */
|
|
682
|
-
uploader:
|
|
682
|
+
uploader: bigint;
|
|
683
683
|
/** timestamp */
|
|
684
684
|
create_time_seconds: number;
|
|
685
685
|
/** message id. */
|
|
@@ -1108,7 +1108,7 @@ export interface User {
|
|
|
1108
1108
|
/** dob */
|
|
1109
1109
|
dob_seconds: number;
|
|
1110
1110
|
/** Mezone id */
|
|
1111
|
-
mezon_id:
|
|
1111
|
+
mezon_id: string;
|
|
1112
1112
|
/** list clan nick name */
|
|
1113
1113
|
list_nick_names: string[];
|
|
1114
1114
|
/** online, offline, invisible, idle, do not disturb */
|
|
@@ -2664,7 +2664,7 @@ export interface SystemMessage {
|
|
|
2664
2664
|
/** Setup tips */
|
|
2665
2665
|
setup_tips: string;
|
|
2666
2666
|
/** Hide audit log */
|
|
2667
|
-
hide_audit_log:
|
|
2667
|
+
hide_audit_log: boolean;
|
|
2668
2668
|
}
|
|
2669
2669
|
|
|
2670
2670
|
/** List of system message. */
|
|
@@ -2829,7 +2829,7 @@ export interface RoleListEventResponse {
|
|
|
2829
2829
|
/** cursor */
|
|
2830
2830
|
cursor: string;
|
|
2831
2831
|
/** clan_id */
|
|
2832
|
-
clanId:
|
|
2832
|
+
clanId: bigint;
|
|
2833
2833
|
/** list of roles */
|
|
2834
2834
|
roles: RoleList | undefined;
|
|
2835
2835
|
}
|
|
@@ -3208,7 +3208,7 @@ export interface TokenSentEvent {
|
|
|
3208
3208
|
/** extra attribute */
|
|
3209
3209
|
extra_attribute: string;
|
|
3210
3210
|
/** transaction id */
|
|
3211
|
-
transaction_id:
|
|
3211
|
+
transaction_id: string;
|
|
3212
3212
|
}
|
|
3213
3213
|
|
|
3214
3214
|
export interface UnlockItemRequest {
|
|
@@ -3541,7 +3541,7 @@ export interface MezonOauthClient {
|
|
|
3541
3541
|
backchannel_logout_session_required: boolean;
|
|
3542
3542
|
backchannel_logout_uri: string;
|
|
3543
3543
|
client_credentials_grant_access_token_lifespan: string;
|
|
3544
|
-
client_id:
|
|
3544
|
+
client_id: string;
|
|
3545
3545
|
client_name: string;
|
|
3546
3546
|
client_secret: string;
|
|
3547
3547
|
client_secret_expires_at: number;
|
|
@@ -3586,7 +3586,7 @@ export interface MezonOauthClientList {
|
|
|
3586
3586
|
}
|
|
3587
3587
|
|
|
3588
3588
|
export interface GetMezonOauthClientRequest {
|
|
3589
|
-
client_id:
|
|
3589
|
+
client_id: string;
|
|
3590
3590
|
client_name: string;
|
|
3591
3591
|
}
|
|
3592
3592
|
|
|
@@ -3717,7 +3717,7 @@ export interface LogedDeviceList {
|
|
|
3717
3717
|
}
|
|
3718
3718
|
|
|
3719
3719
|
export interface LogedDevice {
|
|
3720
|
-
device_id:
|
|
3720
|
+
device_id: string;
|
|
3721
3721
|
device_name: string;
|
|
3722
3722
|
login_at_seconds: number;
|
|
3723
3723
|
status: number;
|
|
@@ -4616,7 +4616,7 @@ export const SessionRefreshRequest_VarsEntry = {
|
|
|
4616
4616
|
};
|
|
4617
4617
|
|
|
4618
4618
|
function createBaseSessionLogoutRequest(): SessionLogoutRequest {
|
|
4619
|
-
return { token: "", refresh_token: "", device_id:
|
|
4619
|
+
return { token: "", refresh_token: "", device_id: "", fcm_token: "", platform: "" };
|
|
4620
4620
|
}
|
|
4621
4621
|
|
|
4622
4622
|
export const SessionLogoutRequest = {
|
|
@@ -4627,11 +4627,8 @@ export const SessionLogoutRequest = {
|
|
|
4627
4627
|
if (message.refresh_token !== "") {
|
|
4628
4628
|
writer.uint32(18).string(message.refresh_token);
|
|
4629
4629
|
}
|
|
4630
|
-
if (message.device_id !==
|
|
4631
|
-
|
|
4632
|
-
throw new globalThis.Error("value provided for field message.device_id of type int64 too large");
|
|
4633
|
-
}
|
|
4634
|
-
writer.uint32(24).int64(message.device_id.toString());
|
|
4630
|
+
if (message.device_id !== "") {
|
|
4631
|
+
writer.uint32(26).string(message.device_id);
|
|
4635
4632
|
}
|
|
4636
4633
|
if (message.fcm_token !== "") {
|
|
4637
4634
|
writer.uint32(34).string(message.fcm_token);
|
|
@@ -4664,11 +4661,11 @@ export const SessionLogoutRequest = {
|
|
|
4664
4661
|
message.refresh_token = reader.string();
|
|
4665
4662
|
continue;
|
|
4666
4663
|
case 3:
|
|
4667
|
-
if (tag !==
|
|
4664
|
+
if (tag !== 26) {
|
|
4668
4665
|
break;
|
|
4669
4666
|
}
|
|
4670
4667
|
|
|
4671
|
-
message.device_id =
|
|
4668
|
+
message.device_id = reader.string();
|
|
4672
4669
|
continue;
|
|
4673
4670
|
case 4:
|
|
4674
4671
|
if (tag !== 34) {
|
|
@@ -4697,7 +4694,7 @@ export const SessionLogoutRequest = {
|
|
|
4697
4694
|
return {
|
|
4698
4695
|
token: isSet(object.token) ? globalThis.String(object.token) : "",
|
|
4699
4696
|
refresh_token: isSet(object.refresh_token) ? globalThis.String(object.refresh_token) : "",
|
|
4700
|
-
device_id: isSet(object.device_id) ?
|
|
4697
|
+
device_id: isSet(object.device_id) ? globalThis.String(object.device_id) : "",
|
|
4701
4698
|
fcm_token: isSet(object.fcm_token) ? globalThis.String(object.fcm_token) : "",
|
|
4702
4699
|
platform: isSet(object.platform) ? globalThis.String(object.platform) : "",
|
|
4703
4700
|
};
|
|
@@ -4711,8 +4708,8 @@ export const SessionLogoutRequest = {
|
|
|
4711
4708
|
if (message.refresh_token !== "") {
|
|
4712
4709
|
obj.refresh_token = message.refresh_token;
|
|
4713
4710
|
}
|
|
4714
|
-
if (message.device_id !==
|
|
4715
|
-
obj.device_id = message.device_id
|
|
4711
|
+
if (message.device_id !== "") {
|
|
4712
|
+
obj.device_id = message.device_id;
|
|
4716
4713
|
}
|
|
4717
4714
|
if (message.fcm_token !== "") {
|
|
4718
4715
|
obj.fcm_token = message.fcm_token;
|
|
@@ -4730,7 +4727,7 @@ export const SessionLogoutRequest = {
|
|
|
4730
4727
|
const message = createBaseSessionLogoutRequest();
|
|
4731
4728
|
message.token = object.token ?? "";
|
|
4732
4729
|
message.refresh_token = object.refresh_token ?? "";
|
|
4733
|
-
message.device_id = object.device_id ??
|
|
4730
|
+
message.device_id = object.device_id ?? "";
|
|
4734
4731
|
message.fcm_token = object.fcm_token ?? "";
|
|
4735
4732
|
message.platform = object.platform ?? "";
|
|
4736
4733
|
return message;
|
|
@@ -6241,7 +6238,7 @@ export const MessageReaction = {
|
|
|
6241
6238
|
};
|
|
6242
6239
|
|
|
6243
6240
|
function createBaseMessageAttachment(): MessageAttachment {
|
|
6244
|
-
return { filename: "", size:
|
|
6241
|
+
return { filename: "", size: 0, url: "", filetype: "", width: 0, height: 0, thumbnail: "", duration: 0 };
|
|
6245
6242
|
}
|
|
6246
6243
|
|
|
6247
6244
|
export const MessageAttachment = {
|
|
@@ -6249,11 +6246,8 @@ export const MessageAttachment = {
|
|
|
6249
6246
|
if (message.filename !== "") {
|
|
6250
6247
|
writer.uint32(10).string(message.filename);
|
|
6251
6248
|
}
|
|
6252
|
-
if (message.size !==
|
|
6253
|
-
|
|
6254
|
-
throw new globalThis.Error("value provided for field message.size of type int64 too large");
|
|
6255
|
-
}
|
|
6256
|
-
writer.uint32(16).int64(message.size.toString());
|
|
6249
|
+
if (message.size !== 0) {
|
|
6250
|
+
writer.uint32(16).int32(message.size);
|
|
6257
6251
|
}
|
|
6258
6252
|
if (message.url !== "") {
|
|
6259
6253
|
writer.uint32(26).string(message.url);
|
|
@@ -6295,7 +6289,7 @@ export const MessageAttachment = {
|
|
|
6295
6289
|
break;
|
|
6296
6290
|
}
|
|
6297
6291
|
|
|
6298
|
-
message.size =
|
|
6292
|
+
message.size = reader.int32();
|
|
6299
6293
|
continue;
|
|
6300
6294
|
case 3:
|
|
6301
6295
|
if (tag !== 26) {
|
|
@@ -6351,7 +6345,7 @@ export const MessageAttachment = {
|
|
|
6351
6345
|
fromJSON(object: any): MessageAttachment {
|
|
6352
6346
|
return {
|
|
6353
6347
|
filename: isSet(object.filename) ? globalThis.String(object.filename) : "",
|
|
6354
|
-
size: isSet(object.size) ?
|
|
6348
|
+
size: isSet(object.size) ? globalThis.Number(object.size) : 0,
|
|
6355
6349
|
url: isSet(object.url) ? globalThis.String(object.url) : "",
|
|
6356
6350
|
filetype: isSet(object.filetype) ? globalThis.String(object.filetype) : "",
|
|
6357
6351
|
width: isSet(object.width) ? globalThis.Number(object.width) : 0,
|
|
@@ -6366,8 +6360,8 @@ export const MessageAttachment = {
|
|
|
6366
6360
|
if (message.filename !== "") {
|
|
6367
6361
|
obj.filename = message.filename;
|
|
6368
6362
|
}
|
|
6369
|
-
if (message.size !==
|
|
6370
|
-
obj.size = message.size
|
|
6363
|
+
if (message.size !== 0) {
|
|
6364
|
+
obj.size = Math.round(message.size);
|
|
6371
6365
|
}
|
|
6372
6366
|
if (message.url !== "") {
|
|
6373
6367
|
obj.url = message.url;
|
|
@@ -6396,7 +6390,7 @@ export const MessageAttachment = {
|
|
|
6396
6390
|
fromPartial<I extends Exact<DeepPartial<MessageAttachment>, I>>(object: I): MessageAttachment {
|
|
6397
6391
|
const message = createBaseMessageAttachment();
|
|
6398
6392
|
message.filename = object.filename ?? "";
|
|
6399
|
-
message.size = object.size ??
|
|
6393
|
+
message.size = object.size ?? 0;
|
|
6400
6394
|
message.url = object.url ?? "";
|
|
6401
6395
|
message.filetype = object.filetype ?? "";
|
|
6402
6396
|
message.width = object.width ?? 0;
|
|
@@ -7735,7 +7729,7 @@ function createBaseChannelUserList_ChannelUser(): ChannelUserList_ChannelUser {
|
|
|
7735
7729
|
clan_nick: "",
|
|
7736
7730
|
clan_avatar: "",
|
|
7737
7731
|
clan_id: 0n,
|
|
7738
|
-
added_by:
|
|
7732
|
+
added_by: 0n,
|
|
7739
7733
|
is_banned: false,
|
|
7740
7734
|
expired_ban_time: 0,
|
|
7741
7735
|
};
|
|
@@ -7781,8 +7775,11 @@ export const ChannelUserList_ChannelUser = {
|
|
|
7781
7775
|
}
|
|
7782
7776
|
writer.uint32(56).int64(message.clan_id.toString());
|
|
7783
7777
|
}
|
|
7784
|
-
if (message.added_by !==
|
|
7785
|
-
|
|
7778
|
+
if (message.added_by !== 0n) {
|
|
7779
|
+
if (BigInt.asIntN(64, message.added_by) !== message.added_by) {
|
|
7780
|
+
throw new globalThis.Error("value provided for field message.added_by of type int64 too large");
|
|
7781
|
+
}
|
|
7782
|
+
writer.uint32(64).int64(message.added_by.toString());
|
|
7786
7783
|
}
|
|
7787
7784
|
if (message.is_banned !== false) {
|
|
7788
7785
|
writer.uint32(72).bool(message.is_banned);
|
|
@@ -7860,11 +7857,11 @@ export const ChannelUserList_ChannelUser = {
|
|
|
7860
7857
|
message.clan_id = longToBigint(reader.int64() as Long);
|
|
7861
7858
|
continue;
|
|
7862
7859
|
case 8:
|
|
7863
|
-
if (tag !==
|
|
7860
|
+
if (tag !== 64) {
|
|
7864
7861
|
break;
|
|
7865
7862
|
}
|
|
7866
7863
|
|
|
7867
|
-
message.added_by = reader.
|
|
7864
|
+
message.added_by = longToBigint(reader.int64() as Long);
|
|
7868
7865
|
continue;
|
|
7869
7866
|
case 9:
|
|
7870
7867
|
if (tag !== 72) {
|
|
@@ -7898,7 +7895,7 @@ export const ChannelUserList_ChannelUser = {
|
|
|
7898
7895
|
clan_nick: isSet(object.clan_nick) ? globalThis.String(object.clan_nick) : "",
|
|
7899
7896
|
clan_avatar: isSet(object.clan_avatar) ? globalThis.String(object.clan_avatar) : "",
|
|
7900
7897
|
clan_id: isSet(object.clan_id) ? BigInt(object.clan_id) : 0n,
|
|
7901
|
-
added_by: isSet(object.added_by) ?
|
|
7898
|
+
added_by: isSet(object.added_by) ? BigInt(object.added_by) : 0n,
|
|
7902
7899
|
is_banned: isSet(object.is_banned) ? globalThis.Boolean(object.is_banned) : false,
|
|
7903
7900
|
expired_ban_time: isSet(object.expired_ban_time) ? globalThis.Number(object.expired_ban_time) : 0,
|
|
7904
7901
|
};
|
|
@@ -7927,8 +7924,8 @@ export const ChannelUserList_ChannelUser = {
|
|
|
7927
7924
|
if (message.clan_id !== 0n) {
|
|
7928
7925
|
obj.clan_id = message.clan_id.toString();
|
|
7929
7926
|
}
|
|
7930
|
-
if (message.added_by !==
|
|
7931
|
-
obj.added_by = message.added_by;
|
|
7927
|
+
if (message.added_by !== 0n) {
|
|
7928
|
+
obj.added_by = message.added_by.toString();
|
|
7932
7929
|
}
|
|
7933
7930
|
if (message.is_banned !== false) {
|
|
7934
7931
|
obj.is_banned = message.is_banned;
|
|
@@ -7951,7 +7948,7 @@ export const ChannelUserList_ChannelUser = {
|
|
|
7951
7948
|
message.clan_nick = object.clan_nick ?? "";
|
|
7952
7949
|
message.clan_avatar = object.clan_avatar ?? "";
|
|
7953
7950
|
message.clan_id = object.clan_id ?? 0n;
|
|
7954
|
-
message.added_by = object.added_by ??
|
|
7951
|
+
message.added_by = object.added_by ?? 0n;
|
|
7955
7952
|
message.is_banned = object.is_banned ?? false;
|
|
7956
7953
|
message.expired_ban_time = object.expired_ban_time ?? 0;
|
|
7957
7954
|
return message;
|
|
@@ -8139,7 +8136,7 @@ function createBaseChannelAttachment(): ChannelAttachment {
|
|
|
8139
8136
|
filetype: "",
|
|
8140
8137
|
filesize: "",
|
|
8141
8138
|
url: "",
|
|
8142
|
-
uploader:
|
|
8139
|
+
uploader: 0n,
|
|
8143
8140
|
create_time_seconds: 0,
|
|
8144
8141
|
message_id: 0n,
|
|
8145
8142
|
width: 0,
|
|
@@ -8167,8 +8164,11 @@ export const ChannelAttachment = {
|
|
|
8167
8164
|
if (message.url !== "") {
|
|
8168
8165
|
writer.uint32(42).string(message.url);
|
|
8169
8166
|
}
|
|
8170
|
-
if (message.uploader !==
|
|
8171
|
-
|
|
8167
|
+
if (message.uploader !== 0n) {
|
|
8168
|
+
if (BigInt.asIntN(64, message.uploader) !== message.uploader) {
|
|
8169
|
+
throw new globalThis.Error("value provided for field message.uploader of type int64 too large");
|
|
8170
|
+
}
|
|
8171
|
+
writer.uint32(48).int64(message.uploader.toString());
|
|
8172
8172
|
}
|
|
8173
8173
|
if (message.create_time_seconds !== 0) {
|
|
8174
8174
|
writer.uint32(56).uint32(message.create_time_seconds);
|
|
@@ -8231,11 +8231,11 @@ export const ChannelAttachment = {
|
|
|
8231
8231
|
message.url = reader.string();
|
|
8232
8232
|
continue;
|
|
8233
8233
|
case 6:
|
|
8234
|
-
if (tag !==
|
|
8234
|
+
if (tag !== 48) {
|
|
8235
8235
|
break;
|
|
8236
8236
|
}
|
|
8237
8237
|
|
|
8238
|
-
message.uploader = reader.
|
|
8238
|
+
message.uploader = longToBigint(reader.int64() as Long);
|
|
8239
8239
|
continue;
|
|
8240
8240
|
case 7:
|
|
8241
8241
|
if (tag !== 56) {
|
|
@@ -8281,7 +8281,7 @@ export const ChannelAttachment = {
|
|
|
8281
8281
|
filetype: isSet(object.filetype) ? globalThis.String(object.filetype) : "",
|
|
8282
8282
|
filesize: isSet(object.filesize) ? globalThis.String(object.filesize) : "",
|
|
8283
8283
|
url: isSet(object.url) ? globalThis.String(object.url) : "",
|
|
8284
|
-
uploader: isSet(object.uploader) ?
|
|
8284
|
+
uploader: isSet(object.uploader) ? BigInt(object.uploader) : 0n,
|
|
8285
8285
|
create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
|
|
8286
8286
|
message_id: isSet(object.message_id) ? BigInt(object.message_id) : 0n,
|
|
8287
8287
|
width: isSet(object.width) ? globalThis.Number(object.width) : 0,
|
|
@@ -8306,8 +8306,8 @@ export const ChannelAttachment = {
|
|
|
8306
8306
|
if (message.url !== "") {
|
|
8307
8307
|
obj.url = message.url;
|
|
8308
8308
|
}
|
|
8309
|
-
if (message.uploader !==
|
|
8310
|
-
obj.uploader = message.uploader;
|
|
8309
|
+
if (message.uploader !== 0n) {
|
|
8310
|
+
obj.uploader = message.uploader.toString();
|
|
8311
8311
|
}
|
|
8312
8312
|
if (message.create_time_seconds !== 0) {
|
|
8313
8313
|
obj.create_time_seconds = Math.round(message.create_time_seconds);
|
|
@@ -8334,7 +8334,7 @@ export const ChannelAttachment = {
|
|
|
8334
8334
|
message.filetype = object.filetype ?? "";
|
|
8335
8335
|
message.filesize = object.filesize ?? "";
|
|
8336
8336
|
message.url = object.url ?? "";
|
|
8337
|
-
message.uploader = object.uploader ??
|
|
8337
|
+
message.uploader = object.uploader ?? 0n;
|
|
8338
8338
|
message.create_time_seconds = object.create_time_seconds ?? 0;
|
|
8339
8339
|
message.message_id = object.message_id ?? 0n;
|
|
8340
8340
|
message.width = object.width ?? 0;
|
|
@@ -11405,7 +11405,7 @@ function createBaseUser(): User {
|
|
|
11405
11405
|
join_time_seconds: 0,
|
|
11406
11406
|
is_mobile: false,
|
|
11407
11407
|
dob_seconds: 0,
|
|
11408
|
-
mezon_id:
|
|
11408
|
+
mezon_id: "",
|
|
11409
11409
|
list_nick_names: [],
|
|
11410
11410
|
status: "",
|
|
11411
11411
|
};
|
|
@@ -11467,11 +11467,8 @@ export const User = {
|
|
|
11467
11467
|
if (message.dob_seconds !== 0) {
|
|
11468
11468
|
writer.uint32(136).uint32(message.dob_seconds);
|
|
11469
11469
|
}
|
|
11470
|
-
if (message.mezon_id !==
|
|
11471
|
-
|
|
11472
|
-
throw new globalThis.Error("value provided for field message.mezon_id of type int64 too large");
|
|
11473
|
-
}
|
|
11474
|
-
writer.uint32(144).int64(message.mezon_id.toString());
|
|
11470
|
+
if (message.mezon_id !== "") {
|
|
11471
|
+
writer.uint32(146).string(message.mezon_id);
|
|
11475
11472
|
}
|
|
11476
11473
|
for (const v of message.list_nick_names) {
|
|
11477
11474
|
writer.uint32(154).string(v!);
|
|
@@ -11609,11 +11606,11 @@ export const User = {
|
|
|
11609
11606
|
message.dob_seconds = reader.uint32();
|
|
11610
11607
|
continue;
|
|
11611
11608
|
case 18:
|
|
11612
|
-
if (tag !==
|
|
11609
|
+
if (tag !== 146) {
|
|
11613
11610
|
break;
|
|
11614
11611
|
}
|
|
11615
11612
|
|
|
11616
|
-
message.mezon_id =
|
|
11613
|
+
message.mezon_id = reader.string();
|
|
11617
11614
|
continue;
|
|
11618
11615
|
case 19:
|
|
11619
11616
|
if (tag !== 154) {
|
|
@@ -11657,7 +11654,7 @@ export const User = {
|
|
|
11657
11654
|
join_time_seconds: isSet(object.join_time_seconds) ? globalThis.Number(object.join_time_seconds) : 0,
|
|
11658
11655
|
is_mobile: isSet(object.is_mobile) ? globalThis.Boolean(object.is_mobile) : false,
|
|
11659
11656
|
dob_seconds: isSet(object.dob_seconds) ? globalThis.Number(object.dob_seconds) : 0,
|
|
11660
|
-
mezon_id: isSet(object.mezon_id) ?
|
|
11657
|
+
mezon_id: isSet(object.mezon_id) ? globalThis.String(object.mezon_id) : "",
|
|
11661
11658
|
list_nick_names: globalThis.Array.isArray(object?.list_nick_names)
|
|
11662
11659
|
? object.list_nick_names.map((e: any) => globalThis.String(e))
|
|
11663
11660
|
: [],
|
|
@@ -11718,8 +11715,8 @@ export const User = {
|
|
|
11718
11715
|
if (message.dob_seconds !== 0) {
|
|
11719
11716
|
obj.dob_seconds = Math.round(message.dob_seconds);
|
|
11720
11717
|
}
|
|
11721
|
-
if (message.mezon_id !==
|
|
11722
|
-
obj.mezon_id = message.mezon_id
|
|
11718
|
+
if (message.mezon_id !== "") {
|
|
11719
|
+
obj.mezon_id = message.mezon_id;
|
|
11723
11720
|
}
|
|
11724
11721
|
if (message.list_nick_names?.length) {
|
|
11725
11722
|
obj.list_nick_names = message.list_nick_names;
|
|
@@ -11752,7 +11749,7 @@ export const User = {
|
|
|
11752
11749
|
message.join_time_seconds = object.join_time_seconds ?? 0;
|
|
11753
11750
|
message.is_mobile = object.is_mobile ?? false;
|
|
11754
11751
|
message.dob_seconds = object.dob_seconds ?? 0;
|
|
11755
|
-
message.mezon_id = object.mezon_id ??
|
|
11752
|
+
message.mezon_id = object.mezon_id ?? "";
|
|
11756
11753
|
message.list_nick_names = object.list_nick_names?.map((e) => e) || [];
|
|
11757
11754
|
message.status = object.status ?? "";
|
|
11758
11755
|
return message;
|
|
@@ -28140,7 +28137,7 @@ function createBaseSystemMessage(): SystemMessage {
|
|
|
28140
28137
|
welcome_sticker: "",
|
|
28141
28138
|
boost_message: "",
|
|
28142
28139
|
setup_tips: "",
|
|
28143
|
-
hide_audit_log:
|
|
28140
|
+
hide_audit_log: false,
|
|
28144
28141
|
};
|
|
28145
28142
|
}
|
|
28146
28143
|
|
|
@@ -28176,8 +28173,8 @@ export const SystemMessage = {
|
|
|
28176
28173
|
if (message.setup_tips !== "") {
|
|
28177
28174
|
writer.uint32(58).string(message.setup_tips);
|
|
28178
28175
|
}
|
|
28179
|
-
if (message.hide_audit_log !==
|
|
28180
|
-
writer.uint32(
|
|
28176
|
+
if (message.hide_audit_log !== false) {
|
|
28177
|
+
writer.uint32(64).bool(message.hide_audit_log);
|
|
28181
28178
|
}
|
|
28182
28179
|
return writer;
|
|
28183
28180
|
},
|
|
@@ -28239,11 +28236,11 @@ export const SystemMessage = {
|
|
|
28239
28236
|
message.setup_tips = reader.string();
|
|
28240
28237
|
continue;
|
|
28241
28238
|
case 8:
|
|
28242
|
-
if (tag !==
|
|
28239
|
+
if (tag !== 64) {
|
|
28243
28240
|
break;
|
|
28244
28241
|
}
|
|
28245
28242
|
|
|
28246
|
-
message.hide_audit_log = reader.
|
|
28243
|
+
message.hide_audit_log = reader.bool();
|
|
28247
28244
|
continue;
|
|
28248
28245
|
}
|
|
28249
28246
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -28263,7 +28260,7 @@ export const SystemMessage = {
|
|
|
28263
28260
|
welcome_sticker: isSet(object.welcome_sticker) ? globalThis.String(object.welcome_sticker) : "",
|
|
28264
28261
|
boost_message: isSet(object.boost_message) ? globalThis.String(object.boost_message) : "",
|
|
28265
28262
|
setup_tips: isSet(object.setup_tips) ? globalThis.String(object.setup_tips) : "",
|
|
28266
|
-
hide_audit_log: isSet(object.hide_audit_log) ? globalThis.
|
|
28263
|
+
hide_audit_log: isSet(object.hide_audit_log) ? globalThis.Boolean(object.hide_audit_log) : false,
|
|
28267
28264
|
};
|
|
28268
28265
|
},
|
|
28269
28266
|
|
|
@@ -28290,7 +28287,7 @@ export const SystemMessage = {
|
|
|
28290
28287
|
if (message.setup_tips !== "") {
|
|
28291
28288
|
obj.setup_tips = message.setup_tips;
|
|
28292
28289
|
}
|
|
28293
|
-
if (message.hide_audit_log !==
|
|
28290
|
+
if (message.hide_audit_log !== false) {
|
|
28294
28291
|
obj.hide_audit_log = message.hide_audit_log;
|
|
28295
28292
|
}
|
|
28296
28293
|
return obj;
|
|
@@ -28308,7 +28305,7 @@ export const SystemMessage = {
|
|
|
28308
28305
|
message.welcome_sticker = object.welcome_sticker ?? "";
|
|
28309
28306
|
message.boost_message = object.boost_message ?? "";
|
|
28310
28307
|
message.setup_tips = object.setup_tips ?? "";
|
|
28311
|
-
message.hide_audit_log = object.hide_audit_log ??
|
|
28308
|
+
message.hide_audit_log = object.hide_audit_log ?? false;
|
|
28312
28309
|
return message;
|
|
28313
28310
|
},
|
|
28314
28311
|
};
|
|
@@ -29922,7 +29919,7 @@ export const RoleListEventRequest = {
|
|
|
29922
29919
|
};
|
|
29923
29920
|
|
|
29924
29921
|
function createBaseRoleListEventResponse(): RoleListEventResponse {
|
|
29925
|
-
return { limit: 0, state: 0, cursor: "", clanId:
|
|
29922
|
+
return { limit: 0, state: 0, cursor: "", clanId: 0n, roles: undefined };
|
|
29926
29923
|
}
|
|
29927
29924
|
|
|
29928
29925
|
export const RoleListEventResponse = {
|
|
@@ -29936,8 +29933,11 @@ export const RoleListEventResponse = {
|
|
|
29936
29933
|
if (message.cursor !== "") {
|
|
29937
29934
|
writer.uint32(26).string(message.cursor);
|
|
29938
29935
|
}
|
|
29939
|
-
if (message.clanId !==
|
|
29940
|
-
|
|
29936
|
+
if (message.clanId !== 0n) {
|
|
29937
|
+
if (BigInt.asIntN(64, message.clanId) !== message.clanId) {
|
|
29938
|
+
throw new globalThis.Error("value provided for field message.clanId of type int64 too large");
|
|
29939
|
+
}
|
|
29940
|
+
writer.uint32(32).int64(message.clanId.toString());
|
|
29941
29941
|
}
|
|
29942
29942
|
if (message.roles !== undefined) {
|
|
29943
29943
|
RoleList.encode(message.roles, writer.uint32(42).fork()).ldelim();
|
|
@@ -29974,11 +29974,11 @@ export const RoleListEventResponse = {
|
|
|
29974
29974
|
message.cursor = reader.string();
|
|
29975
29975
|
continue;
|
|
29976
29976
|
case 4:
|
|
29977
|
-
if (tag !==
|
|
29977
|
+
if (tag !== 32) {
|
|
29978
29978
|
break;
|
|
29979
29979
|
}
|
|
29980
29980
|
|
|
29981
|
-
message.clanId = reader.
|
|
29981
|
+
message.clanId = longToBigint(reader.int64() as Long);
|
|
29982
29982
|
continue;
|
|
29983
29983
|
case 5:
|
|
29984
29984
|
if (tag !== 42) {
|
|
@@ -30001,7 +30001,7 @@ export const RoleListEventResponse = {
|
|
|
30001
30001
|
limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
30002
30002
|
state: isSet(object.state) ? globalThis.Number(object.state) : 0,
|
|
30003
30003
|
cursor: isSet(object.cursor) ? globalThis.String(object.cursor) : "",
|
|
30004
|
-
clanId: isSet(object.clanId) ?
|
|
30004
|
+
clanId: isSet(object.clanId) ? BigInt(object.clanId) : 0n,
|
|
30005
30005
|
roles: isSet(object.roles) ? RoleList.fromJSON(object.roles) : undefined,
|
|
30006
30006
|
};
|
|
30007
30007
|
},
|
|
@@ -30017,8 +30017,8 @@ export const RoleListEventResponse = {
|
|
|
30017
30017
|
if (message.cursor !== "") {
|
|
30018
30018
|
obj.cursor = message.cursor;
|
|
30019
30019
|
}
|
|
30020
|
-
if (message.clanId !==
|
|
30021
|
-
obj.clanId = message.clanId;
|
|
30020
|
+
if (message.clanId !== 0n) {
|
|
30021
|
+
obj.clanId = message.clanId.toString();
|
|
30022
30022
|
}
|
|
30023
30023
|
if (message.roles !== undefined) {
|
|
30024
30024
|
obj.roles = RoleList.toJSON(message.roles);
|
|
@@ -30034,7 +30034,7 @@ export const RoleListEventResponse = {
|
|
|
30034
30034
|
message.limit = object.limit ?? 0;
|
|
30035
30035
|
message.state = object.state ?? 0;
|
|
30036
30036
|
message.cursor = object.cursor ?? "";
|
|
30037
|
-
message.clanId = object.clanId ??
|
|
30037
|
+
message.clanId = object.clanId ?? 0n;
|
|
30038
30038
|
message.roles = (object.roles !== undefined && object.roles !== null)
|
|
30039
30039
|
? RoleList.fromPartial(object.roles)
|
|
30040
30040
|
: undefined;
|
|
@@ -34129,7 +34129,7 @@ function createBaseTokenSentEvent(): TokenSentEvent {
|
|
|
34129
34129
|
amount: 0,
|
|
34130
34130
|
note: "",
|
|
34131
34131
|
extra_attribute: "",
|
|
34132
|
-
transaction_id:
|
|
34132
|
+
transaction_id: "",
|
|
34133
34133
|
};
|
|
34134
34134
|
}
|
|
34135
34135
|
|
|
@@ -34159,11 +34159,8 @@ export const TokenSentEvent = {
|
|
|
34159
34159
|
if (message.extra_attribute !== "") {
|
|
34160
34160
|
writer.uint32(50).string(message.extra_attribute);
|
|
34161
34161
|
}
|
|
34162
|
-
if (message.transaction_id !==
|
|
34163
|
-
|
|
34164
|
-
throw new globalThis.Error("value provided for field message.transaction_id of type int64 too large");
|
|
34165
|
-
}
|
|
34166
|
-
writer.uint32(56).int64(message.transaction_id.toString());
|
|
34162
|
+
if (message.transaction_id !== "") {
|
|
34163
|
+
writer.uint32(58).string(message.transaction_id);
|
|
34167
34164
|
}
|
|
34168
34165
|
return writer;
|
|
34169
34166
|
},
|
|
@@ -34218,11 +34215,11 @@ export const TokenSentEvent = {
|
|
|
34218
34215
|
message.extra_attribute = reader.string();
|
|
34219
34216
|
continue;
|
|
34220
34217
|
case 7:
|
|
34221
|
-
if (tag !==
|
|
34218
|
+
if (tag !== 58) {
|
|
34222
34219
|
break;
|
|
34223
34220
|
}
|
|
34224
34221
|
|
|
34225
|
-
message.transaction_id =
|
|
34222
|
+
message.transaction_id = reader.string();
|
|
34226
34223
|
continue;
|
|
34227
34224
|
}
|
|
34228
34225
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -34241,7 +34238,7 @@ export const TokenSentEvent = {
|
|
|
34241
34238
|
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
34242
34239
|
note: isSet(object.note) ? globalThis.String(object.note) : "",
|
|
34243
34240
|
extra_attribute: isSet(object.extra_attribute) ? globalThis.String(object.extra_attribute) : "",
|
|
34244
|
-
transaction_id: isSet(object.transaction_id) ?
|
|
34241
|
+
transaction_id: isSet(object.transaction_id) ? globalThis.String(object.transaction_id) : "",
|
|
34245
34242
|
};
|
|
34246
34243
|
},
|
|
34247
34244
|
|
|
@@ -34265,8 +34262,8 @@ export const TokenSentEvent = {
|
|
|
34265
34262
|
if (message.extra_attribute !== "") {
|
|
34266
34263
|
obj.extra_attribute = message.extra_attribute;
|
|
34267
34264
|
}
|
|
34268
|
-
if (message.transaction_id !==
|
|
34269
|
-
obj.transaction_id = message.transaction_id
|
|
34265
|
+
if (message.transaction_id !== "") {
|
|
34266
|
+
obj.transaction_id = message.transaction_id;
|
|
34270
34267
|
}
|
|
34271
34268
|
return obj;
|
|
34272
34269
|
},
|
|
@@ -34282,7 +34279,7 @@ export const TokenSentEvent = {
|
|
|
34282
34279
|
message.amount = object.amount ?? 0;
|
|
34283
34280
|
message.note = object.note ?? "";
|
|
34284
34281
|
message.extra_attribute = object.extra_attribute ?? "";
|
|
34285
|
-
message.transaction_id = object.transaction_id ??
|
|
34282
|
+
message.transaction_id = object.transaction_id ?? "";
|
|
34286
34283
|
return message;
|
|
34287
34284
|
},
|
|
34288
34285
|
};
|
|
@@ -37912,7 +37909,7 @@ function createBaseMezonOauthClient(): MezonOauthClient {
|
|
|
37912
37909
|
backchannel_logout_session_required: false,
|
|
37913
37910
|
backchannel_logout_uri: "",
|
|
37914
37911
|
client_credentials_grant_access_token_lifespan: "",
|
|
37915
|
-
client_id:
|
|
37912
|
+
client_id: "",
|
|
37916
37913
|
client_name: "",
|
|
37917
37914
|
client_secret: "",
|
|
37918
37915
|
client_secret_expires_at: 0,
|
|
@@ -37982,11 +37979,8 @@ export const MezonOauthClient = {
|
|
|
37982
37979
|
if (message.client_credentials_grant_access_token_lifespan !== "") {
|
|
37983
37980
|
writer.uint32(74).string(message.client_credentials_grant_access_token_lifespan);
|
|
37984
37981
|
}
|
|
37985
|
-
if (message.client_id !==
|
|
37986
|
-
|
|
37987
|
-
throw new globalThis.Error("value provided for field message.client_id of type int64 too large");
|
|
37988
|
-
}
|
|
37989
|
-
writer.uint32(80).int64(message.client_id.toString());
|
|
37982
|
+
if (message.client_id !== "") {
|
|
37983
|
+
writer.uint32(82).string(message.client_id);
|
|
37990
37984
|
}
|
|
37991
37985
|
if (message.client_name !== "") {
|
|
37992
37986
|
writer.uint32(90).string(message.client_name);
|
|
@@ -38173,11 +38167,11 @@ export const MezonOauthClient = {
|
|
|
38173
38167
|
message.client_credentials_grant_access_token_lifespan = reader.string();
|
|
38174
38168
|
continue;
|
|
38175
38169
|
case 10:
|
|
38176
|
-
if (tag !==
|
|
38170
|
+
if (tag !== 82) {
|
|
38177
38171
|
break;
|
|
38178
38172
|
}
|
|
38179
38173
|
|
|
38180
|
-
message.client_id =
|
|
38174
|
+
message.client_id = reader.string();
|
|
38181
38175
|
continue;
|
|
38182
38176
|
case 11:
|
|
38183
38177
|
if (tag !== 90) {
|
|
@@ -38472,7 +38466,7 @@ export const MezonOauthClient = {
|
|
|
38472
38466
|
client_credentials_grant_access_token_lifespan: isSet(object.client_credentials_grant_access_token_lifespan)
|
|
38473
38467
|
? globalThis.String(object.client_credentials_grant_access_token_lifespan)
|
|
38474
38468
|
: "",
|
|
38475
|
-
client_id: isSet(object.client_id) ?
|
|
38469
|
+
client_id: isSet(object.client_id) ? globalThis.String(object.client_id) : "",
|
|
38476
38470
|
client_name: isSet(object.client_name) ? globalThis.String(object.client_name) : "",
|
|
38477
38471
|
client_secret: isSet(object.client_secret) ? globalThis.String(object.client_secret) : "",
|
|
38478
38472
|
client_secret_expires_at: isSet(object.client_secret_expires_at)
|
|
@@ -38586,8 +38580,8 @@ export const MezonOauthClient = {
|
|
|
38586
38580
|
if (message.client_credentials_grant_access_token_lifespan !== "") {
|
|
38587
38581
|
obj.client_credentials_grant_access_token_lifespan = message.client_credentials_grant_access_token_lifespan;
|
|
38588
38582
|
}
|
|
38589
|
-
if (message.client_id !==
|
|
38590
|
-
obj.client_id = message.client_id
|
|
38583
|
+
if (message.client_id !== "") {
|
|
38584
|
+
obj.client_id = message.client_id;
|
|
38591
38585
|
}
|
|
38592
38586
|
if (message.client_name !== "") {
|
|
38593
38587
|
obj.client_name = message.client_name;
|
|
@@ -38720,7 +38714,7 @@ export const MezonOauthClient = {
|
|
|
38720
38714
|
message.backchannel_logout_uri = object.backchannel_logout_uri ?? "";
|
|
38721
38715
|
message.client_credentials_grant_access_token_lifespan = object.client_credentials_grant_access_token_lifespan ??
|
|
38722
38716
|
"";
|
|
38723
|
-
message.client_id = object.client_id ??
|
|
38717
|
+
message.client_id = object.client_id ?? "";
|
|
38724
38718
|
message.client_name = object.client_name ?? "";
|
|
38725
38719
|
message.client_secret = object.client_secret ?? "";
|
|
38726
38720
|
message.client_secret_expires_at = object.client_secret_expires_at ?? 0;
|
|
@@ -38824,16 +38818,13 @@ export const MezonOauthClientList = {
|
|
|
38824
38818
|
};
|
|
38825
38819
|
|
|
38826
38820
|
function createBaseGetMezonOauthClientRequest(): GetMezonOauthClientRequest {
|
|
38827
|
-
return { client_id:
|
|
38821
|
+
return { client_id: "", client_name: "" };
|
|
38828
38822
|
}
|
|
38829
38823
|
|
|
38830
38824
|
export const GetMezonOauthClientRequest = {
|
|
38831
38825
|
encode(message: GetMezonOauthClientRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
38832
|
-
if (message.client_id !==
|
|
38833
|
-
|
|
38834
|
-
throw new globalThis.Error("value provided for field message.client_id of type int64 too large");
|
|
38835
|
-
}
|
|
38836
|
-
writer.uint32(8).int64(message.client_id.toString());
|
|
38826
|
+
if (message.client_id !== "") {
|
|
38827
|
+
writer.uint32(10).string(message.client_id);
|
|
38837
38828
|
}
|
|
38838
38829
|
if (message.client_name !== "") {
|
|
38839
38830
|
writer.uint32(18).string(message.client_name);
|
|
@@ -38849,11 +38840,11 @@ export const GetMezonOauthClientRequest = {
|
|
|
38849
38840
|
const tag = reader.uint32();
|
|
38850
38841
|
switch (tag >>> 3) {
|
|
38851
38842
|
case 1:
|
|
38852
|
-
if (tag !==
|
|
38843
|
+
if (tag !== 10) {
|
|
38853
38844
|
break;
|
|
38854
38845
|
}
|
|
38855
38846
|
|
|
38856
|
-
message.client_id =
|
|
38847
|
+
message.client_id = reader.string();
|
|
38857
38848
|
continue;
|
|
38858
38849
|
case 2:
|
|
38859
38850
|
if (tag !== 18) {
|
|
@@ -38873,15 +38864,15 @@ export const GetMezonOauthClientRequest = {
|
|
|
38873
38864
|
|
|
38874
38865
|
fromJSON(object: any): GetMezonOauthClientRequest {
|
|
38875
38866
|
return {
|
|
38876
|
-
client_id: isSet(object.client_id) ?
|
|
38867
|
+
client_id: isSet(object.client_id) ? globalThis.String(object.client_id) : "",
|
|
38877
38868
|
client_name: isSet(object.client_name) ? globalThis.String(object.client_name) : "",
|
|
38878
38869
|
};
|
|
38879
38870
|
},
|
|
38880
38871
|
|
|
38881
38872
|
toJSON(message: GetMezonOauthClientRequest): unknown {
|
|
38882
38873
|
const obj: any = {};
|
|
38883
|
-
if (message.client_id !==
|
|
38884
|
-
obj.client_id = message.client_id
|
|
38874
|
+
if (message.client_id !== "") {
|
|
38875
|
+
obj.client_id = message.client_id;
|
|
38885
38876
|
}
|
|
38886
38877
|
if (message.client_name !== "") {
|
|
38887
38878
|
obj.client_name = message.client_name;
|
|
@@ -38894,7 +38885,7 @@ export const GetMezonOauthClientRequest = {
|
|
|
38894
38885
|
},
|
|
38895
38886
|
fromPartial<I extends Exact<DeepPartial<GetMezonOauthClientRequest>, I>>(object: I): GetMezonOauthClientRequest {
|
|
38896
38887
|
const message = createBaseGetMezonOauthClientRequest();
|
|
38897
|
-
message.client_id = object.client_id ??
|
|
38888
|
+
message.client_id = object.client_id ?? "";
|
|
38898
38889
|
message.client_name = object.client_name ?? "";
|
|
38899
38890
|
return message;
|
|
38900
38891
|
},
|
|
@@ -40738,7 +40729,7 @@ export const LogedDeviceList = {
|
|
|
40738
40729
|
|
|
40739
40730
|
function createBaseLogedDevice(): LogedDevice {
|
|
40740
40731
|
return {
|
|
40741
|
-
device_id:
|
|
40732
|
+
device_id: "",
|
|
40742
40733
|
device_name: "",
|
|
40743
40734
|
login_at_seconds: 0,
|
|
40744
40735
|
status: 0,
|
|
@@ -40752,11 +40743,8 @@ function createBaseLogedDevice(): LogedDevice {
|
|
|
40752
40743
|
|
|
40753
40744
|
export const LogedDevice = {
|
|
40754
40745
|
encode(message: LogedDevice, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
40755
|
-
if (message.device_id !==
|
|
40756
|
-
|
|
40757
|
-
throw new globalThis.Error("value provided for field message.device_id of type int64 too large");
|
|
40758
|
-
}
|
|
40759
|
-
writer.uint32(8).int64(message.device_id.toString());
|
|
40746
|
+
if (message.device_id !== "") {
|
|
40747
|
+
writer.uint32(10).string(message.device_id);
|
|
40760
40748
|
}
|
|
40761
40749
|
if (message.device_name !== "") {
|
|
40762
40750
|
writer.uint32(18).string(message.device_name);
|
|
@@ -40793,11 +40781,11 @@ export const LogedDevice = {
|
|
|
40793
40781
|
const tag = reader.uint32();
|
|
40794
40782
|
switch (tag >>> 3) {
|
|
40795
40783
|
case 1:
|
|
40796
|
-
if (tag !==
|
|
40784
|
+
if (tag !== 10) {
|
|
40797
40785
|
break;
|
|
40798
40786
|
}
|
|
40799
40787
|
|
|
40800
|
-
message.device_id =
|
|
40788
|
+
message.device_id = reader.string();
|
|
40801
40789
|
continue;
|
|
40802
40790
|
case 2:
|
|
40803
40791
|
if (tag !== 18) {
|
|
@@ -40866,7 +40854,7 @@ export const LogedDevice = {
|
|
|
40866
40854
|
|
|
40867
40855
|
fromJSON(object: any): LogedDevice {
|
|
40868
40856
|
return {
|
|
40869
|
-
device_id: isSet(object.device_id) ?
|
|
40857
|
+
device_id: isSet(object.device_id) ? globalThis.String(object.device_id) : "",
|
|
40870
40858
|
device_name: isSet(object.device_name) ? globalThis.String(object.device_name) : "",
|
|
40871
40859
|
login_at_seconds: isSet(object.login_at_seconds) ? globalThis.Number(object.login_at_seconds) : 0,
|
|
40872
40860
|
status: isSet(object.status) ? globalThis.Number(object.status) : 0,
|
|
@@ -40880,8 +40868,8 @@ export const LogedDevice = {
|
|
|
40880
40868
|
|
|
40881
40869
|
toJSON(message: LogedDevice): unknown {
|
|
40882
40870
|
const obj: any = {};
|
|
40883
|
-
if (message.device_id !==
|
|
40884
|
-
obj.device_id = message.device_id
|
|
40871
|
+
if (message.device_id !== "") {
|
|
40872
|
+
obj.device_id = message.device_id;
|
|
40885
40873
|
}
|
|
40886
40874
|
if (message.device_name !== "") {
|
|
40887
40875
|
obj.device_name = message.device_name;
|
|
@@ -40915,7 +40903,7 @@ export const LogedDevice = {
|
|
|
40915
40903
|
},
|
|
40916
40904
|
fromPartial<I extends Exact<DeepPartial<LogedDevice>, I>>(object: I): LogedDevice {
|
|
40917
40905
|
const message = createBaseLogedDevice();
|
|
40918
|
-
message.device_id = object.device_id ??
|
|
40906
|
+
message.device_id = object.device_id ?? "";
|
|
40919
40907
|
message.device_name = object.device_name ?? "";
|
|
40920
40908
|
message.login_at_seconds = object.login_at_seconds ?? 0;
|
|
40921
40909
|
message.status = object.status ?? 0;
|