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
@@ -0,0 +1,142 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sentdm
4
+ module Models
5
+ module Voice
6
+ # @see Sentdm::Resources::Voice::Agents#create
7
+ class AgentCreateParams < Sentdm::Internal::Type::BaseModel
8
+ extend Sentdm::Internal::Type::RequestParameters::Converter
9
+ include Sentdm::Internal::Type::RequestParameters
10
+
11
+ # @!attribute audio
12
+ # Audio sessions only: the sound format.
13
+ #
14
+ # @return [Sentdm::Models::Voice::VoiceAgentAudioSpec, nil]
15
+ optional :audio, -> { Sentdm::Voice::VoiceAgentAudioSpec }, nil?: true
16
+
17
+ # @!attribute fallback
18
+ # Who takes the call when the agent cannot: a phone number (kind: number). Omit it
19
+ # and such a call hangs up.
20
+ #
21
+ # @return [Sentdm::Models::Voice::VoiceAgentPartySpec, nil]
22
+ optional :fallback, -> { Sentdm::Voice::VoiceAgentPartySpec }, nil?: true
23
+
24
+ # @!attribute greeting
25
+ # Text sessions only: what the caller hears as soon as the call is answered,
26
+ # before the agent's first turn. 1 to 4,096 characters. Omit it and the agent
27
+ # speaks first.
28
+ #
29
+ # @return [String, nil]
30
+ optional :greeting, String, nil?: true
31
+
32
+ # @!attribute limits
33
+ #
34
+ # @return [Sentdm::Models::Voice::VoiceAgentLimitsSpec, nil]
35
+ optional :limits, -> { Sentdm::Voice::VoiceAgentLimitsSpec }, nil?: true
36
+
37
+ # @!attribute name
38
+ # A name for your own reference, 1 to 100 characters.
39
+ #
40
+ # @return [String, nil]
41
+ optional :name, String, nil?: true
42
+
43
+ # @!attribute sandbox
44
+ # Sandbox flag - when true, the operation is simulated without side effects Useful
45
+ # for testing integrations without actual execution
46
+ #
47
+ # @return [Boolean, nil]
48
+ optional :sandbox, Sentdm::Internal::Type::Boolean
49
+
50
+ # @!attribute session_type
51
+ # text: Sent turns the caller's speech into text and the agent's text into speech,
52
+ # so the agent exchanges text frames. audio: the agent receives and sends the
53
+ # sound itself.
54
+ #
55
+ # @return [String, nil]
56
+ optional :session_type, String, nil?: true
57
+
58
+ # @!attribute speech
59
+ # Text sessions only: how the caller is spoken to and listened to.
60
+ #
61
+ # @return [Sentdm::Models::Voice::VoiceAgentSpeechSpec, nil]
62
+ optional :speech, -> { Sentdm::Voice::VoiceAgentSpeechSpec }, nil?: true
63
+
64
+ # @!attribute tools
65
+ # What the agent may do to the call: any of transfer, hangup, send_dtmf and hold.
66
+ # Default ["hangup"]. transfer needs at least one transfer_targets entry.
67
+ #
68
+ # @return [Array<String>, nil]
69
+ optional :tools, Sentdm::Internal::Type::ArrayOf[String], nil?: true
70
+
71
+ # @!attribute transcripts
72
+ #
73
+ # @return [Sentdm::Models::Voice::VoiceAgentTranscriptsSpec, nil]
74
+ optional :transcripts, -> { Sentdm::Voice::VoiceAgentTranscriptsSpec }, nil?: true
75
+
76
+ # @!attribute transfer_targets
77
+ # Where the agent may transfer a call to, up to 20 parties: a phone number (kind:
78
+ # number, E.164), one of your app users (kind: user, the identity) or another of
79
+ # your agents (kind: agent, its id). The agent can only transfer to a party listed
80
+ # here.
81
+ #
82
+ # @return [Array<Sentdm::Models::Voice::VoiceAgentPartySpec>, nil]
83
+ optional :transfer_targets,
84
+ -> { Sentdm::Internal::Type::ArrayOf[Sentdm::Voice::VoiceAgentPartySpec] },
85
+ nil?: true
86
+
87
+ # @!attribute websocket_url
88
+ # Where the gateway connects to the agent for each call: an absolute wss:// URL on
89
+ # a public host, at most 2,048 characters. The handshake is signed with the
90
+ # agent's signing_secret. Leave it out and the agent dials in instead, connecting
91
+ # to the gateway with your API key.
92
+ #
93
+ # @return [String, nil]
94
+ optional :websocket_url, String, nil?: true
95
+
96
+ # @!attribute idempotency_key
97
+ #
98
+ # @return [String, nil]
99
+ optional :idempotency_key, String
100
+
101
+ # @!attribute x_profile_id
102
+ #
103
+ # @return [String, nil]
104
+ optional :x_profile_id, String
105
+
106
+ # @!method initialize(audio: nil, fallback: nil, greeting: nil, limits: nil, name: nil, sandbox: nil, session_type: nil, speech: nil, tools: nil, transcripts: nil, transfer_targets: nil, websocket_url: nil, idempotency_key: nil, x_profile_id: nil, request_options: {})
107
+ # Some parameter documentations has been truncated, see
108
+ # {Sentdm::Models::Voice::AgentCreateParams} for more details.
109
+ #
110
+ # @param audio [Sentdm::Models::Voice::VoiceAgentAudioSpec, nil] Audio sessions only: the sound format.
111
+ #
112
+ # @param fallback [Sentdm::Models::Voice::VoiceAgentPartySpec, nil] Who takes the call when the agent cannot: a phone number (kind: number). Omit it
113
+ #
114
+ # @param greeting [String, nil] Text sessions only: what the caller hears as soon as the call is answered, befor
115
+ #
116
+ # @param limits [Sentdm::Models::Voice::VoiceAgentLimitsSpec, nil]
117
+ #
118
+ # @param name [String, nil] A name for your own reference, 1 to 100 characters.
119
+ #
120
+ # @param sandbox [Boolean] Sandbox flag - when true, the operation is simulated without side effects
121
+ #
122
+ # @param session_type [String, nil] text: Sent turns the caller's speech into text and the agent's text into speech,
123
+ #
124
+ # @param speech [Sentdm::Models::Voice::VoiceAgentSpeechSpec, nil] Text sessions only: how the caller is spoken to and listened to.
125
+ #
126
+ # @param tools [Array<String>, nil] What the agent may do to the call: any of transfer, hangup, send_dtmf and
127
+ #
128
+ # @param transcripts [Sentdm::Models::Voice::VoiceAgentTranscriptsSpec, nil]
129
+ #
130
+ # @param transfer_targets [Array<Sentdm::Models::Voice::VoiceAgentPartySpec>, nil] Where the agent may transfer a call to, up to 20 parties: a phone number (kind:
131
+ #
132
+ # @param websocket_url [String, nil] Where the gateway connects to the agent for each call: an absolute wss:// URL on
133
+ #
134
+ # @param idempotency_key [String]
135
+ #
136
+ # @param x_profile_id [String]
137
+ #
138
+ # @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}]
139
+ end
140
+ end
141
+ end
142
+ end
@@ -2,9 +2,9 @@
2
2
 
