zavudev 0.20.0 → 0.21.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/README.md +1 -1
- data/lib/zavudev/client.rb +20 -0
- data/lib/zavudev/models/agent_create_params.rb +278 -0
- data/lib/zavudev/models/agent_create_response.rb +17 -0
- data/lib/zavudev/models/{contact_dismiss_merge_suggestion_params.rb → agent_delete_params.rb} +6 -6
- data/lib/zavudev/models/agent_list_params.rb +26 -0
- data/lib/zavudev/models/agent_list_voices_params.rb +22 -0
- data/lib/zavudev/models/agent_list_voices_response.rb +57 -0
- data/lib/zavudev/models/agent_retrieve_params.rb +20 -0
- data/lib/zavudev/models/agent_retrieve_response.rb +17 -0
- data/lib/zavudev/models/agent_template_list_params.rb +14 -0
- data/lib/zavudev/models/agent_template_list_response.rb +77 -0
- data/lib/zavudev/models/agent_template_retrieve_params.rb +20 -0
- data/lib/zavudev/models/agent_template_retrieve_response.rb +144 -0
- data/lib/zavudev/models/agent_test_params.rb +91 -0
- data/lib/zavudev/models/agent_test_response.rb +117 -0
- data/lib/zavudev/models/agent_update_params.rb +295 -0
- data/lib/zavudev/models/agent_update_response.rb +17 -0
- data/lib/zavudev/models/agents/sender_connect_params.rb +31 -0
- data/lib/zavudev/models/agents/sender_connect_response.rb +19 -0
- data/lib/zavudev/models/agents/sender_disconnect_params.rb +28 -0
- data/lib/zavudev/models/call_create_params.rb +72 -0
- data/lib/zavudev/models/call_create_response.rb +262 -0
- data/lib/zavudev/models/call_hangup_params.rb +20 -0
- data/lib/zavudev/models/call_hangup_response.rb +262 -0
- data/lib/zavudev/models/call_list_params.rb +95 -0
- data/lib/zavudev/models/call_list_response.rb +251 -0
- data/lib/zavudev/models/call_retrieve_params.rb +20 -0
- data/lib/zavudev/models/call_retrieve_response.rb +262 -0
- data/lib/zavudev/models/contact.rb +1 -9
- data/lib/zavudev/models/contact_list_params.rb +42 -3
- data/lib/zavudev/models/contact_update_params.rb +14 -1
- data/lib/zavudev/models/conversation_list_messages_params.rb +36 -0
- data/lib/zavudev/models/conversation_list_params.rb +85 -0
- data/lib/zavudev/models/conversation_list_response.rb +226 -0
- data/lib/zavudev/models/conversation_mark_as_read_params.rb +20 -0
- data/lib/zavudev/models/conversation_mark_as_read_response.rb +245 -0
- data/lib/zavudev/models/conversation_retrieve_params.rb +20 -0
- data/lib/zavudev/models/conversation_retrieve_response.rb +244 -0
- data/lib/zavudev/models/email_domain_create_params.rb +22 -0
- data/lib/zavudev/models/email_domain_create_response.rb +134 -0
- data/lib/zavudev/models/email_domain_delete_params.rb +20 -0
- data/lib/zavudev/models/email_domain_list_params.rb +14 -0
- data/lib/zavudev/models/email_domain_list_response.rb +132 -0
- data/lib/zavudev/models/email_domain_retrieve_params.rb +20 -0
- data/lib/zavudev/models/email_domain_retrieve_response.rb +134 -0
- data/lib/zavudev/models/email_domain_verify_params.rb +20 -0
- data/lib/zavudev/models/email_domain_verify_response.rb +134 -0
- data/lib/zavudev/models/function_list_deployments_params.rb +26 -0
- data/lib/zavudev/models/function_list_deployments_response.rb +95 -0
- data/lib/zavudev/models/function_list_event_types_params.rb +14 -0
- data/lib/zavudev/models/function_list_event_types_response.rb +16 -0
- data/lib/zavudev/models/function_rollback_deployment_params.rb +29 -0
- data/lib/zavudev/models/function_rollback_deployment_response.rb +137 -0
- data/lib/zavudev/models/functions/git_link_deploy_now_params.rb +22 -0
- data/lib/zavudev/models/functions/git_link_deploy_now_response.rb +18 -0
- data/lib/zavudev/models/functions/git_link_link_params.rb +59 -0
- data/lib/zavudev/models/functions/git_link_link_response.rb +222 -0
- data/lib/zavudev/models/functions/git_link_retrieve_params.rb +22 -0
- data/lib/zavudev/models/functions/git_link_retrieve_response.rb +222 -0
- data/lib/zavudev/models/functions/git_link_unlink_params.rb +22 -0
- data/lib/zavudev/models/functions/git_link_update_params.rb +40 -0
- data/lib/zavudev/models/functions/git_link_update_response.rb +222 -0
- data/lib/zavudev/models/functions/trigger_create_params.rb +51 -0
- data/lib/zavudev/models/functions/trigger_create_response.rb +120 -0
- data/lib/zavudev/models/functions/trigger_delete_params.rb +22 -0
- data/lib/zavudev/models/functions/trigger_list_params.rb +22 -0
- data/lib/zavudev/models/functions/trigger_list_response.rb +105 -0
- data/lib/zavudev/models/functions/trigger_update_params.rb +28 -0
- data/lib/zavudev/models/functions/trigger_update_response.rb +24 -0
- data/lib/zavudev/models/introspect_validate_email_params.rb +30 -0
- data/lib/zavudev/models/introspect_validate_email_response.rb +145 -0
- data/lib/zavudev/models/message.rb +24 -1
- data/lib/zavudev/models/message_content.rb +148 -1
- data/lib/zavudev/models/message_list_attachments_params.rb +20 -0
- data/lib/zavudev/models/message_list_attachments_response.rb +90 -0
- data/lib/zavudev/models/phone_number_type.rb +4 -0
- data/lib/zavudev/models/senders/agent/knowledge_bases/document_retrieve_document_params.rb +38 -0
- data/lib/zavudev/models/senders/agent/knowledge_bases/document_retrieve_document_response.rb +22 -0
- data/lib/zavudev/models/senders/agent/knowledge_bases/document_update_document_params.rb +50 -0
- data/lib/zavudev/models/senders/agent/knowledge_bases/document_update_document_response.rb +22 -0
- data/lib/zavudev/models/senders/agent/tool_list_test_runs_params.rb +36 -0
- data/lib/zavudev/models/senders/agent/tool_list_test_runs_response.rb +101 -0
- data/lib/zavudev/models/senders/agent/tools/webhook_rotate_secret_params.rb +32 -0
- data/lib/zavudev/models/senders/telegram_connect_params.rb +31 -0
- data/lib/zavudev/models/senders/telegram_connect_response.rb +41 -0
- data/lib/zavudev/models/senders/telegram_disconnect_params.rb +22 -0
- data/lib/zavudev/models/template_sync_params.rb +26 -0
- data/lib/zavudev/models/template_sync_response.rb +63 -0
- data/lib/zavudev/models/url_escalate_params.rb +29 -0
- data/lib/zavudev/models/url_escalate_response.rb +22 -0
- data/lib/zavudev/models/webhook_event.rb +6 -1
- data/lib/zavudev/models.rb +60 -2
- data/lib/zavudev/resources/agent_templates.rb +56 -0
- data/lib/zavudev/resources/agents/senders.rb +70 -0
- data/lib/zavudev/resources/agents.rb +253 -0
- data/lib/zavudev/resources/broadcasts.rb +16 -6
- data/lib/zavudev/resources/calls.rb +147 -0
- data/lib/zavudev/resources/contacts.rb +19 -23
- data/lib/zavudev/resources/conversations.rb +124 -0
- data/lib/zavudev/resources/email_domains.rb +113 -0
- data/lib/zavudev/resources/functions/git_link.rb +151 -0
- data/lib/zavudev/resources/functions/triggers.rb +116 -0
- data/lib/zavudev/resources/functions.rb +82 -0
- data/lib/zavudev/resources/introspect.rb +33 -0
- data/lib/zavudev/resources/messages.rb +54 -0
- data/lib/zavudev/resources/number_10dlc/brands.rb +10 -5
- data/lib/zavudev/resources/number_10dlc/campaigns.rb +8 -7
- data/lib/zavudev/resources/senders/agent/knowledge_bases/documents.rb +71 -0
- data/lib/zavudev/resources/senders/agent/tools/webhook.rb +47 -0
- data/lib/zavudev/resources/senders/agent/tools.rb +37 -0
- data/lib/zavudev/resources/senders/telegram.rb +61 -0
- data/lib/zavudev/resources/senders.rb +4 -0
- data/lib/zavudev/resources/templates.rb +45 -0
- data/lib/zavudev/resources/urls.rb +25 -0
- data/lib/zavudev/version.rb +1 -1
- data/lib/zavudev.rb +93 -1
- data/rbi/zavudev/client.rbi +15 -0
- data/rbi/zavudev/models/agent_create_params.rbi +417 -0
- data/rbi/zavudev/models/agent_create_response.rbi +37 -0
- data/rbi/zavudev/models/agent_delete_params.rbi +35 -0
- data/rbi/zavudev/models/agent_list_params.rbi +49 -0
- data/rbi/zavudev/models/agent_list_voices_params.rbi +43 -0
- data/rbi/zavudev/models/agent_list_voices_response.rbi +95 -0
- data/rbi/zavudev/models/agent_retrieve_params.rbi +35 -0
- data/rbi/zavudev/models/agent_retrieve_response.rbi +37 -0
- data/rbi/zavudev/models/agent_template_list_params.rbi +27 -0
- data/rbi/zavudev/models/agent_template_list_response.rbi +153 -0
- data/rbi/zavudev/models/agent_template_retrieve_params.rbi +38 -0
- data/rbi/zavudev/models/agent_template_retrieve_response.rbi +266 -0
- data/rbi/zavudev/models/agent_test_params.rbi +161 -0
- data/rbi/zavudev/models/agent_test_response.rbi +176 -0
- data/rbi/zavudev/models/agent_update_params.rbi +441 -0
- data/rbi/zavudev/models/agent_update_response.rbi +37 -0
- data/rbi/zavudev/models/agents/sender_connect_params.rbi +54 -0
- data/rbi/zavudev/models/agents/sender_connect_response.rbi +39 -0
- data/rbi/zavudev/models/agents/sender_disconnect_params.rbi +48 -0
- data/rbi/zavudev/models/call_create_params.rbi +112 -0
- data/rbi/zavudev/models/call_create_response.rbi +466 -0
- data/rbi/zavudev/models/call_hangup_params.rbi +35 -0
- data/rbi/zavudev/models/call_hangup_response.rbi +466 -0
- data/rbi/zavudev/models/call_list_params.rbi +159 -0
- data/rbi/zavudev/models/call_list_response.rbi +405 -0
- data/rbi/zavudev/models/call_retrieve_params.rbi +35 -0
- data/rbi/zavudev/models/call_retrieve_response.rbi +472 -0
- data/rbi/zavudev/models/contact.rbi +0 -11
- data/rbi/zavudev/models/contact_list_params.rbi +56 -0
- data/rbi/zavudev/models/contact_update_params.rbi +12 -0
- data/rbi/zavudev/models/conversation_list_messages_params.rbi +64 -0
- data/rbi/zavudev/models/conversation_list_params.rbi +167 -0
- data/rbi/zavudev/models/conversation_list_response.rbi +367 -0
- data/rbi/zavudev/models/conversation_mark_as_read_params.rbi +38 -0
- data/rbi/zavudev/models/conversation_mark_as_read_response.rbi +436 -0
- data/rbi/zavudev/models/conversation_retrieve_params.rbi +35 -0
- data/rbi/zavudev/models/conversation_retrieve_response.rbi +436 -0
- data/rbi/zavudev/models/email_domain_create_params.rbi +40 -0
- data/rbi/zavudev/models/email_domain_create_response.rbi +259 -0
- data/rbi/zavudev/models/email_domain_delete_params.rbi +35 -0
- data/rbi/zavudev/models/email_domain_list_params.rbi +27 -0
- data/rbi/zavudev/models/email_domain_list_response.rbi +253 -0
- data/rbi/zavudev/models/email_domain_retrieve_params.rbi +35 -0
- data/rbi/zavudev/models/email_domain_retrieve_response.rbi +259 -0
- data/rbi/zavudev/models/email_domain_verify_params.rbi +35 -0
- data/rbi/zavudev/models/email_domain_verify_response.rbi +259 -0
- data/rbi/zavudev/models/function_list_deployments_params.rbi +49 -0
- data/rbi/zavudev/models/function_list_deployments_response.rbi +211 -0
- data/rbi/zavudev/models/function_list_event_types_params.rbi +30 -0
- data/rbi/zavudev/models/function_list_event_types_response.rbi +26 -0
- data/rbi/zavudev/models/function_rollback_deployment_params.rbi +52 -0
- data/rbi/zavudev/models/function_rollback_deployment_response.rbi +240 -0
- data/rbi/zavudev/models/functions/git_link_deploy_now_params.rbi +40 -0
- data/rbi/zavudev/models/functions/git_link_deploy_now_response.rbi +28 -0
- data/rbi/zavudev/models/functions/git_link_link_params.rbi +87 -0
- data/rbi/zavudev/models/functions/git_link_link_response.rbi +360 -0
- data/rbi/zavudev/models/functions/git_link_retrieve_params.rbi +40 -0
- data/rbi/zavudev/models/functions/git_link_retrieve_response.rbi +364 -0
- data/rbi/zavudev/models/functions/git_link_unlink_params.rbi +40 -0
- data/rbi/zavudev/models/functions/git_link_update_params.rbi +70 -0
- data/rbi/zavudev/models/functions/git_link_update_response.rbi +362 -0
- data/rbi/zavudev/models/functions/trigger_create_params.rbi +75 -0
- data/rbi/zavudev/models/functions/trigger_create_response.rbi +168 -0
- data/rbi/zavudev/models/functions/trigger_delete_params.rbi +40 -0
- data/rbi/zavudev/models/functions/trigger_list_params.rbi +40 -0
- data/rbi/zavudev/models/functions/trigger_list_response.rbi +152 -0
- data/rbi/zavudev/models/functions/trigger_update_params.rbi +48 -0
- data/rbi/zavudev/models/functions/trigger_update_response.rbi +33 -0
- data/rbi/zavudev/models/introspect_validate_email_params.rbi +60 -0
- data/rbi/zavudev/models/introspect_validate_email_response.rbi +328 -0
- data/rbi/zavudev/models/message.rbi +29 -0
- data/rbi/zavudev/models/message_content.rbi +260 -0
- data/rbi/zavudev/models/{contact_dismiss_merge_suggestion_params.rbi → message_list_attachments_params.rbi} +6 -6
- data/rbi/zavudev/models/message_list_attachments_response.rbi +136 -0
- data/rbi/zavudev/models/phone_number_type.rbi +4 -0
- data/rbi/zavudev/models/senders/agent/knowledge_bases/document_retrieve_document_params.rbi +57 -0
- data/rbi/zavudev/models/senders/agent/knowledge_bases/document_retrieve_document_response.rbi +47 -0
- data/rbi/zavudev/models/senders/agent/knowledge_bases/document_update_document_params.rbi +80 -0
- data/rbi/zavudev/models/senders/agent/knowledge_bases/document_update_document_response.rbi +47 -0
- data/rbi/zavudev/models/senders/agent/tool_list_test_runs_params.rbi +58 -0
- data/rbi/zavudev/models/senders/agent/tool_list_test_runs_response.rbi +152 -0
- data/rbi/zavudev/models/senders/agent/tools/webhook_rotate_secret_params.rbi +52 -0
- data/rbi/zavudev/models/senders/telegram_connect_params.rbi +54 -0
- data/rbi/zavudev/models/senders/telegram_connect_response.rbi +93 -0
- data/rbi/zavudev/models/senders/telegram_disconnect_params.rbi +40 -0
- data/rbi/zavudev/models/template_sync_params.rbi +45 -0
- data/rbi/zavudev/models/template_sync_response.rbi +86 -0
- data/rbi/zavudev/models/url_escalate_params.rbi +49 -0
- data/rbi/zavudev/models/url_escalate_response.rbi +36 -0
- data/rbi/zavudev/models/webhook_event.rbi +6 -1
- data/rbi/zavudev/models.rbi +62 -3
- data/rbi/zavudev/resources/agent_templates.rbi +36 -0
- data/rbi/zavudev/resources/agents/senders.rbi +50 -0
- data/rbi/zavudev/resources/agents.rbi +204 -0
- data/rbi/zavudev/resources/broadcasts.rbi +16 -6
- data/rbi/zavudev/resources/calls.rbi +132 -0
- data/rbi/zavudev/resources/contacts.rbi +34 -11
- data/rbi/zavudev/resources/conversations.rbi +98 -0
- data/rbi/zavudev/resources/email_domains.rbi +67 -0
- data/rbi/zavudev/resources/functions/git_link.rbi +116 -0
- data/rbi/zavudev/resources/functions/triggers.rbi +81 -0
- data/rbi/zavudev/resources/functions.rbi +55 -0
- data/rbi/zavudev/resources/introspect.rbi +26 -0
- data/rbi/zavudev/resources/messages.rbi +45 -0
- data/rbi/zavudev/resources/number_10dlc/brands.rbi +10 -5
- data/rbi/zavudev/resources/number_10dlc/campaigns.rbi +8 -7
- data/rbi/zavudev/resources/senders/agent/knowledge_bases/documents.rbi +48 -0
- data/rbi/zavudev/resources/senders/agent/tools/webhook.rbi +31 -0
- data/rbi/zavudev/resources/senders/agent/tools.rbi +25 -0
- data/rbi/zavudev/resources/senders/telegram.rbi +42 -0
- data/rbi/zavudev/resources/senders.rbi +3 -0
- data/rbi/zavudev/resources/templates.rbi +35 -0
- data/rbi/zavudev/resources/urls.rbi +17 -0
- data/sig/zavudev/client.rbs +10 -0
- data/sig/zavudev/models/agent_create_params.rbs +234 -0
- data/sig/zavudev/models/agent_create_response.rbs +13 -0
- data/sig/zavudev/models/agent_delete_params.rbs +23 -0
- data/sig/zavudev/models/agent_list_params.rbs +32 -0
- data/sig/zavudev/models/agent_list_voices_params.rbs +25 -0
- data/sig/zavudev/models/agent_list_voices_response.rbs +46 -0
- data/sig/zavudev/models/agent_retrieve_params.rbs +23 -0
- data/sig/zavudev/models/agent_retrieve_response.rbs +13 -0
- data/sig/zavudev/models/agent_template_list_params.rbs +15 -0
- data/sig/zavudev/models/agent_template_list_response.rbs +73 -0
- data/sig/zavudev/models/agent_template_retrieve_params.rbs +23 -0
- data/sig/zavudev/models/agent_template_retrieve_response.rbs +112 -0
- data/sig/zavudev/models/agent_test_params.rbs +87 -0
- data/sig/zavudev/models/agent_test_response.rbs +78 -0
- data/sig/zavudev/models/agent_update_params.rbs +259 -0
- data/sig/zavudev/models/agent_update_response.rbs +13 -0
- data/sig/zavudev/models/agents/sender_connect_params.rbs +30 -0
- data/sig/zavudev/models/agents/sender_connect_response.rbs +15 -0
- data/sig/zavudev/models/agents/sender_disconnect_params.rbs +30 -0
- data/sig/zavudev/models/call_create_params.rbs +61 -0
- data/sig/zavudev/models/call_create_response.rbs +194 -0
- data/sig/zavudev/models/call_hangup_params.rbs +23 -0
- data/sig/zavudev/models/call_hangup_response.rbs +194 -0
- data/sig/zavudev/models/call_list_params.rbs +89 -0
- data/sig/zavudev/models/call_list_response.rbs +183 -0
- data/sig/zavudev/models/call_retrieve_params.rbs +23 -0
- data/sig/zavudev/models/call_retrieve_response.rbs +196 -0
- data/sig/zavudev/models/contact.rbs +0 -7
- data/sig/zavudev/models/contact_list_params.rbs +19 -1
- data/sig/zavudev/models/contact_update_params.rbs +5 -0
- data/sig/zavudev/models/conversation_list_messages_params.rbs +36 -0
- data/sig/zavudev/models/conversation_list_params.rbs +83 -0
- data/sig/zavudev/models/conversation_list_response.rbs +184 -0
- data/sig/zavudev/models/conversation_mark_as_read_params.rbs +23 -0
- data/sig/zavudev/models/conversation_mark_as_read_response.rbs +201 -0
- data/sig/zavudev/models/conversation_retrieve_params.rbs +23 -0
- data/sig/zavudev/models/conversation_retrieve_response.rbs +201 -0
- data/sig/zavudev/models/email_domain_create_params.rbs +23 -0
- data/sig/zavudev/models/email_domain_create_response.rbs +116 -0
- data/sig/zavudev/models/email_domain_delete_params.rbs +23 -0
- data/sig/zavudev/models/email_domain_list_params.rbs +15 -0
- data/sig/zavudev/models/email_domain_list_response.rbs +116 -0
- data/sig/zavudev/models/email_domain_retrieve_params.rbs +23 -0
- data/sig/zavudev/models/email_domain_retrieve_response.rbs +116 -0
- data/sig/zavudev/models/email_domain_verify_params.rbs +23 -0
- data/sig/zavudev/models/email_domain_verify_response.rbs +116 -0
- data/sig/zavudev/models/function_list_deployments_params.rbs +30 -0
- data/sig/zavudev/models/function_list_deployments_response.rbs +107 -0
- data/sig/zavudev/models/function_list_event_types_params.rbs +15 -0
- data/sig/zavudev/models/function_list_event_types_response.rbs +13 -0
- data/sig/zavudev/models/function_rollback_deployment_params.rbs +28 -0
- data/sig/zavudev/models/function_rollback_deployment_response.rbs +117 -0
- data/sig/zavudev/models/functions/git_link_deploy_now_params.rbs +25 -0
- data/sig/zavudev/models/functions/git_link_deploy_now_response.rbs +15 -0
- data/sig/zavudev/models/functions/git_link_link_params.rbs +59 -0
- data/sig/zavudev/models/functions/git_link_link_response.rbs +159 -0
- data/sig/zavudev/models/functions/git_link_retrieve_params.rbs +25 -0
- data/sig/zavudev/models/functions/git_link_retrieve_response.rbs +159 -0
- data/sig/zavudev/models/functions/git_link_unlink_params.rbs +25 -0
- data/sig/zavudev/models/functions/git_link_update_params.rbs +47 -0
- data/sig/zavudev/models/functions/git_link_update_response.rbs +159 -0
- data/sig/zavudev/models/functions/trigger_create_params.rbs +45 -0
- data/sig/zavudev/models/functions/trigger_create_response.rbs +94 -0
- data/sig/zavudev/models/functions/trigger_delete_params.rbs +25 -0
- data/sig/zavudev/models/functions/trigger_list_params.rbs +25 -0
- data/sig/zavudev/models/functions/trigger_list_response.rbs +84 -0
- data/sig/zavudev/models/functions/trigger_update_params.rbs +30 -0
- data/sig/zavudev/models/functions/trigger_update_response.rbs +17 -0
- data/sig/zavudev/models/introspect_validate_email_params.rbs +32 -0
- data/sig/zavudev/models/introspect_validate_email_response.rbs +135 -0
- data/sig/zavudev/models/message.rbs +16 -0
- data/sig/zavudev/models/message_content.rbs +117 -0
- data/sig/zavudev/models/{contact_dismiss_merge_suggestion_params.rbs → message_list_attachments_params.rbs} +6 -6
- data/sig/zavudev/models/message_list_attachments_response.rbs +70 -0
- data/sig/zavudev/models/phone_number_type.rbs +2 -1
- data/sig/zavudev/models/senders/agent/knowledge_bases/document_retrieve_document_params.rbs +38 -0
- data/sig/zavudev/models/senders/agent/knowledge_bases/document_retrieve_document_response.rbs +22 -0
- data/sig/zavudev/models/senders/agent/knowledge_bases/document_update_document_params.rbs +56 -0
- data/sig/zavudev/models/senders/agent/knowledge_bases/document_update_document_response.rbs +22 -0
- data/sig/zavudev/models/senders/agent/tool_list_test_runs_params.rbs +38 -0
- data/sig/zavudev/models/senders/agent/tool_list_test_runs_response.rbs +83 -0
- data/sig/zavudev/models/senders/agent/tools/webhook_rotate_secret_params.rbs +34 -0
- data/sig/zavudev/models/senders/telegram_connect_params.rbs +30 -0
- data/sig/zavudev/models/senders/telegram_connect_response.rbs +49 -0
- data/sig/zavudev/models/senders/telegram_disconnect_params.rbs +25 -0
- data/sig/zavudev/models/template_sync_params.rbs +25 -0
- data/sig/zavudev/models/template_sync_response.rbs +45 -0
- data/sig/zavudev/models/url_escalate_params.rbs +28 -0
- data/sig/zavudev/models/url_escalate_response.rbs +15 -0
- data/sig/zavudev/models.rbs +60 -2
- data/sig/zavudev/resources/agent_templates.rbs +16 -0
- data/sig/zavudev/resources/agents/senders.rbs +21 -0
- data/sig/zavudev/resources/agents.rbs +72 -0
- data/sig/zavudev/resources/calls.rbs +35 -0
- data/sig/zavudev/resources/contacts.rbs +3 -5
- data/sig/zavudev/resources/conversations.rbs +33 -0
- data/sig/zavudev/resources/email_domains.rbs +31 -0
- data/sig/zavudev/resources/functions/git_link.rbs +42 -0
- data/sig/zavudev/resources/functions/triggers.rbs +33 -0
- data/sig/zavudev/resources/functions.rbs +20 -0
- data/sig/zavudev/resources/introspect.rbs +6 -0
- data/sig/zavudev/resources/messages.rbs +5 -0
- data/sig/zavudev/resources/senders/agent/knowledge_bases/documents.rbs +16 -0
- data/sig/zavudev/resources/senders/agent/tools/webhook.rbs +19 -0
- data/sig/zavudev/resources/senders/agent/tools.rbs +9 -0
- data/sig/zavudev/resources/senders/telegram.rbs +20 -0
- data/sig/zavudev/resources/senders.rbs +2 -0
- data/sig/zavudev/resources/templates.rbs +5 -0
- data/sig/zavudev/resources/urls.rbs +6 -0
- metadata +281 -5
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Zavudev
|
|
4
|
+
module Models
|
|
5
|
+
# @see Zavudev::Resources::Calls#list
|
|
6
|
+
class CallListParams < Zavudev::Internal::Type::BaseModel
|
|
7
|
+
extend Zavudev::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Zavudev::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute cursor
|
|
11
|
+
#
|
|
12
|
+
# @return [String, nil]
|
|
13
|
+
optional :cursor, String
|
|
14
|
+
|
|
15
|
+
# @!attribute direction
|
|
16
|
+
# Whether the call was placed by Zavu (outbound) or received from a caller
|
|
17
|
+
# (inbound).
|
|
18
|
+
#
|
|
19
|
+
# @return [Symbol, Zavudev::Models::CallListParams::Direction, nil]
|
|
20
|
+
optional :direction, enum: -> { Zavudev::CallListParams::Direction }
|
|
21
|
+
|
|
22
|
+
# @!attribute limit
|
|
23
|
+
#
|
|
24
|
+
# @return [Integer, nil]
|
|
25
|
+
optional :limit, Integer
|
|
26
|
+
|
|
27
|
+
# @!attribute status
|
|
28
|
+
# Lifecycle status of a voice call.
|
|
29
|
+
#
|
|
30
|
+
# - `queued`: outbound call created, not yet dialing.
|
|
31
|
+
# - `ringing`: dialing (outbound) or received and ringing (inbound).
|
|
32
|
+
# - `in_progress`: answered, the agent is connected.
|
|
33
|
+
# - `completed`: ended after a conversation.
|
|
34
|
+
# - `failed`: could not be completed.
|
|
35
|
+
# - `busy`: the line was busy.
|
|
36
|
+
# - `no_answer`: rang but was not answered.
|
|
37
|
+
# - `canceled`: canceled before it was answered.
|
|
38
|
+
#
|
|
39
|
+
# @return [Symbol, Zavudev::Models::CallListParams::Status, nil]
|
|
40
|
+
optional :status, enum: -> { Zavudev::CallListParams::Status }
|
|
41
|
+
|
|
42
|
+
# @!method initialize(cursor: nil, direction: nil, limit: nil, status: nil, request_options: {})
|
|
43
|
+
# Some parameter documentations has been truncated, see
|
|
44
|
+
# {Zavudev::Models::CallListParams} for more details.
|
|
45
|
+
#
|
|
46
|
+
# @param cursor [String]
|
|
47
|
+
#
|
|
48
|
+
# @param direction [Symbol, Zavudev::Models::CallListParams::Direction] Whether the call was placed by Zavu (outbound) or received from a caller (inboun
|
|
49
|
+
#
|
|
50
|
+
# @param limit [Integer]
|
|
51
|
+
#
|
|
52
|
+
# @param status [Symbol, Zavudev::Models::CallListParams::Status] Lifecycle status of a voice call.
|
|
53
|
+
#
|
|
54
|
+
# @param request_options [Zavudev::RequestOptions, Hash{Symbol=>Object}]
|
|
55
|
+
|
|
56
|
+
# Whether the call was placed by Zavu (outbound) or received from a caller
|
|
57
|
+
# (inbound).
|
|
58
|
+
module Direction
|
|
59
|
+
extend Zavudev::Internal::Type::Enum
|
|
60
|
+
|
|
61
|
+
INBOUND = :inbound
|
|
62
|
+
OUTBOUND = :outbound
|
|
63
|
+
|
|
64
|
+
# @!method self.values
|
|
65
|
+
# @return [Array<Symbol>]
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Lifecycle status of a voice call.
|
|
69
|
+
#
|
|
70
|
+
# - `queued`: outbound call created, not yet dialing.
|
|
71
|
+
# - `ringing`: dialing (outbound) or received and ringing (inbound).
|
|
72
|
+
# - `in_progress`: answered, the agent is connected.
|
|
73
|
+
# - `completed`: ended after a conversation.
|
|
74
|
+
# - `failed`: could not be completed.
|
|
75
|
+
# - `busy`: the line was busy.
|
|
76
|
+
# - `no_answer`: rang but was not answered.
|
|
77
|
+
# - `canceled`: canceled before it was answered.
|
|
78
|
+
module Status
|
|
79
|
+
extend Zavudev::Internal::Type::Enum
|
|
80
|
+
|
|
81
|
+
QUEUED = :queued
|
|
82
|
+
RINGING = :ringing
|
|
83
|
+
IN_PROGRESS = :in_progress
|
|
84
|
+
COMPLETED = :completed
|
|
85
|
+
FAILED = :failed
|
|
86
|
+
BUSY = :busy
|
|
87
|
+
NO_ANSWER = :no_answer
|
|
88
|
+
CANCELED = :canceled
|
|
89
|
+
|
|
90
|
+
# @!method self.values
|
|
91
|
+
# @return [Array<Symbol>]
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
end
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Zavudev
|
|
4
|
+
module Models
|
|
5
|
+
# @see Zavudev::Resources::Calls#list
|
|
6
|
+
class CallListResponse < Zavudev::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute id
|
|
8
|
+
#
|
|
9
|
+
# @return [String]
|
|
10
|
+
required :id, String
|
|
11
|
+
|
|
12
|
+
# @!attribute created_at
|
|
13
|
+
#
|
|
14
|
+
# @return [Time]
|
|
15
|
+
required :created_at, Time, api_name: :createdAt
|
|
16
|
+
|
|
17
|
+
# @!attribute direction
|
|
18
|
+
# Whether the call was placed by Zavu (outbound) or received from a caller
|
|
19
|
+
# (inbound).
|
|
20
|
+
#
|
|
21
|
+
# @return [Symbol, Zavudev::Models::CallListResponse::Direction]
|
|
22
|
+
required :direction, enum: -> { Zavudev::Models::CallListResponse::Direction }
|
|
23
|
+
|
|
24
|
+
# @!attribute from
|
|
25
|
+
# Caller phone number in E.164 format. Your sender's number for outbound calls;
|
|
26
|
+
# the caller's number for inbound calls.
|
|
27
|
+
#
|
|
28
|
+
# @return [String]
|
|
29
|
+
required :from, String
|
|
30
|
+
|
|
31
|
+
# @!attribute status
|
|
32
|
+
# Lifecycle status of a voice call.
|
|
33
|
+
#
|
|
34
|
+
# - `queued`: outbound call created, not yet dialing.
|
|
35
|
+
# - `ringing`: dialing (outbound) or received and ringing (inbound).
|
|
36
|
+
# - `in_progress`: answered, the agent is connected.
|
|
37
|
+
# - `completed`: ended after a conversation.
|
|
38
|
+
# - `failed`: could not be completed.
|
|
39
|
+
# - `busy`: the line was busy.
|
|
40
|
+
# - `no_answer`: rang but was not answered.
|
|
41
|
+
# - `canceled`: canceled before it was answered.
|
|
42
|
+
#
|
|
43
|
+
# @return [Symbol, Zavudev::Models::CallListResponse::Status]
|
|
44
|
+
required :status, enum: -> { Zavudev::Models::CallListResponse::Status }
|
|
45
|
+
|
|
46
|
+
# @!attribute to
|
|
47
|
+
# Callee phone number in E.164 format.
|
|
48
|
+
#
|
|
49
|
+
# @return [String]
|
|
50
|
+
required :to, String
|
|
51
|
+
|
|
52
|
+
# @!attribute answered_at
|
|
53
|
+
# When the call was answered.
|
|
54
|
+
#
|
|
55
|
+
# @return [Time, nil]
|
|
56
|
+
optional :answered_at, Time, api_name: :answeredAt, nil?: true
|
|
57
|
+
|
|
58
|
+
# @!attribute cost
|
|
59
|
+
# Total cost of the call in USD, combining the managed voice pipeline per-minute
|
|
60
|
+
# charge and telephony. Available once the call has ended.
|
|
61
|
+
#
|
|
62
|
+
# @return [Float, nil]
|
|
63
|
+
optional :cost, Float, nil?: true
|
|
64
|
+
|
|
65
|
+
# @!attribute duration_seconds
|
|
66
|
+
# Billable talk time in seconds, measured from answer to hangup.
|
|
67
|
+
#
|
|
68
|
+
# @return [Integer, nil]
|
|
69
|
+
optional :duration_seconds, Integer, api_name: :durationSeconds, nil?: true
|
|
70
|
+
|
|
71
|
+
# @!attribute ended_at
|
|
72
|
+
# When the call ended.
|
|
73
|
+
#
|
|
74
|
+
# @return [Time, nil]
|
|
75
|
+
optional :ended_at, Time, api_name: :endedAt, nil?: true
|
|
76
|
+
|
|
77
|
+
# @!attribute end_reason
|
|
78
|
+
# Why the call ended (e.g. `agent_ended`, `max_duration`, `transfer`, `hangup`).
|
|
79
|
+
# Present once the call is no longer active.
|
|
80
|
+
#
|
|
81
|
+
# @return [String, nil]
|
|
82
|
+
optional :end_reason, String, api_name: :endReason, nil?: true
|
|
83
|
+
|
|
84
|
+
# @!attribute metadata
|
|
85
|
+
# Arbitrary metadata you attached when creating the call.
|
|
86
|
+
#
|
|
87
|
+
# @return [Hash{Symbol=>String}, nil]
|
|
88
|
+
optional :metadata, Zavudev::Internal::Type::HashOf[String]
|
|
89
|
+
|
|
90
|
+
# @!attribute transcript
|
|
91
|
+
# Ordered transcript of the call. Included when retrieving a single call; omitted
|
|
92
|
+
# from list responses.
|
|
93
|
+
#
|
|
94
|
+
# @return [Array<Zavudev::Models::CallListResponse::Transcript>, nil]
|
|
95
|
+
optional :transcript,
|
|
96
|
+
-> { Zavudev::Internal::Type::ArrayOf[Zavudev::Models::CallListResponse::Transcript] }
|
|
97
|
+
|
|
98
|
+
# @!attribute turn_count
|
|
99
|
+
# Number of conversation turns exchanged during the call.
|
|
100
|
+
#
|
|
101
|
+
# @return [Integer, nil]
|
|
102
|
+
optional :turn_count, Integer, api_name: :turnCount, nil?: true
|
|
103
|
+
|
|
104
|
+
# @!attribute updated_at
|
|
105
|
+
#
|
|
106
|
+
# @return [Time, nil]
|
|
107
|
+
optional :updated_at, Time, api_name: :updatedAt
|
|
108
|
+
|
|
109
|
+
# @!method initialize(id:, created_at:, direction:, from:, status:, to:, answered_at: nil, cost: nil, duration_seconds: nil, ended_at: nil, end_reason: nil, metadata: nil, transcript: nil, turn_count: nil, updated_at: nil)
|
|
110
|
+
# Some parameter documentations has been truncated, see
|
|
111
|
+
# {Zavudev::Models::CallListResponse} for more details.
|
|
112
|
+
#
|
|
113
|
+
# @param id [String]
|
|
114
|
+
#
|
|
115
|
+
# @param created_at [Time]
|
|
116
|
+
#
|
|
117
|
+
# @param direction [Symbol, Zavudev::Models::CallListResponse::Direction] Whether the call was placed by Zavu (outbound) or received from a caller (inboun
|
|
118
|
+
#
|
|
119
|
+
# @param from [String] Caller phone number in E.164 format. Your sender's number for outbound calls; th
|
|
120
|
+
#
|
|
121
|
+
# @param status [Symbol, Zavudev::Models::CallListResponse::Status] Lifecycle status of a voice call.
|
|
122
|
+
#
|
|
123
|
+
# @param to [String] Callee phone number in E.164 format.
|
|
124
|
+
#
|
|
125
|
+
# @param answered_at [Time, nil] When the call was answered.
|
|
126
|
+
#
|
|
127
|
+
# @param cost [Float, nil] Total cost of the call in USD, combining the managed voice pipeline per-minute c
|
|
128
|
+
#
|
|
129
|
+
# @param duration_seconds [Integer, nil] Billable talk time in seconds, measured from answer to hangup.
|
|
130
|
+
#
|
|
131
|
+
# @param ended_at [Time, nil] When the call ended.
|
|
132
|
+
#
|
|
133
|
+
# @param end_reason [String, nil] Why the call ended (e.g. `agent_ended`, `max_duration`, `transfer`, `hangup`). P
|
|
134
|
+
#
|
|
135
|
+
# @param metadata [Hash{Symbol=>String}] Arbitrary metadata you attached when creating the call.
|
|
136
|
+
#
|
|
137
|
+
# @param transcript [Array<Zavudev::Models::CallListResponse::Transcript>] Ordered transcript of the call. Included when retrieving a single call; omitted
|
|
138
|
+
#
|
|
139
|
+
# @param turn_count [Integer, nil] Number of conversation turns exchanged during the call.
|
|
140
|
+
#
|
|
141
|
+
# @param updated_at [Time]
|
|
142
|
+
|
|
143
|
+
# Whether the call was placed by Zavu (outbound) or received from a caller
|
|
144
|
+
# (inbound).
|
|
145
|
+
#
|
|
146
|
+
# @see Zavudev::Models::CallListResponse#direction
|
|
147
|
+
module Direction
|
|
148
|
+
extend Zavudev::Internal::Type::Enum
|
|
149
|
+
|
|
150
|
+
INBOUND = :inbound
|
|
151
|
+
OUTBOUND = :outbound
|
|
152
|
+
|
|
153
|
+
# @!method self.values
|
|
154
|
+
# @return [Array<Symbol>]
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
# Lifecycle status of a voice call.
|
|
158
|
+
#
|
|
159
|
+
# - `queued`: outbound call created, not yet dialing.
|
|
160
|
+
# - `ringing`: dialing (outbound) or received and ringing (inbound).
|
|
161
|
+
# - `in_progress`: answered, the agent is connected.
|
|
162
|
+
# - `completed`: ended after a conversation.
|
|
163
|
+
# - `failed`: could not be completed.
|
|
164
|
+
# - `busy`: the line was busy.
|
|
165
|
+
# - `no_answer`: rang but was not answered.
|
|
166
|
+
# - `canceled`: canceled before it was answered.
|
|
167
|
+
#
|
|
168
|
+
# @see Zavudev::Models::CallListResponse#status
|
|
169
|
+
module Status
|
|
170
|
+
extend Zavudev::Internal::Type::Enum
|
|
171
|
+
|
|
172
|
+
QUEUED = :queued
|
|
173
|
+
RINGING = :ringing
|
|
174
|
+
IN_PROGRESS = :in_progress
|
|
175
|
+
COMPLETED = :completed
|
|
176
|
+
FAILED = :failed
|
|
177
|
+
BUSY = :busy
|
|
178
|
+
NO_ANSWER = :no_answer
|
|
179
|
+
CANCELED = :canceled
|
|
180
|
+
|
|
181
|
+
# @!method self.values
|
|
182
|
+
# @return [Array<Symbol>]
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
class Transcript < Zavudev::Internal::Type::BaseModel
|
|
186
|
+
# @!attribute role
|
|
187
|
+
# Who produced the turn. `tool` records a tool call the agent made during the
|
|
188
|
+
# conversation.
|
|
189
|
+
#
|
|
190
|
+
# @return [Symbol, Zavudev::Models::CallListResponse::Transcript::Role]
|
|
191
|
+
required :role, enum: -> { Zavudev::Models::CallListResponse::Transcript::Role }
|
|
192
|
+
|
|
193
|
+
# @!attribute seq
|
|
194
|
+
# Ordinal position of the turn within the call, starting at 0.
|
|
195
|
+
#
|
|
196
|
+
# @return [Integer]
|
|
197
|
+
required :seq, Integer
|
|
198
|
+
|
|
199
|
+
# @!attribute text
|
|
200
|
+
# Transcribed speech for `user` and `assistant` turns, or a JSON summary of the
|
|
201
|
+
# tool call for `tool` turns.
|
|
202
|
+
#
|
|
203
|
+
# @return [String]
|
|
204
|
+
required :text, String
|
|
205
|
+
|
|
206
|
+
# @!attribute ended_at
|
|
207
|
+
# When the turn ended.
|
|
208
|
+
#
|
|
209
|
+
# @return [Time, nil]
|
|
210
|
+
optional :ended_at, Time, api_name: :endedAt, nil?: true
|
|
211
|
+
|
|
212
|
+
# @!attribute started_at
|
|
213
|
+
# When the turn started.
|
|
214
|
+
#
|
|
215
|
+
# @return [Time, nil]
|
|
216
|
+
optional :started_at, Time, api_name: :startedAt, nil?: true
|
|
217
|
+
|
|
218
|
+
# @!method initialize(role:, seq:, text:, ended_at: nil, started_at: nil)
|
|
219
|
+
# Some parameter documentations has been truncated, see
|
|
220
|
+
# {Zavudev::Models::CallListResponse::Transcript} for more details.
|
|
221
|
+
#
|
|
222
|
+
# A single turn in a voice call transcript.
|
|
223
|
+
#
|
|
224
|
+
# @param role [Symbol, Zavudev::Models::CallListResponse::Transcript::Role] Who produced the turn. `tool` records a tool call the agent made during the conv
|
|
225
|
+
#
|
|
226
|
+
# @param seq [Integer] Ordinal position of the turn within the call, starting at 0.
|
|
227
|
+
#
|
|
228
|
+
# @param text [String] Transcribed speech for `user` and `assistant` turns, or a JSON summary of the to
|
|
229
|
+
#
|
|
230
|
+
# @param ended_at [Time, nil] When the turn ended.
|
|
231
|
+
#
|
|
232
|
+
# @param started_at [Time, nil] When the turn started.
|
|
233
|
+
|
|
234
|
+
# Who produced the turn. `tool` records a tool call the agent made during the
|
|
235
|
+
# conversation.
|
|
236
|
+
#
|
|
237
|
+
# @see Zavudev::Models::CallListResponse::Transcript#role
|
|
238
|
+
module Role
|
|
239
|
+
extend Zavudev::Internal::Type::Enum
|
|
240
|
+
|
|
241
|
+
USER = :user
|
|
242
|
+
ASSISTANT = :assistant
|
|
243
|
+
TOOL = :tool
|
|
244
|
+
|
|
245
|
+
# @!method self.values
|
|
246
|
+
# @return [Array<Symbol>]
|
|
247
|
+
end
|
|
248
|
+
end
|
|
249
|
+
end
|
|
250
|
+
end
|
|
251
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Zavudev
|
|
4
|
+
module Models
|
|
5
|
+
# @see Zavudev::Resources::Calls#retrieve
|
|
6
|
+
class CallRetrieveParams < Zavudev::Internal::Type::BaseModel
|
|
7
|
+
extend Zavudev::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Zavudev::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute call_id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :call_id, String
|
|
14
|
+
|
|
15
|
+
# @!method initialize(call_id:, request_options: {})
|
|
16
|
+
# @param call_id [String]
|
|
17
|
+
# @param request_options [Zavudev::RequestOptions, Hash{Symbol=>Object}]
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Zavudev
|
|
4
|
+
module Models
|
|
5
|
+
# @see Zavudev::Resources::Calls#retrieve
|
|
6
|
+
class CallRetrieveResponse < Zavudev::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute call
|
|
8
|
+
#
|
|
9
|
+
# @return [Zavudev::Models::CallRetrieveResponse::Call]
|
|
10
|
+
required :call, -> { Zavudev::Models::CallRetrieveResponse::Call }
|
|
11
|
+
|
|
12
|
+
# @!method initialize(call:)
|
|
13
|
+
# @param call [Zavudev::Models::CallRetrieveResponse::Call]
|
|
14
|
+
|
|
15
|
+
# @see Zavudev::Models::CallRetrieveResponse#call
|
|
16
|
+
class Call < Zavudev::Internal::Type::BaseModel
|
|
17
|
+
# @!attribute id
|
|
18
|
+
#
|
|
19
|
+
# @return [String]
|
|
20
|
+
required :id, String
|
|
21
|
+
|
|
22
|
+
# @!attribute created_at
|
|
23
|
+
#
|
|
24
|
+
# @return [Time]
|
|
25
|
+
required :created_at, Time, api_name: :createdAt
|
|
26
|
+
|
|
27
|
+
# @!attribute direction
|
|
28
|
+
# Whether the call was placed by Zavu (outbound) or received from a caller
|
|
29
|
+
# (inbound).
|
|
30
|
+
#
|
|
31
|
+
# @return [Symbol, Zavudev::Models::CallRetrieveResponse::Call::Direction]
|
|
32
|
+
required :direction, enum: -> { Zavudev::Models::CallRetrieveResponse::Call::Direction }
|
|
33
|
+
|
|
34
|
+
# @!attribute from
|
|
35
|
+
# Caller phone number in E.164 format. Your sender's number for outbound calls;
|
|
36
|
+
# the caller's number for inbound calls.
|
|
37
|
+
#
|
|
38
|
+
# @return [String]
|
|
39
|
+
required :from, String
|
|
40
|
+
|
|
41
|
+
# @!attribute status
|
|
42
|
+
# Lifecycle status of a voice call.
|
|
43
|
+
#
|
|
44
|
+
# - `queued`: outbound call created, not yet dialing.
|
|
45
|
+
# - `ringing`: dialing (outbound) or received and ringing (inbound).
|
|
46
|
+
# - `in_progress`: answered, the agent is connected.
|
|
47
|
+
# - `completed`: ended after a conversation.
|
|
48
|
+
# - `failed`: could not be completed.
|
|
49
|
+
# - `busy`: the line was busy.
|
|
50
|
+
# - `no_answer`: rang but was not answered.
|
|
51
|
+
# - `canceled`: canceled before it was answered.
|
|
52
|
+
#
|
|
53
|
+
# @return [Symbol, Zavudev::Models::CallRetrieveResponse::Call::Status]
|
|
54
|
+
required :status, enum: -> { Zavudev::Models::CallRetrieveResponse::Call::Status }
|
|
55
|
+
|
|
56
|
+
# @!attribute to
|
|
57
|
+
# Callee phone number in E.164 format.
|
|
58
|
+
#
|
|
59
|
+
# @return [String]
|
|
60
|
+
required :to, String
|
|
61
|
+
|
|
62
|
+
# @!attribute answered_at
|
|
63
|
+
# When the call was answered.
|
|
64
|
+
#
|
|
65
|
+
# @return [Time, nil]
|
|
66
|
+
optional :answered_at, Time, api_name: :answeredAt, nil?: true
|
|
67
|
+
|
|
68
|
+
# @!attribute cost
|
|
69
|
+
# Total cost of the call in USD, combining the managed voice pipeline per-minute
|
|
70
|
+
# charge and telephony. Available once the call has ended.
|
|
71
|
+
#
|
|
72
|
+
# @return [Float, nil]
|
|
73
|
+
optional :cost, Float, nil?: true
|
|
74
|
+
|
|
75
|
+
# @!attribute duration_seconds
|
|
76
|
+
# Billable talk time in seconds, measured from answer to hangup.
|
|
77
|
+
#
|
|
78
|
+
# @return [Integer, nil]
|
|
79
|
+
optional :duration_seconds, Integer, api_name: :durationSeconds, nil?: true
|
|
80
|
+
|
|
81
|
+
# @!attribute ended_at
|
|
82
|
+
# When the call ended.
|
|
83
|
+
#
|
|
84
|
+
# @return [Time, nil]
|
|
85
|
+
optional :ended_at, Time, api_name: :endedAt, nil?: true
|
|
86
|
+
|
|
87
|
+
# @!attribute end_reason
|
|
88
|
+
# Why the call ended (e.g. `agent_ended`, `max_duration`, `transfer`, `hangup`).
|
|
89
|
+
# Present once the call is no longer active.
|
|
90
|
+
#
|
|
91
|
+
# @return [String, nil]
|
|
92
|
+
optional :end_reason, String, api_name: :endReason, nil?: true
|
|
93
|
+
|
|
94
|
+
# @!attribute metadata
|
|
95
|
+
# Arbitrary metadata you attached when creating the call.
|
|
96
|
+
#
|
|
97
|
+
# @return [Hash{Symbol=>String}, nil]
|
|
98
|
+
optional :metadata, Zavudev::Internal::Type::HashOf[String]
|
|
99
|
+
|
|
100
|
+
# @!attribute transcript
|
|
101
|
+
# Ordered transcript of the call. Included when retrieving a single call; omitted
|
|
102
|
+
# from list responses.
|
|
103
|
+
#
|
|
104
|
+
# @return [Array<Zavudev::Models::CallRetrieveResponse::Call::Transcript>, nil]
|
|
105
|
+
optional :transcript,
|
|
106
|
+
-> { Zavudev::Internal::Type::ArrayOf[Zavudev::Models::CallRetrieveResponse::Call::Transcript] }
|
|
107
|
+
|
|
108
|
+
# @!attribute turn_count
|
|
109
|
+
# Number of conversation turns exchanged during the call.
|
|
110
|
+
#
|
|
111
|
+
# @return [Integer, nil]
|
|
112
|
+
optional :turn_count, Integer, api_name: :turnCount, nil?: true
|
|
113
|
+
|
|
114
|
+
# @!attribute updated_at
|
|
115
|
+
#
|
|
116
|
+
# @return [Time, nil]
|
|
117
|
+
optional :updated_at, Time, api_name: :updatedAt
|
|
118
|
+
|
|
119
|
+
# @!method initialize(id:, created_at:, direction:, from:, status:, to:, answered_at: nil, cost: nil, duration_seconds: nil, ended_at: nil, end_reason: nil, metadata: nil, transcript: nil, turn_count: nil, updated_at: nil)
|
|
120
|
+
# Some parameter documentations has been truncated, see
|
|
121
|
+
# {Zavudev::Models::CallRetrieveResponse::Call} for more details.
|
|
122
|
+
#
|
|
123
|
+
# @param id [String]
|
|
124
|
+
#
|
|
125
|
+
# @param created_at [Time]
|
|
126
|
+
#
|
|
127
|
+
# @param direction [Symbol, Zavudev::Models::CallRetrieveResponse::Call::Direction] Whether the call was placed by Zavu (outbound) or received from a caller (inboun
|
|
128
|
+
#
|
|
129
|
+
# @param from [String] Caller phone number in E.164 format. Your sender's number for outbound calls; th
|
|
130
|
+
#
|
|
131
|
+
# @param status [Symbol, Zavudev::Models::CallRetrieveResponse::Call::Status] Lifecycle status of a voice call.
|
|
132
|
+
#
|
|
133
|
+
# @param to [String] Callee phone number in E.164 format.
|
|
134
|
+
#
|
|
135
|
+
# @param answered_at [Time, nil] When the call was answered.
|
|
136
|
+
#
|
|
137
|
+
# @param cost [Float, nil] Total cost of the call in USD, combining the managed voice pipeline per-minute c
|
|
138
|
+
#
|
|
139
|
+
# @param duration_seconds [Integer, nil] Billable talk time in seconds, measured from answer to hangup.
|
|
140
|
+
#
|
|
141
|
+
# @param ended_at [Time, nil] When the call ended.
|
|
142
|
+
#
|
|
143
|
+
# @param end_reason [String, nil] Why the call ended (e.g. `agent_ended`, `max_duration`, `transfer`, `hangup`). P
|
|
144
|
+
#
|
|
145
|
+
# @param metadata [Hash{Symbol=>String}] Arbitrary metadata you attached when creating the call.
|
|
146
|
+
#
|
|
147
|
+
# @param transcript [Array<Zavudev::Models::CallRetrieveResponse::Call::Transcript>] Ordered transcript of the call. Included when retrieving a single call; omitted
|
|
148
|
+
#
|
|
149
|
+
# @param turn_count [Integer, nil] Number of conversation turns exchanged during the call.
|
|
150
|
+
#
|
|
151
|
+
# @param updated_at [Time]
|
|
152
|
+
|
|
153
|
+
# Whether the call was placed by Zavu (outbound) or received from a caller
|
|
154
|
+
# (inbound).
|
|
155
|
+
#
|
|
156
|
+
# @see Zavudev::Models::CallRetrieveResponse::Call#direction
|
|
157
|
+
module Direction
|
|
158
|
+
extend Zavudev::Internal::Type::Enum
|
|
159
|
+
|
|
160
|
+
INBOUND = :inbound
|
|
161
|
+
OUTBOUND = :outbound
|
|
162
|
+
|
|
163
|
+
# @!method self.values
|
|
164
|
+
# @return [Array<Symbol>]
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
# Lifecycle status of a voice call.
|
|
168
|
+
#
|
|
169
|
+
# - `queued`: outbound call created, not yet dialing.
|
|
170
|
+
# - `ringing`: dialing (outbound) or received and ringing (inbound).
|
|
171
|
+
# - `in_progress`: answered, the agent is connected.
|
|
172
|
+
# - `completed`: ended after a conversation.
|
|
173
|
+
# - `failed`: could not be completed.
|
|
174
|
+
# - `busy`: the line was busy.
|
|
175
|
+
# - `no_answer`: rang but was not answered.
|
|
176
|
+
# - `canceled`: canceled before it was answered.
|
|
177
|
+
#
|
|
178
|
+
# @see Zavudev::Models::CallRetrieveResponse::Call#status
|
|
179
|
+
module Status
|
|
180
|
+
extend Zavudev::Internal::Type::Enum
|
|
181
|
+
|
|
182
|
+
QUEUED = :queued
|
|
183
|
+
RINGING = :ringing
|
|
184
|
+
IN_PROGRESS = :in_progress
|
|
185
|
+
COMPLETED = :completed
|
|
186
|
+
FAILED = :failed
|
|
187
|
+
BUSY = :busy
|
|
188
|
+
NO_ANSWER = :no_answer
|
|
189
|
+
CANCELED = :canceled
|
|
190
|
+
|
|
191
|
+
# @!method self.values
|
|
192
|
+
# @return [Array<Symbol>]
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
class Transcript < Zavudev::Internal::Type::BaseModel
|
|
196
|
+
# @!attribute role
|
|
197
|
+
# Who produced the turn. `tool` records a tool call the agent made during the
|
|
198
|
+
# conversation.
|
|
199
|
+
#
|
|
200
|
+
# @return [Symbol, Zavudev::Models::CallRetrieveResponse::Call::Transcript::Role]
|
|
201
|
+
required :role, enum: -> { Zavudev::Models::CallRetrieveResponse::Call::Transcript::Role }
|
|
202
|
+
|
|
203
|
+
# @!attribute seq
|
|
204
|
+
# Ordinal position of the turn within the call, starting at 0.
|
|
205
|
+
#
|
|
206
|
+
# @return [Integer]
|
|
207
|
+
required :seq, Integer
|
|
208
|
+
|
|
209
|
+
# @!attribute text
|
|
210
|
+
# Transcribed speech for `user` and `assistant` turns, or a JSON summary of the
|
|
211
|
+
# tool call for `tool` turns.
|
|
212
|
+
#
|
|
213
|
+
# @return [String]
|
|
214
|
+
required :text, String
|
|
215
|
+
|
|
216
|
+
# @!attribute ended_at
|
|
217
|
+
# When the turn ended.
|
|
218
|
+
#
|
|
219
|
+
# @return [Time, nil]
|
|
220
|
+
optional :ended_at, Time, api_name: :endedAt, nil?: true
|
|
221
|
+
|
|
222
|
+
# @!attribute started_at
|
|
223
|
+
# When the turn started.
|
|
224
|
+
#
|
|
225
|
+
# @return [Time, nil]
|
|
226
|
+
optional :started_at, Time, api_name: :startedAt, nil?: true
|
|
227
|
+
|
|
228
|
+
# @!method initialize(role:, seq:, text:, ended_at: nil, started_at: nil)
|
|
229
|
+
# Some parameter documentations has been truncated, see
|
|
230
|
+
# {Zavudev::Models::CallRetrieveResponse::Call::Transcript} for more details.
|
|
231
|
+
#
|
|
232
|
+
# A single turn in a voice call transcript.
|
|
233
|
+
#
|
|
234
|
+
# @param role [Symbol, Zavudev::Models::CallRetrieveResponse::Call::Transcript::Role] Who produced the turn. `tool` records a tool call the agent made during the conv
|
|
235
|
+
#
|
|
236
|
+
# @param seq [Integer] Ordinal position of the turn within the call, starting at 0.
|
|
237
|
+
#
|
|
238
|
+
# @param text [String] Transcribed speech for `user` and `assistant` turns, or a JSON summary of the to
|
|
239
|
+
#
|
|
240
|
+
# @param ended_at [Time, nil] When the turn ended.
|
|
241
|
+
#
|
|
242
|
+
# @param started_at [Time, nil] When the turn started.
|
|
243
|
+
|
|
244
|
+
# Who produced the turn. `tool` records a tool call the agent made during the
|
|
245
|
+
# conversation.
|
|
246
|
+
#
|
|
247
|
+
# @see Zavudev::Models::CallRetrieveResponse::Call::Transcript#role
|
|
248
|
+
module Role
|
|
249
|
+
extend Zavudev::Internal::Type::Enum
|
|
250
|
+
|
|
251
|
+
USER = :user
|
|
252
|
+
ASSISTANT = :assistant
|
|
253
|
+
TOOL = :tool
|
|
254
|
+
|
|
255
|
+
# @!method self.values
|
|
256
|
+
# @return [Array<Symbol>]
|
|
257
|
+
end
|
|
258
|
+
end
|
|
259
|
+
end
|
|
260
|
+
end
|
|
261
|
+
end
|
|
262
|
+
end
|
|
@@ -78,18 +78,12 @@ module Zavudev
|
|
|
78
78
|
# @return [String, nil]
|
|
79
79
|
optional :profile_name, String, api_name: :profileName, nil?: true
|
|
80
80
|
|
|
81
|
-
# @!attribute suggested_merge_with
|
|
82
|
-
# ID of a contact suggested for merging.
|
|
83
|
-
#
|
|
84
|
-
# @return [String, nil]
|
|
85
|
-
optional :suggested_merge_with, String, api_name: :suggestedMergeWith
|
|
86
|
-
|
|
87
81
|
# @!attribute updated_at
|
|
88
82
|
#
|
|
89
83
|
# @return [Time, nil]
|
|
90
84
|
optional :updated_at, Time, api_name: :updatedAt
|
|
91
85
|
|
|
92
|
-
# @!method initialize(id:, available_channels:, created_at:, metadata:, verified:, channels: nil, country_code: nil, default_channel: nil, display_name: nil, phone_number: nil, primary_email: nil, primary_phone: nil, profile_name: nil,
|
|
86
|
+
# @!method initialize(id:, available_channels:, created_at:, metadata:, verified:, channels: nil, country_code: nil, default_channel: nil, display_name: nil, phone_number: nil, primary_email: nil, primary_phone: nil, profile_name: nil, updated_at: nil)
|
|
93
87
|
# @param id [String]
|
|
94
88
|
#
|
|
95
89
|
# @param available_channels [Array<String>] List of available messaging channels for this contact.
|
|
@@ -116,8 +110,6 @@ module Zavudev
|
|
|
116
110
|
#
|
|
117
111
|
# @param profile_name [String, nil] Contact's WhatsApp profile name. Only available for WhatsApp contacts.
|
|
118
112
|
#
|
|
119
|
-
# @param suggested_merge_with [String] ID of a contact suggested for merging.
|
|
120
|
-
#
|
|
121
113
|
# @param updated_at [Time]
|
|
122
114
|
|
|
123
115
|
# Preferred channel for this contact.
|