You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| `space.resolve` | Yes | Resolves or creates a conversation. Receives an array of users plus optional params. |
97
97
| `space.schema` | No | Optional Zod schema for the resolved space. |
98
98
| `space.params` | No | Zod schema for additional space creation parameters — surfaces as the second arg to `platform(app).space()`. |
99
+
| `space.actions` | No | A map of content-builder factories that become sugar methods on the resolved space. Each `space.<name>(...args)` delegates to `space.send(factory(...args))`. Names that collide with built-in `Space` methods (`send`, `edit`, `startTyping`, `stopTyping`, `responding`, `getMessage`) are skipped at runtime with a warning. |
99
100
| `lifecycle.createClient` | Yes | Creates the platform client. Receives `config`, `projectId`, `projectSecret` (both may be `undefined`), and `store`. |
100
101
| `lifecycle.destroyClient` | No | Tears down the client on shutdown. Omit if no cleanup is needed. |
Copy file name to clipboardExpand all lines: docs-src/spectrum-ts/providers/imessage.mdx.vel
+35-1Lines changed: 35 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ The iMessage provider supports three connection modes — local, cloud, and dedi
37
37
```
38
38
39
39
<Note>
40
-
Local mode only supports sending text and attachments. Reactions, typing indicators, threaded replies, and group creation are not available.
40
+
Local mode only supports sending text and attachments. Reactions, typing indicators, threaded replies, group creation, and chat backgrounds are not available.
41
41
</Note>
42
42
</Tab>
43
43
<Tab title="Dedicated">
@@ -170,6 +170,40 @@ The wrapped content can be a string or any `attachment(...)`. Effects only apply
170
170
</Accordion>
171
171
</AccordionGroup>
172
172
173
+
## Chat backgrounds
174
+
175
+
Set or clear the chat background image. Import `background` from the iMessage provider and use the sugar method on a narrowed space:
176
+
177
+
```ts
178
+
import { background, imessage } from "spectrum-ts/providers/imessage";
179
+
180
+
const im = imessage(space);
181
+
182
+
// Set from a file path — MIME type inferred from the extension
0 commit comments