Skip to content

feat: added authenticated user storage#8260

Draft
dovydas55 wants to merge 8 commits intomainfrom
MCA-83
Draft

feat: added authenticated user storage#8260
dovydas55 wants to merge 8 commits intomainfrom
MCA-83

Conversation

@dovydas55
Copy link
Contributor

@dovydas55 dovydas55 commented Mar 20, 2026

Note

Medium Risk
Adds a new authenticated (non-E2EE) storage SDK surface that performs bearer-token HTTP requests to user-storage endpoints; correctness depends on request/response handling and error mapping for these new APIs.

Overview
Adds a new AuthenticatedUserStorage SDK client for authenticated (non-encrypted) User Storage endpoints, exposing delegations (list/create/revoke) and preferences (get/put notification settings) methods that send Bearer-authenticated fetch requests and wrap failures in UserStorageError (with 404 mapped to null for notification prefs).

Introduces the associated TypeScript API schema types, Jest+nock fixtures/mocks and tests, exports the new SDK from src/sdk/index.ts, and adds an api.spec.yaml OpenAPI spec documenting encrypted, authenticated, and internal User Storage endpoints.

Written by Cursor Bugbot for commit eedd6cc. This will update automatically on new commits. Configure here.

@dovydas55 dovydas55 requested a review from a team as a code owner March 20, 2026 10:50
@dovydas55 dovydas55 requested a review from a team as a code owner March 20, 2026 10:54
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

@dovydas55 dovydas55 marked this pull request as draft March 20, 2026 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant