@satorijs/adapter-lark 3.12.4 → 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.
package/lib/index.cjs CHANGED
@@ -299,7 +299,7 @@ async function adaptMessage(bot, data, session, details = true) {
299
299
  session.channelId = data.message.chat_id;
300
300
  session.guildId = data.message.chat_id;
301
301
  session.content = content.map((c) => c.toString()).join(" ");
302
- if (data.message.parent_id && details) {
302
+ if (data.message.parent_id && !data.message.thread_id && details) {
303
303
  session.quote = await bot.getMessage(session.channelId, data.message.parent_id, false);
304
304
  }
305
305
  return session;
@@ -1612,8 +1612,11 @@ __export(types_exports, {
1612
1612
  Ehr: () => Ehr,
1613
1613
  EmployeeActiveStatusDirectory: () => EmployeeActiveStatusDirectory,
1614
1614
  EmployeeStaffStatusDirectory: () => EmployeeStaffStatusDirectory,
1615
+ FieldGroupChildType: () => FieldGroupChildType,
1616
+ FormDisplayMode: () => FormDisplayMode,
1615
1617
  GenderDirectory: () => GenderDirectory,
1616
1618
  Hire: () => Hire,
1619
+ IdConvertType: () => IdConvertType,
1617
1620
  IdentityProvider: () => IdentityProvider,
1618
1621
  Mail: () => Mail,
1619
1622
  MindMapLayout: () => MindMapLayout,
@@ -2016,6 +2019,9 @@ var Application;
2016
2019
  })(Feedback = Application2.Feedback || (Application2.Feedback = {}));
2017
2020
  })(Application || (Application = {}));
