telnyx 5.75.0 → 5.77.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 +21 -0
- data/README.md +1 -1
- data/lib/telnyx/models/ai/conversations/message_list_params.rb +18 -1
- data/lib/telnyx/models/ai/conversations/message_list_response.rb +91 -109
- data/lib/telnyx/models/call_dial_params.rb +6 -2
- data/lib/telnyx/models/calls/action_transfer_params.rb +6 -2
- data/lib/telnyx/models/sim_card_list_params.rb +1 -1
- data/lib/telnyx/models/traffic_policy_profile_list_params.rb +2 -2
- data/lib/telnyx/models/verify_profile.rb +9 -3
- data/lib/telnyx/models/verify_profile_create_params.rb +15 -5
- data/lib/telnyx/models/verify_profile_update_params.rb +15 -5
- data/lib/telnyx/resources/ai/conversations/messages.rb +12 -3
- data/lib/telnyx/version.rb +1 -1
- data/rbi/telnyx/models/ai/conversations/message_list_params.rbi +26 -1
- data/rbi/telnyx/models/ai/conversations/message_list_response.rbi +176 -231
- data/rbi/telnyx/models/call_dial_params.rbi +9 -3
- data/rbi/telnyx/models/calls/action_transfer_params.rbi +9 -3
- data/rbi/telnyx/models/sim_card_list_params.rbi +1 -1
- data/rbi/telnyx/models/traffic_policy_profile_list_params.rbi +2 -2
- data/rbi/telnyx/models/verify_profile.rbi +18 -6
- data/rbi/telnyx/models/verify_profile_create_params.rbi +30 -10
- data/rbi/telnyx/models/verify_profile_update_params.rbi +30 -10
- data/rbi/telnyx/resources/ai/conversations/messages.rbi +15 -2
- data/rbi/telnyx/resources/calls/actions.rbi +3 -1
- data/rbi/telnyx/resources/calls.rbi +3 -1
- data/sig/telnyx/models/ai/conversations/message_list_params.rbs +13 -1
- data/sig/telnyx/models/ai/conversations/message_list_response.rbs +67 -89
- data/sig/telnyx/models/sim_card_list_params.rbs +1 -1
- data/sig/telnyx/models/traffic_policy_profile_list_params.rbs +2 -2
- data/sig/telnyx/resources/ai/conversations/messages.rbs +3 -1
- metadata +2 -2
|
@@ -160,7 +160,9 @@ module Telnyx
|
|
|
160
160
|
|
|
161
161
|
# Enabled country destinations to send verification codes. The elements in the
|
|
162
162
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
163
|
-
# destinations will be allowed.
|
|
163
|
+
# destinations will be allowed. **Conditionally required:** this field must be
|
|
164
|
+
# provided when your organization is configured to require explicit whitelisted
|
|
165
|
+
# destinations; otherwise it is optional.
|
|
164
166
|
sig { returns(T.nilable(T::Array[String])) }
|
|
165
167
|
attr_reader :whitelisted_destinations
|
|
166
168
|
|
|
@@ -191,7 +193,9 @@ module Telnyx
|
|
|
191
193
|
messaging_template_id: nil,
|
|
192
194
|
# Enabled country destinations to send verification codes. The elements in the
|
|
193
195
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
194
|
-
# destinations will be allowed.
|
|
196
|
+
# destinations will be allowed. **Conditionally required:** this field must be
|
|
197
|
+
# provided when your organization is configured to require explicit whitelisted
|
|
198
|
+
# destinations; otherwise it is optional.
|
|
195
199
|
whitelisted_destinations: nil
|
|
196
200
|
)
|
|
197
201
|
end
|
|
@@ -240,7 +244,9 @@ module Telnyx
|
|
|
240
244
|
|
|
241
245
|
# Enabled country destinations to send verification codes. The elements in the
|
|
242
246
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
243
|
-
# destinations will be allowed.
|
|
247
|
+
# destinations will be allowed. **Conditionally required:** this field must be
|
|
248
|
+
# provided when your organization is configured to require explicit whitelisted
|
|
249
|
+
# destinations; otherwise it is optional.
|
|
244
250
|
sig { returns(T.nilable(T::Array[String])) }
|
|
245
251
|
attr_reader :whitelisted_destinations
|
|
246
252
|
|
|
@@ -265,7 +271,9 @@ module Telnyx
|
|
|
265
271
|
default_verification_timeout_secs: nil,
|
|
266
272
|
# Enabled country destinations to send verification codes. The elements in the
|
|
267
273
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
268
|
-
# destinations will be allowed.
|
|
274
|
+
# destinations will be allowed. **Conditionally required:** this field must be
|
|
275
|
+
# provided when your organization is configured to require explicit whitelisted
|
|
276
|
+
# destinations; otherwise it is optional.
|
|
269
277
|
whitelisted_destinations: nil
|
|
270
278
|
)
|
|
271
279
|
end
|
|
@@ -333,7 +341,9 @@ module Telnyx
|
|
|
333
341
|
|
|
334
342
|
# Enabled country destinations to send verification codes. The elements in the
|
|
335
343
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
336
|
-
# destinations will be allowed.
|
|
344
|
+
# destinations will be allowed. **Conditionally required:** this field must be
|
|
345
|
+
# provided when your organization is configured to require explicit whitelisted
|
|
346
|
+
# destinations; otherwise it is optional.
|
|
337
347
|
sig { returns(T.nilable(T::Array[String])) }
|
|
338
348
|
attr_reader :whitelisted_destinations
|
|
339
349
|
|
|
@@ -367,7 +377,9 @@ module Telnyx
|
|
|
367
377
|
sms_fallback: nil,
|
|
368
378
|
# Enabled country destinations to send verification codes. The elements in the
|
|
369
379
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
370
|
-
# destinations will be allowed.
|
|
380
|
+
# destinations will be allowed. **Conditionally required:** this field must be
|
|
381
|
+
# provided when your organization is configured to require explicit whitelisted
|
|
382
|
+
# destinations; otherwise it is optional.
|
|
371
383
|
whitelisted_destinations: nil
|
|
372
384
|
)
|
|
373
385
|
end
|
|
@@ -436,7 +448,9 @@ module Telnyx
|
|
|
436
448
|
|
|
437
449
|
# Enabled country destinations to send verification codes. The elements in the
|
|
438
450
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
439
|
-
# destinations will be allowed.
|
|
451
|
+
# destinations will be allowed. **Conditionally required:** this field must be
|
|
452
|
+
# provided when your organization is configured to require explicit whitelisted
|
|
453
|
+
# destinations; otherwise it is optional.
|
|
440
454
|
sig { returns(T.nilable(T::Array[String])) }
|
|
441
455
|
attr_reader :whitelisted_destinations
|
|
442
456
|
|
|
@@ -471,7 +485,9 @@ module Telnyx
|
|
|
471
485
|
messaging_template_id: nil,
|
|
472
486
|
# Enabled country destinations to send verification codes. The elements in the
|
|
473
487
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
474
|
-
# destinations will be allowed.
|
|
488
|
+
# destinations will be allowed. **Conditionally required:** this field must be
|
|
489
|
+
# provided when your organization is configured to require explicit whitelisted
|
|
490
|
+
# destinations; otherwise it is optional.
|
|
475
491
|
whitelisted_destinations: nil
|
|
476
492
|
)
|
|
477
493
|
end
|
|
@@ -521,7 +537,9 @@ module Telnyx
|
|
|
521
537
|
|
|
522
538
|
# Enabled country destinations to send verification codes. The elements in the
|
|
523
539
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
524
|
-
# destinations will be allowed.
|
|
540
|
+
# destinations will be allowed. **Conditionally required:** this field must be
|
|
541
|
+
# provided when your organization is configured to require explicit whitelisted
|
|
542
|
+
# destinations; otherwise it is optional.
|
|
525
543
|
sig { returns(T.nilable(T::Array[String])) }
|
|
526
544
|
attr_reader :whitelisted_destinations
|
|
527
545
|
|
|
@@ -546,7 +564,9 @@ module Telnyx
|
|
|
546
564
|
default_verification_timeout_secs: nil,
|
|
547
565
|
# Enabled country destinations to send verification codes. The elements in the
|
|
548
566
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
549
|
-
# destinations will be allowed.
|
|
567
|
+
# destinations will be allowed. **Conditionally required:** this field must be
|
|
568
|
+
# provided when your organization is configured to require explicit whitelisted
|
|
569
|
+
# destinations; otherwise it is optional.
|
|
550
570
|
whitelisted_destinations: nil
|
|
551
571
|
)
|
|
552
572
|
end
|
|
@@ -169,7 +169,9 @@ module Telnyx
|
|
|
169
169
|
|
|
170
170
|
# Enabled country destinations to send verification codes. The elements in the
|
|
171
171
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
172
|
-
# destinations will be allowed.
|
|
172
|
+
# destinations will be allowed. **Conditionally required:** this field must be
|
|
173
|
+
# provided when your organization is configured to require explicit whitelisted
|
|
174
|
+
# destinations; otherwise it is optional.
|
|
173
175
|
sig { returns(T.nilable(T::Array[String])) }
|
|
174
176
|
attr_reader :whitelisted_destinations
|
|
175
177
|
|
|
@@ -200,7 +202,9 @@ module Telnyx
|
|
|
200
202
|
messaging_template_id: nil,
|
|
201
203
|
# Enabled country destinations to send verification codes. The elements in the
|
|
202
204
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
203
|
-
# destinations will be allowed.
|
|
205
|
+
# destinations will be allowed. **Conditionally required:** this field must be
|
|
206
|
+
# provided when your organization is configured to require explicit whitelisted
|
|
207
|
+
# destinations; otherwise it is optional.
|
|
204
208
|
whitelisted_destinations: nil
|
|
205
209
|
)
|
|
206
210
|
end
|
|
@@ -249,7 +253,9 @@ module Telnyx
|
|
|
249
253
|
|
|
250
254
|
# Enabled country destinations to send verification codes. The elements in the
|
|
251
255
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
252
|
-
# destinations will be allowed.
|
|
256
|
+
# destinations will be allowed. **Conditionally required:** this field must be
|
|
257
|
+
# provided when your organization is configured to require explicit whitelisted
|
|
258
|
+
# destinations; otherwise it is optional.
|
|
253
259
|
sig { returns(T.nilable(T::Array[String])) }
|
|
254
260
|
attr_reader :whitelisted_destinations
|
|
255
261
|
|
|
@@ -274,7 +280,9 @@ module Telnyx
|
|
|
274
280
|
default_verification_timeout_secs: nil,
|
|
275
281
|
# Enabled country destinations to send verification codes. The elements in the
|
|
276
282
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
277
|
-
# destinations will be allowed.
|
|
283
|
+
# destinations will be allowed. **Conditionally required:** this field must be
|
|
284
|
+
# provided when your organization is configured to require explicit whitelisted
|
|
285
|
+
# destinations; otherwise it is optional.
|
|
278
286
|
whitelisted_destinations: nil
|
|
279
287
|
)
|
|
280
288
|
end
|
|
@@ -342,7 +350,9 @@ module Telnyx
|
|
|
342
350
|
|
|
343
351
|
# Enabled country destinations to send verification codes. The elements in the
|
|
344
352
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
345
|
-
# destinations will be allowed.
|
|
353
|
+
# destinations will be allowed. **Conditionally required:** this field must be
|
|
354
|
+
# provided when your organization is configured to require explicit whitelisted
|
|
355
|
+
# destinations; otherwise it is optional.
|
|
346
356
|
sig { returns(T.nilable(T::Array[String])) }
|
|
347
357
|
attr_reader :whitelisted_destinations
|
|
348
358
|
|
|
@@ -376,7 +386,9 @@ module Telnyx
|
|
|
376
386
|
sms_fallback: nil,
|
|
377
387
|
# Enabled country destinations to send verification codes. The elements in the
|
|
378
388
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
379
|
-
# destinations will be allowed.
|
|
389
|
+
# destinations will be allowed. **Conditionally required:** this field must be
|
|
390
|
+
# provided when your organization is configured to require explicit whitelisted
|
|
391
|
+
# destinations; otherwise it is optional.
|
|
380
392
|
whitelisted_destinations: nil
|
|
381
393
|
)
|
|
382
394
|
end
|
|
@@ -445,7 +457,9 @@ module Telnyx
|
|
|
445
457
|
|
|
446
458
|
# Enabled country destinations to send verification codes. The elements in the
|
|
447
459
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
448
|
-
# destinations will be allowed.
|
|
460
|
+
# destinations will be allowed. **Conditionally required:** this field must be
|
|
461
|
+
# provided when your organization is configured to require explicit whitelisted
|
|
462
|
+
# destinations; otherwise it is optional.
|
|
449
463
|
sig { returns(T.nilable(T::Array[String])) }
|
|
450
464
|
attr_reader :whitelisted_destinations
|
|
451
465
|
|
|
@@ -480,7 +494,9 @@ module Telnyx
|
|
|
480
494
|
messaging_template_id: nil,
|
|
481
495
|
# Enabled country destinations to send verification codes. The elements in the
|
|
482
496
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
483
|
-
# destinations will be allowed.
|
|
497
|
+
# destinations will be allowed. **Conditionally required:** this field must be
|
|
498
|
+
# provided when your organization is configured to require explicit whitelisted
|
|
499
|
+
# destinations; otherwise it is optional.
|
|
484
500
|
whitelisted_destinations: nil
|
|
485
501
|
)
|
|
486
502
|
end
|
|
@@ -530,7 +546,9 @@ module Telnyx
|
|
|
530
546
|
|
|
531
547
|
# Enabled country destinations to send verification codes. The elements in the
|
|
532
548
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
533
|
-
# destinations will be allowed.
|
|
549
|
+
# destinations will be allowed. **Conditionally required:** this field must be
|
|
550
|
+
# provided when your organization is configured to require explicit whitelisted
|
|
551
|
+
# destinations; otherwise it is optional.
|
|
534
552
|
sig { returns(T.nilable(T::Array[String])) }
|
|
535
553
|
attr_reader :whitelisted_destinations
|
|
536
554
|
|
|
@@ -555,7 +573,9 @@ module Telnyx
|
|
|
555
573
|
default_verification_timeout_secs: nil,
|
|
556
574
|
# Enabled country destinations to send verification codes. The elements in the
|
|
557
575
|
# list must be valid ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all
|
|
558
|
-
# destinations will be allowed.
|
|
576
|
+
# destinations will be allowed. **Conditionally required:** this field must be
|
|
577
|
+
# provided when your organization is configured to require explicit whitelisted
|
|
578
|
+
# destinations; otherwise it is optional.
|
|
559
579
|
whitelisted_destinations: nil
|
|
560
580
|
)
|
|
561
581
|
end
|
|
@@ -11,10 +11,23 @@ module Telnyx
|
|
|
11
11
|
sig do
|
|
12
12
|
params(
|
|
13
13
|
conversation_id: String,
|
|
14
|
+
page_number: Integer,
|
|
15
|
+
page_size: Integer,
|
|
14
16
|
request_options: Telnyx::RequestOptions::OrHash
|
|
15
|
-
).returns(
|
|
17
|
+
).returns(
|
|
18
|
+
Telnyx::Internal::DefaultFlatPagination[
|
|
19
|
+
Telnyx::Models::AI::Conversations::MessageListResponse
|
|
20
|
+
]
|
|
21
|
+
)
|
|
16
22
|
end
|
|
17
|
-
def list(
|
|
23
|
+
def list(
|
|
24
|
+
conversation_id,
|
|
25
|
+
# The page number to retrieve.
|
|
26
|
+
page_number: nil,
|
|
27
|
+
# The number of messages to return per page.
|
|
28
|
+
page_size: nil,
|
|
29
|
+
request_options: {}
|
|
30
|
+
)
|
|
18
31
|
end
|
|
19
32
|
|
|
20
33
|
# @api private
|
|
@@ -2031,7 +2031,9 @@ module Telnyx
|
|
|
2031
2031
|
# receive 'call.machine.greeting.ended' if a beep is detected.
|
|
2032
2032
|
answering_machine_detection: nil,
|
|
2033
2033
|
# Optional configuration parameters to modify 'answering_machine_detection'
|
|
2034
|
-
# performance.
|
|
2034
|
+
# performance. Only `total_analysis_time_millis` and `greeting_duration_millis`
|
|
2035
|
+
# parameters are applicable when `premium` is selected as
|
|
2036
|
+
# answering_machine_detection.
|
|
2035
2037
|
answering_machine_detection_config: nil,
|
|
2036
2038
|
# The URL of a file to be played back when the transfer destination answers before
|
|
2037
2039
|
# bridging the call. The URL can point to either a WAV or MP3 file. media_name and
|
|
@@ -137,7 +137,9 @@ module Telnyx
|
|
|
137
137
|
# receive `call.machine.greeting.ended` if a beep is detected.
|
|
138
138
|
answering_machine_detection: nil,
|
|
139
139
|
# Optional configuration parameters to modify 'answering_machine_detection'
|
|
140
|
-
# performance.
|
|
140
|
+
# performance. Only `total_analysis_time_millis` and `greeting_duration_millis`
|
|
141
|
+
# parameters are applicable when `premium` is selected as
|
|
142
|
+
# answering_machine_detection.
|
|
141
143
|
answering_machine_detection_config: nil,
|
|
142
144
|
# AI Assistant configuration. All fields except `id` are optional — the
|
|
143
145
|
# assistant's stored configuration will be used as fallback for any omitted
|
|
@@ -3,7 +3,7 @@ module Telnyx
|
|
|
3
3
|
module AI
|
|
4
4
|
module Conversations
|
|
5
5
|
type message_list_params =
|
|
6
|
-
{ conversation_id: String }
|
|
6
|
+
{ conversation_id: String, page_number: Integer, page_size: Integer }
|
|
7
7
|
& Telnyx::Internal::Type::request_parameters
|
|
8
8
|
|
|
9
9
|
class MessageListParams < Telnyx::Internal::Type::BaseModel
|
|
@@ -12,13 +12,25 @@ module Telnyx
|
|
|
12
12
|
|
|
13
13
|
attr_accessor conversation_id: String
|
|
14
14
|
|
|
15
|
+
attr_reader page_number: Integer?
|
|
16
|
+
|
|
17
|
+
def page_number=: (Integer) -> Integer
|
|
18
|
+
|
|
19
|
+
attr_reader page_size: Integer?
|
|
20
|
+
|
|
21
|
+
def page_size=: (Integer) -> Integer
|
|
22
|
+
|
|
15
23
|
def initialize: (
|
|
16
24
|
conversation_id: String,
|
|
25
|
+
?page_number: Integer,
|
|
26
|
+
?page_size: Integer,
|
|
17
27
|
?request_options: Telnyx::request_opts
|
|
18
28
|
) -> void
|
|
19
29
|
|
|
20
30
|
def to_hash: -> {
|
|
21
31
|
conversation_id: String,
|
|
32
|
+
page_number: Integer,
|
|
33
|
+
page_size: Integer,
|
|
22
34
|
request_options: Telnyx::RequestOptions
|
|
23
35
|
}
|
|
24
36
|
end
|
|
@@ -4,128 +4,106 @@ module Telnyx
|
|
|
4
4
|
module Conversations
|
|
5
5
|
type message_list_response =
|
|
6
6
|
{
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
role: Telnyx::Models::AI::Conversations::MessageListResponse::role,
|
|
8
|
+
text: String,
|
|
9
|
+
created_at: Time,
|
|
10
|
+
sent_at: Time,
|
|
11
|
+
tool_calls: ::Array[Telnyx::Models::AI::Conversations::MessageListResponse::ToolCall]
|
|
9
12
|
}
|
|
10
13
|
|
|
11
14
|
class MessageListResponse < Telnyx::Internal::Type::BaseModel
|
|
12
|
-
attr_accessor
|
|
15
|
+
attr_accessor role: Telnyx::Models::AI::Conversations::MessageListResponse::role
|
|
13
16
|
|
|
14
|
-
attr_accessor
|
|
17
|
+
attr_accessor text: String
|
|
18
|
+
|
|
19
|
+
attr_reader created_at: Time?
|
|
20
|
+
|
|
21
|
+
def created_at=: (Time) -> Time
|
|
22
|
+
|
|
23
|
+
attr_reader sent_at: Time?
|
|
24
|
+
|
|
25
|
+
def sent_at=: (Time) -> Time
|
|
26
|
+
|
|
27
|
+
attr_reader tool_calls: ::Array[Telnyx::Models::AI::Conversations::MessageListResponse::ToolCall]?
|
|
28
|
+
|
|
29
|
+
def tool_calls=: (
|
|
30
|
+
::Array[Telnyx::Models::AI::Conversations::MessageListResponse::ToolCall]
|
|
31
|
+
) -> ::Array[Telnyx::Models::AI::Conversations::MessageListResponse::ToolCall]
|
|
15
32
|
|
|
16
33
|
def initialize: (
|
|
17
|
-
|
|
18
|
-
|
|
34
|
+
role: Telnyx::Models::AI::Conversations::MessageListResponse::role,
|
|
35
|
+
text: String,
|
|
36
|
+
?created_at: Time,
|
|
37
|
+
?sent_at: Time,
|
|
38
|
+
?tool_calls: ::Array[Telnyx::Models::AI::Conversations::MessageListResponse::ToolCall]
|
|
19
39
|
) -> void
|
|
20
40
|
|
|
21
41
|
def to_hash: -> {
|
|
22
|
-
|
|
23
|
-
|
|
42
|
+
role: Telnyx::Models::AI::Conversations::MessageListResponse::role,
|
|
43
|
+
text: String,
|
|
44
|
+
created_at: Time,
|
|
45
|
+
sent_at: Time,
|
|
46
|
+
tool_calls: ::Array[Telnyx::Models::AI::Conversations::MessageListResponse::ToolCall]
|
|
24
47
|
}
|
|
25
48
|
|
|
26
|
-
type
|
|
27
|
-
{
|
|
28
|
-
role: Telnyx::Models::AI::Conversations::MessageListResponse::Data::role,
|
|
29
|
-
text: String,
|
|
30
|
-
created_at: Time,
|
|
31
|
-
sent_at: Time,
|
|
32
|
-
tool_calls: ::Array[Telnyx::Models::AI::Conversations::MessageListResponse::Data::ToolCall]
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
class Data < Telnyx::Internal::Type::BaseModel
|
|
36
|
-
attr_accessor role: Telnyx::Models::AI::Conversations::MessageListResponse::Data::role
|
|
49
|
+
type role = :user | :assistant | :tool
|
|
37
50
|
|
|
38
|
-
|
|
51
|
+
module Role
|
|
52
|
+
extend Telnyx::Internal::Type::Enum
|
|
39
53
|
|
|
40
|
-
|
|
54
|
+
USER: :user
|
|
55
|
+
ASSISTANT: :assistant
|
|
56
|
+
TOOL: :tool
|
|
41
57
|
|
|
42
|
-
def
|
|
58
|
+
def self?.values: -> ::Array[Telnyx::Models::AI::Conversations::MessageListResponse::role]
|
|
59
|
+
end
|
|
43
60
|
|
|
44
|
-
|
|
61
|
+
type tool_call =
|
|
62
|
+
{
|
|
63
|
+
id: String,
|
|
64
|
+
function: Telnyx::Models::AI::Conversations::MessageListResponse::ToolCall::Function,
|
|
65
|
+
type: Telnyx::Models::AI::Conversations::MessageListResponse::ToolCall::type_
|
|
66
|
+
}
|
|
45
67
|
|
|
46
|
-
|
|
68
|
+
class ToolCall < Telnyx::Internal::Type::BaseModel
|
|
69
|
+
attr_accessor id: String
|
|
47
70
|
|
|
48
|
-
|
|
71
|
+
attr_accessor function: Telnyx::Models::AI::Conversations::MessageListResponse::ToolCall::Function
|
|
49
72
|
|
|
50
|
-
|
|
51
|
-
::Array[Telnyx::Models::AI::Conversations::MessageListResponse::Data::ToolCall]
|
|
52
|
-
) -> ::Array[Telnyx::Models::AI::Conversations::MessageListResponse::Data::ToolCall]
|
|
73
|
+
attr_accessor type: Telnyx::Models::AI::Conversations::MessageListResponse::ToolCall::type_
|
|
53
74
|
|
|
54
75
|
def initialize: (
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
?sent_at: Time,
|
|
59
|
-
?tool_calls: ::Array[Telnyx::Models::AI::Conversations::MessageListResponse::Data::ToolCall]
|
|
76
|
+
id: String,
|
|
77
|
+
function: Telnyx::Models::AI::Conversations::MessageListResponse::ToolCall::Function,
|
|
78
|
+
type: Telnyx::Models::AI::Conversations::MessageListResponse::ToolCall::type_
|
|
60
79
|
) -> void
|
|
61
80
|
|
|
62
81
|
def to_hash: -> {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
sent_at: Time,
|
|
67
|
-
tool_calls: ::Array[Telnyx::Models::AI::Conversations::MessageListResponse::Data::ToolCall]
|
|
82
|
+
id: String,
|
|
83
|
+
function: Telnyx::Models::AI::Conversations::MessageListResponse::ToolCall::Function,
|
|
84
|
+
type: Telnyx::Models::AI::Conversations::MessageListResponse::ToolCall::type_
|
|
68
85
|
}
|
|
69
86
|
|
|
70
|
-
type
|
|
71
|
-
|
|
72
|
-
module Role
|
|
73
|
-
extend Telnyx::Internal::Type::Enum
|
|
74
|
-
|
|
75
|
-
USER: :user
|
|
76
|
-
ASSISTANT: :assistant
|
|
77
|
-
TOOL: :tool
|
|
78
|
-
|
|
79
|
-
def self?.values: -> ::Array[Telnyx::Models::AI::Conversations::MessageListResponse::Data::role]
|
|
80
|
-
end
|
|
81
|
-
|
|
82
|
-
type tool_call =
|
|
83
|
-
{
|
|
84
|
-
id: String,
|
|
85
|
-
function: Telnyx::Models::AI::Conversations::MessageListResponse::Data::ToolCall::Function,
|
|
86
|
-
type: Telnyx::Models::AI::Conversations::MessageListResponse::Data::ToolCall::type_
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
class ToolCall < Telnyx::Internal::Type::BaseModel
|
|
90
|
-
attr_accessor id: String
|
|
91
|
-
|
|
92
|
-
attr_accessor function: Telnyx::Models::AI::Conversations::MessageListResponse::Data::ToolCall::Function
|
|
87
|
+
type function = { arguments: String, name: String }
|
|
93
88
|
|
|
94
|
-
|
|
89
|
+
class Function < Telnyx::Internal::Type::BaseModel
|
|
90
|
+
attr_accessor arguments: String
|
|
95
91
|
|
|
96
|
-
|
|
97
|
-
id: String,
|
|
98
|
-
function: Telnyx::Models::AI::Conversations::MessageListResponse::Data::ToolCall::Function,
|
|
99
|
-
type: Telnyx::Models::AI::Conversations::MessageListResponse::Data::ToolCall::type_
|
|
100
|
-
) -> void
|
|
92
|
+
attr_accessor name: String
|
|
101
93
|
|
|
102
|
-
def
|
|
103
|
-
id: String,
|
|
104
|
-
function: Telnyx::Models::AI::Conversations::MessageListResponse::Data::ToolCall::Function,
|
|
105
|
-
type: Telnyx::Models::AI::Conversations::MessageListResponse::Data::ToolCall::type_
|
|
106
|
-
}
|
|
94
|
+
def initialize: (arguments: String, name: String) -> void
|
|
107
95
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
class Function < Telnyx::Internal::Type::BaseModel
|
|
111
|
-
attr_accessor arguments: String
|
|
112
|
-
|
|
113
|
-
attr_accessor name: String
|
|
114
|
-
|
|
115
|
-
def initialize: (arguments: String, name: String) -> void
|
|
116
|
-
|
|
117
|
-
def to_hash: -> { arguments: String, name: String }
|
|
118
|
-
end
|
|
96
|
+
def to_hash: -> { arguments: String, name: String }
|
|
97
|
+
end
|
|
119
98
|
|
|
120
|
-
|
|
99
|
+
type type_ = :function
|
|
121
100
|
|
|
122
|
-
|
|
123
|
-
|
|
101
|
+
module Type
|
|
102
|
+
extend Telnyx::Internal::Type::Enum
|
|
124
103
|
|
|
125
|
-
|
|
104
|
+
FUNCTION: :function
|
|
126
105
|
|
|
127
|
-
|
|
128
|
-
end
|
|
106
|
+
def self?.values: -> ::Array[Telnyx::Models::AI::Conversations::MessageListResponse::ToolCall::type_]
|
|
129
107
|
end
|
|
130
108
|
end
|
|
131
109
|
end
|
|
@@ -132,7 +132,7 @@ module Telnyx
|
|
|
132
132
|
extend Telnyx::Internal::Type::Enum
|
|
133
133
|
|
|
134
134
|
CURRENT_BILLING_PERIOD_CONSUMED_DATA_AMOUNT: :"current_billing_period_consumed_data.amount"
|
|
135
|
-
|
|
135
|
+
DESC_CURRENT_BILLING_PERIOD_CONSUMED_DATA_AMOUNT: :"-current_billing_period_consumed_data.amount"
|
|
136
136
|
|
|
137
137
|
def self?.values: -> ::Array[Telnyx::Models::SimCardListParams::sort]
|
|
138
138
|
end
|
|
@@ -74,9 +74,9 @@ module Telnyx
|
|
|
74
74
|
extend Telnyx::Internal::Type::Enum
|
|
75
75
|
|
|
76
76
|
SERVICE: :service
|
|
77
|
-
|
|
77
|
+
DESC_SERVICE: :"-service"
|
|
78
78
|
TYPE: :type
|
|
79
|
-
|
|
79
|
+
DESC_TYPE: :"-type"
|
|
80
80
|
|
|
81
81
|
def self?.values: -> ::Array[Telnyx::Models::TrafficPolicyProfileListParams::sort]
|
|
82
82
|
end
|
|
@@ -5,8 +5,10 @@ module Telnyx
|
|
|
5
5
|
class Messages
|
|
6
6
|
def list: (
|
|
7
7
|
String conversation_id,
|
|
8
|
+
?page_number: Integer,
|
|
9
|
+
?page_size: Integer,
|
|
8
10
|
?request_options: Telnyx::request_opts
|
|
9
|
-
) -> Telnyx::Models::AI::Conversations::MessageListResponse
|
|
11
|
+
) -> Telnyx::Internal::DefaultFlatPagination[Telnyx::Models::AI::Conversations::MessageListResponse]
|
|
10
12
|
|
|
11
13
|
def initialize: (client: Telnyx::Client) -> void
|
|
12
14
|
end
|
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.77.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-04-
|
|
11
|
+
date: 2026-04-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|