Skip to content

feat(integrations): type and document Core.SetFilesVisibility - #400

Open
arosenan wants to merge 4 commits into
mainfrom
make-files-private
Open

arosenan wants to merge 4 commits into
mainfrom
make-files-private

Conversation

@arosenan

@arosenan arosenan commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

What

Adds the typed signature and reference docs for base44.asServiceRole.integrations.Core.SetFilesVisibility({ file_urls, visibility: "private" }).

It moves an app's public files to private storage in bulk (1 to 20 URLs per call) and returns one result per file: the private file_uri, or an error of unsupported_file or move_failed. It needs service role authentication.

The call takes visibility so the files product can reuse it later. Only "private" is accepted today, because nothing in the backend makes a private file public.

Why

An app that stored uploads as public files had no way to make them private. The backend call is added in base44-dev/apper#49466. At runtime it already works through the integrations proxy, which turns any Core method name into a request. Without this change it has no types and does not appear in the SDK reference.

Changes

  • SetFilesVisibilityParams, SetFilesVisibilityFileResult, SetFilesVisibilityResult in integrations.types.ts, exported from index.ts.
  • SetFilesVisibility on CoreIntegrations, with JSDoc and two examples.

No runtime code changes.

Merge order

Do not merge before base44-dev/apper#49466 is deployed. Until then the documented call returns a not-found error.

Checks

  • tsc --noEmit -p tsconfig.type-tests.json passes.
  • npm run create-docs was not run locally, so the rendered page is not checked yet.

🤖 Generated with Claude Code

MakeFilesPrivate moves an app's public files to private storage in bulk and returns the private file_uri per file. The call already works through the integrations proxy; this adds its typed signature and reference docs.

Backend: base44-dev/apper#49466

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

🚀 Package Preview Available!


Install this PR's preview build with npm:

npm i @base44-preview/sdk@0.8.64-pr.400.043d51a

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.64-pr.400.043d51a"

Or add it to your package.json dependencies:

{
  "dependencies": {
    "@base44/sdk": "npm:@base44-preview/sdk@0.8.64-pr.400.043d51a"
  }
}

Preview published to npm registry — try new features instantly!

@github-actions github-actions Bot added the docs-draft PR has auto-drafted documentation suggestions label Dec 1, 2026
…ility with a visibility parameter

Matches the backend rename in base44-dev/apper#49466. Only private is supported today.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@arosenan arosenan changed the title feat(integrations): type and document Core.MakeFilesPrivate feat(integrations): type and document Core.SetFilesVisibility Dec 1, 2026
arosenan and others added 2 commits December 1, 2026 20:56
…ror object

Matches the backend in base44-dev/apper#49466: each result's error is {code, message} or null.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…th a cursor and uses bulkUpdate

The example listed only the first page and updated records one request at a time.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

2 participants