@satorijs/adapter-lark 3.9.0 → 3.9.2

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 (89) hide show
  1. package/lib/index.cjs +1091 -27
  2. package/lib/internal.d.ts +2 -3
  3. package/lib/types/acs.d.ts +19 -19
  4. package/lib/types/admin.d.ts +58 -32
  5. package/lib/types/aily.d.ts +52 -52
  6. package/lib/types/apaas.d.ts +96 -96
  7. package/lib/types/api.d.ts +14 -1
  8. package/lib/types/application.d.ts +153 -69
  9. package/lib/types/approval.d.ts +186 -154
  10. package/lib/types/attendance.d.ts +395 -353
  11. package/lib/types/auth.d.ts +18 -18
  12. package/lib/types/authen.d.ts +24 -24
  13. package/lib/types/baike.d.ts +42 -42
  14. package/lib/types/bitable.d.ts +276 -192
  15. package/lib/types/calendar.d.ts +144 -144
  16. package/lib/types/cardkit.d.ts +8 -8
  17. package/lib/types/contact.d.ts +209 -137
  18. package/lib/types/corehr.d.ts +761 -613
  19. package/lib/types/document_ai.d.ts +68 -68
  20. package/lib/types/docx.d.ts +103 -95
  21. package/lib/types/drive.d.ts +237 -229
  22. package/lib/types/ehr.d.ts +26 -2
  23. package/lib/types/helpdesk.d.ts +156 -148
  24. package/lib/types/hire.d.ts +954 -510
  25. package/lib/types/im.d.ts +446 -446
  26. package/lib/types/index.d.ts +72 -30
  27. package/lib/types/lingo.d.ts +28 -28
  28. package/lib/types/mail.d.ts +192 -192
  29. package/lib/types/minutes.d.ts +4 -4
  30. package/lib/types/okr.d.ts +86 -58
  31. package/lib/types/passport.d.ts +13 -5
  32. package/lib/types/payroll.d.ts +13 -5
  33. package/lib/types/performance.d.ts +85 -79
  34. package/lib/types/personal_settings.d.ts +12 -12
  35. package/lib/types/report.d.ts +11 -5
  36. package/lib/types/search.d.ts +48 -24
  37. package/lib/types/sheets.d.ts +64 -64
  38. package/lib/types/speech_to_text.d.ts +4 -4
  39. package/lib/types/task.d.ts +191 -185
  40. package/lib/types/translation.d.ts +4 -4
  41. package/lib/types/vc.d.ts +335 -155
  42. package/lib/types/wiki.d.ts +48 -48
  43. package/package.json +1 -1
  44. package/src/internal.ts +3 -4
  45. package/src/types/acs.ts +24 -24
  46. package/src/types/admin.ts +69 -39
  47. package/src/types/aily.ts +61 -61
  48. package/src/types/apaas.ts +113 -113
  49. package/src/types/application.ts +177 -83
  50. package/src/types/approval.ts +210 -174
  51. package/src/types/attendance.ts +466 -421
  52. package/src/types/auth.ts +20 -20
  53. package/src/types/authen.ts +28 -28
  54. package/src/types/baike.ts +55 -55
  55. package/src/types/bitable.ts +321 -235
  56. package/src/types/calendar.ts +167 -167
  57. package/src/types/cardkit.ts +10 -10
  58. package/src/types/contact.ts +251 -169
  59. package/src/types/corehr.ts +905 -736
  60. package/src/types/document_ai.ts +85 -85
  61. package/src/types/docx.ts +117 -108
  62. package/src/types/drive.ts +299 -290
  63. package/src/types/ehr.ts +28 -2
  64. package/src/types/helpdesk.ts +182 -173
  65. package/src/types/hire.ts +1081 -591
  66. package/src/types/im.ts +521 -521
  67. package/src/types/index.ts +73 -30
  68. package/src/types/lingo.ts +36 -36
  69. package/src/types/mail.ts +215 -215
  70. package/src/types/minutes.ts +5 -5
  71. package/src/types/okr.ts +98 -66
  72. package/src/types/passport.ts +15 -6
  73. package/src/types/payroll.ts +15 -6
  74. package/src/types/performance.ts +98 -91
  75. package/src/types/personal_settings.ts +15 -15
  76. package/src/types/report.ts +13 -6
  77. package/src/types/search.ts +57 -29
  78. package/src/types/sheets.ts +80 -80
  79. package/src/types/speech_to_text.ts +5 -5
  80. package/src/types/task.ts +238 -231
  81. package/src/types/translation.ts +5 -5
  82. package/src/types/vc.ts +386 -186
  83. package/src/types/wiki.ts +59 -59
  84. package/src/utils.ts +11 -6
  85. package/lib/index.cjs.map +0 -6
  86. package/lib/types/guild.d.ts +0 -59
  87. package/lib/types/message/asset.d.ts +0 -40
  88. package/lib/types/user.d.ts +0 -78
  89. package/lib/types/utils.d.ts +0 -9
