@finueva/drive 0.12.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;
@@ -499,7 +1293,7 @@ interface operations {
499
1293
  };
500
1294
  };
501
1295
  };
502
- /** @description The current workspace is not provisioned or accessible. */
1296
+ /** @description The item or destination is absent or undiscoverable. */
503
1297
  404: {
504
1298
  headers: {
505
1299
  [name: string]: unknown;
@@ -508,16 +1302,43 @@ interface operations {
508
1302
  "application/json": {
509
1303
  error: {
510
1304
  /** @enum {string} */
511
- code: "resource_not_found";
1305
+ code: "resource_not_found";
1306
+ details: Record<string, never>;
1307
+ /** @enum {string} */
1308
+ message: "The requested resource was not found.";
1309
+ requestId: string;
1310
+ };
1311
+ };
1312
+ };
1313
+ };
1314
+ /** @description The key conflicts, the precondition is stale, or lifecycle authority changed. */
1315
+ 409: {
1316
+ headers: {
1317
+ [name: string]: unknown;
1318
+ };
1319
+ content: {
1320
+ "application/json": {
1321
+ error: {
1322
+ /** @enum {string} */
1323
+ code: "idempotency_conflict";
1324
+ details: Record<string, never>;
1325
+ /** @enum {string} */
1326
+ message: "The idempotency key conflicts with an earlier request.";
1327
+ requestId: string;
1328
+ };
1329
+ } | {
1330
+ error: {
1331
+ /** @enum {string} */
1332
+ code: "precondition_failed";
512
1333
  details: Record<string, never>;
513
1334
  /** @enum {string} */
514
- message: "The requested resource was not found.";
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: {
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;
1466
2408
  [name: string]: unknown;
1467
2409
  };
1468
2410
  content: {
1469
2411
  "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;
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
  };
@@ -1974,10 +2864,28 @@ interface operations {
1974
2864
  "application/json": {
1975
2865
  error: {
1976
2866
  /** @enum {string} */
1977
- code: "resource_not_found";
2867
+ code: "resource_not_found";
2868
+ details: Record<string, never>;
2869
+ /** @enum {string} */
2870
+ message: "The requested resource was not found.";
2871
+ requestId: string;
2872
+ };
2873
+ };
2874
+ };
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";
1978
2886
  details: Record<string, never>;
1979
2887
  /** @enum {string} */
1980
- message: "The requested resource was not found.";
2888
+ message: "The idempotency key conflicts with an earlier request.";
1981
2889
  requestId: string;
1982
2890
  };
1983
2891
  };
@@ -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,95 +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
- /** @description Require the freshly resolved Auth user ID to match before creating a grant. A mismatch returns registration_conflict without mutation. */
3058
- expectedRecipientUserId?: string;
3059
- /** @enum {string} */
3060
- role: "viewer" | "editor";
3061
- };
3062
- };
3063
- };
3981
+ requestBody?: never;
3064
3982
  responses: {
3065
- /** @description Exact grant replay. */
3983
+ /** @description At most 50 versions in version-ID order with an opaque 15-minute continuation cursor. */
3066
3984
  200: {
3067
3985
  headers: {
3068
3986
  [name: string]: unknown;
3069
3987
  };
3070
3988
  content: {
3071
3989
  "application/json": {
3072
- collectionRevision: number;
3073
- grant: {
3074
- actions: ("items:content:read" | "items:create" | "items:delete" | "items:metadata:read" | "items:permissions:read" | "items:update")[];
3075
- /** @enum {string} */
3076
- availability: "active" | "expired" | "revoked";
3077
- expiresAtEpochMilliseconds: number | null;
3078
- grantId: string;
3079
- grantee: {
3080
- /** @enum {string} */
3081
- type: "user";
3082
- userId: string;
3083
- } | {
3084
- teamId: string;
3085
- /** @enum {string} */
3086
- type: "team";
3087
- };
3088
- revision: number;
3990
+ items: {
3089
3991
  /** @enum {string} */
3090
- source: "direct";
3091
- sourceItemId: string;
3092
- };
3093
- /** @enum {string} */
3094
- outcome: "committed" | "replayed";
3095
- };
3096
- };
3097
- };
3098
- /** @description Registered recipient grant created. */
3099
- 201: {
3100
- headers: {
3101
- [name: string]: unknown;
3102
- };
3103
- content: {
3104
- "application/json": {
3105
- collectionRevision: number;
3106
- grant: {
3107
- 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;
3108
4001
  /** @enum {string} */
3109
- availability: "active" | "expired" | "revoked";
3110
- expiresAtEpochMilliseconds: number | null;
3111
- grantId: string;
3112
- grantee: {
3113
- /** @enum {string} */
3114
- type: "user";
3115
- userId: string;
3116
- } | {
3117
- teamId: string;
3118
- /** @enum {string} */
3119
- type: "team";
3120
- };
4002
+ protectionClassification: "ordinary" | "opaque-encrypted";
3121
4003
  revision: number;
3122
4004
  /** @enum {string} */
3123
- source: "direct";
3124
- sourceItemId: string;
3125
- };
3126
- /** @enum {string} */
3127
- outcome: "committed" | "replayed";
4005
+ state: "current" | "superseded";
4006
+ versionId: string;
4007
+ }[];
4008
+ nextCursor: string | null;
3128
4009
  };
3129
4010
  };
3130
4011
  };
@@ -3146,7 +4027,7 @@ interface operations {
3146
4027
  };
3147
4028
  };
