mezon-js-protobuf 1.8.32 → 1.8.34
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 +364 -272
- package/dist/mezon-js-protobuf/api/api.d.ts +182 -475
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +60 -300
- package/dist/mezon-js-protobuf.cjs.js +45 -105
- package/dist/mezon-js-protobuf.esm.mjs +45 -105
- package/package.json +1 -1
package/api/api.ts
CHANGED
|
@@ -191,6 +191,8 @@ export interface Account {
|
|
|
191
191
|
splash_screen: string;
|
|
192
192
|
/** E2ee encrypt private key */
|
|
193
193
|
encrypt_private_key: string;
|
|
194
|
+
/** password is setted */
|
|
195
|
+
password_setted: boolean;
|
|
194
196
|
}
|
|
195
197
|
|
|
196
198
|
/** Obtain a new authentication token using a refresh token. */
|
|
@@ -610,16 +612,6 @@ export interface FriendList {
|
|
|
610
612
|
cursor: string;
|
|
611
613
|
}
|
|
612
614
|
|
|
613
|
-
/** Fetch a batch of zero or more users from the server. */
|
|
614
|
-
export interface GetUsersRequest {
|
|
615
|
-
/** The account id of a user. */
|
|
616
|
-
ids: string[];
|
|
617
|
-
/** The account username of a user. */
|
|
618
|
-
usernames: string[];
|
|
619
|
-
/** The Facebook ID of a user. */
|
|
620
|
-
facebook_ids: string[];
|
|
621
|
-
}
|
|
622
|
-
|
|
623
615
|
/** Fetch a batch of zero or more users from the server. */
|
|
624
616
|
export interface UpdateUsersRequest {
|
|
625
617
|
/** The account username of a user. */
|
|
@@ -1154,6 +1146,8 @@ export interface UpdateAccountRequest {
|
|
|
1154
1146
|
splash_screen: string;
|
|
1155
1147
|
/** e2ee encrypt private key */
|
|
1156
1148
|
encrypt_private_key: string;
|
|
1149
|
+
/** The email of the user's account. */
|
|
1150
|
+
email: string | undefined;
|
|
1157
1151
|
}
|
|
1158
1152
|
|
|
1159
1153
|
/** Update fields in a given group. */
|
|
@@ -1205,16 +1199,10 @@ export interface User {
|
|
|
1205
1199
|
timezone: string;
|
|
1206
1200
|
/** Additional information stored as a JSON object. */
|
|
1207
1201
|
metadata: string;
|
|
1208
|
-
/** The Facebook id in the user's account. */
|
|
1209
|
-
facebook_id: string;
|
|
1210
|
-
/** The Google id in the user's account. */
|
|
1211
|
-
google_id: string;
|
|
1212
|
-
/** The Apple Game Center in of the user's account. */
|
|
1213
|
-
gamecenter_id: string;
|
|
1214
|
-
/** The Steam id in the user's account. */
|
|
1215
|
-
steam_id: string;
|
|
1216
1202
|
/** Indicates whether the user is currently online. */
|
|
1217
1203
|
online: boolean;
|
|
1204
|
+
/** The phone number */
|
|
1205
|
+
phone_number: string;
|
|
1218
1206
|
/** Number of related edges to this user. */
|
|
1219
1207
|
edge_count: number;
|
|
1220
1208
|
/** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the user was created. */
|
|
@@ -1225,8 +1213,6 @@ export interface User {
|
|
|
1225
1213
|
update_time:
|
|
1226
1214
|
| Date
|
|
1227
1215
|
| undefined;
|
|
1228
|
-
/** The Apple Sign In ID in the user's account. */
|
|
1229
|
-
apple_id: string;
|
|
1230
1216
|
/** About me */
|
|
1231
1217
|
about_me: string;
|
|
1232
1218
|
/** Join time */
|
|
@@ -1816,12 +1802,16 @@ export interface CreateChannelDescRequest {
|
|
|
1816
1802
|
|
|
1817
1803
|
/** Delete a channel the user has access to. */
|
|
1818
1804
|
export interface DeleteChannelDescRequest {
|
|
1805
|
+
/** The clan id */
|
|
1806
|
+
clan_id: string;
|
|
1819
1807
|
/** The id of a channel. */
|
|
1820
1808
|
channel_id: string;
|
|
1821
1809
|
}
|
|
1822
1810
|
|
|
1823
1811
|
/** Update fields in a given channel. */
|
|
1824
1812
|
export interface UpdateChannelDescRequest {
|
|
1813
|
+
/** The clan ID */
|
|
1814
|
+
clan_id: string;
|
|
1825
1815
|
/** The ID of the channel to update. */
|
|
1826
1816
|
channel_id: string;
|
|
1827
1817
|
/** The channel lable */
|
|
@@ -1844,6 +1834,8 @@ export interface UpdateChannelDescRequest {
|
|
|
1844
1834
|
|
|
1845
1835
|
/** Update fields in a given channel. */
|
|
1846
1836
|
export interface ChangeChannelPrivateRequest {
|
|
1837
|
+
/** The clan ID */
|
|
1838
|
+
clan_id: string;
|
|
1847
1839
|
/** The ID of the channel to update. */
|
|
1848
1840
|
channel_id: string;
|
|
1849
1841
|
/** The channel private */
|
|
@@ -1880,6 +1872,7 @@ export interface RemoveClanUsersRequest {
|
|
|
1880
1872
|
|
|
1881
1873
|
/** Leave a channel. */
|
|
1882
1874
|
export interface LeaveThreadRequest {
|
|
1875
|
+
clan_id: string;
|
|
1883
1876
|
/** The channel ID to leave. */
|
|
1884
1877
|
channel_id: string;
|
|
1885
1878
|
}
|
|
@@ -2460,6 +2453,8 @@ export interface RegistrationEmailRequest {
|
|
|
2460
2453
|
email: string;
|
|
2461
2454
|
/** A password for the user account. */
|
|
2462
2455
|
password: string;
|
|
2456
|
+
/** A old password for the user account. */
|
|
2457
|
+
old_password: string;
|
|
2463
2458
|
/** Set the username on the account at register. Must be unique. */
|
|
2464
2459
|
username: string;
|
|
2465
2460
|
/** Display name */
|
|
@@ -3216,6 +3211,7 @@ export interface AddFavoriteChannelRequest {
|
|
|
3216
3211
|
}
|
|
3217
3212
|
|
|
3218
3213
|
export interface RemoveFavoriteChannelRequest {
|
|
3214
|
+
clan_id: string;
|
|
3219
3215
|
channel_id: string;
|
|
3220
3216
|
}
|
|
3221
3217
|
|
|
@@ -3823,6 +3819,8 @@ export interface AccountEmail {
|
|
|
3823
3819
|
email: string;
|
|
3824
3820
|
/** A password for the user account. */
|
|
3825
3821
|
password: string;
|
|
3822
|
+
/** Prev email */
|
|
3823
|
+
prev_email: string;
|
|
3826
3824
|
/** Extra information that will be bundled in the session token. */
|
|
3827
3825
|
vars: { [key: string]: string };
|
|
3828
3826
|
}
|
|
@@ -3834,8 +3832,8 @@ export interface AccountEmail_VarsEntry {
|
|
|
3834
3832
|
|
|
3835
3833
|
/** Send a Mezon token to the server. Used with authenticate/link/unlink. */
|
|
3836
3834
|
export interface AccountMezon {
|
|
3837
|
-
/** The
|
|
3838
|
-
|
|
3835
|
+
/** The phone number. */
|
|
3836
|
+
phone_number: string;
|
|
3839
3837
|
/** Extra information that will be bundled in the session token. */
|
|
3840
3838
|
vars: { [key: string]: string };
|
|
3841
3839
|
}
|
|
@@ -3845,6 +3843,15 @@ export interface AccountMezon_VarsEntry {
|
|
|
3845
3843
|
value: string;
|
|
3846
3844
|
}
|
|
3847
3845
|
|
|
3846
|
+
export interface LinkAccountConfirmRequest {
|
|
3847
|
+
/** The request id */
|
|
3848
|
+
req_id: string;
|
|
3849
|
+
/** Status */
|
|
3850
|
+
status: number;
|
|
3851
|
+
/** The confirm code */
|
|
3852
|
+
otp_code: string;
|
|
3853
|
+
}
|
|
3854
|
+
|
|
3848
3855
|
export interface QuickMenuAccess {
|
|
3849
3856
|
id: string;
|
|
3850
3857
|
bot_id: string;
|
|
@@ -3904,6 +3911,7 @@ function createBaseAccount(): Account {
|
|
|
3904
3911
|
logo: "",
|
|
3905
3912
|
splash_screen: "",
|
|
3906
3913
|
encrypt_private_key: "",
|
|
3914
|
+
password_setted: false,
|
|
3907
3915
|
};
|
|
3908
3916
|
}
|
|
3909
3917
|
|
|
@@ -3936,6 +3944,9 @@ export const Account = {
|
|
|
3936
3944
|
if (message.encrypt_private_key !== "") {
|
|
3937
3945
|
writer.uint32(74).string(message.encrypt_private_key);
|
|
3938
3946
|
}
|
|
3947
|
+
if (message.password_setted !== false) {
|
|
3948
|
+
writer.uint32(80).bool(message.password_setted);
|
|
3949
|
+
}
|
|
3939
3950
|
return writer;
|
|
3940
3951
|
},
|
|
3941
3952
|
|
|
@@ -4009,6 +4020,13 @@ export const Account = {
|
|
|
4009
4020
|
|
|
4010
4021
|
message.encrypt_private_key = reader.string();
|
|
4011
4022
|
continue;
|
|
4023
|
+
case 10:
|
|
4024
|
+
if (tag !== 80) {
|
|
4025
|
+
break;
|
|
4026
|
+
}
|
|
4027
|
+
|
|
4028
|
+
message.password_setted = reader.bool();
|
|
4029
|
+
continue;
|
|
4012
4030
|
}
|
|
4013
4031
|
if ((tag & 7) === 4 || tag === 0) {
|
|
4014
4032
|
break;
|
|
@@ -4029,6 +4047,7 @@ export const Account = {
|
|
|
4029
4047
|
logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
|
|
4030
4048
|
splash_screen: isSet(object.splash_screen) ? globalThis.String(object.splash_screen) : "",
|
|
4031
4049
|
encrypt_private_key: isSet(object.encrypt_private_key) ? globalThis.String(object.encrypt_private_key) : "",
|
|
4050
|
+
password_setted: isSet(object.password_setted) ? globalThis.Boolean(object.password_setted) : false,
|
|
4032
4051
|
};
|
|
4033
4052
|
},
|
|
4034
4053
|
|
|
@@ -4061,6 +4080,9 @@ export const Account = {
|
|
|
4061
4080
|
if (message.encrypt_private_key !== "") {
|
|
4062
4081
|
obj.encrypt_private_key = message.encrypt_private_key;
|
|
4063
4082
|
}
|
|
4083
|
+
if (message.password_setted !== false) {
|
|
4084
|
+
obj.password_setted = message.password_setted;
|
|
4085
|
+
}
|
|
4064
4086
|
return obj;
|
|
4065
4087
|
},
|
|
4066
4088
|
|
|
@@ -4078,6 +4100,7 @@ export const Account = {
|
|
|
4078
4100
|
message.logo = object.logo ?? "";
|
|
4079
4101
|
message.splash_screen = object.splash_screen ?? "";
|
|
4080
4102
|
message.encrypt_private_key = object.encrypt_private_key ?? "";
|
|
4103
|
+
message.password_setted = object.password_setted ?? false;
|
|
4081
4104
|
return message;
|
|
4082
4105
|
},
|
|
4083
4106
|
};
|
|
@@ -7269,99 +7292,6 @@ export const FriendList = {
|
|
|
7269
7292
|
},
|
|
7270
7293
|
};
|
|
7271
7294
|
|
|
7272
|
-
function createBaseGetUsersRequest(): GetUsersRequest {
|
|
7273
|
-
return { ids: [], usernames: [], facebook_ids: [] };
|
|
7274
|
-
}
|
|
7275
|
-
|
|
7276
|
-
export const GetUsersRequest = {
|
|
7277
|
-
encode(message: GetUsersRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
7278
|
-
for (const v of message.ids) {
|
|
7279
|
-
writer.uint32(10).string(v!);
|
|
7280
|
-
}
|
|
7281
|
-
for (const v of message.usernames) {
|
|
7282
|
-
writer.uint32(18).string(v!);
|
|
7283
|
-
}
|
|
7284
|
-
for (const v of message.facebook_ids) {
|
|
7285
|
-
writer.uint32(26).string(v!);
|
|
7286
|
-
}
|
|
7287
|
-
return writer;
|
|
7288
|
-
},
|
|
7289
|
-
|
|
7290
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): GetUsersRequest {
|
|
7291
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
7292
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
7293
|
-
const message = createBaseGetUsersRequest();
|
|
7294
|
-
while (reader.pos < end) {
|
|
7295
|
-
const tag = reader.uint32();
|
|
7296
|
-
switch (tag >>> 3) {
|
|
7297
|
-
case 1:
|
|
7298
|
-
if (tag !== 10) {
|
|
7299
|
-
break;
|
|
7300
|
-
}
|
|
7301
|
-
|
|
7302
|
-
message.ids.push(reader.string());
|
|
7303
|
-
continue;
|
|
7304
|
-
case 2:
|
|
7305
|
-
if (tag !== 18) {
|
|
7306
|
-
break;
|
|
7307
|
-
}
|
|
7308
|
-
|
|
7309
|
-
message.usernames.push(reader.string());
|
|
7310
|
-
continue;
|
|
7311
|
-
case 3:
|
|
7312
|
-
if (tag !== 26) {
|
|
7313
|
-
break;
|
|
7314
|
-
}
|
|
7315
|
-
|
|
7316
|
-
message.facebook_ids.push(reader.string());
|
|
7317
|
-
continue;
|
|
7318
|
-
}
|
|
7319
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
7320
|
-
break;
|
|
7321
|
-
}
|
|
7322
|
-
reader.skipType(tag & 7);
|
|
7323
|
-
}
|
|
7324
|
-
return message;
|
|
7325
|
-
},
|
|
7326
|
-
|
|
7327
|
-
fromJSON(object: any): GetUsersRequest {
|
|
7328
|
-
return {
|
|
7329
|
-
ids: globalThis.Array.isArray(object?.ids) ? object.ids.map((e: any) => globalThis.String(e)) : [],
|
|
7330
|
-
usernames: globalThis.Array.isArray(object?.usernames)
|
|
7331
|
-
? object.usernames.map((e: any) => globalThis.String(e))
|
|
7332
|
-
: [],
|
|
7333
|
-
facebook_ids: globalThis.Array.isArray(object?.facebook_ids)
|
|
7334
|
-
? object.facebook_ids.map((e: any) => globalThis.String(e))
|
|
7335
|
-
: [],
|
|
7336
|
-
};
|
|
7337
|
-
},
|
|
7338
|
-
|
|
7339
|
-
toJSON(message: GetUsersRequest): unknown {
|
|
7340
|
-
const obj: any = {};
|
|
7341
|
-
if (message.ids?.length) {
|
|
7342
|
-
obj.ids = message.ids;
|
|
7343
|
-
}
|
|
7344
|
-
if (message.usernames?.length) {
|
|
7345
|
-
obj.usernames = message.usernames;
|
|
7346
|
-
}
|
|
7347
|
-
if (message.facebook_ids?.length) {
|
|
7348
|
-
obj.facebook_ids = message.facebook_ids;
|
|
7349
|
-
}
|
|
7350
|
-
return obj;
|
|
7351
|
-
},
|
|
7352
|
-
|
|
7353
|
-
create<I extends Exact<DeepPartial<GetUsersRequest>, I>>(base?: I): GetUsersRequest {
|
|
7354
|
-
return GetUsersRequest.fromPartial(base ?? ({} as any));
|
|
7355
|
-
},
|
|
7356
|
-
fromPartial<I extends Exact<DeepPartial<GetUsersRequest>, I>>(object: I): GetUsersRequest {
|
|
7357
|
-
const message = createBaseGetUsersRequest();
|
|
7358
|
-
message.ids = object.ids?.map((e) => e) || [];
|
|
7359
|
-
message.usernames = object.usernames?.map((e) => e) || [];
|
|
7360
|
-
message.facebook_ids = object.facebook_ids?.map((e) => e) || [];
|
|
7361
|
-
return message;
|
|
7362
|
-
},
|
|
7363
|
-
};
|
|
7364
|
-
|
|
7365
7295
|
function createBaseUpdateUsersRequest(): UpdateUsersRequest {
|
|
7366
7296
|
return { display_name: "", avatar_url: "" };
|
|
7367
7297
|
}
|
|
@@ -10900,6 +10830,7 @@ function createBaseUpdateAccountRequest(): UpdateAccountRequest {
|
|
|
10900
10830
|
logo: undefined,
|
|
10901
10831
|
splash_screen: "",
|
|
10902
10832
|
encrypt_private_key: "",
|
|
10833
|
+
email: undefined,
|
|
10903
10834
|
};
|
|
10904
10835
|
}
|
|
10905
10836
|
|
|
@@ -10938,6 +10869,9 @@ export const UpdateAccountRequest = {
|
|
|
10938
10869
|
if (message.encrypt_private_key !== "") {
|
|
10939
10870
|
writer.uint32(90).string(message.encrypt_private_key);
|
|
10940
10871
|
}
|
|
10872
|
+
if (message.email !== undefined) {
|
|
10873
|
+
StringValue.encode({ value: message.email! }, writer.uint32(98).fork()).ldelim();
|
|
10874
|
+
}
|
|
10941
10875
|
return writer;
|
|
10942
10876
|
},
|
|
10943
10877
|
|
|
@@ -11025,6 +10959,13 @@ export const UpdateAccountRequest = {
|
|
|
11025
10959
|
|
|
11026
10960
|
message.encrypt_private_key = reader.string();
|
|
11027
10961
|
continue;
|
|
10962
|
+
case 12:
|
|
10963
|
+
if (tag !== 98) {
|
|
10964
|
+
break;
|
|
10965
|
+
}
|
|
10966
|
+
|
|
10967
|
+
message.email = StringValue.decode(reader, reader.uint32()).value;
|
|
10968
|
+
continue;
|
|
11028
10969
|
}
|
|
11029
10970
|
if ((tag & 7) === 4 || tag === 0) {
|
|
11030
10971
|
break;
|
|
@@ -11047,6 +10988,7 @@ export const UpdateAccountRequest = {
|
|
|
11047
10988
|
logo: isSet(object.logo) ? String(object.logo) : undefined,
|
|
11048
10989
|
splash_screen: isSet(object.splash_screen) ? globalThis.String(object.splash_screen) : "",
|
|
11049
10990
|
encrypt_private_key: isSet(object.encrypt_private_key) ? globalThis.String(object.encrypt_private_key) : "",
|
|
10991
|
+
email: isSet(object.email) ? String(object.email) : undefined,
|
|
11050
10992
|
};
|
|
11051
10993
|
},
|
|
11052
10994
|
|
|
@@ -11085,6 +11027,9 @@ export const UpdateAccountRequest = {
|
|
|
11085
11027
|
if (message.encrypt_private_key !== "") {
|
|
11086
11028
|
obj.encrypt_private_key = message.encrypt_private_key;
|
|
11087
11029
|
}
|
|
11030
|
+
if (message.email !== undefined) {
|
|
11031
|
+
obj.email = message.email;
|
|
11032
|
+
}
|
|
11088
11033
|
return obj;
|
|
11089
11034
|
},
|
|
11090
11035
|
|
|
@@ -11104,6 +11049,7 @@ export const UpdateAccountRequest = {
|
|
|
11104
11049
|
message.logo = object.logo ?? undefined;
|
|
11105
11050
|
message.splash_screen = object.splash_screen ?? "";
|
|
11106
11051
|
message.encrypt_private_key = object.encrypt_private_key ?? "";
|
|
11052
|
+
message.email = object.email ?? undefined;
|
|
11107
11053
|
return message;
|
|
11108
11054
|
},
|
|
11109
11055
|
};
|
|
@@ -11348,15 +11294,11 @@ function createBaseUser(): User {
|
|
|
11348
11294
|
location: "",
|
|
11349
11295
|
timezone: "",
|
|
11350
11296
|
metadata: "",
|
|
11351
|
-
facebook_id: "",
|
|
11352
|
-
google_id: "",
|
|
11353
|
-
gamecenter_id: "",
|
|
11354
|
-
steam_id: "",
|
|
11355
11297
|
online: false,
|
|
11298
|
+
phone_number: "",
|
|
11356
11299
|
edge_count: 0,
|
|
11357
11300
|
create_time: undefined,
|
|
11358
11301
|
update_time: undefined,
|
|
11359
|
-
apple_id: "",
|
|
11360
11302
|
about_me: "",
|
|
11361
11303
|
join_time: undefined,
|
|
11362
11304
|
is_mobile: false,
|
|
@@ -11392,50 +11334,38 @@ export const User = {
|
|
|
11392
11334
|
if (message.metadata !== "") {
|
|
11393
11335
|
writer.uint32(66).string(message.metadata);
|
|
11394
11336
|
}
|
|
11395
|
-
if (message.facebook_id !== "") {
|
|
11396
|
-
writer.uint32(74).string(message.facebook_id);
|
|
11397
|
-
}
|
|
11398
|
-
if (message.google_id !== "") {
|
|
11399
|
-
writer.uint32(82).string(message.google_id);
|
|
11400
|
-
}
|
|
11401
|
-
if (message.gamecenter_id !== "") {
|
|
11402
|
-
writer.uint32(90).string(message.gamecenter_id);
|
|
11403
|
-
}
|
|
11404
|
-
if (message.steam_id !== "") {
|
|
11405
|
-
writer.uint32(98).string(message.steam_id);
|
|
11406
|
-
}
|
|
11407
11337
|
if (message.online !== false) {
|
|
11408
|
-
writer.uint32(
|
|
11338
|
+
writer.uint32(72).bool(message.online);
|
|
11339
|
+
}
|
|
11340
|
+
if (message.phone_number !== "") {
|
|
11341
|
+
writer.uint32(82).string(message.phone_number);
|
|
11409
11342
|
}
|
|
11410
11343
|
if (message.edge_count !== 0) {
|
|
11411
|
-
writer.uint32(
|
|
11344
|
+
writer.uint32(88).int32(message.edge_count);
|
|
11412
11345
|
}
|
|
11413
11346
|
if (message.create_time !== undefined) {
|
|
11414
|
-
Timestamp.encode(toTimestamp(message.create_time), writer.uint32(
|
|
11347
|
+
Timestamp.encode(toTimestamp(message.create_time), writer.uint32(98).fork()).ldelim();
|
|
11415
11348
|
}
|
|
11416
11349
|
if (message.update_time !== undefined) {
|
|
11417
|
-
Timestamp.encode(toTimestamp(message.update_time), writer.uint32(
|
|
11418
|
-
}
|
|
11419
|
-
if (message.apple_id !== "") {
|
|
11420
|
-
writer.uint32(138).string(message.apple_id);
|
|
11350
|
+
Timestamp.encode(toTimestamp(message.update_time), writer.uint32(106).fork()).ldelim();
|
|
11421
11351
|
}
|
|
11422
11352
|
if (message.about_me !== "") {
|
|
11423
|
-
writer.uint32(
|
|
11353
|
+
writer.uint32(114).string(message.about_me);
|
|
11424
11354
|
}
|
|
11425
11355
|
if (message.join_time !== undefined) {
|
|
11426
|
-
Timestamp.encode(toTimestamp(message.join_time), writer.uint32(
|
|
11356
|
+
Timestamp.encode(toTimestamp(message.join_time), writer.uint32(122).fork()).ldelim();
|
|
11427
11357
|
}
|
|
11428
11358
|
if (message.is_mobile !== false) {
|
|
11429
|
-
writer.uint32(
|
|
11359
|
+
writer.uint32(128).bool(message.is_mobile);
|
|
11430
11360
|
}
|
|
11431
11361
|
if (message.dob !== undefined) {
|
|
11432
|
-
Timestamp.encode(toTimestamp(message.dob), writer.uint32(
|
|
11362
|
+
Timestamp.encode(toTimestamp(message.dob), writer.uint32(138).fork()).ldelim();
|
|
11433
11363
|
}
|
|
11434
11364
|
if (message.mezon_id !== "") {
|
|
11435
|
-
writer.uint32(
|
|
11365
|
+
writer.uint32(146).string(message.mezon_id);
|
|
11436
11366
|
}
|
|
11437
11367
|
for (const v of message.list_nick_names) {
|
|
11438
|
-
writer.uint32(
|
|
11368
|
+
writer.uint32(154).string(v!);
|
|
11439
11369
|
}
|
|
11440
11370
|
return writer;
|
|
11441
11371
|
},
|
|
@@ -11504,108 +11434,80 @@ export const User = {
|
|
|
11504
11434
|
message.metadata = reader.string();
|
|
11505
11435
|
continue;
|
|
11506
11436
|
case 9:
|
|
11507
|
-
if (tag !==
|
|
11437
|
+
if (tag !== 72) {
|
|
11508
11438
|
break;
|
|
11509
11439
|
}
|
|
11510
11440
|
|
|
11511
|
-
message.
|
|
11441
|
+
message.online = reader.bool();
|
|
11512
11442
|
continue;
|
|
11513
11443
|
case 10:
|
|
11514
11444
|
if (tag !== 82) {
|
|
11515
11445
|
break;
|
|
11516
11446
|
}
|
|
11517
11447
|
|
|
11518
|
-
message.
|
|
11448
|
+
message.phone_number = reader.string();
|
|
11519
11449
|
continue;
|
|
11520
11450
|
case 11:
|
|
11521
|
-
if (tag !==
|
|
11451
|
+
if (tag !== 88) {
|
|
11522
11452
|
break;
|
|
11523
11453
|
}
|
|
11524
11454
|
|
|
11525
|
-
message.
|
|
11455
|
+
message.edge_count = reader.int32();
|
|
11526
11456
|
continue;
|
|
11527
11457
|
case 12:
|
|
11528
11458
|
if (tag !== 98) {
|
|
11529
11459
|
break;
|
|
11530
11460
|
}
|
|
11531
11461
|
|
|
11532
|
-
message.
|
|
11462
|
+
message.create_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
11533
11463
|
continue;
|
|
11534
11464
|
case 13:
|
|
11535
|
-
if (tag !==
|
|
11465
|
+
if (tag !== 106) {
|
|
11536
11466
|
break;
|
|
11537
11467
|
}
|
|
11538
11468
|
|
|
11539
|
-
message.
|
|
11469
|
+
message.update_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
11540
11470
|
continue;
|
|
11541
11471
|
case 14:
|
|
11542
|
-
if (tag !==
|
|
11472
|
+
if (tag !== 114) {
|
|
11543
11473
|
break;
|
|
11544
11474
|
}
|
|
11545
11475
|
|
|
11546
|
-
message.
|
|
11476
|
+
message.about_me = reader.string();
|
|
11547
11477
|
continue;
|
|
11548
11478
|
case 15:
|
|
11549
11479
|
if (tag !== 122) {
|
|
11550
11480
|
break;
|
|
11551
11481
|
}
|
|
11552
11482
|
|
|
11553
|
-
message.
|
|
11483
|
+
message.join_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
11554
11484
|
continue;
|
|
11555
11485
|
case 16:
|
|
11556
|
-
if (tag !==
|
|
11486
|
+
if (tag !== 128) {
|
|
11557
11487
|
break;
|
|
11558
11488
|
}
|
|
11559
11489
|
|
|
11560
|
-
message.
|
|
11490
|
+
message.is_mobile = reader.bool();
|
|
11561
11491
|
continue;
|
|
11562
11492
|
case 17:
|
|
11563
11493
|
if (tag !== 138) {
|
|
11564
11494
|
break;
|
|
11565
11495
|
}
|
|
11566
11496
|
|
|
11567
|
-
message.
|
|
11497
|
+
message.dob = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
11568
11498
|
continue;
|
|
11569
11499
|
case 18:
|
|
11570
11500
|
if (tag !== 146) {
|
|
11571
11501
|
break;
|
|
11572
11502
|
}
|
|
11573
11503
|
|
|
11574
|
-
message.
|
|
11504
|
+
message.mezon_id = reader.string();
|
|
11575
11505
|
continue;
|
|
11576
11506
|
case 19:
|
|
11577
11507
|
if (tag !== 154) {
|
|
11578
11508
|
break;
|
|
11579
11509
|
}
|
|
11580
11510
|
|
|
11581
|
-
message.join_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
11582
|
-
continue;
|
|
11583
|
-
case 20:
|
|
11584
|
-
if (tag !== 160) {
|
|
11585
|
-
break;
|
|
11586
|
-
}
|
|
11587
|
-
|
|
11588
|
-
message.is_mobile = reader.bool();
|
|
11589
|
-
continue;
|
|
11590
|
-
case 21:
|
|
11591
|
-
if (tag !== 170) {
|
|
11592
|
-
break;
|
|
11593
|
-
}
|
|
11594
|
-
|
|
11595
|
-
message.dob = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
11596
|
-
continue;
|
|
11597
|
-
case 22:
|
|
11598
|
-
if (tag !== 178) {
|
|
11599
|
-
break;
|
|
11600
|
-
}
|
|
11601
|
-
|
|
11602
|
-
message.mezon_id = reader.string();
|
|
11603
|
-
continue;
|
|
11604
|
-
case 23:
|
|
11605
|
-
if (tag !== 186) {
|
|
11606
|
-
break;
|
|
11607
|
-
}
|
|
11608
|
-
|
|
11609
11511
|
message.list_nick_names.push(reader.string());
|
|
11610
11512
|
continue;
|
|
11611
11513
|
}
|
|
@@ -11627,15 +11529,11 @@ export const User = {
|
|
|
11627
11529
|
location: isSet(object.location) ? globalThis.String(object.location) : "",
|
|
11628
11530
|
timezone: isSet(object.timezone) ? globalThis.String(object.timezone) : "",
|
|
11629
11531
|
metadata: isSet(object.metadata) ? globalThis.String(object.metadata) : "",
|
|
11630
|
-
facebook_id: isSet(object.facebook_id) ? globalThis.String(object.facebook_id) : "",
|
|
11631
|
-
google_id: isSet(object.google_id) ? globalThis.String(object.google_id) : "",
|
|
11632
|
-
gamecenter_id: isSet(object.gamecenter_id) ? globalThis.String(object.gamecenter_id) : "",
|
|
11633
|
-
steam_id: isSet(object.steam_id) ? globalThis.String(object.steam_id) : "",
|
|
11634
11532
|
online: isSet(object.online) ? globalThis.Boolean(object.online) : false,
|
|
11533
|
+
phone_number: isSet(object.phone_number) ? globalThis.String(object.phone_number) : "",
|
|
11635
11534
|
edge_count: isSet(object.edge_count) ? globalThis.Number(object.edge_count) : 0,
|
|
11636
11535
|
create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
|
|
11637
11536
|
update_time: isSet(object.update_time) ? fromJsonTimestamp(object.update_time) : undefined,
|
|
11638
|
-
apple_id: isSet(object.apple_id) ? globalThis.String(object.apple_id) : "",
|
|
11639
11537
|
about_me: isSet(object.about_me) ? globalThis.String(object.about_me) : "",
|
|
11640
11538
|
join_time: isSet(object.join_time) ? fromJsonTimestamp(object.join_time) : undefined,
|
|
11641
11539
|
is_mobile: isSet(object.is_mobile) ? globalThis.Boolean(object.is_mobile) : false,
|
|
@@ -11673,21 +11571,12 @@ export const User = {
|
|
|
11673
11571
|
if (message.metadata !== "") {
|
|
11674
11572
|
obj.metadata = message.metadata;
|
|
11675
11573
|
}
|
|
11676
|
-
if (message.facebook_id !== "") {
|
|
11677
|
-
obj.facebook_id = message.facebook_id;
|
|
11678
|
-
}
|
|
11679
|
-
if (message.google_id !== "") {
|
|
11680
|
-
obj.google_id = message.google_id;
|
|
11681
|
-
}
|
|
11682
|
-
if (message.gamecenter_id !== "") {
|
|
11683
|
-
obj.gamecenter_id = message.gamecenter_id;
|
|
11684
|
-
}
|
|
11685
|
-
if (message.steam_id !== "") {
|
|
11686
|
-
obj.steam_id = message.steam_id;
|
|
11687
|
-
}
|
|
11688
11574
|
if (message.online !== false) {
|
|
11689
11575
|
obj.online = message.online;
|
|
11690
11576
|
}
|
|
11577
|
+
if (message.phone_number !== "") {
|
|
11578
|
+
obj.phone_number = message.phone_number;
|
|
11579
|
+
}
|
|
11691
11580
|
if (message.edge_count !== 0) {
|
|
11692
11581
|
obj.edge_count = Math.round(message.edge_count);
|
|
11693
11582
|
}
|
|
@@ -11697,9 +11586,6 @@ export const User = {
|
|
|
11697
11586
|
if (message.update_time !== undefined) {
|
|
11698
11587
|
obj.update_time = message.update_time.toISOString();
|
|
11699
11588
|
}
|
|
11700
|
-
if (message.apple_id !== "") {
|
|
11701
|
-
obj.apple_id = message.apple_id;
|
|
11702
|
-
}
|
|
11703
11589
|
if (message.about_me !== "") {
|
|
11704
11590
|
obj.about_me = message.about_me;
|
|
11705
11591
|
}
|
|
@@ -11734,15 +11620,11 @@ export const User = {
|
|
|
11734
11620
|
message.location = object.location ?? "";
|
|
11735
11621
|
message.timezone = object.timezone ?? "";
|
|
11736
11622
|
message.metadata = object.metadata ?? "";
|
|
11737
|
-
message.facebook_id = object.facebook_id ?? "";
|
|
11738
|
-
message.google_id = object.google_id ?? "";
|
|
11739
|
-
message.gamecenter_id = object.gamecenter_id ?? "";
|
|
11740
|
-
message.steam_id = object.steam_id ?? "";
|
|
11741
11623
|
message.online = object.online ?? false;
|
|
11624
|
+
message.phone_number = object.phone_number ?? "";
|
|
11742
11625
|
message.edge_count = object.edge_count ?? 0;
|
|
11743
11626
|
message.create_time = object.create_time ?? undefined;
|
|
11744
11627
|
message.update_time = object.update_time ?? undefined;
|
|
11745
|
-
message.apple_id = object.apple_id ?? "";
|
|
11746
11628
|
message.about_me = object.about_me ?? "";
|
|
11747
11629
|
message.join_time = object.join_time ?? undefined;
|
|
11748
11630
|
message.is_mobile = object.is_mobile ?? false;
|
|
@@ -16260,13 +16142,16 @@ export const CreateChannelDescRequest = {
|
|
|
16260
16142
|
};
|
|
16261
16143
|
|
|
16262
16144
|
function createBaseDeleteChannelDescRequest(): DeleteChannelDescRequest {
|
|
16263
|
-
return { channel_id: "" };
|
|
16145
|
+
return { clan_id: "", channel_id: "" };
|
|
16264
16146
|
}
|
|
16265
16147
|
|
|
16266
16148
|
export const DeleteChannelDescRequest = {
|
|
16267
16149
|
encode(message: DeleteChannelDescRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
16150
|
+
if (message.clan_id !== "") {
|
|
16151
|
+
writer.uint32(10).string(message.clan_id);
|
|
16152
|
+
}
|
|
16268
16153
|
if (message.channel_id !== "") {
|
|
16269
|
-
writer.uint32(
|
|
16154
|
+
writer.uint32(18).string(message.channel_id);
|
|
16270
16155
|
}
|
|
16271
16156
|
return writer;
|
|
16272
16157
|
},
|
|
@@ -16283,6 +16168,13 @@ export const DeleteChannelDescRequest = {
|
|
|
16283
16168
|
break;
|
|
16284
16169
|
}
|
|
16285
16170
|
|
|
16171
|
+
message.clan_id = reader.string();
|
|
16172
|
+
continue;
|
|
16173
|
+
case 2:
|
|
16174
|
+
if (tag !== 18) {
|
|
16175
|
+
break;
|
|
16176
|
+
}
|
|
16177
|
+
|
|
16286
16178
|
message.channel_id = reader.string();
|
|
16287
16179
|
continue;
|
|
16288
16180
|
}
|
|
@@ -16295,11 +16187,17 @@ export const DeleteChannelDescRequest = {
|
|
|
16295
16187
|
},
|
|
16296
16188
|
|
|
16297
16189
|
fromJSON(object: any): DeleteChannelDescRequest {
|
|
16298
|
-
return {
|
|
16190
|
+
return {
|
|
16191
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
16192
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
16193
|
+
};
|
|
16299
16194
|
},
|
|
16300
16195
|
|
|
16301
16196
|
toJSON(message: DeleteChannelDescRequest): unknown {
|
|
16302
16197
|
const obj: any = {};
|
|
16198
|
+
if (message.clan_id !== "") {
|
|
16199
|
+
obj.clan_id = message.clan_id;
|
|
16200
|
+
}
|
|
16303
16201
|
if (message.channel_id !== "") {
|
|
16304
16202
|
obj.channel_id = message.channel_id;
|
|
16305
16203
|
}
|
|
@@ -16311,6 +16209,7 @@ export const DeleteChannelDescRequest = {
|
|
|
16311
16209
|
},
|
|
16312
16210
|
fromPartial<I extends Exact<DeepPartial<DeleteChannelDescRequest>, I>>(object: I): DeleteChannelDescRequest {
|
|
16313
16211
|
const message = createBaseDeleteChannelDescRequest();
|
|
16212
|
+
message.clan_id = object.clan_id ?? "";
|
|
16314
16213
|
message.channel_id = object.channel_id ?? "";
|
|
16315
16214
|
return message;
|
|
16316
16215
|
},
|
|
@@ -16318,6 +16217,7 @@ export const DeleteChannelDescRequest = {
|
|
|
16318
16217
|
|
|
16319
16218
|
function createBaseUpdateChannelDescRequest(): UpdateChannelDescRequest {
|
|
16320
16219
|
return {
|
|
16220
|
+
clan_id: "",
|
|
16321
16221
|
channel_id: "",
|
|
16322
16222
|
channel_label: undefined,
|
|
16323
16223
|
category_id: undefined,
|
|
@@ -16330,26 +16230,29 @@ function createBaseUpdateChannelDescRequest(): UpdateChannelDescRequest {
|
|
|
16330
16230
|
|
|
16331
16231
|
export const UpdateChannelDescRequest = {
|
|
16332
16232
|
encode(message: UpdateChannelDescRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
16233
|
+
if (message.clan_id !== "") {
|
|
16234
|
+
writer.uint32(10).string(message.clan_id);
|
|
16235
|
+
}
|
|
16333
16236
|
if (message.channel_id !== "") {
|
|
16334
|
-
writer.uint32(
|
|
16237
|
+
writer.uint32(18).string(message.channel_id);
|
|
16335
16238
|
}
|
|
16336
16239
|
if (message.channel_label !== undefined) {
|
|
16337
|
-
StringValue.encode({ value: message.channel_label! }, writer.uint32(
|
|
16240
|
+
StringValue.encode({ value: message.channel_label! }, writer.uint32(26).fork()).ldelim();
|
|
16338
16241
|
}
|
|
16339
16242
|
if (message.category_id !== undefined) {
|
|
16340
|
-
StringValue.encode({ value: message.category_id! }, writer.uint32(
|
|
16243
|
+
StringValue.encode({ value: message.category_id! }, writer.uint32(34).fork()).ldelim();
|
|
16341
16244
|
}
|
|
16342
16245
|
if (message.app_id !== "") {
|
|
16343
|
-
writer.uint32(
|
|
16246
|
+
writer.uint32(42).string(message.app_id);
|
|
16344
16247
|
}
|
|
16345
16248
|
if (message.topic !== "") {
|
|
16346
|
-
writer.uint32(
|
|
16249
|
+
writer.uint32(50).string(message.topic);
|
|
16347
16250
|
}
|
|
16348
16251
|
if (message.age_restricted !== 0) {
|
|
16349
|
-
writer.uint32(
|
|
16252
|
+
writer.uint32(56).int32(message.age_restricted);
|
|
16350
16253
|
}
|
|
16351
16254
|
if (message.e2ee !== 0) {
|
|
16352
|
-
writer.uint32(
|
|
16255
|
+
writer.uint32(64).int32(message.e2ee);
|
|
16353
16256
|
}
|
|
16354
16257
|
return writer;
|
|
16355
16258
|
},
|
|
@@ -16366,48 +16269,55 @@ export const UpdateChannelDescRequest = {
|
|
|
16366
16269
|
break;
|
|
16367
16270
|
}
|
|
16368
16271
|
|
|
16369
|
-
message.
|
|
16272
|
+
message.clan_id = reader.string();
|
|
16370
16273
|
continue;
|
|
16371
16274
|
case 2:
|
|
16372
16275
|
if (tag !== 18) {
|
|
16373
16276
|
break;
|
|
16374
16277
|
}
|
|
16375
16278
|
|
|
16376
|
-
message.
|
|
16279
|
+
message.channel_id = reader.string();
|
|
16377
16280
|
continue;
|
|
16378
16281
|
case 3:
|
|
16379
16282
|
if (tag !== 26) {
|
|
16380
16283
|
break;
|
|
16381
16284
|
}
|
|
16382
16285
|
|
|
16383
|
-
message.
|
|
16286
|
+
message.channel_label = StringValue.decode(reader, reader.uint32()).value;
|
|
16384
16287
|
continue;
|
|
16385
16288
|
case 4:
|
|
16386
16289
|
if (tag !== 34) {
|
|
16387
16290
|
break;
|
|
16388
16291
|
}
|
|
16389
16292
|
|
|
16390
|
-
message.
|
|
16293
|
+
message.category_id = StringValue.decode(reader, reader.uint32()).value;
|
|
16391
16294
|
continue;
|
|
16392
16295
|
case 5:
|
|
16393
16296
|
if (tag !== 42) {
|
|
16394
16297
|
break;
|
|
16395
16298
|
}
|
|
16396
16299
|
|
|
16397
|
-
message.
|
|
16300
|
+
message.app_id = reader.string();
|
|
16398
16301
|
continue;
|
|
16399
16302
|
case 6:
|
|
16400
|
-
if (tag !==
|
|
16303
|
+
if (tag !== 50) {
|
|
16401
16304
|
break;
|
|
16402
16305
|
}
|
|
16403
16306
|
|
|
16404
|
-
message.
|
|
16307
|
+
message.topic = reader.string();
|
|
16405
16308
|
continue;
|
|
16406
16309
|
case 7:
|
|
16407
16310
|
if (tag !== 56) {
|
|
16408
16311
|
break;
|
|
16409
16312
|
}
|
|
16410
16313
|
|
|
16314
|
+
message.age_restricted = reader.int32();
|
|
16315
|
+
continue;
|
|
16316
|
+
case 8:
|
|
16317
|
+
if (tag !== 64) {
|
|
16318
|
+
break;
|
|
16319
|
+
}
|
|
16320
|
+
|
|
16411
16321
|
message.e2ee = reader.int32();
|
|
16412
16322
|
continue;
|
|
16413
16323
|
}
|
|
@@ -16421,6 +16331,7 @@ export const UpdateChannelDescRequest = {
|
|
|
16421
16331
|
|
|
16422
16332
|
fromJSON(object: any): UpdateChannelDescRequest {
|
|
16423
16333
|
return {
|
|
16334
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
16424
16335
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
16425
16336
|
channel_label: isSet(object.channel_label) ? String(object.channel_label) : undefined,
|
|
16426
16337
|
category_id: isSet(object.category_id) ? String(object.category_id) : undefined,
|
|
@@ -16433,6 +16344,9 @@ export const UpdateChannelDescRequest = {
|
|
|
16433
16344
|
|
|
16434
16345
|
toJSON(message: UpdateChannelDescRequest): unknown {
|
|
16435
16346
|
const obj: any = {};
|
|
16347
|
+
if (message.clan_id !== "") {
|
|
16348
|
+
obj.clan_id = message.clan_id;
|
|
16349
|
+
}
|
|
16436
16350
|
if (message.channel_id !== "") {
|
|
16437
16351
|
obj.channel_id = message.channel_id;
|
|
16438
16352
|
}
|
|
@@ -16462,6 +16376,7 @@ export const UpdateChannelDescRequest = {
|
|
|
16462
16376
|
},
|
|
16463
16377
|
fromPartial<I extends Exact<DeepPartial<UpdateChannelDescRequest>, I>>(object: I): UpdateChannelDescRequest {
|
|
16464
16378
|
const message = createBaseUpdateChannelDescRequest();
|
|
16379
|
+
message.clan_id = object.clan_id ?? "";
|
|
16465
16380
|
message.channel_id = object.channel_id ?? "";
|
|
16466
16381
|
message.channel_label = object.channel_label ?? undefined;
|
|
16467
16382
|
message.category_id = object.category_id ?? undefined;
|
|
@@ -16474,22 +16389,25 @@ export const UpdateChannelDescRequest = {
|
|
|
16474
16389
|
};
|
|
16475
16390
|
|
|
16476
16391
|
function createBaseChangeChannelPrivateRequest(): ChangeChannelPrivateRequest {
|
|
16477
|
-
return { channel_id: "", channel_private: 0, user_ids: [], role_ids: [] };
|
|
16392
|
+
return { clan_id: "", channel_id: "", channel_private: 0, user_ids: [], role_ids: [] };
|
|
16478
16393
|
}
|
|
16479
16394
|
|
|
16480
16395
|
export const ChangeChannelPrivateRequest = {
|
|
16481
16396
|
encode(message: ChangeChannelPrivateRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
16397
|
+
if (message.clan_id !== "") {
|
|
16398
|
+
writer.uint32(10).string(message.clan_id);
|
|
16399
|
+
}
|
|
16482
16400
|
if (message.channel_id !== "") {
|
|
16483
|
-
writer.uint32(
|
|
16401
|
+
writer.uint32(18).string(message.channel_id);
|
|
16484
16402
|
}
|
|
16485
16403
|
if (message.channel_private !== 0) {
|
|
16486
|
-
writer.uint32(
|
|
16404
|
+
writer.uint32(24).int32(message.channel_private);
|
|
16487
16405
|
}
|
|
16488
16406
|
for (const v of message.user_ids) {
|
|
16489
|
-
writer.uint32(
|
|
16407
|
+
writer.uint32(34).string(v!);
|
|
16490
16408
|
}
|
|
16491
16409
|
for (const v of message.role_ids) {
|
|
16492
|
-
writer.uint32(
|
|
16410
|
+
writer.uint32(42).string(v!);
|
|
16493
16411
|
}
|
|
16494
16412
|
return writer;
|
|
16495
16413
|
},
|
|
@@ -16506,27 +16424,34 @@ export const ChangeChannelPrivateRequest = {
|
|
|
16506
16424
|
break;
|
|
16507
16425
|
}
|
|
16508
16426
|
|
|
16509
|
-
message.
|
|
16427
|
+
message.clan_id = reader.string();
|
|
16510
16428
|
continue;
|
|
16511
16429
|
case 2:
|
|
16512
|
-
if (tag !==
|
|
16430
|
+
if (tag !== 18) {
|
|
16513
16431
|
break;
|
|
16514
16432
|
}
|
|
16515
16433
|
|
|
16516
|
-
message.
|
|
16434
|
+
message.channel_id = reader.string();
|
|
16517
16435
|
continue;
|
|
16518
16436
|
case 3:
|
|
16519
|
-
if (tag !==
|
|
16437
|
+
if (tag !== 24) {
|
|
16520
16438
|
break;
|
|
16521
16439
|
}
|
|
16522
16440
|
|
|
16523
|
-
message.
|
|
16441
|
+
message.channel_private = reader.int32();
|
|
16524
16442
|
continue;
|
|
16525
16443
|
case 4:
|
|
16526
16444
|
if (tag !== 34) {
|
|
16527
16445
|
break;
|
|
16528
16446
|
}
|
|
16529
16447
|
|
|
16448
|
+
message.user_ids.push(reader.string());
|
|
16449
|
+
continue;
|
|
16450
|
+
case 5:
|
|
16451
|
+
if (tag !== 42) {
|
|
16452
|
+
break;
|
|
16453
|
+
}
|
|
16454
|
+
|
|
16530
16455
|
message.role_ids.push(reader.string());
|
|
16531
16456
|
continue;
|
|
16532
16457
|
}
|
|
@@ -16540,6 +16465,7 @@ export const ChangeChannelPrivateRequest = {
|
|
|
16540
16465
|
|
|
16541
16466
|
fromJSON(object: any): ChangeChannelPrivateRequest {
|
|
16542
16467
|
return {
|
|
16468
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
16543
16469
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
16544
16470
|
channel_private: isSet(object.channel_private) ? globalThis.Number(object.channel_private) : 0,
|
|
16545
16471
|
user_ids: globalThis.Array.isArray(object?.user_ids) ? object.user_ids.map((e: any) => globalThis.String(e)) : [],
|
|
@@ -16549,6 +16475,9 @@ export const ChangeChannelPrivateRequest = {
|
|
|
16549
16475
|
|
|
16550
16476
|
toJSON(message: ChangeChannelPrivateRequest): unknown {
|
|
16551
16477
|
const obj: any = {};
|
|
16478
|
+
if (message.clan_id !== "") {
|
|
16479
|
+
obj.clan_id = message.clan_id;
|
|
16480
|
+
}
|
|
16552
16481
|
if (message.channel_id !== "") {
|
|
16553
16482
|
obj.channel_id = message.channel_id;
|
|
16554
16483
|
}
|
|
@@ -16569,6 +16498,7 @@ export const ChangeChannelPrivateRequest = {
|
|
|
16569
16498
|
},
|
|
16570
16499
|
fromPartial<I extends Exact<DeepPartial<ChangeChannelPrivateRequest>, I>>(object: I): ChangeChannelPrivateRequest {
|
|
16571
16500
|
const message = createBaseChangeChannelPrivateRequest();
|
|
16501
|
+
message.clan_id = object.clan_id ?? "";
|
|
16572
16502
|
message.channel_id = object.channel_id ?? "";
|
|
16573
16503
|
message.channel_private = object.channel_private ?? 0;
|
|
16574
16504
|
message.user_ids = object.user_ids?.map((e) => e) || [];
|
|
@@ -16800,13 +16730,16 @@ export const RemoveClanUsersRequest = {
|
|
|
16800
16730
|
};
|
|
16801
16731
|
|
|
16802
16732
|
function createBaseLeaveThreadRequest(): LeaveThreadRequest {
|
|
16803
|
-
return { channel_id: "" };
|
|
16733
|
+
return { clan_id: "", channel_id: "" };
|
|
16804
16734
|
}
|
|
16805
16735
|
|
|
16806
16736
|
export const LeaveThreadRequest = {
|
|
16807
16737
|
encode(message: LeaveThreadRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
16738
|
+
if (message.clan_id !== "") {
|
|
16739
|
+
writer.uint32(10).string(message.clan_id);
|
|
16740
|
+
}
|
|
16808
16741
|
if (message.channel_id !== "") {
|
|
16809
|
-
writer.uint32(
|
|
16742
|
+
writer.uint32(18).string(message.channel_id);
|
|
16810
16743
|
}
|
|
16811
16744
|
return writer;
|
|
16812
16745
|
},
|
|
@@ -16823,6 +16756,13 @@ export const LeaveThreadRequest = {
|
|
|
16823
16756
|
break;
|
|
16824
16757
|
}
|
|
16825
16758
|
|
|
16759
|
+
message.clan_id = reader.string();
|
|
16760
|
+
continue;
|
|
16761
|
+
case 2:
|
|
16762
|
+
if (tag !== 18) {
|
|
16763
|
+
break;
|
|
16764
|
+
}
|
|
16765
|
+
|
|
16826
16766
|
message.channel_id = reader.string();
|
|
16827
16767
|
continue;
|
|
16828
16768
|
}
|
|
@@ -16835,11 +16775,17 @@ export const LeaveThreadRequest = {
|
|
|
16835
16775
|
},
|
|
16836
16776
|
|
|
16837
16777
|
fromJSON(object: any): LeaveThreadRequest {
|
|
16838
|
-
return {
|
|
16778
|
+
return {
|
|
16779
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
16780
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
16781
|
+
};
|
|
16839
16782
|
},
|
|
16840
16783
|
|
|
16841
16784
|
toJSON(message: LeaveThreadRequest): unknown {
|
|
16842
16785
|
const obj: any = {};
|
|
16786
|
+
if (message.clan_id !== "") {
|
|
16787
|
+
obj.clan_id = message.clan_id;
|
|
16788
|
+
}
|
|
16843
16789
|
if (message.channel_id !== "") {
|
|
16844
16790
|
obj.channel_id = message.channel_id;
|
|
16845
16791
|
}
|
|
@@ -16851,6 +16797,7 @@ export const LeaveThreadRequest = {
|
|
|
16851
16797
|
},
|
|
16852
16798
|
fromPartial<I extends Exact<DeepPartial<LeaveThreadRequest>, I>>(object: I): LeaveThreadRequest {
|
|
16853
16799
|
const message = createBaseLeaveThreadRequest();
|
|
16800
|
+
message.clan_id = object.clan_id ?? "";
|
|
16854
16801
|
message.channel_id = object.channel_id ?? "";
|
|
16855
16802
|
return message;
|
|
16856
16803
|
},
|
|
@@ -22778,7 +22725,16 @@ export const SearchMessageResponse = {
|
|
|
22778
22725
|
};
|
|
22779
22726
|
|
|
22780
22727
|
function createBaseRegistrationEmailRequest(): RegistrationEmailRequest {
|
|
22781
|
-
return {
|
|
22728
|
+
return {
|
|
22729
|
+
email: "",
|
|
22730
|
+
password: "",
|
|
22731
|
+
old_password: "",
|
|
22732
|
+
username: "",
|
|
22733
|
+
display_name: "",
|
|
22734
|
+
avatar_url: "",
|
|
22735
|
+
dob: "",
|
|
22736
|
+
vars: {},
|
|
22737
|
+
};
|
|
22782
22738
|
}
|
|
22783
22739
|
|
|
22784
22740
|
export const RegistrationEmailRequest = {
|
|
@@ -22789,20 +22745,23 @@ export const RegistrationEmailRequest = {
|
|
|
22789
22745
|
if (message.password !== "") {
|
|
22790
22746
|
writer.uint32(18).string(message.password);
|
|
22791
22747
|
}
|
|
22748
|
+
if (message.old_password !== "") {
|
|
22749
|
+
writer.uint32(26).string(message.old_password);
|
|
22750
|
+
}
|
|
22792
22751
|
if (message.username !== "") {
|
|
22793
|
-
writer.uint32(
|
|
22752
|
+
writer.uint32(34).string(message.username);
|
|
22794
22753
|
}
|
|
22795
22754
|
if (message.display_name !== "") {
|
|
22796
|
-
writer.uint32(
|
|
22755
|
+
writer.uint32(42).string(message.display_name);
|
|
22797
22756
|
}
|
|
22798
22757
|
if (message.avatar_url !== "") {
|
|
22799
|
-
writer.uint32(
|
|
22758
|
+
writer.uint32(50).string(message.avatar_url);
|
|
22800
22759
|
}
|
|
22801
22760
|
if (message.dob !== "") {
|
|
22802
|
-
writer.uint32(
|
|
22761
|
+
writer.uint32(58).string(message.dob);
|
|
22803
22762
|
}
|
|
22804
22763
|
Object.entries(message.vars).forEach(([key, value]) => {
|
|
22805
|
-
RegistrationEmailRequest_VarsEntry.encode({ key: key as any, value }, writer.uint32(
|
|
22764
|
+
RegistrationEmailRequest_VarsEntry.encode({ key: key as any, value }, writer.uint32(66).fork()).ldelim();
|
|
22806
22765
|
});
|
|
22807
22766
|
return writer;
|
|
22808
22767
|
},
|
|
@@ -22833,37 +22792,44 @@ export const RegistrationEmailRequest = {
|
|
|
22833
22792
|
break;
|
|
22834
22793
|
}
|
|
22835
22794
|
|
|
22836
|
-
message.
|
|
22795
|
+
message.old_password = reader.string();
|
|
22837
22796
|
continue;
|
|
22838
22797
|
case 4:
|
|
22839
22798
|
if (tag !== 34) {
|
|
22840
22799
|
break;
|
|
22841
22800
|
}
|
|
22842
22801
|
|
|
22843
|
-
message.
|
|
22802
|
+
message.username = reader.string();
|
|
22844
22803
|
continue;
|
|
22845
22804
|
case 5:
|
|
22846
22805
|
if (tag !== 42) {
|
|
22847
22806
|
break;
|
|
22848
22807
|
}
|
|
22849
22808
|
|
|
22850
|
-
message.
|
|
22809
|
+
message.display_name = reader.string();
|
|
22851
22810
|
continue;
|
|
22852
22811
|
case 6:
|
|
22853
22812
|
if (tag !== 50) {
|
|
22854
22813
|
break;
|
|
22855
22814
|
}
|
|
22856
22815
|
|
|
22857
|
-
message.
|
|
22816
|
+
message.avatar_url = reader.string();
|
|
22858
22817
|
continue;
|
|
22859
22818
|
case 7:
|
|
22860
22819
|
if (tag !== 58) {
|
|
22861
22820
|
break;
|
|
22862
22821
|
}
|
|
22863
22822
|
|
|
22864
|
-
|
|
22865
|
-
|
|
22866
|
-
|
|
22823
|
+
message.dob = reader.string();
|
|
22824
|
+
continue;
|
|
22825
|
+
case 8:
|
|
22826
|
+
if (tag !== 66) {
|
|
22827
|
+
break;
|
|
22828
|
+
}
|
|
22829
|
+
|
|
22830
|
+
const entry8 = RegistrationEmailRequest_VarsEntry.decode(reader, reader.uint32());
|
|
22831
|
+
if (entry8.value !== undefined) {
|
|
22832
|
+
message.vars[entry8.key] = entry8.value;
|
|
22867
22833
|
}
|
|
22868
22834
|
continue;
|
|
22869
22835
|
}
|
|
@@ -22879,6 +22845,7 @@ export const RegistrationEmailRequest = {
|
|
|
22879
22845
|
return {
|
|
22880
22846
|
email: isSet(object.email) ? globalThis.String(object.email) : "",
|
|
22881
22847
|
password: isSet(object.password) ? globalThis.String(object.password) : "",
|
|
22848
|
+
old_password: isSet(object.old_password) ? globalThis.String(object.old_password) : "",
|
|
22882
22849
|
username: isSet(object.username) ? globalThis.String(object.username) : "",
|
|
22883
22850
|
display_name: isSet(object.display_name) ? globalThis.String(object.display_name) : "",
|
|
22884
22851
|
avatar_url: isSet(object.avatar_url) ? globalThis.String(object.avatar_url) : "",
|
|
@@ -22900,6 +22867,9 @@ export const RegistrationEmailRequest = {
|
|
|
22900
22867
|
if (message.password !== "") {
|
|
22901
22868
|
obj.password = message.password;
|
|
22902
22869
|
}
|
|
22870
|
+
if (message.old_password !== "") {
|
|
22871
|
+
obj.old_password = message.old_password;
|
|
22872
|
+
}
|
|
22903
22873
|
if (message.username !== "") {
|
|
22904
22874
|
obj.username = message.username;
|
|
22905
22875
|
}
|
|
@@ -22931,6 +22901,7 @@ export const RegistrationEmailRequest = {
|
|
|
22931
22901
|
const message = createBaseRegistrationEmailRequest();
|
|
22932
22902
|
message.email = object.email ?? "";
|
|
22933
22903
|
message.password = object.password ?? "";
|
|
22904
|
+
message.old_password = object.old_password ?? "";
|
|
22934
22905
|
message.username = object.username ?? "";
|
|
22935
22906
|
message.display_name = object.display_name ?? "";
|
|
22936
22907
|
message.avatar_url = object.avatar_url ?? "";
|
|
@@ -30531,13 +30502,16 @@ export const AddFavoriteChannelRequest = {
|
|
|
30531
30502
|
};
|
|
30532
30503
|
|
|
30533
30504
|
function createBaseRemoveFavoriteChannelRequest(): RemoveFavoriteChannelRequest {
|
|
30534
|
-
return { channel_id: "" };
|
|
30505
|
+
return { clan_id: "", channel_id: "" };
|
|
30535
30506
|
}
|
|
30536
30507
|
|
|
30537
30508
|
export const RemoveFavoriteChannelRequest = {
|
|
30538
30509
|
encode(message: RemoveFavoriteChannelRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
30510
|
+
if (message.clan_id !== "") {
|
|
30511
|
+
writer.uint32(10).string(message.clan_id);
|
|
30512
|
+
}
|
|
30539
30513
|
if (message.channel_id !== "") {
|
|
30540
|
-
writer.uint32(
|
|
30514
|
+
writer.uint32(18).string(message.channel_id);
|
|
30541
30515
|
}
|
|
30542
30516
|
return writer;
|
|
30543
30517
|
},
|
|
@@ -30554,6 +30528,13 @@ export const RemoveFavoriteChannelRequest = {
|
|
|
30554
30528
|
break;
|
|
30555
30529
|
}
|
|
30556
30530
|
|
|
30531
|
+
message.clan_id = reader.string();
|
|
30532
|
+
continue;
|
|
30533
|
+
case 2:
|
|
30534
|
+
if (tag !== 18) {
|
|
30535
|
+
break;
|
|
30536
|
+
}
|
|
30537
|
+
|
|
30557
30538
|
message.channel_id = reader.string();
|
|
30558
30539
|
continue;
|
|
30559
30540
|
}
|
|
@@ -30566,11 +30547,17 @@ export const RemoveFavoriteChannelRequest = {
|
|
|
30566
30547
|
},
|
|
30567
30548
|
|
|
30568
30549
|
fromJSON(object: any): RemoveFavoriteChannelRequest {
|
|
30569
|
-
return {
|
|
30550
|
+
return {
|
|
30551
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
30552
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
30553
|
+
};
|
|
30570
30554
|
},
|
|
30571
30555
|
|
|
30572
30556
|
toJSON(message: RemoveFavoriteChannelRequest): unknown {
|
|
30573
30557
|
const obj: any = {};
|
|
30558
|
+
if (message.clan_id !== "") {
|
|
30559
|
+
obj.clan_id = message.clan_id;
|
|
30560
|
+
}
|
|
30574
30561
|
if (message.channel_id !== "") {
|
|
30575
30562
|
obj.channel_id = message.channel_id;
|
|
30576
30563
|
}
|
|
@@ -30582,6 +30569,7 @@ export const RemoveFavoriteChannelRequest = {
|
|
|
30582
30569
|
},
|
|
30583
30570
|
fromPartial<I extends Exact<DeepPartial<RemoveFavoriteChannelRequest>, I>>(object: I): RemoveFavoriteChannelRequest {
|
|
30584
30571
|
const message = createBaseRemoveFavoriteChannelRequest();
|
|
30572
|
+
message.clan_id = object.clan_id ?? "";
|
|
30585
30573
|
message.channel_id = object.channel_id ?? "";
|
|
30586
30574
|
return message;
|
|
30587
30575
|
},
|
|
@@ -37854,7 +37842,7 @@ export const Message2InboxRequest = {
|
|
|
37854
37842
|
};
|
|
37855
37843
|
|
|
37856
37844
|
function createBaseAccountEmail(): AccountEmail {
|
|
37857
|
-
return { email: "", password: "", vars: {} };
|
|
37845
|
+
return { email: "", password: "", prev_email: "", vars: {} };
|
|
37858
37846
|
}
|
|
37859
37847
|
|
|
37860
37848
|
export const AccountEmail = {
|
|
@@ -37865,8 +37853,11 @@ export const AccountEmail = {
|
|
|
37865
37853
|
if (message.password !== "") {
|
|
37866
37854
|
writer.uint32(18).string(message.password);
|
|
37867
37855
|
}
|
|
37856
|
+
if (message.prev_email !== "") {
|
|
37857
|
+
writer.uint32(26).string(message.prev_email);
|
|
37858
|
+
}
|
|
37868
37859
|
Object.entries(message.vars).forEach(([key, value]) => {
|
|
37869
|
-
AccountEmail_VarsEntry.encode({ key: key as any, value }, writer.uint32(
|
|
37860
|
+
AccountEmail_VarsEntry.encode({ key: key as any, value }, writer.uint32(34).fork()).ldelim();
|
|
37870
37861
|
});
|
|
37871
37862
|
return writer;
|
|
37872
37863
|
},
|
|
@@ -37897,9 +37888,16 @@ export const AccountEmail = {
|
|
|
37897
37888
|
break;
|
|
37898
37889
|
}
|
|
37899
37890
|
|
|
37900
|
-
|
|
37901
|
-
|
|
37902
|
-
|
|
37891
|
+
message.prev_email = reader.string();
|
|
37892
|
+
continue;
|
|
37893
|
+
case 4:
|
|
37894
|
+
if (tag !== 34) {
|
|
37895
|
+
break;
|
|
37896
|
+
}
|
|
37897
|
+
|
|
37898
|
+
const entry4 = AccountEmail_VarsEntry.decode(reader, reader.uint32());
|
|
37899
|
+
if (entry4.value !== undefined) {
|
|
37900
|
+
message.vars[entry4.key] = entry4.value;
|
|
37903
37901
|
}
|
|
37904
37902
|
continue;
|
|
37905
37903
|
}
|
|
@@ -37915,6 +37913,7 @@ export const AccountEmail = {
|
|
|
37915
37913
|
return {
|
|
37916
37914
|
email: isSet(object.email) ? globalThis.String(object.email) : "",
|
|
37917
37915
|
password: isSet(object.password) ? globalThis.String(object.password) : "",
|
|
37916
|
+
prev_email: isSet(object.prev_email) ? globalThis.String(object.prev_email) : "",
|
|
37918
37917
|
vars: isObject(object.vars)
|
|
37919
37918
|
? Object.entries(object.vars).reduce<{ [key: string]: string }>((acc, [key, value]) => {
|
|
37920
37919
|
acc[key] = String(value);
|
|
@@ -37932,6 +37931,9 @@ export const AccountEmail = {
|
|
|
37932
37931
|
if (message.password !== "") {
|
|
37933
37932
|
obj.password = message.password;
|
|
37934
37933
|
}
|
|
37934
|
+
if (message.prev_email !== "") {
|
|
37935
|
+
obj.prev_email = message.prev_email;
|
|
37936
|
+
}
|
|
37935
37937
|
if (message.vars) {
|
|
37936
37938
|
const entries = Object.entries(message.vars);
|
|
37937
37939
|
if (entries.length > 0) {
|
|
@@ -37951,6 +37953,7 @@ export const AccountEmail = {
|
|
|
37951
37953
|
const message = createBaseAccountEmail();
|
|
37952
37954
|
message.email = object.email ?? "";
|
|
37953
37955
|
message.password = object.password ?? "";
|
|
37956
|
+
message.prev_email = object.prev_email ?? "";
|
|
37954
37957
|
message.vars = Object.entries(object.vars ?? {}).reduce<{ [key: string]: string }>((acc, [key, value]) => {
|
|
37955
37958
|
if (value !== undefined) {
|
|
37956
37959
|
acc[key] = globalThis.String(value);
|
|
@@ -38036,13 +38039,13 @@ export const AccountEmail_VarsEntry = {
|
|
|
38036
38039
|
};
|
|
38037
38040
|
|
|
38038
38041
|
function createBaseAccountMezon(): AccountMezon {
|
|
38039
|
-
return {
|
|
38042
|
+
return { phone_number: "", vars: {} };
|
|
38040
38043
|
}
|
|
38041
38044
|
|
|
38042
38045
|
export const AccountMezon = {
|
|
38043
38046
|
encode(message: AccountMezon, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
38044
|
-
if (message.
|
|
38045
|
-
writer.uint32(10).string(message.
|
|
38047
|
+
if (message.phone_number !== "") {
|
|
38048
|
+
writer.uint32(10).string(message.phone_number);
|
|
38046
38049
|
}
|
|
38047
38050
|
Object.entries(message.vars).forEach(([key, value]) => {
|
|
38048
38051
|
AccountMezon_VarsEntry.encode({ key: key as any, value }, writer.uint32(18).fork()).ldelim();
|
|
@@ -38062,7 +38065,7 @@ export const AccountMezon = {
|
|
|
38062
38065
|
break;
|
|
38063
38066
|
}
|
|
38064
38067
|
|
|
38065
|
-
message.
|
|
38068
|
+
message.phone_number = reader.string();
|
|
38066
38069
|
continue;
|
|
38067
38070
|
case 2:
|
|
38068
38071
|
if (tag !== 18) {
|
|
@@ -38085,7 +38088,7 @@ export const AccountMezon = {
|
|
|
38085
38088
|
|
|
38086
38089
|
fromJSON(object: any): AccountMezon {
|
|
38087
38090
|
return {
|
|
38088
|
-
|
|
38091
|
+
phone_number: isSet(object.phone_number) ? globalThis.String(object.phone_number) : "",
|
|
38089
38092
|
vars: isObject(object.vars)
|
|
38090
38093
|
? Object.entries(object.vars).reduce<{ [key: string]: string }>((acc, [key, value]) => {
|
|
38091
38094
|
acc[key] = String(value);
|
|
@@ -38097,8 +38100,8 @@ export const AccountMezon = {
|
|
|
38097
38100
|
|
|
38098
38101
|
toJSON(message: AccountMezon): unknown {
|
|
38099
38102
|
const obj: any = {};
|
|
38100
|
-
if (message.
|
|
38101
|
-
obj.
|
|
38103
|
+
if (message.phone_number !== "") {
|
|
38104
|
+
obj.phone_number = message.phone_number;
|
|
38102
38105
|
}
|
|
38103
38106
|
if (message.vars) {
|
|
38104
38107
|
const entries = Object.entries(message.vars);
|
|
@@ -38117,7 +38120,7 @@ export const AccountMezon = {
|
|
|
38117
38120
|
},
|
|
38118
38121
|
fromPartial<I extends Exact<DeepPartial<AccountMezon>, I>>(object: I): AccountMezon {
|
|
38119
38122
|
const message = createBaseAccountMezon();
|
|
38120
|
-
message.
|
|
38123
|
+
message.phone_number = object.phone_number ?? "";
|
|
38121
38124
|
message.vars = Object.entries(object.vars ?? {}).reduce<{ [key: string]: string }>((acc, [key, value]) => {
|
|
38122
38125
|
if (value !== undefined) {
|
|
38123
38126
|
acc[key] = globalThis.String(value);
|
|
@@ -38202,6 +38205,95 @@ export const AccountMezon_VarsEntry = {
|
|
|
38202
38205
|
},
|
|
38203
38206
|
};
|
|
38204
38207
|
|
|
38208
|
+
function createBaseLinkAccountConfirmRequest(): LinkAccountConfirmRequest {
|
|
38209
|
+
return { req_id: "", status: 0, otp_code: "" };
|
|
38210
|
+
}
|
|
38211
|
+
|
|
38212
|
+
export const LinkAccountConfirmRequest = {
|
|
38213
|
+
encode(message: LinkAccountConfirmRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
38214
|
+
if (message.req_id !== "") {
|
|
38215
|
+
writer.uint32(10).string(message.req_id);
|
|
38216
|
+
}
|
|
38217
|
+
if (message.status !== 0) {
|
|
38218
|
+
writer.uint32(16).int32(message.status);
|
|
38219
|
+
}
|
|
38220
|
+
if (message.otp_code !== "") {
|
|
38221
|
+
writer.uint32(26).string(message.otp_code);
|
|
38222
|
+
}
|
|
38223
|
+
return writer;
|
|
38224
|
+
},
|
|
38225
|
+
|
|
38226
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): LinkAccountConfirmRequest {
|
|
38227
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
38228
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
38229
|
+
const message = createBaseLinkAccountConfirmRequest();
|
|
38230
|
+
while (reader.pos < end) {
|
|
38231
|
+
const tag = reader.uint32();
|
|
38232
|
+
switch (tag >>> 3) {
|
|
38233
|
+
case 1:
|
|
38234
|
+
if (tag !== 10) {
|
|
38235
|
+
break;
|
|
38236
|
+
}
|
|
38237
|
+
|
|
38238
|
+
message.req_id = reader.string();
|
|
38239
|
+
continue;
|
|
38240
|
+
case 2:
|
|
38241
|
+
if (tag !== 16) {
|
|
38242
|
+
break;
|
|
38243
|
+
}
|
|
38244
|
+
|
|
38245
|
+
message.status = reader.int32();
|
|
38246
|
+
continue;
|
|
38247
|
+
case 3:
|
|
38248
|
+
if (tag !== 26) {
|
|
38249
|
+
break;
|
|
38250
|
+
}
|
|
38251
|
+
|
|
38252
|
+
message.otp_code = reader.string();
|
|
38253
|
+
continue;
|
|
38254
|
+
}
|
|
38255
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
38256
|
+
break;
|
|
38257
|
+
}
|
|
38258
|
+
reader.skipType(tag & 7);
|
|
38259
|
+
}
|
|
38260
|
+
return message;
|
|
38261
|
+
},
|
|
38262
|
+
|
|
38263
|
+
fromJSON(object: any): LinkAccountConfirmRequest {
|
|
38264
|
+
return {
|
|
38265
|
+
req_id: isSet(object.req_id) ? globalThis.String(object.req_id) : "",
|
|
38266
|
+
status: isSet(object.status) ? globalThis.Number(object.status) : 0,
|
|
38267
|
+
otp_code: isSet(object.otp_code) ? globalThis.String(object.otp_code) : "",
|
|
38268
|
+
};
|
|
38269
|
+
},
|
|
38270
|
+
|
|
38271
|
+
toJSON(message: LinkAccountConfirmRequest): unknown {
|
|
38272
|
+
const obj: any = {};
|
|
38273
|
+
if (message.req_id !== "") {
|
|
38274
|
+
obj.req_id = message.req_id;
|
|
38275
|
+
}
|
|
38276
|
+
if (message.status !== 0) {
|
|
38277
|
+
obj.status = Math.round(message.status);
|
|
38278
|
+
}
|
|
38279
|
+
if (message.otp_code !== "") {
|
|
38280
|
+
obj.otp_code = message.otp_code;
|
|
38281
|
+
}
|
|
38282
|
+
return obj;
|
|
38283
|
+
},
|
|
38284
|
+
|
|
38285
|
+
create<I extends Exact<DeepPartial<LinkAccountConfirmRequest>, I>>(base?: I): LinkAccountConfirmRequest {
|
|
38286
|
+
return LinkAccountConfirmRequest.fromPartial(base ?? ({} as any));
|
|
38287
|
+
},
|
|
38288
|
+
fromPartial<I extends Exact<DeepPartial<LinkAccountConfirmRequest>, I>>(object: I): LinkAccountConfirmRequest {
|
|
38289
|
+
const message = createBaseLinkAccountConfirmRequest();
|
|
38290
|
+
message.req_id = object.req_id ?? "";
|
|
38291
|
+
message.status = object.status ?? 0;
|
|
38292
|
+
message.otp_code = object.otp_code ?? "";
|
|
38293
|
+
return message;
|
|
38294
|
+
},
|
|
38295
|
+
};
|
|
38296
|
+
|
|
38205
38297
|
function createBaseQuickMenuAccess(): QuickMenuAccess {
|
|
38206
38298
|
return {
|
|
38207
38299
|
id: "",
|