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

    Variable BucketTypeConst

    BucketType: {
        AllPrivate: "allPrivate";
        AllPublic: "allPublic";
        Restricted: "restricted";
        Snapshot: "snapshot";
    } = ...

    Named constants for the bucket access level.

    The BucketType type alias is derived from the values of this object, so the const is the single source of truth: adding a key here automatically widens the type union.

    Type Declaration

    • ReadonlyAllPrivate: "allPrivate"

      Requires a valid auth token to download.

    • ReadonlyAllPublic: "allPublic"

      Publicly downloadable without authentication.

    • ReadonlyRestricted: "restricted"

      B2-restricted bucket (e.g., for S3-compatible workflows).

    • ReadonlySnapshot: "snapshot"

      Internal snapshot bucket type, generally not user-created.

    await client.createBucket({ bucketName: 'my-app-logs', bucketType: BucketType.AllPrivate })