telnyx 5.62.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.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +21 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/models/ai/conversation_add_message_params.rb +4 -4
  5. data/lib/telnyx/models/ai/inference_embedding_webhook_tool_params.rb +36 -1
  6. data/lib/telnyx/models/porting_orders/phone_number_block_list_params.rb +7 -7
  7. data/lib/telnyx/models/voice_clone_create_from_upload_params.rb +0 -2
  8. data/lib/telnyx/models/voice_clone_create_params.rb +0 -2
  9. data/lib/telnyx/models/voice_clone_data.rb +0 -2
  10. data/lib/telnyx/models/voice_clone_list_params.rb +0 -2
  11. data/lib/telnyx/models/voice_design_create_params.rb +0 -2
  12. data/lib/telnyx/models/voice_design_data.rb +0 -2
  13. data/lib/telnyx/models/voice_design_list_response.rb +0 -2
  14. data/lib/telnyx/models/voice_design_rename_response.rb +0 -2
  15. data/lib/telnyx/models/whatsapp/template_create_params.rb +78 -136
  16. data/lib/telnyx/models/whatsapp_message_template_update_params.rb +77 -135
  17. data/lib/telnyx/models/x402/credit_account_settle_params.rb +4 -4
  18. data/lib/telnyx/resources/whatsapp/templates.rb +1 -1
  19. data/lib/telnyx/resources/whatsapp_message_templates.rb +1 -1
  20. data/lib/telnyx/resources/x402/credit_account.rb +2 -2
  21. data/lib/telnyx/version.rb +1 -1
  22. data/rbi/telnyx/models/ai/conversation_add_message_params.rbi +5 -5
  23. data/rbi/telnyx/models/ai/inference_embedding_webhook_tool_params.rbi +71 -0
  24. data/rbi/telnyx/models/porting_orders/phone_number_block_list_params.rbi +18 -18
  25. data/rbi/telnyx/models/voice_clone_create_from_upload_params.rbi +0 -10
  26. data/rbi/telnyx/models/voice_clone_create_params.rbi +0 -7
  27. data/rbi/telnyx/models/voice_clone_data.rbi +0 -4
  28. data/rbi/telnyx/models/voice_clone_list_params.rbi +0 -10
  29. data/rbi/telnyx/models/voice_design_create_params.rbi +0 -10
  30. data/rbi/telnyx/models/voice_design_data.rbi +0 -4
  31. data/rbi/telnyx/models/voice_design_list_response.rbi +0 -10
  32. data/rbi/telnyx/models/voice_design_rename_response.rbi +0 -10
  33. data/rbi/telnyx/models/whatsapp/template_create_params.rbi +115 -294
  34. data/rbi/telnyx/models/whatsapp_message_template_update_params.rbi +120 -299
  35. data/rbi/telnyx/models/x402/credit_account_settle_params.rbi +6 -6
  36. data/rbi/telnyx/resources/whatsapp/templates.rbi +5 -5
  37. data/rbi/telnyx/resources/whatsapp_message_templates.rbi +5 -5
  38. data/rbi/telnyx/resources/x402/credit_account.rbi +2 -2
  39. data/sig/telnyx/models/ai/conversation_add_message_params.rbs +5 -5
  40. data/sig/telnyx/models/ai/inference_embedding_webhook_tool_params.rbs +21 -0
  41. data/sig/telnyx/models/porting_orders/phone_number_block_list_params.rbs +5 -5
  42. data/sig/telnyx/models/voice_clone_create_from_upload_params.rbs +1 -3
  43. data/sig/telnyx/models/voice_clone_create_params.rbs +1 -3
  44. data/sig/telnyx/models/voice_clone_data.rbs +1 -3
  45. data/sig/telnyx/models/voice_clone_list_params.rbs +1 -3
  46. data/sig/telnyx/models/voice_design_create_params.rbs +1 -3
  47. data/sig/telnyx/models/voice_design_data.rbs +1 -3
  48. data/sig/telnyx/models/voice_design_list_response.rbs +1 -3
  49. data/sig/telnyx/models/voice_design_rename_response.rbs +1 -3
  50. data/sig/telnyx/models/whatsapp/template_create_params.rbs +82 -136
  51. data/sig/telnyx/models/whatsapp_message_template_update_params.rbs +82 -136
  52. data/sig/telnyx/models/x402/credit_account_settle_params.rbs +5 -5
  53. data/sig/telnyx/resources/x402/credit_account.rbs +1 -1
  54. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 68a6749e8571fceb0bd86ad12dc93a599367977dce6cfab42138a7fe284a5f86
