The Interface object
An Interface is what Chartnaut read from a script's code: its settings and what it produces. It appears on every full Script and in the answer from Validate a script.
Fields
Field | Type | Description |
|---|---|---|
| object | Every setting, keyed by its id. Always present, |
| array of object | Indicator outputs. Left out when there are none |
| array of object | The events a definition can emit. Left out when there are none |
| array of object | The result blocks a study produces. Left out when there are none |
| array of string | Extra timeframes an indicator or definition reads besides the run's own. Left out when there are none |
settings
Each value, keyed by setting id:
Field | Type | Description |
|---|---|---|
| string |
|
| any | The default value. Left out when there is none |
| number | Bounds and step for a number. Each is left out when not declared |
| array | The choices for a select. From an indicator's settings dialog, each is an object with |
outputs
Field | Type | Description |
|---|---|---|
| string | The output id, as used in |
| string | Display name. Left out when not set |
| string | The declared kind, such as |
| string |
|
events
Field | Type | Description |
|---|---|---|
| string | The event id, such as |
| string | The declared intent. Left out when not set |
| array of string | The payload keys, sorted |
results
Field | Type | Description |
|---|---|---|
| string | The result key, as used in |
| string | The block kind, such as |
| string | The block title. Left out when not set |
