@satorijs/adapter-lark 3.12.3 → 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.
@@ -17,6 +17,11 @@ export namespace Minutes {
17
17
  media: Media.Methods
18
18
  transcript: Transcript.Methods
19
19
  statistics: Statistics.Methods
20
+ /**
21
+ * 获取妙记AI产物
22
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/minutes-v1/minute/artifacts
23
+ */
24
+ artifacts(minute_token: string): Promise<ArtifactsResponse>
20
25
  /**
21
26
  * 获取妙记信息
22
27
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/minutes-v1/minute/get
@@ -24,6 +29,15 @@ export namespace Minutes {
24
29
  get(minute_token: string, query?: GetQuery): Promise<GetResponse>
25
30
  }
26
31
 
32
+ export interface ArtifactsResponse {
33
+ /** 妙记总结 */
34
+ summary?: string
35
+ /** 妙记章节 */
36
+ minute_chapters?: Lark.MinuteChapter[]
37
+ /** 妙记待办 */
38
+ minute_todos?: Lark.MinuteTodo[]
39
+ }
40
+
27
41
  export interface GetQuery {
28
42
  /** 此次调用中使用的用户ID的类型 */
29
43
  user_id_type?: 'user_id' | 'union_id' | 'open_id'
@@ -100,6 +114,9 @@ Internal.define({
100
114
  '/minutes/v1/minutes/{minute_token}/statistics': {
101
115
  GET: 'minutes.minute.statistics.get',
102
116
  },
117
+ '/minutes/v1/minutes/{minute_token}/artifacts': {
118
+ GET: 'minutes.minute.artifacts',
119
+ },
103
120
  '/minutes/v1/minutes/{minute_token}': {
104
121
  GET: 'minutes.minute.get',
105
122
  },
@@ -15,6 +15,7 @@ export namespace Performance {
15
15
  additionalInformations: AdditionalInformations.Methods
16
16
  userGroupUserRel: UserGroupUserRel.Methods
17
17
  reviewee: Reviewee.Methods
18
+ userInfo: UserInfo.Methods
18
19
  reviewTemplate: ReviewTemplate.Methods
19
20
  indicator: Indicator.Methods
20
21
  question: Question.Methods
@@ -239,6 +240,36 @@ export namespace Performance {
239
240
  }
240
241
  }
241
242
 
243
+ export namespace UserInfo {
244
+ export interface Methods {
245
+ /**
246
+ * 获取绩效周期的人员信息
247
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/performance-v2/user_info/query
248
+ */
249
+ query(body: QueryRequest, query?: QueryQuery): Promise<QueryResponse>
250
+ }
251
+
252
+ export interface QueryRequest {
253
+ /** 评估周期 ID 列表,semester_id 可通过【获取周期】获得 */
254
+ semester_id: string
255
+ /** 人员 ID 列表,ID 类型与user_id_type 的取值一致 */
256
+ user_ids: string[]
257
+ }
258
+
259
+ export interface QueryQuery {
260
+ user_id_type?: 'user_id' | 'union_id' | 'open_id'
261
+ /** 指定查询结果中的部门 ID 类型。关于部门 ID 的详细介绍,可参见部门 ID 说明。 */
262
+ department_id_type?: string
263
+ }
264
+
265
+ export interface QueryResponse {
266
+ /** 评估周期 ID */
267
+ semester_id?: string
268
+ /** 人员的快照信息列表 */
269
+ user_infos?: Lark.UserInfo[]
270
+ }
271
+ }
272
+
242
273
  export namespace ReviewTemplate {
243
274
  export interface Methods {
244
275
  /**
@@ -553,6 +584,9 @@ Internal.define({
553
584
  '/performance/v2/reviewees/query': {
554
585
  POST: 'performance.reviewee.query',
555
586
  },
587
+ '/performance/v2/user_info/query': {
588
+ POST: 'performance.userInfo.query',
589
+ },
556
590
  '/performance/v2/review_templates/query': {
557
591
  POST: { name: 'performance.reviewTemplate.query', pagination: { argIndex: 1, itemsKey: 'review_templates' } },
558
592
  },
@@ -9,12 +9,47 @@ declare module '../internal' {
9
9
 
10
10
  export namespace Search {
11
11
  export interface Methods {
12
+ docWiki: DocWiki.Methods
12
13
  message: Message.Methods
13
14
  app: App.Methods
14
15
  dataSource: DataSource.Methods
15
16
  schema: Schema.Methods
16
17
  }
17
18
 
19
+ export namespace DocWiki {
20
+ export interface Methods {
21
+ /**
22
+ * 搜索文档
23
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/search-v2/doc_wiki/search
24
+ */
25
+ search(body: SearchRequest): Promise<SearchResponse> & AsyncIterableIterator<Lark.DocResUnit>
26
+ }
27
+
28
+ export interface SearchRequest {
29
+ /** 搜索关键词 */
30
+ query: string
31
+ /** 文档过滤参数 */
32
+ doc_filter?: Lark.DocFilter
33
+ /** Wiki过滤参数 */
34
+ wiki_filter?: Lark.WikiFilter
35
+ /** 分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该page_token获取查询结果 */
36
+ page_token?: string
37
+ /** 分页大小 */
38
+ page_size?: number
39
+ }
40
+
41
+ export interface SearchResponse {
42
+ /** 匹配结果总数(辅助分页参考) */
43
+ total?: number
44
+ /** 是否有更多数据可供加载 */
45
+ has_more: boolean
46
+ /** 搜索结果列表 */
47
+ res_units?: Lark.DocResUnit[]
48
+ /** 下一页分页标记,无更多结果时为空 */
49
+ page_token?: string
50
+ }
51
+ }
52
+
18
53
  export namespace Message {
19
54
  export interface Methods {
20
55
  /**
@@ -302,6 +337,9 @@ export namespace Search {
302
337
  }
303
338
 
304
339
  Internal.define({
340
+ '/search/v2/doc_wiki/search': {
341
+ POST: 'search.docWiki.search',
342
+ },
305
343
  '/search/v2/message': {
306
344
  POST: { name: 'search.message.create', pagination: { argIndex: 1 } },
307
345
  },
@@ -12,6 +12,8 @@ export namespace SecurityAndCompliance {
12
12
  deviceRecord: DeviceRecord.Methods
13
13
  deviceApplyRecord: DeviceApplyRecord.Methods
14
14
  openapiLog: OpenapiLog.Methods
15
+ multiGeoEntity: MultiGeoEntity.Methods
16
+ userMigration: UserMigration.Methods
15
17
  }
16
18
 
17
19
  export namespace DeviceRecord {
@@ -312,6 +314,104 @@ export namespace SecurityAndCompliance {
312
314
  page_token?: string
313
315
  }
314
316
  }
317
+
318
+ export namespace MultiGeoEntity {
319
+ export interface Methods {
320
+ tenant: Tenant.Methods
321
+ }
322
+
323
+ export namespace Tenant {
324
+ export interface Methods {
325
+ /**
326
+ * 获取地理位置列表
327
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/security_and_compliance-v1/multi_geo_entity-tenant/get
328
+ */
329
+ get(): Promise<GetResponse>
330
+ }
331
+
332
+ export interface GetResponse {
333
+ /** 多地理位置租户信息 */
334
+ tenant?: Lark.Tenant
335
+ }
336
+ }
337
+ }
338
+
339
+ export namespace UserMigration {
340
+ export interface Methods {
341
+ /**
342
+ * 迁移用户
343
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/security_and_compliance-v1/user_migration/create
344
+ */
345
+ create(body: CreateRequest, query?: CreateQuery): Promise<CreateResponse>
346
+ /**
347
+ * 获取单个用户迁移状态
348
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/security_and_compliance-v1/user_migration/get
349
+ */
350
+ get(user_id: string, query?: GetQuery): Promise<GetResponse>
351
+ /**
352
+ * 批量获取用户迁移状态
353
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/security_and_compliance-v1/user_migration/search
354
+ */
355
+ search(body: SearchRequest, query?: SearchQuery): Promise<SearchResponse>
356
+ /**
357
+ * 取消用户迁移
358
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/security_and_compliance-v1/user_migration/cancel
359
+ */
360
+ cancel(body: CancelRequest, query?: CancelQuery): Promise<void>
361
+ }
362
+
363
+ export interface CreateRequest {
364
+ /** 迁移用户 id 列表 */
365
+ user_ids: string[]
366
+ /** 迁移目标地理位置区域 */
367
+ dest_geo: string
368
+ }
369
+
370
+ export interface CreateQuery {
371
+ /** 此次调用中使用的用户 ID 的类型 */
372
+ user_id_type: 'user_id' | 'union_id' | 'open_id'
373
+ }
374
+
375
+ export interface CreateResponse {
376
+ /** 用户迁移列表 */
377
+ user_migrations?: Lark.UserMigration[]
378
+ }
379
+
380
+ export interface GetQuery {
381
+ /** 用户 id 类型 */
382
+ user_id_type: 'user_id' | 'union_id' | 'open_id'
383
+ }
384
+
385
+ export interface GetResponse {
386
+ /** 用户迁移 */
387
+ user_migration?: Lark.UserMigration
388
+ }
389
+
390
+ export interface SearchRequest {
391
+ /** 用户 id 列表 */
392
+ user_ids: string[]
393
+ }
394
+
395
+ export interface SearchQuery {
396
+ /** 此次调用中使用的用户 ID 的类型 */
397
+ user_id_type: 'user_id' | 'union_id' | 'open_id'
398
+ }
399
+
400
+ export interface SearchResponse {
401
+ /** 用户迁移列表 */
402
+ items?: Lark.UserMigration[]
403
+ }
404
+
405
+ export interface CancelRequest {
406
+ /** 取消迁移用户 id 列表 */
407
+ user_ids: string[]
408
+ }
409
+
410
+ export interface CancelQuery {
411
+ /** 此次调用中使用的用户 ID 的类型 */
412
+ user_id_type: 'user_id' | 'union_id' | 'open_id'
413
+ }
414
+ }
315
415
  }
316
416
 
317
417
  Internal.define({
@@ -333,4 +433,19 @@ Internal.define({
333
433
  '/security_and_compliance/v1/openapi_logs/list_data': {
334
434
  POST: 'securityAndCompliance.openapiLog.listData',
335
435
  },
436
+ '/security_and_compliance/v1/multi_geo_entity/tenant': {
437
+ GET: 'securityAndCompliance.multiGeoEntity.tenant.get',
438
+ },
439
+ '/security_and_compliance/v1/user_migrations': {
440
+ POST: 'securityAndCompliance.userMigration.create',
441
+ },
442
+ '/security_and_compliance/v1/user_migrations/{user_id}': {
443
+ GET: 'securityAndCompliance.userMigration.get',
444
+ },
445
+ '/security_and_compliance/v1/user_migrations/search': {
446
+ POST: 'securityAndCompliance.userMigration.search',
447
+ },
448
+ '/security_and_compliance/v1/user_migrations/cancel': {
449
+ POST: 'securityAndCompliance.userMigration.cancel',
450
+ },
336
451
  })