4
- data.tar.gz: c5c4ceb97bfc59c9546f53e8294405341338f508f563c36d2422eda4457aa058
3
+ metadata.gz: 611640e98ada3cbb11e5c91a46ef2fcc539b7552fde198ffc28d3b07c0c35a5c
4
+ data.tar.gz: e38ac0cdaeeda7f2437eadbf26aa63bc14bd892bdb43d17dcbe59ffb1124c12b
5
5
  SHA512:
6
- metadata.gz: e27fc9fb5bfbfa188ccee6ea66b1556789ff6ab1d9fed953629d8abd6b9e160978c8c998bf4b663c87479b569d030529b3f1b3cd2415c82ce5eb7f3985dc0f46
7
- data.tar.gz: 4f57e14fc9ae6868888c0b2a883400f6eb5addf34a6ab6772578a9524187b14843379b390396229a102136a47c98d11d8f161e7ee80c4b1526bcc20ac00d67f3
6
+ metadata.gz: 7c72f0bcb9378f8a533e50017cab7ace06e435bbc2568bd106695c9aa462923d1debf8666f2f21aa99078dca0152b399ce7ee8714fabfbdf22121a361c94160e
7
+ data.tar.gz: 7612c856a16b1804276935daa8bf4d1ce375c2730f8ad96ded468739da9382290e5c7cfa594e689ef6e00713cc5c91e7a0156b7b417356204588bf86d4340a6e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
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
+
11
+ ## 5.63.0 (2026-03-24)
12
+
13
+ Full Changelog: [v5.62.0...v5.63.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.62.0...v5.63.0)
14
+
15
+ ### Features
16
+
17
+ * **api:** Merge pull request [#30](https://github.com/team-telnyx/telnyx-ruby/issues/30) from stainless-sdks/fix-schemaUnionDiscriminatorMissing ([b9ed56b](https://github.com/team-telnyx/telnyx-ruby/commit/b9ed56b769872b129f507586f133acaa21a33415))
18
+
19
+
20
+ ### Chores
21
+
22
+ * **ci:** skip lint on metadata-only changes ([dc7c75f](https://github.com/team-telnyx/telnyx-ruby/commit/dc7c75f0f80071e8450550ac939c946ab3638249))
23
+
3
24
  ## 5.62.0 (2026-03-23)
4
25
 
5
26
  Full Changelog: [v5.61.0...v5.62.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.61.0...v5.62.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.62.0"
27
+ gem "telnyx", "~> 5.64.0"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
@@ -86,9 +86,9 @@ module Telnyx
86
86
 
87
87
  variant Telnyx::Internal::Type::Boolean
88
88
 
89
- variant -> { Telnyx::Models::AI::ConversationAddMessageParams::Metadata::UnionArrayVariant3Array }
89
+ variant -> { Telnyx::Models::AI::ConversationAddMessageParams::Metadata::UnionMember3Array }
90
90
 
91
- module UnionArrayVariant3
91
+ module UnionMember3
92
92
  extend Telnyx::Internal::Type::Union
93
93
 
94
94
  variant String
@@ -105,9 +105,9 @@ module Telnyx
105
105
  # @return [Array(String, Integer, Boolean, Array<String, Integer, Boolean>)]
106
106
 
107
107
  # @type [Telnyx::Internal::Type::Converter]
108
- UnionArrayVariant3Array =
108
+ UnionMember3Array =
109
109
  Telnyx::Internal::Type::ArrayOf[union: -> {
110
- Telnyx::AI::ConversationAddMessageParams::Metadata::UnionArrayVariant3
110
+ Telnyx::AI::ConversationAddMessageParams::Metadata::UnionMember3
111
111
  }]
112
112
  end
113
113
 
@@ -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
@@ -84,7 +84,7 @@ module Telnyx
84
84
  # Filter porting orders by status(es). Originally: filter[status],
85
85
  # filter[status][in][]
86
86
  #
87
- # @return [Symbol, Telnyx::Models::PortingOrders::PhoneNumberBlockListParams::Filter::Status::PortingOrderSingleStatus, Array<Symbol, Telnyx::Models::PortingOrders::PhoneNumberBlockListParams::Filter::Status::UnionArrayVariant1>, nil]
87
+ # @return [Symbol, Telnyx::Models::PortingOrders::PhoneNumberBlockListParams::Filter::Status::PortingOrderSingleStatus, Array<Symbol, Telnyx::Models::PortingOrders::PhoneNumberBlockListParams::Filter::Status::UnionMember1>, nil]
88
88
  optional :status, union: -> { Telnyx::PortingOrders::PhoneNumberBlockListParams::Filter::Status }
89
89
 
90
90
  # @!attribute support_key
@@ -111,7 +111,7 @@ module Telnyx
111
111
  #
112
112
  # @param porting_order_id [Array<String>] Filter results by a list of porting order ids
113
113
  #
114
- # @param status [Symbol, Telnyx::Models::PortingOrders::PhoneNumberBlockListParams::Filter::Status::PortingOrderSingleStatus, Array<Symbol, Telnyx::Models::PortingOrders::PhoneNumberBlockListParams::Filter::Status::UnionArrayVariant1>] Filter porting orders by status(es). Originally: filter[status], filter[status]
114
+ # @param status [Symbol, Telnyx::Models::PortingOrders::PhoneNumberBlockListParams::Filter::Status::PortingOrderSingleStatus, Array<Symbol, Telnyx::Models::PortingOrders::PhoneNumberBlockListParams::Filter::Status::UnionMember1>] Filter porting orders by status(es). Originally: filter[status], filter[status]
115
115
  #
116
116
  # @param support_key [String, Array<String>] Filter results by support key(s). Originally: filter[support_key][eq], filter[su
117
117
 
@@ -164,7 +164,7 @@ module Telnyx
164
164
  variant enum: -> { Telnyx::PortingOrders::PhoneNumberBlockListParams::Filter::Status::PortingOrderSingleStatus }
165
165
 
166
166
  # Filter by multiple statuses (in operation)
167
- variant -> { Telnyx::Models::PortingOrders::PhoneNumberBlockListParams::Filter::Status::UnionArrayVariant1Array }
167
+ variant -> { Telnyx::Models::PortingOrders::PhoneNumberBlockListParams::Filter::Status::UnionMember1Array }
168
168
 
169
169
  # Filter by single status
170
170
  module PortingOrderSingleStatus
@@ -183,7 +183,7 @@ module Telnyx
183
183
  # @return [Array<Symbol>]
184
184
  end
185
185
 
186
- module UnionArrayVariant1
186
+ module UnionMember1
187
187
  extend Telnyx::Internal::Type::Enum
188
188
 
189
189
  DRAFT = :draft
@@ -200,12 +200,12 @@ module Telnyx
200
200
  end
201
201
 
202
202
  # @!method self.variants
203
- # @return [Array(Symbol, Telnyx::Models::PortingOrders::PhoneNumberBlockListParams::Filter::Status::PortingOrderSingleStatus, Array<Symbol, Telnyx::Models::PortingOrders::PhoneNumberBlockListParams::Filter::Status::UnionArrayVariant1>)]
203
+ # @return [Array(Symbol, Telnyx::Models::PortingOrders::PhoneNumberBlockListParams::Filter::Status::PortingOrderSingleStatus, Array<Symbol, Telnyx::Models::PortingOrders::PhoneNumberBlockListParams::Filter::Status::UnionMember1>)]
204
204
 
205
205
  # @type [Telnyx::Internal::Type::Converter]
206
- UnionArrayVariant1Array =
206
+ UnionMember1Array =
207
207
  Telnyx::Internal::Type::ArrayOf[enum: -> {
208
- Telnyx::PortingOrders::PhoneNumberBlockListParams::Filter::Status::UnionArrayVariant1
208
+ Telnyx::PortingOrders::PhoneNumberBlockListParams::Filter::Status::UnionMember1
209
209
  }]
210
210
  end
211
211
 
@@ -89,9 +89,7 @@ module Telnyx
89
89
  extend Telnyx::Internal::Type::Enum
90
90
 
91
91
  TELNYX = :telnyx
92
- TELNYX_2 = :Telnyx
93
92
  MINIMAX = :minimax
94
- MINIMAX_2 = :Minimax
95
93
 
96
94
  # @!method self.values
97
95
  # @return [Array<Symbol>]
@@ -67,9 +67,7 @@ module Telnyx
67
67
  extend Telnyx::Internal::Type::Enum
68
68
 
69
69
  TELNYX = :telnyx
70
- TELNYX_2 = :Telnyx
71
70
  MINIMAX = :minimax
72
- MINIMAX_2 = :Minimax
73
71
 
74
72
  # @!method self.values
75
73
  # @return [Array<Symbol>]
@@ -137,9 +137,7 @@ module Telnyx
137
137
  extend Telnyx::Internal::Type::Enum
138
138
 
139
139
  TELNYX = :telnyx
140
- TELNYX_2 = :Telnyx
141
140
  MINIMAX = :minimax
142
- MINIMAX_2 = :Minimax
143
141
 
144
142
  # @!method self.values
145
143
  # @return [Array<Symbol>]
@@ -55,9 +55,7 @@ module Telnyx
55
55
  extend Telnyx::Internal::Type::Enum
56
56
 
57
57
  TELNYX = :telnyx
58
- TELNYX_2 = :Telnyx
59
58
  MINIMAX = :minimax
60
- MINIMAX_2 = :Minimax
61
59
 
62
60
  # @!method self.values
63
61
  # @return [Array<Symbol>]
@@ -117,9 +117,7 @@ module Telnyx
117
117
  extend Telnyx::Internal::Type::Enum
118
118
 
119
119
  TELNYX = :telnyx
120
- TELNYX_2 = :Telnyx
121
120
  MINIMAX = :minimax
122
- MINIMAX_2 = :Minimax
123
121
 
124
122
  # @!method self.values
125
123
  # @return [Array<Symbol>]
@@ -122,9 +122,7 @@ module Telnyx
122
122
  extend Telnyx::Internal::Type::Enum
123
123
 
124
124
  TELNYX = :telnyx
125
- TELNYX_2 = :Telnyx
126
125
  MINIMAX = :minimax
127
- MINIMAX_2 = :Minimax
128
126
 
129
127
  # @!method self.values
130
128
  # @return [Array<Symbol>]
@@ -70,9 +70,7 @@ module Telnyx
70
70
  extend Telnyx::Internal::Type::Enum
71
71
 
72
72
  TELNYX = :telnyx
73
- TELNYX_2 = :Telnyx
74
73
  MINIMAX = :minimax
75
- MINIMAX_2 = :Minimax
76
74
 
77
75
  # @!method self.values
78
76
  # @return [Array<Symbol>]
@@ -84,9 +84,7 @@ module Telnyx
84
84
  extend Telnyx::Internal::Type::Enum
85
85
 
86
86
  TELNYX = :telnyx
87
- TELNYX_2 = :Telnyx
88
87
  MINIMAX = :minimax
89
- MINIMAX_2 = :Minimax
90
88
 
91
89
  # @!method self.values
92
90
  # @return [Array<Symbol>]