@hipnation-truth/sdk 0.20.0 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/react.d.ts CHANGED
@@ -92,6 +92,15 @@ interface ConversationListItem {
92
92
  lastMessageKind: string | null;
93
93
  /** `"inbound" | "outbound"` of the previewed message. */
94
94
  lastDirection: string | null;
95
+ /**
96
+ * Call lifecycle state when the previewed event is a call/voicemail:
97
+ * `"missed" | "connected" | "ringing" | "hangup" | "voicemail" |
98
+ * "voicemail_uploaded"`. Lets the inbox show "Missed call" / "Call in
99
+ * progress" / "Voicemail" instead of a bare "Call". Null for SMS.
100
+ */
101
+ lastCallState: string | null;
102
+ /** Call duration in seconds (calls only). */
103
+ lastCallDurationSec: number | null;
95
104
  /** Caller's unread count for this conversation. */
96
105
  unreadCount: number;
97
106
  /** ISO timestamp of when the caller last marked the conversation read. */
@@ -163,6 +172,12 @@ interface ConversationTaskRow {
163
172
  * patient handle without a second reactive query.
164
173
  */
165
174
  interface ConversationTaskForUserRow extends ConversationTaskRow {
175
+ /**
176
+ * Task title — only standalone (New-Task-modal) tasks have one; conversation
177
+ * tasks have none (the `description` is the content). When set, the My Tasks
178
+ * card shows it as the headline with the real `description` below it.
179
+ */
180
+ title: string | null;
166
181
  /** Normalized `(patient_phone | provider_phone)` for the task's conversation. */
167
182
  phonePair: string | null;
168
183
  /**
@@ -198,6 +213,8 @@ interface ConversationMessageRow {
198
213
  duration: number | null;
199
214
  /** Voicemail/call transcript — Dialpad delivers `{ text }` (B5). */
200
215
  transcript: unknown | null;
216
+ /** AI-generated Dialpad recap summary (calls only; null for SMS). */
217
+ recapSummary: string | null;
201
218
  text: string | null;
202
219
  mms: boolean;
203
220
  mmsUrl: string | null;
@@ -658,6 +675,8 @@ interface ConversationMessage {
658
675
  duration: number | null;
659
676
  /** Voicemail/call transcript — Dialpad delivers `{ text }` (B5). */
660
677
  transcript: unknown | null;
678
+ /** AI-generated Dialpad recap summary (calls only; null for SMS). */
679
+ recapSummary: string | null;
661
680
  text: string | null;
662
681
  mms: boolean;
663
682
  mmsUrl: string | null;
@@ -1321,6 +1340,8 @@ interface CreateConversationNoteInput extends ConversationAddress {
1321
1340
  interface CreateConversationTaskInput extends ConversationAddress {
1322
1341
  eventId?: string;
1323
1342
  author: string;
1343
+ /** Optional short headline, distinct from `description`. */
1344
+ title?: string;
1324
1345
  description: string;
1325
1346
  status?: ConversationTaskStatus;
1326
1347
  priority?: ConversationTaskPriority;
@@ -1340,6 +1361,7 @@ interface UpdateConversationTaskInput {
1340
1361
  author: string;
1341
1362
  description: string;
1342
1363
  /** Optional patch fields — pass only the ones you want to change. */
1364
+ title?: string;
1343
1365
  priority?: ConversationTaskPriority;
1344
1366
  status?: ConversationTaskStatus;
1345
1367
  assignee?: string;
package/dist/react.js CHANGED
@@ -619,12 +619,12 @@ var ConversationTasksSubresource = class {
619
619
  return __async(this, null, function* () {
620
620
  return this.patch(
621
621
  `/conversations/tasks/${encodeURIComponent(input.taskId)}`,
622
- __spreadValues(__spreadValues(__spreadValues(__spreadValues({
622
+ __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({
623
623
  id: input.taskId,
624
624
  conversationId: input.conversationId,
625
625
  author: input.author,
626
626
  description: input.description
627
- }, input.priority ? { priority: input.priority } : {}), input.status ? { status: input.status } : {}), input.assignee !== void 0 ? { assignee: input.assignee } : {}), input.type !== void 0 ? { type: input.type } : {})
627
+ }, input.title !== void 0 ? { title: input.title } : {}), input.priority ? { priority: input.priority } : {}), input.status ? { status: input.status } : {}), input.assignee !== void 0 ? { assignee: input.assignee } : {}), input.type !== void 0 ? { type: input.type } : {})
628
628
  );
629
629
  });
630
630
  }