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
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
module Revox
|
|
2
|
-
module Models
|
|
3
|
-
type call_list_response =
|
|
4
|
-
{ calls: ::Array[Revox::Models::CallListResponse::Call] }
|
|
5
|
-
|
|
6
|
-
class CallListResponse < Revox::Internal::Type::BaseModel
|
|
7
|
-
attr_accessor calls: ::Array[Revox::Models::CallListResponse::Call]
|
|
8
|
-
|
|
9
|
-
def initialize: (
|
|
10
|
-
calls: ::Array[Revox::Models::CallListResponse::Call]
|
|
11
|
-
) -> void
|
|
12
|
-
|
|
13
|
-
def to_hash: -> { calls: ::Array[Revox::Models::CallListResponse::Call] }
|
|
14
|
-
|
|
15
|
-
type call =
|
|
16
|
-
{
|
|
17
|
-
id: String,
|
|
18
|
-
answered_at: top,
|
|
19
|
-
dial_error: Revox::Models::CallListResponse::Call::dial_error?,
|
|
20
|
-
ended_at: top,
|
|
21
|
-
phone_number: String,
|
|
22
|
-
recording_url: String?,
|
|
23
|
-
result: Revox::Models::CallListResponse::Call::result?,
|
|
24
|
-
started_at: top,
|
|
25
|
-
status: Revox::Models::CallListResponse::Call::status,
|
|
26
|
-
end_reason: String?,
|
|
27
|
-
ended_by: Revox::Models::CallListResponse::Call::ended_by?,
|
|
28
|
-
structured_output: ::Hash[Symbol, top]?,
|
|
29
|
-
transcript: ::Array[Revox::Models::CallListResponse::Call::Transcript]?
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
class Call < Revox::Internal::Type::BaseModel
|
|
33
|
-
attr_accessor id: String
|
|
34
|
-
|
|
35
|
-
attr_accessor answered_at: top
|
|
36
|
-
|
|
37
|
-
attr_accessor dial_error: Revox::Models::CallListResponse::Call::dial_error?
|
|
38
|
-
|
|
39
|
-
attr_accessor ended_at: top
|
|
40
|
-
|
|
41
|
-
attr_accessor phone_number: String
|
|
42
|
-
|
|
43
|
-
attr_accessor recording_url: String?
|
|
44
|
-
|
|
45
|
-
attr_accessor result: Revox::Models::CallListResponse::Call::result?
|
|
46
|
-
|
|
47
|
-
attr_accessor started_at: top
|
|
48
|
-
|
|
49
|
-
attr_accessor status: Revox::Models::CallListResponse::Call::status
|
|
50
|
-
|
|
51
|
-
attr_accessor end_reason: String?
|
|
52
|
-
|
|
53
|
-
attr_accessor ended_by: Revox::Models::CallListResponse::Call::ended_by?
|
|
54
|
-
|
|
55
|
-
attr_accessor structured_output: ::Hash[Symbol, top]?
|
|
56
|
-
|
|
57
|
-
attr_accessor transcript: ::Array[Revox::Models::CallListResponse::Call::Transcript]?
|
|
58
|
-
|
|
59
|
-
def initialize: (
|
|
60
|
-
id: String,
|
|
61
|
-
answered_at: top,
|
|
62
|
-
dial_error: Revox::Models::CallListResponse::Call::dial_error?,
|
|
63
|
-
ended_at: top,
|
|
64
|
-
phone_number: String,
|
|
65
|
-
recording_url: String?,
|
|
66
|
-
result: Revox::Models::CallListResponse::Call::result?,
|
|
67
|
-
started_at: top,
|
|
68
|
-
status: Revox::Models::CallListResponse::Call::status,
|
|
69
|
-
?end_reason: String?,
|
|
70
|
-
?ended_by: Revox::Models::CallListResponse::Call::ended_by?,
|
|
71
|
-
?structured_output: ::Hash[Symbol, top]?,
|
|
72
|
-
?transcript: ::Array[Revox::Models::CallListResponse::Call::Transcript]?
|
|
73
|
-
) -> void
|
|
74
|
-
|
|
75
|
-
def to_hash: -> {
|
|
76
|
-
id: String,
|
|
77
|
-
answered_at: top,
|
|
78
|
-
dial_error: Revox::Models::CallListResponse::Call::dial_error?,
|
|
79
|
-
ended_at: top,
|
|
80
|
-
phone_number: String,
|
|
81
|
-
recording_url: String?,
|
|
82
|
-
result: Revox::Models::CallListResponse::Call::result?,
|
|
83
|
-
started_at: top,
|
|
84
|
-
status: Revox::Models::CallListResponse::Call::status,
|
|
85
|
-
end_reason: String?,
|
|
86
|
-
ended_by: Revox::Models::CallListResponse::Call::ended_by?,
|
|
87
|
-
structured_output: ::Hash[Symbol, top]?,
|
|
88
|
-
transcript: ::Array[Revox::Models::CallListResponse::Call::Transcript]?
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
type dial_error =
|
|
92
|
-
:number_non_attributed
|
|
93
|
-
| :too_many_calls
|
|
94
|
-
| :busy
|
|
95
|
-
| :temporarily_unavailable
|
|
96
|
-
| :no_answer
|
|
97
|
-
| :no_international_permission
|
|
98
|
-
| :precondition_failed
|
|
99
|
-
| :non_classified_error
|
|
100
|
-
|
|
101
|
-
module DialError
|
|
102
|
-
extend Revox::Internal::Type::Enum
|
|
103
|
-
|
|
104
|
-
NUMBER_NON_ATTRIBUTED: :number_non_attributed
|
|
105
|
-
TOO_MANY_CALLS: :too_many_calls
|
|
106
|
-
BUSY: :busy
|
|
107
|
-
TEMPORARILY_UNAVAILABLE: :temporarily_unavailable
|
|
108
|
-
NO_ANSWER: :no_answer
|
|
109
|
-
NO_INTERNATIONAL_PERMISSION: :no_international_permission
|
|
110
|
-
PRECONDITION_FAILED: :precondition_failed
|
|
111
|
-
NON_CLASSIFIED_ERROR: :non_classified_error
|
|
112
|
-
|
|
113
|
-
def self?.values: -> ::Array[Revox::Models::CallListResponse::Call::dial_error]
|
|
114
|
-
end
|
|
115
|
-
|
|
116
|
-
type result =
|
|
117
|
-
:IVR | :voicemail | :human | :unknown | :"ios-screening-filter"
|
|
118
|
-
|
|
119
|
-
module Result
|
|
120
|
-
extend Revox::Internal::Type::Enum
|
|
121
|
-
|
|
122
|
-
IVR: :IVR
|
|
123
|
-
VOICEMAIL: :voicemail
|
|
124
|
-
HUMAN: :human
|
|
125
|
-
UNKNOWN: :unknown
|
|
126
|
-
IOS_SCREENING_FILTER: :"ios-screening-filter"
|
|
127
|
-
|
|
128
|
-
def self?.values: -> ::Array[Revox::Models::CallListResponse::Call::result]
|
|
129
|
-
end
|
|
130
|
-
|
|
131
|
-
type status = :queued | :ringing | :ongoing | :completed | :error
|
|
132
|
-
|
|
133
|
-
module Status
|
|
134
|
-
extend Revox::Internal::Type::Enum
|
|
135
|
-
|
|
136
|
-
QUEUED: :queued
|
|
137
|
-
RINGING: :ringing
|
|
138
|
-
ONGOING: :ongoing
|
|
139
|
-
COMPLETED: :completed
|
|
140
|
-
ERROR: :error
|
|
141
|
-
|
|
142
|
-
def self?.values: -> ::Array[Revox::Models::CallListResponse::Call::status]
|
|
143
|
-
end
|
|
144
|
-
|
|
145
|
-
type ended_by = :agent | :user | :system
|
|
146
|
-
|
|
147
|
-
module EndedBy
|
|
148
|
-
extend Revox::Internal::Type::Enum
|
|
149
|
-
|
|
150
|
-
AGENT: :agent
|
|
151
|
-
USER: :user
|
|
152
|
-
SYSTEM: :system
|
|
153
|
-
|
|
154
|
-
def self?.values: -> ::Array[Revox::Models::CallListResponse::Call::ended_by]
|
|
155
|
-
end
|
|
156
|
-
|
|
157
|
-
type transcript =
|
|
158
|
-
{
|
|
159
|
-
content: String,
|
|
160
|
-
role: Revox::Models::CallListResponse::Call::Transcript::role,
|
|
161
|
-
tool_arguments: Revox::Models::CallListResponse::Call::Transcript::tool_arguments,
|
|
162
|
-
tool_is_error: bool,
|
|
163
|
-
tool_name: String
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
class Transcript < Revox::Internal::Type::BaseModel
|
|
167
|
-
attr_accessor content: String
|
|
168
|
-
|
|
169
|
-
attr_accessor role: Revox::Models::CallListResponse::Call::Transcript::role
|
|
170
|
-
|
|
171
|
-
attr_reader tool_arguments: Revox::Models::CallListResponse::Call::Transcript::tool_arguments?
|
|
172
|
-
|
|
173
|
-
def tool_arguments=: (
|
|
174
|
-
Revox::Models::CallListResponse::Call::Transcript::tool_arguments
|
|
175
|
-
) -> Revox::Models::CallListResponse::Call::Transcript::tool_arguments
|
|
176
|
-
|
|
177
|
-
attr_reader tool_is_error: bool?
|
|
178
|
-
|
|
179
|
-
def tool_is_error=: (bool) -> bool
|
|
180
|
-
|
|
181
|
-
attr_reader tool_name: String?
|
|
182
|
-
|
|
183
|
-
def tool_name=: (String) -> String
|
|
184
|
-
|
|
185
|
-
def initialize: (
|
|
186
|
-
content: String,
|
|
187
|
-
role: Revox::Models::CallListResponse::Call::Transcript::role,
|
|
188
|
-
?tool_arguments: Revox::Models::CallListResponse::Call::Transcript::tool_arguments,
|
|
189
|
-
?tool_is_error: bool,
|
|
190
|
-
?tool_name: String
|
|
191
|
-
) -> void
|
|
192
|
-
|
|
193
|
-
def to_hash: -> {
|
|
194
|
-
content: String,
|
|
195
|
-
role: Revox::Models::CallListResponse::Call::Transcript::role,
|
|
196
|
-
tool_arguments: Revox::Models::CallListResponse::Call::Transcript::tool_arguments,
|
|
197
|
-
tool_is_error: bool,
|
|
198
|
-
tool_name: String
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
type role = :user | :assistant | :tool
|
|
202
|
-
|
|
203
|
-
module Role
|
|
204
|
-
extend Revox::Internal::Type::Enum
|
|
205
|
-
|
|
206
|
-
USER: :user
|
|
207
|
-
ASSISTANT: :assistant
|
|
208
|
-
TOOL: :tool
|
|
209
|
-
|
|
210
|
-
def self?.values: -> ::Array[Revox::Models::CallListResponse::Call::Transcript::role]
|
|
211
|
-
end
|
|
212
|
-
|
|
213
|
-
type tool_arguments = ::Hash[Symbol, top] | String
|
|
214
|
-
|
|
215
|
-
module ToolArguments
|
|
216
|
-
extend Revox::Internal::Type::Union
|
|
217
|
-
|
|
218
|
-
def self?.variants: -> ::Array[Revox::Models::CallListResponse::Call::Transcript::tool_arguments]
|
|
219
|
-
|
|
220
|
-
UnionMember0Map: Revox::Internal::Type::Converter
|
|
221
|
-
end
|
|
222
|
-
end
|
|
223
|
-
end
|
|
224
|
-
end
|
|
225
|
-
end
|
|
226
|
-
end
|