@satorijs/adapter-lark 3.10.6 → 3.11.1

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