From 59b3cde7d95ab2e948dfdf781fc12cd285330e1f Mon Sep 17 00:00:00 2001 From: Diego Santo Date: Fri, 20 Nov 2026 10:26:43 -0300 Subject: [PATCH 1/2] feat(storage): add exists endpoint --- .../Files/StorageFileApiContractTests.cs | 19 + .../Storage.Tests/Files/StorageFileTests.cs | 15 + .../Storage/Interfaces/IStorageFileApi.cs | 324 ++++++++++-------- .../Storage/Storage/PublicAPI.Unshipped.txt | 2 + packages/Storage/Storage/StorageFileApi.cs | 18 + supabase/.gitignore | 4 + supabase/supabase.lock | 296 ++++++++++++++++ 7 files changed, 534 insertions(+), 144 deletions(-) create mode 100644 supabase/supabase.lock diff --git a/packages/Storage/Storage.Tests/Files/StorageFileApiContractTests.cs b/packages/Storage/Storage.Tests/Files/StorageFileApiContractTests.cs index 82cfbf83..5d95678a 100644 --- a/packages/Storage/Storage.Tests/Files/StorageFileApiContractTests.cs +++ b/packages/Storage/Storage.Tests/Files/StorageFileApiContractTests.cs @@ -564,6 +564,25 @@ public async Task From_ShouldReuseTheConnection_GivenASecondCall() } } + [TestMethod] + public async Task Exists_ShouldReturnTrueForExisingFile() + { + this.Respond($"/storage/v1/object/info/{Bucket}/a.png", "GET", 200, "{\"name\":\"a.png\"}"); + var exists = await this.client.From(Bucket).Exists("a.png"); + + exists.Should().BeTrue(); + } + + [TestMethod] + public async Task Exists_ShouldReturnFalseForNonExisingFile() + { + this.Respond($"/storage/v1/object/info/{Bucket}/a.png", "GET", 404, "{\"name\":\"a.png\"}"); + var exists = await this.client.From(Bucket).Exists("a.png"); + + exists.Should().BeFalse(); + } + + private static async Task AnswerGetRequests(TcpClient connection) { var stream = connection.GetStream(); diff --git a/packages/Storage/Storage.Tests/Files/StorageFileTests.cs b/packages/Storage/Storage.Tests/Files/StorageFileTests.cs index 044f6a37..2b959081 100644 --- a/packages/Storage/Storage.Tests/Files/StorageFileTests.cs +++ b/packages/Storage/Storage.Tests/Files/StorageFileTests.cs @@ -357,6 +357,21 @@ public async Task List_ShouldReturnFilesDescending_GivenCreatedAtColumnAndOrderD list!.Select(item => item.Name).Should().Equal(names[2], names[1], names[0]); } + [TestMethod] + public async Task Exists_ShouldReturnTrueForExistingFile() + { + var names = await this.UploadThreeNumbered(); + var exists = await this.bucket.Exists(names[0]); + exists.Should().BeTrue(); + } + + [TestMethod] + public async Task Exists_ShouldReturnFalseForNonExistingFile() + { + var exists = await this.bucket.Exists("supabase.png"); + exists.Should().BeFalse(); + } + private async Task UploadThreeNumbered() { var names = new[] diff --git a/packages/Storage/Storage/Interfaces/IStorageFileApi.cs b/packages/Storage/Storage/Interfaces/IStorageFileApi.cs index 34215a96..90dab820 100644 --- a/packages/Storage/Storage/Interfaces/IStorageFileApi.cs +++ b/packages/Storage/Storage/Interfaces/IStorageFileApi.cs @@ -1,150 +1,186 @@ -using System; +using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; -namespace Supabase.Storage.Interfaces +namespace Supabase.Storage.Interfaces; + +public interface IStorageFileApi + where TFileObject : FileObject { - public interface IStorageFileApi - where TFileObject : FileObject - { - ClientOptions Options { get; } - Task CreateSignedUrl( - string path, - int expiresIn, - TransformOptions? transformOptions = null, - DownloadOptions? options = null - ); - Task?> CreateSignedUrls( - List paths, - int expiresIn, - DownloadOptions? options = null - ); - Task Download(string supabasePath, EventHandler? onProgress = null, CancellationToken cancellationToken = default, string? cacheNonce = null); - Task Download( - string supabasePath, - TransformOptions? transformOptions = null, - EventHandler? onProgress = null, - CancellationToken cancellationToken = default, - string? cacheNonce = null - ); - Task Download( - string supabasePath, - string localPath, - EventHandler? onProgress = null, - CancellationToken cancellationToken = default, - string? cacheNonce = null - ); - Task Download( - string supabasePath, - string localPath, - TransformOptions? transformOptions = null, - EventHandler? onProgress = null, - CancellationToken cancellationToken = default, - string? cacheNonce = null - ); - Task DownloadPublicFile( - string supabasePath, - TransformOptions? transformOptions = null, - EventHandler? onProgress = null, - CancellationToken cancellationToken = default, - string? cacheNonce = null - ); - Task DownloadPublicFile( - string supabasePath, - string localPath, - TransformOptions? transformOptions = null, - EventHandler? onProgress = null, - CancellationToken cancellationToken = default, - string? cacheNonce = null - ); - string GetPublicUrl( - string path, - TransformOptions? transformOptions = null, - DownloadOptions? options = null - ); - Task?> List(string path = "", SearchOptions? options = null); - /// Lists the objects under a prefix, one page at a time. - Task ListV2Async(SearchV2Options? options = null, CancellationToken cancellationToken = default); - Task Info(string path); - Task Move(string fromPath, string toPath, DestinationOptions? options = null); - Task Copy(string fromPath, string toPath, DestinationOptions? options = null); - Task Remove(string path); - Task?> Remove(List paths); - Task Update( - byte[] data, - string supabasePath, - FileOptions? options = null, - EventHandler? onProgress = null - ); - Task Update( - string localFilePath, - string supabasePath, - FileOptions? options = null, - EventHandler? onProgress = null - ); - Task Upload( - byte[] data, - string supabasePath, - FileOptions? options = null, - EventHandler? onProgress = null, - bool inferContentType = true, - CancellationToken cancellationToken = default - ); - Task Upload( - string localFilePath, - string supabasePath, - FileOptions? options = null, - EventHandler? onProgress = null, - bool inferContentType = true, - CancellationToken cancellationToken = default - ); - Task UploadOrResume( - string localPath, - string fileName, - FileOptions options, - EventHandler? onProgress = null, - CancellationToken cancellationToken = default - ); - Task UploadOrResume( - byte[] data, - string fileName, - FileOptions options, - EventHandler? onProgress = null, - CancellationToken cancellationToken = default - ); - Task UploadToSignedUrl( - byte[] data, - UploadSignedUrl url, - FileOptions? options = null, - EventHandler? onProgress = null, - bool inferContentType = true - ); - Task UploadToSignedUrl( - string localFilePath, - UploadSignedUrl url, - FileOptions? options = null, - EventHandler? onProgress = null, - bool inferContentType = true - ); - Task CreateUploadSignedUrl(string supabasePath); - - /// - /// Purges the CDN cache for a single object. Requires a service-role key. - /// - /// The object path within the bucket to purge. - /// - /// When is true, only the transformed - /// variants are purged; otherwise every cached version is purged. - /// - /// Token used to cancel the request. - /// The service acknowledgement of the purge. - /// - /// - /// await storage.From("avatars").PurgeCache("folder/avatar.png"); - /// - /// - Task PurgeCache(string path, PurgeCacheOptions? options = null, CancellationToken cancellationToken = default); - } -} + ClientOptions Options { get; } + + Task CreateSignedUrl( + string path, + int expiresIn, + TransformOptions? transformOptions = null, + DownloadOptions? options = null + ); + + Task?> CreateSignedUrls( + List paths, + int expiresIn, + DownloadOptions? options = null + ); + + Task Download(string supabasePath, EventHandler? onProgress = null, + CancellationToken cancellationToken = default, string? cacheNonce = null); + + Task Download( + string supabasePath, + TransformOptions? transformOptions = null, + EventHandler? onProgress = null, + CancellationToken cancellationToken = default, + string? cacheNonce = null + ); + + Task Download( + string supabasePath, + string localPath, + EventHandler? onProgress = null, + CancellationToken cancellationToken = default, + string? cacheNonce = null + ); + + Task Download( + string supabasePath, + string localPath, + TransformOptions? transformOptions = null, + EventHandler? onProgress = null, + CancellationToken cancellationToken = default, + string? cacheNonce = null + ); + + Task DownloadPublicFile( + string supabasePath, + TransformOptions? transformOptions = null, + EventHandler? onProgress = null, + CancellationToken cancellationToken = default, + string? cacheNonce = null + ); + + Task DownloadPublicFile( + string supabasePath, + string localPath, + TransformOptions? transformOptions = null, + EventHandler? onProgress = null, + CancellationToken cancellationToken = default, + string? cacheNonce = null + ); + + string GetPublicUrl( + string path, + TransformOptions? transformOptions = null, + DownloadOptions? options = null + ); + + Task?> List(string path = "", SearchOptions? options = null); + + /// Lists the objects under a prefix, one page at a time. + Task ListV2Async(SearchV2Options? options = null, CancellationToken cancellationToken = default); + Task Info(string path); + Task Move(string fromPath, string toPath, DestinationOptions? options = null); + Task Copy(string fromPath, string toPath, DestinationOptions? options = null); + Task Remove(string path); + Task?> Remove(List paths); + + Task Update( + byte[] data, + string supabasePath, + FileOptions? options = null, + EventHandler? onProgress = null + ); + + Task Update( + string localFilePath, + string supabasePath, + FileOptions? options = null, + EventHandler? onProgress = null + ); + + Task Upload( + byte[] data, + string supabasePath, + FileOptions? options = null, + EventHandler? onProgress = null, + bool inferContentType = true, + CancellationToken cancellationToken = default + ); + + Task Upload( + string localFilePath, + string supabasePath, + FileOptions? options = null, + EventHandler? onProgress = null, + bool inferContentType = true, + CancellationToken cancellationToken = default + ); + + Task UploadOrResume( + string localPath, + string fileName, + FileOptions options, + EventHandler? onProgress = null, + CancellationToken cancellationToken = default + ); + + Task UploadOrResume( + byte[] data, + string fileName, + FileOptions options, + EventHandler? onProgress = null, + CancellationToken cancellationToken = default + ); + + Task UploadToSignedUrl( + byte[] data, + UploadSignedUrl url, + FileOptions? options = null, + EventHandler? onProgress = null, + bool inferContentType = true + ); + + Task UploadToSignedUrl( + string localFilePath, + UploadSignedUrl url, + FileOptions? options = null, + EventHandler? onProgress = null, + bool inferContentType = true + ); + + Task CreateUploadSignedUrl(string supabasePath); + + /// + /// Purges the CDN cache for a single object. Requires a service-role key. + /// + /// The object path within the bucket to purge. + /// + /// When is true, only the transformed + /// variants are purged; otherwise every cached version is purged. + /// + /// Token used to cancel the request. + /// The service acknowledgement of the purge. + /// + /// + /// await storage.From("avatars").PurgeCache("folder/avatar.png"); + /// + /// + Task PurgeCache(string path, PurgeCacheOptions? options = null, + CancellationToken cancellationToken = default); + /// Checks whether a file exists by reading its metadata. + /// + /// Returns false only for the NoSuchKey error code or an HTTP 404 without + /// an error code. Other failures, including InvalidJWT, NoSuchBucket, and + /// network errors, throw an exception. + /// + /// The file path within the bucket, including the file name (for example, folder/image.png). + /// A token to cancel the operation. + /// A task that resolves to true if the file exists or false if the key does not exist. + /// + /// + /// var exists = await storage.From("avatars").Exists("folder/avatar1.png"); + /// + /// + Task Exists(string path, CancellationToken cancellationToken = default); +} \ No newline at end of file diff --git a/packages/Storage/Storage/PublicAPI.Unshipped.txt b/packages/Storage/Storage/PublicAPI.Unshipped.txt index 7dc5c581..783d3b25 100644 --- a/packages/Storage/Storage/PublicAPI.Unshipped.txt +++ b/packages/Storage/Storage/PublicAPI.Unshipped.txt @@ -1 +1,3 @@ #nullable enable +Supabase.Storage.Interfaces.IStorageFileApi.Exists(string! path, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task! +Supabase.Storage.StorageFileApi.Exists(string! path, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task! diff --git a/packages/Storage/Storage/StorageFileApi.cs b/packages/Storage/Storage/StorageFileApi.cs index 2ea4b0b9..3a29f8eb 100644 --- a/packages/Storage/Storage/StorageFileApi.cs +++ b/packages/Storage/Storage/StorageFileApi.cs @@ -885,6 +885,24 @@ public async Task CreateUploadSignedUrl(string supabasePath) return Helpers.MakeRequestAsync(this.requestClient, this.Options, HttpMethod.Delete, url, null, this.Headers, cancellationToken); } + /// + [ImplementedCapability("storage.file_buckets.exists")] + public async Task Exists(string path, CancellationToken cancellationToken = default) + { + bool exists; + try + { + var result = await this.Info(path); + exists = result != null; + } + catch (SupabaseStorageException) + { + exists = false; + } + + return exists; + } + private async Task UploadOrUpdate( string localPath, string supabasePath, diff --git a/supabase/.gitignore b/supabase/.gitignore index ad9264f0..1a8d279a 100644 --- a/supabase/.gitignore +++ b/supabase/.gitignore @@ -6,3 +6,7 @@ .env.keys .env.local .env.*.local +.link.json +..link.json.*.tmp +.supabase.lock.*.tmp +.supabase.lock.lease diff --git a/supabase/supabase.lock b/supabase/supabase.lock new file mode 100644 index 00000000..555edc05 --- /dev/null +++ b/supabase/supabase.lock @@ -0,0 +1,296 @@ +{ + "$schema": "https://supabase.com/docs/cli/supabase-lock/v1.schema.json", + "lockfileVersion": 1, + "services": { + "analytics": { + "resolution": "unlinked", + "resolved": { + "image": "ghcr.io/supabase/cli/analytics:v1.50.15-r1@sha256:2b03ec3120effe5d33c1e2ec4570a932fb60ce6a6851b4920a22388b4e8356c1", + "natives": { + "darwin-arm64": { + "archive": "abfc9ba64e354129e8f8b0f38b43747a5dab48785fd3593d11e52cd6e0ff37bf", + "manifest": "60647643f5521089978dc20c6966b86ed939b9751b187cbb70e0de3fbd2479ac" + }, + "linux-amd64": { + "archive": "7652456c1a1d73ac6fe10853bd8a38e79139b43fe796caec5725a3d0f225a3d8", + "manifest": "6c465af69e26ce8a9c15988d5dcbbae069e9a92b697962bfa86c4f3e601b8409" + }, + "linux-arm64": { + "archive": "a75625d7c903d70e749b5ee776e2c5c98d51ee60ff92b28bb6684121fe0f3888", + "manifest": "ca2569304cf24e6abd4242b55dd0d20338f40532fbe6377a9accdc5d47ea47ab" + } + }, + "revision": 1, + "upstreamImage": "supabase/logflare:1.50.15", + "upstreamVersion": "v1.50.15" + }, + "specifier": "linked" + }, + "auth": { + "resolution": "unlinked", + "resolved": { + "image": "ghcr.io/supabase/cli/auth:v2.198.0-r0@sha256:6119529b17c2b335fdeb49673cbb5d602bf5e4368d1f1032ba11bc4bfd24b850", + "natives": { + "darwin-arm64": { + "archive": "323bb22d7a163702df4ad0f0b4fb49771a9bb08d49763f7fdd495ba4f745710a", + "manifest": "e2f17c664c8afeed99713820bddd5ed7e9433b8a4e19e9a4e1c1fd10754604d0" + }, + "linux-amd64": { + "archive": "4950efb44baf7fd8dda6198f1b866be643832f1096adeb67bb2d864572e4174a", + "manifest": "0bc00fc89511098819ce1b05a9b6c30dfe383fe2bae4c527de27b04a462f8667" + }, + "linux-arm64": { + "archive": "14850783b8a92eccec16f1b193b913c85489abf29345f94acccceb9b93b41c08", + "manifest": "6eb8e2abbd275d0633683fbea4e5fc00c183995c3eca8a2c2820c40b5b40dcbd" + } + }, + "revision": 0, + "upstreamImage": "supabase/gotrue:v2.198.0", + "upstreamVersion": "v2.198.0" + }, + "specifier": "linked" + }, + "database": { + "line": "stock", + "majorVersion": 17, + "resolution": "unlinked", + "resolved": { + "image": "ghcr.io/supabase/cli/postgres:17.12.0.000-r0@sha256:f76f17ab40da704b0ab60c012277144e93abf85e396c26f9a272d7b5bd20073f", + "natives": { + "darwin-arm64": { + "archive": "3ce7182570ea4469a6100e305518bb8c01aa26ec271cdb7c99c3c580ed2c131f", + "manifest": "652061fe275bb62d7bafad12d0f2792cfbac09b8033b72ac9be0029f26eb91aa" + }, + "linux-amd64": { + "archive": "4ac5109d37675558b9e2ede5486a23dcb287b61702983c97093c792632c4b219", + "manifest": "0401872e20298e20cc013df84ca4bc6caa54f6c028f7f709a7fa234a1715ad0e" + }, + "linux-arm64": { + "archive": "d87e80af00cdb552f852a775ab3ce0543438e84399b7d2792be5ede812fdec53", + "manifest": "9923b0dbea76b43c905129af15d40302d9507c446013cf667dce87618a39d3bb" + } + }, + "revision": 0, + "upstreamImage": "supabase/postgres:17.12.0.000", + "upstreamVersion": "17.12.0.000" + }, + "specifier": "linked" + }, + "functions": { + "resolution": "unlinked", + "resolved": { + "image": "ghcr.io/supabase/cli/edge-runtime:v1.79.1-r0@sha256:907112ab171c4bc8373c632c879fc37ff3d5fa58ee42e2b1fa11d772c6640067", + "natives": { + "darwin-arm64": { + "archive": "4a529125ca3f378bcdb2b63cc7ea972a1b3bbbd700f55f9da74b606c005ba794", + "manifest": "78947a27be462a8280d7f74b9113a9ff8e159c06926307114e251c3490e45189" + }, + "linux-amd64": { + "archive": "032c4f7420ddb3cff53a3791ac5cb580b3be5849086c27d2567359d7a824df52", + "manifest": "92d1d386c692e56c2e19795e9dedfb2382c9039be2ef17b7ea3b9390896188c5" + }, + "linux-arm64": { + "archive": "b8e659e28853c95c71ee1419b9faf0c93a3518211e5c7a6c33619a521315acaa", + "manifest": "f317beec1975ee503df6fa6c52aee1eb5bf9112fd89279fcae6c82bd6d4a985e" + } + }, + "revision": 0, + "upstreamImage": "supabase/edge-runtime:v1.79.1", + "upstreamVersion": "v1.79.1" + }, + "specifier": "linked" + }, + "imgproxy": { + "resolution": "unlinked", + "resolved": { + "image": "ghcr.io/supabase/cli/imgproxy:v3.26.0-r0@sha256:5871582cf6c5140d3b50b21e0d1aa236fdf46ee6133e3bfec1baf63545e01cf0", + "natives": { + "darwin-arm64": { + "archive": "1f82084b056bf4806bf492bca0b6f963068d07a6776a2a122b61da940732683b", + "manifest": "53b5c4f4f069db88c3919571dbee12af2373e5c90db291cf5d7456aa74e17ecb" + }, + "linux-amd64": { + "archive": "7865edf054b8217c2daf9d42bce6bebe34f83df5c4183fbbe6495a3603dcd4a8", + "manifest": "5ae7f22a6fbdc55f41ffc3334747a3475295676699ac1d2c372bc5fe2ad239bb" + }, + "linux-arm64": { + "archive": "4528fd7877c9df3052cd6ec06c8cafd7e92977dd26490fb532964c19faec3b0a", + "manifest": "5420e6d9b3661060b2dedfe157c18b56f22011c43cc3127031b4bbc65e936b59" + } + }, + "revision": 0, + "upstreamImage": "ghcr.io/imgproxy/imgproxy:v3.26.0", + "upstreamVersion": "v3.26.0" + }, + "specifier": "linked" + }, + "mail": { + "resolution": "unlinked", + "resolved": { + "image": "ghcr.io/supabase/cli/mailpit:v1.31.3-r0@sha256:ed9b00c609e77e99c79b93f1178255ebc271868920f2c69a8d166bd5634ed10d", + "natives": { + "darwin-arm64": { + "archive": "d460a6a55693a2a321ad83ebb83417b8078324751a744f982bb3512da0632712", + "manifest": "43177dc88b6f625bec6d98096e39c10f4cd10956081df01b5b7cebeeae47766a" + }, + "linux-amd64": { + "archive": "57e39cb39b2288313e26abe9ae9300f6af9332abd1f76f4d67be533741b2c942", + "manifest": "36595519f40e406b17a0ce6e21f153400f217ae24b0365f0a5c495ff315b9f82" + }, + "linux-arm64": { + "archive": "805b09d9008e9be2c6c9230e668bd2c6ab446eeae26389e91732f9e20b2c3f5f", + "manifest": "973b76700a5a865243bd5a5c36664121ed99c538d58633921cc8fd7c675e655c" + } + }, + "revision": 0, + "upstreamImage": "axllent/mailpit:v1.31.3", + "upstreamVersion": "v1.31.3" + }, + "specifier": "linked" + }, + "pgmeta": { + "resolution": "unlinked", + "resolved": { + "image": "ghcr.io/supabase/cli/pgmeta:v0.100.0-r0@sha256:1dc3ce4f710e9696ec1374f89d0dc84291104c9a1ce030f9ac999670d4d74a08", + "natives": { + "darwin-arm64": { + "archive": "adecdf5168a9e43056d4e3d78122960b3f645607f6b64e7e178522ad8ca7f3e4", + "manifest": "edf539c9a613c4f0d2d4ccf5d245c8fd57b60d158bcc7c24a18f343236529c69" + }, + "linux-amd64": { + "archive": "5df0dfb03469f358858b8768f39db9a77b5947ec0567aff1056fddbfa1f2db75", + "manifest": "3095c4655e8f35451fdb84194065a31c4edee9b52fd5b28ac01dfdae620e07a1" + }, + "linux-arm64": { + "archive": "8289012110b6b466d8366ceb2e6f731eca9b46020046b585438f988615666a22", + "manifest": "349d37edae9ac07d15543e7acf5bae288112850285dee28c602cd6c04ea11c1a" + } + }, + "revision": 0, + "upstreamImage": "supabase/postgres-meta:v0.100.0", + "upstreamVersion": "v0.100.0" + }, + "specifier": "linked" + }, + "pooler": { + "resolution": "unlinked", + "resolved": { + "image": "ghcr.io/supabase/cli/pooler:v2.10.1-r0@sha256:3ed8759dd8066718df6be496b84ed6fc1a61f2268e7013f10a49cfb16072cc86", + "natives": { + "darwin-arm64": { + "archive": "cb9f4f6330b32376bf7a2cf6e6c8c3bafb0059645685b9273fff8cdd80b6bfdc", + "manifest": "9fbd6b9ab5d7082078a387c515c7bed4fb1cd9bbc607908f53531a3acbb809ee" + }, + "linux-amd64": { + "archive": "ee81448917e4e95aa2748c36b960b0e9ea9a39a1618624f15cd10aa81b9d68c3", + "manifest": "1e6318d4b8ba56455ed8b57562286f9f2730dad0c72fc60aed7428d92fa6e625" + }, + "linux-arm64": { + "archive": "e853eddbb2065e0a51c506f2d9e33ca08f427d28cb712adb351c25a29485f7c7", + "manifest": "f6489fff3137ac2d5f55698143006da155e9bf7925a7efc33ce6c833b4bb0a26" + } + }, + "revision": 0, + "upstreamImage": "supabase/supavisor:2.10.1", + "upstreamVersion": "v2.10.1" + }, + "specifier": "linked" + }, + "realtime": { + "resolution": "unlinked", + "resolved": { + "image": "ghcr.io/supabase/cli/realtime:v2.167.0-r0@sha256:7a052b1772f830e6496fd8a84ea7179514584186a331c935a58d2bcb49a3cfc9", + "natives": { + "darwin-arm64": { + "archive": "3e9da0efad0b2f59334113757d940c1a3931385e93b4b37af30963b6ff9a0fb3", + "manifest": "66288cb244bacba553cdebdbc2789f44ab67f1ff10a5e4d41f98d4eaccc432e9" + }, + "linux-amd64": { + "archive": "cd0cb70ff2560ba77b2fa43cf0edc056e043a6ea891599e7ccce884e2223e54b", + "manifest": "878b35b6d1a5c9fac582ecb1711f977b016ec1558385c0e19243d31aadf1178d" + }, + "linux-arm64": { + "archive": "c30c1d866048237627ab0c231e2707e8e4a896e5f2af7afd9df459dea0542843", + "manifest": "7a30dcad66dbe15d0cab4a44de75b39ba390ece1e384bd0ddd7cf4cf87af3457" + } + }, + "revision": 0, + "upstreamImage": "supabase/realtime:v2.167.0", + "upstreamVersion": "v2.167.0" + }, + "specifier": "linked" + }, + "rest": { + "resolution": "unlinked", + "resolved": { + "image": "ghcr.io/supabase/cli/postgrest:v16.5-r0@sha256:11421115f972012e05e515bbb28df07f38cb7a966b8da251d2d1d3e5b34527cd", + "natives": { + "darwin-arm64": { + "archive": "554fd826083c9d1e384aa39dc3bc5d56f17c4a90e1088b6e821a9c7b9f15567b", + "manifest": "20469b7dd05d6edb1abe2e8074531e3558604bca335056e2946c0ee7d2ec69c9" + }, + "linux-amd64": { + "archive": "e224ec6209a4ff800524c54e3b11715ede07aa3923154e44e97a67bb786b6417", + "manifest": "644809d3e7912ef4c1273e848e0a0b52b8c353b909c1b63e95eb7c3d6413f12b" + }, + "linux-arm64": { + "archive": "89cddaa3a08cd252ea24a28ae3acf13d74e572cb57b721cfe70743de266e9028", + "manifest": "8097ef1fa2036d6dd735488a4aac82b0f128483171672d0a4662c48a045149a8" + } + }, + "revision": 0, + "upstreamImage": "postgrest/postgrest:v16.5", + "upstreamVersion": "v16.5" + }, + "specifier": "linked" + }, + "storage": { + "resolution": "unlinked", + "resolved": { + "image": "ghcr.io/supabase/cli/storage:v1.96.0-r0@sha256:08a970ac88b6b0a6c07dccc0f260e4bacf707861fc187611b573bf338e709ad1", + "natives": { + "darwin-arm64": { + "archive": "19cc413879c044f747dc79c305220d37c2df7cc440deab8033d2bbba760b4e7c", + "manifest": "cf0cea8557f9b7e412c7438c1f155bad46236c95d7d39991a421d0d50a24bb0b" + }, + "linux-amd64": { + "archive": "1b5d42d11a18a9dddb0a4da10daf93ce425ec70128e7ce057d24ace069f88ec2", + "manifest": "3955269329c37ec2d0397014ce6b6d76bc615952c5d36d6a3f7185fc8b7c30e6" + }, + "linux-arm64": { + "archive": "9c8a9c978708d1aecfb1cf9bb3f33b1fc2335fc497bd9589d532d928b086a2f1", + "manifest": "18c7d3726a2c39dd91c3b9bab3e905e1fef4612c2d5533aca4d146b4424a1e9c" + } + }, + "revision": 0, + "upstreamImage": "supabase/storage-api:v1.96.0", + "upstreamVersion": "v1.96.0" + }, + "specifier": "linked" + }, + "studio": { + "resolution": "unlinked", + "resolved": { + "image": "ghcr.io/supabase/cli/studio:2026.11.16-sha-51bd16d-r0@sha256:89ce7a6ce461caea358e82113204f7af411447003d0ccbd49b340c7e81896c96", + "natives": { + "darwin-arm64": { + "archive": "dd6e5faa76e228f96bd83ff48224ddc5c152de5ba9bcb8ccd2556e684654ca96", + "manifest": "5703ce88a7094851a91dc5edd6702ff892c6e121f0ef488f9e63fe48cd5c45db" + }, + "linux-amd64": { + "archive": "f801457ce795aed4239aeb7ee41b2765878a28b39d10b18eb6b454b719a3b150", + "manifest": "8f8afc823b1eb470cbdd99534faf7c570845860104a1eaab48b6b230ad200459" + }, + "linux-arm64": { + "archive": "62c594d7a6460d0ee60b628f254a6182655d7edab2f7d4f03ae999a10e8e9fd0", + "manifest": "cb9da77f04e733cdbc682fefc195b14dc0f69b0047a8dd972eafcabb6af408af" + } + }, + "revision": 0, + "upstreamImage": "supabase/studio:2026.11.16-sha-51bd16d", + "upstreamVersion": "2026.11.16-sha-51bd16d" + }, + "specifier": "linked" + } + } +} From 49f7d2fc425a756309f119489255b2486f52ff82 Mon Sep 17 00:00:00 2001 From: Diego Santo Date: Fri, 20 Nov 2026 10:28:55 -0300 Subject: [PATCH 2/2] feat(storage): remove supabase files --- supabase/supabase.lock | 296 ----------------------------------------- 1 file changed, 296 deletions(-) delete mode 100644 supabase/supabase.lock diff --git a/supabase/supabase.lock b/supabase/supabase.lock deleted file mode 100644 index 555edc05..00000000 --- a/supabase/supabase.lock +++ /dev/null @@ -1,296 +0,0 @@ -{ - "$schema": "https://supabase.com/docs/cli/supabase-lock/v1.schema.json", - "lockfileVersion": 1, - "services": { - "analytics": { - "resolution": "unlinked", - "resolved": { - "image": "ghcr.io/supabase/cli/analytics:v1.50.15-r1@sha256:2b03ec3120effe5d33c1e2ec4570a932fb60ce6a6851b4920a22388b4e8356c1", - "natives": { - "darwin-arm64": { - "archive": "abfc9ba64e354129e8f8b0f38b43747a5dab48785fd3593d11e52cd6e0ff37bf", - "manifest": "60647643f5521089978dc20c6966b86ed939b9751b187cbb70e0de3fbd2479ac" - }, - "linux-amd64": { - "archive": "7652456c1a1d73ac6fe10853bd8a38e79139b43fe796caec5725a3d0f225a3d8", - "manifest": "6c465af69e26ce8a9c15988d5dcbbae069e9a92b697962bfa86c4f3e601b8409" - }, - "linux-arm64": { - "archive": "a75625d7c903d70e749b5ee776e2c5c98d51ee60ff92b28bb6684121fe0f3888", - "manifest": "ca2569304cf24e6abd4242b55dd0d20338f40532fbe6377a9accdc5d47ea47ab" - } - }, - "revision": 1, - "upstreamImage": "supabase/logflare:1.50.15", - "upstreamVersion": "v1.50.15" - }, - "specifier": "linked" - }, - "auth": { - "resolution": "unlinked", - "resolved": { - "image": "ghcr.io/supabase/cli/auth:v2.198.0-r0@sha256:6119529b17c2b335fdeb49673cbb5d602bf5e4368d1f1032ba11bc4bfd24b850", - "natives": { - "darwin-arm64": { - "archive": "323bb22d7a163702df4ad0f0b4fb49771a9bb08d49763f7fdd495ba4f745710a", - "manifest": "e2f17c664c8afeed99713820bddd5ed7e9433b8a4e19e9a4e1c1fd10754604d0" - }, - "linux-amd64": { - "archive": "4950efb44baf7fd8dda6198f1b866be643832f1096adeb67bb2d864572e4174a", - "manifest": "0bc00fc89511098819ce1b05a9b6c30dfe383fe2bae4c527de27b04a462f8667" - }, - "linux-arm64": { - "archive": "14850783b8a92eccec16f1b193b913c85489abf29345f94acccceb9b93b41c08", - "manifest": "6eb8e2abbd275d0633683fbea4e5fc00c183995c3eca8a2c2820c40b5b40dcbd" - } - }, - "revision": 0, - "upstreamImage": "supabase/gotrue:v2.198.0", - "upstreamVersion": "v2.198.0" - }, - "specifier": "linked" - }, - "database": { - "line": "stock", - "majorVersion": 17, - "resolution": "unlinked", - "resolved": { - "image": "ghcr.io/supabase/cli/postgres:17.12.0.000-r0@sha256:f76f17ab40da704b0ab60c012277144e93abf85e396c26f9a272d7b5bd20073f", - "natives": { - "darwin-arm64": { - "archive": "3ce7182570ea4469a6100e305518bb8c01aa26ec271cdb7c99c3c580ed2c131f", - "manifest": "652061fe275bb62d7bafad12d0f2792cfbac09b8033b72ac9be0029f26eb91aa" - }, - "linux-amd64": { - "archive": "4ac5109d37675558b9e2ede5486a23dcb287b61702983c97093c792632c4b219", - "manifest": "0401872e20298e20cc013df84ca4bc6caa54f6c028f7f709a7fa234a1715ad0e" - }, - "linux-arm64": { - "archive": "d87e80af00cdb552f852a775ab3ce0543438e84399b7d2792be5ede812fdec53", - "manifest": "9923b0dbea76b43c905129af15d40302d9507c446013cf667dce87618a39d3bb" - } - }, - "revision": 0, - "upstreamImage": "supabase/postgres:17.12.0.000", - "upstreamVersion": "17.12.0.000" - }, - "specifier": "linked" - }, - "functions": { - "resolution": "unlinked", - "resolved": { - "image": "ghcr.io/supabase/cli/edge-runtime:v1.79.1-r0@sha256:907112ab171c4bc8373c632c879fc37ff3d5fa58ee42e2b1fa11d772c6640067", - "natives": { - "darwin-arm64": { - "archive": "4a529125ca3f378bcdb2b63cc7ea972a1b3bbbd700f55f9da74b606c005ba794", - "manifest": "78947a27be462a8280d7f74b9113a9ff8e159c06926307114e251c3490e45189" - }, - "linux-amd64": { - "archive": "032c4f7420ddb3cff53a3791ac5cb580b3be5849086c27d2567359d7a824df52", - "manifest": "92d1d386c692e56c2e19795e9dedfb2382c9039be2ef17b7ea3b9390896188c5" - }, - "linux-arm64": { - "archive": "b8e659e28853c95c71ee1419b9faf0c93a3518211e5c7a6c33619a521315acaa", - "manifest": "f317beec1975ee503df6fa6c52aee1eb5bf9112fd89279fcae6c82bd6d4a985e" - } - }, - "revision": 0, - "upstreamImage": "supabase/edge-runtime:v1.79.1", - "upstreamVersion": "v1.79.1" - }, - "specifier": "linked" - }, - "imgproxy": { - "resolution": "unlinked", - "resolved": { - "image": "ghcr.io/supabase/cli/imgproxy:v3.26.0-r0@sha256:5871582cf6c5140d3b50b21e0d1aa236fdf46ee6133e3bfec1baf63545e01cf0", - "natives": { - "darwin-arm64": { - "archive": "1f82084b056bf4806bf492bca0b6f963068d07a6776a2a122b61da940732683b", - "manifest": "53b5c4f4f069db88c3919571dbee12af2373e5c90db291cf5d7456aa74e17ecb" - }, - "linux-amd64": { - "archive": "7865edf054b8217c2daf9d42bce6bebe34f83df5c4183fbbe6495a3603dcd4a8", - "manifest": "5ae7f22a6fbdc55f41ffc3334747a3475295676699ac1d2c372bc5fe2ad239bb" - }, - "linux-arm64": { - "archive": "4528fd7877c9df3052cd6ec06c8cafd7e92977dd26490fb532964c19faec3b0a", - "manifest": "5420e6d9b3661060b2dedfe157c18b56f22011c43cc3127031b4bbc65e936b59" - } - }, - "revision": 0, - "upstreamImage": "ghcr.io/imgproxy/imgproxy:v3.26.0", - "upstreamVersion": "v3.26.0" - }, - "specifier": "linked" - }, - "mail": { - "resolution": "unlinked", - "resolved": { - "image": "ghcr.io/supabase/cli/mailpit:v1.31.3-r0@sha256:ed9b00c609e77e99c79b93f1178255ebc271868920f2c69a8d166bd5634ed10d", - "natives": { - "darwin-arm64": { - "archive": "d460a6a55693a2a321ad83ebb83417b8078324751a744f982bb3512da0632712", - "manifest": "43177dc88b6f625bec6d98096e39c10f4cd10956081df01b5b7cebeeae47766a" - }, - "linux-amd64": { - "archive": "57e39cb39b2288313e26abe9ae9300f6af9332abd1f76f4d67be533741b2c942", - "manifest": "36595519f40e406b17a0ce6e21f153400f217ae24b0365f0a5c495ff315b9f82" - }, - "linux-arm64": { - "archive": "805b09d9008e9be2c6c9230e668bd2c6ab446eeae26389e91732f9e20b2c3f5f", - "manifest": "973b76700a5a865243bd5a5c36664121ed99c538d58633921cc8fd7c675e655c" - } - }, - "revision": 0, - "upstreamImage": "axllent/mailpit:v1.31.3", - "upstreamVersion": "v1.31.3" - }, - "specifier": "linked" - }, - "pgmeta": { - "resolution": "unlinked", - "resolved": { - "image": "ghcr.io/supabase/cli/pgmeta:v0.100.0-r0@sha256:1dc3ce4f710e9696ec1374f89d0dc84291104c9a1ce030f9ac999670d4d74a08", - "natives": { - "darwin-arm64": { - "archive": "adecdf5168a9e43056d4e3d78122960b3f645607f6b64e7e178522ad8ca7f3e4", - "manifest": "edf539c9a613c4f0d2d4ccf5d245c8fd57b60d158bcc7c24a18f343236529c69" - }, - "linux-amd64": { - "archive": "5df0dfb03469f358858b8768f39db9a77b5947ec0567aff1056fddbfa1f2db75", - "manifest": "3095c4655e8f35451fdb84194065a31c4edee9b52fd5b28ac01dfdae620e07a1" - }, - "linux-arm64": { - "archive": "8289012110b6b466d8366ceb2e6f731eca9b46020046b585438f988615666a22", - "manifest": "349d37edae9ac07d15543e7acf5bae288112850285dee28c602cd6c04ea11c1a" - } - }, - "revision": 0, - "upstreamImage": "supabase/postgres-meta:v0.100.0", - "upstreamVersion": "v0.100.0" - }, - "specifier": "linked" - }, - "pooler": { - "resolution": "unlinked", - "resolved": { - "image": "ghcr.io/supabase/cli/pooler:v2.10.1-r0@sha256:3ed8759dd8066718df6be496b84ed6fc1a61f2268e7013f10a49cfb16072cc86", - "natives": { - "darwin-arm64": { - "archive": "cb9f4f6330b32376bf7a2cf6e6c8c3bafb0059645685b9273fff8cdd80b6bfdc", - "manifest": "9fbd6b9ab5d7082078a387c515c7bed4fb1cd9bbc607908f53531a3acbb809ee" - }, - "linux-amd64": { - "archive": "ee81448917e4e95aa2748c36b960b0e9ea9a39a1618624f15cd10aa81b9d68c3", - "manifest": "1e6318d4b8ba56455ed8b57562286f9f2730dad0c72fc60aed7428d92fa6e625" - }, - "linux-arm64": { - "archive": "e853eddbb2065e0a51c506f2d9e33ca08f427d28cb712adb351c25a29485f7c7", - "manifest": "f6489fff3137ac2d5f55698143006da155e9bf7925a7efc33ce6c833b4bb0a26" - } - }, - "revision": 0, - "upstreamImage": "supabase/supavisor:2.10.1", - "upstreamVersion": "v2.10.1" - }, - "specifier": "linked" - }, - "realtime": { - "resolution": "unlinked", - "resolved": { - "image": "ghcr.io/supabase/cli/realtime:v2.167.0-r0@sha256:7a052b1772f830e6496fd8a84ea7179514584186a331c935a58d2bcb49a3cfc9", - "natives": { - "darwin-arm64": { - "archive": "3e9da0efad0b2f59334113757d940c1a3931385e93b4b37af30963b6ff9a0fb3", - "manifest": "66288cb244bacba553cdebdbc2789f44ab67f1ff10a5e4d41f98d4eaccc432e9" - }, - "linux-amd64": { - "archive": "cd0cb70ff2560ba77b2fa43cf0edc056e043a6ea891599e7ccce884e2223e54b", - "manifest": "878b35b6d1a5c9fac582ecb1711f977b016ec1558385c0e19243d31aadf1178d" - }, - "linux-arm64": { - "archive": "c30c1d866048237627ab0c231e2707e8e4a896e5f2af7afd9df459dea0542843", - "manifest": "7a30dcad66dbe15d0cab4a44de75b39ba390ece1e384bd0ddd7cf4cf87af3457" - } - }, - "revision": 0, - "upstreamImage": "supabase/realtime:v2.167.0", - "upstreamVersion": "v2.167.0" - }, - "specifier": "linked" - }, - "rest": { - "resolution": "unlinked", - "resolved": { - "image": "ghcr.io/supabase/cli/postgrest:v16.5-r0@sha256:11421115f972012e05e515bbb28df07f38cb7a966b8da251d2d1d3e5b34527cd", - "natives": { - "darwin-arm64": { - "archive": "554fd826083c9d1e384aa39dc3bc5d56f17c4a90e1088b6e821a9c7b9f15567b", - "manifest": "20469b7dd05d6edb1abe2e8074531e3558604bca335056e2946c0ee7d2ec69c9" - }, - "linux-amd64": { - "archive": "e224ec6209a4ff800524c54e3b11715ede07aa3923154e44e97a67bb786b6417", - "manifest": "644809d3e7912ef4c1273e848e0a0b52b8c353b909c1b63e95eb7c3d6413f12b" - }, - "linux-arm64": { - "archive": "89cddaa3a08cd252ea24a28ae3acf13d74e572cb57b721cfe70743de266e9028", - "manifest": "8097ef1fa2036d6dd735488a4aac82b0f128483171672d0a4662c48a045149a8" - } - }, - "revision": 0, - "upstreamImage": "postgrest/postgrest:v16.5", - "upstreamVersion": "v16.5" - }, - "specifier": "linked" - }, - "storage": { - "resolution": "unlinked", - "resolved": { - "image": "ghcr.io/supabase/cli/storage:v1.96.0-r0@sha256:08a970ac88b6b0a6c07dccc0f260e4bacf707861fc187611b573bf338e709ad1", - "natives": { - "darwin-arm64": { - "archive": "19cc413879c044f747dc79c305220d37c2df7cc440deab8033d2bbba760b4e7c", - "manifest": "cf0cea8557f9b7e412c7438c1f155bad46236c95d7d39991a421d0d50a24bb0b" - }, - "linux-amd64": { - "archive": "1b5d42d11a18a9dddb0a4da10daf93ce425ec70128e7ce057d24ace069f88ec2", - "manifest": "3955269329c37ec2d0397014ce6b6d76bc615952c5d36d6a3f7185fc8b7c30e6" - }, - "linux-arm64": { - "archive": "9c8a9c978708d1aecfb1cf9bb3f33b1fc2335fc497bd9589d532d928b086a2f1", - "manifest": "18c7d3726a2c39dd91c3b9bab3e905e1fef4612c2d5533aca4d146b4424a1e9c" - } - }, - "revision": 0, - "upstreamImage": "supabase/storage-api:v1.96.0", - "upstreamVersion": "v1.96.0" - }, - "specifier": "linked" - }, - "studio": { - "resolution": "unlinked", - "resolved": { - "image": "ghcr.io/supabase/cli/studio:2026.11.16-sha-51bd16d-r0@sha256:89ce7a6ce461caea358e82113204f7af411447003d0ccbd49b340c7e81896c96", - "natives": { - "darwin-arm64": { - "archive": "dd6e5faa76e228f96bd83ff48224ddc5c152de5ba9bcb8ccd2556e684654ca96", - "manifest": "5703ce88a7094851a91dc5edd6702ff892c6e121f0ef488f9e63fe48cd5c45db" - }, - "linux-amd64": { - "archive": "f801457ce795aed4239aeb7ee41b2765878a28b39d10b18eb6b454b719a3b150", - "manifest": "8f8afc823b1eb470cbdd99534faf7c570845860104a1eaab48b6b230ad200459" - }, - "linux-arm64": { - "archive": "62c594d7a6460d0ee60b628f254a6182655d7edab2f7d4f03ae999a10e8e9fd0", - "manifest": "cb9da77f04e733cdbc682fefc195b14dc0f69b0047a8dd972eafcabb6af408af" - } - }, - "revision": 0, - "upstreamImage": "supabase/studio:2026.11.16-sha-51bd16d", - "upstreamVersion": "2026.11.16-sha-51bd16d" - }, - "specifier": "linked" - } - } -}