revox 0.2.0 → 0.4.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 (208) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +36 -0
  3. data/README.md +38 -38
  4. data/lib/revox/client.rb +8 -0
  5. data/lib/revox/internal/type/base_model.rb +3 -3
  6. data/lib/revox/models/assistant_clone_params.rb +20 -0
  7. data/lib/revox/models/assistant_clone_response.rb +1616 -0
  8. data/lib/revox/models/assistant_create_params.rb +90 -66
  9. data/lib/revox/models/assistant_create_response.rb +87 -65
  10. data/lib/revox/models/assistant_list_response.rb +87 -65
  11. data/lib/revox/models/assistant_retrieve_response.rb +86 -65
  12. data/lib/revox/models/assistant_update_params.rb +90 -66
  13. data/lib/revox/models/assistant_update_response.rb +87 -65
  14. data/lib/revox/models/auth_status_retrieve_params.rb +14 -0
  15. data/lib/revox/models/auth_status_retrieve_response.rb +17 -0
  16. data/lib/revox/models/call_cancel_params.rb +20 -0
  17. data/lib/revox/models/call_cancel_response.rb +16 -0
  18. data/lib/revox/models/call_create_params.rb +117 -90
  19. data/lib/revox/models/call_create_response.rb +680 -90
  20. data/lib/revox/models/call_export_params.rb +203 -0
  21. data/lib/revox/models/call_export_response.rb +22 -0
  22. data/lib/revox/models/call_pause_params.rb +20 -0
  23. data/lib/revox/models/call_pause_response.rb +16 -0
  24. data/lib/revox/models/call_phone_history_params.rb +14 -0
  25. data/lib/revox/models/call_phone_history_response.rb +95 -0
  26. data/lib/revox/models/call_resume_params.rb +20 -0
  27. data/lib/revox/models/call_resume_response.rb +16 -0
  28. data/lib/revox/models/call_retrieve_response.rb +681 -90
  29. data/lib/revox/models/call_search_params.rb +169 -0
  30. data/lib/revox/models/call_search_response.rb +3694 -0
  31. data/lib/revox/models/campaign_create_params.rb +7 -57
  32. data/lib/revox/models/campaign_create_response.rb +108 -119
  33. data/lib/revox/models/campaign_get_rows_response.rb +682 -90
  34. data/lib/revox/models/campaign_list_response.rb +108 -119
  35. data/lib/revox/models/campaign_pause_params.rb +20 -0
  36. data/lib/revox/models/campaign_pause_response.rb +16 -0
  37. data/lib/revox/models/campaign_resume_params.rb +20 -0
  38. data/lib/revox/models/campaign_resume_response.rb +16 -0
  39. data/lib/revox/models/campaign_retrieve_response.rb +108 -119
  40. data/lib/revox/models/campaign_statistics_params.rb +20 -0
  41. data/lib/revox/models/campaign_statistics_response.rb +514 -0
  42. data/lib/revox/models/campaign_update_params.rb +165 -0
  43. data/lib/revox/models/campaign_update_response.rb +2019 -0
  44. data/lib/revox/models/phone_number_delete_params.rb +20 -0
  45. data/lib/revox/models/phone_number_delete_response.rb +16 -0
  46. data/lib/revox/models/phone_number_list_params.rb +14 -0
  47. data/lib/revox/models/phone_number_list_response.rb +1799 -0
  48. data/lib/revox/models/phone_number_update_params.rb +32 -0
  49. data/lib/revox/models/phone_number_update_response.rb +1799 -0
  50. data/lib/revox/models/user_retrieve_params.rb +14 -0
  51. data/lib/revox/models/user_retrieve_response.rb +99 -0
  52. data/lib/revox/models/voice_clone_params.rb +78 -0
  53. data/lib/revox/models/voice_clone_response.rb +40 -0
  54. data/lib/revox/models/voice_delete_params.rb +20 -0
  55. data/lib/revox/models/voice_delete_response.rb +16 -0
  56. data/lib/revox/models/voice_list_response.rb +1 -0
  57. data/lib/revox/models/voice_preview_params.rb +1 -0
  58. data/lib/revox/models/voice_retrieve_params.rb +1 -0
  59. data/lib/revox/models.rb +35 -1
  60. data/lib/revox/resources/assistants.rb +31 -10
  61. data/lib/revox/resources/auth_status.rb +32 -0
  62. data/lib/revox/resources/call.rb +149 -4
  63. data/lib/revox/resources/campaigns.rb +110 -11
  64. data/lib/revox/resources/phone_numbers.rb +74 -0
  65. data/lib/revox/resources/users.rb +17 -3
  66. data/lib/revox/resources/voices.rb +50 -0
  67. data/lib/revox/version.rb +1 -1
  68. data/lib/revox.rb +38 -5
  69. data/rbi/revox/client.rbi +6 -0
  70. data/rbi/revox/models/assistant_clone_params.rbi +33 -0
  71. data/rbi/revox/models/assistant_clone_response.rbi +3351 -0
  72. data/rbi/revox/models/assistant_create_params.rbi +148 -162
  73. data/rbi/revox/models/assistant_create_response.rbi +157 -147
  74. data/rbi/revox/models/assistant_list_response.rbi +157 -147
  75. data/rbi/revox/models/assistant_retrieve_response.rbi +153 -147
  76. data/rbi/revox/models/assistant_update_params.rbi +148 -162
  77. data/rbi/revox/models/assistant_update_response.rbi +157 -147
  78. data/rbi/revox/models/auth_status_retrieve_params.rbi +27 -0
  79. data/rbi/revox/models/auth_status_retrieve_response.rbi +30 -0
  80. data/rbi/revox/models/call_cancel_params.rbi +33 -0
  81. data/rbi/revox/models/call_cancel_response.rbi +23 -0
  82. data/rbi/revox/models/call_create_params.rbi +190 -187
  83. data/rbi/revox/models/call_create_response.rbi +1150 -227
  84. data/rbi/revox/models/call_export_params.rbi +446 -0
  85. data/rbi/revox/models/call_export_response.rbi +26 -0
  86. data/rbi/revox/models/call_pause_params.rbi +31 -0
  87. data/rbi/revox/models/call_pause_response.rbi +23 -0
  88. data/rbi/revox/models/call_phone_history_params.rbi +27 -0
  89. data/rbi/revox/models/call_phone_history_response.rbi +209 -0
  90. data/rbi/revox/models/call_resume_params.rbi +33 -0
  91. data/rbi/revox/models/call_resume_response.rbi +23 -0
  92. data/rbi/revox/models/call_retrieve_response.rbi +1150 -227
  93. data/rbi/revox/models/call_search_params.rbi +281 -0
  94. data/rbi/revox/models/call_search_response.rbi +7504 -0
  95. data/rbi/revox/models/campaign_create_params.rbi +9 -87
  96. data/rbi/revox/models/campaign_create_response.rbi +188 -266
  97. data/rbi/revox/models/campaign_get_rows_response.rbi +1150 -225
  98. data/rbi/revox/models/campaign_list_response.rbi +188 -262
  99. data/rbi/revox/models/campaign_pause_params.rbi +33 -0
  100. data/rbi/revox/models/campaign_pause_response.rbi +23 -0
  101. data/rbi/revox/models/campaign_resume_params.rbi +33 -0
  102. data/rbi/revox/models/campaign_resume_response.rbi +23 -0
  103. data/rbi/revox/models/campaign_retrieve_response.rbi +188 -266
  104. data/rbi/revox/models/campaign_statistics_params.rbi +33 -0
  105. data/rbi/revox/models/campaign_statistics_response.rbi +1069 -0
  106. data/rbi/revox/models/campaign_update_params.rbi +313 -0
  107. data/rbi/revox/models/campaign_update_response.rbi +4092 -0
  108. data/rbi/revox/models/phone_number_delete_params.rbi +33 -0
  109. data/rbi/revox/models/phone_number_delete_response.rbi +26 -0
  110. data/rbi/revox/models/phone_number_list_params.rbi +27 -0
  111. data/rbi/revox/models/phone_number_list_response.rbi +3690 -0
  112. data/rbi/revox/models/phone_number_update_params.rbi +53 -0
  113. data/rbi/revox/models/phone_number_update_response.rbi +3693 -0
  114. data/rbi/revox/models/user_retrieve_params.rbi +27 -0
  115. data/rbi/revox/models/user_retrieve_response.rbi +140 -0
  116. data/rbi/revox/models/voice_clone_params.rbi +141 -0
  117. data/rbi/revox/models/voice_clone_response.rbi +53 -0
  118. data/rbi/revox/models/voice_delete_params.rbi +33 -0
  119. data/rbi/revox/models/voice_delete_response.rbi +23 -0
  120. data/rbi/revox/models/voice_list_response.rbi +5 -0
  121. data/rbi/revox/models/voice_preview_params.rbi +2 -0
  122. data/rbi/revox/models/voice_retrieve_params.rbi +2 -0
  123. data/rbi/revox/models.rbi +35 -1
  124. data/rbi/revox/resources/assistants.rbi +52 -22
  125. data/rbi/revox/resources/auth_status.rbi +21 -0
  126. data/rbi/revox/resources/call.rbi +114 -4
  127. data/rbi/revox/resources/campaigns.rbi +77 -15
  128. data/rbi/revox/resources/phone_numbers.rbi +43 -0
  129. data/rbi/revox/resources/users.rbi +8 -2
  130. data/rbi/revox/resources/voices.rbi +39 -0
  131. data/sig/revox/client.rbs +4 -0
  132. data/sig/revox/models/assistant_clone_params.rbs +20 -0
  133. data/sig/revox/models/assistant_clone_response.rbs +1310 -0
  134. data/sig/revox/models/assistant_create_params.rbs +39 -58
  135. data/sig/revox/models/assistant_create_response.rbs +46 -54
  136. data/sig/revox/models/assistant_list_response.rbs +46 -54
  137. data/sig/revox/models/assistant_retrieve_response.rbs +46 -54
  138. data/sig/revox/models/assistant_update_params.rbs +39 -58
  139. data/sig/revox/models/assistant_update_response.rbs +46 -54
  140. data/sig/revox/models/auth_status_retrieve_params.rbs +15 -0
  141. data/sig/revox/models/auth_status_retrieve_response.rbs +13 -0
  142. data/sig/revox/models/call_cancel_params.rbs +20 -0
  143. data/sig/revox/models/call_cancel_response.rbs +13 -0
  144. data/sig/revox/models/call_create_params.rbs +50 -71
  145. data/sig/revox/models/call_create_response.rbs +473 -77
  146. data/sig/revox/models/call_export_params.rbs +230 -0
  147. data/sig/revox/models/call_export_response.rbs +15 -0
  148. data/sig/revox/models/call_pause_params.rbs +20 -0
  149. data/sig/revox/models/call_pause_response.rbs +13 -0
  150. data/sig/revox/models/call_phone_history_params.rbs +15 -0
  151. data/sig/revox/models/call_phone_history_response.rbs +93 -0
  152. data/sig/revox/models/call_resume_params.rbs +20 -0
  153. data/sig/revox/models/call_resume_response.rbs +13 -0
  154. data/sig/revox/models/call_retrieve_response.rbs +473 -77
  155. data/sig/revox/models/call_search_params.rbs +194 -0
  156. data/sig/revox/models/call_search_response.rbs +3045 -0
  157. data/sig/revox/models/campaign_create_params.rbs +5 -50
  158. data/sig/revox/models/campaign_create_response.rbs +62 -98
  159. data/sig/revox/models/campaign_get_rows_response.rbs +472 -73
  160. data/sig/revox/models/campaign_list_response.rbs +62 -98
  161. data/sig/revox/models/campaign_pause_params.rbs +20 -0
  162. data/sig/revox/models/campaign_pause_response.rbs +13 -0
  163. data/sig/revox/models/campaign_resume_params.rbs +20 -0
  164. data/sig/revox/models/campaign_resume_response.rbs +13 -0
  165. data/sig/revox/models/campaign_retrieve_response.rbs +62 -98
  166. data/sig/revox/models/campaign_statistics_params.rbs +20 -0
  167. data/sig/revox/models/campaign_statistics_response.rbs +489 -0
  168. data/sig/revox/models/campaign_update_params.rbs +135 -0
  169. data/sig/revox/models/campaign_update_response.rbs +1658 -0
  170. data/sig/revox/models/phone_number_delete_params.rbs +20 -0
  171. data/sig/revox/models/phone_number_delete_response.rbs +13 -0
  172. data/sig/revox/models/phone_number_list_params.rbs +15 -0
  173. data/sig/revox/models/phone_number_list_response.rbs +1454 -0
  174. data/sig/revox/models/phone_number_update_params.rbs +32 -0
  175. data/sig/revox/models/phone_number_update_response.rbs +1452 -0
  176. data/sig/revox/models/user_retrieve_params.rbs +14 -0
  177. data/sig/revox/models/user_retrieve_response.rbs +71 -0
  178. data/sig/revox/models/voice_clone_params.rbs +79 -0
  179. data/sig/revox/models/voice_clone_response.rbs +40 -0
  180. data/sig/revox/models/voice_delete_params.rbs +20 -0
  181. data/sig/revox/models/voice_delete_response.rbs +13 -0
  182. data/sig/revox/models/voice_list_response.rbs +2 -1
  183. data/sig/revox/models/voice_preview_params.rbs +2 -1
  184. data/sig/revox/models/voice_retrieve_params.rbs +2 -1
  185. data/sig/revox/models.rbs +35 -1
  186. data/sig/revox/resources/assistants.rbs +9 -4
  187. data/sig/revox/resources/auth_status.rbs +11 -0
  188. data/sig/revox/resources/call.rbs +46 -1
  189. data/sig/revox/resources/campaigns.rbs +24 -3
  190. data/sig/revox/resources/phone_numbers.rbs +23 -0
  191. data/sig/revox/resources/users.rbs +3 -1
  192. data/sig/revox/resources/voices.rbs +13 -0
  193. metadata +116 -17
  194. data/lib/revox/models/users/me_retrieve_params.rb +0 -16
  195. data/lib/revox/models/users/me_retrieve_response.rb +0 -101
  196. data/lib/revox/models/users/me_update_params.rb +0 -22
  197. data/lib/revox/models/users/me_update_response.rb +0 -101
  198. data/lib/revox/resources/users/me.rb +0 -55
  199. data/rbi/revox/models/users/me_retrieve_params.rbi +0 -29
  200. data/rbi/revox/models/users/me_retrieve_response.rbi +0 -149
  201. data/rbi/revox/models/users/me_update_params.rbi +0 -43
  202. data/rbi/revox/models/users/me_update_response.rbi +0 -149
  203. data/rbi/revox/resources/users/me.rbi +0 -33
  204. data/sig/revox/models/users/me_retrieve_params.rbs +0 -16
  205. data/sig/revox/models/users/me_retrieve_response.rbs +0 -75
  206. data/sig/revox/models/users/me_update_params.rbs +0 -28
  207. data/sig/revox/models/users/me_update_response.rbs +0 -75
  208. data/sig/revox/resources/users/me.rbs +0 -18