3148
4029
  };
3149
- /** @description The discoverable item does not permit this permission operation. */
4030
+ /** @description The discoverable item does not permit metadata reads. */
3150
4031
  403: {
3151
4032
  headers: {
3152
4033
  [name: string]: unknown;
@@ -3164,15 +4045,8 @@ interface operations {
3164
4045
  };
3165
4046
  };
3166
4047
  };
3167
- /** @description The item or registered recipient is unavailable. */
4048
+ /** @description The file is absent or undiscoverable. */
3168
4049
  404: {
3169
- headers: {
3170
- [name: string]: unknown;
3171
- };
3172
- content?: never;
3173
- };
3174
- /** @description Idempotency conflict or registration_conflict: the resolved recipient does not match the expected user. */
3175
- 409: {
3176
4050
  headers: {
3177
4051
  [name: string]: unknown;
3178
4052
  };
@@ -3180,26 +4054,17 @@ interface operations {
3180
4054
  "application/json": {
3181
4055
  error: {
3182
4056
  /** @enum {string} */
3183
- code: "idempotency_conflict";
3184
- details: Record<string, never>;
3185
- /** @enum {string} */
3186
- message: "The idempotency key conflicts with an earlier request.";
3187
- requestId: string;
3188
- };
3189
- } | {
3190
- error: {
3191
- /** @enum {string} */
3192
- code: "registration_conflict";
4057
+ code: "resource_not_found";
3193
4058
  details: Record<string, never>;
3194
4059
  /** @enum {string} */
3195
- message: "The recipient could not be confirmed.";
4060
+ message: "The requested resource was not found.";
3196
4061
  requestId: string;
3197
4062
  };
3198
4063
  };
3199
4064
  };
3200
4065
  };
3201
- /** @description The supplied revision or post-preflight authority is stale. */
3202
- 412: {
4066
+ /** @description Authorization changed after preflight. */
4067
+ 409: {
3203
4068
  headers: {
3204
4069
  [name: string]: unknown;
3205
4070
  };
@@ -3216,7 +4081,7 @@ interface operations {
3216
4081
  };
3217
4082
  };
3218
4083
  };
3219
- /** @description The path, query, headers, idempotency key, or body are invalid. */
4084
+ /** @description The path, query, duplicate query key, or unexpected body is invalid. */
3220
4085
  422: {
3221
4086
  headers: {
3222
4087
  [name: string]: unknown;
@@ -3231,26 +4096,10 @@ interface operations {
3231
4096
  message: "The request is invalid.";
3232
4097
  requestId: string;
3233
4098
  };
3234
- } | {
3235
- error: {
3236
- /** @enum {string} */
3237
- code: "invalid_idempotency_key";
3238
- details: Record<string, never>;
3239
- /** @enum {string} */
3240
- message: "The idempotency key is invalid.";
3241
- requestId: string;
3242
- };
3243
4099
  };
3244
4100
  };
3245
4101
  };
3246
- /** @description Recipient resolution rate limit exceeded. */
3247
- 429: {
3248
- headers: {
3249
- [name: string]: unknown;
3250
- };
3251
- content?: never;
3252
- };
3253
- /** @description Identity, D1, authorization, audit, cursor, or capacity authority is unavailable. */
4102
+ /** @description Identity, D1, or authorization authority is unavailable. */
3254
4103
  503: {
3255
4104
  headers: {
3256
4105
  [name: string]: unknown;
@@ -3279,62 +4128,44 @@ interface operations {
3279
4128
  };
3280
4129
  };
3281
4130
  };
