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.
Files changed (344) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -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_list_deployments_params.rb +26 -0
  52. data/lib/zavudev/models/function_list_deployments_response.rb +95 -0
  53. data/lib/zavudev/models/function_list_event_types_params.rb +14 -0
  54. data/lib/zavudev/models/function_list_event_types_response.rb +16 -0
  55. data/lib/zavudev/models/function_rollback_deployment_params.rb +29 -0
  56. data/lib/zavudev/models/function_rollback_deployment_response.rb +137 -0
  57. data/lib/zavudev/models/functions/git_link_deploy_now_params.rb +22 -0
  58. data/lib/zavudev/models/functions/git_link_deploy_now_response.rb +18 -0
  59. data/lib/zavudev/models/functions/git_link_link_params.rb +59 -0
  60. data/lib/zavudev/models/functions/git_link_link_response.rb +222 -0
  61. data/lib/zavudev/models/functions/git_link_retrieve_params.rb +22 -0
  62. data/lib/zavudev/models/functions/git_link_retrieve_response.rb +222 -0
  63. data/lib/zavudev/models/functions/git_link_unlink_params.rb +22 -0
  64. data/lib/zavudev/models/functions/git_link_update_params.rb +40 -0
  65. data/lib/zavudev/models/functions/git_link_update_response.rb +222 -0
  66. data/lib/zavudev/models/functions/trigger_create_params.rb +51 -0
  67. data/lib/zavudev/models/functions/trigger_create_response.rb +120 -0
  68. data/lib/zavudev/models/functions/trigger_delete_params.rb +22 -0
  69. data/lib/zavudev/models/functions/trigger_list_params.rb +22 -0
  70. data/lib/zavudev/models/functions/trigger_list_response.rb +105 -0
  71. data/lib/zavudev/models/functions/trigger_update_params.rb +28 -0
  72. data/lib/zavudev/models/functions/trigger_update_response.rb +24 -0
  73. data/lib/zavudev/models/introspect_validate_email_params.rb +30 -0
  74. data/lib/zavudev/models/introspect_validate_email_response.rb +145 -0
  75. data/lib/zavudev/models/message.rb +24 -1
  76. data/lib/zavudev/models/message_content.rb +148 -1
  77. data/lib/zavudev/models/message_list_attachments_params.rb +20 -0
  78. data/lib/zavudev/models/message_list_attachments_response.rb +90 -0
  79. data/lib/zavudev/models/phone_number_type.rb +4 -0
  80. data/lib/zavudev/models/senders/agent/knowledge_bases/document_retrieve_document_params.rb +38 -0
  81. data/lib/zavudev/models/senders/agent/knowledge_bases/document_retrieve_document_response.rb +22 -0
  82. data/lib/zavudev/models/senders/agent/knowledge_bases/document_update_document_params.rb +50 -0
  83. data/lib/zavudev/models/senders/agent/knowledge_bases/document_update_document_response.rb +22 -0
  84. data/lib/zavudev/models/senders/agent/tool_list_test_runs_params.rb +36 -0
  85. data/lib/zavudev/models/senders/agent/tool_list_test_runs_response.rb +101 -0
  86. data/lib/zavudev/models/senders/agent/tools/webhook_rotate_secret_params.rb +32 -0
  87. data/lib/zavudev/models/senders/telegram_connect_params.rb +31 -0
  88. data/lib/zavudev/models/senders/telegram_connect_response.rb +41 -0
  89. data/lib/zavudev/models/senders/telegram_disconnect_params.rb +22 -0
  90. data/lib/zavudev/models/template_sync_params.rb +26 -0
  91. data/lib/zavudev/models/template_sync_response.rb +63 -0
  92. data/lib/zavudev/models/url_escalate_params.rb +29 -0
  93. data/lib/zavudev/models/url_escalate_response.rb +22 -0
  94. data/lib/zavudev/models/webhook_event.rb +6 -1
  95. data/lib/zavudev/models.rb +60 -2
  96. data/lib/zavudev/resources/agent_templates.rb +56 -0
  97. data/lib/zavudev/resources/agents/senders.rb +70 -0
  98. data/lib/zavudev/resources/agents.rb +253 -0
  99. data/lib/zavudev/resources/broadcasts.rb +16 -6
  100. data/lib/zavudev/resources/calls.rb +147 -0
  101. data/lib/zavudev/resources/contacts.rb +19 -23
  102. data/lib/zavudev/resources/conversations.rb +124 -0
  103. data/lib/zavudev/resources/email_domains.rb +113 -0
  104. data/lib/zavudev/resources/functions/git_link.rb +151 -0
  105. data/lib/zavudev/resources/functions/triggers.rb +116 -0
  106. data/lib/zavudev/resources/functions.rb +82 -0
  107. data/lib/zavudev/resources/introspect.rb +33 -0
  108. data/lib/zavudev/resources/messages.rb +54 -0
  109. data/lib/zavudev/resources/number_10dlc/brands.rb +10 -5
  110. data/lib/zavudev/resources/number_10dlc/campaigns.rb +8 -7
  111. data/lib/zavudev/resources/senders/agent/knowledge_bases/documents.rb +71 -0
  112. data/lib/zavudev/resources/senders/agent/tools/webhook.rb +47 -0
  113. data/lib/zavudev/resources/senders/agent/tools.rb +37 -0
  114. data/lib/zavudev/resources/senders/telegram.rb +61 -0
  115. data/lib/zavudev/resources/senders.rb +4 -0
  116. data/lib/zavudev/resources/templates.rb +45 -0
  117. data/lib/zavudev/resources/urls.rb +25 -0
  118. data/lib/zavudev/version.rb +1 -1
  119. data/lib/zavudev.rb +93 -1
  120. data/rbi/zavudev/client.rbi +15 -0
  121. data/rbi/zavudev/models/agent_create_params.rbi +417 -0
  122. data/rbi/zavudev/models/agent_create_response.rbi +37 -0
  123. data/rbi/zavudev/models/agent_delete_params.rbi +35 -0
  124. data/rbi/zavudev/models/agent_list_params.rbi +49 -0
  125. data/rbi/zavudev/models/agent_list_voices_params.rbi +43 -0
  126. data/rbi/zavudev/models/agent_list_voices_response.rbi +95 -0
  127. data/rbi/zavudev/models/agent_retrieve_params.rbi +35 -0
  128. data/rbi/zavudev/models/agent_retrieve_response.rbi +37 -0
  129. data/rbi/zavudev/models/agent_template_list_params.rbi +27 -0
  130. data/rbi/zavudev/models/agent_template_list_response.rbi +153 -0
  131. data/rbi/zavudev/models/agent_template_retrieve_params.rbi +38 -0
  132. data/rbi/zavudev/models/agent_template_retrieve_response.rbi +266 -0
  133. data/rbi/zavudev/models/agent_test_params.rbi +161 -0
  134. data/rbi/zavudev/models/agent_test_response.rbi +176 -0
  135. data/rbi/zavudev/models/agent_update_params.rbi +441 -0
  136. data/rbi/zavudev/models/agent_update_response.rbi +37 -0
  137. data/rbi/zavudev/models/agents/sender_connect_params.rbi +54 -0
  138. data/rbi/zavudev/models/agents/sender_connect_response.rbi +39 -0
  139. data/rbi/zavudev/models/agents/sender_disconnect_params.rbi +48 -0
  140. data/rbi/zavudev/models/call_create_params.rbi +112 -0
  141. data/rbi/zavudev/models/call_create_response.rbi +466 -0
  142. data/rbi/zavudev/models/call_hangup_params.rbi +35 -0
  143. data/rbi/zavudev/models/call_hangup_response.rbi +466 -0
  144. data/rbi/zavudev/models/call_list_params.rbi +159 -0
  145. data/rbi/zavudev/models/call_list_response.rbi +405 -0
  146. data/rbi/zavudev/models/call_retrieve_params.rbi +35 -0
  147. data/rbi/zavudev/models/call_retrieve_response.rbi +472 -0
  148. data/rbi/zavudev/models/contact.rbi +0 -11
  149. data/rbi/zavudev/models/contact_list_params.rbi +56 -0
  150. data/rbi/zavudev/models/contact_update_params.rbi +12 -0
  151. data/rbi/zavudev/models/conversation_list_messages_params.rbi +64 -0
  152. data/rbi/zavudev/models/conversation_list_params.rbi +167 -0
  153. data/rbi/zavudev/models/conversation_list_response.rbi +367 -0
  154. data/rbi/zavudev/models/conversation_mark_as_read_params.rbi +38 -0
  155. data/rbi/zavudev/models/conversation_mark_as_read_response.rbi +436 -0
  156. data/rbi/zavudev/models/conversation_retrieve_params.rbi +35 -0
  157. data/rbi/zavudev/models/conversation_retrieve_response.rbi +436 -0
  158. data/rbi/zavudev/models/email_domain_create_params.rbi +40 -0
  159. data/rbi/zavudev/models/email_domain_create_response.rbi +259 -0
  160. data/rbi/zavudev/models/email_domain_delete_params.rbi +35 -0
  161. data/rbi/zavudev/models/email_domain_list_params.rbi +27 -0
  162. data/rbi/zavudev/models/email_domain_list_response.rbi +253 -0
  163. data/rbi/zavudev/models/email_domain_retrieve_params.rbi +35 -0
  164. data/rbi/zavudev/models/email_domain_retrieve_response.rbi +259 -0
  165. data/rbi/zavudev/models/email_domain_verify_params.rbi +35 -0
  166. data/rbi/zavudev/models/email_domain_verify_response.rbi +259 -0
  167. data/rbi/zavudev/models/function_list_deployments_params.rbi +49 -0
  168. data/rbi/zavudev/models/function_list_deployments_response.rbi +211 -0
  169. data/rbi/zavudev/models/function_list_event_types_params.rbi +30 -0
  170. data/rbi/zavudev/models/function_list_event_types_response.rbi +26 -0
  171. data/rbi/zavudev/models/function_rollback_deployment_params.rbi +52 -0
  172. data/rbi/zavudev/models/function_rollback_deployment_response.rbi +240 -0
  173. data/rbi/zavudev/models/functions/git_link_deploy_now_params.rbi +40 -0
  174. data/rbi/zavudev/models/functions/git_link_deploy_now_response.rbi +28 -0
  175. data/rbi/zavudev/models/functions/git_link_link_params.rbi +87 -0
  176. data/rbi/zavudev/models/functions/git_link_link_response.rbi +360 -0
  177. data/rbi/zavudev/models/functions/git_link_retrieve_params.rbi +40 -0
  178. data/rbi/zavudev/models/functions/git_link_retrieve_response.rbi +364 -0
  179. data/rbi/zavudev/models/functions/git_link_unlink_params.rbi +40 -0
  180. data/rbi/zavudev/models/functions/git_link_update_params.rbi +70 -0
  181. data/rbi/zavudev/models/functions/git_link_update_response.rbi +362 -0
  182. data/rbi/zavudev/models/functions/trigger_create_params.rbi +75 -0
  183. data/rbi/zavudev/models/functions/trigger_create_response.rbi +168 -0
  184. data/rbi/zavudev/models/functions/trigger_delete_params.rbi +40 -0
  185. data/rbi/zavudev/models/functions/trigger_list_params.rbi +40 -0
  186. data/rbi/zavudev/models/functions/trigger_list_response.rbi +152 -0
  187. data/rbi/zavudev/models/functions/trigger_update_params.rbi +48 -0
  188. data/rbi/zavudev/models/functions/trigger_update_response.rbi +33 -0
  189. data/rbi/zavudev/models/introspect_validate_email_params.rbi +60 -0
  190. data/rbi/zavudev/models/introspect_validate_email_response.rbi +328 -0
  191. data/rbi/zavudev/models/message.rbi +29 -0
  192. data/rbi/zavudev/models/message_content.rbi +260 -0
  193. data/rbi/zavudev/models/{contact_dismiss_merge_suggestion_params.rbi → message_list_attachments_params.rbi} +6 -6
  194. data/rbi/zavudev/models/message_list_attachments_response.rbi +136 -0
  195. data/rbi/zavudev/models/phone_number_type.rbi +4 -0
  196. data/rbi/zavudev/models/senders/agent/knowledge_bases/document_retrieve_document_params.rbi +57 -0
  197. data/rbi/zavudev/models/senders/agent/knowledge_bases/document_retrieve_document_response.rbi +47 -0
  198. data/rbi/zavudev/models/senders/agent/knowledge_bases/document_update_document_params.rbi +80 -0
  199. data/rbi/zavudev/models/senders/agent/knowledge_bases/document_update_document_response.rbi +47 -0
  200. data/rbi/zavudev/models/senders/agent/tool_list_test_runs_params.rbi +58 -0
  201. data/rbi/zavudev/models/senders/agent/tool_list_test_runs_response.rbi +152 -0
  202. data/rbi/zavudev/models/senders/agent/tools/webhook_rotate_secret_params.rbi +52 -0
  203. data/rbi/zavudev/models/senders/telegram_connect_params.rbi +54 -0
  204. data/rbi/zavudev/models/senders/telegram_connect_response.rbi +93 -0
  205. data/rbi/zavudev/models/senders/telegram_disconnect_params.rbi +40 -0
  206. data/rbi/zavudev/models/template_sync_params.rbi +45 -0
  207. data/rbi/zavudev/models/template_sync_response.rbi +86 -0
  208. data/rbi/zavudev/models/url_escalate_params.rbi +49 -0
  209. data/rbi/zavudev/models/url_escalate_response.rbi +36 -0
  210. data/rbi/zavudev/models/webhook_event.rbi +6 -1
  211. data/rbi/zavudev/models.rbi +62 -3
  212. data/rbi/zavudev/resources/agent_templates.rbi +36 -0
  213. data/rbi/zavudev/resources/agents/senders.rbi +50 -0
  214. data/rbi/zavudev/resources/agents.rbi +204 -0
  215. data/rbi/zavudev/resources/broadcasts.rbi +16 -6
  216. data/rbi/zavudev/resources/calls.rbi +132 -0
  217. data/rbi/zavudev/resources/contacts.rbi +34 -11
  218. data/rbi/zavudev/resources/conversations.rbi +98 -0
  219. data/rbi/zavudev/resources/email_domains.rbi +67 -0
  220. data/rbi/zavudev/resources/functions/git_link.rbi +116 -0
  221. data/rbi/zavudev/resources/functions/triggers.rbi +81 -0
  222. data/rbi/zavudev/resources/functions.rbi +55 -0
  223. data/rbi/zavudev/resources/introspect.rbi +26 -0
  224. data/rbi/zavudev/resources/messages.rbi +45 -0
  225. data/rbi/zavudev/resources/number_10dlc/brands.rbi +10 -5
  226. data/rbi/zavudev/resources/number_10dlc/campaigns.rbi +8 -7
  227. data/rbi/zavudev/resources/senders/agent/knowledge_bases/documents.rbi +48 -0
  228. data/rbi/zavudev/resources/senders/agent/tools/webhook.rbi +31 -0
  229. data/rbi/zavudev/resources/senders/agent/tools.rbi +25 -0
  230. data/rbi/zavudev/resources/senders/telegram.rbi +42 -0
  231. data/rbi/zavudev/resources/senders.rbi +3 -0
  232. data/rbi/zavudev/resources/templates.rbi +35 -0
  233. data/rbi/zavudev/resources/urls.rbi +17 -0
  234. data/sig/zavudev/client.rbs +10 -0
  235. data/sig/zavudev/models/agent_create_params.rbs +234 -0
  236. data/sig/zavudev/models/agent_create_response.rbs +13 -0
  237. data/sig/zavudev/models/agent_delete_params.rbs +23 -0
  238. data/sig/zavudev/models/agent_list_params.rbs +32 -0
  239. data/sig/zavudev/models/agent_list_voices_params.rbs +25 -0
  240. data/sig/zavudev/models/agent_list_voices_response.rbs +46 -0
  241. data/sig/zavudev/models/agent_retrieve_params.rbs +23 -0
  242. data/sig/zavudev/models/agent_retrieve_response.rbs +13 -0
  243. data/sig/zavudev/models/agent_template_list_params.rbs +15 -0
  244. data/sig/zavudev/models/agent_template_list_response.rbs +73 -0
  245. data/sig/zavudev/models/agent_template_retrieve_params.rbs +23 -0
  246. data/sig/zavudev/models/agent_template_retrieve_response.rbs +112 -0
  247. data/sig/zavudev/models/agent_test_params.rbs +87 -0
  248. data/sig/zavudev/models/agent_test_response.rbs +78 -0
  249. data/sig/zavudev/models/agent_update_params.rbs +259 -0
  250. data/sig/zavudev/models/agent_update_response.rbs +13 -0
  251. data/sig/zavudev/models/agents/sender_connect_params.rbs +30 -0
  252. data/sig/zavudev/models/agents/sender_connect_response.rbs +15 -0
  253. data/sig/zavudev/models/agents/sender_disconnect_params.rbs +30 -0
  254. data/sig/zavudev/models/call_create_params.rbs +61 -0
  255. data/sig/zavudev/models/call_create_response.rbs +194 -0
  256. data/sig/zavudev/models/call_hangup_params.rbs +23 -0
  257. data/sig/zavudev/models/call_hangup_response.rbs +194 -0
  258. data/sig/zavudev/models/call_list_params.rbs +89 -0
  259. data/sig/zavudev/models/call_list_response.rbs +183 -0
  260. data/sig/zavudev/models/call_retrieve_params.rbs +23 -0
  261. data/sig/zavudev/models/call_retrieve_response.rbs +196 -0
  262. data/sig/zavudev/models/contact.rbs +0 -7
  263. data/sig/zavudev/models/contact_list_params.rbs +19 -1
  264. data/sig/zavudev/models/contact_update_params.rbs +5 -0
  265. data/sig/zavudev/models/conversation_list_messages_params.rbs +36 -0
  266. data/sig/zavudev/models/conversation_list_params.rbs +83 -0
  267. data/sig/zavudev/models/conversation_list_response.rbs +184 -0
  268. data/sig/zavudev/models/conversation_mark_as_read_params.rbs +23 -0
  269. data/sig/zavudev/models/conversation_mark_as_read_response.rbs +201 -0
  270. data/sig/zavudev/models/conversation_retrieve_params.rbs +23 -0
  271. data/sig/zavudev/models/conversation_retrieve_response.rbs +201 -0
  272. data/sig/zavudev/models/email_domain_create_params.rbs +23 -0
  273. data/sig/zavudev/models/email_domain_create_response.rbs +116 -0
  274. data/sig/zavudev/models/email_domain_delete_params.rbs +23 -0
  275. data/sig/zavudev/models/email_domain_list_params.rbs +15 -0
  276. data/sig/zavudev/models/email_domain_list_response.rbs +116 -0
  277. data/sig/zavudev/models/email_domain_retrieve_params.rbs +23 -0
  278. data/sig/zavudev/models/email_domain_retrieve_response.rbs +116 -0
  279. data/sig/zavudev/models/email_domain_verify_params.rbs +23 -0
  280. data/sig/zavudev/models/email_domain_verify_response.rbs +116 -0
  281. data/sig/zavudev/models/function_list_deployments_params.rbs +30 -0
  282. data/sig/zavudev/models/function_list_deployments_response.rbs +107 -0
  283. data/sig/zavudev/models/function_list_event_types_params.rbs +15 -0
  284. data/sig/zavudev/models/function_list_event_types_response.rbs +13 -0
  285. data/sig/zavudev/models/function_rollback_deployment_params.rbs +28 -0
  286. data/sig/zavudev/models/function_rollback_deployment_response.rbs +117 -0
  287. data/sig/zavudev/models/functions/git_link_deploy_now_params.rbs +25 -0
  288. data/sig/zavudev/models/functions/git_link_deploy_now_response.rbs +15 -0
  289. data/sig/zavudev/models/functions/git_link_link_params.rbs +59 -0
  290. data/sig/zavudev/models/functions/git_link_link_response.rbs +159 -0
  291. data/sig/zavudev/models/functions/git_link_retrieve_params.rbs +25 -0
  292. data/sig/zavudev/models/functions/git_link_retrieve_response.rbs +159 -0
  293. data/sig/zavudev/models/functions/git_link_unlink_params.rbs +25 -0
  294. data/sig/zavudev/models/functions/git_link_update_params.rbs +47 -0
  295. data/sig/zavudev/models/functions/git_link_update_response.rbs +159 -0
  296. data/sig/zavudev/models/functions/trigger_create_params.rbs +45 -0
  297. data/sig/zavudev/models/functions/trigger_create_response.rbs +94 -0
  298. data/sig/zavudev/models/functions/trigger_delete_params.rbs +25 -0
  299. data/sig/zavudev/models/functions/trigger_list_params.rbs +25 -0
  300. data/sig/zavudev/models/functions/trigger_list_response.rbs +84 -0
  301. data/sig/zavudev/models/functions/trigger_update_params.rbs +30 -0
  302. data/sig/zavudev/models/functions/trigger_update_response.rbs +17 -0
  303. data/sig/zavudev/models/introspect_validate_email_params.rbs +32 -0
  304. data/sig/zavudev/models/introspect_validate_email_response.rbs +135 -0
  305. data/sig/zavudev/models/message.rbs +16 -0
  306. data/sig/zavudev/models/message_content.rbs +117 -0
  307. data/sig/zavudev/models/{contact_dismiss_merge_suggestion_params.rbs → message_list_attachments_params.rbs} +6 -6
  308. data/sig/zavudev/models/message_list_attachments_response.rbs +70 -0
  309. data/sig/zavudev/models/phone_number_type.rbs +2 -1
  310. data/sig/zavudev/models/senders/agent/knowledge_bases/document_retrieve_document_params.rbs +38 -0
  311. data/sig/zavudev/models/senders/agent/knowledge_bases/document_retrieve_document_response.rbs +22 -0
  312. data/sig/zavudev/models/senders/agent/knowledge_bases/document_update_document_params.rbs +56 -0
  313. data/sig/zavudev/models/senders/agent/knowledge_bases/document_update_document_response.rbs +22 -0
  314. data/sig/zavudev/models/senders/agent/tool_list_test_runs_params.rbs +38 -0
  315. data/sig/zavudev/models/senders/agent/tool_list_test_runs_response.rbs +83 -0
  316. data/sig/zavudev/models/senders/agent/tools/webhook_rotate_secret_params.rbs +34 -0
  317. data/sig/zavudev/models/senders/telegram_connect_params.rbs +30 -0
  318. data/sig/zavudev/models/senders/telegram_connect_response.rbs +49 -0
  319. data/sig/zavudev/models/senders/telegram_disconnect_params.rbs +25 -0
  320. data/sig/zavudev/models/template_sync_params.rbs +25 -0
  321. data/sig/zavudev/models/template_sync_response.rbs +45 -0
  322. data/sig/zavudev/models/url_escalate_params.rbs +28 -0
  323. data/sig/zavudev/models/url_escalate_response.rbs +15 -0
  324. data/sig/zavudev/models.rbs +60 -2
  325. data/sig/zavudev/resources/agent_templates.rbs +16 -0
  326. data/sig/zavudev/resources/agents/senders.rbs +21 -0
  327. data/sig/zavudev/resources/agents.rbs +72 -0
  328. data/sig/zavudev/resources/calls.rbs +35 -0
  329. data/sig/zavudev/resources/contacts.rbs +3 -5
  330. data/sig/zavudev/resources/conversations.rbs +33 -0
  331. data/sig/zavudev/resources/email_domains.rbs +31 -0
  332. data/sig/zavudev/resources/functions/git_link.rbs +42 -0
  333. data/sig/zavudev/resources/functions/triggers.rbs +33 -0
  334. data/sig/zavudev/resources/functions.rbs +20 -0
  335. data/sig/zavudev/resources/introspect.rbs +6 -0
  336. data/sig/zavudev/resources/messages.rbs +5 -0
  337. data/sig/zavudev/resources/senders/agent/knowledge_bases/documents.rbs +16 -0
  338. data/sig/zavudev/resources/senders/agent/tools/webhook.rbs +19 -0
  339. data/sig/zavudev/resources/senders/agent/tools.rbs +9 -0
  340. data/sig/zavudev/resources/senders/telegram.rbs +20 -0
  341. data/sig/zavudev/resources/senders.rbs +2 -0
  342. data/sig/zavudev/resources/templates.rbs +5 -0
  343. data/sig/zavudev/resources/urls.rbs +6 -0
  344. metadata +281 -5
