@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.
- package/CHANGELOG.md +19 -0
- package/README.md +1 -1
- package/dist/ai-sdk.cjs +1 -1
- package/dist/ai-sdk.cjs.map +1 -1
- package/dist/ai-sdk.d.cts +3 -3
- package/dist/ai-sdk.d.ts +3 -3
- package/dist/ai-sdk.js +1 -1
- package/dist/ai-sdk.js.map +1 -1
- package/dist/anthropic.d.cts +4 -4
- package/dist/anthropic.d.ts +4 -4
- package/dist/bedrock.d.cts +4 -4
- package/dist/bedrock.d.ts +4 -4
- package/dist/cli.js +8 -8
- package/dist/cli.js.map +1 -1
- package/dist/{client-DHPuVvHW.d.cts → client-CG257pe3.d.cts} +100 -21
- package/dist/{client-DHPuVvHW.d.ts → client-CG257pe3.d.ts} +100 -21
- package/dist/cloudflare-agents.d.cts +3 -3
- package/dist/cloudflare-agents.d.ts +3 -3
- package/dist/elevenlabs.cjs +3 -3
- package/dist/elevenlabs.cjs.map +1 -1
- package/dist/elevenlabs.d.cts +5 -5
- package/dist/elevenlabs.d.ts +5 -5
- package/dist/elevenlabs.js +3 -3
- package/dist/elevenlabs.js.map +1 -1
- package/dist/genkit.d.cts +3 -3
- package/dist/genkit.d.ts +3 -3
- package/dist/google-adk.cjs +3 -3
- package/dist/google-adk.cjs.map +1 -1
- package/dist/google-adk.d.cts +3 -3
- package/dist/google-adk.d.ts +3 -3
- package/dist/google-adk.js +3 -3
- package/dist/google-adk.js.map +1 -1
- package/dist/google-genai.d.cts +4 -4
- package/dist/google-genai.d.ts +4 -4
- package/dist/index.cjs +8 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/dist/{intercept-ClZ9sP5g.d.cts → intercept-CvbXtKsU.d.cts} +1 -1
- package/dist/{intercept-CJWSHZk9.d.ts → intercept-EqNiV5f2.d.ts} +1 -1
- package/dist/langchain.cjs +1 -1
- package/dist/langchain.cjs.map +1 -1
- package/dist/langchain.d.cts +3 -3
- package/dist/langchain.d.ts +3 -3
- package/dist/langchain.js +1 -1
- package/dist/langchain.js.map +1 -1
- package/dist/livekit.d.cts +3 -3
- package/dist/livekit.d.ts +3 -3
- package/dist/llamaindex.d.cts +3 -3
- package/dist/llamaindex.d.ts +3 -3
- package/dist/mastra.cjs +1 -1
- package/dist/mastra.cjs.map +1 -1
- package/dist/mastra.d.cts +3 -3
- package/dist/mastra.d.ts +3 -3
- package/dist/mastra.js +1 -1
- package/dist/mastra.js.map +1 -1
- package/dist/openai-agents.d.cts +3 -3
- package/dist/openai-agents.d.ts +3 -3
- package/dist/retell.cjs +3 -3
- package/dist/retell.cjs.map +1 -1
- package/dist/retell.d.cts +5 -5
- package/dist/retell.d.ts +5 -5
- package/dist/retell.js +3 -3
- package/dist/retell.js.map +1 -1
- package/dist/{shared-XhiKa4WA.d.ts → shared--OTV6MgP.d.ts} +1 -1
- package/dist/{shared-Cf_vc6TD.d.cts → shared-Dmo7pRV5.d.cts} +1 -1
- package/dist/strands.d.cts +3 -3
- package/dist/strands.d.ts +3 -3
- package/dist/twilio.d.cts +4 -4
- package/dist/twilio.d.ts +4 -4
- package/dist/vapi.cjs +3 -3
- package/dist/vapi.cjs.map +1 -1
- package/dist/vapi.d.cts +5 -5
- package/dist/vapi.d.ts +5 -5
- package/dist/vapi.js +3 -3
- package/dist/vapi.js.map +1 -1
- package/dist/voltagent.d.cts +3 -3
- package/dist/voltagent.d.ts +3 -3
- package/dist/{webhook-CYcSCdKl.d.ts → webhook-Bcgl38Nz.d.ts} +1 -1
- package/dist/{webhook-BI4lYE61.d.cts → webhook-CPc6wZKf.d.cts} +1 -1
- package/dist/whatsapp.d.cts +2 -2
- package/dist/whatsapp.d.ts +2 -2
- package/package.json +1 -1
package/dist/anthropic.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { W as WrapOptions } from './intercept-
|
|
2
|
-
import { S as SessionResolver } from './shared-
|
|
3
|
-
export { A as AgentMemoryOption, P as Proof, a as ProofSource, b as Session, c as attestationProof } from './shared-
|
|
4
|
-
import './client-
|
|
1
|
+
import { W as WrapOptions } from './intercept-CvbXtKsU.cjs';
|
|
2
|
+
import { S as SessionResolver } from './shared-Dmo7pRV5.cjs';
|
|
3
|
+
export { A as AgentMemoryOption, P as Proof, a as ProofSource, b as Session, c as attestationProof } from './shared-Dmo7pRV5.cjs';
|
|
4
|
+
import './client-CG257pe3.cjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Niadra for the Anthropic TypeScript SDK (`@anthropic-ai/sdk`), as `wrap()` is for OpenAI.
|
package/dist/anthropic.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { W as WrapOptions } from './intercept-
|
|
2
|
-
import { S as SessionResolver } from './shared
|
|
3
|
-
export { A as AgentMemoryOption, P as Proof, a as ProofSource, b as Session, c as attestationProof } from './shared
|
|
4
|
-
import './client-
|
|
1
|
+
import { W as WrapOptions } from './intercept-EqNiV5f2.js';
|
|
2
|
+
import { S as SessionResolver } from './shared--OTV6MgP.js';
|
|
3
|
+
export { A as AgentMemoryOption, P as Proof, a as ProofSource, b as Session, c as attestationProof } from './shared--OTV6MgP.js';
|
|
4
|
+
import './client-CG257pe3.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Niadra for the Anthropic TypeScript SDK (`@anthropic-ai/sdk`), as `wrap()` is for OpenAI.
|
package/dist/bedrock.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { f as ModelUsage } from './client-
|
|
2
|
-
import { W as WrapOptions } from './intercept-
|
|
3
|
-
import { S as SessionResolver } from './shared-
|
|
4
|
-
export { A as AgentMemoryOption, P as Proof, a as ProofSource, b as Session, c as attestationProof } from './shared-
|
|
1
|
+
import { f as ModelUsage } from './client-CG257pe3.cjs';
|
|
2
|
+
import { W as WrapOptions } from './intercept-CvbXtKsU.cjs';
|
|
3
|
+
import { S as SessionResolver } from './shared-Dmo7pRV5.cjs';
|
|
4
|
+
export { A as AgentMemoryOption, P as Proof, a as ProofSource, b as Session, c as attestationProof } from './shared-Dmo7pRV5.cjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Niadra for Amazon Bedrock's Converse API (`@aws-sdk/client-bedrock-runtime`), as `wrap()` is for
|
package/dist/bedrock.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { f as ModelUsage } from './client-
|
|
2
|
-
import { W as WrapOptions } from './intercept-
|
|
3
|
-
import { S as SessionResolver } from './shared
|
|
4
|
-
export { A as AgentMemoryOption, P as Proof, a as ProofSource, b as Session, c as attestationProof } from './shared
|
|
1
|
+
import { f as ModelUsage } from './client-CG257pe3.js';
|
|
2
|
+
import { W as WrapOptions } from './intercept-EqNiV5f2.js';
|
|
3
|
+
import { S as SessionResolver } from './shared--OTV6MgP.js';
|
|
4
|
+
export { A as AgentMemoryOption, P as Proof, a as ProofSource, b as Session, c as attestationProof } from './shared--OTV6MgP.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Niadra for Amazon Bedrock's Converse API (`@aws-sdk/client-bedrock-runtime`), as `wrap()` is for
|
package/dist/cli.js
CHANGED
|
@@ -120,7 +120,7 @@ function explain(error) {
|
|
|
120
120
|
var segment = (value) => encodeURIComponent(value);
|
|
121
121
|
function correction(profileId, params) {
|
|
122
122
|
const body = { profile_id: profileId, action: params.action };
|
|
123
|
-
if (params.fact_id) body.fact_id = params.fact_id
|
|
123
|
+
if (params.fact_id) body.fact_id = params.fact_id;
|
|
124
124
|
if (params.open_item_id) body.open_item_id = params.open_item_id;
|
|
125
125
|
if (params.value) body.value = params.value;
|
|
126
126
|
if (params.reason) body.reason = params.reason;
|
|
@@ -143,9 +143,9 @@ var Admin = class {
|
|
|
143
143
|
() => this.port.read("GET", `/v1/profiles/${segment(profileId)}/memory`, void 0, options)
|
|
144
144
|
);
|
|
145
145
|
}
|
|
146
|
-
/** Every value a fact's slot held, oldest first, with who replaced whom. Takes
|
|
146
|
+
/** Every value a fact's slot held, oldest first, with who replaced whom. Takes the fact's bare id. */
|
|
147
147
|
factHistory(profileId, factId, options = {}) {
|
|
148
|
-
const fact = segment(factId
|
|
148
|
+
const fact = segment(factId);
|
|
149
149
|
return this.port.send(
|
|
150
150
|
() => this.port.read("GET", `/v1/profiles/${segment(profileId)}/facts/${fact}/history`, void 0, options)
|
|
151
151
|
);
|
|
@@ -510,7 +510,7 @@ function internalRecord(span, ref, act) {
|
|
|
510
510
|
}
|
|
511
511
|
|
|
512
512
|
// src/version.ts
|
|
513
|
-
var VERSION = "0.
|
|
513
|
+
var VERSION = "0.11.0";
|
|
514
514
|
|
|
515
515
|
// src/transport.ts
|
|
516
516
|
var RETRYABLE_WRITE_STATUS = /* @__PURE__ */ new Set([408, 421, 429, 500, 502, 503, 504]);
|
|
@@ -3145,7 +3145,7 @@ function render(block, binding, call, mode = "advisory") {
|
|
|
3145
3145
|
if (mode === "apply") {
|
|
3146
3146
|
const disputed = new Set(conflicts2.map((c) => c.id));
|
|
3147
3147
|
const allowed = /* @__PURE__ */ new Set([
|
|
3148
|
-
...hard.filter((h) => SAID.has(h.source) && (h.scope === "turn" || h.scope === "session") && !disputed.has(h.id)).map((h) => h.id),
|
|
3148
|
+
...hard.filter((h) => SAID.has(h.source) && (h.scope === "turn" || h.scope === "session" || h.scope === "object") && !disputed.has(h.id)).map((h) => h.id),
|
|
3149
3149
|
...attributes.filter((a) => a.source === "stated" || a.source === "correction").map((a) => a.id)
|
|
3150
3150
|
]);
|
|
3151
3151
|
for (const [param, value] of suggested) {
|
|
@@ -7932,7 +7932,7 @@ var TOOL_DEFINITIONS = [
|
|
|
7932
7932
|
"type": "function",
|
|
7933
7933
|
"function": {
|
|
7934
7934
|
"name": "search_customer_history",
|
|
7935
|
-
"description": "Search everything that already happened with this customer: past conversations, promises, agent actions, orders and invoices. Use it when the customer refers to something earlier or asks whether a problem happened before. Do not call it when the answer is already in the context block, including its 'Hist\xF3rico' line, which already counts recurrences. Returns short items with date, channel and outcome, plus a recurrence count. Open a conversation (`episode
|
|
7935
|
+
"description": "Search everything that already happened with this customer: past conversations, promises, agent actions, orders and invoices. Use it when the customer refers to something earlier or asks whether a problem happened before. Do not call it when the answer is already in the context block, including its 'Hist\xF3rico' line, which already counts recurrences. Returns short items with date, channel and outcome, plus a recurrence count. Open a conversation (kind `episode`) or an object (kind `object`) by its id with open_history_item; the other items are complete as listed.",
|
|
7936
7936
|
"parameters": {
|
|
7937
7937
|
"type": "object",
|
|
7938
7938
|
"properties": {
|
|
@@ -8072,13 +8072,13 @@ var TOOL_DEFINITIONS = [
|
|
|
8072
8072
|
"type": "function",
|
|
8073
8073
|
"function": {
|
|
8074
8074
|
"name": "open_history_item",
|
|
8075
|
-
"description": "Open one conversation (`episode
|
|
8075
|
+
"description": "Open one conversation (kind `episode`) or business object (kind `object`) returned by search_customer_history or get_customer_timeline: what was asked, what was promised and by whom, the outcome and what memory came from it. Actions, events, facts and promises are complete as listed and do not open. Use it only after a search or timeline pointed to the item.",
|
|
8076
8076
|
"parameters": {
|
|
8077
8077
|
"type": "object",
|
|
8078
8078
|
"properties": {
|
|
8079
8079
|
"id": {
|
|
8080
8080
|
"type": "string",
|
|
8081
|
-
"description": "The item id
|
|
8081
|
+
"description": "The item's `id`, as listed."
|
|
8082
8082
|
}
|
|
8083
8083
|
},
|
|
8084
8084
|
"required": [
|