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
|
@@ -12,9 +12,190 @@ module Revox
|
|
|
12
12
|
# @return [String]
|
|
13
13
|
required :id, String
|
|
14
14
|
|
|
15
|
-
# @!
|
|
15
|
+
# @!attribute mode
|
|
16
|
+
#
|
|
17
|
+
# @return [Symbol, Revox::Models::CampaignLaunchParams::Mode]
|
|
18
|
+
required :mode, enum: -> { Revox::CampaignLaunchParams::Mode }
|
|
19
|
+
|
|
20
|
+
# @!attribute selection
|
|
21
|
+
#
|
|
22
|
+
# @return [Revox::Models::CampaignLaunchParams::Selection]
|
|
23
|
+
required :selection, -> { Revox::CampaignLaunchParams::Selection }
|
|
24
|
+
|
|
25
|
+
# @!attribute scheduled_at
|
|
26
|
+
# When to place the calls (ISO 8601). Omit to launch now. ai_first only — a speed
|
|
27
|
+
# dial session cannot be scheduled.
|
|
28
|
+
#
|
|
29
|
+
# @return [Time, nil]
|
|
30
|
+
optional :scheduled_at, Time
|
|
31
|
+
|
|
32
|
+
# @!method initialize(id:, mode:, selection:, scheduled_at: nil, request_options: {})
|
|
33
|
+
# Some parameter documentations has been truncated, see
|
|
34
|
+
# {Revox::Models::CampaignLaunchParams} for more details.
|
|
35
|
+
#
|
|
16
36
|
# @param id [String]
|
|
37
|
+
#
|
|
38
|
+
# @param mode [Symbol, Revox::Models::CampaignLaunchParams::Mode]
|
|
39
|
+
#
|
|
40
|
+
# @param selection [Revox::Models::CampaignLaunchParams::Selection]
|
|
41
|
+
#
|
|
42
|
+
# @param scheduled_at [Time] When to place the calls (ISO 8601). Omit to launch now. ai_first only — a speed
|
|
43
|
+
#
|
|
17
44
|
# @param request_options [Revox::RequestOptions, Hash{Symbol=>Object}]
|
|
45
|
+
|
|
46
|
+
module Mode
|
|
47
|
+
extend Revox::Internal::Type::Enum
|
|
48
|
+
|
|
49
|
+
AI_FIRST = :ai_first
|
|
50
|
+
SPEED_DIAL = :speed_dial
|
|
51
|
+
|
|
52
|
+
# @!method self.values
|
|
53
|
+
# @return [Array<Symbol>]
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
class Selection < Revox::Internal::Type::BaseModel
|
|
57
|
+
# @!attribute filters
|
|
58
|
+
#
|
|
59
|
+
# @return [Revox::Models::CampaignLaunchParams::Selection::Filters]
|
|
60
|
+
required :filters, -> { Revox::CampaignLaunchParams::Selection::Filters }
|
|
61
|
+
|
|
62
|
+
# @!attribute rows
|
|
63
|
+
#
|
|
64
|
+
# @return [Revox::Models::CampaignLaunchParams::Selection::Rows]
|
|
65
|
+
required :rows, -> { Revox::CampaignLaunchParams::Selection::Rows }
|
|
66
|
+
|
|
67
|
+
# @!method initialize(filters:, rows:)
|
|
68
|
+
# @param filters [Revox::Models::CampaignLaunchParams::Selection::Filters]
|
|
69
|
+
# @param rows [Revox::Models::CampaignLaunchParams::Selection::Rows]
|
|
70
|
+
|
|
71
|
+
# @see Revox::Models::CampaignLaunchParams::Selection#filters
|
|
72
|
+
class Filters < Revox::Internal::Type::BaseModel
|
|
73
|
+
# @!attribute assignee_ids
|
|
74
|
+
#
|
|
75
|
+
# @return [Array<String>]
|
|
76
|
+
required :assignee_ids, Revox::Internal::Type::ArrayOf[String]
|
|
77
|
+
|
|
78
|
+
# @!attribute directions
|
|
79
|
+
#
|
|
80
|
+
# @return [Array<Symbol, Revox::Models::CampaignLaunchParams::Selection::Filters::Direction>]
|
|
81
|
+
required :directions,
|
|
82
|
+
-> { Revox::Internal::Type::ArrayOf[enum: Revox::CampaignLaunchParams::Selection::Filters::Direction] }
|
|
83
|
+
|
|
84
|
+
# @!attribute outcomes
|
|
85
|
+
#
|
|
86
|
+
# @return [Array<Symbol, Revox::Models::CampaignLaunchParams::Selection::Filters::Outcome>]
|
|
87
|
+
required :outcomes,
|
|
88
|
+
-> { Revox::Internal::Type::ArrayOf[enum: Revox::CampaignLaunchParams::Selection::Filters::Outcome] }
|
|
89
|
+
|
|
90
|
+
# @!attribute results
|
|
91
|
+
#
|
|
92
|
+
# @return [Array<Symbol, Revox::Models::CampaignLaunchParams::Selection::Filters::Result>]
|
|
93
|
+
required :results,
|
|
94
|
+
-> { Revox::Internal::Type::ArrayOf[enum: Revox::CampaignLaunchParams::Selection::Filters::Result] }
|
|
95
|
+
|
|
96
|
+
# @!attribute statuses
|
|
97
|
+
#
|
|
98
|
+
# @return [Array<Symbol, Revox::Models::CampaignLaunchParams::Selection::Filters::Status>]
|
|
99
|
+
required :statuses,
|
|
100
|
+
-> { Revox::Internal::Type::ArrayOf[enum: Revox::CampaignLaunchParams::Selection::Filters::Status] }
|
|
101
|
+
|
|
102
|
+
# @!attribute query
|
|
103
|
+
#
|
|
104
|
+
# @return [String, nil]
|
|
105
|
+
optional :query, String
|
|
106
|
+
|
|
107
|
+
# @!method initialize(assignee_ids:, directions:, outcomes:, results:, statuses:, query: nil)
|
|
108
|
+
# @param assignee_ids [Array<String>]
|
|
109
|
+
# @param directions [Array<Symbol, Revox::Models::CampaignLaunchParams::Selection::Filters::Direction>]
|
|
110
|
+
# @param outcomes [Array<Symbol, Revox::Models::CampaignLaunchParams::Selection::Filters::Outcome>]
|
|
111
|
+
# @param results [Array<Symbol, Revox::Models::CampaignLaunchParams::Selection::Filters::Result>]
|
|
112
|
+
# @param statuses [Array<Symbol, Revox::Models::CampaignLaunchParams::Selection::Filters::Status>]
|
|
113
|
+
# @param query [String]
|
|
114
|
+
|
|
115
|
+
module Direction
|
|
116
|
+
extend Revox::Internal::Type::Enum
|
|
117
|
+
|
|
118
|
+
INBOUND = :inbound
|
|
119
|
+
OUTBOUND = :outbound
|
|
120
|
+
|
|
121
|
+
# @!method self.values
|
|
122
|
+
# @return [Array<Symbol>]
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
module Outcome
|
|
126
|
+
extend Revox::Internal::Type::Enum
|
|
127
|
+
|
|
128
|
+
NOT_INTERESTED = :not_interested
|
|
129
|
+
INTERESTED = :interested
|
|
130
|
+
COMPLETED = :completed
|
|
131
|
+
REQUESTED_CALLBACK_LATER = :requested_callback_later
|
|
132
|
+
NONE = :none
|
|
133
|
+
|
|
134
|
+
# @!method self.values
|
|
135
|
+
# @return [Array<Symbol>]
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
module Result
|
|
139
|
+
extend Revox::Internal::Type::Enum
|
|
140
|
+
|
|
141
|
+
IVR = :IVR
|
|
142
|
+
VOICEMAIL = :voicemail
|
|
143
|
+
HUMAN = :human
|
|
144
|
+
UNKNOWN = :unknown
|
|
145
|
+
IOS_SCREENING_FILTER = :"ios-screening-filter"
|
|
146
|
+
NONE = :none
|
|
147
|
+
|
|
148
|
+
# @!method self.values
|
|
149
|
+
# @return [Array<Symbol>]
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
module Status
|
|
153
|
+
extend Revox::Internal::Type::Enum
|
|
154
|
+
|
|
155
|
+
INITIALIZING = :initializing
|
|
156
|
+
QUEUED_FOR_CALLING = :queued_for_calling
|
|
157
|
+
CALLING = :calling
|
|
158
|
+
POST_PROCESSING = :post_processing
|
|
159
|
+
NOT_LAUNCHED = :not_launched
|
|
160
|
+
SCHEDULED = :scheduled
|
|
161
|
+
PAUSED = :paused
|
|
162
|
+
COMPLETED = :completed
|
|
163
|
+
CANCELLED = :cancelled
|
|
164
|
+
ERRORED = :errored
|
|
165
|
+
|
|
166
|
+
# @!method self.values
|
|
167
|
+
# @return [Array<Symbol>]
|
|
168
|
+
end
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
# @see Revox::Models::CampaignLaunchParams::Selection#rows
|
|
172
|
+
class Rows < Revox::Internal::Type::BaseModel
|
|
173
|
+
# @!attribute call_ids
|
|
174
|
+
#
|
|
175
|
+
# @return [Array<String>]
|
|
176
|
+
required :call_ids, Revox::Internal::Type::ArrayOf[String]
|
|
177
|
+
|
|
178
|
+
# @!attribute mode
|
|
179
|
+
#
|
|
180
|
+
# @return [Symbol, Revox::Models::CampaignLaunchParams::Selection::Rows::Mode]
|
|
181
|
+
required :mode, enum: -> { Revox::CampaignLaunchParams::Selection::Rows::Mode }
|
|
182
|
+
|
|
183
|
+
# @!method initialize(call_ids:, mode:)
|
|
184
|
+
# @param call_ids [Array<String>]
|
|
185
|
+
# @param mode [Symbol, Revox::Models::CampaignLaunchParams::Selection::Rows::Mode]
|
|
186
|
+
|
|
187
|
+
# @see Revox::Models::CampaignLaunchParams::Selection::Rows#mode
|
|
188
|
+
module Mode
|
|
189
|
+
extend Revox::Internal::Type::Enum
|
|
190
|
+
|
|
191
|
+
ALL_EXCEPT = :all_except
|
|
192
|
+
ONLY = :only
|
|
193
|
+
|
|
194
|
+
# @!method self.values
|
|
195
|
+
# @return [Array<Symbol>]
|
|
196
|
+
end
|
|
197
|
+
end
|
|
198
|
+
end
|
|
18
199
|
end
|
|
19
200
|
end
|
|
20
201
|
end
|