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