@@ -42,6 +42,7 @@ module Zavudev
42
42
  contact_id: String,
43
43
  default_channel:
44
44
  T.nilable(Zavudev::ContactUpdateParams::DefaultChannel::OrSymbol),
45
+ display_name: T.nilable(String),
45
46
  metadata: T::Hash[Symbol, String],
46
47
  request_options: Zavudev::RequestOptions::OrHash
47
48
  ).returns(Zavudev::Contact)
@@ -50,6 +51,10 @@ module Zavudev
50
51
  contact_id,
51
52
  # Preferred channel for this contact. Set to null to clear.
52
53
  default_channel: nil,
54
+ # Human-readable name for this contact. Set to null to clear it and fall back to
55
+ # the contact's identifier. Contacts created automatically from an inbound message
56
+ # have no display name until you set one.
57
+ display_name: nil,
53
58
  metadata: nil,
54
59
  request_options: {}
55
60
  )
@@ -61,10 +66,38 @@ module Zavudev
61
66
  cursor: String,
62
67
  limit: Integer,
63
68
  phone_number: String,
69
+ search: String,
70
+ tag: T::Array[String],
64
71
  request_options: Zavudev::RequestOptions::OrHash
65
72
  ).returns(Zavudev::Internal::Cursor[Zavudev::Contact])
