mezon-js-protobuf 1.4.27 → 1.4.29
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 +313 -0
- package/dist/mezon-js-protobuf/api/api.d.ts +202 -0
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +12 -0
- package/dist/mezon-js-protobuf.cjs.js +13 -3
- package/dist/mezon-js-protobuf.esm.mjs +13 -3
- package/package.json +1 -1
- package/rtapi/realtime.ts +6211 -6199
package/api/api.ts
CHANGED
|
@@ -2004,6 +2004,34 @@ export interface NotificationChannelCategoySettingsList {
|
|
|
2004
2004
|
noti_channel_categoy_setting: NotificationChannelCategoySetting[];
|
|
2005
2005
|
}
|
|
2006
2006
|
|
|
2007
|
+
/** */
|
|
2008
|
+
export interface DeletePinMessage {
|
|
2009
|
+
/** */
|
|
2010
|
+
message_id: string;
|
|
2011
|
+
}
|
|
2012
|
+
|
|
2013
|
+
/** */
|
|
2014
|
+
export interface PinMessage {
|
|
2015
|
+
/** */
|
|
2016
|
+
id: string;
|
|
2017
|
+
/** */
|
|
2018
|
+
message_id: string;
|
|
2019
|
+
/** */
|
|
2020
|
+
channel_id: string;
|
|
2021
|
+
/** */
|
|
2022
|
+
sender_id: string;
|
|
2023
|
+
/** */
|
|
2024
|
+
content: string;
|
|
2025
|
+
/** */
|
|
2026
|
+
username: string;
|
|
2027
|
+
/** */
|
|
2028
|
+
avatar: string;
|
|
2029
|
+
}
|
|
2030
|
+
|
|
2031
|
+
export interface PinMessagesList {
|
|
2032
|
+
pin_messages_list: PinMessage[];
|
|
2033
|
+
}
|
|
2034
|
+
|
|
2007
2035
|
/** Notification channel */
|
|
2008
2036
|
export interface NotificationUserChannel {
|
|
2009
2037
|
/** Notification id */
|
|
@@ -2059,6 +2087,12 @@ export interface SetNotificationRequest {
|
|
|
2059
2087
|
time_mute: Date | undefined;
|
|
2060
2088
|
}
|
|
2061
2089
|
|
|
2090
|
+
/** */
|
|
2091
|
+
export interface PinMessageRequest {
|
|
2092
|
+
message_id: string;
|
|
2093
|
+
channel_id: string;
|
|
2094
|
+
}
|
|
2095
|
+
|
|
2062
2096
|
/** set notification */
|
|
2063
2097
|
export interface SetMuteNotificationRequest {
|
|
2064
2098
|
channel_id: string;
|
|
@@ -14052,6 +14086,223 @@ export const NotificationChannelCategoySettingsList = {
|
|
|
14052
14086
|
},
|
|
14053
14087
|
};
|
|
14054
14088
|
|
|
14089
|
+
function createBaseDeletePinMessage(): DeletePinMessage {
|
|
14090
|
+
return { message_id: "" };
|
|
14091
|
+
}
|
|
14092
|
+
|
|
14093
|
+
export const DeletePinMessage = {
|
|
14094
|
+
encode(message: DeletePinMessage, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
14095
|
+
if (message.message_id !== "") {
|
|
14096
|
+
writer.uint32(10).string(message.message_id);
|
|
14097
|
+
}
|
|
14098
|
+
return writer;
|
|
14099
|
+
},
|
|
14100
|
+
|
|
14101
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DeletePinMessage {
|
|
14102
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
14103
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
14104
|
+
const message = createBaseDeletePinMessage();
|
|
14105
|
+
while (reader.pos < end) {
|
|
14106
|
+
const tag = reader.uint32();
|
|
14107
|
+
switch (tag >>> 3) {
|
|
14108
|
+
case 1:
|
|
14109
|
+
message.message_id = reader.string();
|
|
14110
|
+
break;
|
|
14111
|
+
default:
|
|
14112
|
+
reader.skipType(tag & 7);
|
|
14113
|
+
break;
|
|
14114
|
+
}
|
|
14115
|
+
}
|
|
14116
|
+
return message;
|
|
14117
|
+
},
|
|
14118
|
+
|
|
14119
|
+
fromJSON(object: any): DeletePinMessage {
|
|
14120
|
+
return { message_id: isSet(object.message_id) ? String(object.message_id) : "" };
|
|
14121
|
+
},
|
|
14122
|
+
|
|
14123
|
+
toJSON(message: DeletePinMessage): unknown {
|
|
14124
|
+
const obj: any = {};
|
|
14125
|
+
message.message_id !== undefined && (obj.message_id = message.message_id);
|
|
14126
|
+
return obj;
|
|
14127
|
+
},
|
|
14128
|
+
|
|
14129
|
+
create<I extends Exact<DeepPartial<DeletePinMessage>, I>>(base?: I): DeletePinMessage {
|
|
14130
|
+
return DeletePinMessage.fromPartial(base ?? {});
|
|
14131
|
+
},
|
|
14132
|
+
|
|
14133
|
+
fromPartial<I extends Exact<DeepPartial<DeletePinMessage>, I>>(object: I): DeletePinMessage {
|
|
14134
|
+
const message = createBaseDeletePinMessage();
|
|
14135
|
+
message.message_id = object.message_id ?? "";
|
|
14136
|
+
return message;
|
|
14137
|
+
},
|
|
14138
|
+
};
|
|
14139
|
+
|
|
14140
|
+
function createBasePinMessage(): PinMessage {
|
|
14141
|
+
return { id: "", message_id: "", channel_id: "", sender_id: "", content: "", username: "", avatar: "" };
|
|
14142
|
+
}
|
|
14143
|
+
|
|
14144
|
+
export const PinMessage = {
|
|
14145
|
+
encode(message: PinMessage, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
14146
|
+
if (message.id !== "") {
|
|
14147
|
+
writer.uint32(10).string(message.id);
|
|
14148
|
+
}
|
|
14149
|
+
if (message.message_id !== "") {
|
|
14150
|
+
writer.uint32(18).string(message.message_id);
|
|
14151
|
+
}
|
|
14152
|
+
if (message.channel_id !== "") {
|
|
14153
|
+
writer.uint32(26).string(message.channel_id);
|
|
14154
|
+
}
|
|
14155
|
+
if (message.sender_id !== "") {
|
|
14156
|
+
writer.uint32(34).string(message.sender_id);
|
|
14157
|
+
}
|
|
14158
|
+
if (message.content !== "") {
|
|
14159
|
+
writer.uint32(42).string(message.content);
|
|
14160
|
+
}
|
|
14161
|
+
if (message.username !== "") {
|
|
14162
|
+
writer.uint32(50).string(message.username);
|
|
14163
|
+
}
|
|
14164
|
+
if (message.avatar !== "") {
|
|
14165
|
+
writer.uint32(58).string(message.avatar);
|
|
14166
|
+
}
|
|
14167
|
+
return writer;
|
|
14168
|
+
},
|
|
14169
|
+
|
|
14170
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PinMessage {
|
|
14171
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
14172
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
14173
|
+
const message = createBasePinMessage();
|
|
14174
|
+
while (reader.pos < end) {
|
|
14175
|
+
const tag = reader.uint32();
|
|
14176
|
+
switch (tag >>> 3) {
|
|
14177
|
+
case 1:
|
|
14178
|
+
message.id = reader.string();
|
|
14179
|
+
break;
|
|
14180
|
+
case 2:
|
|
14181
|
+
message.message_id = reader.string();
|
|
14182
|
+
break;
|
|
14183
|
+
case 3:
|
|
14184
|
+
message.channel_id = reader.string();
|
|
14185
|
+
break;
|
|
14186
|
+
case 4:
|
|
14187
|
+
message.sender_id = reader.string();
|
|
14188
|
+
break;
|
|
14189
|
+
case 5:
|
|
14190
|
+
message.content = reader.string();
|
|
14191
|
+
break;
|
|
14192
|
+
case 6:
|
|
14193
|
+
message.username = reader.string();
|
|
14194
|
+
break;
|
|
14195
|
+
case 7:
|
|
14196
|
+
message.avatar = reader.string();
|
|
14197
|
+
break;
|
|
14198
|
+
default:
|
|
14199
|
+
reader.skipType(tag & 7);
|
|
14200
|
+
break;
|
|
14201
|
+
}
|
|
14202
|
+
}
|
|
14203
|
+
return message;
|
|
14204
|
+
},
|
|
14205
|
+
|
|
14206
|
+
fromJSON(object: any): PinMessage {
|
|
14207
|
+
return {
|
|
14208
|
+
id: isSet(object.id) ? String(object.id) : "",
|
|
14209
|
+
message_id: isSet(object.message_id) ? String(object.message_id) : "",
|
|
14210
|
+
channel_id: isSet(object.channel_id) ? String(object.channel_id) : "",
|
|
14211
|
+
sender_id: isSet(object.sender_id) ? String(object.sender_id) : "",
|
|
14212
|
+
content: isSet(object.content) ? String(object.content) : "",
|
|
14213
|
+
username: isSet(object.username) ? String(object.username) : "",
|
|
14214
|
+
avatar: isSet(object.avatar) ? String(object.avatar) : "",
|
|
14215
|
+
};
|
|
14216
|
+
},
|
|
14217
|
+
|
|
14218
|
+
toJSON(message: PinMessage): unknown {
|
|
14219
|
+
const obj: any = {};
|
|
14220
|
+
message.id !== undefined && (obj.id = message.id);
|
|
14221
|
+
message.message_id !== undefined && (obj.message_id = message.message_id);
|
|
14222
|
+
message.channel_id !== undefined && (obj.channel_id = message.channel_id);
|
|
14223
|
+
message.sender_id !== undefined && (obj.sender_id = message.sender_id);
|
|
14224
|
+
message.content !== undefined && (obj.content = message.content);
|
|
14225
|
+
message.username !== undefined && (obj.username = message.username);
|
|
14226
|
+
message.avatar !== undefined && (obj.avatar = message.avatar);
|
|
14227
|
+
return obj;
|
|
14228
|
+
},
|
|
14229
|
+
|
|
14230
|
+
create<I extends Exact<DeepPartial<PinMessage>, I>>(base?: I): PinMessage {
|
|
14231
|
+
return PinMessage.fromPartial(base ?? {});
|
|
14232
|
+
},
|
|
14233
|
+
|
|
14234
|
+
fromPartial<I extends Exact<DeepPartial<PinMessage>, I>>(object: I): PinMessage {
|
|
14235
|
+
const message = createBasePinMessage();
|
|
14236
|
+
message.id = object.id ?? "";
|
|
14237
|
+
message.message_id = object.message_id ?? "";
|
|
14238
|
+
message.channel_id = object.channel_id ?? "";
|
|
14239
|
+
message.sender_id = object.sender_id ?? "";
|
|
14240
|
+
message.content = object.content ?? "";
|
|
14241
|
+
message.username = object.username ?? "";
|
|
14242
|
+
message.avatar = object.avatar ?? "";
|
|
14243
|
+
return message;
|
|
14244
|
+
},
|
|
14245
|
+
};
|
|
14246
|
+
|
|
14247
|
+
function createBasePinMessagesList(): PinMessagesList {
|
|
14248
|
+
return { pin_messages_list: [] };
|
|
14249
|
+
}
|
|
14250
|
+
|
|
14251
|
+
export const PinMessagesList = {
|
|
14252
|
+
encode(message: PinMessagesList, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
14253
|
+
for (const v of message.pin_messages_list) {
|
|
14254
|
+
PinMessage.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
14255
|
+
}
|
|
14256
|
+
return writer;
|
|
14257
|
+
},
|
|
14258
|
+
|
|
14259
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PinMessagesList {
|
|
14260
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
14261
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
14262
|
+
const message = createBasePinMessagesList();
|
|
14263
|
+
while (reader.pos < end) {
|
|
14264
|
+
const tag = reader.uint32();
|
|
14265
|
+
switch (tag >>> 3) {
|
|
14266
|
+
case 1:
|
|
14267
|
+
message.pin_messages_list.push(PinMessage.decode(reader, reader.uint32()));
|
|
14268
|
+
break;
|
|
14269
|
+
default:
|
|
14270
|
+
reader.skipType(tag & 7);
|
|
14271
|
+
break;
|
|
14272
|
+
}
|
|
14273
|
+
}
|
|
14274
|
+
return message;
|
|
14275
|
+
},
|
|
14276
|
+
|
|
14277
|
+
fromJSON(object: any): PinMessagesList {
|
|
14278
|
+
return {
|
|
14279
|
+
pin_messages_list: Array.isArray(object?.pin_messages_list)
|
|
14280
|
+
? object.pin_messages_list.map((e: any) => PinMessage.fromJSON(e))
|
|
14281
|
+
: [],
|
|
14282
|
+
};
|
|
14283
|
+
},
|
|
14284
|
+
|
|
14285
|
+
toJSON(message: PinMessagesList): unknown {
|
|
14286
|
+
const obj: any = {};
|
|
14287
|
+
if (message.pin_messages_list) {
|
|
14288
|
+
obj.pin_messages_list = message.pin_messages_list.map((e) => e ? PinMessage.toJSON(e) : undefined);
|
|
14289
|
+
} else {
|
|
14290
|
+
obj.pin_messages_list = [];
|
|
14291
|
+
}
|
|
14292
|
+
return obj;
|
|
14293
|
+
},
|
|
14294
|
+
|
|
14295
|
+
create<I extends Exact<DeepPartial<PinMessagesList>, I>>(base?: I): PinMessagesList {
|
|
14296
|
+
return PinMessagesList.fromPartial(base ?? {});
|
|
14297
|
+
},
|
|
14298
|
+
|
|
14299
|
+
fromPartial<I extends Exact<DeepPartial<PinMessagesList>, I>>(object: I): PinMessagesList {
|
|
14300
|
+
const message = createBasePinMessagesList();
|
|
14301
|
+
message.pin_messages_list = object.pin_messages_list?.map((e) => PinMessage.fromPartial(e)) || [];
|
|
14302
|
+
return message;
|
|
14303
|
+
},
|
|
14304
|
+
};
|
|
14305
|
+
|
|
14055
14306
|
function createBaseNotificationUserChannel(): NotificationUserChannel {
|
|
14056
14307
|
return { id: "", notification_setting_type: "", time_mute: undefined, active: 0 };
|
|
14057
14308
|
}
|
|
@@ -14489,6 +14740,68 @@ export const SetNotificationRequest = {
|
|
|
14489
14740
|
},
|
|
14490
14741
|
};
|
|
14491
14742
|
|
|
14743
|
+
function createBasePinMessageRequest(): PinMessageRequest {
|
|
14744
|
+
return { message_id: "", channel_id: "" };
|
|
14745
|
+
}
|
|
14746
|
+
|
|
14747
|
+
export const PinMessageRequest = {
|
|
14748
|
+
encode(message: PinMessageRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
14749
|
+
if (message.message_id !== "") {
|
|
14750
|
+
writer.uint32(10).string(message.message_id);
|
|
14751
|
+
}
|
|
14752
|
+
if (message.channel_id !== "") {
|
|
14753
|
+
writer.uint32(18).string(message.channel_id);
|
|
14754
|
+
}
|
|
14755
|
+
return writer;
|
|
14756
|
+
},
|
|
14757
|
+
|
|
14758
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PinMessageRequest {
|
|
14759
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
14760
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
14761
|
+
const message = createBasePinMessageRequest();
|
|
14762
|
+
while (reader.pos < end) {
|
|
14763
|
+
const tag = reader.uint32();
|
|
14764
|
+
switch (tag >>> 3) {
|
|
14765
|
+
case 1:
|
|
14766
|
+
message.message_id = reader.string();
|
|
14767
|
+
break;
|
|
14768
|
+
case 2:
|
|
14769
|
+
message.channel_id = reader.string();
|
|
14770
|
+
break;
|
|
14771
|
+
default:
|
|
14772
|
+
reader.skipType(tag & 7);
|
|
14773
|
+
break;
|
|
14774
|
+
}
|
|
14775
|
+
}
|
|
14776
|
+
return message;
|
|
14777
|
+
},
|
|
14778
|
+
|
|
14779
|
+
fromJSON(object: any): PinMessageRequest {
|
|
14780
|
+
return {
|
|
14781
|
+
message_id: isSet(object.message_id) ? String(object.message_id) : "",
|
|
14782
|
+
channel_id: isSet(object.channel_id) ? String(object.channel_id) : "",
|
|
14783
|
+
};
|
|
14784
|
+
},
|
|
14785
|
+
|
|
14786
|
+
toJSON(message: PinMessageRequest): unknown {
|
|
14787
|
+
const obj: any = {};
|
|
14788
|
+
message.message_id !== undefined && (obj.message_id = message.message_id);
|
|
14789
|
+
message.channel_id !== undefined && (obj.channel_id = message.channel_id);
|
|
14790
|
+
return obj;
|
|
14791
|
+
},
|
|
14792
|
+
|
|
14793
|
+
create<I extends Exact<DeepPartial<PinMessageRequest>, I>>(base?: I): PinMessageRequest {
|
|
14794
|
+
return PinMessageRequest.fromPartial(base ?? {});
|
|
14795
|
+
},
|
|
14796
|
+
|
|
14797
|
+
fromPartial<I extends Exact<DeepPartial<PinMessageRequest>, I>>(object: I): PinMessageRequest {
|
|
14798
|
+
const message = createBasePinMessageRequest();
|
|
14799
|
+
message.message_id = object.message_id ?? "";
|
|
14800
|
+
message.channel_id = object.channel_id ?? "";
|
|
14801
|
+
return message;
|
|
14802
|
+
},
|
|
14803
|
+
};
|
|
14804
|
+
|
|
14492
14805
|
function createBaseSetMuteNotificationRequest(): SetMuteNotificationRequest {
|
|
14493
14806
|
return { channel_id: "", notification_type: "", active: 0 };
|
|
14494
14807
|
}
|
|
@@ -1501,6 +1501,31 @@ export interface NotificationChannelCategoySetting {
|
|
|
1501
1501
|
export interface NotificationChannelCategoySettingsList {
|
|
1502
1502
|
noti_channel_categoy_setting: NotificationChannelCategoySetting[];
|
|
1503
1503
|
}
|
|
1504
|
+
/** */
|
|
1505
|
+
export interface DeletePinMessage {
|
|
1506
|
+
/** */
|
|
1507
|
+
message_id: string;
|
|
1508
|
+
}
|
|
1509
|
+
/** */
|
|
1510
|
+
export interface PinMessage {
|
|
1511
|
+
/** */
|
|
1512
|
+
id: string;
|
|
1513
|
+
/** */
|
|
1514
|
+
message_id: string;
|
|
1515
|
+
/** */
|
|
1516
|
+
channel_id: string;
|
|
1517
|
+
/** */
|
|
1518
|
+
sender_id: string;
|
|
1519
|
+
/** */
|
|
1520
|
+
content: string;
|
|
1521
|
+
/** */
|
|
1522
|
+
username: string;
|
|
1523
|
+
/** */
|
|
1524
|
+
avatar: string;
|
|
1525
|
+
}
|
|
1526
|
+
export interface PinMessagesList {
|
|
1527
|
+
pin_messages_list: PinMessage[];
|
|
1528
|
+
}
|
|
1504
1529
|
/** Notification channel */
|
|
1505
1530
|
export interface NotificationUserChannel {
|
|
1506
1531
|
/** Notification id */
|
|
@@ -1547,6 +1572,11 @@ export interface SetNotificationRequest {
|
|
|
1547
1572
|
notification_type: string;
|
|
1548
1573
|
time_mute: Date | undefined;
|
|
1549
1574
|
}
|
|
1575
|
+
/** */
|
|
1576
|
+
export interface PinMessageRequest {
|
|
1577
|
+
message_id: string;
|
|
1578
|
+
channel_id: string;
|
|
1579
|
+
}
|
|
1550
1580
|
/** set notification */
|
|
1551
1581
|
export interface SetMuteNotificationRequest {
|
|
1552
1582
|
channel_id: string;
|
|
@@ -10122,6 +10152,158 @@ export declare const NotificationChannelCategoySettingsList: {
|
|
|
10122
10152
|
}[]>]: never; }) | undefined;
|
|
10123
10153
|
} & { [K_5 in Exclude<keyof I_1, "noti_channel_categoy_setting">]: never; }>(object: I_1): NotificationChannelCategoySettingsList;
|
|
10124
10154
|
};
|
|
10155
|
+
export declare const DeletePinMessage: {
|
|
10156
|
+
encode(message: DeletePinMessage, writer?: _m0.Writer): _m0.Writer;
|
|
10157
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DeletePinMessage;
|
|
10158
|
+
fromJSON(object: any): DeletePinMessage;
|
|
10159
|
+
toJSON(message: DeletePinMessage): unknown;
|
|
10160
|
+
create<I extends {
|
|
10161
|
+
message_id?: string | undefined;
|
|
10162
|
+
} & {
|
|
10163
|
+
message_id?: string | undefined;
|
|
10164
|
+
} & { [K in Exclude<keyof I, "message_id">]: never; }>(base?: I | undefined): DeletePinMessage;
|
|
10165
|
+
fromPartial<I_1 extends {
|
|
10166
|
+
message_id?: string | undefined;
|
|
10167
|
+
} & {
|
|
10168
|
+
message_id?: string | undefined;
|
|
10169
|
+
} & { [K_1 in Exclude<keyof I_1, "message_id">]: never; }>(object: I_1): DeletePinMessage;
|
|
10170
|
+
};
|
|
10171
|
+
export declare const PinMessage: {
|
|
10172
|
+
encode(message: PinMessage, writer?: _m0.Writer): _m0.Writer;
|
|
10173
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PinMessage;
|
|
10174
|
+
fromJSON(object: any): PinMessage;
|
|
10175
|
+
toJSON(message: PinMessage): unknown;
|
|
10176
|
+
create<I extends {
|
|
10177
|
+
id?: string | undefined;
|
|
10178
|
+
message_id?: string | undefined;
|
|
10179
|
+
channel_id?: string | undefined;
|
|
10180
|
+
sender_id?: string | undefined;
|
|
10181
|
+
content?: string | undefined;
|
|
10182
|
+
username?: string | undefined;
|
|
10183
|
+
avatar?: string | undefined;
|
|
10184
|
+
} & {
|
|
10185
|
+
id?: string | undefined;
|
|
10186
|
+
message_id?: string | undefined;
|
|
10187
|
+
channel_id?: string | undefined;
|
|
10188
|
+
sender_id?: string | undefined;
|
|
10189
|
+
content?: string | undefined;
|
|
10190
|
+
username?: string | undefined;
|
|
10191
|
+
avatar?: string | undefined;
|
|
10192
|
+
} & { [K in Exclude<keyof I, keyof PinMessage>]: never; }>(base?: I | undefined): PinMessage;
|
|
10193
|
+
fromPartial<I_1 extends {
|
|
10194
|
+
id?: string | undefined;
|
|
10195
|
+
message_id?: string | undefined;
|
|
10196
|
+
channel_id?: string | undefined;
|
|
10197
|
+
sender_id?: string | undefined;
|
|
10198
|
+
content?: string | undefined;
|
|
10199
|
+
username?: string | undefined;
|
|
10200
|
+
avatar?: string | undefined;
|
|
10201
|
+
} & {
|
|
10202
|
+
id?: string | undefined;
|
|
10203
|
+
message_id?: string | undefined;
|
|
10204
|
+
channel_id?: string | undefined;
|
|
10205
|
+
sender_id?: string | undefined;
|
|
10206
|
+
content?: string | undefined;
|
|
10207
|
+
username?: string | undefined;
|
|
10208
|
+
avatar?: string | undefined;
|
|
10209
|
+
} & { [K_1 in Exclude<keyof I_1, keyof PinMessage>]: never; }>(object: I_1): PinMessage;
|
|
10210
|
+
};
|
|
10211
|
+
export declare const PinMessagesList: {
|
|
10212
|
+
encode(message: PinMessagesList, writer?: _m0.Writer): _m0.Writer;
|
|
10213
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PinMessagesList;
|
|
10214
|
+
fromJSON(object: any): PinMessagesList;
|
|
10215
|
+
toJSON(message: PinMessagesList): unknown;
|
|
10216
|
+
create<I extends {
|
|
10217
|
+
pin_messages_list?: {
|
|
10218
|
+
id?: string | undefined;
|
|
10219
|
+
message_id?: string | undefined;
|
|
10220
|
+
channel_id?: string | undefined;
|
|
10221
|
+
sender_id?: string | undefined;
|
|
10222
|
+
content?: string | undefined;
|
|
10223
|
+
username?: string | undefined;
|
|
10224
|
+
avatar?: string | undefined;
|
|
10225
|
+
}[] | undefined;
|
|
10226
|
+
} & {
|
|
10227
|
+
pin_messages_list?: ({
|
|
10228
|
+
id?: string | undefined;
|
|
10229
|
+
message_id?: string | undefined;
|
|
10230
|
+
channel_id?: string | undefined;
|
|
10231
|
+
sender_id?: string | undefined;
|
|
10232
|
+
content?: string | undefined;
|
|
10233
|
+
username?: string | undefined;
|
|
10234
|
+
avatar?: string | undefined;
|
|
10235
|
+
}[] & ({
|
|
10236
|
+
id?: string | undefined;
|
|
10237
|
+
message_id?: string | undefined;
|
|
10238
|
+
channel_id?: string | undefined;
|
|
10239
|
+
sender_id?: string | undefined;
|
|
10240
|
+
content?: string | undefined;
|
|
10241
|
+
username?: string | undefined;
|
|
10242
|
+
avatar?: string | undefined;
|
|
10243
|
+
} & {
|
|
10244
|
+
id?: string | undefined;
|
|
10245
|
+
message_id?: string | undefined;
|
|
10246
|
+
channel_id?: string | undefined;
|
|
10247
|
+
sender_id?: string | undefined;
|
|
10248
|
+
content?: string | undefined;
|
|
10249
|
+
username?: string | undefined;
|
|
10250
|
+
avatar?: string | undefined;
|
|
10251
|
+
} & { [K in Exclude<keyof I["pin_messages_list"][number], keyof PinMessage>]: never; })[] & { [K_1 in Exclude<keyof I["pin_messages_list"], keyof {
|
|
10252
|
+
id?: string | undefined;
|
|
10253
|
+
message_id?: string | undefined;
|
|
10254
|
+
channel_id?: string | undefined;
|
|
10255
|
+
sender_id?: string | undefined;
|
|
10256
|
+
content?: string | undefined;
|
|
10257
|
+
username?: string | undefined;
|
|
10258
|
+
avatar?: string | undefined;
|
|
10259
|
+
}[]>]: never; }) | undefined;
|
|
10260
|
+
} & { [K_2 in Exclude<keyof I, "pin_messages_list">]: never; }>(base?: I | undefined): PinMessagesList;
|
|
10261
|
+
fromPartial<I_1 extends {
|
|
10262
|
+
pin_messages_list?: {
|
|
10263
|
+
id?: string | undefined;
|
|
10264
|
+
message_id?: string | undefined;
|
|
10265
|
+
channel_id?: string | undefined;
|
|
10266
|
+
sender_id?: string | undefined;
|
|
10267
|
+
content?: string | undefined;
|
|
10268
|
+
username?: string | undefined;
|
|
10269
|
+
avatar?: string | undefined;
|
|
10270
|
+
}[] | undefined;
|
|
10271
|
+
} & {
|
|
10272
|
+
pin_messages_list?: ({
|
|
10273
|
+
id?: string | undefined;
|
|
10274
|
+
message_id?: string | undefined;
|
|
10275
|
+
channel_id?: string | undefined;
|
|
10276
|
+
sender_id?: string | undefined;
|
|
10277
|
+
content?: string | undefined;
|
|
10278
|
+
username?: string | undefined;
|
|
10279
|
+
avatar?: string | undefined;
|
|
10280
|
+
}[] & ({
|
|
10281
|
+
id?: string | undefined;
|
|
10282
|
+
message_id?: string | undefined;
|
|
10283
|
+
channel_id?: string | undefined;
|
|
10284
|
+
sender_id?: string | undefined;
|
|
10285
|
+
content?: string | undefined;
|
|
10286
|
+
username?: string | undefined;
|
|
10287
|
+
avatar?: string | undefined;
|
|
10288
|
+
} & {
|
|
10289
|
+
id?: string | undefined;
|
|
10290
|
+
message_id?: string | undefined;
|
|
10291
|
+
channel_id?: string | undefined;
|
|
10292
|
+
sender_id?: string | undefined;
|
|
10293
|
+
content?: string | undefined;
|
|
10294
|
+
username?: string | undefined;
|
|
10295
|
+
avatar?: string | undefined;
|
|
10296
|
+
} & { [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 {
|
|
10297
|
+
id?: string | undefined;
|
|
10298
|
+
message_id?: string | undefined;
|
|
10299
|
+
channel_id?: string | undefined;
|
|
10300
|
+
sender_id?: string | undefined;
|
|
10301
|
+
content?: string | undefined;
|
|
10302
|
+
username?: string | undefined;
|
|
10303
|
+
avatar?: string | undefined;
|
|
10304
|
+
}[]>]: never; }) | undefined;
|
|
10305
|
+
} & { [K_5 in Exclude<keyof I_1, "pin_messages_list">]: never; }>(object: I_1): PinMessagesList;
|
|
10306
|
+
};
|
|
10125
10307
|
export declare const NotificationUserChannel: {
|
|
10126
10308
|
encode(message: NotificationUserChannel, writer?: _m0.Writer): _m0.Writer;
|
|
10127
10309
|
decode(input: _m0.Reader | Uint8Array, length?: number): NotificationUserChannel;
|
|
@@ -10292,6 +10474,26 @@ export declare const SetNotificationRequest: {
|
|
|
10292
10474
|
time_mute?: Date | undefined;
|
|
10293
10475
|
} & { [K_1 in Exclude<keyof I_1, keyof SetNotificationRequest>]: never; }>(object: I_1): SetNotificationRequest;
|
|
10294
10476
|
};
|
|
10477
|
+
export declare const PinMessageRequest: {
|
|
10478
|
+
encode(message: PinMessageRequest, writer?: _m0.Writer): _m0.Writer;
|
|
10479
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PinMessageRequest;
|
|
10480
|
+
fromJSON(object: any): PinMessageRequest;
|
|
10481
|
+
toJSON(message: PinMessageRequest): unknown;
|
|
10482
|
+
create<I extends {
|
|
10483
|
+
message_id?: string | undefined;
|
|
10484
|
+
channel_id?: string | undefined;
|
|
10485
|
+
} & {
|
|
10486
|
+
message_id?: string | undefined;
|
|
10487
|
+
channel_id?: string | undefined;
|
|
10488
|
+
} & { [K in Exclude<keyof I, keyof PinMessageRequest>]: never; }>(base?: I | undefined): PinMessageRequest;
|
|
10489
|
+
fromPartial<I_1 extends {
|
|
10490
|
+
message_id?: string | undefined;
|
|
10491
|
+
channel_id?: string | undefined;
|
|
10492
|
+
} & {
|
|
10493
|
+
message_id?: string | undefined;
|
|
10494
|
+
channel_id?: string | undefined;
|
|
10495
|
+
} & { [K_1 in Exclude<keyof I_1, keyof PinMessageRequest>]: never; }>(object: I_1): PinMessageRequest;
|
|
10496
|
+
};
|
|
10295
10497
|
export declare const SetMuteNotificationRequest: {
|
|
10296
10498
|
encode(message: SetMuteNotificationRequest, writer?: _m0.Writer): _m0.Writer;
|
|
10297
10499
|
decode(input: _m0.Reader | Uint8Array, length?: number): SetMuteNotificationRequest;
|
|
@@ -211,6 +211,8 @@ export interface ChannelMessageSend {
|
|
|
211
211
|
mode: number;
|
|
212
212
|
/** anonymous message */
|
|
213
213
|
anonymous_message: boolean;
|
|
214
|
+
/** mention everyone */
|
|
215
|
+
mention_everyone: boolean;
|
|
214
216
|
}
|
|
215
217
|
/** Update a message previously sent to a realtime channel. */
|
|
216
218
|
export interface ChannelMessageUpdate {
|
|
@@ -793,6 +795,7 @@ export declare const Envelope: {
|
|
|
793
795
|
}[] | undefined;
|
|
794
796
|
mode?: number | undefined;
|
|
795
797
|
anonymous_message?: boolean | undefined;
|
|
798
|
+
mention_everyone?: boolean | undefined;
|
|
796
799
|
} | undefined;
|
|
797
800
|
channel_message_update?: {
|
|
798
801
|
channel_id?: string | undefined;
|
|
@@ -1304,6 +1307,7 @@ export declare const Envelope: {
|
|
|
1304
1307
|
}[] | undefined;
|
|
1305
1308
|
mode?: number | undefined;
|
|
1306
1309
|
anonymous_message?: boolean | undefined;
|
|
1310
|
+
mention_everyone?: boolean | undefined;
|
|
1307
1311
|
} & {
|
|
1308
1312
|
clan_id?: string | undefined;
|
|
1309
1313
|
channel_id?: string | undefined;
|
|
@@ -1382,6 +1386,7 @@ export declare const Envelope: {
|
|
|
1382
1386
|
}[]>]: never; }) | undefined;
|
|
1383
1387
|
mode?: number | undefined;
|
|
1384
1388
|
anonymous_message?: boolean | undefined;
|
|
1389
|
+
mention_everyone?: boolean | undefined;
|
|
1385
1390
|
} & { [K_14 in Exclude<keyof I["channel_message_send"], keyof ChannelMessageSend>]: never; }) | undefined;
|
|
1386
1391
|
channel_message_update?: ({
|
|
1387
1392
|
channel_id?: string | undefined;
|
|
@@ -2396,6 +2401,7 @@ export declare const Envelope: {
|
|
|
2396
2401
|
}[] | undefined;
|
|
2397
2402
|
mode?: number | undefined;
|
|
2398
2403
|
anonymous_message?: boolean | undefined;
|
|
2404
|
+
mention_everyone?: boolean | undefined;
|
|
2399
2405
|
} | undefined;
|
|
2400
2406
|
channel_message_update?: {
|
|
2401
2407
|
channel_id?: string | undefined;
|
|
@@ -2907,6 +2913,7 @@ export declare const Envelope: {
|
|
|
2907
2913
|
}[] | undefined;
|
|
2908
2914
|
mode?: number | undefined;
|
|
2909
2915
|
anonymous_message?: boolean | undefined;
|
|
2916
|
+
mention_everyone?: boolean | undefined;
|
|
2910
2917
|
} & {
|
|
2911
2918
|
clan_id?: string | undefined;
|
|
2912
2919
|
channel_id?: string | undefined;
|
|
@@ -2985,6 +2992,7 @@ export declare const Envelope: {
|
|
|
2985
2992
|
}[]>]: never; }) | undefined;
|
|
2986
2993
|
mode?: number | undefined;
|
|
2987
2994
|
anonymous_message?: boolean | undefined;
|
|
2995
|
+
mention_everyone?: boolean | undefined;
|
|
2988
2996
|
} & { [K_105 in Exclude<keyof I_1["channel_message_send"], keyof ChannelMessageSend>]: never; }) | undefined;
|
|
2989
2997
|
channel_message_update?: ({
|
|
2990
2998
|
channel_id?: string | undefined;
|
|
@@ -4274,6 +4282,7 @@ export declare const ChannelMessageSend: {
|
|
|
4274
4282
|
}[] | undefined;
|
|
4275
4283
|
mode?: number | undefined;
|
|
4276
4284
|
anonymous_message?: boolean | undefined;
|
|
4285
|
+
mention_everyone?: boolean | undefined;
|
|
4277
4286
|
} & {
|
|
4278
4287
|
clan_id?: string | undefined;
|
|
4279
4288
|
channel_id?: string | undefined;
|
|
@@ -4352,6 +4361,7 @@ export declare const ChannelMessageSend: {
|
|
|
4352
4361
|
}[]>]: never; }) | undefined;
|
|
4353
4362
|
mode?: number | undefined;
|
|
4354
4363
|
anonymous_message?: boolean | undefined;
|
|
4364
|
+
mention_everyone?: boolean | undefined;
|
|
4355
4365
|
} & { [K_6 in Exclude<keyof I, keyof ChannelMessageSend>]: never; }>(base?: I | undefined): ChannelMessageSend;
|
|
4356
4366
|
fromPartial<I_1 extends {
|
|
4357
4367
|
clan_id?: string | undefined;
|
|
@@ -4380,6 +4390,7 @@ export declare const ChannelMessageSend: {
|
|
|
4380
4390
|
}[] | undefined;
|
|
4381
4391
|
mode?: number | undefined;
|
|
4382
4392
|
anonymous_message?: boolean | undefined;
|
|
4393
|
+
mention_everyone?: boolean | undefined;
|
|
4383
4394
|
} & {
|
|
4384
4395
|
clan_id?: string | undefined;
|
|
4385
4396
|
channel_id?: string | undefined;
|
|
@@ -4458,6 +4469,7 @@ export declare const ChannelMessageSend: {
|
|
|
4458
4469
|
}[]>]: never; }) | undefined;
|
|
4459
4470
|
mode?: number | undefined;
|
|
4460
4471
|
anonymous_message?: boolean | undefined;
|
|
4472
|
+
mention_everyone?: boolean | undefined;
|
|
4461
4473
|
} & { [K_13 in Exclude<keyof I_1, keyof ChannelMessageSend>]: never; }>(object: I_1): ChannelMessageSend;
|
|
4462
4474
|
};
|
|
4463
4475
|
export declare const ChannelMessageUpdate: {
|