@naturali/sdk 0.36.1 → 0.37.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.cjs CHANGED
@@ -1692,7 +1692,7 @@ var Tasks = class {
1692
1692
  /**
1693
1693
  * List the task's moves
1694
1694
  *
1695
- * The card's append-only history, oldest first: every move it made, what kind of actor made it, and what caused it. Returned whole — `next_cursor` is always null.
1695
+ * The card's append-only history, oldest first: every move it made, what kind of principal made it, and what caused it. Returned whole — `next_cursor` is always null.
1696
1696
  *
1697
1697
  */
1698
1698
  static listTaskTransitions(options) {
package/dist/index.d.cts CHANGED
@@ -604,7 +604,7 @@ type BoardDispatch = {
604
604
  };
605
605
  };
606
606
  /**
607
- * One routing rule. Rules are evaluated **in order** and the first match fires its move, as the `automation` actor, through the same single door a person uses. End with `{"when": true, …}` for a catch-all.
607
+ * One routing rule. Rules are evaluated **in order** and the first match fires its move, as the `automation` principal, through the same single door a person uses. End with `{"when": true, …}` for a catch-all.
608
608
  *
609
609
  */
610
610
  type BoardCompletionRule = {
@@ -633,7 +633,7 @@ type BoardOnEnter = {
633
633
  on_complete?: Array<BoardCompletionRule>;
634
634
  /**
635
635
  * Where a card goes when the dispatch fails terminally. Accepts either a declared move, or a column reachable from this one by exactly one declared move (which is resolved to that move — reads report the move name). Omit to leave a failed card in place for a person.
636
- * **Known limitation does not fire for a `tool` column.** The platform underneath reports a failed tool run as a *completed* dispatch, so a tool column's `on_failure` is never reached and its `on_complete` rules are evaluated instead, against the failed run's partial state. A catch-all `{"when": true}` rule on a tool column will therefore fire on failed work — including into a terminal column, which closes the card. Until this is fixed upstream, prefer an explicit rule that tests a field the tool really returns, so a failed run matches nothing and the card parks for a person. Agent columns are unaffected.
636
+ * Fires for both kinds of column. A failed dispatch never reaches `on_complete`, so a catch-all `{"when": true}` rule cannot advance a card on failed work, and the failure leaves no `last_result` behind.
637
637
  *
638
638
  */
639
639
  on_failure?: string | null;
@@ -1896,16 +1896,12 @@ type TaskTransitionRecord = {
1896
1896
  */
1897
1897
  transition: string | null;
1898
1898
  /**
1899
- * What kind of actor made the move. `automation` is a column's own `on_complete` routing or its `on_failure`.
1899
+ * What kind of principal made the move. `automation` is a column's own `on_complete` routing or its `on_failure`.
1900
1900
  * A move made through this API reports `api_key`: every call naturali makes reaches the platform under one service credential, so the record cannot distinguish a person from an integration. `user` is reserved for when it can.
1901
+ * There is no `principal_id` counterpart. For a human or API move it would identify naturali's own service credential, which says nothing about the caller; for an `automation` move what caused the move is already reported by `generation_id` / `orchestration_run_id`.
1901
1902
  *
1902
1903
  */
1903
- actor_kind: 'user' | 'api_key' | 'automation';
1904
- /**
1905
- * For an `automation` move, what caused it (the generation or run). Null otherwise — for a human or API move the underlying value identifies naturali's own service credential, which says nothing about the caller.
1906
- *
1907
- */
1908
- actor_id: string | null;
1904
+ principal_kind: 'user' | 'api_key' | 'automation';
1909
1905
  /**
1910
1906
  * The agent generation that caused the move, when one did.
1911
1907
  */
@@ -6423,7 +6419,7 @@ declare class Tasks {
6423
6419
  /**
6424
6420
  * List the task's moves
6425
6421
  *
6426
- * The card's append-only history, oldest first: every move it made, what kind of actor made it, and what caused it. Returned whole — `next_cursor` is always null.
6422
+ * The card's append-only history, oldest first: every move it made, what kind of principal made it, and what caused it. Returned whole — `next_cursor` is always null.
6427
6423
  *
6428
6424
  */
6429
6425
  static listTaskTransitions<ThrowOnError extends boolean = false>(options: Options<ListTaskTransitionsData, ThrowOnError>): RequestResult<ListTaskTransitionsResponses, ListTaskTransitionsErrors, ThrowOnError>;
package/dist/index.d.mts CHANGED
@@ -604,7 +604,7 @@ type BoardDispatch = {
604
604
  };
605
605
  };
606
606
  /**
607
- * One routing rule. Rules are evaluated **in order** and the first match fires its move, as the `automation` actor, through the same single door a person uses. End with `{"when": true, …}` for a catch-all.
607
+ * One routing rule. Rules are evaluated **in order** and the first match fires its move, as the `automation` principal, through the same single door a person uses. End with `{"when": true, …}` for a catch-all.
608
608
  *
609
609
  */
610
610
  type BoardCompletionRule = {
@@ -633,7 +633,7 @@ type BoardOnEnter = {
633
633
  on_complete?: Array<BoardCompletionRule>;
634
634
  /**
635
635
  * Where a card goes when the dispatch fails terminally. Accepts either a declared move, or a column reachable from this one by exactly one declared move (which is resolved to that move — reads report the move name). Omit to leave a failed card in place for a person.
636
- * **Known limitation does not fire for a `tool` column.** The platform underneath reports a failed tool run as a *completed* dispatch, so a tool column's `on_failure` is never reached and its `on_complete` rules are evaluated instead, against the failed run's partial state. A catch-all `{"when": true}` rule on a tool column will therefore fire on failed work — including into a terminal column, which closes the card. Until this is fixed upstream, prefer an explicit rule that tests a field the tool really returns, so a failed run matches nothing and the card parks for a person. Agent columns are unaffected.
636
+ * Fires for both kinds of column. A failed dispatch never reaches `on_complete`, so a catch-all `{"when": true}` rule cannot advance a card on failed work, and the failure leaves no `last_result` behind.
637
637
  *
638
638
  */
639
639
  on_failure?: string | null;
@@ -1896,16 +1896,12 @@ type TaskTransitionRecord = {
1896
1896
  */
1897
1897
  transition: string | null;
1898
1898
  /**
1899
- * What kind of actor made the move. `automation` is a column's own `on_complete` routing or its `on_failure`.
1899
+ * What kind of principal made the move. `automation` is a column's own `on_complete` routing or its `on_failure`.
1900
1900
  * A move made through this API reports `api_key`: every call naturali makes reaches the platform under one service credential, so the record cannot distinguish a person from an integration. `user` is reserved for when it can.
1901
+ * There is no `principal_id` counterpart. For a human or API move it would identify naturali's own service credential, which says nothing about the caller; for an `automation` move what caused the move is already reported by `generation_id` / `orchestration_run_id`.
1901
1902
  *
1902
1903
  */
1903
- actor_kind: 'user' | 'api_key' | 'automation';
1904
- /**
1905
- * For an `automation` move, what caused it (the generation or run). Null otherwise — for a human or API move the underlying value identifies naturali's own service credential, which says nothing about the caller.
1906
- *
1907
- */
1908
- actor_id: string | null;
1904
+ principal_kind: 'user' | 'api_key' | 'automation';
1909
1905
  /**
1910
1906
  * The agent generation that caused the move, when one did.
1911
1907
  */
@@ -6423,7 +6419,7 @@ declare class Tasks {
6423
6419
  /**
6424
6420
  * List the task's moves
6425
6421
  *
6426
- * The card's append-only history, oldest first: every move it made, what kind of actor made it, and what caused it. Returned whole — `next_cursor` is always null.
6422
+ * The card's append-only history, oldest first: every move it made, what kind of principal made it, and what caused it. Returned whole — `next_cursor` is always null.
6427
6423
  *
6428
6424
  */
6429
6425
  static listTaskTransitions<ThrowOnError extends boolean = false>(options: Options<ListTaskTransitionsData, ThrowOnError>): RequestResult<ListTaskTransitionsResponses, ListTaskTransitionsErrors, ThrowOnError>;
package/dist/index.mjs CHANGED
@@ -1691,7 +1691,7 @@ var Tasks = class {
1691
1691
  /**
1692
1692
  * List the task's moves
1693
1693
  *
1694
- * The card's append-only history, oldest first: every move it made, what kind of actor made it, and what caused it. Returned whole — `next_cursor` is always null.
1694
+ * The card's append-only history, oldest first: every move it made, what kind of principal made it, and what caused it. Returned whole — `next_cursor` is always null.
1695
1695
  *
1696
1696
  */
1697
1697
  static listTaskTransitions(options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/sdk",
3
- "version": "0.36.1",
3
+ "version": "0.37.1",
4
4
  "description": "TypeScript SDK for the naturali.ai API, generated from its OpenAPI specs",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -37,7 +37,7 @@
37
37
  "tsx": "^4.23.1",
38
38
  "typescript": "~6.0.3",
39
39
  "vitest": "^4.1.10",
40
- "@naturali/api": "0.36.1"
40
+ "@naturali/api": "0.37.1"
41
41
  },
42
42
  "scripts": {
43
43
  "generate": "tsx scripts/generate.ts",