@satorijs/adapter-lark 3.8.5 → 3.9.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 (126) hide show
  1. package/lib/bot.d.ts +1 -1
  2. package/lib/content.d.ts +433 -0
  3. package/lib/http.d.ts +1 -1
  4. package/lib/index.cjs +2796 -1713
  5. package/lib/index.cjs.map +6 -0
  6. package/lib/index.d.ts +4 -2
  7. package/lib/internal.d.ts +38 -0
  8. package/lib/message.d.ts +2 -0
  9. package/lib/types/acs.d.ts +177 -0
  10. package/lib/types/admin.d.ts +270 -0
  11. package/lib/types/aily.d.ts +221 -0
  12. package/lib/types/apaas.d.ts +499 -0
  13. package/lib/types/application.d.ts +406 -0
  14. package/lib/types/approval.d.ts +779 -0
  15. package/lib/types/attendance.d.ts +957 -0
  16. package/lib/types/auth.d.ts +86 -0
  17. package/lib/types/authen.d.ts +191 -0
  18. package/lib/types/baike.d.ts +239 -0
  19. package/lib/types/bitable.d.ts +691 -0
  20. package/lib/types/board.d.ts +19 -0
  21. package/lib/types/calendar.d.ts +653 -0
  22. package/lib/types/cardkit.d.ts +139 -0
  23. package/lib/types/compensation.d.ts +54 -0
  24. package/lib/types/contact.d.ts +1137 -0
  25. package/lib/types/corehr.d.ts +4383 -0
  26. package/lib/types/docs.d.ts +23 -0
  27. package/lib/types/document_ai.d.ts +257 -0
  28. package/lib/types/docx.d.ts +380 -0
  29. package/lib/types/drive.d.ts +1045 -0
  30. package/lib/types/ehr.d.ts +32 -0
  31. package/lib/types/event.d.ts +9 -18
  32. package/lib/types/guild.d.ts +59 -0
  33. package/lib/types/helpdesk.d.ts +738 -0
  34. package/lib/types/hire.d.ts +3150 -0
  35. package/lib/types/human_authentication.d.ts +27 -0
  36. package/lib/types/im.d.ts +1300 -0
  37. package/lib/types/index.d.ts +16432 -34
  38. package/lib/types/lingo.d.ts +254 -0
  39. package/lib/types/mail.d.ts +680 -0
  40. package/lib/types/mdm.d.ts +42 -0
  41. package/lib/types/message/asset.d.ts +40 -0
  42. package/lib/types/minutes.d.ts +31 -0
  43. package/lib/types/moments.d.ts +18 -0
  44. package/lib/types/okr.d.ts +205 -0
  45. package/lib/types/optical_char_recognition.d.ts +17 -0
  46. package/lib/types/passport.d.ts +45 -0
  47. package/lib/types/payroll.d.ts +50 -0
  48. package/lib/types/performance.d.ts +413 -0
  49. package/lib/types/personal_settings.d.ts +87 -0
  50. package/lib/types/report.d.ts +57 -0
  51. package/lib/types/search.d.ts +216 -0
  52. package/lib/types/security_and_compliance.d.ts +24 -0
  53. package/lib/types/sheets.d.ts +326 -0
  54. package/lib/types/speech_to_text.d.ts +39 -0
  55. package/lib/types/task.d.ts +1153 -0
  56. package/lib/types/tenant.d.ts +23 -0
  57. package/lib/types/translation.d.ts +37 -0
  58. package/lib/types/user.d.ts +78 -0
  59. package/lib/types/utils.d.ts +9 -0
  60. package/lib/types/vc.d.ts +948 -0
  61. package/lib/types/verification.d.ts +14 -0
  62. package/lib/types/wiki.d.ts +240 -0
  63. package/lib/types/workplace.d.ts +43 -0
  64. package/lib/utils.d.ts +143 -7
  65. package/package.json +6 -4
  66. package/src/bot.ts +19 -3
  67. package/src/{types/message/content.ts → content.ts} +1 -0
  68. package/src/http.ts +1 -3
  69. package/src/index.ts +4 -2
  70. package/src/internal.ts +144 -0
  71. package/src/message.ts +24 -11
  72. package/src/types/acs.ts +236 -0
  73. package/src/types/admin.ts +328 -0
  74. package/src/types/aily.ts +288 -0
  75. package/src/types/apaas.ts +646 -0
  76. package/src/types/application.ts +520 -0
  77. package/src/types/approval.ts +924 -0
  78. package/src/types/attendance.ts +1153 -0
  79. package/src/types/auth.ts +114 -0
  80. package/src/types/authen.ts +220 -0
  81. package/src/types/baike.ts +306 -0
  82. package/src/types/bitable.ts +879 -0
  83. package/src/types/board.ts +31 -0
  84. package/src/types/calendar.ts +817 -0
  85. package/src/types/cardkit.ts +182 -0
  86. package/src/types/compensation.ts +79 -0
  87. package/src/types/contact.ts +1411 -0
  88. package/src/types/corehr.ts +5288 -0
  89. package/src/types/docs.ts +33 -0
  90. package/src/types/document_ai.ts +352 -0
  91. package/src/types/docx.ts +471 -0
  92. package/src/types/drive.ts +1312 -0
  93. package/src/types/ehr.ts +43 -0
  94. package/src/types/event.ts +15 -21
  95. package/src/types/helpdesk.ts +916 -0
  96. package/src/types/hire.ts +3918 -0
  97. package/src/types/human_authentication.ts +38 -0
  98. package/src/types/im.ts +1605 -0
  99. package/src/types/index.ts +17754 -39
  100. package/src/types/lingo.ts +321 -0
  101. package/src/types/mail.ts +851 -0
  102. package/src/types/mdm.ts +57 -0
  103. package/src/types/minutes.ts +46 -0
  104. package/src/types/moments.ts +28 -0
  105. package/src/types/okr.ts +261 -0
  106. package/src/types/optical_char_recognition.ts +27 -0
  107. package/src/types/passport.ts +61 -0
  108. package/src/types/payroll.ts +69 -0
  109. package/src/types/performance.ts +524 -0
  110. package/src/types/personal_settings.ts +116 -0
  111. package/src/types/report.ts +77 -0
  112. package/src/types/search.ts +268 -0
  113. package/src/types/security_and_compliance.ts +33 -0
  114. package/src/types/sheets.ts +425 -0
  115. package/src/types/speech_to_text.ts +54 -0
  116. package/src/types/task.ts +1464 -0
  117. package/src/types/tenant.ts +36 -0
  118. package/src/types/translation.ts +52 -0
  119. package/src/types/vc.ts +1197 -0
  120. package/src/types/verification.ts +23 -0
  121. package/src/types/wiki.ts +313 -0
  122. package/src/types/workplace.ts +59 -0
  123. package/src/utils.ts +160 -8
  124. package/src/types/api.ts +0 -30835
  125. package/src/types/internal.ts +0 -84
  126. package/src/types/message/index.ts +0 -97
