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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +33 -0
- data/README.md +40 -40
- data/lib/revox/models/assistant_clone_response.rb +87 -65
- data/lib/revox/models/assistant_create_params.rb +90 -66
- data/lib/revox/models/assistant_create_response.rb +87 -65
- data/lib/revox/models/assistant_list_response.rb +87 -65
- data/lib/revox/models/assistant_retrieve_response.rb +86 -65
- data/lib/revox/models/assistant_update_params.rb +90 -66
- data/lib/revox/models/assistant_update_response.rb +87 -65
- data/lib/revox/models/call_create_params.rb +117 -90
- data/lib/revox/models/call_create_response.rb +670 -90
- data/lib/revox/models/call_export_params.rb +1 -3
- data/lib/revox/models/call_phone_history_response.rb +0 -3
- data/lib/revox/models/call_retrieve_response.rb +671 -90
- data/lib/revox/models/call_search_params.rb +1 -3
- data/lib/revox/models/call_search_response.rb +670 -90
- data/lib/revox/models/campaign_create_params.rb +7 -57
- data/lib/revox/models/campaign_create_response.rb +108 -119
- data/lib/revox/models/campaign_get_rows_response.rb +672 -90
- data/lib/revox/models/campaign_launch_params.rb +182 -1
- data/lib/revox/models/campaign_launch_response.rb +3447 -1574
- data/lib/revox/models/campaign_list_response.rb +108 -119
- data/lib/revox/models/campaign_retrieve_response.rb +108 -119
- data/lib/revox/models/campaign_statistics_response.rb +51 -23
- data/lib/revox/models/campaign_update_params.rb +9 -78
- data/lib/revox/models/campaign_update_response.rb +108 -119
- data/lib/revox/models/phone_number_list_response.rb +87 -65
- data/lib/revox/models/phone_number_update_response.rb +87 -65
- data/lib/revox/models/voice_list_response.rb +1 -0
- data/lib/revox/models/voice_preview_params.rb +1 -0
- data/lib/revox/models/voice_retrieve_params.rb +1 -0
- data/lib/revox/resources/assistants.rb +10 -10
- data/lib/revox/resources/call.rb +4 -4
- data/lib/revox/resources/campaigns.rb +35 -31
- data/lib/revox/version.rb +1 -1
- data/rbi/revox/models/assistant_clone_response.rbi +157 -147
- data/rbi/revox/models/assistant_create_params.rbi +148 -162
- data/rbi/revox/models/assistant_create_response.rbi +157 -147
- data/rbi/revox/models/assistant_list_response.rbi +157 -147
- data/rbi/revox/models/assistant_retrieve_response.rbi +153 -147
- data/rbi/revox/models/assistant_update_params.rbi +148 -162
- data/rbi/revox/models/assistant_update_response.rbi +157 -147
- data/rbi/revox/models/call_create_params.rbi +190 -187
- data/rbi/revox/models/call_create_response.rbi +1138 -227
- data/rbi/revox/models/call_export_params.rbi +5 -15
- data/rbi/revox/models/call_phone_history_response.rbi +0 -15
- data/rbi/revox/models/call_retrieve_response.rbi +1138 -227
- data/rbi/revox/models/call_search_params.rbi +2 -9
- data/rbi/revox/models/call_search_response.rbi +1138 -227
- data/rbi/revox/models/campaign_create_params.rbi +9 -87
- data/rbi/revox/models/campaign_create_response.rbi +188 -266
- data/rbi/revox/models/campaign_get_rows_response.rbi +1138 -225
- data/rbi/revox/models/campaign_launch_params.rbi +511 -2
- data/rbi/revox/models/campaign_launch_response.rbi +6882 -3163
- data/rbi/revox/models/campaign_list_response.rbi +188 -262
- data/rbi/revox/models/campaign_retrieve_response.rbi +188 -266
- data/rbi/revox/models/campaign_statistics_response.rbi +94 -36
- data/rbi/revox/models/campaign_update_params.rbi +10 -128
- data/rbi/revox/models/campaign_update_response.rbi +188 -266
- data/rbi/revox/models/phone_number_list_response.rbi +157 -147
- data/rbi/revox/models/phone_number_update_response.rbi +157 -147
- data/rbi/revox/models/voice_list_response.rbi +5 -0
- data/rbi/revox/models/voice_preview_params.rbi +2 -0
- data/rbi/revox/models/voice_retrieve_params.rbi +2 -0
- data/rbi/revox/resources/assistants.rbi +40 -22
- data/rbi/revox/resources/call.rbi +7 -4
- data/rbi/revox/resources/campaigns.rbi +30 -36
- data/sig/revox/models/assistant_clone_response.rbs +46 -54
- data/sig/revox/models/assistant_create_params.rbs +39 -58
- data/sig/revox/models/assistant_create_response.rbs +46 -54
- data/sig/revox/models/assistant_list_response.rbs +46 -54
- data/sig/revox/models/assistant_retrieve_response.rbs +46 -54
- data/sig/revox/models/assistant_update_params.rbs +39 -58
- data/sig/revox/models/assistant_update_response.rbs +46 -54
- data/sig/revox/models/call_create_params.rbs +50 -71
- data/sig/revox/models/call_create_response.rbs +468 -77
- data/sig/revox/models/call_export_params.rbs +2 -6
- data/sig/revox/models/call_phone_history_response.rbs +1 -10
- data/sig/revox/models/call_retrieve_response.rbs +468 -77
- data/sig/revox/models/call_search_params.rbs +2 -6
- data/sig/revox/models/call_search_response.rbs +468 -77
- data/sig/revox/models/campaign_create_params.rbs +5 -50
- data/sig/revox/models/campaign_create_response.rbs +62 -98
- data/sig/revox/models/campaign_get_rows_response.rbs +467 -73
- data/sig/revox/models/campaign_launch_params.rbs +215 -2
- data/sig/revox/models/campaign_launch_response.rbs +2721 -1219
- data/sig/revox/models/campaign_list_response.rbs +62 -98
- data/sig/revox/models/campaign_retrieve_response.rbs +62 -98
- data/sig/revox/models/campaign_statistics_response.rbs +55 -24
- data/sig/revox/models/campaign_update_params.rbs +1 -69
- data/sig/revox/models/campaign_update_response.rbs +62 -98
- data/sig/revox/models/phone_number_list_response.rbs +46 -54
- data/sig/revox/models/phone_number_update_response.rbs +46 -54
- data/sig/revox/models/voice_list_response.rbs +2 -1
- data/sig/revox/models/voice_preview_params.rbs +2 -1
- data/sig/revox/models/voice_retrieve_params.rbs +2 -1
- data/sig/revox/resources/assistants.rbs +4 -4
- data/sig/revox/resources/call.rbs +1 -1
- data/sig/revox/resources/campaigns.rbs +3 -7
- metadata +2 -2
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
module Revox
|
|
2
2
|
module Models
|
|
3
3
|
type campaign_launch_params =
|
|
4
|
-
{
|
|
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: -> {
|
|
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
|