20 lines
602 B
TypeScript
20 lines
602 B
TypeScript
import { definePlugin } from "@sttracker/plugin-sdk/types";
|
|
import { lookup } from "./src/lookup.ts";
|
|
import { pull, pullChanges } from "./src/pull.ts";
|
|
|
|
export default definePlugin({
|
|
manifest: {
|
|
id: "mangabaka",
|
|
name: "MangaBaka",
|
|
version: "0.1.0",
|
|
sdkVersion: 1,
|
|
mediaTypes: ["manga", "comic"],
|
|
capabilities: ["pull", "pullChanges", "lookup"],
|
|
config: [{ key: "token", label: "API token", type: "secret", required: true, help: "Sent as the x-api-key header." }],
|
|
attribution: "Manga data from MangaBaka (CC BY-NC-SA 4.0).",
|
|
},
|
|
pull,
|
|
pullChanges,
|
|
lookup,
|
|
});
|