3
3
  module Sentdm
4
4
  module Models
5
- module Calls
6
- # @see Sentdm::Resources::Calls::Participants#list
7
- class ParticipantListParams < Sentdm::Internal::Type::BaseModel
5
+ module Voice
6
+ # @see Sentdm::Resources::Voice::Agents#delete
7
+ class AgentDeleteParams < Sentdm::Models::MutationRequest
8
8
  extend Sentdm::Internal::Type::RequestParameters::Converter
9
9
  include Sentdm::Internal::Type::RequestParameters
10
10
 
@@ -0,0 +1,38 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sentdm
4
+ module Models
5
+ module Voice
6
+ # @see Sentdm::Resources::Voice::Agents#list
7
+ class AgentListParams < Sentdm::Internal::Type::BaseModel
8
+ extend Sentdm::Internal::Type::RequestParameters::Converter
9
+ include Sentdm::Internal::Type::RequestParameters
10
+
11
+ # @!attribute page
12
+ # Page number, from 1
13
+ #
14
+ # @return [Integer, nil]
15
+ optional :page, Integer
16
+
17
+ # @!attribute page_size
18
+ #
19
+ # @return [Integer, nil]
20
+ optional :page_size, Integer
21
+
22
+ # @!attribute x_profile_id
23
+ #
24
+ # @return [String, nil]
25
+ optional :x_profile_id, String
26
+
27
+ # @!method initialize(page: nil, page_size: nil, x_profile_id: nil, request_options: {})
28
+ # @param page [Integer] Page number, from 1
29
+ #
30
+ # @param page_size [Integer]
31
+ #
32
+ # @param x_profile_id [String]
33
+ #
34
+ # @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}]
35
+ end
36
+ end
37
+ end
38
+ end
@@ -2,9 +2,9 @@
2
2
 
