larkmate 0.1.10 → 0.1.12

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/README.md CHANGED
@@ -36,6 +36,8 @@ npx --registry=https://registry.npmjs.org/ skills add NWYLZW/larkmate --skill la
36
36
  - [x] 查询、标记和取消标记会话
37
37
  - [x] 标记已读或未读、设置免打扰
38
38
  - [x] 移入或移出已完成、会话收纳
39
+ - [x] 按未读、免打扰、@我、单聊、群组等分组查询
40
+ - [x] 配置侧边栏分组的显示、隐藏、顺序和展示规则
39
41
  - [x] 创建、重命名和删除标签,管理手动标签下的会话
40
42
  - [ ] 修改自动规则标签的会话成员
41
43
  - 消息
@@ -56,6 +58,16 @@ npx --registry=https://registry.npmjs.org/ skills add NWYLZW/larkmate --skill la
56
58
  - [x] 邀请成员和机器人
57
59
  - [x] 查询和设置机器人的移除限制
58
60
  - [ ] 移除成员或退出群聊
61
+ - 飞书任务
62
+ - [x] 查询任务中心与任务视图,按关键词搜索任务
63
+ - [x] 新建、编辑、完成、重开和删除任务
64
+ - [x] 配置任务时间、负责人、关注人、重复规则及其他字段
65
+ - 日历
66
+ - [x] 查询、搜索、创建和管理日历,订阅或取消订阅
67
+ - [x] 按时间范围查询日程和重复日程,查看日程详情
68
+ - [x] 创建、修改和删除日程,管理参与人、会议室及提醒
69
+ - [x] 分享日程,接受、拒绝或暂定日程邀请
70
+ - [ ] 导入谷歌日历
59
71
  - 录制妙记
60
72
  - [x] 查询当前用户可访问的录制妙记
61
73
  - [x] 导出文字记录,支持说话人和时间戳
package/bin/larkmate.js CHANGED
@@ -5,14 +5,19 @@ import { Gateway } from '../src/gateway.js';
5
5
  import { LarkMateClient } from '../src/client.js';
6
6
  import { SessionControls } from '../src/session-controls.js';
7
7
  import { Minutes, formatTranscript } from '../src/minutes.js';
8
- import { writeFile } from 'node:fs/promises';
8
+ import { writeFile, readFile } from 'node:fs/promises';
9
9
  import { FeishuError } from '../src/errors.js';
10
10
  import { exportMessages } from '../src/export-messages.js';
11
11
  import { brokerCall, brokerCommands, brokerProxy, createBrokerToken, loadBrokerToken, loadPolicy, startBroker } from '../src/agent-broker.js';
12
12
  import { callOsDelegate, osDelegateProxy } from '../src/os-delegate-client.js';
13
+ import { SidebarFilters } from '../src/sidebar-filters.js';
14
+ import { FeedGroups } from '../src/feed-groups.js';
15
+ import { Tasks } from '../src/tasks.js';
16
+ import { Calendar } from '../src/calendar.js';
13
17
 
18
+ const defaultTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone || 'UTC';
14
19
  const program = new Command();
15
- program.name('larkmate').description('Operate Feishu as the logged-in user.').version('0.1.10');
20
+ program.name('larkmate').description('Operate Feishu as the logged-in user.').version('0.1.12');
16
21
  program.option('--credentials-file <path>', 'read LarkMate credentials.json');
17
22
  program.option('--broker <path>', 'use a restricted local broker socket (or LARKMATE_BROKER)');
18
23
  program.option('--broker-token-file <path>', 'read the agent token (or LARKMATE_BROKER_TOKEN_FILE)');
@@ -62,6 +67,22 @@ async function minutes() {
62
67
  return new Minutes(new Gateway({ cookie: await loadCookie({ file: program.opts().credentialsFile }) }));
63
68
  }
64
69
 
70
+ async function sidebar() {
71
+ const remote = proxy('sidebar');
72
+ if (remote) return remote;
73
+ return new SidebarFilters(new Gateway({ cookie: await loadCookie({ file: program.opts().credentialsFile }) }));
74
+ }
75
+
76
+ async function calendar() { const remote = proxy('calendar'); return remote || new Calendar(new Gateway({ cookie: await loadCookie({ file: program.opts().credentialsFile }) })); }
77
+ async function feeds() { const remote = proxy('feeds'); return remote || new FeedGroups(new Gateway({ cookie: await loadCookie({ file: program.opts().credentialsFile }) })); }
78
+ async function tasks() { const remote = proxy('tasks'); return remote || new Tasks(new Gateway({ cookie: await loadCookie({ file: program.opts().credentialsFile }) })); }
79
+ async function readJson(path, fallback) {
80
+ if (!path) return fallback;
81
+ let data; try { data = path === '-' ? await new Promise((resolve, reject) => { let text = ''; process.stdin.setEncoding('utf8'); process.stdin.on('data', x => { text += x; if (text.length > 1048576) reject(new Error()); }); process.stdin.on('end', () => resolve(text)); process.stdin.on('error', reject); }) : await readFile(path, 'utf8');
82
+ if (Buffer.byteLength(data) > 1048576) throw new Error(); return JSON.parse(data);
83
+ } catch { throw new FeishuError('INVALID_ARGUMENT', 'Cannot read JSON input (maximum 1 MiB).'); }
84
+ }
85
+
65
86
  program.command('broker-commands').description('List operations supported by the agent broker and their scopes.')
66
87
  .action(() => output({ items: brokerCommands() }));
67
88
 
@@ -90,7 +111,7 @@ program.command('broker-serve').description('Start a restricted local agent brok
90
111
  let promise;
91
112
  const getServices = () => promise ||= (async () => {
92
113
  const gateway = new Gateway({ cookie: await loadCookie({ file: program.opts().credentialsFile }) });
93
- return { client: new LarkMateClient(gateway), controls: new SessionControls(gateway), minutes: new Minutes(gateway) };
114
+ return { client: new LarkMateClient(gateway), controls: new SessionControls(gateway), minutes: new Minutes(gateway), sidebar: new SidebarFilters(gateway), feeds: new FeedGroups(gateway), tasks: new Tasks(gateway), calendar: new Calendar(gateway) };
94
115
  })().catch(error => { promise = undefined; throw error; });
95
116
  const broker = await startBroker({ socketPath: o.socket, policy, token, getServices });
96
117
  output({ status: 'listening', socket: broker.socketPath });
@@ -136,8 +157,100 @@ program.command('chats').description('List a page of inbox chats without opening
136
157
  output(page);
137
158
  });
138
159
 
