@kpaste-app/lexicon
v1.0.2
Published
ATProto lexicon types for KPaste
Maintainers
Readme
@kpaste-app/lexicon
ATProto lexicon types for KPaste.
Installation
npm install @kpaste-app/lexicon
# or
pnpm add @kpaste-app/lexicon
# or
yarn add @kpaste-app/lexiconUsage
Import the lexicon types in your application:
import * as MoeKarashiiroKpastePaste from "@kpaste-app/lexicon";
// Or import specific types
import { MoeKarashiiroKpastePaste } from "@kpaste-app/lexicon";
import type { Paste } from "@kpaste-app/lexicon/types";Type Definitions
The package exports TypeScript type definitions for the KPaste lexicon:
- Paste Record (
moe.karashiiro.kpaste.paste): Represents a code/text paste with metadata including title, language, timestamps, and blob content reference.
Lexicon Schema
The lexicon defines the following record type:
moe.karashiiro.kpaste.paste- A paste record containing:title(string, optional) - The paste titlelanguage(string, optional) - Syntax highlighting languagecreatedAt(datetime) - Creation timestampupdatedAt(datetime, optional) - Last update timestampcontent(blob) - The paste content stored as a blob
