Skip to main content

Interface: CurrentSmsChatResponse

Defined in: packages/sdk/src/types/generated/chat.ts:405

Create-chat preflight: is an SMS conversation already live with this member?

An SMS conversation with a member is a single stream — inbound SMS routes to ONE current chat per (member phone, workspace phone) pair (get_current_chat_for_phone_and_target_member) — so creating a new SMS chat supersedes the existing one: from the next inbound message onwards the old chat goes quiet. This endpoint lets the create-chat UI warn about that before the operator commits.

PHI-safe by construction. Status and timing only: no message content, no phone numbers, no member names, and deliberately no chat title (titles are auto-summarised from message content, so they ARE PHI).

exists is False leaves every other field None — the caller should branch on exists, not on a null id.

Properties

aiAnswering?

optional aiAnswering: boolean | null

Defined in: packages/sdk/src/types/generated/chat.ts:414


chatId?

optional chatId: number | null

Defined in: packages/sdk/src/types/generated/chat.ts:407


chatType?

optional chatType: string | null

Defined in: packages/sdk/src/types/generated/chat.ts:409


chatUuid?

optional chatUuid: string | null

Defined in: packages/sdk/src/types/generated/chat.ts:408


exists

exists: boolean

Defined in: packages/sdk/src/types/generated/chat.ts:406


lastActivityAt?

optional lastActivityAt: string | null

Defined in: packages/sdk/src/types/generated/chat.ts:411


needsResponse?

optional needsResponse: boolean | null

Defined in: packages/sdk/src/types/generated/chat.ts:412


paused?

optional paused: boolean | null

Defined in: packages/sdk/src/types/generated/chat.ts:413


workflowName?

optional workflowName: string | null

Defined in: packages/sdk/src/types/generated/chat.ts:410