mezon-js-protobuf 1.8.46 → 1.8.48
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
|
@@ -1004,12 +1004,13 @@ export interface Session {
|
|
|
1004
1004
|
is_remember: boolean;
|
|
1005
1005
|
}
|
|
1006
1006
|
|
|
1007
|
+
/** Update username */
|
|
1008
|
+
export interface UpdateUsernameRequest {
|
|
1009
|
+
username: string;
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1007
1012
|
/** Update a user's account details. */
|
|
1008
1013
|
export interface UpdateAccountRequest {
|
|
1009
|
-
/** The username of the user's account. */
|
|
1010
|
-
username:
|
|
1011
|
-
| string
|
|
1012
|
-
| undefined;
|
|
1013
1014
|
/** The display name of the user. */
|
|
1014
1015
|
display_name:
|
|
1015
1016
|
| string
|
|
@@ -1687,7 +1688,7 @@ export interface UpdateChannelDescRequest {
|
|
|
1687
1688
|
/** */
|
|
1688
1689
|
e2ee: number;
|
|
1689
1690
|
/** channel avatar */
|
|
1690
|
-
channel_avatar: string;
|
|
1691
|
+
channel_avatar: string | undefined;
|
|
1691
1692
|
}
|
|
1692
1693
|
|
|
1693
1694
|
/** Update fields in a given channel. */
|
|
@@ -10229,9 +10230,65 @@ export const Session = {
|
|
|
10229
10230
|
},
|
|
10230
10231
|
};
|
|
10231
10232
|
|
|
10233
|
+
function createBaseUpdateUsernameRequest(): UpdateUsernameRequest {
|
|
10234
|
+
return { username: "" };
|
|
10235
|
+
}
|
|
10236
|
+
|
|
10237
|
+
export const UpdateUsernameRequest = {
|
|
10238
|
+
encode(message: UpdateUsernameRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
10239
|
+
if (message.username !== "") {
|
|
10240
|
+
writer.uint32(10).string(message.username);
|
|
10241
|
+
}
|
|
10242
|
+
return writer;
|
|
10243
|
+
},
|
|
10244
|
+
|
|
10245
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UpdateUsernameRequest {
|
|
10246
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
10247
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
10248
|
+
const message = createBaseUpdateUsernameRequest();
|
|
10249
|
+
while (reader.pos < end) {
|
|
10250
|
+
const tag = reader.uint32();
|
|
10251
|
+
switch (tag >>> 3) {
|
|
10252
|
+
case 1:
|
|
10253
|
+
if (tag !== 10) {
|
|
10254
|
+
break;
|
|
10255
|
+
}
|
|
10256
|
+
|
|
10257
|
+
message.username = reader.string();
|
|
10258
|
+
continue;
|
|
10259
|
+
}
|
|
10260
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
10261
|
+
break;
|
|
10262
|
+
}
|
|
10263
|
+
reader.skipType(tag & 7);
|
|
10264
|
+
}
|
|
10265
|
+
return message;
|
|
10266
|
+
},
|
|
10267
|
+
|
|
10268
|
+
fromJSON(object: any): UpdateUsernameRequest {
|
|
10269
|
+
return { username: isSet(object.username) ? globalThis.String(object.username) : "" };
|
|
10270
|
+
},
|
|
10271
|
+
|
|
10272
|
+
toJSON(message: UpdateUsernameRequest): unknown {
|
|
10273
|
+
const obj: any = {};
|
|
10274
|
+
if (message.username !== "") {
|
|
10275
|
+
obj.username = message.username;
|
|
10276
|
+
}
|
|
10277
|
+
return obj;
|
|
10278
|
+
},
|
|
10279
|
+
|
|
10280
|
+
create<I extends Exact<DeepPartial<UpdateUsernameRequest>, I>>(base?: I): UpdateUsernameRequest {
|
|
10281
|
+
return UpdateUsernameRequest.fromPartial(base ?? ({} as any));
|
|
10282
|
+
},
|
|
10283
|
+
fromPartial<I extends Exact<DeepPartial<UpdateUsernameRequest>, I>>(object: I): UpdateUsernameRequest {
|
|
10284
|
+
const message = createBaseUpdateUsernameRequest();
|
|
10285
|
+
message.username = object.username ?? "";
|
|
10286
|
+
return message;
|
|
10287
|
+
},
|
|
10288
|
+
};
|
|
10289
|
+
|
|
10232
10290
|
function createBaseUpdateAccountRequest(): UpdateAccountRequest {
|
|
10233
10291
|
return {
|
|
10234
|
-
username: undefined,
|
|
10235
10292
|
display_name: undefined,
|
|
10236
10293
|
avatar_url: undefined,
|
|
10237
10294
|
lang_tag: undefined,
|
|
@@ -10248,41 +10305,38 @@ function createBaseUpdateAccountRequest(): UpdateAccountRequest {
|
|
|
10248
10305
|
|
|
10249
10306
|
export const UpdateAccountRequest = {
|
|
10250
10307
|
encode(message: UpdateAccountRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
10251
|
-
if (message.username !== undefined) {
|
|
10252
|
-
StringValue.encode({ value: message.username! }, writer.uint32(10).fork()).ldelim();
|
|
10253
|
-
}
|
|
10254
10308
|
if (message.display_name !== undefined) {
|
|
10255
|
-
StringValue.encode({ value: message.display_name! }, writer.uint32(
|
|
10309
|
+
StringValue.encode({ value: message.display_name! }, writer.uint32(10).fork()).ldelim();
|
|
10256
10310
|
}
|
|
10257
10311
|
if (message.avatar_url !== undefined) {
|
|
10258
|
-
StringValue.encode({ value: message.avatar_url! }, writer.uint32(
|
|
10312
|
+
StringValue.encode({ value: message.avatar_url! }, writer.uint32(18).fork()).ldelim();
|
|
10259
10313
|
}
|
|
10260
10314
|
if (message.lang_tag !== undefined) {
|
|
10261
|
-
StringValue.encode({ value: message.lang_tag! }, writer.uint32(
|
|
10315
|
+
StringValue.encode({ value: message.lang_tag! }, writer.uint32(26).fork()).ldelim();
|
|
10262
10316
|
}
|
|
10263
10317
|
if (message.location !== undefined) {
|
|
10264
|
-
StringValue.encode({ value: message.location! }, writer.uint32(
|
|
10318
|
+
StringValue.encode({ value: message.location! }, writer.uint32(34).fork()).ldelim();
|
|
10265
10319
|
}
|
|
10266
10320
|
if (message.timezone !== undefined) {
|
|
10267
|
-
StringValue.encode({ value: message.timezone! }, writer.uint32(
|
|
10321
|
+
StringValue.encode({ value: message.timezone! }, writer.uint32(42).fork()).ldelim();
|
|
10268
10322
|
}
|
|
10269
10323
|
if (message.about_me !== undefined) {
|
|
10270
|
-
StringValue.encode({ value: message.about_me! }, writer.uint32(
|
|
10324
|
+
StringValue.encode({ value: message.about_me! }, writer.uint32(50).fork()).ldelim();
|
|
10271
10325
|
}
|
|
10272
10326
|
if (message.dob !== undefined) {
|
|
10273
|
-
Timestamp.encode(toTimestamp(message.dob), writer.uint32(
|
|
10327
|
+
Timestamp.encode(toTimestamp(message.dob), writer.uint32(58).fork()).ldelim();
|
|
10274
10328
|
}
|
|
10275
10329
|
if (message.logo !== undefined) {
|
|
10276
|
-
StringValue.encode({ value: message.logo! }, writer.uint32(
|
|
10330
|
+
StringValue.encode({ value: message.logo! }, writer.uint32(66).fork()).ldelim();
|
|
10277
10331
|
}
|
|
10278
10332
|
if (message.splash_screen !== undefined) {
|
|
10279
|
-
StringValue.encode({ value: message.splash_screen! }, writer.uint32(
|
|
10333
|
+
StringValue.encode({ value: message.splash_screen! }, writer.uint32(74).fork()).ldelim();
|
|
10280
10334
|
}
|
|
10281
10335
|
if (message.encrypt_private_key !== "") {
|
|
10282
|
-
writer.uint32(
|
|
10336
|
+
writer.uint32(82).string(message.encrypt_private_key);
|
|
10283
10337
|
}
|
|
10284
10338
|
if (message.email !== undefined) {
|
|
10285
|
-
StringValue.encode({ value: message.email! }, writer.uint32(
|
|
10339
|
+
StringValue.encode({ value: message.email! }, writer.uint32(90).fork()).ldelim();
|
|
10286
10340
|
}
|
|
10287
10341
|
return writer;
|
|
10288
10342
|
},
|
|
@@ -10299,83 +10353,76 @@ export const UpdateAccountRequest = {
|
|
|
10299
10353
|
break;
|
|
10300
10354
|
}
|
|
10301
10355
|
|
|
10302
|
-
message.
|
|
10356
|
+
message.display_name = StringValue.decode(reader, reader.uint32()).value;
|
|
10303
10357
|
continue;
|
|
10304
10358
|
case 2:
|
|
10305
10359
|
if (tag !== 18) {
|
|
10306
10360
|
break;
|
|
10307
10361
|
}
|
|
10308
10362
|
|
|
10309
|
-
message.
|
|
10363
|
+
message.avatar_url = StringValue.decode(reader, reader.uint32()).value;
|
|
10310
10364
|
continue;
|
|
10311
10365
|
case 3:
|
|
10312
10366
|
if (tag !== 26) {
|
|
10313
10367
|
break;
|
|
10314
10368
|
}
|
|
10315
10369
|
|
|
10316
|
-
message.
|
|
10370
|
+
message.lang_tag = StringValue.decode(reader, reader.uint32()).value;
|
|
10317
10371
|
continue;
|
|
10318
10372
|
case 4:
|
|
10319
10373
|
if (tag !== 34) {
|
|
10320
10374
|
break;
|
|
10321
10375
|
}
|
|
10322
10376
|
|
|
10323
|
-
message.
|
|
10377
|
+
message.location = StringValue.decode(reader, reader.uint32()).value;
|
|
10324
10378
|
continue;
|
|
10325
10379
|
case 5:
|
|
10326
10380
|
if (tag !== 42) {
|
|
10327
10381
|
break;
|
|
10328
10382
|
}
|
|
10329
10383
|
|
|
10330
|
-
message.
|
|
10384
|
+
message.timezone = StringValue.decode(reader, reader.uint32()).value;
|
|
10331
10385
|
continue;
|
|
10332
10386
|
case 6:
|
|
10333
10387
|
if (tag !== 50) {
|
|
10334
10388
|
break;
|
|
10335
10389
|
}
|
|
10336
10390
|
|
|
10337
|
-
message.
|
|
10391
|
+
message.about_me = StringValue.decode(reader, reader.uint32()).value;
|
|
10338
10392
|
continue;
|
|
10339
10393
|
case 7:
|
|
10340
10394
|
if (tag !== 58) {
|
|
10341
10395
|
break;
|
|
10342
10396
|
}
|
|
10343
10397
|
|
|
10344
|
-
message.
|
|
10398
|
+
message.dob = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
10345
10399
|
continue;
|
|
10346
10400
|
case 8:
|
|
10347
10401
|
if (tag !== 66) {
|
|
10348
10402
|
break;
|
|
10349
10403
|
}
|
|
10350
10404
|
|
|
10351
|
-
message.
|
|
10405
|
+
message.logo = StringValue.decode(reader, reader.uint32()).value;
|
|
10352
10406
|
continue;
|
|
10353
10407
|
case 9:
|
|
10354
10408
|
if (tag !== 74) {
|
|
10355
10409
|
break;
|
|
10356
10410
|
}
|
|
10357
10411
|
|
|
10358
|
-
message.
|
|
10412
|
+
message.splash_screen = StringValue.decode(reader, reader.uint32()).value;
|
|
10359
10413
|
continue;
|
|
10360
10414
|
case 10:
|
|
10361
10415
|
if (tag !== 82) {
|
|
10362
10416
|
break;
|
|
10363
10417
|
}
|
|
10364
10418
|
|
|
10365
|
-
message.
|
|
10419
|
+
message.encrypt_private_key = reader.string();
|
|
10366
10420
|
continue;
|
|
10367
10421
|
case 11:
|
|
10368
10422
|
if (tag !== 90) {
|
|
10369
10423
|
break;
|
|
10370
10424
|
}
|
|
10371
10425
|
|
|
10372
|
-
message.encrypt_private_key = reader.string();
|
|
10373
|
-
continue;
|
|
10374
|
-
case 12:
|
|
10375
|
-
if (tag !== 98) {
|
|
10376
|
-
break;
|
|
10377
|
-
}
|
|
10378
|
-
|
|
10379
10426
|
message.email = StringValue.decode(reader, reader.uint32()).value;
|
|
10380
10427
|
continue;
|
|
10381
10428
|
}
|
|
@@ -10389,7 +10436,6 @@ export const UpdateAccountRequest = {
|
|
|
10389
10436
|
|
|
10390
10437
|
fromJSON(object: any): UpdateAccountRequest {
|
|
10391
10438
|
return {
|
|
10392
|
-
username: isSet(object.username) ? String(object.username) : undefined,
|
|
10393
10439
|
display_name: isSet(object.display_name) ? String(object.display_name) : undefined,
|
|
10394
10440
|
avatar_url: isSet(object.avatar_url) ? String(object.avatar_url) : undefined,
|
|
10395
10441
|
lang_tag: isSet(object.lang_tag) ? String(object.lang_tag) : undefined,
|
|
@@ -10406,9 +10452,6 @@ export const UpdateAccountRequest = {
|
|
|
10406
10452
|
|
|
10407
10453
|
toJSON(message: UpdateAccountRequest): unknown {
|
|
10408
10454
|
const obj: any = {};
|
|
10409
|
-
if (message.username !== undefined) {
|
|
10410
|
-
obj.username = message.username;
|
|
10411
|
-
}
|
|
10412
10455
|
if (message.display_name !== undefined) {
|
|
10413
10456
|
obj.display_name = message.display_name;
|
|
10414
10457
|
}
|
|
@@ -10450,7 +10493,6 @@ export const UpdateAccountRequest = {
|
|
|
10450
10493
|
},
|
|
10451
10494
|
fromPartial<I extends Exact<DeepPartial<UpdateAccountRequest>, I>>(object: I): UpdateAccountRequest {
|
|
10452
10495
|
const message = createBaseUpdateAccountRequest();
|
|
10453
|
-
message.username = object.username ?? undefined;
|
|
10454
10496
|
message.display_name = object.display_name ?? undefined;
|
|
10455
10497
|
message.avatar_url = object.avatar_url ?? undefined;
|
|
10456
10498
|
message.lang_tag = object.lang_tag ?? undefined;
|
|
@@ -15699,7 +15741,7 @@ function createBaseUpdateChannelDescRequest(): UpdateChannelDescRequest {
|
|
|
15699
15741
|
topic: "",
|
|
15700
15742
|
age_restricted: 0,
|
|
15701
15743
|
e2ee: 0,
|
|
15702
|
-
channel_avatar:
|
|
15744
|
+
channel_avatar: undefined,
|
|
15703
15745
|
};
|
|
15704
15746
|
}
|
|
15705
15747
|
|
|
@@ -15729,8 +15771,8 @@ export const UpdateChannelDescRequest = {
|
|
|
15729
15771
|
if (message.e2ee !== 0) {
|
|
15730
15772
|
writer.uint32(64).int32(message.e2ee);
|
|
15731
15773
|
}
|
|
15732
|
-
if (message.channel_avatar !==
|
|
15733
|
-
writer.uint32(74).
|
|
15774
|
+
if (message.channel_avatar !== undefined) {
|
|
15775
|
+
StringValue.encode({ value: message.channel_avatar! }, writer.uint32(74).fork()).ldelim();
|
|
15734
15776
|
}
|
|
15735
15777
|
return writer;
|
|
15736
15778
|
},
|
|
@@ -15803,7 +15845,7 @@ export const UpdateChannelDescRequest = {
|
|
|
15803
15845
|
break;
|
|
15804
15846
|
}
|
|
15805
15847
|
|
|
15806
|
-
message.channel_avatar = reader.
|
|
15848
|
+
message.channel_avatar = StringValue.decode(reader, reader.uint32()).value;
|
|
15807
15849
|
continue;
|
|
15808
15850
|
}
|
|
15809
15851
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -15824,7 +15866,7 @@ export const UpdateChannelDescRequest = {
|
|
|
15824
15866
|
topic: isSet(object.topic) ? globalThis.String(object.topic) : "",
|
|
15825
15867
|
age_restricted: isSet(object.age_restricted) ? globalThis.Number(object.age_restricted) : 0,
|
|
15826
15868
|
e2ee: isSet(object.e2ee) ? globalThis.Number(object.e2ee) : 0,
|
|
15827
|
-
channel_avatar: isSet(object.channel_avatar) ?
|
|
15869
|
+
channel_avatar: isSet(object.channel_avatar) ? String(object.channel_avatar) : undefined,
|
|
15828
15870
|
};
|
|
15829
15871
|
},
|
|
15830
15872
|
|
|
@@ -15854,7 +15896,7 @@ export const UpdateChannelDescRequest = {
|
|
|
15854
15896
|
if (message.e2ee !== 0) {
|
|
15855
15897
|
obj.e2ee = Math.round(message.e2ee);
|
|
15856
15898
|
}
|
|
15857
|
-
if (message.channel_avatar !==
|
|
15899
|
+
if (message.channel_avatar !== undefined) {
|
|
15858
15900
|
obj.channel_avatar = message.channel_avatar;
|
|
15859
15901
|
}
|
|
15860
15902
|
return obj;
|
|
@@ -15873,7 +15915,7 @@ export const UpdateChannelDescRequest = {
|
|
|
15873
15915
|
message.topic = object.topic ?? "";
|
|
15874
15916
|
message.age_restricted = object.age_restricted ?? 0;
|
|
15875
15917
|
message.e2ee = object.e2ee ?? 0;
|
|
15876
|
-
message.channel_avatar = object.channel_avatar ??
|
|
15918
|
+
message.channel_avatar = object.channel_avatar ?? undefined;
|
|
15877
15919
|
return message;
|
|
15878
15920
|
},
|
|
15879
15921
|
};
|
|
@@ -735,10 +735,12 @@ export interface Session {
|
|
|
735
735
|
/** Whether to enable "Remember Me" for extended session duration. */
|
|
736
736
|
is_remember: boolean;
|
|
737
737
|
}
|
|
738
|
+
/** Update username */
|
|
739
|
+
export interface UpdateUsernameRequest {
|
|
740
|
+
username: string;
|
|
741
|
+
}
|
|
738
742
|
/** Update a user's account details. */
|
|
739
743
|
export interface UpdateAccountRequest {
|
|
740
|
-
/** The username of the user's account. */
|
|
741
|
-
username: string | undefined;
|
|
742
744
|
/** The display name of the user. */
|
|
743
745
|
display_name: string | undefined;
|
|
744
746
|
/** A URL for an avatar image. */
|
|
@@ -1294,7 +1296,7 @@ export interface UpdateChannelDescRequest {
|
|
|
1294
1296
|
/** */
|
|
1295
1297
|
e2ee: number;
|
|
1296
1298
|
/** channel avatar */
|
|
1297
|
-
channel_avatar: string;
|
|
1299
|
+
channel_avatar: string | undefined;
|
|
1298
1300
|
}
|
|
1299
1301
|
/** Update fields in a given channel. */
|
|
1300
1302
|
export interface ChangeChannelPrivateRequest {
|
|
@@ -7992,13 +7994,28 @@ export declare const Session: {
|
|
|
7992
7994
|
is_remember?: boolean | undefined;
|
|
7993
7995
|
} & { [K_1 in Exclude<keyof I_1, keyof Session>]: never; }>(object: I_1): Session;
|
|
7994
7996
|
};
|
|
7997
|
+
export declare const UpdateUsernameRequest: {
|
|
7998
|
+
encode(message: UpdateUsernameRequest, writer?: _m0.Writer): _m0.Writer;
|
|
7999
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UpdateUsernameRequest;
|
|
8000
|
+
fromJSON(object: any): UpdateUsernameRequest;
|
|
8001
|
+
toJSON(message: UpdateUsernameRequest): unknown;
|
|
8002
|
+
create<I extends {
|
|
8003
|
+
username?: string | undefined;
|
|
8004
|
+
} & {
|
|
8005
|
+
username?: string | undefined;
|
|
8006
|
+
} & { [K in Exclude<keyof I, "username">]: never; }>(base?: I | undefined): UpdateUsernameRequest;
|
|
8007
|
+
fromPartial<I_1 extends {
|
|
8008
|
+
username?: string | undefined;
|
|
8009
|
+
} & {
|
|
8010
|
+
username?: string | undefined;
|
|
8011
|
+
} & { [K_1 in Exclude<keyof I_1, "username">]: never; }>(object: I_1): UpdateUsernameRequest;
|
|
8012
|
+
};
|
|
7995
8013
|
export declare const UpdateAccountRequest: {
|
|
7996
8014
|
encode(message: UpdateAccountRequest, writer?: _m0.Writer): _m0.Writer;
|
|
7997
8015
|
decode(input: _m0.Reader | Uint8Array, length?: number): UpdateAccountRequest;
|
|
7998
8016
|
fromJSON(object: any): UpdateAccountRequest;
|
|
7999
8017
|
toJSON(message: UpdateAccountRequest): unknown;
|
|
8000
8018
|
create<I extends {
|
|
8001
|
-
username?: string | undefined;
|
|
8002
8019
|
display_name?: string | undefined;
|
|
8003
8020
|
avatar_url?: string | undefined;
|
|
8004
8021
|
lang_tag?: string | undefined;
|
|
@@ -8011,7 +8028,6 @@ export declare const UpdateAccountRequest: {
|
|
|
8011
8028
|
encrypt_private_key?: string | undefined;
|
|
8012
8029
|
email?: string | undefined;
|
|
8013
8030
|
} & {
|
|
8014
|
-
username?: string | undefined;
|
|
8015
8031
|
display_name?: string | undefined;
|
|
8016
8032
|
avatar_url?: string | undefined;
|
|
8017
8033
|
lang_tag?: string | undefined;
|
|
@@ -8025,7 +8041,6 @@ export declare const UpdateAccountRequest: {
|
|
|
8025
8041
|
email?: string | undefined;
|
|
8026
8042
|
} & { [K in Exclude<keyof I, keyof UpdateAccountRequest>]: never; }>(base?: I | undefined): UpdateAccountRequest;
|
|
8027
8043
|
fromPartial<I_1 extends {
|
|
8028
|
-
username?: string | undefined;
|
|
8029
8044
|
display_name?: string | undefined;
|
|
8030
8045
|
avatar_url?: string | undefined;
|
|
8031
8046
|
lang_tag?: string | undefined;
|
|
@@ -8038,7 +8053,6 @@ export declare const UpdateAccountRequest: {
|
|
|
8038
8053
|
encrypt_private_key?: string | undefined;
|
|
8039
8054
|
email?: string | undefined;
|
|
8040
8055
|
} & {
|
|
8041
|
-
username?: string | undefined;
|
|
8042
8056
|
display_name?: string | undefined;
|
|
8043
8057
|
avatar_url?: string | undefined;
|
|
8044
8058
|
lang_tag?: string | undefined;
|
|
@@ -875,6 +875,8 @@ export interface ChannelUpdatedEvent {
|
|
|
875
875
|
user_ids: string[];
|
|
876
876
|
/** This is the role that needs to be added to the channel */
|
|
877
877
|
role_ids: string[];
|
|
878
|
+
/** */
|
|
879
|
+
channel_avatar: string;
|
|
878
880
|
}
|
|
879
881
|
/** Stop receiving status updates for some set of users. */
|
|
880
882
|
export interface StatusUnfollow {
|
|
@@ -1757,6 +1759,7 @@ export declare const Envelope: {
|
|
|
1757
1759
|
count_mess_unread?: number | undefined;
|
|
1758
1760
|
user_ids?: string[] | undefined;
|
|
1759
1761
|
role_ids?: string[] | undefined;
|
|
1762
|
+
channel_avatar?: string | undefined;
|
|
1760
1763
|
} | undefined;
|
|
1761
1764
|
last_pin_message_event?: {
|
|
1762
1765
|
clan_id?: string | undefined;
|
|
@@ -4817,6 +4820,7 @@ export declare const Envelope: {
|
|
|
4817
4820
|
count_mess_unread?: number | undefined;
|
|
4818
4821
|
user_ids?: string[] | undefined;
|
|
4819
4822
|
role_ids?: string[] | undefined;
|
|
4823
|
+
channel_avatar?: string | undefined;
|
|
4820
4824
|
} & {
|
|
4821
4825
|
clan_id?: string | undefined;
|
|
4822
4826
|
category_id?: string | undefined;
|
|
@@ -4837,6 +4841,7 @@ export declare const Envelope: {
|
|
|
4837
4841
|
count_mess_unread?: number | undefined;
|
|
4838
4842
|
user_ids?: (string[] & string[] & { [K_77 in Exclude<keyof I["channel_updated_event"]["user_ids"], keyof string[]>]: never; }) | undefined;
|
|
4839
4843
|
role_ids?: (string[] & string[] & { [K_78 in Exclude<keyof I["channel_updated_event"]["role_ids"], keyof string[]>]: never; }) | undefined;
|
|
4844
|
+
channel_avatar?: string | undefined;
|
|
4840
4845
|
} & { [K_79 in Exclude<keyof I["channel_updated_event"], keyof ChannelUpdatedEvent>]: never; }) | undefined;
|
|
4841
4846
|
last_pin_message_event?: ({
|
|
4842
4847
|
clan_id?: string | undefined;
|
|
@@ -11728,6 +11733,7 @@ export declare const Envelope: {
|
|
|
11728
11733
|
count_mess_unread?: number | undefined;
|
|
11729
11734
|
user_ids?: string[] | undefined;
|
|
11730
11735
|
role_ids?: string[] | undefined;
|
|
11736
|
+
channel_avatar?: string | undefined;
|
|
11731
11737
|
} | undefined;
|
|
11732
11738
|
last_pin_message_event?: {
|
|
11733
11739
|
clan_id?: string | undefined;
|
|
@@ -14788,6 +14794,7 @@ export declare const Envelope: {
|
|
|
14788
14794
|
count_mess_unread?: number | undefined;
|
|
14789
14795
|
user_ids?: string[] | undefined;
|
|
14790
14796
|
role_ids?: string[] | undefined;
|
|
14797
|
+
channel_avatar?: string | undefined;
|
|
14791
14798
|
} & {
|
|
14792
14799
|
clan_id?: string | undefined;
|
|
14793
14800
|
category_id?: string | undefined;
|
|
@@ -14808,6 +14815,7 @@ export declare const Envelope: {
|
|
|
14808
14815
|
count_mess_unread?: number | undefined;
|
|
14809
14816
|
user_ids?: (string[] & string[] & { [K_470 in Exclude<keyof I_1["channel_updated_event"]["user_ids"], keyof string[]>]: never; }) | undefined;
|
|
14810
14817
|
role_ids?: (string[] & string[] & { [K_471 in Exclude<keyof I_1["channel_updated_event"]["role_ids"], keyof string[]>]: never; }) | undefined;
|
|
14818
|
+
channel_avatar?: string | undefined;
|
|
14811
14819
|
} & { [K_472 in Exclude<keyof I_1["channel_updated_event"], keyof ChannelUpdatedEvent>]: never; }) | undefined;
|
|
14812
14820
|
last_pin_message_event?: ({
|
|
14813
14821
|
clan_id?: string | undefined;
|
|
@@ -26197,6 +26205,7 @@ export declare const ChannelUpdatedEvent: {
|
|
|
26197
26205
|
count_mess_unread?: number | undefined;
|
|
26198
26206
|
user_ids?: string[] | undefined;
|
|
26199
26207
|
role_ids?: string[] | undefined;
|
|
26208
|
+
channel_avatar?: string | undefined;
|
|
26200
26209
|
} & {
|
|
26201
26210
|
clan_id?: string | undefined;
|
|
26202
26211
|
category_id?: string | undefined;
|
|
@@ -26217,6 +26226,7 @@ export declare const ChannelUpdatedEvent: {
|
|
|
26217
26226
|
count_mess_unread?: number | undefined;
|
|
26218
26227
|
user_ids?: (string[] & string[] & { [K in Exclude<keyof I["user_ids"], keyof string[]>]: never; }) | undefined;
|
|
26219
26228
|
role_ids?: (string[] & string[] & { [K_1 in Exclude<keyof I["role_ids"], keyof string[]>]: never; }) | undefined;
|
|
26229
|
+
channel_avatar?: string | undefined;
|
|
26220
26230
|
} & { [K_2 in Exclude<keyof I, keyof ChannelUpdatedEvent>]: never; }>(base?: I | undefined): ChannelUpdatedEvent;
|
|
26221
26231
|
fromPartial<I_1 extends {
|
|
26222
26232
|
clan_id?: string | undefined;
|
|
@@ -26238,6 +26248,7 @@ export declare const ChannelUpdatedEvent: {
|
|
|
26238
26248
|
count_mess_unread?: number | undefined;
|
|
26239
26249
|
user_ids?: string[] | undefined;
|
|
26240
26250
|
role_ids?: string[] | undefined;
|
|
26251
|
+
channel_avatar?: string | undefined;
|
|
26241
26252
|
} & {
|
|
26242
26253
|
clan_id?: string | undefined;
|
|
26243
26254
|
category_id?: string | undefined;
|
|
@@ -26258,6 +26269,7 @@ export declare const ChannelUpdatedEvent: {
|
|
|
26258
26269
|
count_mess_unread?: number | undefined;
|
|
26259
26270
|
user_ids?: (string[] & string[] & { [K_3 in Exclude<keyof I_1["user_ids"], keyof string[]>]: never; }) | undefined;
|
|
26260
26271
|
role_ids?: (string[] & string[] & { [K_4 in Exclude<keyof I_1["role_ids"], keyof string[]>]: never; }) | undefined;
|
|
26272
|
+
channel_avatar?: string | undefined;
|
|
26261
26273
|
} & { [K_5 in Exclude<keyof I_1, keyof ChannelUpdatedEvent>]: never; }>(object: I_1): ChannelUpdatedEvent;
|
|
26262
26274
|
};
|
|
26263
26275
|
export declare const StatusUnfollow: {
|
|
@@ -21069,7 +21069,8 @@ function createBaseChannelUpdatedEvent() {
|
|
|
21069
21069
|
active: 0,
|
|
21070
21070
|
count_mess_unread: 0,
|
|
21071
21071
|
user_ids: [],
|
|
21072
|
-
role_ids: []
|
|
21072
|
+
role_ids: [],
|
|
21073
|
+
channel_avatar: ""
|
|
21073
21074
|
};
|
|
21074
21075
|
}
|
|
21075
21076
|
var ChannelUpdatedEvent = {
|
|
@@ -21131,6 +21132,9 @@ var ChannelUpdatedEvent = {
|
|
|
21131
21132
|
for (const v of message.role_ids) {
|
|
21132
21133
|
writer.uint32(154).string(v);
|
|
21133
21134
|
}
|
|
21135
|
+
if (message.channel_avatar !== "") {
|
|
21136
|
+
writer.uint32(162).string(message.channel_avatar);
|
|
21137
|
+
}
|
|
21134
21138
|
return writer;
|
|
21135
21139
|
},
|
|
21136
21140
|
decode(input, length) {
|
|
@@ -21254,6 +21258,12 @@ var ChannelUpdatedEvent = {
|
|
|
21254
21258
|
}
|
|
21255
21259
|
message.role_ids.push(reader.string());
|
|
21256
21260
|
continue;
|
|
21261
|
+
case 20:
|
|
21262
|
+
if (tag !== 162) {
|
|
21263
|
+
break;
|
|
21264
|
+
}
|
|
21265
|
+
message.channel_avatar = reader.string();
|
|
21266
|
+
continue;
|
|
21257
21267
|
}
|
|
21258
21268
|
if ((tag & 7) === 4 || tag === 0) {
|
|
21259
21269
|
break;
|
|
@@ -21282,7 +21292,8 @@ var ChannelUpdatedEvent = {
|
|
|
21282
21292
|
active: isSet4(object.active) ? globalThis.Number(object.active) : 0,
|
|
21283
21293
|
count_mess_unread: isSet4(object.count_mess_unread) ? globalThis.Number(object.count_mess_unread) : 0,
|
|
21284
21294
|
user_ids: globalThis.Array.isArray(object == null ? void 0 : object.user_ids) ? object.user_ids.map((e) => globalThis.String(e)) : [],
|
|
21285
|
-
role_ids: globalThis.Array.isArray(object == null ? void 0 : object.role_ids) ? object.role_ids.map((e) => globalThis.String(e)) : []
|
|
21295
|
+
role_ids: globalThis.Array.isArray(object == null ? void 0 : object.role_ids) ? object.role_ids.map((e) => globalThis.String(e)) : [],
|
|
21296
|
+
channel_avatar: isSet4(object.channel_avatar) ? globalThis.String(object.channel_avatar) : ""
|
|
21286
21297
|
};
|
|
21287
21298
|
},
|
|
21288
21299
|
toJSON(message) {
|
|
@@ -21345,13 +21356,16 @@ var ChannelUpdatedEvent = {
|
|
|
21345
21356
|
if ((_b = message.role_ids) == null ? void 0 : _b.length) {
|
|
21346
21357
|
obj.role_ids = message.role_ids;
|
|
21347
21358
|
}
|
|
21359
|
+
if (message.channel_avatar !== "") {
|
|
21360
|
+
obj.channel_avatar = message.channel_avatar;
|
|
21361
|
+
}
|
|
21348
21362
|
return obj;
|
|
21349
21363
|
},
|
|
21350
21364
|
create(base) {
|
|
21351
21365
|
return ChannelUpdatedEvent.fromPartial(base != null ? base : {});
|
|
21352
21366
|
},
|
|
21353
21367
|
fromPartial(object) {
|
|
21354
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
|
|
21368
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
|
|
21355
21369
|
const message = createBaseChannelUpdatedEvent();
|
|
21356
21370
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
21357
21371
|
message.category_id = (_b = object.category_id) != null ? _b : "";
|
|
@@ -21372,6 +21386,7 @@ var ChannelUpdatedEvent = {
|
|
|
21372
21386
|
message.count_mess_unread = (_q = object.count_mess_unread) != null ? _q : 0;
|
|
21373
21387
|
message.user_ids = ((_r = object.user_ids) == null ? void 0 : _r.map((e) => e)) || [];
|
|
21374
21388
|
message.role_ids = ((_s = object.role_ids) == null ? void 0 : _s.map((e) => e)) || [];
|
|
21389
|
+
message.channel_avatar = (_t = object.channel_avatar) != null ? _t : "";
|
|
21375
21390
|
return message;
|
|
21376
21391
|
}
|
|
21377
21392
|
};
|
|
@@ -21056,7 +21056,8 @@ function createBaseChannelUpdatedEvent() {
|
|
|
21056
21056
|
active: 0,
|
|
21057
21057
|
count_mess_unread: 0,
|
|
21058
21058
|
user_ids: [],
|
|
21059
|
-
role_ids: []
|
|
21059
|
+
role_ids: [],
|
|
21060
|
+
channel_avatar: ""
|
|
21060
21061
|
};
|
|
21061
21062
|
}
|
|
21062
21063
|
var ChannelUpdatedEvent = {
|
|
@@ -21118,6 +21119,9 @@ var ChannelUpdatedEvent = {
|
|
|
21118
21119
|
for (const v of message.role_ids) {
|
|
21119
21120
|
writer.uint32(154).string(v);
|
|
21120
21121
|
}
|
|
21122
|
+
if (message.channel_avatar !== "") {
|
|
21123
|
+
writer.uint32(162).string(message.channel_avatar);
|
|
21124
|
+
}
|
|
21121
21125
|
return writer;
|
|
21122
21126
|
},
|
|
21123
21127
|
decode(input, length) {
|
|
@@ -21241,6 +21245,12 @@ var ChannelUpdatedEvent = {
|
|
|
21241
21245
|
}
|
|
21242
21246
|
message.role_ids.push(reader.string());
|
|
21243
21247
|
continue;
|
|
21248
|
+
case 20:
|
|
21249
|
+
if (tag !== 162) {
|
|
21250
|
+
break;
|
|
21251
|
+
}
|
|
21252
|
+
message.channel_avatar = reader.string();
|
|
21253
|
+
continue;
|
|
21244
21254
|
}
|
|
21245
21255
|
if ((tag & 7) === 4 || tag === 0) {
|
|
21246
21256
|
break;
|
|
@@ -21269,7 +21279,8 @@ var ChannelUpdatedEvent = {
|
|
|
21269
21279
|
active: isSet4(object.active) ? globalThis.Number(object.active) : 0,
|
|
21270
21280
|
count_mess_unread: isSet4(object.count_mess_unread) ? globalThis.Number(object.count_mess_unread) : 0,
|
|
21271
21281
|
user_ids: globalThis.Array.isArray(object == null ? void 0 : object.user_ids) ? object.user_ids.map((e) => globalThis.String(e)) : [],
|
|
21272
|
-
role_ids: globalThis.Array.isArray(object == null ? void 0 : object.role_ids) ? object.role_ids.map((e) => globalThis.String(e)) : []
|
|
21282
|
+
role_ids: globalThis.Array.isArray(object == null ? void 0 : object.role_ids) ? object.role_ids.map((e) => globalThis.String(e)) : [],
|
|
21283
|
+
channel_avatar: isSet4(object.channel_avatar) ? globalThis.String(object.channel_avatar) : ""
|
|
21273
21284
|
};
|
|
21274
21285
|
},
|
|
21275
21286
|
toJSON(message) {
|
|
@@ -21332,13 +21343,16 @@ var ChannelUpdatedEvent = {
|
|
|
21332
21343
|
if ((_b = message.role_ids) == null ? void 0 : _b.length) {
|
|
21333
21344
|
obj.role_ids = message.role_ids;
|
|
21334
21345
|
}
|
|
21346
|
+
if (message.channel_avatar !== "") {
|
|
21347
|
+
obj.channel_avatar = message.channel_avatar;
|
|
21348
|
+
}
|
|
21335
21349
|
return obj;
|
|
21336
21350
|
},
|
|
21337
21351
|
create(base) {
|
|
21338
21352
|
return ChannelUpdatedEvent.fromPartial(base != null ? base : {});
|
|
21339
21353
|
},
|
|
21340
21354
|
fromPartial(object) {
|
|
21341
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
|
|
21355
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
|
|
21342
21356
|
const message = createBaseChannelUpdatedEvent();
|
|
21343
21357
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
21344
21358
|
message.category_id = (_b = object.category_id) != null ? _b : "";
|
|
@@ -21359,6 +21373,7 @@ var ChannelUpdatedEvent = {
|
|
|
21359
21373
|
message.count_mess_unread = (_q = object.count_mess_unread) != null ? _q : 0;
|
|
21360
21374
|
message.user_ids = ((_r = object.user_ids) == null ? void 0 : _r.map((e) => e)) || [];
|
|
21361
21375
|
message.role_ids = ((_s = object.role_ids) == null ? void 0 : _s.map((e) => e)) || [];
|
|
21376
|
+
message.channel_avatar = (_t = object.channel_avatar) != null ? _t : "";
|
|
21362
21377
|
return message;
|
|
21363
21378
|
}
|
|
21364
21379
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.48",
|
|
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
|
@@ -1266,6 +1266,8 @@ export interface ChannelUpdatedEvent {
|
|
|
1266
1266
|
user_ids: string[];
|
|
1267
1267
|
/** This is the role that needs to be added to the channel */
|
|
1268
1268
|
role_ids: string[];
|
|
1269
|
+
/** */
|
|
1270
|
+
channel_avatar: string;
|
|
1269
1271
|
}
|
|
1270
1272
|
|
|
1271
1273
|
/** Stop receiving status updates for some set of users. */
|
|
@@ -10033,6 +10035,7 @@ function createBaseChannelUpdatedEvent(): ChannelUpdatedEvent {
|
|
|
10033
10035
|
count_mess_unread: 0,
|
|
10034
10036
|
user_ids: [],
|
|
10035
10037
|
role_ids: [],
|
|
10038
|
+
channel_avatar: "",
|
|
10036
10039
|
};
|
|
10037
10040
|
}
|
|
10038
10041
|
|
|
@@ -10095,6 +10098,9 @@ export const ChannelUpdatedEvent = {
|
|
|
10095
10098
|
for (const v of message.role_ids) {
|
|
10096
10099
|
writer.uint32(154).string(v!);
|
|
10097
10100
|
}
|
|
10101
|
+
if (message.channel_avatar !== "") {
|
|
10102
|
+
writer.uint32(162).string(message.channel_avatar);
|
|
10103
|
+
}
|
|
10098
10104
|
return writer;
|
|
10099
10105
|
},
|
|
10100
10106
|
|
|
@@ -10238,6 +10244,13 @@ export const ChannelUpdatedEvent = {
|
|
|
10238
10244
|
|
|
10239
10245
|
message.role_ids.push(reader.string());
|
|
10240
10246
|
continue;
|
|
10247
|
+
case 20:
|
|
10248
|
+
if (tag !== 162) {
|
|
10249
|
+
break;
|
|
10250
|
+
}
|
|
10251
|
+
|
|
10252
|
+
message.channel_avatar = reader.string();
|
|
10253
|
+
continue;
|
|
10241
10254
|
}
|
|
10242
10255
|
if ((tag & 7) === 4 || tag === 0) {
|
|
10243
10256
|
break;
|
|
@@ -10268,6 +10281,7 @@ export const ChannelUpdatedEvent = {
|
|
|
10268
10281
|
count_mess_unread: isSet(object.count_mess_unread) ? globalThis.Number(object.count_mess_unread) : 0,
|
|
10269
10282
|
user_ids: globalThis.Array.isArray(object?.user_ids) ? object.user_ids.map((e: any) => globalThis.String(e)) : [],
|
|
10270
10283
|
role_ids: globalThis.Array.isArray(object?.role_ids) ? object.role_ids.map((e: any) => globalThis.String(e)) : [],
|
|
10284
|
+
channel_avatar: isSet(object.channel_avatar) ? globalThis.String(object.channel_avatar) : "",
|
|
10271
10285
|
};
|
|
10272
10286
|
},
|
|
10273
10287
|
|
|
@@ -10330,6 +10344,9 @@ export const ChannelUpdatedEvent = {
|
|
|
10330
10344
|
if (message.role_ids?.length) {
|
|
10331
10345
|
obj.role_ids = message.role_ids;
|
|
10332
10346
|
}
|
|
10347
|
+
if (message.channel_avatar !== "") {
|
|
10348
|
+
obj.channel_avatar = message.channel_avatar;
|
|
10349
|
+
}
|
|
10333
10350
|
return obj;
|
|
10334
10351
|
},
|
|
10335
10352
|
|
|
@@ -10357,6 +10374,7 @@ export const ChannelUpdatedEvent = {
|
|
|
10357
10374
|
message.count_mess_unread = object.count_mess_unread ?? 0;
|
|
10358
10375
|
message.user_ids = object.user_ids?.map((e) => e) || [];
|
|
10359
10376
|
message.role_ids = object.role_ids?.map((e) => e) || [];
|
|
10377
|
+
message.channel_avatar = object.channel_avatar ?? "";
|
|
10360
10378
|
return message;
|
|
10361
10379
|
},
|
|
10362
10380
|
};
|