@hipnation-truth/sdk 0.23.2 → 0.24.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 CHANGED
@@ -267,6 +267,12 @@ interface SetConversationTaskStatusInput {
267
267
  taskId: string;
268
268
  status: ConversationTaskStatus;
269
269
  resolvedBy?: string;
270
+ /**
271
+ * Email of the user performing the action. Truth excludes the actor
272
+ * from the task-action push fan-out (legacy parity) — omit it and the
273
+ * actor notifies themselves.
274
+ */
275
+ actor?: string;
270
276
  }
271
277
  interface UpdateConversationTaskInput {
272
278
  taskId: string;
@@ -281,6 +287,18 @@ interface UpdateConversationTaskInput {
281
287
  status?: ConversationTaskStatus;
282
288
  assignee?: string;
283
289
  type?: string;
290
+ /**
291
+ * Email of the user performing the action. Truth excludes the actor
292
+ * from the task-action push fan-out (legacy parity) — omit it and the
293
+ * actor notifies themselves.
294
+ */
295
+ actor?: string;
296
+ }
297
+ interface SetConversationTaskArchivedInput {
298
+ taskId: string;
299
+ archived: boolean;
300
+ /** Email of the acting user — excluded from the archive push fan-out. */
301
+ actor?: string;
284
302
  }
285
303
  interface SendConversationMessageInput {
286
304
  fromNumber: string;
@@ -317,6 +335,11 @@ declare class ConversationTasksSubresource {
317
335
  setStatus(input: SetConversationTaskStatusInput): Promise<{
318
336
  ok: true;
319
337
  }>;
338
+ /** Archive or un-archive a task (hides it from My Tasks without deleting). */
339
+ setArchived(input: SetConversationTaskArchivedInput): Promise<{
340
+ ok: true;
341
+ changed: boolean;
342
+ }>;
320
343
  /**
321
344
  * Update task fields (priority, assignee, description, type). Wraps
322
345
  * `PATCH /api/conversations/tasks/{id}` so CommHub doesn't have to
package/dist/index.d.ts CHANGED
@@ -267,6 +267,12 @@ interface SetConversationTaskStatusInput {
267
267
  taskId: string;
268
268
  status: ConversationTaskStatus;
269
269
  resolvedBy?: string;
270
+ /**
271
+ * Email of the user performing the action. Truth excludes the actor
272
+ * from the task-action push fan-out (legacy parity) — omit it and the
273
+ * actor notifies themselves.
274
+ */
275
+ actor?: string;
270
276
  }
271
277
  interface UpdateConversationTaskInput {
272
278
  taskId: string;
@@ -281,6 +287,18 @@ interface UpdateConversationTaskInput {
281
287
  status?: ConversationTaskStatus;
282
288
  assignee?: string;
283
289
  type?: string;
290
+ /**
291
+ * Email of the user performing the action. Truth excludes the actor
292
+ * from the task-action push fan-out (legacy parity) — omit it and the
293
+ * actor notifies themselves.
294
+ */
295
+ actor?: string;
296
+ }
297
+ interface SetConversationTaskArchivedInput {
298
+ taskId: string;
299
+ archived: boolean;
300
+ /** Email of the acting user — excluded from the archive push fan-out. */
301
+ actor?: string;
284
302
  }
285
303
  interface SendConversationMessageInput {
286
304
  fromNumber: string;
@@ -317,6 +335,11 @@ declare class ConversationTasksSubresource {
317
335
  setStatus(input: SetConversationTaskStatusInput): Promise<{
318
336
  ok: true;
319
337
  }>;
338
+ /** Archive or un-archive a task (hides it from My Tasks without deleting). */
339
+ setArchived(input: SetConversationTaskArchivedInput): Promise<{
340
+ ok: true;
341
+ changed: boolean;
342
+ }>;
320
343
  /**
321
344
  * Update task fields (priority, assignee, description, type). Wraps
322
345
  * `PATCH /api/conversations/tasks/{id}` so CommHub doesn't have to
package/dist/index.js CHANGED
@@ -350,10 +350,22 @@ var ConversationTasksSubresource = class {
350
350
  return __async(this, null, function* () {
351
351
  return this.post(
352
352
  `/conversations/tasks/${encodeURIComponent(input.taskId)}/status`,
353
- __spreadValues({
353
+ __spreadValues(__spreadValues({
354
354
  id: input.taskId,
355
355
  status: input.status
356
- }, input.resolvedBy ? { resolvedBy: input.resolvedBy } : {})
356
+ }, input.resolvedBy ? { resolvedBy: input.resolvedBy } : {}), input.actor ? { actor: input.actor } : {})
357
+ );
358
+ });
359
+ }
360
+ /** Archive or un-archive a task (hides it from My Tasks without deleting). */
361
+ setArchived(input) {
362
+ return __async(this, null, function* () {
363
+ return this.post(
364
+ `/conversations/tasks/${encodeURIComponent(input.taskId)}/archive`,
365
+ __spreadValues({
366
+ id: input.taskId,
367
+ archived: input.archived
368
+ }, input.actor ? { actor: input.actor } : {})
357
369
  );
358
370
  });
359
371
  }
@@ -366,12 +378,12 @@ var ConversationTasksSubresource = class {
366
378
  return __async(this, null, function* () {
367
379
  return this.patch(
368
380
  `/conversations/tasks/${encodeURIComponent(input.taskId)}`,
369
- __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({
381
+ __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({
370
382
  id: input.taskId,
371
383
  conversationId: input.conversationId,
372
384
  author: input.author,
373
385
  description: input.description
374
- }, 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 } : {})
386
+ }, 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 } : {})
375
387
  );
376
388
  });
377
389
  }