3
3
  module Sentdm
4
4
  module Models
5
- module Calls
6
- # @see Sentdm::Resources::Calls::Participants#remove_all
7
- class ParticipantRemoveAllParams < Sentdm::Models::MutationRequest
5
+ module Voice
6
+ # @see Sentdm::Resources::Voice::Agents#retrieve
7
+ class AgentRetrieveParams < Sentdm::Internal::Type::BaseModel
8
8
  extend Sentdm::Internal::Type::RequestParameters::Converter
9
9
  include Sentdm::Internal::Type::RequestParameters
10
10
 
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sentdm
4
+ module Models
5
+ module Voice
6
+ # @see Sentdm::Resources::Voice::Agents#rotate_secret
7
+ class AgentRotateSecretParams < Sentdm::Models::MutationRequest
8
+ extend Sentdm::Internal::Type::RequestParameters::Converter
9
+ include Sentdm::Internal::Type::RequestParameters
10
+
11
+ # @!attribute id
12
+ #
13
+ # @return [String]
14
+ required :id, String
15
+
16
+ # @!attribute idempotency_key
17
+ #
18
+ # @return [String, nil]
19
+ optional :idempotency_key, String
20
+
21
+ # @!attribute x_profile_id
22
+ #
23
+ # @return [String, nil]
24
+ optional :x_profile_id, String
25
+
26
+ # @!method initialize(id:, idempotency_key: nil, x_profile_id: nil, request_options: {})
27
+ # @param id [String]
28
+ # @param idempotency_key [String]
29
+ # @param x_profile_id [String]
30
+ # @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}]
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,141 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sentdm
4
+ module Models
5
+ module Voice
6
+ # @see Sentdm::Resources::Voice::Agents#update
7
+ class AgentUpdateParams < Sentdm::Internal::Type::BaseModel
8
+ extend Sentdm::Internal::Type::RequestParameters::Converter
9
+ include Sentdm::Internal::Type::RequestParameters
10
+
11
+ # @!attribute id
12
+ #
13
+ # @return [String]
14
+ required :id, String
15
+
16
+ # @!attribute audio
17
+ # Audio sessions: { sample_rate }; null restores the default.
18
+ #
19
+ # @return [Sentdm::Models::Voice::VoiceAgentAudioSpec, nil]
20
+ optional :audio, -> { Sentdm::Voice::VoiceAgentAudioSpec }, nil?: true
21
+
22
+ # @!attribute fallback
23
+ # A new fallback party, or null for none.
24
+ #
25
+ # @return [Sentdm::Models::Voice::VoiceAgentPartySpec, nil]
26
+ optional :fallback, -> { Sentdm::Voice::VoiceAgentPartySpec }, nil?: true
27
+
28
+ # @!attribute greeting
29
+ # A new greeting, or null for none.
30
+ #
31
+ # @return [String, nil]
32
+ optional :greeting, String, nil?: true
33
+
34
+ # @!attribute limits
35
+ # The whole limits object; null restores the defaults.
36
+ #
37
+ # @return [Sentdm::Models::Voice::VoiceAgentLimitsSpec, nil]
38
+ optional :limits, -> { Sentdm::Voice::VoiceAgentLimitsSpec }, nil?: true
39
+
40
+ # @!attribute name
41
+ # A new name, 1 to 100 characters.
42
+ #
43
+ # @return [String, nil]
44
+ optional :name, String
45
+
46
+ # @!attribute sandbox
47
+ # Sandbox flag - when true, the operation is simulated without side effects Useful
48
+ # for testing integrations without actual execution
49
+ #
50
+ # @return [Boolean, nil]
51
+ optional :sandbox, Sentdm::Internal::Type::Boolean
52
+
53
+ # @!attribute session_type
54
+ # text or audio. Changing it drops the settings the other type cannot have
55
+ # (speech, audio, greeting) unless the body sends them.
56
+ #
57
+ # @return [String, nil]
58
+ optional :session_type, String
59
+
60
+ # @!attribute speech
61
+ # Text sessions: { setting, voice, language }, replaced whole; null restores the
62
+ # defaults.
63
+ #
64
+ # @return [Sentdm::Models::Voice::VoiceAgentSpeechSpec, nil]
65
+ optional :speech, -> { Sentdm::Voice::VoiceAgentSpeechSpec }, nil?: true
66
+
67
+ # @!attribute tools
68
+ # The whole list of tools; null restores the default.
69
+ #
70
+ # @return [Array<String>, nil]
71
+ optional :tools, Sentdm::Internal::Type::ArrayOf[String], nil?: true
72
+
73
+ # @!attribute transcripts
74
+ # The whole transcripts object; null restores the defaults.
75
+ #
76
+ # @return [Sentdm::Models::Voice::VoiceAgentTranscriptsSpec, nil]
77
+ optional :transcripts, -> { Sentdm::Voice::VoiceAgentTranscriptsSpec }, nil?: true
78
+
79
+ # @!attribute transfer_targets
80
+ # The whole list of parties; null clears it.
81
+ #
82
+ # @return [Array<Sentdm::Models::Voice::VoiceAgentPartySpec>, nil]
83
+ optional :transfer_targets,
84
+ -> { Sentdm::Internal::Type::ArrayOf[Sentdm::Voice::VoiceAgentPartySpec] },
85
+ nil?: true
86
+
87
+ # @!attribute websocket_url
88
+ # A new wss:// URL, or null for an agent that dials in.
89
+ #
90
+ # @return [String, nil]
91
+ optional :websocket_url, String, nil?: true
92
+
93
+ # @!attribute idempotency_key
94
+ #
95
+ # @return [String, nil]
96
+ optional :idempotency_key, String
97
+
98
+ # @!attribute x_profile_id
99
+ #
100
+ # @return [String, nil]
101
+ optional :x_profile_id, String
102
+
103
+ # @!method initialize(id:, audio: nil, fallback: nil, greeting: nil, limits: nil, name: nil, sandbox: nil, session_type: nil, speech: nil, tools: nil, transcripts: nil, transfer_targets: nil, websocket_url: nil, idempotency_key: nil, x_profile_id: nil, request_options: {})
104
+ # Some parameter documentations has been truncated, see
105
+ # {Sentdm::Models::Voice::AgentUpdateParams} for more details.
106
+ #
107
+ # @param id [String]
108
+ #
109
+ # @param audio [Sentdm::Models::Voice::VoiceAgentAudioSpec, nil] Audio sessions: { sample_rate }; null restores the default.
110
+ #
111
+ # @param fallback [Sentdm::Models::Voice::VoiceAgentPartySpec, nil] A new fallback party, or null for none.
112
+ #
113
+ # @param greeting [String, nil] A new greeting, or null for none.
114
+ #
115
+ # @param limits [Sentdm::Models::Voice::VoiceAgentLimitsSpec, nil] The whole limits object; null restores the defaults.
116
+ #
117
+ # @param name [String] A new name, 1 to 100 characters.
118
+ #
119
+ # @param sandbox [Boolean] Sandbox flag - when true, the operation is simulated without side effects
120
+ #
121
+ # @param session_type [String] text or audio. Changing it drops the settings the other type cannot have (speech
122
+ #
123
+ # @param speech [Sentdm::Models::Voice::VoiceAgentSpeechSpec, nil] Text sessions: { setting, voice, language }, replaced whole; null restores the d
124
+ #
125
+ # @param tools [Array<String>, nil] The whole list of tools; null restores the default.
126
+ #
127
+ # @param transcripts [Sentdm::Models::Voice::VoiceAgentTranscriptsSpec, nil] The whole transcripts object; null restores the defaults.
128
+ #
129
+ # @param transfer_targets [Array<Sentdm::Models::Voice::VoiceAgentPartySpec>, nil] The whole list of parties; null clears it.
130
+ #
131
+ # @param websocket_url [String, nil] A new wss:// URL, or null for an agent that dials in.
132
+ #
133
+ # @param idempotency_key [String]
134
+ #
135
+ # @param x_profile_id [String]
136
+ #
137
+ # @param request_options [Sentdm::RequestOptions, Hash{Symbol=>Object}]
138
+ end
139
+ end
140
+ end
141
+ end
@@ -2,14 +2,14 @@
2
2
 
