telnyx 5.95.0 → 5.97.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 +16 -0
- data/README.md +1 -1
- data/lib/telnyx/models/ai/assistant_tool.rb +45 -49
- data/lib/telnyx/version.rb +1 -1
- data/rbi/telnyx/models/ai/assistant_tool.rbi +54 -59
- data/sig/telnyx/models/ai/assistant_tool.rbs +47 -52
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 37930142e3066a7e6e12a55c37a5e1fae1b2cb7dc64eeea0e599bc000ae9b811
|
|
4
|
+
data.tar.gz: 2f65e5fa943c8329552600511f3e2db68b448810c09432d353299fd64b351e87
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a6a51b4037ae476aa1e76c67089174d509ec4906362a9ff8f750cca843c0f2c8e8bcc3d4b78f2e064c8f565452e2e1926bc310647f51c13b3851fab0097a0641
|
|
7
|
+
data.tar.gz: 6ed01b6c22abff8014a09d9d1be26ff4bf5af1290e8076586ad5baaf4779efe02f443358d6259ff1ff63d88c5a783280dcef99c66214c88dd9619044f02c4059
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.97.0 (2026-04-30)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v5.96.0...v5.97.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.96.0...v5.97.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* Mark 'from' as required on InviteToolConfig ([06c644e](https://github.com/team-telnyx/telnyx-ruby/commit/06c644e84739914db5e7db6dedae0caddf4377fc))
|
|
10
|
+
|
|
11
|
+
## 5.96.0 (2026-04-30)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v5.95.0...v5.96.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.95.0...v5.96.0)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* Revert "fix: stainless ([#2371](https://github.com/team-telnyx/telnyx-ruby/issues/2371))" ([01464e7](https://github.com/team-telnyx/telnyx-ruby/commit/01464e7709c1bbbac01940dbdd486b56ec1caaa4))
|
|
18
|
+
|
|
3
19
|
## 5.95.0 (2026-04-30)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v5.94.0...v5.95.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.94.0...v5.95.0)
|
data/README.md
CHANGED
|
@@ -508,34 +508,34 @@ module Telnyx
|
|
|
508
508
|
end
|
|
509
509
|
|
|
510
510
|
class Invite < Telnyx::Internal::Type::BaseModel
|
|
511
|
-
# @!attribute
|
|
511
|
+
# @!attribute invite
|
|
512
512
|
#
|
|
513
|
-
# @return [Telnyx::Models::AI::AssistantTool::Invite::
|
|
514
|
-
required :
|
|
513
|
+
# @return [Telnyx::Models::AI::AssistantTool::Invite::Invite]
|
|
514
|
+
required :invite, -> { Telnyx::AI::AssistantTool::Invite::Invite }
|
|
515
515
|
|
|
516
516
|
# @!attribute type
|
|
517
517
|
#
|
|
518
518
|
# @return [Symbol, :invite]
|
|
519
519
|
required :type, const: :invite
|
|
520
520
|
|
|
521
|
-
# @!method initialize(
|
|
522
|
-
# @param
|
|
521
|
+
# @!method initialize(invite:, type: :invite)
|
|
522
|
+
# @param invite [Telnyx::Models::AI::AssistantTool::Invite::Invite]
|
|
523
523
|
# @param type [Symbol, :invite]
|
|
524
524
|
|
|
525
|
-
# @see Telnyx::Models::AI::AssistantTool::Invite#
|
|
526
|
-
class
|
|
525
|
+
# @see Telnyx::Models::AI::AssistantTool::Invite#invite
|
|
526
|
+
class Invite < Telnyx::Internal::Type::BaseModel
|
|
527
|
+
# @!attribute from
|
|
528
|
+
# Number or SIP URI placing the call.
|
|
529
|
+
#
|
|
530
|
+
# @return [String]
|
|
531
|
+
required :from, String
|
|
532
|
+
|
|
527
533
|
# @!attribute custom_headers
|
|
528
534
|
# Custom headers to be added to the SIP INVITE for the invite command.
|
|
529
535
|
#
|
|
530
|
-
# @return [Array<Telnyx::Models::AI::AssistantTool::Invite::
|
|
536
|
+
# @return [Array<Telnyx::Models::AI::AssistantTool::Invite::Invite::CustomHeader>, nil]
|
|
531
537
|
optional :custom_headers,
|
|
532
|
-
-> { Telnyx::Internal::Type::ArrayOf[Telnyx::AI::AssistantTool::Invite::
|
|
533
|
-
|
|
534
|
-
# @!attribute from
|
|
535
|
-
# Number or SIP URI placing the call.
|
|
536
|
-
#
|
|
537
|
-
# @return [String, nil]
|
|
538
|
-
optional :from, String
|
|
538
|
+
-> { Telnyx::Internal::Type::ArrayOf[Telnyx::AI::AssistantTool::Invite::Invite::CustomHeader] }
|
|
539
539
|
|
|
540
540
|
# @!attribute targets
|
|
541
541
|
# The different possible targets of the invite. The assistant will be able to
|
|
@@ -545,31 +545,27 @@ module Telnyx
|
|
|
545
545
|
# omitted or null, the invite tool can still be configured and targets may be
|
|
546
546
|
# supplied dynamically at runtime.
|
|
547
547
|
#
|
|
548
|
-
# @return [Array<Telnyx::Models::AI::AssistantTool::Invite::
|
|
549
|
-
optional :targets,
|
|
550
|
-
union: -> {
|
|
551
|
-
Telnyx::AI::AssistantTool::Invite::InviteConfig::Targets
|
|
552
|
-
},
|
|
553
|
-
nil?: true
|
|
548
|
+
# @return [Array<Telnyx::Models::AI::AssistantTool::Invite::Invite::Targets::UnionMember0>, String, nil]
|
|
549
|
+
optional :targets, union: -> { Telnyx::AI::AssistantTool::Invite::Invite::Targets }, nil?: true
|
|
554
550
|
|
|
555
551
|
# @!attribute voicemail_detection
|
|
556
552
|
# Configuration for voicemail detection (AMD - Answering Machine Detection) on the
|
|
557
553
|
# invited call.
|
|
558
554
|
#
|
|
559
|
-
# @return [Telnyx::Models::AI::AssistantTool::Invite::
|
|
560
|
-
optional :voicemail_detection, -> { Telnyx::AI::AssistantTool::Invite::
|
|
555
|
+
# @return [Telnyx::Models::AI::AssistantTool::Invite::Invite::VoicemailDetection, nil]
|
|
556
|
+
optional :voicemail_detection, -> { Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection }
|
|
561
557
|
|
|
562
|
-
# @!method initialize(custom_headers: nil,
|
|
558
|
+
# @!method initialize(from:, custom_headers: nil, targets: nil, voicemail_detection: nil)
|
|
563
559
|
# Some parameter documentations has been truncated, see
|
|
564
|
-
# {Telnyx::Models::AI::AssistantTool::Invite::
|
|
565
|
-
#
|
|
566
|
-
# @param custom_headers [Array<Telnyx::Models::AI::AssistantTool::Invite::InviteConfig::CustomHeader>] Custom headers to be added to the SIP INVITE for the invite command.
|
|
560
|
+
# {Telnyx::Models::AI::AssistantTool::Invite::Invite} for more details.
|
|
567
561
|
#
|
|
568
562
|
# @param from [String] Number or SIP URI placing the call.
|
|
569
563
|
#
|
|
570
|
-
# @param
|
|
564
|
+
# @param custom_headers [Array<Telnyx::Models::AI::AssistantTool::Invite::Invite::CustomHeader>] Custom headers to be added to the SIP INVITE for the invite command.
|
|
565
|
+
#
|
|
566
|
+
# @param targets [Array<Telnyx::Models::AI::AssistantTool::Invite::Invite::Targets::UnionMember0>, String, nil] The different possible targets of the invite. The assistant will be able to choo
|
|
571
567
|
#
|
|
572
|
-
# @param voicemail_detection [Telnyx::Models::AI::AssistantTool::Invite::
|
|
568
|
+
# @param voicemail_detection [Telnyx::Models::AI::AssistantTool::Invite::Invite::VoicemailDetection] Configuration for voicemail detection (AMD - Answering Machine Detection) on the
|
|
573
569
|
|
|
574
570
|
class CustomHeader < Telnyx::Internal::Type::BaseModel
|
|
575
571
|
# @!attribute name
|
|
@@ -588,7 +584,7 @@ module Telnyx
|
|
|
588
584
|
|
|
589
585
|
# @!method initialize(name: nil, value: nil)
|
|
590
586
|
# Some parameter documentations has been truncated, see
|
|
591
|
-
# {Telnyx::Models::AI::AssistantTool::Invite::
|
|
587
|
+
# {Telnyx::Models::AI::AssistantTool::Invite::Invite::CustomHeader} for more
|
|
592
588
|
# details.
|
|
593
589
|
#
|
|
594
590
|
# @param name [String]
|
|
@@ -603,11 +599,11 @@ module Telnyx
|
|
|
603
599
|
# omitted or null, the invite tool can still be configured and targets may be
|
|
604
600
|
# supplied dynamically at runtime.
|
|
605
601
|
#
|
|
606
|
-
# @see Telnyx::Models::AI::AssistantTool::Invite::
|
|
602
|
+
# @see Telnyx::Models::AI::AssistantTool::Invite::Invite#targets
|
|
607
603
|
module Targets
|
|
608
604
|
extend Telnyx::Internal::Type::Union
|
|
609
605
|
|
|
610
|
-
variant -> { Telnyx::Models::AI::AssistantTool::Invite::
|
|
606
|
+
variant -> { Telnyx::Models::AI::AssistantTool::Invite::Invite::Targets::UnionMember0Array }
|
|
611
607
|
|
|
612
608
|
# A dynamic variable string like `{{ targets }}` where `targets` is returned by the dynamic variables webhook and resolves to an array of target objects at runtime.
|
|
613
609
|
variant String
|
|
@@ -632,48 +628,48 @@ module Telnyx
|
|
|
632
628
|
end
|
|
633
629
|
|
|
634
630
|
# @!method self.variants
|
|
635
|
-
# @return [Array(Array<Telnyx::Models::AI::AssistantTool::Invite::
|
|
631
|
+
# @return [Array(Array<Telnyx::Models::AI::AssistantTool::Invite::Invite::Targets::UnionMember0>, String)]
|
|
636
632
|
|
|
637
633
|
# @type [Telnyx::Internal::Type::Converter]
|
|
638
634
|
UnionMember0Array =
|
|
639
635
|
Telnyx::Internal::Type::ArrayOf[-> {
|
|
640
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
636
|
+
Telnyx::AI::AssistantTool::Invite::Invite::Targets::UnionMember0
|
|
641
637
|
}]
|
|
642
638
|
end
|
|
643
639
|
|
|
644
|
-
# @see Telnyx::Models::AI::AssistantTool::Invite::
|
|
640
|
+
# @see Telnyx::Models::AI::AssistantTool::Invite::Invite#voicemail_detection
|
|
645
641
|
class VoicemailDetection < Telnyx::Internal::Type::BaseModel
|
|
646
642
|
# @!attribute detection_mode
|
|
647
643
|
# The AMD detection mode to use. 'premium' enables premium answering machine
|
|
648
644
|
# detection. 'disabled' turns off AMD detection.
|
|
649
645
|
#
|
|
650
|
-
# @return [Symbol, Telnyx::Models::AI::AssistantTool::Invite::
|
|
646
|
+
# @return [Symbol, Telnyx::Models::AI::AssistantTool::Invite::Invite::VoicemailDetection::DetectionMode, nil]
|
|
651
647
|
optional :detection_mode,
|
|
652
|
-
enum: -> { Telnyx::AI::AssistantTool::Invite::
|
|
648
|
+
enum: -> { Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::DetectionMode }
|
|
653
649
|
|
|
654
650
|
# @!attribute on_voicemail_detected
|
|
655
651
|
# Action to take when voicemail is detected on the invited call.
|
|
656
652
|
#
|
|
657
|
-
# @return [Telnyx::Models::AI::AssistantTool::Invite::
|
|
653
|
+
# @return [Telnyx::Models::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected, nil]
|
|
658
654
|
optional :on_voicemail_detected,
|
|
659
|
-
-> { Telnyx::AI::AssistantTool::Invite::
|
|
655
|
+
-> { Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected }
|
|
660
656
|
|
|
661
657
|
# @!method initialize(detection_mode: nil, on_voicemail_detected: nil)
|
|
662
658
|
# Some parameter documentations has been truncated, see
|
|
663
|
-
# {Telnyx::Models::AI::AssistantTool::Invite::
|
|
664
|
-
#
|
|
659
|
+
# {Telnyx::Models::AI::AssistantTool::Invite::Invite::VoicemailDetection} for more
|
|
660
|
+
# details.
|
|
665
661
|
#
|
|
666
662
|
# Configuration for voicemail detection (AMD - Answering Machine Detection) on the
|
|
667
663
|
# invited call.
|
|
668
664
|
#
|
|
669
|
-
# @param detection_mode [Symbol, Telnyx::Models::AI::AssistantTool::Invite::
|
|
665
|
+
# @param detection_mode [Symbol, Telnyx::Models::AI::AssistantTool::Invite::Invite::VoicemailDetection::DetectionMode] The AMD detection mode to use. 'premium' enables premium answering machine detec
|
|
670
666
|
#
|
|
671
|
-
# @param on_voicemail_detected [Telnyx::Models::AI::AssistantTool::Invite::
|
|
667
|
+
# @param on_voicemail_detected [Telnyx::Models::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected] Action to take when voicemail is detected on the invited call.
|
|
672
668
|
|
|
673
669
|
# The AMD detection mode to use. 'premium' enables premium answering machine
|
|
674
670
|
# detection. 'disabled' turns off AMD detection.
|
|
675
671
|
#
|
|
676
|
-
# @see Telnyx::Models::AI::AssistantTool::Invite::
|
|
672
|
+
# @see Telnyx::Models::AI::AssistantTool::Invite::Invite::VoicemailDetection#detection_mode
|
|
677
673
|
module DetectionMode
|
|
678
674
|
extend Telnyx::Internal::Type::Enum
|
|
679
675
|
|
|
@@ -684,23 +680,23 @@ module Telnyx
|
|
|
684
680
|
# @return [Array<Symbol>]
|
|
685
681
|
end
|
|
686
682
|
|
|
687
|
-
# @see Telnyx::Models::AI::AssistantTool::Invite::
|
|
683
|
+
# @see Telnyx::Models::AI::AssistantTool::Invite::Invite::VoicemailDetection#on_voicemail_detected
|
|
688
684
|
class OnVoicemailDetected < Telnyx::Internal::Type::BaseModel
|
|
689
685
|
# @!attribute action
|
|
690
686
|
# The action to take when voicemail is detected.
|
|
691
687
|
#
|
|
692
|
-
# @return [Symbol, Telnyx::Models::AI::AssistantTool::Invite::
|
|
688
|
+
# @return [Symbol, Telnyx::Models::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected::Action, nil]
|
|
693
689
|
optional :action,
|
|
694
|
-
enum: -> { Telnyx::AI::AssistantTool::Invite::
|
|
690
|
+
enum: -> { Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected::Action }
|
|
695
691
|
|
|
696
692
|
# @!method initialize(action: nil)
|
|
697
693
|
# Action to take when voicemail is detected on the invited call.
|
|
698
694
|
#
|
|
699
|
-
# @param action [Symbol, Telnyx::Models::AI::AssistantTool::Invite::
|
|
695
|
+
# @param action [Symbol, Telnyx::Models::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected::Action] The action to take when voicemail is detected.
|
|
700
696
|
|
|
701
697
|
# The action to take when voicemail is detected.
|
|
702
698
|
#
|
|
703
|
-
# @see Telnyx::Models::AI::AssistantTool::Invite::
|
|
699
|
+
# @see Telnyx::Models::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected#action
|
|
704
700
|
module Action
|
|
705
701
|
extend Telnyx::Internal::Type::Enum
|
|
706
702
|
|
data/lib/telnyx/version.rb
CHANGED
|
@@ -1042,34 +1042,32 @@ module Telnyx
|
|
|
1042
1042
|
)
|
|
1043
1043
|
end
|
|
1044
1044
|
|
|
1045
|
-
sig { returns(Telnyx::AI::AssistantTool::Invite::
|
|
1046
|
-
attr_reader :
|
|
1045
|
+
sig { returns(Telnyx::AI::AssistantTool::Invite::Invite) }
|
|
1046
|
+
attr_reader :invite
|
|
1047
1047
|
|
|
1048
1048
|
sig do
|
|
1049
1049
|
params(
|
|
1050
|
-
|
|
1051
|
-
Telnyx::AI::AssistantTool::Invite::InviteConfig::OrHash
|
|
1050
|
+
invite: Telnyx::AI::AssistantTool::Invite::Invite::OrHash
|
|
1052
1051
|
).void
|
|
1053
1052
|
end
|
|
1054
|
-
attr_writer :
|
|
1053
|
+
attr_writer :invite
|
|
1055
1054
|
|
|
1056
1055
|
sig { returns(Symbol) }
|
|
1057
1056
|
attr_accessor :type
|
|
1058
1057
|
|
|
1059
1058
|
sig do
|
|
1060
1059
|
params(
|
|
1061
|
-
|
|
1062
|
-
Telnyx::AI::AssistantTool::Invite::InviteConfig::OrHash,
|
|
1060
|
+
invite: Telnyx::AI::AssistantTool::Invite::Invite::OrHash,
|
|
1063
1061
|
type: Symbol
|
|
1064
1062
|
).returns(T.attached_class)
|
|
1065
1063
|
end
|
|
1066
|
-
def self.new(
|
|
1064
|
+
def self.new(invite:, type: :invite)
|
|
1067
1065
|
end
|
|
1068
1066
|
|
|
1069
1067
|
sig do
|
|
1070
1068
|
override.returns(
|
|
1071
1069
|
{
|
|
1072
|
-
|
|
1070
|
+
invite: Telnyx::AI::AssistantTool::Invite::Invite,
|
|
1073
1071
|
type: Symbol
|
|
1074
1072
|
}
|
|
1075
1073
|
)
|
|
@@ -1077,21 +1075,25 @@ module Telnyx
|
|
|
1077
1075
|
def to_hash
|
|
1078
1076
|
end
|
|
1079
1077
|
|
|
1080
|
-
class
|
|
1078
|
+
class Invite < Telnyx::Internal::Type::BaseModel
|
|
1081
1079
|
OrHash =
|
|
1082
1080
|
T.type_alias do
|
|
1083
1081
|
T.any(
|
|
1084
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1082
|
+
Telnyx::AI::AssistantTool::Invite::Invite,
|
|
1085
1083
|
Telnyx::Internal::AnyHash
|
|
1086
1084
|
)
|
|
1087
1085
|
end
|
|
1088
1086
|
|
|
1087
|
+
# Number or SIP URI placing the call.
|
|
1088
|
+
sig { returns(String) }
|
|
1089
|
+
attr_accessor :from
|
|
1090
|
+
|
|
1089
1091
|
# Custom headers to be added to the SIP INVITE for the invite command.
|
|
1090
1092
|
sig do
|
|
1091
1093
|
returns(
|
|
1092
1094
|
T.nilable(
|
|
1093
1095
|
T::Array[
|
|
1094
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1096
|
+
Telnyx::AI::AssistantTool::Invite::Invite::CustomHeader
|
|
1095
1097
|
]
|
|
1096
1098
|
)
|
|
1097
1099
|
)
|
|
@@ -1102,19 +1104,12 @@ module Telnyx
|
|
|
1102
1104
|
params(
|
|
1103
1105
|
custom_headers:
|
|
1104
1106
|
T::Array[
|
|
1105
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1107
|
+
Telnyx::AI::AssistantTool::Invite::Invite::CustomHeader::OrHash
|
|
1106
1108
|
]
|
|
1107
1109
|
).void
|
|
1108
1110
|
end
|
|
1109
1111
|
attr_writer :custom_headers
|
|
1110
1112
|
|
|
1111
|
-
# Number or SIP URI placing the call.
|
|
1112
|
-
sig { returns(T.nilable(String)) }
|
|
1113
|
-
attr_reader :from
|
|
1114
|
-
|
|
1115
|
-
sig { params(from: String).void }
|
|
1116
|
-
attr_writer :from
|
|
1117
|
-
|
|
1118
1113
|
# The different possible targets of the invite. The assistant will be able to
|
|
1119
1114
|
# choose one of the targets to invite to the call. This can also be a dynamic
|
|
1120
1115
|
# variable string like `{{ targets }}` where `targets` is returned by the dynamic
|
|
@@ -1124,7 +1119,7 @@ module Telnyx
|
|
|
1124
1119
|
sig do
|
|
1125
1120
|
returns(
|
|
1126
1121
|
T.nilable(
|
|
1127
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1122
|
+
Telnyx::AI::AssistantTool::Invite::Invite::Targets::Variants
|
|
1128
1123
|
)
|
|
1129
1124
|
)
|
|
1130
1125
|
end
|
|
@@ -1135,7 +1130,7 @@ module Telnyx
|
|
|
1135
1130
|
sig do
|
|
1136
1131
|
returns(
|
|
1137
1132
|
T.nilable(
|
|
1138
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1133
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection
|
|
1139
1134
|
)
|
|
1140
1135
|
)
|
|
1141
1136
|
end
|
|
@@ -1144,31 +1139,31 @@ module Telnyx
|
|
|
1144
1139
|
sig do
|
|
1145
1140
|
params(
|
|
1146
1141
|
voicemail_detection:
|
|
1147
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1142
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::OrHash
|
|
1148
1143
|
).void
|
|
1149
1144
|
end
|
|
1150
1145
|
attr_writer :voicemail_detection
|
|
1151
1146
|
|
|
1152
1147
|
sig do
|
|
1153
1148
|
params(
|
|
1149
|
+
from: String,
|
|
1154
1150
|
custom_headers:
|
|
1155
1151
|
T::Array[
|
|
1156
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1152
|
+
Telnyx::AI::AssistantTool::Invite::Invite::CustomHeader::OrHash
|
|
1157
1153
|
],
|
|
1158
|
-
from: String,
|
|
1159
1154
|
targets:
|
|
1160
1155
|
T.nilable(
|
|
1161
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1156
|
+
Telnyx::AI::AssistantTool::Invite::Invite::Targets::Variants
|
|
1162
1157
|
),
|
|
1163
1158
|
voicemail_detection:
|
|
1164
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1159
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::OrHash
|
|
1165
1160
|
).returns(T.attached_class)
|
|
1166
1161
|
end
|
|
1167
1162
|
def self.new(
|
|
1163
|
+
# Number or SIP URI placing the call.
|
|
1164
|
+
from:,
|
|
1168
1165
|
# Custom headers to be added to the SIP INVITE for the invite command.
|
|
1169
1166
|
custom_headers: nil,
|
|
1170
|
-
# Number or SIP URI placing the call.
|
|
1171
|
-
from: nil,
|
|
1172
1167
|
# The different possible targets of the invite. The assistant will be able to
|
|
1173
1168
|
# choose one of the targets to invite to the call. This can also be a dynamic
|
|
1174
1169
|
# variable string like `{{ targets }}` where `targets` is returned by the dynamic
|
|
@@ -1185,17 +1180,17 @@ module Telnyx
|
|
|
1185
1180
|
sig do
|
|
1186
1181
|
override.returns(
|
|
1187
1182
|
{
|
|
1183
|
+
from: String,
|
|
1188
1184
|
custom_headers:
|
|
1189
1185
|
T::Array[
|
|
1190
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1186
|
+
Telnyx::AI::AssistantTool::Invite::Invite::CustomHeader
|
|
1191
1187
|
],
|
|
1192
|
-
from: String,
|
|
1193
1188
|
targets:
|
|
1194
1189
|
T.nilable(
|
|
1195
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1190
|
+
Telnyx::AI::AssistantTool::Invite::Invite::Targets::Variants
|
|
1196
1191
|
),
|
|
1197
1192
|
voicemail_detection:
|
|
1198
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1193
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection
|
|
1199
1194
|
}
|
|
1200
1195
|
)
|
|
1201
1196
|
end
|
|
@@ -1206,7 +1201,7 @@ module Telnyx
|
|
|
1206
1201
|
OrHash =
|
|
1207
1202
|
T.type_alias do
|
|
1208
1203
|
T.any(
|
|
1209
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1204
|
+
Telnyx::AI::AssistantTool::Invite::Invite::CustomHeader,
|
|
1210
1205
|
Telnyx::Internal::AnyHash
|
|
1211
1206
|
)
|
|
1212
1207
|
end
|
|
@@ -1258,7 +1253,7 @@ module Telnyx
|
|
|
1258
1253
|
T.type_alias do
|
|
1259
1254
|
T.any(
|
|
1260
1255
|
T::Array[
|
|
1261
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1256
|
+
Telnyx::AI::AssistantTool::Invite::Invite::Targets::UnionMember0
|
|
1262
1257
|
],
|
|
1263
1258
|
String
|
|
1264
1259
|
)
|
|
@@ -1268,7 +1263,7 @@ module Telnyx
|
|
|
1268
1263
|
OrHash =
|
|
1269
1264
|
T.type_alias do
|
|
1270
1265
|
T.any(
|
|
1271
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1266
|
+
Telnyx::AI::AssistantTool::Invite::Invite::Targets::UnionMember0,
|
|
1272
1267
|
Telnyx::Internal::AnyHash
|
|
1273
1268
|
)
|
|
1274
1269
|
end
|
|
@@ -1303,7 +1298,7 @@ module Telnyx
|
|
|
1303
1298
|
sig do
|
|
1304
1299
|
override.returns(
|
|
1305
1300
|
T::Array[
|
|
1306
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1301
|
+
Telnyx::AI::AssistantTool::Invite::Invite::Targets::Variants
|
|
1307
1302
|
]
|
|
1308
1303
|
)
|
|
1309
1304
|
end
|
|
@@ -1313,7 +1308,7 @@ module Telnyx
|
|
|
1313
1308
|
UnionMember0Array =
|
|
1314
1309
|
T.let(
|
|
1315
1310
|
Telnyx::Internal::Type::ArrayOf[
|
|
1316
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1311
|
+
Telnyx::AI::AssistantTool::Invite::Invite::Targets::UnionMember0
|
|
1317
1312
|
],
|
|
1318
1313
|
Telnyx::Internal::Type::Converter
|
|
1319
1314
|
)
|
|
@@ -1323,7 +1318,7 @@ module Telnyx
|
|
|
1323
1318
|
OrHash =
|
|
1324
1319
|
T.type_alias do
|
|
1325
1320
|
T.any(
|
|
1326
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1321
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection,
|
|
1327
1322
|
Telnyx::Internal::AnyHash
|
|
1328
1323
|
)
|
|
1329
1324
|
end
|
|
@@ -1333,7 +1328,7 @@ module Telnyx
|
|
|
1333
1328
|
sig do
|
|
1334
1329
|
returns(
|
|
1335
1330
|
T.nilable(
|
|
1336
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1331
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::DetectionMode::OrSymbol
|
|
1337
1332
|
)
|
|
1338
1333
|
)
|
|
1339
1334
|
end
|
|
@@ -1342,7 +1337,7 @@ module Telnyx
|
|
|
1342
1337
|
sig do
|
|
1343
1338
|
params(
|
|
1344
1339
|
detection_mode:
|
|
1345
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1340
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::DetectionMode::OrSymbol
|
|
1346
1341
|
).void
|
|
1347
1342
|
end
|
|
1348
1343
|
attr_writer :detection_mode
|
|
@@ -1351,7 +1346,7 @@ module Telnyx
|
|
|
1351
1346
|
sig do
|
|
1352
1347
|
returns(
|
|
1353
1348
|
T.nilable(
|
|
1354
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1349
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected
|
|
1355
1350
|
)
|
|
1356
1351
|
)
|
|
1357
1352
|
end
|
|
@@ -1360,7 +1355,7 @@ module Telnyx
|
|
|
1360
1355
|
sig do
|
|
1361
1356
|
params(
|
|
1362
1357
|
on_voicemail_detected:
|
|
1363
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1358
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected::OrHash
|
|
1364
1359
|
).void
|
|
1365
1360
|
end
|
|
1366
1361
|
attr_writer :on_voicemail_detected
|
|
@@ -1370,9 +1365,9 @@ module Telnyx
|
|
|
1370
1365
|
sig do
|
|
1371
1366
|
params(
|
|
1372
1367
|
detection_mode:
|
|
1373
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1368
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::DetectionMode::OrSymbol,
|
|
1374
1369
|
on_voicemail_detected:
|
|
1375
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1370
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected::OrHash
|
|
1376
1371
|
).returns(T.attached_class)
|
|
1377
1372
|
end
|
|
1378
1373
|
def self.new(
|
|
@@ -1388,9 +1383,9 @@ module Telnyx
|
|
|
1388
1383
|
override.returns(
|
|
1389
1384
|
{
|
|
1390
1385
|
detection_mode:
|
|
1391
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1386
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::DetectionMode::OrSymbol,
|
|
1392
1387
|
on_voicemail_detected:
|
|
1393
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1388
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected
|
|
1394
1389
|
}
|
|
1395
1390
|
)
|
|
1396
1391
|
end
|
|
@@ -1406,7 +1401,7 @@ module Telnyx
|
|
|
1406
1401
|
T.type_alias do
|
|
1407
1402
|
T.all(
|
|
1408
1403
|
Symbol,
|
|
1409
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1404
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::DetectionMode
|
|
1410
1405
|
)
|
|
1411
1406
|
end
|
|
1412
1407
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
@@ -1414,18 +1409,18 @@ module Telnyx
|
|
|
1414
1409
|
DISABLED =
|
|
1415
1410
|
T.let(
|
|
1416
1411
|
:disabled,
|
|
1417
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1412
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::DetectionMode::TaggedSymbol
|
|
1418
1413
|
)
|
|
1419
1414
|
PREMIUM =
|
|
1420
1415
|
T.let(
|
|
1421
1416
|
:premium,
|
|
1422
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1417
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::DetectionMode::TaggedSymbol
|
|
1423
1418
|
)
|
|
1424
1419
|
|
|
1425
1420
|
sig do
|
|
1426
1421
|
override.returns(
|
|
1427
1422
|
T::Array[
|
|
1428
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1423
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::DetectionMode::TaggedSymbol
|
|
1429
1424
|
]
|
|
1430
1425
|
)
|
|
1431
1426
|
end
|
|
@@ -1437,7 +1432,7 @@ module Telnyx
|
|
|
1437
1432
|
OrHash =
|
|
1438
1433
|
T.type_alias do
|
|
1439
1434
|
T.any(
|
|
1440
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1435
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected,
|
|
1441
1436
|
Telnyx::Internal::AnyHash
|
|
1442
1437
|
)
|
|
1443
1438
|
end
|
|
@@ -1446,7 +1441,7 @@ module Telnyx
|
|
|
1446
1441
|
sig do
|
|
1447
1442
|
returns(
|
|
1448
1443
|
T.nilable(
|
|
1449
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1444
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected::Action::OrSymbol
|
|
1450
1445
|
)
|
|
1451
1446
|
)
|
|
1452
1447
|
end
|
|
@@ -1455,7 +1450,7 @@ module Telnyx
|
|
|
1455
1450
|
sig do
|
|
1456
1451
|
params(
|
|
1457
1452
|
action:
|
|
1458
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1453
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected::Action::OrSymbol
|
|
1459
1454
|
).void
|
|
1460
1455
|
end
|
|
1461
1456
|
attr_writer :action
|
|
@@ -1464,7 +1459,7 @@ module Telnyx
|
|
|
1464
1459
|
sig do
|
|
1465
1460
|
params(
|
|
1466
1461
|
action:
|
|
1467
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1462
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected::Action::OrSymbol
|
|
1468
1463
|
).returns(T.attached_class)
|
|
1469
1464
|
end
|
|
1470
1465
|
def self.new(
|
|
@@ -1477,7 +1472,7 @@ module Telnyx
|
|
|
1477
1472
|
override.returns(
|
|
1478
1473
|
{
|
|
1479
1474
|
action:
|
|
1480
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1475
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected::Action::OrSymbol
|
|
1481
1476
|
}
|
|
1482
1477
|
)
|
|
1483
1478
|
end
|
|
@@ -1492,7 +1487,7 @@ module Telnyx
|
|
|
1492
1487
|
T.type_alias do
|
|
1493
1488
|
T.all(
|
|
1494
1489
|
Symbol,
|
|
1495
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1490
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected::Action
|
|
1496
1491
|
)
|
|
1497
1492
|
end
|
|
1498
1493
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
@@ -1500,13 +1495,13 @@ module Telnyx
|
|
|
1500
1495
|
STOP_INVITE =
|
|
1501
1496
|
T.let(
|
|
1502
1497
|
:stop_invite,
|
|
1503
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1498
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected::Action::TaggedSymbol
|
|
1504
1499
|
)
|
|
1505
1500
|
|
|
1506
1501
|
sig do
|
|
1507
1502
|
override.returns(
|
|
1508
1503
|
T::Array[
|
|
1509
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1504
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected::Action::TaggedSymbol
|
|
1510
1505
|
]
|
|
1511
1506
|
)
|
|
1512
1507
|
end
|
|
@@ -423,65 +423,60 @@ module Telnyx
|
|
|
423
423
|
end
|
|
424
424
|
|
|
425
425
|
type invite =
|
|
426
|
-
{
|
|
427
|
-
invite_config: Telnyx::AI::AssistantTool::Invite::InviteConfig,
|
|
428
|
-
type: :invite
|
|
429
|
-
}
|
|
426
|
+
{ invite: Telnyx::AI::AssistantTool::Invite::Invite, type: :invite }
|
|
430
427
|
|
|
431
428
|
class Invite < Telnyx::Internal::Type::BaseModel
|
|
432
|
-
attr_accessor
|
|
429
|
+
attr_accessor invite: Telnyx::AI::AssistantTool::Invite::Invite
|
|
433
430
|
|
|
434
431
|
attr_accessor type: :invite
|
|
435
432
|
|
|
436
433
|
def initialize: (
|
|
437
|
-
|
|
434
|
+
invite: Telnyx::AI::AssistantTool::Invite::Invite,
|
|
438
435
|
?type: :invite
|
|
439
436
|
) -> void
|
|
440
437
|
|
|
441
438
|
def to_hash: -> {
|
|
442
|
-
|
|
439
|
+
invite: Telnyx::AI::AssistantTool::Invite::Invite,
|
|
443
440
|
type: :invite
|
|
444
441
|
}
|
|
445
442
|
|
|
446
|
-
type
|
|
443
|
+
type invite =
|
|
447
444
|
{
|
|
448
|
-
custom_headers: ::Array[Telnyx::AI::AssistantTool::Invite::InviteConfig::CustomHeader],
|
|
449
445
|
from: String,
|
|
450
|
-
|
|
451
|
-
|
|
446
|
+
custom_headers: ::Array[Telnyx::AI::AssistantTool::Invite::Invite::CustomHeader],
|
|
447
|
+
targets: Telnyx::Models::AI::AssistantTool::Invite::Invite::targets?,
|
|
448
|
+
voicemail_detection: Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection
|
|
452
449
|
}
|
|
453
450
|
|
|
454
|
-
class
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
def custom_headers=: (
|
|
458
|
-
::Array[Telnyx::AI::AssistantTool::Invite::InviteConfig::CustomHeader]
|
|
459
|
-
) -> ::Array[Telnyx::AI::AssistantTool::Invite::InviteConfig::CustomHeader]
|
|
451
|
+
class Invite < Telnyx::Internal::Type::BaseModel
|
|
452
|
+
attr_accessor from: String
|
|
460
453
|
|
|
461
|
-
attr_reader
|
|
454
|
+
attr_reader custom_headers: ::Array[Telnyx::AI::AssistantTool::Invite::Invite::CustomHeader]?
|
|
462
455
|
|
|
463
|
-
def
|
|
456
|
+
def custom_headers=: (
|
|
457
|
+
::Array[Telnyx::AI::AssistantTool::Invite::Invite::CustomHeader]
|
|
458
|
+
) -> ::Array[Telnyx::AI::AssistantTool::Invite::Invite::CustomHeader]
|
|
464
459
|
|
|
465
|
-
attr_accessor targets: Telnyx::Models::AI::AssistantTool::Invite::
|
|
460
|
+
attr_accessor targets: Telnyx::Models::AI::AssistantTool::Invite::Invite::targets?
|
|
466
461
|
|
|
467
|
-
attr_reader voicemail_detection: Telnyx::AI::AssistantTool::Invite::
|
|
462
|
+
attr_reader voicemail_detection: Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection?
|
|
468
463
|
|
|
469
464
|
def voicemail_detection=: (
|
|
470
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
471
|
-
) -> Telnyx::AI::AssistantTool::Invite::
|
|
465
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection
|
|
466
|
+
) -> Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection
|
|
472
467
|
|
|
473
468
|
def initialize: (
|
|
474
|
-
|
|
475
|
-
?
|
|
476
|
-
?targets: Telnyx::Models::AI::AssistantTool::Invite::
|
|
477
|
-
?voicemail_detection: Telnyx::AI::AssistantTool::Invite::
|
|
469
|
+
from: String,
|
|
470
|
+
?custom_headers: ::Array[Telnyx::AI::AssistantTool::Invite::Invite::CustomHeader],
|
|
471
|
+
?targets: Telnyx::Models::AI::AssistantTool::Invite::Invite::targets?,
|
|
472
|
+
?voicemail_detection: Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection
|
|
478
473
|
) -> void
|
|
479
474
|
|
|
480
475
|
def to_hash: -> {
|
|
481
|
-
custom_headers: ::Array[Telnyx::AI::AssistantTool::Invite::InviteConfig::CustomHeader],
|
|
482
476
|
from: String,
|
|
483
|
-
|
|
484
|
-
|
|
477
|
+
custom_headers: ::Array[Telnyx::AI::AssistantTool::Invite::Invite::CustomHeader],
|
|
478
|
+
targets: Telnyx::Models::AI::AssistantTool::Invite::Invite::targets?,
|
|
479
|
+
voicemail_detection: Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection
|
|
485
480
|
}
|
|
486
481
|
|
|
487
482
|
type custom_header = { name: String, value: String }
|
|
@@ -501,7 +496,7 @@ module Telnyx
|
|
|
501
496
|
end
|
|
502
497
|
|
|
503
498
|
type targets =
|
|
504
|
-
::Array[Telnyx::AI::AssistantTool::Invite::
|
|
499
|
+
::Array[Telnyx::AI::AssistantTool::Invite::Invite::Targets::UnionMember0]
|
|
505
500
|
| String
|
|
506
501
|
|
|
507
502
|
module Targets
|
|
@@ -521,38 +516,38 @@ module Telnyx
|
|
|
521
516
|
def to_hash: -> { to: String, name: String }
|
|
522
517
|
end
|
|
523
518
|
|
|
524
|
-
def self?.variants: -> ::Array[Telnyx::Models::AI::AssistantTool::Invite::
|
|
519
|
+
def self?.variants: -> ::Array[Telnyx::Models::AI::AssistantTool::Invite::Invite::targets]
|
|
525
520
|
|
|
526
521
|
UnionMember0Array: Telnyx::Internal::Type::Converter
|
|
527
522
|
end
|
|
528
523
|
|
|
529
524
|
type voicemail_detection =
|
|
530
525
|
{
|
|
531
|
-
detection_mode: Telnyx::Models::AI::AssistantTool::Invite::
|
|
532
|
-
on_voicemail_detected: Telnyx::AI::AssistantTool::Invite::
|
|
526
|
+
detection_mode: Telnyx::Models::AI::AssistantTool::Invite::Invite::VoicemailDetection::detection_mode,
|
|
527
|
+
on_voicemail_detected: Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected
|
|
533
528
|
}
|
|
534
529
|
|
|
535
530
|
class VoicemailDetection < Telnyx::Internal::Type::BaseModel
|
|
536
|
-
attr_reader detection_mode: Telnyx::Models::AI::AssistantTool::Invite::
|
|
531
|
+
attr_reader detection_mode: Telnyx::Models::AI::AssistantTool::Invite::Invite::VoicemailDetection::detection_mode?
|
|
537
532
|
|
|
538
533
|
def detection_mode=: (
|
|
539
|
-
Telnyx::Models::AI::AssistantTool::Invite::
|
|
540
|
-
) -> Telnyx::Models::AI::AssistantTool::Invite::
|
|
534
|
+
Telnyx::Models::AI::AssistantTool::Invite::Invite::VoicemailDetection::detection_mode
|
|
535
|
+
) -> Telnyx::Models::AI::AssistantTool::Invite::Invite::VoicemailDetection::detection_mode
|
|
541
536
|
|
|
542
|
-
attr_reader on_voicemail_detected: Telnyx::AI::AssistantTool::Invite::
|
|
537
|
+
attr_reader on_voicemail_detected: Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected?
|
|
543
538
|
|
|
544
539
|
def on_voicemail_detected=: (
|
|
545
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
546
|
-
) -> Telnyx::AI::AssistantTool::Invite::
|
|
540
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected
|
|
541
|
+
) -> Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected
|
|
547
542
|
|
|
548
543
|
def initialize: (
|
|
549
|
-
?detection_mode: Telnyx::Models::AI::AssistantTool::Invite::
|
|
550
|
-
?on_voicemail_detected: Telnyx::AI::AssistantTool::Invite::
|
|
544
|
+
?detection_mode: Telnyx::Models::AI::AssistantTool::Invite::Invite::VoicemailDetection::detection_mode,
|
|
545
|
+
?on_voicemail_detected: Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected
|
|
551
546
|
) -> void
|
|
552
547
|
|
|
553
548
|
def to_hash: -> {
|
|
554
|
-
detection_mode: Telnyx::Models::AI::AssistantTool::Invite::
|
|
555
|
-
on_voicemail_detected: Telnyx::AI::AssistantTool::Invite::
|
|
549
|
+
detection_mode: Telnyx::Models::AI::AssistantTool::Invite::Invite::VoicemailDetection::detection_mode,
|
|
550
|
+
on_voicemail_detected: Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected
|
|
556
551
|
}
|
|
557
552
|
|
|
558
553
|
type detection_mode = :disabled | :premium
|
|
@@ -563,27 +558,27 @@ module Telnyx
|
|
|
563
558
|
DISABLED: :disabled
|
|
564
559
|
PREMIUM: :premium
|
|
565
560
|
|
|
566
|
-
def self?.values: -> ::Array[Telnyx::Models::AI::AssistantTool::Invite::
|
|
561
|
+
def self?.values: -> ::Array[Telnyx::Models::AI::AssistantTool::Invite::Invite::VoicemailDetection::detection_mode]
|
|
567
562
|
end
|
|
568
563
|
|
|
569
564
|
type on_voicemail_detected =
|
|
570
565
|
{
|
|
571
|
-
action: Telnyx::Models::AI::AssistantTool::Invite::
|
|
566
|
+
action: Telnyx::Models::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected::action
|
|
572
567
|
}
|
|
573
568
|
|
|
574
569
|
class OnVoicemailDetected < Telnyx::Internal::Type::BaseModel
|
|
575
|
-
attr_reader action: Telnyx::Models::AI::AssistantTool::Invite::
|
|
570
|
+
attr_reader action: Telnyx::Models::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected::action?
|
|
576
571
|
|
|
577
572
|
def action=: (
|
|
578
|
-
Telnyx::Models::AI::AssistantTool::Invite::
|
|
579
|
-
) -> Telnyx::Models::AI::AssistantTool::Invite::
|
|
573
|
+
Telnyx::Models::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected::action
|
|
574
|
+
) -> Telnyx::Models::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected::action
|
|
580
575
|
|
|
581
576
|
def initialize: (
|
|
582
|
-
?action: Telnyx::Models::AI::AssistantTool::Invite::
|
|
577
|
+
?action: Telnyx::Models::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected::action
|
|
583
578
|
) -> void
|
|
584
579
|
|
|
585
580
|
def to_hash: -> {
|
|
586
|
-
action: Telnyx::Models::AI::AssistantTool::Invite::
|
|
581
|
+
action: Telnyx::Models::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected::action
|
|
587
582
|
}
|
|
588
583
|
|
|
589
584
|
type action = :stop_invite
|
|
@@ -593,7 +588,7 @@ module Telnyx
|
|
|
593
588
|
|
|
594
589
|
STOP_INVITE: :stop_invite
|
|
595
590
|
|
|
596
|
-
def self?.values: -> ::Array[Telnyx::Models::AI::AssistantTool::Invite::
|
|
591
|
+
def self?.values: -> ::Array[Telnyx::Models::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected::action]
|
|
597
592
|
end
|
|
598
593
|
end
|
|
599
594
|
end
|