revox 0.1.0 → 0.2.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 +71 -0
- data/README.md +39 -14
- data/lib/revox/client.rb +15 -1
- data/lib/revox/internal/transport/base_client.rb +5 -0
- data/lib/revox/internal/util.rb +22 -7
- data/lib/revox/models/assistant_create_params.rb +1038 -13
- data/lib/revox/models/assistant_create_response.rb +1071 -11
- data/lib/revox/models/assistant_list_response.rb +1070 -11
- data/lib/revox/models/assistant_retrieve_response.rb +1066 -11
- data/lib/revox/models/assistant_update_params.rb +1038 -13
- data/lib/revox/models/assistant_update_response.rb +1097 -12
- data/lib/revox/models/call_create_params.rb +1065 -13
- data/lib/revox/models/call_create_response.rb +1813 -101
- data/lib/revox/models/call_retrieve_response.rb +1815 -101
- data/lib/revox/models/campaign_create_params.rb +67 -2
- data/lib/revox/models/campaign_create_response.rb +1314 -59
- data/lib/revox/models/campaign_get_rows_params.rb +1 -46
- data/lib/revox/models/campaign_get_rows_response.rb +1837 -129
- data/lib/revox/models/campaign_list_response.rb +1312 -59
- data/lib/revox/models/campaign_retrieve_response.rb +1312 -56
- data/lib/revox/models/users/me_retrieve_response.rb +13 -1
- data/lib/revox/models/users/me_update_response.rb +13 -1
- data/lib/revox/models/voice_list_response.rb +55 -1
- data/lib/revox/models/voice_preview_params.rb +49 -1
- data/lib/revox/models.rb +0 -2
- data/lib/revox/resources/assistants.rb +116 -8
- data/lib/revox/resources/call.rb +0 -29
- data/lib/revox/resources/campaigns.rb +12 -17
- data/lib/revox/resources/voices.rb +16 -10
- data/lib/revox/version.rb +1 -1
- data/lib/revox.rb +0 -2
- data/rbi/revox/internal/util.rbi +8 -0
- data/rbi/revox/models/assistant_create_params.rbi +2138 -103
- data/rbi/revox/models/assistant_create_response.rbi +2454 -199
- data/rbi/revox/models/assistant_list_response.rbi +2448 -195
- data/rbi/revox/models/assistant_retrieve_response.rbi +2401 -210
- data/rbi/revox/models/assistant_update_params.rbi +2138 -103
- data/rbi/revox/models/assistant_update_response.rbi +2504 -198
- data/rbi/revox/models/call_create_params.rbi +2382 -225
- data/rbi/revox/models/call_create_response.rbi +4104 -384
- data/rbi/revox/models/call_retrieve_response.rbi +4104 -382
- data/rbi/revox/models/campaign_create_params.rbi +136 -0
- data/rbi/revox/models/campaign_create_response.rbi +2911 -231
- data/rbi/revox/models/campaign_get_rows_params.rbi +2 -82
- data/rbi/revox/models/campaign_get_rows_response.rbi +4135 -410
- data/rbi/revox/models/campaign_list_response.rbi +2904 -230
- data/rbi/revox/models/campaign_retrieve_response.rbi +2911 -231
- data/rbi/revox/models/users/me_retrieve_response.rbi +13 -3
- data/rbi/revox/models/users/me_update_response.rbi +13 -3
- data/rbi/revox/models/voice_list_response.rbi +105 -3
- data/rbi/revox/models/voice_preview_params.rbi +69 -0
- data/rbi/revox/models.rbi +0 -2
- data/rbi/revox/resources/assistants.rbi +284 -8
- data/rbi/revox/resources/call.rbi +0 -21
- data/rbi/revox/resources/campaigns.rbi +12 -19
- data/rbi/revox/resources/voices.rbi +17 -9
- data/sig/revox/internal/util.rbs +4 -0
- data/sig/revox/models/assistant_create_params.rbs +844 -11
- data/sig/revox/models/assistant_create_response.rbs +860 -3
- data/sig/revox/models/assistant_list_response.rbs +860 -3
- data/sig/revox/models/assistant_retrieve_response.rbs +859 -3
- data/sig/revox/models/assistant_update_params.rbs +844 -11
- data/sig/revox/models/assistant_update_response.rbs +886 -6
- data/sig/revox/models/call_create_params.rbs +847 -13
- data/sig/revox/models/call_create_response.rbs +1514 -34
- data/sig/revox/models/call_retrieve_response.rbs +1514 -34
- data/sig/revox/models/campaign_create_params.rbs +54 -0
- data/sig/revox/models/campaign_create_response.rbs +1034 -6
- data/sig/revox/models/campaign_get_rows_params.rbs +2 -64
- data/sig/revox/models/campaign_get_rows_response.rbs +1522 -54
- data/sig/revox/models/campaign_list_response.rbs +1034 -6
- data/sig/revox/models/campaign_retrieve_response.rbs +1034 -6
- data/sig/revox/models/users/me_retrieve_response.rbs +8 -3
- data/sig/revox/models/users/me_update_response.rbs +8 -3
- data/sig/revox/models/voice_list_response.rbs +45 -3
- data/sig/revox/models/voice_preview_params.rbs +42 -1
- data/sig/revox/models.rbs +0 -2
- data/sig/revox/resources/assistants.rbs +56 -2
- data/sig/revox/resources/call.rbs +0 -7
- data/sig/revox/resources/campaigns.rbs +2 -5
- data/sig/revox/resources/voices.rbs +4 -0
- metadata +2 -8
- data/lib/revox/models/call_list_params.rb +0 -52
- data/lib/revox/models/call_list_response.rb +0 -259
- data/rbi/revox/models/call_list_params.rbi +0 -94
- data/rbi/revox/models/call_list_response.rbi +0 -563
- data/sig/revox/models/call_list_params.rbs +0 -63
- data/sig/revox/models/call_list_response.rbs +0 -226
|
@@ -4,7 +4,9 @@ module Revox
|
|
|
4
4
|
{
|
|
5
5
|
assistant_id: String,
|
|
6
6
|
contacts: ::Array[Revox::CampaignCreateParams::Contact],
|
|
7
|
+
launch: bool,
|
|
7
8
|
name: String,
|
|
9
|
+
type: Revox::Models::CampaignCreateParams::type_,
|
|
8
10
|
call_retry_config: Revox::CampaignCreateParams::CallRetryConfig,
|
|
9
11
|
from_phone_number: String,
|
|
10
12
|
max_concurrent_calls: Float,
|
|
@@ -20,8 +22,12 @@ module Revox
|
|
|
20
22
|
|
|
21
23
|
attr_accessor contacts: ::Array[Revox::CampaignCreateParams::Contact]
|
|
22
24
|
|
|
25
|
+
attr_accessor launch: bool
|
|
26
|
+
|
|
23
27
|
attr_accessor name: String
|
|
24
28
|
|
|
29
|
+
attr_accessor type: Revox::Models::CampaignCreateParams::type_
|
|
30
|
+
|
|
25
31
|
attr_reader call_retry_config: Revox::CampaignCreateParams::CallRetryConfig?
|
|
26
32
|
|
|
27
33
|
def call_retry_config=: (
|
|
@@ -45,7 +51,9 @@ module Revox
|
|
|
45
51
|
def initialize: (
|
|
46
52
|
assistant_id: String,
|
|
47
53
|
contacts: ::Array[Revox::CampaignCreateParams::Contact],
|
|
54
|
+
launch: bool,
|
|
48
55
|
name: String,
|
|
56
|
+
type: Revox::Models::CampaignCreateParams::type_,
|
|
49
57
|
?call_retry_config: Revox::CampaignCreateParams::CallRetryConfig,
|
|
50
58
|
?from_phone_number: String,
|
|
51
59
|
?max_concurrent_calls: Float,
|
|
@@ -56,7 +64,9 @@ module Revox
|
|
|
56
64
|
def to_hash: -> {
|
|
57
65
|
assistant_id: String,
|
|
58
66
|
contacts: ::Array[Revox::CampaignCreateParams::Contact],
|
|
67
|
+
launch: bool,
|
|
59
68
|
name: String,
|
|
69
|
+
type: Revox::Models::CampaignCreateParams::type_,
|
|
60
70
|
call_retry_config: Revox::CampaignCreateParams::CallRetryConfig,
|
|
61
71
|
from_phone_number: String,
|
|
62
72
|
max_concurrent_calls: Float,
|
|
@@ -83,14 +93,31 @@ module Revox
|
|
|
83
93
|
}
|
|
84
94
|
end
|
|
85
95
|
|
|
96
|
+
type type_ = :regular | :jump_in
|
|
97
|
+
|
|
98
|
+
module Type
|
|
99
|
+
extend Revox::Internal::Type::Enum
|
|
100
|
+
|
|
101
|
+
REGULAR: :regular
|
|
102
|
+
JUMP_IN: :jump_in
|
|
103
|
+
|
|
104
|
+
def self?.values: -> ::Array[Revox::Models::CampaignCreateParams::type_]
|
|
105
|
+
end
|
|
106
|
+
|
|
86
107
|
type call_retry_config =
|
|
87
108
|
{
|
|
109
|
+
allowed_days: ::Array[Revox::Models::CampaignCreateParams::CallRetryConfig::allowed_day],
|
|
110
|
+
call_twice_in_a_row: bool,
|
|
88
111
|
calling_windows: ::Array[Revox::CampaignCreateParams::CallRetryConfig::CallingWindow],
|
|
89
112
|
max_retry_attempts: Integer,
|
|
90
113
|
timezone: String?
|
|
91
114
|
}
|
|
92
115
|
|
|
93
116
|
class CallRetryConfig < Revox::Internal::Type::BaseModel
|
|
117
|
+
attr_accessor allowed_days: ::Array[Revox::Models::CampaignCreateParams::CallRetryConfig::allowed_day]
|
|
118
|
+
|
|
119
|
+
attr_accessor call_twice_in_a_row: bool
|
|
120
|
+
|
|
94
121
|
attr_accessor calling_windows: ::Array[Revox::CampaignCreateParams::CallRetryConfig::CallingWindow]
|
|
95
122
|
|
|
96
123
|
attr_accessor max_retry_attempts: Integer
|
|
@@ -98,17 +125,44 @@ module Revox
|
|
|
98
125
|
attr_accessor timezone: String?
|
|
99
126
|
|
|
100
127
|
def initialize: (
|
|
128
|
+
allowed_days: ::Array[Revox::Models::CampaignCreateParams::CallRetryConfig::allowed_day],
|
|
129
|
+
call_twice_in_a_row: bool,
|
|
101
130
|
calling_windows: ::Array[Revox::CampaignCreateParams::CallRetryConfig::CallingWindow],
|
|
102
131
|
max_retry_attempts: Integer,
|
|
103
132
|
?timezone: String?
|
|
104
133
|
) -> void
|
|
105
134
|
|
|
106
135
|
def to_hash: -> {
|
|
136
|
+
allowed_days: ::Array[Revox::Models::CampaignCreateParams::CallRetryConfig::allowed_day],
|
|
137
|
+
call_twice_in_a_row: bool,
|
|
107
138
|
calling_windows: ::Array[Revox::CampaignCreateParams::CallRetryConfig::CallingWindow],
|
|
108
139
|
max_retry_attempts: Integer,
|
|
109
140
|
timezone: String?
|
|
110
141
|
}
|
|
111
142
|
|
|
143
|
+
type allowed_day =
|
|
144
|
+
:monday
|
|
145
|
+
| :tuesday
|
|
146
|
+
| :wednesday
|
|
147
|
+
| :thursday
|
|
148
|
+
| :friday
|
|
149
|
+
| :saturday
|
|
150
|
+
| :sunday
|
|
151
|
+
|
|
152
|
+
module AllowedDay
|
|
153
|
+
extend Revox::Internal::Type::Enum
|
|
154
|
+
|
|
155
|
+
MONDAY: :monday
|
|
156
|
+
TUESDAY: :tuesday
|
|
157
|
+
WEDNESDAY: :wednesday
|
|
158
|
+
THURSDAY: :thursday
|
|
159
|
+
FRIDAY: :friday
|
|
160
|
+
SATURDAY: :saturday
|
|
161
|
+
SUNDAY: :sunday
|
|
162
|
+
|
|
163
|
+
def self?.values: -> ::Array[Revox::Models::CampaignCreateParams::CallRetryConfig::allowed_day]
|
|
164
|
+
end
|
|
165
|
+
|
|
112
166
|
type calling_window =
|
|
113
167
|
{
|
|
114
168
|
calling_window_end_time: String,
|