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

    Type Alias CreateKeyBucketScope

    CreateKeyBucketScope:
        | { bucketId?: never; bucketIds?: readonly BucketId[]
        | null }
        | { bucketId: BucketId; bucketIds?: never }

    Mutually exclusive bucket scope fields for key creation.

    Type Declaration

    • { bucketId?: never; bucketIds?: readonly BucketId[] | null }
      • Optional ReadonlybucketId?: never

        Use bucketIds: [bucketId] instead.

      • Optional ReadonlybucketIds?: readonly BucketId[] | null

        Optional bucket restrictions. A bucket list restricts the key to those buckets; null or omitted grants access to all buckets.

    • { bucketId: BucketId; bucketIds?: never }
      • ReadonlybucketId: BucketId

        Single-bucket restriction.

        Use bucketIds: [bucketId] instead.

      • Optional ReadonlybucketIds?: never

        Do not provide bucketIds with the deprecated bucketId alias.