FileBackboneApiError

Error wrapper for non-2xx FileBackbone API responses.

new FileBackboneApiError(message: any, detail: any)

Extends Error

Parameters
message (any)
detail (any)

FileBackboneClient

HTTP client for FileBackbone JSON API (Authorization: Bearer <public_id>.<secret>). Node: uses undici with long timeouts (FBB_FETCH_TIMEOUT_MS, default 10 minutes). Browser: pass fetchImpl: window.fetch.bind(window) (no dispatcher / undici). Auth modes:

  • API token: set token (Bearer header added)
  • Session + CSRF: omit token, set csrfToken for mutating requests
new FileBackboneClient($0: Object)
Parameters
$0 (Object)
Name Description
$0.baseUrl any
$0.token any
$0.csrfToken any
$0.fetchImpl any
$0.dispatcher any
Static Members
put_presigned_object(opts)
get_presigned_url(url, opt)
Instance Members
_resolve_fetch_and_dispatcher()
request(method, pathname, opts)
presign_blob_upload(body)
blob_head(query)
create_credential(body)
create_repo(body)
list_branches(repo_id)
create_branch(repo_id, body)
merge_branches(repo_id, body)
merge_branches_resolve(repo_id, body)
list_commits(repo_id, query)
get_tree(repo_id, query)
presign_file_upload(repo_id, body)
commit_file_upload(repo_id, body)
create_directory(repo_id, body)
fs_delete(repo_id, body)
fs_move(repo_id, body)
presign_file_download(repo_id, query)
get_file_raw(repo_id, query)
put_file_text(repo_id, body)
create_staging(repo_id, body)
get_staging(repo_id, staging_id)
put_staging(repo_id, staging_id, body)
delete_staging(repo_id, staging_id)
commit_staging(repo_id, staging_id, body)