telnyx 5.96.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4ceeba3b508bfcf4dd2a2fb570d02860357068f52ebd3f6f3d2c0eaa935f8ec9
4
- data.tar.gz: ce1a05de07085ca6eb140129f96d6a7a9c53dd04e7897f08e2b3f343919d8acf
3
+ metadata.gz: 37930142e3066a7e6e12a55c37a5e1fae1b2cb7dc64eeea0e599bc000ae9b811
4
+ data.tar.gz: 2f65e5fa943c8329552600511f3e2db68b448810c09432d353299fd64b351e87
5
5
  SHA512:
6
- metadata.gz: dc4811be0003666fab017879a09a5ac2b4dfc73d977d9d1cdfef540d0cbb0391fe53eb4d564fd6d09d9e4defe310c56ab2a8a9dc10206b836e4b38ac46110967
7
- data.tar.gz: a52d0211637491562c03e39684c28f4f77e50fd0ca31fc8a62634075a3e703981bf9b3b88675b55c5ae5656d95a8babe74a76a0c361a65c17dc1a08a6f27573c
6
+ metadata.gz: a6a51b4037ae476aa1e76c67089174d509ec4906362a9ff8f750cca843c0f2c8e8bcc3d4b78f2e064c8f565452e2e1926bc310647f51c13b3851fab0097a0641
7
+ data.tar.gz: 6ed01b6c22abff8014a09d9d1be26ff4bf5af1290e8076586ad5baaf4779efe02f443358d6259ff1ff63d88c5a783280dcef99c66214c88dd9619044f02c4059
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
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
+
3
11
  ## 5.96.0 (2026-04-30)
4
12
 
5
13
  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
@@ -24,7 +24,7 @@ To use this gem, install via Bundler by adding the following to your application
24
24
  <!-- x-release-please-start-version -->
25
25
 
26
26
  ```ruby
27
- gem "telnyx", "~> 5.96.0"
27
+ gem "telnyx", "~> 5.97.0"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
@@ -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, from: nil, targets: nil, voicemail_detection: 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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Telnyx
4
- VERSION = "5.96.0"
4
+ VERSION = "5.97.0"
5
5
  end
@@ -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
@@ -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
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: telnyx
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.96.0
4
+ version: 5.97.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Telnyx