@niadra/sdk 0.9.0 → 0.9.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 (57) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +40 -1
  3. package/dist/ai-sdk.d.cts +3 -3
  4. package/dist/ai-sdk.d.ts +3 -3
  5. package/dist/anthropic.d.cts +4 -4
  6. package/dist/anthropic.d.ts +4 -4
  7. package/dist/bedrock.d.cts +4 -4
  8. package/dist/bedrock.d.ts +4 -4
  9. package/dist/cli.js +51 -10
  10. package/dist/cli.js.map +1 -1
  11. package/dist/{client-B_ip8T2o.d.cts → client-CWMxmJHs.d.cts} +22 -14
  12. package/dist/{client-B_ip8T2o.d.ts → client-CWMxmJHs.d.ts} +22 -14
  13. package/dist/cloudflare-agents.d.cts +3 -3
  14. package/dist/cloudflare-agents.d.ts +3 -3
  15. package/dist/elevenlabs.d.cts +5 -5
  16. package/dist/elevenlabs.d.ts +5 -5
  17. package/dist/genkit.d.cts +3 -3
  18. package/dist/genkit.d.ts +3 -3
  19. package/dist/google-adk.d.cts +3 -3
  20. package/dist/google-adk.d.ts +3 -3
  21. package/dist/google-genai.d.cts +4 -4
  22. package/dist/google-genai.d.ts +4 -4
  23. package/dist/index.cjs +51 -10
  24. package/dist/index.cjs.map +1 -1
  25. package/dist/index.d.cts +3 -3
  26. package/dist/index.d.ts +3 -3
  27. package/dist/index.js +51 -10
  28. package/dist/index.js.map +1 -1
  29. package/dist/{intercept-CBaPK_-k.d.ts → intercept-Bv0nLpSw.d.ts} +1 -1
  30. package/dist/{intercept-CxmBLfoj.d.cts → intercept-CGngQI8B.d.cts} +1 -1
  31. package/dist/langchain.d.cts +3 -3
  32. package/dist/langchain.d.ts +3 -3
  33. package/dist/livekit.d.cts +3 -3
  34. package/dist/livekit.d.ts +3 -3
  35. package/dist/llamaindex.d.cts +3 -3
  36. package/dist/llamaindex.d.ts +3 -3
  37. package/dist/mastra.d.cts +3 -3
  38. package/dist/mastra.d.ts +3 -3
  39. package/dist/openai-agents.d.cts +3 -3
  40. package/dist/openai-agents.d.ts +3 -3
  41. package/dist/retell.d.cts +5 -5
  42. package/dist/retell.d.ts +5 -5
  43. package/dist/{shared-BLkAbvuf.d.ts → shared-B4Ef2Wpg.d.ts} +1 -1
  44. package/dist/{shared-DEkF2Y_z.d.cts → shared-Cq8mz-7m.d.cts} +1 -1
  45. package/dist/strands.d.cts +3 -3
  46. package/dist/strands.d.ts +3 -3
  47. package/dist/twilio.d.cts +4 -4
  48. package/dist/twilio.d.ts +4 -4
  49. package/dist/vapi.d.cts +5 -5
  50. package/dist/vapi.d.ts +5 -5
  51. package/dist/voltagent.d.cts +3 -3
  52. package/dist/voltagent.d.ts +3 -3
  53. package/dist/{webhook-CuR0Wckd.d.cts → webhook-jTx_SegV.d.cts} +1 -1
  54. package/dist/{webhook-BaraTaA9.d.ts → webhook-z2TjUzjv.d.ts} +1 -1
  55. package/dist/whatsapp.d.cts +2 -2
  56. package/dist/whatsapp.d.ts +2 -2
  57. package/package.json +3 -2
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as ConstraintsBlock, H as HardConstraint, N as NiadraError, a as ClaimRecord, b as ClaimCategory, I as InternalText, s as shingles, c as Niadra, R as Resolvers, d as ContextResponse, M as Mode, T as TurnPins, e as ContextResult, f as ModelUsage, L as Logger, S as SubjectKind, g as Handle, O as ObjectRef } from './client-B_ip8T2o.cjs';
2
- export { A as AGENT_MEMORY_TOOL_DEFINITIONS, h as AGENT_MEMORY_TOOL_NAMES, i as ActionEvent, j as ActionInfo, k as Actions, l as Admin, m as AgentMemoryBlock, n as AgentMemoryParams, o as AgentMemoryResult, p as AgentMemorySearchRequest, q as AgentMemorySearchResponse, r as AgentMemorySource, t as AgentNote, u as AgentNoteKind, v as AgentNoteOrigin, w as AgentNoteProposal, x as AgentNoteStatus, y as AgentNoteVisibility, z as AgentSession, B as AgentState, D as AgentStateConflict, E as AgentStateHandle, F as AgentStateMeta, G as AgentStateMetaPage, J as AgentStateReadRequest, K as AgentStateScope, P as AgentStateWrite, Q as AgentStateWriteResult, U as AgentTurnOptions, V as AnchorEvidence, W as Api, X as ArmComparison, Y as ArmOutcomes, Z as AskedAttribute, _ as AssertionMethod, $ as AssertionOutcome, a0 as AssertionStats, a1 as Attribute, a2 as AttributeEntry, a3 as AttributionReport, a4 as AttributionRow, a5 as AttributionTotal, a6 as Backing, a7 as BackingReport, a8 as BackingSources, a9 as BatchItem, aa as BatchRequest, ab as BatchResponse, ac as BiFile, ad as BiUpload, ae as BiUploadRequest, af as BlobError, ag as BlobStore, ah as BlockSubject, ai as BoundArg, aj as BoundTools, ak as BudgetBlock, al as BudgetCut, am as BudgetPack, an as BudgetUse, ao as CacheDirectives, ap as CacheOptions, aq as CallCapture, ar as CaseClosed, as as CaseOpened, at as Change, au as ChangePage, av as ChangeSinceSeen, aw as ChannelState, ax as CheckBatchRequest, ay as CheckBatchResponse, az as CheckOptions, aA as CheckRequest, aB as CheckResult, aC as ClaimCheck, aD as ClaimCheckOptions, aE as ClaimContractSummary, aF as ClaimEvidence, aG as ClaimEvidenceRef, aH as ClaimKind, aI as ClaimOutputs, aJ as ClaimParams, aK as ClaimRelease, aL as ClaimRequest, aM as ClaimValue, aN as ClaimVerdict, aO as ClaimVia, aP as Claimed, aQ as ClientOptions, aR as Closes, aS as Commitment, aT as CommitmentDecided, aU as CommitmentDecidedDetail, aV as CommitmentMade, aW as CommitmentMadeDetail, aX as CommitmentRef, aY as CommitmentWithdrawn, aZ as CommitmentWithdrawnDetail, a_ as CompanyRule, a$ as Conflict, b0 as ConflictCounts, b1 as ConstraintOrigin, b2 as ConstraintsRequest, b3 as ContactBudget, b4 as ContactBudgetUse, b5 as ContactClaims, b6 as ContactCount, b7 as ContactGateway, b8 as ContactKey, b9 as ContactKeys, ba as ContactMade, bb as ContactMadeDetail, bc as ContactTokenParams, bd as ContactTokenRefusal, be as Content, bf as ContentMarker, bg as ContentMode, bh as ContentRelease, bi as ContentReleaseResult, bj as ContentResolver, bk as ContextFormat, bl as ContextOptions, bm as ContextPack, bn as ContextParams, bo as ContextRequest, bp as ContextSource, bq as ContextStamp, br as ContextUseEntry, bs as Conversation, bt as ConversationAction, bu as ConversationEndedItem, bv as ConversationEvent, bw as ConversationParams, bx as CoordinationBlock, by as CoordinationOverview, bz as CoordinationReport, bA as CoordinationReportPage, bB as CorrectParams, bC as CorrectionAction, bD as CorrectionRequest, bE as CounterfactualCase, bF as CounterfactualEngaged, bG as CounterfactualEngagement, bH as CounterfactualRunCreate, bI as CounterfactualRunPage, bJ as CreateAgentNoteRequest, bK as DEFAULT_CACHE, bL as DEFAULT_QUEUE, bM as DEFAULT_TIMEOUTS, bN as DEFAULT_VOICE, bO as DELETE, bP as DataIssue, bQ as DataIssuePage, bR as Declarations, bS as DeclareRequest, bT as DeclareResult, bU as DeliveryPath, bV as DerivedState, bW as Detect, bX as DriftChanges, bY as Effect, bZ as EffectCount, b_ as EffectDeclared, b$ as EffectDetail, c0 as EffectKind, c1 as EffectReserve, c2 as EffectSeen, c3 as EffectSettle, c4 as EffectState, c5 as EffectStatus, c6 as Engaged, c7 as EpisodeOut, c8 as Erasure, c9 as EventItem, ca as EventKind, cb as Evidence, cc as ExperimentReport, cd as ExperimentResult, ce as ExportPackage, cf as FAIL_CLOSED, cg as FactHistory, ch as FactOut, ci as Feature, cj as Feedback, ck as FeedbackAction, cl as FeedbackParams, cm as FeedbackRequest, cn as Fetched, co as FieldCoverage, cp as FieldState, cq as ForgetTarget, cr as GatewayOptions, cs as Guard, ct as GuardLike, cu as GuardOptions, cv as Guarded, cw as HandleType, cx as Handoff, cy as HandoffContext, cz as HandoffCreate, cA as HandoffDeclared, cB as HandoffDetail, cC as HandoffItem, cD as HandoffOutcome, cE as HandoffPackage, cF as HandoffParams, cG as HeartbeatItem, cH as HistoryFilters, cI as HistoryItem, cJ as HistoryItemKind, cK as IdentifyItem, cL as IdentifyParams, cM as IdentityCalibration, cN as Include, cO as Inference, cP as InferenceCorrection, cQ as InferencePage, cR as IngestStatus, cS as InterestState, cT as InterleavingReport, cU as InterleavingRow, cV as InterleavingTotal, cW as InternalText, cX as ItemError, cY as ItemVersion, cZ as KeyIdentity, c_ as LeaseDeclared, c$ as LeaseDetail, d0 as LegalHold, d1 as LegalHoldCreate, d2 as LegalHoldRelease, d3 as LiveTurn, d4 as Lock, d5 as MAX_BATCH_ITEMS, d6 as MAX_EVENT_TEXT, d7 as MAX_MEDIA_BYTES, d8 as MediaUpload, d9 as MediaUploadRequest, da as MediaUploadResponse, db as MemorySeen, dc as NOT_FOUND, dd as Natures, de as Negation, df as NiadraAPIError, dg as NiadraAbortError, dh as NiadraAuthenticationError, di as NiadraConfigError, dj as NiadraConnectionError, dk as NiadraContactTokenError, dl as NiadraPermissionError, dm as NiadraRateLimitError, dn as NiadraReplayRefusedError, dp as NiadraTimeoutError, dq as NiadraValidationError, dr as Notification, ds as NotificationPage, dt as ObjectCoverage, du as ObjectPush, dv as ObjectPushRequest, dw as ObjectPushResponse, dx as ObjectRead, dy as ObjectSnapshotResponse, dz as ObjectTimeline, dA as ObjectTimelineParams, dB as Observation, dC as OpenItemOut, dD as OpenItemRequest, dE as OpenObject, dF as OpenParams, dG as OpenedItem, dH as Origin, dI as OutcomeLink, dJ as OutcomePage, dK as OutcomeRequest, dL as OutcomeState, dM as Owner, dN as OwnershipClaim, dO as OwnershipCount, dP as PERSONAL_DATA_TOOL_ERROR, dQ as PackGuard, dR as PackLayer, dS as PackSection, dT as PackSlot, dU as PackSlotDerived, dV as PackStamp, dW as PowerRequest, dX as PowerResult, dY as Preference, dZ as PrefetchParams, d_ as PrefetchRequest, d$ as Presented, e0 as PresentedItem, e1 as PreviousValue, e2 as Problem, e3 as ProfileMatch, e4 as ProfileMemory, e5 as PromiseRef, e6 as PromoteRequest, e7 as PromoteResponse, e8 as ProposalStatus, e9 as Provenance, ea as QueueOptions, eb as ReadingResult, ec as ReconcileRequest, ed as ReconcileResult, ee as ReconciledLine, ef as RecordedToolOptions, eg as Recurrence, eh as Refetch, ei as RefreshRelease, ej as RefreshReleased, ek as RefreshRequest, el as RefreshRequestPage, em as Refusal, en as ReleaseDetail, eo as RememberParams, ep as RememberResult, eq as Rendered, er as ReplayAssertion, es as ReplayBlocker, et as ReplayCase, eu as ReplayCaseRequest, ev as ReplayHistoryEntry, ew as ReplayResult, ex as RequestOptions, ey as Resolved, ez as Resolver, eA as Result, eB as ResultObjects, eC as ReviewRequest, eD as ReviewRequestCreate, eE as ReviewRequestPage, eF as ReviewResolution, eG as Scenario, eH as ScenarioCreate, eI as ScenarioFromReport, eJ as ScenarioPage, eK as ScenarioRun, eL as ScenarioRunCreate, eM as ScenarioRunSummary, eN as ScenarioUpdate, eO as ScenarioVerdict, eP as SdkProfile, eQ as SearchRequest, eR as SearchResponse, eS as Seen, eT as SeenTokens, eU as ShadowRequest, eV as ShadowRun, eW as Shown, eX as ShownValue, eY as SlotChannelRank, eZ as SlotWhy, e_ as SoftConstraint, e$ as SourceCoverage, f0 as Speaker, f1 as SpeakerRef, f2 as StateMode, f3 as StateReadRequest, f4 as StateReadResponse, f5 as StateRef, f6 as StateVerifyRequest, f7 as StateVerifyResponse, f8 as StateView, f9 as StateViewRequest, fa as StateWrite, fb as Subject, fc as SubjectToken, fd as SubjectTokenRequest, fe as Suppression, ff as SuppressionAdded, fg as SuppressionAddedDetail, fh as SuppressionLifted, fi as SuppressionLiftedDetail, fj as SuppressionPage, fk as SuppressionSalt, fl as TOOL_DEFINITIONS, fm as TOOL_NAMES, fn as TargetModel, fo as Task, fp as TaskAction, fq as TaskEndedItem, fr as TaskEvent, fs as TaskLockDeclared, ft as TaskLockDetail, fu as TaskParams, fv as TimeWindow, fw as TimelineRequest, fx as TimelineResponse, fy as Timeouts, fz as TimerState, fA as Timestamp, fB as Timings, fC as ToolBinding, fD as ToolCapabilities, fE as ToolDefinition, fF as ToolOptions, fG as TrackEvent, fH as TraitOut, fI as TurnAgent, fJ as TurnBlob, fK as TurnBuild, fL as TurnCall, fM as TurnCompilerPins, fN as TurnConstraints, fO as TurnCoordination, fP as TurnCost, fQ as TurnEffect, fR as TurnFlag, fS as TurnFrame, fT as TurnIndexEntry, fU as TurnIndexPage, fV as TurnKind, fW as TurnObservation, fX as TurnOptions, fY as TurnOutput, fZ as TurnParams, f_ as TurnProvenance, f$ as TurnRead, g0 as TurnRecord, g1 as TurnRecorder, g2 as TurnRecordingOptions, g3 as TurnRecordingSummary, g4 as TurnSearchRequest, g5 as TurnSearchResponse, g6 as TurnSummary, g7 as TurnTokens, g8 as TurnView, g9 as TurnsRequest, ga as TurnsResponse, gb as TypeCoverage, gc as TypeFingerprintRequest, gd as TypeFingerprintResponse, ge as UnbackedValue, gf as UnmetDemand, gg as UnmetDemandPage, gh as Unwatch, gi as UploadParams, gj as ValueEvidence, gk as ValueKind, gl as ValueState, gm as Verdict, gn as Verification, go as VerificationResult, gp as VerifyCheck, gq as VerifyItem, gr as VerifyMethod, gs as VerifyParams, gt as View, gu as Visibility, gv as VoiceInfo, gw as VoiceOptions, gx as Watch, gy as WhereExpression, gz as WorkingState, gA as WriteResult, gB as checkBacking, gC as consoleLogger, gD as currentCall, gE as currentTurn, gF as guardStream, gG as guardText, gH as recipientHash, gI as renderLive, gJ as renderSuffix, gK as silentLogger, gL as tool, gM as verifyContactToken, gN as violatesGuard } from './client-B_ip8T2o.cjs';
1
+ import { C as ConstraintsBlock, H as HardConstraint, N as NiadraError, a as ClaimRecord, b as ClaimCategory, I as InternalText, s as shingles, c as Niadra, R as Resolvers, d as ContextResponse, M as Mode, T as TurnPins, e as ContextResult, f as ModelUsage, L as Logger, S as SubjectKind, g as Handle, O as ObjectRef } from './client-CWMxmJHs.cjs';
2
+ export { A as AGENT_MEMORY_TOOL_DEFINITIONS, h as AGENT_MEMORY_TOOL_NAMES, i as ActionEvent, j as ActionInfo, k as Actions, l as Admin, m as AgentMemoryBlock, n as AgentMemoryParams, o as AgentMemoryResult, p as AgentMemorySearchRequest, q as AgentMemorySearchResponse, r as AgentMemorySource, t as AgentNote, u as AgentNoteKind, v as AgentNoteOrigin, w as AgentNoteProposal, x as AgentNoteStatus, y as AgentNoteVisibility, z as AgentSession, B as AgentState, D as AgentStateConflict, E as AgentStateHandle, F as AgentStateMeta, G as AgentStateMetaPage, J as AgentStateReadRequest, K as AgentStateScope, P as AgentStateWrite, Q as AgentStateWriteResult, U as AgentTurnOptions, V as AnchorEvidence, W as Api, X as ArmComparison, Y as ArmOutcomes, Z as AskedAttribute, _ as AssertionMethod, $ as AssertionOutcome, a0 as AssertionStats, a1 as Attribute, a2 as AttributeEntry, a3 as AttributionReport, a4 as AttributionRow, a5 as AttributionTotal, a6 as Backing, a7 as BackingReport, a8 as BackingSources, a9 as BatchItem, aa as BatchRequest, ab as BatchResponse, ac as BiFile, ad as BiUpload, ae as BiUploadRequest, af as BlobError, ag as BlobStore, ah as BlockSubject, ai as BoundArg, aj as BoundTools, ak as BudgetBlock, al as BudgetCut, am as BudgetPack, an as BudgetUse, ao as CacheDirectives, ap as CacheOptions, aq as CallCapture, ar as CaseClosed, as as CaseOpened, at as Change, au as ChangePage, av as ChangeSinceSeen, aw as ChannelState, ax as CheckBatchRequest, ay as CheckBatchResponse, az as CheckOptions, aA as CheckRequest, aB as CheckResult, aC as ClaimCheck, aD as ClaimCheckOptions, aE as ClaimContractSummary, aF as ClaimEvidence, aG as ClaimEvidenceRef, aH as ClaimKind, aI as ClaimOutputs, aJ as ClaimParams, aK as ClaimRelease, aL as ClaimRequest, aM as ClaimValue, aN as ClaimVerdict, aO as ClaimVia, aP as Claimed, aQ as ClientOptions, aR as Closes, aS as Commitment, aT as CommitmentDecided, aU as CommitmentDecidedDetail, aV as CommitmentMade, aW as CommitmentMadeDetail, aX as CommitmentRef, aY as CommitmentWithdrawn, aZ as CommitmentWithdrawnDetail, a_ as CompanyRule, a$ as Conflict, b0 as ConflictCounts, b1 as ConstraintOrigin, b2 as ConstraintsRequest, b3 as ContactBudget, b4 as ContactBudgetUse, b5 as ContactClaims, b6 as ContactCount, b7 as ContactGateway, b8 as ContactKey, b9 as ContactKeys, ba as ContactMade, bb as ContactMadeDetail, bc as ContactTokenParams, bd as ContactTokenRefusal, be as Content, bf as ContentMarker, bg as ContentMode, bh as ContentRelease, bi as ContentReleaseResult, bj as ContentResolver, bk as ContextFormat, bl as ContextOptions, bm as ContextPack, bn as ContextParams, bo as ContextRequest, bp as ContextSource, bq as ContextStamp, br as ContextUseEntry, bs as Conversation, bt as ConversationAction, bu as ConversationEndedItem, bv as ConversationEvent, bw as ConversationParams, bx as CoordinationBlock, by as CoordinationOverview, bz as CoordinationReport, bA as CoordinationReportPage, bB as CorrectParams, bC as CorrectionAction, bD as CorrectionRequest, bE as CounterfactualCase, bF as CounterfactualEngaged, bG as CounterfactualEngagement, bH as CounterfactualRunCreate, bI as CounterfactualRunPage, bJ as CreateAgentNoteRequest, bK as DEFAULT_CACHE, bL as DEFAULT_QUEUE, bM as DEFAULT_TIMEOUTS, bN as DEFAULT_VOICE, bO as DELETE, bP as DataIssue, bQ as DataIssuePage, bR as Declarations, bS as DeclareRequest, bT as DeclareResult, bU as DeliveryPath, bV as DerivedState, bW as Detect, bX as DriftChanges, bY as Effect, bZ as EffectCount, b_ as EffectDeclared, b$ as EffectDetail, c0 as EffectKind, c1 as EffectReserve, c2 as EffectSeen, c3 as EffectSettle, c4 as EffectState, c5 as EffectStatus, c6 as Engaged, c7 as EpisodeOut, c8 as Erasure, c9 as EventItem, ca as EventKind, cb as Evidence, cc as ExperimentReport, cd as ExperimentResult, ce as ExportPackage, cf as FAIL_CLOSED, cg as FactHistory, ch as FactOut, ci as Feature, cj as Feedback, ck as FeedbackAction, cl as FeedbackParams, cm as FeedbackRequest, cn as Fetched, co as FieldCoverage, cp as FieldState, cq as ForgetTarget, cr as GatewayOptions, cs as Guard, ct as GuardLike, cu as GuardOptions, cv as Guarded, cw as HandleType, cx as Handoff, cy as HandoffContext, cz as HandoffCreate, cA as HandoffDeclared, cB as HandoffDetail, cC as HandoffItem, cD as HandoffOutcome, cE as HandoffPackage, cF as HandoffParams, cG as HeartbeatItem, cH as HistoryFilters, cI as HistoryItem, cJ as HistoryItemKind, cK as IdentifyItem, cL as IdentifyParams, cM as IdentityCalibration, cN as Include, cO as Inference, cP as InferenceCorrection, cQ as InferencePage, cR as IngestStatus, cS as InterestState, cT as InterleavingReport, cU as InterleavingRow, cV as InterleavingTotal, cW as InternalText, cX as ItemError, cY as ItemVersion, cZ as KeyIdentity, c_ as LeaseDeclared, c$ as LeaseDetail, d0 as LegalHold, d1 as LegalHoldCreate, d2 as LegalHoldRelease, d3 as LiveTurn, d4 as Lock, d5 as MAX_BATCH_ITEMS, d6 as MAX_EVENT_TEXT, d7 as MAX_MEDIA_BYTES, d8 as MediaUpload, d9 as MediaUploadRequest, da as MediaUploadResponse, db as MemorySeen, dc as NOT_FOUND, dd as Natures, de as Negation, df as NiadraAPIError, dg as NiadraAbortError, dh as NiadraAuthenticationError, di as NiadraConfigError, dj as NiadraConnectionError, dk as NiadraContactTokenError, dl as NiadraPermissionError, dm as NiadraRateLimitError, dn as NiadraReplayRefusedError, dp as NiadraTimeoutError, dq as NiadraValidationError, dr as Notification, ds as NotificationPage, dt as ObjectCoverage, du as ObjectPush, dv as ObjectPushRequest, dw as ObjectPushResponse, dx as ObjectRead, dy as ObjectSnapshotResponse, dz as ObjectTimeline, dA as ObjectTimelineParams, dB as Observation, dC as OpenItemOut, dD as OpenItemRequest, dE as OpenObject, dF as OpenParams, dG as OpenedItem, dH as Origin, dI as OutcomeLink, dJ as OutcomePage, dK as OutcomeRequest, dL as OutcomeState, dM as Owner, dN as OwnershipClaim, dO as OwnershipCount, dP as PERSONAL_DATA_TOOL_ERROR, dQ as PackGuard, dR as PackLayer, dS as PackSection, dT as PackSlot, dU as PackSlotDerived, dV as PackStamp, dW as PowerRequest, dX as PowerResult, dY as Preference, dZ as PrefetchParams, d_ as PrefetchRequest, d$ as Presented, e0 as PresentedItem, e1 as PreviousValue, e2 as Problem, e3 as ProfileMatch, e4 as ProfileMemory, e5 as PromiseRef, e6 as PromoteRequest, e7 as PromoteResponse, e8 as ProposalStatus, e9 as Provenance, ea as QueueOptions, eb as ReadingResult, ec as ReconcileRequest, ed as ReconcileResult, ee as ReconciledLine, ef as RecordedToolOptions, eg as Recurrence, eh as Refetch, ei as RefreshRelease, ej as RefreshReleased, ek as RefreshRequest, el as RefreshRequestPage, em as Refusal, en as ReleaseDetail, eo as RememberParams, ep as RememberResult, eq as Rendered, er as ReplayAssertion, es as ReplayBlocker, et as ReplayCase, eu as ReplayCaseRequest, ev as ReplayHistoryEntry, ew as ReplayResult, ex as RequestOptions, ey as Resolved, ez as Resolver, eA as Result, eB as ResultObjects, eC as ReviewRequest, eD as ReviewRequestCreate, eE as ReviewRequestPage, eF as ReviewResolution, eG as Scenario, eH as ScenarioCreate, eI as ScenarioFromReport, eJ as ScenarioPage, eK as ScenarioRun, eL as ScenarioRunCreate, eM as ScenarioRunSummary, eN as ScenarioUpdate, eO as ScenarioVerdict, eP as SdkProfile, eQ as SearchRequest, eR as SearchResponse, eS as Seen, eT as SeenTokens, eU as ShadowRequest, eV as ShadowRun, eW as Shown, eX as ShownValue, eY as SlotChannelRank, eZ as SlotWhy, e_ as SoftConstraint, e$ as SourceCoverage, f0 as Speaker, f1 as SpeakerRef, f2 as StateMode, f3 as StateReadRequest, f4 as StateReadResponse, f5 as StateRef, f6 as StateVerifyRequest, f7 as StateVerifyResponse, f8 as StateView, f9 as StateViewRequest, fa as StateWrite, fb as Subject, fc as SubjectToken, fd as SubjectTokenRequest, fe as Suppression, ff as SuppressionAdded, fg as SuppressionAddedDetail, fh as SuppressionLifted, fi as SuppressionLiftedDetail, fj as SuppressionPage, fk as SuppressionSalt, fl as TOOL_DEFINITIONS, fm as TOOL_NAMES, fn as TargetModel, fo as Task, fp as TaskAction, fq as TaskEndedItem, fr as TaskEvent, fs as TaskLockDeclared, ft as TaskLockDetail, fu as TaskParams, fv as TimeWindow, fw as TimelineRequest, fx as TimelineResponse, fy as Timeouts, fz as TimerState, fA as Timestamp, fB as Timings, fC as ToolBinding, fD as ToolCapabilities, fE as ToolDefinition, fF as ToolOptions, fG as TrackEvent, fH as TraitOut, fI as TurnAgent, fJ as TurnBlob, fK as TurnBuild, fL as TurnCall, fM as TurnCompilerPins, fN as TurnConstraints, fO as TurnCoordination, fP as TurnCost, fQ as TurnEffect, fR as TurnFlag, fS as TurnFrame, fT as TurnIndexEntry, fU as TurnIndexPage, fV as TurnKind, fW as TurnObservation, fX as TurnOptions, fY as TurnOutput, fZ as TurnParams, f_ as TurnProvenance, f$ as TurnRead, g0 as TurnRecord, g1 as TurnRecorder, g2 as TurnRecordingOptions, g3 as TurnRecordingSummary, g4 as TurnSearchRequest, g5 as TurnSearchResponse, g6 as TurnSummary, g7 as TurnTokens, g8 as TurnView, g9 as TurnsRequest, ga as TurnsResponse, gb as TypeCoverage, gc as TypeFingerprintRequest, gd as TypeFingerprintResponse, ge as UnbackedValue, gf as UnmetDemand, gg as UnmetDemandPage, gh as Unwatch, gi as UploadParams, gj as ValueEvidence, gk as ValueKind, gl as ValueState, gm as Verdict, gn as Verification, go as VerificationResult, gp as VerifyCheck, gq as VerifyItem, gr as VerifyMethod, gs as VerifyParams, gt as View, gu as Visibility, gv as VoiceInfo, gw as VoiceOptions, gx as Watch, gy as WhereExpression, gz as WorkingState, gA as WriteResult, gB as checkBacking, gC as consoleLogger, gD as currentCall, gE as currentTurn, gF as guardStream, gG as guardText, gH as recipientHash, gI as renderLive, gJ as renderSuffix, gK as silentLogger, gL as tool, gM as verifyContactToken, gN as violatesGuard } from './client-CWMxmJHs.cjs';
3
3
 
