revox 0.3.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 (105) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +26 -0
  3. data/README.md +38 -38
  4. data/lib/revox/models/assistant_clone_response.rb +87 -65
  5. data/lib/revox/models/assistant_create_params.rb +90 -66
  6. data/lib/revox/models/assistant_create_response.rb +87 -65
  7. data/lib/revox/models/assistant_list_response.rb +87 -65
  8. data/lib/revox/models/assistant_retrieve_response.rb +86 -65
  9. data/lib/revox/models/assistant_update_params.rb +90 -66
  10. data/lib/revox/models/assistant_update_response.rb +87 -65
  11. data/lib/revox/models/call_create_params.rb +117 -90
  12. data/lib/revox/models/call_create_response.rb +670 -90
  13. data/lib/revox/models/call_export_params.rb +1 -3
  14. data/lib/revox/models/call_phone_history_response.rb +0 -3
  15. data/lib/revox/models/call_retrieve_response.rb +671 -90
  16. data/lib/revox/models/call_search_params.rb +1 -3
  17. data/lib/revox/models/call_search_response.rb +670 -90
  18. data/lib/revox/models/campaign_create_params.rb +7 -57
  19. data/lib/revox/models/campaign_create_response.rb +108 -119
  20. data/lib/revox/models/campaign_get_rows_response.rb +672 -90
  21. data/lib/revox/models/campaign_list_response.rb +108 -119
  22. data/lib/revox/models/campaign_retrieve_response.rb +108 -119
  23. data/lib/revox/models/campaign_statistics_response.rb +51 -23
  24. data/lib/revox/models/campaign_update_params.rb +9 -78
  25. data/lib/revox/models/campaign_update_response.rb +108 -119
  26. data/lib/revox/models/phone_number_list_response.rb +87 -65
  27. data/lib/revox/models/phone_number_update_response.rb +87 -65
  28. data/lib/revox/models/voice_list_response.rb +1 -0
  29. data/lib/revox/models/voice_preview_params.rb +1 -0
  30. data/lib/revox/models/voice_retrieve_params.rb +1 -0
  31. data/lib/revox/models.rb +0 -2
  32. data/lib/revox/resources/assistants.rb +10 -10
  33. data/lib/revox/resources/call.rb +4 -4
  34. data/lib/revox/resources/campaigns.rb +13 -45
  35. data/lib/revox/version.rb +1 -1
  36. data/lib/revox.rb +0 -2
  37. data/rbi/revox/models/assistant_clone_response.rbi +157 -147
  38. data/rbi/revox/models/assistant_create_params.rbi +148 -162
  39. data/rbi/revox/models/assistant_create_response.rbi +157 -147
  40. data/rbi/revox/models/assistant_list_response.rbi +157 -147
  41. data/rbi/revox/models/assistant_retrieve_response.rbi +153 -147
  42. data/rbi/revox/models/assistant_update_params.rbi +148 -162
  43. data/rbi/revox/models/assistant_update_response.rbi +157 -147
  44. data/rbi/revox/models/call_create_params.rbi +190 -187
  45. data/rbi/revox/models/call_create_response.rbi +1138 -227
  46. data/rbi/revox/models/call_export_params.rbi +5 -15
  47. data/rbi/revox/models/call_phone_history_response.rbi +0 -15
  48. data/rbi/revox/models/call_retrieve_response.rbi +1138 -227
  49. data/rbi/revox/models/call_search_params.rbi +2 -9
  50. data/rbi/revox/models/call_search_response.rbi +1138 -227
  51. data/rbi/revox/models/campaign_create_params.rbi +9 -87
  52. data/rbi/revox/models/campaign_create_response.rbi +188 -266
  53. data/rbi/revox/models/campaign_get_rows_response.rbi +1138 -225
  54. data/rbi/revox/models/campaign_list_response.rbi +188 -262
  55. data/rbi/revox/models/campaign_retrieve_response.rbi +188 -266
  56. data/rbi/revox/models/campaign_statistics_response.rbi +94 -36
  57. data/rbi/revox/models/campaign_update_params.rbi +10 -128
  58. data/rbi/revox/models/campaign_update_response.rbi +188 -266
  59. data/rbi/revox/models/phone_number_list_response.rbi +157 -147
  60. data/rbi/revox/models/phone_number_update_response.rbi +157 -147
  61. data/rbi/revox/models/voice_list_response.rbi +5 -0
  62. data/rbi/revox/models/voice_preview_params.rbi +2 -0
  63. data/rbi/revox/models/voice_retrieve_params.rbi +2 -0
  64. data/rbi/revox/models.rbi +0 -2
  65. data/rbi/revox/resources/assistants.rbi +40 -22
  66. data/rbi/revox/resources/call.rbi +7 -4
  67. data/rbi/revox/resources/campaigns.rbi +12 -44
  68. data/sig/revox/models/assistant_clone_response.rbs +46 -54
  69. data/sig/revox/models/assistant_create_params.rbs +39 -58
  70. data/sig/revox/models/assistant_create_response.rbs +46 -54
  71. data/sig/revox/models/assistant_list_response.rbs +46 -54
  72. data/sig/revox/models/assistant_retrieve_response.rbs +46 -54
  73. data/sig/revox/models/assistant_update_params.rbs +39 -58
  74. data/sig/revox/models/assistant_update_response.rbs +46 -54
  75. data/sig/revox/models/call_create_params.rbs +50 -71
  76. data/sig/revox/models/call_create_response.rbs +468 -77
  77. data/sig/revox/models/call_export_params.rbs +2 -6
  78. data/sig/revox/models/call_phone_history_response.rbs +1 -10
  79. data/sig/revox/models/call_retrieve_response.rbs +468 -77
  80. data/sig/revox/models/call_search_params.rbs +2 -6
  81. data/sig/revox/models/call_search_response.rbs +468 -77
  82. data/sig/revox/models/campaign_create_params.rbs +5 -50
  83. data/sig/revox/models/campaign_create_response.rbs +62 -98
  84. data/sig/revox/models/campaign_get_rows_response.rbs +467 -73
  85. data/sig/revox/models/campaign_list_response.rbs +62 -98
  86. data/sig/revox/models/campaign_retrieve_response.rbs +62 -98
  87. data/sig/revox/models/campaign_statistics_response.rbs +55 -24
  88. data/sig/revox/models/campaign_update_params.rbs +1 -69
  89. data/sig/revox/models/campaign_update_response.rbs +62 -98
  90. data/sig/revox/models/phone_number_list_response.rbs +46 -54
  91. data/sig/revox/models/phone_number_update_response.rbs +46 -54
  92. data/sig/revox/models/voice_list_response.rbs +2 -1
  93. data/sig/revox/models/voice_preview_params.rbs +2 -1
  94. data/sig/revox/models/voice_retrieve_params.rbs +2 -1
  95. data/sig/revox/models.rbs +0 -2
  96. data/sig/revox/resources/assistants.rbs +4 -4
  97. data/sig/revox/resources/call.rbs +1 -1
  98. data/sig/revox/resources/campaigns.rbs +0 -12
  99. metadata +2 -8
  100. data/lib/revox/models/campaign_launch_params.rb +0 -20
  101. data/lib/revox/models/campaign_launch_response.rb +0 -2030
  102. data/rbi/revox/models/campaign_launch_params.rbi +0 -33
  103. data/rbi/revox/models/campaign_launch_response.rbi +0 -4170
  104. data/sig/revox/models/campaign_launch_params.rbs +0 -20
  105. data/sig/revox/models/campaign_launch_response.rbs +0 -1694
