@niadra/sdk 0.10.5 → 0.11.1

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 +29 -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 +39 -17
  14. package/dist/cli.js.map +1 -1
  15. package/dist/{client-DHPuVvHW.d.cts → client-CdkRzWz6.d.cts} +111 -21
  16. package/dist/{client-DHPuVvHW.d.ts → client-CdkRzWz6.d.ts} +111 -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 +39 -17
  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 +39 -17
  40. package/dist/index.js.map +1 -1
  41. package/dist/{intercept-ClZ9sP5g.d.cts → intercept-C_9uxSRY.d.cts} +1 -1
  42. package/dist/{intercept-CJWSHZk9.d.ts → intercept-tVhq4GNK.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-Cf_vc6TD.d.cts → shared-DH_QGnci.d.cts} +1 -1
  68. package/dist/{shared-XhiKa4WA.d.ts → shared-SqZSrkls.d.ts} +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-BNvRGq0g.d.ts} +1 -1
  82. package/dist/{webhook-BI4lYE61.d.cts → webhook-DIHeQ7DO.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
@@ -830,13 +830,41 @@ interface HardConstraint {
830
830
  category?: string | null;
831
831
  expires_at?: string | null;
832
832
  id: string;
833
+ /** With `scope: object`, the object the instruction is about. */
834
+ object?: string | null;
833
835
  op: "in" | "not_in" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "between";
834
836
  origin: ConstraintOrigin;
835
837
  relax?: "never" | "ask";
836
- scope: "turn" | "session" | "persistent";
838
+ scope: "turn" | "session" | "persistent" | "object";
837
839
  source: "stated" | "tool_args" | "correction";
838
840
  values: (boolean | number | string)[];
839
841
  }
842
+ /**
843
+ * What someone said must or must not be done about an object the read is about: a task on the object,
844
+ * a read by the object, or a task view of its type. Hard, never relaxed, never inferred; one about a field
845
+ * of the object's type is also in `hard`, where a tool binding applies it.
846
+ */
847
+ interface ObjectInstruction {
848
+ /**
849
+ * Naming no object: the organization (its profile) it is about, a client the read is about, its own reads
850
+ * or a contact's read with `about`.
851
+ */
852
+ about?: string | null;
853
+ /** The field of the object's type it is about. */
854
+ attr?: string | null;
855
+ expires_at?: string | null;
856
+ /** The entry of `hard` that carries it for a tool, when `attr` is set. */
857
+ hard?: string | null;
858
+ id: string;
859
+ /** The object it is about. */
860
+ object?: string | null;
861
+ /** The role on the object of who said it (`owner`, `participant`, `lawyer`). */
862
+ role?: string | null;
863
+ said_at: string;
864
+ strength: "must" | "must_not";
865
+ /** As it was said, short: what a reader honors without a tool binding. */
866
+ text: string;
867
+ }
840
868
  /** The block for one tool, through its bindings (`constraints.v0`, rendering). */
841
869
  interface Rendered {
842
870
  /** Argument values that carry hard constraints and attributes. */
@@ -889,6 +917,8 @@ interface ConstraintsBlock {
889
917
  conflicts?: Conflict$1[];
890
918
  exclude?: string[];
891
919
  hard?: HardConstraint[];
920
+ /** What people said must or must not be done about the objects the read is about. */
921
+ instructions?: ObjectInstruction[];
892
922
  precedence?: ("current_utterance" | "stated_persistent" | "inferred")[];
893
923
  /** What gives way first when a search finds nothing: `soft`, ids. */
894
924
  relaxation_order?: string[];
@@ -1055,9 +1085,11 @@ interface Inference {
1055
1085
  key: string;
1056
1086
  /**
1057
1087
  * `soft_constraint` when the constraints block carries it as a soft entry, `attribute` for the inferred
1058
- * size, `affinity` for a value with evidence and no entry yet, `interest` for an object.
1088
+ * size, `affinity` for a value with evidence and no entry yet, `interest` for an object, `instruction` for
1089
+ * what the subject said must or must not be done about an object (`ref`, the words in `value`): said, not
1090
+ * inferred, and listed so a correction can withdraw it.
1059
1091
  */
1060
- kind: "affinity" | "soft_constraint" | "attribute" | "interest";
1092
+ kind: "affinity" | "soft_constraint" | "attribute" | "interest" | "instruction";
1061
1093
  /**
1062
1094
  * `interactions`, `implicit_negative` (shown often and never engaged with), or why an interest was kept:
1063
1095
  * `engaged`, `feedback`, `watch`.
@@ -1592,6 +1624,53 @@ interface FieldState {
1592
1624
  valid_at?: string | null;
1593
1625
  was?: PreviousValue | null;
1594
1626
  }
1627
+ /** One row of what people and agents said about an object, kept under the person who said it. */
1628
+ interface SaidAbout {
1629
+ attr?: string | null;
1630
+ /**
1631
+ * `shared` reaches every participant of the object, a customer-facing agent included; `internal`, the
1632
+ * internal readers only.
1633
+ */
1634
+ audience: "shared" | "internal";
1635
+ /** The handle of who said it; only in the Console. */
1636
+ by?: string | null;
1637
+ /** Always false: what was said may be reported as said, never stated as the record. */
1638
+ claim_safe?: false;
1639
+ /** The value said differs from the one recorded: a data issue was opened. */
1640
+ diverges?: boolean;
1641
+ due_at?: string | null;
1642
+ expires_at?: string | null;
1643
+ /** The fact, open item or instruction it is. */
1644
+ id: string;
1645
+ item_kind?: "promise" | "dispute" | "request" | null;
1646
+ kind: "observation" | "item" | "instruction";
1647
+ /**
1648
+ * The field of the object's type an observation is about: shown beside the value the system of record
1649
+ * holds, never in its place.
1650
+ */
1651
+ observes?: string | null;
1652
+ overdue?: boolean;
1653
+ predicate?: string | null;
1654
+ /** The value the system of record holds for `observes`. */
1655
+ recorded?: unknown;
1656
+ /** The role of who said it on the object (`owner`, `participant`, `lawyer`). */
1657
+ role?: string | null;
1658
+ said_at: string;
1659
+ strength?: "must" | "must_not" | null;
1660
+ text: string;
1661
+ }
1662
+ /**
1663
+ * What the owner and participants of an object said about it (memory bound to the object), newest
1664
+ * first, at most 20 of each kind, as this reader may read it.
1665
+ */
1666
+ interface ObjectMemoryOut {
1667
+ /** What must or must not be done about the object. */
1668
+ instructions?: SaidAbout[];
1669
+ /** Promises, disputes and requests about the object still open. */
1670
+ items?: SaidAbout[];
1671
+ /** Observations about the object. */
1672
+ said?: SaidAbout[];
1673
+ }
1595
1674
  interface OutcomeState {
1596
1675
  at?: string | null;
1597
1676
  final: boolean;
@@ -1676,6 +1755,8 @@ interface ObjectRead {
1676
1755
  expired_by?: string[];
1677
1756
  fields?: Record<string, FieldState>;
1678
1757
  latches?: Record<string, string>;
1758
+ /** What its owner and participants said about it, in a context read that serves a pack. */
1759
+ memory?: ObjectMemoryOut | null;
1679
1760
  outcome?: OutcomeState | null;
1680
1761
  prohibitions?: string[];
1681
1762
  readings?: Record<string, ReadingResult>;
@@ -2215,10 +2296,9 @@ interface HistoryFilters {
2215
2296
  categories?: string[];
2216
2297
  item_kinds?: HistoryItemKind[];
2217
2298
  /**
2218
- * The open items to list, by status. Unset: the open and overdue ones and the promises kept in
2219
- * the last 7 days. `resolved` reaches every resolved item, with `closed_at` and `closed_by`;
2220
- * `merged`, the twins merged into another item, with `merged_into`. Named, the timeline lists
2221
- * open items too.
2299
+ * The open items to list, by status. Unset or empty: the open and overdue ones and the promises
2300
+ * kept in the last 7 days. `resolved` reaches every resolved item, with `closed_at` and
2301
+ * `closed_by`. Named, the timeline lists open items too.
2222
2302
  */
2223
2303
  item_statuses?: ItemStatus[];
2224
2304
  outcome?: string | null;
@@ -2253,7 +2333,7 @@ interface SearchRequest {
2253
2333
  limit?: number | null;
2254
2334
  }
2255
2335
  /** The open items history lists by status (`HistoryFilters.item_statuses`). */
2256
- type ItemStatus = "open" | "overdue" | "resolved" | "merged";
2336
+ type ItemStatus = "open" | "overdue" | "resolved";
2257
2337
  /** What closed an open item: the same object the `open_item.closed` webhook carried. */
2258
2338
  interface ClosedBy {
2259
2339
  /** `action`, `system_event`, `conversation` or `feedback`. */
@@ -2265,6 +2345,7 @@ interface ClosedBy {
2265
2345
  source_id?: string | null;
2266
2346
  }
2267
2347
  interface HistoryItem {
2348
+ /** The row's own id, a bare UUID; `kind` says what it is. */
2268
2349
  id: string;
2269
2350
  kind: string;
2270
2351
  text: string;
@@ -2280,14 +2361,16 @@ interface HistoryItem {
2280
2361
  object?: ObjectRef | null;
2281
2362
  /** An open item's: the operation that closes it when done on its object. */
2282
2363
  expected_operation?: string | null;
2283
- /** An open item's: `open`, `overdue`, `resolved` or `merged`. */
2364
+ /** An open item's: `open`, `overdue` or `resolved`. */
2284
2365
  status?: string | null;
2285
2366
  /** A resolved item's: when it was closed. */
2286
2367
  closed_at?: string | null;
2287
2368
  /** A resolved item's: what closed it. */
2288
2369
  closed_by?: ClosedBy | null;
2289
- /** A merged item's: the `open_item:<id>` it was merged into, which carries it on. */
2290
- merged_into?: string | null;
2370
+ /** An open item's: a promise someone made, a dispute raised or a request. */
2371
+ item_kind?: "promise" | "dispute" | "request" | null;
2372
+ /** A row about an object: `shared` reaches every participant, a customer-facing agent included; `internal`, internal readers only. */
2373
+ audience?: "shared" | "internal" | null;
2291
2374
  }
2292
2375
  /** The period a `when` filter was read as. */
2293
2376
  interface TimeWindow {
@@ -2375,7 +2458,7 @@ interface Commitment {
2375
2458
  /** One history item opened in full: structured summary, outcome and commitments. */
2376
2459
  interface OpenedItem {
2377
2460
  id: string;
2378
- kind: "episode" | "object" | "open_item";
2461
+ kind: "episode" | "object";
2379
2462
  summary: string;
2380
2463
  requested?: string | null;
2381
2464
  promises: Commitment[];
@@ -2386,13 +2469,6 @@ interface OpenedItem {
2386
2469
  as_of?: string | null;
2387
2470
  /** Earlier and current versions, oldest first, when the item has them. */
2388
2471
  versions?: ItemVersion[];
2389
- /**
2390
- * An open item's status: `open`, `overdue`, `resolved`, or `merged` when the id is a twin of
2391
- * another item, which answers for it from then on.
2392
- */
2393
- status?: string | null;
2394
- /** The item a merged id answers for (`open_item:<id>`); `summary` is that item's. */
2395
- merged_into?: string | null;
2396
2472
  }
2397
2473
  /** System events and agent actions about one object, newest first; never conversation content. */
2398
2474
  interface ObjectTimeline {
@@ -3128,6 +3204,7 @@ interface VoiceInfo {
3128
3204
  * canonical `operation`; the server rejects any other combination.
3129
3205
  */
3130
3206
  interface Closes {
3207
+ /** An open item's `id`, a bare UUID. */
3131
3208
  item_id?: string | null;
3132
3209
  object?: ObjectRef | null;
3133
3210
  operation?: string | null;
@@ -3316,7 +3393,9 @@ interface FeedbackRequest {
3316
3393
  idempotency_key: string;
3317
3394
  subject: Handle;
3318
3395
  action: FeedbackAction;
3396
+ /** A fact's `id`, a bare UUID. */
3319
3397
  fact_id?: string | null;
3398
+ /** The open item `resolve_open_item` closes: its `id`, a bare UUID. */
3320
3399
  open_item_id?: string | null;
3321
3400
  conversation_id?: string | null;
3322
3401
  /** Up to 2,000 characters. */
@@ -3357,7 +3436,7 @@ declare class Admin {
3357
3436
  }>>;
3358
3437
  /** Everything memory holds about one customer, every status, with provenance. Leaves an admin receipt. */
3359
3438
  memory(profileId: string, options?: RequestOptions): Promise<Result<ProfileMemory>>;
3360
- /** Every value a fact's slot held, oldest first, with who replaced whom. Takes `fact:<id>` or the bare id. */
3439
+ /** Every value a fact's slot held, oldest first, with who replaced whom. Takes the fact's bare id. */
3361
3440
  factHistory(profileId: string, factId: string, options?: RequestOptions): Promise<Result<FactHistory>>;
3362
3441
  /** The data subject's correction: retract or correct a fact, or resolve an open item. */
3363
3442
  correct(profileId: string, params: CorrectParams, options?: RequestOptions): Promise<Result<BatchResponse>>;
@@ -6433,6 +6512,14 @@ interface Timeouts {
6433
6512
  * people's turns.
6434
6513
  */
6435
6514
  contextVoice: number;
6515
+ /**
6516
+ * The default budget of the first read of a conversation, task or object in this client, before the round
6517
+ * trip: the API compiles its pack on that read. One right after a customer's first message took 410 ms on
6518
+ * the server (05/10/2026: resolving the customer 153 ms, the pack 120 ms), more than `context`, and the
6519
+ * agent answered without memory. Later reads of the same key find the pack compiled. Only when `context`
6520
+ * is left at its default.
6521
+ */
6522
+ contextFirst: number;
6436
6523
  /**
6437
6524
  * The first read of a voice call, made while the phone rings or the inbound webhook runs
6438
6525
  * (`begin()`, `ready()`). A cold connection costs three round trips (TCP, TLS, the request)
@@ -6783,6 +6870,8 @@ declare class Niadra {
6783
6870
  private voiceStarted;
6784
6871
  /** A probe is on its way: until it ends, default read budgets get `timeouts.connect` on top. */
6785
6872
  private measuring;
6873
+ /** The keys whose read answered in this client, oldest first: a first read gets `timeouts.contextFirst`. */
6874
+ private readonly answeredReads;
6786
6875
  private voiceWarned;
6787
6876
  private readonly strict;
6788
6877
  /** Where the client reports what it swallows in fail-open mode. */
@@ -6843,6 +6932,7 @@ declare class Niadra {
6843
6932
  */
6844
6933
  context(params: ContextParams, options?: ContextOptions): Promise<ContextResult>;
6845
6934
  private readContext;
6935
+ private readAnswered;
6846
6936
  /**
6847
6937
  * The SDK profile of this key's space: the features it turned on, the claim contract and the summarized
6848
6938
  * type registry, from the local cache, read again once `valid_for_s` has passed. When Niadra does not
@@ -7188,4 +7278,4 @@ declare class Niadra {
7188
7278
  private sendBatch;
7189
7279
  }
7190
7280
 
7191
- export { type AssertionOutcome as $, AGENT_MEMORY_TOOL_DEFINITIONS as A, type AgentState as B, type ConstraintsBlock as C, type Conflict as D, AgentStateHandle as E, type AgentStateMeta as F, type AgentStateMetaPage as G, type HardConstraint as H, InternalText as I, type AgentStateReadRequest as J, type AgentStateScope as K, type Logger as L, type Mode as M, NiadraError as N, type ObjectRef as O, type AgentStateWrite as P, type AgentStateWriteResult as Q, Resolvers as R, type SubjectKind as S, type TurnPins as T, type AgentTurnOptions as U, type AnchorEvidence as V, Api as W, type ArmComparison as X, type ArmOutcomes as Y, type AskedAttribute as Z, type AssertionMethod as _, type ClaimRecord as a, type CompanyRule as a$, type AssertionStats as a0, type Attribute as a1, type AttributeEntry as a2, type AttributionReport as a3, type AttributionRow as a4, type AttributionTotal as a5, type Backing as a6, type BackingReport as a7, Sources as a8, type BatchItem as a9, type CheckRequest as aA, type CheckResult as aB, ClaimCheck as aC, type CheckOptions$1 as aD, type ClaimContractSummary as aE, type ClaimEvidence as aF, type ClaimEvidenceRef as aG, type ClaimKind as aH, type ClaimOutputs as aI, type ClaimParams as aJ, type ClaimRelease as aK, type ClaimRequest as aL, type ClaimValue as aM, type ClaimVerdict as aN, type ClaimVia as aO, type Claimed as aP, type ClientOptions as aQ, type ClosedBy as aR, type Closes as aS, type Commitment as aT, type CommitmentDecided as aU, type CommitmentDecidedDetail as aV, type CommitmentMade as aW, type CommitmentMadeDetail as aX, type CommitmentRef as aY, type CommitmentWithdrawn as aZ, type CommitmentWithdrawnDetail as a_, type BatchRequest as aa, type BatchResponse as ab, type BiFile as ac, type BiUpload as ad, type BiUploadRequest as ae, BlobError as af, type BlobStore as ag, type BlockSubject as ah, type BoundArg as ai, type BoundTools as aj, type BudgetBlock as ak, type BudgetCut as al, type BudgetPack as am, type BudgetUse as an, type CacheDirectives as ao, type CacheOptions as ap, CallCapture as aq, type CaseClosed as ar, type CaseOpened as as, type Change as at, type ChangePage as au, type ChangeSinceSeen as av, type ChannelState as aw, type CheckBatchRequest as ax, type CheckBatchResponse as ay, type CheckOptions as az, type ClaimCategory as b, type DerivedState as b$, type Conflict$1 as b0, type ConflictCounts as b1, type ConstraintOrigin as b2, type ConstraintsRequest as b3, type ContactBudget as b4, type ContactBudgetUse as b5, type ContactClaims as b6, type ContactCount as b7, ContactGateway as b8, type ContactKey as b9, type ConversationEndedItem as bA, type ConversationEvent as bB, type ConversationParams as bC, type CoordinationBlock as bD, type CoordinationOverview as bE, type CoordinationReport as bF, type CoordinationReportPage as bG, type CorrectParams as bH, type CorrectionAction as bI, type CorrectionRequest as bJ, type CounterfactualCase as bK, type CounterfactualEngaged as bL, type CounterfactualEngagement as bM, type CounterfactualRunCreate as bN, type CounterfactualRunPage as bO, type CreateAgentNoteRequest as bP, DEFAULT_CACHE as bQ, DEFAULT_QUEUE as bR, DEFAULT_TIMEOUTS as bS, DEFAULT_VOICE as bT, DELETE as bU, type DataIssue as bV, type DataIssuePage as bW, Declarations as bX, type DeclareRequest as bY, type DeclareResult as bZ, type DeliveryPath as b_, type ContactKeys as ba, type ContactMade as bb, type ContactMadeDetail as bc, type VerifyParams$1 as bd, type Refusal as be, type Content as bf, type ContentMarker as bg, type ContentMode as bh, type ContentRelease as bi, type ContentReleaseResult as bj, ContentResolver as bk, type ContextFormat as bl, type ContextOptions as bm, type ContextPack as bn, type ContextParams as bo, type ContextRequest as bp, type ContextSource as bq, type ContextStamp as br, type ContextUseBucket as bs, type ContextUseDimension as bt, type ContextUseEntry as bu, type ContextUseParams as bv, type ContextUseRate as bw, type ContextUseReport as bx, Conversation as by, type ConversationAction as bz, Niadra as c, type InterleavingTotal as c$, type Detect as c0, type DriftChanges as c1, type Effect as c2, type EffectCount as c3, type EffectDeclared as c4, type EffectDetail as c5, type EffectKind as c6, type EffectReserve as c7, type EffectSeen as c8, type EffectSettle as c9, type GuardOptions as cA, type Guarded as cB, type HandleType as cC, type Handoff as cD, type HandoffContext as cE, type HandoffCreate as cF, type HandoffDeclared as cG, type HandoffDetail as cH, type HandoffItem as cI, type HandoffOutcome as cJ, type HandoffPackage as cK, type HandoffParams as cL, type HeartbeatItem as cM, type HistoryFilters as cN, type HistoryItem as cO, type HistoryItemKind as cP, type IdentifyItem as cQ, type IdentifyParams as cR, type IdentityCalibration as cS, type Include as cT, type Inference as cU, type InferenceCorrection as cV, type InferencePage as cW, type IngestStatus as cX, type InterestState as cY, type InterleavingReport as cZ, type InterleavingRow as c_, type EffectState as ca, type EffectStatus as cb, type Engaged as cc, type EpisodeOut as cd, type Erasure as ce, type EventItem as cf, type EventKind as cg, type Evidence as ch, type ExperimentReport as ci, type ExperimentResult as cj, type ExportPackage as ck, FAIL_CLOSED as cl, type FactHistory as cm, type FactOut as cn, type Feature as co, type Feedback as cp, type FeedbackAction as cq, type FeedbackParams as cr, type FeedbackRequest as cs, type Fetched as ct, type FieldCoverage as cu, type FieldState as cv, type ForgetTarget as cw, type GatewayOptions as cx, Guard as cy, type GuardLike as cz, type ContextResponse as d, type PackLayer as d$, type InternalText$1 as d0, type ItemError as d1, type ItemStatus as d2, type ItemVersion as d3, type KeyIdentity as d4, type LeaseDeclared as d5, type LeaseDetail as d6, type LegalHold as d7, type LegalHoldCreate as d8, type LegalHoldRelease as d9, NiadraValidationError as dA, type Notification as dB, type NotificationPage as dC, type ObjectCoverage as dD, type ObjectPush as dE, type ObjectPushRequest as dF, type ObjectPushResponse as dG, type ObjectRead as dH, type ObjectSnapshotResponse as dI, type ObjectTimeline as dJ, type ObjectTimelineParams as dK, type Observation as dL, type OpenItemOut as dM, type OpenItemRequest as dN, type OpenObject as dO, type OpenParams as dP, type OpenedItem as dQ, type Origin as dR, type OutcomeLink as dS, type OutcomePage as dT, type OutcomeRequest as dU, type OutcomeState as dV, type Owner as dW, type OwnershipClaim as dX, type OwnershipCount as dY, PERSONAL_DATA_TOOL_ERROR as dZ, type PackGuard as d_, type Link as da, type LinkMethod as db, type LinkRequest as dc, type LiveTurn as dd, type Lock as de, MAX_BATCH_ITEMS as df, MAX_EVENT_TEXT as dg, MAX_MEDIA_BYTES as dh, type MediaUpload as di, type MediaUploadRequest as dj, type MediaUploadResponse as dk, MemorySeen as dl, NOT_FOUND as dm, type Natures as dn, type Negation as dp, NiadraAPIError as dq, NiadraAbortError as dr, NiadraAuthenticationError as ds, NiadraConfigError as dt, NiadraConnectionError as du, NiadraContactTokenError as dv, NiadraPermissionError as dw, NiadraRateLimitError as dx, NiadraReplayRefusedError as dy, NiadraTimeoutError as dz, type ContextResult as e, type SearchResponse as e$, type PackSection as e0, type PackSlot as e1, type PackSlotDerived as e2, type PackStamp as e3, type PowerRequest as e4, type PowerResult as e5, type Preference as e6, type PrefetchParams as e7, type PrefetchRequest as e8, type Presented as e9, type Rendered as eA, type ReplayAssertion as eB, type ReplayBlocker as eC, type ReplayCase as eD, type ReplayCaseRequest as eE, type ReplayHistoryEntry as eF, type ReplayResult as eG, type RequestOptions as eH, type Resolved as eI, type Resolver as eJ, type Result as eK, type ResultObjects as eL, type ReviewRequest as eM, type ReviewRequestCreate as eN, type ReviewRequestPage as eO, type ReviewResolution as eP, type Scenario as eQ, type ScenarioCreate as eR, type ScenarioFromReport as eS, type ScenarioPage as eT, type ScenarioRun as eU, type ScenarioRunCreate as eV, type ScenarioRunSummary as eW, type ScenarioUpdate as eX, type ScenarioVerdict as eY, type SdkProfile as eZ, type SearchRequest as e_, type PresentedItem as ea, type PreviousValue as eb, type Problem as ec, type ProfileMatch as ed, type ProfileMemory as ee, type PromiseRef as ef, type PromoteRequest as eg, type PromoteResponse as eh, type ProposalStatus as ei, type Provenance as ej, type QueueOptions as ek, type ReadingResult as el, type ReconcileRequest as em, type ReconcileResult as en, type ReconciledLine as eo, type ToolOptions as ep, type Recurrence as eq, type Refetch as er, type RefreshRelease as es, type RefreshReleased as et, type RefreshRequest as eu, type RefreshRequestPage as ev, type Refusal$1 as ew, type ReleaseDetail as ex, type RememberParams as ey, type RememberResult as ez, type ModelUsage as f, type Flag as f$, type Seen as f0, type SeenTokens as f1, type ShadowRequest as f2, type ShadowRun as f3, type Shown as f4, type ShownValue as f5, type SlotChannelRank as f6, type SlotWhy as f7, type SoftConstraint as f8, type SourceCoverage as f9, type TaskEndedItem as fA, type TaskEvent as fB, type TaskLockDeclared as fC, type TaskLockDetail as fD, type TaskParams as fE, type TimeWindow as fF, type TimelineRequest as fG, type TimelineResponse as fH, type Timeouts as fI, type TimerState as fJ, type Timestamp as fK, type Timings as fL, type ToolBinding as fM, type ToolCapabilities as fN, type ToolDefinition as fO, type ToolOptions$1 as fP, type TrackEvent as fQ, type TraitOut as fR, type TurnAgent as fS, type TurnBlob as fT, type TurnBuild as fU, type TurnCall as fV, type TurnCompilerPins as fW, type TurnConstraints as fX, type TurnCoordination as fY, type TurnCost as fZ, type TurnEffect as f_, type Speaker as fa, type SpeakerRef as fb, type StateMode as fc, type StateReadRequest as fd, type StateReadResponse as fe, type StateRef as ff, type StateVerifyRequest as fg, type StateVerifyResponse as fh, type StateView as fi, type StateViewRequest as fj, type StateWrite as fk, type Subject as fl, type SubjectToken as fm, type SubjectTokenRequest as fn, type Suppression as fo, type SuppressionAdded as fp, type SuppressionAddedDetail as fq, type SuppressionLifted as fr, type SuppressionLiftedDetail as fs, type SuppressionPage as ft, type SuppressionSalt as fu, TOOL_DEFINITIONS as fv, TOOL_NAMES as fw, type TargetModel as fx, Task as fy, type TaskAction as fz, type Handle as g, TurnFrame as g0, type TurnIndexEntry as g1, type TurnIndexPage as g2, type TurnKind as g3, type TurnObservation as g4, type TurnOptions as g5, type TurnOutput as g6, type TurnParams as g7, type TurnProvenance as g8, type TurnRead as g9, type VerifyItem as gA, type VerifyMethod as gB, type VerifyParams as gC, type View as gD, type Visibility as gE, type VoiceInfo as gF, type VoiceOptions as gG, type Watch as gH, type WhereExpression as gI, type WorkingState as gJ, type WriteResult as gK, check as gL, consoleLogger as gM, currentCall as gN, currentTurn as gO, guardStream as gP, guardText as gQ, recipientHash as gR, renderLive as gS, renderSuffix as gT, silentLogger as gU, tool as gV, verifyContactToken as gW, violated as gX, type TurnRecord as ga, TurnRecorder as gb, type TurnRecordingOptions as gc, type TurnRecordingSummary as gd, type TurnSearchRequest as ge, type TurnSearchResponse as gf, type TurnSummary as gg, type TurnTokens as gh, type TurnView as gi, type TurnsRequest as gj, type TurnsResponse as gk, type TypeCoverage as gl, type TypeFingerprintRequest as gm, type TypeFingerprintResponse as gn, type UnbackedValue as go, type UnmetDemand as gp, type UnmetDemandPage as gq, type Unwatch as gr, type UploadParams as gs, type ValueEvidence as gt, type ValueKind as gu, type ValueState as gv, type Verdict as gw, type Verification as gx, type VerificationResult as gy, type VerifyCheck as gz, AGENT_MEMORY_TOOL_NAMES as h, type ActionEvent as i, type ActionInfo as j, type Actions as k, Admin as l, type AgentMemoryBlock as m, type AgentMemoryParams as n, type AgentMemoryResult as o, type AgentMemorySearchRequest as p, type AgentMemorySearchResponse as q, type AgentMemorySource as r, shingles as s, type AgentNote as t, type AgentNoteKind as u, type AgentNoteOrigin as v, type AgentNoteProposal as w, type AgentNoteStatus as x, type AgentNoteVisibility as y, AgentSession as z };
7281
+ export { type AssertionOutcome as $, AGENT_MEMORY_TOOL_DEFINITIONS as A, type AgentState as B, type ConstraintsBlock as C, type Conflict as D, AgentStateHandle as E, type AgentStateMeta as F, type AgentStateMetaPage as G, type HardConstraint as H, InternalText as I, type AgentStateReadRequest as J, type AgentStateScope as K, type Logger as L, type Mode as M, NiadraError as N, type ObjectRef as O, type AgentStateWrite as P, type AgentStateWriteResult as Q, Resolvers as R, type SubjectKind as S, type TurnPins as T, type AgentTurnOptions as U, type AnchorEvidence as V, Api as W, type ArmComparison as X, type ArmOutcomes as Y, type AskedAttribute as Z, type AssertionMethod as _, type ClaimRecord as a, type CompanyRule as a$, type AssertionStats as a0, type Attribute as a1, type AttributeEntry as a2, type AttributionReport as a3, type AttributionRow as a4, type AttributionTotal as a5, type Backing as a6, type BackingReport as a7, Sources as a8, type BatchItem as a9, type CheckRequest as aA, type CheckResult as aB, ClaimCheck as aC, type CheckOptions$1 as aD, type ClaimContractSummary as aE, type ClaimEvidence as aF, type ClaimEvidenceRef as aG, type ClaimKind as aH, type ClaimOutputs as aI, type ClaimParams as aJ, type ClaimRelease as aK, type ClaimRequest as aL, type ClaimValue as aM, type ClaimVerdict as aN, type ClaimVia as aO, type Claimed as aP, type ClientOptions as aQ, type ClosedBy as aR, type Closes as aS, type Commitment as aT, type CommitmentDecided as aU, type CommitmentDecidedDetail as aV, type CommitmentMade as aW, type CommitmentMadeDetail as aX, type CommitmentRef as aY, type CommitmentWithdrawn as aZ, type CommitmentWithdrawnDetail as a_, type BatchRequest as aa, type BatchResponse as ab, type BiFile as ac, type BiUpload as ad, type BiUploadRequest as ae, BlobError as af, type BlobStore as ag, type BlockSubject as ah, type BoundArg as ai, type BoundTools as aj, type BudgetBlock as ak, type BudgetCut as al, type BudgetPack as am, type BudgetUse as an, type CacheDirectives as ao, type CacheOptions as ap, CallCapture as aq, type CaseClosed as ar, type CaseOpened as as, type Change as at, type ChangePage as au, type ChangeSinceSeen as av, type ChannelState as aw, type CheckBatchRequest as ax, type CheckBatchResponse as ay, type CheckOptions as az, type ClaimCategory as b, type DerivedState as b$, type Conflict$1 as b0, type ConflictCounts as b1, type ConstraintOrigin as b2, type ConstraintsRequest as b3, type ContactBudget as b4, type ContactBudgetUse as b5, type ContactClaims as b6, type ContactCount as b7, ContactGateway as b8, type ContactKey as b9, type ConversationEndedItem as bA, type ConversationEvent as bB, type ConversationParams as bC, type CoordinationBlock as bD, type CoordinationOverview as bE, type CoordinationReport as bF, type CoordinationReportPage as bG, type CorrectParams as bH, type CorrectionAction as bI, type CorrectionRequest as bJ, type CounterfactualCase as bK, type CounterfactualEngaged as bL, type CounterfactualEngagement as bM, type CounterfactualRunCreate as bN, type CounterfactualRunPage as bO, type CreateAgentNoteRequest as bP, DEFAULT_CACHE as bQ, DEFAULT_QUEUE as bR, DEFAULT_TIMEOUTS as bS, DEFAULT_VOICE as bT, DELETE as bU, type DataIssue as bV, type DataIssuePage as bW, Declarations as bX, type DeclareRequest as bY, type DeclareResult as bZ, type DeliveryPath as b_, type ContactKeys as ba, type ContactMade as bb, type ContactMadeDetail as bc, type VerifyParams$1 as bd, type Refusal as be, type Content as bf, type ContentMarker as bg, type ContentMode as bh, type ContentRelease as bi, type ContentReleaseResult as bj, ContentResolver as bk, type ContextFormat as bl, type ContextOptions as bm, type ContextPack as bn, type ContextParams as bo, type ContextRequest as bp, type ContextSource as bq, type ContextStamp as br, type ContextUseBucket as bs, type ContextUseDimension as bt, type ContextUseEntry as bu, type ContextUseParams as bv, type ContextUseRate as bw, type ContextUseReport as bx, Conversation as by, type ConversationAction as bz, Niadra as c, type InterleavingTotal as c$, type Detect as c0, type DriftChanges as c1, type Effect as c2, type EffectCount as c3, type EffectDeclared as c4, type EffectDetail as c5, type EffectKind as c6, type EffectReserve as c7, type EffectSeen as c8, type EffectSettle as c9, type GuardOptions as cA, type Guarded as cB, type HandleType as cC, type Handoff as cD, type HandoffContext as cE, type HandoffCreate as cF, type HandoffDeclared as cG, type HandoffDetail as cH, type HandoffItem as cI, type HandoffOutcome as cJ, type HandoffPackage as cK, type HandoffParams as cL, type HeartbeatItem as cM, type HistoryFilters as cN, type HistoryItem as cO, type HistoryItemKind as cP, type IdentifyItem as cQ, type IdentifyParams as cR, type IdentityCalibration as cS, type Include as cT, type Inference as cU, type InferenceCorrection as cV, type InferencePage as cW, type IngestStatus as cX, type InterestState as cY, type InterleavingReport as cZ, type InterleavingRow as c_, type EffectState as ca, type EffectStatus as cb, type Engaged as cc, type EpisodeOut as cd, type Erasure as ce, type EventItem as cf, type EventKind as cg, type Evidence as ch, type ExperimentReport as ci, type ExperimentResult as cj, type ExportPackage as ck, FAIL_CLOSED as cl, type FactHistory as cm, type FactOut as cn, type Feature as co, type Feedback as cp, type FeedbackAction as cq, type FeedbackParams as cr, type FeedbackRequest as cs, type Fetched as ct, type FieldCoverage as cu, type FieldState as cv, type ForgetTarget as cw, type GatewayOptions as cx, Guard as cy, type GuardLike as cz, type ContextResponse as d, PERSONAL_DATA_TOOL_ERROR as d$, type InternalText$1 as d0, type ItemError as d1, type ItemStatus as d2, type ItemVersion as d3, type KeyIdentity as d4, type LeaseDeclared as d5, type LeaseDetail as d6, type LegalHold as d7, type LegalHoldCreate as d8, type LegalHoldRelease as d9, NiadraValidationError as dA, type Notification as dB, type NotificationPage as dC, type ObjectCoverage as dD, type ObjectInstruction as dE, type ObjectMemoryOut as dF, type ObjectPush as dG, type ObjectPushRequest as dH, type ObjectPushResponse as dI, type ObjectRead as dJ, type ObjectSnapshotResponse as dK, type ObjectTimeline as dL, type ObjectTimelineParams as dM, type Observation as dN, type OpenItemOut as dO, type OpenItemRequest as dP, type OpenObject as dQ, type OpenParams as dR, type OpenedItem as dS, type Origin as dT, type OutcomeLink as dU, type OutcomePage as dV, type OutcomeRequest as dW, type OutcomeState as dX, type Owner as dY, type OwnershipClaim as dZ, type OwnershipCount as d_, type Link as da, type LinkMethod as db, type LinkRequest as dc, type LiveTurn as dd, type Lock as de, MAX_BATCH_ITEMS as df, MAX_EVENT_TEXT as dg, MAX_MEDIA_BYTES as dh, type MediaUpload as di, type MediaUploadRequest as dj, type MediaUploadResponse as dk, MemorySeen as dl, NOT_FOUND as dm, type Natures as dn, type Negation as dp, NiadraAPIError as dq, NiadraAbortError as dr, NiadraAuthenticationError as ds, NiadraConfigError as dt, NiadraConnectionError as du, NiadraContactTokenError as dv, NiadraPermissionError as dw, NiadraRateLimitError as dx, NiadraReplayRefusedError as dy, NiadraTimeoutError as dz, type ContextResult as e, type ScenarioVerdict as e$, type PackGuard as e0, type PackLayer as e1, type PackSection as e2, type PackSlot as e3, type PackSlotDerived as e4, type PackStamp as e5, type PowerRequest as e6, type PowerResult as e7, type Preference as e8, type PrefetchParams as e9, type RememberParams as eA, type RememberResult as eB, type Rendered as eC, type ReplayAssertion as eD, type ReplayBlocker as eE, type ReplayCase as eF, type ReplayCaseRequest as eG, type ReplayHistoryEntry as eH, type ReplayResult as eI, type RequestOptions as eJ, type Resolved as eK, type Resolver as eL, type Result as eM, type ResultObjects as eN, type ReviewRequest as eO, type ReviewRequestCreate as eP, type ReviewRequestPage as eQ, type ReviewResolution as eR, type SaidAbout as eS, type Scenario as eT, type ScenarioCreate as eU, type ScenarioFromReport as eV, type ScenarioPage as eW, type ScenarioRun as eX, type ScenarioRunCreate as eY, type ScenarioRunSummary as eZ, type ScenarioUpdate as e_, type PrefetchRequest as ea, type Presented as eb, type PresentedItem as ec, type PreviousValue as ed, type Problem as ee, type ProfileMatch as ef, type ProfileMemory as eg, type PromiseRef as eh, type PromoteRequest as ei, type PromoteResponse as ej, type ProposalStatus as ek, type Provenance as el, type QueueOptions as em, type ReadingResult as en, type ReconcileRequest as eo, type ReconcileResult as ep, type ReconciledLine as eq, type ToolOptions as er, type Recurrence as es, type Refetch as et, type RefreshRelease as eu, type RefreshReleased as ev, type RefreshRequest as ew, type RefreshRequestPage as ex, type Refusal$1 as ey, type ReleaseDetail as ez, type ModelUsage as f, type TurnCoordination as f$, type SdkProfile as f0, type SearchRequest as f1, type SearchResponse as f2, type Seen as f3, type SeenTokens as f4, type ShadowRequest as f5, type ShadowRun as f6, type Shown as f7, type ShownValue as f8, type SlotChannelRank as f9, type TargetModel as fA, Task as fB, type TaskAction as fC, type TaskEndedItem as fD, type TaskEvent as fE, type TaskLockDeclared as fF, type TaskLockDetail as fG, type TaskParams as fH, type TimeWindow as fI, type TimelineRequest as fJ, type TimelineResponse as fK, type Timeouts as fL, type TimerState as fM, type Timestamp as fN, type Timings as fO, type ToolBinding as fP, type ToolCapabilities as fQ, type ToolDefinition as fR, type ToolOptions$1 as fS, type TrackEvent as fT, type TraitOut as fU, type TurnAgent as fV, type TurnBlob as fW, type TurnBuild as fX, type TurnCall as fY, type TurnCompilerPins as fZ, type TurnConstraints as f_, type SlotWhy as fa, type SoftConstraint as fb, type SourceCoverage as fc, type Speaker as fd, type SpeakerRef as fe, type StateMode as ff, type StateReadRequest as fg, type StateReadResponse as fh, type StateRef as fi, type StateVerifyRequest as fj, type StateVerifyResponse as fk, type StateView as fl, type StateViewRequest as fm, type StateWrite as fn, type Subject as fo, type SubjectToken as fp, type SubjectTokenRequest as fq, type Suppression as fr, type SuppressionAdded as fs, type SuppressionAddedDetail as ft, type SuppressionLifted as fu, type SuppressionLiftedDetail as fv, type SuppressionPage as fw, type SuppressionSalt as fx, TOOL_DEFINITIONS as fy, TOOL_NAMES as fz, type Handle as g, type TurnCost as g0, type TurnEffect as g1, type Flag as g2, TurnFrame as g3, type TurnIndexEntry as g4, type TurnIndexPage as g5, type TurnKind as g6, type TurnObservation as g7, type TurnOptions as g8, type TurnOutput as g9, type Verification as gA, type VerificationResult as gB, type VerifyCheck as gC, type VerifyItem as gD, type VerifyMethod as gE, type VerifyParams as gF, type View as gG, type Visibility as gH, type VoiceInfo as gI, type VoiceOptions as gJ, type Watch as gK, type WhereExpression as gL, type WorkingState as gM, type WriteResult as gN, check as gO, consoleLogger as gP, currentCall as gQ, currentTurn as gR, guardStream as gS, guardText as gT, recipientHash as gU, renderLive as gV, renderSuffix as gW, silentLogger as gX, tool as gY, verifyContactToken as gZ, violated as g_, type TurnParams as ga, type TurnProvenance as gb, type TurnRead as gc, type TurnRecord as gd, TurnRecorder as ge, type TurnRecordingOptions as gf, type TurnRecordingSummary as gg, type TurnSearchRequest as gh, type TurnSearchResponse as gi, type TurnSummary as gj, type TurnTokens as gk, type TurnView as gl, type TurnsRequest as gm, type TurnsResponse as gn, type TypeCoverage as go, type TypeFingerprintRequest as gp, type TypeFingerprintResponse as gq, type UnbackedValue as gr, type UnmetDemand as gs, type UnmetDemandPage as gt, type Unwatch as gu, type UploadParams as gv, type ValueEvidence as gw, type ValueKind as gx, type ValueState as gy, type Verdict as gz, AGENT_MEMORY_TOOL_NAMES as h, type ActionEvent as i, type ActionInfo as j, type Actions as k, Admin as l, type AgentMemoryBlock as m, type AgentMemoryParams as n, type AgentMemoryResult as o, type AgentMemorySearchRequest as p, type AgentMemorySearchResponse as q, type AgentMemorySource as r, shingles as s, type AgentNote as t, type AgentNoteKind as u, type AgentNoteOrigin as v, type AgentNoteProposal as w, type AgentNoteStatus as x, type AgentNoteVisibility as y, AgentSession as z };
@@ -830,13 +830,41 @@ interface HardConstraint {
830
830
  category?: string | null;
831
831
  expires_at?: string | null;
832
832
  id: string;
833
+ /** With `scope: object`, the object the instruction is about. */
834
+ object?: string | null;
833
835
  op: "in" | "not_in" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "between";
834
836
  origin: ConstraintOrigin;
835
837
  relax?: "never" | "ask";
836
- scope: "turn" | "session" | "persistent";
838
+ scope: "turn" | "session" | "persistent" | "object";
837
839
  source: "stated" | "tool_args" | "correction";
838
840
  values: (boolean | number | string)[];
839
841
  }
842
+ /**
843
+ * What someone said must or must not be done about an object the read is about: a task on the object,
844
+ * a read by the object, or a task view of its type. Hard, never relaxed, never inferred; one about a field
845
+ * of the object's type is also in `hard`, where a tool binding applies it.
846
+ */
847
+ interface ObjectInstruction {
848
+ /**
849
+ * Naming no object: the organization (its profile) it is about, a client the read is about, its own reads
850
+ * or a contact's read with `about`.
851
+ */
852
+ about?: string | null;
853
+ /** The field of the object's type it is about. */
854
+ attr?: string | null;
855
+ expires_at?: string | null;
856
+ /** The entry of `hard` that carries it for a tool, when `attr` is set. */
857
+ hard?: string | null;
858
+ id: string;
859
+ /** The object it is about. */
860
+ object?: string | null;
861
+ /** The role on the object of who said it (`owner`, `participant`, `lawyer`). */
862
+ role?: string | null;
863
+ said_at: string;
864
+ strength: "must" | "must_not";
865
+ /** As it was said, short: what a reader honors without a tool binding. */
866
+ text: string;
867
+ }
840
868
  /** The block for one tool, through its bindings (`constraints.v0`, rendering). */
841
869
  interface Rendered {
842
870
  /** Argument values that carry hard constraints and attributes. */
@@ -889,6 +917,8 @@ interface ConstraintsBlock {
889
917
  conflicts?: Conflict$1[];
890
918
  exclude?: string[];
891
919
  hard?: HardConstraint[];
920
+ /** What people said must or must not be done about the objects the read is about. */
921
+ instructions?: ObjectInstruction[];
892
922
  precedence?: ("current_utterance" | "stated_persistent" | "inferred")[];
893
923
  /** What gives way first when a search finds nothing: `soft`, ids. */
894
924
  relaxation_order?: string[];
@@ -1055,9 +1085,11 @@ interface Inference {
1055
1085
  key: string;
1056
1086
  /**
1057
1087
  * `soft_constraint` when the constraints block carries it as a soft entry, `attribute` for the inferred
1058
- * size, `affinity` for a value with evidence and no entry yet, `interest` for an object.
1088
+ * size, `affinity` for a value with evidence and no entry yet, `interest` for an object, `instruction` for
1089
+ * what the subject said must or must not be done about an object (`ref`, the words in `value`): said, not
1090
+ * inferred, and listed so a correction can withdraw it.
1059
1091
  */
1060
- kind: "affinity" | "soft_constraint" | "attribute" | "interest";
1092
+ kind: "affinity" | "soft_constraint" | "attribute" | "interest" | "instruction";
1061
1093
  /**
1062
1094
  * `interactions`, `implicit_negative` (shown often and never engaged with), or why an interest was kept:
1063
1095
  * `engaged`, `feedback`, `watch`.
@@ -1592,6 +1624,53 @@ interface FieldState {
1592
1624
  valid_at?: string | null;
1593
1625
  was?: PreviousValue | null;
1594
1626
  }
1627
+ /** One row of what people and agents said about an object, kept under the person who said it. */
1628
+ interface SaidAbout {
1629
+ attr?: string | null;
1630
+ /**
1631
+ * `shared` reaches every participant of the object, a customer-facing agent included; `internal`, the
1632
+ * internal readers only.
1633
+ */
1634
+ audience: "shared" | "internal";
1635
+ /** The handle of who said it; only in the Console. */
1636
+ by?: string | null;
1637
+ /** Always false: what was said may be reported as said, never stated as the record. */
1638
+ claim_safe?: false;
1639
+ /** The value said differs from the one recorded: a data issue was opened. */
1640
+ diverges?: boolean;
1641
+ due_at?: string | null;
1642
+ expires_at?: string | null;
1643
+ /** The fact, open item or instruction it is. */
1644
+ id: string;
1645
+ item_kind?: "promise" | "dispute" | "request" | null;
1646
+ kind: "observation" | "item" | "instruction";
1647
+ /**
1648
+ * The field of the object's type an observation is about: shown beside the value the system of record
1649
+ * holds, never in its place.
1650
+ */
1651
+ observes?: string | null;
1652
+ overdue?: boolean;
1653
+ predicate?: string | null;
1654
+ /** The value the system of record holds for `observes`. */
1655
+ recorded?: unknown;
1656
+ /** The role of who said it on the object (`owner`, `participant`, `lawyer`). */
1657
+ role?: string | null;
1658
+ said_at: string;
1659
+ strength?: "must" | "must_not" | null;
1660
+ text: string;
1661
+ }
1662
+ /**
1663
+ * What the owner and participants of an object said about it (memory bound to the object), newest
1664
+ * first, at most 20 of each kind, as this reader may read it.
1665
+ */
1666
+ interface ObjectMemoryOut {
1667
+ /** What must or must not be done about the object. */
1668
+ instructions?: SaidAbout[];
1669
+ /** Promises, disputes and requests about the object still open. */
1670
+ items?: SaidAbout[];
1671
+ /** Observations about the object. */
1672
+ said?: SaidAbout[];
1673
+ }
1595
1674
  interface OutcomeState {
1596
1675
  at?: string | null;
1597
1676
  final: boolean;
@@ -1676,6 +1755,8 @@ interface ObjectRead {
1676
1755
  expired_by?: string[];
1677
1756
  fields?: Record<string, FieldState>;
1678
1757
  latches?: Record<string, string>;
1758
+ /** What its owner and participants said about it, in a context read that serves a pack. */
1759
+ memory?: ObjectMemoryOut | null;
1679
1760
  outcome?: OutcomeState | null;
1680
1761
  prohibitions?: string[];
1681
1762
  readings?: Record<string, ReadingResult>;
@@ -2215,10 +2296,9 @@ interface HistoryFilters {
2215
2296
  categories?: string[];
2216
2297
  item_kinds?: HistoryItemKind[];
2217
2298
  /**
2218
- * The open items to list, by status. Unset: the open and overdue ones and the promises kept in
2219
- * the last 7 days. `resolved` reaches every resolved item, with `closed_at` and `closed_by`;
2220
- * `merged`, the twins merged into another item, with `merged_into`. Named, the timeline lists
2221
- * open items too.
2299
+ * The open items to list, by status. Unset or empty: the open and overdue ones and the promises
2300
+ * kept in the last 7 days. `resolved` reaches every resolved item, with `closed_at` and
2301
+ * `closed_by`. Named, the timeline lists open items too.
2222
2302
  */
2223
2303
  item_statuses?: ItemStatus[];
2224
2304
  outcome?: string | null;
@@ -2253,7 +2333,7 @@ interface SearchRequest {
2253
2333
  limit?: number | null;
2254
2334
  }
2255
2335
  /** The open items history lists by status (`HistoryFilters.item_statuses`). */
2256
- type ItemStatus = "open" | "overdue" | "resolved" | "merged";
2336
+ type ItemStatus = "open" | "overdue" | "resolved";
2257
2337
  /** What closed an open item: the same object the `open_item.closed` webhook carried. */
2258
2338
  interface ClosedBy {
2259
2339
  /** `action`, `system_event`, `conversation` or `feedback`. */
@@ -2265,6 +2345,7 @@ interface ClosedBy {
2265
2345
  source_id?: string | null;
2266
2346
  }
2267
2347
  interface HistoryItem {
2348
+ /** The row's own id, a bare UUID; `kind` says what it is. */
2268
2349
  id: string;
2269
2350
  kind: string;
2270
2351
  text: string;
@@ -2280,14 +2361,16 @@ interface HistoryItem {
2280
2361
  object?: ObjectRef | null;
2281
2362
  /** An open item's: the operation that closes it when done on its object. */
2282
2363
  expected_operation?: string | null;
2283
- /** An open item's: `open`, `overdue`, `resolved` or `merged`. */
2364
+ /** An open item's: `open`, `overdue` or `resolved`. */
2284
2365
  status?: string | null;
2285
2366
  /** A resolved item's: when it was closed. */
2286
2367
  closed_at?: string | null;
2287
2368
  /** A resolved item's: what closed it. */
2288
2369
  closed_by?: ClosedBy | null;
2289
- /** A merged item's: the `open_item:<id>` it was merged into, which carries it on. */
2290
- merged_into?: string | null;
2370
+ /** An open item's: a promise someone made, a dispute raised or a request. */
2371
+ item_kind?: "promise" | "dispute" | "request" | null;
2372
+ /** A row about an object: `shared` reaches every participant, a customer-facing agent included; `internal`, internal readers only. */
2373
+ audience?: "shared" | "internal" | null;
2291
2374
  }
2292
2375
  /** The period a `when` filter was read as. */
2293
2376
  interface TimeWindow {
@@ -2375,7 +2458,7 @@ interface Commitment {
2375
2458
  /** One history item opened in full: structured summary, outcome and commitments. */
2376
2459
  interface OpenedItem {
2377
2460
  id: string;
2378
- kind: "episode" | "object" | "open_item";
2461
+ kind: "episode" | "object";
2379
2462
  summary: string;
2380
2463
  requested?: string | null;
2381
2464
  promises: Commitment[];
@@ -2386,13 +2469,6 @@ interface OpenedItem {
2386
2469
  as_of?: string | null;
2387
2470
  /** Earlier and current versions, oldest first, when the item has them. */
2388
2471
  versions?: ItemVersion[];
2389
- /**
2390
- * An open item's status: `open`, `overdue`, `resolved`, or `merged` when the id is a twin of
2391
- * another item, which answers for it from then on.
2392
- */
2393
- status?: string | null;
2394
- /** The item a merged id answers for (`open_item:<id>`); `summary` is that item's. */
2395
- merged_into?: string | null;
2396
2472
  }
2397
2473
  /** System events and agent actions about one object, newest first; never conversation content. */
2398
2474
  interface ObjectTimeline {
@@ -3128,6 +3204,7 @@ interface VoiceInfo {
3128
3204
  * canonical `operation`; the server rejects any other combination.
3129
3205
  */
3130
3206
  interface Closes {
3207
+ /** An open item's `id`, a bare UUID. */
3131
3208
  item_id?: string | null;
3132
3209
  object?: ObjectRef | null;
3133
3210
  operation?: string | null;
@@ -3316,7 +3393,9 @@ interface FeedbackRequest {
3316
3393
  idempotency_key: string;
3317
3394
  subject: Handle;
3318
3395
  action: FeedbackAction;
3396
+ /** A fact's `id`, a bare UUID. */
3319
3397
  fact_id?: string | null;
3398
+ /** The open item `resolve_open_item` closes: its `id`, a bare UUID. */
3320
3399
  open_item_id?: string | null;
3321
3400
  conversation_id?: string | null;
3322
3401
  /** Up to 2,000 characters. */
@@ -3357,7 +3436,7 @@ declare class Admin {
3357
3436
  }>>;
3358
3437
  /** Everything memory holds about one customer, every status, with provenance. Leaves an admin receipt. */
3359
3438
  memory(profileId: string, options?: RequestOptions): Promise<Result<ProfileMemory>>;
3360
- /** Every value a fact's slot held, oldest first, with who replaced whom. Takes `fact:<id>` or the bare id. */
3439
+ /** Every value a fact's slot held, oldest first, with who replaced whom. Takes the fact's bare id. */
3361
3440
  factHistory(profileId: string, factId: string, options?: RequestOptions): Promise<Result<FactHistory>>;
3362
3441
  /** The data subject's correction: retract or correct a fact, or resolve an open item. */
3363
3442
  correct(profileId: string, params: CorrectParams, options?: RequestOptions): Promise<Result<BatchResponse>>;
@@ -6433,6 +6512,14 @@ interface Timeouts {
6433
6512
  * people's turns.
6434
6513
  */
6435
6514
  contextVoice: number;
6515
+ /**
6516
+ * The default budget of the first read of a conversation, task or object in this client, before the round
6517
+ * trip: the API compiles its pack on that read. One right after a customer's first message took 410 ms on
6518
+ * the server (05/10/2026: resolving the customer 153 ms, the pack 120 ms), more than `context`, and the
6519
+ * agent answered without memory. Later reads of the same key find the pack compiled. Only when `context`
6520
+ * is left at its default.
6521
+ */
6522
+ contextFirst: number;
6436
6523
  /**
6437
6524
  * The first read of a voice call, made while the phone rings or the inbound webhook runs
6438
6525
  * (`begin()`, `ready()`). A cold connection costs three round trips (TCP, TLS, the request)
@@ -6783,6 +6870,8 @@ declare class Niadra {
6783
6870
  private voiceStarted;
6784
6871
  /** A probe is on its way: until it ends, default read budgets get `timeouts.connect` on top. */
6785
6872
  private measuring;
6873
+ /** The keys whose read answered in this client, oldest first: a first read gets `timeouts.contextFirst`. */
6874
+ private readonly answeredReads;
6786
6875
  private voiceWarned;
6787
6876
  private readonly strict;
6788
6877
  /** Where the client reports what it swallows in fail-open mode. */
@@ -6843,6 +6932,7 @@ declare class Niadra {
6843
6932
  */
6844
6933
  context(params: ContextParams, options?: ContextOptions): Promise<ContextResult>;
6845
6934
  private readContext;
6935
+ private readAnswered;
6846
6936
  /**
6847
6937
  * The SDK profile of this key's space: the features it turned on, the claim contract and the summarized
6848
6938
  * type registry, from the local cache, read again once `valid_for_s` has passed. When Niadra does not
@@ -7188,4 +7278,4 @@ declare class Niadra {
7188
7278
  private sendBatch;
7189
7279
  }
7190
7280
 
7191
- export { type AssertionOutcome as $, AGENT_MEMORY_TOOL_DEFINITIONS as A, type AgentState as B, type ConstraintsBlock as C, type Conflict as D, AgentStateHandle as E, type AgentStateMeta as F, type AgentStateMetaPage as G, type HardConstraint as H, InternalText as I, type AgentStateReadRequest as J, type AgentStateScope as K, type Logger as L, type Mode as M, NiadraError as N, type ObjectRef as O, type AgentStateWrite as P, type AgentStateWriteResult as Q, Resolvers as R, type SubjectKind as S, type TurnPins as T, type AgentTurnOptions as U, type AnchorEvidence as V, Api as W, type ArmComparison as X, type ArmOutcomes as Y, type AskedAttribute as Z, type AssertionMethod as _, type ClaimRecord as a, type CompanyRule as a$, type AssertionStats as a0, type Attribute as a1, type AttributeEntry as a2, type AttributionReport as a3, type AttributionRow as a4, type AttributionTotal as a5, type Backing as a6, type BackingReport as a7, Sources as a8, type BatchItem as a9, type CheckRequest as aA, type CheckResult as aB, ClaimCheck as aC, type CheckOptions$1 as aD, type ClaimContractSummary as aE, type ClaimEvidence as aF, type ClaimEvidenceRef as aG, type ClaimKind as aH, type ClaimOutputs as aI, type ClaimParams as aJ, type ClaimRelease as aK, type ClaimRequest as aL, type ClaimValue as aM, type ClaimVerdict as aN, type ClaimVia as aO, type Claimed as aP, type ClientOptions as aQ, type ClosedBy as aR, type Closes as aS, type Commitment as aT, type CommitmentDecided as aU, type CommitmentDecidedDetail as aV, type CommitmentMade as aW, type CommitmentMadeDetail as aX, type CommitmentRef as aY, type CommitmentWithdrawn as aZ, type CommitmentWithdrawnDetail as a_, type BatchRequest as aa, type BatchResponse as ab, type BiFile as ac, type BiUpload as ad, type BiUploadRequest as ae, BlobError as af, type BlobStore as ag, type BlockSubject as ah, type BoundArg as ai, type BoundTools as aj, type BudgetBlock as ak, type BudgetCut as al, type BudgetPack as am, type BudgetUse as an, type CacheDirectives as ao, type CacheOptions as ap, CallCapture as aq, type CaseClosed as ar, type CaseOpened as as, type Change as at, type ChangePage as au, type ChangeSinceSeen as av, type ChannelState as aw, type CheckBatchRequest as ax, type CheckBatchResponse as ay, type CheckOptions as az, type ClaimCategory as b, type DerivedState as b$, type Conflict$1 as b0, type ConflictCounts as b1, type ConstraintOrigin as b2, type ConstraintsRequest as b3, type ContactBudget as b4, type ContactBudgetUse as b5, type ContactClaims as b6, type ContactCount as b7, ContactGateway as b8, type ContactKey as b9, type ConversationEndedItem as bA, type ConversationEvent as bB, type ConversationParams as bC, type CoordinationBlock as bD, type CoordinationOverview as bE, type CoordinationReport as bF, type CoordinationReportPage as bG, type CorrectParams as bH, type CorrectionAction as bI, type CorrectionRequest as bJ, type CounterfactualCase as bK, type CounterfactualEngaged as bL, type CounterfactualEngagement as bM, type CounterfactualRunCreate as bN, type CounterfactualRunPage as bO, type CreateAgentNoteRequest as bP, DEFAULT_CACHE as bQ, DEFAULT_QUEUE as bR, DEFAULT_TIMEOUTS as bS, DEFAULT_VOICE as bT, DELETE as bU, type DataIssue as bV, type DataIssuePage as bW, Declarations as bX, type DeclareRequest as bY, type DeclareResult as bZ, type DeliveryPath as b_, type ContactKeys as ba, type ContactMade as bb, type ContactMadeDetail as bc, type VerifyParams$1 as bd, type Refusal as be, type Content as bf, type ContentMarker as bg, type ContentMode as bh, type ContentRelease as bi, type ContentReleaseResult as bj, ContentResolver as bk, type ContextFormat as bl, type ContextOptions as bm, type ContextPack as bn, type ContextParams as bo, type ContextRequest as bp, type ContextSource as bq, type ContextStamp as br, type ContextUseBucket as bs, type ContextUseDimension as bt, type ContextUseEntry as bu, type ContextUseParams as bv, type ContextUseRate as bw, type ContextUseReport as bx, Conversation as by, type ConversationAction as bz, Niadra as c, type InterleavingTotal as c$, type Detect as c0, type DriftChanges as c1, type Effect as c2, type EffectCount as c3, type EffectDeclared as c4, type EffectDetail as c5, type EffectKind as c6, type EffectReserve as c7, type EffectSeen as c8, type EffectSettle as c9, type GuardOptions as cA, type Guarded as cB, type HandleType as cC, type Handoff as cD, type HandoffContext as cE, type HandoffCreate as cF, type HandoffDeclared as cG, type HandoffDetail as cH, type HandoffItem as cI, type HandoffOutcome as cJ, type HandoffPackage as cK, type HandoffParams as cL, type HeartbeatItem as cM, type HistoryFilters as cN, type HistoryItem as cO, type HistoryItemKind as cP, type IdentifyItem as cQ, type IdentifyParams as cR, type IdentityCalibration as cS, type Include as cT, type Inference as cU, type InferenceCorrection as cV, type InferencePage as cW, type IngestStatus as cX, type InterestState as cY, type InterleavingReport as cZ, type InterleavingRow as c_, type EffectState as ca, type EffectStatus as cb, type Engaged as cc, type EpisodeOut as cd, type Erasure as ce, type EventItem as cf, type EventKind as cg, type Evidence as ch, type ExperimentReport as ci, type ExperimentResult as cj, type ExportPackage as ck, FAIL_CLOSED as cl, type FactHistory as cm, type FactOut as cn, type Feature as co, type Feedback as cp, type FeedbackAction as cq, type FeedbackParams as cr, type FeedbackRequest as cs, type Fetched as ct, type FieldCoverage as cu, type FieldState as cv, type ForgetTarget as cw, type GatewayOptions as cx, Guard as cy, type GuardLike as cz, type ContextResponse as d, type PackLayer as d$, type InternalText$1 as d0, type ItemError as d1, type ItemStatus as d2, type ItemVersion as d3, type KeyIdentity as d4, type LeaseDeclared as d5, type LeaseDetail as d6, type LegalHold as d7, type LegalHoldCreate as d8, type LegalHoldRelease as d9, NiadraValidationError as dA, type Notification as dB, type NotificationPage as dC, type ObjectCoverage as dD, type ObjectPush as dE, type ObjectPushRequest as dF, type ObjectPushResponse as dG, type ObjectRead as dH, type ObjectSnapshotResponse as dI, type ObjectTimeline as dJ, type ObjectTimelineParams as dK, type Observation as dL, type OpenItemOut as dM, type OpenItemRequest as dN, type OpenObject as dO, type OpenParams as dP, type OpenedItem as dQ, type Origin as dR, type OutcomeLink as dS, type OutcomePage as dT, type OutcomeRequest as dU, type OutcomeState as dV, type Owner as dW, type OwnershipClaim as dX, type OwnershipCount as dY, PERSONAL_DATA_TOOL_ERROR as dZ, type PackGuard as d_, type Link as da, type LinkMethod as db, type LinkRequest as dc, type LiveTurn as dd, type Lock as de, MAX_BATCH_ITEMS as df, MAX_EVENT_TEXT as dg, MAX_MEDIA_BYTES as dh, type MediaUpload as di, type MediaUploadRequest as dj, type MediaUploadResponse as dk, MemorySeen as dl, NOT_FOUND as dm, type Natures as dn, type Negation as dp, NiadraAPIError as dq, NiadraAbortError as dr, NiadraAuthenticationError as ds, NiadraConfigError as dt, NiadraConnectionError as du, NiadraContactTokenError as dv, NiadraPermissionError as dw, NiadraRateLimitError as dx, NiadraReplayRefusedError as dy, NiadraTimeoutError as dz, type ContextResult as e, type SearchResponse as e$, type PackSection as e0, type PackSlot as e1, type PackSlotDerived as e2, type PackStamp as e3, type PowerRequest as e4, type PowerResult as e5, type Preference as e6, type PrefetchParams as e7, type PrefetchRequest as e8, type Presented as e9, type Rendered as eA, type ReplayAssertion as eB, type ReplayBlocker as eC, type ReplayCase as eD, type ReplayCaseRequest as eE, type ReplayHistoryEntry as eF, type ReplayResult as eG, type RequestOptions as eH, type Resolved as eI, type Resolver as eJ, type Result as eK, type ResultObjects as eL, type ReviewRequest as eM, type ReviewRequestCreate as eN, type ReviewRequestPage as eO, type ReviewResolution as eP, type Scenario as eQ, type ScenarioCreate as eR, type ScenarioFromReport as eS, type ScenarioPage as eT, type ScenarioRun as eU, type ScenarioRunCreate as eV, type ScenarioRunSummary as eW, type ScenarioUpdate as eX, type ScenarioVerdict as eY, type SdkProfile as eZ, type SearchRequest as e_, type PresentedItem as ea, type PreviousValue as eb, type Problem as ec, type ProfileMatch as ed, type ProfileMemory as ee, type PromiseRef as ef, type PromoteRequest as eg, type PromoteResponse as eh, type ProposalStatus as ei, type Provenance as ej, type QueueOptions as ek, type ReadingResult as el, type ReconcileRequest as em, type ReconcileResult as en, type ReconciledLine as eo, type ToolOptions as ep, type Recurrence as eq, type Refetch as er, type RefreshRelease as es, type RefreshReleased as et, type RefreshRequest as eu, type RefreshRequestPage as ev, type Refusal$1 as ew, type ReleaseDetail as ex, type RememberParams as ey, type RememberResult as ez, type ModelUsage as f, type Flag as f$, type Seen as f0, type SeenTokens as f1, type ShadowRequest as f2, type ShadowRun as f3, type Shown as f4, type ShownValue as f5, type SlotChannelRank as f6, type SlotWhy as f7, type SoftConstraint as f8, type SourceCoverage as f9, type TaskEndedItem as fA, type TaskEvent as fB, type TaskLockDeclared as fC, type TaskLockDetail as fD, type TaskParams as fE, type TimeWindow as fF, type TimelineRequest as fG, type TimelineResponse as fH, type Timeouts as fI, type TimerState as fJ, type Timestamp as fK, type Timings as fL, type ToolBinding as fM, type ToolCapabilities as fN, type ToolDefinition as fO, type ToolOptions$1 as fP, type TrackEvent as fQ, type TraitOut as fR, type TurnAgent as fS, type TurnBlob as fT, type TurnBuild as fU, type TurnCall as fV, type TurnCompilerPins as fW, type TurnConstraints as fX, type TurnCoordination as fY, type TurnCost as fZ, type TurnEffect as f_, type Speaker as fa, type SpeakerRef as fb, type StateMode as fc, type StateReadRequest as fd, type StateReadResponse as fe, type StateRef as ff, type StateVerifyRequest as fg, type StateVerifyResponse as fh, type StateView as fi, type StateViewRequest as fj, type StateWrite as fk, type Subject as fl, type SubjectToken as fm, type SubjectTokenRequest as fn, type Suppression as fo, type SuppressionAdded as fp, type SuppressionAddedDetail as fq, type SuppressionLifted as fr, type SuppressionLiftedDetail as fs, type SuppressionPage as ft, type SuppressionSalt as fu, TOOL_DEFINITIONS as fv, TOOL_NAMES as fw, type TargetModel as fx, Task as fy, type TaskAction as fz, type Handle as g, TurnFrame as g0, type TurnIndexEntry as g1, type TurnIndexPage as g2, type TurnKind as g3, type TurnObservation as g4, type TurnOptions as g5, type TurnOutput as g6, type TurnParams as g7, type TurnProvenance as g8, type TurnRead as g9, type VerifyItem as gA, type VerifyMethod as gB, type VerifyParams as gC, type View as gD, type Visibility as gE, type VoiceInfo as gF, type VoiceOptions as gG, type Watch as gH, type WhereExpression as gI, type WorkingState as gJ, type WriteResult as gK, check as gL, consoleLogger as gM, currentCall as gN, currentTurn as gO, guardStream as gP, guardText as gQ, recipientHash as gR, renderLive as gS, renderSuffix as gT, silentLogger as gU, tool as gV, verifyContactToken as gW, violated as gX, type TurnRecord as ga, TurnRecorder as gb, type TurnRecordingOptions as gc, type TurnRecordingSummary as gd, type TurnSearchRequest as ge, type TurnSearchResponse as gf, type TurnSummary as gg, type TurnTokens as gh, type TurnView as gi, type TurnsRequest as gj, type TurnsResponse as gk, type TypeCoverage as gl, type TypeFingerprintRequest as gm, type TypeFingerprintResponse as gn, type UnbackedValue as go, type UnmetDemand as gp, type UnmetDemandPage as gq, type Unwatch as gr, type UploadParams as gs, type ValueEvidence as gt, type ValueKind as gu, type ValueState as gv, type Verdict as gw, type Verification as gx, type VerificationResult as gy, type VerifyCheck as gz, AGENT_MEMORY_TOOL_NAMES as h, type ActionEvent as i, type ActionInfo as j, type Actions as k, Admin as l, type AgentMemoryBlock as m, type AgentMemoryParams as n, type AgentMemoryResult as o, type AgentMemorySearchRequest as p, type AgentMemorySearchResponse as q, type AgentMemorySource as r, shingles as s, type AgentNote as t, type AgentNoteKind as u, type AgentNoteOrigin as v, type AgentNoteProposal as w, type AgentNoteStatus as x, type AgentNoteVisibility as y, AgentSession as z };
7281
+ export { type AssertionOutcome as $, AGENT_MEMORY_TOOL_DEFINITIONS as A, type AgentState as B, type ConstraintsBlock as C, type Conflict as D, AgentStateHandle as E, type AgentStateMeta as F, type AgentStateMetaPage as G, type HardConstraint as H, InternalText as I, type AgentStateReadRequest as J, type AgentStateScope as K, type Logger as L, type Mode as M, NiadraError as N, type ObjectRef as O, type AgentStateWrite as P, type AgentStateWriteResult as Q, Resolvers as R, type SubjectKind as S, type TurnPins as T, type AgentTurnOptions as U, type AnchorEvidence as V, Api as W, type ArmComparison as X, type ArmOutcomes as Y, type AskedAttribute as Z, type AssertionMethod as _, type ClaimRecord as a, type CompanyRule as a$, type AssertionStats as a0, type Attribute as a1, type AttributeEntry as a2, type AttributionReport as a3, type AttributionRow as a4, type AttributionTotal as a5, type Backing as a6, type BackingReport as a7, Sources as a8, type BatchItem as a9, type CheckRequest as aA, type CheckResult as aB, ClaimCheck as aC, type CheckOptions$1 as aD, type ClaimContractSummary as aE, type ClaimEvidence as aF, type ClaimEvidenceRef as aG, type ClaimKind as aH, type ClaimOutputs as aI, type ClaimParams as aJ, type ClaimRelease as aK, type ClaimRequest as aL, type ClaimValue as aM, type ClaimVerdict as aN, type ClaimVia as aO, type Claimed as aP, type ClientOptions as aQ, type ClosedBy as aR, type Closes as aS, type Commitment as aT, type CommitmentDecided as aU, type CommitmentDecidedDetail as aV, type CommitmentMade as aW, type CommitmentMadeDetail as aX, type CommitmentRef as aY, type CommitmentWithdrawn as aZ, type CommitmentWithdrawnDetail as a_, type BatchRequest as aa, type BatchResponse as ab, type BiFile as ac, type BiUpload as ad, type BiUploadRequest as ae, BlobError as af, type BlobStore as ag, type BlockSubject as ah, type BoundArg as ai, type BoundTools as aj, type BudgetBlock as ak, type BudgetCut as al, type BudgetPack as am, type BudgetUse as an, type CacheDirectives as ao, type CacheOptions as ap, CallCapture as aq, type CaseClosed as ar, type CaseOpened as as, type Change as at, type ChangePage as au, type ChangeSinceSeen as av, type ChannelState as aw, type CheckBatchRequest as ax, type CheckBatchResponse as ay, type CheckOptions as az, type ClaimCategory as b, type DerivedState as b$, type Conflict$1 as b0, type ConflictCounts as b1, type ConstraintOrigin as b2, type ConstraintsRequest as b3, type ContactBudget as b4, type ContactBudgetUse as b5, type ContactClaims as b6, type ContactCount as b7, ContactGateway as b8, type ContactKey as b9, type ConversationEndedItem as bA, type ConversationEvent as bB, type ConversationParams as bC, type CoordinationBlock as bD, type CoordinationOverview as bE, type CoordinationReport as bF, type CoordinationReportPage as bG, type CorrectParams as bH, type CorrectionAction as bI, type CorrectionRequest as bJ, type CounterfactualCase as bK, type CounterfactualEngaged as bL, type CounterfactualEngagement as bM, type CounterfactualRunCreate as bN, type CounterfactualRunPage as bO, type CreateAgentNoteRequest as bP, DEFAULT_CACHE as bQ, DEFAULT_QUEUE as bR, DEFAULT_TIMEOUTS as bS, DEFAULT_VOICE as bT, DELETE as bU, type DataIssue as bV, type DataIssuePage as bW, Declarations as bX, type DeclareRequest as bY, type DeclareResult as bZ, type DeliveryPath as b_, type ContactKeys as ba, type ContactMade as bb, type ContactMadeDetail as bc, type VerifyParams$1 as bd, type Refusal as be, type Content as bf, type ContentMarker as bg, type ContentMode as bh, type ContentRelease as bi, type ContentReleaseResult as bj, ContentResolver as bk, type ContextFormat as bl, type ContextOptions as bm, type ContextPack as bn, type ContextParams as bo, type ContextRequest as bp, type ContextSource as bq, type ContextStamp as br, type ContextUseBucket as bs, type ContextUseDimension as bt, type ContextUseEntry as bu, type ContextUseParams as bv, type ContextUseRate as bw, type ContextUseReport as bx, Conversation as by, type ConversationAction as bz, Niadra as c, type InterleavingTotal as c$, type Detect as c0, type DriftChanges as c1, type Effect as c2, type EffectCount as c3, type EffectDeclared as c4, type EffectDetail as c5, type EffectKind as c6, type EffectReserve as c7, type EffectSeen as c8, type EffectSettle as c9, type GuardOptions as cA, type Guarded as cB, type HandleType as cC, type Handoff as cD, type HandoffContext as cE, type HandoffCreate as cF, type HandoffDeclared as cG, type HandoffDetail as cH, type HandoffItem as cI, type HandoffOutcome as cJ, type HandoffPackage as cK, type HandoffParams as cL, type HeartbeatItem as cM, type HistoryFilters as cN, type HistoryItem as cO, type HistoryItemKind as cP, type IdentifyItem as cQ, type IdentifyParams as cR, type IdentityCalibration as cS, type Include as cT, type Inference as cU, type InferenceCorrection as cV, type InferencePage as cW, type IngestStatus as cX, type InterestState as cY, type InterleavingReport as cZ, type InterleavingRow as c_, type EffectState as ca, type EffectStatus as cb, type Engaged as cc, type EpisodeOut as cd, type Erasure as ce, type EventItem as cf, type EventKind as cg, type Evidence as ch, type ExperimentReport as ci, type ExperimentResult as cj, type ExportPackage as ck, FAIL_CLOSED as cl, type FactHistory as cm, type FactOut as cn, type Feature as co, type Feedback as cp, type FeedbackAction as cq, type FeedbackParams as cr, type FeedbackRequest as cs, type Fetched as ct, type FieldCoverage as cu, type FieldState as cv, type ForgetTarget as cw, type GatewayOptions as cx, Guard as cy, type GuardLike as cz, type ContextResponse as d, PERSONAL_DATA_TOOL_ERROR as d$, type InternalText$1 as d0, type ItemError as d1, type ItemStatus as d2, type ItemVersion as d3, type KeyIdentity as d4, type LeaseDeclared as d5, type LeaseDetail as d6, type LegalHold as d7, type LegalHoldCreate as d8, type LegalHoldRelease as d9, NiadraValidationError as dA, type Notification as dB, type NotificationPage as dC, type ObjectCoverage as dD, type ObjectInstruction as dE, type ObjectMemoryOut as dF, type ObjectPush as dG, type ObjectPushRequest as dH, type ObjectPushResponse as dI, type ObjectRead as dJ, type ObjectSnapshotResponse as dK, type ObjectTimeline as dL, type ObjectTimelineParams as dM, type Observation as dN, type OpenItemOut as dO, type OpenItemRequest as dP, type OpenObject as dQ, type OpenParams as dR, type OpenedItem as dS, type Origin as dT, type OutcomeLink as dU, type OutcomePage as dV, type OutcomeRequest as dW, type OutcomeState as dX, type Owner as dY, type OwnershipClaim as dZ, type OwnershipCount as d_, type Link as da, type LinkMethod as db, type LinkRequest as dc, type LiveTurn as dd, type Lock as de, MAX_BATCH_ITEMS as df, MAX_EVENT_TEXT as dg, MAX_MEDIA_BYTES as dh, type MediaUpload as di, type MediaUploadRequest as dj, type MediaUploadResponse as dk, MemorySeen as dl, NOT_FOUND as dm, type Natures as dn, type Negation as dp, NiadraAPIError as dq, NiadraAbortError as dr, NiadraAuthenticationError as ds, NiadraConfigError as dt, NiadraConnectionError as du, NiadraContactTokenError as dv, NiadraPermissionError as dw, NiadraRateLimitError as dx, NiadraReplayRefusedError as dy, NiadraTimeoutError as dz, type ContextResult as e, type ScenarioVerdict as e$, type PackGuard as e0, type PackLayer as e1, type PackSection as e2, type PackSlot as e3, type PackSlotDerived as e4, type PackStamp as e5, type PowerRequest as e6, type PowerResult as e7, type Preference as e8, type PrefetchParams as e9, type RememberParams as eA, type RememberResult as eB, type Rendered as eC, type ReplayAssertion as eD, type ReplayBlocker as eE, type ReplayCase as eF, type ReplayCaseRequest as eG, type ReplayHistoryEntry as eH, type ReplayResult as eI, type RequestOptions as eJ, type Resolved as eK, type Resolver as eL, type Result as eM, type ResultObjects as eN, type ReviewRequest as eO, type ReviewRequestCreate as eP, type ReviewRequestPage as eQ, type ReviewResolution as eR, type SaidAbout as eS, type Scenario as eT, type ScenarioCreate as eU, type ScenarioFromReport as eV, type ScenarioPage as eW, type ScenarioRun as eX, type ScenarioRunCreate as eY, type ScenarioRunSummary as eZ, type ScenarioUpdate as e_, type PrefetchRequest as ea, type Presented as eb, type PresentedItem as ec, type PreviousValue as ed, type Problem as ee, type ProfileMatch as ef, type ProfileMemory as eg, type PromiseRef as eh, type PromoteRequest as ei, type PromoteResponse as ej, type ProposalStatus as ek, type Provenance as el, type QueueOptions as em, type ReadingResult as en, type ReconcileRequest as eo, type ReconcileResult as ep, type ReconciledLine as eq, type ToolOptions as er, type Recurrence as es, type Refetch as et, type RefreshRelease as eu, type RefreshReleased as ev, type RefreshRequest as ew, type RefreshRequestPage as ex, type Refusal$1 as ey, type ReleaseDetail as ez, type ModelUsage as f, type TurnCoordination as f$, type SdkProfile as f0, type SearchRequest as f1, type SearchResponse as f2, type Seen as f3, type SeenTokens as f4, type ShadowRequest as f5, type ShadowRun as f6, type Shown as f7, type ShownValue as f8, type SlotChannelRank as f9, type TargetModel as fA, Task as fB, type TaskAction as fC, type TaskEndedItem as fD, type TaskEvent as fE, type TaskLockDeclared as fF, type TaskLockDetail as fG, type TaskParams as fH, type TimeWindow as fI, type TimelineRequest as fJ, type TimelineResponse as fK, type Timeouts as fL, type TimerState as fM, type Timestamp as fN, type Timings as fO, type ToolBinding as fP, type ToolCapabilities as fQ, type ToolDefinition as fR, type ToolOptions$1 as fS, type TrackEvent as fT, type TraitOut as fU, type TurnAgent as fV, type TurnBlob as fW, type TurnBuild as fX, type TurnCall as fY, type TurnCompilerPins as fZ, type TurnConstraints as f_, type SlotWhy as fa, type SoftConstraint as fb, type SourceCoverage as fc, type Speaker as fd, type SpeakerRef as fe, type StateMode as ff, type StateReadRequest as fg, type StateReadResponse as fh, type StateRef as fi, type StateVerifyRequest as fj, type StateVerifyResponse as fk, type StateView as fl, type StateViewRequest as fm, type StateWrite as fn, type Subject as fo, type SubjectToken as fp, type SubjectTokenRequest as fq, type Suppression as fr, type SuppressionAdded as fs, type SuppressionAddedDetail as ft, type SuppressionLifted as fu, type SuppressionLiftedDetail as fv, type SuppressionPage as fw, type SuppressionSalt as fx, TOOL_DEFINITIONS as fy, TOOL_NAMES as fz, type Handle as g, type TurnCost as g0, type TurnEffect as g1, type Flag as g2, TurnFrame as g3, type TurnIndexEntry as g4, type TurnIndexPage as g5, type TurnKind as g6, type TurnObservation as g7, type TurnOptions as g8, type TurnOutput as g9, type Verification as gA, type VerificationResult as gB, type VerifyCheck as gC, type VerifyItem as gD, type VerifyMethod as gE, type VerifyParams as gF, type View as gG, type Visibility as gH, type VoiceInfo as gI, type VoiceOptions as gJ, type Watch as gK, type WhereExpression as gL, type WorkingState as gM, type WriteResult as gN, check as gO, consoleLogger as gP, currentCall as gQ, currentTurn as gR, guardStream as gS, guardText as gT, recipientHash as gU, renderLive as gV, renderSuffix as gW, silentLogger as gX, tool as gY, verifyContactToken as gZ, violated as g_, type TurnParams as ga, type TurnProvenance as gb, type TurnRead as gc, type TurnRecord as gd, TurnRecorder as ge, type TurnRecordingOptions as gf, type TurnRecordingSummary as gg, type TurnSearchRequest as gh, type TurnSearchResponse as gi, type TurnSummary as gj, type TurnTokens as gk, type TurnView as gl, type TurnsRequest as gm, type TurnsResponse as gn, type TypeCoverage as go, type TypeFingerprintRequest as gp, type TypeFingerprintResponse as gq, type UnbackedValue as gr, type UnmetDemand as gs, type UnmetDemandPage as gt, type Unwatch as gu, type UploadParams as gv, type ValueEvidence as gw, type ValueKind as gx, type ValueState as gy, type Verdict as gz, AGENT_MEMORY_TOOL_NAMES as h, type ActionEvent as i, type ActionInfo as j, type Actions as k, Admin as l, type AgentMemoryBlock as m, type AgentMemoryParams as n, type AgentMemoryResult as o, type AgentMemorySearchRequest as p, type AgentMemorySearchResponse as q, type AgentMemorySource as r, shingles as s, type AgentNote as t, type AgentNoteKind as u, type AgentNoteOrigin as v, type AgentNoteProposal as w, type AgentNoteStatus as x, type AgentNoteVisibility as y, AgentSession as z };
@@ -1,8 +1,8 @@
1
1
  import { ToolSet } from 'ai';
2
- import { c as Niadra, g as Handle, g5 as TurnOptions, f as ModelUsage } from './client-DHPuVvHW.cjs';
2
+ import { c as Niadra, g as Handle, g8 as TurnOptions, f as ModelUsage } from './client-CdkRzWz6.cjs';
3
3
  import { NiadraMiddleware } from './ai-sdk.cjs';
4
- import { b as Session, a as ProofSource, A as AgentMemoryOption } from './shared-Cf_vc6TD.cjs';
5
- export { P as Proof, c as attestationProof } from './shared-Cf_vc6TD.cjs';
4
+ import { b as Session, a as ProofSource, A as AgentMemoryOption } from './shared-DH_QGnci.cjs';
5
+ export { P as Proof, c as attestationProof } from './shared-DH_QGnci.cjs';
6
6
 
7
7
  /**
8
8
  * Niadra for the Cloudflare Agents SDK (`agents` 0.x): one helper per `Agent` instance (a Durable