@satorijs/adapter-lark 3.10.6 → 3.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. package/lib/index.cjs +2880 -2370
  2. package/lib/internal.d.ts +4 -4
  3. package/lib/types/acs.d.ts +212 -172
  4. package/lib/types/admin.d.ts +331 -291
  5. package/lib/types/aily.d.ts +331 -216
  6. package/lib/types/apaas.d.ts +646 -494
  7. package/lib/types/application.d.ts +559 -458
  8. package/lib/types/approval.d.ts +826 -791
  9. package/lib/types/attendance.d.ts +1094 -994
  10. package/lib/types/auth.d.ts +66 -61
  11. package/lib/types/authen.d.ts +221 -186
  12. package/lib/types/baike.d.ts +258 -233
  13. package/lib/types/base.d.ts +74 -0
  14. package/lib/types/bitable.d.ts +830 -770
  15. package/lib/types/board.d.ts +29 -14
  16. package/lib/types/calendar.d.ts +660 -605
  17. package/lib/types/cardkit.d.ts +149 -134
  18. package/lib/types/compensation.d.ts +84 -49
  19. package/lib/types/contact.d.ts +1279 -1204
  20. package/lib/types/corehr.d.ts +4982 -4526
  21. package/lib/types/directory.d.ts +447 -0
  22. package/lib/types/docs.d.ts +28 -18
  23. package/lib/types/document_ai.d.ts +347 -252
  24. package/lib/types/docx.d.ts +428 -383
  25. package/lib/types/drive.d.ts +1093 -1048
  26. package/lib/types/ehr.d.ts +66 -51
  27. package/lib/types/event.d.ts +16 -6
  28. package/lib/types/helpdesk.d.ts +816 -741
  29. package/lib/types/hire.d.ts +3955 -3589
  30. package/lib/types/human_authentication.d.ts +32 -22
  31. package/lib/types/im.d.ts +1420 -1295
  32. package/lib/types/index.d.ts +1422 -330
  33. package/lib/types/lingo.d.ts +279 -249
  34. package/lib/types/mail.d.ts +1032 -675
  35. package/lib/types/mdm.d.ts +105 -37
  36. package/lib/types/minutes.d.ts +73 -26
  37. package/lib/types/moments.d.ts +23 -13
  38. package/lib/types/okr.d.ts +266 -225
  39. package/lib/types/optical_char_recognition.d.ts +22 -12
  40. package/lib/types/passport.d.ts +58 -48
  41. package/lib/types/payroll.d.ts +210 -53
  42. package/lib/types/performance.d.ts +463 -414
  43. package/lib/types/personal_settings.d.ts +93 -82
  44. package/lib/types/report.d.ts +79 -58
  45. package/lib/types/search.d.ts +265 -235
  46. package/lib/types/security_and_compliance.d.ts +30 -19
  47. package/lib/types/sheets.d.ts +356 -321
  48. package/lib/types/speech_to_text.d.ts +44 -34
  49. package/lib/types/task.d.ts +998 -1087
  50. package/lib/types/tenant.d.ts +25 -15
  51. package/lib/types/translation.d.ts +42 -32
  52. package/lib/types/trust_party.d.ts +81 -0
  53. package/lib/types/vc.d.ts +1218 -1123
  54. package/lib/types/verification.d.ts +11 -6
  55. package/lib/types/wiki.d.ts +270 -235
  56. package/lib/types/workplace.d.ts +58 -38
  57. package/lib/utils.d.ts +2 -2
  58. package/package.json +4 -4
  59. package/src/bot.ts +15 -15
  60. package/src/internal.ts +29 -12
  61. package/src/message.ts +10 -10
  62. package/src/types/acs.ts +234 -186
  63. package/src/types/admin.ts +353 -305
  64. package/src/types/aily.ts +375 -233
  65. package/src/types/apaas.ts +754 -568
  66. package/src/types/application.ts +633 -507
  67. package/src/types/approval.ts +914 -872
  68. package/src/types/attendance.ts +1226 -1104
  69. package/src/types/auth.ts +72 -66
  70. package/src/types/authen.ts +233 -191
  71. package/src/types/baike.ts +276 -246
  72. package/src/types/base.ts +93 -0
  73. package/src/types/bitable.ts +966 -894
  74. package/src/types/board.ts +34 -16
  75. package/src/types/calendar.ts +751 -685
  76. package/src/types/cardkit.ts +164 -146
  77. package/src/types/compensation.ts +97 -55
  78. package/src/types/contact.ts +1465 -1375
  79. package/src/types/corehr.ts +5664 -5077
  80. package/src/types/directory.ts +569 -0
  81. package/src/types/docs.ts +31 -19
  82. package/src/types/document_ai.ts +401 -287
  83. package/src/types/docx.ts +492 -438
  84. package/src/types/drive.ts +1266 -1213
  85. package/src/types/ehr.ts +71 -53
  86. package/src/types/event.ts +19 -7
  87. package/src/types/helpdesk.ts +930 -840
  88. package/src/types/hire.ts +4453 -4019
  89. package/src/types/human_authentication.ts +35 -23
  90. package/src/types/im.ts +1626 -1476
  91. package/src/types/index.ts +1532 -346
  92. package/src/types/lingo.ts +299 -263
  93. package/src/types/mail.ts +1231 -779
  94. package/src/types/mdm.ts +122 -39
  95. package/src/types/minutes.ts +88 -28
  96. package/src/types/moments.ts +26 -14
  97. package/src/types/okr.ts +286 -238
  98. package/src/types/optical_char_recognition.ts +25 -13
  99. package/src/types/passport.ts +62 -50
  100. package/src/types/payroll.ts +254 -57
  101. package/src/types/performance.ts +528 -467
  102. package/src/types/personal_settings.ts +101 -89
  103. package/src/types/report.ts +86 -62
  104. package/src/types/search.ts +285 -249
  105. package/src/types/security_and_compliance.ts +33 -21
  106. package/src/types/sheets.ts +421 -379
  107. package/src/types/speech_to_text.ts +48 -36
  108. package/src/types/task.ts +1152 -1260
  109. package/src/types/tenant.ts +29 -17
  110. package/src/types/translation.ts +46 -34
  111. package/src/types/trust_party.ts +110 -0
  112. package/src/types/vc.ts +1397 -1283
  113. package/src/types/verification.ts +13 -7
  114. package/src/types/wiki.ts +293 -251
  115. package/src/types/workplace.ts +65 -41
  116. package/src/utils.ts +3 -3
