telnyx 5.176.0 → 5.177.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 +7 -0
- data/README.md +1 -1
- data/lib/telnyx/models/ai/chat_completion_request.rb +10 -4
- data/lib/telnyx/models/ai/inference_embedding_voice_settings.rb +67 -64
- data/lib/telnyx/models/ai/memory/namespaces/profile_ingest_params.rb +7 -16
- data/lib/telnyx/models/ai/memory/namespaces/profiles/source_retrieve_response.rb +7 -16
- data/lib/telnyx/models/ai/privacy_settings.rb +16 -14
- data/lib/telnyx/models/ai/readiness_probe.rb +8 -8
- data/lib/telnyx/models/ai/telephony_settings.rb +25 -1
- data/lib/telnyx/models/ai/typesafe/v1_systemone_params.rb +8 -8
- data/lib/telnyx/models/browser_sessions/wait_for_action.rb +11 -11
- data/lib/telnyx/models/calls/deepgram_flux_config.rb +91 -0
- data/lib/telnyx/models/calls/deepgram_flux_multi_config.rb +103 -0
- data/lib/telnyx/models/calls/deepgram_nova2_specialty_config.rb +113 -0
- data/lib/telnyx/models/calls/deepgram_nova3_medical_config.rb +110 -0
- data/lib/telnyx/models/calls/transcription_engine_community_config.rb +57 -0
- data/lib/telnyx/models/calls/transcription_engine_deepgram_config.rb +5 -372
- data/lib/telnyx/models/calls/transcription_start_request.rb +8 -459
- data/lib/telnyx/models/email_event_list_response.rb +11 -12
- data/lib/telnyx/models/iam/guardrail/iam_guardrail_statement.rb +94 -0
- data/lib/telnyx/models/iam/guardrail/iam_guardrail_statement_response.rb +20 -0
- data/lib/telnyx/models/iam/guardrail/statement_create_params.rb +50 -0
- data/lib/telnyx/models/iam/guardrail/statement_delete_params.rb +24 -0
- data/lib/telnyx/models/iam/guardrail/statement_list_params.rb +34 -0
- data/lib/telnyx/models/iam/guardrail/statement_update_params.rb +57 -0
- data/lib/telnyx/models/iam/guardrail_delete_all_params.rb +16 -0
- data/lib/telnyx/models/iam/iam_action.rb +4 -4
- data/lib/telnyx/models/iam/iam_settings.rb +60 -0
- data/lib/telnyx/models/iam/iam_settings_response.rb +3 -55
- data/lib/telnyx/models/iam/roles/iam_role_statement.rb +13 -1
- data/lib/telnyx/models/iam/roles/iam_role_statement_conditions.rb +27 -0
- data/lib/telnyx/models/iam/roles/statement_create_params.rb +9 -1
- data/lib/telnyx/models/iam/roles/statement_update_params.rb +9 -1
- data/lib/telnyx/models/iam_decision.rb +5 -3
- data/lib/telnyx/models/iam_explain_params.rb +13 -1
- data/lib/telnyx/models/iam_retrieve_access_logs_response.rb +6 -5
- data/lib/telnyx/models/iam_simulate_params.rb +13 -1
- data/lib/telnyx/models/messaging_inbound_message_payload.rb +15 -15
- data/lib/telnyx/models/mobile_phone_number.rb +25 -4
- data/lib/telnyx/models/mobile_phone_number_update_params.rb +38 -4
- data/lib/telnyx/models/model_metadata.rb +28 -1
- data/lib/telnyx/models/phone_numbers/emergency_settings.rb +56 -0
- data/lib/telnyx/models/phone_numbers/numbers_cnam_listing.rb +36 -0
- data/lib/telnyx/models/phone_numbers/numbers_phone_number_with_voice_settings.rb +9 -59
- data/lib/telnyx/models/phone_numbers/numbers_update_phone_number_voice_settings_request.rb +6 -4
- data/lib/telnyx/models/phone_numbers/phone_number_with_voice_settings.rb +3 -55
- data/lib/telnyx/models/sim_cards/action_bulk_enable_voice_params.rb +2 -2
- data/lib/telnyx/models/sim_cards/action_enable_voice_params.rb +2 -2
- data/lib/telnyx/models/texml/accounts/call_calls_params.rb +15 -15
- data/lib/telnyx/models/texml_application_list_params.rb +6 -6
- data/lib/telnyx/models/user_profile.rb +11 -1
- data/lib/telnyx/models/user_profile_patch_all_params.rb +1 -9
- data/lib/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rb +223 -0
- data/lib/telnyx/models/whatsapp/phone_number_list_response.rb +220 -0
- data/lib/telnyx/models/whatsapp/whatsapp_phone_response.rb +0 -1
- data/lib/telnyx/resources/calls/actions.rb +1 -1
- data/lib/telnyx/resources/customer_service_records.rb +4 -4
- data/lib/telnyx/resources/iam/guardrail/statements.rb +158 -0
- data/lib/telnyx/resources/iam/guardrail.rb +45 -0
- data/lib/telnyx/resources/iam/roles/statements.rb +13 -6
- data/lib/telnyx/resources/iam.rb +21 -8
- data/lib/telnyx/resources/mobile_phone_numbers.rb +4 -1
- data/lib/telnyx/resources/phone_numbers/voice.rb +1 -1
- data/lib/telnyx/resources/user_profile.rb +1 -3
- data/lib/telnyx/resources/whatsapp/business_accounts/phone_numbers.rb +2 -2
- data/lib/telnyx/resources/whatsapp/phone_numbers.rb +2 -2
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +20 -0
- data/rbi/telnyx/models/ai/chat_completion_request.rbi +15 -6
- data/rbi/telnyx/models/ai/inference_embedding_voice_settings.rbi +114 -97
- data/rbi/telnyx/models/ai/memory/namespaces/profile_ingest_params.rbi +12 -28
- data/rbi/telnyx/models/ai/memory/namespaces/profiles/source_retrieve_response.rbi +12 -28
- data/rbi/telnyx/models/ai/privacy_settings.rbi +24 -21
- data/rbi/telnyx/models/ai/readiness_probe.rbi +14 -8
- data/rbi/telnyx/models/ai/telephony_settings.rbi +79 -0
- data/rbi/telnyx/models/ai/typesafe/v1_systemone_params.rbi +4 -4
- data/rbi/telnyx/models/browser_sessions/wait_for_action.rbi +24 -24
- data/rbi/telnyx/models/calls/deepgram_flux_config.rbi +192 -0
- data/rbi/telnyx/models/calls/deepgram_flux_multi_config.rbi +251 -0
- data/rbi/telnyx/models/calls/deepgram_nova2_specialty_config.rbi +226 -0
- data/rbi/telnyx/models/calls/deepgram_nova3_medical_config.rbi +220 -0
- data/rbi/telnyx/models/calls/transcription_engine_community_config.rbi +94 -0
- data/rbi/telnyx/models/calls/transcription_engine_deepgram_config.rbi +4 -776
- data/rbi/telnyx/models/calls/transcription_start_request.rbi +25 -989
- data/rbi/telnyx/models/email_event_list_response.rbi +32 -18
- data/rbi/telnyx/models/iam/guardrail/iam_guardrail_statement.rbi +169 -0
- data/rbi/telnyx/models/iam/guardrail/iam_guardrail_statement_response.rbi +45 -0
- data/rbi/telnyx/models/iam/guardrail/statement_create_params.rbi +113 -0
- data/rbi/telnyx/models/iam/guardrail/statement_delete_params.rbi +42 -0
- data/rbi/telnyx/models/iam/guardrail/statement_list_params.rbi +64 -0
- data/rbi/telnyx/models/iam/guardrail/statement_update_params.rbi +109 -0
- data/rbi/telnyx/models/iam/guardrail_delete_all_params.rbi +32 -0
- data/rbi/telnyx/models/iam/iam_action.rbi +6 -4
- data/rbi/telnyx/models/iam/iam_settings.rbi +90 -0
- data/rbi/telnyx/models/iam/iam_settings_response.rbi +4 -105
- data/rbi/telnyx/models/iam/roles/iam_role_statement.rbi +18 -0
- data/rbi/telnyx/models/iam/roles/iam_role_statement_conditions.rbi +41 -0
- data/rbi/telnyx/models/iam/roles/statement_create_params.rbi +18 -0
- data/rbi/telnyx/models/iam/roles/statement_update_params.rbi +18 -0
- data/rbi/telnyx/models/iam_decision.rbi +10 -6
- data/rbi/telnyx/models/iam_explain_params.rbi +10 -0
- data/rbi/telnyx/models/iam_retrieve_access_logs_response.rbi +8 -6
- data/rbi/telnyx/models/iam_simulate_params.rbi +15 -3
- data/rbi/telnyx/models/messaging_inbound_message_payload.rbi +31 -31
- data/rbi/telnyx/models/mobile_phone_number.rbi +19 -0
- data/rbi/telnyx/models/mobile_phone_number_update_params.rbi +19 -0
- data/rbi/telnyx/models/model_metadata.rbi +90 -0
- data/rbi/telnyx/models/phone_numbers/emergency_settings.rbi +133 -0
- data/rbi/telnyx/models/phone_numbers/numbers_cnam_listing.rbi +62 -0
- data/rbi/telnyx/models/phone_numbers/numbers_phone_number_with_voice_settings.rbi +16 -145
- data/rbi/telnyx/models/phone_numbers/numbers_update_phone_number_voice_settings_request.rbi +12 -6
- data/rbi/telnyx/models/phone_numbers/phone_number_with_voice_settings.rbi +4 -139
- data/rbi/telnyx/models/sim_cards/action_bulk_enable_voice_params.rbi +4 -4
- data/rbi/telnyx/models/sim_cards/action_enable_voice_params.rbi +4 -4
- data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +15 -15
- data/rbi/telnyx/models/texml_application_list_params.rbi +7 -7
- data/rbi/telnyx/models/user_profile.rbi +11 -0
- data/rbi/telnyx/models/user_profile_patch_all_params.rbi +0 -11
- data/rbi/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rbi +393 -0
- data/rbi/telnyx/models/whatsapp/phone_number_list_response.rbi +391 -0
- data/rbi/telnyx/resources/ai/openai/chat.rbi +5 -2
- data/rbi/telnyx/resources/calls/actions.rbi +5 -5
- data/rbi/telnyx/resources/iam/guardrail/statements.rbi +132 -0
- data/rbi/telnyx/resources/iam/guardrail.rbi +29 -0
- data/rbi/telnyx/resources/iam/roles/statements.rbi +16 -4
- data/rbi/telnyx/resources/iam.rbi +18 -7
- data/rbi/telnyx/resources/mobile_phone_numbers.rbi +2 -0
- data/rbi/telnyx/resources/phone_numbers/voice.rbi +4 -2
- data/rbi/telnyx/resources/sim_cards/actions.rbi +4 -4
- data/rbi/telnyx/resources/user_profile.rbi +0 -3
- data/rbi/telnyx/resources/whatsapp/business_accounts/phone_numbers.rbi +1 -1
- data/rbi/telnyx/resources/whatsapp/phone_numbers.rbi +1 -1
- data/sig/telnyx/models/ai/inference_embedding_voice_settings.rbs +50 -57
- data/sig/telnyx/models/ai/memory/namespaces/profile_ingest_params.rbs +3 -12
- data/sig/telnyx/models/ai/memory/namespaces/profiles/source_retrieve_response.rbs +3 -12
- data/sig/telnyx/models/ai/readiness_probe.rbs +11 -8
- data/sig/telnyx/models/ai/telephony_settings.rbs +21 -0
- data/sig/telnyx/models/ai/typesafe/v1_systemone_params.rbs +4 -4
- data/sig/telnyx/models/browser_sessions/wait_for_action.rbs +12 -13
- data/sig/telnyx/models/calls/deepgram_flux_config.rbs +80 -0
- data/sig/telnyx/models/calls/deepgram_flux_multi_config.rbs +91 -0
- data/sig/telnyx/models/calls/deepgram_nova2_specialty_config.rbs +93 -0
- data/sig/telnyx/models/calls/deepgram_nova3_medical_config.rbs +91 -0
- data/sig/telnyx/models/calls/transcription_engine_community_config.rbs +43 -0
- data/sig/telnyx/models/calls/transcription_engine_deepgram_config.rbs +4 -313
- data/sig/telnyx/models/calls/transcription_start_request.rbs +5 -382
- data/sig/telnyx/models/email_event_list_response.rbs +13 -3
- data/sig/telnyx/models/iam/guardrail/iam_guardrail_statement.rbs +75 -0
- data/sig/telnyx/models/iam/guardrail/iam_guardrail_statement_response.rbs +22 -0
- data/sig/telnyx/models/iam/guardrail/statement_create_params.rbs +50 -0
- data/sig/telnyx/models/iam/guardrail/statement_delete_params.rbs +27 -0
- data/sig/telnyx/models/iam/guardrail/statement_list_params.rbs +36 -0
- data/sig/telnyx/models/iam/guardrail/statement_update_params.rbs +51 -0
- data/sig/telnyx/models/iam/guardrail_delete_all_params.rbs +17 -0
- data/sig/telnyx/models/iam/iam_action.rbs +4 -4
- data/sig/telnyx/models/iam/iam_settings.rbs +49 -0
- data/sig/telnyx/models/iam/iam_settings_response.rbs +4 -47
- data/sig/telnyx/models/iam/roles/iam_role_statement.rbs +5 -0
- data/sig/telnyx/models/iam/roles/iam_role_statement_conditions.rbs +17 -0
- data/sig/telnyx/models/iam/roles/statement_create_params.rbs +9 -0
- data/sig/telnyx/models/iam/roles/statement_update_params.rbs +10 -1
- data/sig/telnyx/models/iam_explain_params.rbs +6 -1
- data/sig/telnyx/models/iam_retrieve_access_logs_response.rbs +4 -4
- data/sig/telnyx/models/iam_simulate_params.rbs +5 -3
- data/sig/telnyx/models/messaging_inbound_message_payload.rbs +18 -18
- data/sig/telnyx/models/model_metadata.rbs +26 -0
- data/sig/telnyx/models/phone_numbers/emergency_settings.rbs +59 -0
- data/sig/telnyx/models/phone_numbers/numbers_cnam_listing.rbs +28 -0
- data/sig/telnyx/models/phone_numbers/numbers_phone_number_with_voice_settings.rbs +12 -66
- data/sig/telnyx/models/phone_numbers/numbers_update_phone_number_voice_settings_request.rbs +6 -6
- data/sig/telnyx/models/phone_numbers/phone_number_with_voice_settings.rbs +6 -60
- data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +15 -15
- data/sig/telnyx/models/texml_application_list_params.rbs +3 -3
- data/sig/telnyx/models/user_profile.rbs +7 -0
- data/sig/telnyx/models/user_profile_patch_all_params.rbs +0 -7
- data/sig/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rbs +207 -0
- data/sig/telnyx/models/whatsapp/phone_number_list_response.rbs +205 -0
- data/sig/telnyx/resources/iam/guardrail/statements.rbs +35 -0
- data/sig/telnyx/resources/iam/guardrail.rbs +13 -0
- data/sig/telnyx/resources/iam/roles/statements.rbs +2 -0
- data/sig/telnyx/resources/iam.rbs +3 -0
- data/sig/telnyx/resources/phone_numbers/voice.rbs +1 -1
- data/sig/telnyx/resources/user_profile.rbs +0 -1
- data/sig/telnyx/resources/whatsapp/business_accounts/phone_numbers.rbs +1 -1
- data/sig/telnyx/resources/whatsapp/phone_numbers.rbs +1 -1
- metadata +62 -2
|
@@ -1766,17 +1766,17 @@ module Telnyx
|
|
|
1766
1766
|
T.type_alias do
|
|
1767
1767
|
T.any(
|
|
1768
1768
|
T::Array[
|
|
1769
|
-
Telnyx::MessagingInboundMessagePayload::To::
|
|
1769
|
+
Telnyx::MessagingInboundMessagePayload::To::RecipientList
|
|
1770
1770
|
],
|
|
1771
1771
|
String
|
|
1772
1772
|
)
|
|
1773
1773
|
end
|
|
1774
1774
|
|
|
1775
|
-
class
|
|
1775
|
+
class RecipientList < Telnyx::Internal::Type::BaseModel
|
|
1776
1776
|
OrHash =
|
|
1777
1777
|
T.type_alias do
|
|
1778
1778
|
T.any(
|
|
1779
|
-
Telnyx::MessagingInboundMessagePayload::To::
|
|
1779
|
+
Telnyx::MessagingInboundMessagePayload::To::RecipientList,
|
|
1780
1780
|
Telnyx::Internal::AnyHash
|
|
1781
1781
|
)
|
|
1782
1782
|
end
|
|
@@ -1806,7 +1806,7 @@ module Telnyx
|
|
|
1806
1806
|
sig do
|
|
1807
1807
|
returns(
|
|
1808
1808
|
T.nilable(
|
|
1809
|
-
Telnyx::MessagingInboundMessagePayload::To::
|
|
1809
|
+
Telnyx::MessagingInboundMessagePayload::To::RecipientList::LineType::TaggedSymbol
|
|
1810
1810
|
)
|
|
1811
1811
|
)
|
|
1812
1812
|
end
|
|
@@ -1815,7 +1815,7 @@ module Telnyx
|
|
|
1815
1815
|
sig do
|
|
1816
1816
|
params(
|
|
1817
1817
|
line_type:
|
|
1818
|
-
Telnyx::MessagingInboundMessagePayload::To::
|
|
1818
|
+
Telnyx::MessagingInboundMessagePayload::To::RecipientList::LineType::OrSymbol
|
|
1819
1819
|
).void
|
|
1820
1820
|
end
|
|
1821
1821
|
attr_writer :line_type
|
|
@@ -1830,7 +1830,7 @@ module Telnyx
|
|
|
1830
1830
|
sig do
|
|
1831
1831
|
returns(
|
|
1832
1832
|
T.nilable(
|
|
1833
|
-
Telnyx::MessagingInboundMessagePayload::To::
|
|
1833
|
+
Telnyx::MessagingInboundMessagePayload::To::RecipientList::Status::TaggedSymbol
|
|
1834
1834
|
)
|
|
1835
1835
|
)
|
|
1836
1836
|
end
|
|
@@ -1839,7 +1839,7 @@ module Telnyx
|
|
|
1839
1839
|
sig do
|
|
1840
1840
|
params(
|
|
1841
1841
|
status:
|
|
1842
|
-
Telnyx::MessagingInboundMessagePayload::To::
|
|
1842
|
+
Telnyx::MessagingInboundMessagePayload::To::RecipientList::Status::OrSymbol
|
|
1843
1843
|
).void
|
|
1844
1844
|
end
|
|
1845
1845
|
attr_writer :status
|
|
@@ -1850,10 +1850,10 @@ module Telnyx
|
|
|
1850
1850
|
agent_name: String,
|
|
1851
1851
|
carrier: String,
|
|
1852
1852
|
line_type:
|
|
1853
|
-
Telnyx::MessagingInboundMessagePayload::To::
|
|
1853
|
+
Telnyx::MessagingInboundMessagePayload::To::RecipientList::LineType::OrSymbol,
|
|
1854
1854
|
phone_number: String,
|
|
1855
1855
|
status:
|
|
1856
|
-
Telnyx::MessagingInboundMessagePayload::To::
|
|
1856
|
+
Telnyx::MessagingInboundMessagePayload::To::RecipientList::Status::OrSymbol
|
|
1857
1857
|
).returns(T.attached_class)
|
|
1858
1858
|
end
|
|
1859
1859
|
def self.new(
|
|
@@ -1878,10 +1878,10 @@ module Telnyx
|
|
|
1878
1878
|
agent_name: String,
|
|
1879
1879
|
carrier: String,
|
|
1880
1880
|
line_type:
|
|
1881
|
-
Telnyx::MessagingInboundMessagePayload::To::
|
|
1881
|
+
Telnyx::MessagingInboundMessagePayload::To::RecipientList::LineType::TaggedSymbol,
|
|
1882
1882
|
phone_number: String,
|
|
1883
1883
|
status:
|
|
1884
|
-
Telnyx::MessagingInboundMessagePayload::To::
|
|
1884
|
+
Telnyx::MessagingInboundMessagePayload::To::RecipientList::Status::TaggedSymbol
|
|
1885
1885
|
}
|
|
1886
1886
|
)
|
|
1887
1887
|
end
|
|
@@ -1896,7 +1896,7 @@ module Telnyx
|
|
|
1896
1896
|
T.type_alias do
|
|
1897
1897
|
T.all(
|
|
1898
1898
|
Symbol,
|
|
1899
|
-
Telnyx::MessagingInboundMessagePayload::To::
|
|
1899
|
+
Telnyx::MessagingInboundMessagePayload::To::RecipientList::LineType
|
|
1900
1900
|
)
|
|
1901
1901
|
end
|
|
1902
1902
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
@@ -1904,38 +1904,38 @@ module Telnyx
|
|
|
1904
1904
|
WIRELINE =
|
|
1905
1905
|
T.let(
|
|
1906
1906
|
:Wireline,
|
|
1907
|
-
Telnyx::MessagingInboundMessagePayload::To::
|
|
1907
|
+
Telnyx::MessagingInboundMessagePayload::To::RecipientList::LineType::TaggedSymbol
|
|
1908
1908
|
)
|
|
1909
1909
|
WIRELESS =
|
|
1910
1910
|
T.let(
|
|
1911
1911
|
:Wireless,
|
|
1912
|
-
Telnyx::MessagingInboundMessagePayload::To::
|
|
1912
|
+
Telnyx::MessagingInboundMessagePayload::To::RecipientList::LineType::TaggedSymbol
|
|
1913
1913
|
)
|
|
1914
1914
|
VO_WI_FI =
|
|
1915
1915
|
T.let(
|
|
1916
1916
|
:VoWiFi,
|
|
1917
|
-
Telnyx::MessagingInboundMessagePayload::To::
|
|
1917
|
+
Telnyx::MessagingInboundMessagePayload::To::RecipientList::LineType::TaggedSymbol
|
|
1918
1918
|
)
|
|
1919
1919
|
VO_IP =
|
|
1920
1920
|
T.let(
|
|
1921
1921
|
:VoIP,
|
|
1922
|
-
Telnyx::MessagingInboundMessagePayload::To::
|
|
1922
|
+
Telnyx::MessagingInboundMessagePayload::To::RecipientList::LineType::TaggedSymbol
|
|
1923
1923
|
)
|
|
1924
1924
|
PRE_PAID_WIRELESS =
|
|
1925
1925
|
T.let(
|
|
1926
1926
|
:"Pre-Paid Wireless",
|
|
1927
|
-
Telnyx::MessagingInboundMessagePayload::To::
|
|
1927
|
+
Telnyx::MessagingInboundMessagePayload::To::RecipientList::LineType::TaggedSymbol
|
|
1928
1928
|
)
|
|
1929
1929
|
EMPTY =
|
|
1930
1930
|
T.let(
|
|
1931
1931
|
:"",
|
|
1932
|
-
Telnyx::MessagingInboundMessagePayload::To::
|
|
1932
|
+
Telnyx::MessagingInboundMessagePayload::To::RecipientList::LineType::TaggedSymbol
|
|
1933
1933
|
)
|
|
1934
1934
|
|
|
1935
1935
|
sig do
|
|
1936
1936
|
override.returns(
|
|
1937
1937
|
T::Array[
|
|
1938
|
-
Telnyx::MessagingInboundMessagePayload::To::
|
|
1938
|
+
Telnyx::MessagingInboundMessagePayload::To::RecipientList::LineType::TaggedSymbol
|
|
1939
1939
|
]
|
|
1940
1940
|
)
|
|
1941
1941
|
end
|
|
@@ -1950,7 +1950,7 @@ module Telnyx
|
|
|
1950
1950
|
T.type_alias do
|
|
1951
1951
|
T.all(
|
|
1952
1952
|
Symbol,
|
|
1953
|
-
Telnyx::MessagingInboundMessagePayload::To::
|
|
1953
|
+
Telnyx::MessagingInboundMessagePayload::To::RecipientList::Status
|
|
1954
1954
|
)
|
|
1955
1955
|
end
|
|
1956
1956
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
@@ -1958,48 +1958,48 @@ module Telnyx
|
|
|
1958
1958
|
QUEUED =
|
|
1959
1959
|
T.let(
|
|
1960
1960
|
:queued,
|
|
1961
|
-
Telnyx::MessagingInboundMessagePayload::To::
|
|
1961
|
+
Telnyx::MessagingInboundMessagePayload::To::RecipientList::Status::TaggedSymbol
|
|
1962
1962
|
)
|
|
1963
1963
|
SENDING =
|
|
1964
1964
|
T.let(
|
|
1965
1965
|
:sending,
|
|
1966
|
-
Telnyx::MessagingInboundMessagePayload::To::
|
|
1966
|
+
Telnyx::MessagingInboundMessagePayload::To::RecipientList::Status::TaggedSymbol
|
|
1967
1967
|
)
|
|
1968
1968
|
SENT =
|
|
1969
1969
|
T.let(
|
|
1970
1970
|
:sent,
|
|
1971
|
-
Telnyx::MessagingInboundMessagePayload::To::
|
|
1971
|
+
Telnyx::MessagingInboundMessagePayload::To::RecipientList::Status::TaggedSymbol
|
|
1972
1972
|
)
|
|
1973
1973
|
DELIVERED =
|
|
1974
1974
|
T.let(
|
|
1975
1975
|
:delivered,
|
|
1976
|
-
Telnyx::MessagingInboundMessagePayload::To::
|
|
1976
|
+
Telnyx::MessagingInboundMessagePayload::To::RecipientList::Status::TaggedSymbol
|
|
1977
1977
|
)
|
|
1978
1978
|
SENDING_FAILED =
|
|
1979
1979
|
T.let(
|
|
1980
1980
|
:sending_failed,
|
|
1981
|
-
Telnyx::MessagingInboundMessagePayload::To::
|
|
1981
|
+
Telnyx::MessagingInboundMessagePayload::To::RecipientList::Status::TaggedSymbol
|
|
1982
1982
|
)
|
|
1983
1983
|
DELIVERY_FAILED =
|
|
1984
1984
|
T.let(
|
|
1985
1985
|
:delivery_failed,
|
|
1986
|
-
Telnyx::MessagingInboundMessagePayload::To::
|
|
1986
|
+
Telnyx::MessagingInboundMessagePayload::To::RecipientList::Status::TaggedSymbol
|
|
1987
1987
|
)
|
|
1988
1988
|
DELIVERY_UNCONFIRMED =
|
|
1989
1989
|
T.let(
|
|
1990
1990
|
:delivery_unconfirmed,
|
|
1991
|
-
Telnyx::MessagingInboundMessagePayload::To::
|
|
1991
|
+
Telnyx::MessagingInboundMessagePayload::To::RecipientList::Status::TaggedSymbol
|
|
1992
1992
|
)
|
|
1993
1993
|
WEBHOOK_DELIVERED =
|
|
1994
1994
|
T.let(
|
|
1995
1995
|
:webhook_delivered,
|
|
1996
|
-
Telnyx::MessagingInboundMessagePayload::To::
|
|
1996
|
+
Telnyx::MessagingInboundMessagePayload::To::RecipientList::Status::TaggedSymbol
|
|
1997
1997
|
)
|
|
1998
1998
|
|
|
1999
1999
|
sig do
|
|
2000
2000
|
override.returns(
|
|
2001
2001
|
T::Array[
|
|
2002
|
-
Telnyx::MessagingInboundMessagePayload::To::
|
|
2002
|
+
Telnyx::MessagingInboundMessagePayload::To::RecipientList::Status::TaggedSymbol
|
|
2003
2003
|
]
|
|
2004
2004
|
)
|
|
2005
2005
|
end
|
|
@@ -2016,10 +2016,10 @@ module Telnyx
|
|
|
2016
2016
|
def self.variants
|
|
2017
2017
|
end
|
|
2018
2018
|
|
|
2019
|
-
|
|
2019
|
+
RecipientListArray =
|
|
2020
2020
|
T.let(
|
|
2021
2021
|
Telnyx::Internal::Type::ArrayOf[
|
|
2022
|
-
Telnyx::MessagingInboundMessagePayload::To::
|
|
2022
|
+
Telnyx::MessagingInboundMessagePayload::To::RecipientList
|
|
2023
2023
|
],
|
|
2024
2024
|
Telnyx::Internal::Type::Converter
|
|
2025
2025
|
)
|
|
@@ -8,6 +8,8 @@ module Telnyx
|
|
|
8
8
|
T.any(Telnyx::MobilePhoneNumber, Telnyx::Internal::AnyHash)
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
+
# The call forwarding settings for this mobile phone number. Call forwarding is
|
|
12
|
+
# the same feature as on SIP trunking phone numbers.
|
|
11
13
|
sig { returns(T.nilable(Telnyx::MobilePhoneNumber::CallForwarding)) }
|
|
12
14
|
attr_reader :call_forwarding
|
|
13
15
|
|
|
@@ -202,6 +204,8 @@ module Telnyx
|
|
|
202
204
|
def self.new(
|
|
203
205
|
# Identifies the resource.
|
|
204
206
|
id: nil,
|
|
207
|
+
# The call forwarding settings for this mobile phone number. Call forwarding is
|
|
208
|
+
# the same feature as on SIP trunking phone numbers.
|
|
205
209
|
call_forwarding: nil,
|
|
206
210
|
call_recording: nil,
|
|
207
211
|
# Indicates if caller ID name is enabled.
|
|
@@ -286,12 +290,15 @@ module Telnyx
|
|
|
286
290
|
)
|
|
287
291
|
end
|
|
288
292
|
|
|
293
|
+
# Indicates whether call forwarding is enabled for this number. Call forwarding
|
|
294
|
+
# takes effect when forwards_to and forwarding_type are set.
|
|
289
295
|
sig { returns(T.nilable(T::Boolean)) }
|
|
290
296
|
attr_reader :call_forwarding_enabled
|
|
291
297
|
|
|
292
298
|
sig { params(call_forwarding_enabled: T::Boolean).void }
|
|
293
299
|
attr_writer :call_forwarding_enabled
|
|
294
300
|
|
|
301
|
+
# Call forwarding type. 'forwards_to' must be set for this to have an effect.
|
|
295
302
|
sig do
|
|
296
303
|
returns(
|
|
297
304
|
T.nilable(
|
|
@@ -301,9 +308,14 @@ module Telnyx
|
|
|
301
308
|
end
|
|
302
309
|
attr_accessor :forwarding_type
|
|
303
310
|
|
|
311
|
+
# The phone number to which inbound calls to this number are forwarded. Inbound
|
|
312
|
+
# calls will not be forwarded if this field is left blank. If set, must be a
|
|
313
|
+
# +E.164-formatted phone number.
|
|
304
314
|
sig { returns(T.nilable(String)) }
|
|
305
315
|
attr_accessor :forwards_to
|
|
306
316
|
|
|
317
|
+
# The call forwarding settings for this mobile phone number. Call forwarding is
|
|
318
|
+
# the same feature as on SIP trunking phone numbers.
|
|
307
319
|
sig do
|
|
308
320
|
params(
|
|
309
321
|
call_forwarding_enabled: T::Boolean,
|
|
@@ -315,8 +327,14 @@ module Telnyx
|
|
|
315
327
|
).returns(T.attached_class)
|
|
316
328
|
end
|
|
317
329
|
def self.new(
|
|
330
|
+
# Indicates whether call forwarding is enabled for this number. Call forwarding
|
|
331
|
+
# takes effect when forwards_to and forwarding_type are set.
|
|
318
332
|
call_forwarding_enabled: nil,
|
|
333
|
+
# Call forwarding type. 'forwards_to' must be set for this to have an effect.
|
|
319
334
|
forwarding_type: nil,
|
|
335
|
+
# The phone number to which inbound calls to this number are forwarded. Inbound
|
|
336
|
+
# calls will not be forwarded if this field is left blank. If set, must be a
|
|
337
|
+
# +E.164-formatted phone number.
|
|
320
338
|
forwards_to: nil
|
|
321
339
|
)
|
|
322
340
|
end
|
|
@@ -336,6 +354,7 @@ module Telnyx
|
|
|
336
354
|
def to_hash
|
|
337
355
|
end
|
|
338
356
|
|
|
357
|
+
# Call forwarding type. 'forwards_to' must be set for this to have an effect.
|
|
339
358
|
module ForwardingType
|
|
340
359
|
extend Telnyx::Internal::Type::Enum
|
|
341
360
|
|
|
@@ -17,6 +17,8 @@ module Telnyx
|
|
|
17
17
|
sig { returns(String) }
|
|
18
18
|
attr_accessor :id
|
|
19
19
|
|
|
20
|
+
# The call forwarding settings for this mobile phone number. Call forwarding is
|
|
21
|
+
# the same feature as on SIP trunking phone numbers.
|
|
20
22
|
sig do
|
|
21
23
|
returns(
|
|
22
24
|
T.nilable(Telnyx::MobilePhoneNumberUpdateParams::CallForwarding)
|
|
@@ -144,6 +146,8 @@ module Telnyx
|
|
|
144
146
|
end
|
|
145
147
|
def self.new(
|
|
146
148
|
id:,
|
|
149
|
+
# The call forwarding settings for this mobile phone number. Call forwarding is
|
|
150
|
+
# the same feature as on SIP trunking phone numbers.
|
|
147
151
|
call_forwarding: nil,
|
|
148
152
|
call_recording: nil,
|
|
149
153
|
caller_id_name_enabled: nil,
|
|
@@ -193,12 +197,15 @@ module Telnyx
|
|
|
193
197
|
)
|
|
194
198
|
end
|
|
195
199
|
|
|
200
|
+
# Indicates whether call forwarding is enabled for this number. Call forwarding
|
|
201
|
+
# takes effect when forwards_to and forwarding_type are set.
|
|
196
202
|
sig { returns(T.nilable(T::Boolean)) }
|
|
197
203
|
attr_reader :call_forwarding_enabled
|
|
198
204
|
|
|
199
205
|
sig { params(call_forwarding_enabled: T::Boolean).void }
|
|
200
206
|
attr_writer :call_forwarding_enabled
|
|
201
207
|
|
|
208
|
+
# Call forwarding type. 'forwards_to' must be set for this to have an effect.
|
|
202
209
|
sig do
|
|
203
210
|
returns(
|
|
204
211
|
T.nilable(
|
|
@@ -208,9 +215,14 @@ module Telnyx
|
|
|
208
215
|
end
|
|
209
216
|
attr_accessor :forwarding_type
|
|
210
217
|
|
|
218
|
+
# The phone number to which inbound calls to this number are forwarded. Inbound
|
|
219
|
+
# calls will not be forwarded if this field is left blank. If set, must be a
|
|
220
|
+
# +E.164-formatted phone number.
|
|
211
221
|
sig { returns(T.nilable(String)) }
|
|
212
222
|
attr_accessor :forwards_to
|
|
213
223
|
|
|
224
|
+
# The call forwarding settings for this mobile phone number. Call forwarding is
|
|
225
|
+
# the same feature as on SIP trunking phone numbers.
|
|
214
226
|
sig do
|
|
215
227
|
params(
|
|
216
228
|
call_forwarding_enabled: T::Boolean,
|
|
@@ -222,8 +234,14 @@ module Telnyx
|
|
|
222
234
|
).returns(T.attached_class)
|
|
223
235
|
end
|
|
224
236
|
def self.new(
|
|
237
|
+
# Indicates whether call forwarding is enabled for this number. Call forwarding
|
|
238
|
+
# takes effect when forwards_to and forwarding_type are set.
|
|
225
239
|
call_forwarding_enabled: nil,
|
|
240
|
+
# Call forwarding type. 'forwards_to' must be set for this to have an effect.
|
|
226
241
|
forwarding_type: nil,
|
|
242
|
+
# The phone number to which inbound calls to this number are forwarded. Inbound
|
|
243
|
+
# calls will not be forwarded if this field is left blank. If set, must be a
|
|
244
|
+
# +E.164-formatted phone number.
|
|
227
245
|
forwards_to: nil
|
|
228
246
|
)
|
|
229
247
|
end
|
|
@@ -243,6 +261,7 @@ module Telnyx
|
|
|
243
261
|
def to_hash
|
|
244
262
|
end
|
|
245
263
|
|
|
264
|
+
# Call forwarding type. 'forwards_to' must be set for this to have an effect.
|
|
246
265
|
module ForwardingType
|
|
247
266
|
extend Telnyx::Internal::Type::Enum
|
|
248
267
|
|
|
@@ -149,6 +149,29 @@ module Telnyx
|
|
|
149
149
|
end
|
|
150
150
|
attr_writer :service_tiers
|
|
151
151
|
|
|
152
|
+
# Reasoning-effort values this reasoning model accepts on Chat Completions and
|
|
153
|
+
# Responses (`reasoning.effort`). Use one of these values as `reasoning_effort`;
|
|
154
|
+
# any other value is rejected with a `400` error naming the value and the
|
|
155
|
+
# supported set. This field is omitted for models that do not reason.
|
|
156
|
+
sig do
|
|
157
|
+
returns(
|
|
158
|
+
T.nilable(
|
|
159
|
+
T::Array[
|
|
160
|
+
Telnyx::ModelMetadata::SupportedReasoningEffort::TaggedSymbol
|
|
161
|
+
]
|
|
162
|
+
)
|
|
163
|
+
)
|
|
164
|
+
end
|
|
165
|
+
attr_reader :supported_reasoning_efforts
|
|
166
|
+
|
|
167
|
+
sig do
|
|
168
|
+
params(
|
|
169
|
+
supported_reasoning_efforts:
|
|
170
|
+
T::Array[Telnyx::ModelMetadata::SupportedReasoningEffort::OrSymbol]
|
|
171
|
+
).void
|
|
172
|
+
end
|
|
173
|
+
attr_writer :supported_reasoning_efforts
|
|
174
|
+
|
|
152
175
|
# Primary task the model is intended for, e.g. `text-generation`,
|
|
153
176
|
# `audio-text-to-text`, `feature-extraction` (embeddings).
|
|
154
177
|
sig { returns(T.nilable(String)) }
|
|
@@ -185,6 +208,8 @@ module Telnyx
|
|
|
185
208
|
recommended_for_assistants: T::Boolean,
|
|
186
209
|
regions: T::Array[String],
|
|
187
210
|
service_tiers: T::Array[Telnyx::ModelMetadata::ServiceTier::OrSymbol],
|
|
211
|
+
supported_reasoning_efforts:
|
|
212
|
+
T::Array[Telnyx::ModelMetadata::SupportedReasoningEffort::OrSymbol],
|
|
188
213
|
task: String
|
|
189
214
|
).returns(T.attached_class)
|
|
190
215
|
end
|
|
@@ -258,6 +283,11 @@ module Telnyx
|
|
|
258
283
|
# `service_tier` in Chat Completions or Responses requests. This field is omitted
|
|
259
284
|
# for externally hosted models.
|
|
260
285
|
service_tiers: nil,
|
|
286
|
+
# Reasoning-effort values this reasoning model accepts on Chat Completions and
|
|
287
|
+
# Responses (`reasoning.effort`). Use one of these values as `reasoning_effort`;
|
|
288
|
+
# any other value is rejected with a `400` error naming the value and the
|
|
289
|
+
# supported set. This field is omitted for models that do not reason.
|
|
290
|
+
supported_reasoning_efforts: nil,
|
|
261
291
|
# Primary task the model is intended for, e.g. `text-generation`,
|
|
262
292
|
# `audio-text-to-text`, `feature-extraction` (embeddings).
|
|
263
293
|
task: nil
|
|
@@ -289,6 +319,10 @@ module Telnyx
|
|
|
289
319
|
regions: T::Array[String],
|
|
290
320
|
service_tiers:
|
|
291
321
|
T::Array[Telnyx::ModelMetadata::ServiceTier::TaggedSymbol],
|
|
322
|
+
supported_reasoning_efforts:
|
|
323
|
+
T::Array[
|
|
324
|
+
Telnyx::ModelMetadata::SupportedReasoningEffort::TaggedSymbol
|
|
325
|
+
],
|
|
292
326
|
task: String
|
|
293
327
|
}
|
|
294
328
|
)
|
|
@@ -338,6 +372,62 @@ module Telnyx
|
|
|
338
372
|
def self.values
|
|
339
373
|
end
|
|
340
374
|
end
|
|
375
|
+
|
|
376
|
+
module SupportedReasoningEffort
|
|
377
|
+
extend Telnyx::Internal::Type::Enum
|
|
378
|
+
|
|
379
|
+
TaggedSymbol =
|
|
380
|
+
T.type_alias do
|
|
381
|
+
T.all(Symbol, Telnyx::ModelMetadata::SupportedReasoningEffort)
|
|
382
|
+
end
|
|
383
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
384
|
+
|
|
385
|
+
NONE =
|
|
386
|
+
T.let(
|
|
387
|
+
:none,
|
|
388
|
+
Telnyx::ModelMetadata::SupportedReasoningEffort::TaggedSymbol
|
|
389
|
+
)
|
|
390
|
+
MINIMAL =
|
|
391
|
+
T.let(
|
|
392
|
+
:minimal,
|
|
393
|
+
Telnyx::ModelMetadata::SupportedReasoningEffort::TaggedSymbol
|
|
394
|
+
)
|
|
395
|
+
LOW =
|
|
396
|
+
T.let(
|
|
397
|
+
:low,
|
|
398
|
+
Telnyx::ModelMetadata::SupportedReasoningEffort::TaggedSymbol
|
|
399
|
+
)
|
|
400
|
+
MEDIUM =
|
|
401
|
+
T.let(
|
|
402
|
+
:medium,
|
|
403
|
+
Telnyx::ModelMetadata::SupportedReasoningEffort::TaggedSymbol
|
|
404
|
+
)
|
|
405
|
+
HIGH =
|
|
406
|
+
T.let(
|
|
407
|
+
:high,
|
|
408
|
+
Telnyx::ModelMetadata::SupportedReasoningEffort::TaggedSymbol
|
|
409
|
+
)
|
|
410
|
+
XHIGH =
|
|
411
|
+
T.let(
|
|
412
|
+
:xhigh,
|
|
413
|
+
Telnyx::ModelMetadata::SupportedReasoningEffort::TaggedSymbol
|
|
414
|
+
)
|
|
415
|
+
MAX =
|
|
416
|
+
T.let(
|
|
417
|
+
:max,
|
|
418
|
+
Telnyx::ModelMetadata::SupportedReasoningEffort::TaggedSymbol
|
|
419
|
+
)
|
|
420
|
+
|
|
421
|
+
sig do
|
|
422
|
+
override.returns(
|
|
423
|
+
T::Array[
|
|
424
|
+
Telnyx::ModelMetadata::SupportedReasoningEffort::TaggedSymbol
|
|
425
|
+
]
|
|
426
|
+
)
|
|
427
|
+
end
|
|
428
|
+
def self.values
|
|
429
|
+
end
|
|
430
|
+
end
|
|
341
431
|
end
|
|
342
432
|
end
|
|
343
433
|
end
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module PhoneNumbers
|
|
6
|
+
class EmergencySettings < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(
|
|
10
|
+
Telnyx::PhoneNumbers::EmergencySettings,
|
|
11
|
+
Telnyx::Internal::AnyHash
|
|
12
|
+
)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# Identifies the address to be used with emergency services.
|
|
16
|
+
sig { returns(T.nilable(String)) }
|
|
17
|
+
attr_reader :emergency_address_id
|
|
18
|
+
|
|
19
|
+
sig { params(emergency_address_id: String).void }
|
|
20
|
+
attr_writer :emergency_address_id
|
|
21
|
+
|
|
22
|
+
# Allows you to enable or disable emergency services on the phone number. In order
|
|
23
|
+
# to enable emergency services, you must also set an emergency_address_id.
|
|
24
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
25
|
+
attr_reader :emergency_enabled
|
|
26
|
+
|
|
27
|
+
sig { params(emergency_enabled: T::Boolean).void }
|
|
28
|
+
attr_writer :emergency_enabled
|
|
29
|
+
|
|
30
|
+
# Represents the state of the number regarding emergency activation.
|
|
31
|
+
sig do
|
|
32
|
+
returns(
|
|
33
|
+
T.nilable(
|
|
34
|
+
Telnyx::PhoneNumbers::EmergencySettings::EmergencyStatus::TaggedSymbol
|
|
35
|
+
)
|
|
36
|
+
)
|
|
37
|
+
end
|
|
38
|
+
attr_reader :emergency_status
|
|
39
|
+
|
|
40
|
+
sig do
|
|
41
|
+
params(
|
|
42
|
+
emergency_status:
|
|
43
|
+
Telnyx::PhoneNumbers::EmergencySettings::EmergencyStatus::OrSymbol
|
|
44
|
+
).void
|
|
45
|
+
end
|
|
46
|
+
attr_writer :emergency_status
|
|
47
|
+
|
|
48
|
+
# The emergency services settings for a phone number.
|
|
49
|
+
sig do
|
|
50
|
+
params(
|
|
51
|
+
emergency_address_id: String,
|
|
52
|
+
emergency_enabled: T::Boolean,
|
|
53
|
+
emergency_status:
|
|
54
|
+
Telnyx::PhoneNumbers::EmergencySettings::EmergencyStatus::OrSymbol
|
|
55
|
+
).returns(T.attached_class)
|
|
56
|
+
end
|
|
57
|
+
def self.new(
|
|
58
|
+
# Identifies the address to be used with emergency services.
|
|
59
|
+
emergency_address_id: nil,
|
|
60
|
+
# Allows you to enable or disable emergency services on the phone number. In order
|
|
61
|
+
# to enable emergency services, you must also set an emergency_address_id.
|
|
62
|
+
emergency_enabled: nil,
|
|
63
|
+
# Represents the state of the number regarding emergency activation.
|
|
64
|
+
emergency_status: nil
|
|
65
|
+
)
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
sig do
|
|
69
|
+
override.returns(
|
|
70
|
+
{
|
|
71
|
+
emergency_address_id: String,
|
|
72
|
+
emergency_enabled: T::Boolean,
|
|
73
|
+
emergency_status:
|
|
74
|
+
Telnyx::PhoneNumbers::EmergencySettings::EmergencyStatus::TaggedSymbol
|
|
75
|
+
}
|
|
76
|
+
)
|
|
77
|
+
end
|
|
78
|
+
def to_hash
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# Represents the state of the number regarding emergency activation.
|
|
82
|
+
module EmergencyStatus
|
|
83
|
+
extend Telnyx::Internal::Type::Enum
|
|
84
|
+
|
|
85
|
+
TaggedSymbol =
|
|
86
|
+
T.type_alias do
|
|
87
|
+
T.all(
|
|
88
|
+
Symbol,
|
|
89
|
+
Telnyx::PhoneNumbers::EmergencySettings::EmergencyStatus
|
|
90
|
+
)
|
|
91
|
+
end
|
|
92
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
93
|
+
|
|
94
|
+
DISABLED =
|
|
95
|
+
T.let(
|
|
96
|
+
:disabled,
|
|
97
|
+
Telnyx::PhoneNumbers::EmergencySettings::EmergencyStatus::TaggedSymbol
|
|
98
|
+
)
|
|
99
|
+
ACTIVE =
|
|
100
|
+
T.let(
|
|
101
|
+
:active,
|
|
102
|
+
Telnyx::PhoneNumbers::EmergencySettings::EmergencyStatus::TaggedSymbol
|
|
103
|
+
)
|
|
104
|
+
PROVISIONING =
|
|
105
|
+
T.let(
|
|
106
|
+
:provisioning,
|
|
107
|
+
Telnyx::PhoneNumbers::EmergencySettings::EmergencyStatus::TaggedSymbol
|
|
108
|
+
)
|
|
109
|
+
DEPROVISIONING =
|
|
110
|
+
T.let(
|
|
111
|
+
:deprovisioning,
|
|
112
|
+
Telnyx::PhoneNumbers::EmergencySettings::EmergencyStatus::TaggedSymbol
|
|
113
|
+
)
|
|
114
|
+
PROVISIONING_FAILED =
|
|
115
|
+
T.let(
|
|
116
|
+
:"provisioning-failed",
|
|
117
|
+
Telnyx::PhoneNumbers::EmergencySettings::EmergencyStatus::TaggedSymbol
|
|
118
|
+
)
|
|
119
|
+
|
|
120
|
+
sig do
|
|
121
|
+
override.returns(
|
|
122
|
+
T::Array[
|
|
123
|
+
Telnyx::PhoneNumbers::EmergencySettings::EmergencyStatus::TaggedSymbol
|
|
124
|
+
]
|
|
125
|
+
)
|
|
126
|
+
end
|
|
127
|
+
def self.values
|
|
128
|
+
end
|
|
129
|
+
end
|
|
130
|
+
end
|
|
131
|
+
end
|
|
132
|
+
end
|
|
133
|
+
end
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module PhoneNumbers
|
|
6
|
+
class NumbersCnamListing < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(
|
|
10
|
+
Telnyx::PhoneNumbers::NumbersCnamListing,
|
|
11
|
+
Telnyx::Internal::AnyHash
|
|
12
|
+
)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# The CNAM listing details for this number. Must be alphanumeric characters or
|
|
16
|
+
# spaces with a maximum length of 15. Requires cnam_listing_enabled to also be set
|
|
17
|
+
# to true.
|
|
18
|
+
sig { returns(T.nilable(String)) }
|
|
19
|
+
attr_reader :cnam_listing_details
|
|
20
|
+
|
|
21
|
+
sig { params(cnam_listing_details: String).void }
|
|
22
|
+
attr_writer :cnam_listing_details
|
|
23
|
+
|
|
24
|
+
# Enables CNAM listings for this number. Requires cnam_listing_details to also be
|
|
25
|
+
# set.
|
|
26
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
27
|
+
attr_reader :cnam_listing_enabled
|
|
28
|
+
|
|
29
|
+
sig { params(cnam_listing_enabled: T::Boolean).void }
|
|
30
|
+
attr_writer :cnam_listing_enabled
|
|
31
|
+
|
|
32
|
+
# The CNAM listing settings for a phone number. See the
|
|
33
|
+
# [Caller ID & CNAM guide](https://developers.telnyx.com/docs/numbers/phone-numbers/caller-id-cnam)
|
|
34
|
+
# for setup steps and coverage details.
|
|
35
|
+
sig do
|
|
36
|
+
params(
|
|
37
|
+
cnam_listing_details: String,
|
|
38
|
+
cnam_listing_enabled: T::Boolean
|
|
39
|
+
).returns(T.attached_class)
|
|
40
|
+
end
|
|
41
|
+
def self.new(
|
|
42
|
+
# The CNAM listing details for this number. Must be alphanumeric characters or
|
|
43
|
+
# spaces with a maximum length of 15. Requires cnam_listing_enabled to also be set
|
|
44
|
+
# to true.
|
|
45
|
+
cnam_listing_details: nil,
|
|
46
|
+
# Enables CNAM listings for this number. Requires cnam_listing_details to also be
|
|
47
|
+
# set.
|
|
48
|
+
cnam_listing_enabled: nil
|
|
49
|
+
)
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
sig do
|
|
53
|
+
override.returns(
|
|
54
|
+
{ cnam_listing_details: String, cnam_listing_enabled: T::Boolean }
|
|
55
|
+
)
|
|
56
|
+
end
|
|
57
|
+
def to_hash
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|