66
73
  end
67
- def list(cursor: nil, limit: nil, phone_number: nil, request_options: {})
74
+ def list(
75
+ # Opaque cursor from a previous response's `nextCursor`. Do not construct it.
76
+ cursor: nil,
77
+ limit: nil,
78
+ # Exact match on the contact's primary phone number, in E.164.
79
+ phone_number: nil,
80
+ # Free-text match over the contact's name (`displayName` and the WhatsApp profile
81
+ # name), phone numbers and email addresses. Case- and accent-insensitive. A phone
82
+ # number matches on a trailing fragment too, so `5551234` finds `+14155551234`.
83
+ #
84
+ # Contacts created automatically from an inbound message have no `displayName` —
85
+ # they are matched by their identifier until you set one with
86
+ # `PATCH /v1/contacts/{contactId}`.
87
+ #
88
+ # Results come back in relevance order rather than newest-first. `cursor` is
89
+ # opaque in both modes; pass back exactly what the previous response returned, and
90
+ # start a new pagination run when the search term changes.
91
+ search: nil,
92
+ # Tag name. Repeatable: `?tag=vip&tag=chile` returns contacts carrying **every**
93
+ # tag given, not any of them — the same rule the dashboard filter applies.
94
+ #
95
+ # Tags are matched by name, case-insensitively. An unknown tag returns 400 rather
96
+ # than being ignored, because a typo that silently matched every contact would be
97
+ # a worse answer than an error.
98
+ tag: nil,
99
+ request_options: {}
100
+ )
68
101
  end
