telnyx 5.96.0 → 5.98.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 +9 -9
- data/lib/telnyx/models/ai/observability.rb +57 -1
- data/lib/telnyx/models/ai/observability_req.rb +57 -1
- data/lib/telnyx/version.rb +1 -1
- data/rbi/telnyx/models/ai/assistant_tool.rbi +8 -11
- data/rbi/telnyx/models/ai/observability.rbi +85 -0
- data/rbi/telnyx/models/ai/observability_req.rbi +86 -0
- data/sig/telnyx/models/ai/assistant_tool.rbs +5 -7
- data/sig/telnyx/models/ai/observability.rbs +41 -0
- data/sig/telnyx/models/ai/observability_req.rbs +41 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: efa3812eaa3e94c92113f3e17eb858fb0a786477044d0348bf8851c331228195
|
|
4
|
+
data.tar.gz: 3a9cfe9c52cc8bcb557c876327bf7f5abd9fe9986beb24055c242533a1d86fdd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a365cf62c86bf3703c1483cba2ed22cf25d4a42b5f1130525cd51980c07987fcdffcba5b693cc972ad7cb1fe63474ecf1ea142aab05fa87aa78798509ea2a3f7
|
|
7
|
+
data.tar.gz: 447ed657855616fd05194b2ec5fd3d0c7db16f0fc6c269c5efe7af4077f49a584b26d368354f77afef16faa6c962ae5348b68c60db52bbf0af62064778dd09e4
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.98.0 (2026-05-03)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v5.97.0...v5.98.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.97.0...v5.98.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* Update observability ([99e3f4b](https://github.com/team-telnyx/telnyx-ruby/commit/99e3f4b3a421178714aa3f17dae81e306034aba6))
|
|
10
|
+
|
|
11
|
+
## 5.97.0 (2026-04-30)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v5.96.0...v5.97.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.96.0...v5.97.0)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* Mark 'from' as required on InviteToolConfig ([06c644e](https://github.com/team-telnyx/telnyx-ruby/commit/06c644e84739914db5e7db6dedae0caddf4377fc))
|
|
18
|
+
|
|
3
19
|
## 5.96.0 (2026-04-30)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v5.95.0...v5.96.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.95.0...v5.96.0)
|
data/README.md
CHANGED
|
@@ -524,6 +524,12 @@ module Telnyx
|
|
|
524
524
|
|
|
525
525
|
# @see Telnyx::Models::AI::AssistantTool::Invite#invite
|
|
526
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
|
#
|
|
@@ -531,12 +537,6 @@ module Telnyx
|
|
|
531
537
|
optional :custom_headers,
|
|
532
538
|
-> { Telnyx::Internal::Type::ArrayOf[Telnyx::AI::AssistantTool::Invite::Invite::CustomHeader] }
|
|
533
539
|
|
|
534
|
-
# @!attribute from
|
|
535
|
-
# Number or SIP URI placing the call.
|
|
536
|
-
#
|
|
537
|
-
# @return [String, nil]
|
|
538
|
-
optional :from, String
|
|
539
|
-
|
|
540
540
|
# @!attribute targets
|
|
541
541
|
# The different possible targets of the invite. The assistant will be able to
|
|
542
542
|
# choose one of the targets to invite to the call. This can also be a dynamic
|
|
@@ -555,14 +555,14 @@ module Telnyx
|
|
|
555
555
|
# @return [Telnyx::Models::AI::AssistantTool::Invite::Invite::VoicemailDetection, nil]
|
|
556
556
|
optional :voicemail_detection, -> { Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection }
|
|
557
557
|
|
|
558
|
-
# @!method initialize(custom_headers: nil,
|
|
558
|
+
# @!method initialize(from:, custom_headers: nil, targets: nil, voicemail_detection: nil)
|
|
559
559
|
# Some parameter documentations has been truncated, see
|
|
560
560
|
# {Telnyx::Models::AI::AssistantTool::Invite::Invite} for more details.
|
|
561
561
|
#
|
|
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.
|
|
563
|
-
#
|
|
564
562
|
# @param from [String] Number or SIP URI placing the call.
|
|
565
563
|
#
|
|
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
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
|
|
567
567
|
#
|
|
568
568
|
# @param voicemail_detection [Telnyx::Models::AI::AssistantTool::Invite::Invite::VoicemailDetection] Configuration for voicemail detection (AMD - Answering Machine Detection) on the
|
|
@@ -9,6 +9,31 @@ module Telnyx
|
|
|
9
9
|
# @return [String, nil]
|
|
10
10
|
optional :host, String
|
|
11
11
|
|
|
12
|
+
# @!attribute prompt_label
|
|
13
|
+
#
|
|
14
|
+
# @return [String, nil]
|
|
15
|
+
optional :prompt_label, String
|
|
16
|
+
|
|
17
|
+
# @!attribute prompt_name
|
|
18
|
+
#
|
|
19
|
+
# @return [String, nil]
|
|
20
|
+
optional :prompt_name, String
|
|
21
|
+
|
|
22
|
+
# @!attribute prompt_sync
|
|
23
|
+
# Whether to auto-publish the assistant's instructions as a Langfuse prompt.
|
|
24
|
+
#
|
|
25
|
+
# When ENABLED + prompt_name set, every assistant create/update pushes
|
|
26
|
+
# `instructions` to Langfuse via create_prompt and stores the returned version in
|
|
27
|
+
# prompt_version.
|
|
28
|
+
#
|
|
29
|
+
# @return [Symbol, Telnyx::Models::AI::Observability::PromptSync, nil]
|
|
30
|
+
optional :prompt_sync, enum: -> { Telnyx::AI::Observability::PromptSync }
|
|
31
|
+
|
|
32
|
+
# @!attribute prompt_version
|
|
33
|
+
#
|
|
34
|
+
# @return [Integer, nil]
|
|
35
|
+
optional :prompt_version, Integer
|
|
36
|
+
|
|
12
37
|
# @!attribute public_key_ref
|
|
13
38
|
#
|
|
14
39
|
# @return [String, nil]
|
|
@@ -24,12 +49,43 @@ module Telnyx
|
|
|
24
49
|
# @return [Symbol, Telnyx::Models::AI::Observability::Status, nil]
|
|
25
50
|
optional :status, enum: -> { Telnyx::AI::Observability::Status }
|
|
26
51
|
|
|
27
|
-
# @!method initialize(host: nil, public_key_ref: nil, secret_key_ref: nil, status: nil)
|
|
52
|
+
# @!method initialize(host: nil, prompt_label: nil, prompt_name: nil, prompt_sync: nil, prompt_version: nil, public_key_ref: nil, secret_key_ref: nil, status: nil)
|
|
53
|
+
# Some parameter documentations has been truncated, see
|
|
54
|
+
# {Telnyx::Models::AI::Observability} for more details.
|
|
55
|
+
#
|
|
28
56
|
# @param host [String]
|
|
57
|
+
#
|
|
58
|
+
# @param prompt_label [String]
|
|
59
|
+
#
|
|
60
|
+
# @param prompt_name [String]
|
|
61
|
+
#
|
|
62
|
+
# @param prompt_sync [Symbol, Telnyx::Models::AI::Observability::PromptSync] Whether to auto-publish the assistant's instructions as a Langfuse prompt.
|
|
63
|
+
#
|
|
64
|
+
# @param prompt_version [Integer]
|
|
65
|
+
#
|
|
29
66
|
# @param public_key_ref [String]
|
|
67
|
+
#
|
|
30
68
|
# @param secret_key_ref [String]
|
|
69
|
+
#
|
|
31
70
|
# @param status [Symbol, Telnyx::Models::AI::Observability::Status]
|
|
32
71
|
|
|
72
|
+
# Whether to auto-publish the assistant's instructions as a Langfuse prompt.
|
|
73
|
+
#
|
|
74
|
+
# When ENABLED + prompt_name set, every assistant create/update pushes
|
|
75
|
+
# `instructions` to Langfuse via create_prompt and stores the returned version in
|
|
76
|
+
# prompt_version.
|
|
77
|
+
#
|
|
78
|
+
# @see Telnyx::Models::AI::Observability#prompt_sync
|
|
79
|
+
module PromptSync
|
|
80
|
+
extend Telnyx::Internal::Type::Enum
|
|
81
|
+
|
|
82
|
+
ENABLED = :enabled
|
|
83
|
+
DISABLED = :disabled
|
|
84
|
+
|
|
85
|
+
# @!method self.values
|
|
86
|
+
# @return [Array<Symbol>]
|
|
87
|
+
end
|
|
88
|
+
|
|
33
89
|
# @see Telnyx::Models::AI::Observability#status
|
|
34
90
|
module Status
|
|
35
91
|
extend Telnyx::Internal::Type::Enum
|
|
@@ -9,6 +9,31 @@ module Telnyx
|
|
|
9
9
|
# @return [String, nil]
|
|
10
10
|
optional :host, String
|
|
11
11
|
|
|
12
|
+
# @!attribute prompt_label
|
|
13
|
+
#
|
|
14
|
+
# @return [String, nil]
|
|
15
|
+
optional :prompt_label, String
|
|
16
|
+
|
|
17
|
+
# @!attribute prompt_name
|
|
18
|
+
#
|
|
19
|
+
# @return [String, nil]
|
|
20
|
+
optional :prompt_name, String
|
|
21
|
+
|
|
22
|
+
# @!attribute prompt_sync
|
|
23
|
+
# Whether to auto-publish the assistant's instructions as a Langfuse prompt.
|
|
24
|
+
#
|
|
25
|
+
# When ENABLED + prompt_name set, every assistant create/update pushes
|
|
26
|
+
# `instructions` to Langfuse via create_prompt and stores the returned version in
|
|
27
|
+
# prompt_version.
|
|
28
|
+
#
|
|
29
|
+
# @return [Symbol, Telnyx::Models::AI::ObservabilityReq::PromptSync, nil]
|
|
30
|
+
optional :prompt_sync, enum: -> { Telnyx::AI::ObservabilityReq::PromptSync }
|
|
31
|
+
|
|
32
|
+
# @!attribute prompt_version
|
|
33
|
+
#
|
|
34
|
+
# @return [Integer, nil]
|
|
35
|
+
optional :prompt_version, Integer
|
|
36
|
+
|
|
12
37
|
# @!attribute public_key_ref
|
|
13
38
|
#
|
|
14
39
|
# @return [String, nil]
|
|
@@ -24,12 +49,43 @@ module Telnyx
|
|
|
24
49
|
# @return [Symbol, Telnyx::Models::AI::ObservabilityReq::Status, nil]
|
|
25
50
|
optional :status, enum: -> { Telnyx::AI::ObservabilityReq::Status }
|
|
26
51
|
|
|
27
|
-
# @!method initialize(host: nil, public_key_ref: nil, secret_key_ref: nil, status: nil)
|
|
52
|
+
# @!method initialize(host: nil, prompt_label: nil, prompt_name: nil, prompt_sync: nil, prompt_version: nil, public_key_ref: nil, secret_key_ref: nil, status: nil)
|
|
53
|
+
# Some parameter documentations has been truncated, see
|
|
54
|
+
# {Telnyx::Models::AI::ObservabilityReq} for more details.
|
|
55
|
+
#
|
|
28
56
|
# @param host [String]
|
|
57
|
+
#
|
|
58
|
+
# @param prompt_label [String]
|
|
59
|
+
#
|
|
60
|
+
# @param prompt_name [String]
|
|
61
|
+
#
|
|
62
|
+
# @param prompt_sync [Symbol, Telnyx::Models::AI::ObservabilityReq::PromptSync] Whether to auto-publish the assistant's instructions as a Langfuse prompt.
|
|
63
|
+
#
|
|
64
|
+
# @param prompt_version [Integer]
|
|
65
|
+
#
|
|
29
66
|
# @param public_key_ref [String]
|
|
67
|
+
#
|
|
30
68
|
# @param secret_key_ref [String]
|
|
69
|
+
#
|
|
31
70
|
# @param status [Symbol, Telnyx::Models::AI::ObservabilityReq::Status]
|
|
32
71
|
|
|
72
|
+
# Whether to auto-publish the assistant's instructions as a Langfuse prompt.
|
|
73
|
+
#
|
|
74
|
+
# When ENABLED + prompt_name set, every assistant create/update pushes
|
|
75
|
+
# `instructions` to Langfuse via create_prompt and stores the returned version in
|
|
76
|
+
# prompt_version.
|
|
77
|
+
#
|
|
78
|
+
# @see Telnyx::Models::AI::ObservabilityReq#prompt_sync
|
|
79
|
+
module PromptSync
|
|
80
|
+
extend Telnyx::Internal::Type::Enum
|
|
81
|
+
|
|
82
|
+
ENABLED = :enabled
|
|
83
|
+
DISABLED = :disabled
|
|
84
|
+
|
|
85
|
+
# @!method self.values
|
|
86
|
+
# @return [Array<Symbol>]
|
|
87
|
+
end
|
|
88
|
+
|
|
33
89
|
# @see Telnyx::Models::AI::ObservabilityReq#status
|
|
34
90
|
module Status
|
|
35
91
|
extend Telnyx::Internal::Type::Enum
|
data/lib/telnyx/version.rb
CHANGED
|
@@ -1084,6 +1084,10 @@ module Telnyx
|
|
|
1084
1084
|
)
|
|
1085
1085
|
end
|
|
1086
1086
|
|
|
1087
|
+
# Number or SIP URI placing the call.
|
|
1088
|
+
sig { returns(String) }
|
|
1089
|
+
attr_accessor :from
|
|
1090
|
+
|
|
1087
1091
|
# Custom headers to be added to the SIP INVITE for the invite command.
|
|
1088
1092
|
sig do
|
|
1089
1093
|
returns(
|
|
@@ -1106,13 +1110,6 @@ module Telnyx
|
|
|
1106
1110
|
end
|
|
1107
1111
|
attr_writer :custom_headers
|
|
1108
1112
|
|
|
1109
|
-
# Number or SIP URI placing the call.
|
|
1110
|
-
sig { returns(T.nilable(String)) }
|
|
1111
|
-
attr_reader :from
|
|
1112
|
-
|
|
1113
|
-
sig { params(from: String).void }
|
|
1114
|
-
attr_writer :from
|
|
1115
|
-
|
|
1116
1113
|
# The different possible targets of the invite. The assistant will be able to
|
|
1117
1114
|
# choose one of the targets to invite to the call. This can also be a dynamic
|
|
1118
1115
|
# variable string like `{{ targets }}` where `targets` is returned by the dynamic
|
|
@@ -1149,11 +1146,11 @@ module Telnyx
|
|
|
1149
1146
|
|
|
1150
1147
|
sig do
|
|
1151
1148
|
params(
|
|
1149
|
+
from: String,
|
|
1152
1150
|
custom_headers:
|
|
1153
1151
|
T::Array[
|
|
1154
1152
|
Telnyx::AI::AssistantTool::Invite::Invite::CustomHeader::OrHash
|
|
1155
1153
|
],
|
|
1156
|
-
from: String,
|
|
1157
1154
|
targets:
|
|
1158
1155
|
T.nilable(
|
|
1159
1156
|
Telnyx::AI::AssistantTool::Invite::Invite::Targets::Variants
|
|
@@ -1163,10 +1160,10 @@ module Telnyx
|
|
|
1163
1160
|
).returns(T.attached_class)
|
|
1164
1161
|
end
|
|
1165
1162
|
def self.new(
|
|
1163
|
+
# Number or SIP URI placing the call.
|
|
1164
|
+
from:,
|
|
1166
1165
|
# Custom headers to be added to the SIP INVITE for the invite command.
|
|
1167
1166
|
custom_headers: nil,
|
|
1168
|
-
# Number or SIP URI placing the call.
|
|
1169
|
-
from: nil,
|
|
1170
1167
|
# The different possible targets of the invite. The assistant will be able to
|
|
1171
1168
|
# choose one of the targets to invite to the call. This can also be a dynamic
|
|
1172
1169
|
# variable string like `{{ targets }}` where `targets` is returned by the dynamic
|
|
@@ -1183,11 +1180,11 @@ module Telnyx
|
|
|
1183
1180
|
sig do
|
|
1184
1181
|
override.returns(
|
|
1185
1182
|
{
|
|
1183
|
+
from: String,
|
|
1186
1184
|
custom_headers:
|
|
1187
1185
|
T::Array[
|
|
1188
1186
|
Telnyx::AI::AssistantTool::Invite::Invite::CustomHeader
|
|
1189
1187
|
],
|
|
1190
|
-
from: String,
|
|
1191
1188
|
targets:
|
|
1192
1189
|
T.nilable(
|
|
1193
1190
|
Telnyx::AI::AssistantTool::Invite::Invite::Targets::Variants
|
|
@@ -15,6 +15,43 @@ module Telnyx
|
|
|
15
15
|
sig { params(host: String).void }
|
|
16
16
|
attr_writer :host
|
|
17
17
|
|
|
18
|
+
sig { returns(T.nilable(String)) }
|
|
19
|
+
attr_reader :prompt_label
|
|
20
|
+
|
|
21
|
+
sig { params(prompt_label: String).void }
|
|
22
|
+
attr_writer :prompt_label
|
|
23
|
+
|
|
24
|
+
sig { returns(T.nilable(String)) }
|
|
25
|
+
attr_reader :prompt_name
|
|
26
|
+
|
|
27
|
+
sig { params(prompt_name: String).void }
|
|
28
|
+
attr_writer :prompt_name
|
|
29
|
+
|
|
30
|
+
# Whether to auto-publish the assistant's instructions as a Langfuse prompt.
|
|
31
|
+
#
|
|
32
|
+
# When ENABLED + prompt_name set, every assistant create/update pushes
|
|
33
|
+
# `instructions` to Langfuse via create_prompt and stores the returned version in
|
|
34
|
+
# prompt_version.
|
|
35
|
+
sig do
|
|
36
|
+
returns(
|
|
37
|
+
T.nilable(Telnyx::AI::Observability::PromptSync::TaggedSymbol)
|
|
38
|
+
)
|
|
39
|
+
end
|
|
40
|
+
attr_reader :prompt_sync
|
|
41
|
+
|
|
42
|
+
sig do
|
|
43
|
+
params(
|
|
44
|
+
prompt_sync: Telnyx::AI::Observability::PromptSync::OrSymbol
|
|
45
|
+
).void
|
|
46
|
+
end
|
|
47
|
+
attr_writer :prompt_sync
|
|
48
|
+
|
|
49
|
+
sig { returns(T.nilable(Integer)) }
|
|
50
|
+
attr_reader :prompt_version
|
|
51
|
+
|
|
52
|
+
sig { params(prompt_version: Integer).void }
|
|
53
|
+
attr_writer :prompt_version
|
|
54
|
+
|
|
18
55
|
sig { returns(T.nilable(String)) }
|
|
19
56
|
attr_reader :public_key_ref
|
|
20
57
|
|
|
@@ -38,6 +75,10 @@ module Telnyx
|
|
|
38
75
|
sig do
|
|
39
76
|
params(
|
|
40
77
|
host: String,
|
|
78
|
+
prompt_label: String,
|
|
79
|
+
prompt_name: String,
|
|
80
|
+
prompt_sync: Telnyx::AI::Observability::PromptSync::OrSymbol,
|
|
81
|
+
prompt_version: Integer,
|
|
41
82
|
public_key_ref: String,
|
|
42
83
|
secret_key_ref: String,
|
|
43
84
|
status: Telnyx::AI::Observability::Status::OrSymbol
|
|
@@ -45,6 +86,15 @@ module Telnyx
|
|
|
45
86
|
end
|
|
46
87
|
def self.new(
|
|
47
88
|
host: nil,
|
|
89
|
+
prompt_label: nil,
|
|
90
|
+
prompt_name: nil,
|
|
91
|
+
# Whether to auto-publish the assistant's instructions as a Langfuse prompt.
|
|
92
|
+
#
|
|
93
|
+
# When ENABLED + prompt_name set, every assistant create/update pushes
|
|
94
|
+
# `instructions` to Langfuse via create_prompt and stores the returned version in
|
|
95
|
+
# prompt_version.
|
|
96
|
+
prompt_sync: nil,
|
|
97
|
+
prompt_version: nil,
|
|
48
98
|
public_key_ref: nil,
|
|
49
99
|
secret_key_ref: nil,
|
|
50
100
|
status: nil
|
|
@@ -55,6 +105,10 @@ module Telnyx
|
|
|
55
105
|
override.returns(
|
|
56
106
|
{
|
|
57
107
|
host: String,
|
|
108
|
+
prompt_label: String,
|
|
109
|
+
prompt_name: String,
|
|
110
|
+
prompt_sync: Telnyx::AI::Observability::PromptSync::TaggedSymbol,
|
|
111
|
+
prompt_version: Integer,
|
|
58
112
|
public_key_ref: String,
|
|
59
113
|
secret_key_ref: String,
|
|
60
114
|
status: Telnyx::AI::Observability::Status::TaggedSymbol
|
|
@@ -64,6 +118,37 @@ module Telnyx
|
|
|
64
118
|
def to_hash
|
|
65
119
|
end
|
|
66
120
|
|
|
121
|
+
# Whether to auto-publish the assistant's instructions as a Langfuse prompt.
|
|
122
|
+
#
|
|
123
|
+
# When ENABLED + prompt_name set, every assistant create/update pushes
|
|
124
|
+
# `instructions` to Langfuse via create_prompt and stores the returned version in
|
|
125
|
+
# prompt_version.
|
|
126
|
+
module PromptSync
|
|
127
|
+
extend Telnyx::Internal::Type::Enum
|
|
128
|
+
|
|
129
|
+
TaggedSymbol =
|
|
130
|
+
T.type_alias do
|
|
131
|
+
T.all(Symbol, Telnyx::AI::Observability::PromptSync)
|
|
132
|
+
end
|
|
133
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
134
|
+
|
|
135
|
+
ENABLED =
|
|
136
|
+
T.let(:enabled, Telnyx::AI::Observability::PromptSync::TaggedSymbol)
|
|
137
|
+
DISABLED =
|
|
138
|
+
T.let(
|
|
139
|
+
:disabled,
|
|
140
|
+
Telnyx::AI::Observability::PromptSync::TaggedSymbol
|
|
141
|
+
)
|
|
142
|
+
|
|
143
|
+
sig do
|
|
144
|
+
override.returns(
|
|
145
|
+
T::Array[Telnyx::AI::Observability::PromptSync::TaggedSymbol]
|
|
146
|
+
)
|
|
147
|
+
end
|
|
148
|
+
def self.values
|
|
149
|
+
end
|
|
150
|
+
end
|
|
151
|
+
|
|
67
152
|
module Status
|
|
68
153
|
extend Telnyx::Internal::Type::Enum
|
|
69
154
|
|
|
@@ -15,6 +15,41 @@ module Telnyx
|
|
|
15
15
|
sig { params(host: String).void }
|
|
16
16
|
attr_writer :host
|
|
17
17
|
|
|
18
|
+
sig { returns(T.nilable(String)) }
|
|
19
|
+
attr_reader :prompt_label
|
|
20
|
+
|
|
21
|
+
sig { params(prompt_label: String).void }
|
|
22
|
+
attr_writer :prompt_label
|
|
23
|
+
|
|
24
|
+
sig { returns(T.nilable(String)) }
|
|
25
|
+
attr_reader :prompt_name
|
|
26
|
+
|
|
27
|
+
sig { params(prompt_name: String).void }
|
|
28
|
+
attr_writer :prompt_name
|
|
29
|
+
|
|
30
|
+
# Whether to auto-publish the assistant's instructions as a Langfuse prompt.
|
|
31
|
+
#
|
|
32
|
+
# When ENABLED + prompt_name set, every assistant create/update pushes
|
|
33
|
+
# `instructions` to Langfuse via create_prompt and stores the returned version in
|
|
34
|
+
# prompt_version.
|
|
35
|
+
sig do
|
|
36
|
+
returns(T.nilable(Telnyx::AI::ObservabilityReq::PromptSync::OrSymbol))
|
|
37
|
+
end
|
|
38
|
+
attr_reader :prompt_sync
|
|
39
|
+
|
|
40
|
+
sig do
|
|
41
|
+
params(
|
|
42
|
+
prompt_sync: Telnyx::AI::ObservabilityReq::PromptSync::OrSymbol
|
|
43
|
+
).void
|
|
44
|
+
end
|
|
45
|
+
attr_writer :prompt_sync
|
|
46
|
+
|
|
47
|
+
sig { returns(T.nilable(Integer)) }
|
|
48
|
+
attr_reader :prompt_version
|
|
49
|
+
|
|
50
|
+
sig { params(prompt_version: Integer).void }
|
|
51
|
+
attr_writer :prompt_version
|
|
52
|
+
|
|
18
53
|
sig { returns(T.nilable(String)) }
|
|
19
54
|
attr_reader :public_key_ref
|
|
20
55
|
|
|
@@ -40,6 +75,10 @@ module Telnyx
|
|
|
40
75
|
sig do
|
|
41
76
|
params(
|
|
42
77
|
host: String,
|
|
78
|
+
prompt_label: String,
|
|
79
|
+
prompt_name: String,
|
|
80
|
+
prompt_sync: Telnyx::AI::ObservabilityReq::PromptSync::OrSymbol,
|
|
81
|
+
prompt_version: Integer,
|
|
43
82
|
public_key_ref: String,
|
|
44
83
|
secret_key_ref: String,
|
|
45
84
|
status: Telnyx::AI::ObservabilityReq::Status::OrSymbol
|
|
@@ -47,6 +86,15 @@ module Telnyx
|
|
|
47
86
|
end
|
|
48
87
|
def self.new(
|
|
49
88
|
host: nil,
|
|
89
|
+
prompt_label: nil,
|
|
90
|
+
prompt_name: nil,
|
|
91
|
+
# Whether to auto-publish the assistant's instructions as a Langfuse prompt.
|
|
92
|
+
#
|
|
93
|
+
# When ENABLED + prompt_name set, every assistant create/update pushes
|
|
94
|
+
# `instructions` to Langfuse via create_prompt and stores the returned version in
|
|
95
|
+
# prompt_version.
|
|
96
|
+
prompt_sync: nil,
|
|
97
|
+
prompt_version: nil,
|
|
50
98
|
public_key_ref: nil,
|
|
51
99
|
secret_key_ref: nil,
|
|
52
100
|
status: nil
|
|
@@ -57,6 +105,10 @@ module Telnyx
|
|
|
57
105
|
override.returns(
|
|
58
106
|
{
|
|
59
107
|
host: String,
|
|
108
|
+
prompt_label: String,
|
|
109
|
+
prompt_name: String,
|
|
110
|
+
prompt_sync: Telnyx::AI::ObservabilityReq::PromptSync::OrSymbol,
|
|
111
|
+
prompt_version: Integer,
|
|
60
112
|
public_key_ref: String,
|
|
61
113
|
secret_key_ref: String,
|
|
62
114
|
status: Telnyx::AI::ObservabilityReq::Status::OrSymbol
|
|
@@ -66,6 +118,40 @@ module Telnyx
|
|
|
66
118
|
def to_hash
|
|
67
119
|
end
|
|
68
120
|
|
|
121
|
+
# Whether to auto-publish the assistant's instructions as a Langfuse prompt.
|
|
122
|
+
#
|
|
123
|
+
# When ENABLED + prompt_name set, every assistant create/update pushes
|
|
124
|
+
# `instructions` to Langfuse via create_prompt and stores the returned version in
|
|
125
|
+
# prompt_version.
|
|
126
|
+
module PromptSync
|
|
127
|
+
extend Telnyx::Internal::Type::Enum
|
|
128
|
+
|
|
129
|
+
TaggedSymbol =
|
|
130
|
+
T.type_alias do
|
|
131
|
+
T.all(Symbol, Telnyx::AI::ObservabilityReq::PromptSync)
|
|
132
|
+
end
|
|
133
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
134
|
+
|
|
135
|
+
ENABLED =
|
|
136
|
+
T.let(
|
|
137
|
+
:enabled,
|
|
138
|
+
Telnyx::AI::ObservabilityReq::PromptSync::TaggedSymbol
|
|
139
|
+
)
|
|
140
|
+
DISABLED =
|
|
141
|
+
T.let(
|
|
142
|
+
:disabled,
|
|
143
|
+
Telnyx::AI::ObservabilityReq::PromptSync::TaggedSymbol
|
|
144
|
+
)
|
|
145
|
+
|
|
146
|
+
sig do
|
|
147
|
+
override.returns(
|
|
148
|
+
T::Array[Telnyx::AI::ObservabilityReq::PromptSync::TaggedSymbol]
|
|
149
|
+
)
|
|
150
|
+
end
|
|
151
|
+
def self.values
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
|
|
69
155
|
module Status
|
|
70
156
|
extend Telnyx::Internal::Type::Enum
|
|
71
157
|
|
|
@@ -442,23 +442,21 @@ module Telnyx
|
|
|
442
442
|
|
|
443
443
|
type invite =
|
|
444
444
|
{
|
|
445
|
-
custom_headers: ::Array[Telnyx::AI::AssistantTool::Invite::Invite::CustomHeader],
|
|
446
445
|
from: String,
|
|
446
|
+
custom_headers: ::Array[Telnyx::AI::AssistantTool::Invite::Invite::CustomHeader],
|
|
447
447
|
targets: Telnyx::Models::AI::AssistantTool::Invite::Invite::targets?,
|
|
448
448
|
voicemail_detection: Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection
|
|
449
449
|
}
|
|
450
450
|
|
|
451
451
|
class Invite < Telnyx::Internal::Type::BaseModel
|
|
452
|
+
attr_accessor from: String
|
|
453
|
+
|
|
452
454
|
attr_reader custom_headers: ::Array[Telnyx::AI::AssistantTool::Invite::Invite::CustomHeader]?
|
|
453
455
|
|
|
454
456
|
def custom_headers=: (
|
|
455
457
|
::Array[Telnyx::AI::AssistantTool::Invite::Invite::CustomHeader]
|
|
456
458
|
) -> ::Array[Telnyx::AI::AssistantTool::Invite::Invite::CustomHeader]
|
|
457
459
|
|
|
458
|
-
attr_reader from: String?
|
|
459
|
-
|
|
460
|
-
def from=: (String) -> String
|
|
461
|
-
|
|
462
460
|
attr_accessor targets: Telnyx::Models::AI::AssistantTool::Invite::Invite::targets?
|
|
463
461
|
|
|
464
462
|
attr_reader voicemail_detection: Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection?
|
|
@@ -468,15 +466,15 @@ module Telnyx
|
|
|
468
466
|
) -> Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection
|
|
469
467
|
|
|
470
468
|
def initialize: (
|
|
469
|
+
from: String,
|
|
471
470
|
?custom_headers: ::Array[Telnyx::AI::AssistantTool::Invite::Invite::CustomHeader],
|
|
472
|
-
?from: String,
|
|
473
471
|
?targets: Telnyx::Models::AI::AssistantTool::Invite::Invite::targets?,
|
|
474
472
|
?voicemail_detection: Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection
|
|
475
473
|
) -> void
|
|
476
474
|
|
|
477
475
|
def to_hash: -> {
|
|
478
|
-
custom_headers: ::Array[Telnyx::AI::AssistantTool::Invite::Invite::CustomHeader],
|
|
479
476
|
from: String,
|
|
477
|
+
custom_headers: ::Array[Telnyx::AI::AssistantTool::Invite::Invite::CustomHeader],
|
|
480
478
|
targets: Telnyx::Models::AI::AssistantTool::Invite::Invite::targets?,
|
|
481
479
|
voicemail_detection: Telnyx::AI::AssistantTool::Invite::Invite::VoicemailDetection
|
|
482
480
|
}
|
|
@@ -4,6 +4,10 @@ module Telnyx
|
|
|
4
4
|
type observability =
|
|
5
5
|
{
|
|
6
6
|
host: String,
|
|
7
|
+
prompt_label: String,
|
|
8
|
+
prompt_name: String,
|
|
9
|
+
prompt_sync: Telnyx::Models::AI::Observability::prompt_sync,
|
|
10
|
+
prompt_version: Integer,
|
|
7
11
|
public_key_ref: String,
|
|
8
12
|
secret_key_ref: String,
|
|
9
13
|
status: Telnyx::Models::AI::Observability::status
|
|
@@ -14,6 +18,24 @@ module Telnyx
|
|
|
14
18
|
|
|
15
19
|
def host=: (String) -> String
|
|
16
20
|
|
|
21
|
+
attr_reader prompt_label: String?
|
|
22
|
+
|
|
23
|
+
def prompt_label=: (String) -> String
|
|
24
|
+
|
|
25
|
+
attr_reader prompt_name: String?
|
|
26
|
+
|
|
27
|
+
def prompt_name=: (String) -> String
|
|
28
|
+
|
|
29
|
+
attr_reader prompt_sync: Telnyx::Models::AI::Observability::prompt_sync?
|
|
30
|
+
|
|
31
|
+
def prompt_sync=: (
|
|
32
|
+
Telnyx::Models::AI::Observability::prompt_sync
|
|
33
|
+
) -> Telnyx::Models::AI::Observability::prompt_sync
|
|
34
|
+
|
|
35
|
+
attr_reader prompt_version: Integer?
|
|
36
|
+
|
|
37
|
+
def prompt_version=: (Integer) -> Integer
|
|
38
|
+
|
|
17
39
|
attr_reader public_key_ref: String?
|
|
18
40
|
|
|
19
41
|
def public_key_ref=: (String) -> String
|
|
@@ -30,6 +52,10 @@ module Telnyx
|
|
|
30
52
|
|
|
31
53
|
def initialize: (
|
|
32
54
|
?host: String,
|
|
55
|
+
?prompt_label: String,
|
|
56
|
+
?prompt_name: String,
|
|
57
|
+
?prompt_sync: Telnyx::Models::AI::Observability::prompt_sync,
|
|
58
|
+
?prompt_version: Integer,
|
|
33
59
|
?public_key_ref: String,
|
|
34
60
|
?secret_key_ref: String,
|
|
35
61
|
?status: Telnyx::Models::AI::Observability::status
|
|
@@ -37,11 +63,26 @@ module Telnyx
|
|
|
37
63
|
|
|
38
64
|
def to_hash: -> {
|
|
39
65
|
host: String,
|
|
66
|
+
prompt_label: String,
|
|
67
|
+
prompt_name: String,
|
|
68
|
+
prompt_sync: Telnyx::Models::AI::Observability::prompt_sync,
|
|
69
|
+
prompt_version: Integer,
|
|
40
70
|
public_key_ref: String,
|
|
41
71
|
secret_key_ref: String,
|
|
42
72
|
status: Telnyx::Models::AI::Observability::status
|
|
43
73
|
}
|
|
44
74
|
|
|
75
|
+
type prompt_sync = :enabled | :disabled
|
|
76
|
+
|
|
77
|
+
module PromptSync
|
|
78
|
+
extend Telnyx::Internal::Type::Enum
|
|
79
|
+
|
|
80
|
+
ENABLED: :enabled
|
|
81
|
+
DISABLED: :disabled
|
|
82
|
+
|
|
83
|
+
def self?.values: -> ::Array[Telnyx::Models::AI::Observability::prompt_sync]
|
|
84
|
+
end
|
|
85
|
+
|
|
45
86
|
type status = :enabled | :disabled
|
|
46
87
|
|
|
47
88
|
module Status
|
|
@@ -4,6 +4,10 @@ module Telnyx
|
|
|
4
4
|
type observability_req =
|
|
5
5
|
{
|
|
6
6
|
host: String,
|
|
7
|
+
prompt_label: String,
|
|
8
|
+
prompt_name: String,
|
|
9
|
+
prompt_sync: Telnyx::Models::AI::ObservabilityReq::prompt_sync,
|
|
10
|
+
prompt_version: Integer,
|
|
7
11
|
public_key_ref: String,
|
|
8
12
|
secret_key_ref: String,
|
|
9
13
|
status: Telnyx::Models::AI::ObservabilityReq::status
|
|
@@ -14,6 +18,24 @@ module Telnyx
|
|
|
14
18
|
|
|
15
19
|
def host=: (String) -> String
|
|
16
20
|
|
|
21
|
+
attr_reader prompt_label: String?
|
|
22
|
+
|
|
23
|
+
def prompt_label=: (String) -> String
|
|
24
|
+
|
|
25
|
+
attr_reader prompt_name: String?
|
|
26
|
+
|
|
27
|
+
def prompt_name=: (String) -> String
|
|
28
|
+
|
|
29
|
+
attr_reader prompt_sync: Telnyx::Models::AI::ObservabilityReq::prompt_sync?
|
|
30
|
+
|
|
31
|
+
def prompt_sync=: (
|
|
32
|
+
Telnyx::Models::AI::ObservabilityReq::prompt_sync
|
|
33
|
+
) -> Telnyx::Models::AI::ObservabilityReq::prompt_sync
|
|
34
|
+
|
|
35
|
+
attr_reader prompt_version: Integer?
|
|
36
|
+
|
|
37
|
+
def prompt_version=: (Integer) -> Integer
|
|
38
|
+
|
|
17
39
|
attr_reader public_key_ref: String?
|
|
18
40
|
|
|
19
41
|
def public_key_ref=: (String) -> String
|
|
@@ -30,6 +52,10 @@ module Telnyx
|
|
|
30
52
|
|
|
31
53
|
def initialize: (
|
|
32
54
|
?host: String,
|
|
55
|
+
?prompt_label: String,
|
|
56
|
+
?prompt_name: String,
|
|
57
|
+
?prompt_sync: Telnyx::Models::AI::ObservabilityReq::prompt_sync,
|
|
58
|
+
?prompt_version: Integer,
|
|
33
59
|
?public_key_ref: String,
|
|
34
60
|
?secret_key_ref: String,
|
|
35
61
|
?status: Telnyx::Models::AI::ObservabilityReq::status
|
|
@@ -37,11 +63,26 @@ module Telnyx
|
|
|
37
63
|
|
|
38
64
|
def to_hash: -> {
|
|
39
65
|
host: String,
|
|
66
|
+
prompt_label: String,
|
|
67
|
+
prompt_name: String,
|
|
68
|
+
prompt_sync: Telnyx::Models::AI::ObservabilityReq::prompt_sync,
|
|
69
|
+
prompt_version: Integer,
|
|
40
70
|
public_key_ref: String,
|
|
41
71
|
secret_key_ref: String,
|
|
42
72
|
status: Telnyx::Models::AI::ObservabilityReq::status
|
|
43
73
|
}
|
|
44
74
|
|
|
75
|
+
type prompt_sync = :enabled | :disabled
|
|
76
|
+
|
|
77
|
+
module PromptSync
|
|
78
|
+
extend Telnyx::Internal::Type::Enum
|
|
79
|
+
|
|
80
|
+
ENABLED: :enabled
|
|
81
|
+
DISABLED: :disabled
|
|
82
|
+
|
|
83
|
+
def self?.values: -> ::Array[Telnyx::Models::AI::ObservabilityReq::prompt_sync]
|
|
84
|
+
end
|
|
85
|
+
|
|
45
86
|
type status = :enabled | :disabled
|
|
46
87
|
|
|
47
88
|
module Status
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: telnyx
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.
|
|
4
|
+
version: 5.98.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Telnyx
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-05-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|