mezon-js-protobuf 1.8.22 → 1.8.24
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 +200 -275
- package/dist/mezon-js-protobuf/api/api.d.ts +129 -148
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +695 -593
- package/dist/mezon-js-protobuf.cjs.js +84 -9
- package/dist/mezon-js-protobuf.esm.mjs +84 -9
- package/package.json +1 -1
- package/rtapi/realtime.ts +36 -0
package/api/api.ts
CHANGED
|
@@ -762,6 +762,8 @@ export interface ChannelUserList_ChannelUser {
|
|
|
762
762
|
clan_avatar: string;
|
|
763
763
|
/** clan Id */
|
|
764
764
|
clan_id: string;
|
|
765
|
+
/** added by */
|
|
766
|
+
added_by: string;
|
|
765
767
|
}
|
|
766
768
|
|
|
767
769
|
/** A list of users belonging to a channel, along with their role. */
|
|
@@ -1375,6 +1377,10 @@ export interface ClanDesc {
|
|
|
1375
1377
|
onboarding_banner: string;
|
|
1376
1378
|
/** clan order */
|
|
1377
1379
|
clan_order: number;
|
|
1380
|
+
/** is community */
|
|
1381
|
+
is_community: boolean;
|
|
1382
|
+
/** community banner */
|
|
1383
|
+
community_banner: string;
|
|
1378
1384
|
}
|
|
1379
1385
|
|
|
1380
1386
|
/** Clan information */
|
|
@@ -1395,7 +1401,9 @@ export interface UpdateClanDescRequest {
|
|
|
1395
1401
|
/** Clan logo */
|
|
1396
1402
|
logo: string;
|
|
1397
1403
|
/** Clan banner */
|
|
1398
|
-
banner:
|
|
1404
|
+
banner:
|
|
1405
|
+
| string
|
|
1406
|
+
| undefined;
|
|
1399
1407
|
/** Clan status */
|
|
1400
1408
|
status: number;
|
|
1401
1409
|
/** Is onboarding. */
|
|
@@ -1405,7 +1413,15 @@ export interface UpdateClanDescRequest {
|
|
|
1405
1413
|
/** Welcome channel id. */
|
|
1406
1414
|
welcome_channel_id: string;
|
|
1407
1415
|
/** Onboarding_banner. */
|
|
1408
|
-
onboarding_banner:
|
|
1416
|
+
onboarding_banner:
|
|
1417
|
+
| string
|
|
1418
|
+
| undefined;
|
|
1419
|
+
/** Enable community. */
|
|
1420
|
+
is_community:
|
|
1421
|
+
| boolean
|
|
1422
|
+
| undefined;
|
|
1423
|
+
/** Community banner. */
|
|
1424
|
+
community_banner: string | undefined;
|
|
1409
1425
|
}
|
|
1410
1426
|
|
|
1411
1427
|
/** Delete a clan the user has access to. */
|
|
@@ -1920,8 +1936,14 @@ export interface NotificationSetting {
|
|
|
1920
1936
|
|
|
1921
1937
|
/** */
|
|
1922
1938
|
export interface DeletePinMessage {
|
|
1939
|
+
/** */
|
|
1940
|
+
id: string;
|
|
1923
1941
|
/** */
|
|
1924
1942
|
message_id: string;
|
|
1943
|
+
/** */
|
|
1944
|
+
channel_id: string;
|
|
1945
|
+
/** */
|
|
1946
|
+
clan_id: string;
|
|
1925
1947
|
}
|
|
1926
1948
|
|
|
1927
1949
|
/** */
|
|
@@ -2377,11 +2399,11 @@ export interface SearchMessageDocument {
|
|
|
2377
2399
|
/** The message ID. */
|
|
2378
2400
|
message_id: string;
|
|
2379
2401
|
/** The channel ID. */
|
|
2380
|
-
channel_id:
|
|
2402
|
+
channel_id: string;
|
|
2381
2403
|
/** The clan ID. */
|
|
2382
|
-
clan_id:
|
|
2404
|
+
clan_id: string;
|
|
2383
2405
|
/** The user ID of sender. */
|
|
2384
|
-
sender_id:
|
|
2406
|
+
sender_id: string;
|
|
2385
2407
|
/** Message content */
|
|
2386
2408
|
content: string;
|
|
2387
2409
|
/** Mention users */
|
|
@@ -3315,9 +3337,9 @@ export interface TokenSentEvent {
|
|
|
3315
3337
|
amount: number;
|
|
3316
3338
|
/** note */
|
|
3317
3339
|
note: string;
|
|
3318
|
-
/**
|
|
3340
|
+
/** extra attribute */
|
|
3319
3341
|
extra_attribute: string;
|
|
3320
|
-
/**
|
|
3342
|
+
/** transaction id */
|
|
3321
3343
|
transaction_id: string;
|
|
3322
3344
|
}
|
|
3323
3345
|
|
|
@@ -3833,20 +3855,6 @@ export interface ForSaleItemList {
|
|
|
3833
3855
|
for_sale_items: ForSaleItem[];
|
|
3834
3856
|
}
|
|
3835
3857
|
|
|
3836
|
-
export interface ListChannelMemberRequest {
|
|
3837
|
-
channel_id: string;
|
|
3838
|
-
clan_id: string;
|
|
3839
|
-
}
|
|
3840
|
-
|
|
3841
|
-
export interface ChannelMemberDetail {
|
|
3842
|
-
member_id: string;
|
|
3843
|
-
added_by: string;
|
|
3844
|
-
}
|
|
3845
|
-
|
|
3846
|
-
export interface ChannelMemberList {
|
|
3847
|
-
channel_members: ChannelMemberDetail[];
|
|
3848
|
-
}
|
|
3849
|
-
|
|
3850
3858
|
function createBaseAccount(): Account {
|
|
3851
3859
|
return {
|
|
3852
3860
|
user: undefined,
|
|
@@ -7943,7 +7951,7 @@ export const ChannelUserList = {
|
|
|
7943
7951
|
};
|
|
7944
7952
|
|
|
7945
7953
|
function createBaseChannelUserList_ChannelUser(): ChannelUserList_ChannelUser {
|
|
7946
|
-
return { user_id: "", role_id: [], id: "", thread_id: "", clan_nick: "", clan_avatar: "", clan_id: "" };
|
|
7954
|
+
return { user_id: "", role_id: [], id: "", thread_id: "", clan_nick: "", clan_avatar: "", clan_id: "", added_by: "" };
|
|
7947
7955
|
}
|
|
7948
7956
|
|
|
7949
7957
|
export const ChannelUserList_ChannelUser = {
|
|
@@ -7969,6 +7977,9 @@ export const ChannelUserList_ChannelUser = {
|
|
|
7969
7977
|
if (message.clan_id !== "") {
|
|
7970
7978
|
writer.uint32(58).string(message.clan_id);
|
|
7971
7979
|
}
|
|
7980
|
+
if (message.added_by !== "") {
|
|
7981
|
+
writer.uint32(66).string(message.added_by);
|
|
7982
|
+
}
|
|
7972
7983
|
return writer;
|
|
7973
7984
|
},
|
|
7974
7985
|
|
|
@@ -8028,6 +8039,13 @@ export const ChannelUserList_ChannelUser = {
|
|
|
8028
8039
|
|
|
8029
8040
|
message.clan_id = reader.string();
|
|
8030
8041
|
continue;
|
|
8042
|
+
case 8:
|
|
8043
|
+
if (tag !== 66) {
|
|
8044
|
+
break;
|
|
8045
|
+
}
|
|
8046
|
+
|
|
8047
|
+
message.added_by = reader.string();
|
|
8048
|
+
continue;
|
|
8031
8049
|
}
|
|
8032
8050
|
if ((tag & 7) === 4 || tag === 0) {
|
|
8033
8051
|
break;
|
|
@@ -8046,6 +8064,7 @@ export const ChannelUserList_ChannelUser = {
|
|
|
8046
8064
|
clan_nick: isSet(object.clan_nick) ? globalThis.String(object.clan_nick) : "",
|
|
8047
8065
|
clan_avatar: isSet(object.clan_avatar) ? globalThis.String(object.clan_avatar) : "",
|
|
8048
8066
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
8067
|
+
added_by: isSet(object.added_by) ? globalThis.String(object.added_by) : "",
|
|
8049
8068
|
};
|
|
8050
8069
|
},
|
|
8051
8070
|
|
|
@@ -8072,6 +8091,9 @@ export const ChannelUserList_ChannelUser = {
|
|
|
8072
8091
|
if (message.clan_id !== "") {
|
|
8073
8092
|
obj.clan_id = message.clan_id;
|
|
8074
8093
|
}
|
|
8094
|
+
if (message.added_by !== "") {
|
|
8095
|
+
obj.added_by = message.added_by;
|
|
8096
|
+
}
|
|
8075
8097
|
return obj;
|
|
8076
8098
|
},
|
|
8077
8099
|
|
|
@@ -8087,6 +8109,7 @@ export const ChannelUserList_ChannelUser = {
|
|
|
8087
8109
|
message.clan_nick = object.clan_nick ?? "";
|
|
8088
8110
|
message.clan_avatar = object.clan_avatar ?? "";
|
|
8089
8111
|
message.clan_id = object.clan_id ?? "";
|
|
8112
|
+
message.added_by = object.added_by ?? "";
|
|
8090
8113
|
return message;
|
|
8091
8114
|
},
|
|
8092
8115
|
};
|
|
@@ -12222,6 +12245,8 @@ function createBaseClanDesc(): ClanDesc {
|
|
|
12222
12245
|
welcome_channel_id: "",
|
|
12223
12246
|
onboarding_banner: "",
|
|
12224
12247
|
clan_order: 0,
|
|
12248
|
+
is_community: false,
|
|
12249
|
+
community_banner: "",
|
|
12225
12250
|
};
|
|
12226
12251
|
}
|
|
12227
12252
|
|
|
@@ -12260,6 +12285,12 @@ export const ClanDesc = {
|
|
|
12260
12285
|
if (message.clan_order !== 0) {
|
|
12261
12286
|
writer.uint32(88).int32(message.clan_order);
|
|
12262
12287
|
}
|
|
12288
|
+
if (message.is_community !== false) {
|
|
12289
|
+
writer.uint32(96).bool(message.is_community);
|
|
12290
|
+
}
|
|
12291
|
+
if (message.community_banner !== "") {
|
|
12292
|
+
writer.uint32(106).string(message.community_banner);
|
|
12293
|
+
}
|
|
12263
12294
|
return writer;
|
|
12264
12295
|
},
|
|
12265
12296
|
|
|
@@ -12347,6 +12378,20 @@ export const ClanDesc = {
|
|
|
12347
12378
|
|
|
12348
12379
|
message.clan_order = reader.int32();
|
|
12349
12380
|
continue;
|
|
12381
|
+
case 12:
|
|
12382
|
+
if (tag !== 96) {
|
|
12383
|
+
break;
|
|
12384
|
+
}
|
|
12385
|
+
|
|
12386
|
+
message.is_community = reader.bool();
|
|
12387
|
+
continue;
|
|
12388
|
+
case 13:
|
|
12389
|
+
if (tag !== 106) {
|
|
12390
|
+
break;
|
|
12391
|
+
}
|
|
12392
|
+
|
|
12393
|
+
message.community_banner = reader.string();
|
|
12394
|
+
continue;
|
|
12350
12395
|
}
|
|
12351
12396
|
if ((tag & 7) === 4 || tag === 0) {
|
|
12352
12397
|
break;
|
|
@@ -12369,6 +12414,8 @@ export const ClanDesc = {
|
|
|
12369
12414
|
welcome_channel_id: isSet(object.welcome_channel_id) ? globalThis.String(object.welcome_channel_id) : "",
|
|
12370
12415
|
onboarding_banner: isSet(object.onboarding_banner) ? globalThis.String(object.onboarding_banner) : "",
|
|
12371
12416
|
clan_order: isSet(object.clan_order) ? globalThis.Number(object.clan_order) : 0,
|
|
12417
|
+
is_community: isSet(object.is_community) ? globalThis.Boolean(object.is_community) : false,
|
|
12418
|
+
community_banner: isSet(object.community_banner) ? globalThis.String(object.community_banner) : "",
|
|
12372
12419
|
};
|
|
12373
12420
|
},
|
|
12374
12421
|
|
|
@@ -12407,6 +12454,12 @@ export const ClanDesc = {
|
|
|
12407
12454
|
if (message.clan_order !== 0) {
|
|
12408
12455
|
obj.clan_order = Math.round(message.clan_order);
|
|
12409
12456
|
}
|
|
12457
|
+
if (message.is_community !== false) {
|
|
12458
|
+
obj.is_community = message.is_community;
|
|
12459
|
+
}
|
|
12460
|
+
if (message.community_banner !== "") {
|
|
12461
|
+
obj.community_banner = message.community_banner;
|
|
12462
|
+
}
|
|
12410
12463
|
return obj;
|
|
12411
12464
|
},
|
|
12412
12465
|
|
|
@@ -12426,6 +12479,8 @@ export const ClanDesc = {
|
|
|
12426
12479
|
message.welcome_channel_id = object.welcome_channel_id ?? "";
|
|
12427
12480
|
message.onboarding_banner = object.onboarding_banner ?? "";
|
|
12428
12481
|
message.clan_order = object.clan_order ?? 0;
|
|
12482
|
+
message.is_community = object.is_community ?? false;
|
|
12483
|
+
message.community_banner = object.community_banner ?? "";
|
|
12429
12484
|
return message;
|
|
12430
12485
|
},
|
|
12431
12486
|
};
|
|
@@ -12524,11 +12579,13 @@ function createBaseUpdateClanDescRequest(): UpdateClanDescRequest {
|
|
|
12524
12579
|
clan_id: "",
|
|
12525
12580
|
clan_name: "",
|
|
12526
12581
|
logo: "",
|
|
12527
|
-
banner:
|
|
12582
|
+
banner: undefined,
|
|
12528
12583
|
status: 0,
|
|
12529
12584
|
is_onboarding: undefined,
|
|
12530
12585
|
welcome_channel_id: "",
|
|
12531
|
-
onboarding_banner:
|
|
12586
|
+
onboarding_banner: undefined,
|
|
12587
|
+
is_community: undefined,
|
|
12588
|
+
community_banner: undefined,
|
|
12532
12589
|
};
|
|
12533
12590
|
}
|
|
12534
12591
|
|
|
@@ -12543,8 +12600,8 @@ export const UpdateClanDescRequest = {
|
|
|
12543
12600
|
if (message.logo !== "") {
|
|
12544
12601
|
writer.uint32(26).string(message.logo);
|
|
12545
12602
|
}
|
|
12546
|
-
if (message.banner !==
|
|
12547
|
-
writer.uint32(34).
|
|
12603
|
+
if (message.banner !== undefined) {
|
|
12604
|
+
StringValue.encode({ value: message.banner! }, writer.uint32(34).fork()).ldelim();
|
|
12548
12605
|
}
|
|
12549
12606
|
if (message.status !== 0) {
|
|
12550
12607
|
writer.uint32(40).int32(message.status);
|
|
@@ -12555,8 +12612,14 @@ export const UpdateClanDescRequest = {
|
|
|
12555
12612
|
if (message.welcome_channel_id !== "") {
|
|
12556
12613
|
writer.uint32(58).string(message.welcome_channel_id);
|
|
12557
12614
|
}
|
|
12558
|
-
if (message.onboarding_banner !==
|
|
12559
|
-
writer.uint32(66).
|
|
12615
|
+
if (message.onboarding_banner !== undefined) {
|
|
12616
|
+
StringValue.encode({ value: message.onboarding_banner! }, writer.uint32(66).fork()).ldelim();
|
|
12617
|
+
}
|
|
12618
|
+
if (message.is_community !== undefined) {
|
|
12619
|
+
BoolValue.encode({ value: message.is_community! }, writer.uint32(74).fork()).ldelim();
|
|
12620
|
+
}
|
|
12621
|
+
if (message.community_banner !== undefined) {
|
|
12622
|
+
StringValue.encode({ value: message.community_banner! }, writer.uint32(82).fork()).ldelim();
|
|
12560
12623
|
}
|
|
12561
12624
|
return writer;
|
|
12562
12625
|
},
|
|
@@ -12594,7 +12657,7 @@ export const UpdateClanDescRequest = {
|
|
|
12594
12657
|
break;
|
|
12595
12658
|
}
|
|
12596
12659
|
|
|
12597
|
-
message.banner = reader.
|
|
12660
|
+
message.banner = StringValue.decode(reader, reader.uint32()).value;
|
|
12598
12661
|
continue;
|
|
12599
12662
|
case 5:
|
|
12600
12663
|
if (tag !== 40) {
|
|
@@ -12622,7 +12685,21 @@ export const UpdateClanDescRequest = {
|
|
|
12622
12685
|
break;
|
|
12623
12686
|
}
|
|
12624
12687
|
|
|
12625
|
-
message.onboarding_banner = reader.
|
|
12688
|
+
message.onboarding_banner = StringValue.decode(reader, reader.uint32()).value;
|
|
12689
|
+
continue;
|
|
12690
|
+
case 9:
|
|
12691
|
+
if (tag !== 74) {
|
|
12692
|
+
break;
|
|
12693
|
+
}
|
|
12694
|
+
|
|
12695
|
+
message.is_community = BoolValue.decode(reader, reader.uint32()).value;
|
|
12696
|
+
continue;
|
|
12697
|
+
case 10:
|
|
12698
|
+
if (tag !== 82) {
|
|
12699
|
+
break;
|
|
12700
|
+
}
|
|
12701
|
+
|
|
12702
|
+
message.community_banner = StringValue.decode(reader, reader.uint32()).value;
|
|
12626
12703
|
continue;
|
|
12627
12704
|
}
|
|
12628
12705
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -12638,11 +12715,13 @@ export const UpdateClanDescRequest = {
|
|
|
12638
12715
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
12639
12716
|
clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
12640
12717
|
logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
|
|
12641
|
-
banner: isSet(object.banner) ?
|
|
12718
|
+
banner: isSet(object.banner) ? String(object.banner) : undefined,
|
|
12642
12719
|
status: isSet(object.status) ? globalThis.Number(object.status) : 0,
|
|
12643
12720
|
is_onboarding: isSet(object.is_onboarding) ? Boolean(object.is_onboarding) : undefined,
|
|
12644
12721
|
welcome_channel_id: isSet(object.welcome_channel_id) ? globalThis.String(object.welcome_channel_id) : "",
|
|
12645
|
-
onboarding_banner: isSet(object.onboarding_banner) ?
|
|
12722
|
+
onboarding_banner: isSet(object.onboarding_banner) ? String(object.onboarding_banner) : undefined,
|
|
12723
|
+
is_community: isSet(object.is_community) ? Boolean(object.is_community) : undefined,
|
|
12724
|
+
community_banner: isSet(object.community_banner) ? String(object.community_banner) : undefined,
|
|
12646
12725
|
};
|
|
12647
12726
|
},
|
|
12648
12727
|
|
|
@@ -12657,7 +12736,7 @@ export const UpdateClanDescRequest = {
|
|
|
12657
12736
|
if (message.logo !== "") {
|
|
12658
12737
|
obj.logo = message.logo;
|
|
12659
12738
|
}
|
|
12660
|
-
if (message.banner !==
|
|
12739
|
+
if (message.banner !== undefined) {
|
|
12661
12740
|
obj.banner = message.banner;
|
|
12662
12741
|
}
|
|
12663
12742
|
if (message.status !== 0) {
|
|
@@ -12669,9 +12748,15 @@ export const UpdateClanDescRequest = {
|
|
|
12669
12748
|
if (message.welcome_channel_id !== "") {
|
|
12670
12749
|
obj.welcome_channel_id = message.welcome_channel_id;
|
|
12671
12750
|
}
|
|
12672
|
-
if (message.onboarding_banner !==
|
|
12751
|
+
if (message.onboarding_banner !== undefined) {
|
|
12673
12752
|
obj.onboarding_banner = message.onboarding_banner;
|
|
12674
12753
|
}
|
|
12754
|
+
if (message.is_community !== undefined) {
|
|
12755
|
+
obj.is_community = message.is_community;
|
|
12756
|
+
}
|
|
12757
|
+
if (message.community_banner !== undefined) {
|
|
12758
|
+
obj.community_banner = message.community_banner;
|
|
12759
|
+
}
|
|
12675
12760
|
return obj;
|
|
12676
12761
|
},
|
|
12677
12762
|
|
|
@@ -12683,11 +12768,13 @@ export const UpdateClanDescRequest = {
|
|
|
12683
12768
|
message.clan_id = object.clan_id ?? "";
|
|
12684
12769
|
message.clan_name = object.clan_name ?? "";
|
|
12685
12770
|
message.logo = object.logo ?? "";
|
|
12686
|
-
message.banner = object.banner ??
|
|
12771
|
+
message.banner = object.banner ?? undefined;
|
|
12687
12772
|
message.status = object.status ?? 0;
|
|
12688
12773
|
message.is_onboarding = object.is_onboarding ?? undefined;
|
|
12689
12774
|
message.welcome_channel_id = object.welcome_channel_id ?? "";
|
|
12690
|
-
message.onboarding_banner = object.onboarding_banner ??
|
|
12775
|
+
message.onboarding_banner = object.onboarding_banner ?? undefined;
|
|
12776
|
+
message.is_community = object.is_community ?? undefined;
|
|
12777
|
+
message.community_banner = object.community_banner ?? undefined;
|
|
12691
12778
|
return message;
|
|
12692
12779
|
},
|
|
12693
12780
|
};
|
|
@@ -17551,13 +17638,22 @@ export const NotificationSetting = {
|
|
|
17551
17638
|
};
|
|
17552
17639
|
|
|
17553
17640
|
function createBaseDeletePinMessage(): DeletePinMessage {
|
|
17554
|
-
return { message_id: "" };
|
|
17641
|
+
return { id: "", message_id: "", channel_id: "", clan_id: "" };
|
|
17555
17642
|
}
|
|
17556
17643
|
|
|
17557
17644
|
export const DeletePinMessage = {
|
|
17558
17645
|
encode(message: DeletePinMessage, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
17646
|
+
if (message.id !== "") {
|
|
17647
|
+
writer.uint32(10).string(message.id);
|
|
17648
|
+
}
|
|
17559
17649
|
if (message.message_id !== "") {
|
|
17560
|
-
writer.uint32(
|
|
17650
|
+
writer.uint32(18).string(message.message_id);
|
|
17651
|
+
}
|
|
17652
|
+
if (message.channel_id !== "") {
|
|
17653
|
+
writer.uint32(26).string(message.channel_id);
|
|
17654
|
+
}
|
|
17655
|
+
if (message.clan_id !== "") {
|
|
17656
|
+
writer.uint32(34).string(message.clan_id);
|
|
17561
17657
|
}
|
|
17562
17658
|
return writer;
|
|
17563
17659
|
},
|
|
@@ -17574,8 +17670,29 @@ export const DeletePinMessage = {
|
|
|
17574
17670
|
break;
|
|
17575
17671
|
}
|
|
17576
17672
|
|
|
17673
|
+
message.id = reader.string();
|
|
17674
|
+
continue;
|
|
17675
|
+
case 2:
|
|
17676
|
+
if (tag !== 18) {
|
|
17677
|
+
break;
|
|
17678
|
+
}
|
|
17679
|
+
|
|
17577
17680
|
message.message_id = reader.string();
|
|
17578
17681
|
continue;
|
|
17682
|
+
case 3:
|
|
17683
|
+
if (tag !== 26) {
|
|
17684
|
+
break;
|
|
17685
|
+
}
|
|
17686
|
+
|
|
17687
|
+
message.channel_id = reader.string();
|
|
17688
|
+
continue;
|
|
17689
|
+
case 4:
|
|
17690
|
+
if (tag !== 34) {
|
|
17691
|
+
break;
|
|
17692
|
+
}
|
|
17693
|
+
|
|
17694
|
+
message.clan_id = reader.string();
|
|
17695
|
+
continue;
|
|
17579
17696
|
}
|
|
17580
17697
|
if ((tag & 7) === 4 || tag === 0) {
|
|
17581
17698
|
break;
|
|
@@ -17586,14 +17703,28 @@ export const DeletePinMessage = {
|
|
|
17586
17703
|
},
|
|
17587
17704
|
|
|
17588
17705
|
fromJSON(object: any): DeletePinMessage {
|
|
17589
|
-
return {
|
|
17706
|
+
return {
|
|
17707
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
17708
|
+
message_id: isSet(object.message_id) ? globalThis.String(object.message_id) : "",
|
|
17709
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
17710
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
17711
|
+
};
|
|
17590
17712
|
},
|
|
17591
17713
|
|
|
17592
17714
|
toJSON(message: DeletePinMessage): unknown {
|
|
17593
17715
|
const obj: any = {};
|
|
17716
|
+
if (message.id !== "") {
|
|
17717
|
+
obj.id = message.id;
|
|
17718
|
+
}
|
|
17594
17719
|
if (message.message_id !== "") {
|
|
17595
17720
|
obj.message_id = message.message_id;
|
|
17596
17721
|
}
|
|
17722
|
+
if (message.channel_id !== "") {
|
|
17723
|
+
obj.channel_id = message.channel_id;
|
|
17724
|
+
}
|
|
17725
|
+
if (message.clan_id !== "") {
|
|
17726
|
+
obj.clan_id = message.clan_id;
|
|
17727
|
+
}
|
|
17597
17728
|
return obj;
|
|
17598
17729
|
},
|
|
17599
17730
|
|
|
@@ -17602,7 +17733,10 @@ export const DeletePinMessage = {
|
|
|
17602
17733
|
},
|
|
17603
17734
|
fromPartial<I extends Exact<DeepPartial<DeletePinMessage>, I>>(object: I): DeletePinMessage {
|
|
17604
17735
|
const message = createBaseDeletePinMessage();
|
|
17736
|
+
message.id = object.id ?? "";
|
|
17605
17737
|
message.message_id = object.message_id ?? "";
|
|
17738
|
+
message.channel_id = object.channel_id ?? "";
|
|
17739
|
+
message.clan_id = object.clan_id ?? "";
|
|
17606
17740
|
return message;
|
|
17607
17741
|
},
|
|
17608
17742
|
};
|
|
@@ -22117,9 +22251,9 @@ export const FilterParam = {
|
|
|
22117
22251
|
function createBaseSearchMessageDocument(): SearchMessageDocument {
|
|
22118
22252
|
return {
|
|
22119
22253
|
message_id: "",
|
|
22120
|
-
channel_id:
|
|
22121
|
-
clan_id:
|
|
22122
|
-
sender_id:
|
|
22254
|
+
channel_id: "",
|
|
22255
|
+
clan_id: "",
|
|
22256
|
+
sender_id: "",
|
|
22123
22257
|
content: "",
|
|
22124
22258
|
mentions: "",
|
|
22125
22259
|
reactions: "",
|
|
@@ -22141,14 +22275,14 @@ export const SearchMessageDocument = {
|
|
|
22141
22275
|
if (message.message_id !== "") {
|
|
22142
22276
|
writer.uint32(10).string(message.message_id);
|
|
22143
22277
|
}
|
|
22144
|
-
if (message.channel_id !==
|
|
22145
|
-
writer.uint32(
|
|
22278
|
+
if (message.channel_id !== "") {
|
|
22279
|
+
writer.uint32(18).string(message.channel_id);
|
|
22146
22280
|
}
|
|
22147
|
-
if (message.clan_id !==
|
|
22148
|
-
writer.uint32(
|
|
22281
|
+
if (message.clan_id !== "") {
|
|
22282
|
+
writer.uint32(26).string(message.clan_id);
|
|
22149
22283
|
}
|
|
22150
|
-
if (message.sender_id !==
|
|
22151
|
-
writer.uint32(
|
|
22284
|
+
if (message.sender_id !== "") {
|
|
22285
|
+
writer.uint32(34).string(message.sender_id);
|
|
22152
22286
|
}
|
|
22153
22287
|
if (message.content !== "") {
|
|
22154
22288
|
writer.uint32(42).string(message.content);
|
|
@@ -22207,25 +22341,25 @@ export const SearchMessageDocument = {
|
|
|
22207
22341
|
message.message_id = reader.string();
|
|
22208
22342
|
continue;
|
|
22209
22343
|
case 2:
|
|
22210
|
-
if (tag !==
|
|
22344
|
+
if (tag !== 18) {
|
|
22211
22345
|
break;
|
|
22212
22346
|
}
|
|
22213
22347
|
|
|
22214
|
-
message.channel_id =
|
|
22348
|
+
message.channel_id = reader.string();
|
|
22215
22349
|
continue;
|
|
22216
22350
|
case 3:
|
|
22217
|
-
if (tag !==
|
|
22351
|
+
if (tag !== 26) {
|
|
22218
22352
|
break;
|
|
22219
22353
|
}
|
|
22220
22354
|
|
|
22221
|
-
message.clan_id =
|
|
22355
|
+
message.clan_id = reader.string();
|
|
22222
22356
|
continue;
|
|
22223
22357
|
case 4:
|
|
22224
|
-
if (tag !==
|
|
22358
|
+
if (tag !== 34) {
|
|
22225
22359
|
break;
|
|
22226
22360
|
}
|
|
22227
22361
|
|
|
22228
|
-
message.sender_id =
|
|
22362
|
+
message.sender_id = reader.string();
|
|
22229
22363
|
continue;
|
|
22230
22364
|
case 5:
|
|
22231
22365
|
if (tag !== 42) {
|
|
@@ -22330,9 +22464,9 @@ export const SearchMessageDocument = {
|
|
|
22330
22464
|
fromJSON(object: any): SearchMessageDocument {
|
|
22331
22465
|
return {
|
|
22332
22466
|
message_id: isSet(object.message_id) ? globalThis.String(object.message_id) : "",
|
|
22333
|
-
channel_id: isSet(object.channel_id) ? globalThis.
|
|
22334
|
-
clan_id: isSet(object.clan_id) ? globalThis.
|
|
22335
|
-
sender_id: isSet(object.sender_id) ? globalThis.
|
|
22467
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
22468
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
22469
|
+
sender_id: isSet(object.sender_id) ? globalThis.String(object.sender_id) : "",
|
|
22336
22470
|
content: isSet(object.content) ? globalThis.String(object.content) : "",
|
|
22337
22471
|
mentions: isSet(object.mentions) ? globalThis.String(object.mentions) : "",
|
|
22338
22472
|
reactions: isSet(object.reactions) ? globalThis.String(object.reactions) : "",
|
|
@@ -22356,14 +22490,14 @@ export const SearchMessageDocument = {
|
|
|
22356
22490
|
if (message.message_id !== "") {
|
|
22357
22491
|
obj.message_id = message.message_id;
|
|
22358
22492
|
}
|
|
22359
|
-
if (message.channel_id !==
|
|
22360
|
-
obj.channel_id =
|
|
22493
|
+
if (message.channel_id !== "") {
|
|
22494
|
+
obj.channel_id = message.channel_id;
|
|
22361
22495
|
}
|
|
22362
|
-
if (message.clan_id !==
|
|
22363
|
-
obj.clan_id =
|
|
22496
|
+
if (message.clan_id !== "") {
|
|
22497
|
+
obj.clan_id = message.clan_id;
|
|
22364
22498
|
}
|
|
22365
|
-
if (message.sender_id !==
|
|
22366
|
-
obj.sender_id =
|
|
22499
|
+
if (message.sender_id !== "") {
|
|
22500
|
+
obj.sender_id = message.sender_id;
|
|
22367
22501
|
}
|
|
22368
22502
|
if (message.content !== "") {
|
|
22369
22503
|
obj.content = message.content;
|
|
@@ -22413,9 +22547,9 @@ export const SearchMessageDocument = {
|
|
|
22413
22547
|
fromPartial<I extends Exact<DeepPartial<SearchMessageDocument>, I>>(object: I): SearchMessageDocument {
|
|
22414
22548
|
const message = createBaseSearchMessageDocument();
|
|
22415
22549
|
message.message_id = object.message_id ?? "";
|
|
22416
|
-
message.channel_id = object.channel_id ??
|
|
22417
|
-
message.clan_id = object.clan_id ??
|
|
22418
|
-
message.sender_id = object.sender_id ??
|
|
22550
|
+
message.channel_id = object.channel_id ?? "";
|
|
22551
|
+
message.clan_id = object.clan_id ?? "";
|
|
22552
|
+
message.sender_id = object.sender_id ?? "";
|
|
22419
22553
|
message.content = object.content ?? "";
|
|
22420
22554
|
message.mentions = object.mentions ?? "";
|
|
22421
22555
|
message.reactions = object.reactions ?? "";
|
|
@@ -38329,215 +38463,6 @@ export const ForSaleItemList = {
|
|
|
38329
38463
|
},
|
|
38330
38464
|
};
|
|
38331
38465
|
|
|
38332
|
-
function createBaseListChannelMemberRequest(): ListChannelMemberRequest {
|
|
38333
|
-
return { channel_id: "", clan_id: "" };
|
|
38334
|
-
}
|
|
38335
|
-
|
|
38336
|
-
export const ListChannelMemberRequest = {
|
|
38337
|
-
encode(message: ListChannelMemberRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
38338
|
-
if (message.channel_id !== "") {
|
|
38339
|
-
writer.uint32(10).string(message.channel_id);
|
|
38340
|
-
}
|
|
38341
|
-
if (message.clan_id !== "") {
|
|
38342
|
-
writer.uint32(18).string(message.clan_id);
|
|
38343
|
-
}
|
|
38344
|
-
return writer;
|
|
38345
|
-
},
|
|
38346
|
-
|
|
38347
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): ListChannelMemberRequest {
|
|
38348
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
38349
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
38350
|
-
const message = createBaseListChannelMemberRequest();
|
|
38351
|
-
while (reader.pos < end) {
|
|
38352
|
-
const tag = reader.uint32();
|
|
38353
|
-
switch (tag >>> 3) {
|
|
38354
|
-
case 1:
|
|
38355
|
-
if (tag !== 10) {
|
|
38356
|
-
break;
|
|
38357
|
-
}
|
|
38358
|
-
|
|
38359
|
-
message.channel_id = reader.string();
|
|
38360
|
-
continue;
|
|
38361
|
-
case 2:
|
|
38362
|
-
if (tag !== 18) {
|
|
38363
|
-
break;
|
|
38364
|
-
}
|
|
38365
|
-
|
|
38366
|
-
message.clan_id = reader.string();
|
|
38367
|
-
continue;
|
|
38368
|
-
}
|
|
38369
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
38370
|
-
break;
|
|
38371
|
-
}
|
|
38372
|
-
reader.skipType(tag & 7);
|
|
38373
|
-
}
|
|
38374
|
-
return message;
|
|
38375
|
-
},
|
|
38376
|
-
|
|
38377
|
-
fromJSON(object: any): ListChannelMemberRequest {
|
|
38378
|
-
return {
|
|
38379
|
-
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
38380
|
-
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
38381
|
-
};
|
|
38382
|
-
},
|
|
38383
|
-
|
|
38384
|
-
toJSON(message: ListChannelMemberRequest): unknown {
|
|
38385
|
-
const obj: any = {};
|
|
38386
|
-
if (message.channel_id !== "") {
|
|
38387
|
-
obj.channel_id = message.channel_id;
|
|
38388
|
-
}
|
|
38389
|
-
if (message.clan_id !== "") {
|
|
38390
|
-
obj.clan_id = message.clan_id;
|
|
38391
|
-
}
|
|
38392
|
-
return obj;
|
|
38393
|
-
},
|
|
38394
|
-
|
|
38395
|
-
create<I extends Exact<DeepPartial<ListChannelMemberRequest>, I>>(base?: I): ListChannelMemberRequest {
|
|
38396
|
-
return ListChannelMemberRequest.fromPartial(base ?? ({} as any));
|
|
38397
|
-
},
|
|
38398
|
-
fromPartial<I extends Exact<DeepPartial<ListChannelMemberRequest>, I>>(object: I): ListChannelMemberRequest {
|
|
38399
|
-
const message = createBaseListChannelMemberRequest();
|
|
38400
|
-
message.channel_id = object.channel_id ?? "";
|
|
38401
|
-
message.clan_id = object.clan_id ?? "";
|
|
38402
|
-
return message;
|
|
38403
|
-
},
|
|
38404
|
-
};
|
|
38405
|
-
|
|
38406
|
-
function createBaseChannelMemberDetail(): ChannelMemberDetail {
|
|
38407
|
-
return { member_id: "", added_by: "" };
|
|
38408
|
-
}
|
|
38409
|
-
|
|
38410
|
-
export const ChannelMemberDetail = {
|
|
38411
|
-
encode(message: ChannelMemberDetail, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
38412
|
-
if (message.member_id !== "") {
|
|
38413
|
-
writer.uint32(10).string(message.member_id);
|
|
38414
|
-
}
|
|
38415
|
-
if (message.added_by !== "") {
|
|
38416
|
-
writer.uint32(18).string(message.added_by);
|
|
38417
|
-
}
|
|
38418
|
-
return writer;
|
|
38419
|
-
},
|
|
38420
|
-
|
|
38421
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): ChannelMemberDetail {
|
|
38422
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
38423
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
38424
|
-
const message = createBaseChannelMemberDetail();
|
|
38425
|
-
while (reader.pos < end) {
|
|
38426
|
-
const tag = reader.uint32();
|
|
38427
|
-
switch (tag >>> 3) {
|
|
38428
|
-
case 1:
|
|
38429
|
-
if (tag !== 10) {
|
|
38430
|
-
break;
|
|
38431
|
-
}
|
|
38432
|
-
|
|
38433
|
-
message.member_id = reader.string();
|
|
38434
|
-
continue;
|
|
38435
|
-
case 2:
|
|
38436
|
-
if (tag !== 18) {
|
|
38437
|
-
break;
|
|
38438
|
-
}
|
|
38439
|
-
|
|
38440
|
-
message.added_by = reader.string();
|
|
38441
|
-
continue;
|
|
38442
|
-
}
|
|
38443
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
38444
|
-
break;
|
|
38445
|
-
}
|
|
38446
|
-
reader.skipType(tag & 7);
|
|
38447
|
-
}
|
|
38448
|
-
return message;
|
|
38449
|
-
},
|
|
38450
|
-
|
|
38451
|
-
fromJSON(object: any): ChannelMemberDetail {
|
|
38452
|
-
return {
|
|
38453
|
-
member_id: isSet(object.member_id) ? globalThis.String(object.member_id) : "",
|
|
38454
|
-
added_by: isSet(object.added_by) ? globalThis.String(object.added_by) : "",
|
|
38455
|
-
};
|
|
38456
|
-
},
|
|
38457
|
-
|
|
38458
|
-
toJSON(message: ChannelMemberDetail): unknown {
|
|
38459
|
-
const obj: any = {};
|
|
38460
|
-
if (message.member_id !== "") {
|
|
38461
|
-
obj.member_id = message.member_id;
|
|
38462
|
-
}
|
|
38463
|
-
if (message.added_by !== "") {
|
|
38464
|
-
obj.added_by = message.added_by;
|
|
38465
|
-
}
|
|
38466
|
-
return obj;
|
|
38467
|
-
},
|
|
38468
|
-
|
|
38469
|
-
create<I extends Exact<DeepPartial<ChannelMemberDetail>, I>>(base?: I): ChannelMemberDetail {
|
|
38470
|
-
return ChannelMemberDetail.fromPartial(base ?? ({} as any));
|
|
38471
|
-
},
|
|
38472
|
-
fromPartial<I extends Exact<DeepPartial<ChannelMemberDetail>, I>>(object: I): ChannelMemberDetail {
|
|
38473
|
-
const message = createBaseChannelMemberDetail();
|
|
38474
|
-
message.member_id = object.member_id ?? "";
|
|
38475
|
-
message.added_by = object.added_by ?? "";
|
|
38476
|
-
return message;
|
|
38477
|
-
},
|
|
38478
|
-
};
|
|
38479
|
-
|
|
38480
|
-
function createBaseChannelMemberList(): ChannelMemberList {
|
|
38481
|
-
return { channel_members: [] };
|
|
38482
|
-
}
|
|
38483
|
-
|
|
38484
|
-
export const ChannelMemberList = {
|
|
38485
|
-
encode(message: ChannelMemberList, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
38486
|
-
for (const v of message.channel_members) {
|
|
38487
|
-
ChannelMemberDetail.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
38488
|
-
}
|
|
38489
|
-
return writer;
|
|
38490
|
-
},
|
|
38491
|
-
|
|
38492
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): ChannelMemberList {
|
|
38493
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
38494
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
38495
|
-
const message = createBaseChannelMemberList();
|
|
38496
|
-
while (reader.pos < end) {
|
|
38497
|
-
const tag = reader.uint32();
|
|
38498
|
-
switch (tag >>> 3) {
|
|
38499
|
-
case 1:
|
|
38500
|
-
if (tag !== 10) {
|
|
38501
|
-
break;
|
|
38502
|
-
}
|
|
38503
|
-
|
|
38504
|
-
message.channel_members.push(ChannelMemberDetail.decode(reader, reader.uint32()));
|
|
38505
|
-
continue;
|
|
38506
|
-
}
|
|
38507
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
38508
|
-
break;
|
|
38509
|
-
}
|
|
38510
|
-
reader.skipType(tag & 7);
|
|
38511
|
-
}
|
|
38512
|
-
return message;
|
|
38513
|
-
},
|
|
38514
|
-
|
|
38515
|
-
fromJSON(object: any): ChannelMemberList {
|
|
38516
|
-
return {
|
|
38517
|
-
channel_members: globalThis.Array.isArray(object?.channel_members)
|
|
38518
|
-
? object.channel_members.map((e: any) => ChannelMemberDetail.fromJSON(e))
|
|
38519
|
-
: [],
|
|
38520
|
-
};
|
|
38521
|
-
},
|
|
38522
|
-
|
|
38523
|
-
toJSON(message: ChannelMemberList): unknown {
|
|
38524
|
-
const obj: any = {};
|
|
38525
|
-
if (message.channel_members?.length) {
|
|
38526
|
-
obj.channel_members = message.channel_members.map((e) => ChannelMemberDetail.toJSON(e));
|
|
38527
|
-
}
|
|
38528
|
-
return obj;
|
|
38529
|
-
},
|
|
38530
|
-
|
|
38531
|
-
create<I extends Exact<DeepPartial<ChannelMemberList>, I>>(base?: I): ChannelMemberList {
|
|
38532
|
-
return ChannelMemberList.fromPartial(base ?? ({} as any));
|
|
38533
|
-
},
|
|
38534
|
-
fromPartial<I extends Exact<DeepPartial<ChannelMemberList>, I>>(object: I): ChannelMemberList {
|
|
38535
|
-
const message = createBaseChannelMemberList();
|
|
38536
|
-
message.channel_members = object.channel_members?.map((e) => ChannelMemberDetail.fromPartial(e)) || [];
|
|
38537
|
-
return message;
|
|
38538
|
-
},
|
|
38539
|
-
};
|
|
38540
|
-
|
|
38541
38466
|
function bytesFromBase64(b64: string): Uint8Array {
|
|
38542
38467
|
if ((globalThis as any).Buffer) {
|
|
38543
38468
|
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|