@finueva/drive 0.7.0 → 0.10.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 +28 -0
- package/README.md +27 -1
- package/dist/client.d.ts +2 -2
- package/dist/client.js +1 -3371
- package/dist/contract.d.ts +1549 -546
- package/dist/core.d.ts +3 -1
- package/dist/core.js +1 -57
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -3371
- package/dist/server.d.ts +2 -2
- package/dist/server.js +1 -2588
- package/dist/types.d.ts +2 -2
- package/package.json +1 -1
package/dist/contract.d.ts
CHANGED
|
@@ -223,6 +223,70 @@ interface operations {
|
|
|
223
223
|
};
|
|
224
224
|
};
|
|
225
225
|
};
|
|
226
|
+
listIncomingShares: {
|
|
227
|
+
parameters: {
|
|
228
|
+
query?: {
|
|
229
|
+
limit?: number;
|
|
230
|
+
cursor?: string;
|
|
231
|
+
};
|
|
232
|
+
header?: never;
|
|
233
|
+
path?: never;
|
|
234
|
+
cookie?: never;
|
|
235
|
+
};
|
|
236
|
+
requestBody?: never;
|
|
237
|
+
responses: {
|
|
238
|
+
/** @description Exact opaque item contexts; no owner root or membership. */
|
|
239
|
+
200: {
|
|
240
|
+
headers: {
|
|
241
|
+
[name: string]: unknown;
|
|
242
|
+
};
|
|
243
|
+
content: {
|
|
244
|
+
"application/json": {
|
|
245
|
+
items: {
|
|
246
|
+
itemId: string;
|
|
247
|
+
workspaceId: string;
|
|
248
|
+
}[];
|
|
249
|
+
nextCursor: string | null;
|
|
250
|
+
};
|
|
251
|
+
};
|
|
252
|
+
};
|
|
253
|
+
/** @description Authentication required. */
|
|
254
|
+
401: {
|
|
255
|
+
headers: {
|
|
256
|
+
[name: string]: unknown;
|
|
257
|
+
};
|
|
258
|
+
content?: never;
|
|
259
|
+
};
|
|
260
|
+
/** @description Personal workspace not found. */
|
|
261
|
+
404: {
|
|
262
|
+
headers: {
|
|
263
|
+
[name: string]: unknown;
|
|
264
|
+
};
|
|
265
|
+
content?: never;
|
|
266
|
+
};
|
|
267
|
+
/** @description Authority changed. */
|
|
268
|
+
409: {
|
|
269
|
+
headers: {
|
|
270
|
+
[name: string]: unknown;
|
|
271
|
+
};
|
|
272
|
+
content?: never;
|
|
273
|
+
};
|
|
274
|
+
/** @description Invalid request or cursor. */
|
|
275
|
+
422: {
|
|
276
|
+
headers: {
|
|
277
|
+
[name: string]: unknown;
|
|
278
|
+
};
|
|
279
|
+
content?: never;
|
|
280
|
+
};
|
|
281
|
+
/** @description Service unavailable. */
|
|
282
|
+
503: {
|
|
283
|
+
headers: {
|
|
284
|
+
[name: string]: unknown;
|
|
285
|
+
};
|
|
286
|
+
content?: never;
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
};
|
|
226
290
|
getCurrentWorkspace: {
|
|
227
291
|
parameters: {
|
|
228
292
|
query?: never;
|
|
@@ -355,45 +419,47 @@ interface operations {
|
|
|
355
419
|
};
|
|
356
420
|
};
|
|
357
421
|
};
|
|
358
|
-
|
|
422
|
+
getCurrentWorkspaceSources: {
|
|
359
423
|
parameters: {
|
|
360
424
|
query?: never;
|
|
361
425
|
header?: never;
|
|
362
|
-
path
|
|
363
|
-
workspaceId: string;
|
|
364
|
-
itemId: string;
|
|
365
|
-
};
|
|
426
|
+
path?: never;
|
|
366
427
|
cookie?: never;
|
|
367
428
|
};
|
|
368
429
|
requestBody?: never;
|
|
369
430
|
responses: {
|
|
370
|
-
/** @description
|
|
431
|
+
/** @description One canonical managed volume. Known providers are not connections or health evidence. */
|
|
371
432
|
200: {
|
|
372
433
|
headers: {
|
|
373
|
-
/** @description Strong precondition for the next item mutation. */
|
|
374
|
-
ETag?: string;
|
|
375
434
|
[name: string]: unknown;
|
|
376
435
|
};
|
|
377
436
|
content: {
|
|
378
437
|
"application/json": {
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
438
|
+
/** @enum {boolean} */
|
|
439
|
+
externalConnectionsSupported: false;
|
|
440
|
+
knownProviders: ("managed" | "google-drive" | "onedrive" | "dropbox" | "s3-compatible")[];
|
|
441
|
+
volumes: {
|
|
382
442
|
/** @enum {string} */
|
|
383
|
-
|
|
443
|
+
name: "Files";
|
|
384
444
|
/** @enum {string} */
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
445
|
+
provider: "managed";
|
|
446
|
+
rootItemId: string;
|
|
447
|
+
volumeId: string;
|
|
448
|
+
}[];
|
|
449
|
+
workspace: {
|
|
450
|
+
rootItemId: string;
|
|
451
|
+
rootVolumeId: string;
|
|
452
|
+
workspaceId: string;
|
|
453
|
+
workspaceReference: {
|
|
454
|
+
/** @enum {string} */
|
|
455
|
+
type: "personal";
|
|
456
|
+
userId: string;
|
|
457
|
+
} | {
|
|
458
|
+
organizationId: string;
|
|
459
|
+
/** @enum {string} */
|
|
460
|
+
type: "organization";
|
|
461
|
+
};
|
|
462
|
+
};
|
|
397
463
|
};
|
|
398
464
|
};
|
|
399
465
|
};
|
|
@@ -415,7 +481,7 @@ interface operations {
|
|
|
415
481
|
};
|
|
416
482
|
};
|
|
417
483
|
};
|
|
418
|
-
/** @description Managed storage is disabled
|
|
484
|
+
/** @description Managed storage is disabled. */
|
|
419
485
|
403: {
|
|
420
486
|
headers: {
|
|
421
487
|
[name: string]: unknown;
|
|
@@ -433,7 +499,7 @@ interface operations {
|
|
|
433
499
|
};
|
|
434
500
|
};
|
|
435
501
|
};
|
|
436
|
-
/** @description The
|
|
502
|
+
/** @description The current workspace is not provisioned or accessible. */
|
|
437
503
|
404: {
|
|
438
504
|
headers: {
|
|
439
505
|
[name: string]: unknown;
|
|
@@ -451,25 +517,7 @@ interface operations {
|
|
|
451
517
|
};
|
|
452
518
|
};
|
|
453
519
|
};
|
|
454
|
-
/** @description
|
|
455
|
-
409: {
|
|
456
|
-
headers: {
|
|
457
|
-
[name: string]: unknown;
|
|
458
|
-
};
|
|
459
|
-
content: {
|
|
460
|
-
"application/json": {
|
|
461
|
-
error: {
|
|
462
|
-
/** @enum {string} */
|
|
463
|
-
code: "precondition_failed";
|
|
464
|
-
details: Record<string, never>;
|
|
465
|
-
/** @enum {string} */
|
|
466
|
-
message: "The request precondition failed.";
|
|
467
|
-
requestId: string;
|
|
468
|
-
};
|
|
469
|
-
};
|
|
470
|
-
};
|
|
471
|
-
};
|
|
472
|
-
/** @description The path, query, or unexpected body is invalid. */
|
|
520
|
+
/** @description Unsupported query input. */
|
|
473
521
|
422: {
|
|
474
522
|
headers: {
|
|
475
523
|
[name: string]: unknown;
|
|
@@ -487,7 +535,7 @@ interface operations {
|
|
|
487
535
|
};
|
|
488
536
|
};
|
|
489
537
|
};
|
|
490
|
-
/** @description Identity, D1,
|
|
538
|
+
/** @description Identity authority, D1, or canonical managed root is unavailable. */
|
|
491
539
|
503: {
|
|
492
540
|
headers: {
|
|
493
541
|
[name: string]: unknown;
|
|
@@ -516,68 +564,64 @@ interface operations {
|
|
|
516
564
|
};
|
|
517
565
|
};
|
|
518
566
|
};
|
|
519
|
-
|
|
567
|
+
listWorkspaceItems: {
|
|
520
568
|
parameters: {
|
|
521
|
-
query?:
|
|
522
|
-
|
|
523
|
-
"
|
|
524
|
-
|
|
569
|
+
query?: {
|
|
570
|
+
view?: "recent" | "shared" | "trash";
|
|
571
|
+
kind?: "file" | "folder";
|
|
572
|
+
creatorUserId?: string;
|
|
573
|
+
limit?: number;
|
|
574
|
+
cursor?: string;
|
|
525
575
|
};
|
|
576
|
+
header?: never;
|
|
526
577
|
path: {
|
|
527
578
|
workspaceId: string;
|
|
528
|
-
itemId: string;
|
|
529
579
|
};
|
|
530
580
|
cookie?: never;
|
|
531
581
|
};
|
|
532
582
|
requestBody?: never;
|
|
533
583
|
responses: {
|
|
534
|
-
/** @description
|
|
584
|
+
/** @description Authorized items and an authenticated continuation; no total count. */
|
|
535
585
|
200: {
|
|
536
586
|
headers: {
|
|
537
|
-
/** @description Strong precondition for the next item mutation. */
|
|
538
|
-
ETag?: string;
|
|
539
|
-
[name: string]: unknown;
|
|
540
|
-
};
|
|
541
|
-
content: {
|
|
542
|
-
"application/json": {
|
|
543
|
-
itemId: string;
|
|
544
|
-
/** @enum {string} */
|
|
545
|
-
kind: "file" | "folder";
|
|
546
|
-
name: string;
|
|
547
|
-
parentItemId: string;
|
|
548
|
-
purgeAfterEpochMilliseconds: number | null;
|
|
549
|
-
revision: number;
|
|
550
|
-
/** @enum {string} */
|
|
551
|
-
state: "active" | "trashed" | "deleting";
|
|
552
|
-
volumeId: string;
|
|
553
|
-
workspaceId: string;
|
|
554
|
-
};
|
|
555
|
-
};
|
|
556
|
-
};
|
|
557
|
-
/** @description Deletion was retained and bounded reconciliation was attempted. */
|
|
558
|
-
202: {
|
|
559
|
-
headers: {
|
|
560
|
-
/** @description Strong precondition for the next item mutation. */
|
|
561
|
-
ETag?: string;
|
|
562
587
|
[name: string]: unknown;
|
|
563
588
|
};
|
|
564
589
|
content: {
|
|
565
590
|
"application/json": {
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
591
|
+
items: {
|
|
592
|
+
createdAtEpochMilliseconds: number | null;
|
|
593
|
+
creatorUserId: string | null;
|
|
594
|
+
currentVersion: {
|
|
595
|
+
byteLength: number;
|
|
596
|
+
mediaType: string;
|
|
597
|
+
/** @enum {string} */
|
|
598
|
+
protectionClassification: "ordinary" | "opaque-encrypted";
|
|
599
|
+
/** @enum {string} */
|
|
600
|
+
state: "current";
|
|
601
|
+
versionId: string;
|
|
602
|
+
} | null;
|
|
603
|
+
etag: string;
|
|
604
|
+
itemId: string;
|
|
605
|
+
/** @enum {string} */
|
|
606
|
+
lifecycleState: "active" | "trashed";
|
|
607
|
+
modifiedAtEpochMilliseconds: number | null;
|
|
608
|
+
name: string;
|
|
609
|
+
parentId: string | null;
|
|
610
|
+
/** @enum {string} */
|
|
611
|
+
provider: "managed";
|
|
612
|
+
purgeAfterEpochMilliseconds: number | null;
|
|
613
|
+
revision: number;
|
|
614
|
+
trashedAtEpochMilliseconds: number | null;
|
|
615
|
+
/** @enum {string} */
|
|
616
|
+
type: "file" | "folder";
|
|
617
|
+
volumeId: string;
|
|
618
|
+
workspaceId: string;
|
|
619
|
+
}[];
|
|
620
|
+
nextCursor: string | null;
|
|
577
621
|
};
|
|
578
622
|
};
|
|
579
623
|
};
|
|
580
|
-
/** @description
|
|
624
|
+
/** @description Authentication required. */
|
|
581
625
|
401: {
|
|
582
626
|
headers: {
|
|
583
627
|
[name: string]: unknown;
|
|
@@ -586,16 +630,15 @@ interface operations {
|
|
|
586
630
|
"application/json": {
|
|
587
631
|
error: {
|
|
588
632
|
/** @enum {string} */
|
|
589
|
-
code: "authentication_required";
|
|
633
|
+
code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "invalid_pagination_cursor" | "precondition_failed" | "service_unavailable";
|
|
590
634
|
details: Record<string, never>;
|
|
591
|
-
|
|
592
|
-
message: "Authentication is required.";
|
|
635
|
+
message: string;
|
|
593
636
|
requestId: string;
|
|
594
637
|
};
|
|
595
638
|
};
|
|
596
639
|
};
|
|
597
640
|
};
|
|
598
|
-
/** @description The
|
|
641
|
+
/** @description The action is not permitted. */
|
|
599
642
|
403: {
|
|
600
643
|
headers: {
|
|
601
644
|
[name: string]: unknown;
|
|
@@ -604,16 +647,15 @@ interface operations {
|
|
|
604
647
|
"application/json": {
|
|
605
648
|
error: {
|
|
606
649
|
/** @enum {string} */
|
|
607
|
-
code: "permission_denied";
|
|
650
|
+
code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "invalid_pagination_cursor" | "precondition_failed" | "service_unavailable";
|
|
608
651
|
details: Record<string, never>;
|
|
609
|
-
|
|
610
|
-
message: "The requested action is not permitted.";
|
|
652
|
+
message: string;
|
|
611
653
|
requestId: string;
|
|
612
654
|
};
|
|
613
655
|
};
|
|
614
656
|
};
|
|
615
657
|
};
|
|
616
|
-
/** @description
|
|
658
|
+
/** @description Workspace not found. */
|
|
617
659
|
404: {
|
|
618
660
|
headers: {
|
|
619
661
|
[name: string]: unknown;
|
|
@@ -622,16 +664,15 @@ interface operations {
|
|
|
622
664
|
"application/json": {
|
|
623
665
|
error: {
|
|
624
666
|
/** @enum {string} */
|
|
625
|
-
code: "resource_not_found";
|
|
667
|
+
code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "invalid_pagination_cursor" | "precondition_failed" | "service_unavailable";
|
|
626
668
|
details: Record<string, never>;
|
|
627
|
-
|
|
628
|
-
message: "The requested resource was not found.";
|
|
669
|
+
message: string;
|
|
629
670
|
requestId: string;
|
|
630
671
|
};
|
|
631
672
|
};
|
|
632
673
|
};
|
|
633
674
|
};
|
|
634
|
-
/** @description The
|
|
675
|
+
/** @description The selected authority or page changed; restart the query. */
|
|
635
676
|
409: {
|
|
636
677
|
headers: {
|
|
637
678
|
[name: string]: unknown;
|
|
@@ -640,25 +681,15 @@ interface operations {
|
|
|
640
681
|
"application/json": {
|
|
641
682
|
error: {
|
|
642
683
|
/** @enum {string} */
|
|
643
|
-
code: "
|
|
644
|
-
details: Record<string, never>;
|
|
645
|
-
/** @enum {string} */
|
|
646
|
-
message: "The idempotency key conflicts with an earlier request.";
|
|
647
|
-
requestId: string;
|
|
648
|
-
};
|
|
649
|
-
} | {
|
|
650
|
-
error: {
|
|
651
|
-
/** @enum {string} */
|
|
652
|
-
code: "precondition_failed";
|
|
684
|
+
code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "invalid_pagination_cursor" | "precondition_failed" | "service_unavailable";
|
|
653
685
|
details: Record<string, never>;
|
|
654
|
-
|
|
655
|
-
message: "The request precondition failed.";
|
|
686
|
+
message: string;
|
|
656
687
|
requestId: string;
|
|
657
688
|
};
|
|
658
689
|
};
|
|
659
690
|
};
|
|
660
691
|
};
|
|
661
|
-
/** @description
|
|
692
|
+
/** @description Invalid request or cursor. */
|
|
662
693
|
422: {
|
|
663
694
|
headers: {
|
|
664
695
|
[name: string]: unknown;
|
|
@@ -667,25 +698,15 @@ interface operations {
|
|
|
667
698
|
"application/json": {
|
|
668
699
|
error: {
|
|
669
700
|
/** @enum {string} */
|
|
670
|
-
code: "invalid_request";
|
|
671
|
-
details: Record<string, never>;
|
|
672
|
-
/** @enum {string} */
|
|
673
|
-
message: "The request is invalid.";
|
|
674
|
-
requestId: string;
|
|
675
|
-
};
|
|
676
|
-
} | {
|
|
677
|
-
error: {
|
|
678
|
-
/** @enum {string} */
|
|
679
|
-
code: "invalid_idempotency_key";
|
|
701
|
+
code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "invalid_pagination_cursor" | "precondition_failed" | "service_unavailable";
|
|
680
702
|
details: Record<string, never>;
|
|
681
|
-
|
|
682
|
-
message: "The idempotency key is invalid.";
|
|
703
|
+
message: string;
|
|
683
704
|
requestId: string;
|
|
684
705
|
};
|
|
685
706
|
};
|
|
686
707
|
};
|
|
687
708
|
};
|
|
688
|
-
/** @description
|
|
709
|
+
/** @description Authoritative state is unavailable. */
|
|
689
710
|
503: {
|
|
690
711
|
headers: {
|
|
691
712
|
[name: string]: unknown;
|
|
@@ -694,19 +715,9 @@ interface operations {
|
|
|
694
715
|
"application/json": {
|
|
695
716
|
error: {
|
|
696
717
|
/** @enum {string} */
|
|
697
|
-
code: "identity_authority_unavailable";
|
|
698
|
-
details: Record<string, never>;
|
|
699
|
-
/** @enum {string} */
|
|
700
|
-
message: "Authentication is temporarily unavailable.";
|
|
701
|
-
requestId: string;
|
|
702
|
-
};
|
|
703
|
-
} | {
|
|
704
|
-
error: {
|
|
705
|
-
/** @enum {string} */
|
|
706
|
-
code: "service_unavailable";
|
|
718
|
+
code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "invalid_pagination_cursor" | "precondition_failed" | "service_unavailable";
|
|
707
719
|
details: Record<string, never>;
|
|
708
|
-
|
|
709
|
-
message: "The service is temporarily unavailable.";
|
|
720
|
+
message: string;
|
|
710
721
|
requestId: string;
|
|
711
722
|
};
|
|
712
723
|
};
|
|
@@ -714,29 +725,19 @@ interface operations {
|
|
|
714
725
|
};
|
|
715
726
|
};
|
|
716
727
|
};
|
|
717
|
-
|
|
728
|
+
getItem: {
|
|
718
729
|
parameters: {
|
|
719
730
|
query?: never;
|
|
720
|
-
header
|
|
721
|
-
"Idempotency-Key": string;
|
|
722
|
-
"If-Match": string;
|
|
723
|
-
};
|
|
731
|
+
header?: never;
|
|
724
732
|
path: {
|
|
725
733
|
workspaceId: string;
|
|
726
734
|
itemId: string;
|
|
727
735
|
};
|
|
728
736
|
cookie?: never;
|
|
729
737
|
};
|
|
730
|
-
requestBody
|
|
731
|
-
content: {
|
|
732
|
-
"application/json": {
|
|
733
|
-
name: string;
|
|
734
|
-
parentItemId: string;
|
|
735
|
-
};
|
|
736
|
-
};
|
|
737
|
-
};
|
|
738
|
+
requestBody?: never;
|
|
738
739
|
responses: {
|
|
739
|
-
/** @description The managed item
|
|
740
|
+
/** @description The active managed item and current published version metadata. */
|
|
740
741
|
200: {
|
|
741
742
|
headers: {
|
|
742
743
|
/** @description Strong precondition for the next item mutation. */
|
|
@@ -745,16 +746,23 @@ interface operations {
|
|
|
745
746
|
};
|
|
746
747
|
content: {
|
|
747
748
|
"application/json": {
|
|
749
|
+
currentVersion: {
|
|
750
|
+
byteLength: number;
|
|
751
|
+
mediaType: string;
|
|
752
|
+
/** @enum {string} */
|
|
753
|
+
protectionClassification: "ordinary" | "opaque-encrypted";
|
|
754
|
+
/** @enum {string} */
|
|
755
|
+
state: "current";
|
|
756
|
+
versionId: string;
|
|
757
|
+
} | null;
|
|
748
758
|
itemId: string;
|
|
749
759
|
/** @enum {string} */
|
|
750
|
-
|
|
760
|
+
lifecycleState: "active";
|
|
751
761
|
name: string;
|
|
752
|
-
|
|
753
|
-
purgeAfterEpochMilliseconds: number | null;
|
|
762
|
+
parentId: string | null;
|
|
754
763
|
revision: number;
|
|
755
764
|
/** @enum {string} */
|
|
756
|
-
|
|
757
|
-
volumeId: string;
|
|
765
|
+
type: "file" | "folder";
|
|
758
766
|
workspaceId: string;
|
|
759
767
|
};
|
|
760
768
|
};
|
|
@@ -777,7 +785,7 @@ interface operations {
|
|
|
777
785
|
};
|
|
778
786
|
};
|
|
779
787
|
};
|
|
780
|
-
/** @description
|
|
788
|
+
/** @description Managed storage is disabled for the discoverable item. */
|
|
781
789
|
403: {
|
|
782
790
|
headers: {
|
|
783
791
|
[name: string]: unknown;
|
|
@@ -795,7 +803,7 @@ interface operations {
|
|
|
795
803
|
};
|
|
796
804
|
};
|
|
797
805
|
};
|
|
798
|
-
/** @description The item
|
|
806
|
+
/** @description The item is absent, undiscoverable, tombstoned, or unpublished. */
|
|
799
807
|
404: {
|
|
800
808
|
headers: {
|
|
801
809
|
[name: string]: unknown;
|
|
@@ -813,22 +821,13 @@ interface operations {
|
|
|
813
821
|
};
|
|
814
822
|
};
|
|
815
823
|
};
|
|
816
|
-
/** @description
|
|
824
|
+
/** @description Authorization or metadata changed after preflight. */
|
|
817
825
|
409: {
|
|
818
826
|
headers: {
|
|
819
827
|
[name: string]: unknown;
|
|
820
828
|
};
|
|
821
829
|
content: {
|
|
822
830
|
"application/json": {
|
|
823
|
-
error: {
|
|
824
|
-
/** @enum {string} */
|
|
825
|
-
code: "idempotency_conflict";
|
|
826
|
-
details: Record<string, never>;
|
|
827
|
-
/** @enum {string} */
|
|
828
|
-
message: "The idempotency key conflicts with an earlier request.";
|
|
829
|
-
requestId: string;
|
|
830
|
-
};
|
|
831
|
-
} | {
|
|
832
831
|
error: {
|
|
833
832
|
/** @enum {string} */
|
|
834
833
|
code: "precondition_failed";
|
|
@@ -840,7 +839,7 @@ interface operations {
|
|
|
840
839
|
};
|
|
841
840
|
};
|
|
842
841
|
};
|
|
843
|
-
/** @description The path, query,
|
|
842
|
+
/** @description The path, query, or unexpected body is invalid. */
|
|
844
843
|
422: {
|
|
845
844
|
headers: {
|
|
846
845
|
[name: string]: unknown;
|
|
@@ -855,19 +854,10 @@ interface operations {
|
|
|
855
854
|
message: "The request is invalid.";
|
|
856
855
|
requestId: string;
|
|
857
856
|
};
|
|
858
|
-
} | {
|
|
859
|
-
error: {
|
|
860
|
-
/** @enum {string} */
|
|
861
|
-
code: "invalid_idempotency_key";
|
|
862
|
-
details: Record<string, never>;
|
|
863
|
-
/** @enum {string} */
|
|
864
|
-
message: "The idempotency key is invalid.";
|
|
865
|
-
requestId: string;
|
|
866
|
-
};
|
|
867
857
|
};
|
|
868
858
|
};
|
|
869
859
|
};
|
|
870
|
-
/** @description Identity, D1, authorization, capacity, or
|
|
860
|
+
/** @description Identity, D1, authorization, capacity, or managed authority is unavailable. */
|
|
871
861
|
503: {
|
|
872
862
|
headers: {
|
|
873
863
|
[name: string]: unknown;
|
|
@@ -896,13 +886,13 @@ interface operations {
|
|
|
896
886
|
};
|
|
897
887
|
};
|
|
898
888
|
};
|
|
899
|
-
|
|
889
|
+
deleteItem: {
|
|
900
890
|
parameters: {
|
|
901
|
-
query?:
|
|
902
|
-
|
|
903
|
-
|
|
891
|
+
query?: never;
|
|
892
|
+
header: {
|
|
893
|
+
"Idempotency-Key": string;
|
|
894
|
+
"If-Match": string;
|
|
904
895
|
};
|
|
905
|
-
header?: never;
|
|
906
896
|
path: {
|
|
907
897
|
workspaceId: string;
|
|
908
898
|
itemId: string;
|
|
@@ -911,30 +901,49 @@ interface operations {
|
|
|
911
901
|
};
|
|
912
902
|
requestBody?: never;
|
|
913
903
|
responses: {
|
|
914
|
-
/** @description
|
|
904
|
+
/** @description The retained deletion result was exactly replayed. */
|
|
915
905
|
200: {
|
|
916
906
|
headers: {
|
|
907
|
+
/** @description Strong precondition for the next item mutation. */
|
|
908
|
+
ETag?: string;
|
|
917
909
|
[name: string]: unknown;
|
|
918
910
|
};
|
|
919
911
|
content: {
|
|
920
912
|
"application/json": {
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
913
|
+
itemId: string;
|
|
914
|
+
/** @enum {string} */
|
|
915
|
+
kind: "file" | "folder";
|
|
916
|
+
name: string;
|
|
917
|
+
parentItemId: string;
|
|
918
|
+
purgeAfterEpochMilliseconds: number | null;
|
|
919
|
+
revision: number;
|
|
920
|
+
/** @enum {string} */
|
|
921
|
+
state: "active" | "trashed" | "deleting";
|
|
922
|
+
volumeId: string;
|
|
923
|
+
workspaceId: string;
|
|
924
|
+
};
|
|
925
|
+
};
|
|
926
|
+
};
|
|
927
|
+
/** @description Deletion was retained and bounded reconciliation was attempted. */
|
|
928
|
+
202: {
|
|
929
|
+
headers: {
|
|
930
|
+
/** @description Strong precondition for the next item mutation. */
|
|
931
|
+
ETag?: string;
|
|
932
|
+
[name: string]: unknown;
|
|
933
|
+
};
|
|
934
|
+
content: {
|
|
935
|
+
"application/json": {
|
|
936
|
+
itemId: string;
|
|
937
|
+
/** @enum {string} */
|
|
938
|
+
kind: "file" | "folder";
|
|
939
|
+
name: string;
|
|
940
|
+
parentItemId: string;
|
|
941
|
+
purgeAfterEpochMilliseconds: number | null;
|
|
942
|
+
revision: number;
|
|
943
|
+
/** @enum {string} */
|
|
944
|
+
state: "active" | "trashed" | "deleting";
|
|
945
|
+
volumeId: string;
|
|
946
|
+
workspaceId: string;
|
|
938
947
|
};
|
|
939
948
|
};
|
|
940
949
|
};
|
|
@@ -956,7 +965,7 @@ interface operations {
|
|
|
956
965
|
};
|
|
957
966
|
};
|
|
958
967
|
};
|
|
959
|
-
/** @description
|
|
968
|
+
/** @description The discoverable item does not permit this lifecycle action. */
|
|
960
969
|
403: {
|
|
961
970
|
headers: {
|
|
962
971
|
[name: string]: unknown;
|
|
@@ -974,7 +983,7 @@ interface operations {
|
|
|
974
983
|
};
|
|
975
984
|
};
|
|
976
985
|
};
|
|
977
|
-
/** @description The
|
|
986
|
+
/** @description The item or destination is absent or undiscoverable. */
|
|
978
987
|
404: {
|
|
979
988
|
headers: {
|
|
980
989
|
[name: string]: unknown;
|
|
@@ -992,13 +1001,22 @@ interface operations {
|
|
|
992
1001
|
};
|
|
993
1002
|
};
|
|
994
1003
|
};
|
|
995
|
-
/** @description
|
|
1004
|
+
/** @description The key conflicts, the precondition is stale, or lifecycle authority changed. */
|
|
996
1005
|
409: {
|
|
997
1006
|
headers: {
|
|
998
1007
|
[name: string]: unknown;
|
|
999
1008
|
};
|
|
1000
1009
|
content: {
|
|
1001
1010
|
"application/json": {
|
|
1011
|
+
error: {
|
|
1012
|
+
/** @enum {string} */
|
|
1013
|
+
code: "idempotency_conflict";
|
|
1014
|
+
details: Record<string, never>;
|
|
1015
|
+
/** @enum {string} */
|
|
1016
|
+
message: "The idempotency key conflicts with an earlier request.";
|
|
1017
|
+
requestId: string;
|
|
1018
|
+
};
|
|
1019
|
+
} | {
|
|
1002
1020
|
error: {
|
|
1003
1021
|
/** @enum {string} */
|
|
1004
1022
|
code: "precondition_failed";
|
|
@@ -1010,7 +1028,7 @@ interface operations {
|
|
|
1010
1028
|
};
|
|
1011
1029
|
};
|
|
1012
1030
|
};
|
|
1013
|
-
/** @description The path, query, or
|
|
1031
|
+
/** @description The path, query, headers, key, or strict body is invalid. */
|
|
1014
1032
|
422: {
|
|
1015
1033
|
headers: {
|
|
1016
1034
|
[name: string]: unknown;
|
|
@@ -1028,16 +1046,16 @@ interface operations {
|
|
|
1028
1046
|
} | {
|
|
1029
1047
|
error: {
|
|
1030
1048
|
/** @enum {string} */
|
|
1031
|
-
code: "
|
|
1049
|
+
code: "invalid_idempotency_key";
|
|
1032
1050
|
details: Record<string, never>;
|
|
1033
1051
|
/** @enum {string} */
|
|
1034
|
-
message: "The
|
|
1052
|
+
message: "The idempotency key is invalid.";
|
|
1035
1053
|
requestId: string;
|
|
1036
1054
|
};
|
|
1037
1055
|
};
|
|
1038
1056
|
};
|
|
1039
1057
|
};
|
|
1040
|
-
/** @description Identity
|
|
1058
|
+
/** @description Identity, D1, authorization, capacity, or archive authority is unavailable. */
|
|
1041
1059
|
503: {
|
|
1042
1060
|
headers: {
|
|
1043
1061
|
[name: string]: unknown;
|
|
@@ -1066,11 +1084,12 @@ interface operations {
|
|
|
1066
1084
|
};
|
|
1067
1085
|
};
|
|
1068
1086
|
};
|
|
1069
|
-
|
|
1087
|
+
updateItem: {
|
|
1070
1088
|
parameters: {
|
|
1071
1089
|
query?: never;
|
|
1072
1090
|
header: {
|
|
1073
1091
|
"Idempotency-Key": string;
|
|
1092
|
+
"If-Match": string;
|
|
1074
1093
|
};
|
|
1075
1094
|
path: {
|
|
1076
1095
|
workspaceId: string;
|
|
@@ -1081,18 +1100,17 @@ interface operations {
|
|
|
1081
1100
|
requestBody: {
|
|
1082
1101
|
content: {
|
|
1083
1102
|
"application/json": {
|
|
1084
|
-
/**
|
|
1085
|
-
* Format: finueva-safe-filename
|
|
1086
|
-
* @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.
|
|
1087
|
-
*/
|
|
1088
1103
|
name: string;
|
|
1104
|
+
parentItemId: string;
|
|
1089
1105
|
};
|
|
1090
1106
|
};
|
|
1091
1107
|
};
|
|
1092
1108
|
responses: {
|
|
1093
|
-
/** @description The
|
|
1109
|
+
/** @description The managed item was updated or exactly replayed. */
|
|
1094
1110
|
200: {
|
|
1095
1111
|
headers: {
|
|
1112
|
+
/** @description Strong precondition for the next item mutation. */
|
|
1113
|
+
ETag?: string;
|
|
1096
1114
|
[name: string]: unknown;
|
|
1097
1115
|
};
|
|
1098
1116
|
content: {
|
|
@@ -1100,39 +1118,12 @@ interface operations {
|
|
|
1100
1118
|
itemId: string;
|
|
1101
1119
|
/** @enum {string} */
|
|
1102
1120
|
kind: "file" | "folder";
|
|
1103
|
-
/**
|
|
1104
|
-
* Format: finueva-safe-filename
|
|
1105
|
-
* @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.
|
|
1106
|
-
*/
|
|
1107
|
-
name: string;
|
|
1108
|
-
parentItemId: string;
|
|
1109
|
-
revision: number;
|
|
1110
|
-
/** @enum {string} */
|
|
1111
|
-
visibility: "workspace" | "restricted";
|
|
1112
|
-
volumeId: string;
|
|
1113
|
-
workspaceId: string;
|
|
1114
|
-
};
|
|
1115
|
-
};
|
|
1116
|
-
};
|
|
1117
|
-
/** @description The folder is committed. */
|
|
1118
|
-
201: {
|
|
1119
|
-
headers: {
|
|
1120
|
-
[name: string]: unknown;
|
|
1121
|
-
};
|
|
1122
|
-
content: {
|
|
1123
|
-
"application/json": {
|
|
1124
|
-
itemId: string;
|
|
1125
|
-
/** @enum {string} */
|
|
1126
|
-
kind: "file" | "folder";
|
|
1127
|
-
/**
|
|
1128
|
-
* Format: finueva-safe-filename
|
|
1129
|
-
* @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.
|
|
1130
|
-
*/
|
|
1131
1121
|
name: string;
|
|
1132
1122
|
parentItemId: string;
|
|
1123
|
+
purgeAfterEpochMilliseconds: number | null;
|
|
1133
1124
|
revision: number;
|
|
1134
1125
|
/** @enum {string} */
|
|
1135
|
-
|
|
1126
|
+
state: "active" | "trashed" | "deleting";
|
|
1136
1127
|
volumeId: string;
|
|
1137
1128
|
workspaceId: string;
|
|
1138
1129
|
};
|
|
@@ -1156,7 +1147,7 @@ interface operations {
|
|
|
1156
1147
|
};
|
|
1157
1148
|
};
|
|
1158
1149
|
};
|
|
1159
|
-
/** @description The discoverable
|
|
1150
|
+
/** @description The discoverable item does not permit this lifecycle action. */
|
|
1160
1151
|
403: {
|
|
1161
1152
|
headers: {
|
|
1162
1153
|
[name: string]: unknown;
|
|
@@ -1174,7 +1165,7 @@ interface operations {
|
|
|
1174
1165
|
};
|
|
1175
1166
|
};
|
|
1176
1167
|
};
|
|
1177
|
-
/** @description The
|
|
1168
|
+
/** @description The item or destination is absent or undiscoverable. */
|
|
1178
1169
|
404: {
|
|
1179
1170
|
headers: {
|
|
1180
1171
|
[name: string]: unknown;
|
|
@@ -1192,7 +1183,7 @@ interface operations {
|
|
|
1192
1183
|
};
|
|
1193
1184
|
};
|
|
1194
1185
|
};
|
|
1195
|
-
/** @description The
|
|
1186
|
+
/** @description The key conflicts, the precondition is stale, or lifecycle authority changed. */
|
|
1196
1187
|
409: {
|
|
1197
1188
|
headers: {
|
|
1198
1189
|
[name: string]: unknown;
|
|
@@ -1219,7 +1210,7 @@ interface operations {
|
|
|
1219
1210
|
};
|
|
1220
1211
|
};
|
|
1221
1212
|
};
|
|
1222
|
-
/** @description The path,
|
|
1213
|
+
/** @description The path, query, headers, key, or strict body is invalid. */
|
|
1223
1214
|
422: {
|
|
1224
1215
|
headers: {
|
|
1225
1216
|
[name: string]: unknown;
|
|
@@ -1246,7 +1237,7 @@ interface operations {
|
|
|
1246
1237
|
};
|
|
1247
1238
|
};
|
|
1248
1239
|
};
|
|
1249
|
-
/** @description Identity
|
|
1240
|
+
/** @description Identity, D1, authorization, capacity, or archive authority is unavailable. */
|
|
1250
1241
|
503: {
|
|
1251
1242
|
headers: {
|
|
1252
1243
|
[name: string]: unknown;
|
|
@@ -1275,19 +1266,13 @@ interface operations {
|
|
|
1275
1266
|
};
|
|
1276
1267
|
};
|
|
1277
1268
|
};
|
|
1278
|
-
|
|
1269
|
+
listFolderChildren: {
|
|
1279
1270
|
parameters: {
|
|
1280
1271
|
query?: {
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
header: {
|
|
1284
|
-
"Idempotency-Key": string;
|
|
1285
|
-
"Download-Method"?: string;
|
|
1286
|
-
Range?: string;
|
|
1287
|
-
"If-Match"?: string;
|
|
1288
|
-
"If-None-Match"?: string;
|
|
1289
|
-
"If-Range"?: string;
|
|
1272
|
+
limit?: number;
|
|
1273
|
+
cursor?: string;
|
|
1290
1274
|
};
|
|
1275
|
+
header?: never;
|
|
1291
1276
|
path: {
|
|
1292
1277
|
workspaceId: string;
|
|
1293
1278
|
itemId: string;
|
|
@@ -1296,61 +1281,886 @@ interface operations {
|
|
|
1296
1281
|
};
|
|
1297
1282
|
requestBody?: never;
|
|
1298
1283
|
responses: {
|
|
1299
|
-
/** @description
|
|
1284
|
+
/** @description At most 50 active children in stable item-ID order. */
|
|
1300
1285
|
200: {
|
|
1301
1286
|
headers: {
|
|
1302
1287
|
[name: string]: unknown;
|
|
1303
1288
|
};
|
|
1304
1289
|
content: {
|
|
1305
1290
|
"application/json": {
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
[key: string]: string;
|
|
1309
|
-
};
|
|
1310
|
-
/** @enum {string} */
|
|
1311
|
-
method: "GET" | "HEAD";
|
|
1312
|
-
/** @enum {string} */
|
|
1313
|
-
mode: "presigned-single";
|
|
1314
|
-
response: {
|
|
1291
|
+
items: {
|
|
1292
|
+
itemId: string;
|
|
1315
1293
|
/** @enum {string} */
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1294
|
+
kind: "file" | "folder";
|
|
1295
|
+
/**
|
|
1296
|
+
* Format: finueva-safe-filename
|
|
1297
|
+
* @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.
|
|
1298
|
+
*/
|
|
1299
|
+
name: string;
|
|
1300
|
+
parentItemId: string;
|
|
1301
|
+
revision: number;
|
|
1302
|
+
/** @enum {string} */
|
|
1303
|
+
visibility: "workspace" | "restricted";
|
|
1304
|
+
volumeId: string;
|
|
1305
|
+
workspaceId: string;
|
|
1306
|
+
}[];
|
|
1307
|
+
nextCursor: string | null;
|
|
1328
1308
|
};
|
|
1329
1309
|
};
|
|
1330
1310
|
};
|
|
1331
|
-
/** @description
|
|
1332
|
-
|
|
1311
|
+
/** @description A valid Drive user bearer credential is required. */
|
|
1312
|
+
401: {
|
|
1333
1313
|
headers: {
|
|
1334
1314
|
[name: string]: unknown;
|
|
1335
1315
|
};
|
|
1336
1316
|
content: {
|
|
1337
1317
|
"application/json": {
|
|
1338
|
-
|
|
1318
|
+
error: {
|
|
1319
|
+
/** @enum {string} */
|
|
1320
|
+
code: "authentication_required";
|
|
1321
|
+
details: Record<string, never>;
|
|
1322
|
+
/** @enum {string} */
|
|
1323
|
+
message: "Authentication is required.";
|
|
1324
|
+
requestId: string;
|
|
1325
|
+
};
|
|
1326
|
+
};
|
|
1327
|
+
};
|
|
1328
|
+
};
|
|
1329
|
+
/** @description Managed storage is disabled for the canonical workspace entitlement. */
|
|
1330
|
+
403: {
|
|
1331
|
+
headers: {
|
|
1332
|
+
[name: string]: unknown;
|
|
1333
|
+
};
|
|
1334
|
+
content: {
|
|
1335
|
+
"application/json": {
|
|
1336
|
+
error: {
|
|
1337
|
+
/** @enum {string} */
|
|
1338
|
+
code: "permission_denied";
|
|
1339
|
+
details: Record<string, never>;
|
|
1340
|
+
/** @enum {string} */
|
|
1341
|
+
message: "The requested action is not permitted.";
|
|
1342
|
+
requestId: string;
|
|
1343
|
+
};
|
|
1344
|
+
};
|
|
1345
|
+
};
|
|
1346
|
+
};
|
|
1347
|
+
/** @description The parent is absent or undiscoverable. */
|
|
1348
|
+
404: {
|
|
1349
|
+
headers: {
|
|
1350
|
+
[name: string]: unknown;
|
|
1351
|
+
};
|
|
1352
|
+
content: {
|
|
1353
|
+
"application/json": {
|
|
1354
|
+
error: {
|
|
1355
|
+
/** @enum {string} */
|
|
1356
|
+
code: "resource_not_found";
|
|
1357
|
+
details: Record<string, never>;
|
|
1358
|
+
/** @enum {string} */
|
|
1359
|
+
message: "The requested resource was not found.";
|
|
1360
|
+
requestId: string;
|
|
1361
|
+
};
|
|
1362
|
+
};
|
|
1363
|
+
};
|
|
1364
|
+
};
|
|
1365
|
+
/** @description Folder authority changed after preflight. */
|
|
1366
|
+
409: {
|
|
1367
|
+
headers: {
|
|
1368
|
+
[name: string]: unknown;
|
|
1369
|
+
};
|
|
1370
|
+
content: {
|
|
1371
|
+
"application/json": {
|
|
1372
|
+
error: {
|
|
1373
|
+
/** @enum {string} */
|
|
1374
|
+
code: "precondition_failed";
|
|
1375
|
+
details: Record<string, never>;
|
|
1376
|
+
/** @enum {string} */
|
|
1377
|
+
message: "The request precondition failed.";
|
|
1378
|
+
requestId: string;
|
|
1379
|
+
};
|
|
1380
|
+
};
|
|
1381
|
+
};
|
|
1382
|
+
};
|
|
1383
|
+
/** @description The path, query, or cursor is invalid. */
|
|
1384
|
+
422: {
|
|
1385
|
+
headers: {
|
|
1386
|
+
[name: string]: unknown;
|
|
1387
|
+
};
|
|
1388
|
+
content: {
|
|
1389
|
+
"application/json": {
|
|
1390
|
+
error: {
|
|
1391
|
+
/** @enum {string} */
|
|
1392
|
+
code: "invalid_request";
|
|
1393
|
+
details: Record<string, never>;
|
|
1394
|
+
/** @enum {string} */
|
|
1395
|
+
message: "The request is invalid.";
|
|
1396
|
+
requestId: string;
|
|
1397
|
+
};
|
|
1398
|
+
} | {
|
|
1399
|
+
error: {
|
|
1400
|
+
/** @enum {string} */
|
|
1401
|
+
code: "invalid_pagination_cursor";
|
|
1402
|
+
details: Record<string, never>;
|
|
1403
|
+
/** @enum {string} */
|
|
1404
|
+
message: "The pagination cursor is invalid.";
|
|
1405
|
+
requestId: string;
|
|
1406
|
+
};
|
|
1407
|
+
};
|
|
1408
|
+
};
|
|
1409
|
+
};
|
|
1410
|
+
/** @description Identity authority, D1, authorization evidence, or required cursor keys are unavailable. */
|
|
1411
|
+
503: {
|
|
1412
|
+
headers: {
|
|
1413
|
+
[name: string]: unknown;
|
|
1414
|
+
};
|
|
1415
|
+
content: {
|
|
1416
|
+
"application/json": {
|
|
1417
|
+
error: {
|
|
1418
|
+
/** @enum {string} */
|
|
1419
|
+
code: "identity_authority_unavailable";
|
|
1420
|
+
details: Record<string, never>;
|
|
1421
|
+
/** @enum {string} */
|
|
1422
|
+
message: "Authentication is temporarily unavailable.";
|
|
1423
|
+
requestId: string;
|
|
1424
|
+
};
|
|
1425
|
+
} | {
|
|
1426
|
+
error: {
|
|
1427
|
+
/** @enum {string} */
|
|
1428
|
+
code: "service_unavailable";
|
|
1429
|
+
details: Record<string, never>;
|
|
1430
|
+
/** @enum {string} */
|
|
1431
|
+
message: "The service is temporarily unavailable.";
|
|
1432
|
+
requestId: string;
|
|
1433
|
+
};
|
|
1434
|
+
};
|
|
1435
|
+
};
|
|
1436
|
+
};
|
|
1437
|
+
};
|
|
1438
|
+
};
|
|
1439
|
+
createFolder: {
|
|
1440
|
+
parameters: {
|
|
1441
|
+
query?: never;
|
|
1442
|
+
header: {
|
|
1443
|
+
"Idempotency-Key": string;
|
|
1444
|
+
};
|
|
1445
|
+
path: {
|
|
1446
|
+
workspaceId: string;
|
|
1447
|
+
itemId: string;
|
|
1448
|
+
};
|
|
1449
|
+
cookie?: never;
|
|
1450
|
+
};
|
|
1451
|
+
requestBody: {
|
|
1452
|
+
content: {
|
|
1453
|
+
"application/json": {
|
|
1454
|
+
/**
|
|
1455
|
+
* Format: finueva-safe-filename
|
|
1456
|
+
* @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.
|
|
1457
|
+
*/
|
|
1458
|
+
name: string;
|
|
1459
|
+
};
|
|
1460
|
+
};
|
|
1461
|
+
};
|
|
1462
|
+
responses: {
|
|
1463
|
+
/** @description The exact committed folder is replayed. */
|
|
1464
|
+
200: {
|
|
1465
|
+
headers: {
|
|
1466
|
+
[name: string]: unknown;
|
|
1467
|
+
};
|
|
1468
|
+
content: {
|
|
1469
|
+
"application/json": {
|
|
1470
|
+
itemId: string;
|
|
1471
|
+
/** @enum {string} */
|
|
1472
|
+
kind: "file" | "folder";
|
|
1473
|
+
/**
|
|
1474
|
+
* Format: finueva-safe-filename
|
|
1475
|
+
* @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.
|
|
1476
|
+
*/
|
|
1477
|
+
name: string;
|
|
1478
|
+
parentItemId: string;
|
|
1479
|
+
revision: number;
|
|
1480
|
+
/** @enum {string} */
|
|
1481
|
+
visibility: "workspace" | "restricted";
|
|
1482
|
+
volumeId: string;
|
|
1483
|
+
workspaceId: string;
|
|
1484
|
+
};
|
|
1485
|
+
};
|
|
1486
|
+
};
|
|
1487
|
+
/** @description The folder is committed. */
|
|
1488
|
+
201: {
|
|
1489
|
+
headers: {
|
|
1490
|
+
[name: string]: unknown;
|
|
1491
|
+
};
|
|
1492
|
+
content: {
|
|
1493
|
+
"application/json": {
|
|
1494
|
+
itemId: string;
|
|
1495
|
+
/** @enum {string} */
|
|
1496
|
+
kind: "file" | "folder";
|
|
1497
|
+
/**
|
|
1498
|
+
* Format: finueva-safe-filename
|
|
1499
|
+
* @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.
|
|
1500
|
+
*/
|
|
1501
|
+
name: string;
|
|
1502
|
+
parentItemId: string;
|
|
1503
|
+
revision: number;
|
|
1504
|
+
/** @enum {string} */
|
|
1505
|
+
visibility: "workspace" | "restricted";
|
|
1506
|
+
volumeId: string;
|
|
1507
|
+
workspaceId: string;
|
|
1508
|
+
};
|
|
1509
|
+
};
|
|
1510
|
+
};
|
|
1511
|
+
/** @description A valid Drive user bearer credential is required. */
|
|
1512
|
+
401: {
|
|
1513
|
+
headers: {
|
|
1514
|
+
[name: string]: unknown;
|
|
1515
|
+
};
|
|
1516
|
+
content: {
|
|
1517
|
+
"application/json": {
|
|
1518
|
+
error: {
|
|
1519
|
+
/** @enum {string} */
|
|
1520
|
+
code: "authentication_required";
|
|
1521
|
+
details: Record<string, never>;
|
|
1522
|
+
/** @enum {string} */
|
|
1523
|
+
message: "Authentication is required.";
|
|
1524
|
+
requestId: string;
|
|
1525
|
+
};
|
|
1526
|
+
};
|
|
1527
|
+
};
|
|
1528
|
+
};
|
|
1529
|
+
/** @description The discoverable parent does not permit folder creation. */
|
|
1530
|
+
403: {
|
|
1531
|
+
headers: {
|
|
1532
|
+
[name: string]: unknown;
|
|
1533
|
+
};
|
|
1534
|
+
content: {
|
|
1535
|
+
"application/json": {
|
|
1536
|
+
error: {
|
|
1537
|
+
/** @enum {string} */
|
|
1538
|
+
code: "permission_denied";
|
|
1539
|
+
details: Record<string, never>;
|
|
1540
|
+
/** @enum {string} */
|
|
1541
|
+
message: "The requested action is not permitted.";
|
|
1542
|
+
requestId: string;
|
|
1543
|
+
};
|
|
1544
|
+
};
|
|
1545
|
+
};
|
|
1546
|
+
};
|
|
1547
|
+
/** @description The parent is absent or undiscoverable. */
|
|
1548
|
+
404: {
|
|
1549
|
+
headers: {
|
|
1550
|
+
[name: string]: unknown;
|
|
1551
|
+
};
|
|
1552
|
+
content: {
|
|
1553
|
+
"application/json": {
|
|
1554
|
+
error: {
|
|
1555
|
+
/** @enum {string} */
|
|
1556
|
+
code: "resource_not_found";
|
|
1557
|
+
details: Record<string, never>;
|
|
1558
|
+
/** @enum {string} */
|
|
1559
|
+
message: "The requested resource was not found.";
|
|
1560
|
+
requestId: string;
|
|
1561
|
+
};
|
|
1562
|
+
};
|
|
1563
|
+
};
|
|
1564
|
+
};
|
|
1565
|
+
/** @description The idempotency key conflicts or folder authority changed after preflight. */
|
|
1566
|
+
409: {
|
|
1567
|
+
headers: {
|
|
1568
|
+
[name: string]: unknown;
|
|
1569
|
+
};
|
|
1570
|
+
content: {
|
|
1571
|
+
"application/json": {
|
|
1572
|
+
error: {
|
|
1573
|
+
/** @enum {string} */
|
|
1574
|
+
code: "idempotency_conflict";
|
|
1575
|
+
details: Record<string, never>;
|
|
1576
|
+
/** @enum {string} */
|
|
1577
|
+
message: "The idempotency key conflicts with an earlier request.";
|
|
1578
|
+
requestId: string;
|
|
1579
|
+
};
|
|
1580
|
+
} | {
|
|
1581
|
+
error: {
|
|
1582
|
+
/** @enum {string} */
|
|
1583
|
+
code: "precondition_failed";
|
|
1584
|
+
details: Record<string, never>;
|
|
1585
|
+
/** @enum {string} */
|
|
1586
|
+
message: "The request precondition failed.";
|
|
1587
|
+
requestId: string;
|
|
1588
|
+
};
|
|
1589
|
+
};
|
|
1590
|
+
};
|
|
1591
|
+
};
|
|
1592
|
+
/** @description The path, idempotency key, body, or name is invalid. */
|
|
1593
|
+
422: {
|
|
1594
|
+
headers: {
|
|
1595
|
+
[name: string]: unknown;
|
|
1596
|
+
};
|
|
1597
|
+
content: {
|
|
1598
|
+
"application/json": {
|
|
1599
|
+
error: {
|
|
1600
|
+
/** @enum {string} */
|
|
1601
|
+
code: "invalid_request";
|
|
1602
|
+
details: Record<string, never>;
|
|
1603
|
+
/** @enum {string} */
|
|
1604
|
+
message: "The request is invalid.";
|
|
1605
|
+
requestId: string;
|
|
1606
|
+
};
|
|
1607
|
+
} | {
|
|
1608
|
+
error: {
|
|
1609
|
+
/** @enum {string} */
|
|
1610
|
+
code: "invalid_idempotency_key";
|
|
1611
|
+
details: Record<string, never>;
|
|
1612
|
+
/** @enum {string} */
|
|
1613
|
+
message: "The idempotency key is invalid.";
|
|
1614
|
+
requestId: string;
|
|
1615
|
+
};
|
|
1616
|
+
};
|
|
1617
|
+
};
|
|
1618
|
+
};
|
|
1619
|
+
/** @description Identity authority, D1, authorization evidence, or trusted capacity evidence is unavailable. */
|
|
1620
|
+
503: {
|
|
1621
|
+
headers: {
|
|
1622
|
+
[name: string]: unknown;
|
|
1623
|
+
};
|
|
1624
|
+
content: {
|
|
1625
|
+
"application/json": {
|
|
1626
|
+
error: {
|
|
1627
|
+
/** @enum {string} */
|
|
1628
|
+
code: "identity_authority_unavailable";
|
|
1629
|
+
details: Record<string, never>;
|
|
1630
|
+
/** @enum {string} */
|
|
1631
|
+
message: "Authentication is temporarily unavailable.";
|
|
1632
|
+
requestId: string;
|
|
1633
|
+
};
|
|
1634
|
+
} | {
|
|
1635
|
+
error: {
|
|
1636
|
+
/** @enum {string} */
|
|
1637
|
+
code: "service_unavailable";
|
|
1638
|
+
details: Record<string, never>;
|
|
1639
|
+
/** @enum {string} */
|
|
1640
|
+
message: "The service is temporarily unavailable.";
|
|
1641
|
+
requestId: string;
|
|
1642
|
+
};
|
|
1643
|
+
};
|
|
1644
|
+
};
|
|
1645
|
+
};
|
|
1646
|
+
};
|
|
1647
|
+
};
|
|
1648
|
+
createDownload: {
|
|
1649
|
+
parameters: {
|
|
1650
|
+
query?: {
|
|
1651
|
+
versionId?: string;
|
|
1652
|
+
};
|
|
1653
|
+
header: {
|
|
1654
|
+
"Idempotency-Key": string;
|
|
1655
|
+
"Download-Method"?: string;
|
|
1656
|
+
Range?: string;
|
|
1657
|
+
"If-Match"?: string;
|
|
1658
|
+
"If-None-Match"?: string;
|
|
1659
|
+
"If-Range"?: string;
|
|
1660
|
+
};
|
|
1661
|
+
path: {
|
|
1662
|
+
workspaceId: string;
|
|
1663
|
+
itemId: string;
|
|
1664
|
+
};
|
|
1665
|
+
cookie?: never;
|
|
1666
|
+
};
|
|
1667
|
+
requestBody?: never;
|
|
1668
|
+
responses: {
|
|
1669
|
+
/** @description A short-lived immutable archive capability. */
|
|
1670
|
+
200: {
|
|
1671
|
+
headers: {
|
|
1672
|
+
[name: string]: unknown;
|
|
1673
|
+
};
|
|
1674
|
+
content: {
|
|
1675
|
+
"application/json": {
|
|
1676
|
+
expiresAtEpochMilliseconds: number;
|
|
1677
|
+
headers: {
|
|
1678
|
+
[key: string]: string;
|
|
1679
|
+
};
|
|
1680
|
+
/** @enum {string} */
|
|
1681
|
+
method: "GET" | "HEAD";
|
|
1682
|
+
/** @enum {string} */
|
|
1683
|
+
mode: "presigned-single";
|
|
1684
|
+
response: {
|
|
1685
|
+
/** @enum {string} */
|
|
1686
|
+
acceptRanges: "bytes";
|
|
1687
|
+
byteLength: number;
|
|
1688
|
+
contentDisposition: string;
|
|
1689
|
+
contentLength: number;
|
|
1690
|
+
contentRange: string | null;
|
|
1691
|
+
contentType: string;
|
|
1692
|
+
etag: string;
|
|
1693
|
+
status: 200 | 206;
|
|
1694
|
+
versionId: string;
|
|
1695
|
+
};
|
|
1696
|
+
/** Format: uri */
|
|
1697
|
+
url: string;
|
|
1698
|
+
};
|
|
1699
|
+
};
|
|
1700
|
+
};
|
|
1701
|
+
/** @description One idempotent cold archive retrieval operation. */
|
|
1702
|
+
202: {
|
|
1703
|
+
headers: {
|
|
1704
|
+
[name: string]: unknown;
|
|
1705
|
+
};
|
|
1706
|
+
content: {
|
|
1707
|
+
"application/json": {
|
|
1708
|
+
/** @enum {string} */
|
|
1339
1709
|
mode: "restore-pending";
|
|
1340
1710
|
operationId: string;
|
|
1341
1711
|
pollAfterSeconds: number;
|
|
1342
1712
|
/** @enum {string} */
|
|
1343
|
-
state: "pending" | "restoring";
|
|
1344
|
-
versionId: string;
|
|
1713
|
+
state: "pending" | "restoring";
|
|
1714
|
+
versionId: string;
|
|
1715
|
+
};
|
|
1716
|
+
};
|
|
1717
|
+
};
|
|
1718
|
+
/** @description The selected immutable representation is not modified. */
|
|
1719
|
+
304: {
|
|
1720
|
+
headers: {
|
|
1721
|
+
[name: string]: unknown;
|
|
1722
|
+
};
|
|
1723
|
+
content?: never;
|
|
1724
|
+
};
|
|
1725
|
+
/** @description A valid Drive user bearer credential is required. */
|
|
1726
|
+
401: {
|
|
1727
|
+
headers: {
|
|
1728
|
+
[name: string]: unknown;
|
|
1729
|
+
};
|
|
1730
|
+
content: {
|
|
1731
|
+
"application/json": {
|
|
1732
|
+
error: {
|
|
1733
|
+
/** @enum {string} */
|
|
1734
|
+
code: "authentication_required";
|
|
1735
|
+
details: Record<string, never>;
|
|
1736
|
+
message: string;
|
|
1737
|
+
requestId: string;
|
|
1738
|
+
};
|
|
1739
|
+
};
|
|
1740
|
+
};
|
|
1741
|
+
};
|
|
1742
|
+
/** @description The visible file cannot be downloaded under current authority. */
|
|
1743
|
+
403: {
|
|
1744
|
+
headers: {
|
|
1745
|
+
[name: string]: unknown;
|
|
1746
|
+
};
|
|
1747
|
+
content: {
|
|
1748
|
+
"application/json": {
|
|
1749
|
+
error: {
|
|
1750
|
+
/** @enum {string} */
|
|
1751
|
+
code: "permission_denied";
|
|
1752
|
+
details: Record<string, never>;
|
|
1753
|
+
message: string;
|
|
1754
|
+
requestId: string;
|
|
1755
|
+
};
|
|
1756
|
+
};
|
|
1757
|
+
};
|
|
1758
|
+
};
|
|
1759
|
+
/** @description The file or selected version is absent or undiscoverable. */
|
|
1760
|
+
404: {
|
|
1761
|
+
headers: {
|
|
1762
|
+
[name: string]: unknown;
|
|
1763
|
+
};
|
|
1764
|
+
content: {
|
|
1765
|
+
"application/json": {
|
|
1766
|
+
error: {
|
|
1767
|
+
/** @enum {string} */
|
|
1768
|
+
code: "resource_not_found";
|
|
1769
|
+
details: Record<string, never>;
|
|
1770
|
+
message: string;
|
|
1771
|
+
requestId: string;
|
|
1772
|
+
};
|
|
1773
|
+
};
|
|
1774
|
+
};
|
|
1775
|
+
};
|
|
1776
|
+
/** @description The retrieval key conflicts or immutable authority changed after preflight. */
|
|
1777
|
+
409: {
|
|
1778
|
+
headers: {
|
|
1779
|
+
[name: string]: unknown;
|
|
1780
|
+
};
|
|
1781
|
+
content: {
|
|
1782
|
+
"application/json": {
|
|
1783
|
+
error: {
|
|
1784
|
+
/** @enum {string} */
|
|
1785
|
+
code: "idempotency_conflict";
|
|
1786
|
+
details: Record<string, never>;
|
|
1787
|
+
message: string;
|
|
1788
|
+
requestId: string;
|
|
1789
|
+
};
|
|
1790
|
+
} | {
|
|
1791
|
+
error: {
|
|
1792
|
+
/** @enum {string} */
|
|
1793
|
+
code: "precondition_failed";
|
|
1794
|
+
details: Record<string, never>;
|
|
1795
|
+
message: string;
|
|
1796
|
+
requestId: string;
|
|
1797
|
+
};
|
|
1798
|
+
};
|
|
1799
|
+
};
|
|
1800
|
+
};
|
|
1801
|
+
/** @description A content entity-tag precondition failed. */
|
|
1802
|
+
412: {
|
|
1803
|
+
headers: {
|
|
1804
|
+
[name: string]: unknown;
|
|
1805
|
+
};
|
|
1806
|
+
content: {
|
|
1807
|
+
"application/json": {
|
|
1808
|
+
error: {
|
|
1809
|
+
/** @enum {string} */
|
|
1810
|
+
code: "precondition_failed";
|
|
1811
|
+
details: Record<string, never>;
|
|
1812
|
+
message: string;
|
|
1813
|
+
requestId: string;
|
|
1814
|
+
};
|
|
1815
|
+
};
|
|
1816
|
+
};
|
|
1817
|
+
};
|
|
1818
|
+
/** @description The valid single range does not overlap the representation. */
|
|
1819
|
+
416: {
|
|
1820
|
+
headers: {
|
|
1821
|
+
[name: string]: unknown;
|
|
1822
|
+
};
|
|
1823
|
+
content: {
|
|
1824
|
+
"application/json": {
|
|
1825
|
+
error: {
|
|
1826
|
+
/** @enum {string} */
|
|
1827
|
+
code: "range_not_satisfiable";
|
|
1828
|
+
details: Record<string, never>;
|
|
1829
|
+
message: string;
|
|
1830
|
+
requestId: string;
|
|
1831
|
+
};
|
|
1832
|
+
};
|
|
1833
|
+
};
|
|
1834
|
+
};
|
|
1835
|
+
/** @description The path, query, headers, or unexpected body is invalid. */
|
|
1836
|
+
422: {
|
|
1837
|
+
headers: {
|
|
1838
|
+
[name: string]: unknown;
|
|
1839
|
+
};
|
|
1840
|
+
content: {
|
|
1841
|
+
"application/json": {
|
|
1842
|
+
error: {
|
|
1843
|
+
/** @enum {string} */
|
|
1844
|
+
code: "invalid_request";
|
|
1845
|
+
details: Record<string, never>;
|
|
1846
|
+
message: string;
|
|
1847
|
+
requestId: string;
|
|
1848
|
+
};
|
|
1849
|
+
};
|
|
1850
|
+
};
|
|
1851
|
+
};
|
|
1852
|
+
/** @description Identity, D1, authorization, capacity, or archive authority is unavailable. */
|
|
1853
|
+
503: {
|
|
1854
|
+
headers: {
|
|
1855
|
+
[name: string]: unknown;
|
|
1856
|
+
};
|
|
1857
|
+
content: {
|
|
1858
|
+
"application/json": {
|
|
1859
|
+
error: {
|
|
1860
|
+
/** @enum {string} */
|
|
1861
|
+
code: "identity_authority_unavailable";
|
|
1862
|
+
details: Record<string, never>;
|
|
1863
|
+
message: string;
|
|
1864
|
+
requestId: string;
|
|
1865
|
+
};
|
|
1866
|
+
} | {
|
|
1867
|
+
error: {
|
|
1868
|
+
/** @enum {string} */
|
|
1869
|
+
code: "service_unavailable";
|
|
1870
|
+
details: Record<string, never>;
|
|
1871
|
+
message: string;
|
|
1872
|
+
requestId: string;
|
|
1873
|
+
};
|
|
1874
|
+
};
|
|
1875
|
+
};
|
|
1876
|
+
};
|
|
1877
|
+
};
|
|
1878
|
+
};
|
|
1879
|
+
listItemPermissions: {
|
|
1880
|
+
parameters: {
|
|
1881
|
+
query?: {
|
|
1882
|
+
limit?: number;
|
|
1883
|
+
cursor?: string;
|
|
1884
|
+
};
|
|
1885
|
+
header?: never;
|
|
1886
|
+
path: {
|
|
1887
|
+
workspaceId: string;
|
|
1888
|
+
itemId: string;
|
|
1889
|
+
};
|
|
1890
|
+
cookie?: never;
|
|
1891
|
+
};
|
|
1892
|
+
requestBody?: never;
|
|
1893
|
+
responses: {
|
|
1894
|
+
/** @description A stable permission page. */
|
|
1895
|
+
200: {
|
|
1896
|
+
headers: {
|
|
1897
|
+
/** @description Current direct collection precondition for POST on this item. */
|
|
1898
|
+
"Drive-Permission-Collection-ETag"?: string;
|
|
1899
|
+
/** @description Strong validator for the exact returned permission-list representation. */
|
|
1900
|
+
ETag?: string;
|
|
1901
|
+
[name: string]: unknown;
|
|
1902
|
+
};
|
|
1903
|
+
content: {
|
|
1904
|
+
"application/json": {
|
|
1905
|
+
collectionEtag: string;
|
|
1906
|
+
collectionRevision: number;
|
|
1907
|
+
items: {
|
|
1908
|
+
actions: ("items:content:read" | "items:create" | "items:delete" | "items:metadata:read" | "items:permissions:read" | "items:update")[];
|
|
1909
|
+
/** @enum {string} */
|
|
1910
|
+
availability: "active" | "expired" | "revoked";
|
|
1911
|
+
etag: string;
|
|
1912
|
+
expiresAtEpochMilliseconds: number | null;
|
|
1913
|
+
grantId: string;
|
|
1914
|
+
grantee: {
|
|
1915
|
+
/** @enum {string} */
|
|
1916
|
+
type: "user";
|
|
1917
|
+
userId: string;
|
|
1918
|
+
} | {
|
|
1919
|
+
teamId: string;
|
|
1920
|
+
/** @enum {string} */
|
|
1921
|
+
type: "team";
|
|
1922
|
+
};
|
|
1923
|
+
revision: number;
|
|
1924
|
+
/** @enum {string} */
|
|
1925
|
+
source: "direct" | "inherited";
|
|
1926
|
+
sourceItemId: string;
|
|
1927
|
+
}[];
|
|
1928
|
+
nextCursor: string | null;
|
|
1929
|
+
};
|
|
1930
|
+
};
|
|
1931
|
+
};
|
|
1932
|
+
/** @description A valid Drive user bearer credential is required. */
|
|
1933
|
+
401: {
|
|
1934
|
+
headers: {
|
|
1935
|
+
[name: string]: unknown;
|
|
1936
|
+
};
|
|
1937
|
+
content: {
|
|
1938
|
+
"application/json": {
|
|
1939
|
+
error: {
|
|
1940
|
+
/** @enum {string} */
|
|
1941
|
+
code: "authentication_required";
|
|
1942
|
+
details: Record<string, never>;
|
|
1943
|
+
/** @enum {string} */
|
|
1944
|
+
message: "Authentication is required.";
|
|
1945
|
+
requestId: string;
|
|
1946
|
+
};
|
|
1947
|
+
};
|
|
1948
|
+
};
|
|
1949
|
+
};
|
|
1950
|
+
/** @description The discoverable item does not permit this permission operation. */
|
|
1951
|
+
403: {
|
|
1952
|
+
headers: {
|
|
1953
|
+
[name: string]: unknown;
|
|
1954
|
+
};
|
|
1955
|
+
content: {
|
|
1956
|
+
"application/json": {
|
|
1957
|
+
error: {
|
|
1958
|
+
/** @enum {string} */
|
|
1959
|
+
code: "permission_denied";
|
|
1960
|
+
details: Record<string, never>;
|
|
1961
|
+
/** @enum {string} */
|
|
1962
|
+
message: "The requested action is not permitted.";
|
|
1963
|
+
requestId: string;
|
|
1964
|
+
};
|
|
1965
|
+
};
|
|
1966
|
+
};
|
|
1967
|
+
};
|
|
1968
|
+
/** @description The item, principal, or direct grant is absent or undiscoverable. */
|
|
1969
|
+
404: {
|
|
1970
|
+
headers: {
|
|
1971
|
+
[name: string]: unknown;
|
|
1972
|
+
};
|
|
1973
|
+
content: {
|
|
1974
|
+
"application/json": {
|
|
1975
|
+
error: {
|
|
1976
|
+
/** @enum {string} */
|
|
1977
|
+
code: "resource_not_found";
|
|
1978
|
+
details: Record<string, never>;
|
|
1979
|
+
/** @enum {string} */
|
|
1980
|
+
message: "The requested resource was not found.";
|
|
1981
|
+
requestId: string;
|
|
1982
|
+
};
|
|
1983
|
+
};
|
|
1984
|
+
};
|
|
1985
|
+
};
|
|
1986
|
+
/** @description The supplied revision or post-preflight authority is stale. */
|
|
1987
|
+
412: {
|
|
1988
|
+
headers: {
|
|
1989
|
+
[name: string]: unknown;
|
|
1990
|
+
};
|
|
1991
|
+
content: {
|
|
1992
|
+
"application/json": {
|
|
1993
|
+
error: {
|
|
1994
|
+
/** @enum {string} */
|
|
1995
|
+
code: "precondition_failed";
|
|
1996
|
+
details: Record<string, never>;
|
|
1997
|
+
/** @enum {string} */
|
|
1998
|
+
message: "The request precondition failed.";
|
|
1999
|
+
requestId: string;
|
|
2000
|
+
};
|
|
2001
|
+
};
|
|
2002
|
+
};
|
|
2003
|
+
};
|
|
2004
|
+
/** @description The path, query, headers, or pagination cursor are invalid. */
|
|
2005
|
+
422: {
|
|
2006
|
+
headers: {
|
|
2007
|
+
[name: string]: unknown;
|
|
2008
|
+
};
|
|
2009
|
+
content: {
|
|
2010
|
+
"application/json": {
|
|
2011
|
+
error: {
|
|
2012
|
+
/** @enum {string} */
|
|
2013
|
+
code: "invalid_request";
|
|
2014
|
+
details: Record<string, never>;
|
|
2015
|
+
/** @enum {string} */
|
|
2016
|
+
message: "The request is invalid.";
|
|
2017
|
+
requestId: string;
|
|
2018
|
+
};
|
|
2019
|
+
} | {
|
|
2020
|
+
error: {
|
|
2021
|
+
/** @enum {string} */
|
|
2022
|
+
code: "invalid_pagination_cursor";
|
|
2023
|
+
details: Record<string, never>;
|
|
2024
|
+
/** @enum {string} */
|
|
2025
|
+
message: "The pagination cursor is invalid.";
|
|
2026
|
+
requestId: string;
|
|
2027
|
+
};
|
|
2028
|
+
};
|
|
2029
|
+
};
|
|
2030
|
+
};
|
|
2031
|
+
/** @description Identity, D1, authorization, audit, cursor, or capacity authority is unavailable. */
|
|
2032
|
+
503: {
|
|
2033
|
+
headers: {
|
|
2034
|
+
[name: string]: unknown;
|
|
2035
|
+
};
|
|
2036
|
+
content: {
|
|
2037
|
+
"application/json": {
|
|
2038
|
+
error: {
|
|
2039
|
+
/** @enum {string} */
|
|
2040
|
+
code: "identity_authority_unavailable";
|
|
2041
|
+
details: Record<string, never>;
|
|
2042
|
+
/** @enum {string} */
|
|
2043
|
+
message: "Authentication is temporarily unavailable.";
|
|
2044
|
+
requestId: string;
|
|
2045
|
+
};
|
|
2046
|
+
} | {
|
|
2047
|
+
error: {
|
|
2048
|
+
/** @enum {string} */
|
|
2049
|
+
code: "service_unavailable";
|
|
2050
|
+
details: Record<string, never>;
|
|
2051
|
+
/** @enum {string} */
|
|
2052
|
+
message: "The service is temporarily unavailable.";
|
|
2053
|
+
requestId: string;
|
|
2054
|
+
};
|
|
2055
|
+
};
|
|
2056
|
+
};
|
|
2057
|
+
};
|
|
2058
|
+
};
|
|
2059
|
+
};
|
|
2060
|
+
createItemPermission: {
|
|
2061
|
+
parameters: {
|
|
2062
|
+
query?: never;
|
|
2063
|
+
header: {
|
|
2064
|
+
"Idempotency-Key": string;
|
|
2065
|
+
"If-Match": string;
|
|
2066
|
+
};
|
|
2067
|
+
path: {
|
|
2068
|
+
workspaceId: string;
|
|
2069
|
+
itemId: string;
|
|
2070
|
+
};
|
|
2071
|
+
cookie?: never;
|
|
2072
|
+
};
|
|
2073
|
+
requestBody: {
|
|
2074
|
+
content: {
|
|
2075
|
+
"application/json": {
|
|
2076
|
+
actions: ("items:content:read" | "items:create" | "items:delete" | "items:metadata:read" | "items:permissions:read" | "items:update")[];
|
|
2077
|
+
expiresAtEpochMilliseconds: number | null;
|
|
2078
|
+
grantee: {
|
|
2079
|
+
/** @enum {string} */
|
|
2080
|
+
type: "user";
|
|
2081
|
+
userId: string;
|
|
2082
|
+
} | {
|
|
2083
|
+
teamId: string;
|
|
2084
|
+
/** @enum {string} */
|
|
2085
|
+
type: "team";
|
|
1345
2086
|
};
|
|
1346
2087
|
};
|
|
1347
2088
|
};
|
|
1348
|
-
|
|
1349
|
-
|
|
2089
|
+
};
|
|
2090
|
+
responses: {
|
|
2091
|
+
/** @description The exact committed result was replayed. */
|
|
2092
|
+
200: {
|
|
1350
2093
|
headers: {
|
|
2094
|
+
/** @description Current direct collection precondition for the next POST. */
|
|
2095
|
+
"Drive-Permission-Collection-ETag"?: string;
|
|
2096
|
+
/** @description Current direct-grant precondition for PATCH or DELETE; omitted when the current row is not mutable. */
|
|
2097
|
+
"Drive-Permission-Grant-ETag"?: string;
|
|
1351
2098
|
[name: string]: unknown;
|
|
1352
2099
|
};
|
|
1353
|
-
content
|
|
2100
|
+
content: {
|
|
2101
|
+
"application/json": {
|
|
2102
|
+
collectionRevision: number;
|
|
2103
|
+
grant: {
|
|
2104
|
+
actions: ("items:content:read" | "items:create" | "items:delete" | "items:metadata:read" | "items:permissions:read" | "items:update")[];
|
|
2105
|
+
/** @enum {string} */
|
|
2106
|
+
availability: "active" | "expired" | "revoked";
|
|
2107
|
+
expiresAtEpochMilliseconds: number | null;
|
|
2108
|
+
grantId: string;
|
|
2109
|
+
grantee: {
|
|
2110
|
+
/** @enum {string} */
|
|
2111
|
+
type: "user";
|
|
2112
|
+
userId: string;
|
|
2113
|
+
} | {
|
|
2114
|
+
teamId: string;
|
|
2115
|
+
/** @enum {string} */
|
|
2116
|
+
type: "team";
|
|
2117
|
+
};
|
|
2118
|
+
revision: number;
|
|
2119
|
+
/** @enum {string} */
|
|
2120
|
+
source: "direct";
|
|
2121
|
+
sourceItemId: string;
|
|
2122
|
+
};
|
|
2123
|
+
/** @enum {string} */
|
|
2124
|
+
outcome: "committed" | "replayed";
|
|
2125
|
+
};
|
|
2126
|
+
};
|
|
2127
|
+
};
|
|
2128
|
+
/** @description The direct grant was committed. */
|
|
2129
|
+
201: {
|
|
2130
|
+
headers: {
|
|
2131
|
+
/** @description Current direct collection precondition for the next POST. */
|
|
2132
|
+
"Drive-Permission-Collection-ETag"?: string;
|
|
2133
|
+
/** @description Current direct-grant precondition for PATCH or DELETE; omitted when the current row is not mutable. */
|
|
2134
|
+
"Drive-Permission-Grant-ETag"?: string;
|
|
2135
|
+
[name: string]: unknown;
|
|
2136
|
+
};
|
|
2137
|
+
content: {
|
|
2138
|
+
"application/json": {
|
|
2139
|
+
collectionRevision: number;
|
|
2140
|
+
grant: {
|
|
2141
|
+
actions: ("items:content:read" | "items:create" | "items:delete" | "items:metadata:read" | "items:permissions:read" | "items:update")[];
|
|
2142
|
+
/** @enum {string} */
|
|
2143
|
+
availability: "active" | "expired" | "revoked";
|
|
2144
|
+
expiresAtEpochMilliseconds: number | null;
|
|
2145
|
+
grantId: string;
|
|
2146
|
+
grantee: {
|
|
2147
|
+
/** @enum {string} */
|
|
2148
|
+
type: "user";
|
|
2149
|
+
userId: string;
|
|
2150
|
+
} | {
|
|
2151
|
+
teamId: string;
|
|
2152
|
+
/** @enum {string} */
|
|
2153
|
+
type: "team";
|
|
2154
|
+
};
|
|
2155
|
+
revision: number;
|
|
2156
|
+
/** @enum {string} */
|
|
2157
|
+
source: "direct";
|
|
2158
|
+
sourceItemId: string;
|
|
2159
|
+
};
|
|
2160
|
+
/** @enum {string} */
|
|
2161
|
+
outcome: "committed" | "replayed";
|
|
2162
|
+
};
|
|
2163
|
+
};
|
|
1354
2164
|
};
|
|
1355
2165
|
/** @description A valid Drive user bearer credential is required. */
|
|
1356
2166
|
401: {
|
|
@@ -1363,13 +2173,14 @@ interface operations {
|
|
|
1363
2173
|
/** @enum {string} */
|
|
1364
2174
|
code: "authentication_required";
|
|
1365
2175
|
details: Record<string, never>;
|
|
1366
|
-
|
|
2176
|
+
/** @enum {string} */
|
|
2177
|
+
message: "Authentication is required.";
|
|
1367
2178
|
requestId: string;
|
|
1368
2179
|
};
|
|
1369
2180
|
};
|
|
1370
2181
|
};
|
|
1371
2182
|
};
|
|
1372
|
-
/** @description The
|
|
2183
|
+
/** @description The discoverable item does not permit this permission operation. */
|
|
1373
2184
|
403: {
|
|
1374
2185
|
headers: {
|
|
1375
2186
|
[name: string]: unknown;
|
|
@@ -1380,13 +2191,14 @@ interface operations {
|
|
|
1380
2191
|
/** @enum {string} */
|
|
1381
2192
|
code: "permission_denied";
|
|
1382
2193
|
details: Record<string, never>;
|
|
1383
|
-
|
|
2194
|
+
/** @enum {string} */
|
|
2195
|
+
message: "The requested action is not permitted.";
|
|
1384
2196
|
requestId: string;
|
|
1385
2197
|
};
|
|
1386
2198
|
};
|
|
1387
2199
|
};
|
|
1388
2200
|
};
|
|
1389
|
-
/** @description The
|
|
2201
|
+
/** @description The item, principal, or direct grant is absent or undiscoverable. */
|
|
1390
2202
|
404: {
|
|
1391
2203
|
headers: {
|
|
1392
2204
|
[name: string]: unknown;
|
|
@@ -1397,13 +2209,14 @@ interface operations {
|
|
|
1397
2209
|
/** @enum {string} */
|
|
1398
2210
|
code: "resource_not_found";
|
|
1399
2211
|
details: Record<string, never>;
|
|
1400
|
-
|
|
2212
|
+
/** @enum {string} */
|
|
2213
|
+
message: "The requested resource was not found.";
|
|
1401
2214
|
requestId: string;
|
|
1402
2215
|
};
|
|
1403
2216
|
};
|
|
1404
2217
|
};
|
|
1405
2218
|
};
|
|
1406
|
-
/** @description The
|
|
2219
|
+
/** @description The idempotency key was reused for a different semantic request. */
|
|
1407
2220
|
409: {
|
|
1408
2221
|
headers: {
|
|
1409
2222
|
[name: string]: unknown;
|
|
@@ -1414,21 +2227,14 @@ interface operations {
|
|
|
1414
2227
|
/** @enum {string} */
|
|
1415
2228
|
code: "idempotency_conflict";
|
|
1416
2229
|
details: Record<string, never>;
|
|
1417
|
-
message: string;
|
|
1418
|
-
requestId: string;
|
|
1419
|
-
};
|
|
1420
|
-
} | {
|
|
1421
|
-
error: {
|
|
1422
2230
|
/** @enum {string} */
|
|
1423
|
-
|
|
1424
|
-
details: Record<string, never>;
|
|
1425
|
-
message: string;
|
|
2231
|
+
message: "The idempotency key conflicts with an earlier request.";
|
|
1426
2232
|
requestId: string;
|
|
1427
2233
|
};
|
|
1428
2234
|
};
|
|
1429
2235
|
};
|
|
1430
2236
|
};
|
|
1431
|
-
/** @description
|
|
2237
|
+
/** @description The supplied revision or post-preflight authority is stale. */
|
|
1432
2238
|
412: {
|
|
1433
2239
|
headers: {
|
|
1434
2240
|
[name: string]: unknown;
|
|
@@ -1439,14 +2245,15 @@ interface operations {
|
|
|
1439
2245
|
/** @enum {string} */
|
|
1440
2246
|
code: "precondition_failed";
|
|
1441
2247
|
details: Record<string, never>;
|
|
1442
|
-
|
|
2248
|
+
/** @enum {string} */
|
|
2249
|
+
message: "The request precondition failed.";
|
|
1443
2250
|
requestId: string;
|
|
1444
2251
|
};
|
|
1445
2252
|
};
|
|
1446
2253
|
};
|
|
1447
2254
|
};
|
|
1448
|
-
/** @description The
|
|
1449
|
-
|
|
2255
|
+
/** @description The path, query, headers, idempotency key, or body are invalid. */
|
|
2256
|
+
422: {
|
|
1450
2257
|
headers: {
|
|
1451
2258
|
[name: string]: unknown;
|
|
1452
2259
|
};
|
|
@@ -1454,32 +2261,25 @@ interface operations {
|
|
|
1454
2261
|
"application/json": {
|
|
1455
2262
|
error: {
|
|
1456
2263
|
/** @enum {string} */
|
|
1457
|
-
code: "
|
|
2264
|
+
code: "invalid_request";
|
|
1458
2265
|
details: Record<string, never>;
|
|
1459
|
-
|
|
2266
|
+
/** @enum {string} */
|
|
2267
|
+
message: "The request is invalid.";
|
|
1460
2268
|
requestId: string;
|
|
1461
2269
|
};
|
|
1462
|
-
}
|
|
1463
|
-
};
|
|
1464
|
-
};
|
|
1465
|
-
/** @description The path, query, headers, or unexpected body is invalid. */
|
|
1466
|
-
422: {
|
|
1467
|
-
headers: {
|
|
1468
|
-
[name: string]: unknown;
|
|
1469
|
-
};
|
|
1470
|
-
content: {
|
|
1471
|
-
"application/json": {
|
|
2270
|
+
} | {
|
|
1472
2271
|
error: {
|
|
1473
2272
|
/** @enum {string} */
|
|
1474
|
-
code: "
|
|
2273
|
+
code: "invalid_idempotency_key";
|
|
1475
2274
|
details: Record<string, never>;
|
|
1476
|
-
|
|
2275
|
+
/** @enum {string} */
|
|
2276
|
+
message: "The idempotency key is invalid.";
|
|
1477
2277
|
requestId: string;
|
|
1478
2278
|
};
|
|
1479
2279
|
};
|
|
1480
2280
|
};
|
|
1481
2281
|
};
|
|
1482
|
-
/** @description Identity, D1, authorization,
|
|
2282
|
+
/** @description Identity, D1, authorization, audit, cursor, or capacity authority is unavailable. */
|
|
1483
2283
|
503: {
|
|
1484
2284
|
headers: {
|
|
1485
2285
|
[name: string]: unknown;
|
|
@@ -1490,7 +2290,8 @@ interface operations {
|
|
|
1490
2290
|
/** @enum {string} */
|
|
1491
2291
|
code: "identity_authority_unavailable";
|
|
1492
2292
|
details: Record<string, never>;
|
|
1493
|
-
|
|
2293
|
+
/** @enum {string} */
|
|
2294
|
+
message: "Authentication is temporarily unavailable.";
|
|
1494
2295
|
requestId: string;
|
|
1495
2296
|
};
|
|
1496
2297
|
} | {
|
|
@@ -1498,7 +2299,8 @@ interface operations {
|
|
|
1498
2299
|
/** @enum {string} */
|
|
1499
2300
|
code: "service_unavailable";
|
|
1500
2301
|
details: Record<string, never>;
|
|
1501
|
-
|
|
2302
|
+
/** @enum {string} */
|
|
2303
|
+
message: "The service is temporarily unavailable.";
|
|
1502
2304
|
requestId: string;
|
|
1503
2305
|
};
|
|
1504
2306
|
};
|
|
@@ -1506,12 +2308,9 @@ interface operations {
|
|
|
1506
2308
|
};
|
|
1507
2309
|
};
|
|
1508
2310
|
};
|
|
1509
|
-
|
|
2311
|
+
readEffectiveItemPermissions: {
|
|
1510
2312
|
parameters: {
|
|
1511
|
-
query?:
|
|
1512
|
-
limit?: number;
|
|
1513
|
-
cursor?: string;
|
|
1514
|
-
};
|
|
2313
|
+
query?: never;
|
|
1515
2314
|
header?: never;
|
|
1516
2315
|
path: {
|
|
1517
2316
|
workspaceId: string;
|
|
@@ -1521,41 +2320,22 @@ interface operations {
|
|
|
1521
2320
|
};
|
|
1522
2321
|
requestBody?: never;
|
|
1523
2322
|
responses: {
|
|
1524
|
-
/** @description
|
|
2323
|
+
/** @description All seven caller-specific item actions. */
|
|
1525
2324
|
200: {
|
|
1526
2325
|
headers: {
|
|
1527
|
-
/** @description Current direct collection precondition for POST on this item. */
|
|
1528
|
-
"Drive-Permission-Collection-ETag"?: string;
|
|
1529
|
-
/** @description Strong validator for the exact returned permission-list representation. */
|
|
1530
|
-
ETag?: string;
|
|
1531
2326
|
[name: string]: unknown;
|
|
1532
2327
|
};
|
|
1533
2328
|
content: {
|
|
1534
2329
|
"application/json": {
|
|
1535
|
-
|
|
1536
|
-
collectionRevision: number;
|
|
1537
|
-
items: {
|
|
1538
|
-
actions: ("items:content:read" | "items:create" | "items:delete" | "items:metadata:read" | "items:permissions:read" | "items:update")[];
|
|
1539
|
-
/** @enum {string} */
|
|
1540
|
-
availability: "active" | "expired" | "revoked";
|
|
1541
|
-
etag: string;
|
|
1542
|
-
expiresAtEpochMilliseconds: number | null;
|
|
1543
|
-
grantId: string;
|
|
1544
|
-
grantee: {
|
|
1545
|
-
/** @enum {string} */
|
|
1546
|
-
type: "user";
|
|
1547
|
-
userId: string;
|
|
1548
|
-
} | {
|
|
1549
|
-
teamId: string;
|
|
1550
|
-
/** @enum {string} */
|
|
1551
|
-
type: "team";
|
|
1552
|
-
};
|
|
1553
|
-
revision: number;
|
|
2330
|
+
actions: {
|
|
1554
2331
|
/** @enum {string} */
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
2332
|
+
action: "items:content:read" | "items:create" | "items:delete" | "items:metadata:read" | "items:permissions:manage" | "items:permissions:read" | "items:update";
|
|
2333
|
+
allowed: boolean;
|
|
2334
|
+
/** @enum {string|null} */
|
|
2335
|
+
basis: "workspace_visibility" | "restricted_administrator_bypass" | "direct_grant" | "inherited_grant" | null;
|
|
2336
|
+
grantId: string | null;
|
|
2337
|
+
sourceItemId: string | null;
|
|
2338
|
+
}[] & (unknown & unknown & unknown & unknown & unknown & unknown & unknown);
|
|
1559
2339
|
};
|
|
1560
2340
|
};
|
|
1561
2341
|
};
|
|
@@ -1631,7 +2411,7 @@ interface operations {
|
|
|
1631
2411
|
};
|
|
1632
2412
|
};
|
|
1633
2413
|
};
|
|
1634
|
-
/** @description The path, query, headers, or
|
|
2414
|
+
/** @description The path, query, headers, or body are invalid. */
|
|
1635
2415
|
422: {
|
|
1636
2416
|
headers: {
|
|
1637
2417
|
[name: string]: unknown;
|
|
@@ -1646,15 +2426,6 @@ interface operations {
|
|
|
1646
2426
|
message: "The request is invalid.";
|
|
1647
2427
|
requestId: string;
|
|
1648
2428
|
};
|
|
1649
|
-
} | {
|
|
1650
|
-
error: {
|
|
1651
|
-
/** @enum {string} */
|
|
1652
|
-
code: "invalid_pagination_cursor";
|
|
1653
|
-
details: Record<string, never>;
|
|
1654
|
-
/** @enum {string} */
|
|
1655
|
-
message: "The pagination cursor is invalid.";
|
|
1656
|
-
requestId: string;
|
|
1657
|
-
};
|
|
1658
2429
|
};
|
|
1659
2430
|
};
|
|
1660
2431
|
};
|
|
@@ -1687,7 +2458,7 @@ interface operations {
|
|
|
1687
2458
|
};
|
|
1688
2459
|
};
|
|
1689
2460
|
};
|
|
1690
|
-
|
|
2461
|
+
revokeItemPermission: {
|
|
1691
2462
|
parameters: {
|
|
1692
2463
|
query?: never;
|
|
1693
2464
|
header: {
|
|
@@ -1697,71 +2468,17 @@ interface operations {
|
|
|
1697
2468
|
path: {
|
|
1698
2469
|
workspaceId: string;
|
|
1699
2470
|
itemId: string;
|
|
2471
|
+
grantId: string;
|
|
1700
2472
|
};
|
|
1701
2473
|
cookie?: never;
|
|
1702
2474
|
};
|
|
1703
|
-
requestBody
|
|
1704
|
-
content: {
|
|
1705
|
-
"application/json": {
|
|
1706
|
-
actions: ("items:content:read" | "items:create" | "items:delete" | "items:metadata:read" | "items:permissions:read" | "items:update")[];
|
|
1707
|
-
expiresAtEpochMilliseconds: number | null;
|
|
1708
|
-
grantee: {
|
|
1709
|
-
/** @enum {string} */
|
|
1710
|
-
type: "user";
|
|
1711
|
-
userId: string;
|
|
1712
|
-
} | {
|
|
1713
|
-
teamId: string;
|
|
1714
|
-
/** @enum {string} */
|
|
1715
|
-
type: "team";
|
|
1716
|
-
};
|
|
1717
|
-
};
|
|
1718
|
-
};
|
|
1719
|
-
};
|
|
2475
|
+
requestBody?: never;
|
|
1720
2476
|
responses: {
|
|
1721
|
-
/** @description The
|
|
2477
|
+
/** @description The retained revoked grant was committed, replayed, or unchanged. */
|
|
1722
2478
|
200: {
|
|
1723
2479
|
headers: {
|
|
1724
|
-
/** @description Current direct collection precondition for
|
|
1725
|
-
"Drive-Permission-Collection-ETag"?: string;
|
|
1726
|
-
/** @description Current direct-grant precondition for PATCH or DELETE; omitted when the current row is not mutable. */
|
|
1727
|
-
"Drive-Permission-Grant-ETag"?: string;
|
|
1728
|
-
[name: string]: unknown;
|
|
1729
|
-
};
|
|
1730
|
-
content: {
|
|
1731
|
-
"application/json": {
|
|
1732
|
-
collectionRevision: number;
|
|
1733
|
-
grant: {
|
|
1734
|
-
actions: ("items:content:read" | "items:create" | "items:delete" | "items:metadata:read" | "items:permissions:read" | "items:update")[];
|
|
1735
|
-
/** @enum {string} */
|
|
1736
|
-
availability: "active" | "expired" | "revoked";
|
|
1737
|
-
expiresAtEpochMilliseconds: number | null;
|
|
1738
|
-
grantId: string;
|
|
1739
|
-
grantee: {
|
|
1740
|
-
/** @enum {string} */
|
|
1741
|
-
type: "user";
|
|
1742
|
-
userId: string;
|
|
1743
|
-
} | {
|
|
1744
|
-
teamId: string;
|
|
1745
|
-
/** @enum {string} */
|
|
1746
|
-
type: "team";
|
|
1747
|
-
};
|
|
1748
|
-
revision: number;
|
|
1749
|
-
/** @enum {string} */
|
|
1750
|
-
source: "direct";
|
|
1751
|
-
sourceItemId: string;
|
|
1752
|
-
};
|
|
1753
|
-
/** @enum {string} */
|
|
1754
|
-
outcome: "committed" | "replayed";
|
|
1755
|
-
};
|
|
1756
|
-
};
|
|
1757
|
-
};
|
|
1758
|
-
/** @description The direct grant was committed. */
|
|
1759
|
-
201: {
|
|
1760
|
-
headers: {
|
|
1761
|
-
/** @description Current direct collection precondition for the next POST. */
|
|
2480
|
+
/** @description Current direct collection precondition for POST. */
|
|
1762
2481
|
"Drive-Permission-Collection-ETag"?: string;
|
|
1763
|
-
/** @description Current direct-grant precondition for PATCH or DELETE; omitted when the current row is not mutable. */
|
|
1764
|
-
"Drive-Permission-Grant-ETag"?: string;
|
|
1765
2482
|
[name: string]: unknown;
|
|
1766
2483
|
};
|
|
1767
2484
|
content: {
|
|
@@ -1938,34 +2655,63 @@ interface operations {
|
|
|
1938
2655
|
};
|
|
1939
2656
|
};
|
|
1940
2657
|
};
|
|
1941
|
-
|
|
2658
|
+
updateItemPermission: {
|
|
1942
2659
|
parameters: {
|
|
1943
2660
|
query?: never;
|
|
1944
|
-
header
|
|
2661
|
+
header: {
|
|
2662
|
+
"Idempotency-Key": string;
|
|
2663
|
+
"If-Match": string;
|
|
2664
|
+
};
|
|
1945
2665
|
path: {
|
|
1946
2666
|
workspaceId: string;
|
|
1947
2667
|
itemId: string;
|
|
2668
|
+
grantId: string;
|
|
1948
2669
|
};
|
|
1949
2670
|
cookie?: never;
|
|
1950
2671
|
};
|
|
1951
|
-
requestBody
|
|
2672
|
+
requestBody: {
|
|
2673
|
+
content: {
|
|
2674
|
+
"application/json": {
|
|
2675
|
+
actions?: ("items:content:read" | "items:create" | "items:delete" | "items:metadata:read" | "items:permissions:read" | "items:update")[];
|
|
2676
|
+
expiresAtEpochMilliseconds?: number | null;
|
|
2677
|
+
};
|
|
2678
|
+
};
|
|
2679
|
+
};
|
|
1952
2680
|
responses: {
|
|
1953
|
-
/** @description
|
|
2681
|
+
/** @description The direct grant was committed or replayed. */
|
|
1954
2682
|
200: {
|
|
1955
2683
|
headers: {
|
|
2684
|
+
/** @description Current direct collection precondition for POST. */
|
|
2685
|
+
"Drive-Permission-Collection-ETag"?: string;
|
|
2686
|
+
/** @description Current direct-grant precondition for the next PATCH or DELETE; omitted when the current row is not mutable. */
|
|
2687
|
+
"Drive-Permission-Grant-ETag"?: string;
|
|
1956
2688
|
[name: string]: unknown;
|
|
1957
2689
|
};
|
|
1958
2690
|
content: {
|
|
1959
2691
|
"application/json": {
|
|
1960
|
-
|
|
2692
|
+
collectionRevision: number;
|
|
2693
|
+
grant: {
|
|
2694
|
+
actions: ("items:content:read" | "items:create" | "items:delete" | "items:metadata:read" | "items:permissions:read" | "items:update")[];
|
|
1961
2695
|
/** @enum {string} */
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
2696
|
+
availability: "active" | "expired" | "revoked";
|
|
2697
|
+
expiresAtEpochMilliseconds: number | null;
|
|
2698
|
+
grantId: string;
|
|
2699
|
+
grantee: {
|
|
2700
|
+
/** @enum {string} */
|
|
2701
|
+
type: "user";
|
|
2702
|
+
userId: string;
|
|
2703
|
+
} | {
|
|
2704
|
+
teamId: string;
|
|
2705
|
+
/** @enum {string} */
|
|
2706
|
+
type: "team";
|
|
2707
|
+
};
|
|
2708
|
+
revision: number;
|
|
2709
|
+
/** @enum {string} */
|
|
2710
|
+
source: "direct";
|
|
2711
|
+
sourceItemId: string;
|
|
2712
|
+
};
|
|
2713
|
+
/** @enum {string} */
|
|
2714
|
+
outcome: "committed" | "replayed";
|
|
1969
2715
|
};
|
|
1970
2716
|
};
|
|
1971
2717
|
};
|
|
@@ -2023,6 +2769,24 @@ interface operations {
|
|
|
2023
2769
|
};
|
|
2024
2770
|
};
|
|
2025
2771
|
};
|
|
2772
|
+
/** @description The idempotency key was reused for a different semantic request. */
|
|
2773
|
+
409: {
|
|
2774
|
+
headers: {
|
|
2775
|
+
[name: string]: unknown;
|
|
2776
|
+
};
|
|
2777
|
+
content: {
|
|
2778
|
+
"application/json": {
|
|
2779
|
+
error: {
|
|
2780
|
+
/** @enum {string} */
|
|
2781
|
+
code: "idempotency_conflict";
|
|
2782
|
+
details: Record<string, never>;
|
|
2783
|
+
/** @enum {string} */
|
|
2784
|
+
message: "The idempotency key conflicts with an earlier request.";
|
|
2785
|
+
requestId: string;
|
|
2786
|
+
};
|
|
2787
|
+
};
|
|
2788
|
+
};
|
|
2789
|
+
};
|
|
2026
2790
|
/** @description The supplied revision or post-preflight authority is stale. */
|
|
2027
2791
|
412: {
|
|
2028
2792
|
headers: {
|
|
@@ -2041,7 +2805,7 @@ interface operations {
|
|
|
2041
2805
|
};
|
|
2042
2806
|
};
|
|
2043
2807
|
};
|
|
2044
|
-
/** @description The path, query, headers, or body are invalid. */
|
|
2808
|
+
/** @description The path, query, headers, idempotency key, or body are invalid. */
|
|
2045
2809
|
422: {
|
|
2046
2810
|
headers: {
|
|
2047
2811
|
[name: string]: unknown;
|
|
@@ -2056,6 +2820,15 @@ interface operations {
|
|
|
2056
2820
|
message: "The request is invalid.";
|
|
2057
2821
|
requestId: string;
|
|
2058
2822
|
};
|
|
2823
|
+
} | {
|
|
2824
|
+
error: {
|
|
2825
|
+
/** @enum {string} */
|
|
2826
|
+
code: "invalid_idempotency_key";
|
|
2827
|
+
details: Record<string, never>;
|
|
2828
|
+
/** @enum {string} */
|
|
2829
|
+
message: "The idempotency key is invalid.";
|
|
2830
|
+
requestId: string;
|
|
2831
|
+
};
|
|
2059
2832
|
};
|
|
2060
2833
|
};
|
|
2061
2834
|
};
|
|
@@ -2088,7 +2861,7 @@ interface operations {
|
|
|
2088
2861
|
};
|
|
2089
2862
|
};
|
|
2090
2863
|
};
|
|
2091
|
-
|
|
2864
|
+
restoreItem: {
|
|
2092
2865
|
parameters: {
|
|
2093
2866
|
query?: never;
|
|
2094
2867
|
header: {
|
|
@@ -2098,44 +2871,31 @@ interface operations {
|
|
|
2098
2871
|
path: {
|
|
2099
2872
|
workspaceId: string;
|
|
2100
2873
|
itemId: string;
|
|
2101
|
-
grantId: string;
|
|
2102
2874
|
};
|
|
2103
2875
|
cookie?: never;
|
|
2104
2876
|
};
|
|
2105
2877
|
requestBody?: never;
|
|
2106
2878
|
responses: {
|
|
2107
|
-
/** @description The
|
|
2879
|
+
/** @description The managed item was restored or exactly replayed. */
|
|
2108
2880
|
200: {
|
|
2109
2881
|
headers: {
|
|
2110
|
-
/** @description
|
|
2111
|
-
|
|
2882
|
+
/** @description Strong precondition for the next item mutation. */
|
|
2883
|
+
ETag?: string;
|
|
2112
2884
|
[name: string]: unknown;
|
|
2113
2885
|
};
|
|
2114
2886
|
content: {
|
|
2115
2887
|
"application/json": {
|
|
2116
|
-
|
|
2117
|
-
grant: {
|
|
2118
|
-
actions: ("items:content:read" | "items:create" | "items:delete" | "items:metadata:read" | "items:permissions:read" | "items:update")[];
|
|
2119
|
-
/** @enum {string} */
|
|
2120
|
-
availability: "active" | "expired" | "revoked";
|
|
2121
|
-
expiresAtEpochMilliseconds: number | null;
|
|
2122
|
-
grantId: string;
|
|
2123
|
-
grantee: {
|
|
2124
|
-
/** @enum {string} */
|
|
2125
|
-
type: "user";
|
|
2126
|
-
userId: string;
|
|
2127
|
-
} | {
|
|
2128
|
-
teamId: string;
|
|
2129
|
-
/** @enum {string} */
|
|
2130
|
-
type: "team";
|
|
2131
|
-
};
|
|
2132
|
-
revision: number;
|
|
2133
|
-
/** @enum {string} */
|
|
2134
|
-
source: "direct";
|
|
2135
|
-
sourceItemId: string;
|
|
2136
|
-
};
|
|
2888
|
+
itemId: string;
|
|
2137
2889
|
/** @enum {string} */
|
|
2138
|
-
|
|
2890
|
+
kind: "file" | "folder";
|
|
2891
|
+
name: string;
|
|
2892
|
+
parentItemId: string;
|
|
2893
|
+
purgeAfterEpochMilliseconds: number | null;
|
|
2894
|
+
revision: number;
|
|
2895
|
+
/** @enum {string} */
|
|
2896
|
+
state: "active" | "trashed" | "deleting";
|
|
2897
|
+
volumeId: string;
|
|
2898
|
+
workspaceId: string;
|
|
2139
2899
|
};
|
|
2140
2900
|
};
|
|
2141
2901
|
};
|
|
@@ -2157,7 +2917,7 @@ interface operations {
|
|
|
2157
2917
|
};
|
|
2158
2918
|
};
|
|
2159
2919
|
};
|
|
2160
|
-
/** @description The discoverable item does not permit this
|
|
2920
|
+
/** @description The discoverable item does not permit this lifecycle action. */
|
|
2161
2921
|
403: {
|
|
2162
2922
|
headers: {
|
|
2163
2923
|
[name: string]: unknown;
|
|
@@ -2175,7 +2935,7 @@ interface operations {
|
|
|
2175
2935
|
};
|
|
2176
2936
|
};
|
|
2177
2937
|
};
|
|
2178
|
-
/** @description The item
|
|
2938
|
+
/** @description The item or destination is absent or undiscoverable. */
|
|
2179
2939
|
404: {
|
|
2180
2940
|
headers: {
|
|
2181
2941
|
[name: string]: unknown;
|
|
@@ -2193,7 +2953,7 @@ interface operations {
|
|
|
2193
2953
|
};
|
|
2194
2954
|
};
|
|
2195
2955
|
};
|
|
2196
|
-
/** @description The
|
|
2956
|
+
/** @description The key conflicts, the precondition is stale, or lifecycle authority changed. */
|
|
2197
2957
|
409: {
|
|
2198
2958
|
headers: {
|
|
2199
2959
|
[name: string]: unknown;
|
|
@@ -2208,16 +2968,7 @@ interface operations {
|
|
|
2208
2968
|
message: "The idempotency key conflicts with an earlier request.";
|
|
2209
2969
|
requestId: string;
|
|
2210
2970
|
};
|
|
2211
|
-
}
|
|
2212
|
-
};
|
|
2213
|
-
};
|
|
2214
|
-
/** @description The supplied revision or post-preflight authority is stale. */
|
|
2215
|
-
412: {
|
|
2216
|
-
headers: {
|
|
2217
|
-
[name: string]: unknown;
|
|
2218
|
-
};
|
|
2219
|
-
content: {
|
|
2220
|
-
"application/json": {
|
|
2971
|
+
} | {
|
|
2221
2972
|
error: {
|
|
2222
2973
|
/** @enum {string} */
|
|
2223
2974
|
code: "precondition_failed";
|
|
@@ -2229,7 +2980,7 @@ interface operations {
|
|
|
2229
2980
|
};
|
|
2230
2981
|
};
|
|
2231
2982
|
};
|
|
2232
|
-
/** @description The path, query, headers,
|
|
2983
|
+
/** @description The path, query, headers, key, or strict body is invalid. */
|
|
2233
2984
|
422: {
|
|
2234
2985
|
headers: {
|
|
2235
2986
|
[name: string]: unknown;
|
|
@@ -2256,7 +3007,7 @@ interface operations {
|
|
|
2256
3007
|
};
|
|
2257
3008
|
};
|
|
2258
3009
|
};
|
|
2259
|
-
/** @description Identity, D1, authorization,
|
|
3010
|
+
/** @description Identity, D1, authorization, capacity, or archive authority is unavailable. */
|
|
2260
3011
|
503: {
|
|
2261
3012
|
headers: {
|
|
2262
3013
|
[name: string]: unknown;
|
|
@@ -2285,7 +3036,7 @@ interface operations {
|
|
|
2285
3036
|
};
|
|
2286
3037
|
};
|
|
2287
3038
|
};
|
|
2288
|
-
|
|
3039
|
+
registerItemRecipient: {
|
|
2289
3040
|
parameters: {
|
|
2290
3041
|
query?: never;
|
|
2291
3042
|
header: {
|
|
@@ -2295,26 +3046,56 @@ interface operations {
|
|
|
2295
3046
|
path: {
|
|
2296
3047
|
workspaceId: string;
|
|
2297
3048
|
itemId: string;
|
|
2298
|
-
grantId: string;
|
|
2299
3049
|
};
|
|
2300
3050
|
cookie?: never;
|
|
2301
3051
|
};
|
|
2302
3052
|
requestBody: {
|
|
2303
3053
|
content: {
|
|
2304
3054
|
"application/json": {
|
|
2305
|
-
|
|
2306
|
-
|
|
3055
|
+
/** @description Normalized email, at most 320 UTF-8 bytes. */
|
|
3056
|
+
email: string;
|
|
3057
|
+
/** @enum {string} */
|
|
3058
|
+
role: "viewer" | "editor";
|
|
3059
|
+
};
|
|
3060
|
+
};
|
|
3061
|
+
};
|
|
3062
|
+
responses: {
|
|
3063
|
+
/** @description Exact grant replay. */
|
|
3064
|
+
200: {
|
|
3065
|
+
headers: {
|
|
3066
|
+
[name: string]: unknown;
|
|
3067
|
+
};
|
|
3068
|
+
content: {
|
|
3069
|
+
"application/json": {
|
|
3070
|
+
collectionRevision: number;
|
|
3071
|
+
grant: {
|
|
3072
|
+
actions: ("items:content:read" | "items:create" | "items:delete" | "items:metadata:read" | "items:permissions:read" | "items:update")[];
|
|
3073
|
+
/** @enum {string} */
|
|
3074
|
+
availability: "active" | "expired" | "revoked";
|
|
3075
|
+
expiresAtEpochMilliseconds: number | null;
|
|
3076
|
+
grantId: string;
|
|
3077
|
+
grantee: {
|
|
3078
|
+
/** @enum {string} */
|
|
3079
|
+
type: "user";
|
|
3080
|
+
userId: string;
|
|
3081
|
+
} | {
|
|
3082
|
+
teamId: string;
|
|
3083
|
+
/** @enum {string} */
|
|
3084
|
+
type: "team";
|
|
3085
|
+
};
|
|
3086
|
+
revision: number;
|
|
3087
|
+
/** @enum {string} */
|
|
3088
|
+
source: "direct";
|
|
3089
|
+
sourceItemId: string;
|
|
3090
|
+
};
|
|
3091
|
+
/** @enum {string} */
|
|
3092
|
+
outcome: "committed" | "replayed";
|
|
3093
|
+
};
|
|
2307
3094
|
};
|
|
2308
3095
|
};
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
/** @description The direct grant was committed or replayed. */
|
|
2312
|
-
200: {
|
|
3096
|
+
/** @description Registered recipient grant created. */
|
|
3097
|
+
201: {
|
|
2313
3098
|
headers: {
|
|
2314
|
-
/** @description Current direct collection precondition for POST. */
|
|
2315
|
-
"Drive-Permission-Collection-ETag"?: string;
|
|
2316
|
-
/** @description Current direct-grant precondition for the next PATCH or DELETE; omitted when the current row is not mutable. */
|
|
2317
|
-
"Drive-Permission-Grant-ETag"?: string;
|
|
2318
3099
|
[name: string]: unknown;
|
|
2319
3100
|
};
|
|
2320
3101
|
content: {
|
|
@@ -2381,23 +3162,12 @@ interface operations {
|
|
|
2381
3162
|
};
|
|
2382
3163
|
};
|
|
2383
3164
|
};
|
|
2384
|
-
/** @description The item
|
|
3165
|
+
/** @description The item or registered recipient is unavailable. */
|
|
2385
3166
|
404: {
|
|
2386
3167
|
headers: {
|
|
2387
3168
|
[name: string]: unknown;
|
|
2388
3169
|
};
|
|
2389
|
-
content
|
|
2390
|
-
"application/json": {
|
|
2391
|
-
error: {
|
|
2392
|
-
/** @enum {string} */
|
|
2393
|
-
code: "resource_not_found";
|
|
2394
|
-
details: Record<string, never>;
|
|
2395
|
-
/** @enum {string} */
|
|
2396
|
-
message: "The requested resource was not found.";
|
|
2397
|
-
requestId: string;
|
|
2398
|
-
};
|
|
2399
|
-
};
|
|
2400
|
-
};
|
|
3170
|
+
content?: never;
|
|
2401
3171
|
};
|
|
2402
3172
|
/** @description The idempotency key was reused for a different semantic request. */
|
|
2403
3173
|
409: {
|
|
@@ -2462,6 +3232,13 @@ interface operations {
|
|
|
2462
3232
|
};
|
|
2463
3233
|
};
|
|
2464
3234
|
};
|
|
3235
|
+
/** @description Recipient resolution rate limit exceeded. */
|
|
3236
|
+
429: {
|
|
3237
|
+
headers: {
|
|
3238
|
+
[name: string]: unknown;
|
|
3239
|
+
};
|
|
3240
|
+
content?: never;
|
|
3241
|
+
};
|
|
2465
3242
|
/** @description Identity, D1, authorization, audit, cursor, or capacity authority is unavailable. */
|
|
2466
3243
|
503: {
|
|
2467
3244
|
headers: {
|
|
@@ -2491,13 +3268,13 @@ interface operations {
|
|
|
2491
3268
|
};
|
|
2492
3269
|
};
|
|
2493
3270
|
};
|
|
2494
|
-
|
|
3271
|
+
listItemSharingPeople: {
|
|
2495
3272
|
parameters: {
|
|
2496
|
-
query?:
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
"If-Match": string;
|
|
3273
|
+
query?: {
|
|
3274
|
+
limit?: number;
|
|
3275
|
+
cursor?: string;
|
|
2500
3276
|
};
|
|
3277
|
+
header?: never;
|
|
2501
3278
|
path: {
|
|
2502
3279
|
workspaceId: string;
|
|
2503
3280
|
itemId: string;
|
|
@@ -2506,26 +3283,47 @@ interface operations {
|
|
|
2506
3283
|
};
|
|
2507
3284
|
requestBody?: never;
|
|
2508
3285
|
responses: {
|
|
2509
|
-
/** @description
|
|
3286
|
+
/** @description Canonical grant page; unavailable display is null and never authority. */
|
|
2510
3287
|
200: {
|
|
2511
3288
|
headers: {
|
|
2512
|
-
/** @description Strong precondition for the next item mutation. */
|
|
2513
|
-
ETag?: string;
|
|
2514
3289
|
[name: string]: unknown;
|
|
2515
3290
|
};
|
|
2516
3291
|
content: {
|
|
2517
3292
|
"application/json": {
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
3293
|
+
collectionEtag: string;
|
|
3294
|
+
collectionRevision: number;
|
|
3295
|
+
items: ({
|
|
3296
|
+
actions: ("items:content:read" | "items:create" | "items:delete" | "items:metadata:read" | "items:permissions:read" | "items:update")[];
|
|
3297
|
+
/** @enum {string} */
|
|
3298
|
+
availability: "active" | "expired" | "revoked";
|
|
3299
|
+
etag: string;
|
|
3300
|
+
expiresAtEpochMilliseconds: number | null;
|
|
3301
|
+
grantId: string;
|
|
3302
|
+
grantee: {
|
|
3303
|
+
/** @enum {string} */
|
|
3304
|
+
type: "user";
|
|
3305
|
+
userId: string;
|
|
3306
|
+
} | {
|
|
3307
|
+
teamId: string;
|
|
3308
|
+
/** @enum {string} */
|
|
3309
|
+
type: "team";
|
|
3310
|
+
};
|
|
3311
|
+
revision: number;
|
|
3312
|
+
/** @enum {string} */
|
|
3313
|
+
source: "direct" | "inherited";
|
|
3314
|
+
sourceItemId: string;
|
|
3315
|
+
} & {
|
|
3316
|
+
recipient: {
|
|
3317
|
+
/** @description At most 320 UTF-8 bytes. */
|
|
3318
|
+
email: string;
|
|
3319
|
+
expiresAt: number;
|
|
3320
|
+
/** @description At most 1024 UTF-8 bytes. */
|
|
3321
|
+
name: string;
|
|
3322
|
+
resolvedAt: number;
|
|
3323
|
+
userId: string;
|
|
3324
|
+
} | null;
|
|
3325
|
+
})[];
|
|
3326
|
+
nextCursor: string | null;
|
|
2529
3327
|
};
|
|
2530
3328
|
};
|
|
2531
3329
|
};
|
|
@@ -2547,7 +3345,7 @@ interface operations {
|
|
|
2547
3345
|
};
|
|
2548
3346
|
};
|
|
2549
3347
|
};
|
|
2550
|
-
/** @description The discoverable item does not permit this
|
|
3348
|
+
/** @description The discoverable item does not permit this permission operation. */
|
|
2551
3349
|
403: {
|
|
2552
3350
|
headers: {
|
|
2553
3351
|
[name: string]: unknown;
|
|
@@ -2565,8 +3363,15 @@ interface operations {
|
|
|
2565
3363
|
};
|
|
2566
3364
|
};
|
|
2567
3365
|
};
|
|
2568
|
-
/** @description The item or
|
|
3366
|
+
/** @description The item or registered recipient is unavailable. */
|
|
2569
3367
|
404: {
|
|
3368
|
+
headers: {
|
|
3369
|
+
[name: string]: unknown;
|
|
3370
|
+
};
|
|
3371
|
+
content?: never;
|
|
3372
|
+
};
|
|
3373
|
+
/** @description The idempotency key was reused for a different semantic request. */
|
|
3374
|
+
409: {
|
|
2570
3375
|
headers: {
|
|
2571
3376
|
[name: string]: unknown;
|
|
2572
3377
|
};
|
|
@@ -2574,31 +3379,22 @@ interface operations {
|
|
|
2574
3379
|
"application/json": {
|
|
2575
3380
|
error: {
|
|
2576
3381
|
/** @enum {string} */
|
|
2577
|
-
code: "
|
|
3382
|
+
code: "idempotency_conflict";
|
|
2578
3383
|
details: Record<string, never>;
|
|
2579
3384
|
/** @enum {string} */
|
|
2580
|
-
message: "The
|
|
3385
|
+
message: "The idempotency key conflicts with an earlier request.";
|
|
2581
3386
|
requestId: string;
|
|
2582
3387
|
};
|
|
2583
3388
|
};
|
|
2584
3389
|
};
|
|
2585
3390
|
};
|
|
2586
|
-
/** @description The
|
|
2587
|
-
|
|
3391
|
+
/** @description The supplied revision or post-preflight authority is stale. */
|
|
3392
|
+
412: {
|
|
2588
3393
|
headers: {
|
|
2589
3394
|
[name: string]: unknown;
|
|
2590
3395
|
};
|
|
2591
3396
|
content: {
|
|
2592
3397
|
"application/json": {
|
|
2593
|
-
error: {
|
|
2594
|
-
/** @enum {string} */
|
|
2595
|
-
code: "idempotency_conflict";
|
|
2596
|
-
details: Record<string, never>;
|
|
2597
|
-
/** @enum {string} */
|
|
2598
|
-
message: "The idempotency key conflicts with an earlier request.";
|
|
2599
|
-
requestId: string;
|
|
2600
|
-
};
|
|
2601
|
-
} | {
|
|
2602
3398
|
error: {
|
|
2603
3399
|
/** @enum {string} */
|
|
2604
3400
|
code: "precondition_failed";
|
|
@@ -2610,7 +3406,7 @@ interface operations {
|
|
|
2610
3406
|
};
|
|
2611
3407
|
};
|
|
2612
3408
|
};
|
|
2613
|
-
/** @description The path, query, headers, key, or
|
|
3409
|
+
/** @description The path, query, headers, idempotency key, or body are invalid. */
|
|
2614
3410
|
422: {
|
|
2615
3411
|
headers: {
|
|
2616
3412
|
[name: string]: unknown;
|
|
@@ -2637,7 +3433,14 @@ interface operations {
|
|
|
2637
3433
|
};
|
|
2638
3434
|
};
|
|
2639
3435
|
};
|
|
2640
|
-
/** @description
|
|
3436
|
+
/** @description Recipient resolution rate limit exceeded. */
|
|
3437
|
+
429: {
|
|
3438
|
+
headers: {
|
|
3439
|
+
[name: string]: unknown;
|
|
3440
|
+
};
|
|
3441
|
+
content?: never;
|
|
3442
|
+
};
|
|
3443
|
+
/** @description Identity, D1, authorization, audit, cursor, or capacity authority is unavailable. */
|
|
2641
3444
|
503: {
|
|
2642
3445
|
headers: {
|
|
2643
3446
|
[name: string]: unknown;
|
|
@@ -4562,6 +5365,144 @@ interface operations {
|
|
|
4562
5365
|
};
|
|
4563
5366
|
};
|
|
4564
5367
|
};
|
|
5368
|
+
getWorkspaceUsage: {
|
|
5369
|
+
parameters: {
|
|
5370
|
+
query?: never;
|
|
5371
|
+
header?: never;
|
|
5372
|
+
path: {
|
|
5373
|
+
workspaceId: string;
|
|
5374
|
+
};
|
|
5375
|
+
cookie?: never;
|
|
5376
|
+
};
|
|
5377
|
+
requestBody?: never;
|
|
5378
|
+
responses: {
|
|
5379
|
+
/** @description Current committed and retained reserved bytes, not physical archive usage. */
|
|
5380
|
+
200: {
|
|
5381
|
+
headers: {
|
|
5382
|
+
[name: string]: unknown;
|
|
5383
|
+
};
|
|
5384
|
+
content: {
|
|
5385
|
+
"application/json": {
|
|
5386
|
+
/** @enum {string} */
|
|
5387
|
+
accounting: "current-versions-and-reservations";
|
|
5388
|
+
availableBytes: string;
|
|
5389
|
+
limitBytes: string;
|
|
5390
|
+
/** @enum {string} */
|
|
5391
|
+
provider: "managed";
|
|
5392
|
+
reservedBytes: string;
|
|
5393
|
+
/** @enum {boolean} */
|
|
5394
|
+
reservedBytesIncludeUnresolvedUploads: true;
|
|
5395
|
+
unresolvedReservedBytes: string;
|
|
5396
|
+
usedBytes: string;
|
|
5397
|
+
warnings: "unresolved-archive-ownership"[];
|
|
5398
|
+
workspaceId: string;
|
|
5399
|
+
};
|
|
5400
|
+
};
|
|
5401
|
+
};
|
|
5402
|
+
/** @description Authentication required. */
|
|
5403
|
+
401: {
|
|
5404
|
+
headers: {
|
|
5405
|
+
[name: string]: unknown;
|
|
5406
|
+
};
|
|
5407
|
+
content: {
|
|
5408
|
+
"application/json": {
|
|
5409
|
+
error: {
|
|
5410
|
+
/** @enum {string} */
|
|
5411
|
+
code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "invalid_pagination_cursor" | "precondition_failed" | "service_unavailable";
|
|
5412
|
+
details: Record<string, never>;
|
|
5413
|
+
message: string;
|
|
5414
|
+
requestId: string;
|
|
5415
|
+
};
|
|
5416
|
+
};
|
|
5417
|
+
};
|
|
5418
|
+
};
|
|
5419
|
+
/** @description The action is not permitted. */
|
|
5420
|
+
403: {
|
|
5421
|
+
headers: {
|
|
5422
|
+
[name: string]: unknown;
|
|
5423
|
+
};
|
|
5424
|
+
content: {
|
|
5425
|
+
"application/json": {
|
|
5426
|
+
error: {
|
|
5427
|
+
/** @enum {string} */
|
|
5428
|
+
code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "invalid_pagination_cursor" | "precondition_failed" | "service_unavailable";
|
|
5429
|
+
details: Record<string, never>;
|
|
5430
|
+
message: string;
|
|
5431
|
+
requestId: string;
|
|
5432
|
+
};
|
|
5433
|
+
};
|
|
5434
|
+
};
|
|
5435
|
+
};
|
|
5436
|
+
/** @description Workspace not found. */
|
|
5437
|
+
404: {
|
|
5438
|
+
headers: {
|
|
5439
|
+
[name: string]: unknown;
|
|
5440
|
+
};
|
|
5441
|
+
content: {
|
|
5442
|
+
"application/json": {
|
|
5443
|
+
error: {
|
|
5444
|
+
/** @enum {string} */
|
|
5445
|
+
code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "invalid_pagination_cursor" | "precondition_failed" | "service_unavailable";
|
|
5446
|
+
details: Record<string, never>;
|
|
5447
|
+
message: string;
|
|
5448
|
+
requestId: string;
|
|
5449
|
+
};
|
|
5450
|
+
};
|
|
5451
|
+
};
|
|
5452
|
+
};
|
|
5453
|
+
/** @description The selected authority or page changed; restart the query. */
|
|
5454
|
+
409: {
|
|
5455
|
+
headers: {
|
|
5456
|
+
[name: string]: unknown;
|
|
5457
|
+
};
|
|
5458
|
+
content: {
|
|
5459
|
+
"application/json": {
|
|
5460
|
+
error: {
|
|
5461
|
+
/** @enum {string} */
|
|
5462
|
+
code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "invalid_pagination_cursor" | "precondition_failed" | "service_unavailable";
|
|
5463
|
+
details: Record<string, never>;
|
|
5464
|
+
message: string;
|
|
5465
|
+
requestId: string;
|
|
5466
|
+
};
|
|
5467
|
+
};
|
|
5468
|
+
};
|
|
5469
|
+
};
|
|
5470
|
+
/** @description Invalid request or cursor. */
|
|
5471
|
+
422: {
|
|
5472
|
+
headers: {
|
|
5473
|
+
[name: string]: unknown;
|
|
5474
|
+
};
|
|
5475
|
+
content: {
|
|
5476
|
+
"application/json": {
|
|
5477
|
+
error: {
|
|
5478
|
+
/** @enum {string} */
|
|
5479
|
+
code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "invalid_pagination_cursor" | "precondition_failed" | "service_unavailable";
|
|
5480
|
+
details: Record<string, never>;
|
|
5481
|
+
message: string;
|
|
5482
|
+
requestId: string;
|
|
5483
|
+
};
|
|
5484
|
+
};
|
|
5485
|
+
};
|
|
5486
|
+
};
|
|
5487
|
+
/** @description Authoritative state is unavailable. */
|
|
5488
|
+
503: {
|
|
5489
|
+
headers: {
|
|
5490
|
+
[name: string]: unknown;
|
|
5491
|
+
};
|
|
5492
|
+
content: {
|
|
5493
|
+
"application/json": {
|
|
5494
|
+
error: {
|
|
5495
|
+
/** @enum {string} */
|
|
5496
|
+
code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "invalid_pagination_cursor" | "precondition_failed" | "service_unavailable";
|
|
5497
|
+
details: Record<string, never>;
|
|
5498
|
+
message: string;
|
|
5499
|
+
requestId: string;
|
|
5500
|
+
};
|
|
5501
|
+
};
|
|
5502
|
+
};
|
|
5503
|
+
};
|
|
5504
|
+
};
|
|
5505
|
+
};
|
|
4565
5506
|
}
|
|
4566
5507
|
//#endregion
|
|
4567
5508
|
//#region src/types.d.ts
|
|
@@ -4610,6 +5551,62 @@ type CreateDownloadPath = operations["createDownload"]["parameters"]["path"];
|
|
|
4610
5551
|
type CreateDownloadQuery = NonNullable<operations["createDownload"]["parameters"]["query"]>;
|
|
4611
5552
|
type CreateDownloadHeaders = operations["createDownload"]["parameters"]["header"];
|
|
4612
5553
|
type GeneratedCurrentWorkspace = JsonResponse<"getCurrentWorkspace", 200>;
|
|
5554
|
+
type RegisteredRecipientDisplay = Readonly<NonNullable<JsonResponse<"listItemSharingPeople", 200>["items"][number]["recipient"]>>;
|
|
5555
|
+
type ItemSharingPeoplePage = Readonly<Omit<JsonResponse<"listItemSharingPeople", 200>, "items"> & {
|
|
5556
|
+
items: readonly (PermissionGrant & {
|
|
5557
|
+
readonly recipient: RegisteredRecipientDisplay | null;
|
|
5558
|
+
})[];
|
|
5559
|
+
}>;
|
|
5560
|
+
interface RegisterItemRecipientInput {
|
|
5561
|
+
readonly workspaceId: string;
|
|
5562
|
+
readonly itemId: string;
|
|
5563
|
+
readonly email: string;
|
|
5564
|
+
readonly role: "viewer" | "editor";
|
|
5565
|
+
readonly ifMatch: string;
|
|
5566
|
+
readonly idempotencyKey: string;
|
|
5567
|
+
readonly signal?: AbortSignal;
|
|
5568
|
+
}
|
|
5569
|
+
type ListItemSharingPeopleInput = ListItemPermissionsInput;
|
|
5570
|
+
type GeneratedIncomingPage = JsonResponse<"listIncomingShares", 200>;
|
|
5571
|
+
type IncomingShareContext = Readonly<GeneratedIncomingPage["items"][number]>;
|
|
5572
|
+
type IncomingSharePage = Readonly<{
|
|
5573
|
+
items: readonly IncomingShareContext[];
|
|
5574
|
+
nextCursor: string | null;
|
|
5575
|
+
}>;
|
|
5576
|
+
interface ListIncomingSharesInput {
|
|
5577
|
+
readonly limit?: number;
|
|
5578
|
+
readonly cursor?: string;
|
|
5579
|
+
readonly signal?: AbortSignal;
|
|
5580
|
+
}
|
|
5581
|
+
type GeneratedDiscoveryPage = JsonResponse<"listWorkspaceItems", 200>;
|
|
5582
|
+
type WorkspaceDiscoveryItem = Readonly<Omit<GeneratedDiscoveryPage["items"][number], "currentVersion"> & {
|
|
5583
|
+
readonly currentVersion: ManagedItemMetadata["currentVersion"];
|
|
5584
|
+
}>;
|
|
5585
|
+
type WorkspaceDiscoveryPage = Readonly<{
|
|
5586
|
+
items: readonly WorkspaceDiscoveryItem[];
|
|
5587
|
+
nextCursor: string | null;
|
|
5588
|
+
}>;
|
|
5589
|
+
type GeneratedWorkspaceUsage = JsonResponse<"getWorkspaceUsage", 200>;
|
|
5590
|
+
type WorkspaceUsage = Readonly<Omit<GeneratedWorkspaceUsage, "warnings"> & {
|
|
5591
|
+
readonly warnings: readonly GeneratedWorkspaceUsage["warnings"][number][];
|
|
5592
|
+
}>;
|
|
5593
|
+
interface GetWorkspaceUsageInput {
|
|
5594
|
+
readonly workspaceId: string;
|
|
5595
|
+
readonly signal?: AbortSignal;
|
|
5596
|
+
}
|
|
5597
|
+
interface ListWorkspaceItemsInput extends GetWorkspaceUsageInput {
|
|
5598
|
+
readonly view?: "recent" | "shared" | "trash";
|
|
5599
|
+
readonly kind?: "file" | "folder";
|
|
5600
|
+
readonly creatorUserId?: string;
|
|
5601
|
+
readonly limit?: number;
|
|
5602
|
+
readonly cursor?: string;
|
|
5603
|
+
}
|
|
5604
|
+
type GeneratedCurrentWorkspaceSources = JsonResponse<"getCurrentWorkspaceSources", 200>;
|
|
5605
|
+
type CurrentWorkspaceSources = Readonly<Omit<GeneratedCurrentWorkspaceSources, "workspace" | "volumes" | "knownProviders"> & {
|
|
5606
|
+
readonly workspace: CurrentWorkspace;
|
|
5607
|
+
readonly volumes: readonly Readonly<GeneratedCurrentWorkspaceSources["volumes"][number]>[];
|
|
5608
|
+
readonly knownProviders: readonly GeneratedCurrentWorkspaceSources["knownProviders"][number][];
|
|
5609
|
+
}>;
|
|
4613
5610
|
type CurrentWorkspace = Readonly<Omit<GeneratedCurrentWorkspace, "workspaceReference"> & {
|
|
4614
5611
|
readonly workspaceReference: Readonly<GeneratedCurrentWorkspace["workspaceReference"]>;
|
|
4615
5612
|
}>;
|
|
@@ -4817,6 +5814,12 @@ interface GetCurrentWorkspaceInput {
|
|
|
4817
5814
|
readonly signal?: AbortSignal;
|
|
4818
5815
|
}
|
|
4819
5816
|
interface DriveOperations {
|
|
5817
|
+
registerItemRecipient(input: RegisterItemRecipientInput): Promise<DriveOperationResult<PermissionMutation, 200 | 201>>;
|
|
5818
|
+
listItemSharingPeople(input: ListItemSharingPeopleInput): Promise<DriveOperationResult<ItemSharingPeoplePage, 200>>;
|
|
5819
|
+
listIncomingShares(input?: ListIncomingSharesInput): Promise<DriveOperationResult<IncomingSharePage, 200>>;
|
|
5820
|
+
listWorkspaceItems(input: ListWorkspaceItemsInput): Promise<DriveOperationResult<WorkspaceDiscoveryPage, 200>>;
|
|
5821
|
+
getWorkspaceUsage(input: GetWorkspaceUsageInput): Promise<DriveOperationResult<WorkspaceUsage, 200>>;
|
|
5822
|
+
getCurrentWorkspaceSources(input?: GetCurrentWorkspaceInput): Promise<DriveOperationResult<CurrentWorkspaceSources, 200>>;
|
|
4820
5823
|
getCurrentWorkspace(input?: GetCurrentWorkspaceInput): Promise<DriveOperationResult<CurrentWorkspace, 200>>;
|
|
4821
5824
|
getItem(input: GetItemInput): Promise<DriveOperationResult<ManagedItemMetadata, 200>>;
|
|
4822
5825
|
searchWorkspaceItems(input: SearchWorkspaceItemsInput): Promise<DriveOperationResult<WorkspaceItemSearchPage, 200>>;
|
|
@@ -4848,4 +5851,4 @@ interface DriveClient extends DriveOperations {
|
|
|
4848
5851
|
uploadFile(input: UploadFileInput): Promise<DriveOperationResult<UploadCompletion, 200 | 202>>;
|
|
4849
5852
|
}
|
|
4850
5853
|
//#endregion
|
|
4851
|
-
export {
|
|
5854
|
+
export { ProtectionClassification as $, IncomingShareContext as A, ManagedDownloadRestorePending as B, FolderItem as C, WorkspaceDiscoveryPage as Ct, GetItemVersionInput as D, operations as Dt, GetItemInput as E, WorkspaceUsage as Et, ListItemPermissionsInput as F, ManagedItemVersionRestoreResult as G, ManagedItemVersion as H, ListItemSharingPeopleInput as I, PermissionAction as J, ManagedLifecycleItem as K, ListItemVersionsInput as L, ItemSharingPeoplePage as M, ListFolderChildrenInput as N, GetUploadStatusInput as O, ListIncomingSharesInput as P, PermissionPage as Q, ListWorkspaceItemsInput as R, EffectivePermissionResponse as S, WorkspaceDiscoveryItem as St, GetCurrentWorkspaceInput as T, WorkspaceItemSearchPage as Tt, ManagedItemVersionPage as U, ManagedItemMetadata as V, ManagedItemVersionResource as W, PermissionGrantee as X, PermissionGrant as Y, PermissionMutation as Z, DriveOperations as _, UploadFileProgressCallback as _t, CreateItemPermissionInput as a, RestoreItemInput as at, DriveServerClientConfig as b, UploadSession as bt, CurrentWorkspace as c, SearchWorkspaceItemsInput as ct, DownloadItemResult as d, UpdateItemPermissionInput as dt, ReadEffectiveItemPermissionsInput as et, DriveClient as f, UploadCompletion as ft, DriveOperationResult as g, UploadFileProgress as gt, DriveCredentialProvider as h, UploadFilePhase as ht, CreateFolderInput as i, RegisteredRecipientDisplay as it, IncomingSharePage as j, GetWorkspaceUsageInput as k, CurrentWorkspaceSources as l, TrashItemInput as lt, DriveCredentialContext as m, UploadFileInput as mt, CompleteUploadInput as n, RecordUploadPartInput as nt, CreateUploadInput as o, RestoreItemVersionInput as ot, DriveClientConfig as p, UploadConfirmedPart as pt, PendingUpload as q, CreateDownloadInput as r, RegisterItemRecipientInput as rt, CreateUploadPartDescriptorInput as s, RevokeItemPermissionInput as st, AbortUploadInput as t, ReadyUpload as tt, DeleteItemInput as u, UpdateItemInput as ut, DriveResponseValidators as v, UploadPartDescriptor as vt, FolderPage as w, WorkspaceItemSearchItem as wt, EffectivePermissionAction as x, UploadStatus as xt, DriveServerClient as y, UploadPartResult as yt, ManagedDownloadDescriptor as z };
|