@finueva/drive 0.11.0 → 0.13.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.
@@ -287,34 +287,793 @@ interface operations {
287
287
  };
288
288
  };
289
289
  };
290
+ listVisitorChildren: {
291
+ parameters: {
292
+ query?: {
293
+ itemId?: string;
294
+ after?: string;
295
+ };
296
+ header: {
297
+ /** @description DriveVisitor followed by a space and the capability. Never place tokens in URLs. */
298
+ Authorization: string;
299
+ };
300
+ path?: never;
301
+ cookie?: never;
302
+ };
303
+ requestBody?: never;
304
+ responses: {
305
+ /** @description Current child page. */
306
+ 200: {
307
+ headers: {
308
+ [name: string]: unknown;
309
+ };
310
+ content: {
311
+ "application/json": {
312
+ items: {
313
+ itemId: string;
314
+ /** @enum {string} */
315
+ kind: "file" | "folder";
316
+ name: string | null;
317
+ }[];
318
+ nextAfter: string | null;
319
+ };
320
+ };
321
+ };
322
+ /** @description Capability or resource unavailable. */
323
+ 404: {
324
+ headers: {
325
+ [name: string]: unknown;
326
+ };
327
+ content?: never;
328
+ };
329
+ /** @description Conflicting request identity. */
330
+ 409: {
331
+ headers: {
332
+ [name: string]: unknown;
333
+ };
334
+ content?: never;
335
+ };
336
+ /** @description Invalid request; visitor roles are viewer only. */
337
+ 422: {
338
+ headers: {
339
+ [name: string]: unknown;
340
+ };
341
+ content?: never;
342
+ };
343
+ /** @description Bounded admission exhausted; retry after one minute. */
344
+ 429: {
345
+ headers: {
346
+ [name: string]: unknown;
347
+ };
348
+ content?: never;
349
+ };
350
+ /** @description Service unavailable. */
351
+ 503: {
352
+ headers: {
353
+ [name: string]: unknown;
354
+ };
355
+ content?: never;
356
+ };
357
+ };
358
+ };
359
+ createVisitorDownload: {
360
+ parameters: {
361
+ query?: {
362
+ itemId?: string;
363
+ };
364
+ header: {
365
+ /** @description DriveVisitor followed by a space and the capability. Never place tokens in URLs. */
366
+ Authorization: string;
367
+ };
368
+ path?: never;
369
+ cookie?: never;
370
+ };
371
+ requestBody?: never;
372
+ responses: {
373
+ /** @description Native managed download descriptor. */
374
+ 200: {
375
+ headers: {
376
+ [name: string]: unknown;
377
+ };
378
+ content: {
379
+ "application/json": {
380
+ expiresAtEpochMilliseconds: number;
381
+ headers: {
382
+ [key: string]: string;
383
+ };
384
+ /** @enum {string} */
385
+ method: "GET" | "HEAD";
386
+ /** @enum {string} */
387
+ mode: "presigned-single";
388
+ response: {
389
+ /** @enum {string} */
390
+ acceptRanges: "bytes";
391
+ byteLength: number;
392
+ contentDisposition: string;
393
+ contentLength: number;
394
+ contentRange: string | null;
395
+ contentType: string;
396
+ etag: string;
397
+ status: 200 | 206;
398
+ versionId: string;
399
+ };
400
+ /** Format: uri */
401
+ url: string;
402
+ };
403
+ };
404
+ };
405
+ /** @description Not modified. */
406
+ 304: {
407
+ headers: {
408
+ [name: string]: unknown;
409
+ };
410
+ content?: never;
411
+ };
412
+ /** @description Capability or resource unavailable. */
413
+ 404: {
414
+ headers: {
415
+ [name: string]: unknown;
416
+ };
417
+ content?: never;
418
+ };
419
+ /** @description Conflicting request identity. */
420
+ 409: {
421
+ headers: {
422
+ [name: string]: unknown;
423
+ };
424
+ content?: never;
425
+ };
426
+ /** @description Precondition failed. */
427
+ 412: {
428
+ headers: {
429
+ [name: string]: unknown;
430
+ };
431
+ content?: never;
432
+ };
433
+ /** @description Range unsatisfiable. */
434
+ 416: {
435
+ headers: {
436
+ [name: string]: unknown;
437
+ };
438
+ content?: never;
439
+ };
440
+ /** @description Invalid request; visitor roles are viewer only. */
441
+ 422: {
442
+ headers: {
443
+ [name: string]: unknown;
444
+ };
445
+ content?: never;
446
+ };
447
+ /** @description Bounded admission exhausted; retry after one minute. */
448
+ 429: {
449
+ headers: {
450
+ [name: string]: unknown;
451
+ };
452
+ content?: never;
453
+ };
454
+ /** @description Service unavailable. */
455
+ 503: {
456
+ headers: {
457
+ [name: string]: unknown;
458
+ };
459
+ content?: never;
460
+ };
461
+ };
462
+ };
463
+ readVisitorItem: {
464
+ parameters: {
465
+ query?: {
466
+ itemId?: string;
467
+ };
468
+ header: {
469
+ /** @description DriveVisitor followed by a space and the capability. Never place tokens in URLs. */
470
+ Authorization: string;
471
+ };
472
+ path?: never;
473
+ cookie?: never;
474
+ };
475
+ requestBody?: never;
476
+ responses: {
477
+ /** @description Current descendant item. */
478
+ 200: {
479
+ headers: {
480
+ [name: string]: unknown;
481
+ };
482
+ content: {
483
+ "application/json": {
484
+ itemId: string;
485
+ /** @enum {string} */
486
+ kind: "file" | "folder";
487
+ name: string | null;
488
+ /** @enum {string} */
489
+ role: "viewer";
490
+ rootItemId: string;
491
+ };
492
+ };
493
+ };
494
+ /** @description Capability or resource unavailable. */
495
+ 404: {
496
+ headers: {
497
+ [name: string]: unknown;
498
+ };
499
+ content?: never;
500
+ };
501
+ /** @description Conflicting request identity. */
502
+ 409: {
503
+ headers: {
504
+ [name: string]: unknown;
505
+ };
506
+ content?: never;
507
+ };
508
+ /** @description Invalid request; visitor roles are viewer only. */
509
+ 422: {
510
+ headers: {
511
+ [name: string]: unknown;
512
+ };
513
+ content?: never;
514
+ };
515
+ /** @description Bounded admission exhausted; retry after one minute. */
516
+ 429: {
517
+ headers: {
518
+ [name: string]: unknown;
519
+ };
520
+ content?: never;
521
+ };
522
+ /** @description Service unavailable. */
523
+ 503: {
524
+ headers: {
525
+ [name: string]: unknown;
526
+ };
527
+ content?: never;
528
+ };
529
+ };
530
+ };
531
+ redeemVisitorInvitation: {
532
+ parameters: {
533
+ query?: never;
534
+ header: {
535
+ /** @description DriveVisitor followed by a space and the capability. Never place tokens in URLs. */
536
+ Authorization: string;
537
+ };
538
+ path?: never;
539
+ cookie?: never;
540
+ };
541
+ requestBody: {
542
+ content: {
543
+ "application/json": {
544
+ sessionToken: string;
545
+ };
546
+ };
547
+ };
548
+ responses: {
549
+ /** @description Session bound to the invitation's exact email and scope. */
550
+ 200: {
551
+ headers: {
552
+ [name: string]: unknown;
553
+ };
554
+ content: {
555
+ "application/json": {
556
+ expiresAt: number;
557
+ grantId: string;
558
+ /** @enum {string} */
559
+ role: "viewer";
560
+ };
561
+ };
562
+ };
563
+ /** @description Capability or resource unavailable. */
564
+ 404: {
565
+ headers: {
566
+ [name: string]: unknown;
567
+ };
568
+ content?: never;
569
+ };
570
+ /** @description Conflicting request identity. */
571
+ 409: {
572
+ headers: {
573
+ [name: string]: unknown;
574
+ };
575
+ content?: never;
576
+ };
577
+ /** @description Invalid request; visitor roles are viewer only. */
578
+ 422: {
579
+ headers: {
580
+ [name: string]: unknown;
581
+ };
582
+ content?: never;
583
+ };
584
+ /** @description Bounded admission exhausted; retry after one minute. */
585
+ 429: {
586
+ headers: {
587
+ [name: string]: unknown;
588
+ };
589
+ content?: never;
590
+ };
591
+ /** @description Service unavailable. */
592
+ 503: {
593
+ headers: {
594
+ [name: string]: unknown;
595
+ };
596
+ content?: never;
597
+ };
598
+ };
599
+ };
290
600
  getCurrentWorkspace: {
291
601
  parameters: {
292
602
  query?: never;
293
603
  header?: never;
294
- path?: never;
604
+ path?: never;
605
+ cookie?: never;
606
+ };
607
+ requestBody?: never;
608
+ responses: {
609
+ /** @description The exact managed workspace and canonical root selected by the Drive credential. */
610
+ 200: {
611
+ headers: {
612
+ [name: string]: unknown;
613
+ };
614
+ content: {
615
+ "application/json": {
616
+ rootItemId: string;
617
+ rootVolumeId: string;
618
+ workspaceId: string;
619
+ workspaceReference: {
620
+ /** @enum {string} */
621
+ type: "personal";
622
+ userId: string;
623
+ } | {
624
+ organizationId: string;
625
+ /** @enum {string} */
626
+ type: "organization";
627
+ };
628
+ };
629
+ };
630
+ };
631
+ /** @description A valid Drive user bearer credential is required. */
632
+ 401: {
633
+ headers: {
634
+ [name: string]: unknown;
635
+ };
636
+ content: {
637
+ "application/json": {
638
+ error: {
639
+ /** @enum {string} */
640
+ code: "authentication_required";
641
+ details: Record<string, never>;
642
+ /** @enum {string} */
643
+ message: "Authentication is required.";
644
+ requestId: string;
645
+ };
646
+ };
647
+ };
648
+ };
649
+ /** @description Managed storage is disabled for the current workspace. */
650
+ 403: {
651
+ headers: {
652
+ [name: string]: unknown;
653
+ };
654
+ content: {
655
+ "application/json": {
656
+ error: {
657
+ /** @enum {string} */
658
+ code: "permission_denied";
659
+ details: Record<string, never>;
660
+ /** @enum {string} */
661
+ message: "The requested action is not permitted.";
662
+ requestId: string;
663
+ };
664
+ };
665
+ };
666
+ };
667
+ /** @description The selected Auth workspace is not provisioned or is not available to this User. */
668
+ 404: {
669
+ headers: {
670
+ [name: string]: unknown;
671
+ };
672
+ content: {
673
+ "application/json": {
674
+ error: {
675
+ /** @enum {string} */
676
+ code: "resource_not_found";
677
+ details: Record<string, never>;
678
+ /** @enum {string} */
679
+ message: "The requested resource was not found.";
680
+ requestId: string;
681
+ };
682
+ };
683
+ };
684
+ };
685
+ /** @description The request contains unsupported query input. */
686
+ 422: {
687
+ headers: {
688
+ [name: string]: unknown;
689
+ };
690
+ content: {
691
+ "application/json": {
692
+ error: {
693
+ /** @enum {string} */
694
+ code: "invalid_request";
695
+ details: Record<string, never>;
696
+ /** @enum {string} */
697
+ message: "The request is invalid.";
698
+ requestId: string;
699
+ };
700
+ };
701
+ };
702
+ };
703
+ /** @description Identity authority, D1, or the canonical managed root is unavailable. */
704
+ 503: {
705
+ headers: {
706
+ [name: string]: unknown;
707
+ };
708
+ content: {
709
+ "application/json": {
710
+ error: {
711
+ /** @enum {string} */
712
+ code: "identity_authority_unavailable";
713
+ details: Record<string, never>;
714
+ /** @enum {string} */
715
+ message: "Authentication is temporarily unavailable.";
716
+ requestId: string;
717
+ };
718
+ } | {
719
+ error: {
720
+ /** @enum {string} */
721
+ code: "service_unavailable";
722
+ details: Record<string, never>;
723
+ /** @enum {string} */
724
+ message: "The service is temporarily unavailable.";
725
+ requestId: string;
726
+ };
727
+ };
728
+ };
729
+ };
730
+ };
731
+ };
732
+ getCurrentWorkspaceSources: {
733
+ parameters: {
734
+ query?: never;
735
+ header?: never;
736
+ path?: never;
737
+ cookie?: never;
738
+ };
739
+ requestBody?: never;
740
+ responses: {
741
+ /** @description One canonical managed volume. Known providers are not connections or health evidence. */
742
+ 200: {
743
+ headers: {
744
+ [name: string]: unknown;
745
+ };
746
+ content: {
747
+ "application/json": {
748
+ /** @enum {boolean} */
749
+ externalConnectionsSupported: false;
750
+ knownProviders: ("managed" | "google-drive" | "onedrive" | "dropbox" | "s3-compatible")[];
751
+ volumes: {
752
+ /** @enum {string} */
753
+ name: "Files";
754
+ /** @enum {string} */
755
+ provider: "managed";
756
+ rootItemId: string;
757
+ volumeId: string;
758
+ }[];
759
+ workspace: {
760
+ rootItemId: string;
761
+ rootVolumeId: string;
762
+ workspaceId: string;
763
+ workspaceReference: {
764
+ /** @enum {string} */
765
+ type: "personal";
766
+ userId: string;
767
+ } | {
768
+ organizationId: string;
769
+ /** @enum {string} */
770
+ type: "organization";
771
+ };
772
+ };
773
+ };
774
+ };
775
+ };
776
+ /** @description A valid Drive user bearer credential is required. */
777
+ 401: {
778
+ headers: {
779
+ [name: string]: unknown;
780
+ };
781
+ content: {
782
+ "application/json": {
783
+ error: {
784
+ /** @enum {string} */
785
+ code: "authentication_required";
786
+ details: Record<string, never>;
787
+ /** @enum {string} */
788
+ message: "Authentication is required.";
789
+ requestId: string;
790
+ };
791
+ };
792
+ };
793
+ };
794
+ /** @description Managed storage is disabled. */
795
+ 403: {
796
+ headers: {
797
+ [name: string]: unknown;
798
+ };
799
+ content: {
800
+ "application/json": {
801
+ error: {
802
+ /** @enum {string} */
803
+ code: "permission_denied";
804
+ details: Record<string, never>;
805
+ /** @enum {string} */
806
+ message: "The requested action is not permitted.";
807
+ requestId: string;
808
+ };
809
+ };
810
+ };
811
+ };
812
+ /** @description The current workspace is not provisioned or accessible. */
813
+ 404: {
814
+ headers: {
815
+ [name: string]: unknown;
816
+ };
817
+ content: {
818
+ "application/json": {
819
+ error: {
820
+ /** @enum {string} */
821
+ code: "resource_not_found";
822
+ details: Record<string, never>;
823
+ /** @enum {string} */
824
+ message: "The requested resource was not found.";
825
+ requestId: string;
826
+ };
827
+ };
828
+ };
829
+ };
830
+ /** @description Unsupported query input. */
831
+ 422: {
832
+ headers: {
833
+ [name: string]: unknown;
834
+ };
835
+ content: {
836
+ "application/json": {
837
+ error: {
838
+ /** @enum {string} */
839
+ code: "invalid_request";
840
+ details: Record<string, never>;
841
+ /** @enum {string} */
842
+ message: "The request is invalid.";
843
+ requestId: string;
844
+ };
845
+ };
846
+ };
847
+ };
848
+ /** @description Identity authority, D1, or canonical managed root is unavailable. */
849
+ 503: {
850
+ headers: {
851
+ [name: string]: unknown;
852
+ };
853
+ content: {
854
+ "application/json": {
855
+ error: {
856
+ /** @enum {string} */
857
+ code: "identity_authority_unavailable";
858
+ details: Record<string, never>;
859
+ /** @enum {string} */
860
+ message: "Authentication is temporarily unavailable.";
861
+ requestId: string;
862
+ };
863
+ } | {
864
+ error: {
865
+ /** @enum {string} */
866
+ code: "service_unavailable";
867
+ details: Record<string, never>;
868
+ /** @enum {string} */
869
+ message: "The service is temporarily unavailable.";
870
+ requestId: string;
871
+ };
872
+ };
873
+ };
874
+ };
875
+ };
876
+ };
877
+ listWorkspaceItems: {
878
+ parameters: {
879
+ query?: {
880
+ view?: "recent" | "shared" | "trash";
881
+ kind?: "file" | "folder";
882
+ creatorUserId?: string;
883
+ limit?: number;
884
+ cursor?: string;
885
+ };
886
+ header?: never;
887
+ path: {
888
+ workspaceId: string;
889
+ };
890
+ cookie?: never;
891
+ };
892
+ requestBody?: never;
893
+ responses: {
894
+ /** @description Authorized items and an authenticated continuation; no total count. */
895
+ 200: {
896
+ headers: {
897
+ [name: string]: unknown;
898
+ };
899
+ content: {
900
+ "application/json": {
901
+ items: {
902
+ createdAtEpochMilliseconds: number | null;
903
+ creatorUserId: string | null;
904
+ currentVersion: {
905
+ byteLength: number;
906
+ mediaType: string;
907
+ /** @enum {string} */
908
+ protectionClassification: "ordinary" | "opaque-encrypted";
909
+ /** @enum {string} */
910
+ state: "current";
911
+ versionId: string;
912
+ } | null;
913
+ etag: string;
914
+ itemId: string;
915
+ /** @enum {string} */
916
+ lifecycleState: "active" | "trashed";
917
+ modifiedAtEpochMilliseconds: number | null;
918
+ name: string;
919
+ parentId: string | null;
920
+ /** @enum {string} */
921
+ provider: "managed";
922
+ purgeAfterEpochMilliseconds: number | null;
923
+ revision: number;
924
+ trashedAtEpochMilliseconds: number | null;
925
+ /** @enum {string} */
926
+ type: "file" | "folder";
927
+ volumeId: string;
928
+ workspaceId: string;
929
+ }[];
930
+ nextCursor: string | null;
931
+ };
932
+ };
933
+ };
934
+ /** @description Authentication required. */
935
+ 401: {
936
+ headers: {
937
+ [name: string]: unknown;
938
+ };
939
+ content: {
940
+ "application/json": {
941
+ error: {
942
+ /** @enum {string} */
943
+ code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "invalid_pagination_cursor" | "precondition_failed" | "service_unavailable";
944
+ details: Record<string, never>;
945
+ message: string;
946
+ requestId: string;
947
+ };
948
+ };
949
+ };
950
+ };
951
+ /** @description The action is not permitted. */
952
+ 403: {
953
+ headers: {
954
+ [name: string]: unknown;
955
+ };
956
+ content: {
957
+ "application/json": {
958
+ error: {
959
+ /** @enum {string} */
960
+ code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "invalid_pagination_cursor" | "precondition_failed" | "service_unavailable";
961
+ details: Record<string, never>;
962
+ message: string;
963
+ requestId: string;
964
+ };
965
+ };
966
+ };
967
+ };
968
+ /** @description Workspace not found. */
969
+ 404: {
970
+ headers: {
971
+ [name: string]: unknown;
972
+ };
973
+ content: {
974
+ "application/json": {
975
+ error: {
976
+ /** @enum {string} */
977
+ code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "invalid_pagination_cursor" | "precondition_failed" | "service_unavailable";
978
+ details: Record<string, never>;
979
+ message: string;
980
+ requestId: string;
981
+ };
982
+ };
983
+ };
984
+ };
985
+ /** @description The selected authority or page changed; restart the query. */
986
+ 409: {
987
+ headers: {
988
+ [name: string]: unknown;
989
+ };
990
+ content: {
991
+ "application/json": {
992
+ error: {
993
+ /** @enum {string} */
994
+ code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "invalid_pagination_cursor" | "precondition_failed" | "service_unavailable";
995
+ details: Record<string, never>;
996
+ message: string;
997
+ requestId: string;
998
+ };
999
+ };
1000
+ };
1001
+ };
1002
+ /** @description Invalid request or cursor. */
1003
+ 422: {
1004
+ headers: {
1005
+ [name: string]: unknown;
1006
+ };
1007
+ content: {
1008
+ "application/json": {
1009
+ error: {
1010
+ /** @enum {string} */
1011
+ code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "invalid_pagination_cursor" | "precondition_failed" | "service_unavailable";
1012
+ details: Record<string, never>;
1013
+ message: string;
1014
+ requestId: string;
1015
+ };
1016
+ };
1017
+ };
1018
+ };
1019
+ /** @description Authoritative state is unavailable. */
1020
+ 503: {
1021
+ headers: {
1022
+ [name: string]: unknown;
1023
+ };
1024
+ content: {
1025
+ "application/json": {
1026
+ error: {
1027
+ /** @enum {string} */
1028
+ code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "invalid_pagination_cursor" | "precondition_failed" | "service_unavailable";
1029
+ details: Record<string, never>;
1030
+ message: string;
1031
+ requestId: string;
1032
+ };
1033
+ };
1034
+ };
1035
+ };
1036
+ };
1037
+ };
1038
+ getItem: {
1039
+ parameters: {
1040
+ query?: never;
1041
+ header?: never;
1042
+ path: {
1043
+ workspaceId: string;
1044
+ itemId: string;
1045
+ };
295
1046
  cookie?: never;
296
1047
  };
297
1048
  requestBody?: never;
298
1049
  responses: {
299
- /** @description The exact managed workspace and canonical root selected by the Drive credential. */
1050
+ /** @description The active managed item and current published version metadata. */
300
1051
  200: {
301
1052
  headers: {
1053
+ /** @description Strong precondition for the next item mutation. */
1054
+ ETag?: string;
302
1055
  [name: string]: unknown;
303
1056
  };
304
1057
  content: {
305
1058
  "application/json": {
306
- rootItemId: string;
307
- rootVolumeId: string;
308
- workspaceId: string;
309
- workspaceReference: {
1059
+ currentVersion: {
1060
+ byteLength: number;
1061
+ mediaType: string;
310
1062
  /** @enum {string} */
311
- type: "personal";
312
- userId: string;
313
- } | {
314
- organizationId: string;
1063
+ protectionClassification: "ordinary" | "opaque-encrypted";
315
1064
  /** @enum {string} */
316
- type: "organization";
317
- };
1065
+ state: "current";
1066
+ versionId: string;
1067
+ } | null;
1068
+ itemId: string;
1069
+ /** @enum {string} */
1070
+ lifecycleState: "active";
1071
+ name: string;
1072
+ parentId: string | null;
1073
+ revision: number;
1074
+ /** @enum {string} */
1075
+ type: "file" | "folder";
1076
+ workspaceId: string;
318
1077
  };
319
1078
  };
320
1079
  };
@@ -336,7 +1095,7 @@ interface operations {
336
1095
  };
337
1096
  };
338
1097
  };
339
- /** @description Managed storage is disabled for the current workspace. */
1098
+ /** @description Managed storage is disabled for the discoverable item. */
340
1099
  403: {
341
1100
  headers: {
342
1101
  [name: string]: unknown;
@@ -354,7 +1113,7 @@ interface operations {
354
1113
  };
355
1114
  };
356
1115
  };
357
- /** @description The selected Auth workspace is not provisioned or is not available to this User. */
1116
+ /** @description The item is absent, undiscoverable, tombstoned, or unpublished. */
358
1117
  404: {
359
1118
  headers: {
360
1119
  [name: string]: unknown;
@@ -372,7 +1131,25 @@ interface operations {
372
1131
  };
373
1132
  };
374
1133
  };
375
- /** @description The request contains unsupported query input. */
1134
+ /** @description Authorization or metadata changed after preflight. */
1135
+ 409: {
1136
+ headers: {
1137
+ [name: string]: unknown;
1138
+ };
1139
+ content: {
1140
+ "application/json": {
1141
+ error: {
1142
+ /** @enum {string} */
1143
+ code: "precondition_failed";
1144
+ details: Record<string, never>;
1145
+ /** @enum {string} */
1146
+ message: "The request precondition failed.";
1147
+ requestId: string;
1148
+ };
1149
+ };
1150
+ };
1151
+ };
1152
+ /** @description The path, query, or unexpected body is invalid. */
376
1153
  422: {
377
1154
  headers: {
378
1155
  [name: string]: unknown;
@@ -390,7 +1167,7 @@ interface operations {
390
1167
  };
391
1168
  };
392
1169
  };
393
- /** @description Identity authority, D1, or the canonical managed root is unavailable. */
1170
+ /** @description Identity, D1, authorization, capacity, or managed authority is unavailable. */
394
1171
  503: {
395
1172
  headers: {
396
1173
  [name: string]: unknown;
@@ -419,47 +1196,64 @@ interface operations {
419
1196
  };
420
1197
  };
421
1198
  };
422
- getCurrentWorkspaceSources: {
1199
+ deleteItem: {
423
1200
  parameters: {
424
1201
  query?: never;
425
- header?: never;
426
- path?: never;
1202
+ header: {
1203
+ "Idempotency-Key": string;
1204
+ "If-Match": string;
1205
+ };
1206
+ path: {
1207
+ workspaceId: string;
1208
+ itemId: string;
1209
+ };
427
1210
  cookie?: never;
428
1211
  };
429
1212
  requestBody?: never;
430
1213
  responses: {
431
- /** @description One canonical managed volume. Known providers are not connections or health evidence. */
1214
+ /** @description The retained deletion result was exactly replayed. */
432
1215
  200: {
433
1216
  headers: {
1217
+ /** @description Strong precondition for the next item mutation. */
1218
+ ETag?: string;
434
1219
  [name: string]: unknown;
435
1220
  };
436
1221
  content: {
437
1222
  "application/json": {
438
- /** @enum {boolean} */
439
- externalConnectionsSupported: false;
440
- knownProviders: ("managed" | "google-drive" | "onedrive" | "dropbox" | "s3-compatible")[];
441
- volumes: {
442
- /** @enum {string} */
443
- name: "Files";
444
- /** @enum {string} */
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
- };
1223
+ itemId: string;
1224
+ /** @enum {string} */
1225
+ kind: "file" | "folder";
1226
+ name: string;
1227
+ parentItemId: string;
1228
+ purgeAfterEpochMilliseconds: number | null;
1229
+ revision: number;
1230
+ /** @enum {string} */
1231
+ state: "active" | "trashed" | "deleting";
1232
+ volumeId: string;
1233
+ workspaceId: string;
1234
+ };
1235
+ };
1236
+ };
1237
+ /** @description Deletion was retained and bounded reconciliation was attempted. */
1238
+ 202: {
1239
+ headers: {
1240
+ /** @description Strong precondition for the next item mutation. */
1241
+ ETag?: string;
1242
+ [name: string]: unknown;
1243
+ };
1244
+ content: {
1245
+ "application/json": {
1246
+ itemId: string;
1247
+ /** @enum {string} */
1248
+ kind: "file" | "folder";
1249
+ name: string;
1250
+ parentItemId: string;
1251
+ purgeAfterEpochMilliseconds: number | null;
1252
+ revision: number;
1253
+ /** @enum {string} */
1254
+ state: "active" | "trashed" | "deleting";
1255
+ volumeId: string;
1256
+ workspaceId: string;
463
1257
  };
464
1258
  };
465
1259
  };
@@ -481,7 +1275,7 @@ interface operations {
481
1275
  };
482
1276
  };
483
1277
  };
484
- /** @description Managed storage is disabled. */
1278
+ /** @description The discoverable item does not permit this lifecycle action. */
485
1279
  403: {
486
1280
  headers: {
487
1281
  [name: string]: unknown;
@@ -490,17 +1284,35 @@ interface operations {
490
1284
  "application/json": {
491
1285
  error: {
492
1286
  /** @enum {string} */
493
- code: "permission_denied";
1287
+ code: "permission_denied";
1288
+ details: Record<string, never>;
1289
+ /** @enum {string} */
1290
+ message: "The requested action is not permitted.";
1291
+ requestId: string;
1292
+ };
1293
+ };
1294
+ };
1295
+ };
1296
+ /** @description The item or destination is absent or undiscoverable. */
1297
+ 404: {
1298
+ headers: {
1299
+ [name: string]: unknown;
1300
+ };
1301
+ content: {
1302
+ "application/json": {
1303
+ error: {
1304
+ /** @enum {string} */
1305
+ code: "resource_not_found";
494
1306
  details: Record<string, never>;
495
1307
  /** @enum {string} */
496
- message: "The requested action is not permitted.";
1308
+ message: "The requested resource was not found.";
497
1309
  requestId: string;
498
1310
  };
499
1311
  };
500
1312
  };
501
1313
  };
502
- /** @description The current workspace is not provisioned or accessible. */
503
- 404: {
1314
+ /** @description The key conflicts, the precondition is stale, or lifecycle authority changed. */
1315
+ 409: {
504
1316
  headers: {
505
1317
  [name: string]: unknown;
506
1318
  };
@@ -508,16 +1320,25 @@ interface operations {
508
1320
  "application/json": {
509
1321
  error: {
510
1322
  /** @enum {string} */
511
- code: "resource_not_found";
1323
+ code: "idempotency_conflict";
512
1324
  details: Record<string, never>;
513
1325
  /** @enum {string} */
514
- message: "The requested resource was not found.";
1326
+ message: "The idempotency key conflicts with an earlier request.";
1327
+ requestId: string;
1328
+ };
1329
+ } | {
1330
+ error: {
1331
+ /** @enum {string} */
1332
+ code: "precondition_failed";
1333
+ details: Record<string, never>;
1334
+ /** @enum {string} */
1335
+ message: "The request precondition failed.";
515
1336
  requestId: string;
516
1337
  };
517
1338
  };
518
1339
  };
519
1340
  };
520
- /** @description Unsupported query input. */
1341
+ /** @description The path, query, headers, key, or strict body is invalid. */
521
1342
  422: {
522
1343
  headers: {
523
1344
  [name: string]: unknown;
@@ -532,10 +1353,19 @@ interface operations {
532
1353
  message: "The request is invalid.";
533
1354
  requestId: string;
534
1355
  };
1356
+ } | {
1357
+ error: {
1358
+ /** @enum {string} */
1359
+ code: "invalid_idempotency_key";
1360
+ details: Record<string, never>;
1361
+ /** @enum {string} */
1362
+ message: "The idempotency key is invalid.";
1363
+ requestId: string;
1364
+ };
535
1365
  };
536
1366
  };
537
1367
  };
538
- /** @description Identity authority, D1, or canonical managed root is unavailable. */
1368
+ /** @description Identity, D1, authorization, capacity, or archive authority is unavailable. */
539
1369
  503: {
540
1370
  headers: {
541
1371
  [name: string]: unknown;
@@ -564,64 +1394,52 @@ interface operations {
564
1394
  };
565
1395
  };
566
1396
  };
567
- listWorkspaceItems: {
1397
+ updateItem: {
568
1398
  parameters: {
569
- query?: {
570
- view?: "recent" | "shared" | "trash";
571
- kind?: "file" | "folder";
572
- creatorUserId?: string;
573
- limit?: number;
574
- cursor?: string;
1399
+ query?: never;
1400
+ header: {
1401
+ "Idempotency-Key": string;
1402
+ "If-Match": string;
575
1403
  };
576
- header?: never;
577
1404
  path: {
578
1405
  workspaceId: string;
1406
+ itemId: string;
579
1407
  };
580
1408
  cookie?: never;
581
1409
  };
582
- requestBody?: never;
1410
+ requestBody: {
1411
+ content: {
1412
+ "application/json": {
1413
+ name: string;
1414
+ parentItemId: string;
1415
+ };
1416
+ };
1417
+ };
583
1418
  responses: {
584
- /** @description Authorized items and an authenticated continuation; no total count. */
1419
+ /** @description The managed item was updated or exactly replayed. */
585
1420
  200: {
586
1421
  headers: {
1422
+ /** @description Strong precondition for the next item mutation. */
1423
+ ETag?: string;
587
1424
  [name: string]: unknown;
588
1425
  };
589
1426
  content: {
590
1427
  "application/json": {
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;
1428
+ itemId: string;
1429
+ /** @enum {string} */
1430
+ kind: "file" | "folder";
1431
+ name: string;
1432
+ parentItemId: string;
1433
+ purgeAfterEpochMilliseconds: number | null;
1434
+ revision: number;
1435
+ /** @enum {string} */
1436
+ state: "active" | "trashed" | "deleting";
1437
+ volumeId: string;
1438
+ workspaceId: string;
621
1439
  };
622
1440
  };
623
1441
  };
624
- /** @description Authentication required. */
1442
+ /** @description A valid Drive user bearer credential is required. */
625
1443
  401: {
626
1444
  headers: {
627
1445
  [name: string]: unknown;
@@ -630,15 +1448,16 @@ interface operations {
630
1448
  "application/json": {
631
1449
  error: {
632
1450
  /** @enum {string} */
633
- code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "invalid_pagination_cursor" | "precondition_failed" | "service_unavailable";
1451
+ code: "authentication_required";
634
1452
  details: Record<string, never>;
635
- message: string;
1453
+ /** @enum {string} */
1454
+ message: "Authentication is required.";
636
1455
  requestId: string;
637
1456
  };
638
1457
  };
639
1458
  };
640
1459
  };
641
- /** @description The action is not permitted. */
1460
+ /** @description The discoverable item does not permit this lifecycle action. */
642
1461
  403: {
643
1462
  headers: {
644
1463
  [name: string]: unknown;
@@ -647,15 +1466,16 @@ interface operations {
647
1466
  "application/json": {
648
1467
  error: {
649
1468
  /** @enum {string} */
650
- code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "invalid_pagination_cursor" | "precondition_failed" | "service_unavailable";
1469
+ code: "permission_denied";
651
1470
  details: Record<string, never>;
652
- message: string;
1471
+ /** @enum {string} */
1472
+ message: "The requested action is not permitted.";
653
1473
  requestId: string;
654
1474
  };
655
1475
  };
656
1476
  };
657
1477
  };
658
- /** @description Workspace not found. */
1478
+ /** @description The item or destination is absent or undiscoverable. */
659
1479
  404: {
660
1480
  headers: {
661
1481
  [name: string]: unknown;
@@ -664,15 +1484,16 @@ interface operations {
664
1484
  "application/json": {
665
1485
  error: {
666
1486
  /** @enum {string} */
667
- code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "invalid_pagination_cursor" | "precondition_failed" | "service_unavailable";
1487
+ code: "resource_not_found";
668
1488
  details: Record<string, never>;
669
- message: string;
1489
+ /** @enum {string} */
1490
+ message: "The requested resource was not found.";
670
1491
  requestId: string;
671
1492
  };
672
1493
  };
673
1494
  };
674
1495
  };
675
- /** @description The selected authority or page changed; restart the query. */
1496
+ /** @description The key conflicts, the precondition is stale, or lifecycle authority changed. */
676
1497
  409: {
677
1498
  headers: {
678
1499
  [name: string]: unknown;
@@ -681,15 +1502,25 @@ interface operations {
681
1502
  "application/json": {
682
1503
  error: {
683
1504
  /** @enum {string} */
684
- code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "invalid_pagination_cursor" | "precondition_failed" | "service_unavailable";
1505
+ code: "idempotency_conflict";
685
1506
  details: Record<string, never>;
686
- message: string;
1507
+ /** @enum {string} */
1508
+ message: "The idempotency key conflicts with an earlier request.";
1509
+ requestId: string;
1510
+ };
1511
+ } | {
1512
+ error: {
1513
+ /** @enum {string} */
1514
+ code: "precondition_failed";
1515
+ details: Record<string, never>;
1516
+ /** @enum {string} */
1517
+ message: "The request precondition failed.";
687
1518
  requestId: string;
688
1519
  };
689
1520
  };
690
1521
  };
691
1522
  };
692
- /** @description Invalid request or cursor. */
1523
+ /** @description The path, query, headers, key, or strict body is invalid. */
693
1524
  422: {
694
1525
  headers: {
695
1526
  [name: string]: unknown;
@@ -698,15 +1529,25 @@ interface operations {
698
1529
  "application/json": {
699
1530
  error: {
700
1531
  /** @enum {string} */
701
- code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "invalid_pagination_cursor" | "precondition_failed" | "service_unavailable";
1532
+ code: "invalid_request";
702
1533
  details: Record<string, never>;
703
- message: string;
1534
+ /** @enum {string} */
1535
+ message: "The request is invalid.";
1536
+ requestId: string;
1537
+ };
1538
+ } | {
1539
+ error: {
1540
+ /** @enum {string} */
1541
+ code: "invalid_idempotency_key";
1542
+ details: Record<string, never>;
1543
+ /** @enum {string} */
1544
+ message: "The idempotency key is invalid.";
704
1545
  requestId: string;
705
1546
  };
706
1547
  };
707
1548
  };
708
1549
  };
709
- /** @description Authoritative state is unavailable. */
1550
+ /** @description Identity, D1, authorization, capacity, or archive authority is unavailable. */
710
1551
  503: {
711
1552
  headers: {
712
1553
  [name: string]: unknown;
@@ -715,9 +1556,19 @@ interface operations {
715
1556
  "application/json": {
716
1557
  error: {
717
1558
  /** @enum {string} */
718
- code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "invalid_pagination_cursor" | "precondition_failed" | "service_unavailable";
1559
+ code: "identity_authority_unavailable";
719
1560
  details: Record<string, never>;
720
- message: string;
1561
+ /** @enum {string} */
1562
+ message: "Authentication is temporarily unavailable.";
1563
+ requestId: string;
1564
+ };
1565
+ } | {
1566
+ error: {
1567
+ /** @enum {string} */
1568
+ code: "service_unavailable";
1569
+ details: Record<string, never>;
1570
+ /** @enum {string} */
1571
+ message: "The service is temporarily unavailable.";
721
1572
  requestId: string;
722
1573
  };
723
1574
  };
@@ -725,9 +1576,12 @@ interface operations {
725
1576
  };
726
1577
  };
727
1578
  };
728
- getItem: {
1579
+ listFolderChildren: {
729
1580
  parameters: {
730
- query?: never;
1581
+ query?: {
1582
+ limit?: number;
1583
+ cursor?: string;
1584
+ };
731
1585
  header?: never;
732
1586
  path: {
733
1587
  workspaceId: string;
@@ -737,33 +1591,30 @@ interface operations {
737
1591
  };
738
1592
  requestBody?: never;
739
1593
  responses: {
740
- /** @description The active managed item and current published version metadata. */
1594
+ /** @description At most 50 active children in stable item-ID order. */
741
1595
  200: {
742
1596
  headers: {
743
- /** @description Strong precondition for the next item mutation. */
744
- ETag?: string;
745
1597
  [name: string]: unknown;
746
1598
  };
747
1599
  content: {
748
1600
  "application/json": {
749
- currentVersion: {
750
- byteLength: number;
751
- mediaType: string;
1601
+ items: {
1602
+ itemId: string;
752
1603
  /** @enum {string} */
753
- protectionClassification: "ordinary" | "opaque-encrypted";
1604
+ kind: "file" | "folder";
1605
+ /**
1606
+ * Format: finueva-safe-filename
1607
+ * @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.
1608
+ */
1609
+ name: string;
1610
+ parentItemId: string;
1611
+ revision: number;
754
1612
  /** @enum {string} */
755
- state: "current";
756
- versionId: string;
757
- } | null;
758
- itemId: string;
759
- /** @enum {string} */
760
- lifecycleState: "active";
761
- name: string;
762
- parentId: string | null;
763
- revision: number;
764
- /** @enum {string} */
765
- type: "file" | "folder";
766
- workspaceId: string;
1613
+ visibility: "workspace" | "restricted";
1614
+ volumeId: string;
1615
+ workspaceId: string;
1616
+ }[];
1617
+ nextCursor: string | null;
767
1618
  };
768
1619
  };
769
1620
  };
@@ -785,7 +1636,7 @@ interface operations {
785
1636
  };
786
1637
  };
787
1638
  };
788
- /** @description Managed storage is disabled for the discoverable item. */
1639
+ /** @description Managed storage is disabled for the canonical workspace entitlement. */
789
1640
  403: {
790
1641
  headers: {
791
1642
  [name: string]: unknown;
@@ -803,7 +1654,7 @@ interface operations {
803
1654
  };
804
1655
  };
805
1656
  };
806
- /** @description The item is absent, undiscoverable, tombstoned, or unpublished. */
1657
+ /** @description The parent is absent or undiscoverable. */
807
1658
  404: {
808
1659
  headers: {
809
1660
  [name: string]: unknown;
@@ -821,7 +1672,7 @@ interface operations {
821
1672
  };
822
1673
  };
823
1674
  };
824
- /** @description Authorization or metadata changed after preflight. */
1675
+ /** @description Folder authority changed after preflight. */
825
1676
  409: {
826
1677
  headers: {
827
1678
  [name: string]: unknown;
@@ -839,7 +1690,7 @@ interface operations {
839
1690
  };
840
1691
  };
841
1692
  };
842
- /** @description The path, query, or unexpected body is invalid. */
1693
+ /** @description The path, query, or cursor is invalid. */
843
1694
  422: {
844
1695
  headers: {
845
1696
  [name: string]: unknown;
@@ -854,10 +1705,19 @@ interface operations {
854
1705
  message: "The request is invalid.";
855
1706
  requestId: string;
856
1707
  };
1708
+ } | {
1709
+ error: {
1710
+ /** @enum {string} */
1711
+ code: "invalid_pagination_cursor";
1712
+ details: Record<string, never>;
1713
+ /** @enum {string} */
1714
+ message: "The pagination cursor is invalid.";
1715
+ requestId: string;
1716
+ };
857
1717
  };
858
1718
  };
859
1719
  };
860
- /** @description Identity, D1, authorization, capacity, or managed authority is unavailable. */
1720
+ /** @description Identity authority, D1, authorization evidence, or required cursor keys are unavailable. */
861
1721
  503: {
862
1722
  headers: {
863
1723
  [name: string]: unknown;
@@ -886,12 +1746,11 @@ interface operations {
886
1746
  };
887
1747
  };
888
1748
  };
889
- deleteItem: {
1749
+ createFolder: {
890
1750
  parameters: {
891
1751
  query?: never;
892
1752
  header: {
893
1753
  "Idempotency-Key": string;
894
- "If-Match": string;
895
1754
  };
896
1755
  path: {
897
1756
  workspaceId: string;
@@ -899,13 +1758,21 @@ interface operations {
899
1758
  };
900
1759
  cookie?: never;
901
1760
  };
902
- requestBody?: never;
1761
+ requestBody: {
1762
+ content: {
1763
+ "application/json": {
1764
+ /**
1765
+ * Format: finueva-safe-filename
1766
+ * @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.
1767
+ */
1768
+ name: string;
1769
+ };
1770
+ };
1771
+ };
903
1772
  responses: {
904
- /** @description The retained deletion result was exactly replayed. */
1773
+ /** @description The exact committed folder is replayed. */
905
1774
  200: {
906
1775
  headers: {
907
- /** @description Strong precondition for the next item mutation. */
908
- ETag?: string;
909
1776
  [name: string]: unknown;
910
1777
  };
911
1778
  content: {
@@ -913,22 +1780,23 @@ interface operations {
913
1780
  itemId: string;
914
1781
  /** @enum {string} */
915
1782
  kind: "file" | "folder";
1783
+ /**
1784
+ * Format: finueva-safe-filename
1785
+ * @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.
1786
+ */
916
1787
  name: string;
917
1788
  parentItemId: string;
918
- purgeAfterEpochMilliseconds: number | null;
919
1789
  revision: number;
920
1790
  /** @enum {string} */
921
- state: "active" | "trashed" | "deleting";
1791
+ visibility: "workspace" | "restricted";
922
1792
  volumeId: string;
923
1793
  workspaceId: string;
924
1794
  };
925
1795
  };
926
1796
  };
927
- /** @description Deletion was retained and bounded reconciliation was attempted. */
928
- 202: {
1797
+ /** @description The folder is committed. */
1798
+ 201: {
929
1799
  headers: {
930
- /** @description Strong precondition for the next item mutation. */
931
- ETag?: string;
932
1800
  [name: string]: unknown;
933
1801
  };
934
1802
  content: {
@@ -936,12 +1804,15 @@ interface operations {
936
1804
  itemId: string;
937
1805
  /** @enum {string} */
938
1806
  kind: "file" | "folder";
1807
+ /**
1808
+ * Format: finueva-safe-filename
1809
+ * @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.
1810
+ */
939
1811
  name: string;
940
1812
  parentItemId: string;
941
- purgeAfterEpochMilliseconds: number | null;
942
1813
  revision: number;
943
1814
  /** @enum {string} */
944
- state: "active" | "trashed" | "deleting";
1815
+ visibility: "workspace" | "restricted";
945
1816
  volumeId: string;
946
1817
  workspaceId: string;
947
1818
  };
@@ -965,7 +1836,7 @@ interface operations {
965
1836
  };
966
1837
  };
967
1838
  };
968
- /** @description The discoverable item does not permit this lifecycle action. */
1839
+ /** @description The discoverable parent does not permit folder creation. */
969
1840
  403: {
970
1841
  headers: {
971
1842
  [name: string]: unknown;
@@ -983,7 +1854,7 @@ interface operations {
983
1854
  };
984
1855
  };
985
1856
  };
986
- /** @description The item or destination is absent or undiscoverable. */
1857
+ /** @description The parent is absent or undiscoverable. */
987
1858
  404: {
988
1859
  headers: {
989
1860
  [name: string]: unknown;
@@ -1001,7 +1872,7 @@ interface operations {
1001
1872
  };
1002
1873
  };
1003
1874
  };
1004
- /** @description The key conflicts, the precondition is stale, or lifecycle authority changed. */
1875
+ /** @description The idempotency key conflicts or folder authority changed after preflight. */
1005
1876
  409: {
1006
1877
  headers: {
1007
1878
  [name: string]: unknown;
@@ -1028,7 +1899,7 @@ interface operations {
1028
1899
  };
1029
1900
  };
1030
1901
  };
1031
- /** @description The path, query, headers, key, or strict body is invalid. */
1902
+ /** @description The path, idempotency key, body, or name is invalid. */
1032
1903
  422: {
1033
1904
  headers: {
1034
1905
  [name: string]: unknown;
@@ -1055,7 +1926,7 @@ interface operations {
1055
1926
  };
1056
1927
  };
1057
1928
  };
1058
- /** @description Identity, D1, authorization, capacity, or archive authority is unavailable. */
1929
+ /** @description Identity authority, D1, authorization evidence, or trusted capacity evidence is unavailable. */
1059
1930
  503: {
1060
1931
  headers: {
1061
1932
  [name: string]: unknown;
@@ -1084,12 +1955,18 @@ interface operations {
1084
1955
  };
1085
1956
  };
1086
1957
  };
1087
- updateItem: {
1958
+ createDownload: {
1088
1959
  parameters: {
1089
- query?: never;
1960
+ query?: {
1961
+ versionId?: string;
1962
+ };
1090
1963
  header: {
1091
1964
  "Idempotency-Key": string;
1092
- "If-Match": string;
1965
+ "Download-Method"?: string;
1966
+ Range?: string;
1967
+ "If-Match"?: string;
1968
+ "If-None-Match"?: string;
1969
+ "If-Range"?: string;
1093
1970
  };
1094
1971
  path: {
1095
1972
  workspaceId: string;
@@ -1097,38 +1974,64 @@ interface operations {
1097
1974
  };
1098
1975
  cookie?: never;
1099
1976
  };
1100
- requestBody: {
1101
- content: {
1102
- "application/json": {
1103
- name: string;
1104
- parentItemId: string;
1105
- };
1106
- };
1107
- };
1977
+ requestBody?: never;
1108
1978
  responses: {
1109
- /** @description The managed item was updated or exactly replayed. */
1979
+ /** @description A short-lived immutable archive capability. */
1110
1980
  200: {
1111
1981
  headers: {
1112
- /** @description Strong precondition for the next item mutation. */
1113
- ETag?: string;
1114
1982
  [name: string]: unknown;
1115
1983
  };
1116
1984
  content: {
1117
1985
  "application/json": {
1118
- itemId: string;
1986
+ expiresAtEpochMilliseconds: number;
1987
+ headers: {
1988
+ [key: string]: string;
1989
+ };
1119
1990
  /** @enum {string} */
1120
- kind: "file" | "folder";
1121
- name: string;
1122
- parentItemId: string;
1123
- purgeAfterEpochMilliseconds: number | null;
1124
- revision: number;
1991
+ method: "GET" | "HEAD";
1125
1992
  /** @enum {string} */
1126
- state: "active" | "trashed" | "deleting";
1127
- volumeId: string;
1128
- workspaceId: string;
1993
+ mode: "presigned-single";
1994
+ response: {
1995
+ /** @enum {string} */
1996
+ acceptRanges: "bytes";
1997
+ byteLength: number;
1998
+ contentDisposition: string;
1999
+ contentLength: number;
2000
+ contentRange: string | null;
2001
+ contentType: string;
2002
+ etag: string;
2003
+ status: 200 | 206;
2004
+ versionId: string;
2005
+ };
2006
+ /** Format: uri */
2007
+ url: string;
2008
+ };
2009
+ };
2010
+ };
2011
+ /** @description One idempotent cold archive retrieval operation. */
2012
+ 202: {
2013
+ headers: {
2014
+ [name: string]: unknown;
2015
+ };
2016
+ content: {
2017
+ "application/json": {
2018
+ /** @enum {string} */
2019
+ mode: "restore-pending";
2020
+ operationId: string;
2021
+ pollAfterSeconds: number;
2022
+ /** @enum {string} */
2023
+ state: "pending" | "restoring";
2024
+ versionId: string;
1129
2025
  };
1130
2026
  };
1131
2027
  };
2028
+ /** @description The selected immutable representation is not modified. */
2029
+ 304: {
2030
+ headers: {
2031
+ [name: string]: unknown;
2032
+ };
2033
+ content?: never;
2034
+ };
1132
2035
  /** @description A valid Drive user bearer credential is required. */
1133
2036
  401: {
1134
2037
  headers: {
@@ -1140,14 +2043,13 @@ interface operations {
1140
2043
  /** @enum {string} */
1141
2044
  code: "authentication_required";
1142
2045
  details: Record<string, never>;
1143
- /** @enum {string} */
1144
- message: "Authentication is required.";
2046
+ message: string;
1145
2047
  requestId: string;
1146
2048
  };
1147
2049
  };
1148
2050
  };
1149
2051
  };
1150
- /** @description The discoverable item does not permit this lifecycle action. */
2052
+ /** @description The visible file cannot be downloaded under current authority. */
1151
2053
  403: {
1152
2054
  headers: {
1153
2055
  [name: string]: unknown;
@@ -1158,14 +2060,13 @@ interface operations {
1158
2060
  /** @enum {string} */
1159
2061
  code: "permission_denied";
1160
2062
  details: Record<string, never>;
1161
- /** @enum {string} */
1162
- message: "The requested action is not permitted.";
2063
+ message: string;
1163
2064
  requestId: string;
1164
2065
  };
1165
2066
  };
1166
2067
  };
1167
2068
  };
1168
- /** @description The item or destination is absent or undiscoverable. */
2069
+ /** @description The file or selected version is absent or undiscoverable. */
1169
2070
  404: {
1170
2071
  headers: {
1171
2072
  [name: string]: unknown;
@@ -1176,14 +2077,13 @@ interface operations {
1176
2077
  /** @enum {string} */
1177
2078
  code: "resource_not_found";
1178
2079
  details: Record<string, never>;
1179
- /** @enum {string} */
1180
- message: "The requested resource was not found.";
2080
+ message: string;
1181
2081
  requestId: string;
1182
2082
  };
1183
2083
  };
1184
2084
  };
1185
2085
  };
1186
- /** @description The key conflicts, the precondition is stale, or lifecycle authority changed. */
2086
+ /** @description The retrieval key conflicts or immutable authority changed after preflight. */
1187
2087
  409: {
1188
2088
  headers: {
1189
2089
  [name: string]: unknown;
@@ -1194,8 +2094,7 @@ interface operations {
1194
2094
  /** @enum {string} */
1195
2095
  code: "idempotency_conflict";
1196
2096
  details: Record<string, never>;
1197
- /** @enum {string} */
1198
- message: "The idempotency key conflicts with an earlier request.";
2097
+ message: string;
1199
2098
  requestId: string;
1200
2099
  };
1201
2100
  } | {
@@ -1203,15 +2102,14 @@ interface operations {
1203
2102
  /** @enum {string} */
1204
2103
  code: "precondition_failed";
1205
2104
  details: Record<string, never>;
1206
- /** @enum {string} */
1207
- message: "The request precondition failed.";
2105
+ message: string;
1208
2106
  requestId: string;
1209
2107
  };
1210
2108
  };
1211
2109
  };
1212
2110
  };
1213
- /** @description The path, query, headers, key, or strict body is invalid. */
1214
- 422: {
2111
+ /** @description A content entity-tag precondition failed. */
2112
+ 412: {
1215
2113
  headers: {
1216
2114
  [name: string]: unknown;
1217
2115
  };
@@ -1219,19 +2117,43 @@ interface operations {
1219
2117
  "application/json": {
1220
2118
  error: {
1221
2119
  /** @enum {string} */
1222
- code: "invalid_request";
2120
+ code: "precondition_failed";
1223
2121
  details: Record<string, never>;
1224
- /** @enum {string} */
1225
- message: "The request is invalid.";
2122
+ message: string;
1226
2123
  requestId: string;
1227
2124
  };
1228
- } | {
2125
+ };
2126
+ };
2127
+ };
2128
+ /** @description The valid single range does not overlap the representation. */
2129
+ 416: {
2130
+ headers: {
2131
+ [name: string]: unknown;
2132
+ };
2133
+ content: {
2134
+ "application/json": {
1229
2135
  error: {
1230
2136
  /** @enum {string} */
1231
- code: "invalid_idempotency_key";
2137
+ code: "range_not_satisfiable";
1232
2138
  details: Record<string, never>;
2139
+ message: string;
2140
+ requestId: string;
2141
+ };
2142
+ };
2143
+ };
2144
+ };
2145
+ /** @description The path, query, headers, or unexpected body is invalid. */
2146
+ 422: {
2147
+ headers: {
2148
+ [name: string]: unknown;
2149
+ };
2150
+ content: {
2151
+ "application/json": {
2152
+ error: {
1233
2153
  /** @enum {string} */
1234
- message: "The idempotency key is invalid.";
2154
+ code: "invalid_request";
2155
+ details: Record<string, never>;
2156
+ message: string;
1235
2157
  requestId: string;
1236
2158
  };
1237
2159
  };
@@ -1248,8 +2170,7 @@ interface operations {
1248
2170
  /** @enum {string} */
1249
2171
  code: "identity_authority_unavailable";
1250
2172
  details: Record<string, never>;
1251
- /** @enum {string} */
1252
- message: "Authentication is temporarily unavailable.";
2173
+ message: string;
1253
2174
  requestId: string;
1254
2175
  };
1255
2176
  } | {
@@ -1257,8 +2178,7 @@ interface operations {
1257
2178
  /** @enum {string} */
1258
2179
  code: "service_unavailable";
1259
2180
  details: Record<string, never>;
1260
- /** @enum {string} */
1261
- message: "The service is temporarily unavailable.";
2181
+ message: string;
1262
2182
  requestId: string;
1263
2183
  };
1264
2184
  };
@@ -1266,7 +2186,7 @@ interface operations {
1266
2186
  };
1267
2187
  };
1268
2188
  };
1269
- listFolderChildren: {
2189
+ listItemPermissions: {
1270
2190
  parameters: {
1271
2191
  query?: {
1272
2192
  limit?: number;
@@ -1281,28 +2201,39 @@ interface operations {
1281
2201
  };
1282
2202
  requestBody?: never;
1283
2203
  responses: {
1284
- /** @description At most 50 active children in stable item-ID order. */
2204
+ /** @description A stable permission page. */
1285
2205
  200: {
1286
2206
  headers: {
2207
+ /** @description Current direct collection precondition for POST on this item. */
2208
+ "Drive-Permission-Collection-ETag"?: string;
2209
+ /** @description Strong validator for the exact returned permission-list representation. */
2210
+ ETag?: string;
1287
2211
  [name: string]: unknown;
1288
2212
  };
1289
2213
  content: {
1290
2214
  "application/json": {
2215
+ collectionEtag: string;
2216
+ collectionRevision: number;
1291
2217
  items: {
1292
- itemId: string;
2218
+ actions: ("items:content:read" | "items:create" | "items:delete" | "items:metadata:read" | "items:permissions:read" | "items:update")[];
1293
2219
  /** @enum {string} */
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;
2220
+ availability: "active" | "expired" | "revoked";
2221
+ etag: string;
2222
+ expiresAtEpochMilliseconds: number | null;
2223
+ grantId: string;
2224
+ grantee: {
2225
+ /** @enum {string} */
2226
+ type: "user";
2227
+ userId: string;
2228
+ } | {
2229
+ teamId: string;
2230
+ /** @enum {string} */
2231
+ type: "team";
2232
+ };
1301
2233
  revision: number;
1302
2234
  /** @enum {string} */
1303
- visibility: "workspace" | "restricted";
1304
- volumeId: string;
1305
- workspaceId: string;
2235
+ source: "direct" | "inherited";
2236
+ sourceItemId: string;
1306
2237
  }[];
1307
2238
  nextCursor: string | null;
1308
2239
  };
@@ -1326,7 +2257,7 @@ interface operations {
1326
2257
  };
1327
2258
  };
1328
2259
  };
1329
- /** @description Managed storage is disabled for the canonical workspace entitlement. */
2260
+ /** @description The discoverable item does not permit this permission operation. */
1330
2261
  403: {
1331
2262
  headers: {
1332
2263
  [name: string]: unknown;
@@ -1344,7 +2275,7 @@ interface operations {
1344
2275
  };
1345
2276
  };
1346
2277
  };
1347
- /** @description The parent is absent or undiscoverable. */
2278
+ /** @description The item, principal, or direct grant is absent or undiscoverable. */
1348
2279
  404: {
1349
2280
  headers: {
1350
2281
  [name: string]: unknown;
@@ -1362,8 +2293,8 @@ interface operations {
1362
2293
  };
1363
2294
  };
1364
2295
  };
1365
- /** @description Folder authority changed after preflight. */
1366
- 409: {
2296
+ /** @description The supplied revision or post-preflight authority is stale. */
2297
+ 412: {
1367
2298
  headers: {
1368
2299
  [name: string]: unknown;
1369
2300
  };
@@ -1380,7 +2311,7 @@ interface operations {
1380
2311
  };
1381
2312
  };
1382
2313
  };
1383
- /** @description The path, query, or cursor is invalid. */
2314
+ /** @description The path, query, headers, or pagination cursor are invalid. */
1384
2315
  422: {
1385
2316
  headers: {
1386
2317
  [name: string]: unknown;
@@ -1407,7 +2338,7 @@ interface operations {
1407
2338
  };
1408
2339
  };
1409
2340
  };
1410
- /** @description Identity authority, D1, authorization evidence, or required cursor keys are unavailable. */
2341
+ /** @description Identity, D1, authorization, audit, cursor, or capacity authority is unavailable. */
1411
2342
  503: {
1412
2343
  headers: {
1413
2344
  [name: string]: unknown;
@@ -1436,11 +2367,12 @@ interface operations {
1436
2367
  };
1437
2368
  };
1438
2369
  };
1439
- createFolder: {
2370
+ createItemPermission: {
1440
2371
  parameters: {
1441
2372
  query?: never;
1442
2373
  header: {
1443
2374
  "Idempotency-Key": string;
2375
+ "If-Match": string;
1444
2376
  };
1445
2377
  path: {
1446
2378
  workspaceId: string;
@@ -1451,60 +2383,92 @@ interface operations {
1451
2383
  requestBody: {
1452
2384
  content: {
1453
2385
  "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;
2386
+ actions: ("items:content:read" | "items:create" | "items:delete" | "items:metadata:read" | "items:permissions:read" | "items:update")[];
2387
+ expiresAtEpochMilliseconds: number | null;
2388
+ grantee: {
2389
+ /** @enum {string} */
2390
+ type: "user";
2391
+ userId: string;
2392
+ } | {
2393
+ teamId: string;
2394
+ /** @enum {string} */
2395
+ type: "team";
2396
+ };
1459
2397
  };
1460
2398
  };
1461
2399
  };
1462
2400
  responses: {
1463
- /** @description The exact committed folder is replayed. */
2401
+ /** @description The exact committed result was replayed. */
1464
2402
  200: {
1465
2403
  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;
2404
+ /** @description Current direct collection precondition for the next POST. */
2405
+ "Drive-Permission-Collection-ETag"?: string;
2406
+ /** @description Current direct-grant precondition for PATCH or DELETE; omitted when the current row is not mutable. */
2407
+ "Drive-Permission-Grant-ETag"?: string;
2408
+ [name: string]: unknown;
2409
+ };
2410
+ content: {
2411
+ "application/json": {
2412
+ collectionRevision: number;
2413
+ grant: {
2414
+ actions: ("items:content:read" | "items:create" | "items:delete" | "items:metadata:read" | "items:permissions:read" | "items:update")[];
2415
+ /** @enum {string} */
2416
+ availability: "active" | "expired" | "revoked";
2417
+ expiresAtEpochMilliseconds: number | null;
2418
+ grantId: string;
2419
+ grantee: {
2420
+ /** @enum {string} */
2421
+ type: "user";
2422
+ userId: string;
2423
+ } | {
2424
+ teamId: string;
2425
+ /** @enum {string} */
2426
+ type: "team";
2427
+ };
2428
+ revision: number;
2429
+ /** @enum {string} */
2430
+ source: "direct";
2431
+ sourceItemId: string;
2432
+ };
1480
2433
  /** @enum {string} */
1481
- visibility: "workspace" | "restricted";
1482
- volumeId: string;
1483
- workspaceId: string;
2434
+ outcome: "committed" | "replayed";
1484
2435
  };
1485
2436
  };
1486
2437
  };
1487
- /** @description The folder is committed. */
2438
+ /** @description The direct grant was committed. */
1488
2439
  201: {
1489
2440
  headers: {
2441
+ /** @description Current direct collection precondition for the next POST. */
2442
+ "Drive-Permission-Collection-ETag"?: string;
2443
+ /** @description Current direct-grant precondition for PATCH or DELETE; omitted when the current row is not mutable. */
2444
+ "Drive-Permission-Grant-ETag"?: string;
1490
2445
  [name: string]: unknown;
1491
2446
  };
1492
2447
  content: {
1493
2448
  "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;
2449
+ collectionRevision: number;
2450
+ grant: {
2451
+ actions: ("items:content:read" | "items:create" | "items:delete" | "items:metadata:read" | "items:permissions:read" | "items:update")[];
2452
+ /** @enum {string} */
2453
+ availability: "active" | "expired" | "revoked";
2454
+ expiresAtEpochMilliseconds: number | null;
2455
+ grantId: string;
2456
+ grantee: {
2457
+ /** @enum {string} */
2458
+ type: "user";
2459
+ userId: string;
2460
+ } | {
2461
+ teamId: string;
2462
+ /** @enum {string} */
2463
+ type: "team";
2464
+ };
2465
+ revision: number;
2466
+ /** @enum {string} */
2467
+ source: "direct";
2468
+ sourceItemId: string;
2469
+ };
1504
2470
  /** @enum {string} */
1505
- visibility: "workspace" | "restricted";
1506
- volumeId: string;
1507
- workspaceId: string;
2471
+ outcome: "committed" | "replayed";
1508
2472
  };
1509
2473
  };
1510
2474
  };
@@ -1526,7 +2490,7 @@ interface operations {
1526
2490
  };
1527
2491
  };
1528
2492
  };
1529
- /** @description The discoverable parent does not permit folder creation. */
2493
+ /** @description The discoverable item does not permit this permission operation. */
1530
2494
  403: {
1531
2495
  headers: {
1532
2496
  [name: string]: unknown;
@@ -1544,7 +2508,7 @@ interface operations {
1544
2508
  };
1545
2509
  };
1546
2510
  };
1547
- /** @description The parent is absent or undiscoverable. */
2511
+ /** @description The item, principal, or direct grant is absent or undiscoverable. */
1548
2512
  404: {
1549
2513
  headers: {
1550
2514
  [name: string]: unknown;
@@ -1562,7 +2526,7 @@ interface operations {
1562
2526
  };
1563
2527
  };
1564
2528
  };
1565
- /** @description The idempotency key conflicts or folder authority changed after preflight. */
2529
+ /** @description The idempotency key was reused for a different semantic request. */
1566
2530
  409: {
1567
2531
  headers: {
1568
2532
  [name: string]: unknown;
@@ -1577,7 +2541,16 @@ interface operations {
1577
2541
  message: "The idempotency key conflicts with an earlier request.";
1578
2542
  requestId: string;
1579
2543
  };
1580
- } | {
2544
+ };
2545
+ };
2546
+ };
2547
+ /** @description The supplied revision or post-preflight authority is stale. */
2548
+ 412: {
2549
+ headers: {
2550
+ [name: string]: unknown;
2551
+ };
2552
+ content: {
2553
+ "application/json": {
1581
2554
  error: {
1582
2555
  /** @enum {string} */
1583
2556
  code: "precondition_failed";
@@ -1589,7 +2562,7 @@ interface operations {
1589
2562
  };
1590
2563
  };
1591
2564
  };
1592
- /** @description The path, idempotency key, body, or name is invalid. */
2565
+ /** @description The path, query, headers, idempotency key, or body are invalid. */
1593
2566
  422: {
1594
2567
  headers: {
1595
2568
  [name: string]: unknown;
@@ -1616,7 +2589,7 @@ interface operations {
1616
2589
  };
1617
2590
  };
1618
2591
  };
1619
- /** @description Identity authority, D1, authorization evidence, or trusted capacity evidence is unavailable. */
2592
+ /** @description Identity, D1, authorization, audit, cursor, or capacity authority is unavailable. */
1620
2593
  503: {
1621
2594
  headers: {
1622
2595
  [name: string]: unknown;
@@ -1645,19 +2618,10 @@ interface operations {
1645
2618
  };
1646
2619
  };
1647
2620
  };
1648
- createDownload: {
2621
+ readEffectiveItemPermissions: {
1649
2622
  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
- };
2623
+ query?: never;
2624
+ header?: never;
1661
2625
  path: {
1662
2626
  workspaceId: string;
1663
2627
  itemId: string;
@@ -1666,62 +2630,25 @@ interface operations {
1666
2630
  };
1667
2631
  requestBody?: never;
1668
2632
  responses: {
1669
- /** @description A short-lived immutable archive capability. */
2633
+ /** @description All seven caller-specific item actions. */
1670
2634
  200: {
1671
2635
  headers: {
1672
2636
  [name: string]: unknown;
1673
2637
  };
1674
2638
  content: {
1675
2639
  "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: {
2640
+ actions: {
1685
2641
  /** @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} */
1709
- mode: "restore-pending";
1710
- operationId: string;
1711
- pollAfterSeconds: number;
1712
- /** @enum {string} */
1713
- state: "pending" | "restoring";
1714
- versionId: string;
2642
+ action: "items:content:read" | "items:create" | "items:delete" | "items:metadata:read" | "items:permissions:manage" | "items:permissions:read" | "items:update";
2643
+ allowed: boolean;
2644
+ /** @enum {string|null} */
2645
+ basis: "workspace_visibility" | "restricted_administrator_bypass" | "direct_grant" | "inherited_grant" | null;
2646
+ grantId: string | null;
2647
+ sourceItemId: string | null;
2648
+ }[] & (unknown & unknown & unknown & unknown & unknown & unknown & unknown);
1715
2649
  };
1716
2650
  };
1717
2651
  };
1718
- /** @description The selected immutable representation is not modified. */
1719
- 304: {
1720
- headers: {
1721
- [name: string]: unknown;
1722
- };
1723
- content?: never;
1724
- };
1725
2652
  /** @description A valid Drive user bearer credential is required. */
1726
2653
  401: {
1727
2654
  headers: {
@@ -1733,13 +2660,14 @@ interface operations {
1733
2660
  /** @enum {string} */
1734
2661
  code: "authentication_required";
1735
2662
  details: Record<string, never>;
1736
- message: string;
2663
+ /** @enum {string} */
2664
+ message: "Authentication is required.";
1737
2665
  requestId: string;
1738
2666
  };
1739
2667
  };
1740
2668
  };
1741
2669
  };
1742
- /** @description The visible file cannot be downloaded under current authority. */
2670
+ /** @description The discoverable item does not permit this permission operation. */
1743
2671
  403: {
1744
2672
  headers: {
1745
2673
  [name: string]: unknown;
@@ -1750,13 +2678,14 @@ interface operations {
1750
2678
  /** @enum {string} */
1751
2679
  code: "permission_denied";
1752
2680
  details: Record<string, never>;
1753
- message: string;
2681
+ /** @enum {string} */
2682
+ message: "The requested action is not permitted.";
1754
2683
  requestId: string;
1755
2684
  };
1756
2685
  };
1757
2686
  };
1758
2687
  };
1759
- /** @description The file or selected version is absent or undiscoverable. */
2688
+ /** @description The item, principal, or direct grant is absent or undiscoverable. */
1760
2689
  404: {
1761
2690
  headers: {
1762
2691
  [name: string]: unknown;
@@ -1767,38 +2696,14 @@ interface operations {
1767
2696
  /** @enum {string} */
1768
2697
  code: "resource_not_found";
1769
2698
  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
2699
  /** @enum {string} */
1793
- code: "precondition_failed";
1794
- details: Record<string, never>;
1795
- message: string;
2700
+ message: "The requested resource was not found.";
1796
2701
  requestId: string;
1797
2702
  };
1798
2703
  };
1799
2704
  };
1800
2705
  };
1801
- /** @description A content entity-tag precondition failed. */
2706
+ /** @description The supplied revision or post-preflight authority is stale. */
1802
2707
  412: {
1803
2708
  headers: {
1804
2709
  [name: string]: unknown;
@@ -1809,30 +2714,14 @@ interface operations {
1809
2714
  /** @enum {string} */
1810
2715
  code: "precondition_failed";
1811
2716
  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
2717
  /** @enum {string} */
1827
- code: "range_not_satisfiable";
1828
- details: Record<string, never>;
1829
- message: string;
2718
+ message: "The request precondition failed.";
1830
2719
  requestId: string;
1831
2720
  };
1832
2721
  };
1833
2722
  };
1834
2723
  };
1835
- /** @description The path, query, headers, or unexpected body is invalid. */
2724
+ /** @description The path, query, headers, or body are invalid. */
1836
2725
  422: {
1837
2726
  headers: {
1838
2727
  [name: string]: unknown;
@@ -1843,13 +2732,14 @@ interface operations {
1843
2732
  /** @enum {string} */
1844
2733
  code: "invalid_request";
1845
2734
  details: Record<string, never>;
1846
- message: string;
2735
+ /** @enum {string} */
2736
+ message: "The request is invalid.";
1847
2737
  requestId: string;
1848
2738
  };
1849
2739
  };
1850
2740
  };
1851
2741
  };
1852
- /** @description Identity, D1, authorization, capacity, or archive authority is unavailable. */
2742
+ /** @description Identity, D1, authorization, audit, cursor, or capacity authority is unavailable. */
1853
2743
  503: {
1854
2744
  headers: {
1855
2745
  [name: string]: unknown;
@@ -1860,7 +2750,8 @@ interface operations {
1860
2750
  /** @enum {string} */
1861
2751
  code: "identity_authority_unavailable";
1862
2752
  details: Record<string, never>;
1863
- message: string;
2753
+ /** @enum {string} */
2754
+ message: "Authentication is temporarily unavailable.";
1864
2755
  requestId: string;
1865
2756
  };
1866
2757
  } | {
@@ -1868,7 +2759,8 @@ interface operations {
1868
2759
  /** @enum {string} */
1869
2760
  code: "service_unavailable";
1870
2761
  details: Record<string, never>;
1871
- message: string;
2762
+ /** @enum {string} */
2763
+ message: "The service is temporarily unavailable.";
1872
2764
  requestId: string;
1873
2765
  };
1874
2766
  };
@@ -1876,39 +2768,36 @@ interface operations {
1876
2768
  };
1877
2769
  };
1878
2770
  };
1879
- listItemPermissions: {
2771
+ revokeItemPermission: {
1880
2772
  parameters: {
1881
- query?: {
1882
- limit?: number;
1883
- cursor?: string;
2773
+ query?: never;
2774
+ header: {
2775
+ "Idempotency-Key": string;
2776
+ "If-Match": string;
1884
2777
  };
1885
- header?: never;
1886
2778
  path: {
1887
2779
  workspaceId: string;
1888
2780
  itemId: string;
2781
+ grantId: string;
1889
2782
  };
1890
2783
  cookie?: never;
1891
2784
  };
1892
2785
  requestBody?: never;
1893
2786
  responses: {
1894
- /** @description A stable permission page. */
2787
+ /** @description The retained revoked grant was committed, replayed, or unchanged. */
1895
2788
  200: {
1896
2789
  headers: {
1897
- /** @description Current direct collection precondition for POST on this item. */
2790
+ /** @description Current direct collection precondition for POST. */
1898
2791
  "Drive-Permission-Collection-ETag"?: string;
1899
- /** @description Strong validator for the exact returned permission-list representation. */
1900
- ETag?: string;
1901
2792
  [name: string]: unknown;
1902
2793
  };
1903
2794
  content: {
1904
2795
  "application/json": {
1905
- collectionEtag: string;
1906
2796
  collectionRevision: number;
1907
- items: {
2797
+ grant: {
1908
2798
  actions: ("items:content:read" | "items:create" | "items:delete" | "items:metadata:read" | "items:permissions:read" | "items:update")[];
1909
2799
  /** @enum {string} */
1910
2800
  availability: "active" | "expired" | "revoked";
1911
- etag: string;
1912
2801
  expiresAtEpochMilliseconds: number | null;
1913
2802
  grantId: string;
1914
2803
  grantee: {
@@ -1922,10 +2811,11 @@ interface operations {
1922
2811
  };
1923
2812
  revision: number;
1924
2813
  /** @enum {string} */
1925
- source: "direct" | "inherited";
2814
+ source: "direct";
1926
2815
  sourceItemId: string;
1927
- }[];
1928
- nextCursor: string | null;
2816
+ };
2817
+ /** @enum {string} */
2818
+ outcome: "committed" | "replayed";
1929
2819
  };
1930
2820
  };
1931
2821
  };
@@ -1983,6 +2873,24 @@ interface operations {
1983
2873
  };
1984
2874
  };
1985
2875
  };
2876
+ /** @description The idempotency key was reused for a different semantic request. */
2877
+ 409: {
2878
+ headers: {
2879
+ [name: string]: unknown;
2880
+ };
2881
+ content: {
2882
+ "application/json": {
2883
+ error: {
2884
+ /** @enum {string} */
2885
+ code: "idempotency_conflict";
2886
+ details: Record<string, never>;
2887
+ /** @enum {string} */
2888
+ message: "The idempotency key conflicts with an earlier request.";
2889
+ requestId: string;
2890
+ };
2891
+ };
2892
+ };
2893
+ };
1986
2894
  /** @description The supplied revision or post-preflight authority is stale. */
1987
2895
  412: {
1988
2896
  headers: {
@@ -2001,7 +2909,7 @@ interface operations {
2001
2909
  };
2002
2910
  };
2003
2911
  };
2004
- /** @description The path, query, headers, or pagination cursor are invalid. */
2912
+ /** @description The path, query, headers, idempotency key, or body are invalid. */
2005
2913
  422: {
2006
2914
  headers: {
2007
2915
  [name: string]: unknown;
@@ -2019,10 +2927,10 @@ interface operations {
2019
2927
  } | {
2020
2928
  error: {
2021
2929
  /** @enum {string} */
2022
- code: "invalid_pagination_cursor";
2930
+ code: "invalid_idempotency_key";
2023
2931
  details: Record<string, never>;
2024
2932
  /** @enum {string} */
2025
- message: "The pagination cursor is invalid.";
2933
+ message: "The idempotency key is invalid.";
2026
2934
  requestId: string;
2027
2935
  };
2028
2936
  };
@@ -2057,7 +2965,7 @@ interface operations {
2057
2965
  };
2058
2966
  };
2059
2967
  };
2060
- createItemPermission: {
2968
+ updateItemPermission: {
2061
2969
  parameters: {
2062
2970
  query?: never;
2063
2971
  header: {
@@ -2067,70 +2975,25 @@ interface operations {
2067
2975
  path: {
2068
2976
  workspaceId: string;
2069
2977
  itemId: string;
2978
+ grantId: string;
2070
2979
  };
2071
2980
  cookie?: never;
2072
2981
  };
2073
2982
  requestBody: {
2074
2983
  content: {
2075
2984
  "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";
2086
- };
2985
+ actions?: ("items:content:read" | "items:create" | "items:delete" | "items:metadata:read" | "items:permissions:read" | "items:update")[];
2986
+ expiresAtEpochMilliseconds?: number | null;
2087
2987
  };
2088
2988
  };
2089
2989
  };
2090
2990
  responses: {
2091
- /** @description The exact committed result was replayed. */
2991
+ /** @description The direct grant was committed or replayed. */
2092
2992
  200: {
2093
2993
  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;
2098
- [name: string]: unknown;
2099
- };
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. */
2994
+ /** @description Current direct collection precondition for POST. */
2132
2995
  "Drive-Permission-Collection-ETag"?: string;
2133
- /** @description Current direct-grant precondition for PATCH or DELETE; omitted when the current row is not mutable. */
2996
+ /** @description Current direct-grant precondition for the next PATCH or DELETE; omitted when the current row is not mutable. */
2134
2997
  "Drive-Permission-Grant-ETag"?: string;
2135
2998
  [name: string]: unknown;
2136
2999
  };
@@ -2308,10 +3171,13 @@ interface operations {
2308
3171
  };
2309
3172
  };
2310
3173
  };
2311
- readEffectiveItemPermissions: {
3174
+ restoreItem: {
2312
3175
  parameters: {
2313
3176
  query?: never;
2314
- header?: never;
3177
+ header: {
3178
+ "Idempotency-Key": string;
3179
+ "If-Match": string;
3180
+ };
2315
3181
  path: {
2316
3182
  workspaceId: string;
2317
3183
  itemId: string;
@@ -2320,22 +3186,26 @@ interface operations {
2320
3186
  };
2321
3187
  requestBody?: never;
2322
3188
  responses: {
2323
- /** @description All seven caller-specific item actions. */
3189
+ /** @description The managed item was restored or exactly replayed. */
2324
3190
  200: {
2325
3191
  headers: {
3192
+ /** @description Strong precondition for the next item mutation. */
3193
+ ETag?: string;
2326
3194
  [name: string]: unknown;
2327
3195
  };
2328
3196
  content: {
2329
3197
  "application/json": {
2330
- actions: {
2331
- /** @enum {string} */
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);
3198
+ itemId: string;
3199
+ /** @enum {string} */
3200
+ kind: "file" | "folder";
3201
+ name: string;
3202
+ parentItemId: string;
3203
+ purgeAfterEpochMilliseconds: number | null;
3204
+ revision: number;
3205
+ /** @enum {string} */
3206
+ state: "active" | "trashed" | "deleting";
3207
+ volumeId: string;
3208
+ workspaceId: string;
2339
3209
  };
2340
3210
  };
2341
3211
  };
@@ -2357,7 +3227,7 @@ interface operations {
2357
3227
  };
2358
3228
  };
2359
3229
  };
2360
- /** @description The discoverable item does not permit this permission operation. */
3230
+ /** @description The discoverable item does not permit this lifecycle action. */
2361
3231
  403: {
2362
3232
  headers: {
2363
3233
  [name: string]: unknown;
@@ -2375,7 +3245,7 @@ interface operations {
2375
3245
  };
2376
3246
  };
2377
3247
  };
2378
- /** @description The item, principal, or direct grant is absent or undiscoverable. */
3248
+ /** @description The item or destination is absent or undiscoverable. */
2379
3249
  404: {
2380
3250
  headers: {
2381
3251
  [name: string]: unknown;
@@ -2393,13 +3263,22 @@ interface operations {
2393
3263
  };
2394
3264
  };
2395
3265
  };
2396
- /** @description The supplied revision or post-preflight authority is stale. */
2397
- 412: {
3266
+ /** @description The key conflicts, the precondition is stale, or lifecycle authority changed. */
3267
+ 409: {
2398
3268
  headers: {
2399
3269
  [name: string]: unknown;
2400
3270
  };
2401
3271
  content: {
2402
3272
  "application/json": {
3273
+ error: {
3274
+ /** @enum {string} */
3275
+ code: "idempotency_conflict";
3276
+ details: Record<string, never>;
3277
+ /** @enum {string} */
3278
+ message: "The idempotency key conflicts with an earlier request.";
3279
+ requestId: string;
3280
+ };
3281
+ } | {
2403
3282
  error: {
2404
3283
  /** @enum {string} */
2405
3284
  code: "precondition_failed";
@@ -2411,7 +3290,7 @@ interface operations {
2411
3290
  };
2412
3291
  };
2413
3292
  };
2414
- /** @description The path, query, headers, or body are invalid. */
3293
+ /** @description The path, query, headers, key, or strict body is invalid. */
2415
3294
  422: {
2416
3295
  headers: {
2417
3296
  [name: string]: unknown;
@@ -2426,10 +3305,19 @@ interface operations {
2426
3305
  message: "The request is invalid.";
2427
3306
  requestId: string;
2428
3307
  };
3308
+ } | {
3309
+ error: {
3310
+ /** @enum {string} */
3311
+ code: "invalid_idempotency_key";
3312
+ details: Record<string, never>;
3313
+ /** @enum {string} */
3314
+ message: "The idempotency key is invalid.";
3315
+ requestId: string;
3316
+ };
2429
3317
  };
2430
3318
  };
2431
3319
  };
2432
- /** @description Identity, D1, authorization, audit, cursor, or capacity authority is unavailable. */
3320
+ /** @description Identity, D1, authorization, capacity, or archive authority is unavailable. */
2433
3321
  503: {
2434
3322
  headers: {
2435
3323
  [name: string]: unknown;
@@ -2458,7 +3346,7 @@ interface operations {
2458
3346
  };
2459
3347
  };
2460
3348
  };
2461
- revokeItemPermission: {
3349
+ registerItemRecipient: {
2462
3350
  parameters: {
2463
3351
  query?: never;
2464
3352
  header: {
@@ -2468,17 +3356,58 @@ interface operations {
2468
3356
  path: {
2469
3357
  workspaceId: string;
2470
3358
  itemId: string;
2471
- grantId: string;
2472
3359
  };
2473
3360
  cookie?: never;
2474
3361
  };
2475
- requestBody?: never;
3362
+ requestBody: {
3363
+ content: {
3364
+ "application/json": {
3365
+ /** @description Normalized email, at most 320 UTF-8 bytes. */
3366
+ email: string;
3367
+ /** @description Require the freshly resolved Auth user ID to match before creating a grant. A mismatch returns registration_conflict without mutation. */
3368
+ expectedRecipientUserId?: string;
3369
+ /** @enum {string} */
3370
+ role: "viewer" | "editor";
3371
+ };
3372
+ };
3373
+ };
2476
3374
  responses: {
2477
- /** @description The retained revoked grant was committed, replayed, or unchanged. */
3375
+ /** @description Exact grant replay. */
2478
3376
  200: {
2479
3377
  headers: {
2480
- /** @description Current direct collection precondition for POST. */
2481
- "Drive-Permission-Collection-ETag"?: string;
3378
+ [name: string]: unknown;
3379
+ };
3380
+ content: {
3381
+ "application/json": {
3382
+ collectionRevision: number;
3383
+ grant: {
3384
+ actions: ("items:content:read" | "items:create" | "items:delete" | "items:metadata:read" | "items:permissions:read" | "items:update")[];
3385
+ /** @enum {string} */
3386
+ availability: "active" | "expired" | "revoked";
3387
+ expiresAtEpochMilliseconds: number | null;
3388
+ grantId: string;
3389
+ grantee: {
3390
+ /** @enum {string} */
3391
+ type: "user";
3392
+ userId: string;
3393
+ } | {
3394
+ teamId: string;
3395
+ /** @enum {string} */
3396
+ type: "team";
3397
+ };
3398
+ revision: number;
3399
+ /** @enum {string} */
3400
+ source: "direct";
3401
+ sourceItemId: string;
3402
+ };
3403
+ /** @enum {string} */
3404
+ outcome: "committed" | "replayed";
3405
+ };
3406
+ };
3407
+ };
3408
+ /** @description Registered recipient grant created. */
3409
+ 201: {
3410
+ headers: {
2482
3411
  [name: string]: unknown;
2483
3412
  };
2484
3413
  content: {
@@ -2545,25 +3474,14 @@ interface operations {
2545
3474
  };
2546
3475
  };
2547
3476
  };
2548
- /** @description The item, principal, or direct grant is absent or undiscoverable. */
3477
+ /** @description The item or registered recipient is unavailable. */
2549
3478
  404: {
2550
3479
  headers: {
2551
3480
  [name: string]: unknown;
2552
3481
  };
2553
- content: {
2554
- "application/json": {
2555
- error: {
2556
- /** @enum {string} */
2557
- code: "resource_not_found";
2558
- details: Record<string, never>;
2559
- /** @enum {string} */
2560
- message: "The requested resource was not found.";
2561
- requestId: string;
2562
- };
2563
- };
2564
- };
3482
+ content?: never;
2565
3483
  };
2566
- /** @description The idempotency key was reused for a different semantic request. */
3484
+ /** @description Idempotency conflict or registration_conflict: the resolved recipient does not match the expected user. */
2567
3485
  409: {
2568
3486
  headers: {
2569
3487
  [name: string]: unknown;
@@ -2578,6 +3496,15 @@ interface operations {
2578
3496
  message: "The idempotency key conflicts with an earlier request.";
2579
3497
  requestId: string;
2580
3498
  };
3499
+ } | {
3500
+ error: {
3501
+ /** @enum {string} */
3502
+ code: "registration_conflict";
3503
+ details: Record<string, never>;
3504
+ /** @enum {string} */
3505
+ message: "The recipient could not be confirmed.";
3506
+ requestId: string;
3507
+ };
2581
3508
  };
2582
3509
  };
2583
3510
  };
@@ -2626,6 +3553,13 @@ interface operations {
2626
3553
  };
2627
3554
  };
2628
3555
  };
3556
+ /** @description Recipient resolution rate limit exceeded. */
3557
+ 429: {
3558
+ headers: {
3559
+ [name: string]: unknown;
3560
+ };
3561
+ content?: never;
3562
+ };
2629
3563
  /** @description Identity, D1, authorization, audit, cursor, or capacity authority is unavailable. */
2630
3564
  503: {
2631
3565
  headers: {
@@ -2655,45 +3589,35 @@ interface operations {
2655
3589
  };
2656
3590
  };
2657
3591
  };
2658
- updateItemPermission: {
3592
+ listItemSharingPeople: {
2659
3593
  parameters: {
2660
- query?: never;
2661
- header: {
2662
- "Idempotency-Key": string;
2663
- "If-Match": string;
3594
+ query?: {
3595
+ limit?: number;
3596
+ cursor?: string;
2664
3597
  };
3598
+ header?: never;
2665
3599
  path: {
2666
3600
  workspaceId: string;
2667
3601
  itemId: string;
2668
- grantId: string;
2669
3602
  };
2670
3603
  cookie?: never;
2671
3604
  };
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
- };
3605
+ requestBody?: never;
2680
3606
  responses: {
2681
- /** @description The direct grant was committed or replayed. */
3607
+ /** @description Canonical grant page; unavailable display is null and never authority. */
2682
3608
  200: {
2683
3609
  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;
2688
3610
  [name: string]: unknown;
2689
3611
  };
2690
3612
  content: {
2691
3613
  "application/json": {
3614
+ collectionEtag: string;
2692
3615
  collectionRevision: number;
2693
- grant: {
3616
+ items: ({
2694
3617
  actions: ("items:content:read" | "items:create" | "items:delete" | "items:metadata:read" | "items:permissions:read" | "items:update")[];
2695
3618
  /** @enum {string} */
2696
3619
  availability: "active" | "expired" | "revoked";
3620
+ etag: string;
2697
3621
  expiresAtEpochMilliseconds: number | null;
2698
3622
  grantId: string;
2699
3623
  grantee: {
@@ -2707,11 +3631,20 @@ interface operations {
2707
3631
  };
2708
3632
  revision: number;
2709
3633
  /** @enum {string} */
2710
- source: "direct";
3634
+ source: "direct" | "inherited";
2711
3635
  sourceItemId: string;
2712
- };
2713
- /** @enum {string} */
2714
- outcome: "committed" | "replayed";
3636
+ } & {
3637
+ recipient: {
3638
+ /** @description At most 320 UTF-8 bytes. */
3639
+ email: string;
3640
+ expiresAt: number;
3641
+ /** @description At most 1024 UTF-8 bytes. */
3642
+ name: string;
3643
+ resolvedAt: number;
3644
+ userId: string;
3645
+ } | null;
3646
+ })[];
3647
+ nextCursor: string | null;
2715
3648
  };
2716
3649
  };
2717
3650
  };
@@ -2751,23 +3684,12 @@ interface operations {
2751
3684
  };
2752
3685
  };
2753
3686
  };
2754
- /** @description The item, principal, or direct grant is absent or undiscoverable. */
3687
+ /** @description The item or registered recipient is unavailable. */
2755
3688
  404: {
2756
3689
  headers: {
2757
3690
  [name: string]: unknown;
2758
3691
  };
2759
- content: {
2760
- "application/json": {
2761
- error: {
2762
- /** @enum {string} */
2763
- code: "resource_not_found";
2764
- details: Record<string, never>;
2765
- /** @enum {string} */
2766
- message: "The requested resource was not found.";
2767
- requestId: string;
2768
- };
2769
- };
2770
- };
3692
+ content?: never;
2771
3693
  };
2772
3694
  /** @description The idempotency key was reused for a different semantic request. */
2773
3695
  409: {
@@ -2832,6 +3754,13 @@ interface operations {
2832
3754
  };
2833
3755
  };
2834
3756
  };
3757
+ /** @description Recipient resolution rate limit exceeded. */
3758
+ 429: {
3759
+ headers: {
3760
+ [name: string]: unknown;
3761
+ };
3762
+ content?: never;
3763
+ };
2835
3764
  /** @description Identity, D1, authorization, audit, cursor, or capacity authority is unavailable. */
2836
3765
  503: {
2837
3766
  headers: {
@@ -2861,7 +3790,7 @@ interface operations {
2861
3790
  };
2862
3791
  };
2863
3792
  };
2864
- restoreItem: {
3793
+ trashItem: {
2865
3794
  parameters: {
2866
3795
  query?: never;
2867
3796
  header: {
@@ -2876,7 +3805,7 @@ interface operations {
2876
3805
  };
2877
3806
  requestBody?: never;
2878
3807
  responses: {
2879
- /** @description The managed item was restored or exactly replayed. */
3808
+ /** @description The managed item was trashed or exactly replayed. */
2880
3809
  200: {
2881
3810
  headers: {
2882
3811
  /** @description Strong precondition for the next item mutation. */
@@ -3036,93 +3965,47 @@ interface operations {
3036
3965
  };
3037
3966
  };
3038
3967
  };
3039
- registerItemRecipient: {
3968
+ listItemVersions: {
3040
3969
  parameters: {
3041
- query?: never;
3042
- header: {
3043
- "Idempotency-Key": string;
3044
- "If-Match": string;
3970
+ query?: {
3971
+ limit?: number;
3972
+ cursor?: string;
3045
3973
  };
3974
+ header?: never;
3046
3975
  path: {
3047
3976
  workspaceId: string;
3048
3977
  itemId: string;
3049
3978
  };
3050
3979
  cookie?: never;
3051
3980
  };
3052
- requestBody: {
3053
- content: {
3054
- "application/json": {
3055
- /** @description Normalized email, at most 320 UTF-8 bytes. */
3056
- email: string;
3057
- /** @enum {string} */
3058
- role: "viewer" | "editor";
3059
- };
3060
- };
3061
- };
3981
+ requestBody?: never;
3062
3982
  responses: {
3063
- /** @description Exact grant replay. */
3983
+ /** @description At most 50 versions in version-ID order with an opaque 15-minute continuation cursor. */
3064
3984
  200: {
3065
3985
  headers: {
3066
3986
  [name: string]: unknown;
3067
3987
  };
3068
3988
  content: {
3069
3989
  "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;
3990
+ items: {
3087
3991
  /** @enum {string} */
3088
- source: "direct";
3089
- sourceItemId: string;
3090
- };
3091
- /** @enum {string} */
3092
- outcome: "committed" | "replayed";
3093
- };
3094
- };
3095
- };
3096
- /** @description Registered recipient grant created. */
3097
- 201: {
3098
- headers: {
3099
- [name: string]: unknown;
3100
- };
3101
- content: {
3102
- "application/json": {
3103
- collectionRevision: number;
3104
- grant: {
3105
- actions: ("items:content:read" | "items:create" | "items:delete" | "items:metadata:read" | "items:permissions:read" | "items:update")[];
3992
+ archiveState: "available" | "cold" | "restoring" | "unavailable" | "corrupt";
3993
+ byteLength: number;
3994
+ contentDigest: string;
3995
+ /**
3996
+ * Format: finueva-safe-filename
3997
+ * @description Custom format finueva-safe-filename requires NFC normalization and at most 255 UTF-8 bytes in addition to the structural pattern and maxLength constraints. Dot entries and Windows reserved base names are forbidden. Generated JSON Schema constraints are a necessary structural subset and do not independently enforce normalization or UTF-8 byte length.
3998
+ */
3999
+ displayFilename: string;
4000
+ mediaType: string;
3106
4001
  /** @enum {string} */
3107
- availability: "active" | "expired" | "revoked";
3108
- expiresAtEpochMilliseconds: number | null;
3109
- grantId: string;
3110
- grantee: {
3111
- /** @enum {string} */
3112
- type: "user";
3113
- userId: string;
3114
- } | {
3115
- teamId: string;
3116
- /** @enum {string} */
3117
- type: "team";
3118
- };
4002
+ protectionClassification: "ordinary" | "opaque-encrypted";
3119
4003
  revision: number;
3120
4004
  /** @enum {string} */
3121
- source: "direct";
3122
- sourceItemId: string;
3123
- };
3124
- /** @enum {string} */
3125
- outcome: "committed" | "replayed";
4005
+ state: "current" | "superseded";
4006
+ versionId: string;
4007
+ }[];
4008
+ nextCursor: string | null;
3126
4009
  };
3127
4010
  };
3128
4011
  };
@@ -3144,7 +4027,7 @@ interface operations {
3144
4027
  };
3145
4028
  };
3146
4029
  };
3147
- /** @description The discoverable item does not permit this permission operation. */
4030
+ /** @description The discoverable item does not permit metadata reads. */
3148
4031
  403: {
3149
4032
  headers: {
3150
4033
  [name: string]: unknown;
@@ -3162,15 +4045,8 @@ interface operations {
3162
4045
  };
3163
4046
  };
3164
4047
  };
3165
- /** @description The item or registered recipient is unavailable. */
4048
+ /** @description The file is absent or undiscoverable. */
3166
4049
  404: {
3167
- headers: {
3168
- [name: string]: unknown;
3169
- };
3170
- content?: never;
3171
- };
3172
- /** @description The idempotency key was reused for a different semantic request. */
3173
- 409: {
3174
4050
  headers: {
3175
4051
  [name: string]: unknown;
3176
4052
  };
@@ -3178,17 +4054,17 @@ interface operations {
3178
4054
  "application/json": {
3179
4055
  error: {
3180
4056
  /** @enum {string} */
3181
- code: "idempotency_conflict";
4057
+ code: "resource_not_found";
3182
4058
  details: Record<string, never>;
3183
4059
  /** @enum {string} */
3184
- message: "The idempotency key conflicts with an earlier request.";
4060
+ message: "The requested resource was not found.";
3185
4061
  requestId: string;
3186
4062
  };
3187
4063
  };
3188
4064
  };
3189
4065
  };
3190
- /** @description The supplied revision or post-preflight authority is stale. */
3191
- 412: {
4066
+ /** @description Authorization changed after preflight. */
4067
+ 409: {
3192
4068
  headers: {
3193
4069
  [name: string]: unknown;
3194
4070
  };
@@ -3205,7 +4081,7 @@ interface operations {
3205
4081
  };
3206
4082
  };
3207
4083
  };
3208
- /** @description The path, query, headers, idempotency key, or body are invalid. */
4084
+ /** @description The path, query, duplicate query key, or unexpected body is invalid. */
3209
4085
  422: {
3210
4086
  headers: {
3211
4087
  [name: string]: unknown;
@@ -3220,26 +4096,10 @@ interface operations {
3220
4096
  message: "The request is invalid.";
3221
4097
  requestId: string;
3222
4098
  };
3223
- } | {
3224
- error: {
3225
- /** @enum {string} */
3226
- code: "invalid_idempotency_key";
3227
- details: Record<string, never>;
3228
- /** @enum {string} */
3229
- message: "The idempotency key is invalid.";
3230
- requestId: string;
3231
- };
3232
4099
  };
3233
4100
  };
3234
4101
  };
3235
- /** @description Recipient resolution rate limit exceeded. */
3236
- 429: {
3237
- headers: {
3238
- [name: string]: unknown;
3239
- };
3240
- content?: never;
3241
- };
3242
- /** @description Identity, D1, authorization, audit, cursor, or capacity authority is unavailable. */
4102
+ /** @description Identity, D1, or authorization authority is unavailable. */
3243
4103
  503: {
3244
4104
  headers: {
3245
4105
  [name: string]: unknown;
@@ -3268,62 +4128,44 @@ interface operations {
3268
4128
  };
3269
4129
  };
3270
4130
  };
3271
- listItemSharingPeople: {
4131
+ getItemVersion: {
3272
4132
  parameters: {
3273
- query?: {
3274
- limit?: number;
3275
- cursor?: string;
3276
- };
4133
+ query?: never;
3277
4134
  header?: never;
3278
4135
  path: {
3279
4136
  workspaceId: string;
3280
4137
  itemId: string;
4138
+ versionId: string;
3281
4139
  };
3282
4140
  cookie?: never;
3283
4141
  };
3284
4142
  requestBody?: never;
3285
4143
  responses: {
3286
- /** @description Canonical grant page; unavailable display is null and never authority. */
4144
+ /** @description The exact workspace/item-bound immutable managed file version. */
3287
4145
  200: {
3288
4146
  headers: {
3289
4147
  [name: string]: unknown;
3290
4148
  };
3291
4149
  content: {
3292
4150
  "application/json": {
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;
4151
+ /** @enum {string} */
4152
+ archiveState: "available" | "cold" | "restoring" | "unavailable" | "corrupt";
4153
+ byteLength: number;
4154
+ contentDigest: string;
4155
+ /**
4156
+ * Format: finueva-safe-filename
4157
+ * @description Custom format finueva-safe-filename requires NFC normalization and at most 255 UTF-8 bytes in addition to the structural pattern and maxLength constraints. Dot entries and Windows reserved base names are forbidden. Generated JSON Schema constraints are a necessary structural subset and do not independently enforce normalization or UTF-8 byte length.
4158
+ */
4159
+ displayFilename: string;
4160
+ itemId: string;
4161
+ mediaType: string;
4162
+ /** @enum {string} */
4163
+ protectionClassification: "ordinary" | "opaque-encrypted";
4164
+ revision: number;
4165
+ /** @enum {string} */
4166
+ state: "current" | "superseded";
4167
+ versionId: string;
4168
+ workspaceId: string;
3327
4169
  };
3328
4170
  };
3329
4171
  };
@@ -3345,7 +4187,7 @@ interface operations {
3345
4187
  };
3346
4188
  };
3347
4189
  };
3348
- /** @description The discoverable item does not permit this permission operation. */
4190
+ /** @description Managed storage is disabled for the discoverable file. */
3349
4191
  403: {
3350
4192
  headers: {
3351
4193
  [name: string]: unknown;
@@ -3363,15 +4205,8 @@ interface operations {
3363
4205
  };
3364
4206
  };
3365
4207
  };
3366
- /** @description The item or registered recipient is unavailable. */
4208
+ /** @description The file or version is absent, undiscoverable, unpublished, or deleting. */
3367
4209
  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: {
3375
4210
  headers: {
3376
4211
  [name: string]: unknown;
3377
4212
  };
@@ -3379,17 +4214,17 @@ interface operations {
3379
4214
  "application/json": {
3380
4215
  error: {
3381
4216
  /** @enum {string} */
3382
- code: "idempotency_conflict";
4217
+ code: "resource_not_found";
3383
4218
  details: Record<string, never>;
3384
4219
  /** @enum {string} */
3385
- message: "The idempotency key conflicts with an earlier request.";
4220
+ message: "The requested resource was not found.";
3386
4221
  requestId: string;
3387
4222
  };
3388
4223
  };
3389
4224
  };
3390
- };
3391
- /** @description The supplied revision or post-preflight authority is stale. */
3392
- 412: {
4225
+ };
4226
+ /** @description Authorization or version metadata changed after preflight. */
4227
+ 409: {
3393
4228
  headers: {
3394
4229
  [name: string]: unknown;
3395
4230
  };
@@ -3406,7 +4241,7 @@ interface operations {
3406
4241
  };
3407
4242
  };
3408
4243
  };
3409
- /** @description The path, query, headers, idempotency key, or body are invalid. */
4244
+ /** @description The path, query, or unexpected body is invalid. */
3410
4245
  422: {
3411
4246
  headers: {
3412
4247
  [name: string]: unknown;
@@ -3421,26 +4256,10 @@ interface operations {
3421
4256
  message: "The request is invalid.";
3422
4257
  requestId: string;
3423
4258
  };
3424
- } | {
3425
- error: {
3426
- /** @enum {string} */
3427
- code: "invalid_idempotency_key";
3428
- details: Record<string, never>;
3429
- /** @enum {string} */
3430
- message: "The idempotency key is invalid.";
3431
- requestId: string;
3432
- };
3433
4259
  };
3434
4260
  };
3435
4261
  };
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. */
4262
+ /** @description Identity, D1, authorization, capacity, or managed authority is unavailable. */
3444
4263
  503: {
3445
4264
  headers: {
3446
4265
  [name: string]: unknown;
@@ -3469,7 +4288,7 @@ interface operations {
3469
4288
  };
3470
4289
  };
3471
4290
  };
3472
- trashItem: {
4291
+ restoreItemVersion: {
3473
4292
  parameters: {
3474
4293
  query?: never;
3475
4294
  header: {
@@ -3479,12 +4298,13 @@ interface operations {
3479
4298
  path: {
3480
4299
  workspaceId: string;
3481
4300
  itemId: string;
4301
+ versionId: string;
3482
4302
  };
3483
4303
  cookie?: never;
3484
4304
  };
3485
4305
  requestBody?: never;
3486
4306
  responses: {
3487
- /** @description The managed item was trashed or exactly replayed. */
4307
+ /** @description The selected version is current or the exact result was replayed. */
3488
4308
  200: {
3489
4309
  headers: {
3490
4310
  /** @description Strong precondition for the next item mutation. */
@@ -3493,17 +4313,8 @@ interface operations {
3493
4313
  };
3494
4314
  content: {
3495
4315
  "application/json": {
3496
- itemId: string;
3497
- /** @enum {string} */
3498
- kind: "file" | "folder";
3499
- name: string;
3500
- parentItemId: string;
3501
- purgeAfterEpochMilliseconds: number | null;
3502
- revision: number;
3503
- /** @enum {string} */
3504
- state: "active" | "trashed" | "deleting";
3505
- volumeId: string;
3506
- workspaceId: string;
4316
+ currentVersionId: string;
4317
+ itemRevision: number;
3507
4318
  };
3508
4319
  };
3509
4320
  };
@@ -3644,12 +4455,9 @@ interface operations {
3644
4455
  };
3645
4456
  };
3646
4457
  };
3647
- listItemVersions: {
4458
+ listVisitorGrants: {
3648
4459
  parameters: {
3649
- query?: {
3650
- limit?: number;
3651
- cursor?: string;
3652
- };
4460
+ query?: never;
3653
4461
  header?: never;
3654
4462
  path: {
3655
4463
  workspaceId: string;
@@ -3659,7 +4467,7 @@ interface operations {
3659
4467
  };
3660
4468
  requestBody?: never;
3661
4469
  responses: {
3662
- /** @description At most 50 versions in version-ID order with an opaque 15-minute continuation cursor. */
4470
+ /** @description Bounded visitor grant list without tokens. */
3663
4471
  200: {
3664
4472
  headers: {
3665
4473
  [name: string]: unknown;
@@ -3667,470 +4475,355 @@ interface operations {
3667
4475
  content: {
3668
4476
  "application/json": {
3669
4477
  items: {
4478
+ createdAt: number;
4479
+ email: string | null;
4480
+ expiresAt: number;
4481
+ /** Format: uuid */
4482
+ grantId: string;
3670
4483
  /** @enum {string} */
3671
- archiveState: "available" | "cold" | "restoring" | "unavailable" | "corrupt";
3672
- byteLength: number;
3673
- contentDigest: string;
3674
- /**
3675
- * Format: finueva-safe-filename
3676
- * @description Custom format finueva-safe-filename requires NFC normalization and at most 255 UTF-8 bytes in addition to the structural pattern and maxLength constraints. Dot entries and Windows reserved base names are forbidden. Generated JSON Schema constraints are a necessary structural subset and do not independently enforce normalization or UTF-8 byte length.
3677
- */
3678
- displayFilename: string;
3679
- mediaType: string;
4484
+ mode: "anyone" | "email";
3680
4485
  /** @enum {string} */
3681
- protectionClassification: "ordinary" | "opaque-encrypted";
3682
- revision: number;
4486
+ role: "viewer";
3683
4487
  /** @enum {string} */
3684
- state: "current" | "superseded";
3685
- versionId: string;
4488
+ source: "direct" | "inherited";
4489
+ sourceItemId: string;
4490
+ /** @enum {string} */
4491
+ status: "pending" | "active" | "expired" | "revoked";
3686
4492
  }[];
3687
- nextCursor: string | null;
3688
4493
  };
3689
4494
  };
3690
4495
  };
3691
- /** @description A valid Drive user bearer credential is required. */
4496
+ /** @description Drive user bearer required. */
3692
4497
  401: {
3693
4498
  headers: {
3694
4499
  [name: string]: unknown;
3695
4500
  };
3696
- content: {
3697
- "application/json": {
3698
- error: {
3699
- /** @enum {string} */
3700
- code: "authentication_required";
3701
- details: Record<string, never>;
3702
- /** @enum {string} */
3703
- message: "Authentication is required.";
3704
- requestId: string;
3705
- };
3706
- };
3707
- };
4501
+ content?: never;
3708
4502
  };
3709
- /** @description The discoverable item does not permit metadata reads. */
4503
+ /** @description Current item manager authority required. */
3710
4504
  403: {
3711
4505
  headers: {
3712
4506
  [name: string]: unknown;
3713
4507
  };
3714
- content: {
3715
- "application/json": {
3716
- error: {
3717
- /** @enum {string} */
3718
- code: "permission_denied";
3719
- details: Record<string, never>;
3720
- /** @enum {string} */
3721
- message: "The requested action is not permitted.";
3722
- requestId: string;
3723
- };
3724
- };
3725
- };
4508
+ content?: never;
3726
4509
  };
3727
- /** @description The file is absent or undiscoverable. */
4510
+ /** @description Capability or resource unavailable. */
3728
4511
  404: {
3729
4512
  headers: {
3730
4513
  [name: string]: unknown;
3731
4514
  };
3732
- content: {
3733
- "application/json": {
3734
- error: {
3735
- /** @enum {string} */
3736
- code: "resource_not_found";
3737
- details: Record<string, never>;
3738
- /** @enum {string} */
3739
- message: "The requested resource was not found.";
3740
- requestId: string;
3741
- };
3742
- };
3743
- };
4515
+ content?: never;
3744
4516
  };
3745
- /** @description Authorization changed after preflight. */
4517
+ /** @description Conflicting request identity. */
3746
4518
  409: {
3747
4519
  headers: {
3748
4520
  [name: string]: unknown;
3749
4521
  };
3750
- content: {
3751
- "application/json": {
3752
- error: {
3753
- /** @enum {string} */
3754
- code: "precondition_failed";
3755
- details: Record<string, never>;
3756
- /** @enum {string} */
3757
- message: "The request precondition failed.";
3758
- requestId: string;
3759
- };
3760
- };
3761
- };
4522
+ content?: never;
3762
4523
  };
3763
- /** @description The path, query, duplicate query key, or unexpected body is invalid. */
4524
+ /** @description Invalid request; visitor roles are viewer only. */
3764
4525
  422: {
3765
4526
  headers: {
3766
4527
  [name: string]: unknown;
3767
4528
  };
3768
- content: {
3769
- "application/json": {
3770
- error: {
3771
- /** @enum {string} */
3772
- code: "invalid_request";
3773
- details: Record<string, never>;
3774
- /** @enum {string} */
3775
- message: "The request is invalid.";
3776
- requestId: string;
3777
- };
3778
- };
4529
+ content?: never;
4530
+ };
4531
+ /** @description Bounded admission exhausted; retry after one minute. */
4532
+ 429: {
4533
+ headers: {
4534
+ [name: string]: unknown;
3779
4535
  };
4536
+ content?: never;
3780
4537
  };
3781
- /** @description Identity, D1, or authorization authority is unavailable. */
4538
+ /** @description Service unavailable. */
3782
4539
  503: {
3783
4540
  headers: {
3784
4541
  [name: string]: unknown;
3785
4542
  };
3786
- content: {
3787
- "application/json": {
3788
- error: {
3789
- /** @enum {string} */
3790
- code: "identity_authority_unavailable";
3791
- details: Record<string, never>;
3792
- /** @enum {string} */
3793
- message: "Authentication is temporarily unavailable.";
3794
- requestId: string;
3795
- };
3796
- } | {
3797
- error: {
3798
- /** @enum {string} */
3799
- code: "service_unavailable";
3800
- details: Record<string, never>;
3801
- /** @enum {string} */
3802
- message: "The service is temporarily unavailable.";
3803
- requestId: string;
3804
- };
3805
- };
3806
- };
4543
+ content?: never;
3807
4544
  };
3808
4545
  };
3809
4546
  };
3810
- getItemVersion: {
4547
+ createVisitorGrant: {
3811
4548
  parameters: {
3812
4549
  query?: never;
3813
- header?: never;
4550
+ header: {
4551
+ "Idempotency-Key": string;
4552
+ };
3814
4553
  path: {
3815
4554
  workspaceId: string;
3816
4555
  itemId: string;
3817
- versionId: string;
3818
4556
  };
3819
4557
  cookie?: never;
3820
4558
  };
3821
- requestBody?: never;
4559
+ requestBody: {
4560
+ content: {
4561
+ "application/json": {
4562
+ expiresAt: number;
4563
+ /** @constant */
4564
+ mode: "anyone";
4565
+ /** @constant */
4566
+ role: "viewer";
4567
+ } | {
4568
+ email: string;
4569
+ expiresAt: number;
4570
+ /** @constant */
4571
+ mode: "email";
4572
+ /** @constant */
4573
+ role: "viewer";
4574
+ };
4575
+ };
4576
+ };
3822
4577
  responses: {
3823
- /** @description The exact workspace/item-bound immutable managed file version. */
4578
+ /** @description Idempotent grant and confidential dispatch token; email does not enable public access. */
3824
4579
  200: {
3825
4580
  headers: {
3826
4581
  [name: string]: unknown;
3827
4582
  };
3828
4583
  content: {
3829
4584
  "application/json": {
4585
+ grant: {
4586
+ createdAt: number;
4587
+ email: string | null;
4588
+ expiresAt: number;
4589
+ /** Format: uuid */
4590
+ grantId: string;
4591
+ /** @enum {string} */
4592
+ mode: "anyone" | "email";
4593
+ /** @enum {string} */
4594
+ role: "viewer";
4595
+ /** @enum {string} */
4596
+ status: "pending" | "active" | "expired" | "revoked";
4597
+ };
4598
+ token: string | null;
3830
4599
  /** @enum {string} */
3831
- archiveState: "available" | "cold" | "restoring" | "unavailable" | "corrupt";
3832
- byteLength: number;
3833
- contentDigest: string;
3834
- /**
3835
- * Format: finueva-safe-filename
3836
- * @description Custom format finueva-safe-filename requires NFC normalization and at most 255 UTF-8 bytes in addition to the structural pattern and maxLength constraints. Dot entries and Windows reserved base names are forbidden. Generated JSON Schema constraints are a necessary structural subset and do not independently enforce normalization or UTF-8 byte length.
3837
- */
3838
- displayFilename: string;
3839
- itemId: string;
3840
- mediaType: string;
3841
- /** @enum {string} */
3842
- protectionClassification: "ordinary" | "opaque-encrypted";
3843
- revision: number;
3844
- /** @enum {string} */
3845
- state: "current" | "superseded";
3846
- versionId: string;
3847
- workspaceId: string;
4600
+ tokenPurpose: "view" | "verify-email";
3848
4601
  };
3849
4602
  };
3850
4603
  };
3851
- /** @description A valid Drive user bearer credential is required. */
3852
- 401: {
4604
+ /** @description Drive user bearer required. */
4605
+ 401: {
4606
+ headers: {
4607
+ [name: string]: unknown;
4608
+ };
4609
+ content?: never;
4610
+ };
4611
+ /** @description Current item manager authority required. */
4612
+ 403: {
4613
+ headers: {
4614
+ [name: string]: unknown;
4615
+ };
4616
+ content?: never;
4617
+ };
4618
+ /** @description Capability or resource unavailable. */
4619
+ 404: {
4620
+ headers: {
4621
+ [name: string]: unknown;
4622
+ };
4623
+ content?: never;
4624
+ };
4625
+ /** @description Conflicting request identity. */
4626
+ 409: {
4627
+ headers: {
4628
+ [name: string]: unknown;
4629
+ };
4630
+ content?: never;
4631
+ };
4632
+ /** @description Invalid request; visitor roles are viewer only. */
4633
+ 422: {
4634
+ headers: {
4635
+ [name: string]: unknown;
4636
+ };
4637
+ content?: never;
4638
+ };
4639
+ /** @description Bounded admission exhausted; retry after one minute. */
4640
+ 429: {
4641
+ headers: {
4642
+ [name: string]: unknown;
4643
+ };
4644
+ content?: never;
4645
+ };
4646
+ /** @description Service unavailable. */
4647
+ 503: {
4648
+ headers: {
4649
+ [name: string]: unknown;
4650
+ };
4651
+ content?: never;
4652
+ };
4653
+ };
4654
+ };
4655
+ getVisitorGrant: {
4656
+ parameters: {
4657
+ query?: never;
4658
+ header?: never;
4659
+ path: {
4660
+ workspaceId: string;
4661
+ itemId: string;
4662
+ grantId: string;
4663
+ };
4664
+ cookie?: never;
4665
+ };
4666
+ requestBody?: never;
4667
+ responses: {
4668
+ /** @description Confidential existing link for copy or pending-email redispatch; inactive tokens are null. */
4669
+ 200: {
3853
4670
  headers: {
3854
4671
  [name: string]: unknown;
3855
4672
  };
3856
4673
  content: {
3857
4674
  "application/json": {
3858
- error: {
4675
+ grant: {
4676
+ createdAt: number;
4677
+ email: string | null;
4678
+ expiresAt: number;
4679
+ /** Format: uuid */
4680
+ grantId: string;
3859
4681
  /** @enum {string} */
3860
- code: "authentication_required";
3861
- details: Record<string, never>;
4682
+ mode: "anyone" | "email";
3862
4683
  /** @enum {string} */
3863
- message: "Authentication is required.";
3864
- requestId: string;
4684
+ role: "viewer";
4685
+ /** @enum {string} */
4686
+ status: "pending" | "active" | "expired" | "revoked";
3865
4687
  };
4688
+ token: string | null;
4689
+ /** @enum {string} */
4690
+ tokenPurpose: "view" | "verify-email";
3866
4691
  };
3867
4692
  };
3868
4693
  };
3869
- /** @description Managed storage is disabled for the discoverable file. */
3870
- 403: {
4694
+ /** @description Drive user bearer required. */
4695
+ 401: {
3871
4696
  headers: {
3872
4697
  [name: string]: unknown;
3873
4698
  };
3874
- content: {
3875
- "application/json": {
3876
- error: {
3877
- /** @enum {string} */
3878
- code: "permission_denied";
3879
- details: Record<string, never>;
3880
- /** @enum {string} */
3881
- message: "The requested action is not permitted.";
3882
- requestId: string;
3883
- };
3884
- };
4699
+ content?: never;
4700
+ };
4701
+ /** @description Current item manager authority required. */
4702
+ 403: {
4703
+ headers: {
4704
+ [name: string]: unknown;
3885
4705
  };
4706
+ content?: never;
3886
4707
  };
3887
- /** @description The file or version is absent, undiscoverable, unpublished, or deleting. */
4708
+ /** @description Capability or resource unavailable. */
3888
4709
  404: {
3889
4710
  headers: {
3890
4711
  [name: string]: unknown;
3891
4712
  };
3892
- content: {
3893
- "application/json": {
3894
- error: {
3895
- /** @enum {string} */
3896
- code: "resource_not_found";
3897
- details: Record<string, never>;
3898
- /** @enum {string} */
3899
- message: "The requested resource was not found.";
3900
- requestId: string;
3901
- };
3902
- };
3903
- };
4713
+ content?: never;
3904
4714
  };
3905
- /** @description Authorization or version metadata changed after preflight. */
4715
+ /** @description Conflicting request identity. */
3906
4716
  409: {
3907
4717
  headers: {
3908
4718
  [name: string]: unknown;
3909
4719
  };
3910
- content: {
3911
- "application/json": {
3912
- error: {
3913
- /** @enum {string} */
3914
- code: "precondition_failed";
3915
- details: Record<string, never>;
3916
- /** @enum {string} */
3917
- message: "The request precondition failed.";
3918
- requestId: string;
3919
- };
3920
- };
3921
- };
4720
+ content?: never;
3922
4721
  };
3923
- /** @description The path, query, or unexpected body is invalid. */
4722
+ /** @description Invalid request; visitor roles are viewer only. */
3924
4723
  422: {
3925
4724
  headers: {
3926
4725
  [name: string]: unknown;
3927
4726
  };
3928
- content: {
3929
- "application/json": {
3930
- error: {
3931
- /** @enum {string} */
3932
- code: "invalid_request";
3933
- details: Record<string, never>;
3934
- /** @enum {string} */
3935
- message: "The request is invalid.";
3936
- requestId: string;
3937
- };
3938
- };
4727
+ content?: never;
4728
+ };
4729
+ /** @description Bounded admission exhausted; retry after one minute. */
4730
+ 429: {
4731
+ headers: {
4732
+ [name: string]: unknown;
3939
4733
  };
4734
+ content?: never;
3940
4735
  };
3941
- /** @description Identity, D1, authorization, capacity, or managed authority is unavailable. */
4736
+ /** @description Service unavailable. */
3942
4737
  503: {
3943
4738
  headers: {
3944
4739
  [name: string]: unknown;
3945
4740
  };
3946
- content: {
3947
- "application/json": {
3948
- error: {
3949
- /** @enum {string} */
3950
- code: "identity_authority_unavailable";
3951
- details: Record<string, never>;
3952
- /** @enum {string} */
3953
- message: "Authentication is temporarily unavailable.";
3954
- requestId: string;
3955
- };
3956
- } | {
3957
- error: {
3958
- /** @enum {string} */
3959
- code: "service_unavailable";
3960
- details: Record<string, never>;
3961
- /** @enum {string} */
3962
- message: "The service is temporarily unavailable.";
3963
- requestId: string;
3964
- };
3965
- };
3966
- };
4741
+ content?: never;
3967
4742
  };
3968
4743
  };
3969
4744
  };
3970
- restoreItemVersion: {
4745
+ revokeVisitorGrant: {
3971
4746
  parameters: {
3972
4747
  query?: never;
3973
- header: {
3974
- "Idempotency-Key": string;
3975
- "If-Match": string;
3976
- };
4748
+ header?: never;
3977
4749
  path: {
3978
4750
  workspaceId: string;
3979
4751
  itemId: string;
3980
- versionId: string;
4752
+ grantId: string;
3981
4753
  };
3982
4754
  cookie?: never;
3983
4755
  };
3984
4756
  requestBody?: never;
3985
4757
  responses: {
3986
- /** @description The selected version is current or the exact result was replayed. */
4758
+ /** @description Revoked grant. */
3987
4759
  200: {
3988
4760
  headers: {
3989
- /** @description Strong precondition for the next item mutation. */
3990
- ETag?: string;
3991
4761
  [name: string]: unknown;
3992
4762
  };
3993
4763
  content: {
3994
4764
  "application/json": {
3995
- currentVersionId: string;
3996
- itemRevision: number;
4765
+ createdAt: number;
4766
+ email: string | null;
4767
+ expiresAt: number;
4768
+ /** Format: uuid */
4769
+ grantId: string;
4770
+ /** @enum {string} */
4771
+ mode: "anyone" | "email";
4772
+ /** @enum {string} */
4773
+ role: "viewer";
4774
+ /** @enum {string} */
4775
+ status: "pending" | "active" | "expired" | "revoked";
3997
4776
  };
3998
4777
  };
3999
4778
  };
4000
- /** @description A valid Drive user bearer credential is required. */
4779
+ /** @description Drive user bearer required. */
4001
4780
  401: {
4002
4781
  headers: {
4003
4782
  [name: string]: unknown;
4004
4783
  };
4005
- content: {
4006
- "application/json": {
4007
- error: {
4008
- /** @enum {string} */
4009
- code: "authentication_required";
4010
- details: Record<string, never>;
4011
- /** @enum {string} */
4012
- message: "Authentication is required.";
4013
- requestId: string;
4014
- };
4015
- };
4016
- };
4784
+ content?: never;
4017
4785
  };
4018
- /** @description The discoverable item does not permit this lifecycle action. */
4786
+ /** @description Current item manager authority required. */
4019
4787
  403: {
4020
4788
  headers: {
4021
4789
  [name: string]: unknown;
4022
4790
  };
4023
- content: {
4024
- "application/json": {
4025
- error: {
4026
- /** @enum {string} */
4027
- code: "permission_denied";
4028
- details: Record<string, never>;
4029
- /** @enum {string} */
4030
- message: "The requested action is not permitted.";
4031
- requestId: string;
4032
- };
4033
- };
4034
- };
4791
+ content?: never;
4035
4792
  };
4036
- /** @description The item or destination is absent or undiscoverable. */
4793
+ /** @description Capability or resource unavailable. */
4037
4794
  404: {
4038
4795
  headers: {
4039
4796
  [name: string]: unknown;
4040
4797
  };
4041
- content: {
4042
- "application/json": {
4043
- error: {
4044
- /** @enum {string} */
4045
- code: "resource_not_found";
4046
- details: Record<string, never>;
4047
- /** @enum {string} */
4048
- message: "The requested resource was not found.";
4049
- requestId: string;
4050
- };
4051
- };
4052
- };
4798
+ content?: never;
4053
4799
  };
4054
- /** @description The key conflicts, the precondition is stale, or lifecycle authority changed. */
4800
+ /** @description Conflicting request identity. */
4055
4801
  409: {
4056
4802
  headers: {
4057
4803
  [name: string]: unknown;
4058
4804
  };
4059
- content: {
4060
- "application/json": {
4061
- error: {
4062
- /** @enum {string} */
4063
- code: "idempotency_conflict";
4064
- details: Record<string, never>;
4065
- /** @enum {string} */
4066
- message: "The idempotency key conflicts with an earlier request.";
4067
- requestId: string;
4068
- };
4069
- } | {
4070
- error: {
4071
- /** @enum {string} */
4072
- code: "precondition_failed";
4073
- details: Record<string, never>;
4074
- /** @enum {string} */
4075
- message: "The request precondition failed.";
4076
- requestId: string;
4077
- };
4078
- };
4079
- };
4805
+ content?: never;
4080
4806
  };
4081
- /** @description The path, query, headers, key, or strict body is invalid. */
4807
+ /** @description Invalid request; visitor roles are viewer only. */
4082
4808
  422: {
4083
4809
  headers: {
4084
4810
  [name: string]: unknown;
4085
4811
  };
4086
- content: {
4087
- "application/json": {
4088
- error: {
4089
- /** @enum {string} */
4090
- code: "invalid_request";
4091
- details: Record<string, never>;
4092
- /** @enum {string} */
4093
- message: "The request is invalid.";
4094
- requestId: string;
4095
- };
4096
- } | {
4097
- error: {
4098
- /** @enum {string} */
4099
- code: "invalid_idempotency_key";
4100
- details: Record<string, never>;
4101
- /** @enum {string} */
4102
- message: "The idempotency key is invalid.";
4103
- requestId: string;
4104
- };
4105
- };
4812
+ content?: never;
4813
+ };
4814
+ /** @description Bounded admission exhausted; retry after one minute. */
4815
+ 429: {
4816
+ headers: {
4817
+ [name: string]: unknown;
4106
4818
  };
4819
+ content?: never;
4107
4820
  };
4108
- /** @description Identity, D1, authorization, capacity, or archive authority is unavailable. */
4821
+ /** @description Service unavailable. */
4109
4822
  503: {
4110
4823
  headers: {
4111
4824
  [name: string]: unknown;
4112
4825
  };
4113
- content: {
4114
- "application/json": {
4115
- error: {
4116
- /** @enum {string} */
4117
- code: "identity_authority_unavailable";
4118
- details: Record<string, never>;
4119
- /** @enum {string} */
4120
- message: "Authentication is temporarily unavailable.";
4121
- requestId: string;
4122
- };
4123
- } | {
4124
- error: {
4125
- /** @enum {string} */
4126
- code: "service_unavailable";
4127
- details: Record<string, never>;
4128
- /** @enum {string} */
4129
- message: "The service is temporarily unavailable.";
4130
- requestId: string;
4131
- };
4132
- };
4133
- };
4826
+ content?: never;
4134
4827
  };
4135
4828
  };
4136
4829
  };
@@ -5561,6 +6254,8 @@ interface RegisterItemRecipientInput {
5561
6254
  readonly workspaceId: string;
5562
6255
  readonly itemId: string;
5563
6256
  readonly email: string;
6257
+ /** Assert the freshly resolved Auth identity before any grant is created. */
6258
+ readonly expectedRecipientUserId?: string;
5564
6259
  readonly role: "viewer" | "editor";
5565
6260
  readonly ifMatch: string;
5566
6261
  readonly idempotencyKey: string;
@@ -5814,6 +6509,10 @@ interface GetCurrentWorkspaceInput {
5814
6509
  readonly signal?: AbortSignal;
5815
6510
  }
5816
6511
  interface DriveOperations {
6512
+ createVisitorGrant(input: CreateVisitorGrantInput): Promise<DriveOperationResult<VisitorGrantCreation, 200>>;
6513
+ getVisitorGrant(input: GetVisitorGrantInput): Promise<DriveOperationResult<VisitorGrantCreation, 200>>;
6514
+ listVisitorGrants(input: GetItemInput): Promise<DriveOperationResult<VisitorGrantPage, 200>>;
6515
+ revokeVisitorGrant(input: RevokeVisitorGrantInput): Promise<DriveOperationResult<VisitorGrant, 200>>;
5817
6516
  registerItemRecipient(input: RegisterItemRecipientInput): Promise<DriveOperationResult<PermissionMutation, 200 | 201>>;
5818
6517
  listItemSharingPeople(input: ListItemSharingPeopleInput): Promise<DriveOperationResult<ItemSharingPeoplePage, 200>>;
5819
6518
  listIncomingShares(input?: ListIncomingSharesInput): Promise<DriveOperationResult<IncomingSharePage, 200>>;
@@ -5846,9 +6545,51 @@ interface DriveOperations {
5846
6545
  completeUpload(input: CompleteUploadInput): Promise<DriveOperationResult<UploadCompletion, 200 | 202>>;
5847
6546
  abortUpload(input: AbortUploadInput): Promise<DriveOperationResult<undefined, 204>>;
5848
6547
  }
6548
+ type VisitorGrantCreation = JsonResponse<"createVisitorGrant", 200>;
6549
+ type VisitorGrant = VisitorGrantCreation["grant"];
6550
+ type VisitorGrantPage = JsonResponse<"listVisitorGrants", 200>;
6551
+ type VisitorItem = JsonResponse<"readVisitorItem", 200>;
6552
+ type VisitorChildren = JsonResponse<"listVisitorChildren", 200>;
6553
+ type VisitorSession = JsonResponse<"redeemVisitorInvitation", 200>;
6554
+ type CreateVisitorGrantInput = GetItemInput & {
6555
+ readonly command: JsonRequest<"createVisitorGrant">;
6556
+ readonly idempotencyKey: string;
6557
+ };
6558
+ type RevokeVisitorGrantInput = GetItemInput & {
6559
+ readonly grantId: string;
6560
+ };
6561
+ type GetVisitorGrantInput = GetItemInput & {
6562
+ readonly grantId: string;
6563
+ };
6564
+ interface VisitorReadInput {
6565
+ readonly itemId?: string;
6566
+ readonly signal?: AbortSignal;
6567
+ }
6568
+ interface VisitorChildrenInput extends VisitorReadInput {
6569
+ readonly after?: string;
6570
+ }
6571
+ interface VisitorDownloadInput extends VisitorReadInput {
6572
+ readonly method?: "GET" | "HEAD";
6573
+ readonly range?: string;
6574
+ }
6575
+ interface DriveVisitorClientConfig {
6576
+ readonly baseUrl: string;
6577
+ readonly token: string;
6578
+ readonly fetch?: typeof globalThis.fetch;
6579
+ readonly timeoutMilliseconds?: number;
6580
+ }
6581
+ interface DriveVisitorClient {
6582
+ readItem(input?: VisitorReadInput): Promise<DriveOperationResult<VisitorItem, 200>>;
6583
+ listChildren(input?: VisitorChildrenInput): Promise<DriveOperationResult<VisitorChildren, 200>>;
6584
+ createDownload(input?: VisitorDownloadInput): Promise<DriveOperationResult<ManagedDownloadDescriptor, 200>>;
6585
+ redeemInvitation(input: {
6586
+ readonly sessionToken: string;
6587
+ readonly signal?: AbortSignal;
6588
+ }): Promise<DriveOperationResult<VisitorSession, 200>>;
6589
+ }
5849
6590
  interface DriveServerClient extends DriveOperations {}
5850
6591
  interface DriveClient extends DriveOperations {
5851
6592
  uploadFile(input: UploadFileInput): Promise<DriveOperationResult<UploadCompletion, 200 | 202>>;
5852
6593
  }
5853
6594
  //#endregion
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 };
6595
+ export { PermissionGrant as $, GetItemVersionInput as A, VisitorGrant as At, ListItemSharingPeopleInput as B, WorkspaceUsage as Bt, DriveVisitorClientConfig as C, UploadPartDescriptor as Ct, FolderPage as D, VisitorChildren as Dt, FolderItem as E, UploadStatus as Et, IncomingSharePage as F, VisitorSession as Ft, ManagedItemMetadata as G, ListWorkspaceItemsInput as H, ItemSharingPeoplePage as I, WorkspaceDiscoveryItem as It, ManagedItemVersionResource as J, ManagedItemVersion as K, ListFolderChildrenInput as L, WorkspaceDiscoveryPage as Lt, GetVisitorGrantInput as M, VisitorGrantPage as Mt, GetWorkspaceUsageInput as N, VisitorItem as Nt, GetCurrentWorkspaceInput as O, VisitorChildrenInput as Ot, IncomingShareContext as P, VisitorReadInput as Pt, PermissionAction as Q, ListIncomingSharesInput as R, WorkspaceItemSearchItem as Rt, DriveVisitorClient as S, UploadFileProgressCallback as St, EffectivePermissionResponse as T, UploadSession as Tt, ManagedDownloadDescriptor as U, ListItemVersionsInput as V, operations as Vt, ManagedDownloadRestorePending as W, ManagedLifecycleItem as X, ManagedItemVersionRestoreResult as Y, PendingUpload as Z, DriveOperationResult as _, UploadCompletion as _t, CreateItemPermissionInput as a, ReadyUpload as at, DriveServerClient as b, UploadFilePhase as bt, CreateVisitorGrantInput as c, RegisteredRecipientDisplay as ct, DeleteItemInput as d, RevokeItemPermissionInput as dt, PermissionGrantee as et, DownloadItemResult as f, RevokeVisitorGrantInput as ft, DriveCredentialProvider as g, UpdateItemPermissionInput as gt, DriveCredentialContext as h, UpdateItemInput as ht, CreateFolderInput as i, ReadEffectiveItemPermissionsInput as it, GetUploadStatusInput as j, VisitorGrantCreation as jt, GetItemInput as k, VisitorDownloadInput as kt, CurrentWorkspace as l, RestoreItemInput as lt, DriveClientConfig as m, TrashItemInput as mt, CompleteUploadInput as n, PermissionPage as nt, CreateUploadInput as o, RecordUploadPartInput as ot, DriveClient as p, SearchWorkspaceItemsInput as pt, ManagedItemVersionPage as q, CreateDownloadInput as r, ProtectionClassification as rt, CreateUploadPartDescriptorInput as s, RegisterItemRecipientInput as st, AbortUploadInput as t, PermissionMutation as tt, CurrentWorkspaceSources as u, RestoreItemVersionInput as ut, DriveOperations as v, UploadConfirmedPart as vt, EffectivePermissionAction as w, UploadPartResult as wt, DriveServerClientConfig as x, UploadFileProgress as xt, DriveResponseValidators as y, UploadFileInput as yt, ListItemPermissionsInput as z, WorkspaceItemSearchPage as zt };