Liking cljdoc? Tell your friends :D

supabase.storage.specs

Malli schemas for Supabase Storage operation inputs.

Schemas validate caller arguments only — response bodies are returned as plain JSON-decoded maps. See https://supabase.com/docs/reference/javascript/storage-createbucket

Malli schemas for Supabase Storage operation inputs.

Schemas validate caller arguments only — response bodies are returned as
plain JSON-decoded maps. See https://supabase.com/docs/reference/javascript/storage-createbucket
raw docstring

BucketCreateclj

Schema for create-bucket attributes. id is passed positionally and is not part of this map.

Schema for create-bucket attributes. `id` is passed positionally and is
not part of this map.
sourceraw docstring

BucketSortByclj

Schema for list-buckets :sort-by. Column keywords may be kebab-case (:created-at); they are rendered snake_case on the wire.

Schema for list-buckets `:sort-by`. Column keywords may be kebab-case
(`:created-at`); they are rendered snake_case on the wire.
sourceraw docstring

BucketUpdateclj

Schema for update-bucket attributes.

Schema for update-bucket attributes.
sourceraw docstring

CreateIndexParamsclj

Schema for vector create-index params. vector-bucket-name comes from the instance and is not part of this map.

Schema for vector create-index params. `vector-bucket-name` comes from
the instance and is not part of this map.
sourceraw docstring

DownloadOptsclj

Schema for download options.

  • :response-as — :byte-array (default) or :stream
  • :range — [start end] byte range (inclusive) for partial downloads
  • :transform — image transformation options (renders via render/image)
  • :cache-nonce — value for the cacheNonce query param (cache busting)
  • :version-id — download a specific object version instead of the current one (requires bucket versioning)
  • :headers — extra request headers
Schema for download options.

* `:response-as` — `:byte-array` (default) or `:stream`
* `:range` — `[start end]` byte range (inclusive) for partial downloads
* `:transform` — image transformation options (renders via render/image)
* `:cache-nonce` — value for the `cacheNonce` query param (cache busting)
* `:version-id` — download a specific object version instead of the
  current one (requires bucket versioning)
* `:headers` — extra request headers
sourceraw docstring

ensure-storageclj

(ensure-storage s)

Returns nil if s is a valid storage instance, otherwise an anomaly.

Returns nil if `s` is a valid storage instance, otherwise an anomaly.
sourceraw docstring

ensure-validclj

(ensure-valid schema value)

Returns nil if value matches schema, otherwise an anomaly carrying the malli explanation.

Returns nil if `value` matches `schema`, otherwise an anomaly carrying
the malli explanation.
sourceraw docstring

ensure-vector-storageclj

(ensure-vector-storage v)

Returns nil if v is a valid vector storage instance, otherwise an anomaly.

Returns nil if `v` is a valid vector storage instance, otherwise an
anomaly.
sourceraw docstring

FileOptionsclj

Schema for upload/update options.

Schema for upload/update options.
sourceraw docstring

GetVectorsOptsclj

Schema for get-vectors options. keys is required.

Schema for get-vectors options. `keys` is required.
sourceraw docstring

InfoOptsclj

Schema for info options. :version-id retrieves metadata for a specific object version instead of the current one.

Schema for info options. `:version-id` retrieves metadata for a specific
object version instead of the current one.
sourceraw docstring

LifecycleConfigurationclj

Schema for a bucket lifecycle configuration: 1-1000 rules, rule ids unique when set.

Schema for a bucket lifecycle configuration: 1-1000 rules, rule ids
unique when set.
sourceraw docstring

ListAnalyticsBucketsOptsclj

Schema for analytics list-buckets options. All fields optional.

Schema for analytics list-buckets options. All fields optional.
sourceraw docstring

ListBucketsOptionsclj

Schema for list-buckets options. All fields optional.

Schema for list-buckets options. All fields optional.
sourceraw docstring

ListIndexesOptsclj

Schema for vector list-indexes options. Same shape as ListVectorBucketsOpts.

Schema for vector list-indexes options. Same shape as
`ListVectorBucketsOpts`.
sourceraw docstring

ListV2Optionsclj

Schema for cursor-based list-v2 pagination options.

  • :limit — page size (default server-side 100)
  • :cursor — pagination cursor from a previous response
  • :with-delimiter — group by folder hierarchy when true
  • :noncurrent-versions — :exclude (default), :include or :only
  • :delete-markers — :exclude (default), :include or :only
  • :exact-match — only objects whose key exactly matches the prefix
Schema for cursor-based list-v2 pagination options.

* `:limit` — page size (default server-side 100)
* `:cursor` — pagination cursor from a previous response
* `:with-delimiter` — group by folder hierarchy when true
* `:noncurrent-versions` — `:exclude` (default), `:include` or `:only`
* `:delete-markers` — `:exclude` (default), `:include` or `:only`
* `:exact-match` — only objects whose key exactly matches the prefix
sourceraw docstring

