telnyx 5.27.0 → 5.29.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 (24) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/models/ai/webhook_tool.rb +9 -9
  5. data/lib/telnyx/models/calls/action_add_ai_assistant_messages_params.rb +15 -15
  6. data/lib/telnyx/models/messaging_10dlc/brand_get_sms_otp_by_reference_params.rb +24 -0
  7. data/lib/telnyx/models/messaging_10dlc/brand_get_sms_otp_by_reference_response.rb +82 -0
  8. data/lib/telnyx/models/texml/accounts/conference_retrieve_recordings_response.rb +4 -3
  9. data/lib/telnyx/resources/messaging_10dlc/brand.rb +35 -0
  10. data/lib/telnyx/version.rb +1 -1
  11. data/lib/telnyx.rb +2 -0
  12. data/rbi/telnyx/models/ai/webhook_tool.rbi +12 -12
  13. data/rbi/telnyx/models/calls/action_add_ai_assistant_messages_params.rbi +32 -20
  14. data/rbi/telnyx/models/messaging_10dlc/brand_get_sms_otp_by_reference_params.rbi +48 -0
  15. data/rbi/telnyx/models/messaging_10dlc/brand_get_sms_otp_by_reference_response.rbi +110 -0
  16. data/rbi/telnyx/models/texml/accounts/conference_retrieve_recordings_response.rbi +6 -4
  17. data/rbi/telnyx/resources/messaging_10dlc/brand.rbi +30 -0
  18. data/sig/telnyx/models/ai/webhook_tool.rbs +15 -15
  19. data/sig/telnyx/models/calls/action_add_ai_assistant_messages_params.rbs +40 -25
  20. data/sig/telnyx/models/messaging_10dlc/brand_get_sms_otp_by_reference_params.rbs +27 -0
  21. data/sig/telnyx/models/messaging_10dlc/brand_get_sms_otp_by_reference_response.rbs +63 -0
  22. data/sig/telnyx/models/texml/accounts/conference_retrieve_recordings_response.rbs +7 -5
  23. data/sig/telnyx/resources/messaging_10dlc/brand.rbs +6 -0
  24. metadata +7 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac219cca9489be5d485de3357985d32d754ca4f58041926acbd9d30dabc09cd5
4
- data.tar.gz: 7019be13066ffddf7631d940cc2499b27f35850f84d3d3d6ed6aecd3cba2692b
3
+ metadata.gz: 548f91ec64d499d48a1e4870ca60e2b728a0106b195b33fa9ece54cd84f1cc0b
4
+ data.tar.gz: 2a49c9ecdc92b3ed0bee8eb898cc1a63dce0b9024af1db041fe68e79731db177
5
5
  SHA512:
