@naturali/sdk 0.36.1 → 0.37.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.cts CHANGED
@@ -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
  */
package/dist/index.d.mts CHANGED
@@ -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
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/sdk",
3
- "version": "0.36.1",
3
+ "version": "0.37.0",
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.0"
41
41
  },
42
42
  "scripts": {
43
43
  "generate": "tsx scripts/generate.ts",