@niadra/sdk 0.10.4 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +31 -0
- package/README.md +1 -1
- package/dist/ai-sdk.cjs +1 -1
- package/dist/ai-sdk.cjs.map +1 -1
- package/dist/ai-sdk.d.cts +3 -3
- package/dist/ai-sdk.d.ts +3 -3
- package/dist/ai-sdk.js +1 -1
- package/dist/ai-sdk.js.map +1 -1
- package/dist/anthropic.d.cts +4 -4
- package/dist/anthropic.d.ts +4 -4
- package/dist/bedrock.d.cts +4 -4
- package/dist/bedrock.d.ts +4 -4
- package/dist/cli.js +8 -8
- package/dist/cli.js.map +1 -1
- package/dist/{client-7mkrdRI0.d.cts → client-CG257pe3.d.cts} +122 -5
- package/dist/{client-7mkrdRI0.d.ts → client-CG257pe3.d.ts} +122 -5
- package/dist/cloudflare-agents.d.cts +3 -3
- package/dist/cloudflare-agents.d.ts +3 -3
- package/dist/elevenlabs.cjs +3 -3
- package/dist/elevenlabs.cjs.map +1 -1
- package/dist/elevenlabs.d.cts +5 -5
- package/dist/elevenlabs.d.ts +5 -5
- package/dist/elevenlabs.js +3 -3
- package/dist/elevenlabs.js.map +1 -1
- package/dist/genkit.d.cts +3 -3
- package/dist/genkit.d.ts +3 -3
- package/dist/google-adk.cjs +3 -3
- package/dist/google-adk.cjs.map +1 -1
- package/dist/google-adk.d.cts +3 -3
- package/dist/google-adk.d.ts +3 -3
- package/dist/google-adk.js +3 -3
- package/dist/google-adk.js.map +1 -1
- package/dist/google-genai.d.cts +4 -4
- package/dist/google-genai.d.ts +4 -4
- package/dist/index.cjs +8 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/dist/{intercept-CGQhwAom.d.cts → intercept-CvbXtKsU.d.cts} +1 -1
- package/dist/{intercept-CT0vglsd.d.ts → intercept-EqNiV5f2.d.ts} +1 -1
- package/dist/langchain.cjs +1 -1
- package/dist/langchain.cjs.map +1 -1
- package/dist/langchain.d.cts +3 -3
- package/dist/langchain.d.ts +3 -3
- package/dist/langchain.js +1 -1
- package/dist/langchain.js.map +1 -1
- package/dist/livekit.d.cts +3 -3
- package/dist/livekit.d.ts +3 -3
- package/dist/llamaindex.d.cts +3 -3
- package/dist/llamaindex.d.ts +3 -3
- package/dist/mastra.cjs +1 -1
- package/dist/mastra.cjs.map +1 -1
- package/dist/mastra.d.cts +3 -3
- package/dist/mastra.d.ts +3 -3
- package/dist/mastra.js +1 -1
- package/dist/mastra.js.map +1 -1
- package/dist/openai-agents.d.cts +3 -3
- package/dist/openai-agents.d.ts +3 -3
- package/dist/retell.cjs +3 -3
- package/dist/retell.cjs.map +1 -1
- package/dist/retell.d.cts +5 -5
- package/dist/retell.d.ts +5 -5
- package/dist/retell.js +3 -3
- package/dist/retell.js.map +1 -1
- package/dist/{shared-Bf84jr3Y.d.ts → shared--OTV6MgP.d.ts} +1 -1
- package/dist/{shared-CxAwOcZI.d.cts → shared-Dmo7pRV5.d.cts} +1 -1
- package/dist/strands.d.cts +3 -3
- package/dist/strands.d.ts +3 -3
- package/dist/twilio.d.cts +4 -4
- package/dist/twilio.d.ts +4 -4
- package/dist/vapi.cjs +3 -3
- package/dist/vapi.cjs.map +1 -1
- package/dist/vapi.d.cts +5 -5
- package/dist/vapi.d.ts +5 -5
- package/dist/vapi.js +3 -3
- package/dist/vapi.js.map +1 -1
- package/dist/voltagent.d.cts +3 -3
- package/dist/voltagent.d.ts +3 -3
- package/dist/{webhook-QxYgxE6_.d.ts → webhook-Bcgl38Nz.d.ts} +1 -1
- package/dist/{webhook-DE3HsGkb.d.cts → webhook-CPc6wZKf.d.cts} +1 -1
- package/dist/whatsapp.d.cts +2 -2
- package/dist/whatsapp.d.ts +2 -2
- package/package.json +1 -1
|
@@ -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>;
|
|
@@ -2214,6 +2295,12 @@ interface HistoryFilters {
|
|
|
2214
2295
|
channels?: string[];
|
|
2215
2296
|
categories?: string[];
|
|
2216
2297
|
item_kinds?: HistoryItemKind[];
|
|
2298
|
+
/**
|
|
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.
|
|
2302
|
+
*/
|
|
2303
|
+
item_statuses?: ItemStatus[];
|
|
2217
2304
|
outcome?: string | null;
|
|
2218
2305
|
object?: ObjectRef | null;
|
|
2219
2306
|
/**
|
|
@@ -2245,7 +2332,20 @@ interface SearchRequest {
|
|
|
2245
2332
|
/** At most this many items, after the token budget: 1 to 100. */
|
|
2246
2333
|
limit?: number | null;
|
|
2247
2334
|
}
|
|
2335
|
+
/** The open items history lists by status (`HistoryFilters.item_statuses`). */
|
|
2336
|
+
type ItemStatus = "open" | "overdue" | "resolved";
|
|
2337
|
+
/** What closed an open item: the same object the `open_item.closed` webhook carried. */
|
|
2338
|
+
interface ClosedBy {
|
|
2339
|
+
/** `action`, `system_event`, `conversation` or `feedback`. */
|
|
2340
|
+
kind: string;
|
|
2341
|
+
action_id?: string | null;
|
|
2342
|
+
event_id?: string | null;
|
|
2343
|
+
session_id?: string | null;
|
|
2344
|
+
operation?: string | null;
|
|
2345
|
+
source_id?: string | null;
|
|
2346
|
+
}
|
|
2248
2347
|
interface HistoryItem {
|
|
2348
|
+
/** The row's own id, a bare UUID; `kind` says what it is. */
|
|
2249
2349
|
id: string;
|
|
2250
2350
|
kind: string;
|
|
2251
2351
|
text: string;
|
|
@@ -2257,6 +2357,20 @@ interface HistoryItem {
|
|
|
2257
2357
|
origin_event_id?: string | null;
|
|
2258
2358
|
/** Until when what the item states holds; after it, the item leaves reads unless `show_expired`. */
|
|
2259
2359
|
valid_until?: string | null;
|
|
2360
|
+
/** The business object the row is about: an open item's, a fact's, its own. */
|
|
2361
|
+
object?: ObjectRef | null;
|
|
2362
|
+
/** An open item's: the operation that closes it when done on its object. */
|
|
2363
|
+
expected_operation?: string | null;
|
|
2364
|
+
/** An open item's: `open`, `overdue` or `resolved`. */
|
|
2365
|
+
status?: string | null;
|
|
2366
|
+
/** A resolved item's: when it was closed. */
|
|
2367
|
+
closed_at?: string | null;
|
|
2368
|
+
/** A resolved item's: what closed it. */
|
|
2369
|
+
closed_by?: ClosedBy | 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;
|
|
2260
2374
|
}
|
|
2261
2375
|
/** The period a `when` filter was read as. */
|
|
2262
2376
|
interface TimeWindow {
|
|
@@ -3090,6 +3204,7 @@ interface VoiceInfo {
|
|
|
3090
3204
|
* canonical `operation`; the server rejects any other combination.
|
|
3091
3205
|
*/
|
|
3092
3206
|
interface Closes {
|
|
3207
|
+
/** An open item's `id`, a bare UUID. */
|
|
3093
3208
|
item_id?: string | null;
|
|
3094
3209
|
object?: ObjectRef | null;
|
|
3095
3210
|
operation?: string | null;
|
|
@@ -3278,7 +3393,9 @@ interface FeedbackRequest {
|
|
|
3278
3393
|
idempotency_key: string;
|
|
3279
3394
|
subject: Handle;
|
|
3280
3395
|
action: FeedbackAction;
|
|
3396
|
+
/** A fact's `id`, a bare UUID. */
|
|
3281
3397
|
fact_id?: string | null;
|
|
3398
|
+
/** The open item `resolve_open_item` closes: its `id`, a bare UUID. */
|
|
3282
3399
|
open_item_id?: string | null;
|
|
3283
3400
|
conversation_id?: string | null;
|
|
3284
3401
|
/** Up to 2,000 characters. */
|
|
@@ -3319,7 +3436,7 @@ declare class Admin {
|
|
|
3319
3436
|
}>>;
|
|
3320
3437
|
/** Everything memory holds about one customer, every status, with provenance. Leaves an admin receipt. */
|
|
3321
3438
|
memory(profileId: string, options?: RequestOptions): Promise<Result<ProfileMemory>>;
|
|
3322
|
-
/** Every value a fact's slot held, oldest first, with who replaced whom. Takes
|
|
3439
|
+
/** Every value a fact's slot held, oldest first, with who replaced whom. Takes the fact's bare id. */
|
|
3323
3440
|
factHistory(profileId: string, factId: string, options?: RequestOptions): Promise<Result<FactHistory>>;
|
|
3324
3441
|
/** The data subject's correction: retract or correct a fact, or resolve an open item. */
|
|
3325
3442
|
correct(profileId: string, params: CorrectParams, options?: RequestOptions): Promise<Result<BatchResponse>>;
|
|
@@ -7150,4 +7267,4 @@ declare class Niadra {
|
|
|
7150
7267
|
private sendBatch;
|
|
7151
7268
|
}
|
|
7152
7269
|
|
|
7153
|
-
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 Conflict$1 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 Closes as aR, type Commitment as aS, type CommitmentDecided as aT, type CommitmentDecidedDetail as aU, type CommitmentMade as aV, type CommitmentMadeDetail as aW, type CommitmentRef as aX, type CommitmentWithdrawn as aY, type CommitmentWithdrawnDetail as aZ, type CompanyRule 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 Detect as b$, type ConflictCounts as b0, type ConstraintOrigin as b1, type ConstraintsRequest as b2, type ContactBudget as b3, type ContactBudgetUse as b4, type ContactClaims as b5, type ContactCount as b6, ContactGateway as b7, type ContactKey as b8, type ContactKeys as b9, type ConversationEvent as bA, type ConversationParams as bB, type CoordinationBlock as bC, type CoordinationOverview as bD, type CoordinationReport as bE, type CoordinationReportPage as bF, type CorrectParams as bG, type CorrectionAction as bH, type CorrectionRequest as bI, type CounterfactualCase as bJ, type CounterfactualEngaged as bK, type CounterfactualEngagement as bL, type CounterfactualRunCreate as bM, type CounterfactualRunPage as bN, type CreateAgentNoteRequest as bO, DEFAULT_CACHE as bP, DEFAULT_QUEUE as bQ, DEFAULT_TIMEOUTS as bR, DEFAULT_VOICE as bS, DELETE as bT, type DataIssue as bU, type DataIssuePage as bV, Declarations as bW, type DeclareRequest as bX, type DeclareResult as bY, type DeliveryPath as bZ, type DerivedState as b_, type ContactMade as ba, type ContactMadeDetail as bb, type VerifyParams$1 as bc, type Refusal as bd, type Content as be, type ContentMarker as bf, type ContentMode as bg, type ContentRelease as bh, type ContentReleaseResult as bi, ContentResolver as bj, type ContextFormat as bk, type ContextOptions as bl, type ContextPack as bm, type ContextParams as bn, type ContextRequest as bo, type ContextSource as bp, type ContextStamp as bq, type ContextUseBucket as br, type ContextUseDimension as bs, type ContextUseEntry as bt, type ContextUseParams as bu, type ContextUseRate as bv, type ContextUseReport as bw, Conversation as bx, type ConversationAction as by, type ConversationEndedItem as bz, Niadra as c, type InternalText$1 as c$, type DriftChanges as c0, type Effect as c1, type EffectCount as c2, type EffectDeclared as c3, type EffectDetail as c4, type EffectKind as c5, type EffectReserve as c6, type EffectSeen as c7, type EffectSettle as c8, type EffectState as c9, type Guarded as cA, type HandleType as cB, type Handoff as cC, type HandoffContext as cD, type HandoffCreate as cE, type HandoffDeclared as cF, type HandoffDetail as cG, type HandoffItem as cH, type HandoffOutcome as cI, type HandoffPackage as cJ, type HandoffParams as cK, type HeartbeatItem as cL, type HistoryFilters as cM, type HistoryItem as cN, type HistoryItemKind as cO, type IdentifyItem as cP, type IdentifyParams as cQ, type IdentityCalibration as cR, type Include as cS, type Inference as cT, type InferenceCorrection as cU, type InferencePage as cV, type IngestStatus as cW, type InterestState as cX, type InterleavingReport as cY, type InterleavingRow as cZ, type InterleavingTotal as c_, type EffectStatus as ca, type Engaged as cb, type EpisodeOut as cc, type Erasure as cd, type EventItem as ce, type EventKind as cf, type Evidence as cg, type ExperimentReport as ch, type ExperimentResult as ci, type ExportPackage as cj, FAIL_CLOSED as ck, type FactHistory as cl, type FactOut as cm, type Feature as cn, type Feedback as co, type FeedbackAction as cp, type FeedbackParams as cq, type FeedbackRequest as cr, type Fetched as cs, type FieldCoverage as ct, type FieldState as cu, type ForgetTarget as cv, type GatewayOptions as cw, Guard as cx, type GuardLike as cy, type GuardOptions as cz, type ContextResponse as d, type PackSlot as d$, type ItemError as d0, type ItemVersion as d1, type KeyIdentity as d2, type LeaseDeclared as d3, type LeaseDetail as d4, type LegalHold as d5, type LegalHoldCreate as d6, type LegalHoldRelease as d7, type Link as d8, type LinkMethod as d9, type NotificationPage as dA, type ObjectCoverage as dB, type ObjectPush as dC, type ObjectPushRequest as dD, type ObjectPushResponse as dE, type ObjectRead as dF, type ObjectSnapshotResponse as dG, type ObjectTimeline as dH, type ObjectTimelineParams as dI, type Observation as dJ, type OpenItemOut as dK, type OpenItemRequest as dL, type OpenObject as dM, type OpenParams as dN, type OpenedItem as dO, type Origin as dP, type OutcomeLink as dQ, type OutcomePage as dR, type OutcomeRequest as dS, type OutcomeState as dT, type Owner as dU, type OwnershipClaim as dV, type OwnershipCount as dW, PERSONAL_DATA_TOOL_ERROR as dX, type PackGuard as dY, type PackLayer as dZ, type PackSection as d_, type LinkRequest as da, type LiveTurn as db, type Lock as dc, MAX_BATCH_ITEMS as dd, MAX_EVENT_TEXT as de, MAX_MEDIA_BYTES as df, type MediaUpload as dg, type MediaUploadRequest as dh, type MediaUploadResponse as di, MemorySeen as dj, NOT_FOUND as dk, type Natures as dl, type Negation as dm, NiadraAPIError as dn, NiadraAbortError as dp, NiadraAuthenticationError as dq, NiadraConfigError as dr, NiadraConnectionError as ds, NiadraContactTokenError as dt, NiadraPermissionError as du, NiadraRateLimitError as dv, NiadraReplayRefusedError as dw, NiadraTimeoutError as dx, NiadraValidationError as dy, type Notification as dz, type ContextResult as e, type SeenTokens as e$, type PackSlotDerived as e0, type PackStamp as e1, type PowerRequest as e2, type PowerResult as e3, type Preference as e4, type PrefetchParams as e5, type PrefetchRequest as e6, type Presented as e7, type PresentedItem as e8, type PreviousValue as e9, type ReplayBlocker as eA, type ReplayCase as eB, type ReplayCaseRequest as eC, type ReplayHistoryEntry as eD, type ReplayResult as eE, type RequestOptions as eF, type Resolved as eG, type Resolver as eH, type Result as eI, type ResultObjects as eJ, type ReviewRequest as eK, type ReviewRequestCreate as eL, type ReviewRequestPage as eM, type ReviewResolution as eN, type Scenario as eO, type ScenarioCreate as eP, type ScenarioFromReport as eQ, type ScenarioPage as eR, type ScenarioRun as eS, type ScenarioRunCreate as eT, type ScenarioRunSummary as eU, type ScenarioUpdate as eV, type ScenarioVerdict as eW, type SdkProfile as eX, type SearchRequest as eY, type SearchResponse as eZ, type Seen as e_, type Problem as ea, type ProfileMatch as eb, type ProfileMemory as ec, type PromiseRef as ed, type PromoteRequest as ee, type PromoteResponse as ef, type ProposalStatus as eg, type Provenance as eh, type QueueOptions as ei, type ReadingResult as ej, type ReconcileRequest as ek, type ReconcileResult as el, type ReconciledLine as em, type ToolOptions as en, type Recurrence as eo, type Refetch as ep, type RefreshRelease as eq, type RefreshReleased as er, type RefreshRequest as es, type RefreshRequestPage as et, type Refusal$1 as eu, type ReleaseDetail as ev, type RememberParams as ew, type RememberResult as ex, type Rendered as ey, type ReplayAssertion as ez, type ModelUsage as f, type TurnIndexEntry as f$, type ShadowRequest as f0, type ShadowRun as f1, type Shown as f2, type ShownValue as f3, type SlotChannelRank as f4, type SlotWhy as f5, type SoftConstraint as f6, type SourceCoverage as f7, type Speaker as f8, type SpeakerRef as f9, type TaskLockDeclared as fA, type TaskLockDetail as fB, type TaskParams as fC, type TimeWindow as fD, type TimelineRequest as fE, type TimelineResponse as fF, type Timeouts as fG, type TimerState as fH, type Timestamp as fI, type Timings as fJ, type ToolBinding as fK, type ToolCapabilities as fL, type ToolDefinition as fM, type ToolOptions$1 as fN, type TrackEvent as fO, type TraitOut as fP, type TurnAgent as fQ, type TurnBlob as fR, type TurnBuild as fS, type TurnCall as fT, type TurnCompilerPins as fU, type TurnConstraints as fV, type TurnCoordination as fW, type TurnCost as fX, type TurnEffect as fY, type Flag as fZ, TurnFrame as f_, type StateMode as fa, type StateReadRequest as fb, type StateReadResponse as fc, type StateRef as fd, type StateVerifyRequest as fe, type StateVerifyResponse as ff, type StateView as fg, type StateViewRequest as fh, type StateWrite as fi, type Subject as fj, type SubjectToken as fk, type SubjectTokenRequest as fl, type Suppression as fm, type SuppressionAdded as fn, type SuppressionAddedDetail as fo, type SuppressionLifted as fp, type SuppressionLiftedDetail as fq, type SuppressionPage as fr, type SuppressionSalt as fs, TOOL_DEFINITIONS as ft, TOOL_NAMES as fu, type TargetModel as fv, Task as fw, type TaskAction as fx, type TaskEndedItem as fy, type TaskEvent as fz, type Handle as g, type TurnIndexPage as g0, type TurnKind as g1, type TurnObservation as g2, type TurnOptions as g3, type TurnOutput as g4, type TurnParams as g5, type TurnProvenance as g6, type TurnRead as g7, type TurnRecord as g8, TurnRecorder as g9, type VerifyParams as gA, type View as gB, type Visibility as gC, type VoiceInfo as gD, type VoiceOptions as gE, type Watch as gF, type WhereExpression as gG, type WorkingState as gH, type WriteResult as gI, check as gJ, consoleLogger as gK, currentCall as gL, currentTurn as gM, guardStream as gN, guardText as gO, recipientHash as gP, renderLive as gQ, renderSuffix as gR, silentLogger as gS, tool as gT, verifyContactToken as gU, violated as gV, type TurnRecordingOptions as ga, type TurnRecordingSummary as gb, type TurnSearchRequest as gc, type TurnSearchResponse as gd, type TurnSummary as ge, type TurnTokens as gf, type TurnView as gg, type TurnsRequest as gh, type TurnsResponse as gi, type TypeCoverage as gj, type TypeFingerprintRequest as gk, type TypeFingerprintResponse as gl, type UnbackedValue as gm, type UnmetDemand as gn, type UnmetDemandPage as go, type Unwatch as gp, type UploadParams as gq, type ValueEvidence as gr, type ValueKind as gs, type ValueState as gt, type Verdict as gu, type Verification as gv, type VerificationResult as gw, type VerifyCheck as gx, type VerifyItem as gy, type VerifyMethod 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 };
|
|
7270
|
+
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>;
|
|
@@ -2214,6 +2295,12 @@ interface HistoryFilters {
|
|
|
2214
2295
|
channels?: string[];
|
|
2215
2296
|
categories?: string[];
|
|
2216
2297
|
item_kinds?: HistoryItemKind[];
|
|
2298
|
+
/**
|
|
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.
|
|
2302
|
+
*/
|
|
2303
|
+
item_statuses?: ItemStatus[];
|
|
2217
2304
|
outcome?: string | null;
|
|
2218
2305
|
object?: ObjectRef | null;
|
|
2219
2306
|
/**
|
|
@@ -2245,7 +2332,20 @@ interface SearchRequest {
|
|
|
2245
2332
|
/** At most this many items, after the token budget: 1 to 100. */
|
|
2246
2333
|
limit?: number | null;
|
|
2247
2334
|
}
|
|
2335
|
+
/** The open items history lists by status (`HistoryFilters.item_statuses`). */
|
|
2336
|
+
type ItemStatus = "open" | "overdue" | "resolved";
|
|
2337
|
+
/** What closed an open item: the same object the `open_item.closed` webhook carried. */
|
|
2338
|
+
interface ClosedBy {
|
|
2339
|
+
/** `action`, `system_event`, `conversation` or `feedback`. */
|
|
2340
|
+
kind: string;
|
|
2341
|
+
action_id?: string | null;
|
|
2342
|
+
event_id?: string | null;
|
|
2343
|
+
session_id?: string | null;
|
|
2344
|
+
operation?: string | null;
|
|
2345
|
+
source_id?: string | null;
|
|
2346
|
+
}
|
|
2248
2347
|
interface HistoryItem {
|
|
2348
|
+
/** The row's own id, a bare UUID; `kind` says what it is. */
|
|
2249
2349
|
id: string;
|
|
2250
2350
|
kind: string;
|
|
2251
2351
|
text: string;
|
|
@@ -2257,6 +2357,20 @@ interface HistoryItem {
|
|
|
2257
2357
|
origin_event_id?: string | null;
|
|
2258
2358
|
/** Until when what the item states holds; after it, the item leaves reads unless `show_expired`. */
|
|
2259
2359
|
valid_until?: string | null;
|
|
2360
|
+
/** The business object the row is about: an open item's, a fact's, its own. */
|
|
2361
|
+
object?: ObjectRef | null;
|
|
2362
|
+
/** An open item's: the operation that closes it when done on its object. */
|
|
2363
|
+
expected_operation?: string | null;
|
|
2364
|
+
/** An open item's: `open`, `overdue` or `resolved`. */
|
|
2365
|
+
status?: string | null;
|
|
2366
|
+
/** A resolved item's: when it was closed. */
|
|
2367
|
+
closed_at?: string | null;
|
|
2368
|
+
/** A resolved item's: what closed it. */
|
|
2369
|
+
closed_by?: ClosedBy | 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;
|
|
2260
2374
|
}
|
|
2261
2375
|
/** The period a `when` filter was read as. */
|
|
2262
2376
|
interface TimeWindow {
|
|
@@ -3090,6 +3204,7 @@ interface VoiceInfo {
|
|
|
3090
3204
|
* canonical `operation`; the server rejects any other combination.
|
|
3091
3205
|
*/
|
|
3092
3206
|
interface Closes {
|
|
3207
|
+
/** An open item's `id`, a bare UUID. */
|
|
3093
3208
|
item_id?: string | null;
|
|
3094
3209
|
object?: ObjectRef | null;
|
|
3095
3210
|
operation?: string | null;
|
|
@@ -3278,7 +3393,9 @@ interface FeedbackRequest {
|
|
|
3278
3393
|
idempotency_key: string;
|
|
3279
3394
|
subject: Handle;
|
|
3280
3395
|
action: FeedbackAction;
|
|
3396
|
+
/** A fact's `id`, a bare UUID. */
|
|
3281
3397
|
fact_id?: string | null;
|
|
3398
|
+
/** The open item `resolve_open_item` closes: its `id`, a bare UUID. */
|
|
3282
3399
|
open_item_id?: string | null;
|
|
3283
3400
|
conversation_id?: string | null;
|
|
3284
3401
|
/** Up to 2,000 characters. */
|
|
@@ -3319,7 +3436,7 @@ declare class Admin {
|
|
|
3319
3436
|
}>>;
|
|
3320
3437
|
/** Everything memory holds about one customer, every status, with provenance. Leaves an admin receipt. */
|
|
3321
3438
|
memory(profileId: string, options?: RequestOptions): Promise<Result<ProfileMemory>>;
|
|
3322
|
-
/** Every value a fact's slot held, oldest first, with who replaced whom. Takes
|
|
3439
|
+
/** Every value a fact's slot held, oldest first, with who replaced whom. Takes the fact's bare id. */
|
|
3323
3440
|
factHistory(profileId: string, factId: string, options?: RequestOptions): Promise<Result<FactHistory>>;
|
|
3324
3441
|
/** The data subject's correction: retract or correct a fact, or resolve an open item. */
|
|
3325
3442
|
correct(profileId: string, params: CorrectParams, options?: RequestOptions): Promise<Result<BatchResponse>>;
|
|
@@ -7150,4 +7267,4 @@ declare class Niadra {
|
|
|
7150
7267
|
private sendBatch;
|
|
7151
7268
|
}
|
|
7152
7269
|
|
|
7153
|
-
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 Conflict$1 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 Closes as aR, type Commitment as aS, type CommitmentDecided as aT, type CommitmentDecidedDetail as aU, type CommitmentMade as aV, type CommitmentMadeDetail as aW, type CommitmentRef as aX, type CommitmentWithdrawn as aY, type CommitmentWithdrawnDetail as aZ, type CompanyRule 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 Detect as b$, type ConflictCounts as b0, type ConstraintOrigin as b1, type ConstraintsRequest as b2, type ContactBudget as b3, type ContactBudgetUse as b4, type ContactClaims as b5, type ContactCount as b6, ContactGateway as b7, type ContactKey as b8, type ContactKeys as b9, type ConversationEvent as bA, type ConversationParams as bB, type CoordinationBlock as bC, type CoordinationOverview as bD, type CoordinationReport as bE, type CoordinationReportPage as bF, type CorrectParams as bG, type CorrectionAction as bH, type CorrectionRequest as bI, type CounterfactualCase as bJ, type CounterfactualEngaged as bK, type CounterfactualEngagement as bL, type CounterfactualRunCreate as bM, type CounterfactualRunPage as bN, type CreateAgentNoteRequest as bO, DEFAULT_CACHE as bP, DEFAULT_QUEUE as bQ, DEFAULT_TIMEOUTS as bR, DEFAULT_VOICE as bS, DELETE as bT, type DataIssue as bU, type DataIssuePage as bV, Declarations as bW, type DeclareRequest as bX, type DeclareResult as bY, type DeliveryPath as bZ, type DerivedState as b_, type ContactMade as ba, type ContactMadeDetail as bb, type VerifyParams$1 as bc, type Refusal as bd, type Content as be, type ContentMarker as bf, type ContentMode as bg, type ContentRelease as bh, type ContentReleaseResult as bi, ContentResolver as bj, type ContextFormat as bk, type ContextOptions as bl, type ContextPack as bm, type ContextParams as bn, type ContextRequest as bo, type ContextSource as bp, type ContextStamp as bq, type ContextUseBucket as br, type ContextUseDimension as bs, type ContextUseEntry as bt, type ContextUseParams as bu, type ContextUseRate as bv, type ContextUseReport as bw, Conversation as bx, type ConversationAction as by, type ConversationEndedItem as bz, Niadra as c, type InternalText$1 as c$, type DriftChanges as c0, type Effect as c1, type EffectCount as c2, type EffectDeclared as c3, type EffectDetail as c4, type EffectKind as c5, type EffectReserve as c6, type EffectSeen as c7, type EffectSettle as c8, type EffectState as c9, type Guarded as cA, type HandleType as cB, type Handoff as cC, type HandoffContext as cD, type HandoffCreate as cE, type HandoffDeclared as cF, type HandoffDetail as cG, type HandoffItem as cH, type HandoffOutcome as cI, type HandoffPackage as cJ, type HandoffParams as cK, type HeartbeatItem as cL, type HistoryFilters as cM, type HistoryItem as cN, type HistoryItemKind as cO, type IdentifyItem as cP, type IdentifyParams as cQ, type IdentityCalibration as cR, type Include as cS, type Inference as cT, type InferenceCorrection as cU, type InferencePage as cV, type IngestStatus as cW, type InterestState as cX, type InterleavingReport as cY, type InterleavingRow as cZ, type InterleavingTotal as c_, type EffectStatus as ca, type Engaged as cb, type EpisodeOut as cc, type Erasure as cd, type EventItem as ce, type EventKind as cf, type Evidence as cg, type ExperimentReport as ch, type ExperimentResult as ci, type ExportPackage as cj, FAIL_CLOSED as ck, type FactHistory as cl, type FactOut as cm, type Feature as cn, type Feedback as co, type FeedbackAction as cp, type FeedbackParams as cq, type FeedbackRequest as cr, type Fetched as cs, type FieldCoverage as ct, type FieldState as cu, type ForgetTarget as cv, type GatewayOptions as cw, Guard as cx, type GuardLike as cy, type GuardOptions as cz, type ContextResponse as d, type PackSlot as d$, type ItemError as d0, type ItemVersion as d1, type KeyIdentity as d2, type LeaseDeclared as d3, type LeaseDetail as d4, type LegalHold as d5, type LegalHoldCreate as d6, type LegalHoldRelease as d7, type Link as d8, type LinkMethod as d9, type NotificationPage as dA, type ObjectCoverage as dB, type ObjectPush as dC, type ObjectPushRequest as dD, type ObjectPushResponse as dE, type ObjectRead as dF, type ObjectSnapshotResponse as dG, type ObjectTimeline as dH, type ObjectTimelineParams as dI, type Observation as dJ, type OpenItemOut as dK, type OpenItemRequest as dL, type OpenObject as dM, type OpenParams as dN, type OpenedItem as dO, type Origin as dP, type OutcomeLink as dQ, type OutcomePage as dR, type OutcomeRequest as dS, type OutcomeState as dT, type Owner as dU, type OwnershipClaim as dV, type OwnershipCount as dW, PERSONAL_DATA_TOOL_ERROR as dX, type PackGuard as dY, type PackLayer as dZ, type PackSection as d_, type LinkRequest as da, type LiveTurn as db, type Lock as dc, MAX_BATCH_ITEMS as dd, MAX_EVENT_TEXT as de, MAX_MEDIA_BYTES as df, type MediaUpload as dg, type MediaUploadRequest as dh, type MediaUploadResponse as di, MemorySeen as dj, NOT_FOUND as dk, type Natures as dl, type Negation as dm, NiadraAPIError as dn, NiadraAbortError as dp, NiadraAuthenticationError as dq, NiadraConfigError as dr, NiadraConnectionError as ds, NiadraContactTokenError as dt, NiadraPermissionError as du, NiadraRateLimitError as dv, NiadraReplayRefusedError as dw, NiadraTimeoutError as dx, NiadraValidationError as dy, type Notification as dz, type ContextResult as e, type SeenTokens as e$, type PackSlotDerived as e0, type PackStamp as e1, type PowerRequest as e2, type PowerResult as e3, type Preference as e4, type PrefetchParams as e5, type PrefetchRequest as e6, type Presented as e7, type PresentedItem as e8, type PreviousValue as e9, type ReplayBlocker as eA, type ReplayCase as eB, type ReplayCaseRequest as eC, type ReplayHistoryEntry as eD, type ReplayResult as eE, type RequestOptions as eF, type Resolved as eG, type Resolver as eH, type Result as eI, type ResultObjects as eJ, type ReviewRequest as eK, type ReviewRequestCreate as eL, type ReviewRequestPage as eM, type ReviewResolution as eN, type Scenario as eO, type ScenarioCreate as eP, type ScenarioFromReport as eQ, type ScenarioPage as eR, type ScenarioRun as eS, type ScenarioRunCreate as eT, type ScenarioRunSummary as eU, type ScenarioUpdate as eV, type ScenarioVerdict as eW, type SdkProfile as eX, type SearchRequest as eY, type SearchResponse as eZ, type Seen as e_, type Problem as ea, type ProfileMatch as eb, type ProfileMemory as ec, type PromiseRef as ed, type PromoteRequest as ee, type PromoteResponse as ef, type ProposalStatus as eg, type Provenance as eh, type QueueOptions as ei, type ReadingResult as ej, type ReconcileRequest as ek, type ReconcileResult as el, type ReconciledLine as em, type ToolOptions as en, type Recurrence as eo, type Refetch as ep, type RefreshRelease as eq, type RefreshReleased as er, type RefreshRequest as es, type RefreshRequestPage as et, type Refusal$1 as eu, type ReleaseDetail as ev, type RememberParams as ew, type RememberResult as ex, type Rendered as ey, type ReplayAssertion as ez, type ModelUsage as f, type TurnIndexEntry as f$, type ShadowRequest as f0, type ShadowRun as f1, type Shown as f2, type ShownValue as f3, type SlotChannelRank as f4, type SlotWhy as f5, type SoftConstraint as f6, type SourceCoverage as f7, type Speaker as f8, type SpeakerRef as f9, type TaskLockDeclared as fA, type TaskLockDetail as fB, type TaskParams as fC, type TimeWindow as fD, type TimelineRequest as fE, type TimelineResponse as fF, type Timeouts as fG, type TimerState as fH, type Timestamp as fI, type Timings as fJ, type ToolBinding as fK, type ToolCapabilities as fL, type ToolDefinition as fM, type ToolOptions$1 as fN, type TrackEvent as fO, type TraitOut as fP, type TurnAgent as fQ, type TurnBlob as fR, type TurnBuild as fS, type TurnCall as fT, type TurnCompilerPins as fU, type TurnConstraints as fV, type TurnCoordination as fW, type TurnCost as fX, type TurnEffect as fY, type Flag as fZ, TurnFrame as f_, type StateMode as fa, type StateReadRequest as fb, type StateReadResponse as fc, type StateRef as fd, type StateVerifyRequest as fe, type StateVerifyResponse as ff, type StateView as fg, type StateViewRequest as fh, type StateWrite as fi, type Subject as fj, type SubjectToken as fk, type SubjectTokenRequest as fl, type Suppression as fm, type SuppressionAdded as fn, type SuppressionAddedDetail as fo, type SuppressionLifted as fp, type SuppressionLiftedDetail as fq, type SuppressionPage as fr, type SuppressionSalt as fs, TOOL_DEFINITIONS as ft, TOOL_NAMES as fu, type TargetModel as fv, Task as fw, type TaskAction as fx, type TaskEndedItem as fy, type TaskEvent as fz, type Handle as g, type TurnIndexPage as g0, type TurnKind as g1, type TurnObservation as g2, type TurnOptions as g3, type TurnOutput as g4, type TurnParams as g5, type TurnProvenance as g6, type TurnRead as g7, type TurnRecord as g8, TurnRecorder as g9, type VerifyParams as gA, type View as gB, type Visibility as gC, type VoiceInfo as gD, type VoiceOptions as gE, type Watch as gF, type WhereExpression as gG, type WorkingState as gH, type WriteResult as gI, check as gJ, consoleLogger as gK, currentCall as gL, currentTurn as gM, guardStream as gN, guardText as gO, recipientHash as gP, renderLive as gQ, renderSuffix as gR, silentLogger as gS, tool as gT, verifyContactToken as gU, violated as gV, type TurnRecordingOptions as ga, type TurnRecordingSummary as gb, type TurnSearchRequest as gc, type TurnSearchResponse as gd, type TurnSummary as ge, type TurnTokens as gf, type TurnView as gg, type TurnsRequest as gh, type TurnsResponse as gi, type TypeCoverage as gj, type TypeFingerprintRequest as gk, type TypeFingerprintResponse as gl, type UnbackedValue as gm, type UnmetDemand as gn, type UnmetDemandPage as go, type Unwatch as gp, type UploadParams as gq, type ValueEvidence as gr, type ValueKind as gs, type ValueState as gt, type Verdict as gu, type Verification as gv, type VerificationResult as gw, type VerifyCheck as gx, type VerifyItem as gy, type VerifyMethod 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 };
|
|
7270
|
+
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,
|
|
2
|
+
import { c as Niadra, g as Handle, g8 as TurnOptions, f as ModelUsage } from './client-CG257pe3.cjs';
|
|
3
3
|
import { NiadraMiddleware } from './ai-sdk.cjs';
|
|
4
|
-
import { b as Session, a as ProofSource, A as AgentMemoryOption } from './shared-
|
|
5
|
-
export { P as Proof, c as attestationProof } from './shared-
|
|
4
|
+
import { b as Session, a as ProofSource, A as AgentMemoryOption } from './shared-Dmo7pRV5.cjs';
|
|
5
|
+
export { P as Proof, c as attestationProof } from './shared-Dmo7pRV5.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,
|
|
2
|
+
import { c as Niadra, g as Handle, g8 as TurnOptions, f as ModelUsage } from './client-CG257pe3.js';
|
|
3
3
|
import { NiadraMiddleware } from './ai-sdk.js';
|
|
4
|
-
import { b as Session, a as ProofSource, A as AgentMemoryOption } from './shared
|
|
5
|
-
export { P as Proof, c as attestationProof } from './shared
|
|
4
|
+
import { b as Session, a as ProofSource, A as AgentMemoryOption } from './shared--OTV6MgP.js';
|
|
5
|
+
export { P as Proof, c as attestationProof } from './shared--OTV6MgP.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Niadra for the Cloudflare Agents SDK (`agents` 0.x): one helper per `Agent` instance (a Durable
|
package/dist/elevenlabs.cjs
CHANGED
|
@@ -6,7 +6,7 @@ var TOOL_DEFINITIONS = [
|
|
|
6
6
|
"type": "function",
|
|
7
7
|
"function": {
|
|
8
8
|
"name": "search_customer_history",
|
|
9
|
-
"description": "Search everything that already happened with this customer: past conversations, promises, agent actions, orders and invoices. Use it when the customer refers to something earlier or asks whether a problem happened before. Do not call it when the answer is already in the context block, including its 'Hist\xF3rico' line, which already counts recurrences. Returns short items with date, channel and outcome, plus a recurrence count. Open a conversation (`episode
|
|
9
|
+
"description": "Search everything that already happened with this customer: past conversations, promises, agent actions, orders and invoices. Use it when the customer refers to something earlier or asks whether a problem happened before. Do not call it when the answer is already in the context block, including its 'Hist\xF3rico' line, which already counts recurrences. Returns short items with date, channel and outcome, plus a recurrence count. Open a conversation (kind `episode`) or an object (kind `object`) by its id with open_history_item; the other items are complete as listed.",
|
|
10
10
|
"parameters": {
|
|
11
11
|
"type": "object",
|
|
12
12
|
"properties": {
|
|
@@ -146,13 +146,13 @@ var TOOL_DEFINITIONS = [
|
|
|
146
146
|
"type": "function",
|
|
147
147
|
"function": {
|
|
148
148
|
"name": "open_history_item",
|
|
149
|
-
"description": "Open one conversation (`episode
|
|
149
|
+
"description": "Open one conversation (kind `episode`) or business object (kind `object`) returned by search_customer_history or get_customer_timeline: what was asked, what was promised and by whom, the outcome and what memory came from it. Actions, events, facts and promises are complete as listed and do not open. Use it only after a search or timeline pointed to the item.",
|
|
150
150
|
"parameters": {
|
|
151
151
|
"type": "object",
|
|
152
152
|
"properties": {
|
|
153
153
|
"id": {
|
|
154
154
|
"type": "string",
|
|
155
|
-
"description": "The item id
|
|
155
|
+
"description": "The item's `id`, as listed."
|
|
156
156
|
}
|
|
157
157
|
},
|
|
158
158
|
"required": [
|