@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,42 +1,110 @@
1
+ import * as Lark from '.';
1
2
  declare module '../internal' {
2
3
  interface Internal {
3
- /**
4
- * 用户数据维度绑定
5
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/mdm-v1/user_auth_data_relation/bind
6
- */
7
- bindMdmUserAuthDataRelation(body: BindMdmUserAuthDataRelationRequest, query?: BindMdmUserAuthDataRelationQuery): Promise<void>;
8
- /**
9
- * 用户数据维度解绑
10
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/mdm-v1/user_auth_data_relation/unbind
11
- */
12
- unbindMdmUserAuthDataRelation(body: UnbindMdmUserAuthDataRelationRequest, query?: UnbindMdmUserAuthDataRelationQuery): Promise<void>;
4
+ mdm: Mdm.Methods;
13
5
  }
14
6
  }
15
- export interface BindMdmUserAuthDataRelationRequest {
16
- /** 数据类型编码 */
17
- root_dimension_type: string;
18
- /** 数据编码列表 */
19
- sub_dimension_types: string[];
20
- /** 授权人的lark id */
21
- authorized_user_ids: string[];
22
- /** uams系统中应用id */
23
- uams_app_id: string;
24
- }
25
- export interface BindMdmUserAuthDataRelationQuery {
26
- /** 此次调用中使用的用户ID的类型 */
27
- user_id_type?: 'user_id' | 'union_id' | 'open_id';
28
- }
29
- export interface UnbindMdmUserAuthDataRelationRequest {
30
- /** 数据类型编码 */
31
- root_dimension_type: string;
32
- /** 数据编码列表 */
33
- sub_dimension_types: string[];
34
- /** 授权人的lark id */
35
- authorized_user_ids: string[];
36
- /** uams系统中应用id */
37
- uams_app_id: string;
38
- }
39
- export interface UnbindMdmUserAuthDataRelationQuery {
40
- /** 此次调用中使用的用户ID的类型 */
41
- user_id_type?: 'user_id' | 'union_id' | 'open_id';
7
+ export declare namespace Mdm {
8
+ interface Methods {
9
+ batchCountryRegion: BatchCountryRegion.Methods;
10
+ countryRegion: CountryRegion.Methods;
11
+ userAuthDataRelation: UserAuthDataRelation.Methods;
12
+ }
13
+ namespace BatchCountryRegion {
14
+ interface Methods {
15
+ /**
16
+ * 根据主数据编码批量查询国家/地区
17
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/mdm-v3/batch_country_region/get
18
+ */
19
+ get(query?: GetQuery): Promise<GetResponse>;
20
+ }
21
+ interface GetQuery {
22
+ /** 需要的查询字段集 */
23
+ fields: string[];
24
+ /** 主数据编码集 */
25
+ ids: string[];
26
+ /** 语言集 */
27
+ languages: string[];
28
+ }
29
+ interface GetResponse {
30
+ /** 国家/地区目录列表 */
31
+ data?: Lark.CountryRegion[];
32
+ }
33
+ }
34
+ namespace CountryRegion {
35
+ interface Methods {
36
+ /**
37
+ * 分页批量查询国家/地区
38
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/mdm-v3/country_region/list
39
+ */
40
+ list(body: ListRequest, query?: ListQuery): Promise<ListResponse> & AsyncIterableIterator<Lark.CountryRegion>;
41
+ }
42
+ interface ListRequest {
43
+ /** filter */
44
+ filter?: Lark.Filter;
45
+ }
46
+ interface ListQuery {
47
+ /** 语言集 */
48
+ languages: string[];
49
+ /** 需要的查询字段集 */
50
+ fields: string[];
51
+ /** 查询页大小 */
52
+ limit?: number;
53
+ /** 查询起始位置 */
54
+ offset?: number;
55
+ /** 是否返回总数 */
56
+ return_count?: boolean;
57
+ page_token?: string;
58
+ }
59
+ interface ListResponse {
60
+ /** 国家/地区目录列表 */
61
+ data?: Lark.CountryRegion[];
62
+ /** 总数 */
63
+ total?: string;
64
+ /** 下一次分页参数 */
65
+ next_page_token?: string;
66
+ }
67
+ }
68
+ namespace UserAuthDataRelation {
69
+ interface Methods {
70
+ /**
71
+ * 用户数据维度绑定
72
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/mdm-v1/user_auth_data_relation/bind
73
+ */
74
+ bind(body: BindRequest, query?: BindQuery): Promise<void>;
75
+ /**
76
+ * 用户数据维度解绑
77
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/mdm-v1/user_auth_data_relation/unbind
78
+ */
79
+ unbind(body: UnbindRequest, query?: UnbindQuery): Promise<void>;
80
+ }
81
+ interface BindRequest {
82
+ /** 数据类型编码 */
83
+ root_dimension_type: string;
84
+ /** 数据编码列表 */
85
+ sub_dimension_types: string[];
86
+ /** 授权人的lark id */
87
+ authorized_user_ids: string[];
88
+ /** uams系统中应用id */
89
+ uams_app_id: string;
90
+ }
91
+ interface BindQuery {
92
+ /** 此次调用中使用的用户ID的类型 */
93
+ user_id_type?: 'user_id' | 'union_id' | 'open_id';
94
+ }
95
+ interface UnbindRequest {
96
+ /** 数据类型编码 */
97
+ root_dimension_type: string;
98
+ /** 数据编码列表 */
99
+ sub_dimension_types: string[];
100
+ /** 授权人的lark id */
101
+ authorized_user_ids: string[];
102
+ /** uams系统中应用id */
103
+ uams_app_id: string;
104
+ }
105
+ interface UnbindQuery {
106
+ /** 此次调用中使用的用户ID的类型 */
107
+ user_id_type?: 'user_id' | 'union_id' | 'open_id';
108
+ }
109
+ }
42
110
  }
@@ -1,31 +1,78 @@
1
- import { Minute, Statictics } 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/minutes-v1/minute-statistics/get
7
- */
8
- getMinutesMinuteStatistics(minute_token: string, query?: GetMinutesMinuteStatisticsQuery): Promise<GetMinutesMinuteStatisticsResponse>;
9
- /**
10
- * 获取妙记信息
11
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/minutes-v1/minute/get
12
- */
13
- getMinutesMinute(minute_token: string, query?: GetMinutesMinuteQuery): Promise<GetMinutesMinuteResponse>;
4
+ minutes: Minutes.Methods;
14
5
  }
