You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(sdk): extend AssetRef with blurhash_data_url + asset_schema (v1.54)
The v1.54 gateway encoder writes two new fields to internal.blobs and
@run402/functions v2.7.0 surfaces them on AssetRef. The public SDK was
missing them — consumers that rehydrate stored AssetRefs or render the
v1.54 placeholder substrate had to fall back to `any` casts.
Threaded through all four surfaces:
- AssetRef (sdk/src/namespaces/assets.types.ts) — public envelope
- ResolvedAssetRef + AssetManifestEntry (deploy.types.ts) — wire shapes
- UploadCompleteResponse → buildAssetRef (assets.ts) — single-asset put
- ResolvedAssetRef → buildAssetManifestFromPlanEntries (deploy.ts) — apply
Omit-when-undefined throughout so pre-v1.54 gateway envelopes stay
bytewise-identical to before. Matches the v1.49 pattern (not the v1.50
widen-to-null pattern), since these fields are only present when the
v1.54+ encoder ran on an image source.
Build clean, 555/555 unit tests pass, 42/42 doc snippets compile.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments