SOURCE / PINNED RELEASE
Made of little things.
Black Site Map Editor
- Release
- 32a57733b7e9…
- Author-recorded commit
- 3f54890f542f…
- License
- LICENSE
- Author’s source reference
- nostr://npub1ye5ptcxfyyxl5vjvdjar2ua3f0hynkjzpx552mu5snj3qmx5pzjscpknpr/wss%3A%2F%2Fgit.shakespeare.diy%2F/black-site-map-editor
Archive hash verified: 7a4b1abbac7db5b0…. The source-to-build association is the author’s claim; it has not been independently rebuilt.
import type { BlackSiteMap } from '../model';
export const MAP_EVENT_KIND: 35858;
export const MAP_MIME: 'application/json';
export const MAX_MAP_BYTES:number;
export interface MapEvent {kind:number;pubkey:string;id?:string;tags:string[][];content:string;created_at:number}
export interface ParsedMap {address:string;pubkey:string;id:string;version:number;sha256:string;size?:number;title:string;summary:string;image:string|null;hashtags:string[];servers:string[];content:string;lineage: { root: {address:string;pubkey:string;id:string;eventId:string|null;relay:string|null}; parent: {address:string;pubkey:string;id:string;eventId:string|null;relay:string|null}; authors:string[] } | null;createdAt:number}
export interface UploadDescriptor {sha256:string;size:number;url?:string;fallbackUrls?:string[]}
export function mapEventTemplate(map:BlackSiteMap,upload:UploadDescriptor,extra?:{content?:string;image?:string;hashtags?:string[];client?:string;remixOf?:MapEvent;remixRelay?:string}):{kind:number;content:string;tags:string[][];created_at:number};
export function parseMapEvent(event:MapEvent):{ok:true;map:ParsedMap}|{ok:false;errors:string[]};
export function mapResourceUrls(parsed:ParsedMap,extraServers?:string[]):string[];
export function readMapBytes(bytes:Uint8Array|ArrayBuffer,parsed:ParsedMap,sha256Hex?:(bytes:Uint8Array)=>Promise<string>):Promise<{ok:true;map:BlackSiteMap}|{ok:false;errors:string[]}>;
