@niadra/sdk 0.10.5 → 0.11.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.
Files changed (85) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +1 -1
  3. package/dist/ai-sdk.cjs +1 -1
  4. package/dist/ai-sdk.cjs.map +1 -1
  5. package/dist/ai-sdk.d.cts +3 -3
  6. package/dist/ai-sdk.d.ts +3 -3
  7. package/dist/ai-sdk.js +1 -1
  8. package/dist/ai-sdk.js.map +1 -1
  9. package/dist/anthropic.d.cts +4 -4
  10. package/dist/anthropic.d.ts +4 -4
  11. package/dist/bedrock.d.cts +4 -4
  12. package/dist/bedrock.d.ts +4 -4
  13. package/dist/cli.js +8 -8
  14. package/dist/cli.js.map +1 -1
  15. package/dist/{client-DHPuVvHW.d.cts → client-CG257pe3.d.cts} +100 -21
  16. package/dist/{client-DHPuVvHW.d.ts → client-CG257pe3.d.ts} +100 -21
  17. package/dist/cloudflare-agents.d.cts +3 -3
  18. package/dist/cloudflare-agents.d.ts +3 -3
  19. package/dist/elevenlabs.cjs +3 -3
  20. package/dist/elevenlabs.cjs.map +1 -1
  21. package/dist/elevenlabs.d.cts +5 -5
  22. package/dist/elevenlabs.d.ts +5 -5
  23. package/dist/elevenlabs.js +3 -3
  24. package/dist/elevenlabs.js.map +1 -1
  25. package/dist/genkit.d.cts +3 -3
  26. package/dist/genkit.d.ts +3 -3
  27. package/dist/google-adk.cjs +3 -3
  28. package/dist/google-adk.cjs.map +1 -1
  29. package/dist/google-adk.d.cts +3 -3
  30. package/dist/google-adk.d.ts +3 -3
  31. package/dist/google-adk.js +3 -3
  32. package/dist/google-adk.js.map +1 -1
  33. package/dist/google-genai.d.cts +4 -4
  34. package/dist/google-genai.d.ts +4 -4
  35. package/dist/index.cjs +8 -8
  36. package/dist/index.cjs.map +1 -1
  37. package/dist/index.d.cts +3 -3
  38. package/dist/index.d.ts +3 -3
  39. package/dist/index.js +8 -8
  40. package/dist/index.js.map +1 -1
  41. package/dist/{intercept-ClZ9sP5g.d.cts → intercept-CvbXtKsU.d.cts} +1 -1
  42. package/dist/{intercept-CJWSHZk9.d.ts → intercept-EqNiV5f2.d.ts} +1 -1
  43. package/dist/langchain.cjs +1 -1
  44. package/dist/langchain.cjs.map +1 -1
  45. package/dist/langchain.d.cts +3 -3
  46. package/dist/langchain.d.ts +3 -3
  47. package/dist/langchain.js +1 -1
  48. package/dist/langchain.js.map +1 -1
  49. package/dist/livekit.d.cts +3 -3
  50. package/dist/livekit.d.ts +3 -3
  51. package/dist/llamaindex.d.cts +3 -3
  52. package/dist/llamaindex.d.ts +3 -3
  53. package/dist/mastra.cjs +1 -1
  54. package/dist/mastra.cjs.map +1 -1
  55. package/dist/mastra.d.cts +3 -3
  56. package/dist/mastra.d.ts +3 -3
  57. package/dist/mastra.js +1 -1
  58. package/dist/mastra.js.map +1 -1
  59. package/dist/openai-agents.d.cts +3 -3
  60. package/dist/openai-agents.d.ts +3 -3
  61. package/dist/retell.cjs +3 -3
  62. package/dist/retell.cjs.map +1 -1
  63. package/dist/retell.d.cts +5 -5
  64. package/dist/retell.d.ts +5 -5
  65. package/dist/retell.js +3 -3
  66. package/dist/retell.js.map +1 -1
  67. package/dist/{shared-XhiKa4WA.d.ts → shared--OTV6MgP.d.ts} +1 -1
  68. package/dist/{shared-Cf_vc6TD.d.cts → shared-Dmo7pRV5.d.cts} +1 -1
  69. package/dist/strands.d.cts +3 -3
  70. package/dist/strands.d.ts +3 -3
  71. package/dist/twilio.d.cts +4 -4
  72. package/dist/twilio.d.ts +4 -4
  73. package/dist/vapi.cjs +3 -3
  74. package/dist/vapi.cjs.map +1 -1
  75. package/dist/vapi.d.cts +5 -5
  76. package/dist/vapi.d.ts +5 -5
  77. package/dist/vapi.js +3 -3
  78. package/dist/vapi.js.map +1 -1
  79. package/dist/voltagent.d.cts +3 -3
  80. package/dist/voltagent.d.ts +3 -3
  81. package/dist/{webhook-CYcSCdKl.d.ts → webhook-Bcgl38Nz.d.ts} +1 -1
  82. package/dist/{webhook-BI4lYE61.d.cts → webhook-CPc6wZKf.d.cts} +1 -1
  83. package/dist/whatsapp.d.cts +2 -2
  84. package/dist/whatsapp.d.ts +2 -2
  85. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -4,6 +4,25 @@ All notable changes to this package are documented here. The format follows [Kee
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.11.0] - 2026-10-05
8
+
9
+ The server gives every item one id, a bare UUID, on every surface. This release follows it and removes the
10
+ forms it no longer sends or accepts.
11
+
12
+ ### Changed
13
+
14
+ - History rows (`search()`, `timeline()`, `open()`) carry each row's own id as a bare UUID; `kind` says what
15
+ the row is. `open()` takes the `id` of an `episode` or `object` row as listed, and `OpenedItem.kind` is
16
+ `"episode" | "object"`.
17
+ - `admin.correct()` and `admin.factHistory()` send the fact id as given: a bare UUID. The SDK no longer
18
+ strips a `fact:` prefix; the server refuses a prefixed id. `feedback()` and `closes` take bare ids too.
19
+ - The canonical tool definitions name the kind of an openable row instead of an id prefix.
20
+
21
+ ### Removed
22
+
23
+ - The `merged` open item status (`ItemStatus`), `HistoryItem.merged_into`, and `OpenedItem.status` and
24
+ `merged_into`: the server derives one id per item, so twins are not created and nothing is merged.
25
+
7
26
  ## [0.10.5] - 2026-10-03
