telnyx 5.63.0 → 5.64.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: 3a25e60fb729312e93e742112b5ce176dd554572fb54f464a8d0c602fbcfd078
4
- data.tar.gz: 5aa7d25774c30d13801a2c05f1d2826baeac6a70df9054304f815512fa89bb60
3
+ metadata.gz: 611640e98ada3cbb11e5c91a46ef2fcc539b7552fde198ffc28d3b07c0c35a5c
4
+ data.tar.gz: e38ac0cdaeeda7f2437eadbf26aa63bc14bd892bdb43d17dcbe59ffb1124c12b
5
5
  SHA512:
6
- metadata.gz: b90d19304721075def555a581ee058fc8487a7390d830e816ff72727dbc2cc11ecc58d78bebb98ac3b83efa481cc52238ec8d9788e1a1bed16847a1e54a7139f
7
- data.tar.gz: 12bf8d3cc7a0bc3500e82746fd8b17d2b4c53112d4861bca42a01a9fd3630a26c6f660d068759f1ed2da4a2738b33f8b81021b786b57e5facc05212cd12bf088
6
+ metadata.gz: 7c72f0bcb9378f8a533e50017cab7ace06e435bbc2568bd106695c9aa462923d1debf8666f2f21aa99078dca0152b399ce7ee8714fabfbdf22121a361c94160e
7
+ data.tar.gz: 7612c856a16b1804276935daa8bf4d1ce375c2730f8ad96ded468739da9382290e5c7cfa594e689ef6e00713cc5c91e7a0156b7b417356204588bf86d4340a6e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.64.0 (2026-03-24)
4
+
5
+ Full Changelog: [v5.63.0...v5.64.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.63.0...v5.64.0)
6
+
7
+ ### Features
8
+
9
+ * TELAPPS-5685: Add store_fields_as_variables to WebhookToolParams ([603352b](https://github.com/team-telnyx/telnyx-ruby/commit/603352b0959551b578a0092f2b060ff008a17c47))
10
+
3
11
  ## 5.63.0 (2026-03-24)
4
12
 
5
13
  Full Changelog: [v5.62.0...v5.63.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.62.0...v5.63.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.63.0"
27
+ gem "telnyx", "~> 5.64.0"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
@@ -103,6 +103,15 @@ module Telnyx
103
103
  optional :query_parameters,
104
104
  -> { Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::QueryParameters }
105
105
 
106
+ # @!attribute store_fields_as_variables
107
+ # A list of mappings that extract values from the webhook response and store them
108
+ # as dynamic variables. Each mapping specifies a dynamic variable name and a
109
+ # dot-notation path to the value in the response body.
110
+ #
111
+ # @return [Array<Telnyx::Models::AI::InferenceEmbeddingWebhookToolParams::Webhook::StoreFieldsAsVariable>, nil]
112
+ optional :store_fields_as_variables,
113
+ -> { Telnyx::Internal::Type::ArrayOf[Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::StoreFieldsAsVariable] }
114
+
106
115
  # @!attribute timeout_ms
107
116
  # The maximum number of milliseconds to wait for the webhook to respond. Only
108
117
  # applicable when async is false.
@@ -110,7 +119,7 @@ module Telnyx
110
119
  # @return [Integer, nil]
111
120
  optional :timeout_ms, Integer
112
121
 
113
- # @!method initialize(description:, name:, url:, async: nil, body_parameters: nil, headers: nil, http_method: nil, path_parameters: nil, query_parameters: nil, timeout_ms: nil)
122
+ # @!method initialize(description:, name:, url:, async: nil, body_parameters: nil, headers: nil, http_method: nil, path_parameters: nil, query_parameters: nil, store_fields_as_variables: nil, timeout_ms: nil)
114
123
  # Some parameter documentations has been truncated, see
115
124
  # {Telnyx::Models::AI::InferenceEmbeddingWebhookToolParams::Webhook} for more
116
125
  # details.
@@ -133,6 +142,8 @@ module Telnyx
133
142
  #
134
143
  # @param query_parameters [Telnyx::Models::AI::InferenceEmbeddingWebhookToolParams::Webhook::QueryParameters] The query parameters the webhook tool accepts, described as a JSON Schema object
135
144
  #
145
+ # @param store_fields_as_variables [Array<Telnyx::Models::AI::InferenceEmbeddingWebhookToolParams::Webhook::StoreFieldsAsVariable>] A list of mappings that extract values from the webhook response and store them
146
+ #
136
147
  # @param timeout_ms [Integer] The maximum number of milliseconds to wait for the webhook to respond. Only appl
137
148
 
138
149
  # @see Telnyx::Models::AI::InferenceEmbeddingWebhookToolParams::Webhook#body_parameters
@@ -308,6 +319,30 @@ module Telnyx
308
319
  # @return [Array<Symbol>]
309
320
  end
310
321
  end
322
+
323
+ class StoreFieldsAsVariable < Telnyx::Internal::Type::BaseModel
324
+ # @!attribute name
325
+ # The name of the dynamic variable to store the extracted value in.
326
+ #
327
+ # @return [String]
328
+ required :name, String
329
+
330
+ # @!attribute value_path
331
+ # A dot-notation path to the value in the webhook response body (e.g.
332
+ # 'customer.name' or 'id').
333
+ #
334
+ # @return [String]
335
+ required :value_path, String
336
+
337
+ # @!method initialize(name:, value_path:)
338
+ # Some parameter documentations has been truncated, see
339
+ # {Telnyx::Models::AI::InferenceEmbeddingWebhookToolParams::Webhook::StoreFieldsAsVariable}
340
+ # for more details.
341
+ #
342
+ # @param name [String] The name of the dynamic variable to store the extracted value in.
343
+ #
344
+ # @param value_path [String] A dot-notation path to the value in the webhook response body (e.g. 'customer.na
345
+ end
311
346
  end
312
347
  end
313
348
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Telnyx
4
- VERSION = "5.63.0"
4
+ VERSION = "5.64.0"
5
5
  end
@@ -221,6 +221,30 @@ module Telnyx
221
221
  end
222
222
  attr_writer :query_parameters
223
223
 
224
+ # A list of mappings that extract values from the webhook response and store them
225
+ # as dynamic variables. Each mapping specifies a dynamic variable name and a
226
+ # dot-notation path to the value in the response body.
227
+ sig do
228
+ returns(
229
+ T.nilable(
230
+ T::Array[
231
+ Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::StoreFieldsAsVariable
232
+ ]
233
+ )
234
+ )
235
+ end
236
+ attr_reader :store_fields_as_variables
237
+
238
+ sig do
239
+ params(
240
+ store_fields_as_variables:
241
+ T::Array[
242
+ Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::StoreFieldsAsVariable::OrHash
243
+ ]
244
+ ).void
245
+ end
246
+ attr_writer :store_fields_as_variables
247
+
224
248
  # The maximum number of milliseconds to wait for the webhook to respond. Only
225
249
  # applicable when async is false.
226
250
  sig { returns(T.nilable(Integer)) }
@@ -247,6 +271,10 @@ module Telnyx
247
271
  Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::PathParameters::OrHash,
248
272
  query_parameters:
249
273
  Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::QueryParameters::OrHash,
274
+ store_fields_as_variables:
275
+ T::Array[
276
+ Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::StoreFieldsAsVariable::OrHash
277
+ ],
250
278
  timeout_ms: Integer
251
279
  ).returns(T.attached_class)
252
280
  end
@@ -284,6 +312,10 @@ module Telnyx
284
312
  # [JSON Schema reference](https://json-schema.org/understanding-json-schema) for
285
313
  # documentation about the format
286
314
  query_parameters: nil,
315
+ # A list of mappings that extract values from the webhook response and store them
316
+ # as dynamic variables. Each mapping specifies a dynamic variable name and a
317
+ # dot-notation path to the value in the response body.
318
+ store_fields_as_variables: nil,
287
319
  # The maximum number of milliseconds to wait for the webhook to respond. Only
288
320
  # applicable when async is false.
289
321
  timeout_ms: nil
@@ -309,6 +341,10 @@ module Telnyx
309
341
  Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::PathParameters,
310
342
  query_parameters:
311
343
  Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::QueryParameters,
344
+ store_fields_as_variables:
345
+ T::Array[
346
+ Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::StoreFieldsAsVariable
347
+ ],
312
348
  timeout_ms: Integer
313
349
  }
314
350
  )
@@ -726,6 +762,41 @@ module Telnyx
726
762
  end
727
763
  end
728
764
  end
765
+
766
+ class StoreFieldsAsVariable < Telnyx::Internal::Type::BaseModel
767
+ OrHash =
768
+ T.type_alias do
769
+ T.any(
770
+ Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::StoreFieldsAsVariable,
771
+ Telnyx::Internal::AnyHash
772
+ )
773
+ end
774
+
775
+ # The name of the dynamic variable to store the extracted value in.
776
+ sig { returns(String) }
777
+ attr_accessor :name
778
+
779
+ # A dot-notation path to the value in the webhook response body (e.g.
780
+ # 'customer.name' or 'id').
781
+ sig { returns(String) }
782
+ attr_accessor :value_path
783
+
784
+ sig do
785
+ params(name: String, value_path: String).returns(T.attached_class)
786
+ end
787
+ def self.new(
788
+ # The name of the dynamic variable to store the extracted value in.
789
+ name:,
790
+ # A dot-notation path to the value in the webhook response body (e.g.
791
+ # 'customer.name' or 'id').
792
+ value_path:
793
+ )
794
+ end
795
+
796
+ sig { override.returns({ name: String, value_path: String }) }
797
+ def to_hash
798
+ end
799
+ end
729
800
  end
