Repository navigation
docs(auth, entities): fix reference docs from support feedback - #352
Merged
Merged
Conversation
- updateMe(): field-level write rules on custom User fields apply, and a denied field fails the whole call. - updateMany(): all update operators apply to a record in one write, plus an optimistic-concurrency example using a version field. - delete() and deleteMany(): records move to trash rather than being permanently removed, with links to restore and permanent delete. - User entity: service role can remove any user except the owner, and a removed user is kept in Recently deleted for 30 days. - turnstileToken / turnstile_token: has no effect for app users. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
🚀 Package Preview Available!Install this PR's preview build with npm: npm i @base44-preview/sdk@0.8.56-pr.352.b15ea38Prefer not to change any import paths? Install using npm alias so your code still imports npm i "@base44/sdk@npm:@base44-preview/sdk@0.8.56-pr.352.b15ea38"Or add it to your {
"dependencies": {
"@base44/sdk": "npm:@base44-preview/sdk@0.8.56-pr.352.b15ea38"
}
}
Preview published to npm registry — try new features instantly! |
abrahams-wix
approved these changes
Oct 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.
Fixes to the SDK reference JSDoc from a batch of support and customer feedback. Each claim was checked against apper
main.Changes
auth.types.tsupdateMe(): Field-level securitywriterules on custom User fields apply. If the payload includes a field the user can't write, the call throws a permission error and nothing is saved (entity_crud.pychecks FLS beforeentity.update()).register()turnstile_tokenandloginViaEmailPassword()turnstileToken: Now say the token has no effect. App-user auth never verifies Turnstile; only platform sign-in does (register_platform_auth.py).entities.types.tsupdateMany(): All update operators in a call apply to each record in a single write. Adds a "Save only if the record hasn't changed" example (id + version filter,$incversion, checkupdated === 0).delete()/deleteMany(): Replaced "Permanently removes" with "moves to the entity's trash", with links to Recently deleted and the restore / permanent-delete REST endpoints. Both SDK calls soft-delete.Follow-up
🤖 Generated with Claude Code