4
4
  /**
5
5
  * The constraints block rendered for one tool call (`spec/constraints.md`, sections 6 and 7): what the
@@ -1193,6 +1193,6 @@ declare function baseURLFromKey(key: ParsedApiKey): string;
1193
1193
  */
1194
1194
  declare function uuidv7(now?: number): string;
1195
1195
 
1196
- declare const VERSION = "0.9.0";
1196
+ declare const VERSION = "0.9.1";
1197
1197
 
1198
1198
  export { ClaimCategory, ClaimRecord, type Binding as ConstraintBinding, type BindingArg as ConstraintBindingArg, type Call$1 as ConstraintCall, type Rendering as ConstraintRendering, ConstraintsBlock, type Honored as ConstraintsHonored, ContextResponse, ContextResult, Counterfactual, type Element as CounterfactualElement, type CounterfactualOptions, type CounterfactualRun, type CounterfactualRunOptions, type ExposureTokenRefusal, Handle, HardConstraint, Logger, type Logic, ModelUsage, Niadra, NiadraDestinationError, NiadraError, NiadraExposureTokenError, ObjectRef, type ParsedApiKey, type ReplayAgent, type ReplayInput, Mode as ReplayMode, type RunOptions as ReplayOptions, type ReplayRun, Replayer, ResolverWorker, Resolvers, type SessionSource, SubjectKind, TurnPins, VERSION, type WrapSession, baseURLFromKey, canonicalDestination, canonicalJson, index as claims, exposureToken, expr, handles, honored as honoredConstraints, injectContext, derive$1 as introspect, jsonDigest, modelUsage, overlapAtK, parseApiKey, parseExposureToken, pinDifferences, providerOf, render as renderConstraints, satisfies as satisfiesConstraint, suppressionKey, toObjectRef, tokenCounts, useAsyncLocalStorage, uuidv7, wrap };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as ConstraintsBlock, H as HardConstraint, N as NiadraError, a as ClaimRecord, b as ClaimCategory, I as InternalText, s as shingles, c as Niadra, R as Resolvers, d as ContextResponse, M as Mode, T as TurnPins, e as ContextResult, f as ModelUsage, L as Logger, S as SubjectKind, g as Handle, O as ObjectRef } from './client-B_ip8T2o.js';
