@finueva/drive 0.2.0 → 0.5.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/CHANGELOG.md +21 -0
- package/README.md +67 -9
- package/THIRD_PARTY_NOTICES.md +26 -0
- package/dist/client.d.ts +2 -2
- package/dist/client.js +1809 -28
- package/dist/contract.d.ts +3046 -443
- package/dist/core.d.ts +3 -1
- package/dist/core.js +4 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1809 -28
- package/dist/server.d.ts +3 -3
- package/dist/server.js +1062 -25
- package/dist/types.d.ts +2 -2
- package/package.json +6 -2
package/dist/contract.d.ts
CHANGED
|
@@ -132,6 +132,547 @@ interface operations {
|
|
|
132
132
|
};
|
|
133
133
|
};
|
|
134
134
|
};
|
|
135
|
+
getItem: {
|
|
136
|
+
parameters: {
|
|
137
|
+
query?: never;
|
|
138
|
+
header?: never;
|
|
139
|
+
path: {
|
|
140
|
+
workspaceId: string;
|
|
141
|
+
itemId: string;
|
|
142
|
+
};
|
|
143
|
+
cookie?: never;
|
|
144
|
+
};
|
|
145
|
+
requestBody?: never;
|
|
146
|
+
responses: {
|
|
147
|
+
/** @description The active managed item and current published version metadata. */
|
|
148
|
+
200: {
|
|
149
|
+
headers: {
|
|
150
|
+
/** @description Strong precondition for the next item mutation. */
|
|
151
|
+
ETag?: string;
|
|
152
|
+
[name: string]: unknown;
|
|
153
|
+
};
|
|
154
|
+
content: {
|
|
155
|
+
"application/json": {
|
|
156
|
+
currentVersion: {
|
|
157
|
+
byteLength: number;
|
|
158
|
+
mediaType: string;
|
|
159
|
+
/** @enum {string} */
|
|
160
|
+
protectionClassification: "ordinary" | "opaque-encrypted";
|
|
161
|
+
/** @enum {string} */
|
|
162
|
+
state: "current";
|
|
163
|
+
versionId: string;
|
|
164
|
+
} | null;
|
|
165
|
+
itemId: string;
|
|
166
|
+
/** @enum {string} */
|
|
167
|
+
lifecycleState: "active";
|
|
168
|
+
name: string;
|
|
169
|
+
parentId: string | null;
|
|
170
|
+
revision: number;
|
|
171
|
+
/** @enum {string} */
|
|
172
|
+
type: "file" | "folder";
|
|
173
|
+
workspaceId: string;
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
/** @description A valid Drive user bearer credential is required. */
|
|
178
|
+
401: {
|
|
179
|
+
headers: {
|
|
180
|
+
[name: string]: unknown;
|
|
181
|
+
};
|
|
182
|
+
content: {
|
|
183
|
+
"application/json": {
|
|
184
|
+
error: {
|
|
185
|
+
/** @enum {string} */
|
|
186
|
+
code: "authentication_required";
|
|
187
|
+
details: Record<string, never>;
|
|
188
|
+
/** @enum {string} */
|
|
189
|
+
message: "Authentication is required.";
|
|
190
|
+
requestId: string;
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
/** @description Managed storage is disabled for the discoverable item. */
|
|
196
|
+
403: {
|
|
197
|
+
headers: {
|
|
198
|
+
[name: string]: unknown;
|
|
199
|
+
};
|
|
200
|
+
content: {
|
|
201
|
+
"application/json": {
|
|
202
|
+
error: {
|
|
203
|
+
/** @enum {string} */
|
|
204
|
+
code: "permission_denied";
|
|
205
|
+
details: Record<string, never>;
|
|
206
|
+
/** @enum {string} */
|
|
207
|
+
message: "The requested action is not permitted.";
|
|
208
|
+
requestId: string;
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
/** @description The item is absent, undiscoverable, tombstoned, or unpublished. */
|
|
214
|
+
404: {
|
|
215
|
+
headers: {
|
|
216
|
+
[name: string]: unknown;
|
|
217
|
+
};
|
|
218
|
+
content: {
|
|
219
|
+
"application/json": {
|
|
220
|
+
error: {
|
|
221
|
+
/** @enum {string} */
|
|
222
|
+
code: "resource_not_found";
|
|
223
|
+
details: Record<string, never>;
|
|
224
|
+
/** @enum {string} */
|
|
225
|
+
message: "The requested resource was not found.";
|
|
226
|
+
requestId: string;
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
/** @description Authorization or metadata changed after preflight. */
|
|
232
|
+
409: {
|
|
233
|
+
headers: {
|
|
234
|
+
[name: string]: unknown;
|
|
235
|
+
};
|
|
236
|
+
content: {
|
|
237
|
+
"application/json": {
|
|
238
|
+
error: {
|
|
239
|
+
/** @enum {string} */
|
|
240
|
+
code: "precondition_failed";
|
|
241
|
+
details: Record<string, never>;
|
|
242
|
+
/** @enum {string} */
|
|
243
|
+
message: "The request precondition failed.";
|
|
244
|
+
requestId: string;
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
/** @description The path, query, or unexpected body is invalid. */
|
|
250
|
+
422: {
|
|
251
|
+
headers: {
|
|
252
|
+
[name: string]: unknown;
|
|
253
|
+
};
|
|
254
|
+
content: {
|
|
255
|
+
"application/json": {
|
|
256
|
+
error: {
|
|
257
|
+
/** @enum {string} */
|
|
258
|
+
code: "invalid_request";
|
|
259
|
+
details: Record<string, never>;
|
|
260
|
+
/** @enum {string} */
|
|
261
|
+
message: "The request is invalid.";
|
|
262
|
+
requestId: string;
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
};
|
|
267
|
+
/** @description Identity, D1, authorization, capacity, or managed authority is unavailable. */
|
|
268
|
+
503: {
|
|
269
|
+
headers: {
|
|
270
|
+
[name: string]: unknown;
|
|
271
|
+
};
|
|
272
|
+
content: {
|
|
273
|
+
"application/json": {
|
|
274
|
+
error: {
|
|
275
|
+
/** @enum {string} */
|
|
276
|
+
code: "identity_authority_unavailable";
|
|
277
|
+
details: Record<string, never>;
|
|
278
|
+
/** @enum {string} */
|
|
279
|
+
message: "Authentication is temporarily unavailable.";
|
|
280
|
+
requestId: string;
|
|
281
|
+
};
|
|
282
|
+
} | {
|
|
283
|
+
error: {
|
|
284
|
+
/** @enum {string} */
|
|
285
|
+
code: "service_unavailable";
|
|
286
|
+
details: Record<string, never>;
|
|
287
|
+
/** @enum {string} */
|
|
288
|
+
message: "The service is temporarily unavailable.";
|
|
289
|
+
requestId: string;
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
};
|
|
295
|
+
};
|
|
296
|
+
deleteItem: {
|
|
297
|
+
parameters: {
|
|
298
|
+
query?: never;
|
|
299
|
+
header: {
|
|
300
|
+
"Idempotency-Key": string;
|
|
301
|
+
"If-Match": string;
|
|
302
|
+
};
|
|
303
|
+
path: {
|
|
304
|
+
workspaceId: string;
|
|
305
|
+
itemId: string;
|
|
306
|
+
};
|
|
307
|
+
cookie?: never;
|
|
308
|
+
};
|
|
309
|
+
requestBody?: never;
|
|
310
|
+
responses: {
|
|
311
|
+
/** @description The retained deletion result was exactly replayed. */
|
|
312
|
+
200: {
|
|
313
|
+
headers: {
|
|
314
|
+
/** @description Strong precondition for the next item mutation. */
|
|
315
|
+
ETag?: string;
|
|
316
|
+
[name: string]: unknown;
|
|
317
|
+
};
|
|
318
|
+
content: {
|
|
319
|
+
"application/json": {
|
|
320
|
+
itemId: string;
|
|
321
|
+
/** @enum {string} */
|
|
322
|
+
kind: "file" | "folder";
|
|
323
|
+
name: string;
|
|
324
|
+
parentItemId: string;
|
|
325
|
+
purgeAfterEpochMilliseconds: number | null;
|
|
326
|
+
revision: number;
|
|
327
|
+
/** @enum {string} */
|
|
328
|
+
state: "active" | "trashed" | "deleting";
|
|
329
|
+
volumeId: string;
|
|
330
|
+
workspaceId: string;
|
|
331
|
+
};
|
|
332
|
+
};
|
|
333
|
+
};
|
|
334
|
+
/** @description Deletion was retained and bounded reconciliation was attempted. */
|
|
335
|
+
202: {
|
|
336
|
+
headers: {
|
|
337
|
+
/** @description Strong precondition for the next item mutation. */
|
|
338
|
+
ETag?: string;
|
|
339
|
+
[name: string]: unknown;
|
|
340
|
+
};
|
|
341
|
+
content: {
|
|
342
|
+
"application/json": {
|
|
343
|
+
itemId: string;
|
|
344
|
+
/** @enum {string} */
|
|
345
|
+
kind: "file" | "folder";
|
|
346
|
+
name: string;
|
|
347
|
+
parentItemId: string;
|
|
348
|
+
purgeAfterEpochMilliseconds: number | null;
|
|
349
|
+
revision: number;
|
|
350
|
+
/** @enum {string} */
|
|
351
|
+
state: "active" | "trashed" | "deleting";
|
|
352
|
+
volumeId: string;
|
|
353
|
+
workspaceId: string;
|
|
354
|
+
};
|
|
355
|
+
};
|
|
356
|
+
};
|
|
357
|
+
/** @description A valid Drive user bearer credential is required. */
|
|
358
|
+
401: {
|
|
359
|
+
headers: {
|
|
360
|
+
[name: string]: unknown;
|
|
361
|
+
};
|
|
362
|
+
content: {
|
|
363
|
+
"application/json": {
|
|
364
|
+
error: {
|
|
365
|
+
/** @enum {string} */
|
|
366
|
+
code: "authentication_required";
|
|
367
|
+
details: Record<string, never>;
|
|
368
|
+
/** @enum {string} */
|
|
369
|
+
message: "Authentication is required.";
|
|
370
|
+
requestId: string;
|
|
371
|
+
};
|
|
372
|
+
};
|
|
373
|
+
};
|
|
374
|
+
};
|
|
375
|
+
/** @description The discoverable item does not permit this lifecycle action. */
|
|
376
|
+
403: {
|
|
377
|
+
headers: {
|
|
378
|
+
[name: string]: unknown;
|
|
379
|
+
};
|
|
380
|
+
content: {
|
|
381
|
+
"application/json": {
|
|
382
|
+
error: {
|
|
383
|
+
/** @enum {string} */
|
|
384
|
+
code: "permission_denied";
|
|
385
|
+
details: Record<string, never>;
|
|
386
|
+
/** @enum {string} */
|
|
387
|
+
message: "The requested action is not permitted.";
|
|
388
|
+
requestId: string;
|
|
389
|
+
};
|
|
390
|
+
};
|
|
391
|
+
};
|
|
392
|
+
};
|
|
393
|
+
/** @description The item or destination is absent or undiscoverable. */
|
|
394
|
+
404: {
|
|
395
|
+
headers: {
|
|
396
|
+
[name: string]: unknown;
|
|
397
|
+
};
|
|
398
|
+
content: {
|
|
399
|
+
"application/json": {
|
|
400
|
+
error: {
|
|
401
|
+
/** @enum {string} */
|
|
402
|
+
code: "resource_not_found";
|
|
403
|
+
details: Record<string, never>;
|
|
404
|
+
/** @enum {string} */
|
|
405
|
+
message: "The requested resource was not found.";
|
|
406
|
+
requestId: string;
|
|
407
|
+
};
|
|
408
|
+
};
|
|
409
|
+
};
|
|
410
|
+
};
|
|
411
|
+
/** @description The key conflicts, the precondition is stale, or lifecycle authority changed. */
|
|
412
|
+
409: {
|
|
413
|
+
headers: {
|
|
414
|
+
[name: string]: unknown;
|
|
415
|
+
};
|
|
416
|
+
content: {
|
|
417
|
+
"application/json": {
|
|
418
|
+
error: {
|
|
419
|
+
/** @enum {string} */
|
|
420
|
+
code: "idempotency_conflict";
|
|
421
|
+
details: Record<string, never>;
|
|
422
|
+
/** @enum {string} */
|
|
423
|
+
message: "The idempotency key conflicts with an earlier request.";
|
|
424
|
+
requestId: string;
|
|
425
|
+
};
|
|
426
|
+
} | {
|
|
427
|
+
error: {
|
|
428
|
+
/** @enum {string} */
|
|
429
|
+
code: "precondition_failed";
|
|
430
|
+
details: Record<string, never>;
|
|
431
|
+
/** @enum {string} */
|
|
432
|
+
message: "The request precondition failed.";
|
|
433
|
+
requestId: string;
|
|
434
|
+
};
|
|
435
|
+
};
|
|
436
|
+
};
|
|
437
|
+
};
|
|
438
|
+
/** @description The path, query, headers, key, or strict body is invalid. */
|
|
439
|
+
422: {
|
|
440
|
+
headers: {
|
|
441
|
+
[name: string]: unknown;
|
|
442
|
+
};
|
|
443
|
+
content: {
|
|
444
|
+
"application/json": {
|
|
445
|
+
error: {
|
|
446
|
+
/** @enum {string} */
|
|
447
|
+
code: "invalid_request";
|
|
448
|
+
details: Record<string, never>;
|
|
449
|
+
/** @enum {string} */
|
|
450
|
+
message: "The request is invalid.";
|
|
451
|
+
requestId: string;
|
|
452
|
+
};
|
|
453
|
+
} | {
|
|
454
|
+
error: {
|
|
455
|
+
/** @enum {string} */
|
|
456
|
+
code: "invalid_idempotency_key";
|
|
457
|
+
details: Record<string, never>;
|
|
458
|
+
/** @enum {string} */
|
|
459
|
+
message: "The idempotency key is invalid.";
|
|
460
|
+
requestId: string;
|
|
461
|
+
};
|
|
462
|
+
};
|
|
463
|
+
};
|
|
464
|
+
};
|
|
465
|
+
/** @description Identity, D1, authorization, capacity, or archive authority is unavailable. */
|
|
466
|
+
503: {
|
|
467
|
+
headers: {
|
|
468
|
+
[name: string]: unknown;
|
|
469
|
+
};
|
|
470
|
+
content: {
|
|
471
|
+
"application/json": {
|
|
472
|
+
error: {
|
|
473
|
+
/** @enum {string} */
|
|
474
|
+
code: "identity_authority_unavailable";
|
|
475
|
+
details: Record<string, never>;
|
|
476
|
+
/** @enum {string} */
|
|
477
|
+
message: "Authentication is temporarily unavailable.";
|
|
478
|
+
requestId: string;
|
|
479
|
+
};
|
|
480
|
+
} | {
|
|
481
|
+
error: {
|
|
482
|
+
/** @enum {string} */
|
|
483
|
+
code: "service_unavailable";
|
|
484
|
+
details: Record<string, never>;
|
|
485
|
+
/** @enum {string} */
|
|
486
|
+
message: "The service is temporarily unavailable.";
|
|
487
|
+
requestId: string;
|
|
488
|
+
};
|
|
489
|
+
};
|
|
490
|
+
};
|
|
491
|
+
};
|
|
492
|
+
};
|
|
493
|
+
};
|
|
494
|
+
updateItem: {
|
|
495
|
+
parameters: {
|
|
496
|
+
query?: never;
|
|
497
|
+
header: {
|
|
498
|
+
"Idempotency-Key": string;
|
|
499
|
+
"If-Match": string;
|
|
500
|
+
};
|
|
501
|
+
path: {
|
|
502
|
+
workspaceId: string;
|
|
503
|
+
itemId: string;
|
|
504
|
+
};
|
|
505
|
+
cookie?: never;
|
|
506
|
+
};
|
|
507
|
+
requestBody: {
|
|
508
|
+
content: {
|
|
509
|
+
"application/json": {
|
|
510
|
+
name: string;
|
|
511
|
+
parentItemId: string;
|
|
512
|
+
};
|
|
513
|
+
};
|
|
514
|
+
};
|
|
515
|
+
responses: {
|
|
516
|
+
/** @description The managed item was updated or exactly replayed. */
|
|
517
|
+
200: {
|
|
518
|
+
headers: {
|
|
519
|
+
/** @description Strong precondition for the next item mutation. */
|
|
520
|
+
ETag?: string;
|
|
521
|
+
[name: string]: unknown;
|
|
522
|
+
};
|
|
523
|
+
content: {
|
|
524
|
+
"application/json": {
|
|
525
|
+
itemId: string;
|
|
526
|
+
/** @enum {string} */
|
|
527
|
+
kind: "file" | "folder";
|
|
528
|
+
name: string;
|
|
529
|
+
parentItemId: string;
|
|
530
|
+
purgeAfterEpochMilliseconds: number | null;
|
|
531
|
+
revision: number;
|
|
532
|
+
/** @enum {string} */
|
|
533
|
+
state: "active" | "trashed" | "deleting";
|
|
534
|
+
volumeId: string;
|
|
535
|
+
workspaceId: string;
|
|
536
|
+
};
|
|
537
|
+
};
|
|
538
|
+
};
|
|
539
|
+
/** @description A valid Drive user bearer credential is required. */
|
|
540
|
+
401: {
|
|
541
|
+
headers: {
|
|
542
|
+
[name: string]: unknown;
|
|
543
|
+
};
|
|
544
|
+
content: {
|
|
545
|
+
"application/json": {
|
|
546
|
+
error: {
|
|
547
|
+
/** @enum {string} */
|
|
548
|
+
code: "authentication_required";
|
|
549
|
+
details: Record<string, never>;
|
|
550
|
+
/** @enum {string} */
|
|
551
|
+
message: "Authentication is required.";
|
|
552
|
+
requestId: string;
|
|
553
|
+
};
|
|
554
|
+
};
|
|
555
|
+
};
|
|
556
|
+
};
|
|
557
|
+
/** @description The discoverable item does not permit this lifecycle action. */
|
|
558
|
+
403: {
|
|
559
|
+
headers: {
|
|
560
|
+
[name: string]: unknown;
|
|
561
|
+
};
|
|
562
|
+
content: {
|
|
563
|
+
"application/json": {
|
|
564
|
+
error: {
|
|
565
|
+
/** @enum {string} */
|
|
566
|
+
code: "permission_denied";
|
|
567
|
+
details: Record<string, never>;
|
|
568
|
+
/** @enum {string} */
|
|
569
|
+
message: "The requested action is not permitted.";
|
|
570
|
+
requestId: string;
|
|
571
|
+
};
|
|
572
|
+
};
|
|
573
|
+
};
|
|
574
|
+
};
|
|
575
|
+
/** @description The item or destination is absent or undiscoverable. */
|
|
576
|
+
404: {
|
|
577
|
+
headers: {
|
|
578
|
+
[name: string]: unknown;
|
|
579
|
+
};
|
|
580
|
+
content: {
|
|
581
|
+
"application/json": {
|
|
582
|
+
error: {
|
|
583
|
+
/** @enum {string} */
|
|
584
|
+
code: "resource_not_found";
|
|
585
|
+
details: Record<string, never>;
|
|
586
|
+
/** @enum {string} */
|
|
587
|
+
message: "The requested resource was not found.";
|
|
588
|
+
requestId: string;
|
|
589
|
+
};
|
|
590
|
+
};
|
|
591
|
+
};
|
|
592
|
+
};
|
|
593
|
+
/** @description The key conflicts, the precondition is stale, or lifecycle authority changed. */
|
|
594
|
+
409: {
|
|
595
|
+
headers: {
|
|
596
|
+
[name: string]: unknown;
|
|
597
|
+
};
|
|
598
|
+
content: {
|
|
599
|
+
"application/json": {
|
|
600
|
+
error: {
|
|
601
|
+
/** @enum {string} */
|
|
602
|
+
code: "idempotency_conflict";
|
|
603
|
+
details: Record<string, never>;
|
|
604
|
+
/** @enum {string} */
|
|
605
|
+
message: "The idempotency key conflicts with an earlier request.";
|
|
606
|
+
requestId: string;
|
|
607
|
+
};
|
|
608
|
+
} | {
|
|
609
|
+
error: {
|
|
610
|
+
/** @enum {string} */
|
|
611
|
+
code: "precondition_failed";
|
|
612
|
+
details: Record<string, never>;
|
|
613
|
+
/** @enum {string} */
|
|
614
|
+
message: "The request precondition failed.";
|
|
615
|
+
requestId: string;
|
|
616
|
+
};
|
|
617
|
+
};
|
|
618
|
+
};
|
|
619
|
+
};
|
|
620
|
+
/** @description The path, query, headers, key, or strict body is invalid. */
|
|
621
|
+
422: {
|
|
622
|
+
headers: {
|
|
623
|
+
[name: string]: unknown;
|
|
624
|
+
};
|
|
625
|
+
content: {
|
|
626
|
+
"application/json": {
|
|
627
|
+
error: {
|
|
628
|
+
/** @enum {string} */
|
|
629
|
+
code: "invalid_request";
|
|
630
|
+
details: Record<string, never>;
|
|
631
|
+
/** @enum {string} */
|
|
632
|
+
message: "The request is invalid.";
|
|
633
|
+
requestId: string;
|
|
634
|
+
};
|
|
635
|
+
} | {
|
|
636
|
+
error: {
|
|
637
|
+
/** @enum {string} */
|
|
638
|
+
code: "invalid_idempotency_key";
|
|
639
|
+
details: Record<string, never>;
|
|
640
|
+
/** @enum {string} */
|
|
641
|
+
message: "The idempotency key is invalid.";
|
|
642
|
+
requestId: string;
|
|
643
|
+
};
|
|
644
|
+
};
|
|
645
|
+
};
|
|
646
|
+
};
|
|
647
|
+
/** @description Identity, D1, authorization, capacity, or archive authority is unavailable. */
|
|
648
|
+
503: {
|
|
649
|
+
headers: {
|
|
650
|
+
[name: string]: unknown;
|
|
651
|
+
};
|
|
652
|
+
content: {
|
|
653
|
+
"application/json": {
|
|
654
|
+
error: {
|
|
655
|
+
/** @enum {string} */
|
|
656
|
+
code: "identity_authority_unavailable";
|
|
657
|
+
details: Record<string, never>;
|
|
658
|
+
/** @enum {string} */
|
|
659
|
+
message: "Authentication is temporarily unavailable.";
|
|
660
|
+
requestId: string;
|
|
661
|
+
};
|
|
662
|
+
} | {
|
|
663
|
+
error: {
|
|
664
|
+
/** @enum {string} */
|
|
665
|
+
code: "service_unavailable";
|
|
666
|
+
details: Record<string, never>;
|
|
667
|
+
/** @enum {string} */
|
|
668
|
+
message: "The service is temporarily unavailable.";
|
|
669
|
+
requestId: string;
|
|
670
|
+
};
|
|
671
|
+
};
|
|
672
|
+
};
|
|
673
|
+
};
|
|
674
|
+
};
|
|
675
|
+
};
|
|
135
676
|
listFolderChildren: {
|
|
136
677
|
parameters: {
|
|
137
678
|
query?: {
|
|
@@ -147,7 +688,1952 @@ interface operations {
|
|
|
147
688
|
};
|
|
148
689
|
requestBody?: never;
|
|
149
690
|
responses: {
|
|
150
|
-
/** @description At most 50 active children in stable item-ID order. */
|
|
691
|
+
/** @description At most 50 active children in stable item-ID order. */
|
|
692
|
+
200: {
|
|
693
|
+
headers: {
|
|
694
|
+
[name: string]: unknown;
|
|
695
|
+
};
|
|
696
|
+
content: {
|
|
697
|
+
"application/json": {
|
|
698
|
+
items: {
|
|
699
|
+
itemId: string;
|
|
700
|
+
/** @enum {string} */
|
|
701
|
+
kind: "file" | "folder";
|
|
702
|
+
/**
|
|
703
|
+
* Format: finueva-safe-filename
|
|
704
|
+
* @description NFC-normalized filename of at most 255 Unicode code points and 255 UTF-8 bytes. Slash, backslash, control characters, U+2028/U+2029, trailing dot/space, dot entries, and Windows reserved base names are forbidden.
|
|
705
|
+
*/
|
|
706
|
+
name: string;
|
|
707
|
+
parentItemId: string;
|
|
708
|
+
revision: number;
|
|
709
|
+
/** @enum {string} */
|
|
710
|
+
visibility: "workspace" | "restricted";
|
|
711
|
+
volumeId: string;
|
|
712
|
+
workspaceId: string;
|
|
713
|
+
}[];
|
|
714
|
+
nextCursor: string | null;
|
|
715
|
+
};
|
|
716
|
+
};
|
|
717
|
+
};
|
|
718
|
+
/** @description A valid Drive user bearer credential is required. */
|
|
719
|
+
401: {
|
|
720
|
+
headers: {
|
|
721
|
+
[name: string]: unknown;
|
|
722
|
+
};
|
|
723
|
+
content: {
|
|
724
|
+
"application/json": {
|
|
725
|
+
error: {
|
|
726
|
+
/** @enum {string} */
|
|
727
|
+
code: "authentication_required";
|
|
728
|
+
details: Record<string, never>;
|
|
729
|
+
/** @enum {string} */
|
|
730
|
+
message: "Authentication is required.";
|
|
731
|
+
requestId: string;
|
|
732
|
+
};
|
|
733
|
+
};
|
|
734
|
+
};
|
|
735
|
+
};
|
|
736
|
+
/** @description Managed storage is disabled for the canonical workspace entitlement. */
|
|
737
|
+
403: {
|
|
738
|
+
headers: {
|
|
739
|
+
[name: string]: unknown;
|
|
740
|
+
};
|
|
741
|
+
content: {
|
|
742
|
+
"application/json": {
|
|
743
|
+
error: {
|
|
744
|
+
/** @enum {string} */
|
|
745
|
+
code: "permission_denied";
|
|
746
|
+
details: Record<string, never>;
|
|
747
|
+
/** @enum {string} */
|
|
748
|
+
message: "The requested action is not permitted.";
|
|
749
|
+
requestId: string;
|
|
750
|
+
};
|
|
751
|
+
};
|
|
752
|
+
};
|
|
753
|
+
};
|
|
754
|
+
/** @description The parent is absent or undiscoverable. */
|
|
755
|
+
404: {
|
|
756
|
+
headers: {
|
|
757
|
+
[name: string]: unknown;
|
|
758
|
+
};
|
|
759
|
+
content: {
|
|
760
|
+
"application/json": {
|
|
761
|
+
error: {
|
|
762
|
+
/** @enum {string} */
|
|
763
|
+
code: "resource_not_found";
|
|
764
|
+
details: Record<string, never>;
|
|
765
|
+
/** @enum {string} */
|
|
766
|
+
message: "The requested resource was not found.";
|
|
767
|
+
requestId: string;
|
|
768
|
+
};
|
|
769
|
+
};
|
|
770
|
+
};
|
|
771
|
+
};
|
|
772
|
+
/** @description Folder authority changed after preflight. */
|
|
773
|
+
409: {
|
|
774
|
+
headers: {
|
|
775
|
+
[name: string]: unknown;
|
|
776
|
+
};
|
|
777
|
+
content: {
|
|
778
|
+
"application/json": {
|
|
779
|
+
error: {
|
|
780
|
+
/** @enum {string} */
|
|
781
|
+
code: "precondition_failed";
|
|
782
|
+
details: Record<string, never>;
|
|
783
|
+
/** @enum {string} */
|
|
784
|
+
message: "The request precondition failed.";
|
|
785
|
+
requestId: string;
|
|
786
|
+
};
|
|
787
|
+
};
|
|
788
|
+
};
|
|
789
|
+
};
|
|
790
|
+
/** @description The path, query, or cursor is invalid. */
|
|
791
|
+
422: {
|
|
792
|
+
headers: {
|
|
793
|
+
[name: string]: unknown;
|
|
794
|
+
};
|
|
795
|
+
content: {
|
|
796
|
+
"application/json": {
|
|
797
|
+
error: {
|
|
798
|
+
/** @enum {string} */
|
|
799
|
+
code: "invalid_request";
|
|
800
|
+
details: Record<string, never>;
|
|
801
|
+
/** @enum {string} */
|
|
802
|
+
message: "The request is invalid.";
|
|
803
|
+
requestId: string;
|
|
804
|
+
};
|
|
805
|
+
} | {
|
|
806
|
+
error: {
|
|
807
|
+
/** @enum {string} */
|
|
808
|
+
code: "invalid_pagination_cursor";
|
|
809
|
+
details: Record<string, never>;
|
|
810
|
+
/** @enum {string} */
|
|
811
|
+
message: "The pagination cursor is invalid.";
|
|
812
|
+
requestId: string;
|
|
813
|
+
};
|
|
814
|
+
};
|
|
815
|
+
};
|
|
816
|
+
};
|
|
817
|
+
/** @description Identity authority, D1, authorization evidence, or required cursor keys are unavailable. */
|
|
818
|
+
503: {
|
|
819
|
+
headers: {
|
|
820
|
+
[name: string]: unknown;
|
|
821
|
+
};
|
|
822
|
+
content: {
|
|
823
|
+
"application/json": {
|
|
824
|
+
error: {
|
|
825
|
+
/** @enum {string} */
|
|
826
|
+
code: "identity_authority_unavailable";
|
|
827
|
+
details: Record<string, never>;
|
|
828
|
+
/** @enum {string} */
|
|
829
|
+
message: "Authentication is temporarily unavailable.";
|
|
830
|
+
requestId: string;
|
|
831
|
+
};
|
|
832
|
+
} | {
|
|
833
|
+
error: {
|
|
834
|
+
/** @enum {string} */
|
|
835
|
+
code: "service_unavailable";
|
|
836
|
+
details: Record<string, never>;
|
|
837
|
+
/** @enum {string} */
|
|
838
|
+
message: "The service is temporarily unavailable.";
|
|
839
|
+
requestId: string;
|
|
840
|
+
};
|
|
841
|
+
};
|
|
842
|
+
};
|
|
843
|
+
};
|
|
844
|
+
};
|
|
845
|
+
};
|
|
846
|
+
createFolder: {
|
|
847
|
+
parameters: {
|
|
848
|
+
query?: never;
|
|
849
|
+
header: {
|
|
850
|
+
"Idempotency-Key": string;
|
|
851
|
+
};
|
|
852
|
+
path: {
|
|
853
|
+
workspaceId: string;
|
|
854
|
+
itemId: string;
|
|
855
|
+
};
|
|
856
|
+
cookie?: never;
|
|
857
|
+
};
|
|
858
|
+
requestBody: {
|
|
859
|
+
content: {
|
|
860
|
+
"application/json": {
|
|
861
|
+
/**
|
|
862
|
+
* Format: finueva-safe-filename
|
|
863
|
+
* @description NFC-normalized filename of at most 255 Unicode code points and 255 UTF-8 bytes. Slash, backslash, control characters, U+2028/U+2029, trailing dot/space, dot entries, and Windows reserved base names are forbidden.
|
|
864
|
+
*/
|
|
865
|
+
name: string;
|
|
866
|
+
};
|
|
867
|
+
};
|
|
868
|
+
};
|
|
869
|
+
responses: {
|
|
870
|
+
/** @description The exact committed folder is replayed. */
|
|
871
|
+
200: {
|
|
872
|
+
headers: {
|
|
873
|
+
[name: string]: unknown;
|
|
874
|
+
};
|
|
875
|
+
content: {
|
|
876
|
+
"application/json": {
|
|
877
|
+
itemId: string;
|
|
878
|
+
/** @enum {string} */
|
|
879
|
+
kind: "file" | "folder";
|
|
880
|
+
/**
|
|
881
|
+
* Format: finueva-safe-filename
|
|
882
|
+
* @description NFC-normalized filename of at most 255 Unicode code points and 255 UTF-8 bytes. Slash, backslash, control characters, U+2028/U+2029, trailing dot/space, dot entries, and Windows reserved base names are forbidden.
|
|
883
|
+
*/
|
|
884
|
+
name: string;
|
|
885
|
+
parentItemId: string;
|
|
886
|
+
revision: number;
|
|
887
|
+
/** @enum {string} */
|
|
888
|
+
visibility: "workspace" | "restricted";
|
|
889
|
+
volumeId: string;
|
|
890
|
+
workspaceId: string;
|
|
891
|
+
};
|
|
892
|
+
};
|
|
893
|
+
};
|
|
894
|
+
/** @description The folder is committed. */
|
|
895
|
+
201: {
|
|
896
|
+
headers: {
|
|
897
|
+
[name: string]: unknown;
|
|
898
|
+
};
|
|
899
|
+
content: {
|
|
900
|
+
"application/json": {
|
|
901
|
+
itemId: string;
|
|
902
|
+
/** @enum {string} */
|
|
903
|
+
kind: "file" | "folder";
|
|
904
|
+
/**
|
|
905
|
+
* Format: finueva-safe-filename
|
|
906
|
+
* @description NFC-normalized filename of at most 255 Unicode code points and 255 UTF-8 bytes. Slash, backslash, control characters, U+2028/U+2029, trailing dot/space, dot entries, and Windows reserved base names are forbidden.
|
|
907
|
+
*/
|
|
908
|
+
name: string;
|
|
909
|
+
parentItemId: string;
|
|
910
|
+
revision: number;
|
|
911
|
+
/** @enum {string} */
|
|
912
|
+
visibility: "workspace" | "restricted";
|
|
913
|
+
volumeId: string;
|
|
914
|
+
workspaceId: string;
|
|
915
|
+
};
|
|
916
|
+
};
|
|
917
|
+
};
|
|
918
|
+
/** @description A valid Drive user bearer credential is required. */
|
|
919
|
+
401: {
|
|
920
|
+
headers: {
|
|
921
|
+
[name: string]: unknown;
|
|
922
|
+
};
|
|
923
|
+
content: {
|
|
924
|
+
"application/json": {
|
|
925
|
+
error: {
|
|
926
|
+
/** @enum {string} */
|
|
927
|
+
code: "authentication_required";
|
|
928
|
+
details: Record<string, never>;
|
|
929
|
+
/** @enum {string} */
|
|
930
|
+
message: "Authentication is required.";
|
|
931
|
+
requestId: string;
|
|
932
|
+
};
|
|
933
|
+
};
|
|
934
|
+
};
|
|
935
|
+
};
|
|
936
|
+
/** @description The discoverable parent does not permit folder creation. */
|
|
937
|
+
403: {
|
|
938
|
+
headers: {
|
|
939
|
+
[name: string]: unknown;
|
|
940
|
+
};
|
|
941
|
+
content: {
|
|
942
|
+
"application/json": {
|
|
943
|
+
error: {
|
|
944
|
+
/** @enum {string} */
|
|
945
|
+
code: "permission_denied";
|
|
946
|
+
details: Record<string, never>;
|
|
947
|
+
/** @enum {string} */
|
|
948
|
+
message: "The requested action is not permitted.";
|
|
949
|
+
requestId: string;
|
|
950
|
+
};
|
|
951
|
+
};
|
|
952
|
+
};
|
|
953
|
+
};
|
|
954
|
+
/** @description The parent is absent or undiscoverable. */
|
|
955
|
+
404: {
|
|
956
|
+
headers: {
|
|
957
|
+
[name: string]: unknown;
|
|
958
|
+
};
|
|
959
|
+
content: {
|
|
960
|
+
"application/json": {
|
|
961
|
+
error: {
|
|
962
|
+
/** @enum {string} */
|
|
963
|
+
code: "resource_not_found";
|
|
964
|
+
details: Record<string, never>;
|
|
965
|
+
/** @enum {string} */
|
|
966
|
+
message: "The requested resource was not found.";
|
|
967
|
+
requestId: string;
|
|
968
|
+
};
|
|
969
|
+
};
|
|
970
|
+
};
|
|
971
|
+
};
|
|
972
|
+
/** @description The idempotency key conflicts or folder authority changed after preflight. */
|
|
973
|
+
409: {
|
|
974
|
+
headers: {
|
|
975
|
+
[name: string]: unknown;
|
|
976
|
+
};
|
|
977
|
+
content: {
|
|
978
|
+
"application/json": {
|
|
979
|
+
error: {
|
|
980
|
+
/** @enum {string} */
|
|
981
|
+
code: "idempotency_conflict";
|
|
982
|
+
details: Record<string, never>;
|
|
983
|
+
/** @enum {string} */
|
|
984
|
+
message: "The idempotency key conflicts with an earlier request.";
|
|
985
|
+
requestId: string;
|
|
986
|
+
};
|
|
987
|
+
} | {
|
|
988
|
+
error: {
|
|
989
|
+
/** @enum {string} */
|
|
990
|
+
code: "precondition_failed";
|
|
991
|
+
details: Record<string, never>;
|
|
992
|
+
/** @enum {string} */
|
|
993
|
+
message: "The request precondition failed.";
|
|
994
|
+
requestId: string;
|
|
995
|
+
};
|
|
996
|
+
};
|
|
997
|
+
};
|
|
998
|
+
};
|
|
999
|
+
/** @description The path, idempotency key, body, or name is invalid. */
|
|
1000
|
+
422: {
|
|
1001
|
+
headers: {
|
|
1002
|
+
[name: string]: unknown;
|
|
1003
|
+
};
|
|
1004
|
+
content: {
|
|
1005
|
+
"application/json": {
|
|
1006
|
+
error: {
|
|
1007
|
+
/** @enum {string} */
|
|
1008
|
+
code: "invalid_request";
|
|
1009
|
+
details: Record<string, never>;
|
|
1010
|
+
/** @enum {string} */
|
|
1011
|
+
message: "The request is invalid.";
|
|
1012
|
+
requestId: string;
|
|
1013
|
+
};
|
|
1014
|
+
} | {
|
|
1015
|
+
error: {
|
|
1016
|
+
/** @enum {string} */
|
|
1017
|
+
code: "invalid_idempotency_key";
|
|
1018
|
+
details: Record<string, never>;
|
|
1019
|
+
/** @enum {string} */
|
|
1020
|
+
message: "The idempotency key is invalid.";
|
|
1021
|
+
requestId: string;
|
|
1022
|
+
};
|
|
1023
|
+
};
|
|
1024
|
+
};
|
|
1025
|
+
};
|
|
1026
|
+
/** @description Identity authority, D1, authorization evidence, or trusted capacity evidence is unavailable. */
|
|
1027
|
+
503: {
|
|
1028
|
+
headers: {
|
|
1029
|
+
[name: string]: unknown;
|
|
1030
|
+
};
|
|
1031
|
+
content: {
|
|
1032
|
+
"application/json": {
|
|
1033
|
+
error: {
|
|
1034
|
+
/** @enum {string} */
|
|
1035
|
+
code: "identity_authority_unavailable";
|
|
1036
|
+
details: Record<string, never>;
|
|
1037
|
+
/** @enum {string} */
|
|
1038
|
+
message: "Authentication is temporarily unavailable.";
|
|
1039
|
+
requestId: string;
|
|
1040
|
+
};
|
|
1041
|
+
} | {
|
|
1042
|
+
error: {
|
|
1043
|
+
/** @enum {string} */
|
|
1044
|
+
code: "service_unavailable";
|
|
1045
|
+
details: Record<string, never>;
|
|
1046
|
+
/** @enum {string} */
|
|
1047
|
+
message: "The service is temporarily unavailable.";
|
|
1048
|
+
requestId: string;
|
|
1049
|
+
};
|
|
1050
|
+
};
|
|
1051
|
+
};
|
|
1052
|
+
};
|
|
1053
|
+
};
|
|
1054
|
+
};
|
|
1055
|
+
createDownload: {
|
|
1056
|
+
parameters: {
|
|
1057
|
+
query?: {
|
|
1058
|
+
versionId?: string;
|
|
1059
|
+
};
|
|
1060
|
+
header: {
|
|
1061
|
+
"Idempotency-Key": string;
|
|
1062
|
+
"Download-Method"?: string;
|
|
1063
|
+
Range?: string;
|
|
1064
|
+
"If-Match"?: string;
|
|
1065
|
+
"If-None-Match"?: string;
|
|
1066
|
+
"If-Range"?: string;
|
|
1067
|
+
};
|
|
1068
|
+
path: {
|
|
1069
|
+
workspaceId: string;
|
|
1070
|
+
itemId: string;
|
|
1071
|
+
};
|
|
1072
|
+
cookie?: never;
|
|
1073
|
+
};
|
|
1074
|
+
requestBody?: never;
|
|
1075
|
+
responses: {
|
|
1076
|
+
/** @description A short-lived immutable archive capability. */
|
|
1077
|
+
200: {
|
|
1078
|
+
headers: {
|
|
1079
|
+
[name: string]: unknown;
|
|
1080
|
+
};
|
|
1081
|
+
content: {
|
|
1082
|
+
"application/json": {
|
|
1083
|
+
expiresAtEpochMilliseconds: number;
|
|
1084
|
+
headers: {
|
|
1085
|
+
[key: string]: string;
|
|
1086
|
+
};
|
|
1087
|
+
/** @enum {string} */
|
|
1088
|
+
method: "GET" | "HEAD";
|
|
1089
|
+
/** @enum {string} */
|
|
1090
|
+
mode: "presigned-single";
|
|
1091
|
+
response: {
|
|
1092
|
+
/** @enum {string} */
|
|
1093
|
+
acceptRanges: "bytes";
|
|
1094
|
+
byteLength: number;
|
|
1095
|
+
contentDisposition: string;
|
|
1096
|
+
contentLength: number;
|
|
1097
|
+
contentRange: string | null;
|
|
1098
|
+
contentType: string;
|
|
1099
|
+
etag: string;
|
|
1100
|
+
status: 200 | 206;
|
|
1101
|
+
versionId: string;
|
|
1102
|
+
};
|
|
1103
|
+
/** Format: uri */
|
|
1104
|
+
url: string;
|
|
1105
|
+
};
|
|
1106
|
+
};
|
|
1107
|
+
};
|
|
1108
|
+
/** @description One idempotent cold archive retrieval operation. */
|
|
1109
|
+
202: {
|
|
1110
|
+
headers: {
|
|
1111
|
+
[name: string]: unknown;
|
|
1112
|
+
};
|
|
1113
|
+
content: {
|
|
1114
|
+
"application/json": {
|
|
1115
|
+
/** @enum {string} */
|
|
1116
|
+
mode: "restore-pending";
|
|
1117
|
+
operationId: string;
|
|
1118
|
+
pollAfterSeconds: number;
|
|
1119
|
+
/** @enum {string} */
|
|
1120
|
+
state: "pending" | "restoring";
|
|
1121
|
+
versionId: string;
|
|
1122
|
+
};
|
|
1123
|
+
};
|
|
1124
|
+
};
|
|
1125
|
+
/** @description The selected immutable representation is not modified. */
|
|
1126
|
+
304: {
|
|
1127
|
+
headers: {
|
|
1128
|
+
[name: string]: unknown;
|
|
1129
|
+
};
|
|
1130
|
+
content?: never;
|
|
1131
|
+
};
|
|
1132
|
+
/** @description A valid Drive user bearer credential is required. */
|
|
1133
|
+
401: {
|
|
1134
|
+
headers: {
|
|
1135
|
+
[name: string]: unknown;
|
|
1136
|
+
};
|
|
1137
|
+
content: {
|
|
1138
|
+
"application/json": {
|
|
1139
|
+
error: {
|
|
1140
|
+
/** @enum {string} */
|
|
1141
|
+
code: "authentication_required";
|
|
1142
|
+
details: Record<string, never>;
|
|
1143
|
+
message: string;
|
|
1144
|
+
requestId: string;
|
|
1145
|
+
};
|
|
1146
|
+
};
|
|
1147
|
+
};
|
|
1148
|
+
};
|
|
1149
|
+
/** @description The visible file cannot be downloaded under current authority. */
|
|
1150
|
+
403: {
|
|
1151
|
+
headers: {
|
|
1152
|
+
[name: string]: unknown;
|
|
1153
|
+
};
|
|
1154
|
+
content: {
|
|
1155
|
+
"application/json": {
|
|
1156
|
+
error: {
|
|
1157
|
+
/** @enum {string} */
|
|
1158
|
+
code: "permission_denied";
|
|
1159
|
+
details: Record<string, never>;
|
|
1160
|
+
message: string;
|
|
1161
|
+
requestId: string;
|
|
1162
|
+
};
|
|
1163
|
+
};
|
|
1164
|
+
};
|
|
1165
|
+
};
|
|
1166
|
+
/** @description The file or selected version is absent or undiscoverable. */
|
|
1167
|
+
404: {
|
|
1168
|
+
headers: {
|
|
1169
|
+
[name: string]: unknown;
|
|
1170
|
+
};
|
|
1171
|
+
content: {
|
|
1172
|
+
"application/json": {
|
|
1173
|
+
error: {
|
|
1174
|
+
/** @enum {string} */
|
|
1175
|
+
code: "resource_not_found";
|
|
1176
|
+
details: Record<string, never>;
|
|
1177
|
+
message: string;
|
|
1178
|
+
requestId: string;
|
|
1179
|
+
};
|
|
1180
|
+
};
|
|
1181
|
+
};
|
|
1182
|
+
};
|
|
1183
|
+
/** @description The retrieval key conflicts or immutable authority changed after preflight. */
|
|
1184
|
+
409: {
|
|
1185
|
+
headers: {
|
|
1186
|
+
[name: string]: unknown;
|
|
1187
|
+
};
|
|
1188
|
+
content: {
|
|
1189
|
+
"application/json": {
|
|
1190
|
+
error: {
|
|
1191
|
+
/** @enum {string} */
|
|
1192
|
+
code: "idempotency_conflict";
|
|
1193
|
+
details: Record<string, never>;
|
|
1194
|
+
message: string;
|
|
1195
|
+
requestId: string;
|
|
1196
|
+
};
|
|
1197
|
+
} | {
|
|
1198
|
+
error: {
|
|
1199
|
+
/** @enum {string} */
|
|
1200
|
+
code: "precondition_failed";
|
|
1201
|
+
details: Record<string, never>;
|
|
1202
|
+
message: string;
|
|
1203
|
+
requestId: string;
|
|
1204
|
+
};
|
|
1205
|
+
};
|
|
1206
|
+
};
|
|
1207
|
+
};
|
|
1208
|
+
/** @description A content entity-tag precondition failed. */
|
|
1209
|
+
412: {
|
|
1210
|
+
headers: {
|
|
1211
|
+
[name: string]: unknown;
|
|
1212
|
+
};
|
|
1213
|
+
content: {
|
|
1214
|
+
"application/json": {
|
|
1215
|
+
error: {
|
|
1216
|
+
/** @enum {string} */
|
|
1217
|
+
code: "precondition_failed";
|
|
1218
|
+
details: Record<string, never>;
|
|
1219
|
+
message: string;
|
|
1220
|
+
requestId: string;
|
|
1221
|
+
};
|
|
1222
|
+
};
|
|
1223
|
+
};
|
|
1224
|
+
};
|
|
1225
|
+
/** @description The valid single range does not overlap the representation. */
|
|
1226
|
+
416: {
|
|
1227
|
+
headers: {
|
|
1228
|
+
[name: string]: unknown;
|
|
1229
|
+
};
|
|
1230
|
+
content: {
|
|
1231
|
+
"application/json": {
|
|
1232
|
+
error: {
|
|
1233
|
+
/** @enum {string} */
|
|
1234
|
+
code: "range_not_satisfiable";
|
|
1235
|
+
details: Record<string, never>;
|
|
1236
|
+
message: string;
|
|
1237
|
+
requestId: string;
|
|
1238
|
+
};
|
|
1239
|
+
};
|
|
1240
|
+
};
|
|
1241
|
+
};
|
|
1242
|
+
/** @description The path, query, headers, or unexpected body is invalid. */
|
|
1243
|
+
422: {
|
|
1244
|
+
headers: {
|
|
1245
|
+
[name: string]: unknown;
|
|
1246
|
+
};
|
|
1247
|
+
content: {
|
|
1248
|
+
"application/json": {
|
|
1249
|
+
error: {
|
|
1250
|
+
/** @enum {string} */
|
|
1251
|
+
code: "invalid_request";
|
|
1252
|
+
details: Record<string, never>;
|
|
1253
|
+
message: string;
|
|
1254
|
+
requestId: string;
|
|
1255
|
+
};
|
|
1256
|
+
};
|
|
1257
|
+
};
|
|
1258
|
+
};
|
|
1259
|
+
/** @description Identity, D1, authorization, capacity, or archive authority is unavailable. */
|
|
1260
|
+
503: {
|
|
1261
|
+
headers: {
|
|
1262
|
+
[name: string]: unknown;
|
|
1263
|
+
};
|
|
1264
|
+
content: {
|
|
1265
|
+
"application/json": {
|
|
1266
|
+
error: {
|
|
1267
|
+
/** @enum {string} */
|
|
1268
|
+
code: "identity_authority_unavailable";
|
|
1269
|
+
details: Record<string, never>;
|
|
1270
|
+
message: string;
|
|
1271
|
+
requestId: string;
|
|
1272
|
+
};
|
|
1273
|
+
} | {
|
|
1274
|
+
error: {
|
|
1275
|
+
/** @enum {string} */
|
|
1276
|
+
code: "service_unavailable";
|
|
1277
|
+
details: Record<string, never>;
|
|
1278
|
+
message: string;
|
|
1279
|
+
requestId: string;
|
|
1280
|
+
};
|
|
1281
|
+
};
|
|
1282
|
+
};
|
|
1283
|
+
};
|
|
1284
|
+
};
|
|
1285
|
+
};
|
|
1286
|
+
listItemPermissions: {
|
|
1287
|
+
parameters: {
|
|
1288
|
+
query?: {
|
|
1289
|
+
limit?: number;
|
|
1290
|
+
cursor?: string;
|
|
1291
|
+
};
|
|
1292
|
+
header?: never;
|
|
1293
|
+
path: {
|
|
1294
|
+
workspaceId: string;
|
|
1295
|
+
itemId: string;
|
|
1296
|
+
};
|
|
1297
|
+
cookie?: never;
|
|
1298
|
+
};
|
|
1299
|
+
requestBody?: never;
|
|
1300
|
+
responses: {
|
|
1301
|
+
/** @description A stable permission page. */
|
|
1302
|
+
200: {
|
|
1303
|
+
headers: {
|
|
1304
|
+
/** @description Current direct collection precondition for POST on this item. */
|
|
1305
|
+
"Drive-Permission-Collection-ETag"?: string;
|
|
1306
|
+
/** @description Strong validator for the exact returned permission-list representation. */
|
|
1307
|
+
ETag?: string;
|
|
1308
|
+
[name: string]: unknown;
|
|
1309
|
+
};
|
|
1310
|
+
content: {
|
|
1311
|
+
"application/json": {
|
|
1312
|
+
collectionEtag: string;
|
|
1313
|
+
collectionRevision: number;
|
|
1314
|
+
items: {
|
|
1315
|
+
actions: ("items:content:read" | "items:create" | "items:delete" | "items:metadata:read" | "items:permissions:read" | "items:update")[];
|
|
1316
|
+
/** @enum {string} */
|
|
1317
|
+
availability: "active" | "expired" | "revoked";
|
|
1318
|
+
etag: string;
|
|
1319
|
+
expiresAtEpochMilliseconds: number | null;
|
|
1320
|
+
grantId: string;
|
|
1321
|
+
grantee: {
|
|
1322
|
+
/** @enum {string} */
|
|
1323
|
+
type: "user";
|
|
1324
|
+
userId: string;
|
|
1325
|
+
} | {
|
|
1326
|
+
teamId: string;
|
|
1327
|
+
/** @enum {string} */
|
|
1328
|
+
type: "team";
|
|
1329
|
+
};
|
|
1330
|
+
revision: number;
|
|
1331
|
+
/** @enum {string} */
|
|
1332
|
+
source: "direct" | "inherited";
|
|
1333
|
+
sourceItemId: string;
|
|
1334
|
+
}[];
|
|
1335
|
+
nextCursor: string | null;
|
|
1336
|
+
};
|
|
1337
|
+
};
|
|
1338
|
+
};
|
|
1339
|
+
/** @description A valid Drive user bearer credential is required. */
|
|
1340
|
+
401: {
|
|
1341
|
+
headers: {
|
|
1342
|
+
[name: string]: unknown;
|
|
1343
|
+
};
|
|
1344
|
+
content: {
|
|
1345
|
+
"application/json": {
|
|
1346
|
+
error: {
|
|
1347
|
+
/** @enum {string} */
|
|
1348
|
+
code: "authentication_required";
|
|
1349
|
+
details: Record<string, never>;
|
|
1350
|
+
/** @enum {string} */
|
|
1351
|
+
message: "Authentication is required.";
|
|
1352
|
+
requestId: string;
|
|
1353
|
+
};
|
|
1354
|
+
};
|
|
1355
|
+
};
|
|
1356
|
+
};
|
|
1357
|
+
/** @description The discoverable item does not permit this permission operation. */
|
|
1358
|
+
403: {
|
|
1359
|
+
headers: {
|
|
1360
|
+
[name: string]: unknown;
|
|
1361
|
+
};
|
|
1362
|
+
content: {
|
|
1363
|
+
"application/json": {
|
|
1364
|
+
error: {
|
|
1365
|
+
/** @enum {string} */
|
|
1366
|
+
code: "permission_denied";
|
|
1367
|
+
details: Record<string, never>;
|
|
1368
|
+
/** @enum {string} */
|
|
1369
|
+
message: "The requested action is not permitted.";
|
|
1370
|
+
requestId: string;
|
|
1371
|
+
};
|
|
1372
|
+
};
|
|
1373
|
+
};
|
|
1374
|
+
};
|
|
1375
|
+
/** @description The item, principal, or direct grant is absent or undiscoverable. */
|
|
1376
|
+
404: {
|
|
1377
|
+
headers: {
|
|
1378
|
+
[name: string]: unknown;
|
|
1379
|
+
};
|
|
1380
|
+
content: {
|
|
1381
|
+
"application/json": {
|
|
1382
|
+
error: {
|
|
1383
|
+
/** @enum {string} */
|
|
1384
|
+
code: "resource_not_found";
|
|
1385
|
+
details: Record<string, never>;
|
|
1386
|
+
/** @enum {string} */
|
|
1387
|
+
message: "The requested resource was not found.";
|
|
1388
|
+
requestId: string;
|
|
1389
|
+
};
|
|
1390
|
+
};
|
|
1391
|
+
};
|
|
1392
|
+
};
|
|
1393
|
+
/** @description The supplied revision or post-preflight authority is stale. */
|
|
1394
|
+
412: {
|
|
1395
|
+
headers: {
|
|
1396
|
+
[name: string]: unknown;
|
|
1397
|
+
};
|
|
1398
|
+
content: {
|
|
1399
|
+
"application/json": {
|
|
1400
|
+
error: {
|
|
1401
|
+
/** @enum {string} */
|
|
1402
|
+
code: "precondition_failed";
|
|
1403
|
+
details: Record<string, never>;
|
|
1404
|
+
/** @enum {string} */
|
|
1405
|
+
message: "The request precondition failed.";
|
|
1406
|
+
requestId: string;
|
|
1407
|
+
};
|
|
1408
|
+
};
|
|
1409
|
+
};
|
|
1410
|
+
};
|
|
1411
|
+
/** @description The path, query, headers, or pagination cursor are invalid. */
|
|
1412
|
+
422: {
|
|
1413
|
+
headers: {
|
|
1414
|
+
[name: string]: unknown;
|
|
1415
|
+
};
|
|
1416
|
+
content: {
|
|
1417
|
+
"application/json": {
|
|
1418
|
+
error: {
|
|
1419
|
+
/** @enum {string} */
|
|
1420
|
+
code: "invalid_request";
|
|
1421
|
+
details: Record<string, never>;
|
|
1422
|
+
/** @enum {string} */
|
|
1423
|
+
message: "The request is invalid.";
|
|
1424
|
+
requestId: string;
|
|
1425
|
+
};
|
|
1426
|
+
} | {
|
|
1427
|
+
error: {
|
|
1428
|
+
/** @enum {string} */
|
|
1429
|
+
code: "invalid_pagination_cursor";
|
|
1430
|
+
details: Record<string, never>;
|
|
1431
|
+
/** @enum {string} */
|
|
1432
|
+
message: "The pagination cursor is invalid.";
|
|
1433
|
+
requestId: string;
|
|
1434
|
+
};
|
|
1435
|
+
};
|
|
1436
|
+
};
|
|
1437
|
+
};
|
|
1438
|
+
/** @description Identity, D1, authorization, audit, cursor, or capacity authority is unavailable. */
|
|
1439
|
+
503: {
|
|
1440
|
+
headers: {
|
|
1441
|
+
[name: string]: unknown;
|
|
1442
|
+
};
|
|
1443
|
+
content: {
|
|
1444
|
+
"application/json": {
|
|
1445
|
+
error: {
|
|
1446
|
+
/** @enum {string} */
|
|
1447
|
+
code: "identity_authority_unavailable";
|
|
1448
|
+
details: Record<string, never>;
|
|
1449
|
+
/** @enum {string} */
|
|
1450
|
+
message: "Authentication is temporarily unavailable.";
|
|
1451
|
+
requestId: string;
|
|
1452
|
+
};
|
|
1453
|
+
} | {
|
|
1454
|
+
error: {
|
|
1455
|
+
/** @enum {string} */
|
|
1456
|
+
code: "service_unavailable";
|
|
1457
|
+
details: Record<string, never>;
|
|
1458
|
+
/** @enum {string} */
|
|
1459
|
+
message: "The service is temporarily unavailable.";
|
|
1460
|
+
requestId: string;
|
|
1461
|
+
};
|
|
1462
|
+
};
|
|
1463
|
+
};
|
|
1464
|
+
};
|
|
1465
|
+
};
|
|
1466
|
+
};
|
|
1467
|
+
createItemPermission: {
|
|
1468
|
+
parameters: {
|
|
1469
|
+
query?: never;
|
|
1470
|
+
header: {
|
|
1471
|
+
"Idempotency-Key": string;
|
|
1472
|
+
"If-Match": string;
|
|
1473
|
+
};
|
|
1474
|
+
path: {
|
|
1475
|
+
workspaceId: string;
|
|
1476
|
+
itemId: string;
|
|
1477
|
+
};
|
|
1478
|
+
cookie?: never;
|
|
1479
|
+
};
|
|
1480
|
+
requestBody: {
|
|
1481
|
+
content: {
|
|
1482
|
+
"application/json": {
|
|
1483
|
+
actions: ("items:content:read" | "items:create" | "items:delete" | "items:metadata:read" | "items:permissions:read" | "items:update")[];
|
|
1484
|
+
expiresAtEpochMilliseconds: number | null;
|
|
1485
|
+
grantee: {
|
|
1486
|
+
/** @enum {string} */
|
|
1487
|
+
type: "user";
|
|
1488
|
+
userId: string;
|
|
1489
|
+
} | {
|
|
1490
|
+
teamId: string;
|
|
1491
|
+
/** @enum {string} */
|
|
1492
|
+
type: "team";
|
|
1493
|
+
};
|
|
1494
|
+
};
|
|
1495
|
+
};
|
|
1496
|
+
};
|
|
1497
|
+
responses: {
|
|
1498
|
+
/** @description The exact committed result was replayed. */
|
|
1499
|
+
200: {
|
|
1500
|
+
headers: {
|
|
1501
|
+
/** @description Current direct collection precondition for the next POST. */
|
|
1502
|
+
"Drive-Permission-Collection-ETag"?: string;
|
|
1503
|
+
/** @description Current direct-grant precondition for PATCH or DELETE; omitted when the current row is not mutable. */
|
|
1504
|
+
"Drive-Permission-Grant-ETag"?: string;
|
|
1505
|
+
[name: string]: unknown;
|
|
1506
|
+
};
|
|
1507
|
+
content: {
|
|
1508
|
+
"application/json": {
|
|
1509
|
+
collectionRevision: number;
|
|
1510
|
+
grant: {
|
|
1511
|
+
actions: ("items:content:read" | "items:create" | "items:delete" | "items:metadata:read" | "items:permissions:read" | "items:update")[];
|
|
1512
|
+
/** @enum {string} */
|
|
1513
|
+
availability: "active" | "expired" | "revoked";
|
|
1514
|
+
expiresAtEpochMilliseconds: number | null;
|
|
1515
|
+
grantId: string;
|
|
1516
|
+
grantee: {
|
|
1517
|
+
/** @enum {string} */
|
|
1518
|
+
type: "user";
|
|
1519
|
+
userId: string;
|
|
1520
|
+
} | {
|
|
1521
|
+
teamId: string;
|
|
1522
|
+
/** @enum {string} */
|
|
1523
|
+
type: "team";
|
|
1524
|
+
};
|
|
1525
|
+
revision: number;
|
|
1526
|
+
/** @enum {string} */
|
|
1527
|
+
source: "direct";
|
|
1528
|
+
sourceItemId: string;
|
|
1529
|
+
};
|
|
1530
|
+
/** @enum {string} */
|
|
1531
|
+
outcome: "committed" | "replayed";
|
|
1532
|
+
};
|
|
1533
|
+
};
|
|
1534
|
+
};
|
|
1535
|
+
/** @description The direct grant was committed. */
|
|
1536
|
+
201: {
|
|
1537
|
+
headers: {
|
|
1538
|
+
/** @description Current direct collection precondition for the next POST. */
|
|
1539
|
+
"Drive-Permission-Collection-ETag"?: string;
|
|
1540
|
+
/** @description Current direct-grant precondition for PATCH or DELETE; omitted when the current row is not mutable. */
|
|
1541
|
+
"Drive-Permission-Grant-ETag"?: string;
|
|
1542
|
+
[name: string]: unknown;
|
|
1543
|
+
};
|
|
1544
|
+
content: {
|
|
1545
|
+
"application/json": {
|
|
1546
|
+
collectionRevision: number;
|
|
1547
|
+
grant: {
|
|
1548
|
+
actions: ("items:content:read" | "items:create" | "items:delete" | "items:metadata:read" | "items:permissions:read" | "items:update")[];
|
|
1549
|
+
/** @enum {string} */
|
|
1550
|
+
availability: "active" | "expired" | "revoked";
|
|
1551
|
+
expiresAtEpochMilliseconds: number | null;
|
|
1552
|
+
grantId: string;
|
|
1553
|
+
grantee: {
|
|
1554
|
+
/** @enum {string} */
|
|
1555
|
+
type: "user";
|
|
1556
|
+
userId: string;
|
|
1557
|
+
} | {
|
|
1558
|
+
teamId: string;
|
|
1559
|
+
/** @enum {string} */
|
|
1560
|
+
type: "team";
|
|
1561
|
+
};
|
|
1562
|
+
revision: number;
|
|
1563
|
+
/** @enum {string} */
|
|
1564
|
+
source: "direct";
|
|
1565
|
+
sourceItemId: string;
|
|
1566
|
+
};
|
|
1567
|
+
/** @enum {string} */
|
|
1568
|
+
outcome: "committed" | "replayed";
|
|
1569
|
+
};
|
|
1570
|
+
};
|
|
1571
|
+
};
|
|
1572
|
+
/** @description A valid Drive user bearer credential is required. */
|
|
1573
|
+
401: {
|
|
1574
|
+
headers: {
|
|
1575
|
+
[name: string]: unknown;
|
|
1576
|
+
};
|
|
1577
|
+
content: {
|
|
1578
|
+
"application/json": {
|
|
1579
|
+
error: {
|
|
1580
|
+
/** @enum {string} */
|
|
1581
|
+
code: "authentication_required";
|
|
1582
|
+
details: Record<string, never>;
|
|
1583
|
+
/** @enum {string} */
|
|
1584
|
+
message: "Authentication is required.";
|
|
1585
|
+
requestId: string;
|
|
1586
|
+
};
|
|
1587
|
+
};
|
|
1588
|
+
};
|
|
1589
|
+
};
|
|
1590
|
+
/** @description The discoverable item does not permit this permission operation. */
|
|
1591
|
+
403: {
|
|
1592
|
+
headers: {
|
|
1593
|
+
[name: string]: unknown;
|
|
1594
|
+
};
|
|
1595
|
+
content: {
|
|
1596
|
+
"application/json": {
|
|
1597
|
+
error: {
|
|
1598
|
+
/** @enum {string} */
|
|
1599
|
+
code: "permission_denied";
|
|
1600
|
+
details: Record<string, never>;
|
|
1601
|
+
/** @enum {string} */
|
|
1602
|
+
message: "The requested action is not permitted.";
|
|
1603
|
+
requestId: string;
|
|
1604
|
+
};
|
|
1605
|
+
};
|
|
1606
|
+
};
|
|
1607
|
+
};
|
|
1608
|
+
/** @description The item, principal, or direct grant is absent or undiscoverable. */
|
|
1609
|
+
404: {
|
|
1610
|
+
headers: {
|
|
1611
|
+
[name: string]: unknown;
|
|
1612
|
+
};
|
|
1613
|
+
content: {
|
|
1614
|
+
"application/json": {
|
|
1615
|
+
error: {
|
|
1616
|
+
/** @enum {string} */
|
|
1617
|
+
code: "resource_not_found";
|
|
1618
|
+
details: Record<string, never>;
|
|
1619
|
+
/** @enum {string} */
|
|
1620
|
+
message: "The requested resource was not found.";
|
|
1621
|
+
requestId: string;
|
|
1622
|
+
};
|
|
1623
|
+
};
|
|
1624
|
+
};
|
|
1625
|
+
};
|
|
1626
|
+
/** @description The idempotency key was reused for a different semantic request. */
|
|
1627
|
+
409: {
|
|
1628
|
+
headers: {
|
|
1629
|
+
[name: string]: unknown;
|
|
1630
|
+
};
|
|
1631
|
+
content: {
|
|
1632
|
+
"application/json": {
|
|
1633
|
+
error: {
|
|
1634
|
+
/** @enum {string} */
|
|
1635
|
+
code: "idempotency_conflict";
|
|
1636
|
+
details: Record<string, never>;
|
|
1637
|
+
/** @enum {string} */
|
|
1638
|
+
message: "The idempotency key conflicts with an earlier request.";
|
|
1639
|
+
requestId: string;
|
|
1640
|
+
};
|
|
1641
|
+
};
|
|
1642
|
+
};
|
|
1643
|
+
};
|
|
1644
|
+
/** @description The supplied revision or post-preflight authority is stale. */
|
|
1645
|
+
412: {
|
|
1646
|
+
headers: {
|
|
1647
|
+
[name: string]: unknown;
|
|
1648
|
+
};
|
|
1649
|
+
content: {
|
|
1650
|
+
"application/json": {
|
|
1651
|
+
error: {
|
|
1652
|
+
/** @enum {string} */
|
|
1653
|
+
code: "precondition_failed";
|
|
1654
|
+
details: Record<string, never>;
|
|
1655
|
+
/** @enum {string} */
|
|
1656
|
+
message: "The request precondition failed.";
|
|
1657
|
+
requestId: string;
|
|
1658
|
+
};
|
|
1659
|
+
};
|
|
1660
|
+
};
|
|
1661
|
+
};
|
|
1662
|
+
/** @description The path, query, headers, idempotency key, or body are invalid. */
|
|
1663
|
+
422: {
|
|
1664
|
+
headers: {
|
|
1665
|
+
[name: string]: unknown;
|
|
1666
|
+
};
|
|
1667
|
+
content: {
|
|
1668
|
+
"application/json": {
|
|
1669
|
+
error: {
|
|
1670
|
+
/** @enum {string} */
|
|
1671
|
+
code: "invalid_request";
|
|
1672
|
+
details: Record<string, never>;
|
|
1673
|
+
/** @enum {string} */
|
|
1674
|
+
message: "The request is invalid.";
|
|
1675
|
+
requestId: string;
|
|
1676
|
+
};
|
|
1677
|
+
} | {
|
|
1678
|
+
error: {
|
|
1679
|
+
/** @enum {string} */
|
|
1680
|
+
code: "invalid_idempotency_key";
|
|
1681
|
+
details: Record<string, never>;
|
|
1682
|
+
/** @enum {string} */
|
|
1683
|
+
message: "The idempotency key is invalid.";
|
|
1684
|
+
requestId: string;
|
|
1685
|
+
};
|
|
1686
|
+
};
|
|
1687
|
+
};
|
|
1688
|
+
};
|
|
1689
|
+
/** @description Identity, D1, authorization, audit, cursor, or capacity authority is unavailable. */
|
|
1690
|
+
503: {
|
|
1691
|
+
headers: {
|
|
1692
|
+
[name: string]: unknown;
|
|
1693
|
+
};
|
|
1694
|
+
content: {
|
|
1695
|
+
"application/json": {
|
|
1696
|
+
error: {
|
|
1697
|
+
/** @enum {string} */
|
|
1698
|
+
code: "identity_authority_unavailable";
|
|
1699
|
+
details: Record<string, never>;
|
|
1700
|
+
/** @enum {string} */
|
|
1701
|
+
message: "Authentication is temporarily unavailable.";
|
|
1702
|
+
requestId: string;
|
|
1703
|
+
};
|
|
1704
|
+
} | {
|
|
1705
|
+
error: {
|
|
1706
|
+
/** @enum {string} */
|
|
1707
|
+
code: "service_unavailable";
|
|
1708
|
+
details: Record<string, never>;
|
|
1709
|
+
/** @enum {string} */
|
|
1710
|
+
message: "The service is temporarily unavailable.";
|
|
1711
|
+
requestId: string;
|
|
1712
|
+
};
|
|
1713
|
+
};
|
|
1714
|
+
};
|
|
1715
|
+
};
|
|
1716
|
+
};
|
|
1717
|
+
};
|
|
1718
|
+
readEffectiveItemPermissions: {
|
|
1719
|
+
parameters: {
|
|
1720
|
+
query?: never;
|
|
1721
|
+
header?: never;
|
|
1722
|
+
path: {
|
|
1723
|
+
workspaceId: string;
|
|
1724
|
+
itemId: string;
|
|
1725
|
+
};
|
|
1726
|
+
cookie?: never;
|
|
1727
|
+
};
|
|
1728
|
+
requestBody?: never;
|
|
1729
|
+
responses: {
|
|
1730
|
+
/** @description All seven caller-specific item actions. */
|
|
1731
|
+
200: {
|
|
1732
|
+
headers: {
|
|
1733
|
+
[name: string]: unknown;
|
|
1734
|
+
};
|
|
1735
|
+
content: {
|
|
1736
|
+
"application/json": {
|
|
1737
|
+
actions: {
|
|
1738
|
+
/** @enum {string} */
|
|
1739
|
+
action: "items:content:read" | "items:create" | "items:delete" | "items:metadata:read" | "items:permissions:manage" | "items:permissions:read" | "items:update";
|
|
1740
|
+
allowed: boolean;
|
|
1741
|
+
/** @enum {string|null} */
|
|
1742
|
+
basis: "workspace_visibility" | "restricted_administrator_bypass" | "direct_grant" | "inherited_grant" | null;
|
|
1743
|
+
grantId: string | null;
|
|
1744
|
+
sourceItemId: string | null;
|
|
1745
|
+
}[] & (unknown & unknown & unknown & unknown & unknown & unknown & unknown);
|
|
1746
|
+
};
|
|
1747
|
+
};
|
|
1748
|
+
};
|
|
1749
|
+
/** @description A valid Drive user bearer credential is required. */
|
|
1750
|
+
401: {
|
|
1751
|
+
headers: {
|
|
1752
|
+
[name: string]: unknown;
|
|
1753
|
+
};
|
|
1754
|
+
content: {
|
|
1755
|
+
"application/json": {
|
|
1756
|
+
error: {
|
|
1757
|
+
/** @enum {string} */
|
|
1758
|
+
code: "authentication_required";
|
|
1759
|
+
details: Record<string, never>;
|
|
1760
|
+
/** @enum {string} */
|
|
1761
|
+
message: "Authentication is required.";
|
|
1762
|
+
requestId: string;
|
|
1763
|
+
};
|
|
1764
|
+
};
|
|
1765
|
+
};
|
|
1766
|
+
};
|
|
1767
|
+
/** @description The discoverable item does not permit this permission operation. */
|
|
1768
|
+
403: {
|
|
1769
|
+
headers: {
|
|
1770
|
+
[name: string]: unknown;
|
|
1771
|
+
};
|
|
1772
|
+
content: {
|
|
1773
|
+
"application/json": {
|
|
1774
|
+
error: {
|
|
1775
|
+
/** @enum {string} */
|
|
1776
|
+
code: "permission_denied";
|
|
1777
|
+
details: Record<string, never>;
|
|
1778
|
+
/** @enum {string} */
|
|
1779
|
+
message: "The requested action is not permitted.";
|
|
1780
|
+
requestId: string;
|
|
1781
|
+
};
|
|
1782
|
+
};
|
|
1783
|
+
};
|
|
1784
|
+
};
|
|
1785
|
+
/** @description The item, principal, or direct grant is absent or undiscoverable. */
|
|
1786
|
+
404: {
|
|
1787
|
+
headers: {
|
|
1788
|
+
[name: string]: unknown;
|
|
1789
|
+
};
|
|
1790
|
+
content: {
|
|
1791
|
+
"application/json": {
|
|
1792
|
+
error: {
|
|
1793
|
+
/** @enum {string} */
|
|
1794
|
+
code: "resource_not_found";
|
|
1795
|
+
details: Record<string, never>;
|
|
1796
|
+
/** @enum {string} */
|
|
1797
|
+
message: "The requested resource was not found.";
|
|
1798
|
+
requestId: string;
|
|
1799
|
+
};
|
|
1800
|
+
};
|
|
1801
|
+
};
|
|
1802
|
+
};
|
|
1803
|
+
/** @description The supplied revision or post-preflight authority is stale. */
|
|
1804
|
+
412: {
|
|
1805
|
+
headers: {
|
|
1806
|
+
[name: string]: unknown;
|
|
1807
|
+
};
|
|
1808
|
+
content: {
|
|
1809
|
+
"application/json": {
|
|
1810
|
+
error: {
|
|
1811
|
+
/** @enum {string} */
|
|
1812
|
+
code: "precondition_failed";
|
|
1813
|
+
details: Record<string, never>;
|
|
1814
|
+
/** @enum {string} */
|
|
1815
|
+
message: "The request precondition failed.";
|
|
1816
|
+
requestId: string;
|
|
1817
|
+
};
|
|
1818
|
+
};
|
|
1819
|
+
};
|
|
1820
|
+
};
|
|
1821
|
+
/** @description The path, query, headers, or body are invalid. */
|
|
1822
|
+
422: {
|
|
1823
|
+
headers: {
|
|
1824
|
+
[name: string]: unknown;
|
|
1825
|
+
};
|
|
1826
|
+
content: {
|
|
1827
|
+
"application/json": {
|
|
1828
|
+
error: {
|
|
1829
|
+
/** @enum {string} */
|
|
1830
|
+
code: "invalid_request";
|
|
1831
|
+
details: Record<string, never>;
|
|
1832
|
+
/** @enum {string} */
|
|
1833
|
+
message: "The request is invalid.";
|
|
1834
|
+
requestId: string;
|
|
1835
|
+
};
|
|
1836
|
+
};
|
|
1837
|
+
};
|
|
1838
|
+
};
|
|
1839
|
+
/** @description Identity, D1, authorization, audit, cursor, or capacity authority is unavailable. */
|
|
1840
|
+
503: {
|
|
1841
|
+
headers: {
|
|
1842
|
+
[name: string]: unknown;
|
|
1843
|
+
};
|
|
1844
|
+
content: {
|
|
1845
|
+
"application/json": {
|
|
1846
|
+
error: {
|
|
1847
|
+
/** @enum {string} */
|
|
1848
|
+
code: "identity_authority_unavailable";
|
|
1849
|
+
details: Record<string, never>;
|
|
1850
|
+
/** @enum {string} */
|
|
1851
|
+
message: "Authentication is temporarily unavailable.";
|
|
1852
|
+
requestId: string;
|
|
1853
|
+
};
|
|
1854
|
+
} | {
|
|
1855
|
+
error: {
|
|
1856
|
+
/** @enum {string} */
|
|
1857
|
+
code: "service_unavailable";
|
|
1858
|
+
details: Record<string, never>;
|
|
1859
|
+
/** @enum {string} */
|
|
1860
|
+
message: "The service is temporarily unavailable.";
|
|
1861
|
+
requestId: string;
|
|
1862
|
+
};
|
|
1863
|
+
};
|
|
1864
|
+
};
|
|
1865
|
+
};
|
|
1866
|
+
};
|
|
1867
|
+
};
|
|
1868
|
+
revokeItemPermission: {
|
|
1869
|
+
parameters: {
|
|
1870
|
+
query?: never;
|
|
1871
|
+
header: {
|
|
1872
|
+
"Idempotency-Key": string;
|
|
1873
|
+
"If-Match": string;
|
|
1874
|
+
};
|
|
1875
|
+
path: {
|
|
1876
|
+
workspaceId: string;
|
|
1877
|
+
itemId: string;
|
|
1878
|
+
grantId: string;
|
|
1879
|
+
};
|
|
1880
|
+
cookie?: never;
|
|
1881
|
+
};
|
|
1882
|
+
requestBody?: never;
|
|
1883
|
+
responses: {
|
|
1884
|
+
/** @description The retained revoked grant was committed, replayed, or unchanged. */
|
|
1885
|
+
200: {
|
|
1886
|
+
headers: {
|
|
1887
|
+
/** @description Current direct collection precondition for POST. */
|
|
1888
|
+
"Drive-Permission-Collection-ETag"?: string;
|
|
1889
|
+
[name: string]: unknown;
|
|
1890
|
+
};
|
|
1891
|
+
content: {
|
|
1892
|
+
"application/json": {
|
|
1893
|
+
collectionRevision: number;
|
|
1894
|
+
grant: {
|
|
1895
|
+
actions: ("items:content:read" | "items:create" | "items:delete" | "items:metadata:read" | "items:permissions:read" | "items:update")[];
|
|
1896
|
+
/** @enum {string} */
|
|
1897
|
+
availability: "active" | "expired" | "revoked";
|
|
1898
|
+
expiresAtEpochMilliseconds: number | null;
|
|
1899
|
+
grantId: string;
|
|
1900
|
+
grantee: {
|
|
1901
|
+
/** @enum {string} */
|
|
1902
|
+
type: "user";
|
|
1903
|
+
userId: string;
|
|
1904
|
+
} | {
|
|
1905
|
+
teamId: string;
|
|
1906
|
+
/** @enum {string} */
|
|
1907
|
+
type: "team";
|
|
1908
|
+
};
|
|
1909
|
+
revision: number;
|
|
1910
|
+
/** @enum {string} */
|
|
1911
|
+
source: "direct";
|
|
1912
|
+
sourceItemId: string;
|
|
1913
|
+
};
|
|
1914
|
+
/** @enum {string} */
|
|
1915
|
+
outcome: "committed" | "replayed";
|
|
1916
|
+
};
|
|
1917
|
+
};
|
|
1918
|
+
};
|
|
1919
|
+
/** @description A valid Drive user bearer credential is required. */
|
|
1920
|
+
401: {
|
|
1921
|
+
headers: {
|
|
1922
|
+
[name: string]: unknown;
|
|
1923
|
+
};
|
|
1924
|
+
content: {
|
|
1925
|
+
"application/json": {
|
|
1926
|
+
error: {
|
|
1927
|
+
/** @enum {string} */
|
|
1928
|
+
code: "authentication_required";
|
|
1929
|
+
details: Record<string, never>;
|
|
1930
|
+
/** @enum {string} */
|
|
1931
|
+
message: "Authentication is required.";
|
|
1932
|
+
requestId: string;
|
|
1933
|
+
};
|
|
1934
|
+
};
|
|
1935
|
+
};
|
|
1936
|
+
};
|
|
1937
|
+
/** @description The discoverable item does not permit this permission operation. */
|
|
1938
|
+
403: {
|
|
1939
|
+
headers: {
|
|
1940
|
+
[name: string]: unknown;
|
|
1941
|
+
};
|
|
1942
|
+
content: {
|
|
1943
|
+
"application/json": {
|
|
1944
|
+
error: {
|
|
1945
|
+
/** @enum {string} */
|
|
1946
|
+
code: "permission_denied";
|
|
1947
|
+
details: Record<string, never>;
|
|
1948
|
+
/** @enum {string} */
|
|
1949
|
+
message: "The requested action is not permitted.";
|
|
1950
|
+
requestId: string;
|
|
1951
|
+
};
|
|
1952
|
+
};
|
|
1953
|
+
};
|
|
1954
|
+
};
|
|
1955
|
+
/** @description The item, principal, or direct grant is absent or undiscoverable. */
|
|
1956
|
+
404: {
|
|
1957
|
+
headers: {
|
|
1958
|
+
[name: string]: unknown;
|
|
1959
|
+
};
|
|
1960
|
+
content: {
|
|
1961
|
+
"application/json": {
|
|
1962
|
+
error: {
|
|
1963
|
+
/** @enum {string} */
|
|
1964
|
+
code: "resource_not_found";
|
|
1965
|
+
details: Record<string, never>;
|
|
1966
|
+
/** @enum {string} */
|
|
1967
|
+
message: "The requested resource was not found.";
|
|
1968
|
+
requestId: string;
|
|
1969
|
+
};
|
|
1970
|
+
};
|
|
1971
|
+
};
|
|
1972
|
+
};
|
|
1973
|
+
/** @description The idempotency key was reused for a different semantic request. */
|
|
1974
|
+
409: {
|
|
1975
|
+
headers: {
|
|
1976
|
+
[name: string]: unknown;
|
|
1977
|
+
};
|
|
1978
|
+
content: {
|
|
1979
|
+
"application/json": {
|
|
1980
|
+
error: {
|
|
1981
|
+
/** @enum {string} */
|
|
1982
|
+
code: "idempotency_conflict";
|
|
1983
|
+
details: Record<string, never>;
|
|
1984
|
+
/** @enum {string} */
|
|
1985
|
+
message: "The idempotency key conflicts with an earlier request.";
|
|
1986
|
+
requestId: string;
|
|
1987
|
+
};
|
|
1988
|
+
};
|
|
1989
|
+
};
|
|
1990
|
+
};
|
|
1991
|
+
/** @description The supplied revision or post-preflight authority is stale. */
|
|
1992
|
+
412: {
|
|
1993
|
+
headers: {
|
|
1994
|
+
[name: string]: unknown;
|
|
1995
|
+
};
|
|
1996
|
+
content: {
|
|
1997
|
+
"application/json": {
|
|
1998
|
+
error: {
|
|
1999
|
+
/** @enum {string} */
|
|
2000
|
+
code: "precondition_failed";
|
|
2001
|
+
details: Record<string, never>;
|
|
2002
|
+
/** @enum {string} */
|
|
2003
|
+
message: "The request precondition failed.";
|
|
2004
|
+
requestId: string;
|
|
2005
|
+
};
|
|
2006
|
+
};
|
|
2007
|
+
};
|
|
2008
|
+
};
|
|
2009
|
+
/** @description The path, query, headers, idempotency key, or body are invalid. */
|
|
2010
|
+
422: {
|
|
2011
|
+
headers: {
|
|
2012
|
+
[name: string]: unknown;
|
|
2013
|
+
};
|
|
2014
|
+
content: {
|
|
2015
|
+
"application/json": {
|
|
2016
|
+
error: {
|
|
2017
|
+
/** @enum {string} */
|
|
2018
|
+
code: "invalid_request";
|
|
2019
|
+
details: Record<string, never>;
|
|
2020
|
+
/** @enum {string} */
|
|
2021
|
+
message: "The request is invalid.";
|
|
2022
|
+
requestId: string;
|
|
2023
|
+
};
|
|
2024
|
+
} | {
|
|
2025
|
+
error: {
|
|
2026
|
+
/** @enum {string} */
|
|
2027
|
+
code: "invalid_idempotency_key";
|
|
2028
|
+
details: Record<string, never>;
|
|
2029
|
+
/** @enum {string} */
|
|
2030
|
+
message: "The idempotency key is invalid.";
|
|
2031
|
+
requestId: string;
|
|
2032
|
+
};
|
|
2033
|
+
};
|
|
2034
|
+
};
|
|
2035
|
+
};
|
|
2036
|
+
/** @description Identity, D1, authorization, audit, cursor, or capacity authority is unavailable. */
|
|
2037
|
+
503: {
|
|
2038
|
+
headers: {
|
|
2039
|
+
[name: string]: unknown;
|
|
2040
|
+
};
|
|
2041
|
+
content: {
|
|
2042
|
+
"application/json": {
|
|
2043
|
+
error: {
|
|
2044
|
+
/** @enum {string} */
|
|
2045
|
+
code: "identity_authority_unavailable";
|
|
2046
|
+
details: Record<string, never>;
|
|
2047
|
+
/** @enum {string} */
|
|
2048
|
+
message: "Authentication is temporarily unavailable.";
|
|
2049
|
+
requestId: string;
|
|
2050
|
+
};
|
|
2051
|
+
} | {
|
|
2052
|
+
error: {
|
|
2053
|
+
/** @enum {string} */
|
|
2054
|
+
code: "service_unavailable";
|
|
2055
|
+
details: Record<string, never>;
|
|
2056
|
+
/** @enum {string} */
|
|
2057
|
+
message: "The service is temporarily unavailable.";
|
|
2058
|
+
requestId: string;
|
|
2059
|
+
};
|
|
2060
|
+
};
|
|
2061
|
+
};
|
|
2062
|
+
};
|
|
2063
|
+
};
|
|
2064
|
+
};
|
|
2065
|
+
updateItemPermission: {
|
|
2066
|
+
parameters: {
|
|
2067
|
+
query?: never;
|
|
2068
|
+
header: {
|
|
2069
|
+
"Idempotency-Key": string;
|
|
2070
|
+
"If-Match": string;
|
|
2071
|
+
};
|
|
2072
|
+
path: {
|
|
2073
|
+
workspaceId: string;
|
|
2074
|
+
itemId: string;
|
|
2075
|
+
grantId: string;
|
|
2076
|
+
};
|
|
2077
|
+
cookie?: never;
|
|
2078
|
+
};
|
|
2079
|
+
requestBody: {
|
|
2080
|
+
content: {
|
|
2081
|
+
"application/json": {
|
|
2082
|
+
actions?: ("items:content:read" | "items:create" | "items:delete" | "items:metadata:read" | "items:permissions:read" | "items:update")[];
|
|
2083
|
+
expiresAtEpochMilliseconds?: number | null;
|
|
2084
|
+
};
|
|
2085
|
+
};
|
|
2086
|
+
};
|
|
2087
|
+
responses: {
|
|
2088
|
+
/** @description The direct grant was committed or replayed. */
|
|
2089
|
+
200: {
|
|
2090
|
+
headers: {
|
|
2091
|
+
/** @description Current direct collection precondition for POST. */
|
|
2092
|
+
"Drive-Permission-Collection-ETag"?: string;
|
|
2093
|
+
/** @description Current direct-grant precondition for the next PATCH or DELETE; omitted when the current row is not mutable. */
|
|
2094
|
+
"Drive-Permission-Grant-ETag"?: string;
|
|
2095
|
+
[name: string]: unknown;
|
|
2096
|
+
};
|
|
2097
|
+
content: {
|
|
2098
|
+
"application/json": {
|
|
2099
|
+
collectionRevision: number;
|
|
2100
|
+
grant: {
|
|
2101
|
+
actions: ("items:content:read" | "items:create" | "items:delete" | "items:metadata:read" | "items:permissions:read" | "items:update")[];
|
|
2102
|
+
/** @enum {string} */
|
|
2103
|
+
availability: "active" | "expired" | "revoked";
|
|
2104
|
+
expiresAtEpochMilliseconds: number | null;
|
|
2105
|
+
grantId: string;
|
|
2106
|
+
grantee: {
|
|
2107
|
+
/** @enum {string} */
|
|
2108
|
+
type: "user";
|
|
2109
|
+
userId: string;
|
|
2110
|
+
} | {
|
|
2111
|
+
teamId: string;
|
|
2112
|
+
/** @enum {string} */
|
|
2113
|
+
type: "team";
|
|
2114
|
+
};
|
|
2115
|
+
revision: number;
|
|
2116
|
+
/** @enum {string} */
|
|
2117
|
+
source: "direct";
|
|
2118
|
+
sourceItemId: string;
|
|
2119
|
+
};
|
|
2120
|
+
/** @enum {string} */
|
|
2121
|
+
outcome: "committed" | "replayed";
|
|
2122
|
+
};
|
|
2123
|
+
};
|
|
2124
|
+
};
|
|
2125
|
+
/** @description A valid Drive user bearer credential is required. */
|
|
2126
|
+
401: {
|
|
2127
|
+
headers: {
|
|
2128
|
+
[name: string]: unknown;
|
|
2129
|
+
};
|
|
2130
|
+
content: {
|
|
2131
|
+
"application/json": {
|
|
2132
|
+
error: {
|
|
2133
|
+
/** @enum {string} */
|
|
2134
|
+
code: "authentication_required";
|
|
2135
|
+
details: Record<string, never>;
|
|
2136
|
+
/** @enum {string} */
|
|
2137
|
+
message: "Authentication is required.";
|
|
2138
|
+
requestId: string;
|
|
2139
|
+
};
|
|
2140
|
+
};
|
|
2141
|
+
};
|
|
2142
|
+
};
|
|
2143
|
+
/** @description The discoverable item does not permit this permission operation. */
|
|
2144
|
+
403: {
|
|
2145
|
+
headers: {
|
|
2146
|
+
[name: string]: unknown;
|
|
2147
|
+
};
|
|
2148
|
+
content: {
|
|
2149
|
+
"application/json": {
|
|
2150
|
+
error: {
|
|
2151
|
+
/** @enum {string} */
|
|
2152
|
+
code: "permission_denied";
|
|
2153
|
+
details: Record<string, never>;
|
|
2154
|
+
/** @enum {string} */
|
|
2155
|
+
message: "The requested action is not permitted.";
|
|
2156
|
+
requestId: string;
|
|
2157
|
+
};
|
|
2158
|
+
};
|
|
2159
|
+
};
|
|
2160
|
+
};
|
|
2161
|
+
/** @description The item, principal, or direct grant is absent or undiscoverable. */
|
|
2162
|
+
404: {
|
|
2163
|
+
headers: {
|
|
2164
|
+
[name: string]: unknown;
|
|
2165
|
+
};
|
|
2166
|
+
content: {
|
|
2167
|
+
"application/json": {
|
|
2168
|
+
error: {
|
|
2169
|
+
/** @enum {string} */
|
|
2170
|
+
code: "resource_not_found";
|
|
2171
|
+
details: Record<string, never>;
|
|
2172
|
+
/** @enum {string} */
|
|
2173
|
+
message: "The requested resource was not found.";
|
|
2174
|
+
requestId: string;
|
|
2175
|
+
};
|
|
2176
|
+
};
|
|
2177
|
+
};
|
|
2178
|
+
};
|
|
2179
|
+
/** @description The idempotency key was reused for a different semantic request. */
|
|
2180
|
+
409: {
|
|
2181
|
+
headers: {
|
|
2182
|
+
[name: string]: unknown;
|
|
2183
|
+
};
|
|
2184
|
+
content: {
|
|
2185
|
+
"application/json": {
|
|
2186
|
+
error: {
|
|
2187
|
+
/** @enum {string} */
|
|
2188
|
+
code: "idempotency_conflict";
|
|
2189
|
+
details: Record<string, never>;
|
|
2190
|
+
/** @enum {string} */
|
|
2191
|
+
message: "The idempotency key conflicts with an earlier request.";
|
|
2192
|
+
requestId: string;
|
|
2193
|
+
};
|
|
2194
|
+
};
|
|
2195
|
+
};
|
|
2196
|
+
};
|
|
2197
|
+
/** @description The supplied revision or post-preflight authority is stale. */
|
|
2198
|
+
412: {
|
|
2199
|
+
headers: {
|
|
2200
|
+
[name: string]: unknown;
|
|
2201
|
+
};
|
|
2202
|
+
content: {
|
|
2203
|
+
"application/json": {
|
|
2204
|
+
error: {
|
|
2205
|
+
/** @enum {string} */
|
|
2206
|
+
code: "precondition_failed";
|
|
2207
|
+
details: Record<string, never>;
|
|
2208
|
+
/** @enum {string} */
|
|
2209
|
+
message: "The request precondition failed.";
|
|
2210
|
+
requestId: string;
|
|
2211
|
+
};
|
|
2212
|
+
};
|
|
2213
|
+
};
|
|
2214
|
+
};
|
|
2215
|
+
/** @description The path, query, headers, idempotency key, or body are invalid. */
|
|
2216
|
+
422: {
|
|
2217
|
+
headers: {
|
|
2218
|
+
[name: string]: unknown;
|
|
2219
|
+
};
|
|
2220
|
+
content: {
|
|
2221
|
+
"application/json": {
|
|
2222
|
+
error: {
|
|
2223
|
+
/** @enum {string} */
|
|
2224
|
+
code: "invalid_request";
|
|
2225
|
+
details: Record<string, never>;
|
|
2226
|
+
/** @enum {string} */
|
|
2227
|
+
message: "The request is invalid.";
|
|
2228
|
+
requestId: string;
|
|
2229
|
+
};
|
|
2230
|
+
} | {
|
|
2231
|
+
error: {
|
|
2232
|
+
/** @enum {string} */
|
|
2233
|
+
code: "invalid_idempotency_key";
|
|
2234
|
+
details: Record<string, never>;
|
|
2235
|
+
/** @enum {string} */
|
|
2236
|
+
message: "The idempotency key is invalid.";
|
|
2237
|
+
requestId: string;
|
|
2238
|
+
};
|
|
2239
|
+
};
|
|
2240
|
+
};
|
|
2241
|
+
};
|
|
2242
|
+
/** @description Identity, D1, authorization, audit, cursor, or capacity authority is unavailable. */
|
|
2243
|
+
503: {
|
|
2244
|
+
headers: {
|
|
2245
|
+
[name: string]: unknown;
|
|
2246
|
+
};
|
|
2247
|
+
content: {
|
|
2248
|
+
"application/json": {
|
|
2249
|
+
error: {
|
|
2250
|
+
/** @enum {string} */
|
|
2251
|
+
code: "identity_authority_unavailable";
|
|
2252
|
+
details: Record<string, never>;
|
|
2253
|
+
/** @enum {string} */
|
|
2254
|
+
message: "Authentication is temporarily unavailable.";
|
|
2255
|
+
requestId: string;
|
|
2256
|
+
};
|
|
2257
|
+
} | {
|
|
2258
|
+
error: {
|
|
2259
|
+
/** @enum {string} */
|
|
2260
|
+
code: "service_unavailable";
|
|
2261
|
+
details: Record<string, never>;
|
|
2262
|
+
/** @enum {string} */
|
|
2263
|
+
message: "The service is temporarily unavailable.";
|
|
2264
|
+
requestId: string;
|
|
2265
|
+
};
|
|
2266
|
+
};
|
|
2267
|
+
};
|
|
2268
|
+
};
|
|
2269
|
+
};
|
|
2270
|
+
};
|
|
2271
|
+
restoreItem: {
|
|
2272
|
+
parameters: {
|
|
2273
|
+
query?: never;
|
|
2274
|
+
header: {
|
|
2275
|
+
"Idempotency-Key": string;
|
|
2276
|
+
"If-Match": string;
|
|
2277
|
+
};
|
|
2278
|
+
path: {
|
|
2279
|
+
workspaceId: string;
|
|
2280
|
+
itemId: string;
|
|
2281
|
+
};
|
|
2282
|
+
cookie?: never;
|
|
2283
|
+
};
|
|
2284
|
+
requestBody?: never;
|
|
2285
|
+
responses: {
|
|
2286
|
+
/** @description The managed item was restored or exactly replayed. */
|
|
2287
|
+
200: {
|
|
2288
|
+
headers: {
|
|
2289
|
+
/** @description Strong precondition for the next item mutation. */
|
|
2290
|
+
ETag?: string;
|
|
2291
|
+
[name: string]: unknown;
|
|
2292
|
+
};
|
|
2293
|
+
content: {
|
|
2294
|
+
"application/json": {
|
|
2295
|
+
itemId: string;
|
|
2296
|
+
/** @enum {string} */
|
|
2297
|
+
kind: "file" | "folder";
|
|
2298
|
+
name: string;
|
|
2299
|
+
parentItemId: string;
|
|
2300
|
+
purgeAfterEpochMilliseconds: number | null;
|
|
2301
|
+
revision: number;
|
|
2302
|
+
/** @enum {string} */
|
|
2303
|
+
state: "active" | "trashed" | "deleting";
|
|
2304
|
+
volumeId: string;
|
|
2305
|
+
workspaceId: string;
|
|
2306
|
+
};
|
|
2307
|
+
};
|
|
2308
|
+
};
|
|
2309
|
+
/** @description A valid Drive user bearer credential is required. */
|
|
2310
|
+
401: {
|
|
2311
|
+
headers: {
|
|
2312
|
+
[name: string]: unknown;
|
|
2313
|
+
};
|
|
2314
|
+
content: {
|
|
2315
|
+
"application/json": {
|
|
2316
|
+
error: {
|
|
2317
|
+
/** @enum {string} */
|
|
2318
|
+
code: "authentication_required";
|
|
2319
|
+
details: Record<string, never>;
|
|
2320
|
+
/** @enum {string} */
|
|
2321
|
+
message: "Authentication is required.";
|
|
2322
|
+
requestId: string;
|
|
2323
|
+
};
|
|
2324
|
+
};
|
|
2325
|
+
};
|
|
2326
|
+
};
|
|
2327
|
+
/** @description The discoverable item does not permit this lifecycle action. */
|
|
2328
|
+
403: {
|
|
2329
|
+
headers: {
|
|
2330
|
+
[name: string]: unknown;
|
|
2331
|
+
};
|
|
2332
|
+
content: {
|
|
2333
|
+
"application/json": {
|
|
2334
|
+
error: {
|
|
2335
|
+
/** @enum {string} */
|
|
2336
|
+
code: "permission_denied";
|
|
2337
|
+
details: Record<string, never>;
|
|
2338
|
+
/** @enum {string} */
|
|
2339
|
+
message: "The requested action is not permitted.";
|
|
2340
|
+
requestId: string;
|
|
2341
|
+
};
|
|
2342
|
+
};
|
|
2343
|
+
};
|
|
2344
|
+
};
|
|
2345
|
+
/** @description The item or destination is absent or undiscoverable. */
|
|
2346
|
+
404: {
|
|
2347
|
+
headers: {
|
|
2348
|
+
[name: string]: unknown;
|
|
2349
|
+
};
|
|
2350
|
+
content: {
|
|
2351
|
+
"application/json": {
|
|
2352
|
+
error: {
|
|
2353
|
+
/** @enum {string} */
|
|
2354
|
+
code: "resource_not_found";
|
|
2355
|
+
details: Record<string, never>;
|
|
2356
|
+
/** @enum {string} */
|
|
2357
|
+
message: "The requested resource was not found.";
|
|
2358
|
+
requestId: string;
|
|
2359
|
+
};
|
|
2360
|
+
};
|
|
2361
|
+
};
|
|
2362
|
+
};
|
|
2363
|
+
/** @description The key conflicts, the precondition is stale, or lifecycle authority changed. */
|
|
2364
|
+
409: {
|
|
2365
|
+
headers: {
|
|
2366
|
+
[name: string]: unknown;
|
|
2367
|
+
};
|
|
2368
|
+
content: {
|
|
2369
|
+
"application/json": {
|
|
2370
|
+
error: {
|
|
2371
|
+
/** @enum {string} */
|
|
2372
|
+
code: "idempotency_conflict";
|
|
2373
|
+
details: Record<string, never>;
|
|
2374
|
+
/** @enum {string} */
|
|
2375
|
+
message: "The idempotency key conflicts with an earlier request.";
|
|
2376
|
+
requestId: string;
|
|
2377
|
+
};
|
|
2378
|
+
} | {
|
|
2379
|
+
error: {
|
|
2380
|
+
/** @enum {string} */
|
|
2381
|
+
code: "precondition_failed";
|
|
2382
|
+
details: Record<string, never>;
|
|
2383
|
+
/** @enum {string} */
|
|
2384
|
+
message: "The request precondition failed.";
|
|
2385
|
+
requestId: string;
|
|
2386
|
+
};
|
|
2387
|
+
};
|
|
2388
|
+
};
|
|
2389
|
+
};
|
|
2390
|
+
/** @description The path, query, headers, key, or strict body is invalid. */
|
|
2391
|
+
422: {
|
|
2392
|
+
headers: {
|
|
2393
|
+
[name: string]: unknown;
|
|
2394
|
+
};
|
|
2395
|
+
content: {
|
|
2396
|
+
"application/json": {
|
|
2397
|
+
error: {
|
|
2398
|
+
/** @enum {string} */
|
|
2399
|
+
code: "invalid_request";
|
|
2400
|
+
details: Record<string, never>;
|
|
2401
|
+
/** @enum {string} */
|
|
2402
|
+
message: "The request is invalid.";
|
|
2403
|
+
requestId: string;
|
|
2404
|
+
};
|
|
2405
|
+
} | {
|
|
2406
|
+
error: {
|
|
2407
|
+
/** @enum {string} */
|
|
2408
|
+
code: "invalid_idempotency_key";
|
|
2409
|
+
details: Record<string, never>;
|
|
2410
|
+
/** @enum {string} */
|
|
2411
|
+
message: "The idempotency key is invalid.";
|
|
2412
|
+
requestId: string;
|
|
2413
|
+
};
|
|
2414
|
+
};
|
|
2415
|
+
};
|
|
2416
|
+
};
|
|
2417
|
+
/** @description Identity, D1, authorization, capacity, or archive authority is unavailable. */
|
|
2418
|
+
503: {
|
|
2419
|
+
headers: {
|
|
2420
|
+
[name: string]: unknown;
|
|
2421
|
+
};
|
|
2422
|
+
content: {
|
|
2423
|
+
"application/json": {
|
|
2424
|
+
error: {
|
|
2425
|
+
/** @enum {string} */
|
|
2426
|
+
code: "identity_authority_unavailable";
|
|
2427
|
+
details: Record<string, never>;
|
|
2428
|
+
/** @enum {string} */
|
|
2429
|
+
message: "Authentication is temporarily unavailable.";
|
|
2430
|
+
requestId: string;
|
|
2431
|
+
};
|
|
2432
|
+
} | {
|
|
2433
|
+
error: {
|
|
2434
|
+
/** @enum {string} */
|
|
2435
|
+
code: "service_unavailable";
|
|
2436
|
+
details: Record<string, never>;
|
|
2437
|
+
/** @enum {string} */
|
|
2438
|
+
message: "The service is temporarily unavailable.";
|
|
2439
|
+
requestId: string;
|
|
2440
|
+
};
|
|
2441
|
+
};
|
|
2442
|
+
};
|
|
2443
|
+
};
|
|
2444
|
+
};
|
|
2445
|
+
};
|
|
2446
|
+
trashItem: {
|
|
2447
|
+
parameters: {
|
|
2448
|
+
query?: never;
|
|
2449
|
+
header: {
|
|
2450
|
+
"Idempotency-Key": string;
|
|
2451
|
+
"If-Match": string;
|
|
2452
|
+
};
|
|
2453
|
+
path: {
|
|
2454
|
+
workspaceId: string;
|
|
2455
|
+
itemId: string;
|
|
2456
|
+
};
|
|
2457
|
+
cookie?: never;
|
|
2458
|
+
};
|
|
2459
|
+
requestBody?: never;
|
|
2460
|
+
responses: {
|
|
2461
|
+
/** @description The managed item was trashed or exactly replayed. */
|
|
2462
|
+
200: {
|
|
2463
|
+
headers: {
|
|
2464
|
+
/** @description Strong precondition for the next item mutation. */
|
|
2465
|
+
ETag?: string;
|
|
2466
|
+
[name: string]: unknown;
|
|
2467
|
+
};
|
|
2468
|
+
content: {
|
|
2469
|
+
"application/json": {
|
|
2470
|
+
itemId: string;
|
|
2471
|
+
/** @enum {string} */
|
|
2472
|
+
kind: "file" | "folder";
|
|
2473
|
+
name: string;
|
|
2474
|
+
parentItemId: string;
|
|
2475
|
+
purgeAfterEpochMilliseconds: number | null;
|
|
2476
|
+
revision: number;
|
|
2477
|
+
/** @enum {string} */
|
|
2478
|
+
state: "active" | "trashed" | "deleting";
|
|
2479
|
+
volumeId: string;
|
|
2480
|
+
workspaceId: string;
|
|
2481
|
+
};
|
|
2482
|
+
};
|
|
2483
|
+
};
|
|
2484
|
+
/** @description A valid Drive user bearer credential is required. */
|
|
2485
|
+
401: {
|
|
2486
|
+
headers: {
|
|
2487
|
+
[name: string]: unknown;
|
|
2488
|
+
};
|
|
2489
|
+
content: {
|
|
2490
|
+
"application/json": {
|
|
2491
|
+
error: {
|
|
2492
|
+
/** @enum {string} */
|
|
2493
|
+
code: "authentication_required";
|
|
2494
|
+
details: Record<string, never>;
|
|
2495
|
+
/** @enum {string} */
|
|
2496
|
+
message: "Authentication is required.";
|
|
2497
|
+
requestId: string;
|
|
2498
|
+
};
|
|
2499
|
+
};
|
|
2500
|
+
};
|
|
2501
|
+
};
|
|
2502
|
+
/** @description The discoverable item does not permit this lifecycle action. */
|
|
2503
|
+
403: {
|
|
2504
|
+
headers: {
|
|
2505
|
+
[name: string]: unknown;
|
|
2506
|
+
};
|
|
2507
|
+
content: {
|
|
2508
|
+
"application/json": {
|
|
2509
|
+
error: {
|
|
2510
|
+
/** @enum {string} */
|
|
2511
|
+
code: "permission_denied";
|
|
2512
|
+
details: Record<string, never>;
|
|
2513
|
+
/** @enum {string} */
|
|
2514
|
+
message: "The requested action is not permitted.";
|
|
2515
|
+
requestId: string;
|
|
2516
|
+
};
|
|
2517
|
+
};
|
|
2518
|
+
};
|
|
2519
|
+
};
|
|
2520
|
+
/** @description The item or destination is absent or undiscoverable. */
|
|
2521
|
+
404: {
|
|
2522
|
+
headers: {
|
|
2523
|
+
[name: string]: unknown;
|
|
2524
|
+
};
|
|
2525
|
+
content: {
|
|
2526
|
+
"application/json": {
|
|
2527
|
+
error: {
|
|
2528
|
+
/** @enum {string} */
|
|
2529
|
+
code: "resource_not_found";
|
|
2530
|
+
details: Record<string, never>;
|
|
2531
|
+
/** @enum {string} */
|
|
2532
|
+
message: "The requested resource was not found.";
|
|
2533
|
+
requestId: string;
|
|
2534
|
+
};
|
|
2535
|
+
};
|
|
2536
|
+
};
|
|
2537
|
+
};
|
|
2538
|
+
/** @description The key conflicts, the precondition is stale, or lifecycle authority changed. */
|
|
2539
|
+
409: {
|
|
2540
|
+
headers: {
|
|
2541
|
+
[name: string]: unknown;
|
|
2542
|
+
};
|
|
2543
|
+
content: {
|
|
2544
|
+
"application/json": {
|
|
2545
|
+
error: {
|
|
2546
|
+
/** @enum {string} */
|
|
2547
|
+
code: "idempotency_conflict";
|
|
2548
|
+
details: Record<string, never>;
|
|
2549
|
+
/** @enum {string} */
|
|
2550
|
+
message: "The idempotency key conflicts with an earlier request.";
|
|
2551
|
+
requestId: string;
|
|
2552
|
+
};
|
|
2553
|
+
} | {
|
|
2554
|
+
error: {
|
|
2555
|
+
/** @enum {string} */
|
|
2556
|
+
code: "precondition_failed";
|
|
2557
|
+
details: Record<string, never>;
|
|
2558
|
+
/** @enum {string} */
|
|
2559
|
+
message: "The request precondition failed.";
|
|
2560
|
+
requestId: string;
|
|
2561
|
+
};
|
|
2562
|
+
};
|
|
2563
|
+
};
|
|
2564
|
+
};
|
|
2565
|
+
/** @description The path, query, headers, key, or strict body is invalid. */
|
|
2566
|
+
422: {
|
|
2567
|
+
headers: {
|
|
2568
|
+
[name: string]: unknown;
|
|
2569
|
+
};
|
|
2570
|
+
content: {
|
|
2571
|
+
"application/json": {
|
|
2572
|
+
error: {
|
|
2573
|
+
/** @enum {string} */
|
|
2574
|
+
code: "invalid_request";
|
|
2575
|
+
details: Record<string, never>;
|
|
2576
|
+
/** @enum {string} */
|
|
2577
|
+
message: "The request is invalid.";
|
|
2578
|
+
requestId: string;
|
|
2579
|
+
};
|
|
2580
|
+
} | {
|
|
2581
|
+
error: {
|
|
2582
|
+
/** @enum {string} */
|
|
2583
|
+
code: "invalid_idempotency_key";
|
|
2584
|
+
details: Record<string, never>;
|
|
2585
|
+
/** @enum {string} */
|
|
2586
|
+
message: "The idempotency key is invalid.";
|
|
2587
|
+
requestId: string;
|
|
2588
|
+
};
|
|
2589
|
+
};
|
|
2590
|
+
};
|
|
2591
|
+
};
|
|
2592
|
+
/** @description Identity, D1, authorization, capacity, or archive authority is unavailable. */
|
|
2593
|
+
503: {
|
|
2594
|
+
headers: {
|
|
2595
|
+
[name: string]: unknown;
|
|
2596
|
+
};
|
|
2597
|
+
content: {
|
|
2598
|
+
"application/json": {
|
|
2599
|
+
error: {
|
|
2600
|
+
/** @enum {string} */
|
|
2601
|
+
code: "identity_authority_unavailable";
|
|
2602
|
+
details: Record<string, never>;
|
|
2603
|
+
/** @enum {string} */
|
|
2604
|
+
message: "Authentication is temporarily unavailable.";
|
|
2605
|
+
requestId: string;
|
|
2606
|
+
};
|
|
2607
|
+
} | {
|
|
2608
|
+
error: {
|
|
2609
|
+
/** @enum {string} */
|
|
2610
|
+
code: "service_unavailable";
|
|
2611
|
+
details: Record<string, never>;
|
|
2612
|
+
/** @enum {string} */
|
|
2613
|
+
message: "The service is temporarily unavailable.";
|
|
2614
|
+
requestId: string;
|
|
2615
|
+
};
|
|
2616
|
+
};
|
|
2617
|
+
};
|
|
2618
|
+
};
|
|
2619
|
+
};
|
|
2620
|
+
};
|
|
2621
|
+
listItemVersions: {
|
|
2622
|
+
parameters: {
|
|
2623
|
+
query?: {
|
|
2624
|
+
limit?: number;
|
|
2625
|
+
cursor?: string;
|
|
2626
|
+
};
|
|
2627
|
+
header?: never;
|
|
2628
|
+
path: {
|
|
2629
|
+
workspaceId: string;
|
|
2630
|
+
itemId: string;
|
|
2631
|
+
};
|
|
2632
|
+
cookie?: never;
|
|
2633
|
+
};
|
|
2634
|
+
requestBody?: never;
|
|
2635
|
+
responses: {
|
|
2636
|
+
/** @description At most 50 versions in version-ID order with an opaque 15-minute continuation cursor. */
|
|
151
2637
|
200: {
|
|
152
2638
|
headers: {
|
|
153
2639
|
[name: string]: unknown;
|
|
@@ -155,20 +2641,22 @@ interface operations {
|
|
|
155
2641
|
content: {
|
|
156
2642
|
"application/json": {
|
|
157
2643
|
items: {
|
|
158
|
-
itemId: string;
|
|
159
2644
|
/** @enum {string} */
|
|
160
|
-
|
|
2645
|
+
archiveState: "available" | "cold" | "restoring" | "unavailable" | "corrupt";
|
|
2646
|
+
byteLength: number;
|
|
2647
|
+
contentDigest: string;
|
|
161
2648
|
/**
|
|
162
2649
|
* Format: finueva-safe-filename
|
|
163
|
-
* @description
|
|
2650
|
+
* @description Custom format finueva-safe-filename requires NFC normalization and at most 255 UTF-8 bytes in addition to the structural pattern and maxLength constraints. Dot entries and Windows reserved base names are forbidden. Generated JSON Schema constraints are a necessary structural subset and do not independently enforce normalization or UTF-8 byte length.
|
|
164
2651
|
*/
|
|
165
|
-
|
|
166
|
-
|
|
2652
|
+
displayFilename: string;
|
|
2653
|
+
mediaType: string;
|
|
2654
|
+
/** @enum {string} */
|
|
2655
|
+
protectionClassification: "ordinary" | "opaque-encrypted";
|
|
167
2656
|
revision: number;
|
|
168
2657
|
/** @enum {string} */
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
workspaceId: string;
|
|
2658
|
+
state: "current" | "superseded";
|
|
2659
|
+
versionId: string;
|
|
172
2660
|
}[];
|
|
173
2661
|
nextCursor: string | null;
|
|
174
2662
|
};
|
|
@@ -192,7 +2680,7 @@ interface operations {
|
|
|
192
2680
|
};
|
|
193
2681
|
};
|
|
194
2682
|
};
|
|
195
|
-
/** @description
|
|
2683
|
+
/** @description The discoverable item does not permit metadata reads. */
|
|
196
2684
|
403: {
|
|
197
2685
|
headers: {
|
|
198
2686
|
[name: string]: unknown;
|
|
@@ -210,7 +2698,7 @@ interface operations {
|
|
|
210
2698
|
};
|
|
211
2699
|
};
|
|
212
2700
|
};
|
|
213
|
-
/** @description The
|
|
2701
|
+
/** @description The file is absent or undiscoverable. */
|
|
214
2702
|
404: {
|
|
215
2703
|
headers: {
|
|
216
2704
|
[name: string]: unknown;
|
|
@@ -228,7 +2716,7 @@ interface operations {
|
|
|
228
2716
|
};
|
|
229
2717
|
};
|
|
230
2718
|
};
|
|
231
|
-
/** @description
|
|
2719
|
+
/** @description Authorization changed after preflight. */
|
|
232
2720
|
409: {
|
|
233
2721
|
headers: {
|
|
234
2722
|
[name: string]: unknown;
|
|
@@ -246,7 +2734,7 @@ interface operations {
|
|
|
246
2734
|
};
|
|
247
2735
|
};
|
|
248
2736
|
};
|
|
249
|
-
/** @description The path, query, or
|
|
2737
|
+
/** @description The path, query, duplicate query key, or unexpected body is invalid. */
|
|
250
2738
|
422: {
|
|
251
2739
|
headers: {
|
|
252
2740
|
[name: string]: unknown;
|
|
@@ -261,19 +2749,170 @@ interface operations {
|
|
|
261
2749
|
message: "The request is invalid.";
|
|
262
2750
|
requestId: string;
|
|
263
2751
|
};
|
|
2752
|
+
};
|
|
2753
|
+
};
|
|
2754
|
+
};
|
|
2755
|
+
/** @description Identity, D1, or authorization authority is unavailable. */
|
|
2756
|
+
503: {
|
|
2757
|
+
headers: {
|
|
2758
|
+
[name: string]: unknown;
|
|
2759
|
+
};
|
|
2760
|
+
content: {
|
|
2761
|
+
"application/json": {
|
|
2762
|
+
error: {
|
|
2763
|
+
/** @enum {string} */
|
|
2764
|
+
code: "identity_authority_unavailable";
|
|
2765
|
+
details: Record<string, never>;
|
|
2766
|
+
/** @enum {string} */
|
|
2767
|
+
message: "Authentication is temporarily unavailable.";
|
|
2768
|
+
requestId: string;
|
|
2769
|
+
};
|
|
264
2770
|
} | {
|
|
265
2771
|
error: {
|
|
266
2772
|
/** @enum {string} */
|
|
267
|
-
code: "
|
|
2773
|
+
code: "service_unavailable";
|
|
268
2774
|
details: Record<string, never>;
|
|
269
2775
|
/** @enum {string} */
|
|
270
|
-
message: "The
|
|
2776
|
+
message: "The service is temporarily unavailable.";
|
|
271
2777
|
requestId: string;
|
|
272
2778
|
};
|
|
273
2779
|
};
|
|
274
2780
|
};
|
|
275
2781
|
};
|
|
276
|
-
|
|
2782
|
+
};
|
|
2783
|
+
};
|
|
2784
|
+
getItemVersion: {
|
|
2785
|
+
parameters: {
|
|
2786
|
+
query?: never;
|
|
2787
|
+
header?: never;
|
|
2788
|
+
path: {
|
|
2789
|
+
workspaceId: string;
|
|
2790
|
+
itemId: string;
|
|
2791
|
+
versionId: string;
|
|
2792
|
+
};
|
|
2793
|
+
cookie?: never;
|
|
2794
|
+
};
|
|
2795
|
+
requestBody?: never;
|
|
2796
|
+
responses: {
|
|
2797
|
+
/** @description The exact workspace/item-bound immutable managed file version. */
|
|
2798
|
+
200: {
|
|
2799
|
+
headers: {
|
|
2800
|
+
[name: string]: unknown;
|
|
2801
|
+
};
|
|
2802
|
+
content: {
|
|
2803
|
+
"application/json": {
|
|
2804
|
+
/** @enum {string} */
|
|
2805
|
+
archiveState: "available" | "cold" | "restoring" | "unavailable" | "corrupt";
|
|
2806
|
+
byteLength: number;
|
|
2807
|
+
contentDigest: string;
|
|
2808
|
+
/**
|
|
2809
|
+
* Format: finueva-safe-filename
|
|
2810
|
+
* @description Custom format finueva-safe-filename requires NFC normalization and at most 255 UTF-8 bytes in addition to the structural pattern and maxLength constraints. Dot entries and Windows reserved base names are forbidden. Generated JSON Schema constraints are a necessary structural subset and do not independently enforce normalization or UTF-8 byte length.
|
|
2811
|
+
*/
|
|
2812
|
+
displayFilename: string;
|
|
2813
|
+
itemId: string;
|
|
2814
|
+
mediaType: string;
|
|
2815
|
+
/** @enum {string} */
|
|
2816
|
+
protectionClassification: "ordinary" | "opaque-encrypted";
|
|
2817
|
+
revision: number;
|
|
2818
|
+
/** @enum {string} */
|
|
2819
|
+
state: "current" | "superseded";
|
|
2820
|
+
versionId: string;
|
|
2821
|
+
workspaceId: string;
|
|
2822
|
+
};
|
|
2823
|
+
};
|
|
2824
|
+
};
|
|
2825
|
+
/** @description A valid Drive user bearer credential is required. */
|
|
2826
|
+
401: {
|
|
2827
|
+
headers: {
|
|
2828
|
+
[name: string]: unknown;
|
|
2829
|
+
};
|
|
2830
|
+
content: {
|
|
2831
|
+
"application/json": {
|
|
2832
|
+
error: {
|
|
2833
|
+
/** @enum {string} */
|
|
2834
|
+
code: "authentication_required";
|
|
2835
|
+
details: Record<string, never>;
|
|
2836
|
+
/** @enum {string} */
|
|
2837
|
+
message: "Authentication is required.";
|
|
2838
|
+
requestId: string;
|
|
2839
|
+
};
|
|
2840
|
+
};
|
|
2841
|
+
};
|
|
2842
|
+
};
|
|
2843
|
+
/** @description Managed storage is disabled for the discoverable file. */
|
|
2844
|
+
403: {
|
|
2845
|
+
headers: {
|
|
2846
|
+
[name: string]: unknown;
|
|
2847
|
+
};
|
|
2848
|
+
content: {
|
|
2849
|
+
"application/json": {
|
|
2850
|
+
error: {
|
|
2851
|
+
/** @enum {string} */
|
|
2852
|
+
code: "permission_denied";
|
|
2853
|
+
details: Record<string, never>;
|
|
2854
|
+
/** @enum {string} */
|
|
2855
|
+
message: "The requested action is not permitted.";
|
|
2856
|
+
requestId: string;
|
|
2857
|
+
};
|
|
2858
|
+
};
|
|
2859
|
+
};
|
|
2860
|
+
};
|
|
2861
|
+
/** @description The file or version is absent, undiscoverable, unpublished, or deleting. */
|
|
2862
|
+
404: {
|
|
2863
|
+
headers: {
|
|
2864
|
+
[name: string]: unknown;
|
|
2865
|
+
};
|
|
2866
|
+
content: {
|
|
2867
|
+
"application/json": {
|
|
2868
|
+
error: {
|
|
2869
|
+
/** @enum {string} */
|
|
2870
|
+
code: "resource_not_found";
|
|
2871
|
+
details: Record<string, never>;
|
|
2872
|
+
/** @enum {string} */
|
|
2873
|
+
message: "The requested resource was not found.";
|
|
2874
|
+
requestId: string;
|
|
2875
|
+
};
|
|
2876
|
+
};
|
|
2877
|
+
};
|
|
2878
|
+
};
|
|
2879
|
+
/** @description Authorization or version metadata changed after preflight. */
|
|
2880
|
+
409: {
|
|
2881
|
+
headers: {
|
|
2882
|
+
[name: string]: unknown;
|
|
2883
|
+
};
|
|
2884
|
+
content: {
|
|
2885
|
+
"application/json": {
|
|
2886
|
+
error: {
|
|
2887
|
+
/** @enum {string} */
|
|
2888
|
+
code: "precondition_failed";
|
|
2889
|
+
details: Record<string, never>;
|
|
2890
|
+
/** @enum {string} */
|
|
2891
|
+
message: "The request precondition failed.";
|
|
2892
|
+
requestId: string;
|
|
2893
|
+
};
|
|
2894
|
+
};
|
|
2895
|
+
};
|
|
2896
|
+
};
|
|
2897
|
+
/** @description The path, query, or unexpected body is invalid. */
|
|
2898
|
+
422: {
|
|
2899
|
+
headers: {
|
|
2900
|
+
[name: string]: unknown;
|
|
2901
|
+
};
|
|
2902
|
+
content: {
|
|
2903
|
+
"application/json": {
|
|
2904
|
+
error: {
|
|
2905
|
+
/** @enum {string} */
|
|
2906
|
+
code: "invalid_request";
|
|
2907
|
+
details: Record<string, never>;
|
|
2908
|
+
/** @enum {string} */
|
|
2909
|
+
message: "The request is invalid.";
|
|
2910
|
+
requestId: string;
|
|
2911
|
+
};
|
|
2912
|
+
};
|
|
2913
|
+
};
|
|
2914
|
+
};
|
|
2915
|
+
/** @description Identity, D1, authorization, capacity, or managed authority is unavailable. */
|
|
277
2916
|
503: {
|
|
278
2917
|
headers: {
|
|
279
2918
|
[name: string]: unknown;
|
|
@@ -302,75 +2941,33 @@ interface operations {
|
|
|
302
2941
|
};
|
|
303
2942
|
};
|
|
304
2943
|
};
|
|
305
|
-
|
|
2944
|
+
restoreItemVersion: {
|
|
306
2945
|
parameters: {
|
|
307
2946
|
query?: never;
|
|
308
2947
|
header: {
|
|
309
2948
|
"Idempotency-Key": string;
|
|
2949
|
+
"If-Match": string;
|
|
310
2950
|
};
|
|
311
2951
|
path: {
|
|
312
2952
|
workspaceId: string;
|
|
313
|
-
itemId: string;
|
|
314
|
-
|
|
315
|
-
cookie?: never;
|
|
316
|
-
};
|
|
317
|
-
requestBody: {
|
|
318
|
-
content: {
|
|
319
|
-
"application/json": {
|
|
320
|
-
/**
|
|
321
|
-
* Format: finueva-safe-filename
|
|
322
|
-
* @description NFC-normalized filename of at most 255 Unicode code points and 255 UTF-8 bytes. Slash, backslash, control characters, U+2028/U+2029, trailing dot/space, dot entries, and Windows reserved base names are forbidden.
|
|
323
|
-
*/
|
|
324
|
-
name: string;
|
|
325
|
-
};
|
|
2953
|
+
itemId: string;
|
|
2954
|
+
versionId: string;
|
|
326
2955
|
};
|
|
2956
|
+
cookie?: never;
|
|
327
2957
|
};
|
|
2958
|
+
requestBody?: never;
|
|
328
2959
|
responses: {
|
|
329
|
-
/** @description The exact
|
|
2960
|
+
/** @description The selected version is current or the exact result was replayed. */
|
|
330
2961
|
200: {
|
|
331
2962
|
headers: {
|
|
2963
|
+
/** @description Strong precondition for the next item mutation. */
|
|
2964
|
+
ETag?: string;
|
|
332
2965
|
[name: string]: unknown;
|
|
333
2966
|
};
|
|
334
2967
|
content: {
|
|
335
2968
|
"application/json": {
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
kind: "file" | "folder";
|
|
339
|
-
/**
|
|
340
|
-
* Format: finueva-safe-filename
|
|
341
|
-
* @description NFC-normalized filename of at most 255 Unicode code points and 255 UTF-8 bytes. Slash, backslash, control characters, U+2028/U+2029, trailing dot/space, dot entries, and Windows reserved base names are forbidden.
|
|
342
|
-
*/
|
|
343
|
-
name: string;
|
|
344
|
-
parentItemId: string;
|
|
345
|
-
revision: number;
|
|
346
|
-
/** @enum {string} */
|
|
347
|
-
visibility: "workspace" | "restricted";
|
|
348
|
-
volumeId: string;
|
|
349
|
-
workspaceId: string;
|
|
350
|
-
};
|
|
351
|
-
};
|
|
352
|
-
};
|
|
353
|
-
/** @description The folder is committed. */
|
|
354
|
-
201: {
|
|
355
|
-
headers: {
|
|
356
|
-
[name: string]: unknown;
|
|
357
|
-
};
|
|
358
|
-
content: {
|
|
359
|
-
"application/json": {
|
|
360
|
-
itemId: string;
|
|
361
|
-
/** @enum {string} */
|
|
362
|
-
kind: "file" | "folder";
|
|
363
|
-
/**
|
|
364
|
-
* Format: finueva-safe-filename
|
|
365
|
-
* @description NFC-normalized filename of at most 255 Unicode code points and 255 UTF-8 bytes. Slash, backslash, control characters, U+2028/U+2029, trailing dot/space, dot entries, and Windows reserved base names are forbidden.
|
|
366
|
-
*/
|
|
367
|
-
name: string;
|
|
368
|
-
parentItemId: string;
|
|
369
|
-
revision: number;
|
|
370
|
-
/** @enum {string} */
|
|
371
|
-
visibility: "workspace" | "restricted";
|
|
372
|
-
volumeId: string;
|
|
373
|
-
workspaceId: string;
|
|
2969
|
+
currentVersionId: string;
|
|
2970
|
+
itemRevision: number;
|
|
374
2971
|
};
|
|
375
2972
|
};
|
|
376
2973
|
};
|
|
@@ -392,7 +2989,7 @@ interface operations {
|
|
|
392
2989
|
};
|
|
393
2990
|
};
|
|
394
2991
|
};
|
|
395
|
-
/** @description The discoverable
|
|
2992
|
+
/** @description The discoverable item does not permit this lifecycle action. */
|
|
396
2993
|
403: {
|
|
397
2994
|
headers: {
|
|
398
2995
|
[name: string]: unknown;
|
|
@@ -410,7 +3007,7 @@ interface operations {
|
|
|
410
3007
|
};
|
|
411
3008
|
};
|
|
412
3009
|
};
|
|
413
|
-
/** @description The
|
|
3010
|
+
/** @description The item or destination is absent or undiscoverable. */
|
|
414
3011
|
404: {
|
|
415
3012
|
headers: {
|
|
416
3013
|
[name: string]: unknown;
|
|
@@ -428,7 +3025,7 @@ interface operations {
|
|
|
428
3025
|
};
|
|
429
3026
|
};
|
|
430
3027
|
};
|
|
431
|
-
/** @description The
|
|
3028
|
+
/** @description The key conflicts, the precondition is stale, or lifecycle authority changed. */
|
|
432
3029
|
409: {
|
|
433
3030
|
headers: {
|
|
434
3031
|
[name: string]: unknown;
|
|
@@ -455,7 +3052,7 @@ interface operations {
|
|
|
455
3052
|
};
|
|
456
3053
|
};
|
|
457
3054
|
};
|
|
458
|
-
/** @description The path,
|
|
3055
|
+
/** @description The path, query, headers, key, or strict body is invalid. */
|
|
459
3056
|
422: {
|
|
460
3057
|
headers: {
|
|
461
3058
|
[name: string]: unknown;
|
|
@@ -482,7 +3079,7 @@ interface operations {
|
|
|
482
3079
|
};
|
|
483
3080
|
};
|
|
484
3081
|
};
|
|
485
|
-
/** @description Identity
|
|
3082
|
+
/** @description Identity, D1, authorization, capacity, or archive authority is unavailable. */
|
|
486
3083
|
503: {
|
|
487
3084
|
headers: {
|
|
488
3085
|
[name: string]: unknown;
|
|
@@ -511,54 +3108,51 @@ interface operations {
|
|
|
511
3108
|
};
|
|
512
3109
|
};
|
|
513
3110
|
};
|
|
514
|
-
|
|
3111
|
+
searchWorkspaceItems: {
|
|
515
3112
|
parameters: {
|
|
516
|
-
query
|
|
3113
|
+
query: {
|
|
3114
|
+
/** @description NFC, case-sensitive display-name prefix of at most 64 Unicode code points and 255 UTF-8 bytes. */
|
|
3115
|
+
query: string;
|
|
517
3116
|
limit?: number;
|
|
518
3117
|
cursor?: string;
|
|
519
3118
|
};
|
|
520
3119
|
header?: never;
|
|
521
3120
|
path: {
|
|
522
3121
|
workspaceId: string;
|
|
523
|
-
itemId: string;
|
|
524
3122
|
};
|
|
525
3123
|
cookie?: never;
|
|
526
3124
|
};
|
|
527
3125
|
requestBody?: never;
|
|
528
3126
|
responses: {
|
|
529
|
-
/** @description
|
|
3127
|
+
/** @description At most 50 authorized managed items in binary display-name and item-ID order. */
|
|
530
3128
|
200: {
|
|
531
3129
|
headers: {
|
|
532
|
-
/** @description Current direct collection precondition for POST on this item. */
|
|
533
|
-
"Drive-Permission-Collection-ETag"?: string;
|
|
534
|
-
/** @description Strong validator for the exact returned permission-list representation. */
|
|
535
|
-
ETag?: string;
|
|
536
3130
|
[name: string]: unknown;
|
|
537
3131
|
};
|
|
538
3132
|
content: {
|
|
539
3133
|
"application/json": {
|
|
540
|
-
collectionEtag: string;
|
|
541
|
-
collectionRevision: number;
|
|
542
3134
|
items: {
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
etag: string;
|
|
547
|
-
expiresAtEpochMilliseconds: number | null;
|
|
548
|
-
grantId: string;
|
|
549
|
-
grantee: {
|
|
3135
|
+
currentVersion: {
|
|
3136
|
+
byteLength: number;
|
|
3137
|
+
mediaType: string;
|
|
550
3138
|
/** @enum {string} */
|
|
551
|
-
|
|
552
|
-
userId: string;
|
|
553
|
-
} | {
|
|
554
|
-
teamId: string;
|
|
3139
|
+
protectionClassification: "ordinary" | "opaque-encrypted";
|
|
555
3140
|
/** @enum {string} */
|
|
556
|
-
|
|
557
|
-
|
|
3141
|
+
state: "current";
|
|
3142
|
+
versionId: string;
|
|
3143
|
+
} | null;
|
|
3144
|
+
itemId: string;
|
|
3145
|
+
/** @enum {string} */
|
|
3146
|
+
lifecycleState: "active";
|
|
3147
|
+
name: string;
|
|
3148
|
+
parentId: string | null;
|
|
3149
|
+
/** @enum {string} */
|
|
3150
|
+
provider: "managed";
|
|
558
3151
|
revision: number;
|
|
559
3152
|
/** @enum {string} */
|
|
560
|
-
|
|
561
|
-
|
|
3153
|
+
type: "file" | "folder";
|
|
3154
|
+
volumeId: string;
|
|
3155
|
+
workspaceId: string;
|
|
562
3156
|
}[];
|
|
563
3157
|
nextCursor: string | null;
|
|
564
3158
|
};
|
|
@@ -582,7 +3176,7 @@ interface operations {
|
|
|
582
3176
|
};
|
|
583
3177
|
};
|
|
584
3178
|
};
|
|
585
|
-
/** @description
|
|
3179
|
+
/** @description Managed storage is disabled for the selected workspace. */
|
|
586
3180
|
403: {
|
|
587
3181
|
headers: {
|
|
588
3182
|
[name: string]: unknown;
|
|
@@ -600,7 +3194,7 @@ interface operations {
|
|
|
600
3194
|
};
|
|
601
3195
|
};
|
|
602
3196
|
};
|
|
603
|
-
/** @description The
|
|
3197
|
+
/** @description The selected workspace is absent or undiscoverable. */
|
|
604
3198
|
404: {
|
|
605
3199
|
headers: {
|
|
606
3200
|
[name: string]: unknown;
|
|
@@ -618,8 +3212,8 @@ interface operations {
|
|
|
618
3212
|
};
|
|
619
3213
|
};
|
|
620
3214
|
};
|
|
621
|
-
/** @description
|
|
622
|
-
|
|
3215
|
+
/** @description Workspace, cursor anchor, or item authority changed during the search. */
|
|
3216
|
+
409: {
|
|
623
3217
|
headers: {
|
|
624
3218
|
[name: string]: unknown;
|
|
625
3219
|
};
|
|
@@ -636,7 +3230,7 @@ interface operations {
|
|
|
636
3230
|
};
|
|
637
3231
|
};
|
|
638
3232
|
};
|
|
639
|
-
/** @description The path, query,
|
|
3233
|
+
/** @description The path, query, body, or cursor is invalid. */
|
|
640
3234
|
422: {
|
|
641
3235
|
headers: {
|
|
642
3236
|
[name: string]: unknown;
|
|
@@ -663,7 +3257,7 @@ interface operations {
|
|
|
663
3257
|
};
|
|
664
3258
|
};
|
|
665
3259
|
};
|
|
666
|
-
/** @description Identity, D1, authorization, audit
|
|
3260
|
+
/** @description Identity authority, D1, exact authorization, audit capacity, or cursor keys are unavailable. */
|
|
667
3261
|
503: {
|
|
668
3262
|
headers: {
|
|
669
3263
|
[name: string]: unknown;
|
|
@@ -692,108 +3286,69 @@ interface operations {
|
|
|
692
3286
|
};
|
|
693
3287
|
};
|
|
694
3288
|
};
|
|
695
|
-
|
|
3289
|
+
createUpload: {
|
|
696
3290
|
parameters: {
|
|
697
3291
|
query?: never;
|
|
698
3292
|
header: {
|
|
699
3293
|
"Idempotency-Key": string;
|
|
700
|
-
"If-Match": string;
|
|
701
3294
|
};
|
|
702
3295
|
path: {
|
|
703
3296
|
workspaceId: string;
|
|
704
|
-
itemId: string;
|
|
705
3297
|
};
|
|
706
3298
|
cookie?: never;
|
|
707
3299
|
};
|
|
708
3300
|
requestBody: {
|
|
709
3301
|
content: {
|
|
710
3302
|
"application/json": {
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
/** @enum {string} */
|
|
720
|
-
type: "team";
|
|
721
|
-
};
|
|
3303
|
+
/** @description Caller-declared whole-file SHA-256 metadata; it is not archive verification evidence. */
|
|
3304
|
+
callerDeclaredContentDigest: string;
|
|
3305
|
+
displayFilename: string;
|
|
3306
|
+
expectedByteLength: number;
|
|
3307
|
+
mediaType: string;
|
|
3308
|
+
parentItemId: string;
|
|
3309
|
+
/** @enum {string} */
|
|
3310
|
+
protectionClassification: "ordinary" | "opaque-encrypted";
|
|
722
3311
|
};
|
|
723
3312
|
};
|
|
724
3313
|
};
|
|
725
3314
|
responses: {
|
|
726
|
-
/** @description The exact
|
|
3315
|
+
/** @description The exact retained transfer session is replayed. */
|
|
727
3316
|
200: {
|
|
728
3317
|
headers: {
|
|
729
|
-
/** @description Current direct collection precondition for the next POST. */
|
|
730
|
-
"Drive-Permission-Collection-ETag"?: string;
|
|
731
|
-
/** @description Current direct-grant precondition for PATCH or DELETE; omitted when the current row is not mutable. */
|
|
732
|
-
"Drive-Permission-Grant-ETag"?: string;
|
|
733
3318
|
[name: string]: unknown;
|
|
734
3319
|
};
|
|
735
3320
|
content: {
|
|
736
3321
|
"application/json": {
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
actions: ("items:content:read" | "items:create" | "items:delete" | "items:metadata:read" | "items:permissions:read" | "items:update")[];
|
|
740
|
-
/** @enum {string} */
|
|
741
|
-
availability: "active" | "expired" | "revoked";
|
|
742
|
-
expiresAtEpochMilliseconds: number | null;
|
|
743
|
-
grantId: string;
|
|
744
|
-
grantee: {
|
|
745
|
-
/** @enum {string} */
|
|
746
|
-
type: "user";
|
|
747
|
-
userId: string;
|
|
748
|
-
} | {
|
|
749
|
-
teamId: string;
|
|
750
|
-
/** @enum {string} */
|
|
751
|
-
type: "team";
|
|
752
|
-
};
|
|
753
|
-
revision: number;
|
|
754
|
-
/** @enum {string} */
|
|
755
|
-
source: "direct";
|
|
756
|
-
sourceItemId: string;
|
|
757
|
-
};
|
|
3322
|
+
expiresAtEpochMilliseconds: number;
|
|
3323
|
+
itemId: string;
|
|
758
3324
|
/** @enum {string} */
|
|
759
|
-
|
|
3325
|
+
mode: "presigned-multipart" | "server-mediated-zero-byte";
|
|
3326
|
+
/** @enum {number} */
|
|
3327
|
+
partByteLength: 33554432;
|
|
3328
|
+
partCount: number;
|
|
3329
|
+
revision: number;
|
|
3330
|
+
uploadId: string;
|
|
3331
|
+
versionId: string;
|
|
760
3332
|
};
|
|
761
3333
|
};
|
|
762
3334
|
};
|
|
763
|
-
/** @description The direct
|
|
3335
|
+
/** @description The durable direct transfer session is created. */
|
|
764
3336
|
201: {
|
|
765
3337
|
headers: {
|
|
766
|
-
/** @description Current direct collection precondition for the next POST. */
|
|
767
|
-
"Drive-Permission-Collection-ETag"?: string;
|
|
768
|
-
/** @description Current direct-grant precondition for PATCH or DELETE; omitted when the current row is not mutable. */
|
|
769
|
-
"Drive-Permission-Grant-ETag"?: string;
|
|
770
3338
|
[name: string]: unknown;
|
|
771
3339
|
};
|
|
772
3340
|
content: {
|
|
773
3341
|
"application/json": {
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
actions: ("items:content:read" | "items:create" | "items:delete" | "items:metadata:read" | "items:permissions:read" | "items:update")[];
|
|
777
|
-
/** @enum {string} */
|
|
778
|
-
availability: "active" | "expired" | "revoked";
|
|
779
|
-
expiresAtEpochMilliseconds: number | null;
|
|
780
|
-
grantId: string;
|
|
781
|
-
grantee: {
|
|
782
|
-
/** @enum {string} */
|
|
783
|
-
type: "user";
|
|
784
|
-
userId: string;
|
|
785
|
-
} | {
|
|
786
|
-
teamId: string;
|
|
787
|
-
/** @enum {string} */
|
|
788
|
-
type: "team";
|
|
789
|
-
};
|
|
790
|
-
revision: number;
|
|
791
|
-
/** @enum {string} */
|
|
792
|
-
source: "direct";
|
|
793
|
-
sourceItemId: string;
|
|
794
|
-
};
|
|
3342
|
+
expiresAtEpochMilliseconds: number;
|
|
3343
|
+
itemId: string;
|
|
795
3344
|
/** @enum {string} */
|
|
796
|
-
|
|
3345
|
+
mode: "presigned-multipart" | "server-mediated-zero-byte";
|
|
3346
|
+
/** @enum {number} */
|
|
3347
|
+
partByteLength: 33554432;
|
|
3348
|
+
partCount: number;
|
|
3349
|
+
revision: number;
|
|
3350
|
+
uploadId: string;
|
|
3351
|
+
versionId: string;
|
|
797
3352
|
};
|
|
798
3353
|
};
|
|
799
3354
|
};
|
|
@@ -815,7 +3370,7 @@ interface operations {
|
|
|
815
3370
|
};
|
|
816
3371
|
};
|
|
817
3372
|
};
|
|
818
|
-
/** @description
|
|
3373
|
+
/** @description Managed storage is disabled or the discoverable parent does not permit item creation. */
|
|
819
3374
|
403: {
|
|
820
3375
|
headers: {
|
|
821
3376
|
[name: string]: unknown;
|
|
@@ -833,7 +3388,7 @@ interface operations {
|
|
|
833
3388
|
};
|
|
834
3389
|
};
|
|
835
3390
|
};
|
|
836
|
-
/** @description The
|
|
3391
|
+
/** @description The parent is absent or undiscoverable. */
|
|
837
3392
|
404: {
|
|
838
3393
|
headers: {
|
|
839
3394
|
[name: string]: unknown;
|
|
@@ -851,13 +3406,22 @@ interface operations {
|
|
|
851
3406
|
};
|
|
852
3407
|
};
|
|
853
3408
|
};
|
|
854
|
-
/** @description
|
|
3409
|
+
/** @description Quota is exceeded, the key conflicts, authority changed, or provider-create recovery is required. */
|
|
855
3410
|
409: {
|
|
856
3411
|
headers: {
|
|
857
3412
|
[name: string]: unknown;
|
|
858
3413
|
};
|
|
859
3414
|
content: {
|
|
860
3415
|
"application/json": {
|
|
3416
|
+
error: {
|
|
3417
|
+
/** @enum {string} */
|
|
3418
|
+
code: "quota_exceeded";
|
|
3419
|
+
details: Record<string, never>;
|
|
3420
|
+
/** @enum {string} */
|
|
3421
|
+
message: "The workspace storage quota would be exceeded.";
|
|
3422
|
+
requestId: string;
|
|
3423
|
+
};
|
|
3424
|
+
} | {
|
|
861
3425
|
error: {
|
|
862
3426
|
/** @enum {string} */
|
|
863
3427
|
code: "idempotency_conflict";
|
|
@@ -866,16 +3430,7 @@ interface operations {
|
|
|
866
3430
|
message: "The idempotency key conflicts with an earlier request.";
|
|
867
3431
|
requestId: string;
|
|
868
3432
|
};
|
|
869
|
-
}
|
|
870
|
-
};
|
|
871
|
-
};
|
|
872
|
-
/** @description The supplied revision or post-preflight authority is stale. */
|
|
873
|
-
412: {
|
|
874
|
-
headers: {
|
|
875
|
-
[name: string]: unknown;
|
|
876
|
-
};
|
|
877
|
-
content: {
|
|
878
|
-
"application/json": {
|
|
3433
|
+
} | {
|
|
879
3434
|
error: {
|
|
880
3435
|
/** @enum {string} */
|
|
881
3436
|
code: "precondition_failed";
|
|
@@ -884,10 +3439,19 @@ interface operations {
|
|
|
884
3439
|
message: "The request precondition failed.";
|
|
885
3440
|
requestId: string;
|
|
886
3441
|
};
|
|
3442
|
+
} | {
|
|
3443
|
+
error: {
|
|
3444
|
+
/** @enum {string} */
|
|
3445
|
+
code: "upload_recovery_required";
|
|
3446
|
+
details: Record<string, never>;
|
|
3447
|
+
/** @enum {string} */
|
|
3448
|
+
message: "The upload requires recovery before it can continue.";
|
|
3449
|
+
requestId: string;
|
|
3450
|
+
};
|
|
887
3451
|
};
|
|
888
3452
|
};
|
|
889
3453
|
};
|
|
890
|
-
/** @description The path,
|
|
3454
|
+
/** @description The path, key, media type, or strict request body is invalid. */
|
|
891
3455
|
422: {
|
|
892
3456
|
headers: {
|
|
893
3457
|
[name: string]: unknown;
|
|
@@ -914,7 +3478,7 @@ interface operations {
|
|
|
914
3478
|
};
|
|
915
3479
|
};
|
|
916
3480
|
};
|
|
917
|
-
/** @description Identity, D1, authorization,
|
|
3481
|
+
/** @description Identity, D1, authorization, entitlement, or trusted capacity authority is unavailable. */
|
|
918
3482
|
503: {
|
|
919
3483
|
headers: {
|
|
920
3484
|
[name: string]: unknown;
|
|
@@ -943,38 +3507,65 @@ interface operations {
|
|
|
943
3507
|
};
|
|
944
3508
|
};
|
|
945
3509
|
};
|
|
946
|
-
|
|
3510
|
+
getUploadStatus: {
|
|
947
3511
|
parameters: {
|
|
948
|
-
query?:
|
|
3512
|
+
query?: {
|
|
3513
|
+
afterPartNumber?: string;
|
|
3514
|
+
limit?: string;
|
|
3515
|
+
};
|
|
949
3516
|
header?: never;
|
|
950
3517
|
path: {
|
|
951
3518
|
workspaceId: string;
|
|
952
|
-
|
|
3519
|
+
uploadId: string;
|
|
953
3520
|
};
|
|
954
3521
|
cookie?: never;
|
|
955
3522
|
};
|
|
956
3523
|
requestBody?: never;
|
|
957
3524
|
responses: {
|
|
958
|
-
/** @description
|
|
3525
|
+
/** @description The current upload lifecycle and one bounded confirmed-part page. */
|
|
959
3526
|
200: {
|
|
960
3527
|
headers: {
|
|
961
3528
|
[name: string]: unknown;
|
|
962
3529
|
};
|
|
963
3530
|
content: {
|
|
964
3531
|
"application/json": {
|
|
965
|
-
|
|
3532
|
+
confirmedParts: {
|
|
3533
|
+
checksumSha256: string;
|
|
3534
|
+
partNumber: number;
|
|
3535
|
+
}[];
|
|
3536
|
+
expiresAtEpochMilliseconds: number;
|
|
3537
|
+
itemId: string;
|
|
3538
|
+
/** @enum {string} */
|
|
3539
|
+
lifecycle: "initiating" | "recovery-required" | "uploading" | "completing" | "provider-completed" | "ready" | "aborting" | "aborted";
|
|
3540
|
+
/** @enum {string} */
|
|
3541
|
+
mode: "presigned-multipart" | "server-mediated-zero-byte";
|
|
3542
|
+
nextAfterPartNumber: number | null;
|
|
3543
|
+
partPolicy: {
|
|
3544
|
+
/** @enum {number} */
|
|
3545
|
+
maxParts: 10000;
|
|
3546
|
+
/** @enum {number} */
|
|
3547
|
+
partByteLength: 33554432;
|
|
3548
|
+
partCount: number;
|
|
3549
|
+
};
|
|
3550
|
+
ready: {
|
|
3551
|
+
byteLength: number;
|
|
3552
|
+
/** @description Caller-declared whole-file SHA-256 metadata; archive publication is gated by provider checksum evidence. */
|
|
3553
|
+
callerDeclaredContentDigest: string;
|
|
3554
|
+
displayFilename: string;
|
|
3555
|
+
itemId: string;
|
|
3556
|
+
mediaType: string;
|
|
966
3557
|
/** @enum {string} */
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
3558
|
+
state: "ready";
|
|
3559
|
+
uploadId: string;
|
|
3560
|
+
versionId: string;
|
|
3561
|
+
} | null;
|
|
3562
|
+
revision: number;
|
|
3563
|
+
uploadId: string;
|
|
3564
|
+
versionId: string;
|
|
974
3565
|
};
|
|
975
3566
|
};
|
|
976
3567
|
};
|
|
977
|
-
/** @description
|
|
3568
|
+
/** @description Authentication is required. */
|
|
978
3569
|
401: {
|
|
979
3570
|
headers: {
|
|
980
3571
|
[name: string]: unknown;
|
|
@@ -992,7 +3583,7 @@ interface operations {
|
|
|
992
3583
|
};
|
|
993
3584
|
};
|
|
994
3585
|
};
|
|
995
|
-
/** @description
|
|
3586
|
+
/** @description Permission is denied. */
|
|
996
3587
|
403: {
|
|
997
3588
|
headers: {
|
|
998
3589
|
[name: string]: unknown;
|
|
@@ -1010,7 +3601,7 @@ interface operations {
|
|
|
1010
3601
|
};
|
|
1011
3602
|
};
|
|
1012
3603
|
};
|
|
1013
|
-
/** @description The
|
|
3604
|
+
/** @description The upload is not discoverable. */
|
|
1014
3605
|
404: {
|
|
1015
3606
|
headers: {
|
|
1016
3607
|
[name: string]: unknown;
|
|
@@ -1028,25 +3619,7 @@ interface operations {
|
|
|
1028
3619
|
};
|
|
1029
3620
|
};
|
|
1030
3621
|
};
|
|
1031
|
-
/** @description The
|
|
1032
|
-
412: {
|
|
1033
|
-
headers: {
|
|
1034
|
-
[name: string]: unknown;
|
|
1035
|
-
};
|
|
1036
|
-
content: {
|
|
1037
|
-
"application/json": {
|
|
1038
|
-
error: {
|
|
1039
|
-
/** @enum {string} */
|
|
1040
|
-
code: "precondition_failed";
|
|
1041
|
-
details: Record<string, never>;
|
|
1042
|
-
/** @enum {string} */
|
|
1043
|
-
message: "The request precondition failed.";
|
|
1044
|
-
requestId: string;
|
|
1045
|
-
};
|
|
1046
|
-
};
|
|
1047
|
-
};
|
|
1048
|
-
};
|
|
1049
|
-
/** @description The path, query, headers, or body are invalid. */
|
|
3622
|
+
/** @description The path, query, or unexpected request body is invalid. */
|
|
1050
3623
|
422: {
|
|
1051
3624
|
headers: {
|
|
1052
3625
|
[name: string]: unknown;
|
|
@@ -1064,7 +3637,7 @@ interface operations {
|
|
|
1064
3637
|
};
|
|
1065
3638
|
};
|
|
1066
3639
|
};
|
|
1067
|
-
/** @description Identity
|
|
3640
|
+
/** @description Identity or the service is unavailable. */
|
|
1068
3641
|
503: {
|
|
1069
3642
|
headers: {
|
|
1070
3643
|
[name: string]: unknown;
|
|
@@ -1093,56 +3666,24 @@ interface operations {
|
|
|
1093
3666
|
};
|
|
1094
3667
|
};
|
|
1095
3668
|
};
|
|
1096
|
-
|
|
1097
|
-
parameters: {
|
|
1098
|
-
query?: never;
|
|
1099
|
-
header
|
|
1100
|
-
"Idempotency-Key": string;
|
|
1101
|
-
"If-Match": string;
|
|
1102
|
-
};
|
|
3669
|
+
abortUpload: {
|
|
3670
|
+
parameters: {
|
|
3671
|
+
query?: never;
|
|
3672
|
+
header?: never;
|
|
1103
3673
|
path: {
|
|
1104
3674
|
workspaceId: string;
|
|
1105
|
-
|
|
1106
|
-
grantId: string;
|
|
3675
|
+
uploadId: string;
|
|
1107
3676
|
};
|
|
1108
3677
|
cookie?: never;
|
|
1109
3678
|
};
|
|
1110
3679
|
requestBody?: never;
|
|
1111
3680
|
responses: {
|
|
1112
|
-
/** @description The
|
|
1113
|
-
|
|
3681
|
+
/** @description The provider upload is absent and the upload is terminal. */
|
|
3682
|
+
204: {
|
|
1114
3683
|
headers: {
|
|
1115
|
-
/** @description Current direct collection precondition for POST. */
|
|
1116
|
-
"Drive-Permission-Collection-ETag"?: string;
|
|
1117
3684
|
[name: string]: unknown;
|
|
1118
3685
|
};
|
|
1119
|
-
content
|
|
1120
|
-
"application/json": {
|
|
1121
|
-
collectionRevision: number;
|
|
1122
|
-
grant: {
|
|
1123
|
-
actions: ("items:content:read" | "items:create" | "items:delete" | "items:metadata:read" | "items:permissions:read" | "items:update")[];
|
|
1124
|
-
/** @enum {string} */
|
|
1125
|
-
availability: "active" | "expired" | "revoked";
|
|
1126
|
-
expiresAtEpochMilliseconds: number | null;
|
|
1127
|
-
grantId: string;
|
|
1128
|
-
grantee: {
|
|
1129
|
-
/** @enum {string} */
|
|
1130
|
-
type: "user";
|
|
1131
|
-
userId: string;
|
|
1132
|
-
} | {
|
|
1133
|
-
teamId: string;
|
|
1134
|
-
/** @enum {string} */
|
|
1135
|
-
type: "team";
|
|
1136
|
-
};
|
|
1137
|
-
revision: number;
|
|
1138
|
-
/** @enum {string} */
|
|
1139
|
-
source: "direct";
|
|
1140
|
-
sourceItemId: string;
|
|
1141
|
-
};
|
|
1142
|
-
/** @enum {string} */
|
|
1143
|
-
outcome: "committed" | "replayed";
|
|
1144
|
-
};
|
|
1145
|
-
};
|
|
3686
|
+
content?: never;
|
|
1146
3687
|
};
|
|
1147
3688
|
/** @description A valid Drive user bearer credential is required. */
|
|
1148
3689
|
401: {
|
|
@@ -1162,7 +3703,7 @@ interface operations {
|
|
|
1162
3703
|
};
|
|
1163
3704
|
};
|
|
1164
3705
|
};
|
|
1165
|
-
/** @description The discoverable
|
|
3706
|
+
/** @description The retained parent is discoverable but no longer permits item creation. */
|
|
1166
3707
|
403: {
|
|
1167
3708
|
headers: {
|
|
1168
3709
|
[name: string]: unknown;
|
|
@@ -1180,7 +3721,7 @@ interface operations {
|
|
|
1180
3721
|
};
|
|
1181
3722
|
};
|
|
1182
3723
|
};
|
|
1183
|
-
/** @description The
|
|
3724
|
+
/** @description The upload is unknown, cross-workspace, or its retained parent is undiscoverable. */
|
|
1184
3725
|
404: {
|
|
1185
3726
|
headers: {
|
|
1186
3727
|
[name: string]: unknown;
|
|
@@ -1198,7 +3739,7 @@ interface operations {
|
|
|
1198
3739
|
};
|
|
1199
3740
|
};
|
|
1200
3741
|
};
|
|
1201
|
-
/** @description
|
|
3742
|
+
/** @description Another terminal settlement won, authority changed, or provider-create recovery is required. */
|
|
1202
3743
|
409: {
|
|
1203
3744
|
headers: {
|
|
1204
3745
|
[name: string]: unknown;
|
|
@@ -1207,34 +3748,25 @@ interface operations {
|
|
|
1207
3748
|
"application/json": {
|
|
1208
3749
|
error: {
|
|
1209
3750
|
/** @enum {string} */
|
|
1210
|
-
code: "
|
|
3751
|
+
code: "precondition_failed";
|
|
1211
3752
|
details: Record<string, never>;
|
|
1212
3753
|
/** @enum {string} */
|
|
1213
|
-
message: "The
|
|
3754
|
+
message: "The request precondition failed.";
|
|
1214
3755
|
requestId: string;
|
|
1215
3756
|
};
|
|
1216
|
-
}
|
|
1217
|
-
};
|
|
1218
|
-
};
|
|
1219
|
-
/** @description The supplied revision or post-preflight authority is stale. */
|
|
1220
|
-
412: {
|
|
1221
|
-
headers: {
|
|
1222
|
-
[name: string]: unknown;
|
|
1223
|
-
};
|
|
1224
|
-
content: {
|
|
1225
|
-
"application/json": {
|
|
3757
|
+
} | {
|
|
1226
3758
|
error: {
|
|
1227
3759
|
/** @enum {string} */
|
|
1228
|
-
code: "
|
|
3760
|
+
code: "upload_recovery_required";
|
|
1229
3761
|
details: Record<string, never>;
|
|
1230
3762
|
/** @enum {string} */
|
|
1231
|
-
message: "The
|
|
3763
|
+
message: "The upload requires recovery before it can continue.";
|
|
1232
3764
|
requestId: string;
|
|
1233
3765
|
};
|
|
1234
3766
|
};
|
|
1235
3767
|
};
|
|
1236
3768
|
};
|
|
1237
|
-
/** @description The path, query,
|
|
3769
|
+
/** @description The path, query, or unexpected request body is invalid. */
|
|
1238
3770
|
422: {
|
|
1239
3771
|
headers: {
|
|
1240
3772
|
[name: string]: unknown;
|
|
@@ -1249,19 +3781,10 @@ interface operations {
|
|
|
1249
3781
|
message: "The request is invalid.";
|
|
1250
3782
|
requestId: string;
|
|
1251
3783
|
};
|
|
1252
|
-
} | {
|
|
1253
|
-
error: {
|
|
1254
|
-
/** @enum {string} */
|
|
1255
|
-
code: "invalid_idempotency_key";
|
|
1256
|
-
details: Record<string, never>;
|
|
1257
|
-
/** @enum {string} */
|
|
1258
|
-
message: "The idempotency key is invalid.";
|
|
1259
|
-
requestId: string;
|
|
1260
|
-
};
|
|
1261
3784
|
};
|
|
1262
3785
|
};
|
|
1263
3786
|
};
|
|
1264
|
-
/** @description Identity, D1, authorization,
|
|
3787
|
+
/** @description Identity, D1, authorization, or retained capacity authority is unavailable. */
|
|
1265
3788
|
503: {
|
|
1266
3789
|
headers: {
|
|
1267
3790
|
[name: string]: unknown;
|
|
@@ -1290,67 +3813,41 @@ interface operations {
|
|
|
1290
3813
|
};
|
|
1291
3814
|
};
|
|
1292
3815
|
};
|
|
1293
|
-
|
|
3816
|
+
completeUpload: {
|
|
1294
3817
|
parameters: {
|
|
1295
3818
|
query?: never;
|
|
1296
3819
|
header: {
|
|
1297
3820
|
"Idempotency-Key": string;
|
|
1298
|
-
"If-Match": string;
|
|
1299
3821
|
};
|
|
1300
3822
|
path: {
|
|
1301
3823
|
workspaceId: string;
|
|
1302
|
-
|
|
1303
|
-
grantId: string;
|
|
3824
|
+
uploadId: string;
|
|
1304
3825
|
};
|
|
1305
3826
|
cookie?: never;
|
|
1306
3827
|
};
|
|
1307
|
-
requestBody
|
|
1308
|
-
content: {
|
|
1309
|
-
"application/json": {
|
|
1310
|
-
actions?: ("items:content:read" | "items:create" | "items:delete" | "items:metadata:read" | "items:permissions:read" | "items:update")[];
|
|
1311
|
-
expiresAtEpochMilliseconds?: number | null;
|
|
1312
|
-
};
|
|
1313
|
-
};
|
|
1314
|
-
};
|
|
3828
|
+
requestBody?: never;
|
|
1315
3829
|
responses: {
|
|
1316
|
-
/** @description The
|
|
3830
|
+
/** @description The verified current version is ready. */
|
|
1317
3831
|
200: {
|
|
1318
3832
|
headers: {
|
|
1319
|
-
/** @description Current direct collection precondition for POST. */
|
|
1320
|
-
"Drive-Permission-Collection-ETag"?: string;
|
|
1321
|
-
/** @description Current direct-grant precondition for the next PATCH or DELETE; omitted when the current row is not mutable. */
|
|
1322
|
-
"Drive-Permission-Grant-ETag"?: string;
|
|
1323
3833
|
[name: string]: unknown;
|
|
1324
3834
|
};
|
|
1325
3835
|
content: {
|
|
1326
3836
|
"application/json": {
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
grantId: string;
|
|
1334
|
-
grantee: {
|
|
1335
|
-
/** @enum {string} */
|
|
1336
|
-
type: "user";
|
|
1337
|
-
userId: string;
|
|
1338
|
-
} | {
|
|
1339
|
-
teamId: string;
|
|
1340
|
-
/** @enum {string} */
|
|
1341
|
-
type: "team";
|
|
1342
|
-
};
|
|
1343
|
-
revision: number;
|
|
1344
|
-
/** @enum {string} */
|
|
1345
|
-
source: "direct";
|
|
1346
|
-
sourceItemId: string;
|
|
1347
|
-
};
|
|
3837
|
+
byteLength: number;
|
|
3838
|
+
/** @description Caller-declared whole-file SHA-256 metadata; archive publication is gated by provider checksum evidence. */
|
|
3839
|
+
callerDeclaredContentDigest: string;
|
|
3840
|
+
displayFilename: string;
|
|
3841
|
+
itemId: string;
|
|
3842
|
+
mediaType: string;
|
|
1348
3843
|
/** @enum {string} */
|
|
1349
|
-
|
|
3844
|
+
state: "ready";
|
|
3845
|
+
uploadId: string;
|
|
3846
|
+
versionId: string;
|
|
1350
3847
|
};
|
|
1351
3848
|
};
|
|
1352
3849
|
};
|
|
1353
|
-
/** @description
|
|
3850
|
+
/** @description Authentication is required. */
|
|
1354
3851
|
401: {
|
|
1355
3852
|
headers: {
|
|
1356
3853
|
[name: string]: unknown;
|
|
@@ -1368,7 +3865,7 @@ interface operations {
|
|
|
1368
3865
|
};
|
|
1369
3866
|
};
|
|
1370
3867
|
};
|
|
1371
|
-
/** @description
|
|
3868
|
+
/** @description Permission is denied. */
|
|
1372
3869
|
403: {
|
|
1373
3870
|
headers: {
|
|
1374
3871
|
[name: string]: unknown;
|
|
@@ -1386,7 +3883,7 @@ interface operations {
|
|
|
1386
3883
|
};
|
|
1387
3884
|
};
|
|
1388
3885
|
};
|
|
1389
|
-
/** @description The
|
|
3886
|
+
/** @description The upload is not discoverable. */
|
|
1390
3887
|
404: {
|
|
1391
3888
|
headers: {
|
|
1392
3889
|
[name: string]: unknown;
|
|
@@ -1404,7 +3901,7 @@ interface operations {
|
|
|
1404
3901
|
};
|
|
1405
3902
|
};
|
|
1406
3903
|
};
|
|
1407
|
-
/** @description The
|
|
3904
|
+
/** @description The upload is incomplete, conflicts, or requires recovery. */
|
|
1408
3905
|
409: {
|
|
1409
3906
|
headers: {
|
|
1410
3907
|
[name: string]: unknown;
|
|
@@ -1413,34 +3910,25 @@ interface operations {
|
|
|
1413
3910
|
"application/json": {
|
|
1414
3911
|
error: {
|
|
1415
3912
|
/** @enum {string} */
|
|
1416
|
-
code: "
|
|
3913
|
+
code: "precondition_failed";
|
|
1417
3914
|
details: Record<string, never>;
|
|
1418
3915
|
/** @enum {string} */
|
|
1419
|
-
message: "The
|
|
3916
|
+
message: "The request precondition failed.";
|
|
1420
3917
|
requestId: string;
|
|
1421
3918
|
};
|
|
1422
|
-
}
|
|
1423
|
-
};
|
|
1424
|
-
};
|
|
1425
|
-
/** @description The supplied revision or post-preflight authority is stale. */
|
|
1426
|
-
412: {
|
|
1427
|
-
headers: {
|
|
1428
|
-
[name: string]: unknown;
|
|
1429
|
-
};
|
|
1430
|
-
content: {
|
|
1431
|
-
"application/json": {
|
|
3919
|
+
} | {
|
|
1432
3920
|
error: {
|
|
1433
3921
|
/** @enum {string} */
|
|
1434
|
-
code: "
|
|
3922
|
+
code: "upload_recovery_required";
|
|
1435
3923
|
details: Record<string, never>;
|
|
1436
3924
|
/** @enum {string} */
|
|
1437
|
-
message: "The
|
|
3925
|
+
message: "The upload requires recovery before it can continue.";
|
|
1438
3926
|
requestId: string;
|
|
1439
3927
|
};
|
|
1440
3928
|
};
|
|
1441
3929
|
};
|
|
1442
3930
|
};
|
|
1443
|
-
/** @description The
|
|
3931
|
+
/** @description The request is invalid. */
|
|
1444
3932
|
422: {
|
|
1445
3933
|
headers: {
|
|
1446
3934
|
[name: string]: unknown;
|
|
@@ -1467,7 +3955,7 @@ interface operations {
|
|
|
1467
3955
|
};
|
|
1468
3956
|
};
|
|
1469
3957
|
};
|
|
1470
|
-
/** @description Identity
|
|
3958
|
+
/** @description Identity or the service is unavailable. */
|
|
1471
3959
|
503: {
|
|
1472
3960
|
headers: {
|
|
1473
3961
|
[name: string]: unknown;
|
|
@@ -1496,71 +3984,46 @@ interface operations {
|
|
|
1496
3984
|
};
|
|
1497
3985
|
};
|
|
1498
3986
|
};
|
|
1499
|
-
|
|
3987
|
+
createUploadPartDescriptor: {
|
|
1500
3988
|
parameters: {
|
|
1501
3989
|
query?: never;
|
|
1502
|
-
header
|
|
1503
|
-
"Idempotency-Key": string;
|
|
1504
|
-
};
|
|
3990
|
+
header?: never;
|
|
1505
3991
|
path: {
|
|
1506
3992
|
workspaceId: string;
|
|
3993
|
+
uploadId: string;
|
|
1507
3994
|
};
|
|
1508
3995
|
cookie?: never;
|
|
1509
3996
|
};
|
|
1510
3997
|
requestBody: {
|
|
1511
3998
|
content: {
|
|
1512
3999
|
"application/json": {
|
|
1513
|
-
|
|
1514
|
-
|
|
4000
|
+
checksumSha256: string;
|
|
4001
|
+
partNumber: number;
|
|
1515
4002
|
};
|
|
1516
4003
|
};
|
|
1517
4004
|
};
|
|
1518
4005
|
responses: {
|
|
1519
|
-
/** @description
|
|
4006
|
+
/** @description One short-lived exact part capability. */
|
|
1520
4007
|
200: {
|
|
1521
4008
|
headers: {
|
|
1522
4009
|
[name: string]: unknown;
|
|
1523
4010
|
};
|
|
1524
4011
|
content: {
|
|
1525
4012
|
"application/json": {
|
|
1526
|
-
createdAtEpochMilliseconds: number;
|
|
1527
|
-
expectedByteLength: number;
|
|
1528
|
-
expiresAtEpochMilliseconds: number;
|
|
1529
|
-
parentItemId: string;
|
|
1530
|
-
/** @enum {string} */
|
|
1531
|
-
state: "reserved";
|
|
1532
|
-
/** @enum {unknown|null} */
|
|
1533
|
-
terminalAtEpochMilliseconds: null;
|
|
1534
|
-
/** @enum {unknown|null} */
|
|
1535
|
-
terminalReason: null;
|
|
1536
|
-
uploadId: string;
|
|
1537
|
-
workspaceId: string;
|
|
1538
|
-
};
|
|
1539
|
-
};
|
|
1540
|
-
};
|
|
1541
|
-
/** @description Quota and mandatory D1 capacity are reserved. */
|
|
1542
|
-
201: {
|
|
1543
|
-
headers: {
|
|
1544
|
-
[name: string]: unknown;
|
|
1545
|
-
};
|
|
1546
|
-
content: {
|
|
1547
|
-
"application/json": {
|
|
1548
|
-
createdAtEpochMilliseconds: number;
|
|
1549
4013
|
expectedByteLength: number;
|
|
1550
4014
|
expiresAtEpochMilliseconds: number;
|
|
1551
|
-
|
|
4015
|
+
headers: {
|
|
4016
|
+
"x-amz-checksum-sha256": string;
|
|
4017
|
+
};
|
|
1552
4018
|
/** @enum {string} */
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
terminalReason: null;
|
|
1558
|
-
uploadId: string;
|
|
1559
|
-
workspaceId: string;
|
|
4019
|
+
method: "PUT";
|
|
4020
|
+
partNumber: number;
|
|
4021
|
+
/** Format: uri */
|
|
4022
|
+
url: string;
|
|
1560
4023
|
};
|
|
1561
4024
|
};
|
|
1562
4025
|
};
|
|
1563
|
-
/** @description
|
|
4026
|
+
/** @description Authentication is required. */
|
|
1564
4027
|
401: {
|
|
1565
4028
|
headers: {
|
|
1566
4029
|
[name: string]: unknown;
|
|
@@ -1578,7 +4041,7 @@ interface operations {
|
|
|
1578
4041
|
};
|
|
1579
4042
|
};
|
|
1580
4043
|
};
|
|
1581
|
-
/** @description
|
|
4044
|
+
/** @description Permission is denied. */
|
|
1582
4045
|
403: {
|
|
1583
4046
|
headers: {
|
|
1584
4047
|
[name: string]: unknown;
|
|
@@ -1596,7 +4059,7 @@ interface operations {
|
|
|
1596
4059
|
};
|
|
1597
4060
|
};
|
|
1598
4061
|
};
|
|
1599
|
-
/** @description The
|
|
4062
|
+
/** @description The upload is not discoverable. */
|
|
1600
4063
|
404: {
|
|
1601
4064
|
headers: {
|
|
1602
4065
|
[name: string]: unknown;
|
|
@@ -1614,7 +4077,7 @@ interface operations {
|
|
|
1614
4077
|
};
|
|
1615
4078
|
};
|
|
1616
4079
|
};
|
|
1617
|
-
/** @description
|
|
4080
|
+
/** @description The upload or part conflicts or requires recovery. */
|
|
1618
4081
|
409: {
|
|
1619
4082
|
headers: {
|
|
1620
4083
|
[name: string]: unknown;
|
|
@@ -1623,34 +4086,25 @@ interface operations {
|
|
|
1623
4086
|
"application/json": {
|
|
1624
4087
|
error: {
|
|
1625
4088
|
/** @enum {string} */
|
|
1626
|
-
code: "
|
|
1627
|
-
details: Record<string, never>;
|
|
1628
|
-
/** @enum {string} */
|
|
1629
|
-
message: "The workspace storage quota would be exceeded.";
|
|
1630
|
-
requestId: string;
|
|
1631
|
-
};
|
|
1632
|
-
} | {
|
|
1633
|
-
error: {
|
|
1634
|
-
/** @enum {string} */
|
|
1635
|
-
code: "idempotency_conflict";
|
|
4089
|
+
code: "precondition_failed";
|
|
1636
4090
|
details: Record<string, never>;
|
|
1637
4091
|
/** @enum {string} */
|
|
1638
|
-
message: "The
|
|
4092
|
+
message: "The request precondition failed.";
|
|
1639
4093
|
requestId: string;
|
|
1640
4094
|
};
|
|
1641
4095
|
} | {
|
|
1642
4096
|
error: {
|
|
1643
4097
|
/** @enum {string} */
|
|
1644
|
-
code: "
|
|
4098
|
+
code: "upload_recovery_required";
|
|
1645
4099
|
details: Record<string, never>;
|
|
1646
4100
|
/** @enum {string} */
|
|
1647
|
-
message: "The
|
|
4101
|
+
message: "The upload requires recovery before it can continue.";
|
|
1648
4102
|
requestId: string;
|
|
1649
4103
|
};
|
|
1650
4104
|
};
|
|
1651
4105
|
};
|
|
1652
4106
|
};
|
|
1653
|
-
/** @description The
|
|
4107
|
+
/** @description The request is invalid. */
|
|
1654
4108
|
422: {
|
|
1655
4109
|
headers: {
|
|
1656
4110
|
[name: string]: unknown;
|
|
@@ -1665,19 +4119,10 @@ interface operations {
|
|
|
1665
4119
|
message: "The request is invalid.";
|
|
1666
4120
|
requestId: string;
|
|
1667
4121
|
};
|
|
1668
|
-
} | {
|
|
1669
|
-
error: {
|
|
1670
|
-
/** @enum {string} */
|
|
1671
|
-
code: "invalid_idempotency_key";
|
|
1672
|
-
details: Record<string, never>;
|
|
1673
|
-
/** @enum {string} */
|
|
1674
|
-
message: "The idempotency key is invalid.";
|
|
1675
|
-
requestId: string;
|
|
1676
|
-
};
|
|
1677
4122
|
};
|
|
1678
4123
|
};
|
|
1679
4124
|
};
|
|
1680
|
-
/** @description Identity
|
|
4125
|
+
/** @description Identity or the service is unavailable. */
|
|
1681
4126
|
503: {
|
|
1682
4127
|
headers: {
|
|
1683
4128
|
[name: string]: unknown;
|
|
@@ -1706,40 +4151,41 @@ interface operations {
|
|
|
1706
4151
|
};
|
|
1707
4152
|
};
|
|
1708
4153
|
};
|
|
1709
|
-
|
|
4154
|
+
recordUploadPart: {
|
|
1710
4155
|
parameters: {
|
|
1711
4156
|
query?: never;
|
|
1712
4157
|
header?: never;
|
|
1713
4158
|
path: {
|
|
1714
4159
|
workspaceId: string;
|
|
1715
4160
|
uploadId: string;
|
|
4161
|
+
partNumber: string;
|
|
1716
4162
|
};
|
|
1717
4163
|
cookie?: never;
|
|
1718
4164
|
};
|
|
1719
|
-
requestBody
|
|
4165
|
+
requestBody: {
|
|
4166
|
+
content: {
|
|
4167
|
+
"application/json": {
|
|
4168
|
+
byteLength: number;
|
|
4169
|
+
checksumSha256: string;
|
|
4170
|
+
etag: string;
|
|
4171
|
+
expectedUploadRevision: number;
|
|
4172
|
+
};
|
|
4173
|
+
};
|
|
4174
|
+
};
|
|
1720
4175
|
responses: {
|
|
1721
|
-
/** @description The
|
|
4176
|
+
/** @description The callback is retained or exactly replayed. */
|
|
1722
4177
|
200: {
|
|
1723
4178
|
headers: {
|
|
1724
4179
|
[name: string]: unknown;
|
|
1725
4180
|
};
|
|
1726
4181
|
content: {
|
|
1727
4182
|
"application/json": {
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
expiresAtEpochMilliseconds: number;
|
|
1731
|
-
parentItemId: string;
|
|
1732
|
-
/** @enum {string} */
|
|
1733
|
-
state: "released";
|
|
1734
|
-
terminalAtEpochMilliseconds: number;
|
|
1735
|
-
/** @enum {string} */
|
|
1736
|
-
terminalReason: "aborted";
|
|
1737
|
-
uploadId: string;
|
|
1738
|
-
workspaceId: string;
|
|
4183
|
+
partNumber: number;
|
|
4184
|
+
revision: number;
|
|
1739
4185
|
};
|
|
1740
4186
|
};
|
|
1741
4187
|
};
|
|
1742
|
-
/** @description
|
|
4188
|
+
/** @description Authentication is required. */
|
|
1743
4189
|
401: {
|
|
1744
4190
|
headers: {
|
|
1745
4191
|
[name: string]: unknown;
|
|
@@ -1757,7 +4203,7 @@ interface operations {
|
|
|
1757
4203
|
};
|
|
1758
4204
|
};
|
|
1759
4205
|
};
|
|
1760
|
-
/** @description
|
|
4206
|
+
/** @description Permission is denied. */
|
|
1761
4207
|
403: {
|
|
1762
4208
|
headers: {
|
|
1763
4209
|
[name: string]: unknown;
|
|
@@ -1775,7 +4221,7 @@ interface operations {
|
|
|
1775
4221
|
};
|
|
1776
4222
|
};
|
|
1777
4223
|
};
|
|
1778
|
-
/** @description The upload is
|
|
4224
|
+
/** @description The upload is not discoverable. */
|
|
1779
4225
|
404: {
|
|
1780
4226
|
headers: {
|
|
1781
4227
|
[name: string]: unknown;
|
|
@@ -1793,7 +4239,7 @@ interface operations {
|
|
|
1793
4239
|
};
|
|
1794
4240
|
};
|
|
1795
4241
|
};
|
|
1796
|
-
/** @description
|
|
4242
|
+
/** @description The callback conflicts or requires recovery. */
|
|
1797
4243
|
409: {
|
|
1798
4244
|
headers: {
|
|
1799
4245
|
[name: string]: unknown;
|
|
@@ -1808,10 +4254,19 @@ interface operations {
|
|
|
1808
4254
|
message: "The request precondition failed.";
|
|
1809
4255
|
requestId: string;
|
|
1810
4256
|
};
|
|
4257
|
+
} | {
|
|
4258
|
+
error: {
|
|
4259
|
+
/** @enum {string} */
|
|
4260
|
+
code: "upload_recovery_required";
|
|
4261
|
+
details: Record<string, never>;
|
|
4262
|
+
/** @enum {string} */
|
|
4263
|
+
message: "The upload requires recovery before it can continue.";
|
|
4264
|
+
requestId: string;
|
|
4265
|
+
};
|
|
1811
4266
|
};
|
|
1812
4267
|
};
|
|
1813
4268
|
};
|
|
1814
|
-
/** @description The
|
|
4269
|
+
/** @description The request is invalid. */
|
|
1815
4270
|
422: {
|
|
1816
4271
|
headers: {
|
|
1817
4272
|
[name: string]: unknown;
|
|
@@ -1829,7 +4284,7 @@ interface operations {
|
|
|
1829
4284
|
};
|
|
1830
4285
|
};
|
|
1831
4286
|
};
|
|
1832
|
-
/** @description Identity
|
|
4287
|
+
/** @description Identity or the service is unavailable. */
|
|
1833
4288
|
503: {
|
|
1834
4289
|
headers: {
|
|
1835
4290
|
[name: string]: unknown;
|
|
@@ -1875,6 +4330,8 @@ type JsonRequest<Name extends keyof operations> = operations[Name] extends {
|
|
|
1875
4330
|
} ? Body : never;
|
|
1876
4331
|
type ResourcePath = operations["listFolderChildren"]["parameters"]["path"];
|
|
1877
4332
|
type PageQuery = NonNullable<operations["listFolderChildren"]["parameters"]["query"]>;
|
|
4333
|
+
type SearchWorkspaceItemsPath = operations["searchWorkspaceItems"]["parameters"]["path"];
|
|
4334
|
+
type SearchWorkspaceItemsQuery = NonNullable<operations["searchWorkspaceItems"]["parameters"]["query"]>;
|
|
1878
4335
|
type CreateFolderBody = JsonRequest<"createFolder">;
|
|
1879
4336
|
type CreatePermissionBody = JsonRequest<"createItemPermission">;
|
|
1880
4337
|
type UpdatePermissionBody = JsonRequest<"updateItemPermission">;
|
|
@@ -1885,15 +4342,67 @@ type GrantMutationHeaders = operations["updateItemPermission"]["parameters"]["he
|
|
|
1885
4342
|
type CreateUploadPath = operations["createUpload"]["parameters"]["path"];
|
|
1886
4343
|
type CreateUploadHeaders = operations["createUpload"]["parameters"]["header"];
|
|
1887
4344
|
type CreateUploadBody = JsonRequest<"createUpload">;
|
|
4345
|
+
type UploadPath = operations["abortUpload"]["parameters"]["path"];
|
|
4346
|
+
type UploadStatusPath = operations["getUploadStatus"]["parameters"]["path"];
|
|
4347
|
+
type CreateUploadPartDescriptorBody = JsonRequest<"createUploadPartDescriptor">;
|
|
4348
|
+
type RecordUploadPartPath = operations["recordUploadPart"]["parameters"]["path"];
|
|
4349
|
+
type RecordUploadPartBody = JsonRequest<"recordUploadPart">;
|
|
4350
|
+
type CompleteUploadHeaders = operations["completeUpload"]["parameters"]["header"];
|
|
1888
4351
|
type AbortUploadPath = operations["abortUpload"]["parameters"]["path"];
|
|
4352
|
+
type UpdateItemPath = operations["updateItem"]["parameters"]["path"];
|
|
4353
|
+
type UpdateItemHeaders = operations["updateItem"]["parameters"]["header"];
|
|
4354
|
+
type UpdateItemBody = JsonRequest<"updateItem">;
|
|
4355
|
+
type ListItemVersionsPath = operations["listItemVersions"]["parameters"]["path"];
|
|
4356
|
+
type ListItemVersionsQuery = NonNullable<operations["listItemVersions"]["parameters"]["query"]>;
|
|
4357
|
+
type GetItemVersionPath = operations["getItemVersion"]["parameters"]["path"];
|
|
4358
|
+
type RestoreItemVersionPath = operations["restoreItemVersion"]["parameters"]["path"];
|
|
4359
|
+
type RestoreItemVersionHeaders = operations["restoreItemVersion"]["parameters"]["header"];
|
|
4360
|
+
type CreateDownloadPath = operations["createDownload"]["parameters"]["path"];
|
|
4361
|
+
type CreateDownloadQuery = NonNullable<operations["createDownload"]["parameters"]["query"]>;
|
|
4362
|
+
type CreateDownloadHeaders = operations["createDownload"]["parameters"]["header"];
|
|
1889
4363
|
type GeneratedCurrentWorkspace = JsonResponse<"getCurrentWorkspace", 200>;
|
|
1890
4364
|
type CurrentWorkspace = Readonly<Omit<GeneratedCurrentWorkspace, "workspaceReference"> & {
|
|
1891
4365
|
readonly workspaceReference: Readonly<GeneratedCurrentWorkspace["workspaceReference"]>;
|
|
1892
4366
|
}>;
|
|
1893
4367
|
type FolderItem = Readonly<JsonResponse<"createFolder", 201>>;
|
|
1894
|
-
type
|
|
1895
|
-
type
|
|
1896
|
-
|
|
4368
|
+
type UploadSession = Readonly<JsonResponse<"createUpload", 201>>;
|
|
4369
|
+
type UploadPartDescriptor = Readonly<Omit<JsonResponse<"createUploadPartDescriptor", 200>, "headers"> & {
|
|
4370
|
+
readonly headers: Readonly<JsonResponse<"createUploadPartDescriptor", 200>["headers"]>;
|
|
4371
|
+
}>;
|
|
4372
|
+
type UploadPartResult = Readonly<JsonResponse<"recordUploadPart", 200>>;
|
|
4373
|
+
type ReadyUpload = Readonly<JsonResponse<"completeUpload", 200>>;
|
|
4374
|
+
type ManagedLifecycleItem = Readonly<JsonResponse<"updateItem", 200>>;
|
|
4375
|
+
type GeneratedManagedItemMetadata = JsonResponse<"getItem", 200>;
|
|
4376
|
+
type ManagedItemMetadata = Readonly<Omit<GeneratedManagedItemMetadata, "currentVersion"> & {
|
|
4377
|
+
readonly currentVersion: Readonly<NonNullable<GeneratedManagedItemMetadata["currentVersion"]>> | null;
|
|
4378
|
+
}>;
|
|
4379
|
+
type GeneratedWorkspaceItemSearchPage = JsonResponse<"searchWorkspaceItems", 200>;
|
|
4380
|
+
type WorkspaceItemSearchItem = Readonly<Omit<GeneratedWorkspaceItemSearchPage["items"][number], "currentVersion"> & {
|
|
4381
|
+
readonly currentVersion: Readonly<NonNullable<GeneratedWorkspaceItemSearchPage["items"][number]["currentVersion"]>> | null;
|
|
4382
|
+
}>;
|
|
4383
|
+
type WorkspaceItemSearchPage = Readonly<Omit<GeneratedWorkspaceItemSearchPage, "items"> & {
|
|
4384
|
+
readonly items: readonly WorkspaceItemSearchItem[];
|
|
4385
|
+
}>;
|
|
4386
|
+
type GeneratedManagedItemVersionPage = JsonResponse<"listItemVersions", 200>;
|
|
4387
|
+
type ManagedItemVersion = Readonly<GeneratedManagedItemVersionPage["items"][number]>;
|
|
4388
|
+
type ManagedItemVersionResource = Readonly<JsonResponse<"getItemVersion", 200>>;
|
|
4389
|
+
type ManagedItemVersionPage = Readonly<Omit<GeneratedManagedItemVersionPage, "items"> & {
|
|
4390
|
+
readonly items: readonly ManagedItemVersion[];
|
|
4391
|
+
}>;
|
|
4392
|
+
type ManagedItemVersionRestoreResult = Readonly<JsonResponse<"restoreItemVersion", 200>>;
|
|
4393
|
+
type ManagedDownloadDescriptor = Readonly<Omit<JsonResponse<"createDownload", 200>, "headers" | "response"> & {
|
|
4394
|
+
readonly headers: Readonly<JsonResponse<"createDownload", 200>["headers"]>;
|
|
4395
|
+
readonly response: Readonly<JsonResponse<"createDownload", 200>["response"]>;
|
|
4396
|
+
}>;
|
|
4397
|
+
type ManagedDownloadRestorePending = Readonly<JsonResponse<"createDownload", 202>>;
|
|
4398
|
+
type GeneratedUploadStatus = JsonResponse<"getUploadStatus", 200>;
|
|
4399
|
+
type UploadConfirmedPart = Readonly<GeneratedUploadStatus["confirmedParts"][number]>;
|
|
4400
|
+
type UploadStatus = Readonly<Omit<GeneratedUploadStatus, "confirmedParts" | "partPolicy" | "ready"> & {
|
|
4401
|
+
readonly confirmedParts: readonly UploadConfirmedPart[];
|
|
4402
|
+
readonly partPolicy: Readonly<GeneratedUploadStatus["partPolicy"]>;
|
|
4403
|
+
readonly ready: ReadyUpload | null;
|
|
4404
|
+
}>;
|
|
4405
|
+
type ProtectionClassification = CreateUploadBody["protectionClassification"];
|
|
1897
4406
|
type PermissionAction = CreatePermissionBody["actions"][number];
|
|
1898
4407
|
type PermissionGrantee = Readonly<CreatePermissionBody["grantee"]>;
|
|
1899
4408
|
type GeneratedPermissionGrant = JsonResponse<"listItemPermissions", 200>["items"][number];
|
|
@@ -1951,6 +4460,10 @@ type ResourceInput = Readonly<ResourcePath> & {
|
|
|
1951
4460
|
};
|
|
1952
4461
|
type PageInput = ResourceInput & Readonly<PageQuery>;
|
|
1953
4462
|
type ListFolderChildrenInput = PageInput;
|
|
4463
|
+
type GetItemInput = ResourceInput;
|
|
4464
|
+
type SearchWorkspaceItemsInput = Readonly<SearchWorkspaceItemsPath> & Readonly<SearchWorkspaceItemsQuery> & {
|
|
4465
|
+
readonly signal?: AbortSignal;
|
|
4466
|
+
};
|
|
1954
4467
|
type CreateFolderInput = ResourceInput & Readonly<CreateFolderBody> & {
|
|
1955
4468
|
readonly idempotencyKey: CreateFolderHeaders["Idempotency-Key"];
|
|
1956
4469
|
};
|
|
@@ -1974,23 +4487,113 @@ type CreateUploadInput = Readonly<CreateUploadPath> & Readonly<CreateUploadBody>
|
|
|
1974
4487
|
readonly idempotencyKey: CreateUploadHeaders["Idempotency-Key"];
|
|
1975
4488
|
readonly signal?: AbortSignal;
|
|
1976
4489
|
};
|
|
4490
|
+
type CreateUploadPartDescriptorInput = Readonly<UploadPath> & Readonly<CreateUploadPartDescriptorBody> & {
|
|
4491
|
+
readonly signal?: AbortSignal;
|
|
4492
|
+
};
|
|
4493
|
+
type GetUploadStatusInput = Readonly<UploadStatusPath> & {
|
|
4494
|
+
readonly afterPartNumber?: number;
|
|
4495
|
+
readonly limit?: number;
|
|
4496
|
+
readonly signal?: AbortSignal;
|
|
4497
|
+
};
|
|
4498
|
+
type RecordUploadPartInput = Readonly<Omit<RecordUploadPartPath, "partNumber">> & Readonly<RecordUploadPartBody> & {
|
|
4499
|
+
readonly partNumber: number;
|
|
4500
|
+
readonly signal?: AbortSignal;
|
|
4501
|
+
};
|
|
4502
|
+
type CompleteUploadInput = Readonly<UploadPath> & {
|
|
4503
|
+
readonly idempotencyKey: CompleteUploadHeaders["Idempotency-Key"];
|
|
4504
|
+
readonly signal?: AbortSignal;
|
|
4505
|
+
};
|
|
1977
4506
|
type AbortUploadInput = Readonly<AbortUploadPath> & {
|
|
1978
4507
|
readonly signal?: AbortSignal;
|
|
1979
4508
|
};
|
|
4509
|
+
type UpdateItemInput = Readonly<UpdateItemPath> & Readonly<UpdateItemBody> & {
|
|
4510
|
+
readonly idempotencyKey: UpdateItemHeaders["Idempotency-Key"];
|
|
4511
|
+
readonly ifMatch: UpdateItemHeaders["If-Match"];
|
|
4512
|
+
readonly signal?: AbortSignal;
|
|
4513
|
+
};
|
|
4514
|
+
type LifecycleMutationInput<Name extends "trashItem" | "restoreItem" | "deleteItem"> = Readonly<operations[Name]["parameters"]["path"]> & {
|
|
4515
|
+
readonly idempotencyKey: operations[Name]["parameters"]["header"]["Idempotency-Key"];
|
|
4516
|
+
readonly ifMatch: operations[Name]["parameters"]["header"]["If-Match"];
|
|
4517
|
+
readonly signal?: AbortSignal;
|
|
4518
|
+
};
|
|
4519
|
+
type TrashItemInput = LifecycleMutationInput<"trashItem">;
|
|
4520
|
+
type RestoreItemInput = LifecycleMutationInput<"restoreItem">;
|
|
4521
|
+
type DeleteItemInput = LifecycleMutationInput<"deleteItem">;
|
|
4522
|
+
type ListItemVersionsInput = Readonly<ListItemVersionsPath> & Readonly<ListItemVersionsQuery> & {
|
|
4523
|
+
readonly signal?: AbortSignal;
|
|
4524
|
+
};
|
|
4525
|
+
type GetItemVersionInput = Readonly<GetItemVersionPath> & {
|
|
4526
|
+
readonly signal?: AbortSignal;
|
|
4527
|
+
};
|
|
4528
|
+
type RestoreItemVersionInput = Readonly<RestoreItemVersionPath> & {
|
|
4529
|
+
readonly idempotencyKey: RestoreItemVersionHeaders["Idempotency-Key"];
|
|
4530
|
+
readonly ifMatch: RestoreItemVersionHeaders["If-Match"];
|
|
4531
|
+
readonly signal?: AbortSignal;
|
|
4532
|
+
};
|
|
4533
|
+
type CreateDownloadInput = Readonly<CreateDownloadPath> & Readonly<CreateDownloadQuery> & {
|
|
4534
|
+
readonly idempotencyKey: CreateDownloadHeaders["Idempotency-Key"];
|
|
4535
|
+
readonly method?: "GET" | "HEAD";
|
|
4536
|
+
readonly range?: string;
|
|
4537
|
+
readonly ifMatch?: string;
|
|
4538
|
+
readonly ifNoneMatch?: string;
|
|
4539
|
+
readonly ifRange?: string;
|
|
4540
|
+
readonly signal?: AbortSignal;
|
|
4541
|
+
};
|
|
4542
|
+
type DownloadItemResult = Response | DriveOperationResult<ManagedDownloadRestorePending, 202> | DriveOperationResult<undefined, 304>;
|
|
4543
|
+
type UploadFilePhase = "preparing" | "uploading" | "completing";
|
|
4544
|
+
interface UploadFileProgress {
|
|
4545
|
+
readonly phase: UploadFilePhase;
|
|
4546
|
+
readonly confirmedByteLength: number;
|
|
4547
|
+
readonly totalByteLength: number;
|
|
4548
|
+
readonly confirmedPartCount: number;
|
|
4549
|
+
readonly totalPartCount: number;
|
|
4550
|
+
}
|
|
4551
|
+
type UploadFileProgressCallback = (progress: UploadFileProgress) => void;
|
|
4552
|
+
interface UploadFileInput {
|
|
4553
|
+
readonly workspaceId: string;
|
|
4554
|
+
readonly parentItemId: string;
|
|
4555
|
+
readonly source: Blob;
|
|
4556
|
+
readonly displayFilename: string;
|
|
4557
|
+
readonly mediaType?: string;
|
|
4558
|
+
readonly protectionClassification?: ProtectionClassification;
|
|
4559
|
+
readonly idempotencyKey: string;
|
|
4560
|
+
readonly completionIdempotencyKey: string;
|
|
4561
|
+
readonly signal?: AbortSignal;
|
|
4562
|
+
readonly onProgress?: UploadFileProgressCallback;
|
|
4563
|
+
}
|
|
1980
4564
|
interface GetCurrentWorkspaceInput {
|
|
1981
4565
|
readonly signal?: AbortSignal;
|
|
1982
4566
|
}
|
|
1983
|
-
interface
|
|
4567
|
+
interface DriveOperations {
|
|
1984
4568
|
getCurrentWorkspace(input?: GetCurrentWorkspaceInput): Promise<DriveOperationResult<CurrentWorkspace, 200>>;
|
|
4569
|
+
getItem(input: GetItemInput): Promise<DriveOperationResult<ManagedItemMetadata, 200>>;
|
|
4570
|
+
searchWorkspaceItems(input: SearchWorkspaceItemsInput): Promise<DriveOperationResult<WorkspaceItemSearchPage, 200>>;
|
|
1985
4571
|
listFolderChildren(input: ListFolderChildrenInput): Promise<DriveOperationResult<FolderPage, 200>>;
|
|
1986
4572
|
createFolder(input: CreateFolderInput): Promise<DriveOperationResult<FolderItem, 200 | 201>>;
|
|
4573
|
+
updateItem(input: UpdateItemInput): Promise<DriveOperationResult<ManagedLifecycleItem, 200>>;
|
|
4574
|
+
trashItem(input: TrashItemInput): Promise<DriveOperationResult<ManagedLifecycleItem, 200>>;
|
|
4575
|
+
restoreItem(input: RestoreItemInput): Promise<DriveOperationResult<ManagedLifecycleItem, 200>>;
|
|
4576
|
+
deleteItem(input: DeleteItemInput): Promise<DriveOperationResult<ManagedLifecycleItem, 200 | 202>>;
|
|
4577
|
+
listItemVersions(input: ListItemVersionsInput): Promise<DriveOperationResult<ManagedItemVersionPage, 200>>;
|
|
4578
|
+
getItemVersion(input: GetItemVersionInput): Promise<DriveOperationResult<ManagedItemVersionResource, 200>>;
|
|
4579
|
+
restoreItemVersion(input: RestoreItemVersionInput): Promise<DriveOperationResult<ManagedItemVersionRestoreResult, 200>>;
|
|
4580
|
+
createDownload(input: CreateDownloadInput): Promise<DriveOperationResult<ManagedDownloadDescriptor, 200> | DriveOperationResult<ManagedDownloadRestorePending, 202> | DriveOperationResult<undefined, 304>>;
|
|
4581
|
+
downloadItem(input: CreateDownloadInput): Promise<DownloadItemResult>;
|
|
1987
4582
|
listItemPermissions(input: ListItemPermissionsInput): Promise<DriveOperationResult<PermissionPage, 200>>;
|
|
1988
4583
|
readEffectiveItemPermissions(input: ReadEffectiveItemPermissionsInput): Promise<DriveOperationResult<EffectivePermissionResponse, 200>>;
|
|
1989
4584
|
createItemPermission(input: CreateItemPermissionInput): Promise<DriveOperationResult<PermissionMutation, 200 | 201>>;
|
|
1990
4585
|
updateItemPermission(input: UpdateItemPermissionInput): Promise<DriveOperationResult<PermissionMutation, 200>>;
|
|
1991
4586
|
revokeItemPermission(input: RevokeItemPermissionInput): Promise<DriveOperationResult<PermissionMutation, 200>>;
|
|
1992
|
-
createUpload(input: CreateUploadInput): Promise<DriveOperationResult<
|
|
1993
|
-
|
|
4587
|
+
createUpload(input: CreateUploadInput): Promise<DriveOperationResult<UploadSession, 200 | 201>>;
|
|
4588
|
+
getUploadStatus(input: GetUploadStatusInput): Promise<DriveOperationResult<UploadStatus, 200>>;
|
|
4589
|
+
createUploadPartDescriptor(input: CreateUploadPartDescriptorInput): Promise<DriveOperationResult<UploadPartDescriptor, 200>>;
|
|
4590
|
+
recordUploadPart(input: RecordUploadPartInput): Promise<DriveOperationResult<UploadPartResult, 200>>;
|
|
4591
|
+
completeUpload(input: CompleteUploadInput): Promise<DriveOperationResult<ReadyUpload, 200>>;
|
|
4592
|
+
abortUpload(input: AbortUploadInput): Promise<DriveOperationResult<undefined, 204>>;
|
|
4593
|
+
}
|
|
4594
|
+
interface DriveServerClient extends DriveOperations {}
|
|
4595
|
+
interface DriveClient extends DriveOperations {
|
|
4596
|
+
uploadFile(input: UploadFileInput): Promise<DriveOperationResult<ReadyUpload, 200>>;
|
|
1994
4597
|
}
|
|
1995
4598
|
//#endregion
|
|
1996
|
-
export {
|
|
4599
|
+
export { UpdateItemInput as $, ListItemVersionsInput as A, PermissionGrant as B, FolderPage as C, GetUploadStatusInput as D, GetItemVersionInput as E, ManagedItemVersionPage as F, ReadEffectiveItemPermissionsInput as G, PermissionMutation as H, ManagedItemVersionResource as I, RestoreItemInput as J, ReadyUpload as K, ManagedItemVersionRestoreResult as L, ManagedDownloadRestorePending as M, ManagedItemMetadata as N, ListFolderChildrenInput as O, ManagedItemVersion as P, TrashItemInput as Q, ManagedLifecycleItem as R, FolderItem as S, GetItemInput as T, PermissionPage as U, PermissionGrantee as V, ProtectionClassification as W, RevokeItemPermissionInput as X, RestoreItemVersionInput as Y, SearchWorkspaceItemsInput as Z, DriveResponseValidators as _, CreateItemPermissionInput as a, UploadFileProgressCallback as at, EffectivePermissionAction as b, CurrentWorkspace as c, UploadSession as ct, DriveClient as d, WorkspaceItemSearchPage as dt, UpdateItemPermissionInput as et, DriveClientConfig as f, DriveOperations as g, DriveOperationResult as h, CreateFolderInput as i, UploadFileProgress as it, ManagedDownloadDescriptor as j, ListItemPermissionsInput as k, DeleteItemInput as l, UploadStatus as lt, DriveCredentialProvider as m, CompleteUploadInput as n, UploadFileInput as nt, CreateUploadInput as o, UploadPartDescriptor as ot, DriveCredentialContext as p, RecordUploadPartInput as q, CreateDownloadInput as r, UploadFilePhase as rt, CreateUploadPartDescriptorInput as s, UploadPartResult as st, AbortUploadInput as t, UploadConfirmedPart as tt, DownloadItemResult as u, WorkspaceItemSearchItem as ut, DriveServerClient as v, GetCurrentWorkspaceInput as w, EffectivePermissionResponse as x, DriveServerClientConfig as y, PermissionAction as z };
|