mezon-js-protobuf 1.8.72 → 1.8.74
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 +236 -69
- package/dist/mezon-js-protobuf/api/api.d.ts +170 -10
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +371 -323
- package/dist/mezon-js-protobuf.cjs.js +130 -47
- package/dist/mezon-js-protobuf.esm.mjs +130 -47
- package/package.json +1 -1
- package/rtapi/realtime.ts +127 -25
|
@@ -156,7 +156,7 @@ export interface ChannelMessage {
|
|
|
156
156
|
/** The unique ID of this message. */
|
|
157
157
|
message_id: string;
|
|
158
158
|
/** The code representing a message type or category. */
|
|
159
|
-
code: number
|
|
159
|
+
code: number;
|
|
160
160
|
/** Message sender, usually a user ID. */
|
|
161
161
|
sender_id: string;
|
|
162
162
|
/** The username of the message sender, if any. */
|
|
@@ -397,7 +397,7 @@ export interface Friend {
|
|
|
397
397
|
/** The user object. */
|
|
398
398
|
user: User | undefined;
|
|
399
399
|
/** The friend status. */
|
|
400
|
-
state: number
|
|
400
|
+
state: number;
|
|
401
401
|
/** Time of the latest relationship update. */
|
|
402
402
|
update_time: Date | undefined;
|
|
403
403
|
/** source id */
|
|
@@ -1154,7 +1154,7 @@ export interface ChannelDescription {
|
|
|
1154
1154
|
/** The category name */
|
|
1155
1155
|
category_name: string;
|
|
1156
1156
|
/** The channel type. */
|
|
1157
|
-
type: number
|
|
1157
|
+
type: number;
|
|
1158
1158
|
/** creator ID. */
|
|
1159
1159
|
creator_id: string;
|
|
1160
1160
|
/** The channel lable */
|
|
@@ -2086,6 +2086,8 @@ export interface App {
|
|
|
2086
2086
|
is_shadow: boolean;
|
|
2087
2087
|
/** The UNIX time when the app was disabled. */
|
|
2088
2088
|
disable_time: Date | undefined;
|
|
2089
|
+
/** The UNIX time when the app was created */
|
|
2090
|
+
create_time: Date | undefined;
|
|
2089
2091
|
/** string token */
|
|
2090
2092
|
token: string;
|
|
2091
2093
|
/** role */
|
|
@@ -3107,10 +3109,18 @@ export interface ReportMessageAbuseReqest {
|
|
|
3107
3109
|
abuse_type: string;
|
|
3108
3110
|
}
|
|
3109
3111
|
export interface LogedDeviceList {
|
|
3112
|
+
devices: LogedDevice[];
|
|
3113
|
+
}
|
|
3114
|
+
export interface LogedDevice {
|
|
3115
|
+
device_id: string;
|
|
3110
3116
|
device_name: string;
|
|
3111
|
-
|
|
3117
|
+
login_at: Date | undefined;
|
|
3112
3118
|
status: number;
|
|
3113
3119
|
platform: string;
|
|
3120
|
+
ip: string;
|
|
3121
|
+
last_active: Date | undefined;
|
|
3122
|
+
location: string;
|
|
3123
|
+
is_current: boolean;
|
|
3114
3124
|
}
|
|
3115
3125
|
export declare const Account: {
|
|
3116
3126
|
encode(message: Account, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -16076,6 +16086,7 @@ export declare const App: {
|
|
|
16076
16086
|
applogo?: string | undefined;
|
|
16077
16087
|
is_shadow?: boolean | undefined;
|
|
16078
16088
|
disable_time?: Date | undefined;
|
|
16089
|
+
create_time?: Date | undefined;
|
|
16079
16090
|
token?: string | undefined;
|
|
16080
16091
|
role?: number | undefined;
|
|
16081
16092
|
about?: string | undefined;
|
|
@@ -16087,6 +16098,7 @@ export declare const App: {
|
|
|
16087
16098
|
applogo?: string | undefined;
|
|
16088
16099
|
is_shadow?: boolean | undefined;
|
|
16089
16100
|
disable_time?: Date | undefined;
|
|
16101
|
+
create_time?: Date | undefined;
|
|
16090
16102
|
token?: string | undefined;
|
|
16091
16103
|
role?: number | undefined;
|
|
16092
16104
|
about?: string | undefined;
|
|
@@ -16099,6 +16111,7 @@ export declare const App: {
|
|
|
16099
16111
|
applogo?: string | undefined;
|
|
16100
16112
|
is_shadow?: boolean | undefined;
|
|
16101
16113
|
disable_time?: Date | undefined;
|
|
16114
|
+
create_time?: Date | undefined;
|
|
16102
16115
|
token?: string | undefined;
|
|
16103
16116
|
role?: number | undefined;
|
|
16104
16117
|
about?: string | undefined;
|
|
@@ -16110,6 +16123,7 @@ export declare const App: {
|
|
|
16110
16123
|
applogo?: string | undefined;
|
|
16111
16124
|
is_shadow?: boolean | undefined;
|
|
16112
16125
|
disable_time?: Date | undefined;
|
|
16126
|
+
create_time?: Date | undefined;
|
|
16113
16127
|
token?: string | undefined;
|
|
16114
16128
|
role?: number | undefined;
|
|
16115
16129
|
about?: string | undefined;
|
|
@@ -16149,6 +16163,7 @@ export declare const AppList: {
|
|
|
16149
16163
|
applogo?: string | undefined;
|
|
16150
16164
|
is_shadow?: boolean | undefined;
|
|
16151
16165
|
disable_time?: Date | undefined;
|
|
16166
|
+
create_time?: Date | undefined;
|
|
16152
16167
|
token?: string | undefined;
|
|
16153
16168
|
role?: number | undefined;
|
|
16154
16169
|
about?: string | undefined;
|
|
@@ -16164,6 +16179,7 @@ export declare const AppList: {
|
|
|
16164
16179
|
applogo?: string | undefined;
|
|
16165
16180
|
is_shadow?: boolean | undefined;
|
|
16166
16181
|
disable_time?: Date | undefined;
|
|
16182
|
+
create_time?: Date | undefined;
|
|
16167
16183
|
token?: string | undefined;
|
|
16168
16184
|
role?: number | undefined;
|
|
16169
16185
|
about?: string | undefined;
|
|
@@ -16175,6 +16191,7 @@ export declare const AppList: {
|
|
|
16175
16191
|
applogo?: string | undefined;
|
|
16176
16192
|
is_shadow?: boolean | undefined;
|
|
16177
16193
|
disable_time?: Date | undefined;
|
|
16194
|
+
create_time?: Date | undefined;
|
|
16178
16195
|
token?: string | undefined;
|
|
16179
16196
|
role?: number | undefined;
|
|
16180
16197
|
about?: string | undefined;
|
|
@@ -16186,6 +16203,7 @@ export declare const AppList: {
|
|
|
16186
16203
|
applogo?: string | undefined;
|
|
16187
16204
|
is_shadow?: boolean | undefined;
|
|
16188
16205
|
disable_time?: Date | undefined;
|
|
16206
|
+
create_time?: Date | undefined;
|
|
16189
16207
|
token?: string | undefined;
|
|
16190
16208
|
role?: number | undefined;
|
|
16191
16209
|
about?: string | undefined;
|
|
@@ -16197,6 +16215,7 @@ export declare const AppList: {
|
|
|
16197
16215
|
applogo?: string | undefined;
|
|
16198
16216
|
is_shadow?: boolean | undefined;
|
|
16199
16217
|
disable_time?: Date | undefined;
|
|
16218
|
+
create_time?: Date | undefined;
|
|
16200
16219
|
token?: string | undefined;
|
|
16201
16220
|
role?: number | undefined;
|
|
16202
16221
|
about?: string | undefined;
|
|
@@ -16213,6 +16232,7 @@ export declare const AppList: {
|
|
|
16213
16232
|
applogo?: string | undefined;
|
|
16214
16233
|
is_shadow?: boolean | undefined;
|
|
16215
16234
|
disable_time?: Date | undefined;
|
|
16235
|
+
create_time?: Date | undefined;
|
|
16216
16236
|
token?: string | undefined;
|
|
16217
16237
|
role?: number | undefined;
|
|
16218
16238
|
about?: string | undefined;
|
|
@@ -16228,6 +16248,7 @@ export declare const AppList: {
|
|
|
16228
16248
|
applogo?: string | undefined;
|
|
16229
16249
|
is_shadow?: boolean | undefined;
|
|
16230
16250
|
disable_time?: Date | undefined;
|
|
16251
|
+
create_time?: Date | undefined;
|
|
16231
16252
|
token?: string | undefined;
|
|
16232
16253
|
role?: number | undefined;
|
|
16233
16254
|
about?: string | undefined;
|
|
@@ -16239,6 +16260,7 @@ export declare const AppList: {
|
|
|
16239
16260
|
applogo?: string | undefined;
|
|
16240
16261
|
is_shadow?: boolean | undefined;
|
|
16241
16262
|
disable_time?: Date | undefined;
|
|
16263
|
+
create_time?: Date | undefined;
|
|
16242
16264
|
token?: string | undefined;
|
|
16243
16265
|
role?: number | undefined;
|
|
16244
16266
|
about?: string | undefined;
|
|
@@ -16250,6 +16272,7 @@ export declare const AppList: {
|
|
|
16250
16272
|
applogo?: string | undefined;
|
|
16251
16273
|
is_shadow?: boolean | undefined;
|
|
16252
16274
|
disable_time?: Date | undefined;
|
|
16275
|
+
create_time?: Date | undefined;
|
|
16253
16276
|
token?: string | undefined;
|
|
16254
16277
|
role?: number | undefined;
|
|
16255
16278
|
about?: string | undefined;
|
|
@@ -16261,6 +16284,7 @@ export declare const AppList: {
|
|
|
16261
16284
|
applogo?: string | undefined;
|
|
16262
16285
|
is_shadow?: boolean | undefined;
|
|
16263
16286
|
disable_time?: Date | undefined;
|
|
16287
|
+
create_time?: Date | undefined;
|
|
16264
16288
|
token?: string | undefined;
|
|
16265
16289
|
role?: number | undefined;
|
|
16266
16290
|
about?: string | undefined;
|
|
@@ -23758,27 +23782,163 @@ export declare const LogedDeviceList: {
|
|
|
23758
23782
|
fromJSON(object: any): LogedDeviceList;
|
|
23759
23783
|
toJSON(message: LogedDeviceList): unknown;
|
|
23760
23784
|
create<I extends {
|
|
23785
|
+
devices?: {
|
|
23786
|
+
device_id?: string | undefined;
|
|
23787
|
+
device_name?: string | undefined;
|
|
23788
|
+
login_at?: Date | undefined;
|
|
23789
|
+
status?: number | undefined;
|
|
23790
|
+
platform?: string | undefined;
|
|
23791
|
+
ip?: string | undefined;
|
|
23792
|
+
last_active?: Date | undefined;
|
|
23793
|
+
location?: string | undefined;
|
|
23794
|
+
is_current?: boolean | undefined;
|
|
23795
|
+
}[] | undefined;
|
|
23796
|
+
} & {
|
|
23797
|
+
devices?: ({
|
|
23798
|
+
device_id?: string | undefined;
|
|
23799
|
+
device_name?: string | undefined;
|
|
23800
|
+
login_at?: Date | undefined;
|
|
23801
|
+
status?: number | undefined;
|
|
23802
|
+
platform?: string | undefined;
|
|
23803
|
+
ip?: string | undefined;
|
|
23804
|
+
last_active?: Date | undefined;
|
|
23805
|
+
location?: string | undefined;
|
|
23806
|
+
is_current?: boolean | undefined;
|
|
23807
|
+
}[] & ({
|
|
23808
|
+
device_id?: string | undefined;
|
|
23809
|
+
device_name?: string | undefined;
|
|
23810
|
+
login_at?: Date | undefined;
|
|
23811
|
+
status?: number | undefined;
|
|
23812
|
+
platform?: string | undefined;
|
|
23813
|
+
ip?: string | undefined;
|
|
23814
|
+
last_active?: Date | undefined;
|
|
23815
|
+
location?: string | undefined;
|
|
23816
|
+
is_current?: boolean | undefined;
|
|
23817
|
+
} & {
|
|
23818
|
+
device_id?: string | undefined;
|
|
23819
|
+
device_name?: string | undefined;
|
|
23820
|
+
login_at?: Date | undefined;
|
|
23821
|
+
status?: number | undefined;
|
|
23822
|
+
platform?: string | undefined;
|
|
23823
|
+
ip?: string | undefined;
|
|
23824
|
+
last_active?: Date | undefined;
|
|
23825
|
+
location?: string | undefined;
|
|
23826
|
+
is_current?: boolean | undefined;
|
|
23827
|
+
} & { [K in Exclude<keyof I["devices"][number], keyof LogedDevice>]: never; })[] & { [K_1 in Exclude<keyof I["devices"], keyof {
|
|
23828
|
+
device_id?: string | undefined;
|
|
23829
|
+
device_name?: string | undefined;
|
|
23830
|
+
login_at?: Date | undefined;
|
|
23831
|
+
status?: number | undefined;
|
|
23832
|
+
platform?: string | undefined;
|
|
23833
|
+
ip?: string | undefined;
|
|
23834
|
+
last_active?: Date | undefined;
|
|
23835
|
+
location?: string | undefined;
|
|
23836
|
+
is_current?: boolean | undefined;
|
|
23837
|
+
}[]>]: never; }) | undefined;
|
|
23838
|
+
} & { [K_2 in Exclude<keyof I, "devices">]: never; }>(base?: I | undefined): LogedDeviceList;
|
|
23839
|
+
fromPartial<I_1 extends {
|
|
23840
|
+
devices?: {
|
|
23841
|
+
device_id?: string | undefined;
|
|
23842
|
+
device_name?: string | undefined;
|
|
23843
|
+
login_at?: Date | undefined;
|
|
23844
|
+
status?: number | undefined;
|
|
23845
|
+
platform?: string | undefined;
|
|
23846
|
+
ip?: string | undefined;
|
|
23847
|
+
last_active?: Date | undefined;
|
|
23848
|
+
location?: string | undefined;
|
|
23849
|
+
is_current?: boolean | undefined;
|
|
23850
|
+
}[] | undefined;
|
|
23851
|
+
} & {
|
|
23852
|
+
devices?: ({
|
|
23853
|
+
device_id?: string | undefined;
|
|
23854
|
+
device_name?: string | undefined;
|
|
23855
|
+
login_at?: Date | undefined;
|
|
23856
|
+
status?: number | undefined;
|
|
23857
|
+
platform?: string | undefined;
|
|
23858
|
+
ip?: string | undefined;
|
|
23859
|
+
last_active?: Date | undefined;
|
|
23860
|
+
location?: string | undefined;
|
|
23861
|
+
is_current?: boolean | undefined;
|
|
23862
|
+
}[] & ({
|
|
23863
|
+
device_id?: string | undefined;
|
|
23864
|
+
device_name?: string | undefined;
|
|
23865
|
+
login_at?: Date | undefined;
|
|
23866
|
+
status?: number | undefined;
|
|
23867
|
+
platform?: string | undefined;
|
|
23868
|
+
ip?: string | undefined;
|
|
23869
|
+
last_active?: Date | undefined;
|
|
23870
|
+
location?: string | undefined;
|
|
23871
|
+
is_current?: boolean | undefined;
|
|
23872
|
+
} & {
|
|
23873
|
+
device_id?: string | undefined;
|
|
23874
|
+
device_name?: string | undefined;
|
|
23875
|
+
login_at?: Date | undefined;
|
|
23876
|
+
status?: number | undefined;
|
|
23877
|
+
platform?: string | undefined;
|
|
23878
|
+
ip?: string | undefined;
|
|
23879
|
+
last_active?: Date | undefined;
|
|
23880
|
+
location?: string | undefined;
|
|
23881
|
+
is_current?: boolean | undefined;
|
|
23882
|
+
} & { [K_3 in Exclude<keyof I_1["devices"][number], keyof LogedDevice>]: never; })[] & { [K_4 in Exclude<keyof I_1["devices"], keyof {
|
|
23883
|
+
device_id?: string | undefined;
|
|
23884
|
+
device_name?: string | undefined;
|
|
23885
|
+
login_at?: Date | undefined;
|
|
23886
|
+
status?: number | undefined;
|
|
23887
|
+
platform?: string | undefined;
|
|
23888
|
+
ip?: string | undefined;
|
|
23889
|
+
last_active?: Date | undefined;
|
|
23890
|
+
location?: string | undefined;
|
|
23891
|
+
is_current?: boolean | undefined;
|
|
23892
|
+
}[]>]: never; }) | undefined;
|
|
23893
|
+
} & { [K_5 in Exclude<keyof I_1, "devices">]: never; }>(object: I_1): LogedDeviceList;
|
|
23894
|
+
};
|
|
23895
|
+
export declare const LogedDevice: {
|
|
23896
|
+
encode(message: LogedDevice, writer?: _m0.Writer): _m0.Writer;
|
|
23897
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): LogedDevice;
|
|
23898
|
+
fromJSON(object: any): LogedDevice;
|
|
23899
|
+
toJSON(message: LogedDevice): unknown;
|
|
23900
|
+
create<I extends {
|
|
23901
|
+
device_id?: string | undefined;
|
|
23761
23902
|
device_name?: string | undefined;
|
|
23762
|
-
|
|
23903
|
+
login_at?: Date | undefined;
|
|
23763
23904
|
status?: number | undefined;
|
|
23764
23905
|
platform?: string | undefined;
|
|
23906
|
+
ip?: string | undefined;
|
|
23907
|
+
last_active?: Date | undefined;
|
|
23908
|
+
location?: string | undefined;
|
|
23909
|
+
is_current?: boolean | undefined;
|
|
23765
23910
|
} & {
|
|
23911
|
+
device_id?: string | undefined;
|
|
23766
23912
|
device_name?: string | undefined;
|
|
23767
|
-
|
|
23913
|
+
login_at?: Date | undefined;
|
|
23768
23914
|
status?: number | undefined;
|
|
23769
23915
|
platform?: string | undefined;
|
|
23770
|
-
|
|
23916
|
+
ip?: string | undefined;
|
|
23917
|
+
last_active?: Date | undefined;
|
|
23918
|
+
location?: string | undefined;
|
|
23919
|
+
is_current?: boolean | undefined;
|
|
23920
|
+
} & { [K in Exclude<keyof I, keyof LogedDevice>]: never; }>(base?: I | undefined): LogedDevice;
|
|
23771
23921
|
fromPartial<I_1 extends {
|
|
23922
|
+
device_id?: string | undefined;
|
|
23772
23923
|
device_name?: string | undefined;
|
|
23773
|
-
|
|
23924
|
+
login_at?: Date | undefined;
|
|
23774
23925
|
status?: number | undefined;
|
|
23775
23926
|
platform?: string | undefined;
|
|
23927
|
+
ip?: string | undefined;
|
|
23928
|
+
last_active?: Date | undefined;
|
|
23929
|
+
location?: string | undefined;
|
|
23930
|
+
is_current?: boolean | undefined;
|
|
23776
23931
|
} & {
|
|
23932
|
+
device_id?: string | undefined;
|
|
23777
23933
|
device_name?: string | undefined;
|
|
23778
|
-
|
|
23934
|
+
login_at?: Date | undefined;
|
|
23779
23935
|
status?: number | undefined;
|
|
23780
23936
|
platform?: string | undefined;
|
|
23781
|
-
|
|
23937
|
+
ip?: string | undefined;
|
|
23938
|
+
last_active?: Date | undefined;
|
|
23939
|
+
location?: string | undefined;
|
|
23940
|
+
is_current?: boolean | undefined;
|
|
23941
|
+
} & { [K_1 in Exclude<keyof I_1, keyof LogedDevice>]: never; }>(object: I_1): LogedDevice;
|
|
23782
23942
|
};
|
|
23783
23943
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
23784
23944
|
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|