@backblaze-labs/b2-sdk - v0.4.0
    Preparing search index...

    Interface PartnerRawClientOptions

    Configuration for constructing a PartnerRawClient.

    interface PartnerRawClientOptions {
        allowCustomAuthorizeRealm?: boolean;
        authorizedPartnerEndpointSuffixes?: readonly string[];
        transport: HttpTransport;
    }
    Index
    allowCustomAuthorizeRealm?: boolean

    Allow direct custom authorize realms for tests or private proxies. Leave disabled unless the configured host is trusted with the Master Application Key.

    authorizedPartnerEndpointSuffixes?: readonly string[]

    Validated Partner endpoint host suffixes restored from cached authorization. Facades normally manage this after authorization; direct raw clients can pass suffixes derived from trusted Partner authorization when rehydrating an auth cache. Do not derive this cache with JSON.stringify(authorizePartner()), which intentionally stores a redacted token placeholder instead of a usable Partner token. Rehydrating that placeholder fails fast.

    transport: HttpTransport

    The HTTP transport used to send requests.

    Partner endpoint calls validate URLs against suffixes recorded by authorizePartner(). A rehydrated client that skips authorization must use authorizedPartnerEndpointSuffixes or a UrlGuardedTransport with a locked urlGuard. Because Partner authorize responses redact authorizationToken under JSON.stringify, durable caches should persist partnerAuthorizeResponseForPersistence(auth) only to encrypted or otherwise credential-grade storage, or use another secure token-preserving representation.