@satorijs/adapter-lark 3.8.6 → 3.9.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.
- package/lib/bot.d.ts +1 -1
- package/lib/content.d.ts +433 -0
- package/lib/http.d.ts +1 -1
- package/lib/index.cjs +2792 -1719
- package/lib/index.d.ts +4 -2
- package/lib/internal.d.ts +37 -0
- package/lib/message.d.ts +2 -0
- package/lib/types/acs.d.ts +177 -0
- package/lib/types/admin.d.ts +270 -0
- package/lib/types/aily.d.ts +221 -0
- package/lib/types/apaas.d.ts +499 -0
- package/lib/types/application.d.ts +406 -0
- package/lib/types/approval.d.ts +779 -0
- package/lib/types/attendance.d.ts +957 -0
- package/lib/types/auth.d.ts +86 -0
- package/lib/types/authen.d.ts +191 -0
- package/lib/types/baike.d.ts +239 -0
- package/lib/types/bitable.d.ts +691 -0
- package/lib/types/board.d.ts +19 -0
- package/lib/types/calendar.d.ts +653 -0
- package/lib/types/cardkit.d.ts +139 -0
- package/lib/types/compensation.d.ts +54 -0
- package/lib/types/contact.d.ts +1137 -0
- package/lib/types/corehr.d.ts +4391 -0
- package/lib/types/docs.d.ts +23 -0
- package/lib/types/document_ai.d.ts +257 -0
- package/lib/types/docx.d.ts +380 -0
- package/lib/types/drive.d.ts +1053 -0
- package/lib/types/ehr.d.ts +32 -0
- package/lib/types/event.d.ts +9 -18
- package/lib/types/helpdesk.d.ts +746 -0
- package/lib/types/hire.d.ts +3150 -0
- package/lib/types/human_authentication.d.ts +27 -0
- package/lib/types/im.d.ts +1300 -0
- package/lib/types/index.d.ts +16432 -34
- package/lib/types/lingo.d.ts +254 -0
- package/lib/types/mail.d.ts +680 -0
- package/lib/types/mdm.d.ts +42 -0
- package/lib/types/minutes.d.ts +31 -0
- package/lib/types/moments.d.ts +18 -0
- package/lib/types/okr.d.ts +205 -0
- package/lib/types/optical_char_recognition.d.ts +17 -0
- package/lib/types/passport.d.ts +45 -0
- package/lib/types/payroll.d.ts +50 -0
- package/lib/types/performance.d.ts +413 -0
- package/lib/types/personal_settings.d.ts +87 -0
- package/lib/types/report.d.ts +57 -0
- package/lib/types/search.d.ts +216 -0
- package/lib/types/security_and_compliance.d.ts +24 -0
- package/lib/types/sheets.d.ts +326 -0
- package/lib/types/speech_to_text.d.ts +39 -0
- package/lib/types/task.d.ts +1153 -0
- package/lib/types/tenant.d.ts +23 -0
- package/lib/types/translation.d.ts +37 -0
- package/lib/types/vc.d.ts +948 -0
- package/lib/types/verification.d.ts +14 -0
- package/lib/types/wiki.d.ts +240 -0
- package/lib/types/workplace.d.ts +43 -0
- package/lib/utils.d.ts +143 -7
- package/package.json +6 -4
- package/src/bot.ts +19 -3
- package/src/{types/message/content.ts → content.ts} +1 -0
- package/src/http.ts +1 -3
- package/src/index.ts +4 -2
- package/src/internal.ts +143 -0
- package/src/message.ts +13 -11
- package/src/types/acs.ts +236 -0
- package/src/types/admin.ts +328 -0
- package/src/types/aily.ts +288 -0
- package/src/types/apaas.ts +646 -0
- package/src/types/application.ts +520 -0
- package/src/types/approval.ts +924 -0
- package/src/types/attendance.ts +1153 -0
- package/src/types/auth.ts +114 -0
- package/src/types/authen.ts +220 -0
- package/src/types/baike.ts +306 -0
- package/src/types/bitable.ts +879 -0
- package/src/types/board.ts +31 -0
- package/src/types/calendar.ts +817 -0
- package/src/types/cardkit.ts +182 -0
- package/src/types/compensation.ts +79 -0
- package/src/types/contact.ts +1411 -0
- package/src/types/corehr.ts +5297 -0
- package/src/types/docs.ts +33 -0
- package/src/types/document_ai.ts +352 -0
- package/src/types/docx.ts +471 -0
- package/src/types/drive.ts +1321 -0
- package/src/types/ehr.ts +43 -0
- package/src/types/event.ts +15 -21
- package/src/types/helpdesk.ts +925 -0
- package/src/types/hire.ts +3918 -0
- package/src/types/human_authentication.ts +38 -0
- package/src/types/im.ts +1605 -0
- package/src/types/index.ts +17754 -39
- package/src/types/lingo.ts +321 -0
- package/src/types/mail.ts +851 -0
- package/src/types/mdm.ts +57 -0
- package/src/types/minutes.ts +46 -0
- package/src/types/moments.ts +28 -0
- package/src/types/okr.ts +261 -0
- package/src/types/optical_char_recognition.ts +27 -0
- package/src/types/passport.ts +61 -0
- package/src/types/payroll.ts +69 -0
- package/src/types/performance.ts +524 -0
- package/src/types/personal_settings.ts +116 -0
- package/src/types/report.ts +77 -0
- package/src/types/search.ts +268 -0
- package/src/types/security_and_compliance.ts +33 -0
- package/src/types/sheets.ts +425 -0
- package/src/types/speech_to_text.ts +54 -0
- package/src/types/task.ts +1464 -0
- package/src/types/tenant.ts +36 -0
- package/src/types/translation.ts +52 -0
- package/src/types/vc.ts +1197 -0
- package/src/types/verification.ts +23 -0
- package/src/types/wiki.ts +313 -0
- package/src/types/workplace.ts +59 -0
- package/src/utils.ts +160 -8
- package/src/types/api.ts +0 -30848
- package/src/types/internal.ts +0 -84
- package/src/types/message/index.ts +0 -97
|
@@ -0,0 +1,1053 @@
|
|
|
1
|
+
import { BaseMember, ExportTask, File, FileComment, FileCommentReply, FileLike, FileStatistics, FileViewRecord, ImportTask, ImportTaskMountPoint, Member, Meta, MetaFailed, PermissionPublic, Property, ReferEntity, ReplyContent, ReplyList, RequestDoc, TmpDownloadUrl, Version } from '.';
|
|
2
|
+
import { Pagination } from '../internal';
|
|
3
|
+
declare module '../internal' {
|
|
4
|
+
interface Internal {
|
|
5
|
+
/**
|
|
6
|
+
* 获取文件夹中的文件清单
|
|
7
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file/list
|
|
8
|
+
*/
|
|
9
|
+
listDriveV1File(query?: ListDriveV1FileQuery): Promise<ListDriveV1FileResponse> & AsyncIterableIterator<File>;
|
|
10
|
+
/**
|
|
11
|
+
* 新建文件夹
|
|
12
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file/create_folder
|
|
13
|
+
*/
|
|
14
|
+
createFolderDriveV1File(body: CreateFolderDriveV1FileRequest): Promise<CreateFolderDriveV1FileResponse>;
|
|
15
|
+
/**
|
|
16
|
+
* 查询异步任务状态
|
|
17
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file/task_check
|
|
18
|
+
*/
|
|
19
|
+
taskCheckDriveV1File(query?: TaskCheckDriveV1FileQuery): Promise<TaskCheckDriveV1FileResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* 获取文件元数据
|
|
22
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/meta/batch_query
|
|
23
|
+
*/
|
|
24
|
+
batchQueryDriveV1Meta(body: BatchQueryDriveV1MetaRequest, query?: BatchQueryDriveV1MetaQuery): Promise<BatchQueryDriveV1MetaResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* 获取文件统计信息
|
|
27
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file-statistics/get
|
|
28
|
+
*/
|
|
29
|
+
getDriveV1FileStatistics(file_token: string, query?: GetDriveV1FileStatisticsQuery): Promise<GetDriveV1FileStatisticsResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* 获取文件访问记录
|
|
32
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file-view_record/list
|
|
33
|
+
*/
|
|
34
|
+
listDriveV1FileViewRecord(file_token: string, query?: ListDriveV1FileViewRecordQuery): Paginated<FileViewRecord>;
|
|
35
|
+
/**
|
|
36
|
+
* 复制文件
|
|
37
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file/copy
|
|
38
|
+
*/
|
|
39
|
+
copyDriveV1File(file_token: string, body: CopyDriveV1FileRequest, query?: CopyDriveV1FileQuery): Promise<CopyDriveV1FileResponse>;
|
|
40
|
+
/**
|
|
41
|
+
* 移动文件或文件夹
|
|
42
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file/move
|
|
43
|
+
*/
|
|
44
|
+
moveDriveV1File(file_token: string, body: MoveDriveV1FileRequest): Promise<MoveDriveV1FileResponse>;
|
|
45
|
+
/**
|
|
46
|
+
* 删除文件或文件夹
|
|
47
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file/delete
|
|
48
|
+
*/
|
|
49
|
+
deleteDriveV1File(file_token: string, query?: DeleteDriveV1FileQuery): Promise<DeleteDriveV1FileResponse>;
|
|
50
|
+
/**
|
|
51
|
+
* 创建文件快捷方式
|
|
52
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file/create_shortcut
|
|
53
|
+
*/
|
|
54
|
+
createShortcutDriveV1File(body: CreateShortcutDriveV1FileRequest, query?: CreateShortcutDriveV1FileQuery): Promise<CreateShortcutDriveV1FileResponse>;
|
|
55
|
+
/**
|
|
56
|
+
* 上传文件
|
|
57
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file/upload_all
|
|
58
|
+
*/
|
|
59
|
+
uploadAllDriveV1File(form: UploadAllDriveV1FileForm): Promise<UploadAllDriveV1FileResponse>;
|
|
60
|
+
/**
|
|
61
|
+
* 分片上传文件-预上传
|
|
62
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file/upload_prepare
|
|
63
|
+
*/
|
|
64
|
+
uploadPrepareDriveV1File(body: UploadPrepareDriveV1FileRequest): Promise<UploadPrepareDriveV1FileResponse>;
|
|
65
|
+
/**
|
|
66
|
+
* 分片上传文件-上传分片
|
|
67
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file/upload_part
|
|
68
|
+
*/
|
|
69
|
+
uploadPartDriveV1File(form: UploadPartDriveV1FileForm): Promise<void>;
|
|
70
|
+
/**
|
|
71
|
+
* 分片上传文件-完成上传
|
|
72
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file/upload_finish
|
|
73
|
+
*/
|
|
74
|
+
uploadFinishDriveV1File(body: UploadFinishDriveV1FileRequest): Promise<UploadFinishDriveV1FileResponse>;
|
|
75
|
+
/**
|
|
76
|
+
* 下载文件
|
|
77
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file/download
|
|
78
|
+
*/
|
|
79
|
+
downloadDriveV1File(file_token: string): Promise<ArrayBuffer>;
|
|
80
|
+
/**
|
|
81
|
+
* 创建导入任务
|
|
82
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/import_task/create
|
|
83
|
+
*/
|
|
84
|
+
createDriveV1ImportTask(body: CreateDriveV1ImportTaskRequest): Promise<CreateDriveV1ImportTaskResponse>;
|
|
85
|
+
/**
|
|
86
|
+
* 查询导入任务结果
|
|
87
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/import_task/get
|
|
88
|
+
*/
|
|
89
|
+
getDriveV1ImportTask(ticket: string): Promise<GetDriveV1ImportTaskResponse>;
|
|
90
|
+
/**
|
|
91
|
+
* 创建导出任务
|
|
92
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/export_task/create
|
|
93
|
+
*/
|
|
94
|
+
createDriveV1ExportTask(body: CreateDriveV1ExportTaskRequest): Promise<CreateDriveV1ExportTaskResponse>;
|
|
95
|
+
/**
|
|
96
|
+
* 查询导出任务结果
|
|
97
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/export_task/get
|
|
98
|
+
*/
|
|
99
|
+
getDriveV1ExportTask(ticket: string, query?: GetDriveV1ExportTaskQuery): Promise<GetDriveV1ExportTaskResponse>;
|
|
100
|
+
/**
|
|
101
|
+
* 下载导出文件
|
|
102
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/export_task/download
|
|
103
|
+
*/
|
|
104
|
+
downloadDriveV1ExportTask(file_token: string): Promise<ArrayBuffer>;
|
|
105
|
+
/**
|
|
106
|
+
* 上传素材
|
|
107
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/media/upload_all
|
|
108
|
+
*/
|
|
109
|
+
uploadAllDriveV1Media(form: UploadAllDriveV1MediaForm): Promise<UploadAllDriveV1MediaResponse>;
|
|
110
|
+
/**
|
|
111
|
+
* 分片上传素材-预上传
|
|
112
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/media/upload_prepare
|
|
113
|
+
*/
|
|
114
|
+
uploadPrepareDriveV1Media(body: UploadPrepareDriveV1MediaRequest): Promise<UploadPrepareDriveV1MediaResponse>;
|
|
115
|
+
/**
|
|
116
|
+
* 分片上传素材-上传分片
|
|
117
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/media/upload_part
|
|
118
|
+
*/
|
|
119
|
+
uploadPartDriveV1Media(form: UploadPartDriveV1MediaForm): Promise<void>;
|
|
120
|
+
/**
|
|
121
|
+
* 分片上传素材-完成上传
|
|
122
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/media/upload_finish
|
|
123
|
+
*/
|
|
124
|
+
uploadFinishDriveV1Media(body: UploadFinishDriveV1MediaRequest): Promise<UploadFinishDriveV1MediaResponse>;
|
|
125
|
+
/**
|
|
126
|
+
* 下载素材
|
|
127
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/media/download
|
|
128
|
+
*/
|
|
129
|
+
downloadDriveV1Media(file_token: string, query?: DownloadDriveV1MediaQuery): Promise<ArrayBuffer>;
|
|
130
|
+
/**
|
|
131
|
+
* 获取素材临时下载链接
|
|
132
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/media/batch_get_tmp_download_url
|
|
133
|
+
*/
|
|
134
|
+
batchGetTmpDownloadUrlDriveV1Media(query?: BatchGetTmpDownloadUrlDriveV1MediaQuery): Promise<BatchGetTmpDownloadUrlDriveV1MediaResponse>;
|
|
135
|
+
/**
|
|
136
|
+
* 创建文档版本
|
|
137
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file-version/create
|
|
138
|
+
*/
|
|
139
|
+
createDriveV1FileVersion(file_token: string, body: CreateDriveV1FileVersionRequest, query?: CreateDriveV1FileVersionQuery): Promise<CreateDriveV1FileVersionResponse>;
|
|
140
|
+
/**
|
|
141
|
+
* 获取文档版本列表
|
|
142
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file-version/list
|
|
143
|
+
*/
|
|
144
|
+
listDriveV1FileVersion(file_token: string, query?: ListDriveV1FileVersionQuery): Paginated<Version>;
|
|
145
|
+
/**
|
|
146
|
+
* 获取文档版本信息
|
|
147
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file-version/get
|
|
148
|
+
*/
|
|
149
|
+
getDriveV1FileVersion(file_token: string, version_id: string, query?: GetDriveV1FileVersionQuery): Promise<GetDriveV1FileVersionResponse>;
|
|
150
|
+
/**
|
|
151
|
+
* 删除文档版本
|
|
152
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file-version/delete
|
|
153
|
+
*/
|
|
154
|
+
deleteDriveV1FileVersion(file_token: string, version_id: string, query?: DeleteDriveV1FileVersionQuery): Promise<void>;
|
|
155
|
+
/**
|
|
156
|
+
* 获取云文档的点赞者列表
|
|
157
|
+
* @see https://open.feishu.cn/document/ukTMukTMukTM/uIzNzUjLyczM14iM3MTN/drive-v2/file-like/list
|
|
158
|
+
*/
|
|
159
|
+
listDriveV2FileLike(file_token: string, query?: ListDriveV2FileLikeQuery): Paginated<FileLike>;
|
|
160
|
+
/**
|
|
161
|
+
* 订阅云文档事件
|
|
162
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file/subscribe
|
|
163
|
+
*/
|
|
164
|
+
subscribeDriveV1File(file_token: string, query?: SubscribeDriveV1FileQuery): Promise<void>;
|
|
165
|
+
/**
|
|
166
|
+
* 查询云文档事件订阅状态
|
|
167
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file/get_subscribe
|
|
168
|
+
*/
|
|
169
|
+
getSubscribeDriveV1File(file_token: string, query?: GetSubscribeDriveV1FileQuery): Promise<GetSubscribeDriveV1FileResponse>;
|
|
170
|
+
/**
|
|
171
|
+
* 取消云文档事件订阅
|
|
172
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file/delete_subscribe
|
|
173
|
+
*/
|
|
174
|
+
deleteSubscribeDriveV1File(file_token: string, query?: DeleteSubscribeDriveV1FileQuery): Promise<void>;
|
|
175
|
+
/**
|
|
176
|
+
* 批量增加协作者权限
|
|
177
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/permission-member/batch_create
|
|
178
|
+
*/
|
|
179
|
+
batchCreateDriveV1PermissionMember(token: string, body: BatchCreateDriveV1PermissionMemberRequest, query?: BatchCreateDriveV1PermissionMemberQuery): Promise<BatchCreateDriveV1PermissionMemberResponse>;
|
|
180
|
+
/**
|
|
181
|
+
* 转移所有者
|
|
182
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/permission-member/transfer_owner
|
|
183
|
+
*/
|
|
184
|
+
transferOwnerDriveV1PermissionMember(token: string, body: TransferOwnerDriveV1PermissionMemberRequest, query?: TransferOwnerDriveV1PermissionMemberQuery): Promise<void>;
|
|
185
|
+
/**
|
|
186
|
+
* 判断当前用户是否有某权限
|
|
187
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/permission-member/auth
|
|
188
|
+
*/
|
|
189
|
+
authDriveV1PermissionMember(token: string, query?: AuthDriveV1PermissionMemberQuery): Promise<AuthDriveV1PermissionMemberResponse>;
|
|
190
|
+
/**
|
|
191
|
+
* 获取协作者列表
|
|
192
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/permission-member/list
|
|
193
|
+
*/
|
|
194
|
+
listDriveV1PermissionMember(token: string, query?: ListDriveV1PermissionMemberQuery): Promise<ListDriveV1PermissionMemberResponse>;
|
|
195
|
+
/**
|
|
196
|
+
* 增加协作者权限
|
|
197
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/permission-member/create
|
|
198
|
+
*/
|
|
199
|
+
createDriveV1PermissionMember(token: string, body: CreateDriveV1PermissionMemberRequest, query?: CreateDriveV1PermissionMemberQuery): Promise<CreateDriveV1PermissionMemberResponse>;
|
|
200
|
+
/**
|
|
201
|
+
* 更新协作者权限
|
|
202
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/permission-member/update
|
|
203
|
+
*/
|
|
204
|
+
updateDriveV1PermissionMember(token: string, member_id: string, body: UpdateDriveV1PermissionMemberRequest, query?: UpdateDriveV1PermissionMemberQuery): Promise<UpdateDriveV1PermissionMemberResponse>;
|
|
205
|
+
/**
|
|
206
|
+
* 移除协作者权限
|
|
207
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/permission-member/delete
|
|
208
|
+
*/
|
|
209
|
+
deleteDriveV1PermissionMember(token: string, member_id: string, body: DeleteDriveV1PermissionMemberRequest, query?: DeleteDriveV1PermissionMemberQuery): Promise<void>;
|
|
210
|
+
/**
|
|
211
|
+
* 开启密码
|
|
212
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/permission-public-password/create
|
|
213
|
+
*/
|
|
214
|
+
createDriveV1PermissionPublicPassword(token: string, query?: CreateDriveV1PermissionPublicPasswordQuery): Promise<CreateDriveV1PermissionPublicPasswordResponse>;
|
|
215
|
+
/**
|
|
216
|
+
* 刷新密码
|
|
217
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/permission-public-password/update
|
|
218
|
+
*/
|
|
219
|
+
updateDriveV1PermissionPublicPassword(token: string, query?: UpdateDriveV1PermissionPublicPasswordQuery): Promise<UpdateDriveV1PermissionPublicPasswordResponse>;
|
|
220
|
+
/**
|
|
221
|
+
* 关闭密码
|
|
222
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/permission-public-password/delete
|
|
223
|
+
*/
|
|
224
|
+
deleteDriveV1PermissionPublicPassword(token: string, query?: DeleteDriveV1PermissionPublicPasswordQuery): Promise<void>;
|
|
225
|
+
/**
|
|
226
|
+
* 获取云文档权限设置
|
|
227
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/permission-public/get
|
|
228
|
+
*/
|
|
229
|
+
getDriveV1PermissionPublic(token: string, query?: GetDriveV1PermissionPublicQuery): Promise<GetDriveV1PermissionPublicResponse>;
|
|
230
|
+
/**
|
|
231
|
+
* 更新云文档权限设置
|
|
232
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/permission-public/patch
|
|
233
|
+
*/
|
|
234
|
+
patchDriveV1PermissionPublic(token: string, body: PatchDriveV1PermissionPublicRequest, query?: PatchDriveV1PermissionPublicQuery): Promise<PatchDriveV1PermissionPublicResponse>;
|
|
235
|
+
/**
|
|
236
|
+
* 获取云文档权限设置
|
|
237
|
+
* @see https://open.feishu.cn/document/ukTMukTMukTM/uIzNzUjLyczM14iM3MTN/drive-v2/permission-public/get
|
|
238
|
+
*/
|
|
239
|
+
getDriveV2PermissionPublic(token: string, query?: GetDriveV2PermissionPublicQuery): Promise<GetDriveV2PermissionPublicResponse>;
|
|
240
|
+
/**
|
|
241
|
+
* 更新云文档权限设置
|
|
242
|
+
* @see https://open.feishu.cn/document/ukTMukTMukTM/uIzNzUjLyczM14iM3MTN/drive-v2/permission-public/patch
|
|
243
|
+
*/
|
|
244
|
+
patchDriveV2PermissionPublic(token: string, body: PatchDriveV2PermissionPublicRequest, query?: PatchDriveV2PermissionPublicQuery): Promise<PatchDriveV2PermissionPublicResponse>;
|
|
245
|
+
/**
|
|
246
|
+
* 获取云文档所有评论
|
|
247
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file-comment/list
|
|
248
|
+
*/
|
|
249
|
+
listDriveV1FileComment(file_token: string, query?: ListDriveV1FileCommentQuery): Paginated<FileComment>;
|
|
250
|
+
/**
|
|
251
|
+
* 批量获取评论
|
|
252
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file-comment/batch_query
|
|
253
|
+
*/
|
|
254
|
+
batchQueryDriveV1FileComment(file_token: string, body: BatchQueryDriveV1FileCommentRequest, query?: BatchQueryDriveV1FileCommentQuery): Promise<BatchQueryDriveV1FileCommentResponse>;
|
|
255
|
+
/**
|
|
256
|
+
* 解决/恢复评论
|
|
257
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file-comment/patch
|
|
258
|
+
*/
|
|
259
|
+
patchDriveV1FileComment(file_token: string, comment_id: string, body: PatchDriveV1FileCommentRequest, query?: PatchDriveV1FileCommentQuery): Promise<void>;
|
|
260
|
+
/**
|
|
261
|
+
* 添加全文评论
|
|
262
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file-comment/create
|
|
263
|
+
*/
|
|
264
|
+
createDriveV1FileComment(file_token: string, body: CreateDriveV1FileCommentRequest, query?: CreateDriveV1FileCommentQuery): Promise<CreateDriveV1FileCommentResponse>;
|
|
265
|
+
/**
|
|
266
|
+
* 获取全文评论
|
|
267
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file-comment/get
|
|
268
|
+
*/
|
|
269
|
+
getDriveV1FileComment(file_token: string, comment_id: string, query?: GetDriveV1FileCommentQuery): Promise<GetDriveV1FileCommentResponse>;
|
|
270
|
+
/**
|
|
271
|
+
* 获取回复信息
|
|
272
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file-comment-reply/list
|
|
273
|
+
*/
|
|
274
|
+
listDriveV1FileCommentReply(file_token: string, comment_id: string, query?: ListDriveV1FileCommentReplyQuery): Paginated<FileCommentReply>;
|
|
275
|
+
/**
|
|
276
|
+
* 更新回复的内容
|
|
277
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file-comment-reply/update
|
|
278
|
+
*/
|
|
279
|
+
updateDriveV1FileCommentReply(file_token: string, comment_id: string, reply_id: string, body: UpdateDriveV1FileCommentReplyRequest, query?: UpdateDriveV1FileCommentReplyQuery): Promise<void>;
|
|
280
|
+
/**
|
|
281
|
+
* 删除回复
|
|
282
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file-comment-reply/delete
|
|
283
|
+
*/
|
|
284
|
+
deleteDriveV1FileCommentReply(file_token: string, comment_id: string, reply_id: string, query?: DeleteDriveV1FileCommentReplyQuery): Promise<void>;
|
|
285
|
+
/**
|
|
286
|
+
* 获取订阅状态
|
|
287
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file-subscription/get
|
|
288
|
+
*/
|
|
289
|
+
getDriveV1FileSubscription(file_token: string, subscription_id: string, body: GetDriveV1FileSubscriptionRequest): Promise<GetDriveV1FileSubscriptionResponse>;
|
|
290
|
+
/**
|
|
291
|
+
* 创建订阅
|
|
292
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file-subscription/create
|
|
293
|
+
*/
|
|
294
|
+
createDriveV1FileSubscription(file_token: string, body: CreateDriveV1FileSubscriptionRequest): Promise<CreateDriveV1FileSubscriptionResponse>;
|
|
295
|
+
/**
|
|
296
|
+
* 更新订阅状态
|
|
297
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file-subscription/patch
|
|
298
|
+
*/
|
|
299
|
+
patchDriveV1FileSubscription(file_token: string, subscription_id: string, body: PatchDriveV1FileSubscriptionRequest): Promise<PatchDriveV1FileSubscriptionResponse>;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
export interface ListDriveV1FileQuery extends Pagination {
|
|
303
|
+
/** 文件夹的token(若不填写该参数或填写空字符串,则默认获取用户云空间下的清单,且不支持分页) */
|
|
304
|
+
folder_token?: string;
|
|
305
|
+
/** 排序规则 */
|
|
306
|
+
order_by?: 'EditedTime' | 'CreatedTime';
|
|
307
|
+
/** 升序降序 */
|
|
308
|
+
direction?: 'ASC' | 'DESC';
|
|
309
|
+
/** 此次调用中使用的用户ID的类型 */
|
|
310
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id';
|
|
311
|
+
}
|
|
312
|
+
export interface CreateFolderDriveV1FileRequest {
|
|
313
|
+
/** 文件夹名称 */
|
|
314
|
+
name: string;
|
|
315
|
+
/** 父文件夹token */
|
|
316
|
+
folder_token: string;
|
|
317
|
+
}
|
|
318
|
+
export interface TaskCheckDriveV1FileQuery {
|
|
319
|
+
/** 文件相关异步任务id */
|
|
320
|
+
task_id: string;
|
|
321
|
+
}
|
|
322
|
+
export interface BatchQueryDriveV1MetaRequest {
|
|
323
|
+
/** 请求文档, 一次不超过200个 */
|
|
324
|
+
request_docs: RequestDoc[];
|
|
325
|
+
/** 是否获取文档链接 */
|
|
326
|
+
with_url?: boolean;
|
|
327
|
+
}
|
|
328
|
+
export interface BatchQueryDriveV1MetaQuery {
|
|
329
|
+
/** 此次调用中使用的用户ID的类型 */
|
|
330
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id';
|
|
331
|
+
}
|
|
332
|
+
export interface GetDriveV1FileStatisticsQuery {
|
|
333
|
+
/** 文档类型 */
|
|
334
|
+
file_type: 'doc' | 'sheet' | 'mindnote' | 'bitable' | 'wiki' | 'file' | 'docx';
|
|
335
|
+
}
|
|
336
|
+
export interface ListDriveV1FileViewRecordQuery extends Pagination {
|
|
337
|
+
/** 文档类型 */
|
|
338
|
+
file_type: 'doc' | 'docx' | 'sheet' | 'bitable' | 'mindnote' | 'wiki' | 'file';
|
|
339
|
+
/** 此次调用中使用的访问者 ID 的类型 */
|
|
340
|
+
viewer_id_type?: 'user_id' | 'union_id' | 'open_id';
|
|
341
|
+
}
|
|
342
|
+
export interface CopyDriveV1FileRequest {
|
|
343
|
+
/** 被复制文件的新名称 */
|
|
344
|
+
name: string;
|
|
345
|
+
/** 被复制文件的类型,如果该值为空或者与文件实际类型不匹配,接口会返回失败。 */
|
|
346
|
+
type?: 'file' | 'doc' | 'sheet' | 'bitable' | 'docx' | 'mindnote' | 'slides';
|
|
347
|
+
/** 文件被复制到的目标文件夹token */
|
|
348
|
+
folder_token: string;
|
|
349
|
+
/** 用户自定义请求附加参数,用于实现特殊的复制语义 */
|
|
350
|
+
extra?: Property[];
|
|
351
|
+
}
|
|
352
|
+
export interface CopyDriveV1FileQuery {
|
|
353
|
+
/** 此次调用中使用的用户ID的类型 */
|
|
354
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id';
|
|
355
|
+
}
|
|
356
|
+
export interface MoveDriveV1FileRequest {
|
|
357
|
+
/** 文件类型,如果该值为空或者与文件实际类型不匹配,接口会返回失败。 */
|
|
358
|
+
type?: 'file' | 'docx' | 'bitable' | 'doc' | 'sheet' | 'mindnote' | 'folder' | 'slides';
|
|
359
|
+
/** 目标文件夹token */
|
|
360
|
+
folder_token?: string;
|
|
361
|
+
}
|
|
362
|
+
export interface DeleteDriveV1FileQuery {
|
|
363
|
+
/** 被删除文件的类型 */
|
|
364
|
+
type: 'file' | 'docx' | 'bitable' | 'folder' | 'doc' | 'sheet' | 'mindnote' | 'shortcut' | 'slides';
|
|
365
|
+
}
|
|
366
|
+
export interface CreateShortcutDriveV1FileRequest {
|
|
367
|
+
/** 创建快捷方式的目标父文件夹 token */
|
|
368
|
+
parent_token: string;
|
|
369
|
+
/** 快捷方式映射到的文档和文件列表信息 */
|
|
370
|
+
refer_entity: ReferEntity;
|
|
371
|
+
}
|
|
372
|
+
export interface CreateShortcutDriveV1FileQuery {
|
|
373
|
+
/** 此次调用中使用的用户ID的类型 */
|
|
374
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id';
|
|
375
|
+
}
|
|
376
|
+
export interface UploadAllDriveV1FileForm {
|
|
377
|
+
/** 文件名。 */
|
|
378
|
+
file_name: string;
|
|
379
|
+
/** 上传点类型。 */
|
|
380
|
+
parent_type: 'explorer';
|
|
381
|
+
/** 文件夹token,获取方式见 [概述](/ssl:ttdoc/ukTMukTMukTM/uUDN04SN0QjL1QDN/files/guide/introduction) */
|
|
382
|
+
parent_node: string;
|
|
383
|
+
/** 文件大小(以字节为单位)。 */
|
|
384
|
+
size: number;
|
|
385
|
+
/** 文件adler32校验和(可选)。 */
|
|
386
|
+
checksum?: string;
|
|
387
|
+
/** 文件二进制内容。 */
|
|
388
|
+
file: Blob;
|
|
389
|
+
}
|
|
390
|
+
export interface UploadPrepareDriveV1FileRequest {
|
|
391
|
+
/** 文件名 */
|
|
392
|
+
file_name: string;
|
|
393
|
+
/** 上传点类型 */
|
|
394
|
+
parent_type: 'explorer';
|
|
395
|
+
/** 文件夹的token */
|
|
396
|
+
parent_node: string;
|
|
397
|
+
/** 文件大小 */
|
|
398
|
+
size: number;
|
|
399
|
+
}
|
|
400
|
+
export interface UploadPartDriveV1FileForm {
|
|
401
|
+
/** 分片上传事务ID。 */
|
|
402
|
+
upload_id: string;
|
|
403
|
+
/** 块号,从0开始计数。 */
|
|
404
|
+
seq: number;
|
|
405
|
+
/** 块大小(以字节为单位)。 */
|
|
406
|
+
size: number;
|
|
407
|
+
/** 文件分块adler32校验和(可选)。 */
|
|
408
|
+
checksum?: string;
|
|
409
|
+
/** 文件分片二进制内容。 */
|
|
410
|
+
file: Blob;
|
|
411
|
+
}
|
|
412
|
+
export interface UploadFinishDriveV1FileRequest {
|
|
413
|
+
/** 分片上传事务ID */
|
|
414
|
+
upload_id: string;
|
|
415
|
+
/** 分片数量 */
|
|
416
|
+
block_num: number;
|
|
417
|
+
}
|
|
418
|
+
export interface CreateDriveV1ImportTaskRequest {
|
|
419
|
+
/** 导入文件格式后缀 */
|
|
420
|
+
file_extension: string;
|
|
421
|
+
/** 导入的文件 Token */
|
|
422
|
+
file_token: string;
|
|
423
|
+
/** 导入目标云文档类型,支持的类型 新版文档:docx;电子表格:sheet;多维表格:bitable */
|
|
424
|
+
type: string;
|
|
425
|
+
/** 目标云文档的标题,若为空,则使用导入文件的名字 */
|
|
426
|
+
file_name?: string;
|
|
427
|
+
/** 挂载点 */
|
|
428
|
+
point: ImportTaskMountPoint;
|
|
429
|
+
}
|
|
430
|
+
export interface CreateDriveV1ExportTaskRequest {
|
|
431
|
+
/** 导出文件扩展名 */
|
|
432
|
+
file_extension: 'docx' | 'pdf' | 'xlsx' | 'csv';
|
|
433
|
+
/** 导出文档 Token */
|
|
434
|
+
token: string;
|
|
435
|
+
/** 导出文档类型 */
|
|
436
|
+
type: 'doc' | 'sheet' | 'bitable' | 'docx';
|
|
437
|
+
/** 导出子表 ID,仅当将 sheet/bitable 导出为 csv 时使用 */
|
|
438
|
+
sub_id?: string;
|
|
439
|
+
}
|
|
440
|
+
export interface GetDriveV1ExportTaskQuery {
|
|
441
|
+
/** 导出文档的 token */
|
|
442
|
+
token: string;
|
|
443
|
+
}
|
|
444
|
+
export interface UploadAllDriveV1MediaForm {
|
|
445
|
+
/** 文件名。 */
|
|
446
|
+
file_name: string;
|
|
447
|
+
/** 上传点类型。 */
|
|
448
|
+
parent_type: 'doc_image' | 'docx_image' | 'sheet_image' | 'doc_file' | 'docx_file' | 'sheet_file' | 'vc_virtual_background' | 'bitable_image' | 'bitable_file' | 'moments' | 'ccm_import_open' | 'calendar' | 'base_global' | 'lark_ai_media_analysis';
|
|
449
|
+
/** 上传点的token。 */
|
|
450
|
+
parent_node: string;
|
|
451
|
+
/** 文件大小(以字节为单位)。 */
|
|
452
|
+
size: number;
|
|
453
|
+
/** 文件adler32校验和(可选)。 */
|
|
454
|
+
checksum?: string;
|
|
455
|
+
/** 扩展信息(可选)。 */
|
|
456
|
+
extra?: string;
|
|
457
|
+
/** 文件二进制内容。 */
|
|
458
|
+
file: Blob;
|
|
459
|
+
}
|
|
460
|
+
export interface UploadPrepareDriveV1MediaRequest {
|
|
461
|
+
/** 文件名 */
|
|
462
|
+
file_name: string;
|
|
463
|
+
/** 上传点类型 */
|
|
464
|
+
parent_type: 'doc_image' | 'docx_image' | 'sheet_image' | 'doc_file' | 'docx_file' | 'sheet_file' | 'vc_virtual_background' | 'bitable_image' | 'bitable_file' | 'moments' | 'ccm_import_open' | 'calendar' | 'base_global' | 'lark_ai_media_analysis';
|
|
465
|
+
/** 文件大小 */
|
|
466
|
+
size: number;
|
|
467
|
+
/** 上传点的标识符 */
|
|
468
|
+
parent_node?: string;
|
|
469
|
+
/** 扩展信息(可选) */
|
|
470
|
+
extra?: string;
|
|
471
|
+
}
|
|
472
|
+
export interface UploadPartDriveV1MediaForm {
|
|
473
|
+
/** 分片上传事务ID。 */
|
|
474
|
+
upload_id: string;
|
|
475
|
+
/** 块号,从0开始计数。 */
|
|
476
|
+
seq: number;
|
|
477
|
+
/** 块大小(以字节为单位)。 */
|
|
478
|
+
size: number;
|
|
479
|
+
/** 文件分块adler32校验和(可选)。 */
|
|
480
|
+
checksum?: string;
|
|
481
|
+
/** 文件分片二进制内容。 */
|
|
482
|
+
file: Blob;
|
|
483
|
+
}
|
|
484
|
+
export interface UploadFinishDriveV1MediaRequest {
|
|
485
|
+
/** 分片上传事务ID */
|
|
486
|
+
upload_id: string;
|
|
487
|
+
/** 分片数量 */
|
|
488
|
+
block_num: number;
|
|
489
|
+
}
|
|
490
|
+
export interface DownloadDriveV1MediaQuery {
|
|
491
|
+
/** 扩展信息 */
|
|
492
|
+
extra?: string;
|
|
493
|
+
}
|
|
494
|
+
export interface BatchGetTmpDownloadUrlDriveV1MediaQuery {
|
|
495
|
+
/** 文件标识符列表 */
|
|
496
|
+
file_tokens: string[];
|
|
497
|
+
/** 拓展信息(可选) */
|
|
498
|
+
extra?: string;
|
|
499
|
+
}
|
|
500
|
+
export interface CreateDriveV1FileVersionRequest {
|
|
501
|
+
/** 版本文档标题,最大长度 1024 个Unicode 码点。通常情况下,一个英文或中文字符对应一个码点,但是某些特殊符号可能会对应多个码点。例如,家庭组合「👨👩👧」这个表情符号对应5个码点。 */
|
|
502
|
+
name?: string;
|
|
503
|
+
/** 版本文档类型 */
|
|
504
|
+
obj_type?: 'docx' | 'sheet';
|
|
505
|
+
}
|
|
506
|
+
export interface CreateDriveV1FileVersionQuery {
|
|
507
|
+
/** 此次调用中使用的用户ID的类型 */
|
|
508
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id';
|
|
509
|
+
}
|
|
510
|
+
export interface ListDriveV1FileVersionQuery extends Pagination {
|
|
511
|
+
/** 原文档类型 */
|
|
512
|
+
obj_type: 'docx' | 'sheet';
|
|
513
|
+
/** 用户id类型 */
|
|
514
|
+
user_id_type?: 'open_id' | 'union_id' | 'user_id';
|
|
515
|
+
}
|
|
516
|
+
export interface GetDriveV1FileVersionQuery {
|
|
517
|
+
/** 文档类型 */
|
|
518
|
+
obj_type: 'docx' | 'sheet';
|
|
519
|
+
/** 用户ID类型 */
|
|
520
|
+
user_id_type?: 'open_id' | 'union_id' | 'user_id';
|
|
521
|
+
}
|
|
522
|
+
export interface DeleteDriveV1FileVersionQuery {
|
|
523
|
+
/** 文档类型 */
|
|
524
|
+
obj_type: 'docx' | 'sheet';
|
|
525
|
+
/** 用户ID类型 */
|
|
526
|
+
user_id_type?: 'open_id' | 'union_id' | 'user_id';
|
|
527
|
+
}
|
|
528
|
+
export interface ListDriveV2FileLikeQuery extends Pagination {
|
|
529
|
+
/** 文件类型,如果该值为空或者与文件实际类型不匹配,接口会返回失败。 */
|
|
530
|
+
file_type: 'doc' | 'docx' | 'file';
|
|
531
|
+
/** 此次调用中使用的用户ID的类型 */
|
|
532
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id';
|
|
533
|
+
}
|
|
534
|
+
export interface SubscribeDriveV1FileQuery {
|
|
535
|
+
/** 文档类型 */
|
|
536
|
+
file_type: 'doc' | 'docx' | 'sheet' | 'bitable' | 'folder';
|
|
537
|
+
/** 事件类型 */
|
|
538
|
+
event_type?: string;
|
|
539
|
+
}
|
|
540
|
+
export interface GetSubscribeDriveV1FileQuery {
|
|
541
|
+
/** 文档类型 */
|
|
542
|
+
file_type: 'doc' | 'docx' | 'sheet' | 'bitable' | 'file' | 'folder';
|
|
543
|
+
/** 事件类型 */
|
|
544
|
+
event_type?: string;
|
|
545
|
+
}
|
|
546
|
+
export interface DeleteSubscribeDriveV1FileQuery {
|
|
547
|
+
/** 文档类型 */
|
|
548
|
+
file_type: 'doc' | 'docx' | 'sheet' | 'bitable' | 'file' | 'folder';
|
|
549
|
+
/** 事件类型 */
|
|
550
|
+
event_type?: string;
|
|
551
|
+
}
|
|
552
|
+
export interface BatchCreateDriveV1PermissionMemberRequest {
|
|
553
|
+
/** 协作者列表 */
|
|
554
|
+
members: BaseMember[];
|
|
555
|
+
}
|
|
556
|
+
export interface BatchCreateDriveV1PermissionMemberQuery {
|
|
557
|
+
/** 文件的类型 */
|
|
558
|
+
type: 'doc' | 'sheet' | 'file' | 'wiki' | 'bitable' | 'docx' | 'folder' | 'mindnote' | 'minutes' | 'slides';
|
|
559
|
+
/** 添加权限后是否通知对方 */
|
|
560
|
+
need_notification?: boolean;
|
|
561
|
+
}
|
|
562
|
+
export interface TransferOwnerDriveV1PermissionMemberRequest {
|
|
563
|
+
/** 文档拥有者的ID类型 */
|
|
564
|
+
member_type: 'email' | 'openid' | 'userid';
|
|
565
|
+
/** 文档拥有者的ID,与文档拥有者的ID类型需要对应 */
|
|
566
|
+
member_id: string;
|
|
567
|
+
}
|
|
568
|
+
export interface TransferOwnerDriveV1PermissionMemberQuery {
|
|
569
|
+
/** 文件类型,需要与文件的 token 相匹配 */
|
|
570
|
+
type: 'doc' | 'sheet' | 'file' | 'wiki' | 'bitable' | 'docx' | 'mindnote' | 'minutes' | 'slides' | 'folder';
|
|
571
|
+
/** 是否需要通知新 Owner */
|
|
572
|
+
need_notification?: boolean;
|
|
573
|
+
/** 转移后是否需要移除原 Owner 的权限 */
|
|
574
|
+
remove_old_owner?: boolean;
|
|
575
|
+
/** 仅当内容不在共享文件夹中,此参数才会生效。如果设为false,系统会将该内容移至新所有者的个人空间根文件夹。如果设为 true,则留在原位置。 */
|
|
576
|
+
stay_put?: boolean;
|
|
577
|
+
/** 仅当 remove_old_owner = false 时,此参数才会生效 保留原文件所有者指定的权限角色 */
|
|
578
|
+
old_owner_perm?: string;
|
|
579
|
+
}
|
|
580
|
+
export interface AuthDriveV1PermissionMemberQuery {
|
|
581
|
+
/** 文件类型,需要与文件的 token 相匹配 */
|
|
582
|
+
type: 'doc' | 'sheet' | 'file' | 'wiki' | 'bitable' | 'docx' | 'mindnote' | 'minutes' | 'slides';
|
|
583
|
+
/** 需要判断的权限 */
|
|
584
|
+
action: 'view' | 'edit' | 'share' | 'comment' | 'export' | 'copy' | 'print' | 'manage_public';
|
|
585
|
+
}
|
|
586
|
+
export interface ListDriveV1PermissionMemberQuery {
|
|
587
|
+
/** 文件类型,需要与文件的 token 相匹配 */
|
|
588
|
+
type: 'doc' | 'sheet' | 'file' | 'wiki' | 'bitable' | 'docx' | 'mindnote' | 'minutes' | 'slides';
|
|
589
|
+
/** 指定返回的协作者字段信息,如无指定则默认不返回**可选值有:** - `name`:协作者名- `type`:协作者类型- `avatar`:头像- `external_label`:外部标签**注意:** - 你可以使用特殊值`*`指定返回目前支持的所有字段- 你可以使用`,`分隔若干个你想指定返回的字段,如:`name,avatar`- 按需指定返回字段接口性能更好 */
|
|
590
|
+
fields?: string;
|
|
591
|
+
/** 协作者的权限角色类型 */
|
|
592
|
+
perm_type?: 'container' | 'single_page';
|
|
593
|
+
}
|
|
594
|
+
export interface CreateDriveV1PermissionMemberRequest {
|
|
595
|
+
/** 协作者ID类型 */
|
|
596
|
+
member_type: 'email' | 'openid' | 'unionid' | 'openchat' | 'opendepartmentid' | 'userid' | 'groupid' | 'wikispaceid';
|
|
597
|
+
/** 协作者ID,与协作者ID类型需要对应 */
|
|
598
|
+
member_id: string;
|
|
599
|
+
/** 协作者的权限角色 */
|
|
600
|
+
perm: 'view' | 'edit' | 'full_access';
|
|
601
|
+
/** 协作者的权限角色类型 */
|
|
602
|
+
perm_type?: 'container' | 'single_page';
|
|
603
|
+
/** 协作者类型 */
|
|
604
|
+
type?: 'user' | 'chat' | 'department' | 'group' | 'wiki_space_member' | 'wiki_space_viewer' | 'wiki_space_editor';
|
|
605
|
+
}
|
|
606
|
+
export interface CreateDriveV1PermissionMemberQuery {
|
|
607
|
+
/** 文件类型,需要与文件的 token 相匹配 */
|
|
608
|
+
type: 'doc' | 'sheet' | 'file' | 'wiki' | 'bitable' | 'docx' | 'folder' | 'mindnote' | 'minutes' | 'slides';
|
|
609
|
+
/** 添加权限后是否通知对方 */
|
|
610
|
+
need_notification?: boolean;
|
|
611
|
+
}
|
|
612
|
+
export interface UpdateDriveV1PermissionMemberRequest {
|
|
613
|
+
/** 协作者ID类型 */
|
|
614
|
+
member_type: 'email' | 'openid' | 'unionid' | 'openchat' | 'opendepartmentid' | 'userid' | 'groupid' | 'wikispaceid';
|
|
615
|
+
/** 协作者的权限角色 */
|
|
616
|
+
perm: 'view' | 'edit' | 'full_access';
|
|
617
|
+
/** 协作者的权限角色类型 */
|
|
618
|
+
perm_type?: 'container' | 'single_page';
|
|
619
|
+
/** 协作者类型 */
|
|
620
|
+
type?: 'user' | 'chat' | 'department' | 'group' | 'wiki_space_member' | 'wiki_space_viewer' | 'wiki_space_editor';
|
|
621
|
+
}
|
|
622
|
+
export interface UpdateDriveV1PermissionMemberQuery {
|
|
623
|
+
/** 更新权限后是否通知对方**注意:** 使用`tenant_access_token`访问不支持该参数 */
|
|
624
|
+
need_notification?: boolean;
|
|
625
|
+
/** 文件类型,放于query参数中,如:`?type=doc` */
|
|
626
|
+
type: 'doc' | 'sheet' | 'file' | 'wiki' | 'bitable' | 'docx' | 'mindnote' | 'minutes' | 'slides';
|
|
627
|
+
}
|
|
628
|
+
export interface DeleteDriveV1PermissionMemberRequest {
|
|
629
|
+
/** 协作者类型 */
|
|
630
|
+
type?: 'user' | 'chat' | 'department' | 'group' | 'wiki_space_member' | 'wiki_space_viewer' | 'wiki_space_editor';
|
|
631
|
+
/** 协作者的权限角色类型 */
|
|
632
|
+
perm_type?: 'container' | 'single_page';
|
|
633
|
+
}
|
|
634
|
+
export interface DeleteDriveV1PermissionMemberQuery {
|
|
635
|
+
/** 文件类型,放于query参数中,如:`?type=doc` */
|
|
636
|
+
type: 'doc' | 'sheet' | 'file' | 'wiki' | 'bitable' | 'docx' | 'folder' | 'mindnote' | 'minutes' | 'slides';
|
|
637
|
+
/** 权限成员类型,放于query参数中,如:`?member_type=openid` */
|
|
638
|
+
member_type: 'email' | 'openid' | 'openchat' | 'opendepartmentid' | 'userid' | 'unionid' | 'groupid' | 'wikispaceid';
|
|
639
|
+
}
|
|
640
|
+
export interface CreateDriveV1PermissionPublicPasswordQuery {
|
|
641
|
+
/** 文件类型,需要与文件的 token 相匹配 */
|
|
642
|
+
type: 'doc' | 'sheet' | 'file' | 'wiki' | 'bitable' | 'docx' | 'mindnote' | 'minutes' | 'slides';
|
|
643
|
+
}
|
|
644
|
+
export interface UpdateDriveV1PermissionPublicPasswordQuery {
|
|
645
|
+
/** 文件类型,需要与文件的 token 相匹配 */
|
|
646
|
+
type: 'doc' | 'sheet' | 'file' | 'wiki' | 'bitable' | 'docx' | 'mindnote' | 'minutes' | 'slides';
|
|
647
|
+
}
|
|
648
|
+
export interface DeleteDriveV1PermissionPublicPasswordQuery {
|
|
649
|
+
/** 文件类型,需要与文件的 token 相匹配 */
|
|
650
|
+
type: 'doc' | 'sheet' | 'file' | 'wiki' | 'bitable' | 'docx' | 'mindnote' | 'minutes' | 'slides';
|
|
651
|
+
}
|
|
652
|
+
export interface GetDriveV1PermissionPublicQuery {
|
|
653
|
+
/** 文件类型,放于query参数中,如:`?type=doc` */
|
|
654
|
+
type: 'doc' | 'sheet' | 'file' | 'wiki' | 'bitable' | 'docx' | 'mindnote' | 'minutes' | 'slides';
|
|
655
|
+
}
|
|
656
|
+
export interface PatchDriveV1PermissionPublicRequest {
|
|
657
|
+
/** 允许内容被分享到组织外 */
|
|
658
|
+
external_access?: boolean;
|
|
659
|
+
/** 谁可以复制内容、创建副本、打印、下载 */
|
|
660
|
+
security_entity?: 'anyone_can_view' | 'anyone_can_edit' | 'only_full_access';
|
|
661
|
+
/** 谁可以评论 */
|
|
662
|
+
comment_entity?: 'anyone_can_view' | 'anyone_can_edit';
|
|
663
|
+
/** 谁可以添加和管理协作者 */
|
|
664
|
+
share_entity?: 'anyone' | 'same_tenant' | 'only_full_access';
|
|
665
|
+
/** 链接分享设置 */
|
|
666
|
+
link_share_entity?: 'tenant_readable' | 'tenant_editable' | 'anyone_readable' | 'anyone_editable' | 'closed';
|
|
667
|
+
/** 允许非「可管理权限」的人分享到组织外 */
|
|
668
|
+
invite_external?: boolean;
|
|
669
|
+
}
|
|
670
|
+
export interface PatchDriveV1PermissionPublicQuery {
|
|
671
|
+
/** 文件类型,放于query参数中,如:`?type=doc` */
|
|
672
|
+
type: 'doc' | 'sheet' | 'file' | 'wiki' | 'bitable' | 'docx' | 'mindnote' | 'minutes' | 'slides';
|
|
673
|
+
}
|
|
674
|
+
export interface GetDriveV2PermissionPublicQuery {
|
|
675
|
+
/** 文件类型,需要与文件的 token 相匹配 */
|
|
676
|
+
type: 'doc' | 'sheet' | 'file' | 'wiki' | 'bitable' | 'docx' | 'mindnote' | 'minutes' | 'slides';
|
|
677
|
+
}
|
|
678
|
+
export interface PatchDriveV2PermissionPublicRequest {
|
|
679
|
+
/** 允许内容被分享到组织外 */
|
|
680
|
+
external_access_entity?: 'open' | 'closed' | 'allow_share_partner_tenant';
|
|
681
|
+
/** 谁可以创建副本、打印、下载 */
|
|
682
|
+
security_entity?: 'anyone_can_view' | 'anyone_can_edit' | 'only_full_access';
|
|
683
|
+
/** 谁可以评论 */
|
|
684
|
+
comment_entity?: 'anyone_can_view' | 'anyone_can_edit';
|
|
685
|
+
/** 谁可以添加和管理协作者-组织维度 */
|
|
686
|
+
share_entity?: 'anyone' | 'same_tenant';
|
|
687
|
+
/** 谁可以添加和管理协作者-协作者维度 */
|
|
688
|
+
manage_collaborator_entity?: 'collaborator_can_view' | 'collaborator_can_edit' | 'collaborator_full_access';
|
|
689
|
+
/** 链接分享设置 */
|
|
690
|
+
link_share_entity?: 'tenant_readable' | 'tenant_editable' | 'partner_tenant_readable' | 'partner_tenant_editable' | 'anyone_readable' | 'anyone_editable' | 'closed';
|
|
691
|
+
/** 谁可以复制内容 */
|
|
692
|
+
copy_entity?: 'anyone_can_view' | 'anyone_can_edit' | 'only_full_access';
|
|
693
|
+
}
|
|
694
|
+
export interface PatchDriveV2PermissionPublicQuery {
|
|
695
|
+
/** 文件类型,需要与文件的 token 相匹配 */
|
|
696
|
+
type: 'doc' | 'sheet' | 'file' | 'wiki' | 'bitable' | 'docx' | 'mindnote' | 'minutes' | 'slides';
|
|
697
|
+
}
|
|
698
|
+
export interface ListDriveV1FileCommentQuery extends Pagination {
|
|
699
|
+
/** 文档类型 */
|
|
700
|
+
file_type: 'doc' | 'sheet' | 'file' | 'docx';
|
|
701
|
+
/** 是否全文评论 */
|
|
702
|
+
is_whole?: boolean;
|
|
703
|
+
/** 是否已解决(可选) */
|
|
704
|
+
is_solved?: boolean;
|
|
705
|
+
/** 此次调用中使用的用户ID的类型 */
|
|
706
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id';
|
|
707
|
+
}
|
|
708
|
+
export interface BatchQueryDriveV1FileCommentRequest {
|
|
709
|
+
/** 需要获取数据的评论id */
|
|
710
|
+
comment_ids: string[];
|
|
711
|
+
}
|
|
712
|
+
export interface BatchQueryDriveV1FileCommentQuery {
|
|
713
|
+
/** 文档类型 */
|
|
714
|
+
file_type: 'doc' | 'sheet' | 'file' | 'docx';
|
|
715
|
+
/** 此次调用中使用的用户ID的类型 */
|
|
716
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id';
|
|
717
|
+
}
|
|
718
|
+
export interface PatchDriveV1FileCommentRequest {
|
|
719
|
+
/** 评论解决标志 */
|
|
720
|
+
is_solved: boolean;
|
|
721
|
+
}
|
|
722
|
+
export interface PatchDriveV1FileCommentQuery {
|
|
723
|
+
/** 文档类型 */
|
|
724
|
+
file_type: 'doc' | 'sheet' | 'file' | 'docx';
|
|
725
|
+
}
|
|
726
|
+
export interface CreateDriveV1FileCommentRequest {
|
|
727
|
+
/** 评论里的回复列表 */
|
|
728
|
+
reply_list?: ReplyList;
|
|
729
|
+
}
|
|
730
|
+
export interface CreateDriveV1FileCommentQuery {
|
|
731
|
+
/** 文档类型 */
|
|
732
|
+
file_type: 'doc' | 'docx';
|
|
733
|
+
/** 此次调用中使用的用户 ID 的类型 */
|
|
734
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id';
|
|
735
|
+
}
|
|
736
|
+
export interface GetDriveV1FileCommentQuery {
|
|
737
|
+
/** 文档类型 */
|
|
738
|
+
file_type: 'doc' | 'sheet' | 'file' | 'docx';
|
|
739
|
+
/** 此次调用中使用的用户 ID 的类型 */
|
|
740
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id';
|
|
741
|
+
}
|
|
742
|
+
export interface ListDriveV1FileCommentReplyQuery extends Pagination {
|
|
743
|
+
/** 文档类型 */
|
|
744
|
+
file_type: 'doc' | 'sheet' | 'file' | 'docx';
|
|
745
|
+
/** 此次调用中使用的用户ID的类型 */
|
|
746
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id';
|
|
747
|
+
}
|
|
748
|
+
export interface UpdateDriveV1FileCommentReplyRequest {
|
|
749
|
+
/** 回复内容 */
|
|
750
|
+
content: ReplyContent;
|
|
751
|
+
}
|
|
752
|
+
export interface UpdateDriveV1FileCommentReplyQuery {
|
|
753
|
+
/** 文档类型 */
|
|
754
|
+
file_type: 'doc' | 'sheet' | 'file' | 'docx';
|
|
755
|
+
/** 此次调用中使用的用户ID的类型 */
|
|
756
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id';
|
|
757
|
+
}
|
|
758
|
+
export interface DeleteDriveV1FileCommentReplyQuery {
|
|
759
|
+
/** 文档类型 */
|
|
760
|
+
file_type: 'doc' | 'sheet' | 'file' | 'docx';
|
|
761
|
+
}
|
|
762
|
+
export interface GetDriveV1FileSubscriptionRequest {
|
|
763
|
+
/** 文档类型 */
|
|
764
|
+
file_type: 'doc' | 'docx' | 'wiki';
|
|
765
|
+
}
|
|
766
|
+
export interface CreateDriveV1FileSubscriptionRequest {
|
|
767
|
+
/** 订阅关系ID */
|
|
768
|
+
subscription_id?: string;
|
|
769
|
+
/** 订阅类型 */
|
|
770
|
+
subscription_type: 'comment_update';
|
|
771
|
+
/** 是否订阅 */
|
|
772
|
+
is_subcribe?: boolean;
|
|
773
|
+
/** 文档类型 */
|
|
774
|
+
file_type: 'doc' | 'docx' | 'wiki';
|
|
775
|
+
}
|
|
776
|
+
export interface PatchDriveV1FileSubscriptionRequest {
|
|
777
|
+
/** 是否订阅 */
|
|
778
|
+
is_subscribe: boolean;
|
|
779
|
+
/** 文档类型 */
|
|
780
|
+
file_type: 'doc' | 'docx' | 'wiki';
|
|
781
|
+
}
|
|
782
|
+
export interface ListDriveV1FileResponse {
|
|
783
|
+
/** 文档详细信息 */
|
|
784
|
+
files?: File[];
|
|
785
|
+
/** 下一页分页参数 */
|
|
786
|
+
next_page_token?: string;
|
|
787
|
+
/** 是否有下一页 */
|
|
788
|
+
has_more?: boolean;
|
|
789
|
+
}
|
|
790
|
+
export interface CreateFolderDriveV1FileResponse {
|
|
791
|
+
/** 新创建的文件夹 Token */
|
|
792
|
+
token?: string;
|
|
793
|
+
/** 创建文件夹的访问 URL */
|
|
794
|
+
url?: string;
|
|
795
|
+
}
|
|
796
|
+
export interface TaskCheckDriveV1FileResponse {
|
|
797
|
+
/** 异步任务的执行状态 */
|
|
798
|
+
status?: string;
|
|
799
|
+
}
|
|
800
|
+
export interface BatchQueryDriveV1MetaResponse {
|
|
801
|
+
metas: Meta[];
|
|
802
|
+
failed_list?: MetaFailed[];
|
|
803
|
+
}
|
|
804
|
+
export interface GetDriveV1FileStatisticsResponse {
|
|
805
|
+
/** 文档token */
|
|
806
|
+
file_token?: string;
|
|
807
|
+
/** 文档类型 */
|
|
808
|
+
file_type?: string;
|
|
809
|
+
/** 文档统计信息 */
|
|
810
|
+
statistics?: FileStatistics;
|
|
811
|
+
}
|
|
812
|
+
export interface CopyDriveV1FileResponse {
|
|
813
|
+
/** 复制后的文件资源 */
|
|
814
|
+
file?: File;
|
|
815
|
+
}
|
|
816
|
+
export interface MoveDriveV1FileResponse {
|
|
817
|
+
/** 异步任务id,移动文件夹时返回 */
|
|
818
|
+
task_id?: string;
|
|
819
|
+
}
|
|
820
|
+
export interface DeleteDriveV1FileResponse {
|
|
821
|
+
/** 异步任务id,删除文件夹时返回 */
|
|
822
|
+
task_id?: string;
|
|
823
|
+
}
|
|
824
|
+
export interface CreateShortcutDriveV1FileResponse {
|
|
825
|
+
/** 返回创建成功的shortcut节点 */
|
|
826
|
+
succ_shortcut_node?: File;
|
|
827
|
+
}
|
|
828
|
+
export interface UploadAllDriveV1FileResponse {
|
|
829
|
+
file_token?: string;
|
|
830
|
+
}
|
|
831
|
+
export interface UploadPrepareDriveV1FileResponse {
|
|
832
|
+
/** 分片上传事务ID */
|
|
833
|
+
upload_id?: string;
|
|
834
|
+
/** 分片大小策略 */
|
|
835
|
+
block_size?: number;
|
|
836
|
+
/** 分片数量 */
|
|
837
|
+
block_num?: number;
|
|
838
|
+
}
|
|
839
|
+
export interface UploadFinishDriveV1FileResponse {
|
|
840
|
+
file_token?: string;
|
|
841
|
+
}
|
|
842
|
+
export interface CreateDriveV1ImportTaskResponse {
|
|
843
|
+
/** 导入任务ID */
|
|
844
|
+
ticket?: string;
|
|
845
|
+
}
|
|
846
|
+
export interface GetDriveV1ImportTaskResponse {
|
|
847
|
+
/** 导入任务 */
|
|
848
|
+
result?: ImportTask;
|
|
849
|
+
}
|
|
850
|
+
export interface CreateDriveV1ExportTaskResponse {
|
|
851
|
+
/** 导出任务ID */
|
|
852
|
+
ticket?: string;
|
|
853
|
+
}
|
|
854
|
+
export interface GetDriveV1ExportTaskResponse {
|
|
855
|
+
/** 导出结果 */
|
|
856
|
+
result?: ExportTask;
|
|
857
|
+
}
|
|
858
|
+
export interface UploadAllDriveV1MediaResponse {
|
|
859
|
+
file_token?: string;
|
|
860
|
+
}
|
|
861
|
+
export interface UploadPrepareDriveV1MediaResponse {
|
|
862
|
+
/** 分片上传事务ID */
|
|
863
|
+
upload_id?: string;
|
|
864
|
+
/** 分片大小策略 */
|
|
865
|
+
block_size?: number;
|
|
866
|
+
/** 分片数量 */
|
|
867
|
+
block_num?: number;
|
|
868
|
+
}
|
|
869
|
+
export interface UploadFinishDriveV1MediaResponse {
|
|
870
|
+
file_token?: string;
|
|
871
|
+
}
|
|
872
|
+
export interface BatchGetTmpDownloadUrlDriveV1MediaResponse {
|
|
873
|
+
/** 临时下载列表 */
|
|
874
|
+
tmp_download_urls?: TmpDownloadUrl[];
|
|
875
|
+
}
|
|
876
|
+
export interface CreateDriveV1FileVersionResponse {
|
|
877
|
+
/** 版本文档标题,最大长度 1024 个Unicode 码点。通常情况下,一个英文或中文字符对应一个码点,但是某些特殊符号可能会对应多个码点。例如,家庭组合「👨👩👧」这个表情符号对应5个码点。 */
|
|
878
|
+
name?: string;
|
|
879
|
+
/** 版本文档版本号 */
|
|
880
|
+
version?: string;
|
|
881
|
+
/** 源文档token */
|
|
882
|
+
parent_token?: string;
|
|
883
|
+
/** 版本文档所有者id */
|
|
884
|
+
owner_id?: string;
|
|
885
|
+
/** 版本文档创建者id */
|
|
886
|
+
creator_id?: string;
|
|
887
|
+
/** 版本文档创建时间 */
|
|
888
|
+
create_time?: string;
|
|
889
|
+
/** 版本文档更新时间 */
|
|
890
|
+
update_time?: string;
|
|
891
|
+
/** 版本文档状态 */
|
|
892
|
+
status?: '0' | '1' | '2';
|
|
893
|
+
/** 版本文档类型 */
|
|
894
|
+
obj_type?: 'docx' | 'sheet';
|
|
895
|
+
/** 源文档类型 */
|
|
896
|
+
parent_type?: 'docx' | 'sheet';
|
|
897
|
+
}
|
|
898
|
+
export interface GetDriveV1FileVersionResponse {
|
|
899
|
+
/** 版本文档标题,最大长度 1024 个Unicode 码点。通常情况下,一个英文或中文字符对应一个码点,但是某些特殊符号可能会对应多个码点。例如,家庭组合「👨👩👧」这个表情符号对应5个码点。 */
|
|
900
|
+
name?: string;
|
|
901
|
+
/** 版本文档版本号 */
|
|
902
|
+
version?: string;
|
|
903
|
+
/** 源文档token */
|
|
904
|
+
parent_token?: string;
|
|
905
|
+
/** 版本文档所有者id */
|
|
906
|
+
owner_id?: string;
|
|
907
|
+
/** 版本文档创建者id */
|
|
908
|
+
creator_id?: string;
|
|
909
|
+
/** 版本文档创建时间 */
|
|
910
|
+
create_time?: string;
|
|
911
|
+
/** 版本文档更新时间 */
|
|
912
|
+
update_time?: string;
|
|
913
|
+
/** 版本文档状态 */
|
|
914
|
+
status?: '0' | '1' | '2';
|
|
915
|
+
/** 版本文档类型 */
|
|
916
|
+
obj_type?: 'docx' | 'sheet';
|
|
917
|
+
/** 源文档类型 */
|
|
918
|
+
parent_type?: 'docx' | 'sheet';
|
|
919
|
+
}
|
|
920
|
+
export interface GetSubscribeDriveV1FileResponse {
|
|
921
|
+
/** 是否有订阅,取值 true 表示已订阅;false 表示未订阅 */
|
|
922
|
+
is_subscribe?: boolean;
|
|
923
|
+
}
|
|
924
|
+
export interface BatchCreateDriveV1PermissionMemberResponse {
|
|
925
|
+
/** 协作者列表 */
|
|
926
|
+
members?: BaseMember[];
|
|
927
|
+
}
|
|
928
|
+
export interface AuthDriveV1PermissionMemberResponse {
|
|
929
|
+
/** 是否有权限 */
|
|
930
|
+
auth_result: boolean;
|
|
931
|
+
}
|
|
932
|
+
export interface ListDriveV1PermissionMemberResponse {
|
|
933
|
+
/** 返回的列表数据 */
|
|
934
|
+
items?: Member[];
|
|
935
|
+
}
|
|
936
|
+
export interface CreateDriveV1PermissionMemberResponse {
|
|
937
|
+
/** 本次添加权限的用户信息 */
|
|
938
|
+
member?: BaseMember;
|
|
939
|
+
}
|
|
940
|
+
export interface UpdateDriveV1PermissionMemberResponse {
|
|
941
|
+
/** 本次更新权限的用户信息 */
|
|
942
|
+
member?: BaseMember;
|
|
943
|
+
}
|
|
944
|
+
export interface CreateDriveV1PermissionPublicPasswordResponse {
|
|
945
|
+
/** 密码 */
|
|
946
|
+
password?: string;
|
|
947
|
+
}
|
|
948
|
+
export interface UpdateDriveV1PermissionPublicPasswordResponse {
|
|
949
|
+
/** 密码 */
|
|
950
|
+
password?: string;
|
|
951
|
+
}
|
|
952
|
+
export interface GetDriveV1PermissionPublicResponse {
|
|
953
|
+
/** 返回的文档公共设置 */
|
|
954
|
+
permission_public?: PermissionPublic;
|
|
955
|
+
}
|
|
956
|
+
export interface PatchDriveV1PermissionPublicResponse {
|
|
957
|
+
/** 本次更新后的文档公共设置 */
|
|
958
|
+
permission_public?: PermissionPublic;
|
|
959
|
+
}
|
|
960
|
+
export interface GetDriveV2PermissionPublicResponse {
|
|
961
|
+
/** 返回的文档公共设置 */
|
|
962
|
+
permission_public?: PermissionPublic;
|
|
963
|
+
}
|
|
964
|
+
export interface PatchDriveV2PermissionPublicResponse {
|
|
965
|
+
/** 本次更新后文档公共设置 */
|
|
966
|
+
permission_public?: PermissionPublic;
|
|
967
|
+
}
|
|
968
|
+
export interface BatchQueryDriveV1FileCommentResponse {
|
|
969
|
+
/** 评论的相关信息、回复的信息、回复分页的信息 */
|
|
970
|
+
items?: FileComment[];
|
|
971
|
+
}
|
|
972
|
+
export interface CreateDriveV1FileCommentResponse {
|
|
973
|
+
/** 评论 ID */
|
|
974
|
+
comment_id?: string;
|
|
975
|
+
/** 用户 ID */
|
|
976
|
+
user_id?: string;
|
|
977
|
+
/** 创建时间 */
|
|
978
|
+
create_time?: number;
|
|
979
|
+
/** 更新时间 */
|
|
980
|
+
update_time?: number;
|
|
981
|
+
/** 是否已解决 */
|
|
982
|
+
is_solved?: boolean;
|
|
983
|
+
/** 解决评论时间 */
|
|
984
|
+
solved_time?: number;
|
|
985
|
+
/** 解决评论者的用户 ID */
|
|
986
|
+
solver_user_id?: string;
|
|
987
|
+
/** 是否有更多回复 */
|
|
988
|
+
has_more?: boolean;
|
|
989
|
+
/** 回复分页标记 */
|
|
990
|
+
page_token?: string;
|
|
991
|
+
/** 是否是全文评论 */
|
|
992
|
+
is_whole?: boolean;
|
|
993
|
+
/** 局部评论的引用字段 */
|
|
994
|
+
quote?: string;
|
|
995
|
+
/** 评论里的回复列表 */
|
|
996
|
+
reply_list?: ReplyList;
|
|
997
|
+
}
|
|
998
|
+
export interface GetDriveV1FileCommentResponse {
|
|
999
|
+
/** 评论 ID */
|
|
1000
|
+
comment_id?: string;
|
|
1001
|
+
/** 用户 ID */
|
|
1002
|
+
user_id?: string;
|
|
1003
|
+
/** 创建时间 */
|
|
1004
|
+
create_time?: number;
|
|
1005
|
+
/** 更新时间 */
|
|
1006
|
+
update_time?: number;
|
|
1007
|
+
/** 是否已解决 */
|
|
1008
|
+
is_solved?: boolean;
|
|
1009
|
+
/** 解决评论时间 */
|
|
1010
|
+
solved_time?: number;
|
|
1011
|
+
/** 解决评论者的用户 ID */
|
|
1012
|
+
solver_user_id?: string;
|
|
1013
|
+
/** 是否有更多回复 */
|
|
1014
|
+
has_more?: boolean;
|
|
1015
|
+
/** 回复分页标记 */
|
|
1016
|
+
page_token?: string;
|
|
1017
|
+
/** 是否是全文评论 */
|
|
1018
|
+
is_whole?: boolean;
|
|
1019
|
+
/** 局部评论的引用字段 */
|
|
1020
|
+
quote?: string;
|
|
1021
|
+
/** 评论里的回复列表 */
|
|
1022
|
+
reply_list?: ReplyList;
|
|
1023
|
+
}
|
|
1024
|
+
export interface GetDriveV1FileSubscriptionResponse {
|
|
1025
|
+
/** 订阅关系ID */
|
|
1026
|
+
subscription_id: string;
|
|
1027
|
+
/** 订阅类型 */
|
|
1028
|
+
subscription_type?: 'comment_update';
|
|
1029
|
+
/** 是否订阅 */
|
|
1030
|
+
is_subcribe?: boolean;
|
|
1031
|
+
/** 文档类型 */
|
|
1032
|
+
file_type?: 'doc' | 'docx' | 'wiki';
|
|
1033
|
+
}
|
|
1034
|
+
export interface CreateDriveV1FileSubscriptionResponse {
|
|
1035
|
+
/** 订阅关系ID */
|
|
1036
|
+
subscription_id?: string;
|
|
1037
|
+
/** 订阅类型 */
|
|
1038
|
+
subscription_type?: 'comment_update';
|
|
1039
|
+
/** 是否订阅 */
|
|
1040
|
+
is_subcribe?: boolean;
|
|
1041
|
+
/** 文档类型 */
|
|
1042
|
+
file_type?: 'doc' | 'docx' | 'wiki';
|
|
1043
|
+
}
|
|
1044
|
+
export interface PatchDriveV1FileSubscriptionResponse {
|
|
1045
|
+
/** 订阅关系ID */
|
|
1046
|
+
subscription_id?: string;
|
|
1047
|
+
/** 订阅类型 */
|
|
1048
|
+
subscription_type?: 'comment_update';
|
|
1049
|
+
/** 是否订阅 */
|
|
1050
|
+
is_subcribe?: boolean;
|
|
1051
|
+
/** 文档类型 */
|
|
1052
|
+
file_type?: 'doc' | 'docx' | 'wiki';
|
|
1053
|
+
}
|