Added serverless API v2 (but in v1 namespace)#354
Merged
Conversation
|
PR Packages Published Python Package:
NPM Package:
|
|
The latest Buf updates on your PR. Results from workflow Pull Request / linting (pull_request).
|
This comment has been minimized.
This comment has been minimized.
forgems
reviewed
May 22, 2026
forgems
reviewed
May 22, 2026
forgems
reviewed
May 22, 2026
forgems
reviewed
May 22, 2026
forgems
reviewed
May 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a significant update to the serverless API, effectively bringing it to a "v2" level of functionality and consistency, although it remains within the v1 package namespace for now.
The primary motivation for this change is to align the serverless offering with the more mature cluster API (DatabaseApiKeyService v2), providing a more consistent developer experience and more powerful, granular access control.
Key Changes:
Rename Collection to Space: The core concept of a serverless instance has been renamed from "Collection" to "Space". This is a breaking change that affects service names (CollectionService -> SpaceService), messages, fields, and file paths across the serverless API definitions.
Granular API Key Permissions: The CollectionApiKeyService has been updated to support fine-grained access control, and has been renamed to SpaceApiKeyService
It now uses AccessRules, similar to DatabaseApiKeyService v2, allowing permissions to be set globally for the serverless space or on a per-collection basis within that space.
This replaces the previous, simpler READ_ONLY/READ_WRITE access model.