@@ -122,7 +122,6 @@ module Revox
122
122
  created_at: top,
123
123
  custom_tools: ::Array[Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::CustomTool]?,
124
124
  email_notification_address: String?,
125
- email_notification_language: Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::email_notification_language,
126
125
  email_notification_outcomes: ::Array[Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::email_notification_outcome]?,
127
126
  end_of_call_sentence: String?,
128
127
  first_sentence: String?,
@@ -138,6 +137,7 @@ module Revox
138
137
  name: String,
139
138
  organization_id: String,
140
139
  position: Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::Position?,
140
+ precall_lookup_url: String?,
141
141
  prompt: String,
142
142
  prompt_flow: Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::PromptFlow?,
143
143
  slack: Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::Slack?,
@@ -150,7 +150,7 @@ module Revox
150
150
  thinking_sound: Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::thinking_sound?,
151
151
  thinking_sound_probability: Float,
152
152
  thinking_sound_volume: Float,
153
- transfer_phone_number: String?,
153
+ transfer_destinations: ::Array[Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::TransferDestination]?,
154
154
  type: Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::type_,
155
155
  updated_at: top,
156
156
  voice: Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::Voice?,
@@ -161,6 +161,7 @@ module Revox
161
161
  zoho: Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::Zoho?,
162
162
  created_by: Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::CreatedBy?,
163
163
  faq_items: ::Array[Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::FaqItem],
164
+ is_inbound_receptionist: bool,
164
165
  is_realestate_assistant: bool,
165
166
  pending_faq_count: Float
166
167
  }
