@satorijs/adapter-lark 3.12.3 → 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;
@@ -1474,7 +1474,6 @@ var LarkBot = class extends import_core6.Bot {
1474
1474
  this.online();
1475
1475
  }
1476
1476
  async refreshToken() {
1477
- if (!this.isActive) return;
1478
1477
  let timeout = import_core6.Time.minute * 20;
1479
1478
  try {
1480
1479
  const { tenant_access_token: token } = await this.internal.auth.tenantAccessTokenInternal({
@@ -1613,8 +1612,11 @@ __export(types_exports, {
1613
1612
  Ehr: () => Ehr,
1614
1613
  EmployeeActiveStatusDirectory: () => EmployeeActiveStatusDirectory,
1615
1614
  EmployeeStaffStatusDirectory: () => EmployeeStaffStatusDirectory,
1615
+ FieldGroupChildType: () => FieldGroupChildType,
1616
+ FormDisplayMode: () => FormDisplayMode,
1616
1617
  GenderDirectory: () => GenderDirectory,
1617
1618
  Hire: () => Hire,
1619
+ IdConvertType: () => IdConvertType,
1618
1620
  IdentityProvider: () => IdentityProvider,
1619
1621
  Mail: () => Mail,
1620
1622
  MindMapLayout: () => MindMapLayout,
@@ -1912,6 +1914,12 @@ Internal.define({
1912
1914
  "/apaas/v1/user_tasks/{task_id}/chat_group": {
1913
1915
  POST: "apaas.userTask.chatGroup"
1914
1916
  },
1917
+ "/apaas/v1/workspaces/{workspace_id}/tables": {
1918
+ GET: { name: "apaas.workspace.table.list", pagination: { argIndex: 1 } }
1919
+ },
1920
+ "/apaas/v1/workspaces/{workspace_id}/tables/{table_name}": {
1921
+ GET: "apaas.workspace.table.tableGet"
1922
+ },
1915
1923
  "/apaas/v1/workspaces/{workspace_id}/tables/{table_name}/records": {
1916
1924
  GET: "apaas.workspace.table.recordsGet",
1917
1925
  POST: "apaas.workspace.table.recordsPost",
@@ -1924,6 +1932,12 @@ Internal.define({
1924
1932
  "/apaas/v1/workspaces/{workspace_id}/views/{view_name}/records": {
1925
1933
  GET: "apaas.workspace.view.viewsGet"
1926
1934
  },
1935
+ "/apaas/v1/workspaces/{workspace_id}/enums": {
1936
+ GET: { name: "apaas.workspace.enum.list", pagination: { argIndex: 1 } }
1937
+ },
1938
+ "/apaas/v1/workspaces/{workspace_id}/enums/{enum_name}": {
1939
+ GET: "apaas.workspace.enum.enumGet"
1940
+ },
1927
1941
  "/apaas/v1/workspaces/{workspace_id}/sql_commands": {
1928
1942
  POST: "apaas.workspace.sqlCommands"
1929
1943
  }
@@ -2005,6 +2019,9 @@ var Application;
2005
2019
  })(Feedback = Application2.Feedback || (Application2.Feedback = {}));
2006
2020
  })(Application || (Application = {}));
2007
2021
  Internal.define({
2022
+ "/application/v7/app_avatar/upload": {
2023
+ POST: { name: "application.appAvatar.upload.create", multipart: true }
2024
+ },
2008
2025
  "/application/v6/applications/{app_id}/owner": {
2009
2026
  PUT: "application.owner.update"
2010
2027
  },
@@ -2012,6 +2029,18 @@ Internal.define({
2012
2029
  PUT: "application.collaborators.update",
2013
2030
  GET: "application.collaborators.get"
2014
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
+ },
2015
2044
  "/application/v6/applications/{app_id}": {
2016
2045
  GET: "application.get",
2017
2046
  PATCH: "application.patch"
@@ -2124,7 +2153,8 @@ Internal.define({
2124
2153
  GET: "approval.get"
2125
2154
  },
2126
2155
  "/approval/v4/instances": {
2127
- POST: "approval.instance.create"
2156
+ POST: "approval.instance.create",
2157
+ GET: { name: "approval.instance.list", pagination: { argIndex: 0, itemsKey: "instance_code_list" } }
2128
2158
  },
2129
2159
  "/approval/v4/instances/cancel": {
2130
2160
  POST: "approval.instance.cancel"
@@ -2198,6 +2228,12 @@ Internal.define({
2198
2228
  },
2199
2229
  "/approval/v4/approvals/{approval_code}/unsubscribe": {
2200
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"
2201
2237
  }
2202
2238
  });
2203
2239
 
@@ -2566,12 +2602,18 @@ Internal.define({
2566
2602
  PUT: "bitable.app.table.field.update",
2567
2603
  DELETE: "bitable.app.table.field.delete"
2568
2604
  },
2605
+ "/bitable/v1/apps/{app_token}/tables/{table_id}/field_groups": {
2606
+ POST: "bitable.app.table.fieldGroup.create"
2607
+ },
2569
2608
  "/bitable/v1/apps/{app_token}/dashboards/{block_id}/copy": {
2570
2609
  POST: "bitable.app.dashboard.copy"
2571
2610
  },
2572
2611
  "/bitable/v1/apps/{app_token}/dashboards": {
2573
2612
  GET: { name: "bitable.app.dashboard.list", pagination: { argIndex: 1, itemsKey: "dashboards" } }
2574
2613
  },
2614
+ "/bitable/v1/apps/{app_token}/tables/{table_id}/forms/{form_id}/upgrade": {
2615
+ POST: "bitable.app.table.form.upgrade"
2616
+ },
2575
2617
  "/bitable/v1/apps/{app_token}/tables/{table_id}/forms/{form_id}": {
2576
2618
  PATCH: "bitable.app.table.form.patch",
2577
2619
  GET: "bitable.app.table.form.get"
@@ -2605,6 +2647,9 @@ Internal.define({
2605
2647
  "/bitable/v1/apps/{app_token}/workflows/{workflow_id}": {
2606
2648
  PUT: "bitable.app.workflow.update"
2607
2649
  },
2650
+ "/bitable/v1/apps/{app_token}/block_workflows": {
2651
+ GET: "bitable.app.blockWorkflow.list"
2652
+ },
2608
2653
  "/bitable/v1/apps/{app_token}/roles": {
2609
2654
  POST: "bitable.app.role.create",
2610
2655
  GET: { name: "bitable.app.role.list", pagination: { argIndex: 1 } }
@@ -2930,6 +2975,9 @@ Internal.define({
2930
2975
  "/contact/v3/users/{user_id}/update_user_id": {
2931
2976
  PATCH: "contact.user.updateUserId"
2932
2977
  },
2978
+ "/contact/v3/users/basic_batch": {
2979
+ POST: "contact.user.basicBatch"
2980
+ },
2933
2981
  "/contact/v3/users/batch": {
2934
2982
  GET: "contact.user.batch"
2935
2983
  },
@@ -3385,6 +3433,21 @@ Internal.define({
3385
3433
  "/corehr/v2/employees/additional_jobs/batch": {
3386
3434
  POST: { name: "corehr.employees.additionalJob.batch", pagination: { argIndex: 1 } }
3387
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
+ },
3388
3451
  "/corehr/v2/default_cost_centers/update_version": {
3389
3452
  POST: "corehr.defaultCostCenter.updateVersion"
3390
3453
  },
@@ -3455,6 +3518,9 @@ Internal.define({
3455
3518
  "/corehr/v2/locations/query_recent_change": {
3456
3519
  GET: "corehr.location.queryRecentChange"
3457
3520
  },
3521
+ "/corehr/v2/locations/query_multi_timeline": {
3522
+ POST: "corehr.location.queryMultiTimeline"
3523
+ },
3458
3524
  "/corehr/v2/locations/batch_get": {
3459
3525
  POST: "corehr.location.batchGet"
3460
3526
  },
@@ -3480,6 +3546,9 @@ Internal.define({
3480
3546
  "/corehr/v2/companies/active": {
3481
3547
  POST: "corehr.company.active"
3482
3548
  },
3549
+ "/corehr/v2/companies/query_multi_timeline": {
3550
+ POST: "corehr.company.queryMultiTimeline"
3551
+ },
3483
3552
  "/corehr/v2/companies/query_recent_change": {
3484
3553
  GET: "corehr.company.queryRecentChange"
3485
3554
  },
@@ -3669,6 +3738,9 @@ Internal.define({
3669
3738
  "/corehr/v2/pre_hires/{pre_hire_id}/complete": {
3670
3739
  POST: "corehr.preHire.complete"
3671
3740
  },
3741
+ "/corehr/v2/probation/edit": {
3742
+ POST: "corehr.probation.edit"
3743
+ },
3672
3744
  "/corehr/v2/probation/assessments": {
3673
3745
  POST: "corehr.probation.assessment.create"
3674
3746
  },
@@ -3844,6 +3916,12 @@ Internal.define({
3844
3916
  "/corehr/v2/processes/{process_id}/form_variable_data": {
3845
3917
  GET: "corehr.process.formVariableData.get"
3846
3918
  },
3919
+ "/corehr/v2/query_flow_data_template": {
3920
+ POST: "corehr.process.queryFlowDataTemplate.create"
3921
+ },
3922
+ "/corehr/v2/process_start": {
3923
+ POST: "corehr.processStart.create"
3924
+ },
3847
3925
  "/corehr/v2/process_revoke/{process_id}": {
3848
3926
  PUT: "corehr.processRevoke.update"
3849
3927
  },
@@ -4194,6 +4272,15 @@ Internal.define({
4194
4272
  "/drive/v1/files/{file_token}/delete_subscribe": {
4195
4273
  DELETE: "drive.file.deleteSubscribe"
4196
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
+ },
4197
4284
  "/drive/v1/permissions/{token}/members": {
4198
4285
  POST: "drive.permission.member.create",
4199
4286
  GET: "drive.permission.member.list"
@@ -4232,12 +4319,16 @@ Internal.define({
4232
4319
  GET: "drive.file.comment.get"
4233
4320
  },
4234
4321
  "/drive/v1/files/{file_token}/comments/{comment_id}/replies": {
4322
+ POST: "drive.file.comment.reply.create",
4235
4323
  GET: { name: "drive.file.comment.reply.list", pagination: { argIndex: 2 } }
4236
4324
  },
4237
4325
  "/drive/v1/files/{file_token}/comments/{comment_id}/replies/{reply_id}": {
4238
4326
  PUT: "drive.file.comment.reply.update",
4239
4327
  DELETE: "drive.file.comment.reply.delete"
4240
4328
  },
4329
+ "/drive/v2/files/{file_token}/comments/reaction": {
4330
+ POST: "drive.commentReaction.updateReaction"
4331
+ },
4241
4332
  "/drive/v1/files/{file_token}/subscriptions/{subscription_id}": {
4242
4333
  GET: "drive.file.subscription.get",
4243
4334
  PATCH: "drive.file.subscription.patch"
@@ -5368,6 +5459,9 @@ Internal.define({
5368
5459
  POST: "im.message.reaction.create",
5369
5460
  GET: { name: "im.message.reaction.list", pagination: { argIndex: 1 } }
5370
5461
  },
5462
+ "/im/messages/reactions/batch_query": {
5463
+ POST: "im.message.reaction.batchQuery"
5464
+ },
5371
5465
  "/im/v1/messages/{message_id}/reactions/{reaction_id}": {
5372
5466
  DELETE: "im.message.reaction.delete"
5373
5467
  },
@@ -5733,6 +5827,9 @@ Internal.define({
5733
5827
  "/minutes/v1/minutes/{minute_token}/statistics": {
5734
5828
  GET: "minutes.minute.statistics.get"
5735
5829
  },
5830
+ "/minutes/v1/minutes/{minute_token}/artifacts": {
5831
+ GET: "minutes.minute.artifacts"
5832
+ },
5736
5833
  "/minutes/v1/minutes/{minute_token}": {
5737
5834
  GET: "minutes.minute.get"
5738
5835
  }
@@ -5937,6 +6034,9 @@ Internal.define({
5937
6034
  "/performance/v2/reviewees/query": {
5938
6035
  POST: "performance.reviewee.query"
5939
6036
  },
6037
+ "/performance/v2/user_info/query": {
6038
+ POST: "performance.userInfo.query"
6039
+ },
5940
6040
  "/performance/v2/review_templates/query": {
5941
6041
  POST: { name: "performance.reviewTemplate.query", pagination: { argIndex: 1, itemsKey: "review_templates" } }
5942
6042
  },
@@ -6045,6 +6145,9 @@ var Search;
6045
6145
  })(DataSource2 = Search2.DataSource || (Search2.DataSource = {}));
6046
6146
  })(Search || (Search = {}));
6047
6147
  Internal.define({
6148
+ "/search/v2/doc_wiki/search": {
6149
+ POST: "search.docWiki.search"
6150
+ },
6048
6151
  "/search/v2/message": {
6049
6152
  POST: { name: "search.message.create", pagination: { argIndex: 1 } }
6050
6153
  },
@@ -6175,6 +6278,21 @@ Internal.define({
6175
6278
  },
6176
6279
  "/security_and_compliance/v1/openapi_logs/list_data": {
6177
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"
6178
6296
  }
6179
6297
  });
6180
6298
 
@@ -6243,6 +6361,46 @@ Internal.define({
6243
6361
  }
6244
6362
  });
6245
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
+
6246
6404
  // src/types/speech_to_text.ts
6247
6405
  Internal.define({
6248
6406
  "/speech_to_text/v1/speech/file_recognize": {
@@ -6612,6 +6770,9 @@ var Vc;
6612
6770
  })(RoomConfig = Vc2.RoomConfig || (Vc2.RoomConfig = {}));
6613
6771
  })(Vc || (Vc = {}));
6614
6772
  Internal.define({
6773
+ "/vc/v1/notes/{note_id}": {
6774
+ GET: "vc.note.get"
6775
+ },
6615
6776
  "/vc/v1/reserves/apply": {
6616
6777
  POST: "vc.reserve.apply"
6617
6778
  },
@@ -6623,6 +6784,9 @@ Internal.define({
6623
6784
  "/vc/v1/reserves/{reserve_id}/get_active_meeting": {
6624
6785
  GET: "vc.reserve.getActiveMeeting"
6625
6786
  },
6787
+ "/vc/v1/meetings/search": {
6788
+ POST: { name: "vc.meeting.search", pagination: { argIndex: 1 } }
6789
+ },
6626
6790
  "/vc/v1/meetings/{meeting_id}/invite": {
6627
6791
  PATCH: "vc.meeting.invite"
6628
6792
  },
@@ -6935,6 +7099,15 @@ var EmployeeStaffStatusDirectory = /* @__PURE__ */ ((EmployeeStaffStatusDirector
6935
7099
  EmployeeStaffStatusDirectory2[EmployeeStaffStatusDirectory2["EmployeeStaffStatusDirectoryPreResigned"] = 5] = "EmployeeStaffStatusDirectoryPreResigned";
6936
7100
  return EmployeeStaffStatusDirectory2;
6937
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 || {});
6938
7111
  var GenderDirectory = /* @__PURE__ */ ((GenderDirectory2) => {
6939
7112
  GenderDirectory2[GenderDirectory2["GenderDirectoryUnknown"] = 0] = "GenderDirectoryUnknown";
6940
7113
  GenderDirectory2[GenderDirectory2["GenderDirectoryMan"] = 1] = "GenderDirectoryMan";
@@ -6942,6 +7115,13 @@ var GenderDirectory = /* @__PURE__ */ ((GenderDirectory2) => {
6942
7115
  GenderDirectory2[GenderDirectory2["GenderDirectoryOther"] = 3] = "GenderDirectoryOther";
6943
7116
  return GenderDirectory2;
6944
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 || {});
6945
7125
  var IdentityProvider = /* @__PURE__ */ ((IdentityProvider2) => {
6946
7126
  IdentityProvider2["IdentityProviderAily"] = "AILY";
6947
7127
  IdentityProvider2["IdentityProviderFeishu"] = "FEISHU";
@@ -663,6 +663,7 @@ export declare namespace Apaas {
663
663
  interface Methods {
664
664
  table: Table.Methods;
665
665
  view: View.Methods;
666
+ enum: Enum.Methods;
666
667
  /**
667
668
  * 执行SQL
668
669
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/workspace/sql_commands
@@ -679,6 +680,16 @@ export declare namespace Apaas {
679
680
  }
680
681
  namespace Table {
681
682
  interface Methods {
683
+ /**
684
+ * 获取工作空间下的数据表列表
685
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/workspace-table/list
686
+ */
687
+ list(workspace_id: string, query?: Pagination): Paginated<Lark.WorkspaceDataTable>;
688
+ /**
689
+ * 获取数据表详细信息
690
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/workspace-table/table_get
691
+ */
692
+ tableGet(workspace_id: string, table_name: string): Promise<TableGetResponse>;
682
693
  /**
683
694
  * 查询数据表数据记录
684
695
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/workspace-table/records_get
@@ -705,6 +716,14 @@ export declare namespace Apaas {
705
716
  */
706
717
  recordsDelete(workspace_id: string, table_name: string, query?: RecordsDeleteQuery): Promise<void>;
707
718
  }
719
+ interface TableGetResponse {
720
+ /** 数据表名,如 student */
721
+ name: string;
722
+ /** 数据表描述 */
723
+ description: string;
724
+ /** 数据表列 */
725
+ columns: Lark.WorkspaceDataTableColumnInfo[];
726
+ }
708
727
  interface RecordsGetQuery extends Pagination {
709
728
  /**
710
729
  * 返回的列,默认为 *,即返回所有列。
@@ -809,5 +828,31 @@ export declare namespace Apaas {
809
828
  items: string;
810
829
  }
811
830
  }
831
+ namespace Enum {
832
+ interface Methods {
833
+ /**
834
+ * 获取工作空间下的自定义枚举列表
835
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/workspace-enum/list
836
+ */
837
+ list(workspace_id: string, query?: Pagination): Paginated<Lark.WorkspaceEnum>;
838
+ /**
839
+ * 获取自定义枚举详细信息
840
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/workspace-enum/enum_get
841
+ */
842
+ enumGet(workspace_id: string, enum_name: string): Promise<EnumGetResponse>;
843
+ }
844
+ interface EnumGetResponse {
845
+ /** 枚举名称 */
846
+ name: string;
847
+ /** 枚举描述 */
848
+ description: string;
849
+ /** 枚举值列表 */
850
+ options: string[];
851
+ /** 创建时间,毫秒时间戳 */
852
+ created_at: string;
853
+ /** 创建人 */
854
+ created_by: Lark.WorkspaceUserInfo;
855
+ }
856
+ }
812
857
  }
813
858
  }
@@ -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
@@ -121,6 +122,11 @@ export declare namespace Approval {
121
122
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/approval-v4/instance/get
122
123
  */
123
124
  get(instance_id: string, query?: GetQuery): Promise<GetResponse>;
125
+ /**
126
+ * 批量获取审批实例 ID
127
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/approval-v4/instance/list
128
+ */
129
+ list(query?: ListQuery): Paginated<string, 'instance_code_list'>;
124
130
  /**
125
131
  * 退回审批任务
126
132
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/approval-v4/instance/specified_rollback
@@ -288,6 +294,14 @@ export declare namespace Approval {
288
294
  /** 审批实例 Code */
289
295
  instance_code: string;
290
296
  }
297
+ interface ListQuery extends Pagination {
298
+ /** 审批定义唯一标识 */
299
+ approval_code: string;
300
+ /** 审批实例创建时间区间(毫秒) */
301
+ start_time: string;
302
+ /** 审批实例创建时间区间(毫秒) */
303
+ end_time: string;
304
+ }
291
305
  interface SpecifiedRollbackRequest {
292
306
  /** 用户ID */
293
307
  user_id: string;
@@ -830,4 +844,48 @@ export declare namespace Approval {
830
844
  status?: 'PENDING' | 'APPROVED' | 'REJECTED' | 'TRANSFERRED' | 'DONE';
831
845
  }
832
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
+ }
833
891
  }