telnyx 5.72.1 → 5.73.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 +8 -0
- data/README.md +1 -1
- data/lib/telnyx/models/call_dial_params.rb +57 -1
- data/lib/telnyx/resources/calls.rb +7 -1
- data/lib/telnyx/version.rb +1 -1
- data/rbi/telnyx/models/call_dial_params.rbi +125 -0
- data/rbi/telnyx/resources/calls.rbi +19 -0
- data/sig/telnyx/models/call_dial_params.rbs +49 -1
- data/sig/telnyx/resources/calls.rbs +3 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c389a5da56a121f4e98c897e6850d9ca606c7599d5a5876bb412b54ecddc2c5c
|
|
4
|
+
data.tar.gz: dceb4fbe73952485bd61befde2f459dbf75304e7023867dfee9134140a2dd21b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f429e2fa63285162f8215a48588fe10cfb6e800f1733f02c0ed44aa2954eddb0d6c168d7aa7d4926193dfc90f7c3e7df117ade21badaa3cceb2cf263ce088583
|
|
7
|
+
data.tar.gz: 131271919b4925389b1db0f2bab77c7957bcdc6c07c14cdce92af2544b40ddea77d664acaefaba7a2aaac7228d06d6b880f9c59b4d53d733ae2190d235f19761
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.73.0 (2026-04-13)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v5.72.1...v5.73.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.72.1...v5.73.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* Add webhook_urls, webhook_urls_method, webhook_retries_policies to Dial endpoint ([c513a2b](https://github.com/team-telnyx/telnyx-ruby/commit/c513a2bac4f4a731fb819f1aa18bce276fa12dec))
|
|
10
|
+
|
|
3
11
|
## 5.72.1 (2026-04-12)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v5.72.0...v5.72.1](https://github.com/team-telnyx/telnyx-ruby/compare/v5.72.0...v5.72.1)
|
data/README.md
CHANGED
|
@@ -402,6 +402,15 @@ module Telnyx
|
|
|
402
402
|
# @return [Telnyx::Models::Calls::TranscriptionStartRequest, nil]
|
|
403
403
|
optional :transcription_config, -> { Telnyx::Calls::TranscriptionStartRequest }
|
|
404
404
|
|
|
405
|
+
# @!attribute webhook_retries_policies
|
|
406
|
+
# A map of event types to retry policies. Each retry policy contains an array of
|
|
407
|
+
# `retries_ms` specifying the delays between retry attempts in milliseconds.
|
|
408
|
+
# Maximum 5 retries, total delay cannot exceed 60 seconds.
|
|
409
|
+
#
|
|
410
|
+
# @return [Hash{Symbol=>Telnyx::Models::CallDialParams::WebhookRetriesPolicy}, nil]
|
|
411
|
+
optional :webhook_retries_policies,
|
|
412
|
+
-> { Telnyx::Internal::Type::HashOf[Telnyx::CallDialParams::WebhookRetriesPolicy] }
|
|
413
|
+
|
|
405
414
|
# @!attribute webhook_url
|
|
406
415
|
# Use this field to override the URL for which Telnyx will send subsequent
|
|
407
416
|
# webhooks to for this call.
|
|
@@ -415,7 +424,22 @@ module Telnyx
|
|
|
415
424
|
# @return [Symbol, Telnyx::Models::CallDialParams::WebhookURLMethod, nil]
|
|
416
425
|
optional :webhook_url_method, enum: -> { Telnyx::CallDialParams::WebhookURLMethod }
|
|
417
426
|
|
|
418
|
-
# @!
|
|
427
|
+
# @!attribute webhook_urls
|
|
428
|
+
# A map of event types to webhook URLs. When an event of the specified type
|
|
429
|
+
# occurs, the webhook URL associated with that event type will be called instead
|
|
430
|
+
# of the default webhook URL. Events not mapped here will use the default webhook
|
|
431
|
+
# URL.
|
|
432
|
+
#
|
|
433
|
+
# @return [Hash{Symbol=>String}, nil]
|
|
434
|
+
optional :webhook_urls, Telnyx::Internal::Type::HashOf[String]
|
|
435
|
+
|
|
436
|
+
# @!attribute webhook_urls_method
|
|
437
|
+
# HTTP request method to invoke `webhook_urls`.
|
|
438
|
+
#
|
|
439
|
+
# @return [Symbol, Telnyx::Models::CallDialParams::WebhookURLsMethod, nil]
|
|
440
|
+
optional :webhook_urls_method, enum: -> { Telnyx::CallDialParams::WebhookURLsMethod }
|
|
441
|
+
|
|
442
|
+
# @!method initialize(connection_id:, from:, to:, answering_machine_detection: nil, answering_machine_detection_config: nil, assistant: nil, audio_url: nil, billing_group_id: nil, bridge_intent: nil, bridge_on_answer: nil, client_state: nil, command_id: nil, conference_config: nil, custom_headers: nil, dialogflow_config: nil, enable_dialogflow: nil, from_display_name: nil, link_to: nil, media_encryption: nil, media_name: nil, park_after_unbridge: nil, preferred_codecs: nil, prevent_double_bridge: nil, privacy: nil, record: nil, record_channels: nil, record_custom_file_name: nil, record_format: nil, record_max_length: nil, record_timeout_secs: nil, record_track: nil, record_trim: nil, send_silence_when_idle: nil, sip_auth_password: nil, sip_auth_username: nil, sip_headers: nil, sip_region: nil, sip_transport_protocol: nil, sound_modifications: nil, stream_auth_token: nil, stream_bidirectional_codec: nil, stream_bidirectional_mode: nil, stream_bidirectional_sampling_rate: nil, stream_bidirectional_target_legs: nil, stream_codec: nil, stream_establish_before_call_originate: nil, stream_track: nil, stream_url: nil, supervise_call_control_id: nil, supervisor_role: nil, time_limit_secs: nil, timeout_secs: nil, transcription: nil, transcription_config: nil, webhook_retries_policies: nil, webhook_url: nil, webhook_url_method: nil, webhook_urls: nil, webhook_urls_method: nil, request_options: {})
|
|
419
443
|
# Some parameter documentations has been truncated, see
|
|
420
444
|
# {Telnyx::Models::CallDialParams} for more details.
|
|
421
445
|
#
|
|
@@ -528,10 +552,16 @@ module Telnyx
|
|
|
528
552
|
#
|
|
529
553
|
# @param transcription_config [Telnyx::Models::Calls::TranscriptionStartRequest]
|
|
530
554
|
#
|
|
555
|
+
# @param webhook_retries_policies [Hash{Symbol=>Telnyx::Models::CallDialParams::WebhookRetriesPolicy}] A map of event types to retry policies. Each retry policy contains an array of `
|
|
556
|
+
#
|
|
531
557
|
# @param webhook_url [String] Use this field to override the URL for which Telnyx will send subsequent webhook
|
|
532
558
|
#
|
|
533
559
|
# @param webhook_url_method [Symbol, Telnyx::Models::CallDialParams::WebhookURLMethod] HTTP request type used for `webhook_url`.
|
|
534
560
|
#
|
|
561
|
+
# @param webhook_urls [Hash{Symbol=>String}] A map of event types to webhook URLs. When an event of the specified type occurs
|
|
562
|
+
#
|
|
563
|
+
# @param webhook_urls_method [Symbol, Telnyx::Models::CallDialParams::WebhookURLsMethod] HTTP request method to invoke `webhook_urls`.
|
|
564
|
+
#
|
|
535
565
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
536
566
|
|
|
537
567
|
# The DID or SIP URI to dial out to. Multiple DID or SIP URIs can be provided
|
|
@@ -993,6 +1023,21 @@ module Telnyx
|
|
|
993
1023
|
# @return [Array<Symbol>]
|
|
994
1024
|
end
|
|
995
1025
|
|
|
1026
|
+
class WebhookRetriesPolicy < Telnyx::Internal::Type::BaseModel
|
|
1027
|
+
# @!attribute retries_ms
|
|
1028
|
+
# Array of delays in milliseconds between retry attempts. Total sum cannot exceed
|
|
1029
|
+
# 60000ms.
|
|
1030
|
+
#
|
|
1031
|
+
# @return [Array<Integer>, nil]
|
|
1032
|
+
optional :retries_ms, Telnyx::Internal::Type::ArrayOf[Integer]
|
|
1033
|
+
|
|
1034
|
+
# @!method initialize(retries_ms: nil)
|
|
1035
|
+
# Some parameter documentations has been truncated, see
|
|
1036
|
+
# {Telnyx::Models::CallDialParams::WebhookRetriesPolicy} for more details.
|
|
1037
|
+
#
|
|
1038
|
+
# @param retries_ms [Array<Integer>] Array of delays in milliseconds between retry attempts. Total sum cannot exceed
|
|
1039
|
+
end
|
|
1040
|
+
|
|
996
1041
|
# HTTP request type used for `webhook_url`.
|
|
997
1042
|
module WebhookURLMethod
|
|
998
1043
|
extend Telnyx::Internal::Type::Enum
|
|
@@ -1003,6 +1048,17 @@ module Telnyx
|
|
|
1003
1048
|
# @!method self.values
|
|
1004
1049
|
# @return [Array<Symbol>]
|
|
1005
1050
|
end
|
|
1051
|
+
|
|
1052
|
+
# HTTP request method to invoke `webhook_urls`.
|
|
1053
|
+
module WebhookURLsMethod
|
|
1054
|
+
extend Telnyx::Internal::Type::Enum
|
|
1055
|
+
|
|
1056
|
+
POST = :POST
|
|
1057
|
+
GET = :GET
|
|
1058
|
+
|
|
1059
|
+
# @!method self.values
|
|
1060
|
+
# @return [Array<Symbol>]
|
|
1061
|
+
end
|
|
1006
1062
|
end
|
|
1007
1063
|
end
|
|
1008
1064
|
end
|
|
@@ -31,7 +31,7 @@ module Telnyx
|
|
|
31
31
|
# When the `record` parameter is set to `record-from-answer`, the response will
|
|
32
32
|
# include a `recording_id` field.
|
|
33
33
|
#
|
|
34
|
-
# @overload dial(connection_id:, from:, to:, answering_machine_detection: nil, answering_machine_detection_config: nil, assistant: nil, audio_url: nil, billing_group_id: nil, bridge_intent: nil, bridge_on_answer: nil, client_state: nil, command_id: nil, conference_config: nil, custom_headers: nil, dialogflow_config: nil, enable_dialogflow: nil, from_display_name: nil, link_to: nil, media_encryption: nil, media_name: nil, park_after_unbridge: nil, preferred_codecs: nil, prevent_double_bridge: nil, privacy: nil, record: nil, record_channels: nil, record_custom_file_name: nil, record_format: nil, record_max_length: nil, record_timeout_secs: nil, record_track: nil, record_trim: nil, send_silence_when_idle: nil, sip_auth_password: nil, sip_auth_username: nil, sip_headers: nil, sip_region: nil, sip_transport_protocol: nil, sound_modifications: nil, stream_auth_token: nil, stream_bidirectional_codec: nil, stream_bidirectional_mode: nil, stream_bidirectional_sampling_rate: nil, stream_bidirectional_target_legs: nil, stream_codec: nil, stream_establish_before_call_originate: nil, stream_track: nil, stream_url: nil, supervise_call_control_id: nil, supervisor_role: nil, time_limit_secs: nil, timeout_secs: nil, transcription: nil, transcription_config: nil, webhook_url: nil, webhook_url_method: nil, request_options: {})
|
|
34
|
+
# @overload dial(connection_id:, from:, to:, answering_machine_detection: nil, answering_machine_detection_config: nil, assistant: nil, audio_url: nil, billing_group_id: nil, bridge_intent: nil, bridge_on_answer: nil, client_state: nil, command_id: nil, conference_config: nil, custom_headers: nil, dialogflow_config: nil, enable_dialogflow: nil, from_display_name: nil, link_to: nil, media_encryption: nil, media_name: nil, park_after_unbridge: nil, preferred_codecs: nil, prevent_double_bridge: nil, privacy: nil, record: nil, record_channels: nil, record_custom_file_name: nil, record_format: nil, record_max_length: nil, record_timeout_secs: nil, record_track: nil, record_trim: nil, send_silence_when_idle: nil, sip_auth_password: nil, sip_auth_username: nil, sip_headers: nil, sip_region: nil, sip_transport_protocol: nil, sound_modifications: nil, stream_auth_token: nil, stream_bidirectional_codec: nil, stream_bidirectional_mode: nil, stream_bidirectional_sampling_rate: nil, stream_bidirectional_target_legs: nil, stream_codec: nil, stream_establish_before_call_originate: nil, stream_track: nil, stream_url: nil, supervise_call_control_id: nil, supervisor_role: nil, time_limit_secs: nil, timeout_secs: nil, transcription: nil, transcription_config: nil, webhook_retries_policies: nil, webhook_url: nil, webhook_url_method: nil, webhook_urls: nil, webhook_urls_method: nil, request_options: {})
|
|
35
35
|
#
|
|
36
36
|
# @param connection_id [String] The ID of the Call Control App (formerly ID of the connection) to be used when d
|
|
37
37
|
#
|
|
@@ -142,10 +142,16 @@ module Telnyx
|
|
|
142
142
|
#
|
|
143
143
|
# @param transcription_config [Telnyx::Models::Calls::TranscriptionStartRequest]
|
|
144
144
|
#
|
|
145
|
+
# @param webhook_retries_policies [Hash{Symbol=>Telnyx::Models::CallDialParams::WebhookRetriesPolicy}] A map of event types to retry policies. Each retry policy contains an array of `
|
|
146
|
+
#
|
|
145
147
|
# @param webhook_url [String] Use this field to override the URL for which Telnyx will send subsequent webhook
|
|
146
148
|
#
|
|
147
149
|
# @param webhook_url_method [Symbol, Telnyx::Models::CallDialParams::WebhookURLMethod] HTTP request type used for `webhook_url`.
|
|
148
150
|
#
|
|
151
|
+
# @param webhook_urls [Hash{Symbol=>String}] A map of event types to webhook URLs. When an event of the specified type occurs
|
|
152
|
+
#
|
|
153
|
+
# @param webhook_urls_method [Symbol, Telnyx::Models::CallDialParams::WebhookURLsMethod] HTTP request method to invoke `webhook_urls`.
|
|
154
|
+
#
|
|
149
155
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
150
156
|
#
|
|
151
157
|
# @return [Telnyx::Models::CallDialResponse]
|
data/lib/telnyx/version.rb
CHANGED
|
@@ -541,6 +541,29 @@ module Telnyx
|
|
|
541
541
|
end
|
|
542
542
|
attr_writer :transcription_config
|
|
543
543
|
|
|
544
|
+
# A map of event types to retry policies. Each retry policy contains an array of
|
|
545
|
+
# `retries_ms` specifying the delays between retry attempts in milliseconds.
|
|
546
|
+
# Maximum 5 retries, total delay cannot exceed 60 seconds.
|
|
547
|
+
sig do
|
|
548
|
+
returns(
|
|
549
|
+
T.nilable(
|
|
550
|
+
T::Hash[Symbol, Telnyx::CallDialParams::WebhookRetriesPolicy]
|
|
551
|
+
)
|
|
552
|
+
)
|
|
553
|
+
end
|
|
554
|
+
attr_reader :webhook_retries_policies
|
|
555
|
+
|
|
556
|
+
sig do
|
|
557
|
+
params(
|
|
558
|
+
webhook_retries_policies:
|
|
559
|
+
T::Hash[
|
|
560
|
+
Symbol,
|
|
561
|
+
Telnyx::CallDialParams::WebhookRetriesPolicy::OrHash
|
|
562
|
+
]
|
|
563
|
+
).void
|
|
564
|
+
end
|
|
565
|
+
attr_writer :webhook_retries_policies
|
|
566
|
+
|
|
544
567
|
# Use this field to override the URL for which Telnyx will send subsequent
|
|
545
568
|
# webhooks to for this call.
|
|
546
569
|
sig { returns(T.nilable(String)) }
|
|
@@ -562,6 +585,30 @@ module Telnyx
|
|
|
562
585
|
end
|
|
563
586
|
attr_writer :webhook_url_method
|
|
564
587
|
|
|
588
|
+
# A map of event types to webhook URLs. When an event of the specified type
|
|
589
|
+
# occurs, the webhook URL associated with that event type will be called instead
|
|
590
|
+
# of the default webhook URL. Events not mapped here will use the default webhook
|
|
591
|
+
# URL.
|
|
592
|
+
sig { returns(T.nilable(T::Hash[Symbol, String])) }
|
|
593
|
+
attr_reader :webhook_urls
|
|
594
|
+
|
|
595
|
+
sig { params(webhook_urls: T::Hash[Symbol, String]).void }
|
|
596
|
+
attr_writer :webhook_urls
|
|
597
|
+
|
|
598
|
+
# HTTP request method to invoke `webhook_urls`.
|
|
599
|
+
sig do
|
|
600
|
+
returns(T.nilable(Telnyx::CallDialParams::WebhookURLsMethod::OrSymbol))
|
|
601
|
+
end
|
|
602
|
+
attr_reader :webhook_urls_method
|
|
603
|
+
|
|
604
|
+
sig do
|
|
605
|
+
params(
|
|
606
|
+
webhook_urls_method:
|
|
607
|
+
Telnyx::CallDialParams::WebhookURLsMethod::OrSymbol
|
|
608
|
+
).void
|
|
609
|
+
end
|
|
610
|
+
attr_writer :webhook_urls_method
|
|
611
|
+
|
|
565
612
|
sig do
|
|
566
613
|
params(
|
|
567
614
|
connection_id: String,
|
|
@@ -625,9 +672,17 @@ module Telnyx
|
|
|
625
672
|
transcription: T::Boolean,
|
|
626
673
|
transcription_config:
|
|
627
674
|
Telnyx::Calls::TranscriptionStartRequest::OrHash,
|
|
675
|
+
webhook_retries_policies:
|
|
676
|
+
T::Hash[
|
|
677
|
+
Symbol,
|
|
678
|
+
Telnyx::CallDialParams::WebhookRetriesPolicy::OrHash
|
|
679
|
+
],
|
|
628
680
|
webhook_url: String,
|
|
629
681
|
webhook_url_method:
|
|
630
682
|
Telnyx::CallDialParams::WebhookURLMethod::OrSymbol,
|
|
683
|
+
webhook_urls: T::Hash[Symbol, String],
|
|
684
|
+
webhook_urls_method:
|
|
685
|
+
Telnyx::CallDialParams::WebhookURLsMethod::OrSymbol,
|
|
631
686
|
request_options: Telnyx::RequestOptions::OrHash
|
|
632
687
|
).returns(T.attached_class)
|
|
633
688
|
end
|
|
@@ -810,11 +865,22 @@ module Telnyx
|
|
|
810
865
|
# Enable transcription upon call answer. The default value is false.
|
|
811
866
|
transcription: nil,
|
|
812
867
|
transcription_config: nil,
|
|
868
|
+
# A map of event types to retry policies. Each retry policy contains an array of
|
|
869
|
+
# `retries_ms` specifying the delays between retry attempts in milliseconds.
|
|
870
|
+
# Maximum 5 retries, total delay cannot exceed 60 seconds.
|
|
871
|
+
webhook_retries_policies: nil,
|
|
813
872
|
# Use this field to override the URL for which Telnyx will send subsequent
|
|
814
873
|
# webhooks to for this call.
|
|
815
874
|
webhook_url: nil,
|
|
816
875
|
# HTTP request type used for `webhook_url`.
|
|
817
876
|
webhook_url_method: nil,
|
|
877
|
+
# A map of event types to webhook URLs. When an event of the specified type
|
|
878
|
+
# occurs, the webhook URL associated with that event type will be called instead
|
|
879
|
+
# of the default webhook URL. Events not mapped here will use the default webhook
|
|
880
|
+
# URL.
|
|
881
|
+
webhook_urls: nil,
|
|
882
|
+
# HTTP request method to invoke `webhook_urls`.
|
|
883
|
+
webhook_urls_method: nil,
|
|
818
884
|
request_options: {}
|
|
819
885
|
)
|
|
820
886
|
end
|
|
@@ -883,9 +949,14 @@ module Telnyx
|
|
|
883
949
|
timeout_secs: Integer,
|
|
884
950
|
transcription: T::Boolean,
|
|
885
951
|
transcription_config: Telnyx::Calls::TranscriptionStartRequest,
|
|
952
|
+
webhook_retries_policies:
|
|
953
|
+
T::Hash[Symbol, Telnyx::CallDialParams::WebhookRetriesPolicy],
|
|
886
954
|
webhook_url: String,
|
|
887
955
|
webhook_url_method:
|
|
888
956
|
Telnyx::CallDialParams::WebhookURLMethod::OrSymbol,
|
|
957
|
+
webhook_urls: T::Hash[Symbol, String],
|
|
958
|
+
webhook_urls_method:
|
|
959
|
+
Telnyx::CallDialParams::WebhookURLsMethod::OrSymbol,
|
|
889
960
|
request_options: Telnyx::RequestOptions
|
|
890
961
|
}
|
|
891
962
|
)
|
|
@@ -1764,6 +1835,36 @@ module Telnyx
|
|
|
1764
1835
|
end
|
|
1765
1836
|
end
|
|
1766
1837
|
|
|
1838
|
+
class WebhookRetriesPolicy < Telnyx::Internal::Type::BaseModel
|
|
1839
|
+
OrHash =
|
|
1840
|
+
T.type_alias do
|
|
1841
|
+
T.any(
|
|
1842
|
+
Telnyx::CallDialParams::WebhookRetriesPolicy,
|
|
1843
|
+
Telnyx::Internal::AnyHash
|
|
1844
|
+
)
|
|
1845
|
+
end
|
|
1846
|
+
|
|
1847
|
+
# Array of delays in milliseconds between retry attempts. Total sum cannot exceed
|
|
1848
|
+
# 60000ms.
|
|
1849
|
+
sig { returns(T.nilable(T::Array[Integer])) }
|
|
1850
|
+
attr_reader :retries_ms
|
|
1851
|
+
|
|
1852
|
+
sig { params(retries_ms: T::Array[Integer]).void }
|
|
1853
|
+
attr_writer :retries_ms
|
|
1854
|
+
|
|
1855
|
+
sig { params(retries_ms: T::Array[Integer]).returns(T.attached_class) }
|
|
1856
|
+
def self.new(
|
|
1857
|
+
# Array of delays in milliseconds between retry attempts. Total sum cannot exceed
|
|
1858
|
+
# 60000ms.
|
|
1859
|
+
retries_ms: nil
|
|
1860
|
+
)
|
|
1861
|
+
end
|
|
1862
|
+
|
|
1863
|
+
sig { override.returns({ retries_ms: T::Array[Integer] }) }
|
|
1864
|
+
def to_hash
|
|
1865
|
+
end
|
|
1866
|
+
end
|
|
1867
|
+
|
|
1767
1868
|
# HTTP request type used for `webhook_url`.
|
|
1768
1869
|
module WebhookURLMethod
|
|
1769
1870
|
extend Telnyx::Internal::Type::Enum
|
|
@@ -1787,6 +1888,30 @@ module Telnyx
|
|
|
1787
1888
|
def self.values
|
|
1788
1889
|
end
|
|
1789
1890
|
end
|
|
1891
|
+
|
|
1892
|
+
# HTTP request method to invoke `webhook_urls`.
|
|
1893
|
+
module WebhookURLsMethod
|
|
1894
|
+
extend Telnyx::Internal::Type::Enum
|
|
1895
|
+
|
|
1896
|
+
TaggedSymbol =
|
|
1897
|
+
T.type_alias do
|
|
1898
|
+
T.all(Symbol, Telnyx::CallDialParams::WebhookURLsMethod)
|
|
1899
|
+
end
|
|
1900
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
1901
|
+
|
|
1902
|
+
POST =
|
|
1903
|
+
T.let(:POST, Telnyx::CallDialParams::WebhookURLsMethod::TaggedSymbol)
|
|
1904
|
+
GET =
|
|
1905
|
+
T.let(:GET, Telnyx::CallDialParams::WebhookURLsMethod::TaggedSymbol)
|
|
1906
|
+
|
|
1907
|
+
sig do
|
|
1908
|
+
override.returns(
|
|
1909
|
+
T::Array[Telnyx::CallDialParams::WebhookURLsMethod::TaggedSymbol]
|
|
1910
|
+
)
|
|
1911
|
+
end
|
|
1912
|
+
def self.values
|
|
1913
|
+
end
|
|
1914
|
+
end
|
|
1790
1915
|
end
|
|
1791
1916
|
end
|
|
1792
1917
|
end
|
|
@@ -90,9 +90,17 @@ module Telnyx
|
|
|
90
90
|
transcription: T::Boolean,
|
|
91
91
|
transcription_config:
|
|
92
92
|
Telnyx::Calls::TranscriptionStartRequest::OrHash,
|
|
93
|
+
webhook_retries_policies:
|
|
94
|
+
T::Hash[
|
|
95
|
+
Symbol,
|
|
96
|
+
Telnyx::CallDialParams::WebhookRetriesPolicy::OrHash
|
|
97
|
+
],
|
|
93
98
|
webhook_url: String,
|
|
94
99
|
webhook_url_method:
|
|
95
100
|
Telnyx::CallDialParams::WebhookURLMethod::OrSymbol,
|
|
101
|
+
webhook_urls: T::Hash[Symbol, String],
|
|
102
|
+
webhook_urls_method:
|
|
103
|
+
Telnyx::CallDialParams::WebhookURLsMethod::OrSymbol,
|
|
96
104
|
request_options: Telnyx::RequestOptions::OrHash
|
|
97
105
|
).returns(Telnyx::Models::CallDialResponse)
|
|
98
106
|
end
|
|
@@ -275,11 +283,22 @@ module Telnyx
|
|
|
275
283
|
# Enable transcription upon call answer. The default value is false.
|
|
276
284
|
transcription: nil,
|
|
277
285
|
transcription_config: nil,
|
|
286
|
+
# A map of event types to retry policies. Each retry policy contains an array of
|
|
287
|
+
# `retries_ms` specifying the delays between retry attempts in milliseconds.
|
|
288
|
+
# Maximum 5 retries, total delay cannot exceed 60 seconds.
|
|
289
|
+
webhook_retries_policies: nil,
|
|
278
290
|
# Use this field to override the URL for which Telnyx will send subsequent
|
|
279
291
|
# webhooks to for this call.
|
|
280
292
|
webhook_url: nil,
|
|
281
293
|
# HTTP request type used for `webhook_url`.
|
|
282
294
|
webhook_url_method: nil,
|
|
295
|
+
# A map of event types to webhook URLs. When an event of the specified type
|
|
296
|
+
# occurs, the webhook URL associated with that event type will be called instead
|
|
297
|
+
# of the default webhook URL. Events not mapped here will use the default webhook
|
|
298
|
+
# URL.
|
|
299
|
+
webhook_urls: nil,
|
|
300
|
+
# HTTP request method to invoke `webhook_urls`.
|
|
301
|
+
webhook_urls_method: nil,
|
|
283
302
|
request_options: {}
|
|
284
303
|
)
|
|
285
304
|
end
|
|
@@ -56,8 +56,11 @@ module Telnyx
|
|
|
56
56
|
timeout_secs: Integer,
|
|
57
57
|
transcription: bool,
|
|
58
58
|
transcription_config: Telnyx::Calls::TranscriptionStartRequest,
|
|
59
|
+
webhook_retries_policies: ::Hash[Symbol, Telnyx::CallDialParams::WebhookRetriesPolicy],
|
|
59
60
|
webhook_url: String,
|
|
60
|
-
webhook_url_method: Telnyx::Models::CallDialParams::webhook_url_method
|
|
61
|
+
webhook_url_method: Telnyx::Models::CallDialParams::webhook_url_method,
|
|
62
|
+
webhook_urls: ::Hash[Symbol, String],
|
|
63
|
+
webhook_urls_method: Telnyx::Models::CallDialParams::webhook_urls_method
|
|
61
64
|
}
|
|
62
65
|
& Telnyx::Internal::Type::request_parameters
|
|
63
66
|
|
|
@@ -325,6 +328,12 @@ module Telnyx
|
|
|
325
328
|
Telnyx::Calls::TranscriptionStartRequest
|
|
326
329
|
) -> Telnyx::Calls::TranscriptionStartRequest
|
|
327
330
|
|
|
331
|
+
attr_reader webhook_retries_policies: ::Hash[Symbol, Telnyx::CallDialParams::WebhookRetriesPolicy]?
|
|
332
|
+
|
|
333
|
+
def webhook_retries_policies=: (
|
|
334
|
+
::Hash[Symbol, Telnyx::CallDialParams::WebhookRetriesPolicy]
|
|
335
|
+
) -> ::Hash[Symbol, Telnyx::CallDialParams::WebhookRetriesPolicy]
|
|
336
|
+
|
|
328
337
|
attr_reader webhook_url: String?
|
|
329
338
|
|
|
330
339
|
def webhook_url=: (String) -> String
|
|
@@ -335,6 +344,16 @@ module Telnyx
|
|
|
335
344
|
Telnyx::Models::CallDialParams::webhook_url_method
|
|
336
345
|
) -> Telnyx::Models::CallDialParams::webhook_url_method
|
|
337
346
|
|
|
347
|
+
attr_reader webhook_urls: ::Hash[Symbol, String]?
|
|
348
|
+
|
|
349
|
+
def webhook_urls=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
|
|
350
|
+
|
|
351
|
+
attr_reader webhook_urls_method: Telnyx::Models::CallDialParams::webhook_urls_method?
|
|
352
|
+
|
|
353
|
+
def webhook_urls_method=: (
|
|
354
|
+
Telnyx::Models::CallDialParams::webhook_urls_method
|
|
355
|
+
) -> Telnyx::Models::CallDialParams::webhook_urls_method
|
|
356
|
+
|
|
338
357
|
def initialize: (
|
|
339
358
|
connection_id: String,
|
|
340
359
|
from: String,
|
|
@@ -390,8 +409,11 @@ module Telnyx
|
|
|
390
409
|
?timeout_secs: Integer,
|
|
391
410
|
?transcription: bool,
|
|
392
411
|
?transcription_config: Telnyx::Calls::TranscriptionStartRequest,
|
|
412
|
+
?webhook_retries_policies: ::Hash[Symbol, Telnyx::CallDialParams::WebhookRetriesPolicy],
|
|
393
413
|
?webhook_url: String,
|
|
394
414
|
?webhook_url_method: Telnyx::Models::CallDialParams::webhook_url_method,
|
|
415
|
+
?webhook_urls: ::Hash[Symbol, String],
|
|
416
|
+
?webhook_urls_method: Telnyx::Models::CallDialParams::webhook_urls_method,
|
|
395
417
|
?request_options: Telnyx::request_opts
|
|
396
418
|
) -> void
|
|
397
419
|
|
|
@@ -450,8 +472,11 @@ module Telnyx
|
|
|
450
472
|
timeout_secs: Integer,
|
|
451
473
|
transcription: bool,
|
|
452
474
|
transcription_config: Telnyx::Calls::TranscriptionStartRequest,
|
|
475
|
+
webhook_retries_policies: ::Hash[Symbol, Telnyx::CallDialParams::WebhookRetriesPolicy],
|
|
453
476
|
webhook_url: String,
|
|
454
477
|
webhook_url_method: Telnyx::Models::CallDialParams::webhook_url_method,
|
|
478
|
+
webhook_urls: ::Hash[Symbol, String],
|
|
479
|
+
webhook_urls_method: Telnyx::Models::CallDialParams::webhook_urls_method,
|
|
455
480
|
request_options: Telnyx::RequestOptions
|
|
456
481
|
}
|
|
457
482
|
|
|
@@ -835,6 +860,18 @@ module Telnyx
|
|
|
835
860
|
def self?.values: -> ::Array[Telnyx::Models::CallDialParams::supervisor_role]
|
|
836
861
|
end
|
|
837
862
|
|
|
863
|
+
type webhook_retries_policy = { retries_ms: ::Array[Integer] }
|
|
864
|
+
|
|
865
|
+
class WebhookRetriesPolicy < Telnyx::Internal::Type::BaseModel
|
|
866
|
+
attr_reader retries_ms: ::Array[Integer]?
|
|
867
|
+
|
|
868
|
+
def retries_ms=: (::Array[Integer]) -> ::Array[Integer]
|
|
869
|
+
|
|
870
|
+
def initialize: (?retries_ms: ::Array[Integer]) -> void
|
|
871
|
+
|
|
872
|
+
def to_hash: -> { retries_ms: ::Array[Integer] }
|
|
873
|
+
end
|
|
874
|
+
|
|
838
875
|
type webhook_url_method = :POST | :GET
|
|
839
876
|
|
|
840
877
|
module WebhookURLMethod
|
|
@@ -845,6 +882,17 @@ module Telnyx
|
|
|
845
882
|
|
|
846
883
|
def self?.values: -> ::Array[Telnyx::Models::CallDialParams::webhook_url_method]
|
|
847
884
|
end
|
|
885
|
+
|
|
886
|
+
type webhook_urls_method = :POST | :GET
|
|
887
|
+
|
|
888
|
+
module WebhookURLsMethod
|
|
889
|
+
extend Telnyx::Internal::Type::Enum
|
|
890
|
+
|
|
891
|
+
POST: :POST
|
|
892
|
+
GET: :GET
|
|
893
|
+
|
|
894
|
+
def self?.values: -> ::Array[Telnyx::Models::CallDialParams::webhook_urls_method]
|
|
895
|
+
end
|
|
848
896
|
end
|
|
849
897
|
end
|
|
850
898
|
end
|
|
@@ -58,8 +58,11 @@ module Telnyx
|
|
|
58
58
|
?timeout_secs: Integer,
|
|
59
59
|
?transcription: bool,
|
|
60
60
|
?transcription_config: Telnyx::Calls::TranscriptionStartRequest,
|
|
61
|
+
?webhook_retries_policies: ::Hash[Symbol, Telnyx::CallDialParams::WebhookRetriesPolicy],
|
|
61
62
|
?webhook_url: String,
|
|
62
63
|
?webhook_url_method: Telnyx::Models::CallDialParams::webhook_url_method,
|
|
64
|
+
?webhook_urls: ::Hash[Symbol, String],
|
|
65
|
+
?webhook_urls_method: Telnyx::Models::CallDialParams::webhook_urls_method,
|
|
63
66
|
?request_options: Telnyx::request_opts
|
|
64
67
|
) -> Telnyx::Models::CallDialResponse
|
|
65
68
|
|
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.73.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-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|