6
- metadata.gz: 01a3f0ee7ac62a9839e32361c34b27cdeb72e196e18f2af2b9c7251c47f221d669b55ccf413372ce7cead0b4c92ed312fcd25adbd3569080f054ece53d373479
7
- data.tar.gz: a05cb89dbd90ddd314f4ce569d4754238e8a222998f76359c16b0401a7c60ef730be5757e6788b17668521114f5405383014742a679753f70c3b9fca3f14be0f
6
+ metadata.gz: ad869cf1bf0628ce29709a9fb4baf2fea45cbf1a80da12b7970b59e4897bd3f108ccbc39dff9584c4e2a87743c46e90a59379cbbf3e2bfd44b0ed34fb79a3bb5
7
+ data.tar.gz: b49bd179a5530a2cf1b73e8ced1dc240733f3f70320bbe64b6646fa6f1dc48f51524f09135a94209311069e49d3490f2465775e4b551227d9b724e269340dbdf
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.29.0 (2026-02-18)
4
+
5
+ Full Changelog: [v5.28.0...v5.29.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.28.0...v5.29.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** manual updates ([2767c98](https://github.com/team-telnyx/telnyx-ruby/commit/2767c9853e7f1a768d46d6ebdd7fbf53d19ee3cd))
10
+
11
+ ## 5.28.0 (2026-02-18)
12
+
13
+ Full Changelog: [v5.27.0...v5.28.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.27.0...v5.28.0)
14
+
15
+ ### Features
16
+
17
+ * **api:** manual updates ([7f22269](https://github.com/team-telnyx/telnyx-ruby/commit/7f222695996445e1abcceb3a81f601fa72542d05))
18
+
3
19
  ## 5.27.0 (2026-02-18)
4
20
 
5
21
  Full Changelog: [v5.26.0...v5.27.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.26.0...v5.27.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.27.0"
27
+ gem "telnyx", "~> 5.29.0"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
@@ -117,8 +117,8 @@ module Telnyx
117
117
  # @!attribute properties
118
118
  # The properties of the body parameters.
119
119
  #
120
- # @return [Object, nil]
121
- optional :properties, Telnyx::Internal::Type::Unknown
120
+ # @return [Hash{Symbol=>Object}, nil]
121
+ optional :properties, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown]
122
122
 
123
123
  # @!attribute required
124
124
  # The required properties of the body parameters.
@@ -137,7 +137,7 @@ module Telnyx
137
137
  # the [JSON Schema reference](https://json-schema.org/understanding-json-schema)
138
138
  # for documentation about the format
139
139
  #
140
- # @param properties [Object] The properties of the body parameters.
140
+ # @param properties [Hash{Symbol=>Object}] The properties of the body parameters.
141
141
  #
142
142
  # @param required [Array<String>] The required properties of the body parameters.
143
143
  #
@@ -199,8 +199,8 @@ module Telnyx
199
199
  # @!attribute properties
200
200
  # The properties of the path parameters.
201
201
  #
202
- # @return [Object, nil]
203
- optional :properties, Telnyx::Internal::Type::Unknown
202
+ # @return [Hash{Symbol=>Object}, nil]
203
+ optional :properties, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown]
204
204
 
205
205
  # @!attribute required
206
206
  # The required properties of the path parameters.
@@ -220,7 +220,7 @@ module Telnyx
220
220
  # [JSON Schema reference](https://json-schema.org/understanding-json-schema) for
221
221
  # documentation about the format
222
222
  #
223
- # @param properties [Object] The properties of the path parameters.
223
+ # @param properties [Hash{Symbol=>Object}] The properties of the path parameters.
224
224
  #
225
225
  # @param required [Array<String>] The required properties of the path parameters.
226
226
  #
@@ -242,8 +242,8 @@ module Telnyx
242
242
  # @!attribute properties
243
243
  # The properties of the query parameters.
244
244
  #
245
- # @return [Object, nil]
246
- optional :properties, Telnyx::Internal::Type::Unknown
245
+ # @return [Hash{Symbol=>Object}, nil]
246
+ optional :properties, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown]
247
247
 
248
248
  # @!attribute required
249
249
  # The required properties of the query parameters.
@@ -263,7 +263,7 @@ module Telnyx
263
263
  # [JSON Schema reference](https://json-schema.org/understanding-json-schema) for
264
264
  # documentation about the format
265
265
  #
266
- # @param properties [Object] The properties of the query parameters.
266
+ # @param properties [Hash{Symbol=>Object}] The properties of the query parameters.
267
267
  #
268
268
  # @param required [Array<String>] The required properties of the query parameters.
269
269
  #
@@ -77,15 +77,15 @@ module Telnyx
77
77
  # @!attribute metadata
78
78
  # Metadata to add to the message
79
79
  #
80
- # @return [Object, nil]
81
- optional :metadata, Telnyx::Internal::Type::Unknown
80
+ # @return [Hash{Symbol=>Object}, nil]
81
+ optional :metadata, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown]
82
82
 
83
83
  # @!method initialize(content:, metadata: nil, role: :user)
84
84
  # Messages sent by an end user
85
85
  #
86
86
  # @param content [String] The contents of the user message.
87
87
  #
88
- # @param metadata [Object] Metadata to add to the message
88
+ # @param metadata [Hash{Symbol=>Object}] Metadata to add to the message
89
89
  #
90
90
  # @param role [Symbol, :user] The role of the messages author, in this case `user`.
91
91
  end
@@ -106,8 +106,8 @@ module Telnyx
106
106
  # @!attribute metadata
107
107
  # Metadata to add to the message
108
108
  #
109
- # @return [Object, nil]
110
- optional :metadata, Telnyx::Internal::Type::Unknown
109
+ # @return [Hash{Symbol=>Object}, nil]
110
+ optional :metadata, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown]
111
111
 
112
112
  # @!attribute tool_calls
113
113
  # The tool calls generated by the model, such as function calls.
@@ -121,7 +121,7 @@ module Telnyx
121
121
  #
122
122
  # @param content [String] The contents of the assistant message. Required unless `tool_calls`
123
123
  #
124
- # @param metadata [Object] Metadata to add to the message
124
+ # @param metadata [Hash{Symbol=>Object}] Metadata to add to the message
125
125
  #
126
126
  # @param tool_calls [Array<Telnyx::Models::Calls::ActionAddAIAssistantMessagesParams::Message::Assistant::ToolCall>] The tool calls generated by the model, such as function calls.
127
127
  #
@@ -207,15 +207,15 @@ module Telnyx
207
207
  # @!attribute metadata
208
208
  # Metadata to add to the message
209
209
  #
210
- # @return [Object, nil]
211
- optional :metadata, Telnyx::Internal::Type::Unknown
210
+ # @return [Hash{Symbol=>Object}, nil]
211
+ optional :metadata, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown]
212
212
 
