import * as feoblogClient from "https://deno.land/x/feoblog_client@v0.7.0/mod.ts";
Classes
A client to GET/PUT FeoBlog Items. | |
Private keys are stored as base58check-encoded strings. They are only necessary to sign new pieces of content. You should keep a PrivateKey in memory for as short a time as possible. | |
File attachments. Certain item types may allow file attachments. | |
A Comment is a text-only response to some other Item. | |
Metadata about a file attachment. All fields are REQUIRED. | |
Each FeoBlog user's "blog" is really a collection of "Items" of different types. It's important to keep in mind that different servers may cache different subsets of items. | |
A list of items available on a server. Exmaples: GET /u/{userID}/items[?before=timestamp_ms_utc] to list a single user's items. GET /u/{userID]/feed/items[?before=...] to list items in a user's feed. | |
The unique ID of an item is its (user_id,signature) This type encapsulates that, plus some additional metadata which | |
Servers should render posts at at least two URLs:
| |
A user profile, where a user can provide information about themselves. | |
Information about an Item that we're replying to. | |
Information about where a user's posts may be found. This lets content creators' clients know where to send posts when they're uploaded. This also lets consumers' clients know where they can find the creator's content. | |
A detached NaCL signature over an Item. | |
UserIDs in FeoBlog are NaCL signing keys. |
Enums
This is redundant with the Item.item_type oneof. But it allows us to specify the type of an item in ItemLists. |
Interfaces
Specifies an offset from which to start streaming items. | |
When we load a profile, we don't know its signature until it's loaded. Return the signature w/ the Item |