@terminal3/t3n-sdk 5.26.0 → 5.27.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.ts CHANGED
@@ -2533,8 +2533,20 @@ interface AuditBatch {
2533
2533
  * commit? `false` means the call rolled back or trapped, so an event's
2534
2534
  * `outcome: "success"` in this batch is the contract's *claim*, not a
2535
2535
  * committed fact — filter on this when you need only durable events.
2536
+ * This holds for approval events too (`details.event_type` is
2537
+ * `action.escalated`, `action.reviewed` or `action.executed`): a
2538
+ * rolled-back approver batch can list `action.reviewed` as `success` next
2539
+ * to a failed `action.executed`, so always check `committed`. Events in a
2540
+ * batch share one timestamp and are ordered by their position in `events`.
2536
2541
  */
2537
2542
  committed: boolean;
2543
+ /**
2544
+ * Present when the platform, not a client, started this dispatch, for
2545
+ * example `"hitl-resume:<run id>"` for a call resumed after a human
2546
+ * approval. Absent for a client call. The id after the prefix may itself
2547
+ * contain colons, so do not split on them.
2548
+ */
2549
+ origin?: string;
2538
2550
  events: AuditEvent[];
2539
2551
  }
2540
2552
  /**
@@ -2634,6 +2646,14 @@ interface ActivityEntry {
2634
2646
  * validated one.
2635
2647
  */
2636
2648
  roles?: string[];
2649
+ /**
2650
+ * Present when the node, not the caller, started the call, for example
2651
+ * `"hitl-resume:<run id>"` for the call the node ran as the requester
2652
+ * once an approval was granted. Stamped by the node, never by a contract.
2653
+ * Absent when the caller started the call. The id after the prefix may
2654
+ * itself contain colons, so do not split on them.
2655
+ */
2656
+ origin?: string;
2637
2657
  /**
2638
2658
  * Labels the contract chose for this call — the `custom` object it returned
2639
2659
  * in its response, which the node removes from the response and stores on