@@ -188,8 +189,6 @@ module Revox
188
189
 
189
190
  attr_accessor email_notification_address: String?
190
191
 
191
- attr_accessor email_notification_language: Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::email_notification_language
192
-
193
192
  attr_accessor email_notification_outcomes: ::Array[Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::email_notification_outcome]?
194
193
 
195
194
  attr_accessor end_of_call_sentence: String?
@@ -220,6 +219,8 @@ module Revox
220
219
 
221
220
  attr_accessor position: Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::Position?
222
221
 
222
+ attr_accessor precall_lookup_url: String?
223
+
223
224
  attr_accessor prompt: String
224
225
 
225
226
  attr_accessor prompt_flow: Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::PromptFlow?
@@ -244,7 +245,7 @@ module Revox
244
245
 
245
246
  attr_accessor thinking_sound_volume: Float
246
247
 
247
- attr_accessor transfer_phone_number: String?
248
+ attr_accessor transfer_destinations: ::Array[Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::TransferDestination]?
248
249
 
249
250
  attr_accessor type: Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::type_
250
251
 
@@ -270,6 +271,10 @@ module Revox
270
271
  ::Array[Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::FaqItem]
271
272
  ) -> ::Array[Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::FaqItem]
272
273
 
274
+ attr_reader is_inbound_receptionist: bool?
275
+
276
+ def is_inbound_receptionist=: (bool) -> bool
277
+
273
278
  attr_reader is_realestate_assistant: bool?
274
279
 
275
280
  def is_realestate_assistant=: (bool) -> bool
@@ -290,7 +295,6 @@ module Revox
290
295
  created_at: top,
291
296
  custom_tools: ::Array[Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::CustomTool]?,
292
297
  email_notification_address: String?,
293
- email_notification_language: Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::email_notification_language,
294
298
  email_notification_outcomes: ::Array[Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::email_notification_outcome]?,
295
299
  end_of_call_sentence: String?,
296
300
  first_sentence: String?,
@@ -306,6 +310,7 @@ module Revox
306
310
  name: String,
307
311
  organization_id: String,
308
312
  position: Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::Position?,
313
+ precall_lookup_url: String?,
309
314
  prompt: String,
310
315
  prompt_flow: Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::PromptFlow?,
311
316
  slack: Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::Slack?,
@@ -318,7 +323,7 @@ module Revox
318
323
  thinking_sound: Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::thinking_sound?,
319
324
  thinking_sound_probability: Float,
320
325
  thinking_sound_volume: Float,
321
- transfer_phone_number: String?,
326
+ transfer_destinations: ::Array[Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::TransferDestination]?,
322
327
  type: Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::type_,
323
328
  updated_at: top,
324
329
  voice: Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::Voice?,
@@ -329,6 +334,7 @@ module Revox
329
334
  zoho: Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::Zoho?,
330
335
  ?created_by: Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::CreatedBy?,
331
336
  ?faq_items: ::Array[Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::FaqItem],
337
+ ?is_inbound_receptionist: bool,
332
338
  ?is_realestate_assistant: bool,
333
339
  ?pending_faq_count: Float
334
340
  ) -> void
@@ -345,7 +351,6 @@ module Revox
345
351
  created_at: top,
346
352
  custom_tools: ::Array[Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::CustomTool]?,
347
353
  email_notification_address: String?,
348
- email_notification_language: Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::email_notification_language,
349
354
  email_notification_outcomes: ::Array[Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::email_notification_outcome]?,
350
355
  end_of_call_sentence: String?,
351
356
  first_sentence: String?,
@@ -361,6 +366,7 @@ module Revox
361
366
  name: String,
362
367
  organization_id: String,
363
368
  position: Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::Position?,
369
+ precall_lookup_url: String?,
364
370
  prompt: String,
365
371
  prompt_flow: Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::PromptFlow?,
366
372
  slack: Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::Slack?,
@@ -373,7 +379,7 @@ module Revox
373
379
  thinking_sound: Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::thinking_sound?,
374
380
  thinking_sound_probability: Float,
375
381
  thinking_sound_volume: Float,
376
- transfer_phone_number: String?,
382
+ transfer_destinations: ::Array[Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::TransferDestination]?,
377
383
  type: Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::type_,
378
384
  updated_at: top,
379
385
  voice: Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::Voice?,
@@ -384,6 +390,7 @@ module Revox
384
390
  zoho: Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::Zoho?,
385
391
  created_by: Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::CreatedBy?,
386
392
  faq_items: ::Array[Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::FaqItem],
393
+ is_inbound_receptionist: bool,
387
394
  is_realestate_assistant: bool,
388
395
  pending_faq_count: Float
389
396
  }
