@niadra/sdk 0.11.2 → 0.11.3

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 (62) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/ai-sdk.cjs.map +1 -1
  3. package/dist/ai-sdk.d.cts +3 -3
  4. package/dist/ai-sdk.d.ts +3 -3
  5. package/dist/ai-sdk.js.map +1 -1
  6. package/dist/anthropic.d.cts +4 -4
  7. package/dist/anthropic.d.ts +4 -4
  8. package/dist/bedrock.d.cts +4 -4
  9. package/dist/bedrock.d.ts +4 -4
  10. package/dist/cli.js +1 -1
  11. package/dist/cli.js.map +1 -1
  12. package/dist/{client-C0FxHZgk.d.cts → client-CUbAjxus.d.cts} +15 -3
  13. package/dist/{client-C0FxHZgk.d.ts → client-CUbAjxus.d.ts} +15 -3
  14. package/dist/cloudflare-agents.d.cts +3 -3
  15. package/dist/cloudflare-agents.d.ts +3 -3
  16. package/dist/elevenlabs.d.cts +5 -5
  17. package/dist/elevenlabs.d.ts +5 -5
  18. package/dist/genkit.d.cts +3 -3
  19. package/dist/genkit.d.ts +3 -3
  20. package/dist/google-adk.d.cts +3 -3
  21. package/dist/google-adk.d.ts +3 -3
  22. package/dist/google-genai.d.cts +4 -4
  23. package/dist/google-genai.d.ts +4 -4
  24. package/dist/index.cjs +1 -1
  25. package/dist/index.cjs.map +1 -1
  26. package/dist/index.d.cts +3 -3
  27. package/dist/index.d.ts +3 -3
  28. package/dist/index.js +1 -1
  29. package/dist/index.js.map +1 -1
  30. package/dist/{intercept-BTSgDwBp.d.ts → intercept-Dkzcel9G.d.ts} +1 -1
  31. package/dist/{intercept--jszljK3.d.cts → intercept-Ue3ovmWl.d.cts} +1 -1
  32. package/dist/langchain.cjs.map +1 -1
  33. package/dist/langchain.d.cts +3 -3
  34. package/dist/langchain.d.ts +3 -3
  35. package/dist/langchain.js.map +1 -1
  36. package/dist/livekit.d.cts +3 -3
  37. package/dist/livekit.d.ts +3 -3
  38. package/dist/llamaindex.d.cts +3 -3
  39. package/dist/llamaindex.d.ts +3 -3
  40. package/dist/mastra.cjs.map +1 -1
  41. package/dist/mastra.d.cts +3 -3
  42. package/dist/mastra.d.ts +3 -3
  43. package/dist/mastra.js.map +1 -1
  44. package/dist/openai-agents.d.cts +3 -3
  45. package/dist/openai-agents.d.ts +3 -3
  46. package/dist/retell.d.cts +5 -5
  47. package/dist/retell.d.ts +5 -5
  48. package/dist/{shared-BgH4GypR.d.cts → shared-Bo7qdYgi.d.cts} +1 -1
  49. package/dist/{shared-DNEUVdMh.d.ts → shared-PDIMXzXx.d.ts} +1 -1
  50. package/dist/strands.d.cts +3 -3
  51. package/dist/strands.d.ts +3 -3
  52. package/dist/twilio.d.cts +4 -4
  53. package/dist/twilio.d.ts +4 -4
  54. package/dist/vapi.d.cts +5 -5
  55. package/dist/vapi.d.ts +5 -5
  56. package/dist/voltagent.d.cts +3 -3
  57. package/dist/voltagent.d.ts +3 -3
  58. package/dist/{webhook-CmjN8aRy.d.ts → webhook-BXzrUf4z.d.ts} +1 -1
  59. package/dist/{webhook-JVLjLq-R.d.cts → webhook-CS2V4I6e.d.cts} +1 -1
  60. package/dist/whatsapp.d.cts +2 -2
  61. package/dist/whatsapp.d.ts +2 -2
  62. package/package.json +1 -1
@@ -852,12 +852,22 @@ interface ObjectInstruction {
852
852
  about?: string | null;
853
853
  /** The field of the object's type it is about. */
854
854
  attr?: string | null;
855
+ /**
856
+ * A contact preference (a channel, hours): how the company reaches `only_with`, never a limit on what may
857
+ * be said to them.
858
+ */
859
+ contact?: boolean;
855
860
  expires_at?: string | null;
856
861
  /** The entry of `hard` that carries it for a tool, when `attr` is set. */
857
862
  hard?: string | null;
858
863
  id: string;
859
864
  /** The object it is about. */
860
865
  object?: string | null;
866
+ /**
867
+ * The one person it holds with, as the conversation named them: it binds the readers dealing with that
868
+ * person, not whoever is speaking. With `contact`, the person it is the preference of.
869
+ */
870
+ only_with?: string | null;
861
871
  /** The role on the object of who said it (`owner`, `participant`, `lawyer`). */
862
872
  role?: string | null;
863
873
  said_at: string;
@@ -3573,10 +3583,12 @@ interface DataIssue {
3573
3583
  /**
3574
3584
  * `null_field`, `out_of_vocabulary`, `stale_source`, `invalid_value`: a value an agent's tool showed;
3575
3585
  * `coverage_drop`: a field filled less often than before; `divergence`: two sources of one value disagree;
3576
- * `drift`: the schema a type mirrors changed; `rule_conflict`: two rules decide one thing differently;
3577
- * `type_undeclared`: tools showed objects of a type the space never declared.
3586
+ * `drift`: the schema a type mirrors changed, and a new field is already served to agents as it came (a
3587
+ * note, nothing to fix); `field_held`: a new field that may be personal data or free text, held from agents
3588
+ * until the type declares it; `rule_conflict`: two rules decide one thing differently; `type_undeclared`:
3589
+ * tools showed objects of a type the space never declared.
3578
3590
  */
3579
- kind: "null_field" | "out_of_vocabulary" | "stale_source" | "coverage_drop" | "invalid_value" | "divergence" | "drift" | "rule_conflict" | "type_undeclared";
3591
+ kind: "null_field" | "out_of_vocabulary" | "stale_source" | "coverage_drop" | "invalid_value" | "divergence" | "drift" | "rule_conflict" | "type_undeclared" | "field_held";
3580
3592
  last_seen_at: string;
3581
3593
  object_type?: string | null;
3582
3594
  occurrences: number;
@@ -852,12 +852,22 @@ interface ObjectInstruction {
852
852
  about?: string | null;
853
853
  /** The field of the object's type it is about. */
854
854
  attr?: string | null;
855
+ /**
856
+ * A contact preference (a channel, hours): how the company reaches `only_with`, never a limit on what may
857
+ * be said to them.
858
+ */
859
+ contact?: boolean;
855
860
  expires_at?: string | null;
856
861
  /** The entry of `hard` that carries it for a tool, when `attr` is set. */
857
862
  hard?: string | null;
858
863
  id: string;
859
864
  /** The object it is about. */
860
865
  object?: string | null;
866
+ /**
867
+ * The one person it holds with, as the conversation named them: it binds the readers dealing with that
868
+ * person, not whoever is speaking. With `contact`, the person it is the preference of.
869
+ */
870
+ only_with?: string | null;
861
871
  /** The role on the object of who said it (`owner`, `participant`, `lawyer`). */
862
872
  role?: string | null;
863
873
  said_at: string;
@@ -3573,10 +3583,12 @@ interface DataIssue {
3573
3583
  /**
3574
3584
  * `null_field`, `out_of_vocabulary`, `stale_source`, `invalid_value`: a value an agent's tool showed;
3575
3585
  * `coverage_drop`: a field filled less often than before; `divergence`: two sources of one value disagree;
3576
- * `drift`: the schema a type mirrors changed; `rule_conflict`: two rules decide one thing differently;
3577
- * `type_undeclared`: tools showed objects of a type the space never declared.
3586
+ * `drift`: the schema a type mirrors changed, and a new field is already served to agents as it came (a
3587
+ * note, nothing to fix); `field_held`: a new field that may be personal data or free text, held from agents
3588
+ * until the type declares it; `rule_conflict`: two rules decide one thing differently; `type_undeclared`:
3589
+ * tools showed objects of a type the space never declared.
3578
3590
  */
3579
- kind: "null_field" | "out_of_vocabulary" | "stale_source" | "coverage_drop" | "invalid_value" | "divergence" | "drift" | "rule_conflict" | "type_undeclared";
3591
+ kind: "null_field" | "out_of_vocabulary" | "stale_source" | "coverage_drop" | "invalid_value" | "divergence" | "drift" | "rule_conflict" | "type_undeclared" | "field_held";
3580
3592
  last_seen_at: string;
3581
3593
  object_type?: string | null;
3582
3594
  occurrences: number;
@@ -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-C0FxHZgk.cjs';
2
+ import { c as Niadra, g as Handle, g8 as TurnOptions, f as ModelUsage } from './client-CUbAjxus.cjs';
3
3
  import { NiadraMiddleware } from './ai-sdk.cjs';
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';
4
+ import { b as Session, a as ProofSource, A as AgentMemoryOption } from './shared-Bo7qdYgi.cjs';
5
+ export { P as Proof, c as attestationProof } from './shared-Bo7qdYgi.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-C0FxHZgk.js';
2
+ import { c as Niadra, g as Handle, g8 as TurnOptions, f as ModelUsage } from './client-CUbAjxus.js';
3
3
  import { NiadraMiddleware } from './ai-sdk.js';
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';
4
+ import { b as Session, a as ProofSource, A as AgentMemoryOption } from './shared-PDIMXzXx.js';
5
+ export { P as Proof, c as attestationProof } from './shared-PDIMXzXx.js';
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
- 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';
1
+ import { c as Niadra, g as Handle } from './client-CUbAjxus.cjs';
2
+ import { P as Proof, A as AgentMemoryOption } from './shared-Bo7qdYgi.cjs';
3
+ export { c as attestationProof } from './shared-Bo7qdYgi.cjs';
4
+ import { H as HeadersLike, W as WebhookResponse, C as CallStore } from './webhook-CS2V4I6e.cjs';
5
+ export { a as CallRecord, m as memoryCallStore } from './webhook-CS2V4I6e.cjs';
6
6
 
7
7
  /**
8
8
  * Niadra for the ElevenLabs Agents Platform, on the server side: a phone call reaches ElevenLabs,
@@ -1,8 +1,8 @@
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';
1
+ import { c as Niadra, g as Handle } from './client-CUbAjxus.js';
2
+ import { P as Proof, A as AgentMemoryOption } from './shared-PDIMXzXx.js';
3
+ export { c as attestationProof } from './shared-PDIMXzXx.js';
4
+ import { H as HeadersLike, W as WebhookResponse, C as CallStore } from './webhook-BXzrUf4z.js';
5
+ export { a as CallRecord, m as memoryCallStore } from './webhook-BXzrUf4z.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-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';
3
+ import { f as ModelUsage } from './client-CUbAjxus.cjs';
4
+ import { a as ProofSource, A as AgentMemoryOption, S as SessionResolver, b as Session } from './shared-Bo7qdYgi.cjs';
5
+ export { P as Proof, c as attestationProof } from './shared-Bo7qdYgi.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-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';
3
+ import { f as ModelUsage } from './client-CUbAjxus.js';
4
+ import { a as ProofSource, A as AgentMemoryOption, S as SessionResolver, b as Session } from './shared-PDIMXzXx.js';
5
+ export { P as Proof, c as attestationProof } from './shared-PDIMXzXx.js';
6
6
 
7
7
  /**
8
8
  * Niadra for Genkit (`genkit` 1.x, Firebase Genkit for JavaScript): a model middleware for
@@ -1,7 +1,7 @@
1
1
  import { Context, LlmRequest, LlmResponse, BaseTool, ReadonlyContext } from '@google/adk';
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';
2
+ import { f as ModelUsage } from './client-CUbAjxus.cjs';
3
+ import { b as Session, a as ProofSource, A as AgentMemoryOption } from './shared-Bo7qdYgi.cjs';
4
+ export { P as Proof, c as attestationProof } from './shared-Bo7qdYgi.cjs';
5
5
 
6
6
  /**
7
7
  * Niadra for the Agent Development Kit for TypeScript (`@google/adk` 2.x): model callbacks and the
@@ -1,7 +1,7 @@
1
1
  import { Context, LlmRequest, LlmResponse, BaseTool, ReadonlyContext } from '@google/adk';
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';
2
+ import { f as ModelUsage } from './client-CUbAjxus.js';
3
+ import { b as Session, a as ProofSource, A as AgentMemoryOption } from './shared-PDIMXzXx.js';
4
+ export { P as Proof, c as attestationProof } from './shared-PDIMXzXx.js';
5
5
 
6
6
  /**
7
7
  * Niadra for the Agent Development Kit for TypeScript (`@google/adk` 2.x): model callbacks and the
@@ -1,7 +1,7 @@
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';
1
+ import { f as ModelUsage } from './client-CUbAjxus.cjs';
2
+ import { W as WrapOptions } from './intercept-Ue3ovmWl.cjs';
3
+ import { S as SessionResolver } from './shared-Bo7qdYgi.cjs';
4
+ export { A as AgentMemoryOption, P as Proof, a as ProofSource, b as Session, c as attestationProof } from './shared-Bo7qdYgi.cjs';
5
5
 
6
6
  /**
7
7
  * Niadra for the Google Gen AI SDK (`@google/genai`), as `wrap()` is for OpenAI.
@@ -1,7 +1,7 @@
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';
1
+ import { f as ModelUsage } from './client-CUbAjxus.js';
2
+ import { W as WrapOptions } from './intercept-Dkzcel9G.js';
3
+ import { S as SessionResolver } from './shared-PDIMXzXx.js';
4
+ export { A as AgentMemoryOption, P as Proof, a as ProofSource, b as Session, c as attestationProof } from './shared-PDIMXzXx.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.2";
528
+ var VERSION = "0.11.3";
529
529
 
530
530
  // src/transport.ts
531
531
  var RETRYABLE_WRITE_STATUS = /* @__PURE__ */ new Set([408, 421, 429, 500, 502, 503, 504]);