@satorijs/adapter-dingtalk 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/alitrip.d.ts +396 -0
- package/lib/api/attendance.d.ts +62 -0
- package/lib/api/badge.d.ts +232 -0
- package/lib/api/blackboard.d.ts +16 -0
- package/lib/api/calendar.d.ts +620 -0
- package/lib/api/card.d.ts +184 -0
- package/lib/api/conference.d.ts +403 -0
- package/lib/api/connector.d.ts +78 -0
- package/lib/api/contact.d.ts +39 -0
- package/lib/api/convFile.d.ts +134 -0
- package/lib/api/crm.d.ts +661 -0
- package/lib/api/customerService.d.ts +127 -0
- package/lib/api/datacenter.d.ts +505 -0
- package/lib/api/devicemng.d.ts +160 -0
- package/lib/api/diot.d.ts +12 -0
- package/lib/api/doc.d.ts +140 -0
- package/lib/api/drive.d.ts +87 -0
- package/lib/api/edu.d.ts +22 -0
- package/lib/api/esign.d.ts +33 -0
- package/lib/api/exclusive.d.ts +303 -0
- package/lib/api/h3yun.d.ts +437 -0
- package/lib/api/hrm.d.ts +214 -0
- package/lib/api/im.d.ts +772 -0
- package/lib/api/industry.d.ts +117 -0
- package/lib/api/jzcrm.d.ts +254 -0
- package/lib/api/link.d.ts +72 -0
- package/lib/api/live.d.ts +131 -0
- package/lib/api/microApp.d.ts +239 -0
- package/lib/api/oapi.d.ts +3361 -0
- package/lib/api/oauth2.d.ts +114 -0
- package/lib/api/pedia.d.ts +185 -0
- package/lib/api/project.d.ts +1118 -0
- package/lib/api/resident.d.ts +106 -0
- package/lib/api/robot.d.ts +255 -0
- package/lib/api/rooms.d.ts +255 -0
- package/lib/api/serviceGroup.d.ts +175 -0
- package/lib/api/storage.d.ts +1240 -0
- package/lib/api/swform.d.ts +70 -0
- package/lib/api/todo.d.ts +168 -0
- package/lib/api/wiki.d.ts +194 -0
- package/lib/api/workbench.d.ts +45 -0
- package/lib/api/yida.d.ts +1837 -0
- package/lib/bot.d.ts +30 -0
- package/lib/http.d.ts +7 -0
- package/lib/index.d.ts +7 -0
- package/lib/index.js +1814 -0
- package/lib/index.js.map +7 -0
- package/lib/internal.d.ts +7 -0
- package/lib/message.d.ts +17 -0
- package/lib/types/index.d.ts +133 -0
- package/lib/utils.d.ts +4 -0
- package/lib/ws.d.ts +12 -0
- package/package.json +31 -0
|
@@ -0,0 +1,1240 @@
|
|
|
1
|
+
export interface SearchWorkspacesParams {
|
|
2
|
+
/** 搜索关键词。 */
|
|
3
|
+
keyword: string;
|
|
4
|
+
/** 可选参数。 */
|
|
5
|
+
option?: unknown;
|
|
6
|
+
}
|
|
7
|
+
export interface SearchWorkspacesQuery {
|
|
8
|
+
/** 操作人unionId。 */
|
|
9
|
+
operatorId: string;
|
|
10
|
+
}
|
|
11
|
+
export interface SearchWorkspacesResponse {
|
|
12
|
+
items?: {
|
|
13
|
+
workspaceId?: string;
|
|
14
|
+
name?: string;
|
|
15
|
+
url?: string;
|
|
16
|
+
}[];
|
|
17
|
+
nextToken?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface SetPermissionInheritanceParams {
|
|
20
|
+
/** 权限继承模式,枚举值: */
|
|
21
|
+
inheritance: string;
|
|
22
|
+
}
|
|
23
|
+
export interface SetPermissionInheritanceQuery {
|
|
24
|
+
/** 用户unionId。 */
|
|
25
|
+
unionId: string;
|
|
26
|
+
}
|
|
27
|
+
export interface SetPermissionInheritanceResponse {
|
|
28
|
+
success?: unknown;
|
|
29
|
+
}
|
|
30
|
+
export interface GetPermissionInheritanceQuery {
|
|
31
|
+
/** 用户unionId。 */
|
|
32
|
+
unionId: string;
|
|
33
|
+
}
|
|
34
|
+
export interface GetPermissionInheritanceResponse {
|
|
35
|
+
inheritance?: string;
|
|
36
|
+
}
|
|
37
|
+
export interface StorageUpdatePermissionParams {
|
|
38
|
+
/** 角色id,枚举值: */
|
|
39
|
+
roleId: string;
|
|
40
|
+
/** 权限成员。 */
|
|
41
|
+
members: object[];
|
|
42
|
+
/** 可选参数。 */
|
|
43
|
+
option?: unknown;
|
|
44
|
+
}
|
|
45
|
+
export interface StorageUpdatePermissionQuery {
|
|
46
|
+
/** 用户unionId。 */
|
|
47
|
+
unionId: string;
|
|
48
|
+
}
|
|
49
|
+
export interface StorageUpdatePermissionResponse {
|
|
50
|
+
success?: unknown;
|
|
51
|
+
}
|
|
52
|
+
export interface StorageDeletePermissionParams {
|
|
53
|
+
/** 角色id,枚举值: */
|
|
54
|
+
roleId: string;
|
|
55
|
+
/** 权限成员。 */
|
|
56
|
+
members: object[];
|
|
57
|
+
}
|
|
58
|
+
export interface StorageDeletePermissionQuery {
|
|
59
|
+
/** 用户unionId。 */
|
|
60
|
+
unionId: string;
|
|
61
|
+
}
|
|
62
|
+
export interface StorageDeletePermissionResponse {
|
|
63
|
+
success?: unknown;
|
|
64
|
+
}
|
|
65
|
+
export interface StorageAddPermissionParams {
|
|
66
|
+
/** 角色id,枚举值: */
|
|
67
|
+
roleId: string;
|
|
68
|
+
/** 权限成员。 */
|
|
69
|
+
members: object[];
|
|
70
|
+
/** 可选参数。 */
|
|
71
|
+
option?: unknown;
|
|
72
|
+
}
|
|
73
|
+
export interface StorageAddPermissionQuery {
|
|
74
|
+
/** 用户id */
|
|
75
|
+
unionId: string;
|
|
76
|
+
}
|
|
77
|
+
export interface StorageAddPermissionResponse {
|
|
78
|
+
success?: unknown;
|
|
79
|
+
}
|
|
80
|
+
export interface ListPermissionsOrgParams {
|
|
81
|
+
/** 可选参数。 */
|
|
82
|
+
option?: unknown;
|
|
83
|
+
}
|
|
84
|
+
export interface ListPermissionsOrgQuery {
|
|
85
|
+
/** 用户unionId。 */
|
|
86
|
+
unionId: string;
|
|
87
|
+
}
|
|
88
|
+
export interface ListPermissionsOrgResponse {
|
|
89
|
+
permissions?: {
|
|
90
|
+
dentryUuid?: string;
|
|
91
|
+
member?: number;
|
|
92
|
+
role?: number;
|
|
93
|
+
duration?: number;
|
|
94
|
+
}[];
|
|
95
|
+
nextToken?: string;
|
|
96
|
+
}
|
|
97
|
+
export interface SearchDentriesParams {
|
|
98
|
+
/** 搜索关键词。 */
|
|
99
|
+
keyword: string;
|
|
100
|
+
/** 可选参数。 */
|
|
101
|
+
option?: unknown;
|
|
102
|
+
}
|
|
103
|
+
export interface SearchDentriesQuery {
|
|
104
|
+
/** 操作人unionId。 */
|
|
105
|
+
operatorId: string;
|
|
106
|
+
}
|
|
107
|
+
export interface SearchDentriesResponse {
|
|
108
|
+
items?: {
|
|
109
|
+
dentryUuid?: string;
|
|
110
|
+
name?: string;
|
|
111
|
+
creator?: number;
|
|
112
|
+
modifier?: number;
|
|
113
|
+
}[];
|
|
114
|
+
nextToken?: string;
|
|
115
|
+
}
|
|
116
|
+
export interface StorageCommitFileParams {
|
|
117
|
+
/** 添加文件唯一标识,可通过DentryService.getUploadInfo来生成。 */
|
|
118
|
+
uploadKey: string;
|
|
119
|
+
/** 名称(文件名+后缀), 规则: */
|
|
120
|
+
name: string;
|
|
121
|
+
/** 可选参数 */
|
|
122
|
+
option?: unknown;
|
|
123
|
+
}
|
|
124
|
+
export interface StorageCommitFileQuery {
|
|
125
|
+
/** 用户unionId。 */
|
|
126
|
+
unionId: string;
|
|
127
|
+
}
|
|
128
|
+
export interface StorageCommitFileResponse {
|
|
129
|
+
dentry?: {
|
|
130
|
+
id?: string;
|
|
131
|
+
spaceId?: string;
|
|
132
|
+
parentId?: string;
|
|
133
|
+
type?: string;
|
|
134
|
+
name?: string;
|
|
135
|
+
size?: number;
|
|
136
|
+
path?: string;
|
|
137
|
+
version?: number;
|
|
138
|
+
status?: string;
|
|
139
|
+
extension?: string;
|
|
140
|
+
creatorId?: string;
|
|
141
|
+
modifierId?: string;
|
|
142
|
+
createTime?: string;
|
|
143
|
+
modifiedTime?: string;
|
|
144
|
+
properties?: number;
|
|
145
|
+
appProperties?: number;
|
|
146
|
+
uuid?: string;
|
|
147
|
+
partitionType?: string;
|
|
148
|
+
storageDriver?: string;
|
|
149
|
+
thumbnail?: number;
|
|
150
|
+
category?: string;
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
export interface StorageGetFileUploadInfoParams {
|
|
154
|
+
/** 通过指定上传协议返回不同协议上传所需要的信息 */
|
|
155
|
+
protocol: string;
|
|
156
|
+
/** 可选参数 */
|
|
157
|
+
option?: unknown;
|
|
158
|
+
}
|
|
159
|
+
export interface StorageGetFileUploadInfoQuery {
|
|
160
|
+
/** 用户id */
|
|
161
|
+
unionId: string;
|
|
162
|
+
}
|
|
163
|
+
export interface StorageGetFileUploadInfoResponse {
|
|
164
|
+
uploadKey?: string;
|
|
165
|
+
storageDriver?: string;
|
|
166
|
+
protocol?: string;
|
|
167
|
+
headerSignatureInfo?: {
|
|
168
|
+
resourceUrls?: number;
|
|
169
|
+
headers?: number;
|
|
170
|
+
expirationSeconds?: number;
|
|
171
|
+
region?: string;
|
|
172
|
+
internalResourceUrls?: number;
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
export interface UnsubscribeEventParams {
|
|
176
|
+
/** 订阅范围对应的id */
|
|
177
|
+
scopeId: string;
|
|
178
|
+
/** 订阅范围 */
|
|
179
|
+
scope: string;
|
|
180
|
+
}
|
|
181
|
+
export interface UnsubscribeEventQuery {
|
|
182
|
+
/** 用户id */
|
|
183
|
+
unionId: string;
|
|
184
|
+
}
|
|
185
|
+
export interface UnsubscribeEventResponse {
|
|
186
|
+
success?: unknown;
|
|
187
|
+
}
|
|
188
|
+
export interface ListAllDentriesParams {
|
|
189
|
+
/** 可选参数。 */
|
|
190
|
+
option?: unknown;
|
|
191
|
+
}
|
|
192
|
+
export interface ListAllDentriesQuery {
|
|
193
|
+
/** 操作人的unionId。 */
|
|
194
|
+
unionId: string;
|
|
195
|
+
}
|
|
196
|
+
export interface ListAllDentriesResponse {
|
|
197
|
+
dentries?: {
|
|
198
|
+
id?: string;
|
|
199
|
+
spaceId?: string;
|
|
200
|
+
parentId?: string;
|
|
201
|
+
type?: string;
|
|
202
|
+
name?: string;
|
|
203
|
+
size?: number;
|
|
204
|
+
path?: string;
|
|
205
|
+
version?: number;
|
|
206
|
+
status?: string;
|
|
207
|
+
extension?: string;
|
|
208
|
+
creatorId?: string;
|
|
209
|
+
modifierId?: string;
|
|
210
|
+
createTime?: string;
|
|
211
|
+
modifiedTime?: string;
|
|
212
|
+
properties?: number;
|
|
213
|
+
appProperties?: number;
|
|
214
|
+
uuid?: string;
|
|
215
|
+
partitionType?: string;
|
|
216
|
+
storageDriver?: string;
|
|
217
|
+
thumbnail?: number;
|
|
218
|
+
}[];
|
|
219
|
+
nextToken?: string;
|
|
220
|
+
}
|
|
221
|
+
export interface GetDentriesParams {
|
|
222
|
+
/** 文件或文件夹的ID列表,最大值30。 */
|
|
223
|
+
dentryIds: string[];
|
|
224
|
+
/** 可选参数。 */
|
|
225
|
+
option?: unknown;
|
|
226
|
+
}
|
|
227
|
+
export interface GetDentriesQuery {
|
|
228
|
+
/** 操作人的unionId。 */
|
|
229
|
+
unionId: string;
|
|
230
|
+
}
|
|
231
|
+
export interface GetDentriesResponse {
|
|
232
|
+
resultItems?: {
|
|
233
|
+
spaceId?: string;
|
|
234
|
+
dentryId?: string;
|
|
235
|
+
success?: number;
|
|
236
|
+
errorCode?: string;
|
|
237
|
+
dentry?: number;
|
|
238
|
+
}[];
|
|
239
|
+
}
|
|
240
|
+
export interface GetDentryThumbnailsParams {
|
|
241
|
+
/** 文件ID,最大值30。 */
|
|
242
|
+
dentryIds: string[];
|
|
243
|
+
}
|
|
244
|
+
export interface GetDentryThumbnailsQuery {
|
|
245
|
+
/** 操作人的unionId。 */
|
|
246
|
+
unionId: string;
|
|
247
|
+
}
|
|
248
|
+
export interface GetDentryThumbnailsResponse {
|
|
249
|
+
resultItems?: {
|
|
250
|
+
spaceId?: string;
|
|
251
|
+
dentryId?: string;
|
|
252
|
+
success?: number;
|
|
253
|
+
errorCode?: string;
|
|
254
|
+
thumbnail?: number;
|
|
255
|
+
}[];
|
|
256
|
+
}
|
|
257
|
+
export interface MoveDentriesParams {
|
|
258
|
+
/** 目标空间ID。 */
|
|
259
|
+
targetSpaceId: string;
|
|
260
|
+
/** 目标文件夹id, 根目录id值为0。 */
|
|
261
|
+
targetFolderId: string;
|
|
262
|
+
/** 源文件或文件夹的ID列表,最大值30。 */
|
|
263
|
+
dentryIds: string[];
|
|
264
|
+
/** 可选参数。 */
|
|
265
|
+
option?: unknown;
|
|
266
|
+
}
|
|
267
|
+
export interface MoveDentriesQuery {
|
|
268
|
+
/** 操作人的unionId。 */
|
|
269
|
+
unionId: string;
|
|
270
|
+
}
|
|
271
|
+
export interface MoveDentriesResponse {
|
|
272
|
+
resultItems?: {
|
|
273
|
+
spaceId?: string;
|
|
274
|
+
dentryId?: string;
|
|
275
|
+
async?: number;
|
|
276
|
+
success?: number;
|
|
277
|
+
errorCode?: string;
|
|
278
|
+
taskId?: string;
|
|
279
|
+
targetSpaceId?: string;
|
|
280
|
+
targetDentryId?: string;
|
|
281
|
+
}[];
|
|
282
|
+
}
|
|
283
|
+
export interface CopyDentriesParams {
|
|
284
|
+
/** 目标文件或文件夹所在的空间ID。 */
|
|
285
|
+
targetSpaceId: string;
|
|
286
|
+
/** 目标文件夹ID, 根目录ID值为0。 */
|
|
287
|
+
targetFolderId: string;
|
|
288
|
+
/** 源文件或文件夹的ID列表,最大值30。 */
|
|
289
|
+
dentryIds: string[];
|
|
290
|
+
/** 可选参数。 */
|
|
291
|
+
option?: unknown;
|
|
292
|
+
}
|
|
293
|
+
export interface CopyDentriesQuery {
|
|
294
|
+
/** 操作人的unionId。 */
|
|
295
|
+
unionId: string;
|
|
296
|
+
}
|
|
297
|
+
export interface CopyDentriesResponse {
|
|
298
|
+
resultItems?: {
|
|
299
|
+
spaceId?: string;
|
|
300
|
+
dentryId?: string;
|
|
301
|
+
async?: number;
|
|
302
|
+
success?: number;
|
|
303
|
+
errorCode?: string;
|
|
304
|
+
taskId?: string;
|
|
305
|
+
targetSpaceId?: string;
|
|
306
|
+
targetDentryId?: string;
|
|
307
|
+
}[];
|
|
308
|
+
}
|
|
309
|
+
export interface DeleteDentriesParams {
|
|
310
|
+
/** 文件或文件夹ID列表,最大值50。 */
|
|
311
|
+
dentryIds: string[];
|
|
312
|
+
/** 可选参数。 */
|
|
313
|
+
option?: unknown;
|
|
314
|
+
}
|
|
315
|
+
export interface DeleteDentriesQuery {
|
|
316
|
+
/** 操作人的unionId。 */
|
|
317
|
+
unionId: string;
|
|
318
|
+
}
|
|
319
|
+
export interface DeleteDentriesResponse {
|
|
320
|
+
resultItems?: {
|
|
321
|
+
spaceId?: string;
|
|
322
|
+
dentryId?: string;
|
|
323
|
+
async?: number;
|
|
324
|
+
success?: number;
|
|
325
|
+
errorCode?: string;
|
|
326
|
+
taskId?: string;
|
|
327
|
+
}[];
|
|
328
|
+
}
|
|
329
|
+
export interface GetTaskQuery {
|
|
330
|
+
/** 操作人的unionId。 */
|
|
331
|
+
unionId: string;
|
|
332
|
+
}
|
|
333
|
+
export interface GetTaskResponse {
|
|
334
|
+
task?: {
|
|
335
|
+
id?: string;
|
|
336
|
+
status?: string;
|
|
337
|
+
totalCount?: number;
|
|
338
|
+
successCount?: number;
|
|
339
|
+
failCount?: number;
|
|
340
|
+
failMessage?: string;
|
|
341
|
+
beginTime?: string;
|
|
342
|
+
endTime?: string;
|
|
343
|
+
};
|
|
344
|
+
}
|
|
345
|
+
export interface InitMultipartFileUploadParams {
|
|
346
|
+
/** 可选参数。 */
|
|
347
|
+
option?: unknown;
|
|
348
|
+
}
|
|
349
|
+
export interface InitMultipartFileUploadQuery {
|
|
350
|
+
/** 操作者unionId。 */
|
|
351
|
+
unionId: string;
|
|
352
|
+
}
|
|
353
|
+
export interface InitMultipartFileUploadResponse {
|
|
354
|
+
uploadKey?: string;
|
|
355
|
+
storageDriver?: string;
|
|
356
|
+
}
|
|
357
|
+
export interface GetMultipartFileUploadInfosParams {
|
|
358
|
+
/** 上传唯一标识。 */
|
|
359
|
+
uploadKey: string;
|
|
360
|
+
/** 每片文件的Id,文件的分片数量最大值10000,每片文件大小限制范围是100KB~5GB,最多传30。 */
|
|
361
|
+
partNumbers: number[];
|
|
362
|
+
/** 可选参数。 */
|
|
363
|
+
option?: unknown;
|
|
364
|
+
}
|
|
365
|
+
export interface GetMultipartFileUploadInfosQuery {
|
|
366
|
+
/** 操作者unionId。 */
|
|
367
|
+
unionId: string;
|
|
368
|
+
}
|
|
369
|
+
export interface GetMultipartFileUploadInfosResponse {
|
|
370
|
+
multipartHeaderSignatureInfos?: {
|
|
371
|
+
partNumber?: number;
|
|
372
|
+
headerSignatureInfo?: number;
|
|
373
|
+
}[];
|
|
374
|
+
}
|
|
375
|
+
export interface GetOrgQuery {
|
|
376
|
+
/** 用户unionId。 */
|
|
377
|
+
unionId: string;
|
|
378
|
+
}
|
|
379
|
+
export interface GetOrgResponse {
|
|
380
|
+
org?: {
|
|
381
|
+
corpId?: string;
|
|
382
|
+
partitions?: number;
|
|
383
|
+
};
|
|
384
|
+
}
|
|
385
|
+
export interface RestoreRecycleItemParams {
|
|
386
|
+
/** 可选参数。 */
|
|
387
|
+
option?: unknown;
|
|
388
|
+
}
|
|
389
|
+
export interface RestoreRecycleItemQuery {
|
|
390
|
+
/** 操作者unionId。 */
|
|
391
|
+
unionId: string;
|
|
392
|
+
}
|
|
393
|
+
export interface RestoreRecycleItemResponse {
|
|
394
|
+
async?: unknown;
|
|
395
|
+
taskId?: string;
|
|
396
|
+
spaceId?: string;
|
|
397
|
+
dentryId?: string;
|
|
398
|
+
}
|
|
399
|
+
export interface GetRecycleBinQuery {
|
|
400
|
+
/** 回收站范围类型。 */
|
|
401
|
+
recycleBinScope: string;
|
|
402
|
+
/** 回收站范围Id。 */
|
|
403
|
+
scopeId: string;
|
|
404
|
+
/** 操作者unionId。 */
|
|
405
|
+
unionId: string;
|
|
406
|
+
}
|
|
407
|
+
export interface GetRecycleBinResponse {
|
|
408
|
+
recycleBin?: {
|
|
409
|
+
id?: string;
|
|
410
|
+
scope?: string;
|
|
411
|
+
scopeId?: string;
|
|
412
|
+
};
|
|
413
|
+
}
|
|
414
|
+
export interface GetRecycleItemQuery {
|
|
415
|
+
/** 操作者unionId。 */
|
|
416
|
+
unionId: string;
|
|
417
|
+
}
|
|
418
|
+
export interface GetRecycleItemResponse {
|
|
419
|
+
item?: {
|
|
420
|
+
id?: string;
|
|
421
|
+
spaceId?: string;
|
|
422
|
+
dentryId?: string;
|
|
423
|
+
size?: number;
|
|
424
|
+
type?: string;
|
|
425
|
+
originalName?: string;
|
|
426
|
+
originalPath?: string;
|
|
427
|
+
operatorId?: string;
|
|
428
|
+
operatorTime?: string;
|
|
429
|
+
};
|
|
430
|
+
}
|
|
431
|
+
export interface DeleteRecycleItemQuery {
|
|
432
|
+
/** 操作者unionId。 */
|
|
433
|
+
unionId: string;
|
|
434
|
+
}
|
|
435
|
+
export interface DeleteRecycleItemResponse {
|
|
436
|
+
success?: unknown;
|
|
437
|
+
}
|
|
438
|
+
export interface ClearRecycleBinQuery {
|
|
439
|
+
/** 操作者unionId。 */
|
|
440
|
+
unionId: string;
|
|
441
|
+
}
|
|
442
|
+
export interface ClearRecycleBinResponse {
|
|
443
|
+
success?: unknown;
|
|
444
|
+
}
|
|
445
|
+
export interface DeleteRecycleItemsParams {
|
|
446
|
+
/** 回收项Id列表,最大值50。 */
|
|
447
|
+
recycleItemIds: string[];
|
|
448
|
+
}
|
|
449
|
+
export interface DeleteRecycleItemsQuery {
|
|
450
|
+
/** 操作者unionId。 */
|
|
451
|
+
unionId: string;
|
|
452
|
+
}
|
|
453
|
+
export interface DeleteRecycleItemsResponse {
|
|
454
|
+
success?: unknown;
|
|
455
|
+
}
|
|
456
|
+
export interface RestoreRecycleItemsParams {
|
|
457
|
+
/** 回收项ID列表,最大值30。 */
|
|
458
|
+
recycleItemIds: string[];
|
|
459
|
+
/** 可选参数。 */
|
|
460
|
+
option?: unknown;
|
|
461
|
+
}
|
|
462
|
+
export interface RestoreRecycleItemsQuery {
|
|
463
|
+
/** 操作人的unionId。 */
|
|
464
|
+
unionId: string;
|
|
465
|
+
}
|
|
466
|
+
export interface RestoreRecycleItemsResponse {
|
|
467
|
+
resultItems?: {
|
|
468
|
+
recycleBinId?: string;
|
|
469
|
+
recycleItemId?: string;
|
|
470
|
+
async?: number;
|
|
471
|
+
success?: number;
|
|
472
|
+
errorCode?: string;
|
|
473
|
+
taskId?: string;
|
|
474
|
+
spaceId?: string;
|
|
475
|
+
dentryId?: string;
|
|
476
|
+
}[];
|
|
477
|
+
}
|
|
478
|
+
export interface ListDentryVersionsQuery {
|
|
479
|
+
/** 分页游标。 */
|
|
480
|
+
nextToken?: string;
|
|
481
|
+
/** 每页条目数,默认100,最大100。 */
|
|
482
|
+
maxResults?: number;
|
|
483
|
+
/** 操作者unionId。 */
|
|
484
|
+
unionId: string;
|
|
485
|
+
}
|
|
486
|
+
export interface ListDentryVersionsResponse {
|
|
487
|
+
dentries?: {
|
|
488
|
+
id?: string;
|
|
489
|
+
spaceId?: string;
|
|
490
|
+
parentId?: string;
|
|
491
|
+
type?: string;
|
|
492
|
+
name?: string;
|
|
493
|
+
size?: number;
|
|
494
|
+
path?: string;
|
|
495
|
+
version?: number;
|
|
496
|
+
status?: string;
|
|
497
|
+
extension?: string;
|
|
498
|
+
creatorId?: string;
|
|
499
|
+
modifierId?: string;
|
|
500
|
+
createTime?: string;
|
|
501
|
+
modifiedTime?: string;
|
|
502
|
+
properties?: number;
|
|
503
|
+
appProperties?: number;
|
|
504
|
+
uuid?: string;
|
|
505
|
+
partitionType?: string;
|
|
506
|
+
storageDriver?: string;
|
|
507
|
+
}[];
|
|
508
|
+
nextToken?: string;
|
|
509
|
+
}
|
|
510
|
+
export interface GetDentryOpenInfoParams {
|
|
511
|
+
/** 可选参数。 */
|
|
512
|
+
option?: unknown;
|
|
513
|
+
}
|
|
514
|
+
export interface GetDentryOpenInfoQuery {
|
|
515
|
+
/** 操作用户unionId。 */
|
|
516
|
+
unionId: string;
|
|
517
|
+
}
|
|
518
|
+
export interface GetDentryOpenInfoResponse {
|
|
519
|
+
url?: string;
|
|
520
|
+
hasWaterMark?: unknown;
|
|
521
|
+
}
|
|
522
|
+
export interface MoveDentryParams {
|
|
523
|
+
/** 需要存放的目标空间Id。 */
|
|
524
|
+
targetSpaceId: string;
|
|
525
|
+
/** 需要存放的位置父目录Id。根目录时,该参数是0。 */
|
|
526
|
+
targetFolderId: string;
|
|
527
|
+
/** 可选参数。 */
|
|
528
|
+
option?: unknown;
|
|
529
|
+
}
|
|
530
|
+
export interface MoveDentryQuery {
|
|
531
|
+
/** 操作者unionId。 */
|
|
532
|
+
unionId: string;
|
|
533
|
+
}
|
|
534
|
+
export interface MoveDentryResponse {
|
|
535
|
+
dentry?: {
|
|
536
|
+
id?: string;
|
|
537
|
+
spaceId?: string;
|
|
538
|
+
parentId?: string;
|
|
539
|
+
type?: string;
|
|
540
|
+
name?: string;
|
|
541
|
+
size?: number;
|
|
542
|
+
path?: string;
|
|
543
|
+
version?: number;
|
|
544
|
+
status?: string;
|
|
545
|
+
extension?: string;
|
|
546
|
+
creatorId?: string;
|
|
547
|
+
modifierId?: string;
|
|
548
|
+
createTime?: string;
|
|
549
|
+
modifiedTime?: string;
|
|
550
|
+
properties?: number;
|
|
551
|
+
appProperties?: number;
|
|
552
|
+
uuid?: string;
|
|
553
|
+
partitionType?: string;
|
|
554
|
+
storageDriver?: string;
|
|
555
|
+
};
|
|
556
|
+
async?: unknown;
|
|
557
|
+
taskId?: string;
|
|
558
|
+
}
|
|
559
|
+
export interface ListPermissionsIsvParams {
|
|
560
|
+
/** 可选参数。 */
|
|
561
|
+
option?: unknown;
|
|
562
|
+
}
|
|
563
|
+
export interface ListPermissionsIsvQuery {
|
|
564
|
+
/** 操作者的unionId。 */
|
|
565
|
+
unionId: string;
|
|
566
|
+
}
|
|
567
|
+
export interface ListPermissionsIsvResponse {
|
|
568
|
+
permissions?: {
|
|
569
|
+
spaceId?: string;
|
|
570
|
+
dentryId?: string;
|
|
571
|
+
member?: number;
|
|
572
|
+
role?: number;
|
|
573
|
+
duration?: number;
|
|
574
|
+
createTime?: string;
|
|
575
|
+
modifiedTime?: string;
|
|
576
|
+
operatorId?: string;
|
|
577
|
+
}[];
|
|
578
|
+
nextToken?: string;
|
|
579
|
+
}
|
|
580
|
+
export interface GetFileDownloadInfoParams {
|
|
581
|
+
/** 可选参数。 */
|
|
582
|
+
option?: unknown;
|
|
583
|
+
}
|
|
584
|
+
export interface GetFileDownloadInfoQuery {
|
|
585
|
+
/** 操作者unionId。 */
|
|
586
|
+
unionId: string;
|
|
587
|
+
}
|
|
588
|
+
export interface GetFileDownloadInfoResponse {
|
|
589
|
+
protocol?: string;
|
|
590
|
+
headerSignatureInfo?: {
|
|
591
|
+
resourceUrls?: number;
|
|
592
|
+
headers?: number;
|
|
593
|
+
expirationSeconds?: number;
|
|
594
|
+
region?: string;
|
|
595
|
+
internalResourceUrls?: number;
|
|
596
|
+
};
|
|
597
|
+
}
|
|
598
|
+
export interface ListRecycleItemsQuery {
|
|
599
|
+
/** 分页游标。 */
|
|
600
|
+
nextToken?: string;
|
|
601
|
+
/** 每页最大条目数,默认值50,最大值50。 */
|
|
602
|
+
maxResults?: number;
|
|
603
|
+
/** 操作者unionId。 */
|
|
604
|
+
unionId: string;
|
|
605
|
+
}
|
|
606
|
+
export interface ListRecycleItemsResponse {
|
|
607
|
+
recycleItems?: {
|
|
608
|
+
id?: string;
|
|
609
|
+
spaceId?: string;
|
|
610
|
+
dentryId?: string;
|
|
611
|
+
size?: number;
|
|
612
|
+
type?: string;
|
|
613
|
+
originalName?: string;
|
|
614
|
+
originalPath?: string;
|
|
615
|
+
operatorId?: string;
|
|
616
|
+
operatorTime?: string;
|
|
617
|
+
}[];
|
|
618
|
+
nextToken?: string;
|
|
619
|
+
}
|
|
620
|
+
export interface DeleteDentryQuery {
|
|
621
|
+
/** 删除后,是否备份到回收站。 */
|
|
622
|
+
toRecycleBin?: unknown;
|
|
623
|
+
/** 操作者unionId。 */
|
|
624
|
+
unionId: string;
|
|
625
|
+
}
|
|
626
|
+
export interface DeleteDentryResponse {
|
|
627
|
+
async?: unknown;
|
|
628
|
+
taskId?: string;
|
|
629
|
+
}
|
|
630
|
+
export interface RenameDentryParams {
|
|
631
|
+
/** 文件或文件夹的新名称,命名规则如下: */
|
|
632
|
+
newName: string;
|
|
633
|
+
}
|
|
634
|
+
export interface RenameDentryQuery {
|
|
635
|
+
/** 操作者unionId。 */
|
|
636
|
+
unionId: string;
|
|
637
|
+
}
|
|
638
|
+
export interface RenameDentryResponse {
|
|
639
|
+
dentry?: {
|
|
640
|
+
id?: string;
|
|
641
|
+
spaceId?: string;
|
|
642
|
+
parentId?: string;
|
|
643
|
+
type?: string;
|
|
644
|
+
name?: string;
|
|
645
|
+
size?: number;
|
|
646
|
+
path?: string;
|
|
647
|
+
version?: number;
|
|
648
|
+
status?: string;
|
|
649
|
+
extension?: string;
|
|
650
|
+
creatorId?: string;
|
|
651
|
+
modifierId?: string;
|
|
652
|
+
createTime?: string;
|
|
653
|
+
modifiedTime?: string;
|
|
654
|
+
properties?: number;
|
|
655
|
+
appProperties?: number;
|
|
656
|
+
uuid?: string;
|
|
657
|
+
partitionType?: string;
|
|
658
|
+
storageDriver?: string;
|
|
659
|
+
};
|
|
660
|
+
}
|
|
661
|
+
export interface ListDentriesQuery {
|
|
662
|
+
/** 父目录Id。根目录时,该参数是0。 */
|
|
663
|
+
parentId: string;
|
|
664
|
+
/** 分页游标。 */
|
|
665
|
+
nextToken?: string;
|
|
666
|
+
/** 每页条目数,最大值50。 */
|
|
667
|
+
maxResults?: number;
|
|
668
|
+
/** 排序字段。 */
|
|
669
|
+
orderBy?: string;
|
|
670
|
+
/** 排序规则。 */
|
|
671
|
+
order?: string;
|
|
672
|
+
/** 是否获取文件缩略图临时链接。按需获取,会影响接口耗时。 */
|
|
673
|
+
withThumbnail?: unknown;
|
|
674
|
+
/** 操作者的unionId。 */
|
|
675
|
+
unionId: string;
|
|
676
|
+
}
|
|
677
|
+
export interface ListDentriesResponse {
|
|
678
|
+
dentries?: {
|
|
679
|
+
id?: string;
|
|
680
|
+
spaceId?: string;
|
|
681
|
+
parentId?: string;
|
|
682
|
+
type?: string;
|
|
683
|
+
name?: string;
|
|
684
|
+
size?: number;
|
|
685
|
+
path?: string;
|
|
686
|
+
version?: number;
|
|
687
|
+
status?: string;
|
|
688
|
+
extension?: string;
|
|
689
|
+
creatorId?: string;
|
|
690
|
+
modifierId?: string;
|
|
691
|
+
createTime?: string;
|
|
692
|
+
modifiedTime?: string;
|
|
693
|
+
properties?: number;
|
|
694
|
+
appProperties?: number;
|
|
695
|
+
uuid?: string;
|
|
696
|
+
partitionType?: string;
|
|
697
|
+
storageDriver?: string;
|
|
698
|
+
thumbnail?: number;
|
|
699
|
+
}[];
|
|
700
|
+
nextToken?: string;
|
|
701
|
+
}
|
|
702
|
+
export interface RevertDentryVersionQuery {
|
|
703
|
+
/** 操作者unionId。 */
|
|
704
|
+
unionId: string;
|
|
705
|
+
}
|
|
706
|
+
export interface RevertDentryVersionResponse {
|
|
707
|
+
success?: unknown;
|
|
708
|
+
}
|
|
709
|
+
export interface CopyDentryParams {
|
|
710
|
+
/** 需要存放的目标空间Id。 */
|
|
711
|
+
targetSpaceId: string;
|
|
712
|
+
/** 需要存放的位置父目录Id。 */
|
|
713
|
+
targetFolderId: string;
|
|
714
|
+
/** 可选参数。 */
|
|
715
|
+
option?: unknown;
|
|
716
|
+
}
|
|
717
|
+
export interface CopyDentryQuery {
|
|
718
|
+
/** 操作者unionId。 */
|
|
719
|
+
unionId: string;
|
|
720
|
+
}
|
|
721
|
+
export interface CopyDentryResponse {
|
|
722
|
+
dentry?: {
|
|
723
|
+
id?: string;
|
|
724
|
+
spaceId?: string;
|
|
725
|
+
parentId?: string;
|
|
726
|
+
type?: string;
|
|
727
|
+
name?: string;
|
|
728
|
+
size?: number;
|
|
729
|
+
path?: string;
|
|
730
|
+
version?: number;
|
|
731
|
+
status?: string;
|
|
732
|
+
extension?: string;
|
|
733
|
+
creatorId?: string;
|
|
734
|
+
modifierId?: string;
|
|
735
|
+
createTime?: string;
|
|
736
|
+
modifiedTime?: string;
|
|
737
|
+
properties?: number;
|
|
738
|
+
appProperties?: number;
|
|
739
|
+
uuid?: string;
|
|
740
|
+
partitionType?: string;
|
|
741
|
+
storageDriver?: string;
|
|
742
|
+
};
|
|
743
|
+
async?: unknown;
|
|
744
|
+
taskId?: string;
|
|
745
|
+
}
|
|
746
|
+
export interface GetCurrentAppQuery {
|
|
747
|
+
/** 操作者unionId。 */
|
|
748
|
+
unionId: string;
|
|
749
|
+
}
|
|
750
|
+
export interface GetCurrentAppResponse {
|
|
751
|
+
app?: {
|
|
752
|
+
corpId?: string;
|
|
753
|
+
appId?: string;
|
|
754
|
+
name?: string;
|
|
755
|
+
createTime?: string;
|
|
756
|
+
modifiedTime?: string;
|
|
757
|
+
partitions?: number;
|
|
758
|
+
};
|
|
759
|
+
}
|
|
760
|
+
export interface StorageGetSpaceQuery {
|
|
761
|
+
/** 操作者unionId。 */
|
|
762
|
+
unionId: string;
|
|
763
|
+
}
|
|
764
|
+
export interface StorageGetSpaceResponse {
|
|
765
|
+
space?: {
|
|
766
|
+
id?: string;
|
|
767
|
+
corpId?: string;
|
|
768
|
+
creatorId?: string;
|
|
769
|
+
ownerType?: string;
|
|
770
|
+
ownerId?: string;
|
|
771
|
+
modifierId?: string;
|
|
772
|
+
usedQuota?: number;
|
|
773
|
+
quota?: number;
|
|
774
|
+
status?: string;
|
|
775
|
+
createTime?: string;
|
|
776
|
+
modifiedTime?: string;
|
|
777
|
+
appId?: string;
|
|
778
|
+
scene?: string;
|
|
779
|
+
sceneId?: string;
|
|
780
|
+
capabilities?: number;
|
|
781
|
+
name?: string;
|
|
782
|
+
partitions?: number;
|
|
783
|
+
};
|
|
784
|
+
}
|
|
785
|
+
export interface AddFolderParams {
|
|
786
|
+
/** 文件夹的名称,命名有以下要求: */
|
|
787
|
+
name: string;
|
|
788
|
+
/** 可选参数。 */
|
|
789
|
+
option?: unknown;
|
|
790
|
+
}
|
|
791
|
+
export interface AddFolderQuery {
|
|
792
|
+
/** 操作者unionId。 */
|
|
793
|
+
unionId: string;
|
|
794
|
+
}
|
|
795
|
+
export interface AddFolderResponse {
|
|
796
|
+
dentry?: {
|
|
797
|
+
id?: string;
|
|
798
|
+
spaceId?: string;
|
|
799
|
+
parentId?: string;
|
|
800
|
+
type?: string;
|
|
801
|
+
name?: string;
|
|
802
|
+
size?: number;
|
|
803
|
+
path?: string;
|
|
804
|
+
version?: number;
|
|
805
|
+
status?: string;
|
|
806
|
+
extension?: string;
|
|
807
|
+
creatorId?: string;
|
|
808
|
+
modifierId?: string;
|
|
809
|
+
createTime?: string;
|
|
810
|
+
modifiedTime?: string;
|
|
811
|
+
properties?: number;
|
|
812
|
+
appProperties?: number;
|
|
813
|
+
uuid?: string;
|
|
814
|
+
partitionType?: string;
|
|
815
|
+
storageDriver?: string;
|
|
816
|
+
};
|
|
817
|
+
}
|
|
818
|
+
export interface GetDentryParams {
|
|
819
|
+
/** 可选参数。 */
|
|
820
|
+
option?: unknown;
|
|
821
|
+
}
|
|
822
|
+
export interface GetDentryQuery {
|
|
823
|
+
/** 操作者unionId。 */
|
|
824
|
+
unionId: string;
|
|
825
|
+
}
|
|
826
|
+
export interface GetDentryResponse {
|
|
827
|
+
dentry?: {
|
|
828
|
+
id?: string;
|
|
829
|
+
spaceId?: string;
|
|
830
|
+
parentId?: string;
|
|
831
|
+
type?: string;
|
|
832
|
+
name?: string;
|
|
833
|
+
size?: number;
|
|
834
|
+
path?: string;
|
|
835
|
+
version?: number;
|
|
836
|
+
status?: string;
|
|
837
|
+
extension?: string;
|
|
838
|
+
creatorId?: string;
|
|
839
|
+
modifierId?: string;
|
|
840
|
+
createTime?: string;
|
|
841
|
+
modifiedTime?: string;
|
|
842
|
+
properties?: number;
|
|
843
|
+
appProperties?: number;
|
|
844
|
+
uuid?: string;
|
|
845
|
+
partitionType?: string;
|
|
846
|
+
storageDriver?: string;
|
|
847
|
+
thumbnail?: number;
|
|
848
|
+
};
|
|
849
|
+
}
|
|
850
|
+
export interface DeleteDentryAppPropertiesParams {
|
|
851
|
+
/** 文件或文件夹的应用属性名称列表,最大值3。 */
|
|
852
|
+
propertyNames: string[];
|
|
853
|
+
}
|
|
854
|
+
export interface DeleteDentryAppPropertiesQuery {
|
|
855
|
+
/** 操作者unionId。 */
|
|
856
|
+
unionId: string;
|
|
857
|
+
}
|
|
858
|
+
export interface DeleteDentryAppPropertiesResponse {
|
|
859
|
+
success?: unknown;
|
|
860
|
+
}
|
|
861
|
+
export interface UpdateDentryAppPropertiesParams {
|
|
862
|
+
/** 应用属性列表,最大值3。 */
|
|
863
|
+
appProperties: object[];
|
|
864
|
+
}
|
|
865
|
+
export interface UpdateDentryAppPropertiesQuery {
|
|
866
|
+
/** 操作者unionId。 */
|
|
867
|
+
unionId: string;
|
|
868
|
+
}
|
|
869
|
+
export interface UpdateDentryAppPropertiesResponse {
|
|
870
|
+
success?: unknown;
|
|
871
|
+
}
|
|
872
|
+
export interface StorageCommitFileParams {
|
|
873
|
+
/** 添加文件唯一标识。 */
|
|
874
|
+
uploadKey: string;
|
|
875
|
+
/** 文件的名称,带后缀。命名有以下要求: */
|
|
876
|
+
name: string;
|
|
877
|
+
/** 父目录Id。根目录时,该参数是0。 */
|
|
878
|
+
parentId: string;
|
|
879
|
+
/** 可选参数。 */
|
|
880
|
+
option?: unknown;
|
|
881
|
+
}
|
|
882
|
+
export interface StorageCommitFileQuery {
|
|
883
|
+
/** 操作者unionId。 */
|
|
884
|
+
unionId: string;
|
|
885
|
+
}
|
|
886
|
+
export interface StorageGetFileUploadInfoParams {
|
|
887
|
+
/** 通过指定上传协议返回不同协议上传所需要的信息。 */
|
|
888
|
+
protocol: string;
|
|
889
|
+
/** 是否需要分片上传。 */
|
|
890
|
+
multipart: unknown;
|
|
891
|
+
/** 可选参数。 */
|
|
892
|
+
option?: unknown;
|
|
893
|
+
}
|
|
894
|
+
export interface StorageGetFileUploadInfoQuery {
|
|
895
|
+
/** 操作者unionId。 */
|
|
896
|
+
unionId: string;
|
|
897
|
+
}
|
|
898
|
+
export interface StorageGetFileUploadInfoResponse {
|
|
899
|
+
uploadKey?: string;
|
|
900
|
+
storageDriver?: string;
|
|
901
|
+
protocol?: string;
|
|
902
|
+
headerSignatureInfo?: {
|
|
903
|
+
resourceUrls?: number;
|
|
904
|
+
headers?: number;
|
|
905
|
+
expirationSeconds?: number;
|
|
906
|
+
region?: string;
|
|
907
|
+
internalResourceUrls?: number;
|
|
908
|
+
};
|
|
909
|
+
}
|
|
910
|
+
export interface StorageUpdatePermissionParams {
|
|
911
|
+
/** 权限角色Id。 */
|
|
912
|
+
roleId: string;
|
|
913
|
+
/** 权限成员信息。 */
|
|
914
|
+
members: object[];
|
|
915
|
+
/** 可选参数。 */
|
|
916
|
+
option?: unknown;
|
|
917
|
+
}
|
|
918
|
+
export interface StorageUpdatePermissionQuery {
|
|
919
|
+
/** 操作用户的unionId。 */
|
|
920
|
+
unionId: string;
|
|
921
|
+
}
|
|
922
|
+
export interface StorageUpdatePermissionResponse {
|
|
923
|
+
success?: unknown;
|
|
924
|
+
}
|
|
925
|
+
export interface StorageDeletePermissionParams {
|
|
926
|
+
/** 权限角色Id。 */
|
|
927
|
+
roleId: string;
|
|
928
|
+
/** 权限成员信息。 */
|
|
929
|
+
members: object[];
|
|
930
|
+
}
|
|
931
|
+
export interface StorageDeletePermissionQuery {
|
|
932
|
+
/** 操作者的unionId。 */
|
|
933
|
+
unionId: string;
|
|
934
|
+
}
|
|
935
|
+
export interface StorageDeletePermissionResponse {
|
|
936
|
+
success?: unknown;
|
|
937
|
+
}
|
|
938
|
+
export interface StorageAddPermissionParams {
|
|
939
|
+
/** 权限角色Id。 */
|
|
940
|
+
roleId: string;
|
|
941
|
+
/** 权限成员信息。 */
|
|
942
|
+
members: object[];
|
|
943
|
+
/** 可选参数。 */
|
|
944
|
+
option?: unknown;
|
|
945
|
+
}
|
|
946
|
+
export interface StorageAddPermissionQuery {
|
|
947
|
+
/** 操作用户的unionId。 */
|
|
948
|
+
unionId: string;
|
|
949
|
+
}
|
|
950
|
+
export interface StorageAddPermissionResponse {
|
|
951
|
+
success?: unknown;
|
|
952
|
+
}
|
|
953
|
+
export interface StorageAddSpaceParams {
|
|
954
|
+
/** 可选参数。 */
|
|
955
|
+
option?: unknown;
|
|
956
|
+
}
|
|
957
|
+
export interface StorageAddSpaceQuery {
|
|
958
|
+
/** 操作者unionId。 */
|
|
959
|
+
unionId: string;
|
|
960
|
+
}
|
|
961
|
+
export interface StorageAddSpaceResponse {
|
|
962
|
+
space?: {
|
|
963
|
+
id?: string;
|
|
964
|
+
corpId?: string;
|
|
965
|
+
creatorId?: string;
|
|
966
|
+
ownerType?: string;
|
|
967
|
+
ownerId?: string;
|
|
968
|
+
modifierId?: string;
|
|
969
|
+
usedQuota?: number;
|
|
970
|
+
quota?: number;
|
|
971
|
+
status?: string;
|
|
972
|
+
createTime?: string;
|
|
973
|
+
modifiedTime?: string;
|
|
974
|
+
appId?: string;
|
|
975
|
+
scene?: string;
|
|
976
|
+
sceneId?: string;
|
|
977
|
+
capabilities?: number;
|
|
978
|
+
name?: string;
|
|
979
|
+
partitions?: number;
|
|
980
|
+
};
|
|
981
|
+
}
|
|
982
|
+
declare module '../internal' {
|
|
983
|
+
interface Internal {
|
|
984
|
+
/**
|
|
985
|
+
* 搜索知识库
|
|
986
|
+
* @see https://developers.dingtalk.com/document/orgapp/search-knowledge-base
|
|
987
|
+
*/
|
|
988
|
+
searchWorkspaces(query: SearchWorkspacesQuery, params: SearchWorkspacesParams): Promise<SearchWorkspacesResponse>;
|
|
989
|
+
/**
|
|
990
|
+
* 设置权限继承模式
|
|
991
|
+
* @see https://developers.dingtalk.com/document/orgapp/set-permission-inheritance-mode
|
|
992
|
+
*/
|
|
993
|
+
setPermissionInheritance(dentryUuid: string, query: SetPermissionInheritanceQuery, params: SetPermissionInheritanceParams): Promise<SetPermissionInheritanceResponse>;
|
|
994
|
+
/**
|
|
995
|
+
* 获取权限继承模式
|
|
996
|
+
* @see https://developers.dingtalk.com/document/orgapp/get-permission-inheritance-mode
|
|
997
|
+
*/
|
|
998
|
+
getPermissionInheritance(dentryUuid: string, query: GetPermissionInheritanceQuery): Promise<GetPermissionInheritanceResponse>;
|
|
999
|
+
/**
|
|
1000
|
+
* 修改权限
|
|
1001
|
+
* @see https://developers.dingtalk.com/document/orgapp/modify-permissions-file
|
|
1002
|
+
*/
|
|
1003
|
+
storageUpdatePermission(dentryUuid: string, query: StorageUpdatePermissionQuery, params: StorageUpdatePermissionParams): Promise<StorageUpdatePermissionResponse>;
|
|
1004
|
+
/**
|
|
1005
|
+
* 删除权限
|
|
1006
|
+
* @see https://developers.dingtalk.com/document/orgapp/delete-permissions-file
|
|
1007
|
+
*/
|
|
1008
|
+
storageDeletePermission(dentryUuid: string, query: StorageDeletePermissionQuery, params: StorageDeletePermissionParams): Promise<StorageDeletePermissionResponse>;
|
|
1009
|
+
/**
|
|
1010
|
+
* 添加权限
|
|
1011
|
+
* @see https://developers.dingtalk.com/document/orgapp/add-permissions-file
|
|
1012
|
+
*/
|
|
1013
|
+
storageAddPermission(dentryUuid: string, query: StorageAddPermissionQuery, params: StorageAddPermissionParams): Promise<StorageAddPermissionResponse>;
|
|
1014
|
+
/**
|
|
1015
|
+
* 获取权限列表
|
|
1016
|
+
* @see https://developers.dingtalk.com/document/orgapp/get-permission-list
|
|
1017
|
+
*/
|
|
1018
|
+
listPermissionsOrg(dentryUuid: string, query: ListPermissionsOrgQuery, params: ListPermissionsOrgParams): Promise<ListPermissionsOrgResponse>;
|
|
1019
|
+
/**
|
|
1020
|
+
* 搜索文件
|
|
1021
|
+
* @see https://developers.dingtalk.com/document/orgapp/search-for-files
|
|
1022
|
+
*/
|
|
1023
|
+
searchDentries(query: SearchDentriesQuery, params: SearchDentriesParams): Promise<SearchDentriesResponse>;
|
|
1024
|
+
/**
|
|
1025
|
+
* 提交文件
|
|
1026
|
+
* @see https://developers.dingtalk.com/document/app/submittal-file
|
|
1027
|
+
*/
|
|
1028
|
+
storageCommitFile(parentDentryUuid: string, query: StorageCommitFileQuery, params: StorageCommitFileParams): Promise<StorageCommitFileResponse>;
|
|
1029
|
+
/**
|
|
1030
|
+
* 获取文件上传信息
|
|
1031
|
+
* @see https://developers.dingtalk.com/document/app/obtain-file-upload-informations
|
|
1032
|
+
*/
|
|
1033
|
+
storageGetFileUploadInfo(parentDentryUuid: string, query: StorageGetFileUploadInfoQuery, params: StorageGetFileUploadInfoParams): Promise<StorageGetFileUploadInfoResponse>;
|
|
1034
|
+
/**
|
|
1035
|
+
* 取消订阅文件变更事件
|
|
1036
|
+
* @see https://developers.dingtalk.com/document/isvapp/unsubscribe-from-file-change-event
|
|
1037
|
+
*/
|
|
1038
|
+
unsubscribeEvent(query: UnsubscribeEventQuery, params: UnsubscribeEventParams): Promise<UnsubscribeEventResponse>;
|
|
1039
|
+
/**
|
|
1040
|
+
* 获取文件列表
|
|
1041
|
+
* @see https://developers.dingtalk.com/document/isvapp/get-the-list-of-files-or-folders-under-a-space
|
|
1042
|
+
*/
|
|
1043
|
+
listAllDentries(spaceId: string, query: ListAllDentriesQuery, params: ListAllDentriesParams): Promise<ListAllDentriesResponse>;
|
|
1044
|
+
/**
|
|
1045
|
+
* 批量获取文件(夹)信息
|
|
1046
|
+
* @see https://developers.dingtalk.com/document/isvapp/get-file-or-folder-information-in-bulk
|
|
1047
|
+
*/
|
|
1048
|
+
getDentries(spaceId: string, query: GetDentriesQuery, params: GetDentriesParams): Promise<GetDentriesResponse>;
|
|
1049
|
+
/**
|
|
1050
|
+
* 批量获取文件缩略图
|
|
1051
|
+
* @see undefined
|
|
1052
|
+
*/
|
|
1053
|
+
getDentryThumbnails(spaceId: string, query: GetDentryThumbnailsQuery, params: GetDentryThumbnailsParams): Promise<GetDentryThumbnailsResponse>;
|
|
1054
|
+
/**
|
|
1055
|
+
* 批量移动文件或文件夹
|
|
1056
|
+
* @see https://developers.dingtalk.com/document/isvapp/bulk-move-files-or-folders
|
|
1057
|
+
*/
|
|
1058
|
+
moveDentries(spaceId: string, query: MoveDentriesQuery, params: MoveDentriesParams): Promise<MoveDentriesResponse>;
|
|
1059
|
+
/**
|
|
1060
|
+
* 批量拷贝文件或文件夹
|
|
1061
|
+
* @see https://developers.dingtalk.com/document/isvapp/copy-files-or-folders-in-bulk
|
|
1062
|
+
*/
|
|
1063
|
+
copyDentries(spaceId: string, query: CopyDentriesQuery, params: CopyDentriesParams): Promise<CopyDentriesResponse>;
|
|
1064
|
+
/**
|
|
1065
|
+
* 批量删除文件或文件夹
|
|
1066
|
+
* @see https://developers.dingtalk.com/document/isvapp/delete-files-or-folders-in-bulk
|
|
1067
|
+
*/
|
|
1068
|
+
deleteDentries(spaceId: string, query: DeleteDentriesQuery, params: DeleteDentriesParams): Promise<DeleteDentriesResponse>;
|
|
1069
|
+
/**
|
|
1070
|
+
* 获取异步任务信息
|
|
1071
|
+
* @see https://developers.dingtalk.com/document/isvapp/get-the-asynchronous-task-information-in-storage
|
|
1072
|
+
*/
|
|
1073
|
+
getTask(taskId: string, query: GetTaskQuery): Promise<GetTaskResponse>;
|
|
1074
|
+
/**
|
|
1075
|
+
* 初始化文件分片上传
|
|
1076
|
+
* @see https://developers.dingtalk.com/document/isvapp/initialize-a-multipart-upload-object
|
|
1077
|
+
*/
|
|
1078
|
+
initMultipartFileUpload(spaceId: string, query: InitMultipartFileUploadQuery, params: InitMultipartFileUploadParams): Promise<InitMultipartFileUploadResponse>;
|
|
1079
|
+
/**
|
|
1080
|
+
* 获取文件上传信息(分片上传)
|
|
1081
|
+
* @see https://developers.dingtalk.com/document/isvapp/obtains-the-information-about-multipart-uploads-of-an-object
|
|
1082
|
+
*/
|
|
1083
|
+
getMultipartFileUploadInfos(query: GetMultipartFileUploadInfosQuery, params: GetMultipartFileUploadInfosParams): Promise<GetMultipartFileUploadInfosResponse>;
|
|
1084
|
+
/**
|
|
1085
|
+
* 获取企业存储中企业维度的信息
|
|
1086
|
+
* @see https://developers.dingtalk.com/document/isvapp/obtain-enterprise-information-1
|
|
1087
|
+
*/
|
|
1088
|
+
getOrg(corpId: string, query: GetOrgQuery): Promise<GetOrgResponse>;
|
|
1089
|
+
/**
|
|
1090
|
+
* 还原回收站中的回收项
|
|
1091
|
+
* @see https://developers.dingtalk.com/document/isvapp/restore-recycle-items
|
|
1092
|
+
*/
|
|
1093
|
+
restoreRecycleItem(recycleBinId: string, recycleItemId: string, query: RestoreRecycleItemQuery, params: RestoreRecycleItemParams): Promise<RestoreRecycleItemResponse>;
|
|
1094
|
+
/**
|
|
1095
|
+
* 获取回收站信息
|
|
1096
|
+
* @see https://developers.dingtalk.com/document/isvapp/obtain-information-about-the-recycle-bin
|
|
1097
|
+
*/
|
|
1098
|
+
getRecycleBin(query: GetRecycleBinQuery): Promise<GetRecycleBinResponse>;
|
|
1099
|
+
/**
|
|
1100
|
+
* 获取回收项详情
|
|
1101
|
+
* @see https://developers.dingtalk.com/document/isvapp/obtain-recycling-item-information
|
|
1102
|
+
*/
|
|
1103
|
+
getRecycleItem(recycleBinId: string, recycleItemId: string, query: GetRecycleItemQuery): Promise<GetRecycleItemResponse>;
|
|
1104
|
+
/**
|
|
1105
|
+
* 删除回收项, 删除之后该记录从回收站删除, 后续文件就无法恢复了
|
|
1106
|
+
* @see https://developers.dingtalk.com/document/isvapp/delete-recycle-item
|
|
1107
|
+
*/
|
|
1108
|
+
deleteRecycleItem(recycleBinId: string, recycleItemId: string, query: DeleteRecycleItemQuery): Promise<DeleteRecycleItemResponse>;
|
|
1109
|
+
/**
|
|
1110
|
+
* 清空回收站
|
|
1111
|
+
* @see https://developers.dingtalk.com/document/isvapp/empty-the-recycle-bin
|
|
1112
|
+
*/
|
|
1113
|
+
clearRecycleBin(recycleBinId: string, query: ClearRecycleBinQuery): Promise<ClearRecycleBinResponse>;
|
|
1114
|
+
/**
|
|
1115
|
+
* 批量删除回收项, 删除之后该记录从回收站删除, 后续文件就无法恢复了
|
|
1116
|
+
* @see https://developers.dingtalk.com/document/isvapp/batch-delete-recycle-items
|
|
1117
|
+
*/
|
|
1118
|
+
deleteRecycleItems(recycleBinId: string, query: DeleteRecycleItemsQuery, params: DeleteRecycleItemsParams): Promise<DeleteRecycleItemsResponse>;
|
|
1119
|
+
/**
|
|
1120
|
+
* 批量还原回收站中的回收项
|
|
1121
|
+
* @see https://developers.dingtalk.com/document/isvapp/batch-restore-recycled-items
|
|
1122
|
+
*/
|
|
1123
|
+
restoreRecycleItems(recycleBinId: string, query: RestoreRecycleItemsQuery, params: RestoreRecycleItemsParams): Promise<RestoreRecycleItemsResponse>;
|
|
1124
|
+
/**
|
|
1125
|
+
* 获取文件历史版本
|
|
1126
|
+
* @see https://developers.dingtalk.com/document/isvapp/obtains-a-list-of-file-versions
|
|
1127
|
+
*/
|
|
1128
|
+
listDentryVersions(spaceId: string, dentryId: string, query: ListDentryVersionsQuery): Promise<ListDentryVersionsResponse>;
|
|
1129
|
+
/**
|
|
1130
|
+
* 获取文件打开链接
|
|
1131
|
+
* @see https://developers.dingtalk.com/document/isvapp/obtains-the-object-preview-or-editing-information
|
|
1132
|
+
*/
|
|
1133
|
+
getDentryOpenInfo(spaceId: string, dentryId: string, query: GetDentryOpenInfoQuery, params: GetDentryOpenInfoParams): Promise<GetDentryOpenInfoResponse>;
|
|
1134
|
+
/**
|
|
1135
|
+
* 移动文件或文件夹
|
|
1136
|
+
* @see https://developers.dingtalk.com/document/isvapp/move-a-file-or-folder
|
|
1137
|
+
*/
|
|
1138
|
+
moveDentry(spaceId: string, dentryId: string, query: MoveDentryQuery, params: MoveDentryParams): Promise<MoveDentryResponse>;
|
|
1139
|
+
/**
|
|
1140
|
+
* 获取权限列表
|
|
1141
|
+
* @see https://developers.dingtalk.com/document/isvapp/obtain-a-permission-list-storage
|
|
1142
|
+
*/
|
|
1143
|
+
listPermissionsIsv(spaceId: string, dentryId: string, query: ListPermissionsIsvQuery, params: ListPermissionsIsvParams): Promise<ListPermissionsIsvResponse>;
|
|
1144
|
+
/**
|
|
1145
|
+
* 获取文件下载信息
|
|
1146
|
+
* @see https://developers.dingtalk.com/document/orgapp/obtains-the-download-information-about-a-file
|
|
1147
|
+
*/
|
|
1148
|
+
getFileDownloadInfo(spaceId: string, dentryId: string, query: GetFileDownloadInfoQuery, params: GetFileDownloadInfoParams): Promise<GetFileDownloadInfoResponse>;
|
|
1149
|
+
/**
|
|
1150
|
+
* 获取回收项列表
|
|
1151
|
+
* @see https://developers.dingtalk.com/document/isvapp/gets-the-list-of-recycle-items
|
|
1152
|
+
*/
|
|
1153
|
+
listRecycleItems(recycleBinId: string, query: ListRecycleItemsQuery): Promise<ListRecycleItemsResponse>;
|
|
1154
|
+
/**
|
|
1155
|
+
* 删除文件或文件夹
|
|
1156
|
+
* @see https://developers.dingtalk.com/document/isvapp/delete-a-file-or-folder
|
|
1157
|
+
*/
|
|
1158
|
+
deleteDentry(spaceId: string, dentryId: string, query: DeleteDentryQuery): Promise<DeleteDentryResponse>;
|
|
1159
|
+
/**
|
|
1160
|
+
* 重命名文件或文件夹
|
|
1161
|
+
* @see https://developers.dingtalk.com/document/isvapp/rename-a-file-or-folder
|
|
1162
|
+
*/
|
|
1163
|
+
renameDentry(spaceId: string, dentryId: string, query: RenameDentryQuery, params: RenameDentryParams): Promise<RenameDentryResponse>;
|
|
1164
|
+
/**
|
|
1165
|
+
* 获取文件列表
|
|
1166
|
+
* @see https://developers.dingtalk.com/document/isvapp/obtain-the-file-list-storage
|
|
1167
|
+
*/
|
|
1168
|
+
listDentries(spaceId: string, query: ListDentriesQuery): Promise<ListDentriesResponse>;
|
|
1169
|
+
/**
|
|
1170
|
+
* 恢复文件历史版本
|
|
1171
|
+
* @see https://developers.dingtalk.com/document/isvapp/restore-previous-versions-of-files
|
|
1172
|
+
*/
|
|
1173
|
+
revertDentryVersion(spaceId: string, dentryId: string, version: number, query: RevertDentryVersionQuery): Promise<RevertDentryVersionResponse>;
|
|
1174
|
+
/**
|
|
1175
|
+
* 拷贝文件或文件夹
|
|
1176
|
+
* @see https://developers.dingtalk.com/document/isvapp/copy-an-object
|
|
1177
|
+
*/
|
|
1178
|
+
copyDentry(spaceId: string, dentryId: string, query: CopyDentryQuery, params: CopyDentryParams): Promise<CopyDentryResponse>;
|
|
1179
|
+
/**
|
|
1180
|
+
* 获取开放平台应用在企业存储中的相关应用信息
|
|
1181
|
+
* @see https://developers.dingtalk.com/document/isvapp/queries-application-information-1
|
|
1182
|
+
*/
|
|
1183
|
+
getCurrentApp(query: GetCurrentAppQuery): Promise<GetCurrentAppResponse>;
|
|
1184
|
+
/**
|
|
1185
|
+
* 获取空间信息
|
|
1186
|
+
* @see https://developers.dingtalk.com/document/isvapp/get-space-information
|
|
1187
|
+
*/
|
|
1188
|
+
storageGetSpace(spaceId: string, query: StorageGetSpaceQuery): Promise<StorageGetSpaceResponse>;
|
|
1189
|
+
/**
|
|
1190
|
+
* 添加文件夹
|
|
1191
|
+
* @see https://developers.dingtalk.com/document/isvapp/add-folder
|
|
1192
|
+
*/
|
|
1193
|
+
addFolder(spaceId: string, parentId: string, query: AddFolderQuery, params: AddFolderParams): Promise<AddFolderResponse>;
|
|
1194
|
+
/**
|
|
1195
|
+
* 获取文件(夹)信息
|
|
1196
|
+
* @see https://developers.dingtalk.com/document/isvapp/obtain-file-or-folder-information
|
|
1197
|
+
*/
|
|
1198
|
+
getDentry(spaceId: string, dentryId: string, query: GetDentryQuery, params: GetDentryParams): Promise<GetDentryResponse>;
|
|
1199
|
+
/**
|
|
1200
|
+
* 删除文件上的App属性值
|
|
1201
|
+
* @see https://developers.dingtalk.com/document/isvapp/delete-file-app-attribute
|
|
1202
|
+
*/
|
|
1203
|
+
deleteDentryAppProperties(spaceId: number, dentryId: number, query: DeleteDentryAppPropertiesQuery, params: DeleteDentryAppPropertiesParams): Promise<DeleteDentryAppPropertiesResponse>;
|
|
1204
|
+
/**
|
|
1205
|
+
* 修改文件上的App属性值
|
|
1206
|
+
* @see https://developers.dingtalk.com/document/isvapp/update-the-application-properties-of-a-file-or-folder
|
|
1207
|
+
*/
|
|
1208
|
+
updateDentryAppProperties(spaceId: number, dentryId: number, query: UpdateDentryAppPropertiesQuery, params: UpdateDentryAppPropertiesParams): Promise<UpdateDentryAppPropertiesResponse>;
|
|
1209
|
+
/**
|
|
1210
|
+
* 提交文件
|
|
1211
|
+
* @see https://developers.dingtalk.com/document/orgapp/submit-documents
|
|
1212
|
+
*/
|
|
1213
|
+
storageCommitFile(spaceId: string, query: StorageCommitFileQuery, params: StorageCommitFileParams): Promise<StorageCommitFileResponse>;
|
|
1214
|
+
/**
|
|
1215
|
+
* 获取文件上传信息
|
|
1216
|
+
* @see https://developers.dingtalk.com/document/orgapp/obtain-storage-upload-information
|
|
1217
|
+
*/
|
|
1218
|
+
storageGetFileUploadInfo(spaceId: string, query: StorageGetFileUploadInfoQuery, params: StorageGetFileUploadInfoParams): Promise<StorageGetFileUploadInfoResponse>;
|
|
1219
|
+
/**
|
|
1220
|
+
* 修改权限
|
|
1221
|
+
* @see https://developers.dingtalk.com/document/isvapp/modify-storage-permissions
|
|
1222
|
+
*/
|
|
1223
|
+
storageUpdatePermission(spaceId: string, dentryId: string, query: StorageUpdatePermissionQuery, params: StorageUpdatePermissionParams): Promise<StorageUpdatePermissionResponse>;
|
|
1224
|
+
/**
|
|
1225
|
+
* 删除权限
|
|
1226
|
+
* @see https://developers.dingtalk.com/document/isvapp/delete-storage-permissions
|
|
1227
|
+
*/
|
|
1228
|
+
storageDeletePermission(spaceId: string, dentryId: string, query: StorageDeletePermissionQuery, params: StorageDeletePermissionParams): Promise<StorageDeletePermissionResponse>;
|
|
1229
|
+
/**
|
|
1230
|
+
* 添加权限
|
|
1231
|
+
* @see https://developers.dingtalk.com/document/isvapp/add-permissions-storage
|
|
1232
|
+
*/
|
|
1233
|
+
storageAddPermission(spaceId: string, dentryId: string, query: StorageAddPermissionQuery, params: StorageAddPermissionParams): Promise<StorageAddPermissionResponse>;
|
|
1234
|
+
/**
|
|
1235
|
+
* 添加空间
|
|
1236
|
+
* @see https://developers.dingtalk.com/document/isvapp/add-space
|
|
1237
|
+
*/
|
|
1238
|
+
storageAddSpace(query: StorageAddSpaceQuery, params: StorageAddSpaceParams): Promise<StorageAddSpaceResponse>;
|
|
1239
|
+
}
|
|
1240
|
+
}
|