3282
- listItemSharingPeople: {
4131
+ getItemVersion: {
3283
4132
  parameters: {
3284
- query?: {
3285
- limit?: number;
3286
- cursor?: string;
3287
- };
4133
+ query?: never;
3288
4134
  header?: never;
3289
4135
  path: {
3290
4136
  workspaceId: string;
3291
4137
  itemId: string;
4138
+ versionId: string;
3292
4139
  };
3293
4140
  cookie?: never;
3294
4141
  };
3295
4142
  requestBody?: never;
3296
4143
  responses: {
3297
- /** @description Canonical grant page; unavailable display is null and never authority. */
4144
+ /** @description The exact workspace/item-bound immutable managed file version. */
3298
4145
  200: {
3299
4146
  headers: {
3300
4147
  [name: string]: unknown;
3301
4148
  };
3302
4149
  content: {
3303
4150
  "application/json": {
3304
- collectionEtag: string;
3305
- collectionRevision: number;
3306
- items: ({
3307
- actions: ("items:content:read" | "items:create" | "items:delete" | "items:metadata:read" | "items:permissions:read" | "items:update")[];
3308
- /** @enum {string} */
3309
- availability: "active" | "expired" | "revoked";
3310
- etag: string;
3311
- expiresAtEpochMilliseconds: number | null;
3312
- grantId: string;
3313
- grantee: {
3314
- /** @enum {string} */
3315
- type: "user";
3316
- userId: string;
3317
- } | {
3318
- teamId: string;
3319
- /** @enum {string} */
3320
- type: "team";
3321
- };
3322
- revision: number;
3323
- /** @enum {string} */
3324
- source: "direct" | "inherited";
3325
- sourceItemId: string;
3326
- } & {
3327
- recipient: {
3328
- /** @description At most 320 UTF-8 bytes. */
3329
- email: string;
3330
- expiresAt: number;
3331
- /** @description At most 1024 UTF-8 bytes. */
3332
- name: string;
3333
- resolvedAt: number;
3334
- userId: string;
3335
- } | null;
3336
- })[];
3337
- 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;
3338
4169
  };
3339
4170
  };
3340
4171
  };
@@ -3356,7 +4187,7 @@ interface operations {
3356
4187
  };
3357
4188
  };
3358
4189
  };
3359
- /** @description The discoverable item does not permit this permission operation. */
4190
+ /** @description Managed storage is disabled for the discoverable file. */
3360
4191
  403: {
3361
4192
  headers: {
3362
4193
  [name: string]: unknown;
@@ -3374,15 +4205,8 @@ interface operations {
3374
4205
  };
3375
4206
  };
3376
4207
  };
3377
- /** @description The item or registered recipient is unavailable. */
4208
+ /** @description The file or version is absent, undiscoverable, unpublished, or deleting. */
3378
4209
  404: {
3379
- headers: {
3380
- [name: string]: unknown;
3381
- };
3382
- content?: never;
3383
- };
3384
- /** @description The idempotency key was reused for a different semantic request. */
3385
- 409: {
3386
4210
  headers: {
3387
4211
  [name: string]: unknown;
3388
4212
  };
@@ -3390,17 +4214,17 @@ interface operations {
3390
4214
  "application/json": {
3391
4215
  error: {
3392
4216
  /** @enum {string} */
3393
- code: "idempotency_conflict";
4217
+ code: "resource_not_found";
3394
4218
  details: Record<string, never>;
3395
4219
  /** @enum {string} */
3396
- message: "The idempotency key conflicts with an earlier request.";
4220
+ message: "The requested resource was not found.";
3397
4221
  requestId: string;
3398
4222
  };
3399
4223
  };
3400
4224
  };
3401
- };
3402
- /** @description The supplied revision or post-preflight authority is stale. */
3403
- 412: {
4225
+ };
4226
+ /** @description Authorization or version metadata changed after preflight. */
4227
+ 409: {
3404
4228
  headers: {
3405
4229
  [name: string]: unknown;
3406
4230
  };
@@ -3417,7 +4241,7 @@ interface operations {
3417
4241
  };
3418
4242
  };
3419
4243
  };
3420
- /** @description The path, query, headers, idempotency key, or body are invalid. */
4244
+ /** @description The path, query, or unexpected body is invalid. */
3421
4245
  422: {
3422
4246
  headers: {
3423
4247
  [name: string]: unknown;
@@ -3432,26 +4256,10 @@ interface operations {
3432
4256
  message: "The request is invalid.";
3433
4257
  requestId: string;
3434
4258
  };
3435
- } | {
3436
- error: {
3437
- /** @enum {string} */
3438
- code: "invalid_idempotency_key";
3439
- details: Record<string, never>;
3440
- /** @enum {string} */
3441
- message: "The idempotency key is invalid.";
3442
- requestId: string;
3443
- };
3444
4259
  };
3445
4260
  };