@@ -393,9 +400,6 @@ module Revox
393
400
  | :interested
394
401
  | :completed
395
402
  | :requested_callback_later
396
- | :requested_callback_new_number
397
- | :do_not_contact
398
- | :ai_averse
399
403
  | :none
400
404
 
401
405
  module AfterCallSMSOutcome
@@ -405,9 +409,6 @@ module Revox
405
409
  INTERESTED: :interested
406
410
  COMPLETED: :completed
407
411
  REQUESTED_CALLBACK_LATER: :requested_callback_later
408
- REQUESTED_CALLBACK_NEW_NUMBER: :requested_callback_new_number
409
- DO_NOT_CONTACT: :do_not_contact
410
- AI_AVERSE: :ai_averse
411
412
  NONE: :none
412
413
 
413
414
  def self?.values: -> ::Array[Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::after_call_sms_outcome]
@@ -672,25 +673,11 @@ module Revox
672
673
  end
673
674
  end
674
675
 
675
- type email_notification_language = :en | :fr
676
-
677
- module EmailNotificationLanguage
678
- extend Revox::Internal::Type::Enum
679
-
680
- EN: :en
681
- FR: :fr
682
-
683
- def self?.values: -> ::Array[Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::email_notification_language]
684
- end
685
-
686
676
  type email_notification_outcome =
687
677
  :not_interested
688
678
  | :interested
689
679
  | :completed
690
680
  | :requested_callback_later
691
- | :requested_callback_new_number
692
- | :do_not_contact
693
- | :ai_averse
694
681
  | :none
695
682
 
696
683
  module EmailNotificationOutcome
@@ -700,9 +687,6 @@ module Revox
700
687
  INTERESTED: :interested
701
688
  COMPLETED: :completed
702
689
  REQUESTED_CALLBACK_LATER: :requested_callback_later
703
- REQUESTED_CALLBACK_NEW_NUMBER: :requested_callback_new_number
704
- DO_NOT_CONTACT: :do_not_contact
705
- AI_AVERSE: :ai_averse
706
690
  NONE: :none
707
691
 
708
692
  def self?.values: -> ::Array[Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::email_notification_outcome]
@@ -990,48 +974,52 @@ module Revox
990
974
 
991
975
  type slack =
992
976
  {
993
- channel_id: String,
977
+ channels: ::Array[Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::Slack::Channel],
994
978
  connection_id: String,
995
979
  outcomes: ::Array[Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::Slack::outcome],
996
- channel_name: String?,
997
980
  template: String?
998
981
  }
999
982
 
1000
983
  class Slack < Revox::Internal::Type::BaseModel
1001
- attr_accessor channel_id: String
984
+ attr_accessor channels: ::Array[Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::Slack::Channel]
1002
985
 
1003
986
  attr_accessor connection_id: String
1004
987
 
1005
988
  attr_accessor outcomes: ::Array[Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::Slack::outcome]
1006
989
 
1007
- attr_accessor channel_name: String?
1008
-
1009
990
  attr_accessor template: String?
1010
991
 
1011
992
  def initialize: (
1012
- channel_id: String,
993
+ channels: ::Array[Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::Slack::Channel],
1013
994
  connection_id: String,
1014
995
  outcomes: ::Array[Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::Slack::outcome],
1015
- ?channel_name: String?,
1016
996
  ?template: String?
1017
997
  ) -> void
1018
998
 
1019
999
  def to_hash: -> {
1020
- channel_id: String,
1000
+ channels: ::Array[Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::Slack::Channel],
1021
1001
  connection_id: String,
1022
1002
  outcomes: ::Array[Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::Slack::outcome],
1023
- channel_name: String?,
1024
1003
  template: String?
1025
1004
  }
1026
1005
 
1006
+ type channel = { id: String, name: String? }
1007
+
1008
+ class Channel < Revox::Internal::Type::BaseModel
1009
+ attr_accessor id: String
1010
+
1011
+ attr_accessor name: String?
1012
+
1013
+ def initialize: (id: String, ?name: String?) -> void
1014
+
1015
+ def to_hash: -> { id: String, name: String? }
1016
+ end
1017
+
1027
1018
  type outcome =
1028
1019
  :not_interested
1029
1020
  | :interested
1030
1021
  | :completed
1031
1022
  | :requested_callback_later
1032
- | :requested_callback_new_number
1033
- | :do_not_contact
1034
- | :ai_averse
1035
1023
  | :none
1036
1024
 
1037
1025
  module Outcome
@@ -1041,9 +1029,6 @@ module Revox
1041
1029
  INTERESTED: :interested
1042
1030
  COMPLETED: :completed