160
+ program.command('group-query').description('Find feed items by sidebar group across pages.')
161
+ .requiredOption('--group <name>', 'messages, unread, muted, at_me, p2p, group, topic_group, docs, threads or done')
162
+ .option('--query <text>', 'filter names') .option('--limit <number>', 'feed page size', '100').option('--pages <number>', 'maximum pages to scan', '20')
163
+ .option('--cursor <cursor>', 'continue from the previous result').option('--parent <id>', 'search inside a box')
164
+ .action(async o => output(await (await feeds()).query({ group: o.group, query: o.query, limit: Number(o.limit), pages: Number(o.pages), cursor: o.cursor, parent: o.parent })));
165
+
166
+ program.command('calendars').description('List managed and subscribed calendars.')
167
+ .option('--pages <number>', 'maximum pages', '20').action(async o => output(await (await calendar()).calendars({maxPages:Number(o.pages)})));
168
+ program.command('calendar-search').description('Search people, shared calendars and meeting rooms.').requiredOption('--query <text>').option('--offset <number>','search offset','0').option('--limit <number>','result count','20')
169
+ .action(async o => output(await (await calendar()).searchCalendars({query:o.query,offset:Number(o.offset),count:Number(o.limit)})));
170
+ program.command('calendar-events').description('Query calendar events overlapping a time range.')
171
+ .requiredOption('--start <time>','ISO date-time with timezone or Unix seconds').requiredOption('--end <time>','exclusive end')
172
+ .option('--calendar <id>','repeatable calendar ID',collect,[]).option('--all-calendars','include all listed calendars').option('--pages <number>','maximum pages per calendar','20')
173
+ .action(async o => output(await (await calendar()).events({start:o.start,end:o.end,calendarIds:o.calendar,allCalendars:!!o.allCalendars,maxPages:Number(o.pages)})));
174
+ program.command('calendar-rooms').description('Search available meeting rooms.')
175
+ .requiredOption('--start <time>').requiredOption('--end <time>').option('--query <text>','room name','').option('--limit <number>','page size','50').option('--cursor <number>','next page','0').option('--timezone <zone>','IANA timezone',defaultTimezone).option('--repeat <rrule>')
176
+ .action(async o => output(await (await calendar()).rooms({start:o.start,end:o.end,query:o.query,count:Number(o.limit),cursor:Number(o.cursor),timezone:o.timezone,rrule:o.repeat})));
177
+ program.command('event-get').description('Read event details and attendees.').requiredOption('--id <id>').action(async o => output(await (await calendar()).event({eventId:o.id})));
178
+ program.command('event-create').description('Create a calendar event; participants may be notified.')
179
+ .option('--title <text>').option('--start <time>').option('--end <time>').option('--calendar <id>').option('--timezone <zone>','IANA timezone',defaultTimezone)
180
+ .option('--description <text>').option('--location <text>').option('--all-day').option('--repeat <rrule>')
181
+ .option('--user <id>','repeatable attendee user ID',collect,[]).option('--group <id>','repeatable group ID',collect,[]).option('--room <id>','repeatable room calendar ID',collect,[])
182
+ .option('--reminder <minutes>','repeatable reminder before start',collect,[]).option('--no-notify','suppress event notifications').option('--json <path>','WebCalendarEvent JSON or - for stdin')
183
+ .action(async o => {let input=await readJson(o.json,{});if(o.location)input.locations=[{name:o.location}];if(o.reminder.length)input.reminders=o.reminder.map(x=>{let minutes=Number(x);if(!Number.isInteger(minutes)||minutes<0)throw new FeishuError('INVALID_ARGUMENT','Invalid reminder.');return {minutes,method:3}});
184
+ output(await (await calendar()).createEvent({input,title:o.title,start:o.start,end:o.end,calendarId:o.calendar,timezone:o.timezone,description:o.description,allDay:o.allDay,repeat:o.repeat,users:o.user,groups:o.group,rooms:o.room,notify:o.notify}));});
185
+ program.command('event-update').description('Update an event; participants may be notified.').requiredOption('--id <id>')
186
+ .option('--title <text>').option('--start <time>').option('--end <time>').option('--description <text>').option('--repeat <rrule>').option('--location <text>')
187
+ .option('--add-user <id>','repeatable user ID',collect,[]).option('--remove-user <id>','repeatable user ID',collect,[])
188
+ .option('--add-group <id>','repeatable group ID',collect,[]).option('--remove-group <id>','repeatable group ID',collect,[])
189
+ .option('--add-room <id>','repeatable room calendar ID',collect,[]).option('--remove-room <id>','repeatable room calendar ID',collect,[])
190
+ .option('--span <number>','0 normal, 1 occurrence, 2 future or 3 entire series','0').option('--instance-start <time>','occurrence start')
191
+ .option('--no-notify','suppress event notifications').option('--json <path>','event field patch JSON or - for stdin')
192
+ .action(async o => {let patch=await readJson(o.json,{});for(const [opt,key] of [['title','summary'],['start','startTime'],['end','endTime'],['description','description'],['repeat','rrule']])if(o[opt]!=null)patch[key]=o[opt];if(o.location!=null)patch.locations=[{name:o.location}];
193
+ output(await (await calendar()).updateEvent({eventId:o.id,patch,span:Number(o.span),instanceStart:o.instanceStart,notify:o.notify,addUsers:o.addUser,removeUsers:o.removeUser,addGroups:o.addGroup,removeGroups:o.removeGroup,addRooms:o.addRoom,removeRooms:o.removeRoom}));});
194
+ program.command('event-delete').description('Delete an event; participants may be notified.').requiredOption('--id <id>').option('--span <number>','0 normal, 1 occurrence, 2 future or 3 entire series','0').option('--instance-start <time>').option('--no-notify')
195
+ .action(async o => output(await (await calendar()).deleteEvent({eventId:o.id,span:Number(o.span),instanceStart:o.instanceStart,notify:o.notify})));
196
+ program.command('event-share').description('Share an event to one or more chats.').requiredOption('--id <id>').requiredOption('--chat <id>','repeatable numeric chat ID',collect,[])
197
+ .action(async o => output(await (await calendar()).share({eventId:o.id,chatIds:o.chat})));
198
+ program.command('event-reply').description('Respond to a calendar invitation.').requiredOption('--id <id>').requiredOption('--response <status>','accept, decline or tentative').option('--comment <text>').option('--quit-meeting')
199
+ .action(async o => output(await (await calendar()).reply({eventId:o.id,response:o.response,comment:o.comment,quitMeeting:!!o.quitMeeting})));
200
+ program.command('calendar-create').description('Create a calendar.').option('--name <text>').option('--description <text>').option('--timezone <zone>','IANA timezone',defaultTimezone).option('--json <path>','WebCalendar JSON or - for stdin')
201
+ .action(async o => output(await (await calendar()).createCalendar({input:await readJson(o.json,{}),name:o.name,description:o.description,timezone:o.timezone})));
202
+ program.command('calendar-update').description('Update calendar settings and members.').requiredOption('--id <id>').option('--name <text>').option('--description <text>').option('--json <path>','calendar field patch JSON or - for stdin')
203
+ .action(async o => {let patch=await readJson(o.json,{});if(o.name!=null)patch.summary=o.name;if(o.description!=null)patch.description=o.description;output(await (await calendar()).updateCalendar({calendarId:o.id,patch}));});
204
+ program.command('calendar-delete').description('Delete a non-primary calendar.').requiredOption('--id <id>').action(async o => output(await (await calendar()).deleteCalendar({calendarId:o.id})));
205
+ for(const [name,subscribe] of [['calendar-subscribe',true],['calendar-unsubscribe',false]])program.command(name).description('Change a calendar subscription.').requiredOption('--id <id>').action(async o=>output(await (await calendar()).subscription({calendarId:o.id,subscribe})));
206
+
207
+ program.command('task-center').description('List task containers, views and sections.').action(async () => output(await (await tasks()).center()));
208
+ program.command('tasks-list').description('List tasks from a task center view.')
209
+ .option('--scope <name>', 'mine, followed, all, created, assigned or completed', 'mine').option('--container <id>', 'task center container ID')
210
+ .option('--limit <number>', 'tasks per page', '50').option('--cursor <cursor>', 'continue from previous page')
211
+ .action(async o => output(await (await tasks()).list({ scope: o.scope, container: o.container, limit: Number(o.limit), cursor: o.cursor })));
212
+ program.command('task-search').description('Search accessible tasks.').requiredOption('--query <text>').option('--limit <number>', 'page size', '20').option('--cursor <cursor>')
213
+ .action(async o => output(await (await tasks()).search({ query: o.query, limit: Number(o.limit), cursor: o.cursor })));
214
+ program.command('task-get').description('Read a task.').requiredOption('--id <id>').action(async o => output(await (await tasks()).get({ taskId: o.id })));
215
+ program.command('task-create').description('Create a task.').option('--title <text>').option('--description <text>').option('--start <time>', 'milliseconds or ISO date')
216
+ .option('--due <time>', 'milliseconds or ISO date').option('--all-day', 'all-day task').option('--assignee <id>', 'repeatable user ID', collect, [])
217
+ .option('--follower <id>', 'repeatable user ID', collect, []).option('--list <id>', 'repeatable task list ID', collect, [])
218
+ .option('--repeat <rrule>', 'recurrence rule').option('--points <value>').option('--json <path>', 'full InputTask JSON, or - for stdin')
219
+ .action(async o => output(await (await tasks()).create({ input: await readJson(o.json, {}), title: o.title, description: o.description, start: o.start, due: o.due, allDay: o.allDay, assignees: o.assignee, followers: o.follower, lists: o.list, repeat: o.repeat, points: o.points })));
220
+ program.command('task-update').description('Update task fields and members.').requiredOption('--id <id>').option('--title <text>').option('--description <text>')
221
+ .option('--start <time>', 'milliseconds or ISO date; 0 clears').option('--due <time>', 'milliseconds or ISO date; 0 clears')
222
+ .option('--all-day <bool>', 'true or false').option('--repeat <rrule>').option('--points <value>').option('--milestone <bool>', 'true or false')
223
+ .option('--add-assignee <id>', 'repeatable user ID', collect, []).option('--remove-assignee <id>', 'repeatable user ID', collect, [])
224
+ .option('--add-follower <id>', 'repeatable user ID', collect, []).option('--remove-follower <id>', 'repeatable user ID', collect, [])
225
+ .option('--commits-json <path>', 'advanced commit array JSON, or - for stdin')
226
+ .action(async o => { const patch = {}; for (const key of ['title','description','start','due','repeat','points']) if (o[key] != null) patch[key] = o[key];
227
+ for (const key of ['allDay','milestone']) if (o[key] != null) { if (!['true','false'].includes(o[key])) throw new FeishuError('INVALID_ARGUMENT', key + ' must be true or false.'); patch[key] = o[key] === 'true'; }
228
+ for (const key of ['addAssignee','removeAssignee','addFollower','removeFollower']) if (o[key].length) patch[key + 's'] = o[key];
229
+ output(await (await tasks()).update({ taskId: o.id, patch, commits: await readJson(o.commitsJson, []) })); });
230
+ for (const [command, completed] of [['task-complete', true], ['task-reopen', false]]) program.command(command).description('Change task completion status.').requiredOption('--id <id>')
231
+ .option('--assignee <id>', 'repeatable assignee ID', collect, []).action(async o => output(await (await tasks()).complete({ taskId: o.id, completed, assignees: o.assignee })));
232
+ program.command('task-delete').description('Delete a task.').requiredOption('--id <id>').action(async o => output(await (await tasks()).delete({ taskId: o.id })));
233
+
139
234
  program.command('pinned').description('List pinned conversations.').action(async () => output(await (await controls()).pinned()));
140
235
  program.command('marked').description('List conversations marked with a flag.').action(async () => output(await (await controls()).marked()));
236
+ program.command('sidebar-list').description('List sidebar groups and display settings.').action(async () => output(await (await sidebar()).list()));
237
+ program.command('sidebar-set').description('Change sidebar group visibility, order or display settings.')
238
+ .requiredOption('--filter <name-or-id>', 'filter name from sidebar-list or numeric ID')
239
+ .option('--visibility <mode>', 'show or hide')
240
+ .option('--position <number>', 'one-based position among visible groups')
241
+ .option('--display <mode>', 'always, new or never in the message group')
242
+ .option('--message-type <type>', 'all, at_me, at_all or star_contacts; repeatable', collect, [])
243
+ .option('--at-all <mode>', 'include @all in the @me group: true or false')
244
+ .option('--show-filter <bool>', 'show the group sidebar: true or false')
245
+ .option('--show-mute-filter <bool>', 'show muted filter: true or false')
246
+ .option('--flag-sorting-rule <number>', 'native numeric flag sorting rule')
247
+ .option('--commonly-used <filter>', 'repeatable common filter name or ID', collect, [])
248
+ .action(async o => {
249
+ if (o.atAll != null && !['true', 'false'].includes(o.atAll)) throw new FeishuError('INVALID_ARGUMENT', 'at-all must be true or false.');
250
+ for (const k of ['showFilter', 'showMuteFilter']) if (o[k] != null && !['true', 'false'].includes(o[k])) throw new FeishuError('INVALID_ARGUMENT', k + ' must be true or false.');
251
+ output(await (await sidebar()).set({ filter: o.filter, visibility: o.visibility, ...(o.position != null ? { position: Number(o.position) } : {}),
252
+ display: o.display, ...(o.messageType.length ? { messageTypes: o.messageType } : {}), ...(o.atAll != null ? { atAll: o.atAll === 'true' } : {}), ...(o.showFilter != null ? { showFilter: o.showFilter === 'true' } : {}), ...(o.showMuteFilter != null ? { showMuteFilter: o.showMuteFilter === 'true' } : {}), ...(o.flagSortingRule != null ? { flagSortingRule: Number(o.flagSortingRule) } : {}), ...(o.commonlyUsed.length ? { commonlyUsedFilters: o.commonlyUsed } : {}) }));
253
+ });
141
254
  program.command('labels').description('List personal conversation labels.').action(async () => output(await (await controls()).labels()));
142
255
  program.command('label-chats').description('List conversations in a label.')
143
256
  .requiredOption('--label <id>', 'numeric label ID').action(async o => output(await (await controls()).labelChats(o.label)));
@@ -8,6 +8,10 @@ import { LarkMateClient } from '../src/client.js';
8
8
  import { SessionControls } from '../src/session-controls.js';
9
9
  import { Minutes } from '../src/minutes.js';
10
10
  import { FeishuError } from '../src/errors.js';
11
+ import { SidebarFilters } from '../src/sidebar-filters.js';
12
+ import { FeedGroups } from '../src/feed-groups.js';
13
+ import { Tasks } from '../src/tasks.js';
14
+ import { Calendar } from '../src/calendar.js';
11
15
 
12
16
  try {
13
17
  const caller = process.env.SUDO_UID, owner = process.getuid?.();
@@ -18,7 +22,7 @@ try {
18
22
  let services;
19
23
  const getServices = () => services ||= (async () => {
20
24
  const gateway = new Gateway({ cookie: await loadCookie({ file: config.credentialsFile }) });
21
- return { client: new LarkMateClient(gateway), controls: new SessionControls(gateway), minutes: new Minutes(gateway) };
25
+ return { client: new LarkMateClient(gateway), controls: new SessionControls(gateway), minutes: new Minutes(gateway), sidebar: new SidebarFilters(gateway), feeds: new FeedGroups(gateway), tasks: new Tasks(gateway), calendar: new Calendar(gateway) };
22
26
  })();
23
27
  await serveOne({ input: process.stdin, output: process.stdout, uid: caller, profile, getServices });
24
28
  } catch (error) {
@@ -51,7 +51,7 @@ LarkMate 可以由持有 Cookie 的账户启动本地代理,再让 Agent 使
51
51
 
52
52
  `minutes-export`、`minutes-access-info` 和 `minutes-request-access` 按 `minuteTokens` 限制;申请权限会向妙记所有者提交请求。`minutes-list` 除须在 `allow` 中授权外,还必须同时开启 `allowGlobal` 和 `allowAllMinutes`。
53
53
 
54
- `status` 以及用于搜索用户、机器人、群聊的 `search` 需要开启 `allowGlobal`。跨会话搜索、会话及收藏列表、标签管理,以及仅凭消息 ID 操作的链接、编辑、撤回、转发、收藏和表情命令,除须在 `allow` 中各自授权外,还必须同时开启 `allowGlobal` 和 `allowAllChats`——这是因为代理无法仅凭消息 ID 判断其是否属于受限会话。群创建、邀请成员和机器人保护设置同样需要同时开启这两个开关。开启这些权限会扩大 Agent 可访问的信息范围或可执行的操作范围,请按需选择。
54
+ `status`、用于搜索用户、机器人、群聊的 `search`、`sidebar-list`、任务命令和日历命令需要开启 `allowGlobal`。日历和日程命令按命令单独授权,目前不能按日历或单个日程限定范围;创建或修改日历可能改变公开范围和共享成员,创建或修改日程可能通知参与人。任务命令分别授权,当前授权范围覆盖该用户可访问的任务,不能按单个任务限制。`group-query`、`sidebar-set` 和 `event-share` 同时需要 `allowGlobal` 与 `allowAllChats`。跨会话搜索、会话及收藏列表、标签管理,以及仅凭消息 ID 操作的链接、编辑、撤回、转发、收藏和表情命令,除须在 `allow` 中各自授权外,还必须同时开启 `allowGlobal` 和 `allowAllChats`——这是因为代理无法仅凭消息 ID 判断其是否属于受限会话。群创建、邀请成员和机器人保护设置同样需要同时开启这两个开关。开启这些权限会扩大 Agent 可访问的信息范围或可执行的操作范围,请按需选择。
55
55
 
56
56
  `send-file`、`send-image` 与 `download-file` 均可单独加入 `allow` 列表,并受 `chatIds` 约束。发送时,由 Agent 进程读取本地文件并传输内容;下载时,由 Agent 进程创建输出文件。代理不接受 Agent 指定的代理端本地路径,而是在私有临时目录中处理中转文件,并在正常结束或失败时将其删除。若进程异常终止,可能会遗留临时文件,因此部署方应保护并按需清理代理账户的临时目录。
57
57
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "larkmate",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
4
4
  "description": "A small, user-identity Feishu CLI with a modular gateway client",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -34,6 +34,7 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "commander": "^13.1.0",
37
- "protobufjs": "^8.6.0"
37
+ "protobufjs": "^8.6.0",
38
+ "rrule": "^2.8.1"
38
39
  }
39
40
  }
@@ -0,0 +1 @@
1
+ {"nested":{"calendar_web":{"nested":{"ListCalendarsRequest":{"fields":{"syncToken":{"type":"string","id":1,"options":{"default":""}},"pageSize":{"type":"int32","id":2,"options":{"default":20}},"filters":{"type":"CalendarFilter","id":3}}},"ListCalendarsResponse":{"fields":{"calendars":{"rule":"repeated","type":"calendar_entities.WebCalendar","id":1},"nextSyncToken":{"type":"string","id":2,"options":{"default":""}},"hasMore":{"type":"bool","id":3,"options":{"default":false}}}},"ListCalendarEventsRequest":{"fields":{"params":{"rule":"repeated","type":"ListCalendarEventsParam","id":1}},"nested":{"ListCalendarEventsParam":{"fields":{"calendarId":{"type":"string","id":1,"options":{"default":""}},"timeMin":{"type":"int64","id":2,"options":{"default":0}},"timeMax":{"type":"int64","id":3,"options":{"default":0}},"pageToken":{"type":"string","id":4,"options":{"default":""}},"pageSize":{"type":"int32","id":5,"options":{"default":200}},"filters":{"type":"CalendarEventFilter","id":6}}}}},"ListCalendarEventsResponse":{"fields":{"results":{"keyType":"string","type":"ListCalendarEventsResult","id":1}},"nested":{"ListCalendarEventsResult":{"fields":{"calendarEvents":{"rule":"repeated","type":"calendar_entities.WebCalendarEvent","id":1},"nextPageToken":{"type":"string","id":2,"options":{"default":""}},"finalSyncToken":{"type":"string","id":3,"options":{"default":""}}}}}},"PullCalendarEventsRequest":{"fields":{"params":{"rule":"repeated","type":"PullCalendarEventsParam","id":1}},"nested":{"PullCalendarEventsParam":{"fields":{"calendarId":{"type":"string","id":1,"options":{"default":""}},"syncToken":{"type":"string","id":2,"options":{"default":""}},"pageSize":{"type":"int32","id":3,"options":{"default":200}},"filters":{"type":"CalendarEventFilter","id":4}}}}},"PullCalendarEventsResponse":{"fields":{"results":{"keyType":"string","type":"PullCalendarEventsResult","id":1}},"nested":{"PullCalendarEventsResult":{"fields":{"calendarEvents":{"rule":"repeated","type":"calendar_entities.WebCalendarEvent","id":1},"nextSyncToken":{"type":"string","id":2,"options":{"default":""}},"hasMore":{"type":"bool","id":3,"options":{"default":false}}}}}},"BatchSubscribeCalendarsRequest":{"fields":{"calendarIds":{"rule":"repeated","type":"string","id":1},"visibilityMask":{"rule":"repeated","type":"entities.Calendar.VisibilityProperty","id":2,"options":{"packed":false}},"subscriptionMask":{"rule":"repeated","type":"entities.Calendar.SubscriptionType","id":3,"options":{"packed":false}}}},"BatchSubscribeCalendarsResponse":{"fields":{"calendars":{"keyType":"string","type":"calendar_entities.WebCalendar","id":1},"normalViewFailedCalendarIdErrCodeMap":{"keyType":"string","type":"int32","id":2}}},"BatchUnsubscribeCalendarsRequest":{"fields":{"calendarIds":{"rule":"repeated","type":"string","id":1},"subscriptionMask":{"rule":"repeated","type":"entities.Calendar.SubscriptionType","id":2,"options":{"packed":false}}}},"BatchUnsubscribeCalendarsResponse":{"fields":{"failedCalendarIds":{"rule":"repeated","type":"string","id":1},"code":{"type":"int64","id":2},"alertTitle":{"type":"string","id":3},"alertContent":{"type":"string","id":4}}},"CreateCalendarRequest":{"fields":{"calendar":{"type":"calendar_entities.WebCalendar","id":1},"visibilityMask":{"rule":"repeated","type":"entities.Calendar.VisibilityProperty","id":2,"options":{"packed":false}}}},"CreateCalendarResponse":{"fields":{}},"DeleteCalendarRequest":{"fields":{"calendarId":{"type":"string","id":1}}},"DeleteCalendarResponse":{"fields":{}},"UpdateCalendarRequest":{"fields":{"calendar":{"type":"calendar_entities.WebCalendar","id":1},"visibilityMask":{"rule":"repeated","type":"entities.Calendar.VisibilityProperty","id":2,"options":{"packed":false}}}},"UpdateCalendarResponse":{"fields":{}},"WebMGetCalendarsWithIDsRequest":{"fields":{"calendarIds":{"rule":"repeated","type":"string","id":1}}},"WebMGetCalendarsWithIDsResponse":{"fields":{"calendars":{"keyType":"string","type":"calendar_entities.WebCalendar","id":1}}},"CreateEventRequest":{"fields":{"event":{"type":"calendar_entities.WebCalendarEvent","id":1},"notificationType":{"type":"entities.CalendarEvent.NotificationType","id":2,"options":{"default":"DEFAULT_NOTIFICATION_TYPE"}}}},"CreateEventResponse":{"fields":{}},"UpdateEventRequest":{"fields":{"event":{"type":"calendar_entities.WebCalendarEvent","id":1},"span":{"type":"SaveSpan","id":2},"instanceStartTime":{"type":"int64","id":3},"notificationType":{"type":"entities.CalendarEvent.NotificationType","id":4,"options":{"default":"DEFAULT_NOTIFICATION_TYPE"}}}},"UpdateEventResponse":{"fields":{}},"DeleteEventRequest":{"fields":{"calendarId":{"type":"string","id":1},"key":{"type":"string","id":2},"originalTime":{"type":"int64","id":3},"span":{"type":"SaveSpan","id":4},"instanceStartTime":{"type":"int64","id":5},"notificationType":{"type":"entities.CalendarEvent.NotificationType","id":6,"options":{"default":"DEFAULT_NOTIFICATION_TYPE"}}}},"DeleteEventResponse":{"fields":{}},"MGetEventsWithIdsRequest":{"fields":{"ids":{"rule":"repeated","type":"string","id":1},"refidCalendarMap":{"keyType":"string","type":"string","id":2}}},"MGetEventsWithIdsResponse":{"fields":{"events":{"keyType":"string","type":"calendar_entities.WebCalendarEvent","id":1},"isEventAttendeeControlApprovalApproved":{"keyType":"string","type":"bool","id":2}}},"GetGroupAttendeesByGroupIdsRequest":{"fields":{"groupIds":{"rule":"repeated","type":"string","id":1}}},"GetGroupAttendeesByGroupIdsResponse":{"fields":{"groupAttendees":{"keyType":"string","type":"calendar_entities.WebCalendarEventAttendee","id":1}}},"GetUserAttendeesByUserIdsRequest":{"fields":{"userIds":{"rule":"repeated","type":"string","id":1}}},"GetUserAttendeesByUserIdsResponse":{"fields":{"userAttendees":{"keyType":"string","type":"calendar_entities.WebCalendarEventAttendee","id":1}}},"GetAttendeesByCalendarIdsRequest":{"fields":{"calendarIds":{"rule":"repeated","type":"string","id":1}}},"GetAttendeesByCalendarIdsResponse":{"fields":{"attendees":{"keyType":"string","type":"calendar_entities.WebCalendarEventAttendee","id":1}}},"ShareCalendarEventRequest":{"fields":{"chatIds":{"rule":"repeated","type":"int64","id":1,"options":{"packed":false}},"calendarId":{"type":"string","id":2},"key":{"type":"string","id":3},"originalTime":{"type":"int64","id":4}}},"ShareCalendarEventResponse":{"fields":{"sharedFailedChats":{"rule":"repeated","type":"int64","id":1,"options":{"packed":false}}}},"CalendarFilter":{"fields":{"maxMembersCountPerCalendar":{"type":"int32","id":1,"options":{"default":5}},"minAccessRole":{"type":"entities.Calendar.AccessRole","id":2},"needsDescription":{"type":"bool","id":3,"options":{"default":false}}}},"SaveSpan":{"values":{"NONE_SPAN":0,"THIS_EVENT":1,"FUTURE_EVENTS":2,"ALL_EVENTS":3}},"CalendarEventFilter":{"fields":{"maxAttendeesCountPerEvent":{"type":"int32","id":1,"options":{"default":0}},"needsReminders":{"type":"bool","id":2,"options":{"default":false}},"needsDescription":{"type":"bool","id":3,"options":{"default":false}},"maxResourcesCountPerEvent":{"type":"int32","id":4,"options":{"default":5}},"sortBy":{"type":"SortMethod","id":5,"options":{"default":"NO_SORT"}}},"nested":{"SortMethod":{"values":{"NO_SORT":1,"BY_START_TIME":2}}}}}},"calendar_events":{"nested":{"ReplyCalendarEventInvitationRequest":{"fields":{"calendarEventKey":{"rule":"required","type":"entities.CalendarEventKey","id":1},"replyType":{"type":"ReplyType","id":2,"options":{"default":"ACCEPT"}},"quitMeeting":{"type":"bool","id":3,"options":{"default":false}},"rsvpCommentInfo":{"type":"entities.RSVPCommentInfo","id":4},"needsBriefEvents":{"type":"bool","id":5,"options":{"default":false}},"useAttendeePageToken":{"type":"bool","id":6,"options":{"default":false}}},"nested":{"ReplyType":{"values":{"ACCEPT":1,"DECLINE":2,"TENTATIVE":3,"DELETE":4,"NEEDS_ACTION":5}}}},"ReplyCalendarEventInvitationResponse":{"fields":{"calendarEvent":{"type":"entities.CalendarEvent","id":1},"rsvpCommentFailed":{"rule":"repeated","type":"RSVPCommentFailed","id":2}},"nested":{"RSVPCommentFailed":{"fields":{"originalTime":{"type":"int64","id":1},"errorCode":{"type":"ErrorCode","id":2}},"nested":{"ErrorCode":{"values":{"InternalErrorCode":500,"MessageEncryptFailCode":311100}}}}}},"SearchMeetingRoomsRequest":{"fields":{"startTime":{"type":"int64","id":1,"options":{"default":0}},"endTime":{"type":"int64","id":2,"options":{"default":0}},"keyword":{"type":"string","id":3,"options":{"default":""}},"count":{"type":"int32","id":4,"options":{"default":50}},"rrule":{"type":"string","id":5,"options":{"default":""}},"needDisabledResource":{"type":"bool","id":6,"options":{"default":false}},"startTimezone":{"type":"string","id":7,"options":{"default":"UTC"}},"meetingRoomFilter":{"type":"entities.MeetingRoomFilter","id":8},"cursor":{"type":"int32","id":9,"options":{"default":0}},"type":{"type":"Type","id":10,"options":{"default":"DEFAULT"}}},"nested":{"Type":{"values":{"UNKNOWN":0,"DEFAULT":1,"BY_PAGE":2}}}},"SearchMeetingRoomsResponse":{"fields":{"buildings":{"rule":"repeated","type":"entities.CalendarBuilding","id":1},"hasMore":{"type":"bool","id":2,"options":{"default":false}},"cursor":{"type":"int32","id":3}}}}},"calendars":{"nested":{"MultiCalendarSearchRequest":{"fields":{"query":{"rule":"required","type":"string","id":1},"offset":{"type":"int32","id":2,"options":{"default":0}},"count":{"type":"int32","id":3,"options":{"default":10}},"needSearchMeetingRoom":{"type":"bool","id":4,"options":{"default":true}},"needSearchSharedCalendar":{"type":"bool","id":5,"options":{"default":true}},"needSearchPrimaryCalendar":{"type":"bool","id":6,"options":{"default":true}},"needSearchExternalPrimaryCalendar":{"type":"bool","id":7,"options":{"default":false}}}},"MultiCalendarSearchResponse":{"fields":{"contents":{"rule":"repeated","type":"entities.MultiCalendarSearchContent","id":1},"calendarChatterMap":{"keyType":"string","type":"string","id":2},"chatterMap":{"keyType":"string","type":"entities.Chatter","id":3},"calendarBriefMap":{"keyType":"string","type":"entities.CalendarBriefInfo","id":4}}}}},"calendar_entities":{"nested":{"WebCalendar":{"oneofs":{"extra":{"oneof":["primaryCalendarInfo","otherCalendarInfo","resourceCalendarInfo","googleCalendarInfo","exchangeCalendarInfo"]}},"fields":{"id":{"type":"string","id":1,"options":{"default":"0"}},"creatorUserId":{"type":"string","id":2,"options":{"default":"0"}},"defaultTimezone":{"type":"string","id":3,"options":{"default":""}},"defaultAccessRole":{"type":"entities.Calendar.AccessRole","id":4,"options":{"default":"FREE_BUSY_READER"}},"type":{"type":"entities.Calendar.Type","id":5,"options":{"default":"OTHER"}},"selfAccessRole":{"type":"entities.Calendar.AccessRole","id":6,"options":{"default":"FREE_BUSY_READER"}},"foregroundColor":{"type":"int32","id":7,"options":{"default":0}},"backgroundColor":{"type":"int32","id":8,"options":{"default":0}},"isPrimary":{"type":"bool","id":10,"options":{"default":false}},"isDeleted":{"type":"bool","id":11,"options":{"default":false}},"isPublic":{"type":"bool","id":12,"options":{"default":false}},"isAllStaff":{"type":"bool","id":13,"options":{"default":false}},"visibilityProperty":{"type":"int32","id":14,"options":{"default":0}},"summary":{"type":"string","id":15,"options":{"default":""}},"note":{"type":"string","id":16,"options":{"default":""}},"description":{"type":"string","id":17,"options":{"default":""}},"members":{"rule":"repeated","type":"WebCalendarMember","id":18},"createTime":{"type":"int64","id":19,"options":{"default":0}},"updateTime":{"type":"int64","id":20,"options":{"default":0}},"calendarSchema":{"type":"bytes","id":22},"schemaExtraData":{"type":"bytes","id":23},"calendarEventSchemaV2":{"type":"bytes","id":24},"primaryCalendarInfo":{"type":"PrimaryCalendarExtra","id":101},"otherCalendarInfo":{"type":"OtherCalendarExtra","id":102},"resourceCalendarInfo":{"type":"ResourceCalendarExtra","id":103},"googleCalendarInfo":{"type":"GoogleCalendarExtra","id":104},"exchangeCalendarInfo":{"type":"ExchangeCalendarExtra","id":105}}},"WebCalendarEvent":{"fields":{"id":{"type":"string","id":1,"options":{"default":"0"}},"key":{"type":"string","id":2,"options":{"default":""}},"originalTime":{"type":"int64","id":3,"options":{"default":0}},"calendarId":{"type":"string","id":4,"options":{"default":"0"}},"organizerCalendarId":{"type":"string","id":5,"options":{"default":"0"}},"creatorCalendarId":{"type":"string","id":6,"options":{"default":"0"}},"successorCalendarId":{"type":"string","id":7,"options":{"default":"0"}},"originalEventKey":{"type":"string","id":8,"options":{"default":""}},"originalIsAllDay":{"type":"bool","id":9,"options":{"default":false}},"isFree":{"type":"bool","id":10,"options":{"default":false}},"isAllDay":{"type":"bool","id":11,"options":{"default":false}},"isCrossTenant":{"type":"bool","id":12,"options":{"default":false}},"isDeleted":{"type":"bool","id":13,"options":{"default":false}},"lastDate":{"type":"int64","id":14,"options":{"default":0}},"source":{"type":"entities.CalendarEvent.Source","id":15,"options":{"default":"UNKNOWN"}},"color":{"type":"int32","id":16,"options":{"default":-1}},"visibility":{"type":"entities.CalendarEvent.Visibility","id":17,"options":{"default":"DEFAULT"}},"version":{"type":"int64","id":18,"options":{"default":0}},"status":{"type":"entities.CalendarEvent.Status","id":19,"options":{"default":"TENTATIVE"}},"rrule":{"type":"string","id":20,"options":{"default":""}},"guestCanInvite":{"type":"bool","id":21,"options":{"default":true}},"guestCanSeeOtherGuests":{"type":"bool","id":22,"options":{"default":true}},"guestCanModify":{"type":"bool","id":23,"options":{"default":false}},"selfAttendeeStatus":{"type":"entities.CalendarEvent.SelfAttendeeStatus","id":24,"options":{"default":"ATTENDEE_STATUS_NEEDS_ACTION"}},"startTime":{"type":"int64","id":25,"options":{"default":0}},"startTimezone":{"type":"string","id":26,"options":{"default":""}},"endTime":{"type":"int64","id":27,"options":{"default":0}},"endTimezone":{"type":"string","id":28,"options":{"default":""}},"summary":{"type":"string","id":29,"options":{"default":""}},"description":{"type":"string","id":30,"options":{"default":""}},"docsDescription":{"type":"string","id":31,"options":{"default":""}},"locations":{"rule":"repeated","type":"entities.CalendarEventLocation","id":32},"attendees":{"rule":"repeated","type":"WebCalendarEventAttendee","id":33},"reminders":{"rule":"repeated","type":"entities.Reminder","id":34},"createTime":{"type":"int64","id":35,"options":{"default":0}},"updateTime":{"type":"int64","id":36,"options":{"default":0}},"organizer":{"type":"WebCalendarEventAttendee","id":37},"creator":{"type":"WebCalendarEventAttendee","id":38},"successor":{"type":"WebCalendarEventAttendee","id":39},"type":{"type":"entities.CalendarEvent.Type","id":40},"attachments":{"rule":"repeated","type":"entities.CalendarEventAttachment","id":41},"attendeeInfo":{"type":"WebCalendarEventAttendeeInfo","id":42},"schema":{"type":"entities.CalendarSchemaCollection","id":43},"attendeeSource":{"type":"AttendeeSource","id":44,"options":{"default":"LARK"}},"meetingMinuteUrl":{"type":"string","id":45,"options":{"default":""}},"inviteOperatorId":{"type":"string","id":46,"options":{"default":""}},"videoMeeting":{"type":"entities.Vchat","id":47},"schemaV2":{"type":"bytes","id":48},"videoConfig":{"type":"entities.EventVChatConfig","id":49},"encryptionInfo":{"type":"entities.EventEncryptionInfo","id":50},"isWebinar":{"type":"bool","id":51}},"nested":{"AttendeeSource":{"values":{"LARK":1,"MAIL":2,"EXCHANGE_SYNC":3}}}},"WebCalendarEventAttendee":{"oneofs":{"dependency":{"oneof":["user","group","resource","thirdPartyUser"]}},"fields":{"id":{"type":"string","id":1,"options":{"default":""}},"key":{"type":"string","id":2,"options":{"default":""}},"originalTime":{"type":"int64","id":3,"options":{"default":0}},"displayName":{"type":"string","id":4,"options":{"default":""}},"attendeeCalendarId":{"type":"string","id":5,"options":{"default":"0"}},"isOrganizer":{"type":"bool","id":6,"options":{"default":false}},"isOptional":{"type":"bool","id":7,"options":{"default":false}},"status":{"type":"entities.CalendarEventAttendee.Status","id":8,"options":{"default":"NEEDS_ACTION"}},"inviterCalendarId":{"type":"string","id":9,"options":{"default":""}},"avatarKey":{"type":"string","id":10,"options":{"default":""}},"category":{"type":"Category","id":11,"options":{"default":"USER"}},"fsUnit":{"type":"string","id":12,"options":{"default":""}},"attendeeSchema":{"type":"bytes","id":13},"schemaExtraData":{"type":"bytes","id":14},"user":{"type":"User","id":100},"group":{"type":"Group","id":101},"resource":{"type":"Resource","id":102},"thirdPartyUser":{"type":"ThirdPartyUser","id":103}},"nested":{"Category":{"values":{"USER":1,"GROUP":2,"RESOURCE":3,"THIRD_PARTY_USER":4}},"User":{"fields":{"userId":{"type":"string","id":1,"options":{"default":"0"}},"tenantId":{"type":"string","id":2,"options":{"default":"0"}},"tags":{"rule":"repeated","type":"entities.CalendarEventAttendeeTag","id":3}}},"Group":{"fields":{"groupId":{"type":"string","id":1,"options":{"default":"0"}},"members":{"rule":"repeated","type":"WebCalendarEventAttendee","id":2},"tenantId":{"type":"string","id":3,"options":{"default":"0"}},"isCrossTenant":{"type":"bool","id":4,"options":{"default":false}},"openSecurity":{"type":"bool","id":5,"options":{"default":false}},"showMemberLimit":{"type":"int32","id":6,"options":{"default":0}},"memberCount":{"type":"int32","id":7,"options":{"default":0}},"hasRemovedMembers":{"type":"bool","id":8,"options":{"default":false}},"isSelfInGroup":{"type":"bool","id":9,"options":{"default":false}}}},"Resource":{"fields":{"tenantId":{"type":"string","id":1,"options":{"default":""}},"isDisabled":{"type":"bool","id":2,"options":{"default":false}}}},"ThirdPartyUser":{"fields":{"email":{"type":"string","id":1}}}}},"WebCalendarMember":{"oneofs":{"extra":{"oneof":["individual","group"]}},"fields":{"type":{"type":"Type","id":1,"options":{"default":"INDIVIDUAL"}},"accessRole":{"type":"entities.Calendar.AccessRole","id":2,"options":{"default":"FREE_BUSY_READER"}},"isDeleted":{"type":"bool","id":3,"options":{"default":false}},"name":{"type":"string","id":4,"options":{"default":""}},"avatarKey":{"type":"string","id":5,"options":{"default":""}},"fsUnit":{"type":"string","id":6,"options":{"default":""}},"individual":{"type":"Individual","id":101},"group":{"type":"Group","id":102}},"nested":{"Type":{"values":{"INDIVIDUAL":1,"GROUP":2}},"Individual":{"fields":{"userId":{"type":"string","id":1,"options":{"default":"0"}}}},"Group":{"fields":{"chatId":{"type":"string","id":1,"options":{"default":"0"}}}}}},"PrimaryCalendarExtra":{"fields":{"workHourSetting":{"type":"entities.WorkHourSetting","id":1},"timezone":{"type":"string","id":2,"options":{"default":""}},"owner":{"type":"WebCalendarMember","id":3}}},"OtherCalendarExtra":{"fields":{}},"ResourceCalendarExtra":{"fields":{"resourceInfo":{"type":"entities.CalendarResourceInfo","id":1}}},"GoogleCalendarExtra":{"fields":{"externalAccount":{"type":"entities.ExternalAccount","id":1}}},"ExchangeCalendarExtra":{"fields":{"externalAccount":{"type":"entities.ExternalAccount","id":1}}},"WebCalendarEventAttendeeInfo":{"fields":{"totalCount":{"type":"int32","id":1,"options":{"default":0}},"acceptCount":{"type":"int32","id":2,"options":{"default":0}},"declineCount":{"type":"int32","id":3,"options":{"default":0}},"tentativeCount":{"type":"int32","id":4,"options":{"default":0}},"needActionCount":{"type":"int32","id":5,"options":{"default":0}}}}}},"entities":{"nested":{"Calendar":{"nested":{"VisibilityProperty":{"values":{"NORMAL_VIEW":1,"MEETING_VIEW":2,"TODAY_FEED_VIEW":4,"MOBILE_NORMAL_VIEW":8,"MOBILE_MEETING_VIEW":16,"WEB_NORMAL_VIEW":32,"WEB_MEETING_VIEW":64}},"SubscriptionType":{"values":{"SUB_NORMAL_VIEW":1,"SUB_MEETING_VIEW":2}},"AccessRole":{"values":{"UNKNOWN":0,"FREE_BUSY_READER":1,"READER":2,"WRITER":3,"OWNER":4}},"Type":{"values":{"UNKNOWN_TYPE":0,"PRIMARY":1,"OTHER":2,"GOOGLE":3,"RESOURCES":4,"GOOGLE_RESOURCES":5,"DISMISSED":6,"EMAIL":7,"EXCHANGE":8,"ACTIVITY":9,"PHONE":10}},"Status":{"values":{"DEFAULT":1,"ACCEPTED":2,"DECLINED":3,"INVITED":4,"REMOVED":5}},"CalendarShareOptions":{"fields":{"defaultShareOption":{"type":"Calendar.ShareOption","id":1},"crossDefaultShareOption":{"type":"Calendar.ShareOption","id":2},"crossTopShareOption":{"type":"Calendar.ShareOption","id":3}}},"CalendarShareInfo":{"fields":{"shareUrl":{"type":"string","id":1},"subscriberNum":{"type":"int32","id":2}}},"OfficialType":{"values":{"NOT_OFFICIAL":0,"BYTEDANCE":1}},"ShareOption":{"values":{"UNKNOWN_SHARE_OPT":0,"SHARE_OPT_PRIVATE":5,"SHARE_OPT_FREE_BUSY_READER":10,"SHARE_OPT_READER":15,"SHARE_OPT_WRITER":20,"SHARE_OPT_OWNER":25}}},"fields":{"id":{"type":"string","id":1,"options":{"default":"0"}},"summary":{"type":"string","id":2,"options":{"default":""}},"description":{"type":"string","id":3,"options":{"default":""}},"defaultTimezone":{"type":"string","id":4},"creatorUserId":{"type":"string","id":5,"options":{"default":"0"}},"createTime":{"type":"int64","id":6,"options":{"default":0}},"updateTime":{"type":"int64","id":7,"options":{"default":0}},"defaultRole":{"type":"AccessRole","id":8,"options":{"default":"FREE_BUSY_READER"}},"type":{"type":"Type","id":9,"options":{"default":"OTHER"}},"accessRole":{"type":"AccessRole","id":10,"options":{"default":"FREE_BUSY_READER"}},"status":{"type":"Status","id":11},"foregroundColor":{"type":"int32","id":12,"options":{"default":0}},"backgroundColor":{"type":"int32","id":13,"options":{"default":0}},"weight":{"type":"int32","id":14,"options":{"default":0}},"isDefault":{"type":"bool","id":15,"options":{"default":false}},"isVisible":{"type":"bool","id":16,"options":{"default":true}},"isPrimary":{"type":"bool","id":17,"options":{"default":false}},"isDeleted":{"type":"bool","id":18,"options":{"default":false}},"defaultReminders":{"type":"string","id":19,"options":{"default":""}},"members":{"rule":"repeated","type":"CalendarMember","id":20},"email":{"type":"string","id":21,"options":{"default":""}},"isSynced":{"type":"bool","id":23,"options":{"default":true}},"isAccept":{"type":"bool","id":24,"options":{"default":false}},"isSubscriber":{"type":"bool","id":25,"options":{"default":false}},"isPublic":{"type":"bool","id":26,"options":{"default":false}},"note":{"type":"string","id":27,"options":{"default":""}},"calendarResourceInfo":{"type":"CalendarResourceInfo","id":28},"isAllStaff":{"type":"bool","id":29,"options":{"default":false}},"externalAccount":{"type":"ExternalAccount","id":30},"workHourSetting":{"type":"WorkHourSetting","id":31},"visibilityProperty":{"type":"int32","id":32,"options":{"default":0}},"timezone":{"type":"string","id":33,"options":{"default":""}},"calendarEventSchema":{"type":"bytes","id":34},"calendarSchema":{"type":"bytes","id":35},"schemaExtraData":{"type":"bytes","id":36},"calendarEventSchemaV2":{"type":"bytes","id":37},"successorUserId":{"type":"string","id":38},"shareOptions":{"type":"CalendarShareOptions","id":39},"shareInfo":{"type":"CalendarShareInfo","id":40},"isCrossTenant":{"type":"bool","id":41},"calendarOwnerId":{"type":"string","id":42},"coverImage":{"type":"ImImage","id":43},"calendarTenantId":{"type":"string","id":44},"officialType":{"type":"OfficialType","id":45}}},"CalendarEvent":{"nested":{"NotificationType":{"values":{"DEFAULT_NOTIFICATION_TYPE":1,"NO_NOTIFICATION":2,"SEND_NOTIFICATION":3,"NO_NOTIFICATION_FOR_DELETE_ATTENDEE":4}},"Source":{"values":{"UNKNOWN":0,"WEB":1,"IOS":2,"IOS_APP":3,"ANDROID":4,"ANDROID_APP":5,"PC_CLIENT":6,"GOOGLE":7,"PEOPLE":8,"PLACE_HOLDER":9,"OPEN_API":10,"CALDAV":11,"TIMEOFF":12,"EMAIL":13,"EXCHANGE":14,"INEMAIL":15,"LIVE_HOST":16,"SCHEDULER":17}},"Visibility":{"values":{"DEFAULT":1,"PUBLIC":2,"PRIVATE":3}},"Status":{"values":{"TENTATIVE":1,"CONFIRMED":2,"CANCELLED":3}},"SelfAttendeeStatus":{"values":{"ATTENDEE_STATUS_NEEDS_ACTION":1,"ATTENDEE_STATUS_ACCEPT":2,"ATTENDEE_STATUS_TENTATIVE":3,"ATTENDEE_STATUS_DECLINE":4,"ATTENDEE_STATUS_REMOVED":5}},"Type":{"values":{"DEFAULT_TYPE":1,"MEETING":2,"BIND_CHAT":3}},"Category":{"values":{"DEFAULT_CATEGORY":1,"SAME_PAGE_MEETING":2,"RESOURCE_STRATEGY":3,"RESOURCE_REQUISITION":4,"WEBINAR":5}}},"fields":{"id":{"type":"string","id":1,"options":{"default":"0"}},"uniqueKey":{"rule":"required","type":"string","id":2},"calendarId":{"rule":"required","type":"string","id":3},"originalTime":{"rule":"required","type":"int64","id":4},"creatorCalendarId":{"type":"string","id":5,"options":{"default":"0"}},"organizerCalendarId":{"type":"string","id":6,"options":{"default":"0"}},"selfAttendeeStatus":{"type":"SelfAttendeeStatus","id":7,"options":{"default":"ATTENDEE_STATUS_ACCEPT"}},"start":{"rule":"required","type":"int64","id":8},"startTimezone":{"rule":"required","type":"string","id":9},"end":{"rule":"required","type":"int64","id":10},"endTimezone":{"type":"string","id":11},"status":{"type":"Status","id":12,"options":{"default":"CONFIRMED"}},"locations":{"rule":"repeated","type":"CalendarEventLocation","id":13},"rrule":{"type":"string","id":14,"options":{"default":""}},"guestsCanInviteOthers":{"type":"bool","id":15,"options":{"default":true}},"guestsCanSeeOtherGuests":{"type":"bool","id":16,"options":{"default":true}},"guestsCanModify":{"type":"bool","id":17,"options":{"default":false}},"createTime":{"type":"int64","id":18,"options":{"default":0}},"updateTime":{"type":"int64","id":19,"options":{"default":0}},"isDeleted":{"type":"bool","id":20,"options":{"default":false}},"color":{"type":"int32","id":21,"options":{"default":-1}},"source":{"type":"Source","id":22,"options":{"default":"PC_CLIENT"}},"visibility":{"type":"Visibility","id":23,"options":{"default":"DEFAULT"}},"importance":{"type":"int32","id":24,"options":{"default":0}},"isAllDay":{"type":"bool","id":25,"options":{"default":false}},"attendees":{"rule":"repeated","type":"CalendarEventAttendee","id":26},"reminders":{"rule":"repeated","type":"Reminder","id":27},"isFree":{"type":"bool","id":28,"options":{"default":false}},"summary":{"type":"string","id":29,"options":{"default":""}},"description":{"type":"string","id":30,"options":{"default":""}},"originalEvent":{"type":"string","id":31,"options":{"default":""}},"originalIsAllDay":{"type":"bool","id":32,"options":{"default":false}},"audioUrl":{"type":"string","id":33,"options":{"default":""}},"url":{"type":"string","id":34,"options":{"default":""}},"hasAlarm":{"type":"bool","id":35,"options":{"default":true}},"hasAttendee":{"type":"bool","id":36,"options":{"default":false}},"hasLocation":{"type":"bool","id":37,"options":{"default":false}},"version":{"type":"int64","id":38,"options":{"default":0}},"sequence":{"type":"int32","id":39,"options":{"default":0}},"type":{"type":"Type","id":40,"options":{"default":"DEFAULT_TYPE"}},"meetingId":{"type":"string","id":41,"options":{"default":""}},"docsObjToken":{"type":"string","id":42,"options":{"default":""}},"docsDescription":{"type":"string","id":43,"options":{"default":""}},"successorCalendarId":{"type":"string","id":44,"options":{"default":""}},"notificationType":{"type":"NotificationType","id":45,"options":{"default":"DEFAULT_NOTIFICATION_TYPE"}},"isCrossTenant":{"type":"bool","id":46,"options":{"default":false}},"dissolveMeeting":{"type":"bool","id":47,"options":{"default":true}},"calendarEventGroupAttendees":{"rule":"repeated","type":"CalendarEventGroupAttendee","id":48},"calendarResources":{"rule":"repeated","type":"CalendarResource","id":49},"calendarBuildings":{"rule":"repeated","type":"CalendarBuilding","id":50},"meetingMinuteUrl":{"type":"string","id":51,"options":{"default":""}},"isMeetingMinuteUpdate":{"type":"bool","id":52,"options":{"default":false}},"vchatUniqueId":{"type":"string","id":53,"options":{"default":""}},"googleEventExtra":{"type":"GoogleEventExtra","id":54},"inviteOperatorId":{"type":"string","id":55,"options":{"default":""}},"attachments":{"rule":"repeated","type":"CalendarEventAttachment","id":56},"attendeeSource":{"type":"int32","id":57,"options":{"default":1}},"schema":{"type":"bytes","id":58},"category":{"type":"Category","id":59,"options":{"default":"DEFAULT_CATEGORY"}},"samePageMeeting":{"type":"SamePageMeetingInfo","id":60},"schemaV2":{"type":"bytes","id":61},"attendeeInfo":{"type":"EventAttendeeInfo","id":62},"videoConfig":{"type":"EventVChatConfig","id":63},"lastDate":{"type":"int64","id":64},"checkInConfig":{"type":"EventCheckInConfig","id":65},"encryptionInfo":{"type":"EventEncryptionInfo","id":66},"webinarInfo":{"type":"CalendarEventWebinarInfo","id":67},"relationTag":{"type":"TagData","id":68},"meetingNotesConfig":{"type":"MeetingNotesConfig","id":69},"sendSmsNotificationSetting":{"type":"bool","id":70},"meetingChatConfig":{"type":"MeetingChatConfig","id":71},"resourceWaitListOrders":{"type":"ResourceWaitListOrders","id":72},"externalEventExtra":{"type":"ExternalEventExtra","id":73}}},"CalendarEventKey":{"fields":{"uniqueKey":{"rule":"required","type":"string","id":1},"calendarId":{"rule":"required","type":"string","id":2},"originalTime":{"rule":"required","type":"int64","id":3}}},"RSVPCommentInfo":{"fields":{"replyCommentId":{"type":"string","id":1,"options":{"default":""}},"comment":{"type":"string","id":2,"options":{"default":""}},"inviteOperatorId":{"type":"string","id":3,"options":{"default":""}}}},"MeetingRoomFilter":{"fields":{"minCapacity":{"type":"int32","id":1},"needEquipments":{"rule":"repeated","type":"string","id":2}}},"CalendarBuilding":{"fields":{"id":{"rule":"required","type":"string","id":1},"name":{"type":"string","id":2,"options":{"default":""}},"description":{"type":"string","id":3,"options":{"default":""}},"latitude":{"type":"float","id":4,"options":{"default":360}},"longitude":{"type":"float","id":5,"options":{"default":360}},"floors":{"rule":"repeated","type":"string","id":6},"meetingRooms":{"rule":"repeated","type":"CalendarResource","id":7},"isDeleted":{"type":"bool","id":8,"options":{"default":false}},"weight":{"type":"int32","id":9,"options":{"default":0}},"seizeTime":{"type":"int64","id":10,"options":{"default":0}},"floorLevelIds":{"keyType":"string","type":"string","id":11}}},"MultiCalendarSearchContent":{"fields":{"calendarId":{"rule":"required","type":"string","id":1},"type":{"type":"MultiCalendarSearchContentType","id":2,"options":{"default":"CHATTER"}},"title":{"type":"string","id":3,"options":{"default":""}},"subtitle":{"type":"string","id":4,"options":{"default":""}},"avatarUrl":{"type":"string","id":5,"options":{"default":""}},"isPrivate":{"type":"bool","id":6,"options":{"default":false}},"isMember":{"type":"bool","id":7,"options":{"default":false}},"isDisabled":{"type":"bool","id":8,"options":{"default":false}},"isDismiss":{"type":"bool","id":9,"options":{"default":false}},"isCrossTenant":{"type":"bool","id":10,"options":{"default":false}},"calendarTenantId":{"type":"string","id":11},"coverImage":{"type":"ImImage","id":14},"subscriberNum":{"type":"int32","id":15}},"nested":{"MultiCalendarSearchContentType":{"values":{"CHATTER":1,"MEETING_ROOM":2,"SHARED_CALENDAR":3}}}},"Chatter":{"fields":{"id":{"type":"string","id":1,"options":{"(open.id)":"user_id"}},"name":{"type":"string","id":2},"avatar":{"type":"ImageSet","id":3},"status":{"type":"int32","id":4},"avatarUrl":{"type":"string","id":5},"updateTime":{"type":"int64","id":6},"namePinyin":{"type":"string","id":7},"creatorId":{"type":"string","id":8},"type":{"type":"ChatterType","id":9},"description":{"type":"string","id":11},"isRegistered":{"type":"bool","id":12},"namePy":{"type":"string","id":13},"enUsName":{"type":"string","id":14},"tenantId":{"type":"string","id":15},"descriptionFlag":{"type":"DescriptionFlag","id":16,"options":{"default":"DEFAULT"}},"botConfig":{"type":"BotConfig","id":17},"internationalName":{"keyType":"string","type":"string","id":18},"alias":{"type":"string","id":19},"workStatus":{"type":"WorkStatus","id":20},"i18nDescriptions":{"keyType":"string","type":"string","id":21,"options":{"deprecated":true}},"accountId":{"type":"string","id":22},"i18nInf":{"type":"I18nInf","id":23},"userConfig":{"type":"UserConfig","id":24},"email":{"type":"string","id":25},"donotDisturbBeforeMs":{"type":"int64","id":26},"acceptSmsPhoneUrgent":{"type":"bool","id":27},"lastLoginTime":{"type":"int64","id":28},"avatarImage":{"type":"Image","id":29},"timeZone":{"type":"TimeZone","id":30},"isGuest":{"type":"bool","id":31},"isFrozen":{"type":"bool","id":32},"isAnonymous":{"type":"bool","id":33},"department":{"rule":"repeated","type":"Department","id":34},"enterpriseEmail":{"type":"string","id":35},"customStatuses":{"rule":"repeated","type":"ChatterCustomStatus","id":36},"avatarMedal":{"type":"AvatarMedal","id":37},"anotherName":{"type":"string","id":38},"activeStatus":{"type":"int32","id":39},"isSpecialFocus":{"type":"bool","id":40},"majorLanguage":{"type":"string","id":41},"mutedInfo":{"type":"BotMutedInfo","id":42},"displayName":{"type":"I18nVal","id":43},"tagData":{"type":"TagData","id":44},"isTenantCertification":{"type":"bool","id":45},"tenantNameStatus":{"type":"TenantNameStatus","id":46},"commonLocales":{"rule":"repeated","type":"string","id":47}},"nested":{"DescriptionFlag":{"values":{"DEFAULT":0,"ON_BUSINESS":1,"ON_LEAVE":2,"ON_MEETING":3}},"I18nInf":{"fields":{"i18nDescriptions":{"keyType":"string","type":"string","id":1}}}}},"CalendarBriefInfo":{"fields":{"id":{"type":"string","id":1},"type":{"type":"Calendar.Type","id":2},"successorUserId":{"type":"int64","id":3},"isAllStaff":{"type":"bool","id":4,"options":{"default":false}},"calendarSummary":{"type":"string","id":5},"creatorUserId":{"type":"int64","id":6}}},"CalendarEventLocation":{"fields":{"name":{"type":"string","id":1,"options":{"default":""}},"address":{"type":"string","id":2,"options":{"default":""}},"type":{"type":"Type","id":3,"options":{"default":"ORDINARY"}},"latitude":{"type":"float","id":4,"options":{"default":360}},"longitude":{"type":"float","id":5,"options":{"default":360}}},"nested":{"Type":{"values":{"MEETING_ROOM":1,"ORDINARY":2}}}},"Reminder":{"fields":{"calendarEventId":{"type":"string","id":1,"options":{"default":"0"}},"minutes":{"rule":"required","type":"int32","id":2},"method":{"rule":"required","type":"Method","id":3}},"nested":{"Method":{"values":{"DEFAULT":1,"EMAIL":2,"POPUP":3,"SMS":4}}}},"CalendarEventAttachment":{"fields":{"fileToken":{"type":"string","id":1},"fileSize":{"type":"string","id":2},"name":{"type":"string","id":3},"type":{"type":"Type","id":4},"uploaderUserId":{"type":"string","id":5},"isDeleted":{"type":"bool","id":6},"position":{"type":"int32","id":7},"docUrls":{"rule":"repeated","type":"string","id":8},"expireTime":{"type":"int64","id":9},"googleDriveLink":{"type":"string","id":10},"urlLink":{"type":"string","id":11}},"nested":{"Type":{"values":{"UNKNOWN":0,"LOCAL":1,"SAMEPAGEMEETING":2,"LARGE":3,"GOOGLEDRIVE":4,"URL":5}}}},"CalendarSchemaCollection":{"fields":{"entitySchemas":{"rule":"repeated","type":"EntitySchema","id":1},"compatibility":{"type":"CalendarSchemaCompatibility","id":2}}},"Vchat":{"fields":{"uniqueId":{"rule":"required","type":"string","id":1},"meetingNo":{"rule":"required","type":"string","id":2},"isExpired":{"type":"bool","id":3,"options":{"default":false}},"meetingUrl":{"type":"string","id":4,"options":{"default":""}},"type":{"type":"Type","id":5,"options":{"default":"VIDEO_CONFERENCE"}},"vchatType":{"type":"VChatType","id":6,"options":{"default":"UN_KNOWN"}}},"nested":{"Type":{"values":{"VIDEO_CONFERENCE":1,"THIRD_PARTY":2}},"VChatType":{"values":{"UN_KNOWN":0,"LARK_VIDEO_CONFERENCE":1,"THIRD_PARTY_URL":2,"LARK_LIVE_HOST":3,"NO_VIDEO_MEETING":4,"GOOGLE_VIDEO_CONFERENCE":5,"ZOOM_MEETING":6}}}},"EventVChatConfig":{"oneofs":{"customizedConfigs":{"oneof":["otherConfigs","googleConfigs","zoomConfigs"]}},"fields":{"vchatType":{"type":"Vchat.VChatType","id":1,"options":{"default":"UN_KNOWN"}},"meetingUrl":{"type":"string","id":2},"otherConfigs":{"type":"OtherVideoMeetingConfigs","id":101},"googleConfigs":{"type":"GoogleVideoConferenceConfig","id":102},"zoomConfigs":{"type":"ZoomVideoMeetingConfigs","id":103},"larkVcBindingData":{"type":"LarkVCBindingData","id":3}},"nested":{"OtherVideoMeetingConfigs":{"fields":{"icon":{"type":"IconType","id":1},"customizedDescription":{"type":"string","id":2,"options":{"default":""}}},"nested":{"IconType":{"values":{"DEFAULT":0,"VIDEO_MEETING":1,"LIVE":2}}}},"GoogleVideoConferenceConfig":{"fields":{"phoneNumber":{"type":"string","id":1},"morePhoneNumberUrl":{"type":"string","id":2}}},"ZoomVideoMeetingConfigs":{"fields":{"meetingId":{"type":"int64","id":1},"meetingNo":{"type":"int64","id":2},"creatorAccount":{"type":"string","id":3},"meetingUrl":{"type":"string","id":4},"password":{"type":"string","id":5},"isEditable":{"type":"bool","id":6},"creatorUserId":{"type":"int64","id":7}}},"LarkVCBindingData":{"fields":{"vcSettingId":{"type":"string","id":1}}}}},"EventEncryptionInfo":{"fields":{"encryptionKey":{"type":"string","id":1},"encryptType":{"type":"EncryptionType","id":2},"keyStatus":{"type":"KeyStatus","id":3},"encryptionStatus":{"type":"EncryptionStatus","id":4}},"nested":{"EncryptionType":{"values":{"UNKNOWN":1,"UN_ENCRYPTION":2,"LOCAL_ENCRYPTION":3,"UNIFIED_ENCRYPTION":4}}}},"CalendarEventAttendee":{"nested":{"Status":{"values":{"NEEDS_ACTION":1,"ACCEPT":2,"TENTATIVE":3,"DECLINE":4,"REMOVED":5}},"ResourceStatus":{"values":{"NORMAL":0,"RELEASED_EARLY":1}},"IndividualAttendeeType":{"values":{"UNKNOWN":0,"USER":1,"RESOURCE":2,"THIRD_PARTY_USER":3,"PHONE":4}}},"fields":{"displayName":{"type":"string","id":1,"options":{"default":""}},"attendeeCalendarId":{"rule":"required","type":"string","id":2},"isOrganizer":{"type":"bool","id":3,"options":{"default":false}},"isResource":{"type":"bool","id":4,"options":{"default":false}},"isOptional":{"type":"bool","id":5,"options":{"default":false}},"status":{"type":"Status","id":6,"options":{"default":"NEEDS_ACTION"}},"additionalGuests":{"type":"int32","id":7,"options":{"default":0}},"createTime":{"type":"int64","id":8,"options":{"default":0}},"updateTime":{"type":"int64","id":9,"options":{"default":0}},"type":{"type":"Calendar.Type","id":10,"options":{"default":"PRIMARY"}},"tags":{"rule":"repeated","type":"CalendarEventAttendeeTag","id":11},"tenantId":{"type":"string","id":12,"options":{"default":""}},"inviteInfo":{"type":"CalendarEventAttendeeInviteInformation","id":13},"isDisabled":{"type":"bool","id":14,"options":{"default":false}},"email":{"type":"string","id":15,"options":{"default":""}},"isThirdParty":{"type":"bool","id":16,"options":{"default":false}},"attendeeSchema":{"type":"bytes","id":17},"schemaExtraData":{"type":"bytes","id":18},"resourceStatus":{"type":"ResourceStatus","id":19,"options":{"default":"NORMAL"}},"resourceReserveOperatorId":{"type":"string","id":20},"relationTag":{"type":"TagData","id":21},"phone":{"type":"string","id":22,"options":{"default":""}},"individualAttendeeType":{"type":"IndividualAttendeeType","id":23}}},"CalendarEventGroupAttendee":{"fields":{"chatId":{"type":"string","id":1},"isRemoved":{"type":"bool","id":2,"options":{"default":false}},"inviteInfo":{"type":"CalendarEventAttendeeInviteInformation","id":3},"validMemberCount":{"type":"int32","id":4},"isSelfInGroupMember":{"type":"bool","id":5,"options":{"default":false}},"relationTag":{"type":"TagData","id":6}}},"CalendarResource":{"fields":{"id":{"rule":"required","type":"string","id":1},"calendarId":{"type":"string","id":2,"options":{"default":""}},"name":{"type":"string","id":3,"options":{"default":""}},"type":{"type":"Type","id":4,"options":{"default":"OTHER"}},"status":{"type":"Status","id":5,"options":{"default":"FREE"}},"buildingId":{"type":"string","id":6,"options":{"default":""}},"description":{"type":"string","id":7,"options":{"default":""}},"capacity":{"type":"int32","id":8,"options":{"default":0}},"floorName":{"type":"string","id":9,"options":{"default":""}},"category":{"type":"string","id":10,"options":{"default":""}},"isDeleted":{"type":"bool","id":11,"options":{"default":false}},"isExternal":{"type":"bool","id":12,"options":{"default":false}},"weight":{"type":"int32","id":13,"options":{"default":0}},"tenantId":{"type":"string","id":14,"options":{"default":""}},"isDisabled":{"type":"bool","id":15,"options":{"default":false}},"resourceSchema":{"type":"bytes","id":16},"schemaExtraData":{"type":"bytes","id":17},"equipmentNames":{"rule":"repeated","type":"string","id":18,"options":{"deprecated":true}},"equipmentNameMap":{"keyType":"string","type":"string","id":19},"resourceNameWithLevelInfo":{"rule":"repeated","type":"string","id":20}},"nested":{"Type":{"values":{"MEETING_ROOM":1,"OTHER":2}},"Status":{"values":{"FREE":1,"BUSY":2}}}},"GoogleEventExtra":{"fields":{"dataSource":{"type":"DataSource","id":1,"options":{"default":"GOOGLE"}}},"nested":{"DataSource":{"values":{"GOOGLE":1,"CACHE":2}}}},"SamePageMeetingInfo":{"fields":{"url":{"rule":"repeated","type":"string","id":1}}},"EventAttendeeInfo":{"fields":{"totalNo":{"type":"int32","id":1},"acceptNo":{"type":"int32","id":2},"declineNo":{"type":"int32","id":3},"tentativeNo":{"type":"int32","id":4},"needActionNo":{"type":"int32","id":5},"eventCreators":{"type":"EventCreators","id":6},"allIndividualAttendee":{"type":"bool","id":7},"snapshotPageToken":{"type":"string","id":8}}},"EventCheckInConfig":{"fields":{"checkInEnable":{"type":"bool","id":1},"checkInStartTime":{"type":"CheckInTime","id":2},"checkInEndTime":{"type":"CheckInTime","id":3},"needNotifyAttendees":{"type":"bool","id":4}},"nested":{"CheckInTime":{"fields":{"type":{"type":"Type","id":1},"duration":{"type":"int64","id":2}},"nested":{"Type":{"values":{"BeforeEventStart":1,"AfterEventStart":2,"AfterEventEnd":3}}}}}},"CalendarEventWebinarInfo":{"fields":{"conf":{"type":"CalendarEventWebinarConf","id":1},"speakers":{"type":"CalendarEventWebinarAttendeeInfo","id":2},"audiences":{"type":"CalendarEventWebinarAttendeeInfo","id":3},"resources":{"rule":"repeated","type":"CalendarEventAttendee","id":4},"webinarAttendeeType":{"type":"entities.WebinarAttendeeType","id":5},"webinarData":{"type":"string","id":6}}},"TagData":{"fields":{"tagDataItems":{"rule":"repeated","type":"TagDataItem","id":1}},"nested":{"TagDataItem":{"fields":{"textVal":{"type":"I18nVal","id":1},"tagId":{"type":"string","id":2},"reqTagType":{"type":"RequestTagTypeEnum","id":3},"respTagType":{"type":"ResponseTagTypeEnum","id":4},"priority":{"type":"int32","id":5}}}}},"MeetingNotesConfig":{"fields":{"createNotesPermission":{"type":"CreateNotesPermission","id":1}},"nested":{"CreateNotesPermission":{"values":{"UNKNOWN":0,"ORGANIZER":1,"ALL":2}}}},"MeetingChatConfig":{"fields":{"forbidCreateChat":{"type":"bool","id":1},"meetingChatSettingType":{"type":"MeetingChatSettingType","id":2},"bindChatId":{"type":"string","id":3},"bindUserId":{"type":"string","id":4},"associateChatId":{"type":"string","id":5}},"nested":{"MeetingChatSettingType":{"values":{"UNKNOWN":0,"ALLOW_CREATE_CHAT":1,"FORBID_CREATE_CHAT":2,"BIND_CHAT":3}}}},"ResourceWaitListOrders":{"fields":{"orders":{"rule":"repeated","type":"ResourceWaitListOrder","id":1}}},"ExternalEventExtra":{"fields":{"directlySyncFromLark":{"type":"bool","id":1},"isOneWaySync":{"type":"bool","id":2}}},"ImImage":{"fields":{"imageKey":{"type":"string","id":1},"fsUnit":{"type":"string","id":2},"crypto":{"type":"Crypto","id":3},"Attrs":{"rule":"repeated","type":"ImageAttribute","id":4}},"nested":{"ImageAttribute":{"fields":{"CropType":{"type":"ImageCropType","id":1},"Width":{"type":"int64","id":2},"Height":{"type":"int64","id":3}}}}},"ImageSet":{"fields":{"key":{"type":"string","id":1,"options":{"deprecated":true}},"origin":{"type":"Image","id":2},"thumbnail":{"type":"Image","id":3},"imageKey":{"type":"string","id":4,"options":{"deprecated":true}},"middle":{"type":"Image","id":5},"thumbnailWebp":{"type":"Image","id":6},"middleWebp":{"type":"Image","id":7},"middleMp4":{"type":"Image","id":8},"cover":{"type":"Image","id":9},"intact":{"type":"Image","id":10}}},"ChatterType":{"values":{"UNKNOWN_CHATTER":0,"USER":1,"BOT":2,"AI":3}},"BotConfig":{"fields":{"withBotTag":{"type":"string","id":1,"options":{"default":"bot"}},"inContacts":{"type":"bool","id":2,"options":{"default":true}},"canJoinGroup":{"type":"bool","id":3,"options":{"default":true}}}},"WorkStatus":{"fields":{"status":{"type":"Status","id":7},"startTime":{"type":"int64","id":8},"endTime":{"type":"int64","id":9},"descriptionTemplates":{"keyType":"string","type":"string","id":10}},"nested":{"Status":{"values":{"UNKNOWN":0,"ON_LEAVE":1,"ON_MEETING":2}}}},"UserConfig":{"fields":{"phoneCallAccessible":{"type":"bool","id":1,"options":{"default":true}},"voiceCallAccessible":{"type":"bool","id":2,"options":{"default":true}},"videoCallAccessible":{"type":"bool","id":3,"options":{"default":true}},"accessPhoneCall":{"type":"AccessibleInfo","id":4},"accessVoiceCall":{"type":"AccessibleInfo","id":5},"accessVideoCall":{"type":"AccessibleInfo","id":6},"accessUrgent":{"type":"AccessibleInfo","id":7}}},"Image":{"fields":{"key":{"type":"string","id":1},"urls":{"rule":"repeated","type":"string","id":2,"options":{"deprecated":true}},"width":{"type":"int32","id":3},"height":{"type":"int32","id":4},"secureKey":{"type":"string","id":5},"secureUrls":{"rule":"repeated","type":"string","id":6,"options":{"deprecated":true}},"secureWidth":{"type":"int32","id":7},"secureHeight":{"type":"int32","id":8},"crypto":{"type":"Crypto","id":9},"size":{"type":"int32","id":10},"fsUnit":{"type":"string","id":11},"params":{"keyType":"string","type":"string","id":12},"etag":{"type":"string","id":13}}},"TimeZone":{"fields":{"name":{"rule":"required","type":"string","id":1}}},"Department":{"fields":{"id":{"rule":"required","type":"string","id":1,"options":{"(open.id)":"department_id"}},"name":{"type":"string","id":2},"parentId":{"type":"string","id":3},"leaderId":{"type":"string","id":4},"memberCount":{"type":"int32","id":5},"status":{"type":"int32","id":6},"namePinyin":{"type":"string","id":7},"chatId":{"type":"string","id":8},"hasChild":{"type":"bool","id":9},"i18nName":{"keyType":"string","type":"string","id":10},"deptLeaders":{"rule":"repeated","type":"DepartmentLeader","id":11},"memberCountByDisplayRule":{"type":"int32","id":12}}},"ChatterCustomStatus":{"fields":{"title":{"type":"string","id":1},"i18nTitle":{"keyType":"string","type":"string","id":2},"iconKey":{"type":"string","id":3},"fsUnit":{"type":"string","id":4},"effectiveInterval":{"type":"EffectiveInterval","id":5},"isNotDisturbMode":{"type":"bool","id":6},"tagInfo":{"type":"TagInfo","id":7},"timeFormat":{"type":"TimeFormat","id":8},"statusId":{"type":"int64","id":9}}},"AvatarMedal":{"fields":{"key":{"type":"string","id":1},"fsUnit":{"type":"string","id":2},"i18nName":{"type":"I18nVal","id":3},"showSwitch":{"type":"bool","id":4}}},"BotMutedInfo":{"fields":{"mutedScenes":{"keyType":"string","type":"bool","id":1}}},"I18nVal":{"fields":{"defaultVal":{"rule":"required","type":"string","id":1},"i18nVals":{"keyType":"string","type":"string","id":2}}},"TenantNameStatus":{"values":{"TENANT_NAME_STATUS_UNKNOWN":0,"TENANT_NAME_STATUS_NOT_FRIEND":1,"TENANT_NAME_STATUS_VISIBLE":2,"TENANT_NAME_STATUS_HIDE":3}},"WorkHourSetting":{"fields":{"enableWorkHour":{"type":"bool","id":1,"options":{"default":false}},"workHourItems":{"keyType":"string","type":"WorkHourItem","id":2},"isFirstSet":{"type":"bool","id":3,"options":{"default":true}}}},"CalendarResourceInfo":{"fields":{"capacity":{"type":"int32","id":1,"options":{"default":0}},"cityName":{"type":"string","id":2,"options":{"default":""}},"buildingName":{"type":"string","id":3,"options":{"default":""}},"resourceName":{"type":"string","id":4,"options":{"default":""}},"floorName":{"type":"string","id":5,"options":{"default":""}},"isDisabled":{"type":"bool","id":6,"options":{"default":false}},"resourceId":{"type":"string","id":7,"options":{"default":""}}}},"ExternalAccount":{"fields":{"email":{"type":"string","id":1},"passwordInvalid":{"type":"bool","id":2,"options":{"default":false}}}},"CalendarMember":{"fields":{"chatterId":{"rule":"required","type":"string","id":1},"accessRole":{"type":"Calendar.AccessRole","id":2,"options":{"default":"FREE_BUSY_READER"}},"status":{"type":"Calendar.Status","id":3,"options":{"default":"DEFAULT"}},"tags":{"rule":"repeated","type":"UserCalendarRefTag","id":4},"memberType":{"type":"CalendarMemberType","id":5,"options":{"default":"INDIVIDUAL"}},"chatId":{"type":"string","id":6,"options":{"default":""}},"useServerMemberNum":{"type":"bool","id":7,"options":{"default":false}},"serverMemberNum":{"type":"int32","id":8,"options":{"default":0}},"departmentName":{"type":"string","id":9},"relationType":{"type":"RelationType","id":10}},"nested":{"CalendarMemberType":{"values":{"INDIVIDUAL":1,"GROUP":2}},"RelationType":{"values":{"INTERNAL":0,"EXTERNAL":1}}}},"EntitySchema":{"fields":{"uniqueName":{"type":"string","id":1},"uiLevel":{"type":"ItemUILevel","id":2},"appLink":{"type":"string","id":3},"incompatibleLevel":{"type":"IncompatibleLevel","id":4}},"nested":{"ItemUILevel":{"values":{"HIDE":1,"READONLY":2,"EDITABLE":3}}}},"CalendarSchemaCompatibility":{"fields":{"minimumCompatibilityVer":{"type":"int32","id":1},"incompatibleLevel":{"type":"IncompatibleLevel","id":2}}},"KeyStatus":{"values":{"KEY_UNKNOWN":0,"KEY_DISABLE":1,"KEY_NORMAL":2}},"EncryptionStatus":{"values":{"ENCRYPTION_UNKNOWN":0,"ENCRYPTION_NORMAL":1,"ENCRYPTION_DISABLE":2}},"CalendarEventAttendeeTag":{"fields":{"type":{"type":"CalendarEventAttendeeTagType","id":1,"options":{"default":"INDIVIDUAL"}},"content":{"type":"string","id":2,"options":{"default":""}}},"nested":{"CalendarEventAttendeeTagType":{"values":{"INDIVIDUAL":1,"GROUP":2}}}},"CalendarEventAttendeeInviteInformation":{"fields":{"inviteOperatorId":{"type":"string","id":1,"options":{"default":""}},"inviteOperatorCalendarId":{"type":"string","id":2,"options":{"default":""}},"inviterCalendarId":{"type":"string","id":3,"options":{"default":""}},"firstInviteOperatorId":{"type":"string","id":4,"options":{"default":""}},"inviteTime":{"type":"int64","id":5,"options":{"default":0}},"removedChatterId":{"type":"string","id":6,"options":{"default":""}},"removedRequestId":{"type":"string","id":7,"options":{"default":""}},"removeTime":{"type":"int64","id":8,"options":{"default":0}}}},"EventCreators":{"fields":{"organizer":{"type":"CalendarEventAttendee","id":1},"creator":{"type":"CalendarEventAttendee","id":2},"successor":{"type":"CalendarEventAttendee","id":3}}},"CalendarEventWebinarConf":{"fields":{"speakerCanSeeOtherSpeakers":{"type":"bool","id":1},"speakerCanInviteOthers":{"type":"bool","id":2},"audienceCanSeeOtherSpeakers":{"type":"bool","id":3},"audienceCanInviteOthers":{"type":"bool","id":4},"speakerCanNotSeeOtherAudience":{"type":"bool","id":5},"audienceCanNotSeeOtherAudience":{"type":"bool","id":6}}},"CalendarEventWebinarAttendeeInfo":{"fields":{"attendees":{"rule":"repeated","type":"CalendarEventWebinarAttendee","id":1},"groupAttendees":{"rule":"repeated","type":"CalendarEventWebinarGroupAttendee","id":2},"eventAttendeeInfo":{"type":"EventAttendeeInfo","id":3},"requireMore":{"type":"bool","id":4},"syncToken":{"type":"string","id":5}}},"WebinarAttendeeType":{"values":{"Unknown":0,"Speaker":1,"Audience":2}},"ResourceWaitListOrder":{"fields":{"buildingLevelId":{"rule":"required","type":"string","id":1},"levelIds":{"rule":"repeated","type":"string","id":2},"capacity":{"rule":"required","type":"int32","id":3},"equipmentRequirement":{"rule":"required","type":"EquipmentRequireType","id":4},"displayName":{"rule":"required","type":"string","id":5},"lastWaitTime":{"rule":"required","type":"LastWaitTime","id":6},"status":{"rule":"required","type":"WaitListStatus","id":7},"createUserId":{"rule":"required","type":"string","id":8},"maxCapacity":{"type":"int32","id":9},"buildingZoneCodes":{"rule":"repeated","type":"string","id":10}}},"Crypto":{"fields":{"type":{"type":"Type","id":1},"cipher":{"type":"Cipher","id":2}},"nested":{"Type":{"values":{"UNKNOWN":0,"AES_256_GCM":1,"AES_CTR":2,"CRYPTO_SDK_UNIFIED":3,"CRYPTO_SDK_DOWNGRADE":4,"CRYPTO_SDK_THIRDPARTY":5,"SM4_128":6}}}},"AccessibleInfo":{"fields":{"isAccessible":{"type":"bool","id":1,"options":{"default":true}},"inaccessibleCode":{"type":"InaccessibleCode","id":2}},"nested":{"InaccessibleCode":{"values":{"DEFAULT":0,"EXECUTIVES":1,"EMPTY_NAME":2,"EMPTY_PHONE":3,"CROSS_TENANT":4,"NOT_FRIEND":5}}}},"DepartmentLeader":{"fields":{"leaderType":{"rule":"required","type":"LeaderType","id":1},"leaderID":{"rule":"required","type":"int64","id":2},"leader":{"type":"Chatter","id":3}}},"EffectiveInterval":{"fields":{"startTime":{"type":"int64","id":1},"endTime":{"type":"int64","id":2},"isShowEndTime":{"type":"bool","id":3,"options":{"default":true}},"isOpenWithoutEndTime":{"type":"bool","id":4}}},"TagInfo":{"fields":{"isShowTag":{"type":"bool","id":1},"tagColor":{"type":"TagColor","id":2}}},"TimeFormat":{"fields":{"timeUnit":{"type":"TimeUnit","id":1},"startEndLayout":{"type":"StartEndLayout","id":2},"isShowToOthers":{"type":"bool","id":3}},"nested":{"StartEndLayout":{"values":{"HIDE":0,"NORMAL":1,"START_ONLY":2,"END_ONLY":3}}}},"WorkHourItem":{"fields":{"spans":{"rule":"repeated","type":"WorkHourSpan","id":1}}},"UserCalendarRefTag":{"fields":{"type":{"type":"UserCalendarRefTagType","id":1,"options":{"default":"INDIVIDUAL"}},"content":{"type":"string","id":2,"options":{"default":""}},"accessRole":{"type":"int32","id":3,"options":{"default":0}}},"nested":{"UserCalendarRefTagType":{"values":{"INDIVIDUAL":1,"GROUP":2}}}},"IncompatibleLevel":{"values":{"SHOW_HINT":1,"DISABLE_EDIT":2,"DISABLE_READ":3}},"CalendarEventWebinarAttendee":{"fields":{"attendeeInfo":{"type":"CalendarEventAttendee","id":1}}},"CalendarEventWebinarGroupAttendee":{"fields":{"attendeeInfo":{"type":"CalendarEventGroupAttendee","id":1}}},"RequestTagTypeEnum":{"values":{"UNKNOWN_TAG_TYPE":0,"RELATION_TAG":1}},"ResponseTagTypeEnum":{"values":{"RELATION_TAG_UNSET":0,"RELATION_TAG_EXTERNAL":1,"RELATION_TAG_PARTNER":2,"RELATION_TAG_TENANT_NAME":3}},"EquipmentRequireType":{"values":{"RequireNoneEquipment":0,"IncludeProjector":1}},"LastWaitTime":{"fields":{"timeType":{"rule":"required","type":"LastWaitTimeType","id":1},"duration":{"type":"int32","id":2}}},"WaitListStatus":{"values":{"WAITING":1,"SUCCEED":2,"FAILED":3,"REMOVED":4}},"Cipher":{"fields":{"secret":{"type":"bytes","id":1},"nonce":{"type":"bytes","id":2},"additionalData":{"type":"bytes","id":3}}},"ImageCropType":{"values":{"ORIGIN":1,"MIDDLE":2,"THUMB":3,"MIDDLE_WEBP":4,"THUMB_WEBP":5,"MIDDLE_MP4":6,"COVER":7,"INTACT":8}},"LeaderType":{"values":{"MainLeader":1,"SubLeader":2}},"TagColor":{"values":{"BLUE":0,"GRAY":1,"INDIGO":2,"WATHET":3,"GREEN":4,"TURQUOISE":5,"YELLOW":6,"LIME":7,"RED":8,"ORANGE":9,"PURPLE":10,"VIOLET":11,"CARMINE":12}},"TimeUnit":{"values":{"SECOND":0,"MINUTE":1,"HOUR":2,"DAY":3,"MONTH":4,"YEAR":5}},"WorkHourSpan":{"fields":{"startMinute":{"rule":"required","type":"int32","id":1},"endMinute":{"rule":"required","type":"int32","id":2}}},"LastWaitTimeType":{"values":{"BEFORE_EVENT_START":1,"WHEN_EVENT_START":2,"AFTER_EVENT_START":3,"WHEN_EVENT_END":4}}}}}}
package/proto/lark.proto CHANGED
@@ -499,7 +499,11 @@ message PullFeedCardsResponse {
499
499
  map<string, Chat> chats = 1;
500
500
  repeated InboxCard cards = 3;
501
501
  optional int64 nextCursor = 4;
502
+ map<string, FeedDoc> docFeeds = 6;
503
+ map<string, FeedThread> threads = 8;
502
504
  }