@@ -6,11 +6,11 @@ module Revox
6
6
  assistant: Revox::CallCreateParams::Assistant,
7
7
  assistant_id: String,
8
8
  concurrency: Revox::CallCreateParams::Concurrency,
9
- force_now: bool,
10
9
  from_phone_number: String,
11
10
  metadata: ::Hash[Symbol, String],
12
11
  prompt_variables: ::Hash[Symbol, String],
13
- scheduled_at: Revox::Models::CallCreateParams::scheduled_at
12
+ scheduled_at: Revox::Models::CallCreateParams::scheduled_at,
13
+ skip_calling_window: bool
14
14
  }
15
15
  & Revox::Internal::Type::request_parameters
16
16
 
@@ -36,10 +36,6 @@ module Revox
36
36
  Revox::CallCreateParams::Concurrency
37
37
  ) -> Revox::CallCreateParams::Concurrency
38
38
 
39
- attr_reader force_now: bool?
40
-
41
- def force_now=: (bool) -> bool
42
-
43
39
  attr_reader from_phone_number: String?
44
40
 
45
41
  def from_phone_number=: (String) -> String
@@ -58,16 +54,20 @@ module Revox
58
54
  Revox::Models::CallCreateParams::scheduled_at
59
55
  ) -> Revox::Models::CallCreateParams::scheduled_at
60
56
 
57
+ attr_reader skip_calling_window: bool?
58
+
59
+ def skip_calling_window=: (bool) -> bool
60
+
61
61
  def initialize: (
62
62
  phone_number: String,
63
63
  ?assistant: Revox::CallCreateParams::Assistant,
64
64
  ?assistant_id: String,
65
65
  ?concurrency: Revox::CallCreateParams::Concurrency,
66
- ?force_now: bool,
67
66
  ?from_phone_number: String,
68
67
  ?metadata: ::Hash[Symbol, String],
69
68
  ?prompt_variables: ::Hash[Symbol, String],
70
69
  ?scheduled_at: Revox::Models::CallCreateParams::scheduled_at,
70
+ ?skip_calling_window: bool,
71
71
  ?request_options: Revox::request_opts
72
72
  ) -> void
73
73
 
@@ -76,11 +76,11 @@ module Revox
76
76
  assistant: Revox::CallCreateParams::Assistant,
77
77
  assistant_id: String,
78
78
  concurrency: Revox::CallCreateParams::Concurrency,
79
- force_now: bool,
80
79
  from_phone_number: String,
81
80
  metadata: ::Hash[Symbol, String],
82
81
  prompt_variables: ::Hash[Symbol, String],
83
82
  scheduled_at: Revox::Models::CallCreateParams::scheduled_at,
