mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
The management primitives, self-contained + unit-tested. Not yet wired into the
S3-shaped orphan-GC / delete-flow (that reconcile system assumes bucket/key
semantics — its own browser-tested increment, same pattern as the upload).
- Vendor entry: export createDeleteAuth (+ rebuilt bundle, still ~27KB).
- blossomService.deleteFile({ server, sha256, signer }) — BUD-12 DELETE /<sha256>
with a signed kind-24242 delete auth (BUD-11).
- blossomService.listFiles({ server, pubkey, signer }) — BUD-12 GET /list/<pubkey>,
optional list auth.
Tests: blossom-service 9/9 (added delete/list guards + happy paths). Lint + build
clean.
REMAINING Phase 2: wire deleteFile into video-delete cleanup (resolve
server+sha256 from the blossom storagePointer), orphan-GC parity, and the
kind-10063 discovery UI (import/publish server list — needs relay fetch/publish
plumbing).
Co-Authored-By: Claude Opus 4.8 <[email protected]>
27 lines
1.1 KiB
JavaScript
27 lines
1.1 KiB
JavaScript
// Vendor entry for blossom-client-sdk (hzrd149), bundled by
|
|
// scripts/build-blossom-sdk.mjs into vendor/blossom-client-sdk.bundle.min.js so
|
|
// bitvid can lazy-import it behind FEATURE_BLOSSOM_STORAGE without a runtime CDN.
|
|
// Re-exports only the surface bitvid needs. See docs/blossom-plan.md.
|
|
//
|
|
// The action helpers live under the `./actions/*` subpaths (the root entry
|
|
// namespaces them as `Actions`); auth + discovery are top-level modules.
|
|
export {
|
|
createUploadAuth,
|
|
createMirrorAuth,
|
|
createListAuth,
|
|
createDeleteAuth,
|
|
encodeAuthorizationHeader,
|
|
} from "blossom-client-sdk/auth";
|
|
export {
|
|
getServersFromServerListEvent,
|
|
USER_BLOSSOM_SERVER_LIST_KIND,
|
|
} from "blossom-client-sdk/nostr";
|
|
export {
|
|
multiServerUpload,
|
|
multiServerMediaUpload,
|
|
} from "blossom-client-sdk/actions/multi-server";
|
|
export { uploadBlob } from "blossom-client-sdk/actions/upload";
|
|
export { mirrorBlob } from "blossom-client-sdk/actions/mirror";
|
|
export { listBlobs, iterateBlobs } from "blossom-client-sdk/actions/list";
|
|
export { deleteBlob } from "blossom-client-sdk/actions/delete";
|