505
+ message FeedDoc { optional string id = 1; optional string title = 2; optional string url = 5; optional int32 newMessageCount = 10; }
506
+ message FeedThread { optional string id = 1; optional string channelId = 2; optional string topic = 4; optional int32 newMessageCount = 10; }
503
507
  message CreateFileUploadRequest {
504
508
  optional int32 fileType = 3;
505
509
  optional string fileName = 5;
@@ -606,3 +610,40 @@ message BoxCardsRequest { map<string, int32> feedCards = 1; }
606
610
  message PatchFeedCardsRequest { optional int32 type = 1; repeated string ids = 2; repeated InboxCard cards = 3; }
607
611
  message PutReadMessagesRequest { optional string chatId = 1; repeated string messageIds = 2; optional int32 maxPosition = 3; }
608
612
  message PutReadMessagesResponse { optional int32 lastMessagePosition = 1; optional int32 newMessageCount = 2; optional int32 readPosition = 6; }
613
+
614
+ // --- Conversation sidebar filters (cmd 7022/7023) ---
615
+ message SidebarFilter { optional int32 systemFilter = 1; }
616
+ message SidebarDisplayRule { optional int32 mainRule = 1; repeated int32 msgTypes = 2 [packed=false]; }
617
+ message SidebarFilterSetting {
618
+ optional bool showFilter = 1;
619
+ repeated SidebarFilter usedFilters = 2;
620
+ optional int64 version = 3;
621
+ optional bool showMuteFilter = 4;
622
+ repeated SidebarFilter unusedFilters = 5;
623
+ optional bool showAtAllInAtFilter = 6;
624
+ repeated SidebarFilter commonlyUsedFilters = 7;
625
+ map<int32, int32> commonlyUsedFilterRealAction = 8;
626
+ optional int32 flagSortingRule = 9;
627
+ map<int32, SidebarDisplayRule> filterDisplayFeedRule = 10;
628
+ map<int32, int32> filterDisplayFeedRuleChanged = 11;
629
+ }
630
+ message PullSidebarFilterSettingRequest { optional bool needAllFilters = 1; optional int64 clientSupportVersion = 2; optional int64 clientSupportVersionV2 = 3; }
631
+ message PullSidebarFilterSettingResponse { optional SidebarFilterSetting setting = 1; repeated SidebarFilter allFilters = 2; optional bool isDefaultSetting = 3; }
632
+ message PutSidebarFilterSettingRequest {
633
+ optional bool showFilter = 1;
634
+ repeated SidebarFilter usedFilters = 2;
635
+ optional bool showMuteFilter = 3;
636
+ optional int64 clientSupportVersion = 4;
637
+ optional bool showAtAllInAtFilter = 5;
638
+ repeated SidebarFilter commonlyUsedFilters = 6;
639
+ optional int32 flagSortingRule = 7;
640
+ map<int32, SidebarDisplayRule> filterDisplayFeedRule = 8;
641
+ map<int64, SidebarDisplayRule> feedGroupDisplayFeedRule = 9;
642
+ optional int64 clientSupportVersionV2 = 10;
643
+ repeated int32 updateFields = 31 [packed=false];
644
+ }
645
+ message PutSidebarFilterSettingResponse { optional SidebarFilterSetting setting = 1; }
646
+ message PullUnreadAtMessageIdsRequest { optional int32 version = 1; repeated int64 messageIds = 2 [packed=false]; }
647
+ message PullUnreadAtMessageIdsResponse { repeated string messageIds = 1; map<string, string> messageThreadIds = 2; }
648
+ message PullMessagesByIdsRequest { repeated string messageIds = 1; }
649
+ message PullMessagesByIdsResponse { map<string, MessageEntity> messages = 1; }