Upgrade (projects must change):
- config_api keys are
"METHOD /path"("GET /info","DELETE /admin/object-delete";"WS /path"for a websocket,"WS /my/message-socket"). Startup refuses a plain"/path"and names its new key. Afterpython3 sync.py, runvenv/bin/python -m script.config_api_method(rewritesconfig_extend.py's keys from the routes' methods, keeps formatting, prints each change), thenvenv/bin/python -m script.check. - API key scopes are
"METHOD /path"keys:/my/api-key-createrefuses a plain path, and a key created with plain-path scopes gets 403; create it again with the new scopes (or updateapi_key.scopesin the database). - Permission labels (
/infoint_mapping.master.users.permissions),log_api.api_idnames, Monitor and/my/api-usage-readshow the key with its method. Rate limits and the response cache count per entry (its id), so each method of a path has its own. script.check's routes step also fails when a page'sfetch(path, { method: "X" })names a method the route doesn't answer.
Features:
- One path may answer several methods, one entry each with its own id and checks (a provider's webhook: a GET handshake and POST events on one URL); "one path, one action" stays a default.
- Webhook scheme
meta(WhatsApp Cloud API, Messenger, Instagram:X-Hub-Signature-256with the Meta app secret), with a WhatsApp example indocs/webhook.md.