@guidify-ai/vapi-studio 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/LICENSE +21 -0
- package/README.md +129 -0
- package/agent/AGENTS.md +42 -0
- package/agent/CLAUDE.md +15 -0
- package/agent/claude/rules/ui-and-api-identity.md +9 -0
- package/agent/claude/rules/vapi-studio-best-practices.md +36 -0
- package/agent/cursor/ui-and-api-identity.mdc +16 -0
- package/agent/cursor/vapi-studio-best-practices.mdc +43 -0
- package/dist/adapters/vapi/vapi-sse.compiler.d.ts +61 -0
- package/dist/adapters/vapi/vapi-sse.compiler.d.ts.map +1 -0
- package/dist/adapters/vapi/vapi-sse.compiler.js +396 -0
- package/dist/adapters/vapi/vapi-sse.compiler.js.map +1 -0
- package/dist/analytics/analytics-tags.d.ts +60 -0
- package/dist/analytics/analytics-tags.d.ts.map +1 -0
- package/dist/analytics/analytics-tags.js +27 -0
- package/dist/analytics/analytics-tags.js.map +1 -0
- package/dist/brain/adapters/chatgpt-brain.adapter.d.ts +27 -0
- package/dist/brain/adapters/chatgpt-brain.adapter.d.ts.map +1 -0
- package/dist/brain/adapters/chatgpt-brain.adapter.js +94 -0
- package/dist/brain/adapters/chatgpt-brain.adapter.js.map +1 -0
- package/dist/brain/adapters/claude-brain.adapter.d.ts +24 -0
- package/dist/brain/adapters/claude-brain.adapter.d.ts.map +1 -0
- package/dist/brain/adapters/claude-brain.adapter.js +96 -0
- package/dist/brain/adapters/claude-brain.adapter.js.map +1 -0
- package/dist/brain/adapters/gemini-brain.adapter.d.ts +24 -0
- package/dist/brain/adapters/gemini-brain.adapter.d.ts.map +1 -0
- package/dist/brain/adapters/gemini-brain.adapter.js +106 -0
- package/dist/brain/adapters/gemini-brain.adapter.js.map +1 -0
- package/dist/brain/adapters/grok-brain.adapter.d.ts +24 -0
- package/dist/brain/adapters/grok-brain.adapter.d.ts.map +1 -0
- package/dist/brain/adapters/grok-brain.adapter.js +90 -0
- package/dist/brain/adapters/grok-brain.adapter.js.map +1 -0
- package/dist/brain/adapters/json-llm-brain.base.d.ts +63 -0
- package/dist/brain/adapters/json-llm-brain.base.d.ts.map +1 -0
- package/dist/brain/adapters/json-llm-brain.base.js +511 -0
- package/dist/brain/adapters/json-llm-brain.base.js.map +1 -0
- package/dist/brain/adapters/mock-brain.adapter.d.ts +32 -0
- package/dist/brain/adapters/mock-brain.adapter.d.ts.map +1 -0
- package/dist/brain/adapters/mock-brain.adapter.js +201 -0
- package/dist/brain/adapters/mock-brain.adapter.js.map +1 -0
- package/dist/brain/adapters/mock-provider-brains.adapter.d.ts +22 -0
- package/dist/brain/adapters/mock-provider-brains.adapter.d.ts.map +1 -0
- package/dist/brain/adapters/mock-provider-brains.adapter.js +48 -0
- package/dist/brain/adapters/mock-provider-brains.adapter.js.map +1 -0
- package/dist/brain/brain-clarify.d.ts +75 -0
- package/dist/brain/brain-clarify.d.ts.map +1 -0
- package/dist/brain/brain-clarify.js +146 -0
- package/dist/brain/brain-clarify.js.map +1 -0
- package/dist/brain/brain-config.d.ts +20 -0
- package/dist/brain/brain-config.d.ts.map +1 -0
- package/dist/brain/brain-config.js +20 -0
- package/dist/brain/brain-config.js.map +1 -0
- package/dist/brain/brain-judge.d.ts +68 -0
- package/dist/brain/brain-judge.d.ts.map +1 -0
- package/dist/brain/brain-judge.js +111 -0
- package/dist/brain/brain-judge.js.map +1 -0
- package/dist/brain/brain-ranking.d.ts +41 -0
- package/dist/brain/brain-ranking.d.ts.map +1 -0
- package/dist/brain/brain-ranking.js +103 -0
- package/dist/brain/brain-ranking.js.map +1 -0
- package/dist/brain/brain-usage.tracker.d.ts +48 -0
- package/dist/brain/brain-usage.tracker.d.ts.map +1 -0
- package/dist/brain/brain-usage.tracker.js +106 -0
- package/dist/brain/brain-usage.tracker.js.map +1 -0
- package/dist/brain/brain.port.d.ts +63 -0
- package/dist/brain/brain.port.d.ts.map +1 -0
- package/dist/brain/brain.port.js +7 -0
- package/dist/brain/brain.port.js.map +1 -0
- package/dist/brain/brain.service.d.ts +14 -0
- package/dist/brain/brain.service.d.ts.map +1 -0
- package/dist/brain/brain.service.js +27 -0
- package/dist/brain/brain.service.js.map +1 -0
- package/dist/brain/claude-cheap-models.d.ts +18 -0
- package/dist/brain/claude-cheap-models.d.ts.map +1 -0
- package/dist/brain/claude-cheap-models.js +53 -0
- package/dist/brain/claude-cheap-models.js.map +1 -0
- package/dist/brain/gemini-cheap-models.d.ts +18 -0
- package/dist/brain/gemini-cheap-models.d.ts.map +1 -0
- package/dist/brain/gemini-cheap-models.js +53 -0
- package/dist/brain/gemini-cheap-models.js.map +1 -0
- package/dist/brain/grok-cheap-models.d.ts +18 -0
- package/dist/brain/grok-cheap-models.d.ts.map +1 -0
- package/dist/brain/grok-cheap-models.js +53 -0
- package/dist/brain/grok-cheap-models.js.map +1 -0
- package/dist/brain/llm-model-pricing.d.ts +29 -0
- package/dist/brain/llm-model-pricing.d.ts.map +1 -0
- package/dist/brain/llm-model-pricing.js +38 -0
- package/dist/brain/llm-model-pricing.js.map +1 -0
- package/dist/brain/openai-cheap-models.d.ts +34 -0
- package/dist/brain/openai-cheap-models.d.ts.map +1 -0
- package/dist/brain/openai-cheap-models.js +72 -0
- package/dist/brain/openai-cheap-models.js.map +1 -0
- package/dist/brain/prompt-injection-guard.d.ts +34 -0
- package/dist/brain/prompt-injection-guard.d.ts.map +1 -0
- package/dist/brain/prompt-injection-guard.js +109 -0
- package/dist/brain/prompt-injection-guard.js.map +1 -0
- package/dist/channel/channel-tools.d.ts +72 -0
- package/dist/channel/channel-tools.d.ts.map +1 -0
- package/dist/channel/channel-tools.js +131 -0
- package/dist/channel/channel-tools.js.map +1 -0
- package/dist/conversation/call-turn-queue.d.ts +64 -0
- package/dist/conversation/call-turn-queue.d.ts.map +1 -0
- package/dist/conversation/call-turn-queue.js +156 -0
- package/dist/conversation/call-turn-queue.js.map +1 -0
- package/dist/conversation/conversation-bootstrap.service.d.ts +60 -0
- package/dist/conversation/conversation-bootstrap.service.d.ts.map +1 -0
- package/dist/conversation/conversation-bootstrap.service.js +383 -0
- package/dist/conversation/conversation-bootstrap.service.js.map +1 -0
- package/dist/conversation/conversation-entry.d.ts +38 -0
- package/dist/conversation/conversation-entry.d.ts.map +1 -0
- package/dist/conversation/conversation-entry.js +17 -0
- package/dist/conversation/conversation-entry.js.map +1 -0
- package/dist/conversation/conversation-history.d.ts +31 -0
- package/dist/conversation/conversation-history.d.ts.map +1 -0
- package/dist/conversation/conversation-history.js +53 -0
- package/dist/conversation/conversation-history.js.map +1 -0
- package/dist/conversation/conversation-limits.d.ts +49 -0
- package/dist/conversation/conversation-limits.d.ts.map +1 -0
- package/dist/conversation/conversation-limits.js +44 -0
- package/dist/conversation/conversation-limits.js.map +1 -0
- package/dist/conversation/conversation-resume.service.d.ts +39 -0
- package/dist/conversation/conversation-resume.service.d.ts.map +1 -0
- package/dist/conversation/conversation-resume.service.js +234 -0
- package/dist/conversation/conversation-resume.service.js.map +1 -0
- package/dist/conversation/conversation-schema.d.ts +23 -0
- package/dist/conversation/conversation-schema.d.ts.map +1 -0
- package/dist/conversation/conversation-schema.js +3 -0
- package/dist/conversation/conversation-schema.js.map +1 -0
- package/dist/conversation/listen-expectation.d.ts +145 -0
- package/dist/conversation/listen-expectation.d.ts.map +1 -0
- package/dist/conversation/listen-expectation.js +219 -0
- package/dist/conversation/listen-expectation.js.map +1 -0
- package/dist/conversation/listen-timeout.d.ts +42 -0
- package/dist/conversation/listen-timeout.d.ts.map +1 -0
- package/dist/conversation/listen-timeout.js +57 -0
- package/dist/conversation/listen-timeout.js.map +1 -0
- package/dist/conversation/supervised-conversation.d.ts +64 -0
- package/dist/conversation/supervised-conversation.d.ts.map +1 -0
- package/dist/conversation/supervised-conversation.js +198 -0
- package/dist/conversation/supervised-conversation.js.map +1 -0
- package/dist/conversation/supervised-conversation.registry.d.ts +14 -0
- package/dist/conversation/supervised-conversation.registry.d.ts.map +1 -0
- package/dist/conversation/supervised-conversation.registry.js +47 -0
- package/dist/conversation/supervised-conversation.registry.js.map +1 -0
- package/dist/conversation/types.d.ts +52 -0
- package/dist/conversation/types.d.ts.map +1 -0
- package/dist/conversation/types.js +3 -0
- package/dist/conversation/types.js.map +1 -0
- package/dist/events/conversation-console.d.ts +17 -0
- package/dist/events/conversation-console.d.ts.map +1 -0
- package/dist/events/conversation-console.js +863 -0
- package/dist/events/conversation-console.js.map +1 -0
- package/dist/events/daily-log.driver.d.ts +35 -0
- package/dist/events/daily-log.driver.d.ts.map +1 -0
- package/dist/events/daily-log.driver.js +206 -0
- package/dist/events/daily-log.driver.js.map +1 -0
- package/dist/events/event.service.d.ts +24 -0
- package/dist/events/event.service.d.ts.map +1 -0
- package/dist/events/event.service.js +141 -0
- package/dist/events/event.service.js.map +1 -0
- package/dist/events/route-forensics.d.ts +38 -0
- package/dist/events/route-forensics.d.ts.map +1 -0
- package/dist/events/route-forensics.js +85 -0
- package/dist/events/route-forensics.js.map +1 -0
- package/dist/events/studio-event-bus.d.ts +17 -0
- package/dist/events/studio-event-bus.d.ts.map +1 -0
- package/dist/events/studio-event-bus.js +37 -0
- package/dist/events/studio-event-bus.js.map +1 -0
- package/dist/events/studio-event.d.ts +44 -0
- package/dist/events/studio-event.d.ts.map +1 -0
- package/dist/events/studio-event.js +27 -0
- package/dist/events/studio-event.js.map +1 -0
- package/dist/flow/condition.d.ts +35 -0
- package/dist/flow/condition.d.ts.map +1 -0
- package/dist/flow/condition.js +246 -0
- package/dist/flow/condition.js.map +1 -0
- package/dist/flow/flow-loader.d.ts +71 -0
- package/dist/flow/flow-loader.d.ts.map +1 -0
- package/dist/flow/flow-loader.js +182 -0
- package/dist/flow/flow-loader.js.map +1 -0
- package/dist/forms/form-html.d.ts +30 -0
- package/dist/forms/form-html.d.ts.map +1 -0
- package/dist/forms/form-html.js +130 -0
- package/dist/forms/form-html.js.map +1 -0
- package/dist/forms/form.tokens.d.ts +3 -0
- package/dist/forms/form.tokens.d.ts.map +1 -0
- package/dist/forms/form.tokens.js +6 -0
- package/dist/forms/form.tokens.js.map +1 -0
- package/dist/forms/form.types.d.ts +81 -0
- package/dist/forms/form.types.d.ts.map +1 -0
- package/dist/forms/form.types.js +36 -0
- package/dist/forms/form.types.js.map +1 -0
- package/dist/forms/forms.service.d.ts +52 -0
- package/dist/forms/forms.service.d.ts.map +1 -0
- package/dist/forms/forms.service.js +434 -0
- package/dist/forms/forms.service.js.map +1 -0
- package/dist/forms/noop-form-dispose.adapter.d.ts +12 -0
- package/dist/forms/noop-form-dispose.adapter.d.ts.map +1 -0
- package/dist/forms/noop-form-dispose.adapter.js +27 -0
- package/dist/forms/noop-form-dispose.adapter.js.map +1 -0
- package/dist/forms/twilio-sms-form-dispose.adapter.d.ts +33 -0
- package/dist/forms/twilio-sms-form-dispose.adapter.d.ts.map +1 -0
- package/dist/forms/twilio-sms-form-dispose.adapter.js +125 -0
- package/dist/forms/twilio-sms-form-dispose.adapter.js.map +1 -0
- package/dist/forms/twilio-sms.env.d.ts +62 -0
- package/dist/forms/twilio-sms.env.d.ts.map +1 -0
- package/dist/forms/twilio-sms.env.js +147 -0
- package/dist/forms/twilio-sms.env.js.map +1 -0
- package/dist/forms/twilio-sms.sender.d.ts +27 -0
- package/dist/forms/twilio-sms.sender.d.ts.map +1 -0
- package/dist/forms/twilio-sms.sender.js +75 -0
- package/dist/forms/twilio-sms.sender.js.map +1 -0
- package/dist/identity/email-parse.d.ts +20 -0
- package/dist/identity/email-parse.d.ts.map +1 -0
- package/dist/identity/email-parse.js +102 -0
- package/dist/identity/email-parse.js.map +1 -0
- package/dist/identity/index.d.ts +17 -0
- package/dist/identity/index.d.ts.map +1 -0
- package/dist/identity/index.js +23 -0
- package/dist/identity/index.js.map +1 -0
- package/dist/index.d.ts +108 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +300 -0
- package/dist/index.js.map +1 -0
- package/dist/integrations/integration-client.d.ts +41 -0
- package/dist/integrations/integration-client.d.ts.map +1 -0
- package/dist/integrations/integration-client.js +152 -0
- package/dist/integrations/integration-client.js.map +1 -0
- package/dist/integrations/jwt-hmac.d.ts +33 -0
- package/dist/integrations/jwt-hmac.d.ts.map +1 -0
- package/dist/integrations/jwt-hmac.js +108 -0
- package/dist/integrations/jwt-hmac.js.map +1 -0
- package/dist/intention/code-intention.d.ts +94 -0
- package/dist/intention/code-intention.d.ts.map +1 -0
- package/dist/intention/code-intention.js +89 -0
- package/dist/intention/code-intention.js.map +1 -0
- package/dist/intention/intention-constants.d.ts +37 -0
- package/dist/intention/intention-constants.d.ts.map +1 -0
- package/dist/intention/intention-constants.js +37 -0
- package/dist/intention/intention-constants.js.map +1 -0
- package/dist/intentions/standard-intentions.d.ts +26 -0
- package/dist/intentions/standard-intentions.d.ts.map +1 -0
- package/dist/intentions/standard-intentions.js +28 -0
- package/dist/intentions/standard-intentions.js.map +1 -0
- package/dist/node/agent-node.d.ts +156 -0
- package/dist/node/agent-node.d.ts.map +1 -0
- package/dist/node/agent-node.js +179 -0
- package/dist/node/agent-node.js.map +1 -0
- package/dist/node/catch-directive.d.ts +33 -0
- package/dist/node/catch-directive.d.ts.map +1 -0
- package/dist/node/catch-directive.js +41 -0
- package/dist/node/catch-directive.js.map +1 -0
- package/dist/output/conversation-output.d.ts +113 -0
- package/dist/output/conversation-output.d.ts.map +1 -0
- package/dist/output/conversation-output.js +100 -0
- package/dist/output/conversation-output.js.map +1 -0
- package/dist/persistence/conversation.entity.d.ts +27 -0
- package/dist/persistence/conversation.entity.d.ts.map +1 -0
- package/dist/persistence/conversation.entity.js +115 -0
- package/dist/persistence/conversation.entity.js.map +1 -0
- package/dist/persistence/conversation.repository.d.ts +82 -0
- package/dist/persistence/conversation.repository.d.ts.map +1 -0
- package/dist/persistence/conversation.repository.js +277 -0
- package/dist/persistence/conversation.repository.js.map +1 -0
- package/dist/persistence/project.entity.d.ts +12 -0
- package/dist/persistence/project.entity.d.ts.map +1 -0
- package/dist/persistence/project.entity.js +46 -0
- package/dist/persistence/project.entity.js.map +1 -0
- package/dist/persistence/project.repository.d.ts +17 -0
- package/dist/persistence/project.repository.d.ts.map +1 -0
- package/dist/persistence/project.repository.js +69 -0
- package/dist/persistence/project.repository.js.map +1 -0
- package/dist/persistence/provider-ingress.entity.d.ts +18 -0
- package/dist/persistence/provider-ingress.entity.d.ts.map +1 -0
- package/dist/persistence/provider-ingress.entity.js +91 -0
- package/dist/persistence/provider-ingress.entity.js.map +1 -0
- package/dist/persistence/provider-ingress.repository.d.ts +21 -0
- package/dist/persistence/provider-ingress.repository.d.ts.map +1 -0
- package/dist/persistence/provider-ingress.repository.js +76 -0
- package/dist/persistence/provider-ingress.repository.js.map +1 -0
- package/dist/studio-ui/assets/index-BGd2OhLv.js +84 -0
- package/dist/studio-ui/assets/index-BGd2OhLv.js.map +1 -0
- package/dist/studio-ui/assets/index-DnJos5x2.css +1 -0
- package/dist/studio-ui/index.html +13 -0
- package/dist/studio-ui-mount/index.d.ts +6 -0
- package/dist/studio-ui-mount/index.d.ts.map +1 -0
- package/dist/studio-ui-mount/index.js +13 -0
- package/dist/studio-ui-mount/index.js.map +1 -0
- package/dist/studio-ui-mount/resolve-studio-ui-root.d.ts +6 -0
- package/dist/studio-ui-mount/resolve-studio-ui-root.d.ts.map +1 -0
- package/dist/studio-ui-mount/resolve-studio-ui-root.js +25 -0
- package/dist/studio-ui-mount/resolve-studio-ui-root.js.map +1 -0
- package/dist/studio-ui-mount/studio-spa.controller.d.ts +18 -0
- package/dist/studio-ui-mount/studio-spa.controller.d.ts.map +1 -0
- package/dist/studio-ui-mount/studio-spa.controller.js +57 -0
- package/dist/studio-ui-mount/studio-spa.controller.js.map +1 -0
- package/dist/studio-ui-mount/studio-ui.module.d.ts +15 -0
- package/dist/studio-ui-mount/studio-ui.module.d.ts.map +1 -0
- package/dist/studio-ui-mount/studio-ui.module.js +47 -0
- package/dist/studio-ui-mount/studio-ui.module.js.map +1 -0
- package/dist/studio-ui-mount/studio-ui.tokens.d.ts +2 -0
- package/dist/studio-ui-mount/studio-ui.tokens.d.ts.map +1 -0
- package/dist/studio-ui-mount/studio-ui.tokens.js +5 -0
- package/dist/studio-ui-mount/studio-ui.tokens.js.map +1 -0
- package/dist/supervisor/supervisor-cascade.d.ts +55 -0
- package/dist/supervisor/supervisor-cascade.d.ts.map +1 -0
- package/dist/supervisor/supervisor-cascade.js +261 -0
- package/dist/supervisor/supervisor-cascade.js.map +1 -0
- package/dist/supervisor/supervisor-engine.d.ts +9 -0
- package/dist/supervisor/supervisor-engine.d.ts.map +1 -0
- package/dist/supervisor/supervisor-engine.js +64 -0
- package/dist/supervisor/supervisor-engine.js.map +1 -0
- package/dist/supervisor/supervisor-limits.d.ts +8 -0
- package/dist/supervisor/supervisor-limits.d.ts.map +1 -0
- package/dist/supervisor/supervisor-limits.js +36 -0
- package/dist/supervisor/supervisor-limits.js.map +1 -0
- package/dist/supervisor/supervisor-node-exec.d.ts +39 -0
- package/dist/supervisor/supervisor-node-exec.d.ts.map +1 -0
- package/dist/supervisor/supervisor-node-exec.js +201 -0
- package/dist/supervisor/supervisor-node-exec.js.map +1 -0
- package/dist/supervisor/supervisor-orchestration.d.ts +24 -0
- package/dist/supervisor/supervisor-orchestration.d.ts.map +1 -0
- package/dist/supervisor/supervisor-orchestration.js +395 -0
- package/dist/supervisor/supervisor-orchestration.js.map +1 -0
- package/dist/supervisor/supervisor-portal.d.ts +75 -0
- package/dist/supervisor/supervisor-portal.d.ts.map +1 -0
- package/dist/supervisor/supervisor-portal.js +320 -0
- package/dist/supervisor/supervisor-portal.js.map +1 -0
- package/dist/supervisor/supervisor-route.d.ts +53 -0
- package/dist/supervisor/supervisor-route.d.ts.map +1 -0
- package/dist/supervisor/supervisor-route.js +308 -0
- package/dist/supervisor/supervisor-route.js.map +1 -0
- package/dist/supervisor/supervisor-special-turns.d.ts +34 -0
- package/dist/supervisor/supervisor-special-turns.d.ts.map +1 -0
- package/dist/supervisor/supervisor-special-turns.js +308 -0
- package/dist/supervisor/supervisor-special-turns.js.map +1 -0
- package/dist/supervisor/supervisor.d.ts +44 -0
- package/dist/supervisor/supervisor.d.ts.map +1 -0
- package/dist/supervisor/supervisor.js +79 -0
- package/dist/supervisor/supervisor.js.map +1 -0
- package/dist/supervisor/supervisor.types.d.ts +71 -0
- package/dist/supervisor/supervisor.types.d.ts.map +1 -0
- package/dist/supervisor/supervisor.types.js +8 -0
- package/dist/supervisor/supervisor.types.js.map +1 -0
- package/dist/tasks/studio-task-queue.d.ts +93 -0
- package/dist/tasks/studio-task-queue.d.ts.map +1 -0
- package/dist/tasks/studio-task-queue.js +226 -0
- package/dist/tasks/studio-task-queue.js.map +1 -0
- package/dist/util/studio-env.d.ts +7 -0
- package/dist/util/studio-env.d.ts.map +1 -0
- package/dist/util/studio-env.js +32 -0
- package/dist/util/studio-env.js.map +1 -0
- package/dist/vapi-studio.module.d.ts +55 -0
- package/dist/vapi-studio.module.d.ts.map +1 -0
- package/dist/vapi-studio.module.js +166 -0
- package/dist/vapi-studio.module.js.map +1 -0
- package/dist/workflow/workflow-handoff.service.d.ts +29 -0
- package/dist/workflow/workflow-handoff.service.d.ts.map +1 -0
- package/dist/workflow/workflow-handoff.service.js +165 -0
- package/dist/workflow/workflow-handoff.service.js.map +1 -0
- package/dist/workflow/workflow-loader.d.ts +48 -0
- package/dist/workflow/workflow-loader.d.ts.map +1 -0
- package/dist/workflow/workflow-loader.js +87 -0
- package/dist/workflow/workflow-loader.js.map +1 -0
- package/docs/README.md +69 -0
- package/docs/assets/deterministic-assistant-flow.svg +128 -0
- package/docs/assets/vapi-studio-stack.svg +26 -0
- package/docs/best-practices/README.md +37 -0
- package/docs/best-practices/brain-and-prompt-injection.md +70 -0
- package/docs/best-practices/conversation-design.md +152 -0
- package/docs/best-practices/debugging-and-observability.md +49 -0
- package/docs/best-practices/documentation-layers.md +31 -0
- package/docs/best-practices/identity-and-pii.md +66 -0
- package/docs/best-practices/nodes-and-listens.md +116 -0
- package/docs/best-practices/ui-and-api-identity.md +51 -0
- package/docs/building-apps/creating-an-app.md +59 -0
- package/docs/building-apps/example-apps.md +23 -0
- package/docs/building-apps/overview.md +27 -0
- package/docs/getting-started/installation.md +52 -0
- package/docs/getting-started/introduction.md +23 -0
- package/docs/getting-started/quick-start.md +23 -0
- package/docs/guide/concepts.md +103 -0
- package/docs/guide/forms.md +102 -0
- package/docs/guide/handbook.md +21 -0
- package/docs/guide/introduction.md +56 -0
- package/docs/guide/module-setup.md +68 -0
- package/docs/guide/vapi-adapter.md +70 -0
- package/docs/guide/workflow-squad.md +59 -0
- package/docs/guides/agents.md +85 -0
- package/docs/guides/docker-compose.events.stub.yaml +27 -0
- package/docs/guides/documentation.md +13 -0
- package/docs/guides/extending-events.md +155 -0
- package/docs/guides/node-conventions.md +59 -0
- package/docs/guides/speckit.md +56 -0
- package/docs/reference/data-model.md +79 -0
- package/docs/reference/environment-variables.md +60 -0
- package/docs/reference/events-and-logging.md +137 -0
- package/docs/reference/flow-schema.md +79 -0
- package/docs/reference/runtime-api.md +708 -0
- package/docs/reference/security.md +41 -0
- package/docs/reference/standard-intentions.md +49 -0
- package/docs/reference/testing.md +15 -0
- package/docs/samples/events/nest-listener.example.ts +17 -0
- package/docs/samples/events/redis-bridge.example.ts +44 -0
- package/package.json +81 -0
- package/scripts/fix-access-modifiers.mjs +85 -0
- package/scripts/install-agent-refs.cjs +196 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
export { STANDARD_INTENTIONS } from './intentions/standard-intentions';
|
|
2
|
+
export type { StandardIntention } from './intentions/standard-intentions';
|
|
3
|
+
export { VapiStudioModule } from './vapi-studio.module';
|
|
4
|
+
export type { VapiStudioModuleOptions } from './vapi-studio.module';
|
|
5
|
+
export { AgentNode, conversationViewFromRuntime, nodeContextFromRuntime, } from './node/agent-node';
|
|
6
|
+
export type { NodeContext, ConversationView, AgentNodeRegistry, } from './node/agent-node';
|
|
7
|
+
export { STUDIO_NODE_REGISTRY } from './node/agent-node';
|
|
8
|
+
export { CodeIntention, intentionContextFromRuntime, STUDIO_INTENTION_REGISTRY, INTENTION_CASCADE_PHASE, INTENTION_RUN_KIND, ROUTE_RESOLVED_VIA, DEFAULT_FORCE_INTENTION_PRIORITY, } from './intention/code-intention';
|
|
9
|
+
export type { IntentionCascadePhase, IntentionContext, IntentionRunResult, IntentionRunKind, RouteResolvedVia, CodeIntentionRegistry, } from './intention/code-intention';
|
|
10
|
+
export { restartNode, forceIntention, catchResult, rethrowCatch, FlowUncertainError, } from './node/catch-directive';
|
|
11
|
+
export type { CatchDirective } from './node/catch-directive';
|
|
12
|
+
export { BufferedConversationOutput, } from './output/conversation-output';
|
|
13
|
+
export type { ConversationOutput, NodeResult, OutputAction, OutputKind, ToolCallRequest, } from './output/conversation-output';
|
|
14
|
+
export { SupervisedConversation } from './conversation/supervised-conversation';
|
|
15
|
+
export { SupervisedConversationRegistry } from './conversation/supervised-conversation.registry';
|
|
16
|
+
export { STUDIO_CONVERSATION_LIMITS, DEFAULT_MAX_CONVERSATION_TURNS, DEFAULT_MAX_CONVERSATION_DURATION_MS, HARD_MAX_CONVERSATION_TURNS, HARD_MAX_CONVERSATION_DURATION_MS, DEFAULT_CONVERSATION_LIMIT_MESSAGE, resolveConversationLimits, evaluateConversationLimits, } from './conversation/conversation-limits';
|
|
17
|
+
export type { ConversationLimitsConfig, ResolvedConversationLimits, ConversationLimitReason, } from './conversation/conversation-limits';
|
|
18
|
+
export { CallTurnQueue, CallTurnQueueRegistry, coalesceUserUtterances, } from './conversation/call-turn-queue';
|
|
19
|
+
export type { TurnQueueWorkMeta } from './conversation/call-turn-queue';
|
|
20
|
+
export { ConversationBootstrapService } from './conversation/conversation-bootstrap.service';
|
|
21
|
+
export { ConversationResumeService, DEFAULT_RESUME_WITHIN_MS, } from './conversation/conversation-resume.service';
|
|
22
|
+
export type { ResumePeekResult } from './conversation/conversation-resume.service';
|
|
23
|
+
export { CONVERSATION_ENTRY_POINT, DefaultConversationEntry, } from './conversation/conversation-entry';
|
|
24
|
+
export type { Variables, ConversationEntryPoint, ConversationEntryInput, ConversationHookContext, } from './conversation/conversation-entry';
|
|
25
|
+
export type { ConversationSchema, DefaultConversationSchema, SchemaVariables, SchemaMemory, } from './conversation/conversation-schema';
|
|
26
|
+
export { DEFAULT_INTENTION_PRIORITY, emptyConversationHistory, appendChat, appendNodeVisit, countNodeVisits, lastVisitedNodeId, compactText, } from './conversation/conversation-history';
|
|
27
|
+
export type { ConversationHistory, CompactChatMessage, NodeVisit, } from './conversation/conversation-history';
|
|
28
|
+
export type { ConversationStatus, IntentionCandidate, PortalState, SupervisedStatus, TurnState, } from './conversation/types';
|
|
29
|
+
export { Supervisor } from './supervisor/supervisor';
|
|
30
|
+
export type { TurnExecutionResult } from './supervisor/supervisor';
|
|
31
|
+
export { FlowLoader, CONDITION_GOTO_PREFIX, conditionGotoIntention, parseConditionGotoNodeId } from './flow/flow-loader';
|
|
32
|
+
export type { FlowDefinition, FlowNodeDefinition, RawFlowFile, CompiledConditionTransition, } from './flow/flow-loader';
|
|
33
|
+
export { compileCondition, evaluateCondition, } from './flow/condition';
|
|
34
|
+
export type { ConditionContext, FlowConditionTransition, } from './flow/condition';
|
|
35
|
+
export { BRAIN_SERVICE, BRAIN_ADAPTER, MockBrainAdapter, MockBrainService, MockChatGptBrainAdapter, MockClaudeBrainAdapter, MockGeminiBrainAdapter, MockGrokBrainAdapter, ChatGptBrainAdapter, ClaudeBrainAdapter, GeminiBrainAdapter, GrokBrainAdapter, } from './brain/brain.service';
|
|
36
|
+
export type { BrainService, BrainAdapter, BrainScanInput, BrainScanResult, } from './brain/brain.service';
|
|
37
|
+
export { BrainUsageTracker } from './brain/brain-usage.tracker';
|
|
38
|
+
export type { BrainUsageRecord, BrainUsageSummary, BrainCallKind, } from './brain/brain-usage.tracker';
|
|
39
|
+
export { DEFAULT_CHEAP_OPENAI_MODEL, CHEAP_OPENAI_MODELS, CHEAP_OPENAI_MODEL_IDS, resolveCheapOpenAiModel, isCheapOpenAiModel, } from './brain/openai-cheap-models';
|
|
40
|
+
export type { CheapOpenAiModelId, CheapModelPricing, } from './brain/openai-cheap-models';
|
|
41
|
+
export { DEFAULT_CHEAP_CLAUDE_MODEL, CHEAP_CLAUDE_MODELS, CHEAP_CLAUDE_MODEL_IDS, resolveCheapClaudeModel, isCheapClaudeModel, } from './brain/claude-cheap-models';
|
|
42
|
+
export type { CheapClaudeModelId, CheapClaudeModelPricing, } from './brain/claude-cheap-models';
|
|
43
|
+
export { DEFAULT_CHEAP_GEMINI_MODEL, CHEAP_GEMINI_MODELS, CHEAP_GEMINI_MODEL_IDS, resolveCheapGeminiModel, isCheapGeminiModel, } from './brain/gemini-cheap-models';
|
|
44
|
+
export type { CheapGeminiModelId, CheapGeminiModelPricing, } from './brain/gemini-cheap-models';
|
|
45
|
+
export { DEFAULT_CHEAP_GROK_MODEL, CHEAP_GROK_MODELS, CHEAP_GROK_MODEL_IDS, resolveCheapGrokModel, isCheapGrokModel, } from './brain/grok-cheap-models';
|
|
46
|
+
export type { CheapGrokModelId, CheapGrokModelPricing, } from './brain/grok-cheap-models';
|
|
47
|
+
export { estimateUsdCost, estimateUsdFromPricing, lookupModelPricing, } from './brain/llm-model-pricing';
|
|
48
|
+
export type { LlmModelPricing, TokenUsage } from './brain/llm-model-pricing';
|
|
49
|
+
export { STUDIO_BRAIN_CONFIG, resolveStudioBrainConfig } from './brain/brain-config';
|
|
50
|
+
export type { StudioBrainConfig, ResolvedStudioBrainConfig, } from './brain/brain-config';
|
|
51
|
+
export { detectUserSpeechSeries } from './brain/adapters/json-llm-brain.base';
|
|
52
|
+
export { clarifiableInputToString, filterClarifyAnswer, emptyAnswerFromInterface, normalizeClarifyResult, throwClarifyCannotAnswer, isClarifyCannotAnswerError, ClarifyCannotAnswerError, STUDIO_CLARIFY_CANNOT_ANSWER, } from './brain/brain-clarify';
|
|
53
|
+
export type { ClarifiableInput, BrainAnswerField, BrainAnswerInterface, BrainClarifyRequest, BrainClarifyResult, } from './brain/brain-clarify';
|
|
54
|
+
export { DEFAULT_BRAIN_JUDGE_CONFIDENCE_THRESHOLD, judgeContextToString, normalizeJudgeResult, normalizeReasoning, clampConfidence, formatConfidence6, isConfidence6, CONFIDENCE_6_PATTERN, resolveJudgeConfidenceThreshold, } from './brain/brain-judge';
|
|
55
|
+
export type { BrainJudgeRequest, BrainJudgeOptions, BrainJudgeResult, Confidence6, } from './brain/brain-judge';
|
|
56
|
+
export { DEFAULT_BRAIN_CONFIDENCE_THRESHOLD, CONFIDENCE_DECIMALS, allBelowConfidenceThreshold, resolveConfidenceThreshold, roundConfidence, clamp01, scoresToRankedCandidates, compareIntentionWalkOrder, orderIntentionsForWalk, selectWalkableIntentions, resolveIntentionPriority, } from './brain/brain-ranking';
|
|
57
|
+
export type { BrainIntentionOption, RankedIntentionScore, } from './brain/brain-ranking';
|
|
58
|
+
export { brainUntrustedInputRules, looksLikePromptInjection, utteranceLooksLikePromptInjection, sanitizeExtractedFieldValue, wrapUntrustedUserText, MAX_EXTRACTED_STRING_LENGTH, } from './brain/prompt-injection-guard';
|
|
59
|
+
export { applyListenBoosts, mergeSayAndListenOptions, missingRequiredExtractKeys, mockExtractFromUserText, mockExtractPersonName, tryResolveListenIntention, } from './conversation/listen-expectation';
|
|
60
|
+
export type { ListenExpectation, ListenIntentionBoost, ListenExtractField, ListenExtractSpec, ListenExtractHandler, ListenExtractApplyContext, ListenResolveIntention, SayAndListenOptions, } from './conversation/listen-expectation';
|
|
61
|
+
export { DEFAULT_LISTEN_TIMEOUT_SECONDS, MIN_LISTEN_TIMEOUT_SECONDS, MAX_LISTEN_TIMEOUT_SECONDS, clampListenTimeoutSeconds, resolveListenTimeoutSeconds, listenTimeoutSecondsToMs, listenTimeoutToVapiStartSpeakingPlan, } from './conversation/listen-timeout';
|
|
62
|
+
export type { VapiStartSpeakingPlanFromListenTimeout } from './conversation/listen-timeout';
|
|
63
|
+
export { EventService } from './events/event.service';
|
|
64
|
+
export { STUDIO_EVENT_LISTENERS, STUDIO_EVENTS, } from './events/studio-event';
|
|
65
|
+
export type { StudioEvent, StudioEventInput, StudioEventListener, StudioEventType, } from './events/studio-event';
|
|
66
|
+
export { StudioTaskQueue, createStudioTasksApi, studioTaskQueueForRuntime, STUDIO_TASK_EVENTS, STUDIO_TASK_QUEUE_META, } from './tasks/studio-task-queue';
|
|
67
|
+
export type { StudioTaskHandle, StudioTaskMode, StudioTaskSpec, StudioTaskStatus, StudioTaskRequireRef, StudioTasksApi, } from './tasks/studio-task-queue';
|
|
68
|
+
export { STUDIO_EVENT_BUS_CHANNEL, studioEventBus, onStudioEvent, emitStudioEventBus, } from './events/studio-event-bus';
|
|
69
|
+
export type { StudioEventBusHandler } from './events/studio-event-bus';
|
|
70
|
+
export { printConversationConsole, snapshotUserMemory, isConversationConsoleEnabled, } from './events/conversation-console';
|
|
71
|
+
export type { StudioLogLevel } from './events/conversation-console';
|
|
72
|
+
export { beginCallLog, appendDailyLog, formatCallLogHeader, dailyLogFileName, logYmd, resolveLogDays, resolveLogDir, shouldPurgeDailyFile, purgeOldDailyLogs, flushDailyLog, resetDailyLogState, rememberCallerPhone, stripAnsi, isFileLogEnabled, } from './events/daily-log.driver';
|
|
73
|
+
export { ConversationEntity } from './persistence/conversation.entity';
|
|
74
|
+
export { ConversationRepository, extractCallerIdFromBags } from './persistence/conversation.repository';
|
|
75
|
+
export type { ResumableConversation } from './persistence/conversation.repository';
|
|
76
|
+
export { ANALYTICS_TAG_EVENT, normalizeAnalyticsFunnels, } from './analytics/analytics-tags';
|
|
77
|
+
export type { AnalyticsTagPayload, AnalyticsFunnelStep, AnalyticsFunnelDefinition, } from './analytics/analytics-tags';
|
|
78
|
+
export { ProviderIngressEntity } from './persistence/provider-ingress.entity';
|
|
79
|
+
export { ProviderIngressRepository } from './persistence/provider-ingress.repository';
|
|
80
|
+
export { ProjectEntity } from './persistence/project.entity';
|
|
81
|
+
export { ProjectRepository } from './persistence/project.repository';
|
|
82
|
+
export { IntegrationClient } from './integrations/integration-client';
|
|
83
|
+
export type { IntegrationRequest, IntegrationResponse, IntegrationRequestMeta, IntegrationHttpMethod, } from './integrations/integration-client';
|
|
84
|
+
export { INTEGRATION_SIGNATURE_HEADER, signHs256Jwt, verifyHs256Jwt, signIntegrationRequest, sha256Hex, canonicalRequestBody, readSecretEnv, } from './integrations/jwt-hmac';
|
|
85
|
+
export type { IntegrationJwtClaims } from './integrations/jwt-hmac';
|
|
86
|
+
export { VapiSseCompiler, extractNewestUserText, extractVapiCallId, extractVapiCallerNumber, extractToolFunctionNames, resolveEndCallToolName, resolveTransferCallToolName, resolveHandoffToolName, buildVapiHandoffToolArgs, hasAdvertisedHandoffTool, } from './adapters/vapi/vapi-sse.compiler';
|
|
87
|
+
export type { VapiStreamWriter, VapiToolLike } from './adapters/vapi/vapi-sse.compiler';
|
|
88
|
+
export { extractAdvertisedTools, extractToolResults, channelToolsApiFromList, CHANNEL_META, } from './channel/channel-tools';
|
|
89
|
+
export type { ChannelTool, ChannelToolResult, ChannelToolsApi, VapiTurnContext, } from './channel/channel-tools';
|
|
90
|
+
export { WorkflowLoader } from './workflow/workflow-loader';
|
|
91
|
+
export type { WorkflowDefinition, WorkflowModuleDefinition, WorkflowModuleKind, } from './workflow/workflow-loader';
|
|
92
|
+
export { WorkflowHandoffService } from './workflow/workflow-handoff.service';
|
|
93
|
+
export { FormsService } from './forms/forms.service';
|
|
94
|
+
export { FORM_DISPOSE_ADAPTER } from './forms/form.tokens';
|
|
95
|
+
export { NoopFormDisposeAdapter } from './forms/noop-form-dispose.adapter';
|
|
96
|
+
export { TwilioSmsFormDisposeAdapter } from './forms/twilio-sms-form-dispose.adapter';
|
|
97
|
+
export { TWILIO_SMS_ENV, readTwilioSmsConfig, resolveTwilioSmsConfig, twilioSmsCredentialsReady, normalizeSmsToE164, pickSmsDestination, pickSmsFormUrl, resolveSmsFormUrl, buildDefaultSmsBody, resolveSmsBody, } from './forms/twilio-sms.env';
|
|
98
|
+
export type { TwilioSmsConfig, TwilioSmsConfigStatus, TwilioSmsDisposeContext, } from './forms/twilio-sms.env';
|
|
99
|
+
export { createTwilioSmsSender, DryRunTwilioSmsSender, SdkTwilioSmsSender, } from './forms/twilio-sms.sender';
|
|
100
|
+
export type { TwilioSmsSender, TwilioSmsSendInput, TwilioSmsSendResult, } from './forms/twilio-sms.sender';
|
|
101
|
+
export { renderFormHtml, renderFormThanksHtml, renderFormGoneHtml, } from './forms/form-html';
|
|
102
|
+
export type { RenderFormHtmlOptions } from './forms/form-html';
|
|
103
|
+
export type { FormFieldType, FormFieldSpec, FormExposeSpec, FormValues, FormExposeHandle, FormDisposePayload, FormDisposeAdapter, } from './forms/form.types';
|
|
104
|
+
export { FormDeliverTimeoutError, FormFilloutTimeoutError, FormChannelUnavailableError, } from './forms/form.types';
|
|
105
|
+
export { StudioUiModule, mountStudioUiAssets, resolveStudioUiRoot, sendStudioIndex, STUDIO_UI_ROOT, } from './studio-ui-mount';
|
|
106
|
+
export type { StudioUiModuleOptions } from './studio-ui-mount';
|
|
107
|
+
export { EMAIL_EXTRACT_DESCRIPTION, collectedEmail, parseSpelledEmail, } from './identity';
|
|
108
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,YAAY,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAE1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,YAAY,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAEpE,OAAO,EACL,SAAS,EACT,2BAA2B,EAC3B,sBAAsB,GACvB,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACV,WAAW,EACX,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBA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|
package/dist/index.js
ADDED
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.compileCondition = exports.parseConditionGotoNodeId = exports.conditionGotoIntention = exports.CONDITION_GOTO_PREFIX = exports.FlowLoader = exports.Supervisor = exports.compactText = exports.lastVisitedNodeId = exports.countNodeVisits = exports.appendNodeVisit = exports.appendChat = exports.emptyConversationHistory = exports.DEFAULT_INTENTION_PRIORITY = exports.DefaultConversationEntry = exports.CONVERSATION_ENTRY_POINT = exports.DEFAULT_RESUME_WITHIN_MS = exports.ConversationResumeService = exports.ConversationBootstrapService = exports.coalesceUserUtterances = exports.CallTurnQueueRegistry = exports.CallTurnQueue = exports.evaluateConversationLimits = exports.resolveConversationLimits = exports.DEFAULT_CONVERSATION_LIMIT_MESSAGE = exports.HARD_MAX_CONVERSATION_DURATION_MS = exports.HARD_MAX_CONVERSATION_TURNS = exports.DEFAULT_MAX_CONVERSATION_DURATION_MS = exports.DEFAULT_MAX_CONVERSATION_TURNS = exports.STUDIO_CONVERSATION_LIMITS = exports.SupervisedConversationRegistry = exports.SupervisedConversation = exports.BufferedConversationOutput = exports.FlowUncertainError = exports.rethrowCatch = exports.catchResult = exports.forceIntention = exports.restartNode = exports.DEFAULT_FORCE_INTENTION_PRIORITY = exports.ROUTE_RESOLVED_VIA = exports.INTENTION_RUN_KIND = exports.INTENTION_CASCADE_PHASE = exports.STUDIO_INTENTION_REGISTRY = exports.intentionContextFromRuntime = exports.CodeIntention = exports.STUDIO_NODE_REGISTRY = exports.nodeContextFromRuntime = exports.conversationViewFromRuntime = exports.AgentNode = exports.VapiStudioModule = exports.STANDARD_INTENTIONS = void 0;
|
|
4
|
+
exports.judgeContextToString = exports.DEFAULT_BRAIN_JUDGE_CONFIDENCE_THRESHOLD = exports.STUDIO_CLARIFY_CANNOT_ANSWER = exports.ClarifyCannotAnswerError = exports.isClarifyCannotAnswerError = exports.throwClarifyCannotAnswer = exports.normalizeClarifyResult = exports.emptyAnswerFromInterface = exports.filterClarifyAnswer = exports.clarifiableInputToString = exports.detectUserSpeechSeries = exports.resolveStudioBrainConfig = exports.STUDIO_BRAIN_CONFIG = exports.lookupModelPricing = exports.estimateUsdFromPricing = exports.estimateUsdCost = exports.isCheapGrokModel = exports.resolveCheapGrokModel = exports.CHEAP_GROK_MODEL_IDS = exports.CHEAP_GROK_MODELS = exports.DEFAULT_CHEAP_GROK_MODEL = exports.isCheapGeminiModel = exports.resolveCheapGeminiModel = exports.CHEAP_GEMINI_MODEL_IDS = exports.CHEAP_GEMINI_MODELS = exports.DEFAULT_CHEAP_GEMINI_MODEL = exports.isCheapClaudeModel = exports.resolveCheapClaudeModel = exports.CHEAP_CLAUDE_MODEL_IDS = exports.CHEAP_CLAUDE_MODELS = exports.DEFAULT_CHEAP_CLAUDE_MODEL = exports.isCheapOpenAiModel = exports.resolveCheapOpenAiModel = exports.CHEAP_OPENAI_MODEL_IDS = exports.CHEAP_OPENAI_MODELS = exports.DEFAULT_CHEAP_OPENAI_MODEL = exports.BrainUsageTracker = exports.GrokBrainAdapter = exports.GeminiBrainAdapter = exports.ClaudeBrainAdapter = exports.ChatGptBrainAdapter = exports.MockGrokBrainAdapter = exports.MockGeminiBrainAdapter = exports.MockClaudeBrainAdapter = exports.MockChatGptBrainAdapter = exports.MockBrainService = exports.MockBrainAdapter = exports.BRAIN_ADAPTER = exports.BRAIN_SERVICE = exports.evaluateCondition = void 0;
|
|
5
|
+
exports.printConversationConsole = exports.emitStudioEventBus = exports.onStudioEvent = exports.studioEventBus = exports.STUDIO_EVENT_BUS_CHANNEL = exports.STUDIO_TASK_QUEUE_META = exports.STUDIO_TASK_EVENTS = exports.studioTaskQueueForRuntime = exports.createStudioTasksApi = exports.StudioTaskQueue = exports.STUDIO_EVENTS = exports.STUDIO_EVENT_LISTENERS = exports.EventService = exports.listenTimeoutToVapiStartSpeakingPlan = exports.listenTimeoutSecondsToMs = exports.resolveListenTimeoutSeconds = exports.clampListenTimeoutSeconds = exports.MAX_LISTEN_TIMEOUT_SECONDS = exports.MIN_LISTEN_TIMEOUT_SECONDS = exports.DEFAULT_LISTEN_TIMEOUT_SECONDS = exports.tryResolveListenIntention = exports.mockExtractPersonName = exports.mockExtractFromUserText = exports.missingRequiredExtractKeys = exports.mergeSayAndListenOptions = exports.applyListenBoosts = exports.MAX_EXTRACTED_STRING_LENGTH = exports.wrapUntrustedUserText = exports.sanitizeExtractedFieldValue = exports.utteranceLooksLikePromptInjection = exports.looksLikePromptInjection = exports.brainUntrustedInputRules = exports.resolveIntentionPriority = exports.selectWalkableIntentions = exports.orderIntentionsForWalk = exports.compareIntentionWalkOrder = exports.scoresToRankedCandidates = exports.clamp01 = exports.roundConfidence = exports.resolveConfidenceThreshold = exports.allBelowConfidenceThreshold = exports.CONFIDENCE_DECIMALS = exports.DEFAULT_BRAIN_CONFIDENCE_THRESHOLD = exports.resolveJudgeConfidenceThreshold = exports.CONFIDENCE_6_PATTERN = exports.isConfidence6 = exports.formatConfidence6 = exports.clampConfidence = exports.normalizeReasoning = exports.normalizeJudgeResult = void 0;
|
|
6
|
+
exports.FormsService = exports.WorkflowHandoffService = exports.WorkflowLoader = exports.CHANNEL_META = exports.channelToolsApiFromList = exports.extractToolResults = exports.extractAdvertisedTools = exports.hasAdvertisedHandoffTool = exports.buildVapiHandoffToolArgs = exports.resolveHandoffToolName = exports.resolveTransferCallToolName = exports.resolveEndCallToolName = exports.extractToolFunctionNames = exports.extractVapiCallerNumber = exports.extractVapiCallId = exports.extractNewestUserText = exports.VapiSseCompiler = exports.readSecretEnv = exports.canonicalRequestBody = exports.sha256Hex = exports.signIntegrationRequest = exports.verifyHs256Jwt = exports.signHs256Jwt = exports.INTEGRATION_SIGNATURE_HEADER = exports.IntegrationClient = exports.ProjectRepository = exports.ProjectEntity = exports.ProviderIngressRepository = exports.ProviderIngressEntity = exports.normalizeAnalyticsFunnels = exports.ANALYTICS_TAG_EVENT = exports.extractCallerIdFromBags = exports.ConversationRepository = exports.ConversationEntity = exports.isFileLogEnabled = exports.stripAnsi = exports.rememberCallerPhone = exports.resetDailyLogState = exports.flushDailyLog = exports.purgeOldDailyLogs = exports.shouldPurgeDailyFile = exports.resolveLogDir = exports.resolveLogDays = exports.logYmd = exports.dailyLogFileName = exports.formatCallLogHeader = exports.appendDailyLog = exports.beginCallLog = exports.isConversationConsoleEnabled = exports.snapshotUserMemory = void 0;
|
|
7
|
+
exports.parseSpelledEmail = exports.collectedEmail = exports.EMAIL_EXTRACT_DESCRIPTION = exports.STUDIO_UI_ROOT = exports.sendStudioIndex = exports.resolveStudioUiRoot = exports.mountStudioUiAssets = exports.StudioUiModule = exports.FormChannelUnavailableError = exports.FormFilloutTimeoutError = exports.FormDeliverTimeoutError = exports.renderFormGoneHtml = exports.renderFormThanksHtml = exports.renderFormHtml = exports.SdkTwilioSmsSender = exports.DryRunTwilioSmsSender = exports.createTwilioSmsSender = exports.resolveSmsBody = exports.buildDefaultSmsBody = exports.resolveSmsFormUrl = exports.pickSmsFormUrl = exports.pickSmsDestination = exports.normalizeSmsToE164 = exports.twilioSmsCredentialsReady = exports.resolveTwilioSmsConfig = exports.readTwilioSmsConfig = exports.TWILIO_SMS_ENV = exports.TwilioSmsFormDisposeAdapter = exports.NoopFormDisposeAdapter = exports.FORM_DISPOSE_ADAPTER = void 0;
|
|
8
|
+
var standard_intentions_1 = require("./intentions/standard-intentions");
|
|
9
|
+
Object.defineProperty(exports, "STANDARD_INTENTIONS", { enumerable: true, get: function () { return standard_intentions_1.STANDARD_INTENTIONS; } });
|
|
10
|
+
var vapi_studio_module_1 = require("./vapi-studio.module");
|
|
11
|
+
Object.defineProperty(exports, "VapiStudioModule", { enumerable: true, get: function () { return vapi_studio_module_1.VapiStudioModule; } });
|
|
12
|
+
var agent_node_1 = require("./node/agent-node");
|
|
13
|
+
Object.defineProperty(exports, "AgentNode", { enumerable: true, get: function () { return agent_node_1.AgentNode; } });
|
|
14
|
+
Object.defineProperty(exports, "conversationViewFromRuntime", { enumerable: true, get: function () { return agent_node_1.conversationViewFromRuntime; } });
|
|
15
|
+
Object.defineProperty(exports, "nodeContextFromRuntime", { enumerable: true, get: function () { return agent_node_1.nodeContextFromRuntime; } });
|
|
16
|
+
var agent_node_2 = require("./node/agent-node");
|
|
17
|
+
Object.defineProperty(exports, "STUDIO_NODE_REGISTRY", { enumerable: true, get: function () { return agent_node_2.STUDIO_NODE_REGISTRY; } });
|
|
18
|
+
var code_intention_1 = require("./intention/code-intention");
|
|
19
|
+
Object.defineProperty(exports, "CodeIntention", { enumerable: true, get: function () { return code_intention_1.CodeIntention; } });
|
|
20
|
+
Object.defineProperty(exports, "intentionContextFromRuntime", { enumerable: true, get: function () { return code_intention_1.intentionContextFromRuntime; } });
|
|
21
|
+
Object.defineProperty(exports, "STUDIO_INTENTION_REGISTRY", { enumerable: true, get: function () { return code_intention_1.STUDIO_INTENTION_REGISTRY; } });
|
|
22
|
+
Object.defineProperty(exports, "INTENTION_CASCADE_PHASE", { enumerable: true, get: function () { return code_intention_1.INTENTION_CASCADE_PHASE; } });
|
|
23
|
+
Object.defineProperty(exports, "INTENTION_RUN_KIND", { enumerable: true, get: function () { return code_intention_1.INTENTION_RUN_KIND; } });
|
|
24
|
+
Object.defineProperty(exports, "ROUTE_RESOLVED_VIA", { enumerable: true, get: function () { return code_intention_1.ROUTE_RESOLVED_VIA; } });
|
|
25
|
+
Object.defineProperty(exports, "DEFAULT_FORCE_INTENTION_PRIORITY", { enumerable: true, get: function () { return code_intention_1.DEFAULT_FORCE_INTENTION_PRIORITY; } });
|
|
26
|
+
var catch_directive_1 = require("./node/catch-directive");
|
|
27
|
+
Object.defineProperty(exports, "restartNode", { enumerable: true, get: function () { return catch_directive_1.restartNode; } });
|
|
28
|
+
Object.defineProperty(exports, "forceIntention", { enumerable: true, get: function () { return catch_directive_1.forceIntention; } });
|
|
29
|
+
Object.defineProperty(exports, "catchResult", { enumerable: true, get: function () { return catch_directive_1.catchResult; } });
|
|
30
|
+
Object.defineProperty(exports, "rethrowCatch", { enumerable: true, get: function () { return catch_directive_1.rethrowCatch; } });
|
|
31
|
+
Object.defineProperty(exports, "FlowUncertainError", { enumerable: true, get: function () { return catch_directive_1.FlowUncertainError; } });
|
|
32
|
+
var conversation_output_1 = require("./output/conversation-output");
|
|
33
|
+
Object.defineProperty(exports, "BufferedConversationOutput", { enumerable: true, get: function () { return conversation_output_1.BufferedConversationOutput; } });
|
|
34
|
+
var supervised_conversation_1 = require("./conversation/supervised-conversation");
|
|
35
|
+
Object.defineProperty(exports, "SupervisedConversation", { enumerable: true, get: function () { return supervised_conversation_1.SupervisedConversation; } });
|
|
36
|
+
var supervised_conversation_registry_1 = require("./conversation/supervised-conversation.registry");
|
|
37
|
+
Object.defineProperty(exports, "SupervisedConversationRegistry", { enumerable: true, get: function () { return supervised_conversation_registry_1.SupervisedConversationRegistry; } });
|
|
38
|
+
var conversation_limits_1 = require("./conversation/conversation-limits");
|
|
39
|
+
Object.defineProperty(exports, "STUDIO_CONVERSATION_LIMITS", { enumerable: true, get: function () { return conversation_limits_1.STUDIO_CONVERSATION_LIMITS; } });
|
|
40
|
+
Object.defineProperty(exports, "DEFAULT_MAX_CONVERSATION_TURNS", { enumerable: true, get: function () { return conversation_limits_1.DEFAULT_MAX_CONVERSATION_TURNS; } });
|
|
41
|
+
Object.defineProperty(exports, "DEFAULT_MAX_CONVERSATION_DURATION_MS", { enumerable: true, get: function () { return conversation_limits_1.DEFAULT_MAX_CONVERSATION_DURATION_MS; } });
|
|
42
|
+
Object.defineProperty(exports, "HARD_MAX_CONVERSATION_TURNS", { enumerable: true, get: function () { return conversation_limits_1.HARD_MAX_CONVERSATION_TURNS; } });
|
|
43
|
+
Object.defineProperty(exports, "HARD_MAX_CONVERSATION_DURATION_MS", { enumerable: true, get: function () { return conversation_limits_1.HARD_MAX_CONVERSATION_DURATION_MS; } });
|
|
44
|
+
Object.defineProperty(exports, "DEFAULT_CONVERSATION_LIMIT_MESSAGE", { enumerable: true, get: function () { return conversation_limits_1.DEFAULT_CONVERSATION_LIMIT_MESSAGE; } });
|
|
45
|
+
Object.defineProperty(exports, "resolveConversationLimits", { enumerable: true, get: function () { return conversation_limits_1.resolveConversationLimits; } });
|
|
46
|
+
Object.defineProperty(exports, "evaluateConversationLimits", { enumerable: true, get: function () { return conversation_limits_1.evaluateConversationLimits; } });
|
|
47
|
+
var call_turn_queue_1 = require("./conversation/call-turn-queue");
|
|
48
|
+
Object.defineProperty(exports, "CallTurnQueue", { enumerable: true, get: function () { return call_turn_queue_1.CallTurnQueue; } });
|
|
49
|
+
Object.defineProperty(exports, "CallTurnQueueRegistry", { enumerable: true, get: function () { return call_turn_queue_1.CallTurnQueueRegistry; } });
|
|
50
|
+
Object.defineProperty(exports, "coalesceUserUtterances", { enumerable: true, get: function () { return call_turn_queue_1.coalesceUserUtterances; } });
|
|
51
|
+
var conversation_bootstrap_service_1 = require("./conversation/conversation-bootstrap.service");
|
|
52
|
+
Object.defineProperty(exports, "ConversationBootstrapService", { enumerable: true, get: function () { return conversation_bootstrap_service_1.ConversationBootstrapService; } });
|
|
53
|
+
var conversation_resume_service_1 = require("./conversation/conversation-resume.service");
|
|
54
|
+
Object.defineProperty(exports, "ConversationResumeService", { enumerable: true, get: function () { return conversation_resume_service_1.ConversationResumeService; } });
|
|
55
|
+
Object.defineProperty(exports, "DEFAULT_RESUME_WITHIN_MS", { enumerable: true, get: function () { return conversation_resume_service_1.DEFAULT_RESUME_WITHIN_MS; } });
|
|
56
|
+
var conversation_entry_1 = require("./conversation/conversation-entry");
|
|
57
|
+
Object.defineProperty(exports, "CONVERSATION_ENTRY_POINT", { enumerable: true, get: function () { return conversation_entry_1.CONVERSATION_ENTRY_POINT; } });
|
|
58
|
+
Object.defineProperty(exports, "DefaultConversationEntry", { enumerable: true, get: function () { return conversation_entry_1.DefaultConversationEntry; } });
|
|
59
|
+
var conversation_history_1 = require("./conversation/conversation-history");
|
|
60
|
+
Object.defineProperty(exports, "DEFAULT_INTENTION_PRIORITY", { enumerable: true, get: function () { return conversation_history_1.DEFAULT_INTENTION_PRIORITY; } });
|
|
61
|
+
Object.defineProperty(exports, "emptyConversationHistory", { enumerable: true, get: function () { return conversation_history_1.emptyConversationHistory; } });
|
|
62
|
+
Object.defineProperty(exports, "appendChat", { enumerable: true, get: function () { return conversation_history_1.appendChat; } });
|
|
63
|
+
Object.defineProperty(exports, "appendNodeVisit", { enumerable: true, get: function () { return conversation_history_1.appendNodeVisit; } });
|
|
64
|
+
Object.defineProperty(exports, "countNodeVisits", { enumerable: true, get: function () { return conversation_history_1.countNodeVisits; } });
|
|
65
|
+
Object.defineProperty(exports, "lastVisitedNodeId", { enumerable: true, get: function () { return conversation_history_1.lastVisitedNodeId; } });
|
|
66
|
+
Object.defineProperty(exports, "compactText", { enumerable: true, get: function () { return conversation_history_1.compactText; } });
|
|
67
|
+
var supervisor_1 = require("./supervisor/supervisor");
|
|
68
|
+
Object.defineProperty(exports, "Supervisor", { enumerable: true, get: function () { return supervisor_1.Supervisor; } });
|
|
69
|
+
var flow_loader_1 = require("./flow/flow-loader");
|
|
70
|
+
Object.defineProperty(exports, "FlowLoader", { enumerable: true, get: function () { return flow_loader_1.FlowLoader; } });
|
|
71
|
+
Object.defineProperty(exports, "CONDITION_GOTO_PREFIX", { enumerable: true, get: function () { return flow_loader_1.CONDITION_GOTO_PREFIX; } });
|
|
72
|
+
Object.defineProperty(exports, "conditionGotoIntention", { enumerable: true, get: function () { return flow_loader_1.conditionGotoIntention; } });
|
|
73
|
+
Object.defineProperty(exports, "parseConditionGotoNodeId", { enumerable: true, get: function () { return flow_loader_1.parseConditionGotoNodeId; } });
|
|
74
|
+
var condition_1 = require("./flow/condition");
|
|
75
|
+
Object.defineProperty(exports, "compileCondition", { enumerable: true, get: function () { return condition_1.compileCondition; } });
|
|
76
|
+
Object.defineProperty(exports, "evaluateCondition", { enumerable: true, get: function () { return condition_1.evaluateCondition; } });
|
|
77
|
+
var brain_service_1 = require("./brain/brain.service");
|
|
78
|
+
Object.defineProperty(exports, "BRAIN_SERVICE", { enumerable: true, get: function () { return brain_service_1.BRAIN_SERVICE; } });
|
|
79
|
+
Object.defineProperty(exports, "BRAIN_ADAPTER", { enumerable: true, get: function () { return brain_service_1.BRAIN_ADAPTER; } });
|
|
80
|
+
Object.defineProperty(exports, "MockBrainAdapter", { enumerable: true, get: function () { return brain_service_1.MockBrainAdapter; } });
|
|
81
|
+
Object.defineProperty(exports, "MockBrainService", { enumerable: true, get: function () { return brain_service_1.MockBrainService; } });
|
|
82
|
+
Object.defineProperty(exports, "MockChatGptBrainAdapter", { enumerable: true, get: function () { return brain_service_1.MockChatGptBrainAdapter; } });
|
|
83
|
+
Object.defineProperty(exports, "MockClaudeBrainAdapter", { enumerable: true, get: function () { return brain_service_1.MockClaudeBrainAdapter; } });
|
|
84
|
+
Object.defineProperty(exports, "MockGeminiBrainAdapter", { enumerable: true, get: function () { return brain_service_1.MockGeminiBrainAdapter; } });
|
|
85
|
+
Object.defineProperty(exports, "MockGrokBrainAdapter", { enumerable: true, get: function () { return brain_service_1.MockGrokBrainAdapter; } });
|
|
86
|
+
Object.defineProperty(exports, "ChatGptBrainAdapter", { enumerable: true, get: function () { return brain_service_1.ChatGptBrainAdapter; } });
|
|
87
|
+
Object.defineProperty(exports, "ClaudeBrainAdapter", { enumerable: true, get: function () { return brain_service_1.ClaudeBrainAdapter; } });
|
|
88
|
+
Object.defineProperty(exports, "GeminiBrainAdapter", { enumerable: true, get: function () { return brain_service_1.GeminiBrainAdapter; } });
|
|
89
|
+
Object.defineProperty(exports, "GrokBrainAdapter", { enumerable: true, get: function () { return brain_service_1.GrokBrainAdapter; } });
|
|
90
|
+
var brain_usage_tracker_1 = require("./brain/brain-usage.tracker");
|
|
91
|
+
Object.defineProperty(exports, "BrainUsageTracker", { enumerable: true, get: function () { return brain_usage_tracker_1.BrainUsageTracker; } });
|
|
92
|
+
var openai_cheap_models_1 = require("./brain/openai-cheap-models");
|
|
93
|
+
Object.defineProperty(exports, "DEFAULT_CHEAP_OPENAI_MODEL", { enumerable: true, get: function () { return openai_cheap_models_1.DEFAULT_CHEAP_OPENAI_MODEL; } });
|
|
94
|
+
Object.defineProperty(exports, "CHEAP_OPENAI_MODELS", { enumerable: true, get: function () { return openai_cheap_models_1.CHEAP_OPENAI_MODELS; } });
|
|
95
|
+
Object.defineProperty(exports, "CHEAP_OPENAI_MODEL_IDS", { enumerable: true, get: function () { return openai_cheap_models_1.CHEAP_OPENAI_MODEL_IDS; } });
|
|
96
|
+
Object.defineProperty(exports, "resolveCheapOpenAiModel", { enumerable: true, get: function () { return openai_cheap_models_1.resolveCheapOpenAiModel; } });
|
|
97
|
+
Object.defineProperty(exports, "isCheapOpenAiModel", { enumerable: true, get: function () { return openai_cheap_models_1.isCheapOpenAiModel; } });
|
|
98
|
+
var claude_cheap_models_1 = require("./brain/claude-cheap-models");
|
|
99
|
+
Object.defineProperty(exports, "DEFAULT_CHEAP_CLAUDE_MODEL", { enumerable: true, get: function () { return claude_cheap_models_1.DEFAULT_CHEAP_CLAUDE_MODEL; } });
|
|
100
|
+
Object.defineProperty(exports, "CHEAP_CLAUDE_MODELS", { enumerable: true, get: function () { return claude_cheap_models_1.CHEAP_CLAUDE_MODELS; } });
|
|
101
|
+
Object.defineProperty(exports, "CHEAP_CLAUDE_MODEL_IDS", { enumerable: true, get: function () { return claude_cheap_models_1.CHEAP_CLAUDE_MODEL_IDS; } });
|
|
102
|
+
Object.defineProperty(exports, "resolveCheapClaudeModel", { enumerable: true, get: function () { return claude_cheap_models_1.resolveCheapClaudeModel; } });
|
|
103
|
+
Object.defineProperty(exports, "isCheapClaudeModel", { enumerable: true, get: function () { return claude_cheap_models_1.isCheapClaudeModel; } });
|
|
104
|
+
var gemini_cheap_models_1 = require("./brain/gemini-cheap-models");
|
|
105
|
+
Object.defineProperty(exports, "DEFAULT_CHEAP_GEMINI_MODEL", { enumerable: true, get: function () { return gemini_cheap_models_1.DEFAULT_CHEAP_GEMINI_MODEL; } });
|
|
106
|
+
Object.defineProperty(exports, "CHEAP_GEMINI_MODELS", { enumerable: true, get: function () { return gemini_cheap_models_1.CHEAP_GEMINI_MODELS; } });
|
|
107
|
+
Object.defineProperty(exports, "CHEAP_GEMINI_MODEL_IDS", { enumerable: true, get: function () { return gemini_cheap_models_1.CHEAP_GEMINI_MODEL_IDS; } });
|
|
108
|
+
Object.defineProperty(exports, "resolveCheapGeminiModel", { enumerable: true, get: function () { return gemini_cheap_models_1.resolveCheapGeminiModel; } });
|
|
109
|
+
Object.defineProperty(exports, "isCheapGeminiModel", { enumerable: true, get: function () { return gemini_cheap_models_1.isCheapGeminiModel; } });
|
|
110
|
+
var grok_cheap_models_1 = require("./brain/grok-cheap-models");
|
|
111
|
+
Object.defineProperty(exports, "DEFAULT_CHEAP_GROK_MODEL", { enumerable: true, get: function () { return grok_cheap_models_1.DEFAULT_CHEAP_GROK_MODEL; } });
|
|
112
|
+
Object.defineProperty(exports, "CHEAP_GROK_MODELS", { enumerable: true, get: function () { return grok_cheap_models_1.CHEAP_GROK_MODELS; } });
|
|
113
|
+
Object.defineProperty(exports, "CHEAP_GROK_MODEL_IDS", { enumerable: true, get: function () { return grok_cheap_models_1.CHEAP_GROK_MODEL_IDS; } });
|
|
114
|
+
Object.defineProperty(exports, "resolveCheapGrokModel", { enumerable: true, get: function () { return grok_cheap_models_1.resolveCheapGrokModel; } });
|
|
115
|
+
Object.defineProperty(exports, "isCheapGrokModel", { enumerable: true, get: function () { return grok_cheap_models_1.isCheapGrokModel; } });
|
|
116
|
+
var llm_model_pricing_1 = require("./brain/llm-model-pricing");
|
|
117
|
+
Object.defineProperty(exports, "estimateUsdCost", { enumerable: true, get: function () { return llm_model_pricing_1.estimateUsdCost; } });
|
|
118
|
+
Object.defineProperty(exports, "estimateUsdFromPricing", { enumerable: true, get: function () { return llm_model_pricing_1.estimateUsdFromPricing; } });
|
|
119
|
+
Object.defineProperty(exports, "lookupModelPricing", { enumerable: true, get: function () { return llm_model_pricing_1.lookupModelPricing; } });
|
|
120
|
+
var brain_config_1 = require("./brain/brain-config");
|
|
121
|
+
Object.defineProperty(exports, "STUDIO_BRAIN_CONFIG", { enumerable: true, get: function () { return brain_config_1.STUDIO_BRAIN_CONFIG; } });
|
|
122
|
+
Object.defineProperty(exports, "resolveStudioBrainConfig", { enumerable: true, get: function () { return brain_config_1.resolveStudioBrainConfig; } });
|
|
123
|
+
var json_llm_brain_base_1 = require("./brain/adapters/json-llm-brain.base");
|
|
124
|
+
Object.defineProperty(exports, "detectUserSpeechSeries", { enumerable: true, get: function () { return json_llm_brain_base_1.detectUserSpeechSeries; } });
|
|
125
|
+
var brain_clarify_1 = require("./brain/brain-clarify");
|
|
126
|
+
Object.defineProperty(exports, "clarifiableInputToString", { enumerable: true, get: function () { return brain_clarify_1.clarifiableInputToString; } });
|
|
127
|
+
Object.defineProperty(exports, "filterClarifyAnswer", { enumerable: true, get: function () { return brain_clarify_1.filterClarifyAnswer; } });
|
|
128
|
+
Object.defineProperty(exports, "emptyAnswerFromInterface", { enumerable: true, get: function () { return brain_clarify_1.emptyAnswerFromInterface; } });
|
|
129
|
+
Object.defineProperty(exports, "normalizeClarifyResult", { enumerable: true, get: function () { return brain_clarify_1.normalizeClarifyResult; } });
|
|
130
|
+
Object.defineProperty(exports, "throwClarifyCannotAnswer", { enumerable: true, get: function () { return brain_clarify_1.throwClarifyCannotAnswer; } });
|
|
131
|
+
Object.defineProperty(exports, "isClarifyCannotAnswerError", { enumerable: true, get: function () { return brain_clarify_1.isClarifyCannotAnswerError; } });
|
|
132
|
+
Object.defineProperty(exports, "ClarifyCannotAnswerError", { enumerable: true, get: function () { return brain_clarify_1.ClarifyCannotAnswerError; } });
|
|
133
|
+
Object.defineProperty(exports, "STUDIO_CLARIFY_CANNOT_ANSWER", { enumerable: true, get: function () { return brain_clarify_1.STUDIO_CLARIFY_CANNOT_ANSWER; } });
|
|
134
|
+
var brain_judge_1 = require("./brain/brain-judge");
|
|
135
|
+
Object.defineProperty(exports, "DEFAULT_BRAIN_JUDGE_CONFIDENCE_THRESHOLD", { enumerable: true, get: function () { return brain_judge_1.DEFAULT_BRAIN_JUDGE_CONFIDENCE_THRESHOLD; } });
|
|
136
|
+
Object.defineProperty(exports, "judgeContextToString", { enumerable: true, get: function () { return brain_judge_1.judgeContextToString; } });
|
|
137
|
+
Object.defineProperty(exports, "normalizeJudgeResult", { enumerable: true, get: function () { return brain_judge_1.normalizeJudgeResult; } });
|
|
138
|
+
Object.defineProperty(exports, "normalizeReasoning", { enumerable: true, get: function () { return brain_judge_1.normalizeReasoning; } });
|
|
139
|
+
Object.defineProperty(exports, "clampConfidence", { enumerable: true, get: function () { return brain_judge_1.clampConfidence; } });
|
|
140
|
+
Object.defineProperty(exports, "formatConfidence6", { enumerable: true, get: function () { return brain_judge_1.formatConfidence6; } });
|
|
141
|
+
Object.defineProperty(exports, "isConfidence6", { enumerable: true, get: function () { return brain_judge_1.isConfidence6; } });
|
|
142
|
+
Object.defineProperty(exports, "CONFIDENCE_6_PATTERN", { enumerable: true, get: function () { return brain_judge_1.CONFIDENCE_6_PATTERN; } });
|
|
143
|
+
Object.defineProperty(exports, "resolveJudgeConfidenceThreshold", { enumerable: true, get: function () { return brain_judge_1.resolveJudgeConfidenceThreshold; } });
|
|
144
|
+
var brain_ranking_1 = require("./brain/brain-ranking");
|
|
145
|
+
Object.defineProperty(exports, "DEFAULT_BRAIN_CONFIDENCE_THRESHOLD", { enumerable: true, get: function () { return brain_ranking_1.DEFAULT_BRAIN_CONFIDENCE_THRESHOLD; } });
|
|
146
|
+
Object.defineProperty(exports, "CONFIDENCE_DECIMALS", { enumerable: true, get: function () { return brain_ranking_1.CONFIDENCE_DECIMALS; } });
|
|
147
|
+
Object.defineProperty(exports, "allBelowConfidenceThreshold", { enumerable: true, get: function () { return brain_ranking_1.allBelowConfidenceThreshold; } });
|
|
148
|
+
Object.defineProperty(exports, "resolveConfidenceThreshold", { enumerable: true, get: function () { return brain_ranking_1.resolveConfidenceThreshold; } });
|
|
149
|
+
Object.defineProperty(exports, "roundConfidence", { enumerable: true, get: function () { return brain_ranking_1.roundConfidence; } });
|
|
150
|
+
Object.defineProperty(exports, "clamp01", { enumerable: true, get: function () { return brain_ranking_1.clamp01; } });
|
|
151
|
+
Object.defineProperty(exports, "scoresToRankedCandidates", { enumerable: true, get: function () { return brain_ranking_1.scoresToRankedCandidates; } });
|
|
152
|
+
Object.defineProperty(exports, "compareIntentionWalkOrder", { enumerable: true, get: function () { return brain_ranking_1.compareIntentionWalkOrder; } });
|
|
153
|
+
Object.defineProperty(exports, "orderIntentionsForWalk", { enumerable: true, get: function () { return brain_ranking_1.orderIntentionsForWalk; } });
|
|
154
|
+
Object.defineProperty(exports, "selectWalkableIntentions", { enumerable: true, get: function () { return brain_ranking_1.selectWalkableIntentions; } });
|
|
155
|
+
Object.defineProperty(exports, "resolveIntentionPriority", { enumerable: true, get: function () { return brain_ranking_1.resolveIntentionPriority; } });
|
|
156
|
+
var prompt_injection_guard_1 = require("./brain/prompt-injection-guard");
|
|
157
|
+
Object.defineProperty(exports, "brainUntrustedInputRules", { enumerable: true, get: function () { return prompt_injection_guard_1.brainUntrustedInputRules; } });
|
|
158
|
+
Object.defineProperty(exports, "looksLikePromptInjection", { enumerable: true, get: function () { return prompt_injection_guard_1.looksLikePromptInjection; } });
|
|
159
|
+
Object.defineProperty(exports, "utteranceLooksLikePromptInjection", { enumerable: true, get: function () { return prompt_injection_guard_1.utteranceLooksLikePromptInjection; } });
|
|
160
|
+
Object.defineProperty(exports, "sanitizeExtractedFieldValue", { enumerable: true, get: function () { return prompt_injection_guard_1.sanitizeExtractedFieldValue; } });
|
|
161
|
+
Object.defineProperty(exports, "wrapUntrustedUserText", { enumerable: true, get: function () { return prompt_injection_guard_1.wrapUntrustedUserText; } });
|
|
162
|
+
Object.defineProperty(exports, "MAX_EXTRACTED_STRING_LENGTH", { enumerable: true, get: function () { return prompt_injection_guard_1.MAX_EXTRACTED_STRING_LENGTH; } });
|
|
163
|
+
var listen_expectation_1 = require("./conversation/listen-expectation");
|
|
164
|
+
Object.defineProperty(exports, "applyListenBoosts", { enumerable: true, get: function () { return listen_expectation_1.applyListenBoosts; } });
|
|
165
|
+
Object.defineProperty(exports, "mergeSayAndListenOptions", { enumerable: true, get: function () { return listen_expectation_1.mergeSayAndListenOptions; } });
|
|
166
|
+
Object.defineProperty(exports, "missingRequiredExtractKeys", { enumerable: true, get: function () { return listen_expectation_1.missingRequiredExtractKeys; } });
|
|
167
|
+
Object.defineProperty(exports, "mockExtractFromUserText", { enumerable: true, get: function () { return listen_expectation_1.mockExtractFromUserText; } });
|
|
168
|
+
Object.defineProperty(exports, "mockExtractPersonName", { enumerable: true, get: function () { return listen_expectation_1.mockExtractPersonName; } });
|
|
169
|
+
Object.defineProperty(exports, "tryResolveListenIntention", { enumerable: true, get: function () { return listen_expectation_1.tryResolveListenIntention; } });
|
|
170
|
+
var listen_timeout_1 = require("./conversation/listen-timeout");
|
|
171
|
+
Object.defineProperty(exports, "DEFAULT_LISTEN_TIMEOUT_SECONDS", { enumerable: true, get: function () { return listen_timeout_1.DEFAULT_LISTEN_TIMEOUT_SECONDS; } });
|
|
172
|
+
Object.defineProperty(exports, "MIN_LISTEN_TIMEOUT_SECONDS", { enumerable: true, get: function () { return listen_timeout_1.MIN_LISTEN_TIMEOUT_SECONDS; } });
|
|
173
|
+
Object.defineProperty(exports, "MAX_LISTEN_TIMEOUT_SECONDS", { enumerable: true, get: function () { return listen_timeout_1.MAX_LISTEN_TIMEOUT_SECONDS; } });
|
|
174
|
+
Object.defineProperty(exports, "clampListenTimeoutSeconds", { enumerable: true, get: function () { return listen_timeout_1.clampListenTimeoutSeconds; } });
|
|
175
|
+
Object.defineProperty(exports, "resolveListenTimeoutSeconds", { enumerable: true, get: function () { return listen_timeout_1.resolveListenTimeoutSeconds; } });
|
|
176
|
+
Object.defineProperty(exports, "listenTimeoutSecondsToMs", { enumerable: true, get: function () { return listen_timeout_1.listenTimeoutSecondsToMs; } });
|
|
177
|
+
Object.defineProperty(exports, "listenTimeoutToVapiStartSpeakingPlan", { enumerable: true, get: function () { return listen_timeout_1.listenTimeoutToVapiStartSpeakingPlan; } });
|
|
178
|
+
var event_service_1 = require("./events/event.service");
|
|
179
|
+
Object.defineProperty(exports, "EventService", { enumerable: true, get: function () { return event_service_1.EventService; } });
|
|
180
|
+
var studio_event_1 = require("./events/studio-event");
|
|
181
|
+
Object.defineProperty(exports, "STUDIO_EVENT_LISTENERS", { enumerable: true, get: function () { return studio_event_1.STUDIO_EVENT_LISTENERS; } });
|
|
182
|
+
Object.defineProperty(exports, "STUDIO_EVENTS", { enumerable: true, get: function () { return studio_event_1.STUDIO_EVENTS; } });
|
|
183
|
+
var studio_task_queue_1 = require("./tasks/studio-task-queue");
|
|
184
|
+
Object.defineProperty(exports, "StudioTaskQueue", { enumerable: true, get: function () { return studio_task_queue_1.StudioTaskQueue; } });
|
|
185
|
+
Object.defineProperty(exports, "createStudioTasksApi", { enumerable: true, get: function () { return studio_task_queue_1.createStudioTasksApi; } });
|
|
186
|
+
Object.defineProperty(exports, "studioTaskQueueForRuntime", { enumerable: true, get: function () { return studio_task_queue_1.studioTaskQueueForRuntime; } });
|
|
187
|
+
Object.defineProperty(exports, "STUDIO_TASK_EVENTS", { enumerable: true, get: function () { return studio_task_queue_1.STUDIO_TASK_EVENTS; } });
|
|
188
|
+
Object.defineProperty(exports, "STUDIO_TASK_QUEUE_META", { enumerable: true, get: function () { return studio_task_queue_1.STUDIO_TASK_QUEUE_META; } });
|
|
189
|
+
var studio_event_bus_1 = require("./events/studio-event-bus");
|
|
190
|
+
Object.defineProperty(exports, "STUDIO_EVENT_BUS_CHANNEL", { enumerable: true, get: function () { return studio_event_bus_1.STUDIO_EVENT_BUS_CHANNEL; } });
|
|
191
|
+
Object.defineProperty(exports, "studioEventBus", { enumerable: true, get: function () { return studio_event_bus_1.studioEventBus; } });
|
|
192
|
+
Object.defineProperty(exports, "onStudioEvent", { enumerable: true, get: function () { return studio_event_bus_1.onStudioEvent; } });
|
|
193
|
+
Object.defineProperty(exports, "emitStudioEventBus", { enumerable: true, get: function () { return studio_event_bus_1.emitStudioEventBus; } });
|
|
194
|
+
var conversation_console_1 = require("./events/conversation-console");
|
|
195
|
+
Object.defineProperty(exports, "printConversationConsole", { enumerable: true, get: function () { return conversation_console_1.printConversationConsole; } });
|
|
196
|
+
Object.defineProperty(exports, "snapshotUserMemory", { enumerable: true, get: function () { return conversation_console_1.snapshotUserMemory; } });
|
|
197
|
+
Object.defineProperty(exports, "isConversationConsoleEnabled", { enumerable: true, get: function () { return conversation_console_1.isConversationConsoleEnabled; } });
|
|
198
|
+
var daily_log_driver_1 = require("./events/daily-log.driver");
|
|
199
|
+
Object.defineProperty(exports, "beginCallLog", { enumerable: true, get: function () { return daily_log_driver_1.beginCallLog; } });
|
|
200
|
+
Object.defineProperty(exports, "appendDailyLog", { enumerable: true, get: function () { return daily_log_driver_1.appendDailyLog; } });
|
|
201
|
+
Object.defineProperty(exports, "formatCallLogHeader", { enumerable: true, get: function () { return daily_log_driver_1.formatCallLogHeader; } });
|
|
202
|
+
Object.defineProperty(exports, "dailyLogFileName", { enumerable: true, get: function () { return daily_log_driver_1.dailyLogFileName; } });
|
|
203
|
+
Object.defineProperty(exports, "logYmd", { enumerable: true, get: function () { return daily_log_driver_1.logYmd; } });
|
|
204
|
+
Object.defineProperty(exports, "resolveLogDays", { enumerable: true, get: function () { return daily_log_driver_1.resolveLogDays; } });
|
|
205
|
+
Object.defineProperty(exports, "resolveLogDir", { enumerable: true, get: function () { return daily_log_driver_1.resolveLogDir; } });
|
|
206
|
+
Object.defineProperty(exports, "shouldPurgeDailyFile", { enumerable: true, get: function () { return daily_log_driver_1.shouldPurgeDailyFile; } });
|
|
207
|
+
Object.defineProperty(exports, "purgeOldDailyLogs", { enumerable: true, get: function () { return daily_log_driver_1.purgeOldDailyLogs; } });
|
|
208
|
+
Object.defineProperty(exports, "flushDailyLog", { enumerable: true, get: function () { return daily_log_driver_1.flushDailyLog; } });
|
|
209
|
+
Object.defineProperty(exports, "resetDailyLogState", { enumerable: true, get: function () { return daily_log_driver_1.resetDailyLogState; } });
|
|
210
|
+
Object.defineProperty(exports, "rememberCallerPhone", { enumerable: true, get: function () { return daily_log_driver_1.rememberCallerPhone; } });
|
|
211
|
+
Object.defineProperty(exports, "stripAnsi", { enumerable: true, get: function () { return daily_log_driver_1.stripAnsi; } });
|
|
212
|
+
Object.defineProperty(exports, "isFileLogEnabled", { enumerable: true, get: function () { return daily_log_driver_1.isFileLogEnabled; } });
|
|
213
|
+
var conversation_entity_1 = require("./persistence/conversation.entity");
|
|
214
|
+
Object.defineProperty(exports, "ConversationEntity", { enumerable: true, get: function () { return conversation_entity_1.ConversationEntity; } });
|
|
215
|
+
var conversation_repository_1 = require("./persistence/conversation.repository");
|
|
216
|
+
Object.defineProperty(exports, "ConversationRepository", { enumerable: true, get: function () { return conversation_repository_1.ConversationRepository; } });
|
|
217
|
+
Object.defineProperty(exports, "extractCallerIdFromBags", { enumerable: true, get: function () { return conversation_repository_1.extractCallerIdFromBags; } });
|
|
218
|
+
var analytics_tags_1 = require("./analytics/analytics-tags");
|
|
219
|
+
Object.defineProperty(exports, "ANALYTICS_TAG_EVENT", { enumerable: true, get: function () { return analytics_tags_1.ANALYTICS_TAG_EVENT; } });
|
|
220
|
+
Object.defineProperty(exports, "normalizeAnalyticsFunnels", { enumerable: true, get: function () { return analytics_tags_1.normalizeAnalyticsFunnels; } });
|
|
221
|
+
var provider_ingress_entity_1 = require("./persistence/provider-ingress.entity");
|
|
222
|
+
Object.defineProperty(exports, "ProviderIngressEntity", { enumerable: true, get: function () { return provider_ingress_entity_1.ProviderIngressEntity; } });
|
|
223
|
+
var provider_ingress_repository_1 = require("./persistence/provider-ingress.repository");
|
|
224
|
+
Object.defineProperty(exports, "ProviderIngressRepository", { enumerable: true, get: function () { return provider_ingress_repository_1.ProviderIngressRepository; } });
|
|
225
|
+
var project_entity_1 = require("./persistence/project.entity");
|
|
226
|
+
Object.defineProperty(exports, "ProjectEntity", { enumerable: true, get: function () { return project_entity_1.ProjectEntity; } });
|
|
227
|
+
var project_repository_1 = require("./persistence/project.repository");
|
|
228
|
+
Object.defineProperty(exports, "ProjectRepository", { enumerable: true, get: function () { return project_repository_1.ProjectRepository; } });
|
|
229
|
+
var integration_client_1 = require("./integrations/integration-client");
|
|
230
|
+
Object.defineProperty(exports, "IntegrationClient", { enumerable: true, get: function () { return integration_client_1.IntegrationClient; } });
|
|
231
|
+
var jwt_hmac_1 = require("./integrations/jwt-hmac");
|
|
232
|
+
Object.defineProperty(exports, "INTEGRATION_SIGNATURE_HEADER", { enumerable: true, get: function () { return jwt_hmac_1.INTEGRATION_SIGNATURE_HEADER; } });
|
|
233
|
+
Object.defineProperty(exports, "signHs256Jwt", { enumerable: true, get: function () { return jwt_hmac_1.signHs256Jwt; } });
|
|
234
|
+
Object.defineProperty(exports, "verifyHs256Jwt", { enumerable: true, get: function () { return jwt_hmac_1.verifyHs256Jwt; } });
|
|
235
|
+
Object.defineProperty(exports, "signIntegrationRequest", { enumerable: true, get: function () { return jwt_hmac_1.signIntegrationRequest; } });
|
|
236
|
+
Object.defineProperty(exports, "sha256Hex", { enumerable: true, get: function () { return jwt_hmac_1.sha256Hex; } });
|
|
237
|
+
Object.defineProperty(exports, "canonicalRequestBody", { enumerable: true, get: function () { return jwt_hmac_1.canonicalRequestBody; } });
|
|
238
|
+
Object.defineProperty(exports, "readSecretEnv", { enumerable: true, get: function () { return jwt_hmac_1.readSecretEnv; } });
|
|
239
|
+
var vapi_sse_compiler_1 = require("./adapters/vapi/vapi-sse.compiler");
|
|
240
|
+
Object.defineProperty(exports, "VapiSseCompiler", { enumerable: true, get: function () { return vapi_sse_compiler_1.VapiSseCompiler; } });
|
|
241
|
+
Object.defineProperty(exports, "extractNewestUserText", { enumerable: true, get: function () { return vapi_sse_compiler_1.extractNewestUserText; } });
|
|
242
|
+
Object.defineProperty(exports, "extractVapiCallId", { enumerable: true, get: function () { return vapi_sse_compiler_1.extractVapiCallId; } });
|
|
243
|
+
Object.defineProperty(exports, "extractVapiCallerNumber", { enumerable: true, get: function () { return vapi_sse_compiler_1.extractVapiCallerNumber; } });
|
|
244
|
+
Object.defineProperty(exports, "extractToolFunctionNames", { enumerable: true, get: function () { return vapi_sse_compiler_1.extractToolFunctionNames; } });
|
|
245
|
+
Object.defineProperty(exports, "resolveEndCallToolName", { enumerable: true, get: function () { return vapi_sse_compiler_1.resolveEndCallToolName; } });
|
|
246
|
+
Object.defineProperty(exports, "resolveTransferCallToolName", { enumerable: true, get: function () { return vapi_sse_compiler_1.resolveTransferCallToolName; } });
|
|
247
|
+
Object.defineProperty(exports, "resolveHandoffToolName", { enumerable: true, get: function () { return vapi_sse_compiler_1.resolveHandoffToolName; } });
|
|
248
|
+
Object.defineProperty(exports, "buildVapiHandoffToolArgs", { enumerable: true, get: function () { return vapi_sse_compiler_1.buildVapiHandoffToolArgs; } });
|
|
249
|
+
Object.defineProperty(exports, "hasAdvertisedHandoffTool", { enumerable: true, get: function () { return vapi_sse_compiler_1.hasAdvertisedHandoffTool; } });
|
|
250
|
+
var channel_tools_1 = require("./channel/channel-tools");
|
|
251
|
+
Object.defineProperty(exports, "extractAdvertisedTools", { enumerable: true, get: function () { return channel_tools_1.extractAdvertisedTools; } });
|
|
252
|
+
Object.defineProperty(exports, "extractToolResults", { enumerable: true, get: function () { return channel_tools_1.extractToolResults; } });
|
|
253
|
+
Object.defineProperty(exports, "channelToolsApiFromList", { enumerable: true, get: function () { return channel_tools_1.channelToolsApiFromList; } });
|
|
254
|
+
Object.defineProperty(exports, "CHANNEL_META", { enumerable: true, get: function () { return channel_tools_1.CHANNEL_META; } });
|
|
255
|
+
var workflow_loader_1 = require("./workflow/workflow-loader");
|
|
256
|
+
Object.defineProperty(exports, "WorkflowLoader", { enumerable: true, get: function () { return workflow_loader_1.WorkflowLoader; } });
|
|
257
|
+
var workflow_handoff_service_1 = require("./workflow/workflow-handoff.service");
|
|
258
|
+
Object.defineProperty(exports, "WorkflowHandoffService", { enumerable: true, get: function () { return workflow_handoff_service_1.WorkflowHandoffService; } });
|
|
259
|
+
var forms_service_1 = require("./forms/forms.service");
|
|
260
|
+
Object.defineProperty(exports, "FormsService", { enumerable: true, get: function () { return forms_service_1.FormsService; } });
|
|
261
|
+
var form_tokens_1 = require("./forms/form.tokens");
|
|
262
|
+
Object.defineProperty(exports, "FORM_DISPOSE_ADAPTER", { enumerable: true, get: function () { return form_tokens_1.FORM_DISPOSE_ADAPTER; } });
|
|
263
|
+
var noop_form_dispose_adapter_1 = require("./forms/noop-form-dispose.adapter");
|
|
264
|
+
Object.defineProperty(exports, "NoopFormDisposeAdapter", { enumerable: true, get: function () { return noop_form_dispose_adapter_1.NoopFormDisposeAdapter; } });
|
|
265
|
+
var twilio_sms_form_dispose_adapter_1 = require("./forms/twilio-sms-form-dispose.adapter");
|
|
266
|
+
Object.defineProperty(exports, "TwilioSmsFormDisposeAdapter", { enumerable: true, get: function () { return twilio_sms_form_dispose_adapter_1.TwilioSmsFormDisposeAdapter; } });
|
|
267
|
+
var twilio_sms_env_1 = require("./forms/twilio-sms.env");
|
|
268
|
+
Object.defineProperty(exports, "TWILIO_SMS_ENV", { enumerable: true, get: function () { return twilio_sms_env_1.TWILIO_SMS_ENV; } });
|
|
269
|
+
Object.defineProperty(exports, "readTwilioSmsConfig", { enumerable: true, get: function () { return twilio_sms_env_1.readTwilioSmsConfig; } });
|
|
270
|
+
Object.defineProperty(exports, "resolveTwilioSmsConfig", { enumerable: true, get: function () { return twilio_sms_env_1.resolveTwilioSmsConfig; } });
|
|
271
|
+
Object.defineProperty(exports, "twilioSmsCredentialsReady", { enumerable: true, get: function () { return twilio_sms_env_1.twilioSmsCredentialsReady; } });
|
|
272
|
+
Object.defineProperty(exports, "normalizeSmsToE164", { enumerable: true, get: function () { return twilio_sms_env_1.normalizeSmsToE164; } });
|
|
273
|
+
Object.defineProperty(exports, "pickSmsDestination", { enumerable: true, get: function () { return twilio_sms_env_1.pickSmsDestination; } });
|
|
274
|
+
Object.defineProperty(exports, "pickSmsFormUrl", { enumerable: true, get: function () { return twilio_sms_env_1.pickSmsFormUrl; } });
|
|
275
|
+
Object.defineProperty(exports, "resolveSmsFormUrl", { enumerable: true, get: function () { return twilio_sms_env_1.resolveSmsFormUrl; } });
|
|
276
|
+
Object.defineProperty(exports, "buildDefaultSmsBody", { enumerable: true, get: function () { return twilio_sms_env_1.buildDefaultSmsBody; } });
|
|
277
|
+
Object.defineProperty(exports, "resolveSmsBody", { enumerable: true, get: function () { return twilio_sms_env_1.resolveSmsBody; } });
|
|
278
|
+
var twilio_sms_sender_1 = require("./forms/twilio-sms.sender");
|
|
279
|
+
Object.defineProperty(exports, "createTwilioSmsSender", { enumerable: true, get: function () { return twilio_sms_sender_1.createTwilioSmsSender; } });
|
|
280
|
+
Object.defineProperty(exports, "DryRunTwilioSmsSender", { enumerable: true, get: function () { return twilio_sms_sender_1.DryRunTwilioSmsSender; } });
|
|
281
|
+
Object.defineProperty(exports, "SdkTwilioSmsSender", { enumerable: true, get: function () { return twilio_sms_sender_1.SdkTwilioSmsSender; } });
|
|
282
|
+
var form_html_1 = require("./forms/form-html");
|
|
283
|
+
Object.defineProperty(exports, "renderFormHtml", { enumerable: true, get: function () { return form_html_1.renderFormHtml; } });
|
|
284
|
+
Object.defineProperty(exports, "renderFormThanksHtml", { enumerable: true, get: function () { return form_html_1.renderFormThanksHtml; } });
|
|
285
|
+
Object.defineProperty(exports, "renderFormGoneHtml", { enumerable: true, get: function () { return form_html_1.renderFormGoneHtml; } });
|
|
286
|
+
var form_types_1 = require("./forms/form.types");
|
|
287
|
+
Object.defineProperty(exports, "FormDeliverTimeoutError", { enumerable: true, get: function () { return form_types_1.FormDeliverTimeoutError; } });
|
|
288
|
+
Object.defineProperty(exports, "FormFilloutTimeoutError", { enumerable: true, get: function () { return form_types_1.FormFilloutTimeoutError; } });
|
|
289
|
+
Object.defineProperty(exports, "FormChannelUnavailableError", { enumerable: true, get: function () { return form_types_1.FormChannelUnavailableError; } });
|
|
290
|
+
var studio_ui_mount_1 = require("./studio-ui-mount");
|
|
291
|
+
Object.defineProperty(exports, "StudioUiModule", { enumerable: true, get: function () { return studio_ui_mount_1.StudioUiModule; } });
|
|
292
|
+
Object.defineProperty(exports, "mountStudioUiAssets", { enumerable: true, get: function () { return studio_ui_mount_1.mountStudioUiAssets; } });
|
|
293
|
+
Object.defineProperty(exports, "resolveStudioUiRoot", { enumerable: true, get: function () { return studio_ui_mount_1.resolveStudioUiRoot; } });
|
|
294
|
+
Object.defineProperty(exports, "sendStudioIndex", { enumerable: true, get: function () { return studio_ui_mount_1.sendStudioIndex; } });
|
|
295
|
+
Object.defineProperty(exports, "STUDIO_UI_ROOT", { enumerable: true, get: function () { return studio_ui_mount_1.STUDIO_UI_ROOT; } });
|
|
296
|
+
var identity_1 = require("./identity");
|
|
297
|
+
Object.defineProperty(exports, "EMAIL_EXTRACT_DESCRIPTION", { enumerable: true, get: function () { return identity_1.EMAIL_EXTRACT_DESCRIPTION; } });
|
|
298
|
+
Object.defineProperty(exports, "collectedEmail", { enumerable: true, get: function () { return identity_1.collectedEmail; } });
|
|
299
|
+
Object.defineProperty(exports, "parseSpelledEmail", { enumerable: true, get: function () { return identity_1.parseSpelledEmail; } });
|
|
300
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;AAAA,wEAAuE;AAA9D,0HAAA,mBAAmB,OAAA;AAG5B,2DAAwD;AAA/C,sHAAA,gBAAgB,OAAA;AAGzB,gDAI2B;AAHzB,uGAAA,SAAS,OAAA;AACT,yHAAA,2BAA2B,OAAA;AAC3B,oHAAA,sBAAsB,OAAA;AAOxB,gDAAyD;AAAhD,kHAAA,oBAAoB,OAAA;AAE7B,6DAQoC;AAPlC,+GAAA,aAAa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,yDAWgC;AAV9B,gHAAA,cAAc,OAAA;AACd,qHAAA,mBAAmB,OAAA;AACnB,wHAAA,sBAAsB,OAAA;AACtB,2HAAA,yBAAyB,OAAA;AACzB,oHAAA,kBAAkB,OAAA;AAClB,oHAAA,kBAAkB,OAAA;AAClB,gHAAA,cAAc,OAAA;AACd,mHAAA,iBAAiB,OAAA;AACjB,qHAAA,mBAAmB,OAAA;AACnB,gHAAA,cAAc,OAAA;AAOhB,+DAImC;AAHjC,0HAAA,qBAAqB,OAAA;AACrB,0HAAA,qBAAqB,OAAA;AACrB,uHAAA,kBAAkB,OAAA;AAOpB,+CAI2B;AAHzB,2GAAA,cAAc,OAAA;AACd,iHAAA,oBAAoB,OAAA;AACpB,+GAAA,kBAAkB,OAAA;AAYpB,iDAI4B;AAH1B,qHAAA,uBAAuB,OAAA;AACvB,qHAAA,uBAAuB,OAAA;AACvB,yHAAA,2BAA2B,OAAA;AAG7B,qDAM2B;AALzB,iHAAA,cAAc,OAAA;AACd,sHAAA,mBAAmB,OAAA;AACnB,sHAAA,mBAAmB,OAAA;AACnB,kHAAA,eAAe,OAAA;AACf,iHAAA,cAAc,OAAA;AAIhB,uCAIoB;AAHlB,qHAAA,yBAAyB,OAAA;AACzB,0GAAA,cAAc,OAAA;AACd,6GAAA,iBAAiB,OAAA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { EventService } from '../events/event.service';
|
|
2
|
+
export type IntegrationHttpMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
|
|
3
|
+
export interface IntegrationRequestMeta {
|
|
4
|
+
conversationId?: string;
|
|
5
|
+
runtimeInstanceId?: string;
|
|
6
|
+
providerCallId?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface IntegrationRequest {
|
|
9
|
+
/** Stable name for events / debug (e.g. "booking.availability"). */
|
|
10
|
+
name: string;
|
|
11
|
+
url: string;
|
|
12
|
+
method?: IntegrationHttpMethod;
|
|
13
|
+
body?: unknown;
|
|
14
|
+
headers?: Record<string, string>;
|
|
15
|
+
/**
|
|
16
|
+
* Name of the .env key that holds this integration's HMAC secret.
|
|
17
|
+
* Example: "INTEGRATION_API_JWT_SECRET"
|
|
18
|
+
*/
|
|
19
|
+
secretEnvKey: string;
|
|
20
|
+
timeoutMs?: number;
|
|
21
|
+
ttlSeconds?: number;
|
|
22
|
+
meta?: IntegrationRequestMeta;
|
|
23
|
+
}
|
|
24
|
+
export interface IntegrationResponse<T = unknown> {
|
|
25
|
+
ok: boolean;
|
|
26
|
+
status: number;
|
|
27
|
+
body: T | string | null;
|
|
28
|
+
headers: Record<string, string>;
|
|
29
|
+
durationMs: number;
|
|
30
|
+
bodySha256: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Pre-baked outbound HTTP client: JWT HS256 over the body, `x-signature` header.
|
|
34
|
+
* Every attempt emits INTEGRATION_REQUEST / RESPONSE / ERROR for listeners.
|
|
35
|
+
*/
|
|
36
|
+
export declare class IntegrationClient {
|
|
37
|
+
private readonly events;
|
|
38
|
+
constructor(events: EventService);
|
|
39
|
+
request<T = unknown>(input: IntegrationRequest): Promise<IntegrationResponse<T>>;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=integration-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integration-client.d.ts","sourceRoot":"","sources":["../../src/integrations/integration-client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AASvD,MAAM,MAAM,qBAAqB,GAC7B,KAAK,GACL,MAAM,GACN,KAAK,GACL,OAAO,GACP,QAAQ,CAAC;AAEb,MAAM,WAAW,sBAAsB;IACrC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,kBAAkB;IACjC,oEAAoE;IACpE,IAAI,EAAE,MAAM,C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