1043
1031
  REQUESTED_CALLBACK_LATER: :requested_callback_later
1044
- REQUESTED_CALLBACK_NEW_NUMBER: :requested_callback_new_number
1045
- DO_NOT_CONTACT: :do_not_contact
1046
- AI_AVERSE: :ai_averse
1047
1032
  NONE: :none
1048
1033
 
1049
1034
  def self?.values: -> ::Array[Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::Slack::outcome]
@@ -1175,6 +1160,18 @@ module Revox
1175
1160
  def self?.values: -> ::Array[Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::thinking_sound]
1176
1161
  end
1177
1162
 
1163
+ type transfer_destination = { label: String, phone_number: String }
1164
+
1165
+ class TransferDestination < Revox::Internal::Type::BaseModel
1166
+ attr_accessor label: String
1167
+
1168
+ attr_accessor phone_number: String
1169
+
1170
+ def initialize: (label: String, phone_number: String) -> void
1171
+
1172
+ def to_hash: -> { label: String, phone_number: String }
1173
+ end
1174
+
1178
1175
  type type_ = :standalone | :"multi-step" | :"sub-assistant"
1179
1176
 
1180
1177
  module Type
@@ -1231,13 +1228,14 @@ module Revox
1231
1228
  volume: Float
1232
1229
  }
1233
1230
 
1234
- type provider = :cartesia | :elevenlabs
1231
+ type provider = :cartesia | :elevenlabs | :gradium
1235
1232
 
1236
1233
  module Provider
1237
1234
  extend Revox::Internal::Type::Enum
1238
1235
 
1239
1236
  CARTESIA: :cartesia
1240
1237
  ELEVENLABS: :elevenlabs
1238
+ GRADIUM: :gradium
1241
1239
 
1242
1240
  def self?.values: -> ::Array[Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::Voice::provider]
1243
1241
  end
@@ -1312,9 +1310,6 @@ module Revox
1312
1310
  | :interested
1313
1311
  | :completed
1314
1312
  | :requested_callback_later
1315
- | :requested_callback_new_number
1316
- | :do_not_contact
1317
- | :ai_averse
1318
1313
  | :none
1319
1314
 
1320
1315
  module Outcome
@@ -1324,9 +1319,6 @@ module Revox
1324
1319
  INTERESTED: :interested
1325
1320
  COMPLETED: :completed
1326
1321
  REQUESTED_CALLBACK_LATER: :requested_callback_later
1327
- REQUESTED_CALLBACK_NEW_NUMBER: :requested_callback_new_number
1328
- DO_NOT_CONTACT: :do_not_contact
1329
- AI_AVERSE: :ai_averse
1330
1322
  NONE: :none
1331
1323
 
1332
1324
  def self?.values: -> ::Array[Revox::Models::PhoneNumberListResponse::PhoneNumber::InboundAssistant::Zoho::outcome]
@@ -120,7 +120,6 @@ module Revox
120
120
  created_at: top,
121
121
  custom_tools: ::Array[Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::CustomTool]?,
122
122
  email_notification_address: String?,
123
- email_notification_language: Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::email_notification_language,
124
123
  email_notification_outcomes: ::Array[Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::email_notification_outcome]?,
125
124
  end_of_call_sentence: String?,
126
125
  first_sentence: String?,
@@ -136,6 +135,7 @@ module Revox
136
135
  name: String,
137
136
  organization_id: String,
138
137
  position: Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::Position?,
138
+ precall_lookup_url: String?,
139
139
  prompt: String,
140
140
  prompt_flow: Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::PromptFlow?,
141
141
  slack: Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::Slack?,
@@ -148,7 +148,7 @@ module Revox
148
148
  thinking_sound: Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::thinking_sound?,
149
149
  thinking_sound_probability: Float,
150
150
  thinking_sound_volume: Float,
151
- transfer_phone_number: String?,
151
+ transfer_destinations: ::Array[Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::TransferDestination]?,
152
152
  type: Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::type_,
153
153
  updated_at: top,
154
154
  voice: Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::Voice?,
@@ -159,6 +159,7 @@ module Revox
159
159
  zoho: Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::Zoho?,
160
160
  created_by: Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::CreatedBy?,
161
161
  faq_items: ::Array[Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::FaqItem],
162
+ is_inbound_receptionist: bool,
162
163
  is_realestate_assistant: bool,
163
164
  pending_faq_count: Float
164
165
  }
@@ -186,8 +187,6 @@ module Revox
186
187
 
187
188
  attr_accessor email_notification_address: String?
188
189
 
189
- attr_accessor email_notification_language: Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::email_notification_language
190
-
191
190
  attr_accessor email_notification_outcomes: ::Array[Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::email_notification_outcome]?
