@finueva/drive 0.3.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 +15 -0
- package/README.md +35 -9
- package/dist/client.d.ts +2 -2
- package/dist/client.js +737 -5
- package/dist/contract.d.ts +2212 -336
- package/dist/core.d.ts +2 -1
- package/dist/core.js +2 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +737 -5
- package/dist/server.d.ts +2 -2
- package/dist/server.js +737 -5
- package/dist/types.d.ts +2 -2
- package/package.json +1 -1
package/dist/contract.d.ts
CHANGED
|
@@ -132,12 +132,9 @@ interface operations {
|
|
|
132
132
|
};
|
|
133
133
|
};
|
|
134
134
|
};
|
|
135
|
-
|
|
135
|
+
getItem: {
|
|
136
136
|
parameters: {
|
|
137
|
-
query?:
|
|
138
|
-
limit?: number;
|
|
139
|
-
cursor?: string;
|
|
140
|
-
};
|
|
137
|
+
query?: never;
|
|
141
138
|
header?: never;
|
|
142
139
|
path: {
|
|
143
140
|
workspaceId: string;
|
|
@@ -147,30 +144,33 @@ interface operations {
|
|
|
147
144
|
};
|
|
148
145
|
requestBody?: never;
|
|
149
146
|
responses: {
|
|
150
|
-
/** @description
|
|
147
|
+
/** @description The active managed item and current published version metadata. */
|
|
151
148
|
200: {
|
|
152
149
|
headers: {
|
|
150
|
+
/** @description Strong precondition for the next item mutation. */
|
|
151
|
+
ETag?: string;
|
|
153
152
|
[name: string]: unknown;
|
|
154
153
|
};
|
|
155
154
|
content: {
|
|
156
155
|
"application/json": {
|
|
157
|
-
|
|
158
|
-
|
|
156
|
+
currentVersion: {
|
|
157
|
+
byteLength: number;
|
|
158
|
+
mediaType: string;
|
|
159
159
|
/** @enum {string} */
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* Format: finueva-safe-filename
|
|
163
|
-
* @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.
|
|
164
|
-
*/
|
|
165
|
-
name: string;
|
|
166
|
-
parentItemId: string;
|
|
167
|
-
revision: number;
|
|
160
|
+
protectionClassification: "ordinary" | "opaque-encrypted";
|
|
168
161
|
/** @enum {string} */
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
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
174
|
};
|
|
175
175
|
};
|
|
176
176
|
};
|
|
@@ -192,7 +192,7 @@ interface operations {
|
|
|
192
192
|
};
|
|
193
193
|
};
|
|
194
194
|
};
|
|
195
|
-
/** @description Managed storage is disabled for the
|
|
195
|
+
/** @description Managed storage is disabled for the discoverable item. */
|
|
196
196
|
403: {
|
|
197
197
|
headers: {
|
|
198
198
|
[name: string]: unknown;
|
|
@@ -210,7 +210,7 @@ interface operations {
|
|
|
210
210
|
};
|
|
211
211
|
};
|
|
212
212
|
};
|
|
213
|
-
/** @description The
|
|
213
|
+
/** @description The item is absent, undiscoverable, tombstoned, or unpublished. */
|
|
214
214
|
404: {
|
|
215
215
|
headers: {
|
|
216
216
|
[name: string]: unknown;
|
|
@@ -228,7 +228,7 @@ interface operations {
|
|
|
228
228
|
};
|
|
229
229
|
};
|
|
230
230
|
};
|
|
231
|
-
/** @description
|
|
231
|
+
/** @description Authorization or metadata changed after preflight. */
|
|
232
232
|
409: {
|
|
233
233
|
headers: {
|
|
234
234
|
[name: string]: unknown;
|
|
@@ -246,7 +246,7 @@ interface operations {
|
|
|
246
246
|
};
|
|
247
247
|
};
|
|
248
248
|
};
|
|
249
|
-
/** @description The path, query, or
|
|
249
|
+
/** @description The path, query, or unexpected body is invalid. */
|
|
250
250
|
422: {
|
|
251
251
|
headers: {
|
|
252
252
|
[name: string]: unknown;
|
|
@@ -261,19 +261,10 @@ interface operations {
|
|
|
261
261
|
message: "The request is invalid.";
|
|
262
262
|
requestId: string;
|
|
263
263
|
};
|
|
264
|
-
} | {
|
|
265
|
-
error: {
|
|
266
|
-
/** @enum {string} */
|
|
267
|
-
code: "invalid_pagination_cursor";
|
|
268
|
-
details: Record<string, never>;
|
|
269
|
-
/** @enum {string} */
|
|
270
|
-
message: "The pagination cursor is invalid.";
|
|
271
|
-
requestId: string;
|
|
272
|
-
};
|
|
273
264
|
};
|
|
274
265
|
};
|
|
275
266
|
};
|
|
276
|
-
/** @description Identity
|
|
267
|
+
/** @description Identity, D1, authorization, capacity, or managed authority is unavailable. */
|
|
277
268
|
503: {
|
|
278
269
|
headers: {
|
|
279
270
|
[name: string]: unknown;
|
|
@@ -302,11 +293,12 @@ interface operations {
|
|
|
302
293
|
};
|
|
303
294
|
};
|
|
304
295
|
};
|
|
305
|
-
|
|
296
|
+
deleteItem: {
|
|
306
297
|
parameters: {
|
|
307
298
|
query?: never;
|
|
308
299
|
header: {
|
|
309
300
|
"Idempotency-Key": string;
|
|
301
|
+
"If-Match": string;
|
|
310
302
|
};
|
|
311
303
|
path: {
|
|
312
304
|
workspaceId: string;
|
|
@@ -314,21 +306,13 @@ interface operations {
|
|
|
314
306
|
};
|
|
315
307
|
cookie?: never;
|
|
316
308
|
};
|
|
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
|
-
};
|
|
326
|
-
};
|
|
327
|
-
};
|
|
309
|
+
requestBody?: never;
|
|
328
310
|
responses: {
|
|
329
|
-
/** @description The
|
|
311
|
+
/** @description The retained deletion result was exactly replayed. */
|
|
330
312
|
200: {
|
|
331
313
|
headers: {
|
|
314
|
+
/** @description Strong precondition for the next item mutation. */
|
|
315
|
+
ETag?: string;
|
|
332
316
|
[name: string]: unknown;
|
|
333
317
|
};
|
|
334
318
|
content: {
|
|
@@ -336,23 +320,22 @@ interface operations {
|
|
|
336
320
|
itemId: string;
|
|
337
321
|
/** @enum {string} */
|
|
338
322
|
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
323
|
name: string;
|
|
344
324
|
parentItemId: string;
|
|
325
|
+
purgeAfterEpochMilliseconds: number | null;
|
|
345
326
|
revision: number;
|
|
346
327
|
/** @enum {string} */
|
|
347
|
-
|
|
328
|
+
state: "active" | "trashed" | "deleting";
|
|
348
329
|
volumeId: string;
|
|
349
330
|
workspaceId: string;
|
|
350
331
|
};
|
|
351
332
|
};
|
|
352
333
|
};
|
|
353
|
-
/** @description
|
|
354
|
-
|
|
334
|
+
/** @description Deletion was retained and bounded reconciliation was attempted. */
|
|
335
|
+
202: {
|
|
355
336
|
headers: {
|
|
337
|
+
/** @description Strong precondition for the next item mutation. */
|
|
338
|
+
ETag?: string;
|
|
356
339
|
[name: string]: unknown;
|
|
357
340
|
};
|
|
358
341
|
content: {
|
|
@@ -360,15 +343,12 @@ interface operations {
|
|
|
360
343
|
itemId: string;
|
|
361
344
|
/** @enum {string} */
|
|
362
345
|
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
346
|
name: string;
|
|
368
347
|
parentItemId: string;
|
|
348
|
+
purgeAfterEpochMilliseconds: number | null;
|
|
369
349
|
revision: number;
|
|
370
350
|
/** @enum {string} */
|
|
371
|
-
|
|
351
|
+
state: "active" | "trashed" | "deleting";
|
|
372
352
|
volumeId: string;
|
|
373
353
|
workspaceId: string;
|
|
374
354
|
};
|
|
@@ -392,7 +372,7 @@ interface operations {
|
|
|
392
372
|
};
|
|
393
373
|
};
|
|
394
374
|
};
|
|
395
|
-
/** @description The discoverable
|
|
375
|
+
/** @description The discoverable item does not permit this lifecycle action. */
|
|
396
376
|
403: {
|
|
397
377
|
headers: {
|
|
398
378
|
[name: string]: unknown;
|
|
@@ -410,7 +390,7 @@ interface operations {
|
|
|
410
390
|
};
|
|
411
391
|
};
|
|
412
392
|
};
|
|
413
|
-
/** @description The
|
|
393
|
+
/** @description The item or destination is absent or undiscoverable. */
|
|
414
394
|
404: {
|
|
415
395
|
headers: {
|
|
416
396
|
[name: string]: unknown;
|
|
@@ -428,7 +408,7 @@ interface operations {
|
|
|
428
408
|
};
|
|
429
409
|
};
|
|
430
410
|
};
|
|
431
|
-
/** @description The
|
|
411
|
+
/** @description The key conflicts, the precondition is stale, or lifecycle authority changed. */
|
|
432
412
|
409: {
|
|
433
413
|
headers: {
|
|
434
414
|
[name: string]: unknown;
|
|
@@ -455,7 +435,7 @@ interface operations {
|
|
|
455
435
|
};
|
|
456
436
|
};
|
|
457
437
|
};
|
|
458
|
-
/** @description The path,
|
|
438
|
+
/** @description The path, query, headers, key, or strict body is invalid. */
|
|
459
439
|
422: {
|
|
460
440
|
headers: {
|
|
461
441
|
[name: string]: unknown;
|
|
@@ -482,7 +462,7 @@ interface operations {
|
|
|
482
462
|
};
|
|
483
463
|
};
|
|
484
464
|
};
|
|
485
|
-
/** @description Identity
|
|
465
|
+
/** @description Identity, D1, authorization, capacity, or archive authority is unavailable. */
|
|
486
466
|
503: {
|
|
487
467
|
headers: {
|
|
488
468
|
[name: string]: unknown;
|
|
@@ -511,56 +491,48 @@ interface operations {
|
|
|
511
491
|
};
|
|
512
492
|
};
|
|
513
493
|
};
|
|
514
|
-
|
|
494
|
+
updateItem: {
|
|
515
495
|
parameters: {
|
|
516
|
-
query?:
|
|
517
|
-
|
|
518
|
-
|
|
496
|
+
query?: never;
|
|
497
|
+
header: {
|
|
498
|
+
"Idempotency-Key": string;
|
|
499
|
+
"If-Match": string;
|
|
519
500
|
};
|
|
520
|
-
header?: never;
|
|
521
501
|
path: {
|
|
522
502
|
workspaceId: string;
|
|
523
503
|
itemId: string;
|
|
524
504
|
};
|
|
525
505
|
cookie?: never;
|
|
526
506
|
};
|
|
527
|
-
requestBody
|
|
507
|
+
requestBody: {
|
|
508
|
+
content: {
|
|
509
|
+
"application/json": {
|
|
510
|
+
name: string;
|
|
511
|
+
parentItemId: string;
|
|
512
|
+
};
|
|
513
|
+
};
|
|
514
|
+
};
|
|
528
515
|
responses: {
|
|
529
|
-
/** @description
|
|
516
|
+
/** @description The managed item was updated or exactly replayed. */
|
|
530
517
|
200: {
|
|
531
518
|
headers: {
|
|
532
|
-
/** @description
|
|
533
|
-
"Drive-Permission-Collection-ETag"?: string;
|
|
534
|
-
/** @description Strong validator for the exact returned permission-list representation. */
|
|
519
|
+
/** @description Strong precondition for the next item mutation. */
|
|
535
520
|
ETag?: string;
|
|
536
521
|
[name: string]: unknown;
|
|
537
522
|
};
|
|
538
523
|
content: {
|
|
539
524
|
"application/json": {
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
type: "user";
|
|
552
|
-
userId: string;
|
|
553
|
-
} | {
|
|
554
|
-
teamId: string;
|
|
555
|
-
/** @enum {string} */
|
|
556
|
-
type: "team";
|
|
557
|
-
};
|
|
558
|
-
revision: number;
|
|
559
|
-
/** @enum {string} */
|
|
560
|
-
source: "direct" | "inherited";
|
|
561
|
-
sourceItemId: string;
|
|
562
|
-
}[];
|
|
563
|
-
nextCursor: string | null;
|
|
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;
|
|
564
536
|
};
|
|
565
537
|
};
|
|
566
538
|
};
|
|
@@ -582,7 +554,7 @@ interface operations {
|
|
|
582
554
|
};
|
|
583
555
|
};
|
|
584
556
|
};
|
|
585
|
-
/** @description The discoverable item does not permit this
|
|
557
|
+
/** @description The discoverable item does not permit this lifecycle action. */
|
|
586
558
|
403: {
|
|
587
559
|
headers: {
|
|
588
560
|
[name: string]: unknown;
|
|
@@ -600,7 +572,7 @@ interface operations {
|
|
|
600
572
|
};
|
|
601
573
|
};
|
|
602
574
|
};
|
|
603
|
-
/** @description The item
|
|
575
|
+
/** @description The item or destination is absent or undiscoverable. */
|
|
604
576
|
404: {
|
|
605
577
|
headers: {
|
|
606
578
|
[name: string]: unknown;
|
|
@@ -618,13 +590,22 @@ interface operations {
|
|
|
618
590
|
};
|
|
619
591
|
};
|
|
620
592
|
};
|
|
621
|
-
/** @description The
|
|
622
|
-
|
|
593
|
+
/** @description The key conflicts, the precondition is stale, or lifecycle authority changed. */
|
|
594
|
+
409: {
|
|
623
595
|
headers: {
|
|
624
596
|
[name: string]: unknown;
|
|
625
597
|
};
|
|
626
598
|
content: {
|
|
627
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
|
+
} | {
|
|
628
609
|
error: {
|
|
629
610
|
/** @enum {string} */
|
|
630
611
|
code: "precondition_failed";
|
|
@@ -636,7 +617,7 @@ interface operations {
|
|
|
636
617
|
};
|
|
637
618
|
};
|
|
638
619
|
};
|
|
639
|
-
/** @description The path, query, headers, or
|
|
620
|
+
/** @description The path, query, headers, key, or strict body is invalid. */
|
|
640
621
|
422: {
|
|
641
622
|
headers: {
|
|
642
623
|
[name: string]: unknown;
|
|
@@ -654,16 +635,16 @@ interface operations {
|
|
|
654
635
|
} | {
|
|
655
636
|
error: {
|
|
656
637
|
/** @enum {string} */
|
|
657
|
-
code: "
|
|
638
|
+
code: "invalid_idempotency_key";
|
|
658
639
|
details: Record<string, never>;
|
|
659
640
|
/** @enum {string} */
|
|
660
|
-
message: "The
|
|
641
|
+
message: "The idempotency key is invalid.";
|
|
661
642
|
requestId: string;
|
|
662
643
|
};
|
|
663
644
|
};
|
|
664
645
|
};
|
|
665
646
|
};
|
|
666
|
-
/** @description Identity, D1, authorization,
|
|
647
|
+
/** @description Identity, D1, authorization, capacity, or archive authority is unavailable. */
|
|
667
648
|
503: {
|
|
668
649
|
headers: {
|
|
669
650
|
[name: string]: unknown;
|
|
@@ -692,108 +673,1992 @@ interface operations {
|
|
|
692
673
|
};
|
|
693
674
|
};
|
|
694
675
|
};
|
|
695
|
-
|
|
676
|
+
listFolderChildren: {
|
|
696
677
|
parameters: {
|
|
697
|
-
query?:
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
"If-Match": string;
|
|
678
|
+
query?: {
|
|
679
|
+
limit?: number;
|
|
680
|
+
cursor?: string;
|
|
701
681
|
};
|
|
682
|
+
header?: never;
|
|
702
683
|
path: {
|
|
703
684
|
workspaceId: string;
|
|
704
685
|
itemId: string;
|
|
705
686
|
};
|
|
706
687
|
cookie?: never;
|
|
707
688
|
};
|
|
708
|
-
requestBody
|
|
709
|
-
content: {
|
|
710
|
-
"application/json": {
|
|
711
|
-
actions: ("items:content:read" | "items:create" | "items:delete" | "items:metadata:read" | "items:permissions:read" | "items:update")[];
|
|
712
|
-
expiresAtEpochMilliseconds: number | null;
|
|
713
|
-
grantee: {
|
|
714
|
-
/** @enum {string} */
|
|
715
|
-
type: "user";
|
|
716
|
-
userId: string;
|
|
717
|
-
} | {
|
|
718
|
-
teamId: string;
|
|
719
|
-
/** @enum {string} */
|
|
720
|
-
type: "team";
|
|
721
|
-
};
|
|
722
|
-
};
|
|
723
|
-
};
|
|
724
|
-
};
|
|
689
|
+
requestBody?: never;
|
|
725
690
|
responses: {
|
|
726
|
-
/** @description
|
|
691
|
+
/** @description At most 50 active children in stable item-ID order. */
|
|
727
692
|
200: {
|
|
728
693
|
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
694
|
[name: string]: unknown;
|
|
734
695
|
};
|
|
735
696
|
content: {
|
|
736
697
|
"application/json": {
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
actions: ("items:content:read" | "items:create" | "items:delete" | "items:metadata:read" | "items:permissions:read" | "items:update")[];
|
|
698
|
+
items: {
|
|
699
|
+
itemId: string;
|
|
740
700
|
/** @enum {string} */
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
} | {
|
|
749
|
-
teamId: string;
|
|
750
|
-
/** @enum {string} */
|
|
751
|
-
type: "team";
|
|
752
|
-
};
|
|
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;
|
|
753
708
|
revision: number;
|
|
754
709
|
/** @enum {string} */
|
|
755
|
-
|
|
756
|
-
|
|
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;
|
|
757
732
|
};
|
|
758
|
-
/** @enum {string} */
|
|
759
|
-
outcome: "committed" | "replayed";
|
|
760
733
|
};
|
|
761
734
|
};
|
|
762
735
|
};
|
|
763
|
-
/** @description
|
|
764
|
-
|
|
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. */
|
|
2637
|
+
200: {
|
|
765
2638
|
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
2639
|
[name: string]: unknown;
|
|
771
2640
|
};
|
|
772
2641
|
content: {
|
|
773
2642
|
"application/json": {
|
|
774
|
-
|
|
775
|
-
grant: {
|
|
776
|
-
actions: ("items:content:read" | "items:create" | "items:delete" | "items:metadata:read" | "items:permissions:read" | "items:update")[];
|
|
2643
|
+
items: {
|
|
777
2644
|
/** @enum {string} */
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
};
|
|
2645
|
+
archiveState: "available" | "cold" | "restoring" | "unavailable" | "corrupt";
|
|
2646
|
+
byteLength: number;
|
|
2647
|
+
contentDigest: string;
|
|
2648
|
+
/**
|
|
2649
|
+
* Format: finueva-safe-filename
|
|
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.
|
|
2651
|
+
*/
|
|
2652
|
+
displayFilename: string;
|
|
2653
|
+
mediaType: string;
|
|
2654
|
+
/** @enum {string} */
|
|
2655
|
+
protectionClassification: "ordinary" | "opaque-encrypted";
|
|
790
2656
|
revision: number;
|
|
791
2657
|
/** @enum {string} */
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
};
|
|
795
|
-
|
|
796
|
-
outcome: "committed" | "replayed";
|
|
2658
|
+
state: "current" | "superseded";
|
|
2659
|
+
versionId: string;
|
|
2660
|
+
}[];
|
|
2661
|
+
nextCursor: string | null;
|
|
797
2662
|
};
|
|
798
2663
|
};
|
|
799
2664
|
};
|
|
@@ -815,7 +2680,7 @@ interface operations {
|
|
|
815
2680
|
};
|
|
816
2681
|
};
|
|
817
2682
|
};
|
|
818
|
-
/** @description The discoverable item does not permit
|
|
2683
|
+
/** @description The discoverable item does not permit metadata reads. */
|
|
819
2684
|
403: {
|
|
820
2685
|
headers: {
|
|
821
2686
|
[name: string]: unknown;
|
|
@@ -833,7 +2698,7 @@ interface operations {
|
|
|
833
2698
|
};
|
|
834
2699
|
};
|
|
835
2700
|
};
|
|
836
|
-
/** @description The
|
|
2701
|
+
/** @description The file is absent or undiscoverable. */
|
|
837
2702
|
404: {
|
|
838
2703
|
headers: {
|
|
839
2704
|
[name: string]: unknown;
|
|
@@ -851,26 +2716,8 @@ interface operations {
|
|
|
851
2716
|
};
|
|
852
2717
|
};
|
|
853
2718
|
};
|
|
854
|
-
/** @description
|
|
2719
|
+
/** @description Authorization changed after preflight. */
|
|
855
2720
|
409: {
|
|
856
|
-
headers: {
|
|
857
|
-
[name: string]: unknown;
|
|
858
|
-
};
|
|
859
|
-
content: {
|
|
860
|
-
"application/json": {
|
|
861
|
-
error: {
|
|
862
|
-
/** @enum {string} */
|
|
863
|
-
code: "idempotency_conflict";
|
|
864
|
-
details: Record<string, never>;
|
|
865
|
-
/** @enum {string} */
|
|
866
|
-
message: "The idempotency key conflicts with an earlier request.";
|
|
867
|
-
requestId: string;
|
|
868
|
-
};
|
|
869
|
-
};
|
|
870
|
-
};
|
|
871
|
-
};
|
|
872
|
-
/** @description The supplied revision or post-preflight authority is stale. */
|
|
873
|
-
412: {
|
|
874
2721
|
headers: {
|
|
875
2722
|
[name: string]: unknown;
|
|
876
2723
|
};
|
|
@@ -887,7 +2734,7 @@ interface operations {
|
|
|
887
2734
|
};
|
|
888
2735
|
};
|
|
889
2736
|
};
|
|
890
|
-
/** @description The path, query,
|
|
2737
|
+
/** @description The path, query, duplicate query key, or unexpected body is invalid. */
|
|
891
2738
|
422: {
|
|
892
2739
|
headers: {
|
|
893
2740
|
[name: string]: unknown;
|
|
@@ -902,19 +2749,10 @@ interface operations {
|
|
|
902
2749
|
message: "The request is invalid.";
|
|
903
2750
|
requestId: string;
|
|
904
2751
|
};
|
|
905
|
-
} | {
|
|
906
|
-
error: {
|
|
907
|
-
/** @enum {string} */
|
|
908
|
-
code: "invalid_idempotency_key";
|
|
909
|
-
details: Record<string, never>;
|
|
910
|
-
/** @enum {string} */
|
|
911
|
-
message: "The idempotency key is invalid.";
|
|
912
|
-
requestId: string;
|
|
913
|
-
};
|
|
914
2752
|
};
|
|
915
2753
|
};
|
|
916
2754
|
};
|
|
917
|
-
/** @description Identity, D1,
|
|
2755
|
+
/** @description Identity, D1, or authorization authority is unavailable. */
|
|
918
2756
|
503: {
|
|
919
2757
|
headers: {
|
|
920
2758
|
[name: string]: unknown;
|
|
@@ -943,34 +2781,44 @@ interface operations {
|
|
|
943
2781
|
};
|
|
944
2782
|
};
|
|
945
2783
|
};
|
|
946
|
-
|
|
2784
|
+
getItemVersion: {
|
|
947
2785
|
parameters: {
|
|
948
2786
|
query?: never;
|
|
949
2787
|
header?: never;
|
|
950
2788
|
path: {
|
|
951
2789
|
workspaceId: string;
|
|
952
2790
|
itemId: string;
|
|
2791
|
+
versionId: string;
|
|
953
2792
|
};
|
|
954
2793
|
cookie?: never;
|
|
955
2794
|
};
|
|
956
2795
|
requestBody?: never;
|
|
957
2796
|
responses: {
|
|
958
|
-
/** @description
|
|
2797
|
+
/** @description The exact workspace/item-bound immutable managed file version. */
|
|
959
2798
|
200: {
|
|
960
2799
|
headers: {
|
|
961
2800
|
[name: string]: unknown;
|
|
962
2801
|
};
|
|
963
2802
|
content: {
|
|
964
2803
|
"application/json": {
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
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;
|
|
974
2822
|
};
|
|
975
2823
|
};
|
|
976
2824
|
};
|
|
@@ -992,7 +2840,7 @@ interface operations {
|
|
|
992
2840
|
};
|
|
993
2841
|
};
|
|
994
2842
|
};
|
|
995
|
-
/** @description
|
|
2843
|
+
/** @description Managed storage is disabled for the discoverable file. */
|
|
996
2844
|
403: {
|
|
997
2845
|
headers: {
|
|
998
2846
|
[name: string]: unknown;
|
|
@@ -1010,7 +2858,7 @@ interface operations {
|
|
|
1010
2858
|
};
|
|
1011
2859
|
};
|
|
1012
2860
|
};
|
|
1013
|
-
/** @description The
|
|
2861
|
+
/** @description The file or version is absent, undiscoverable, unpublished, or deleting. */
|
|
1014
2862
|
404: {
|
|
1015
2863
|
headers: {
|
|
1016
2864
|
[name: string]: unknown;
|
|
@@ -1028,8 +2876,8 @@ interface operations {
|
|
|
1028
2876
|
};
|
|
1029
2877
|
};
|
|
1030
2878
|
};
|
|
1031
|
-
/** @description
|
|
1032
|
-
|
|
2879
|
+
/** @description Authorization or version metadata changed after preflight. */
|
|
2880
|
+
409: {
|
|
1033
2881
|
headers: {
|
|
1034
2882
|
[name: string]: unknown;
|
|
1035
2883
|
};
|
|
@@ -1046,7 +2894,7 @@ interface operations {
|
|
|
1046
2894
|
};
|
|
1047
2895
|
};
|
|
1048
2896
|
};
|
|
1049
|
-
/** @description The path, query,
|
|
2897
|
+
/** @description The path, query, or unexpected body is invalid. */
|
|
1050
2898
|
422: {
|
|
1051
2899
|
headers: {
|
|
1052
2900
|
[name: string]: unknown;
|
|
@@ -1064,7 +2912,7 @@ interface operations {
|
|
|
1064
2912
|
};
|
|
1065
2913
|
};
|
|
1066
2914
|
};
|
|
1067
|
-
/** @description Identity, D1, authorization,
|
|
2915
|
+
/** @description Identity, D1, authorization, capacity, or managed authority is unavailable. */
|
|
1068
2916
|
503: {
|
|
1069
2917
|
headers: {
|
|
1070
2918
|
[name: string]: unknown;
|
|
@@ -1093,7 +2941,7 @@ interface operations {
|
|
|
1093
2941
|
};
|
|
1094
2942
|
};
|
|
1095
2943
|
};
|
|
1096
|
-
|
|
2944
|
+
restoreItemVersion: {
|
|
1097
2945
|
parameters: {
|
|
1098
2946
|
query?: never;
|
|
1099
2947
|
header: {
|
|
@@ -1103,44 +2951,23 @@ interface operations {
|
|
|
1103
2951
|
path: {
|
|
1104
2952
|
workspaceId: string;
|
|
1105
2953
|
itemId: string;
|
|
1106
|
-
|
|
2954
|
+
versionId: string;
|
|
1107
2955
|
};
|
|
1108
2956
|
cookie?: never;
|
|
1109
2957
|
};
|
|
1110
2958
|
requestBody?: never;
|
|
1111
2959
|
responses: {
|
|
1112
|
-
/** @description The
|
|
2960
|
+
/** @description The selected version is current or the exact result was replayed. */
|
|
1113
2961
|
200: {
|
|
1114
2962
|
headers: {
|
|
1115
|
-
/** @description
|
|
1116
|
-
|
|
2963
|
+
/** @description Strong precondition for the next item mutation. */
|
|
2964
|
+
ETag?: string;
|
|
1117
2965
|
[name: string]: unknown;
|
|
1118
2966
|
};
|
|
1119
2967
|
content: {
|
|
1120
2968
|
"application/json": {
|
|
1121
|
-
|
|
1122
|
-
|
|
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";
|
|
2969
|
+
currentVersionId: string;
|
|
2970
|
+
itemRevision: number;
|
|
1144
2971
|
};
|
|
1145
2972
|
};
|
|
1146
2973
|
};
|
|
@@ -1162,7 +2989,7 @@ interface operations {
|
|
|
1162
2989
|
};
|
|
1163
2990
|
};
|
|
1164
2991
|
};
|
|
1165
|
-
/** @description The discoverable item does not permit this
|
|
2992
|
+
/** @description The discoverable item does not permit this lifecycle action. */
|
|
1166
2993
|
403: {
|
|
1167
2994
|
headers: {
|
|
1168
2995
|
[name: string]: unknown;
|
|
@@ -1180,7 +3007,7 @@ interface operations {
|
|
|
1180
3007
|
};
|
|
1181
3008
|
};
|
|
1182
3009
|
};
|
|
1183
|
-
/** @description The item
|
|
3010
|
+
/** @description The item or destination is absent or undiscoverable. */
|
|
1184
3011
|
404: {
|
|
1185
3012
|
headers: {
|
|
1186
3013
|
[name: string]: unknown;
|
|
@@ -1198,7 +3025,7 @@ interface operations {
|
|
|
1198
3025
|
};
|
|
1199
3026
|
};
|
|
1200
3027
|
};
|
|
1201
|
-
/** @description The
|
|
3028
|
+
/** @description The key conflicts, the precondition is stale, or lifecycle authority changed. */
|
|
1202
3029
|
409: {
|
|
1203
3030
|
headers: {
|
|
1204
3031
|
[name: string]: unknown;
|
|
@@ -1213,16 +3040,7 @@ interface operations {
|
|
|
1213
3040
|
message: "The idempotency key conflicts with an earlier request.";
|
|
1214
3041
|
requestId: string;
|
|
1215
3042
|
};
|
|
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": {
|
|
3043
|
+
} | {
|
|
1226
3044
|
error: {
|
|
1227
3045
|
/** @enum {string} */
|
|
1228
3046
|
code: "precondition_failed";
|
|
@@ -1234,7 +3052,7 @@ interface operations {
|
|
|
1234
3052
|
};
|
|
1235
3053
|
};
|
|
1236
3054
|
};
|
|
1237
|
-
/** @description The path, query, headers,
|
|
3055
|
+
/** @description The path, query, headers, key, or strict body is invalid. */
|
|
1238
3056
|
422: {
|
|
1239
3057
|
headers: {
|
|
1240
3058
|
[name: string]: unknown;
|
|
@@ -1261,7 +3079,7 @@ interface operations {
|
|
|
1261
3079
|
};
|
|
1262
3080
|
};
|
|
1263
3081
|
};
|
|
1264
|
-
/** @description Identity, D1, authorization,
|
|
3082
|
+
/** @description Identity, D1, authorization, capacity, or archive authority is unavailable. */
|
|
1265
3083
|
503: {
|
|
1266
3084
|
headers: {
|
|
1267
3085
|
[name: string]: unknown;
|
|
@@ -1290,63 +3108,53 @@ interface operations {
|
|
|
1290
3108
|
};
|
|
1291
3109
|
};
|
|
1292
3110
|
};
|
|
1293
|
-
|
|
3111
|
+
searchWorkspaceItems: {
|
|
1294
3112
|
parameters: {
|
|
1295
|
-
query
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
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;
|
|
3116
|
+
limit?: number;
|
|
3117
|
+
cursor?: string;
|
|
1299
3118
|
};
|
|
3119
|
+
header?: never;
|
|
1300
3120
|
path: {
|
|
1301
3121
|
workspaceId: string;
|
|
1302
|
-
itemId: string;
|
|
1303
|
-
grantId: string;
|
|
1304
3122
|
};
|
|
1305
3123
|
cookie?: never;
|
|
1306
3124
|
};
|
|
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
|
-
};
|
|
3125
|
+
requestBody?: never;
|
|
1315
3126
|
responses: {
|
|
1316
|
-
/** @description
|
|
3127
|
+
/** @description At most 50 authorized managed items in binary display-name and item-ID order. */
|
|
1317
3128
|
200: {
|
|
1318
3129
|
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
3130
|
[name: string]: unknown;
|
|
1324
3131
|
};
|
|
1325
3132
|
content: {
|
|
1326
3133
|
"application/json": {
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
availability: "active" | "expired" | "revoked";
|
|
1332
|
-
expiresAtEpochMilliseconds: number | null;
|
|
1333
|
-
grantId: string;
|
|
1334
|
-
grantee: {
|
|
3134
|
+
items: {
|
|
3135
|
+
currentVersion: {
|
|
3136
|
+
byteLength: number;
|
|
3137
|
+
mediaType: string;
|
|
1335
3138
|
/** @enum {string} */
|
|
1336
|
-
|
|
1337
|
-
userId: string;
|
|
1338
|
-
} | {
|
|
1339
|
-
teamId: string;
|
|
3139
|
+
protectionClassification: "ordinary" | "opaque-encrypted";
|
|
1340
3140
|
/** @enum {string} */
|
|
1341
|
-
|
|
1342
|
-
|
|
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";
|
|
1343
3151
|
revision: number;
|
|
1344
3152
|
/** @enum {string} */
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
3153
|
+
type: "file" | "folder";
|
|
3154
|
+
volumeId: string;
|
|
3155
|
+
workspaceId: string;
|
|
3156
|
+
}[];
|
|
3157
|
+
nextCursor: string | null;
|
|
1350
3158
|
};
|
|
1351
3159
|
};
|
|
1352
3160
|
};
|
|
@@ -1368,7 +3176,7 @@ interface operations {
|
|
|
1368
3176
|
};
|
|
1369
3177
|
};
|
|
1370
3178
|
};
|
|
1371
|
-
/** @description
|
|
3179
|
+
/** @description Managed storage is disabled for the selected workspace. */
|
|
1372
3180
|
403: {
|
|
1373
3181
|
headers: {
|
|
1374
3182
|
[name: string]: unknown;
|
|
@@ -1386,7 +3194,7 @@ interface operations {
|
|
|
1386
3194
|
};
|
|
1387
3195
|
};
|
|
1388
3196
|
};
|
|
1389
|
-
/** @description The
|
|
3197
|
+
/** @description The selected workspace is absent or undiscoverable. */
|
|
1390
3198
|
404: {
|
|
1391
3199
|
headers: {
|
|
1392
3200
|
[name: string]: unknown;
|
|
@@ -1404,26 +3212,8 @@ interface operations {
|
|
|
1404
3212
|
};
|
|
1405
3213
|
};
|
|
1406
3214
|
};
|
|
1407
|
-
/** @description
|
|
3215
|
+
/** @description Workspace, cursor anchor, or item authority changed during the search. */
|
|
1408
3216
|
409: {
|
|
1409
|
-
headers: {
|
|
1410
|
-
[name: string]: unknown;
|
|
1411
|
-
};
|
|
1412
|
-
content: {
|
|
1413
|
-
"application/json": {
|
|
1414
|
-
error: {
|
|
1415
|
-
/** @enum {string} */
|
|
1416
|
-
code: "idempotency_conflict";
|
|
1417
|
-
details: Record<string, never>;
|
|
1418
|
-
/** @enum {string} */
|
|
1419
|
-
message: "The idempotency key conflicts with an earlier request.";
|
|
1420
|
-
requestId: string;
|
|
1421
|
-
};
|
|
1422
|
-
};
|
|
1423
|
-
};
|
|
1424
|
-
};
|
|
1425
|
-
/** @description The supplied revision or post-preflight authority is stale. */
|
|
1426
|
-
412: {
|
|
1427
3217
|
headers: {
|
|
1428
3218
|
[name: string]: unknown;
|
|
1429
3219
|
};
|
|
@@ -1440,7 +3230,7 @@ interface operations {
|
|
|
1440
3230
|
};
|
|
1441
3231
|
};
|
|
1442
3232
|
};
|
|
1443
|
-
/** @description The path, query,
|
|
3233
|
+
/** @description The path, query, body, or cursor is invalid. */
|
|
1444
3234
|
422: {
|
|
1445
3235
|
headers: {
|
|
1446
3236
|
[name: string]: unknown;
|
|
@@ -1458,16 +3248,16 @@ interface operations {
|
|
|
1458
3248
|
} | {
|
|
1459
3249
|
error: {
|
|
1460
3250
|
/** @enum {string} */
|
|
1461
|
-
code: "
|
|
3251
|
+
code: "invalid_pagination_cursor";
|
|
1462
3252
|
details: Record<string, never>;
|
|
1463
3253
|
/** @enum {string} */
|
|
1464
|
-
message: "The
|
|
3254
|
+
message: "The pagination cursor is invalid.";
|
|
1465
3255
|
requestId: string;
|
|
1466
3256
|
};
|
|
1467
3257
|
};
|
|
1468
3258
|
};
|
|
1469
3259
|
};
|
|
1470
|
-
/** @description Identity, D1, authorization, audit
|
|
3260
|
+
/** @description Identity authority, D1, exact authorization, audit capacity, or cursor keys are unavailable. */
|
|
1471
3261
|
503: {
|
|
1472
3262
|
headers: {
|
|
1473
3263
|
[name: string]: unknown;
|
|
@@ -2540,6 +4330,8 @@ type JsonRequest<Name extends keyof operations> = operations[Name] extends {
|
|
|
2540
4330
|
} ? Body : never;
|
|
2541
4331
|
type ResourcePath = operations["listFolderChildren"]["parameters"]["path"];
|
|
2542
4332
|
type PageQuery = NonNullable<operations["listFolderChildren"]["parameters"]["query"]>;
|
|
4333
|
+
type SearchWorkspaceItemsPath = operations["searchWorkspaceItems"]["parameters"]["path"];
|
|
4334
|
+
type SearchWorkspaceItemsQuery = NonNullable<operations["searchWorkspaceItems"]["parameters"]["query"]>;
|
|
2543
4335
|
type CreateFolderBody = JsonRequest<"createFolder">;
|
|
2544
4336
|
type CreatePermissionBody = JsonRequest<"createItemPermission">;
|
|
2545
4337
|
type UpdatePermissionBody = JsonRequest<"updateItemPermission">;
|
|
@@ -2557,6 +4349,17 @@ type RecordUploadPartPath = operations["recordUploadPart"]["parameters"]["path"]
|
|
|
2557
4349
|
type RecordUploadPartBody = JsonRequest<"recordUploadPart">;
|
|
2558
4350
|
type CompleteUploadHeaders = operations["completeUpload"]["parameters"]["header"];
|
|
2559
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"];
|
|
2560
4363
|
type GeneratedCurrentWorkspace = JsonResponse<"getCurrentWorkspace", 200>;
|
|
2561
4364
|
type CurrentWorkspace = Readonly<Omit<GeneratedCurrentWorkspace, "workspaceReference"> & {
|
|
2562
4365
|
readonly workspaceReference: Readonly<GeneratedCurrentWorkspace["workspaceReference"]>;
|
|
@@ -2568,6 +4371,30 @@ type UploadPartDescriptor = Readonly<Omit<JsonResponse<"createUploadPartDescript
|
|
|
2568
4371
|
}>;
|
|
2569
4372
|
type UploadPartResult = Readonly<JsonResponse<"recordUploadPart", 200>>;
|
|
2570
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>>;
|
|
2571
4398
|
type GeneratedUploadStatus = JsonResponse<"getUploadStatus", 200>;
|
|
2572
4399
|
type UploadConfirmedPart = Readonly<GeneratedUploadStatus["confirmedParts"][number]>;
|
|
2573
4400
|
type UploadStatus = Readonly<Omit<GeneratedUploadStatus, "confirmedParts" | "partPolicy" | "ready"> & {
|
|
@@ -2633,6 +4460,10 @@ type ResourceInput = Readonly<ResourcePath> & {
|
|
|
2633
4460
|
};
|
|
2634
4461
|
type PageInput = ResourceInput & Readonly<PageQuery>;
|
|
2635
4462
|
type ListFolderChildrenInput = PageInput;
|
|
4463
|
+
type GetItemInput = ResourceInput;
|
|
4464
|
+
type SearchWorkspaceItemsInput = Readonly<SearchWorkspaceItemsPath> & Readonly<SearchWorkspaceItemsQuery> & {
|
|
4465
|
+
readonly signal?: AbortSignal;
|
|
4466
|
+
};
|
|
2636
4467
|
type CreateFolderInput = ResourceInput & Readonly<CreateFolderBody> & {
|
|
2637
4468
|
readonly idempotencyKey: CreateFolderHeaders["Idempotency-Key"];
|
|
2638
4469
|
};
|
|
@@ -2675,6 +4506,40 @@ type CompleteUploadInput = Readonly<UploadPath> & {
|
|
|
2675
4506
|
type AbortUploadInput = Readonly<AbortUploadPath> & {
|
|
2676
4507
|
readonly signal?: AbortSignal;
|
|
2677
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>;
|
|
2678
4543
|
type UploadFilePhase = "preparing" | "uploading" | "completing";
|
|
2679
4544
|
interface UploadFileProgress {
|
|
2680
4545
|
readonly phase: UploadFilePhase;
|
|
@@ -2701,8 +4566,19 @@ interface GetCurrentWorkspaceInput {
|
|
|
2701
4566
|
}
|
|
2702
4567
|
interface DriveOperations {
|
|
2703
4568
|
getCurrentWorkspace(input?: GetCurrentWorkspaceInput): Promise<DriveOperationResult<CurrentWorkspace, 200>>;
|
|
4569
|
+
getItem(input: GetItemInput): Promise<DriveOperationResult<ManagedItemMetadata, 200>>;
|
|
4570
|
+
searchWorkspaceItems(input: SearchWorkspaceItemsInput): Promise<DriveOperationResult<WorkspaceItemSearchPage, 200>>;
|
|
2704
4571
|
listFolderChildren(input: ListFolderChildrenInput): Promise<DriveOperationResult<FolderPage, 200>>;
|
|
2705
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>;
|
|
2706
4582
|
listItemPermissions(input: ListItemPermissionsInput): Promise<DriveOperationResult<PermissionPage, 200>>;
|
|
2707
4583
|
readEffectiveItemPermissions(input: ReadEffectiveItemPermissionsInput): Promise<DriveOperationResult<EffectivePermissionResponse, 200>>;
|
|
2708
4584
|
createItemPermission(input: CreateItemPermissionInput): Promise<DriveOperationResult<PermissionMutation, 200 | 201>>;
|
|
@@ -2720,4 +4596,4 @@ interface DriveClient extends DriveOperations {
|
|
|
2720
4596
|
uploadFile(input: UploadFileInput): Promise<DriveOperationResult<ReadyUpload, 200>>;
|
|
2721
4597
|
}
|
|
2722
4598
|
//#endregion
|
|
2723
|
-
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 };
|