83
+ skip_calling_window: bool,
84
84
  request_options: Revox::RequestOptions
85
85
  }
86
86
 
@@ -96,7 +96,6 @@ module Revox
96
96
  cartesia_dictionary_pronunciation_id: String?,
97
97
  custom_tools: ::Array[Revox::CallCreateParams::Assistant::CustomTool]?,
98
98
  email_notification_address: String?,
99
- email_notification_language: Revox::Models::CallCreateParams::Assistant::email_notification_language,
100
99
  email_notification_outcomes: ::Array[Revox::Models::CallCreateParams::Assistant::email_notification_outcome]?,
101
100
  end_of_call_sentence: String,
102
101
  faq_items: ::Array[Revox::CallCreateParams::Assistant::FaqItem],
@@ -111,6 +110,7 @@ module Revox
111
110
  max_call_duration_secs: Float,
112
111
  max_duration_end_message: String?,
113
112
  position: Revox::CallCreateParams::Assistant::Position?,
113
+ precall_lookup_url: String?,
114
114
  prompt_flow: Revox::CallCreateParams::Assistant::PromptFlow?,
115
115
  slack: Revox::CallCreateParams::Assistant::Slack?,
116
116
  sms_enabled: bool,
@@ -122,7 +122,7 @@ module Revox
122
122
  thinking_sound: Revox::Models::CallCreateParams::Assistant::thinking_sound?,
