import { ColineApiClient } from "../client"; const client = new ColineApiClient({ baseUrl: "https://coline.app", apiKey: "col_sk_example", }); async function main() { const app = await client.registerApp({ version: "0.1.0", manifest: { key: "com.example.notes", name: "Example Notes", description: "A minimal notes app built on the Coline platform.", permissions: [ "app.home.read", "files.read", "files.write", "index.write", "notifications.write", ], notificationChannels: [ { key: "updates", name: "Updates", defaultDeliveries: ["in_app"], defaultPriority: "default", }, ], hosting: { mode: "external", baseUrl: "https://notes.example.com", }, }, fileTypes: [ { typeKey: "com.example.notes.note", name: "Note", description: "Example note file", storage: "coline_document", indexable: true, homeRenderMode: "cached", }, ], }); await client.submitAppVersionForReview(app.appKey, app.versionId, { storeListed: true, }); } void main();