sentdm 0.38.1 → 0.40.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 (281) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +21 -0
  3. data/README.md +1 -1
  4. data/lib/sentdm/client.rb +3 -20
  5. data/lib/sentdm/internal/voice_agents_page.rb +115 -0
  6. data/lib/sentdm/models/call_event.rb +8 -6
  7. data/lib/sentdm/models/call_event_payload.rb +29 -9
  8. data/lib/sentdm/models/channels/voice_create_params.rb +23 -11
  9. data/lib/sentdm/models/channels/voice_number.rb +23 -1
  10. data/lib/sentdm/models/channels/voice_update_params.rb +12 -1
  11. data/lib/sentdm/models/message_send_params.rb +8 -1
  12. data/lib/sentdm/models/template.rb +6 -5
  13. data/lib/sentdm/models/template_body.rb +8 -8
  14. data/lib/sentdm/models/voice/agent_create_params.rb +142 -0
  15. data/lib/sentdm/models/{calls/participant_list_params.rb → voice/agent_delete_params.rb} +3 -3
  16. data/lib/sentdm/models/voice/agent_list_params.rb +38 -0
  17. data/lib/sentdm/models/{calls/participant_remove_all_params.rb → voice/agent_retrieve_params.rb} +3 -3
  18. data/lib/sentdm/models/voice/agent_rotate_secret_params.rb +34 -0
  19. data/lib/sentdm/models/voice/agent_update_params.rb +141 -0
  20. data/lib/sentdm/models/{calls/api_response_of_list_of_call_participant.rb → voice/api_response_of_call.rb} +7 -7
  21. data/lib/sentdm/models/voice/api_response_of_call_recordings.rb +45 -0
  22. data/lib/sentdm/models/voice/api_response_of_calls_list.rb +44 -0
  23. data/lib/sentdm/models/voice/api_response_of_voice_agent.rb +51 -0
  24. data/lib/sentdm/models/voice/api_response_of_voice_agent_secret.rb +45 -0
  25. data/lib/sentdm/models/voice/api_response_of_voice_agents_list.rb +48 -0
  26. data/lib/sentdm/models/voice/api_response_of_voice_catalogue.rb +49 -0
  27. data/lib/sentdm/models/{channels → voice}/api_response_of_voice_token.rb +5 -5
  28. data/lib/sentdm/models/voice/call.rb +241 -0
  29. data/lib/sentdm/models/{calls/participant_remove_params.rb → voice/call_hangup_params.rb} +8 -8
  30. data/lib/sentdm/models/voice/call_list_params.rb +103 -0
  31. data/lib/sentdm/models/voice/call_list_recordings_params.rb +28 -0
  32. data/lib/sentdm/models/voice/call_party.rb +33 -0
  33. data/lib/sentdm/models/{calls/participant_update_params.rb → voice/call_record_params.rb} +10 -17
  34. data/lib/sentdm/models/voice/call_recording.rb +40 -0
  35. data/lib/sentdm/models/voice/call_recordings.rb +26 -0
  36. data/lib/sentdm/models/voice/call_retrieve_params.rb +28 -0
  37. data/lib/sentdm/models/voice/call_timeline_entry.rb +28 -0
  38. data/lib/sentdm/models/voice/calls/api_response_of_list_of_call_participant.rb +51 -0
  39. data/lib/sentdm/models/voice/calls/call_participant.rb +62 -0
  40. data/lib/sentdm/models/voice/calls/call_participant_target.rb +32 -0
  41. data/lib/sentdm/models/voice/calls/participant_add_params.rb +68 -0
  42. data/lib/sentdm/models/voice/calls/participant_list_params.rb +30 -0
  43. data/lib/sentdm/models/voice/calls/participant_remove_all_params.rb +30 -0
  44. data/lib/sentdm/models/voice/calls/participant_remove_params.rb +36 -0
  45. data/lib/sentdm/models/voice/calls/participant_update_params.rb +66 -0
  46. data/lib/sentdm/models/voice/calls_list.rb +28 -0
  47. data/lib/sentdm/models/voice/catalogue_list_params.rb +22 -0
  48. data/lib/sentdm/models/{channels/voice_create_token_params.rb → voice/token_create_params.rb} +4 -4
  49. data/lib/sentdm/models/voice/voice_agent.rb +138 -0
  50. data/lib/sentdm/models/voice/voice_agent_audio.rb +19 -0
  51. data/lib/sentdm/models/voice/voice_agent_audio_spec.rb +20 -0
  52. data/lib/sentdm/models/voice/voice_agent_limits.rb +31 -0
  53. data/lib/sentdm/models/voice/voice_agent_limits_spec.rb +40 -0
  54. data/lib/sentdm/models/voice/voice_agent_party.rb +25 -0
  55. data/lib/sentdm/models/voice/voice_agent_party_spec.rb +28 -0
  56. data/lib/sentdm/models/voice/voice_agent_secret.rb +27 -0
  57. data/lib/sentdm/models/voice/voice_agent_speech.rb +31 -0
  58. data/lib/sentdm/models/voice/voice_agent_speech_spec.rb +40 -0
  59. data/lib/sentdm/models/voice/voice_agent_transcripts.rb +25 -0
  60. data/lib/sentdm/models/voice/voice_agent_transcripts_spec.rb +32 -0
  61. data/lib/sentdm/models/voice/voice_agents_list.rb +30 -0
  62. data/lib/sentdm/models/voice/voice_catalogue.rb +30 -0
  63. data/lib/sentdm/models/voice/voice_catalogue_voice.rb +43 -0
  64. data/lib/sentdm/models/{channels → voice}/voice_token.rb +9 -3
  65. data/lib/sentdm/models/webhook_create_params.rb +31 -5
  66. data/lib/sentdm/models/webhook_response.rb +66 -4
  67. data/lib/sentdm/models/webhook_update_params.rb +15 -3
  68. data/lib/sentdm/models.rb +2 -30
  69. data/lib/sentdm/resources/channels/voice.rb +43 -63
  70. data/lib/sentdm/resources/channels.rb +2 -2
  71. data/lib/sentdm/resources/profiles/campaigns.rb +3 -2
  72. data/lib/sentdm/resources/voice/agents.rb +319 -0
  73. data/lib/sentdm/resources/voice/calls/participants.rb +244 -0
  74. data/lib/sentdm/resources/voice/calls.rb +269 -0
  75. data/lib/sentdm/resources/voice/catalogue.rb +71 -0
  76. data/lib/sentdm/resources/voice/tokens.rb +86 -0
  77. data/lib/sentdm/resources/voice.rb +142 -0
  78. data/lib/sentdm/resources/webhooks.rb +43 -15
  79. data/lib/sentdm/version.rb +1 -1
  80. data/lib/sentdm.rb +59 -28
  81. data/rbi/sentdm/client.rbi +2 -19
  82. data/rbi/sentdm/internal/voice_agents_page.rbi +71 -0
  83. data/rbi/sentdm/models/call_event.rbi +14 -10
  84. data/rbi/sentdm/models/call_event_payload.rbi +34 -9
  85. data/rbi/sentdm/models/channels/voice_create_params.rbi +33 -17
  86. data/rbi/sentdm/models/channels/voice_number.rbi +31 -0
  87. data/rbi/sentdm/models/channels/voice_update_params.rbi +14 -0
  88. data/rbi/sentdm/models/message_send_params.rbi +16 -2
  89. data/rbi/sentdm/models/template.rbi +12 -10
  90. data/rbi/sentdm/models/template_body.rbi +12 -12
  91. data/rbi/sentdm/models/voice/agent_create_params.rbi +215 -0
  92. data/rbi/sentdm/models/{calls/participant_remove_all_params.rbi → voice/agent_delete_params.rbi} +3 -6
  93. data/rbi/sentdm/models/voice/agent_list_params.rbi +66 -0
  94. data/rbi/sentdm/models/voice/agent_retrieve_params.rbi +48 -0
  95. data/rbi/sentdm/models/{calls/participant_remove_params.rbi → voice/agent_rotate_secret_params.rbi} +11 -8
  96. data/rbi/sentdm/models/voice/agent_update_params.rbi +211 -0
  97. data/rbi/sentdm/models/voice/api_response_of_call.rbi +76 -0
  98. data/rbi/sentdm/models/voice/api_response_of_call_recordings.rbi +81 -0
  99. data/rbi/sentdm/models/{calls/api_response_of_list_of_call_participant.rbi → voice/api_response_of_calls_list.rbi} +12 -9
  100. data/rbi/sentdm/models/voice/api_response_of_voice_agent.rbi +85 -0
  101. data/rbi/sentdm/models/voice/api_response_of_voice_agent_secret.rbi +81 -0
  102. data/rbi/sentdm/models/voice/api_response_of_voice_agents_list.rbi +83 -0
  103. data/rbi/sentdm/models/voice/api_response_of_voice_catalogue.rbi +83 -0
  104. data/rbi/sentdm/models/{channels → voice}/api_response_of_voice_token.rbi +6 -8
  105. data/rbi/sentdm/models/voice/call.rbi +329 -0
  106. data/rbi/sentdm/models/voice/call_hangup_params.rbi +61 -0
  107. data/rbi/sentdm/models/voice/call_list_params.rbi +134 -0
  108. data/rbi/sentdm/models/{calls/participant_list_params.rbi → voice/call_list_recordings_params.rbi} +3 -3
  109. data/rbi/sentdm/models/voice/call_party.rbi +47 -0
  110. data/rbi/sentdm/models/{calls/participant_update_params.rbi → voice/call_record_params.rbi} +12 -21
  111. data/rbi/sentdm/models/voice/call_recording.rbi +63 -0
  112. data/rbi/sentdm/models/voice/call_recordings.rbi +49 -0
  113. data/rbi/sentdm/models/voice/call_retrieve_params.rbi +48 -0
  114. data/rbi/sentdm/models/voice/call_timeline_entry.rbi +44 -0
  115. data/rbi/sentdm/models/voice/calls/api_response_of_list_of_call_participant.rbi +84 -0
  116. data/rbi/sentdm/models/voice/calls/call_participant.rbi +97 -0
  117. data/rbi/sentdm/models/voice/calls/call_participant_target.rbi +49 -0
  118. data/rbi/sentdm/models/voice/calls/participant_add_params.rbi +104 -0
  119. data/rbi/sentdm/models/voice/calls/participant_list_params.rbi +53 -0
  120. data/rbi/sentdm/models/voice/calls/participant_remove_all_params.rbi +53 -0
  121. data/rbi/sentdm/models/voice/calls/participant_remove_params.rbi +63 -0
  122. data/rbi/sentdm/models/voice/calls/participant_update_params.rbi +96 -0
  123. data/rbi/sentdm/models/voice/calls_list.rbi +54 -0
  124. data/rbi/sentdm/models/voice/catalogue_list_params.rbi +40 -0
  125. data/rbi/sentdm/models/{channels/voice_create_token_params.rbi → voice/token_create_params.rbi} +3 -6
  126. data/rbi/sentdm/models/voice/voice_agent.rbi +196 -0
  127. data/rbi/sentdm/models/voice/voice_agent_audio.rbi +30 -0
  128. data/rbi/sentdm/models/voice/voice_agent_audio_spec.rbi +33 -0
  129. data/rbi/sentdm/models/voice/voice_agent_limits.rbi +57 -0
  130. data/rbi/sentdm/models/voice/voice_agent_limits_spec.rbi +62 -0
  131. data/rbi/sentdm/models/voice/voice_agent_party.rbi +36 -0
  132. data/rbi/sentdm/models/voice/voice_agent_party_spec.rbi +45 -0
  133. data/rbi/sentdm/models/voice/voice_agent_secret.rbi +37 -0
  134. data/rbi/sentdm/models/voice/voice_agent_speech.rbi +48 -0
  135. data/rbi/sentdm/models/voice/voice_agent_speech_spec.rbi +62 -0
  136. data/rbi/sentdm/models/voice/voice_agent_transcripts.rbi +43 -0
  137. data/rbi/sentdm/models/voice/voice_agent_transcripts_spec.rbi +51 -0
  138. data/rbi/sentdm/models/voice/voice_agents_list.rbi +55 -0
  139. data/rbi/sentdm/models/voice/voice_catalogue.rbi +59 -0
  140. data/rbi/sentdm/models/voice/voice_catalogue_voice.rbi +75 -0
  141. data/rbi/sentdm/models/{channels → voice}/voice_token.rbi +8 -4
  142. data/rbi/sentdm/models/webhook_create_params.rbi +41 -3
  143. data/rbi/sentdm/models/webhook_response.rbi +112 -3
  144. data/rbi/sentdm/models/webhook_update_params.rbi +18 -3
  145. data/rbi/sentdm/models.rbi +2 -30
  146. data/rbi/sentdm/resources/channels/voice.rbi +57 -67
  147. data/rbi/sentdm/resources/channels.rbi +2 -2
  148. data/rbi/sentdm/resources/messages.rbi +8 -1
  149. data/rbi/sentdm/resources/profiles/campaigns.rbi +3 -2
  150. data/rbi/sentdm/resources/voice/agents.rbi +316 -0
  151. data/rbi/sentdm/resources/voice/calls/participants.rbi +212 -0
  152. data/rbi/sentdm/resources/voice/calls.rbi +244 -0
  153. data/rbi/sentdm/resources/voice/catalogue.rbi +59 -0
  154. data/rbi/sentdm/resources/voice/tokens.rbi +84 -0
  155. data/rbi/sentdm/resources/voice.rbi +136 -0
  156. data/rbi/sentdm/resources/webhooks.rbi +56 -16
  157. data/sig/sentdm/client.rbs +1 -1
  158. data/sig/sentdm/internal/voice_agents_page.rbs +41 -0
  159. data/sig/sentdm/models/call_event_payload.rbs +12 -0
  160. data/sig/sentdm/models/channels/voice_create_params.rbs +9 -4
  161. data/sig/sentdm/models/channels/voice_number.rbs +12 -0
  162. data/sig/sentdm/models/channels/voice_update_params.rbs +5 -0
  163. data/sig/sentdm/models/voice/agent_create_params.rbs +99 -0
  164. data/sig/sentdm/models/{calls/participant_remove_all_params.rbs → voice/agent_delete_params.rbs} +3 -3
  165. data/sig/sentdm/models/voice/agent_list_params.rbs +40 -0
  166. data/sig/sentdm/models/{calls/participant_list_params.rbs → voice/agent_retrieve_params.rbs} +3 -3
  167. data/sig/sentdm/models/{calls/participant_remove_params.rbs → voice/agent_rotate_secret_params.rbs} +8 -8
  168. data/sig/sentdm/models/voice/agent_update_params.rbs +108 -0
  169. data/sig/sentdm/models/{calls/api_response_of_list_of_call_participant.rbs → voice/api_response_of_call.rbs} +7 -7
  170. data/sig/sentdm/models/voice/api_response_of_call_recordings.rbs +41 -0
  171. data/sig/sentdm/models/voice/api_response_of_calls_list.rbs +41 -0
  172. data/sig/sentdm/models/voice/api_response_of_voice_agent.rbs +41 -0
  173. data/sig/sentdm/models/voice/api_response_of_voice_agent_secret.rbs +41 -0
  174. data/sig/sentdm/models/voice/api_response_of_voice_agents_list.rbs +41 -0
  175. data/sig/sentdm/models/voice/api_response_of_voice_catalogue.rbs +41 -0
  176. data/sig/sentdm/models/{channels → voice}/api_response_of_voice_token.rbs +5 -5
  177. data/sig/sentdm/models/voice/call.rbs +175 -0
  178. data/sig/sentdm/models/voice/call_hangup_params.rbs +40 -0
  179. data/sig/sentdm/models/voice/call_list_params.rbs +79 -0
  180. data/sig/sentdm/models/voice/call_list_recordings_params.rbs +32 -0
  181. data/sig/sentdm/models/voice/call_party.rbs +19 -0
  182. data/sig/sentdm/models/{calls/participant_update_params.rbs → voice/call_record_params.rbs} +8 -13
  183. data/sig/sentdm/models/voice/call_recording.rbs +34 -0
  184. data/sig/sentdm/models/voice/call_recordings.rbs +22 -0
  185. data/sig/sentdm/models/voice/call_retrieve_params.rbs +32 -0
  186. data/sig/sentdm/models/voice/call_timeline_entry.rbs +21 -0
  187. data/sig/sentdm/models/voice/calls/api_response_of_list_of_call_participant.rbs +43 -0
  188. data/sig/sentdm/models/voice/calls/call_participant.rbs +54 -0
  189. data/sig/sentdm/models/voice/calls/call_participant_target.rbs +25 -0
  190. data/sig/sentdm/models/voice/calls/participant_add_params.rbs +65 -0
  191. data/sig/sentdm/models/voice/calls/participant_list_params.rbs +34 -0
  192. data/sig/sentdm/models/voice/calls/participant_remove_all_params.rbs +36 -0
  193. data/sig/sentdm/models/voice/calls/participant_remove_params.rbs +42 -0
  194. data/sig/sentdm/models/voice/calls/participant_update_params.rbs +63 -0
  195. data/sig/sentdm/models/voice/calls_list.rbs +33 -0
  196. data/sig/sentdm/models/voice/catalogue_list_params.rbs +27 -0
  197. data/sig/sentdm/models/{channels/voice_create_token_params.rbs → voice/token_create_params.rbs} +3 -3
  198. data/sig/sentdm/models/voice/voice_agent.rbs +116 -0
  199. data/sig/sentdm/models/voice/voice_agent_audio.rbs +19 -0
  200. data/sig/sentdm/models/voice/voice_agent_audio_spec.rbs +17 -0
  201. data/sig/sentdm/models/voice/voice_agent_limits.rbs +38 -0
  202. data/sig/sentdm/models/voice/voice_agent_limits_spec.rbs +34 -0
  203. data/sig/sentdm/models/{calls/call_participant_target.rbs → voice/voice_agent_party.rbs} +4 -4
  204. data/sig/sentdm/models/voice/voice_agent_party_spec.rbs +19 -0
  205. data/sig/sentdm/models/voice/voice_agent_secret.rbs +19 -0
  206. data/sig/sentdm/models/voice/voice_agent_speech.rbs +32 -0
  207. data/sig/sentdm/models/voice/voice_agent_speech_spec.rbs +26 -0
  208. data/sig/sentdm/models/voice/voice_agent_transcripts.rbs +23 -0
  209. data/sig/sentdm/models/voice/voice_agent_transcripts_spec.rbs +20 -0
  210. data/sig/sentdm/models/voice/voice_agents_list.rbs +35 -0
  211. data/sig/sentdm/models/voice/voice_catalogue.rbs +35 -0
  212. data/sig/sentdm/models/voice/voice_catalogue_voice.rbs +42 -0
  213. data/sig/sentdm/models/{channels → voice}/voice_token.rbs +3 -1
  214. data/sig/sentdm/models/webhook_create_params.rbs +12 -0
  215. data/sig/sentdm/models/webhook_response.rbs +46 -3
  216. data/sig/sentdm/models/webhook_update_params.rbs +5 -0
  217. data/sig/sentdm/models.rbs +2 -30
  218. data/sig/sentdm/resources/channels/voice.rbs +3 -11
  219. data/sig/sentdm/resources/voice/agents.rbs +74 -0
  220. data/sig/sentdm/resources/voice/calls/participants.rbs +52 -0
  221. data/sig/sentdm/resources/{calls/participants.rbs → voice/calls.rbs} +25 -21
  222. data/sig/sentdm/resources/voice/catalogue.rbs +14 -0
  223. data/sig/sentdm/resources/voice/tokens.rbs +19 -0
  224. data/sig/sentdm/resources/voice.rbs +15 -0
  225. data/sig/sentdm/resources/webhooks.rbs +3 -0
  226. metadata +176 -83
  227. data/lib/sentdm/models/api_response_of_call.rb +0 -43
  228. data/lib/sentdm/models/api_response_of_call_recordings.rb +0 -43
  229. data/lib/sentdm/models/api_response_of_calls_list.rb +0 -42
  230. data/lib/sentdm/models/call.rb +0 -134
  231. data/lib/sentdm/models/call_hangup_params.rb +0 -32
  232. data/lib/sentdm/models/call_list_params.rb +0 -83
  233. data/lib/sentdm/models/call_list_recordings_params.rb +0 -26
  234. data/lib/sentdm/models/call_party.rb +0 -31
  235. data/lib/sentdm/models/call_record_params.rb +0 -55
  236. data/lib/sentdm/models/call_recording.rb +0 -38
  237. data/lib/sentdm/models/call_recordings.rb +0 -24
  238. data/lib/sentdm/models/call_retrieve_params.rb +0 -26
  239. data/lib/sentdm/models/call_timeline_entry.rb +0 -26
  240. data/lib/sentdm/models/calls/call_participant.rb +0 -60
  241. data/lib/sentdm/models/calls/call_participant_target.rb +0 -30
  242. data/lib/sentdm/models/calls/participant_add_params.rb +0 -66
  243. data/lib/sentdm/models/calls_list.rb +0 -26
  244. data/lib/sentdm/resources/calls/participants.rb +0 -231
  245. data/lib/sentdm/resources/calls.rb +0 -236
  246. data/rbi/sentdm/models/api_response_of_call.rbi +0 -74
  247. data/rbi/sentdm/models/api_response_of_call_recordings.rbi +0 -74
  248. data/rbi/sentdm/models/api_response_of_calls_list.rbi +0 -74
  249. data/rbi/sentdm/models/call.rbi +0 -179
  250. data/rbi/sentdm/models/call_hangup_params.rbi +0 -59
  251. data/rbi/sentdm/models/call_list_params.rbi +0 -112
  252. data/rbi/sentdm/models/call_list_recordings_params.rbi +0 -46
  253. data/rbi/sentdm/models/call_party.rbi +0 -41
  254. data/rbi/sentdm/models/call_record_params.rbi +0 -83
  255. data/rbi/sentdm/models/call_recording.rbi +0 -59
  256. data/rbi/sentdm/models/call_recordings.rbi +0 -39
  257. data/rbi/sentdm/models/call_retrieve_params.rbi +0 -46
  258. data/rbi/sentdm/models/call_timeline_entry.rbi +0 -40
  259. data/rbi/sentdm/models/calls/call_participant.rbi +0 -92
  260. data/rbi/sentdm/models/calls/call_participant_target.rbi +0 -47
  261. data/rbi/sentdm/models/calls/participant_add_params.rbi +0 -98
  262. data/rbi/sentdm/models/calls_list.rbi +0 -47
  263. data/rbi/sentdm/resources/calls/participants.rbi +0 -199
  264. data/rbi/sentdm/resources/calls.rbi +0 -207
  265. data/sig/sentdm/models/api_response_of_call.rbs +0 -39
  266. data/sig/sentdm/models/api_response_of_call_recordings.rbs +0 -39
  267. data/sig/sentdm/models/api_response_of_calls_list.rbs +0 -39
  268. data/sig/sentdm/models/call.rbs +0 -101
  269. data/sig/sentdm/models/call_hangup_params.rbs +0 -38
  270. data/sig/sentdm/models/call_list_params.rbs +0 -67
  271. data/sig/sentdm/models/call_list_recordings_params.rbs +0 -30
  272. data/sig/sentdm/models/call_party.rbs +0 -17
  273. data/sig/sentdm/models/call_record_params.rbs +0 -54
  274. data/sig/sentdm/models/call_recording.rbs +0 -32
  275. data/sig/sentdm/models/call_recordings.rbs +0 -17
  276. data/sig/sentdm/models/call_retrieve_params.rbs +0 -30
  277. data/sig/sentdm/models/call_timeline_entry.rbs +0 -19
  278. data/sig/sentdm/models/calls/call_participant.rbs +0 -52
  279. data/sig/sentdm/models/calls/participant_add_params.rbs +0 -63
  280. data/sig/sentdm/models/calls_list.rbs +0 -26
  281. data/sig/sentdm/resources/calls.rbs +0 -50