213
213
  # @!method initialize(content:, tool_call_id:, metadata: nil, role: :tool)
214
214
  # @param content [String] The contents of the tool message.
215
215
  #
216
216
  # @param tool_call_id [String] Tool call that this message is responding to.
217
217
  #
218
- # @param metadata [Object] Metadata to add to the message
218
+ # @param metadata [Hash{Symbol=>Object}] Metadata to add to the message
219
219
  #
220
220
  # @param role [Symbol, :tool] The role of the messages author, in this case `tool`.
221
221
  end
@@ -236,8 +236,8 @@ module Telnyx
236
236
  # @!attribute metadata
237
237
  # Metadata to add to the message
238
238
  #
239
- # @return [Object, nil]
240
- optional :metadata, Telnyx::Internal::Type::Unknown
239
+ # @return [Hash{Symbol=>Object}, nil]
240
+ optional :metadata, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown]
241
241
 
242
242
  # @!method initialize(content:, metadata: nil, role: :system)
243
243
  # Developer-provided instructions that the model should follow, regardless of
@@ -245,7 +245,7 @@ module Telnyx
245
245
  #
246
246
  # @param content [String] The contents of the system message.
247
247
  #
248
- # @param metadata [Object] Metadata to add to the message
248
+ # @param metadata [Hash{Symbol=>Object}] Metadata to add to the message
249
249
  #
250
250
  # @param role [Symbol, :system] The role of the messages author, in this case `system`.
251
251
  end
@@ -266,8 +266,8 @@ module Telnyx
266
266
  # @!attribute metadata
267
267
  # Metadata to add to the message
268
268
  #
269
- # @return [Object, nil]
270
- optional :metadata, Telnyx::Internal::Type::Unknown
269
+ # @return [Hash{Symbol=>Object}, nil]
270
+ optional :metadata, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown]
271
271
 
272
272
  # @!method initialize(content:, metadata: nil, role: :developer)
273
273
  # Developer-provided instructions that the model should follow, regardless of
@@ -275,7 +275,7 @@ module Telnyx
275
275
  #
276
276
  # @param content [String] The contents of the developer message.
277
277
  #
278
- # @param metadata [Object] Metadata to add to the message
278
+ # @param metadata [Hash{Symbol=>Object}] Metadata to add to the message
279
279
  #
280
280
  # @param role [Symbol, :developer] The role of the messages author, in this case developer.
281
281
  end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module Messaging10dlc
