@hipnation-truth/sdk 0.16.3 → 0.17.1

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 CHANGED
@@ -1056,6 +1056,16 @@ interface UpdateTaskStatusInput {
1056
1056
  resolvedBy?: string;
1057
1057
  data?: unknown;
1058
1058
  }
1059
+ /**
1060
+ * Input for `tasks.markSeen()` — marks a conversation task as seen by
1061
+ * the given user, backing CommHub's My Tasks "unseen" indicator.
1062
+ */
1063
+ interface ConversationTaskMarkSeenInput {
1064
+ /** Convex `_id` of the `conversationTasks` row. */
1065
+ taskId: string;
1066
+ /** User id of the person who viewed the task. */
1067
+ userId: string;
1068
+ }
1059
1069
 
1060
1070
  /**
1061
1071
  * TasksResource — create, update status, list, get tasks.
@@ -1083,6 +1093,17 @@ declare class TasksResource {
1083
1093
  limit?: number;
1084
1094
  }): Promise<Task[]>;
1085
1095
  listOpen(limit?: number): Promise<Task[]>;
1096
+ /**
1097
+ * Mark a conversation task as seen by the given user. Appends `userId`
1098
+ * to the `seenBy` array on the `conversationTasks` row if not already
1099
+ * present. Replaces CommHub's `useMark_Event_Activity_SeenMutation`.
1100
+ *
1101
+ * @returns `{ ok: true }` on success.
1102
+ * @throws if the task does not exist in Convex.
1103
+ */
1104
+ markSeen(input: ConversationTaskMarkSeenInput): Promise<{
1105
+ ok: true;
1106
+ }>;
1086
1107
  }
1087
1108
 
1088
1109
  interface TranslationResult {
package/dist/index.d.ts CHANGED
@@ -1056,6 +1056,16 @@ interface UpdateTaskStatusInput {
1056
1056
  resolvedBy?: string;
1057
1057
  data?: unknown;
1058
1058
  }
1059
+ /**
1060
+ * Input for `tasks.markSeen()` — marks a conversation task as seen by
1061
+ * the given user, backing CommHub's My Tasks "unseen" indicator.
1062
+ */
1063
+ interface ConversationTaskMarkSeenInput {
1064
+ /** Convex `_id` of the `conversationTasks` row. */
1065
+ taskId: string;
1066
+ /** User id of the person who viewed the task. */
1067
+ userId: string;
1068
+ }
1059
1069
 
1060
1070
  /**
1061
1071
  * TasksResource — create, update status, list, get tasks.
@@ -1083,6 +1093,17 @@ declare class TasksResource {
1083
1093
  limit?: number;
1084
1094
  }): Promise<Task[]>;
1085
1095
  listOpen(limit?: number): Promise<Task[]>;
1096
+ /**
1097
+ * Mark a conversation task as seen by the given user. Appends `userId`
1098
+ * to the `seenBy` array on the `conversationTasks` row if not already
1099
+ * present. Replaces CommHub's `useMark_Event_Activity_SeenMutation`.
1100
+ *
1101
+ * @returns `{ ok: true }` on success.
1102
+ * @throws if the task does not exist in Convex.
1103
+ */
1104
+ markSeen(input: ConversationTaskMarkSeenInput): Promise<{
1105
+ ok: true;
1106
+ }>;
1086
1107
  }
1087
1108
 
1088
1109
  interface TranslationResult {
package/dist/index.js CHANGED
@@ -1497,6 +1497,22 @@ var TasksResource = class {
1497
1497
  }
1498
1498
  });
1499
1499
  }
1500
+ /**
1501
+ * Mark a conversation task as seen by the given user. Appends `userId`
1502
+ * to the `seenBy` array on the `conversationTasks` row if not already
1503
+ * present. Replaces CommHub's `useMark_Event_Activity_SeenMutation`.
1504
+ *
1505
+ * @returns `{ ok: true }` on success.
1506
+ * @throws if the task does not exist in Convex.
1507
+ */
1508
+ markSeen(input) {
1509
+ return __async(this, null, function* () {
1510
+ return yield this.convex.mutation(
1511
+ "conversationTasks:markSeen",
1512
+ input
1513
+ );
1514
+ });
1515
+ }
1500
1516
  };
1501
1517
 
1502
1518
  // src/resources/translation.ts