2
- export { A as AGENT_MEMORY_TOOL_DEFINITIONS, h as AGENT_MEMORY_TOOL_NAMES, i as ActionEvent, j as ActionInfo, k as Actions, l as Admin, m as AgentMemoryBlock, n as AgentMemoryParams, o as AgentMemoryResult, p as AgentMemorySearchRequest, q as AgentMemorySearchResponse, r as AgentMemorySource, t as AgentNote, u as AgentNoteKind, v as AgentNoteOrigin, w as AgentNoteProposal, x as AgentNoteStatus, y as AgentNoteVisibility, z as AgentSession, B as AgentState, D as AgentStateConflict, E as AgentStateHandle, F as AgentStateMeta, G as AgentStateMetaPage, J as AgentStateReadRequest, K as AgentStateScope, P as AgentStateWrite, Q as AgentStateWriteResult, U as AgentTurnOptions, V as AnchorEvidence, W as Api, X as ArmComparison, Y as ArmOutcomes, Z as AskedAttribute, _ as AssertionMethod, $ as AssertionOutcome, a0 as AssertionStats, a1 as Attribute, a2 as AttributeEntry, a3 as AttributionReport, a4 as AttributionRow, a5 as AttributionTotal, a6 as Backing, a7 as BackingReport, a8 as BackingSources, a9 as BatchItem, aa as BatchRequest, ab as BatchResponse, ac as BiFile, ad as BiUpload, ae as BiUploadRequest, af as BlobError, ag as BlobStore, ah as BlockSubject, ai as BoundArg, aj as BoundTools, ak as BudgetBlock, al as BudgetCut, am as BudgetPack, an as BudgetUse, ao as CacheDirectives, ap as CacheOptions, aq as CallCapture, ar as CaseClosed, as as CaseOpened, at as Change, au as ChangePage, av as ChangeSinceSeen, aw as ChannelState, ax as CheckBatchRequest, ay as CheckBatchResponse, az as CheckOptions, aA as CheckRequest, aB as CheckResult, aC as ClaimCheck, aD as ClaimCheckOptions, aE as ClaimContractSummary, aF as ClaimEvidence, aG as ClaimEvidenceRef, aH as ClaimKind, aI as ClaimOutputs, aJ as ClaimParams, aK as ClaimRelease, aL as ClaimRequest, aM as ClaimValue, aN as ClaimVerdict, aO as ClaimVia, aP as Claimed, aQ as ClientOptions, aR as Closes, aS as Commitment, aT as CommitmentDecided, aU as CommitmentDecidedDetail, aV as CommitmentMade, aW as CommitmentMadeDetail, aX as CommitmentRef, aY as CommitmentWithdrawn, aZ as CommitmentWithdrawnDetail, a_ as CompanyRule, a$ as Conflict, b0 as ConflictCounts, b1 as ConstraintOrigin, b2 as ConstraintsRequest, b3 as ContactBudget, b4 as ContactBudgetUse, b5 as ContactClaims, b6 as ContactCount, b7 as ContactGateway, b8 as ContactKey, b9 as ContactKeys, ba as ContactMade, bb as ContactMadeDetail, bc as ContactTokenParams, bd as ContactTokenRefusal, be as Content, bf as ContentMarker, bg as ContentMode, bh as ContentRelease, bi as ContentReleaseResult, bj as ContentResolver, bk as ContextFormat, bl as ContextOptions, bm as ContextPack, bn as ContextParams, bo as ContextRequest, bp as ContextSource, bq as ContextStamp, br as ContextUseEntry, bs as Conversation, bt as ConversationAction, bu as ConversationEndedItem, bv as ConversationEvent, bw as ConversationParams, bx as CoordinationBlock, by as CoordinationOverview, bz as CoordinationReport, bA as CoordinationReportPage, bB as CorrectParams, bC as CorrectionAction, bD as CorrectionRequest, bE as CounterfactualCase, bF as CounterfactualEngaged, bG as CounterfactualEngagement, bH as CounterfactualRunCreate, bI as CounterfactualRunPage, bJ as CreateAgentNoteRequest, bK as DEFAULT_CACHE, bL as DEFAULT_QUEUE, bM as DEFAULT_TIMEOUTS, bN as DEFAULT_VOICE, bO as DELETE, bP as DataIssue, bQ as DataIssuePage, bR as Declarations, bS as DeclareRequest, bT as DeclareResult, bU as DeliveryPath, bV as DerivedState, bW as Detect, bX as DriftChanges, bY as Effect, bZ as EffectCount, b_ as EffectDeclared, b$ as EffectDetail, c0 as EffectKind, c1 as EffectReserve, c2 as EffectSeen, c3 as EffectSettle, c4 as EffectState, c5 as EffectStatus, c6 as Engaged, c7 as EpisodeOut, c8 as Erasure, c9 as EventItem, ca as EventKind, cb as Evidence, cc as ExperimentReport, cd as ExperimentResult, ce as ExportPackage, cf as FAIL_CLOSED, cg as FactHistory, ch as FactOut, ci as Feature, cj as Feedback, ck as FeedbackAction, cl as FeedbackParams, cm as FeedbackRequest, cn as Fetched, co as FieldCoverage, cp as FieldState, cq as ForgetTarget, cr as GatewayOptions, cs as Guard, ct as GuardLike, cu as GuardOptions, cv as Guarded, cw as HandleType, cx as Handoff, cy as HandoffContext, cz as HandoffCreate, cA as HandoffDeclared, cB as HandoffDetail, cC as HandoffItem, cD as HandoffOutcome, cE as HandoffPackage, cF as HandoffParams, cG as HeartbeatItem, cH as HistoryFilters, cI as HistoryItem, cJ as HistoryItemKind, cK as IdentifyItem, cL as IdentifyParams, cM as IdentityCalibration, cN as Include, cO as Inference, cP as InferenceCorrection, cQ as InferencePage, cR as IngestStatus, cS as InterestState, cT as InterleavingReport, cU as InterleavingRow, cV as InterleavingTotal, cW as InternalText, cX as ItemError, cY as ItemVersion, cZ as KeyIdentity, c_ as LeaseDeclared, c$ as LeaseDetail, d0 as LegalHold, d1 as LegalHoldCreate, d2 as LegalHoldRelease, d3 as LiveTurn, d4 as Lock, d5 as MAX_BATCH_ITEMS, d6 as MAX_EVENT_TEXT, d7 as MAX_MEDIA_BYTES, d8 as MediaUpload, d9 as MediaUploadRequest, da as MediaUploadResponse, db as MemorySeen, dc as NOT_FOUND, dd as Natures, de as Negation, df as NiadraAPIError, dg as NiadraAbortError, dh as NiadraAuthenticationError, di as NiadraConfigError, dj as NiadraConnectionError, dk as NiadraContactTokenError, dl as NiadraPermissionError, dm as NiadraRateLimitError, dn as NiadraReplayRefusedError, dp as NiadraTimeoutError, dq as NiadraValidationError, dr as Notification, ds as NotificationPage, dt as ObjectCoverage, du as ObjectPush, dv as ObjectPushRequest, dw as ObjectPushResponse, dx as ObjectRead, dy as ObjectSnapshotResponse, dz as ObjectTimeline, dA as ObjectTimelineParams, dB as Observation, dC as OpenItemOut, dD as OpenItemRequest, dE as OpenObject, dF as OpenParams, dG as OpenedItem, dH as Origin, dI as OutcomeLink, dJ as OutcomePage, dK as OutcomeRequest, dL as OutcomeState, dM as Owner, dN as OwnershipClaim, dO as OwnershipCount, dP as PERSONAL_DATA_TOOL_ERROR, dQ as PackGuard, dR as PackLayer, dS as PackSection, dT as PackSlot, dU as PackSlotDerived, dV as PackStamp, dW as PowerRequest, dX as PowerResult, dY as Preference, dZ as PrefetchParams, d_ as PrefetchRequest, d$ as Presented, e0 as PresentedItem, e1 as PreviousValue, e2 as Problem, e3 as ProfileMatch, e4 as ProfileMemory, e5 as PromiseRef, e6 as PromoteRequest, e7 as PromoteResponse, e8 as ProposalStatus, e9 as Provenance, ea as QueueOptions, eb as ReadingResult, ec as ReconcileRequest, ed as ReconcileResult, ee as ReconciledLine, ef as RecordedToolOptions, eg as Recurrence, eh as Refetch, ei as RefreshRelease, ej as RefreshReleased, ek as RefreshRequest, el as RefreshRequestPage, em as Refusal, en as ReleaseDetail, eo as RememberParams, ep as RememberResult, eq as Rendered, er as ReplayAssertion, es as ReplayBlocker, et as ReplayCase, eu as ReplayCaseRequest, ev as ReplayHistoryEntry, ew as ReplayResult, ex as RequestOptions, ey as Resolved, ez as Resolver, eA as Result, eB as ResultObjects, eC as ReviewRequest, eD as ReviewRequestCreate, eE as ReviewRequestPage, eF as ReviewResolution, eG as Scenario, eH as ScenarioCreate, eI as ScenarioFromReport, eJ as ScenarioPage, eK as ScenarioRun, eL as ScenarioRunCreate, eM as ScenarioRunSummary, eN as ScenarioUpdate, eO as ScenarioVerdict, eP as SdkProfile, eQ as SearchRequest, eR as SearchResponse, eS as Seen, eT as SeenTokens, eU as ShadowRequest, eV as ShadowRun, eW as Shown, eX as ShownValue, eY as SlotChannelRank, eZ as SlotWhy, e_ as SoftConstraint, e$ as SourceCoverage, f0 as Speaker, f1 as SpeakerRef, f2 as StateMode, f3 as StateReadRequest, f4 as StateReadResponse, f5 as StateRef, f6 as StateVerifyRequest, f7 as StateVerifyResponse, f8 as StateView, f9 as StateViewRequest, fa as StateWrite, fb as Subject, fc as SubjectToken, fd as SubjectTokenRequest, fe as Suppression, ff as SuppressionAdded, fg as SuppressionAddedDetail, fh as SuppressionLifted, fi as SuppressionLiftedDetail, fj as SuppressionPage, fk as SuppressionSalt, fl as TOOL_DEFINITIONS, fm as TOOL_NAMES, fn as TargetModel, fo as Task, fp as TaskAction, fq as TaskEndedItem, fr as TaskEvent, fs as TaskLockDeclared, ft as TaskLockDetail, fu as TaskParams, fv as TimeWindow, fw as TimelineRequest, fx as TimelineResponse, fy as Timeouts, fz as TimerState, fA as Timestamp, fB as Timings, fC as ToolBinding, fD as ToolCapabilities, fE as ToolDefinition, fF as ToolOptions, fG as TrackEvent, fH as TraitOut, fI as TurnAgent, fJ as TurnBlob, fK as TurnBuild, fL as TurnCall, fM as TurnCompilerPins, fN as TurnConstraints, fO as TurnCoordination, fP as TurnCost, fQ as TurnEffect, fR as TurnFlag, fS as TurnFrame, fT as TurnIndexEntry, fU as TurnIndexPage, fV as TurnKind, fW as TurnObservation, fX as TurnOptions, fY as TurnOutput, fZ as TurnParams, f_ as TurnProvenance, f$ as TurnRead, g0 as TurnRecord, g1 as TurnRecorder, g2 as TurnRecordingOptions, g3 as TurnRecordingSummary, g4 as TurnSearchRequest, g5 as TurnSearchResponse, g6 as TurnSummary, g7 as TurnTokens, g8 as TurnView, g9 as TurnsRequest, ga as TurnsResponse, gb as TypeCoverage, gc as TypeFingerprintRequest, gd as TypeFingerprintResponse, ge as UnbackedValue, gf as UnmetDemand, gg as UnmetDemandPage, gh as Unwatch, gi as UploadParams, gj as ValueEvidence, gk as ValueKind, gl as ValueState, gm as Verdict, gn as Verification, go as VerificationResult, gp as VerifyCheck, gq as VerifyItem, gr as VerifyMethod, gs as VerifyParams, gt as View, gu as Visibility, gv as VoiceInfo, gw as VoiceOptions, gx as Watch, gy as WhereExpression, gz as WorkingState, gA as WriteResult, gB as checkBacking, gC as consoleLogger, gD as currentCall, gE as currentTurn, gF as guardStream, gG as guardText, gH as recipientHash, gI as renderLive, gJ as renderSuffix, gK as silentLogger, gL as tool, gM as verifyContactToken, gN as violatesGuard } from './client-B_ip8T2o.js';
1
+ import { C as ConstraintsBlock, H as HardConstraint, N as NiadraError, a as ClaimRecord, b as ClaimCategory, I as InternalText, s as shingles, c as Niadra, R as Resolvers, d as ContextResponse, M as Mode, T as TurnPins, e as ContextResult, f as ModelUsage, L as Logger, S as SubjectKind, g as Handle, O as ObjectRef } from './client-CWMxmJHs.js';
2
+ export { A as AGENT_MEMORY_TOOL_DEFINITIONS, h as AGENT_MEMORY_TOOL_NAMES, i as ActionEvent, j as ActionInfo, k as Actions, l as Admin, m as AgentMemoryBlock, n as AgentMemoryParams, o as AgentMemoryResult, p as AgentMemorySearchRequest, q as AgentMemorySearchResponse, r as AgentMemorySource, t as AgentNote, u as AgentNoteKind, v as AgentNoteOrigin, w as AgentNoteProposal, x as AgentNoteStatus, y as AgentNoteVisibility, z as AgentSession, B as AgentState, D as AgentStateConflict, E as AgentStateHandle, F as AgentStateMeta, G as AgentStateMetaPage, J as AgentStateReadRequest, K as AgentStateScope, P as AgentStateWrite, Q as AgentStateWriteResult, U as AgentTurnOptions, V as AnchorEvidence, W as Api, X as ArmComparison, Y as ArmOutcomes, Z as AskedAttribute, _ as AssertionMethod, $ as AssertionOutcome, a0 as AssertionStats, a1 as Attribute, a2 as AttributeEntry, a3 as AttributionReport, a4 as AttributionRow, a5 as AttributionTotal, a6 as Backing, a7 as BackingReport, a8 as BackingSources, a9 as BatchItem, aa as BatchRequest, ab as BatchResponse, ac as BiFile, ad as BiUpload, ae as BiUploadRequest, af as BlobError, ag as BlobStore, ah as BlockSubject, ai as BoundArg, aj as BoundTools, ak as BudgetBlock, al as BudgetCut, am as BudgetPack, an as BudgetUse, ao as CacheDirectives, ap as CacheOptions, aq as CallCapture, ar as CaseClosed, as as CaseOpened, at as Change, au as ChangePage, av as ChangeSinceSeen, aw as ChannelState, ax as CheckBatchRequest, ay as CheckBatchResponse, az as CheckOptions, aA as CheckRequest, aB as CheckResult, aC as ClaimCheck, aD as ClaimCheckOptions, aE as ClaimContractSummary, aF as ClaimEvidence, aG as ClaimEvidenceRef, aH as ClaimKind, aI as ClaimOutputs, aJ as ClaimParams, aK as ClaimRelease, aL as ClaimRequest, aM as ClaimValue, aN as ClaimVerdict, aO as ClaimVia, aP as Claimed, aQ as ClientOptions, aR as Closes, aS as Commitment, aT as CommitmentDecided, aU as CommitmentDecidedDetail, aV as CommitmentMade, aW as CommitmentMadeDetail, aX as CommitmentRef, aY as CommitmentWithdrawn, aZ as CommitmentWithdrawnDetail, a_ as CompanyRule, a$ as Conflict, b0 as ConflictCounts, b1 as ConstraintOrigin, b2 as ConstraintsRequest, b3 as ContactBudget, b4 as ContactBudgetUse, b5 as ContactClaims, b6 as ContactCount, b7 as ContactGateway, b8 as ContactKey, b9 as ContactKeys, ba as ContactMade, bb as ContactMadeDetail, bc as ContactTokenParams, bd as ContactTokenRefusal, be as Content, bf as ContentMarker, bg as ContentMode, bh as ContentRelease, bi as ContentReleaseResult, bj as ContentResolver, bk as ContextFormat, bl as ContextOptions, bm as ContextPack, bn as ContextParams, bo as ContextRequest, bp as ContextSource, bq as ContextStamp, br as ContextUseEntry, bs as Conversation, bt as ConversationAction, bu as ConversationEndedItem, bv as ConversationEvent, bw as ConversationParams, bx as CoordinationBlock, by as CoordinationOverview, bz as CoordinationReport, bA as CoordinationReportPage, bB as CorrectParams, bC as CorrectionAction, bD as CorrectionRequest, bE as CounterfactualCase, bF as CounterfactualEngaged, bG as CounterfactualEngagement, bH as CounterfactualRunCreate, bI as CounterfactualRunPage, bJ as CreateAgentNoteRequest, bK as DEFAULT_CACHE, bL as DEFAULT_QUEUE, bM as DEFAULT_TIMEOUTS, bN as DEFAULT_VOICE, bO as DELETE, bP as DataIssue, bQ as DataIssuePage, bR as Declarations, bS as DeclareRequest, bT as DeclareResult, bU as DeliveryPath, bV as DerivedState, bW as Detect, bX as DriftChanges, bY as Effect, bZ as EffectCount, b_ as EffectDeclared, b$ as EffectDetail, c0 as EffectKind, c1 as EffectReserve, c2 as EffectSeen, c3 as EffectSettle, c4 as EffectState, c5 as EffectStatus, c6 as Engaged, c7 as EpisodeOut, c8 as Erasure, c9 as EventItem, ca as EventKind, cb as Evidence, cc as ExperimentReport, cd as ExperimentResult, ce as ExportPackage, cf as FAIL_CLOSED, cg as FactHistory, ch as FactOut, ci as Feature, cj as Feedback, ck as FeedbackAction, cl as FeedbackParams, cm as FeedbackRequest, cn as Fetched, co as FieldCoverage, cp as FieldState, cq as ForgetTarget, cr as GatewayOptions, cs as Guard, ct as GuardLike, cu as GuardOptions, cv as Guarded, cw as HandleType, cx as Handoff, cy as HandoffContext, cz as HandoffCreate, cA as HandoffDeclared, cB as HandoffDetail, cC as HandoffItem, cD as HandoffOutcome, cE as HandoffPackage, cF as HandoffParams, cG as HeartbeatItem, cH as HistoryFilters, cI as HistoryItem, cJ as HistoryItemKind, cK as IdentifyItem, cL as IdentifyParams, cM as IdentityCalibration, cN as Include, cO as Inference, cP as InferenceCorrection, cQ as InferencePage, cR as IngestStatus, cS as InterestState, cT as InterleavingReport, cU as InterleavingRow, cV as InterleavingTotal, cW as InternalText, cX as ItemError, cY as ItemVersion, cZ as KeyIdentity, c_ as LeaseDeclared, c$ as LeaseDetail, d0 as LegalHold, d1 as LegalHoldCreate, d2 as LegalHoldRelease, d3 as LiveTurn, d4 as Lock, d5 as MAX_BATCH_ITEMS, d6 as MAX_EVENT_TEXT, d7 as MAX_MEDIA_BYTES, d8 as MediaUpload, d9 as MediaUploadRequest, da as MediaUploadResponse, db as MemorySeen, dc as NOT_FOUND, dd as Natures, de as Negation, df as NiadraAPIError, dg as NiadraAbortError, dh as NiadraAuthenticationError, di as NiadraConfigError, dj as NiadraConnectionError, dk as NiadraContactTokenError, dl as NiadraPermissionError, dm as NiadraRateLimitError, dn as NiadraReplayRefusedError, dp as NiadraTimeoutError, dq as NiadraValidationError, dr as Notification, ds as NotificationPage, dt as ObjectCoverage, du as ObjectPush, dv as ObjectPushRequest, dw as ObjectPushResponse, dx as ObjectRead, dy as ObjectSnapshotResponse, dz as ObjectTimeline, dA as ObjectTimelineParams, dB as Observation, dC as OpenItemOut, dD as OpenItemRequest, dE as OpenObject, dF as OpenParams, dG as OpenedItem, dH as Origin, dI as OutcomeLink, dJ as OutcomePage, dK as OutcomeRequest, dL as OutcomeState, dM as Owner, dN as OwnershipClaim, dO as OwnershipCount, dP as PERSONAL_DATA_TOOL_ERROR, dQ as PackGuard, dR as PackLayer, dS as PackSection, dT as PackSlot, dU as PackSlotDerived, dV as PackStamp, dW as PowerRequest, dX as PowerResult, dY as Preference, dZ as PrefetchParams, d_ as PrefetchRequest, d$ as Presented, e0 as PresentedItem, e1 as PreviousValue, e2 as Problem, e3 as ProfileMatch, e4 as ProfileMemory, e5 as PromiseRef, e6 as PromoteRequest, e7 as PromoteResponse, e8 as ProposalStatus, e9 as Provenance, ea as QueueOptions, eb as ReadingResult, ec as ReconcileRequest, ed as ReconcileResult, ee as ReconciledLine, ef as RecordedToolOptions, eg as Recurrence, eh as Refetch, ei as RefreshRelease, ej as RefreshReleased, ek as RefreshRequest, el as RefreshRequestPage, em as Refusal, en as ReleaseDetail, eo as RememberParams, ep as RememberResult, eq as Rendered, er as ReplayAssertion, es as ReplayBlocker, et as ReplayCase, eu as ReplayCaseRequest, ev as ReplayHistoryEntry, ew as ReplayResult, ex as RequestOptions, ey as Resolved, ez as Resolver, eA as Result, eB as ResultObjects, eC as ReviewRequest, eD as ReviewRequestCreate, eE as ReviewRequestPage, eF as ReviewResolution, eG as Scenario, eH as ScenarioCreate, eI as ScenarioFromReport, eJ as ScenarioPage, eK as ScenarioRun, eL as ScenarioRunCreate, eM as ScenarioRunSummary, eN as ScenarioUpdate, eO as ScenarioVerdict, eP as SdkProfile, eQ as SearchRequest, eR as SearchResponse, eS as Seen, eT as SeenTokens, eU as ShadowRequest, eV as ShadowRun, eW as Shown, eX as ShownValue, eY as SlotChannelRank, eZ as SlotWhy, e_ as SoftConstraint, e$ as SourceCoverage, f0 as Speaker, f1 as SpeakerRef, f2 as StateMode, f3 as StateReadRequest, f4 as StateReadResponse, f5 as StateRef, f6 as StateVerifyRequest, f7 as StateVerifyResponse, f8 as StateView, f9 as StateViewRequest, fa as StateWrite, fb as Subject, fc as SubjectToken, fd as SubjectTokenRequest, fe as Suppression, ff as SuppressionAdded, fg as SuppressionAddedDetail, fh as SuppressionLifted, fi as SuppressionLiftedDetail, fj as SuppressionPage, fk as SuppressionSalt, fl as TOOL_DEFINITIONS, fm as TOOL_NAMES, fn as TargetModel, fo as Task, fp as TaskAction, fq as TaskEndedItem, fr as TaskEvent, fs as TaskLockDeclared, ft as TaskLockDetail, fu as TaskParams, fv as TimeWindow, fw as TimelineRequest, fx as TimelineResponse, fy as Timeouts, fz as TimerState, fA as Timestamp, fB as Timings, fC as ToolBinding, fD as ToolCapabilities, fE as ToolDefinition, fF as ToolOptions, fG as TrackEvent, fH as TraitOut, fI as TurnAgent, fJ as TurnBlob, fK as TurnBuild, fL as TurnCall, fM as TurnCompilerPins, fN as TurnConstraints, fO as TurnCoordination, fP as TurnCost, fQ as TurnEffect, fR as TurnFlag, fS as TurnFrame, fT as TurnIndexEntry, fU as TurnIndexPage, fV as TurnKind, fW as TurnObservation, fX as TurnOptions, fY as TurnOutput, fZ as TurnParams, f_ as TurnProvenance, f$ as TurnRead, g0 as TurnRecord, g1 as TurnRecorder, g2 as TurnRecordingOptions, g3 as TurnRecordingSummary, g4 as TurnSearchRequest, g5 as TurnSearchResponse, g6 as TurnSummary, g7 as TurnTokens, g8 as TurnView, g9 as TurnsRequest, ga as TurnsResponse, gb as TypeCoverage, gc as TypeFingerprintRequest, gd as TypeFingerprintResponse, ge as UnbackedValue, gf as UnmetDemand, gg as UnmetDemandPage, gh as Unwatch, gi as UploadParams, gj as ValueEvidence, gk as ValueKind, gl as ValueState, gm as Verdict, gn as Verification, go as VerificationResult, gp as VerifyCheck, gq as VerifyItem, gr as VerifyMethod, gs as VerifyParams, gt as View, gu as Visibility, gv as VoiceInfo, gw as VoiceOptions, gx as Watch, gy as WhereExpression, gz as WorkingState, gA as WriteResult, gB as checkBacking, gC as consoleLogger, gD as currentCall, gE as currentTurn, gF as guardStream, gG as guardText, gH as recipientHash, gI as renderLive, gJ as renderSuffix, gK as silentLogger, gL as tool, gM as verifyContactToken, gN as violatesGuard } from './client-CWMxmJHs.js';
3
3
 
