minca
ApiSchemasVariables

Variable: post

const post: object & Typed<{
  images?: readonly object[];
  langs?: readonly string[];
  mentions?: readonly string[];
  replyingTo?: string;
  text?: string;
}>;

Defined in: packages/core/src/schemas/library/publishing.ts:142

A post to a feed: short text, pictures, a reply or a quote. root is the first post of the thread, so a reader gathers a thread with one query. mentions and replyingTo are its topics, as on a std.message.

Type Declaration

description

readonly description: "A post to a feed, optionally replying to or quoting another. Chat in order is std.message." = 'A post to a feed, optionally replying to or quoting another. Chat in order is std.message.';
readonly links: object;

links.replyTo

readonly replyTo: LinkDeclaration;

links.root

readonly root: LinkDeclaration;

links.shares

readonly shares: LinkDeclaration;

name

readonly name: "std.post" = 'std.post';

schema

readonly schema: object;

schema.properties

readonly properties: object;

schema.properties.images

readonly images: object;

schema.properties.images.items

readonly items: object & object;
Type Declaration
properties
properties: object;
properties.alt
alt: object;
properties.alt.maxLength
maxLength: number = max;
properties.alt.minLength?
minLength?: number = min;
properties.alt.type
type: "string";
properties.blob
blob: object & object;
Type Declaration
properties
properties: object;
properties.hash
hash: ...;
properties.key
key: ...;
properties.mime
mime: ...;
properties.name
name: ...;
properties.salt
salt: ...;
properties.size
size: ...;
required
required: readonly [..., ..., ...];
type
type: "object";
x-kind
readonly "x-kind": "file";
required
required: readonly ["blob"];
type
type: "object";
x-kind
readonly "x-kind": "image";

schema.properties.images.maxItems

readonly maxItems: 8 = 8;

schema.properties.images.type

readonly type: "array" = 'array';

schema.properties.langs

readonly langs: object;

schema.properties.langs.items

readonly items: object;

schema.properties.langs.items.maxLength

maxLength: number = max;

schema.properties.langs.items.minLength?

minLength?: number = min;

schema.properties.langs.items.type

type: "string";

schema.properties.langs.maxItems

readonly maxItems: 3 = 3;

schema.properties.langs.type

readonly type: "array" = 'array';

schema.properties.mentions

readonly mentions: object;

schema.properties.mentions.items

items: object & object;
Type Declaration
maxLength
maxLength: number = max;
minLength?
minLength?: number = min;
type
type: "string";
x-kind
readonly "x-kind": "did";

schema.properties.mentions.maxItems

maxItems: number = max;

schema.properties.mentions.type

type: "array";

schema.properties.replyingTo

readonly replyingTo: object & object;
Type Declaration
maxLength
maxLength: number = max;
minLength?
minLength?: number = min;
type
type: "string";
x-kind
readonly "x-kind": "did";

schema.properties.text

readonly text: object;

schema.properties.text.maxLength

maxLength: number = max;

schema.properties.text.minLength?

minLength?: number = min;

schema.properties.text.type

type: "string";

schema.type

readonly type: "object" = 'object';

title

readonly title: "Post" = 'Post';

topics

readonly topics: readonly ["mentions", "replyingTo"];

On this page