@keystrokehq/retellai 0.1.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.
- package/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/add-community-voice.cjs +27 -0
- package/dist/actions/add-community-voice.cjs.map +1 -0
- package/dist/actions/add-community-voice.d.cts +9 -0
- package/dist/actions/add-community-voice.d.cts.map +1 -0
- package/dist/actions/add-community-voice.d.mts +9 -0
- package/dist/actions/add-community-voice.d.mts.map +1 -0
- package/dist/actions/add-community-voice.mjs +24 -0
- package/dist/actions/add-community-voice.mjs.map +1 -0
- package/dist/actions/add-knowledge-base-sources.cjs +57 -0
- package/dist/actions/add-knowledge-base-sources.cjs.map +1 -0
- package/dist/actions/add-knowledge-base-sources.d.cts +9 -0
- package/dist/actions/add-knowledge-base-sources.d.cts.map +1 -0
- package/dist/actions/add-knowledge-base-sources.d.mts +9 -0
- package/dist/actions/add-knowledge-base-sources.d.mts.map +1 -0
- package/dist/actions/add-knowledge-base-sources.mjs +56 -0
- package/dist/actions/add-knowledge-base-sources.mjs.map +1 -0
- package/dist/actions/buy-a-new-phone-number-bind-agents.cjs +41 -0
- package/dist/actions/buy-a-new-phone-number-bind-agents.cjs.map +1 -0
- package/dist/actions/buy-a-new-phone-number-bind-agents.d.cts +9 -0
- package/dist/actions/buy-a-new-phone-number-bind-agents.d.cts.map +1 -0
- package/dist/actions/buy-a-new-phone-number-bind-agents.d.mts +9 -0
- package/dist/actions/buy-a-new-phone-number-bind-agents.d.mts.map +1 -0
- package/dist/actions/buy-a-new-phone-number-bind-agents.mjs +40 -0
- package/dist/actions/buy-a-new-phone-number-bind-agents.mjs.map +1 -0
- package/dist/actions/create-a-new-outbound-phone-call.cjs +195 -0
- package/dist/actions/create-a-new-outbound-phone-call.cjs.map +1 -0
- package/dist/actions/create-a-new-outbound-phone-call.d.cts +9 -0
- package/dist/actions/create-a-new-outbound-phone-call.d.cts.map +1 -0
- package/dist/actions/create-a-new-outbound-phone-call.d.mts +9 -0
- package/dist/actions/create-a-new-outbound-phone-call.d.mts.map +1 -0
- package/dist/actions/create-a-new-outbound-phone-call.mjs +194 -0
- package/dist/actions/create-a-new-outbound-phone-call.mjs.map +1 -0
- package/dist/actions/create-a-new-web-call.cjs +69 -0
- package/dist/actions/create-a-new-web-call.cjs.map +1 -0
- package/dist/actions/create-a-new-web-call.d.cts +9 -0
- package/dist/actions/create-a-new-web-call.d.cts.map +1 -0
- package/dist/actions/create-a-new-web-call.d.mts +9 -0
- package/dist/actions/create-a-new-web-call.d.mts.map +1 -0
- package/dist/actions/create-a-new-web-call.mjs +68 -0
- package/dist/actions/create-a-new-web-call.mjs.map +1 -0
- package/dist/actions/create-agent.cjs +162 -0
- package/dist/actions/create-agent.cjs.map +1 -0
- package/dist/actions/create-agent.d.cts +9 -0
- package/dist/actions/create-agent.d.cts.map +1 -0
- package/dist/actions/create-agent.d.mts +9 -0
- package/dist/actions/create-agent.d.mts.map +1 -0
- package/dist/actions/create-agent.mjs +159 -0
- package/dist/actions/create-agent.mjs.map +1 -0
- package/dist/actions/create-batch-test.cjs +44 -0
- package/dist/actions/create-batch-test.cjs.map +1 -0
- package/dist/actions/create-batch-test.d.cts +9 -0
- package/dist/actions/create-batch-test.d.cts.map +1 -0
- package/dist/actions/create-batch-test.d.mts +9 -0
- package/dist/actions/create-batch-test.d.mts.map +1 -0
- package/dist/actions/create-batch-test.mjs +43 -0
- package/dist/actions/create-batch-test.mjs.map +1 -0
- package/dist/actions/create-chat-agent.cjs +138 -0
- package/dist/actions/create-chat-agent.cjs.map +1 -0
- package/dist/actions/create-chat-agent.d.cts +9 -0
- package/dist/actions/create-chat-agent.d.cts.map +1 -0
- package/dist/actions/create-chat-agent.d.mts +9 -0
- package/dist/actions/create-chat-agent.d.mts.map +1 -0
- package/dist/actions/create-chat-agent.mjs +137 -0
- package/dist/actions/create-chat-agent.mjs.map +1 -0
- package/dist/actions/create-chat-completion.cjs +19 -0
- package/dist/actions/create-chat-completion.cjs.map +1 -0
- package/dist/actions/create-chat-completion.d.cts +9 -0
- package/dist/actions/create-chat-completion.d.cts.map +1 -0
- package/dist/actions/create-chat-completion.d.mts +9 -0
- package/dist/actions/create-chat-completion.d.mts.map +1 -0
- package/dist/actions/create-chat-completion.mjs +16 -0
- package/dist/actions/create-chat-completion.mjs.map +1 -0
- package/dist/actions/create-chat.cjs +61 -0
- package/dist/actions/create-chat.cjs.map +1 -0
- package/dist/actions/create-chat.d.cts +9 -0
- package/dist/actions/create-chat.d.cts.map +1 -0
- package/dist/actions/create-chat.d.mts +9 -0
- package/dist/actions/create-chat.d.mts.map +1 -0
- package/dist/actions/create-chat.mjs +60 -0
- package/dist/actions/create-chat.mjs.map +1 -0
- package/dist/actions/create-conversation-flow-component.cjs +66 -0
- package/dist/actions/create-conversation-flow-component.cjs.map +1 -0
- package/dist/actions/create-conversation-flow-component.d.cts +9 -0
- package/dist/actions/create-conversation-flow-component.d.cts.map +1 -0
- package/dist/actions/create-conversation-flow-component.d.mts +9 -0
- package/dist/actions/create-conversation-flow-component.d.mts.map +1 -0
- package/dist/actions/create-conversation-flow-component.mjs +65 -0
- package/dist/actions/create-conversation-flow-component.mjs.map +1 -0
- package/dist/actions/create-conversation-flow.cjs +52 -0
- package/dist/actions/create-conversation-flow.cjs.map +1 -0
- package/dist/actions/create-conversation-flow.d.cts +9 -0
- package/dist/actions/create-conversation-flow.d.cts.map +1 -0
- package/dist/actions/create-conversation-flow.d.mts +9 -0
- package/dist/actions/create-conversation-flow.d.mts.map +1 -0
- package/dist/actions/create-conversation-flow.mjs +49 -0
- package/dist/actions/create-conversation-flow.mjs.map +1 -0
- package/dist/actions/create-knowledge-base.cjs +35 -0
- package/dist/actions/create-knowledge-base.cjs.map +1 -0
- package/dist/actions/create-knowledge-base.d.cts +9 -0
- package/dist/actions/create-knowledge-base.d.cts.map +1 -0
- package/dist/actions/create-knowledge-base.d.mts +9 -0
- package/dist/actions/create-knowledge-base.d.mts.map +1 -0
- package/dist/actions/create-knowledge-base.mjs +32 -0
- package/dist/actions/create-knowledge-base.mjs.map +1 -0
- package/dist/actions/create-retell-llm.cjs +122 -0
- package/dist/actions/create-retell-llm.cjs.map +1 -0
- package/dist/actions/create-retell-llm.d.cts +9 -0
- package/dist/actions/create-retell-llm.d.cts.map +1 -0
- package/dist/actions/create-retell-llm.d.mts +9 -0
- package/dist/actions/create-retell-llm.d.mts.map +1 -0
- package/dist/actions/create-retell-llm.mjs +121 -0
- package/dist/actions/create-retell-llm.mjs.map +1 -0
- package/dist/actions/create-test-case-definition.cjs +44 -0
- package/dist/actions/create-test-case-definition.cjs.map +1 -0
- package/dist/actions/create-test-case-definition.d.cts +9 -0
- package/dist/actions/create-test-case-definition.d.cts.map +1 -0
- package/dist/actions/create-test-case-definition.d.mts +9 -0
- package/dist/actions/create-test-case-definition.d.mts.map +1 -0
- package/dist/actions/create-test-case-definition.mjs +41 -0
- package/dist/actions/create-test-case-definition.mjs.map +1 -0
- package/dist/actions/delete-agent.cjs +20 -0
- package/dist/actions/delete-agent.cjs.map +1 -0
- package/dist/actions/delete-agent.d.cts +9 -0
- package/dist/actions/delete-agent.d.cts.map +1 -0
- package/dist/actions/delete-agent.d.mts +9 -0
- package/dist/actions/delete-agent.d.mts.map +1 -0
- package/dist/actions/delete-agent.mjs +19 -0
- package/dist/actions/delete-agent.mjs.map +1 -0
- package/dist/actions/delete-call.cjs +16 -0
- package/dist/actions/delete-call.cjs.map +1 -0
- package/dist/actions/delete-call.d.cts +9 -0
- package/dist/actions/delete-call.d.cts.map +1 -0
- package/dist/actions/delete-call.d.mts +9 -0
- package/dist/actions/delete-call.d.mts.map +1 -0
- package/dist/actions/delete-call.mjs +13 -0
- package/dist/actions/delete-call.mjs.map +1 -0
- package/dist/actions/delete-chat-agent.cjs +19 -0
- package/dist/actions/delete-chat-agent.cjs.map +1 -0
- package/dist/actions/delete-chat-agent.d.cts +9 -0
- package/dist/actions/delete-chat-agent.d.cts.map +1 -0
- package/dist/actions/delete-chat-agent.d.mts +9 -0
- package/dist/actions/delete-chat-agent.d.mts.map +1 -0
- package/dist/actions/delete-chat-agent.mjs +16 -0
- package/dist/actions/delete-chat-agent.mjs.map +1 -0
- package/dist/actions/delete-conversation-flow-component.cjs +16 -0
- package/dist/actions/delete-conversation-flow-component.cjs.map +1 -0
- package/dist/actions/delete-conversation-flow-component.d.cts +9 -0
- package/dist/actions/delete-conversation-flow-component.d.cts.map +1 -0
- package/dist/actions/delete-conversation-flow-component.d.mts +9 -0
- package/dist/actions/delete-conversation-flow-component.d.mts.map +1 -0
- package/dist/actions/delete-conversation-flow-component.mjs +13 -0
- package/dist/actions/delete-conversation-flow-component.mjs.map +1 -0
- package/dist/actions/delete-conversation-flow.cjs +16 -0
- package/dist/actions/delete-conversation-flow.cjs.map +1 -0
- package/dist/actions/delete-conversation-flow.d.cts +9 -0
- package/dist/actions/delete-conversation-flow.d.cts.map +1 -0
- package/dist/actions/delete-conversation-flow.d.mts +9 -0
- package/dist/actions/delete-conversation-flow.d.mts.map +1 -0
- package/dist/actions/delete-conversation-flow.mjs +13 -0
- package/dist/actions/delete-conversation-flow.mjs.map +1 -0
- package/dist/actions/delete-knowledge-base-source.cjs +19 -0
- package/dist/actions/delete-knowledge-base-source.cjs.map +1 -0
- package/dist/actions/delete-knowledge-base-source.d.cts +9 -0
- package/dist/actions/delete-knowledge-base-source.d.cts.map +1 -0
- package/dist/actions/delete-knowledge-base-source.d.mts +9 -0
- package/dist/actions/delete-knowledge-base-source.d.mts.map +1 -0
- package/dist/actions/delete-knowledge-base-source.mjs +16 -0
- package/dist/actions/delete-knowledge-base-source.mjs.map +1 -0
- package/dist/actions/delete-knowledge-base.cjs +16 -0
- package/dist/actions/delete-knowledge-base.cjs.map +1 -0
- package/dist/actions/delete-knowledge-base.d.cts +9 -0
- package/dist/actions/delete-knowledge-base.d.cts.map +1 -0
- package/dist/actions/delete-knowledge-base.d.mts +9 -0
- package/dist/actions/delete-knowledge-base.d.mts.map +1 -0
- package/dist/actions/delete-knowledge-base.mjs +13 -0
- package/dist/actions/delete-knowledge-base.mjs.map +1 -0
- package/dist/actions/delete-phone-number.cjs +19 -0
- package/dist/actions/delete-phone-number.cjs.map +1 -0
- package/dist/actions/delete-phone-number.d.cts +9 -0
- package/dist/actions/delete-phone-number.d.cts.map +1 -0
- package/dist/actions/delete-phone-number.d.mts +9 -0
- package/dist/actions/delete-phone-number.d.mts.map +1 -0
- package/dist/actions/delete-phone-number.mjs +16 -0
- package/dist/actions/delete-phone-number.mjs.map +1 -0
- package/dist/actions/delete-retell-llm.cjs +16 -0
- package/dist/actions/delete-retell-llm.cjs.map +1 -0
- package/dist/actions/delete-retell-llm.d.cts +9 -0
- package/dist/actions/delete-retell-llm.d.cts.map +1 -0
- package/dist/actions/delete-retell-llm.d.mts +9 -0
- package/dist/actions/delete-retell-llm.d.mts.map +1 -0
- package/dist/actions/delete-retell-llm.mjs +13 -0
- package/dist/actions/delete-retell-llm.mjs.map +1 -0
- package/dist/actions/delete-test-case-definition.cjs +16 -0
- package/dist/actions/delete-test-case-definition.cjs.map +1 -0
- package/dist/actions/delete-test-case-definition.d.cts +9 -0
- package/dist/actions/delete-test-case-definition.d.cts.map +1 -0
- package/dist/actions/delete-test-case-definition.d.mts +9 -0
- package/dist/actions/delete-test-case-definition.d.mts.map +1 -0
- package/dist/actions/delete-test-case-definition.mjs +13 -0
- package/dist/actions/delete-test-case-definition.mjs.map +1 -0
- package/dist/actions/end-chat.cjs +19 -0
- package/dist/actions/end-chat.cjs.map +1 -0
- package/dist/actions/end-chat.d.cts +9 -0
- package/dist/actions/end-chat.d.cts.map +1 -0
- package/dist/actions/end-chat.d.mts +9 -0
- package/dist/actions/end-chat.d.mts.map +1 -0
- package/dist/actions/end-chat.mjs +16 -0
- package/dist/actions/end-chat.mjs.map +1 -0
- package/dist/actions/get-agent-versions.cjs +16 -0
- package/dist/actions/get-agent-versions.cjs.map +1 -0
- package/dist/actions/get-agent-versions.d.cts +9 -0
- package/dist/actions/get-agent-versions.d.cts.map +1 -0
- package/dist/actions/get-agent-versions.d.mts +9 -0
- package/dist/actions/get-agent-versions.d.mts.map +1 -0
- package/dist/actions/get-agent-versions.mjs +13 -0
- package/dist/actions/get-agent-versions.mjs.map +1 -0
- package/dist/actions/get-agent.cjs +148 -0
- package/dist/actions/get-agent.cjs.map +1 -0
- package/dist/actions/get-agent.d.cts +9 -0
- package/dist/actions/get-agent.d.cts.map +1 -0
- package/dist/actions/get-agent.d.mts +9 -0
- package/dist/actions/get-agent.d.mts.map +1 -0
- package/dist/actions/get-agent.mjs +147 -0
- package/dist/actions/get-agent.mjs.map +1 -0
- package/dist/actions/get-batch-test.cjs +44 -0
- package/dist/actions/get-batch-test.cjs.map +1 -0
- package/dist/actions/get-batch-test.d.cts +9 -0
- package/dist/actions/get-batch-test.d.cts.map +1 -0
- package/dist/actions/get-batch-test.d.mts +9 -0
- package/dist/actions/get-batch-test.d.mts.map +1 -0
- package/dist/actions/get-batch-test.mjs +43 -0
- package/dist/actions/get-batch-test.mjs.map +1 -0
- package/dist/actions/get-chat-agent-versions.cjs +31 -0
- package/dist/actions/get-chat-agent-versions.cjs.map +1 -0
- package/dist/actions/get-chat-agent-versions.d.cts +9 -0
- package/dist/actions/get-chat-agent-versions.d.cts.map +1 -0
- package/dist/actions/get-chat-agent-versions.d.mts +9 -0
- package/dist/actions/get-chat-agent-versions.d.mts.map +1 -0
- package/dist/actions/get-chat-agent-versions.mjs +30 -0
- package/dist/actions/get-chat-agent-versions.mjs.map +1 -0
- package/dist/actions/get-chat-agent.cjs +105 -0
- package/dist/actions/get-chat-agent.cjs.map +1 -0
- package/dist/actions/get-chat-agent.d.cts +9 -0
- package/dist/actions/get-chat-agent.d.cts.map +1 -0
- package/dist/actions/get-chat-agent.d.mts +9 -0
- package/dist/actions/get-chat-agent.d.mts.map +1 -0
- package/dist/actions/get-chat-agent.mjs +104 -0
- package/dist/actions/get-chat-agent.mjs.map +1 -0
- package/dist/actions/get-chat.cjs +56 -0
- package/dist/actions/get-chat.cjs.map +1 -0
- package/dist/actions/get-chat.d.cts +9 -0
- package/dist/actions/get-chat.d.cts.map +1 -0
- package/dist/actions/get-chat.d.mts +9 -0
- package/dist/actions/get-chat.d.mts.map +1 -0
- package/dist/actions/get-chat.mjs +55 -0
- package/dist/actions/get-chat.mjs.map +1 -0
- package/dist/actions/get-concurrency.cjs +23 -0
- package/dist/actions/get-concurrency.cjs.map +1 -0
- package/dist/actions/get-concurrency.d.cts +9 -0
- package/dist/actions/get-concurrency.d.cts.map +1 -0
- package/dist/actions/get-concurrency.d.mts +9 -0
- package/dist/actions/get-concurrency.d.mts.map +1 -0
- package/dist/actions/get-concurrency.mjs +20 -0
- package/dist/actions/get-concurrency.mjs.map +1 -0
- package/dist/actions/get-conversation-flow-component.cjs +75 -0
- package/dist/actions/get-conversation-flow-component.cjs.map +1 -0
- package/dist/actions/get-conversation-flow-component.d.cts +9 -0
- package/dist/actions/get-conversation-flow-component.d.cts.map +1 -0
- package/dist/actions/get-conversation-flow-component.d.mts +9 -0
- package/dist/actions/get-conversation-flow-component.d.mts.map +1 -0
- package/dist/actions/get-conversation-flow-component.mjs +74 -0
- package/dist/actions/get-conversation-flow-component.mjs.map +1 -0
- package/dist/actions/get-conversation-flow.cjs +83 -0
- package/dist/actions/get-conversation-flow.cjs.map +1 -0
- package/dist/actions/get-conversation-flow.d.cts +9 -0
- package/dist/actions/get-conversation-flow.d.cts.map +1 -0
- package/dist/actions/get-conversation-flow.d.mts +9 -0
- package/dist/actions/get-conversation-flow.d.mts.map +1 -0
- package/dist/actions/get-conversation-flow.mjs +82 -0
- package/dist/actions/get-conversation-flow.mjs.map +1 -0
- package/dist/actions/get-knowledge-base.cjs +45 -0
- package/dist/actions/get-knowledge-base.cjs.map +1 -0
- package/dist/actions/get-knowledge-base.d.cts +9 -0
- package/dist/actions/get-knowledge-base.d.cts.map +1 -0
- package/dist/actions/get-knowledge-base.d.mts +9 -0
- package/dist/actions/get-knowledge-base.d.mts.map +1 -0
- package/dist/actions/get-knowledge-base.mjs +44 -0
- package/dist/actions/get-knowledge-base.mjs.map +1 -0
- package/dist/actions/get-retell-llm.cjs +253 -0
- package/dist/actions/get-retell-llm.cjs.map +1 -0
- package/dist/actions/get-retell-llm.d.cts +9 -0
- package/dist/actions/get-retell-llm.d.cts.map +1 -0
- package/dist/actions/get-retell-llm.d.mts +9 -0
- package/dist/actions/get-retell-llm.d.mts.map +1 -0
- package/dist/actions/get-retell-llm.mjs +252 -0
- package/dist/actions/get-retell-llm.mjs.map +1 -0
- package/dist/actions/import-phone-number.cjs +50 -0
- package/dist/actions/import-phone-number.cjs.map +1 -0
- package/dist/actions/import-phone-number.d.cts +9 -0
- package/dist/actions/import-phone-number.d.cts.map +1 -0
- package/dist/actions/import-phone-number.d.mts +9 -0
- package/dist/actions/import-phone-number.d.mts.map +1 -0
- package/dist/actions/import-phone-number.mjs +49 -0
- package/dist/actions/import-phone-number.mjs.map +1 -0
- package/dist/actions/index.cjs +135 -0
- package/dist/actions/index.d.cts +68 -0
- package/dist/actions/index.d.mts +68 -0
- package/dist/actions/index.mjs +68 -0
- package/dist/actions/list-agents.cjs +16 -0
- package/dist/actions/list-agents.cjs.map +1 -0
- package/dist/actions/list-agents.d.cts +9 -0
- package/dist/actions/list-agents.d.cts.map +1 -0
- package/dist/actions/list-agents.d.mts +9 -0
- package/dist/actions/list-agents.d.mts.map +1 -0
- package/dist/actions/list-agents.mjs +13 -0
- package/dist/actions/list-agents.mjs.map +1 -0
- package/dist/actions/list-all-chats.cjs +20 -0
- package/dist/actions/list-all-chats.cjs.map +1 -0
- package/dist/actions/list-all-chats.d.cts +9 -0
- package/dist/actions/list-all-chats.d.cts.map +1 -0
- package/dist/actions/list-all-chats.d.mts +9 -0
- package/dist/actions/list-all-chats.d.mts.map +1 -0
- package/dist/actions/list-all-chats.mjs +17 -0
- package/dist/actions/list-all-chats.mjs.map +1 -0
- package/dist/actions/list-all-phone-numbers.cjs +16 -0
- package/dist/actions/list-all-phone-numbers.cjs.map +1 -0
- package/dist/actions/list-all-phone-numbers.d.cts +9 -0
- package/dist/actions/list-all-phone-numbers.d.cts.map +1 -0
- package/dist/actions/list-all-phone-numbers.d.mts +9 -0
- package/dist/actions/list-all-phone-numbers.d.mts.map +1 -0
- package/dist/actions/list-all-phone-numbers.mjs +13 -0
- package/dist/actions/list-all-phone-numbers.mjs.map +1 -0
- package/dist/actions/list-batch-tests.cjs +51 -0
- package/dist/actions/list-batch-tests.cjs.map +1 -0
- package/dist/actions/list-batch-tests.d.cts +9 -0
- package/dist/actions/list-batch-tests.d.cts.map +1 -0
- package/dist/actions/list-batch-tests.d.mts +9 -0
- package/dist/actions/list-batch-tests.d.mts.map +1 -0
- package/dist/actions/list-batch-tests.mjs +50 -0
- package/dist/actions/list-batch-tests.mjs.map +1 -0
- package/dist/actions/list-chat-agents.cjs +20 -0
- package/dist/actions/list-chat-agents.cjs.map +1 -0
- package/dist/actions/list-chat-agents.d.cts +9 -0
- package/dist/actions/list-chat-agents.d.cts.map +1 -0
- package/dist/actions/list-chat-agents.d.mts +9 -0
- package/dist/actions/list-chat-agents.d.mts.map +1 -0
- package/dist/actions/list-chat-agents.mjs +17 -0
- package/dist/actions/list-chat-agents.mjs.map +1 -0
- package/dist/actions/list-conversation-flow-components.cjs +24 -0
- package/dist/actions/list-conversation-flow-components.cjs.map +1 -0
- package/dist/actions/list-conversation-flow-components.d.cts +9 -0
- package/dist/actions/list-conversation-flow-components.d.cts.map +1 -0
- package/dist/actions/list-conversation-flow-components.d.mts +9 -0
- package/dist/actions/list-conversation-flow-components.d.mts.map +1 -0
- package/dist/actions/list-conversation-flow-components.mjs +23 -0
- package/dist/actions/list-conversation-flow-components.mjs.map +1 -0
- package/dist/actions/list-conversation-flows.cjs +31 -0
- package/dist/actions/list-conversation-flows.cjs.map +1 -0
- package/dist/actions/list-conversation-flows.d.cts +9 -0
- package/dist/actions/list-conversation-flows.d.cts.map +1 -0
- package/dist/actions/list-conversation-flows.d.mts +9 -0
- package/dist/actions/list-conversation-flows.d.mts.map +1 -0
- package/dist/actions/list-conversation-flows.mjs +30 -0
- package/dist/actions/list-conversation-flows.mjs.map +1 -0
- package/dist/actions/list-knowledge-bases.cjs +16 -0
- package/dist/actions/list-knowledge-bases.cjs.map +1 -0
- package/dist/actions/list-knowledge-bases.d.cts +9 -0
- package/dist/actions/list-knowledge-bases.d.cts.map +1 -0
- package/dist/actions/list-knowledge-bases.d.mts +9 -0
- package/dist/actions/list-knowledge-bases.d.mts.map +1 -0
- package/dist/actions/list-knowledge-bases.mjs +13 -0
- package/dist/actions/list-knowledge-bases.mjs.map +1 -0
- package/dist/actions/list-retell-llms.cjs +72 -0
- package/dist/actions/list-retell-llms.cjs.map +1 -0
- package/dist/actions/list-retell-llms.d.cts +9 -0
- package/dist/actions/list-retell-llms.d.cts.map +1 -0
- package/dist/actions/list-retell-llms.d.mts +9 -0
- package/dist/actions/list-retell-llms.d.mts.map +1 -0
- package/dist/actions/list-retell-llms.mjs +71 -0
- package/dist/actions/list-retell-llms.mjs.map +1 -0
- package/dist/actions/list-test-case-definitions.cjs +34 -0
- package/dist/actions/list-test-case-definitions.cjs.map +1 -0
- package/dist/actions/list-test-case-definitions.d.cts +9 -0
- package/dist/actions/list-test-case-definitions.d.cts.map +1 -0
- package/dist/actions/list-test-case-definitions.d.mts +9 -0
- package/dist/actions/list-test-case-definitions.d.mts.map +1 -0
- package/dist/actions/list-test-case-definitions.mjs +33 -0
- package/dist/actions/list-test-case-definitions.mjs.map +1 -0
- package/dist/actions/list-test-runs.cjs +16 -0
- package/dist/actions/list-test-runs.cjs.map +1 -0
- package/dist/actions/list-test-runs.d.cts +9 -0
- package/dist/actions/list-test-runs.d.cts.map +1 -0
- package/dist/actions/list-test-runs.d.mts +9 -0
- package/dist/actions/list-test-runs.d.mts.map +1 -0
- package/dist/actions/list-test-runs.mjs +13 -0
- package/dist/actions/list-test-runs.mjs.map +1 -0
- package/dist/actions/list-voices.cjs +16 -0
- package/dist/actions/list-voices.cjs.map +1 -0
- package/dist/actions/list-voices.d.cts +9 -0
- package/dist/actions/list-voices.d.cts.map +1 -0
- package/dist/actions/list-voices.d.mts +9 -0
- package/dist/actions/list-voices.d.mts.map +1 -0
- package/dist/actions/list-voices.mjs +13 -0
- package/dist/actions/list-voices.mjs.map +1 -0
- package/dist/actions/publish-agent.cjs +70 -0
- package/dist/actions/publish-agent.cjs.map +1 -0
- package/dist/actions/publish-agent.d.cts +9 -0
- package/dist/actions/publish-agent.d.cts.map +1 -0
- package/dist/actions/publish-agent.d.mts +9 -0
- package/dist/actions/publish-agent.d.mts.map +1 -0
- package/dist/actions/publish-agent.mjs +67 -0
- package/dist/actions/publish-agent.mjs.map +1 -0
- package/dist/actions/publish-chat-agent.cjs +37 -0
- package/dist/actions/publish-chat-agent.cjs.map +1 -0
- package/dist/actions/publish-chat-agent.d.cts +9 -0
- package/dist/actions/publish-chat-agent.d.cts.map +1 -0
- package/dist/actions/publish-chat-agent.d.mts +9 -0
- package/dist/actions/publish-chat-agent.d.mts.map +1 -0
- package/dist/actions/publish-chat-agent.mjs +34 -0
- package/dist/actions/publish-chat-agent.mjs.map +1 -0
- package/dist/actions/register-phone-call.cjs +196 -0
- package/dist/actions/register-phone-call.cjs.map +1 -0
- package/dist/actions/register-phone-call.d.cts +9 -0
- package/dist/actions/register-phone-call.d.cts.map +1 -0
- package/dist/actions/register-phone-call.d.mts +9 -0
- package/dist/actions/register-phone-call.d.mts.map +1 -0
- package/dist/actions/register-phone-call.mjs +195 -0
- package/dist/actions/register-phone-call.mjs.map +1 -0
- package/dist/actions/retrieve-call-details-by-id.cjs +16 -0
- package/dist/actions/retrieve-call-details-by-id.cjs.map +1 -0
- package/dist/actions/retrieve-call-details-by-id.d.cts +9 -0
- package/dist/actions/retrieve-call-details-by-id.d.cts.map +1 -0
- package/dist/actions/retrieve-call-details-by-id.d.mts +9 -0
- package/dist/actions/retrieve-call-details-by-id.d.mts.map +1 -0
- package/dist/actions/retrieve-call-details-by-id.mjs +13 -0
- package/dist/actions/retrieve-call-details-by-id.mjs.map +1 -0
- package/dist/actions/retrieve-call-details.cjs +136 -0
- package/dist/actions/retrieve-call-details.cjs.map +1 -0
- package/dist/actions/retrieve-call-details.d.cts +9 -0
- package/dist/actions/retrieve-call-details.d.cts.map +1 -0
- package/dist/actions/retrieve-call-details.d.mts +9 -0
- package/dist/actions/retrieve-call-details.d.mts.map +1 -0
- package/dist/actions/retrieve-call-details.mjs +135 -0
- package/dist/actions/retrieve-call-details.mjs.map +1 -0
- package/dist/actions/retrieve-details-of-a-specific-phone-number.cjs +29 -0
- package/dist/actions/retrieve-details-of-a-specific-phone-number.cjs.map +1 -0
- package/dist/actions/retrieve-details-of-a-specific-phone-number.d.cts +9 -0
- package/dist/actions/retrieve-details-of-a-specific-phone-number.d.cts.map +1 -0
- package/dist/actions/retrieve-details-of-a-specific-phone-number.d.mts +9 -0
- package/dist/actions/retrieve-details-of-a-specific-phone-number.d.mts.map +1 -0
- package/dist/actions/retrieve-details-of-a-specific-phone-number.mjs +28 -0
- package/dist/actions/retrieve-details-of-a-specific-phone-number.mjs.map +1 -0
- package/dist/actions/retrieve-details-of-a-specific-voice.cjs +24 -0
- package/dist/actions/retrieve-details-of-a-specific-voice.cjs.map +1 -0
- package/dist/actions/retrieve-details-of-a-specific-voice.d.cts +9 -0
- package/dist/actions/retrieve-details-of-a-specific-voice.d.cts.map +1 -0
- package/dist/actions/retrieve-details-of-a-specific-voice.d.mts +9 -0
- package/dist/actions/retrieve-details-of-a-specific-voice.d.mts.map +1 -0
- package/dist/actions/retrieve-details-of-a-specific-voice.mjs +21 -0
- package/dist/actions/retrieve-details-of-a-specific-voice.mjs.map +1 -0
- package/dist/actions/search-community-voice.cjs +29 -0
- package/dist/actions/search-community-voice.cjs.map +1 -0
- package/dist/actions/search-community-voice.d.cts +9 -0
- package/dist/actions/search-community-voice.d.cts.map +1 -0
- package/dist/actions/search-community-voice.d.mts +9 -0
- package/dist/actions/search-community-voice.d.mts.map +1 -0
- package/dist/actions/search-community-voice.mjs +28 -0
- package/dist/actions/search-community-voice.mjs.map +1 -0
- package/dist/actions/update-agent.cjs +261 -0
- package/dist/actions/update-agent.cjs.map +1 -0
- package/dist/actions/update-agent.d.cts +9 -0
- package/dist/actions/update-agent.d.cts.map +1 -0
- package/dist/actions/update-agent.d.mts +9 -0
- package/dist/actions/update-agent.d.mts.map +1 -0
- package/dist/actions/update-agent.mjs +260 -0
- package/dist/actions/update-agent.mjs.map +1 -0
- package/dist/actions/update-call.cjs +36 -0
- package/dist/actions/update-call.cjs.map +1 -0
- package/dist/actions/update-call.d.cts +9 -0
- package/dist/actions/update-call.d.cts.map +1 -0
- package/dist/actions/update-call.d.mts +9 -0
- package/dist/actions/update-call.d.mts.map +1 -0
- package/dist/actions/update-call.mjs +35 -0
- package/dist/actions/update-call.mjs.map +1 -0
- package/dist/actions/update-chat-agent.cjs +222 -0
- package/dist/actions/update-chat-agent.cjs.map +1 -0
- package/dist/actions/update-chat-agent.d.cts +9 -0
- package/dist/actions/update-chat-agent.d.cts.map +1 -0
- package/dist/actions/update-chat-agent.d.mts +9 -0
- package/dist/actions/update-chat-agent.d.mts.map +1 -0
- package/dist/actions/update-chat-agent.mjs +221 -0
- package/dist/actions/update-chat-agent.mjs.map +1 -0
- package/dist/actions/update-chat-metadata.cjs +62 -0
- package/dist/actions/update-chat-metadata.cjs.map +1 -0
- package/dist/actions/update-chat-metadata.d.cts +9 -0
- package/dist/actions/update-chat-metadata.d.cts.map +1 -0
- package/dist/actions/update-chat-metadata.d.mts +9 -0
- package/dist/actions/update-chat-metadata.d.mts.map +1 -0
- package/dist/actions/update-chat-metadata.mjs +61 -0
- package/dist/actions/update-chat-metadata.mjs.map +1 -0
- package/dist/actions/update-conversation-flow-component.cjs +258 -0
- package/dist/actions/update-conversation-flow-component.cjs.map +1 -0
- package/dist/actions/update-conversation-flow-component.d.cts +9 -0
- package/dist/actions/update-conversation-flow-component.d.cts.map +1 -0
- package/dist/actions/update-conversation-flow-component.d.mts +9 -0
- package/dist/actions/update-conversation-flow-component.d.mts.map +1 -0
- package/dist/actions/update-conversation-flow-component.mjs +257 -0
- package/dist/actions/update-conversation-flow-component.mjs.map +1 -0
- package/dist/actions/update-conversation-flow.cjs +109 -0
- package/dist/actions/update-conversation-flow.cjs.map +1 -0
- package/dist/actions/update-conversation-flow.d.cts +9 -0
- package/dist/actions/update-conversation-flow.d.cts.map +1 -0
- package/dist/actions/update-conversation-flow.d.mts +9 -0
- package/dist/actions/update-conversation-flow.d.mts.map +1 -0
- package/dist/actions/update-conversation-flow.mjs +108 -0
- package/dist/actions/update-conversation-flow.mjs.map +1 -0
- package/dist/actions/update-phone-number.cjs +58 -0
- package/dist/actions/update-phone-number.cjs.map +1 -0
- package/dist/actions/update-phone-number.d.cts +9 -0
- package/dist/actions/update-phone-number.d.cts.map +1 -0
- package/dist/actions/update-phone-number.d.mts +9 -0
- package/dist/actions/update-phone-number.d.mts.map +1 -0
- package/dist/actions/update-phone-number.mjs +57 -0
- package/dist/actions/update-phone-number.mjs.map +1 -0
- package/dist/actions/update-retell-llm.cjs +125 -0
- package/dist/actions/update-retell-llm.cjs.map +1 -0
- package/dist/actions/update-retell-llm.d.cts +9 -0
- package/dist/actions/update-retell-llm.d.cts.map +1 -0
- package/dist/actions/update-retell-llm.d.mts +9 -0
- package/dist/actions/update-retell-llm.d.mts.map +1 -0
- package/dist/actions/update-retell-llm.mjs +124 -0
- package/dist/actions/update-retell-llm.mjs.map +1 -0
- package/dist/actions/update-test-case-definition.cjs +80 -0
- package/dist/actions/update-test-case-definition.cjs.map +1 -0
- package/dist/actions/update-test-case-definition.d.cts +9 -0
- package/dist/actions/update-test-case-definition.d.cts.map +1 -0
- package/dist/actions/update-test-case-definition.d.mts +9 -0
- package/dist/actions/update-test-case-definition.d.mts.map +1 -0
- package/dist/actions/update-test-case-definition.mjs +79 -0
- package/dist/actions/update-test-case-definition.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +140 -0
- package/dist/index.d.cts +70 -0
- package/dist/index.d.mts +70 -0
- package/dist/index.mjs +71 -0
- package/package.json +49 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-chat-agent.mjs","names":[],"sources":["../../src/actions/create-chat-agent.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RetellaiCreateChatAgentInput: z.ZodTypeAny = z.object({\n language: z.string().describe(\"Language/dialect for chat operations (e.g., 'en-US', 'es-ES'). Defaults to 'en-US'.\").optional(),\n is_public: z.boolean().describe(\"Whether this chat agent is available for public preview\").optional(),\n agent_name: z.string().describe(\"Chat agent identifier for reference purposes\").optional(),\n pii_config: z.record(z.string(), z.unknown()).describe(\"PII (Personally Identifiable Information) scrubbing configuration\").optional(),\n webhook_url: z.string().describe(\"URL that will receive chat event notifications (e.g., chat started, ended, analyzed)\").optional(),\n response_engine: z.union([z.object({\n type: z.string().describe(\"Type of response engine\"),\n llm_id: z.string().describe(\"Unique identifier of the LLM to use\"),\n version: z.number().nullable().optional(),\n}).describe(\"Retell LLM response engine configuration\"), z.object({\n type: z.string().describe(\"Type of response engine\"),\n llm_websocket_url: z.string().describe(\"WebSocket URL for custom LLM\"),\n}).describe(\"Custom LLM response engine configuration\"), z.object({\n type: z.string().describe(\"Type of response engine\"),\n version: z.number().nullable().optional(),\n conversation_flow_id: z.string().describe(\"Unique identifier of the conversation flow\"),\n}).describe(\"Conversation flow response engine configuration\")]),\n opt_in_signed_url: z.boolean().describe(\"Enable signed URLs for public logs access. When enabled, secure time-limited URLs are generated.\").optional(),\n auto_close_message: z.string().describe(\"Message displayed when chat auto-closes after silence period\").optional(),\n webhook_timeout_ms: z.number().int().describe(\"Webhook timeout in milliseconds. Defaults to 10,000ms.\").optional(),\n data_storage_setting: z.string().describe(\"Data retention policy for the chat. Options: 'everything', 'everything_except_pii', or 'basic_attributes_only'.\").optional(),\n analysis_summary_prompt: z.string().describe(\"Summary generation guidance for chat analysis. Maximum 2000 characters.\").optional(),\n post_chat_analysis_data: z.array(z.record(z.string(), z.unknown())).describe(\"Custom analysis extraction schema for post-chat analysis\").optional(),\n post_chat_analysis_model: z.record(z.string(), z.unknown()).describe(\"LLM model selection for post-chat analysis\").optional(),\n signed_url_expiration_ms: z.number().int().describe(\"Signed URL expiration duration in milliseconds. Defaults to 86,400,000ms (24 hours).\").optional(),\n end_chat_after_silence_ms: z.number().int().describe(\"Silence duration (in milliseconds) before automatically closing the chat. Minimum value is 360,000ms (6 minutes).\").optional(),\n analysis_successful_prompt: z.string().describe(\"Success evaluation criteria for chat analysis. Maximum 2000 characters.\").optional(),\n}).describe(\"Request schema for `RetellaiCreateChatAgent`\");\nconst RetellaiCreateChatAgent_PiiConfigSchema: z.ZodTypeAny = z.object({\n mode: z.string().describe(\"PII scrubbing mode\"),\n categories: z.array(z.string()).describe(\"PII categories to scrub: person_name, address, email, phone_number, ssn, passport, driver_license, credit_card, bank_account, password, pin, medical_id, date_of_birth, customer_account_number\"),\n}).describe(\"PII scrubbing configuration\");\nconst RetellaiCreateChatAgent_RetellLlmEngineSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of response engine\"),\n llm_id: z.string().describe(\"Unique identifier of the LLM to use\"),\n version: z.number().describe(\"Version number of the response engine\").nullable().optional(),\n}).describe(\"Retell LLM response engine configuration\");\nconst RetellaiCreateChatAgent_CustomLlmEngineSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of response engine\"),\n llm_websocket_url: z.string().describe(\"WebSocket URL for custom LLM\"),\n}).describe(\"Custom LLM response engine configuration\");\nconst RetellaiCreateChatAgent_ConversationFlowEngineSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of response engine\"),\n version: z.number().describe(\"Version number of the conversation flow\").nullable().optional(),\n conversation_flow_id: z.string().describe(\"Unique identifier of the conversation flow\"),\n}).describe(\"Conversation flow response engine configuration\");\nconst RetellaiCreateChatAgent_CustomSttConfigSchema: z.ZodTypeAny = z.object({\n provider: z.string().describe(\"STT provider (azure/deepgram)\").nullable().optional(),\n endpointingMs: z.number().int().describe(\"Endpointing timeout in milliseconds\").nullable().optional(),\n}).describe(\"Custom STT configuration\");\nconst RetellaiCreateChatAgent_UserDtmfOptionsSchema: z.ZodTypeAny = z.object({\n timeoutMs: z.number().int().describe(\"Timeout in milliseconds, range [1000-15000]\").nullable().optional(),\n digitLimit: z.number().int().describe(\"Digit limit, range [1-50]\").nullable().optional(),\n terminationKey: z.string().describe(\"Termination key (# or *)\").nullable().optional(),\n}).describe(\"DTMF options configuration\");\nconst RetellaiCreateChatAgent_PronunciationDictionaryEntrySchema: z.ZodTypeAny = z.object({\n word: z.string().describe(\"Word to pronounce\").nullable().optional(),\n phoneme: z.string().describe(\"Phonetic representation\").nullable().optional(),\n alphabet: z.enum([\"ipa\", \"cmu\"]).describe(\"Phonetic alphabet type\").nullable().optional(),\n}).describe(\"Custom pronunciation rule entry\");\nexport const RetellaiCreateChatAgentOutput: z.ZodTypeAny = z.object({\n volume: z.number().describe(\"Volume setting, range [0, 2], default 1\").nullable().optional(),\n agentId: z.string().describe(\"Unique id of agent\"),\n sttMode: z.string().describe(\"Speech-to-text mode: fast, accurate, or custom\").nullable().optional(),\n version: z.number().int().describe(\"Version of the agent\"),\n voiceId: z.string().describe(\"Unique voice id used for the agent\"),\n isPublic: z.boolean().describe(\"Make agent available for public preview link\").nullable().optional(),\n language: z.string().describe(\"Language locale code (e.g., en-US, fr-FR, ja-JP) or 'multi' for multilingual\").nullable().optional(),\n agentName: z.string().describe(\"Name of the agent for reference purposes\").nullable().optional(),\n ivrOption: z.unknown().describe(\"IVR action configuration: hangup only\").nullable().optional(),\n piiConfig: RetellaiCreateChatAgent_PiiConfigSchema.nullable().optional(),\n voiceModel: z.string().describe(\"The voice model used for the selected voice (e.g., eleven_turbo_v2, sonic-3, tts-1)\").nullable().optional(),\n voiceSpeed: z.number().describe(\"Voice speed setting, range [0.5, 2], default 1\").nullable().optional(),\n webhookUrl: z.string().describe(\"Event listener endpoint URL for webhooks\").nullable().optional(),\n isPublished: z.boolean().describe(\"Indicates if agent is published\"),\n ambientSound: z.string().describe(\"Ambient sound setting: coffee-shop, convention-hall, summer-outdoor, mountain-outdoor, static-noise, call-center, or null\").nullable().optional(),\n voiceEmotion: z.string().describe(\"Voice emotion: calm, sympathetic, happy, sad, angry, fearful, or surprised\").nullable().optional(),\n allowUserDtmf: z.boolean().describe(\"Accept DTMF signals, default true\").nullable().optional(),\n denoisingMode: z.string().describe(\"Denoising mode: none, noise-cancellation, or noise-and-background-speech-cancellation\").nullable().optional(),\n optInSignedUrl: z.boolean().describe(\"Enable 24-hour expiring security signatures for URLs\").nullable().optional(),\n responseEngine: z.union([RetellaiCreateChatAgent_RetellLlmEngineSchema, RetellaiCreateChatAgent_CustomLlmEngineSchema, RetellaiCreateChatAgent_ConversationFlowEngineSchema]),\n responsiveness: z.number().describe(\"Agent responsiveness level, range [0, 1], default 1\").nullable().optional(),\n ringDurationMs: z.number().int().describe(\"Ring duration in milliseconds, range [5000, 90000], default 30000\").nullable().optional(),\n boostedKeywords: z.array(z.string()).describe(\"Custom words for transcription bias\").nullable().optional(),\n customSttConfig: RetellaiCreateChatAgent_CustomSttConfigSchema.nullable().optional(),\n userDtmfOptions: RetellaiCreateChatAgent_UserDtmfOptionsSchema.nullable().optional(),\n voicemailOption: z.unknown().describe(\"Action when voicemail detected: prompt, static_text, hangup, or bridge_transfer\").nullable().optional(),\n backchannelWords: z.array(z.string()).describe(\"Custom backchannel phrases\").nullable().optional(),\n fallbackVoiceIds: z.array(z.string()).describe(\"Alternate voice IDs from different TTS providers for fallback\").nullable().optional(),\n reminderMaxCount: z.number().int().describe(\"Maximum number of reminders, non-negative, default 1\").nullable().optional(),\n voiceTemperature: z.number().describe(\"Voice temperature setting, range [0, 2], default 1\").nullable().optional(),\n voicemailMessage: z.string().describe(\"Message to leave when voicemail is detected\").nullable().optional(),\n webhookTimeoutMs: z.number().int().describe(\"Webhook timeout in milliseconds, default 10000\").nullable().optional(),\n enableBackchannel: z.boolean().describe(\"Enable agent backchannel phrases for engagement\").nullable().optional(),\n maxCallDurationMs: z.number().int().describe(\"Maximum call duration in milliseconds, range [60000, 7200000], default 3600000\").nullable().optional(),\n reminderTriggerMs: z.number().describe(\"Milliseconds before reminder is triggered, default 10000\").nullable().optional(),\n ambientSoundVolume: z.number().describe(\"Ambient sound volume, range [0, 2], default 1\").nullable().optional(),\n dataStorageSetting: z.string().describe(\"Data storage policy: everything, everything_except_pii, or basic_attributes_only\").nullable().optional(),\n normalizeForSpeech: z.boolean().describe(\"Convert numbers and currency to spoken form\").nullable().optional(),\n versionDescription: z.string().describe(\"Internal documentation reference for the agent version\").nullable().optional(),\n beginMessageDelayMs: z.number().int().describe(\"Agent delay before speaking, range [0, 5000]\").nullable().optional(),\n vocabSpecialization: z.string().describe(\"Vocabulary specialization: general or medical (English only)\").nullable().optional(),\n backchannelFrequency: z.number().describe(\"Frequency of backchannel phrases, range [0, 1], default 0.8 when enabled\").nullable().optional(),\n postCallAnalysisData: z.array(z.unknown()).describe(\"Custom extraction fields for post-call analysis (string, enum, boolean, number types)\").nullable().optional(),\n analysisSummaryPrompt: z.string().describe(\"Custom summary guidance prompt, max 2000 characters\").nullable().optional(),\n endCallAfterSilenceMs: z.number().int().describe(\"End call after silence duration, minimum 10000, default 600000\").nullable().optional(),\n postCallAnalysisModel: z.string().describe(\"Analysis model: gpt-4.1-mini, gpt-4.1, gpt-5, claude variants, gemini variants, or null\").nullable().optional(),\n signedUrlExpirationMs: z.number().int().describe(\"Signed URL expiration time in milliseconds, default 86400000\").nullable().optional(),\n interruptionSensitivity: z.number().describe(\"Sensitivity to user interruptions, range [0, 1], default 1\").nullable().optional(),\n pronunciationDictionary: z.array(RetellaiCreateChatAgent_PronunciationDictionaryEntrySchema).describe(\"Custom pronunciation rules\").nullable().optional(),\n analysisSuccessfulPrompt: z.string().describe(\"Custom success determination prompt, max 2000 characters\").nullable().optional(),\n enableVoicemailDetection: z.boolean().describe(\"Enable voicemail detection for phone calls\").nullable().optional(),\n lastModificationTimestamp: z.number().int().describe(\"Last modification timestamp (milliseconds since epoch)\"),\n voicemailDetectionTimeoutMs: z.number().int().describe(\"Voicemail detection timeout, range [5000, 180000], default 30000\").nullable().optional(),\n}).describe(\"Response schema for `RetellaiCreateChatAgent`\");\n\nexport const retellaiCreateChatAgent = action(\"RETELLAI_CREATE_CHAT_AGENT\", {\n slug: \"retellai-create-chat-agent\",\n name: \"Create a new chat agent\",\n description: \"Create a new chat agent with specified configuration. Use when you need to set up a chat-based AI agent with custom response engine and behavior settings.\",\n input: RetellaiCreateChatAgentInput,\n output: RetellaiCreateChatAgentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6C,EAAE,OAAO;CACjE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAC9H,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACpG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACz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CAAC,SAAS;EACjK,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtH,uBAAuB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvI,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1J,uBAAuB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrI,yBAAyB,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/H,yBAAyB,EAAE,MAAM,0DAA0D,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxJ,0BAA0B,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9H,0BAA0B,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjH,2BAA2B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wDAAwD;EAC7G,6BAA6B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjJ,CAAC,CAAC,CAAC,SAAS,+CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-chat-completion.ts
|
|
4
|
+
const RetellaiCreateChatCompletionInput = zod.z.object({
|
|
5
|
+
chat_id: zod.z.string().describe("Unique identifier of the chat session to create completion for"),
|
|
6
|
+
content: zod.z.string().describe("User message content to generate agent chat completion response for")
|
|
7
|
+
}).describe("Request schema for `CreateChatCompletion`");
|
|
8
|
+
const RetellaiCreateChatCompletionOutput = zod.z.object({ messages: zod.z.array(zod.z.unknown()).describe("New messages generated by the agent during this completion, including any tool call invocations and their results. Does not include the original input messages.") }).describe("Response schema for `CreateChatCompletion`");
|
|
9
|
+
const retellaiCreateChatCompletion = require_action.action("RETELLAI_CREATE_CHAT_COMPLETION", {
|
|
10
|
+
slug: "retellai-create-chat-completion",
|
|
11
|
+
name: "Create chat completion",
|
|
12
|
+
description: "Tool to create a chat completion for an existing chat session, generating the agent's response to a user message. Use when you need the agent to respond to user input in an ongoing chat conversation.",
|
|
13
|
+
input: RetellaiCreateChatCompletionInput,
|
|
14
|
+
output: RetellaiCreateChatCompletionOutput
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
exports.retellaiCreateChatCompletion = retellaiCreateChatCompletion;
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=create-chat-completion.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-chat-completion.cjs","names":["z","action"],"sources":["../../src/actions/create-chat-completion.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RetellaiCreateChatCompletionInput: z.ZodTypeAny = z.object({\n chat_id: z.string().describe(\"Unique identifier of the chat session to create completion for\"),\n content: z.string().describe(\"User message content to generate agent chat completion response for\"),\n}).describe(\"Request schema for `CreateChatCompletion`\");\nexport const RetellaiCreateChatCompletionOutput: z.ZodTypeAny = z.object({\n messages: z.array(z.unknown()).describe(\"New messages generated by the agent during this completion, including any tool call invocations and their results. Does not include the original input messages.\"),\n}).describe(\"Response schema for `CreateChatCompletion`\");\n\nexport const retellaiCreateChatCompletion = action(\"RETELLAI_CREATE_CHAT_COMPLETION\", {\n slug: \"retellai-create-chat-completion\",\n name: \"Create chat completion\",\n description: \"Tool to create a chat completion for an existing chat session, generating the agent's response to a user message. Use when you need the agent to respond to user input in an ongoing chat conversation.\",\n input: RetellaiCreateChatCompletionInput,\n output: RetellaiCreateChatCompletionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkDA,IAAAA,EAAE,OAAO;CACtE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CAC7F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;AACpG,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAa,qCAAmDA,IAAAA,EAAE,OAAO,EACvE,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kKAAkK,EAC5M,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAExD,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-chat-completion.d.ts
|
|
4
|
+
declare const RetellaiCreateChatCompletionInput: z.ZodTypeAny;
|
|
5
|
+
declare const RetellaiCreateChatCompletionOutput: z.ZodTypeAny;
|
|
6
|
+
declare const retellaiCreateChatCompletion: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { retellaiCreateChatCompletion };
|
|
9
|
+
//# sourceMappingURL=create-chat-completion.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-chat-completion.d.cts","names":[],"sources":["../../src/actions/create-chat-completion.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAGM;AAAA,cAC3C,kCAAA,EAAoC,CAAA,CAAE,UAEM;AAAA,cAE5C,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-chat-completion.d.ts
|
|
4
|
+
declare const RetellaiCreateChatCompletionInput: z.ZodTypeAny;
|
|
5
|
+
declare const RetellaiCreateChatCompletionOutput: z.ZodTypeAny;
|
|
6
|
+
declare const retellaiCreateChatCompletion: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { retellaiCreateChatCompletion };
|
|
9
|
+
//# sourceMappingURL=create-chat-completion.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-chat-completion.d.mts","names":[],"sources":["../../src/actions/create-chat-completion.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAGM;AAAA,cAC3C,kCAAA,EAAoC,CAAA,CAAE,UAEM;AAAA,cAE5C,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const retellaiCreateChatCompletion = action("RETELLAI_CREATE_CHAT_COMPLETION", {
|
|
4
|
+
slug: "retellai-create-chat-completion",
|
|
5
|
+
name: "Create chat completion",
|
|
6
|
+
description: "Tool to create a chat completion for an existing chat session, generating the agent's response to a user message. Use when you need the agent to respond to user input in an ongoing chat conversation.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
chat_id: z.string().describe("Unique identifier of the chat session to create completion for"),
|
|
9
|
+
content: z.string().describe("User message content to generate agent chat completion response for")
|
|
10
|
+
}).describe("Request schema for `CreateChatCompletion`"),
|
|
11
|
+
output: z.object({ messages: z.array(z.unknown()).describe("New messages generated by the agent during this completion, including any tool call invocations and their results. Does not include the original input messages.") }).describe("Response schema for `CreateChatCompletion`")
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
export { retellaiCreateChatCompletion };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=create-chat-completion.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-chat-completion.mjs","names":[],"sources":["../../src/actions/create-chat-completion.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RetellaiCreateChatCompletionInput: z.ZodTypeAny = z.object({\n chat_id: z.string().describe(\"Unique identifier of the chat session to create completion for\"),\n content: z.string().describe(\"User message content to generate agent chat completion response for\"),\n}).describe(\"Request schema for `CreateChatCompletion`\");\nexport const RetellaiCreateChatCompletionOutput: z.ZodTypeAny = z.object({\n messages: z.array(z.unknown()).describe(\"New messages generated by the agent during this completion, including any tool call invocations and their results. Does not include the original input messages.\"),\n}).describe(\"Response schema for `CreateChatCompletion`\");\n\nexport const retellaiCreateChatCompletion = action(\"RETELLAI_CREATE_CHAT_COMPLETION\", {\n slug: \"retellai-create-chat-completion\",\n name: \"Create chat completion\",\n description: \"Tool to create a chat completion for an existing chat session, generating the agent's response to a user message. Use when you need the agent to respond to user input in an ongoing chat conversation.\",\n input: RetellaiCreateChatCompletionInput,\n output: RetellaiCreateChatCompletionOutput,\n});\n"],"mappings":";;AAYA,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZ6D,EAAE,OAAO;EACtE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;EAC7F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;CACpG,CAAC,CAAC,CAAC,SAAS,2CASH;CACP,QAT8D,EAAE,OAAO,EACvE,UAAU,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kKAAkK,EAC5M,CAAC,CAAC,CAAC,SAAS,4CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-chat.ts
|
|
4
|
+
const RetellaiCreateChatInput = zod.z.object({
|
|
5
|
+
agent_id: zod.z.string().describe("The chat agent to use for the call."),
|
|
6
|
+
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("An arbitrary object for storage purpose only. You can put anything here like your internal customer id associated with the chat. Not used for processing. You can later get this field from the chat object.").optional(),
|
|
7
|
+
agent_version: zod.z.number().int().describe("The version of the chat agent to use for the chat. If not provided, will default to latest version.").optional(),
|
|
8
|
+
retell_llm_dynamic_variables: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Add optional dynamic variables in key value pairs of string that injects into your Response Engine prompt and tool description. Only applicable for Response Engine.").optional()
|
|
9
|
+
}).describe("Request schema for `CreateChat`");
|
|
10
|
+
const RetellaiCreateChat_ProductCostSchema = zod.z.object({
|
|
11
|
+
cost: zod.z.number().describe("Cost in cents"),
|
|
12
|
+
product: zod.z.string().describe("Product name"),
|
|
13
|
+
unit_price: zod.z.number().describe("Unit price in cents")
|
|
14
|
+
}).describe("Individual product cost");
|
|
15
|
+
const RetellaiCreateChat_ChatCostSchema = zod.z.object({
|
|
16
|
+
combined_cost: zod.z.number().describe("Combined cost of all individual costs in cents").nullable().optional(),
|
|
17
|
+
product_costs: zod.z.array(RetellaiCreateChat_ProductCostSchema).describe("List of products with their unit prices and costs in cents").nullable().optional()
|
|
18
|
+
}).describe("Chat cost breakdown");
|
|
19
|
+
const RetellaiCreateChat_ChatAnalysisSchema = zod.z.object({
|
|
20
|
+
chat_summary: zod.z.string().describe("A high level summary of the chat.").nullable().optional(),
|
|
21
|
+
user_sentiment: zod.z.enum([
|
|
22
|
+
"Negative",
|
|
23
|
+
"Positive",
|
|
24
|
+
"Neutral",
|
|
25
|
+
"Unknown"
|
|
26
|
+
]).describe("Sentiment of the user in the chat.").nullable().optional(),
|
|
27
|
+
chat_successful: zod.z.boolean().describe("Whether the agent seems to have a successful chat with the user, where the agent finishes the task, and the call was complete without being cutoff.").nullable().optional(),
|
|
28
|
+
custom_analysis_data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom analysis data that was extracted based on the schema defined in chat agent post chat analysis data. Can be empty if nothing is specified.").nullable().optional()
|
|
29
|
+
}).describe("Post-chat analysis data");
|
|
30
|
+
const RetellaiCreateChatOutput = zod.z.object({
|
|
31
|
+
chat_id: zod.z.string().describe("Unique id of the chat."),
|
|
32
|
+
version: zod.z.number().int().describe("The version of the agent").nullable().optional(),
|
|
33
|
+
agent_id: zod.z.string().describe("Corresponding chat agent id of this chat."),
|
|
34
|
+
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("An arbitrary object for storage purpose only. You can put anything here like your internal customer id associated with the chat. Not used for processing. You can later get this field from the chat object.").nullable().optional(),
|
|
35
|
+
chat_cost: RetellaiCreateChat_ChatCostSchema.nullable().optional(),
|
|
36
|
+
chat_type: zod.z.enum(["api_chat", "sms_chat"]).describe("Type of the chat").nullable().optional(),
|
|
37
|
+
transcript: zod.z.string().describe("Transcription of the chat.").nullable().optional(),
|
|
38
|
+
chat_status: zod.z.enum([
|
|
39
|
+
"ongoing",
|
|
40
|
+
"ended",
|
|
41
|
+
"error"
|
|
42
|
+
]).describe("Status of chat.\n\n- `ongoing`: Chat session is ongoing, chat agent can receive new message and generate response.\n- `ended`: Chat session has ended, and no longer can generate new response.\n- `error`: Chat encountered error."),
|
|
43
|
+
chat_analysis: RetellaiCreateChat_ChatAnalysisSchema.nullable().optional(),
|
|
44
|
+
end_timestamp: zod.z.number().int().describe("End timestamp (milliseconds since epoch) of the chat. Available after chat ends.").nullable().optional(),
|
|
45
|
+
start_timestamp: zod.z.number().int().describe("Begin timestamp (milliseconds since epoch) of the chat. Available after chat starts.").nullable().optional(),
|
|
46
|
+
custom_attributes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom attributes for the chat").nullable().optional(),
|
|
47
|
+
message_with_tool_calls: zod.z.array(zod.z.unknown()).describe("Transcript of the chat weaved with tool call invocation and results.").nullable().optional(),
|
|
48
|
+
collected_dynamic_variables: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Dynamic variables collected from the chat. Only available after the chat ends.").nullable().optional(),
|
|
49
|
+
retell_llm_dynamic_variables: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Add optional dynamic variables in key value pairs of string that injects into your Response Engine prompt and tool description. Only applicable for Response Engine.").nullable().optional()
|
|
50
|
+
}).describe("Response schema for `CreateChat`");
|
|
51
|
+
const retellaiCreateChat = require_action.action("RETELLAI_CREATE_CHAT", {
|
|
52
|
+
slug: "retellai-create-chat",
|
|
53
|
+
name: "Create a new chat session",
|
|
54
|
+
description: "Tool to create a new chat session with a chat agent. Use when you need to initiate a new chat conversation with a RetellAI chat agent.",
|
|
55
|
+
input: RetellaiCreateChatInput,
|
|
56
|
+
output: RetellaiCreateChatOutput
|
|
57
|
+
});
|
|
58
|
+
//#endregion
|
|
59
|
+
exports.retellaiCreateChat = retellaiCreateChat;
|
|
60
|
+
|
|
61
|
+
//# sourceMappingURL=create-chat.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-chat.cjs","names":["z","action"],"sources":["../../src/actions/create-chat.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RetellaiCreateChatInput: z.ZodTypeAny = z.object({\n agent_id: z.string().describe(\"The chat agent to use for the call.\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"An arbitrary object for storage purpose only. You can put anything here like your internal customer id associated with the chat. Not used for processing. You can later get this field from the chat object.\").optional(),\n agent_version: z.number().int().describe(\"The version of the chat agent to use for the chat. If not provided, will default to latest version.\").optional(),\n retell_llm_dynamic_variables: z.record(z.string(), z.unknown()).describe(\"Add optional dynamic variables in key value pairs of string that injects into your Response Engine prompt and tool description. Only applicable for Response Engine.\").optional(),\n}).describe(\"Request schema for `CreateChat`\");\nconst RetellaiCreateChat_ProductCostSchema: z.ZodTypeAny = z.object({\n cost: z.number().describe(\"Cost in cents\"),\n product: z.string().describe(\"Product name\"),\n unit_price: z.number().describe(\"Unit price in cents\"),\n}).describe(\"Individual product cost\");\nconst RetellaiCreateChat_ChatCostSchema: z.ZodTypeAny = z.object({\n combined_cost: z.number().describe(\"Combined cost of all individual costs in cents\").nullable().optional(),\n product_costs: z.array(RetellaiCreateChat_ProductCostSchema).describe(\"List of products with their unit prices and costs in cents\").nullable().optional(),\n}).describe(\"Chat cost breakdown\");\nconst RetellaiCreateChat_ChatAnalysisSchema: z.ZodTypeAny = z.object({\n chat_summary: z.string().describe(\"A high level summary of the chat.\").nullable().optional(),\n user_sentiment: z.enum([\"Negative\", \"Positive\", \"Neutral\", \"Unknown\"]).describe(\"Sentiment of the user in the chat.\").nullable().optional(),\n chat_successful: z.boolean().describe(\"Whether the agent seems to have a successful chat with the user, where the agent finishes the task, and the call was complete without being cutoff.\").nullable().optional(),\n custom_analysis_data: z.record(z.string(), z.unknown()).describe(\"Custom analysis data that was extracted based on the schema defined in chat agent post chat analysis data. Can be empty if nothing is specified.\").nullable().optional(),\n}).describe(\"Post-chat analysis data\");\nexport const RetellaiCreateChatOutput: z.ZodTypeAny = z.object({\n chat_id: z.string().describe(\"Unique id of the chat.\"),\n version: z.number().int().describe(\"The version of the agent\").nullable().optional(),\n agent_id: z.string().describe(\"Corresponding chat agent id of this chat.\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"An arbitrary object for storage purpose only. You can put anything here like your internal customer id associated with the chat. Not used for processing. You can later get this field from the chat object.\").nullable().optional(),\n chat_cost: RetellaiCreateChat_ChatCostSchema.nullable().optional(),\n chat_type: z.enum([\"api_chat\", \"sms_chat\"]).describe(\"Type of the chat\").nullable().optional(),\n transcript: z.string().describe(\"Transcription of the chat.\").nullable().optional(),\n chat_status: z.enum([\"ongoing\", \"ended\", \"error\"]).describe(\"Status of chat.\\n\\n- `ongoing`: Chat session is ongoing, chat agent can receive new message and generate response.\\n- `ended`: Chat session has ended, and no longer can generate new response.\\n- `error`: Chat encountered error.\"),\n chat_analysis: RetellaiCreateChat_ChatAnalysisSchema.nullable().optional(),\n end_timestamp: z.number().int().describe(\"End timestamp (milliseconds since epoch) of the chat. Available after chat ends.\").nullable().optional(),\n start_timestamp: z.number().int().describe(\"Begin timestamp (milliseconds since epoch) of the chat. Available after chat starts.\").nullable().optional(),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Custom attributes for the chat\").nullable().optional(),\n message_with_tool_calls: z.array(z.unknown()).describe(\"Transcript of the chat weaved with tool call invocation and results.\").nullable().optional(),\n collected_dynamic_variables: z.record(z.string(), z.unknown()).describe(\"Dynamic variables collected from the chat. Only available after the chat ends.\").nullable().optional(),\n retell_llm_dynamic_variables: z.record(z.string(), z.unknown()).describe(\"Add optional dynamic variables in key value pairs of string that injects into your Response Engine prompt and tool description. Only applicable for Response Engine.\").nullable().optional(),\n}).describe(\"Response schema for `CreateChat`\");\n\nexport const retellaiCreateChat = action(\"RETELLAI_CREATE_CHAT\", {\n slug: \"retellai-create-chat\",\n name: \"Create a new chat session\",\n description: \"Tool to create a new chat session with a chat agent. Use when you need to initiate a new chat conversation with a RetellAI chat agent.\",\n input: RetellaiCreateChatInput,\n output: RetellaiCreateChatOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACnE,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8MAA8M,CAAC,CAAC,SAAS;CAC9Q,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qGAAqG,CA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,CAAC,CAAC,SAAS;CACpH,yBAAyBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnJ,6BAA6BA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9K,8BAA8BA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sKAAsK,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvQ,CAAC,CAAC,CAAC,SAAS,kCAAkC;AAE9C,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-chat.d.ts
|
|
4
|
+
declare const RetellaiCreateChatInput: z.ZodTypeAny;
|
|
5
|
+
declare const RetellaiCreateChatOutput: z.ZodTypeAny;
|
|
6
|
+
declare const retellaiCreateChat: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { retellaiCreateChat };
|
|
9
|
+
//# sourceMappingURL=create-chat.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-chat.d.cts","names":[],"sources":["../../src/actions/create-chat.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAKM;AAAA,cAgBjC,wBAAA,EAA0B,CAAA,CAAE,UAgBM;AAAA,cAElC,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-chat.d.ts
|
|
4
|
+
declare const RetellaiCreateChatInput: z.ZodTypeAny;
|
|
5
|
+
declare const RetellaiCreateChatOutput: z.ZodTypeAny;
|
|
6
|
+
declare const retellaiCreateChat: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { retellaiCreateChat };
|
|
9
|
+
//# sourceMappingURL=create-chat.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-chat.d.mts","names":[],"sources":["../../src/actions/create-chat.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAKM;AAAA,cAgBjC,wBAAA,EAA0B,CAAA,CAAE,UAgBM;AAAA,cAElC,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/create-chat.ts
|
|
4
|
+
const RetellaiCreateChatInput = z.object({
|
|
5
|
+
agent_id: z.string().describe("The chat agent to use for the call."),
|
|
6
|
+
metadata: z.record(z.string(), z.unknown()).describe("An arbitrary object for storage purpose only. You can put anything here like your internal customer id associated with the chat. Not used for processing. You can later get this field from the chat object.").optional(),
|
|
7
|
+
agent_version: z.number().int().describe("The version of the chat agent to use for the chat. If not provided, will default to latest version.").optional(),
|
|
8
|
+
retell_llm_dynamic_variables: z.record(z.string(), z.unknown()).describe("Add optional dynamic variables in key value pairs of string that injects into your Response Engine prompt and tool description. Only applicable for Response Engine.").optional()
|
|
9
|
+
}).describe("Request schema for `CreateChat`");
|
|
10
|
+
const RetellaiCreateChat_ProductCostSchema = z.object({
|
|
11
|
+
cost: z.number().describe("Cost in cents"),
|
|
12
|
+
product: z.string().describe("Product name"),
|
|
13
|
+
unit_price: z.number().describe("Unit price in cents")
|
|
14
|
+
}).describe("Individual product cost");
|
|
15
|
+
const RetellaiCreateChat_ChatCostSchema = z.object({
|
|
16
|
+
combined_cost: z.number().describe("Combined cost of all individual costs in cents").nullable().optional(),
|
|
17
|
+
product_costs: z.array(RetellaiCreateChat_ProductCostSchema).describe("List of products with their unit prices and costs in cents").nullable().optional()
|
|
18
|
+
}).describe("Chat cost breakdown");
|
|
19
|
+
const RetellaiCreateChat_ChatAnalysisSchema = z.object({
|
|
20
|
+
chat_summary: z.string().describe("A high level summary of the chat.").nullable().optional(),
|
|
21
|
+
user_sentiment: z.enum([
|
|
22
|
+
"Negative",
|
|
23
|
+
"Positive",
|
|
24
|
+
"Neutral",
|
|
25
|
+
"Unknown"
|
|
26
|
+
]).describe("Sentiment of the user in the chat.").nullable().optional(),
|
|
27
|
+
chat_successful: z.boolean().describe("Whether the agent seems to have a successful chat with the user, where the agent finishes the task, and the call was complete without being cutoff.").nullable().optional(),
|
|
28
|
+
custom_analysis_data: z.record(z.string(), z.unknown()).describe("Custom analysis data that was extracted based on the schema defined in chat agent post chat analysis data. Can be empty if nothing is specified.").nullable().optional()
|
|
29
|
+
}).describe("Post-chat analysis data");
|
|
30
|
+
const retellaiCreateChat = action("RETELLAI_CREATE_CHAT", {
|
|
31
|
+
slug: "retellai-create-chat",
|
|
32
|
+
name: "Create a new chat session",
|
|
33
|
+
description: "Tool to create a new chat session with a chat agent. Use when you need to initiate a new chat conversation with a RetellAI chat agent.",
|
|
34
|
+
input: RetellaiCreateChatInput,
|
|
35
|
+
output: z.object({
|
|
36
|
+
chat_id: z.string().describe("Unique id of the chat."),
|
|
37
|
+
version: z.number().int().describe("The version of the agent").nullable().optional(),
|
|
38
|
+
agent_id: z.string().describe("Corresponding chat agent id of this chat."),
|
|
39
|
+
metadata: z.record(z.string(), z.unknown()).describe("An arbitrary object for storage purpose only. You can put anything here like your internal customer id associated with the chat. Not used for processing. You can later get this field from the chat object.").nullable().optional(),
|
|
40
|
+
chat_cost: RetellaiCreateChat_ChatCostSchema.nullable().optional(),
|
|
41
|
+
chat_type: z.enum(["api_chat", "sms_chat"]).describe("Type of the chat").nullable().optional(),
|
|
42
|
+
transcript: z.string().describe("Transcription of the chat.").nullable().optional(),
|
|
43
|
+
chat_status: z.enum([
|
|
44
|
+
"ongoing",
|
|
45
|
+
"ended",
|
|
46
|
+
"error"
|
|
47
|
+
]).describe("Status of chat.\n\n- `ongoing`: Chat session is ongoing, chat agent can receive new message and generate response.\n- `ended`: Chat session has ended, and no longer can generate new response.\n- `error`: Chat encountered error."),
|
|
48
|
+
chat_analysis: RetellaiCreateChat_ChatAnalysisSchema.nullable().optional(),
|
|
49
|
+
end_timestamp: z.number().int().describe("End timestamp (milliseconds since epoch) of the chat. Available after chat ends.").nullable().optional(),
|
|
50
|
+
start_timestamp: z.number().int().describe("Begin timestamp (milliseconds since epoch) of the chat. Available after chat starts.").nullable().optional(),
|
|
51
|
+
custom_attributes: z.record(z.string(), z.unknown()).describe("Custom attributes for the chat").nullable().optional(),
|
|
52
|
+
message_with_tool_calls: z.array(z.unknown()).describe("Transcript of the chat weaved with tool call invocation and results.").nullable().optional(),
|
|
53
|
+
collected_dynamic_variables: z.record(z.string(), z.unknown()).describe("Dynamic variables collected from the chat. Only available after the chat ends.").nullable().optional(),
|
|
54
|
+
retell_llm_dynamic_variables: z.record(z.string(), z.unknown()).describe("Add optional dynamic variables in key value pairs of string that injects into your Response Engine prompt and tool description. Only applicable for Response Engine.").nullable().optional()
|
|
55
|
+
}).describe("Response schema for `CreateChat`")
|
|
56
|
+
});
|
|
57
|
+
//#endregion
|
|
58
|
+
export { retellaiCreateChat };
|
|
59
|
+
|
|
60
|
+
//# sourceMappingURL=create-chat.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-chat.mjs","names":[],"sources":["../../src/actions/create-chat.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RetellaiCreateChatInput: z.ZodTypeAny = z.object({\n agent_id: z.string().describe(\"The chat agent to use for the call.\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"An arbitrary object for storage purpose only. You can put anything here like your internal customer id associated with the chat. Not used for processing. You can later get this field from the chat object.\").optional(),\n agent_version: z.number().int().describe(\"The version of the chat agent to use for the chat. If not provided, will default to latest version.\").optional(),\n retell_llm_dynamic_variables: z.record(z.string(), z.unknown()).describe(\"Add optional dynamic variables in key value pairs of string that injects into your Response Engine prompt and tool description. Only applicable for Response Engine.\").optional(),\n}).describe(\"Request schema for `CreateChat`\");\nconst RetellaiCreateChat_ProductCostSchema: z.ZodTypeAny = z.object({\n cost: z.number().describe(\"Cost in cents\"),\n product: z.string().describe(\"Product name\"),\n unit_price: z.number().describe(\"Unit price in cents\"),\n}).describe(\"Individual product cost\");\nconst RetellaiCreateChat_ChatCostSchema: z.ZodTypeAny = z.object({\n combined_cost: z.number().describe(\"Combined cost of all individual costs in cents\").nullable().optional(),\n product_costs: z.array(RetellaiCreateChat_ProductCostSchema).describe(\"List of products with their unit prices and costs in cents\").nullable().optional(),\n}).describe(\"Chat cost breakdown\");\nconst RetellaiCreateChat_ChatAnalysisSchema: z.ZodTypeAny = z.object({\n chat_summary: z.string().describe(\"A high level summary of the chat.\").nullable().optional(),\n user_sentiment: z.enum([\"Negative\", \"Positive\", \"Neutral\", \"Unknown\"]).describe(\"Sentiment of the user in the chat.\").nullable().optional(),\n chat_successful: z.boolean().describe(\"Whether the agent seems to have a successful chat with the user, where the agent finishes the task, and the call was complete without being cutoff.\").nullable().optional(),\n custom_analysis_data: z.record(z.string(), z.unknown()).describe(\"Custom analysis data that was extracted based on the schema defined in chat agent post chat analysis data. Can be empty if nothing is specified.\").nullable().optional(),\n}).describe(\"Post-chat analysis data\");\nexport const RetellaiCreateChatOutput: z.ZodTypeAny = z.object({\n chat_id: z.string().describe(\"Unique id of the chat.\"),\n version: z.number().int().describe(\"The version of the agent\").nullable().optional(),\n agent_id: z.string().describe(\"Corresponding chat agent id of this chat.\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"An arbitrary object for storage purpose only. You can put anything here like your internal customer id associated with the chat. Not used for processing. You can later get this field from the chat object.\").nullable().optional(),\n chat_cost: RetellaiCreateChat_ChatCostSchema.nullable().optional(),\n chat_type: z.enum([\"api_chat\", \"sms_chat\"]).describe(\"Type of the chat\").nullable().optional(),\n transcript: z.string().describe(\"Transcription of the chat.\").nullable().optional(),\n chat_status: z.enum([\"ongoing\", \"ended\", \"error\"]).describe(\"Status of chat.\\n\\n- `ongoing`: Chat session is ongoing, chat agent can receive new message and generate response.\\n- `ended`: Chat session has ended, and no longer can generate new response.\\n- `error`: Chat encountered error.\"),\n chat_analysis: RetellaiCreateChat_ChatAnalysisSchema.nullable().optional(),\n end_timestamp: z.number().int().describe(\"End timestamp (milliseconds since epoch) of the chat. Available after chat ends.\").nullable().optional(),\n start_timestamp: z.number().int().describe(\"Begin timestamp (milliseconds since epoch) of the chat. Available after chat starts.\").nullable().optional(),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Custom attributes for the chat\").nullable().optional(),\n message_with_tool_calls: z.array(z.unknown()).describe(\"Transcript of the chat weaved with tool call invocation and results.\").nullable().optional(),\n collected_dynamic_variables: z.record(z.string(), z.unknown()).describe(\"Dynamic variables collected from the chat. Only available after the chat ends.\").nullable().optional(),\n retell_llm_dynamic_variables: z.record(z.string(), z.unknown()).describe(\"Add optional dynamic variables in key value pairs of string that injects into your Response Engine prompt and tool description. Only applicable for Response Engine.\").nullable().optional(),\n}).describe(\"Response schema for `CreateChat`\");\n\nexport const retellaiCreateChat = action(\"RETELLAI_CREATE_CHAT\", {\n slug: \"retellai-create-chat\",\n name: \"Create a new chat session\",\n description: \"Tool to create a new chat session with a chat agent. Use when you need to initiate a new chat conversation with a RetellAI chat agent.\",\n input: RetellaiCreateChatInput,\n output: RetellaiCreateChatOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwC,EAAE,OAAO;CAC5D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACnE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8MAA8M,CAAC,CAAC,SAAS;CAC9Q,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CACzJ,8BAA8B,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sKAAsK,CAAC,CAAC,SAAS;AAC5P,CAAC,CAAC,CAAC,SAAS,iCAAiC;AAC7C,MAAM,uCAAqD,EAAE,OAAO;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;CACzC,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc;CAC3C,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;AACvD,CAAC,CAAC,CAAC,SAAS,yBAAyB;AACrC,MAAM,oCAAkD,EAAE,OAAO;CAC/D,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,eAAe,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1J,CAAC,CAAC,CAAC,SAAS,qBAAqB;AACjC,MAAM,wCAAsD,EAAE,OAAO;CACnE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,gBAAgB,EAAE,KAAK;EAAC;EAAY;EAAY;EAAW;CAAS,CAAC,CAAC,CAAC,SAAS,oCA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E,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvJ,mBAAmB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpH,yBAAyB,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnJ,6BAA6B,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9K,8BAA8B,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sKAAsK,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvQ,CAAC,CAAC,CAAC,SAAS,kCAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-conversation-flow-component.ts
|
|
4
|
+
const RetellaiCreateConversationFlowComponentInput = zod.z.object({
|
|
5
|
+
mcps: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("MCP (Model Context Protocol) server configurations for the component. Enables integration with external MCP-compatible services.").optional(),
|
|
6
|
+
name: zod.z.string().describe("Name of the conversation flow component. Used to identify the component."),
|
|
7
|
+
nodes: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Array of conversation flow nodes forming the component structure. Nodes can be of various types including conversation, end, function, transfer, branch, and more. Each node has an id, type, and type-specific configuration."),
|
|
8
|
+
tools: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Custom and system integrations available within the component. Includes custom tools, end call tools, appointment booking tools, and more.").optional(),
|
|
9
|
+
start_node_id: zod.z.string().describe("ID of the node where execution begins. If not specified, the first node in the nodes array is used as the starting point.").optional(),
|
|
10
|
+
begin_tag_display_position: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Frontend display coordinates for the begin tag. Expected to contain x and y properties for positioning in the UI.").optional()
|
|
11
|
+
}).describe("Request schema for `CreateConversationFlowComponent`");
|
|
12
|
+
const RetellaiCreateConversationFlowComponent_McpServerConfigurationSchema = zod.z.object({
|
|
13
|
+
url: zod.z.string().describe("URL of the MCP server endpoint"),
|
|
14
|
+
name: zod.z.string().describe("Name of the MCP server"),
|
|
15
|
+
headers: zod.z.object({}).describe("HTTP headers for MCP server requests (string key-value pairs)").nullable().optional(),
|
|
16
|
+
timeoutMs: zod.z.number().int().default(12e4).describe("Maximum time to wait for a connection to be established (milliseconds)").nullable().optional(),
|
|
17
|
+
queryParams: zod.z.object({}).describe("Query parameters for MCP server requests (string key-value pairs)").nullable().optional()
|
|
18
|
+
}).describe("MCP (Model Context Protocol) server configuration");
|
|
19
|
+
const RetellaiCreateConversationFlowComponent_NodeToolSchema = zod.z.object({
|
|
20
|
+
url: zod.z.string().describe("HTTP endpoint URL for custom tools").nullable().optional(),
|
|
21
|
+
name: zod.z.string().describe("Name of the tool (for custom tools)").nullable().optional(),
|
|
22
|
+
type: zod.z.string().describe("Tool type: custom, check_availability_cal, or book_appointment_cal"),
|
|
23
|
+
method: zod.z.enum([
|
|
24
|
+
"GET",
|
|
25
|
+
"POST",
|
|
26
|
+
"PUT",
|
|
27
|
+
"PATCH",
|
|
28
|
+
"DELETE"
|
|
29
|
+
]).describe("HTTP method for custom tools").nullable().optional(),
|
|
30
|
+
toolId: zod.z.string().describe("Unique identifier for the tool"),
|
|
31
|
+
headers: zod.z.record(zod.z.string(), zod.z.unknown()).describe("HTTP headers for custom tool requests").nullable().optional(),
|
|
32
|
+
timezone: zod.z.string().describe("IANA timezone string for Cal.com tools").nullable().optional(),
|
|
33
|
+
calApiKey: zod.z.string().describe("Cal.com API key (for Cal.com tools)").nullable().optional(),
|
|
34
|
+
timeoutMs: zod.z.number().int().describe("Timeout in milliseconds for tool execution (1000-600000ms)").nullable().optional(),
|
|
35
|
+
argsAtRoot: zod.z.boolean().describe("Whether to place arguments at root level of request body").nullable().optional(),
|
|
36
|
+
description: zod.z.string().describe("Description of the tool's purpose (for custom tools)").nullable().optional(),
|
|
37
|
+
eventTypeId: zod.z.number().describe("Cal.com event type ID (for Cal.com tools)").nullable().optional(),
|
|
38
|
+
queryParams: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Query parameters for custom tool requests").nullable().optional(),
|
|
39
|
+
responseVariables: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Variables to extract from tool response").nullable().optional()
|
|
40
|
+
}).describe("Tool definition for external integrations - supports custom HTTP tools, Cal.com availability check, and Cal.com appointment booking");
|
|
41
|
+
const RetellaiCreateConversationFlowComponent_DisplayPositionSchema = zod.z.object({
|
|
42
|
+
x: zod.z.number().describe("X coordinate for visual rendering").nullable().optional(),
|
|
43
|
+
y: zod.z.number().describe("Y coordinate for visual rendering").nullable().optional()
|
|
44
|
+
}).describe("Coordinates for visual rendering in the flow editor");
|
|
45
|
+
const RetellaiCreateConversationFlowComponentOutput = zod.z.object({
|
|
46
|
+
mcps: zod.z.array(RetellaiCreateConversationFlowComponent_McpServerConfigurationSchema).describe("A list of MCP (Model Context Protocol) server configurations to use for this component").nullable().optional(),
|
|
47
|
+
name: zod.z.string().describe("Name of the component"),
|
|
48
|
+
nodes: zod.z.array(zod.z.unknown()).describe("Array of conversation flow nodes that define the component's behavior. Supports 12 node types: conversation, end, function, transfer_call, press_digit, branch, sms, extract_dynamic_variables, agent_swap, mcp, component, bridge_transfer, cancel_transfer. Using Any to avoid circular reference as nodes can contain nested structures."),
|
|
49
|
+
tools: zod.z.array(RetellaiCreateConversationFlowComponent_NodeToolSchema).describe("Tools available within the component for external integrations").nullable().optional(),
|
|
50
|
+
startNodeId: zod.z.string().describe("ID of the starting node in the component flow").nullable().optional(),
|
|
51
|
+
userModifiedTimestamp: zod.z.number().int().describe("Timestamp of last user modification"),
|
|
52
|
+
beginTagDisplayPosition: RetellaiCreateConversationFlowComponent_DisplayPositionSchema.nullable().optional(),
|
|
53
|
+
linkedConversationFlowIds: zod.z.array(zod.z.string()).describe("IDs of conversation flows linked to this shared component").nullable().optional(),
|
|
54
|
+
conversationFlowComponentId: zod.z.string().describe("Unique identifier for the component")
|
|
55
|
+
}).describe("Response schema for `CreateConversationFlowComponent`");
|
|
56
|
+
const retellaiCreateConversationFlowComponent = require_action.action("RETELLAI_CREATE_CONVERSATION_FLOW_COMPONENT", {
|
|
57
|
+
slug: "retellai-create-conversation-flow-component",
|
|
58
|
+
name: "Create conversation flow component",
|
|
59
|
+
description: "Creates a new shared conversation flow component at POST '/create-conversation-flow-component'. Requires 'name' and 'nodes' array. Optional: tools, mcps, start_node_id, begin_tag_display_position. Returns component ID, timestamp, and the full component definition.",
|
|
60
|
+
input: RetellaiCreateConversationFlowComponentInput,
|
|
61
|
+
output: RetellaiCreateConversationFlowComponentOutput
|
|
62
|
+
});
|
|
63
|
+
//#endregion
|
|
64
|
+
exports.retellaiCreateConversationFlowComponent = retellaiCreateConversationFlowComponent;
|
|
65
|
+
|
|
66
|
+
//# sourceMappingURL=create-conversation-flow-component.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-conversation-flow-component.cjs","names":["z","action"],"sources":["../../src/actions/create-conversation-flow-component.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RetellaiCreateConversationFlowComponentInput: z.ZodTypeAny = z.object({\n mcps: z.array(z.record(z.string(), z.unknown())).describe(\"MCP (Model Context Protocol) server configurations for the component. Enables integration with external MCP-compatible services.\").optional(),\n name: z.string().describe(\"Name of the conversation flow component. Used to identify the component.\"),\n nodes: z.array(z.record(z.string(), z.unknown())).describe(\"Array of conversation flow nodes forming the component structure. Nodes can be of various types including conversation, end, function, transfer, branch, and more. Each node has an id, type, and type-specific configuration.\"),\n tools: z.array(z.record(z.string(), z.unknown())).describe(\"Custom and system integrations available within the component. Includes custom tools, end call tools, appointment booking tools, and more.\").optional(),\n start_node_id: z.string().describe(\"ID of the node where execution begins. If not specified, the first node in the nodes array is used as the starting point.\").optional(),\n begin_tag_display_position: z.record(z.string(), z.unknown()).describe(\"Frontend display coordinates for the begin tag. Expected to contain x and y properties for positioning in the UI.\").optional(),\n}).describe(\"Request schema for `CreateConversationFlowComponent`\");\nconst RetellaiCreateConversationFlowComponent_McpServerConfigurationSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the MCP server endpoint\"),\n name: z.string().describe(\"Name of the MCP server\"),\n headers: z.object({}).describe(\"HTTP headers for MCP server requests (string key-value pairs)\").nullable().optional(),\n timeoutMs: z.number().int().default(120000).describe(\"Maximum time to wait for a connection to be established (milliseconds)\").nullable().optional(),\n queryParams: z.object({}).describe(\"Query parameters for MCP server requests (string key-value pairs)\").nullable().optional(),\n}).describe(\"MCP (Model Context Protocol) server configuration\");\nconst RetellaiCreateConversationFlowComponent_NodeToolSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"HTTP endpoint URL for custom tools\").nullable().optional(),\n name: z.string().describe(\"Name of the tool (for custom tools)\").nullable().optional(),\n type: z.string().describe(\"Tool type: custom, check_availability_cal, or book_appointment_cal\"),\n method: z.enum([\"GET\", \"POST\", \"PUT\", \"PATCH\", \"DELETE\"]).describe(\"HTTP method for custom tools\").nullable().optional(),\n toolId: z.string().describe(\"Unique identifier for the tool\"),\n headers: z.record(z.string(), z.unknown()).describe(\"HTTP headers for custom tool requests\").nullable().optional(),\n timezone: z.string().describe(\"IANA timezone string for Cal.com tools\").nullable().optional(),\n calApiKey: z.string().describe(\"Cal.com API key (for Cal.com tools)\").nullable().optional(),\n timeoutMs: z.number().int().describe(\"Timeout in milliseconds for tool execution (1000-600000ms)\").nullable().optional(),\n argsAtRoot: z.boolean().describe(\"Whether to place arguments at root level of request body\").nullable().optional(),\n description: z.string().describe(\"Description of the tool's purpose (for custom tools)\").nullable().optional(),\n eventTypeId: z.number().describe(\"Cal.com event type ID (for Cal.com tools)\").nullable().optional(),\n queryParams: z.record(z.string(), z.unknown()).describe(\"Query parameters for custom tool requests\").nullable().optional(),\n responseVariables: z.record(z.string(), z.unknown()).describe(\"Variables to extract from tool response\").nullable().optional(),\n}).describe(\"Tool definition for external integrations - supports custom HTTP tools, Cal.com availability check, and Cal.com appointment booking\");\nconst RetellaiCreateConversationFlowComponent_DisplayPositionSchema: z.ZodTypeAny = z.object({\n x: z.number().describe(\"X coordinate for visual rendering\").nullable().optional(),\n y: z.number().describe(\"Y coordinate for visual rendering\").nullable().optional(),\n}).describe(\"Coordinates for visual rendering in the flow editor\");\nexport const RetellaiCreateConversationFlowComponentOutput: z.ZodTypeAny = z.object({\n mcps: z.array(RetellaiCreateConversationFlowComponent_McpServerConfigurationSchema).describe(\"A list of MCP (Model Context Protocol) server configurations to use for this component\").nullable().optional(),\n name: z.string().describe(\"Name of the component\"),\n nodes: z.array(z.unknown()).describe(\"Array of conversation flow nodes that define the component's behavior. Supports 12 node types: conversation, end, function, transfer_call, press_digit, branch, sms, extract_dynamic_variables, agent_swap, mcp, component, bridge_transfer, cancel_transfer. Using Any to avoid circular reference as nodes can contain nested structures.\"),\n tools: z.array(RetellaiCreateConversationFlowComponent_NodeToolSchema).describe(\"Tools available within the component for external integrations\").nullable().optional(),\n startNodeId: z.string().describe(\"ID of the starting node in the component flow\").nullable().optional(),\n userModifiedTimestamp: z.number().int().describe(\"Timestamp of last user modification\"),\n beginTagDisplayPosition: RetellaiCreateConversationFlowComponent_DisplayPositionSchema.nullable().optional(),\n linkedConversationFlowIds: z.array(z.string()).describe(\"IDs of conversation flows linked to this shared component\").nullable().optional(),\n conversationFlowComponentId: z.string().describe(\"Unique identifier for the component\"),\n}).describe(\"Response schema for `CreateConversationFlowComponent`\");\n\nexport const retellaiCreateConversationFlowComponent = action(\"RETELLAI_CREATE_CONVERSATION_FLOW_COMPONENT\", {\n slug: \"retellai-create-conversation-flow-component\",\n name: \"Create conversation flow component\",\n description: \"Creates a new shared conversation flow component at POST '/create-conversation-flow-component'. Requires 'name' and 'nodes' array. Optional: tools, mcps, start_node_id, begin_tag_display_position. Returns component ID, timestamp, and the full component definition.\",\n input: RetellaiCreateConversationFlowComponentInput,\n output: RetellaiCreateConversationFlowComponentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+CAA6DA,IAAAA,EAAE,OAAO;CACjF,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,kIAAkI,CAAC,CAAC,SAAS;CACvM,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E;CACpG,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,gOAAgO;CAC3R,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,4IAA4I,CAAC,CAAC,SAAS;CAClN,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;CACzK,4BAA4BA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mHAAmH,CAAC,CAAC,SAAS;AACvM,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,uEAAqFA,IAAAA,EAAE,OAAO;CAClG,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CAClD,S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AMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6UAA6U;CAClX,OAAOA,IAAAA,EAAE,MAAM,sDAAsD,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtK,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;CACtF,yBAAyB,8DAA8D,SAAS,CAAC,CAAC,SAAS;CAC3G,2BAA2BA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzI,6BAA6BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;AACxF,CAAC,CAAC,CAAC,SAAS,uDAAuD;AAEnE,MAAa,0CAA0CC,eAAAA,OAAO,+CAA+C;CAC3G,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-conversation-flow-component.d.ts
|
|
4
|
+
declare const RetellaiCreateConversationFlowComponentInput: z.ZodTypeAny;
|
|
5
|
+
declare const RetellaiCreateConversationFlowComponentOutput: z.ZodTypeAny;
|
|
6
|
+
declare const retellaiCreateConversationFlowComponent: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { retellaiCreateConversationFlowComponent };
|
|
9
|
+
//# sourceMappingURL=create-conversation-flow-component.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-conversation-flow-component.d.cts","names":[],"sources":["../../src/actions/create-conversation-flow-component.ts"],"mappings":";;;cAIa,4CAAA,EAA8C,CAAA,CAAE,UAOM;AAAA,cA4BtD,6CAAA,EAA+C,CAAA,CAAE,UAUM;AAAA,cAEvD,uCAAA,gCAAuC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-conversation-flow-component.d.ts
|
|
4
|
+
declare const RetellaiCreateConversationFlowComponentInput: z.ZodTypeAny;
|
|
5
|
+
declare const RetellaiCreateConversationFlowComponentOutput: z.ZodTypeAny;
|
|
6
|
+
declare const retellaiCreateConversationFlowComponent: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { retellaiCreateConversationFlowComponent };
|
|
9
|
+
//# sourceMappingURL=create-conversation-flow-component.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-conversation-flow-component.d.mts","names":[],"sources":["../../src/actions/create-conversation-flow-component.ts"],"mappings":";;;cAIa,4CAAA,EAA8C,CAAA,CAAE,UAOM;AAAA,cA4BtD,6CAAA,EAA+C,CAAA,CAAE,UAUM;AAAA,cAEvD,uCAAA,gCAAuC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/create-conversation-flow-component.ts
|
|
4
|
+
const RetellaiCreateConversationFlowComponentInput = z.object({
|
|
5
|
+
mcps: z.array(z.record(z.string(), z.unknown())).describe("MCP (Model Context Protocol) server configurations for the component. Enables integration with external MCP-compatible services.").optional(),
|
|
6
|
+
name: z.string().describe("Name of the conversation flow component. Used to identify the component."),
|
|
7
|
+
nodes: z.array(z.record(z.string(), z.unknown())).describe("Array of conversation flow nodes forming the component structure. Nodes can be of various types including conversation, end, function, transfer, branch, and more. Each node has an id, type, and type-specific configuration."),
|
|
8
|
+
tools: z.array(z.record(z.string(), z.unknown())).describe("Custom and system integrations available within the component. Includes custom tools, end call tools, appointment booking tools, and more.").optional(),
|
|
9
|
+
start_node_id: z.string().describe("ID of the node where execution begins. If not specified, the first node in the nodes array is used as the starting point.").optional(),
|
|
10
|
+
begin_tag_display_position: z.record(z.string(), z.unknown()).describe("Frontend display coordinates for the begin tag. Expected to contain x and y properties for positioning in the UI.").optional()
|
|
11
|
+
}).describe("Request schema for `CreateConversationFlowComponent`");
|
|
12
|
+
const RetellaiCreateConversationFlowComponent_McpServerConfigurationSchema = z.object({
|
|
13
|
+
url: z.string().describe("URL of the MCP server endpoint"),
|
|
14
|
+
name: z.string().describe("Name of the MCP server"),
|
|
15
|
+
headers: z.object({}).describe("HTTP headers for MCP server requests (string key-value pairs)").nullable().optional(),
|
|
16
|
+
timeoutMs: z.number().int().default(12e4).describe("Maximum time to wait for a connection to be established (milliseconds)").nullable().optional(),
|
|
17
|
+
queryParams: z.object({}).describe("Query parameters for MCP server requests (string key-value pairs)").nullable().optional()
|
|
18
|
+
}).describe("MCP (Model Context Protocol) server configuration");
|
|
19
|
+
const RetellaiCreateConversationFlowComponent_NodeToolSchema = z.object({
|
|
20
|
+
url: z.string().describe("HTTP endpoint URL for custom tools").nullable().optional(),
|
|
21
|
+
name: z.string().describe("Name of the tool (for custom tools)").nullable().optional(),
|
|
22
|
+
type: z.string().describe("Tool type: custom, check_availability_cal, or book_appointment_cal"),
|
|
23
|
+
method: z.enum([
|
|
24
|
+
"GET",
|
|
25
|
+
"POST",
|
|
26
|
+
"PUT",
|
|
27
|
+
"PATCH",
|
|
28
|
+
"DELETE"
|
|
29
|
+
]).describe("HTTP method for custom tools").nullable().optional(),
|
|
30
|
+
toolId: z.string().describe("Unique identifier for the tool"),
|
|
31
|
+
headers: z.record(z.string(), z.unknown()).describe("HTTP headers for custom tool requests").nullable().optional(),
|
|
32
|
+
timezone: z.string().describe("IANA timezone string for Cal.com tools").nullable().optional(),
|
|
33
|
+
calApiKey: z.string().describe("Cal.com API key (for Cal.com tools)").nullable().optional(),
|
|
34
|
+
timeoutMs: z.number().int().describe("Timeout in milliseconds for tool execution (1000-600000ms)").nullable().optional(),
|
|
35
|
+
argsAtRoot: z.boolean().describe("Whether to place arguments at root level of request body").nullable().optional(),
|
|
36
|
+
description: z.string().describe("Description of the tool's purpose (for custom tools)").nullable().optional(),
|
|
37
|
+
eventTypeId: z.number().describe("Cal.com event type ID (for Cal.com tools)").nullable().optional(),
|
|
38
|
+
queryParams: z.record(z.string(), z.unknown()).describe("Query parameters for custom tool requests").nullable().optional(),
|
|
39
|
+
responseVariables: z.record(z.string(), z.unknown()).describe("Variables to extract from tool response").nullable().optional()
|
|
40
|
+
}).describe("Tool definition for external integrations - supports custom HTTP tools, Cal.com availability check, and Cal.com appointment booking");
|
|
41
|
+
const RetellaiCreateConversationFlowComponent_DisplayPositionSchema = z.object({
|
|
42
|
+
x: z.number().describe("X coordinate for visual rendering").nullable().optional(),
|
|
43
|
+
y: z.number().describe("Y coordinate for visual rendering").nullable().optional()
|
|
44
|
+
}).describe("Coordinates for visual rendering in the flow editor");
|
|
45
|
+
const retellaiCreateConversationFlowComponent = action("RETELLAI_CREATE_CONVERSATION_FLOW_COMPONENT", {
|
|
46
|
+
slug: "retellai-create-conversation-flow-component",
|
|
47
|
+
name: "Create conversation flow component",
|
|
48
|
+
description: "Creates a new shared conversation flow component at POST '/create-conversation-flow-component'. Requires 'name' and 'nodes' array. Optional: tools, mcps, start_node_id, begin_tag_display_position. Returns component ID, timestamp, and the full component definition.",
|
|
49
|
+
input: RetellaiCreateConversationFlowComponentInput,
|
|
50
|
+
output: z.object({
|
|
51
|
+
mcps: z.array(RetellaiCreateConversationFlowComponent_McpServerConfigurationSchema).describe("A list of MCP (Model Context Protocol) server configurations to use for this component").nullable().optional(),
|
|
52
|
+
name: z.string().describe("Name of the component"),
|
|
53
|
+
nodes: z.array(z.unknown()).describe("Array of conversation flow nodes that define the component's behavior. Supports 12 node types: conversation, end, function, transfer_call, press_digit, branch, sms, extract_dynamic_variables, agent_swap, mcp, component, bridge_transfer, cancel_transfer. Using Any to avoid circular reference as nodes can contain nested structures."),
|
|
54
|
+
tools: z.array(RetellaiCreateConversationFlowComponent_NodeToolSchema).describe("Tools available within the component for external integrations").nullable().optional(),
|
|
55
|
+
startNodeId: z.string().describe("ID of the starting node in the component flow").nullable().optional(),
|
|
56
|
+
userModifiedTimestamp: z.number().int().describe("Timestamp of last user modification"),
|
|
57
|
+
beginTagDisplayPosition: RetellaiCreateConversationFlowComponent_DisplayPositionSchema.nullable().optional(),
|
|
58
|
+
linkedConversationFlowIds: z.array(z.string()).describe("IDs of conversation flows linked to this shared component").nullable().optional(),
|
|
59
|
+
conversationFlowComponentId: z.string().describe("Unique identifier for the component")
|
|
60
|
+
}).describe("Response schema for `CreateConversationFlowComponent`")
|
|
61
|
+
});
|
|
62
|
+
//#endregion
|
|
63
|
+
export { retellaiCreateConversationFlowComponent };
|
|
64
|
+
|
|
65
|
+
//# sourceMappingURL=create-conversation-flow-component.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-conversation-flow-component.mjs","names":[],"sources":["../../src/actions/create-conversation-flow-component.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RetellaiCreateConversationFlowComponentInput: z.ZodTypeAny = z.object({\n mcps: z.array(z.record(z.string(), z.unknown())).describe(\"MCP (Model Context Protocol) server configurations for the component. Enables integration with external MCP-compatible services.\").optional(),\n name: z.string().describe(\"Name of the conversation flow component. Used to identify the component.\"),\n nodes: z.array(z.record(z.string(), z.unknown())).describe(\"Array of conversation flow nodes forming the component structure. Nodes can be of various types including conversation, end, function, transfer, branch, and more. Each node has an id, type, and type-specific configuration.\"),\n tools: z.array(z.record(z.string(), z.unknown())).describe(\"Custom and system integrations available within the component. Includes custom tools, end call tools, appointment booking tools, and more.\").optional(),\n start_node_id: z.string().describe(\"ID of the node where execution begins. If not specified, the first node in the nodes array is used as the starting point.\").optional(),\n begin_tag_display_position: z.record(z.string(), z.unknown()).describe(\"Frontend display coordinates for the begin tag. Expected to contain x and y properties for positioning in the UI.\").optional(),\n}).describe(\"Request schema for `CreateConversationFlowComponent`\");\nconst RetellaiCreateConversationFlowComponent_McpServerConfigurationSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the MCP server endpoint\"),\n name: z.string().describe(\"Name of the MCP server\"),\n headers: z.object({}).describe(\"HTTP headers for MCP server requests (string key-value pairs)\").nullable().optional(),\n timeoutMs: z.number().int().default(120000).describe(\"Maximum time to wait for a connection to be established (milliseconds)\").nullable().optional(),\n queryParams: z.object({}).describe(\"Query parameters for MCP server requests (string key-value pairs)\").nullable().optional(),\n}).describe(\"MCP (Model Context Protocol) server configuration\");\nconst RetellaiCreateConversationFlowComponent_NodeToolSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"HTTP endpoint URL for custom tools\").nullable().optional(),\n name: z.string().describe(\"Name of the tool (for custom tools)\").nullable().optional(),\n type: z.string().describe(\"Tool type: custom, check_availability_cal, or book_appointment_cal\"),\n method: z.enum([\"GET\", \"POST\", \"PUT\", \"PATCH\", \"DELETE\"]).describe(\"HTTP method for custom tools\").nullable().optional(),\n toolId: z.string().describe(\"Unique identifier for the tool\"),\n headers: z.record(z.string(), z.unknown()).describe(\"HTTP headers for custom tool requests\").nullable().optional(),\n timezone: z.string().describe(\"IANA timezone string for Cal.com tools\").nullable().optional(),\n calApiKey: z.string().describe(\"Cal.com API key (for Cal.com tools)\").nullable().optional(),\n timeoutMs: z.number().int().describe(\"Timeout in milliseconds for tool execution (1000-600000ms)\").nullable().optional(),\n argsAtRoot: z.boolean().describe(\"Whether to place arguments at root level of request body\").nullable().optional(),\n description: z.string().describe(\"Description of the tool's purpose (for custom tools)\").nullable().optional(),\n eventTypeId: z.number().describe(\"Cal.com event type ID (for Cal.com tools)\").nullable().optional(),\n queryParams: z.record(z.string(), z.unknown()).describe(\"Query parameters for custom tool requests\").nullable().optional(),\n responseVariables: z.record(z.string(), z.unknown()).describe(\"Variables to extract from tool response\").nullable().optional(),\n}).describe(\"Tool definition for external integrations - supports custom HTTP tools, Cal.com availability check, and Cal.com appointment booking\");\nconst RetellaiCreateConversationFlowComponent_DisplayPositionSchema: z.ZodTypeAny = z.object({\n x: z.number().describe(\"X coordinate for visual rendering\").nullable().optional(),\n y: z.number().describe(\"Y coordinate for visual rendering\").nullable().optional(),\n}).describe(\"Coordinates for visual rendering in the flow editor\");\nexport const RetellaiCreateConversationFlowComponentOutput: z.ZodTypeAny = z.object({\n mcps: z.array(RetellaiCreateConversationFlowComponent_McpServerConfigurationSchema).describe(\"A list of MCP (Model Context Protocol) server configurations to use for this component\").nullable().optional(),\n name: z.string().describe(\"Name of the component\"),\n nodes: z.array(z.unknown()).describe(\"Array of conversation flow nodes that define the component's behavior. Supports 12 node types: conversation, end, function, transfer_call, press_digit, branch, sms, extract_dynamic_variables, agent_swap, mcp, component, bridge_transfer, cancel_transfer. Using Any to avoid circular reference as nodes can contain nested structures.\"),\n tools: z.array(RetellaiCreateConversationFlowComponent_NodeToolSchema).describe(\"Tools available within the component for external integrations\").nullable().optional(),\n startNodeId: z.string().describe(\"ID of the starting node in the component flow\").nullable().optional(),\n userModifiedTimestamp: z.number().int().describe(\"Timestamp of last user modification\"),\n beginTagDisplayPosition: RetellaiCreateConversationFlowComponent_DisplayPositionSchema.nullable().optional(),\n linkedConversationFlowIds: z.array(z.string()).describe(\"IDs of conversation flows linked to this shared component\").nullable().optional(),\n conversationFlowComponentId: z.string().describe(\"Unique identifier for the component\"),\n}).describe(\"Response schema for `CreateConversationFlowComponent`\");\n\nexport const retellaiCreateConversationFlowComponent = action(\"RETELLAI_CREATE_CONVERSATION_FLOW_COMPONENT\", {\n slug: \"retellai-create-conversation-flow-component\",\n name: \"Create conversation flow component\",\n description: \"Creates a new shared conversation flow component at POST '/create-conversation-flow-component'. Requires 'name' and 'nodes' array. Optional: tools, mcps, start_node_id, begin_tag_display_position. Returns component ID, timestamp, and the full component definition.\",\n input: RetellaiCreateConversationFlowComponentInput,\n output: RetellaiCreateConversationFlowComponentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+CAA6D,EAAE,OAAO;CACjF,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,kIAAkI,CAAC,CAAC,SAAS;CACvM,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E;CACpG,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,gOAAgO;CAC3R,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,4IAA4I,CAAC,CAAC,SAAS;CAClN,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;CACzK,4BAA4B,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mHAAmH,CAAC,CAAC,SAAS;AACvM,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,uEAAqF,EAAE,OAAO;CAClG,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CAClD,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,WAAW,EAAE,OAAO,CAAC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