One signed-in customer’s support conversation in this tab: the transcript, the draft, pending sends, and the help offer.
One signed-in customer’s support conversation in this tab: the transcript, the draft, pending
sends, and the help offer. Create it with connectConversation.Extends:ConversationRuntime<File>
Advance the tab-scoped read cursor for the current conversation. Only an open runtime in a
visible document can mark replies read, the cursor never moves backwards, and it never moves
past a support reply this runtime has actually received.
Parameters
string
required
number
required
Returns
boolean
open()
open(): Promise<ConversationOutcome>
Shows the conversation: loads it, sends a pending message or a queued help offer contact, and
keeps it current while open. Opening alone creates no ticket.
Send the draft. With options.handoff, the message opens a conversation that carries the
bot’s reason, summary, and chat before it; a blank reason answers invalid_draft.
Mirror a message your bot showed the end user into the team’s thread. Call it for every bot
message while a conversation is open, and right after send({ handoff }) for the bot’s own
goodbye: it waits for the conversation, keeps the order the user saw, and survives a reload.
The same id is recorded once.
Delivered support replies observed since this tab’s baseline and not yet marked read. While
closed, a visible tab refreshes this about once a minute and when it returns to the foreground.
A hidden tab keeps the last-known count and schedules no reads.
Returns
number
updateAuth()
updateAuth(auth: ConversationAuth | null): void
Switches to another signed-in customer, or signs out with null. Capture follows: the new
subject’s identity, or a new anonymous session.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Hinto","colors":{"primary":"#1f9e74","light":"#1f9e74","dark":"#147a58"},"seo":{"metatags":{"canonical":"https://docs.gethinto.com"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"hinto","hasAudioNarration":false,"actualSubdomain":"hinto","customDomains":["docs.gethinto.com"],"gitSource":{"type":"github","owner":"hinto-support","repo":"hinto-monorepo","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":"","_id":"6b1100219ffae5051c41d815"},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6b0c56997535902b80fd2be1","clientVersion":"0.0.4448","searchFilterCounts":[{"language":"default","tag":"SDK Reference","count":74},{"language":"default","tag":"conversation","count":56},{"language":"default","tag":"Interfaces","count":34},{"language":"default","tag":"Type Aliases","count":24},{"language":"default","tag":"index","count":17},{"language":"default","tag":"Documentation","count":15},{"language":"default","tag":"Get started","count":15},{"language":"default","tag":"Variables","count":8},{"language":"default","tag":"Functions","count":5},{"language":"default","tag":"Classes","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"sdk/conversation/classes/ConversationRuntime","slug":"/sdk/conversation/classes/ConversationRuntime","pageMetadata":{"href":"/sdk/conversation/classes/ConversationRuntime","title":"ConversationRuntime","description":"One signed-in customer's support conversation in this tab: the transcript, the draft, pending sends, and the help offer.","tag":"CLASS","sdk":{"format":"typedoc","source":"sdk-artifacts/typedoc.json","kind":"class","name":"ConversationRuntime"},"autogeneratedBySdk":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"One signed-in customer’s support conversation in this tab: the transcript, the draft, pending sends, and the help offer.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Heading,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`One signed-in customer’s support conversation in this tab: the transcript, the draft, pending\nsends, and the help offer. Create it with `,_jsx(_components.code,{children:`connectConversation`}),`.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Extends:`}),` `,_jsx(_components.code,{children:`ConversationRuntime\u003cFile>`})]}),`\n`,_jsx(Heading,{level:`2`,id:`constructor`,children:`Constructor`}),`\n`,_jsx(CodeBlock,{numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`ConversationRuntime`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`config`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ConversationConfig`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`): `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ConversationRuntime`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`parameters`,children:`Parameters`}),`\n`,_jsx(ResponseField,{name:`config`,type:`ConversationConfig`,typeHref:`/sdk/conversation/interfaces/ConversationConfig`,required:true}),`\n`,_jsx(Heading,{level:`3`,id:`returns`,children:`Returns`}),`\n`,_jsx(`code`,{children:_jsx(_components.a,{href:`/sdk/conversation/classes/ConversationRuntime`,children:`ConversationRuntime`})}),`\n`,_jsx(Heading,{level:`2`,id:`properties`,children:`Properties`}),`\n`,_jsx(ResponseField,{name:`config`,id:`property-config`,type:`ConversationConfig`,typeHref:`/sdk/conversation/interfaces/ConversationConfig`,required:true,children:_jsx(_components.p,{children:`The configuration it was created with.`})}),`\n`,_jsx(ResponseField,{name:`offers`,id:`property-offers`,type:`SupportOfferStore`,typeHref:`/sdk/conversation/interfaces/SupportOfferStore`,required:true,children:_jsxs(_components.p,{children:[`The Hinto Signal help offer for this subject’s journeys. Reset by `,_jsx(_components.code,{children:`updateAuth`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`methods`,children:`Methods`}),`\n`,_jsx(Heading,{level:`3`,id:`addattachments`,children:`addAttachments()`}),`\n`,_jsx(CodeBlock,{numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`addAttachments`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`files`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Iterable`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`File`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`): `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`AttachmentAddResult`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Add picked, pasted, or dropped files to the draft and start uploading each accepted one.\nFiles the runtime refuses are reported and never uploaded.`}),`\n`,_jsx(Heading,{level:`4`,id:`parameters-2`,children:`Parameters`}),`\n`,_jsx(ResponseField,{name:`files`,type:`Iterable\u003cFile>`,required:true}),`\n`,_jsx(Heading,{level:`4`,id:`returns-2`,children:`Returns`}),`\n`,_jsx(`code`,{children:_jsx(_components.a,{href:`/sdk/conversation/interfaces/AttachmentAddResult`,children:`AttachmentAddResult`})}),`\n`,_jsx(Heading,{level:`3`,id:`close`,children:`close()`}),`\n`,_jsx(CodeBlock,{numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`close`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(): `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`void`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Stops reading while the conversation is hidden. The draft and unread count are kept.`}),`\n`,_jsx(Heading,{level:`3`,id:`destroy`,children:`destroy()`}),`\n`,_jsx(CodeBlock,{numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`destroy`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(): `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`void`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Stops everything for good. Call it when the host unmounts support.`}),`\n`,_jsx(Heading,{level:`3`,id:`getsubject`,children:`getSubject()`}),`\n`,_jsx(CodeBlock,{numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getSubject`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(): `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`string`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` null`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`The authenticated subject the runtime currently serves, or null after logout.`}),`\n`,_jsx(Heading,{level:`4`,id:`returns-3`,children:`Returns`}),`\n`,_jsx(_components.p,{children:_jsx(_components.code,{children:`string | null`})}),`\n`,_jsx(Heading,{level:`3`,id:`markreadthrough`,children:`markReadThrough()`}),`\n`,_jsx(CodeBlock,{numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`markReadThrough`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`conversationId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`supportSequence`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`number`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`): `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`boolean`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Advance the tab-scoped read cursor for the current conversation. Only an open runtime in a\nvisible document can mark replies read, the cursor never moves backwards, and it never moves\npast a support reply this runtime has actually received.`}),`\n`,_jsx(Heading,{level:`4`,id:`parameters-3`,children:`Parameters`}),`\n`,_jsx(ResponseField,{name:`conversationId`,type:`string`,required:true}),`\n`,_jsx(ResponseField,{name:`supportSequence`,type:`number`,required:true}),`\n`,_jsx(Heading,{level:`4`,id:`returns-4`,children:`Returns`}),`\n`,_jsx(_components.p,{children:_jsx(_components.code,{children:`boolean`})}),`\n`,_jsx(Heading,{level:`3`,id:`open`,children:`open()`}),`\n`,_jsx(CodeBlock,{numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`open`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(): `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`Promise`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ConversationOutcome`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Shows the conversation: loads it, sends a pending message or a queued help offer contact, and\nkeeps it current while open. Opening alone creates no ticket.`}),`\n`,_jsx(Heading,{level:`4`,id:`returns-5`,children:`Returns`}),`\n`,_jsxs(`code`,{children:[`Promise\u003c`,_jsx(_components.a,{href:`/sdk/conversation/types/ConversationOutcome`,children:`ConversationOutcome`}),`>`]}),`\n`,_jsx(Heading,{level:`3`,id:`removeattachment`,children:`removeAttachment()`}),`\n`,_jsx(CodeBlock,{numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`removeAttachment`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`localId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`): `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`void`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Remove a draft file. An upload in flight is cancelled.`}),`\n`,_jsx(Heading,{level:`4`,id:`parameters-4`,children:`Parameters`}),`\n`,_jsx(ResponseField,{name:`localId`,type:`string`,required:true}),`\n`,_jsx(Heading,{level:`3`,id:`retry`,children:`retry()`}),`\n`,_jsx(CodeBlock,{numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`retry`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(): `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`Promise`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ConversationOutcome`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Sends the pending message again after a failure, or reloads when nothing is pending.`}),`\n`,_jsx(Heading,{level:`4`,id:`returns-6`,children:`Returns`}),`\n`,_jsxs(`code`,{children:[`Promise\u003c`,_jsx(_components.a,{href:`/sdk/conversation/types/ConversationOutcome`,children:`ConversationOutcome`}),`>`]}),`\n`,_jsx(Heading,{level:`3`,id:`retryattachment`,children:`retryAttachment()`}),`\n`,_jsx(CodeBlock,{numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`retryAttachment`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`localId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`): `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`void`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Upload a failed draft file again, when its bytes are still known.`}),`\n`,_jsx(Heading,{level:`4`,id:`parameters-5`,children:`Parameters`}),`\n`,_jsx(ResponseField,{name:`localId`,type:`string`,required:true}),`\n`,_jsx(Heading,{level:`3`,id:`send`,children:`send()`}),`\n`,_jsx(CodeBlock,{numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`send`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`options`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ConversationSendOptions`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`): `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`Promise`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ConversationOutcome`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Send the draft. With `,_jsx(_components.code,{children:`options.handoff`}),`, the message opens a conversation that carries the\nbot’s reason, summary, and chat before it; a blank reason answers `,_jsx(_components.code,{children:`invalid_draft`}),`.`]}),`\n`,_jsx(Heading,{level:`4`,id:`parameters-6`,children:`Parameters`}),`\n`,_jsx(ResponseField,{name:`options`,type:`ConversationSendOptions`,typeHref:`/sdk/conversation/interfaces/ConversationSendOptions`}),`\n`,_jsx(Heading,{level:`4`,id:`returns-7`,children:`Returns`}),`\n`,_jsxs(`code`,{children:[`Promise\u003c`,_jsx(_components.a,{href:`/sdk/conversation/types/ConversationOutcome`,children:`ConversationOutcome`}),`>`]}),`\n`,_jsx(Heading,{level:`3`,id:`setdraft`,children:`setDraft()`}),`\n`,_jsx(CodeBlock,{numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`setDraft`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`draft`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`): `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`void`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Replaces the customer’s draft. It is kept for this tab across reloads.`}),`\n`,_jsx(Heading,{level:`4`,id:`parameters-7`,children:`Parameters`}),`\n`,_jsx(ResponseField,{name:`draft`,type:`string`,required:true}),`\n`,_jsx(Heading,{level:`3`,id:`sharebotmessage`,children:`shareBotMessage()`}),`\n`,_jsx(CodeBlock,{numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`shareBotMessage`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`message`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`id:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`text`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }): `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`Promise`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`BotMessageOutcome`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Mirror a message your bot showed the end user into the team’s thread. Call it for every bot\nmessage while a conversation is open, and right after `,_jsx(_components.code,{children:`send({ handoff })`}),` for the bot’s own\ngoodbye: it waits for the conversation, keeps the order the user saw, and survives a reload.\nThe same `,_jsx(_components.code,{children:`id`}),` is recorded once.`]}),`\n`,_jsx(Heading,{level:`4`,id:`parameters-8`,children:`Parameters`}),`\n`,_jsx(ResponseField,{name:`message`,type:`{ id: string; text: string }`,required:true}),`\n`,_jsx(Heading,{level:`4`,id:`returns-8`,children:`Returns`}),`\n`,_jsxs(`code`,{children:[`Promise\u003c`,_jsx(_components.a,{href:`/sdk/conversation/types/BotMessageOutcome`,children:`BotMessageOutcome`}),`>`]}),`\n`,_jsx(Heading,{level:`3`,id:`snapshot`,children:`snapshot()`}),`\n`,_jsx(CodeBlock,{numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`snapshot`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(): `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ConversationSnapshot`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`File`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`The current state, transcript, and draft. Deep-frozen; the same object until it changes.`}),`\n`,_jsx(Heading,{level:`4`,id:`returns-9`,children:`Returns`}),`\n`,_jsx(_components.p,{children:_jsx(_components.code,{children:`ConversationSnapshot\u003cFile>`})}),`\n`,_jsx(Heading,{level:`3`,id:`startnew`,children:`startNew()`}),`\n`,_jsx(CodeBlock,{numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`startNew`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(): `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ConversationOutcome`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`After the conversation is resolved, makes the next send start a new one.`}),`\n`,_jsx(Heading,{level:`4`,id:`returns-10`,children:`Returns`}),`\n`,_jsx(`code`,{children:_jsx(_components.a,{href:`/sdk/conversation/types/ConversationOutcome`,children:`ConversationOutcome`})}),`\n`,_jsx(Heading,{level:`3`,id:`subscribe`,children:`subscribe()`}),`\n`,_jsx(CodeBlock,{numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`subscribe`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`listener`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`snapshot`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` ConversationSnapshot`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`File`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`>) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` void`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`): () `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` void`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Calls the listener on every snapshot change. Returns a function that stops the calls.`}),`\n`,_jsx(Heading,{level:`4`,id:`parameters-9`,children:`Parameters`}),`\n`,_jsx(ResponseField,{name:`listener`,type:`(snapshot: ConversationSnapshot\u003cFile>) => void`,required:true}),`\n`,_jsx(Heading,{level:`4`,id:`returns-11`,children:`Returns`}),`\n`,_jsx(_components.p,{children:_jsx(_components.code,{children:`() => void`})}),`\n`,_jsx(Heading,{level:`3`,id:`sync`,children:`sync()`}),`\n`,_jsx(CodeBlock,{numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`sync`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(): `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`Promise`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ConversationOutcome`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Reads the conversation now, while it is open.`}),`\n`,_jsx(Heading,{level:`4`,id:`returns-12`,children:`Returns`}),`\n`,_jsxs(`code`,{children:[`Promise\u003c`,_jsx(_components.a,{href:`/sdk/conversation/types/ConversationOutcome`,children:`ConversationOutcome`}),`>`]}),`\n`,_jsx(Heading,{level:`3`,id:`unreadcount`,children:`unreadCount()`}),`\n`,_jsx(CodeBlock,{numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`unreadCount`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(): `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`number`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Delivered support replies observed since this tab’s baseline and not yet marked read. While\nclosed, a visible tab refreshes this about once a minute and when it returns to the foreground.\nA hidden tab keeps the last-known count and schedules no reads.`}),`\n`,_jsx(Heading,{level:`4`,id:`returns-13`,children:`Returns`}),`\n`,_jsx(_components.p,{children:_jsx(_components.code,{children:`number`})}),`\n`,_jsx(Heading,{level:`3`,id:`updateauth`,children:`updateAuth()`}),`\n`,_jsx(CodeBlock,{numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`updateAuth`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`auth`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ConversationAuth`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`): `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`void`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Switches to another signed-in customer, or signs out with null. Capture follows: the new\nsubject’s identity, or a new anonymous session.`}),`\n`,_jsx(Heading,{level:`4`,id:`parameters-10`,children:`Parameters`}),`\n`,_jsx(ResponseField,{name:`auth`,type:`ConversationAuth | null`,required:true,children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Type:`}),` `,_jsxs(`code`,{children:[_jsx(_components.a,{href:`/sdk/conversation/interfaces/ConversationAuth`,children:`ConversationAuth`}),` | null`]})]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"href":"/sdk/conversation/classes/ConversationRuntime","title":"ConversationRuntime","description":"One signed-in customer's support conversation in this tab: the transcript, the draft, pending sends, and the help offer.","tag":"CLASS","sdk":{"format":"typedoc","source":"sdk-artifacts/typedoc.json","kind":"class","name":"ConversationRuntime"},"autogeneratedBySdk":true}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Heading,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`One signed-in customer’s support conversation in this tab: the transcript, the draft, pending\nsends, and the help offer. Create it with `,_jsx(_components.code,{children:`connectConversation`}),`.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Extends:`}),` `,_jsx(_components.code,{children:`ConversationRuntime\u003cFile>`})]}),`\n`,_jsx(Heading,{level:`2`,id:`constructor`,children:`Constructor`}),`\n`,_jsx(CodeBlock,{numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`ConversationRuntime`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`config`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ConversationConfig`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`): `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ConversationRuntime`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`parameters`,children:`Parameters`}),`\n`,_jsx(ResponseField,{name:`config`,type:`ConversationConfig`,typeHref:`/sdk/conversation/interfaces/ConversationConfig`,required:true}),`\n`,_jsx(Heading,{level:`3`,id:`returns`,children:`Returns`}),`\n`,_jsx(`code`,{children:_jsx(_components.a,{href:`/sdk/conversation/classes/ConversationRuntime`,children:`ConversationRuntime`})}),`\n`,_jsx(Heading,{level:`2`,id:`properties`,children:`Properties`}),`\n`,_jsx(ResponseField,{name:`config`,id:`property-config`,type:`ConversationConfig`,typeHref:`/sdk/conversation/interfaces/ConversationConfig`,required:true,children:_jsx(_components.p,{children:`The configuration it was created with.`})}),`\n`,_jsx(ResponseField,{name:`offers`,id:`property-offers`,type:`SupportOfferStore`,typeHref:`/sdk/conversation/interfaces/SupportOfferStore`,required:true,children:_jsxs(_components.p,{children:[`The Hinto Signal help offer for this subject’s journeys. Reset by `,_jsx(_components.code,{children:`updateAuth`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`methods`,children:`Methods`}),`\n`,_jsx(Heading,{level:`3`,id:`addattachments`,children:`addAttachments()`}),`\n`,_jsx(CodeBlock,{numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`addAttachments`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`files`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Iterable`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`File`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`): `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`AttachmentAddResult`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Add picked, pasted, or dropped files to the draft and start uploading each accepted one.\nFiles the runtime refuses are reported and never uploaded.`}),`\n`,_jsx(Heading,{level:`4`,id:`parameters-2`,children:`Parameters`}),`\n`,_jsx(ResponseField,{name:`files`,type:`Iterable\u003cFile>`,required:true}),`\n`,_jsx(Heading,{level:`4`,id:`returns-2`,children:`Returns`}),`\n`,_jsx(`code`,{children:_jsx(_components.a,{href:`/sdk/conversation/interfaces/AttachmentAddResult`,children:`AttachmentAddResult`})}),`\n`,_jsx(Heading,{level:`3`,id:`close`,children:`close()`}),`\n`,_jsx(CodeBlock,{numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`close`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(): `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`void`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Stops reading while the conversation is hidden. The draft and unread count are kept.`}),`\n`,_jsx(Heading,{level:`3`,id:`destroy`,children:`destroy()`}),`\n`,_jsx(CodeBlock,{numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`destroy`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(): `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`void`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Stops everything for good. Call it when the host unmounts support.`}),`\n`,_jsx(Heading,{level:`3`,id:`getsubject`,children:`getSubject()`}),`\n`,_jsx(CodeBlock,{numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getSubject`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(): `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`string`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` null`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`The authenticated subject the runtime currently serves, or null after logout.`}),`\n`,_jsx(Heading,{level:`4`,id:`returns-3`,children:`Returns`}),`\n`,_jsx(_components.p,{children:_jsx(_components.code,{children:`string | null`})}),`\n`,_jsx(Heading,{level:`3`,id:`markreadthrough`,children:`markReadThrough()`}),`\n`,_jsx(CodeBlock,{numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`markReadThrough`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`conversationId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`supportSequence`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`number`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`): `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`boolean`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Advance the tab-scoped read cursor for the current conversation. Only an open runtime in a\nvisible document can mark replies read, the cursor never moves backwards, and it never moves\npast a support reply this runtime has actually received.`}),`\n`,_jsx(Heading,{level:`4`,id:`parameters-3`,children:`Parameters`}),`\n`,_jsx(ResponseField,{name:`conversationId`,type:`string`,required:true}),`\n`,_jsx(ResponseField,{name:`supportSequence`,type:`number`,required:true}),`\n`,_jsx(Heading,{level:`4`,id:`returns-4`,children:`Returns`}),`\n`,_jsx(_components.p,{children:_jsx(_components.code,{children:`boolean`})}),`\n`,_jsx(Heading,{level:`3`,id:`open`,children:`open()`}),`\n`,_jsx(CodeBlock,{numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`open`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(): `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`Promise`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ConversationOutcome`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Shows the conversation: loads it, sends a pending message or a queued help offer contact, and\nkeeps it current while open. Opening alone creates no ticket.`}),`\n`,_jsx(Heading,{level:`4`,id:`returns-5`,children:`Returns`}),`\n`,_jsx(`code`,{children:_jsx(_components.a,{href:`/sdk/conversation/types/ConversationOutcome`,children:`ConversationOutcome`})}),`\n`,_jsx(Heading,{level:`3`,id:`removeattachment`,children:`removeAttachment()`}),`\n`,_jsx(CodeBlock,{numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`removeAttachment`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`localId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`): `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`void`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Remove a draft file. An upload in flight is cancelled.`}),`\n`,_jsx(Heading,{level:`4`,id:`parameters-4`,children:`Parameters`}),`\n`,_jsx(ResponseField,{name:`localId`,type:`string`,required:true}),`\n`,_jsx(Heading,{level:`3`,id:`retry`,children:`retry()`}),`\n`,_jsx(CodeBlock,{numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`retry`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(): `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`Promise`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ConversationOutcome`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Sends the pending message again after a failure, or reloads when nothing is pending.`}),`\n`,_jsx(Heading,{level:`4`,id:`returns-6`,children:`Returns`}),`\n`,_jsx(`code`,{children:_jsx(_components.a,{href:`/sdk/conversation/types/ConversationOutcome`,children:`ConversationOutcome`})}),`\n`,_jsx(Heading,{level:`3`,id:`retryattachment`,children:`retryAttachment()`}),`\n`,_jsx(CodeBlock,{numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`retryAttachment`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`localId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`): `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`void`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Upload a failed draft file again, when its bytes are still known.`}),`\n`,_jsx(Heading,{level:`4`,id:`parameters-5`,children:`Parameters`}),`\n`,_jsx(ResponseField,{name:`localId`,type:`string`,required:true}),`\n`,_jsx(Heading,{level:`3`,id:`send`,children:`send()`}),`\n`,_jsx(CodeBlock,{numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`send`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`options`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ConversationSendOptions`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`): `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`Promise`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ConversationOutcome`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Send the draft. With `,_jsx(_components.code,{children:`options.handoff`}),`, the message opens a conversation that carries the\nbot’s reason, summary, and chat before it; a blank reason answers `,_jsx(_components.code,{children:`invalid_draft`}),`.`]}),`\n`,_jsx(Heading,{level:`4`,id:`parameters-6`,children:`Parameters`}),`\n`,_jsx(ResponseField,{name:`options`,type:`ConversationSendOptions`,typeHref:`/sdk/conversation/interfaces/ConversationSendOptions`}),`\n`,_jsx(Heading,{level:`4`,id:`returns-7`,children:`Returns`}),`\n`,_jsx(`code`,{children:_jsx(_components.a,{href:`/sdk/conversation/types/ConversationOutcome`,children:`ConversationOutcome`})}),`\n`,_jsx(Heading,{level:`3`,id:`setdraft`,children:`setDraft()`}),`\n`,_jsx(CodeBlock,{numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`setDraft`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`draft`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`): `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`void`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Replaces the customer’s draft. It is kept for this tab across reloads.`}),`\n`,_jsx(Heading,{level:`4`,id:`parameters-7`,children:`Parameters`}),`\n`,_jsx(ResponseField,{name:`draft`,type:`string`,required:true}),`\n`,_jsx(Heading,{level:`3`,id:`sharebotmessage`,children:`shareBotMessage()`}),`\n`,_jsx(CodeBlock,{numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`shareBotMessage`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`message`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`id:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`text`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }): `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`Promise`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`BotMessageOutcome`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Mirror a message your bot showed the end user into the team’s thread. Call it for every bot\nmessage while a conversation is open, and right after `,_jsx(_components.code,{children:`send({ handoff })`}),` for the bot’s own\ngoodbye: it waits for the conversation, keeps the order the user saw, and survives a reload.\nThe same `,_jsx(_components.code,{children:`id`}),` is recorded once.`]}),`\n`,_jsx(Heading,{level:`4`,id:`parameters-8`,children:`Parameters`}),`\n`,_jsx(ResponseField,{name:`message`,type:`{ id: string; text: string }`,required:true}),`\n`,_jsx(Heading,{level:`4`,id:`returns-8`,children:`Returns`}),`\n`,_jsx(`code`,{children:_jsx(_components.a,{href:`/sdk/conversation/types/BotMessageOutcome`,children:`BotMessageOutcome`})}),`\n`,_jsx(Heading,{level:`3`,id:`snapshot`,children:`snapshot()`}),`\n`,_jsx(CodeBlock,{numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`snapshot`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(): `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ConversationSnapshot`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`File`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`The current state, transcript, and draft. Deep-frozen; the same object until it changes.`}),`\n`,_jsx(Heading,{level:`4`,id:`returns-9`,children:`Returns`}),`\n`,_jsx(_components.p,{children:_jsx(_components.code,{children:`ConversationSnapshot\u003cFile>`})}),`\n`,_jsx(Heading,{level:`3`,id:`startnew`,children:`startNew()`}),`\n`,_jsx(CodeBlock,{numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`startNew`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(): `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ConversationOutcome`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`After the conversation is resolved, makes the next send start a new one.`}),`\n`,_jsx(Heading,{level:`4`,id:`returns-10`,children:`Returns`}),`\n`,_jsx(`code`,{children:_jsx(_components.a,{href:`/sdk/conversation/types/ConversationOutcome`,children:`ConversationOutcome`})}),`\n`,_jsx(Heading,{level:`3`,id:`subscribe`,children:`subscribe()`}),`\n`,_jsx(CodeBlock,{numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`subscribe`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`listener`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`snapshot`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` ConversationSnapshot`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`File`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`>) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` void`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`): () `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` void`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Calls the listener on every snapshot change. Returns a function that stops the calls.`}),`\n`,_jsx(Heading,{level:`4`,id:`parameters-9`,children:`Parameters`}),`\n`,_jsx(ResponseField,{name:`listener`,type:`(snapshot: ConversationSnapshot\u003cFile>) => void`,required:true}),`\n`,_jsx(Heading,{level:`4`,id:`returns-11`,children:`Returns`}),`\n`,_jsx(_components.p,{children:_jsx(_components.code,{children:`() => void`})}),`\n`,_jsx(Heading,{level:`3`,id:`sync`,children:`sync()`}),`\n`,_jsx(CodeBlock,{numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`sync`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(): `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`Promise`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ConversationOutcome`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Reads the conversation now, while it is open.`}),`\n`,_jsx(Heading,{level:`4`,id:`returns-12`,children:`Returns`}),`\n`,_jsx(`code`,{children:_jsx(_components.a,{href:`/sdk/conversation/types/ConversationOutcome`,children:`ConversationOutcome`})}),`\n`,_jsx(Heading,{level:`3`,id:`unreadcount`,children:`unreadCount()`}),`\n`,_jsx(CodeBlock,{numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`unreadCount`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(): `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`number`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Delivered support replies observed since this tab’s baseline and not yet marked read. While\nclosed, a visible tab refreshes this about once a minute and when it returns to the foreground.\nA hidden tab keeps the last-known count and schedules no reads.`}),`\n`,_jsx(Heading,{level:`4`,id:`returns-13`,children:`Returns`}),`\n`,_jsx(_components.p,{children:_jsx(_components.code,{children:`number`})}),`\n`,_jsx(Heading,{level:`3`,id:`updateauth`,children:`updateAuth()`}),`\n`,_jsx(CodeBlock,{numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`updateAuth`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`auth`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ConversationAuth`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`): `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`void`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Switches to another signed-in customer, or signs out with null. Capture follows: the new\nsubject’s identity, or a new anonymous session.`}),`\n`,_jsx(Heading,{level:`4`,id:`parameters-10`,children:`Parameters`}),`\n`,_jsx(ResponseField,{name:`auth`,type:`ConversationAuth | null`,required:true,children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Type:`}),` `,_jsx(`code`,{children:_jsx(_components.a,{href:`/sdk/conversation/interfaces/ConversationAuth`,children:`ConversationAuth`})})]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"href":"/sdk/conversation/classes/ConversationRuntime","title":"ConversationRuntime","description":"One signed-in customer's support conversation in this tab: the transcript, the draft, pending sends, and the help offer.","tag":"CLASS","sdk":{"format":"typedoc","source":"sdk-artifacts/typedoc.json","kind":"class","name":"ConversationRuntime"},"autogeneratedBySdk":true}}}},"mdxExtracts":{"tableOfContents":[{"title":"Constructor","slug":"constructor","depth":2,"children":[{"title":"Parameters","slug":"parameters","depth":3,"children":[]},{"title":"Returns","slug":"returns","depth":3,"children":[]}]},{"title":"Properties","slug":"properties","depth":2,"children":[]},{"title":"Methods","slug":"methods","depth":2,"children":[{"title":"addAttachments()","slug":"addattachments","depth":3,"children":[]},{"title":"Parameters","slug":"parameters-2","depth":4,"children":[]},{"title":"Returns","slug":"returns-2","depth":4,"children":[]},{"title":"close()","slug":"close","depth":3,"children":[]},{"title":"destroy()","slug":"destroy","depth":3,"children":[]},{"title":"getSubject()","slug":"getsubject","depth":3,"children":[]},{"title":"Returns","slug":"returns-3","depth":4,"children":[]},{"title":"markReadThrough()","slug":"markreadthrough","depth":3,"children":[]},{"title":"Parameters","slug":"parameters-3","depth":4,"children":[]},{"title":"Returns","slug":"returns-4","depth":4,"children":[]},{"title":"open()","slug":"open","depth":3,"children":[]},{"title":"Returns","slug":"returns-5","depth":4,"children":[]},{"title":"removeAttachment()","slug":"removeattachment","depth":3,"children":[]},{"title":"Parameters","slug":"parameters-4","depth":4,"children":[]},{"title":"retry()","slug":"retry","depth":3,"children":[]},{"title":"Returns","slug":"returns-6","depth":4,"children":[]},{"title":"retryAttachment()","slug":"retryattachment","depth":3,"children":[]},{"title":"Parameters","slug":"parameters-5","depth":4,"children":[]},{"title":"send()","slug":"send","depth":3,"children":[]},{"title":"Parameters","slug":"parameters-6","depth":4,"children":[]},{"title":"Returns","slug":"returns-7","depth":4,"children":[]},{"title":"setDraft()","slug":"setdraft","depth":3,"children":[]},{"title":"Parameters","slug":"parameters-7","depth":4,"children":[]},{"title":"shareBotMessage()","slug":"sharebotmessage","depth":3,"children":[]},{"title":"Parameters","slug":"parameters-8","depth":4,"children":[]},{"title":"Returns","slug":"returns-8","depth":4,"children":[]},{"title":"snapshot()","slug":"snapshot","depth":3,"children":[]},{"title":"Returns","slug":"returns-9","depth":4,"children":[]},{"title":"startNew()","slug":"startnew","depth":3,"children":[]},{"title":"Returns","slug":"returns-10","depth":4,"children":[]},{"title":"subscribe()","slug":"subscribe","depth":3,"children":[]},{"title":"Parameters","slug":"parameters-9","depth":4,"children":[]},{"title":"Returns","slug":"returns-11","depth":4,"children":[]},{"title":"sync()","slug":"sync","depth":3,"children":[]},{"title":"Returns","slug":"returns-12","depth":4,"children":[]},{"title":"unreadCount()","slug":"unreadcount","depth":3,"children":[]},{"title":"Returns","slug":"returns-13","depth":4,"children":[]},{"title":"updateAuth()","slug":"updateauth","depth":3,"children":[]},{"title":"Parameters","slug":"parameters-10","depth":4,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"hinto","siteName":"Hinto","title":"ConversationRuntime - Hinto","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-20T13:31:51.440Z","originalFileLocation":"sdk/conversation/classes/ConversationRuntime.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"One signed-in customer\u0026#x27;s support conversation in this tab: the transcript, the draft, pending sends, and the help offer.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Hinto\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/hinto/_generated/favicon/apple-touch-icon.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/hinto/_generated/favicon/favicon-32x32.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/hinto/_generated/favicon/favicon-16x16.png?v=3\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/hinto/_generated/favicon/favicon.ico?v=3\">\u003cmeta data-mint-head property=\"og:title\" content=\"ConversationRuntime - Hinto\">\u003cmeta data-mint-head property=\"og:description\" content=\"One signed-in customer\u0026#x27;s support conversation in this tab: the transcript, the draft, pending sends, and the help offer.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Hinto\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.gethinto.com/sdk/conversation/classes/ConversationRuntime\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://hinto.mintlify.site/_mintlify/api/og/v2?division=Classes\u0026amp;title=ConversationRuntime\u0026amp;description=One+signed-in+customer%27s+support+conversation+in+this+tab%3A+the+transcript%2C+the+draft%2C+pending+sends%2C+and+the+help+offer.\u0026amp;theme=764f5ace3722df0fd8a2f04c\u0026amp;signature=34152096667e78ead26be0e530afd0ea439dd856e6c6768e20babcfa34813b69\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"ConversationRuntime - Hinto\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"One signed-in customer\u0026#x27;s support conversation in this tab: the transcript, the draft, pending sends, and the help offer.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://hinto.mintlify.site/_mintlify/api/og/v2?division=Classes\u0026amp;title=ConversationRuntime\u0026amp;description=One+signed-in+customer%27s+support+conversation+in+this+tab%3A+the+transcript%2C+the+draft%2C+pending+sends%2C+and+the+help+offer.\u0026amp;theme=764f5ace3722df0fd8a2f04c\u0026amp;signature=34152096667e78ead26be0e530afd0ea439dd856e6c6768e20babcfa34813b69\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/hinto/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Hinto\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1f9e74\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.gethinto.com/sdk/conversation/classes/ConversationRuntime\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/sdk/conversation/classes/ConversationRuntime.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.gethinto.com/#organization\",\"name\":\"Hinto\",\"url\":\"https://docs.gethinto.com\"},{\"@type\":\"WebSite\",\"@id\":\"https://docs.gethinto.com#website\",\"name\":\"Hinto\",\"url\":\"https://docs.gethinto.com\",\"publisher\":{\"@id\":\"https://docs.gethinto.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.gethinto.com/sdk/conversation/classes/ConversationRuntime#webpage\",\"url\":\"https://docs.gethinto.com/sdk/conversation/classes/ConversationRuntime\",\"name\":\"ConversationRuntime\",\"description\":\"One signed-in customer's support conversation in this tab: the transcript, the draft, pending sends, and the help offer.\",\"dateModified\":\"2026-11-20T13:31:51.440Z\",\"isPartOf\":{\"@id\":\"https://docs.gethinto.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.gethinto.com/sdk/conversation/classes/ConversationRuntime#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.gethinto.com/sdk/conversation/classes/ConversationRuntime#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"conversation\",\"item\":\"https://docs.gethinto.com/sdk/conversation/classes/ConversationConnectError\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Classes\",\"item\":\"https://docs.gethinto.com/sdk/conversation/classes/ConversationConnectError\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"ConversationRuntime\",\"item\":\"https://docs.gethinto.com/sdk/conversation/classes/ConversationRuntime\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.gethinto.com/sdk/conversation/classes/ConversationRuntime#article\",\"headline\":\"ConversationRuntime\",\"name\":\"ConversationRuntime\",\"description\":\"One signed-in customer's support conversation in this tab: the transcript, the draft, pending sends, and the help offer.\",\"url\":\"https://docs.gethinto.com/sdk/conversation/classes/ConversationRuntime\",\"mainEntityOfPage\":{\"@id\":\"https://docs.gethinto.com/sdk/conversation/classes/ConversationRuntime#webpage\"},\"dateModified\":\"2026-11-20T13:31:51.440Z\",\"publisher\":{\"@id\":\"https://docs.gethinto.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.gethinto.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Hinto\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Hinto\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/sdk/conversation/classes/ConversationRuntime.md","siteName":"Hinto","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"SDK Reference","groups":[{"group":"Overview","pages":[{"href":"/sdk/package-overview","title":"@gethinto/browser-sdk"}]},{"group":"conversation","pages":[{"group":"Classes","pages":[{"href":"/sdk/conversation/classes/ConversationConnectError","title":"ConversationConnectError","description":"Why could not resolve this page's Native Support application.","tag":"CLASS"},{"href":"/sdk/conversation/classes/ConversationRuntime","title":"ConversationRuntime","tag":"CLASS"}]},{"group":"Interfaces","pages":[{"href":"/sdk/conversation/interfaces/AttachmentAddResult","title":"AttachmentAddResult","tag":"INTERFACE"},{"href":"/sdk/conversation/interfaces/AttachmentRejection","title":"AttachmentRejection","tag":"INTERFACE"},{"href":"/sdk/conversation/interfaces/ConnectConversationOptions","title":"ConnectConversationOptions","tag":"INTERFACE"},{"href":"/sdk/conversation/interfaces/ContactSupportInput","title":"ContactSupportInput","tag":"INTERFACE"},{"href":"/sdk/conversation/interfaces/ConversationAttachment","title":"ConversationAttachment","tag":"INTERFACE"},{"href":"/sdk/conversation/interfaces/ConversationAuth","title":"ConversationAuth","tag":"INTERFACE"},{"href":"/sdk/conversation/interfaces/ConversationBot","title":"ConversationBot","tag":"INTERFACE"},{"href":"/sdk/conversation/interfaces/ConversationConfig","title":"ConversationConfig","tag":"INTERFACE"},{"href":"/sdk/conversation/interfaces/ConversationMessage","title":"ConversationMessage","tag":"INTERFACE"},{"href":"/sdk/conversation/interfaces/ConversationSendOptions","title":"ConversationSendOptions","tag":"INTERFACE"},{"href":"/sdk/conversation/interfaces/Handoff","title":"Handoff","tag":"INTERFACE"},{"href":"/sdk/conversation/interfaces/HandoffPayload","title":"HandoffPayload","tag":"INTERFACE"},{"href":"/sdk/conversation/interfaces/HandoffPayloadTurn","title":"HandoffPayloadTurn","tag":"INTERFACE"},{"href":"/sdk/conversation/interfaces/HandoffTurn","title":"HandoffTurn","tag":"INTERFACE"},{"href":"/sdk/conversation/interfaces/MutationResponse","title":"MutationResponse","tag":"INTERFACE"},{"href":"/sdk/conversation/interfaces/PendingCommand","title":"PendingCommand","tag":"INTERFACE"},{"href":"/sdk/conversation/interfaces/PendingSend","title":"PendingSend","tag":"INTERFACE"},{"href":"/sdk/conversation/interfaces/SupportConversation","title":"SupportConversation","tag":"INTERFACE"},{"href":"/sdk/conversation/interfaces/SupportOffer","title":"SupportOffer","tag":"INTERFACE"},{"href":"/sdk/conversation/interfaces/SupportOfferStore","title":"SupportOfferStore","tag":"INTERFACE"},{"href":"/sdk/conversation/interfaces/SupportStatus","title":"SupportStatus","tag":"INTERFACE"},{"href":"/sdk/conversation/interfaces/SupportStatusStep","title":"SupportStatusStep","tag":"INTERFACE"},{"href":"/sdk/conversation/interfaces/UploadedAttachment","title":"UploadedAttachment","tag":"INTERFACE"}]},{"group":"Functions","pages":[{"href":"/sdk/conversation/functions/attachmentTypeFor","title":"attachmentTypeFor","tag":"FUNCTION"},{"href":"/sdk/conversation/functions/connectConversation","title":"connectConversation","tag":"FUNCTION"},{"href":"/sdk/conversation/functions/createConversation","title":"createConversation","tag":"FUNCTION"},{"href":"/sdk/conversation/functions/isSupportReply","title":"isSupportReply","tag":"FUNCTION"}]},{"group":"Type Aliases","pages":[{"href":"/sdk/conversation/types/AttachmentRejectionReason","title":"AttachmentRejectionReason","tag":"TYPE"},{"href":"/sdk/conversation/types/AttachmentType","title":"AttachmentType","tag":"TYPE"},{"href":"/sdk/conversation/types/BotMessageOutcome","title":"BotMessageOutcome","tag":"TYPE"},{"href":"/sdk/conversation/types/ConversationComposer","title":"ConversationComposer","tag":"TYPE"},{"href":"/sdk/conversation/types/ConversationConnectErrorCode","title":"ConversationConnectErrorCode","tag":"TYPE"},{"href":"/sdk/conversation/types/ConversationOutcome","title":"ConversationOutcome","tag":"TYPE"},{"href":"/sdk/conversation/types/ConversationSnapshot","title":"ConversationSnapshot","tag":"TYPE"},{"href":"/sdk/conversation/types/CurrentConversation","title":"CurrentConversation","tag":"TYPE"},{"href":"/sdk/conversation/types/DraftAttachment","title":"DraftAttachment","tag":"TYPE"},{"href":"/sdk/conversation/types/DraftAttachmentFields","title":"DraftAttachmentFields","tag":"TYPE"},{"href":"/sdk/conversation/types/DraftAttachmentProblem","title":"DraftAttachmentProblem","tag":"TYPE"},{"href":"/sdk/conversation/types/HandoffTurnAuthor","title":"HandoffTurnAuthor","tag":"TYPE"},{"href":"/sdk/conversation/types/NativeSupportErrorCode","title":"NativeSupportErrorCode","tag":"TYPE"},{"href":"/sdk/conversation/types/NativeSupportState","title":"NativeSupportState","tag":"TYPE"},{"href":"/sdk/conversation/types/SupportContactOutcome","title":"SupportContactOutcome","tag":"TYPE"},{"href":"/sdk/conversation/types/SupportOfferOutcome","title":"SupportOfferOutcome","tag":"TYPE"},{"href":"/sdk/conversation/types/SupportOfferSnapshot","title":"SupportOfferSnapshot","tag":"TYPE"},{"href":"/sdk/conversation/types/SupportStatusPhase","title":"SupportStatusPhase","tag":"TYPE"},{"href":"/sdk/conversation/types/SupportStatusStepState","title":"SupportStatusStepState","tag":"TYPE"}]},{"group":"Variables","pages":[{"href":"/sdk/conversation/variables/ATTACHMENT_TYPES","title":"ATTACHMENT_TYPES","tag":"VARIABLE"},{"href":"/sdk/conversation/variables/CONTACT_QUEUE_TTL_MS","title":"CONTACT_QUEUE_TTL_MS","tag":"VARIABLE"},{"href":"/sdk/conversation/variables/MAX_ATTACHMENT_BYTES","title":"MAX_ATTACHMENT_BYTES","tag":"VARIABLE"},{"href":"/sdk/conversation/variables/MAX_ATTACHMENTS_PER_MESSAGE","title":"MAX_ATTACHMENTS_PER_MESSAGE","tag":"VARIABLE"},{"href":"/sdk/conversation/variables/MAX_HANDOFF_TURN_LENGTH","title":"MAX_HANDOFF_TURN_LENGTH","tag":"VARIABLE"},{"href":"/sdk/conversation/variables/MAX_HANDOFF_TURNS","title":"MAX_HANDOFF_TURNS","tag":"VARIABLE"},{"href":"/sdk/conversation/variables/MAX_MESSAGE_LENGTH","title":"MAX_MESSAGE_LENGTH","tag":"VARIABLE"},{"href":"/sdk/conversation/variables/SUPPORT_STATUS_PHASES","title":"SUPPORT_STATUS_PHASES","tag":"VARIABLE"}]}]},{"group":"index","pages":[{"group":"Interfaces","pages":[{"href":"/sdk/index/interfaces/HintoClient","title":"HintoClient","tag":"INTERFACE"},{"href":"/sdk/index/interfaces/HintoConfig","title":"HintoConfig","tag":"INTERFACE"},{"href":"/sdk/index/interfaces/IngestBatchResponse","title":"IngestBatchResponse","tag":"INTERFACE"},{"href":"/sdk/index/interfaces/JourneyAttemptOptions","title":"JourneyAttemptOptions","tag":"INTERFACE"},{"href":"/sdk/index/interfaces/JourneyEventBase","title":"JourneyEventBase","tag":"INTERFACE"},{"href":"/sdk/index/interfaces/JourneyFailOptions","title":"JourneyFailOptions","tag":"INTERFACE"},{"href":"/sdk/index/interfaces/JourneyHandle","title":"JourneyHandle","tag":"INTERFACE"},{"href":"/sdk/index/interfaces/JourneyRef","title":"JourneyRef","tag":"INTERFACE"},{"href":"/sdk/index/interfaces/JourneyStartOptions","title":"JourneyStartOptions","tag":"INTERFACE"},{"href":"/sdk/index/interfaces/JourneySucceedOptions","title":"JourneySucceedOptions","tag":"INTERFACE"},{"href":"/sdk/index/interfaces/SessionIdentity","title":"SessionIdentity","tag":"INTERFACE"}]},{"group":"Functions","pages":[{"href":"/sdk/index/functions/initHinto","title":"initHinto","tag":"FUNCTION"}]},{"group":"Type Aliases","pages":[{"href":"/sdk/index/types/ConsoleLevel","title":"ConsoleLevel","tag":"TYPE"},{"href":"/sdk/index/types/JourneyEventPayload","title":"JourneyEventPayload","tag":"TYPE"},{"href":"/sdk/index/types/JourneyFailureCategory","title":"JourneyFailureCategory","tag":"TYPE"},{"href":"/sdk/index/types/JourneyFeedback","title":"JourneyFeedback","tag":"TYPE"},{"href":"/sdk/index/types/JourneyMetadata","title":"JourneyMetadata","tag":"TYPE"}]}]}]}]},"basePath":"","title":"ConversationRuntime - Hinto","deploymentId":"dpl_XLevHnGPjzxq9mbREha5Faad63Sp","buildId":"dpl_XLevHnGPjzxq9mbREha5Faad63Sp","dynamics":[],"chunks":[]}