mezon-js-protobuf 1.4.19 → 1.4.21
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 +120 -3
- package/dist/mezon-js-protobuf/api/api.d.ts +32 -33
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +12 -0
- package/dist/mezon-js-protobuf.cjs.js +20 -10
- package/dist/mezon-js-protobuf.esm.mjs +7130 -7120
- package/google/protobuf/timestamp.ts +220 -220
- package/package.json +1 -1
- package/rtapi/realtime.ts +15 -1
package/api/api.ts
CHANGED
|
@@ -1822,7 +1822,13 @@ export interface ChannelDescription {
|
|
|
1822
1822
|
| ChannelMessageHeader
|
|
1823
1823
|
| undefined;
|
|
1824
1824
|
/** last seen message id */
|
|
1825
|
-
last_seen_message:
|
|
1825
|
+
last_seen_message:
|
|
1826
|
+
| ChannelMessageHeader
|
|
1827
|
+
| undefined;
|
|
1828
|
+
/** status */
|
|
1829
|
+
status: number;
|
|
1830
|
+
/** meeting code */
|
|
1831
|
+
meeting_code: string;
|
|
1826
1832
|
}
|
|
1827
1833
|
|
|
1828
1834
|
/** A list of channel description, usually a result of a list operation. */
|
|
@@ -2003,7 +2009,11 @@ export interface NotificationUserChannel {
|
|
|
2003
2009
|
/** */
|
|
2004
2010
|
notification_setting_type: string;
|
|
2005
2011
|
/** */
|
|
2006
|
-
time_mute:
|
|
2012
|
+
time_mute:
|
|
2013
|
+
| Date
|
|
2014
|
+
| undefined;
|
|
2015
|
+
/** */
|
|
2016
|
+
active: number;
|
|
2007
2017
|
}
|
|
2008
2018
|
|
|
2009
2019
|
/** Notification channel */
|
|
@@ -2047,6 +2057,13 @@ export interface SetNotificationRequest {
|
|
|
2047
2057
|
time_mute: Date | undefined;
|
|
2048
2058
|
}
|
|
2049
2059
|
|
|
2060
|
+
/** set notification */
|
|
2061
|
+
export interface SetMuteNotificationRequest {
|
|
2062
|
+
channel_id: string;
|
|
2063
|
+
notification_type: string;
|
|
2064
|
+
active: number;
|
|
2065
|
+
}
|
|
2066
|
+
|
|
2050
2067
|
/** set default notification */
|
|
2051
2068
|
export interface SetDefaultNotificationRequest {
|
|
2052
2069
|
clan_id: string;
|
|
@@ -12386,6 +12403,8 @@ function createBaseChannelDescription(): ChannelDescription {
|
|
|
12386
12403
|
user_id: [],
|
|
12387
12404
|
last_sent_message: undefined,
|
|
12388
12405
|
last_seen_message: undefined,
|
|
12406
|
+
status: 0,
|
|
12407
|
+
meeting_code: "",
|
|
12389
12408
|
};
|
|
12390
12409
|
}
|
|
12391
12410
|
|
|
@@ -12430,6 +12449,12 @@ export const ChannelDescription = {
|
|
|
12430
12449
|
if (message.last_seen_message !== undefined) {
|
|
12431
12450
|
ChannelMessageHeader.encode(message.last_seen_message, writer.uint32(106).fork()).ldelim();
|
|
12432
12451
|
}
|
|
12452
|
+
if (message.status !== 0) {
|
|
12453
|
+
writer.uint32(112).int32(message.status);
|
|
12454
|
+
}
|
|
12455
|
+
if (message.meeting_code !== "") {
|
|
12456
|
+
writer.uint32(122).string(message.meeting_code);
|
|
12457
|
+
}
|
|
12433
12458
|
return writer;
|
|
12434
12459
|
},
|
|
12435
12460
|
|
|
@@ -12479,6 +12504,12 @@ export const ChannelDescription = {
|
|
|
12479
12504
|
case 13:
|
|
12480
12505
|
message.last_seen_message = ChannelMessageHeader.decode(reader, reader.uint32());
|
|
12481
12506
|
break;
|
|
12507
|
+
case 14:
|
|
12508
|
+
message.status = reader.int32();
|
|
12509
|
+
break;
|
|
12510
|
+
case 15:
|
|
12511
|
+
message.meeting_code = reader.string();
|
|
12512
|
+
break;
|
|
12482
12513
|
default:
|
|
12483
12514
|
reader.skipType(tag & 7);
|
|
12484
12515
|
break;
|
|
@@ -12506,6 +12537,8 @@ export const ChannelDescription = {
|
|
|
12506
12537
|
last_seen_message: isSet(object.last_seen_message)
|
|
12507
12538
|
? ChannelMessageHeader.fromJSON(object.last_seen_message)
|
|
12508
12539
|
: undefined,
|
|
12540
|
+
status: isSet(object.status) ? Number(object.status) : 0,
|
|
12541
|
+
meeting_code: isSet(object.meeting_code) ? String(object.meeting_code) : "",
|
|
12509
12542
|
};
|
|
12510
12543
|
},
|
|
12511
12544
|
|
|
@@ -12536,6 +12569,8 @@ export const ChannelDescription = {
|
|
|
12536
12569
|
message.last_seen_message !== undefined && (obj.last_seen_message = message.last_seen_message
|
|
12537
12570
|
? ChannelMessageHeader.toJSON(message.last_seen_message)
|
|
12538
12571
|
: undefined);
|
|
12572
|
+
message.status !== undefined && (obj.status = Math.round(message.status));
|
|
12573
|
+
message.meeting_code !== undefined && (obj.meeting_code = message.meeting_code);
|
|
12539
12574
|
return obj;
|
|
12540
12575
|
},
|
|
12541
12576
|
|
|
@@ -12562,6 +12597,8 @@ export const ChannelDescription = {
|
|
|
12562
12597
|
message.last_seen_message = (object.last_seen_message !== undefined && object.last_seen_message !== null)
|
|
12563
12598
|
? ChannelMessageHeader.fromPartial(object.last_seen_message)
|
|
12564
12599
|
: undefined;
|
|
12600
|
+
message.status = object.status ?? 0;
|
|
12601
|
+
message.meeting_code = object.meeting_code ?? "";
|
|
12565
12602
|
return message;
|
|
12566
12603
|
},
|
|
12567
12604
|
};
|
|
@@ -13933,7 +13970,7 @@ export const NotificationChannelCategoySettingsList = {
|
|
|
13933
13970
|
};
|
|
13934
13971
|
|
|
13935
13972
|
function createBaseNotificationUserChannel(): NotificationUserChannel {
|
|
13936
|
-
return { id: "", notification_setting_type: "", time_mute: undefined };
|
|
13973
|
+
return { id: "", notification_setting_type: "", time_mute: undefined, active: 0 };
|
|
13937
13974
|
}
|
|
13938
13975
|
|
|
13939
13976
|
export const NotificationUserChannel = {
|
|
@@ -13947,6 +13984,9 @@ export const NotificationUserChannel = {
|
|
|
13947
13984
|
if (message.time_mute !== undefined) {
|
|
13948
13985
|
Timestamp.encode(toTimestamp(message.time_mute), writer.uint32(26).fork()).ldelim();
|
|
13949
13986
|
}
|
|
13987
|
+
if (message.active !== 0) {
|
|
13988
|
+
writer.uint32(32).int32(message.active);
|
|
13989
|
+
}
|
|
13950
13990
|
return writer;
|
|
13951
13991
|
},
|
|
13952
13992
|
|
|
@@ -13966,6 +14006,9 @@ export const NotificationUserChannel = {
|
|
|
13966
14006
|
case 3:
|
|
13967
14007
|
message.time_mute = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
13968
14008
|
break;
|
|
14009
|
+
case 4:
|
|
14010
|
+
message.active = reader.int32();
|
|
14011
|
+
break;
|
|
13969
14012
|
default:
|
|
13970
14013
|
reader.skipType(tag & 7);
|
|
13971
14014
|
break;
|
|
@@ -13981,6 +14024,7 @@ export const NotificationUserChannel = {
|
|
|
13981
14024
|
? String(object.notification_setting_type)
|
|
13982
14025
|
: "",
|
|
13983
14026
|
time_mute: isSet(object.time_mute) ? fromJsonTimestamp(object.time_mute) : undefined,
|
|
14027
|
+
active: isSet(object.active) ? Number(object.active) : 0,
|
|
13984
14028
|
};
|
|
13985
14029
|
},
|
|
13986
14030
|
|
|
@@ -13990,6 +14034,7 @@ export const NotificationUserChannel = {
|
|
|
13990
14034
|
message.notification_setting_type !== undefined &&
|
|
13991
14035
|
(obj.notification_setting_type = message.notification_setting_type);
|
|
13992
14036
|
message.time_mute !== undefined && (obj.time_mute = message.time_mute.toISOString());
|
|
14037
|
+
message.active !== undefined && (obj.active = Math.round(message.active));
|
|
13993
14038
|
return obj;
|
|
13994
14039
|
},
|
|
13995
14040
|
|
|
@@ -14002,6 +14047,7 @@ export const NotificationUserChannel = {
|
|
|
14002
14047
|
message.id = object.id ?? "";
|
|
14003
14048
|
message.notification_setting_type = object.notification_setting_type ?? "";
|
|
14004
14049
|
message.time_mute = object.time_mute ?? undefined;
|
|
14050
|
+
message.active = object.active ?? 0;
|
|
14005
14051
|
return message;
|
|
14006
14052
|
},
|
|
14007
14053
|
};
|
|
@@ -14360,6 +14406,77 @@ export const SetNotificationRequest = {
|
|
|
14360
14406
|
},
|
|
14361
14407
|
};
|
|
14362
14408
|
|
|
14409
|
+
function createBaseSetMuteNotificationRequest(): SetMuteNotificationRequest {
|
|
14410
|
+
return { channel_id: "", notification_type: "", active: 0 };
|
|
14411
|
+
}
|
|
14412
|
+
|
|
14413
|
+
export const SetMuteNotificationRequest = {
|
|
14414
|
+
encode(message: SetMuteNotificationRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
14415
|
+
if (message.channel_id !== "") {
|
|
14416
|
+
writer.uint32(10).string(message.channel_id);
|
|
14417
|
+
}
|
|
14418
|
+
if (message.notification_type !== "") {
|
|
14419
|
+
writer.uint32(18).string(message.notification_type);
|
|
14420
|
+
}
|
|
14421
|
+
if (message.active !== 0) {
|
|
14422
|
+
writer.uint32(24).int32(message.active);
|
|
14423
|
+
}
|
|
14424
|
+
return writer;
|
|
14425
|
+
},
|
|
14426
|
+
|
|
14427
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SetMuteNotificationRequest {
|
|
14428
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
14429
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
14430
|
+
const message = createBaseSetMuteNotificationRequest();
|
|
14431
|
+
while (reader.pos < end) {
|
|
14432
|
+
const tag = reader.uint32();
|
|
14433
|
+
switch (tag >>> 3) {
|
|
14434
|
+
case 1:
|
|
14435
|
+
message.channel_id = reader.string();
|
|
14436
|
+
break;
|
|
14437
|
+
case 2:
|
|
14438
|
+
message.notification_type = reader.string();
|
|
14439
|
+
break;
|
|
14440
|
+
case 3:
|
|
14441
|
+
message.active = reader.int32();
|
|
14442
|
+
break;
|
|
14443
|
+
default:
|
|
14444
|
+
reader.skipType(tag & 7);
|
|
14445
|
+
break;
|
|
14446
|
+
}
|
|
14447
|
+
}
|
|
14448
|
+
return message;
|
|
14449
|
+
},
|
|
14450
|
+
|
|
14451
|
+
fromJSON(object: any): SetMuteNotificationRequest {
|
|
14452
|
+
return {
|
|
14453
|
+
channel_id: isSet(object.channel_id) ? String(object.channel_id) : "",
|
|
14454
|
+
notification_type: isSet(object.notification_type) ? String(object.notification_type) : "",
|
|
14455
|
+
active: isSet(object.active) ? Number(object.active) : 0,
|
|
14456
|
+
};
|
|
14457
|
+
},
|
|
14458
|
+
|
|
14459
|
+
toJSON(message: SetMuteNotificationRequest): unknown {
|
|
14460
|
+
const obj: any = {};
|
|
14461
|
+
message.channel_id !== undefined && (obj.channel_id = message.channel_id);
|
|
14462
|
+
message.notification_type !== undefined && (obj.notification_type = message.notification_type);
|
|
14463
|
+
message.active !== undefined && (obj.active = Math.round(message.active));
|
|
14464
|
+
return obj;
|
|
14465
|
+
},
|
|
14466
|
+
|
|
14467
|
+
create<I extends Exact<DeepPartial<SetMuteNotificationRequest>, I>>(base?: I): SetMuteNotificationRequest {
|
|
14468
|
+
return SetMuteNotificationRequest.fromPartial(base ?? {});
|
|
14469
|
+
},
|
|
14470
|
+
|
|
14471
|
+
fromPartial<I extends Exact<DeepPartial<SetMuteNotificationRequest>, I>>(object: I): SetMuteNotificationRequest {
|
|
14472
|
+
const message = createBaseSetMuteNotificationRequest();
|
|
14473
|
+
message.channel_id = object.channel_id ?? "";
|
|
14474
|
+
message.notification_type = object.notification_type ?? "";
|
|
14475
|
+
message.active = object.active ?? 0;
|
|
14476
|
+
return message;
|
|
14477
|
+
},
|
|
14478
|
+
};
|
|
14479
|
+
|
|
14363
14480
|
function createBaseSetDefaultNotificationRequest(): SetDefaultNotificationRequest {
|
|
14364
14481
|
return { clan_id: "", notification_type: "", category_id: "" };
|
|
14365
14482
|
}
|
|
@@ -1346,6 +1346,10 @@ export interface ChannelDescription {
|
|
|
1346
1346
|
last_sent_message: ChannelMessageHeader | undefined;
|
|
1347
1347
|
/** last seen message id */
|
|
1348
1348
|
last_seen_message: ChannelMessageHeader | undefined;
|
|
1349
|
+
/** status */
|
|
1350
|
+
status: number;
|
|
1351
|
+
/** meeting code */
|
|
1352
|
+
meeting_code: string;
|
|
1349
1353
|
}
|
|
1350
1354
|
/** A list of channel description, usually a result of a list operation. */
|
|
1351
1355
|
export interface ChannelDescList {
|
|
@@ -1504,15 +1508,6 @@ export interface NotificationUserChannel {
|
|
|
1504
1508
|
/** */
|
|
1505
1509
|
time_mute: Date | undefined;
|
|
1506
1510
|
}
|
|
1507
|
-
/** Notification channel */
|
|
1508
|
-
export interface NotifiReactMessage {
|
|
1509
|
-
/** Notification id */
|
|
1510
|
-
id: string;
|
|
1511
|
-
/** */
|
|
1512
|
-
user_id: string;
|
|
1513
|
-
/** */
|
|
1514
|
-
channel_id: string;
|
|
1515
|
-
}
|
|
1516
1511
|
/** */
|
|
1517
1512
|
export interface DefaultNotificationClan {
|
|
1518
1513
|
/** */
|
|
@@ -8948,6 +8943,8 @@ export declare const ChannelDescription: {
|
|
|
8948
8943
|
sender_id?: string | undefined;
|
|
8949
8944
|
content?: string | undefined;
|
|
8950
8945
|
} | undefined;
|
|
8946
|
+
status?: number | undefined;
|
|
8947
|
+
meeting_code?: string | undefined;
|
|
8951
8948
|
} & {
|
|
8952
8949
|
clan_id?: string | undefined;
|
|
8953
8950
|
parrent_id?: string | undefined;
|
|
@@ -8982,6 +8979,8 @@ export declare const ChannelDescription: {
|
|
|
8982
8979
|
sender_id?: string | undefined;
|
|
8983
8980
|
content?: string | undefined;
|
|
8984
8981
|
} & { [K_3 in Exclude<keyof I["last_seen_message"], keyof ChannelMessageHeader>]: never; }) | undefined;
|
|
8982
|
+
status?: number | undefined;
|
|
8983
|
+
meeting_code?: string | undefined;
|
|
8985
8984
|
} & { [K_4 in Exclude<keyof I, keyof ChannelDescription>]: never; }>(base?: I | undefined): ChannelDescription;
|
|
8986
8985
|
fromPartial<I_1 extends {
|
|
8987
8986
|
clan_id?: string | undefined;
|
|
@@ -9007,6 +9006,8 @@ export declare const ChannelDescription: {
|
|
|
9007
9006
|
sender_id?: string | undefined;
|
|
9008
9007
|
content?: string | undefined;
|
|
9009
9008
|
} | undefined;
|
|
9009
|
+
status?: number | undefined;
|
|
9010
|
+
meeting_code?: string | undefined;
|
|
9010
9011
|
} & {
|
|
9011
9012
|
clan_id?: string | undefined;
|
|
9012
9013
|
parrent_id?: string | undefined;
|
|
@@ -9041,6 +9042,8 @@ export declare const ChannelDescription: {
|
|
|
9041
9042
|
sender_id?: string | undefined;
|
|
9042
9043
|
content?: string | undefined;
|
|
9043
9044
|
} & { [K_8 in Exclude<keyof I_1["last_seen_message"], keyof ChannelMessageHeader>]: never; }) | undefined;
|
|
9045
|
+
status?: number | undefined;
|
|
9046
|
+
meeting_code?: string | undefined;
|
|
9044
9047
|
} & { [K_9 in Exclude<keyof I_1, keyof ChannelDescription>]: never; }>(object: I_1): ChannelDescription;
|
|
9045
9048
|
};
|
|
9046
9049
|
export declare const ChannelDescList: {
|
|
@@ -9073,6 +9076,8 @@ export declare const ChannelDescList: {
|
|
|
9073
9076
|
sender_id?: string | undefined;
|
|
9074
9077
|
content?: string | undefined;
|
|
9075
9078
|
} | undefined;
|
|
9079
|
+
status?: number | undefined;
|
|
9080
|
+
meeting_code?: string | undefined;
|
|
9076
9081
|
}[] | undefined;
|
|
9077
9082
|
next_cursor?: string | undefined;
|
|
9078
9083
|
prev_cursor?: string | undefined;
|
|
@@ -9102,6 +9107,8 @@ export declare const ChannelDescList: {
|
|
|
9102
9107
|
sender_id?: string | undefined;
|
|
9103
9108
|
content?: string | undefined;
|
|
9104
9109
|
} | undefined;
|
|
9110
|
+
status?: number | undefined;
|
|
9111
|
+
meeting_code?: string | undefined;
|
|
9105
9112
|
}[] & ({
|
|
9106
9113
|
clan_id?: string | undefined;
|
|
9107
9114
|
parrent_id?: string | undefined;
|
|
@@ -9126,6 +9133,8 @@ export declare const ChannelDescList: {
|
|
|
9126
9133
|
sender_id?: string | undefined;
|
|
9127
9134
|
content?: string | undefined;
|
|
9128
9135
|
} | undefined;
|
|
9136
|
+
status?: number | undefined;
|
|
9137
|
+
meeting_code?: string | undefined;
|
|
9129
9138
|
} & {
|
|
9130
9139
|
clan_id?: string | undefined;
|
|
9131
9140
|
parrent_id?: string | undefined;
|
|
@@ -9160,6 +9169,8 @@ export declare const ChannelDescList: {
|
|
|
9160
9169
|
sender_id?: string | undefined;
|
|
9161
9170
|
content?: string | undefined;
|
|
9162
9171
|
} & { [K_3 in Exclude<keyof I["channeldesc"][number]["last_seen_message"], keyof ChannelMessageHeader>]: never; }) | undefined;
|
|
9172
|
+
status?: number | undefined;
|
|
9173
|
+
meeting_code?: string | undefined;
|
|
9163
9174
|
} & { [K_4 in Exclude<keyof I["channeldesc"][number], keyof ChannelDescription>]: never; })[] & { [K_5 in Exclude<keyof I["channeldesc"], keyof {
|
|
9164
9175
|
clan_id?: string | undefined;
|
|
9165
9176
|
parrent_id?: string | undefined;
|
|
@@ -9184,6 +9195,8 @@ export declare const ChannelDescList: {
|
|
|
9184
9195
|
sender_id?: string | undefined;
|
|
9185
9196
|
content?: string | undefined;
|
|
9186
9197
|
} | undefined;
|
|
9198
|
+
status?: number | undefined;
|
|
9199
|
+
meeting_code?: string | undefined;
|
|
9187
9200
|
}[]>]: never; }) | undefined;
|
|
9188
9201
|
next_cursor?: string | undefined;
|
|
9189
9202
|
prev_cursor?: string | undefined;
|
|
@@ -9214,6 +9227,8 @@ export declare const ChannelDescList: {
|
|
|
9214
9227
|
sender_id?: string | undefined;
|
|
9215
9228
|
content?: string | undefined;
|
|
9216
9229
|
} | undefined;
|
|
9230
|
+
status?: number | undefined;
|
|
9231
|
+
meeting_code?: string | undefined;
|
|
9217
9232
|
}[] | undefined;
|
|
9218
9233
|
next_cursor?: string | undefined;
|
|
9219
9234
|
prev_cursor?: string | undefined;
|
|
@@ -9243,6 +9258,8 @@ export declare const ChannelDescList: {
|
|
|
9243
9258
|
sender_id?: string | undefined;
|
|
9244
9259
|
content?: string | undefined;
|
|
9245
9260
|
} | undefined;
|
|
9261
|
+
status?: number | undefined;
|
|
9262
|
+
meeting_code?: string | undefined;
|
|
9246
9263
|
}[] & ({
|
|
9247
9264
|
clan_id?: string | undefined;
|
|
9248
9265
|
parrent_id?: string | undefined;
|
|
@@ -9267,6 +9284,8 @@ export declare const ChannelDescList: {
|
|
|
9267
9284
|
sender_id?: string | undefined;
|
|
9268
9285
|
content?: string | undefined;
|
|
9269
9286
|
} | undefined;
|
|
9287
|
+
status?: number | undefined;
|
|
9288
|
+
meeting_code?: string | undefined;
|
|
9270
9289
|
} & {
|
|
9271
9290
|
clan_id?: string | undefined;
|
|
9272
9291
|
parrent_id?: string | undefined;
|
|
@@ -9301,6 +9320,8 @@ export declare const ChannelDescList: {
|
|
|
9301
9320
|
sender_id?: string | undefined;
|
|
9302
9321
|
content?: string | undefined;
|
|
9303
9322
|
} & { [K_10 in Exclude<keyof I_1["channeldesc"][number]["last_seen_message"], keyof ChannelMessageHeader>]: never; }) | undefined;
|
|
9323
|
+
status?: number | undefined;
|
|
9324
|
+
meeting_code?: string | undefined;
|
|
9304
9325
|
} & { [K_11 in Exclude<keyof I_1["channeldesc"][number], keyof ChannelDescription>]: never; })[] & { [K_12 in Exclude<keyof I_1["channeldesc"], keyof {
|
|
9305
9326
|
clan_id?: string | undefined;
|
|
9306
9327
|
parrent_id?: string | undefined;
|
|
@@ -9325,6 +9346,8 @@ export declare const ChannelDescList: {
|
|
|
9325
9346
|
sender_id?: string | undefined;
|
|
9326
9347
|
content?: string | undefined;
|
|
9327
9348
|
} | undefined;
|
|
9349
|
+
status?: number | undefined;
|
|
9350
|
+
meeting_code?: string | undefined;
|
|
9328
9351
|
}[]>]: never; }) | undefined;
|
|
9329
9352
|
next_cursor?: string | undefined;
|
|
9330
9353
|
prev_cursor?: string | undefined;
|
|
@@ -10027,30 +10050,6 @@ export declare const NotificationUserChannel: {
|
|
|
10027
10050
|
time_mute?: Date | undefined;
|
|
10028
10051
|
} & { [K_1 in Exclude<keyof I_1, keyof NotificationUserChannel>]: never; }>(object: I_1): NotificationUserChannel;
|
|
10029
10052
|
};
|
|
10030
|
-
export declare const NotifiReactMessage: {
|
|
10031
|
-
encode(message: NotifiReactMessage, writer?: _m0.Writer): _m0.Writer;
|
|
10032
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): NotifiReactMessage;
|
|
10033
|
-
fromJSON(object: any): NotifiReactMessage;
|
|
10034
|
-
toJSON(message: NotifiReactMessage): unknown;
|
|
10035
|
-
create<I extends {
|
|
10036
|
-
id?: string | undefined;
|
|
10037
|
-
user_id?: string | undefined;
|
|
10038
|
-
channel_id?: string | undefined;
|
|
10039
|
-
} & {
|
|
10040
|
-
id?: string | undefined;
|
|
10041
|
-
user_id?: string | undefined;
|
|
10042
|
-
channel_id?: string | undefined;
|
|
10043
|
-
} & { [K in Exclude<keyof I, keyof NotifiReactMessage>]: never; }>(base?: I | undefined): NotifiReactMessage;
|
|
10044
|
-
fromPartial<I_1 extends {
|
|
10045
|
-
id?: string | undefined;
|
|
10046
|
-
user_id?: string | undefined;
|
|
10047
|
-
channel_id?: string | undefined;
|
|
10048
|
-
} & {
|
|
10049
|
-
id?: string | undefined;
|
|
10050
|
-
user_id?: string | undefined;
|
|
10051
|
-
channel_id?: string | undefined;
|
|
10052
|
-
} & { [K_1 in Exclude<keyof I_1, keyof NotifiReactMessage>]: never; }>(object: I_1): NotifiReactMessage;
|
|
10053
|
-
};
|
|
10054
10053
|
export declare const DefaultNotificationClan: {
|
|
10055
10054
|
encode(message: DefaultNotificationClan, writer?: _m0.Writer): _m0.Writer;
|
|
10056
10055
|
decode(input: _m0.Reader | Uint8Array, length?: number): DefaultNotificationClan;
|
|
@@ -607,6 +607,8 @@ export interface ChannelCreatedEvent {
|
|
|
607
607
|
channel_label: string;
|
|
608
608
|
/** channel type */
|
|
609
609
|
channel_type: number | undefined;
|
|
610
|
+
/** status */
|
|
611
|
+
status: number;
|
|
610
612
|
}
|
|
611
613
|
export interface ChannelDeletedEvent {
|
|
612
614
|
/** clan id */
|
|
@@ -1103,6 +1105,7 @@ export declare const Envelope: {
|
|
|
1103
1105
|
channel_id?: string | undefined;
|
|
1104
1106
|
channel_label?: string | undefined;
|
|
1105
1107
|
channel_type?: number | undefined;
|
|
1108
|
+
status?: number | undefined;
|
|
1106
1109
|
} | undefined;
|
|
1107
1110
|
channel_deleted_event?: {
|
|
1108
1111
|
clan_id?: string | undefined;
|
|
@@ -2252,6 +2255,7 @@ export declare const Envelope: {
|
|
|
2252
2255
|
channel_id?: string | undefined;
|
|
2253
2256
|
channel_label?: string | undefined;
|
|
2254
2257
|
channel_type?: number | undefined;
|
|
2258
|
+
status?: number | undefined;
|
|
2255
2259
|
} & {
|
|
2256
2260
|
clan_id?: string | undefined;
|
|
2257
2261
|
category_id?: string | undefined;
|
|
@@ -2260,6 +2264,7 @@ export declare const Envelope: {
|
|
|
2260
2264
|
channel_id?: string | undefined;
|
|
2261
2265
|
channel_label?: string | undefined;
|
|
2262
2266
|
channel_type?: number | undefined;
|
|
2267
|
+
status?: number | undefined;
|
|
2263
2268
|
} & { [K_87 in Exclude<keyof I["channel_created_event"], keyof ChannelCreatedEvent>]: never; }) | undefined;
|
|
2264
2269
|
channel_deleted_event?: ({
|
|
2265
2270
|
clan_id?: string | undefined;
|
|
@@ -2700,6 +2705,7 @@ export declare const Envelope: {
|
|
|
2700
2705
|
channel_id?: string | undefined;
|
|
2701
2706
|
channel_label?: string | undefined;
|
|
2702
2707
|
channel_type?: number | undefined;
|
|
2708
|
+
status?: number | undefined;
|
|
2703
2709
|
} | undefined;
|
|
2704
2710
|
channel_deleted_event?: {
|
|
2705
2711
|
clan_id?: string | undefined;
|
|
@@ -3849,6 +3855,7 @@ export declare const Envelope: {
|
|
|
3849
3855
|
channel_id?: string | undefined;
|
|
3850
3856
|
channel_label?: string | undefined;
|
|
3851
3857
|
channel_type?: number | undefined;
|
|
3858
|
+
status?: number | undefined;
|
|
3852
3859
|
} & {
|
|
3853
3860
|
clan_id?: string | undefined;
|
|
3854
3861
|
category_id?: string | undefined;
|
|
@@ -3857,6 +3864,7 @@ export declare const Envelope: {
|
|
|
3857
3864
|
channel_id?: string | undefined;
|
|
3858
3865
|
channel_label?: string | undefined;
|
|
3859
3866
|
channel_type?: number | undefined;
|
|
3867
|
+
status?: number | undefined;
|
|
3860
3868
|
} & { [K_178 in Exclude<keyof I_1["channel_created_event"], keyof ChannelCreatedEvent>]: never; }) | undefined;
|
|
3861
3869
|
channel_deleted_event?: ({
|
|
3862
3870
|
clan_id?: string | undefined;
|
|
@@ -6331,6 +6339,7 @@ export declare const ChannelCreatedEvent: {
|
|
|
6331
6339
|
channel_id?: string | undefined;
|
|
6332
6340
|
channel_label?: string | undefined;
|
|
6333
6341
|
channel_type?: number | undefined;
|
|
6342
|
+
status?: number | undefined;
|
|
6334
6343
|
} & {
|
|
6335
6344
|
clan_id?: string | undefined;
|
|
6336
6345
|
category_id?: string | undefined;
|
|
@@ -6339,6 +6348,7 @@ export declare const ChannelCreatedEvent: {
|
|
|
6339
6348
|
channel_id?: string | undefined;
|
|
6340
6349
|
channel_label?: string | undefined;
|
|
6341
6350
|
channel_type?: number | undefined;
|
|
6351
|
+
status?: number | undefined;
|
|
6342
6352
|
} & { [K in Exclude<keyof I, keyof ChannelCreatedEvent>]: never; }>(base?: I | undefined): ChannelCreatedEvent;
|
|
6343
6353
|
fromPartial<I_1 extends {
|
|
6344
6354
|
clan_id?: string | undefined;
|
|
@@ -6348,6 +6358,7 @@ export declare const ChannelCreatedEvent: {
|
|
|
6348
6358
|
channel_id?: string | undefined;
|
|
6349
6359
|
channel_label?: string | undefined;
|
|
6350
6360
|
channel_type?: number | undefined;
|
|
6361
|
+
status?: number | undefined;
|
|
6351
6362
|
} & {
|
|
6352
6363
|
clan_id?: string | undefined;
|
|
6353
6364
|
category_id?: string | undefined;
|
|
@@ -6356,6 +6367,7 @@ export declare const ChannelCreatedEvent: {
|
|
|
6356
6367
|
channel_id?: string | undefined;
|
|
6357
6368
|
channel_label?: string | undefined;
|
|
6358
6369
|
channel_type?: number | undefined;
|
|
6370
|
+
status?: number | undefined;
|
|
6359
6371
|
} & { [K_1 in Exclude<keyof I_1, keyof ChannelCreatedEvent>]: never; }>(object: I_1): ChannelCreatedEvent;
|
|
6360
6372
|
};
|
|
6361
6373
|
export declare const ChannelDeletedEvent: {
|
|
@@ -2756,7 +2756,7 @@ function createBaseNotification() {
|
|
|
2756
2756
|
persistent: false,
|
|
2757
2757
|
clan_id: "",
|
|
2758
2758
|
channel_id: "",
|
|
2759
|
-
|
|
2759
|
+
channel_type: ""
|
|
2760
2760
|
};
|
|
2761
2761
|
}
|
|
2762
2762
|
var Notification = {
|
|
@@ -2788,8 +2788,8 @@ var Notification = {
|
|
|
2788
2788
|
if (message.channel_id !== "") {
|
|
2789
2789
|
writer.uint32(74).string(message.channel_id);
|
|
2790
2790
|
}
|
|
2791
|
-
if (message.
|
|
2792
|
-
writer.uint32(82).string(message.
|
|
2791
|
+
if (message.channel_type !== "") {
|
|
2792
|
+
writer.uint32(82).string(message.channel_type);
|
|
2793
2793
|
}
|
|
2794
2794
|
return writer;
|
|
2795
2795
|
},
|
|
@@ -2828,7 +2828,7 @@ var Notification = {
|
|
|
2828
2828
|
message.channel_id = reader.string();
|
|
2829
2829
|
break;
|
|
2830
2830
|
case 10:
|
|
2831
|
-
message.
|
|
2831
|
+
message.channel_type = reader.string();
|
|
2832
2832
|
break;
|
|
2833
2833
|
default:
|
|
2834
2834
|
reader.skipType(tag & 7);
|
|
@@ -2848,7 +2848,7 @@ var Notification = {
|
|
|
2848
2848
|
persistent: isSet3(object.persistent) ? Boolean(object.persistent) : false,
|
|
2849
2849
|
clan_id: isSet3(object.clan_id) ? String(object.clan_id) : "",
|
|
2850
2850
|
channel_id: isSet3(object.channel_id) ? String(object.channel_id) : "",
|
|
2851
|
-
|
|
2851
|
+
channel_type: isSet3(object.channel_type) ? String(object.channel_type) : ""
|
|
2852
2852
|
};
|
|
2853
2853
|
},
|
|
2854
2854
|
toJSON(message) {
|
|
@@ -2862,7 +2862,7 @@ var Notification = {
|
|
|
2862
2862
|
message.persistent !== void 0 && (obj.persistent = message.persistent);
|
|
2863
2863
|
message.clan_id !== void 0 && (obj.clan_id = message.clan_id);
|
|
2864
2864
|
message.channel_id !== void 0 && (obj.channel_id = message.channel_id);
|
|
2865
|
-
message.
|
|
2865
|
+
message.channel_type !== void 0 && (obj.channel_type = message.channel_type);
|
|
2866
2866
|
return obj;
|
|
2867
2867
|
},
|
|
2868
2868
|
create(base) {
|
|
@@ -2880,7 +2880,7 @@ var Notification = {
|
|
|
2880
2880
|
message.persistent = (_g = object.persistent) != null ? _g : false;
|
|
2881
2881
|
message.clan_id = (_h = object.clan_id) != null ? _h : "";
|
|
2882
2882
|
message.channel_id = (_i = object.channel_id) != null ? _i : "";
|
|
2883
|
-
message.
|
|
2883
|
+
message.channel_type = (_j = object.channel_type) != null ? _j : "";
|
|
2884
2884
|
return message;
|
|
2885
2885
|
}
|
|
2886
2886
|
};
|
|
@@ -6291,7 +6291,8 @@ function createBaseChannelCreatedEvent() {
|
|
|
6291
6291
|
parrent_id: "",
|
|
6292
6292
|
channel_id: "",
|
|
6293
6293
|
channel_label: "",
|
|
6294
|
-
channel_type: void 0
|
|
6294
|
+
channel_type: void 0,
|
|
6295
|
+
status: 0
|
|
6295
6296
|
};
|
|
6296
6297
|
}
|
|
6297
6298
|
var ChannelCreatedEvent = {
|
|
@@ -6317,6 +6318,9 @@ var ChannelCreatedEvent = {
|
|
|
6317
6318
|
if (message.channel_type !== void 0) {
|
|
6318
6319
|
Int32Value.encode({ value: message.channel_type }, writer.uint32(58).fork()).ldelim();
|
|
6319
6320
|
}
|
|
6321
|
+
if (message.status !== 0) {
|
|
6322
|
+
writer.uint32(64).int32(message.status);
|
|
6323
|
+
}
|
|
6320
6324
|
return writer;
|
|
6321
6325
|
},
|
|
6322
6326
|
decode(input, length) {
|
|
@@ -6347,6 +6351,9 @@ var ChannelCreatedEvent = {
|
|
|
6347
6351
|
case 7:
|
|
6348
6352
|
message.channel_type = Int32Value.decode(reader, reader.uint32()).value;
|
|
6349
6353
|
break;
|
|
6354
|
+
case 8:
|
|
6355
|
+
message.status = reader.int32();
|
|
6356
|
+
break;
|
|
6350
6357
|
default:
|
|
6351
6358
|
reader.skipType(tag & 7);
|
|
6352
6359
|
break;
|
|
@@ -6362,7 +6369,8 @@ var ChannelCreatedEvent = {
|
|
|
6362
6369
|
parrent_id: isSet4(object.parrent_id) ? String(object.parrent_id) : "",
|
|
6363
6370
|
channel_id: isSet4(object.channel_id) ? String(object.channel_id) : "",
|
|
6364
6371
|
channel_label: isSet4(object.channel_label) ? String(object.channel_label) : "",
|
|
6365
|
-
channel_type: isSet4(object.channel_type) ? Number(object.channel_type) : void 0
|
|
6372
|
+
channel_type: isSet4(object.channel_type) ? Number(object.channel_type) : void 0,
|
|
6373
|
+
status: isSet4(object.status) ? Number(object.status) : 0
|
|
6366
6374
|
};
|
|
6367
6375
|
},
|
|
6368
6376
|
toJSON(message) {
|
|
@@ -6374,13 +6382,14 @@ var ChannelCreatedEvent = {
|
|
|
6374
6382
|
message.channel_id !== void 0 && (obj.channel_id = message.channel_id);
|
|
6375
6383
|
message.channel_label !== void 0 && (obj.channel_label = message.channel_label);
|
|
6376
6384
|
message.channel_type !== void 0 && (obj.channel_type = message.channel_type);
|
|
6385
|
+
message.status !== void 0 && (obj.status = Math.round(message.status));
|
|
6377
6386
|
return obj;
|
|
6378
6387
|
},
|
|
6379
6388
|
create(base) {
|
|
6380
6389
|
return ChannelCreatedEvent.fromPartial(base != null ? base : {});
|
|
6381
6390
|
},
|
|
6382
6391
|
fromPartial(object) {
|
|
6383
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
6392
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
6384
6393
|
const message = createBaseChannelCreatedEvent();
|
|
6385
6394
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
6386
6395
|
message.category_id = (_b = object.category_id) != null ? _b : "";
|
|
@@ -6389,6 +6398,7 @@ var ChannelCreatedEvent = {
|
|
|
6389
6398
|
message.channel_id = (_e = object.channel_id) != null ? _e : "";
|
|
6390
6399
|
message.channel_label = (_f = object.channel_label) != null ? _f : "";
|
|
6391
6400
|
message.channel_type = (_g = object.channel_type) != null ? _g : void 0;
|
|
6401
|
+
message.status = (_h = object.status) != null ? _h : 0;
|
|
6392
6402
|
return message;
|
|
6393
6403
|
}
|
|
6394
6404
|
};
|