8
27
 
9
28
  ### Added
package/README.md CHANGED
@@ -287,7 +287,7 @@ if (first) {
287
287
 
288
288
  `search()` also reports recurrence: how many times the same kind of issue came back, and how it was last resolved.
289
289
 
290
- `filters.when` takes the period in the customer's own words, in Portuguese, English or Spanish (`"semana passada"`, `"last week"`, `"en marzo"`); the answer says in `window` how the server read it, and lists in `ignored` a filter it could not read. Items whose validity ended (an event recorded with `valid_until`, such as an offer valid until Friday) leave reads unless you pass `show_expired: true`. An opened item carries its `versions`, oldest first.
290
+ `filters.when` takes the period in the customer's own words, in Portuguese, English or Spanish (`"semana passada"`, `"last week"`, `"en marzo"`); the answer says in `window` how the server read it, and lists in `ignored` a filter it could not read. Items whose validity ended (an event recorded with `valid_until`, such as an offer valid until Friday) leave reads unless you pass `show_expired: true`. An opened item carries its `versions`, oldest first. Every row's `id` is a bare UUID and `kind` says what it is; `open()` takes the `id` of an `episode` or `object` row, and feedback and `closes` take the `id` of a fact or an open item as listed.
291
291
 
292
292
  The handle, the search and the conversation id go in request bodies, never in a URL: a conversation id may be a phone number or an e-mail. `open()` sends `POST /v1/history/open`, and the tool kit adds the bound customer to it, so the server opens only that customer's items.
293
293
 
package/dist/ai-sdk.cjs CHANGED
@@ -174,7 +174,7 @@ function render(block, binding, call, mode = "advisory") {
174
174
  if (mode === "apply") {
175
175
  const disputed = new Set(conflicts.map((c) => c.id));
176
176
  const allowed = /* @__PURE__ */ new Set([
177
- ...hard.filter((h) => SAID.has(h.source) && (h.scope === "turn" || h.scope === "session") && !disputed.has(h.id)).map((h) => h.id),
177
+ ...hard.filter((h) => SAID.has(h.source) && (h.scope === "turn" || h.scope === "session" || h.scope === "object") && !disputed.has(h.id)).map((h) => h.id),
178
178
  ...attributes.filter((a) => a.source === "stated" || a.source === "correction").map((a) => a.id)
179
179
  ]);
180
180
  for (const [param, value] of suggested) {