15
6
  }
16
- export interface GetMinutesMinuteStatisticsQuery {
17
- /** 此次调用中使用的用户ID的类型 */
18
- user_id_type?: 'user_id' | 'union_id' | 'open_id';
19
- }
20
- export interface GetMinutesMinuteStatisticsResponse {
21
- /** 妙记浏览信息统计 */
22
- statistics?: Statictics;
23
- }
24
- export interface GetMinutesMinuteQuery {
25
- /** 此次调用中使用的用户ID的类型 */
26
- user_id_type?: 'user_id' | 'union_id' | 'open_id';
27
- }
28
- export interface GetMinutesMinuteResponse {
29
- /** 妙记基本信息 */
30
- minute?: Minute;
7
+ export declare namespace Minutes {
8
+ interface Methods {
9
+ minute: Minute.Methods;
10
+ }
11
+ namespace Minute {
12
+ interface Methods {
13
+ media: Media.Methods;
14
+ transcript: Transcript.Methods;
15
+ statistics: Statistics.Methods;
16
+ /**
17
+ * 获取妙记信息
18
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/minutes-v1/minute/get
19
+ */
20
+ get(minute_token: string, query?: GetQuery): Promise<GetResponse>;
21
+ }
22
+ interface GetQuery {
23
+ /** 此次调用中使用的用户ID的类型 */
24
+ user_id_type?: 'user_id' | 'union_id' | 'open_id';
25
+ }
26
+ interface GetResponse {
27
+ /** 妙记基本信息 */
28
+ minute?: Lark.Minute;
29
+ }
30
+ namespace Media {
31
+ interface Methods {
32
+ /**
33
+ * 下载妙记音视频文件
34
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/minutes-v1/minute-media/get
35
+ */
36
+ get(minute_token: string): Promise<GetResponse>;
37
+ }
38
+ interface GetResponse {
39
+ /** 妙记音视频文件下载链接 */
40
+ download_url?: string;
41
+ }
42
+ }
43
+ namespace Transcript {
44
+ interface Methods {
45
+ /**
46
+ * 导出妙记文字记录
47
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/minutes-v1/minute-transcript/get
48
+ */
49
+ get(minute_token: string, query?: GetQuery): Promise<ArrayBuffer>;
50
+ }
51
+ interface GetQuery {
52
+ /** 是否包含说话人 */
53
+ need_speaker?: boolean;
54
+ /** 是否包含时间戳 */
55
+ need_timestamp?: boolean;
56
+ /** 导出文件格式 */
57
+ file_format?: string;
58
+ }
59
+ }
60
+ namespace Statistics {
61
+ interface Methods {
62
+ /**
63
+ * 获取妙记统计数据
64
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/minutes-v1/minute-statistics/get
65
+ */
66
+ get(minute_token: string, query?: GetQuery): Promise<GetResponse>;
67
+ }
68
+ interface GetQuery {
69
+ /** 此次调用中使用的用户ID的类型 */
70
+ user_id_type?: 'user_id' | 'union_id' | 'open_id';
71
+ }
72
+ interface GetResponse {
73
+ /** 妙记浏览信息统计 */
74
+ statistics?: Lark.Statictics;
75
+ }
76
+ }
77
+ }
31
78
  }
@@ -1,18 +1,28 @@
1
- import { Post } 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/moments-v1/post/get
7
- */
8
- getMomentsPost(post_id: string, query?: GetMomentsPostQuery): Promise<GetMomentsPostResponse>;
4
+ moments: Moments.Methods;
9
5
  }
10
6
  }
11
- export interface GetMomentsPostQuery {
12
- /** 此次调用中使用的用户ID的类型 */
13
- user_id_type?: 'user_id' | 'union_id' | 'open_id';
14
- }
15
- export interface GetMomentsPostResponse {
16
- /** 帖子实体 */
17
- post?: Post;
7
+ export declare namespace Moments {
8
+ interface Methods {
9
+ post: Post.Methods;
10
+ }
11
+ namespace Post {
12
+ interface Methods {
13
+ /**
14
+ * 查询帖子信息
15
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/moments-v1/post/get
16
+ */
17
+ get(post_id: string, query?: GetQuery): Promise<GetResponse>;
18
+ }
19
+ interface GetQuery {
20
+ /** 此次调用中使用的用户ID的类型 */
21
+ user_id_type?: 'user_id' | 'union_id' | 'open_id';
22
+ }
23
+ interface GetResponse {
24
+ /** 帖子实体 */
25
+ post?: Lark.Post;
26
+ }
27
+ }
18
28
  }