192
191
 
193
192
  attr_accessor end_of_call_sentence: String?
@@ -218,6 +217,8 @@ module Revox
218
217
 
219
218
  attr_accessor position: Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::Position?
220
219
 
220
+ attr_accessor precall_lookup_url: String?
221
+
221
222
  attr_accessor prompt: String
222
223
 
223
224
  attr_accessor prompt_flow: Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::PromptFlow?
@@ -242,7 +243,7 @@ module Revox
242
243
 
243
244
  attr_accessor thinking_sound_volume: Float
244
245
 
245
- attr_accessor transfer_phone_number: String?
246
+ attr_accessor transfer_destinations: ::Array[Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::TransferDestination]?
246
247
 
247
248
  attr_accessor type: Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::type_
248
249
 
@@ -268,6 +269,10 @@ module Revox
268
269
  ::Array[Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::FaqItem]
269
270
  ) -> ::Array[Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::FaqItem]
270
271
 
272
+ attr_reader is_inbound_receptionist: bool?
273
+
274
+ def is_inbound_receptionist=: (bool) -> bool
275
+
271
276
  attr_reader is_realestate_assistant: bool?
272
277
 
273
278
  def is_realestate_assistant=: (bool) -> bool
@@ -288,7 +293,6 @@ module Revox
288
293
  created_at: top,
289
294
  custom_tools: ::Array[Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::CustomTool]?,
290
295
  email_notification_address: String?,
291
- email_notification_language: Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::email_notification_language,
292
296
  email_notification_outcomes: ::Array[Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::email_notification_outcome]?,
293
297
  end_of_call_sentence: String?,
294
298
  first_sentence: String?,
@@ -304,6 +308,7 @@ module Revox
304
308
  name: String,
305
309
  organization_id: String,
306
310
  position: Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::Position?,
311
+ precall_lookup_url: String?,
307
312
  prompt: String,
308
313
  prompt_flow: Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::PromptFlow?,
309
314
  slack: Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::Slack?,
@@ -316,7 +321,7 @@ module Revox
316
321
  thinking_sound: Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::thinking_sound?,
317
322
  thinking_sound_probability: Float,
318
323
  thinking_sound_volume: Float,
319
- transfer_phone_number: String?,
324
+ transfer_destinations: ::Array[Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::TransferDestination]?,
320
325
  type: Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::type_,
321
326
  updated_at: top,
322
327
  voice: Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::Voice?,
@@ -327,6 +332,7 @@ module Revox
327
332
  zoho: Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::Zoho?,
328
333
  ?created_by: Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::CreatedBy?,
329
334
  ?faq_items: ::Array[Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::FaqItem],
335
+ ?is_inbound_receptionist: bool,
330
336
  ?is_realestate_assistant: bool,
331
337
  ?pending_faq_count: Float
332
338
  ) -> void
@@ -343,7 +349,6 @@ module Revox
343
349
  created_at: top,
344
350
  custom_tools: ::Array[Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::CustomTool]?,
345
351
  email_notification_address: String?,
346
- email_notification_language: Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::email_notification_language,
347
352
  email_notification_outcomes: ::Array[Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::email_notification_outcome]?,
348
353
  end_of_call_sentence: String?,
349
354
  first_sentence: String?,
@@ -359,6 +364,7 @@ module Revox
359
364
  name: String,
360
365
  organization_id: String,
361
366
  position: Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::Position?,
367
+ precall_lookup_url: String?,
362
368
  prompt: String,
363
369
  prompt_flow: Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::PromptFlow?,
364
370
  slack: Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::Slack?,
@@ -371,7 +377,7 @@ module Revox
371
377
  thinking_sound: Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::thinking_sound?,
372
378
  thinking_sound_probability: Float,
373
379
  thinking_sound_volume: Float,
374
- transfer_phone_number: String?,
380
+ transfer_destinations: ::Array[Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::TransferDestination]?,
375
381
  type: Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::type_,
376
382
  updated_at: top,
377
383
  voice: Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::Voice?,
@@ -382,6 +388,7 @@ module Revox
382
388
  zoho: Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::Zoho?,
383
389
  created_by: Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::CreatedBy?,
384
390
  faq_items: ::Array[Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::FaqItem],
391
+ is_inbound_receptionist: bool,
385
392
  is_realestate_assistant: bool,
386
393
  pending_faq_count: Float
387
394
  }
@@ -391,9 +398,6 @@ module Revox
391
398
  | :interested
392
399
  | :completed
393
400
  | :requested_callback_later
394
- | :requested_callback_new_number
395
- | :do_not_contact
396
- | :ai_averse
397
401
  | :none