123
123
  thinking_sound_probability: Float,
124
124
  thinking_sound_volume: Float,
125
- transfer_phone_number: String?,
125
+ transfer_destinations: ::Array[Revox::CallCreateParams::Assistant::TransferDestination]?,
126
126
  type: Revox::Models::CallCreateParams::Assistant::type_,
127
127
  voice: Revox::CallCreateParams::Assistant::Voice,
128
128
  voicemail_message: String?,
@@ -159,12 +159,6 @@ module Revox
159
159
 
160
160
  attr_accessor email_notification_address: String?
161
161
 
162
- attr_reader email_notification_language: Revox::Models::CallCreateParams::Assistant::email_notification_language?
163
-
164
- def email_notification_language=: (
165
- Revox::Models::CallCreateParams::Assistant::email_notification_language
166
- ) -> Revox::Models::CallCreateParams::Assistant::email_notification_language
167
-
168
162
  attr_accessor email_notification_outcomes: ::Array[Revox::Models::CallCreateParams::Assistant::email_notification_outcome]?
169
163
 
170
164
  attr_reader end_of_call_sentence: String?
@@ -215,6 +209,8 @@ module Revox
215
209
 
216
210
  attr_accessor position: Revox::CallCreateParams::Assistant::Position?
217
211
 
212
+ attr_accessor precall_lookup_url: String?
213
+
218
214
  attr_accessor prompt_flow: Revox::CallCreateParams::Assistant::PromptFlow?
219
215
 
220
216
  attr_accessor slack: Revox::CallCreateParams::Assistant::Slack?
