Browser commands
The commands at window.quack, by area.
quack.help(); // all commands
quack.help("blocks.setFields"); // one command
await quack.invoke(id, input); // { ok, value } or { ok, error }
Help gives each command’s inputs as a schema, what it returns, what it changes, what must be true first, and examples. Commands that can’t run now say why.
| Area | Examples |
|---|---|
workspace |
open, close, search, setMode, setPane, setTheme, inspect |
reports |
create, fields, inspectDraft, setFilters, setPrompts, setCalculation, setLayout, results, save, undo, export |
tables, charts, crosstabs |
tables.add, charts.add, charts.setOptions, crosstabs.add |
blocks |
setFields, setGeometry, setSort, setAggregation, convert, moveToTab, remove |
tabs |
add, rename, move, setSection, select |
texts, images |
texts.add, texts.set, images.upload |
formatting |
setRules, setScale, clear |
models |
draft, reviewNext, acceptItem, setCalculation, setRowRule, previewRowAccess, save |
sources |
list, scan, upload, setColumnSecurity, previewColumnAccess |
runs |
start, inspect, results, send, retryDelivery, export |
schedules |
create, preview, setEnabled, update |
folders, groups, users |
folders.setGrants, groups.addMember, users.update, users.setAttribute |
attributes |
list, create, update, delete |
destinations, tokens |
destinations.create, tokens.list, tokens.revoke |
audit |
list, export, settings, setRetention |
auth |
inspect, options, signIn, signOut, changePassword |
Run quack.help() for the list in the version you have.
Rules they follow
- They have your permissions and no more.
- Draft edits go through the editor’s validation, limits and undo.
- Anything that would ask you something in the interface returns a pending result instead of skipping the question.
- No command creates an API token or returns one.
- While you must change your password, only
auth.inspect,auth.options,auth.changePasswordandauth.signOutwork.