398
402
 
399
403
  module AfterCallSMSOutcome
@@ -403,9 +407,6 @@ module Revox
403
407
  INTERESTED: :interested
404
408
  COMPLETED: :completed
405
409
  REQUESTED_CALLBACK_LATER: :requested_callback_later
406
- REQUESTED_CALLBACK_NEW_NUMBER: :requested_callback_new_number
407
- DO_NOT_CONTACT: :do_not_contact
408
- AI_AVERSE: :ai_averse
409
410
  NONE: :none
410
411
 
411
412
  def self?.values: -> ::Array[Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::after_call_sms_outcome]
@@ -670,25 +671,11 @@ module Revox
670
671
  end
671
672
  end
672
673
 
673
- type email_notification_language = :en | :fr
674
-
675
- module EmailNotificationLanguage
676
- extend Revox::Internal::Type::Enum
677
-
678
- EN: :en
679
- FR: :fr
680
-
681
- def self?.values: -> ::Array[Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::email_notification_language]
682
- end
683
-
684
674
  type email_notification_outcome =
685
675
  :not_interested
686
676
  | :interested
687
677
  | :completed
688
678
  | :requested_callback_later
689
- | :requested_callback_new_number
690
- | :do_not_contact
691
- | :ai_averse
692
679
  | :none
693
680
 
694
681
  module EmailNotificationOutcome
@@ -698,9 +685,6 @@ module Revox
698
685
  INTERESTED: :interested
699
686
  COMPLETED: :completed
700
687
  REQUESTED_CALLBACK_LATER: :requested_callback_later
701
- REQUESTED_CALLBACK_NEW_NUMBER: :requested_callback_new_number
702
- DO_NOT_CONTACT: :do_not_contact
703
- AI_AVERSE: :ai_averse
704
688
  NONE: :none
705
689
 
706
690
  def self?.values: -> ::Array[Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::email_notification_outcome]
@@ -988,48 +972,52 @@ module Revox
988
972
 
989
973
  type slack =
990
974
  {
991
- channel_id: String,
975
+ channels: ::Array[Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::Slack::Channel],
992
976
  connection_id: String,
993
977
  outcomes: ::Array[Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::Slack::outcome],
994
- channel_name: String?,
995
978
  template: String?
996
979
  }
997
980
 
998
981
  class Slack < Revox::Internal::Type::BaseModel
999
- attr_accessor channel_id: String
982
+ attr_accessor channels: ::Array[Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::Slack::Channel]
1000
983
 
1001
984
  attr_accessor connection_id: String
1002
985
 
1003
986
  attr_accessor outcomes: ::Array[Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::Slack::outcome]
1004
987
 
1005
- attr_accessor channel_name: String?
1006
-
1007
988
  attr_accessor template: String?
1008
989
 
1009
990
  def initialize: (
1010
- channel_id: String,
991
+ channels: ::Array[Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::Slack::Channel],
1011
992
  connection_id: String,
1012
993
  outcomes: ::Array[Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::Slack::outcome],
1013
- ?channel_name: String?,
1014
994
  ?template: String?
1015
995
  ) -> void
1016
996
 
1017
997
  def to_hash: -> {
1018
- channel_id: String,
998
+ channels: ::Array[Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::Slack::Channel],
1019
999
  connection_id: String,
1020
1000
  outcomes: ::Array[Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::Slack::outcome],
1021
- channel_name: String?,
1022
1001
  template: String?
1023
1002
  }
1024
1003
 
1004
+ type channel = { id: String, name: String? }
1005
+
1006
+ class Channel < Revox::Internal::Type::BaseModel
1007
+ attr_accessor id: String
1008
+
1009
+ attr_accessor name: String?
1010
+
1011
+ def initialize: (id: String, ?name: String?) -> void
1012
+
1013
+ def to_hash: -> { id: String, name: String? }
1014
+ end
1015
+
1025
1016
  type outcome =
1026
1017
  :not_interested
1027
1018
  | :interested
1028
1019
  | :completed
1029
1020
  | :requested_callback_later
1030
- | :requested_callback_new_number
1031
- | :do_not_contact
1032
- | :ai_averse
1033
1021
  | :none
1034
1022
 
1035
1023
  module Outcome
@@ -1039,9 +1027,6 @@ module Revox
1039
1027
  INTERESTED: :interested
1040
1028
  COMPLETED: :completed
1041
1029
  REQUESTED_CALLBACK_LATER: :requested_callback_later
1042
- REQUESTED_CALLBACK_NEW_NUMBER: :requested_callback_new_number
1043
- DO_NOT_CONTACT: :do_not_contact
1044
- AI_AVERSE: :ai_averse
1045
1030
  NONE: :none