@@ -419,10 +419,18 @@ export interface CreateTaskV2Query {
419
419
  /** 表示user的ID的类型,支持open_id, user_id, union_id */
420
420
  user_id_type?: string;
421
421
  }
422
+ export interface CreateTaskV2Response {
423
+ /** 产生的任务 */
424
+ task?: Task;
425
+ }
422
426
  export interface GetTaskV2Query {
423
427
  /** 表示user的ID的类型,支持open_id, user_id, union_id */
424
428
  user_id_type?: string;
425
429
  }
430
+ export interface GetTaskV2Response {
431
+ /** 获得的任务实体 */
432
+ task?: Task;
433
+ }
426
434
  export interface PatchTaskV2Request {
427
435
  /** 要更新的任务数据,只需要写明要更新的字段 */
428
436
  task?: InputTask;
@@ -433,6 +441,10 @@ export interface PatchTaskV2Query {
433
441
  /** 表示user的ID的类型,支持open_id, user_id, union_id */
434
442
  user_id_type?: string;
435
443
  }
444
+ export interface PatchTaskV2Response {
445
+ /** 更新后的任务 */
446
+ task?: Task;
447
+ }
436
448
  export interface AddMembersTaskV2Request {
437
449
  /** 要添加的members列表 */
438
450
  members: Member[];
@@ -443,6 +455,10 @@ export interface AddMembersTaskV2Query {
443
455
  /** 表示user的ID的类型,支持open_id, user_id, union_id */
444
456
  user_id_type?: string;
445
457
  }
458
+ export interface AddMembersTaskV2Response {
459
+ /** 更新完成后的任务实体数据 */
460
+ task?: Task;
461
+ }
446
462
  export interface RemoveMembersTaskV2Request {
447
463
  /** 要移除的member列表 */
448
464
  members: Member[];
@@ -451,6 +467,10 @@ export interface RemoveMembersTaskV2Query {
451
467
  /** 表示user的ID的类型,支持open_id, user_id, union_id */
452
468
  user_id_type?: string;
453
469
  }
470
+ export interface RemoveMembersTaskV2Response {
471
+ /** 移除成员后的任务数据 */
472
+ task?: Task;
473
+ }
454
474
  export interface ListTaskV2Query extends Pagination {
455
475
  /** 是否按任务完成进行过滤。不填写表示不过滤。 */
456
476
  completed?: boolean;
@@ -459,6 +479,10 @@ export interface ListTaskV2Query extends Pagination {
459
479
  /** 表示user的ID的类型,支持open_id, user_id, union_id */
460
480
  user_id_type?: string;
461
481
  }
482
+ export interface TasklistsTaskV2Response {
483
+ /** 任务所在清单的摘要信息 */
484
+ tasklists?: TaskInTasklistInfo[];
485
+ }
462
486
  export interface AddTasklistTaskV2Request {
463
487
  /** 要添加到的清单的全局唯一ID */
464
488
  tasklist_guid: string;
@@ -469,6 +493,10 @@ export interface AddTasklistTaskV2Query {
469
493
  /** 表示user的ID的类型,支持open_id, user_id, union_id */
470
494
  user_id_type?: string;
471
495
  }
496
+ export interface AddTasklistTaskV2Response {
497
+ /** 添加后的任务详情 */
498
+ task?: Task;
499
+ }
472
500
  export interface RemoveTasklistTaskV2Request {
473
501
  /** 要移除的清单的全局唯一ID */
474
502
  tasklist_guid: string;
@@ -477,6 +505,10 @@ export interface RemoveTasklistTaskV2Query {
477
505
  /** 表示user的ID的类型,支持open_id, user_id, union_id */
478
506
  user_id_type?: string;
479
507
  }
508
+ export interface RemoveTasklistTaskV2Response {
509
+ /** 添加后的任务详情 */
510
+ task?: Task;
511
+ }
480
512
  export interface AddRemindersTaskV2Request {
481
513
  /** 要添加的reminder的列表 */
482
514
  reminders: Reminder[];
@@ -485,6 +517,10 @@ export interface AddRemindersTaskV2Query {
485
517
  /** 表示user的ID的类型,支持open_id, user_id, union_id */
486
518
  user_id_type?: string;
487
519
  }
520
+ export interface AddRemindersTaskV2Response {
521
+ /** 更新完成后的任务实体 */
522
+ task?: Task;
523
+ }
488
524
  export interface RemoveRemindersTaskV2Request {
489
525
  /** 要移除的reminder的id列表 */
490
526
  reminder_ids: string[];
@@ -493,14 +529,26 @@ export interface RemoveRemindersTaskV2Query {
493
529
  /** 表示user的ID的类型,支持open_id, user_id, union_id */
494
530
  user_id_type?: string;
495
531
  }
532
+ export interface RemoveRemindersTaskV2Response {
533
+ /** 移除提醒后的任务详情 */
534
+ task?: Task;
535
+ }
496
536
  export interface AddDependenciesTaskV2Request {
497
537
  /** 要添加的依赖 */
498
538
  dependencies?: TaskDependency[];
499
539
  }
540
+ export interface AddDependenciesTaskV2Response {
541
+ /** 被添加后任务的所有依赖 */
542
+ dependencies?: TaskDependency[];
543
+ }
500
544
  export interface RemoveDependenciesTaskV2Request {
501
545
  /** 要移除的依赖 */
502
546
  dependencies: TaskDependency[];
503
547
  }
548
+ export interface RemoveDependenciesTaskV2Response {
549
+ /** 移除之后的任务GUID */
550
+ dependencies?: TaskDependency[];
551
+ }
504
552
  export interface CreateTaskV2TaskSubtaskRequest {
505
553
  /** 任务标题 */
506
554
  summary: string;
@@ -541,6 +589,10 @@ export interface CreateTaskV2TaskSubtaskQuery {
541
589
  /** 表示user的ID的类型,支持open_id, user_id, union_id */
542
590
  user_id_type?: string;
543
591
  }
592
+ export interface CreateTaskV2TaskSubtaskResponse {
593
+ /** 创建的任务 */
594
+ subtask?: Task;
595
+ }
544
596
  export interface ListTaskV2TaskSubtaskQuery extends Pagination {
545
597
  /** 表示user的ID的类型,支持open_id, user_id, union_id */
546
598
  user_id_type?: string;
@@ -555,10 +607,18 @@ export interface CreateTaskV2TasklistQuery {
555
607
  /** 表示user的ID的类型,支持open_id, user_id, union_id */
556
608
  user_id_type?: string;
557
609
  }
610
+ export interface CreateTaskV2TasklistResponse {
611
+ /** 创建的清单数据 */
612
+ tasklist?: Tasklist;
613
+ }
558
614
  export interface GetTaskV2TasklistQuery {
559
615
  /** 表示user的ID的类型,支持open_id, user_id, union_id */
560
616
  user_id_type?: string;
561
617
  }
618
+ export interface GetTaskV2TasklistResponse {
619
+ /** 清单详情 */
620
+ tasklist?: Tasklist;
621
+ }
562
622
  export interface PatchTaskV2TasklistRequest {
563
623
  /** 要更新清单的数据 */
564
624
  tasklist: InputTasklist;
@@ -571,6 +631,10 @@ export interface PatchTaskV2TasklistQuery {
571
631
  /** 表示user的ID的类型,支持open_id, user_id, union_id */
572
632
  user_id_type?: string;
573
633
  }
634
+ export interface PatchTaskV2TasklistResponse {
635
+ /** 修改后的任务清单 */
636
+ tasklist?: Tasklist;
637
+ }
574
638
  export interface AddMembersTaskV2TasklistRequest {
575
639
  /** 要添加的成员列表 */
576
640
  members: Member[];
@@ -579,6 +643,10 @@ export interface AddMembersTaskV2TasklistQuery {
579
643
  /** 表示user的ID的类型,支持open_id, user_id, union_id */
580
644
  user_id_type?: string;
581
645
  }
646
+ export interface AddMembersTaskV2TasklistResponse {
647
+ /** 完成更新后的清单实体 */
648
+ tasklist?: Tasklist;
649
+ }
582
650
  export interface RemoveMembersTaskV2TasklistRequest {
583
651
  /** 要移除的member列表 */
584
652
  members: Member[];
@@ -587,6 +655,10 @@ export interface RemoveMembersTaskV2TasklistQuery {
587
655
  /** 表示user的ID的类型,支持open_id, user_id, union_id */
588
656
  user_id_type?: string;
589
657
  }
658
+ export interface RemoveMembersTaskV2TasklistResponse {
659
+ /** 修改完成后的清单实体 */
660
+ tasklist?: Tasklist;
661
+ }
590
662
  export interface TasksTaskV2TasklistQuery extends Pagination {
591
663
  /** 只查看特定完成状态的任务,不填写表示不按完成状态过滤 */
592
664
  completed?: boolean;
@@ -615,16 +687,28 @@ export interface CreateTaskV2TasklistActivitySubscriptionQuery {
615
687
  /** 用户ID类型 */
616
688
  user_id_type?: 'open_id' | 'union_id' | 'user_id';
617
689
  }
690
+ export interface CreateTaskV2TasklistActivitySubscriptionResponse {
691
+ /** 清单动态订阅 */
692
+ activity_subscription?: TasklistActivitySubscription;
693
+ }
618
694
  export interface GetTaskV2TasklistActivitySubscriptionQuery {
619
695
  /** 用户ID类型 */
620
696
  user_id_type?: 'open_id' | 'union_id' | 'user_id';
621
697
  }
698
+ export interface GetTaskV2TasklistActivitySubscriptionResponse {
699
+ /** 订阅详情 */
700
+ activity_subscription?: TasklistActivitySubscription;
701
+ }
622
702
  export interface ListTaskV2TasklistActivitySubscriptionQuery {
623
703
  /** 返回结果的最大数量 */
624
704
  limit?: number;
625
705
  /** 用户ID类型 */
626
706
  user_id_type?: 'open_id' | 'union_id' | 'user_id';
627
707
  }
708
+ export interface ListTaskV2TasklistActivitySubscriptionResponse {
709
+ /** 清单的动态订阅数据 */
710
+ items?: TasklistActivitySubscription[];
711
+ }
628
712
  export interface PatchTaskV2TasklistActivitySubscriptionRequest {
629
713
  /** 要更新的订阅数据 */
630
714
  activity_subscription: TasklistActivitySubscription;
@@ -635,6 +719,10 @@ export interface PatchTaskV2TasklistActivitySubscriptionQuery {
635
719
  /** 用户ID类型 */
636
720
  user_id_type?: 'open_id' | 'union_id' | 'user_id';
637
721
  }
722
+ export interface PatchTaskV2TasklistActivitySubscriptionResponse {
723
+ /** 更新后的订阅 */
724
+ activity_subscription?: TasklistActivitySubscription;
725
+ }
638
726
  export interface CreateTaskV2CommentRequest {
639
727
  /** 评论内容 */
640
728
  content: string;
@@ -649,10 +737,18 @@ export interface CreateTaskV2CommentQuery {
649
737
  /** 表示user的ID的类型,支持open_id, user_id, union_id */
650
738
  user_id_type?: string;
651
739
  }
740
+ export interface CreateTaskV2CommentResponse {
741
+ /** 创建的评论详情 */
742
+ comment?: Comment;
743
+ }
652
744
  export interface GetTaskV2CommentQuery {
653
745
  /** 表示user的ID的类型,支持open_id, user_id, union_id */
654
746
  user_id_type?: string;
655
747
  }
748
+ export interface GetTaskV2CommentResponse {
749
+ /** 评论详情 */
750
+ comment?: Comment;
751
+ }
656
752
  export interface PatchTaskV2CommentRequest {
657
753
  /** 要更新的评论数据,支持更新content, md_content */
658
754
  comment: InputComment;
@@ -663,6 +759,10 @@ export interface PatchTaskV2CommentQuery {
663
759
  /** 表示user的ID的类型,支持open_id, user_id, union_id */
664
760
  user_id_type?: string;
665
761
  }
762
+ export interface PatchTaskV2CommentResponse {
763
+ /** 更新后的评论 */
764
+ comment?: Comment;
765
+ }
666
766
  export interface ListTaskV2CommentQuery extends Pagination {
667
767
  /** 要获取评论列表的资源类型 */
668
768
  resource_type?: string;
@@ -685,6 +785,10 @@ export interface UploadTaskV2AttachmentQuery {
685
785
  /** 表示user的ID的类型,支持open_id, user_id, union_id */
686
786
  user_id_type?: 'open_id' | 'union_id' | 'user_id';
687
787
  }
788
+ export interface UploadTaskV2AttachmentResponse {
789
+ /** 上传的附件列表 */
790
+ items?: Attachment[];
791
+ }
688
792
  export interface ListTaskV2AttachmentQuery extends Pagination {
689
793
  /** 附件归属的资源类型 */
690
794
  resource_type?: string;
@@ -697,6 +801,10 @@ export interface GetTaskV2AttachmentQuery {
697
801
  /** 表示user的ID的类型,支持open_id, user_id, union_id */
698
802
  user_id_type?: string;
699
803
  }
804
+ export interface GetTaskV2AttachmentResponse {
805
+ /** 附件详情 */
806
+ attachment?: Attachment;
807
+ }
700
808
  export interface CreateTaskV2SectionRequest {
701
809
  /** 自定义分组名称 */
702
810
  name: string;
@@ -713,10 +821,18 @@ export interface CreateTaskV2SectionQuery {
713
821
  /** 表示user的ID的类型,支持open_id, user_id, union_id */
714
822
  user_id_type?: string;
715
823
  }
824
+ export interface CreateTaskV2SectionResponse {
825
+ /** 创建的自定义分组数据 */
826
+ section?: Section;
827
+ }
716
828
  export interface GetTaskV2SectionQuery {
717
829
  /** 表示user的ID的类型,支持open_id, user_id, union_id */
718
830
  user_id_type?: string;
719
831
  }
832
+ export interface GetTaskV2SectionResponse {
833
+ /** 获取的自定义分组详情 */
834
+ section?: Section;
835
+ }
720
836
  export interface PatchTaskV2SectionRequest {
721
837
  /** 要更新的自定义分组的数据,仅支持name, insert_after, insert_before */
722
838
  section: InputSection;
@@ -727,6 +843,10 @@ export interface PatchTaskV2SectionQuery {
727
843
  /** 表示user的ID的类型,支持open_id, user_id, union_id */
728
844
  user_id_type?: string;
729
845
  }
846
+ export interface PatchTaskV2SectionResponse {
847
+ /** 更新后的自定义分组 */
848
+ section?: Section;
849
+ }
730
850
  export interface ListTaskV2SectionQuery extends Pagination {
731
851
  /** 自定义分组所属的资源类型。支持"my_tasks"(我负责的)和"tasklist"(清单)。当使用"tasklist"时,需要用resource_id提供清单GUID。 */
732
852
  resource_type: string;
@@ -771,10 +891,18 @@ export interface CreateTaskV2CustomFieldQuery {
771
891
  /** 表示user的ID的类型,支持open_id, user_id, union_id */
772
892
  user_id_type?: 'open_id' | 'user_id' | 'union_id';
773
893
  }
894
+ export interface CreateTaskV2CustomFieldResponse {
895
+ /** 创建的自定义字段 */
896
+ custom_field?: CustomField;
897
+ }
774
898
  export interface GetTaskV2CustomFieldQuery {
775
899
  /** 表示user的ID的类型,支持open_id, user_id, union_id */
776
900
  user_id_type?: 'open_id' | 'user_id' | 'union_id';
777
901
  }
902
+ export interface GetTaskV2CustomFieldResponse {
903
+ /** 获取的自定义字段数据 */
904
+ custom_field?: CustomField;
905
+ }
778
906
  export interface PatchTaskV2CustomFieldRequest {
779
907
  /** 要修改的自定义字段数据 */
780
908
  custom_field?: InputCustomField;
@@ -785,6 +913,10 @@ export interface PatchTaskV2CustomFieldQuery {
785
913
  /** 用户ID格式 */
786
914
  user_id_type?: 'open_id' | 'union_id' | 'user_id';
787
915
  }
916
+ export interface PatchTaskV2CustomFieldResponse {
917
+ /** 修改后的自定义字段设置 */
918
+ custom_field?: CustomField;
919
+ }
788
920
  export interface ListTaskV2CustomFieldQuery extends Pagination {
789
921
  /** 用户ID格式,支持open_id, user_id, union_id */
790
922
  user_id_type?: 'open_id' | 'user_id' | 'union_id';
@@ -817,12 +949,20 @@ export interface CreateTaskV2CustomFieldOptionRequest {
817
949
  /** 是否隐藏 */
818
950
  is_hidden?: boolean;
819
951
  }
952
+ export interface CreateTaskV2CustomFieldOptionResponse {
953
+ /** 创建的选项 */
954
+ option?: Option;
955
+ }
820
956
  export interface PatchTaskV2CustomFieldOptionRequest {
821
957
  /** 要更新的option数据 */
822
958
  option?: InputOption;
823
959
  /** 要更新的字段名,支持name,color,is_hidden,insert_before,insert_after */
824
960
  update_fields?: string[];
825
961
  }
962
+ export interface PatchTaskV2CustomFieldOptionResponse {
963
+ /** 更新后的option数据 */
964
+ option?: Option;
965
+ }
826
966
  export interface CreateTaskV1Request {
827
967
  /** 任务标题。创建任务时,如果没有标题填充,将其视为无主题的任务。 */
828
968
  summary?: string;
@@ -853,6 +993,10 @@ export interface CreateTaskV1Query {
853
993
  /** 此次调用中使用的用户ID的类型 */
854
994
  user_id_type?: 'user_id' | 'union_id' | 'open_id';
855
995
  }
996
+ export interface CreateTaskV1Response {
997
+ /** 返回创建好的任务 */
998
+ task?: Task;
999
+ }
856
1000
  export interface PatchTaskV1Request {
857
1001
  /** 被更新的任务实体基础信息 */
858
1002
  task: Task;
@@ -863,10 +1007,18 @@ export interface PatchTaskV1Query {
863
1007
  /** 此次调用中使用的用户ID的类型 */
864
1008
  user_id_type?: 'user_id' | 'union_id' | 'open_id';
865
1009
  }
1010
+ export interface PatchTaskV1Response {
1011
+ /** 返回修改后的任务详情 */
1012
+ task?: Task;
1013
+ }
866
1014
  export interface GetTaskV1Query {
867
1015
  /** 此次调用中使用的用户ID的类型 */
868
1016
  user_id_type?: 'user_id' | 'union_id' | 'open_id';
869
1017
  }
1018
+ export interface GetTaskV1Response {
1019
+ /** 返回任务资源详情 */
1020
+ task?: Task;
1021
+ }
870
1022
  export interface ListTaskV1Query extends Pagination {
871
1023
  /** 范围查询任务时,查询的起始时间。不填时默认起始时间为第一个任务的创建时间。 */
872
1024
  start_create_time?: string;
@@ -881,6 +1033,10 @@ export interface CreateTaskV1TaskReminderRequest {
881
1033
  /** 相对于截止时间的提醒时间(如提前 30 分钟,截止时间后 30 分钟,则为 -30) */
882
1034
  relative_fire_minute: number;
883
1035
  }
1036
+ export interface CreateTaskV1TaskReminderResponse {
1037
+ /** 返回创建成功的提醒时间 */
1038
+ reminder?: Reminder;
1039
+ }
884
1040
  export interface CreateTaskV1TaskCommentRequest {
885
1041
  /** 评论内容 */
886
1042
  content?: string;
@@ -895,6 +1051,10 @@ export interface CreateTaskV1TaskCommentQuery {
895
1051
  /** 此次调用中使用的用户ID的类型 */
896
1052
  user_id_type?: 'user_id' | 'union_id' | 'open_id';
897
1053
  }
1054
+ export interface CreateTaskV1TaskCommentResponse {
1055
+ /** 返回创建好的任务评论 */
1056
+ comment?: Comment;
1057
+ }
898
1058
  export interface UpdateTaskV1TaskCommentRequest {
899
1059
  /** 新的评论内容 */
900
1060
  content?: string;
@@ -905,13 +1065,27 @@ export interface UpdateTaskV1TaskCommentQuery {
905
1065
  /** 此次调用中使用的用户ID的类型 */
906
1066
  user_id_type?: 'user_id' | 'union_id' | 'open_id';
907
1067
  }
1068
+ export interface UpdateTaskV1TaskCommentResponse {
1069
+ /** 返回修改后的任务评论详情 */
1070
+ comment?: Comment;
1071
+ }
908
1072
  export interface GetTaskV1TaskCommentQuery {
909
1073
  /** 此次调用中使用的用户ID的类型 */
910
1074
  user_id_type?: 'user_id' | 'union_id' | 'open_id';
911
1075
  }
1076
+ export interface GetTaskV1TaskCommentResponse {
1077
+ /** 返回新的任务评论详情 */
1078
+ comment?: Comment;
1079
+ }
1080
+ export declare const enum ListTaskV1TaskCommentQueryListDirection {
1081
+ /** 按照回复时间从小到大查询 */
1082
+ Down = 0,
1083
+ /** 按照回复时间从大到小查询 */
1084
+ Up = 1
1085
+ }
912
1086
  export interface ListTaskV1TaskCommentQuery extends Pagination {
913
1087
  /** 评论排序标记,可按照评论时间从小到大查询,或者评论时间从大到小查询,不填默认按照从小到大 */
914
- list_direction?: 0 | 1;
1088
+ list_direction?: ListTaskV1TaskCommentQueryListDirection;
915
1089
  /** 此次调用中使用的用户ID的类型 */
916
1090
  user_id_type?: 'user_id' | 'union_id' | 'open_id';
917
1091
  }
@@ -925,6 +1099,10 @@ export interface CreateTaskV1TaskFollowerQuery {
925
1099
  /** 此次调用中使用的用户ID的类型 */
926
1100
  user_id_type?: 'user_id' | 'union_id' | 'open_id';
927
1101
  }
1102
+ export interface CreateTaskV1TaskFollowerResponse {
1103
+ /** 创建后的任务关注者 */
1104
+ follower: Follower;
1105
+ }
928
1106
  export interface DeleteTaskV1TaskFollowerQuery {
929
1107
  /** 此次调用中使用的用户ID的类型 */
930
1108
  user_id_type?: 'user_id' | 'union_id' | 'open_id';
@@ -937,6 +1115,10 @@ export interface BatchDeleteFollowerTaskV1Query {
937
1115
  /** 此次调用中使用的用户ID的类型 */
938
1116
  user_id_type?: 'user_id' | 'union_id' | 'open_id';
939
1117
  }
1118
+ export interface BatchDeleteFollowerTaskV1Response {
1119
+ /** 实际删除的关注人用户ID列表 */
1120
+ followers?: string[];
1121
+ }
940
1122
  export interface ListTaskV1TaskFollowerQuery extends Pagination {
941
1123
  /** 此次调用中使用的用户ID的类型 */
942
1124
  user_id_type?: 'user_id' | 'union_id' | 'open_id';
@@ -951,6 +1133,10 @@ export interface CreateTaskV1TaskCollaboratorQuery {
951
1133
  /** 此次调用中使用的用户ID的类型 */
952
1134
  user_id_type?: 'user_id' | 'union_id' | 'open_id';
953
1135
  }
1136
+ export interface CreateTaskV1TaskCollaboratorResponse {
1137
+ /** 返回创建成功后的任务协作者 */
1138
+ collaborator: Collaborator;
1139
+ }
954
1140
  export interface DeleteTaskV1TaskCollaboratorQuery {
955
1141
  /** 此次调用中使用的用户ID的类型 */
956
1142
  user_id_type?: 'user_id' | 'union_id' | 'open_id';
@@ -963,191 +1149,11 @@ export interface BatchDeleteCollaboratorTaskV1Query {
963
1149
  /** 此次调用中使用的用户ID的类型 */
964
1150
  user_id_type?: 'user_id' | 'union_id' | 'open_id';
965
1151
  }
966
- export interface ListTaskV1TaskCollaboratorQuery extends Pagination {
967
- /** 此次调用中使用的用户ID的类型 */
968
- user_id_type?: 'user_id' | 'union_id' | 'open_id';
969
- }
970
- export interface CreateTaskV2Response {
971
- /** 产生的任务 */
972
- task?: Task;
973
- }
974
- export interface GetTaskV2Response {
975
- /** 获得的任务实体 */
976
- task?: Task;
977
- }
978
- export interface PatchTaskV2Response {
979
- /** 更新后的任务 */
980
- task?: Task;
981
- }
982
- export interface AddMembersTaskV2Response {
983
- /** 更新完成后的任务实体数据 */
984
- task?: Task;
985
- }
986
- export interface RemoveMembersTaskV2Response {
987
- /** 移除成员后的任务数据 */
988
- task?: Task;
989
- }
990
- export interface TasklistsTaskV2Response {
991
- /** 任务所在清单的摘要信息 */
992
- tasklists?: TaskInTasklistInfo[];
993
- }
994
- export interface AddTasklistTaskV2Response {
995
- /** 添加后的任务详情 */
996
- task?: Task;
997
- }
998
- export interface RemoveTasklistTaskV2Response {
999
- /** 添加后的任务详情 */
1000
- task?: Task;
1001
- }
1002
- export interface AddRemindersTaskV2Response {
1003
- /** 更新完成后的任务实体 */
1004
- task?: Task;
1005
- }
1006
- export interface RemoveRemindersTaskV2Response {
1007
- /** 移除提醒后的任务详情 */
1008
- task?: Task;
1009
- }
1010
- export interface AddDependenciesTaskV2Response {
1011
- /** 被添加后任务的所有依赖 */
1012
- dependencies?: TaskDependency[];
1013
- }
1014
- export interface RemoveDependenciesTaskV2Response {
1015
- /** 移除之后的任务GUID */
1016
- dependencies?: TaskDependency[];
1017
- }
1018
- export interface CreateTaskV2TaskSubtaskResponse {
1019
- /** 创建的任务 */
1020
- subtask?: Task;
1021
- }
1022
- export interface CreateTaskV2TasklistResponse {
1023
- /** 创建的清单数据 */
1024
- tasklist?: Tasklist;
1025
- }
1026
- export interface GetTaskV2TasklistResponse {
1027
- /** 清单详情 */
1028
- tasklist?: Tasklist;
1029
- }
1030
- export interface PatchTaskV2TasklistResponse {
1031
- /** 修改后的任务清单 */
1032
- tasklist?: Tasklist;
1033
- }
1034
- export interface AddMembersTaskV2TasklistResponse {
1035
- /** 完成更新后的清单实体 */
1036
- tasklist?: Tasklist;
1037
- }
1038
- export interface RemoveMembersTaskV2TasklistResponse {
1039
- /** 修改完成后的清单实体 */
1040
- tasklist?: Tasklist;
1041
- }
1042
- export interface CreateTaskV2TasklistActivitySubscriptionResponse {
1043
- /** 清单动态订阅 */
1044
- activity_subscription?: TasklistActivitySubscription;
1045
- }
1046
- export interface GetTaskV2TasklistActivitySubscriptionResponse {
1047
- /** 订阅详情 */
1048
- activity_subscription?: TasklistActivitySubscription;
1049
- }
1050
- export interface ListTaskV2TasklistActivitySubscriptionResponse {
1051
- /** 清单的动态订阅数据 */
1052
- items?: TasklistActivitySubscription[];
1053
- }
1054
- export interface PatchTaskV2TasklistActivitySubscriptionResponse {
1055
- /** 更新后的订阅 */
1056
- activity_subscription?: TasklistActivitySubscription;
1057
- }
1058
- export interface CreateTaskV2CommentResponse {
1059
- /** 创建的评论详情 */
1060
- comment?: Comment;
1061
- }
1062
- export interface GetTaskV2CommentResponse {
1063
- /** 评论详情 */
1064
- comment?: Comment;
1065
- }
1066
- export interface PatchTaskV2CommentResponse {
1067
- /** 更新后的评论 */
1068
- comment?: Comment;
1069
- }
1070
- export interface UploadTaskV2AttachmentResponse {
1071
- /** 上传的附件列表 */
1072
- items?: Attachment[];
1073
- }
1074
- export interface GetTaskV2AttachmentResponse {
1075
- /** 附件详情 */
1076
- attachment?: Attachment;
1077
- }
1078
- export interface CreateTaskV2SectionResponse {
1079
- /** 创建的自定义分组数据 */
1080
- section?: Section;
1081
- }
1082
- export interface GetTaskV2SectionResponse {
1083
- /** 获取的自定义分组详情 */
1084
- section?: Section;
1085
- }
1086
- export interface PatchTaskV2SectionResponse {
1087
- /** 更新后的自定义分组 */
1088
- section?: Section;
1089
- }
1090
- export interface CreateTaskV2CustomFieldResponse {
1091
- /** 创建的自定义字段 */
1092
- custom_field?: CustomField;
1093
- }
1094
- export interface GetTaskV2CustomFieldResponse {
1095
- /** 获取的自定义字段数据 */
1096
- custom_field?: CustomField;
1097
- }
1098
- export interface PatchTaskV2CustomFieldResponse {
1099
- /** 修改后的自定义字段设置 */
1100
- custom_field?: CustomField;
1101
- }
1102
- export interface CreateTaskV2CustomFieldOptionResponse {
1103
- /** 创建的选项 */
1104
- option?: Option;
1105
- }
1106
- export interface PatchTaskV2CustomFieldOptionResponse {
1107
- /** 更新后的option数据 */
1108
- option?: Option;
1109
- }
1110
- export interface CreateTaskV1Response {
1111
- /** 返回创建好的任务 */
1112
- task?: Task;
1113
- }
1114
- export interface PatchTaskV1Response {
1115
- /** 返回修改后的任务详情 */
1116
- task?: Task;
1117
- }
1118
- export interface GetTaskV1Response {
1119
- /** 返回任务资源详情 */
1120
- task?: Task;
1121
- }
1122
- export interface CreateTaskV1TaskReminderResponse {
1123
- /** 返回创建成功的提醒时间 */
1124
- reminder?: Reminder;
1125
- }
1126
- export interface CreateTaskV1TaskCommentResponse {
1127
- /** 返回创建好的任务评论 */
1128
- comment?: Comment;
1129
- }
1130
- export interface UpdateTaskV1TaskCommentResponse {
1131
- /** 返回修改后的任务评论详情 */
1132
- comment?: Comment;
1133
- }
1134
- export interface GetTaskV1TaskCommentResponse {
1135
- /** 返回新的任务评论详情 */
1136
- comment?: Comment;
1137
- }
1138
- export interface CreateTaskV1TaskFollowerResponse {
1139
- /** 创建后的任务关注者 */
1140
- follower: Follower;
1141
- }
1142
- export interface BatchDeleteFollowerTaskV1Response {
1143
- /** 实际删除的关注人用户ID列表 */
1144
- followers?: string[];
1145
- }
1146
- export interface CreateTaskV1TaskCollaboratorResponse {
1147
- /** 返回创建成功后的任务协作者 */
1148
- collaborator: Collaborator;
1149
- }
1150
1152
  export interface BatchDeleteCollaboratorTaskV1Response {
1151
1153
  /** 实际删除的执行人用户ID列表 */
1152
1154
  collaborators?: string[];
1153
1155
  }
1156
+ export interface ListTaskV1TaskCollaboratorQuery extends Pagination {
1157
+ /** 此次调用中使用的用户ID的类型 */
1158
+ user_id_type?: 'user_id' | 'union_id' | 'open_id';
1159
+ }
@@ -17,6 +17,10 @@ export interface DetectTranslationTextRequest {
17
17
  /** 需要被识别语种的文本 */
18
18
  text: string;
19
19
  }
20
+ export interface DetectTranslationTextResponse {
21
+ /** 识别的文本语种,返回符合 ISO 693-1 标准 */
22
+ language: string;
23
+ }
20
24
  export interface TranslateTranslationTextRequest {
21
25
  /** 源语言 */
22
26
  source_language: string;
@@ -27,10 +31,6 @@ export interface TranslateTranslationTextRequest {
27
31
  /** 请求级术语表,携带术语,仅在本次翻译中生效(最多能携带 128个术语词) */
28
32
  glossary?: Term[];
29
33
  }
30
- export interface DetectTranslationTextResponse {
31
- /** 识别的文本语种,返回符合 ISO 693-1 标准 */
32
- language: string;
33
- }
34
34
  export interface TranslateTranslationTextResponse {
35
35
  /** 翻译后的文本 */
36
36
  text: string;