@satorijs/adapter-lark 3.9.0 → 3.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.cjs +1091 -27
- package/lib/internal.d.ts +2 -3
- package/lib/types/acs.d.ts +19 -19
- package/lib/types/admin.d.ts +58 -32
- package/lib/types/aily.d.ts +52 -52
- package/lib/types/apaas.d.ts +96 -96
- package/lib/types/api.d.ts +14 -1
- package/lib/types/application.d.ts +153 -69
- package/lib/types/approval.d.ts +186 -154
- package/lib/types/attendance.d.ts +395 -353
- package/lib/types/auth.d.ts +18 -18
- package/lib/types/authen.d.ts +24 -24
- package/lib/types/baike.d.ts +42 -42
- package/lib/types/bitable.d.ts +276 -192
- package/lib/types/calendar.d.ts +144 -144
- package/lib/types/cardkit.d.ts +8 -8
- package/lib/types/contact.d.ts +209 -137
- package/lib/types/corehr.d.ts +761 -613
- package/lib/types/document_ai.d.ts +68 -68
- package/lib/types/docx.d.ts +103 -95
- package/lib/types/drive.d.ts +237 -229
- package/lib/types/ehr.d.ts +26 -2
- package/lib/types/helpdesk.d.ts +156 -148
- package/lib/types/hire.d.ts +954 -510
- package/lib/types/im.d.ts +446 -446
- package/lib/types/index.d.ts +72 -30
- package/lib/types/lingo.d.ts +28 -28
- package/lib/types/mail.d.ts +192 -192
- package/lib/types/minutes.d.ts +4 -4
- package/lib/types/okr.d.ts +86 -58
- package/lib/types/passport.d.ts +13 -5
- package/lib/types/payroll.d.ts +13 -5
- package/lib/types/performance.d.ts +85 -79
- package/lib/types/personal_settings.d.ts +12 -12
- package/lib/types/report.d.ts +11 -5
- package/lib/types/search.d.ts +48 -24
- package/lib/types/sheets.d.ts +64 -64
- package/lib/types/speech_to_text.d.ts +4 -4
- package/lib/types/task.d.ts +191 -185
- package/lib/types/translation.d.ts +4 -4
- package/lib/types/vc.d.ts +335 -155
- package/lib/types/wiki.d.ts +48 -48
- package/package.json +1 -1
- package/src/internal.ts +3 -4
- package/src/types/acs.ts +24 -24
- package/src/types/admin.ts +69 -39
- package/src/types/aily.ts +61 -61
- package/src/types/apaas.ts +113 -113
- package/src/types/application.ts +177 -83
- package/src/types/approval.ts +210 -174
- package/src/types/attendance.ts +466 -421
- package/src/types/auth.ts +20 -20
- package/src/types/authen.ts +28 -28
- package/src/types/baike.ts +55 -55
- package/src/types/bitable.ts +321 -235
- package/src/types/calendar.ts +167 -167
- package/src/types/cardkit.ts +10 -10
- package/src/types/contact.ts +251 -169
- package/src/types/corehr.ts +905 -736
- package/src/types/document_ai.ts +85 -85
- package/src/types/docx.ts +117 -108
- package/src/types/drive.ts +299 -290
- package/src/types/ehr.ts +28 -2
- package/src/types/helpdesk.ts +182 -173
- package/src/types/hire.ts +1081 -591
- package/src/types/im.ts +521 -521
- package/src/types/index.ts +73 -30
- package/src/types/lingo.ts +36 -36
- package/src/types/mail.ts +215 -215
- package/src/types/minutes.ts +5 -5
- package/src/types/okr.ts +98 -66
- package/src/types/passport.ts +15 -6
- package/src/types/payroll.ts +15 -6
- package/src/types/performance.ts +98 -91
- package/src/types/personal_settings.ts +15 -15
- package/src/types/report.ts +13 -6
- package/src/types/search.ts +57 -29
- package/src/types/sheets.ts +80 -80
- package/src/types/speech_to_text.ts +5 -5
- package/src/types/task.ts +238 -231
- package/src/types/translation.ts +5 -5
- package/src/types/vc.ts +386 -186
- package/src/types/wiki.ts +59 -59
- package/src/utils.ts +11 -6
- package/lib/index.cjs.map +0 -6
- package/lib/types/guild.d.ts +0 -59
- package/lib/types/message/asset.d.ts +0 -40
- package/lib/types/user.d.ts +0 -78
- package/lib/types/utils.d.ts +0 -9
package/lib/types/calendar.d.ts
CHANGED
|
@@ -41,7 +41,7 @@ declare module '../internal' {
|
|
|
41
41
|
* 搜索日历
|
|
42
42
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/search
|
|
43
43
|
*/
|
|
44
|
-
searchCalendar(body: SearchCalendarRequest, query?: Pagination): Promise<SearchCalendarResponse>;
|
|
44
|
+
searchCalendar(body: SearchCalendarRequest, query?: Pagination): Promise<SearchCalendarResponse> & AsyncIterableIterator<Calendar>;
|
|
45
45
|
/**
|
|
46
46
|
* 订阅日历
|
|
47
47
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/subscribe
|
|
@@ -116,7 +116,7 @@ declare module '../internal' {
|
|
|
116
116
|
* 搜索日程
|
|
117
117
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event/search
|
|
118
118
|
*/
|
|
119
|
-
searchCalendarCalendarEvent(calendar_id: string, body: SearchCalendarCalendarEventRequest, query?: SearchCalendarCalendarEventQuery): Promise<SearchCalendarCalendarEventResponse>;
|
|
119
|
+
searchCalendarCalendarEvent(calendar_id: string, body: SearchCalendarCalendarEventRequest, query?: SearchCalendarCalendarEventQuery): Promise<SearchCalendarCalendarEventResponse> & AsyncIterableIterator<CalendarEvent>;
|
|
120
120
|
/**
|
|
121
121
|
* 订阅日程变更事件
|
|
122
122
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event/subscription
|
|
@@ -221,10 +221,40 @@ export interface CreateCalendarRequest {
|
|
|
221
221
|
/** 日历备注名,修改或添加后仅对当前身份生效 */
|
|
222
222
|
summary_alias?: string;
|
|
223
223
|
}
|
|
224
|
+
export interface CreateCalendarResponse {
|
|
225
|
+
/** 日历信息 */
|
|
226
|
+
calendar?: Calendar;
|
|
227
|
+
}
|
|
224
228
|
export interface PrimaryCalendarQuery {
|
|
225
229
|
/** 此次调用中使用的用户ID的类型 */
|
|
226
230
|
user_id_type?: 'user_id' | 'union_id' | 'open_id';
|
|
227
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
|
+
}
|
|
228
258
|
export interface ListCalendarFreebusyRequest {
|
|
229
259
|
/** 查询时段开始时间,需要url编码 */
|
|
230
260
|
time_min: string;
|
|
@@ -243,10 +273,24 @@ export interface ListCalendarFreebusyQuery {
|
|
|
243
273
|
/** 此次调用中使用的用户ID的类型 */
|
|
244
274
|
user_id_type?: 'user_id' | 'union_id' | 'open_id';
|
|
245
275
|
}
|
|
276
|
+
export interface ListCalendarFreebusyResponse {
|
|
277
|
+
/** 日历上请求时间区间内的忙闲信息 */
|
|
278
|
+
freebusy_list?: Freebusy[];
|
|
279
|
+
}
|
|
246
280
|
export interface ListCalendarQuery extends Pagination {
|
|
247
281
|
/** 上次请求Response返回的增量同步标记,分页请求未结束时为空 */
|
|
248
282
|
sync_token?: string;
|
|
249
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
|
+
}
|
|
250
294
|
export interface PatchCalendarRequest {
|
|
251
295
|
/** 标题 */
|
|
252
296
|
summary?: string;
|
|
@@ -259,10 +303,24 @@ export interface PatchCalendarRequest {
|
|
|
259
303
|
/** 日历备注名,修改或添加后仅对当前身份生效 */
|
|
260
304
|
summary_alias?: string;
|
|
261
305
|
}
|
|
306
|
+
export interface PatchCalendarResponse {
|
|
307
|
+
/** 日历信息 */
|
|
308
|
+
calendar?: Calendar;
|
|
309
|
+
}
|
|
262
310
|
export interface SearchCalendarRequest {
|
|
263
311
|
/** 搜索关键字 */
|
|
264
312
|
query: string;
|
|
265
313
|
}
|
|
314
|
+
export interface SearchCalendarResponse {
|
|
315
|
+
/** 搜索命中的日历列表 */
|
|
316
|
+
items?: Calendar[];
|
|
317
|
+
/** 下次请求需要带上的分页标记 */
|
|
318
|
+
page_token?: string;
|
|
319
|
+
}
|
|
320
|
+
export interface SubscribeCalendarResponse {
|
|
321
|
+
/** 日历信息 */
|
|
322
|
+
calendar?: Calendar;
|
|
323
|
+
}
|
|
266
324
|
export interface CreateCalendarCalendarAclRequest {
|
|
267
325
|
/** 对日历的访问权限 */
|
|
268
326
|
role: 'unknown' | 'free_busy_reader' | 'reader' | 'writer' | 'owner';
|
|
@@ -273,6 +331,14 @@ export interface CreateCalendarCalendarAclQuery {
|
|
|
273
331
|
/** 此次调用中使用的用户ID的类型 */
|
|
274
332
|
user_id_type?: 'user_id' | 'union_id' | 'open_id';
|
|
275
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
|
+
}
|
|
276
342
|
export interface ListCalendarCalendarAclQuery extends Pagination {
|
|
277
343
|
/** 此次调用中使用的用户ID的类型 */
|
|
278
344
|
user_id_type?: 'user_id' | 'union_id' | 'open_id';
|
|
@@ -315,6 +381,10 @@ export interface CreateCalendarCalendarEventQuery {
|
|
|
315
381
|
/** 此次调用中使用的用户ID的类型 */
|
|
316
382
|
user_id_type?: 'user_id' | 'union_id' | 'open_id';
|
|
317
383
|
}
|
|
384
|
+
export interface CreateCalendarCalendarEventResponse {
|
|
385
|
+
/** 日程信息 */
|
|
386
|
+
event?: CalendarEvent;
|
|
387
|
+
}
|
|
318
388
|
export interface DeleteCalendarCalendarEventQuery {
|
|
319
389
|
/** 删除日程是否给日程参与人发送bot通知,默认为true */
|
|
320
390
|
need_notification?: 'true' | 'false';
|
|
@@ -355,6 +425,10 @@ export interface PatchCalendarCalendarEventQuery {
|
|
|
355
425
|
/** 此次调用中使用的用户ID的类型 */
|
|
356
426
|
user_id_type?: 'user_id' | 'union_id' | 'open_id';
|
|
357
427
|
}
|
|
428
|
+
export interface PatchCalendarCalendarEventResponse {
|
|
429
|
+
/** 日程信息 */
|
|
430
|
+
event?: CalendarEvent;
|
|
431
|
+
}
|
|
358
432
|
export interface GetCalendarCalendarEventQuery {
|
|
359
433
|
/** 是否需要返回会前设置 */
|
|
360
434
|
need_meeting_settings?: boolean;
|
|
@@ -365,6 +439,10 @@ export interface GetCalendarCalendarEventQuery {
|
|
|
365
439
|
/** 此次调用中使用的用户ID的类型 */
|
|
366
440
|
user_id_type?: 'user_id' | 'union_id' | 'open_id';
|
|
367
441
|
}
|
|
442
|
+
export interface GetCalendarCalendarEventResponse {
|
|
443
|
+
/** 日程信息 */
|
|
444
|
+
event?: CalendarEvent;
|
|
445
|
+
}
|
|
368
446
|
export interface ListCalendarCalendarEventQuery extends Pagination {
|
|
369
447
|
/** 拉取anchor_time之后的日程,为timestamp */
|
|
370
448
|
anchor_time?: string;
|
|
@@ -377,6 +455,16 @@ export interface ListCalendarCalendarEventQuery extends Pagination {
|
|
|
377
455
|
/** 此次调用中使用的用户ID的类型 */
|
|
378
456
|
user_id_type?: 'user_id' | 'union_id' | 'open_id';
|
|
379
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
|
+
}
|
|
380
468
|
export interface SearchCalendarCalendarEventRequest {
|
|
381
469
|
/** 搜索关键字 */
|
|
382
470
|
query: string;
|
|
@@ -387,6 +475,12 @@ export interface SearchCalendarCalendarEventQuery extends Pagination {
|
|
|
387
475
|
/** 此次调用中使用的用户ID的类型 */
|
|
388
476
|
user_id_type?: 'user_id' | 'union_id' | 'open_id';
|
|
389
477
|
}
|
|
478
|
+
export interface SearchCalendarCalendarEventResponse {
|
|
479
|
+
/** 搜索命中的日程列表 */
|
|
480
|
+
items?: CalendarEvent[];
|
|
481
|
+
/** 下次请求需要带上的分页标记 */
|
|
482
|
+
page_token?: string;
|
|
483
|
+
}
|
|
390
484
|
export interface ReplyCalendarCalendarEventRequest {
|
|
391
485
|
/** rsvp-日程状态 */
|
|
392
486
|
rsvp_status: 'accept' | 'decline' | 'tentative';
|
|
@@ -405,10 +499,24 @@ export interface InstanceViewCalendarCalendarEventQuery {
|
|
|
405
499
|
/** 此次调用中使用的用户ID的类型 */
|
|
406
500
|
user_id_type?: 'user_id' | 'union_id' | 'open_id';
|
|
407
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
|
+
}
|
|
408
512
|
export interface DeleteCalendarCalendarEventMeetingChatQuery {
|
|
409
513
|
/** 会议群ID */
|
|
410
514
|
meeting_chat_id: string;
|
|
411
515
|
}
|
|
516
|
+
export interface CreateCalendarCalendarEventMeetingMinuteResponse {
|
|
517
|
+
/** 文档URL */
|
|
518
|
+
doc_url?: string;
|
|
519
|
+
}
|
|
412
520
|
export interface CreateCalendarTimeoffEventRequest {
|
|
413
521
|
/** 用户的user id */
|
|
414
522
|
user_id: string;
|
|
@@ -427,6 +535,22 @@ export interface CreateCalendarTimeoffEventQuery {
|
|
|
427
535
|
/** 此次调用中使用的用户ID的类型 */
|
|
428
536
|
user_id_type?: 'user_id' | 'union_id' | 'open_id';
|
|
429
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
|
+
}
|
|
430
554
|
export interface CreateCalendarCalendarEventAttendeeRequest {
|
|
431
555
|
/** 新增参与人列表;<br>- 单次请求会议室的数量限制为100。 */
|
|
432
556
|
attendees?: CalendarEventAttendee[];
|
|
@@ -443,6 +567,10 @@ export interface CreateCalendarCalendarEventAttendeeQuery {
|
|
|
443
567
|
/** 此次调用中使用的用户ID的类型 */
|
|
444
568
|
user_id_type?: 'user_id' | 'union_id' | 'open_id';
|
|
445
569
|
}
|
|
570
|
+
export interface CreateCalendarCalendarEventAttendeeResponse {
|
|
571
|
+
/** 被添加的参与人列表 */
|
|
572
|
+
attendees?: CalendarEventAttendee[];
|
|
573
|
+
}
|
|
446
574
|
export interface BatchDeleteCalendarCalendarEventAttendeeRequest {
|
|
447
575
|
/** 要移除的参与人 ID 列表。参见[参与人ID说明](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event-attendee/introduction#4998889c) */
|
|
448
576
|
attendee_ids?: string[];
|
|
@@ -473,6 +601,16 @@ export interface GenerateCaldavConfCalendarSettingRequest {
|
|
|
473
601
|
/** 需要同步日历的设备名,在日历中展示用来管理密码 */
|
|
474
602
|
device_name?: string;
|
|
475
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
|
+
}
|
|
476
614
|
export interface CreateCalendarExchangeBindingRequest {
|
|
477
615
|
/** admin账户 */
|
|
478
616
|
admin_account?: string;
|
|
@@ -485,148 +623,6 @@ export interface CreateCalendarExchangeBindingQuery {
|
|
|
485
623
|
/** 此次调用中使用的用户ID的类型 */
|
|
486
624
|
user_id_type?: 'user_id' | 'union_id' | 'open_id';
|
|
487
625
|
}
|
|
488
|
-
export interface GetCalendarExchangeBindingQuery {
|
|
489
|
-
/** 此次调用中使用的用户ID的类型 */
|
|
490
|
-
user_id_type?: 'user_id' | 'union_id' | 'open_id';
|
|
491
|
-
}
|
|
492
|
-
export interface CreateCalendarResponse {
|
|
493
|
-
/** 日历信息 */
|
|
494
|
-
calendar?: Calendar;
|
|
495
|
-
}
|
|
496
|
-
export interface PrimaryCalendarResponse {
|
|
497
|
-
/** 主日历列表 */
|
|
498
|
-
calendars?: UserCalendar[];
|
|
499
|
-
}
|
|
500
|
-
export interface GetCalendarResponse {
|
|
501
|
-
/** 日历OpenId */
|
|
502
|
-
calendar_id: string;
|
|
503
|
-
/** 日历标题 */
|
|
504
|
-
summary?: string;
|
|
505
|
-
/** 日历描述 */
|
|
506
|
-
description?: string;
|
|
507
|
-
/** 权限 */
|
|
508
|
-
permissions?: 'private' | 'show_only_free_busy' | 'public';
|
|
509
|
-
/** 日历颜色,颜色RGB值的int32表示。客户端展示时会映射到色板上最接近的一种颜色。仅对当前身份生效 */
|
|
510
|
-
color?: number;
|
|
511
|
-
/** 日历类型 */
|
|
512
|
-
type?: 'unknown' | 'primary' | 'shared' | 'google' | 'resource' | 'exchange';
|
|
513
|
-
/** 日历备注名,修改或添加后仅对当前身份生效 */
|
|
514
|
-
summary_alias?: string;
|
|
515
|
-
/** 对于当前身份,日历是否已经被标记为删除 */
|
|
516
|
-
is_deleted?: boolean;
|
|
517
|
-
/** 当前日历是否是第三方数据;三方日历及日程只支持读,不支持写入 */
|
|
518
|
-
is_third_party?: boolean;
|
|
519
|
-
/** 当前身份对于该日历的访问权限 */
|
|
520
|
-
role?: 'unknown' | 'free_busy_reader' | 'reader' | 'writer' | 'owner';
|
|
521
|
-
}
|
|
522
|
-
export interface ListCalendarFreebusyResponse {
|
|
523
|
-
/** 日历上请求时间区间内的忙闲信息 */
|
|
524
|
-
freebusy_list?: Freebusy[];
|
|
525
|
-
}
|
|
526
|
-
export interface ListCalendarResponse {
|
|
527
|
-
/** 是否有下一页数据 */
|
|
528
|
-
has_more?: boolean;
|
|
529
|
-
/** 下次请求需要带上的分页标记,90 天有效期 */
|
|
530
|
-
page_token?: string;
|
|
531
|
-
/** 下次请求需要带上的增量同步标记,90 天有效期 */
|
|
532
|
-
sync_token?: string;
|
|
533
|
-
/** 分页加载的日历数据列表 */
|
|
534
|
-
calendar_list?: Calendar[];
|
|
535
|
-
}
|
|
536
|
-
export interface PatchCalendarResponse {
|
|
537
|
-
/** 日历信息 */
|
|
538
|
-
calendar?: Calendar;
|
|
539
|
-
}
|
|
540
|
-
export interface SearchCalendarResponse {
|
|
541
|
-
/** 搜索命中的日历列表 */
|
|
542
|
-
items?: Calendar[];
|
|
543
|
-
/** 下次请求需要带上的分页标记 */
|
|
544
|
-
page_token?: string;
|
|
545
|
-
}
|
|
546
|
-
export interface SubscribeCalendarResponse {
|
|
547
|
-
/** 日历信息 */
|
|
548
|
-
calendar?: Calendar;
|
|
549
|
-
}
|
|
550
|
-
export interface CreateCalendarCalendarAclResponse {
|
|
551
|
-
/** acl资源ID */
|
|
552
|
-
acl_id: string;
|
|
553
|
-
/** 对日历的访问权限 */
|
|
554
|
-
role: 'unknown' | 'free_busy_reader' | 'reader' | 'writer' | 'owner';
|
|
555
|
-
/** 权限范围 */
|
|
556
|
-
scope: AclScope;
|
|
557
|
-
}
|
|
558
|
-
export interface CreateCalendarCalendarEventResponse {
|
|
559
|
-
/** 日程信息 */
|
|
560
|
-
event?: CalendarEvent;
|
|
561
|
-
}
|
|
562
|
-
export interface PatchCalendarCalendarEventResponse {
|
|
563
|
-
/** 日程信息 */
|
|
564
|
-
event?: CalendarEvent;
|
|
565
|
-
}
|
|
566
|
-
export interface GetCalendarCalendarEventResponse {
|
|
567
|
-
/** 日程信息 */
|
|
568
|
-
event?: CalendarEvent;
|
|
569
|
-
}
|
|
570
|
-
export interface ListCalendarCalendarEventResponse {
|
|
571
|
-
/** 是否有下一页数据 */
|
|
572
|
-
has_more?: boolean;
|
|
573
|
-
/** 下次请求需要带上的分页标记,90 天有效期 */
|
|
574
|
-
page_token?: string;
|
|
575
|
-
/** 下次请求需要带上的增量同步标记,90 天有效期 */
|
|
576
|
-
sync_token?: string;
|
|
577
|
-
/** 日程列表 */
|
|
578
|
-
items?: CalendarEvent[];
|
|
579
|
-
}
|
|
580
|
-
export interface SearchCalendarCalendarEventResponse {
|
|
581
|
-
/** 搜索命中的日程列表 */
|
|
582
|
-
items?: CalendarEvent[];
|
|
583
|
-
/** 下次请求需要带上的分页标记 */
|
|
584
|
-
page_token?: string;
|
|
585
|
-
}
|
|
586
|
-
export interface InstanceViewCalendarCalendarEventResponse {
|
|
587
|
-
/** 日程instance列表 */
|
|
588
|
-
items?: Instance[];
|
|
589
|
-
}
|
|
590
|
-
export interface CreateCalendarCalendarEventMeetingChatResponse {
|
|
591
|
-
/** 会议群ID */
|
|
592
|
-
meeting_chat_id?: string;
|
|
593
|
-
/** 群分享链接 */
|
|
594
|
-
applink?: string;
|
|
595
|
-
}
|
|
596
|
-
export interface CreateCalendarCalendarEventMeetingMinuteResponse {
|
|
597
|
-
/** 文档URL */
|
|
598
|
-
doc_url?: string;
|
|
599
|
-
}
|
|
600
|
-
export interface CreateCalendarTimeoffEventResponse {
|
|
601
|
-
/** 休假申请的唯一标识id */
|
|
602
|
-
timeoff_event_id: string;
|
|
603
|
-
/** 用户的user id */
|
|
604
|
-
user_id: string;
|
|
605
|
-
/** 休假人的时区 */
|
|
606
|
-
timezone: string;
|
|
607
|
-
/** 休假开始时间(时间戳)/日期(2021-01-01),为日期时将生成全天日程,且与end_time对应,不符合将返回错误 */
|
|
608
|
-
start_time: string;
|
|
609
|
-
/** 休假结束时间(时间戳)/日期(2021-01-01),为日期时将生成全天日程,与start_time对应,不符合将返回错误 */
|
|
610
|
-
end_time: string;
|
|
611
|
-
/** 休假日程标题,可自定义例如:"请假中(全天) / 1-Day Time Off","请假中(半天) / 0.5-Day Time Off","长期休假中 / Leave of Absence","请假中" */
|
|
612
|
-
title?: string;
|
|
613
|
-
/** 休假日程描述,可自定义,例如:"若拒绝或删除此日程,飞书中相应的“请假”标签将自动消失,而请假系统中的休假申请不会被撤销。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." */
|
|
614
|
-
description?: string;
|
|
615
|
-
}
|
|
616
|
-
export interface CreateCalendarCalendarEventAttendeeResponse {
|
|
617
|
-
/** 被添加的参与人列表 */
|
|
618
|
-
attendees?: CalendarEventAttendee[];
|
|
619
|
-
}
|
|
620
|
-
export interface GenerateCaldavConfCalendarSettingResponse {
|
|
621
|
-
/** caldav密码 */
|
|
622
|
-
password?: string;
|
|
623
|
-
/** caldav用户名 */
|
|
624
|
-
user_name?: string;
|
|
625
|
-
/** 服务器地址 */
|
|
626
|
-
server_address?: string;
|
|
627
|
-
/** 设备名 */
|
|
628
|
-
device_name?: string;
|
|
629
|
-
}
|
|
630
626
|
export interface CreateCalendarExchangeBindingResponse {
|
|
631
627
|
/** admin账户 */
|
|
632
628
|
admin_account?: string;
|
|
@@ -639,6 +635,10 @@ export interface CreateCalendarExchangeBindingResponse {
|
|
|
639
635
|
/** exchange绑定唯一标识id */
|
|
640
636
|
exchange_binding_id: string;
|
|
641
637
|
}
|
|
638
|
+
export interface GetCalendarExchangeBindingQuery {
|
|
639
|
+
/** 此次调用中使用的用户ID的类型 */
|
|
640
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id';
|
|
641
|
+
}
|
|
642
642
|
export interface GetCalendarExchangeBindingResponse {
|
|
643
643
|
/** admin账户 */
|
|
644
644
|
admin_account?: string;
|
package/lib/types/cardkit.d.ts
CHANGED
|
@@ -59,6 +59,10 @@ export interface CreateCardkitCardRequest {
|
|
|
59
59
|
/** 卡片数据内容,与卡片数据的类型相对应 */
|
|
60
60
|
data: string;
|
|
61
61
|
}
|
|
62
|
+
export interface CreateCardkitCardResponse {
|
|
63
|
+
/** 卡片ID */
|
|
64
|
+
card_id: string;
|
|
65
|
+
}
|
|
62
66
|
export interface SettingsCardkitCardRequest {
|
|
63
67
|
/** 卡片设置 */
|
|
64
68
|
settings: string;
|
|
@@ -87,6 +91,10 @@ export interface IdConvertCardkitCardRequest {
|
|
|
87
91
|
/** 消息ID */
|
|
88
92
|
message_id: string;
|
|
89
93
|
}
|
|
94
|
+
export interface IdConvertCardkitCardResponse {
|
|
95
|
+
/** 消息 ID 对应的卡片 ID */
|
|
96
|
+
card_id?: string;
|
|
97
|
+
}
|
|
90
98
|
export interface CreateCardkitCardElementRequest {
|
|
91
99
|
/** 添加组件的方式 */
|
|
92
100
|
type: 'insert_before' | 'insert_after' | 'append';
|
|
@@ -129,11 +137,3 @@ export interface DeleteCardkitCardElementRequest {
|
|
|
129
137
|
/** 卡片处于流式更新模式时,进行卡片操作的顺序序号,用于保证多次更新的时序性。值为正整数,一次流式状态的多次更新操作(streaming_mode 一次从 true 到 false 期间)需要保证 sequence 递增,否则将报错。推荐使用时间戳。 */
|
|
130
138
|
sequence: number;
|
|
131
139
|
}
|
|
132
|
-
export interface CreateCardkitCardResponse {
|
|
133
|
-
/** 卡片ID */
|
|
134
|
-
card_id: string;
|
|
135
|
-
}
|
|
136
|
-
export interface IdConvertCardkitCardResponse {
|
|
137
|
-
/** 消息 ID 对应的卡片 ID */
|
|
138
|
-
card_id?: string;
|
|
139
|
-
}
|