4
4
  /**
5
5
  * The constraints block rendered for one tool call (`spec/constraints.md`, sections 6 and 7): what the
@@ -1193,6 +1193,6 @@ declare function baseURLFromKey(key: ParsedApiKey): string;
1193
1193
  */
1194
1194
  declare function uuidv7(now?: number): string;
1195
1195
 
1196
- declare const VERSION = "0.9.0";
1196
+ declare const VERSION = "0.9.1";
1197
1197
 
1198
1198
  export { ClaimCategory, ClaimRecord, type Binding as ConstraintBinding, type BindingArg as ConstraintBindingArg, type Call$1 as ConstraintCall, type Rendering as ConstraintRendering, ConstraintsBlock, type Honored as ConstraintsHonored, ContextResponse, ContextResult, Counterfactual, type Element as CounterfactualElement, type CounterfactualOptions, type CounterfactualRun, type CounterfactualRunOptions, type ExposureTokenRefusal, Handle, HardConstraint, Logger, type Logic, ModelUsage, Niadra, NiadraDestinationError, NiadraError, NiadraExposureTokenError, ObjectRef, type ParsedApiKey, type ReplayAgent, type ReplayInput, Mode as ReplayMode, type RunOptions as ReplayOptions, type ReplayRun, Replayer, ResolverWorker, Resolvers, type SessionSource, SubjectKind, TurnPins, VERSION, type WrapSession, baseURLFromKey, canonicalDestination, canonicalJson, index as claims, exposureToken, expr, handles, honored as honoredConstraints, injectContext, derive$1 as introspect, jsonDigest, modelUsage, overlapAtK, parseApiKey, parseExposureToken, pinDifferences, providerOf, render as renderConstraints, satisfies as satisfiesConstraint, suppressionKey, toObjectRef, tokenCounts, useAsyncLocalStorage, uuidv7, wrap };
