package main type DatabasePost struct { Uri string Cid string Topic string IndexedAt string } type MessageFrameHeaderCBOR struct { Op int64 `cbor:"op"` Kind string `cbor:"t"` } type MessageFrameCommitCBOR struct { Did string `cbor:"repo"` Ops []struct { Action string `cbor:"action"` Path string `cbor:"path"` RawCID []byte `cbor:"cid"` } `cbor:"ops"` Blocks []byte `cbor:"blocks"` Blobs []byte `cbor:"blobs"` } type MessageFrameCBOR struct { Header MessageFrameHeaderCBOR Commit MessageFrameCommitCBOR } type BlockCBOR struct { Text string `cbor:"text"` Embed struct { Kind string `cbor:"$type"` Images []struct { Alt string `cbor:"alt"` Image struct { Kind string `cbor:"$type"` Ref []byte `cbor:"ref"` // Ref struct { // LinkRawCid []byte `cbor:"$link"` // } `cbor:"ref"` MimeType string `cbor:"mimeType"` Size int `cbor:"size"` } `cbor:"image"` AspectRatio struct { Width int Height int } `cbor:"aspectRatio"` } `cbor:"images,omitempty"` } `cbor:"embed,omitempty"` } type ComBskyFeedPost struct { Did string Kind string Commit struct { Rev string Operation string Collection string Cid string Record struct { Type string `json:"$type"` Text string Reply struct { Parent struct { Cid string Uri string } `json:"parent,omitempty"` Root struct { Cid string Uri string } `json:"root,omitempty"` } `json:"reply,omitempty"` } } }