feat: update all alg
更新所有算法
@ -1,183 +0,0 @@
|
||||
function T(e, t) {
|
||||
var n = (65535 & e) + (65535 & t);
|
||||
return (e >> 16) + (t >> 16) + (n >> 16) << 16 | 65535 & n
|
||||
}
|
||||
function f(e, t, n, i, r, a) {
|
||||
return T((o = T(T(t, e), T(i, a))) << (s = r) | o >>> 32 - s, n);
|
||||
var o, s
|
||||
}
|
||||
function h(e, t, n, i, r, a, o) {
|
||||
return f(t & n | ~t & i, e, t, r, a, o)
|
||||
}
|
||||
function y(e, t, n, i, r, a, o) {
|
||||
return f(t & i | n & ~i, e, t, r, a, o)
|
||||
}
|
||||
function S(e, t, n, i, r, a, o) {
|
||||
return f(t ^ n ^ i, e, t, r, a, o)
|
||||
}
|
||||
function A(e, t, n, i, r, a, o) {
|
||||
return f(n ^ (t | ~i), e, t, r, a, o)
|
||||
}
|
||||
function g(e, t) {
|
||||
var n, i, r, a, o;
|
||||
e[t >> 5] |= 128 << t % 32,
|
||||
e[14 + (t + 64 >>> 9 << 4)] = t;
|
||||
var s = 1732584193
|
||||
, c = -271733879
|
||||
, d = -1732584194
|
||||
, l = 271733878;
|
||||
for (n = 0; n < e.length; n += 16)
|
||||
i = s,
|
||||
r = c,
|
||||
a = d,
|
||||
o = l,
|
||||
s = h(s, c, d, l, e[n], 7, -680876936),
|
||||
l = h(l, s, c, d, e[n + 1], 12, -389564586),
|
||||
d = h(d, l, s, c, e[n + 2], 17, 606105819),
|
||||
c = h(c, d, l, s, e[n + 3], 22, -1044525330),
|
||||
s = h(s, c, d, l, e[n + 4], 7, -176418897),
|
||||
l = h(l, s, c, d, e[n + 5], 12, 1200080426),
|
||||
d = h(d, l, s, c, e[n + 6], 17, -1473231341),
|
||||
c = h(c, d, l, s, e[n + 7], 22, -45705983),
|
||||
s = h(s, c, d, l, e[n + 8], 7, 1770035416),
|
||||
l = h(l, s, c, d, e[n + 9], 12, -1958414417),
|
||||
d = h(d, l, s, c, e[n + 10], 17, -42063),
|
||||
c = h(c, d, l, s, e[n + 11], 22, -1990404162),
|
||||
s = h(s, c, d, l, e[n + 12], 7, 1804603682),
|
||||
l = h(l, s, c, d, e[n + 13], 12, -40341101),
|
||||
d = h(d, l, s, c, e[n + 14], 17, -1502002290),
|
||||
s = y(s, c = h(c, d, l, s, e[n + 15], 22, 1236535329), d, l, e[n + 1], 5, -165796510),
|
||||
l = y(l, s, c, d, e[n + 6], 9, -1069501632),
|
||||
d = y(d, l, s, c, e[n + 11], 14, 643717713),
|
||||
c = y(c, d, l, s, e[n], 20, -373897302),
|
||||
s = y(s, c, d, l, e[n + 5], 5, -701558691),
|
||||
l = y(l, s, c, d, e[n + 10], 9, 38016083),
|
||||
d = y(d, l, s, c, e[n + 15], 14, -660478335),
|
||||
c = y(c, d, l, s, e[n + 4], 20, -405537848),
|
||||
s = y(s, c, d, l, e[n + 9], 5, 568446438),
|
||||
l = y(l, s, c, d, e[n + 14], 9, -1019803690),
|
||||
d = y(d, l, s, c, e[n + 3], 14, -187363961),
|
||||
c = y(c, d, l, s, e[n + 8], 20, 1163531501),
|
||||
s = y(s, c, d, l, e[n + 13], 5, -1444681467),
|
||||
l = y(l, s, c, d, e[n + 2], 9, -51403784),
|
||||
d = y(d, l, s, c, e[n + 7], 14, 1735328473),
|
||||
s = S(s, c = y(c, d, l, s, e[n + 12], 20, -1926607734), d, l, e[n + 5], 4, -378558),
|
||||
l = S(l, s, c, d, e[n + 8], 11, -2022574463),
|
||||
d = S(d, l, s, c, e[n + 11], 16, 1839030562),
|
||||
c = S(c, d, l, s, e[n + 14], 23, -35309556),
|
||||
s = S(s, c, d, l, e[n + 1], 4, -1530992060),
|
||||
l = S(l, s, c, d, e[n + 4], 11, 1272893353),
|
||||
d = S(d, l, s, c, e[n + 7], 16, -155497632),
|
||||
c = S(c, d, l, s, e[n + 10], 23, -1094730640),
|
||||
s = S(s, c, d, l, e[n + 13], 4, 681279174),
|
||||
l = S(l, s, c, d, e[n], 11, -358537222),
|
||||
d = S(d, l, s, c, e[n + 3], 16, -722521979),
|
||||
c = S(c, d, l, s, e[n + 6], 23, 76029189),
|
||||
s = S(s, c, d, l, e[n + 9], 4, -640364487),
|
||||
l = S(l, s, c, d, e[n + 12], 11, -421815835),
|
||||
d = S(d, l, s, c, e[n + 15], 16, 530742520),
|
||||
s = A(s, c = S(c, d, l, s, e[n + 2], 23, -995338651), d, l, e[n], 6, -198630844),
|
||||
l = A(l, s, c, d, e[n + 7], 10, 1126891415),
|
||||
d = A(d, l, s, c, e[n + 14], 15, -1416354905),
|
||||
c = A(c, d, l, s, e[n + 5], 21, -57434055),
|
||||
s = A(s, c, d, l, e[n + 12], 6, 1700485571),
|
||||
l = A(l, s, c, d, e[n + 3], 10, -1894986606),
|
||||
d = A(d, l, s, c, e[n + 10], 15, -1051523),
|
||||
c = A(c, d, l, s, e[n + 1], 21, -2054922799),
|
||||
s = A(s, c, d, l, e[n + 8], 6, 1873313359),
|
||||
l = A(l, s, c, d, e[n + 15], 10, -30611744),
|
||||
d = A(d, l, s, c, e[n + 6], 15, -1560198380),
|
||||
c = A(c, d, l, s, e[n + 13], 21, 1309151649),
|
||||
s = A(s, c, d, l, e[n + 4], 6, -145523070),
|
||||
l = A(l, s, c, d, e[n + 11], 10, -1120210379),
|
||||
d = A(d, l, s, c, e[n + 2], 15, 718787259),
|
||||
c = A(c, d, l, s, e[n + 9], 21, -343485551),
|
||||
s = T(s, i),
|
||||
c = T(c, r),
|
||||
d = T(d, a),
|
||||
l = T(l, o);
|
||||
return [s, c, d, l]
|
||||
}
|
||||
function I(e) {
|
||||
var t, n = "", i = 32 * e.length;
|
||||
for (t = 0; t < i; t += 8)
|
||||
n += String.fromCharCode(e[t >> 5] >>> t % 32 & 255);
|
||||
return n
|
||||
}
|
||||
function m(e) {
|
||||
var t, n = [];
|
||||
for (n[(e.length >> 2) - 1] = void 0,
|
||||
t = 0; t < n.length; t += 1)
|
||||
n[t] = 0;
|
||||
var i = 8 * e.length;
|
||||
for (t = 0; t < i; t += 8)
|
||||
n[t >> 5] |= (255 & e.charCodeAt(t / 8)) << t % 32;
|
||||
return n
|
||||
}
|
||||
function C(e) {
|
||||
var t, n, i = "";
|
||||
for (n = 0; n < e.length; n += 1)
|
||||
t = e.charCodeAt(n),
|
||||
i += "0123456789abcdef".charAt(t >>> 4 & 15) + "0123456789abcdef".charAt(15 & t);
|
||||
return i
|
||||
}
|
||||
function N(e) {
|
||||
return unescape(encodeURIComponent(e))
|
||||
}
|
||||
function O(e) {
|
||||
return function(e) {
|
||||
return I(g(m(e), 8 * e.length))
|
||||
}(N(e))
|
||||
}
|
||||
function generate_access_key(e) {
|
||||
return C(O(e))
|
||||
}
|
||||
|
||||
|
||||
// request_id
|
||||
function generate_request_id() {
|
||||
return (Math.random().toString(36) + "0000000000").substring(2, 2 + "0000000000".length)
|
||||
}
|
||||
|
||||
function generate_long_request_id() {
|
||||
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (function(e) {
|
||||
var t = 16 * Math.random() | 0;
|
||||
return ("x" === e ? t : 3 & t | 8).toString(16)
|
||||
}
|
||||
))
|
||||
}
|
||||
// request_cid and session_id
|
||||
function generate_request_cid() {
|
||||
let e = 10, t = undefined
|
||||
const n = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("")
|
||||
, i = [];
|
||||
let r = null
|
||||
, a = null
|
||||
, o = null;
|
||||
const s = n.length;
|
||||
if (t = (t = t || s) > s ? s : t,
|
||||
e)
|
||||
for (r = 0; r < e; r++)
|
||||
o = 0 | Math.random() * t,
|
||||
i[r] = n[o];
|
||||
else
|
||||
for (i[8] = "-",
|
||||
i[13] = "-",
|
||||
i[18] = "-",
|
||||
i[23] = "-",
|
||||
i[14] = "4",
|
||||
r = 0; r < 36; r++)
|
||||
i[r] || (a = 0 | 16 * Math.random(),
|
||||
i[r] = n[19 === r ? 3 & a | 8 : a]);
|
||||
return i.join("")
|
||||
}
|
||||
|
||||
|
||||
function generate_csrf_token() {
|
||||
let e = "swp_csrf_token"
|
||||
let document = {
|
||||
cookie: "locale=zh-CN; _gcl_au=1.1.1773137480.1713790863; _ga=GA1.1.252483876.1713790863; _ga_VPYRHN104D=GS1.1.1713790863.1.1.1713790872.51.0.0; lang=zh; __tea__ug__uid=1007701713790873353; et=5149005c67cbe62db3d7f613bb9c7440; Hm_lvt_e78c0cb1b97ef970304b53d2097845fd=1716609558; i18n_locale=zh-CN; _csrf_token=36b375aad3381c672c2752df4c2f78c9bc1b51ae-1716787751; ccm_cdn_host=//lf-scm-cn.feishucdn.com; MONITOR_WEB_ID=eb362632-773d-4a6c-b3f7-fd69a73f80e1; msToken=1aL_Z6EfXm8A5YvLxai6CT2XUrk4rk-TS1Tr9VEIqx5dwdqXD_raGfMXYFZPQr3B_aVm00bKlLyYQ6fw2u-BHADiWT81bCZ2Vfft2Dm0_AzIVT8PUcoBPjUu0STE1Q==; swp_csrf_token=b2f409f7-fd71-4915-bf04-9248fcedd78d"
|
||||
}
|
||||
return decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*".concat(encodeURIComponent(e).replace(/[-.+*]/g, "\\$&"), "\\s*\\=\\s*([^;]*).*$)|^.*$")), "$1")) || ""
|
||||
}
|
||||
|
||||
@ -1,855 +0,0 @@
|
||||
syntax = "proto3";
|
||||
|
||||
|
||||
|
||||
message Frame {
|
||||
optional uint64 seqid = 1;
|
||||
optional uint64 logid = 2;
|
||||
optional int32 service = 3;
|
||||
optional int32 method = 4;
|
||||
repeated ExtendedEntry headers = 5;
|
||||
optional string payloadEncoding = 6;
|
||||
optional string payloadType = 7;
|
||||
optional bytes payload = 8;
|
||||
}
|
||||
|
||||
message Packet {
|
||||
optional string sid = 1;
|
||||
optional PayloadType payloadType = 2;
|
||||
optional int32 cmd = 3;
|
||||
optional uint32 status = 4;
|
||||
optional bytes payload = 5;
|
||||
optional string cid = 6;
|
||||
optional PipeEntity pipeEntity = 7;
|
||||
repeated VersionPayload versionPayloads = 8;
|
||||
repeated PipeEntity pipeEntities = 9;
|
||||
optional uint32 waitRetryInterval = 10;
|
||||
optional int32 command = 11;
|
||||
optional uint64 cursor = 12;
|
||||
}
|
||||
|
||||
message PushMessagesRequest {
|
||||
map<string, entities.Message> messages = 1;
|
||||
map<string, bool> participatedMessageIds = 3;
|
||||
map<string, bool> forcePush = 8;
|
||||
map<string, bool> messagesAtMe = 9;
|
||||
}
|
||||
|
||||
message PutMessageRequest {
|
||||
optional Type type = 1;
|
||||
optional Content content = 2;
|
||||
optional string chatId = 3;
|
||||
optional string rootId = 4;
|
||||
optional string parentId = 5;
|
||||
optional string cid = 6;
|
||||
optional bool isNotified = 7;
|
||||
optional bool sendToChat = 8;
|
||||
optional int32 version = 9;
|
||||
optional bool isThreadGroupTopic = 10;
|
||||
optional bool isAnonymous = 11;
|
||||
repeated string leftStaticResourceKeys = 101;
|
||||
optional bytes thriftMessage = 102;
|
||||
}
|
||||
|
||||
|
||||
message PutChatRequest {
|
||||
optional Type type = 1;
|
||||
repeated string userIds = 2;
|
||||
optional string groupName = 3;
|
||||
optional string groupDesc = 4;
|
||||
optional bool isPublic = 5;
|
||||
repeated string chatterIds = 6;
|
||||
optional string organizationId = 7;
|
||||
optional string fromChatId = 8;
|
||||
repeated string initMessageIds = 9;
|
||||
optional string iconKey = 10;
|
||||
map<string, DocPermType> docPerms = 11;
|
||||
optional bool isCrossTenant = 12;
|
||||
optional bool isPublicV2 = 13;
|
||||
map<string, DocPair> docPerms2 = 15;
|
||||
optional string cid = 16;
|
||||
|
||||
enum DocPermType {
|
||||
UNKNOWN = 0;
|
||||
READ = 1;
|
||||
EDIT = 2;
|
||||
}
|
||||
|
||||
message DocPair {
|
||||
map<string, DocPermType> perms = 1;
|
||||
}
|
||||
}
|
||||
|
||||
message PutChatResponse {
|
||||
optional Chat chat = 1;
|
||||
optional FeedCard feedCard = 2;
|
||||
}
|
||||
|
||||
message UniversalSearchRequest {
|
||||
optional SearchCommonRequestHeader header = 1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
message UniversalSearchResponse {
|
||||
optional SearchCommonResponseHeader header = 1;
|
||||
repeated SearchResult results = 2;
|
||||
optional SearchExtraFields extraFields = 3;
|
||||
repeated FailedEntityInfo failedEntityInfos = 5;
|
||||
|
||||
|
||||
message SearchResult {
|
||||
optional string id = 1;
|
||||
optional SearchEntityType type = 2;
|
||||
optional string titleHighlighted = 3;
|
||||
optional string summaryHighlighted = 4;
|
||||
optional string extrasHighlighted = 5;
|
||||
optional string avatarKey = 6;
|
||||
optional string extraInfoSeparator = 10;
|
||||
}
|
||||
|
||||
enum SearchEntityType {
|
||||
UNKNOWN = 0;
|
||||
USER = 1;
|
||||
BOT = 2;
|
||||
GROUP_CHAT = 3;
|
||||
CRYPTO_P2P_CHAT = 4;
|
||||
MESSAGE = 5;
|
||||
DOC = 7;
|
||||
WIKI = 8;
|
||||
APP = 9;
|
||||
ONCALL = 10;
|
||||
THREAD = 11;
|
||||
QA_CARD = 12;
|
||||
URL = 13;
|
||||
DEPARTMENT = 14;
|
||||
PANO = 15;
|
||||
SLASH_COMMAND = 16;
|
||||
SECTION = 17;
|
||||
RESOURCE = 18;
|
||||
CUSTOMIZATION = 19;
|
||||
FACILITY = 20;
|
||||
MAIL_CONTACT = 21;
|
||||
CHAMELEON = 22;
|
||||
CALENDAR_EVENT = 23;
|
||||
}
|
||||
|
||||
|
||||
message SearchCommonResponseHeader {
|
||||
optional string searchSession = 1;
|
||||
optional int32 sessionSeqId = 2;
|
||||
optional int32 total = 3;
|
||||
optional bool hasMore = 4;
|
||||
optional string paginationToken = 5;
|
||||
optional InvokeAbnormalNotice invokeAbnormalNotice = 6;
|
||||
optional ColdAndHotStorageInfo storageInfo = 7;
|
||||
|
||||
enum InvokeAbnormalNotice {
|
||||
INVOKE_NORMAL = 0;
|
||||
REQUEST_CANCELED = 1;
|
||||
VERSION_SWITCH = 2;
|
||||
QUERY_LENGTH_EXCEEDED = 3;
|
||||
}
|
||||
|
||||
message ColdAndHotStorageInfo {
|
||||
optional bool isNeedColdData = 1;
|
||||
optional int32 timeSize = 2;
|
||||
optional TimeUnit timeUnit = 3;
|
||||
optional string timeText = 4;
|
||||
optional HasMoreInfo hasMoreInfo = 5;
|
||||
|
||||
enum TimeUnit {
|
||||
TimeUNKNOWN = 0;
|
||||
DAY = 1;
|
||||
WEEK = 2;
|
||||
MONTH = 3;
|
||||
YEAR = 4;
|
||||
}
|
||||
enum HasMoreInfo {
|
||||
UNKNOWN = 0;
|
||||
HOT_HAS_MORE = 1;
|
||||
HOT_HAS_NO_MORE = 2;
|
||||
COLD_HAS_MORE = 3;
|
||||
COLD_HAS_NO_MORE = 4;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
message SearchExtraFields {
|
||||
optional bytes chatterPermissionResponse = 1;
|
||||
}
|
||||
|
||||
message FailedEntityInfo {
|
||||
optional SearchEntityType entityType = 1;
|
||||
optional bool isNeedLocalFallback = 2;
|
||||
optional string localPaginationToken = 3;
|
||||
|
||||
enum SearchEntityType {
|
||||
UNKNOWN = 0;
|
||||
USER = 1;
|
||||
BOT = 2;
|
||||
GROUP_CHAT = 3;
|
||||
CRYPTO_P2P_CHAT = 4;
|
||||
MESSAGE = 5;
|
||||
DOC = 7;
|
||||
WIKI = 8;
|
||||
APP = 9;
|
||||
ONCALL = 10;
|
||||
THREAD = 11;
|
||||
QA_CARD = 12;
|
||||
URL = 13;
|
||||
DEPARTMENT = 14;
|
||||
PANO = 15;
|
||||
SLASH_COMMAND = 16;
|
||||
SECTION = 17;
|
||||
RESOURCE = 18;
|
||||
CUSTOMIZATION = 19;
|
||||
FACILITY = 20;
|
||||
MAIL_CONTACT = 21;
|
||||
CHAMELEON = 22;
|
||||
CALENDAR_EVENT = 23;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
message SearchCommonRequestHeader {
|
||||
optional string searchSession = 1;
|
||||
optional int32 sessionSeqId = 2;
|
||||
optional string query = 3;
|
||||
optional string paginationToken = 4;
|
||||
optional BaseEntity.SearchContext searchContext = 5;
|
||||
optional string locale = 6;
|
||||
optional string impressionId = 7;
|
||||
optional SearchExtraParam extraParam = 8;
|
||||
optional Layout titleLayout = 9;
|
||||
optional Layout summaryLayout = 10;
|
||||
optional int32 pageSize = 11;
|
||||
optional Layout sectionSummaryLayout = 13;
|
||||
message Layout {
|
||||
optional int32 line = 1;
|
||||
optional int32 width = 2;
|
||||
}
|
||||
}
|
||||
message SearchExtraParam {
|
||||
optional bytes chatterPermissionRequest = 1;
|
||||
optional int32 queryInputState = 2;
|
||||
}
|
||||
message BaseEntity {
|
||||
message SearchContext {
|
||||
optional string tagName = 1;
|
||||
repeated EntityItem entityItems = 2;
|
||||
optional CommonFilter commonFilter = 3;
|
||||
optional string sourceKey = 5;
|
||||
}
|
||||
}
|
||||
|
||||
message CommonFilter {
|
||||
optional bool includeOuterTenant = 1;
|
||||
optional string chatId = 2;
|
||||
}
|
||||
message UserFilter {
|
||||
message FieldValues {
|
||||
repeated string values = 1;
|
||||
}
|
||||
optional bool isResigned = 1;
|
||||
optional bool haveChatter = 2;
|
||||
map<string, FieldValues> customFields = 3;
|
||||
optional bool exclude = 4;
|
||||
}
|
||||
message GroupChatFilter {
|
||||
repeated SearchType searchTypes = 1;
|
||||
repeated string chatMemberIds = 2;
|
||||
repeated string excludedChatIds = 3;
|
||||
optional bool searchCrypto = 4;
|
||||
optional bool addableAsUser = 5;
|
||||
}
|
||||
|
||||
enum SearchType {
|
||||
TYPE_UNSPECIFIED = 0;
|
||||
SEARCH_TYPE_1 = 1;
|
||||
SEARCH_TYPE_2 = 2;
|
||||
}
|
||||
message EntityItem {
|
||||
optional SearchEntityType type = 1;
|
||||
optional EntityFilter filter = 2;
|
||||
repeated string boostChatIds = 4;
|
||||
optional string localPaginationToken = 5;
|
||||
|
||||
message EntityFilter {
|
||||
oneof filter {
|
||||
UserFilter userFilter = 1;
|
||||
GroupChatFilter groupChatFilter = 2;
|
||||
}
|
||||
}
|
||||
enum SearchEntityType {
|
||||
UNKNOWN = 0;
|
||||
USER = 1;
|
||||
BOT = 2;
|
||||
GROUP_CHAT = 3;
|
||||
CRYPTO_P2P_CHAT = 4;
|
||||
MESSAGE = 5;
|
||||
DOC = 7;
|
||||
WIKI = 8;
|
||||
APP = 9;
|
||||
ONCALL = 10;
|
||||
THREAD = 11;
|
||||
QA_CARD = 12;
|
||||
URL = 13;
|
||||
DEPARTMENT = 14;
|
||||
PANO = 15;
|
||||
SLASH_COMMAND = 16;
|
||||
SECTION = 17;
|
||||
RESOURCE = 18;
|
||||
CUSTOMIZATION = 19;
|
||||
FACILITY = 20;
|
||||
MAIL_CONTACT = 21;
|
||||
CHAMELEON = 22;
|
||||
CALENDAR_EVENT = 23;
|
||||
}
|
||||
}
|
||||
|
||||
message Content {
|
||||
optional string text = 1;
|
||||
optional string imageKey = 2;
|
||||
optional bool isOriginSource = 31;
|
||||
optional string title = 3;
|
||||
repeated string attachments = 4;
|
||||
optional bool isNotified = 5;
|
||||
optional string audioKey = 7;
|
||||
optional int32 audioDuration = 8;
|
||||
optional string chatId = 9;
|
||||
optional string cryptoToken = 10;
|
||||
optional string fileKey = 6;
|
||||
optional string fileName = 11;
|
||||
optional string fileMime = 12;
|
||||
optional int64 fileSize = 13;
|
||||
optional FileTransMode fileTransMode = 28;
|
||||
optional string senderDeviceId = 29;
|
||||
optional RichText richText = 14;
|
||||
optional int32 duration = 15;
|
||||
optional int32 attendeesCount = 17;
|
||||
optional bool isGroupAnnouncement = 18;
|
||||
optional string stickerSetId = 24;
|
||||
optional string stickerId = 25;
|
||||
optional string shareUserId = 27;
|
||||
|
||||
enum FileTransMode {
|
||||
UNKNOWN = 0;
|
||||
LAN_TRANS = 1;
|
||||
}
|
||||
}
|
||||
message entities {
|
||||
message Message {
|
||||
optional string id = 1;
|
||||
optional Type type = 2;
|
||||
optional string fromId = 3;
|
||||
optional int64 createTime = 4;
|
||||
optional bytes content = 5;
|
||||
optional Status status = 6;
|
||||
optional FromType fromType = 7;
|
||||
optional string rootId = 8;
|
||||
optional string parentId = 9;
|
||||
optional string chatId = 10;
|
||||
optional int64 lastModifyTime = 11;
|
||||
optional string cid = 12;
|
||||
optional int32 position = 13;
|
||||
optional int64 updateTime = 14;
|
||||
optional bool isNotified = 15;
|
||||
optional string replyCount = 16;
|
||||
optional string parentSourceMessageId = 17;
|
||||
optional string rootSourceMessageId = 18;
|
||||
optional bool isDing = 19;
|
||||
optional string threadId = 20;
|
||||
optional bool sendToChat = 21;
|
||||
optional bool isTruncated = 22;
|
||||
optional bool isRemoved = 23;
|
||||
optional string channelId = 24;
|
||||
optional int32 threadPosition = 28;
|
||||
optional int64 removerId = 29;
|
||||
optional string translateLanguage = 30;
|
||||
optional RemoverType removerType = 31;
|
||||
optional int32 noBadgedCount = 33;
|
||||
optional bool isBadged = 34;
|
||||
optional int32 badgeCount = 35;
|
||||
optional int32 threadBadgeCount = 36;
|
||||
optional int32 threadReplyCount = 37;
|
||||
repeated string atOutChatterIds = 38;
|
||||
optional string messageLanguage = 39;
|
||||
optional bool isNoTraceRemoved = 41;
|
||||
optional bool isAutoTranslatedByReceiver = 42;
|
||||
optional MessageSensitivity sensitivity = 43;
|
||||
optional bool isVisibleV2 = 44;
|
||||
optional ChatType chatType = 46;
|
||||
optional string originalSenderId = 47;
|
||||
optional bool isStaticResourceMessageDeleted = 48;
|
||||
optional int64 messagePipeVersion = 52;
|
||||
optional bool isBatchCopyMessages = 53;
|
||||
optional bool isSpecialFocus = 56;
|
||||
optional bool isIncludeDocUrl = 58;
|
||||
optional int64 cipherId = 59;
|
||||
enum Type {
|
||||
UNKNOWN = 0;
|
||||
POST = 2;
|
||||
FILE = 3;
|
||||
TEXT = 4;
|
||||
IMAGE = 5;
|
||||
SYSTEM = 6;
|
||||
AUDIO = 7;
|
||||
EMAIL = 8;
|
||||
SHARE_GROUP_CHAT = 9;
|
||||
STICKER = 10;
|
||||
MERGE_FORWARD = 11;
|
||||
CALENDAR = 12;
|
||||
CLOUD_FILE = 13;
|
||||
CARD = 14;
|
||||
MEDIA = 15;
|
||||
SHARE_CALENDAR_EVENT = 16;
|
||||
HONGBAO = 17;
|
||||
GENERAL_CALENDAR = 18;
|
||||
VIDEO_CHAT = 19;
|
||||
LOCATION = 20;
|
||||
COMMERCIALIZED_HONGBAO = 22;
|
||||
SHARE_USER_CARD = 23;
|
||||
TODO = 24;
|
||||
FOLDER = 25;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
enum FromType {
|
||||
UNKNOWN_FROMTYPE = 0;
|
||||
USER = 1;
|
||||
BOT = 2;
|
||||
}
|
||||
|
||||
enum Status {
|
||||
UNKNOWN_STATUS = 0;
|
||||
NORMAL = 1;
|
||||
DELETED = 2;
|
||||
MODIFIED = 3;
|
||||
}
|
||||
|
||||
enum RemoverType {
|
||||
UNKNOWN_REMOVERTYPE = 0;
|
||||
GROUPOWNER = 1;
|
||||
SYSADMIN = 2;
|
||||
GROUPADMIN = 3;
|
||||
}
|
||||
|
||||
enum MessageSensitivity {
|
||||
UNKNOWN_SENSITIVITY = 0;
|
||||
SAFE = 1;
|
||||
DANGEROUS = 2;
|
||||
}
|
||||
|
||||
enum ChatType {
|
||||
UNKNOWN_CHAT_TYPE = 0;
|
||||
P2P = 1;
|
||||
GROUP = 2;
|
||||
TOPIC_GROUP = 3;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
message TextContent {
|
||||
optional string text = 1;
|
||||
optional RichText richText = 3;
|
||||
}
|
||||
|
||||
message RichText {
|
||||
repeated string elementIds = 1;
|
||||
optional string innerText = 2;
|
||||
optional RichTextElements elements = 3;
|
||||
repeated string imageIds = 5;
|
||||
repeated string atIds = 6;
|
||||
repeated string anchorIds = 7;
|
||||
repeated string i18nIds = 8;
|
||||
repeated string mediaIds = 9;
|
||||
repeated string docsIds = 10;
|
||||
repeated string interactiveIds = 11;
|
||||
repeated string mentionIds = 12;
|
||||
int32 version = 13;
|
||||
}
|
||||
|
||||
|
||||
message RichTextElements {
|
||||
map<string, RichTextElement> dictionary = 1;
|
||||
map<string, RichTextElementStyleRefs> styleRefs = 2;
|
||||
repeated RichTextStyle styles = 3;
|
||||
|
||||
message RichTextStyle {
|
||||
optional string name = 1;
|
||||
optional string value = 2;
|
||||
}
|
||||
|
||||
message RichTextElementStyleRefs {
|
||||
repeated int32 styleIds = 1 [packed = false];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
message RichTextElement {
|
||||
optional Tag tag = 1;
|
||||
map<string, string> style = 2;
|
||||
optional bytes property = 3;
|
||||
repeated string childIds = 4;
|
||||
repeated string styleKeys = 5;
|
||||
enum Tag {
|
||||
UNKNOWN_TAG = 0;
|
||||
TEXT = 1;
|
||||
IMG = 2;
|
||||
P = 3;
|
||||
FIGURE = 4;
|
||||
AT = 5;
|
||||
A = 6;
|
||||
B = 7;
|
||||
I = 8;
|
||||
U = 9;
|
||||
EMOTION = 10;
|
||||
BUTTON = 11;
|
||||
SELECT = 12;
|
||||
PROGRESS_SELECT_OPTION = 13;
|
||||
DIV = 14;
|
||||
TEXTABLE_AREA = 15;
|
||||
TIME = 16;
|
||||
LINK = 17;
|
||||
MEDIA = 18;
|
||||
SELECTMENU = 19;
|
||||
OVERFLOWMENU = 20;
|
||||
DATEPICKER = 21;
|
||||
DOCS = 22;
|
||||
H1 = 23;
|
||||
H2 = 24;
|
||||
H3 = 25;
|
||||
UL = 26;
|
||||
OL = 27;
|
||||
LI = 28;
|
||||
QUOTE = 29;
|
||||
CODE = 30;
|
||||
CODE_BLOCK = 31;
|
||||
HR = 32;
|
||||
TIMEPICKER = 33;
|
||||
DATETIMEPICKER = 34;
|
||||
REACTION = 35;
|
||||
MENTION = 36;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
message TextProperty {
|
||||
optional string content = 1;
|
||||
optional string i18nKey = 2;
|
||||
optional int32 numberOfLines = 3;
|
||||
}
|
||||
message ExtendedEntry {
|
||||
optional string key = 1;
|
||||
optional string value = 2;
|
||||
}
|
||||
|
||||
|
||||
enum PayloadType {
|
||||
TYPE_UNKNOWN = 0;
|
||||
PB2 = 1;
|
||||
JSON = 2;
|
||||
}
|
||||
|
||||
message PipeEntity {
|
||||
optional string type = 1;
|
||||
optional int64 id = 3;
|
||||
}
|
||||
|
||||
message VersionPayload {
|
||||
optional VersionRange versionRange = 1;
|
||||
optional bytes payload = 2;
|
||||
}
|
||||
|
||||
message VersionRange {
|
||||
optional string start = 1;
|
||||
optional string end = 2;
|
||||
}
|
||||
|
||||
enum Type {
|
||||
UNKNOWN = 0;
|
||||
POST = 2;
|
||||
FILE = 3;
|
||||
TEXT = 4;
|
||||
IMAGE = 5;
|
||||
SYSTEM = 6;
|
||||
AUDIO = 7;
|
||||
EMAIL = 8;
|
||||
SHARE_GROUP_CHAT = 9;
|
||||
STICKER = 10;
|
||||
MERGE_FORWARD = 11;
|
||||
CALENDAR = 12;
|
||||
CLOUD_FILE = 13;
|
||||
CARD = 14;
|
||||
MEDIA = 15;
|
||||
SHARE_CALENDAR_EVENT = 16;
|
||||
HONGBAO = 17;
|
||||
GENERAL_CALENDAR = 18;
|
||||
VIDEO_CHAT = 19;
|
||||
LOCATION = 20;
|
||||
COMMERCIALIZED_HONGBAO = 22;
|
||||
SHARE_USER_CARD = 23;
|
||||
TODO = 24;
|
||||
FOLDER = 25;
|
||||
}
|
||||
|
||||
message Chat {
|
||||
optional string id = 1;
|
||||
optional Type type = 2;
|
||||
optional string lastMessageId = 3;
|
||||
optional string name = 4;
|
||||
optional string ownerId = 6;
|
||||
optional int32 newMessageCount = 7;
|
||||
optional Status status = 8;
|
||||
optional int64 updateTime = 9;
|
||||
optional string key = 10;
|
||||
optional string description = 11;
|
||||
optional int32 memberCount = 12;
|
||||
optional bool isDepartment = 13;
|
||||
optional bool isPublic = 14;
|
||||
optional int32 lastMessagePosition = 15;
|
||||
optional int32 userCount = 16;
|
||||
optional string namePinyin = 17;
|
||||
optional int64 createTime = 18;
|
||||
optional bool isCustomerService = 19;
|
||||
optional Role role = 20;
|
||||
optional bool isCustomIcon = 21;
|
||||
optional int32 noBadgedNewMessageCount = 22;
|
||||
optional bool offEditGroupChatInfo = 23;
|
||||
optional Announcement announcement = 24;
|
||||
optional string tenantId = 25;
|
||||
optional int64 updateTimeMs = 26;
|
||||
optional bool isRemind = 27;
|
||||
optional bool isDissolved = 30;
|
||||
optional bool isMeeting = 31;
|
||||
optional string lastVisibleMessageId = 32;
|
||||
optional string lastThreadId = 33;
|
||||
optional int32 newThreadCount = 34;
|
||||
optional int32 lastThreadPosition = 35;
|
||||
optional bool isCrypto = 36;
|
||||
optional int32 noBadgedNewThreadCount = 37;
|
||||
optional int32 threadStartPosition = 38;
|
||||
optional ChatMode chatMode = 39;
|
||||
optional bool isCrossTenant = 41;
|
||||
optional bool isTenant = 42;
|
||||
optional SupportView supportView = 43;
|
||||
optional int64 joinTimeMs = 44;
|
||||
optional int64 oncallId = 45;
|
||||
optional int32 lastVisibleMessagePosition = 46;
|
||||
optional int32 lastVisibleMessageNoBadgedCount = 47;
|
||||
optional int32 readPosition = 48;
|
||||
optional int32 readPositionBadgeCount = 49;
|
||||
optional int32 lastMessagePositionBadgeCount = 50;
|
||||
optional bool enableWatermark = 51;
|
||||
optional string sidebarId = 53;
|
||||
optional string namePy = 100;
|
||||
map<string, string> i18nNames = 101 [deprecated = true];
|
||||
optional I18nInf i18nInf = 102;
|
||||
optional int32 readThreadPosition = 103;
|
||||
optional int32 readThreadPositionBadgeCount = 104;
|
||||
optional int32 lastThreadPositionBadgeCount = 105;
|
||||
optional int32 lastVisibleThreadPosition = 106;
|
||||
optional string lastVisibleThreadId = 107;
|
||||
optional bool isPublicV2 = 109;
|
||||
optional bool allowPost = 111;
|
||||
optional int64 burnedTime = 112;
|
||||
optional int32 putChatterApplyCount = 113;
|
||||
optional bool showBanner = 114;
|
||||
optional bool isLargeGroup = 115;
|
||||
optional int32 firstChatMessagePosition = 116;
|
||||
repeated int32 tags = 117 [packed = false];
|
||||
map<string, string> extra = 118;
|
||||
optional bool isSamePageMeeting = 119;
|
||||
optional int64 myThreadsReadTimestamp = 120;
|
||||
optional int64 myThreadsLastTimestamp = 121;
|
||||
|
||||
enum Type {
|
||||
UNKNOWN = 0;
|
||||
P2P = 1;
|
||||
GROUP = 2;
|
||||
TOPIC_GROUP = 3;
|
||||
}
|
||||
|
||||
enum Status {
|
||||
NORMAL = 0;
|
||||
ARCHIVE = 1;
|
||||
DELETED = 2;
|
||||
}
|
||||
|
||||
enum ChatMode {
|
||||
UNKNOWN_CHAT_MODE = 0;
|
||||
DEFAULT = 1;
|
||||
THREAD = 2;
|
||||
THREAD_V2 = 3;
|
||||
}
|
||||
|
||||
enum SupportView {
|
||||
VIEW_UNKNOWN = 0;
|
||||
VIEW_P2PGROUP = 1;
|
||||
VIEW_MEETING = 2;
|
||||
VIEW_THREAD = 3;
|
||||
VIEW_CRYPTO = 4;
|
||||
}
|
||||
|
||||
enum Role {
|
||||
IGNORE = 0;
|
||||
MEMBER = 1;
|
||||
VISITOR = 2;
|
||||
THREAD_FOLLOWER = 3;
|
||||
}
|
||||
|
||||
message Announcement {
|
||||
optional string content = 1;
|
||||
optional int64 updateTime = 2;
|
||||
optional string lastEditorId = 3;
|
||||
optional string docUrl = 4;
|
||||
optional bool enableOpendoc = 5;
|
||||
}
|
||||
|
||||
message I18nInf {
|
||||
map<string, string> i18nNames = 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
message FeedCard {
|
||||
optional string id = 1;
|
||||
optional Type type = 2;
|
||||
optional int64 updateTime = 3;
|
||||
optional bool isDelayed = 4;
|
||||
optional int64 parentCardId = 5;
|
||||
optional int64 rankTime = 6;
|
||||
optional FeedType feedType = 7;
|
||||
optional string imprId = 8;
|
||||
optional int64 updateTimeMs = 9;
|
||||
|
||||
enum Type {
|
||||
UNKNOWN_TYPE = 0;
|
||||
CHAT = 1;
|
||||
MAIL = 2;
|
||||
DOC = 3;
|
||||
THREAD = 4;
|
||||
BOX = 5;
|
||||
OPENAPP = 6;
|
||||
TOPIC = 7;
|
||||
APP_CHAT = 8;
|
||||
}
|
||||
|
||||
enum FeedType {
|
||||
TYPE_UNKNOWN = 0;
|
||||
TYPE_NEWS = 1;
|
||||
TYPE_SOCIAL = 2;
|
||||
}
|
||||
}
|
||||
|
||||
message GetUserInfoRequest{
|
||||
optional int64 chatId = 1;
|
||||
optional int64 userId = 3;
|
||||
optional int32 userType = 4;
|
||||
}
|
||||
|
||||
// 18 {
|
||||
// 1 {
|
||||
// 13: 0x796d5f73
|
||||
// }
|
||||
// 2: "\344\271\224\344\270\226\345\230\211"
|
||||
// }
|
||||
// 18 {
|
||||
// 1: "id_id"
|
||||
// 2: "\344\271\224\344\270\226\345\230\211"
|
||||
// }
|
||||
// 18 {
|
||||
// 1: "hi_in"
|
||||
// 2: "\344\271\224\344\270\226\345\230\211"
|
||||
// }
|
||||
// 18 {
|
||||
// 1: "zh_cn"
|
||||
// 2: "qsj666"
|
||||
// }
|
||||
// 18 {
|
||||
// 1: "ru_ru"
|
||||
// 2: "\344\271\224\344\270\226\345\230\211"
|
||||
// }
|
||||
// 18 {
|
||||
// 1: "zh_tw"
|
||||
// 2: "\344\271\224\344\270\226\345\230\211"
|
||||
// }
|
||||
// 18 {
|
||||
// 1: "ja_jp"
|
||||
// 2: "\344\271\224\344\270\226\345\230\211"
|
||||
// }
|
||||
// 18 {
|
||||
// 1: "de_de"
|
||||
// 2: "\344\271\224\344\270\226\345\230\211"
|
||||
// }
|
||||
// 18 {
|
||||
// 1: "fr_fr"
|
||||
// 2: "\344\271\224\344\270\226\345\230\211"
|
||||
// }
|
||||
// 18 {
|
||||
// 1: "vi_vn"
|
||||
// 2: "\344\271\224\344\270\226\345\230\211"
|
||||
// }
|
||||
// 18 {
|
||||
// 1: "ko_kr"
|
||||
// 2: "\344\271\224\344\270\226\345\230\211"
|
||||
// }
|
||||
// 18 {
|
||||
// 1 {
|
||||
// 12: 0x73755f6e
|
||||
// }
|
||||
// 2: "\344\271\224\344\270\226\345\230\211"
|
||||
// }
|
||||
// 18 {
|
||||
// 1: "th_th"
|
||||
// 2: "\344\271\224\344\270\226\345\230\211"
|
||||
// }
|
||||
// 18 {
|
||||
// 1: "pt_br"
|
||||
// 2: "\344\271\224\344\270\226\345\230\211"
|
||||
// }
|
||||
// 18 {
|
||||
// 1: "zh_hk"
|
||||
// 2: "\344\271\224\344\270\226\345\230\211"
|
||||
// }
|
||||
// 18 {
|
||||
// 1 {
|
||||
// 12: 0x73655f73
|
||||
// }
|
||||
// 2: "\344\271\224\344\270\226\345\230\211"
|
||||
// }
|
||||
// 18 {
|
||||
// 1: "it_it"
|
||||
// 2: "\344\271\224\344\270\226\345\230\211"
|
||||
// }
|
||||
message Detail {
|
||||
optional bytes nickname = 2;
|
||||
optional bytes nickname1 = 4;
|
||||
optional bytes nickname2 = 7;
|
||||
optional bytes nickname3 = 13;
|
||||
optional bytes nickname4 = 17;
|
||||
repeated LocaleEntry locales = 18;
|
||||
}
|
||||
|
||||
message LocaleEntry {
|
||||
oneof key {
|
||||
string key_string = 1;
|
||||
uint32 key_numeric1 = 12;
|
||||
uint32 key_numeric2 = 13;
|
||||
}
|
||||
string translation = 2;
|
||||
}
|
||||
|
||||
message UserInfoDetail {
|
||||
Detail detail = 2;
|
||||
}
|
||||
|
||||
message UserInfo {
|
||||
UserInfoDetail userInfoDetail = 1;
|
||||
}
|
||||
|
||||
message GetGroupInfoRequest{
|
||||
optional string chatId = 1;
|
||||
}
|
||||
|
Before Width: | Height: | Size: 95 KiB |
BIN
static/resource/backend.png
Normal file
|
After Width: | Height: | Size: 108 KiB |
|
Before Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 14 KiB |
BIN
static/resource/lark.png
Normal file
|
After Width: | Height: | Size: 27 KiB |
BIN
static/resource/logo.png
Normal file
|
After Width: | Height: | Size: 2.0 MiB |