package/dist/index.js CHANGED
@@ -516,7 +516,7 @@ function internalRecord(span, ref, act) {
516
516
  }
517
517
 
518
518
  // src/version.ts
519
- var VERSION = "0.9.0";
519
+ var VERSION = "0.9.1";
520
520
 
521
521
  // src/transport.ts
522
522
  var RETRYABLE_WRITE_STATUS = /* @__PURE__ */ new Set([408, 421, 429, 500, 502, 503, 504]);
@@ -610,6 +610,7 @@ var Transport = class {
610
610
  } catch (error) {
611
611
  throw deadline.explain(error);
612
612
  }
613
+ warnIfDeprecated(this.config.logger, init.method ?? "GET", url, response.headers);
613
614
  const requestId = response.headers.get("x-request-id");
614
615
  let payload;
615
616
  try {
@@ -679,6 +680,29 @@ var Deadline = class {
679
680
  return new NiadraConnectionError(`connection failed: ${message}`, { cause: error });
680
681
  }
681
682
  };
683
+ var VERSIONING_DOCS = "https://docs.niadra.com/en/security/api-versioning";
684
+ var DEPRECATION_LINK = /<([^>]*)>[^,]*;\s*rel="?deprecation"?/gi;
685
+ var deprecationsSeen = /* @__PURE__ */ new Set();
686
+ function warnIfDeprecated(logger, method, url, headers) {
687
+ const since = headers.get("deprecation");
688
+ if (since === null) return;
689
+ const links = [...(headers.get("link") ?? "").matchAll(DEPRECATION_LINK)].map((match) => match[1] ?? "");
690
+ const key2 = `${method} ${links.join(" ") || (url.split("?")[0] ?? url)}`;
691
+ if (deprecationsSeen.has(key2)) return;
692
+ deprecationsSeen.add(key2);
693
+ const sunset = headers.get("sunset");
694
+ logger.warn(
695
+ `the API deprecated a ${method} route this client calls, since ${deprecatedSince(since)}; it stops answering on ${sunset === null ? "a date not announced yet" : sunsetDay(sunset)}. See ${links.join(", ") || VERSIONING_DOCS}`
696
+ );
697
+ }
698
+ function deprecatedSince(value) {
699
+ const seconds = Number(value.trim().replace(/^@/, ""));
700
+ return Number.isInteger(seconds) ? new Date(seconds * 1e3).toISOString().slice(0, 10) : value;
701
+ }
702
+ function sunsetDay(value) {
703
+ const time = Date.parse(value);
704
+ return Number.isNaN(time) ? value : new Date(time).toISOString().slice(0, 10);
705
+ }
682
706
  async function readBody(response) {
683
707
  const text2 = await response.text();
684
708
  if (text2.length === 0) return null;
@@ -4393,26 +4417,42 @@ async function suppressionKey(salt, canonical2) {
4393
4417
  const key2 = await subtle.importKey("raw", saltBytes(salt), { name: "HMAC", hash: "SHA-256" }, false, ["sign"]);
4394
4418
  return toBase64url(new Uint8Array(await subtle.sign("HMAC", key2, new TextEncoder().encode(canonical2))));
4395
4419
  }
4420
+ var AREA_CODES = new Set(
4421
+ "11 12 13 14 15 16 17 18 19 21 22 24 27 28 31 32 33 34 35 37 38 41 42 43 44 45 46 47 48 49 51 53 54 55 61 62 63 64 65 66 67 68 69 71 73 74 75 77 79 81 82 83 84 85 86 87 88 89 91 92 93 94 95 96 97 98 99".split(" ")
4422
+ );
4423
+ var FORMAT_CHARACTERS = /\p{Cf}/gu;
4396
4424
  function phone(value) {
4397
- const raw = value.trim().replace(SEPARATORS2, "");
4398
- const international = raw.startsWith("+") || raw.startsWith("00");
4425
+ let text2 = value.normalize("NFKC").replace(FORMAT_CHARACTERS, "").trim();
4426
+ if (text2.slice(0, 4).toLowerCase() === "tel:") text2 = text2.slice(4);
4427
+ const international = text2.startsWith("+") || text2.startsWith("00");
4428
+ if (international) text2 = text2.replaceAll("(0)", "");
4429
+ const raw = text2.replace(SEPARATORS2, "");
4399
4430
  let digits = raw.startsWith("+") ? raw.slice(1) : international ? raw.slice(2) : raw;
4400
4431
  if (!DIGITS2.test(digits)) throw new NiadraDestinationError("invalid_handle");
4401
- const national = digits.replace(/^0+/, "");
4402
- if (!international && (national.length === 10 || national.length === 11) && isArea(national.slice(0, 2))) {
4403
- digits = `55${national}`;
4432
+ if (!international) {
4433
+ const national = digits.replace(/^0+/, "");
4434
+ if (isBrazilianNational(national)) {
4435
+ digits = `55${national}`;
4436
+ } else if (digits.startsWith("0") && (national.length === 12 || national.length === 13)) {
4437
+ if (isBrazilianNational(national.slice(2))) digits = `55${national.slice(2)}`;
4438
+ }
4404
4439
  }
4405
4440
  if (digits.length < 8 || digits.length > 15 || digits.startsWith("0")) {
4406
4441
  throw new NiadraDestinationError("invalid_handle");
4407
4442
  }
4408
4443
  const rest = digits.slice(2);
4409
- if (digits.startsWith("55") && rest.length === 10 && isArea(rest.slice(0, 2)) && "6789".includes(rest.charAt(2))) {
4444
+ if (digits.startsWith("55") && rest.length === 10 && AREA_CODES.has(rest.slice(0, 2)) && "6789".includes(rest.charAt(2))) {
4410
4445
  digits = `55${rest.slice(0, 2)}9${rest.slice(2)}`;
4411
4446
  }
4447
+ if (digits.length === 13 && (digits.startsWith("521") || digits.startsWith("549"))) {
4448
+ digits = digits.slice(0, 2) + digits.slice(3);
4449
+ }
4412
4450
  return `phone:+${digits}`;
4413
4451
  }
4414
- function isArea(code) {
4415
- return /^[1-9]{2}$/.test(code);
4452
+ function isBrazilianNational(national) {
4453
+ if (!AREA_CODES.has(national.slice(0, 2))) return false;
4454
+ if (national.length === 10) return "23456789".includes(national.charAt(2));
4455
+ return national.length === 11 && national.charAt(2) === "9";
4416
4456
  }
4417
4457
  function saltBytes(salt) {
4418
4458
  const bytes = fromBase64url(salt);
@@ -8503,7 +8543,8 @@ var Niadra = class _Niadra {
8503
8543
  baseURL,
8504
8544
  apiKey,
8505
8545
  fetch: fetchImpl,
8506
- defaultHeaders: options.defaultHeaders ?? {}
8546
+ defaultHeaders: options.defaultHeaders ?? {},
8547
+ logger: this.logger
8507
8548
  });
8508
8549
  const queueOptions = { ...DEFAULT_QUEUE, ...options.queue };
8509
8550
  queueOptions.maxBatchSize = Math.min(queueOptions.maxBatchSize, 499);