@@ -11,12 +11,15 @@ module Sentdm
11
11
  event_filters: ::Hash[Symbol, ::Array[String]]?,
12
12
  event_types: ::Array[String],
13
13
  is_active: bool,
14
+ is_inheritable: bool,
14
15
  last_delivery_attempt_at: Time?,
15
16
  last_successful_delivery_at: Time?,
16
17
  retry_count: Integer,
18
+ sender_profile: Sentdm::WebhookResponse::SenderProfile?,
17
19
  signing_secret: String?,
18
20
  timeout_seconds: Integer,
19
- updated_at: Time?
21
+ updated_at: Time?,
22
+ webhook_version: Integer
20
23
  }
21
24
 
22
25
  class WebhookResponse < Sentdm::Internal::Type::BaseModel
@@ -54,6 +57,10 @@ module Sentdm
54
57
 
55
58
  def is_active=: (bool) -> bool
56
59
 
60
+ attr_reader is_inheritable: bool?
61
+
62
+ def is_inheritable=: (bool) -> bool
63
+
57
64
  attr_accessor last_delivery_attempt_at: Time?
58
65
 
59
66
  attr_accessor last_successful_delivery_at: Time?
@@ -62,6 +69,8 @@ module Sentdm
62
69
 
63
70
  def retry_count=: (Integer) -> Integer
