Skip to content

docs(sdk): conversation ownership and User entity limits for bulk update - #362

Merged
abrahams-wix merged 8 commits into
docs-feedback-fixesfrom
docs-dev-feedback-batch-2026-11
Nov 8, 2026
Merged

abrahams-wix merged 8 commits into
docs-feedback-fixesfrom
docs-dev-feedback-batch-2026-11

Conversation

@abrahams-wix

@abrahams-wix abrahams-wix commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

JSDoc fixes from reader and Customer Care feedback.

This PR is stacked on #361. Its base is docs-feedback-fixes, so the diff shows only these changes. Retarget it to main once #361 merges.

Agents module (packages/sdk/src/modules/agents.types.ts)

  • The module description says each user can read and add messages only to conversations they created, even with the admin role.
  • With base44.asServiceRole.agents, the module only reaches conversations created through the service role. It doesn't give your backend access to conversations that individual users created.
  • getConversation() says the conversation must belong to the current user (otherwise a 403 error), and that a missing conversation fails with a 404 error. @returns no longer says it resolves to undefined.
  • listConversations(), createConversation(), addMessage(), and subscribeToConversation() say the conversation belongs to the current user.

Entities module (packages/sdk/src/modules/entities.types.ts)

  • updateMany() and bulkUpdate() say they aren't available for the built-in User entity and fail with a 405 error.
  • UpdateManyResult.updated includes records that already held the new values, because every update refreshes updated_date.
  • bulkUpdate() says the call checks every record before writing. If a check fails, no records change. If a write fails partway, earlier records stay written.

abrahams-wix and others added 2 commits November 3, 2026 10:43
Add the ownership rule to the module description, getConversation,
listConversations, createConversation, addMessage, and subscribeToConversation.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…e User entity

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

🚀 Package Preview Available!


Install this PR's preview build with npm:

npm i @base44-preview/sdk@0.8.57-pr.362.26c8eba

Prefer not to change any import paths? Install using npm alias so your code still imports @base44/sdk:

npm i "@base44/sdk@npm:@base44-preview/sdk@0.8.57-pr.362.26c8eba"

Or add it to your package.json dependencies:

{
  "dependencies": {
    "@base44/sdk": "npm:@base44-preview/sdk@0.8.57-pr.362.26c8eba"
  }
}

Preview published to npm registry — try new features instantly!

abrahams-wix and others added 2 commits November 3, 2026 11:03
…for a missing conversation

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ehavior

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the docs-draft PR has auto-drafted documentation suggestions label Nov 3, 2026
abrahams-wix and others added 4 commits November 8, 2026 13:57
… ownership docs

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… transaction note

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ownership docs

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@abrahams-wix
abrahams-wix marked this pull request as ready for review November 8, 2026 12:54
@abrahams-wix
abrahams-wix merged commit 2a7c985 into docs-feedback-fixes Nov 8, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs-draft PR has auto-drafted documentation suggestions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant