mezon-js-protobuf 1.8.28 → 1.8.29
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 +232 -38
- package/dist/mezon-js-protobuf/api/api.d.ts +75 -16
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +42 -42
- package/dist/mezon-js-protobuf.cjs.js +27 -27
- package/dist/mezon-js-protobuf.esm.mjs +27 -27
- package/package.json +1 -1
package/api/api.ts
CHANGED
|
@@ -969,11 +969,11 @@ export interface ListChannelAttachmentRequest {
|
|
|
969
969
|
| number
|
|
970
970
|
| undefined;
|
|
971
971
|
/** An optional previous id for page. */
|
|
972
|
-
before:
|
|
972
|
+
before: number;
|
|
973
973
|
/** An optional next id for page. */
|
|
974
|
-
after:
|
|
974
|
+
after: number;
|
|
975
975
|
/** An optional around id for page. */
|
|
976
|
-
around:
|
|
976
|
+
around: number;
|
|
977
977
|
}
|
|
978
978
|
|
|
979
979
|
/** List all users that are part of a clan. */
|
|
@@ -1147,7 +1147,9 @@ export interface UpdateAccountRequest {
|
|
|
1147
1147
|
| Date
|
|
1148
1148
|
| undefined;
|
|
1149
1149
|
/** logo url */
|
|
1150
|
-
logo:
|
|
1150
|
+
logo:
|
|
1151
|
+
| string
|
|
1152
|
+
| undefined;
|
|
1151
1153
|
/** splash screen */
|
|
1152
1154
|
splash_screen: string;
|
|
1153
1155
|
/** e2ee encrypt private key */
|
|
@@ -1428,6 +1430,8 @@ export interface UpdateClanDescRequest {
|
|
|
1428
1430
|
description: string;
|
|
1429
1431
|
/** about */
|
|
1430
1432
|
about: string;
|
|
1433
|
+
/** short url for community */
|
|
1434
|
+
short_url: string | undefined;
|
|
1431
1435
|
}
|
|
1432
1436
|
|
|
1433
1437
|
/** Delete a clan the user has access to. */
|
|
@@ -3698,6 +3702,12 @@ export interface GenerateMeetTokenRequest {
|
|
|
3698
3702
|
room_name: string;
|
|
3699
3703
|
}
|
|
3700
3704
|
|
|
3705
|
+
export interface MeetParticipantRequest {
|
|
3706
|
+
username: string;
|
|
3707
|
+
room_name: string;
|
|
3708
|
+
clan_id: string;
|
|
3709
|
+
}
|
|
3710
|
+
|
|
3701
3711
|
export interface GenerateMeetTokenResponse {
|
|
3702
3712
|
token: string;
|
|
3703
3713
|
}
|
|
@@ -3871,6 +3881,11 @@ export interface IsFollowerResponse {
|
|
|
3871
3881
|
is_follower: boolean;
|
|
3872
3882
|
}
|
|
3873
3883
|
|
|
3884
|
+
export interface TransferOwnershipRequest {
|
|
3885
|
+
clan_id: string;
|
|
3886
|
+
new_owner_id: string;
|
|
3887
|
+
}
|
|
3888
|
+
|
|
3874
3889
|
function createBaseAccount(): Account {
|
|
3875
3890
|
return {
|
|
3876
3891
|
user: undefined,
|
|
@@ -9566,9 +9581,9 @@ function createBaseListChannelAttachmentRequest(): ListChannelAttachmentRequest
|
|
|
9566
9581
|
file_type: "",
|
|
9567
9582
|
limit: undefined,
|
|
9568
9583
|
state: undefined,
|
|
9569
|
-
before:
|
|
9570
|
-
after:
|
|
9571
|
-
around:
|
|
9584
|
+
before: 0,
|
|
9585
|
+
after: 0,
|
|
9586
|
+
around: 0,
|
|
9572
9587
|
};
|
|
9573
9588
|
}
|
|
9574
9589
|
|
|
@@ -9589,14 +9604,14 @@ export const ListChannelAttachmentRequest = {
|
|
|
9589
9604
|
if (message.state !== undefined) {
|
|
9590
9605
|
Int32Value.encode({ value: message.state! }, writer.uint32(42).fork()).ldelim();
|
|
9591
9606
|
}
|
|
9592
|
-
if (message.before !==
|
|
9593
|
-
writer.uint32(
|
|
9607
|
+
if (message.before !== 0) {
|
|
9608
|
+
writer.uint32(48).uint32(message.before);
|
|
9594
9609
|
}
|
|
9595
|
-
if (message.after !==
|
|
9596
|
-
writer.uint32(
|
|
9610
|
+
if (message.after !== 0) {
|
|
9611
|
+
writer.uint32(56).uint32(message.after);
|
|
9597
9612
|
}
|
|
9598
|
-
if (message.around !==
|
|
9599
|
-
writer.uint32(
|
|
9613
|
+
if (message.around !== 0) {
|
|
9614
|
+
writer.uint32(64).uint32(message.around);
|
|
9600
9615
|
}
|
|
9601
9616
|
return writer;
|
|
9602
9617
|
},
|
|
@@ -9644,25 +9659,25 @@ export const ListChannelAttachmentRequest = {
|
|
|
9644
9659
|
message.state = Int32Value.decode(reader, reader.uint32()).value;
|
|
9645
9660
|
continue;
|
|
9646
9661
|
case 6:
|
|
9647
|
-
if (tag !==
|
|
9662
|
+
if (tag !== 48) {
|
|
9648
9663
|
break;
|
|
9649
9664
|
}
|
|
9650
9665
|
|
|
9651
|
-
message.before = reader.
|
|
9666
|
+
message.before = reader.uint32();
|
|
9652
9667
|
continue;
|
|
9653
9668
|
case 7:
|
|
9654
|
-
if (tag !==
|
|
9669
|
+
if (tag !== 56) {
|
|
9655
9670
|
break;
|
|
9656
9671
|
}
|
|
9657
9672
|
|
|
9658
|
-
message.after = reader.
|
|
9673
|
+
message.after = reader.uint32();
|
|
9659
9674
|
continue;
|
|
9660
9675
|
case 8:
|
|
9661
|
-
if (tag !==
|
|
9676
|
+
if (tag !== 64) {
|
|
9662
9677
|
break;
|
|
9663
9678
|
}
|
|
9664
9679
|
|
|
9665
|
-
message.around = reader.
|
|
9680
|
+
message.around = reader.uint32();
|
|
9666
9681
|
continue;
|
|
9667
9682
|
}
|
|
9668
9683
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -9680,9 +9695,9 @@ export const ListChannelAttachmentRequest = {
|
|
|
9680
9695
|
file_type: isSet(object.file_type) ? globalThis.String(object.file_type) : "",
|
|
9681
9696
|
limit: isSet(object.limit) ? Number(object.limit) : undefined,
|
|
9682
9697
|
state: isSet(object.state) ? Number(object.state) : undefined,
|
|
9683
|
-
before: isSet(object.before) ? globalThis.
|
|
9684
|
-
after: isSet(object.after) ? globalThis.
|
|
9685
|
-
around: isSet(object.around) ? globalThis.
|
|
9698
|
+
before: isSet(object.before) ? globalThis.Number(object.before) : 0,
|
|
9699
|
+
after: isSet(object.after) ? globalThis.Number(object.after) : 0,
|
|
9700
|
+
around: isSet(object.around) ? globalThis.Number(object.around) : 0,
|
|
9686
9701
|
};
|
|
9687
9702
|
},
|
|
9688
9703
|
|
|
@@ -9703,14 +9718,14 @@ export const ListChannelAttachmentRequest = {
|
|
|
9703
9718
|
if (message.state !== undefined) {
|
|
9704
9719
|
obj.state = message.state;
|
|
9705
9720
|
}
|
|
9706
|
-
if (message.before !==
|
|
9707
|
-
obj.before = message.before;
|
|
9721
|
+
if (message.before !== 0) {
|
|
9722
|
+
obj.before = Math.round(message.before);
|
|
9708
9723
|
}
|
|
9709
|
-
if (message.after !==
|
|
9710
|
-
obj.after = message.after;
|
|
9724
|
+
if (message.after !== 0) {
|
|
9725
|
+
obj.after = Math.round(message.after);
|
|
9711
9726
|
}
|
|
9712
|
-
if (message.around !==
|
|
9713
|
-
obj.around = message.around;
|
|
9727
|
+
if (message.around !== 0) {
|
|
9728
|
+
obj.around = Math.round(message.around);
|
|
9714
9729
|
}
|
|
9715
9730
|
return obj;
|
|
9716
9731
|
},
|
|
@@ -9725,9 +9740,9 @@ export const ListChannelAttachmentRequest = {
|
|
|
9725
9740
|
message.file_type = object.file_type ?? "";
|
|
9726
9741
|
message.limit = object.limit ?? undefined;
|
|
9727
9742
|
message.state = object.state ?? undefined;
|
|
9728
|
-
message.before = object.before ??
|
|
9729
|
-
message.after = object.after ??
|
|
9730
|
-
message.around = object.around ??
|
|
9743
|
+
message.before = object.before ?? 0;
|
|
9744
|
+
message.after = object.after ?? 0;
|
|
9745
|
+
message.around = object.around ?? 0;
|
|
9731
9746
|
return message;
|
|
9732
9747
|
},
|
|
9733
9748
|
};
|
|
@@ -10875,7 +10890,7 @@ function createBaseUpdateAccountRequest(): UpdateAccountRequest {
|
|
|
10875
10890
|
timezone: undefined,
|
|
10876
10891
|
about_me: "",
|
|
10877
10892
|
dob: undefined,
|
|
10878
|
-
logo:
|
|
10893
|
+
logo: undefined,
|
|
10879
10894
|
splash_screen: "",
|
|
10880
10895
|
encrypt_private_key: "",
|
|
10881
10896
|
};
|
|
@@ -10907,8 +10922,8 @@ export const UpdateAccountRequest = {
|
|
|
10907
10922
|
if (message.dob !== undefined) {
|
|
10908
10923
|
Timestamp.encode(toTimestamp(message.dob), writer.uint32(66).fork()).ldelim();
|
|
10909
10924
|
}
|
|
10910
|
-
if (message.logo !==
|
|
10911
|
-
writer.uint32(74).
|
|
10925
|
+
if (message.logo !== undefined) {
|
|
10926
|
+
StringValue.encode({ value: message.logo! }, writer.uint32(74).fork()).ldelim();
|
|
10912
10927
|
}
|
|
10913
10928
|
if (message.splash_screen !== "") {
|
|
10914
10929
|
writer.uint32(82).string(message.splash_screen);
|
|
@@ -10987,7 +11002,7 @@ export const UpdateAccountRequest = {
|
|
|
10987
11002
|
break;
|
|
10988
11003
|
}
|
|
10989
11004
|
|
|
10990
|
-
message.logo = reader.
|
|
11005
|
+
message.logo = StringValue.decode(reader, reader.uint32()).value;
|
|
10991
11006
|
continue;
|
|
10992
11007
|
case 10:
|
|
10993
11008
|
if (tag !== 82) {
|
|
@@ -11022,7 +11037,7 @@ export const UpdateAccountRequest = {
|
|
|
11022
11037
|
timezone: isSet(object.timezone) ? String(object.timezone) : undefined,
|
|
11023
11038
|
about_me: isSet(object.about_me) ? globalThis.String(object.about_me) : "",
|
|
11024
11039
|
dob: isSet(object.dob) ? fromJsonTimestamp(object.dob) : undefined,
|
|
11025
|
-
logo: isSet(object.logo) ?
|
|
11040
|
+
logo: isSet(object.logo) ? String(object.logo) : undefined,
|
|
11026
11041
|
splash_screen: isSet(object.splash_screen) ? globalThis.String(object.splash_screen) : "",
|
|
11027
11042
|
encrypt_private_key: isSet(object.encrypt_private_key) ? globalThis.String(object.encrypt_private_key) : "",
|
|
11028
11043
|
};
|
|
@@ -11054,7 +11069,7 @@ export const UpdateAccountRequest = {
|
|
|
11054
11069
|
if (message.dob !== undefined) {
|
|
11055
11070
|
obj.dob = message.dob.toISOString();
|
|
11056
11071
|
}
|
|
11057
|
-
if (message.logo !==
|
|
11072
|
+
if (message.logo !== undefined) {
|
|
11058
11073
|
obj.logo = message.logo;
|
|
11059
11074
|
}
|
|
11060
11075
|
if (message.splash_screen !== "") {
|
|
@@ -11079,7 +11094,7 @@ export const UpdateAccountRequest = {
|
|
|
11079
11094
|
message.timezone = object.timezone ?? undefined;
|
|
11080
11095
|
message.about_me = object.about_me ?? "";
|
|
11081
11096
|
message.dob = object.dob ?? undefined;
|
|
11082
|
-
message.logo = object.logo ??
|
|
11097
|
+
message.logo = object.logo ?? undefined;
|
|
11083
11098
|
message.splash_screen = object.splash_screen ?? "";
|
|
11084
11099
|
message.encrypt_private_key = object.encrypt_private_key ?? "";
|
|
11085
11100
|
return message;
|
|
@@ -12604,6 +12619,7 @@ function createBaseUpdateClanDescRequest(): UpdateClanDescRequest {
|
|
|
12604
12619
|
community_banner: undefined,
|
|
12605
12620
|
description: "",
|
|
12606
12621
|
about: "",
|
|
12622
|
+
short_url: undefined,
|
|
12607
12623
|
};
|
|
12608
12624
|
}
|
|
12609
12625
|
|
|
@@ -12645,6 +12661,9 @@ export const UpdateClanDescRequest = {
|
|
|
12645
12661
|
if (message.about !== "") {
|
|
12646
12662
|
writer.uint32(98).string(message.about);
|
|
12647
12663
|
}
|
|
12664
|
+
if (message.short_url !== undefined) {
|
|
12665
|
+
StringValue.encode({ value: message.short_url! }, writer.uint32(106).fork()).ldelim();
|
|
12666
|
+
}
|
|
12648
12667
|
return writer;
|
|
12649
12668
|
},
|
|
12650
12669
|
|
|
@@ -12739,6 +12758,13 @@ export const UpdateClanDescRequest = {
|
|
|
12739
12758
|
|
|
12740
12759
|
message.about = reader.string();
|
|
12741
12760
|
continue;
|
|
12761
|
+
case 13:
|
|
12762
|
+
if (tag !== 106) {
|
|
12763
|
+
break;
|
|
12764
|
+
}
|
|
12765
|
+
|
|
12766
|
+
message.short_url = StringValue.decode(reader, reader.uint32()).value;
|
|
12767
|
+
continue;
|
|
12742
12768
|
}
|
|
12743
12769
|
if ((tag & 7) === 4 || tag === 0) {
|
|
12744
12770
|
break;
|
|
@@ -12762,6 +12788,7 @@ export const UpdateClanDescRequest = {
|
|
|
12762
12788
|
community_banner: isSet(object.community_banner) ? String(object.community_banner) : undefined,
|
|
12763
12789
|
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
12764
12790
|
about: isSet(object.about) ? globalThis.String(object.about) : "",
|
|
12791
|
+
short_url: isSet(object.short_url) ? String(object.short_url) : undefined,
|
|
12765
12792
|
};
|
|
12766
12793
|
},
|
|
12767
12794
|
|
|
@@ -12803,6 +12830,9 @@ export const UpdateClanDescRequest = {
|
|
|
12803
12830
|
if (message.about !== "") {
|
|
12804
12831
|
obj.about = message.about;
|
|
12805
12832
|
}
|
|
12833
|
+
if (message.short_url !== undefined) {
|
|
12834
|
+
obj.short_url = message.short_url;
|
|
12835
|
+
}
|
|
12806
12836
|
return obj;
|
|
12807
12837
|
},
|
|
12808
12838
|
|
|
@@ -12823,6 +12853,7 @@ export const UpdateClanDescRequest = {
|
|
|
12823
12853
|
message.community_banner = object.community_banner ?? undefined;
|
|
12824
12854
|
message.description = object.description ?? "";
|
|
12825
12855
|
message.about = object.about ?? "";
|
|
12856
|
+
message.short_url = object.short_url ?? undefined;
|
|
12826
12857
|
return message;
|
|
12827
12858
|
},
|
|
12828
12859
|
};
|
|
@@ -36024,6 +36055,95 @@ export const GenerateMeetTokenRequest = {
|
|
|
36024
36055
|
},
|
|
36025
36056
|
};
|
|
36026
36057
|
|
|
36058
|
+
function createBaseMeetParticipantRequest(): MeetParticipantRequest {
|
|
36059
|
+
return { username: "", room_name: "", clan_id: "" };
|
|
36060
|
+
}
|
|
36061
|
+
|
|
36062
|
+
export const MeetParticipantRequest = {
|
|
36063
|
+
encode(message: MeetParticipantRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
36064
|
+
if (message.username !== "") {
|
|
36065
|
+
writer.uint32(10).string(message.username);
|
|
36066
|
+
}
|
|
36067
|
+
if (message.room_name !== "") {
|
|
36068
|
+
writer.uint32(18).string(message.room_name);
|
|
36069
|
+
}
|
|
36070
|
+
if (message.clan_id !== "") {
|
|
36071
|
+
writer.uint32(26).string(message.clan_id);
|
|
36072
|
+
}
|
|
36073
|
+
return writer;
|
|
36074
|
+
},
|
|
36075
|
+
|
|
36076
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MeetParticipantRequest {
|
|
36077
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
36078
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
36079
|
+
const message = createBaseMeetParticipantRequest();
|
|
36080
|
+
while (reader.pos < end) {
|
|
36081
|
+
const tag = reader.uint32();
|
|
36082
|
+
switch (tag >>> 3) {
|
|
36083
|
+
case 1:
|
|
36084
|
+
if (tag !== 10) {
|
|
36085
|
+
break;
|
|
36086
|
+
}
|
|
36087
|
+
|
|
36088
|
+
message.username = reader.string();
|
|
36089
|
+
continue;
|
|
36090
|
+
case 2:
|
|
36091
|
+
if (tag !== 18) {
|
|
36092
|
+
break;
|
|
36093
|
+
}
|
|
36094
|
+
|
|
36095
|
+
message.room_name = reader.string();
|
|
36096
|
+
continue;
|
|
36097
|
+
case 3:
|
|
36098
|
+
if (tag !== 26) {
|
|
36099
|
+
break;
|
|
36100
|
+
}
|
|
36101
|
+
|
|
36102
|
+
message.clan_id = reader.string();
|
|
36103
|
+
continue;
|
|
36104
|
+
}
|
|
36105
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
36106
|
+
break;
|
|
36107
|
+
}
|
|
36108
|
+
reader.skipType(tag & 7);
|
|
36109
|
+
}
|
|
36110
|
+
return message;
|
|
36111
|
+
},
|
|
36112
|
+
|
|
36113
|
+
fromJSON(object: any): MeetParticipantRequest {
|
|
36114
|
+
return {
|
|
36115
|
+
username: isSet(object.username) ? globalThis.String(object.username) : "",
|
|
36116
|
+
room_name: isSet(object.room_name) ? globalThis.String(object.room_name) : "",
|
|
36117
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
36118
|
+
};
|
|
36119
|
+
},
|
|
36120
|
+
|
|
36121
|
+
toJSON(message: MeetParticipantRequest): unknown {
|
|
36122
|
+
const obj: any = {};
|
|
36123
|
+
if (message.username !== "") {
|
|
36124
|
+
obj.username = message.username;
|
|
36125
|
+
}
|
|
36126
|
+
if (message.room_name !== "") {
|
|
36127
|
+
obj.room_name = message.room_name;
|
|
36128
|
+
}
|
|
36129
|
+
if (message.clan_id !== "") {
|
|
36130
|
+
obj.clan_id = message.clan_id;
|
|
36131
|
+
}
|
|
36132
|
+
return obj;
|
|
36133
|
+
},
|
|
36134
|
+
|
|
36135
|
+
create<I extends Exact<DeepPartial<MeetParticipantRequest>, I>>(base?: I): MeetParticipantRequest {
|
|
36136
|
+
return MeetParticipantRequest.fromPartial(base ?? ({} as any));
|
|
36137
|
+
},
|
|
36138
|
+
fromPartial<I extends Exact<DeepPartial<MeetParticipantRequest>, I>>(object: I): MeetParticipantRequest {
|
|
36139
|
+
const message = createBaseMeetParticipantRequest();
|
|
36140
|
+
message.username = object.username ?? "";
|
|
36141
|
+
message.room_name = object.room_name ?? "";
|
|
36142
|
+
message.clan_id = object.clan_id ?? "";
|
|
36143
|
+
return message;
|
|
36144
|
+
},
|
|
36145
|
+
};
|
|
36146
|
+
|
|
36027
36147
|
function createBaseGenerateMeetTokenResponse(): GenerateMeetTokenResponse {
|
|
36028
36148
|
return { token: "" };
|
|
36029
36149
|
}
|
|
@@ -38658,6 +38778,80 @@ export const IsFollowerResponse = {
|
|
|
38658
38778
|
},
|
|
38659
38779
|
};
|
|
38660
38780
|
|
|
38781
|
+
function createBaseTransferOwnershipRequest(): TransferOwnershipRequest {
|
|
38782
|
+
return { clan_id: "", new_owner_id: "" };
|
|
38783
|
+
}
|
|
38784
|
+
|
|
38785
|
+
export const TransferOwnershipRequest = {
|
|
38786
|
+
encode(message: TransferOwnershipRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
38787
|
+
if (message.clan_id !== "") {
|
|
38788
|
+
writer.uint32(10).string(message.clan_id);
|
|
38789
|
+
}
|
|
38790
|
+
if (message.new_owner_id !== "") {
|
|
38791
|
+
writer.uint32(18).string(message.new_owner_id);
|
|
38792
|
+
}
|
|
38793
|
+
return writer;
|
|
38794
|
+
},
|
|
38795
|
+
|
|
38796
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): TransferOwnershipRequest {
|
|
38797
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
38798
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
38799
|
+
const message = createBaseTransferOwnershipRequest();
|
|
38800
|
+
while (reader.pos < end) {
|
|
38801
|
+
const tag = reader.uint32();
|
|
38802
|
+
switch (tag >>> 3) {
|
|
38803
|
+
case 1:
|
|
38804
|
+
if (tag !== 10) {
|
|
38805
|
+
break;
|
|
38806
|
+
}
|
|
38807
|
+
|
|
38808
|
+
message.clan_id = reader.string();
|
|
38809
|
+
continue;
|
|
38810
|
+
case 2:
|
|
38811
|
+
if (tag !== 18) {
|
|
38812
|
+
break;
|
|
38813
|
+
}
|
|
38814
|
+
|
|
38815
|
+
message.new_owner_id = reader.string();
|
|
38816
|
+
continue;
|
|
38817
|
+
}
|
|
38818
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
38819
|
+
break;
|
|
38820
|
+
}
|
|
38821
|
+
reader.skipType(tag & 7);
|
|
38822
|
+
}
|
|
38823
|
+
return message;
|
|
38824
|
+
},
|
|
38825
|
+
|
|
38826
|
+
fromJSON(object: any): TransferOwnershipRequest {
|
|
38827
|
+
return {
|
|
38828
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
38829
|
+
new_owner_id: isSet(object.new_owner_id) ? globalThis.String(object.new_owner_id) : "",
|
|
38830
|
+
};
|
|
38831
|
+
},
|
|
38832
|
+
|
|
38833
|
+
toJSON(message: TransferOwnershipRequest): unknown {
|
|
38834
|
+
const obj: any = {};
|
|
38835
|
+
if (message.clan_id !== "") {
|
|
38836
|
+
obj.clan_id = message.clan_id;
|
|
38837
|
+
}
|
|
38838
|
+
if (message.new_owner_id !== "") {
|
|
38839
|
+
obj.new_owner_id = message.new_owner_id;
|
|
38840
|
+
}
|
|
38841
|
+
return obj;
|
|
38842
|
+
},
|
|
38843
|
+
|
|
38844
|
+
create<I extends Exact<DeepPartial<TransferOwnershipRequest>, I>>(base?: I): TransferOwnershipRequest {
|
|
38845
|
+
return TransferOwnershipRequest.fromPartial(base ?? ({} as any));
|
|
38846
|
+
},
|
|
38847
|
+
fromPartial<I extends Exact<DeepPartial<TransferOwnershipRequest>, I>>(object: I): TransferOwnershipRequest {
|
|
38848
|
+
const message = createBaseTransferOwnershipRequest();
|
|
38849
|
+
message.clan_id = object.clan_id ?? "";
|
|
38850
|
+
message.new_owner_id = object.new_owner_id ?? "";
|
|
38851
|
+
return message;
|
|
38852
|
+
},
|
|
38853
|
+
};
|
|
38854
|
+
|
|
38661
38855
|
function bytesFromBase64(b64: string): Uint8Array {
|
|
38662
38856
|
if ((globalThis as any).Buffer) {
|
|
38663
38857
|
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
@@ -676,11 +676,11 @@ export interface ListChannelAttachmentRequest {
|
|
|
676
676
|
/** The group user state to list. */
|
|
677
677
|
state: number | undefined;
|
|
678
678
|
/** An optional previous id for page. */
|
|
679
|
-
before:
|
|
679
|
+
before: number;
|
|
680
680
|
/** An optional next id for page. */
|
|
681
|
-
after:
|
|
681
|
+
after: number;
|
|
682
682
|
/** An optional around id for page. */
|
|
683
|
-
around:
|
|
683
|
+
around: number;
|
|
684
684
|
}
|
|
685
685
|
/** List all users that are part of a clan. */
|
|
686
686
|
export interface ListClanUsersRequest {
|
|
@@ -818,7 +818,7 @@ export interface UpdateAccountRequest {
|
|
|
818
818
|
/** date of birth */
|
|
819
819
|
dob: Date | undefined;
|
|
820
820
|
/** logo url */
|
|
821
|
-
logo: string;
|
|
821
|
+
logo: string | undefined;
|
|
822
822
|
/** splash screen */
|
|
823
823
|
splash_screen: string;
|
|
824
824
|
/** e2ee encrypt private key */
|
|
@@ -1023,6 +1023,8 @@ export interface UpdateClanDescRequest {
|
|
|
1023
1023
|
description: string;
|
|
1024
1024
|
/** about */
|
|
1025
1025
|
about: string;
|
|
1026
|
+
/** short url for community */
|
|
1027
|
+
short_url: string | undefined;
|
|
1026
1028
|
}
|
|
1027
1029
|
/** Delete a clan the user has access to. */
|
|
1028
1030
|
export interface DeleteClanDescRequest {
|
|
@@ -2981,6 +2983,11 @@ export interface GenerateMeetTokenRequest {
|
|
|
2981
2983
|
channel_id: string;
|
|
2982
2984
|
room_name: string;
|
|
2983
2985
|
}
|
|
2986
|
+
export interface MeetParticipantRequest {
|
|
2987
|
+
username: string;
|
|
2988
|
+
room_name: string;
|
|
2989
|
+
clan_id: string;
|
|
2990
|
+
}
|
|
2984
2991
|
export interface GenerateMeetTokenResponse {
|
|
2985
2992
|
token: string;
|
|
2986
2993
|
}
|
|
@@ -3136,6 +3143,10 @@ export interface IsFollowerResponse {
|
|
|
3136
3143
|
follow_id: string;
|
|
3137
3144
|
is_follower: boolean;
|
|
3138
3145
|
}
|
|
3146
|
+
export interface TransferOwnershipRequest {
|
|
3147
|
+
clan_id: string;
|
|
3148
|
+
new_owner_id: string;
|
|
3149
|
+
}
|
|
3139
3150
|
export declare const Account: {
|
|
3140
3151
|
encode(message: Account, writer?: _m0.Writer): _m0.Writer;
|
|
3141
3152
|
decode(input: _m0.Reader | Uint8Array, length?: number): Account;
|
|
@@ -7371,18 +7382,18 @@ export declare const ListChannelAttachmentRequest: {
|
|
|
7371
7382
|
file_type?: string | undefined;
|
|
7372
7383
|
limit?: number | undefined;
|
|
7373
7384
|
state?: number | undefined;
|
|
7374
|
-
before?:
|
|
7375
|
-
after?:
|
|
7376
|
-
around?:
|
|
7385
|
+
before?: number | undefined;
|
|
7386
|
+
after?: number | undefined;
|
|
7387
|
+
around?: number | undefined;
|
|
7377
7388
|
} & {
|
|
7378
7389
|
clan_id?: string | undefined;
|
|
7379
7390
|
channel_id?: string | undefined;
|
|
7380
7391
|
file_type?: string | undefined;
|
|
7381
7392
|
limit?: number | undefined;
|
|
7382
7393
|
state?: number | undefined;
|
|
7383
|
-
before?:
|
|
7384
|
-
after?:
|
|
7385
|
-
around?:
|
|
7394
|
+
before?: number | undefined;
|
|
7395
|
+
after?: number | undefined;
|
|
7396
|
+
around?: number | undefined;
|
|
7386
7397
|
} & { [K in Exclude<keyof I, keyof ListChannelAttachmentRequest>]: never; }>(base?: I | undefined): ListChannelAttachmentRequest;
|
|
7387
7398
|
fromPartial<I_1 extends {
|
|
7388
7399
|
clan_id?: string | undefined;
|
|
@@ -7390,18 +7401,18 @@ export declare const ListChannelAttachmentRequest: {
|
|
|
7390
7401
|
file_type?: string | undefined;
|
|
7391
7402
|
limit?: number | undefined;
|
|
7392
7403
|
state?: number | undefined;
|
|
7393
|
-
before?:
|
|
7394
|
-
after?:
|
|
7395
|
-
around?:
|
|
7404
|
+
before?: number | undefined;
|
|
7405
|
+
after?: number | undefined;
|
|
7406
|
+
around?: number | undefined;
|
|
7396
7407
|
} & {
|
|
7397
7408
|
clan_id?: string | undefined;
|
|
7398
7409
|
channel_id?: string | undefined;
|
|
7399
7410
|
file_type?: string | undefined;
|
|
7400
7411
|
limit?: number | undefined;
|
|
7401
7412
|
state?: number | undefined;
|
|
7402
|
-
before?:
|
|
7403
|
-
after?:
|
|
7404
|
-
around?:
|
|
7413
|
+
before?: number | undefined;
|
|
7414
|
+
after?: number | undefined;
|
|
7415
|
+
around?: number | undefined;
|
|
7405
7416
|
} & { [K_1 in Exclude<keyof I_1, keyof ListChannelAttachmentRequest>]: never; }>(object: I_1): ListChannelAttachmentRequest;
|
|
7406
7417
|
};
|
|
7407
7418
|
export declare const ListClanUsersRequest: {
|
|
@@ -9880,6 +9891,7 @@ export declare const UpdateClanDescRequest: {
|
|
|
9880
9891
|
community_banner?: string | undefined;
|
|
9881
9892
|
description?: string | undefined;
|
|
9882
9893
|
about?: string | undefined;
|
|
9894
|
+
short_url?: string | undefined;
|
|
9883
9895
|
} & {
|
|
9884
9896
|
clan_id?: string | undefined;
|
|
9885
9897
|
clan_name?: string | undefined;
|
|
@@ -9893,6 +9905,7 @@ export declare const UpdateClanDescRequest: {
|
|
|
9893
9905
|
community_banner?: string | undefined;
|
|
9894
9906
|
description?: string | undefined;
|
|
9895
9907
|
about?: string | undefined;
|
|
9908
|
+
short_url?: string | undefined;
|
|
9896
9909
|
} & { [K in Exclude<keyof I, keyof UpdateClanDescRequest>]: never; }>(base?: I | undefined): UpdateClanDescRequest;
|
|
9897
9910
|
fromPartial<I_1 extends {
|
|
9898
9911
|
clan_id?: string | undefined;
|
|
@@ -9907,6 +9920,7 @@ export declare const UpdateClanDescRequest: {
|
|
|
9907
9920
|
community_banner?: string | undefined;
|
|
9908
9921
|
description?: string | undefined;
|
|
9909
9922
|
about?: string | undefined;
|
|
9923
|
+
short_url?: string | undefined;
|
|
9910
9924
|
} & {
|
|
9911
9925
|
clan_id?: string | undefined;
|
|
9912
9926
|
clan_name?: string | undefined;
|
|
@@ -9920,6 +9934,7 @@ export declare const UpdateClanDescRequest: {
|
|
|
9920
9934
|
community_banner?: string | undefined;
|
|
9921
9935
|
description?: string | undefined;
|
|
9922
9936
|
about?: string | undefined;
|
|
9937
|
+
short_url?: string | undefined;
|
|
9923
9938
|
} & { [K_1 in Exclude<keyof I_1, keyof UpdateClanDescRequest>]: never; }>(object: I_1): UpdateClanDescRequest;
|
|
9924
9939
|
};
|
|
9925
9940
|
export declare const DeleteClanDescRequest: {
|
|
@@ -23498,6 +23513,30 @@ export declare const GenerateMeetTokenRequest: {
|
|
|
23498
23513
|
room_name?: string | undefined;
|
|
23499
23514
|
} & { [K_1 in Exclude<keyof I_1, keyof GenerateMeetTokenRequest>]: never; }>(object: I_1): GenerateMeetTokenRequest;
|
|
23500
23515
|
};
|
|
23516
|
+
export declare const MeetParticipantRequest: {
|
|
23517
|
+
encode(message: MeetParticipantRequest, writer?: _m0.Writer): _m0.Writer;
|
|
23518
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MeetParticipantRequest;
|
|
23519
|
+
fromJSON(object: any): MeetParticipantRequest;
|
|
23520
|
+
toJSON(message: MeetParticipantRequest): unknown;
|
|
23521
|
+
create<I extends {
|
|
23522
|
+
username?: string | undefined;
|
|
23523
|
+
room_name?: string | undefined;
|
|
23524
|
+
clan_id?: string | undefined;
|
|
23525
|
+
} & {
|
|
23526
|
+
username?: string | undefined;
|
|
23527
|
+
room_name?: string | undefined;
|
|
23528
|
+
clan_id?: string | undefined;
|
|
23529
|
+
} & { [K in Exclude<keyof I, keyof MeetParticipantRequest>]: never; }>(base?: I | undefined): MeetParticipantRequest;
|
|
23530
|
+
fromPartial<I_1 extends {
|
|
23531
|
+
username?: string | undefined;
|
|
23532
|
+
room_name?: string | undefined;
|
|
23533
|
+
clan_id?: string | undefined;
|
|
23534
|
+
} & {
|
|
23535
|
+
username?: string | undefined;
|
|
23536
|
+
room_name?: string | undefined;
|
|
23537
|
+
clan_id?: string | undefined;
|
|
23538
|
+
} & { [K_1 in Exclude<keyof I_1, keyof MeetParticipantRequest>]: never; }>(object: I_1): MeetParticipantRequest;
|
|
23539
|
+
};
|
|
23501
23540
|
export declare const GenerateMeetTokenResponse: {
|
|
23502
23541
|
encode(message: GenerateMeetTokenResponse, writer?: _m0.Writer): _m0.Writer;
|
|
23503
23542
|
decode(input: _m0.Reader | Uint8Array, length?: number): GenerateMeetTokenResponse;
|
|
@@ -24786,6 +24825,26 @@ export declare const IsFollowerResponse: {
|
|
|
24786
24825
|
is_follower?: boolean | undefined;
|
|
24787
24826
|
} & { [K_1 in Exclude<keyof I_1, keyof IsFollowerResponse>]: never; }>(object: I_1): IsFollowerResponse;
|
|
24788
24827
|
};
|
|
24828
|
+
export declare const TransferOwnershipRequest: {
|
|
24829
|
+
encode(message: TransferOwnershipRequest, writer?: _m0.Writer): _m0.Writer;
|
|
24830
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): TransferOwnershipRequest;
|
|
24831
|
+
fromJSON(object: any): TransferOwnershipRequest;
|
|
24832
|
+
toJSON(message: TransferOwnershipRequest): unknown;
|
|
24833
|
+
create<I extends {
|
|
24834
|
+
clan_id?: string | undefined;
|
|
24835
|
+
new_owner_id?: string | undefined;
|
|
24836
|
+
} & {
|
|
24837
|
+
clan_id?: string | undefined;
|
|
24838
|
+
new_owner_id?: string | undefined;
|
|
24839
|
+
} & { [K in Exclude<keyof I, keyof TransferOwnershipRequest>]: never; }>(base?: I | undefined): TransferOwnershipRequest;
|
|
24840
|
+
fromPartial<I_1 extends {
|
|
24841
|
+
clan_id?: string | undefined;
|
|
24842
|
+
new_owner_id?: string | undefined;
|
|
24843
|
+
} & {
|
|
24844
|
+
clan_id?: string | undefined;
|
|
24845
|
+
new_owner_id?: string | undefined;
|
|
24846
|
+
} & { [K_1 in Exclude<keyof I_1, keyof TransferOwnershipRequest>]: never; }>(object: I_1): TransferOwnershipRequest;
|
|
24847
|
+
};
|
|
24789
24848
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
24790
24849
|
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
24791
24850
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
@@ -2578,9 +2578,9 @@ export declare const Envelope: {
|
|
|
2578
2578
|
file_type?: string | undefined;
|
|
2579
2579
|
limit?: number | undefined;
|
|
2580
2580
|
state?: number | undefined;
|
|
2581
|
-
before?:
|
|
2582
|
-
after?:
|
|
2583
|
-
around?:
|
|
2581
|
+
before?: number | undefined;
|
|
2582
|
+
after?: number | undefined;
|
|
2583
|
+
around?: number | undefined;
|
|
2584
2584
|
} | undefined;
|
|
2585
2585
|
channel_attachment_list?: {
|
|
2586
2586
|
attachments?: {
|
|
@@ -6760,9 +6760,9 @@ export declare const Envelope: {
|
|
|
6760
6760
|
file_type?: string | undefined;
|
|
6761
6761
|
limit?: number | undefined;
|
|
6762
6762
|
state?: number | undefined;
|
|
6763
|
-
before?:
|
|
6764
|
-
after?:
|
|
6765
|
-
around?:
|
|
6763
|
+
before?: number | undefined;
|
|
6764
|
+
after?: number | undefined;
|
|
6765
|
+
around?: number | undefined;
|
|
6766
6766
|
} | undefined;
|
|
6767
6767
|
channel_attachment_list?: {
|
|
6768
6768
|
attachments?: {
|
|
@@ -8241,18 +8241,18 @@ export declare const Envelope: {
|
|
|
8241
8241
|
file_type?: string | undefined;
|
|
8242
8242
|
limit?: number | undefined;
|
|
8243
8243
|
state?: number | undefined;
|
|
8244
|
-
before?:
|
|
8245
|
-
after?:
|
|
8246
|
-
around?:
|
|
8244
|
+
before?: number | undefined;
|
|
8245
|
+
after?: number | undefined;
|
|
8246
|
+
around?: number | undefined;
|
|
8247
8247
|
} & {
|
|
8248
8248
|
clan_id?: string | undefined;
|
|
8249
8249
|
channel_id?: string | undefined;
|
|
8250
8250
|
file_type?: string | undefined;
|
|
8251
8251
|
limit?: number | undefined;
|
|
8252
8252
|
state?: number | undefined;
|
|
8253
|
-
before?:
|
|
8254
|
-
after?:
|
|
8255
|
-
around?:
|
|
8253
|
+
before?: number | undefined;
|
|
8254
|
+
after?: number | undefined;
|
|
8255
|
+
around?: number | undefined;
|
|
8256
8256
|
} & { [K_248 in Exclude<keyof I["list_data_socket"]["list_channel_attachment_req"], keyof ListChannelAttachmentRequest>]: never; }) | undefined;
|
|
8257
8257
|
channel_attachment_list?: ({
|
|
8258
8258
|
attachments?: {
|
|
@@ -12436,9 +12436,9 @@ export declare const Envelope: {
|
|
|
12436
12436
|
file_type?: string | undefined;
|
|
12437
12437
|
limit?: number | undefined;
|
|
12438
12438
|
state?: number | undefined;
|
|
12439
|
-
before?:
|
|
12440
|
-
after?:
|
|
12441
|
-
around?:
|
|
12439
|
+
before?: number | undefined;
|
|
12440
|
+
after?: number | undefined;
|
|
12441
|
+
around?: number | undefined;
|
|
12442
12442
|
} | undefined;
|
|
12443
12443
|
channel_attachment_list?: {
|
|
12444
12444
|
attachments?: {
|
|
@@ -16618,9 +16618,9 @@ export declare const Envelope: {
|
|
|
16618
16618
|
file_type?: string | undefined;
|
|
16619
16619
|
limit?: number | undefined;
|
|
16620
16620
|
state?: number | undefined;
|
|
16621
|
-
before?:
|
|
16622
|
-
after?:
|
|
16623
|
-
around?:
|
|
16621
|
+
before?: number | undefined;
|
|
16622
|
+
after?: number | undefined;
|
|
16623
|
+
around?: number | undefined;
|
|
16624
16624
|
} | undefined;
|
|
16625
16625
|
channel_attachment_list?: {
|
|
16626
16626
|
attachments?: {
|
|
@@ -18099,18 +18099,18 @@ export declare const Envelope: {
|
|
|
18099
18099
|
file_type?: string | undefined;
|
|
18100
18100
|
limit?: number | undefined;
|
|
18101
18101
|
state?: number | undefined;
|
|
18102
|
-
before?:
|
|
18103
|
-
after?:
|
|
18104
|
-
around?:
|
|
18102
|
+
before?: number | undefined;
|
|
18103
|
+
after?: number | undefined;
|
|
18104
|
+
around?: number | undefined;
|
|
18105
18105
|
} & {
|
|
18106
18106
|
clan_id?: string | undefined;
|
|
18107
18107
|
channel_id?: string | undefined;
|
|
18108
18108
|
file_type?: string | undefined;
|
|
18109
18109
|
limit?: number | undefined;
|
|
18110
18110
|
state?: number | undefined;
|
|
18111
|
-
before?:
|
|
18112
|
-
after?:
|
|
18113
|
-
around?:
|
|
18111
|
+
before?: number | undefined;
|
|
18112
|
+
after?: number | undefined;
|
|
18113
|
+
around?: number | undefined;
|
|
18114
18114
|
} & { [K_642 in Exclude<keyof I_1["list_data_socket"]["list_channel_attachment_req"], keyof ListChannelAttachmentRequest>]: never; }) | undefined;
|
|
18115
18115
|
channel_attachment_list?: ({
|
|
18116
18116
|
attachments?: {
|
|
@@ -28725,9 +28725,9 @@ export declare const ListDataSocket: {
|
|
|
28725
28725
|
file_type?: string | undefined;
|
|
28726
28726
|
limit?: number | undefined;
|
|
28727
28727
|
state?: number | undefined;
|
|
28728
|
-
before?:
|
|
28729
|
-
after?:
|
|
28730
|
-
around?:
|
|
28728
|
+
before?: number | undefined;
|
|
28729
|
+
after?: number | undefined;
|
|
28730
|
+
around?: number | undefined;
|
|
28731
28731
|
} | undefined;
|
|
28732
28732
|
channel_attachment_list?: {
|
|
28733
28733
|
attachments?: {
|
|
@@ -30206,18 +30206,18 @@ export declare const ListDataSocket: {
|
|
|
30206
30206
|
file_type?: string | undefined;
|
|
30207
30207
|
limit?: number | undefined;
|
|
30208
30208
|
state?: number | undefined;
|
|
30209
|
-
before?:
|
|
30210
|
-
after?:
|
|
30211
|
-
around?:
|
|
30209
|
+
before?: number | undefined;
|
|
30210
|
+
after?: number | undefined;
|
|
30211
|
+
around?: number | undefined;
|
|
30212
30212
|
} & {
|
|
30213
30213
|
clan_id?: string | undefined;
|
|
30214
30214
|
channel_id?: string | undefined;
|
|
30215
30215
|
file_type?: string | undefined;
|
|
30216
30216
|
limit?: number | undefined;
|
|
30217
30217
|
state?: number | undefined;
|
|
30218
|
-
before?:
|
|
30219
|
-
after?:
|
|
30220
|
-
around?:
|
|
30218
|
+
before?: number | undefined;
|
|
30219
|
+
after?: number | undefined;
|
|
30220
|
+
around?: number | undefined;
|
|
30221
30221
|
} & { [K_52 in Exclude<keyof I["list_channel_attachment_req"], keyof ListChannelAttachmentRequest>]: never; }) | undefined;
|
|
30222
30222
|
channel_attachment_list?: ({
|
|
30223
30223
|
attachments?: {
|
|
@@ -33103,9 +33103,9 @@ export declare const ListDataSocket: {
|
|
|
33103
33103
|
file_type?: string | undefined;
|
|
33104
33104
|
limit?: number | undefined;
|
|
33105
33105
|
state?: number | undefined;
|
|
33106
|
-
before?:
|
|
33107
|
-
after?:
|
|
33108
|
-
around?:
|
|
33106
|
+
before?: number | undefined;
|
|
33107
|
+
after?: number | undefined;
|
|
33108
|
+
around?: number | undefined;
|
|
33109
33109
|
} | undefined;
|
|
33110
33110
|
channel_attachment_list?: {
|
|
33111
33111
|
attachments?: {
|
|
@@ -34584,18 +34584,18 @@ export declare const ListDataSocket: {
|
|
|
34584
34584
|
file_type?: string | undefined;
|
|
34585
34585
|
limit?: number | undefined;
|
|
34586
34586
|
state?: number | undefined;
|
|
34587
|
-
before?:
|
|
34588
|
-
after?:
|
|
34589
|
-
around?:
|
|
34587
|
+
before?: number | undefined;
|
|
34588
|
+
after?: number | undefined;
|
|
34589
|
+
around?: number | undefined;
|
|
34590
34590
|
} & {
|
|
34591
34591
|
clan_id?: string | undefined;
|
|
34592
34592
|
channel_id?: string | undefined;
|
|
34593
34593
|
file_type?: string | undefined;
|
|
34594
34594
|
limit?: number | undefined;
|
|
34595
34595
|
state?: number | undefined;
|
|
34596
|
-
before?:
|
|
34597
|
-
after?:
|
|
34598
|
-
around?:
|
|
34596
|
+
before?: number | undefined;
|
|
34597
|
+
after?: number | undefined;
|
|
34598
|
+
around?: number | undefined;
|
|
34599
34599
|
} & { [K_240 in Exclude<keyof I_1["list_channel_attachment_req"], keyof ListChannelAttachmentRequest>]: never; }) | undefined;
|
|
34600
34600
|
channel_attachment_list?: ({
|
|
34601
34601
|
attachments?: {
|
|
@@ -5131,9 +5131,9 @@ function createBaseListChannelAttachmentRequest() {
|
|
|
5131
5131
|
file_type: "",
|
|
5132
5132
|
limit: void 0,
|
|
5133
5133
|
state: void 0,
|
|
5134
|
-
before:
|
|
5135
|
-
after:
|
|
5136
|
-
around:
|
|
5134
|
+
before: 0,
|
|
5135
|
+
after: 0,
|
|
5136
|
+
around: 0
|
|
5137
5137
|
};
|
|
5138
5138
|
}
|
|
5139
5139
|
var ListChannelAttachmentRequest = {
|
|
@@ -5153,14 +5153,14 @@ var ListChannelAttachmentRequest = {
|
|
|
5153
5153
|
if (message.state !== void 0) {
|
|
5154
5154
|
Int32Value.encode({ value: message.state }, writer.uint32(42).fork()).ldelim();
|
|
5155
5155
|
}
|
|
5156
|
-
if (message.before !==
|
|
5157
|
-
writer.uint32(
|
|
5156
|
+
if (message.before !== 0) {
|
|
5157
|
+
writer.uint32(48).uint32(message.before);
|
|
5158
5158
|
}
|
|
5159
|
-
if (message.after !==
|
|
5160
|
-
writer.uint32(
|
|
5159
|
+
if (message.after !== 0) {
|
|
5160
|
+
writer.uint32(56).uint32(message.after);
|
|
5161
5161
|
}
|
|
5162
|
-
if (message.around !==
|
|
5163
|
-
writer.uint32(
|
|
5162
|
+
if (message.around !== 0) {
|
|
5163
|
+
writer.uint32(64).uint32(message.around);
|
|
5164
5164
|
}
|
|
5165
5165
|
return writer;
|
|
5166
5166
|
},
|
|
@@ -5202,22 +5202,22 @@ var ListChannelAttachmentRequest = {
|
|
|
5202
5202
|
message.state = Int32Value.decode(reader, reader.uint32()).value;
|
|
5203
5203
|
continue;
|
|
5204
5204
|
case 6:
|
|
5205
|
-
if (tag !==
|
|
5205
|
+
if (tag !== 48) {
|
|
5206
5206
|
break;
|
|
5207
5207
|
}
|
|
5208
|
-
message.before = reader.
|
|
5208
|
+
message.before = reader.uint32();
|
|
5209
5209
|
continue;
|
|
5210
5210
|
case 7:
|
|
5211
|
-
if (tag !==
|
|
5211
|
+
if (tag !== 56) {
|
|
5212
5212
|
break;
|
|
5213
5213
|
}
|
|
5214
|
-
message.after = reader.
|
|
5214
|
+
message.after = reader.uint32();
|
|
5215
5215
|
continue;
|
|
5216
5216
|
case 8:
|
|
5217
|
-
if (tag !==
|
|
5217
|
+
if (tag !== 64) {
|
|
5218
5218
|
break;
|
|
5219
5219
|
}
|
|
5220
|
-
message.around = reader.
|
|
5220
|
+
message.around = reader.uint32();
|
|
5221
5221
|
continue;
|
|
5222
5222
|
}
|
|
5223
5223
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -5234,9 +5234,9 @@ var ListChannelAttachmentRequest = {
|
|
|
5234
5234
|
file_type: isSet3(object.file_type) ? globalThis.String(object.file_type) : "",
|
|
5235
5235
|
limit: isSet3(object.limit) ? Number(object.limit) : void 0,
|
|
5236
5236
|
state: isSet3(object.state) ? Number(object.state) : void 0,
|
|
5237
|
-
before: isSet3(object.before) ? globalThis.
|
|
5238
|
-
after: isSet3(object.after) ? globalThis.
|
|
5239
|
-
around: isSet3(object.around) ? globalThis.
|
|
5237
|
+
before: isSet3(object.before) ? globalThis.Number(object.before) : 0,
|
|
5238
|
+
after: isSet3(object.after) ? globalThis.Number(object.after) : 0,
|
|
5239
|
+
around: isSet3(object.around) ? globalThis.Number(object.around) : 0
|
|
5240
5240
|
};
|
|
5241
5241
|
},
|
|
5242
5242
|
toJSON(message) {
|
|
@@ -5256,14 +5256,14 @@ var ListChannelAttachmentRequest = {
|
|
|
5256
5256
|
if (message.state !== void 0) {
|
|
5257
5257
|
obj.state = message.state;
|
|
5258
5258
|
}
|
|
5259
|
-
if (message.before !==
|
|
5260
|
-
obj.before = message.before;
|
|
5259
|
+
if (message.before !== 0) {
|
|
5260
|
+
obj.before = Math.round(message.before);
|
|
5261
5261
|
}
|
|
5262
|
-
if (message.after !==
|
|
5263
|
-
obj.after = message.after;
|
|
5262
|
+
if (message.after !== 0) {
|
|
5263
|
+
obj.after = Math.round(message.after);
|
|
5264
5264
|
}
|
|
5265
|
-
if (message.around !==
|
|
5266
|
-
obj.around = message.around;
|
|
5265
|
+
if (message.around !== 0) {
|
|
5266
|
+
obj.around = Math.round(message.around);
|
|
5267
5267
|
}
|
|
5268
5268
|
return obj;
|
|
5269
5269
|
},
|
|
@@ -5278,9 +5278,9 @@ var ListChannelAttachmentRequest = {
|
|
|
5278
5278
|
message.file_type = (_c = object.file_type) != null ? _c : "";
|
|
5279
5279
|
message.limit = (_d = object.limit) != null ? _d : void 0;
|
|
5280
5280
|
message.state = (_e = object.state) != null ? _e : void 0;
|
|
5281
|
-
message.before = (_f = object.before) != null ? _f :
|
|
5282
|
-
message.after = (_g = object.after) != null ? _g :
|
|
5283
|
-
message.around = (_h = object.around) != null ? _h :
|
|
5281
|
+
message.before = (_f = object.before) != null ? _f : 0;
|
|
5282
|
+
message.after = (_g = object.after) != null ? _g : 0;
|
|
5283
|
+
message.around = (_h = object.around) != null ? _h : 0;
|
|
5284
5284
|
return message;
|
|
5285
5285
|
}
|
|
5286
5286
|
};
|
|
@@ -5118,9 +5118,9 @@ function createBaseListChannelAttachmentRequest() {
|
|
|
5118
5118
|
file_type: "",
|
|
5119
5119
|
limit: void 0,
|
|
5120
5120
|
state: void 0,
|
|
5121
|
-
before:
|
|
5122
|
-
after:
|
|
5123
|
-
around:
|
|
5121
|
+
before: 0,
|
|
5122
|
+
after: 0,
|
|
5123
|
+
around: 0
|
|
5124
5124
|
};
|
|
5125
5125
|
}
|
|
5126
5126
|
var ListChannelAttachmentRequest = {
|
|
@@ -5140,14 +5140,14 @@ var ListChannelAttachmentRequest = {
|
|
|
5140
5140
|
if (message.state !== void 0) {
|
|
5141
5141
|
Int32Value.encode({ value: message.state }, writer.uint32(42).fork()).ldelim();
|
|
5142
5142
|
}
|
|
5143
|
-
if (message.before !==
|
|
5144
|
-
writer.uint32(
|
|
5143
|
+
if (message.before !== 0) {
|
|
5144
|
+
writer.uint32(48).uint32(message.before);
|
|
5145
5145
|
}
|
|
5146
|
-
if (message.after !==
|
|
5147
|
-
writer.uint32(
|
|
5146
|
+
if (message.after !== 0) {
|
|
5147
|
+
writer.uint32(56).uint32(message.after);
|
|
5148
5148
|
}
|
|
5149
|
-
if (message.around !==
|
|
5150
|
-
writer.uint32(
|
|
5149
|
+
if (message.around !== 0) {
|
|
5150
|
+
writer.uint32(64).uint32(message.around);
|
|
5151
5151
|
}
|
|
5152
5152
|
return writer;
|
|
5153
5153
|
},
|
|
@@ -5189,22 +5189,22 @@ var ListChannelAttachmentRequest = {
|
|
|
5189
5189
|
message.state = Int32Value.decode(reader, reader.uint32()).value;
|
|
5190
5190
|
continue;
|
|
5191
5191
|
case 6:
|
|
5192
|
-
if (tag !==
|
|
5192
|
+
if (tag !== 48) {
|
|
5193
5193
|
break;
|
|
5194
5194
|
}
|
|
5195
|
-
message.before = reader.
|
|
5195
|
+
message.before = reader.uint32();
|
|
5196
5196
|
continue;
|
|
5197
5197
|
case 7:
|
|
5198
|
-
if (tag !==
|
|
5198
|
+
if (tag !== 56) {
|
|
5199
5199
|
break;
|
|
5200
5200
|
}
|
|
5201
|
-
message.after = reader.
|
|
5201
|
+
message.after = reader.uint32();
|
|
5202
5202
|
continue;
|
|
5203
5203
|
case 8:
|
|
5204
|
-
if (tag !==
|
|
5204
|
+
if (tag !== 64) {
|
|
5205
5205
|
break;
|
|
5206
5206
|
}
|
|
5207
|
-
message.around = reader.
|
|
5207
|
+
message.around = reader.uint32();
|
|
5208
5208
|
continue;
|
|
5209
5209
|
}
|
|
5210
5210
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -5221,9 +5221,9 @@ var ListChannelAttachmentRequest = {
|
|
|
5221
5221
|
file_type: isSet3(object.file_type) ? globalThis.String(object.file_type) : "",
|
|
5222
5222
|
limit: isSet3(object.limit) ? Number(object.limit) : void 0,
|
|
5223
5223
|
state: isSet3(object.state) ? Number(object.state) : void 0,
|
|
5224
|
-
before: isSet3(object.before) ? globalThis.
|
|
5225
|
-
after: isSet3(object.after) ? globalThis.
|
|
5226
|
-
around: isSet3(object.around) ? globalThis.
|
|
5224
|
+
before: isSet3(object.before) ? globalThis.Number(object.before) : 0,
|
|
5225
|
+
after: isSet3(object.after) ? globalThis.Number(object.after) : 0,
|
|
5226
|
+
around: isSet3(object.around) ? globalThis.Number(object.around) : 0
|
|
5227
5227
|
};
|
|
5228
5228
|
},
|
|
5229
5229
|
toJSON(message) {
|
|
@@ -5243,14 +5243,14 @@ var ListChannelAttachmentRequest = {
|
|
|
5243
5243
|
if (message.state !== void 0) {
|
|
5244
5244
|
obj.state = message.state;
|
|
5245
5245
|
}
|
|
5246
|
-
if (message.before !==
|
|
5247
|
-
obj.before = message.before;
|
|
5246
|
+
if (message.before !== 0) {
|
|
5247
|
+
obj.before = Math.round(message.before);
|
|
5248
5248
|
}
|
|
5249
|
-
if (message.after !==
|
|
5250
|
-
obj.after = message.after;
|
|
5249
|
+
if (message.after !== 0) {
|
|
5250
|
+
obj.after = Math.round(message.after);
|
|
5251
5251
|
}
|
|
5252
|
-
if (message.around !==
|
|
5253
|
-
obj.around = message.around;
|
|
5252
|
+
if (message.around !== 0) {
|
|
5253
|
+
obj.around = Math.round(message.around);
|
|
5254
5254
|
}
|
|
5255
5255
|
return obj;
|
|
5256
5256
|
},
|
|
@@ -5265,9 +5265,9 @@ var ListChannelAttachmentRequest = {
|
|
|
5265
5265
|
message.file_type = (_c = object.file_type) != null ? _c : "";
|
|
5266
5266
|
message.limit = (_d = object.limit) != null ? _d : void 0;
|
|
5267
5267
|
message.state = (_e = object.state) != null ? _e : void 0;
|
|
5268
|
-
message.before = (_f = object.before) != null ? _f :
|
|
5269
|
-
message.after = (_g = object.after) != null ? _g :
|
|
5270
|
-
message.around = (_h = object.around) != null ? _h :
|
|
5268
|
+
message.before = (_f = object.before) != null ? _f : 0;
|
|
5269
|
+
message.after = (_g = object.after) != null ? _g : 0;
|
|
5270
|
+
message.around = (_h = object.around) != null ? _h : 0;
|
|
5271
5271
|
return message;
|
|
5272
5272
|
}
|
|
5273
5273
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.29",
|
|
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",
|