@satorijs/adapter-lark 3.12.4 → 3.12.5
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/lib/index.cjs +160 -1
- package/lib/types/application.d.ts +117 -0
- package/lib/types/approval.d.ts +45 -0
- package/lib/types/bitable.d.ts +51 -0
- package/lib/types/contact.d.ts +17 -0
- package/lib/types/corehr.d.ts +223 -0
- package/lib/types/drive.d.ts +89 -0
- package/lib/types/im.d.ts +26 -1
- package/lib/types/index.d.ts +463 -36
- package/lib/types/minutes.d.ts +13 -0
- package/lib/types/security_and_compliance.d.ts +86 -0
- package/lib/types/spark.d.ts +356 -0
- package/lib/types/vc.d.ts +42 -0
- package/package.json +3 -3
- package/src/types/application.ts +146 -0
- package/src/types/approval.ts +57 -0
- package/src/types/bitable.ts +67 -0
- package/src/types/contact.ts +23 -0
- package/src/types/corehr.ts +274 -0
- package/src/types/drive.ts +113 -0
- package/src/types/im.ts +32 -1
- package/src/types/index.ts +509 -36
- package/src/types/minutes.ts +17 -0
- package/src/types/security_and_compliance.ts +115 -0
- package/src/types/spark.ts +432 -0
- package/src/types/vc.ts +53 -0
- package/src/utils.ts +2 -1
package/src/types/vc.ts
CHANGED
|
@@ -9,6 +9,7 @@ declare module '../internal' {
|
|
|
9
9
|
|
|
10
10
|
export namespace Vc {
|
|
11
11
|
export interface Methods {
|
|
12
|
+
note: Note.Methods
|
|
12
13
|
reserve: Reserve.Methods
|
|
13
14
|
meeting: Meeting.Methods
|
|
14
15
|
report: Report.Methods
|
|
@@ -25,6 +26,26 @@ export namespace Vc {
|
|
|
25
26
|
roomConfig: RoomConfig.Methods
|
|
26
27
|
}
|
|
27
28
|
|
|
29
|
+
export namespace Note {
|
|
30
|
+
export interface Methods {
|
|
31
|
+
/**
|
|
32
|
+
* 获取纪要详情
|
|
33
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/vc-v1/note/get
|
|
34
|
+
*/
|
|
35
|
+
get(note_id: string, query?: GetQuery): Promise<GetResponse>
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface GetQuery {
|
|
39
|
+
/** 此次调用中使用的用户ID的类型 */
|
|
40
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface GetResponse {
|
|
44
|
+
/** 纪要信息 */
|
|
45
|
+
note?: Lark.Note
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
28
49
|
export namespace Reserve {
|
|
29
50
|
export interface Methods {
|
|
30
51
|
/**
|
|
@@ -114,6 +135,11 @@ export namespace Vc {
|
|
|
114
135
|
export namespace Meeting {
|
|
115
136
|
export interface Methods {
|
|
116
137
|
recording: Recording.Methods
|
|
138
|
+
/**
|
|
139
|
+
* 搜索会议记录
|
|
140
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/vc-v1/meeting/search
|
|
141
|
+
*/
|
|
142
|
+
search(body: SearchRequest, query?: Pagination): Promise<SearchResponse> & AsyncIterableIterator<Lark.MeetingSearchItem>
|
|
117
143
|
/**
|
|
118
144
|
* 邀请参会人
|
|
119
145
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/vc-v1/meeting/invite
|
|
@@ -146,6 +172,27 @@ export namespace Vc {
|
|
|
146
172
|
listByNo(query?: ListByNoQuery): Paginated<Lark.Meeting, 'meeting_briefs'>
|
|
147
173
|
}
|
|
148
174
|
|
|
175
|
+
export interface SearchRequest {
|
|
176
|
+
/**
|
|
177
|
+
* 搜索关键词
|
|
178
|
+
* **数据校验规则:** 长度范围:1 字符 ~ 50 字符
|
|
179
|
+
*/
|
|
180
|
+
query?: string
|
|
181
|
+
/** 视频会议过滤参数 */
|
|
182
|
+
meeting_filter?: Lark.MeetingFilter
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export interface SearchResponse {
|
|
186
|
+
/** 匹配结果总数(辅助分页参考) */
|
|
187
|
+
total?: number
|
|
188
|
+
/** 是否有更多数据可供加载 */
|
|
189
|
+
has_more: boolean
|
|
190
|
+
/** 返回结果列表 */
|
|
191
|
+
items?: Lark.MeetingSearchItem[]
|
|
192
|
+
/** 分页标记,当 has_more 为 true 时,会同时返回新的 page_token,否则不返回 page_token */
|
|
193
|
+
page_token?: string
|
|
194
|
+
}
|
|
195
|
+
|
|
149
196
|
export interface InviteRequest {
|
|
150
197
|
/** 被邀请的用户列表 */
|
|
151
198
|
invitees: Lark.MeetingUser[]
|
|
@@ -1362,6 +1409,9 @@ export namespace Vc {
|
|
|
1362
1409
|
}
|
|
1363
1410
|
|
|
1364
1411
|
Internal.define({
|
|
1412
|
+
'/vc/v1/notes/{note_id}': {
|
|
1413
|
+
GET: 'vc.note.get',
|
|
1414
|
+
},
|
|
1365
1415
|
'/vc/v1/reserves/apply': {
|
|
1366
1416
|
POST: 'vc.reserve.apply',
|
|
1367
1417
|
},
|
|
@@ -1373,6 +1423,9 @@ Internal.define({
|
|
|
1373
1423
|
'/vc/v1/reserves/{reserve_id}/get_active_meeting': {
|
|
1374
1424
|
GET: 'vc.reserve.getActiveMeeting',
|
|
1375
1425
|
},
|
|
1426
|
+
'/vc/v1/meetings/search': {
|
|
1427
|
+
POST: { name: 'vc.meeting.search', pagination: { argIndex: 1 } },
|
|
1428
|
+
},
|
|
1376
1429
|
'/vc/v1/meetings/{meeting_id}/invite': {
|
|
1377
1430
|
PATCH: 'vc.meeting.invite',
|
|
1378
1431
|
},
|
package/src/utils.ts
CHANGED
|
@@ -220,7 +220,8 @@ export async function adaptMessage<C extends Context = Context>(
|
|
|
220
220
|
session.guildId = data.message.chat_id
|
|
221
221
|
session.content = content.map((c) => c.toString()).join(' ')
|
|
222
222
|
|
|
223
|
-
|
|
223
|
+
// thread messages should not be treated as quotes
|
|
224
|
+
if (data.message.parent_id && !data.message.thread_id && details) {
|
|
224
225
|
session.quote = await bot.getMessage(session.channelId, data.message.parent_id, false)
|
|
225
226
|
}
|
|
226
227
|
return session
|