3
3
  module Sentdm
4
4
  module Models
5
- module Calls
6
- # @see Sentdm::Resources::Calls::Participants#list
7
- class APIResponseOfListOfCallParticipant < Sentdm::Internal::Type::BaseModel
5
+ module Voice
6
+ # @see Sentdm::Resources::Voice::Calls#retrieve
7
+ class APIResponseOfCall < Sentdm::Internal::Type::BaseModel
8
8
  # @!attribute data
9
- # The response data (null if error)
9
+ # A call record
10
10
  #
11
- # @return [Array<Sentdm::Models::Calls::CallParticipant>, nil]
12
- optional :data, -> { Sentdm::Internal::Type::ArrayOf[Sentdm::Calls::CallParticipant] }, nil?: true
11
+ # @return [Sentdm::Models::Voice::Call, nil]
12
+ optional :data, -> { Sentdm::Voice::Call }, nil?: true
13
13
 
14
14
  # @!attribute error
15
15
  # Error information
@@ -32,7 +32,7 @@ module Sentdm
32
32
  # @!method initialize(data: nil, error: nil, meta: nil, success: nil)
33
33
  # Standard API response envelope for all v3 endpoints
34
34
  #
35
- # @param data [Array<Sentdm::Models::Calls::CallParticipant>, nil] The response data (null if error)
35
+ # @param data [Sentdm::Models::Voice::Call, nil] A call record
36
36
  #