6
+ # @see Telnyx::Resources::Messaging10dlc::Brand#get_sms_otp_by_reference
7
+ class BrandGetSMSOtpByReferenceParams < Telnyx::Internal::Type::BaseModel
8
+ extend Telnyx::Internal::Type::RequestParameters::Converter
9
+ include Telnyx::Internal::Type::RequestParameters
10
+
11
+ # @!attribute brand_id
12
+ # Filter by Brand ID for easier lookup in portal applications
13
+ #
14
+ # @return [String, nil]
15
+ optional :brand_id, String
16
+
17
+ # @!method initialize(brand_id: nil, request_options: {})
18
+ # @param brand_id [String] Filter by Brand ID for easier lookup in portal applications
19
+ #
20
+ # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,82 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module Messaging10dlc
6
+ # @see Telnyx::Resources::Messaging10dlc::Brand#get_sms_otp_by_reference
7
+ class BrandGetSMSOtpByReferenceResponse < Telnyx::Internal::Type::BaseModel
8
+ # @!attribute brand_id
9
+ # The Brand ID associated with this OTP request
10
+ #
11
+ # @return [String]
12
+ required :brand_id, String, api_name: :brandId
13
+
14
+ # @!attribute delivery_status
15
+ # The current delivery status of the OTP SMS message. Common values include:
16
+ # `DELIVERED_HANDSET`, `PENDING`, `FAILED`, `EXPIRED`
17
+ #
18
+ # @return [String]
19
+ required :delivery_status, String, api_name: :deliveryStatus
20
+
21
+ # @!attribute mobile_phone
22
+ # The mobile phone number where the OTP was sent, in E.164 format
23
+ #
24
+ # @return [String]
25
+ required :mobile_phone, String, api_name: :mobilePhone
26
+
27
+ # @!attribute reference_id
28
+ # The reference ID for this OTP request, used for status queries
29
+ #
30
+ # @return [String]
31
+ required :reference_id, String, api_name: :referenceId
32
+
33
+ # @!attribute request_date
34
+ # The timestamp when the OTP request was initiated
35
+ #
36
+ # @return [Time]
37
+ required :request_date, Time, api_name: :requestDate
38
+
39
+ # @!attribute delivery_status_date
40
+ # The timestamp when the delivery status was last updated
41
+ #
42
+ # @return [Time, nil]
43
+ optional :delivery_status_date, Time, api_name: :deliveryStatusDate
44
+
45
+ # @!attribute delivery_status_details
46
+ # Additional details about the delivery status
47
+ #
48
+ # @return [String, nil]
49
+ optional :delivery_status_details, String, api_name: :deliveryStatusDetails
50
+
51
+ # @!attribute verify_date
52
+ # The timestamp when the OTP was successfully verified (if applicable)
53
+ #
54
+ # @return [Time, nil]
55
+ optional :verify_date, Time, api_name: :verifyDate
56
+
57
+ # @!method initialize(brand_id:, delivery_status:, mobile_phone:, reference_id:, request_date:, delivery_status_date: nil, delivery_status_details: nil, verify_date: nil)
58
+ # Some parameter documentations has been truncated, see
59
+ # {Telnyx::Models::Messaging10dlc::BrandGetSMSOtpByReferenceResponse} for more
60
+ # details.
61
+ #
62
+ # Status information for an SMS OTP sent during Sole Proprietor brand verification
63
+ #
64
+ # @param brand_id [String] The Brand ID associated with this OTP request
65
+ #
66
+ # @param delivery_status [String] The current delivery status of the OTP SMS message. Common values include: `DELI
67
+ #
68
+ # @param mobile_phone [String] The mobile phone number where the OTP was sent, in E.164 format
69
+ #
70
+ # @param reference_id [String] The reference ID for this OTP request, used for status queries
71
+ #
72
+ # @param request_date [Time] The timestamp when the OTP request was initiated
73
+ #
74
+ # @param delivery_status_date [Time] The timestamp when the delivery status was last updated
75
+ #
76
+ # @param delivery_status_details [String] Additional details about the delivery status
77
+ #
78
+ # @param verify_date [Time] The timestamp when the OTP was successfully verified (if applicable)
79
+ end
80
+ end
81
+ end
82
+ end
@@ -39,8 +39,9 @@ module Telnyx
39
39
  # @!attribute participants
40
40
  # List of participant resources.
41
41
  #
42
- # @return [Array<Object>, nil]
43
- optional :participants, Telnyx::Internal::Type::ArrayOf[Telnyx::Internal::Type::Unknown]
42
+ # @return [Array<Hash{Symbol=>Object}>, nil]
43
+ optional :participants,
44
+ Telnyx::Internal::Type::ArrayOf[Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown]]
44
45
 
45
46
  # @!attribute recordings
46
47
  #
@@ -75,7 +76,7 @@ module Telnyx
75
76
  #
76
77
  # @param page_size [Integer] The number of items on the page
77
78
  #
78
- # @param participants [Array<Object>] List of participant resources.
79
+ # @param participants [Array<Hash{Symbol=>Object}>] List of participant resources.
79
80
  #
80
81
  # @param recordings [Array<Telnyx::Models::Texml::Accounts::ConferenceRetrieveRecordingsResponse::Recording>]