64
71
 
72
+ attr_accessor sender_profile: Sentdm::WebhookResponse::SenderProfile?
73
+
65
74
  attr_accessor signing_secret: String?
66
75
 
67
76
  attr_reader timeout_seconds: Integer?
@@ -70,6 +79,10 @@ module Sentdm
70
79
 
71
80
  attr_accessor updated_at: Time?
72
81
 
82
+ attr_reader webhook_version: Integer?
83
+
84
+ def webhook_version=: (Integer) -> Integer
85
+
73
86
  def initialize: (
74
87
  ?id: String,
75
88
  ?consecutive_failures: Integer,
@@ -80,12 +93,15 @@ module Sentdm
80
93
  ?event_filters: ::Hash[Symbol, ::Array[String]]?,
81
94
  ?event_types: ::Array[String],
82
95
  ?is_active: bool,
96
+ ?is_inheritable: bool,
83
97
  ?last_delivery_attempt_at: Time?,
84
98
  ?last_successful_delivery_at: Time?,
85
99
  ?retry_count: Integer,
100
+ ?sender_profile: Sentdm::WebhookResponse::SenderProfile?,
86
101
  ?signing_secret: String?,
87
102
  ?timeout_seconds: Integer,
88
- ?updated_at: Time?
103
+ ?updated_at: Time?,
104
+ ?webhook_version: Integer
89
105
  ) -> void
90
106
 
91
107
  def to_hash: -> {
@@ -98,13 +114,40 @@ module Sentdm
98
114
  event_filters: ::Hash[Symbol, ::Array[String]]?,
99
115
  event_types: ::Array[String],
100
116
  is_active: bool,
117
+ is_inheritable: bool,
101
118
  last_delivery_attempt_at: Time?,
102
119
  last_successful_delivery_at: Time?,
103
120
  retry_count: Integer,
121
+ sender_profile: Sentdm::WebhookResponse::SenderProfile?,
104
122
  signing_secret: String?,
105
123
  timeout_seconds: Integer,
106
- updated_at: Time?
124
+ updated_at: Time?,
125
+ webhook_version: Integer
107
126
  }
127
+
128
+ type sender_profile =
129
+ {
130
+ event_filters: ::Hash[Symbol, ::Array[String]]?,
131
+ event_types: ::Array[String]
132
+ }
133
+
134
+ class SenderProfile < Sentdm::Internal::Type::BaseModel
135
+ attr_accessor event_filters: ::Hash[Symbol, ::Array[String]]?
136
+
137
+ attr_reader event_types: ::Array[String]?
138
+
139
+ def event_types=: (::Array[String]) -> ::Array[String]
140
+
141
+ def initialize: (
142
+ ?event_filters: ::Hash[Symbol, ::Array[String]]?,
143
+ ?event_types: ::Array[String]
144
+ ) -> void
145
+
146
+ def to_hash: -> {
147
+ event_filters: ::Hash[Symbol, ::Array[String]]?,
148
+ event_types: ::Array[String]
149
+ }
150
+ end
108
151
  end
109
152
  end
110
153
  end
@@ -7,6 +7,7 @@ module Sentdm
7
7
  endpoint_url: String,
8
8
  event_filters: ::Hash[Symbol, ::Array[String]]?,
9
9
  event_types: ::Array[String],
10
+ is_inheritable: bool?,
10
11
  retry_count: Integer,
11
12
  sandbox: bool,
12
13
  sender_profile: Sentdm::WebhookUpdateParams::SenderProfile?,
@@ -36,6 +37,8 @@ module Sentdm
36
37
 
37
38
  def event_types=: (::Array[String]) -> ::Array[String]
38
39
 
40
+ attr_accessor is_inheritable: bool?
41
+
39
42
  attr_reader retry_count: Integer?
40
43
 
41
44
  def retry_count=: (Integer) -> Integer
@@ -64,6 +67,7 @@ module Sentdm
64
67
  ?endpoint_url: String,
65
68
  ?event_filters: ::Hash[Symbol, ::Array[String]]?,
66
69
  ?event_types: ::Array[String],
70
+ ?is_inheritable: bool?,
67
71
  ?retry_count: Integer,
68
72
  ?sandbox: bool,
69
73
  ?sender_profile: Sentdm::WebhookUpdateParams::SenderProfile?,
@@ -79,6 +83,7 @@ module Sentdm
79
83
  endpoint_url: String,
80
84
  event_filters: ::Hash[Symbol, ::Array[String]]?,
81
85
  event_types: ::Array[String],
86
+ is_inheritable: bool?,
82
87
  retry_count: Integer,
83
88
  sandbox: bool,
84
89
  sender_profile: Sentdm::WebhookUpdateParams::SenderProfile?,
@@ -1,12 +1,6 @@
1
1
  module Sentdm
2
2
  class APIMeta = Sentdm::Models::APIMeta
3
3
 
4
- class APIResponseOfCall = Sentdm::Models::APIResponseOfCall
5
-
6
- class APIResponseOfCallRecordings = Sentdm::Models::APIResponseOfCallRecordings
7
-
8
- class APIResponseOfCallsList = Sentdm::Models::APIResponseOfCallsList
9
-
10
4
  class APIResponseOfContact = Sentdm::Models::APIResponseOfContact
11
5
 
12
6
  class APIResponseOfContactMessageSummary = Sentdm::Models::APIResponseOfContactMessageSummary
@@ -33,34 +27,10 @@ module Sentdm
33
27
 
34
28
  class BrandsBrandData = Sentdm::Models::BrandsBrandData
35
29
 
36
- class Call = Sentdm::Models::Call
37
-
38
30
  class CallEvent = Sentdm::Models::CallEvent
39
31
 
40
32
  class CallEventPayload = Sentdm::Models::CallEventPayload
41
33
 
42
- class CallHangupParams = Sentdm::Models::CallHangupParams
43
-
44
- class CallListParams = Sentdm::Models::CallListParams
45
-
46
- class CallListRecordingsParams = Sentdm::Models::CallListRecordingsParams
47
-
48
- class CallParty = Sentdm::Models::CallParty
49
-
50
- class CallRecording = Sentdm::Models::CallRecording
51
-
52
- class CallRecordings = Sentdm::Models::CallRecordings
53
-
54
- class CallRecordParams = Sentdm::Models::CallRecordParams
55
-
56
- class CallRetrieveParams = Sentdm::Models::CallRetrieveParams
57
-
58
- module Calls = Sentdm::Models::Calls
59
-
60
- class CallsList = Sentdm::Models::CallsList
61
-
62
- class CallTimelineEntry = Sentdm::Models::CallTimelineEntry
63
-
64
34
  class ChannelEvent = Sentdm::Models::ChannelEvent
65
35
 
66
36
  class ChannelEventPayload = Sentdm::Models::ChannelEventPayload
@@ -187,6 +157,8 @@ module Sentdm
187
157
 
188
158
  class UserUpdateRoleParams = Sentdm::Models::UserUpdateRoleParams
189
159
 
160
+ module Voice = Sentdm::Models::Voice
161
+
190
162
  class WebhookCreateParams = Sentdm::Models::WebhookCreateParams
191
163
 
192
164
  class WebhookDeleteParams = Sentdm::Models::WebhookDeleteParams
@@ -3,8 +3,9 @@ module Sentdm
3
3
  class Channels
4
4
  class Voice