ListVectorBucketsOptsclj

Schema for vector list-buckets options. All fields optional.

Schema for vector list-buckets options. All fields optional.
sourceraw docstring

ListVectorsOptsclj

Schema for list-vectors options. All fields optional; when both :segment-count and :segment-index are given, the index must be within [0, segment-count).

Schema for list-vectors options. All fields optional; when both
`:segment-count` and `:segment-index` are given, the index must be
within `[0, segment-count)`.
sourceraw docstring

MoveCopyOptsclj

Schema for move/copy options. :source-version-id moves/copies a specific version of the source object instead of the current one.

Schema for move/copy options. `:source-version-id` moves/copies a
specific version of the source object instead of the current one.
sourceraw docstring

PublicUrlOptsclj

Schema for get-public-url options. :version-id returns the URL for a specific object version instead of the current one.

Schema for get-public-url options. `:version-id` returns the URL for a
specific object version instead of the current one.
sourceraw docstring

PurgeCacheOptsclj

Schema for purge-cache and purge-bucket-cache options. Mirroring storage-js, :transformations may only be true (omit it to purge all cached versions).

Schema for purge-cache and purge-bucket-cache options. Mirroring
storage-js, `:transformations` may only be true (omit it to purge all
cached versions).
sourceraw docstring

QueryVectorsQueryclj

Schema for query-vectors input. :query-vector is required. :top-k accepts 1-10000 (S3 vector buckets; other backends may cap lower).

Schema for query-vectors input. `:query-vector` is required. `:top-k`
accepts 1-10000 (S3 vector buckets; other backends may cap lower).
sourceraw docstring

RemovePathsclj

Schema for remove paths: a vector of plain paths (deletes the version currently at each path) or {:path :version-id} maps (deletes an exact version, current or archived).

Schema for remove paths: a vector of plain paths (deletes the version
currently at each path) or `{:path :version-id}` maps (deletes an exact
version, current or archived).
sourceraw docstring

SearchOptionsclj

Schema for list-files search options. All fields optional.

  • :noncurrent-versions — :exclude (default), :include or :only; controls whether noncurrent object versions appear
  • :delete-markers — :exclude (default), :include or :only
  • :exact-match — only objects whose key exactly matches the prefix
Schema for list-files search options. All fields optional.

* `:noncurrent-versions` — `:exclude` (default), `:include` or `:only`;
  controls whether noncurrent object versions appear
* `:delete-markers` — `:exclude` (default), `:include` or `:only`
* `:exact-match` — only objects whose key exactly matches the prefix
sourceraw docstring

SignedUploadOptsclj

Schema for create-signed-upload-url options.

Schema for create-signed-upload-url options.
sourceraw docstring

SignedUrlOptsclj

Schema for create-signed-url options. expires-in is required (seconds). :version-id signs a specific object version instead of the current one.

Schema for create-signed-url options. `expires-in` is required (seconds).
`:version-id` signs a specific object version instead of the current one.
sourceraw docstring

SignedUrlsOptsclj

Schema for create-signed-urls options.

Schema for create-signed-urls options.
sourceraw docstring

SortByclj

source

Storageclj

Schema for a storage instance map produced by from.

Schema for a storage instance map produced by `from`.
sourceraw docstring

TransformOptionsclj

Schema for image transformation options applied on render.

  • :width / :height — target size in pixels
  • :resize — "cover" (default), "contain", "fill"
  • :quality — 20–100 (default 80)
  • :format — e.g. "origin", "webp"
Schema for image transformation options applied on render.

* `:width` / `:height` — target size in pixels
* `:resize` — `"cover"` (default), `"contain"`, `"fill"`
* `:quality` — 20–100 (default 80)
* `:format` — e.g. `"origin"`, `"webp"`
sourceraw docstring

UploadBodyclj

Schema for upload body — bytes, InputStream, File, or string.

Schema for upload body — bytes, InputStream, File, or string.
sourceraw docstring

VectorBatchclj

Schema for put-vectors input: 1-500 API-shaped vector entries.

Schema for put-vectors input: 1-500 API-shaped vector entries.
sourceraw docstring

VectorKeysclj

Schema for delete-vectors input: 1-500 vector keys.

Schema for delete-vectors input: 1-500 vector keys.
sourceraw docstring

VectorStorageclj

Schema for a vector storage instance map produced by supabase.storage.vector/from and supabase.storage.vector/index. :vector-bucket-name is required by index operations and :vector-index-name additionally by vector data operations.

Schema for a vector storage instance map produced by
`supabase.storage.vector/from` and `supabase.storage.vector/index`.
`:vector-bucket-name` is required by index operations and
`:vector-index-name` additionally by vector data operations.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close