@@ -251,7 +247,7 @@ module Revox
251
247
 
252
248
  def thinking_sound_volume=: (Float) -> Float
253
249
 
254
- attr_accessor transfer_phone_number: String?
250
+ attr_accessor transfer_destinations: ::Array[Revox::CallCreateParams::Assistant::TransferDestination]?
255
251
 
256
252
  attr_reader type: Revox::Models::CallCreateParams::Assistant::type_?
257
253
 
@@ -288,7 +284,6 @@ module Revox
288
284
  ?cartesia_dictionary_pronunciation_id: String?,
289
285
  ?custom_tools: ::Array[Revox::CallCreateParams::Assistant::CustomTool]?,
290
286
  ?email_notification_address: String?,
291
- ?email_notification_language: Revox::Models::CallCreateParams::Assistant::email_notification_language,
292
287
  ?email_notification_outcomes: ::Array[Revox::Models::CallCreateParams::Assistant::email_notification_outcome]?,
293
288
  ?end_of_call_sentence: String,
294
289
  ?faq_items: ::Array[Revox::CallCreateParams::Assistant::FaqItem],
@@ -303,6 +298,7 @@ module Revox
303
298
  ?max_call_duration_secs: Float,
304
299
  ?max_duration_end_message: String?,
305
300
  ?position: Revox::CallCreateParams::Assistant::Position?,
301
+ ?precall_lookup_url: String?,
306
302
  ?prompt_flow: Revox::CallCreateParams::Assistant::PromptFlow?,
307
303
  ?slack: Revox::CallCreateParams::Assistant::Slack?,
308
304
  ?sms_enabled: bool,
@@ -314,7 +310,7 @@ module Revox
314
310
  ?thinking_sound: Revox::Models::CallCreateParams::Assistant::thinking_sound?,
315
311
  ?thinking_sound_probability: Float,
316
312
  ?thinking_sound_volume: Float,
317
- ?transfer_phone_number: String?,
313
+ ?transfer_destinations: ::Array[Revox::CallCreateParams::Assistant::TransferDestination]?,
318
314
  ?type: Revox::Models::CallCreateParams::Assistant::type_,
319
315
  ?voice: Revox::CallCreateParams::Assistant::Voice,
320
316
  ?voicemail_message: String?,
@@ -335,7 +331,6 @@ module Revox
335
331
  cartesia_dictionary_pronunciation_id: String?,
336
332
  custom_tools: ::Array[Revox::CallCreateParams::Assistant::CustomTool]?,
337
333
  email_notification_address: String?,
338
- email_notification_language: Revox::Models::CallCreateParams::Assistant::email_notification_language,
339
334
  email_notification_outcomes: ::Array[Revox::Models::CallCreateParams::Assistant::email_notification_outcome]?,
340
335
  end_of_call_sentence: String,
341
336
  faq_items: ::Array[Revox::CallCreateParams::Assistant::FaqItem],
@@ -350,6 +345,7 @@ module Revox
350
345
  max_call_duration_secs: Float,
351
346
  max_duration_end_message: String?,
352
347
  position: Revox::CallCreateParams::Assistant::Position?,
348
+ precall_lookup_url: String?,
353
349
  prompt_flow: Revox::CallCreateParams::Assistant::PromptFlow?,
354
350
  slack: Revox::CallCreateParams::Assistant::Slack?,
355
351
  sms_enabled: bool,
@@ -361,7 +357,7 @@ module Revox
361
357
  thinking_sound: Revox::Models::CallCreateParams::Assistant::thinking_sound?,
362
358
  thinking_sound_probability: Float,
363
359
  thinking_sound_volume: Float,
364
- transfer_phone_number: String?,
360
+ transfer_destinations: ::Array[Revox::CallCreateParams::Assistant::TransferDestination]?,
365
361
  type: Revox::Models::CallCreateParams::Assistant::type_,
366
362
  voice: Revox::CallCreateParams::Assistant::Voice,
367
363
  voicemail_message: String?,
@@ -376,9 +372,6 @@ module Revox
376
372
  | :interested
377
373
  | :completed
378
374
  | :requested_callback_later
379
- | :requested_callback_new_number
380
- | :do_not_contact
381
- | :ai_averse
382
375
  | :none
