Skip to content

Integrations

What an integration may be made of: what its code exports and is given, the manifest’s keys, each trigger, how a call from another service is checked, and what a run is held to. Served over MCP as vizitka://docs/integrations, and by describe_vocabulary with topic=integrations.

A job is integrations/<name>.ts beside its manifest, integrations/<name>.json.

Export Is given
sync Nothing
on event
receive request

Its keys are reads, writes, secrets, settings, hosts, files, assets, addresses, triggers, engine, name, state, triggers, fields, and repository. state is active or paused.

Kind Runs Written with
schedule sync every and name
rows on table
uploads on Nothing more
inbound receive path, secret, verifier, headers, and delivery
dashboard on name, label, confirm, live, and pick
repository on Nothing more
Kind Written with
hmac algorithm, encoding, header, prefix, key, timestamp, and signed
token header
meta_hub verify_token
Limit Value
answer_bytes 262144
chain 12
failing_at 5
fetch_seconds 5
fetches 16
inbound_body_bytes 262144
keys_kept_days 7
runs_an_hour 60
runs_kept_days 30
wall_seconds 10
{
"engine": 1,
"fields": {
"example_length": 80,
"hint_length": 200,
"keys": [
"setting",
"label",
"example",
"hint",
"pattern"
],
"label_length": [
1,
40
],
"most": 8,
"needs": [
"setting",
"label"
],
"pattern_bytes": 200,
"pattern_written": "\\A...\\z"
},
"host_keys": [
"engine",
"name",
"state",
"triggers",
"fields",
"repository"
],
"job": {
"entries": [
{
"entry": "sync",
"given": null,
"takes": 0
},
{
"entry": "on",
"given": "event",
"takes": 1
},
{
"entry": "receive",
"given": "request",
"takes": 1
}
],
"folder": "integrations/",
"manifest_keys": [
"reads",
"writes",
"secrets",
"settings",
"hosts",
"files",
"assets",
"addresses",
"triggers"
],
"package_keys": [
"jobs"
],
"triggers": {
"every": [
"15m",
"30m",
"1h",
"6h",
"1d"
],
"kinds": [
{
"keys": [
"every",
"name"
],
"kind": "schedule",
"runs": [
"sync",
"on"
],
"says": "Every so often, as `every` says: one with no `name` runs `sync`, and one with a `name` runs `on`, which is told the name."
},
{
"keys": [
"table"
],
"kind": "rows",
"runs": [
"on"
],
"says": "A new row of `table`, a table the job reads and does not write."
},
{
"keys": [],
"kind": "uploads",
"runs": [
"on"
],
"says": "A new file of the site."
},
{
"keys": [
"path",
"verifier",
"secret",
"headers",
"delivery"
],
"kind": "inbound",
"runs": [
"receive"
],
"says": "Another service calls the job at `path`, and its host checks each call with `verifier` and the secret `secret` before it makes a run."
}
],
"most": 32,
"verifiers": [
{
"keys": [
"algorithm",
"encoding",
"header",
"prefix",
"key",
"timestamp",
"signed"
],
"kind": "hmac",
"says": "An HMAC of `signed` (the body where it says nothing) with the secret, in `header`, written in `encoding`."
},
{
"keys": [
"header"
],
"kind": "token",
"says": "The secret itself in `header`, compared in constant time."
}
]
}
},
"limits": {
"answer_bytes": 262144,
"chain": 12,
"failing_at": 5,
"fetch_seconds": 5,
"fetches": 16,
"inbound_body_bytes": 262144,
"keys_kept_days": 7,
"runs_an_hour": 60,
"runs_kept_days": 30,
"wall_seconds": 10
},
"most_triggers": 32,
"name_length": 100,
"repository": {
"keys": [
"remote",
"user",
"password"
],
"password": "the name of one of secrets sent to the remote's host: a key the site keeps, or a grant the host trades",
"remote": {
"bytes": 300,
"filled_bytes": 100,
"host": "one of hosts",
"placeholders": [
"{account}",
"{<setting>}"
],
"written": "https://<host>/<path>"
},
"user_length": [
1,
64
]
},
"result": {
"sync": {
"says": "the site is owed a sync of its mirror",
"value": true
}
},
"states": [
"active",
"paused"
],
"triggers": [
{
"every": [
"15m",
"30m",
"1h",
"6h",
"1d"
],
"keys": [
"every",
"name"
],
"kind": "schedule",
"many": true,
"name_length": [
1,
32
],
"named_runs": "on",
"runs": "sync"
},
{
"keys": [
"table"
],
"kind": "rows",
"many": true,
"runs": "on"
},
{
"keys": [],
"kind": "uploads",
"many": false,
"runs": "on"
},
{
"keys": [
"path",
"secret",
"verifier",
"headers",
"delivery"
],
"kind": "inbound",
"many": true,
"most_headers": 16,
"path_length": [
3,
64
],
"runs": "receive"
},
{
"confirm_length": 200,
"keys": [
"name",
"label",
"confirm",
"live",
"pick"
],
"kind": "dashboard",
"label_length": [
1,
40
],
"live_result": {
"most_fields": 16,
"name_bytes": 64,
"text_length": 500
},
"many": true,
"name_length": [
1,
32
],
"pick": {
"after_length": 500,
"answer_bytes": 65536,
"answers": {
"choose": [
"settings",
"label",
"note"
],
"list": [
"choices",
"places",
"after"
],
"refused": "refused"
},
"asks": [
{
"list": {
"after": "text or null",
"part": "a part's name, for a pick of parts"
}
},
{
"choose": "value, or { part: value } for each part of a pick of parts"
},
{
"make": {
"in": "a place's value or null",
"time_zone": "text or null"
}
}
],
"choice": [
{
"key": "value",
"length": 200
},
{
"key": "label",
"length": 120
},
{
"key": "note",
"length": 120
},
{
"key": "group",
"length": 80
},
{
"key": "badge",
"length": 40
},
{
"key": "aside",
"length": 40
},
{
"key": "confirm",
"length": 200
}
],
"host_word": "{host}",
"keys": [
"lays",
"required",
"empty",
"make",
"parts",
"listed"
],
"lays": [
1,
4
],
"most_choices": 50,
"most_places": 20,
"parts": {
"count": [
2,
4
],
"keys": [
"name",
"label"
]
},
"sentence_length": 200,
"setting_length": 500
},
"runs": "on"
},
{
"event": {
"branch_bytes": 100,
"commit": "40 lowercase hex digits, or null where the remote has no such branch",
"did": [
"out",
"in",
"waits",
"refused",
"replaced",
"blocked",
"skipped"
],
"findings": {
"beside": "refused",
"keys": [
"path",
"line",
"message"
],
"message_length": 300,
"most": 20,
"path_bytes": 512
},
"key": "repository",
"keys": [
"refs",
"opens"
],
"most_refs": 8,
"opens_bytes": 500,
"ref_keys": [
"branch",
"did",
"commit",
"findings"
]
},
"keys": [],
"kind": "repository",
"many": false,
"needs": "repository",
"runs": "on"
}
],
"verifiers": [
{
"algorithms": [
"sha256",
"sha1"
],
"encodings": [
"hex",
"base64"
],
"keys": [
"algorithm",
"encoding",
"header",
"prefix",
"key",
"timestamp",
"signed"
],
"kind": "hmac",
"signed": [
"{timestamp}",
"{body}",
"{path}"
],
"timestamp": {
"default_window": 300,
"keys": [
"header",
"key",
"window"
],
"window_seconds": [
30,
3600
]
}
},
{
"keys": [
"header"
],
"kind": "token"
},
{
"keys": [
"verify_token"
],
"kind": "meta_hub"
}
]
}