api.user.get() → User | api.account.me() | Gibt { user, applications, databases } zurück. |
user.plan.expiresIn | new Date(user.plan.duration) | Ein Zeitstempel; null läuft nie ab. |
api.user.snapshots(scope) | api.account.snapshots({ scope }) | |
api.service.status() | api.service.status() | Neue Form: status, message, services, dependencies… |
api.applications.get() | (await api.account.me()).applications | |
api.applications.get(id) / fetch(id) / app.fetch() | api.apps.get(id) | Findet auch über Workspaces geteilte Apps. |
app.isWebsite() | Boolean((await api.apps.get(id)).domain) | |
api.applications.create(file) | api.apps.create(file, { signal }) | Ein Pfad, Blob/File oder Uint8Array; kein Timeout. |
api.applications.statusAll() | api.apps.statusAll({ workspaceId? }) | Einfache Objekte { id, running, cpu?, ram? } (v5 verschachtelte cpu/ram unter usage). |
statusAll()[i].fetch() (SimpleApplicationStatus, SimpleDatabaseStatus) | api.apps.status(id) / api.databases.status(id) | |
api.applications.domains() / loadBalancers() | api.apps.domains() / api.apps.loadBalancers() | |
app.getStatus() | api.apps.status(id, { raw? }) | cpu, ram, storage und network liegen auf oberster Ebene (v5 verschachtelte sie unter usage); uptime ist der Startzeitpunkt in ms (null, wenn gestoppt), kein Date. |
app.getLogs() | api.apps.logs(id) | |
app.getMetrics() | api.apps.metrics(id) | Der neueste Punkt zuerst. |
app.realtime() → rohe Response | api.apps.realtime(id, { signal }) | Ein Async Iterable geparster Ereignisse. |
app.start() / stop() / restart() / delete() | api.apps.start(id) / stop(id) / restart(id) / delete(id) | |
app.commit(file, fileName) | api.apps.commit(id, file, { path?, filename?, signal? }) | |
app.files.list(path) | api.apps.files.list(id, path?) | Ein fehlendes Verzeichnis wirft 404 FILE_NOT_FOUND (früher eine leere Liste). |
app.files.read(path) → Buffer | undefined | api.apps.files.read(id, path) → Uint8Array | Als Base64 angefordert und dekodiert (v5 las ein Byte-Array). Leere Bytes, nie undefined, wenn die API keinen Inhalt sendet. |
app.files.create(file, fileName, dir) | api.apps.files.write(id, `${dir}/${fileName}`, content) | Ein String ist der Inhalt (als reiner Text gesendet); v5 las ihn als lokalen Pfad. Bytes werden als Base64 gesendet. Leerer Inhalt erstellt eine leere Datei. |
app.files.edit(file, path) | api.apps.files.write(id, path, content) | Dasselbe Übertragungsformat wie write: Text für Strings, Base64 für Bytes. |
app.files.move(path, newPath) / delete(path) | api.apps.files.move(id, path, to) / delete(id, path) | |
app.envs.list() | api.apps.envs.get(id) | |
app.envs.set(envs) / replace(envs) / delete(keys) | api.apps.envs.set(id, envs) / replace(id, envs) / delete(id, keys) | Jede gibt die resultierenden Variablen zurück. |
app.snapshots.list() | api.apps.snapshots.list(id) | Einträge erhalten name, runtime, origin, version_id und eine signierte Download-url, alles so, wie die API es sendet. |
app.snapshots.create() | api.apps.snapshots.create(id) | { pending: true } bei 202 (v5 warf einen Fehler), sonst { pending: false, url, key }. |
app.snapshots.download() → Buffer | const s = await api.apps.snapshots.create(id), dann if (!s.pending) await api.downloadSnapshot(s.url) | Ein ReadableStream, nichts gepuffert. Ein ausstehender Snapshot (202) hat noch keine URL: v5 warf einen Fehler. |
snapshot.url / snapshot.download() | snapshot.url / api.downloadSnapshot(snapshot.url) | Die eigene signierte URL der API (v5 baute aus der ID des Aufrufers eine falsche). |
app.snapshots.restore({ snapshotId, versionId }) | api.apps.snapshots.restore(id, name, versionId) | Übergib name und version_id eines aufgelisteten Snapshots. Die Fehler findest du unter Snapshots. |
app.deploys.integrateGithubWebhook(token) | api.apps.deploys.setWebhook(id, token) | Gibt die Webhook-URL zurück ("", wenn mit "@" entfernt). |
app.deploys.linkGithubApp({ repositoryName, repositoryBranch }) | api.apps.deploys.linkGithubApp(id, repository, branch) | Positionsargumente. Gibt { id, full_name, branch } zurück. API-Schlüssel werden jetzt akzeptiert (Scope apps:deploy); v5 benötigte ein Session-JWT. |
app.deploys.unlinkGithubApp() → boolean | api.apps.deploys.unlinkGithubApp(id) | Wird zu void aufgelöst (war boolean). 400 GIT_NOT_CONFIGURED, wenn nichts verknüpft ist. |
app.deploys.list() → Deployment[][] | api.apps.deploys.list(id) → DeployEvent[][] | Ein fehlgeschlagener Deploy endet in state: "error" mit code (und message, wenn es Details gibt); source ist immer "git". |
app.deploys.current() | api.apps.deploys.current(id) → DeployCurrent | {}, wenn nichts konfiguriert ist. |
app.deploys.webhookURL() | (await api.apps.deploys.current(id)).webhook | |
app.network (nur bei WebsiteApplication) | api.apps.network | Jede App-ID; die API lehnt Nicht-Web-Apps ab. |
network.setCustomDomain(domain) | api.apps.network.setDomain(id, domain) | |
network.analytics({ start, end, contentType, ... }) | api.apps.network.analytics(id, start, end, { content_type, ... }) | null für ein leeres Fenster. |
network.errors({ start, end, include4xx }) | api.apps.network.errors(id, start, end, { include_4xx }) | null für ein leeres Fenster. |
network.logs({ start, end }) / performance({ start, end }) | api.apps.network.logs(id, start, end) / performance(id, start, end) | |
network.dns() / purgeCache() | api.apps.network.dns(id) / purgeCache(id) | |
api.databases.fetch(id) / db.fetch() | api.databases.get(id) | |
api.databases.create(options) / statusAll() | unverändert | statusAll() gibt einfache Objekte { id, running, cpu?, ram? } zurück. |
db.getStatus() / getMetrics() | api.databases.status(id, { raw? }) / metrics(id) | ram ist der genutzte RAM, z. B. "120.4MB" (eine Zahl mit raw). Metriken kommen mit dem neuesten zuerst. |
db.start() / stop() / update(changes) / delete() | api.databases.start(id) / stop(id) / update(id, changes) / delete(id) | |
db.credentials.certificate() | api.databases.certificate(id) | |
db.credentials.reset(type) | api.databases.resetCredentials(id, type) | Das neue Passwort ("" für "certificate"). |
db.snapshots.list() / create() / download() | api.databases.snapshots.list(id) / create(id) / api.downloadSnapshot(url) | download() wie bei Apps: create(id), dann downloadSnapshot(s.url), wenn nicht ausstehend. |
db.snapshots.restore(snapshotId, versionId) | api.databases.snapshots.restore(id, name, versionId) | Übergib name und version_id eines aufgelisteten Snapshots. |
api.workspaces.list() / fetch(id) / workspace.fetch() | api.workspaces.list() / get(id) | |
api.workspaces.create({ name }) | api.workspaces.create(name) | Gibt WorkspaceCreated ({ id, name }) zurück. |
api.workspaces.delete(id) / workspace.delete() | api.workspaces.delete(id) | |
api.workspaces.leave(id) / workspace.leave() | api.workspaces.leave(id) | |
api.workspaces.generateInviteCode() | api.workspaces.members.inviteCode() | |
workspace.members.add(code, group) | api.workspaces.members.add(workspaceId, code, group) | |
workspace.members.update(memberId, group) / remove(memberId) | api.workspaces.members.update(workspaceId, memberId, group) / remove(workspaceId, memberId) | |
workspace.applications.add(appId) / remove(appId) | api.workspaces.apps.add(workspaceId, appId) / remove(workspaceId, appId) | |
| (keine) | api.ai.chat(request), api.downloadSnapshot(url), BASE_URL | Neu. |