383
376
 
384
377
  module AfterCallSMSOutcome
@@ -388,9 +381,6 @@ module Revox
388
381
  INTERESTED: :interested
389
382
  COMPLETED: :completed
390
383
  REQUESTED_CALLBACK_LATER: :requested_callback_later
391
- REQUESTED_CALLBACK_NEW_NUMBER: :requested_callback_new_number
392
- DO_NOT_CONTACT: :do_not_contact
393
- AI_AVERSE: :ai_averse
394
384
  NONE: :none
395
385
 
396
386
  def self?.values: -> ::Array[Revox::Models::CallCreateParams::Assistant::after_call_sms_outcome]
@@ -652,25 +642,11 @@ module Revox
652
642
  end
653
643
  end
654
644
 
655
- type email_notification_language = :en | :fr
656
-
657
- module EmailNotificationLanguage
658
- extend Revox::Internal::Type::Enum
659
-
660
- EN: :en
661
- FR: :fr
662
-
663
- def self?.values: -> ::Array[Revox::Models::CallCreateParams::Assistant::email_notification_language]
664
- end
665
-
666
645
  type email_notification_outcome =
667
646
  :not_interested
668
647
  | :interested
669
648
  | :completed
670
649
  | :requested_callback_later
671
- | :requested_callback_new_number
672
- | :do_not_contact
673
- | :ai_averse
674
650
  | :none
675
651
 
676
652
  module EmailNotificationOutcome
@@ -680,9 +656,6 @@ module Revox
680
656
  INTERESTED: :interested
681
657
  COMPLETED: :completed
682
658
  REQUESTED_CALLBACK_LATER: :requested_callback_later
683
- REQUESTED_CALLBACK_NEW_NUMBER: :requested_callback_new_number
684
- DO_NOT_CONTACT: :do_not_contact
685
- AI_AVERSE: :ai_averse
686
659
  NONE: :none
687
660
 
688
661
  def self?.values: -> ::Array[Revox::Models::CallCreateParams::Assistant::email_notification_outcome]
@@ -978,48 +951,52 @@ module Revox
978
951
 
979
952
  type slack =
980
953
  {
981
- channel_id: String,
954
+ channels: ::Array[Revox::CallCreateParams::Assistant::Slack::Channel],
982
955
  connection_id: String,
983
956
  outcomes: ::Array[Revox::Models::CallCreateParams::Assistant::Slack::outcome],
984
- channel_name: String?,
985
957
  template: String?
986
958
  }
987
959
 
988
960
  class Slack < Revox::Internal::Type::BaseModel
989
- attr_accessor channel_id: String
961
+ attr_accessor channels: ::Array[Revox::CallCreateParams::Assistant::Slack::Channel]
990
962
 
991
963
  attr_accessor connection_id: String
992
964
 
993
965
  attr_accessor outcomes: ::Array[Revox::Models::CallCreateParams::Assistant::Slack::outcome]
994
966
 
995
- attr_accessor channel_name: String?
996
-
997
967
  attr_accessor template: String?
998
968
 
999
969
  def initialize: (
1000
- channel_id: String,
970
+ channels: ::Array[Revox::CallCreateParams::Assistant::Slack::Channel],
1001
971
  connection_id: String,
1002
972
  outcomes: ::Array[Revox::Models::CallCreateParams::Assistant::Slack::outcome],
1003
- ?channel_name: String?,
1004
973
  ?template: String?
1005
974
  ) -> void
1006
975
 
1007
976
  def to_hash: -> {
1008
- channel_id: String,
977
+ channels: ::Array[Revox::CallCreateParams::Assistant::Slack::Channel],
1009
978
  connection_id: String,
1010
979
  outcomes: ::Array[Revox::Models::CallCreateParams::Assistant::Slack::outcome],
1011
- channel_name: String?,
1012
980
  template: String?
1013
981
  }
1014
982
 
983
+ type channel = { id: String, name: String? }
984
+
985
+ class Channel < Revox::Internal::Type::BaseModel
986
+ attr_accessor id: String
987
+
988
+ attr_accessor name: String?
989
+
990
+ def initialize: (id: String, ?name: String?) -> void
991
+
992
+ def to_hash: -> { id: String, name: String? }
993
+ end
994
+
1015
995
  type outcome =
