mezon-js-protobuf 1.7.17 → 1.7.19
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 +23 -3
- package/dist/mezon-js-protobuf/api/api.d.ts +16 -0
- package/dist/mezon-js-protobuf/google/protobuf/struct.d.ts +1 -1
- package/dist/mezon-js-protobuf/google/protobuf/timestamp.d.ts +1 -1
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +318 -240
- package/dist/mezon-js-protobuf.cjs.js +1937 -1884
- package/dist/mezon-js-protobuf.esm.mjs +1937 -1884
- package/google/protobuf/struct.ts +554 -554
- package/google/protobuf/timestamp.ts +223 -223
- package/google/protobuf/wrappers.ts +670 -670
- package/package.json +1 -1
- package/rtapi/realtime.ts +11994 -11946
package/api/api.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
|
|
3
|
+
// protoc-gen-ts_proto v1.181.2
|
|
4
|
+
// protoc v3.20.3
|
|
5
5
|
// source: api/api.proto
|
|
6
6
|
|
|
7
7
|
/* eslint-disable */
|
|
@@ -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;
|
|
@@ -4,7 +4,7 @@ export declare const protobufPackage = "google.protobuf";
|
|
|
4
4
|
* `NullValue` is a singleton enumeration to represent the null value for the
|
|
5
5
|
* `Value` type union.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
7
|
+
* The JSON representation for `NullValue` is JSON `null`.
|
|
8
8
|
*/
|
|
9
9
|
export declare enum NullValue {
|
|
10
10
|
/** NULL_VALUE - Null value. */
|
|
@@ -88,7 +88,7 @@ export declare const protobufPackage = "google.protobuf";
|
|
|
88
88
|
* [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
|
89
89
|
* the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
|
90
90
|
* the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
|
91
|
-
* http://joda-time
|
|
91
|
+
* http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
|
|
92
92
|
* ) to obtain a formatter capable of generating timestamps in this format.
|
|
93
93
|
*/
|
|
94
94
|
export interface Timestamp {
|