Appearance
@namakina/landing-page
Interfaces
| Interface | Description |
|---|---|
| AskPresentation | How an ask_field is drawn when the page renders a question unit rather than bare chips. |
| ExperienceCard | One option card. imageId names a registered material and offerId a catalog offer; ai-core resolves both to imageUrl, url and sponsored before the frame leaves, so the SDK never sees an id and never trusts an agent-written url. |
| ExperienceChoice | One pick on a stage block: a card, or a secondary action such as "Too much for today". |
| FormFieldSnapshot | One real form control as the SDK saw it when the message was sent. |
| FormSnapshot | The landing page's form as the SDK saw it when this inbound message was sent. |
| FormSnapshotExperience | What the page has on screen beyond its fields. ai-core replicas share no memory of a conversation, so the browser carries this on every message. |
| LandingPageOptions | Options accepted by init(); the IIFE build reads the same values off its <script>. |
| LandingPagePost | Body of POST /webhooks/webchat as the SDK sends it. |
| ReceiptRow | - |
| SheetAction | A secondary button under a stage block; pressing it posts a turn carrying its id. |
| StageAction | A secondary button under a stage block; pressing it posts a turn carrying its id. |
| WebchatOfferCard | An offer as a channel draws it, structurally identical to the platform's OfferCard so that type is assignable here. url is the tracked link the text already carries. |
Type Aliases
| Type Alias | Description |
|---|---|
| ControllerState | - |
| FormAction | What the SDK should do to the real form after rendering the agent's text. |
| LpEventKey | - |
| SdkCapability | - |
| ShowCardsAction | - |
| ShowSheetAction | - |
| WebchatStreamFrame | The SSE frames the SDK reads from GET /messages/stream; the channel may emit a superset. |
Variables
| Variable | Description |
|---|---|
| version | - |
Functions
| Function | Description |
|---|---|
| destroy | Restores every form the SDK touched and forgets them. |
| init | Resolves options, then scans the document; returns how many forms were taken on. |
| scan | Starts a controller for every tagged form not already claimed, dropping any that left. |