mezon-js-protobuf 1.7.17 → 1.7.18
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
|
@@ -1334,7 +1334,11 @@ export interface Notification {
|
|
|
1334
1334
|
/** */
|
|
1335
1335
|
avatar_url: string;
|
|
1336
1336
|
/** */
|
|
1337
|
-
channel:
|
|
1337
|
+
channel:
|
|
1338
|
+
| ChannelDescription
|
|
1339
|
+
| undefined;
|
|
1340
|
+
/** */
|
|
1341
|
+
topic_id: string;
|
|
1338
1342
|
}
|
|
1339
1343
|
|
|
1340
1344
|
/** A collection of zero or more notifications. */
|
|
@@ -12870,6 +12874,7 @@ function createBaseNotification(): Notification {
|
|
|
12870
12874
|
channel_type: 0,
|
|
12871
12875
|
avatar_url: "",
|
|
12872
12876
|
channel: undefined,
|
|
12877
|
+
topic_id: "",
|
|
12873
12878
|
};
|
|
12874
12879
|
}
|
|
12875
12880
|
|
|
@@ -12911,6 +12916,9 @@ export const Notification = {
|
|
|
12911
12916
|
if (message.channel !== undefined) {
|
|
12912
12917
|
ChannelDescription.encode(message.channel, writer.uint32(98).fork()).ldelim();
|
|
12913
12918
|
}
|
|
12919
|
+
if (message.topic_id !== "") {
|
|
12920
|
+
writer.uint32(106).string(message.topic_id);
|
|
12921
|
+
}
|
|
12914
12922
|
return writer;
|
|
12915
12923
|
},
|
|
12916
12924
|
|
|
@@ -13005,6 +13013,13 @@ export const Notification = {
|
|
|
13005
13013
|
|
|
13006
13014
|
message.channel = ChannelDescription.decode(reader, reader.uint32());
|
|
13007
13015
|
continue;
|
|
13016
|
+
case 13:
|
|
13017
|
+
if (tag !== 106) {
|
|
13018
|
+
break;
|
|
13019
|
+
}
|
|
13020
|
+
|
|
13021
|
+
message.topic_id = reader.string();
|
|
13022
|
+
continue;
|
|
13008
13023
|
}
|
|
13009
13024
|
if ((tag & 7) === 4 || tag === 0) {
|
|
13010
13025
|
break;
|
|
@@ -13028,6 +13043,7 @@ export const Notification = {
|
|
|
13028
13043
|
channel_type: isSet(object.channel_type) ? globalThis.Number(object.channel_type) : 0,
|
|
13029
13044
|
avatar_url: isSet(object.avatar_url) ? globalThis.String(object.avatar_url) : "",
|
|
13030
13045
|
channel: isSet(object.channel) ? ChannelDescription.fromJSON(object.channel) : undefined,
|
|
13046
|
+
topic_id: isSet(object.topic_id) ? globalThis.String(object.topic_id) : "",
|
|
13031
13047
|
};
|
|
13032
13048
|
},
|
|
13033
13049
|
|
|
@@ -13069,6 +13085,9 @@ export const Notification = {
|
|
|
13069
13085
|
if (message.channel !== undefined) {
|
|
13070
13086
|
obj.channel = ChannelDescription.toJSON(message.channel);
|
|
13071
13087
|
}
|
|
13088
|
+
if (message.topic_id !== "") {
|
|
13089
|
+
obj.topic_id = message.topic_id;
|
|
13090
|
+
}
|
|
13072
13091
|
return obj;
|
|
13073
13092
|
},
|
|
13074
13093
|
|
|
@@ -13091,6 +13110,7 @@ export const Notification = {
|
|
|
13091
13110
|
message.channel = (object.channel !== undefined && object.channel !== null)
|
|
13092
13111
|
? ChannelDescription.fromPartial(object.channel)
|
|
13093
13112
|
: undefined;
|
|
13113
|
+
message.topic_id = object.topic_id ?? "";
|
|
13094
13114
|
return message;
|
|
13095
13115
|
},
|
|
13096
13116
|
};
|
|
@@ -972,6 +972,8 @@ export interface Notification {
|
|
|
972
972
|
avatar_url: string;
|
|
973
973
|
/** */
|
|
974
974
|
channel: ChannelDescription | undefined;
|
|
975
|
+
/** */
|
|
976
|
+
topic_id: string;
|
|
975
977
|
}
|
|
976
978
|
/** A collection of zero or more notifications. */
|
|
977
979
|
export interface NotificationList {
|
|
@@ -8815,6 +8817,7 @@ export declare const Notification: {
|
|
|
8815
8817
|
e2ee?: number | undefined;
|
|
8816
8818
|
display_names?: string[] | undefined;
|
|
8817
8819
|
} | undefined;
|
|
8820
|
+
topic_id?: string | undefined;
|
|
8818
8821
|
} & {
|
|
8819
8822
|
id?: string | undefined;
|
|
8820
8823
|
subject?: string | undefined;
|
|
@@ -8952,6 +8955,7 @@ export declare const Notification: {
|
|
|
8952
8955
|
e2ee?: number | undefined;
|
|
8953
8956
|
display_names?: (string[] & string[] & { [K_10 in Exclude<keyof I["channel"]["display_names"], keyof string[]>]: never; }) | undefined;
|
|
8954
8957
|
} & { [K_11 in Exclude<keyof I["channel"], keyof ChannelDescription>]: never; }) | undefined;
|
|
8958
|
+
topic_id?: string | undefined;
|
|
8955
8959
|
} & { [K_12 in Exclude<keyof I, keyof Notification>]: never; }>(base?: I | undefined): Notification;
|
|
8956
8960
|
fromPartial<I_1 extends {
|
|
8957
8961
|
id?: string | undefined;
|
|
@@ -9018,6 +9022,7 @@ export declare const Notification: {
|
|
|
9018
9022
|
e2ee?: number | undefined;
|
|
9019
9023
|
display_names?: string[] | undefined;
|
|
9020
9024
|
} | undefined;
|
|
9025
|
+
topic_id?: string | undefined;
|
|
9021
9026
|
} & {
|
|
9022
9027
|
id?: string | undefined;
|
|
9023
9028
|
subject?: string | undefined;
|
|
@@ -9155,6 +9160,7 @@ export declare const Notification: {
|
|
|
9155
9160
|
e2ee?: number | undefined;
|
|
9156
9161
|
display_names?: (string[] & string[] & { [K_23 in Exclude<keyof I_1["channel"]["display_names"], keyof string[]>]: never; }) | undefined;
|
|
9157
9162
|
} & { [K_24 in Exclude<keyof I_1["channel"], keyof ChannelDescription>]: never; }) | undefined;
|
|
9163
|
+
topic_id?: string | undefined;
|
|
9158
9164
|
} & { [K_25 in Exclude<keyof I_1, keyof Notification>]: never; }>(object: I_1): Notification;
|
|
9159
9165
|
};
|
|
9160
9166
|
export declare const NotificationList: {
|
|
@@ -9228,6 +9234,7 @@ export declare const NotificationList: {
|
|
|
9228
9234
|
e2ee?: number | undefined;
|
|
9229
9235
|
display_names?: string[] | undefined;
|
|
9230
9236
|
} | undefined;
|
|
9237
|
+
topic_id?: string | undefined;
|
|
9231
9238
|
}[] | undefined;
|
|
9232
9239
|
cacheable_cursor?: string | undefined;
|
|
9233
9240
|
} & {
|
|
@@ -9296,6 +9303,7 @@ export declare const NotificationList: {
|
|
|
9296
9303
|
e2ee?: number | undefined;
|
|
9297
9304
|
display_names?: string[] | undefined;
|
|
9298
9305
|
} | undefined;
|
|
9306
|
+
topic_id?: string | undefined;
|
|
9299
9307
|
}[] & ({
|
|
9300
9308
|
id?: string | undefined;
|
|
9301
9309
|
subject?: string | undefined;
|
|
@@ -9361,6 +9369,7 @@ export declare const NotificationList: {
|
|
|
9361
9369
|
e2ee?: number | undefined;
|
|
9362
9370
|
display_names?: string[] | undefined;
|
|
9363
9371
|
} | undefined;
|
|
9372
|
+
topic_id?: string | undefined;
|
|
9364
9373
|
} & {
|
|
9365
9374
|
id?: string | undefined;
|
|
9366
9375
|
subject?: string | undefined;
|
|
@@ -9498,6 +9507,7 @@ export declare const NotificationList: {
|
|
|
9498
9507
|
e2ee?: number | undefined;
|
|
9499
9508
|
display_names?: (string[] & string[] & { [K_10 in Exclude<keyof I["notifications"][number]["channel"]["display_names"], keyof string[]>]: never; }) | undefined;
|
|
9500
9509
|
} & { [K_11 in Exclude<keyof I["notifications"][number]["channel"], keyof ChannelDescription>]: never; }) | undefined;
|
|
9510
|
+
topic_id?: string | undefined;
|
|
9501
9511
|
} & { [K_12 in Exclude<keyof I["notifications"][number], keyof Notification>]: never; })[] & { [K_13 in Exclude<keyof I["notifications"], keyof {
|
|
9502
9512
|
id?: string | undefined;
|
|
9503
9513
|
subject?: string | undefined;
|
|
@@ -9563,6 +9573,7 @@ export declare const NotificationList: {
|
|
|
9563
9573
|
e2ee?: number | undefined;
|
|
9564
9574
|
display_names?: string[] | undefined;
|
|
9565
9575
|
} | undefined;
|
|
9576
|
+
topic_id?: string | undefined;
|
|
9566
9577
|
}[]>]: never; }) | undefined;
|
|
9567
9578
|
cacheable_cursor?: string | undefined;
|
|
9568
9579
|
} & { [K_14 in Exclude<keyof I, keyof NotificationList>]: never; }>(base?: I | undefined): NotificationList;
|
|
@@ -9632,6 +9643,7 @@ export declare const NotificationList: {
|
|
|
9632
9643
|
e2ee?: number | undefined;
|
|
9633
9644
|
display_names?: string[] | undefined;
|
|
9634
9645
|
} | undefined;
|
|
9646
|
+
topic_id?: string | undefined;
|
|
9635
9647
|
}[] | undefined;
|
|
9636
9648
|
cacheable_cursor?: string | undefined;
|
|
9637
9649
|
} & {
|
|
@@ -9700,6 +9712,7 @@ export declare const NotificationList: {
|
|
|
9700
9712
|
e2ee?: number | undefined;
|
|
9701
9713
|
display_names?: string[] | undefined;
|
|
9702
9714
|
} | undefined;
|
|
9715
|
+
topic_id?: string | undefined;
|
|
9703
9716
|
}[] & ({
|
|
9704
9717
|
id?: string | undefined;
|
|
9705
9718
|
subject?: string | undefined;
|
|
@@ -9765,6 +9778,7 @@ export declare const NotificationList: {
|
|
|
9765
9778
|
e2ee?: number | undefined;
|
|
9766
9779
|
display_names?: string[] | undefined;
|
|
9767
9780
|
} | undefined;
|
|
9781
|
+
topic_id?: string | undefined;
|
|
9768
9782
|
} & {
|
|
9769
9783
|
id?: string | undefined;
|
|
9770
9784
|
subject?: string | undefined;
|
|
@@ -9902,6 +9916,7 @@ export declare const NotificationList: {
|
|
|
9902
9916
|
e2ee?: number | undefined;
|
|
9903
9917
|
display_names?: (string[] & string[] & { [K_25 in Exclude<keyof I_1["notifications"][number]["channel"]["display_names"], keyof string[]>]: never; }) | undefined;
|
|
9904
9918
|
} & { [K_26 in Exclude<keyof I_1["notifications"][number]["channel"], keyof ChannelDescription>]: never; }) | undefined;
|
|
9919
|
+
topic_id?: string | undefined;
|
|
9905
9920
|
} & { [K_27 in Exclude<keyof I_1["notifications"][number], keyof Notification>]: never; })[] & { [K_28 in Exclude<keyof I_1["notifications"], keyof {
|
|
9906
9921
|
id?: string | undefined;
|
|
9907
9922
|
subject?: string | undefined;
|
|
@@ -9967,6 +9982,7 @@ export declare const NotificationList: {
|
|
|
9967
9982
|
e2ee?: number | undefined;
|
|
9968
9983
|
display_names?: string[] | undefined;
|
|
9969
9984
|
} | undefined;
|
|
9985
|
+
topic_id?: string | undefined;
|
|
9970
9986
|
}[]>]: never; }) | undefined;
|
|
9971
9987
|
cacheable_cursor?: string | undefined;
|
|
9972
9988
|
} & { [K_29 in Exclude<keyof I_1, keyof NotificationList>]: never; }>(object: I_1): NotificationList;
|
|
@@ -1291,6 +1291,7 @@ export declare const Envelope: {
|
|
|
1291
1291
|
e2ee?: number | undefined;
|
|
1292
1292
|
display_names?: string[] | undefined;
|
|
1293
1293
|
} | undefined;
|
|
1294
|
+
topic_id?: string | undefined;
|
|
1294
1295
|
}[] | undefined;
|
|
1295
1296
|
} | undefined;
|
|
1296
1297
|
rpc?: {
|
|
@@ -2576,6 +2577,7 @@ export declare const Envelope: {
|
|
|
2576
2577
|
e2ee?: number | undefined;
|
|
2577
2578
|
display_names?: string[] | undefined;
|
|
2578
2579
|
} | undefined;
|
|
2580
|
+
topic_id?: string | undefined;
|
|
2579
2581
|
}[] | undefined;
|
|
2580
2582
|
} & {
|
|
2581
2583
|
notifications?: ({
|
|
@@ -2643,6 +2645,7 @@ export declare const Envelope: {
|
|
|
2643
2645
|
e2ee?: number | undefined;
|
|
2644
2646
|
display_names?: string[] | undefined;
|
|
2645
2647
|
} | undefined;
|
|
2648
|
+
topic_id?: string | undefined;
|
|
2646
2649
|
}[] & ({
|
|
2647
2650
|
id?: string | undefined;
|
|
2648
2651
|
subject?: string | undefined;
|
|
@@ -2708,6 +2711,7 @@ export declare const Envelope: {
|
|
|
2708
2711
|
e2ee?: number | undefined;
|
|
2709
2712
|
display_names?: string[] | undefined;
|
|
2710
2713
|
} | undefined;
|
|
2714
|
+
topic_id?: string | undefined;
|
|
2711
2715
|
} & {
|
|
2712
2716
|
id?: string | undefined;
|
|
2713
2717
|
subject?: string | undefined;
|
|
@@ -2845,6 +2849,7 @@ export declare const Envelope: {
|
|
|
2845
2849
|
e2ee?: number | undefined;
|
|
2846
2850
|
display_names?: (string[] & string[] & { [K_39 in Exclude<keyof I["notifications"]["notifications"][number]["channel"]["display_names"], keyof string[]>]: never; }) | undefined;
|
|
2847
2851
|
} & { [K_40 in Exclude<keyof I["notifications"]["notifications"][number]["channel"], keyof ChannelDescription1>]: never; }) | undefined;
|
|
2852
|
+
topic_id?: string | undefined;
|
|
2848
2853
|
} & { [K_41 in Exclude<keyof I["notifications"]["notifications"][number], keyof Notification>]: never; })[] & { [K_42 in Exclude<keyof I["notifications"]["notifications"], keyof {
|
|
2849
2854
|
id?: string | undefined;
|
|
2850
2855
|
subject?: string | undefined;
|
|
@@ -2910,6 +2915,7 @@ export declare const Envelope: {
|
|
|
2910
2915
|
e2ee?: number | undefined;
|
|
2911
2916
|
display_names?: string[] | undefined;
|
|
2912
2917
|
} | undefined;
|
|
2918
|
+
topic_id?: string | undefined;
|
|
2913
2919
|
}[]>]: never; }) | undefined;
|
|
2914
2920
|
} & { [K_43 in Exclude<keyof I["notifications"], "notifications">]: never; }) | undefined;
|
|
2915
2921
|
rpc?: ({
|
|
@@ -4890,6 +4896,7 @@ export declare const Envelope: {
|
|
|
4890
4896
|
e2ee?: number | undefined;
|
|
4891
4897
|
display_names?: string[] | undefined;
|
|
4892
4898
|
} | undefined;
|
|
4899
|
+
topic_id?: string | undefined;
|
|
4893
4900
|
}[] | undefined;
|
|
4894
4901
|
} | undefined;
|
|
4895
4902
|
rpc?: {
|
|
@@ -6175,6 +6182,7 @@ export declare const Envelope: {
|
|
|
6175
6182
|
e2ee?: number | undefined;
|
|
6176
6183
|
display_names?: string[] | undefined;
|
|
6177
6184
|
} | undefined;
|
|
6185
|
+
topic_id?: string | undefined;
|
|
6178
6186
|
}[] | undefined;
|
|
6179
6187
|
} & {
|
|
6180
6188
|
notifications?: ({
|
|
@@ -6242,6 +6250,7 @@ export declare const Envelope: {
|
|
|
6242
6250
|
e2ee?: number | undefined;
|
|
6243
6251
|
display_names?: string[] | undefined;
|
|
6244
6252
|
} | undefined;
|
|
6253
|
+
topic_id?: string | undefined;
|
|
6245
6254
|
}[] & ({
|
|
6246
6255
|
id?: string | undefined;
|
|
6247
6256
|
subject?: string | undefined;
|
|
@@ -6307,6 +6316,7 @@ export declare const Envelope: {
|
|
|
6307
6316
|
e2ee?: number | undefined;
|
|
6308
6317
|
display_names?: string[] | undefined;
|
|
6309
6318
|
} | undefined;
|
|
6319
|
+
topic_id?: string | undefined;
|
|
6310
6320
|
} & {
|
|
6311
6321
|
id?: string | undefined;
|
|
6312
6322
|
subject?: string | undefined;
|
|
@@ -6444,6 +6454,7 @@ export declare const Envelope: {
|
|
|
6444
6454
|
e2ee?: number | undefined;
|
|
6445
6455
|
display_names?: (string[] & string[] & { [K_210 in Exclude<keyof I_1["notifications"]["notifications"][number]["channel"]["display_names"], keyof string[]>]: never; }) | undefined;
|
|
6446
6456
|
} & { [K_211 in Exclude<keyof I_1["notifications"]["notifications"][number]["channel"], keyof ChannelDescription1>]: never; }) | undefined;
|
|
6457
|
+
topic_id?: string | undefined;
|
|
6447
6458
|
} & { [K_212 in Exclude<keyof I_1["notifications"]["notifications"][number], keyof Notification>]: never; })[] & { [K_213 in Exclude<keyof I_1["notifications"]["notifications"], keyof {
|
|
6448
6459
|
id?: string | undefined;
|
|
6449
6460
|
subject?: string | undefined;
|
|
@@ -6509,6 +6520,7 @@ export declare const Envelope: {
|
|
|
6509
6520
|
e2ee?: number | undefined;
|
|
6510
6521
|
display_names?: string[] | undefined;
|
|
6511
6522
|
} | undefined;
|
|
6523
|
+
topic_id?: string | undefined;
|
|
6512
6524
|
}[]>]: never; }) | undefined;
|
|
6513
6525
|
} & { [K_214 in Exclude<keyof I_1["notifications"], "notifications">]: never; }) | undefined;
|
|
6514
6526
|
rpc?: ({
|
|
@@ -9957,6 +9969,7 @@ export declare const Notifications: {
|
|
|
9957
9969
|
e2ee?: number | undefined;
|
|
9958
9970
|
display_names?: string[] | undefined;
|
|
9959
9971
|
} | undefined;
|
|
9972
|
+
topic_id?: string | undefined;
|
|
9960
9973
|
}[] | undefined;
|
|
9961
9974
|
} & {
|
|
9962
9975
|
notifications?: ({
|
|
@@ -10024,6 +10037,7 @@ export declare const Notifications: {
|
|
|
10024
10037
|
e2ee?: number | undefined;
|
|
10025
10038
|
display_names?: string[] | undefined;
|
|
10026
10039
|
} | undefined;
|
|
10040
|
+
topic_id?: string | undefined;
|
|
10027
10041
|
}[] & ({
|
|
10028
10042
|
id?: string | undefined;
|
|
10029
10043
|
subject?: string | undefined;
|
|
@@ -10089,6 +10103,7 @@ export declare const Notifications: {
|
|
|
10089
10103
|
e2ee?: number | undefined;
|
|
10090
10104
|
display_names?: string[] | undefined;
|
|
10091
10105
|
} | undefined;
|
|
10106
|
+
topic_id?: string | undefined;
|
|
10092
10107
|
} & {
|
|
10093
10108
|
id?: string | undefined;
|
|
10094
10109
|
subject?: string | undefined;
|
|
@@ -10226,6 +10241,7 @@ export declare const Notifications: {
|
|
|
10226
10241
|
e2ee?: number | undefined;
|
|
10227
10242
|
display_names?: (string[] & string[] & { [K_10 in Exclude<keyof I["notifications"][number]["channel"]["display_names"], keyof string[]>]: never; }) | undefined;
|
|
10228
10243
|
} & { [K_11 in Exclude<keyof I["notifications"][number]["channel"], keyof ChannelDescription1>]: never; }) | undefined;
|
|
10244
|
+
topic_id?: string | undefined;
|
|
10229
10245
|
} & { [K_12 in Exclude<keyof I["notifications"][number], keyof Notification>]: never; })[] & { [K_13 in Exclude<keyof I["notifications"], keyof {
|
|
10230
10246
|
id?: string | undefined;
|
|
10231
10247
|
subject?: string | undefined;
|
|
@@ -10291,6 +10307,7 @@ export declare const Notifications: {
|
|
|
10291
10307
|
e2ee?: number | undefined;
|
|
10292
10308
|
display_names?: string[] | undefined;
|
|
10293
10309
|
} | undefined;
|
|
10310
|
+
topic_id?: string | undefined;
|
|
10294
10311
|
}[]>]: never; }) | undefined;
|
|
10295
10312
|
} & { [K_14 in Exclude<keyof I, "notifications">]: never; }>(base?: I | undefined): Notifications;
|
|
10296
10313
|
fromPartial<I_1 extends {
|
|
@@ -10359,6 +10376,7 @@ export declare const Notifications: {
|
|
|
10359
10376
|
e2ee?: number | undefined;
|
|
10360
10377
|
display_names?: string[] | undefined;
|
|
10361
10378
|
} | undefined;
|
|
10379
|
+
topic_id?: string | undefined;
|
|
10362
10380
|
}[] | undefined;
|
|
10363
10381
|
} & {
|
|
10364
10382
|
notifications?: ({
|
|
@@ -10426,6 +10444,7 @@ export declare const Notifications: {
|
|
|
10426
10444
|
e2ee?: number | undefined;
|
|
10427
10445
|
display_names?: string[] | undefined;
|
|
10428
10446
|
} | undefined;
|
|
10447
|
+
topic_id?: string | undefined;
|
|
10429
10448
|
}[] & ({
|
|
10430
10449
|
id?: string | undefined;
|
|
10431
10450
|
subject?: string | undefined;
|
|
@@ -10491,6 +10510,7 @@ export declare const Notifications: {
|
|
|
10491
10510
|
e2ee?: number | undefined;
|
|
10492
10511
|
display_names?: string[] | undefined;
|
|
10493
10512
|
} | undefined;
|
|
10513
|
+
topic_id?: string | undefined;
|
|
10494
10514
|
} & {
|
|
10495
10515
|
id?: string | undefined;
|
|
10496
10516
|
subject?: string | undefined;
|
|
@@ -10628,6 +10648,7 @@ export declare const Notifications: {
|
|
|
10628
10648
|
e2ee?: number | undefined;
|
|
10629
10649
|
display_names?: (string[] & string[] & { [K_25 in Exclude<keyof I_1["notifications"][number]["channel"]["display_names"], keyof string[]>]: never; }) | undefined;
|
|
10630
10650
|
} & { [K_26 in Exclude<keyof I_1["notifications"][number]["channel"], keyof ChannelDescription1>]: never; }) | undefined;
|
|
10651
|
+
topic_id?: string | undefined;
|
|
10631
10652
|
} & { [K_27 in Exclude<keyof I_1["notifications"][number], keyof Notification>]: never; })[] & { [K_28 in Exclude<keyof I_1["notifications"], keyof {
|
|
10632
10653
|
id?: string | undefined;
|
|
10633
10654
|
subject?: string | undefined;
|
|
@@ -10693,6 +10714,7 @@ export declare const Notifications: {
|
|
|
10693
10714
|
e2ee?: number | undefined;
|
|
10694
10715
|
display_names?: string[] | undefined;
|
|
10695
10716
|
} | undefined;
|
|
10717
|
+
topic_id?: string | undefined;
|
|
10696
10718
|
}[]>]: never; }) | undefined;
|
|
10697
10719
|
} & { [K_29 in Exclude<keyof I_1, "notifications">]: never; }>(object: I_1): Notifications;
|
|
10698
10720
|
};
|
|
@@ -3717,7 +3717,8 @@ function createBaseNotification() {
|
|
|
3717
3717
|
channel_id: "",
|
|
3718
3718
|
channel_type: 0,
|
|
3719
3719
|
avatar_url: "",
|
|
3720
|
-
channel: void 0
|
|
3720
|
+
channel: void 0,
|
|
3721
|
+
topic_id: ""
|
|
3721
3722
|
};
|
|
3722
3723
|
}
|
|
3723
3724
|
var Notification = {
|
|
@@ -3758,6 +3759,9 @@ var Notification = {
|
|
|
3758
3759
|
if (message.channel !== void 0) {
|
|
3759
3760
|
ChannelDescription.encode(message.channel, writer.uint32(98).fork()).ldelim();
|
|
3760
3761
|
}
|
|
3762
|
+
if (message.topic_id !== "") {
|
|
3763
|
+
writer.uint32(106).string(message.topic_id);
|
|
3764
|
+
}
|
|
3761
3765
|
return writer;
|
|
3762
3766
|
},
|
|
3763
3767
|
decode(input, length) {
|
|
@@ -3839,6 +3843,12 @@ var Notification = {
|
|
|
3839
3843
|
}
|
|
3840
3844
|
message.channel = ChannelDescription.decode(reader, reader.uint32());
|
|
3841
3845
|
continue;
|
|
3846
|
+
case 13:
|
|
3847
|
+
if (tag !== 106) {
|
|
3848
|
+
break;
|
|
3849
|
+
}
|
|
3850
|
+
message.topic_id = reader.string();
|
|
3851
|
+
continue;
|
|
3842
3852
|
}
|
|
3843
3853
|
if ((tag & 7) === 4 || tag === 0) {
|
|
3844
3854
|
break;
|
|
@@ -3860,7 +3870,8 @@ var Notification = {
|
|
|
3860
3870
|
channel_id: isSet3(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
3861
3871
|
channel_type: isSet3(object.channel_type) ? globalThis.Number(object.channel_type) : 0,
|
|
3862
3872
|
avatar_url: isSet3(object.avatar_url) ? globalThis.String(object.avatar_url) : "",
|
|
3863
|
-
channel: isSet3(object.channel) ? ChannelDescription.fromJSON(object.channel) : void 0
|
|
3873
|
+
channel: isSet3(object.channel) ? ChannelDescription.fromJSON(object.channel) : void 0,
|
|
3874
|
+
topic_id: isSet3(object.topic_id) ? globalThis.String(object.topic_id) : ""
|
|
3864
3875
|
};
|
|
3865
3876
|
},
|
|
3866
3877
|
toJSON(message) {
|
|
@@ -3901,13 +3912,16 @@ var Notification = {
|
|
|
3901
3912
|
if (message.channel !== void 0) {
|
|
3902
3913
|
obj.channel = ChannelDescription.toJSON(message.channel);
|
|
3903
3914
|
}
|
|
3915
|
+
if (message.topic_id !== "") {
|
|
3916
|
+
obj.topic_id = message.topic_id;
|
|
3917
|
+
}
|
|
3904
3918
|
return obj;
|
|
3905
3919
|
},
|
|
3906
3920
|
create(base) {
|
|
3907
3921
|
return Notification.fromPartial(base != null ? base : {});
|
|
3908
3922
|
},
|
|
3909
3923
|
fromPartial(object) {
|
|
3910
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
3924
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
3911
3925
|
const message = createBaseNotification();
|
|
3912
3926
|
message.id = (_a = object.id) != null ? _a : "";
|
|
3913
3927
|
message.subject = (_b = object.subject) != null ? _b : "";
|
|
@@ -3921,6 +3935,7 @@ var Notification = {
|
|
|
3921
3935
|
message.channel_type = (_j = object.channel_type) != null ? _j : 0;
|
|
3922
3936
|
message.avatar_url = (_k = object.avatar_url) != null ? _k : "";
|
|
3923
3937
|
message.channel = object.channel !== void 0 && object.channel !== null ? ChannelDescription.fromPartial(object.channel) : void 0;
|
|
3938
|
+
message.topic_id = (_l = object.topic_id) != null ? _l : "";
|
|
3924
3939
|
return message;
|
|
3925
3940
|
}
|
|
3926
3941
|
};
|
|
@@ -3704,7 +3704,8 @@ function createBaseNotification() {
|
|
|
3704
3704
|
channel_id: "",
|
|
3705
3705
|
channel_type: 0,
|
|
3706
3706
|
avatar_url: "",
|
|
3707
|
-
channel: void 0
|
|
3707
|
+
channel: void 0,
|
|
3708
|
+
topic_id: ""
|
|
3708
3709
|
};
|
|
3709
3710
|
}
|
|
3710
3711
|
var Notification = {
|
|
@@ -3745,6 +3746,9 @@ var Notification = {
|
|
|
3745
3746
|
if (message.channel !== void 0) {
|
|
3746
3747
|
ChannelDescription.encode(message.channel, writer.uint32(98).fork()).ldelim();
|
|
3747
3748
|
}
|
|
3749
|
+
if (message.topic_id !== "") {
|
|
3750
|
+
writer.uint32(106).string(message.topic_id);
|
|
3751
|
+
}
|
|
3748
3752
|
return writer;
|
|
3749
3753
|
},
|
|
3750
3754
|
decode(input, length) {
|
|
@@ -3826,6 +3830,12 @@ var Notification = {
|
|
|
3826
3830
|
}
|
|
3827
3831
|
message.channel = ChannelDescription.decode(reader, reader.uint32());
|
|
3828
3832
|
continue;
|
|
3833
|
+
case 13:
|
|
3834
|
+
if (tag !== 106) {
|
|
3835
|
+
break;
|
|
3836
|
+
}
|
|
3837
|
+
message.topic_id = reader.string();
|
|
3838
|
+
continue;
|
|
3829
3839
|
}
|
|
3830
3840
|
if ((tag & 7) === 4 || tag === 0) {
|
|
3831
3841
|
break;
|
|
@@ -3847,7 +3857,8 @@ var Notification = {
|
|
|
3847
3857
|
channel_id: isSet3(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
3848
3858
|
channel_type: isSet3(object.channel_type) ? globalThis.Number(object.channel_type) : 0,
|
|
3849
3859
|
avatar_url: isSet3(object.avatar_url) ? globalThis.String(object.avatar_url) : "",
|
|
3850
|
-
channel: isSet3(object.channel) ? ChannelDescription.fromJSON(object.channel) : void 0
|
|
3860
|
+
channel: isSet3(object.channel) ? ChannelDescription.fromJSON(object.channel) : void 0,
|
|
3861
|
+
topic_id: isSet3(object.topic_id) ? globalThis.String(object.topic_id) : ""
|
|
3851
3862
|
};
|
|
3852
3863
|
},
|
|
3853
3864
|
toJSON(message) {
|
|
@@ -3888,13 +3899,16 @@ var Notification = {
|
|
|
3888
3899
|
if (message.channel !== void 0) {
|
|
3889
3900
|
obj.channel = ChannelDescription.toJSON(message.channel);
|
|
3890
3901
|
}
|
|
3902
|
+
if (message.topic_id !== "") {
|
|
3903
|
+
obj.topic_id = message.topic_id;
|
|
3904
|
+
}
|
|
3891
3905
|
return obj;
|
|
3892
3906
|
},
|
|
3893
3907
|
create(base) {
|
|
3894
3908
|
return Notification.fromPartial(base != null ? base : {});
|
|
3895
3909
|
},
|
|
3896
3910
|
fromPartial(object) {
|
|
3897
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
3911
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
3898
3912
|
const message = createBaseNotification();
|
|
3899
3913
|
message.id = (_a = object.id) != null ? _a : "";
|
|
3900
3914
|
message.subject = (_b = object.subject) != null ? _b : "";
|
|
@@ -3908,6 +3922,7 @@ var Notification = {
|
|
|
3908
3922
|
message.channel_type = (_j = object.channel_type) != null ? _j : 0;
|
|
3909
3923
|
message.avatar_url = (_k = object.avatar_url) != null ? _k : "";
|
|
3910
3924
|
message.channel = object.channel !== void 0 && object.channel !== null ? ChannelDescription.fromPartial(object.channel) : void 0;
|
|
3925
|
+
message.topic_id = (_l = object.topic_id) != null ? _l : "";
|
|
3911
3926
|
return message;
|
|
3912
3927
|
}
|
|
3913
3928
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.18",
|
|
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",
|