motionlink-cli
Version:
Making it easy to use Notion as a Content Management system for personal websites, portfolios, blogs, business homepages, and other kinds of static websites.
128 lines (127 loc) • 3.81 kB
TypeScript
export declare type IdRequest = string | string;
export declare type TextRequest = string;
export declare type TextObject = {
type: 'text';
text: {
content: string;
link: {
url: TextRequest;
} | null;
};
annotations: {
bold: boolean;
italic: boolean;
strikethrough: boolean;
underline: boolean;
code: boolean;
color: 'default' | 'gray' | 'brown' | 'orange' | 'yellow' | 'green' | 'blue' | 'purple' | 'pink' | 'red' | 'gray_background' | 'brown_background' | 'orange_background' | 'yellow_background' | 'green_background' | 'blue_background' | 'purple_background' | 'pink_background' | 'red_background';
};
plain_text: string;
href: string | null;
};
export declare type MentionObject = {
type: 'mention';
mention: UserObject | DateObject | PageMentionObject | DatabaseMentionObject;
annotations: {
bold: boolean;
italic: boolean;
strikethrough: boolean;
underline: boolean;
code: boolean;
color: 'default' | 'gray' | 'brown' | 'orange' | 'yellow' | 'green' | 'blue' | 'purple' | 'pink' | 'red' | 'gray_background' | 'brown_background' | 'orange_background' | 'yellow_background' | 'green_background' | 'blue_background' | 'purple_background' | 'pink_background' | 'red_background';
};
plain_text: string;
href: string | null;
};
export declare type UserObject = {
type: 'user';
user: {
id: IdRequest;
object: 'user';
} | {
type: 'person';
person: {
email: string;
};
name: string | null;
avatar_url: string | null;
id: IdRequest;
object: 'user';
} | {
type: 'bot';
bot: Record<string, never> | {
owner: {
type: 'user';
user: {
type: 'person';
person: {
email: string;
};
name: string | null;
avatar_url: string | null;
id: IdRequest;
object: 'user';
} | {
id: IdRequest;
object: 'user';
};
} | {
type: 'workspace';
workspace: true;
};
};
name: string | null;
avatar_url: string | null;
id: IdRequest;
object: 'user';
};
};
export declare type DateObject = {
type: 'date';
date: {
start: string;
end: string | null;
};
};
export declare type PageMentionObject = {
type: 'page';
page: {
id: IdRequest;
};
};
export declare type DatabaseMentionObject = {
type: 'database';
database: {
id: IdRequest;
};
};
export declare type EquationObject = {
type: 'equation';
equation: {
expression: TextRequest;
};
annotations: {
bold: boolean;
italic: boolean;
strikethrough: boolean;
underline: boolean;
code: boolean;
color: 'default' | 'gray' | 'brown' | 'orange' | 'yellow' | 'green' | 'blue' | 'purple' | 'pink' | 'red' | 'gray_background' | 'brown_background' | 'orange_background' | 'yellow_background' | 'green_background' | 'blue_background' | 'purple_background' | 'pink_background' | 'red_background';
};
plain_text: string;
href: string | null;
};
export declare type FileObject = {
type: 'external';
external: {
url: string;
};
caption: Array<TextObject | MentionObject | EquationObject>;
} | {
type: 'file';
file: {
url: string;
expiry_time: string;
};
caption: Array<TextObject | MentionObject | EquationObject>;
};