5
5
  def create: (
6
- callback_url: String,
6
+ ?agent_id: String?,
7
7
  ?area_code: String?,
8
+ ?callback_url: String?,
8
9
  ?default_for_app_calls: bool?,
9
10
  ?number: String?,
10
11
  ?sandbox: bool,
@@ -21,6 +22,7 @@ module Sentdm
21
22
 
22
23
  def update: (
23
24
  String number,
25
+ ?agent_id: String?,
24
26
  ?callback_url: String?,
25
27
  ?default_for_app_calls: bool?,
26
28
  ?sandbox: bool,
@@ -35,16 +37,6 @@ module Sentdm
35
37
  ?request_options: Sentdm::request_opts
36
38
  ) -> Sentdm::Channels::APIResponseOfListOfVoiceNumber
37
39
 
38
- def create_token: (
39
- ?identity: String,
40
- ?number: String?,
41
- ?sandbox: bool,
42
- ?ttl: Integer?,
43
- ?idempotency_key: String,
44
- ?x_profile_id: String,
45
- ?request_options: Sentdm::request_opts
46
- ) -> Sentdm::Channels::APIResponseOfVoiceToken
47
-
48
40
  def rotate_secret: (
49
41
  String number,
50
42
  ?sandbox: bool,
@@ -0,0 +1,74 @@
1
+ module Sentdm
2
+ module Resources
3
+ class Voice
4
+ class Agents
5
+ def create: (
6
+ ?audio: Sentdm::Voice::VoiceAgentAudioSpec?,
7
+ ?fallback: Sentdm::Voice::VoiceAgentPartySpec?,
8
+ ?greeting: String?,
9
+ ?limits: Sentdm::Voice::VoiceAgentLimitsSpec?,
10
+ ?name: String?,
11
+ ?sandbox: bool,
12
+ ?session_type: String?,
13
+ ?speech: Sentdm::Voice::VoiceAgentSpeechSpec?,
14
+ ?tools: ::Array[String]?,
15
+ ?transcripts: Sentdm::Voice::VoiceAgentTranscriptsSpec?,
16
+ ?transfer_targets: ::Array[Sentdm::Voice::VoiceAgentPartySpec]?,
17
+ ?websocket_url: String?,
18
+ ?idempotency_key: String,
19
+ ?x_profile_id: String,
20
+ ?request_options: Sentdm::request_opts
21
+ ) -> Sentdm::Voice::APIResponseOfVoiceAgent
22
+
23
+ def retrieve: (
24
+ String id,
25
+ ?x_profile_id: String,
26
+ ?request_options: Sentdm::request_opts
27
+ ) -> Sentdm::Voice::APIResponseOfVoiceAgent
28
+
29
+ def update: (
30
+ String id,
31
+ ?audio: Sentdm::Voice::VoiceAgentAudioSpec?,
32
+ ?fallback: Sentdm::Voice::VoiceAgentPartySpec?,
33
+ ?greeting: String?,
34
+ ?limits: Sentdm::Voice::VoiceAgentLimitsSpec?,
35
+ ?name: String,
36
+ ?sandbox: bool,
37
+ ?session_type: String,
38
+ ?speech: Sentdm::Voice::VoiceAgentSpeechSpec?,
39
+ ?tools: ::Array[String]?,
40
+ ?transcripts: Sentdm::Voice::VoiceAgentTranscriptsSpec?,
41
+ ?transfer_targets: ::Array[Sentdm::Voice::VoiceAgentPartySpec]?,
42
+ ?websocket_url: String?,
43
+ ?idempotency_key: String,
44
+ ?x_profile_id: String,
45
+ ?request_options: Sentdm::request_opts
46
+ ) -> Sentdm::Voice::APIResponseOfVoiceAgent
47
+
48
+ def list: (
49
+ ?page: Integer,
50
+ ?page_size: Integer,
51
+ ?x_profile_id: String,
52
+ ?request_options: Sentdm::request_opts
53
+ ) -> Sentdm::Internal::VoiceAgentsPage[Sentdm::Voice::VoiceAgent]
54
+
55
+ def delete: (
56
+ String id,
57
+ ?sandbox: bool,
58
+ ?x_profile_id: String,
59
+ ?request_options: Sentdm::request_opts
60
+ ) -> nil
61
+
62
+ def rotate_secret: (
63
+ String id,
64
+ ?sandbox: bool,
65
+ ?idempotency_key: String,
66
+ ?x_profile_id: String,
67
+ ?request_options: Sentdm::request_opts
68
+ ) -> Sentdm::Voice::APIResponseOfVoiceAgentSecret
69
+
70
+ def initialize: (client: Sentdm::Client) -> void
71
+ end
72
+ end
73
+ end
74
+ end
@@ -0,0 +1,52 @@
1
+ module Sentdm
2
+ module Resources
3
+ class Voice
4
+ class Calls
5
+ class Participants
6
+ def update: (
7
+ String participant_id,
8
+ id: String,
9
+ ?muted: bool,
10
+ ?sandbox: bool,
11
+ ?idempotency_key: String,
12
+ ?x_profile_id: String,
13
+ ?request_options: Sentdm::request_opts
14
+ ) -> nil
15
+
16
+ def list: (
17
+ String id,
18
+ ?x_profile_id: String,
19
+ ?request_options: Sentdm::request_opts
20
+ ) -> Sentdm::Voice::Calls::APIResponseOfListOfCallParticipant
21
+
22
+ def add: (
23
+ String id,
24
+ ?caller_id: String?,
25
+ ?sandbox: bool,
26
+ ?to: Sentdm::Voice::Calls::CallParticipantTarget,
27
+ ?idempotency_key: String,
28
+ ?x_profile_id: String,
29
+ ?request_options: Sentdm::request_opts
30
+ ) -> Sentdm::Voice::APIResponseOfCall
31
+
32
+ def remove: (
33
+ String participant_id,
34
+ id: String,
35
+ ?sandbox: bool,
36
+ ?x_profile_id: String,
37
+ ?request_options: Sentdm::request_opts
38
+ ) -> nil
39
+
40
+ def remove_all: (
41
+ String id,
42
+ ?sandbox: bool,
43
+ ?x_profile_id: String,
44
+ ?request_options: Sentdm::request_opts
45
+ ) -> nil
46
+
47
+ def initialize: (client: Sentdm::Client) -> void
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
@@ -1,44 +1,48 @@
1
1
  module Sentdm
2
2
  module Resources
3
- class Calls
4
- class Participants
5
- def update: (
6
- String participant_id,
7
- id: String,
8
- ?muted: bool,
9
- ?sandbox: bool,
10
- ?idempotency_key: String,
3
+ class Voice
4
+ class Calls
5
+ attr_reader participants: Sentdm::Resources::Voice::Calls::Participants
6
+
7
+ def retrieve: (
8
+ String id,
11
9
  ?x_profile_id: String,
12
10
  ?request_options: Sentdm::request_opts
13
- ) -> nil
11
+ ) -> Sentdm::Voice::APIResponseOfCall
14
12
 
15
13
  def list: (
16
- String id,
14
+ ?agent_id: String?,
15
+ ?direction: String?,
16
+ ?from: Time?,
17
+ ?mode: String?,
18
+ ?number: String?,
19
+ ?page: Integer,
20
+ ?page_size: Integer,
21
+ ?status: String?,
22
+ ?to: Time?,
17
23
  ?x_profile_id: String,
18
24
  ?request_options: Sentdm::request_opts
19
- ) -> Sentdm::Calls::APIResponseOfListOfCallParticipant
25
+ ) -> Sentdm::Internal::CallsPage[Sentdm::Voice::Call]
20
26
 
21
- def add: (
27
+ def hangup: (
22
28
  String id,
23
- ?caller_id: String?,
24
29
  ?sandbox: bool,
25
- ?to: Sentdm::Calls::CallParticipantTarget,
26
30
  ?idempotency_key: String,
27
31
  ?x_profile_id: String,
28
32
  ?request_options: Sentdm::request_opts
29
- ) -> Sentdm::APIResponseOfCall
33
+ ) -> nil
30
34
 
31
- def remove: (
32
- String participant_id,
33
- id: String,
34
- ?sandbox: bool,
35
+ def list_recordings: (
36
+ String id,
35
37
  ?x_profile_id: String,
36
38
  ?request_options: Sentdm::request_opts
37
- ) -> nil
39
+ ) -> Sentdm::Voice::APIResponseOfCallRecordings
38
40
 
39
- def remove_all: (
41
+ def record: (
40
42
  String id,
43
+ ?action: String,
41
44
  ?sandbox: bool,
45
+ ?idempotency_key: String,
42
46
  ?x_profile_id: String,
43
47
  ?request_options: Sentdm::request_opts
44
48
  ) -> nil
@@ -0,0 +1,14 @@
1
+ module Sentdm
2
+ module Resources
3
+ class Voice
4
+ class Catalogue
5
+ def list: (
6
+ ?x_profile_id: String,
7
+ ?request_options: Sentdm::request_opts
8
+ ) -> Sentdm::Voice::APIResponseOfVoiceCatalogue
9
+
10
+ def initialize: (client: Sentdm::Client) -> void
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,19 @@
1
+ module Sentdm
2
+ module Resources
3
+ class Voice
4
+ class Tokens
5
+ def create: (
6
+ ?identity: String,
7
+ ?number: String?,
8
+ ?sandbox: bool,
9
+ ?ttl: Integer?,
10
+ ?idempotency_key: String,
11
+ ?x_profile_id: String,
12
+ ?request_options: Sentdm::request_opts
13
+ ) -> Sentdm::Voice::APIResponseOfVoiceToken
14
+
15
+ def initialize: (client: Sentdm::Client) -> void
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,15 @@
1
+ module Sentdm
2
+ module Resources
3
+ class Voice
4
+ attr_reader calls: Sentdm::Resources::Voice::Calls
5
+
6
+ attr_reader tokens: Sentdm::Resources::Voice::Tokens
7
+
8
+ attr_reader agents: Sentdm::Resources::Voice::Agents
9
+
10
+ attr_reader catalogue: Sentdm::Resources::Voice::Catalogue
11
+
12
+ def initialize: (client: Sentdm::Client) -> void
13
+ end
14
+ end
15
+ end
@@ -6,10 +6,12 @@ module Sentdm
6
6
  ?endpoint_url: String,
7
7
  ?event_filters: ::Hash[Symbol, ::Array[String]]?,
8
8
  ?event_types: ::Array[String],
9
+ ?is_inheritable: bool,
9
10
  ?retry_count: Integer,
10
11
  ?sandbox: bool,
11
12
  ?sender_profile: Sentdm::WebhookCreateParams::SenderProfile?,
12
13
  ?timeout_seconds: Integer,
14
+ ?webhook_version: Integer?,
13
15
  ?idempotency_key: String,
14
16
  ?x_profile_id: String,
15
17
  ?request_options: Sentdm::request_opts
@@ -27,6 +29,7 @@ module Sentdm
27
29
  ?endpoint_url: String,
28
30
  ?event_filters: ::Hash[Symbol, ::Array[String]]?,
29
31
  ?event_types: ::Array[String],
32
+ ?is_inheritable: bool?,
30
33
  ?retry_count: Integer,
31
34
  ?sandbox: bool,
32
35
  ?sender_profile: Sentdm::WebhookUpdateParams::SenderProfile?,