Creates a new PartnerRawClient with the given transport.
The constructor configuration.
Calls b2_authorize_account with Master Application Key credentials and
normalizes the Partner/Backup suites into a Partner-specific auth shape.
The Partner API documentation currently shows the v3 authorize path, so
this method intentionally uses /b2api/v3/b2_authorize_account while the
storage raw client keeps using v4.
The Master Application Key ID for authentication.
The Master Application Key secret.
The B2 realm URL to authenticate against.
Optionaloptions: PartnerRawRequestOptions
Optional abort and per-request retry settings.
The normalized Partner authorization response.
Calls b2_create_group_member.
The Partner API creates a new Backblaze account for an email address that is not already a Backblaze account and adds that account to the managed group. The wire response is a single JSON object.
The Partner API base URL from authorizePartner.
The Partner API authorization token.
The group-member creation request body.
Optionaloptions: PartnerRawRequestOptions
Optional abort and per-request retry settings.
The created member result, including the member application key.
Calls b2_eject_group_member.
Ejection removes the member account from the group but does not delete the Backblaze account. The wire response is a single JSON object.
The Partner API base URL from authorizePartner.
The Partner API authorization token.
The group-member ejection request body.
Optionaloptions: PartnerRawRequestOptions
Optional abort and per-request retry settings.
The ejected member object.
Calls b2_list_group_members.
Uses the documented canonical GET form. The wire response is a JSON array
whose result objects surface nextEmail for cursor-based pagination.
The Partner API base URL from authorizePartner.
The Partner API authorization token.
The member listing query parameters.
Optionaloptions: PartnerRawRequestOptions
Optional abort and per-request retry settings.
The group-member page result array.
Calls b2_list_groups.
Uses the documented canonical GET form. The wire response is a single JSON
object that surfaces nextGroupId for cursor-based pagination.
The Partner API base URL from authorizePartner.
The Partner API authorization token.
The group listing query parameters.
Optionaloptions: PartnerRawRequestOptions
Optional abort and per-request retry settings.
The groups page object.
Experimental
Calls b2_reserve_trial_create_account.
The Partner API creates one new Backblaze B2 account and starts a B2 Reserve trial for it. The wire request and success response are single JSON objects.
Each email address must not already be a Backblaze account. term is the
trial duration in days, documented as 7 through 30 inclusive. storage is
the requested storage in TB, documented as 1 through 50 inclusive.
This operation is non-idempotent and creates billable accounts. Automatic retries and expired-token reauthorization are disabled; long-lived callers must catch auth expiry, reauthorize, and then decide whether to issue a new request. A network or timeout failure after the server has processed the request may still have created an account, and the application key from a lost response is not recoverable from B2. Callers should reconcile account state out of band, such as through Partner account listing, before re-issuing a request for the same email address.
The Partner API base URL from authorizePartner. The authorize response currently exposes the shared Partner endpoint base as groupsApiUrl.
The Partner API authorization token.
Email, term, storage, and optional region for the account to create.
Optionaloptions: PartnerRawRequestOptions
Optional abort and per-request retry settings.
The created reserve-trial account result.
Partner API surface; shape may change as the Partner API docs evolve.
Low-level client for Partner API authorization and endpoint bindings.