retell-sync-cli 3.2.0 → 3.4.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.
- package/dist/cli.js +9 -4
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -113760,7 +113760,6 @@ var agentFieldDocs = {
|
|
|
113760
113760
|
signed_url_expiration_ms: "Signed URL expiration time in ms. Only applies when opt_in_signed_url is true. Default 86400000 (24 hours).",
|
|
113761
113761
|
stt_mode: "Speech-to-text mode. Options: fast, accurate. Default fast.",
|
|
113762
113762
|
user_dtmf_options: "DTMF options for user input.",
|
|
113763
|
-
version_title: "Title for this version of the agent.",
|
|
113764
113763
|
vocab_specialization: "Vocabulary set for transcription. Options: general, medical. Default general. English only.",
|
|
113765
113764
|
voice_id: "Unique voice ID. Find available voices in Dashboard.",
|
|
113766
113765
|
voice_model: "Voice model for selected voice. Only elevenlab voices have model selections.",
|
|
@@ -134737,7 +134736,12 @@ function canonicalizeFromApi({
|
|
|
134737
134736
|
const requiredConversationFlows = t3(latestAgents, t9((a7) => conversationFlows.find((cf3) => a7.response_engine.type === "conversation-flow" && a7.response_engine.conversation_flow_id === cf3.conversation_flow_id && a7.response_engine.version === cf3.version && a7.is_published === cf3.is_published)), n3(e4));
|
|
134738
134737
|
const requiredLLMs = t3(latestAgents, t9((a7) => llms.find((llm) => a7.response_engine.type === "retell-llm" && a7.response_engine.llm_id === llm.llm_id && a7.response_engine.version === llm.version && a7.is_published === llm.is_published)), n3(e4));
|
|
134739
134738
|
return {
|
|
134740
|
-
voiceAgents: latestAgents.map(({
|
|
134739
|
+
voiceAgents: latestAgents.map(({
|
|
134740
|
+
agent_id: _id,
|
|
134741
|
+
version: version2,
|
|
134742
|
+
version_title: _versionTitle,
|
|
134743
|
+
...rest
|
|
134744
|
+
}) => n9({ ...rest, _id, _version: version2 ?? 0 }, [
|
|
134741
134745
|
"last_modification_timestamp",
|
|
134742
134746
|
"is_published"
|
|
134743
134747
|
])),
|
|
@@ -134991,6 +134995,7 @@ async function canonicalizeFromFiles(files) {
|
|
|
134991
134995
|
conversationFlows.push(flowConfig);
|
|
134992
134996
|
}
|
|
134993
134997
|
}
|
|
134998
|
+
delete agentConfig.version_title;
|
|
134994
134999
|
agentConfig._id = agentMeta.id;
|
|
134995
135000
|
agentConfig._version = agentMeta.version;
|
|
134996
135001
|
agentConfig.response_engine = agentMeta.response_engine;
|
|
@@ -135491,7 +135496,7 @@ async function deploy({
|
|
|
135491
135496
|
const {
|
|
135492
135497
|
_id,
|
|
135493
135498
|
_version,
|
|
135494
|
-
response_engine:
|
|
135499
|
+
response_engine: _responseEngine,
|
|
135495
135500
|
...updateData
|
|
135496
135501
|
} = change.current;
|
|
135497
135502
|
await retell.agent.update(_id, updateData);
|
|
@@ -135712,7 +135717,7 @@ async function publish({
|
|
|
135712
135717
|
bold(`Checking ${scopeLabel} for unpublished changes...`);
|
|
135713
135718
|
let spinner = createSpinner2("Fetching draft and published states...");
|
|
135714
135719
|
const [draftState, publishedState] = await Promise.all([
|
|
135715
|
-
|
|
135720
|
+
getRemoteState({ draft: true, agentIds }),
|
|
135716
135721
|
getRemoteState({ draft: false, agentIds })
|
|
135717
135722
|
]);
|
|
135718
135723
|
spinner.stop(source_default.dim("Done"));
|