@satorijs/adapter-lark 3.9.1 → 3.9.3
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 +1078 -14
- 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/application.d.ts +151 -67
- package/lib/types/approval.d.ts +182 -150
- 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 +268 -184
- 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 +760 -620
- package/lib/types/document_ai.d.ts +68 -68
- package/lib/types/docx.d.ts +103 -95
- package/lib/types/drive.d.ts +236 -236
- package/lib/types/ehr.d.ts +26 -2
- package/lib/types/helpdesk.d.ts +155 -155
- 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 +1 -1
- 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 +173 -79
- package/src/types/approval.ts +202 -166
- 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 +305 -219
- 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 +903 -743
- package/src/types/document_ai.ts +85 -85
- package/src/types/docx.ts +117 -108
- package/src/types/drive.ts +298 -298
- package/src/types/ehr.ts +28 -2
- package/src/types/helpdesk.ts +181 -181
- 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 +12 -7
package/src/types/drive.ts
CHANGED
|
@@ -312,6 +312,15 @@ export interface ListDriveV1FileQuery extends Pagination {
|
|
|
312
312
|
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
313
313
|
}
|
|
314
314
|
|
|
315
|
+
export interface ListDriveV1FileResponse {
|
|
316
|
+
/** 文档详细信息 */
|
|
317
|
+
files?: File[]
|
|
318
|
+
/** 下一页分页参数 */
|
|
319
|
+
next_page_token?: string
|
|
320
|
+
/** 是否有下一页 */
|
|
321
|
+
has_more?: boolean
|
|
322
|
+
}
|
|
323
|
+
|
|
315
324
|
export interface CreateFolderDriveV1FileRequest {
|
|
316
325
|
/** 文件夹名称 */
|
|
317
326
|
name: string
|
|
@@ -319,11 +328,23 @@ export interface CreateFolderDriveV1FileRequest {
|
|
|
319
328
|
folder_token: string
|
|
320
329
|
}
|
|
321
330
|
|
|
331
|
+
export interface CreateFolderDriveV1FileResponse {
|
|
332
|
+
/** 新创建的文件夹 Token */
|
|
333
|
+
token?: string
|
|
334
|
+
/** 创建文件夹的访问 URL */
|
|
335
|
+
url?: string
|
|
336
|
+
}
|
|
337
|
+
|
|
322
338
|
export interface TaskCheckDriveV1FileQuery {
|
|
323
339
|
/** 文件相关异步任务id */
|
|
324
340
|
task_id: string
|
|
325
341
|
}
|
|
326
342
|
|
|
343
|
+
export interface TaskCheckDriveV1FileResponse {
|
|
344
|
+
/** 异步任务的执行状态 */
|
|
345
|
+
status?: string
|
|
346
|
+
}
|
|
347
|
+
|
|
327
348
|
export interface BatchQueryDriveV1MetaRequest {
|
|
328
349
|
/** 请求文档, 一次不超过200个 */
|
|
329
350
|
request_docs: RequestDoc[]
|
|
@@ -336,11 +357,25 @@ export interface BatchQueryDriveV1MetaQuery {
|
|
|
336
357
|
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
337
358
|
}
|
|
338
359
|
|
|
360
|
+
export interface BatchQueryDriveV1MetaResponse {
|
|
361
|
+
metas: Meta[]
|
|
362
|
+
failed_list?: MetaFailed[]
|
|
363
|
+
}
|
|
364
|
+
|
|
339
365
|
export interface GetDriveV1FileStatisticsQuery {
|
|
340
366
|
/** 文档类型 */
|
|
341
367
|
file_type: 'doc' | 'sheet' | 'mindnote' | 'bitable' | 'wiki' | 'file' | 'docx'
|
|
342
368
|
}
|
|
343
369
|
|
|
370
|
+
export interface GetDriveV1FileStatisticsResponse {
|
|
371
|
+
/** 文档token */
|
|
372
|
+
file_token?: string
|
|
373
|
+
/** 文档类型 */
|
|
374
|
+
file_type?: string
|
|
375
|
+
/** 文档统计信息 */
|
|
376
|
+
statistics?: FileStatistics
|
|
377
|
+
}
|
|
378
|
+
|
|
344
379
|
export interface ListDriveV1FileViewRecordQuery extends Pagination {
|
|
345
380
|
/** 文档类型 */
|
|
346
381
|
file_type: 'doc' | 'docx' | 'sheet' | 'bitable' | 'mindnote' | 'wiki' | 'file'
|
|
@@ -364,6 +399,11 @@ export interface CopyDriveV1FileQuery {
|
|
|
364
399
|
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
365
400
|
}
|
|
366
401
|
|
|
402
|
+
export interface CopyDriveV1FileResponse {
|
|
403
|
+
/** 复制后的文件资源 */
|
|
404
|
+
file?: File
|
|
405
|
+
}
|
|
406
|
+
|
|
367
407
|
export interface MoveDriveV1FileRequest {
|
|
368
408
|
/** 文件类型,如果该值为空或者与文件实际类型不匹配,接口会返回失败。 */
|
|
369
409
|
type?: 'file' | 'docx' | 'bitable' | 'doc' | 'sheet' | 'mindnote' | 'folder' | 'slides'
|
|
@@ -371,11 +411,21 @@ export interface MoveDriveV1FileRequest {
|
|
|
371
411
|
folder_token?: string
|
|
372
412
|
}
|
|
373
413
|
|
|
414
|
+
export interface MoveDriveV1FileResponse {
|
|
415
|
+
/** 异步任务id,移动文件夹时返回 */
|
|
416
|
+
task_id?: string
|
|
417
|
+
}
|
|
418
|
+
|
|
374
419
|
export interface DeleteDriveV1FileQuery {
|
|
375
420
|
/** 被删除文件的类型 */
|
|
376
421
|
type: 'file' | 'docx' | 'bitable' | 'folder' | 'doc' | 'sheet' | 'mindnote' | 'shortcut' | 'slides'
|
|
377
422
|
}
|
|
378
423
|
|
|
424
|
+
export interface DeleteDriveV1FileResponse {
|
|
425
|
+
/** 异步任务id,删除文件夹时返回 */
|
|
426
|
+
task_id?: string
|
|
427
|
+
}
|
|
428
|
+
|
|
379
429
|
export interface CreateShortcutDriveV1FileRequest {
|
|
380
430
|
/** 创建快捷方式的目标父文件夹 token */
|
|
381
431
|
parent_token: string
|
|
@@ -388,6 +438,11 @@ export interface CreateShortcutDriveV1FileQuery {
|
|
|
388
438
|
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
389
439
|
}
|
|
390
440
|
|
|
441
|
+
export interface CreateShortcutDriveV1FileResponse {
|
|
442
|
+
/** 返回创建成功的shortcut节点 */
|
|
443
|
+
succ_shortcut_node?: File
|
|
444
|
+
}
|
|
445
|
+
|
|
391
446
|
export interface UploadAllDriveV1FileForm {
|
|
392
447
|
/** 文件名。 */
|
|
393
448
|
file_name: string
|
|
@@ -403,6 +458,10 @@ export interface UploadAllDriveV1FileForm {
|
|
|
403
458
|
file: Blob
|
|
404
459
|
}
|
|
405
460
|
|
|
461
|
+
export interface UploadAllDriveV1FileResponse {
|
|
462
|
+
file_token?: string
|
|
463
|
+
}
|
|
464
|
+
|
|
406
465
|
export interface UploadPrepareDriveV1FileRequest {
|
|
407
466
|
/** 文件名 */
|
|
408
467
|
file_name: string
|
|
@@ -414,6 +473,15 @@ export interface UploadPrepareDriveV1FileRequest {
|
|
|
414
473
|
size: number
|
|
415
474
|
}
|
|
416
475
|
|
|
476
|
+
export interface UploadPrepareDriveV1FileResponse {
|
|
477
|
+
/** 分片上传事务ID */
|
|
478
|
+
upload_id?: string
|
|
479
|
+
/** 分片大小策略 */
|
|
480
|
+
block_size?: number
|
|
481
|
+
/** 分片数量 */
|
|
482
|
+
block_num?: number
|
|
483
|
+
}
|
|
484
|
+
|
|
417
485
|
export interface UploadPartDriveV1FileForm {
|
|
418
486
|
/** 分片上传事务ID。 */
|
|
419
487
|
upload_id: string
|
|
@@ -434,6 +502,10 @@ export interface UploadFinishDriveV1FileRequest {
|
|
|
434
502
|
block_num: number
|
|
435
503
|
}
|
|
436
504
|
|
|
505
|
+
export interface UploadFinishDriveV1FileResponse {
|
|
506
|
+
file_token?: string
|
|
507
|
+
}
|
|
508
|
+
|
|
437
509
|
export interface CreateDriveV1ImportTaskRequest {
|
|
438
510
|
/** 导入文件格式后缀 */
|
|
439
511
|
file_extension: string
|
|
@@ -447,6 +519,16 @@ export interface CreateDriveV1ImportTaskRequest {
|
|
|
447
519
|
point: ImportTaskMountPoint
|
|
448
520
|
}
|
|
449
521
|
|
|
522
|
+
export interface CreateDriveV1ImportTaskResponse {
|
|
523
|
+
/** 导入任务ID */
|
|
524
|
+
ticket?: string
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
export interface GetDriveV1ImportTaskResponse {
|
|
528
|
+
/** 导入任务 */
|
|
529
|
+
result?: ImportTask
|
|
530
|
+
}
|
|
531
|
+
|
|
450
532
|
export interface CreateDriveV1ExportTaskRequest {
|
|
451
533
|
/** 导出文件扩展名 */
|
|
452
534
|
file_extension: 'docx' | 'pdf' | 'xlsx' | 'csv'
|
|
@@ -458,11 +540,21 @@ export interface CreateDriveV1ExportTaskRequest {
|
|
|
458
540
|
sub_id?: string
|
|
459
541
|
}
|
|
460
542
|
|
|
543
|
+
export interface CreateDriveV1ExportTaskResponse {
|
|
544
|
+
/** 导出任务ID */
|
|
545
|
+
ticket?: string
|
|
546
|
+
}
|
|
547
|
+
|
|
461
548
|
export interface GetDriveV1ExportTaskQuery {
|
|
462
549
|
/** 导出文档的 token */
|
|
463
550
|
token: string
|
|
464
551
|
}
|
|
465
552
|
|
|
553
|
+
export interface GetDriveV1ExportTaskResponse {
|
|
554
|
+
/** 导出结果 */
|
|
555
|
+
result?: ExportTask
|
|
556
|
+
}
|
|
557
|
+
|
|
466
558
|
export interface UploadAllDriveV1MediaForm {
|
|
467
559
|
/** 文件名。 */
|
|
468
560
|
file_name: string
|
|
@@ -480,6 +572,10 @@ export interface UploadAllDriveV1MediaForm {
|
|
|
480
572
|
file: Blob
|
|
481
573
|
}
|
|
482
574
|
|
|
575
|
+
export interface UploadAllDriveV1MediaResponse {
|
|
576
|
+
file_token?: string
|
|
577
|
+
}
|
|
578
|
+
|
|
483
579
|
export interface UploadPrepareDriveV1MediaRequest {
|
|
484
580
|
/** 文件名 */
|
|
485
581
|
file_name: string
|
|
@@ -493,6 +589,15 @@ export interface UploadPrepareDriveV1MediaRequest {
|
|
|
493
589
|
extra?: string
|
|
494
590
|
}
|
|
495
591
|
|
|
592
|
+
export interface UploadPrepareDriveV1MediaResponse {
|
|
593
|
+
/** 分片上传事务ID */
|
|
594
|
+
upload_id?: string
|
|
595
|
+
/** 分片大小策略 */
|
|
596
|
+
block_size?: number
|
|
597
|
+
/** 分片数量 */
|
|
598
|
+
block_num?: number
|
|
599
|
+
}
|
|
600
|
+
|
|
496
601
|
export interface UploadPartDriveV1MediaForm {
|
|
497
602
|
/** 分片上传事务ID。 */
|
|
498
603
|
upload_id: string
|
|
@@ -513,6 +618,10 @@ export interface UploadFinishDriveV1MediaRequest {
|
|
|
513
618
|
block_num: number
|
|
514
619
|
}
|
|
515
620
|
|
|
621
|
+
export interface UploadFinishDriveV1MediaResponse {
|
|
622
|
+
file_token?: string
|
|
623
|
+
}
|
|
624
|
+
|
|
516
625
|
export interface DownloadDriveV1MediaQuery {
|
|
517
626
|
/** 扩展信息 */
|
|
518
627
|
extra?: string
|
|
@@ -525,6 +634,11 @@ export interface BatchGetTmpDownloadUrlDriveV1MediaQuery {
|
|
|
525
634
|
extra?: string
|
|
526
635
|
}
|
|
527
636
|
|
|
637
|
+
export interface BatchGetTmpDownloadUrlDriveV1MediaResponse {
|
|
638
|
+
/** 临时下载列表 */
|
|
639
|
+
tmp_download_urls?: TmpDownloadUrl[]
|
|
640
|
+
}
|
|
641
|
+
|
|
528
642
|
export interface CreateDriveV1FileVersionRequest {
|
|
529
643
|
/** 版本文档标题,最大长度 1024 个Unicode 码点。通常情况下,一个英文或中文字符对应一个码点,但是某些特殊符号可能会对应多个码点。例如,家庭组合「👨👩👧」这个表情符号对应5个码点。 */
|
|
530
644
|
name?: string
|
|
@@ -537,6 +651,29 @@ export interface CreateDriveV1FileVersionQuery {
|
|
|
537
651
|
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
538
652
|
}
|
|
539
653
|
|
|
654
|
+
export interface CreateDriveV1FileVersionResponse {
|
|
655
|
+
/** 版本文档标题,最大长度 1024 个Unicode 码点。通常情况下,一个英文或中文字符对应一个码点,但是某些特殊符号可能会对应多个码点。例如,家庭组合「👨👩👧」这个表情符号对应5个码点。 */
|
|
656
|
+
name?: string
|
|
657
|
+
/** 版本文档版本号 */
|
|
658
|
+
version?: string
|
|
659
|
+
/** 源文档token */
|
|
660
|
+
parent_token?: string
|
|
661
|
+
/** 版本文档所有者id */
|
|
662
|
+
owner_id?: string
|
|
663
|
+
/** 版本文档创建者id */
|
|
664
|
+
creator_id?: string
|
|
665
|
+
/** 版本文档创建时间 */
|
|
666
|
+
create_time?: string
|
|
667
|
+
/** 版本文档更新时间 */
|
|
668
|
+
update_time?: string
|
|
669
|
+
/** 版本文档状态 */
|
|
670
|
+
status?: '0' | '1' | '2'
|
|
671
|
+
/** 版本文档类型 */
|
|
672
|
+
obj_type?: 'docx' | 'sheet'
|
|
673
|
+
/** 源文档类型 */
|
|
674
|
+
parent_type?: 'docx' | 'sheet'
|
|
675
|
+
}
|
|
676
|
+
|
|
540
677
|
export interface ListDriveV1FileVersionQuery extends Pagination {
|
|
541
678
|
/** 原文档类型 */
|
|
542
679
|
obj_type: 'docx' | 'sheet'
|
|
@@ -551,6 +688,29 @@ export interface GetDriveV1FileVersionQuery {
|
|
|
551
688
|
user_id_type?: 'open_id' | 'union_id' | 'user_id'
|
|
552
689
|
}
|
|
553
690
|
|
|
691
|
+
export interface GetDriveV1FileVersionResponse {
|
|
692
|
+
/** 版本文档标题,最大长度 1024 个Unicode 码点。通常情况下,一个英文或中文字符对应一个码点,但是某些特殊符号可能会对应多个码点。例如,家庭组合「👨👩👧」这个表情符号对应5个码点。 */
|
|
693
|
+
name?: string
|
|
694
|
+
/** 版本文档版本号 */
|
|
695
|
+
version?: string
|
|
696
|
+
/** 源文档token */
|
|
697
|
+
parent_token?: string
|
|
698
|
+
/** 版本文档所有者id */
|
|
699
|
+
owner_id?: string
|
|
700
|
+
/** 版本文档创建者id */
|
|
701
|
+
creator_id?: string
|
|
702
|
+
/** 版本文档创建时间 */
|
|
703
|
+
create_time?: string
|
|
704
|
+
/** 版本文档更新时间 */
|
|
705
|
+
update_time?: string
|
|
706
|
+
/** 版本文档状态 */
|
|
707
|
+
status?: '0' | '1' | '2'
|
|
708
|
+
/** 版本文档类型 */
|
|
709
|
+
obj_type?: 'docx' | 'sheet'
|
|
710
|
+
/** 源文档类型 */
|
|
711
|
+
parent_type?: 'docx' | 'sheet'
|
|
712
|
+
}
|
|
713
|
+
|
|
554
714
|
export interface DeleteDriveV1FileVersionQuery {
|
|
555
715
|
/** 文档类型 */
|
|
556
716
|
obj_type: 'docx' | 'sheet'
|
|
@@ -579,6 +739,11 @@ export interface GetSubscribeDriveV1FileQuery {
|
|
|
579
739
|
event_type?: string
|
|
580
740
|
}
|
|
581
741
|
|
|
742
|
+
export interface GetSubscribeDriveV1FileResponse {
|
|
743
|
+
/** 是否有订阅,取值 true 表示已订阅;false 表示未订阅 */
|
|
744
|
+
is_subscribe?: boolean
|
|
745
|
+
}
|
|
746
|
+
|
|
582
747
|
export interface DeleteSubscribeDriveV1FileQuery {
|
|
583
748
|
/** 文档类型 */
|
|
584
749
|
file_type: 'doc' | 'docx' | 'sheet' | 'bitable' | 'file' | 'folder'
|
|
@@ -598,6 +763,11 @@ export interface BatchCreateDriveV1PermissionMemberQuery {
|
|
|
598
763
|
need_notification?: boolean
|
|
599
764
|
}
|
|
600
765
|
|
|
766
|
+
export interface BatchCreateDriveV1PermissionMemberResponse {
|
|
767
|
+
/** 协作者列表 */
|
|
768
|
+
members?: BaseMember[]
|
|
769
|
+
}
|
|
770
|
+
|
|
601
771
|
export interface TransferOwnerDriveV1PermissionMemberRequest {
|
|
602
772
|
/** 文档拥有者的ID类型 */
|
|
603
773
|
member_type: 'email' | 'openid' | 'userid'
|
|
@@ -625,6 +795,11 @@ export interface AuthDriveV1PermissionMemberQuery {
|
|
|
625
795
|
action: 'view' | 'edit' | 'share' | 'comment' | 'export' | 'copy' | 'print' | 'manage_public'
|
|
626
796
|
}
|
|
627
797
|
|
|
798
|
+
export interface AuthDriveV1PermissionMemberResponse {
|
|
799
|
+
/** 是否有权限 */
|
|
800
|
+
auth_result: boolean
|
|
801
|
+
}
|
|
802
|
+
|
|
628
803
|
export interface ListDriveV1PermissionMemberQuery {
|
|
629
804
|
/** 文件类型,需要与文件的 token 相匹配 */
|
|
630
805
|
type: 'doc' | 'sheet' | 'file' | 'wiki' | 'bitable' | 'docx' | 'mindnote' | 'minutes' | 'slides'
|
|
@@ -634,6 +809,11 @@ export interface ListDriveV1PermissionMemberQuery {
|
|
|
634
809
|
perm_type?: 'container' | 'single_page'
|
|
635
810
|
}
|
|
636
811
|
|
|
812
|
+
export interface ListDriveV1PermissionMemberResponse {
|
|
813
|
+
/** 返回的列表数据 */
|
|
814
|
+
items?: Member[]
|
|
815
|
+
}
|
|
816
|
+
|
|
637
817
|
export interface CreateDriveV1PermissionMemberRequest {
|
|
638
818
|
/** 协作者ID类型 */
|
|
639
819
|
member_type: 'email' | 'openid' | 'unionid' | 'openchat' | 'opendepartmentid' | 'userid' | 'groupid' | 'wikispaceid'
|
|
@@ -654,6 +834,11 @@ export interface CreateDriveV1PermissionMemberQuery {
|
|
|
654
834
|
need_notification?: boolean
|
|
655
835
|
}
|
|
656
836
|
|
|
837
|
+
export interface CreateDriveV1PermissionMemberResponse {
|
|
838
|
+
/** 本次添加权限的用户信息 */
|
|
839
|
+
member?: BaseMember
|
|
840
|
+
}
|
|
841
|
+
|
|
657
842
|
export interface UpdateDriveV1PermissionMemberRequest {
|
|
658
843
|
/** 协作者ID类型 */
|
|
659
844
|
member_type: 'email' | 'openid' | 'unionid' | 'openchat' | 'opendepartmentid' | 'userid' | 'groupid' | 'wikispaceid'
|
|
@@ -672,6 +857,11 @@ export interface UpdateDriveV1PermissionMemberQuery {
|
|
|
672
857
|
type: 'doc' | 'sheet' | 'file' | 'wiki' | 'bitable' | 'docx' | 'mindnote' | 'minutes' | 'slides'
|
|
673
858
|
}
|
|
674
859
|
|
|
860
|
+
export interface UpdateDriveV1PermissionMemberResponse {
|
|
861
|
+
/** 本次更新权限的用户信息 */
|
|
862
|
+
member?: BaseMember
|
|
863
|
+
}
|
|
864
|
+
|
|
675
865
|
export interface DeleteDriveV1PermissionMemberRequest {
|
|
676
866
|
/** 协作者类型 */
|
|
677
867
|
type?: 'user' | 'chat' | 'department' | 'group' | 'wiki_space_member' | 'wiki_space_viewer' | 'wiki_space_editor'
|
|
@@ -691,11 +881,21 @@ export interface CreateDriveV1PermissionPublicPasswordQuery {
|
|
|
691
881
|
type: 'doc' | 'sheet' | 'file' | 'wiki' | 'bitable' | 'docx' | 'mindnote' | 'minutes' | 'slides'
|
|
692
882
|
}
|
|
693
883
|
|
|
884
|
+
export interface CreateDriveV1PermissionPublicPasswordResponse {
|
|
885
|
+
/** 密码 */
|
|
886
|
+
password?: string
|
|
887
|
+
}
|
|
888
|
+
|
|
694
889
|
export interface UpdateDriveV1PermissionPublicPasswordQuery {
|
|
695
890
|
/** 文件类型,需要与文件的 token 相匹配 */
|
|
696
891
|
type: 'doc' | 'sheet' | 'file' | 'wiki' | 'bitable' | 'docx' | 'mindnote' | 'minutes' | 'slides'
|
|
697
892
|
}
|
|
698
893
|
|
|
894
|
+
export interface UpdateDriveV1PermissionPublicPasswordResponse {
|
|
895
|
+
/** 密码 */
|
|
896
|
+
password?: string
|
|
897
|
+
}
|
|
898
|
+
|
|
699
899
|
export interface DeleteDriveV1PermissionPublicPasswordQuery {
|
|
700
900
|
/** 文件类型,需要与文件的 token 相匹配 */
|
|
701
901
|
type: 'doc' | 'sheet' | 'file' | 'wiki' | 'bitable' | 'docx' | 'mindnote' | 'minutes' | 'slides'
|
|
@@ -706,6 +906,11 @@ export interface GetDriveV1PermissionPublicQuery {
|
|
|
706
906
|
type: 'doc' | 'sheet' | 'file' | 'wiki' | 'bitable' | 'docx' | 'mindnote' | 'minutes' | 'slides'
|
|
707
907
|
}
|
|
708
908
|
|
|
909
|
+
export interface GetDriveV1PermissionPublicResponse {
|
|
910
|
+
/** 返回的文档公共设置 */
|
|
911
|
+
permission_public?: PermissionPublic
|
|
912
|
+
}
|
|
913
|
+
|
|
709
914
|
export interface PatchDriveV1PermissionPublicRequest {
|
|
710
915
|
/** 允许内容被分享到组织外 */
|
|
711
916
|
external_access?: boolean
|
|
@@ -726,11 +931,21 @@ export interface PatchDriveV1PermissionPublicQuery {
|
|
|
726
931
|
type: 'doc' | 'sheet' | 'file' | 'wiki' | 'bitable' | 'docx' | 'mindnote' | 'minutes' | 'slides'
|
|
727
932
|
}
|
|
728
933
|
|
|
934
|
+
export interface PatchDriveV1PermissionPublicResponse {
|
|
935
|
+
/** 本次更新后的文档公共设置 */
|
|
936
|
+
permission_public?: PermissionPublic
|
|
937
|
+
}
|
|
938
|
+
|
|
729
939
|
export interface GetDriveV2PermissionPublicQuery {
|
|
730
940
|
/** 文件类型,需要与文件的 token 相匹配 */
|
|
731
941
|
type: 'doc' | 'sheet' | 'file' | 'wiki' | 'bitable' | 'docx' | 'mindnote' | 'minutes' | 'slides'
|
|
732
942
|
}
|
|
733
943
|
|
|
944
|
+
export interface GetDriveV2PermissionPublicResponse {
|
|
945
|
+
/** 返回的文档公共设置 */
|
|
946
|
+
permission_public?: PermissionPublic
|
|
947
|
+
}
|
|
948
|
+
|
|
734
949
|
export interface PatchDriveV2PermissionPublicRequest {
|
|
735
950
|
/** 允许内容被分享到组织外 */
|
|
736
951
|
external_access_entity?: 'open' | 'closed' | 'allow_share_partner_tenant'
|
|
@@ -753,6 +968,11 @@ export interface PatchDriveV2PermissionPublicQuery {
|
|
|
753
968
|
type: 'doc' | 'sheet' | 'file' | 'wiki' | 'bitable' | 'docx' | 'mindnote' | 'minutes' | 'slides'
|
|
754
969
|
}
|
|
755
970
|
|
|
971
|
+
export interface PatchDriveV2PermissionPublicResponse {
|
|
972
|
+
/** 本次更新后文档公共设置 */
|
|
973
|
+
permission_public?: PermissionPublic
|
|
974
|
+
}
|
|
975
|
+
|
|
756
976
|
export interface ListDriveV1FileCommentQuery extends Pagination {
|
|
757
977
|
/** 文档类型 */
|
|
758
978
|
file_type: 'doc' | 'sheet' | 'file' | 'docx'
|
|
@@ -776,6 +996,11 @@ export interface BatchQueryDriveV1FileCommentQuery {
|
|
|
776
996
|
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
777
997
|
}
|
|
778
998
|
|
|
999
|
+
export interface BatchQueryDriveV1FileCommentResponse {
|
|
1000
|
+
/** 评论的相关信息、回复的信息、回复分页的信息 */
|
|
1001
|
+
items?: FileComment[]
|
|
1002
|
+
}
|
|
1003
|
+
|
|
779
1004
|
export interface PatchDriveV1FileCommentRequest {
|
|
780
1005
|
/** 评论解决标志 */
|
|
781
1006
|
is_solved: boolean
|
|
@@ -798,6 +1023,33 @@ export interface CreateDriveV1FileCommentQuery {
|
|
|
798
1023
|
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
799
1024
|
}
|
|
800
1025
|
|
|
1026
|
+
export interface CreateDriveV1FileCommentResponse {
|
|
1027
|
+
/** 评论 ID */
|
|
1028
|
+
comment_id?: string
|
|
1029
|
+
/** 用户 ID */
|
|
1030
|
+
user_id?: string
|
|
1031
|
+
/** 创建时间 */
|
|
1032
|
+
create_time?: number
|
|
1033
|
+
/** 更新时间 */
|
|
1034
|
+
update_time?: number
|
|
1035
|
+
/** 是否已解决 */
|
|
1036
|
+
is_solved?: boolean
|
|
1037
|
+
/** 解决评论时间 */
|
|
1038
|
+
solved_time?: number
|
|
1039
|
+
/** 解决评论者的用户 ID */
|
|
1040
|
+
solver_user_id?: string
|
|
1041
|
+
/** 是否有更多回复 */
|
|
1042
|
+
has_more?: boolean
|
|
1043
|
+
/** 回复分页标记 */
|
|
1044
|
+
page_token?: string
|
|
1045
|
+
/** 是否是全文评论 */
|
|
1046
|
+
is_whole?: boolean
|
|
1047
|
+
/** 局部评论的引用字段 */
|
|
1048
|
+
quote?: string
|
|
1049
|
+
/** 评论里的回复列表 */
|
|
1050
|
+
reply_list?: ReplyList
|
|
1051
|
+
}
|
|
1052
|
+
|
|
801
1053
|
export interface GetDriveV1FileCommentQuery {
|
|
802
1054
|
/** 文档类型 */
|
|
803
1055
|
file_type: 'doc' | 'sheet' | 'file' | 'docx'
|
|
@@ -805,279 +1057,7 @@ export interface GetDriveV1FileCommentQuery {
|
|
|
805
1057
|
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
806
1058
|
}
|
|
807
1059
|
|
|
808
|
-
export interface
|
|
809
|
-
/** 文档类型 */
|
|
810
|
-
file_type: 'doc' | 'sheet' | 'file' | 'docx'
|
|
811
|
-
/** 此次调用中使用的用户ID的类型 */
|
|
812
|
-
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
813
|
-
}
|
|
814
|
-
|
|
815
|
-
export interface UpdateDriveV1FileCommentReplyRequest {
|
|
816
|
-
/** 回复内容 */
|
|
817
|
-
content: ReplyContent
|
|
818
|
-
}
|
|
819
|
-
|
|
820
|
-
export interface UpdateDriveV1FileCommentReplyQuery {
|
|
821
|
-
/** 文档类型 */
|
|
822
|
-
file_type: 'doc' | 'sheet' | 'file' | 'docx'
|
|
823
|
-
/** 此次调用中使用的用户ID的类型 */
|
|
824
|
-
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
825
|
-
}
|
|
826
|
-
|
|
827
|
-
export interface DeleteDriveV1FileCommentReplyQuery {
|
|
828
|
-
/** 文档类型 */
|
|
829
|
-
file_type: 'doc' | 'sheet' | 'file' | 'docx'
|
|
830
|
-
}
|
|
831
|
-
|
|
832
|
-
export interface GetDriveV1FileSubscriptionRequest {
|
|
833
|
-
/** 文档类型 */
|
|
834
|
-
file_type: 'doc' | 'docx' | 'wiki'
|
|
835
|
-
}
|
|
836
|
-
|
|
837
|
-
export interface CreateDriveV1FileSubscriptionRequest {
|
|
838
|
-
/** 订阅关系ID */
|
|
839
|
-
subscription_id?: string
|
|
840
|
-
/** 订阅类型 */
|
|
841
|
-
subscription_type: 'comment_update'
|
|
842
|
-
/** 是否订阅 */
|
|
843
|
-
is_subcribe?: boolean
|
|
844
|
-
/** 文档类型 */
|
|
845
|
-
file_type: 'doc' | 'docx' | 'wiki'
|
|
846
|
-
}
|
|
847
|
-
|
|
848
|
-
export interface PatchDriveV1FileSubscriptionRequest {
|
|
849
|
-
/** 是否订阅 */
|
|
850
|
-
is_subscribe: boolean
|
|
851
|
-
/** 文档类型 */
|
|
852
|
-
file_type: 'doc' | 'docx' | 'wiki'
|
|
853
|
-
}
|
|
854
|
-
|
|
855
|
-
export interface ListDriveV1FileResponse {
|
|
856
|
-
/** 文档详细信息 */
|
|
857
|
-
files?: File[]
|
|
858
|
-
/** 下一页分页参数 */
|
|
859
|
-
next_page_token?: string
|
|
860
|
-
/** 是否有下一页 */
|
|
861
|
-
has_more?: boolean
|
|
862
|
-
}
|
|
863
|
-
|
|
864
|
-
export interface CreateFolderDriveV1FileResponse {
|
|
865
|
-
/** 新创建的文件夹 Token */
|
|
866
|
-
token?: string
|
|
867
|
-
/** 创建文件夹的访问 URL */
|
|
868
|
-
url?: string
|
|
869
|
-
}
|
|
870
|
-
|
|
871
|
-
export interface TaskCheckDriveV1FileResponse {
|
|
872
|
-
/** 异步任务的执行状态 */
|
|
873
|
-
status?: string
|
|
874
|
-
}
|
|
875
|
-
|
|
876
|
-
export interface BatchQueryDriveV1MetaResponse {
|
|
877
|
-
metas: Meta[]
|
|
878
|
-
failed_list?: MetaFailed[]
|
|
879
|
-
}
|
|
880
|
-
|
|
881
|
-
export interface GetDriveV1FileStatisticsResponse {
|
|
882
|
-
/** 文档token */
|
|
883
|
-
file_token?: string
|
|
884
|
-
/** 文档类型 */
|
|
885
|
-
file_type?: string
|
|
886
|
-
/** 文档统计信息 */
|
|
887
|
-
statistics?: FileStatistics
|
|
888
|
-
}
|
|
889
|
-
|
|
890
|
-
export interface CopyDriveV1FileResponse {
|
|
891
|
-
/** 复制后的文件资源 */
|
|
892
|
-
file?: File
|
|
893
|
-
}
|
|
894
|
-
|
|
895
|
-
export interface MoveDriveV1FileResponse {
|
|
896
|
-
/** 异步任务id,移动文件夹时返回 */
|
|
897
|
-
task_id?: string
|
|
898
|
-
}
|
|
899
|
-
|
|
900
|
-
export interface DeleteDriveV1FileResponse {
|
|
901
|
-
/** 异步任务id,删除文件夹时返回 */
|
|
902
|
-
task_id?: string
|
|
903
|
-
}
|
|
904
|
-
|
|
905
|
-
export interface CreateShortcutDriveV1FileResponse {
|
|
906
|
-
/** 返回创建成功的shortcut节点 */
|
|
907
|
-
succ_shortcut_node?: File
|
|
908
|
-
}
|
|
909
|
-
|
|
910
|
-
export interface UploadAllDriveV1FileResponse {
|
|
911
|
-
file_token?: string
|
|
912
|
-
}
|
|
913
|
-
|
|
914
|
-
export interface UploadPrepareDriveV1FileResponse {
|
|
915
|
-
/** 分片上传事务ID */
|
|
916
|
-
upload_id?: string
|
|
917
|
-
/** 分片大小策略 */
|
|
918
|
-
block_size?: number
|
|
919
|
-
/** 分片数量 */
|
|
920
|
-
block_num?: number
|
|
921
|
-
}
|
|
922
|
-
|
|
923
|
-
export interface UploadFinishDriveV1FileResponse {
|
|
924
|
-
file_token?: string
|
|
925
|
-
}
|
|
926
|
-
|
|
927
|
-
export interface CreateDriveV1ImportTaskResponse {
|
|
928
|
-
/** 导入任务ID */
|
|
929
|
-
ticket?: string
|
|
930
|
-
}
|
|
931
|
-
|
|
932
|
-
export interface GetDriveV1ImportTaskResponse {
|
|
933
|
-
/** 导入任务 */
|
|
934
|
-
result?: ImportTask
|
|
935
|
-
}
|
|
936
|
-
|
|
937
|
-
export interface CreateDriveV1ExportTaskResponse {
|
|
938
|
-
/** 导出任务ID */
|
|
939
|
-
ticket?: string
|
|
940
|
-
}
|
|
941
|
-
|
|
942
|
-
export interface GetDriveV1ExportTaskResponse {
|
|
943
|
-
/** 导出结果 */
|
|
944
|
-
result?: ExportTask
|
|
945
|
-
}
|
|
946
|
-
|
|
947
|
-
export interface UploadAllDriveV1MediaResponse {
|
|
948
|
-
file_token?: string
|
|
949
|
-
}
|
|
950
|
-
|
|
951
|
-
export interface UploadPrepareDriveV1MediaResponse {
|
|
952
|
-
/** 分片上传事务ID */
|
|
953
|
-
upload_id?: string
|
|
954
|
-
/** 分片大小策略 */
|
|
955
|
-
block_size?: number
|
|
956
|
-
/** 分片数量 */
|
|
957
|
-
block_num?: number
|
|
958
|
-
}
|
|
959
|
-
|
|
960
|
-
export interface UploadFinishDriveV1MediaResponse {
|
|
961
|
-
file_token?: string
|
|
962
|
-
}
|
|
963
|
-
|
|
964
|
-
export interface BatchGetTmpDownloadUrlDriveV1MediaResponse {
|
|
965
|
-
/** 临时下载列表 */
|
|
966
|
-
tmp_download_urls?: TmpDownloadUrl[]
|
|
967
|
-
}
|
|
968
|
-
|
|
969
|
-
export interface CreateDriveV1FileVersionResponse {
|
|
970
|
-
/** 版本文档标题,最大长度 1024 个Unicode 码点。通常情况下,一个英文或中文字符对应一个码点,但是某些特殊符号可能会对应多个码点。例如,家庭组合「👨👩👧」这个表情符号对应5个码点。 */
|
|
971
|
-
name?: string
|
|
972
|
-
/** 版本文档版本号 */
|
|
973
|
-
version?: string
|
|
974
|
-
/** 源文档token */
|
|
975
|
-
parent_token?: string
|
|
976
|
-
/** 版本文档所有者id */
|
|
977
|
-
owner_id?: string
|
|
978
|
-
/** 版本文档创建者id */
|
|
979
|
-
creator_id?: string
|
|
980
|
-
/** 版本文档创建时间 */
|
|
981
|
-
create_time?: string
|
|
982
|
-
/** 版本文档更新时间 */
|
|
983
|
-
update_time?: string
|
|
984
|
-
/** 版本文档状态 */
|
|
985
|
-
status?: '0' | '1' | '2'
|
|
986
|
-
/** 版本文档类型 */
|
|
987
|
-
obj_type?: 'docx' | 'sheet'
|
|
988
|
-
/** 源文档类型 */
|
|
989
|
-
parent_type?: 'docx' | 'sheet'
|
|
990
|
-
}
|
|
991
|
-
|
|
992
|
-
export interface GetDriveV1FileVersionResponse {
|
|
993
|
-
/** 版本文档标题,最大长度 1024 个Unicode 码点。通常情况下,一个英文或中文字符对应一个码点,但是某些特殊符号可能会对应多个码点。例如,家庭组合「👨👩👧」这个表情符号对应5个码点。 */
|
|
994
|
-
name?: string
|
|
995
|
-
/** 版本文档版本号 */
|
|
996
|
-
version?: string
|
|
997
|
-
/** 源文档token */
|
|
998
|
-
parent_token?: string
|
|
999
|
-
/** 版本文档所有者id */
|
|
1000
|
-
owner_id?: string
|
|
1001
|
-
/** 版本文档创建者id */
|
|
1002
|
-
creator_id?: string
|
|
1003
|
-
/** 版本文档创建时间 */
|
|
1004
|
-
create_time?: string
|
|
1005
|
-
/** 版本文档更新时间 */
|
|
1006
|
-
update_time?: string
|
|
1007
|
-
/** 版本文档状态 */
|
|
1008
|
-
status?: '0' | '1' | '2'
|
|
1009
|
-
/** 版本文档类型 */
|
|
1010
|
-
obj_type?: 'docx' | 'sheet'
|
|
1011
|
-
/** 源文档类型 */
|
|
1012
|
-
parent_type?: 'docx' | 'sheet'
|
|
1013
|
-
}
|
|
1014
|
-
|
|
1015
|
-
export interface GetSubscribeDriveV1FileResponse {
|
|
1016
|
-
/** 是否有订阅,取值 true 表示已订阅;false 表示未订阅 */
|
|
1017
|
-
is_subscribe?: boolean
|
|
1018
|
-
}
|
|
1019
|
-
|
|
1020
|
-
export interface BatchCreateDriveV1PermissionMemberResponse {
|
|
1021
|
-
/** 协作者列表 */
|
|
1022
|
-
members?: BaseMember[]
|
|
1023
|
-
}
|
|
1024
|
-
|
|
1025
|
-
export interface AuthDriveV1PermissionMemberResponse {
|
|
1026
|
-
/** 是否有权限 */
|
|
1027
|
-
auth_result: boolean
|
|
1028
|
-
}
|
|
1029
|
-
|
|
1030
|
-
export interface ListDriveV1PermissionMemberResponse {
|
|
1031
|
-
/** 返回的列表数据 */
|
|
1032
|
-
items?: Member[]
|
|
1033
|
-
}
|
|
1034
|
-
|
|
1035
|
-
export interface CreateDriveV1PermissionMemberResponse {
|
|
1036
|
-
/** 本次添加权限的用户信息 */
|
|
1037
|
-
member?: BaseMember
|
|
1038
|
-
}
|
|
1039
|
-
|
|
1040
|
-
export interface UpdateDriveV1PermissionMemberResponse {
|
|
1041
|
-
/** 本次更新权限的用户信息 */
|
|
1042
|
-
member?: BaseMember
|
|
1043
|
-
}
|
|
1044
|
-
|
|
1045
|
-
export interface CreateDriveV1PermissionPublicPasswordResponse {
|
|
1046
|
-
/** 密码 */
|
|
1047
|
-
password?: string
|
|
1048
|
-
}
|
|
1049
|
-
|
|
1050
|
-
export interface UpdateDriveV1PermissionPublicPasswordResponse {
|
|
1051
|
-
/** 密码 */
|
|
1052
|
-
password?: string
|
|
1053
|
-
}
|
|
1054
|
-
|
|
1055
|
-
export interface GetDriveV1PermissionPublicResponse {
|
|
1056
|
-
/** 返回的文档公共设置 */
|
|
1057
|
-
permission_public?: PermissionPublic
|
|
1058
|
-
}
|
|
1059
|
-
|
|
1060
|
-
export interface PatchDriveV1PermissionPublicResponse {
|
|
1061
|
-
/** 本次更新后的文档公共设置 */
|
|
1062
|
-
permission_public?: PermissionPublic
|
|
1063
|
-
}
|
|
1064
|
-
|
|
1065
|
-
export interface GetDriveV2PermissionPublicResponse {
|
|
1066
|
-
/** 返回的文档公共设置 */
|
|
1067
|
-
permission_public?: PermissionPublic
|
|
1068
|
-
}
|
|
1069
|
-
|
|
1070
|
-
export interface PatchDriveV2PermissionPublicResponse {
|
|
1071
|
-
/** 本次更新后文档公共设置 */
|
|
1072
|
-
permission_public?: PermissionPublic
|
|
1073
|
-
}
|
|
1074
|
-
|
|
1075
|
-
export interface BatchQueryDriveV1FileCommentResponse {
|
|
1076
|
-
/** 评论的相关信息、回复的信息、回复分页的信息 */
|
|
1077
|
-
items?: FileComment[]
|
|
1078
|
-
}
|
|
1079
|
-
|
|
1080
|
-
export interface CreateDriveV1FileCommentResponse {
|
|
1060
|
+
export interface GetDriveV1FileCommentResponse {
|
|
1081
1061
|
/** 评论 ID */
|
|
1082
1062
|
comment_id?: string
|
|
1083
1063
|
/** 用户 ID */
|
|
@@ -1104,31 +1084,33 @@ export interface CreateDriveV1FileCommentResponse {
|
|
|
1104
1084
|
reply_list?: ReplyList
|
|
1105
1085
|
}
|
|
1106
1086
|
|
|
1107
|
-
export interface
|
|
1108
|
-
/**
|
|
1109
|
-
|
|
1110
|
-
/**
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
/**
|
|
1121
|
-
|
|
1122
|
-
/**
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1087
|
+
export interface ListDriveV1FileCommentReplyQuery extends Pagination {
|
|
1088
|
+
/** 文档类型 */
|
|
1089
|
+
file_type: 'doc' | 'sheet' | 'file' | 'docx'
|
|
1090
|
+
/** 此次调用中使用的用户ID的类型 */
|
|
1091
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
export interface UpdateDriveV1FileCommentReplyRequest {
|
|
1095
|
+
/** 回复内容 */
|
|
1096
|
+
content: ReplyContent
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
export interface UpdateDriveV1FileCommentReplyQuery {
|
|
1100
|
+
/** 文档类型 */
|
|
1101
|
+
file_type: 'doc' | 'sheet' | 'file' | 'docx'
|
|
1102
|
+
/** 此次调用中使用的用户ID的类型 */
|
|
1103
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
export interface DeleteDriveV1FileCommentReplyQuery {
|
|
1107
|
+
/** 文档类型 */
|
|
1108
|
+
file_type: 'doc' | 'sheet' | 'file' | 'docx'
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
export interface GetDriveV1FileSubscriptionRequest {
|
|
1112
|
+
/** 文档类型 */
|
|
1113
|
+
file_type: 'doc' | 'docx' | 'wiki'
|
|
1132
1114
|
}
|
|
1133
1115
|
|
|
1134
1116
|
export interface GetDriveV1FileSubscriptionResponse {
|
|
@@ -1142,6 +1124,17 @@ export interface GetDriveV1FileSubscriptionResponse {
|
|
|
1142
1124
|
file_type?: 'doc' | 'docx' | 'wiki'
|
|
1143
1125
|
}
|
|
1144
1126
|
|
|
1127
|
+
export interface CreateDriveV1FileSubscriptionRequest {
|
|
1128
|
+
/** 订阅关系ID */
|
|
1129
|
+
subscription_id?: string
|
|
1130
|
+
/** 订阅类型 */
|
|
1131
|
+
subscription_type: 'comment_update'
|
|
1132
|
+
/** 是否订阅 */
|
|
1133
|
+
is_subcribe?: boolean
|
|
1134
|
+
/** 文档类型 */
|
|
1135
|
+
file_type: 'doc' | 'docx' | 'wiki'
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1145
1138
|
export interface CreateDriveV1FileSubscriptionResponse {
|
|
1146
1139
|
/** 订阅关系ID */
|
|
1147
1140
|
subscription_id?: string
|
|
@@ -1153,6 +1146,13 @@ export interface CreateDriveV1FileSubscriptionResponse {
|
|
|
1153
1146
|
file_type?: 'doc' | 'docx' | 'wiki'
|
|
1154
1147
|
}
|
|
1155
1148
|
|
|
1149
|
+
export interface PatchDriveV1FileSubscriptionRequest {
|
|
1150
|
+
/** 是否订阅 */
|
|
1151
|
+
is_subscribe: boolean
|
|
1152
|
+
/** 文档类型 */
|
|
1153
|
+
file_type: 'doc' | 'docx' | 'wiki'
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
1156
|
export interface PatchDriveV1FileSubscriptionResponse {
|
|
1157
1157
|
/** 订阅关系ID */
|
|
1158
1158
|
subscription_id?: string
|