@finueva/drive 0.22.0 → 0.24.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.
@@ -289,6 +289,278 @@ interface operations {
289
289
  };
290
290
  };
291
291
  };
292
+ prepareVerifiedTransfer: {
293
+ parameters: {
294
+ query?: never;
295
+ header?: never;
296
+ path?: never;
297
+ cookie?: never;
298
+ };
299
+ requestBody: {
300
+ content: {
301
+ "application/json": {
302
+ byteLength: number;
303
+ idempotencyKey: string;
304
+ mediaType: string;
305
+ /** @enum {string} */
306
+ protectionClassification: "ordinary" | "opaque-encrypted";
307
+ sha256: string;
308
+ target: {
309
+ name: string;
310
+ parentItemId: string;
311
+ /** @constant */
312
+ type: "create";
313
+ } | {
314
+ currentVersionId: string;
315
+ itemId: string;
316
+ /** @constant */
317
+ type: "replace";
318
+ };
319
+ workspaceId: string;
320
+ };
321
+ };
322
+ };
323
+ responses: {
324
+ /** @description Current canonical transfer admission or exact replay result. */
325
+ 200: {
326
+ headers: {
327
+ [name: string]: unknown;
328
+ };
329
+ content: {
330
+ "application/json": {
331
+ capability: {
332
+ expiresInSeconds: number;
333
+ headers: {
334
+ [key: string]: string;
335
+ };
336
+ /** @constant */
337
+ method: "PUT";
338
+ /** @constant */
339
+ outcome: "presigned";
340
+ /** Format: uri */
341
+ url: string;
342
+ };
343
+ expiresAt: number;
344
+ itemId: string;
345
+ /** @constant */
346
+ outcome: "admitted";
347
+ transferId: string;
348
+ versionId: string;
349
+ } | {
350
+ /** @constant */
351
+ outcome: "recovery_required";
352
+ transferId: string;
353
+ } | {
354
+ byteLength: number;
355
+ etag: string;
356
+ item: {
357
+ creatorUserId: string | null;
358
+ name: string | null;
359
+ ownerUserId: string | null;
360
+ parentItemId: string | null;
361
+ revision: number;
362
+ /** @enum {string} */
363
+ visibility: "workspace" | "restricted";
364
+ };
365
+ itemId: string;
366
+ mediaType: string;
367
+ /** @constant */
368
+ outcome: "published";
369
+ /** @enum {string} */
370
+ protectionClassification: "ordinary" | "opaque-encrypted";
371
+ sha256: string;
372
+ transferId: string;
373
+ versionId: string;
374
+ workspaceId: string;
375
+ };
376
+ };
377
+ };
378
+ /** @description Current workspace credential required. */
379
+ 401: {
380
+ headers: {
381
+ [name: string]: unknown;
382
+ };
383
+ content?: never;
384
+ };
385
+ /** @description The original transfer operation has retired and cannot be recreated. */
386
+ 409: {
387
+ headers: {
388
+ [name: string]: unknown;
389
+ };
390
+ content?: never;
391
+ };
392
+ /** @description Invalid or oversized transfer identity. */
393
+ 422: {
394
+ headers: {
395
+ [name: string]: unknown;
396
+ };
397
+ content?: never;
398
+ };
399
+ /** @description Current authority, persistence or provider proof unavailable. */
400
+ 503: {
401
+ headers: {
402
+ [name: string]: unknown;
403
+ };
404
+ content?: never;
405
+ };
406
+ };
407
+ };
408
+ publishVerifiedTransfer: {
409
+ parameters: {
410
+ query?: never;
411
+ header?: never;
412
+ path: {
413
+ transferId: string;
414
+ };
415
+ cookie?: never;
416
+ };
417
+ requestBody: {
418
+ content: {
419
+ "application/json": {
420
+ etag?: string;
421
+ idempotencyKey: string;
422
+ workspaceId: string;
423
+ };
424
+ };
425
+ };
426
+ responses: {
427
+ /** @description Verified current immutable version and metadata from its publication transaction. */
428
+ 200: {
429
+ headers: {
430
+ [name: string]: unknown;
431
+ };
432
+ content: {
433
+ "application/json": {
434
+ byteLength: number;
435
+ etag: string;
436
+ item: {
437
+ creatorUserId: string | null;
438
+ name: string | null;
439
+ ownerUserId: string | null;
440
+ parentItemId: string | null;
441
+ revision: number;
442
+ /** @enum {string} */
443
+ visibility: "workspace" | "restricted";
444
+ };
445
+ itemId: string;
446
+ mediaType: string;
447
+ /** @constant */
448
+ outcome: "published";
449
+ /** @enum {string} */
450
+ protectionClassification: "ordinary" | "opaque-encrypted";
451
+ sha256: string;
452
+ transferId: string;
453
+ versionId: string;
454
+ workspaceId: string;
455
+ };
456
+ };
457
+ };
458
+ /** @description Current workspace credential required. */
459
+ 401: {
460
+ headers: {
461
+ [name: string]: unknown;
462
+ };
463
+ content?: never;
464
+ };
465
+ /** @description The original transfer operation has retired and cannot be recreated. */
466
+ 409: {
467
+ headers: {
468
+ [name: string]: unknown;
469
+ };
470
+ content?: never;
471
+ };
472
+ /** @description Invalid or oversized transfer identity. */
473
+ 422: {
474
+ headers: {
475
+ [name: string]: unknown;
476
+ };
477
+ content?: never;
478
+ };
479
+ /** @description Current authority, persistence or provider proof unavailable. */
480
+ 503: {
481
+ headers: {
482
+ [name: string]: unknown;
483
+ };
484
+ content?: never;
485
+ };
486
+ };
487
+ };
488
+ recoverVerifiedTransfer: {
489
+ parameters: {
490
+ query?: never;
491
+ header?: never;
492
+ path: {
493
+ transferId: string;
494
+ };
495
+ cookie?: never;
496
+ };
497
+ requestBody: {
498
+ content: {
499
+ "application/json": {
500
+ idempotencyKey: string;
501
+ workspaceId: string;
502
+ };
503
+ };
504
+ };
505
+ responses: {
506
+ /** @description Original immutable capability after fresh current disclosure authorization. */
507
+ 200: {
508
+ headers: {
509
+ [name: string]: unknown;
510
+ };
511
+ content: {
512
+ "application/json": {
513
+ capability: {
514
+ expiresInSeconds: number;
515
+ headers: {
516
+ [key: string]: string;
517
+ };
518
+ /** @constant */
519
+ method: "PUT";
520
+ /** @constant */
521
+ outcome: "presigned";
522
+ /** Format: uri */
523
+ url: string;
524
+ };
525
+ expiresAt: number;
526
+ itemId: string;
527
+ /** @constant */
528
+ outcome: "admitted";
529
+ transferId: string;
530
+ versionId: string;
531
+ };
532
+ };
533
+ };
534
+ /** @description Current workspace credential required. */
535
+ 401: {
536
+ headers: {
537
+ [name: string]: unknown;
538
+ };
539
+ content?: never;
540
+ };
541
+ /** @description The original transfer operation has retired and cannot be recreated. */
542
+ 409: {
543
+ headers: {
544
+ [name: string]: unknown;
545
+ };
546
+ content?: never;
547
+ };
548
+ /** @description Invalid or oversized transfer identity. */
549
+ 422: {
550
+ headers: {
551
+ [name: string]: unknown;
552
+ };
553
+ content?: never;
554
+ };
555
+ /** @description Current authority, persistence or provider proof unavailable. */
556
+ 503: {
557
+ headers: {
558
+ [name: string]: unknown;
559
+ };
560
+ content?: never;
561
+ };
562
+ };
563
+ };
292
564
  listVisitorChildren: {
293
565
  parameters: {
294
566
  query?: {
@@ -5490,220 +5762,58 @@ interface operations {
5490
5762
  };
5491
5763
  };
5492
5764
  };
5493
- createFileVersionUpload: {
5765
+ listItemVersions: {
5494
5766
  parameters: {
5495
- query?: never;
5496
- header: {
5497
- "Idempotency-Key": string;
5498
- "If-Match": string;
5767
+ query?: {
5768
+ limit?: number;
5769
+ cursor?: string;
5499
5770
  };
5771
+ header?: never;
5500
5772
  path: {
5501
5773
  workspaceId: string;
5502
5774
  itemId: string;
5503
5775
  };
5504
5776
  cookie?: never;
5505
5777
  };
5506
- requestBody: {
5507
- content: {
5508
- "application/json": {
5509
- byteLength: number;
5510
- contentMd5?: string;
5511
- digest: string;
5512
- expectedVersionId: string;
5513
- };
5514
- };
5515
- };
5778
+ requestBody?: never;
5516
5779
  responses: {
5517
- /** @description Exact replay of the admitted checkpoint upload. */
5780
+ /** @description At most 50 versions in version-ID order with an opaque 15-minute continuation cursor. */
5518
5781
  200: {
5519
5782
  headers: {
5520
5783
  [name: string]: unknown;
5521
5784
  };
5522
5785
  content: {
5523
5786
  "application/json": {
5524
- expiresAtEpochMilliseconds: number;
5525
- itemId: string;
5526
- /** @enum {string} */
5527
- mode: "presigned-multipart" | "server-mediated-zero-byte" | "presigned-single";
5528
- /** @enum {number} */
5529
- partByteLength: 33554432;
5530
- partCount: number;
5531
- revision: number;
5532
- singleUpload?: {
5533
- descriptor: {
5534
- expectedByteLength: number;
5535
- expiresAtEpochMilliseconds: number;
5536
- headers: {
5537
- "content-md5": string;
5538
- "content-type": string;
5539
- /** @enum {string} */
5540
- "if-none-match": "*";
5541
- } | {
5542
- "content-md5": string;
5543
- "content-type": string;
5544
- /** @enum {string} */
5545
- "if-none-match": "*";
5546
- /** @enum {string} */
5547
- "x-amz-server-side-encryption-customer-algorithm": "AES256";
5548
- "x-amz-server-side-encryption-customer-key": string;
5549
- "x-amz-server-side-encryption-customer-key-md5": string;
5550
- };
5551
- /** @enum {string} */
5552
- method: "PUT";
5553
- /** Format: uri */
5554
- url: string;
5555
- } | null;
5787
+ items: {
5556
5788
  /** @enum {string} */
5557
- state: "uploading" | "completing" | "ready";
5558
- };
5559
- uploadId: string;
5560
- versionId: string;
5789
+ archiveState: "available" | "cold" | "restoring" | "unavailable" | "corrupt";
5790
+ byteLength: number;
5791
+ contentDigest: string;
5792
+ /**
5793
+ * Format: finueva-safe-filename
5794
+ * @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.
5795
+ */
5796
+ displayFilename: string;
5797
+ mediaType: string;
5798
+ /** @enum {string} */
5799
+ protectionClassification: "ordinary" | "opaque-encrypted";
5800
+ revision: number;
5801
+ /** @enum {string} */
5802
+ state: "current" | "superseded";
5803
+ versionId: string;
5804
+ }[];
5805
+ nextCursor: string | null;
5561
5806
  };
5562
5807
  };
5563
5808
  };
5564
- /** @description New checkpoint upload using ordinary archive multipart operations. */
5565
- 201: {
5809
+ /** @description A valid Drive user bearer credential is required. */
5810
+ 401: {
5566
5811
  headers: {
5567
5812
  [name: string]: unknown;
5568
5813
  };
5569
5814
  content: {
5570
5815
  "application/json": {
5571
- expiresAtEpochMilliseconds: number;
5572
- itemId: string;
5573
- /** @enum {string} */
5574
- mode: "presigned-multipart" | "server-mediated-zero-byte" | "presigned-single";
5575
- /** @enum {number} */
5576
- partByteLength: 33554432;
5577
- partCount: number;
5578
- revision: number;
5579
- singleUpload?: {
5580
- descriptor: {
5581
- expectedByteLength: number;
5582
- expiresAtEpochMilliseconds: number;
5583
- headers: {
5584
- "content-md5": string;
5585
- "content-type": string;
5586
- /** @enum {string} */
5587
- "if-none-match": "*";
5588
- } | {
5589
- "content-md5": string;
5590
- "content-type": string;
5591
- /** @enum {string} */
5592
- "if-none-match": "*";
5593
- /** @enum {string} */
5594
- "x-amz-server-side-encryption-customer-algorithm": "AES256";
5595
- "x-amz-server-side-encryption-customer-key": string;
5596
- "x-amz-server-side-encryption-customer-key-md5": string;
5597
- };
5598
- /** @enum {string} */
5599
- method: "PUT";
5600
- /** Format: uri */
5601
- url: string;
5602
- } | null;
5603
- /** @enum {string} */
5604
- state: "uploading" | "completing" | "ready";
5605
- };
5606
- uploadId: string;
5607
- versionId: string;
5608
- };
5609
- };
5610
- };
5611
- /** @description Drive user authentication required. */
5612
- 401: {
5613
- headers: {
5614
- [name: string]: unknown;
5615
- };
5616
- content?: never;
5617
- };
5618
- /** @description Current file update permission required. */
5619
- 403: {
5620
- headers: {
5621
- [name: string]: unknown;
5622
- };
5623
- content?: never;
5624
- };
5625
- /** @description File or upload unavailable. */
5626
- 404: {
5627
- headers: {
5628
- [name: string]: unknown;
5629
- };
5630
- content?: never;
5631
- };
5632
- /** @description Expected version, quota or idempotency conflict. */
5633
- 409: {
5634
- headers: {
5635
- [name: string]: unknown;
5636
- };
5637
- content?: never;
5638
- };
5639
- /** @description Invalid conditional version request. */
5640
- 422: {
5641
- headers: {
5642
- [name: string]: unknown;
5643
- };
5644
- content?: never;
5645
- };
5646
- /** @description Archive or persistence unavailable; retain operation identity for retry. */
5647
- 503: {
5648
- headers: {
5649
- [name: string]: unknown;
5650
- };
5651
- content?: never;
5652
- };
5653
- };
5654
- };
5655
- listItemVersions: {
5656
- parameters: {
5657
- query?: {
5658
- limit?: number;
5659
- cursor?: string;
5660
- };
5661
- header?: never;
5662
- path: {
5663
- workspaceId: string;
5664
- itemId: string;
5665
- };
5666
- cookie?: never;
5667
- };
5668
- requestBody?: never;
5669
- responses: {
5670
- /** @description At most 50 versions in version-ID order with an opaque 15-minute continuation cursor. */
5671
- 200: {
5672
- headers: {
5673
- [name: string]: unknown;
5674
- };
5675
- content: {
5676
- "application/json": {
5677
- items: {
5678
- /** @enum {string} */
5679
- archiveState: "available" | "cold" | "restoring" | "unavailable" | "corrupt";
5680
- byteLength: number;
5681
- contentDigest: string;
5682
- /**
5683
- * Format: finueva-safe-filename
5684
- * @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.
5685
- */
5686
- displayFilename: string;
5687
- mediaType: string;
5688
- /** @enum {string} */
5689
- protectionClassification: "ordinary" | "opaque-encrypted";
5690
- revision: number;
5691
- /** @enum {string} */
5692
- state: "current" | "superseded";
5693
- versionId: string;
5694
- }[];
5695
- nextCursor: string | null;
5696
- };
5697
- };
5698
- };
5699
- /** @description A valid Drive user bearer credential is required. */
5700
- 401: {
5701
- headers: {
5702
- [name: string]: unknown;
5703
- };
5704
- content: {
5705
- "application/json": {
5706
- error: {
5816
+ error: {
5707
5817
  /** @enum {string} */
5708
5818
  code: "authentication_required";
5709
5819
  details: Record<string, never>;
@@ -6860,129 +6970,41 @@ interface operations {
6860
6970
  };
6861
6971
  };
6862
6972
  };
6863
- createUpload: {
6973
+ getWorkspaceUsage: {
6864
6974
  parameters: {
6865
6975
  query?: never;
6866
- header: {
6867
- "Idempotency-Key": string;
6868
- };
6976
+ header?: never;
6869
6977
  path: {
6870
6978
  workspaceId: string;
6871
6979
  };
6872
6980
  cookie?: never;
6873
6981
  };
6874
- requestBody: {
6875
- content: {
6876
- "application/json": {
6877
- /** @description Caller-declared whole-file SHA-256 metadata; it is not archive verification evidence. */
6878
- callerDeclaredContentDigest: string;
6879
- /** @description Requests a conditional single PUT for a nonempty file up to 8 MiB. */
6880
- contentMd5?: string;
6881
- displayFilename: string;
6882
- expectedByteLength: number;
6883
- mediaType: string;
6884
- parentItemId: string;
6885
- /** @enum {string} */
6886
- protectionClassification: "ordinary" | "opaque-encrypted";
6887
- };
6888
- };
6889
- };
6982
+ requestBody?: never;
6890
6983
  responses: {
6891
- /** @description The exact retained transfer session is replayed. */
6984
+ /** @description Current committed and retained reserved bytes, not physical archive usage. */
6892
6985
  200: {
6893
6986
  headers: {
6894
6987
  [name: string]: unknown;
6895
6988
  };
6896
6989
  content: {
6897
6990
  "application/json": {
6898
- expiresAtEpochMilliseconds: number;
6899
- itemId: string;
6900
6991
  /** @enum {string} */
6901
- mode: "presigned-multipart" | "server-mediated-zero-byte" | "presigned-single";
6902
- /** @enum {number} */
6903
- partByteLength: 33554432;
6904
- partCount: number;
6905
- revision: number;
6906
- singleUpload?: {
6907
- descriptor: {
6908
- expectedByteLength: number;
6909
- expiresAtEpochMilliseconds: number;
6910
- headers: {
6911
- "content-md5": string;
6912
- "content-type": string;
6913
- /** @enum {string} */
6914
- "if-none-match": "*";
6915
- } | {
6916
- "content-md5": string;
6917
- "content-type": string;
6918
- /** @enum {string} */
6919
- "if-none-match": "*";
6920
- /** @enum {string} */
6921
- "x-amz-server-side-encryption-customer-algorithm": "AES256";
6922
- "x-amz-server-side-encryption-customer-key": string;
6923
- "x-amz-server-side-encryption-customer-key-md5": string;
6924
- };
6925
- /** @enum {string} */
6926
- method: "PUT";
6927
- /** Format: uri */
6928
- url: string;
6929
- } | null;
6930
- /** @enum {string} */
6931
- state: "uploading" | "completing" | "ready";
6932
- };
6933
- uploadId: string;
6934
- versionId: string;
6935
- };
6936
- };
6937
- };
6938
- /** @description The durable direct transfer session is created. */
6939
- 201: {
6940
- headers: {
6941
- [name: string]: unknown;
6942
- };
6943
- content: {
6944
- "application/json": {
6945
- expiresAtEpochMilliseconds: number;
6946
- itemId: string;
6992
+ accounting: "retained-versions-and-reservations";
6993
+ availableBytes: string;
6994
+ limitBytes: string;
6947
6995
  /** @enum {string} */
6948
- mode: "presigned-multipart" | "server-mediated-zero-byte" | "presigned-single";
6949
- /** @enum {number} */
6950
- partByteLength: 33554432;
6951
- partCount: number;
6952
- revision: number;
6953
- singleUpload?: {
6954
- descriptor: {
6955
- expectedByteLength: number;
6956
- expiresAtEpochMilliseconds: number;
6957
- headers: {
6958
- "content-md5": string;
6959
- "content-type": string;
6960
- /** @enum {string} */
6961
- "if-none-match": "*";
6962
- } | {
6963
- "content-md5": string;
6964
- "content-type": string;
6965
- /** @enum {string} */
6966
- "if-none-match": "*";
6967
- /** @enum {string} */
6968
- "x-amz-server-side-encryption-customer-algorithm": "AES256";
6969
- "x-amz-server-side-encryption-customer-key": string;
6970
- "x-amz-server-side-encryption-customer-key-md5": string;
6971
- };
6972
- /** @enum {string} */
6973
- method: "PUT";
6974
- /** Format: uri */
6975
- url: string;
6976
- } | null;
6977
- /** @enum {string} */
6978
- state: "uploading" | "completing" | "ready";
6979
- };
6980
- uploadId: string;
6981
- versionId: string;
6996
+ provider: "managed";
6997
+ reservedBytes: string;
6998
+ /** @enum {boolean} */
6999
+ reservedBytesIncludeUnresolvedUploads: true;
7000
+ unresolvedReservedBytes: string;
7001
+ usedBytes: string;
7002
+ warnings: "unresolved-archive-ownership"[];
7003
+ workspaceId: string;
6982
7004
  };
6983
7005
  };
6984
7006
  };
6985
- /** @description A valid Drive user bearer credential is required. */
7007
+ /** @description Authentication required. */
6986
7008
  401: {
6987
7009
  headers: {
6988
7010
  [name: string]: unknown;
@@ -6991,16 +7013,15 @@ interface operations {
6991
7013
  "application/json": {
6992
7014
  error: {
6993
7015
  /** @enum {string} */
6994
- code: "authentication_required";
7016
+ code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "invalid_pagination_cursor" | "precondition_failed" | "service_unavailable";
6995
7017
  details: Record<string, never>;
6996
- /** @enum {string} */
6997
- message: "Authentication is required.";
7018
+ message: string;
6998
7019
  requestId: string;
6999
7020
  };
7000
7021
  };
7001
7022
  };
7002
7023
  };
7003
- /** @description Managed storage is disabled or the discoverable parent does not permit item creation. */
7024
+ /** @description The action is not permitted. */
7004
7025
  403: {
7005
7026
  headers: {
7006
7027
  [name: string]: unknown;
@@ -7009,16 +7030,15 @@ interface operations {
7009
7030
  "application/json": {
7010
7031
  error: {
7011
7032
  /** @enum {string} */
7012
- code: "permission_denied";
7033
+ code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "invalid_pagination_cursor" | "precondition_failed" | "service_unavailable";
7013
7034
  details: Record<string, never>;
7014
- /** @enum {string} */
7015
- message: "The requested action is not permitted.";
7035
+ message: string;
7016
7036
  requestId: string;
7017
7037
  };
7018
7038
  };
7019
7039
  };
7020
7040
  };
7021
- /** @description The parent is absent or undiscoverable. */
7041
+ /** @description Workspace not found. */
7022
7042
  404: {
7023
7043
  headers: {
7024
7044
  [name: string]: unknown;
@@ -7027,16 +7047,15 @@ interface operations {
7027
7047
  "application/json": {
7028
7048
  error: {
7029
7049
  /** @enum {string} */
7030
- code: "resource_not_found";
7050
+ code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "invalid_pagination_cursor" | "precondition_failed" | "service_unavailable";
7031
7051
  details: Record<string, never>;
7032
- /** @enum {string} */
7033
- message: "The requested resource was not found.";
7052
+ message: string;
7034
7053
  requestId: string;
7035
7054
  };
7036
7055
  };
7037
7056
  };
7038
7057
  };
7039
- /** @description Quota is exceeded, the key conflicts, authority changed, or provider-create recovery is required. */
7058
+ /** @description The selected authority or page changed; restart the query. */
7040
7059
  409: {
7041
7060
  headers: {
7042
7061
  [name: string]: unknown;
@@ -7045,43 +7064,15 @@ interface operations {
7045
7064
  "application/json": {
7046
7065
  error: {
7047
7066
  /** @enum {string} */
7048
- code: "quota_exceeded";
7049
- details: Record<string, never>;
7050
- /** @enum {string} */
7051
- message: "The workspace storage quota would be exceeded.";
7052
- requestId: string;
7053
- };
7054
- } | {
7055
- error: {
7056
- /** @enum {string} */
7057
- code: "idempotency_conflict";
7058
- details: Record<string, never>;
7059
- /** @enum {string} */
7060
- message: "The idempotency key conflicts with an earlier request.";
7061
- requestId: string;
7062
- };
7063
- } | {
7064
- error: {
7065
- /** @enum {string} */
7066
- code: "precondition_failed";
7067
- details: Record<string, never>;
7068
- /** @enum {string} */
7069
- message: "The request precondition failed.";
7070
- requestId: string;
7071
- };
7072
- } | {
7073
- error: {
7074
- /** @enum {string} */
7075
- code: "upload_recovery_required";
7067
+ code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "invalid_pagination_cursor" | "precondition_failed" | "service_unavailable";
7076
7068
  details: Record<string, never>;
7077
- /** @enum {string} */
7078
- message: "The upload requires recovery before it can continue.";
7069
+ message: string;
7079
7070
  requestId: string;
7080
7071
  };
7081
7072
  };
7082
7073
  };
7083
7074
  };
7084
- /** @description The path, key, media type, or strict request body is invalid. */
7075
+ /** @description Invalid request or cursor. */
7085
7076
  422: {
7086
7077
  headers: {
7087
7078
  [name: string]: unknown;
@@ -7090,25 +7081,15 @@ interface operations {
7090
7081
  "application/json": {
7091
7082
  error: {
7092
7083
  /** @enum {string} */
7093
- code: "invalid_request";
7094
- details: Record<string, never>;
7095
- /** @enum {string} */
7096
- message: "The request is invalid.";
7097
- requestId: string;
7098
- };
7099
- } | {
7100
- error: {
7101
- /** @enum {string} */
7102
- code: "invalid_idempotency_key";
7084
+ code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "invalid_pagination_cursor" | "precondition_failed" | "service_unavailable";
7103
7085
  details: Record<string, never>;
7104
- /** @enum {string} */
7105
- message: "The idempotency key is invalid.";
7086
+ message: string;
7106
7087
  requestId: string;
7107
7088
  };
7108
7089
  };
7109
7090
  };
7110
7091
  };
7111
- /** @description Identity, D1, authorization, entitlement, or trusted capacity authority is unavailable. An admission refusal carries the caller-facing reason. */
7092
+ /** @description Authoritative state is unavailable. */
7112
7093
  503: {
7113
7094
  headers: {
7114
7095
  [name: string]: unknown;
@@ -7117,22 +7098,9 @@ interface operations {
7117
7098
  "application/json": {
7118
7099
  error: {
7119
7100
  /** @enum {string} */
7120
- code: "identity_authority_unavailable";
7101
+ code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "invalid_pagination_cursor" | "precondition_failed" | "service_unavailable";
7121
7102
  details: Record<string, never>;
7122
- /** @enum {string} */
7123
- message: "Authentication is temporarily unavailable.";
7124
- requestId: string;
7125
- };
7126
- } | {
7127
- error: {
7128
- /** @enum {string} */
7129
- code: "service_unavailable";
7130
- details: {
7131
- /** @enum {string} */
7132
- reason?: "upload_admission_saturated" | "upload_admission_stalled" | "ownership_unchanged" | "ownership_successor_not_member" | "ownership_restricted_items" | "ownership_subtree_too_large" | "external_sharing_disabled" | "unspecified";
7133
- };
7134
- /** @enum {string} */
7135
- message: "The service is temporarily unavailable.";
7103
+ message: string;
7136
7104
  requestId: string;
7137
7105
  };
7138
7106
  };
@@ -7140,72 +7108,38 @@ interface operations {
7140
7108
  };
7141
7109
  };
7142
7110
  };
7143
- getUploadStatus: {
7111
+ getCurrentUserWorkspaceUsage: {
7144
7112
  parameters: {
7145
- query?: {
7146
- afterPartNumber?: string;
7147
- limit?: string;
7148
- };
7113
+ query?: never;
7149
7114
  header?: never;
7150
7115
  path: {
7151
7116
  workspaceId: string;
7152
- uploadId: string;
7153
7117
  };
7154
7118
  cookie?: never;
7155
7119
  };
7156
7120
  requestBody?: never;
7157
7121
  responses: {
7158
- /** @description The current upload lifecycle and one bounded confirmed-part page. */
7122
+ /** @description Own current files, including trash; shared organization quota is not organization usage. */
7159
7123
  200: {
7160
7124
  headers: {
7161
7125
  [name: string]: unknown;
7162
7126
  };
7163
7127
  content: {
7164
7128
  "application/json": {
7165
- confirmedParts: {
7166
- checksumSha256: string;
7167
- partNumber: number;
7168
- }[];
7169
- expiresAtEpochMilliseconds: number;
7170
- itemId: string;
7171
7129
  /** @enum {string} */
7172
- lifecycle: "initiating" | "recovery-required" | "uploading" | "completing" | "provider-completed" | "verifying" | "failed" | "ready" | "aborting" | "aborted";
7130
+ accounting: "owned-current-versions";
7131
+ fileCount: number;
7132
+ limitBytes: string;
7173
7133
  /** @enum {string} */
7174
- mode: "presigned-multipart" | "server-mediated-zero-byte" | "presigned-single";
7175
- nextAfterPartNumber: number | null;
7176
- partPolicy: {
7177
- /** @enum {number} */
7178
- maxParts: 10000;
7179
- /** @enum {number} */
7180
- partByteLength: 33554432;
7181
- partCount: number;
7182
- };
7183
- ready: {
7184
- byteLength: number;
7185
- /** @description Caller-declared whole-file SHA-256. Drive independently verifies archive bytes before publication. */
7186
- callerDeclaredContentDigest: string;
7187
- displayFilename: string;
7188
- itemId: string;
7189
- mediaType: string;
7190
- /** @enum {string} */
7191
- state: "ready";
7192
- uploadId: string;
7193
- versionId: string;
7194
- } | null;
7195
- revision: number;
7196
- uploadId: string;
7197
- verification?: {
7198
- revision: number;
7199
- /** @enum {string} */
7200
- state: "pending" | "verified" | "failed";
7201
- totalByteLength: number;
7202
- verifiedByteLength: number;
7203
- };
7204
- versionId: string;
7134
+ provider: "managed";
7135
+ /** @enum {string} */
7136
+ quotaScope: "personal" | "organization";
7137
+ usedBytes: string;
7138
+ workspaceId: string;
7205
7139
  };
7206
7140
  };
7207
7141
  };
7208
- /** @description Authentication is required. */
7142
+ /** @description Authentication required. */
7209
7143
  401: {
7210
7144
  headers: {
7211
7145
  [name: string]: unknown;
@@ -7214,919 +7148,7 @@ interface operations {
7214
7148
  "application/json": {
7215
7149
  error: {
7216
7150
  /** @enum {string} */
7217
- code: "authentication_required";
7218
- details: Record<string, never>;
7219
- /** @enum {string} */
7220
- message: "Authentication is required.";
7221
- requestId: string;
7222
- };
7223
- };
7224
- };
7225
- };
7226
- /** @description Permission is denied. */
7227
- 403: {
7228
- headers: {
7229
- [name: string]: unknown;
7230
- };
7231
- content: {
7232
- "application/json": {
7233
- error: {
7234
- /** @enum {string} */
7235
- code: "permission_denied";
7236
- details: Record<string, never>;
7237
- /** @enum {string} */
7238
- message: "The requested action is not permitted.";
7239
- requestId: string;
7240
- };
7241
- };
7242
- };
7243
- };
7244
- /** @description The upload is not discoverable. */
7245
- 404: {
7246
- headers: {
7247
- [name: string]: unknown;
7248
- };
7249
- content: {
7250
- "application/json": {
7251
- error: {
7252
- /** @enum {string} */
7253
- code: "resource_not_found";
7254
- details: Record<string, never>;
7255
- /** @enum {string} */
7256
- message: "The requested resource was not found.";
7257
- requestId: string;
7258
- };
7259
- };
7260
- };
7261
- };
7262
- /** @description The path, query, or unexpected request body is invalid. */
7263
- 422: {
7264
- headers: {
7265
- [name: string]: unknown;
7266
- };
7267
- content: {
7268
- "application/json": {
7269
- error: {
7270
- /** @enum {string} */
7271
- code: "invalid_request";
7272
- details: Record<string, never>;
7273
- /** @enum {string} */
7274
- message: "The request is invalid.";
7275
- requestId: string;
7276
- };
7277
- };
7278
- };
7279
- };
7280
- /** @description Identity or the service is unavailable. */
7281
- 503: {
7282
- headers: {
7283
- [name: string]: unknown;
7284
- };
7285
- content: {
7286
- "application/json": {
7287
- error: {
7288
- /** @enum {string} */
7289
- code: "identity_authority_unavailable";
7290
- details: Record<string, never>;
7291
- /** @enum {string} */
7292
- message: "Authentication is temporarily unavailable.";
7293
- requestId: string;
7294
- };
7295
- } | {
7296
- error: {
7297
- /** @enum {string} */
7298
- code: "service_unavailable";
7299
- details: Record<string, never>;
7300
- /** @enum {string} */
7301
- message: "The service is temporarily unavailable.";
7302
- requestId: string;
7303
- };
7304
- };
7305
- };
7306
- };
7307
- };
7308
- };
7309
- abortUpload: {
7310
- parameters: {
7311
- query?: never;
7312
- header?: never;
7313
- path: {
7314
- workspaceId: string;
7315
- uploadId: string;
7316
- };
7317
- cookie?: never;
7318
- };
7319
- requestBody?: never;
7320
- responses: {
7321
- /** @description The provider upload is absent and the upload is terminal. */
7322
- 204: {
7323
- headers: {
7324
- [name: string]: unknown;
7325
- };
7326
- content?: never;
7327
- };
7328
- /** @description A valid Drive user bearer credential is required. */
7329
- 401: {
7330
- headers: {
7331
- [name: string]: unknown;
7332
- };
7333
- content: {
7334
- "application/json": {
7335
- error: {
7336
- /** @enum {string} */
7337
- code: "authentication_required";
7338
- details: Record<string, never>;
7339
- /** @enum {string} */
7340
- message: "Authentication is required.";
7341
- requestId: string;
7342
- };
7343
- };
7344
- };
7345
- };
7346
- /** @description The retained parent is discoverable but no longer permits item creation. */
7347
- 403: {
7348
- headers: {
7349
- [name: string]: unknown;
7350
- };
7351
- content: {
7352
- "application/json": {
7353
- error: {
7354
- /** @enum {string} */
7355
- code: "permission_denied";
7356
- details: Record<string, never>;
7357
- /** @enum {string} */
7358
- message: "The requested action is not permitted.";
7359
- requestId: string;
7360
- };
7361
- };
7362
- };
7363
- };
7364
- /** @description The upload is unknown, cross-workspace, or its retained parent is undiscoverable. */
7365
- 404: {
7366
- headers: {
7367
- [name: string]: unknown;
7368
- };
7369
- content: {
7370
- "application/json": {
7371
- error: {
7372
- /** @enum {string} */
7373
- code: "resource_not_found";
7374
- details: Record<string, never>;
7375
- /** @enum {string} */
7376
- message: "The requested resource was not found.";
7377
- requestId: string;
7378
- };
7379
- };
7380
- };
7381
- };
7382
- /** @description Another terminal settlement won, authority changed, or provider-create recovery is required. */
7383
- 409: {
7384
- headers: {
7385
- [name: string]: unknown;
7386
- };
7387
- content: {
7388
- "application/json": {
7389
- error: {
7390
- /** @enum {string} */
7391
- code: "precondition_failed";
7392
- details: Record<string, never>;
7393
- /** @enum {string} */
7394
- message: "The request precondition failed.";
7395
- requestId: string;
7396
- };
7397
- } | {
7398
- error: {
7399
- /** @enum {string} */
7400
- code: "upload_recovery_required";
7401
- details: Record<string, never>;
7402
- /** @enum {string} */
7403
- message: "The upload requires recovery before it can continue.";
7404
- requestId: string;
7405
- };
7406
- };
7407
- };
7408
- };
7409
- /** @description The path, query, or unexpected request body is invalid. */
7410
- 422: {
7411
- headers: {
7412
- [name: string]: unknown;
7413
- };
7414
- content: {
7415
- "application/json": {
7416
- error: {
7417
- /** @enum {string} */
7418
- code: "invalid_request";
7419
- details: Record<string, never>;
7420
- /** @enum {string} */
7421
- message: "The request is invalid.";
7422
- requestId: string;
7423
- };
7424
- };
7425
- };
7426
- };
7427
- /** @description Identity, D1, authorization, or retained capacity authority is unavailable. */
7428
- 503: {
7429
- headers: {
7430
- [name: string]: unknown;
7431
- };
7432
- content: {
7433
- "application/json": {
7434
- error: {
7435
- /** @enum {string} */
7436
- code: "identity_authority_unavailable";
7437
- details: Record<string, never>;
7438
- /** @enum {string} */
7439
- message: "Authentication is temporarily unavailable.";
7440
- requestId: string;
7441
- };
7442
- } | {
7443
- error: {
7444
- /** @enum {string} */
7445
- code: "service_unavailable";
7446
- details: Record<string, never>;
7447
- /** @enum {string} */
7448
- message: "The service is temporarily unavailable.";
7449
- requestId: string;
7450
- };
7451
- };
7452
- };
7453
- };
7454
- };
7455
- };
7456
- completeUpload: {
7457
- parameters: {
7458
- query?: {
7459
- verification?: string;
7460
- };
7461
- header: {
7462
- "Idempotency-Key": string;
7463
- };
7464
- path: {
7465
- workspaceId: string;
7466
- uploadId: string;
7467
- };
7468
- cookie?: never;
7469
- };
7470
- requestBody?: never;
7471
- responses: {
7472
- /** @description The verified current version is ready. */
7473
- 200: {
7474
- headers: {
7475
- [name: string]: unknown;
7476
- };
7477
- content: {
7478
- "application/json": {
7479
- byteLength: number;
7480
- /** @description Caller-declared whole-file SHA-256. Drive independently verifies archive bytes before publication. */
7481
- callerDeclaredContentDigest: string;
7482
- displayFilename: string;
7483
- itemId: string;
7484
- mediaType: string;
7485
- /** @enum {string} */
7486
- state: "ready";
7487
- uploadId: string;
7488
- versionId: string;
7489
- };
7490
- };
7491
- };
7492
- /** @description Archive verification is pending; retry completion with the same key. */
7493
- 202: {
7494
- headers: {
7495
- [name: string]: unknown;
7496
- };
7497
- content: {
7498
- "application/json": {
7499
- itemId: string;
7500
- /** @enum {string} */
7501
- state: "verifying";
7502
- totalByteLength: number;
7503
- uploadId: string;
7504
- verificationRevision: number;
7505
- verifiedByteLength: number;
7506
- versionId: string;
7507
- };
7508
- };
7509
- };
7510
- /** @description Authentication is required. */
7511
- 401: {
7512
- headers: {
7513
- [name: string]: unknown;
7514
- };
7515
- content: {
7516
- "application/json": {
7517
- error: {
7518
- /** @enum {string} */
7519
- code: "authentication_required";
7520
- details: Record<string, never>;
7521
- /** @enum {string} */
7522
- message: "Authentication is required.";
7523
- requestId: string;
7524
- };
7525
- };
7526
- };
7527
- };
7528
- /** @description Permission is denied. */
7529
- 403: {
7530
- headers: {
7531
- [name: string]: unknown;
7532
- };
7533
- content: {
7534
- "application/json": {
7535
- error: {
7536
- /** @enum {string} */
7537
- code: "permission_denied";
7538
- details: Record<string, never>;
7539
- /** @enum {string} */
7540
- message: "The requested action is not permitted.";
7541
- requestId: string;
7542
- };
7543
- };
7544
- };
7545
- };
7546
- /** @description The upload is not discoverable. */
7547
- 404: {
7548
- headers: {
7549
- [name: string]: unknown;
7550
- };
7551
- content: {
7552
- "application/json": {
7553
- error: {
7554
- /** @enum {string} */
7555
- code: "resource_not_found";
7556
- details: Record<string, never>;
7557
- /** @enum {string} */
7558
- message: "The requested resource was not found.";
7559
- requestId: string;
7560
- };
7561
- };
7562
- };
7563
- };
7564
- /** @description The upload is incomplete, conflicts, or requires recovery. */
7565
- 409: {
7566
- headers: {
7567
- [name: string]: unknown;
7568
- };
7569
- content: {
7570
- "application/json": {
7571
- error: {
7572
- /** @enum {string} */
7573
- code: "precondition_failed";
7574
- details: Record<string, never>;
7575
- /** @enum {string} */
7576
- message: "The request precondition failed.";
7577
- requestId: string;
7578
- };
7579
- } | {
7580
- error: {
7581
- /** @enum {string} */
7582
- code: "upload_recovery_required";
7583
- details: Record<string, never>;
7584
- /** @enum {string} */
7585
- message: "The upload requires recovery before it can continue.";
7586
- requestId: string;
7587
- };
7588
- };
7589
- };
7590
- };
7591
- /** @description The request is invalid. */
7592
- 422: {
7593
- headers: {
7594
- [name: string]: unknown;
7595
- };
7596
- content: {
7597
- "application/json": {
7598
- error: {
7599
- /** @enum {string} */
7600
- code: "invalid_request";
7601
- details: Record<string, never>;
7602
- /** @enum {string} */
7603
- message: "The request is invalid.";
7604
- requestId: string;
7605
- };
7606
- } | {
7607
- error: {
7608
- /** @enum {string} */
7609
- code: "invalid_idempotency_key";
7610
- details: Record<string, never>;
7611
- /** @enum {string} */
7612
- message: "The idempotency key is invalid.";
7613
- requestId: string;
7614
- };
7615
- };
7616
- };
7617
- };
7618
- /** @description Identity or the service is unavailable. */
7619
- 503: {
7620
- headers: {
7621
- [name: string]: unknown;
7622
- };
7623
- content: {
7624
- "application/json": {
7625
- error: {
7626
- /** @enum {string} */
7627
- code: "identity_authority_unavailable";
7628
- details: Record<string, never>;
7629
- /** @enum {string} */
7630
- message: "Authentication is temporarily unavailable.";
7631
- requestId: string;
7632
- };
7633
- } | {
7634
- error: {
7635
- /** @enum {string} */
7636
- code: "service_unavailable";
7637
- details: Record<string, never>;
7638
- /** @enum {string} */
7639
- message: "The service is temporarily unavailable.";
7640
- requestId: string;
7641
- };
7642
- };
7643
- };
7644
- };
7645
- };
7646
- };
7647
- createUploadPartDescriptor: {
7648
- parameters: {
7649
- query?: never;
7650
- header?: never;
7651
- path: {
7652
- workspaceId: string;
7653
- uploadId: string;
7654
- };
7655
- cookie?: never;
7656
- };
7657
- requestBody: {
7658
- content: {
7659
- "application/json": {
7660
- checksumSha256: string;
7661
- contentMd5: string;
7662
- partNumber: number;
7663
- };
7664
- };
7665
- };
7666
- responses: {
7667
- /** @description One short-lived exact part capability. */
7668
- 200: {
7669
- headers: {
7670
- [name: string]: unknown;
7671
- };
7672
- content: {
7673
- "application/json": {
7674
- expectedByteLength: number;
7675
- expiresAtEpochMilliseconds: number;
7676
- headers: {
7677
- "content-md5": string;
7678
- } | {
7679
- "content-md5": string;
7680
- /** @enum {string} */
7681
- "x-amz-server-side-encryption-customer-algorithm": "AES256";
7682
- "x-amz-server-side-encryption-customer-key": string;
7683
- "x-amz-server-side-encryption-customer-key-md5": string;
7684
- };
7685
- /** @enum {string} */
7686
- method: "PUT";
7687
- partNumber: number;
7688
- /** Format: uri */
7689
- url: string;
7690
- };
7691
- };
7692
- };
7693
- /** @description Authentication is required. */
7694
- 401: {
7695
- headers: {
7696
- [name: string]: unknown;
7697
- };
7698
- content: {
7699
- "application/json": {
7700
- error: {
7701
- /** @enum {string} */
7702
- code: "authentication_required";
7703
- details: Record<string, never>;
7704
- /** @enum {string} */
7705
- message: "Authentication is required.";
7706
- requestId: string;
7707
- };
7708
- };
7709
- };
7710
- };
7711
- /** @description Permission is denied. */
7712
- 403: {
7713
- headers: {
7714
- [name: string]: unknown;
7715
- };
7716
- content: {
7717
- "application/json": {
7718
- error: {
7719
- /** @enum {string} */
7720
- code: "permission_denied";
7721
- details: Record<string, never>;
7722
- /** @enum {string} */
7723
- message: "The requested action is not permitted.";
7724
- requestId: string;
7725
- };
7726
- };
7727
- };
7728
- };
7729
- /** @description The upload is not discoverable. */
7730
- 404: {
7731
- headers: {
7732
- [name: string]: unknown;
7733
- };
7734
- content: {
7735
- "application/json": {
7736
- error: {
7737
- /** @enum {string} */
7738
- code: "resource_not_found";
7739
- details: Record<string, never>;
7740
- /** @enum {string} */
7741
- message: "The requested resource was not found.";
7742
- requestId: string;
7743
- };
7744
- };
7745
- };
7746
- };
7747
- /** @description The upload or part conflicts or requires recovery. */
7748
- 409: {
7749
- headers: {
7750
- [name: string]: unknown;
7751
- };
7752
- content: {
7753
- "application/json": {
7754
- error: {
7755
- /** @enum {string} */
7756
- code: "precondition_failed";
7757
- details: Record<string, never>;
7758
- /** @enum {string} */
7759
- message: "The request precondition failed.";
7760
- requestId: string;
7761
- };
7762
- } | {
7763
- error: {
7764
- /** @enum {string} */
7765
- code: "upload_recovery_required";
7766
- details: Record<string, never>;
7767
- /** @enum {string} */
7768
- message: "The upload requires recovery before it can continue.";
7769
- requestId: string;
7770
- };
7771
- };
7772
- };
7773
- };
7774
- /** @description The request is invalid. */
7775
- 422: {
7776
- headers: {
7777
- [name: string]: unknown;
7778
- };
7779
- content: {
7780
- "application/json": {
7781
- error: {
7782
- /** @enum {string} */
7783
- code: "invalid_request";
7784
- details: Record<string, never>;
7785
- /** @enum {string} */
7786
- message: "The request is invalid.";
7787
- requestId: string;
7788
- };
7789
- };
7790
- };
7791
- };
7792
- /** @description Identity or the service is unavailable. */
7793
- 503: {
7794
- headers: {
7795
- [name: string]: unknown;
7796
- };
7797
- content: {
7798
- "application/json": {
7799
- error: {
7800
- /** @enum {string} */
7801
- code: "identity_authority_unavailable";
7802
- details: Record<string, never>;
7803
- /** @enum {string} */
7804
- message: "Authentication is temporarily unavailable.";
7805
- requestId: string;
7806
- };
7807
- } | {
7808
- error: {
7809
- /** @enum {string} */
7810
- code: "service_unavailable";
7811
- details: Record<string, never>;
7812
- /** @enum {string} */
7813
- message: "The service is temporarily unavailable.";
7814
- requestId: string;
7815
- };
7816
- };
7817
- };
7818
- };
7819
- };
7820
- };
7821
- recordUploadPart: {
7822
- parameters: {
7823
- query?: never;
7824
- header?: never;
7825
- path: {
7826
- workspaceId: string;
7827
- uploadId: string;
7828
- partNumber: string;
7829
- };
7830
- cookie?: never;
7831
- };
7832
- requestBody: {
7833
- content: {
7834
- "application/json": {
7835
- byteLength: number;
7836
- checksumSha256: string;
7837
- etag: string;
7838
- expectedUploadRevision: number;
7839
- };
7840
- };
7841
- };
7842
- responses: {
7843
- /** @description The callback is retained or exactly replayed. */
7844
- 200: {
7845
- headers: {
7846
- [name: string]: unknown;
7847
- };
7848
- content: {
7849
- "application/json": {
7850
- partNumber: number;
7851
- revision: number;
7852
- };
7853
- };
7854
- };
7855
- /** @description Authentication is required. */
7856
- 401: {
7857
- headers: {
7858
- [name: string]: unknown;
7859
- };
7860
- content: {
7861
- "application/json": {
7862
- error: {
7863
- /** @enum {string} */
7864
- code: "authentication_required";
7865
- details: Record<string, never>;
7866
- /** @enum {string} */
7867
- message: "Authentication is required.";
7868
- requestId: string;
7869
- };
7870
- };
7871
- };
7872
- };
7873
- /** @description Permission is denied. */
7874
- 403: {
7875
- headers: {
7876
- [name: string]: unknown;
7877
- };
7878
- content: {
7879
- "application/json": {
7880
- error: {
7881
- /** @enum {string} */
7882
- code: "permission_denied";
7883
- details: Record<string, never>;
7884
- /** @enum {string} */
7885
- message: "The requested action is not permitted.";
7886
- requestId: string;
7887
- };
7888
- };
7889
- };
7890
- };
7891
- /** @description The upload is not discoverable. */
7892
- 404: {
7893
- headers: {
7894
- [name: string]: unknown;
7895
- };
7896
- content: {
7897
- "application/json": {
7898
- error: {
7899
- /** @enum {string} */
7900
- code: "resource_not_found";
7901
- details: Record<string, never>;
7902
- /** @enum {string} */
7903
- message: "The requested resource was not found.";
7904
- requestId: string;
7905
- };
7906
- };
7907
- };
7908
- };
7909
- /** @description The callback conflicts or requires recovery. */
7910
- 409: {
7911
- headers: {
7912
- [name: string]: unknown;
7913
- };
7914
- content: {
7915
- "application/json": {
7916
- error: {
7917
- /** @enum {string} */
7918
- code: "precondition_failed";
7919
- details: Record<string, never>;
7920
- /** @enum {string} */
7921
- message: "The request precondition failed.";
7922
- requestId: string;
7923
- };
7924
- } | {
7925
- error: {
7926
- /** @enum {string} */
7927
- code: "upload_recovery_required";
7928
- details: Record<string, never>;
7929
- /** @enum {string} */
7930
- message: "The upload requires recovery before it can continue.";
7931
- requestId: string;
7932
- };
7933
- };
7934
- };
7935
- };
7936
- /** @description The request is invalid. */
7937
- 422: {
7938
- headers: {
7939
- [name: string]: unknown;
7940
- };
7941
- content: {
7942
- "application/json": {
7943
- error: {
7944
- /** @enum {string} */
7945
- code: "invalid_request";
7946
- details: Record<string, never>;
7947
- /** @enum {string} */
7948
- message: "The request is invalid.";
7949
- requestId: string;
7950
- };
7951
- };
7952
- };
7953
- };
7954
- /** @description Identity or the service is unavailable. */
7955
- 503: {
7956
- headers: {
7957
- [name: string]: unknown;
7958
- };
7959
- content: {
7960
- "application/json": {
7961
- error: {
7962
- /** @enum {string} */
7963
- code: "identity_authority_unavailable";
7964
- details: Record<string, never>;
7965
- /** @enum {string} */
7966
- message: "Authentication is temporarily unavailable.";
7967
- requestId: string;
7968
- };
7969
- } | {
7970
- error: {
7971
- /** @enum {string} */
7972
- code: "service_unavailable";
7973
- details: Record<string, never>;
7974
- /** @enum {string} */
7975
- message: "The service is temporarily unavailable.";
7976
- requestId: string;
7977
- };
7978
- };
7979
- };
7980
- };
7981
- };
7982
- };
7983
- commitFileVersion: {
7984
- parameters: {
7985
- query?: never;
7986
- header: {
7987
- "Idempotency-Key": string;
7988
- "If-Match": string;
7989
- };
7990
- path: {
7991
- workspaceId: string;
7992
- uploadId: string;
7993
- };
7994
- cookie?: never;
7995
- };
7996
- requestBody: {
7997
- content: {
7998
- "application/json": {
7999
- expectedVersionId: string;
8000
- };
8001
- };
8002
- };
8003
- responses: {
8004
- /** @description Archive verified and exact-version checkpoint committed or replayed. */
8005
- 200: {
8006
- headers: {
8007
- [name: string]: unknown;
8008
- };
8009
- content: {
8010
- "application/json": {
8011
- byteLength: number;
8012
- /** @description Caller-declared whole-file SHA-256. Drive independently verifies archive bytes before publication. */
8013
- callerDeclaredContentDigest: string;
8014
- displayFilename: string;
8015
- itemId: string;
8016
- mediaType: string;
8017
- /** @enum {string} */
8018
- state: "ready";
8019
- uploadId: string;
8020
- versionId: string;
8021
- };
8022
- };
8023
- };
8024
- /** @description Archive hash verification still pending; retain the same operation identity. */
8025
- 202: {
8026
- headers: {
8027
- [name: string]: unknown;
8028
- };
8029
- content: {
8030
- "application/json": {
8031
- itemId: string;
8032
- /** @enum {string} */
8033
- state: "verifying";
8034
- totalByteLength: number;
8035
- uploadId: string;
8036
- verificationRevision: number;
8037
- verifiedByteLength: number;
8038
- versionId: string;
8039
- };
8040
- };
8041
- };
8042
- /** @description Drive user authentication required. */
8043
- 401: {
8044
- headers: {
8045
- [name: string]: unknown;
8046
- };
8047
- content?: never;
8048
- };
8049
- /** @description Current file update permission required. */
8050
- 403: {
8051
- headers: {
8052
- [name: string]: unknown;
8053
- };
8054
- content?: never;
8055
- };
8056
- /** @description File or upload unavailable. */
8057
- 404: {
8058
- headers: {
8059
- [name: string]: unknown;
8060
- };
8061
- content?: never;
8062
- };
8063
- /** @description Expected version, quota or idempotency conflict. */
8064
- 409: {
8065
- headers: {
8066
- [name: string]: unknown;
8067
- };
8068
- content?: never;
8069
- };
8070
- /** @description Invalid conditional version request. */
8071
- 422: {
8072
- headers: {
8073
- [name: string]: unknown;
8074
- };
8075
- content?: never;
8076
- };
8077
- /** @description Archive or persistence unavailable; retain operation identity for retry. */
8078
- 503: {
8079
- headers: {
8080
- [name: string]: unknown;
8081
- };
8082
- content?: never;
8083
- };
8084
- };
8085
- };
8086
- getWorkspaceUsage: {
8087
- parameters: {
8088
- query?: never;
8089
- header?: never;
8090
- path: {
8091
- workspaceId: string;
8092
- };
8093
- cookie?: never;
8094
- };
8095
- requestBody?: never;
8096
- responses: {
8097
- /** @description Current committed and retained reserved bytes, not physical archive usage. */
8098
- 200: {
8099
- headers: {
8100
- [name: string]: unknown;
8101
- };
8102
- content: {
8103
- "application/json": {
8104
- /** @enum {string} */
8105
- accounting: "current-versions-and-reservations";
8106
- availableBytes: string;
8107
- limitBytes: string;
8108
- /** @enum {string} */
8109
- provider: "managed";
8110
- reservedBytes: string;
8111
- /** @enum {boolean} */
8112
- reservedBytesIncludeUnresolvedUploads: true;
8113
- unresolvedReservedBytes: string;
8114
- usedBytes: string;
8115
- warnings: "unresolved-archive-ownership"[];
8116
- workspaceId: string;
8117
- };
8118
- };
8119
- };
8120
- /** @description Authentication required. */
8121
- 401: {
8122
- headers: {
8123
- [name: string]: unknown;
8124
- };
8125
- content: {
8126
- "application/json": {
8127
- error: {
8128
- /** @enum {string} */
8129
- code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "invalid_pagination_cursor" | "precondition_failed" | "service_unavailable";
7151
+ code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "invalid_pagination_cursor" | "precondition_failed" | "service_unavailable";
8130
7152
  details: Record<string, never>;
8131
7153
  message: string;
8132
7154
  requestId: string;
@@ -8236,12 +7258,32 @@ type JsonRequest<Name extends keyof operations> = operations[Name] extends {
8236
7258
  };
8237
7259
  };
8238
7260
  } ? Body : never;
8239
- type CreateFileVersionUploadInput = Readonly<JsonRequest<"createFileVersionUpload"> & {
8240
- workspaceId: string;
8241
- itemId: string;
8242
- idempotencyKey: string;
7261
+ type PrepareVerifiedTransferInput = Readonly<JsonRequest<"prepareVerifiedTransfer"> & {
7262
+ signal?: AbortSignal;
7263
+ }>;
7264
+ type PreparedVerifiedTransfer = Readonly<JsonResponse<"prepareVerifiedTransfer", 200>>;
7265
+ type AdmittedVerifiedTransfer = Extract<PreparedVerifiedTransfer, {
7266
+ outcome: "admitted";
7267
+ }>;
7268
+ type PublishedVerifiedTransfer = Readonly<JsonResponse<"publishVerifiedTransfer", 200>>;
7269
+ type PublishVerifiedTransferInput = Readonly<JsonRequest<"publishVerifiedTransfer"> & {
7270
+ transferId: string;
7271
+ signal?: AbortSignal;
7272
+ }>;
7273
+ type RecoverVerifiedTransferInput = Readonly<JsonRequest<"recoverVerifiedTransfer"> & {
7274
+ transferId: string;
8243
7275
  signal?: AbortSignal;
8244
7276
  }>;
7277
+ type UploadVerifiedFileInput = Readonly<Omit<PrepareVerifiedTransferInput, "byteLength" | "sha256"> & {
7278
+ source: Blob;
7279
+ completionIdempotencyKey: string;
7280
+ onProgress?: UploadFileProgressCallback;
7281
+ }>;
7282
+ interface VerifiedTransferOperations {
7283
+ prepareVerifiedTransfer(input: PrepareVerifiedTransferInput): Promise<DriveOperationResult<PreparedVerifiedTransfer, 200>>;
7284
+ publishVerifiedTransfer(input: PublishVerifiedTransferInput): Promise<DriveOperationResult<PublishedVerifiedTransfer, 200>>;
7285
+ recoverVerifiedTransfer(input: RecoverVerifiedTransferInput): Promise<DriveOperationResult<AdmittedVerifiedTransfer, 200>>;
7286
+ }
8245
7287
  type FileAccessContext = Readonly<JsonResponse<"getFileAccessContext", 200>>;
8246
7288
  type EditingSession = Readonly<JsonResponse<"changeEditingSession", 200>>;
8247
7289
  type EditingSessionCreation = Readonly<JsonResponse<"createEditingSession", 201>>;
@@ -8258,26 +7300,10 @@ interface DriveEditingClientConfig {
8258
7300
  readonly fetch?: typeof globalThis.fetch;
8259
7301
  readonly timeoutMilliseconds?: number;
8260
7302
  }
8261
- type DriveEditingServerClient = Pick<DriveOperations, "getFileAccessContext" | "createDownload" | "downloadItem" | "createFileVersionUpload" | "commitFileVersion" | "getUploadStatus" | "createUploadPartDescriptor" | "recordUploadPart" | "abortUpload">;
8262
- interface EditingFileMetadata {
8263
- readonly parentItemId: string;
8264
- readonly displayFilename: string;
8265
- readonly mediaType: string;
8266
- readonly protectionClassification: ProtectionClassification;
8267
- }
8268
- type EditingFileVersionInput = UploadFileVersionInput & {
8269
- readonly metadata: EditingFileMetadata;
8270
- };
7303
+ type DriveEditingServerClient = VerifiedTransferOperations & Pick<DriveOperations, "getFileAccessContext" | "createDownload" | "downloadItem">;
8271
7304
  type DriveEditingClient = DriveEditingServerClient & {
8272
- uploadFileVersion(input: EditingFileVersionInput): Promise<DriveOperationResult<UploadCompletion, 200 | 202>>;
7305
+ uploadVerifiedFile(input: UploadVerifiedFileInput): Promise<DriveOperationResult<PublishedVerifiedTransfer, 200>>;
8273
7306
  };
8274
- type CommitFileVersionInput = Readonly<JsonRequest<"commitFileVersion"> & {
8275
- workspaceId: string;
8276
- itemId: string;
8277
- uploadId: string;
8278
- idempotencyKey: string;
8279
- signal?: AbortSignal;
8280
- }>;
8281
7307
  type ResourcePath = operations["listFolderChildren"]["parameters"]["path"];
8282
7308
  type PageQuery = NonNullable<operations["listFolderChildren"]["parameters"]["query"]>;
8283
7309
  type SearchWorkspaceItemsPath = operations["searchWorkspaceItems"]["parameters"]["path"];
@@ -8289,16 +7315,6 @@ type CreateFolderHeaders = operations["createFolder"]["parameters"]["header"];
8289
7315
  type CreatePermissionHeaders = operations["createItemPermission"]["parameters"]["header"];
8290
7316
  type GrantMutationPath = operations["updateItemPermission"]["parameters"]["path"];
8291
7317
  type GrantMutationHeaders = operations["updateItemPermission"]["parameters"]["header"];
8292
- type CreateUploadPath = operations["createUpload"]["parameters"]["path"];
8293
- type CreateUploadHeaders = operations["createUpload"]["parameters"]["header"];
8294
- type CreateUploadBody = JsonRequest<"createUpload">;
8295
- type UploadPath = operations["abortUpload"]["parameters"]["path"];
8296
- type UploadStatusPath = operations["getUploadStatus"]["parameters"]["path"];
8297
- type CreateUploadPartDescriptorBody = JsonRequest<"createUploadPartDescriptor">;
8298
- type RecordUploadPartPath = operations["recordUploadPart"]["parameters"]["path"];
8299
- type RecordUploadPartBody = JsonRequest<"recordUploadPart">;
8300
- type CompleteUploadHeaders = operations["completeUpload"]["parameters"]["header"];
8301
- type AbortUploadPath = operations["abortUpload"]["parameters"]["path"];
8302
7318
  type UpdateItemPath = operations["updateItem"]["parameters"]["path"];
8303
7319
  type UpdateItemHeaders = operations["updateItem"]["parameters"]["header"];
8304
7320
  type UpdateItemBody = JsonRequest<"updateItem">;
@@ -8349,6 +7365,7 @@ type WorkspaceDiscoveryPage = Readonly<{
8349
7365
  items: readonly WorkspaceDiscoveryItem[];
8350
7366
  nextCursor: string | null;
8351
7367
  }>;
7368
+ type CurrentUserWorkspaceUsage = Readonly<JsonResponse<"getCurrentUserWorkspaceUsage", 200>>;
8352
7369
  type GeneratedWorkspaceUsage = JsonResponse<"getWorkspaceUsage", 200>;
8353
7370
  type WorkspaceUsage = Readonly<Omit<GeneratedWorkspaceUsage, "warnings"> & {
8354
7371
  readonly warnings: readonly GeneratedWorkspaceUsage["warnings"][number][];
@@ -8432,14 +7449,6 @@ type CurrentWorkspace = Readonly<Omit<GeneratedCurrentWorkspace, "workspaceRefer
8432
7449
  readonly workspaceReference: Readonly<GeneratedCurrentWorkspace["workspaceReference"]>;
8433
7450
  }>;
8434
7451
  type FolderItem = Readonly<JsonResponse<"createFolder", 201>>;
8435
- type UploadSession = Readonly<JsonResponse<"createUpload", 201>>;
8436
- type UploadPartDescriptor = Readonly<Omit<JsonResponse<"createUploadPartDescriptor", 200>, "headers"> & {
8437
- readonly headers: Readonly<JsonResponse<"createUploadPartDescriptor", 200>["headers"]>;
8438
- }>;
8439
- type UploadPartResult = Readonly<JsonResponse<"recordUploadPart", 200>>;
8440
- type ReadyUpload = Readonly<JsonResponse<"completeUpload", 200>>;
8441
- type PendingUpload = Readonly<JsonResponse<"completeUpload", 202>>;
8442
- type UploadCompletion = ReadyUpload | PendingUpload;
8443
7452
  type ManagedLifecycleItem = Readonly<JsonResponse<"updateItem", 200>>;
8444
7453
  type GeneratedManagedItemMetadata = JsonResponse<"getItem", 200>;
8445
7454
  type ManagedItemMetadata = Readonly<Omit<GeneratedManagedItemMetadata, "currentVersion"> & {
@@ -8464,15 +7473,7 @@ type ManagedDownloadDescriptor = Readonly<Omit<JsonResponse<"createDownload", 20
8464
7473
  readonly response: Readonly<JsonResponse<"createDownload", 200>["response"]>;
8465
7474
  }>;
8466
7475
  type ManagedDownloadRestorePending = Readonly<JsonResponse<"createDownload", 202>>;
8467
- type GeneratedUploadStatus = JsonResponse<"getUploadStatus", 200>;
8468
- type UploadConfirmedPart = Readonly<GeneratedUploadStatus["confirmedParts"][number]>;
8469
- type UploadStatus = Readonly<Omit<GeneratedUploadStatus, "confirmedParts" | "partPolicy" | "ready" | "verification"> & {
8470
- readonly confirmedParts: readonly UploadConfirmedPart[];
8471
- readonly partPolicy: Readonly<GeneratedUploadStatus["partPolicy"]>;
8472
- readonly ready: ReadyUpload | null;
8473
- readonly verification?: Readonly<NonNullable<GeneratedUploadStatus["verification"]>>;
8474
- }>;
8475
- type ProtectionClassification = CreateUploadBody["protectionClassification"];
7476
+ type ProtectionClassification = PrepareVerifiedTransferInput["protectionClassification"];
8476
7477
  type PermissionAction = CreatePermissionBody["actions"][number];
8477
7478
  type PermissionGrantee = Readonly<CreatePermissionBody["grantee"]>;
8478
7479
  type GeneratedPermissionGrant = JsonResponse<"listItemPermissions", 200>["items"][number];
@@ -8553,35 +7554,6 @@ type UpdateItemPermissionInput = GrantMutationInput & Readonly<Omit<UpdatePermis
8553
7554
  readonly actions?: readonly PermissionAction[];
8554
7555
  };
8555
7556
  type RevokeItemPermissionInput = GrantMutationInput;
8556
- type CreateUploadInput = Readonly<CreateUploadPath> & Readonly<CreateUploadBody> & {
8557
- readonly idempotencyKey: CreateUploadHeaders["Idempotency-Key"];
8558
- readonly signal?: AbortSignal;
8559
- };
8560
- type CreateUploadPartDescriptorInput = Readonly<UploadPath> & Readonly<CreateUploadPartDescriptorBody> & {
8561
- readonly signal?: AbortSignal;
8562
- };
8563
- type GetUploadStatusInput = Readonly<UploadStatusPath> & {
8564
- readonly afterPartNumber?: number;
8565
- readonly limit?: number;
8566
- readonly signal?: AbortSignal;
8567
- };
8568
- type RecordUploadPartInput = Readonly<Omit<RecordUploadPartPath, "partNumber">> & Readonly<RecordUploadPartBody> & {
8569
- readonly partNumber: number;
8570
- readonly signal?: AbortSignal;
8571
- };
8572
- /**
8573
- * `deferred` (the default) answers `202` with a `verifying` upload as soon as Drive has the object and can
8574
- * hash it on its queue; `inline` waits for that hash and publishes inside the same request.
8575
- */
8576
- type UploadVerificationMode = "deferred" | "inline";
8577
- type CompleteUploadInput = Readonly<UploadPath> & {
8578
- readonly idempotencyKey: CompleteUploadHeaders["Idempotency-Key"];
8579
- readonly verification?: UploadVerificationMode;
8580
- readonly signal?: AbortSignal;
8581
- };
8582
- type AbortUploadInput = Readonly<AbortUploadPath> & {
8583
- readonly signal?: AbortSignal;
8584
- };
8585
7557
  type UpdateItemInput = Readonly<UpdateItemPath> & Readonly<UpdateItemBody> & {
8586
7558
  readonly idempotencyKey: UpdateItemHeaders["Idempotency-Key"];
8587
7559
  readonly ifMatch: UpdateItemHeaders["If-Match"];
@@ -8626,30 +7598,6 @@ interface UploadFileProgress {
8626
7598
  readonly totalPartCount: number;
8627
7599
  }
8628
7600
  type UploadFileProgressCallback = (progress: UploadFileProgress) => void;
8629
- interface UploadFileInput {
8630
- readonly workspaceId: string;
8631
- readonly parentItemId: string;
8632
- readonly source: Blob;
8633
- readonly displayFilename: string;
8634
- readonly mediaType?: string;
8635
- readonly protectionClassification?: ProtectionClassification;
8636
- readonly idempotencyKey: string;
8637
- readonly completionIdempotencyKey: string;
8638
- /** Defaults to `deferred`: `uploadFile` then resolves with a `verifying` completion the caller settles later. */
8639
- readonly verification?: UploadVerificationMode;
8640
- readonly signal?: AbortSignal;
8641
- readonly onProgress?: UploadFileProgressCallback;
8642
- }
8643
- interface UploadFileVersionInput {
8644
- readonly workspaceId: string;
8645
- readonly itemId: string;
8646
- readonly expectedVersionId: string;
8647
- readonly source: Blob;
8648
- readonly idempotencyKey: string;
8649
- readonly completionIdempotencyKey: string;
8650
- readonly signal?: AbortSignal;
8651
- readonly onProgress?: UploadFileProgressCallback;
8652
- }
8653
7601
  interface GetCurrentWorkspaceInput {
8654
7602
  readonly signal?: AbortSignal;
8655
7603
  }
@@ -8659,8 +7607,6 @@ interface DriveOperations {
8659
7607
  closeEditingSession(input: ChangeEditingSessionInput): Promise<DriveOperationResult<EditingSession, 200>>;
8660
7608
  revokeEditingSession(input: ChangeEditingSessionInput): Promise<DriveOperationResult<EditingSession, 200>>;
8661
7609
  getFileAccessContext(input: GetItemInput): Promise<DriveOperationResult<FileAccessContext, 200>>;
8662
- createFileVersionUpload(input: CreateFileVersionUploadInput): Promise<DriveOperationResult<UploadSession, 200 | 201>>;
8663
- commitFileVersion(input: CommitFileVersionInput): Promise<DriveOperationResult<UploadCompletion, 200 | 202>>;
8664
7610
  createVisitorGrant(input: CreateVisitorGrantInput): Promise<DriveOperationResult<VisitorGrantCreation, 200>>;
8665
7611
  getVisitorGrant(input: GetVisitorGrantInput): Promise<DriveOperationResult<VisitorGrantCreation, 200>>;
8666
7612
  listVisitorGrants(input: GetItemInput): Promise<DriveOperationResult<VisitorGrantPage, 200>>;
@@ -8669,6 +7615,7 @@ interface DriveOperations {
8669
7615
  listItemSharingPeople(input: ListItemSharingPeopleInput): Promise<DriveOperationResult<ItemSharingPeoplePage, 200>>;
8670
7616
  listIncomingShares(input?: ListIncomingSharesInput): Promise<DriveOperationResult<IncomingSharePage, 200>>;
8671
7617
  listWorkspaceItems(input: ListWorkspaceItemsInput): Promise<DriveOperationResult<WorkspaceDiscoveryPage, 200>>;
7618
+ getCurrentUserWorkspaceUsage(input: GetWorkspaceUsageInput): Promise<DriveOperationResult<CurrentUserWorkspaceUsage, 200>>;
8672
7619
  getWorkspaceUsage(input: GetWorkspaceUsageInput): Promise<DriveOperationResult<WorkspaceUsage, 200>>;
8673
7620
  listOwnedItems(input: ListOwnedItemsInput): Promise<DriveOperationResult<OwnedItemPage, 200>>;
8674
7621
  transferItemOwnership(input: TransferItemOwnershipInput): Promise<DriveOperationResult<ItemOwnershipTransfer, 200>>;
@@ -8699,12 +7646,6 @@ interface DriveOperations {
8699
7646
  updateItemPermission(input: UpdateItemPermissionInput): Promise<DriveOperationResult<PermissionMutation, 200>>;
8700
7647
  revokeItemPermission(input: RevokeItemPermissionInput): Promise<DriveOperationResult<PermissionMutation, 200>>;
8701
7648
  revokeInternalItemPermission(input: RevokeItemPermissionInput): Promise<DriveOperationResult<PermissionMutation, 200>>;
8702
- createUpload(input: CreateUploadInput): Promise<DriveOperationResult<UploadSession, 200 | 201>>;
8703
- getUploadStatus(input: GetUploadStatusInput): Promise<DriveOperationResult<UploadStatus, 200>>;
8704
- createUploadPartDescriptor(input: CreateUploadPartDescriptorInput): Promise<DriveOperationResult<UploadPartDescriptor, 200>>;
8705
- recordUploadPart(input: RecordUploadPartInput): Promise<DriveOperationResult<UploadPartResult, 200>>;
8706
- completeUpload(input: CompleteUploadInput): Promise<DriveOperationResult<UploadCompletion, 200 | 202>>;
8707
- abortUpload(input: AbortUploadInput): Promise<DriveOperationResult<undefined, 204>>;
8708
7649
  }
8709
7650
  type VisitorGrantCreation = JsonResponse<"createVisitorGrant", 200>;
8710
7651
  type VisitorGrant = VisitorGrantCreation["grant"];
@@ -8752,10 +7693,9 @@ interface DriveVisitorClient {
8752
7693
  }): Promise<DriveOperationResult<VisitorSession, 200>>;
8753
7694
  createEditingSession(input: CreateVisitorEditingSessionInput): Promise<DriveOperationResult<VisitorEditingSession, 201>>;
8754
7695
  }
8755
- interface DriveServerClient extends DriveOperations {}
8756
- interface DriveClient extends DriveOperations {
8757
- uploadFileVersion(input: UploadFileVersionInput): Promise<DriveOperationResult<UploadCompletion, 200 | 202>>;
8758
- uploadFile(input: UploadFileInput): Promise<DriveOperationResult<UploadCompletion, 200 | 202>>;
7696
+ interface DriveServerClient extends DriveOperations, VerifiedTransferOperations {}
7697
+ interface DriveClient extends DriveOperations, VerifiedTransferOperations {
7698
+ uploadVerifiedFile(input: UploadVerifiedFileInput): Promise<DriveOperationResult<PublishedVerifiedTransfer, 200>>;
8759
7699
  }
8760
7700
  //#endregion
8761
- export { ItemOwnershipTransfer as $, VisitorChildrenInput as $t, DriveOperations as A, RestoreItemInput as At, EffectivePermissionAction as B, UploadCompletion as Bt, DriveClientConfig as C, PermissionPage as Ct, DriveEditingClientConfig as D, RecordUploadPartInput as Dt, DriveEditingClient as E, ReadyUpload as Et, DriveVisitorClientConfig as F, TransferItemOwnershipInput as Ft, GetCurrentWorkspaceInput as G, UploadFileProgressCallback as Gt, FileAccessContext as H, UploadFileInput as Ht, EditingFileMetadata as I, TrashItemInput as It, GetUploadStatusInput as J, UploadPartResult as Jt, GetItemInput as K, UploadFileVersionInput as Kt, EditingFileVersionInput as L, UpdateItemInput as Lt, DriveServerClient as M, RevokeItemPermissionInput as Mt, DriveServerClientConfig as N, RevokeVisitorGrantInput as Nt, DriveEditingServerClient as O, RegisterItemRecipientInput as Ot, DriveVisitorClient as P, SearchWorkspaceItemsInput as Pt, IncomingSharePage as Q, VisitorChildren as Qt, EditingSession as R, UpdateItemPermissionInput as Rt, DriveClient as S, PermissionMutation as St, DriveCredentialProvider as T, ReadEffectiveItemPermissionsInput as Tt, FolderItem as U, UploadFilePhase as Ut, EffectivePermissionResponse as V, UploadConfirmedPart as Vt, FolderPage as W, UploadFileProgress as Wt, GetWorkspaceUsageInput as X, UploadStatus as Xt, GetVisitorGrantInput as Y, UploadSession as Yt, IncomingShareContext as Z, UploadVerificationMode as Zt, CreateVisitorGrantInput as _, OwnedItemPage as _t, CollectOwnedItemsInput as a, VisitorItem as an, ListItemVersionsInput as at, DeleteItemInput as b, PermissionGrant as bt, CompleteUploadInput as c, WorkspaceDiscoveryItem as cn, ManagedDownloadDescriptor as ct, CreateFileVersionUploadInput as d, WorkspaceItemSearchPage as dn, ManagedItemVersion as dt, VisitorDownloadInput as en, ItemSharingPeoplePage as et, CreateFolderInput as f, WorkspaceSharingPolicy as fn, ManagedItemVersionPage as ft, CreateVisitorEditingSessionInput as g, OwnedItem as gt, CreateUploadPartDescriptorInput as h, ManagedLifecycleItem as ht, ChangeEditingSessionInput as i, VisitorGrantPage as in, ListItemSharingPeopleInput as it, DriveResponseValidators as j, RestoreItemVersionInput as jt, DriveOperationResult as k, RegisteredRecipientDisplay as kt, CreateDownloadInput as l, WorkspaceDiscoveryPage as ln, ManagedDownloadRestorePending as lt, CreateUploadInput as m, operations as mn, ManagedItemVersionRestoreResult as mt, ArchiveItemInput as n, VisitorGrant as nn, ListIncomingSharesInput as nt, CollectedOwnedItems as o, VisitorReadInput as on, ListOwnedItemsInput as ot, CreateItemPermissionInput as p, WorkspaceUsage as pn, ManagedItemVersionResource as pt, GetItemVersionInput as q, UploadPartDescriptor as qt, ArchivedItem as r, VisitorGrantCreation as rn, ListItemPermissionsInput as rt, CommitFileVersionInput as s, VisitorSession as sn, ListWorkspaceItemsInput as st, AbortUploadInput as t, VisitorEditingSession as tn, ListFolderChildrenInput as tt, CreateEditingSessionInput as u, WorkspaceItemSearchItem as un, ManagedItemMetadata as ut, CurrentWorkspace as v, PendingUpload as vt, DriveCredentialContext as w, ProtectionClassification as wt, DownloadItemResult as x, PermissionGrantee as xt, CurrentWorkspaceSources as y, PermissionAction as yt, EditingSessionCreation as z, UpdateWorkspaceSharingPolicyInput as zt };
7701
+ export { ListOwnedItemsInput as $, WorkspaceItemSearchPage as $t, DriveVisitorClient as A, TransferItemOwnershipInput as At, GetItemInput as B, VisitorChildren as Bt, DriveEditingClientConfig as C, RegisterItemRecipientInput as Ct, DriveResponseValidators as D, RevokeItemPermissionInput as Dt, DriveOperations as E, RestoreItemVersionInput as Et, EffectivePermissionResponse as F, UploadFilePhase as Ft, IncomingSharePage as G, VisitorGrantCreation as Gt, GetVisitorGrantInput as H, VisitorDownloadInput as Ht, FileAccessContext as I, UploadFileProgress as It, ListFolderChildrenInput as J, VisitorReadInput as Jt, ItemOwnershipTransfer as K, VisitorGrantPage as Kt, FolderItem as L, UploadFileProgressCallback as Lt, EditingSession as M, UpdateItemInput as Mt, EditingSessionCreation as N, UpdateItemPermissionInput as Nt, DriveServerClient as O, RevokeVisitorGrantInput as Ot, EffectivePermissionAction as P, UpdateWorkspaceSharingPolicyInput as Pt, ListItemVersionsInput as Q, WorkspaceItemSearchItem as Qt, FolderPage as R, UploadVerifiedFileInput as Rt, DriveEditingClient as S, RecoverVerifiedTransferInput as St, DriveOperationResult as T, RestoreItemInput as Tt, GetWorkspaceUsageInput as U, VisitorEditingSession as Ut, GetItemVersionInput as V, VisitorChildrenInput as Vt, IncomingShareContext as W, VisitorGrant as Wt, ListItemPermissionsInput as X, WorkspaceDiscoveryItem as Xt, ListIncomingSharesInput as Y, VisitorSession as Yt, ListItemSharingPeopleInput as Z, WorkspaceDiscoveryPage as Zt, DownloadItemResult as _, PreparedVerifiedTransfer as _t, CollectOwnedItemsInput as a, ManagedItemVersionPage as at, DriveCredentialContext as b, PublishedVerifiedTransfer as bt, CreateEditingSessionInput as c, ManagedLifecycleItem as ct, CreateVisitorEditingSessionInput as d, PermissionAction as dt, WorkspaceSharingPolicy as en, ListWorkspaceItemsInput as et, CreateVisitorGrantInput as f, PermissionGrant as ft, DeleteItemInput as g, PrepareVerifiedTransferInput as gt, CurrentWorkspaceSources as h, PermissionPage as ht, ChangeEditingSessionInput as i, ManagedItemVersion as it, DriveVisitorClientConfig as j, TrashItemInput as jt, DriveServerClientConfig as k, SearchWorkspaceItemsInput as kt, CreateFolderInput as l, OwnedItem as lt, CurrentWorkspace as m, PermissionMutation as mt, ArchiveItemInput as n, operations as nn, ManagedDownloadRestorePending as nt, CollectedOwnedItems as o, ManagedItemVersionResource as ot, CurrentUserWorkspaceUsage as p, PermissionGrantee as pt, ItemSharingPeoplePage as q, VisitorItem as qt, ArchivedItem as r, ManagedItemMetadata as rt, CreateDownloadInput as s, ManagedItemVersionRestoreResult as st, AdmittedVerifiedTransfer as t, WorkspaceUsage as tn, ManagedDownloadDescriptor as tt, CreateItemPermissionInput as u, OwnedItemPage as ut, DriveClient as v, ProtectionClassification as vt, DriveEditingServerClient as w, RegisteredRecipientDisplay as wt, DriveCredentialProvider as x, ReadEffectiveItemPermissionsInput as xt, DriveClientConfig as y, PublishVerifiedTransferInput as yt, GetCurrentWorkspaceInput as z, VerifiedTransferOperations as zt };