730
801
  end
731
802
  end
@@ -43,6 +43,7 @@ module Telnyx
43
43
  http_method: Telnyx::Models::AI::InferenceEmbeddingWebhookToolParams::Webhook::method_,
44
44
  path_parameters: Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::PathParameters,
45
45
  query_parameters: Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::QueryParameters,
46
+ store_fields_as_variables: ::Array[Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::StoreFieldsAsVariable],
46
47
  timeout_ms: Integer
47
48
  }
48
49
 
@@ -87,6 +88,12 @@ module Telnyx
87
88
  Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::QueryParameters
88
89
  ) -> Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::QueryParameters
89
90
 
91
+ attr_reader store_fields_as_variables: ::Array[Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::StoreFieldsAsVariable]?
92
+
93
+ def store_fields_as_variables=: (
94
+ ::Array[Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::StoreFieldsAsVariable]
95
+ ) -> ::Array[Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::StoreFieldsAsVariable]
96
+
90
97
  attr_reader timeout_ms: Integer?
91
98
 
92
99
  def timeout_ms=: (Integer) -> Integer
@@ -101,6 +108,7 @@ module Telnyx
101
108
  ?http_method: Telnyx::Models::AI::InferenceEmbeddingWebhookToolParams::Webhook::method_,
102
109
  ?path_parameters: Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::PathParameters,
103
110
  ?query_parameters: Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::QueryParameters,
111
+ ?store_fields_as_variables: ::Array[Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::StoreFieldsAsVariable],
104
112
  ?timeout_ms: Integer
105
113
  ) -> void
106
114
 
@@ -114,6 +122,7 @@ module Telnyx
114
122
  http_method: Telnyx::Models::AI::InferenceEmbeddingWebhookToolParams::Webhook::method_,
115
123
  path_parameters: Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::PathParameters,
116
124
  query_parameters: Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::QueryParameters,
125
+ store_fields_as_variables: ::Array[Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::StoreFieldsAsVariable],
117
126
  timeout_ms: Integer
118
127
  }
119
128
 
@@ -281,6 +290,18 @@ module Telnyx
281
290
  def self?.values: -> ::Array[Telnyx::Models::AI::InferenceEmbeddingWebhookToolParams::Webhook::QueryParameters::type_]
282
291
  end
283
292
  end
293
+
294
+ type store_fields_as_variable = { name: String, value_path: String }
295
+
296
+ class StoreFieldsAsVariable < Telnyx::Internal::Type::BaseModel
297
+ attr_accessor name: String
298
+
299
+ attr_accessor value_path: String
300
+
301
+ def initialize: (name: String, value_path: String) -> void
302
+
303
+ def to_hash: -> { name: String, value_path: String }
304
+ end
284
305
  end
285
306
  end
286
307
  end
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.63.0
4
+ version: 5.64.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Telnyx