revox 0.3.0 → 0.5.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 (101) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +33 -0
  3. data/README.md +40 -40
  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_launch_params.rb +182 -1
  22. data/lib/revox/models/campaign_launch_response.rb +3447 -1574
  23. data/lib/revox/models/campaign_list_response.rb +108 -119
  24. data/lib/revox/models/campaign_retrieve_response.rb +108 -119
  25. data/lib/revox/models/campaign_statistics_response.rb +51 -23
  26. data/lib/revox/models/campaign_update_params.rb +9 -78
  27. data/lib/revox/models/campaign_update_response.rb +108 -119
  28. data/lib/revox/models/phone_number_list_response.rb +87 -65
  29. data/lib/revox/models/phone_number_update_response.rb +87 -65
  30. data/lib/revox/models/voice_list_response.rb +1 -0
  31. data/lib/revox/models/voice_preview_params.rb +1 -0
  32. data/lib/revox/models/voice_retrieve_params.rb +1 -0
  33. data/lib/revox/resources/assistants.rb +10 -10
  34. data/lib/revox/resources/call.rb +4 -4
  35. data/lib/revox/resources/campaigns.rb +35 -31
  36. data/lib/revox/version.rb +1 -1
  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_launch_params.rbi +511 -2
  55. data/rbi/revox/models/campaign_launch_response.rbi +6882 -3163
  56. data/rbi/revox/models/campaign_list_response.rbi +188 -262
  57. data/rbi/revox/models/campaign_retrieve_response.rbi +188 -266
  58. data/rbi/revox/models/campaign_statistics_response.rbi +94 -36
  59. data/rbi/revox/models/campaign_update_params.rbi +10 -128
  60. data/rbi/revox/models/campaign_update_response.rbi +188 -266
  61. data/rbi/revox/models/phone_number_list_response.rbi +157 -147
  62. data/rbi/revox/models/phone_number_update_response.rbi +157 -147
  63. data/rbi/revox/models/voice_list_response.rbi +5 -0
  64. data/rbi/revox/models/voice_preview_params.rbi +2 -0
  65. data/rbi/revox/models/voice_retrieve_params.rbi +2 -0
  66. data/rbi/revox/resources/assistants.rbi +40 -22
  67. data/rbi/revox/resources/call.rbi +7 -4
  68. data/rbi/revox/resources/campaigns.rbi +30 -36
  69. data/sig/revox/models/assistant_clone_response.rbs +46 -54
  70. data/sig/revox/models/assistant_create_params.rbs +39 -58
  71. data/sig/revox/models/assistant_create_response.rbs +46 -54
  72. data/sig/revox/models/assistant_list_response.rbs +46 -54
  73. data/sig/revox/models/assistant_retrieve_response.rbs +46 -54
  74. data/sig/revox/models/assistant_update_params.rbs +39 -58
  75. data/sig/revox/models/assistant_update_response.rbs +46 -54
  76. data/sig/revox/models/call_create_params.rbs +50 -71
  77. data/sig/revox/models/call_create_response.rbs +468 -77
  78. data/sig/revox/models/call_export_params.rbs +2 -6
  79. data/sig/revox/models/call_phone_history_response.rbs +1 -10
  80. data/sig/revox/models/call_retrieve_response.rbs +468 -77
  81. data/sig/revox/models/call_search_params.rbs +2 -6
  82. data/sig/revox/models/call_search_response.rbs +468 -77
  83. data/sig/revox/models/campaign_create_params.rbs +5 -50
  84. data/sig/revox/models/campaign_create_response.rbs +62 -98
  85. data/sig/revox/models/campaign_get_rows_response.rbs +467 -73
  86. data/sig/revox/models/campaign_launch_params.rbs +215 -2
  87. data/sig/revox/models/campaign_launch_response.rbs +2721 -1219
  88. data/sig/revox/models/campaign_list_response.rbs +62 -98
  89. data/sig/revox/models/campaign_retrieve_response.rbs +62 -98
  90. data/sig/revox/models/campaign_statistics_response.rbs +55 -24
  91. data/sig/revox/models/campaign_update_params.rbs +1 -69
  92. data/sig/revox/models/campaign_update_response.rbs +62 -98
  93. data/sig/revox/models/phone_number_list_response.rbs +46 -54
  94. data/sig/revox/models/phone_number_update_response.rbs +46 -54
  95. data/sig/revox/models/voice_list_response.rbs +2 -1
  96. data/sig/revox/models/voice_preview_params.rbs +2 -1
  97. data/sig/revox/models/voice_retrieve_params.rbs +2 -1
  98. data/sig/revox/resources/assistants.rbs +4 -4
  99. data/sig/revox/resources/call.rbs +1 -1
  100. data/sig/revox/resources/campaigns.rbs +3 -7
  101. metadata +2 -2