3446
4261
  };
3447
- /** @description Recipient resolution rate limit exceeded. */
3448
- 429: {
3449
- headers: {
3450
- [name: string]: unknown;
3451
- };
3452
- content?: never;
3453
- };
3454
- /** @description Identity, D1, authorization, audit, cursor, or capacity authority is unavailable. */
4262
+ /** @description Identity, D1, authorization, capacity, or managed authority is unavailable. */
3455
4263
  503: {
3456
4264
  headers: {
3457
4265
  [name: string]: unknown;
@@ -3480,7 +4288,7 @@ interface operations {
3480
4288
  };
3481
4289
  };
3482
4290
  };
3483
- trashItem: {
4291
+ restoreItemVersion: {
3484
4292
  parameters: {
3485
4293
  query?: never;
3486
4294
  header: {
@@ -3490,12 +4298,13 @@ interface operations {
3490
4298
  path: {
3491
4299
  workspaceId: string;
3492
4300
  itemId: string;
4301
+ versionId: string;
3493
4302
  };
3494
4303
  cookie?: never;
3495
4304
  };
3496
4305
  requestBody?: never;
3497
4306
  responses: {
3498
- /** @description The managed item was trashed or exactly replayed. */
4307
+ /** @description The selected version is current or the exact result was replayed. */
3499
4308
  200: {
3500
4309
  headers: {
3501
4310
  /** @description Strong precondition for the next item mutation. */
@@ -3504,17 +4313,8 @@ interface operations {
3504
4313
  };
3505
4314
  content: {
3506
4315
  "application/json": {
3507
- itemId: string;
3508
- /** @enum {string} */
3509
- kind: "file" | "folder";
3510
- name: string;
3511
- parentItemId: string;
3512
- purgeAfterEpochMilliseconds: number | null;
3513
- revision: number;
3514
- /** @enum {string} */
3515
- state: "active" | "trashed" | "deleting";
3516
- volumeId: string;
3517
- workspaceId: string;
4316
+ currentVersionId: string;
4317
+ itemRevision: number;
3518
4318
  };
3519
4319
  };
3520
4320
  };
@@ -3655,12 +4455,9 @@ interface operations {
3655
4455
  };
3656
4456
  };
3657
4457
  };
3658
- listItemVersions: {
4458
+ listVisitorGrants: {
3659
4459
  parameters: {
3660
- query?: {
3661
- limit?: number;
3662
- cursor?: string;
3663
- };
4460
+ query?: never;
3664
4461
  header?: never;
3665
4462
  path: {
3666
4463
  workspaceId: string;
@@ -3670,7 +4467,7 @@ interface operations {
3670
4467
  };
3671
4468
  requestBody?: never;
3672
4469
  responses: {
3673
- /** @description At most 50 versions in version-ID order with an opaque 15-minute continuation cursor. */
4470
+ /** @description Bounded visitor grant list without tokens. */
3674
4471
  200: {
3675
4472
  headers: {
3676
4473
  [name: string]: unknown;
@@ -3678,470 +4475,355 @@ interface operations {
3678
4475
  content: {
3679
4476
  "application/json": {
3680
4477
  items: {
4478
+ createdAt: number;
4479
+ email: string | null;
4480
+ expiresAt: number;
4481
+ /** Format: uuid */
4482
+ grantId: string;
3681
4483
  /** @enum {string} */
3682
- archiveState: "available" | "cold" | "restoring" | "unavailable" | "corrupt";
3683
- byteLength: number;
3684
- contentDigest: string;
3685
- /**
3686
- * Format: finueva-safe-filename
3687
- * @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.
3688
- */
3689
- displayFilename: string;
3690
- mediaType: string;
4484
+ mode: "anyone" | "email";
3691
4485
  /** @enum {string} */
3692
- protectionClassification: "ordinary" | "opaque-encrypted";
3693
- revision: number;
4486
+ role: "viewer";
3694
4487
  /** @enum {string} */
3695
- state: "current" | "superseded";
3696
- versionId: string;
4488
+ source: "direct" | "inherited";
4489
+ sourceItemId: string;
4490
+ /** @enum {string} */
4491
+ status: "pending" | "active" | "expired" | "revoked";
3697
4492
  }[];
3698
- nextCursor: string | null;
3699
4493
  };
3700
4494
  };
3701
4495
  };
3702
- /** @description A valid Drive user bearer credential is required. */
4496
+ /** @description Drive user bearer required. */
3703
4497
  401: {
3704
4498
  headers: {
3705
4499
  [name: string]: unknown;
3706
4500
  };
3707
- content: {
3708
- "application/json": {
3709
- error: {
3710
- /** @enum {string} */
3711
- code: "authentication_required";
3712
- details: Record<string, never>;
3713
- /** @enum {string} */
3714
- message: "Authentication is required.";
3715
- requestId: string;
3716
- };
3717
- };
3718
- };
4501
+ content?: never;
3719
4502
  };
3720
- /** @description The discoverable item does not permit metadata reads. */
4503
+ /** @description Current item manager authority required. */
3721
4504
  403: {
3722
4505
  headers: {
3723
4506
  [name: string]: unknown;
3724
4507
  };
3725
- content: {
3726
- "application/json": {
3727
- error: {
3728
- /** @enum {string} */
3729
- code: "permission_denied";
3730
- details: Record<string, never>;
3731
- /** @enum {string} */
3732
- message: "The requested action is not permitted.";
3733
- requestId: string;
3734
- };
3735
- };
3736
- };
4508
+ content?: never;
3737
4509
  };
3738
- /** @description The file is absent or undiscoverable. */
4510
+ /** @description Capability or resource unavailable. */
3739
4511
  404: {
3740
4512
  headers: {
3741
4513
  [name: string]: unknown;
3742
4514
  };
3743
- content: {
3744
- "application/json": {
3745
- error: {
3746
- /** @enum {string} */
3747
- code: "resource_not_found";
3748
- details: Record<string, never>;
3749
- /** @enum {string} */
3750
- message: "The requested resource was not found.";
3751
- requestId: string;
3752
- };
3753
- };
3754
- };
4515
+ content?: never;
3755
4516
  };
3756
- /** @description Authorization changed after preflight. */
4517
+ /** @description Conflicting request identity. */
3757
4518
  409: {
3758
4519
  headers: {
3759
4520
  [name: string]: unknown;
3760
4521
  };
3761
- content: {
3762
- "application/json": {
3763
- error: {
3764
- /** @enum {string} */
3765
- code: "precondition_failed";
3766
- details: Record<string, never>;
3767
- /** @enum {string} */
3768
- message: "The request precondition failed.";
3769
- requestId: string;
3770
- };
3771
- };
3772
- };
4522
+ content?: never;
3773
4523
  };
3774
- /** @description The path, query, duplicate query key, or unexpected body is invalid. */
4524
+ /** @description Invalid request; visitor roles are viewer only. */
3775
4525
  422: {
3776
4526
  headers: {
3777
4527
  [name: string]: unknown;
3778
4528
  };
3779
- content: {
3780
- "application/json": {
3781
- error: {
3782
- /** @enum {string} */
3783
- code: "invalid_request";
3784
- details: Record<string, never>;
3785
- /** @enum {string} */
3786
- message: "The request is invalid.";
3787
- requestId: string;
3788
- };
3789
- };
4529
+ content?: never;
4530
+ };
4531
+ /** @description Bounded admission exhausted; retry after one minute. */
4532
+ 429: {
4533
+ headers: {
4534
+ [name: string]: unknown;
3790
4535
  };
4536
+ content?: never;
3791
4537
  };
3792
- /** @description Identity, D1, or authorization authority is unavailable. */
4538
+ /** @description Service unavailable. */
3793
4539
  503: {
3794
4540
  headers: {
3795
4541
  [name: string]: unknown;
3796
4542
  };
3797
- content: {
3798
- "application/json": {
3799
- error: {
3800
- /** @enum {string} */
3801
- code: "identity_authority_unavailable";
3802
- details: Record<string, never>;
3803
- /** @enum {string} */
3804
- message: "Authentication is temporarily unavailable.";
3805
- requestId: string;
3806
- };
3807
- } | {
3808
- error: {
3809
- /** @enum {string} */
3810
- code: "service_unavailable";
3811
- details: Record<string, never>;
3812
- /** @enum {string} */
3813
- message: "The service is temporarily unavailable.";
3814
- requestId: string;
3815
- };
3816
- };
3817
- };
4543
+ content?: never;
3818
4544
  };
3819
4545
  };
3820
4546
  };
3821
- getItemVersion: {
4547
+ createVisitorGrant: {
3822
4548
  parameters: {
3823
4549
  query?: never;
3824
- header?: never;
4550
+ header: {
4551
+ "Idempotency-Key": string;
4552
+ };
3825
4553
  path: {
3826
4554
  workspaceId: string;
3827
4555
  itemId: string;
3828
- versionId: string;
3829
4556
  };
3830
4557
  cookie?: never;
3831
4558
  };
3832
- 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
+ };
3833
4577
  responses: {
3834
- /** @description The exact workspace/item-bound immutable managed file version. */
4578
+ /** @description Idempotent grant and confidential dispatch token; email does not enable public access. */
3835
4579
  200: {
3836
4580
  headers: {
3837
4581
  [name: string]: unknown;
3838
4582
  };
3839
4583
  content: {
3840
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;
3841
4599
  /** @enum {string} */
3842
- archiveState: "available" | "cold" | "restoring" | "unavailable" | "corrupt";
3843
- byteLength: number;
3844
- contentDigest: string;
3845
- /**
3846
- * Format: finueva-safe-filename
3847
- * @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.
3848
- */
3849
- displayFilename: string;
3850
- itemId: string;
3851
- mediaType: string;
3852
- /** @enum {string} */
3853
- protectionClassification: "ordinary" | "opaque-encrypted";
3854
- revision: number;
3855
- /** @enum {string} */
3856
- state: "current" | "superseded";
3857
- versionId: string;
3858
- workspaceId: string;
4600
+ tokenPurpose: "view" | "verify-email";
3859
4601
  };
3860
4602
  };
3861
4603
  };
3862
- /** @description A valid Drive user bearer credential is required. */
3863
- 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: {
3864
4670
  headers: {
3865
4671
  [name: string]: unknown;
3866
4672
  };
3867
4673
  content: {
3868
4674
  "application/json": {
3869
- error: {
4675
+ grant: {
4676
+ createdAt: number;
4677
+ email: string | null;
4678
+ expiresAt: number;
4679
+ /** Format: uuid */
4680
+ grantId: string;
3870
4681
  /** @enum {string} */
3871
- code: "authentication_required";
3872
- details: Record<string, never>;
4682
+ mode: "anyone" | "email";
3873
4683
  /** @enum {string} */
3874
- message: "Authentication is required.";
3875
- requestId: string;
4684
+ role: "viewer";
4685
+ /** @enum {string} */
4686
+ status: "pending" | "active" | "expired" | "revoked";
3876
4687
  };
4688
+ token: string | null;
4689
+ /** @enum {string} */
4690
+ tokenPurpose: "view" | "verify-email";
3877
4691
  };
3878
4692
  };
3879
4693
  };
3880
- /** @description Managed storage is disabled for the discoverable file. */
3881
- 403: {
4694
+ /** @description Drive user bearer required. */
4695
+ 401: {
3882
4696
  headers: {
3883
4697
  [name: string]: unknown;
3884
4698
  };
3885
- content: {
3886
- "application/json": {
3887
- error: {
3888
- /** @enum {string} */
3889
- code: "permission_denied";
3890
- details: Record<string, never>;
3891
- /** @enum {string} */
3892
- message: "The requested action is not permitted.";
3893
- requestId: string;
3894
- };
3895
- };
4699
+ content?: never;
4700
+ };
4701
+ /** @description Current item manager authority required. */
4702
+ 403: {
4703
+ headers: {
4704
+ [name: string]: unknown;
3896
4705
  };
4706
+ content?: never;
3897
4707
  };
3898
- /** @description The file or version is absent, undiscoverable, unpublished, or deleting. */
4708
+ /** @description Capability or resource unavailable. */
3899
4709
  404: {
3900
4710
  headers: {
3901
4711
  [name: string]: unknown;
3902
4712
  };
3903
- content: {
3904
- "application/json": {
3905
- error: {
3906
- /** @enum {string} */
3907
- code: "resource_not_found";
3908
- details: Record<string, never>;
3909
- /** @enum {string} */
3910
- message: "The requested resource was not found.";
3911
- requestId: string;
3912
- };
3913
- };
3914
- };
4713
+ content?: never;
3915
4714
  };
3916
- /** @description Authorization or version metadata changed after preflight. */
4715
+ /** @description Conflicting request identity. */
3917
4716
  409: {
3918
4717
  headers: {
3919
4718
  [name: string]: unknown;
3920
4719
  };
3921
- content: {
3922
- "application/json": {
3923
- error: {
3924
- /** @enum {string} */
3925
- code: "precondition_failed";
3926
- details: Record<string, never>;
3927
- /** @enum {string} */
3928
- message: "The request precondition failed.";
3929
- requestId: string;
3930
- };
3931
- };
3932
- };
4720
+ content?: never;
3933
4721
  };
3934
- /** @description The path, query, or unexpected body is invalid. */
4722
+ /** @description Invalid request; visitor roles are viewer only. */
3935
4723
  422: {
3936
4724
  headers: {
3937
4725
  [name: string]: unknown;
3938
4726
  };
3939
- content: {
3940
- "application/json": {
3941
- error: {
3942
- /** @enum {string} */
3943
- code: "invalid_request";
3944
- details: Record<string, never>;
3945
- /** @enum {string} */
3946
- message: "The request is invalid.";
3947
- requestId: string;
3948
- };
3949
- };
4727
+ content?: never;
4728
+ };
4729
+ /** @description Bounded admission exhausted; retry after one minute. */
4730
+ 429: {
4731
+ headers: {
4732
+ [name: string]: unknown;
3950
4733
  };
4734
+ content?: never;
3951
4735
  };
3952
- /** @description Identity, D1, authorization, capacity, or managed authority is unavailable. */
4736
+ /** @description Service unavailable. */
3953
4737
  503: {
3954
4738
  headers: {
3955
4739
  [name: string]: unknown;
3956
4740
  };
3957
- content: {
3958
- "application/json": {
3959
- error: {
3960
- /** @enum {string} */
3961
- code: "identity_authority_unavailable";
3962
- details: Record<string, never>;
3963
- /** @enum {string} */
3964
- message: "Authentication is temporarily unavailable.";
3965
- requestId: string;
3966
- };
3967
- } | {
3968
- error: {
3969
- /** @enum {string} */
3970
- code: "service_unavailable";
3971
- details: Record<string, never>;
3972
- /** @enum {string} */
3973
- message: "The service is temporarily unavailable.";
3974
- requestId: string;
3975
- };
3976
- };
3977
- };
4741
+ content?: never;
3978
4742
  };
3979
4743
  };
3980
4744
  };
3981
- restoreItemVersion: {
4745
+ revokeVisitorGrant: {
3982
4746
  parameters: {
3983
4747
  query?: never;
3984
- header: {
3985
- "Idempotency-Key": string;
3986
- "If-Match": string;
3987
- };
4748
+ header?: never;
3988
4749
  path: {
3989
4750
  workspaceId: string;
3990
4751
  itemId: string;
3991
- versionId: string;
4752
+ grantId: string;
3992
4753
  };
3993
4754
  cookie?: never;
3994
4755
  };
3995
4756
  requestBody?: never;
3996
4757
  responses: {
3997
- /** @description The selected version is current or the exact result was replayed. */
4758
+ /** @description Revoked grant. */
3998
4759
  200: {
3999
4760
  headers: {
4000
- /** @description Strong precondition for the next item mutation. */
4001
- ETag?: string;
4002
4761
  [name: string]: unknown;
4003
4762
  };
4004
4763
  content: {
4005
4764
  "application/json": {
4006
- currentVersionId: string;
4007
- 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";
4008
4776
  };
4009
4777
  };
4010
4778
  };
4011
- /** @description A valid Drive user bearer credential is required. */
4779
+ /** @description Drive user bearer required. */
4012
4780
  401: {
4013
4781
  headers: {
4014
4782
  [name: string]: unknown;
4015
4783
  };
4016
- content: {
4017
- "application/json": {
4018
- error: {
4019
- /** @enum {string} */
4020
- code: "authentication_required";
4021
- details: Record<string, never>;
4022
- /** @enum {string} */
4023
- message: "Authentication is required.";
4024
- requestId: string;
4025
- };
4026
- };
4027
- };
4784
+ content?: never;
4028
4785
  };
4029
- /** @description The discoverable item does not permit this lifecycle action. */
4786
+ /** @description Current item manager authority required. */
4030
4787
  403: {
4031
4788
  headers: {
4032
4789
  [name: string]: unknown;
4033
4790
  };
4034
- content: {
4035
- "application/json": {
4036
- error: {
4037
- /** @enum {string} */
4038
- code: "permission_denied";
4039
- details: Record<string, never>;
4040
- /** @enum {string} */
4041
- message: "The requested action is not permitted.";
4042
- requestId: string;
4043
- };
4044
- };
4045
- };
4791
+ content?: never;
4046
4792
  };
4047
- /** @description The item or destination is absent or undiscoverable. */
4793
+ /** @description Capability or resource unavailable. */
4048
4794
  404: {
4049
4795
  headers: {
4050
4796
  [name: string]: unknown;
4051
4797
  };
4052
- content: {
4053
- "application/json": {
4054
- error: {
4055
- /** @enum {string} */
4056
- code: "resource_not_found";
4057
- details: Record<string, never>;
4058
- /** @enum {string} */
4059
- message: "The requested resource was not found.";
4060
- requestId: string;
4061
- };
4062
- };
4063
- };
4798
+ content?: never;
4064
4799
  };
4065
- /** @description The key conflicts, the precondition is stale, or lifecycle authority changed. */
4800
+ /** @description Conflicting request identity. */
4066
4801
  409: {
4067
4802
  headers: {
4068
4803
  [name: string]: unknown;
4069
4804
  };
4070
- content: {
4071
- "application/json": {
4072
- error: {
4073
- /** @enum {string} */
4074
- code: "idempotency_conflict";
4075
- details: Record<string, never>;
4076
- /** @enum {string} */
4077
- message: "The idempotency key conflicts with an earlier request.";
4078
- requestId: string;
4079
- };
4080
- } | {
4081
- error: {
4082
- /** @enum {string} */
4083
- code: "precondition_failed";
4084
- details: Record<string, never>;
4085
- /** @enum {string} */
4086
- message: "The request precondition failed.";
4087
- requestId: string;
4088
- };
4089
- };
4090
- };
4805
+ content?: never;
4091
4806
  };
4092
- /** @description The path, query, headers, key, or strict body is invalid. */
4807
+ /** @description Invalid request; visitor roles are viewer only. */
4093
4808
  422: {
4094
4809
  headers: {
4095
4810
  [name: string]: unknown;
4096
4811
  };
4097
- content: {
4098
- "application/json": {
4099
- error: {
4100
- /** @enum {string} */
4101
- code: "invalid_request";
4102
- details: Record<string, never>;
4103
- /** @enum {string} */
4104
- message: "The request is invalid.";
4105
- requestId: string;
4106
- };
4107
- } | {
4108
- error: {
4109
- /** @enum {string} */
4110
- code: "invalid_idempotency_key";
4111
- details: Record<string, never>;
4112
- /** @enum {string} */
4113
- message: "The idempotency key is invalid.";
4114
- requestId: string;
4115
- };
4116
- };
4812
+ content?: never;
4813
+ };
4814
+ /** @description Bounded admission exhausted; retry after one minute. */
4815
+ 429: {
4816
+ headers: {
4817
+ [name: string]: unknown;
4117
4818
  };
4819
+ content?: never;
4118
4820
  };
4119
- /** @description Identity, D1, authorization, capacity, or archive authority is unavailable. */
4821
+ /** @description Service unavailable. */
4120
4822
  503: {
4121
4823
  headers: {
4122
4824
  [name: string]: unknown;
4123
4825
  };
4124
- content: {
4125
- "application/json": {
4126
- error: {
4127
- /** @enum {string} */
4128
- code: "identity_authority_unavailable";
4129
- details: Record<string, never>;
4130
- /** @enum {string} */
4131
- message: "Authentication is temporarily unavailable.";
4132
- requestId: string;
4133
- };
4134
- } | {
4135
- error: {
4136
- /** @enum {string} */
4137
- code: "service_unavailable";
4138
- details: Record<string, never>;
4139
- /** @enum {string} */
4140
- message: "The service is temporarily unavailable.";
4141
- requestId: string;
4142
- };
4143
- };
4144
- };
4826
+ content?: never;
4145
4827
  };
4146
4828
  };
4147
4829
  };
@@ -5827,6 +6509,10 @@ interface GetCurrentWorkspaceInput {
5827
6509
  readonly signal?: AbortSignal;
5828
6510
  }
5829
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>>;
5830
6516
  registerItemRecipient(input: RegisterItemRecipientInput): Promise<DriveOperationResult<PermissionMutation, 200 | 201>>;
5831
6517
  listItemSharingPeople(input: ListItemSharingPeopleInput): Promise<DriveOperationResult<ItemSharingPeoplePage, 200>>;
5832
6518
  listIncomingShares(input?: ListIncomingSharesInput): Promise<DriveOperationResult<IncomingSharePage, 200>>;
@@ -5859,9 +6545,51 @@ interface DriveOperations {
5859
6545
  completeUpload(input: CompleteUploadInput): Promise<DriveOperationResult<UploadCompletion, 200 | 202>>;
5860
6546
  abortUpload(input: AbortUploadInput): Promise<DriveOperationResult<undefined, 204>>;
5861
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
+ }
5862
6590
  interface DriveServerClient extends DriveOperations {}
5863
6591
  interface DriveClient extends DriveOperations {
5864
6592
  uploadFile(input: UploadFileInput): Promise<DriveOperationResult<UploadCompletion, 200 | 202>>;
5865
6593
  }
5866
6594
  //#endregion
5867
- 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 };