69
102
 
70
103
  # Permanently delete a contact and its communication channels. Implements
@@ -82,16 +115,6 @@ module Zavudev
82
115
  def delete(contact_id, request_options: {})
83
116
  end
84
117
 
85
- # Dismiss the merge suggestion for a contact.
86
- sig do
87
- params(
88
- contact_id: String,
89
- request_options: Zavudev::RequestOptions::OrHash
90
- ).void
91
- end
92
- def dismiss_merge_suggestion(contact_id, request_options: {})
93
- end
94
-
95
118
  # Merge a source contact into this contact. All channels from the source contact
96
119
  # will be moved to the target contact, and the source contact will be marked as
97
120
  # merged.
@@ -0,0 +1,98 @@
1
+ # typed: strong
2
+
3
+ module Zavudev
4
+ module Resources
5
+ class Conversations
6
+ # Get conversation
7
+ sig do
8
+ params(
9
+ conversation_id: String,
10
+ request_options: Zavudev::RequestOptions::OrHash
11
+ ).returns(Zavudev::Models::ConversationRetrieveResponse)
12
+ end
13
+ def retrieve(conversation_id, request_options: {})
14
+ end
15
+
16
+ # List inbox threads, most recently active first. A conversation groups every
17
+ # message with one contact across channels, which is what you need to build an
18
+ # inbox: `GET /v1/messages` returns a flat log with no thread to hang it on.
19
+ #
20
+ # Use `senderId` to scope the list to a single number, and `channel` to keep only
21
+ # threads that have carried that channel.
22
+ sig do
23
+ params(
24
+ channel: Zavudev::ConversationListParams::Channel::OrSymbol,
25
+ cursor: String,
26
+ limit: Integer,
27
+ search: String,
28
+ sender_id: String,
29
+ request_options: Zavudev::RequestOptions::OrHash
30
+ ).returns(
31
+ Zavudev::Internal::Cursor[Zavudev::Models::ConversationListResponse]
32
+ )
33
+ end
34
+ def list(
35
+ # Keep only threads that have carried this channel.
36
+ channel: nil,
37
+ # Opaque cursor from a previous response's `nextCursor`. Do not construct it.
38
+ cursor: nil,
39
+ limit: nil,
40
+ # Search threads by identity: phone number (any format — `+1 (555) 123-4567` and
41
+ # `15551234567` both match), email address (full or local part), WhatsApp group
42
+ # subject, WhatsApp username, or BSUID. Matching is by whole word, with prefix
43
+ # matching on the last term, so `mar` finds `maria@example.com` and `+1555` finds
44
+ # `+15551234567`; a fragment from the middle or end of a number (`4567`) does not
45
+ # match.
46
+ #
47
+ # It does **not** search message bodies — only who the thread is with.
48
+ #
49
+ # Results come back ranked by relevance rather than by recency, so the usual "most
50
+ # recently active first" ordering does not apply while `q` is set. `senderId` and
51
+ # `channel` still narrow the results, and `cursor` paginates them as usual. An
52
+ # empty or whitespace-only `q` returns no items rather than the full list.
53
+ search: nil,
54
+ # Keep only threads last handled by this sender.
55
+ sender_id: nil,
56
+ request_options: {}
57
+ )
58
+ end
59
+
60
+ # Messages in this thread, newest first, across every channel it has carried.
61
+ # Reply with `POST /v1/messages`, passing the conversation's `senderId` as the
62
+ # `Zavu-Sender` header so the answer leaves from the number the contact already
63
+ # knows.
64
+ sig do
65
+ params(
66
+ conversation_id: String,
67
+ cursor: String,
68
+ limit: Integer,
69
+ request_options: Zavudev::RequestOptions::OrHash
70
+ ).returns(Zavudev::Internal::Cursor[Zavudev::Message])
71
+ end
72
+ def list_messages(
73
+ conversation_id,
74
+ # Opaque cursor from a previous response's `nextCursor`.
75
+ cursor: nil,
76
+ limit: nil,
77
+ request_options: {}
78
+ )
79
+ end
80
+
81
+ # Reset the thread's `unreadCount` to zero. Marks the thread read in your own
82
+ # inbox only: it does not send a read receipt to the contact.
83
+ sig do
84
+ params(
85
+ conversation_id: String,
86
+ request_options: Zavudev::RequestOptions::OrHash
87
+ ).returns(Zavudev::Models::ConversationMarkAsReadResponse)
88
+ end
89
+ def mark_as_read(conversation_id, request_options: {})
90
+ end
91
+
92
+ # @api private
93
+ sig { params(client: Zavudev::Client).returns(T.attached_class) }
94
+ def self.new(client:)
95
+ end
96
+ end
97
+ end
98
+ end
@@ -0,0 +1,67 @@
1
+ # typed: strong
2
+
3
+ module Zavudev
4
+ module Resources
5
+ class EmailDomains
6
+ # Add a domain to send email from. Returns the DNS records to publish (DKIM CNAMEs
7
+ # are required; SPF, DMARC, and MAIL FROM are recommended). Publish them at your
8
+ # DNS provider, then verify.
9
+ sig do
10
+ params(
11
+ domain: String,
12
+ request_options: Zavudev::RequestOptions::OrHash
13
+ ).returns(Zavudev::Models::EmailDomainCreateResponse)
14
+ end
15
+ def create(
16
+ # Bare domain, e.g. example.com.
17
+ domain:,
18
+ request_options: {}
19
+ )
20
+ end
21
+
22
+ # Fetch a domain with its DNS records and current status.
23
+ sig do
24
+ params(
25
+ domain_id: String,
26
+ request_options: Zavudev::RequestOptions::OrHash
27
+ ).returns(Zavudev::Models::EmailDomainRetrieveResponse)
28
+ end
29
+ def retrieve(domain_id, request_options: {})
30
+ end
31
+
32
+ # List email domains
33
+ sig do
34
+ params(request_options: Zavudev::RequestOptions::OrHash).returns(
35
+ Zavudev::Models::EmailDomainListResponse
36
+ )
37
+ end
38
+ def list(request_options: {})
39
+ end
40
+
41
+ # Remove an email domain
42
+ sig do
43
+ params(
44
+ domain_id: String,
45
+ request_options: Zavudev::RequestOptions::OrHash
46
+ ).void
47
+ end
48
+ def delete(domain_id, request_options: {})
49
+ end
50
+
51
+ # Re-check the domain's published DNS records and refresh its status.
52
+ sig do
53
+ params(
54
+ domain_id: String,
55
+ request_options: Zavudev::RequestOptions::OrHash
56
+ ).returns(Zavudev::Models::EmailDomainVerifyResponse)
57
+ end
58
+ def verify(domain_id, request_options: {})
59
+ end
60
+
61
+ # @api private
62
+ sig { params(client: Zavudev::Client).returns(T.attached_class) }
63
+ def self.new(client:)
64
+ end
65
+ end
66
+ end
67
+ end
@@ -0,0 +1,116 @@
1
+ # typed: strong
2
+
3
+ module Zavudev
4
+ module Resources
5
+ class Functions
6
+ class GitLink
7
+ # The link and its last deploy. Never returns the webhook secret.
8
+ sig do
9
+ params(
10
+ function_id: String,
11
+ request_options: Zavudev::RequestOptions::OrHash
12
+ ).returns(Zavudev::Models::Functions::GitLinkRetrieveResponse)
13
+ end
14
+ def retrieve(
15
+ # Zavu Function ID.
16
+ function_id,
17
+ request_options: {}
18
+ )
19
+ end
20
+
21
+ # Change the branch, the root directory, or whether pushes deploy. Pass at least
22
+ # one field. `rootDir: null` clears the subdirectory.
23
+ sig do
24
+ params(
25
+ function_id: String,
26
+ auto_deploy: T::Boolean,
27
+ branch: String,
28
+ root_dir: T.nilable(String),
29
+ request_options: Zavudev::RequestOptions::OrHash
30
+ ).returns(Zavudev::Models::Functions::GitLinkUpdateResponse)
31
+ end
32
+ def update(
33
+ # Zavu Function ID.
34
+ function_id,
35
+ auto_deploy: nil,
36
+ branch: nil,
37
+ root_dir: nil,
38
+ request_options: {}
39
+ )
40
+ end
41
+
42
+ # Fetch the linked branch and deploy it without waiting for a push. Returns
43
+ # immediately; follow the outcome with `GET /v1/functions/{functionId}/git-link`,
44
+ # whose `lastStatus` and `lastError` describe the run.
45
+ sig do
46
+ params(
47
+ function_id: String,
48
+ request_options: Zavudev::RequestOptions::OrHash
49
+ ).returns(Zavudev::Models::Functions::GitLinkDeployNowResponse)
50
+ end
51
+ def deploy_now(
52
+ # Zavu Function ID.
53
+ function_id,
54
+ request_options: {}
55
+ )
56
+ end
57
+
58
+ # Bind a repository to this function so every push to `branch` deploys it. A
59
+ # function holds at most one link; linking again returns 400.
60
+ #
61
+ # **The server decides how the link authenticates.** If the project has the Zavu
62
+ # GitHub App installed, the link uses that installation: private repositories work
63
+ # and there is nothing to configure in the repository. Otherwise it falls back to
64
+ # a manual link and the response carries a `webhookSecret` you add to the
65
+ # repository yourself. `connection` says which one you got.
66
+ #
67
+ # The repository is not checked against GitHub here, because it cannot be: an
68
+ # owner/repo that does not exist, or that the installation cannot see, is accepted
69
+ # and fails on the first deploy with a fetch error.
70
+ sig do
71
+ params(
72
+ function_id: String,
73
+ owner: String,
74
+ repo: String,
75
+ auto_deploy: T::Boolean,
76
+ branch: String,
77
+ root_dir: String,
78
+ request_options: Zavudev::RequestOptions::OrHash
79
+ ).returns(Zavudev::Models::Functions::GitLinkLinkResponse)
80
+ end
81
+ def link(
82
+ # Zavu Function ID.
83
+ function_id,
84
+ owner:,
85
+ repo:,
86
+ auto_deploy: nil,
87
+ branch: nil,
88
+ # Subdirectory holding the project, for monorepos.
89
+ root_dir: nil,
90
+ request_options: {}
91
+ )
92
+ end
93
+
94
+ # Remove the link. The function and its deployments stay. A manual webhook left in
95
+ # the repository stops being accepted, so remove it there too.
96
+ sig do
97
+ params(
98
+ function_id: String,
99
+ request_options: Zavudev::RequestOptions::OrHash
100
+ ).void
101
+ end
102
+ def unlink(
103
+ # Zavu Function ID.
104
+ function_id,
105
+ request_options: {}
106
+ )
107
+ end
108
+
109
+ # @api private
110
+ sig { params(client: Zavudev::Client).returns(T.attached_class) }
111
+ def self.new(client:)
112
+ end
113
+ end
114
+ end
115
+ end
116
+ end
@@ -0,0 +1,81 @@
1
+ # typed: strong
2
+
3
+ module Zavudev
4
+ module Resources
5
+ class Functions
6
+ class Triggers
7
+ # Subscribe a function to one or more event types, optionally scoped to specific
8
+ # senders. Provide eventTypes and senderIds (use null in senderIds for all
9
+ # senders); a trigger is created for each event type and sender combination.
10
+ #
11
+ # The special event type `cron` runs the function on a schedule instead of a
12
+ # messaging event: include a `cron` field with a 5-field UTC cron expression
13
+ # (minimum granularity one minute). A cron trigger ignores the sender axis, and a
14
+ # function may hold several cron triggers with different expressions. The function
15
+ # receives an event with `type: "cron"` and `data.cron`.
16
+ sig do
17
+ params(
18
+ function_id: String,
19
+ event_types: T::Array[String],
20
+ sender_ids: T::Array[T.nilable(String)],
21
+ cron: String,
22
+ request_options: Zavudev::RequestOptions::OrHash
23
+ ).returns(Zavudev::Models::Functions::TriggerCreateResponse)
24
+ end
25
+ def create(
26
+ # Zavu Function ID.
27
+ function_id,
28
+ # Event types to subscribe to.
29
+ event_types:,
30
+ # Senders to scope the triggers to. Use null for all senders.
31
+ sender_ids:,
32
+ # Required when eventTypes includes `cron`: a 5-field cron expression (minute hour
33
+ # day-of-month month day-of-week), evaluated in UTC.
34
+ cron: nil,
35
+ request_options: {}
36
+ )
37
+ end
38
+
39
+ # Enable or disable a trigger
40
+ sig do
41
+ params(
42
+ trigger_id: String,
43
+ active: T::Boolean,
44
+ request_options: Zavudev::RequestOptions::OrHash
45
+ ).returns(Zavudev::Models::Functions::TriggerUpdateResponse)
46
+ end
47
+ def update(trigger_id, active:, request_options: {})
48
+ end
49
+
50
+ # List function triggers
51
+ sig do
52
+ params(
53
+ function_id: String,
54
+ request_options: Zavudev::RequestOptions::OrHash
55
+ ).returns(Zavudev::Models::Functions::TriggerListResponse)
56
+ end
57
+ def list(
58
+ # Zavu Function ID.
59
+ function_id,
60
+ request_options: {}
61
+ )
62
+ end
63
+
64
+ # Delete a trigger
65
+ sig do
66
+ params(
67
+ trigger_id: String,
68
+ request_options: Zavudev::RequestOptions::OrHash
69
+ ).void
70
+ end
71
+ def delete(trigger_id, request_options: {})
72
+ end
73
+
74
+ # @api private
75
+ sig { params(client: Zavudev::Client).returns(T.attached_class) }
76
+ def self.new(client:)
77
+ end
78
+ end
79
+ end
80
+ end
81
+ end
@@ -6,6 +6,12 @@ module Zavudev
6
6
  sig { returns(Zavudev::Resources::Functions::Secrets) }
7
7
  attr_reader :secrets
8
8
 
9
+ sig { returns(Zavudev::Resources::Functions::Triggers) }
10
+ attr_reader :triggers
11
+
12
+ sig { returns(Zavudev::Resources::Functions::GitLink) }
13
+ attr_reader :git_link
14
+
9
15
  # Create a new Zavu Function. The function starts in `draft` status. A dedicated
10
16
  # API key is auto-provisioned and injected as the `ZAVU_API_KEY` secret so the
11
17
  # function can call back into the Zavu API without manual setup.
@@ -190,6 +196,55 @@ module Zavudev
190
196
  )
191
197
  end
192
198
 
199
+ # List a function's deployment history, newest first. Source code is omitted;
200
+ # fetch a single deployment via GET /v1/functions/deployments/{deploymentId} for
201
+ # full details.
202
+ sig do
203
+ params(
204
+ function_id: String,
205
+ limit: Integer,
206
+ request_options: Zavudev::RequestOptions::OrHash
207
+ ).returns(Zavudev::Models::FunctionListDeploymentsResponse)
208
+ end
209
+ def list_deployments(
210
+ # Zavu Function ID.
211
+ function_id,
212
+ limit: nil,
213
+ request_options: {}
214
+ )
215
+ end
216
+
217
+ # List the event types a function trigger can subscribe to. Includes the special
218
+ # type `cron`, which fires on a schedule (see POST
219
+ # /v1/functions/{functionId}/triggers) rather than on a messaging event.
220
+ sig do
221
+ params(request_options: Zavudev::RequestOptions::OrHash).returns(
222
+ Zavudev::Models::FunctionListEventTypesResponse
223
+ )
224
+ end
225
+ def list_event_types(request_options: {})
226
+ end
227
+
228
+ # Re-deploy a previous version by copying its source, dependencies, and runtime
229
+ # pin onto the function's draft, then deploying. Returns immediately with a
230
+ # deployment ID — poll GET /v1/functions/deployments/{deploymentId} until status
231
+ # is active or failed. Secrets are not rolled back.
232
+ sig do
233
+ params(
234
+ function_id: String,
235
+ deployment_id: String,
236
+ request_options: Zavudev::RequestOptions::OrHash
237
+ ).returns(Zavudev::Models::FunctionRollbackDeploymentResponse)
238
+ end
239
+ def rollback_deployment(
240
+ # Zavu Function ID.
241
+ function_id,
242
+ # ID of the deployment to roll back to.
243
+ deployment_id:,
244
+ request_options: {}
245
+ )
246
+ end
247
+
193
248
  # Fetch invocation logs for a function. Logs are paginated via `nextToken`. Pass
194
249
  # `startTime` / `endTime` (Unix epoch milliseconds) to bound the window, or
195
250
  # `filterPattern` to filter messages.
@@ -3,6 +3,32 @@
3
3
  module Zavudev
4
4
  module Resources
5
5
  class Introspect
6
+ # Heuristic email validation to run before sending: catches invalid syntax, dead
7
+ # domains (no MX/A records), disposable inboxes, role-based addresses (info@,
8
+ # contacto@, sales@), and addresses already on your project's suppression list.
9
+ # Use it to clean a list before a broadcast and keep your bounce rate low.
10
+ #
11
+ # No mailbox-level (SMTP) probe is performed, so a `deliverable` verdict is not a
12
+ # delivery guarantee — it means no negative signal was found. Treat `risky`
13
+ # addresses with care and drop `undeliverable` ones.
14
+ #
15
+ # Accepts a single `email` or an `emails` batch (max 100 per request).
16
+ sig do
17
+ params(
18
+ email: String,
19
+ emails: T::Array[String],
20
+ request_options: Zavudev::RequestOptions::OrHash
21
+ ).returns(Zavudev::Models::IntrospectValidateEmailResponse)
22
+ end
23
+ def validate_email(
24
+ # Single email address to validate.
25
+ email: nil,
26
+ # Batch of email addresses to validate (max 100).
27
+ emails: nil,
28
+ request_options: {}
29
+ )
30
+ end
31
+
6
32
  # Validate a phone number and check if a WhatsApp conversation window is open.
7
33
  sig do
8
34
  params(
@@ -36,6 +36,21 @@ module Zavudev
36
36
  )
37
37
  end
38
38
 
39
+ # List the stored file attachments for an email message and get a short-lived
40
+ # signed `downloadUrl` for each. Works for both inbound emails (received via
41
+ # `message.inbound`) and outbound emails you sent with attachments. Messages
42
+ # without stored attachments (including SMS, WhatsApp, and other channels) return
43
+ # an empty list. Each `downloadUrl` is generated fresh per request and expires —
44
+ # fetch the file promptly and do not cache the URL.
45
+ sig do
46
+ params(
47
+ message_id: String,
48
+ request_options: Zavudev::RequestOptions::OrHash
49
+ ).returns(Zavudev::Models::MessageListAttachmentsResponse)
50
+ end
51
+ def list_attachments(message_id, request_options: {})
52
+ end
53
+
39
54
  # Send an emoji reaction to an existing WhatsApp message. Reactions are only
40
55
  # supported for WhatsApp messages.
41
56
  sig do
@@ -85,6 +100,36 @@ module Zavudev
85
100
  # 100/day. Teams on earlier plans keep their original email quotas instead
86
101
  # - SMS and voice are billed per message from your balance on every plan
87
102
  #
103
+ # **Account verification and daily limits:**
104
+ #
105
+ # - A brand-new account can send on every channel immediately, but `sms`,
106
+ # `sms_oneway` and `voice` reach only the phone numbers the project has
107
+ # verified. Sending elsewhere returns `403` with code
108
+ # `destination_not_verified`; `details.verifiedNumbers` lists the numbers that
109
+ # are reachable. A number is verified from the dashboard's Sandbox screen:
110
+ # generate a code and send the pre-filled WhatsApp message from that phone to
111
+ # Zavu's sandbox number. One verification covers WhatsApp, SMS and calls, up to
112
+ # 5 numbers per project. To send to any destination, do any one of these: verify
113
+ # your identity, add a payment method, settle a deposit, or subscribe to a paid
114
+ # plan. Business verification (KYB) is never required to send
115
+ # - Daily ceilings apply per channel group and rise with verification. An account
116
+ # that has verified nothing: 25/day across `sms` + `sms_oneway`, 5/day for
117
+ # `voice`, 100/day across WhatsApp, Telegram, Instagram and Messenger combined.
118
+ # Past that floor: 200/day for SMS, or 10,000/day once identity or business
119
+ # verification is approved (or a higher limit agreed for your account); 50/day
120
+ # voice and 250/day conversational on Free. **Paid plans have no voice or
121
+ # conversational daily ceiling.** Over a ceiling, sends return `429` with code
122
+ # `daily_limit_exceeded` and `details.limit`; the count resets at 00:00 UTC
123
+ # - The daily ceiling never reduces the monthly allowance: 100/day on the
124
+ # conversational group still reaches the 2,000 monthly A2P messages Free
125
+ # includes
126
+ # - Email needs no account verification here: a sender with a verified domain
127
+ # sends from day one, within the plan quota (100/day and 3,000/month on Free).
128
+ # Over the daily quota it returns `429` with code `daily_limit_exceeded`. Email
129
+ # broadcasts are the exception: they need the account past the unverified level,
130
+ # see `POST /v1/broadcasts/{broadcastId}/send`
131
+ # - Full reference: https://docs.zavu.dev/concepts/sending-limits
132
+ #
88
133
  # **Email recipient pre-flight:** Email messages are validated automatically
