mezon-js-protobuf 1.5.97 → 1.5.98
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 +224 -7
- package/dist/mezon-js-protobuf/api/api.d.ts +278 -8
- package/package.json +1 -1
package/api/api.ts
CHANGED
|
@@ -2078,6 +2078,12 @@ export interface PinMessage {
|
|
|
2078
2078
|
username: string;
|
|
2079
2079
|
/** */
|
|
2080
2080
|
avatar: string;
|
|
2081
|
+
/** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was created. */
|
|
2082
|
+
create_time:
|
|
2083
|
+
| Date
|
|
2084
|
+
| undefined;
|
|
2085
|
+
/** create time in ms */
|
|
2086
|
+
create_time_seconds: number;
|
|
2081
2087
|
}
|
|
2082
2088
|
|
|
2083
2089
|
export interface PinMessagesList {
|
|
@@ -3150,6 +3156,8 @@ export interface ChannelSettingItem {
|
|
|
3150
3156
|
user_ids: string[];
|
|
3151
3157
|
/** message count */
|
|
3152
3158
|
message_count: number;
|
|
3159
|
+
/** last sent message */
|
|
3160
|
+
last_sent_message: ChannelMessageHeader | undefined;
|
|
3153
3161
|
}
|
|
3154
3162
|
|
|
3155
3163
|
export interface ChannelSettingListResponse {
|
|
@@ -3185,6 +3193,8 @@ export interface EditChannelCanvasRequest {
|
|
|
3185
3193
|
title: string;
|
|
3186
3194
|
/** content */
|
|
3187
3195
|
content: string;
|
|
3196
|
+
/** is default */
|
|
3197
|
+
is_default: boolean;
|
|
3188
3198
|
}
|
|
3189
3199
|
|
|
3190
3200
|
export interface EditChannelCanvasResponse {
|
|
@@ -3192,6 +3202,15 @@ export interface EditChannelCanvasResponse {
|
|
|
3192
3202
|
id: string;
|
|
3193
3203
|
}
|
|
3194
3204
|
|
|
3205
|
+
export interface DeleteChannelCanvasRequest {
|
|
3206
|
+
/** clan id */
|
|
3207
|
+
clan_id: string;
|
|
3208
|
+
/** channel id */
|
|
3209
|
+
channel_id: string;
|
|
3210
|
+
/** canvas id */
|
|
3211
|
+
canvas_id: string;
|
|
3212
|
+
}
|
|
3213
|
+
|
|
3195
3214
|
export interface ChannelCanvasListRequest {
|
|
3196
3215
|
/** clan id */
|
|
3197
3216
|
clan_id: string;
|
|
@@ -3210,6 +3229,8 @@ export interface ChannelCanvasItem {
|
|
|
3210
3229
|
id: string;
|
|
3211
3230
|
/** title */
|
|
3212
3231
|
title: string;
|
|
3232
|
+
/** is default */
|
|
3233
|
+
is_default: boolean;
|
|
3213
3234
|
}
|
|
3214
3235
|
|
|
3215
3236
|
export interface ChannelCanvasListResponse {
|
|
@@ -3241,6 +3262,8 @@ export interface ChannelCanvasDetailResponse {
|
|
|
3241
3262
|
creator_id: string;
|
|
3242
3263
|
/** editor */
|
|
3243
3264
|
editor_id: string;
|
|
3265
|
+
/** is default */
|
|
3266
|
+
is_default: boolean;
|
|
3244
3267
|
}
|
|
3245
3268
|
|
|
3246
3269
|
function createBaseAccount(): Account {
|
|
@@ -18378,7 +18401,17 @@ export const DeletePinMessage = {
|
|
|
18378
18401
|
};
|
|
18379
18402
|
|
|
18380
18403
|
function createBasePinMessage(): PinMessage {
|
|
18381
|
-
return {
|
|
18404
|
+
return {
|
|
18405
|
+
id: "",
|
|
18406
|
+
message_id: "",
|
|
18407
|
+
channel_id: "",
|
|
18408
|
+
sender_id: "",
|
|
18409
|
+
content: "",
|
|
18410
|
+
username: "",
|
|
18411
|
+
avatar: "",
|
|
18412
|
+
create_time: undefined,
|
|
18413
|
+
create_time_seconds: 0,
|
|
18414
|
+
};
|
|
18382
18415
|
}
|
|
18383
18416
|
|
|
18384
18417
|
export const PinMessage = {
|
|
@@ -18404,6 +18437,12 @@ export const PinMessage = {
|
|
|
18404
18437
|
if (message.avatar !== "") {
|
|
18405
18438
|
writer.uint32(58).string(message.avatar);
|
|
18406
18439
|
}
|
|
18440
|
+
if (message.create_time !== undefined) {
|
|
18441
|
+
Timestamp.encode(toTimestamp(message.create_time), writer.uint32(66).fork()).ldelim();
|
|
18442
|
+
}
|
|
18443
|
+
if (message.create_time_seconds !== 0) {
|
|
18444
|
+
writer.uint32(72).uint32(message.create_time_seconds);
|
|
18445
|
+
}
|
|
18407
18446
|
return writer;
|
|
18408
18447
|
},
|
|
18409
18448
|
|
|
@@ -18463,6 +18502,20 @@ export const PinMessage = {
|
|
|
18463
18502
|
|
|
18464
18503
|
message.avatar = reader.string();
|
|
18465
18504
|
continue;
|
|
18505
|
+
case 8:
|
|
18506
|
+
if (tag !== 66) {
|
|
18507
|
+
break;
|
|
18508
|
+
}
|
|
18509
|
+
|
|
18510
|
+
message.create_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
18511
|
+
continue;
|
|
18512
|
+
case 9:
|
|
18513
|
+
if (tag !== 72) {
|
|
18514
|
+
break;
|
|
18515
|
+
}
|
|
18516
|
+
|
|
18517
|
+
message.create_time_seconds = reader.uint32();
|
|
18518
|
+
continue;
|
|
18466
18519
|
}
|
|
18467
18520
|
if ((tag & 7) === 4 || tag === 0) {
|
|
18468
18521
|
break;
|
|
@@ -18481,6 +18534,8 @@ export const PinMessage = {
|
|
|
18481
18534
|
content: isSet(object.content) ? globalThis.String(object.content) : "",
|
|
18482
18535
|
username: isSet(object.username) ? globalThis.String(object.username) : "",
|
|
18483
18536
|
avatar: isSet(object.avatar) ? globalThis.String(object.avatar) : "",
|
|
18537
|
+
create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
|
|
18538
|
+
create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
|
|
18484
18539
|
};
|
|
18485
18540
|
},
|
|
18486
18541
|
|
|
@@ -18507,6 +18562,12 @@ export const PinMessage = {
|
|
|
18507
18562
|
if (message.avatar !== "") {
|
|
18508
18563
|
obj.avatar = message.avatar;
|
|
18509
18564
|
}
|
|
18565
|
+
if (message.create_time !== undefined) {
|
|
18566
|
+
obj.create_time = message.create_time.toISOString();
|
|
18567
|
+
}
|
|
18568
|
+
if (message.create_time_seconds !== 0) {
|
|
18569
|
+
obj.create_time_seconds = Math.round(message.create_time_seconds);
|
|
18570
|
+
}
|
|
18510
18571
|
return obj;
|
|
18511
18572
|
},
|
|
18512
18573
|
|
|
@@ -18522,6 +18583,8 @@ export const PinMessage = {
|
|
|
18522
18583
|
message.content = object.content ?? "";
|
|
18523
18584
|
message.username = object.username ?? "";
|
|
18524
18585
|
message.avatar = object.avatar ?? "";
|
|
18586
|
+
message.create_time = object.create_time ?? undefined;
|
|
18587
|
+
message.create_time_seconds = object.create_time_seconds ?? 0;
|
|
18525
18588
|
return message;
|
|
18526
18589
|
},
|
|
18527
18590
|
};
|
|
@@ -29535,6 +29598,7 @@ function createBaseChannelSettingItem(): ChannelSettingItem {
|
|
|
29535
29598
|
active: 0,
|
|
29536
29599
|
user_ids: [],
|
|
29537
29600
|
message_count: 0,
|
|
29601
|
+
last_sent_message: undefined,
|
|
29538
29602
|
};
|
|
29539
29603
|
}
|
|
29540
29604
|
|
|
@@ -29573,6 +29637,9 @@ export const ChannelSettingItem = {
|
|
|
29573
29637
|
if (message.message_count !== 0) {
|
|
29574
29638
|
writer.uint32(88).int64(message.message_count);
|
|
29575
29639
|
}
|
|
29640
|
+
if (message.last_sent_message !== undefined) {
|
|
29641
|
+
ChannelMessageHeader.encode(message.last_sent_message, writer.uint32(98).fork()).ldelim();
|
|
29642
|
+
}
|
|
29576
29643
|
return writer;
|
|
29577
29644
|
},
|
|
29578
29645
|
|
|
@@ -29660,6 +29727,13 @@ export const ChannelSettingItem = {
|
|
|
29660
29727
|
|
|
29661
29728
|
message.message_count = longToNumber(reader.int64() as Long);
|
|
29662
29729
|
continue;
|
|
29730
|
+
case 12:
|
|
29731
|
+
if (tag !== 98) {
|
|
29732
|
+
break;
|
|
29733
|
+
}
|
|
29734
|
+
|
|
29735
|
+
message.last_sent_message = ChannelMessageHeader.decode(reader, reader.uint32());
|
|
29736
|
+
continue;
|
|
29663
29737
|
}
|
|
29664
29738
|
if ((tag & 7) === 4 || tag === 0) {
|
|
29665
29739
|
break;
|
|
@@ -29682,6 +29756,9 @@ export const ChannelSettingItem = {
|
|
|
29682
29756
|
active: isSet(object.active) ? globalThis.Number(object.active) : 0,
|
|
29683
29757
|
user_ids: globalThis.Array.isArray(object?.user_ids) ? object.user_ids.map((e: any) => globalThis.String(e)) : [],
|
|
29684
29758
|
message_count: isSet(object.message_count) ? globalThis.Number(object.message_count) : 0,
|
|
29759
|
+
last_sent_message: isSet(object.last_sent_message)
|
|
29760
|
+
? ChannelMessageHeader.fromJSON(object.last_sent_message)
|
|
29761
|
+
: undefined,
|
|
29685
29762
|
};
|
|
29686
29763
|
},
|
|
29687
29764
|
|
|
@@ -29720,6 +29797,9 @@ export const ChannelSettingItem = {
|
|
|
29720
29797
|
if (message.message_count !== 0) {
|
|
29721
29798
|
obj.message_count = Math.round(message.message_count);
|
|
29722
29799
|
}
|
|
29800
|
+
if (message.last_sent_message !== undefined) {
|
|
29801
|
+
obj.last_sent_message = ChannelMessageHeader.toJSON(message.last_sent_message);
|
|
29802
|
+
}
|
|
29723
29803
|
return obj;
|
|
29724
29804
|
},
|
|
29725
29805
|
|
|
@@ -29739,6 +29819,9 @@ export const ChannelSettingItem = {
|
|
|
29739
29819
|
message.active = object.active ?? 0;
|
|
29740
29820
|
message.user_ids = object.user_ids?.map((e) => e) || [];
|
|
29741
29821
|
message.message_count = object.message_count ?? 0;
|
|
29822
|
+
message.last_sent_message = (object.last_sent_message !== undefined && object.last_sent_message !== null)
|
|
29823
|
+
? ChannelMessageHeader.fromPartial(object.last_sent_message)
|
|
29824
|
+
: undefined;
|
|
29742
29825
|
return message;
|
|
29743
29826
|
},
|
|
29744
29827
|
};
|
|
@@ -29939,7 +30022,7 @@ export const MarkAsReadRequest = {
|
|
|
29939
30022
|
};
|
|
29940
30023
|
|
|
29941
30024
|
function createBaseEditChannelCanvasRequest(): EditChannelCanvasRequest {
|
|
29942
|
-
return { id: undefined, channel_id: "", clan_id: "", title: "", content: "" };
|
|
30025
|
+
return { id: undefined, channel_id: "", clan_id: "", title: "", content: "", is_default: false };
|
|
29943
30026
|
}
|
|
29944
30027
|
|
|
29945
30028
|
export const EditChannelCanvasRequest = {
|
|
@@ -29959,6 +30042,9 @@ export const EditChannelCanvasRequest = {
|
|
|
29959
30042
|
if (message.content !== "") {
|
|
29960
30043
|
writer.uint32(42).string(message.content);
|
|
29961
30044
|
}
|
|
30045
|
+
if (message.is_default !== false) {
|
|
30046
|
+
writer.uint32(48).bool(message.is_default);
|
|
30047
|
+
}
|
|
29962
30048
|
return writer;
|
|
29963
30049
|
},
|
|
29964
30050
|
|
|
@@ -30004,6 +30090,13 @@ export const EditChannelCanvasRequest = {
|
|
|
30004
30090
|
|
|
30005
30091
|
message.content = reader.string();
|
|
30006
30092
|
continue;
|
|
30093
|
+
case 6:
|
|
30094
|
+
if (tag !== 48) {
|
|
30095
|
+
break;
|
|
30096
|
+
}
|
|
30097
|
+
|
|
30098
|
+
message.is_default = reader.bool();
|
|
30099
|
+
continue;
|
|
30007
30100
|
}
|
|
30008
30101
|
if ((tag & 7) === 4 || tag === 0) {
|
|
30009
30102
|
break;
|
|
@@ -30020,6 +30113,7 @@ export const EditChannelCanvasRequest = {
|
|
|
30020
30113
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
30021
30114
|
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
30022
30115
|
content: isSet(object.content) ? globalThis.String(object.content) : "",
|
|
30116
|
+
is_default: isSet(object.is_default) ? globalThis.Boolean(object.is_default) : false,
|
|
30023
30117
|
};
|
|
30024
30118
|
},
|
|
30025
30119
|
|
|
@@ -30040,6 +30134,9 @@ export const EditChannelCanvasRequest = {
|
|
|
30040
30134
|
if (message.content !== "") {
|
|
30041
30135
|
obj.content = message.content;
|
|
30042
30136
|
}
|
|
30137
|
+
if (message.is_default !== false) {
|
|
30138
|
+
obj.is_default = message.is_default;
|
|
30139
|
+
}
|
|
30043
30140
|
return obj;
|
|
30044
30141
|
},
|
|
30045
30142
|
|
|
@@ -30053,6 +30150,7 @@ export const EditChannelCanvasRequest = {
|
|
|
30053
30150
|
message.clan_id = object.clan_id ?? "";
|
|
30054
30151
|
message.title = object.title ?? "";
|
|
30055
30152
|
message.content = object.content ?? "";
|
|
30153
|
+
message.is_default = object.is_default ?? false;
|
|
30056
30154
|
return message;
|
|
30057
30155
|
},
|
|
30058
30156
|
};
|
|
@@ -30114,6 +30212,95 @@ export const EditChannelCanvasResponse = {
|
|
|
30114
30212
|
},
|
|
30115
30213
|
};
|
|
30116
30214
|
|
|
30215
|
+
function createBaseDeleteChannelCanvasRequest(): DeleteChannelCanvasRequest {
|
|
30216
|
+
return { clan_id: "", channel_id: "", canvas_id: "" };
|
|
30217
|
+
}
|
|
30218
|
+
|
|
30219
|
+
export const DeleteChannelCanvasRequest = {
|
|
30220
|
+
encode(message: DeleteChannelCanvasRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
30221
|
+
if (message.clan_id !== "") {
|
|
30222
|
+
writer.uint32(10).string(message.clan_id);
|
|
30223
|
+
}
|
|
30224
|
+
if (message.channel_id !== "") {
|
|
30225
|
+
writer.uint32(18).string(message.channel_id);
|
|
30226
|
+
}
|
|
30227
|
+
if (message.canvas_id !== "") {
|
|
30228
|
+
writer.uint32(26).string(message.canvas_id);
|
|
30229
|
+
}
|
|
30230
|
+
return writer;
|
|
30231
|
+
},
|
|
30232
|
+
|
|
30233
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DeleteChannelCanvasRequest {
|
|
30234
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
30235
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
30236
|
+
const message = createBaseDeleteChannelCanvasRequest();
|
|
30237
|
+
while (reader.pos < end) {
|
|
30238
|
+
const tag = reader.uint32();
|
|
30239
|
+
switch (tag >>> 3) {
|
|
30240
|
+
case 1:
|
|
30241
|
+
if (tag !== 10) {
|
|
30242
|
+
break;
|
|
30243
|
+
}
|
|
30244
|
+
|
|
30245
|
+
message.clan_id = reader.string();
|
|
30246
|
+
continue;
|
|
30247
|
+
case 2:
|
|
30248
|
+
if (tag !== 18) {
|
|
30249
|
+
break;
|
|
30250
|
+
}
|
|
30251
|
+
|
|
30252
|
+
message.channel_id = reader.string();
|
|
30253
|
+
continue;
|
|
30254
|
+
case 3:
|
|
30255
|
+
if (tag !== 26) {
|
|
30256
|
+
break;
|
|
30257
|
+
}
|
|
30258
|
+
|
|
30259
|
+
message.canvas_id = reader.string();
|
|
30260
|
+
continue;
|
|
30261
|
+
}
|
|
30262
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
30263
|
+
break;
|
|
30264
|
+
}
|
|
30265
|
+
reader.skipType(tag & 7);
|
|
30266
|
+
}
|
|
30267
|
+
return message;
|
|
30268
|
+
},
|
|
30269
|
+
|
|
30270
|
+
fromJSON(object: any): DeleteChannelCanvasRequest {
|
|
30271
|
+
return {
|
|
30272
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
30273
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
30274
|
+
canvas_id: isSet(object.canvas_id) ? globalThis.String(object.canvas_id) : "",
|
|
30275
|
+
};
|
|
30276
|
+
},
|
|
30277
|
+
|
|
30278
|
+
toJSON(message: DeleteChannelCanvasRequest): unknown {
|
|
30279
|
+
const obj: any = {};
|
|
30280
|
+
if (message.clan_id !== "") {
|
|
30281
|
+
obj.clan_id = message.clan_id;
|
|
30282
|
+
}
|
|
30283
|
+
if (message.channel_id !== "") {
|
|
30284
|
+
obj.channel_id = message.channel_id;
|
|
30285
|
+
}
|
|
30286
|
+
if (message.canvas_id !== "") {
|
|
30287
|
+
obj.canvas_id = message.canvas_id;
|
|
30288
|
+
}
|
|
30289
|
+
return obj;
|
|
30290
|
+
},
|
|
30291
|
+
|
|
30292
|
+
create<I extends Exact<DeepPartial<DeleteChannelCanvasRequest>, I>>(base?: I): DeleteChannelCanvasRequest {
|
|
30293
|
+
return DeleteChannelCanvasRequest.fromPartial(base ?? ({} as any));
|
|
30294
|
+
},
|
|
30295
|
+
fromPartial<I extends Exact<DeepPartial<DeleteChannelCanvasRequest>, I>>(object: I): DeleteChannelCanvasRequest {
|
|
30296
|
+
const message = createBaseDeleteChannelCanvasRequest();
|
|
30297
|
+
message.clan_id = object.clan_id ?? "";
|
|
30298
|
+
message.channel_id = object.channel_id ?? "";
|
|
30299
|
+
message.canvas_id = object.canvas_id ?? "";
|
|
30300
|
+
return message;
|
|
30301
|
+
},
|
|
30302
|
+
};
|
|
30303
|
+
|
|
30117
30304
|
function createBaseChannelCanvasListRequest(): ChannelCanvasListRequest {
|
|
30118
30305
|
return { clan_id: "", channel_id: "", limit: undefined, page: undefined };
|
|
30119
30306
|
}
|
|
@@ -30219,7 +30406,7 @@ export const ChannelCanvasListRequest = {
|
|
|
30219
30406
|
};
|
|
30220
30407
|
|
|
30221
30408
|
function createBaseChannelCanvasItem(): ChannelCanvasItem {
|
|
30222
|
-
return { id: "", title: "" };
|
|
30409
|
+
return { id: "", title: "", is_default: false };
|
|
30223
30410
|
}
|
|
30224
30411
|
|
|
30225
30412
|
export const ChannelCanvasItem = {
|
|
@@ -30228,7 +30415,10 @@ export const ChannelCanvasItem = {
|
|
|
30228
30415
|
writer.uint32(10).string(message.id);
|
|
30229
30416
|
}
|
|
30230
30417
|
if (message.title !== "") {
|
|
30231
|
-
writer.uint32(
|
|
30418
|
+
writer.uint32(18).string(message.title);
|
|
30419
|
+
}
|
|
30420
|
+
if (message.is_default !== false) {
|
|
30421
|
+
writer.uint32(24).bool(message.is_default);
|
|
30232
30422
|
}
|
|
30233
30423
|
return writer;
|
|
30234
30424
|
},
|
|
@@ -30247,13 +30437,20 @@ export const ChannelCanvasItem = {
|
|
|
30247
30437
|
|
|
30248
30438
|
message.id = reader.string();
|
|
30249
30439
|
continue;
|
|
30250
|
-
case
|
|
30251
|
-
if (tag !==
|
|
30440
|
+
case 2:
|
|
30441
|
+
if (tag !== 18) {
|
|
30252
30442
|
break;
|
|
30253
30443
|
}
|
|
30254
30444
|
|
|
30255
30445
|
message.title = reader.string();
|
|
30256
30446
|
continue;
|
|
30447
|
+
case 3:
|
|
30448
|
+
if (tag !== 24) {
|
|
30449
|
+
break;
|
|
30450
|
+
}
|
|
30451
|
+
|
|
30452
|
+
message.is_default = reader.bool();
|
|
30453
|
+
continue;
|
|
30257
30454
|
}
|
|
30258
30455
|
if ((tag & 7) === 4 || tag === 0) {
|
|
30259
30456
|
break;
|
|
@@ -30267,6 +30464,7 @@ export const ChannelCanvasItem = {
|
|
|
30267
30464
|
return {
|
|
30268
30465
|
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
30269
30466
|
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
30467
|
+
is_default: isSet(object.is_default) ? globalThis.Boolean(object.is_default) : false,
|
|
30270
30468
|
};
|
|
30271
30469
|
},
|
|
30272
30470
|
|
|
@@ -30278,6 +30476,9 @@ export const ChannelCanvasItem = {
|
|
|
30278
30476
|
if (message.title !== "") {
|
|
30279
30477
|
obj.title = message.title;
|
|
30280
30478
|
}
|
|
30479
|
+
if (message.is_default !== false) {
|
|
30480
|
+
obj.is_default = message.is_default;
|
|
30481
|
+
}
|
|
30281
30482
|
return obj;
|
|
30282
30483
|
},
|
|
30283
30484
|
|
|
@@ -30288,6 +30489,7 @@ export const ChannelCanvasItem = {
|
|
|
30288
30489
|
const message = createBaseChannelCanvasItem();
|
|
30289
30490
|
message.id = object.id ?? "";
|
|
30290
30491
|
message.title = object.title ?? "";
|
|
30492
|
+
message.is_default = object.is_default ?? false;
|
|
30291
30493
|
return message;
|
|
30292
30494
|
},
|
|
30293
30495
|
};
|
|
@@ -30473,7 +30675,7 @@ export const ChannelCanvasDetailRequest = {
|
|
|
30473
30675
|
};
|
|
30474
30676
|
|
|
30475
30677
|
function createBaseChannelCanvasDetailResponse(): ChannelCanvasDetailResponse {
|
|
30476
|
-
return { id: "", title: "", content: "", creator_id: "", editor_id: "" };
|
|
30678
|
+
return { id: "", title: "", content: "", creator_id: "", editor_id: "", is_default: false };
|
|
30477
30679
|
}
|
|
30478
30680
|
|
|
30479
30681
|
export const ChannelCanvasDetailResponse = {
|
|
@@ -30493,6 +30695,9 @@ export const ChannelCanvasDetailResponse = {
|
|
|
30493
30695
|
if (message.editor_id !== "") {
|
|
30494
30696
|
writer.uint32(42).string(message.editor_id);
|
|
30495
30697
|
}
|
|
30698
|
+
if (message.is_default !== false) {
|
|
30699
|
+
writer.uint32(48).bool(message.is_default);
|
|
30700
|
+
}
|
|
30496
30701
|
return writer;
|
|
30497
30702
|
},
|
|
30498
30703
|
|
|
@@ -30538,6 +30743,13 @@ export const ChannelCanvasDetailResponse = {
|
|
|
30538
30743
|
|
|
30539
30744
|
message.editor_id = reader.string();
|
|
30540
30745
|
continue;
|
|
30746
|
+
case 6:
|
|
30747
|
+
if (tag !== 48) {
|
|
30748
|
+
break;
|
|
30749
|
+
}
|
|
30750
|
+
|
|
30751
|
+
message.is_default = reader.bool();
|
|
30752
|
+
continue;
|
|
30541
30753
|
}
|
|
30542
30754
|
if ((tag & 7) === 4 || tag === 0) {
|
|
30543
30755
|
break;
|
|
@@ -30554,6 +30766,7 @@ export const ChannelCanvasDetailResponse = {
|
|
|
30554
30766
|
content: isSet(object.content) ? globalThis.String(object.content) : "",
|
|
30555
30767
|
creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
|
|
30556
30768
|
editor_id: isSet(object.editor_id) ? globalThis.String(object.editor_id) : "",
|
|
30769
|
+
is_default: isSet(object.is_default) ? globalThis.Boolean(object.is_default) : false,
|
|
30557
30770
|
};
|
|
30558
30771
|
},
|
|
30559
30772
|
|
|
@@ -30574,6 +30787,9 @@ export const ChannelCanvasDetailResponse = {
|
|
|
30574
30787
|
if (message.editor_id !== "") {
|
|
30575
30788
|
obj.editor_id = message.editor_id;
|
|
30576
30789
|
}
|
|
30790
|
+
if (message.is_default !== false) {
|
|
30791
|
+
obj.is_default = message.is_default;
|
|
30792
|
+
}
|
|
30577
30793
|
return obj;
|
|
30578
30794
|
},
|
|
30579
30795
|
|
|
@@ -30587,6 +30803,7 @@ export const ChannelCanvasDetailResponse = {
|
|
|
30587
30803
|
message.content = object.content ?? "";
|
|
30588
30804
|
message.creator_id = object.creator_id ?? "";
|
|
30589
30805
|
message.editor_id = object.editor_id ?? "";
|
|
30806
|
+
message.is_default = object.is_default ?? false;
|
|
30590
30807
|
return message;
|
|
30591
30808
|
},
|
|
30592
30809
|
};
|
|
@@ -1575,6 +1575,10 @@ export interface PinMessage {
|
|
|
1575
1575
|
username: string;
|
|
1576
1576
|
/** */
|
|
1577
1577
|
avatar: string;
|
|
1578
|
+
/** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was created. */
|
|
1579
|
+
create_time: Date | undefined;
|
|
1580
|
+
/** create time in ms */
|
|
1581
|
+
create_time_seconds: number;
|
|
1578
1582
|
}
|
|
1579
1583
|
export interface PinMessagesList {
|
|
1580
1584
|
pin_messages_list: PinMessage[];
|
|
@@ -2503,6 +2507,8 @@ export interface ChannelSettingItem {
|
|
|
2503
2507
|
user_ids: string[];
|
|
2504
2508
|
/** message count */
|
|
2505
2509
|
message_count: number;
|
|
2510
|
+
/** last sent message */
|
|
2511
|
+
last_sent_message: ChannelMessageHeader | undefined;
|
|
2506
2512
|
}
|
|
2507
2513
|
export interface ChannelSettingListResponse {
|
|
2508
2514
|
/** clan id */
|
|
@@ -2533,11 +2539,21 @@ export interface EditChannelCanvasRequest {
|
|
|
2533
2539
|
title: string;
|
|
2534
2540
|
/** content */
|
|
2535
2541
|
content: string;
|
|
2542
|
+
/** is default */
|
|
2543
|
+
is_default: boolean;
|
|
2536
2544
|
}
|
|
2537
2545
|
export interface EditChannelCanvasResponse {
|
|
2538
2546
|
/** id */
|
|
2539
2547
|
id: string;
|
|
2540
2548
|
}
|
|
2549
|
+
export interface DeleteChannelCanvasRequest {
|
|
2550
|
+
/** clan id */
|
|
2551
|
+
clan_id: string;
|
|
2552
|
+
/** channel id */
|
|
2553
|
+
channel_id: string;
|
|
2554
|
+
/** canvas id */
|
|
2555
|
+
canvas_id: string;
|
|
2556
|
+
}
|
|
2541
2557
|
export interface ChannelCanvasListRequest {
|
|
2542
2558
|
/** clan id */
|
|
2543
2559
|
clan_id: string;
|
|
@@ -2553,6 +2569,8 @@ export interface ChannelCanvasItem {
|
|
|
2553
2569
|
id: string;
|
|
2554
2570
|
/** title */
|
|
2555
2571
|
title: string;
|
|
2572
|
+
/** is default */
|
|
2573
|
+
is_default: boolean;
|
|
2556
2574
|
}
|
|
2557
2575
|
export interface ChannelCanvasListResponse {
|
|
2558
2576
|
/** clan id */
|
|
@@ -2581,6 +2599,8 @@ export interface ChannelCanvasDetailResponse {
|
|
|
2581
2599
|
creator_id: string;
|
|
2582
2600
|
/** editor */
|
|
2583
2601
|
editor_id: string;
|
|
2602
|
+
/** is default */
|
|
2603
|
+
is_default: boolean;
|
|
2584
2604
|
}
|
|
2585
2605
|
export declare const Account: {
|
|
2586
2606
|
encode(message: Account, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -10829,6 +10849,8 @@ export declare const PinMessage: {
|
|
|
10829
10849
|
content?: string | undefined;
|
|
10830
10850
|
username?: string | undefined;
|
|
10831
10851
|
avatar?: string | undefined;
|
|
10852
|
+
create_time?: Date | undefined;
|
|
10853
|
+
create_time_seconds?: number | undefined;
|
|
10832
10854
|
} & {
|
|
10833
10855
|
id?: string | undefined;
|
|
10834
10856
|
message_id?: string | undefined;
|
|
@@ -10837,6 +10859,8 @@ export declare const PinMessage: {
|
|
|
10837
10859
|
content?: string | undefined;
|
|
10838
10860
|
username?: string | undefined;
|
|
10839
10861
|
avatar?: string | undefined;
|
|
10862
|
+
create_time?: Date | undefined;
|
|
10863
|
+
create_time_seconds?: number | undefined;
|
|
10840
10864
|
} & { [K in Exclude<keyof I, keyof PinMessage>]: never; }>(base?: I | undefined): PinMessage;
|
|
10841
10865
|
fromPartial<I_1 extends {
|
|
10842
10866
|
id?: string | undefined;
|
|
@@ -10846,6 +10870,8 @@ export declare const PinMessage: {
|
|
|
10846
10870
|
content?: string | undefined;
|
|
10847
10871
|
username?: string | undefined;
|
|
10848
10872
|
avatar?: string | undefined;
|
|
10873
|
+
create_time?: Date | undefined;
|
|
10874
|
+
create_time_seconds?: number | undefined;
|
|
10849
10875
|
} & {
|
|
10850
10876
|
id?: string | undefined;
|
|
10851
10877
|
message_id?: string | undefined;
|
|
@@ -10854,6 +10880,8 @@ export declare const PinMessage: {
|
|
|
10854
10880
|
content?: string | undefined;
|
|
10855
10881
|
username?: string | undefined;
|
|
10856
10882
|
avatar?: string | undefined;
|
|
10883
|
+
create_time?: Date | undefined;
|
|
10884
|
+
create_time_seconds?: number | undefined;
|
|
10857
10885
|
} & { [K_1 in Exclude<keyof I_1, keyof PinMessage>]: never; }>(object: I_1): PinMessage;
|
|
10858
10886
|
};
|
|
10859
10887
|
export declare const PinMessagesList: {
|
|
@@ -10870,6 +10898,8 @@ export declare const PinMessagesList: {
|
|
|
10870
10898
|
content?: string | undefined;
|
|
10871
10899
|
username?: string | undefined;
|
|
10872
10900
|
avatar?: string | undefined;
|
|
10901
|
+
create_time?: Date | undefined;
|
|
10902
|
+
create_time_seconds?: number | undefined;
|
|
10873
10903
|
}[] | undefined;
|
|
10874
10904
|
} & {
|
|
10875
10905
|
pin_messages_list?: ({
|
|
@@ -10880,6 +10910,8 @@ export declare const PinMessagesList: {
|
|
|
10880
10910
|
content?: string | undefined;
|
|
10881
10911
|
username?: string | undefined;
|
|
10882
10912
|
avatar?: string | undefined;
|
|
10913
|
+
create_time?: Date | undefined;
|
|
10914
|
+
create_time_seconds?: number | undefined;
|
|
10883
10915
|
}[] & ({
|
|
10884
10916
|
id?: string | undefined;
|
|
10885
10917
|
message_id?: string | undefined;
|
|
@@ -10888,6 +10920,8 @@ export declare const PinMessagesList: {
|
|
|
10888
10920
|
content?: string | undefined;
|
|
10889
10921
|
username?: string | undefined;
|
|
10890
10922
|
avatar?: string | undefined;
|
|
10923
|
+
create_time?: Date | undefined;
|
|
10924
|
+
create_time_seconds?: number | undefined;
|
|
10891
10925
|
} & {
|
|
10892
10926
|
id?: string | undefined;
|
|
10893
10927
|
message_id?: string | undefined;
|
|
@@ -10896,6 +10930,8 @@ export declare const PinMessagesList: {
|
|
|
10896
10930
|
content?: string | undefined;
|
|
10897
10931
|
username?: string | undefined;
|
|
10898
10932
|
avatar?: string | undefined;
|
|
10933
|
+
create_time?: Date | undefined;
|
|
10934
|
+
create_time_seconds?: number | undefined;
|
|
10899
10935
|
} & { [K in Exclude<keyof I["pin_messages_list"][number], keyof PinMessage>]: never; })[] & { [K_1 in Exclude<keyof I["pin_messages_list"], keyof {
|
|
10900
10936
|
id?: string | undefined;
|
|
10901
10937
|
message_id?: string | undefined;
|
|
@@ -10904,6 +10940,8 @@ export declare const PinMessagesList: {
|
|
|
10904
10940
|
content?: string | undefined;
|
|
10905
10941
|
username?: string | undefined;
|
|
10906
10942
|
avatar?: string | undefined;
|
|
10943
|
+
create_time?: Date | undefined;
|
|
10944
|
+
create_time_seconds?: number | undefined;
|
|
10907
10945
|
}[]>]: never; }) | undefined;
|
|
10908
10946
|
} & { [K_2 in Exclude<keyof I, "pin_messages_list">]: never; }>(base?: I | undefined): PinMessagesList;
|
|
10909
10947
|
fromPartial<I_1 extends {
|
|
@@ -10915,6 +10953,8 @@ export declare const PinMessagesList: {
|
|
|
10915
10953
|
content?: string | undefined;
|
|
10916
10954
|
username?: string | undefined;
|
|
10917
10955
|
avatar?: string | undefined;
|
|
10956
|
+
create_time?: Date | undefined;
|
|
10957
|
+
create_time_seconds?: number | undefined;
|
|
10918
10958
|
}[] | undefined;
|
|
10919
10959
|
} & {
|
|
10920
10960
|
pin_messages_list?: ({
|
|
@@ -10925,6 +10965,8 @@ export declare const PinMessagesList: {
|
|
|
10925
10965
|
content?: string | undefined;
|
|
10926
10966
|
username?: string | undefined;
|
|
10927
10967
|
avatar?: string | undefined;
|
|
10968
|
+
create_time?: Date | undefined;
|
|
10969
|
+
create_time_seconds?: number | undefined;
|
|
10928
10970
|
}[] & ({
|
|
10929
10971
|
id?: string | undefined;
|
|
10930
10972
|
message_id?: string | undefined;
|
|
@@ -10933,6 +10975,8 @@ export declare const PinMessagesList: {
|
|
|
10933
10975
|
content?: string | undefined;
|
|
10934
10976
|
username?: string | undefined;
|
|
10935
10977
|
avatar?: string | undefined;
|
|
10978
|
+
create_time?: Date | undefined;
|
|
10979
|
+
create_time_seconds?: number | undefined;
|
|
10936
10980
|
} & {
|
|
10937
10981
|
id?: string | undefined;
|
|
10938
10982
|
message_id?: string | undefined;
|
|
@@ -10941,6 +10985,8 @@ export declare const PinMessagesList: {
|
|
|
10941
10985
|
content?: string | undefined;
|
|
10942
10986
|
username?: string | undefined;
|
|
10943
10987
|
avatar?: string | undefined;
|
|
10988
|
+
create_time?: Date | undefined;
|
|
10989
|
+
create_time_seconds?: number | undefined;
|
|
10944
10990
|
} & { [K_3 in Exclude<keyof I_1["pin_messages_list"][number], keyof PinMessage>]: never; })[] & { [K_4 in Exclude<keyof I_1["pin_messages_list"], keyof {
|
|
10945
10991
|
id?: string | undefined;
|
|
10946
10992
|
message_id?: string | undefined;
|
|
@@ -10949,6 +10995,8 @@ export declare const PinMessagesList: {
|
|
|
10949
10995
|
content?: string | undefined;
|
|
10950
10996
|
username?: string | undefined;
|
|
10951
10997
|
avatar?: string | undefined;
|
|
10998
|
+
create_time?: Date | undefined;
|
|
10999
|
+
create_time_seconds?: number | undefined;
|
|
10952
11000
|
}[]>]: never; }) | undefined;
|
|
10953
11001
|
} & { [K_5 in Exclude<keyof I_1, "pin_messages_list">]: never; }>(object: I_1): PinMessagesList;
|
|
10954
11002
|
};
|
|
@@ -16903,6 +16951,16 @@ export declare const ChannelSettingItem: {
|
|
|
16903
16951
|
active?: number | undefined;
|
|
16904
16952
|
user_ids?: string[] | undefined;
|
|
16905
16953
|
message_count?: number | undefined;
|
|
16954
|
+
last_sent_message?: {
|
|
16955
|
+
id?: string | undefined;
|
|
16956
|
+
timestamp_seconds?: number | undefined;
|
|
16957
|
+
sender_id?: string | undefined;
|
|
16958
|
+
content?: string | undefined;
|
|
16959
|
+
attachment?: string | undefined;
|
|
16960
|
+
referece?: string | undefined;
|
|
16961
|
+
mention?: string | undefined;
|
|
16962
|
+
reaction?: string | undefined;
|
|
16963
|
+
} | undefined;
|
|
16906
16964
|
} & {
|
|
16907
16965
|
id?: string | undefined;
|
|
16908
16966
|
creator_id?: string | undefined;
|
|
@@ -16915,7 +16973,26 @@ export declare const ChannelSettingItem: {
|
|
|
16915
16973
|
active?: number | undefined;
|
|
16916
16974
|
user_ids?: (string[] & string[] & { [K in Exclude<keyof I["user_ids"], keyof string[]>]: never; }) | undefined;
|
|
16917
16975
|
message_count?: number | undefined;
|
|
16918
|
-
|
|
16976
|
+
last_sent_message?: ({
|
|
16977
|
+
id?: string | undefined;
|
|
16978
|
+
timestamp_seconds?: number | undefined;
|
|
16979
|
+
sender_id?: string | undefined;
|
|
16980
|
+
content?: string | undefined;
|
|
16981
|
+
attachment?: string | undefined;
|
|
16982
|
+
referece?: string | undefined;
|
|
16983
|
+
mention?: string | undefined;
|
|
16984
|
+
reaction?: string | undefined;
|
|
16985
|
+
} & {
|
|
16986
|
+
id?: string | undefined;
|
|
16987
|
+
timestamp_seconds?: number | undefined;
|
|
16988
|
+
sender_id?: string | undefined;
|
|
16989
|
+
content?: string | undefined;
|
|
16990
|
+
attachment?: string | undefined;
|
|
16991
|
+
referece?: string | undefined;
|
|
16992
|
+
mention?: string | undefined;
|
|
16993
|
+
reaction?: string | undefined;
|
|
16994
|
+
} & { [K_1 in Exclude<keyof I["last_sent_message"], keyof ChannelMessageHeader>]: never; }) | undefined;
|
|
16995
|
+
} & { [K_2 in Exclude<keyof I, keyof ChannelSettingItem>]: never; }>(base?: I | undefined): ChannelSettingItem;
|
|
16919
16996
|
fromPartial<I_1 extends {
|
|
16920
16997
|
id?: string | undefined;
|
|
16921
16998
|
creator_id?: string | undefined;
|
|
@@ -16928,6 +17005,16 @@ export declare const ChannelSettingItem: {
|
|
|
16928
17005
|
active?: number | undefined;
|
|
16929
17006
|
user_ids?: string[] | undefined;
|
|
16930
17007
|
message_count?: number | undefined;
|
|
17008
|
+
last_sent_message?: {
|
|
17009
|
+
id?: string | undefined;
|
|
17010
|
+
timestamp_seconds?: number | undefined;
|
|
17011
|
+
sender_id?: string | undefined;
|
|
17012
|
+
content?: string | undefined;
|
|
17013
|
+
attachment?: string | undefined;
|
|
17014
|
+
referece?: string | undefined;
|
|
17015
|
+
mention?: string | undefined;
|
|
17016
|
+
reaction?: string | undefined;
|
|
17017
|
+
} | undefined;
|
|
16931
17018
|
} & {
|
|
16932
17019
|
id?: string | undefined;
|
|
16933
17020
|
creator_id?: string | undefined;
|
|
@@ -16938,9 +17025,28 @@ export declare const ChannelSettingItem: {
|
|
|
16938
17025
|
channel_private?: number | undefined;
|
|
16939
17026
|
channel_type?: number | undefined;
|
|
16940
17027
|
active?: number | undefined;
|
|
16941
|
-
user_ids?: (string[] & string[] & { [
|
|
17028
|
+
user_ids?: (string[] & string[] & { [K_3 in Exclude<keyof I_1["user_ids"], keyof string[]>]: never; }) | undefined;
|
|
16942
17029
|
message_count?: number | undefined;
|
|
16943
|
-
|
|
17030
|
+
last_sent_message?: ({
|
|
17031
|
+
id?: string | undefined;
|
|
17032
|
+
timestamp_seconds?: number | undefined;
|
|
17033
|
+
sender_id?: string | undefined;
|
|
17034
|
+
content?: string | undefined;
|
|
17035
|
+
attachment?: string | undefined;
|
|
17036
|
+
referece?: string | undefined;
|
|
17037
|
+
mention?: string | undefined;
|
|
17038
|
+
reaction?: string | undefined;
|
|
17039
|
+
} & {
|
|
17040
|
+
id?: string | undefined;
|
|
17041
|
+
timestamp_seconds?: number | undefined;
|
|
17042
|
+
sender_id?: string | undefined;
|
|
17043
|
+
content?: string | undefined;
|
|
17044
|
+
attachment?: string | undefined;
|
|
17045
|
+
referece?: string | undefined;
|
|
17046
|
+
mention?: string | undefined;
|
|
17047
|
+
reaction?: string | undefined;
|
|
17048
|
+
} & { [K_4 in Exclude<keyof I_1["last_sent_message"], keyof ChannelMessageHeader>]: never; }) | undefined;
|
|
17049
|
+
} & { [K_5 in Exclude<keyof I_1, keyof ChannelSettingItem>]: never; }>(object: I_1): ChannelSettingItem;
|
|
16944
17050
|
};
|
|
16945
17051
|
export declare const ChannelSettingListResponse: {
|
|
16946
17052
|
encode(message: ChannelSettingListResponse, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -16963,6 +17069,16 @@ export declare const ChannelSettingListResponse: {
|
|
|
16963
17069
|
active?: number | undefined;
|
|
16964
17070
|
user_ids?: string[] | undefined;
|
|
16965
17071
|
message_count?: number | undefined;
|
|
17072
|
+
last_sent_message?: {
|
|
17073
|
+
id?: string | undefined;
|
|
17074
|
+
timestamp_seconds?: number | undefined;
|
|
17075
|
+
sender_id?: string | undefined;
|
|
17076
|
+
content?: string | undefined;
|
|
17077
|
+
attachment?: string | undefined;
|
|
17078
|
+
referece?: string | undefined;
|
|
17079
|
+
mention?: string | undefined;
|
|
17080
|
+
reaction?: string | undefined;
|
|
17081
|
+
} | undefined;
|
|
16966
17082
|
}[] | undefined;
|
|
16967
17083
|
} & {
|
|
16968
17084
|
clan_id?: string | undefined;
|
|
@@ -16980,6 +17096,16 @@ export declare const ChannelSettingListResponse: {
|
|
|
16980
17096
|
active?: number | undefined;
|
|
16981
17097
|
user_ids?: string[] | undefined;
|
|
16982
17098
|
message_count?: number | undefined;
|
|
17099
|
+
last_sent_message?: {
|
|
17100
|
+
id?: string | undefined;
|
|
17101
|
+
timestamp_seconds?: number | undefined;
|
|
17102
|
+
sender_id?: string | undefined;
|
|
17103
|
+
content?: string | undefined;
|
|
17104
|
+
attachment?: string | undefined;
|
|
17105
|
+
referece?: string | undefined;
|
|
17106
|
+
mention?: string | undefined;
|
|
17107
|
+
reaction?: string | undefined;
|
|
17108
|
+
} | undefined;
|
|
16983
17109
|
}[] & ({
|
|
16984
17110
|
id?: string | undefined;
|
|
16985
17111
|
creator_id?: string | undefined;
|
|
@@ -16992,6 +17118,16 @@ export declare const ChannelSettingListResponse: {
|
|
|
16992
17118
|
active?: number | undefined;
|
|
16993
17119
|
user_ids?: string[] | undefined;
|
|
16994
17120
|
message_count?: number | undefined;
|
|
17121
|
+
last_sent_message?: {
|
|
17122
|
+
id?: string | undefined;
|
|
17123
|
+
timestamp_seconds?: number | undefined;
|
|
17124
|
+
sender_id?: string | undefined;
|
|
17125
|
+
content?: string | undefined;
|
|
17126
|
+
attachment?: string | undefined;
|
|
17127
|
+
referece?: string | undefined;
|
|
17128
|
+
mention?: string | undefined;
|
|
17129
|
+
reaction?: string | undefined;
|
|
17130
|
+
} | undefined;
|
|
16995
17131
|
} & {
|
|
16996
17132
|
id?: string | undefined;
|
|
16997
17133
|
creator_id?: string | undefined;
|
|
@@ -17004,7 +17140,26 @@ export declare const ChannelSettingListResponse: {
|
|
|
17004
17140
|
active?: number | undefined;
|
|
17005
17141
|
user_ids?: (string[] & string[] & { [K in Exclude<keyof I["channel_setting_list"][number]["user_ids"], keyof string[]>]: never; }) | undefined;
|
|
17006
17142
|
message_count?: number | undefined;
|
|
17007
|
-
|
|
17143
|
+
last_sent_message?: ({
|
|
17144
|
+
id?: string | undefined;
|
|
17145
|
+
timestamp_seconds?: number | undefined;
|
|
17146
|
+
sender_id?: string | undefined;
|
|
17147
|
+
content?: string | undefined;
|
|
17148
|
+
attachment?: string | undefined;
|
|
17149
|
+
referece?: string | undefined;
|
|
17150
|
+
mention?: string | undefined;
|
|
17151
|
+
reaction?: string | undefined;
|
|
17152
|
+
} & {
|
|
17153
|
+
id?: string | undefined;
|
|
17154
|
+
timestamp_seconds?: number | undefined;
|
|
17155
|
+
sender_id?: string | undefined;
|
|
17156
|
+
content?: string | undefined;
|
|
17157
|
+
attachment?: string | undefined;
|
|
17158
|
+
referece?: string | undefined;
|
|
17159
|
+
mention?: string | undefined;
|
|
17160
|
+
reaction?: string | undefined;
|
|
17161
|
+
} & { [K_1 in Exclude<keyof I["channel_setting_list"][number]["last_sent_message"], keyof ChannelMessageHeader>]: never; }) | undefined;
|
|
17162
|
+
} & { [K_2 in Exclude<keyof I["channel_setting_list"][number], keyof ChannelSettingItem>]: never; })[] & { [K_3 in Exclude<keyof I["channel_setting_list"], keyof {
|
|
17008
17163
|
id?: string | undefined;
|
|
17009
17164
|
creator_id?: string | undefined;
|
|
17010
17165
|
parent_id?: string | undefined;
|
|
@@ -17016,8 +17171,18 @@ export declare const ChannelSettingListResponse: {
|
|
|
17016
17171
|
active?: number | undefined;
|
|
17017
17172
|
user_ids?: string[] | undefined;
|
|
17018
17173
|
message_count?: number | undefined;
|
|
17174
|
+
last_sent_message?: {
|
|
17175
|
+
id?: string | undefined;
|
|
17176
|
+
timestamp_seconds?: number | undefined;
|
|
17177
|
+
sender_id?: string | undefined;
|
|
17178
|
+
content?: string | undefined;
|
|
17179
|
+
attachment?: string | undefined;
|
|
17180
|
+
referece?: string | undefined;
|
|
17181
|
+
mention?: string | undefined;
|
|
17182
|
+
reaction?: string | undefined;
|
|
17183
|
+
} | undefined;
|
|
17019
17184
|
}[]>]: never; }) | undefined;
|
|
17020
|
-
} & { [
|
|
17185
|
+
} & { [K_4 in Exclude<keyof I, keyof ChannelSettingListResponse>]: never; }>(base?: I | undefined): ChannelSettingListResponse;
|
|
17021
17186
|
fromPartial<I_1 extends {
|
|
17022
17187
|
clan_id?: string | undefined;
|
|
17023
17188
|
channel_count?: number | undefined;
|
|
@@ -17034,6 +17199,16 @@ export declare const ChannelSettingListResponse: {
|
|
|
17034
17199
|
active?: number | undefined;
|
|
17035
17200
|
user_ids?: string[] | undefined;
|
|
17036
17201
|
message_count?: number | undefined;
|
|
17202
|
+
last_sent_message?: {
|
|
17203
|
+
id?: string | undefined;
|
|
17204
|
+
timestamp_seconds?: number | undefined;
|
|
17205
|
+
sender_id?: string | undefined;
|
|
17206
|
+
content?: string | undefined;
|
|
17207
|
+
attachment?: string | undefined;
|
|
17208
|
+
referece?: string | undefined;
|
|
17209
|
+
mention?: string | undefined;
|
|
17210
|
+
reaction?: string | undefined;
|
|
17211
|
+
} | undefined;
|
|
17037
17212
|
}[] | undefined;
|
|
17038
17213
|
} & {
|
|
17039
17214
|
clan_id?: string | undefined;
|
|
@@ -17051,6 +17226,16 @@ export declare const ChannelSettingListResponse: {
|
|
|
17051
17226
|
active?: number | undefined;
|
|
17052
17227
|
user_ids?: string[] | undefined;
|
|
17053
17228
|
message_count?: number | undefined;
|
|
17229
|
+
last_sent_message?: {
|
|
17230
|
+
id?: string | undefined;
|
|
17231
|
+
timestamp_seconds?: number | undefined;
|
|
17232
|
+
sender_id?: string | undefined;
|
|
17233
|
+
content?: string | undefined;
|
|
17234
|
+
attachment?: string | undefined;
|
|
17235
|
+
referece?: string | undefined;
|
|
17236
|
+
mention?: string | undefined;
|
|
17237
|
+
reaction?: string | undefined;
|
|
17238
|
+
} | undefined;
|
|
17054
17239
|
}[] & ({
|
|
17055
17240
|
id?: string | undefined;
|
|
17056
17241
|
creator_id?: string | undefined;
|
|
@@ -17063,6 +17248,16 @@ export declare const ChannelSettingListResponse: {
|
|
|
17063
17248
|
active?: number | undefined;
|
|
17064
17249
|
user_ids?: string[] | undefined;
|
|
17065
17250
|
message_count?: number | undefined;
|
|
17251
|
+
last_sent_message?: {
|
|
17252
|
+
id?: string | undefined;
|
|
17253
|
+
timestamp_seconds?: number | undefined;
|
|
17254
|
+
sender_id?: string | undefined;
|
|
17255
|
+
content?: string | undefined;
|
|
17256
|
+
attachment?: string | undefined;
|
|
17257
|
+
referece?: string | undefined;
|
|
17258
|
+
mention?: string | undefined;
|
|
17259
|
+
reaction?: string | undefined;
|
|
17260
|
+
} | undefined;
|
|
17066
17261
|
} & {
|
|
17067
17262
|
id?: string | undefined;
|
|
17068
17263
|
creator_id?: string | undefined;
|
|
@@ -17073,9 +17268,28 @@ export declare const ChannelSettingListResponse: {
|
|
|
17073
17268
|
channel_private?: number | undefined;
|
|
17074
17269
|
channel_type?: number | undefined;
|
|
17075
17270
|
active?: number | undefined;
|
|
17076
|
-
user_ids?: (string[] & string[] & { [
|
|
17271
|
+
user_ids?: (string[] & string[] & { [K_5 in Exclude<keyof I_1["channel_setting_list"][number]["user_ids"], keyof string[]>]: never; }) | undefined;
|
|
17077
17272
|
message_count?: number | undefined;
|
|
17078
|
-
|
|
17273
|
+
last_sent_message?: ({
|
|
17274
|
+
id?: string | undefined;
|
|
17275
|
+
timestamp_seconds?: number | undefined;
|
|
17276
|
+
sender_id?: string | undefined;
|
|
17277
|
+
content?: string | undefined;
|
|
17278
|
+
attachment?: string | undefined;
|
|
17279
|
+
referece?: string | undefined;
|
|
17280
|
+
mention?: string | undefined;
|
|
17281
|
+
reaction?: string | undefined;
|
|
17282
|
+
} & {
|
|
17283
|
+
id?: string | undefined;
|
|
17284
|
+
timestamp_seconds?: number | undefined;
|
|
17285
|
+
sender_id?: string | undefined;
|
|
17286
|
+
content?: string | undefined;
|
|
17287
|
+
attachment?: string | undefined;
|
|
17288
|
+
referece?: string | undefined;
|
|
17289
|
+
mention?: string | undefined;
|
|
17290
|
+
reaction?: string | undefined;
|
|
17291
|
+
} & { [K_6 in Exclude<keyof I_1["channel_setting_list"][number]["last_sent_message"], keyof ChannelMessageHeader>]: never; }) | undefined;
|
|
17292
|
+
} & { [K_7 in Exclude<keyof I_1["channel_setting_list"][number], keyof ChannelSettingItem>]: never; })[] & { [K_8 in Exclude<keyof I_1["channel_setting_list"], keyof {
|
|
17079
17293
|
id?: string | undefined;
|
|
17080
17294
|
creator_id?: string | undefined;
|
|
17081
17295
|
parent_id?: string | undefined;
|
|
@@ -17087,8 +17301,18 @@ export declare const ChannelSettingListResponse: {
|
|
|
17087
17301
|
active?: number | undefined;
|
|
17088
17302
|
user_ids?: string[] | undefined;
|
|
17089
17303
|
message_count?: number | undefined;
|
|
17304
|
+
last_sent_message?: {
|
|
17305
|
+
id?: string | undefined;
|
|
17306
|
+
timestamp_seconds?: number | undefined;
|
|
17307
|
+
sender_id?: string | undefined;
|
|
17308
|
+
content?: string | undefined;
|
|
17309
|
+
attachment?: string | undefined;
|
|
17310
|
+
referece?: string | undefined;
|
|
17311
|
+
mention?: string | undefined;
|
|
17312
|
+
reaction?: string | undefined;
|
|
17313
|
+
} | undefined;
|
|
17090
17314
|
}[]>]: never; }) | undefined;
|
|
17091
|
-
} & { [
|
|
17315
|
+
} & { [K_9 in Exclude<keyof I_1, keyof ChannelSettingListResponse>]: never; }>(object: I_1): ChannelSettingListResponse;
|
|
17092
17316
|
};
|
|
17093
17317
|
export declare const MarkAsReadRequest: {
|
|
17094
17318
|
encode(message: MarkAsReadRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -17125,12 +17349,14 @@ export declare const EditChannelCanvasRequest: {
|
|
|
17125
17349
|
clan_id?: string | undefined;
|
|
17126
17350
|
title?: string | undefined;
|
|
17127
17351
|
content?: string | undefined;
|
|
17352
|
+
is_default?: boolean | undefined;
|
|
17128
17353
|
} & {
|
|
17129
17354
|
id?: string | undefined;
|
|
17130
17355
|
channel_id?: string | undefined;
|
|
17131
17356
|
clan_id?: string | undefined;
|
|
17132
17357
|
title?: string | undefined;
|
|
17133
17358
|
content?: string | undefined;
|
|
17359
|
+
is_default?: boolean | undefined;
|
|
17134
17360
|
} & { [K in Exclude<keyof I, keyof EditChannelCanvasRequest>]: never; }>(base?: I | undefined): EditChannelCanvasRequest;
|
|
17135
17361
|
fromPartial<I_1 extends {
|
|
17136
17362
|
id?: string | undefined;
|
|
@@ -17138,12 +17364,14 @@ export declare const EditChannelCanvasRequest: {
|
|
|
17138
17364
|
clan_id?: string | undefined;
|
|
17139
17365
|
title?: string | undefined;
|
|
17140
17366
|
content?: string | undefined;
|
|
17367
|
+
is_default?: boolean | undefined;
|
|
17141
17368
|
} & {
|
|
17142
17369
|
id?: string | undefined;
|
|
17143
17370
|
channel_id?: string | undefined;
|
|
17144
17371
|
clan_id?: string | undefined;
|
|
17145
17372
|
title?: string | undefined;
|
|
17146
17373
|
content?: string | undefined;
|
|
17374
|
+
is_default?: boolean | undefined;
|
|
17147
17375
|
} & { [K_1 in Exclude<keyof I_1, keyof EditChannelCanvasRequest>]: never; }>(object: I_1): EditChannelCanvasRequest;
|
|
17148
17376
|
};
|
|
17149
17377
|
export declare const EditChannelCanvasResponse: {
|
|
@@ -17162,6 +17390,30 @@ export declare const EditChannelCanvasResponse: {
|
|
|
17162
17390
|
id?: string | undefined;
|
|
17163
17391
|
} & { [K_1 in Exclude<keyof I_1, "id">]: never; }>(object: I_1): EditChannelCanvasResponse;
|
|
17164
17392
|
};
|
|
17393
|
+
export declare const DeleteChannelCanvasRequest: {
|
|
17394
|
+
encode(message: DeleteChannelCanvasRequest, writer?: _m0.Writer): _m0.Writer;
|
|
17395
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DeleteChannelCanvasRequest;
|
|
17396
|
+
fromJSON(object: any): DeleteChannelCanvasRequest;
|
|
17397
|
+
toJSON(message: DeleteChannelCanvasRequest): unknown;
|
|
17398
|
+
create<I extends {
|
|
17399
|
+
clan_id?: string | undefined;
|
|
17400
|
+
channel_id?: string | undefined;
|
|
17401
|
+
canvas_id?: string | undefined;
|
|
17402
|
+
} & {
|
|
17403
|
+
clan_id?: string | undefined;
|
|
17404
|
+
channel_id?: string | undefined;
|
|
17405
|
+
canvas_id?: string | undefined;
|
|
17406
|
+
} & { [K in Exclude<keyof I, keyof DeleteChannelCanvasRequest>]: never; }>(base?: I | undefined): DeleteChannelCanvasRequest;
|
|
17407
|
+
fromPartial<I_1 extends {
|
|
17408
|
+
clan_id?: string | undefined;
|
|
17409
|
+
channel_id?: string | undefined;
|
|
17410
|
+
canvas_id?: string | undefined;
|
|
17411
|
+
} & {
|
|
17412
|
+
clan_id?: string | undefined;
|
|
17413
|
+
channel_id?: string | undefined;
|
|
17414
|
+
canvas_id?: string | undefined;
|
|
17415
|
+
} & { [K_1 in Exclude<keyof I_1, keyof DeleteChannelCanvasRequest>]: never; }>(object: I_1): DeleteChannelCanvasRequest;
|
|
17416
|
+
};
|
|
17165
17417
|
export declare const ChannelCanvasListRequest: {
|
|
17166
17418
|
encode(message: ChannelCanvasListRequest, writer?: _m0.Writer): _m0.Writer;
|
|
17167
17419
|
decode(input: _m0.Reader | Uint8Array, length?: number): ChannelCanvasListRequest;
|
|
@@ -17198,16 +17450,20 @@ export declare const ChannelCanvasItem: {
|
|
|
17198
17450
|
create<I extends {
|
|
17199
17451
|
id?: string | undefined;
|
|
17200
17452
|
title?: string | undefined;
|
|
17453
|
+
is_default?: boolean | undefined;
|
|
17201
17454
|
} & {
|
|
17202
17455
|
id?: string | undefined;
|
|
17203
17456
|
title?: string | undefined;
|
|
17457
|
+
is_default?: boolean | undefined;
|
|
17204
17458
|
} & { [K in Exclude<keyof I, keyof ChannelCanvasItem>]: never; }>(base?: I | undefined): ChannelCanvasItem;
|
|
17205
17459
|
fromPartial<I_1 extends {
|
|
17206
17460
|
id?: string | undefined;
|
|
17207
17461
|
title?: string | undefined;
|
|
17462
|
+
is_default?: boolean | undefined;
|
|
17208
17463
|
} & {
|
|
17209
17464
|
id?: string | undefined;
|
|
17210
17465
|
title?: string | undefined;
|
|
17466
|
+
is_default?: boolean | undefined;
|
|
17211
17467
|
} & { [K_1 in Exclude<keyof I_1, keyof ChannelCanvasItem>]: never; }>(object: I_1): ChannelCanvasItem;
|
|
17212
17468
|
};
|
|
17213
17469
|
export declare const ChannelCanvasListResponse: {
|
|
@@ -17221,6 +17477,7 @@ export declare const ChannelCanvasListResponse: {
|
|
|
17221
17477
|
channel_canvases?: {
|
|
17222
17478
|
id?: string | undefined;
|
|
17223
17479
|
title?: string | undefined;
|
|
17480
|
+
is_default?: boolean | undefined;
|
|
17224
17481
|
}[] | undefined;
|
|
17225
17482
|
} & {
|
|
17226
17483
|
clan_id?: string | undefined;
|
|
@@ -17228,15 +17485,19 @@ export declare const ChannelCanvasListResponse: {
|
|
|
17228
17485
|
channel_canvases?: ({
|
|
17229
17486
|
id?: string | undefined;
|
|
17230
17487
|
title?: string | undefined;
|
|
17488
|
+
is_default?: boolean | undefined;
|
|
17231
17489
|
}[] & ({
|
|
17232
17490
|
id?: string | undefined;
|
|
17233
17491
|
title?: string | undefined;
|
|
17492
|
+
is_default?: boolean | undefined;
|
|
17234
17493
|
} & {
|
|
17235
17494
|
id?: string | undefined;
|
|
17236
17495
|
title?: string | undefined;
|
|
17496
|
+
is_default?: boolean | undefined;
|
|
17237
17497
|
} & { [K in Exclude<keyof I["channel_canvases"][number], keyof ChannelCanvasItem>]: never; })[] & { [K_1 in Exclude<keyof I["channel_canvases"], keyof {
|
|
17238
17498
|
id?: string | undefined;
|
|
17239
17499
|
title?: string | undefined;
|
|
17500
|
+
is_default?: boolean | undefined;
|
|
17240
17501
|
}[]>]: never; }) | undefined;
|
|
17241
17502
|
} & { [K_2 in Exclude<keyof I, keyof ChannelCanvasListResponse>]: never; }>(base?: I | undefined): ChannelCanvasListResponse;
|
|
17242
17503
|
fromPartial<I_1 extends {
|
|
@@ -17245,6 +17506,7 @@ export declare const ChannelCanvasListResponse: {
|
|
|
17245
17506
|
channel_canvases?: {
|
|
17246
17507
|
id?: string | undefined;
|
|
17247
17508
|
title?: string | undefined;
|
|
17509
|
+
is_default?: boolean | undefined;
|
|
17248
17510
|
}[] | undefined;
|
|
17249
17511
|
} & {
|
|
17250
17512
|
clan_id?: string | undefined;
|
|
@@ -17252,15 +17514,19 @@ export declare const ChannelCanvasListResponse: {
|
|
|
17252
17514
|
channel_canvases?: ({
|
|
17253
17515
|
id?: string | undefined;
|
|
17254
17516
|
title?: string | undefined;
|
|
17517
|
+
is_default?: boolean | undefined;
|
|
17255
17518
|
}[] & ({
|
|
17256
17519
|
id?: string | undefined;
|
|
17257
17520
|
title?: string | undefined;
|
|
17521
|
+
is_default?: boolean | undefined;
|
|
17258
17522
|
} & {
|
|
17259
17523
|
id?: string | undefined;
|
|
17260
17524
|
title?: string | undefined;
|
|
17525
|
+
is_default?: boolean | undefined;
|
|
17261
17526
|
} & { [K_3 in Exclude<keyof I_1["channel_canvases"][number], keyof ChannelCanvasItem>]: never; })[] & { [K_4 in Exclude<keyof I_1["channel_canvases"], keyof {
|
|
17262
17527
|
id?: string | undefined;
|
|
17263
17528
|
title?: string | undefined;
|
|
17529
|
+
is_default?: boolean | undefined;
|
|
17264
17530
|
}[]>]: never; }) | undefined;
|
|
17265
17531
|
} & { [K_5 in Exclude<keyof I_1, keyof ChannelCanvasListResponse>]: never; }>(object: I_1): ChannelCanvasListResponse;
|
|
17266
17532
|
};
|
|
@@ -17299,12 +17565,14 @@ export declare const ChannelCanvasDetailResponse: {
|
|
|
17299
17565
|
content?: string | undefined;
|
|
17300
17566
|
creator_id?: string | undefined;
|
|
17301
17567
|
editor_id?: string | undefined;
|
|
17568
|
+
is_default?: boolean | undefined;
|
|
17302
17569
|
} & {
|
|
17303
17570
|
id?: string | undefined;
|
|
17304
17571
|
title?: string | undefined;
|
|
17305
17572
|
content?: string | undefined;
|
|
17306
17573
|
creator_id?: string | undefined;
|
|
17307
17574
|
editor_id?: string | undefined;
|
|
17575
|
+
is_default?: boolean | undefined;
|
|
17308
17576
|
} & { [K in Exclude<keyof I, keyof ChannelCanvasDetailResponse>]: never; }>(base?: I | undefined): ChannelCanvasDetailResponse;
|
|
17309
17577
|
fromPartial<I_1 extends {
|
|
17310
17578
|
id?: string | undefined;
|
|
@@ -17312,12 +17580,14 @@ export declare const ChannelCanvasDetailResponse: {
|
|
|
17312
17580
|
content?: string | undefined;
|
|
17313
17581
|
creator_id?: string | undefined;
|
|
17314
17582
|
editor_id?: string | undefined;
|
|
17583
|
+
is_default?: boolean | undefined;
|
|
17315
17584
|
} & {
|
|
17316
17585
|
id?: string | undefined;
|
|
17317
17586
|
title?: string | undefined;
|
|
17318
17587
|
content?: string | undefined;
|
|
17319
17588
|
creator_id?: string | undefined;
|
|
17320
17589
|
editor_id?: string | undefined;
|
|
17590
|
+
is_default?: boolean | undefined;
|
|
17321
17591
|
} & { [K_1 in Exclude<keyof I_1, keyof ChannelCanvasDetailResponse>]: never; }>(object: I_1): ChannelCanvasDetailResponse;
|
|
17322
17592
|
};
|
|
17323
17593
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.98",
|
|
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",
|