@avallon-labs/mcp 23.11.0 → 23.13.0-staging.554
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/dist/index.js
CHANGED
|
@@ -86,6 +86,51 @@ var updateVoiceAgent = async (voiceAgentId, updateVoiceAgentBody, options) => {
|
|
|
86
86
|
headers: res.headers
|
|
87
87
|
};
|
|
88
88
|
};
|
|
89
|
+
var getListVoiceAgentVersionsUrl = (voiceAgentId, params) => {
|
|
90
|
+
const normalizedParams = new URLSearchParams();
|
|
91
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
92
|
+
if (value !== void 0) {
|
|
93
|
+
if (typeof value === "object" && value !== null && !Array.isArray(value)) {
|
|
94
|
+
for (const [sk, sv] of Object.entries(value)) {
|
|
95
|
+
if (sv !== void 0) normalizedParams.append(`${key}[${sk}]`, String(sv));
|
|
96
|
+
}
|
|
97
|
+
} else {
|
|
98
|
+
normalizedParams.append(key, value === null ? "null" : String(value));
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
const stringifiedParams = normalizedParams.toString();
|
|
103
|
+
return stringifiedParams.length > 0 ? `/v1/voice-agents/${voiceAgentId}/versions?${stringifiedParams}` : `/v1/voice-agents/${voiceAgentId}/versions`;
|
|
104
|
+
};
|
|
105
|
+
var listVoiceAgentVersions = async (voiceAgentId, params, options) => {
|
|
106
|
+
const res = await fetch(getListVoiceAgentVersionsUrl(voiceAgentId, params), {
|
|
107
|
+
...options,
|
|
108
|
+
method: "GET"
|
|
109
|
+
});
|
|
110
|
+
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
111
|
+
const data = body ? JSON.parse(body) : {};
|
|
112
|
+
return {
|
|
113
|
+
data,
|
|
114
|
+
status: res.status,
|
|
115
|
+
headers: res.headers
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
var getGetVoiceAgentVersionUrl = (voiceAgentId, version) => {
|
|
119
|
+
return `/v1/voice-agents/${voiceAgentId}/versions/${version}`;
|
|
120
|
+
};
|
|
121
|
+
var getVoiceAgentVersion = async (voiceAgentId, version, options) => {
|
|
122
|
+
const res = await fetch(getGetVoiceAgentVersionUrl(voiceAgentId, version), {
|
|
123
|
+
...options,
|
|
124
|
+
method: "GET"
|
|
125
|
+
});
|
|
126
|
+
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
127
|
+
const data = body ? JSON.parse(body) : {};
|
|
128
|
+
return {
|
|
129
|
+
data,
|
|
130
|
+
status: res.status,
|
|
131
|
+
headers: res.headers
|
|
132
|
+
};
|
|
133
|
+
};
|
|
89
134
|
var getAddToolsToVoiceAgentUrl = (voiceAgentId) => {
|
|
90
135
|
return `/v1/voice-agents/${voiceAgentId}/tools`;
|
|
91
136
|
};
|
|
@@ -138,11 +183,24 @@ var getVoiceAgentPlaceholders = async (voiceAgentId, options) => {
|
|
|
138
183
|
headers: res.headers
|
|
139
184
|
};
|
|
140
185
|
};
|
|
141
|
-
var getGetVoiceAgentPromptUrl = (voiceAgentId) => {
|
|
142
|
-
|
|
186
|
+
var getGetVoiceAgentPromptUrl = (voiceAgentId, params) => {
|
|
187
|
+
const normalizedParams = new URLSearchParams();
|
|
188
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
189
|
+
if (value !== void 0) {
|
|
190
|
+
if (typeof value === "object" && value !== null && !Array.isArray(value)) {
|
|
191
|
+
for (const [sk, sv] of Object.entries(value)) {
|
|
192
|
+
if (sv !== void 0) normalizedParams.append(`${key}[${sk}]`, String(sv));
|
|
193
|
+
}
|
|
194
|
+
} else {
|
|
195
|
+
normalizedParams.append(key, value === null ? "null" : String(value));
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
const stringifiedParams = normalizedParams.toString();
|
|
200
|
+
return stringifiedParams.length > 0 ? `/v1/voice-agents/${voiceAgentId}/prompt?${stringifiedParams}` : `/v1/voice-agents/${voiceAgentId}/prompt`;
|
|
143
201
|
};
|
|
144
|
-
var getVoiceAgentPrompt = async (voiceAgentId, options) => {
|
|
145
|
-
const res = await fetch(getGetVoiceAgentPromptUrl(voiceAgentId), {
|
|
202
|
+
var getVoiceAgentPrompt = async (voiceAgentId, params, options) => {
|
|
203
|
+
const res = await fetch(getGetVoiceAgentPromptUrl(voiceAgentId, params), {
|
|
146
204
|
...options,
|
|
147
205
|
method: "GET"
|
|
148
206
|
});
|
|
@@ -2161,6 +2219,34 @@ var updateVoiceAgentHandler = async (args) => {
|
|
|
2161
2219
|
]
|
|
2162
2220
|
};
|
|
2163
2221
|
};
|
|
2222
|
+
var listVoiceAgentVersionsHandler = async (args) => {
|
|
2223
|
+
const res = await listVoiceAgentVersions(
|
|
2224
|
+
args.pathParams.voiceAgentId,
|
|
2225
|
+
args.queryParams
|
|
2226
|
+
);
|
|
2227
|
+
return {
|
|
2228
|
+
content: [
|
|
2229
|
+
{
|
|
2230
|
+
type: "text",
|
|
2231
|
+
text: JSON.stringify(res)
|
|
2232
|
+
}
|
|
2233
|
+
]
|
|
2234
|
+
};
|
|
2235
|
+
};
|
|
2236
|
+
var getVoiceAgentVersionHandler = async (args) => {
|
|
2237
|
+
const res = await getVoiceAgentVersion(
|
|
2238
|
+
args.pathParams.voiceAgentId,
|
|
2239
|
+
args.pathParams.version
|
|
2240
|
+
);
|
|
2241
|
+
return {
|
|
2242
|
+
content: [
|
|
2243
|
+
{
|
|
2244
|
+
type: "text",
|
|
2245
|
+
text: JSON.stringify(res)
|
|
2246
|
+
}
|
|
2247
|
+
]
|
|
2248
|
+
};
|
|
2249
|
+
};
|
|
2164
2250
|
var addToolsToVoiceAgentHandler = async (args) => {
|
|
2165
2251
|
const res = await addToolsToVoiceAgent(
|
|
2166
2252
|
args.pathParams.voiceAgentId,
|
|
@@ -2201,7 +2287,10 @@ var getVoiceAgentPlaceholdersHandler = async (args) => {
|
|
|
2201
2287
|
};
|
|
2202
2288
|
};
|
|
2203
2289
|
var getVoiceAgentPromptHandler = async (args) => {
|
|
2204
|
-
const res = await getVoiceAgentPrompt(
|
|
2290
|
+
const res = await getVoiceAgentPrompt(
|
|
2291
|
+
args.pathParams.voiceAgentId,
|
|
2292
|
+
args.queryParams
|
|
2293
|
+
);
|
|
2205
2294
|
return {
|
|
2206
2295
|
content: [
|
|
2207
2296
|
{
|
|
@@ -3339,6 +3428,9 @@ var ListVoiceAgentsResponse = zod.object({
|
|
|
3339
3428
|
tenant_id: zod.string(),
|
|
3340
3429
|
agent_name: zod.string(),
|
|
3341
3430
|
direction: zod.enum(["INBOUND", "OUTBOUND"]),
|
|
3431
|
+
phone_number: zod.union([zod.string(), zod.null()]),
|
|
3432
|
+
created_at: zod.string().datetime({}),
|
|
3433
|
+
updated_at: zod.string().datetime({}),
|
|
3342
3434
|
llm_model: zod.enum([
|
|
3343
3435
|
"GPT4.1",
|
|
3344
3436
|
"AZURE-GPT4o",
|
|
@@ -3372,18 +3464,19 @@ var ListVoiceAgentsResponse = zod.object({
|
|
|
3372
3464
|
"AWS-TRANSCRIBE",
|
|
3373
3465
|
"ELEVENLABS-SCRIBE-V2-REALTIME"
|
|
3374
3466
|
]),
|
|
3467
|
+
background_sounds: zod.enum(["enabled", "disabled"]),
|
|
3468
|
+
noise_cancellation: zod.enum(["NONE", "NC", "BVC", "BVC_TELEPHONY"]),
|
|
3469
|
+
voice_mail_detection: zod.boolean(),
|
|
3470
|
+
dial_pad: zod.boolean(),
|
|
3471
|
+
end_call: zod.boolean(),
|
|
3375
3472
|
transfer_phone_number: zod.union([zod.string(), zod.null()]),
|
|
3376
3473
|
call_processor_id: zod.union([zod.string(), zod.null()]),
|
|
3377
3474
|
call_processor_type: zod.union([
|
|
3378
3475
|
zod.enum(["extractor", "worker"]),
|
|
3379
3476
|
zod.null()
|
|
3380
3477
|
]),
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
updated_at: zod.string().datetime({}),
|
|
3384
|
-
phone_number: zod.union([zod.string(), zod.null()]),
|
|
3385
|
-
dial_pad: zod.boolean(),
|
|
3386
|
-
end_call: zod.boolean(),
|
|
3478
|
+
evaluator_slug: zod.union([zod.string(), zod.null()]),
|
|
3479
|
+
lk_cloud_routing_pct: zod.number(),
|
|
3387
3480
|
fallback_llm_model: zod.union([
|
|
3388
3481
|
zod.enum([
|
|
3389
3482
|
"GPT4.1",
|
|
@@ -3428,6 +3521,7 @@ var ListVoiceAgentsResponse = zod.object({
|
|
|
3428
3521
|
]),
|
|
3429
3522
|
zod.null()
|
|
3430
3523
|
]),
|
|
3524
|
+
greeting: zod.union([zod.string(), zod.null()]),
|
|
3431
3525
|
inactivity_timeout_seconds: zod.union([
|
|
3432
3526
|
zod.number().min(
|
|
3433
3527
|
listVoiceAgentsResponseAgentsItemInactivityTimeoutSecondsOneMin
|
|
@@ -3519,6 +3613,9 @@ var GetVoiceAgentResponse = zod.object({
|
|
|
3519
3613
|
tenant_id: zod.string(),
|
|
3520
3614
|
agent_name: zod.string(),
|
|
3521
3615
|
direction: zod.enum(["INBOUND", "OUTBOUND"]),
|
|
3616
|
+
phone_number: zod.union([zod.string(), zod.null()]),
|
|
3617
|
+
created_at: zod.string().datetime({}),
|
|
3618
|
+
updated_at: zod.string().datetime({}),
|
|
3522
3619
|
llm_model: zod.enum([
|
|
3523
3620
|
"GPT4.1",
|
|
3524
3621
|
"AZURE-GPT4o",
|
|
@@ -3552,18 +3649,19 @@ var GetVoiceAgentResponse = zod.object({
|
|
|
3552
3649
|
"AWS-TRANSCRIBE",
|
|
3553
3650
|
"ELEVENLABS-SCRIBE-V2-REALTIME"
|
|
3554
3651
|
]),
|
|
3652
|
+
background_sounds: zod.enum(["enabled", "disabled"]),
|
|
3653
|
+
noise_cancellation: zod.enum(["NONE", "NC", "BVC", "BVC_TELEPHONY"]),
|
|
3654
|
+
voice_mail_detection: zod.boolean(),
|
|
3655
|
+
dial_pad: zod.boolean(),
|
|
3656
|
+
end_call: zod.boolean(),
|
|
3555
3657
|
transfer_phone_number: zod.union([zod.string(), zod.null()]),
|
|
3556
3658
|
call_processor_id: zod.union([zod.string(), zod.null()]),
|
|
3557
3659
|
call_processor_type: zod.union([
|
|
3558
3660
|
zod.enum(["extractor", "worker"]),
|
|
3559
3661
|
zod.null()
|
|
3560
3662
|
]),
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
updated_at: zod.string().datetime({}),
|
|
3564
|
-
phone_number: zod.union([zod.string(), zod.null()]),
|
|
3565
|
-
dial_pad: zod.boolean(),
|
|
3566
|
-
end_call: zod.boolean(),
|
|
3663
|
+
evaluator_slug: zod.union([zod.string(), zod.null()]),
|
|
3664
|
+
lk_cloud_routing_pct: zod.number(),
|
|
3567
3665
|
fallback_llm_model: zod.union([
|
|
3568
3666
|
zod.enum([
|
|
3569
3667
|
"GPT4.1",
|
|
@@ -3608,6 +3706,7 @@ var GetVoiceAgentResponse = zod.object({
|
|
|
3608
3706
|
]),
|
|
3609
3707
|
zod.null()
|
|
3610
3708
|
]),
|
|
3709
|
+
greeting: zod.union([zod.string(), zod.null()]),
|
|
3611
3710
|
inactivity_timeout_seconds: zod.union([
|
|
3612
3711
|
zod.number().min(getVoiceAgentResponseAgentInactivityTimeoutSecondsOneMin).max(getVoiceAgentResponseAgentInactivityTimeoutSecondsOneMax),
|
|
3613
3712
|
zod.null()
|
|
@@ -3638,6 +3737,9 @@ var UpdateVoiceAgentResponse = zod.object({
|
|
|
3638
3737
|
tenant_id: zod.string(),
|
|
3639
3738
|
agent_name: zod.string(),
|
|
3640
3739
|
direction: zod.enum(["INBOUND", "OUTBOUND"]),
|
|
3740
|
+
phone_number: zod.union([zod.string(), zod.null()]),
|
|
3741
|
+
created_at: zod.string().datetime({}),
|
|
3742
|
+
updated_at: zod.string().datetime({}),
|
|
3641
3743
|
llm_model: zod.enum([
|
|
3642
3744
|
"GPT4.1",
|
|
3643
3745
|
"AZURE-GPT4o",
|
|
@@ -3671,18 +3773,19 @@ var UpdateVoiceAgentResponse = zod.object({
|
|
|
3671
3773
|
"AWS-TRANSCRIBE",
|
|
3672
3774
|
"ELEVENLABS-SCRIBE-V2-REALTIME"
|
|
3673
3775
|
]),
|
|
3776
|
+
background_sounds: zod.enum(["enabled", "disabled"]),
|
|
3777
|
+
noise_cancellation: zod.enum(["NONE", "NC", "BVC", "BVC_TELEPHONY"]),
|
|
3778
|
+
voice_mail_detection: zod.boolean(),
|
|
3779
|
+
dial_pad: zod.boolean(),
|
|
3780
|
+
end_call: zod.boolean(),
|
|
3674
3781
|
transfer_phone_number: zod.union([zod.string(), zod.null()]),
|
|
3675
3782
|
call_processor_id: zod.union([zod.string(), zod.null()]),
|
|
3676
3783
|
call_processor_type: zod.union([
|
|
3677
3784
|
zod.enum(["extractor", "worker"]),
|
|
3678
3785
|
zod.null()
|
|
3679
3786
|
]),
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
updated_at: zod.string().datetime({}),
|
|
3683
|
-
phone_number: zod.union([zod.string(), zod.null()]),
|
|
3684
|
-
dial_pad: zod.boolean(),
|
|
3685
|
-
end_call: zod.boolean(),
|
|
3787
|
+
evaluator_slug: zod.union([zod.string(), zod.null()]),
|
|
3788
|
+
lk_cloud_routing_pct: zod.number(),
|
|
3686
3789
|
fallback_llm_model: zod.union([
|
|
3687
3790
|
zod.enum([
|
|
3688
3791
|
"GPT4.1",
|
|
@@ -3727,12 +3830,160 @@ var UpdateVoiceAgentResponse = zod.object({
|
|
|
3727
3830
|
]),
|
|
3728
3831
|
zod.null()
|
|
3729
3832
|
]),
|
|
3833
|
+
greeting: zod.union([zod.string(), zod.null()]),
|
|
3730
3834
|
inactivity_timeout_seconds: zod.union([
|
|
3731
3835
|
zod.number().min(updateVoiceAgentResponseAgentInactivityTimeoutSecondsOneMin).max(updateVoiceAgentResponseAgentInactivityTimeoutSecondsOneMax),
|
|
3732
3836
|
zod.null()
|
|
3733
3837
|
]).describe("Inactivity timeout in seconds. null disables the feature.")
|
|
3734
3838
|
})
|
|
3735
3839
|
});
|
|
3840
|
+
var ListVoiceAgentVersionsParams = zod.object({
|
|
3841
|
+
voiceAgentId: zod.string().uuid()
|
|
3842
|
+
});
|
|
3843
|
+
var listVoiceAgentVersionsQueryCountDefault = 50;
|
|
3844
|
+
var listVoiceAgentVersionsQueryCountMax = 100;
|
|
3845
|
+
var listVoiceAgentVersionsQueryOffsetDefault = 0;
|
|
3846
|
+
var listVoiceAgentVersionsQueryOffsetMin = 0;
|
|
3847
|
+
var listVoiceAgentVersionsQuerySortByDefault = `version`;
|
|
3848
|
+
var listVoiceAgentVersionsQuerySortOrderDefault = `desc`;
|
|
3849
|
+
var ListVoiceAgentVersionsQueryParams = zod.object({
|
|
3850
|
+
count: zod.number().min(1).max(listVoiceAgentVersionsQueryCountMax).default(listVoiceAgentVersionsQueryCountDefault),
|
|
3851
|
+
offset: zod.number().min(listVoiceAgentVersionsQueryOffsetMin).default(listVoiceAgentVersionsQueryOffsetDefault),
|
|
3852
|
+
sort_by: zod.enum(["version", "created_at"]).default(listVoiceAgentVersionsQuerySortByDefault),
|
|
3853
|
+
sort_order: zod.enum(["asc", "desc"]).default(listVoiceAgentVersionsQuerySortOrderDefault)
|
|
3854
|
+
});
|
|
3855
|
+
var listVoiceAgentVersionsResponseVersionMin = -9007199254740991;
|
|
3856
|
+
var listVoiceAgentVersionsResponseVersionMax = 9007199254740991;
|
|
3857
|
+
var ListVoiceAgentVersionsResponseItem = zod.object({
|
|
3858
|
+
voice_agent_id: zod.string(),
|
|
3859
|
+
version: zod.number().min(listVoiceAgentVersionsResponseVersionMin).max(listVoiceAgentVersionsResponseVersionMax),
|
|
3860
|
+
actor: zod.string(),
|
|
3861
|
+
created_at: zod.string().datetime({}),
|
|
3862
|
+
changed_fields: zod.array(zod.string()).describe(
|
|
3863
|
+
"Voice agent config field names (matching the keys on the voice agent response) whose values differ from the previous version. Empty for version 1."
|
|
3864
|
+
)
|
|
3865
|
+
});
|
|
3866
|
+
var ListVoiceAgentVersionsResponse = zod.array(
|
|
3867
|
+
ListVoiceAgentVersionsResponseItem
|
|
3868
|
+
);
|
|
3869
|
+
var GetVoiceAgentVersionParams = zod.object({
|
|
3870
|
+
voiceAgentId: zod.string().uuid(),
|
|
3871
|
+
version: zod.number()
|
|
3872
|
+
});
|
|
3873
|
+
var getVoiceAgentVersionResponseInactivityTimeoutSecondsOneMin = -9007199254740991;
|
|
3874
|
+
var getVoiceAgentVersionResponseInactivityTimeoutSecondsOneMax = 9007199254740991;
|
|
3875
|
+
var getVoiceAgentVersionResponseVersionMin = -9007199254740991;
|
|
3876
|
+
var getVoiceAgentVersionResponseVersionMax = 9007199254740991;
|
|
3877
|
+
var GetVoiceAgentVersionResponse = zod.object({
|
|
3878
|
+
id: zod.string(),
|
|
3879
|
+
tenant_id: zod.string(),
|
|
3880
|
+
agent_name: zod.string(),
|
|
3881
|
+
direction: zod.enum(["INBOUND", "OUTBOUND"]),
|
|
3882
|
+
phone_number: zod.union([zod.string(), zod.null()]),
|
|
3883
|
+
created_at: zod.string().datetime({}),
|
|
3884
|
+
updated_at: zod.string().datetime({}),
|
|
3885
|
+
llm_model: zod.enum([
|
|
3886
|
+
"GPT4.1",
|
|
3887
|
+
"AZURE-GPT4o",
|
|
3888
|
+
"AZURE-GPT4.1",
|
|
3889
|
+
"GPT-5",
|
|
3890
|
+
"GPT-5-low",
|
|
3891
|
+
"GPT-5-high",
|
|
3892
|
+
"GPT-5.1-chat-latest",
|
|
3893
|
+
"GPT-5.1-no-reasoning",
|
|
3894
|
+
"GEMINI-1.5-flash",
|
|
3895
|
+
"GEMINI-2.5-flash",
|
|
3896
|
+
"GEMINI-2.5-flash-lite",
|
|
3897
|
+
"GEMINI-3-flash",
|
|
3898
|
+
"CLAUDE-sonnet-4.6",
|
|
3899
|
+
"CLAUDE-haiku-4.5",
|
|
3900
|
+
"GPT-5.4-mini"
|
|
3901
|
+
]),
|
|
3902
|
+
tts_provider: zod.enum(["elevenlabs", "cartesia", "google", "aws-polly"]),
|
|
3903
|
+
tts_model: zod.enum([
|
|
3904
|
+
"eleven_flash_v2_5",
|
|
3905
|
+
"eleven_turbo_v2_5",
|
|
3906
|
+
"sonic-3",
|
|
3907
|
+
"chirp_3",
|
|
3908
|
+
"polly-neural"
|
|
3909
|
+
]),
|
|
3910
|
+
language: zod.enum(["en-US", "de-DE"]),
|
|
3911
|
+
tts_voice_id: zod.string().describe("Voice ID from the TTS provider"),
|
|
3912
|
+
stt_model: zod.enum([
|
|
3913
|
+
"DEEPGRAM-NOVA-2-GENERAL",
|
|
3914
|
+
"DEEPGRAM-NOVA-3-GENERAL",
|
|
3915
|
+
"AWS-TRANSCRIBE",
|
|
3916
|
+
"ELEVENLABS-SCRIBE-V2-REALTIME"
|
|
3917
|
+
]),
|
|
3918
|
+
background_sounds: zod.enum(["enabled", "disabled"]),
|
|
3919
|
+
noise_cancellation: zod.enum(["NONE", "NC", "BVC", "BVC_TELEPHONY"]),
|
|
3920
|
+
voice_mail_detection: zod.boolean(),
|
|
3921
|
+
dial_pad: zod.boolean(),
|
|
3922
|
+
end_call: zod.boolean(),
|
|
3923
|
+
transfer_phone_number: zod.union([zod.string(), zod.null()]),
|
|
3924
|
+
call_processor_id: zod.union([zod.string(), zod.null()]),
|
|
3925
|
+
call_processor_type: zod.union([
|
|
3926
|
+
zod.enum(["extractor", "worker"]),
|
|
3927
|
+
zod.null()
|
|
3928
|
+
]),
|
|
3929
|
+
evaluator_slug: zod.union([zod.string(), zod.null()]),
|
|
3930
|
+
lk_cloud_routing_pct: zod.number(),
|
|
3931
|
+
fallback_llm_model: zod.union([
|
|
3932
|
+
zod.enum([
|
|
3933
|
+
"GPT4.1",
|
|
3934
|
+
"AZURE-GPT4o",
|
|
3935
|
+
"AZURE-GPT4.1",
|
|
3936
|
+
"GPT-5",
|
|
3937
|
+
"GPT-5-low",
|
|
3938
|
+
"GPT-5-high",
|
|
3939
|
+
"GPT-5.1-chat-latest",
|
|
3940
|
+
"GPT-5.1-no-reasoning",
|
|
3941
|
+
"GEMINI-1.5-flash",
|
|
3942
|
+
"GEMINI-2.5-flash",
|
|
3943
|
+
"GEMINI-2.5-flash-lite",
|
|
3944
|
+
"GEMINI-3-flash",
|
|
3945
|
+
"CLAUDE-sonnet-4.6",
|
|
3946
|
+
"CLAUDE-haiku-4.5",
|
|
3947
|
+
"GPT-5.4-mini"
|
|
3948
|
+
]),
|
|
3949
|
+
zod.null()
|
|
3950
|
+
]),
|
|
3951
|
+
fallback_tts_provider: zod.union([
|
|
3952
|
+
zod.enum(["elevenlabs", "cartesia", "google", "aws-polly"]),
|
|
3953
|
+
zod.null()
|
|
3954
|
+
]),
|
|
3955
|
+
fallback_tts_model: zod.union([
|
|
3956
|
+
zod.enum([
|
|
3957
|
+
"eleven_flash_v2_5",
|
|
3958
|
+
"eleven_turbo_v2_5",
|
|
3959
|
+
"sonic-3",
|
|
3960
|
+
"chirp_3",
|
|
3961
|
+
"polly-neural"
|
|
3962
|
+
]),
|
|
3963
|
+
zod.null()
|
|
3964
|
+
]),
|
|
3965
|
+
fallback_tts_voice_id: zod.union([zod.string(), zod.null()]),
|
|
3966
|
+
fallback_stt_model: zod.union([
|
|
3967
|
+
zod.enum([
|
|
3968
|
+
"DEEPGRAM-NOVA-2-GENERAL",
|
|
3969
|
+
"DEEPGRAM-NOVA-3-GENERAL",
|
|
3970
|
+
"AWS-TRANSCRIBE",
|
|
3971
|
+
"ELEVENLABS-SCRIBE-V2-REALTIME"
|
|
3972
|
+
]),
|
|
3973
|
+
zod.null()
|
|
3974
|
+
]),
|
|
3975
|
+
greeting: zod.union([zod.string(), zod.null()]),
|
|
3976
|
+
inactivity_timeout_seconds: zod.union([
|
|
3977
|
+
zod.number().min(getVoiceAgentVersionResponseInactivityTimeoutSecondsOneMin).max(getVoiceAgentVersionResponseInactivityTimeoutSecondsOneMax),
|
|
3978
|
+
zod.null()
|
|
3979
|
+
]).describe("Inactivity timeout in seconds. null disables the feature."),
|
|
3980
|
+
version: zod.number().min(getVoiceAgentVersionResponseVersionMin).max(getVoiceAgentVersionResponseVersionMax),
|
|
3981
|
+
version_created_at: zod.string().datetime({}),
|
|
3982
|
+
actor: zod.string(),
|
|
3983
|
+
changed_fields: zod.array(zod.string()).describe(
|
|
3984
|
+
"Voice agent config field names (matching the keys on the voice agent response) whose values differ from the previous version. Empty for version 1."
|
|
3985
|
+
)
|
|
3986
|
+
});
|
|
3736
3987
|
var AddToolsToVoiceAgentParams = zod.object({
|
|
3737
3988
|
voiceAgentId: zod.string().uuid()
|
|
3738
3989
|
});
|
|
@@ -3747,6 +3998,9 @@ var AddToolsToVoiceAgentResponse = zod.object({
|
|
|
3747
3998
|
tenant_id: zod.string(),
|
|
3748
3999
|
agent_name: zod.string(),
|
|
3749
4000
|
direction: zod.enum(["INBOUND", "OUTBOUND"]),
|
|
4001
|
+
phone_number: zod.union([zod.string(), zod.null()]),
|
|
4002
|
+
created_at: zod.string().datetime({}),
|
|
4003
|
+
updated_at: zod.string().datetime({}),
|
|
3750
4004
|
llm_model: zod.enum([
|
|
3751
4005
|
"GPT4.1",
|
|
3752
4006
|
"AZURE-GPT4o",
|
|
@@ -3780,18 +4034,19 @@ var AddToolsToVoiceAgentResponse = zod.object({
|
|
|
3780
4034
|
"AWS-TRANSCRIBE",
|
|
3781
4035
|
"ELEVENLABS-SCRIBE-V2-REALTIME"
|
|
3782
4036
|
]),
|
|
4037
|
+
background_sounds: zod.enum(["enabled", "disabled"]),
|
|
4038
|
+
noise_cancellation: zod.enum(["NONE", "NC", "BVC", "BVC_TELEPHONY"]),
|
|
4039
|
+
voice_mail_detection: zod.boolean(),
|
|
4040
|
+
dial_pad: zod.boolean(),
|
|
4041
|
+
end_call: zod.boolean(),
|
|
3783
4042
|
transfer_phone_number: zod.union([zod.string(), zod.null()]),
|
|
3784
4043
|
call_processor_id: zod.union([zod.string(), zod.null()]),
|
|
3785
4044
|
call_processor_type: zod.union([
|
|
3786
4045
|
zod.enum(["extractor", "worker"]),
|
|
3787
4046
|
zod.null()
|
|
3788
4047
|
]),
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
updated_at: zod.string().datetime({}),
|
|
3792
|
-
phone_number: zod.union([zod.string(), zod.null()]),
|
|
3793
|
-
dial_pad: zod.boolean(),
|
|
3794
|
-
end_call: zod.boolean(),
|
|
4048
|
+
evaluator_slug: zod.union([zod.string(), zod.null()]),
|
|
4049
|
+
lk_cloud_routing_pct: zod.number(),
|
|
3795
4050
|
fallback_llm_model: zod.union([
|
|
3796
4051
|
zod.enum([
|
|
3797
4052
|
"GPT4.1",
|
|
@@ -3836,6 +4091,7 @@ var AddToolsToVoiceAgentResponse = zod.object({
|
|
|
3836
4091
|
]),
|
|
3837
4092
|
zod.null()
|
|
3838
4093
|
]),
|
|
4094
|
+
greeting: zod.union([zod.string(), zod.null()]),
|
|
3839
4095
|
inactivity_timeout_seconds: zod.union([
|
|
3840
4096
|
zod.number().min(addToolsToVoiceAgentResponseAgentInactivityTimeoutSecondsOneMin).max(addToolsToVoiceAgentResponseAgentInactivityTimeoutSecondsOneMax),
|
|
3841
4097
|
zod.null()
|
|
@@ -3856,6 +4112,9 @@ var DeleteToolsFromVoiceAgentResponse = zod.object({
|
|
|
3856
4112
|
tenant_id: zod.string(),
|
|
3857
4113
|
agent_name: zod.string(),
|
|
3858
4114
|
direction: zod.enum(["INBOUND", "OUTBOUND"]),
|
|
4115
|
+
phone_number: zod.union([zod.string(), zod.null()]),
|
|
4116
|
+
created_at: zod.string().datetime({}),
|
|
4117
|
+
updated_at: zod.string().datetime({}),
|
|
3859
4118
|
llm_model: zod.enum([
|
|
3860
4119
|
"GPT4.1",
|
|
3861
4120
|
"AZURE-GPT4o",
|
|
@@ -3889,18 +4148,19 @@ var DeleteToolsFromVoiceAgentResponse = zod.object({
|
|
|
3889
4148
|
"AWS-TRANSCRIBE",
|
|
3890
4149
|
"ELEVENLABS-SCRIBE-V2-REALTIME"
|
|
3891
4150
|
]),
|
|
4151
|
+
background_sounds: zod.enum(["enabled", "disabled"]),
|
|
4152
|
+
noise_cancellation: zod.enum(["NONE", "NC", "BVC", "BVC_TELEPHONY"]),
|
|
4153
|
+
voice_mail_detection: zod.boolean(),
|
|
4154
|
+
dial_pad: zod.boolean(),
|
|
4155
|
+
end_call: zod.boolean(),
|
|
3892
4156
|
transfer_phone_number: zod.union([zod.string(), zod.null()]),
|
|
3893
4157
|
call_processor_id: zod.union([zod.string(), zod.null()]),
|
|
3894
4158
|
call_processor_type: zod.union([
|
|
3895
4159
|
zod.enum(["extractor", "worker"]),
|
|
3896
4160
|
zod.null()
|
|
3897
4161
|
]),
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
updated_at: zod.string().datetime({}),
|
|
3901
|
-
phone_number: zod.union([zod.string(), zod.null()]),
|
|
3902
|
-
dial_pad: zod.boolean(),
|
|
3903
|
-
end_call: zod.boolean(),
|
|
4162
|
+
evaluator_slug: zod.union([zod.string(), zod.null()]),
|
|
4163
|
+
lk_cloud_routing_pct: zod.number(),
|
|
3904
4164
|
fallback_llm_model: zod.union([
|
|
3905
4165
|
zod.enum([
|
|
3906
4166
|
"GPT4.1",
|
|
@@ -3945,6 +4205,7 @@ var DeleteToolsFromVoiceAgentResponse = zod.object({
|
|
|
3945
4205
|
]),
|
|
3946
4206
|
zod.null()
|
|
3947
4207
|
]),
|
|
4208
|
+
greeting: zod.union([zod.string(), zod.null()]),
|
|
3948
4209
|
inactivity_timeout_seconds: zod.union([
|
|
3949
4210
|
zod.number().min(
|
|
3950
4211
|
deleteToolsFromVoiceAgentResponseAgentInactivityTimeoutSecondsOneMin
|
|
@@ -3964,6 +4225,9 @@ var GetVoiceAgentPlaceholdersResponse = zod.object({
|
|
|
3964
4225
|
var GetVoiceAgentPromptParams = zod.object({
|
|
3965
4226
|
voiceAgentId: zod.string().uuid()
|
|
3966
4227
|
});
|
|
4228
|
+
var GetVoiceAgentPromptQueryParams = zod.object({
|
|
4229
|
+
version: zod.number().optional()
|
|
4230
|
+
});
|
|
3967
4231
|
var GetVoiceAgentPromptResponse = zod.object({
|
|
3968
4232
|
prompt: zod.string().optional(),
|
|
3969
4233
|
greeting: zod.union([zod.string(), zod.null()]).optional()
|
|
@@ -4106,6 +4370,9 @@ var UpdateVoiceAgentModelsResponse = zod.object({
|
|
|
4106
4370
|
tenant_id: zod.string(),
|
|
4107
4371
|
agent_name: zod.string(),
|
|
4108
4372
|
direction: zod.enum(["INBOUND", "OUTBOUND"]),
|
|
4373
|
+
phone_number: zod.union([zod.string(), zod.null()]),
|
|
4374
|
+
created_at: zod.string().datetime({}),
|
|
4375
|
+
updated_at: zod.string().datetime({}),
|
|
4109
4376
|
llm_model: zod.enum([
|
|
4110
4377
|
"GPT4.1",
|
|
4111
4378
|
"AZURE-GPT4o",
|
|
@@ -4139,18 +4406,19 @@ var UpdateVoiceAgentModelsResponse = zod.object({
|
|
|
4139
4406
|
"AWS-TRANSCRIBE",
|
|
4140
4407
|
"ELEVENLABS-SCRIBE-V2-REALTIME"
|
|
4141
4408
|
]),
|
|
4409
|
+
background_sounds: zod.enum(["enabled", "disabled"]),
|
|
4410
|
+
noise_cancellation: zod.enum(["NONE", "NC", "BVC", "BVC_TELEPHONY"]),
|
|
4411
|
+
voice_mail_detection: zod.boolean(),
|
|
4412
|
+
dial_pad: zod.boolean(),
|
|
4413
|
+
end_call: zod.boolean(),
|
|
4142
4414
|
transfer_phone_number: zod.union([zod.string(), zod.null()]),
|
|
4143
4415
|
call_processor_id: zod.union([zod.string(), zod.null()]),
|
|
4144
4416
|
call_processor_type: zod.union([
|
|
4145
4417
|
zod.enum(["extractor", "worker"]),
|
|
4146
4418
|
zod.null()
|
|
4147
4419
|
]),
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
updated_at: zod.string().datetime({}),
|
|
4151
|
-
phone_number: zod.union([zod.string(), zod.null()]),
|
|
4152
|
-
dial_pad: zod.boolean(),
|
|
4153
|
-
end_call: zod.boolean(),
|
|
4420
|
+
evaluator_slug: zod.union([zod.string(), zod.null()]),
|
|
4421
|
+
lk_cloud_routing_pct: zod.number(),
|
|
4154
4422
|
fallback_llm_model: zod.union([
|
|
4155
4423
|
zod.enum([
|
|
4156
4424
|
"GPT4.1",
|
|
@@ -4195,6 +4463,7 @@ var UpdateVoiceAgentModelsResponse = zod.object({
|
|
|
4195
4463
|
]),
|
|
4196
4464
|
zod.null()
|
|
4197
4465
|
]),
|
|
4466
|
+
greeting: zod.union([zod.string(), zod.null()]),
|
|
4198
4467
|
inactivity_timeout_seconds: zod.union([
|
|
4199
4468
|
zod.number().min(
|
|
4200
4469
|
updateVoiceAgentModelsResponseAgentInactivityTimeoutSecondsOneMin
|
|
@@ -4221,6 +4490,9 @@ var UpdateCallControlsResponse = zod.object({
|
|
|
4221
4490
|
tenant_id: zod.string(),
|
|
4222
4491
|
agent_name: zod.string(),
|
|
4223
4492
|
direction: zod.enum(["INBOUND", "OUTBOUND"]),
|
|
4493
|
+
phone_number: zod.union([zod.string(), zod.null()]),
|
|
4494
|
+
created_at: zod.string().datetime({}),
|
|
4495
|
+
updated_at: zod.string().datetime({}),
|
|
4224
4496
|
llm_model: zod.enum([
|
|
4225
4497
|
"GPT4.1",
|
|
4226
4498
|
"AZURE-GPT4o",
|
|
@@ -4254,18 +4526,19 @@ var UpdateCallControlsResponse = zod.object({
|
|
|
4254
4526
|
"AWS-TRANSCRIBE",
|
|
4255
4527
|
"ELEVENLABS-SCRIBE-V2-REALTIME"
|
|
4256
4528
|
]),
|
|
4529
|
+
background_sounds: zod.enum(["enabled", "disabled"]),
|
|
4530
|
+
noise_cancellation: zod.enum(["NONE", "NC", "BVC", "BVC_TELEPHONY"]),
|
|
4531
|
+
voice_mail_detection: zod.boolean(),
|
|
4532
|
+
dial_pad: zod.boolean(),
|
|
4533
|
+
end_call: zod.boolean(),
|
|
4257
4534
|
transfer_phone_number: zod.union([zod.string(), zod.null()]),
|
|
4258
4535
|
call_processor_id: zod.union([zod.string(), zod.null()]),
|
|
4259
4536
|
call_processor_type: zod.union([
|
|
4260
4537
|
zod.enum(["extractor", "worker"]),
|
|
4261
4538
|
zod.null()
|
|
4262
4539
|
]),
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
updated_at: zod.string().datetime({}),
|
|
4266
|
-
phone_number: zod.union([zod.string(), zod.null()]),
|
|
4267
|
-
dial_pad: zod.boolean(),
|
|
4268
|
-
end_call: zod.boolean(),
|
|
4540
|
+
evaluator_slug: zod.union([zod.string(), zod.null()]),
|
|
4541
|
+
lk_cloud_routing_pct: zod.number(),
|
|
4269
4542
|
fallback_llm_model: zod.union([
|
|
4270
4543
|
zod.enum([
|
|
4271
4544
|
"GPT4.1",
|
|
@@ -4310,6 +4583,7 @@ var UpdateCallControlsResponse = zod.object({
|
|
|
4310
4583
|
]),
|
|
4311
4584
|
zod.null()
|
|
4312
4585
|
]),
|
|
4586
|
+
greeting: zod.union([zod.string(), zod.null()]),
|
|
4313
4587
|
inactivity_timeout_seconds: zod.union([
|
|
4314
4588
|
zod.number().min(updateCallControlsResponseAgentInactivityTimeoutSecondsOneMin).max(updateCallControlsResponseAgentInactivityTimeoutSecondsOneMax),
|
|
4315
4589
|
zod.null()
|
|
@@ -6286,6 +6560,23 @@ server.tool(
|
|
|
6286
6560
|
},
|
|
6287
6561
|
updateVoiceAgentHandler
|
|
6288
6562
|
);
|
|
6563
|
+
server.tool(
|
|
6564
|
+
"listVoiceAgentVersions",
|
|
6565
|
+
"List voice agent versions",
|
|
6566
|
+
{
|
|
6567
|
+
pathParams: ListVoiceAgentVersionsParams,
|
|
6568
|
+
queryParams: ListVoiceAgentVersionsQueryParams
|
|
6569
|
+
},
|
|
6570
|
+
listVoiceAgentVersionsHandler
|
|
6571
|
+
);
|
|
6572
|
+
server.tool(
|
|
6573
|
+
"getVoiceAgentVersion",
|
|
6574
|
+
"Get voice agent version",
|
|
6575
|
+
{
|
|
6576
|
+
pathParams: GetVoiceAgentVersionParams
|
|
6577
|
+
},
|
|
6578
|
+
getVoiceAgentVersionHandler
|
|
6579
|
+
);
|
|
6289
6580
|
server.tool(
|
|
6290
6581
|
"addToolsToVoiceAgent",
|
|
6291
6582
|
"Add tools to voice agent",
|
|
@@ -6316,7 +6607,8 @@ server.tool(
|
|
|
6316
6607
|
"getVoiceAgentPrompt",
|
|
6317
6608
|
"Get voice agent prompt",
|
|
6318
6609
|
{
|
|
6319
|
-
pathParams: GetVoiceAgentPromptParams
|
|
6610
|
+
pathParams: GetVoiceAgentPromptParams,
|
|
6611
|
+
queryParams: GetVoiceAgentPromptQueryParams
|
|
6320
6612
|
},
|
|
6321
6613
|
getVoiceAgentPromptHandler
|
|
6322
6614
|
);
|
|
@@ -7107,4 +7399,4 @@ var transport = new StdioServerTransport();
|
|
|
7107
7399
|
server.connect(transport).then(() => {
|
|
7108
7400
|
console.error("MCP server running on stdio");
|
|
7109
7401
|
}).catch(console.error);
|
|
7110
|
-
//# sourceMappingURL=server-
|
|
7402
|
+
//# sourceMappingURL=server-7E6HYBRJ.js.map
|