89
134
  # before dispatch. Sends that would be a guaranteed hard bounce are failed instead
90
135
  # of sent, protecting your bounce rate: the message transitions to `failed`
@@ -159,11 +159,16 @@ module Zavudev
159
159
  end
160
160
 
161
161
  # Submit a draft brand to The Campaign Registry (TCR) for vetting. The brand must
162
- # be in draft status. TCR's one-time $4 brand registration fee is charged from
163
- # your balance at submission (passed through at cost) and refunded if the carrier
164
- # rejects the registration. A team that already paid this fee through the
165
- # compliance flow is not charged again. Campaign registration is billed separately
166
- # when a campaign is submitted.
162
+ # be in draft status, and the team must have an approved Business Verification
163
+ # (KYB) — carriers register a brand against a vetted legal entity, so submitting
164
+ # without one returns `403` with code `kyb_required`.
165
+ #
166
+ # TCR's one-time $4 brand registration fee is charged from your balance at
167
+ # submission (passed through at cost) and refunded if the carrier rejects the
168
+ # registration. The fee is per BRAND: a team registering a second legal entity
169
+ # pays it again. A brand already paid for through the compliance flow is not
170
+ # charged twice. Campaign registration is billed separately when a campaign is
171
+ # submitted.
167
172
  sig do
168
173
  params(
169
174
  brand_id: String,
@@ -137,13 +137,14 @@ module Zavudev
137
137
  )
138
138
  end
139
139
 
140
- # Submit a draft campaign for carrier review. The campaign must be in draft status
141
- # and its brand must be verified. TCR's one-time registration fee is charged from
142
- # your balance at submission ($15 for standard use cases, $2 for LOW_VOLUME),
143
- # passed through at cost and refunded if the carrier rejects it. Once approved,
144
- # the campaign's monthly TCR fee ($10 standard, $2 LOW_VOLUME) is charged from
145
- # your balance while the campaign is active — see registrationCostCents and
146
- # monthlyFeeCents on the campaign object.
140
+ # The team must have an approved Business Verification (KYB): submitting without
141
+ # one returns `403` with code `kyb_required`. Submit a draft campaign for carrier
142
+ # review. The campaign must be in draft status and its brand must be verified.
143
+ # TCR's one-time registration fee is charged from your balance at submission ($15
144
+ # for standard use cases, $2 for LOW_VOLUME), passed through at cost and refunded
145
+ # if the carrier rejects it. Once approved, the campaign's monthly TCR fee ($10
146
+ # standard, $2 LOW_VOLUME) is charged from your balance while the campaign is
147
+ # active — see registrationCostCents and monthlyFeeCents on the campaign object.
147
148
  sig do
148
149
  params(
149
150
  campaign_id: String,