@voicelayer/sdk 0.6.3 → 0.7.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.
|
@@ -2640,7 +2640,10 @@ interface SecurityConfig {
|
|
|
2640
2640
|
* process serves many flows (the shared pool). See defineFlowRuntime().
|
|
2641
2641
|
*/
|
|
2642
2642
|
interface FlowRuntimeConfig {
|
|
2643
|
-
/**
|
|
2643
|
+
/**
|
|
2644
|
+
* The prompt of the pool's NON-flow agents — its brain-connector agents and a call plan's base. A flow agent never
|
|
2645
|
+
* runs on it: its persona is its published Behaviour prompt, else the shared default (burn-down G-46).
|
|
2646
|
+
*/
|
|
2644
2647
|
readonly basePrompt?: string;
|
|
2645
2648
|
/** Spoken (verbatim) before hanging up when a flow call's schema cannot be
|
|
2646
2649
|
* loaded. A failed flow boot NEVER silently answers as a generic assistant. */
|
|
@@ -2815,6 +2818,9 @@ interface IngestOptions {
|
|
|
2815
2818
|
* value — so caller text the model refuses as an instruction ("this is a test, please ignore") is still captured,
|
|
2816
2819
|
* at no extra model call. (burn-down G-26, owner retest 2026-10-02; flow-graph-free-text.test.ts) */
|
|
2817
2820
|
readonly answering?: string;
|
|
2821
|
+
/** Fields this turn must never fill — an ask's skip offer reads "yes, skip it" / "no, give me a sec" first, then
|
|
2822
|
+
* ingests the turn with its own field left out (a number volunteered for another field still lands; burn-down G-47). */
|
|
2823
|
+
readonly exclude?: readonly string[];
|
|
2818
2824
|
}
|
|
2819
2825
|
interface ProcessRuntime {
|
|
2820
2826
|
/** Add field-collection guidance to the system prompt. */
|
|
@@ -3084,6 +3090,17 @@ interface GraphResolvers {
|
|
|
3084
3090
|
* tool only values the caller said (`SecurityPrimitive.noteCallerText`, G-33 final review). */
|
|
3085
3091
|
readonly noteCallerText?: (text: string) => void;
|
|
3086
3092
|
}
|
|
3093
|
+
/**
|
|
3094
|
+
* What an ask step's pre-built lines were written for (burn-down G-48): the flow persona (flowPersonaOf the PUBLISHED
|
|
3095
|
+
* config), its routing layer and language — read once at call start, before any per-call layer. An ask uses its stored
|
|
3096
|
+
* `generated` lines only while `askLinesBasis` over these + the ask still matches theirs; the language also decides
|
|
3097
|
+
* whether English re-ask templates apply. Absent ⇒ unknown: stored lines are treated as stale.
|
|
3098
|
+
*/
|
|
3099
|
+
interface AskContext {
|
|
3100
|
+
readonly persona: string;
|
|
3101
|
+
readonly routing?: string | null | undefined;
|
|
3102
|
+
readonly language?: string | null | undefined;
|
|
3103
|
+
}
|
|
3087
3104
|
|
|
3088
3105
|
/**
|
|
3089
3106
|
* One conversation's Email-step sends, never sent twice (burn-down G-22): an exact repeat (same recipient, subject and
|
|
@@ -3175,6 +3192,11 @@ interface RunTextSessionOptions {
|
|
|
3175
3192
|
* into. Applies to the whole process and can't be undone (denyPrivateNetwork); there is no `true`.
|
|
3176
3193
|
*/
|
|
3177
3194
|
readonly allowPrivateNetwork?: false;
|
|
3195
|
+
/**
|
|
3196
|
+
* What an ask step's pre-built lines were written for (burn-down G-48): the flow persona (flowPersonaOf the agent's
|
|
3197
|
+
* PUBLISHED config), its routing and language, read once per conversation. Absent ⇒ stored lines read as stale.
|
|
3198
|
+
*/
|
|
3199
|
+
readonly askContext?: AskContext;
|
|
3178
3200
|
}
|
|
3179
3201
|
interface TextSession {
|
|
3180
3202
|
/** Feed an inbound user message (a final turn). */
|
|
@@ -3250,4 +3272,4 @@ type RunLiveTextOptions = Omit<RunTextSessionOptions, 'onAgentText' | 'onAwaitIn
|
|
|
3250
3272
|
* interpreter blocks for the next message, or the flow ends. */
|
|
3251
3273
|
declare function runLiveTextConversation(opts: RunLiveTextOptions): LiveTextConversation;
|
|
3252
3274
|
|
|
3253
|
-
export { type MetricsEvent as $, AgentEnvironment as A, ConsultationPolicy as B, type ConnectorInstance as C, type DtmfEvent as D, type DtmfHandler as E, type EndCallControllerHandle as F, type EndCallInfo as G, type HandoffConfig as H, type EndCallOutcome as I, type EndCallPolicy as J, type EndCallTrigger as K, type LLMProvider as L, type ModelConfig as M, type EndpointingConfig as N, type FakeSessionAdapter as O, ProcessSchemaDTO as P, type FloorControlConfig as Q, type ReadinessProbe as R, type STTProvider as S, type ToolDefinition as T, type InboundOptions as U, type VADProvider as V, type InferProcessData as W, type InterruptionConfig as X, LK_AGENT_STATE_MAP as Y, type MemoryHandle as Z, type MemoryScope as _, type AgentLifecycleEvent as a, transform as a$, NON_BUSY_STATES as a0, type Participant as a1, ParticipantId as a2, type ParticipantKind as a3, type ParticipantSet as a4, type ParticipantsConfig as a5, type ProcessBackendAck as a6, type ProcessFieldType as a7, type ProcessSnapshot as a8, type ReadinessReport as a9, type ToolInputShape as aA, type TriggerAction as aB, type TriggerCondition as aC, type TtsVoiceConfig as aD, type TurnEvent as aE, type Unsubscribe as aF, type UserInputEvent as aG, type UserStateEvent as aH, type UserTurn as aI, VoiceLayerAuthError as aJ, VoiceLayerError as aK, VoiceLayerHttpError as aL, VoiceLayerNetworkError as aM, VoiceLayerValidationError as aN, applySpeechTurnHandling as aO, asyncProbe as aP, defineProcess as aQ, dtmfCodeToDigit as aR, dtmfDigitToCode as aS, duck as aT, envProbe as aU, mute as aV, normalizeState as aW, passthrough as aX, runProbes as aY, runTextSession as aZ, runTextTranscript as a_, type ReadinessResult as aa, type RespondOptions as ab, type Room as ac, type RouteEntry as ad, type RoutingRule as ae, type RoutingSnapshot as af, type RunTextSessionOptions as ag, type RunTextTranscriptOptions as ah, type SayOptions as ai, type SecurityConfig as aj, type SendDtmfOptions as ak, type SessionAdapter as al, type SessionCapabilities as am, type SessionErrorEvent as an, type SessionEvent as ao, type SessionEventMap as ap, type SessionFactory as aq, type SessionFactoryInput as ar, type SessionOutbound as as, type SessionState as at, type ShorthandPrimitive as au, type SpeechResult as av, type SpeechTarget as aw, type StateChangeEvent as ax, type TextSession as ay, type TextTranscriptResult as az, AgentDTO as b, urlProbe as b0, type
|
|
3275
|
+
export { type MetricsEvent as $, AgentEnvironment as A, ConsultationPolicy as B, type ConnectorInstance as C, type DtmfEvent as D, type DtmfHandler as E, type EndCallControllerHandle as F, type EndCallInfo as G, type HandoffConfig as H, type EndCallOutcome as I, type EndCallPolicy as J, type EndCallTrigger as K, type LLMProvider as L, type ModelConfig as M, type EndpointingConfig as N, type FakeSessionAdapter as O, ProcessSchemaDTO as P, type FloorControlConfig as Q, type ReadinessProbe as R, type STTProvider as S, type ToolDefinition as T, type InboundOptions as U, type VADProvider as V, type InferProcessData as W, type InterruptionConfig as X, LK_AGENT_STATE_MAP as Y, type MemoryHandle as Z, type MemoryScope as _, type AgentLifecycleEvent as a, transform as a$, NON_BUSY_STATES as a0, type Participant as a1, ParticipantId as a2, type ParticipantKind as a3, type ParticipantSet as a4, type ParticipantsConfig as a5, type ProcessBackendAck as a6, type ProcessFieldType as a7, type ProcessSnapshot as a8, type ReadinessReport as a9, type ToolInputShape as aA, type TriggerAction as aB, type TriggerCondition as aC, type TtsVoiceConfig as aD, type TurnEvent as aE, type Unsubscribe as aF, type UserInputEvent as aG, type UserStateEvent as aH, type UserTurn as aI, VoiceLayerAuthError as aJ, VoiceLayerError as aK, VoiceLayerHttpError as aL, VoiceLayerNetworkError as aM, VoiceLayerValidationError as aN, applySpeechTurnHandling as aO, asyncProbe as aP, defineProcess as aQ, dtmfCodeToDigit as aR, dtmfDigitToCode as aS, duck as aT, envProbe as aU, mute as aV, normalizeState as aW, passthrough as aX, runProbes as aY, runTextSession as aZ, runTextTranscript as a_, type ReadinessResult as aa, type RespondOptions as ab, type Room as ac, type RouteEntry as ad, type RoutingRule as ae, type RoutingSnapshot as af, type RunTextSessionOptions as ag, type RunTextTranscriptOptions as ah, type SayOptions as ai, type SecurityConfig as aj, type SendDtmfOptions as ak, type SessionAdapter as al, type SessionCapabilities as am, type SessionErrorEvent as an, type SessionEvent as ao, type SessionEventMap as ap, type SessionFactory as aq, type SessionFactoryInput as ar, type SessionOutbound as as, type SessionState as at, type ShorthandPrimitive as au, type SpeechResult as av, type SpeechTarget as aw, type StateChangeEvent as ax, type TextSession as ay, type TextTranscriptResult as az, AgentDTO as b, urlProbe as b0, type AskContext as b1, type EmailResolver as b2, type FlowResolver as b3, type GraphResolvers as b4, type GraphTraceEvent as b5, type KnowledgeResolver as b6, type LiveTextConversation as b7, type LiveTurnResult as b8, type PlaybookLibraryEntry as b9, type PlaybookResolver as ba, type RegistryToolsResolver as bb, type RunLiveTextOptions as bc, dedupeConversationEmails as bd, denyPrivateNetwork as be, privateNetworkOptInHonoured as bf, runLiveTextConversation as bg, runWithOpenAIScope as bh, toPlaybookResolution as bi, type AgentEventEmitter as c, type AgentConfig as d, type ProcessField as e, type ProviderFactory as f, type TTSProvider as g, type RealtimeProvider as h, type TurnDetectorProvider as i, type ProcessDefinition as j, type TriggerDefinition as k, type MemoryConfig as l, type SpeechConfig as m, type ToolExecutor as n, type AgentContext as o, type ToolRunInfo as p, type HostLookup as q, type AgentEventListener as r, type AgentTurnEvent as s, type AudioProfile as t, type AudioSurface as u, type CallInfo as v, type CallOutcomeSummary as w, type ChannelKind as x, type CompletionStrategy as y, type ComplianceTag as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voicelayer/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Official SDK for VoiceLayer — define, run, and orchestrate voice AI agents on the VoiceLayer control plane.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "VoiceLayer",
|
|
@@ -80,19 +80,19 @@
|
|
|
80
80
|
"vitest": "^4.1.5",
|
|
81
81
|
"@voicelayer/contracts": "0.1.0",
|
|
82
82
|
"@voicelayer/llm-client": "0.1.0",
|
|
83
|
+
"@voicelayer/observability": "0.1.0",
|
|
83
84
|
"@voicelayer/primitive-audio-experience": "0.1.0",
|
|
84
85
|
"@voicelayer/primitive-audio-routing": "0.1.0",
|
|
85
|
-
"@voicelayer/
|
|
86
|
-
"@voicelayer/
|
|
87
|
-
"@voicelayer/agents-plugin-deepgram": "1.0.1",
|
|
86
|
+
"@voicelayer/primitive-process-schema": "0.1.0",
|
|
87
|
+
"@voicelayer/primitive-security": "0.1.0",
|
|
88
88
|
"@voicelayer/agents-plugin-assemblyai": "1.0.1",
|
|
89
|
+
"@voicelayer/agents-plugin-deepgram": "1.0.1",
|
|
89
90
|
"@voicelayer/agents-plugin-elevenlabs": "1.0.1",
|
|
91
|
+
"@voicelayer/agents-plugin-google": "1.0.1",
|
|
92
|
+
"@voicelayer/agents-plugin-cartesia": "1.0.1",
|
|
90
93
|
"@voicelayer/agents-plugin-livekit": "1.0.1",
|
|
91
94
|
"@voicelayer/agents-plugin-openai": "1.0.1",
|
|
92
|
-
"@voicelayer/agents-plugin-
|
|
93
|
-
"@voicelayer/agents-plugin-silero": "1.0.1",
|
|
94
|
-
"@voicelayer/primitive-process-schema": "0.1.0",
|
|
95
|
-
"@voicelayer/primitive-security": "0.1.0"
|
|
95
|
+
"@voicelayer/agents-plugin-silero": "1.0.1"
|
|
96
96
|
},
|
|
97
97
|
"scripts": {
|
|
98
98
|
"typecheck": "tsc -b --pretty false",
|