Repository navigation
chore: update Console SDK to 0.18.0 - #186
Conversation
Adds the monitors and alerts services to the API-key catalog, since project keys can use them, and keeps organization escalations out of it because they need an organization key. Creating an HTTP, DNS, TCP or SMTP monitor can add a billed monitor, so those creates ask for approval like other paid writes.
Code review
Updates Latest changes: The newest commit adds hosted E2E coverage verifying that HTTP monitor creation requests user approval and does not reach Appwrite before approval. Walkthrough (10)
Reviewed the commits since Tip Comment |

Updates
appwrite-consolefrom 0.17.0 to 0.18.0.What changes in the catalog
Added to both catalogs (project APIs that accept project API keys,
monitors.*/alerts.*scopes):alerts_list,alerts_get,alerts_updatemonitors_list,monitors_get,monitors_deletemonitors_create_{http,dns,tcp,smtp,usage}_monitor,monitors_update_{http,dns,tcp,smtp,usage}_monitorAdded to the hosted OAuth catalog only:
organization_{list,get,create,update,delete}_escalation(s)organizations_list_alerts,organizations_get_alert,organizations_list_monitors,organizations_get_monitorNo tool is removed. The SDK drops the
AlertSeverityenum andAlert.critical; the server does not reference either.Policy decisions (please review)
alertsandmonitorsare added toAPI_KEY_SERVICES, because their routes accept project API keys. The five escalation methods go inAPI_KEY_EXCLUDED_METHODS["organization"], becauseescalations.*is an organization-key scope that a project key cannot hold.alertsandmonitorsare added toPROJECT_CONTEXT_SERVICES, so hosted calls requireproject_id.monitors_create_{http,dns,tcp,smtp}_monitorare added toPAID_TOOLS. Synthetic monitors past the plan's included amount are billed per monitor, so creating one can add a recurring charge, and the user is now asked to approve it. Usage monitors and updates are not billed and stay out of the list.tests/unit/test_server.pychecks the new counts and the new tools by name, including that the escalation andorganizations_*tools stay out of the API-key catalog. The counts indocs/tool-surface.md,docs/self-hosted.md,docs/appwrite-mcp-flow.svgandAGENTS.mdare updated to match.Verification
ruff,black --check,pyrightcleanRelated: appwrite-labs/cloud#6667