The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
update storage-js docs
Iniand42b3870fbe6
diff --git a/apps/reference/_supabase_js/generated/storage-createbucket.mdx b/apps/reference/_supabase_js/generated/storage-createbucket.mdxindex abc4f902042..6a044454cd7 100644--- a/apps/reference/_supabase_js/generated/storage-createbucket.mdx+++ b/apps/reference/_supabase_js/generated/storage-createbucket.mdx@@ -75,7 +75,7 @@ No description provided.</h4><div class="method-list-item-description">-The visibility of the bucket. By default, buckets are not public.+The visibility of the bucket. By default, buckets are not public. Public buckets don't require an authorization token to download objects, but still require an valid token for all other operations.</div>diff --git a/apps/reference/_supabase_js/generated/storage-from-copy.mdx b/apps/reference/_supabase_js/generated/storage-from-copy.mdxindex b8d9952e011..5ceec355732 100644--- a/apps/reference/_supabase_js/generated/storage-from-copy.mdx+++ b/apps/reference/_supabase_js/generated/storage-from-copy.mdx@@ -8,7 +8,7 @@ custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'-Copies an existing file.+Copies an existing file to a new path in the same bucket.```jsconst { data, error } = await supabase.storagediff --git a/apps/reference/_supabase_js/generated/storage-from-createsignedurl.mdx b/apps/reference/_supabase_js/generated/storage-from-createsignedurl.mdxindex c55a9e34c6d..27caefe85b2 100644--- a/apps/reference/_supabase_js/generated/storage-from-createsignedurl.mdx+++ b/apps/reference/_supabase_js/generated/storage-from-createsignedurl.mdx@@ -8,7 +8,7 @@ custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'-Create signed URL to download file without requiring permissions. This URL can be valid for a set number of seconds.+Create a signed URL. A signed URL can be used to share a file with anyone who has the URL for a fixed amount of time.```jsconst { data, error } = await supabase.storage@@ -34,7 +34,7 @@ const { data, error } = await supabase.storage</h4><div class="method-list-item-description">-The file path to be downloaded, including the current file name. For example `folder/image.png`.+The file path, including the current file name. For example `folder/image.png`.</div>diff --git a/apps/reference/_supabase_js/generated/storage-from-createsignedurls.mdx b/apps/reference/_supabase_js/generated/storage-from-createsignedurls.mdxindex 52940552a38..5989797dc8e 100644--- a/apps/reference/_supabase_js/generated/storage-from-createsignedurls.mdx+++ b/apps/reference/_supabase_js/generated/storage-from-createsignedurls.mdx@@ -8,7 +8,7 @@ custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'-Create signed URLs to download files without requiring permissions. These URLs can be valid for a set number of seconds.+This is the batch endpoint for creating multiple signed URLs. A signed URL can be used to share a file with anyone who has the URL for a fixed amount of time.```jsconst { data, error } = await supabase.storagediff --git a/apps/reference/_supabase_js/generated/storage-from-download.mdx b/apps/reference/_supabase_js/generated/storage-from-download.mdxindex 2c6b8421720..2442ee3bd73 100644--- a/apps/reference/_supabase_js/generated/storage-from-download.mdx+++ b/apps/reference/_supabase_js/generated/storage-from-download.mdx@@ -34,7 +34,7 @@ const { data, error } = await supabase.storage</h4><div class="method-list-item-description">-The file path to be downloaded, including the path and file name. For example `folder/image.png`.+The file to be downloaded, including the path and file name. For example `folder/image.png`.</div>diff --git a/apps/reference/_supabase_js/generated/storage-from-getpublicurl.mdx b/apps/reference/_supabase_js/generated/storage-from-getpublicurl.mdxindex 1d6ea4b248c..696a0ad1d31 100644--- a/apps/reference/_supabase_js/generated/storage-from-getpublicurl.mdx+++ b/apps/reference/_supabase_js/generated/storage-from-getpublicurl.mdx@@ -8,10 +8,11 @@ custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'-Retrieve URLs for assets in public buckets and encapsulates it in a return object+Retrieve the URL for an asset in a public bucket.+This function does not actually verify if the bucket is public. If a public URL is created for a bucket which is not public, you will not be able to download the asset.```js-const { data, error } = supabase.storage+const { data } = supabase.storage.from('public-bucket').getPublicUrl('folder/avatar1.png')```@@ -34,7 +35,7 @@ const { data, error } = supabase.storage</h4><div class="method-list-item-description">-The file path to be downloaded, including the path and file name. For example `folder/image.png`.+The path and name of the file to generate the public URL for. For example `folder/image.png`.</div>@@ -54,7 +55,7 @@ The file path to be downloaded, including the path and file name. For example `f### Returns the URL for an asset in a public bucket```js-const { data, error } = supabase.storage+const { data } = supabase.storage.from('public-bucket').getPublicUrl('folder/avatar1.png')```diff --git a/apps/reference/_supabase_js/generated/storage-from-move.mdx b/apps/reference/_supabase_js/generated/storage-from-move.mdxindex 0d9e12fcee5..12710d3e777 100644--- a/apps/reference/_supabase_js/generated/storage-from-move.mdx+++ b/apps/reference/_supabase_js/generated/storage-from-move.mdx@@ -8,7 +8,7 @@ custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_import Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'-Moves an existing file.+Moves an existing file to a new path in the same bucket.```jsconst { data, error } = await supabase.storagediff --git a/apps/reference/_supabase_js/generated/storage-from-update.mdx b/apps/reference/_supabase_js/generated/storage-from-update.mdxindex c8586508a71..6239b9bb2ea 100644--- a/apps/reference/_supabase_js/generated/storage-from-update.mdx+++ b/apps/reference/_supabase_js/generated/storage-from-update.mdx@@ -38,7 +38,7 @@ const { data, error } = await supabase.storage</h4><div class="method-list-item-description">-The relative file path. Should be of the format `folder/subfolder/filename.png`. The bucket must already exist before attempting to upload.+The relative file path. Should be of the format `folder/subfolder/filename.png`. The bucket must already exist before attempting to update.</div>@@ -304,7 +304,7 @@ No description provided.</h4><div class="method-list-item-description">-the `Cache-Control: max-age=<seconds>` seconds value.+The number of seconds the asset is cached in the browser and in the Supabase CDN. Defaults to 3600 seconds. This is set in the `Cache-Control: max-age=<seconds>` header.</div>@@ -344,7 +344,7 @@ the `Content-Type` header value. Should be specified if using a `fileBody` that</h4><div class="method-list-item-description">-whether to perform an upsert+When upsert is set to true, the file will be overwritten if it exists. When set to false, an error will be thrown if the object already exists. Defaults to false.</div>diff --git a/apps/reference/_supabase_js/generated/storage-from-upload.mdx b/apps/reference/_supabase_js/generated/storage-from-upload.mdxindex 77279c95fe4..48048e135d9 100644--- a/apps/reference/_supabase_js/generated/storage-from-upload.mdx+++ b/apps/reference/_supabase_js/generated/storage-from-upload.mdx@@ -304,7 +304,7 @@ No description provided.</h4><div class="method-list-item-description">-the `Cache-Control: max-age=<seconds>` seconds value.+The number of seconds the asset is cached in the browser and in the Supabase CDN. Defaults to 3600 seconds. This is set in the `Cache-Control: max-age=<seconds>` header.</div>@@ -344,7 +344,7 @@ the `Content-Type` header value. Should be specified if using a `fileBody` that</h4><div class="method-list-item-description">-whether to perform an upsert+When upsert is set to true, the file will be overwritten if it exists. When set to false, an error will be thrown if the object already exists. Defaults to false.</div>diff --git a/spec/enrichments/tsdoc_v2/combined.json b/spec/enrichments/tsdoc_v2/combined.jsonindex 37882fdcacc..183c06bdf81 100644--- a/spec/enrichments/tsdoc_v2/combined.json+++ b/spec/enrichments/tsdoc_v2/combined.json@@ -92461,7 +92461,7 @@"kindString": "Property","flags": {},"comment": {- "shortText": "The visibility of the bucket. By default, buckets are not public."+ "shortText": "The visibility of the bucket. By default, buckets are not public. Public buckets don't require an authorization token to download objects, but still require an valid token for all other operations."},"sources": [{@@ -94409,7 +94409,7 @@"isOptional": true},"comment": {- "shortText": "the `Cache-Control: max-age=<seconds>` seconds value."+ "shortText": "The number of seconds the asset is cached in the browser and in the Supabase CDN. Defaults to 3600 seconds. This is set in the `Cache-Control: max-age=<seconds>` header."},"sources": [{@@ -94455,7 +94455,7 @@"isOptional": true},"comment": {- "shortText": "whether to perform an upsert"+ "shortText": "When upsert is set to true, the file will be overwritten if it exists. When set to false, an error will be thrown if the object already exists. Defaults to false."},"sources": [{@@ -95035,7 +95035,7 @@"kindString": "Property","flags": {},"comment": {- "shortText": "The visibility of the bucket. By default, buckets are not public."+ "shortText": "The visibility of the bucket. By default, buckets are not public. Public buckets don't require an authorization token to download objects, but still require an valid token for all other operations."},"sources": [{@@ -96470,7 +96470,7 @@"kindString": "Call signature","flags": {},"comment": {- "shortText": "Copies an existing file."+ "shortText": "Copies an existing file to a new path in the same bucket."},"parameters": [{@@ -96691,7 +96691,7 @@"kindString": "Call signature","flags": {},"comment": {- "shortText": "Create signed URL to download file without requiring permissions. This URL can be valid for a set number of seconds."+ "shortText": "Create a signed URL. A signed URL can be used to share a file with anyone who has the URL for a fixed amount of time."},"parameters": [{@@ -96701,7 +96701,7 @@"kindString": "Parameter","flags": {},"comment": {- "shortText": "The file path to be downloaded, including the current file name. For example `folder/image.png`."+ "shortText": "The file path, including the current file name. For example `folder/image.png`."},"type": {"type": "intrinsic",@@ -96912,7 +96912,7 @@"kindString": "Call signature","flags": {},"comment": {- "shortText": "Create signed URLs to download files without requiring permissions. These URLs can be valid for a set number of seconds."+ "shortText": "This is the batch endpoint for creating multiple signed URLs. A signed URL can be used to share a file with anyone who has the URL for a fixed amount of time."},"parameters": [{@@ -97205,7 +97205,7 @@"kindString": "Parameter","flags": {},"comment": {- "shortText": "The file path to be downloaded, including the path and file name. For example `folder/image.png`.\n"+ "shortText": "The file to be downloaded, including the path and file name. For example `folder/image.png`.\n"},"type": {"type": "intrinsic",@@ -97357,7 +97357,7 @@"sources": [{"fileName": "src/packages/StorageFileApi.ts",- "line": 376,+ "line": 377,"character": 2}],@@ -97369,7 +97369,7 @@"kindString": "Call signature","flags": {},"comment": {- "shortText": "Retrieve URLs for assets in public buckets and encapsulates it in a return object"+ "shortText": "Retrieve the URL for an asset in a public bucket.\nThis function does not actually verify if the bucket is public. If a public URL is created for a bucket which is not public, you will not be able to download the asset."},"parameters": [{@@ -97379,7 +97379,7 @@"kindString": "Parameter","flags": {},"comment": {- "shortText": "The file path to be downloaded, including the path and file name. For example `folder/image.png`.\n"+ "shortText": "The path and name of the file to generate the public URL for. For example `folder/image.png`.\n"},"type": {"type": "intrinsic",@@ -97405,7 +97405,7 @@"sources": [{"fileName": "src/packages/StorageFileApi.ts",- "line": 376,+ "line": 377,"character": 32}],@@ -97427,7 +97427,7 @@"sources": [{"fileName": "src/packages/StorageFileApi.ts",- "line": 376,+ "line": 377,"character": 40}],@@ -97473,7 +97473,7 @@"sources": [{"fileName": "src/packages/StorageFileApi.ts",- "line": 482,+ "line": 483,"character": 8}],@@ -97728,7 +97728,7 @@"sources": [{"fileName": "src/packages/StorageFileApi.ts",- "line": 488,+ "line": 489,"character": 8}],@@ -97750,7 +97750,7 @@"sources": [{"fileName": "src/packages/StorageFileApi.ts",- "line": 489,+ "line": 490,"character": 8}],@@ -97790,7 +97790,7 @@"sources": [{"fileName": "src/packages/StorageFileApi.ts",- "line": 492,+ "line": 493,"character": 8}],@@ -97808,7 +97808,7 @@"sources": [{"fileName": "src/packages/StorageFileApi.ts",- "line": 493,+ "line": 494,"character": 8}],@@ -97862,7 +97862,7 @@"kindString": "Call signature","flags": {},"comment": {- "shortText": "Moves an existing file."+ "shortText": "Moves an existing file to a new path in the same bucket."},"parameters": [{@@ -98071,7 +98071,7 @@"sources": [{"fileName": "src/packages/StorageFileApi.ts",- "line": 386,+ "line": 387,"character": 8}],@@ -98128,7 +98128,7 @@"sources": [{"fileName": "src/packages/StorageFileApi.ts",- "line": 390,+ "line": 391,"character": 8}],@@ -98150,7 +98150,7 @@"sources": [{"fileName": "src/packages/StorageFileApi.ts",- "line": 391,+ "line": 392,"character": 8}],@@ -98190,7 +98190,7 @@"sources": [{"fileName": "src/packages/StorageFileApi.ts",- "line": 394,+ "line": 395,"character": 8}],@@ -98208,7 +98208,7 @@"sources": [{"fileName": "src/packages/StorageFileApi.ts",- "line": 395,+ "line": 396,"character": 8}],@@ -98272,7 +98272,7 @@"kindString": "Parameter","flags": {},"comment": {- "shortText": "The relative file path. Should be of the format `folder/subfolder/filename.png`. The bucket must already exist before attempting to upload."+ "shortText": "The relative file path. Should be of the format `folder/subfolder/filename.png`. The bucket must already exist before attempting to update."},"type": {"type": "intrinsic",@@ -98388,7 +98388,7 @@"isOptional": true},"comment": {- "shortText": "the `Cache-Control: max-age=<seconds>` seconds value."+ "shortText": "The number of seconds the asset is cached in the browser and in the Supabase CDN. Defaults to 3600 seconds. This is set in the `Cache-Control: max-age=<seconds>` header."},"sources": [{@@ -98434,7 +98434,7 @@"isOptional": true},"comment": {- "shortText": "whether to perform an upsert"+ "shortText": "When upsert is set to true, the file will be overwritten if it exists. When set to false, an error will be thrown if the object already exists. Defaults to false."},"sources": [{@@ -98786,7 +98786,7 @@"isOptional": true},"comment": {- "shortText": "the `Cache-Control: max-age=<seconds>` seconds value."+ "shortText": "The number of seconds the asset is cached in the browser and in the Supabase CDN. Defaults to 3600 seconds. This is set in the `Cache-Control: max-age=<seconds>` header."},"sources": [{@@ -98832,7 +98832,7 @@"isOptional": true},"comment": {- "shortText": "whether to perform an upsert"+ "shortText": "When upsert is set to true, the file will be overwritten if it exists. When set to false, an error will be thrown if the object already exists. Defaults to false."},"sources": [{diff --git a/spec/enrichments/tsdoc_v2/storage.json b/spec/enrichments/tsdoc_v2/storage.jsonindex cc5319e53eb..56c9524daa3 100644--- a/spec/enrichments/tsdoc_v2/storage.json+++ b/spec/enrichments/tsdoc_v2/storage.json@@ -473,7 +473,7 @@"kindString": "Property","flags": {},"comment": {- "shortText": "The visibility of the bucket. By default, buckets are not public."+ "shortText": "The visibility of the bucket. By default, buckets are not public. Public buckets don't require an authorization token to download objects, but still require an valid token for all other operations."},"sources": [{@@ -2421,7 +2421,7 @@"isOptional": true},"comment": {- "shortText": "the `Cache-Control: max-age=<seconds>` seconds value."+ "shortText": "The number of seconds the asset is cached in the browser and in the Supabase CDN. Defaults to 3600 seconds. This is set in the `Cache-Control: max-age=<seconds>` header."},"sources": [{@@ -2467,7 +2467,7 @@"isOptional": true},"comment": {- "shortText": "whether to perform an upsert"+ "shortText": "When upsert is set to true, the file will be overwritten if it exists. When set to false, an error will be thrown if the object already exists. Defaults to false."},"sources": [{@@ -3047,7 +3047,7 @@"kindString": "Property","flags": {},"comment": {- "shortText": "The visibility of the bucket. By default, buckets are not public."+ "shortText": "The visibility of the bucket. By default, buckets are not public. Public buckets don't require an authorization token to download objects, but still require an valid token for all other operations."},"sources": [{@@ -4482,7 +4482,7 @@"kindString": "Call signature","flags": {},"comment": {- "shortText": "Copies an existing file."+ "shortText": "Copies an existing file to a new path in the same bucket."},"parameters": [{@@ -4703,7 +4703,7 @@"kindString": "Call signature","flags": {},"comment": {- "shortText": "Create signed URL to download file without requiring permissions. This URL can be valid for a set number of seconds."+ "shortText": "Create a signed URL. A signed URL can be used to share a file with anyone who has the URL for a fixed amount of time."},"parameters": [{@@ -4713,7 +4713,7 @@"kindString": "Parameter","flags": {},"comment": {- "shortText": "The file path to be downloaded, including the current file name. For example `folder/image.png`."+ "shortText": "The file path, including the current file name. For example `folder/image.png`."},"type": {"type": "intrinsic",@@ -4924,7 +4924,7 @@"kindString": "Call signature","flags": {},"comment": {- "shortText": "Create signed URLs to download files without requiring permissions. These URLs can be valid for a set number of seconds."+ "shortText": "This is the batch endpoint for creating multiple signed URLs. A signed URL can be used to share a file with anyone who has the URL for a fixed amount of time."},"parameters": [{@@ -5217,7 +5217,7 @@"kindString": "Parameter","flags": {},"comment": {- "shortText": "The file path to be downloaded, including the path and file name. For example `folder/image.png`.\n"+ "shortText": "The file to be downloaded, including the path and file name. For example `folder/image.png`.\n"},"type": {"type": "intrinsic",@@ -5369,7 +5369,7 @@"sources": [{"fileName": "src/packages/StorageFileApi.ts",- "line": 376,+ "line": 377,"character": 2}],@@ -5381,7 +5381,7 @@"kindString": "Call signature","flags": {},"comment": {- "shortText": "Retrieve URLs for assets in public buckets and encapsulates it in a return object"+ "shortText": "Retrieve the URL for an asset in a public bucket.\nThis function does not actually verify if the bucket is public. If a public URL is created for a bucket which is not public, you will not be able to download the asset."},"parameters": [{@@ -5391,7 +5391,7 @@"kindString": "Parameter","flags": {},"comment": {- "shortText": "The file path to be downloaded, including the path and file name. For example `folder/image.png`.\n"+ "shortText": "The path and name of the file to generate the public URL for. For example `folder/image.png`.\n"},"type": {"type": "intrinsic",@@ -5417,7 +5417,7 @@"sources": [{"fileName": "src/packages/StorageFileApi.ts",- "line": 376,+ "line": 377,"character": 32}],@@ -5439,7 +5439,7 @@"sources": [{"fileName": "src/packages/StorageFileApi.ts",- "line": 376,+ "line": 377,"character": 40}],@@ -5485,7 +5485,7 @@"sources": [{"fileName": "src/packages/StorageFileApi.ts",- "line": 482,+ "line": 483,"character": 8}],@@ -5569,7 +5569,7 @@"sources": [{"fileName": "src/packages/StorageFileApi.ts",- "line": 488,+ "line": 489,"character": 8}],@@ -5591,7 +5591,7 @@"sources": [{"fileName": "src/packages/StorageFileApi.ts",- "line": 489,+ "line": 490,"character": 8}],@@ -5631,7 +5631,7 @@"sources": [{"fileName": "src/packages/StorageFileApi.ts",- "line": 492,+ "line": 493,"character": 8}],@@ -5649,7 +5649,7 @@"sources": [{"fileName": "src/packages/StorageFileApi.ts",- "line": 493,+ "line": 494,"character": 8}],@@ -5703,7 +5703,7 @@"kindString": "Call signature","flags": {},"comment": {- "shortText": "Moves an existing file."+ "shortText": "Moves an existing file to a new path in the same bucket."},"parameters": [{@@ -5912,7 +5912,7 @@"sources": [{"fileName": "src/packages/StorageFileApi.ts",- "line": 386,+ "line": 387,"character": 8}],@@ -5969,7 +5969,7 @@"sources": [{"fileName": "src/packages/StorageFileApi.ts",- "line": 390,+ "line": 391,"character": 8}],@@ -5991,7 +5991,7 @@"sources": [{"fileName": "src/packages/StorageFileApi.ts",- "line": 391,+ "line": 392,"character": 8}],@@ -6031,7 +6031,7 @@"sources": [{"fileName": "src/packages/StorageFileApi.ts",- "line": 394,+ "line": 395,"character": 8}],@@ -6049,7 +6049,7 @@"sources": [{"fileName": "src/packages/StorageFileApi.ts",- "line": 395,+ "line": 396,"character": 8}],@@ -6113,7 +6113,7 @@"kindString": "Parameter","flags": {},"comment": {- "shortText": "The relative file path. Should be of the format `folder/subfolder/filename.png`. The bucket must already exist before attempting to upload."+ "shortText": "The relative file path. Should be of the format `folder/subfolder/filename.png`. The bucket must already exist before attempting to update."},"type": {"type": "intrinsic",diff --git a/spec/enrichments/tsdoc_v2/storage_dereferenced.json b/spec/enrichments/tsdoc_v2/storage_dereferenced.jsonindex ff2f1718565..702d6cab613 100644--- a/spec/enrichments/tsdoc_v2/storage_dereferenced.json+++ b/spec/enrichments/tsdoc_v2/storage_dereferenced.json@@ -473,7 +473,7 @@"kindString": "Property","flags": {},"comment": {- "shortText": "The visibility of the bucket. By default, buckets are not public."+ "shortText": "The visibility of the bucket. By default, buckets are not public. Public buckets don't require an authorization token to download objects, but still require an valid token for all other operations."},"sources": [{@@ -2421,7 +2421,7 @@"isOptional": true},"comment": {- "shortText": "the `Cache-Control: max-age=<seconds>` seconds value."+ "shortText": "The number of seconds the asset is cached in the browser and in the Supabase CDN. Defaults to 3600 seconds. This is set in the `Cache-Control: max-age=<seconds>` header."},"sources": [{@@ -2467,7 +2467,7 @@"isOptional": true},"comment": {- "shortText": "whether to perform an upsert"+ "shortText": "When upsert is set to true, the file will be overwritten if it exists. When set to false, an error will be thrown if the object already exists. Defaults to false."},"sources": [{@@ -3047,7 +3047,7 @@"kindString": "Property","flags": {},"comment": {- "shortText": "The visibility of the bucket. By default, buckets are not public."+ "shortText": "The visibility of the bucket. By default, buckets are not public. Public buckets don't require an authorization token to download objects, but still require an valid token for all other operations."},"sources": [{@@ -4482,7 +4482,7 @@"kindString": "Call signature","flags": {},"comment": {- "shortText": "Copies an existing file."+ "shortText": "Copies an existing file to a new path in the same bucket."},"parameters": [{@@ -4703,7 +4703,7 @@"kindString": "Call signature","flags": {},"comment": {- "shortText": "Create signed URL to download file without requiring permissions. This URL can be valid for a set number of seconds."+ "shortText": "Create a signed URL. A signed URL can be used to share a file with anyone who has the URL for a fixed amount of time."},"parameters": [{@@ -4713,7 +4713,7 @@"kindString": "Parameter","flags": {},"comment": {- "shortText": "The file path to be downloaded, including the current file name. For example `folder/image.png`."+ "shortText": "The file path, including the current file name. For example `folder/image.png`."},"type": {"type": "intrinsic",@@ -4924,7 +4924,7 @@"kindString": "Call signature","flags": {},"comment": {- "shortText": "Create signed URLs to download files without requiring permissions. These URLs can be valid for a set number of seconds."+ "shortText": "This is the batch endpoint for creating multiple signed URLs. A signed URL can be used to share a file with anyone who has the URL for a fixed amount of time."},"parameters": [{@@ -5217,7 +5217,7 @@"kindString": "Parameter","flags": {},"comment": {- "shortText": "The file path to be downloaded, including the path and file name. For example `folder/image.png`.\n"+ "shortText": "The file to be downloaded, including the path and file name. For example `folder/image.png`.\n"},"type": {"type": "intrinsic",@@ -5369,7 +5369,7 @@"sources": [{"fileName": "src/packages/StorageFileApi.ts",- "line": 376,+ "line": 377,"character": 2}],@@ -5381,7 +5381,7 @@"kindString": "Call signature","flags": {},"comment": {- "shortText": "Retrieve URLs for assets in public buckets and encapsulates it in a return object"+ "shortText": "Retrieve the URL for an asset in a public bucket.\nThis function does not actually verify if the bucket is public. If a public URL is created for a bucket which is not public, you will not be able to download the asset."},"parameters": [{@@ -5391,7 +5391,7 @@"kindString": "Parameter","flags": {},"comment": {- "shortText": "The file path to be downloaded, including the path and file name. For example `folder/image.png`.\n"+ "shortText": "The path and name of the file to generate the public URL for. For example `folder/image.png`.\n"},"type": {"type": "intrinsic",@@ -5417,7 +5417,7 @@"sources": [{"fileName": "src/packages/StorageFileApi.ts",- "line": 376,+ "line": 377,"character": 32}],@@ -5439,7 +5439,7 @@"sources": [{"fileName": "src/packages/StorageFileApi.ts",- "line": 376,+ "line": 377,"character": 40}],@@ -5485,7 +5485,7 @@"sources": [{"fileName": "src/packages/StorageFileApi.ts",- "line": 482,+ "line": 483,"character": 8}],@@ -5740,7 +5740,7 @@"sources": [{"fileName": "src/packages/StorageFileApi.ts",- "line": 488,+ "line": 489,"character": 8}],@@ -5762,7 +5762,7 @@"sources": [{"fileName": "src/packages/StorageFileApi.ts",- "line": 489,+ "line": 490,"character": 8}],@@ -5802,7 +5802,7 @@"sources": [{"fileName": "src/packages/StorageFileApi.ts",- "line": 492,+ "line": 493,"character": 8}],@@ -5820,7 +5820,7 @@"sources": [{"fileName": "src/packages/StorageFileApi.ts",- "line": 493,+ "line": 494,"character": 8}],@@ -5874,7 +5874,7 @@"kindString": "Call signature","flags": {},"comment": {- "shortText": "Moves an existing file."+ "shortText": "Moves an existing file to a new path in the same bucket."},"parameters": [{@@ -6083,7 +6083,7 @@"sources": [{"fileName": "src/packages/StorageFileApi.ts",- "line": 386,+ "line": 387,"character": 8}],@@ -6140,7 +6140,7 @@"sources": [{"fileName": "src/packages/StorageFileApi.ts",- "line": 390,+ "line": 391,"character": 8}],@@ -6162,7 +6162,7 @@"sources": [{"fileName": "src/packages/StorageFileApi.ts",- "line": 391,+ "line": 392,"character": 8}],@@ -6202,7 +6202,7 @@"sources": [{"fileName": "src/packages/StorageFileApi.ts",- "line": 394,+ "line": 395,"character": 8}],@@ -6220,7 +6220,7 @@"sources": [{"fileName": "src/packages/StorageFileApi.ts",- "line": 395,+ "line": 396,"character": 8}],@@ -6284,7 +6284,7 @@"kindString": "Parameter","flags": {},"comment": {- "shortText": "The relative file path. Should be of the format `folder/subfolder/filename.png`. The bucket must already exist before attempting to upload."+ "shortText": "The relative file path. Should be of the format `folder/subfolder/filename.png`. The bucket must already exist before attempting to update."},"type": {"type": "intrinsic",@@ -6400,7 +6400,7 @@"isOptional": true},"comment": {- "shortText": "the `Cache-Control: max-age=<seconds>` seconds value."+ "shortText": "The number of seconds the asset is cached in the browser and in the Supabase CDN. Defaults to 3600 seconds. This is set in the `Cache-Control: max-age=<seconds>` header."},"sources": [{@@ -6446,7 +6446,7 @@"isOptional": true},"comment": {- "shortText": "whether to perform an upsert"+ "shortText": "When upsert is set to true, the file will be overwritten if it exists. When set to false, an error will be thrown if the object already exists. Defaults to false."},"sources": [{@@ -6798,7 +6798,7 @@"isOptional": true},"comment": {- "shortText": "the `Cache-Control: max-age=<seconds>` seconds value."+ "shortText": "The number of seconds the asset is cached in the browser and in the Supabase CDN. Defaults to 3600 seconds. This is set in the `Cache-Control: max-age=<seconds>` header."},"sources": [{@@ -6844,7 +6844,7 @@"isOptional": true},"comment": {- "shortText": "whether to perform an upsert"+ "shortText": "When upsert is set to true, the file will be overwritten if it exists. When set to false, an error will be thrown if the object already exists. Defaults to false."},"sources": [{diff --git a/spec/supabase_js_v2_legacy.yml b/spec/supabase_js_v2_legacy.ymlindex c167b455140..ef2a5f7f43d 100644--- a/spec/supabase_js_v2_legacy.yml+++ b/spec/supabase_js_v2_legacy.yml@@ -1375,7 +1375,7 @@ pages:isSpotlight: truejs: |```js- const { data, error } = supabase+ const { data } = supabase.storage.from('public-bucket').getPublicUrl('folder/avatar1.png')