81
82
  #
@@ -275,6 +275,41 @@ module Telnyx
275
275
  )
276
276
  end
277
277
 
278
+ # Query the status of an SMS OTP (One-Time Password) for Sole Proprietor brand
279
+ # verification.
280
+ #
281
+ # This endpoint allows you to check the delivery and verification status of an OTP
282
+ # sent during the Sole Proprietor brand verification process. You can query by
283
+ # either:
284
+ #
285
+ # - `referenceId` - The reference ID returned when the OTP was initially triggered
286
+ # - `brandId` - Query parameter for portal users to look up OTP status by Brand ID
287
+ #
288
+ # The response includes delivery status, verification dates, and detailed delivery
289
+ # information.
290
+ #
291
+ # @overload get_sms_otp_by_reference(reference_id, brand_id: nil, request_options: {})
292
+ #
293
+ # @param reference_id [String] The reference ID returned when the OTP was initially triggered
294
+ #
295
+ # @param brand_id [String] Filter by Brand ID for easier lookup in portal applications
296
+ #
297
+ # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
298
+ #
299
+ # @return [Telnyx::Models::Messaging10dlc::BrandGetSMSOtpByReferenceResponse]
300
+ #
301
+ # @see Telnyx::Models::Messaging10dlc::BrandGetSMSOtpByReferenceParams
302
+ def get_sms_otp_by_reference(reference_id, params = {})
303
+ parsed, options = Telnyx::Messaging10dlc::BrandGetSMSOtpByReferenceParams.dump_request(params)
304
+ @client.request(
305
+ method: :get,
306
+ path: ["10dlc/brand/smsOtp/%1$s", reference_id],
307
+ query: parsed.transform_keys(brand_id: "brandId"),
308
+ model: Telnyx::Models::Messaging10dlc::BrandGetSMSOtpByReferenceResponse,
309
+ options: options
310
+ )
311
+ end
312
+
278
313
  # Resend brand 2FA email
279
314
  #
280
315
  # @overload resend_2fa_email(brand_id, request_options: {})
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Telnyx
4
- VERSION = "5.27.0"
4
+ VERSION = "5.29.0"
5
5
  end
data/lib/telnyx.rb CHANGED
@@ -1095,6 +1095,8 @@ require_relative "telnyx/models/messaging_10dlc/brand_create_params"
1095
1095
  require_relative "telnyx/models/messaging_10dlc/brand_delete_params"
1096
1096
  require_relative "telnyx/models/messaging_10dlc/brand_get_feedback_params"
1097
1097
  require_relative "telnyx/models/messaging_10dlc/brand_get_feedback_response"
1098
+ require_relative "telnyx/models/messaging_10dlc/brand_get_sms_otp_by_reference_params"
1099
+ require_relative "telnyx/models/messaging_10dlc/brand_get_sms_otp_by_reference_response"
1098
1100
  require_relative "telnyx/models/messaging_10dlc/brand_identity_status"
1099
1101
  require_relative "telnyx/models/messaging_10dlc/brand_list_params"
1100
1102
  require_relative "telnyx/models/messaging_10dlc/brand_list_response"
@@ -243,10 +243,10 @@ module Telnyx
243
243
  end
244
244
 
245
245
  # The properties of the body parameters.
246
- sig { returns(T.nilable(T.anything)) }
246
+ sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
247
247
  attr_reader :properties
248
248
 
249
- sig { params(properties: T.anything).void }
249
+ sig { params(properties: T::Hash[Symbol, T.anything]).void }
250
250
  attr_writer :properties
251
251
 
252
252
  # The required properties of the body parameters.
@@ -279,7 +279,7 @@ module Telnyx
279
279
  # for documentation about the format
280
280
  sig do