@@ -1,7 +1,13 @@
1
1
  module Revox
2
2
  module Models
3
3
  type campaign_launch_params =
4
- { id: String } & Revox::Internal::Type::request_parameters
4
+ {
5
+ id: String,
6
+ mode: Revox::Models::CampaignLaunchParams::mode,
7
+ selection: Revox::CampaignLaunchParams::Selection,
8
+ scheduled_at: Time
9
+ }
10
+ & Revox::Internal::Type::request_parameters
5
11
 
6
12
  class CampaignLaunchParams < Revox::Internal::Type::BaseModel
7
13
  extend Revox::Internal::Type::RequestParameters::Converter
@@ -9,12 +15,219 @@ module Revox
9
15
 
10
16
  attr_accessor id: String
11
17
 
18
+ attr_accessor mode: Revox::Models::CampaignLaunchParams::mode
19
+
20
+ attr_accessor selection: Revox::CampaignLaunchParams::Selection
21
+
22
+ attr_reader scheduled_at: Time?
23
+
24
+ def scheduled_at=: (Time) -> Time
25
+
12
26
  def initialize: (
13
27
  id: String,
28
+ mode: Revox::Models::CampaignLaunchParams::mode,
29
+ selection: Revox::CampaignLaunchParams::Selection,
30
+ ?scheduled_at: Time,
14
31
  ?request_options: Revox::request_opts
15
32
  ) -> void
16
33
 