37
37
  # @param error [Sentdm::Models::ErrorDetail, nil] Error information
38
38
  #
@@ -0,0 +1,45 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sentdm
4
+ module Models
5
+ module Voice
6
+ # @see Sentdm::Resources::Voice::Calls#list_recordings
7
+ class APIResponseOfCallRecordings < Sentdm::Internal::Type::BaseModel
8
+ # @!attribute data
9
+ # The recordings of a call, each as a short-lived download link
10
+ #
11
+ # @return [Sentdm::Models::Voice::CallRecordings, nil]
12
+ optional :data, -> { Sentdm::Voice::CallRecordings }, nil?: true
13
+
14
+ # @!attribute error
15
+ # Error information
16
+ #
17
+ # @return [Sentdm::Models::ErrorDetail, nil]
18
+ optional :error, -> { Sentdm::ErrorDetail }, nil?: true
19
+
20
+ # @!attribute meta
21
+ # Request and response metadata
22
+ #
23
+ # @return [Sentdm::Models::APIMeta, nil]
24
+ optional :meta, -> { Sentdm::APIMeta }
25
+
26
+ # @!attribute success
27
+ # Indicates whether the request was successful
28
+ #
29
+ # @return [Boolean, nil]
30
+ optional :success, Sentdm::Internal::Type::Boolean
31
+
32
+ # @!method initialize(data: nil, error: nil, meta: nil, success: nil)
33
+ # Standard API response envelope for all v3 endpoints
34
+ #
35
+ # @param data [Sentdm::Models::Voice::CallRecordings, nil] The recordings of a call, each as a short-lived download link
36
+ #
37
+ # @param error [Sentdm::Models::ErrorDetail, nil] Error information
38
+ #
39
+ # @param meta [Sentdm::Models::APIMeta] Request and response metadata
40
+ #
41
+ # @param success [Boolean] Indicates whether the request was successful
42
+ end
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,44 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sentdm
4
+ module Models
5
+ module Voice
6
+ class APIResponseOfCallsList < Sentdm::Internal::Type::BaseModel
7
+ # @!attribute data
8
+ # Paginated list of calls
9
+ #
10
+ # @return [Sentdm::Models::Voice::CallsList, nil]
11
+ optional :data, -> { Sentdm::Voice::CallsList }, nil?: true
12
+
13
+ # @!attribute error
14
+ # Error information
15
+ #
16
+ # @return [Sentdm::Models::ErrorDetail, nil]
17
+ optional :error, -> { Sentdm::ErrorDetail }, nil?: true
18
+
19
+ # @!attribute meta
20
+ # Request and response metadata
21
+ #
22
+ # @return [Sentdm::Models::APIMeta, nil]
23
+ optional :meta, -> { Sentdm::APIMeta }
24
+
25
+ # @!attribute success
26
+ # Indicates whether the request was successful
27
+ #
28
+ # @return [Boolean, nil]
29
+ optional :success, Sentdm::Internal::Type::Boolean
30
+
31
+ # @!method initialize(data: nil, error: nil, meta: nil, success: nil)
32
+ # Standard API response envelope for all v3 endpoints
33
+ #
34
+ # @param data [Sentdm::Models::Voice::CallsList, nil] Paginated list of calls
35
+ #
36
+ # @param error [Sentdm::Models::ErrorDetail, nil] Error information
37
+ #
38
+ # @param meta [Sentdm::Models::APIMeta] Request and response metadata
39
+ #
40
+ # @param success [Boolean] Indicates whether the request was successful
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,51 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sentdm
4
+ module Models
5
+ module Voice
6
+ # @see Sentdm::Resources::Voice::Agents#create
7
+ class APIResponseOfVoiceAgent < Sentdm::Internal::Type::BaseModel
8
+ # @!attribute data
9
+ # A voice agent as stored: what was written with every default filled in, plus the
10
+ # signing secret the one time it is shown (on create, and on rotate). The one
11
+ # shape every read of an agent answers with, on /v3/voice/agents and on the admin
12
+ # API the dashboard uses, so the two cannot drift.
13
+ #
14
+ # @return [Sentdm::Models::Voice::VoiceAgent, nil]
15
+ optional :data, -> { Sentdm::Voice::VoiceAgent }, nil?: true
16
+
17
+ # @!attribute error
18
+ # Error information
19
+ #
20
+ # @return [Sentdm::Models::ErrorDetail, nil]
21
+ optional :error, -> { Sentdm::ErrorDetail }, nil?: true
22
+
23
+ # @!attribute meta
24
+ # Request and response metadata
25
+ #
26
+ # @return [Sentdm::Models::APIMeta, nil]
27
+ optional :meta, -> { Sentdm::APIMeta }
28
+
29
+ # @!attribute success
30
+ # Indicates whether the request was successful
31
+ #
32
+ # @return [Boolean, nil]
33
+ optional :success, Sentdm::Internal::Type::Boolean
34
+
35
+ # @!method initialize(data: nil, error: nil, meta: nil, success: nil)
36
+ # Some parameter documentations has been truncated, see
37
+ # {Sentdm::Models::Voice::APIResponseOfVoiceAgent} for more details.
38
+ #
39
+ # Standard API response envelope for all v3 endpoints
40
+ #
41
+ # @param data [Sentdm::Models::Voice::VoiceAgent, nil] A voice agent as stored: what was written with every default filled in, plus the
42
+ #
43
+ # @param error [Sentdm::Models::ErrorDetail, nil] Error information
44
+ #
45
+ # @param meta [Sentdm::Models::APIMeta] Request and response metadata
46
+ #
47
+ # @param success [Boolean] Indicates whether the request was successful
48
+ end
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,45 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sentdm
4
+ module Models
5
+ module Voice
6
+ # @see Sentdm::Resources::Voice::Agents#rotate_secret
7
+ class APIResponseOfVoiceAgentSecret < Sentdm::Internal::Type::BaseModel
8
+ # @!attribute data
9
+ # A freshly rotated signing secret.
10
+ #
11
+ # @return [Sentdm::Models::Voice::VoiceAgentSecret, nil]
12
+ optional :data, -> { Sentdm::Voice::VoiceAgentSecret }, nil?: true
13
+
14
+ # @!attribute error
15
+ # Error information
16
+ #
17
+ # @return [Sentdm::Models::ErrorDetail, nil]
18
+ optional :error, -> { Sentdm::ErrorDetail }, nil?: true
19
+
20
+ # @!attribute meta
21
+ # Request and response metadata
22
+ #
23
+ # @return [Sentdm::Models::APIMeta, nil]
24
+ optional :meta, -> { Sentdm::APIMeta }
25
+
26
+ # @!attribute success
27
+ # Indicates whether the request was successful
28
+ #
29
+ # @return [Boolean, nil]
30
+ optional :success, Sentdm::Internal::Type::Boolean
31
+
32
+ # @!method initialize(data: nil, error: nil, meta: nil, success: nil)
33
+ # Standard API response envelope for all v3 endpoints
34
+ #
35
+ # @param data [Sentdm::Models::Voice::VoiceAgentSecret, nil] A freshly rotated signing secret.
36
+ #
37
+ # @param error [Sentdm::Models::ErrorDetail, nil] Error information
38
+ #
39
+ # @param meta [Sentdm::Models::APIMeta] Request and response metadata
40
+ #
41
+ # @param success [Boolean] Indicates whether the request was successful
42
+ end
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,48 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sentdm
4
+ module Models
5
+ module Voice
6
+ class APIResponseOfVoiceAgentsList < Sentdm::Internal::Type::BaseModel
7
+ # @!attribute data
8
+ # A page of the account's agents. The agent itself is VoiceAgentResponse, shared
9
+ # with the admin API.
10
+ #
11
+ # @return [Sentdm::Models::Voice::VoiceAgentsList, nil]
12
+ optional :data, -> { Sentdm::Voice::VoiceAgentsList }, nil?: true
13
+
14
+ # @!attribute error
15
+ # Error information
16
+ #
17
+ # @return [Sentdm::Models::ErrorDetail, nil]
18
+ optional :error, -> { Sentdm::ErrorDetail }, nil?: true
19
+
20
+ # @!attribute meta
21
+ # Request and response metadata
22
+ #
23
+ # @return [Sentdm::Models::APIMeta, nil]
24
+ optional :meta, -> { Sentdm::APIMeta }
25
+
26
+ # @!attribute success
27
+ # Indicates whether the request was successful
28
+ #
29
+ # @return [Boolean, nil]
30
+ optional :success, Sentdm::Internal::Type::Boolean
31
+
32
+ # @!method initialize(data: nil, error: nil, meta: nil, success: nil)
33
+ # Some parameter documentations has been truncated, see
34
+ # {Sentdm::Models::Voice::APIResponseOfVoiceAgentsList} for more details.
35
+ #
36
+ # Standard API response envelope for all v3 endpoints
37
+ #
38
+ # @param data [Sentdm::Models::Voice::VoiceAgentsList, nil] A page of the account's agents. The agent itself is VoiceAgentResponse, shared w
39
+ #
40
+ # @param error [Sentdm::Models::ErrorDetail, nil] Error information
41
+ #
42
+ # @param meta [Sentdm::Models::APIMeta] Request and response metadata
43
+ #
44
+ # @param success [Boolean] Indicates whether the request was successful
45
+ end
46
+ end
47
+ end
48
+ end