diff options
author | Vitor Mattos <vitor@php.rio> | 2023-03-01 21:40:01 -0300 |
---|---|---|
committer | Vitor Mattos <vitor@php.rio> | 2023-03-01 21:40:01 -0300 |
commit | 0b5268ebdc46deefc15d8cc043fdd5244795d030 (patch) | |
tree | 5112188bbeb1e8d3a5fac82b9f355c926d19eb10 /docs/occ.md | |
parent | e088fcf40b299d58cf0f2d0cca2c6b4100e4703a (diff) |
Document commands
* created developer command to document commands
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'docs/occ.md')
-rw-r--r-- | docs/occ.md | 1001 |
1 files changed, 1000 insertions, 1 deletions
diff --git a/docs/occ.md b/docs/occ.md index d9ab4d74b..07379b865 100644 --- a/docs/occ.md +++ b/docs/occ.md @@ -1,2 +1,1001 @@ -# Occ commands +## talk:command:add + +Add a new command + +### Usage + +* `talk:command:add <cmd> <name> <script> <response> <enabled>` + +### Arguments + +#### `cmd` + +The command as used in the chat "/help" => "help" + +* Is required: yes +* Is array: no +* Default: `NULL` + +#### `name` + +Name of the user posting the response + +* Is required: yes +* Is array: no +* Default: `NULL` + +#### `script` + +Script to execute (Must be using absolute paths only) + +* Is required: yes +* Is array: no +* Default: `NULL` + +#### `response` + +Who should see the response: 0 - No one, 1 - User, 2 - All + +* Is required: yes +* Is array: no +* Default: `NULL` + +#### `enabled` + +Who can use this command: 0 - Disabled, 1 - Moderators, 2 - Users, 3 - Guests + +* Is required: yes +* Is array: no +* Default: `NULL` + +## talk:command:add-samples + +Adds some sample commands: /wiki, … + +### Usage + +* `talk:command:add-samples` + + +## talk:command:delete + +Remove an existing command + +### Usage + +* `talk:command:delete <command-id>` + +### Arguments + +#### `command-id` + +* Is required: yes +* Is array: no +* Default: `NULL` + +## talk:command:list + +List all available commands + +### Usage + +* `talk:command:list [--output [OUTPUT]] [--] [<app>]` + +### Arguments + +#### `app` + +Only list the commands of a specific app, "custom" to list all custom commands + +* Is required: no +* Is array: no +* Default: `NULL` + +### Options + +#### `--output` + +Output format (plain, json or json_pretty, default is plain) + +* Accept value: yes +* Is value required: no +* Is multiple: no +* Is negatable: no +* Default: `'plain'` + +## talk:command:update + +Add a new command + +### Usage + +* `talk:command:update <command-id> <cmd> <name> <script> <response> <enabled>` + +### Arguments + +#### `command-id` + +* Is required: yes +* Is array: no +* Default: `NULL` + +#### `cmd` + +The command as used in the chat "/help" => "help" + +* Is required: yes +* Is array: no +* Default: `NULL` + +#### `name` + +Name of the user posting the response + +* Is required: yes +* Is array: no +* Default: `NULL` + +#### `script` + +Script to execute (Must be using absolute paths only) + +* Is required: yes +* Is array: no +* Default: `NULL` + +#### `response` + +Who should see the response: 0 - No one, 1 - User, 2 - All + +* Is required: yes +* Is array: no +* Default: `NULL` + +#### `enabled` + +Who can use this command: 0 - Disabled, 1 - Moderators, 2 - Users, 3 - Guests + +* Is required: yes +* Is array: no +* Default: `NULL` + +## talk:developer:update-docs + +Update documentation of commands + +### Usage + +* `talk:developer:update-docs [--output [OUTPUT]]` + +### Arguments + +#### `command` + +The command to execute + +* Is required: yes +* Is array: no +* Default: `NULL` + +### Options + +#### `--output` + +Output format (plain, json or json_pretty, default is plain) + +* Accept value: yes +* Is value required: no +* Is multiple: no +* Is negatable: no +* Default: `'plain'` + +#### `--help|-h` + +Display help for the given command. When no command is given display help for the list command + +* Accept value: no +* Is value required: no +* Is multiple: no +* Is negatable: no +* Default: `false` + +#### `--quiet|-q` + +Do not output any message + +* Accept value: no +* Is value required: no +* Is multiple: no +* Is negatable: no +* Default: `false` + +#### `--verbose|-v|-vv|-vvv` + +Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug + +* Accept value: no +* Is value required: no +* Is multiple: no +* Is negatable: no +* Default: `false` + +#### `--version|-V` + +Display this application version + +* Accept value: no +* Is value required: no +* Is multiple: no +* Is negatable: no +* Default: `false` + +#### `--ansi|--no-ansi` + +Force (or disable --no-ansi) ANSI output + +* Accept value: no +* Is value required: no +* Is multiple: no +* Is negatable: yes +* Default: `NULL` + +#### `--no-interaction|-n` + +Do not ask any interactive question + +* Accept value: no +* Is value required: no +* Is multiple: no +* Is negatable: no +* Default: `false` + +#### `--no-warnings` + +Skip global warnings, show command output only + +* Accept value: no +* Is value required: no +* Is multiple: no +* Is negatable: no +* Default: `false` + +## talk:monitor:calls + +Prints a list with conversations that have an active call as well as their participant count + +### Usage + +* `talk:monitor:calls [--output [OUTPUT]]` +### Options + +#### `--output` + +Output format (plain, json or json_pretty, default is plain) + +* Accept value: yes +* Is value required: no +* Is multiple: no +* Is negatable: no +* Default: `'plain'` + +## talk:active-calls + +Allows you to check if calls are currently in process + +### Usage + +* `talk:active-calls [--output [OUTPUT]]` +### Options + +#### `--output` + +Output format (plain, json or json_pretty, default is plain) + +* Accept value: yes +* Is value required: no +* Is multiple: no +* Is negatable: no +* Default: `'plain'` + +## talk:monitor:room + +Prints a list with conversations that have an active call as well as their participant count + +### Usage + +* `talk:monitor:room [--output [OUTPUT]] [--separator SEPARATOR] [--] <token>` + +### Arguments + +#### `token` + +Token of the room to monitor + +* Is required: yes +* Is array: no +* Default: `NULL` + +### Options + +#### `--output` + +Output format (plain, json or json_pretty, default is plain) + +* Accept value: yes +* Is value required: no +* Is multiple: no +* Is negatable: no +* Default: `'plain'` + +#### `--separator` + +Separator for the CSV list when output=csv is used + +* Accept value: yes +* Is value required: yes +* Is multiple: no +* Is negatable: no +* Default: `','` + +## talk:room:add + +Adds users to a room + +### Usage + +* `talk:room:add [--user USER] [--group GROUP] [--] <token>` + +### Arguments + +#### `token` + +Token of the room to add users to + +* Is required: yes +* Is array: no +* Default: `NULL` + +### Options + +#### `--user` + +Invites the given users to the room + +* Accept value: yes +* Is value required: yes +* Is multiple: yes +* Is negatable: no +* Default: `array ()` + +#### `--group` + +Invites all members of the given groups to the room + +* Accept value: yes +* Is value required: yes +* Is multiple: yes +* Is negatable: no +* Default: `array ()` + +## talk:room:create + +Create a new room + +### Usage + +* `talk:room:create [--description DESCRIPTION] [--user USER] [--group GROUP] [--public] [--readonly] [--listable LISTABLE] [--password PASSWORD] [--owner OWNER] [--moderator MODERATOR] [--message-expiration MESSAGE-EXPIRATION] [--] <name>` + +### Arguments + +#### `name` + +The name of the room to create + +* Is required: yes +* Is array: no +* Default: `NULL` + +### Options + +#### `--description` + +The description of the room to create + +* Accept value: yes +* Is value required: yes +* Is multiple: no +* Is negatable: no +* Default: `NULL` + +#### `--user` + +Invites the given users to the room to create + +* Accept value: yes +* Is value required: yes +* Is multiple: yes +* Is negatable: no +* Default: `array ()` + +#### `--group` + +Invites all members of the given group to the room to create + +* Accept value: yes +* Is value required: yes +* Is multiple: yes +* Is negatable: no +* Default: `array ()` + +#### `--public` + +Creates the room as public room if set + +* Accept value: no +* Is value required: no +* Is multiple: no +* Is negatable: no +* Default: `false` + +#### `--readonly` + +Creates the room with read-only access only if set + +* Accept value: no +* Is value required: no +* Is multiple: no +* Is negatable: no +* Default: `false` + +#### `--listable` + +Creates the room with the given listable scope + +* Accept value: yes +* Is value required: yes +* Is multiple: no +* Is negatable: no +* Default: `NULL` + +#### `--password` + +Protects the room to create with the given password + +* Accept value: yes +* Is value required: yes +* Is multiple: no +* Is negatable: no +* Default: `NULL` + +#### `--owner` + +Sets the given user as owner of the room to create + +* Accept value: yes +* Is value required: yes +* Is multiple: no +* Is negatable: no +* Default: `NULL` + +#### `--moderator` + +Promotes the given users to moderators + +* Accept value: yes +* Is value required: yes +* Is multiple: yes +* Is negatable: no +* Default: `array ()` + +#### `--message-expiration` + +Seconds to expire a message after sent. If zero will disable the expire message duration. + +* Accept value: yes +* Is value required: yes +* Is multiple: no +* Is negatable: no +* Default: `NULL` + +## talk:room:delete + +Deletes a room + +### Usage + +* `talk:room:delete <token>` + +### Arguments + +#### `token` + +Token of the room to delete + +* Is required: yes +* Is array: no +* Default: `NULL` + +## talk:room:demote + +Demotes participants of a room to regular users + +### Usage + +* `talk:room:demote <token> <participant>...` + +### Arguments + +#### `token` + +Token of the room in which users should be demoted + +* Is required: yes +* Is array: no +* Default: `NULL` + +#### `participant` + +Demotes the given participants of the room to regular users + +* Is required: yes +* Is array: yes +* Default: `array ()` + +## talk:room:promote + +Promotes participants of a room to moderators + +### Usage + +* `talk:room:promote <token> <participant>...` + +### Arguments + +#### `token` + +Token of the room in which users should be promoted + +* Is required: yes +* Is array: no +* Default: `NULL` + +#### `participant` + +Promotes the given participants of the room to moderators + +* Is required: yes +* Is array: yes +* Default: `array ()` + +## talk:room:remove + +Remove users from a room + +### Usage + +* `talk:room:remove <token> <participant>...` + +### Arguments + +#### `token` + +Token of the room to remove users from + +* Is required: yes +* Is array: no +* Default: `NULL` + +#### `participant` + +Removes the given participants from the room + +* Is required: yes +* Is array: yes +* Default: `array ()` + +## talk:room:update + +Updates a room + +### Usage + +* `talk:room:update [--name NAME] [--description DESCRIPTION] [--public PUBLIC] [--readonly READONLY] [--listable LISTABLE] [--password PASSWORD] [--owner OWNER] [--message-expiration MESSAGE-EXPIRATION] [--] <token>` + +### Arguments + +#### `token` + +The token of the room to update + +* Is required: yes +* Is array: no +* Default: `NULL` + +### Options + +#### `--name` + +Sets a new name for the room + +* Accept value: yes +* Is value required: yes +* Is multiple: no +* Is negatable: no +* Default: `NULL` + +#### `--description` + +Sets a new description for the room + +* Accept value: yes +* Is value required: yes +* Is multiple: no +* Is negatable: no +* Default: `NULL` + +#### `--public` + +Modifies the room to be a public room (value 1) or private room (value 0) + +* Accept value: yes +* Is value required: yes +* Is multiple: no +* Is negatable: no +* Default: `NULL` + +#### `--readonly` + +Modifies the room to be read-only (value 1) or read-write (value 0) + +* Accept value: yes +* Is value required: yes +* Is multiple: no +* Is negatable: no +* Default: `NULL` + +#### `--listable` + +Modifies the room's listable scope + +* Accept value: yes +* Is value required: yes +* Is multiple: no +* Is negatable: no +* Default: `NULL` + +#### `--password` + +Sets a new password for the room; pass an empty value to remove password protection + +* Accept value: yes +* Is value required: yes +* Is multiple: no +* Is negatable: no +* Default: `NULL` + +#### `--owner` + +Sets the given user as owner of the room; pass an empty value to remove the owner + +* Accept value: yes +* Is value required: yes +* Is multiple: no +* Is negatable: no +* Default: `NULL` + +#### `--message-expiration` + +Seconds to expire a message after sent. If zero will disable the expire message duration. + +* Accept value: yes +* Is value required: yes +* Is multiple: no +* Is negatable: no +* Default: `NULL` + +## talk:signaling:add + +Add an external signaling server. + +### Usage + +* `talk:signaling:add [--verify] [--] <server> <secret>` + +### Arguments + +#### `server` + +A server string, ex. wss://signaling.example.org + +* Is required: yes +* Is array: no +* Default: `NULL` + +#### `secret` + +A shared secret string. + +* Is required: yes +* Is array: no +* Default: `NULL` + +### Options + +#### `--verify` + +Validate SSL certificate if set. + +* Accept value: no +* Is value required: no +* Is multiple: no +* Is negatable: no +* Default: `false` + +## talk:signaling:delete + +Remove an existing signaling server. + +### Usage + +* `talk:signaling:delete <server>` + +### Arguments + +#### `server` + +An external signaling server string, ex. wss://signaling.example.org + +* Is required: yes +* Is array: no +* Default: `NULL` + +## talk:signaling:list + +List external signaling servers. + +### Usage + +* `talk:signaling:list [--output [OUTPUT]]` +### Options + +#### `--output` + +Output format (plain, json or json_pretty, default is plain) + +* Accept value: yes +* Is value required: no +* Is multiple: no +* Is negatable: no +* Default: `'plain'` + +## talk:stun:add + +Add a new STUN server. + +### Usage + +* `talk:stun:add <server>` + +### Arguments + +#### `server` + +A domain name and port number separated by the colons, ex. stun.nextcloud.com:443 + +* Is required: yes +* Is array: no +* Default: `NULL` + +## talk:stun:delete + +Remove an existing STUN server. + +### Usage + +* `talk:stun:delete <server>` + +### Arguments + +#### `server` + +A domain name and port number separated by the colons, ex. stun.nextcloud.com:443 + +* Is required: yes +* Is array: no +* Default: `NULL` + +## talk:stun:list + +List STUN servers. + +### Usage + +* `talk:stun:list [--output [OUTPUT]]` +### Options + +#### `--output` + +Output format (plain, json or json_pretty, default is plain) + +* Accept value: yes +* Is value required: no +* Is multiple: no +* Is negatable: no +* Default: `'plain'` + +## talk:turn:add + +Add a TURN server. + +### Usage + +* `talk:turn:add [--secret SECRET] [--generate-secret] [--] <schemes> <server> <protocols>` + +### Arguments + +#### `schemes` + +Schemes, can be turn or turns or turn,turns. + +* Is required: yes +* Is array: no +* Default: `NULL` + +#### `server` + +A domain name, ex. turn.nextcloud.com + +* Is required: yes +* Is array: no +* Default: `NULL` + +#### `protocols` + +Protocols, can be udp or tcp or udp,tcp. + |