Per-call credentials for the Airtable package: resolve(opts) is the one place opts and context are merged.
Functions
is-blank
fn (value: Any): Bool
resolve
fn (opts: Map): Map
The credential for one call: opts over the airtable.token context variable
(see resolve-from). Per-call credentials stay in the call; nothing is
written to ctx, so parallel flows and tenants never share them.
A credential from opts is masked in the run's call records.
Example
::airtable::api/resolve({token: "tenant-b-credential"}).token // "tenant-b-credential"
airtable.token
resolve-from
fn (opts: Map, ctx-values: Map): Map
The one resolver, pure: the credential for a call from opts first,
then ctx-values (a Map of context variables). Returns {token: ...}, or
an Err when there is none.
A token key in opts always decides the call. If its value is null or
blank that is an Err, never a fallback to context, so a tenant whose
stored credential is missing can't silently run on the project's
credential. Nothing is written to ctx. Exposed for testing; resolve
feeds it the context.