diff --git a/core/commands.json b/core/commands.json index 40774493..5877f7c5 100644 --- a/core/commands.json +++ b/core/commands.json @@ -828,5 +828,57 @@ } ], "group": "connection" + }, + "SETHOOK": { + "summary": "Creates a webhook which points to geofenced search", + "arguments": [ + { + "name": "name", + "type": "string" + }, + { + "name": "endpoint", + "type": "string" + }, + { + "enum": ["NEARBY", "WITHIN", "INTERSECTS"] + }, + { + "name": "key", + "type": "string" + }, + { + "command": "FENCE", + "name": [], + "type": [] + }, + { + "name": "param", + "type": "string", + "variadic": true + } + + ], + "group": "webhook" + }, + "DELHOOK": { + "summary": "Removes a webhook", + "arguments": [ + { + "name": "name", + "type": "string" + } + ], + "group": "webhook" + }, + "HOOKS": { + "summary": "Finds all hooks matching a pattern", + "arguments":[ + { + "name": "pattern", + "type": "pattern" + } + ], + "group": "webhook" } } \ No newline at end of file diff --git a/core/commands_gen.go b/core/commands_gen.go index cef9752e..9ae7bad1 100644 --- a/core/commands_gen.go +++ b/core/commands_gen.go @@ -981,5 +981,57 @@ var commandsJSON = `{ } ], "group": "connection" + }, + "SETHOOK": { + "summary": "Creates a webhook which points to geofenced search", + "arguments": [ + { + "name": "name", + "type": "string" + }, + { + "name": "endpoint", + "type": "string" + }, + { + "enum": ["NEARBY", "WITHIN", "INTERSECTS"] + }, + { + "name": "key", + "type": "string" + }, + { + "command": "FENCE", + "name": [], + "type": [] + }, + { + "name": "param", + "type": "string", + "variadic": true + } + + ], + "group": "webhook" + }, + "DELHOOK": { + "summary": "Removes a webhook", + "arguments": [ + { + "name": "name", + "type": "string" + } + ], + "group": "webhook" + }, + "HOOKS": { + "summary": "Finds all hooks matching a pattern", + "arguments":[ + { + "name": "pattern", + "type": "pattern" + } + ], + "group": "webhook" } }`