@finueva/drive 0.22.0 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/README.md +2 -0
- package/dist/client.js +1 -1
- package/dist/contract.d.ts +82 -0
- package/dist/index.js +1 -1
- package/dist/server.js +1 -1
- package/package.json +1 -1
package/dist/contract.d.ts
CHANGED
|
@@ -5510,6 +5510,8 @@ interface operations {
|
|
|
5510
5510
|
contentMd5?: string;
|
|
5511
5511
|
digest: string;
|
|
5512
5512
|
expectedVersionId: string;
|
|
5513
|
+
/** @constant */
|
|
5514
|
+
singleIntegrity?: "sha256";
|
|
5513
5515
|
};
|
|
5514
5516
|
};
|
|
5515
5517
|
};
|
|
@@ -5547,6 +5549,24 @@ interface operations {
|
|
|
5547
5549
|
"x-amz-server-side-encryption-customer-algorithm": "AES256";
|
|
5548
5550
|
"x-amz-server-side-encryption-customer-key": string;
|
|
5549
5551
|
"x-amz-server-side-encryption-customer-key-md5": string;
|
|
5552
|
+
} | {
|
|
5553
|
+
/** @enum {string} */
|
|
5554
|
+
"cache-control": "no-store, no-transform";
|
|
5555
|
+
"content-type": string;
|
|
5556
|
+
/** @enum {string} */
|
|
5557
|
+
"if-none-match": "*";
|
|
5558
|
+
"x-amz-checksum-sha256": string;
|
|
5559
|
+
} | {
|
|
5560
|
+
/** @enum {string} */
|
|
5561
|
+
"cache-control": "no-store, no-transform";
|
|
5562
|
+
"content-type": string;
|
|
5563
|
+
/** @enum {string} */
|
|
5564
|
+
"if-none-match": "*";
|
|
5565
|
+
"x-amz-checksum-sha256": string;
|
|
5566
|
+
/** @enum {string} */
|
|
5567
|
+
"x-amz-server-side-encryption-customer-algorithm": "AES256";
|
|
5568
|
+
"x-amz-server-side-encryption-customer-key": string;
|
|
5569
|
+
"x-amz-server-side-encryption-customer-key-md5": string;
|
|
5550
5570
|
};
|
|
5551
5571
|
/** @enum {string} */
|
|
5552
5572
|
method: "PUT";
|
|
@@ -5594,6 +5614,24 @@ interface operations {
|
|
|
5594
5614
|
"x-amz-server-side-encryption-customer-algorithm": "AES256";
|
|
5595
5615
|
"x-amz-server-side-encryption-customer-key": string;
|
|
5596
5616
|
"x-amz-server-side-encryption-customer-key-md5": string;
|
|
5617
|
+
} | {
|
|
5618
|
+
/** @enum {string} */
|
|
5619
|
+
"cache-control": "no-store, no-transform";
|
|
5620
|
+
"content-type": string;
|
|
5621
|
+
/** @enum {string} */
|
|
5622
|
+
"if-none-match": "*";
|
|
5623
|
+
"x-amz-checksum-sha256": string;
|
|
5624
|
+
} | {
|
|
5625
|
+
/** @enum {string} */
|
|
5626
|
+
"cache-control": "no-store, no-transform";
|
|
5627
|
+
"content-type": string;
|
|
5628
|
+
/** @enum {string} */
|
|
5629
|
+
"if-none-match": "*";
|
|
5630
|
+
"x-amz-checksum-sha256": string;
|
|
5631
|
+
/** @enum {string} */
|
|
5632
|
+
"x-amz-server-side-encryption-customer-algorithm": "AES256";
|
|
5633
|
+
"x-amz-server-side-encryption-customer-key": string;
|
|
5634
|
+
"x-amz-server-side-encryption-customer-key-md5": string;
|
|
5597
5635
|
};
|
|
5598
5636
|
/** @enum {string} */
|
|
5599
5637
|
method: "PUT";
|
|
@@ -6884,6 +6922,11 @@ interface operations {
|
|
|
6884
6922
|
parentItemId: string;
|
|
6885
6923
|
/** @enum {string} */
|
|
6886
6924
|
protectionClassification: "ordinary" | "opaque-encrypted";
|
|
6925
|
+
/**
|
|
6926
|
+
* @description Explicitly negotiates a provider-validated full SHA256 single PUT and its exact header tuple; requires contentMd5 and a nonempty file up to 8 MiB.
|
|
6927
|
+
* @enum {string}
|
|
6928
|
+
*/
|
|
6929
|
+
singleIntegrity?: "sha256";
|
|
6887
6930
|
};
|
|
6888
6931
|
};
|
|
6889
6932
|
};
|
|
@@ -6921,6 +6964,24 @@ interface operations {
|
|
|
6921
6964
|
"x-amz-server-side-encryption-customer-algorithm": "AES256";
|
|
6922
6965
|
"x-amz-server-side-encryption-customer-key": string;
|
|
6923
6966
|
"x-amz-server-side-encryption-customer-key-md5": string;
|
|
6967
|
+
} | {
|
|
6968
|
+
/** @enum {string} */
|
|
6969
|
+
"cache-control": "no-store, no-transform";
|
|
6970
|
+
"content-type": string;
|
|
6971
|
+
/** @enum {string} */
|
|
6972
|
+
"if-none-match": "*";
|
|
6973
|
+
"x-amz-checksum-sha256": string;
|
|
6974
|
+
} | {
|
|
6975
|
+
/** @enum {string} */
|
|
6976
|
+
"cache-control": "no-store, no-transform";
|
|
6977
|
+
"content-type": string;
|
|
6978
|
+
/** @enum {string} */
|
|
6979
|
+
"if-none-match": "*";
|
|
6980
|
+
"x-amz-checksum-sha256": string;
|
|
6981
|
+
/** @enum {string} */
|
|
6982
|
+
"x-amz-server-side-encryption-customer-algorithm": "AES256";
|
|
6983
|
+
"x-amz-server-side-encryption-customer-key": string;
|
|
6984
|
+
"x-amz-server-side-encryption-customer-key-md5": string;
|
|
6924
6985
|
};
|
|
6925
6986
|
/** @enum {string} */
|
|
6926
6987
|
method: "PUT";
|
|
@@ -6968,6 +7029,24 @@ interface operations {
|
|
|
6968
7029
|
"x-amz-server-side-encryption-customer-algorithm": "AES256";
|
|
6969
7030
|
"x-amz-server-side-encryption-customer-key": string;
|
|
6970
7031
|
"x-amz-server-side-encryption-customer-key-md5": string;
|
|
7032
|
+
} | {
|
|
7033
|
+
/** @enum {string} */
|
|
7034
|
+
"cache-control": "no-store, no-transform";
|
|
7035
|
+
"content-type": string;
|
|
7036
|
+
/** @enum {string} */
|
|
7037
|
+
"if-none-match": "*";
|
|
7038
|
+
"x-amz-checksum-sha256": string;
|
|
7039
|
+
} | {
|
|
7040
|
+
/** @enum {string} */
|
|
7041
|
+
"cache-control": "no-store, no-transform";
|
|
7042
|
+
"content-type": string;
|
|
7043
|
+
/** @enum {string} */
|
|
7044
|
+
"if-none-match": "*";
|
|
7045
|
+
"x-amz-checksum-sha256": string;
|
|
7046
|
+
/** @enum {string} */
|
|
7047
|
+
"x-amz-server-side-encryption-customer-algorithm": "AES256";
|
|
7048
|
+
"x-amz-server-side-encryption-customer-key": string;
|
|
7049
|
+
"x-amz-server-side-encryption-customer-key-md5": string;
|
|
6971
7050
|
};
|
|
6972
7051
|
/** @enum {string} */
|
|
6973
7052
|
method: "PUT";
|
|
@@ -8627,6 +8706,8 @@ interface UploadFileProgress {
|
|
|
8627
8706
|
}
|
|
8628
8707
|
type UploadFileProgressCallback = (progress: UploadFileProgress) => void;
|
|
8629
8708
|
interface UploadFileInput {
|
|
8709
|
+
/** Opt in only after the service supports provider-validated single-object SHA256 receipts. */
|
|
8710
|
+
readonly singleIntegrity?: "sha256";
|
|
8630
8711
|
readonly workspaceId: string;
|
|
8631
8712
|
readonly parentItemId: string;
|
|
8632
8713
|
readonly source: Blob;
|
|
@@ -8641,6 +8722,7 @@ interface UploadFileInput {
|
|
|
8641
8722
|
readonly onProgress?: UploadFileProgressCallback;
|
|
8642
8723
|
}
|
|
8643
8724
|
interface UploadFileVersionInput {
|
|
8725
|
+
readonly singleIntegrity?: "sha256";
|
|
8644
8726
|
readonly workspaceId: string;
|
|
8645
8727
|
readonly itemId: string;
|
|
8646
8728
|
readonly expectedVersionId: string;
|