revox 0.3.0 → 0.4.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 +26 -0
- data/README.md +38 -38
- 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_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/models.rb +0 -2
- data/lib/revox/resources/assistants.rb +10 -10
- data/lib/revox/resources/call.rb +4 -4
- data/lib/revox/resources/campaigns.rb +13 -45
- data/lib/revox/version.rb +1 -1
- data/lib/revox.rb +0 -2
- 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_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/models.rbi +0 -2
- data/rbi/revox/resources/assistants.rbi +40 -22
- data/rbi/revox/resources/call.rbi +7 -4
- data/rbi/revox/resources/campaigns.rbi +12 -44
- 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_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/models.rbs +0 -2
- data/sig/revox/resources/assistants.rbs +4 -4
- data/sig/revox/resources/call.rbs +1 -1
- data/sig/revox/resources/campaigns.rbs +0 -12
- metadata +2 -8
- data/lib/revox/models/campaign_launch_params.rb +0 -20
- data/lib/revox/models/campaign_launch_response.rb +0 -2030
- data/rbi/revox/models/campaign_launch_params.rbi +0 -33
- data/rbi/revox/models/campaign_launch_response.rbi +0 -4170
- data/sig/revox/models/campaign_launch_params.rbs +0 -20
- data/sig/revox/models/campaign_launch_response.rbs +0 -1694
|
@@ -126,6 +126,19 @@ module Revox
|
|
|
126
126
|
end
|
|
127
127
|
attr_writer :inbound
|
|
128
128
|
|
|
129
|
+
sig do
|
|
130
|
+
returns(Revox::Models::CampaignStatisticsResponse::Statistics::JumpIn)
|
|
131
|
+
end
|
|
132
|
+
attr_reader :jump_in
|
|
133
|
+
|
|
134
|
+
sig do
|
|
135
|
+
params(
|
|
136
|
+
jump_in:
|
|
137
|
+
Revox::Models::CampaignStatisticsResponse::Statistics::JumpIn::OrHash
|
|
138
|
+
).void
|
|
139
|
+
end
|
|
140
|
+
attr_writer :jump_in
|
|
141
|
+
|
|
129
142
|
sig do
|
|
130
143
|
returns(Revox::Models::CampaignStatisticsResponse::Statistics::Leads)
|
|
131
144
|
end
|
|
@@ -163,6 +176,8 @@ module Revox
|
|
|
163
176
|
hot_lead_outcomes: T::Array[String],
|
|
164
177
|
inbound:
|
|
165
178
|
Revox::Models::CampaignStatisticsResponse::Statistics::Inbound::OrHash,
|
|
179
|
+
jump_in:
|
|
180
|
+
Revox::Models::CampaignStatisticsResponse::Statistics::JumpIn::OrHash,
|
|
166
181
|
leads:
|
|
167
182
|
Revox::Models::CampaignStatisticsResponse::Statistics::Leads::OrHash,
|
|
168
183
|
outcome_breakdown:
|
|
@@ -178,6 +193,7 @@ module Revox
|
|
|
178
193
|
funnel:,
|
|
179
194
|
hot_lead_outcomes:,
|
|
180
195
|
inbound:,
|
|
196
|
+
jump_in:,
|
|
181
197
|
leads:,
|
|
182
198
|
outcome_breakdown:
|
|
183
199
|
)
|
|
@@ -199,6 +215,8 @@ module Revox
|
|
|
199
215
|
hot_lead_outcomes: T::Array[String],
|
|
200
216
|
inbound:
|
|
201
217
|
Revox::Models::CampaignStatisticsResponse::Statistics::Inbound,
|
|
218
|
+
jump_in:
|
|
219
|
+
Revox::Models::CampaignStatisticsResponse::Statistics::JumpIn,
|
|
202
220
|
leads:
|
|
203
221
|
Revox::Models::CampaignStatisticsResponse::Statistics::Leads,
|
|
204
222
|
outcome_breakdown:
|
|
@@ -315,11 +333,6 @@ module Revox
|
|
|
315
333
|
end
|
|
316
334
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
317
335
|
|
|
318
|
-
DRAFT =
|
|
319
|
-
T.let(
|
|
320
|
-
:draft,
|
|
321
|
-
Revox::Models::CampaignStatisticsResponse::Statistics::Campaign::Status::TaggedSymbol
|
|
322
|
-
)
|
|
323
336
|
RUNNING =
|
|
324
337
|
T.let(
|
|
325
338
|
:running,
|
|
@@ -683,6 +696,51 @@ module Revox
|
|
|
683
696
|
end
|
|
684
697
|
end
|
|
685
698
|
|
|
699
|
+
class JumpIn < Revox::Internal::Type::BaseModel
|
|
700
|
+
OrHash =
|
|
701
|
+
T.type_alias do
|
|
702
|
+
T.any(
|
|
703
|
+
Revox::Models::CampaignStatisticsResponse::Statistics::JumpIn,
|
|
704
|
+
Revox::Internal::AnyHash
|
|
705
|
+
)
|
|
706
|
+
end
|
|
707
|
+
|
|
708
|
+
sig { returns(Float) }
|
|
709
|
+
attr_accessor :joined_calls
|
|
710
|
+
|
|
711
|
+
sig { returns(T.nilable(Float)) }
|
|
712
|
+
attr_accessor :median_conversation_seconds
|
|
713
|
+
|
|
714
|
+
sig { returns(T.nilable(Float)) }
|
|
715
|
+
attr_accessor :median_time_to_join_seconds
|
|
716
|
+
|
|
717
|
+
sig do
|
|
718
|
+
params(
|
|
719
|
+
joined_calls: Float,
|
|
720
|
+
median_conversation_seconds: T.nilable(Float),
|
|
721
|
+
median_time_to_join_seconds: T.nilable(Float)
|
|
722
|
+
).returns(T.attached_class)
|
|
723
|
+
end
|
|
724
|
+
def self.new(
|
|
725
|
+
joined_calls:,
|
|
726
|
+
median_conversation_seconds:,
|
|
727
|
+
median_time_to_join_seconds:
|
|
728
|
+
)
|
|
729
|
+
end
|
|
730
|
+
|
|
731
|
+
sig do
|
|
732
|
+
override.returns(
|
|
733
|
+
{
|
|
734
|
+
joined_calls: Float,
|
|
735
|
+
median_conversation_seconds: T.nilable(Float),
|
|
736
|
+
median_time_to_join_seconds: T.nilable(Float)
|
|
737
|
+
}
|
|
738
|
+
)
|
|
739
|
+
end
|
|
740
|
+
def to_hash
|
|
741
|
+
end
|
|
742
|
+
end
|
|
743
|
+
|
|
686
744
|
class Leads < Revox::Internal::Type::BaseModel
|
|
687
745
|
OrHash =
|
|
688
746
|
T.type_alias do
|
|
@@ -695,46 +753,46 @@ module Revox
|
|
|
695
753
|
sig do
|
|
696
754
|
returns(
|
|
697
755
|
T::Array[
|
|
698
|
-
Revox::Models::CampaignStatisticsResponse::Statistics::Leads::
|
|
756
|
+
Revox::Models::CampaignStatisticsResponse::Statistics::Leads::CallbackRequested
|
|
699
757
|
]
|
|
700
758
|
)
|
|
701
759
|
end
|
|
702
|
-
attr_accessor :
|
|
760
|
+
attr_accessor :callback_requested
|
|
703
761
|
|
|
704
762
|
sig do
|
|
705
763
|
returns(
|
|
706
764
|
T::Array[
|
|
707
|
-
Revox::Models::CampaignStatisticsResponse::Statistics::Leads::
|
|
765
|
+
Revox::Models::CampaignStatisticsResponse::Statistics::Leads::Interested
|
|
708
766
|
]
|
|
709
767
|
)
|
|
710
768
|
end
|
|
711
|
-
attr_accessor :
|
|
769
|
+
attr_accessor :interested
|
|
712
770
|
|
|
713
771
|
sig do
|
|
714
772
|
params(
|
|
715
|
-
|
|
773
|
+
callback_requested:
|
|
716
774
|
T::Array[
|
|
717
|
-
Revox::Models::CampaignStatisticsResponse::Statistics::Leads::
|
|
775
|
+
Revox::Models::CampaignStatisticsResponse::Statistics::Leads::CallbackRequested::OrHash
|
|
718
776
|
],
|
|
719
|
-
|
|
777
|
+
interested:
|
|
720
778
|
T::Array[
|
|
721
|
-
Revox::Models::CampaignStatisticsResponse::Statistics::Leads::
|
|
779
|
+
Revox::Models::CampaignStatisticsResponse::Statistics::Leads::Interested::OrHash
|
|
722
780
|
]
|
|
723
781
|
).returns(T.attached_class)
|
|
724
782
|
end
|
|
725
|
-
def self.new(
|
|
783
|
+
def self.new(callback_requested:, interested:)
|
|
726
784
|
end
|
|
727
785
|
|
|
728
786
|
sig do
|
|
729
787
|
override.returns(
|
|
730
788
|
{
|
|
731
|
-
|
|
789
|
+
callback_requested:
|
|
732
790
|
T::Array[
|
|
733
|
-
Revox::Models::CampaignStatisticsResponse::Statistics::Leads::
|
|
791
|
+
Revox::Models::CampaignStatisticsResponse::Statistics::Leads::CallbackRequested
|
|
734
792
|
],
|
|
735
|
-
|
|
793
|
+
interested:
|
|
736
794
|
T::Array[
|
|
737
|
-
Revox::Models::CampaignStatisticsResponse::Statistics::Leads::
|
|
795
|
+
Revox::Models::CampaignStatisticsResponse::Statistics::Leads::Interested
|
|
738
796
|
]
|
|
739
797
|
}
|
|
740
798
|
)
|
|
@@ -742,11 +800,11 @@ module Revox
|
|
|
742
800
|
def to_hash
|
|
743
801
|
end
|
|
744
802
|
|
|
745
|
-
class
|
|
803
|
+
class CallbackRequested < Revox::Internal::Type::BaseModel
|
|
746
804
|
OrHash =
|
|
747
805
|
T.type_alias do
|
|
748
806
|
T.any(
|
|
749
|
-
Revox::Models::CampaignStatisticsResponse::Statistics::Leads::
|
|
807
|
+
Revox::Models::CampaignStatisticsResponse::Statistics::Leads::CallbackRequested,
|
|
750
808
|
Revox::Internal::AnyHash
|
|
751
809
|
)
|
|
752
810
|
end
|
|
@@ -759,7 +817,7 @@ module Revox
|
|
|
759
817
|
|
|
760
818
|
sig do
|
|
761
819
|
returns(
|
|
762
|
-
Revox::Models::CampaignStatisticsResponse::Statistics::Leads::
|
|
820
|
+
Revox::Models::CampaignStatisticsResponse::Statistics::Leads::CallbackRequested::Direction::TaggedSymbol
|
|
763
821
|
)
|
|
764
822
|
end
|
|
765
823
|
attr_accessor :direction
|
|
@@ -784,7 +842,7 @@ module Revox
|
|
|
784
842
|
attempt_id: T.nilable(String),
|
|
785
843
|
call_id: String,
|
|
786
844
|
direction:
|
|
787
|
-
Revox::Models::CampaignStatisticsResponse::Statistics::Leads::
|
|
845
|
+
Revox::Models::CampaignStatisticsResponse::Statistics::Leads::CallbackRequested::Direction::OrSymbol,
|
|
788
846
|
email: T.nilable(String),
|
|
789
847
|
last_activity_at: T.anything,
|
|
790
848
|
name: String,
|
|
@@ -810,7 +868,7 @@ module Revox
|
|
|
810
868
|
attempt_id: T.nilable(String),
|
|
811
869
|
call_id: String,
|
|
812
870
|
direction:
|
|
813
|
-
Revox::Models::CampaignStatisticsResponse::Statistics::Leads::
|
|
871
|
+
Revox::Models::CampaignStatisticsResponse::Statistics::Leads::CallbackRequested::Direction::TaggedSymbol,
|
|
814
872
|
email: T.nilable(String),
|
|
815
873
|
last_activity_at: T.anything,
|
|
816
874
|
name: String,
|
|
@@ -829,7 +887,7 @@ module Revox
|
|
|
829
887
|
T.type_alias do
|
|
830
888
|
T.all(
|
|
831
889
|
Symbol,
|
|
832
|
-
Revox::Models::CampaignStatisticsResponse::Statistics::Leads::
|
|
890
|
+
Revox::Models::CampaignStatisticsResponse::Statistics::Leads::CallbackRequested::Direction
|
|
833
891
|
)
|
|
834
892
|
end
|
|
835
893
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
@@ -837,18 +895,18 @@ module Revox
|
|
|
837
895
|
INBOUND =
|
|
838
896
|
T.let(
|
|
839
897
|
:inbound,
|
|
840
|
-
Revox::Models::CampaignStatisticsResponse::Statistics::Leads::
|
|
898
|
+
Revox::Models::CampaignStatisticsResponse::Statistics::Leads::CallbackRequested::Direction::TaggedSymbol
|
|
841
899
|
)
|
|
842
900
|
OUTBOUND =
|
|
843
901
|
T.let(
|
|
844
902
|
:outbound,
|
|
845
|
-
Revox::Models::CampaignStatisticsResponse::Statistics::Leads::
|
|
903
|
+
Revox::Models::CampaignStatisticsResponse::Statistics::Leads::CallbackRequested::Direction::TaggedSymbol
|
|
846
904
|
)
|
|
847
905
|
|
|
848
906
|
sig do
|
|
849
907
|
override.returns(
|
|
850
908
|
T::Array[
|
|
851
|
-
Revox::Models::CampaignStatisticsResponse::Statistics::Leads::
|
|
909
|
+
Revox::Models::CampaignStatisticsResponse::Statistics::Leads::CallbackRequested::Direction::TaggedSymbol
|
|
852
910
|
]
|
|
853
911
|
)
|
|
854
912
|
end
|
|
@@ -857,11 +915,11 @@ module Revox
|
|
|
857
915
|
end
|
|
858
916
|
end
|
|
859
917
|
|
|
860
|
-
class
|
|
918
|
+
class Interested < Revox::Internal::Type::BaseModel
|
|
861
919
|
OrHash =
|
|
862
920
|
T.type_alias do
|
|
863
921
|
T.any(
|
|
864
|
-
Revox::Models::CampaignStatisticsResponse::Statistics::Leads::
|
|
922
|
+
Revox::Models::CampaignStatisticsResponse::Statistics::Leads::Interested,
|
|
865
923
|
Revox::Internal::AnyHash
|
|
866
924
|
)
|
|
867
925
|
end
|
|
@@ -874,7 +932,7 @@ module Revox
|
|
|
874
932
|
|
|
875
933
|
sig do
|
|
876
934
|
returns(
|
|
877
|
-
Revox::Models::CampaignStatisticsResponse::Statistics::Leads::
|
|
935
|
+
Revox::Models::CampaignStatisticsResponse::Statistics::Leads::Interested::Direction::TaggedSymbol
|
|
878
936
|
)
|
|
879
937
|
end
|
|
880
938
|
attr_accessor :direction
|
|
@@ -899,7 +957,7 @@ module Revox
|
|
|
899
957
|
attempt_id: T.nilable(String),
|
|
900
958
|
call_id: String,
|
|
901
959
|
direction:
|
|
902
|
-
Revox::Models::CampaignStatisticsResponse::Statistics::Leads::
|
|
960
|
+
Revox::Models::CampaignStatisticsResponse::Statistics::Leads::Interested::Direction::OrSymbol,
|
|
903
961
|
email: T.nilable(String),
|
|
904
962
|
last_activity_at: T.anything,
|
|
905
963
|
name: String,
|
|
@@ -925,7 +983,7 @@ module Revox
|
|
|
925
983
|
attempt_id: T.nilable(String),
|
|
926
984
|
call_id: String,
|
|
927
985
|
direction:
|
|
928
|
-
Revox::Models::CampaignStatisticsResponse::Statistics::Leads::
|
|
986
|
+
Revox::Models::CampaignStatisticsResponse::Statistics::Leads::Interested::Direction::TaggedSymbol,
|
|
929
987
|
email: T.nilable(String),
|
|
930
988
|
last_activity_at: T.anything,
|
|
931
989
|
name: String,
|
|
@@ -944,7 +1002,7 @@ module Revox
|
|
|
944
1002
|
T.type_alias do
|
|
945
1003
|
T.all(
|
|
946
1004
|
Symbol,
|
|
947
|
-
Revox::Models::CampaignStatisticsResponse::Statistics::Leads::
|
|
1005
|
+
Revox::Models::CampaignStatisticsResponse::Statistics::Leads::Interested::Direction
|
|
948
1006
|
)
|
|
949
1007
|
end
|
|
950
1008
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
@@ -952,18 +1010,18 @@ module Revox
|
|
|
952
1010
|
INBOUND =
|
|
953
1011
|
T.let(
|
|
954
1012
|
:inbound,
|
|
955
|
-
Revox::Models::CampaignStatisticsResponse::Statistics::Leads::
|
|
1013
|
+
Revox::Models::CampaignStatisticsResponse::Statistics::Leads::Interested::Direction::TaggedSymbol
|
|
956
1014
|
)
|
|
957
1015
|
OUTBOUND =
|
|
958
1016
|
T.let(
|
|
959
1017
|
:outbound,
|
|
960
|
-
Revox::Models::CampaignStatisticsResponse::Statistics::Leads::
|
|
1018
|
+
Revox::Models::CampaignStatisticsResponse::Statistics::Leads::Interested::Direction::TaggedSymbol
|
|
961
1019
|
)
|
|
962
1020
|
|
|
963
1021
|
sig do
|
|
964
1022
|
override.returns(
|
|
965
1023
|
T::Array[
|
|
966
|
-
Revox::Models::CampaignStatisticsResponse::Statistics::Leads::
|
|
1024
|
+
Revox::Models::CampaignStatisticsResponse::Statistics::Leads::Interested::Direction::TaggedSymbol
|
|
967
1025
|
]
|
|
968
1026
|
)
|
|
969
1027
|
end
|
|
@@ -14,13 +14,6 @@ module Revox
|
|
|
14
14
|
sig { returns(String) }
|
|
15
15
|
attr_accessor :id
|
|
16
16
|
|
|
17
|
-
# The ID of the assistant to use (draft only)
|
|
18
|
-
sig { returns(T.nilable(String)) }
|
|
19
|
-
attr_reader :assistant_id
|
|
20
|
-
|
|
21
|
-
sig { params(assistant_id: String).void }
|
|
22
|
-
attr_writer :assistant_id
|
|
23
|
-
|
|
24
17
|
# Configuration for call retry behavior including time windows, delays, and max
|
|
25
18
|
# iterations. If not provided, defaults will be used.
|
|
26
19
|
sig { returns(T.nilable(Revox::CampaignUpdateParams::CallRetryConfig)) }
|
|
@@ -34,22 +27,12 @@ module Revox
|
|
|
34
27
|
end
|
|
35
28
|
attr_writer :call_retry_config
|
|
36
29
|
|
|
37
|
-
#
|
|
38
|
-
|
|
39
|
-
attr_reader :contacts
|
|
40
|
-
|
|
41
|
-
sig do
|
|
42
|
-
params(
|
|
43
|
-
contacts: T::Array[Revox::CampaignUpdateParams::Contact::OrHash]
|
|
44
|
-
).void
|
|
45
|
-
end
|
|
46
|
-
attr_writer :contacts
|
|
47
|
-
|
|
48
|
-
# The phone number to use for outbound calls (draft only)
|
|
30
|
+
# The phone number to use for outbound calls. Editable after launch; applied to
|
|
31
|
+
# the campaign's calls that have not completed yet.
|
|
49
32
|
sig { returns(T.nilable(String)) }
|
|
50
33
|
attr_accessor :from_phone_number
|
|
51
34
|
|
|
52
|
-
# Maximum concurrent calls
|
|
35
|
+
# Maximum concurrent calls. Editable after launch.
|
|
53
36
|
sig { returns(T.nilable(Float)) }
|
|
54
37
|
attr_accessor :max_concurrent_calls
|
|
55
38
|
|
|
@@ -60,54 +43,29 @@ module Revox
|
|
|
60
43
|
sig { params(name: String).void }
|
|
61
44
|
attr_writer :name
|
|
62
45
|
|
|
63
|
-
# Scheduled start time (draft only)
|
|
64
|
-
sig do
|
|
65
|
-
returns(T.nilable(Revox::CampaignUpdateParams::ScheduledAt::Variants))
|
|
66
|
-
end
|
|
67
|
-
attr_accessor :scheduled_at
|
|
68
|
-
|
|
69
|
-
# Campaign type (draft only)
|
|
70
|
-
sig { returns(T.nilable(Revox::CampaignUpdateParams::Type::OrSymbol)) }
|
|
71
|
-
attr_reader :type
|
|
72
|
-
|
|
73
|
-
sig { params(type: Revox::CampaignUpdateParams::Type::OrSymbol).void }
|
|
74
|
-
attr_writer :type
|
|
75
|
-
|
|
76
46
|
sig do
|
|
77
47
|
params(
|
|
78
48
|
id: String,
|
|
79
|
-
assistant_id: String,
|
|
80
49
|
call_retry_config:
|
|
81
50
|
T.nilable(Revox::CampaignUpdateParams::CallRetryConfig::OrHash),
|
|
82
|
-
contacts: T::Array[Revox::CampaignUpdateParams::Contact::OrHash],
|
|
83
51
|
from_phone_number: T.nilable(String),
|
|
84
52
|
max_concurrent_calls: T.nilable(Float),
|
|
85
53
|
name: String,
|
|
86
|
-
scheduled_at:
|
|
87
|
-
T.nilable(Revox::CampaignUpdateParams::ScheduledAt::Variants),
|
|
88
|
-
type: Revox::CampaignUpdateParams::Type::OrSymbol,
|
|
89
54
|
request_options: Revox::RequestOptions::OrHash
|
|
90
55
|
).returns(T.attached_class)
|
|
91
56
|
end
|
|
92
57
|
def self.new(
|
|
93
58
|
id:,
|
|
94
|
-
# The ID of the assistant to use (draft only)
|
|
95
|
-
assistant_id: nil,
|
|
96
59
|
# Configuration for call retry behavior including time windows, delays, and max
|
|
97
60
|
# iterations. If not provided, defaults will be used.
|
|
98
61
|
call_retry_config: nil,
|
|
99
|
-
#
|
|
100
|
-
|
|
101
|
-
# The phone number to use for outbound calls (draft only)
|
|
62
|
+
# The phone number to use for outbound calls. Editable after launch; applied to
|
|
63
|
+
# the campaign's calls that have not completed yet.
|
|
102
64
|
from_phone_number: nil,
|
|
103
|
-
# Maximum concurrent calls
|
|
65
|
+
# Maximum concurrent calls. Editable after launch.
|
|
104
66
|
max_concurrent_calls: nil,
|
|
105
67
|
# Campaign display name
|
|
106
68
|
name: nil,
|
|
107
|
-
# Scheduled start time (draft only)
|
|
108
|
-
scheduled_at: nil,
|
|
109
|
-
# Campaign type (draft only)
|
|
110
|
-
type: nil,
|
|
111
69
|
request_options: {}
|
|
112
70
|
)
|
|
113
71
|
end
|
|
@@ -116,16 +74,11 @@ module Revox
|
|
|
116
74
|
override.returns(
|
|
117
75
|
{
|
|
118
76
|
id: String,
|
|
119
|
-
assistant_id: String,
|
|
120
77
|
call_retry_config:
|
|
121
78
|
T.nilable(Revox::CampaignUpdateParams::CallRetryConfig),
|
|
122
|
-
contacts: T::Array[Revox::CampaignUpdateParams::Contact],
|
|
123
79
|
from_phone_number: T.nilable(String),
|
|
124
80
|
max_concurrent_calls: T.nilable(Float),
|
|
125
81
|
name: String,
|
|
126
|
-
scheduled_at:
|
|
127
|
-
T.nilable(Revox::CampaignUpdateParams::ScheduledAt::Variants),
|
|
128
|
-
type: Revox::CampaignUpdateParams::Type::OrSymbol,
|
|
129
82
|
request_options: Revox::RequestOptions
|
|
130
83
|
}
|
|
131
84
|
)
|
|
@@ -315,7 +268,8 @@ module Revox
|
|
|
315
268
|
sig { returns(String) }
|
|
316
269
|
attr_accessor :calling_window_start_time
|
|
317
270
|
|
|
318
|
-
# Delay between retry attempts in seconds.
|
|
271
|
+
# Delay between retry attempts in seconds. 0 retries as soon as the calling window
|
|
272
|
+
# allows. Default: 7200 (2 hours).
|
|
319
273
|
sig { returns(Integer) }
|
|
320
274
|
attr_accessor :retry_delay_seconds
|
|
321
275
|
|
|
@@ -335,7 +289,8 @@ module Revox
|
|
|
335
289
|
# timezone_override if provided). Format: 'HH:mm' (24-hour) or 'H:mma' (12-hour).
|
|
336
290
|
# Examples: '09:00', '10am'. Default: '10:00'.
|
|
337
291
|
calling_window_start_time:,
|
|
338
|
-
# Delay between retry attempts in seconds.
|
|
292
|
+
# Delay between retry attempts in seconds. 0 retries as soon as the calling window
|
|
293
|
+
# allows. Default: 7200 (2 hours).
|
|
339
294
|
retry_delay_seconds:
|
|
340
295
|
)
|
|
341
296
|
end
|
|
@@ -353,79 +308,6 @@ module Revox
|
|
|
353
308
|
end
|
|
354
309
|
end
|
|
355
310
|
end
|
|
356
|
-
|
|
357
|
-
class Contact < Revox::Internal::Type::BaseModel
|
|
358
|
-
OrHash =
|
|
359
|
-
T.type_alias do
|
|
360
|
-
T.any(
|
|
361
|
-
Revox::CampaignUpdateParams::Contact,
|
|
362
|
-
Revox::Internal::AnyHash
|
|
363
|
-
)
|
|
364
|
-
end
|
|
365
|
-
|
|
366
|
-
sig { returns(T::Hash[Symbol, String]) }
|
|
367
|
-
attr_accessor :prompt_variables
|
|
368
|
-
|
|
369
|
-
sig { returns(String) }
|
|
370
|
-
attr_accessor :to_phone_number
|
|
371
|
-
|
|
372
|
-
sig do
|
|
373
|
-
params(
|
|
374
|
-
prompt_variables: T::Hash[Symbol, String],
|
|
375
|
-
to_phone_number: String
|
|
376
|
-
).returns(T.attached_class)
|
|
377
|
-
end
|
|
378
|
-
def self.new(prompt_variables:, to_phone_number:)
|
|
379
|
-
end
|
|
380
|
-
|
|
381
|
-
sig do
|
|
382
|
-
override.returns(
|
|
383
|
-
{
|
|
384
|
-
prompt_variables: T::Hash[Symbol, String],
|
|
385
|
-
to_phone_number: String
|
|
386
|
-
}
|
|
387
|
-
)
|
|
388
|
-
end
|
|
389
|
-
def to_hash
|
|
390
|
-
end
|
|
391
|
-
end
|
|
392
|
-
|
|
393
|
-
# Scheduled start time (draft only)
|
|
394
|
-
module ScheduledAt
|
|
395
|
-
extend Revox::Internal::Type::Union
|
|
396
|
-
|
|
397
|
-
Variants = T.type_alias { T.any(Time, T.anything) }
|
|
398
|
-
|
|
399
|
-
sig do
|
|
400
|
-
override.returns(
|
|
401
|
-
T::Array[Revox::CampaignUpdateParams::ScheduledAt::Variants]
|
|
402
|
-
)
|
|
403
|
-
end
|
|
404
|
-
def self.variants
|
|
405
|
-
end
|
|
406
|
-
end
|
|
407
|
-
|
|
408
|
-
# Campaign type (draft only)
|
|
409
|
-
module Type
|
|
410
|
-
extend Revox::Internal::Type::Enum
|
|
411
|
-
|
|
412
|
-
TaggedSymbol =
|
|
413
|
-
T.type_alias { T.all(Symbol, Revox::CampaignUpdateParams::Type) }
|
|
414
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
415
|
-
|
|
416
|
-
REGULAR =
|
|
417
|
-
T.let(:regular, Revox::CampaignUpdateParams::Type::TaggedSymbol)
|
|
418
|
-
JUMP_IN =
|
|
419
|
-
T.let(:jump_in, Revox::CampaignUpdateParams::Type::TaggedSymbol)
|
|
420
|
-
|
|
421
|
-
sig do
|
|
422
|
-
override.returns(
|
|
423
|
-
T::Array[Revox::CampaignUpdateParams::Type::TaggedSymbol]
|
|
424
|
-
)
|
|
425
|
-
end
|
|
426
|
-
def self.values
|
|
427
|
-
end
|
|
428
|
-
end
|
|
429
311
|
end
|
|
430
312
|
end
|
|
431
313
|
end
|