zavudev 0.19.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.
Files changed (431) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +42 -0
  3. data/README.md +1 -1
  4. data/lib/zavudev/client.rb +20 -0
  5. data/lib/zavudev/models/agent_create_params.rb +278 -0
  6. data/lib/zavudev/models/agent_create_response.rb +17 -0
  7. data/lib/zavudev/models/{contact_dismiss_merge_suggestion_params.rb → agent_delete_params.rb} +6 -6
  8. data/lib/zavudev/models/agent_list_params.rb +26 -0
  9. data/lib/zavudev/models/agent_list_voices_params.rb +22 -0
  10. data/lib/zavudev/models/agent_list_voices_response.rb +57 -0
  11. data/lib/zavudev/models/agent_retrieve_params.rb +20 -0
  12. data/lib/zavudev/models/agent_retrieve_response.rb +17 -0
  13. data/lib/zavudev/models/agent_template_list_params.rb +14 -0
  14. data/lib/zavudev/models/agent_template_list_response.rb +77 -0
  15. data/lib/zavudev/models/agent_template_retrieve_params.rb +20 -0
  16. data/lib/zavudev/models/agent_template_retrieve_response.rb +144 -0
  17. data/lib/zavudev/models/agent_test_params.rb +91 -0
  18. data/lib/zavudev/models/agent_test_response.rb +117 -0
  19. data/lib/zavudev/models/agent_update_params.rb +295 -0
  20. data/lib/zavudev/models/agent_update_response.rb +17 -0
  21. data/lib/zavudev/models/agents/sender_connect_params.rb +31 -0
  22. data/lib/zavudev/models/agents/sender_connect_response.rb +19 -0
  23. data/lib/zavudev/models/agents/sender_disconnect_params.rb +28 -0
  24. data/lib/zavudev/models/call_create_params.rb +72 -0
  25. data/lib/zavudev/models/call_create_response.rb +262 -0
  26. data/lib/zavudev/models/call_hangup_params.rb +20 -0
  27. data/lib/zavudev/models/call_hangup_response.rb +262 -0
  28. data/lib/zavudev/models/call_list_params.rb +95 -0
  29. data/lib/zavudev/models/call_list_response.rb +251 -0
  30. data/lib/zavudev/models/call_retrieve_params.rb +20 -0
  31. data/lib/zavudev/models/call_retrieve_response.rb +262 -0
  32. data/lib/zavudev/models/contact.rb +1 -9
  33. data/lib/zavudev/models/contact_list_params.rb +42 -3
  34. data/lib/zavudev/models/contact_update_params.rb +14 -1
  35. data/lib/zavudev/models/conversation_list_messages_params.rb +36 -0
  36. data/lib/zavudev/models/conversation_list_params.rb +85 -0
  37. data/lib/zavudev/models/conversation_list_response.rb +226 -0
  38. data/lib/zavudev/models/conversation_mark_as_read_params.rb +20 -0
  39. data/lib/zavudev/models/conversation_mark_as_read_response.rb +245 -0
  40. data/lib/zavudev/models/conversation_retrieve_params.rb +20 -0
  41. data/lib/zavudev/models/conversation_retrieve_response.rb +244 -0
  42. data/lib/zavudev/models/email_domain_create_params.rb +22 -0
  43. data/lib/zavudev/models/email_domain_create_response.rb +134 -0
  44. data/lib/zavudev/models/email_domain_delete_params.rb +20 -0
  45. data/lib/zavudev/models/email_domain_list_params.rb +14 -0
  46. data/lib/zavudev/models/email_domain_list_response.rb +132 -0
  47. data/lib/zavudev/models/email_domain_retrieve_params.rb +20 -0
  48. data/lib/zavudev/models/email_domain_retrieve_response.rb +134 -0
  49. data/lib/zavudev/models/email_domain_verify_params.rb +20 -0
  50. data/lib/zavudev/models/email_domain_verify_response.rb +134 -0
  51. data/lib/zavudev/models/function_create_params.rb +36 -4
  52. data/lib/zavudev/models/function_create_response.rb +4 -2
  53. data/lib/zavudev/models/function_deploy_params.rb +31 -3
  54. data/lib/zavudev/models/function_deploy_response.rb +20 -3
  55. data/lib/zavudev/models/function_get_deployment_response.rb +20 -3
  56. data/lib/zavudev/models/function_list_deployments_params.rb +26 -0
  57. data/lib/zavudev/models/function_list_deployments_response.rb +95 -0
  58. data/lib/zavudev/models/function_list_event_types_params.rb +14 -0
  59. data/lib/zavudev/models/function_list_event_types_response.rb +16 -0
  60. data/lib/zavudev/models/function_retrieve_response.rb +4 -2
  61. data/lib/zavudev/models/function_rollback_deployment_params.rb +29 -0
  62. data/lib/zavudev/models/function_rollback_deployment_response.rb +137 -0
  63. data/lib/zavudev/models/function_update_params.rb +41 -3
  64. data/lib/zavudev/models/function_update_response.rb +4 -2
  65. data/lib/zavudev/models/functions/git_link_deploy_now_params.rb +22 -0
  66. data/lib/zavudev/models/functions/git_link_deploy_now_response.rb +18 -0
  67. data/lib/zavudev/models/functions/git_link_link_params.rb +59 -0
  68. data/lib/zavudev/models/functions/git_link_link_response.rb +222 -0
  69. data/lib/zavudev/models/functions/git_link_retrieve_params.rb +22 -0
  70. data/lib/zavudev/models/functions/git_link_retrieve_response.rb +222 -0
  71. data/lib/zavudev/models/functions/git_link_unlink_params.rb +22 -0
  72. data/lib/zavudev/models/functions/git_link_update_params.rb +40 -0
  73. data/lib/zavudev/models/functions/git_link_update_response.rb +222 -0
  74. data/lib/zavudev/models/functions/trigger_create_params.rb +51 -0
  75. data/lib/zavudev/models/functions/trigger_create_response.rb +120 -0
  76. data/lib/zavudev/models/functions/trigger_delete_params.rb +22 -0
  77. data/lib/zavudev/models/functions/trigger_list_params.rb +22 -0
  78. data/lib/zavudev/models/functions/trigger_list_response.rb +105 -0
  79. data/lib/zavudev/models/functions/trigger_update_params.rb +28 -0
  80. data/lib/zavudev/models/functions/trigger_update_response.rb +24 -0
  81. data/lib/zavudev/models/introspect_validate_email_params.rb +30 -0
  82. data/lib/zavudev/models/introspect_validate_email_response.rb +145 -0
  83. data/lib/zavudev/models/invitation.rb +101 -8
  84. data/lib/zavudev/models/invitation_create_params.rb +34 -8
  85. data/lib/zavudev/models/invitation_list_params.rb +14 -0
  86. data/lib/zavudev/models/message.rb +38 -1
  87. data/lib/zavudev/models/message_content.rb +148 -1
  88. data/lib/zavudev/models/message_list_attachments_params.rb +20 -0
  89. data/lib/zavudev/models/message_list_attachments_response.rb +90 -0
  90. data/lib/zavudev/models/message_type.rb +16 -0
  91. data/lib/zavudev/models/phone_number_pricing.rb +7 -2
  92. data/lib/zavudev/models/phone_number_search_available_params.rb +13 -1
  93. data/lib/zavudev/models/phone_number_type.rb +4 -0
  94. data/lib/zavudev/models/sender.rb +12 -1
  95. data/lib/zavudev/models/sender_create_params.rb +72 -4
  96. data/lib/zavudev/models/sender_update_params.rb +65 -1
  97. data/lib/zavudev/models/sender_webhook.rb +47 -1
  98. data/lib/zavudev/models/senders/agent/agent_tool.rb +19 -1
  99. data/lib/zavudev/models/senders/agent/knowledge_bases/document_retrieve_document_params.rb +38 -0
  100. data/lib/zavudev/models/senders/agent/knowledge_bases/document_retrieve_document_response.rb +22 -0
  101. data/lib/zavudev/models/senders/agent/knowledge_bases/document_update_document_params.rb +50 -0
  102. data/lib/zavudev/models/senders/agent/knowledge_bases/document_update_document_response.rb +22 -0
  103. data/lib/zavudev/models/senders/agent/tool_create_params.rb +7 -2
  104. data/lib/zavudev/models/senders/agent/tool_list_test_runs_params.rb +36 -0
  105. data/lib/zavudev/models/senders/agent/tool_list_test_runs_response.rb +101 -0
  106. data/lib/zavudev/models/senders/agent/tool_test_response.rb +90 -5
  107. data/lib/zavudev/models/senders/agent/tools/webhook_rotate_secret_params.rb +32 -0
  108. data/lib/zavudev/models/senders/agent.rb +198 -1
  109. data/lib/zavudev/models/senders/agent_create_params.rb +188 -1
  110. data/lib/zavudev/models/senders/agent_execution.rb +26 -1
  111. data/lib/zavudev/models/senders/agent_update_params.rb +188 -1
  112. data/lib/zavudev/models/senders/telegram_connect_params.rb +31 -0
  113. data/lib/zavudev/models/senders/telegram_connect_response.rb +41 -0
  114. data/lib/zavudev/models/senders/telegram_disconnect_params.rb +22 -0
  115. data/lib/zavudev/models/template.rb +1 -0
  116. data/lib/zavudev/models/template_create_params.rb +19 -9
  117. data/lib/zavudev/models/template_sync_params.rb +26 -0
  118. data/lib/zavudev/models/template_sync_response.rb +63 -0
  119. data/lib/zavudev/models/url_escalate_params.rb +29 -0
  120. data/lib/zavudev/models/url_escalate_response.rb +22 -0
  121. data/lib/zavudev/models/webhook_event.rb +37 -2
  122. data/lib/zavudev/models.rb +60 -2
  123. data/lib/zavudev/resources/agent_templates.rb +56 -0
  124. data/lib/zavudev/resources/agents/senders.rb +70 -0
  125. data/lib/zavudev/resources/agents.rb +253 -0
  126. data/lib/zavudev/resources/broadcasts.rb +30 -4
  127. data/lib/zavudev/resources/calls.rb +147 -0
  128. data/lib/zavudev/resources/contacts.rb +19 -23
  129. data/lib/zavudev/resources/conversations.rb +124 -0
  130. data/lib/zavudev/resources/email_domains.rb +113 -0
  131. data/lib/zavudev/resources/functions/git_link.rb +151 -0
  132. data/lib/zavudev/resources/functions/triggers.rb +116 -0
  133. data/lib/zavudev/resources/functions.rb +117 -10
  134. data/lib/zavudev/resources/introspect.rb +33 -0
  135. data/lib/zavudev/resources/invitations.rb +19 -6
  136. data/lib/zavudev/resources/messages.rb +67 -4
  137. data/lib/zavudev/resources/number_10dlc/brands.rb +10 -1
  138. data/lib/zavudev/resources/number_10dlc/campaigns.rb +8 -2
  139. data/lib/zavudev/resources/phone_numbers.rb +12 -3
  140. data/lib/zavudev/resources/senders/agent/executions.rb +5 -0
  141. data/lib/zavudev/resources/senders/agent/knowledge_bases/documents.rb +71 -0
  142. data/lib/zavudev/resources/senders/agent/tools/webhook.rb +47 -0
  143. data/lib/zavudev/resources/senders/agent/tools.rb +51 -2
  144. data/lib/zavudev/resources/senders/agent.rb +18 -2
  145. data/lib/zavudev/resources/senders/telegram.rb +61 -0
  146. data/lib/zavudev/resources/senders.rb +19 -3
  147. data/lib/zavudev/resources/templates.rb +45 -0
  148. data/lib/zavudev/resources/urls.rb +25 -0
  149. data/lib/zavudev/version.rb +1 -1
  150. data/lib/zavudev.rb +93 -1
  151. data/rbi/zavudev/client.rbi +15 -0
  152. data/rbi/zavudev/models/agent_create_params.rbi +417 -0
  153. data/rbi/zavudev/models/agent_create_response.rbi +37 -0
  154. data/rbi/zavudev/models/agent_delete_params.rbi +35 -0
  155. data/rbi/zavudev/models/agent_list_params.rbi +49 -0
  156. data/rbi/zavudev/models/agent_list_voices_params.rbi +43 -0
  157. data/rbi/zavudev/models/agent_list_voices_response.rbi +95 -0
  158. data/rbi/zavudev/models/agent_retrieve_params.rbi +35 -0
  159. data/rbi/zavudev/models/agent_retrieve_response.rbi +37 -0
  160. data/rbi/zavudev/models/agent_template_list_params.rbi +27 -0
  161. data/rbi/zavudev/models/agent_template_list_response.rbi +153 -0
  162. data/rbi/zavudev/models/agent_template_retrieve_params.rbi +38 -0
  163. data/rbi/zavudev/models/agent_template_retrieve_response.rbi +266 -0
  164. data/rbi/zavudev/models/agent_test_params.rbi +161 -0
  165. data/rbi/zavudev/models/agent_test_response.rbi +176 -0
  166. data/rbi/zavudev/models/agent_update_params.rbi +441 -0
  167. data/rbi/zavudev/models/agent_update_response.rbi +37 -0
  168. data/rbi/zavudev/models/agents/sender_connect_params.rbi +54 -0
  169. data/rbi/zavudev/models/agents/sender_connect_response.rbi +39 -0
  170. data/rbi/zavudev/models/agents/sender_disconnect_params.rbi +48 -0
  171. data/rbi/zavudev/models/call_create_params.rbi +112 -0
  172. data/rbi/zavudev/models/call_create_response.rbi +466 -0
  173. data/rbi/zavudev/models/call_hangup_params.rbi +35 -0
  174. data/rbi/zavudev/models/call_hangup_response.rbi +466 -0
  175. data/rbi/zavudev/models/call_list_params.rbi +159 -0
  176. data/rbi/zavudev/models/call_list_response.rbi +405 -0
  177. data/rbi/zavudev/models/call_retrieve_params.rbi +35 -0
  178. data/rbi/zavudev/models/call_retrieve_response.rbi +472 -0
  179. data/rbi/zavudev/models/contact.rbi +0 -11
  180. data/rbi/zavudev/models/contact_list_params.rbi +56 -0
  181. data/rbi/zavudev/models/contact_update_params.rbi +12 -0
  182. data/rbi/zavudev/models/conversation_list_messages_params.rbi +64 -0
  183. data/rbi/zavudev/models/conversation_list_params.rbi +167 -0
  184. data/rbi/zavudev/models/conversation_list_response.rbi +367 -0
  185. data/rbi/zavudev/models/conversation_mark_as_read_params.rbi +38 -0
  186. data/rbi/zavudev/models/conversation_mark_as_read_response.rbi +436 -0
  187. data/rbi/zavudev/models/conversation_retrieve_params.rbi +35 -0
  188. data/rbi/zavudev/models/conversation_retrieve_response.rbi +436 -0
  189. data/rbi/zavudev/models/email_domain_create_params.rbi +40 -0
  190. data/rbi/zavudev/models/email_domain_create_response.rbi +259 -0
  191. data/rbi/zavudev/models/email_domain_delete_params.rbi +35 -0
  192. data/rbi/zavudev/models/email_domain_list_params.rbi +27 -0
  193. data/rbi/zavudev/models/email_domain_list_response.rbi +253 -0
  194. data/rbi/zavudev/models/email_domain_retrieve_params.rbi +35 -0
  195. data/rbi/zavudev/models/email_domain_retrieve_response.rbi +259 -0
  196. data/rbi/zavudev/models/email_domain_verify_params.rbi +35 -0
  197. data/rbi/zavudev/models/email_domain_verify_response.rbi +259 -0
  198. data/rbi/zavudev/models/function_create_params.rbi +50 -2
  199. data/rbi/zavudev/models/function_create_response.rbi +6 -2
  200. data/rbi/zavudev/models/function_deploy_params.rbi +42 -2
  201. data/rbi/zavudev/models/function_deploy_response.rbi +20 -0
  202. data/rbi/zavudev/models/function_get_deployment_response.rbi +20 -0
  203. data/rbi/zavudev/models/function_list_deployments_params.rbi +49 -0
  204. data/rbi/zavudev/models/function_list_deployments_response.rbi +211 -0
  205. data/rbi/zavudev/models/function_list_event_types_params.rbi +30 -0
  206. data/rbi/zavudev/models/function_list_event_types_response.rbi +26 -0
  207. data/rbi/zavudev/models/function_retrieve_response.rbi +6 -2
  208. data/rbi/zavudev/models/function_rollback_deployment_params.rbi +52 -0
  209. data/rbi/zavudev/models/function_rollback_deployment_response.rbi +240 -0
  210. data/rbi/zavudev/models/function_update_params.rbi +57 -2
  211. data/rbi/zavudev/models/function_update_response.rbi +6 -2
  212. data/rbi/zavudev/models/functions/git_link_deploy_now_params.rbi +40 -0
  213. data/rbi/zavudev/models/functions/git_link_deploy_now_response.rbi +28 -0
  214. data/rbi/zavudev/models/functions/git_link_link_params.rbi +87 -0
  215. data/rbi/zavudev/models/functions/git_link_link_response.rbi +360 -0
  216. data/rbi/zavudev/models/functions/git_link_retrieve_params.rbi +40 -0
  217. data/rbi/zavudev/models/functions/git_link_retrieve_response.rbi +364 -0
  218. data/rbi/zavudev/models/functions/git_link_unlink_params.rbi +40 -0
  219. data/rbi/zavudev/models/functions/git_link_update_params.rbi +70 -0
  220. data/rbi/zavudev/models/functions/git_link_update_response.rbi +362 -0
  221. data/rbi/zavudev/models/functions/trigger_create_params.rbi +75 -0
  222. data/rbi/zavudev/models/functions/trigger_create_response.rbi +168 -0
  223. data/rbi/zavudev/models/functions/trigger_delete_params.rbi +40 -0
  224. data/rbi/zavudev/models/functions/trigger_list_params.rbi +40 -0
  225. data/rbi/zavudev/models/functions/trigger_list_response.rbi +152 -0
  226. data/rbi/zavudev/models/functions/trigger_update_params.rbi +48 -0
  227. data/rbi/zavudev/models/functions/trigger_update_response.rbi +33 -0
  228. data/rbi/zavudev/models/introspect_validate_email_params.rbi +60 -0
  229. data/rbi/zavudev/models/introspect_validate_email_response.rbi +328 -0
  230. data/rbi/zavudev/models/invitation.rbi +162 -8
  231. data/rbi/zavudev/models/invitation_create_params.rbi +54 -10
  232. data/rbi/zavudev/models/invitation_list_params.rbi +17 -0
  233. data/rbi/zavudev/models/message.rbi +57 -0
  234. data/rbi/zavudev/models/message_content.rbi +260 -0
  235. data/rbi/zavudev/models/{contact_dismiss_merge_suggestion_params.rbi → message_list_attachments_params.rbi} +6 -6
  236. data/rbi/zavudev/models/message_list_attachments_response.rbi +136 -0
  237. data/rbi/zavudev/models/message_type.rbi +18 -0
  238. data/rbi/zavudev/models/phone_number_pricing.rbi +6 -2
  239. data/rbi/zavudev/models/phone_number_search_available_params.rbi +13 -0
  240. data/rbi/zavudev/models/phone_number_type.rbi +4 -0
  241. data/rbi/zavudev/models/sender.rbi +17 -0
  242. data/rbi/zavudev/models/sender_create_params.rbi +136 -4
  243. data/rbi/zavudev/models/sender_update_params.rbi +124 -0
  244. data/rbi/zavudev/models/sender_webhook.rbi +69 -0
  245. data/rbi/zavudev/models/senders/agent/agent_tool.rbi +26 -3
  246. data/rbi/zavudev/models/senders/agent/knowledge_bases/document_retrieve_document_params.rbi +57 -0
  247. data/rbi/zavudev/models/senders/agent/knowledge_bases/document_retrieve_document_response.rbi +47 -0
  248. data/rbi/zavudev/models/senders/agent/knowledge_bases/document_update_document_params.rbi +80 -0
  249. data/rbi/zavudev/models/senders/agent/knowledge_bases/document_update_document_response.rbi +47 -0
  250. data/rbi/zavudev/models/senders/agent/tool_create_params.rbi +6 -2
  251. data/rbi/zavudev/models/senders/agent/tool_list_test_runs_params.rbi +58 -0
  252. data/rbi/zavudev/models/senders/agent/tool_list_test_runs_response.rbi +152 -0
  253. data/rbi/zavudev/models/senders/agent/tool_test_response.rbi +130 -5
  254. data/rbi/zavudev/models/senders/agent/tools/webhook_rotate_secret_params.rbi +52 -0
  255. data/rbi/zavudev/models/senders/agent.rbi +320 -3
  256. data/rbi/zavudev/models/senders/agent_create_params.rbi +304 -0
  257. data/rbi/zavudev/models/senders/agent_execution.rbi +31 -3
  258. data/rbi/zavudev/models/senders/agent_update_params.rbi +304 -0
  259. data/rbi/zavudev/models/senders/telegram_connect_params.rbi +54 -0
  260. data/rbi/zavudev/models/senders/telegram_connect_response.rbi +93 -0
  261. data/rbi/zavudev/models/senders/telegram_disconnect_params.rbi +40 -0
  262. data/rbi/zavudev/models/template.rbi +5 -0
  263. data/rbi/zavudev/models/template_create_params.rbi +27 -6
  264. data/rbi/zavudev/models/template_sync_params.rbi +45 -0
  265. data/rbi/zavudev/models/template_sync_response.rbi +86 -0
  266. data/rbi/zavudev/models/url_escalate_params.rbi +49 -0
  267. data/rbi/zavudev/models/url_escalate_response.rbi +36 -0
  268. data/rbi/zavudev/models/webhook_event.rbi +41 -2
  269. data/rbi/zavudev/models.rbi +62 -3
  270. data/rbi/zavudev/resources/agent_templates.rbi +36 -0
  271. data/rbi/zavudev/resources/agents/senders.rbi +50 -0
  272. data/rbi/zavudev/resources/agents.rbi +204 -0
  273. data/rbi/zavudev/resources/broadcasts.rbi +30 -4
  274. data/rbi/zavudev/resources/calls.rbi +132 -0
  275. data/rbi/zavudev/resources/contacts.rbi +34 -11
  276. data/rbi/zavudev/resources/conversations.rbi +98 -0
  277. data/rbi/zavudev/resources/email_domains.rbi +67 -0
  278. data/rbi/zavudev/resources/functions/git_link.rbi +116 -0
  279. data/rbi/zavudev/resources/functions/triggers.rbi +81 -0
  280. data/rbi/zavudev/resources/functions.rbi +117 -6
  281. data/rbi/zavudev/resources/introspect.rbi +26 -0
  282. data/rbi/zavudev/resources/invitations.rbi +37 -8
  283. data/rbi/zavudev/resources/messages.rbi +57 -3
  284. data/rbi/zavudev/resources/number_10dlc/brands.rbi +10 -1
  285. data/rbi/zavudev/resources/number_10dlc/campaigns.rbi +8 -2
  286. data/rbi/zavudev/resources/phone_numbers.rbi +10 -2
  287. data/rbi/zavudev/resources/senders/agent/executions.rbi +5 -0
  288. data/rbi/zavudev/resources/senders/agent/knowledge_bases/documents.rbi +48 -0
  289. data/rbi/zavudev/resources/senders/agent/tools/webhook.rbi +31 -0
  290. data/rbi/zavudev/resources/senders/agent/tools.rbi +38 -2
  291. data/rbi/zavudev/resources/senders/agent.rbi +16 -0
  292. data/rbi/zavudev/resources/senders/telegram.rbi +42 -0
  293. data/rbi/zavudev/resources/senders.rbi +59 -2
  294. data/rbi/zavudev/resources/templates.rbi +35 -0
  295. data/rbi/zavudev/resources/urls.rbi +17 -0
  296. data/sig/zavudev/client.rbs +10 -0
  297. data/sig/zavudev/models/agent_create_params.rbs +234 -0
  298. data/sig/zavudev/models/agent_create_response.rbs +13 -0
  299. data/sig/zavudev/models/agent_delete_params.rbs +23 -0
  300. data/sig/zavudev/models/agent_list_params.rbs +32 -0
  301. data/sig/zavudev/models/agent_list_voices_params.rbs +25 -0
  302. data/sig/zavudev/models/agent_list_voices_response.rbs +46 -0
  303. data/sig/zavudev/models/agent_retrieve_params.rbs +23 -0
  304. data/sig/zavudev/models/agent_retrieve_response.rbs +13 -0
  305. data/sig/zavudev/models/agent_template_list_params.rbs +15 -0
  306. data/sig/zavudev/models/agent_template_list_response.rbs +73 -0
  307. data/sig/zavudev/models/agent_template_retrieve_params.rbs +23 -0
  308. data/sig/zavudev/models/agent_template_retrieve_response.rbs +112 -0
  309. data/sig/zavudev/models/agent_test_params.rbs +87 -0
  310. data/sig/zavudev/models/agent_test_response.rbs +78 -0
  311. data/sig/zavudev/models/agent_update_params.rbs +259 -0
  312. data/sig/zavudev/models/agent_update_response.rbs +13 -0
  313. data/sig/zavudev/models/agents/sender_connect_params.rbs +30 -0
  314. data/sig/zavudev/models/agents/sender_connect_response.rbs +15 -0
  315. data/sig/zavudev/models/agents/sender_disconnect_params.rbs +30 -0
  316. data/sig/zavudev/models/call_create_params.rbs +61 -0
  317. data/sig/zavudev/models/call_create_response.rbs +194 -0
  318. data/sig/zavudev/models/call_hangup_params.rbs +23 -0
  319. data/sig/zavudev/models/call_hangup_response.rbs +194 -0
  320. data/sig/zavudev/models/call_list_params.rbs +89 -0
  321. data/sig/zavudev/models/call_list_response.rbs +183 -0
  322. data/sig/zavudev/models/call_retrieve_params.rbs +23 -0
  323. data/sig/zavudev/models/call_retrieve_response.rbs +196 -0
  324. data/sig/zavudev/models/contact.rbs +0 -7
  325. data/sig/zavudev/models/contact_list_params.rbs +19 -1
  326. data/sig/zavudev/models/contact_update_params.rbs +5 -0
  327. data/sig/zavudev/models/conversation_list_messages_params.rbs +36 -0
  328. data/sig/zavudev/models/conversation_list_params.rbs +83 -0
  329. data/sig/zavudev/models/conversation_list_response.rbs +184 -0
  330. data/sig/zavudev/models/conversation_mark_as_read_params.rbs +23 -0
  331. data/sig/zavudev/models/conversation_mark_as_read_response.rbs +201 -0
  332. data/sig/zavudev/models/conversation_retrieve_params.rbs +23 -0
  333. data/sig/zavudev/models/conversation_retrieve_response.rbs +201 -0
  334. data/sig/zavudev/models/email_domain_create_params.rbs +23 -0
  335. data/sig/zavudev/models/email_domain_create_response.rbs +116 -0
  336. data/sig/zavudev/models/email_domain_delete_params.rbs +23 -0
  337. data/sig/zavudev/models/email_domain_list_params.rbs +15 -0
  338. data/sig/zavudev/models/email_domain_list_response.rbs +116 -0
  339. data/sig/zavudev/models/email_domain_retrieve_params.rbs +23 -0
  340. data/sig/zavudev/models/email_domain_retrieve_response.rbs +116 -0
  341. data/sig/zavudev/models/email_domain_verify_params.rbs +23 -0
  342. data/sig/zavudev/models/email_domain_verify_response.rbs +116 -0
  343. data/sig/zavudev/models/function_create_params.rbs +14 -0
  344. data/sig/zavudev/models/function_deploy_params.rbs +14 -0
  345. data/sig/zavudev/models/function_deploy_response.rbs +5 -0
  346. data/sig/zavudev/models/function_get_deployment_response.rbs +5 -0
  347. data/sig/zavudev/models/function_list_deployments_params.rbs +30 -0
  348. data/sig/zavudev/models/function_list_deployments_response.rbs +107 -0
  349. data/sig/zavudev/models/function_list_event_types_params.rbs +15 -0
  350. data/sig/zavudev/models/function_list_event_types_response.rbs +13 -0
  351. data/sig/zavudev/models/function_rollback_deployment_params.rbs +28 -0
  352. data/sig/zavudev/models/function_rollback_deployment_response.rbs +117 -0
  353. data/sig/zavudev/models/function_update_params.rbs +21 -0
  354. data/sig/zavudev/models/functions/git_link_deploy_now_params.rbs +25 -0
  355. data/sig/zavudev/models/functions/git_link_deploy_now_response.rbs +15 -0
  356. data/sig/zavudev/models/functions/git_link_link_params.rbs +59 -0
  357. data/sig/zavudev/models/functions/git_link_link_response.rbs +159 -0
  358. data/sig/zavudev/models/functions/git_link_retrieve_params.rbs +25 -0
  359. data/sig/zavudev/models/functions/git_link_retrieve_response.rbs +159 -0
  360. data/sig/zavudev/models/functions/git_link_unlink_params.rbs +25 -0
  361. data/sig/zavudev/models/functions/git_link_update_params.rbs +47 -0
  362. data/sig/zavudev/models/functions/git_link_update_response.rbs +159 -0
  363. data/sig/zavudev/models/functions/trigger_create_params.rbs +45 -0
  364. data/sig/zavudev/models/functions/trigger_create_response.rbs +94 -0
  365. data/sig/zavudev/models/functions/trigger_delete_params.rbs +25 -0
  366. data/sig/zavudev/models/functions/trigger_list_params.rbs +25 -0
  367. data/sig/zavudev/models/functions/trigger_list_response.rbs +84 -0
  368. data/sig/zavudev/models/functions/trigger_update_params.rbs +30 -0
  369. data/sig/zavudev/models/functions/trigger_update_response.rbs +17 -0
  370. data/sig/zavudev/models/introspect_validate_email_params.rbs +32 -0
  371. data/sig/zavudev/models/introspect_validate_email_response.rbs +135 -0
  372. data/sig/zavudev/models/invitation.rbs +58 -2
  373. data/sig/zavudev/models/invitation_create_params.rbs +2 -1
  374. data/sig/zavudev/models/invitation_list_params.rbs +3 -1
  375. data/sig/zavudev/models/message.rbs +16 -0
  376. data/sig/zavudev/models/message_content.rbs +117 -0
  377. data/sig/zavudev/models/{contact_dismiss_merge_suggestion_params.rbs → message_list_attachments_params.rbs} +6 -6
  378. data/sig/zavudev/models/message_list_attachments_response.rbs +70 -0
  379. data/sig/zavudev/models/message_type.rbs +4 -0
  380. data/sig/zavudev/models/phone_number_search_available_params.rbs +7 -0
  381. data/sig/zavudev/models/phone_number_type.rbs +2 -1
  382. data/sig/zavudev/models/sender.rbs +7 -0
  383. data/sig/zavudev/models/sender_create_params.rbs +35 -0
  384. data/sig/zavudev/models/sender_update_params.rbs +35 -0
  385. data/sig/zavudev/models/sender_webhook.rbs +17 -0
  386. data/sig/zavudev/models/senders/agent/agent_tool.rbs +10 -3
  387. data/sig/zavudev/models/senders/agent/knowledge_bases/document_retrieve_document_params.rbs +38 -0
  388. data/sig/zavudev/models/senders/agent/knowledge_bases/document_retrieve_document_response.rbs +22 -0
  389. data/sig/zavudev/models/senders/agent/knowledge_bases/document_update_document_params.rbs +56 -0
  390. data/sig/zavudev/models/senders/agent/knowledge_bases/document_update_document_response.rbs +22 -0
  391. data/sig/zavudev/models/senders/agent/tool_list_test_runs_params.rbs +38 -0
  392. data/sig/zavudev/models/senders/agent/tool_list_test_runs_response.rbs +83 -0
  393. data/sig/zavudev/models/senders/agent/tool_test_response.rbs +68 -4
  394. data/sig/zavudev/models/senders/agent/tools/webhook_rotate_secret_params.rbs +34 -0
  395. data/sig/zavudev/models/senders/agent.rbs +161 -3
  396. data/sig/zavudev/models/senders/agent_create_params.rbs +152 -1
  397. data/sig/zavudev/models/senders/agent_execution.rbs +13 -3
  398. data/sig/zavudev/models/senders/agent_update_params.rbs +152 -1
  399. data/sig/zavudev/models/senders/telegram_connect_params.rbs +30 -0
  400. data/sig/zavudev/models/senders/telegram_connect_response.rbs +49 -0
  401. data/sig/zavudev/models/senders/telegram_disconnect_params.rbs +25 -0
  402. data/sig/zavudev/models/template.rbs +2 -1
  403. data/sig/zavudev/models/template_create_params.rbs +9 -6
  404. data/sig/zavudev/models/template_sync_params.rbs +25 -0
  405. data/sig/zavudev/models/template_sync_response.rbs +45 -0
  406. data/sig/zavudev/models/url_escalate_params.rbs +28 -0
  407. data/sig/zavudev/models/url_escalate_response.rbs +15 -0
  408. data/sig/zavudev/models/webhook_event.rbs +10 -0
  409. data/sig/zavudev/models.rbs +60 -2
  410. data/sig/zavudev/resources/agent_templates.rbs +16 -0
  411. data/sig/zavudev/resources/agents/senders.rbs +21 -0
  412. data/sig/zavudev/resources/agents.rbs +72 -0
  413. data/sig/zavudev/resources/calls.rbs +35 -0
  414. data/sig/zavudev/resources/contacts.rbs +3 -5
  415. data/sig/zavudev/resources/conversations.rbs +33 -0
  416. data/sig/zavudev/resources/email_domains.rbs +31 -0
  417. data/sig/zavudev/resources/functions/git_link.rbs +42 -0
  418. data/sig/zavudev/resources/functions/triggers.rbs +33 -0
  419. data/sig/zavudev/resources/functions.rbs +27 -0
  420. data/sig/zavudev/resources/introspect.rbs +6 -0
  421. data/sig/zavudev/resources/messages.rbs +5 -0
  422. data/sig/zavudev/resources/phone_numbers.rbs +1 -0
  423. data/sig/zavudev/resources/senders/agent/knowledge_bases/documents.rbs +16 -0
  424. data/sig/zavudev/resources/senders/agent/tools/webhook.rbs +19 -0
  425. data/sig/zavudev/resources/senders/agent/tools.rbs +9 -0
  426. data/sig/zavudev/resources/senders/agent.rbs +2 -0
  427. data/sig/zavudev/resources/senders/telegram.rbs +20 -0
  428. data/sig/zavudev/resources/senders.rbs +8 -0
  429. data/sig/zavudev/resources/templates.rbs +5 -0
  430. data/sig/zavudev/resources/urls.rbs +6 -0
  431. 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, suggested_merge_with: nil, updated_at: 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.