@bytescale/sdk 3.7.0 → 3.9.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.
|
@@ -59,7 +59,7 @@ export interface ProcessFileParams {
|
|
|
59
59
|
accountId: string;
|
|
60
60
|
filePath: string;
|
|
61
61
|
/**
|
|
62
|
-
* The name of the File Processing API (e.g.
|
|
62
|
+
* The name of the File Processing API (e.g. `image`, `video`, `audio`) or transformation preset (created in the Bytescale Dashboard) to use when processing the file.
|
|
63
63
|
*/
|
|
64
64
|
transformation: string;
|
|
65
65
|
/**
|
|
@@ -132,7 +132,7 @@ export interface ProcessFileAndSaveOperationParams {
|
|
|
132
132
|
accountId: string;
|
|
133
133
|
filePath: string;
|
|
134
134
|
/**
|
|
135
|
-
* The name of the File Processing API (e.g.
|
|
135
|
+
* The name of the File Processing API (e.g. `image`, `video`, `audio`) or transformation preset (created in the Bytescale Dashboard) to use when processing the file.
|
|
136
136
|
*/
|
|
137
137
|
transformation: string;
|
|
138
138
|
/**
|
|
@@ -278,9 +278,7 @@ export interface CopyFolderRequest {
|
|
|
278
278
|
*/
|
|
279
279
|
copyFiles?: boolean;
|
|
280
280
|
/**
|
|
281
|
-
* If `true` then copies files from folders that have overridden storage settings, else skips them.
|
|
282
|
-
*
|
|
283
|
-
* If the current folder inherits its storage settings, then the current folder's files will be copied, assuming `copyFiles=true`.
|
|
281
|
+
* If `true` then copies files from folders that have overridden storage settings, else skips them. The current folder is treated the same: if it has overridden storage settings, then its files will only be copied if this flag is `true`, else they will be skipped.
|
|
284
282
|
*
|
|
285
283
|
* You can ignore this setting if your account does not use folders with overridden storage settings, such as custom AWS S3 buckets.
|
|
286
284
|
*
|
|
@@ -783,13 +781,15 @@ export interface FolderDetails {
|
|
|
783
781
|
*/
|
|
784
782
|
settings: FolderSettingsStorageLayerSummary;
|
|
785
783
|
/**
|
|
786
|
-
*
|
|
784
|
+
* Indicates this item is a folder (as opposed to a file).
|
|
787
785
|
* @type {string}
|
|
788
786
|
* @memberof FolderDetails
|
|
789
787
|
*/
|
|
790
788
|
type: FolderDetailsTypeEnum;
|
|
791
789
|
/**
|
|
790
|
+
* If `true` then the folder was created using the PutFolder operation.
|
|
792
791
|
*
|
|
792
|
+
* If `false` then the folder was created automatically as the result of a file upload operation, and will disappear if/when the folder later becomes empty.
|
|
793
793
|
* @type {boolean}
|
|
794
794
|
* @memberof FolderDetails
|
|
795
795
|
*/
|
|
@@ -812,7 +812,7 @@ export declare type FolderDetailsTypeEnum = "Folder";
|
|
|
812
812
|
*
|
|
813
813
|
* Each inherited setting contains a `folderPath` field to indicate which folder the setting was inherited from.
|
|
814
814
|
*
|
|
815
|
-
* Note: if the requester has insufficient privileges to read a setting, that setting's value will be
|
|
815
|
+
* Note: if the requester has insufficient privileges to read a setting, that setting's value will be undefined.
|
|
816
816
|
* @export
|
|
817
817
|
* @interface FolderSettingsInherited
|
|
818
818
|
*/
|
|
@@ -822,13 +822,13 @@ export interface FolderSettingsInherited {
|
|
|
822
822
|
* @type {WithFolderPathPublicPermissionsArray}
|
|
823
823
|
* @memberof FolderSettingsInherited
|
|
824
824
|
*/
|
|
825
|
-
publicPermissions
|
|
825
|
+
publicPermissions?: WithFolderPathPublicPermissionsArray;
|
|
826
826
|
/**
|
|
827
827
|
*
|
|
828
828
|
* @type {WithFolderPathStorageLayerSummary}
|
|
829
829
|
* @memberof FolderSettingsInherited
|
|
830
830
|
*/
|
|
831
|
-
storageLayer
|
|
831
|
+
storageLayer?: WithFolderPathStorageLayerSummary;
|
|
832
832
|
}
|
|
833
833
|
/**
|
|
834
834
|
*
|
|
@@ -837,101 +837,24 @@ export interface FolderSettingsInherited {
|
|
|
837
837
|
*/
|
|
838
838
|
export interface FolderSettingsStorageLayerSummary {
|
|
839
839
|
/**
|
|
840
|
-
*
|
|
840
|
+
* Folder description.
|
|
841
841
|
* @type {string}
|
|
842
842
|
* @memberof FolderSettingsStorageLayerSummary
|
|
843
843
|
*/
|
|
844
|
-
description
|
|
844
|
+
description?: string;
|
|
845
845
|
/**
|
|
846
846
|
*
|
|
847
847
|
* @type {Array<PublicPermissions>}
|
|
848
848
|
* @memberof FolderSettingsStorageLayerSummary
|
|
849
849
|
*/
|
|
850
|
-
publicPermissions
|
|
850
|
+
publicPermissions?: Array<PublicPermissions>;
|
|
851
851
|
/**
|
|
852
852
|
*
|
|
853
|
-
* @type {
|
|
853
|
+
* @type {StorageLayerSummary}
|
|
854
854
|
* @memberof FolderSettingsStorageLayerSummary
|
|
855
855
|
*/
|
|
856
|
-
storageLayer
|
|
856
|
+
storageLayer?: StorageLayerSummary;
|
|
857
857
|
}
|
|
858
|
-
/**
|
|
859
|
-
*
|
|
860
|
-
* @export
|
|
861
|
-
* @interface FolderSettingsStorageLayerSummaryStorageLayer
|
|
862
|
-
*/
|
|
863
|
-
export interface FolderSettingsStorageLayerSummaryStorageLayer {
|
|
864
|
-
/**
|
|
865
|
-
* The type of this storage layer.
|
|
866
|
-
* @type {string}
|
|
867
|
-
* @memberof FolderSettingsStorageLayerSummaryStorageLayer
|
|
868
|
-
*/
|
|
869
|
-
type: FolderSettingsStorageLayerSummaryStorageLayerTypeEnum;
|
|
870
|
-
/**
|
|
871
|
-
* Base URL to proxy requests to. Should contain a trailing `/`.
|
|
872
|
-
*
|
|
873
|
-
* If `baseUrl` is set to `null`, then this folder will behave as an open reverse proxy.
|
|
874
|
-
*
|
|
875
|
-
* *Example 1:* if the `baseUrl` is `null` and the folder you're configuring the storage layer on is:
|
|
876
|
-
*
|
|
877
|
-
* `https://upcdn.io/abc1234/raw/demo`
|
|
878
|
-
*
|
|
879
|
-
* Then you can issue requests such as:
|
|
880
|
-
*
|
|
881
|
-
* `https://upcdn.io/abc1234/raw/demo/https://images.unsplash.com/example.jpg`
|
|
882
|
-
*
|
|
883
|
-
* *Example 2:* if the `baseUrl` is:
|
|
884
|
-
*
|
|
885
|
-
* `https://images.unsplash.com/`
|
|
886
|
-
*
|
|
887
|
-
* And the folder you're configuring the storage layer on is:
|
|
888
|
-
*
|
|
889
|
-
* `https://upcdn.io/abc1234/raw/demo`
|
|
890
|
-
*
|
|
891
|
-
* Then you can issue requests such as:
|
|
892
|
-
*
|
|
893
|
-
* `https://upcdn.io/abc1234/raw/demo/test/example.jpg`
|
|
894
|
-
*
|
|
895
|
-
* Which will be routed to the URL:
|
|
896
|
-
*
|
|
897
|
-
* `https://images.unsplash.com/test/example.jpg`
|
|
898
|
-
* @type {string}
|
|
899
|
-
* @memberof FolderSettingsStorageLayerSummaryStorageLayer
|
|
900
|
-
*/
|
|
901
|
-
baseUrl: string | null;
|
|
902
|
-
/**
|
|
903
|
-
*
|
|
904
|
-
* @type {PickGoogleStorageExcludeKeyofGoogleStorageCredentialsBucket}
|
|
905
|
-
* @memberof FolderSettingsStorageLayerSummaryStorageLayer
|
|
906
|
-
*/
|
|
907
|
-
bucket: PickGoogleStorageExcludeKeyofGoogleStorageCredentialsBucket;
|
|
908
|
-
/**
|
|
909
|
-
* If `true` then writes Google Storage objects with full `filePath` as key, prefixed with the `objectKeyPrefix`.
|
|
910
|
-
*
|
|
911
|
-
* If `false` then writes Google Storage objects using a relative `filePath` in relation to folder's path, prefixed with the `objectKeyPrefix`.
|
|
912
|
-
* @type {boolean}
|
|
913
|
-
* @memberof FolderSettingsStorageLayerSummaryStorageLayer
|
|
914
|
-
*/
|
|
915
|
-
useAbsolutePaths: boolean;
|
|
916
|
-
/**
|
|
917
|
-
* Enables S3 transfer acceleration, providing improved file upload speeds for larger files.
|
|
918
|
-
*
|
|
919
|
-
* Note: this setting must also be enabled on the S3 bucket.
|
|
920
|
-
* @type {boolean}
|
|
921
|
-
* @memberof FolderSettingsStorageLayerSummaryStorageLayer
|
|
922
|
-
*/
|
|
923
|
-
useTransferAcceleration: boolean;
|
|
924
|
-
/**
|
|
925
|
-
* Cloudflare Account ID.
|
|
926
|
-
* @type {string}
|
|
927
|
-
* @memberof FolderSettingsStorageLayerSummaryStorageLayer
|
|
928
|
-
*/
|
|
929
|
-
cloudflareAccountId: string;
|
|
930
|
-
}
|
|
931
|
-
/**
|
|
932
|
-
* @export
|
|
933
|
-
*/
|
|
934
|
-
export declare type FolderSettingsStorageLayerSummaryStorageLayerTypeEnum = "GoogleStorage";
|
|
935
858
|
/**
|
|
936
859
|
* Summary information about a folder (a subset of the FolderDetails type).
|
|
937
860
|
* @export
|
|
@@ -951,13 +874,15 @@ export interface FolderSummary {
|
|
|
951
874
|
*/
|
|
952
875
|
settings: FolderSettingsStorageLayerSummary;
|
|
953
876
|
/**
|
|
954
|
-
*
|
|
877
|
+
* Indicates this item is a folder (as opposed to a file).
|
|
955
878
|
* @type {string}
|
|
956
879
|
* @memberof FolderSummary
|
|
957
880
|
*/
|
|
958
881
|
type: FolderSummaryTypeEnum;
|
|
959
882
|
/**
|
|
883
|
+
* If `true` then the folder was created using the PutFolder operation.
|
|
960
884
|
*
|
|
885
|
+
* If `false` then the folder was created automatically as the result of a file upload operation, and will disappear if/when the folder later becomes empty.
|
|
961
886
|
* @type {boolean}
|
|
962
887
|
* @memberof FolderSummary
|
|
963
888
|
*/
|
|
@@ -1052,6 +977,12 @@ export declare type InternalStorageV1TypeEnum = "InternalStorageV1";
|
|
|
1052
977
|
* @interface InternalStorageV2
|
|
1053
978
|
*/
|
|
1054
979
|
export interface InternalStorageV2 {
|
|
980
|
+
/**
|
|
981
|
+
* Absolute path to a folder. Begins with a `/`. Should not end with a `/`.
|
|
982
|
+
* @type {string}
|
|
983
|
+
* @memberof InternalStorageV2
|
|
984
|
+
*/
|
|
985
|
+
mount?: string;
|
|
1055
986
|
/**
|
|
1056
987
|
* The type of this storage layer.
|
|
1057
988
|
* @type {string}
|
|
@@ -1236,22 +1167,22 @@ export declare type ObjectSummary = FileSummary | FolderSummary;
|
|
|
1236
1167
|
export interface PatchFolderSettings {
|
|
1237
1168
|
/**
|
|
1238
1169
|
*
|
|
1239
|
-
* @type {
|
|
1170
|
+
* @type {UpdatableFieldEmptiableFolderDescription}
|
|
1240
1171
|
* @memberof PatchFolderSettings
|
|
1241
1172
|
*/
|
|
1242
|
-
description
|
|
1173
|
+
description?: UpdatableFieldEmptiableFolderDescription;
|
|
1243
1174
|
/**
|
|
1244
1175
|
*
|
|
1245
|
-
* @type {
|
|
1176
|
+
* @type {UpdatableFieldEmptiablePublicPermissionsArray}
|
|
1246
1177
|
* @memberof PatchFolderSettings
|
|
1247
1178
|
*/
|
|
1248
|
-
publicPermissions
|
|
1179
|
+
publicPermissions?: UpdatableFieldEmptiablePublicPermissionsArray;
|
|
1249
1180
|
/**
|
|
1250
1181
|
*
|
|
1251
|
-
* @type {
|
|
1182
|
+
* @type {UpdatableFieldEmptiableStorageLayerUpdate}
|
|
1252
1183
|
* @memberof PatchFolderSettings
|
|
1253
1184
|
*/
|
|
1254
|
-
storageLayer
|
|
1185
|
+
storageLayer?: UpdatableFieldEmptiableStorageLayerUpdate;
|
|
1255
1186
|
}
|
|
1256
1187
|
/**
|
|
1257
1188
|
* Specifies the level in the file tree, relative to the path, that these permissions apply.
|
|
@@ -1869,155 +1800,72 @@ export interface S3StorageCredentials {
|
|
|
1869
1800
|
/**
|
|
1870
1801
|
* This data type specifies the field must be updated.
|
|
1871
1802
|
* @export
|
|
1872
|
-
* @interface
|
|
1803
|
+
* @interface SpecifiedFieldValueEmptiableFolderDescription
|
|
1873
1804
|
*/
|
|
1874
|
-
export interface
|
|
1805
|
+
export interface SpecifiedFieldValueEmptiableFolderDescription {
|
|
1875
1806
|
/**
|
|
1876
|
-
* This field is always `true`.
|
|
1807
|
+
* This field is always `true`. Indicates the property *will* be updated as part of the request, and the property's new value will be ```value```.
|
|
1877
1808
|
* @type {boolean}
|
|
1878
|
-
* @memberof
|
|
1809
|
+
* @memberof SpecifiedFieldValueEmptiableFolderDescription
|
|
1879
1810
|
*/
|
|
1880
|
-
set:
|
|
1811
|
+
set: SpecifiedFieldValueEmptiableFolderDescriptionSetEnum;
|
|
1881
1812
|
/**
|
|
1882
|
-
*
|
|
1813
|
+
* Folder description.
|
|
1883
1814
|
* @type {string}
|
|
1884
|
-
* @memberof
|
|
1815
|
+
* @memberof SpecifiedFieldValueEmptiableFolderDescription
|
|
1885
1816
|
*/
|
|
1886
|
-
value
|
|
1817
|
+
value?: string;
|
|
1887
1818
|
}
|
|
1888
1819
|
/**
|
|
1889
1820
|
* @export
|
|
1890
1821
|
*/
|
|
1891
|
-
export declare type
|
|
1822
|
+
export declare type SpecifiedFieldValueEmptiableFolderDescriptionSetEnum = true;
|
|
1892
1823
|
/**
|
|
1893
1824
|
* This data type specifies the field must be updated.
|
|
1894
1825
|
* @export
|
|
1895
|
-
* @interface
|
|
1826
|
+
* @interface SpecifiedFieldValueEmptiablePublicPermissionsArray
|
|
1896
1827
|
*/
|
|
1897
|
-
export interface
|
|
1828
|
+
export interface SpecifiedFieldValueEmptiablePublicPermissionsArray {
|
|
1898
1829
|
/**
|
|
1899
|
-
* This field is always `true`.
|
|
1830
|
+
* This field is always `true`. Indicates the property *will* be updated as part of the request, and the property's new value will be ```value```.
|
|
1900
1831
|
* @type {boolean}
|
|
1901
|
-
* @memberof
|
|
1832
|
+
* @memberof SpecifiedFieldValueEmptiablePublicPermissionsArray
|
|
1902
1833
|
*/
|
|
1903
|
-
set:
|
|
1834
|
+
set: SpecifiedFieldValueEmptiablePublicPermissionsArraySetEnum;
|
|
1904
1835
|
/**
|
|
1905
1836
|
* The value to set into the field.
|
|
1906
1837
|
* @type {Array<PublicPermissions>}
|
|
1907
|
-
* @memberof
|
|
1838
|
+
* @memberof SpecifiedFieldValueEmptiablePublicPermissionsArray
|
|
1908
1839
|
*/
|
|
1909
|
-
value
|
|
1840
|
+
value?: Array<PublicPermissions>;
|
|
1910
1841
|
}
|
|
1911
1842
|
/**
|
|
1912
1843
|
* @export
|
|
1913
1844
|
*/
|
|
1914
|
-
export declare type
|
|
1845
|
+
export declare type SpecifiedFieldValueEmptiablePublicPermissionsArraySetEnum = true;
|
|
1915
1846
|
/**
|
|
1916
1847
|
* This data type specifies the field must be updated.
|
|
1917
1848
|
* @export
|
|
1918
|
-
* @interface
|
|
1849
|
+
* @interface SpecifiedFieldValueEmptiableStorageLayerUpdate
|
|
1919
1850
|
*/
|
|
1920
|
-
export interface
|
|
1851
|
+
export interface SpecifiedFieldValueEmptiableStorageLayerUpdate {
|
|
1921
1852
|
/**
|
|
1922
|
-
* This field is always `true`.
|
|
1853
|
+
* This field is always `true`. Indicates the property *will* be updated as part of the request, and the property's new value will be ```value```.
|
|
1923
1854
|
* @type {boolean}
|
|
1924
|
-
* @memberof
|
|
1855
|
+
* @memberof SpecifiedFieldValueEmptiableStorageLayerUpdate
|
|
1925
1856
|
*/
|
|
1926
|
-
set:
|
|
1857
|
+
set: SpecifiedFieldValueEmptiableStorageLayerUpdateSetEnum;
|
|
1927
1858
|
/**
|
|
1928
1859
|
*
|
|
1929
|
-
* @type {
|
|
1930
|
-
* @memberof
|
|
1860
|
+
* @type {StorageLayerUpdate}
|
|
1861
|
+
* @memberof SpecifiedFieldValueEmptiableStorageLayerUpdate
|
|
1931
1862
|
*/
|
|
1932
|
-
value
|
|
1863
|
+
value?: StorageLayerUpdate;
|
|
1933
1864
|
}
|
|
1934
1865
|
/**
|
|
1935
1866
|
* @export
|
|
1936
1867
|
*/
|
|
1937
|
-
export declare type
|
|
1938
|
-
/**
|
|
1939
|
-
* The value to set into the field.
|
|
1940
|
-
* @export
|
|
1941
|
-
* @interface SpecifiedFieldValueStorageLayerUpdateOrNullValue
|
|
1942
|
-
*/
|
|
1943
|
-
export interface SpecifiedFieldValueStorageLayerUpdateOrNullValue {
|
|
1944
|
-
/**
|
|
1945
|
-
* The type of this storage layer.
|
|
1946
|
-
* @type {string}
|
|
1947
|
-
* @memberof SpecifiedFieldValueStorageLayerUpdateOrNullValue
|
|
1948
|
-
*/
|
|
1949
|
-
type: SpecifiedFieldValueStorageLayerUpdateOrNullValueTypeEnum;
|
|
1950
|
-
/**
|
|
1951
|
-
* Base URL to proxy requests to. Should contain a trailing `/`.
|
|
1952
|
-
*
|
|
1953
|
-
* If `baseUrl` is set to `null`, then this folder will behave as an open reverse proxy.
|
|
1954
|
-
*
|
|
1955
|
-
* *Example 1:* if the `baseUrl` is `null` and the folder you're configuring the storage layer on is:
|
|
1956
|
-
*
|
|
1957
|
-
* `https://upcdn.io/abc1234/raw/demo`
|
|
1958
|
-
*
|
|
1959
|
-
* Then you can issue requests such as:
|
|
1960
|
-
*
|
|
1961
|
-
* `https://upcdn.io/abc1234/raw/demo/https://images.unsplash.com/example.jpg`
|
|
1962
|
-
*
|
|
1963
|
-
* *Example 2:* if the `baseUrl` is:
|
|
1964
|
-
*
|
|
1965
|
-
* `https://images.unsplash.com/`
|
|
1966
|
-
*
|
|
1967
|
-
* And the folder you're configuring the storage layer on is:
|
|
1968
|
-
*
|
|
1969
|
-
* `https://upcdn.io/abc1234/raw/demo`
|
|
1970
|
-
*
|
|
1971
|
-
* Then you can issue requests such as:
|
|
1972
|
-
*
|
|
1973
|
-
* `https://upcdn.io/abc1234/raw/demo/test/example.jpg`
|
|
1974
|
-
*
|
|
1975
|
-
* Which will be routed to the URL:
|
|
1976
|
-
*
|
|
1977
|
-
* `https://images.unsplash.com/test/example.jpg`
|
|
1978
|
-
* @type {string}
|
|
1979
|
-
* @memberof SpecifiedFieldValueStorageLayerUpdateOrNullValue
|
|
1980
|
-
*/
|
|
1981
|
-
baseUrl: string | null;
|
|
1982
|
-
/**
|
|
1983
|
-
*
|
|
1984
|
-
* @type {PickGoogleStorageExcludeKeyofGoogleStorageCredentialsBucket}
|
|
1985
|
-
* @memberof SpecifiedFieldValueStorageLayerUpdateOrNullValue
|
|
1986
|
-
*/
|
|
1987
|
-
bucket: PickGoogleStorageExcludeKeyofGoogleStorageCredentialsBucket;
|
|
1988
|
-
/**
|
|
1989
|
-
*
|
|
1990
|
-
* @type {GoogleStorageCredentials}
|
|
1991
|
-
* @memberof SpecifiedFieldValueStorageLayerUpdateOrNullValue
|
|
1992
|
-
*/
|
|
1993
|
-
credentials: GoogleStorageCredentials;
|
|
1994
|
-
/**
|
|
1995
|
-
* If `true` then writes Google Storage objects with full `filePath` as key, prefixed with the `objectKeyPrefix`.
|
|
1996
|
-
*
|
|
1997
|
-
* If `false` then writes Google Storage objects using a relative `filePath` in relation to folder's path, prefixed with the `objectKeyPrefix`.
|
|
1998
|
-
* @type {boolean}
|
|
1999
|
-
* @memberof SpecifiedFieldValueStorageLayerUpdateOrNullValue
|
|
2000
|
-
*/
|
|
2001
|
-
useAbsolutePaths: boolean;
|
|
2002
|
-
/**
|
|
2003
|
-
* Enables S3 transfer acceleration, providing improved file upload speeds for larger files.
|
|
2004
|
-
*
|
|
2005
|
-
* Note: this setting must also be enabled on the S3 bucket.
|
|
2006
|
-
* @type {boolean}
|
|
2007
|
-
* @memberof SpecifiedFieldValueStorageLayerUpdateOrNullValue
|
|
2008
|
-
*/
|
|
2009
|
-
useTransferAcceleration: boolean;
|
|
2010
|
-
/**
|
|
2011
|
-
* Cloudflare Account ID.
|
|
2012
|
-
* @type {string}
|
|
2013
|
-
* @memberof SpecifiedFieldValueStorageLayerUpdateOrNullValue
|
|
2014
|
-
*/
|
|
2015
|
-
cloudflareAccountId: string;
|
|
2016
|
-
}
|
|
2017
|
-
/**
|
|
2018
|
-
* @export
|
|
2019
|
-
*/
|
|
2020
|
-
export declare type SpecifiedFieldValueStorageLayerUpdateOrNullValueTypeEnum = "GoogleStorage";
|
|
1868
|
+
export declare type SpecifiedFieldValueEmptiableStorageLayerUpdateSetEnum = true;
|
|
2021
1869
|
/**
|
|
2022
1870
|
* @type StorageLayerSummary
|
|
2023
1871
|
* Storage layer summary information, describing an existing folder's storage layer.
|
|
@@ -2197,7 +2045,7 @@ export declare type TagConditionOrTypeEnum = "Or";
|
|
|
2197
2045
|
*/
|
|
2198
2046
|
export interface UnspecifiedFieldValue {
|
|
2199
2047
|
/**
|
|
2200
|
-
* This field is always `false`.
|
|
2048
|
+
* This field is always `false`. Indicates the property *will not* be updated as part of the request.
|
|
2201
2049
|
* @type {boolean}
|
|
2202
2050
|
* @memberof UnspecifiedFieldValue
|
|
2203
2051
|
*/
|
|
@@ -2208,23 +2056,23 @@ export interface UnspecifiedFieldValue {
|
|
|
2208
2056
|
*/
|
|
2209
2057
|
export declare type UnspecifiedFieldValueSetEnum = false;
|
|
2210
2058
|
/**
|
|
2211
|
-
* @type
|
|
2059
|
+
* @type UpdatableFieldEmptiableFolderDescription
|
|
2212
2060
|
*
|
|
2213
2061
|
* @export
|
|
2214
2062
|
*/
|
|
2215
|
-
export declare type
|
|
2063
|
+
export declare type UpdatableFieldEmptiableFolderDescription = SpecifiedFieldValueEmptiableFolderDescription | UnspecifiedFieldValue;
|
|
2216
2064
|
/**
|
|
2217
|
-
* @type
|
|
2065
|
+
* @type UpdatableFieldEmptiablePublicPermissionsArray
|
|
2218
2066
|
*
|
|
2219
2067
|
* @export
|
|
2220
2068
|
*/
|
|
2221
|
-
export declare type
|
|
2069
|
+
export declare type UpdatableFieldEmptiablePublicPermissionsArray = SpecifiedFieldValueEmptiablePublicPermissionsArray | UnspecifiedFieldValue;
|
|
2222
2070
|
/**
|
|
2223
|
-
* @type
|
|
2071
|
+
* @type UpdatableFieldEmptiableStorageLayerUpdate
|
|
2224
2072
|
*
|
|
2225
2073
|
* @export
|
|
2226
2074
|
*/
|
|
2227
|
-
export declare type
|
|
2075
|
+
export declare type UpdatableFieldEmptiableStorageLayerUpdate = SpecifiedFieldValueEmptiableStorageLayerUpdate | UnspecifiedFieldValue;
|
|
2228
2076
|
/**
|
|
2229
2077
|
* Request body for UploadFromUrl.
|
|
2230
2078
|
* @export
|
|
@@ -2361,37 +2209,11 @@ export interface UploadPartRange {
|
|
|
2361
2209
|
*/
|
|
2362
2210
|
export interface WebStorage {
|
|
2363
2211
|
/**
|
|
2364
|
-
*
|
|
2365
|
-
*
|
|
2366
|
-
* If `baseUrl` is set to `null`, then this folder will behave as an open reverse proxy.
|
|
2367
|
-
*
|
|
2368
|
-
* *Example 1:* if the `baseUrl` is `null` and the folder you're configuring the storage layer on is:
|
|
2369
|
-
*
|
|
2370
|
-
* `https://upcdn.io/abc1234/raw/demo`
|
|
2371
|
-
*
|
|
2372
|
-
* Then you can issue requests such as:
|
|
2373
|
-
*
|
|
2374
|
-
* `https://upcdn.io/abc1234/raw/demo/https://images.unsplash.com/example.jpg`
|
|
2375
|
-
*
|
|
2376
|
-
* *Example 2:* if the `baseUrl` is:
|
|
2377
|
-
*
|
|
2378
|
-
* `https://images.unsplash.com/`
|
|
2379
|
-
*
|
|
2380
|
-
* And the folder you're configuring the storage layer on is:
|
|
2381
|
-
*
|
|
2382
|
-
* `https://upcdn.io/abc1234/raw/demo`
|
|
2383
|
-
*
|
|
2384
|
-
* Then you can issue requests such as:
|
|
2385
|
-
*
|
|
2386
|
-
* `https://upcdn.io/abc1234/raw/demo/test/example.jpg`
|
|
2387
|
-
*
|
|
2388
|
-
* Which will be routed to the URL:
|
|
2389
|
-
*
|
|
2390
|
-
* `https://images.unsplash.com/test/example.jpg`
|
|
2212
|
+
* URL for an http(s) resource.
|
|
2391
2213
|
* @type {string}
|
|
2392
2214
|
* @memberof WebStorage
|
|
2393
2215
|
*/
|
|
2394
|
-
baseUrl
|
|
2216
|
+
baseUrl?: string;
|
|
2395
2217
|
/**
|
|
2396
2218
|
* The type of this storage layer.
|
|
2397
2219
|
* @type {string}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bytescale/sdk",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.9.0",
|
|
4
4
|
"description": "Bytescale JavaScript SDK",
|
|
5
5
|
"author": "Bytescale <hello@bytescale.com> (https://www.bytescale.com)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,16 +10,34 @@
|
|
|
10
10
|
"exports": {
|
|
11
11
|
".": {
|
|
12
12
|
"node": {
|
|
13
|
-
"require":
|
|
14
|
-
|
|
13
|
+
"require": {
|
|
14
|
+
"types": "./dist/types/index.d.ts",
|
|
15
|
+
"default": "./dist/node/cjs/main.js"
|
|
16
|
+
},
|
|
17
|
+
"import": {
|
|
18
|
+
"types": "./dist/types/index.d.ts",
|
|
19
|
+
"default": "./dist/node/esm/main.mjs"
|
|
20
|
+
}
|
|
15
21
|
},
|
|
16
22
|
"worker": {
|
|
17
|
-
"require":
|
|
18
|
-
|
|
23
|
+
"require": {
|
|
24
|
+
"types": "./dist/types/index.d.ts",
|
|
25
|
+
"default": "./dist/worker/cjs/main.js"
|
|
26
|
+
},
|
|
27
|
+
"import": {
|
|
28
|
+
"types": "./dist/types/index.d.ts",
|
|
29
|
+
"default": "./dist/worker/esm/main.mjs"
|
|
30
|
+
}
|
|
19
31
|
},
|
|
20
32
|
"browser": {
|
|
21
|
-
"require":
|
|
22
|
-
|
|
33
|
+
"require": {
|
|
34
|
+
"types": "./dist/types/index.d.ts",
|
|
35
|
+
"default": "./dist/browser/cjs/main.js"
|
|
36
|
+
},
|
|
37
|
+
"import": {
|
|
38
|
+
"types": "./dist/types/index.d.ts",
|
|
39
|
+
"default": "./dist/browser/esm/main.mjs"
|
|
40
|
+
}
|
|
23
41
|
},
|
|
24
42
|
"types": "./dist/types/index.d.ts",
|
|
25
43
|
"default": "./dist/browser/cjs/main.js"
|