Skip to content

Commit c41e582

Browse files
committed
docs(spec): regenerate the automation io-node-config reference; add the changeset
Claude-Session: https://claude.ai/code/session_01PC4NPXPgPmpDRG9DdDnyXT Co-authored-by: Claude <noreply@anthropic.com>
1 parent 493a7d3 commit c41e582

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'@objectstack/spec': minor
3+
---
4+
5+
docs(spec): a `notify` node's `recipients` names an email address written out as an author constant, not an audience selector
6+
7+
Clause-②: no
8+
Metadata-protocol: semantic
9+
Ruling-ref: 6386629237
10+
11+
The `recipients` text of a `notify` node config — its `describe()` (read by the reference docs and the JSON Schema), the union's description, and the sentence a refused `recipients` value leads with — now says what an email address in `recipients` means:
12+
13+
- **Written out as a string, it is an author constant.** `recipients: 'ops@example.com'` is no audience selector: it is sent as written, to the user who holds that address, or else, on the `email` channel, to the address itself. Nothing about it changes; the text stopped calling it an audience selector. The audience selectors are the prefixed forms, such as `team:ID`.
14+
- **An address a CEL envelope evaluates to is not one.** It resolves to the user who holds it. Failing the node on an address that no user holds, with a message pointing to `{ emailField }`, is **planned and not made yet**: until the runtime check lands, such an address is still handed to the messaging service as written, and the text says so rather than claim a refusal the runtime does not make.
15+
16+
No key, shape, default or accepted value changes; everything that parsed still parses, and authored metadata needs no change.

‎content/docs/references/automation/io-node-config.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ const result = HttpConfigSchema.parse(data);
9595

9696
| Property | Type | Required | Description |
9797
| :--- | :--- | :--- | :--- |
98-
| **recipients** | `string \| (string \| { dialect: 'cel'; source: string; ast?: any; meta?: object })[] \| { dialect: 'cel'; source: string; ast?: any; meta?: object } \| { emailField: string }` | ✅ | Who the notification goes to: a recipient (a user id, or an audience selector such as `team:ID`) as a string; a list of them, each a string or a CEL value envelope `{ dialect: 'cel', source }` evaluated per run — an entry that evaluates to a list adds each of its recipients, and one that evaluates to null adds none; or one envelope evaluating to a recipient or a list. A `{…}` template token is refused. Or, as the whole value, `{ emailField: 'applicant_email' }`: the address in that `email`-typed field of the record that triggered the flow, for a person who is not a user — the node then names `email` as its only channel. Delivery to an email-field recipient is not live yet: until the messaging service resolves the form, a run that reaches the node fails there. |
98+
| **recipients** | `string \| (string \| { dialect: 'cel'; source: string; ast?: any; meta?: object })[] \| { dialect: 'cel'; source: string; ast?: any; meta?: object } \| { emailField: string }` | ✅ | Who the notification goes to: a recipient (a user id, or an audience selector such as `team:ID`) as a string; a list of them, each a string or a CEL value envelope `{ dialect: 'cel', source }` evaluated per run — an entry that evaluates to a list adds each of its recipients, and one that evaluates to null adds none; or one envelope evaluating to a recipient or a list. A `{…}` template token is refused. Or, as the whole value, `{ emailField: 'applicant_email' }`: the address in that `email`-typed field of the record that triggered the flow, for a person who is not a user — the node then names `email` as its only channel. Delivery to an email-field recipient is not live yet: until the messaging service resolves the form, a run that reaches the node fails there. An email address written out as a string is no audience selector but an author constant, sent as written: to the user who holds it, or else, on the `email` channel, to the address itself. An address an envelope evaluates to is not one: it resolves to the user who holds it, and one that no user holds is planned to fail the node, pointing to `{ emailField }` — that refusal is not made yet, so until it is, such an address is still handed to the messaging service as written. |
9999
| **title** | `string \| { dialect: 'template'; source?: string; ast?: any; meta?: object }` | optional | Notification title — a template: a bare string, or a `{ dialect: 'template', source }` envelope (the `tmpl` helper) carrying the same text. It is rendered per run with `{{ }}` holes over the flow's variables — a variable path with an optional formatter (`{{ record.name }}`, `{{ record.amount \| currency }}`); a single-brace `{token}` is refused. One text for every recipient (not localizable — use `template` for per-locale content). Either this or `template` is required; the two are mutually exclusive. |
100100
| **message** | `string \| { dialect: 'template'; source?: string; ast?: any; meta?: object }` | optional | Notification body — the same template input as `title` (a bare string or a `{ dialect: 'template', source }` envelope), rendered per run with `{{ }}` holes like `title`; not localizable. Only valid with inline `title`, never with `template`. |
101101
| **template** | `string` | optional | Email template name (an `email_template` item's `name`, e.g. `crm.large_deal_won`) — the localizable content path: the delivery path resolves `(name, locale)` among the email templates — built-in, declared by an app, or authored in Studio — at delivery time and renders subject/body from that member. The locale is resolved per recipient, after fan-out: the recipient's own `sys_user.locale` when set, else the deployment default locale — so recipients whose personal languages differ receive different members of the same bundle. The node's `payload.locale` is not consulted. Mutually exclusive with inline `title`/`message`, which are the non-localizable path. Read raw — no `{token}` interpolation. |

0 commit comments

Comments
 (0)