Properties
Readonly
apiKey
apiKey: string
Methods
Private
buildHeaders
- buildHeaders(params?): Record<string, string>
Private
Parameters
Optional
params: {
apiKey?: string;
}
Returns Record<string, string>
downloadChunkToBuffer
- downloadChunkToBuffer(param0): Promise<Buffer>
Parameters
param0: {
abortSignal?: AbortSignal;
bucket: string;
chunk: number;
maxRetries?: number;
onProgress?: ProgressCallback;
onProgressId?: string;
region: string;
retryTimeout?: number;
timeout?: number;
uuid: string;
}
Optional
abortSignal?: AbortSignal
bucket: string
chunk: number
Optional
maxRetries?: number
Optional
onProgressId?: string
region: string
Optional
retryTimeout?: number
Optional
timeout?: number
uuid: string
Returns Promise<Buffer>
downloadChunkToLocal
- downloadChunkToLocal(param0): Promise<void>
Parameters
param0: {
abortSignal?: AbortSignal;
bucket: string;
chunk: number;
maxRetries?: number;
onProgress?: ProgressCallback;
onProgressId?: string;
region: string;
retryTimeout?: number;
timeout?: number;
to: string;
uuid: string;
}
Optional
abortSignal?: AbortSignal
bucket: string
chunk: number
Optional
maxRetries?: number
Optional
onProgressId?: string
region: string
Optional
retryTimeout?: number
Optional
timeout?: number
to: string
uuid: string
Returns Promise<void>
downloadChunkToStream
- downloadChunkToStream(param0): Promise<ReadableStream<any> | ReadStream>
Parameters
param0: {
abortSignal?: AbortSignal;
bucket: string;
chunk: number;
maxRetries?: number;
onProgress?: ProgressCallback;
onProgressId?: string;
region: string;
retryTimeout?: number;
timeout?: number;
uuid: string;
}
Optional
abortSignal?: AbortSignal
bucket: string
chunk: number
Optional
maxRetries?: number
Optional
onProgressId?: string
region: string
Optional
retryTimeout?: number
Optional
timeout?: number
uuid: string
request
- request<T>(params): Promise<T>
Returns Promise<T>
uploadChunkBuffer
- uploadChunkBuffer(param0): Promise<UploadChunkResponse>
Parameters
param0: {
abortSignal?: AbortSignal;
buffer: Buffer;
index: number;
maxRetries?: number;
onProgress?: ProgressCallback;
onProgressId?: string;
parent: string;
retryTimeout?: number;
timeout?: number;
uploadKey: string;
uuid: string;
}
Optional
abortSignal?: AbortSignal
index: number
Optional
maxRetries?: number
Optional
onProgressId?: string
parent: string
Optional
retryTimeout?: number
Optional
timeout?: number
uploadKey: string
uuid: string
APIClient
Date
2/1/2024 - 2:45:15 AM
Export