Skip to content

Latest commit

 

History

History
17 lines (9 loc) · 1.44 KB

File metadata and controls

17 lines (9 loc) · 1.44 KB

@runflow-io/sdk

0.1.1

Patch Changes

  • 0561402: Docs: UploadedAsset.ref (runflow://assets/{id}) is now the recommended model input — the API resolves refs to freshly signed URLs at dispatch (shipped backend-side, formerly RUN-418), so refs never expire in your hands. url remains the short-TTL signed HTTPS URL for immediate browser use. Examples and JSDoc updated accordingly; no runtime changes.

0.1.0

Minor Changes

  • 991b164: Add rf.assets.upload(file) — the browser-safe presigned upload flow (create session → PUT to storage → confirm) with transient-failure retry and a size-scaled PUT timeout, returning a model-ready signed HTTPS url plus the stable runflow://assets/{id} ref. Fixes the most common external-fork failure: browser file uploads ending up as data: URIs that models reject with a 422. Add rf.assets.get(id) to re-mint an expired signed url (store the id, not the url).

    Export composePinPrompt, composeRegionPrompt, pinRegion, and PinPoint — the pin→region prompt convention (3×3 grid baked into the edit prompt) that previously existed only as private copies inside the studio bundle.

    Hardening: proxy mode (baseUrl) now never sends Authorization, even when apiKey is also passed (the documented contract); presigned-URL query strings are redacted from error messages; non-https upload_urls are refused. New RunflowErrorCode union for autocompletable catch handling.