@bytescale/sdk 1.0.0-alpha.1
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/LICENSE +21 -0
- package/README.md +178 -0
- package/dist/browser/cjs/_96d8.main.js +10 -0
- package/dist/browser/cjs/_9d47.main.js +10 -0
- package/dist/browser/cjs/main.js +3946 -0
- package/dist/node/cjs/main.js +3793 -0
- package/dist/node/esm/main.mjs +3816 -0
- package/dist/types/gen/apis/FileApi.d.ts +135 -0
- package/dist/types/gen/apis/FolderApi.d.ts +110 -0
- package/dist/types/gen/apis/JobApi.d.ts +56 -0
- package/dist/types/gen/apis/UploadApi.d.ts +81 -0
- package/dist/types/gen/apis/index.d.ts +4 -0
- package/dist/types/gen/index.d.ts +3 -0
- package/dist/types/gen/models/index.d.ts +2856 -0
- package/dist/types/gen/runtime.d.ts +178 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/utils/ChunkedStream.d.ts +29 -0
- package/dist/types/utils/Model.d.ts +35 -0
- package/dist/types/utils/NodeUtils.d.ts +13 -0
- package/dist/types/utils/UploadManager.d.ts +39 -0
- package/dist/types/utils/index.d.ts +3 -0
- package/package.json +97 -0
- package/tests/ChunkedStream.test.ts +49 -0
- package/tests/UploadManager.test.ts +164 -0
- package/tests/utils/RandomStream.ts +76 -0
- package/tests/utils/StreamToBuffer.ts +8 -0
- package/tests/utils/TempUtils.ts +9 -0
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @bytescale/bytescale-api
|
|
3
|
+
* Bytescale API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
|
+
* Contact: hello@bytescale.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from "../runtime";
|
|
13
|
+
import type { AsyncResponse, CopyFileBatchRequest, CopyFileRequest, CopyFileResponse, DeleteFileBatchRequest, FileDetails, ProcessFileAndSaveRequest, ProcessFileAndSaveResponse } from "../models";
|
|
14
|
+
export interface CopyFileOperationParams {
|
|
15
|
+
accountId: string;
|
|
16
|
+
copyFileRequest: CopyFileRequest;
|
|
17
|
+
}
|
|
18
|
+
export interface CopyFileBatchOperationParams {
|
|
19
|
+
accountId: string;
|
|
20
|
+
copyFileBatchRequest: CopyFileBatchRequest;
|
|
21
|
+
}
|
|
22
|
+
export interface DeleteFileParams {
|
|
23
|
+
accountId: string;
|
|
24
|
+
filePath: string;
|
|
25
|
+
}
|
|
26
|
+
export interface DeleteFileBatchOperationParams {
|
|
27
|
+
accountId: string;
|
|
28
|
+
deleteFileBatchRequest: DeleteFileBatchRequest;
|
|
29
|
+
}
|
|
30
|
+
export interface DownloadFileParams {
|
|
31
|
+
accountId: string;
|
|
32
|
+
filePath: string;
|
|
33
|
+
cache?: boolean;
|
|
34
|
+
cacheTtl?: number;
|
|
35
|
+
version?: string;
|
|
36
|
+
}
|
|
37
|
+
export interface GetFileDetailsParams {
|
|
38
|
+
accountId: string;
|
|
39
|
+
filePath: string;
|
|
40
|
+
}
|
|
41
|
+
export interface ProcessFileParams {
|
|
42
|
+
accountId: string;
|
|
43
|
+
filePath: string;
|
|
44
|
+
transformation: string;
|
|
45
|
+
artifact?: string;
|
|
46
|
+
cache?: boolean;
|
|
47
|
+
cachePerm?: ProcessFileCachePermEnum;
|
|
48
|
+
cacheTtl?: number;
|
|
49
|
+
large?: boolean;
|
|
50
|
+
version?: string;
|
|
51
|
+
}
|
|
52
|
+
export interface ProcessFileAndSaveOperationParams {
|
|
53
|
+
accountId: string;
|
|
54
|
+
filePath: string;
|
|
55
|
+
transformation: string;
|
|
56
|
+
processFileAndSaveRequest: ProcessFileAndSaveRequest;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
*/
|
|
61
|
+
export declare class FileApi extends runtime.BaseAPI {
|
|
62
|
+
/**
|
|
63
|
+
* Copies a file synchronously.
|
|
64
|
+
*/
|
|
65
|
+
private copyFileWithHttpInfo;
|
|
66
|
+
/**
|
|
67
|
+
* Copies a file synchronously.
|
|
68
|
+
*/
|
|
69
|
+
copyFile(requestParameters: CopyFileOperationParams, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CopyFileResponse>;
|
|
70
|
+
/**
|
|
71
|
+
* Copies multiple files asynchronously.
|
|
72
|
+
*/
|
|
73
|
+
private copyFileBatchWithHttpInfo;
|
|
74
|
+
/**
|
|
75
|
+
* Copies multiple files asynchronously.
|
|
76
|
+
*/
|
|
77
|
+
copyFileBatch(requestParameters: CopyFileBatchOperationParams, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AsyncResponse>;
|
|
78
|
+
/**
|
|
79
|
+
* Deletes a file synchronously.
|
|
80
|
+
*/
|
|
81
|
+
private deleteFileWithHttpInfo;
|
|
82
|
+
/**
|
|
83
|
+
* Deletes a file synchronously.
|
|
84
|
+
*/
|
|
85
|
+
deleteFile(requestParameters: DeleteFileParams, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
86
|
+
/**
|
|
87
|
+
* Deletes multiple files asynchronously.
|
|
88
|
+
*/
|
|
89
|
+
private deleteFileBatchWithHttpInfo;
|
|
90
|
+
/**
|
|
91
|
+
* Deletes multiple files asynchronously.
|
|
92
|
+
*/
|
|
93
|
+
deleteFileBatch(requestParameters: DeleteFileBatchOperationParams, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AsyncResponse>;
|
|
94
|
+
/**
|
|
95
|
+
* Downloads a file in its original/unprocessed state.
|
|
96
|
+
*/
|
|
97
|
+
private downloadFileWithHttpInfo;
|
|
98
|
+
/**
|
|
99
|
+
* Downloads a file in its original/unprocessed state.
|
|
100
|
+
*/
|
|
101
|
+
downloadFile(requestParameters: DownloadFileParams, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.BinaryResult>;
|
|
102
|
+
/**
|
|
103
|
+
* Gets the full details (e.g. metadata, tags, etc.) for a file.
|
|
104
|
+
*/
|
|
105
|
+
private getFileDetailsWithHttpInfo;
|
|
106
|
+
/**
|
|
107
|
+
* Gets the full details (e.g. metadata, tags, etc.) for a file.
|
|
108
|
+
*/
|
|
109
|
+
getFileDetails(requestParameters: GetFileDetailsParams, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileDetails>;
|
|
110
|
+
/**
|
|
111
|
+
* Processes a file and returns the result.
|
|
112
|
+
*/
|
|
113
|
+
private processFileWithHttpInfo;
|
|
114
|
+
/**
|
|
115
|
+
* Processes a file and returns the result.
|
|
116
|
+
*/
|
|
117
|
+
processFile(requestParameters: ProcessFileParams, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.BinaryResult>;
|
|
118
|
+
/**
|
|
119
|
+
* Processes a file and saves the result.
|
|
120
|
+
*/
|
|
121
|
+
private processFileAndSaveWithHttpInfo;
|
|
122
|
+
/**
|
|
123
|
+
* Processes a file and saves the result.
|
|
124
|
+
*/
|
|
125
|
+
processFileAndSave(requestParameters: ProcessFileAndSaveOperationParams, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProcessFileAndSaveResponse>;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* @export
|
|
129
|
+
*/
|
|
130
|
+
export declare const ProcessFileCachePermEnum: {
|
|
131
|
+
readonly Auto: "auto";
|
|
132
|
+
readonly False: "false";
|
|
133
|
+
readonly True: "true";
|
|
134
|
+
};
|
|
135
|
+
export declare type ProcessFileCachePermEnum = typeof ProcessFileCachePermEnum[keyof typeof ProcessFileCachePermEnum];
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @bytescale/bytescale-api
|
|
3
|
+
* Bytescale API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
|
+
* Contact: hello@bytescale.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from "../runtime";
|
|
13
|
+
import type { AsyncResponse, CopyFolderBatchRequest, CopyFolderRequest, DeleteFolderBatchRequest, DeleteFolderRequest, FolderDetails, ListFolderResponse, PutFolderRequest } from "../models";
|
|
14
|
+
export interface CopyFolderOperationParams {
|
|
15
|
+
accountId: string;
|
|
16
|
+
copyFolderRequest: CopyFolderRequest;
|
|
17
|
+
}
|
|
18
|
+
export interface CopyFolderBatchOperationParams {
|
|
19
|
+
accountId: string;
|
|
20
|
+
copyFolderBatchRequest: CopyFolderBatchRequest;
|
|
21
|
+
}
|
|
22
|
+
export interface DeleteFolderOperationParams {
|
|
23
|
+
accountId: string;
|
|
24
|
+
deleteFolderRequest: DeleteFolderRequest;
|
|
25
|
+
}
|
|
26
|
+
export interface DeleteFolderBatchOperationParams {
|
|
27
|
+
accountId: string;
|
|
28
|
+
deleteFolderBatchRequest: DeleteFolderBatchRequest;
|
|
29
|
+
}
|
|
30
|
+
export interface GetFolderDetailsParams {
|
|
31
|
+
accountId: string;
|
|
32
|
+
folderPath: string;
|
|
33
|
+
}
|
|
34
|
+
export interface ListFolderParams {
|
|
35
|
+
accountId: string;
|
|
36
|
+
folderPath: string;
|
|
37
|
+
cursor?: string;
|
|
38
|
+
dryRun?: boolean;
|
|
39
|
+
includeFiles?: boolean;
|
|
40
|
+
includeOverriddenStorage?: boolean;
|
|
41
|
+
includePhysicalFolders?: boolean;
|
|
42
|
+
includeVirtualFolders?: boolean;
|
|
43
|
+
limit?: number;
|
|
44
|
+
recursive?: boolean;
|
|
45
|
+
}
|
|
46
|
+
export interface PutFolderOperationParams {
|
|
47
|
+
accountId: string;
|
|
48
|
+
putFolderRequest: PutFolderRequest;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
*/
|
|
53
|
+
export declare class FolderApi extends runtime.BaseAPI {
|
|
54
|
+
/**
|
|
55
|
+
* Copies a folder asynchronously. You can use ListFolder to preview the operation: set `dryRun=true` with ```recursive```, ```includeFiles```, ```includeOverriddenStorage``` and ```includeVirtualFolders``` set to match the values you\'re using here. Leave all other flags unset.
|
|
56
|
+
*/
|
|
57
|
+
private copyFolderWithHttpInfo;
|
|
58
|
+
/**
|
|
59
|
+
* Copies a folder asynchronously. You can use ListFolder to preview the operation: set `dryRun=true` with ```recursive```, ```includeFiles```, ```includeOverriddenStorage``` and ```includeVirtualFolders``` set to match the values you\'re using here. Leave all other flags unset.
|
|
60
|
+
*/
|
|
61
|
+
copyFolder(requestParameters: CopyFolderOperationParams, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AsyncResponse>;
|
|
62
|
+
/**
|
|
63
|
+
* Copies multiple folders asynchronously. You can use ListFolder to preview the operation: set `dryRun=true` with ```recursive```, ```includeFiles```, ```includeOverriddenStorage``` and ```includeVirtualFolders``` set to match the values you\'re using here. Leave all other flags unset.
|
|
64
|
+
*/
|
|
65
|
+
private copyFolderBatchWithHttpInfo;
|
|
66
|
+
/**
|
|
67
|
+
* Copies multiple folders asynchronously. You can use ListFolder to preview the operation: set `dryRun=true` with ```recursive```, ```includeFiles```, ```includeOverriddenStorage``` and ```includeVirtualFolders``` set to match the values you\'re using here. Leave all other flags unset.
|
|
68
|
+
*/
|
|
69
|
+
copyFolderBatch(requestParameters: CopyFolderBatchOperationParams, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AsyncResponse>;
|
|
70
|
+
/**
|
|
71
|
+
* Deletes a folder asynchronously. If the folder has overridden storage settings, then no files will be deleted. You can use ListFolder to preview the operation: set `dryRun=true` with ```recursive```, ```includeFiles``` and ```includeVirtualFolders``` set to match the values you\'re using here. Leave all other flags unset.
|
|
72
|
+
*/
|
|
73
|
+
private deleteFolderWithHttpInfo;
|
|
74
|
+
/**
|
|
75
|
+
* Deletes a folder asynchronously. If the folder has overridden storage settings, then no files will be deleted. You can use ListFolder to preview the operation: set `dryRun=true` with ```recursive```, ```includeFiles``` and ```includeVirtualFolders``` set to match the values you\'re using here. Leave all other flags unset.
|
|
76
|
+
*/
|
|
77
|
+
deleteFolder(requestParameters: DeleteFolderOperationParams, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AsyncResponse>;
|
|
78
|
+
/**
|
|
79
|
+
* Deletes multiple folders asynchronously. If the folder has overridden storage settings, then no files will be deleted. You can use ListFolder to preview the operation: set `dryRun=true` with ```recursive```, ```includeFiles``` and ```includeVirtualFolders``` set to match the values you\'re using here. Leave all other flags unset.
|
|
80
|
+
*/
|
|
81
|
+
private deleteFolderBatchWithHttpInfo;
|
|
82
|
+
/**
|
|
83
|
+
* Deletes multiple folders asynchronously. If the folder has overridden storage settings, then no files will be deleted. You can use ListFolder to preview the operation: set `dryRun=true` with ```recursive```, ```includeFiles``` and ```includeVirtualFolders``` set to match the values you\'re using here. Leave all other flags unset.
|
|
84
|
+
*/
|
|
85
|
+
deleteFolderBatch(requestParameters: DeleteFolderBatchOperationParams, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AsyncResponse>;
|
|
86
|
+
/**
|
|
87
|
+
* Gets the full details (e.g. permission, storage layer, etc.) for a folder. Returns an empty object if no settings have been configured for this folder.
|
|
88
|
+
*/
|
|
89
|
+
private getFolderDetailsWithHttpInfo;
|
|
90
|
+
/**
|
|
91
|
+
* Gets the full details (e.g. permission, storage layer, etc.) for a folder. Returns an empty object if no settings have been configured for this folder.
|
|
92
|
+
*/
|
|
93
|
+
getFolderDetails(requestParameters: GetFolderDetailsParams, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FolderDetails>;
|
|
94
|
+
/**
|
|
95
|
+
* Lists the folder\'s contents. The result may be paginated: subsequent pages can be requested by passing the ```cursor``` from the response into the ```cursor``` request parameter. Pagination is complete when the response includes `isPaginationComplete=true`.
|
|
96
|
+
*/
|
|
97
|
+
private listFolderWithHttpInfo;
|
|
98
|
+
/**
|
|
99
|
+
* Lists the folder\'s contents. The result may be paginated: subsequent pages can be requested by passing the ```cursor``` from the response into the ```cursor``` request parameter. Pagination is complete when the response includes `isPaginationComplete=true`.
|
|
100
|
+
*/
|
|
101
|
+
listFolder(requestParameters: ListFolderParams, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListFolderResponse>;
|
|
102
|
+
/**
|
|
103
|
+
* Creates or updates the folder specified by the `folderPath`. If the folder\'s ancestors do not exist, they will be created automatically (with empty FolderSettings). Note: you don\'t need to create folders before uploading files to them.
|
|
104
|
+
*/
|
|
105
|
+
private putFolderWithHttpInfo;
|
|
106
|
+
/**
|
|
107
|
+
* Creates or updates the folder specified by the `folderPath`. If the folder\'s ancestors do not exist, they will be created automatically (with empty FolderSettings). Note: you don\'t need to create folders before uploading files to them.
|
|
108
|
+
*/
|
|
109
|
+
putFolder(requestParameters: PutFolderOperationParams, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FolderDetails>;
|
|
110
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @bytescale/bytescale-api
|
|
3
|
+
* Bytescale API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
|
+
* Contact: hello@bytescale.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from "../runtime";
|
|
13
|
+
import type { AccountJobType, JobSummary, ListRecentJobsResponse } from "../models";
|
|
14
|
+
export interface CancelJobParams {
|
|
15
|
+
accountId: string;
|
|
16
|
+
jobId: string;
|
|
17
|
+
jobType: AccountJobType;
|
|
18
|
+
}
|
|
19
|
+
export interface GetJobParams {
|
|
20
|
+
accountId: string;
|
|
21
|
+
jobId: string;
|
|
22
|
+
jobType: AccountJobType;
|
|
23
|
+
}
|
|
24
|
+
export interface ListRecentJobsParams {
|
|
25
|
+
accountId: string;
|
|
26
|
+
jobType: Array<AccountJobType>;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
export declare class JobApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* Cancels an in-progress background job. Requires a `secret_*` API key.
|
|
34
|
+
*/
|
|
35
|
+
private cancelJobWithHttpInfo;
|
|
36
|
+
/**
|
|
37
|
+
* Cancels an in-progress background job. Requires a `secret_*` API key.
|
|
38
|
+
*/
|
|
39
|
+
cancelJob(requestParameters: CancelJobParams, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
40
|
+
/**
|
|
41
|
+
* Gets information on a background job. Requires a `secret_*` API key.
|
|
42
|
+
*/
|
|
43
|
+
private getJobWithHttpInfo;
|
|
44
|
+
/**
|
|
45
|
+
* Gets information on a background job. Requires a `secret_*` API key.
|
|
46
|
+
*/
|
|
47
|
+
getJob(requestParameters: GetJobParams, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JobSummary>;
|
|
48
|
+
/**
|
|
49
|
+
* Lists the most recently issued background jobs. Requires a `secret_*` API key.
|
|
50
|
+
*/
|
|
51
|
+
private listRecentJobsWithHttpInfo;
|
|
52
|
+
/**
|
|
53
|
+
* Lists the most recently issued background jobs. Requires a `secret_*` API key.
|
|
54
|
+
*/
|
|
55
|
+
listRecentJobs(requestParameters: ListRecentJobsParams, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListRecentJobsResponse>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @bytescale/bytescale-api
|
|
3
|
+
* Bytescale API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
|
+
* Contact: hello@bytescale.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from "../runtime";
|
|
13
|
+
import type { BasicUploadResponse, BeginMultipartUploadRequest, BeginMultipartUploadResponse, CompleteUploadPartRequest, UploadFromUrlRequest, UploadPart, UploadPartList } from "../models";
|
|
14
|
+
export interface BeginMultipartUploadOperationParams {
|
|
15
|
+
accountId: string;
|
|
16
|
+
beginMultipartUploadRequest: BeginMultipartUploadRequest;
|
|
17
|
+
}
|
|
18
|
+
export interface CompleteUploadPartOperationParams {
|
|
19
|
+
accountId: string;
|
|
20
|
+
uploadId: string;
|
|
21
|
+
uploadPartIndex: number;
|
|
22
|
+
completeUploadPartRequest: CompleteUploadPartRequest;
|
|
23
|
+
}
|
|
24
|
+
export interface GetUploadPartParams {
|
|
25
|
+
accountId: string;
|
|
26
|
+
uploadId: string;
|
|
27
|
+
uploadPartIndex: number;
|
|
28
|
+
}
|
|
29
|
+
export interface ListUploadPartsParams {
|
|
30
|
+
accountId: string;
|
|
31
|
+
uploadId: string;
|
|
32
|
+
}
|
|
33
|
+
export interface UploadFromUrlOperationParams {
|
|
34
|
+
accountId: string;
|
|
35
|
+
uploadFromUrlRequest: UploadFromUrlRequest;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
export declare class UploadApi extends runtime.BaseAPI {
|
|
41
|
+
/**
|
|
42
|
+
* Begins a new multipart file upload process.
|
|
43
|
+
*/
|
|
44
|
+
private beginMultipartUploadWithHttpInfo;
|
|
45
|
+
/**
|
|
46
|
+
* Begins a new multipart file upload process.
|
|
47
|
+
*/
|
|
48
|
+
beginMultipartUpload(requestParameters: BeginMultipartUploadOperationParams, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BeginMultipartUploadResponse>;
|
|
49
|
+
/**
|
|
50
|
+
* Marks an upload part as uploaded. You must call this endpoint after you have successfully issued a `PUT` request to the `uploadUrl` on the corresponding UploadPart.
|
|
51
|
+
*/
|
|
52
|
+
private completeUploadPartWithHttpInfo;
|
|
53
|
+
/**
|
|
54
|
+
* Marks an upload part as uploaded. You must call this endpoint after you have successfully issued a `PUT` request to the `uploadUrl` on the corresponding UploadPart.
|
|
55
|
+
*/
|
|
56
|
+
completeUploadPart(requestParameters: CompleteUploadPartOperationParams, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
57
|
+
/**
|
|
58
|
+
* Gets a remaining upload part for a multipart file upload.
|
|
59
|
+
*/
|
|
60
|
+
private getUploadPartWithHttpInfo;
|
|
61
|
+
/**
|
|
62
|
+
* Gets a remaining upload part for a multipart file upload.
|
|
63
|
+
*/
|
|
64
|
+
getUploadPart(requestParameters: GetUploadPartParams, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UploadPart>;
|
|
65
|
+
/**
|
|
66
|
+
* Lists the remaining upload parts for a multipart file upload. An empty array is returned when the upload is complete.
|
|
67
|
+
*/
|
|
68
|
+
private listUploadPartsWithHttpInfo;
|
|
69
|
+
/**
|
|
70
|
+
* Lists the remaining upload parts for a multipart file upload. An empty array is returned when the upload is complete.
|
|
71
|
+
*/
|
|
72
|
+
listUploadParts(requestParameters: ListUploadPartsParams, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UploadPartList>;
|
|
73
|
+
/**
|
|
74
|
+
* Upload from a URL with a single HTTP request:
|
|
75
|
+
*/
|
|
76
|
+
private uploadFromUrlWithHttpInfo;
|
|
77
|
+
/**
|
|
78
|
+
* Upload from a URL with a single HTTP request:
|
|
79
|
+
*/
|
|
80
|
+
uploadFromUrl(requestParameters: UploadFromUrlOperationParams, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BasicUploadResponse>;
|
|
81
|
+
}
|