@niadra/sdk 0.11.1 → 0.11.2
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 +9 -0
- package/dist/ai-sdk.d.cts +3 -3
- package/dist/ai-sdk.d.ts +3 -3
- 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 +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/{client-CdkRzWz6.d.cts → client-C0FxHZgk.d.cts} +1 -1
- package/dist/{client-CdkRzWz6.d.ts → client-C0FxHZgk.d.ts} +1 -1
- package/dist/cloudflare-agents.d.cts +3 -3
- package/dist/cloudflare-agents.d.ts +3 -3
- package/dist/elevenlabs.d.cts +5 -5
- package/dist/elevenlabs.d.ts +5 -5
- package/dist/genkit.d.cts +3 -3
- package/dist/genkit.d.ts +3 -3
- package/dist/google-adk.d.cts +3 -3
- package/dist/google-adk.d.ts +3 -3
- package/dist/google-genai.d.cts +4 -4
- package/dist/google-genai.d.ts +4 -4
- package/dist/index.cjs +8 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -3
- package/dist/index.d.ts +10 -3
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/dist/{intercept-C_9uxSRY.d.cts → intercept--jszljK3.d.cts} +1 -1
- package/dist/{intercept-tVhq4GNK.d.ts → intercept-BTSgDwBp.d.ts} +1 -1
- package/dist/langchain.d.cts +3 -3
- package/dist/langchain.d.ts +3 -3
- package/dist/livekit.cjs +7 -0
- package/dist/livekit.cjs.map +1 -1
- package/dist/livekit.d.cts +3 -3
- package/dist/livekit.d.ts +3 -3
- package/dist/livekit.js +7 -0
- package/dist/livekit.js.map +1 -1
- package/dist/llamaindex.d.cts +3 -3
- package/dist/llamaindex.d.ts +3 -3
- package/dist/mastra.d.cts +3 -3
- package/dist/mastra.d.ts +3 -3
- package/dist/openai-agents.d.cts +3 -3
- package/dist/openai-agents.d.ts +3 -3
- package/dist/retell.d.cts +5 -5
- package/dist/retell.d.ts +5 -5
- package/dist/{shared-DH_QGnci.d.cts → shared-BgH4GypR.d.cts} +1 -1
- package/dist/{shared-SqZSrkls.d.ts → shared-DNEUVdMh.d.ts} +1 -1
- package/dist/strands.d.cts +3 -3
- package/dist/strands.d.ts +3 -3
- package/dist/twilio.cjs +7 -0
- package/dist/twilio.cjs.map +1 -1
- package/dist/twilio.d.cts +4 -4
- package/dist/twilio.d.ts +4 -4
- package/dist/twilio.js +7 -0
- package/dist/twilio.js.map +1 -1
- package/dist/vapi.d.cts +5 -5
- package/dist/vapi.d.ts +5 -5
- package/dist/voltagent.d.cts +3 -3
- package/dist/voltagent.d.ts +3 -3
- package/dist/{webhook-BNvRGq0g.d.ts → webhook-CmjN8aRy.d.ts} +1 -1
- package/dist/{webhook-DIHeQ7DO.d.cts → webhook-JVLjLq-R.d.cts} +1 -1
- package/dist/whatsapp.cjs +7 -0
- package/dist/whatsapp.cjs.map +1 -1
- package/dist/whatsapp.d.cts +2 -2
- package/dist/whatsapp.d.ts +2 -2
- package/dist/whatsapp.js +7 -0
- package/dist/whatsapp.js.map +1 -1
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ type Speaker = "customer" | "ai_agent" | "human_agent" | "system";
|
|
|
9
9
|
/** `internal` events (notes between agents, system traces) never reach a customer-facing view. */
|
|
10
10
|
type Visibility = "public" | "internal";
|
|
11
11
|
/** Subjects are people by default; accounts and partners are organizations. */
|
|
12
|
-
type SubjectKind = "person" | "account" | "partner";
|
|
12
|
+
type SubjectKind = "person" | "account" | "partner" | "staff";
|
|
13
13
|
/**
|
|
14
14
|
* How a handle identifies a subject. Scoped types (`wa_bsuid`, `system_id`, `gov_id_hmac`,
|
|
15
15
|
* `org_registry_hmac`) need `scope` so the same value in two namespaces never collides.
|
|
@@ -9,7 +9,7 @@ type Speaker = "customer" | "ai_agent" | "human_agent" | "system";
|
|
|
9
9
|
/** `internal` events (notes between agents, system traces) never reach a customer-facing view. */
|
|
10
10
|
type Visibility = "public" | "internal";
|
|
11
11
|
/** Subjects are people by default; accounts and partners are organizations. */
|
|
12
|
-
type SubjectKind = "person" | "account" | "partner";
|
|
12
|
+
type SubjectKind = "person" | "account" | "partner" | "staff";
|
|
13
13
|
/**
|
|
14
14
|
* How a handle identifies a subject. Scoped types (`wa_bsuid`, `system_id`, `gov_id_hmac`,
|
|
15
15
|
* `org_registry_hmac`) need `scope` so the same value in two namespaces never collides.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ToolSet } from 'ai';
|
|
2
|
-
import { c as Niadra, g as Handle, g8 as TurnOptions, f as ModelUsage } from './client-
|
|
2
|
+
import { c as Niadra, g as Handle, g8 as TurnOptions, f as ModelUsage } from './client-C0FxHZgk.cjs';
|
|
3
3
|
import { NiadraMiddleware } from './ai-sdk.cjs';
|
|
4
|
-
import { b as Session, a as ProofSource, A as AgentMemoryOption } from './shared-
|
|
5
|
-
export { P as Proof, c as attestationProof } from './shared-
|
|
4
|
+
import { b as Session, a as ProofSource, A as AgentMemoryOption } from './shared-BgH4GypR.cjs';
|
|
5
|
+
export { P as Proof, c as attestationProof } from './shared-BgH4GypR.cjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Niadra for the Cloudflare Agents SDK (`agents` 0.x): one helper per `Agent` instance (a Durable
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ToolSet } from 'ai';
|
|
2
|
-
import { c as Niadra, g as Handle, g8 as TurnOptions, f as ModelUsage } from './client-
|
|
2
|
+
import { c as Niadra, g as Handle, g8 as TurnOptions, f as ModelUsage } from './client-C0FxHZgk.js';
|
|
3
3
|
import { NiadraMiddleware } from './ai-sdk.js';
|
|
4
|
-
import { b as Session, a as ProofSource, A as AgentMemoryOption } from './shared-
|
|
5
|
-
export { P as Proof, c as attestationProof } from './shared-
|
|
4
|
+
import { b as Session, a as ProofSource, A as AgentMemoryOption } from './shared-DNEUVdMh.js';
|
|
5
|
+
export { P as Proof, c as attestationProof } from './shared-DNEUVdMh.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Niadra for the Cloudflare Agents SDK (`agents` 0.x): one helper per `Agent` instance (a Durable
|
package/dist/elevenlabs.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as Niadra, g as Handle } from './client-
|
|
2
|
-
import { P as Proof, A as AgentMemoryOption } from './shared-
|
|
3
|
-
export { c as attestationProof } from './shared-
|
|
4
|
-
import { H as HeadersLike, W as WebhookResponse, C as CallStore } from './webhook-
|
|
5
|
-
export { a as CallRecord, m as memoryCallStore } from './webhook-
|
|
1
|
+
import { c as Niadra, g as Handle } from './client-C0FxHZgk.cjs';
|
|
2
|
+
import { P as Proof, A as AgentMemoryOption } from './shared-BgH4GypR.cjs';
|
|
3
|
+
export { c as attestationProof } from './shared-BgH4GypR.cjs';
|
|
4
|
+
import { H as HeadersLike, W as WebhookResponse, C as CallStore } from './webhook-JVLjLq-R.cjs';
|
|
5
|
+
export { a as CallRecord, m as memoryCallStore } from './webhook-JVLjLq-R.cjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Niadra for the ElevenLabs Agents Platform, on the server side: a phone call reaches ElevenLabs,
|
package/dist/elevenlabs.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as Niadra, g as Handle } from './client-
|
|
2
|
-
import { P as Proof, A as AgentMemoryOption } from './shared-
|
|
3
|
-
export { c as attestationProof } from './shared-
|
|
4
|
-
import { H as HeadersLike, W as WebhookResponse, C as CallStore } from './webhook-
|
|
5
|
-
export { a as CallRecord, m as memoryCallStore } from './webhook-
|
|
1
|
+
import { c as Niadra, g as Handle } from './client-C0FxHZgk.js';
|
|
2
|
+
import { P as Proof, A as AgentMemoryOption } from './shared-DNEUVdMh.js';
|
|
3
|
+
export { c as attestationProof } from './shared-DNEUVdMh.js';
|
|
4
|
+
import { H as HeadersLike, W as WebhookResponse, C as CallStore } from './webhook-CmjN8aRy.js';
|
|
5
|
+
export { a as CallRecord, m as memoryCallStore } from './webhook-CmjN8aRy.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Niadra for the ElevenLabs Agents Platform, on the server side: a phone call reaches ElevenLabs,
|
package/dist/genkit.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ModelMiddleware } from 'genkit/model';
|
|
2
2
|
import { ToolAction } from 'genkit/tool';
|
|
3
|
-
import { f as ModelUsage } from './client-
|
|
4
|
-
import { a as ProofSource, A as AgentMemoryOption, S as SessionResolver, b as Session } from './shared-
|
|
5
|
-
export { P as Proof, c as attestationProof } from './shared-
|
|
3
|
+
import { f as ModelUsage } from './client-C0FxHZgk.cjs';
|
|
4
|
+
import { a as ProofSource, A as AgentMemoryOption, S as SessionResolver, b as Session } from './shared-BgH4GypR.cjs';
|
|
5
|
+
export { P as Proof, c as attestationProof } from './shared-BgH4GypR.cjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Niadra for Genkit (`genkit` 1.x, Firebase Genkit for JavaScript): a model middleware for
|
package/dist/genkit.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ModelMiddleware } from 'genkit/model';
|
|
2
2
|
import { ToolAction } from 'genkit/tool';
|
|
3
|
-
import { f as ModelUsage } from './client-
|
|
4
|
-
import { a as ProofSource, A as AgentMemoryOption, S as SessionResolver, b as Session } from './shared-
|
|
5
|
-
export { P as Proof, c as attestationProof } from './shared-
|
|
3
|
+
import { f as ModelUsage } from './client-C0FxHZgk.js';
|
|
4
|
+
import { a as ProofSource, A as AgentMemoryOption, S as SessionResolver, b as Session } from './shared-DNEUVdMh.js';
|
|
5
|
+
export { P as Proof, c as attestationProof } from './shared-DNEUVdMh.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Niadra for Genkit (`genkit` 1.x, Firebase Genkit for JavaScript): a model middleware for
|
package/dist/google-adk.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Context, LlmRequest, LlmResponse, BaseTool, ReadonlyContext } from '@google/adk';
|
|
2
|
-
import { f as ModelUsage } from './client-
|
|
3
|
-
import { b as Session, a as ProofSource, A as AgentMemoryOption } from './shared-
|
|
4
|
-
export { P as Proof, c as attestationProof } from './shared-
|
|
2
|
+
import { f as ModelUsage } from './client-C0FxHZgk.cjs';
|
|
3
|
+
import { b as Session, a as ProofSource, A as AgentMemoryOption } from './shared-BgH4GypR.cjs';
|
|
4
|
+
export { P as Proof, c as attestationProof } from './shared-BgH4GypR.cjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Niadra for the Agent Development Kit for TypeScript (`@google/adk` 2.x): model callbacks and the
|
package/dist/google-adk.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Context, LlmRequest, LlmResponse, BaseTool, ReadonlyContext } from '@google/adk';
|
|
2
|
-
import { f as ModelUsage } from './client-
|
|
3
|
-
import { b as Session, a as ProofSource, A as AgentMemoryOption } from './shared-
|
|
4
|
-
export { P as Proof, c as attestationProof } from './shared-
|
|
2
|
+
import { f as ModelUsage } from './client-C0FxHZgk.js';
|
|
3
|
+
import { b as Session, a as ProofSource, A as AgentMemoryOption } from './shared-DNEUVdMh.js';
|
|
4
|
+
export { P as Proof, c as attestationProof } from './shared-DNEUVdMh.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Niadra for the Agent Development Kit for TypeScript (`@google/adk` 2.x): model callbacks and the
|
package/dist/google-genai.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-C0FxHZgk.cjs';
|
|
2
|
+
import { W as WrapOptions } from './intercept--jszljK3.cjs';
|
|
3
|
+
import { S as SessionResolver } from './shared-BgH4GypR.cjs';
|
|
4
|
+
export { A as AgentMemoryOption, P as Proof, a as ProofSource, b as Session, c as attestationProof } from './shared-BgH4GypR.cjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Niadra for the Google Gen AI SDK (`@google/genai`), as `wrap()` is for OpenAI.
|
package/dist/google-genai.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-C0FxHZgk.js';
|
|
2
|
+
import { W as WrapOptions } from './intercept-BTSgDwBp.js';
|
|
3
|
+
import { S as SessionResolver } from './shared-DNEUVdMh.js';
|
|
4
|
+
export { A as AgentMemoryOption, P as Proof, a as ProofSource, b as Session, c as attestationProof } from './shared-DNEUVdMh.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Niadra for the Google Gen AI SDK (`@google/genai`), as `wrap()` is for OpenAI.
|
package/dist/index.cjs
CHANGED
|
@@ -525,7 +525,7 @@ function internalRecord(span, ref, act) {
|
|
|
525
525
|
}
|
|
526
526
|
|
|
527
527
|
// src/version.ts
|
|
528
|
-
var VERSION = "0.11.
|
|
528
|
+
var VERSION = "0.11.2";
|
|
529
529
|
|
|
530
530
|
// src/transport.ts
|
|
531
531
|
var RETRYABLE_WRITE_STATUS = /* @__PURE__ */ new Set([408, 421, 429, 500, 502, 503, 504]);
|
|
@@ -5780,6 +5780,13 @@ var handles = {
|
|
|
5780
5780
|
appUserId: (value, options) => build("app_user_id", value, void 0, options),
|
|
5781
5781
|
/** The id of a person or organization in a system of record; `system` names that system, such as `crm`. */
|
|
5782
5782
|
systemId: (value, system, options) => build("system_id", value, system, options),
|
|
5783
|
+
/**
|
|
5784
|
+
* Someone who works for your company, by the id one of your systems gives them: `staff("U-17", "hr")`.
|
|
5785
|
+
* A conversation with staff is internal: the agent reads what your team may read, and what the person says
|
|
5786
|
+
* is your company's word. A conversation with anyone else is customer-facing, whatever the key. Only a
|
|
5787
|
+
* system id names staff: a phone or an e-mail always names a customer.
|
|
5788
|
+
*/
|
|
5789
|
+
staff: (value, system) => build("system_id", value, system, { subjectKind: "staff" }),
|
|
5783
5790
|
/**
|
|
5784
5791
|
* A person's national document, such as a CPF: `govIdHmac("529.982.247-25", "BR")`. Send the number
|
|
5785
5792
|
* itself, never a hash of it: the server checks its check digits, then keeps only a keyed hash with your
|