telnyx 5.94.0 → 5.96.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 +37 -41
- data/lib/telnyx/models/ai/transcription_settings_config.rb +5 -1
- data/lib/telnyx/version.rb +1 -1
- data/rbi/telnyx/models/ai/assistant_tool.rbi +46 -48
- data/rbi/telnyx/models/ai/transcription_settings_config.rbi +10 -2
- data/sig/telnyx/models/ai/assistant_tool.rbs +44 -47
- 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: 4ceeba3b508bfcf4dd2a2fb570d02860357068f52ebd3f6f3d2c0eaa935f8ec9
|
|
4
|
+
data.tar.gz: ce1a05de07085ca6eb140129f96d6a7a9c53dd04e7897f08e2b3f343919d8acf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dc4811be0003666fab017879a09a5ac2b4dfc73d977d9d1cdfef540d0cbb0391fe53eb4d564fd6d09d9e4defe310c56ab2a8a9dc10206b836e4b38ac46110967
|
|
7
|
+
data.tar.gz: a52d0211637491562c03e39684c28f4f77e50fd0ca31fc8a62634075a3e703981bf9b3b88675b55c5ae5656d95a8babe74a76a0c361a65c17dc1a08a6f27573c
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.96.0 (2026-04-30)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v5.95.0...v5.96.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.95.0...v5.96.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* Revert "fix: stainless ([#2371](https://github.com/team-telnyx/telnyx-ruby/issues/2371))" ([01464e7](https://github.com/team-telnyx/telnyx-ruby/commit/01464e7709c1bbbac01940dbdd486b56ec1caaa4))
|
|
10
|
+
|
|
11
|
+
## 5.95.0 (2026-04-30)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v5.94.0...v5.95.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.94.0...v5.95.0)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* AI-2183: Document dynamic variable support for transcription keyterm ([823e5bd](https://github.com/team-telnyx/telnyx-ruby/commit/823e5bdaa3679a150e76631e79841514215a5847))
|
|
18
|
+
|
|
3
19
|
## 5.94.0 (2026-04-30)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v5.93.0...v5.94.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.93.0...v5.94.0)
|
data/README.md
CHANGED
|
@@ -508,28 +508,28 @@ 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
527
|
# @!attribute custom_headers
|
|
528
528
|
# Custom headers to be added to the SIP INVITE for the invite command.
|
|
529
529
|
#
|
|
530
|
-
# @return [Array<Telnyx::Models::AI::AssistantTool::Invite::
|
|
530
|
+
# @return [Array<Telnyx::Models::AI::AssistantTool::Invite::Invite::CustomHeader>, nil]
|
|
531
531
|
optional :custom_headers,
|
|
532
|
-
-> { Telnyx::Internal::Type::ArrayOf[Telnyx::AI::AssistantTool::Invite::
|
|
532
|
+
-> { Telnyx::Internal::Type::ArrayOf[Telnyx::AI::AssistantTool::Invite::Invite::CustomHeader] }
|
|
533
533
|
|
|
534
534
|
# @!attribute from
|
|
535
535
|
# Number or SIP URI placing the call.
|
|
@@ -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
558
|
# @!method initialize(custom_headers: nil, from: nil, targets: nil, voicemail_detection: nil)
|
|
563
559
|
# Some parameter documentations has been truncated, see
|
|
564
|
-
# {Telnyx::Models::AI::AssistantTool::Invite::
|
|
560
|
+
# {Telnyx::Models::AI::AssistantTool::Invite::Invite} for more details.
|
|
565
561
|
#
|
|
566
|
-
# @param custom_headers [Array<Telnyx::Models::AI::AssistantTool::Invite::
|
|
562
|
+
# @param custom_headers [Array<Telnyx::Models::AI::AssistantTool::Invite::Invite::CustomHeader>] Custom headers to be added to the SIP INVITE for the invite command.
|
|
567
563
|
#
|
|
568
564
|
# @param from [String] Number or SIP URI placing the call.
|
|
569
565
|
#
|
|
570
|
-
# @param targets [Array<Telnyx::Models::AI::AssistantTool::Invite::
|
|
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
|
|
|
@@ -37,7 +37,11 @@ module Telnyx
|
|
|
37
37
|
# @!attribute keyterm
|
|
38
38
|
# Available only for deepgram/nova-3 and deepgram/flux. A comma-separated list of
|
|
39
39
|
# key terms to boost for recognition during transcription. Helps improve accuracy
|
|
40
|
-
# for domain-specific terminology, proper nouns, or uncommon words.
|
|
40
|
+
# for domain-specific terminology, proper nouns, or uncommon words. This field may
|
|
41
|
+
# be templated with
|
|
42
|
+
# [dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables)
|
|
43
|
+
# using mustache syntax (e.g. `Telnyx,{{customer_name}},VoIP`). Variables are
|
|
44
|
+
# resolved at call time before the value is sent to the speech-to-text engine.
|
|
41
45
|
#
|
|
42
46
|
# @return [String, nil]
|
|
43
47
|
optional :keyterm, String
|
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,11 +1075,11 @@ 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
|
|
@@ -1091,7 +1089,7 @@ module Telnyx
|
|
|
1091
1089
|
returns(
|
|
1092
1090
|
T.nilable(
|
|
1093
1091
|
T::Array[
|
|
1094
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1092
|
+
Telnyx::AI::AssistantTool::Invite::Invite::CustomHeader
|
|
1095
1093
|
]
|
|
1096
1094
|
)
|
|
1097
1095
|
)
|
|
@@ -1102,7 +1100,7 @@ module Telnyx
|
|
|
1102
1100
|
params(
|
|
1103
1101
|
custom_headers:
|
|
1104
1102
|
T::Array[
|
|
1105
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1103
|
+
Telnyx::AI::AssistantTool::Invite::Invite::CustomHeader::OrHash
|
|
1106
1104
|
]
|
|
1107
1105
|
).void
|
|
1108
1106
|
end
|
|
@@ -1124,7 +1122,7 @@ module Telnyx
|
|
|
1124
1122
|
sig do
|
|
1125
1123
|
returns(
|
|
1126
1124
|
T.nilable(
|
|
1127
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1125
|
+
Telnyx::AI::AssistantTool::Invite::Invite::Targets::Variants
|
|
1128
1126
|
)
|
|
1129
1127
|
)
|
|
1130
1128
|
end
|
|
@@ -1135,7 +1133,7 @@ module Telnyx
|
|
|
1135
1133
|
sig do
|
|
1136
1134
|
returns(
|
|
1137
1135
|
T.nilable(
|
|
1138
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1136
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection
|
|
1139
1137
|
)
|
|
1140
1138
|
)
|
|
1141
1139
|
end
|
|
@@ -1144,7 +1142,7 @@ module Telnyx
|
|
|
1144
1142
|
sig do
|
|
1145
1143
|
params(
|
|
1146
1144
|
voicemail_detection:
|
|
1147
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1145
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::OrHash
|
|
1148
1146
|
).void
|
|
1149
1147
|
end
|
|
1150
1148
|
attr_writer :voicemail_detection
|
|
@@ -1153,15 +1151,15 @@ module Telnyx
|
|
|
1153
1151
|
params(
|
|
1154
1152
|
custom_headers:
|
|
1155
1153
|
T::Array[
|
|
1156
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1154
|
+
Telnyx::AI::AssistantTool::Invite::Invite::CustomHeader::OrHash
|
|
1157
1155
|
],
|
|
1158
1156
|
from: String,
|
|
1159
1157
|
targets:
|
|
1160
1158
|
T.nilable(
|
|
1161
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1159
|
+
Telnyx::AI::AssistantTool::Invite::Invite::Targets::Variants
|
|
1162
1160
|
),
|
|
1163
1161
|
voicemail_detection:
|
|
1164
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1162
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::OrHash
|
|
1165
1163
|
).returns(T.attached_class)
|
|
1166
1164
|
end
|
|
1167
1165
|
def self.new(
|
|
@@ -1187,15 +1185,15 @@ module Telnyx
|
|
|
1187
1185
|
{
|
|
1188
1186
|
custom_headers:
|
|
1189
1187
|
T::Array[
|
|
1190
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1188
|
+
Telnyx::AI::AssistantTool::Invite::Invite::CustomHeader
|
|
1191
1189
|
],
|
|
1192
1190
|
from: String,
|
|
1193
1191
|
targets:
|
|
1194
1192
|
T.nilable(
|
|
1195
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1193
|
+
Telnyx::AI::AssistantTool::Invite::Invite::Targets::Variants
|
|
1196
1194
|
),
|
|
1197
1195
|
voicemail_detection:
|
|
1198
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1196
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection
|
|
1199
1197
|
}
|
|
1200
1198
|
)
|
|
1201
1199
|
end
|
|
@@ -1206,7 +1204,7 @@ module Telnyx
|
|
|
1206
1204
|
OrHash =
|
|
1207
1205
|
T.type_alias do
|
|
1208
1206
|
T.any(
|
|
1209
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1207
|
+
Telnyx::AI::AssistantTool::Invite::Invite::CustomHeader,
|
|
1210
1208
|
Telnyx::Internal::AnyHash
|
|
1211
1209
|
)
|
|
1212
1210
|
end
|
|
@@ -1258,7 +1256,7 @@ module Telnyx
|
|
|
1258
1256
|
T.type_alias do
|
|
1259
1257
|
T.any(
|
|
1260
1258
|
T::Array[
|
|
1261
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1259
|
+
Telnyx::AI::AssistantTool::Invite::Invite::Targets::UnionMember0
|
|
1262
1260
|
],
|
|
1263
1261
|
String
|
|
1264
1262
|
)
|
|
@@ -1268,7 +1266,7 @@ module Telnyx
|
|
|
1268
1266
|
OrHash =
|
|
1269
1267
|
T.type_alias do
|
|
1270
1268
|
T.any(
|
|
1271
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1269
|
+
Telnyx::AI::AssistantTool::Invite::Invite::Targets::UnionMember0,
|
|
1272
1270
|
Telnyx::Internal::AnyHash
|
|
1273
1271
|
)
|
|
1274
1272
|
end
|
|
@@ -1303,7 +1301,7 @@ module Telnyx
|
|
|
1303
1301
|
sig do
|
|
1304
1302
|
override.returns(
|
|
1305
1303
|
T::Array[
|
|
1306
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1304
|
+
Telnyx::AI::AssistantTool::Invite::Invite::Targets::Variants
|
|
1307
1305
|
]
|
|
1308
1306
|
)
|
|
1309
1307
|
end
|
|
@@ -1313,7 +1311,7 @@ module Telnyx
|
|
|
1313
1311
|
UnionMember0Array =
|
|
1314
1312
|
T.let(
|
|
1315
1313
|
Telnyx::Internal::Type::ArrayOf[
|
|
1316
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1314
|
+
Telnyx::AI::AssistantTool::Invite::Invite::Targets::UnionMember0
|
|
1317
1315
|
],
|
|
1318
1316
|
Telnyx::Internal::Type::Converter
|
|
1319
1317
|
)
|
|
@@ -1323,7 +1321,7 @@ module Telnyx
|
|
|
1323
1321
|
OrHash =
|
|
1324
1322
|
T.type_alias do
|
|
1325
1323
|
T.any(
|
|
1326
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1324
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection,
|
|
1327
1325
|
Telnyx::Internal::AnyHash
|
|
1328
1326
|
)
|
|
1329
1327
|
end
|
|
@@ -1333,7 +1331,7 @@ module Telnyx
|
|
|
1333
1331
|
sig do
|
|
1334
1332
|
returns(
|
|
1335
1333
|
T.nilable(
|
|
1336
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1334
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::DetectionMode::OrSymbol
|
|
1337
1335
|
)
|
|
1338
1336
|
)
|
|
1339
1337
|
end
|
|
@@ -1342,7 +1340,7 @@ module Telnyx
|
|
|
1342
1340
|
sig do
|
|
1343
1341
|
params(
|
|
1344
1342
|
detection_mode:
|
|
1345
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1343
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::DetectionMode::OrSymbol
|
|
1346
1344
|
).void
|
|
1347
1345
|
end
|
|
1348
1346
|
attr_writer :detection_mode
|
|
@@ -1351,7 +1349,7 @@ module Telnyx
|
|
|
1351
1349
|
sig do
|
|
1352
1350
|
returns(
|
|
1353
1351
|
T.nilable(
|
|
1354
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1352
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected
|
|
1355
1353
|
)
|
|
1356
1354
|
)
|
|
1357
1355
|
end
|
|
@@ -1360,7 +1358,7 @@ module Telnyx
|
|
|
1360
1358
|
sig do
|
|
1361
1359
|
params(
|
|
1362
1360
|
on_voicemail_detected:
|
|
1363
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1361
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected::OrHash
|
|
1364
1362
|
).void
|
|
1365
1363
|
end
|
|
1366
1364
|
attr_writer :on_voicemail_detected
|
|
@@ -1370,9 +1368,9 @@ module Telnyx
|
|
|
1370
1368
|
sig do
|
|
1371
1369
|
params(
|
|
1372
1370
|
detection_mode:
|
|
1373
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1371
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::DetectionMode::OrSymbol,
|
|
1374
1372
|
on_voicemail_detected:
|
|
1375
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1373
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected::OrHash
|
|
1376
1374
|
).returns(T.attached_class)
|
|
1377
1375
|
end
|
|
1378
1376
|
def self.new(
|
|
@@ -1388,9 +1386,9 @@ module Telnyx
|
|
|
1388
1386
|
override.returns(
|
|
1389
1387
|
{
|
|
1390
1388
|
detection_mode:
|
|
1391
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1389
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::DetectionMode::OrSymbol,
|
|
1392
1390
|
on_voicemail_detected:
|
|
1393
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1391
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected
|
|
1394
1392
|
}
|
|
1395
1393
|
)
|
|
1396
1394
|
end
|
|
@@ -1406,7 +1404,7 @@ module Telnyx
|
|
|
1406
1404
|
T.type_alias do
|
|
1407
1405
|
T.all(
|
|
1408
1406
|
Symbol,
|
|
1409
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1407
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::DetectionMode
|
|
1410
1408
|
)
|
|
1411
1409
|
end
|
|
1412
1410
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
@@ -1414,18 +1412,18 @@ module Telnyx
|
|
|
1414
1412
|
DISABLED =
|
|
1415
1413
|
T.let(
|
|
1416
1414
|
:disabled,
|
|
1417
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1415
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::DetectionMode::TaggedSymbol
|
|
1418
1416
|
)
|
|
1419
1417
|
PREMIUM =
|
|
1420
1418
|
T.let(
|
|
1421
1419
|
:premium,
|
|
1422
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1420
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::DetectionMode::TaggedSymbol
|
|
1423
1421
|
)
|
|
1424
1422
|
|
|
1425
1423
|
sig do
|
|
1426
1424
|
override.returns(
|
|
1427
1425
|
T::Array[
|
|
1428
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1426
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::DetectionMode::TaggedSymbol
|
|
1429
1427
|
]
|
|
1430
1428
|
)
|
|
1431
1429
|
end
|
|
@@ -1437,7 +1435,7 @@ module Telnyx
|
|
|
1437
1435
|
OrHash =
|
|
1438
1436
|
T.type_alias do
|
|
1439
1437
|
T.any(
|
|
1440
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1438
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected,
|
|
1441
1439
|
Telnyx::Internal::AnyHash
|
|
1442
1440
|
)
|
|
1443
1441
|
end
|
|
@@ -1446,7 +1444,7 @@ module Telnyx
|
|
|
1446
1444
|
sig do
|
|
1447
1445
|
returns(
|
|
1448
1446
|
T.nilable(
|
|
1449
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1447
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected::Action::OrSymbol
|
|
1450
1448
|
)
|
|
1451
1449
|
)
|
|
1452
1450
|
end
|
|
@@ -1455,7 +1453,7 @@ module Telnyx
|
|
|
1455
1453
|
sig do
|
|
1456
1454
|
params(
|
|
1457
1455
|
action:
|
|
1458
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1456
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected::Action::OrSymbol
|
|
1459
1457
|
).void
|
|
1460
1458
|
end
|
|
1461
1459
|
attr_writer :action
|
|
@@ -1464,7 +1462,7 @@ module Telnyx
|
|
|
1464
1462
|
sig do
|
|
1465
1463
|
params(
|
|
1466
1464
|
action:
|
|
1467
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1465
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected::Action::OrSymbol
|
|
1468
1466
|
).returns(T.attached_class)
|
|
1469
1467
|
end
|
|
1470
1468
|
def self.new(
|
|
@@ -1477,7 +1475,7 @@ module Telnyx
|
|
|
1477
1475
|
override.returns(
|
|
1478
1476
|
{
|
|
1479
1477
|
action:
|
|
1480
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1478
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected::Action::OrSymbol
|
|
1481
1479
|
}
|
|
1482
1480
|
)
|
|
1483
1481
|
end
|
|
@@ -1492,7 +1490,7 @@ module Telnyx
|
|
|
1492
1490
|
T.type_alias do
|
|
1493
1491
|
T.all(
|
|
1494
1492
|
Symbol,
|
|
1495
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1493
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected::Action
|
|
1496
1494
|
)
|
|
1497
1495
|
end
|
|
1498
1496
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
@@ -1500,13 +1498,13 @@ module Telnyx
|
|
|
1500
1498
|
STOP_INVITE =
|
|
1501
1499
|
T.let(
|
|
1502
1500
|
:stop_invite,
|
|
1503
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1501
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected::Action::TaggedSymbol
|
|
1504
1502
|
)
|
|
1505
1503
|
|
|
1506
1504
|
sig do
|
|
1507
1505
|
override.returns(
|
|
1508
1506
|
T::Array[
|
|
1509
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
1507
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected::Action::TaggedSymbol
|
|
1510
1508
|
]
|
|
1511
1509
|
)
|
|
1512
1510
|
end
|
|
@@ -48,7 +48,11 @@ module Telnyx
|
|
|
48
48
|
|
|
49
49
|
# Available only for deepgram/nova-3 and deepgram/flux. A comma-separated list of
|
|
50
50
|
# key terms to boost for recognition during transcription. Helps improve accuracy
|
|
51
|
-
# for domain-specific terminology, proper nouns, or uncommon words.
|
|
51
|
+
# for domain-specific terminology, proper nouns, or uncommon words. This field may
|
|
52
|
+
# be templated with
|
|
53
|
+
# [dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables)
|
|
54
|
+
# using mustache syntax (e.g. `Telnyx,{{customer_name}},VoIP`). Variables are
|
|
55
|
+
# resolved at call time before the value is sent to the speech-to-text engine.
|
|
52
56
|
sig { returns(T.nilable(String)) }
|
|
53
57
|
attr_reader :keyterm
|
|
54
58
|
|
|
@@ -114,7 +118,11 @@ module Telnyx
|
|
|
114
118
|
eot_timeout_ms: nil,
|
|
115
119
|
# Available only for deepgram/nova-3 and deepgram/flux. A comma-separated list of
|
|
116
120
|
# key terms to boost for recognition during transcription. Helps improve accuracy
|
|
117
|
-
# for domain-specific terminology, proper nouns, or uncommon words.
|
|
121
|
+
# for domain-specific terminology, proper nouns, or uncommon words. This field may
|
|
122
|
+
# be templated with
|
|
123
|
+
# [dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables)
|
|
124
|
+
# using mustache syntax (e.g. `Telnyx,{{customer_name}},VoIP`). Variables are
|
|
125
|
+
# resolved at call time before the value is sent to the speech-to-text engine.
|
|
118
126
|
keyterm: nil,
|
|
119
127
|
# Available only for assemblyai/universal-streaming. Maximum duration of silence
|
|
120
128
|
# in milliseconds before forcing an end of turn.
|
|
@@ -423,65 +423,62 @@ 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::
|
|
445
|
+
custom_headers: ::Array[Telnyx::AI::AssistantTool::Invite::Invite::CustomHeader],
|
|
449
446
|
from: String,
|
|
450
|
-
targets: Telnyx::Models::AI::AssistantTool::Invite::
|
|
451
|
-
voicemail_detection: Telnyx::AI::AssistantTool::Invite::
|
|
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
|
-
attr_reader custom_headers: ::Array[Telnyx::AI::AssistantTool::Invite::
|
|
451
|
+
class Invite < Telnyx::Internal::Type::BaseModel
|
|
452
|
+
attr_reader custom_headers: ::Array[Telnyx::AI::AssistantTool::Invite::Invite::CustomHeader]?
|
|
456
453
|
|
|
457
454
|
def custom_headers=: (
|
|
458
|
-
::Array[Telnyx::AI::AssistantTool::Invite::
|
|
459
|
-
) -> ::Array[Telnyx::AI::AssistantTool::Invite::
|
|
455
|
+
::Array[Telnyx::AI::AssistantTool::Invite::Invite::CustomHeader]
|
|
456
|
+
) -> ::Array[Telnyx::AI::AssistantTool::Invite::Invite::CustomHeader]
|
|
460
457
|
|
|
461
458
|
attr_reader from: String?
|
|
462
459
|
|
|
463
460
|
def from=: (String) -> String
|
|
464
461
|
|
|
465
|
-
attr_accessor targets: Telnyx::Models::AI::AssistantTool::Invite::
|
|
462
|
+
attr_accessor targets: Telnyx::Models::AI::AssistantTool::Invite::Invite::targets?
|
|
466
463
|
|
|
467
|
-
attr_reader voicemail_detection: Telnyx::AI::AssistantTool::Invite::
|
|
464
|
+
attr_reader voicemail_detection: Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection?
|
|
468
465
|
|
|
469
466
|
def voicemail_detection=: (
|
|
470
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
471
|
-
) -> Telnyx::AI::AssistantTool::Invite::
|
|
467
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection
|
|
468
|
+
) -> Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection
|
|
472
469
|
|
|
473
470
|
def initialize: (
|
|
474
|
-
?custom_headers: ::Array[Telnyx::AI::AssistantTool::Invite::
|
|
471
|
+
?custom_headers: ::Array[Telnyx::AI::AssistantTool::Invite::Invite::CustomHeader],
|
|
475
472
|
?from: String,
|
|
476
|
-
?targets: Telnyx::Models::AI::AssistantTool::Invite::
|
|
477
|
-
?voicemail_detection: Telnyx::AI::AssistantTool::Invite::
|
|
473
|
+
?targets: Telnyx::Models::AI::AssistantTool::Invite::Invite::targets?,
|
|
474
|
+
?voicemail_detection: Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection
|
|
478
475
|
) -> void
|
|
479
476
|
|
|
480
477
|
def to_hash: -> {
|
|
481
|
-
custom_headers: ::Array[Telnyx::AI::AssistantTool::Invite::
|
|
478
|
+
custom_headers: ::Array[Telnyx::AI::AssistantTool::Invite::Invite::CustomHeader],
|
|
482
479
|
from: String,
|
|
483
|
-
targets: Telnyx::Models::AI::AssistantTool::Invite::
|
|
484
|
-
voicemail_detection: Telnyx::AI::AssistantTool::Invite::
|
|
480
|
+
targets: Telnyx::Models::AI::AssistantTool::Invite::Invite::targets?,
|
|
481
|
+
voicemail_detection: Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection
|
|
485
482
|
}
|
|
486
483
|
|
|
487
484
|
type custom_header = { name: String, value: String }
|
|
@@ -501,7 +498,7 @@ module Telnyx
|
|
|
501
498
|
end
|
|
502
499
|
|
|
503
500
|
type targets =
|
|
504
|
-
::Array[Telnyx::AI::AssistantTool::Invite::
|
|
501
|
+
::Array[Telnyx::AI::AssistantTool::Invite::Invite::Targets::UnionMember0]
|
|
505
502
|
| String
|
|
506
503
|
|
|
507
504
|
module Targets
|
|
@@ -521,38 +518,38 @@ module Telnyx
|
|
|
521
518
|
def to_hash: -> { to: String, name: String }
|
|
522
519
|
end
|
|
523
520
|
|
|
524
|
-
def self?.variants: -> ::Array[Telnyx::Models::AI::AssistantTool::Invite::
|
|
521
|
+
def self?.variants: -> ::Array[Telnyx::Models::AI::AssistantTool::Invite::Invite::targets]
|
|
525
522
|
|
|
526
523
|
UnionMember0Array: Telnyx::Internal::Type::Converter
|
|
527
524
|
end
|
|
528
525
|
|
|
529
526
|
type voicemail_detection =
|
|
530
527
|
{
|
|
531
|
-
detection_mode: Telnyx::Models::AI::AssistantTool::Invite::
|
|
532
|
-
on_voicemail_detected: Telnyx::AI::AssistantTool::Invite::
|
|
528
|
+
detection_mode: Telnyx::Models::AI::AssistantTool::Invite::Invite::VoicemailDetection::detection_mode,
|
|
529
|
+
on_voicemail_detected: Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected
|
|
533
530
|
}
|
|
534
531
|
|
|
535
532
|
class VoicemailDetection < Telnyx::Internal::Type::BaseModel
|
|
536
|
-
attr_reader detection_mode: Telnyx::Models::AI::AssistantTool::Invite::
|
|
533
|
+
attr_reader detection_mode: Telnyx::Models::AI::AssistantTool::Invite::Invite::VoicemailDetection::detection_mode?
|
|
537
534
|
|
|
538
535
|
def detection_mode=: (
|
|
539
|
-
Telnyx::Models::AI::AssistantTool::Invite::
|
|
540
|
-
) -> Telnyx::Models::AI::AssistantTool::Invite::
|
|
536
|
+
Telnyx::Models::AI::AssistantTool::Invite::Invite::VoicemailDetection::detection_mode
|
|
537
|
+
) -> Telnyx::Models::AI::AssistantTool::Invite::Invite::VoicemailDetection::detection_mode
|
|
541
538
|
|
|
542
|
-
attr_reader on_voicemail_detected: Telnyx::AI::AssistantTool::Invite::
|
|
539
|
+
attr_reader on_voicemail_detected: Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected?
|
|
543
540
|
|
|
544
541
|
def on_voicemail_detected=: (
|
|
545
|
-
Telnyx::AI::AssistantTool::Invite::
|
|
546
|
-
) -> Telnyx::AI::AssistantTool::Invite::
|
|
542
|
+
Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected
|
|
543
|
+
) -> Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected
|
|
547
544
|
|
|
548
545
|
def initialize: (
|
|
549
|
-
?detection_mode: Telnyx::Models::AI::AssistantTool::Invite::
|
|
550
|
-
?on_voicemail_detected: Telnyx::AI::AssistantTool::Invite::
|
|
546
|
+
?detection_mode: Telnyx::Models::AI::AssistantTool::Invite::Invite::VoicemailDetection::detection_mode,
|
|
547
|
+
?on_voicemail_detected: Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected
|
|
551
548
|
) -> void
|
|
552
549
|
|
|
553
550
|
def to_hash: -> {
|
|
554
|
-
detection_mode: Telnyx::Models::AI::AssistantTool::Invite::
|
|
555
|
-
on_voicemail_detected: Telnyx::AI::AssistantTool::Invite::
|
|
551
|
+
detection_mode: Telnyx::Models::AI::AssistantTool::Invite::Invite::VoicemailDetection::detection_mode,
|
|
552
|
+
on_voicemail_detected: Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected
|
|
556
553
|
}
|
|
557
554
|
|
|
558
555
|
type detection_mode = :disabled | :premium
|
|
@@ -563,27 +560,27 @@ module Telnyx
|
|
|
563
560
|
DISABLED: :disabled
|
|
564
561
|
PREMIUM: :premium
|
|
565
562
|
|
|
566
|
-
def self?.values: -> ::Array[Telnyx::Models::AI::AssistantTool::Invite::
|
|
563
|
+
def self?.values: -> ::Array[Telnyx::Models::AI::AssistantTool::Invite::Invite::VoicemailDetection::detection_mode]
|
|
567
564
|
end
|
|
568
565
|
|
|
569
566
|
type on_voicemail_detected =
|
|
570
567
|
{
|
|
571
|
-
action: Telnyx::Models::AI::AssistantTool::Invite::
|
|
568
|
+
action: Telnyx::Models::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected::action
|
|
572
569
|
}
|
|
573
570
|
|
|
574
571
|
class OnVoicemailDetected < Telnyx::Internal::Type::BaseModel
|
|
575
|
-
attr_reader action: Telnyx::Models::AI::AssistantTool::Invite::
|
|
572
|
+
attr_reader action: Telnyx::Models::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected::action?
|
|
576
573
|
|
|
577
574
|
def action=: (
|
|
578
|
-
Telnyx::Models::AI::AssistantTool::Invite::
|
|
579
|
-
) -> Telnyx::Models::AI::AssistantTool::Invite::
|
|
575
|
+
Telnyx::Models::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected::action
|
|
576
|
+
) -> Telnyx::Models::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected::action
|
|
580
577
|
|
|
581
578
|
def initialize: (
|
|
582
|
-
?action: Telnyx::Models::AI::AssistantTool::Invite::
|
|
579
|
+
?action: Telnyx::Models::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected::action
|
|
583
580
|
) -> void
|
|
584
581
|
|
|
585
582
|
def to_hash: -> {
|
|
586
|
-
action: Telnyx::Models::AI::AssistantTool::Invite::
|
|
583
|
+
action: Telnyx::Models::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected::action
|
|
587
584
|
}
|
|
588
585
|
|
|
589
586
|
type action = :stop_invite
|
|
@@ -593,7 +590,7 @@ module Telnyx
|
|
|
593
590
|
|
|
594
591
|
STOP_INVITE: :stop_invite
|
|
595
592
|
|
|
596
|
-
def self?.values: -> ::Array[Telnyx::Models::AI::AssistantTool::Invite::
|
|
593
|
+
def self?.values: -> ::Array[Telnyx::Models::AI::AssistantTool::Invite::Invite::VoicemailDetection::OnVoicemailDetected::action]
|
|
597
594
|
end
|
|
598
595
|
end
|
|
599
596
|
end
|