@satorijs/adapter-lark 3.10.6 → 3.11.0
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 +2880 -2370
- package/lib/internal.d.ts +4 -4
- package/lib/types/acs.d.ts +212 -172
- package/lib/types/admin.d.ts +331 -291
- package/lib/types/aily.d.ts +331 -216
- package/lib/types/apaas.d.ts +646 -494
- package/lib/types/application.d.ts +559 -458
- package/lib/types/approval.d.ts +826 -791
- package/lib/types/attendance.d.ts +1094 -994
- package/lib/types/auth.d.ts +66 -61
- package/lib/types/authen.d.ts +221 -186
- package/lib/types/baike.d.ts +258 -233
- package/lib/types/base.d.ts +74 -0
- package/lib/types/bitable.d.ts +830 -770
- package/lib/types/board.d.ts +29 -14
- package/lib/types/calendar.d.ts +660 -605
- package/lib/types/cardkit.d.ts +149 -134
- package/lib/types/compensation.d.ts +84 -49
- package/lib/types/contact.d.ts +1279 -1204
- package/lib/types/corehr.d.ts +4982 -4526
- package/lib/types/directory.d.ts +447 -0
- package/lib/types/docs.d.ts +28 -18
- package/lib/types/document_ai.d.ts +347 -252
- package/lib/types/docx.d.ts +428 -383
- package/lib/types/drive.d.ts +1093 -1048
- package/lib/types/ehr.d.ts +66 -51
- package/lib/types/event.d.ts +16 -6
- package/lib/types/helpdesk.d.ts +816 -741
- package/lib/types/hire.d.ts +3955 -3589
- package/lib/types/human_authentication.d.ts +32 -22
- package/lib/types/im.d.ts +1420 -1295
- package/lib/types/index.d.ts +1422 -330
- package/lib/types/lingo.d.ts +279 -249
- package/lib/types/mail.d.ts +1032 -675
- package/lib/types/mdm.d.ts +105 -37
- package/lib/types/minutes.d.ts +73 -26
- package/lib/types/moments.d.ts +23 -13
- package/lib/types/okr.d.ts +266 -225
- package/lib/types/optical_char_recognition.d.ts +22 -12
- package/lib/types/passport.d.ts +58 -48
- package/lib/types/payroll.d.ts +210 -53
- package/lib/types/performance.d.ts +463 -414
- package/lib/types/personal_settings.d.ts +93 -82
- package/lib/types/report.d.ts +79 -58
- package/lib/types/search.d.ts +265 -235
- package/lib/types/security_and_compliance.d.ts +30 -19
- package/lib/types/sheets.d.ts +356 -321
- package/lib/types/speech_to_text.d.ts +44 -34
- package/lib/types/task.d.ts +998 -1087
- package/lib/types/tenant.d.ts +25 -15
- package/lib/types/translation.d.ts +42 -32
- package/lib/types/trust_party.d.ts +81 -0
- package/lib/types/vc.d.ts +1218 -1123
- package/lib/types/verification.d.ts +11 -6
- package/lib/types/wiki.d.ts +270 -235
- package/lib/types/workplace.d.ts +58 -38
- package/lib/utils.d.ts +2 -2
- package/package.json +4 -4
- package/src/bot.ts +15 -15
- package/src/internal.ts +29 -12
- package/src/message.ts +10 -10
- package/src/types/acs.ts +234 -186
- package/src/types/admin.ts +353 -305
- package/src/types/aily.ts +375 -233
- package/src/types/apaas.ts +754 -568
- package/src/types/application.ts +633 -507
- package/src/types/approval.ts +914 -872
- package/src/types/attendance.ts +1226 -1104
- package/src/types/auth.ts +72 -66
- package/src/types/authen.ts +233 -191
- package/src/types/baike.ts +276 -246
- package/src/types/base.ts +93 -0
- package/src/types/bitable.ts +966 -894
- package/src/types/board.ts +34 -16
- package/src/types/calendar.ts +751 -685
- package/src/types/cardkit.ts +164 -146
- package/src/types/compensation.ts +97 -55
- package/src/types/contact.ts +1465 -1375
- package/src/types/corehr.ts +5664 -5077
- package/src/types/directory.ts +569 -0
- package/src/types/docs.ts +31 -19
- package/src/types/document_ai.ts +401 -287
- package/src/types/docx.ts +492 -438
- package/src/types/drive.ts +1266 -1213
- package/src/types/ehr.ts +71 -53
- package/src/types/event.ts +19 -7
- package/src/types/helpdesk.ts +930 -840
- package/src/types/hire.ts +4453 -4019
- package/src/types/human_authentication.ts +35 -23
- package/src/types/im.ts +1626 -1476
- package/src/types/index.ts +1532 -346
- package/src/types/lingo.ts +299 -263
- package/src/types/mail.ts +1231 -779
- package/src/types/mdm.ts +122 -39
- package/src/types/minutes.ts +88 -28
- package/src/types/moments.ts +26 -14
- package/src/types/okr.ts +286 -238
- package/src/types/optical_char_recognition.ts +25 -13
- package/src/types/passport.ts +62 -50
- package/src/types/payroll.ts +254 -57
- package/src/types/performance.ts +528 -467
- package/src/types/personal_settings.ts +101 -89
- package/src/types/report.ts +86 -62
- package/src/types/search.ts +285 -249
- package/src/types/security_and_compliance.ts +33 -21
- package/src/types/sheets.ts +421 -379
- package/src/types/speech_to_text.ts +48 -36
- package/src/types/task.ts +1152 -1260
- package/src/types/tenant.ts +29 -17
- package/src/types/translation.ts +46 -34
- package/src/types/trust_party.ts +110 -0
- package/src/types/vc.ts +1397 -1283
- package/src/types/verification.ts +13 -7
- package/src/types/wiki.ts +293 -251
- package/src/types/workplace.ts +65 -41
- package/src/utils.ts +3 -3
package/src/types/tenant.ts
CHANGED
|
@@ -1,36 +1,48 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as Lark from '.'
|
|
2
2
|
import { Internal } from '../internal'
|
|
3
3
|
|
|
4
4
|
declare module '../internal' {
|
|
5
5
|
interface Internal {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
tenant: Tenant.Methods
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export namespace Tenant {
|
|
11
|
+
export interface Methods {
|
|
12
|
+
productAssignInfo: ProductAssignInfo.Methods
|
|
11
13
|
/**
|
|
12
14
|
* 获取企业信息
|
|
13
15
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/tenant-v2/tenant/query
|
|
14
16
|
*/
|
|
15
|
-
|
|
17
|
+
query(): Promise<QueryResponse>
|
|
16
18
|
}
|
|
17
|
-
}
|
|
18
19
|
|
|
19
|
-
export interface
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
20
|
+
export interface QueryResponse {
|
|
21
|
+
/** 企业信息 */
|
|
22
|
+
tenant?: Lark.Tenant
|
|
23
|
+
}
|
|
23
24
|
|
|
24
|
-
export
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
export namespace ProductAssignInfo {
|
|
26
|
+
export interface Methods {
|
|
27
|
+
/**
|
|
28
|
+
* 获取企业席位信息接口
|
|
29
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/tenant-v2/tenant-product_assign_info/query
|
|
30
|
+
*/
|
|
31
|
+
query(): Promise<QueryResponse>
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface QueryResponse {
|
|
35
|
+
/** 租户待分配席位列表 */
|
|
36
|
+
assign_info_list?: Lark.TenantAssignInfo[]
|
|
37
|
+
}
|
|
38
|
+
}
|
|
27
39
|
}
|
|
28
40
|
|
|
29
41
|
Internal.define({
|
|
30
42
|
'/tenant/v2/tenant/assign_info_list/query': {
|
|
31
|
-
GET: '
|
|
43
|
+
GET: 'tenant.productAssignInfo.query',
|
|
32
44
|
},
|
|
33
45
|
'/tenant/v2/tenant/query': {
|
|
34
|
-
GET: '
|
|
46
|
+
GET: 'tenant.query',
|
|
35
47
|
},
|
|
36
48
|
})
|
package/src/types/translation.ts
CHANGED
|
@@ -1,52 +1,64 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as Lark from '.'
|
|
2
2
|
import { Internal } from '../internal'
|
|
3
3
|
|
|
4
4
|
declare module '../internal' {
|
|
5
5
|
interface Internal {
|
|
6
|
-
|
|
7
|
-
* 识别文本语种
|
|
8
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/translation-v1/text/detect
|
|
9
|
-
*/
|
|
10
|
-
detectTranslationText(body: DetectTranslationTextRequest): Promise<DetectTranslationTextResponse>
|
|
11
|
-
/**
|
|
12
|
-
* 翻译文本
|
|
13
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/translation-v1/text/translate
|
|
14
|
-
*/
|
|
15
|
-
translateTranslationText(body: TranslateTranslationTextRequest): Promise<TranslateTranslationTextResponse>
|
|
6
|
+
translation: Translation.Methods
|
|
16
7
|
}
|
|
17
8
|
}
|
|
18
9
|
|
|
19
|
-
export
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
10
|
+
export namespace Translation {
|
|
11
|
+
export interface Methods {
|
|
12
|
+
text: Text.Methods
|
|
13
|
+
}
|
|
23
14
|
|
|
24
|
-
export
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
15
|
+
export namespace Text {
|
|
16
|
+
export interface Methods {
|
|
17
|
+
/**
|
|
18
|
+
* 识别文本语种
|
|
19
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/translation-v1/text/detect
|
|
20
|
+
*/
|
|
21
|
+
detect(body: DetectRequest): Promise<DetectResponse>
|
|
22
|
+
/**
|
|
23
|
+
* 翻译文本
|
|
24
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/translation-v1/text/translate
|
|
25
|
+
*/
|
|
26
|
+
translate(body: TranslateRequest): Promise<TranslateResponse>
|
|
27
|
+
}
|
|
28
28
|
|
|
29
|
-
export interface
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
text: string
|
|
34
|
-
/** 目标语言 */
|
|
35
|
-
target_language: string
|
|
36
|
-
/** 请求级术语表,携带术语,仅在本次翻译中生效(最多能携带 128个术语词) */
|
|
37
|
-
glossary?: Term[]
|
|
38
|
-
}
|
|
29
|
+
export interface DetectRequest {
|
|
30
|
+
/** 需要被识别语种的文本 */
|
|
31
|
+
text: string
|
|
32
|
+
}
|
|
39
33
|
|
|
40
|
-
export interface
|
|
41
|
-
|
|
42
|
-
|
|
34
|
+
export interface DetectResponse {
|
|
35
|
+
/** 识别的文本语种,返回符合 ISO 693-1 标准 */
|
|
36
|
+
language: string
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface TranslateRequest {
|
|
40
|
+
/** 源语言 */
|
|
41
|
+
source_language: string
|
|
42
|
+
/** 源文本 */
|
|
43
|
+
text: string
|
|
44
|
+
/** 目标语言 */
|
|
45
|
+
target_language: string
|
|
46
|
+
/** 请求级术语表,携带术语,仅在本次翻译中生效(最多能携带 128个术语词) */
|
|
47
|
+
glossary?: Lark.Term[]
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface TranslateResponse {
|
|
51
|
+
/** 翻译后的文本 */
|
|
52
|
+
text: string
|
|
53
|
+
}
|
|
54
|
+
}
|
|
43
55
|
}
|
|
44
56
|
|
|
45
57
|
Internal.define({
|
|
46
58
|
'/translation/v1/text/detect': {
|
|
47
|
-
POST: '
|
|
59
|
+
POST: 'translation.text.detect',
|
|
48
60
|
},
|
|
49
61
|
'/translation/v1/text/translate': {
|
|
50
|
-
POST: '
|
|
62
|
+
POST: 'translation.text.translate',
|
|
51
63
|
},
|
|
52
64
|
})
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import * as Lark from '.'
|
|
2
|
+
import { Internal, Paginated, Pagination } from '../internal'
|
|
3
|
+
|
|
4
|
+
declare module '../internal' {
|
|
5
|
+
interface Internal {
|
|
6
|
+
trustParty: TrustParty.Methods
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export namespace TrustParty {
|
|
11
|
+
export interface Methods {
|
|
12
|
+
collaborationTenant: CollaborationTenant.Methods
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export namespace CollaborationTenant {
|
|
16
|
+
export interface Methods {
|
|
17
|
+
collaborationUser: CollaborationUser.Methods
|
|
18
|
+
collaborationDepartment: CollaborationDepartment.Methods
|
|
19
|
+
/**
|
|
20
|
+
* 获取可见关联组织的列表
|
|
21
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/trust_party-v1/collaboration_tenant/list
|
|
22
|
+
*/
|
|
23
|
+
list(query?: Pagination): Paginated<Lark.CollaborationTenant, 'target_tenant_list'>
|
|
24
|
+
/**
|
|
25
|
+
* 获取关联组织的部门和成员信息
|
|
26
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/trust_party-v1/collaboration_tenant/visible_organization
|
|
27
|
+
*/
|
|
28
|
+
visibleOrganization(target_tenant_key: string, query?: VisibleOrganizationQuery): Paginated<Lark.CollaborationEntity, 'collaboration_entity_list'>
|
|
29
|
+
/**
|
|
30
|
+
* 获取关联组织详情
|
|
31
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/trust_party-v1/collaboration_tenant/get
|
|
32
|
+
*/
|
|
33
|
+
get(target_tenant_key: string): Promise<GetResponse>
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface VisibleOrganizationQuery extends Pagination {
|
|
37
|
+
/** 此次调用中使用的部门ID的类型 */
|
|
38
|
+
department_id_type?: 'department_id' | 'open_department_id'
|
|
39
|
+
/** 请求关联组织的部门ID,0代表根部门,与target_group_id二选一 */
|
|
40
|
+
target_department_id?: string
|
|
41
|
+
/** 此次调用中使用的用户组ID的类型 */
|
|
42
|
+
group_id_type?: 'group_id' | 'open_group_id'
|
|
43
|
+
/** 请求关联组织的用户组ID,与target_department_id二选一 */
|
|
44
|
+
target_group_id?: string
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface GetResponse {
|
|
48
|
+
/** 对方关联组织详情 */
|
|
49
|
+
target_tenant?: Lark.CollaborationTenant
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export namespace CollaborationUser {
|
|
53
|
+
export interface Methods {
|
|
54
|
+
/**
|
|
55
|
+
* 获取关联组织成员详情
|
|
56
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/trust_party-v1/collaboration_tenant-collaboration_user/get
|
|
57
|
+
*/
|
|
58
|
+
get(target_tenant_key: string, target_user_id: string, query?: GetQuery): Promise<GetResponse>
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface GetQuery {
|
|
62
|
+
/** 用户ID类型 */
|
|
63
|
+
target_user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface GetResponse {
|
|
67
|
+
/** 关联组织用户 */
|
|
68
|
+
target_user: Lark.CollaborationUser
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export namespace CollaborationDepartment {
|
|
73
|
+
export interface Methods {
|
|
74
|
+
/**
|
|
75
|
+
* 获取关联组织部门详情
|
|
76
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/trust_party-v1/collaboration_tenant-collaboration_department/get
|
|
77
|
+
*/
|
|
78
|
+
get(target_tenant_key: string, target_department_id: string, query?: GetQuery): Promise<GetResponse>
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export interface GetQuery {
|
|
82
|
+
/** 对方关联组织的入参部门类型 */
|
|
83
|
+
target_department_id_type?: 'department_id' | 'open_department_id'
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export interface GetResponse {
|
|
87
|
+
/** 对方关联组织的部门 */
|
|
88
|
+
target_department: Lark.CollaborationDepartment
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
Internal.define({
|
|
95
|
+
'/trust_party/v1/collaboration_tenants': {
|
|
96
|
+
GET: { name: 'trustParty.collaborationTenant.list', pagination: { argIndex: 0, itemsKey: 'target_tenant_list' } },
|
|
97
|
+
},
|
|
98
|
+
'/trust_party/v1/collaboration_tenants/{target_tenant_key}/visible_organization': {
|
|
99
|
+
GET: { name: 'trustParty.collaborationTenant.visibleOrganization', pagination: { argIndex: 1, itemsKey: 'collaboration_entity_list' } },
|
|
100
|
+
},
|
|
101
|
+
'/trust_party/v1/collaboration_tenants/{target_tenant_key}': {
|
|
102
|
+
GET: 'trustParty.collaborationTenant.get',
|
|
103
|
+
},
|
|
104
|
+
'/trust_party/v1/collaboration_tenants/{target_tenant_key}/collaboration_users/{target_user_id}': {
|
|
105
|
+
GET: 'trustParty.collaborationTenant.collaborationUser.get',
|
|
106
|
+
},
|
|
107
|
+
'/trust_party/v1/collaboration_tenants/{target_tenant_key}/collaboration_departments/{target_department_id}': {
|
|
108
|
+
GET: 'trustParty.collaborationTenant.collaborationDepartment.get',
|
|
109
|
+
},
|
|
110
|
+
})
|