API ReferenceClasses
Stories
Class: Stories
Defined in: api/stories.ts:38
Stories domain manager — held as SnapcapClient.stories.
See
Methods
post()
post(media: Uint8Array, opts?: {
caption?: string;
}): Promise<string>;Defined in: api/stories.ts:80
Post media (image or video) to MY_STORY. The bundle's send pipeline
owns upload, encryption, and dispatch; we project the media bytes
into the standalone realm and call the bundle's HM (sendSnap)
entry with MY_STORY destinations from storyDescModule.R9.
Auto-normalization (1080×1920 RGBA PNG) is the bundle's responsibility once it sniffs the Blob; pass raw bytes through.
Parameters
| Parameter | Type | Description |
|---|---|---|
media | Uint8Array | Raw image or video bytes (PNG / JPEG / WebP / MP4). |
opts? | { caption?: string; } | Reserved for caption + future story config (TODO). |
opts.caption? | string | - |
Returns
Promise<string>
The story id assigned by the bundle's send pipeline.
Remarks
Wire-tested through Messaging.sendText only — post() compiles
and the bring-up path runs without throwing. The bundle drives the
MY_STORY upload internally.