@avallon-labs/mcp 23.11.0 → 23.12.0-staging.553
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
|
};
|
|
@@ -2161,6 +2206,34 @@ var updateVoiceAgentHandler = async (args) => {
|
|
|
2161
2206
|
]
|
|
2162
2207
|
};
|
|
2163
2208
|
};
|
|
2209
|
+
var listVoiceAgentVersionsHandler = async (args) => {
|
|
2210
|
+
const res = await listVoiceAgentVersions(
|
|
2211
|
+
args.pathParams.voiceAgentId,
|
|
2212
|
+
args.queryParams
|
|
2213
|
+
);
|
|
2214
|
+
return {
|
|
2215
|
+
content: [
|
|
2216
|
+
{
|
|
2217
|
+
type: "text",
|
|
2218
|
+
text: JSON.stringify(res)
|
|
2219
|
+
}
|
|
2220
|
+
]
|
|
2221
|
+
};
|
|
2222
|
+
};
|
|
2223
|
+
var getVoiceAgentVersionHandler = async (args) => {
|
|
2224
|
+
const res = await getVoiceAgentVersion(
|
|
2225
|
+
args.pathParams.voiceAgentId,
|
|
2226
|
+
args.pathParams.version
|
|
2227
|
+
);
|
|
2228
|
+
return {
|
|
2229
|
+
content: [
|
|
2230
|
+
{
|
|
2231
|
+
type: "text",
|
|
2232
|
+
text: JSON.stringify(res)
|
|
2233
|
+
}
|
|
2234
|
+
]
|
|
2235
|
+
};
|
|
2236
|
+
};
|
|
2164
2237
|
var addToolsToVoiceAgentHandler = async (args) => {
|
|
2165
2238
|
const res = await addToolsToVoiceAgent(
|
|
2166
2239
|
args.pathParams.voiceAgentId,
|
|
@@ -3339,6 +3412,9 @@ var ListVoiceAgentsResponse = zod.object({
|
|
|
3339
3412
|
tenant_id: zod.string(),
|
|
3340
3413
|
agent_name: zod.string(),
|
|
3341
3414
|
direction: zod.enum(["INBOUND", "OUTBOUND"]),
|
|
3415
|
+
phone_number: zod.union([zod.string(), zod.null()]),
|
|
3416
|
+
created_at: zod.string().datetime({}),
|
|
3417
|
+
updated_at: zod.string().datetime({}),
|
|
3342
3418
|
llm_model: zod.enum([
|
|
3343
3419
|
"GPT4.1",
|
|
3344
3420
|
"AZURE-GPT4o",
|
|
@@ -3372,18 +3448,19 @@ var ListVoiceAgentsResponse = zod.object({
|
|
|
3372
3448
|
"AWS-TRANSCRIBE",
|
|
3373
3449
|
"ELEVENLABS-SCRIBE-V2-REALTIME"
|
|
3374
3450
|
]),
|
|
3451
|
+
background_sounds: zod.enum(["enabled", "disabled"]),
|
|
3452
|
+
noise_cancellation: zod.enum(["NONE", "NC", "BVC", "BVC_TELEPHONY"]),
|
|
3453
|
+
voice_mail_detection: zod.boolean(),
|
|
3454
|
+
dial_pad: zod.boolean(),
|
|
3455
|
+
end_call: zod.boolean(),
|
|
3375
3456
|
transfer_phone_number: zod.union([zod.string(), zod.null()]),
|
|
3376
3457
|
call_processor_id: zod.union([zod.string(), zod.null()]),
|
|
3377
3458
|
call_processor_type: zod.union([
|
|
3378
3459
|
zod.enum(["extractor", "worker"]),
|
|
3379
3460
|
zod.null()
|
|
3380
3461
|
]),
|
|
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(),
|
|
3462
|
+
evaluator_slug: zod.union([zod.string(), zod.null()]),
|
|
3463
|
+
lk_cloud_routing_pct: zod.number(),
|
|
3387
3464
|
fallback_llm_model: zod.union([
|
|
3388
3465
|
zod.enum([
|
|
3389
3466
|
"GPT4.1",
|
|
@@ -3428,6 +3505,7 @@ var ListVoiceAgentsResponse = zod.object({
|
|
|
3428
3505
|
]),
|
|
3429
3506
|
zod.null()
|
|
3430
3507
|
]),
|
|
3508
|
+
greeting: zod.union([zod.string(), zod.null()]),
|
|
3431
3509
|
inactivity_timeout_seconds: zod.union([
|
|
3432
3510
|
zod.number().min(
|
|
3433
3511
|
listVoiceAgentsResponseAgentsItemInactivityTimeoutSecondsOneMin
|
|
@@ -3519,6 +3597,9 @@ var GetVoiceAgentResponse = zod.object({
|
|
|
3519
3597
|
tenant_id: zod.string(),
|
|
3520
3598
|
agent_name: zod.string(),
|
|
3521
3599
|
direction: zod.enum(["INBOUND", "OUTBOUND"]),
|
|
3600
|
+
phone_number: zod.union([zod.string(), zod.null()]),
|
|
3601
|
+
created_at: zod.string().datetime({}),
|
|
3602
|
+
updated_at: zod.string().datetime({}),
|
|
3522
3603
|
llm_model: zod.enum([
|
|
3523
3604
|
"GPT4.1",
|
|
3524
3605
|
"AZURE-GPT4o",
|
|
@@ -3552,18 +3633,19 @@ var GetVoiceAgentResponse = zod.object({
|
|
|
3552
3633
|
"AWS-TRANSCRIBE",
|
|
3553
3634
|
"ELEVENLABS-SCRIBE-V2-REALTIME"
|
|
3554
3635
|
]),
|
|
3636
|
+
background_sounds: zod.enum(["enabled", "disabled"]),
|
|
3637
|
+
noise_cancellation: zod.enum(["NONE", "NC", "BVC", "BVC_TELEPHONY"]),
|
|
3638
|
+
voice_mail_detection: zod.boolean(),
|
|
3639
|
+
dial_pad: zod.boolean(),
|
|
3640
|
+
end_call: zod.boolean(),
|
|
3555
3641
|
transfer_phone_number: zod.union([zod.string(), zod.null()]),
|
|
3556
3642
|
call_processor_id: zod.union([zod.string(), zod.null()]),
|
|
3557
3643
|
call_processor_type: zod.union([
|
|
3558
3644
|
zod.enum(["extractor", "worker"]),
|
|
3559
3645
|
zod.null()
|
|
3560
3646
|
]),
|
|
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(),
|
|
3647
|
+
evaluator_slug: zod.union([zod.string(), zod.null()]),
|
|
3648
|
+
lk_cloud_routing_pct: zod.number(),
|
|
3567
3649
|
fallback_llm_model: zod.union([
|
|
3568
3650
|
zod.enum([
|
|
3569
3651
|
"GPT4.1",
|
|
@@ -3608,6 +3690,7 @@ var GetVoiceAgentResponse = zod.object({
|
|
|
3608
3690
|
]),
|
|
3609
3691
|
zod.null()
|
|
3610
3692
|
]),
|
|
3693
|
+
greeting: zod.union([zod.string(), zod.null()]),
|
|
3611
3694
|
inactivity_timeout_seconds: zod.union([
|
|
3612
3695
|
zod.number().min(getVoiceAgentResponseAgentInactivityTimeoutSecondsOneMin).max(getVoiceAgentResponseAgentInactivityTimeoutSecondsOneMax),
|
|
3613
3696
|
zod.null()
|
|
@@ -3638,6 +3721,9 @@ var UpdateVoiceAgentResponse = zod.object({
|
|
|
3638
3721
|
tenant_id: zod.string(),
|
|
3639
3722
|
agent_name: zod.string(),
|
|
3640
3723
|
direction: zod.enum(["INBOUND", "OUTBOUND"]),
|
|
3724
|
+
phone_number: zod.union([zod.string(), zod.null()]),
|
|
3725
|
+
created_at: zod.string().datetime({}),
|
|
3726
|
+
updated_at: zod.string().datetime({}),
|
|
3641
3727
|
llm_model: zod.enum([
|
|
3642
3728
|
"GPT4.1",
|
|
3643
3729
|
"AZURE-GPT4o",
|
|
@@ -3671,18 +3757,19 @@ var UpdateVoiceAgentResponse = zod.object({
|
|
|
3671
3757
|
"AWS-TRANSCRIBE",
|
|
3672
3758
|
"ELEVENLABS-SCRIBE-V2-REALTIME"
|
|
3673
3759
|
]),
|
|
3760
|
+
background_sounds: zod.enum(["enabled", "disabled"]),
|
|
3761
|
+
noise_cancellation: zod.enum(["NONE", "NC", "BVC", "BVC_TELEPHONY"]),
|
|
3762
|
+
voice_mail_detection: zod.boolean(),
|
|
3763
|
+
dial_pad: zod.boolean(),
|
|
3764
|
+
end_call: zod.boolean(),
|
|
3674
3765
|
transfer_phone_number: zod.union([zod.string(), zod.null()]),
|
|
3675
3766
|
call_processor_id: zod.union([zod.string(), zod.null()]),
|
|
3676
3767
|
call_processor_type: zod.union([
|
|
3677
3768
|
zod.enum(["extractor", "worker"]),
|
|
3678
3769
|
zod.null()
|
|
3679
3770
|
]),
|
|
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(),
|
|
3771
|
+
evaluator_slug: zod.union([zod.string(), zod.null()]),
|
|
3772
|
+
lk_cloud_routing_pct: zod.number(),
|
|
3686
3773
|
fallback_llm_model: zod.union([
|
|
3687
3774
|
zod.enum([
|
|
3688
3775
|
"GPT4.1",
|
|
@@ -3727,12 +3814,160 @@ var UpdateVoiceAgentResponse = zod.object({
|
|
|
3727
3814
|
]),
|
|
3728
3815
|
zod.null()
|
|
3729
3816
|
]),
|
|
3817
|
+
greeting: zod.union([zod.string(), zod.null()]),
|
|
3730
3818
|
inactivity_timeout_seconds: zod.union([
|
|
3731
3819
|
zod.number().min(updateVoiceAgentResponseAgentInactivityTimeoutSecondsOneMin).max(updateVoiceAgentResponseAgentInactivityTimeoutSecondsOneMax),
|
|
3732
3820
|
zod.null()
|
|
3733
3821
|
]).describe("Inactivity timeout in seconds. null disables the feature.")
|
|
3734
3822
|
})
|
|
3735
3823
|
});
|
|
3824
|
+
var ListVoiceAgentVersionsParams = zod.object({
|
|
3825
|
+
voiceAgentId: zod.string().uuid()
|
|
3826
|
+
});
|
|
3827
|
+
var listVoiceAgentVersionsQueryCountDefault = 50;
|
|
3828
|
+
var listVoiceAgentVersionsQueryCountMax = 100;
|
|
3829
|
+
var listVoiceAgentVersionsQueryOffsetDefault = 0;
|
|
3830
|
+
var listVoiceAgentVersionsQueryOffsetMin = 0;
|
|
3831
|
+
var listVoiceAgentVersionsQuerySortByDefault = `version`;
|
|
3832
|
+
var listVoiceAgentVersionsQuerySortOrderDefault = `desc`;
|
|
3833
|
+
var ListVoiceAgentVersionsQueryParams = zod.object({
|
|
3834
|
+
count: zod.number().min(1).max(listVoiceAgentVersionsQueryCountMax).default(listVoiceAgentVersionsQueryCountDefault),
|
|
3835
|
+
offset: zod.number().min(listVoiceAgentVersionsQueryOffsetMin).default(listVoiceAgentVersionsQueryOffsetDefault),
|
|
3836
|
+
sort_by: zod.enum(["version", "created_at"]).default(listVoiceAgentVersionsQuerySortByDefault),
|
|
3837
|
+
sort_order: zod.enum(["asc", "desc"]).default(listVoiceAgentVersionsQuerySortOrderDefault)
|
|
3838
|
+
});
|
|
3839
|
+
var listVoiceAgentVersionsResponseVersionMin = -9007199254740991;
|
|
3840
|
+
var listVoiceAgentVersionsResponseVersionMax = 9007199254740991;
|
|
3841
|
+
var ListVoiceAgentVersionsResponseItem = zod.object({
|
|
3842
|
+
voice_agent_id: zod.string(),
|
|
3843
|
+
version: zod.number().min(listVoiceAgentVersionsResponseVersionMin).max(listVoiceAgentVersionsResponseVersionMax),
|
|
3844
|
+
actor: zod.string(),
|
|
3845
|
+
created_at: zod.string().datetime({}),
|
|
3846
|
+
changed_fields: zod.array(zod.string()).describe(
|
|
3847
|
+
"Voice agent config field names (matching the keys on the voice agent response) whose values differ from the previous version. Empty for version 1."
|
|
3848
|
+
)
|
|
3849
|
+
});
|
|
3850
|
+
var ListVoiceAgentVersionsResponse = zod.array(
|
|
3851
|
+
ListVoiceAgentVersionsResponseItem
|
|
3852
|
+
);
|
|
3853
|
+
var GetVoiceAgentVersionParams = zod.object({
|
|
3854
|
+
voiceAgentId: zod.string().uuid(),
|
|
3855
|
+
version: zod.number()
|
|
3856
|
+
});
|
|
3857
|
+
var getVoiceAgentVersionResponseInactivityTimeoutSecondsOneMin = -9007199254740991;
|
|
3858
|
+
var getVoiceAgentVersionResponseInactivityTimeoutSecondsOneMax = 9007199254740991;
|
|
3859
|
+
var getVoiceAgentVersionResponseVersionMin = -9007199254740991;
|
|
3860
|
+
var getVoiceAgentVersionResponseVersionMax = 9007199254740991;
|
|
3861
|
+
var GetVoiceAgentVersionResponse = zod.object({
|
|
3862
|
+
id: zod.string(),
|
|
3863
|
+
tenant_id: zod.string(),
|
|
3864
|
+
agent_name: zod.string(),
|
|
3865
|
+
direction: zod.enum(["INBOUND", "OUTBOUND"]),
|
|
3866
|
+
phone_number: zod.union([zod.string(), zod.null()]),
|
|
3867
|
+
created_at: zod.string().datetime({}),
|
|
3868
|
+
updated_at: zod.string().datetime({}),
|
|
3869
|
+
llm_model: zod.enum([
|
|
3870
|
+
"GPT4.1",
|
|
3871
|
+
"AZURE-GPT4o",
|
|
3872
|
+
"AZURE-GPT4.1",
|
|
3873
|
+
"GPT-5",
|
|
3874
|
+
"GPT-5-low",
|
|
3875
|
+
"GPT-5-high",
|
|
3876
|
+
"GPT-5.1-chat-latest",
|
|
3877
|
+
"GPT-5.1-no-reasoning",
|
|
3878
|
+
"GEMINI-1.5-flash",
|
|
3879
|
+
"GEMINI-2.5-flash",
|
|
3880
|
+
"GEMINI-2.5-flash-lite",
|
|
3881
|
+
"GEMINI-3-flash",
|
|
3882
|
+
"CLAUDE-sonnet-4.6",
|
|
3883
|
+
"CLAUDE-haiku-4.5",
|
|
3884
|
+
"GPT-5.4-mini"
|
|
3885
|
+
]),
|
|
3886
|
+
tts_provider: zod.enum(["elevenlabs", "cartesia", "google", "aws-polly"]),
|
|
3887
|
+
tts_model: zod.enum([
|
|
3888
|
+
"eleven_flash_v2_5",
|
|
3889
|
+
"eleven_turbo_v2_5",
|
|
3890
|
+
"sonic-3",
|
|
3891
|
+
"chirp_3",
|
|
3892
|
+
"polly-neural"
|
|
3893
|
+
]),
|
|
3894
|
+
language: zod.enum(["en-US", "de-DE"]),
|
|
3895
|
+
tts_voice_id: zod.string().describe("Voice ID from the TTS provider"),
|
|
3896
|
+
stt_model: zod.enum([
|
|
3897
|
+
"DEEPGRAM-NOVA-2-GENERAL",
|
|
3898
|
+
"DEEPGRAM-NOVA-3-GENERAL",
|
|
3899
|
+
"AWS-TRANSCRIBE",
|
|
3900
|
+
"ELEVENLABS-SCRIBE-V2-REALTIME"
|
|
3901
|
+
]),
|
|
3902
|
+
background_sounds: zod.enum(["enabled", "disabled"]),
|
|
3903
|
+
noise_cancellation: zod.enum(["NONE", "NC", "BVC", "BVC_TELEPHONY"]),
|
|
3904
|
+
voice_mail_detection: zod.boolean(),
|
|
3905
|
+
dial_pad: zod.boolean(),
|
|
3906
|
+
end_call: zod.boolean(),
|
|
3907
|
+
transfer_phone_number: zod.union([zod.string(), zod.null()]),
|
|
3908
|
+
call_processor_id: zod.union([zod.string(), zod.null()]),
|
|
3909
|
+
call_processor_type: zod.union([
|
|
3910
|
+
zod.enum(["extractor", "worker"]),
|
|
3911
|
+
zod.null()
|
|
3912
|
+
]),
|
|
3913
|
+
evaluator_slug: zod.union([zod.string(), zod.null()]),
|
|
3914
|
+
lk_cloud_routing_pct: zod.number(),
|
|
3915
|
+
fallback_llm_model: zod.union([
|
|
3916
|
+
zod.enum([
|
|
3917
|
+
"GPT4.1",
|
|
3918
|
+
"AZURE-GPT4o",
|
|
3919
|
+
"AZURE-GPT4.1",
|
|
3920
|
+
"GPT-5",
|
|
3921
|
+
"GPT-5-low",
|
|
3922
|
+
"GPT-5-high",
|
|
3923
|
+
"GPT-5.1-chat-latest",
|
|
3924
|
+
"GPT-5.1-no-reasoning",
|
|
3925
|
+
"GEMINI-1.5-flash",
|
|
3926
|
+
"GEMINI-2.5-flash",
|
|
3927
|
+
"GEMINI-2.5-flash-lite",
|
|
3928
|
+
"GEMINI-3-flash",
|
|
3929
|
+
"CLAUDE-sonnet-4.6",
|
|
3930
|
+
"CLAUDE-haiku-4.5",
|
|
3931
|
+
"GPT-5.4-mini"
|
|
3932
|
+
]),
|
|
3933
|
+
zod.null()
|
|
3934
|
+
]),
|
|
3935
|
+
fallback_tts_provider: zod.union([
|
|
3936
|
+
zod.enum(["elevenlabs", "cartesia", "google", "aws-polly"]),
|
|
3937
|
+
zod.null()
|
|
3938
|
+
]),
|
|
3939
|
+
fallback_tts_model: zod.union([
|
|
3940
|
+
zod.enum([
|
|
3941
|
+
"eleven_flash_v2_5",
|
|
3942
|
+
"eleven_turbo_v2_5",
|
|
3943
|
+
"sonic-3",
|
|
3944
|
+
"chirp_3",
|
|
3945
|
+
"polly-neural"
|
|
3946
|
+
]),
|
|
3947
|
+
zod.null()
|
|
3948
|
+
]),
|
|
3949
|
+
fallback_tts_voice_id: zod.union([zod.string(), zod.null()]),
|
|
3950
|
+
fallback_stt_model: zod.union([
|
|
3951
|
+
zod.enum([
|
|
3952
|
+
"DEEPGRAM-NOVA-2-GENERAL",
|
|
3953
|
+
"DEEPGRAM-NOVA-3-GENERAL",
|
|
3954
|
+
"AWS-TRANSCRIBE",
|
|
3955
|
+
"ELEVENLABS-SCRIBE-V2-REALTIME"
|
|
3956
|
+
]),
|
|
3957
|
+
zod.null()
|
|
3958
|
+
]),
|
|
3959
|
+
greeting: zod.union([zod.string(), zod.null()]),
|
|
3960
|
+
inactivity_timeout_seconds: zod.union([
|
|
3961
|
+
zod.number().min(getVoiceAgentVersionResponseInactivityTimeoutSecondsOneMin).max(getVoiceAgentVersionResponseInactivityTimeoutSecondsOneMax),
|
|
3962
|
+
zod.null()
|
|
3963
|
+
]).describe("Inactivity timeout in seconds. null disables the feature."),
|
|
3964
|
+
version: zod.number().min(getVoiceAgentVersionResponseVersionMin).max(getVoiceAgentVersionResponseVersionMax),
|
|
3965
|
+
version_created_at: zod.string().datetime({}),
|
|
3966
|
+
actor: zod.string(),
|
|
3967
|
+
changed_fields: zod.array(zod.string()).describe(
|
|
3968
|
+
"Voice agent config field names (matching the keys on the voice agent response) whose values differ from the previous version. Empty for version 1."
|
|
3969
|
+
)
|
|
3970
|
+
});
|
|
3736
3971
|
var AddToolsToVoiceAgentParams = zod.object({
|
|
3737
3972
|
voiceAgentId: zod.string().uuid()
|
|
3738
3973
|
});
|
|
@@ -3747,6 +3982,9 @@ var AddToolsToVoiceAgentResponse = zod.object({
|
|
|
3747
3982
|
tenant_id: zod.string(),
|
|
3748
3983
|
agent_name: zod.string(),
|
|
3749
3984
|
direction: zod.enum(["INBOUND", "OUTBOUND"]),
|
|
3985
|
+
phone_number: zod.union([zod.string(), zod.null()]),
|
|
3986
|
+
created_at: zod.string().datetime({}),
|
|
3987
|
+
updated_at: zod.string().datetime({}),
|
|
3750
3988
|
llm_model: zod.enum([
|
|
3751
3989
|
"GPT4.1",
|
|
3752
3990
|
"AZURE-GPT4o",
|
|
@@ -3780,18 +4018,19 @@ var AddToolsToVoiceAgentResponse = zod.object({
|
|
|
3780
4018
|
"AWS-TRANSCRIBE",
|
|
3781
4019
|
"ELEVENLABS-SCRIBE-V2-REALTIME"
|
|
3782
4020
|
]),
|
|
4021
|
+
background_sounds: zod.enum(["enabled", "disabled"]),
|
|
4022
|
+
noise_cancellation: zod.enum(["NONE", "NC", "BVC", "BVC_TELEPHONY"]),
|
|
4023
|
+
voice_mail_detection: zod.boolean(),
|
|
4024
|
+
dial_pad: zod.boolean(),
|
|
4025
|
+
end_call: zod.boolean(),
|
|
3783
4026
|
transfer_phone_number: zod.union([zod.string(), zod.null()]),
|
|
3784
4027
|
call_processor_id: zod.union([zod.string(), zod.null()]),
|
|
3785
4028
|
call_processor_type: zod.union([
|
|
3786
4029
|
zod.enum(["extractor", "worker"]),
|
|
3787
4030
|
zod.null()
|
|
3788
4031
|
]),
|
|
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(),
|
|
4032
|
+
evaluator_slug: zod.union([zod.string(), zod.null()]),
|
|
4033
|
+
lk_cloud_routing_pct: zod.number(),
|
|
3795
4034
|
fallback_llm_model: zod.union([
|
|
3796
4035
|
zod.enum([
|
|
3797
4036
|
"GPT4.1",
|
|
@@ -3836,6 +4075,7 @@ var AddToolsToVoiceAgentResponse = zod.object({
|
|
|
3836
4075
|
]),
|
|
3837
4076
|
zod.null()
|
|
3838
4077
|
]),
|
|
4078
|
+
greeting: zod.union([zod.string(), zod.null()]),
|
|
3839
4079
|
inactivity_timeout_seconds: zod.union([
|
|
3840
4080
|
zod.number().min(addToolsToVoiceAgentResponseAgentInactivityTimeoutSecondsOneMin).max(addToolsToVoiceAgentResponseAgentInactivityTimeoutSecondsOneMax),
|
|
3841
4081
|
zod.null()
|
|
@@ -3856,6 +4096,9 @@ var DeleteToolsFromVoiceAgentResponse = zod.object({
|
|
|
3856
4096
|
tenant_id: zod.string(),
|
|
3857
4097
|
agent_name: zod.string(),
|
|
3858
4098
|
direction: zod.enum(["INBOUND", "OUTBOUND"]),
|
|
4099
|
+
phone_number: zod.union([zod.string(), zod.null()]),
|
|
4100
|
+
created_at: zod.string().datetime({}),
|
|
4101
|
+
updated_at: zod.string().datetime({}),
|
|
3859
4102
|
llm_model: zod.enum([
|
|
3860
4103
|
"GPT4.1",
|
|
3861
4104
|
"AZURE-GPT4o",
|
|
@@ -3889,18 +4132,19 @@ var DeleteToolsFromVoiceAgentResponse = zod.object({
|
|
|
3889
4132
|
"AWS-TRANSCRIBE",
|
|
3890
4133
|
"ELEVENLABS-SCRIBE-V2-REALTIME"
|
|
3891
4134
|
]),
|
|
4135
|
+
background_sounds: zod.enum(["enabled", "disabled"]),
|
|
4136
|
+
noise_cancellation: zod.enum(["NONE", "NC", "BVC", "BVC_TELEPHONY"]),
|
|
4137
|
+
voice_mail_detection: zod.boolean(),
|
|
4138
|
+
dial_pad: zod.boolean(),
|
|
4139
|
+
end_call: zod.boolean(),
|
|
3892
4140
|
transfer_phone_number: zod.union([zod.string(), zod.null()]),
|
|
3893
4141
|
call_processor_id: zod.union([zod.string(), zod.null()]),
|
|
3894
4142
|
call_processor_type: zod.union([
|
|
3895
4143
|
zod.enum(["extractor", "worker"]),
|
|
3896
4144
|
zod.null()
|
|
3897
4145
|
]),
|
|
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(),
|
|
4146
|
+
evaluator_slug: zod.union([zod.string(), zod.null()]),
|
|
4147
|
+
lk_cloud_routing_pct: zod.number(),
|
|
3904
4148
|
fallback_llm_model: zod.union([
|
|
3905
4149
|
zod.enum([
|
|
3906
4150
|
"GPT4.1",
|
|
@@ -3945,6 +4189,7 @@ var DeleteToolsFromVoiceAgentResponse = zod.object({
|
|
|
3945
4189
|
]),
|
|
3946
4190
|
zod.null()
|
|
3947
4191
|
]),
|
|
4192
|
+
greeting: zod.union([zod.string(), zod.null()]),
|
|
3948
4193
|
inactivity_timeout_seconds: zod.union([
|
|
3949
4194
|
zod.number().min(
|
|
3950
4195
|
deleteToolsFromVoiceAgentResponseAgentInactivityTimeoutSecondsOneMin
|
|
@@ -4106,6 +4351,9 @@ var UpdateVoiceAgentModelsResponse = zod.object({
|
|
|
4106
4351
|
tenant_id: zod.string(),
|
|
4107
4352
|
agent_name: zod.string(),
|
|
4108
4353
|
direction: zod.enum(["INBOUND", "OUTBOUND"]),
|
|
4354
|
+
phone_number: zod.union([zod.string(), zod.null()]),
|
|
4355
|
+
created_at: zod.string().datetime({}),
|
|
4356
|
+
updated_at: zod.string().datetime({}),
|
|
4109
4357
|
llm_model: zod.enum([
|
|
4110
4358
|
"GPT4.1",
|
|
4111
4359
|
"AZURE-GPT4o",
|
|
@@ -4139,18 +4387,19 @@ var UpdateVoiceAgentModelsResponse = zod.object({
|
|
|
4139
4387
|
"AWS-TRANSCRIBE",
|
|
4140
4388
|
"ELEVENLABS-SCRIBE-V2-REALTIME"
|
|
4141
4389
|
]),
|
|
4390
|
+
background_sounds: zod.enum(["enabled", "disabled"]),
|
|
4391
|
+
noise_cancellation: zod.enum(["NONE", "NC", "BVC", "BVC_TELEPHONY"]),
|
|
4392
|
+
voice_mail_detection: zod.boolean(),
|
|
4393
|
+
dial_pad: zod.boolean(),
|
|
4394
|
+
end_call: zod.boolean(),
|
|
4142
4395
|
transfer_phone_number: zod.union([zod.string(), zod.null()]),
|
|
4143
4396
|
call_processor_id: zod.union([zod.string(), zod.null()]),
|
|
4144
4397
|
call_processor_type: zod.union([
|
|
4145
4398
|
zod.enum(["extractor", "worker"]),
|
|
4146
4399
|
zod.null()
|
|
4147
4400
|
]),
|
|
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(),
|
|
4401
|
+
evaluator_slug: zod.union([zod.string(), zod.null()]),
|
|
4402
|
+
lk_cloud_routing_pct: zod.number(),
|
|
4154
4403
|
fallback_llm_model: zod.union([
|
|
4155
4404
|
zod.enum([
|
|
4156
4405
|
"GPT4.1",
|
|
@@ -4195,6 +4444,7 @@ var UpdateVoiceAgentModelsResponse = zod.object({
|
|
|
4195
4444
|
]),
|
|
4196
4445
|
zod.null()
|
|
4197
4446
|
]),
|
|
4447
|
+
greeting: zod.union([zod.string(), zod.null()]),
|
|
4198
4448
|
inactivity_timeout_seconds: zod.union([
|
|
4199
4449
|
zod.number().min(
|
|
4200
4450
|
updateVoiceAgentModelsResponseAgentInactivityTimeoutSecondsOneMin
|
|
@@ -4221,6 +4471,9 @@ var UpdateCallControlsResponse = zod.object({
|
|
|
4221
4471
|
tenant_id: zod.string(),
|
|
4222
4472
|
agent_name: zod.string(),
|
|
4223
4473
|
direction: zod.enum(["INBOUND", "OUTBOUND"]),
|
|
4474
|
+
phone_number: zod.union([zod.string(), zod.null()]),
|
|
4475
|
+
created_at: zod.string().datetime({}),
|
|
4476
|
+
updated_at: zod.string().datetime({}),
|
|
4224
4477
|
llm_model: zod.enum([
|
|
4225
4478
|
"GPT4.1",
|
|
4226
4479
|
"AZURE-GPT4o",
|
|
@@ -4254,18 +4507,19 @@ var UpdateCallControlsResponse = zod.object({
|
|
|
4254
4507
|
"AWS-TRANSCRIBE",
|
|
4255
4508
|
"ELEVENLABS-SCRIBE-V2-REALTIME"
|
|
4256
4509
|
]),
|
|
4510
|
+
background_sounds: zod.enum(["enabled", "disabled"]),
|
|
4511
|
+
noise_cancellation: zod.enum(["NONE", "NC", "BVC", "BVC_TELEPHONY"]),
|
|
4512
|
+
voice_mail_detection: zod.boolean(),
|
|
4513
|
+
dial_pad: zod.boolean(),
|
|
4514
|
+
end_call: zod.boolean(),
|
|
4257
4515
|
transfer_phone_number: zod.union([zod.string(), zod.null()]),
|
|
4258
4516
|
call_processor_id: zod.union([zod.string(), zod.null()]),
|
|
4259
4517
|
call_processor_type: zod.union([
|
|
4260
4518
|
zod.enum(["extractor", "worker"]),
|
|
4261
4519
|
zod.null()
|
|
4262
4520
|
]),
|
|
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(),
|
|
4521
|
+
evaluator_slug: zod.union([zod.string(), zod.null()]),
|
|
4522
|
+
lk_cloud_routing_pct: zod.number(),
|
|
4269
4523
|
fallback_llm_model: zod.union([
|
|
4270
4524
|
zod.enum([
|
|
4271
4525
|
"GPT4.1",
|
|
@@ -4310,6 +4564,7 @@ var UpdateCallControlsResponse = zod.object({
|
|
|
4310
4564
|
]),
|
|
4311
4565
|
zod.null()
|
|
4312
4566
|
]),
|
|
4567
|
+
greeting: zod.union([zod.string(), zod.null()]),
|
|
4313
4568
|
inactivity_timeout_seconds: zod.union([
|
|
4314
4569
|
zod.number().min(updateCallControlsResponseAgentInactivityTimeoutSecondsOneMin).max(updateCallControlsResponseAgentInactivityTimeoutSecondsOneMax),
|
|
4315
4570
|
zod.null()
|
|
@@ -6286,6 +6541,23 @@ server.tool(
|
|
|
6286
6541
|
},
|
|
6287
6542
|
updateVoiceAgentHandler
|
|
6288
6543
|
);
|
|
6544
|
+
server.tool(
|
|
6545
|
+
"listVoiceAgentVersions",
|
|
6546
|
+
"List voice agent versions",
|
|
6547
|
+
{
|
|
6548
|
+
pathParams: ListVoiceAgentVersionsParams,
|
|
6549
|
+
queryParams: ListVoiceAgentVersionsQueryParams
|
|
6550
|
+
},
|
|
6551
|
+
listVoiceAgentVersionsHandler
|
|
6552
|
+
);
|
|
6553
|
+
server.tool(
|
|
6554
|
+
"getVoiceAgentVersion",
|
|
6555
|
+
"Get voice agent version",
|
|
6556
|
+
{
|
|
6557
|
+
pathParams: GetVoiceAgentVersionParams
|
|
6558
|
+
},
|
|
6559
|
+
getVoiceAgentVersionHandler
|
|
6560
|
+
);
|
|
6289
6561
|
server.tool(
|
|
6290
6562
|
"addToolsToVoiceAgent",
|
|
6291
6563
|
"Add tools to voice agent",
|
|
@@ -7107,4 +7379,4 @@ var transport = new StdioServerTransport();
|
|
|
7107
7379
|
server.connect(transport).then(() => {
|
|
7108
7380
|
console.error("MCP server running on stdio");
|
|
7109
7381
|
}).catch(console.error);
|
|
7110
|
-
//# sourceMappingURL=server-
|
|
7382
|
+
//# sourceMappingURL=server-AL2OKFWL.js.map
|