281
281
  params(
282
- properties: T.anything,
282
+ properties: T::Hash[Symbol, T.anything],
283
283
  required: T::Array[String],
284
284
  type:
285
285
  Telnyx::AI::WebhookTool::Webhook::BodyParameters::Type::OrSymbol
@@ -297,7 +297,7 @@ module Telnyx
297
297
  sig do
298
298
  override.returns(
299
299
  {
300
- properties: T.anything,
300
+ properties: T::Hash[Symbol, T.anything],
301
301
  required: T::Array[String],
302
302
  type:
303
303
  Telnyx::AI::WebhookTool::Webhook::BodyParameters::Type::OrSymbol
@@ -435,10 +435,10 @@ module Telnyx
435
435
  end
436
436
 
437
437
  # The properties of the path parameters.
438
- sig { returns(T.nilable(T.anything)) }
438
+ sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
439
439
  attr_reader :properties
440
440
 
441
- sig { params(properties: T.anything).void }
441
+ sig { params(properties: T::Hash[Symbol, T.anything]).void }
442
442
  attr_writer :properties
443
443
 
444
444
  # The required properties of the path parameters.
@@ -472,7 +472,7 @@ module Telnyx
472
472
  # documentation about the format
473
473
  sig do
474
474
  params(
475
- properties: T.anything,
475
+ properties: T::Hash[Symbol, T.anything],
476
476
  required: T::Array[String],
477
477
  type:
478
478
  Telnyx::AI::WebhookTool::Webhook::PathParameters::Type::OrSymbol
@@ -490,7 +490,7 @@ module Telnyx
490
490
  sig do
491
491
  override.returns(
492
492
  {
493
- properties: T.anything,
493
+ properties: T::Hash[Symbol, T.anything],
494
494
  required: T::Array[String],
495
495
  type:
496
496
  Telnyx::AI::WebhookTool::Webhook::PathParameters::Type::OrSymbol
@@ -540,10 +540,10 @@ module Telnyx
540
540
  end
541
541
 
542
542
  # The properties of the query parameters.
543
- sig { returns(T.nilable(T.anything)) }
543
+ sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
544
544
  attr_reader :properties
545
545
 
546
- sig { params(properties: T.anything).void }
546
+ sig { params(properties: T::Hash[Symbol, T.anything]).void }
547
547
  attr_writer :properties
548
548
 
549
549
  # The required properties of the query parameters.
@@ -577,7 +577,7 @@ module Telnyx
577
577
  # documentation about the format
578
578
  sig do
579
579
  params(
580
- properties: T.anything,
580
+ properties: T::Hash[Symbol, T.anything],
581
581
  required: T::Array[String],
582
582
  type:
583
583
  Telnyx::AI::WebhookTool::Webhook::QueryParameters::Type::OrSymbol
@@ -595,7 +595,7 @@ module Telnyx
595
595
  sig do
596
596
  override.returns(
597
597
  {
598
- properties: T.anything,
598
+ properties: T::Hash[Symbol, T.anything],
599
599
  required: T::Array[String],
600
600
  type:
601
601
  Telnyx::AI::WebhookTool::Webhook::QueryParameters::Type::OrSymbol
@@ -150,17 +150,17 @@ module Telnyx
150
150
  attr_accessor :role
151
151
 
152
152
  # Metadata to add to the message
153
- sig { returns(T.nilable(T.anything)) }
153
+ sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
154
154
  attr_reader :metadata
155
155
 
156
- sig { params(metadata: T.anything).void }
156
+ sig { params(metadata: T::Hash[Symbol, T.anything]).void }
157
157
  attr_writer :metadata
158
158
 
159
159
  # Messages sent by an end user
160
160
  sig do
161
161
  params(
162
162
  content: String,
163
- metadata: T.anything,
163
+ metadata: T::Hash[Symbol, T.anything],
164
164
  role: Symbol
165
165
  ).returns(T.attached_class)
166
166
  end
@@ -176,7 +176,11 @@ module Telnyx
176
176
 
177
177
  sig do
178
178
  override.returns(
179
- { content: String, role: Symbol, metadata: T.anything }
179
+ {
180
+ content: String,
181
+ role: Symbol,
182
+ metadata: T::Hash[Symbol, T.anything]
183
+ }
180
184
  )
181
185
  end
182
186
  def to_hash
@@ -204,10 +208,10 @@ module Telnyx
204
208
  attr_writer :content
205
209
 
206
210
  # Metadata to add to the message
207
- sig { returns(T.nilable(T.anything)) }
211
+ sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
208
212
  attr_reader :metadata
209
213
 
210
- sig { params(metadata: T.anything).void }
214
+ sig { params(metadata: T::Hash[Symbol, T.anything]).void }
211
215
  attr_writer :metadata
212
216
 
213
217
  # The tool calls generated by the model, such as function calls.
@@ -236,7 +240,7 @@ module Telnyx
236
240
  sig do
237
241
  params(
238
242
  content: String,
239
- metadata: T.anything,
243
+ metadata: T::Hash[Symbol, T.anything],
240
244
  tool_calls:
241
245
  T::Array[
242
246
  Telnyx::Calls::ActionAddAIAssistantMessagesParams::Message::Assistant::ToolCall::OrHash
@@ -261,7 +265,7 @@ module Telnyx
261
265
  {
262
266
  role: Symbol,
263
267
  content: String,
264
- metadata: T.anything,
268
+ metadata: T::Hash[Symbol, T.anything],
265
269
  tool_calls:
266
270
  T::Array[
267
271
  Telnyx::Calls::ActionAddAIAssistantMessagesParams::Message::Assistant::ToolCall
@@ -423,17 +427,17 @@ module Telnyx
423
427
  attr_accessor :tool_call_id
424
428
 
425
429
  # Metadata to add to the message
426
- sig { returns(T.nilable(T.anything)) }
430
+ sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
427
431
  attr_reader :metadata
428
432
 
429
- sig { params(metadata: T.anything).void }
433
+ sig { params(metadata: T::Hash[Symbol, T.anything]).void }
430
434
  attr_writer :metadata
431
435
 
432
436
  sig do
433
437
  params(
434
438
  content: String,
435
439
  tool_call_id: String,
436
- metadata: T.anything,
440
+ metadata: T::Hash[Symbol, T.anything],
437
441
  role: Symbol
438
442
  ).returns(T.attached_class)
439
443
  end
@@ -455,7 +459,7 @@ module Telnyx
455
459
  content: String,
456
460
  role: Symbol,
457
461
  tool_call_id: String,
458
- metadata: T.anything
462
+ metadata: T::Hash[Symbol, T.anything]
459
463
  }
460
464
  )
461
465
  end
@@ -481,10 +485,10 @@ module Telnyx
481
485
  attr_accessor :role
482
486
 
483
487
  # Metadata to add to the message
484
- sig { returns(T.nilable(T.anything)) }
488
+ sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
485
489
  attr_reader :metadata
486
490
 
487
- sig { params(metadata: T.anything).void }
491
+ sig { params(metadata: T::Hash[Symbol, T.anything]).void }
488
492
  attr_writer :metadata
489
493
 
490
494
  # Developer-provided instructions that the model should follow, regardless of
@@ -492,7 +496,7 @@ module Telnyx
492
496
  sig do
493
497
  params(
494
498
  content: String,
495
- metadata: T.anything,
499
+ metadata: T::Hash[Symbol, T.anything],
496
500
  role: Symbol
497
501
  ).returns(T.attached_class)
498
502
  end
@@ -508,7 +512,11 @@ module Telnyx
508
512
 
509
513
  sig do
510
514
  override.returns(
511
- { content: String, role: Symbol, metadata: T.anything }
515
+ {
516
+ content: String,
517
+ role: Symbol,
518
+ metadata: T::Hash[Symbol, T.anything]
519
+ }
512
520
  )
513
521
  end
514
522
  def to_hash
@@ -533,10 +541,10 @@ module Telnyx
533
541
  attr_accessor :role
534
542
 
535
543
  # Metadata to add to the message
536
- sig { returns(T.nilable(T.anything)) }
544
+ sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
537
545
  attr_reader :metadata
538
546
 
539
- sig { params(metadata: T.anything).void }
547
+ sig { params(metadata: T::Hash[Symbol, T.anything]).void }
540
548
  attr_writer :metadata
541
549
 
542
550
  # Developer-provided instructions that the model should follow, regardless of
@@ -544,7 +552,7 @@ module Telnyx
544
552
  sig do
545
553
  params(
546
554
  content: String,
547
- metadata: T.anything,
555
+ metadata: T::Hash[Symbol, T.anything],
548
556
  role: Symbol
549
557
  ).returns(T.attached_class)
550
558
  end
@@ -560,7 +568,11 @@ module Telnyx
560
568
 
561
569
  sig do
562
570
  override.returns(
563
- { content: String, role: Symbol, metadata: T.anything }
571
+ {
572
+ content: String,
573
+ role: Symbol,
574
+ metadata: T::Hash[Symbol, T.anything]
575
+ }
564
576
  )
565
577
  end
566
578
  def to_hash