@@ -0,0 +1,221 @@
1
+ import { AilyKnowledgeAskProcessData, AilyKnowledgeFaq, AilyKnowledgeMessage, AilyMention, AilyMessage, AilyMessageContentType, AilySession, DataAsset, DataAssetTag, Run, Skill, SkillGlobalVariable } from '.';
2
+ import { Pagination } from '../internal';
3
+ declare module '../internal' {
4
+ interface Internal {
5
+ /**
6
+ * 创建会话
7
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/aily-v1/aily_session/create
8
+ */
9
+ createAilyAilySession(body: CreateAilyAilySessionRequest): Promise<CreateAilyAilySessionResponse>;
10
+ /**
11
+ * 更新会话
12
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/aily-v1/aily_session/update
13
+ */
14
+ updateAilyAilySession(aily_session_id: string, body: UpdateAilyAilySessionRequest): Promise<UpdateAilyAilySessionResponse>;
15
+ /**
16
+ * 获取会话
17
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/aily-v1/aily_session/get
18
+ */
19
+ getAilyAilySession(aily_session_id: string): Promise<GetAilyAilySessionResponse>;
20
+ /**
21
+ * 删除会话
22
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/aily-v1/aily_session/delete
23
+ */
24
+ deleteAilyAilySession(aily_session_id: string): Promise<void>;
25
+ /**
26
+ * 发送智能伙伴消息
27
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/aily-v1/aily_session-aily_message/create
28
+ */
29
+ createAilyAilySessionAilyMessage(aily_session_id: string, body: CreateAilyAilySessionAilyMessageRequest): Promise<CreateAilyAilySessionAilyMessageResponse>;
30
+ /**
31
+ * 获取智能伙伴消息
32
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/aily-v1/aily_session-aily_message/get
33
+ */
34
+ getAilyAilySessionAilyMessage(aily_session_id: string, aily_message_id: string): Promise<GetAilyAilySessionAilyMessageResponse>;
35
+ /**
36
+ * 列出智能伙伴消息
37
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/aily-v1/aily_session-aily_message/list
38
+ */
39
+ listAilyAilySessionAilyMessage(aily_session_id: string, query?: ListAilyAilySessionAilyMessageQuery): Paginated<AilyMessage, 'messages'>;
40
+ /**
41
+ * 创建运行
42
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/aily-v1/aily_session-run/create
43
+ */
44
+ createAilyAilySessionRun(aily_session_id: string, body: CreateAilyAilySessionRunRequest): Promise<CreateAilyAilySessionRunResponse>;
45
+ /**
46
+ * 获取运行
47
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/aily-v1/aily_session-run/get
48
+ */
49
+ getAilyAilySessionRun(aily_session_id: string, run_id: string): Promise<GetAilyAilySessionRunResponse>;
50
+ /**
51
+ * 列出运行
52
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/aily-v1/aily_session-run/list
53
+ */
54
+ listAilyAilySessionRun(aily_session_id: string, query?: Pagination): Paginated<Run, 'runs'>;
55
+ /**
56
+ * 取消运行
57
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/aily-v1/aily_session-run/cancel
58
+ */
59
+ cancelAilyAilySessionRun(aily_session_id: string, run_id: string): Promise<CancelAilyAilySessionRunResponse>;
60
+ /**
61
+ * 调用技能
62
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/aily-v1/app-skill/start
63
+ */
64
+ startAilyAppSkill(app_id: string, skill_id: string, body: StartAilyAppSkillRequest): Promise<StartAilyAppSkillResponse>;
65
+ /**
66
+ * 获取技能信息
67
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/aily-v1/app-skill/get
68
+ */
69
+ getAilyAppSkill(app_id: string, skill_id: string): Promise<GetAilyAppSkillResponse>;
70
+ /**
71
+ * 查询技能列表
72
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/aily-v1/app-skill/list
73
+ */
74
+ listAilyAppSkill(app_id: string, query?: Pagination): Paginated<Skill, 'skills'>;
75
+ /**
76
+ * 执行数据知识问答
77
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/aily-v1/app-knowledge/ask
78
+ */
79
+ askAilyAppKnowledge(app_id: string, body: AskAilyAppKnowledgeRequest): Promise<AskAilyAppKnowledgeResponse>;
80
+ /**
81
+ * 查询数据知识列表
82
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/aily-v1/app-data_asset/list
83
+ */
84
+ listAilyAppDataAsset(app_id: string, query?: ListAilyAppDataAssetQuery): Paginated<DataAsset>;
85
+ /**
86
+ * 获取数据知识分类列表
87
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/aily-v1/app-data_asset_tag/list
88
+ */
89
+ listAilyAppDataAssetTag(app_id: string, query?: ListAilyAppDataAssetTagQuery): Paginated<DataAssetTag>;
90
+ }
91
+ }
92
+ export interface CreateAilyAilySessionRequest {
93
+ /** 渠道上下文 */
94
+ channel_context?: string;
95
+ /** 其他透传信息 */
96
+ metadata?: string;
97
+ }
98
+ export interface UpdateAilyAilySessionRequest {
99
+ /** 渠道上下文 */
100
+ channel_context?: string;
101
+ /** 其他透传信息 */
102
+ metadata?: string;
103
+ }
104
+ export interface CreateAilyAilySessionAilyMessageRequest {
105
+ /** 幂等id,同一 session 下相同的幂等 id 算一条消息,有效期72h */
106
+ idempotent_id: string;
107
+ /** 消息内容类型 */
108
+ content_type: AilyMessageContentType;
109
+ /** 消息内容 */
110
+ content: string;
111
+ /** 消息中包含的文件 ID 列表 */
112
+ file_ids?: string[];
113
+ /** 引用的消息 ID */
114
+ quote_message_id?: string;
115
+ /** 被@的实体 */
116
+ mentions?: AilyMention[];
117
+ }
118
+ export interface ListAilyAilySessionAilyMessageQuery extends Pagination {
119
+ /** 运行 ID */
120
+ run_id?: string;
121
+ /** 返回生成中的消息 */
122
+ with_partial_message?: boolean;
123
+ }
124
+ export interface CreateAilyAilySessionRunRequest {
125
+ /** 应用 ID */
126
+ app_id: string;
127
+ /** 技能 ID */
128
+ skill_id?: string;
129
+ /** 指定技能 ID 时可以同时指定技能输入 */
130
+ skill_input?: string;
131
+ /** 其他透传信息 */
132
+ metadata?: string;
133
+ }
134
+ export interface StartAilyAppSkillRequest {
135
+ /** 技能的全局变量 */
136
+ global_variable?: SkillGlobalVariable;
137
+ /** 技能的自定义变量 */
138
+ input?: string;
139
+ }
140
+ export interface AskAilyAppKnowledgeRequest {
141
+ /** 输入消息(当前仅支持纯文本输入) */
142
+ message: AilyKnowledgeMessage;
143
+ /** 控制知识问答所依据的数据知识范围 */
144
+ data_asset_ids?: string[];
145
+ /** 控制知识问答所依据的数据知识分类范围 */
146
+ data_asset_tag_ids?: string[];
147
+ }
148
+ export interface ListAilyAppDataAssetQuery extends Pagination {
149
+ /** 模糊匹配关键词 */
150
+ keyword?: string;
151
+ /** 根据数据知识 ID 进行过滤 */
152
+ data_asset_ids?: string[];
153
+ /** 根据数据知识分类 ID 进行过滤 */
154
+ data_asset_tag_ids?: string[];
155
+ /** 结果是否包含数据与知识项目 */
156
+ with_data_asset_item?: boolean;
157
+ /** 结果是否包含数据连接状态 */
158
+ with_connect_status?: boolean;
159
+ }
160
+ export interface ListAilyAppDataAssetTagQuery extends Pagination {
161
+ /** 模糊匹配分类名称 */
162
+ keyword?: string;
163
+ /** 模糊匹配分类名称 */
164
+ data_asset_tag_ids?: string[];
165
+ }
166
+ export interface CreateAilyAilySessionResponse {
167
+ /** 创建的会话信息 */
168
+ session?: AilySession;
169
+ }
170
+ export interface UpdateAilyAilySessionResponse {
171
+ /** 会话信息 */
172
+ session?: AilySession;
173
+ }
174
+ export interface GetAilyAilySessionResponse {
175
+ /** 会话信息 */
176
+ session?: AilySession;
177
+ }
178
+ export interface CreateAilyAilySessionAilyMessageResponse {
179
+ /** 消息信息 */
180
+ message?: AilyMessage;
181
+ }
182
+ export interface GetAilyAilySessionAilyMessageResponse {
183
+ /** 消息信息 */
184
+ message?: AilyMessage;
185
+ }
186
+ export interface CreateAilyAilySessionRunResponse {
187
+ /** 运行信息 */
188
+ run?: Run;
189
+ }
190
+ export interface GetAilyAilySessionRunResponse {
191
+ /** 运行信息 */
192
+ run?: Run;
193
+ }
194
+ export interface CancelAilyAilySessionRunResponse {
195
+ /** 运行信息 */
196
+ run?: Run;
197
+ }
198
+ export interface StartAilyAppSkillResponse {
199
+ /** 技能的输出 */
200
+ output?: string;
201
+ /** 技能的执行状态 */
202
+ status?: string;
203
+ }
204
+ export interface GetAilyAppSkillResponse {
205
+ /** 技能信息 */
206
+ skill?: Skill;
207
+ }
208
+ export interface AskAilyAppKnowledgeResponse {
209
+ /** 响应状态,枚举值 */
210
+ status?: 'processing' | 'finished';
211
+ /** 结束类型,枚举值 */
212
+ finish_type?: 'qa' | 'faq';
213
+ /** 响应消息 */
214
+ message?: AilyKnowledgeMessage;
215
+ /** 知识问答运行过程结构化数据,status=finished 且 finish_type=qa 时返回 */
216
+ process_data?: AilyKnowledgeAskProcessData;
217
+ /** 匹配标准问答对结果,status=finished 且 finish_type=faq时返回 */
218
+ faq_result?: AilyKnowledgeFaq;
219
+ /** 是否有结果,true 则 代表 message 中的内容是通过配置知识而生成的 */
220
+ has_answer?: boolean;
221
+ }