1016
996
  :not_interested
1017
997
  | :interested
1018
998
  | :completed
1019
999
  | :requested_callback_later
1020
- | :requested_callback_new_number
1021
- | :do_not_contact
1022
- | :ai_averse
1023
1000
  | :none
1024
1001
 
1025
1002
  module Outcome
@@ -1029,9 +1006,6 @@ module Revox
1029
1006
  INTERESTED: :interested
1030
1007
  COMPLETED: :completed
1031
1008
  REQUESTED_CALLBACK_LATER: :requested_callback_later
1032
- REQUESTED_CALLBACK_NEW_NUMBER: :requested_callback_new_number
1033
- DO_NOT_CONTACT: :do_not_contact
1034
- AI_AVERSE: :ai_averse
1035
1009
  NONE: :none
1036
1010
 
1037
1011
  def self?.values: -> ::Array[Revox::Models::CallCreateParams::Assistant::Slack::outcome]
@@ -1162,6 +1136,18 @@ module Revox
1162
1136
  def self?.values: -> ::Array[Revox::Models::CallCreateParams::Assistant::thinking_sound]
1163
1137
  end
1164
1138
 
1139
+ type transfer_destination = { label: String, phone_number: String }
1140
+
1141
+ class TransferDestination < Revox::Internal::Type::BaseModel
1142
+ attr_accessor label: String
1143
+
1144
+ attr_accessor phone_number: String
1145
+
1146
+ def initialize: (label: String, phone_number: String) -> void
1147
+
1148
+ def to_hash: -> { label: String, phone_number: String }
1149
+ end
1150
+
1165
1151
  type type_ = :standalone | :"multi-step" | :"sub-assistant"
1166
1152
 
1167
1153
  module Type
@@ -1218,13 +1204,14 @@ module Revox
1218
1204
  volume: Float
1219
1205
  }
1220
1206
 
1221
- type provider = :cartesia | :elevenlabs
1207
+ type provider = :cartesia | :elevenlabs | :gradium
1222
1208
 
1223
1209
  module Provider
1224
1210
  extend Revox::Internal::Type::Enum
1225
1211
 
1226
1212
  CARTESIA: :cartesia
1227
1213
  ELEVENLABS: :elevenlabs
1214
+ GRADIUM: :gradium
1228
1215
 
1229
1216
  def self?.values: -> ::Array[Revox::Models::CallCreateParams::Assistant::Voice::provider]
1230
1217
  end
@@ -1299,9 +1286,6 @@ module Revox
1299
1286
  | :interested
1300
1287
  | :completed
1301
1288
  | :requested_callback_later
1302
- | :requested_callback_new_number
1303
- | :do_not_contact
1304
- | :ai_averse
1305
1289
  | :none
1306
1290
 
1307
1291
  module Outcome
@@ -1311,9 +1295,6 @@ module Revox
1311
1295
  INTERESTED: :interested
1312
1296
  COMPLETED: :completed
1313
1297
  REQUESTED_CALLBACK_LATER: :requested_callback_later
1314
- REQUESTED_CALLBACK_NEW_NUMBER: :requested_callback_new_number
1315
- DO_NOT_CONTACT: :do_not_contact
1316
- AI_AVERSE: :ai_averse
1317
1298
  NONE: :none
1318
1299
 
1319
1300
  def self?.values: -> ::Array[Revox::Models::CallCreateParams::Assistant::Zoho::outcome]
@@ -1321,16 +1302,14 @@ module Revox
1321
1302
  end
1322
1303
  end
1323
1304
 
1324
- type concurrency = { key: String, max: Float }
1305
+ type concurrency = { key: String }
1325
1306
 
1326
1307
  class Concurrency < Revox::Internal::Type::BaseModel
1327
1308
  attr_accessor key: String
1328
1309
 
1329
- attr_accessor max: Float
1330
-
1331
- def initialize: (key: String, max: Float) -> void
1310
+ def initialize: (key: String) -> void
1332
1311
 
1333
- def to_hash: -> { key: String, max: Float }
1312
+ def to_hash: -> { key: String }
1334
1313
  end
1335
1314
 
1336
1315
  type scheduled_at = Time | top