Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

VectorBucketApi

import { VectorBucketApi } from "https://esm.sh/@supabase/storage-js@2.89.0/dist/index.d.mts";
class VectorBucketApi {
constructor(
url: string,
headers?: {
[key: string]: string;
}
,
fetch?: Fetch,
);
protected fetch: Fetch;
protected headers: {
[key: string]: string;
}
;
protected shouldThrowOnError: boolean;
protected url: string;
 
createBucket(vectorBucketName: string): Promise<ApiResponse<undefined>>;
deleteBucket(vectorBucketName: string): Promise<ApiResponse<undefined>>;
getBucket(vectorBucketName: string): Promise<ApiResponse<{
vectorBucket: VectorBucket;
}
>
>
;
throwOnError(): this;
}

§Constructors

§
new VectorBucketApi(url: string, headers?: {
[key: string]: string;
}
, fetch?: Fetch)
[src]

Creates a new VectorBucketApi instance

§Properties

§
headers: {
[key: string]: string;
}
[src]
§
shouldThrowOnError: boolean
[src]
§
url: string
[src]

§Methods

§
createBucket(vectorBucketName: string): Promise<ApiResponse<undefined>>
[src]

Creates a new vector bucket

§
deleteBucket(vectorBucketName: string): Promise<ApiResponse<undefined>>
[src]

Deletes a vector bucket (must be empty first)

§
getBucket(vectorBucketName: string): Promise<ApiResponse<{
vectorBucket: VectorBucket;
}
>
>
[src]

Retrieves metadata for a specific vector bucket

§

Lists vector buckets with optional filtering and pagination

§
throwOnError(): this
[src]

Enable throwing errors instead of returning them in the response