mezon-js-protobuf 1.7.23 → 1.7.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/api/api.ts
CHANGED
|
@@ -466,10 +466,21 @@ export interface AuthenticateGameCenterRequest {
|
|
|
466
466
|
username: string;
|
|
467
467
|
}
|
|
468
468
|
|
|
469
|
-
/**
|
|
470
|
-
export interface
|
|
471
|
-
/** The
|
|
472
|
-
|
|
469
|
+
/** MezonAuthenticatedRequest */
|
|
470
|
+
export interface MezonAuthenticatedRequest {
|
|
471
|
+
/** The email */
|
|
472
|
+
email: string;
|
|
473
|
+
secret: string;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
/** MezonAuthenticatedResponse */
|
|
477
|
+
export interface MezonAuthenticatedResponse {
|
|
478
|
+
/** The status */
|
|
479
|
+
authenticated: boolean;
|
|
480
|
+
userId: string;
|
|
481
|
+
username: string;
|
|
482
|
+
display_name: string;
|
|
483
|
+
avatar: string;
|
|
473
484
|
}
|
|
474
485
|
|
|
475
486
|
/** Authenticate against the server with Google. */
|
|
@@ -1285,7 +1296,7 @@ export interface ListNotificationsRequest {
|
|
|
1285
1296
|
clan_id: string;
|
|
1286
1297
|
/** The current notification Id. */
|
|
1287
1298
|
notification_id: string;
|
|
1288
|
-
/** The category (
|
|
1299
|
+
/** The category (1: mentions, 2: mesages, 3: for you). */
|
|
1289
1300
|
category: number;
|
|
1290
1301
|
/** True if listing should be older notifications to newer, false if reverse. */
|
|
1291
1302
|
direction: number | undefined;
|
|
@@ -1642,6 +1653,8 @@ export interface ClanDesc {
|
|
|
1642
1653
|
is_onboarding: boolean;
|
|
1643
1654
|
/** Welcome channel id. */
|
|
1644
1655
|
welcome_channel_id: string;
|
|
1656
|
+
/** Onboarding_banner. */
|
|
1657
|
+
onboarding_banner: string;
|
|
1645
1658
|
}
|
|
1646
1659
|
|
|
1647
1660
|
/** Clan information */
|
|
@@ -1671,6 +1684,8 @@ export interface UpdateClanDescRequest {
|
|
|
1671
1684
|
| undefined;
|
|
1672
1685
|
/** Welcome channel id. */
|
|
1673
1686
|
welcome_channel_id: string;
|
|
1687
|
+
/** Onboarding_banner. */
|
|
1688
|
+
onboarding_banner: string;
|
|
1674
1689
|
}
|
|
1675
1690
|
|
|
1676
1691
|
/** Delete a clan the user has access to. */
|
|
@@ -3977,6 +3992,7 @@ export interface MezonOauthClientList {
|
|
|
3977
3992
|
|
|
3978
3993
|
export interface GetMezonOauthClientRequest {
|
|
3979
3994
|
client_id: string;
|
|
3995
|
+
client_name: string;
|
|
3980
3996
|
}
|
|
3981
3997
|
|
|
3982
3998
|
export interface SearchThreadRequest {
|
|
@@ -6970,22 +6986,25 @@ export const AuthenticateGameCenterRequest = {
|
|
|
6970
6986
|
},
|
|
6971
6987
|
};
|
|
6972
6988
|
|
|
6973
|
-
function
|
|
6974
|
-
return {
|
|
6989
|
+
function createBaseMezonAuthenticatedRequest(): MezonAuthenticatedRequest {
|
|
6990
|
+
return { email: "", secret: "" };
|
|
6975
6991
|
}
|
|
6976
6992
|
|
|
6977
|
-
export const
|
|
6978
|
-
encode(message:
|
|
6979
|
-
if (message.
|
|
6980
|
-
writer.uint32(10).string(message.
|
|
6993
|
+
export const MezonAuthenticatedRequest = {
|
|
6994
|
+
encode(message: MezonAuthenticatedRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
6995
|
+
if (message.email !== "") {
|
|
6996
|
+
writer.uint32(10).string(message.email);
|
|
6997
|
+
}
|
|
6998
|
+
if (message.secret !== "") {
|
|
6999
|
+
writer.uint32(18).string(message.secret);
|
|
6981
7000
|
}
|
|
6982
7001
|
return writer;
|
|
6983
7002
|
},
|
|
6984
7003
|
|
|
6985
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
7004
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MezonAuthenticatedRequest {
|
|
6986
7005
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
6987
7006
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
6988
|
-
const message =
|
|
7007
|
+
const message = createBaseMezonAuthenticatedRequest();
|
|
6989
7008
|
while (reader.pos < end) {
|
|
6990
7009
|
const tag = reader.uint32();
|
|
6991
7010
|
switch (tag >>> 3) {
|
|
@@ -6994,7 +7013,14 @@ export const AuthenticateGoogleRedirectRequest = {
|
|
|
6994
7013
|
break;
|
|
6995
7014
|
}
|
|
6996
7015
|
|
|
6997
|
-
message.
|
|
7016
|
+
message.email = reader.string();
|
|
7017
|
+
continue;
|
|
7018
|
+
case 2:
|
|
7019
|
+
if (tag !== 18) {
|
|
7020
|
+
break;
|
|
7021
|
+
}
|
|
7022
|
+
|
|
7023
|
+
message.secret = reader.string();
|
|
6998
7024
|
continue;
|
|
6999
7025
|
}
|
|
7000
7026
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -7005,28 +7031,150 @@ export const AuthenticateGoogleRedirectRequest = {
|
|
|
7005
7031
|
return message;
|
|
7006
7032
|
},
|
|
7007
7033
|
|
|
7008
|
-
fromJSON(object: any):
|
|
7009
|
-
return {
|
|
7034
|
+
fromJSON(object: any): MezonAuthenticatedRequest {
|
|
7035
|
+
return {
|
|
7036
|
+
email: isSet(object.email) ? globalThis.String(object.email) : "",
|
|
7037
|
+
secret: isSet(object.secret) ? globalThis.String(object.secret) : "",
|
|
7038
|
+
};
|
|
7010
7039
|
},
|
|
7011
7040
|
|
|
7012
|
-
toJSON(message:
|
|
7041
|
+
toJSON(message: MezonAuthenticatedRequest): unknown {
|
|
7013
7042
|
const obj: any = {};
|
|
7014
|
-
if (message.
|
|
7015
|
-
obj.
|
|
7043
|
+
if (message.email !== "") {
|
|
7044
|
+
obj.email = message.email;
|
|
7045
|
+
}
|
|
7046
|
+
if (message.secret !== "") {
|
|
7047
|
+
obj.secret = message.secret;
|
|
7016
7048
|
}
|
|
7017
7049
|
return obj;
|
|
7018
7050
|
},
|
|
7019
7051
|
|
|
7020
|
-
create<I extends Exact<DeepPartial<
|
|
7021
|
-
base
|
|
7022
|
-
): AuthenticateGoogleRedirectRequest {
|
|
7023
|
-
return AuthenticateGoogleRedirectRequest.fromPartial(base ?? ({} as any));
|
|
7052
|
+
create<I extends Exact<DeepPartial<MezonAuthenticatedRequest>, I>>(base?: I): MezonAuthenticatedRequest {
|
|
7053
|
+
return MezonAuthenticatedRequest.fromPartial(base ?? ({} as any));
|
|
7024
7054
|
},
|
|
7025
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
7026
|
-
|
|
7027
|
-
|
|
7028
|
-
|
|
7029
|
-
message
|
|
7055
|
+
fromPartial<I extends Exact<DeepPartial<MezonAuthenticatedRequest>, I>>(object: I): MezonAuthenticatedRequest {
|
|
7056
|
+
const message = createBaseMezonAuthenticatedRequest();
|
|
7057
|
+
message.email = object.email ?? "";
|
|
7058
|
+
message.secret = object.secret ?? "";
|
|
7059
|
+
return message;
|
|
7060
|
+
},
|
|
7061
|
+
};
|
|
7062
|
+
|
|
7063
|
+
function createBaseMezonAuthenticatedResponse(): MezonAuthenticatedResponse {
|
|
7064
|
+
return { authenticated: false, userId: "", username: "", display_name: "", avatar: "" };
|
|
7065
|
+
}
|
|
7066
|
+
|
|
7067
|
+
export const MezonAuthenticatedResponse = {
|
|
7068
|
+
encode(message: MezonAuthenticatedResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
7069
|
+
if (message.authenticated !== false) {
|
|
7070
|
+
writer.uint32(8).bool(message.authenticated);
|
|
7071
|
+
}
|
|
7072
|
+
if (message.userId !== "") {
|
|
7073
|
+
writer.uint32(18).string(message.userId);
|
|
7074
|
+
}
|
|
7075
|
+
if (message.username !== "") {
|
|
7076
|
+
writer.uint32(26).string(message.username);
|
|
7077
|
+
}
|
|
7078
|
+
if (message.display_name !== "") {
|
|
7079
|
+
writer.uint32(34).string(message.display_name);
|
|
7080
|
+
}
|
|
7081
|
+
if (message.avatar !== "") {
|
|
7082
|
+
writer.uint32(42).string(message.avatar);
|
|
7083
|
+
}
|
|
7084
|
+
return writer;
|
|
7085
|
+
},
|
|
7086
|
+
|
|
7087
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MezonAuthenticatedResponse {
|
|
7088
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
7089
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
7090
|
+
const message = createBaseMezonAuthenticatedResponse();
|
|
7091
|
+
while (reader.pos < end) {
|
|
7092
|
+
const tag = reader.uint32();
|
|
7093
|
+
switch (tag >>> 3) {
|
|
7094
|
+
case 1:
|
|
7095
|
+
if (tag !== 8) {
|
|
7096
|
+
break;
|
|
7097
|
+
}
|
|
7098
|
+
|
|
7099
|
+
message.authenticated = reader.bool();
|
|
7100
|
+
continue;
|
|
7101
|
+
case 2:
|
|
7102
|
+
if (tag !== 18) {
|
|
7103
|
+
break;
|
|
7104
|
+
}
|
|
7105
|
+
|
|
7106
|
+
message.userId = reader.string();
|
|
7107
|
+
continue;
|
|
7108
|
+
case 3:
|
|
7109
|
+
if (tag !== 26) {
|
|
7110
|
+
break;
|
|
7111
|
+
}
|
|
7112
|
+
|
|
7113
|
+
message.username = reader.string();
|
|
7114
|
+
continue;
|
|
7115
|
+
case 4:
|
|
7116
|
+
if (tag !== 34) {
|
|
7117
|
+
break;
|
|
7118
|
+
}
|
|
7119
|
+
|
|
7120
|
+
message.display_name = reader.string();
|
|
7121
|
+
continue;
|
|
7122
|
+
case 5:
|
|
7123
|
+
if (tag !== 42) {
|
|
7124
|
+
break;
|
|
7125
|
+
}
|
|
7126
|
+
|
|
7127
|
+
message.avatar = reader.string();
|
|
7128
|
+
continue;
|
|
7129
|
+
}
|
|
7130
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
7131
|
+
break;
|
|
7132
|
+
}
|
|
7133
|
+
reader.skipType(tag & 7);
|
|
7134
|
+
}
|
|
7135
|
+
return message;
|
|
7136
|
+
},
|
|
7137
|
+
|
|
7138
|
+
fromJSON(object: any): MezonAuthenticatedResponse {
|
|
7139
|
+
return {
|
|
7140
|
+
authenticated: isSet(object.authenticated) ? globalThis.Boolean(object.authenticated) : false,
|
|
7141
|
+
userId: isSet(object.userId) ? globalThis.String(object.userId) : "",
|
|
7142
|
+
username: isSet(object.username) ? globalThis.String(object.username) : "",
|
|
7143
|
+
display_name: isSet(object.display_name) ? globalThis.String(object.display_name) : "",
|
|
7144
|
+
avatar: isSet(object.avatar) ? globalThis.String(object.avatar) : "",
|
|
7145
|
+
};
|
|
7146
|
+
},
|
|
7147
|
+
|
|
7148
|
+
toJSON(message: MezonAuthenticatedResponse): unknown {
|
|
7149
|
+
const obj: any = {};
|
|
7150
|
+
if (message.authenticated !== false) {
|
|
7151
|
+
obj.authenticated = message.authenticated;
|
|
7152
|
+
}
|
|
7153
|
+
if (message.userId !== "") {
|
|
7154
|
+
obj.userId = message.userId;
|
|
7155
|
+
}
|
|
7156
|
+
if (message.username !== "") {
|
|
7157
|
+
obj.username = message.username;
|
|
7158
|
+
}
|
|
7159
|
+
if (message.display_name !== "") {
|
|
7160
|
+
obj.display_name = message.display_name;
|
|
7161
|
+
}
|
|
7162
|
+
if (message.avatar !== "") {
|
|
7163
|
+
obj.avatar = message.avatar;
|
|
7164
|
+
}
|
|
7165
|
+
return obj;
|
|
7166
|
+
},
|
|
7167
|
+
|
|
7168
|
+
create<I extends Exact<DeepPartial<MezonAuthenticatedResponse>, I>>(base?: I): MezonAuthenticatedResponse {
|
|
7169
|
+
return MezonAuthenticatedResponse.fromPartial(base ?? ({} as any));
|
|
7170
|
+
},
|
|
7171
|
+
fromPartial<I extends Exact<DeepPartial<MezonAuthenticatedResponse>, I>>(object: I): MezonAuthenticatedResponse {
|
|
7172
|
+
const message = createBaseMezonAuthenticatedResponse();
|
|
7173
|
+
message.authenticated = object.authenticated ?? false;
|
|
7174
|
+
message.userId = object.userId ?? "";
|
|
7175
|
+
message.username = object.username ?? "";
|
|
7176
|
+
message.display_name = object.display_name ?? "";
|
|
7177
|
+
message.avatar = object.avatar ?? "";
|
|
7030
7178
|
return message;
|
|
7031
7179
|
},
|
|
7032
7180
|
};
|
|
@@ -14927,6 +15075,7 @@ function createBaseClanDesc(): ClanDesc {
|
|
|
14927
15075
|
badge_count: 0,
|
|
14928
15076
|
is_onboarding: false,
|
|
14929
15077
|
welcome_channel_id: "",
|
|
15078
|
+
onboarding_banner: "",
|
|
14930
15079
|
};
|
|
14931
15080
|
}
|
|
14932
15081
|
|
|
@@ -14959,6 +15108,9 @@ export const ClanDesc = {
|
|
|
14959
15108
|
if (message.welcome_channel_id !== "") {
|
|
14960
15109
|
writer.uint32(74).string(message.welcome_channel_id);
|
|
14961
15110
|
}
|
|
15111
|
+
if (message.onboarding_banner !== "") {
|
|
15112
|
+
writer.uint32(82).string(message.onboarding_banner);
|
|
15113
|
+
}
|
|
14962
15114
|
return writer;
|
|
14963
15115
|
},
|
|
14964
15116
|
|
|
@@ -15032,6 +15184,13 @@ export const ClanDesc = {
|
|
|
15032
15184
|
|
|
15033
15185
|
message.welcome_channel_id = reader.string();
|
|
15034
15186
|
continue;
|
|
15187
|
+
case 10:
|
|
15188
|
+
if (tag !== 82) {
|
|
15189
|
+
break;
|
|
15190
|
+
}
|
|
15191
|
+
|
|
15192
|
+
message.onboarding_banner = reader.string();
|
|
15193
|
+
continue;
|
|
15035
15194
|
}
|
|
15036
15195
|
if ((tag & 7) === 4 || tag === 0) {
|
|
15037
15196
|
break;
|
|
@@ -15052,6 +15211,7 @@ export const ClanDesc = {
|
|
|
15052
15211
|
badge_count: isSet(object.badge_count) ? globalThis.Number(object.badge_count) : 0,
|
|
15053
15212
|
is_onboarding: isSet(object.is_onboarding) ? globalThis.Boolean(object.is_onboarding) : false,
|
|
15054
15213
|
welcome_channel_id: isSet(object.welcome_channel_id) ? globalThis.String(object.welcome_channel_id) : "",
|
|
15214
|
+
onboarding_banner: isSet(object.onboarding_banner) ? globalThis.String(object.onboarding_banner) : "",
|
|
15055
15215
|
};
|
|
15056
15216
|
},
|
|
15057
15217
|
|
|
@@ -15084,6 +15244,9 @@ export const ClanDesc = {
|
|
|
15084
15244
|
if (message.welcome_channel_id !== "") {
|
|
15085
15245
|
obj.welcome_channel_id = message.welcome_channel_id;
|
|
15086
15246
|
}
|
|
15247
|
+
if (message.onboarding_banner !== "") {
|
|
15248
|
+
obj.onboarding_banner = message.onboarding_banner;
|
|
15249
|
+
}
|
|
15087
15250
|
return obj;
|
|
15088
15251
|
},
|
|
15089
15252
|
|
|
@@ -15101,6 +15264,7 @@ export const ClanDesc = {
|
|
|
15101
15264
|
message.badge_count = object.badge_count ?? 0;
|
|
15102
15265
|
message.is_onboarding = object.is_onboarding ?? false;
|
|
15103
15266
|
message.welcome_channel_id = object.welcome_channel_id ?? "";
|
|
15267
|
+
message.onboarding_banner = object.onboarding_banner ?? "";
|
|
15104
15268
|
return message;
|
|
15105
15269
|
},
|
|
15106
15270
|
};
|
|
@@ -15203,6 +15367,7 @@ function createBaseUpdateClanDescRequest(): UpdateClanDescRequest {
|
|
|
15203
15367
|
status: 0,
|
|
15204
15368
|
is_onboarding: undefined,
|
|
15205
15369
|
welcome_channel_id: "",
|
|
15370
|
+
onboarding_banner: "",
|
|
15206
15371
|
};
|
|
15207
15372
|
}
|
|
15208
15373
|
|
|
@@ -15229,6 +15394,9 @@ export const UpdateClanDescRequest = {
|
|
|
15229
15394
|
if (message.welcome_channel_id !== "") {
|
|
15230
15395
|
writer.uint32(58).string(message.welcome_channel_id);
|
|
15231
15396
|
}
|
|
15397
|
+
if (message.onboarding_banner !== "") {
|
|
15398
|
+
writer.uint32(66).string(message.onboarding_banner);
|
|
15399
|
+
}
|
|
15232
15400
|
return writer;
|
|
15233
15401
|
},
|
|
15234
15402
|
|
|
@@ -15288,6 +15456,13 @@ export const UpdateClanDescRequest = {
|
|
|
15288
15456
|
|
|
15289
15457
|
message.welcome_channel_id = reader.string();
|
|
15290
15458
|
continue;
|
|
15459
|
+
case 8:
|
|
15460
|
+
if (tag !== 66) {
|
|
15461
|
+
break;
|
|
15462
|
+
}
|
|
15463
|
+
|
|
15464
|
+
message.onboarding_banner = reader.string();
|
|
15465
|
+
continue;
|
|
15291
15466
|
}
|
|
15292
15467
|
if ((tag & 7) === 4 || tag === 0) {
|
|
15293
15468
|
break;
|
|
@@ -15306,6 +15481,7 @@ export const UpdateClanDescRequest = {
|
|
|
15306
15481
|
status: isSet(object.status) ? globalThis.Number(object.status) : 0,
|
|
15307
15482
|
is_onboarding: isSet(object.is_onboarding) ? Boolean(object.is_onboarding) : undefined,
|
|
15308
15483
|
welcome_channel_id: isSet(object.welcome_channel_id) ? globalThis.String(object.welcome_channel_id) : "",
|
|
15484
|
+
onboarding_banner: isSet(object.onboarding_banner) ? globalThis.String(object.onboarding_banner) : "",
|
|
15309
15485
|
};
|
|
15310
15486
|
},
|
|
15311
15487
|
|
|
@@ -15332,6 +15508,9 @@ export const UpdateClanDescRequest = {
|
|
|
15332
15508
|
if (message.welcome_channel_id !== "") {
|
|
15333
15509
|
obj.welcome_channel_id = message.welcome_channel_id;
|
|
15334
15510
|
}
|
|
15511
|
+
if (message.onboarding_banner !== "") {
|
|
15512
|
+
obj.onboarding_banner = message.onboarding_banner;
|
|
15513
|
+
}
|
|
15335
15514
|
return obj;
|
|
15336
15515
|
},
|
|
15337
15516
|
|
|
@@ -15347,6 +15526,7 @@ export const UpdateClanDescRequest = {
|
|
|
15347
15526
|
message.status = object.status ?? 0;
|
|
15348
15527
|
message.is_onboarding = object.is_onboarding ?? undefined;
|
|
15349
15528
|
message.welcome_channel_id = object.welcome_channel_id ?? "";
|
|
15529
|
+
message.onboarding_banner = object.onboarding_banner ?? "";
|
|
15350
15530
|
return message;
|
|
15351
15531
|
},
|
|
15352
15532
|
};
|
|
@@ -39279,7 +39459,7 @@ export const MezonOauthClientList = {
|
|
|
39279
39459
|
};
|
|
39280
39460
|
|
|
39281
39461
|
function createBaseGetMezonOauthClientRequest(): GetMezonOauthClientRequest {
|
|
39282
|
-
return { client_id: "" };
|
|
39462
|
+
return { client_id: "", client_name: "" };
|
|
39283
39463
|
}
|
|
39284
39464
|
|
|
39285
39465
|
export const GetMezonOauthClientRequest = {
|
|
@@ -39287,6 +39467,9 @@ export const GetMezonOauthClientRequest = {
|
|
|
39287
39467
|
if (message.client_id !== "") {
|
|
39288
39468
|
writer.uint32(10).string(message.client_id);
|
|
39289
39469
|
}
|
|
39470
|
+
if (message.client_name !== "") {
|
|
39471
|
+
writer.uint32(18).string(message.client_name);
|
|
39472
|
+
}
|
|
39290
39473
|
return writer;
|
|
39291
39474
|
},
|
|
39292
39475
|
|
|
@@ -39304,6 +39487,13 @@ export const GetMezonOauthClientRequest = {
|
|
|
39304
39487
|
|
|
39305
39488
|
message.client_id = reader.string();
|
|
39306
39489
|
continue;
|
|
39490
|
+
case 2:
|
|
39491
|
+
if (tag !== 18) {
|
|
39492
|
+
break;
|
|
39493
|
+
}
|
|
39494
|
+
|
|
39495
|
+
message.client_name = reader.string();
|
|
39496
|
+
continue;
|
|
39307
39497
|
}
|
|
39308
39498
|
if ((tag & 7) === 4 || tag === 0) {
|
|
39309
39499
|
break;
|
|
@@ -39314,7 +39504,10 @@ export const GetMezonOauthClientRequest = {
|
|
|
39314
39504
|
},
|
|
39315
39505
|
|
|
39316
39506
|
fromJSON(object: any): GetMezonOauthClientRequest {
|
|
39317
|
-
return {
|
|
39507
|
+
return {
|
|
39508
|
+
client_id: isSet(object.client_id) ? globalThis.String(object.client_id) : "",
|
|
39509
|
+
client_name: isSet(object.client_name) ? globalThis.String(object.client_name) : "",
|
|
39510
|
+
};
|
|
39318
39511
|
},
|
|
39319
39512
|
|
|
39320
39513
|
toJSON(message: GetMezonOauthClientRequest): unknown {
|
|
@@ -39322,6 +39515,9 @@ export const GetMezonOauthClientRequest = {
|
|
|
39322
39515
|
if (message.client_id !== "") {
|
|
39323
39516
|
obj.client_id = message.client_id;
|
|
39324
39517
|
}
|
|
39518
|
+
if (message.client_name !== "") {
|
|
39519
|
+
obj.client_name = message.client_name;
|
|
39520
|
+
}
|
|
39325
39521
|
return obj;
|
|
39326
39522
|
},
|
|
39327
39523
|
|
|
@@ -39331,6 +39527,7 @@ export const GetMezonOauthClientRequest = {
|
|
|
39331
39527
|
fromPartial<I extends Exact<DeepPartial<GetMezonOauthClientRequest>, I>>(object: I): GetMezonOauthClientRequest {
|
|
39332
39528
|
const message = createBaseGetMezonOauthClientRequest();
|
|
39333
39529
|
message.client_id = object.client_id ?? "";
|
|
39530
|
+
message.client_name = object.client_name ?? "";
|
|
39334
39531
|
return message;
|
|
39335
39532
|
},
|
|
39336
39533
|
};
|
|
@@ -304,10 +304,20 @@ export interface AuthenticateGameCenterRequest {
|
|
|
304
304
|
/** Set the username on the account at register. Must be unique. */
|
|
305
305
|
username: string;
|
|
306
306
|
}
|
|
307
|
-
/**
|
|
308
|
-
export interface
|
|
309
|
-
/** The
|
|
310
|
-
|
|
307
|
+
/** MezonAuthenticatedRequest */
|
|
308
|
+
export interface MezonAuthenticatedRequest {
|
|
309
|
+
/** The email */
|
|
310
|
+
email: string;
|
|
311
|
+
secret: string;
|
|
312
|
+
}
|
|
313
|
+
/** MezonAuthenticatedResponse */
|
|
314
|
+
export interface MezonAuthenticatedResponse {
|
|
315
|
+
/** The status */
|
|
316
|
+
authenticated: boolean;
|
|
317
|
+
userId: string;
|
|
318
|
+
username: string;
|
|
319
|
+
display_name: string;
|
|
320
|
+
avatar: string;
|
|
311
321
|
}
|
|
312
322
|
/** Authenticate against the server with Google. */
|
|
313
323
|
export interface AuthenticateGoogleRequest {
|
|
@@ -932,7 +942,7 @@ export interface ListNotificationsRequest {
|
|
|
932
942
|
clan_id: string;
|
|
933
943
|
/** The current notification Id. */
|
|
934
944
|
notification_id: string;
|
|
935
|
-
/** The category (
|
|
945
|
+
/** The category (1: mentions, 2: mesages, 3: for you). */
|
|
936
946
|
category: number;
|
|
937
947
|
/** True if listing should be older notifications to newer, false if reverse. */
|
|
938
948
|
direction: number | undefined;
|
|
@@ -1197,6 +1207,8 @@ export interface ClanDesc {
|
|
|
1197
1207
|
is_onboarding: boolean;
|
|
1198
1208
|
/** Welcome channel id. */
|
|
1199
1209
|
welcome_channel_id: string;
|
|
1210
|
+
/** Onboarding_banner. */
|
|
1211
|
+
onboarding_banner: string;
|
|
1200
1212
|
}
|
|
1201
1213
|
/** Clan information */
|
|
1202
1214
|
export interface CreateClanDescRequest {
|
|
@@ -1222,6 +1234,8 @@ export interface UpdateClanDescRequest {
|
|
|
1222
1234
|
is_onboarding: boolean | undefined;
|
|
1223
1235
|
/** Welcome channel id. */
|
|
1224
1236
|
welcome_channel_id: string;
|
|
1237
|
+
/** Onboarding_banner. */
|
|
1238
|
+
onboarding_banner: string;
|
|
1225
1239
|
}
|
|
1226
1240
|
/** Delete a clan the user has access to. */
|
|
1227
1241
|
export interface DeleteClanDescRequest {
|
|
@@ -3214,6 +3228,7 @@ export interface MezonOauthClientList {
|
|
|
3214
3228
|
}
|
|
3215
3229
|
export interface GetMezonOauthClientRequest {
|
|
3216
3230
|
client_id: string;
|
|
3231
|
+
client_name: string;
|
|
3217
3232
|
}
|
|
3218
3233
|
export interface SearchThreadRequest {
|
|
3219
3234
|
clan_id: string;
|
|
@@ -4521,21 +4536,57 @@ export declare const AuthenticateGameCenterRequest: {
|
|
|
4521
4536
|
username?: string | undefined;
|
|
4522
4537
|
} & { [K_5 in Exclude<keyof I_1, keyof AuthenticateGameCenterRequest>]: never; }>(object: I_1): AuthenticateGameCenterRequest;
|
|
4523
4538
|
};
|
|
4524
|
-
export declare const
|
|
4525
|
-
encode(message:
|
|
4526
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
4527
|
-
fromJSON(object: any):
|
|
4528
|
-
toJSON(message:
|
|
4539
|
+
export declare const MezonAuthenticatedRequest: {
|
|
4540
|
+
encode(message: MezonAuthenticatedRequest, writer?: _m0.Writer): _m0.Writer;
|
|
4541
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MezonAuthenticatedRequest;
|
|
4542
|
+
fromJSON(object: any): MezonAuthenticatedRequest;
|
|
4543
|
+
toJSON(message: MezonAuthenticatedRequest): unknown;
|
|
4529
4544
|
create<I extends {
|
|
4530
|
-
|
|
4545
|
+
email?: string | undefined;
|
|
4546
|
+
secret?: string | undefined;
|
|
4531
4547
|
} & {
|
|
4532
|
-
|
|
4533
|
-
|
|
4548
|
+
email?: string | undefined;
|
|
4549
|
+
secret?: string | undefined;
|
|
4550
|
+
} & { [K in Exclude<keyof I, keyof MezonAuthenticatedRequest>]: never; }>(base?: I | undefined): MezonAuthenticatedRequest;
|
|
4534
4551
|
fromPartial<I_1 extends {
|
|
4535
|
-
|
|
4552
|
+
email?: string | undefined;
|
|
4553
|
+
secret?: string | undefined;
|
|
4536
4554
|
} & {
|
|
4537
|
-
|
|
4538
|
-
|
|
4555
|
+
email?: string | undefined;
|
|
4556
|
+
secret?: string | undefined;
|
|
4557
|
+
} & { [K_1 in Exclude<keyof I_1, keyof MezonAuthenticatedRequest>]: never; }>(object: I_1): MezonAuthenticatedRequest;
|
|
4558
|
+
};
|
|
4559
|
+
export declare const MezonAuthenticatedResponse: {
|
|
4560
|
+
encode(message: MezonAuthenticatedResponse, writer?: _m0.Writer): _m0.Writer;
|
|
4561
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MezonAuthenticatedResponse;
|
|
4562
|
+
fromJSON(object: any): MezonAuthenticatedResponse;
|
|
4563
|
+
toJSON(message: MezonAuthenticatedResponse): unknown;
|
|
4564
|
+
create<I extends {
|
|
4565
|
+
authenticated?: boolean | undefined;
|
|
4566
|
+
userId?: string | undefined;
|
|
4567
|
+
username?: string | undefined;
|
|
4568
|
+
display_name?: string | undefined;
|
|
4569
|
+
avatar?: string | undefined;
|
|
4570
|
+
} & {
|
|
4571
|
+
authenticated?: boolean | undefined;
|
|
4572
|
+
userId?: string | undefined;
|
|
4573
|
+
username?: string | undefined;
|
|
4574
|
+
display_name?: string | undefined;
|
|
4575
|
+
avatar?: string | undefined;
|
|
4576
|
+
} & { [K in Exclude<keyof I, keyof MezonAuthenticatedResponse>]: never; }>(base?: I | undefined): MezonAuthenticatedResponse;
|
|
4577
|
+
fromPartial<I_1 extends {
|
|
4578
|
+
authenticated?: boolean | undefined;
|
|
4579
|
+
userId?: string | undefined;
|
|
4580
|
+
username?: string | undefined;
|
|
4581
|
+
display_name?: string | undefined;
|
|
4582
|
+
avatar?: string | undefined;
|
|
4583
|
+
} & {
|
|
4584
|
+
authenticated?: boolean | undefined;
|
|
4585
|
+
userId?: string | undefined;
|
|
4586
|
+
username?: string | undefined;
|
|
4587
|
+
display_name?: string | undefined;
|
|
4588
|
+
avatar?: string | undefined;
|
|
4589
|
+
} & { [K_1 in Exclude<keyof I_1, keyof MezonAuthenticatedResponse>]: never; }>(object: I_1): MezonAuthenticatedResponse;
|
|
4539
4590
|
};
|
|
4540
4591
|
export declare const AuthenticateGoogleRequest: {
|
|
4541
4592
|
encode(message: AuthenticateGoogleRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -10952,6 +11003,7 @@ export declare const ClanDesc: {
|
|
|
10952
11003
|
badge_count?: number | undefined;
|
|
10953
11004
|
is_onboarding?: boolean | undefined;
|
|
10954
11005
|
welcome_channel_id?: string | undefined;
|
|
11006
|
+
onboarding_banner?: string | undefined;
|
|
10955
11007
|
} & {
|
|
10956
11008
|
creator_id?: string | undefined;
|
|
10957
11009
|
clan_name?: string | undefined;
|
|
@@ -10962,6 +11014,7 @@ export declare const ClanDesc: {
|
|
|
10962
11014
|
badge_count?: number | undefined;
|
|
10963
11015
|
is_onboarding?: boolean | undefined;
|
|
10964
11016
|
welcome_channel_id?: string | undefined;
|
|
11017
|
+
onboarding_banner?: string | undefined;
|
|
10965
11018
|
} & { [K in Exclude<keyof I, keyof ClanDesc>]: never; }>(base?: I | undefined): ClanDesc;
|
|
10966
11019
|
fromPartial<I_1 extends {
|
|
10967
11020
|
creator_id?: string | undefined;
|
|
@@ -10973,6 +11026,7 @@ export declare const ClanDesc: {
|
|
|
10973
11026
|
badge_count?: number | undefined;
|
|
10974
11027
|
is_onboarding?: boolean | undefined;
|
|
10975
11028
|
welcome_channel_id?: string | undefined;
|
|
11029
|
+
onboarding_banner?: string | undefined;
|
|
10976
11030
|
} & {
|
|
10977
11031
|
creator_id?: string | undefined;
|
|
10978
11032
|
clan_name?: string | undefined;
|
|
@@ -10983,6 +11037,7 @@ export declare const ClanDesc: {
|
|
|
10983
11037
|
badge_count?: number | undefined;
|
|
10984
11038
|
is_onboarding?: boolean | undefined;
|
|
10985
11039
|
welcome_channel_id?: string | undefined;
|
|
11040
|
+
onboarding_banner?: string | undefined;
|
|
10986
11041
|
} & { [K_1 in Exclude<keyof I_1, keyof ClanDesc>]: never; }>(object: I_1): ClanDesc;
|
|
10987
11042
|
};
|
|
10988
11043
|
export declare const CreateClanDescRequest: {
|
|
@@ -11022,6 +11077,7 @@ export declare const UpdateClanDescRequest: {
|
|
|
11022
11077
|
status?: number | undefined;
|
|
11023
11078
|
is_onboarding?: boolean | undefined;
|
|
11024
11079
|
welcome_channel_id?: string | undefined;
|
|
11080
|
+
onboarding_banner?: string | undefined;
|
|
11025
11081
|
} & {
|
|
11026
11082
|
clan_id?: string | undefined;
|
|
11027
11083
|
clan_name?: string | undefined;
|
|
@@ -11030,6 +11086,7 @@ export declare const UpdateClanDescRequest: {
|
|
|
11030
11086
|
status?: number | undefined;
|
|
11031
11087
|
is_onboarding?: boolean | undefined;
|
|
11032
11088
|
welcome_channel_id?: string | undefined;
|
|
11089
|
+
onboarding_banner?: string | undefined;
|
|
11033
11090
|
} & { [K in Exclude<keyof I, keyof UpdateClanDescRequest>]: never; }>(base?: I | undefined): UpdateClanDescRequest;
|
|
11034
11091
|
fromPartial<I_1 extends {
|
|
11035
11092
|
clan_id?: string | undefined;
|
|
@@ -11039,6 +11096,7 @@ export declare const UpdateClanDescRequest: {
|
|
|
11039
11096
|
status?: number | undefined;
|
|
11040
11097
|
is_onboarding?: boolean | undefined;
|
|
11041
11098
|
welcome_channel_id?: string | undefined;
|
|
11099
|
+
onboarding_banner?: string | undefined;
|
|
11042
11100
|
} & {
|
|
11043
11101
|
clan_id?: string | undefined;
|
|
11044
11102
|
clan_name?: string | undefined;
|
|
@@ -11047,6 +11105,7 @@ export declare const UpdateClanDescRequest: {
|
|
|
11047
11105
|
status?: number | undefined;
|
|
11048
11106
|
is_onboarding?: boolean | undefined;
|
|
11049
11107
|
welcome_channel_id?: string | undefined;
|
|
11108
|
+
onboarding_banner?: string | undefined;
|
|
11050
11109
|
} & { [K_1 in Exclude<keyof I_1, keyof UpdateClanDescRequest>]: never; }>(object: I_1): UpdateClanDescRequest;
|
|
11051
11110
|
};
|
|
11052
11111
|
export declare const DeleteClanDescRequest: {
|
|
@@ -11105,6 +11164,7 @@ export declare const ClanDescList: {
|
|
|
11105
11164
|
badge_count?: number | undefined;
|
|
11106
11165
|
is_onboarding?: boolean | undefined;
|
|
11107
11166
|
welcome_channel_id?: string | undefined;
|
|
11167
|
+
onboarding_banner?: string | undefined;
|
|
11108
11168
|
}[] | undefined;
|
|
11109
11169
|
} & {
|
|
11110
11170
|
clandesc?: ({
|
|
@@ -11117,6 +11177,7 @@ export declare const ClanDescList: {
|
|
|
11117
11177
|
badge_count?: number | undefined;
|
|
11118
11178
|
is_onboarding?: boolean | undefined;
|
|
11119
11179
|
welcome_channel_id?: string | undefined;
|
|
11180
|
+
onboarding_banner?: string | undefined;
|
|
11120
11181
|
}[] & ({
|
|
11121
11182
|
creator_id?: string | undefined;
|
|
11122
11183
|
clan_name?: string | undefined;
|
|
@@ -11127,6 +11188,7 @@ export declare const ClanDescList: {
|
|
|
11127
11188
|
badge_count?: number | undefined;
|
|
11128
11189
|
is_onboarding?: boolean | undefined;
|
|
11129
11190
|
welcome_channel_id?: string | undefined;
|
|
11191
|
+
onboarding_banner?: string | undefined;
|
|
11130
11192
|
} & {
|
|
11131
11193
|
creator_id?: string | undefined;
|
|
11132
11194
|
clan_name?: string | undefined;
|
|
@@ -11137,6 +11199,7 @@ export declare const ClanDescList: {
|
|
|
11137
11199
|
badge_count?: number | undefined;
|
|
11138
11200
|
is_onboarding?: boolean | undefined;
|
|
11139
11201
|
welcome_channel_id?: string | undefined;
|
|
11202
|
+
onboarding_banner?: string | undefined;
|
|
11140
11203
|
} & { [K in Exclude<keyof I["clandesc"][number], keyof ClanDesc>]: never; })[] & { [K_1 in Exclude<keyof I["clandesc"], keyof {
|
|
11141
11204
|
creator_id?: string | undefined;
|
|
11142
11205
|
clan_name?: string | undefined;
|
|
@@ -11147,6 +11210,7 @@ export declare const ClanDescList: {
|
|
|
11147
11210
|
badge_count?: number | undefined;
|
|
11148
11211
|
is_onboarding?: boolean | undefined;
|
|
11149
11212
|
welcome_channel_id?: string | undefined;
|
|
11213
|
+
onboarding_banner?: string | undefined;
|
|
11150
11214
|
}[]>]: never; }) | undefined;
|
|
11151
11215
|
} & { [K_2 in Exclude<keyof I, "clandesc">]: never; }>(base?: I | undefined): ClanDescList;
|
|
11152
11216
|
fromPartial<I_1 extends {
|
|
@@ -11160,6 +11224,7 @@ export declare const ClanDescList: {
|
|
|
11160
11224
|
badge_count?: number | undefined;
|
|
11161
11225
|
is_onboarding?: boolean | undefined;
|
|
11162
11226
|
welcome_channel_id?: string | undefined;
|
|
11227
|
+
onboarding_banner?: string | undefined;
|
|
11163
11228
|
}[] | undefined;
|
|
11164
11229
|
} & {
|
|
11165
11230
|
clandesc?: ({
|
|
@@ -11172,6 +11237,7 @@ export declare const ClanDescList: {
|
|
|
11172
11237
|
badge_count?: number | undefined;
|
|
11173
11238
|
is_onboarding?: boolean | undefined;
|
|
11174
11239
|
welcome_channel_id?: string | undefined;
|
|
11240
|
+
onboarding_banner?: string | undefined;
|
|
11175
11241
|
}[] & ({
|
|
11176
11242
|
creator_id?: string | undefined;
|
|
11177
11243
|
clan_name?: string | undefined;
|
|
@@ -11182,6 +11248,7 @@ export declare const ClanDescList: {
|
|
|
11182
11248
|
badge_count?: number | undefined;
|
|
11183
11249
|
is_onboarding?: boolean | undefined;
|
|
11184
11250
|
welcome_channel_id?: string | undefined;
|
|
11251
|
+
onboarding_banner?: string | undefined;
|
|
11185
11252
|
} & {
|
|
11186
11253
|
creator_id?: string | undefined;
|
|
11187
11254
|
clan_name?: string | undefined;
|
|
@@ -11192,6 +11259,7 @@ export declare const ClanDescList: {
|
|
|
11192
11259
|
badge_count?: number | undefined;
|
|
11193
11260
|
is_onboarding?: boolean | undefined;
|
|
11194
11261
|
welcome_channel_id?: string | undefined;
|
|
11262
|
+
onboarding_banner?: string | undefined;
|
|
11195
11263
|
} & { [K_3 in Exclude<keyof I_1["clandesc"][number], keyof ClanDesc>]: never; })[] & { [K_4 in Exclude<keyof I_1["clandesc"], keyof {
|
|
11196
11264
|
creator_id?: string | undefined;
|
|
11197
11265
|
clan_name?: string | undefined;
|
|
@@ -11202,6 +11270,7 @@ export declare const ClanDescList: {
|
|
|
11202
11270
|
badge_count?: number | undefined;
|
|
11203
11271
|
is_onboarding?: boolean | undefined;
|
|
11204
11272
|
welcome_channel_id?: string | undefined;
|
|
11273
|
+
onboarding_banner?: string | undefined;
|
|
11205
11274
|
}[]>]: never; }) | undefined;
|
|
11206
11275
|
} & { [K_5 in Exclude<keyof I_1, "clandesc">]: never; }>(object: I_1): ClanDescList;
|
|
11207
11276
|
};
|
|
@@ -24978,14 +25047,18 @@ export declare const GetMezonOauthClientRequest: {
|
|
|
24978
25047
|
toJSON(message: GetMezonOauthClientRequest): unknown;
|
|
24979
25048
|
create<I extends {
|
|
24980
25049
|
client_id?: string | undefined;
|
|
25050
|
+
client_name?: string | undefined;
|
|
24981
25051
|
} & {
|
|
24982
25052
|
client_id?: string | undefined;
|
|
24983
|
-
|
|
25053
|
+
client_name?: string | undefined;
|
|
25054
|
+
} & { [K in Exclude<keyof I, keyof GetMezonOauthClientRequest>]: never; }>(base?: I | undefined): GetMezonOauthClientRequest;
|
|
24984
25055
|
fromPartial<I_1 extends {
|
|
24985
25056
|
client_id?: string | undefined;
|
|
25057
|
+
client_name?: string | undefined;
|
|
24986
25058
|
} & {
|
|
24987
25059
|
client_id?: string | undefined;
|
|
24988
|
-
|
|
25060
|
+
client_name?: string | undefined;
|
|
25061
|
+
} & { [K_1 in Exclude<keyof I_1, keyof GetMezonOauthClientRequest>]: never; }>(object: I_1): GetMezonOauthClientRequest;
|
|
24989
25062
|
};
|
|
24990
25063
|
export declare const SearchThreadRequest: {
|
|
24991
25064
|
encode(message: SearchThreadRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -871,6 +871,8 @@ export interface ClanUpdatedEvent {
|
|
|
871
871
|
is_onboarding: boolean;
|
|
872
872
|
/** welcome channel id */
|
|
873
873
|
welcome_channel_id: string;
|
|
874
|
+
/** onboarding_banner. */
|
|
875
|
+
onboarding_banner: string;
|
|
874
876
|
}
|
|
875
877
|
/** clan profile updated event */
|
|
876
878
|
export interface ClanProfileUpdatedEvent {
|
|
@@ -1626,6 +1628,7 @@ export declare const Envelope: {
|
|
|
1626
1628
|
status?: number | undefined;
|
|
1627
1629
|
is_onboarding?: boolean | undefined;
|
|
1628
1630
|
welcome_channel_id?: string | undefined;
|
|
1631
|
+
onboarding_banner?: string | undefined;
|
|
1629
1632
|
} | undefined;
|
|
1630
1633
|
clan_profile_updated_event?: {
|
|
1631
1634
|
user_id?: string | undefined;
|
|
@@ -3892,6 +3895,7 @@ export declare const Envelope: {
|
|
|
3892
3895
|
status?: number | undefined;
|
|
3893
3896
|
is_onboarding?: boolean | undefined;
|
|
3894
3897
|
welcome_channel_id?: string | undefined;
|
|
3898
|
+
onboarding_banner?: string | undefined;
|
|
3895
3899
|
} & {
|
|
3896
3900
|
clan_id?: string | undefined;
|
|
3897
3901
|
clan_name?: string | undefined;
|
|
@@ -3900,6 +3904,7 @@ export declare const Envelope: {
|
|
|
3900
3904
|
status?: number | undefined;
|
|
3901
3905
|
is_onboarding?: boolean | undefined;
|
|
3902
3906
|
welcome_channel_id?: string | undefined;
|
|
3907
|
+
onboarding_banner?: string | undefined;
|
|
3903
3908
|
} & { [K_108 in Exclude<keyof I["clan_updated_event"], keyof ClanUpdatedEvent>]: never; }) | undefined;
|
|
3904
3909
|
clan_profile_updated_event?: ({
|
|
3905
3910
|
user_id?: string | undefined;
|
|
@@ -5429,6 +5434,7 @@ export declare const Envelope: {
|
|
|
5429
5434
|
status?: number | undefined;
|
|
5430
5435
|
is_onboarding?: boolean | undefined;
|
|
5431
5436
|
welcome_channel_id?: string | undefined;
|
|
5437
|
+
onboarding_banner?: string | undefined;
|
|
5432
5438
|
} | undefined;
|
|
5433
5439
|
clan_profile_updated_event?: {
|
|
5434
5440
|
user_id?: string | undefined;
|
|
@@ -7695,6 +7701,7 @@ export declare const Envelope: {
|
|
|
7695
7701
|
status?: number | undefined;
|
|
7696
7702
|
is_onboarding?: boolean | undefined;
|
|
7697
7703
|
welcome_channel_id?: string | undefined;
|
|
7704
|
+
onboarding_banner?: string | undefined;
|
|
7698
7705
|
} & {
|
|
7699
7706
|
clan_id?: string | undefined;
|
|
7700
7707
|
clan_name?: string | undefined;
|
|
@@ -7703,6 +7710,7 @@ export declare const Envelope: {
|
|
|
7703
7710
|
status?: number | undefined;
|
|
7704
7711
|
is_onboarding?: boolean | undefined;
|
|
7705
7712
|
welcome_channel_id?: string | undefined;
|
|
7713
|
+
onboarding_banner?: string | undefined;
|
|
7706
7714
|
} & { [K_286 in Exclude<keyof I_1["clan_updated_event"], keyof ClanUpdatedEvent>]: never; }) | undefined;
|
|
7707
7715
|
clan_profile_updated_event?: ({
|
|
7708
7716
|
user_id?: string | undefined;
|
|
@@ -13726,6 +13734,7 @@ export declare const ClanUpdatedEvent: {
|
|
|
13726
13734
|
status?: number | undefined;
|
|
13727
13735
|
is_onboarding?: boolean | undefined;
|
|
13728
13736
|
welcome_channel_id?: string | undefined;
|
|
13737
|
+
onboarding_banner?: string | undefined;
|
|
13729
13738
|
} & {
|
|
13730
13739
|
clan_id?: string | undefined;
|
|
13731
13740
|
clan_name?: string | undefined;
|
|
@@ -13734,6 +13743,7 @@ export declare const ClanUpdatedEvent: {
|
|
|
13734
13743
|
status?: number | undefined;
|
|
13735
13744
|
is_onboarding?: boolean | undefined;
|
|
13736
13745
|
welcome_channel_id?: string | undefined;
|
|
13746
|
+
onboarding_banner?: string | undefined;
|
|
13737
13747
|
} & { [K in Exclude<keyof I, keyof ClanUpdatedEvent>]: never; }>(base?: I | undefined): ClanUpdatedEvent;
|
|
13738
13748
|
fromPartial<I_1 extends {
|
|
13739
13749
|
clan_id?: string | undefined;
|
|
@@ -13743,6 +13753,7 @@ export declare const ClanUpdatedEvent: {
|
|
|
13743
13753
|
status?: number | undefined;
|
|
13744
13754
|
is_onboarding?: boolean | undefined;
|
|
13745
13755
|
welcome_channel_id?: string | undefined;
|
|
13756
|
+
onboarding_banner?: string | undefined;
|
|
13746
13757
|
} & {
|
|
13747
13758
|
clan_id?: string | undefined;
|
|
13748
13759
|
clan_name?: string | undefined;
|
|
@@ -13751,6 +13762,7 @@ export declare const ClanUpdatedEvent: {
|
|
|
13751
13762
|
status?: number | undefined;
|
|
13752
13763
|
is_onboarding?: boolean | undefined;
|
|
13753
13764
|
welcome_channel_id?: string | undefined;
|
|
13765
|
+
onboarding_banner?: string | undefined;
|
|
13754
13766
|
} & { [K_1 in Exclude<keyof I_1, keyof ClanUpdatedEvent>]: never; }>(object: I_1): ClanUpdatedEvent;
|
|
13755
13767
|
};
|
|
13756
13768
|
export declare const ClanProfileUpdatedEvent: {
|
|
@@ -13279,7 +13279,16 @@ var UserClanRemoved = {
|
|
|
13279
13279
|
}
|
|
13280
13280
|
};
|
|
13281
13281
|
function createBaseClanUpdatedEvent() {
|
|
13282
|
-
return {
|
|
13282
|
+
return {
|
|
13283
|
+
clan_id: "",
|
|
13284
|
+
clan_name: "",
|
|
13285
|
+
logo: "",
|
|
13286
|
+
banner: "",
|
|
13287
|
+
status: 0,
|
|
13288
|
+
is_onboarding: false,
|
|
13289
|
+
welcome_channel_id: "",
|
|
13290
|
+
onboarding_banner: ""
|
|
13291
|
+
};
|
|
13283
13292
|
}
|
|
13284
13293
|
var ClanUpdatedEvent = {
|
|
13285
13294
|
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
@@ -13304,6 +13313,9 @@ var ClanUpdatedEvent = {
|
|
|
13304
13313
|
if (message.welcome_channel_id !== "") {
|
|
13305
13314
|
writer.uint32(58).string(message.welcome_channel_id);
|
|
13306
13315
|
}
|
|
13316
|
+
if (message.onboarding_banner !== "") {
|
|
13317
|
+
writer.uint32(66).string(message.onboarding_banner);
|
|
13318
|
+
}
|
|
13307
13319
|
return writer;
|
|
13308
13320
|
},
|
|
13309
13321
|
decode(input, length) {
|
|
@@ -13355,6 +13367,12 @@ var ClanUpdatedEvent = {
|
|
|
13355
13367
|
}
|
|
13356
13368
|
message.welcome_channel_id = reader.string();
|
|
13357
13369
|
continue;
|
|
13370
|
+
case 8:
|
|
13371
|
+
if (tag !== 66) {
|
|
13372
|
+
break;
|
|
13373
|
+
}
|
|
13374
|
+
message.onboarding_banner = reader.string();
|
|
13375
|
+
continue;
|
|
13358
13376
|
}
|
|
13359
13377
|
if ((tag & 7) === 4 || tag === 0) {
|
|
13360
13378
|
break;
|
|
@@ -13371,7 +13389,8 @@ var ClanUpdatedEvent = {
|
|
|
13371
13389
|
banner: isSet4(object.banner) ? globalThis.String(object.banner) : "",
|
|
13372
13390
|
status: isSet4(object.status) ? globalThis.Number(object.status) : 0,
|
|
13373
13391
|
is_onboarding: isSet4(object.is_onboarding) ? globalThis.Boolean(object.is_onboarding) : false,
|
|
13374
|
-
welcome_channel_id: isSet4(object.welcome_channel_id) ? globalThis.String(object.welcome_channel_id) : ""
|
|
13392
|
+
welcome_channel_id: isSet4(object.welcome_channel_id) ? globalThis.String(object.welcome_channel_id) : "",
|
|
13393
|
+
onboarding_banner: isSet4(object.onboarding_banner) ? globalThis.String(object.onboarding_banner) : ""
|
|
13375
13394
|
};
|
|
13376
13395
|
},
|
|
13377
13396
|
toJSON(message) {
|
|
@@ -13397,13 +13416,16 @@ var ClanUpdatedEvent = {
|
|
|
13397
13416
|
if (message.welcome_channel_id !== "") {
|
|
13398
13417
|
obj.welcome_channel_id = message.welcome_channel_id;
|
|
13399
13418
|
}
|
|
13419
|
+
if (message.onboarding_banner !== "") {
|
|
13420
|
+
obj.onboarding_banner = message.onboarding_banner;
|
|
13421
|
+
}
|
|
13400
13422
|
return obj;
|
|
13401
13423
|
},
|
|
13402
13424
|
create(base) {
|
|
13403
13425
|
return ClanUpdatedEvent.fromPartial(base != null ? base : {});
|
|
13404
13426
|
},
|
|
13405
13427
|
fromPartial(object) {
|
|
13406
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
13428
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
13407
13429
|
const message = createBaseClanUpdatedEvent();
|
|
13408
13430
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
13409
13431
|
message.clan_name = (_b = object.clan_name) != null ? _b : "";
|
|
@@ -13412,6 +13434,7 @@ var ClanUpdatedEvent = {
|
|
|
13412
13434
|
message.status = (_e = object.status) != null ? _e : 0;
|
|
13413
13435
|
message.is_onboarding = (_f = object.is_onboarding) != null ? _f : false;
|
|
13414
13436
|
message.welcome_channel_id = (_g = object.welcome_channel_id) != null ? _g : "";
|
|
13437
|
+
message.onboarding_banner = (_h = object.onboarding_banner) != null ? _h : "";
|
|
13415
13438
|
return message;
|
|
13416
13439
|
}
|
|
13417
13440
|
};
|
|
@@ -13266,7 +13266,16 @@ var UserClanRemoved = {
|
|
|
13266
13266
|
}
|
|
13267
13267
|
};
|
|
13268
13268
|
function createBaseClanUpdatedEvent() {
|
|
13269
|
-
return {
|
|
13269
|
+
return {
|
|
13270
|
+
clan_id: "",
|
|
13271
|
+
clan_name: "",
|
|
13272
|
+
logo: "",
|
|
13273
|
+
banner: "",
|
|
13274
|
+
status: 0,
|
|
13275
|
+
is_onboarding: false,
|
|
13276
|
+
welcome_channel_id: "",
|
|
13277
|
+
onboarding_banner: ""
|
|
13278
|
+
};
|
|
13270
13279
|
}
|
|
13271
13280
|
var ClanUpdatedEvent = {
|
|
13272
13281
|
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
@@ -13291,6 +13300,9 @@ var ClanUpdatedEvent = {
|
|
|
13291
13300
|
if (message.welcome_channel_id !== "") {
|
|
13292
13301
|
writer.uint32(58).string(message.welcome_channel_id);
|
|
13293
13302
|
}
|
|
13303
|
+
if (message.onboarding_banner !== "") {
|
|
13304
|
+
writer.uint32(66).string(message.onboarding_banner);
|
|
13305
|
+
}
|
|
13294
13306
|
return writer;
|
|
13295
13307
|
},
|
|
13296
13308
|
decode(input, length) {
|
|
@@ -13342,6 +13354,12 @@ var ClanUpdatedEvent = {
|
|
|
13342
13354
|
}
|
|
13343
13355
|
message.welcome_channel_id = reader.string();
|
|
13344
13356
|
continue;
|
|
13357
|
+
case 8:
|
|
13358
|
+
if (tag !== 66) {
|
|
13359
|
+
break;
|
|
13360
|
+
}
|
|
13361
|
+
message.onboarding_banner = reader.string();
|
|
13362
|
+
continue;
|
|
13345
13363
|
}
|
|
13346
13364
|
if ((tag & 7) === 4 || tag === 0) {
|
|
13347
13365
|
break;
|
|
@@ -13358,7 +13376,8 @@ var ClanUpdatedEvent = {
|
|
|
13358
13376
|
banner: isSet4(object.banner) ? globalThis.String(object.banner) : "",
|
|
13359
13377
|
status: isSet4(object.status) ? globalThis.Number(object.status) : 0,
|
|
13360
13378
|
is_onboarding: isSet4(object.is_onboarding) ? globalThis.Boolean(object.is_onboarding) : false,
|
|
13361
|
-
welcome_channel_id: isSet4(object.welcome_channel_id) ? globalThis.String(object.welcome_channel_id) : ""
|
|
13379
|
+
welcome_channel_id: isSet4(object.welcome_channel_id) ? globalThis.String(object.welcome_channel_id) : "",
|
|
13380
|
+
onboarding_banner: isSet4(object.onboarding_banner) ? globalThis.String(object.onboarding_banner) : ""
|
|
13362
13381
|
};
|
|
13363
13382
|
},
|
|
13364
13383
|
toJSON(message) {
|
|
@@ -13384,13 +13403,16 @@ var ClanUpdatedEvent = {
|
|
|
13384
13403
|
if (message.welcome_channel_id !== "") {
|
|
13385
13404
|
obj.welcome_channel_id = message.welcome_channel_id;
|
|
13386
13405
|
}
|
|
13406
|
+
if (message.onboarding_banner !== "") {
|
|
13407
|
+
obj.onboarding_banner = message.onboarding_banner;
|
|
13408
|
+
}
|
|
13387
13409
|
return obj;
|
|
13388
13410
|
},
|
|
13389
13411
|
create(base) {
|
|
13390
13412
|
return ClanUpdatedEvent.fromPartial(base != null ? base : {});
|
|
13391
13413
|
},
|
|
13392
13414
|
fromPartial(object) {
|
|
13393
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
13415
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
13394
13416
|
const message = createBaseClanUpdatedEvent();
|
|
13395
13417
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
13396
13418
|
message.clan_name = (_b = object.clan_name) != null ? _b : "";
|
|
@@ -13399,6 +13421,7 @@ var ClanUpdatedEvent = {
|
|
|
13399
13421
|
message.status = (_e = object.status) != null ? _e : 0;
|
|
13400
13422
|
message.is_onboarding = (_f = object.is_onboarding) != null ? _f : false;
|
|
13401
13423
|
message.welcome_channel_id = (_g = object.welcome_channel_id) != null ? _g : "";
|
|
13424
|
+
message.onboarding_banner = (_h = object.onboarding_banner) != null ? _h : "";
|
|
13402
13425
|
return message;
|
|
13403
13426
|
}
|
|
13404
13427
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.24",
|
|
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",
|
package/rtapi/realtime.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v1.181.
|
|
4
|
-
// protoc v5.
|
|
3
|
+
// protoc-gen-ts_proto v1.181.2
|
|
4
|
+
// protoc v5.28.3
|
|
5
5
|
// source: rtapi/realtime.proto
|
|
6
6
|
|
|
7
7
|
/* eslint-disable */
|
|
@@ -1184,6 +1184,8 @@ export interface ClanUpdatedEvent {
|
|
|
1184
1184
|
is_onboarding: boolean;
|
|
1185
1185
|
/** welcome channel id */
|
|
1186
1186
|
welcome_channel_id: string;
|
|
1187
|
+
/** onboarding_banner. */
|
|
1188
|
+
onboarding_banner: string;
|
|
1187
1189
|
}
|
|
1188
1190
|
|
|
1189
1191
|
/** clan profile updated event */
|
|
@@ -9748,7 +9750,16 @@ export const UserClanRemoved = {
|
|
|
9748
9750
|
};
|
|
9749
9751
|
|
|
9750
9752
|
function createBaseClanUpdatedEvent(): ClanUpdatedEvent {
|
|
9751
|
-
return {
|
|
9753
|
+
return {
|
|
9754
|
+
clan_id: "",
|
|
9755
|
+
clan_name: "",
|
|
9756
|
+
logo: "",
|
|
9757
|
+
banner: "",
|
|
9758
|
+
status: 0,
|
|
9759
|
+
is_onboarding: false,
|
|
9760
|
+
welcome_channel_id: "",
|
|
9761
|
+
onboarding_banner: "",
|
|
9762
|
+
};
|
|
9752
9763
|
}
|
|
9753
9764
|
|
|
9754
9765
|
export const ClanUpdatedEvent = {
|
|
@@ -9774,6 +9785,9 @@ export const ClanUpdatedEvent = {
|
|
|
9774
9785
|
if (message.welcome_channel_id !== "") {
|
|
9775
9786
|
writer.uint32(58).string(message.welcome_channel_id);
|
|
9776
9787
|
}
|
|
9788
|
+
if (message.onboarding_banner !== "") {
|
|
9789
|
+
writer.uint32(66).string(message.onboarding_banner);
|
|
9790
|
+
}
|
|
9777
9791
|
return writer;
|
|
9778
9792
|
},
|
|
9779
9793
|
|
|
@@ -9833,6 +9847,13 @@ export const ClanUpdatedEvent = {
|
|
|
9833
9847
|
|
|
9834
9848
|
message.welcome_channel_id = reader.string();
|
|
9835
9849
|
continue;
|
|
9850
|
+
case 8:
|
|
9851
|
+
if (tag !== 66) {
|
|
9852
|
+
break;
|
|
9853
|
+
}
|
|
9854
|
+
|
|
9855
|
+
message.onboarding_banner = reader.string();
|
|
9856
|
+
continue;
|
|
9836
9857
|
}
|
|
9837
9858
|
if ((tag & 7) === 4 || tag === 0) {
|
|
9838
9859
|
break;
|
|
@@ -9851,6 +9872,7 @@ export const ClanUpdatedEvent = {
|
|
|
9851
9872
|
status: isSet(object.status) ? globalThis.Number(object.status) : 0,
|
|
9852
9873
|
is_onboarding: isSet(object.is_onboarding) ? globalThis.Boolean(object.is_onboarding) : false,
|
|
9853
9874
|
welcome_channel_id: isSet(object.welcome_channel_id) ? globalThis.String(object.welcome_channel_id) : "",
|
|
9875
|
+
onboarding_banner: isSet(object.onboarding_banner) ? globalThis.String(object.onboarding_banner) : "",
|
|
9854
9876
|
};
|
|
9855
9877
|
},
|
|
9856
9878
|
|
|
@@ -9877,6 +9899,9 @@ export const ClanUpdatedEvent = {
|
|
|
9877
9899
|
if (message.welcome_channel_id !== "") {
|
|
9878
9900
|
obj.welcome_channel_id = message.welcome_channel_id;
|
|
9879
9901
|
}
|
|
9902
|
+
if (message.onboarding_banner !== "") {
|
|
9903
|
+
obj.onboarding_banner = message.onboarding_banner;
|
|
9904
|
+
}
|
|
9880
9905
|
return obj;
|
|
9881
9906
|
},
|
|
9882
9907
|
|
|
@@ -9892,6 +9917,7 @@ export const ClanUpdatedEvent = {
|
|
|
9892
9917
|
message.status = object.status ?? 0;
|
|
9893
9918
|
message.is_onboarding = object.is_onboarding ?? false;
|
|
9894
9919
|
message.welcome_channel_id = object.welcome_channel_id ?? "";
|
|
9920
|
+
message.onboarding_banner = object.onboarding_banner ?? "";
|
|
9895
9921
|
return message;
|
|
9896
9922
|
},
|
|
9897
9923
|
};
|