2018
2021
  Internal.define({
2022
+ "/application/v7/app_avatar/upload": {
2023
+ POST: { name: "application.appAvatar.upload.create", multipart: true }
2024
+ },
2019
2025
  "/application/v6/applications/{app_id}/owner": {
2020
2026
  PUT: "application.owner.update"
2021
2027
  },
@@ -2023,6 +2029,18 @@ Internal.define({
2023
2029
  PUT: "application.collaborators.update",
2024
2030
  GET: "application.collaborators.get"
2025
2031
  },
2032
+ "/application/v7/applications/{app_id}/base": {
2033
+ PATCH: "application.base.patch"
2034
+ },
2035
+ "/application/v7/applications/{app_id}/ability": {
2036
+ PATCH: "application.ability.patch"
2037
+ },
2038
+ "/application/v7/applications/{app_id}/config": {
2039
+ PATCH: "application.config.patch"
2040
+ },
2041
+ "/application/v7/applications/{app_id}/publish": {
2042
+ POST: "application.publish.create"
2043
+ },
2026
2044
  "/application/v6/applications/{app_id}": {
2027
2045
  GET: "application.get",
2028
2046
  PATCH: "application.patch"
@@ -2210,6 +2228,12 @@ Internal.define({
2210
2228
  },
2211
2229
  "/approval/v4/approvals/{approval_code}/unsubscribe": {
2212
2230
  POST: "approval.unsubscribe"
2231
+ },
2232
+ "/approval/v4/districts": {
2233
+ GET: "approval.district.list"
2234
+ },
2235
+ "/approval/v4/districts/search": {
2236
+ POST: "approval.district.search"
2213
2237
  }
2214
2238
  });
2215
2239
 
@@ -2578,12 +2602,18 @@ Internal.define({
2578
2602
  PUT: "bitable.app.table.field.update",
2579
2603
  DELETE: "bitable.app.table.field.delete"
2580
2604
  },
2605
+ "/bitable/v1/apps/{app_token}/tables/{table_id}/field_groups": {
2606
+ POST: "bitable.app.table.fieldGroup.create"
2607
+ },
2581
2608
  "/bitable/v1/apps/{app_token}/dashboards/{block_id}/copy": {
2582
2609
  POST: "bitable.app.dashboard.copy"
2583
2610
  },
2584
2611
  "/bitable/v1/apps/{app_token}/dashboards": {
2585
2612
  GET: { name: "bitable.app.dashboard.list", pagination: { argIndex: 1, itemsKey: "dashboards" } }
2586
2613
  },
2614
+ "/bitable/v1/apps/{app_token}/tables/{table_id}/forms/{form_id}/upgrade": {
2615
+ POST: "bitable.app.table.form.upgrade"
2616
+ },
2587
2617
  "/bitable/v1/apps/{app_token}/tables/{table_id}/forms/{form_id}": {
2588
2618
  PATCH: "bitable.app.table.form.patch",
2589
2619
  GET: "bitable.app.table.form.get"
@@ -2617,6 +2647,9 @@ Internal.define({
2617
2647
  "/bitable/v1/apps/{app_token}/workflows/{workflow_id}": {
2618
2648
  PUT: "bitable.app.workflow.update"
2619
2649
  },
2650
+ "/bitable/v1/apps/{app_token}/block_workflows": {
2651
+ GET: "bitable.app.blockWorkflow.list"
2652
+ },
2620
2653
  "/bitable/v1/apps/{app_token}/roles": {
2621
2654
  POST: "bitable.app.role.create",
2622
2655
  GET: { name: "bitable.app.role.list", pagination: { argIndex: 1 } }
@@ -2942,6 +2975,9 @@ Internal.define({
2942
2975
  "/contact/v3/users/{user_id}/update_user_id": {
2943
2976
  PATCH: "contact.user.updateUserId"
2944
2977
  },
2978
+ "/contact/v3/users/basic_batch": {
2979
+ POST: "contact.user.basicBatch"
2980
+ },
2945
2981
  "/contact/v3/users/batch": {
2946
2982
  GET: "contact.user.batch"
2947
2983
  },
@@ -3397,6 +3433,21 @@ Internal.define({
3397
3433
  "/corehr/v2/employees/additional_jobs/batch": {
3398
3434
  POST: { name: "corehr.employees.additionalJob.batch", pagination: { argIndex: 1 } }
3399
3435
  },
3436
+ "/corehr/v2/custom_org/create_emp_custom_org": {
3437
+ POST: "corehr.employee.customOrg.createEmpCustomOrg"
3438
+ },
3439
+ "/corehr/v2/custom_org/edit_emp_custom_org": {
3440
+ POST: "corehr.employee.customOrg.editEmpCustomOrg"
3441
+ },
3442
+ "/corehr/v2/custom_org/querybyid": {
3443
+ GET: "corehr.employee.customOrg.querybyid"
3444
+ },
3445
+ "/corehr/v2/custom_org/employment_custom_org_record": {
3446
+ GET: "corehr.employee.customOrg.employmentCustomOrgRecord"
3447
+ },
3448
+ "/corehr/v2/custom_org/del": {
3449
+ POST: "corehr.employee.customOrg.del"
3450
+ },
3400
3451
  "/corehr/v2/default_cost_centers/update_version": {
3401
3452
  POST: "corehr.defaultCostCenter.updateVersion"
3402
3453
  },
@@ -3467,6 +3518,9 @@ Internal.define({
3467
3518
  "/corehr/v2/locations/query_recent_change": {
3468
3519
  GET: "corehr.location.queryRecentChange"
3469
3520
  },
3521
+ "/corehr/v2/locations/query_multi_timeline": {
3522
+ POST: "corehr.location.queryMultiTimeline"
3523
+ },
3470
3524
  "/corehr/v2/locations/batch_get": {
3471
3525
  POST: "corehr.location.batchGet"
3472
3526
  },
@@ -3492,6 +3546,9 @@ Internal.define({
3492
3546
  "/corehr/v2/companies/active": {
3493
3547
  POST: "corehr.company.active"
3494
3548
  },
3549
+ "/corehr/v2/companies/query_multi_timeline": {
3550
+ POST: "corehr.company.queryMultiTimeline"
3551
+ },
3495
3552
  "/corehr/v2/companies/query_recent_change": {
3496
3553
  GET: "corehr.company.queryRecentChange"
3497
3554
  },
@@ -3681,6 +3738,9 @@ Internal.define({
3681
3738
  "/corehr/v2/pre_hires/{pre_hire_id}/complete": {
3682
3739
  POST: "corehr.preHire.complete"
3683
3740
  },
3741
+ "/corehr/v2/probation/edit": {
3742
+ POST: "corehr.probation.edit"
3743
+ },
3684
3744
  "/corehr/v2/probation/assessments": {
3685
3745
  POST: "corehr.probation.assessment.create"
3686
3746
  },
@@ -3859,6 +3919,9 @@ Internal.define({
3859
3919
  "/corehr/v2/query_flow_data_template": {
3860
3920
  POST: "corehr.process.queryFlowDataTemplate.create"
3861
3921
  },
3922
+ "/corehr/v2/process_start": {
3923
+ POST: "corehr.processStart.create"
3924
+ },
3862
3925
  "/corehr/v2/process_revoke/{process_id}": {
3863
3926
  PUT: "corehr.processRevoke.update"
3864
3927
  },
@@ -4209,6 +4272,15 @@ Internal.define({
4209
4272
  "/drive/v1/files/{file_token}/delete_subscribe": {
4210
4273
  DELETE: "drive.file.deleteSubscribe"
4211
4274
  },
4275
+ "/drive/v1/user/subscription": {
4276
+ POST: "drive.user.subscription"
4277
+ },
4278
+ "/drive/v1/user/remove_subscription": {
4279
+ DELETE: "drive.user.removeSubscription"
4280
+ },
4281
+ "/drive/v1/user/subscription_status": {
4282
+ GET: "drive.user.subscriptionStatus"
4283
+ },
4212
4284
  "/drive/v1/permissions/{token}/members": {
4213
4285
  POST: "drive.permission.member.create",
4214
4286
  GET: "drive.permission.member.list"
@@ -4247,12 +4319,16 @@ Internal.define({
4247
4319
  GET: "drive.file.comment.get"
4248
4320
  },
4249
4321
  "/drive/v1/files/{file_token}/comments/{comment_id}/replies": {
4322
+ POST: "drive.file.comment.reply.create",
4250
4323
  GET: { name: "drive.file.comment.reply.list", pagination: { argIndex: 2 } }
4251
4324
  },
4252
4325
  "/drive/v1/files/{file_token}/comments/{comment_id}/replies/{reply_id}": {
4253
4326
  PUT: "drive.file.comment.reply.update",
4254
4327
  DELETE: "drive.file.comment.reply.delete"
4255
4328
  },
4329
+ "/drive/v2/files/{file_token}/comments/reaction": {
4330
+ POST: "drive.commentReaction.updateReaction"
4331
+ },
4256
4332
  "/drive/v1/files/{file_token}/subscriptions/{subscription_id}": {
4257
4333
  GET: "drive.file.subscription.get",
4258
4334
  PATCH: "drive.file.subscription.patch"
@@ -5383,6 +5459,9 @@ Internal.define({
5383
5459
  POST: "im.message.reaction.create",
5384
5460
  GET: { name: "im.message.reaction.list", pagination: { argIndex: 1 } }
5385
5461
  },
5462
+ "/im/messages/reactions/batch_query": {
5463
+ POST: "im.message.reaction.batchQuery"
5464
+ },
5386
5465
  "/im/v1/messages/{message_id}/reactions/{reaction_id}": {
5387
5466
  DELETE: "im.message.reaction.delete"
5388
5467
  },
@@ -5748,6 +5827,9 @@ Internal.define({
5748
5827
  "/minutes/v1/minutes/{minute_token}/statistics": {
5749
5828
  GET: "minutes.minute.statistics.get"
5750
5829
  },
5830
+ "/minutes/v1/minutes/{minute_token}/artifacts": {
5831
+ GET: "minutes.minute.artifacts"
5832
+ },
5751
5833
  "/minutes/v1/minutes/{minute_token}": {
5752
5834
  GET: "minutes.minute.get"
5753
5835
  }
@@ -6196,6 +6278,21 @@ Internal.define({
6196
6278
  },
6197
6279
  "/security_and_compliance/v1/openapi_logs/list_data": {
6198
6280
  POST: "securityAndCompliance.openapiLog.listData"
6281
+ },
6282
+ "/security_and_compliance/v1/multi_geo_entity/tenant": {
6283
+ GET: "securityAndCompliance.multiGeoEntity.tenant.get"
6284
+ },
6285
+ "/security_and_compliance/v1/user_migrations": {
6286
+ POST: "securityAndCompliance.userMigration.create"
6287
+ },
6288
+ "/security_and_compliance/v1/user_migrations/{user_id}": {
6289
+ GET: "securityAndCompliance.userMigration.get"
6290
+ },
6291
+ "/security_and_compliance/v1/user_migrations/search": {
6292
+ POST: "securityAndCompliance.userMigration.search"
6293
+ },
6294
+ "/security_and_compliance/v1/user_migrations/cancel": {
6295
+ POST: "securityAndCompliance.userMigration.cancel"
6199
6296
  }
6200
6297
  });
6201
6298
 
@@ -6264,6 +6361,46 @@ Internal.define({
6264
6361
  }
6265
6362
  });
6266
6363
 
6364
+ // src/types/spark.ts
6365
+ Internal.define({
6366
+ "/spark/v1/apps/{app_id}/tables": {
6367
+ GET: { name: "spark.app.table.getTableList", pagination: { argIndex: 1 } }
6368
+ },
6369
+ "/spark/v1/apps/{app_id}/tables/{table_name}": {
6370
+ GET: "spark.app.table.getTableDetail"
6371
+ },
6372
+ "/spark/v1/apps/{app_id}/tables/{table_name}/records": {
6373
+ GET: "spark.app.table.getTableRecordList",
6374
+ POST: "spark.app.table.postTableRecords",
6375
+ PATCH: "spark.app.table.patchTableRecords",
6376
+ DELETE: "spark.app.table.deleteTableRecords"
6377
+ },
6378
+ "/spark/v1/apps/{app_id}/tables/{table_name}/records_batch_update": {
6379
+ PATCH: "spark.app.table.batchUpdateTableRecords"
6380
+ },
6381
+ "/spark/v1/apps/{app_id}/views/{view_name}/records": {
6382
+ GET: "spark.app.view.getViewRecordList"
6383
+ },
6384
+ "/spark/v1/apps/{app_id}/enums": {
6385
+ GET: { name: "spark.app.enum.getEnumList", pagination: { argIndex: 1 } }
6386
+ },
6387
+ "/spark/v1/apps/{app_id}/enums/{enum_name}": {
6388
+ GET: "spark.app.enum.getEnumDetail"
6389
+ },
6390
+ "/spark/v1/apps/{app_id}/storage/upload": {
6391
+ POST: { name: "spark.app.storage.upload", multipart: true }
6392
+ },
6393
+ "/spark/v1/apps/{app_id}/storage": {
6394
+ GET: { name: "spark.app.storage.download", type: "binary" }
6395
+ },
6396
+ "/spark/v1/apps/{app_id}/sql_commands": {
6397
+ POST: "spark.app.sqlCommands"
6398
+ },
6399
+ "/spark/v1/directory/user/id_convert": {
6400
+ POST: "spark.directory.user.idConvert"
6401
+ }
6402
+ });
6403
+
6267
6404
  // src/types/speech_to_text.ts
6268
6405
  Internal.define({
6269
6406
  "/speech_to_text/v1/speech/file_recognize": {
@@ -6633,6 +6770,9 @@ var Vc;
6633
6770
  })(RoomConfig = Vc2.RoomConfig || (Vc2.RoomConfig = {}));
6634
6771
  })(Vc || (Vc = {}));
6635
6772
  Internal.define({
6773
+ "/vc/v1/notes/{note_id}": {
6774
+ GET: "vc.note.get"
6775
+ },
6636
6776
  "/vc/v1/reserves/apply": {
6637
6777
  POST: "vc.reserve.apply"
6638
6778
  },
@@ -6644,6 +6784,9 @@ Internal.define({
6644
6784
  "/vc/v1/reserves/{reserve_id}/get_active_meeting": {
6645
6785
  GET: "vc.reserve.getActiveMeeting"
6646
6786
  },
6787
+ "/vc/v1/meetings/search": {
6788
+ POST: { name: "vc.meeting.search", pagination: { argIndex: 1 } }
6789
+ },
6647
6790
  "/vc/v1/meetings/{meeting_id}/invite": {
6648
6791
  PATCH: "vc.meeting.invite"
6649
6792
  },
@@ -6956,6 +7099,15 @@ var EmployeeStaffStatusDirectory = /* @__PURE__ */ ((EmployeeStaffStatusDirector
6956
7099
  EmployeeStaffStatusDirectory2[EmployeeStaffStatusDirectory2["EmployeeStaffStatusDirectoryPreResigned"] = 5] = "EmployeeStaffStatusDirectoryPreResigned";
6957
7100
  return EmployeeStaffStatusDirectory2;
6958
7101
  })(EmployeeStaffStatusDirectory || {});
7102
+ var FieldGroupChildType = /* @__PURE__ */ ((FieldGroupChildType2) => {
7103
+ FieldGroupChildType2["Field"] = "field";
7104
+ return FieldGroupChildType2;
7105
+ })(FieldGroupChildType || {});
7106
+ var FormDisplayMode = /* @__PURE__ */ ((FormDisplayMode2) => {
7107
+ FormDisplayMode2["Traditional"] = "traditional";
7108
+ FormDisplayMode2["OneQuestionPerPage"] = "one_question_per_page";
7109
+ return FormDisplayMode2;
7110
+ })(FormDisplayMode || {});
6959
7111
  var GenderDirectory = /* @__PURE__ */ ((GenderDirectory2) => {
6960
7112
  GenderDirectory2[GenderDirectory2["GenderDirectoryUnknown"] = 0] = "GenderDirectoryUnknown";
6961
7113
  GenderDirectory2[GenderDirectory2["GenderDirectoryMan"] = 1] = "GenderDirectoryMan";
@@ -6963,6 +7115,13 @@ var GenderDirectory = /* @__PURE__ */ ((GenderDirectory2) => {
6963
7115
  GenderDirectory2[GenderDirectory2["GenderDirectoryOther"] = 3] = "GenderDirectoryOther";
6964
7116
  return GenderDirectory2;
6965
7117
  })(GenderDirectory || {});
7118
+ var IdConvertType = /* @__PURE__ */ ((IdConvertType2) => {
7119
+ IdConvertType2[IdConvertType2["ForceUserID2FeishuOpenID"] = 10] = "ForceUserID2FeishuOpenID";
7120
+ IdConvertType2[IdConvertType2["ForceUserID2FeishuUnionID"] = 11] = "ForceUserID2FeishuUnionID";
7121
+ IdConvertType2[IdConvertType2["FeishuOpenID2ForceUserID"] = 20] = "FeishuOpenID2ForceUserID";
7122
+ IdConvertType2[IdConvertType2["FeishuUnionID2ForceUserID"] = 21] = "FeishuUnionID2ForceUserID";
7123
+ return IdConvertType2;
7124
+ })(IdConvertType || {});
6966
7125
  var IdentityProvider = /* @__PURE__ */ ((IdentityProvider2) => {
6967
7126
  IdentityProvider2["IdentityProviderAily"] = "AILY";
6968
7127
  IdentityProvider2["IdentityProviderFeishu"] = "FEISHU";
@@ -7,8 +7,13 @@ declare module '../internal' {
7
7
  }
8
8
  export declare namespace Application {
9
9
  interface Methods {
10
+ appAvatar: AppAvatar.Methods;
10
11
  owner: Owner.Methods;
11
12
  collaborators: Collaborators.Methods;
13
+ base: Base.Methods;
14
+ ability: Ability.Methods;
15
+ config: Config.Methods;
16
+ publish: Publish.Methods;
12
17
  appVersion: AppVersion.Methods;
13
18
  scope: Scope.Methods;
14
19
  contactsRange: ContactsRange.Methods;
@@ -167,6 +172,28 @@ export declare namespace Application {
167
172
  /** 应用数据列表 */
168
173
  app_list?: Lark.Application[];
169
174
  }
175
+ namespace AppAvatar {
176
+ interface Methods {
177
+ upload: Upload.Methods;
178
+ }
179
+ namespace Upload {
180
+ interface Methods {
181
+ /**
182
+ * 上传应用图标
183
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/application-v7/application-v7/app_avatar-upload/create
184
+ */
185
+ create(form: CreateForm): Promise<CreateResponse>;
186
+ }
187
+ interface CreateForm {
188
+ /** 图片 */
189
+ avatar: Blob;
190
+ }
191
+ interface CreateResponse {
192
+ /** 图片 URL,给创建/更新应用使用 */
193
+ url?: string;
194
+ }
195
+ }
196
+ }
170
197
  namespace Owner {
171
198
  interface Methods {
172
199
  /**
@@ -216,6 +243,96 @@ export declare namespace Application {
216
243
  collaborators?: Lark.AppCollaborator[];
217
244
  }
218
245
  }
246
+ namespace Base {
247
+ interface Methods {
248
+ /**
249
+ * 更新应用基础信息配置
250
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/application-v7/application-v7/application-base/patch
251
+ */
252
+ patch(app_id: string, body: PatchRequest): Promise<void>;
253
+ }
254
+ interface PatchRequest {
255
+ /** 应用名称描述多语种 */
256
+ i18ns?: Lark.AppI18nInfo[];
257
+ /** 应用icon图片链接 */
258
+ avatar_url?: string;
259
+ /** 应用管理后台url链接 */
260
+ homepage_url?: string;
261
+ }
262
+ }
263
+ namespace Ability {
264
+ interface Methods {
265
+ /**
266
+ * 更新应用能力配置
267
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/application-v7/application-v7/application-ability/patch
268
+ */
269
+ patch(app_id: string, body: PatchRequest): Promise<void>;
270
+ }
271
+ interface PatchRequest {
272
+ /** 网页应用 */
273
+ web_app?: Lark.AppAbilityWeb;
274
+ /** 机器人 */
275
+ bot?: Lark.AppAbilityBot;
276
+ }
277
+ }
278
+ namespace Config {
279
+ interface Methods {
280
+ /**
281
+ * 更新应用开发配置
282
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/application-v7/application-v7/application-config/patch
283
+ */
284
+ patch(app_id: string, body: PatchRequest, query?: PatchQuery): Promise<void>;
285
+ }
286
+ interface PatchRequest {
287
+ /** 权限配置 */
288
+ scope?: Lark.AppConfigScope;
289
+ /** 事件配置 */
290
+ event?: Lark.AppConfigEvent;
291
+ /** 安全配置 */
292
+ security?: Lark.AppConfigSecurity;
293
+ /** 可见性范围配置 */
294
+ visibility?: Lark.AppConfigVisibility;
295
+ /** 通讯录权限范围配置 */
296
+ contacts?: Lark.AppConfigContactsRange;
297
+ /** 事件与回调加密策略 */
298
+ event_and_callback_encrypt_strategy?: Lark.EventAndCallbackEncryptStrategy;
299
+ /** 回调配置 */
300
+ callback?: Lark.AppConfigCallback;
301
+ }
302
+ interface PatchQuery {
303
+ /** 部门id 类型 */
304
+ department_id_type?: 'open_department_id' | 'department_id';
305
+ /** open_id 类型 */
306
+ user_id_type?: 'open_id' | 'user_id' | 'union_id';
307
+ }
308
+ }
309
+ namespace Publish {
310
+ interface Methods {
311
+ /**
312
+ * 提交发布自建应用
313
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/application-v7/application-v7/application-publish/create
314
+ */
315
+ create(app_id: string, body: CreateRequest): Promise<CreateResponse>;
316
+ }
317
+ interface CreateRequest {
318
+ /** 移动端默认能力 */
319
+ mobile_default_ability?: 'gadget' | 'web_app' | 'bot';
320
+ /** PC端默认能力 */
321
+ pc_default_ability?: 'gadget' | 'web_app' | 'bot';
322
+ /** 申请理由 */
323
+ remark: string;
324
+ /** 更新描述 */
325
+ changelog: string;
326
+ /** 应用版本号 */
327
+ version?: string;
328
+ }
329
+ interface CreateResponse {
330
+ /** 应用版本ID */
331
+ version_id?: string;
332
+ /** 应用版本号 */
333
+ version?: string;
334
+ }
335
+ }
219
336
  namespace AppVersion {
220
337
  interface Methods {
221
338
  /**
@@ -12,6 +12,7 @@ export declare namespace Approval {
12
12
  externalApproval: ExternalApproval.Methods;
13
13
  externalInstance: ExternalInstance.Methods;
14
14
  externalTask: ExternalTask.Methods;
15
+ district: District.Methods;
15
16
  /**
16
17
  * 创建审批定义
17
18
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/approval-v4/approval/create
@@ -843,4 +844,48 @@ export declare namespace Approval {
843
844
  status?: 'PENDING' | 'APPROVED' | 'REJECTED' | 'TRANSFERRED' | 'DONE';
844
845
  }
845
846
  }
847
+ namespace District {
848
+ interface Methods {
849
+ /**
850
+ * 查询地理库信息
851
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/approval-v4/district/list
852
+ */
853
+ list(query?: ListQuery): Promise<ListResponse>;
854
+ /**
855
+ * 搜索地理库信息
856
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/approval-v4/district/search
857
+ */
858
+ search(body: SearchRequest, query?: SearchQuery): Promise<SearchResponse>;
859
+ }
860
+ interface ListQuery extends Pagination {
861
+ /** 指定根节点,仅遍历该节点下的数据,默认遍历根节点,返回值内容与list_type 参数有关 */
862
+ root_district_id?: string;
863
+ /** 遍历类型,不同的类型内容会有差异 */
864
+ list_type?: 'sub_level' | 'leaf_level';
865
+ /** 返回指定语言的内容,默认返回英文数据 */
866
+ locale?: 'zh-CN' | 'en-US';
867
+ }
868
+ interface ListResponse {
869
+ /** 地理库的版本,地理库更新时版本会同步更新,如果应用将地理数据存在本地,需要定时判断版本,在变化以及时更新本地数据 */
870
+ version?: string;
871
+ has_more?: boolean;
872
+ page_token?: string;
873
+ /** 区域列表 */
874
+ items?: Lark.District[];
875
+ }
876
+ interface SearchRequest {
877
+ /** 根据ID查询指定区域的信息 */
878
+ district_ids?: string[];
879
+ /** 关键字,用于模糊查询符合条件的地址信息 */
880
+ keyword?: string;
881
+ }
882
+ interface SearchQuery {
883
+ /** 语言 */
884
+ locale?: 'zh-CN' | 'en-US';
885
+ }
886
+ interface SearchResponse {
887
+ /** 区域列表 */
888
+ items?: Lark.District[];
889
+ }
890
+ }
846
891
  }
@@ -15,6 +15,7 @@ export declare namespace Bitable {
15
15
  dashboard: Dashboard.Methods;
16
16
  role: Role.Methods;
17
17
  workflow: Workflow.Methods;
18
+ blockWorkflow: BlockWorkflow.Methods;
18
19
  /**
19
20
  * 创建多维表格
20
21
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/bitable-v1/app/create
@@ -77,6 +78,7 @@ export declare namespace Bitable {
77
78
  view: View.Methods;
78
79
  record: Record.Methods;
79
80
  field: Field.Methods;
81
+ fieldGroup: FieldGroup.Methods;
80
82
  form: Form.Methods;
81
83
  /**
82
84
  * 新增一个数据表
@@ -614,9 +616,31 @@ export declare namespace Bitable {
614
616
  deleted?: boolean;
615
617
  }
616
618
  }
619
+ namespace FieldGroup {
620
+ interface Methods {
621
+ /**
622
+ * 创建字段编组
623
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/bitable-v1/app-table-field_group/create
624
+ */
625
+ create(app_token: string, table_id: string, body: CreateRequest): Promise<CreateResponse>;
626
+ }
627
+ interface CreateRequest {
628
+ /** 要新增字段编组列表 */
629
+ field_groups: Lark.FieldGroup[];
630
+ }
631
+ interface CreateResponse {
632
+ /** 字段编组的内容 */
633
+ field_groups?: string;
634
+ }
635
+ }
617
636
  namespace Form {
618
637
  interface Methods {
619
638
  field: Field.Methods;
639
+ /**
640
+ * 升级表单
641
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/bitable-v1/app-table-form/upgrade
642
+ */
643
+ upgrade(app_token: string, table_id: string, form_id: string, body: UpgradeRequest): Promise<UpgradeResponse>;
620
644
  /**
621
645
  * 更新表单元数据
622
646
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/bitable-v1/app-table-form/patch
@@ -628,6 +652,20 @@ export declare namespace Bitable {
628
652
  */
629
653
  get(app_token: string, table_id: string, form_id: string): Promise<GetResponse>;
630
654
  }
655
+ interface UpgradeRequest {
656
+ /** 升级后的表单名称 */
657
+ form_name: string;
658
+ /**
659
+ * 表单布局模式。可选值
660
+ * - traditional:传统布局
661
+ * - one_question_per_page:一页一题布局:
662
+ */
663
+ display_mode: Lark.FormDisplayMode;
664
+ }
665
+ interface UpgradeResponse {
666
+ /** 升级后的表单 */
667
+ form?: Lark.UpgradedForm;
668
+ }
631
669
  interface PatchRequest {
632
670
  /** 表单名称 */
633
671
  name?: string;
@@ -852,5 +890,18 @@ export declare namespace Bitable {
852
890
  status: string;
853
891
  }
854
892
  }
893
+ namespace BlockWorkflow {
894
+ interface Methods {
895
+ /**
896
+ * 列出工作流
897
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/bitable-v1/app-block_workflow/list
898
+ */
899
+ list(app_token: string): Promise<ListResponse>;
900
+ }
901
+ interface ListResponse {
902
+ /** 工作流列表 */
903
+ workflows?: Lark.BlockWorkflow[];
904
+ }
905
+ }
855
906
  }
856
907
  }
@@ -69,6 +69,11 @@ export declare namespace Contact {
69
69
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/user/get
70
70
  */
71
71
  get(user_id: string, query?: GetQuery): Promise<GetResponse>;
72
+ /**
73
+ * 通过 ID 获取用户姓名
74
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/user/basic_batch
75
+ */
76
+ basicBatch(body: BasicBatchRequest, query?: BasicBatchQuery): Promise<BasicBatchResponse>;
72
77
  /**
73
78
  * 批量获取用户信息
74
79
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/user/batch
@@ -274,6 +279,18 @@ export declare namespace Contact {
274
279
  interface GetResponse {
275
280
  user?: Lark.User;
276
281
  }
282
+ interface BasicBatchRequest {
283
+ /** 用户ID */
284
+ user_ids: string[];
285
+ }
286
+ interface BasicBatchQuery {
287
+ /** 此次调用中使用的用户ID的类型 */
288
+ user_id_type?: 'user_id' | 'union_id' | 'open_id';
289
+ }
290
+ interface BasicBatchResponse {
291
+ /** 用户信息 */
292
+ users?: Lark.BasicUser[];
293
+ }
277
294
  interface BatchQuery {
278
295
  /** 要查询的用户ID列表 */
279
296
  user_ids: string[];