mezon-js-protobuf 1.8.28 → 1.8.30
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 +248 -38
- package/dist/mezon-js-protobuf/api/api.d.ts +80 -16
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +455 -374
- package/dist/mezon-js-protobuf.cjs.js +153 -29
- package/dist/mezon-js-protobuf.esm.mjs +153 -29
- package/package.json +1 -1
- package/rtapi/realtime.ts +153 -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,13 @@ export interface GenerateMeetTokenRequest {
|
|
|
3698
3702
|
room_name: string;
|
|
3699
3703
|
}
|
|
3700
3704
|
|
|
3705
|
+
export interface MeetParticipantRequest {
|
|
3706
|
+
username: string;
|
|
3707
|
+
room_name: string;
|
|
3708
|
+
channel_id: string;
|
|
3709
|
+
clan_id: string;
|
|
3710
|
+
}
|
|
3711
|
+
|
|
3701
3712
|
export interface GenerateMeetTokenResponse {
|
|
3702
3713
|
token: string;
|
|
3703
3714
|
}
|
|
@@ -3871,6 +3882,11 @@ export interface IsFollowerResponse {
|
|
|
3871
3882
|
is_follower: boolean;
|
|
3872
3883
|
}
|
|
3873
3884
|
|
|
3885
|
+
export interface TransferOwnershipRequest {
|
|
3886
|
+
clan_id: string;
|
|
3887
|
+
new_owner_id: string;
|
|
3888
|
+
}
|
|
3889
|
+
|
|
3874
3890
|
function createBaseAccount(): Account {
|
|
3875
3891
|
return {
|
|
3876
3892
|
user: undefined,
|
|
@@ -9566,9 +9582,9 @@ function createBaseListChannelAttachmentRequest(): ListChannelAttachmentRequest
|
|
|
9566
9582
|
file_type: "",
|
|
9567
9583
|
limit: undefined,
|
|
9568
9584
|
state: undefined,
|
|
9569
|
-
before:
|
|
9570
|
-
after:
|
|
9571
|
-
around:
|
|
9585
|
+
before: 0,
|
|
9586
|
+
after: 0,
|
|
9587
|
+
around: 0,
|
|
9572
9588
|
};
|
|
9573
9589
|
}
|
|
9574
9590
|
|
|
@@ -9589,14 +9605,14 @@ export const ListChannelAttachmentRequest = {
|
|
|
9589
9605
|
if (message.state !== undefined) {
|
|
9590
9606
|
Int32Value.encode({ value: message.state! }, writer.uint32(42).fork()).ldelim();
|
|
9591
9607
|
}
|
|
9592
|
-
if (message.before !==
|
|
9593
|
-
writer.uint32(
|
|
9608
|
+
if (message.before !== 0) {
|
|
9609
|
+
writer.uint32(48).uint32(message.before);
|
|
9594
9610
|
}
|
|
9595
|
-
if (message.after !==
|
|
9596
|
-
writer.uint32(
|
|
9611
|
+
if (message.after !== 0) {
|
|
9612
|
+
writer.uint32(56).uint32(message.after);
|
|
9597
9613
|
}
|
|
9598
|
-
if (message.around !==
|
|
9599
|
-
writer.uint32(
|
|
9614
|
+
if (message.around !== 0) {
|
|
9615
|
+
writer.uint32(64).uint32(message.around);
|
|
9600
9616
|
}
|
|
9601
9617
|
return writer;
|
|
9602
9618
|
},
|
|
@@ -9644,25 +9660,25 @@ export const ListChannelAttachmentRequest = {
|
|
|
9644
9660
|
message.state = Int32Value.decode(reader, reader.uint32()).value;
|
|
9645
9661
|
continue;
|
|
9646
9662
|
case 6:
|
|
9647
|
-
if (tag !==
|
|
9663
|
+
if (tag !== 48) {
|
|
9648
9664
|
break;
|
|
9649
9665
|
}
|
|
9650
9666
|
|
|
9651
|
-
message.before = reader.
|
|
9667
|
+
message.before = reader.uint32();
|
|
9652
9668
|
continue;
|
|
9653
9669
|
case 7:
|
|
9654
|
-
if (tag !==
|
|
9670
|
+
if (tag !== 56) {
|
|
9655
9671
|
break;
|
|
9656
9672
|
}
|
|
9657
9673
|
|
|
9658
|
-
message.after = reader.
|
|
9674
|
+
message.after = reader.uint32();
|
|
9659
9675
|
continue;
|
|
9660
9676
|
case 8:
|
|
9661
|
-
if (tag !==
|
|
9677
|
+
if (tag !== 64) {
|
|
9662
9678
|
break;
|
|
9663
9679
|
}
|
|
9664
9680
|
|
|
9665
|
-
message.around = reader.
|
|
9681
|
+
message.around = reader.uint32();
|
|
9666
9682
|
continue;
|
|
9667
9683
|
}
|
|
9668
9684
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -9680,9 +9696,9 @@ export const ListChannelAttachmentRequest = {
|
|
|
9680
9696
|
file_type: isSet(object.file_type) ? globalThis.String(object.file_type) : "",
|
|
9681
9697
|
limit: isSet(object.limit) ? Number(object.limit) : undefined,
|
|
9682
9698
|
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.
|
|
9699
|
+
before: isSet(object.before) ? globalThis.Number(object.before) : 0,
|
|
9700
|
+
after: isSet(object.after) ? globalThis.Number(object.after) : 0,
|
|
9701
|
+
around: isSet(object.around) ? globalThis.Number(object.around) : 0,
|
|
9686
9702
|
};
|
|
9687
9703
|
},
|
|
9688
9704
|
|
|
@@ -9703,14 +9719,14 @@ export const ListChannelAttachmentRequest = {
|
|
|
9703
9719
|
if (message.state !== undefined) {
|
|
9704
9720
|
obj.state = message.state;
|
|
9705
9721
|
}
|
|
9706
|
-
if (message.before !==
|
|
9707
|
-
obj.before = message.before;
|
|
9722
|
+
if (message.before !== 0) {
|
|
9723
|
+
obj.before = Math.round(message.before);
|
|
9708
9724
|
}
|
|
9709
|
-
if (message.after !==
|
|
9710
|
-
obj.after = message.after;
|
|
9725
|
+
if (message.after !== 0) {
|
|
9726
|
+
obj.after = Math.round(message.after);
|
|
9711
9727
|
}
|
|
9712
|
-
if (message.around !==
|
|
9713
|
-
obj.around = message.around;
|
|
9728
|
+
if (message.around !== 0) {
|
|
9729
|
+
obj.around = Math.round(message.around);
|
|
9714
9730
|
}
|
|
9715
9731
|
return obj;
|
|
9716
9732
|
},
|
|
@@ -9725,9 +9741,9 @@ export const ListChannelAttachmentRequest = {
|
|
|
9725
9741
|
message.file_type = object.file_type ?? "";
|
|
9726
9742
|
message.limit = object.limit ?? undefined;
|
|
9727
9743
|
message.state = object.state ?? undefined;
|
|
9728
|
-
message.before = object.before ??
|
|
9729
|
-
message.after = object.after ??
|
|
9730
|
-
message.around = object.around ??
|
|
9744
|
+
message.before = object.before ?? 0;
|
|
9745
|
+
message.after = object.after ?? 0;
|
|
9746
|
+
message.around = object.around ?? 0;
|
|
9731
9747
|
return message;
|
|
9732
9748
|
},
|
|
9733
9749
|
};
|
|
@@ -10875,7 +10891,7 @@ function createBaseUpdateAccountRequest(): UpdateAccountRequest {
|
|
|
10875
10891
|
timezone: undefined,
|
|
10876
10892
|
about_me: "",
|
|
10877
10893
|
dob: undefined,
|
|
10878
|
-
logo:
|
|
10894
|
+
logo: undefined,
|
|
10879
10895
|
splash_screen: "",
|
|
10880
10896
|
encrypt_private_key: "",
|
|
10881
10897
|
};
|
|
@@ -10907,8 +10923,8 @@ export const UpdateAccountRequest = {
|
|
|
10907
10923
|
if (message.dob !== undefined) {
|
|
10908
10924
|
Timestamp.encode(toTimestamp(message.dob), writer.uint32(66).fork()).ldelim();
|
|
10909
10925
|
}
|
|
10910
|
-
if (message.logo !==
|
|
10911
|
-
writer.uint32(74).
|
|
10926
|
+
if (message.logo !== undefined) {
|
|
10927
|
+
StringValue.encode({ value: message.logo! }, writer.uint32(74).fork()).ldelim();
|
|
10912
10928
|
}
|
|
10913
10929
|
if (message.splash_screen !== "") {
|
|
10914
10930
|
writer.uint32(82).string(message.splash_screen);
|
|
@@ -10987,7 +11003,7 @@ export const UpdateAccountRequest = {
|
|
|
10987
11003
|
break;
|
|
10988
11004
|
}
|
|
10989
11005
|
|
|
10990
|
-
message.logo = reader.
|
|
11006
|
+
message.logo = StringValue.decode(reader, reader.uint32()).value;
|
|
10991
11007
|
continue;
|
|
10992
11008
|
case 10:
|
|
10993
11009
|
if (tag !== 82) {
|
|
@@ -11022,7 +11038,7 @@ export const UpdateAccountRequest = {
|
|
|
11022
11038
|
timezone: isSet(object.timezone) ? String(object.timezone) : undefined,
|
|
11023
11039
|
about_me: isSet(object.about_me) ? globalThis.String(object.about_me) : "",
|
|
11024
11040
|
dob: isSet(object.dob) ? fromJsonTimestamp(object.dob) : undefined,
|
|
11025
|
-
logo: isSet(object.logo) ?
|
|
11041
|
+
logo: isSet(object.logo) ? String(object.logo) : undefined,
|
|
11026
11042
|
splash_screen: isSet(object.splash_screen) ? globalThis.String(object.splash_screen) : "",
|
|
11027
11043
|
encrypt_private_key: isSet(object.encrypt_private_key) ? globalThis.String(object.encrypt_private_key) : "",
|
|
11028
11044
|
};
|
|
@@ -11054,7 +11070,7 @@ export const UpdateAccountRequest = {
|
|
|
11054
11070
|
if (message.dob !== undefined) {
|
|
11055
11071
|
obj.dob = message.dob.toISOString();
|
|
11056
11072
|
}
|
|
11057
|
-
if (message.logo !==
|
|
11073
|
+
if (message.logo !== undefined) {
|
|
11058
11074
|
obj.logo = message.logo;
|
|
11059
11075
|
}
|
|
11060
11076
|
if (message.splash_screen !== "") {
|
|
@@ -11079,7 +11095,7 @@ export const UpdateAccountRequest = {
|
|
|
11079
11095
|
message.timezone = object.timezone ?? undefined;
|
|
11080
11096
|
message.about_me = object.about_me ?? "";
|
|
11081
11097
|
message.dob = object.dob ?? undefined;
|
|
11082
|
-
message.logo = object.logo ??
|
|
11098
|
+
message.logo = object.logo ?? undefined;
|
|
11083
11099
|
message.splash_screen = object.splash_screen ?? "";
|
|
11084
11100
|
message.encrypt_private_key = object.encrypt_private_key ?? "";
|
|
11085
11101
|
return message;
|
|
@@ -12604,6 +12620,7 @@ function createBaseUpdateClanDescRequest(): UpdateClanDescRequest {
|
|
|
12604
12620
|
community_banner: undefined,
|
|
12605
12621
|
description: "",
|
|
12606
12622
|
about: "",
|
|
12623
|
+
short_url: undefined,
|
|
12607
12624
|
};
|
|
12608
12625
|
}
|
|
12609
12626
|
|
|
@@ -12645,6 +12662,9 @@ export const UpdateClanDescRequest = {
|
|
|
12645
12662
|
if (message.about !== "") {
|
|
12646
12663
|
writer.uint32(98).string(message.about);
|
|
12647
12664
|
}
|
|
12665
|
+
if (message.short_url !== undefined) {
|
|
12666
|
+
StringValue.encode({ value: message.short_url! }, writer.uint32(106).fork()).ldelim();
|
|
12667
|
+
}
|
|
12648
12668
|
return writer;
|
|
12649
12669
|
},
|
|
12650
12670
|
|
|
@@ -12739,6 +12759,13 @@ export const UpdateClanDescRequest = {
|
|
|
12739
12759
|
|
|
12740
12760
|
message.about = reader.string();
|
|
12741
12761
|
continue;
|
|
12762
|
+
case 13:
|
|
12763
|
+
if (tag !== 106) {
|
|
12764
|
+
break;
|
|
12765
|
+
}
|
|
12766
|
+
|
|
12767
|
+
message.short_url = StringValue.decode(reader, reader.uint32()).value;
|
|
12768
|
+
continue;
|
|
12742
12769
|
}
|
|
12743
12770
|
if ((tag & 7) === 4 || tag === 0) {
|
|
12744
12771
|
break;
|
|
@@ -12762,6 +12789,7 @@ export const UpdateClanDescRequest = {
|
|
|
12762
12789
|
community_banner: isSet(object.community_banner) ? String(object.community_banner) : undefined,
|
|
12763
12790
|
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
12764
12791
|
about: isSet(object.about) ? globalThis.String(object.about) : "",
|
|
12792
|
+
short_url: isSet(object.short_url) ? String(object.short_url) : undefined,
|
|
12765
12793
|
};
|
|
12766
12794
|
},
|
|
12767
12795
|
|
|
@@ -12803,6 +12831,9 @@ export const UpdateClanDescRequest = {
|
|
|
12803
12831
|
if (message.about !== "") {
|
|
12804
12832
|
obj.about = message.about;
|
|
12805
12833
|
}
|
|
12834
|
+
if (message.short_url !== undefined) {
|
|
12835
|
+
obj.short_url = message.short_url;
|
|
12836
|
+
}
|
|
12806
12837
|
return obj;
|
|
12807
12838
|
},
|
|
12808
12839
|
|
|
@@ -12823,6 +12854,7 @@ export const UpdateClanDescRequest = {
|
|
|
12823
12854
|
message.community_banner = object.community_banner ?? undefined;
|
|
12824
12855
|
message.description = object.description ?? "";
|
|
12825
12856
|
message.about = object.about ?? "";
|
|
12857
|
+
message.short_url = object.short_url ?? undefined;
|
|
12826
12858
|
return message;
|
|
12827
12859
|
},
|
|
12828
12860
|
};
|
|
@@ -36024,6 +36056,110 @@ export const GenerateMeetTokenRequest = {
|
|
|
36024
36056
|
},
|
|
36025
36057
|
};
|
|
36026
36058
|
|
|
36059
|
+
function createBaseMeetParticipantRequest(): MeetParticipantRequest {
|
|
36060
|
+
return { username: "", room_name: "", channel_id: "", clan_id: "" };
|
|
36061
|
+
}
|
|
36062
|
+
|
|
36063
|
+
export const MeetParticipantRequest = {
|
|
36064
|
+
encode(message: MeetParticipantRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
36065
|
+
if (message.username !== "") {
|
|
36066
|
+
writer.uint32(10).string(message.username);
|
|
36067
|
+
}
|
|
36068
|
+
if (message.room_name !== "") {
|
|
36069
|
+
writer.uint32(18).string(message.room_name);
|
|
36070
|
+
}
|
|
36071
|
+
if (message.channel_id !== "") {
|
|
36072
|
+
writer.uint32(26).string(message.channel_id);
|
|
36073
|
+
}
|
|
36074
|
+
if (message.clan_id !== "") {
|
|
36075
|
+
writer.uint32(34).string(message.clan_id);
|
|
36076
|
+
}
|
|
36077
|
+
return writer;
|
|
36078
|
+
},
|
|
36079
|
+
|
|
36080
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MeetParticipantRequest {
|
|
36081
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
36082
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
36083
|
+
const message = createBaseMeetParticipantRequest();
|
|
36084
|
+
while (reader.pos < end) {
|
|
36085
|
+
const tag = reader.uint32();
|
|
36086
|
+
switch (tag >>> 3) {
|
|
36087
|
+
case 1:
|
|
36088
|
+
if (tag !== 10) {
|
|
36089
|
+
break;
|
|
36090
|
+
}
|
|
36091
|
+
|
|
36092
|
+
message.username = reader.string();
|
|
36093
|
+
continue;
|
|
36094
|
+
case 2:
|
|
36095
|
+
if (tag !== 18) {
|
|
36096
|
+
break;
|
|
36097
|
+
}
|
|
36098
|
+
|
|
36099
|
+
message.room_name = reader.string();
|
|
36100
|
+
continue;
|
|
36101
|
+
case 3:
|
|
36102
|
+
if (tag !== 26) {
|
|
36103
|
+
break;
|
|
36104
|
+
}
|
|
36105
|
+
|
|
36106
|
+
message.channel_id = reader.string();
|
|
36107
|
+
continue;
|
|
36108
|
+
case 4:
|
|
36109
|
+
if (tag !== 34) {
|
|
36110
|
+
break;
|
|
36111
|
+
}
|
|
36112
|
+
|
|
36113
|
+
message.clan_id = reader.string();
|
|
36114
|
+
continue;
|
|
36115
|
+
}
|
|
36116
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
36117
|
+
break;
|
|
36118
|
+
}
|
|
36119
|
+
reader.skipType(tag & 7);
|
|
36120
|
+
}
|
|
36121
|
+
return message;
|
|
36122
|
+
},
|
|
36123
|
+
|
|
36124
|
+
fromJSON(object: any): MeetParticipantRequest {
|
|
36125
|
+
return {
|
|
36126
|
+
username: isSet(object.username) ? globalThis.String(object.username) : "",
|
|
36127
|
+
room_name: isSet(object.room_name) ? globalThis.String(object.room_name) : "",
|
|
36128
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
36129
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
36130
|
+
};
|
|
36131
|
+
},
|
|
36132
|
+
|
|
36133
|
+
toJSON(message: MeetParticipantRequest): unknown {
|
|
36134
|
+
const obj: any = {};
|
|
36135
|
+
if (message.username !== "") {
|
|
36136
|
+
obj.username = message.username;
|
|
36137
|
+
}
|
|
36138
|
+
if (message.room_name !== "") {
|
|
36139
|
+
obj.room_name = message.room_name;
|
|
36140
|
+
}
|
|
36141
|
+
if (message.channel_id !== "") {
|
|
36142
|
+
obj.channel_id = message.channel_id;
|
|
36143
|
+
}
|
|
36144
|
+
if (message.clan_id !== "") {
|
|
36145
|
+
obj.clan_id = message.clan_id;
|
|
36146
|
+
}
|
|
36147
|
+
return obj;
|
|
36148
|
+
},
|
|
36149
|
+
|
|
36150
|
+
create<I extends Exact<DeepPartial<MeetParticipantRequest>, I>>(base?: I): MeetParticipantRequest {
|
|
36151
|
+
return MeetParticipantRequest.fromPartial(base ?? ({} as any));
|
|
36152
|
+
},
|
|
36153
|
+
fromPartial<I extends Exact<DeepPartial<MeetParticipantRequest>, I>>(object: I): MeetParticipantRequest {
|
|
36154
|
+
const message = createBaseMeetParticipantRequest();
|
|
36155
|
+
message.username = object.username ?? "";
|
|
36156
|
+
message.room_name = object.room_name ?? "";
|
|
36157
|
+
message.channel_id = object.channel_id ?? "";
|
|
36158
|
+
message.clan_id = object.clan_id ?? "";
|
|
36159
|
+
return message;
|
|
36160
|
+
},
|
|
36161
|
+
};
|
|
36162
|
+
|
|
36027
36163
|
function createBaseGenerateMeetTokenResponse(): GenerateMeetTokenResponse {
|
|
36028
36164
|
return { token: "" };
|
|
36029
36165
|
}
|
|
@@ -38658,6 +38794,80 @@ export const IsFollowerResponse = {
|
|
|
38658
38794
|
},
|
|
38659
38795
|
};
|
|
38660
38796
|
|
|
38797
|
+
function createBaseTransferOwnershipRequest(): TransferOwnershipRequest {
|
|
38798
|
+
return { clan_id: "", new_owner_id: "" };
|
|
38799
|
+
}
|
|
38800
|
+
|
|
38801
|
+
export const TransferOwnershipRequest = {
|
|
38802
|
+
encode(message: TransferOwnershipRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
38803
|
+
if (message.clan_id !== "") {
|
|
38804
|
+
writer.uint32(10).string(message.clan_id);
|
|
38805
|
+
}
|
|
38806
|
+
if (message.new_owner_id !== "") {
|
|
38807
|
+
writer.uint32(18).string(message.new_owner_id);
|
|
38808
|
+
}
|
|
38809
|
+
return writer;
|
|
38810
|
+
},
|
|
38811
|
+
|
|
38812
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): TransferOwnershipRequest {
|
|
38813
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
38814
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
38815
|
+
const message = createBaseTransferOwnershipRequest();
|
|
38816
|
+
while (reader.pos < end) {
|
|
38817
|
+
const tag = reader.uint32();
|
|
38818
|
+
switch (tag >>> 3) {
|
|
38819
|
+
case 1:
|
|
38820
|
+
if (tag !== 10) {
|
|
38821
|
+
break;
|
|
38822
|
+
}
|
|
38823
|
+
|
|
38824
|
+
message.clan_id = reader.string();
|
|
38825
|
+
continue;
|
|
38826
|
+
case 2:
|
|
38827
|
+
if (tag !== 18) {
|
|
38828
|
+
break;
|
|
38829
|
+
}
|
|
38830
|
+
|
|
38831
|
+
message.new_owner_id = reader.string();
|
|
38832
|
+
continue;
|
|
38833
|
+
}
|
|
38834
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
38835
|
+
break;
|
|
38836
|
+
}
|
|
38837
|
+
reader.skipType(tag & 7);
|
|
38838
|
+
}
|
|
38839
|
+
return message;
|
|
38840
|
+
},
|
|
38841
|
+
|
|
38842
|
+
fromJSON(object: any): TransferOwnershipRequest {
|
|
38843
|
+
return {
|
|
38844
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
38845
|
+
new_owner_id: isSet(object.new_owner_id) ? globalThis.String(object.new_owner_id) : "",
|
|
38846
|
+
};
|
|
38847
|
+
},
|
|
38848
|
+
|
|
38849
|
+
toJSON(message: TransferOwnershipRequest): unknown {
|
|
38850
|
+
const obj: any = {};
|
|
38851
|
+
if (message.clan_id !== "") {
|
|
38852
|
+
obj.clan_id = message.clan_id;
|
|
38853
|
+
}
|
|
38854
|
+
if (message.new_owner_id !== "") {
|
|
38855
|
+
obj.new_owner_id = message.new_owner_id;
|
|
38856
|
+
}
|
|
38857
|
+
return obj;
|
|
38858
|
+
},
|
|
38859
|
+
|
|
38860
|
+
create<I extends Exact<DeepPartial<TransferOwnershipRequest>, I>>(base?: I): TransferOwnershipRequest {
|
|
38861
|
+
return TransferOwnershipRequest.fromPartial(base ?? ({} as any));
|
|
38862
|
+
},
|
|
38863
|
+
fromPartial<I extends Exact<DeepPartial<TransferOwnershipRequest>, I>>(object: I): TransferOwnershipRequest {
|
|
38864
|
+
const message = createBaseTransferOwnershipRequest();
|
|
38865
|
+
message.clan_id = object.clan_id ?? "";
|
|
38866
|
+
message.new_owner_id = object.new_owner_id ?? "";
|
|
38867
|
+
return message;
|
|
38868
|
+
},
|
|
38869
|
+
};
|
|
38870
|
+
|
|
38661
38871
|
function bytesFromBase64(b64: string): Uint8Array {
|
|
38662
38872
|
if ((globalThis as any).Buffer) {
|
|
38663
38873
|
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,12 @@ 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
|
+
channel_id: string;
|
|
2990
|
+
clan_id: string;
|
|
2991
|
+
}
|
|
2984
2992
|
export interface GenerateMeetTokenResponse {
|
|
2985
2993
|
token: string;
|
|
2986
2994
|
}
|
|
@@ -3136,6 +3144,10 @@ export interface IsFollowerResponse {
|
|
|
3136
3144
|
follow_id: string;
|
|
3137
3145
|
is_follower: boolean;
|
|
3138
3146
|
}
|
|
3147
|
+
export interface TransferOwnershipRequest {
|
|
3148
|
+
clan_id: string;
|
|
3149
|
+
new_owner_id: string;
|
|
3150
|
+
}
|
|
3139
3151
|
export declare const Account: {
|
|
3140
3152
|
encode(message: Account, writer?: _m0.Writer): _m0.Writer;
|
|
3141
3153
|
decode(input: _m0.Reader | Uint8Array, length?: number): Account;
|
|
@@ -7371,18 +7383,18 @@ export declare const ListChannelAttachmentRequest: {
|
|
|
7371
7383
|
file_type?: string | undefined;
|
|
7372
7384
|
limit?: number | undefined;
|
|
7373
7385
|
state?: number | undefined;
|
|
7374
|
-
before?:
|
|
7375
|
-
after?:
|
|
7376
|
-
around?:
|
|
7386
|
+
before?: number | undefined;
|
|
7387
|
+
after?: number | undefined;
|
|
7388
|
+
around?: number | undefined;
|
|
7377
7389
|
} & {
|
|
7378
7390
|
clan_id?: string | undefined;
|
|
7379
7391
|
channel_id?: string | undefined;
|
|
7380
7392
|
file_type?: string | undefined;
|
|
7381
7393
|
limit?: number | undefined;
|
|
7382
7394
|
state?: number | undefined;
|
|
7383
|
-
before?:
|
|
7384
|
-
after?:
|
|
7385
|
-
around?:
|
|
7395
|
+
before?: number | undefined;
|
|
7396
|
+
after?: number | undefined;
|
|
7397
|
+
around?: number | undefined;
|
|
7386
7398
|
} & { [K in Exclude<keyof I, keyof ListChannelAttachmentRequest>]: never; }>(base?: I | undefined): ListChannelAttachmentRequest;
|
|
7387
7399
|
fromPartial<I_1 extends {
|
|
7388
7400
|
clan_id?: string | undefined;
|
|
@@ -7390,18 +7402,18 @@ export declare const ListChannelAttachmentRequest: {
|
|
|
7390
7402
|
file_type?: string | undefined;
|
|
7391
7403
|
limit?: number | undefined;
|
|
7392
7404
|
state?: number | undefined;
|
|
7393
|
-
before?:
|
|
7394
|
-
after?:
|
|
7395
|
-
around?:
|
|
7405
|
+
before?: number | undefined;
|
|
7406
|
+
after?: number | undefined;
|
|
7407
|
+
around?: number | undefined;
|
|
7396
7408
|
} & {
|
|
7397
7409
|
clan_id?: string | undefined;
|
|
7398
7410
|
channel_id?: string | undefined;
|
|
7399
7411
|
file_type?: string | undefined;
|
|
7400
7412
|
limit?: number | undefined;
|
|
7401
7413
|
state?: number | undefined;
|
|
7402
|
-
before?:
|
|
7403
|
-
after?:
|
|
7404
|
-
around?:
|
|
7414
|
+
before?: number | undefined;
|
|
7415
|
+
after?: number | undefined;
|
|
7416
|
+
around?: number | undefined;
|
|
7405
7417
|
} & { [K_1 in Exclude<keyof I_1, keyof ListChannelAttachmentRequest>]: never; }>(object: I_1): ListChannelAttachmentRequest;
|
|
7406
7418
|
};
|
|
7407
7419
|
export declare const ListClanUsersRequest: {
|
|
@@ -9880,6 +9892,7 @@ export declare const UpdateClanDescRequest: {
|
|
|
9880
9892
|
community_banner?: string | undefined;
|
|
9881
9893
|
description?: string | undefined;
|
|
9882
9894
|
about?: string | undefined;
|
|
9895
|
+
short_url?: string | undefined;
|
|
9883
9896
|
} & {
|
|
9884
9897
|
clan_id?: string | undefined;
|
|
9885
9898
|
clan_name?: string | undefined;
|
|
@@ -9893,6 +9906,7 @@ export declare const UpdateClanDescRequest: {
|
|
|
9893
9906
|
community_banner?: string | undefined;
|
|
9894
9907
|
description?: string | undefined;
|
|
9895
9908
|
about?: string | undefined;
|
|
9909
|
+
short_url?: string | undefined;
|
|
9896
9910
|
} & { [K in Exclude<keyof I, keyof UpdateClanDescRequest>]: never; }>(base?: I | undefined): UpdateClanDescRequest;
|
|
9897
9911
|
fromPartial<I_1 extends {
|
|
9898
9912
|
clan_id?: string | undefined;
|
|
@@ -9907,6 +9921,7 @@ export declare const UpdateClanDescRequest: {
|
|
|
9907
9921
|
community_banner?: string | undefined;
|
|
9908
9922
|
description?: string | undefined;
|
|
9909
9923
|
about?: string | undefined;
|
|
9924
|
+
short_url?: string | undefined;
|
|
9910
9925
|
} & {
|
|
9911
9926
|
clan_id?: string | undefined;
|
|
9912
9927
|
clan_name?: string | undefined;
|
|
@@ -9920,6 +9935,7 @@ export declare const UpdateClanDescRequest: {
|
|
|
9920
9935
|
community_banner?: string | undefined;
|
|
9921
9936
|
description?: string | undefined;
|
|
9922
9937
|
about?: string | undefined;
|
|
9938
|
+
short_url?: string | undefined;
|
|
9923
9939
|
} & { [K_1 in Exclude<keyof I_1, keyof UpdateClanDescRequest>]: never; }>(object: I_1): UpdateClanDescRequest;
|
|
9924
9940
|
};
|
|
9925
9941
|
export declare const DeleteClanDescRequest: {
|
|
@@ -23498,6 +23514,34 @@ export declare const GenerateMeetTokenRequest: {
|
|
|
23498
23514
|
room_name?: string | undefined;
|
|
23499
23515
|
} & { [K_1 in Exclude<keyof I_1, keyof GenerateMeetTokenRequest>]: never; }>(object: I_1): GenerateMeetTokenRequest;
|
|
23500
23516
|
};
|
|
23517
|
+
export declare const MeetParticipantRequest: {
|
|
23518
|
+
encode(message: MeetParticipantRequest, writer?: _m0.Writer): _m0.Writer;
|
|
23519
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MeetParticipantRequest;
|
|
23520
|
+
fromJSON(object: any): MeetParticipantRequest;
|
|
23521
|
+
toJSON(message: MeetParticipantRequest): unknown;
|
|
23522
|
+
create<I extends {
|
|
23523
|
+
username?: string | undefined;
|
|
23524
|
+
room_name?: string | undefined;
|
|
23525
|
+
channel_id?: string | undefined;
|
|
23526
|
+
clan_id?: string | undefined;
|
|
23527
|
+
} & {
|
|
23528
|
+
username?: string | undefined;
|
|
23529
|
+
room_name?: string | undefined;
|
|
23530
|
+
channel_id?: string | undefined;
|
|
23531
|
+
clan_id?: string | undefined;
|
|
23532
|
+
} & { [K in Exclude<keyof I, keyof MeetParticipantRequest>]: never; }>(base?: I | undefined): MeetParticipantRequest;
|
|
23533
|
+
fromPartial<I_1 extends {
|
|
23534
|
+
username?: string | undefined;
|
|
23535
|
+
room_name?: string | undefined;
|
|
23536
|
+
channel_id?: string | undefined;
|
|
23537
|
+
clan_id?: string | undefined;
|
|
23538
|
+
} & {
|
|
23539
|
+
username?: string | undefined;
|
|
23540
|
+
room_name?: string | undefined;
|
|
23541
|
+
channel_id?: string | undefined;
|
|
23542
|
+
clan_id?: string | undefined;
|
|
23543
|
+
} & { [K_1 in Exclude<keyof I_1, keyof MeetParticipantRequest>]: never; }>(object: I_1): MeetParticipantRequest;
|
|
23544
|
+
};
|
|
23501
23545
|
export declare const GenerateMeetTokenResponse: {
|
|
23502
23546
|
encode(message: GenerateMeetTokenResponse, writer?: _m0.Writer): _m0.Writer;
|
|
23503
23547
|
decode(input: _m0.Reader | Uint8Array, length?: number): GenerateMeetTokenResponse;
|
|
@@ -24786,6 +24830,26 @@ export declare const IsFollowerResponse: {
|
|
|
24786
24830
|
is_follower?: boolean | undefined;
|
|
24787
24831
|
} & { [K_1 in Exclude<keyof I_1, keyof IsFollowerResponse>]: never; }>(object: I_1): IsFollowerResponse;
|
|
24788
24832
|
};
|
|
24833
|
+
export declare const TransferOwnershipRequest: {
|
|
24834
|
+
encode(message: TransferOwnershipRequest, writer?: _m0.Writer): _m0.Writer;
|
|
24835
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): TransferOwnershipRequest;
|
|
24836
|
+
fromJSON(object: any): TransferOwnershipRequest;
|
|
24837
|
+
toJSON(message: TransferOwnershipRequest): unknown;
|
|
24838
|
+
create<I extends {
|
|
24839
|
+
clan_id?: string | undefined;
|
|
24840
|
+
new_owner_id?: string | undefined;
|
|
24841
|
+
} & {
|
|
24842
|
+
clan_id?: string | undefined;
|
|
24843
|
+
new_owner_id?: string | undefined;
|
|
24844
|
+
} & { [K in Exclude<keyof I, keyof TransferOwnershipRequest>]: never; }>(base?: I | undefined): TransferOwnershipRequest;
|
|
24845
|
+
fromPartial<I_1 extends {
|
|
24846
|
+
clan_id?: string | undefined;
|
|
24847
|
+
new_owner_id?: string | undefined;
|
|
24848
|
+
} & {
|
|
24849
|
+
clan_id?: string | undefined;
|
|
24850
|
+
new_owner_id?: string | undefined;
|
|
24851
|
+
} & { [K_1 in Exclude<keyof I_1, keyof TransferOwnershipRequest>]: never; }>(object: I_1): TransferOwnershipRequest;
|
|
24852
|
+
};
|
|
24789
24853
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
24790
24854
|
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
24855
|
[K in keyof T]?: DeepPartial<T[K]>;
|