@@ -1,653 +1,708 @@
1
- import { AclScope, Attachment, Calendar, CalendarAcl, CalendarEvent, CalendarEventAttendee, CalendarEventAttendeeChatMember, CalendarEventAttendeeId, EventLocation, EventSearchFilter, Freebusy, Instance, Reminder, Schema, TimeInfo, UserCalendar, Vchat } from '.';
2
- import { Pagination } from '../internal';
1
+ import * as Lark from '.';
2
+ import { Paginated, Pagination } from '../internal';
3
3
  declare module '../internal' {
4
4
  interface Internal {
5
+ calendar: Calendar.Methods;
6
+ }
7
+ }
8
+ export declare namespace Calendar {
9
+ interface Methods {
10
+ freebusy: Freebusy.Methods;
11
+ acl: Acl.Methods;
12
+ event: Event.Methods;
13
+ timeoffEvent: TimeoffEvent.Methods;
14
+ setting: Setting.Methods;
15
+ exchangeBinding: ExchangeBinding.Methods;
5
16
  /**
6
17
  * 创建共享日历
7
18
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/create
8
19
  */
9
- createCalendar(body: CreateCalendarRequest): Promise<CreateCalendarResponse>;
20
+ create(body: CreateRequest): Promise<CreateResponse>;
10
21
  /**
11
22
  * 删除共享日历
12
23
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/delete
13
24
  */
14
- deleteCalendar(calendar_id: string): Promise<void>;
25
+ delete(calendar_id: string): Promise<void>;
15
26
  /**
16
27
  * 查询主日历信息
17
28
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/primary
18
29
  */
19
- primaryCalendar(query?: PrimaryCalendarQuery): Promise<PrimaryCalendarResponse>;
30
+ primary(query?: PrimaryQuery): Promise<PrimaryResponse>;
20
31
  /**
21
32
  * 查询日历信息
22
33
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/get
23
34
  */
24
- getCalendar(calendar_id: string): Promise<GetCalendarResponse>;
25
- /**
26
- * 查询主日历日程忙闲信息
27
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/freebusy/list
28
- */
29
- listCalendarFreebusy(body: ListCalendarFreebusyRequest, query?: ListCalendarFreebusyQuery): Promise<ListCalendarFreebusyResponse>;
35
+ get(calendar_id: string): Promise<GetResponse>;
30
36
  /**
31
37
  * 查询日历列表
32
38
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/list
33
39
  */
34
- listCalendar(query?: ListCalendarQuery): Promise<ListCalendarResponse>;
40
+ list(query?: ListQuery): Promise<ListResponse>;
35
41
  /**
36
42
  * 更新日历信息
37
43
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/patch
38
44
  */
39
- patchCalendar(calendar_id: string, body: PatchCalendarRequest): Promise<PatchCalendarResponse>;
45
+ patch(calendar_id: string, body: PatchRequest): Promise<PatchResponse>;
40
46
  /**
41
47
  * 搜索日历
42
48
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/search
43
49
  */
44
- searchCalendar(body: SearchCalendarRequest, query?: Pagination): Promise<SearchCalendarResponse> & AsyncIterableIterator<Calendar>;
50
+ search(body: SearchRequest, query?: Pagination): Promise<SearchResponse> & AsyncIterableIterator<Lark.Calendar>;
45
51
  /**
46
52
  * 订阅日历
47
53
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/subscribe
48
54
  */
49
- subscribeCalendar(calendar_id: string): Promise<SubscribeCalendarResponse>;
55
+ subscribe(calendar_id: string): Promise<SubscribeResponse>;
50
56
  /**
51
57
  * 取消订阅日历
52
58
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/unsubscribe
53
59
  */
54
- unsubscribeCalendar(calendar_id: string): Promise<void>;
60
+ unsubscribe(calendar_id: string): Promise<void>;
55
61
  /**
56
62
  * 订阅日历变更事件
57
63
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/subscription
58
64
  */
59
- subscriptionCalendar(): Promise<void>;
65
+ subscription(): Promise<void>;
60
66
  /**
61
67
  * 取消订阅日历变更事件
62
68
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/unsubscription
63
69
  */
64
- unsubscriptionCalendar(): Promise<void>;
65
- /**
66
- * 创建访问控制
67
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-acl/create
68
- */
69
- createCalendarCalendarAcl(calendar_id: string, body: CreateCalendarCalendarAclRequest, query?: CreateCalendarCalendarAclQuery): Promise<CreateCalendarCalendarAclResponse>;
70
- /**
71
- * 删除访问控制
72
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-acl/delete
73
- */
74
- deleteCalendarCalendarAcl(calendar_id: string, acl_id: string): Promise<void>;
75
- /**
76
- * 获取访问控制列表
77
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-acl/list
78
- */
79
- listCalendarCalendarAcl(calendar_id: string, query?: ListCalendarCalendarAclQuery): Paginated<CalendarAcl, 'acls'>;
80
- /**
81
- * 订阅日历访问控制变更事件
82
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-acl/subscription
83
- */
84
- subscriptionCalendarCalendarAcl(calendar_id: string): Promise<void>;
85
- /**
86
- * 取消订阅日历访问控制变更事件
87
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-acl/unsubscription
88
- */
89
- unsubscriptionCalendarCalendarAcl(calendar_id: string): Promise<void>;
90
- /**
91
- * 创建日程
92
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event/create
93
- */
94
- createCalendarCalendarEvent(calendar_id: string, body: CreateCalendarCalendarEventRequest, query?: CreateCalendarCalendarEventQuery): Promise<CreateCalendarCalendarEventResponse>;
95
- /**
96
- * 删除日程
97
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event/delete
98
- */
99
- deleteCalendarCalendarEvent(calendar_id: string, event_id: string, query?: DeleteCalendarCalendarEventQuery): Promise<void>;
100
- /**
101
- * 更新日程
102
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event/patch
103
- */
104
- patchCalendarCalendarEvent(calendar_id: string, event_id: string, body: PatchCalendarCalendarEventRequest, query?: PatchCalendarCalendarEventQuery): Promise<PatchCalendarCalendarEventResponse>;
105
- /**
106
- * 获取日程
107
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event/get
108
- */
109
- getCalendarCalendarEvent(calendar_id: string, event_id: string, query?: GetCalendarCalendarEventQuery): Promise<GetCalendarCalendarEventResponse>;
110
- /**
111
- * 获取日程列表
112
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event/list
113
- */
114
- listCalendarCalendarEvent(calendar_id: string, query?: ListCalendarCalendarEventQuery): Promise<ListCalendarCalendarEventResponse>;
115
- /**
116
- * 搜索日程
117
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event/search
118
- */
119
- searchCalendarCalendarEvent(calendar_id: string, body: SearchCalendarCalendarEventRequest, query?: SearchCalendarCalendarEventQuery): Promise<SearchCalendarCalendarEventResponse> & AsyncIterableIterator<CalendarEvent>;
120
- /**
121
- * 订阅日程变更事件
122
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event/subscription
123
- */
124
- subscriptionCalendarCalendarEvent(calendar_id: string): Promise<void>;
125
- /**
126
- * 取消订阅日程变更事件
127
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event/unsubscription
128
- */
129
- unsubscriptionCalendarCalendarEvent(calendar_id: string): Promise<void>;
130
- /**
131
- * 回复日程
132
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event/reply
133
- */
134
- replyCalendarCalendarEvent(calendar_id: string, event_id: string, body: ReplyCalendarCalendarEventRequest): Promise<void>;
135
- /**
136
- * 获取重复日程实例
137
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event/instances
138
- */
139
- instancesCalendarCalendarEvent(calendar_id: string, event_id: string, query?: InstancesCalendarCalendarEventQuery): Paginated<Instance>;
140
- /**
141
- * 查询日程视图
142
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event/instance_view
143
- */
144
- instanceViewCalendarCalendarEvent(calendar_id: string, query?: InstanceViewCalendarCalendarEventQuery): Promise<InstanceViewCalendarCalendarEventResponse>;
145
- /**
146
- * 创建会议群
147
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event-meeting_chat/create
148
- */
149
- createCalendarCalendarEventMeetingChat(calendar_id: string, event_id: string): Promise<CreateCalendarCalendarEventMeetingChatResponse>;
150
- /**
151
- * 解绑会议群
152
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event-meeting_chat/delete
153
- */
154
- deleteCalendarCalendarEventMeetingChat(calendar_id: string, event_id: string, query?: DeleteCalendarCalendarEventMeetingChatQuery): Promise<void>;
155
- /**
156
- * 创建会议纪要
157
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event-meeting_minute/create
158
- */
159
- createCalendarCalendarEventMeetingMinute(calendar_id: string, event_id: string): Promise<CreateCalendarCalendarEventMeetingMinuteResponse>;
160
- /**
161
- * 创建请假日程
162
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/timeoff_event/create
163
- */
164
- createCalendarTimeoffEvent(body: CreateCalendarTimeoffEventRequest, query?: CreateCalendarTimeoffEventQuery): Promise<CreateCalendarTimeoffEventResponse>;
165
- /**
166
- * 删除请假日程
167
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/timeoff_event/delete
168
- */
169
- deleteCalendarTimeoffEvent(timeoff_event_id: string): Promise<void>;
170
- /**
171
- * 添加日程参与人
172
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event-attendee/create
173
- */
174
- createCalendarCalendarEventAttendee(calendar_id: string, event_id: string, body: CreateCalendarCalendarEventAttendeeRequest, query?: CreateCalendarCalendarEventAttendeeQuery): Promise<CreateCalendarCalendarEventAttendeeResponse>;
175
- /**
176
- * 删除日程参与人
177
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event-attendee/batch_delete
178
- */
179
- batchDeleteCalendarCalendarEventAttendee(calendar_id: string, event_id: string, body: BatchDeleteCalendarCalendarEventAttendeeRequest, query?: BatchDeleteCalendarCalendarEventAttendeeQuery): Promise<void>;
180
- /**
181
- * 获取日程参与人列表
182
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event-attendee/list
183
- */
184
- listCalendarCalendarEventAttendee(calendar_id: string, event_id: string, query?: ListCalendarCalendarEventAttendeeQuery): Paginated<CalendarEventAttendee>;
185
- /**
186
- * 获取日程参与群成员列表
187
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event-attendee-chat_member/list
188
- */
189
- listCalendarCalendarEventAttendeeChatMember(calendar_id: string, event_id: string, attendee_id: string, query?: ListCalendarCalendarEventAttendeeChatMemberQuery): Paginated<CalendarEventAttendeeChatMember>;
190
- /**
191
- * 生成 CalDAV 配置
192
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/setting/generate_caldav_conf
193
- */
194
- generateCaldavConfCalendarSetting(body: GenerateCaldavConfCalendarSettingRequest): Promise<GenerateCaldavConfCalendarSettingResponse>;
195
- /**
196
- * Exchange 账户绑定到飞书账户
197
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/exchange_binding/create
198
- */
199
- createCalendarExchangeBinding(body: CreateCalendarExchangeBindingRequest, query?: CreateCalendarExchangeBindingQuery): Promise<CreateCalendarExchangeBindingResponse>;
200
- /**
201
- * 解除 Exchange 账户绑定
202
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/exchange_binding/delete
203
- */
204
- deleteCalendarExchangeBinding(exchange_binding_id: string): Promise<void>;
205
- /**
206
- * 查询 Exchange 账户的绑定状态
207
- * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/exchange_binding/get
208
- */
209
- getCalendarExchangeBinding(exchange_binding_id: string, query?: GetCalendarExchangeBindingQuery): Promise<GetCalendarExchangeBindingResponse>;
70
+ unsubscription(): Promise<void>;
71
+ }
72
+ interface CreateRequest {
73
+ /** 日历标题 */
74
+ summary?: string;
75
+ /** 日历描述 */
76
+ description?: string;
77
+ /** 权限 */
78
+ permissions?: 'private' | 'show_only_free_busy' | 'public';
79
+ /** 日历颜色,颜色RGB值的int32表示。客户端展示时会映射到色板上最接近的一种颜色。仅对当前身份生效 */
80
+ color?: number;
81
+ /** 日历备注名,修改或添加后仅对当前身份生效 */
82
+ summary_alias?: string;
83
+ }
84
+ interface CreateResponse {
85
+ /** 日历信息 */
86
+ calendar?: Lark.Calendar;
87
+ }
88
+ interface PrimaryQuery {
89
+ /** 此次调用中使用的用户ID的类型 */
90
+ user_id_type?: 'user_id' | 'union_id' | 'open_id';
91
+ }
92
+ interface PrimaryResponse {
93
+ /** 主日历列表 */
94
+ calendars?: Lark.UserCalendar[];
95
+ }
96
+ interface GetResponse {
97
+ /** 日历OpenId */
98
+ calendar_id: string;
99
+ /** 日历标题 */
100
+ summary?: string;
101
+ /** 日历描述 */
102
+ description?: string;
103
+ /** 权限 */
104
+ permissions?: 'private' | 'show_only_free_busy' | 'public';
105
+ /** 日历颜色,颜色RGB值的int32表示。客户端展示时会映射到色板上最接近的一种颜色。仅对当前身份生效 */
106
+ color?: number;
107
+ /** 日历类型 */
108
+ type?: 'unknown' | 'primary' | 'shared' | 'google' | 'resource' | 'exchange';
109
+ /** 日历备注名,修改或添加后仅对当前身份生效 */
110
+ summary_alias?: string;
111
+ /** 对于当前身份,日历是否已经被标记为删除 */
112
+ is_deleted?: boolean;
113
+ /** 当前日历是否是第三方数据;三方日历及日程只支持读,不支持写入 */
114
+ is_third_party?: boolean;
115
+ /** 当前身份对于该日历的访问权限 */
116
+ role?: 'unknown' | 'free_busy_reader' | 'reader' | 'writer' | 'owner';
117
+ }
118
+ interface ListQuery extends Pagination {
119
+ /** 上次请求Response返回的增量同步标记,分页请求未结束时为空 */
120
+ sync_token?: string;
121
+ }
122
+ interface ListResponse {
123
+ /** 是否有下一页数据 */
124
+ has_more?: boolean;
125
+ /** 下次请求需要带上的分页标记,90 天有效期 */
126
+ page_token?: string;
127
+ /** 下次请求需要带上的增量同步标记,90 天有效期 */
128
+ sync_token?: string;
129
+ /** 分页加载的日历数据列表 */
130
+ calendar_list?: Lark.Calendar[];
131
+ }
132
+ interface PatchRequest {
133
+ /** 标题 */
134
+ summary?: string;
135
+ /** 日历描述 */
136
+ description?: string;
137
+ /** 权限 */
138
+ permissions?: 'private' | 'show_only_free_busy' | 'public';
139
+ /** 日历颜色,颜色RGB值的int32表示。客户端展示时会映射到色板上最接近的一种颜色。仅对当前身份生效 */
140
+ color?: number;
141
+ /** 日历备注名,修改或添加后仅对当前身份生效 */
142
+ summary_alias?: string;
143
+ }
144
+ interface PatchResponse {
145
+ /** 日历信息 */
146
+ calendar?: Lark.Calendar;
147
+ }
148
+ interface SearchRequest {
149
+ /** 搜索关键字 */
150
+ query: string;
151
+ }
152
+ interface SearchResponse {
153
+ /** 搜索命中的日历列表 */
154
+ items?: Lark.Calendar[];
155
+ /** 下次请求需要带上的分页标记 */
156
+ page_token?: string;
157
+ }
158
+ interface SubscribeResponse {
159
+ /** 日历信息 */
160
+ calendar?: Lark.Calendar;
161
+ }
162
+ namespace Freebusy {
163
+ interface Methods {
164
+ /**
165
+ * 查询主日历日程忙闲信息
166
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/freebusy/list
167
+ */
168
+ list(body: ListRequest, query?: ListQuery): Promise<ListResponse>;
169
+ }
170
+ interface ListRequest {
171
+ /** 查询时段开始时间,需要url编码 */
172
+ time_min: string;
173
+ /** 查询时段结束时间,需要url编码 */
174
+ time_max: string;
175
+ /** 用户user_id,输入时与 room_id 二选一。参见[用户相关的 ID 概念](/ssl:ttdoc/home/user-identity-introduction/introduction) */
176
+ user_id?: string;
177
+ /** 会议室room_id,输入时与 user_id 二选一 */
178
+ room_id?: string;
179
+ /** 是否包含绑定的三方日历中的日程,不传默认为true,即包含。 */
180
+ include_external_calendar?: boolean;
181
+ /** 是否包含标记为空闲的日程,不传默认为true,即包含。 */
182
+ only_busy?: boolean;
183
+ }
184
+ interface ListQuery {
185
+ /** 此次调用中使用的用户ID的类型 */
186
+ user_id_type?: 'user_id' | 'union_id' | 'open_id';
187
+ }
188
+ interface ListResponse {
189
+ /** 日历上请求时间区间内的忙闲信息 */
190
+ freebusy_list?: Lark.Freebusy[];
191
+ }
192
+ }
193
+ namespace Acl {
194
+ interface Methods {
195
+ /**
196
+ * 创建访问控制
197
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-acl/create
198
+ */
199
+ create(calendar_id: string, body: CreateRequest, query?: CreateQuery): Promise<CreateResponse>;
200
+ /**
201
+ * 删除访问控制
202
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-acl/delete
203
+ */
204
+ delete(calendar_id: string, acl_id: string): Promise<void>;
205
+ /**
206
+ * 获取访问控制列表
207
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-acl/list
208
+ */
209
+ list(calendar_id: string, query?: ListQuery): Paginated<Lark.CalendarAcl, 'acls'>;
210
+ /**
211
+ * 订阅日历访问控制变更事件
212
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-acl/subscription
213
+ */
214
+ subscription(calendar_id: string): Promise<void>;
215
+ /**
216
+ * 取消订阅日历访问控制变更事件
217
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-acl/unsubscription
218
+ */
219
+ unsubscription(calendar_id: string): Promise<void>;
220
+ }
221
+ interface CreateRequest {
222
+ /** 对日历的访问权限 */
223
+ role: 'unknown' | 'free_busy_reader' | 'reader' | 'writer' | 'owner';
224
+ /** 权限范围 */
225
+ scope: Lark.AclScope;
226
+ }
227
+ interface CreateQuery {
228
+ /** 此次调用中使用的用户ID的类型 */
229
+ user_id_type?: 'user_id' | 'union_id' | 'open_id';
230
+ }
231
+ interface CreateResponse {
232
+ /** acl资源ID */
233
+ acl_id: string;
234
+ /** 对日历的访问权限 */
235
+ role: 'unknown' | 'free_busy_reader' | 'reader' | 'writer' | 'owner';
236
+ /** 权限范围 */
237
+ scope: Lark.AclScope;
238
+ }
239
+ interface ListQuery extends Pagination {
240
+ /** 此次调用中使用的用户ID的类型 */
241
+ user_id_type?: 'user_id' | 'union_id' | 'open_id';
242
+ }
243
+ }
244
+ namespace Event {
245
+ interface Methods {
246
+ meetingChat: MeetingChat.Methods;
247
+ meetingMinute: MeetingMinute.Methods;
248
+ attendee: Attendee.Methods;
249
+ /**
250
+ * 创建日程
251
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event/create
252
+ */
253
+ create(calendar_id: string, body: CreateRequest, query?: CreateQuery): Promise<CreateResponse>;
254
+ /**
255
+ * 删除日程
256
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event/delete
257
+ */
258
+ delete(calendar_id: string, event_id: string, query?: DeleteQuery): Promise<void>;
259
+ /**
260
+ * 更新日程
261
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event/patch
262
+ */
263
+ patch(calendar_id: string, event_id: string, body: PatchRequest, query?: PatchQuery): Promise<PatchResponse>;
264
+ /**
265
+ * 获取日程
266
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event/get
267
+ */
268
+ get(calendar_id: string, event_id: string, query?: GetQuery): Promise<GetResponse>;
269
+ /**
270
+ * 获取日程列表
271
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event/list
272
+ */
273
+ list(calendar_id: string, query?: ListQuery): Promise<ListResponse>;
274
+ /**
275
+ * 搜索日程
276
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event/search
277
+ */
278
+ search(calendar_id: string, body: SearchRequest, query?: SearchQuery): Promise<SearchResponse> & AsyncIterableIterator<Lark.CalendarEvent>;
279
+ /**
280
+ * 订阅日程变更事件
281
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event/subscription
282
+ */
283
+ subscription(calendar_id: string): Promise<void>;
284
+ /**
285
+ * 取消订阅日程变更事件
286
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event/unsubscription
287
+ */
288
+ unsubscription(calendar_id: string): Promise<void>;
289
+ /**
290
+ * 回复日程
291
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event/reply
292
+ */
293
+ reply(calendar_id: string, event_id: string, body: ReplyRequest): Promise<void>;
294
+ /**
295
+ * 获取重复日程实例
296
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event/instances
297
+ */
298
+ instances(calendar_id: string, event_id: string, query?: InstancesQuery): Paginated<Lark.Instance>;
299
+ /**
300
+ * 查询日程视图
301
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event/instance_view
302
+ */
303
+ instanceView(calendar_id: string, query?: InstanceViewQuery): Promise<InstanceViewResponse>;
304
+ }
305
+ interface CreateRequest {
306
+ /** 日程标题 */
307
+ summary?: string;
308
+ /** 日程描述 */
309
+ description?: string;
310
+ /** 是否发送通知消息 */
311
+ need_notification?: boolean;
312
+ /** 日程开始时间 */
313
+ start_time: Lark.TimeInfo;
314
+ /** 日程结束时间 */
315
+ end_time: Lark.TimeInfo;
316
+ /** 视频会议信息,仅当日程至少有一位attendee时生效 */
317
+ vchat?: Lark.Vchat;
318
+ /** 日程公开范围,新建日程默认为Default;仅新建日程时对所有参与人生效,之后修改该属性仅对当前身份生效 */
319
+ visibility?: 'default' | 'public' | 'private';
320
+ /** 参与人权限 */
321
+ attendee_ability?: 'none' | 'can_see_others' | 'can_invite_others' | 'can_modify_event';
322
+ /** 日程占用的忙闲状态,新建日程默认为Busy;仅新建日程时对所有参与人生效,之后修改该属性仅对当前身份生效 */
323
+ free_busy_status?: 'busy' | 'free';
324
+ /** 日程地点 */
325
+ location?: Lark.EventLocation;
326
+ /** 日程颜色,颜色RGB值的int32表示。仅对当前身份生效;客户端展示时会映射到色板上最接近的一种颜色;值为0或-1时默认跟随日历颜色。 */
327
+ color?: number;
328
+ /** 日程提醒列表 */
329
+ reminders?: Lark.Reminder[];
330
+ /** 重复日程的重复性规则 */
331
+ recurrence?: string;
332
+ /** 日程自定义信息 */
333
+ schemas?: Lark.Schema[];
334
+ /** 日程附件 */
335
+ attachments?: Lark.Attachment[];
336
+ }
337
+ interface CreateQuery {
338
+ /** 幂等唯一key */
339
+ idempotency_key?: string;
340
+ /** 此次调用中使用的用户ID的类型 */
341
+ user_id_type?: 'user_id' | 'union_id' | 'open_id';
342
+ }
343
+ interface CreateResponse {
344
+ /** 日程信息 */
345
+ event?: Lark.CalendarEvent;
346
+ }
347
+ interface DeleteQuery {
348
+ /** 删除日程是否给日程参与人发送bot通知,默认为true */
349
+ need_notification?: 'true' | 'false';
350
+ }
351
+ interface PatchRequest {
352
+ /** 日程标题 */
353
+ summary?: string;
354
+ /** 日程描述 */
355
+ description?: string;
356
+ /** 是否发送通知消息 */
357
+ need_notification?: boolean;
358
+ /** 日程开始时间 */
359
+ start_time?: Lark.TimeInfo;
360
+ /** 日程结束时间 */
361
+ end_time?: Lark.TimeInfo;
362
+ /** 视频会议信息,仅当日程至少有一位attendee时生效 */
363
+ vchat?: Lark.Vchat;
364
+ /** 日程公开范围,新建日程默认为Default;仅新建日程时对所有参与人生效,之后修改该属性仅对当前身份生效 */
365
+ visibility?: 'default' | 'public' | 'private';
366
+ /** 参与人权限 */
367
+ attendee_ability?: 'none' | 'can_see_others' | 'can_invite_others' | 'can_modify_event';
368
+ /** 日程占用的忙闲状态,新建日程默认为Busy;仅新建日程时对所有参与人生效,之后修改该属性仅对当前身份生效 */
369
+ free_busy_status?: 'busy' | 'free';
370
+ /** 日程地点 */
371
+ location?: Lark.EventLocation;
372
+ /** 日程颜色,颜色RGB值的int32表示。仅对当前身份生效;客户端展示时会映射到色板上最接近的一种颜色;值为0或-1时默认跟随日历颜色。 */
373
+ color?: number;
374
+ /** 日程提醒列表 */
375
+ reminders?: Lark.Reminder[];
376
+ /** 重复日程的重复性规则 */
377
+ recurrence?: string;
378
+ /** 日程自定义信息 */
379
+ schemas?: Lark.Schema[];
380
+ /** 日程附件 */
381
+ attachments?: Lark.Attachment[];
382
+ }
383
+ interface PatchQuery {
384
+ /** 此次调用中使用的用户ID的类型 */
385
+ user_id_type?: 'user_id' | 'union_id' | 'open_id';
386
+ }
387
+ interface PatchResponse {
388
+ /** 日程信息 */
389
+ event?: Lark.CalendarEvent;
390
+ }
391
+ interface GetQuery {
392
+ /** 是否需要返回会前设置 */
393
+ need_meeting_settings?: boolean;
394
+ /** 是否需要返回参与人信息 */
395
+ need_attendee?: boolean;
396
+ /** 返回的最大参与人数量 */
397
+ max_attendee_num?: number;
398
+ /** 此次调用中使用的用户ID的类型 */
399
+ user_id_type?: 'user_id' | 'union_id' | 'open_id';
400
+ }
401
+ interface GetResponse {
402
+ /** 日程信息 */
403
+ event?: Lark.CalendarEvent;
404
+ }
405
+ interface ListQuery extends Pagination {
406
+ /** 拉取anchor_time之后的日程,为timestamp */
407
+ anchor_time?: string;
408
+ /** 上次请求Response返回的增量同步标记,分页请求未结束时为空 */
409
+ sync_token?: string;
410
+ /** 日程开始Unix时间戳,单位为秒 */
411
+ start_time?: string;
412
+ /** 日程结束Unix时间戳,单位为秒 */
413
+ end_time?: string;
414
+ /** 此次调用中使用的用户ID的类型 */
415
+ user_id_type?: 'user_id' | 'union_id' | 'open_id';
416
+ }
417
+ interface ListResponse {
418
+ /** 是否有下一页数据 */
419
+ has_more?: boolean;
420
+ /** 下次请求需要带上的分页标记,90 天有效期 */
421
+ page_token?: string;
422
+ /** 下次请求需要带上的增量同步标记,90 天有效期 */
423
+ sync_token?: string;
424
+ /** 日程列表 */
425
+ items?: Lark.CalendarEvent[];
426
+ }
427
+ interface SearchRequest {
428
+ /** 搜索关键字 */
429
+ query: string;
430
+ /** 搜索过滤器 */
431
+ filter?: Lark.EventSearchFilter;
432
+ }
433
+ interface SearchQuery extends Pagination {
434
+ /** 此次调用中使用的用户ID的类型 */
435
+ user_id_type?: 'user_id' | 'union_id' | 'open_id';
436
+ }
437
+ interface SearchResponse {
438
+ /** 搜索命中的日程列表 */
439
+ items?: Lark.CalendarEvent[];
440
+ /** 下次请求需要带上的分页标记 */
441
+ page_token?: string;
442
+ }
443
+ interface ReplyRequest {
444
+ /** rsvp-日程状态 */
445
+ rsvp_status: 'accept' | 'decline' | 'tentative';
446
+ }
447
+ interface InstancesQuery extends Pagination {
448
+ /** 日程实例开始Unix时间戳,单位为秒,日程的end_time的下限(不包含) */
449
+ start_time: string;
450
+ /** 日程实例结束Unix时间戳,单位为秒,日程的start_time上限(不包含) */
451
+ end_time: string;
452
+ }
453
+ interface InstanceViewQuery {
454
+ /** 日程开始Unix时间戳,单位为秒 */
455
+ start_time: string;
456
+ /** 日程结束Unix时间戳,单位为秒 */
457
+ end_time: string;
458
+ /** 此次调用中使用的用户ID的类型 */
459
+ user_id_type?: 'user_id' | 'union_id' | 'open_id';
460
+ }
461
+ interface InstanceViewResponse {
462
+ /** 日程instance列表 */
463
+ items?: Lark.Instance[];
464
+ }
465
+ namespace MeetingChat {
466
+ interface Methods {
467
+ /**
468
+ * 创建会议群
469
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event-meeting_chat/create
470
+ */
471
+ create(calendar_id: string, event_id: string): Promise<CreateResponse>;
472
+ /**
473
+ * 解绑会议群
474
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event-meeting_chat/delete
475
+ */
476
+ delete(calendar_id: string, event_id: string, query?: DeleteQuery): Promise<void>;
477
+ }
478
+ interface CreateResponse {
479
+ /** 会议群ID */
480
+ meeting_chat_id?: string;
481
+ /** 群分享链接 */
482
+ applink?: string;
483
+ }
484
+ interface DeleteQuery {
485
+ /** 会议群ID */
486
+ meeting_chat_id: string;
487
+ }
488
+ }
489
+ namespace MeetingMinute {
490
+ interface Methods {
491
+ /**
492
+ * 创建会议纪要
493
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event-meeting_minute/create
494
+ */
495
+ create(calendar_id: string, event_id: string): Promise<CreateResponse>;
496
+ }
497
+ interface CreateResponse {
498
+ /** 文档URL */
499
+ doc_url?: string;
500
+ }
501
+ }
502
+ namespace Attendee {
503
+ interface Methods {
504
+ chatMember: ChatMember.Methods;
505
+ /**
506
+ * 添加日程参与人
507
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event-attendee/create
508
+ */
509
+ create(calendar_id: string, event_id: string, body: CreateRequest, query?: CreateQuery): Promise<CreateResponse>;
510
+ /**
511
+ * 删除日程参与人
512
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event-attendee/batch_delete
513
+ */
514
+ batchDelete(calendar_id: string, event_id: string, body: BatchDeleteRequest, query?: BatchDeleteQuery): Promise<void>;
515
+ /**
516
+ * 获取日程参与人列表
517
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event-attendee/list
518
+ */
519
+ list(calendar_id: string, event_id: string, query?: ListQuery): Paginated<Lark.CalendarEventAttendee>;
520
+ }
521
+ interface CreateRequest {
522
+ /** 新增参与人列表;<br>- 单次请求会议室的数量限制为100。 */
523
+ attendees?: Lark.CalendarEventAttendee[];
524
+ /** 是否给参与人发送bot通知 默认为true */
525
+ need_notification?: boolean;
526
+ /** 使用管理员身份访问时要修改的实例(仅用于重复日程修改其中的一个实例,非重复日程无需填此字段) */
527
+ instance_start_time_admin?: string;
528
+ /** 是否启用管理员身份(需先在管理后台设置某人为会议室管理员) */
529
+ is_enable_admin?: boolean;
530
+ /** 是否添加会议室operate_id标识的用户到参与人 */
531
+ add_operator_to_attendee?: boolean;
532
+ }
533
+ interface CreateQuery {
534
+ /** 此次调用中使用的用户ID的类型 */
535
+ user_id_type?: 'user_id' | 'union_id' | 'open_id';
536
+ }
537
+ interface CreateResponse {
538
+ /** 被添加的参与人列表 */
539
+ attendees?: Lark.CalendarEventAttendee[];
540
+ }
541
+ interface BatchDeleteRequest {
542
+ /** 要移除的参与人 ID 列表。参见[参与人ID说明](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event-attendee/introduction#4998889c) */
543
+ attendee_ids?: string[];
544
+ /** 需要删除的参与人类型实体ID,作为attendee_ids字段的补充。 */
545
+ delete_ids?: Lark.CalendarEventAttendeeId[];
546
+ /** 删除日程参与人时是否要给参与人发送bot通知,默认为true */
547
+ need_notification?: boolean;
548
+ /** 使用管理员身份访问时要修改的实例 */
549
+ instance_start_time_admin?: string;
550
+ /** 是否启用管理员身份(需先在管理后台设置某人为会议室管理员) */
551
+ is_enable_admin?: boolean;
552
+ }
553
+ interface BatchDeleteQuery {
554
+ /** 此次调用中使用的用户ID的类型 */
555
+ user_id_type?: 'user_id' | 'union_id' | 'open_id';
556
+ }
557
+ interface ListQuery extends Pagination {
558
+ /** 此次调用中使用的用户ID的类型 */
559
+ user_id_type?: 'user_id' | 'union_id' | 'open_id';
560
+ /** 是否需要会议室表单信息 */
561
+ need_resource_customization?: boolean;
562
+ }
563
+ namespace ChatMember {
564
+ interface Methods {
565
+ /**
566
+ * 获取日程参与群成员列表
567
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event-attendee-chat_member/list
568
+ */
569
+ list(calendar_id: string, event_id: string, attendee_id: string, query?: ListQuery): Paginated<Lark.CalendarEventAttendeeChatMember>;
570
+ }
571
+ interface ListQuery extends Pagination {
572
+ /** 此次调用中使用的用户ID的类型 */
573
+ user_id_type?: 'user_id' | 'union_id' | 'open_id';
574
+ }
575
+ }
576
+ }
577
+ }
578
+ namespace TimeoffEvent {
579
+ interface Methods {
580
+ /**
581
+ * 创建请假日程
582
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/timeoff_event/create
583
+ */
584
+ create(body: CreateRequest, query?: CreateQuery): Promise<CreateResponse>;
585
+ /**
586
+ * 删除请假日程
587
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/timeoff_event/delete
588
+ */
589
+ delete(timeoff_event_id: string): Promise<void>;
590
+ }
591
+ interface CreateRequest {
592
+ /** 用户的user id */
593
+ user_id: string;
594
+ /** 休假人的时区 */
595
+ timezone: string;
596
+ /** 休假开始时间(时间戳)/日期(2021-01-01),为日期时将生成全天日程,且与end_time对应,不符合将返回错误 */
597
+ start_time: string;
598
+ /** 休假结束时间(时间戳)/日期(2021-01-01),为日期时将生成全天日程,与start_time对应,不符合将返回错误 */
599
+ end_time: string;
600
+ /** 休假日程标题,可自定义例如:"请假中(全天) / 1-Day Time Off","请假中(半天) / 0.5-Day Time Off","长期休假中 / Leave of Absence","请假中" */
601
+ title?: string;
602
+ /** 休假日程描述,可自定义,例如:"若拒绝或删除此日程,飞书中相应的“请假”标签将自动消失,而请假系统中的休假申请不会被撤销。If the event is rejected or deleted, corresponding "On Leave" tag in Feishu will disappear, while the leave request in the time off system will not be revoked." */
603
+ description?: string;
604
+ }
605
+ interface CreateQuery {
606
+ /** 此次调用中使用的用户ID的类型 */
607
+ user_id_type?: 'user_id' | 'union_id' | 'open_id';
608
+ }
609
+ interface CreateResponse {
610
+ /** 休假申请的唯一标识id */
611
+ timeoff_event_id: string;
612
+ /** 用户的user id */
613
+ user_id: string;
614
+ /** 休假人的时区 */
615
+ timezone: string;
616
+ /** 休假开始时间(时间戳)/日期(2021-01-01),为日期时将生成全天日程,且与end_time对应,不符合将返回错误 */
617
+ start_time: string;
618
+ /** 休假结束时间(时间戳)/日期(2021-01-01),为日期时将生成全天日程,与start_time对应,不符合将返回错误 */
619
+ end_time: string;
620
+ /** 休假日程标题,可自定义例如:"请假中(全天) / 1-Day Time Off","请假中(半天) / 0.5-Day Time Off","长期休假中 / Leave of Absence","请假中" */
621
+ title?: string;
622
+ /** 休假日程描述,可自定义,例如:"若拒绝或删除此日程,飞书中相应的“请假”标签将自动消失,而请假系统中的休假申请不会被撤销。If the event is rejected or deleted, corresponding "On Leave" tag in Feishu will disappear, while the leave request in the time off system will not be revoked." */
623
+ description?: string;
624
+ }
625
+ }
626
+ namespace Setting {
627
+ interface Methods {
628
+ /**
629
+ * 生成 CalDAV 配置
630
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/setting/generate_caldav_conf
631
+ */
632
+ generateCaldavConf(body: GenerateCaldavConfRequest): Promise<GenerateCaldavConfResponse>;
633
+ }
634
+ interface GenerateCaldavConfRequest {
635
+ /** 需要同步日历的设备名,在日历中展示用来管理密码 */
636
+ device_name?: string;
637
+ }
638
+ interface GenerateCaldavConfResponse {
639
+ /** caldav密码 */
640
+ password?: string;
641
+ /** caldav用户名 */
642
+ user_name?: string;
643
+ /** 服务器地址 */
644
+ server_address?: string;
645
+ /** 设备名 */
646
+ device_name?: string;
647
+ }
648
+ }
649
+ namespace ExchangeBinding {
650
+ interface Methods {
651
+ /**
652
+ * 将 Exchange 账户绑定到飞书账户
653
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/exchange_binding/create
654
+ */
655
+ create(body: CreateRequest, query?: CreateQuery): Promise<CreateResponse>;
656
+ /**
657
+ * 解除 Exchange 账户绑定
658
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/exchange_binding/delete
659
+ */
660
+ delete(exchange_binding_id: string): Promise<void>;
661
+ /**
662
+ * 查询 Exchange 账户的绑定状态
663
+ * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/exchange_binding/get
664
+ */
665
+ get(exchange_binding_id: string, query?: GetQuery): Promise<GetResponse>;
666
+ }
667
+ interface CreateRequest {
668
+ /** admin账户 */
669
+ admin_account?: string;
670
+ /** 用户绑定的Exchange账户 */
671
+ exchange_account?: string;
672
+ /** Exchange账户绑定user唯一标识id */
673
+ user_id?: string;
674
+ }
675
+ interface CreateQuery {
676
+ /** 此次调用中使用的用户ID的类型 */
677
+ user_id_type?: 'user_id' | 'union_id' | 'open_id';
678
+ }
679
+ interface CreateResponse {
680
+ /** admin账户 */
681
+ admin_account?: string;
682
+ /** 用户绑定的Exchange账户 */
683
+ exchange_account?: string;
684
+ /** Exchange账户绑定user唯一标识id */
685
+ user_id?: string;
686
+ /** Exchange账户同步状态 */
687
+ status?: 'doing' | 'cal_done' | 'timespan_done' | 'done' | 'err';
688
+ /** exchange绑定唯一标识id */
689
+ exchange_binding_id: string;
690
+ }
691
+ interface GetQuery {
692
+ /** 此次调用中使用的用户ID的类型 */
693
+ user_id_type?: 'user_id' | 'union_id' | 'open_id';
694
+ }
695
+ interface GetResponse {
696
+ /** admin账户 */
697
+ admin_account?: string;
698
+ /** 用户绑定的Exchange账户 */
699
+ exchange_account?: string;
700
+ /** Exchange账户绑定user唯一标识id */
701
+ user_id?: string;
702
+ /** Exchange账户同步状态 */
703
+ status?: 'doing' | 'cal_done' | 'timespan_done' | 'done' | 'err';
704
+ /** Exchange绑定关系唯一标识ID */
705
+ exchange_binding_id?: string;
706
+ }
210
707
  }
211
- }
212
- export interface CreateCalendarRequest {
213
- /** 日历标题 */
214
- summary?: string;
215
- /** 日历描述 */
216
- description?: string;
217
- /** 权限 */
218
- permissions?: 'private' | 'show_only_free_busy' | 'public';
219
- /** 日历颜色,颜色RGB值的int32表示。客户端展示时会映射到色板上最接近的一种颜色。仅对当前身份生效 */
220
- color?: number;
221
- /** 日历备注名,修改或添加后仅对当前身份生效 */
222
- summary_alias?: string;
223
- }
224
- export interface CreateCalendarResponse {
225
- /** 日历信息 */
226
- calendar?: Calendar;
227
- }
228
- export interface PrimaryCalendarQuery {
229
- /** 此次调用中使用的用户ID的类型 */
230
- user_id_type?: 'user_id' | 'union_id' | 'open_id';
231
- }
232
- export interface PrimaryCalendarResponse {
233
- /** 主日历列表 */
234
- calendars?: UserCalendar[];
235
- }
236
- export interface GetCalendarResponse {
237
- /** 日历OpenId */
238
- calendar_id: string;
239
- /** 日历标题 */
240
- summary?: string;
241
- /** 日历描述 */
242
- description?: string;
243
- /** 权限 */
244
- permissions?: 'private' | 'show_only_free_busy' | 'public';
245
- /** 日历颜色,颜色RGB值的int32表示。客户端展示时会映射到色板上最接近的一种颜色。仅对当前身份生效 */
246
- color?: number;
247
- /** 日历类型 */
248
- type?: 'unknown' | 'primary' | 'shared' | 'google' | 'resource' | 'exchange';
249
- /** 日历备注名,修改或添加后仅对当前身份生效 */
250
- summary_alias?: string;
251
- /** 对于当前身份,日历是否已经被标记为删除 */
252
- is_deleted?: boolean;
253
- /** 当前日历是否是第三方数据;三方日历及日程只支持读,不支持写入 */
254
- is_third_party?: boolean;
255
- /** 当前身份对于该日历的访问权限 */
256
- role?: 'unknown' | 'free_busy_reader' | 'reader' | 'writer' | 'owner';
257
- }
258
- export interface ListCalendarFreebusyRequest {
259
- /** 查询时段开始时间,需要url编码 */
260
- time_min: string;
261
- /** 查询时段结束时间,需要url编码 */
262
- time_max: string;
263
- /** 用户user_id,输入时与 room_id 二选一。参见[用户相关的 ID 概念](/ssl:ttdoc/home/user-identity-introduction/introduction) */
264
- user_id?: string;
265
- /** 会议室room_id,输入时与 user_id 二选一 */
266
- room_id?: string;
267
- /** 是否包含绑定的三方日历中的日程,不传默认为true,即包含。 */
268
- include_external_calendar?: boolean;
269
- /** 是否包含标记为空闲的日程,不传默认为true,即包含。 */
270
- only_busy?: boolean;
271
- }
272
- export interface ListCalendarFreebusyQuery {
273
- /** 此次调用中使用的用户ID的类型 */
274
- user_id_type?: 'user_id' | 'union_id' | 'open_id';
275
- }
276
- export interface ListCalendarFreebusyResponse {
277
- /** 日历上请求时间区间内的忙闲信息 */
278
- freebusy_list?: Freebusy[];
279
- }
280
- export interface ListCalendarQuery extends Pagination {
281
- /** 上次请求Response返回的增量同步标记,分页请求未结束时为空 */
282
- sync_token?: string;
283
- }
284
- export interface ListCalendarResponse {
285
- /** 是否有下一页数据 */
286
- has_more?: boolean;
287
- /** 下次请求需要带上的分页标记,90 天有效期 */
288
- page_token?: string;
289
- /** 下次请求需要带上的增量同步标记,90 天有效期 */
290
- sync_token?: string;
291
- /** 分页加载的日历数据列表 */
292
- calendar_list?: Calendar[];
293
- }
294
- export interface PatchCalendarRequest {
295
- /** 标题 */
296
- summary?: string;
297
- /** 日历描述 */
298
- description?: string;
299
- /** 权限 */
300
- permissions?: 'private' | 'show_only_free_busy' | 'public';
301
- /** 日历颜色,颜色RGB值的int32表示。客户端展示时会映射到色板上最接近的一种颜色。仅对当前身份生效 */
302
- color?: number;
303
- /** 日历备注名,修改或添加后仅对当前身份生效 */
304
- summary_alias?: string;
305
- }
306
- export interface PatchCalendarResponse {
307
- /** 日历信息 */
308
- calendar?: Calendar;
309
- }
310
- export interface SearchCalendarRequest {
311
- /** 搜索关键字 */
312
- query: string;
313
- }
314
- export interface SearchCalendarResponse {
315
- /** 搜索命中的日历列表 */
316
- items?: Calendar[];
317
- /** 下次请求需要带上的分页标记 */
318
- page_token?: string;
319
- }
320
- export interface SubscribeCalendarResponse {
321
- /** 日历信息 */
322
- calendar?: Calendar;
323
- }
324
- export interface CreateCalendarCalendarAclRequest {
325
- /** 对日历的访问权限 */
326
- role: 'unknown' | 'free_busy_reader' | 'reader' | 'writer' | 'owner';
327
- /** 权限范围 */
328
- scope: AclScope;
329
- }
330
- export interface CreateCalendarCalendarAclQuery {
331
- /** 此次调用中使用的用户ID的类型 */
332
- user_id_type?: 'user_id' | 'union_id' | 'open_id';
333
- }
334
- export interface CreateCalendarCalendarAclResponse {
335
- /** acl资源ID */
336
- acl_id: string;
337
- /** 对日历的访问权限 */
338
- role: 'unknown' | 'free_busy_reader' | 'reader' | 'writer' | 'owner';
339
- /** 权限范围 */
340
- scope: AclScope;
341
- }
342
- export interface ListCalendarCalendarAclQuery extends Pagination {
343
- /** 此次调用中使用的用户ID的类型 */
344
- user_id_type?: 'user_id' | 'union_id' | 'open_id';
345
- }
346
- export interface CreateCalendarCalendarEventRequest {
347
- /** 日程标题 */
348
- summary?: string;
349
- /** 日程描述 */
350
- description?: string;
351
- /** 是否发送通知消息 */
352
- need_notification?: boolean;
353
- /** 日程开始时间 */
354
- start_time: TimeInfo;
355
- /** 日程结束时间 */
356
- end_time: TimeInfo;
357
- /** 视频会议信息,仅当日程至少有一位attendee时生效 */
358
- vchat?: Vchat;
359
- /** 日程公开范围,新建日程默认为Default;仅新建日程时对所有参与人生效,之后修改该属性仅对当前身份生效 */
360
- visibility?: 'default' | 'public' | 'private';
361
- /** 参与人权限 */
362
- attendee_ability?: 'none' | 'can_see_others' | 'can_invite_others' | 'can_modify_event';
363
- /** 日程占用的忙闲状态,新建日程默认为Busy;仅新建日程时对所有参与人生效,之后修改该属性仅对当前身份生效 */
364
- free_busy_status?: 'busy' | 'free';
365
- /** 日程地点 */
366
- location?: EventLocation;
367
- /** 日程颜色,颜色RGB值的int32表示。仅对当前身份生效;客户端展示时会映射到色板上最接近的一种颜色;值为0或-1时默认跟随日历颜色。 */
368
- color?: number;
369
- /** 日程提醒列表 */
370
- reminders?: Reminder[];
371
- /** 重复日程的重复性规则 */
372
- recurrence?: string;
373
- /** 日程自定义信息 */
374
- schemas?: Schema[];
375
- /** 日程附件 */
376
- attachments?: Attachment[];
377
- }
378
- export interface CreateCalendarCalendarEventQuery {
379
- /** 幂等唯一key */
380
- idempotency_key?: string;
381
- /** 此次调用中使用的用户ID的类型 */
382
- user_id_type?: 'user_id' | 'union_id' | 'open_id';
383
- }
384
- export interface CreateCalendarCalendarEventResponse {
385
- /** 日程信息 */
386
- event?: CalendarEvent;
387
- }
388
- export interface DeleteCalendarCalendarEventQuery {
389
- /** 删除日程是否给日程参与人发送bot通知,默认为true */
390
- need_notification?: 'true' | 'false';
391
- }
392
- export interface PatchCalendarCalendarEventRequest {
393
- /** 日程标题 */
394
- summary?: string;
395
- /** 日程描述 */
396
- description?: string;
397
- /** 是否发送通知消息 */
398
- need_notification?: boolean;
399
- /** 日程开始时间 */
400
- start_time?: TimeInfo;
401
- /** 日程结束时间 */
402
- end_time?: TimeInfo;
403
- /** 视频会议信息,仅当日程至少有一位attendee时生效 */
404
- vchat?: Vchat;
405
- /** 日程公开范围,新建日程默认为Default;仅新建日程时对所有参与人生效,之后修改该属性仅对当前身份生效 */
406
- visibility?: 'default' | 'public' | 'private';
407
- /** 参与人权限 */
408
- attendee_ability?: 'none' | 'can_see_others' | 'can_invite_others' | 'can_modify_event';
409
- /** 日程占用的忙闲状态,新建日程默认为Busy;仅新建日程时对所有参与人生效,之后修改该属性仅对当前身份生效 */
410
- free_busy_status?: 'busy' | 'free';
411
- /** 日程地点 */
412
- location?: EventLocation;
413
- /** 日程颜色,颜色RGB值的int32表示。仅对当前身份生效;客户端展示时会映射到色板上最接近的一种颜色;值为0或-1时默认跟随日历颜色。 */
414
- color?: number;
415
- /** 日程提醒列表 */
416
- reminders?: Reminder[];
417
- /** 重复日程的重复性规则 */
418
- recurrence?: string;
419
- /** 日程自定义信息 */
420
- schemas?: Schema[];
421
- /** 日程附件 */
422
- attachments?: Attachment[];
423
- }
424
- export interface PatchCalendarCalendarEventQuery {
425
- /** 此次调用中使用的用户ID的类型 */
426
- user_id_type?: 'user_id' | 'union_id' | 'open_id';
427
- }
428
- export interface PatchCalendarCalendarEventResponse {
429
- /** 日程信息 */
430
- event?: CalendarEvent;
431
- }
432
- export interface GetCalendarCalendarEventQuery {
433
- /** 是否需要返回会前设置 */
434
- need_meeting_settings?: boolean;
435
- /** 是否需要返回参与人信息 */
436
- need_attendee?: boolean;
437
- /** 返回的最大参与人数量 */
438
- max_attendee_num?: number;
439
- /** 此次调用中使用的用户ID的类型 */
440
- user_id_type?: 'user_id' | 'union_id' | 'open_id';
441
- }
442
- export interface GetCalendarCalendarEventResponse {
443
- /** 日程信息 */
444
- event?: CalendarEvent;
445
- }
446
- export interface ListCalendarCalendarEventQuery extends Pagination {
447
- /** 拉取anchor_time之后的日程,为timestamp */
448
- anchor_time?: string;
449
- /** 上次请求Response返回的增量同步标记,分页请求未结束时为空 */
450
- sync_token?: string;
451
- /** 日程开始Unix时间戳,单位为秒 */
452
- start_time?: string;
453
- /** 日程结束Unix时间戳,单位为秒 */
454
- end_time?: string;
455
- /** 此次调用中使用的用户ID的类型 */
456
- user_id_type?: 'user_id' | 'union_id' | 'open_id';
457
- }
458
- export interface ListCalendarCalendarEventResponse {
459
- /** 是否有下一页数据 */
460
- has_more?: boolean;
461
- /** 下次请求需要带上的分页标记,90 天有效期 */
462
- page_token?: string;
463
- /** 下次请求需要带上的增量同步标记,90 天有效期 */
464
- sync_token?: string;
465
- /** 日程列表 */
466
- items?: CalendarEvent[];
467
- }
468
- export interface SearchCalendarCalendarEventRequest {
469
- /** 搜索关键字 */
470
- query: string;
471
- /** 搜索过滤器 */
472
- filter?: EventSearchFilter;
473
- }
474
- export interface SearchCalendarCalendarEventQuery extends Pagination {
475
- /** 此次调用中使用的用户ID的类型 */
476
- user_id_type?: 'user_id' | 'union_id' | 'open_id';
477
- }
478
- export interface SearchCalendarCalendarEventResponse {
479
- /** 搜索命中的日程列表 */
480
- items?: CalendarEvent[];
481
- /** 下次请求需要带上的分页标记 */
482
- page_token?: string;
483
- }
484
- export interface ReplyCalendarCalendarEventRequest {
485
- /** rsvp-日程状态 */
486
- rsvp_status: 'accept' | 'decline' | 'tentative';
487
- }
488
- export interface InstancesCalendarCalendarEventQuery extends Pagination {
489
- /** 日程实例开始Unix时间戳,单位为秒,日程的end_time的下限(不包含) */
490
- start_time: string;
491
- /** 日程实例结束Unix时间戳,单位为秒,日程的start_time上限(不包含) */
492
- end_time: string;
493
- }
494
- export interface InstanceViewCalendarCalendarEventQuery {
495
- /** 日程开始Unix时间戳,单位为秒 */
496
- start_time: string;
497
- /** 日程结束Unix时间戳,单位为秒 */
498
- end_time: string;
499
- /** 此次调用中使用的用户ID的类型 */
500
- user_id_type?: 'user_id' | 'union_id' | 'open_id';
501
- }
502
- export interface InstanceViewCalendarCalendarEventResponse {
503
- /** 日程instance列表 */
504
- items?: Instance[];
505
- }
506
- export interface CreateCalendarCalendarEventMeetingChatResponse {
507
- /** 会议群ID */
508
- meeting_chat_id?: string;
509
- /** 群分享链接 */
510
- applink?: string;
511
- }
512
- export interface DeleteCalendarCalendarEventMeetingChatQuery {
513
- /** 会议群ID */
514
- meeting_chat_id: string;
515
- }
516
- export interface CreateCalendarCalendarEventMeetingMinuteResponse {
517
- /** 文档URL */
518
- doc_url?: string;
519
- }
520
- export interface CreateCalendarTimeoffEventRequest {
521
- /** 用户的user id */
522
- user_id: string;
523
- /** 休假人的时区 */
524
- timezone: string;
525
- /** 休假开始时间(时间戳)/日期(2021-01-01),为日期时将生成全天日程,且与end_time对应,不符合将返回错误 */
526
- start_time: string;
527
- /** 休假结束时间(时间戳)/日期(2021-01-01),为日期时将生成全天日程,与start_time对应,不符合将返回错误 */
528
- end_time: string;
529
- /** 休假日程标题,可自定义例如:"请假中(全天) / 1-Day Time Off","请假中(半天) / 0.5-Day Time Off","长期休假中 / Leave of Absence","请假中" */
530
- title?: string;
531
- /** 休假日程描述,可自定义,例如:"若拒绝或删除此日程,飞书中相应的“请假”标签将自动消失,而请假系统中的休假申请不会被撤销。If the event is rejected or deleted, corresponding "On Leave" tag in Feishu will disappear, while the leave request in the time off system will not be revoked." */
532
- description?: string;
533
- }
534
- export interface CreateCalendarTimeoffEventQuery {
535
- /** 此次调用中使用的用户ID的类型 */
536
- user_id_type?: 'user_id' | 'union_id' | 'open_id';
537
- }
538
- export interface CreateCalendarTimeoffEventResponse {
539
- /** 休假申请的唯一标识id */
540
- timeoff_event_id: string;
541
- /** 用户的user id */
542
- user_id: string;
543
- /** 休假人的时区 */
544
- timezone: string;
545
- /** 休假开始时间(时间戳)/日期(2021-01-01),为日期时将生成全天日程,且与end_time对应,不符合将返回错误 */
546
- start_time: string;
547
- /** 休假结束时间(时间戳)/日期(2021-01-01),为日期时将生成全天日程,与start_time对应,不符合将返回错误 */
548
- end_time: string;
549
- /** 休假日程标题,可自定义例如:"请假中(全天) / 1-Day Time Off","请假中(半天) / 0.5-Day Time Off","长期休假中 / Leave of Absence","请假中" */
550
- title?: string;
551
- /** 休假日程描述,可自定义,例如:"若拒绝或删除此日程,飞书中相应的“请假”标签将自动消失,而请假系统中的休假申请不会被撤销。If the event is rejected or deleted, corresponding "On Leave" tag in Feishu will disappear, while the leave request in the time off system will not be revoked." */
552
- description?: string;
553
- }
554
- export interface CreateCalendarCalendarEventAttendeeRequest {
555
- /** 新增参与人列表;<br>- 单次请求会议室的数量限制为100。 */
556
- attendees?: CalendarEventAttendee[];
557
- /** 是否给参与人发送bot通知 默认为true */
558
- need_notification?: boolean;
559
- /** 使用管理员身份访问时要修改的实例(仅用于重复日程修改其中的一个实例,非重复日程无需填此字段) */
560
- instance_start_time_admin?: string;
561
- /** 是否启用管理员身份(需先在管理后台设置某人为会议室管理员) */
562
- is_enable_admin?: boolean;
563
- /** 是否添加会议室operate_id标识的用户到参与人 */
564
- add_operator_to_attendee?: boolean;
565
- }
566
- export interface CreateCalendarCalendarEventAttendeeQuery {
567
- /** 此次调用中使用的用户ID的类型 */
568
- user_id_type?: 'user_id' | 'union_id' | 'open_id';
569
- }
570
- export interface CreateCalendarCalendarEventAttendeeResponse {
571
- /** 被添加的参与人列表 */
572
- attendees?: CalendarEventAttendee[];
573
- }
574
- export interface BatchDeleteCalendarCalendarEventAttendeeRequest {
575
- /** 要移除的参与人 ID 列表。参见[参与人ID说明](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event-attendee/introduction#4998889c) */
576
- attendee_ids?: string[];
577
- /** 需要删除的参与人类型实体ID,作为attendee_ids字段的补充。 */
578
- delete_ids?: CalendarEventAttendeeId[];
579
- /** 删除日程参与人时是否要给参与人发送bot通知,默认为true */
580
- need_notification?: boolean;
581
- /** 使用管理员身份访问时要修改的实例 */
582
- instance_start_time_admin?: string;
583
- /** 是否启用管理员身份(需先在管理后台设置某人为会议室管理员) */
584
- is_enable_admin?: boolean;
585
- }
586
- export interface BatchDeleteCalendarCalendarEventAttendeeQuery {
587
- /** 此次调用中使用的用户ID的类型 */
588
- user_id_type?: 'user_id' | 'union_id' | 'open_id';
589
- }
590
- export interface ListCalendarCalendarEventAttendeeQuery extends Pagination {
591
- /** 此次调用中使用的用户ID的类型 */
592
- user_id_type?: 'user_id' | 'union_id' | 'open_id';
593
- /** 是否需要会议室表单信息 */
594
- need_resource_customization?: boolean;
595
- }
596
- export interface ListCalendarCalendarEventAttendeeChatMemberQuery extends Pagination {
597
- /** 此次调用中使用的用户ID的类型 */
598
- user_id_type?: 'user_id' | 'union_id' | 'open_id';
599
- }
600
- export interface GenerateCaldavConfCalendarSettingRequest {
601
- /** 需要同步日历的设备名,在日历中展示用来管理密码 */
602
- device_name?: string;
603
- }
604
- export interface GenerateCaldavConfCalendarSettingResponse {
605
- /** caldav密码 */
606
- password?: string;
607
- /** caldav用户名 */
608
- user_name?: string;
609
- /** 服务器地址 */
610
- server_address?: string;
611
- /** 设备名 */
612
- device_name?: string;
613
- }
614
- export interface CreateCalendarExchangeBindingRequest {
615
- /** admin账户 */
616
- admin_account?: string;
617
- /** 用户绑定的Exchange账户 */
618
- exchange_account?: string;
619
- /** Exchange账户绑定user唯一标识id */
620
- user_id?: string;
621
- }
622
- export interface CreateCalendarExchangeBindingQuery {
623
- /** 此次调用中使用的用户ID的类型 */
624
- user_id_type?: 'user_id' | 'union_id' | 'open_id';
625
- }
626
- export interface CreateCalendarExchangeBindingResponse {
627
- /** admin账户 */
628
- admin_account?: string;
629
- /** 用户绑定的Exchange账户 */
630
- exchange_account?: string;
631
- /** Exchange账户绑定user唯一标识id */
632
- user_id?: string;
633
- /** Exchange账户同步状态 */
634
- status?: 'doing' | 'cal_done' | 'timespan_done' | 'done' | 'err';
635
- /** exchange绑定唯一标识id */
636
- exchange_binding_id: string;
637
- }
638
- export interface GetCalendarExchangeBindingQuery {
639
- /** 此次调用中使用的用户ID的类型 */
640
- user_id_type?: 'user_id' | 'union_id' | 'open_id';
641
- }
642
- export interface GetCalendarExchangeBindingResponse {
643
- /** admin账户 */
644
- admin_account?: string;
645
- /** 用户绑定的Exchange账户 */
646
- exchange_account?: string;
647
- /** Exchange账户绑定user唯一标识id */
648
- user_id?: string;
649
- /** Exchange账户同步状态 */
650
- status?: 'doing' | 'cal_done' | 'timespan_done' | 'done' | 'err';
651
- /** Exchange绑定关系唯一标识ID */
652
- exchange_binding_id?: string;
653
708
  }