1046
1031
 
1047
1032
  def self?.values: -> ::Array[Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::Slack::outcome]
@@ -1173,6 +1158,18 @@ module Revox
1173
1158
  def self?.values: -> ::Array[Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::thinking_sound]
1174
1159
  end
1175
1160
 
1161
+ type transfer_destination = { label: String, phone_number: String }
1162
+
1163
+ class TransferDestination < Revox::Internal::Type::BaseModel
1164
+ attr_accessor label: String
1165
+
1166
+ attr_accessor phone_number: String
1167
+
1168
+ def initialize: (label: String, phone_number: String) -> void
1169
+
1170
+ def to_hash: -> { label: String, phone_number: String }
1171
+ end
1172
+
1176
1173
  type type_ = :standalone | :"multi-step" | :"sub-assistant"
1177
1174
 
1178
1175
  module Type
@@ -1229,13 +1226,14 @@ module Revox
1229
1226
  volume: Float
1230
1227
  }
1231
1228
 
1232
- type provider = :cartesia | :elevenlabs
1229
+ type provider = :cartesia | :elevenlabs | :gradium
1233
1230
 
1234
1231
  module Provider
1235
1232
  extend Revox::Internal::Type::Enum
1236
1233
 
1237
1234
  CARTESIA: :cartesia
1238
1235
  ELEVENLABS: :elevenlabs
1236
+ GRADIUM: :gradium
1239
1237
 
1240
1238
  def self?.values: -> ::Array[Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::Voice::provider]
1241
1239
  end
@@ -1310,9 +1308,6 @@ module Revox
1310
1308
  | :interested
1311
1309
  | :completed
1312
1310
  | :requested_callback_later
1313
- | :requested_callback_new_number
1314
- | :do_not_contact
1315
- | :ai_averse
1316
1311
  | :none
1317
1312
 
1318
1313
  module Outcome
@@ -1322,9 +1317,6 @@ module Revox
1322
1317
  INTERESTED: :interested
1323
1318
  COMPLETED: :completed
1324
1319
  REQUESTED_CALLBACK_LATER: :requested_callback_later
1325
- REQUESTED_CALLBACK_NEW_NUMBER: :requested_callback_new_number
1326
- DO_NOT_CONTACT: :do_not_contact
1327
- AI_AVERSE: :ai_averse
1328
1320
  NONE: :none
1329
1321
 
1330
1322
  def self?.values: -> ::Array[Revox::Models::PhoneNumberUpdateResponse::PhoneNumber::InboundAssistant::Zoho::outcome]
@@ -97,13 +97,14 @@ module Revox
97
97
  def self?.values: -> ::Array[Revox::Models::VoiceListResponse::Voice::language]
98
98
  end
99
99
 
100
- type provider = :cartesia | :elevenlabs
100
+ type provider = :cartesia | :elevenlabs | :gradium
101
101
 
102
102
  module Provider
103
103
  extend Revox::Internal::Type::Enum
104
104
 
105
105
  CARTESIA: :cartesia
106
106
  ELEVENLABS: :elevenlabs
107
+ GRADIUM: :gradium
107
108
 
108
109
  def self?.values: -> ::Array[Revox::Models::VoiceListResponse::Voice::provider]
109
110
  end
@@ -57,13 +57,14 @@ module Revox
57
57
  request_options: Revox::RequestOptions
58
58
  }
59
59
 
60
- type provider = :cartesia | :elevenlabs
60
+ type provider = :cartesia | :elevenlabs | :gradium
61
61
 
62
62
  module Provider
63
63
  extend Revox::Internal::Type::Enum
64
64
 
65
65
  CARTESIA: :cartesia
66
66
  ELEVENLABS: :elevenlabs
67
+ GRADIUM: :gradium
67
68
 
68
69
  def self?.values: -> ::Array[Revox::Models::VoicePreviewParams::provider]
69
70
  end
@@ -24,13 +24,14 @@ module Revox
24
24
  request_options: Revox::RequestOptions
25
25
  }
26
26
 
27
- type provider = :cartesia | :elevenlabs
27
+ type provider = :cartesia | :elevenlabs | :gradium
28
28
 
29
29
  module Provider
30
30
  extend Revox::Internal::Type::Enum
31
31
 
32
32
  CARTESIA: :cartesia
33
33
  ELEVENLABS: :elevenlabs
34
+ GRADIUM: :gradium
34
35
 
35
36
  def self?.values: -> ::Array[Revox::Models::VoiceRetrieveParams::provider]
36
37
  end