@hipnation-truth/sdk 0.25.1 → 0.25.2

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
@@ -1462,6 +1462,12 @@ interface SetConversationTaskStatusInput {
1462
1462
  taskId: string;
1463
1463
  status: ConversationTaskStatus;
1464
1464
  resolvedBy?: string;
1465
+ /**
1466
+ * Email of the user performing the action. Truth excludes the actor
1467
+ * from the task-action push fan-out (legacy parity) — omit it and the
1468
+ * actor notifies themselves.
1469
+ */
1470
+ actor?: string;
1465
1471
  }
1466
1472
  interface UpdateConversationTaskInput {
1467
1473
  taskId: string;
@@ -1476,6 +1482,18 @@ interface UpdateConversationTaskInput {
1476
1482
  status?: ConversationTaskStatus;
1477
1483
  assignee?: string;
1478
1484
  type?: string;
1485
+ /**
1486
+ * Email of the user performing the action. Truth excludes the actor
1487
+ * from the task-action push fan-out (legacy parity) — omit it and the
1488
+ * actor notifies themselves.
1489
+ */
1490
+ actor?: string;
1491
+ }
1492
+ interface SetConversationTaskArchivedInput {
1493
+ taskId: string;
1494
+ archived: boolean;
1495
+ /** Email of the acting user — excluded from the archive push fan-out. */
1496
+ actor?: string;
1479
1497
  }
1480
1498
  interface SendConversationMessageInput {
1481
1499
  fromNumber: string;
@@ -1508,6 +1526,11 @@ declare class ConversationTasksSubresource {
1508
1526
  setStatus(input: SetConversationTaskStatusInput): Promise<{
1509
1527
  ok: true;
1510
1528
  }>;
1529
+ /** Archive or un-archive a task (hides it from My Tasks without deleting). */
1530
+ setArchived(input: SetConversationTaskArchivedInput): Promise<{
1531
+ ok: true;
1532
+ changed: boolean;
1533
+ }>;
1511
1534
  /**
1512
1535
  * Update task fields (priority, assignee, description, type). Wraps
1513
1536
  * `PATCH /api/conversations/tasks/{id}` so CommHub doesn't have to
package/dist/react.js CHANGED
@@ -670,10 +670,22 @@ var ConversationTasksSubresource = class {
670
670
  return __async(this, null, function* () {
671
671
  return this.post(
672
672
  `/conversations/tasks/${encodeURIComponent(input.taskId)}/status`,
673
- __spreadValues({
673
+ __spreadValues(__spreadValues({
674
674
  id: input.taskId,
675
675
  status: input.status
676
- }, input.resolvedBy ? { resolvedBy: input.resolvedBy } : {})
676
+ }, input.resolvedBy ? { resolvedBy: input.resolvedBy } : {}), input.actor ? { actor: input.actor } : {})
677
+ );
678
+ });
679
+ }
680
+ /** Archive or un-archive a task (hides it from My Tasks without deleting). */
681
+ setArchived(input) {
682
+ return __async(this, null, function* () {
683
+ return this.post(
684
+ `/conversations/tasks/${encodeURIComponent(input.taskId)}/archive`,
685
+ __spreadValues({
686
+ id: input.taskId,
687
+ archived: input.archived
688
+ }, input.actor ? { actor: input.actor } : {})
677
689
  );
678
690
  });
679
691
  }
@@ -686,12 +698,12 @@ var ConversationTasksSubresource = class {
686
698
  return __async(this, null, function* () {
687
699
  return this.patch(
688
700
  `/conversations/tasks/${encodeURIComponent(input.taskId)}`,
689
- __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({
701
+ __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({
690
702
  id: input.taskId,
691
703
  conversationId: input.conversationId,
692
704
  author: input.author,
693
705
  description: input.description
694
- }, 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 } : {})
706
+ }, 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 } : {}), input.actor ? { actor: input.actor } : {})
695
707
  );
696
708
  });
697
709
  }