Creates a new RawClient with the given transport.
The constructor configuration.
Calls b2_authorize_account.
The application key ID for authentication.
The application key secret.
The B2 realm URL to authenticate against.
The authorization response with API URLs and credentials.
Calls b2_cancel_large_file.
The B2 API base URL.
The authorization token.
The API request parameters.
The cancelled large file metadata.
Calls b2_copy_file.
The B2 API base URL.
The authorization token.
The API request parameters.
The copied file version metadata.
Calls b2_copy_part.
The B2 API base URL.
The authorization token.
The API request parameters.
The copied part metadata.
Calls b2_create_bucket.
The B2 API base URL.
The authorization token.
The API request parameters.
The created bucket metadata.
Calls b2_create_key.
The B2 API base URL.
The authorization token.
The API request parameters.
The newly created application key with secret.
Calls b2_delete_bucket.
The B2 API base URL.
The authorization token.
The API request parameters.
The deleted bucket metadata.
Calls b2_delete_file_version.
The B2 API base URL.
The authorization token.
The API request parameters.
The deleted file version identifier.
Calls b2_delete_key.
The B2 API base URL.
The authorization token.
The API request parameters.
The deleted application key metadata.
Calls b2_download_file_by_id.
The B2 download base URL.
The authorization token.
The unique identifier of the file to download.
Optionaloptions: DownloadFileOptionsOptional download parameters for range requests and cancellation.
The response headers, streaming body, and HTTP status code.
Calls b2_download_file_by_name.
The B2 download base URL.
The authorization token.
The name of the bucket containing the file.
The name of the file to download.
Optionaloptions: DownloadFileOptionsOptional download parameters for range requests and cancellation.
The response headers, streaming body, and HTTP status code.
Calls b2_finish_large_file.
The B2 API base URL.
The authorization token.
The API request parameters.
The completed file version metadata.
The B2 API base URL.
The authorization token.
The API request parameters.
The configured event notification rules for the specified bucket.
The B2 API base URL.
The current session authorization token.
The API request parameters.
The download authorization token for the specified file prefix.
Calls b2_get_file_info.
The B2 API base URL.
The authorization token.
The API request parameters.
The file version metadata.
Calls b2_get_upload_part_url.
The B2 API base URL.
The authorization token.
The API request parameters.
The upload part URL and authorization token.
Calls b2_get_upload_url.
The B2 API base URL.
The authorization token.
The API request parameters.
The upload URL and authorization token.
Calls b2_hide_file.
The B2 API base URL.
The authorization token.
The API request parameters.
The hidden file version metadata.
Calls b2_list_buckets.
The B2 API base URL.
The authorization token.
The API request parameters.
The list of matching buckets.
Calls b2_list_file_names.
The B2 API base URL.
The authorization token.
The API request parameters.
The list of file names and optional continuation token.
Calls b2_list_file_versions.
The B2 API base URL.
The authorization token.
The API request parameters.
The list of file versions and optional continuation token.
Calls b2_list_keys.
The B2 API base URL.
The authorization token.
The API request parameters.
The list of application keys and optional continuation token.
Calls b2_list_parts.
The B2 API base URL.
The authorization token.
The API request parameters.
The list of uploaded parts and optional continuation token.
The B2 API base URL.
The authorization token.
The API request parameters.
The list of unfinished large files and optional continuation token.
The B2 API base URL.
The authorization token.
The API request parameters.
The updated bucket notification rules.
Calls b2_start_large_file.
The B2 API base URL.
The authorization token.
The API request parameters.
The started large file metadata with file ID.
Calls b2_update_bucket.
The B2 API base URL.
The authorization token.
The API request parameters.
The updated bucket metadata.
Calls b2_update_file_legal_hold.
The B2 API base URL.
The authorization token.
The API request parameters.
The updated file legal hold status.
Calls b2_update_file_retention.
The B2 API base URL.
The authorization token.
The API request parameters.
The updated file retention settings.
Calls b2_upload_file.
Unlike most methods, this posts directly to the uploadUrl obtained
from getUploadUrl rather than the API URL.
The upload endpoint URL.
The request headers including authorization and content metadata.
The file data to upload.
Optionalsignal: AbortSignalAn optional abort signal for cancellation.
The uploaded file version metadata.
Calls b2_upload_part.
Posts directly to the uploadUrl obtained from getUploadPartUrl
rather than the API URL.
The upload endpoint URL.
The request headers including authorization and content metadata.
The file data to upload.
Optionalsignal: AbortSignalAn optional abort signal for cancellation.
The uploaded part metadata.
Low-level client providing 1:1 bindings to all B2 native API endpoints.
Each method maps directly to a single B2 API call. Most methods accept
(apiUrl, authToken, request)and return the JSON response. Upload and download methods accept endpoint-specific parameters instead.