@hipnation-truth/sdk 0.21.0 → 0.23.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/index.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/react.d.ts +16 -0
- package/dist/react.js +2 -2
- package/dist/react.js.map +1 -1
- package/package.json +1 -1
package/dist/react.d.ts
CHANGED
|
@@ -213,10 +213,21 @@ interface ConversationMessageRow {
|
|
|
213
213
|
duration: number | null;
|
|
214
214
|
/** Voicemail/call transcript — Dialpad delivers `{ text }` (B5). */
|
|
215
215
|
transcript: unknown | null;
|
|
216
|
+
/** AI-generated Dialpad recap summary (calls only; null for SMS). */
|
|
217
|
+
recapSummary: string | null;
|
|
216
218
|
text: string | null;
|
|
217
219
|
mms: boolean;
|
|
218
220
|
mmsUrl: string | null;
|
|
219
221
|
messageStatus: string | null;
|
|
222
|
+
/**
|
|
223
|
+
* True while an outbound SMS is the optimistic local row inserted by the
|
|
224
|
+
* Truth `sendMessage` path and not yet reconciled by the Dialpad webhook
|
|
225
|
+
* (Truth #100). Cleared once the real event lands. Always `false` for calls
|
|
226
|
+
* and for reconciled rows. Clients should gate a "sending" affordance on
|
|
227
|
+
* THIS flag — not on `messageStatus === "optimistic"`, a value that is
|
|
228
|
+
* minted nowhere in the pipeline.
|
|
229
|
+
*/
|
|
230
|
+
optimistic: boolean;
|
|
220
231
|
occurredAt: string;
|
|
221
232
|
conversationId: string | null;
|
|
222
233
|
patientId: string | null;
|
|
@@ -673,6 +684,8 @@ interface ConversationMessage {
|
|
|
673
684
|
duration: number | null;
|
|
674
685
|
/** Voicemail/call transcript — Dialpad delivers `{ text }` (B5). */
|
|
675
686
|
transcript: unknown | null;
|
|
687
|
+
/** AI-generated Dialpad recap summary (calls only; null for SMS). */
|
|
688
|
+
recapSummary: string | null;
|
|
676
689
|
text: string | null;
|
|
677
690
|
mms: boolean;
|
|
678
691
|
mmsUrl: string | null;
|
|
@@ -1336,6 +1349,8 @@ interface CreateConversationNoteInput extends ConversationAddress {
|
|
|
1336
1349
|
interface CreateConversationTaskInput extends ConversationAddress {
|
|
1337
1350
|
eventId?: string;
|
|
1338
1351
|
author: string;
|
|
1352
|
+
/** Optional short headline, distinct from `description`. */
|
|
1353
|
+
title?: string;
|
|
1339
1354
|
description: string;
|
|
1340
1355
|
status?: ConversationTaskStatus;
|
|
1341
1356
|
priority?: ConversationTaskPriority;
|
|
@@ -1355,6 +1370,7 @@ interface UpdateConversationTaskInput {
|
|
|
1355
1370
|
author: string;
|
|
1356
1371
|
description: string;
|
|
1357
1372
|
/** Optional patch fields — pass only the ones you want to change. */
|
|
1373
|
+
title?: string;
|
|
1358
1374
|
priority?: ConversationTaskPriority;
|
|
1359
1375
|
status?: ConversationTaskStatus;
|
|
1360
1376
|
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
|
}
|