The Coline App SDK: apps, tools, file types and surfaces that run inside Coline workspaces, and public websites with Coline Sites. TypeScript, with an in-memory test workspace. MIT.
| 4 |
| baseUrl: "https://coline.app", |
| 5 | apiKey: "col_sk_example", |
| 6 | }); |
| 7 |
| 8 | async function main() { |
| 9 | const app = await client.registerApp({ |
| 10 | version: "0.1.0", |
| 11 | manifest: { |
| 12 | key: "com.example.notes", |
| 13 | name: "Example Notes", |
| 14 | description: "A minimal notes app built on the Coline platform.", |
| 15 | permissions: [ |
| 16 | "app.home.read", |
| 17 | "files.read", |
| 18 | "files.write", |
| 19 | "index.write", |
| 20 | "notifications.write", |
| 21 | ], |
| 22 | notificationChannels: [ |
| 23 | { |
| 24 | key: "updates", |
| 25 | name: "Updates", |
| 26 | defaultDeliveries: ["in_app"], |
| 27 | defaultPriority: "default", |
| 28 | }, |
| 29 | ], |
| 30 | hosting: { |
| 31 | mode: "external", |
| 32 | baseUrl: "https://notes.example.com", |
| 33 | }, |
| 34 | }, |
| 35 | fileTypes: [ |
| 36 | { |
| 37 | typeKey: "com.example.notes.note", |
| 38 | name: "Note", |
| 39 | description: "Example note file", |
| 40 | storage: "coline_document", |
| 41 | indexable: true, |
| 42 | homeRenderMode: "cached", |
| 43 | }, |
| 44 | ], |
| 45 | }); |
| 46 |
| 47 | await client.submitAppVersionForReview(app.appKey, app.versionId, { |
| 48 | storeListed: true, |
| 49 | }); |
| 50 | } |
| 51 |
| 52 | void main(); |
| 53 |