17
- def to_hash: -> { id: String, request_options: Revox::RequestOptions }
34
+ def to_hash: -> {
35
+ id: String,
36
+ mode: Revox::Models::CampaignLaunchParams::mode,
37
+ selection: Revox::CampaignLaunchParams::Selection,
38
+ scheduled_at: Time,
39
+ request_options: Revox::RequestOptions
40
+ }
41
+
42
+ type mode = :ai_first | :speed_dial
43
+
44
+ module Mode
45
+ extend Revox::Internal::Type::Enum
46
+
47
+ AI_FIRST: :ai_first
48
+ SPEED_DIAL: :speed_dial
49
+
50
+ def self?.values: -> ::Array[Revox::Models::CampaignLaunchParams::mode]
51
+ end
52
+
53
+ type selection =
54
+ {
55
+ filters: Revox::CampaignLaunchParams::Selection::Filters,
56
+ rows: Revox::CampaignLaunchParams::Selection::Rows
57
+ }
58
+
59
+ class Selection < Revox::Internal::Type::BaseModel
60
+ attr_accessor filters: Revox::CampaignLaunchParams::Selection::Filters
61
+
62
+ attr_accessor rows: Revox::CampaignLaunchParams::Selection::Rows
63
+
64
+ def initialize: (
65
+ filters: Revox::CampaignLaunchParams::Selection::Filters,
66
+ rows: Revox::CampaignLaunchParams::Selection::Rows
67
+ ) -> void
68
+
69
+ def to_hash: -> {
70
+ filters: Revox::CampaignLaunchParams::Selection::Filters,
71
+ rows: Revox::CampaignLaunchParams::Selection::Rows
72
+ }
73
+
74
+ type filters =
75
+ {
76
+ assignee_ids: ::Array[String],
77
+ directions: ::Array[Revox::Models::CampaignLaunchParams::Selection::Filters::direction],
78
+ outcomes: ::Array[Revox::Models::CampaignLaunchParams::Selection::Filters::outcome],
79
+ results: ::Array[Revox::Models::CampaignLaunchParams::Selection::Filters::result],
80
+ statuses: ::Array[Revox::Models::CampaignLaunchParams::Selection::Filters::status],
81
+ query: String
82
+ }
83
+
84
+ class Filters < Revox::Internal::Type::BaseModel
85
+ attr_accessor assignee_ids: ::Array[String]
86
+
87
+ attr_accessor directions: ::Array[Revox::Models::CampaignLaunchParams::Selection::Filters::direction]
88
+
89
+ attr_accessor outcomes: ::Array[Revox::Models::CampaignLaunchParams::Selection::Filters::outcome]
90
+
91
+ attr_accessor results: ::Array[Revox::Models::CampaignLaunchParams::Selection::Filters::result]
92
+
93
+ attr_accessor statuses: ::Array[Revox::Models::CampaignLaunchParams::Selection::Filters::status]
94
+
95
+ attr_reader query: String?
96
+
97
+ def query=: (String) -> String
98
+
99
+ def initialize: (
100
+ assignee_ids: ::Array[String],
101
+ directions: ::Array[Revox::Models::CampaignLaunchParams::Selection::Filters::direction],
102
+ outcomes: ::Array[Revox::Models::CampaignLaunchParams::Selection::Filters::outcome],
103
+ results: ::Array[Revox::Models::CampaignLaunchParams::Selection::Filters::result],
104
+ statuses: ::Array[Revox::Models::CampaignLaunchParams::Selection::Filters::status],
105
+ ?query: String
106
+ ) -> void
107
+
108
+ def to_hash: -> {
109
+ assignee_ids: ::Array[String],
110
+ directions: ::Array[Revox::Models::CampaignLaunchParams::Selection::Filters::direction],
111
+ outcomes: ::Array[Revox::Models::CampaignLaunchParams::Selection::Filters::outcome],
112
+ results: ::Array[Revox::Models::CampaignLaunchParams::Selection::Filters::result],
113
+ statuses: ::Array[Revox::Models::CampaignLaunchParams::Selection::Filters::status],
114
+ query: String
115
+ }
116
+
117
+ type direction = :inbound | :outbound
118
+
119
+ module Direction
120
+ extend Revox::Internal::Type::Enum
121
+
122
+ INBOUND: :inbound
123
+ OUTBOUND: :outbound
124
+
125
+ def self?.values: -> ::Array[Revox::Models::CampaignLaunchParams::Selection::Filters::direction]
126
+ end
127
+
128
+ type outcome =
129
+ :not_interested
130
+ | :interested
131
+ | :completed
132
+ | :requested_callback_later
133
+ | :none
134
+
135
+ module Outcome
136
+ extend Revox::Internal::Type::Enum
137
+
138
+ NOT_INTERESTED: :not_interested
139
+ INTERESTED: :interested
140
+ COMPLETED: :completed
141
+ REQUESTED_CALLBACK_LATER: :requested_callback_later
142
+ NONE: :none
143
+
144
+ def self?.values: -> ::Array[Revox::Models::CampaignLaunchParams::Selection::Filters::outcome]
145
+ end
146
+
147
+ type result =
148
+ :IVR
149
+ | :voicemail
150
+ | :human
151
+ | :unknown
152
+ | :"ios-screening-filter"
153
+ | :none
154
+
155
+ module Result
156
+ extend Revox::Internal::Type::Enum
157
+
158
+ IVR: :IVR
159
+ VOICEMAIL: :voicemail
160
+ HUMAN: :human
161
+ UNKNOWN: :unknown
162
+ IOS_SCREENING_FILTER: :"ios-screening-filter"
163
+ NONE: :none
164
+
165
+ def self?.values: -> ::Array[Revox::Models::CampaignLaunchParams::Selection::Filters::result]
166
+ end
167
+
168
+ type status =
169
+ :initializing
170
+ | :queued_for_calling
171
+ | :calling
172
+ | :post_processing
173
+ | :not_launched
174
+ | :scheduled
175
+ | :paused
176
+ | :completed
177
+ | :cancelled
178
+ | :errored
179
+
180
+ module Status
181
+ extend Revox::Internal::Type::Enum
182
+
183
+ INITIALIZING: :initializing
184
+ QUEUED_FOR_CALLING: :queued_for_calling
185
+ CALLING: :calling
186
+ POST_PROCESSING: :post_processing
187
+ NOT_LAUNCHED: :not_launched
188
+ SCHEDULED: :scheduled
189
+ PAUSED: :paused
190
+ COMPLETED: :completed
191
+ CANCELLED: :cancelled
192
+ ERRORED: :errored
193
+
194
+ def self?.values: -> ::Array[Revox::Models::CampaignLaunchParams::Selection::Filters::status]
195
+ end
196
+ end
197
+
198
+ type rows =
199
+ {
200
+ call_ids: ::Array[String],
201
+ mode: Revox::Models::CampaignLaunchParams::Selection::Rows::mode
202
+ }
203
+
204
+ class Rows < Revox::Internal::Type::BaseModel
205
+ attr_accessor call_ids: ::Array[String]
206
+
207
+ attr_accessor mode: Revox::Models::CampaignLaunchParams::Selection::Rows::mode
208
+
209
+ def initialize: (
210
+ call_ids: ::Array[String],
211
+ mode: Revox::Models::CampaignLaunchParams::Selection::Rows::mode
212
+ ) -> void
213
+
214
+ def to_hash: -> {
215
+ call_ids: ::Array[String],
216
+ mode: Revox::Models::CampaignLaunchParams::Selection::Rows::mode
217
+ }
218
+
219
+ type mode = :all_except | :only
220
+
221
+ module Mode
222
+ extend Revox::Internal::Type::Enum
223
+
224
+ ALL_EXCEPT: :all_except
225
+ ONLY: :only
226
+
227
+ def self?.values: -> ::Array[Revox::Models::CampaignLaunchParams::Selection::Rows::mode]
228
+ end
229
+ end
230
+ end
18
231
  end
19
232
  end
20
233
  end