import { definePlugin } from "@sttracker/plugin-sdk/types"; import { pull, pullChanges } from "./src/lastfm.ts"; export default definePlugin({ manifest: { id: "lastfm", name: "Last.fm", version: "0.1.0", sdkVersion: 1, rateLimit: { perMinute: 240 }, mediaTypes: ["track", "album", "artist"], capabilities: ["pull", "pullChanges"], config: [ { key: "username", label: "Username", type: "string", required: true }, { key: "apiKey", label: "API key", type: "secret", required: true }, ], }, pull, pullChanges, });