telnyx 5.68.2 → 5.70.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (189) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +59 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/client.rb +7 -0
  5. data/lib/telnyx/internal/util.rb +21 -5
  6. data/lib/telnyx/models/ai/assistant_create_params.rb +8 -1
  7. data/lib/telnyx/models/ai/assistant_tool.rb +25 -5
  8. data/lib/telnyx/models/ai/assistant_update_params.rb +8 -1
  9. data/lib/telnyx/models/ai/assistants/update_assistant.rb +8 -1
  10. data/lib/telnyx/models/ai/audio_transcribe_response.rb +70 -7
  11. data/lib/telnyx/models/ai/conversation_add_message_params.rb +4 -4
  12. data/lib/telnyx/models/ai/inference_embedding.rb +8 -1
  13. data/lib/telnyx/models/ai/observability.rb +46 -0
  14. data/lib/telnyx/models/ai/observability_req.rb +46 -0
  15. data/lib/telnyx/models/ai/telephony_settings.rb +13 -1
  16. data/lib/telnyx/models/call_dial_params.rb +24 -1
  17. data/lib/telnyx/models/calls/action_transfer_params.rb +24 -1
  18. data/lib/telnyx/models/enterprise_create_params.rb +1 -1
  19. data/lib/telnyx/models/enterprise_public.rb +1 -1
  20. data/lib/telnyx/models/enterprise_update_params.rb +1 -1
  21. data/lib/telnyx/models/enterprises/reputation/{number_create_params.rb → number_associate_params.rb} +2 -2
  22. data/lib/telnyx/models/enterprises/reputation/{number_create_response.rb → number_associate_response.rb} +5 -5
  23. data/lib/telnyx/models/enterprises/reputation/{number_delete_params.rb → number_disassociate_params.rb} +2 -2
  24. data/lib/telnyx/models/enterprises/{reputation_list_params.rb → reputation_disable_params.rb} +2 -2
  25. data/lib/telnyx/models/enterprises/{reputation_create_params.rb → reputation_enable_params.rb} +6 -6
  26. data/lib/telnyx/models/enterprises/{reputation_create_response.rb → reputation_enable_response.rb} +2 -2
  27. data/lib/telnyx/models/enterprises/{reputation_delete_all_params.rb → reputation_retrieve_params.rb} +2 -2
  28. data/lib/telnyx/models/enterprises/{reputation_list_response.rb → reputation_retrieve_response.rb} +2 -2
  29. data/lib/telnyx/models/porting_orders/phone_number_block_list_params.rb +9 -9
  30. data/lib/telnyx/models/pronunciation_dict_create_params.rb +141 -0
  31. data/lib/telnyx/models/pronunciation_dict_create_response.rb +207 -0
  32. data/lib/telnyx/models/pronunciation_dict_delete_params.rb +20 -0
  33. data/lib/telnyx/models/pronunciation_dict_list_params.rb +30 -0
  34. data/lib/telnyx/models/pronunciation_dict_list_response.rb +190 -0
  35. data/lib/telnyx/models/pronunciation_dict_retrieve_params.rb +20 -0
  36. data/lib/telnyx/models/pronunciation_dict_retrieve_response.rb +207 -0
  37. data/lib/telnyx/models/pronunciation_dict_update_params.rb +144 -0
  38. data/lib/telnyx/models/pronunciation_dict_update_response.rb +207 -0
  39. data/lib/telnyx/models/texml/accounts/call_calls_params.rb +1893 -547
  40. data/lib/telnyx/models/texml_initiate_ai_call_params.rb +514 -0
  41. data/lib/telnyx/models/texml_initiate_ai_call_response.rb +34 -0
  42. data/lib/telnyx/models/verification.rb +1 -0
  43. data/lib/telnyx/models/verification_trigger_whatsapp_verification_params.rb +46 -0
  44. data/lib/telnyx/models/verify_profile_create_params.rb +43 -1
  45. data/lib/telnyx/models/verify_profile_update_params.rb +43 -1
  46. data/lib/telnyx/models/voice_clone_create_from_upload_params.rb +364 -71
  47. data/lib/telnyx/models/voice_clone_create_params.rb +161 -51
  48. data/lib/telnyx/models/voice_clone_data.rb +51 -4
  49. data/lib/telnyx/models/whatsapp_message_content.rb +196 -1
  50. data/lib/telnyx/models/wireless_blocklist_update_params.rb +8 -21
  51. data/lib/telnyx/models.rb +15 -0
  52. data/lib/telnyx/resources/ai/assistants/versions.rb +3 -1
  53. data/lib/telnyx/resources/ai/assistants.rb +6 -2
  54. data/lib/telnyx/resources/calls/actions.rb +3 -1
  55. data/lib/telnyx/resources/calls.rb +3 -1
  56. data/lib/telnyx/resources/enterprises/reputation/numbers.rb +42 -42
  57. data/lib/telnyx/resources/enterprises/reputation.rb +61 -61
  58. data/lib/telnyx/resources/pronunciation_dicts.rb +156 -0
  59. data/lib/telnyx/resources/texml/accounts/calls.rb +3 -84
  60. data/lib/telnyx/resources/texml.rb +106 -0
  61. data/lib/telnyx/resources/verifications.rb +28 -0
  62. data/lib/telnyx/resources/verify_profiles.rb +5 -2
  63. data/lib/telnyx/resources/voice_clones.rb +7 -27
  64. data/lib/telnyx/resources/wireless_blocklists.rb +5 -5
  65. data/lib/telnyx/version.rb +1 -1
  66. data/lib/telnyx.rb +23 -8
  67. data/rbi/telnyx/client.rbi +6 -0
  68. data/rbi/telnyx/internal/util.rbi +8 -0
  69. data/rbi/telnyx/models/ai/assistant_create_params.rbi +13 -0
  70. data/rbi/telnyx/models/ai/assistant_tool.rbi +56 -5
  71. data/rbi/telnyx/models/ai/assistant_update_params.rbi +13 -0
  72. data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +13 -0
  73. data/rbi/telnyx/models/ai/audio_transcribe_response.rbi +123 -10
  74. data/rbi/telnyx/models/ai/conversation_add_message_params.rbi +5 -5
  75. data/rbi/telnyx/models/ai/inference_embedding.rbi +11 -0
  76. data/rbi/telnyx/models/ai/observability.rbi +90 -0
  77. data/rbi/telnyx/models/ai/observability_req.rbi +92 -0
  78. data/rbi/telnyx/models/ai/telephony_settings.rbi +13 -0
  79. data/rbi/telnyx/models/call_dial_params.rbi +37 -0
  80. data/rbi/telnyx/models/calls/action_transfer_params.rbi +57 -0
  81. data/rbi/telnyx/models/enterprise_create_params.rbi +1 -1
  82. data/rbi/telnyx/models/enterprise_public.rbi +1 -1
  83. data/rbi/telnyx/models/enterprise_update_params.rbi +1 -1
  84. data/rbi/telnyx/models/enterprises/reputation/{number_create_params.rbi → number_associate_params.rbi} +2 -2
  85. data/rbi/telnyx/models/enterprises/reputation/{number_create_response.rbi → number_associate_response.rbi} +7 -7
  86. data/rbi/telnyx/models/enterprises/reputation/{number_delete_params.rbi → number_disassociate_params.rbi} +2 -2
  87. data/rbi/telnyx/models/enterprises/{reputation_list_params.rbi → reputation_disable_params.rbi} +2 -2
  88. data/rbi/telnyx/models/enterprises/{reputation_create_params.rbi → reputation_enable_params.rbi} +14 -14
  89. data/rbi/telnyx/models/enterprises/{reputation_create_response.rbi → reputation_enable_response.rbi} +2 -2
  90. data/rbi/telnyx/models/enterprises/{reputation_delete_all_params.rbi → reputation_retrieve_params.rbi} +2 -2
  91. data/rbi/telnyx/models/enterprises/{reputation_list_response.rbi → reputation_retrieve_response.rbi} +2 -2
  92. data/rbi/telnyx/models/porting_orders/phone_number_block_list_params.rbi +34 -34
  93. data/rbi/telnyx/models/pronunciation_dict_create_params.rbi +246 -0
  94. data/rbi/telnyx/models/pronunciation_dict_create_response.rbi +398 -0
  95. data/rbi/telnyx/models/pronunciation_dict_delete_params.rbi +38 -0
  96. data/rbi/telnyx/models/pronunciation_dict_list_params.rbi +57 -0
  97. data/rbi/telnyx/models/pronunciation_dict_list_response.rbi +353 -0
  98. data/rbi/telnyx/models/pronunciation_dict_retrieve_params.rbi +38 -0
  99. data/rbi/telnyx/models/pronunciation_dict_retrieve_response.rbi +398 -0
  100. data/rbi/telnyx/models/pronunciation_dict_update_params.rbi +268 -0
  101. data/rbi/telnyx/models/pronunciation_dict_update_response.rbi +398 -0
  102. data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +3719 -1011
  103. data/rbi/telnyx/models/texml_initiate_ai_call_params.rbi +1010 -0
  104. data/rbi/telnyx/models/texml_initiate_ai_call_response.rbi +58 -0
  105. data/rbi/telnyx/models/verification.rbi +1 -0
  106. data/rbi/telnyx/models/verification_trigger_whatsapp_verification_params.rbi +73 -0
  107. data/rbi/telnyx/models/verify_profile_create_params.rbi +85 -0
  108. data/rbi/telnyx/models/verify_profile_update_params.rbi +85 -0
  109. data/rbi/telnyx/models/voice_clone_create_from_upload_params.rbi +711 -136
  110. data/rbi/telnyx/models/voice_clone_create_params.rbi +345 -79
  111. data/rbi/telnyx/models/voice_clone_data.rbi +77 -4
  112. data/rbi/telnyx/models/whatsapp_message_content.rbi +492 -0
  113. data/rbi/telnyx/models/wireless_blocklist_update_params.rbi +6 -49
  114. data/rbi/telnyx/models.rbi +19 -10
  115. data/rbi/telnyx/resources/ai/assistants/versions.rbi +3 -0
  116. data/rbi/telnyx/resources/ai/assistants.rbi +4 -0
  117. data/rbi/telnyx/resources/calls/actions.rbi +5 -0
  118. data/rbi/telnyx/resources/calls.rbi +5 -0
  119. data/rbi/telnyx/resources/enterprises/reputation/numbers.rbi +34 -34
  120. data/rbi/telnyx/resources/enterprises/reputation.rbi +44 -44
  121. data/rbi/telnyx/resources/pronunciation_dicts.rbi +131 -0
  122. data/rbi/telnyx/resources/texml/accounts/calls.rbi +7 -163
  123. data/rbi/telnyx/resources/texml.rbi +164 -0
  124. data/rbi/telnyx/resources/verifications.rbi +23 -0
  125. data/rbi/telnyx/resources/verify_profiles.rbi +4 -0
  126. data/rbi/telnyx/resources/voice_clones.rbi +17 -41
  127. data/rbi/telnyx/resources/wireless_blocklists.rbi +3 -3
  128. data/sig/telnyx/client.rbs +2 -0
  129. data/sig/telnyx/internal/util.rbs +4 -0
  130. data/sig/telnyx/models/ai/assistant_create_params.rbs +9 -0
  131. data/sig/telnyx/models/ai/assistant_tool.rbs +17 -4
  132. data/sig/telnyx/models/ai/assistant_update_params.rbs +9 -0
  133. data/sig/telnyx/models/ai/assistants/update_assistant.rbs +9 -0
  134. data/sig/telnyx/models/ai/audio_transcribe_response.rbs +53 -3
  135. data/sig/telnyx/models/ai/conversation_add_message_params.rbs +5 -5
  136. data/sig/telnyx/models/ai/inference_embedding.rbs +9 -0
  137. data/sig/telnyx/models/ai/observability.rbs +58 -0
  138. data/sig/telnyx/models/ai/observability_req.rbs +58 -0
  139. data/sig/telnyx/models/ai/telephony_settings.rbs +7 -0
  140. data/sig/telnyx/models/call_dial_params.rbs +20 -0
  141. data/sig/telnyx/models/calls/action_transfer_params.rbs +20 -0
  142. data/sig/telnyx/models/enterprise_create_params.rbs +1 -1
  143. data/sig/telnyx/models/enterprise_public.rbs +1 -1
  144. data/sig/telnyx/models/enterprise_update_params.rbs +1 -1
  145. data/sig/telnyx/models/enterprises/reputation/{number_create_params.rbs → number_associate_params.rbs} +2 -2
  146. data/sig/telnyx/models/enterprises/reputation/{number_create_response.rbs → number_associate_response.rbs} +8 -8
  147. data/sig/telnyx/models/enterprises/reputation/{number_delete_params.rbs → number_disassociate_params.rbs} +2 -2
  148. data/sig/telnyx/models/enterprises/{reputation_list_params.rbs → reputation_disable_params.rbs} +2 -2
  149. data/sig/telnyx/models/enterprises/{reputation_create_params.rbs → reputation_enable_params.rbs} +9 -9
  150. data/sig/telnyx/models/enterprises/{reputation_create_response.rbs → reputation_enable_response.rbs} +2 -2
  151. data/sig/telnyx/models/enterprises/{reputation_delete_all_params.rbs → reputation_retrieve_params.rbs} +2 -2
  152. data/sig/telnyx/models/enterprises/{reputation_list_response.rbs → reputation_retrieve_response.rbs} +2 -2
  153. data/sig/telnyx/models/porting_orders/phone_number_block_list_params.rbs +9 -9
  154. data/sig/telnyx/models/pronunciation_dict_create_params.rbs +97 -0
  155. data/sig/telnyx/models/pronunciation_dict_create_response.rbs +167 -0
  156. data/sig/telnyx/models/pronunciation_dict_delete_params.rbs +20 -0
  157. data/sig/telnyx/models/pronunciation_dict_list_params.rbs +32 -0
  158. data/sig/telnyx/models/pronunciation_dict_list_response.rbs +144 -0
  159. data/sig/telnyx/models/pronunciation_dict_retrieve_params.rbs +20 -0
  160. data/sig/telnyx/models/pronunciation_dict_retrieve_response.rbs +167 -0
  161. data/sig/telnyx/models/pronunciation_dict_update_params.rbs +108 -0
  162. data/sig/telnyx/models/pronunciation_dict_update_response.rbs +167 -0
  163. data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +1368 -331
  164. data/sig/telnyx/models/texml_initiate_ai_call_params.rbs +444 -0
  165. data/sig/telnyx/models/texml_initiate_ai_call_response.rbs +38 -0
  166. data/sig/telnyx/models/verification.rbs +2 -1
  167. data/sig/telnyx/models/verification_trigger_whatsapp_verification_params.rbs +43 -0
  168. data/sig/telnyx/models/verify_profile_create_params.rbs +43 -1
  169. data/sig/telnyx/models/verify_profile_update_params.rbs +43 -1
  170. data/sig/telnyx/models/voice_clone_create_from_upload_params.rbs +269 -58
  171. data/sig/telnyx/models/voice_clone_create_params.rbs +129 -44
  172. data/sig/telnyx/models/voice_clone_data.rbs +43 -0
  173. data/sig/telnyx/models/whatsapp_message_content.rbs +205 -0
  174. data/sig/telnyx/models/wireless_blocklist_update_params.rbs +5 -25
  175. data/sig/telnyx/models.rbs +14 -0
  176. data/sig/telnyx/resources/ai/assistants/versions.rbs +1 -0
  177. data/sig/telnyx/resources/ai/assistants.rbs +2 -0
  178. data/sig/telnyx/resources/calls/actions.rbs +1 -0
  179. data/sig/telnyx/resources/calls.rbs +1 -0
  180. data/sig/telnyx/resources/enterprises/reputation/numbers.rbs +7 -7
  181. data/sig/telnyx/resources/enterprises/reputation.rbs +8 -8
  182. data/sig/telnyx/resources/pronunciation_dicts.rbs +33 -0
  183. data/sig/telnyx/resources/texml/accounts/calls.rbs +1 -40
  184. data/sig/telnyx/resources/texml.rbs +44 -0
  185. data/sig/telnyx/resources/verifications.rbs +8 -0
  186. data/sig/telnyx/resources/verify_profiles.rbs +2 -0
  187. data/sig/telnyx/resources/voice_clones.rbs +2 -12
  188. data/sig/telnyx/resources/wireless_blocklists.rbs +1 -1
  189. metadata +71 -26
@@ -8,6 +8,112 @@ module Telnyx
8
8
  # @return [Telnyx::Resources::Texml::Accounts]
9
9
  attr_reader :accounts
10
10
 
11
+ # Some parameter documentations has been truncated, see
12
+ # {Telnyx::Models::TexmlInitiateAICallParams} for more details.
13
+ #
14
+ # Initiate an outbound AI call with warm-up support. Validates parameters, builds
15
+ # an internal TeXML with an AI Assistant configuration, encodes instructions into
16
+ # client state, and calls the dial API. The Twiml, Texml, and Url parameters are
17
+ # not allowed and will result in a 422 error.
18
+ #
19
+ # @overload initiate_ai_call(connection_id, ai_assistant_id:, from:, to:, ai_assistant_dynamic_variables: nil, ai_assistant_version: nil, async_amd: nil, async_amd_status_callback: nil, async_amd_status_callback_method: nil, caller_id: nil, conversation_callback: nil, conversation_callback_method: nil, conversation_callbacks: nil, custom_headers: nil, detection_mode: nil, machine_detection: nil, machine_detection_silence_timeout: nil, machine_detection_speech_end_threshold: nil, machine_detection_speech_threshold: nil, machine_detection_timeout: nil, passports: nil, preferred_codecs: nil, record: nil, recording_channels: nil, recording_status_callback: nil, recording_status_callback_event: nil, recording_status_callback_method: nil, recording_timeout: nil, recording_track: nil, send_recording_url: nil, sip_auth_password: nil, sip_auth_username: nil, sip_region: nil, status_callback: nil, status_callback_event: nil, status_callback_method: nil, status_callbacks: nil, time_limit: nil, timeout_seconds: nil, trim: nil, request_options: {})
20
+ #
21
+ # @param connection_id [String] The ID of the TeXML connection to use for the call.
22
+ #
23
+ # @param ai_assistant_id [String] The ID of the AI assistant to use for the call.
24
+ #
25
+ # @param from [String] The phone number of the party initiating the call. Phone numbers are formatted w
26
+ #
27
+ # @param to [String] The phone number of the called party. Phone numbers are formatted with a `+` and
28
+ #
29
+ # @param ai_assistant_dynamic_variables [Hash{Symbol=>String}] Key-value map of dynamic variables to pass to the AI assistant.
30
+ #
31
+ # @param ai_assistant_version [String] The version of the AI assistant to use.
32
+ #
33
+ # @param async_amd [Boolean] Select whether to perform answering machine detection in the background. By defa
34
+ #
35
+ # @param async_amd_status_callback [String] URL destination for Telnyx to send AMD callback events to for the call.
36
+ #
37
+ # @param async_amd_status_callback_method [Symbol, Telnyx::Models::TexmlInitiateAICallParams::AsyncAmdStatusCallbackMethod] HTTP request type used for `AsyncAmdStatusCallback`.
38
+ #
39
+ # @param caller_id [String] To be used as the caller id name (SIP From Display Name) presented to the destin
40
+ #
41
+ # @param conversation_callback [String] URL destination for Telnyx to send conversation callback events to.
42
+ #
43
+ # @param conversation_callback_method [Symbol, Telnyx::Models::TexmlInitiateAICallParams::ConversationCallbackMethod] HTTP request type used for `ConversationCallback`.
44
+ #
45
+ # @param conversation_callbacks [Array<String>] An array of URL destinations for conversation callback events.
46
+ #
47
+ # @param custom_headers [Array<Telnyx::Models::TexmlInitiateAICallParams::CustomHeader>] Custom HTTP headers to be sent with the call. Each header should be an object wi
48
+ #
49
+ # @param detection_mode [Symbol, Telnyx::Models::TexmlInitiateAICallParams::DetectionMode] Allows you to choose between Premium and Standard detections.
50
+ #
51
+ # @param machine_detection [Symbol, Telnyx::Models::TexmlInitiateAICallParams::MachineDetection] Enables Answering Machine Detection.
52
+ #
53
+ # @param machine_detection_silence_timeout [Integer] If initial silence duration is greater than this value, consider it a machine. I
54
+ #
55
+ # @param machine_detection_speech_end_threshold [Integer] Silence duration threshold after a greeting message or voice for it be considere
56
+ #
57
+ # @param machine_detection_speech_threshold [Integer] Maximum threshold of a human greeting. If greeting longer than this value, consi
58
+ #
59
+ # @param machine_detection_timeout [Integer] Maximum timeout threshold in milliseconds for overall detection.
60
+ #
61
+ # @param passports [String] A string of passport identifiers to associate with the call.
62
+ #
63
+ # @param preferred_codecs [String] The list of comma-separated codecs to be offered on a call.
64
+ #
65
+ # @param record [Boolean] Whether to record the entire participant's call leg. Defaults to `false`.
66
+ #
67
+ # @param recording_channels [Symbol, Telnyx::Models::TexmlInitiateAICallParams::RecordingChannels] The number of channels in the final recording. Defaults to `mono`.
68
+ #
69
+ # @param recording_status_callback [String] The URL the recording callbacks will be sent to.
70
+ #
71
+ # @param recording_status_callback_event [String] The changes to the recording's state that should generate a call to `RecordingSt
72
+ #
73
+ # @param recording_status_callback_method [Symbol, Telnyx::Models::TexmlInitiateAICallParams::RecordingStatusCallbackMethod] HTTP request type used for `RecordingStatusCallback`. Defaults to `POST`.
74
+ #
75
+ # @param recording_timeout [Integer] The number of seconds that Telnyx will wait for the recording to be stopped if s
76
+ #
77
+ # @param recording_track [Symbol, Telnyx::Models::TexmlInitiateAICallParams::RecordingTrack] The audio track to record for the call. The default is `both`.
78
+ #
79
+ # @param send_recording_url [Boolean] Whether to send RecordingUrl in webhooks.
80
+ #
81
+ # @param sip_auth_password [String] The password to use for SIP authentication.
82
+ #
83
+ # @param sip_auth_username [String] The username to use for SIP authentication.
84
+ #
85
+ # @param sip_region [Symbol, Telnyx::Models::TexmlInitiateAICallParams::SipRegion] Defines the SIP region to be used for the call.
86
+ #
87
+ # @param status_callback [String] URL destination for Telnyx to send status callback events to for the call.
88
+ #
89
+ # @param status_callback_event [String] The call events for which Telnyx should send a webhook. Multiple events can be d
90
+ #
91
+ # @param status_callback_method [Symbol, Telnyx::Models::TexmlInitiateAICallParams::StatusCallbackMethod] HTTP request type used for `StatusCallback`.
92
+ #
93
+ # @param status_callbacks [Array<String>] An array of URL destinations for Telnyx to send status callback events to for th
94
+ #
95
+ # @param time_limit [Integer] The maximum duration of the call in seconds. The minimum value is 30 and the max
96
+ #
97
+ # @param timeout_seconds [Integer] The number of seconds to wait for the called party to answer the call before the
98
+ #
99
+ # @param trim [Symbol, Telnyx::Models::TexmlInitiateAICallParams::Trim] Whether to trim any leading and trailing silence from the recording. Defaults to
100
+ #
101
+ # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
102
+ #
103
+ # @return [Telnyx::Models::TexmlInitiateAICallResponse]
104
+ #
105
+ # @see Telnyx::Models::TexmlInitiateAICallParams
106
+ def initiate_ai_call(connection_id, params)
107
+ parsed, options = Telnyx::TexmlInitiateAICallParams.dump_request(params)
108
+ @client.request(
109
+ method: :post,
110
+ path: ["texml/ai_calls/%1$s", connection_id],
111
+ body: parsed,
112
+ model: Telnyx::Models::TexmlInitiateAICallResponse,
113
+ options: options
114
+ )
115
+ end
116
+
11
117
  # Some parameter documentations has been truncated, see
12
118
  # {Telnyx::Models::TexmlSecretsParams} for more details.
13
119
  #
@@ -119,6 +119,34 @@ module Telnyx
119
119
  )
120
120
  end
121
121
 
122
+ # Trigger WhatsApp verification
123
+ #
124
+ # @overload trigger_whatsapp_verification(phone_number:, verify_profile_id:, custom_code: nil, timeout_secs: nil, request_options: {})
125
+ #
126
+ # @param phone_number [String] +E164 formatted phone number.
127
+ #
128
+ # @param verify_profile_id [String] The identifier of the associated Verify profile.
129
+ #
130
+ # @param custom_code [String, nil] Send a self-generated numeric code to the end-user
131
+ #
132
+ # @param timeout_secs [Integer] The number of seconds the verification code is valid for.
133
+ #
134
+ # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
135
+ #
136
+ # @return [Telnyx::Models::CreateVerificationResponse]
137
+ #
138
+ # @see Telnyx::Models::VerificationTriggerWhatsappVerificationParams
139
+ def trigger_whatsapp_verification(params)
140
+ parsed, options = Telnyx::VerificationTriggerWhatsappVerificationParams.dump_request(params)
141
+ @client.request(
142
+ method: :post,
143
+ path: "verifications/whatsapp",
144
+ body: parsed,
145
+ model: Telnyx::CreateVerificationResponse,
146
+ options: options
147
+ )
148
+ end
149
+
122
150
  # @api private
123
151
  #
124
152
  # @param client [Telnyx::Client]
@@ -6,7 +6,7 @@ module Telnyx
6
6
  class VerifyProfiles
7
7
  # Creates a new Verify profile to associate verifications with.
8
8
  #
9
- # @overload create(name:, call: nil, flashcall: nil, language: nil, rcs: nil, sms: nil, webhook_failover_url: nil, webhook_url: nil, request_options: {})
9
+ # @overload create(name:, call: nil, flashcall: nil, language: nil, rcs: nil, sms: nil, webhook_failover_url: nil, webhook_url: nil, whatsapp: nil, request_options: {})
10
10
  #
11
11
  # @param name [String]
12
12
  # @param call [Telnyx::Models::VerifyProfileCreateParams::Call]
@@ -16,6 +16,7 @@ module Telnyx
16
16
  # @param sms [Telnyx::Models::VerifyProfileCreateParams::SMS]
17
17
  # @param webhook_failover_url [String]
18
18
  # @param webhook_url [String]
19
+ # @param whatsapp [Telnyx::Models::VerifyProfileCreateParams::Whatsapp]
19
20
  # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
20
21
  #
21
22
  # @return [Telnyx::Models::VerifyProfileData]
@@ -54,7 +55,7 @@ module Telnyx
54
55
 
55
56
  # Update Verify profile
56
57
  #
57
- # @overload update(verify_profile_id, call: nil, flashcall: nil, language: nil, name: nil, rcs: nil, sms: nil, webhook_failover_url: nil, webhook_url: nil, request_options: {})
58
+ # @overload update(verify_profile_id, call: nil, flashcall: nil, language: nil, name: nil, rcs: nil, sms: nil, webhook_failover_url: nil, webhook_url: nil, whatsapp: nil, request_options: {})
58
59
  #
59
60
  # @param verify_profile_id [String] The identifier of the Verify profile to update.
60
61
  #
@@ -74,6 +75,8 @@ module Telnyx
74
75
  #
75
76
  # @param webhook_url [String]
76
77
  #
78
+ # @param whatsapp [Telnyx::Models::VerifyProfileUpdateParams::Whatsapp]
79
+ #
77
80
  # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
78
81
  #
79
82
  # @return [Telnyx::Models::VerifyProfileData]
@@ -8,17 +8,9 @@ module Telnyx
8
8
  # Creates a new voice clone by capturing the voice identity of an existing voice
9
9
  # design. The clone can then be used for text-to-speech synthesis.
10
10
  #
11
- # @overload create(gender:, language:, name:, voice_design_id:, provider: nil, request_options: {})
11
+ # @overload create(body:, request_options: {})
12
12
  #
13
- # @param gender [Symbol, Telnyx::Models::VoiceCloneCreateParams::Gender] Gender of the voice clone.
14
- #
15
- # @param language [String] ISO 639-1 language code for the clone (e.g. `en`, `fr`, `de`).
16
- #
17
- # @param name [String] Name for the voice clone.
18
- #
19
- # @param voice_design_id [String] UUID of the source voice design to clone.
20
- #
21
- # @param provider [Symbol, Telnyx::Models::VoiceCloneCreateParams::Provider] Voice synthesis provider. Case-insensitive. Defaults to `telnyx`.
13
+ # @param body [Telnyx::Models::VoiceCloneCreateParams::Body::TelnyxDesignClone, Telnyx::Models::VoiceCloneCreateParams::Body::MinimaxDesignClone] Request body for creating a voice clone from an existing voice design.
22
14
  #
23
15
  # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
24
16
  #
@@ -30,7 +22,7 @@ module Telnyx
30
22
  @client.request(
31
23
  method: :post,
32
24
  path: "voice_clones",
33
- body: parsed,
25
+ body: parsed[:body],
34
26
  model: Telnyx::Models::VoiceCloneCreateResponse,
35
27
  options: options
36
28
  )
@@ -126,23 +118,11 @@ module Telnyx
126
118
  #
127
119
  # Creates a new voice clone by uploading an audio file directly. Supported
128
120
  # formats: WAV, MP3, FLAC, OGG, M4A. For best results, provide 5–10 seconds of
129
- # clear speech. Maximum file size: 2MB.
130
- #
131
- # @overload create_from_upload(audio_file:, language:, name:, gender: nil, label: nil, provider: nil, ref_text: nil, request_options: {})
121
+ # clear speech. Maximum file size: 5MB for Telnyx, 20MB for Minimax.
132
122
  #
133
- # @param audio_file [Pathname, StringIO, IO, String, Telnyx::FilePart] Audio file to clone the voice from. Supported formats: WAV, MP3, FLAC, OGG, M4A.
123
+ # @overload create_from_upload(body:, request_options: {})
134
124
  #
135
- # @param language [String] ISO 639-1 language code (e.g. `en`, `fr`) or `auto` for automatic detection.
136
- #
137
- # @param name [String] Name for the voice clone.
138
- #
139
- # @param gender [Symbol, Telnyx::Models::VoiceCloneCreateFromUploadParams::Gender] Gender of the voice clone.
140
- #
141
- # @param label [String] Optional custom label describing the voice style. If omitted, falls back to the
142
- #
143
- # @param provider [Symbol, Telnyx::Models::VoiceCloneCreateFromUploadParams::Provider] Voice synthesis provider. Case-insensitive. Defaults to `telnyx`.
144
- #
145
- # @param ref_text [String] Optional transcript of the audio file. Providing this improves clone quality.
125
+ # @param body [Telnyx::Models::VoiceCloneCreateFromUploadParams::Body::TelnyxQwen3TtsClone, Telnyx::Models::VoiceCloneCreateFromUploadParams::Body::TelnyxUltraClone, Telnyx::Models::VoiceCloneCreateFromUploadParams::Body::MinimaxClone] Multipart form data for creating a voice clone from a direct audio upload. Maxim
146
126
  #
147
127
  # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
148
128
  #
@@ -155,7 +135,7 @@ module Telnyx
155
135
  method: :post,
156
136
  path: "voice_clones/from_upload",
157
137
  headers: {"content-type" => "multipart/form-data"},
158
- body: parsed,
138
+ body: parsed[:body],
159
139
  model: Telnyx::Models::VoiceCloneCreateFromUploadResponse,
160
140
  options: options
161
141
  )
@@ -52,11 +52,11 @@ module Telnyx
52
52
 
53
53
  # Update a Wireless Blocklist.
54
54
  #
55
- # @overload update(name: nil, type: nil, values: nil, request_options: {})
55
+ # @overload update(id, name: nil, values: nil, request_options: {})
56
56
  #
57
- # @param name [String] The name of the Wireless Blocklist.
57
+ # @param id [String] Identifies the wireless blocklist.
58
58
  #
59
- # @param type [Symbol, Telnyx::Models::WirelessBlocklistUpdateParams::Type] The type of wireless blocklist.
59
+ # @param name [String] The name of the Wireless Blocklist.
60
60
  #
61
61
  # @param values [Array<String>] Values to block. The values here depend on the `type` of Wireless Blocklist.
62
62
  #
@@ -65,11 +65,11 @@ module Telnyx
65
65
  # @return [Telnyx::Models::WirelessBlocklistUpdateResponse]
66
66
  #
67
67
  # @see Telnyx::Models::WirelessBlocklistUpdateParams
68
- def update(params = {})
68
+ def update(id, params = {})
69
69
  parsed, options = Telnyx::WirelessBlocklistUpdateParams.dump_request(params)
70
70
  @client.request(
71
71
  method: :patch,
72
- path: "wireless_blocklists",
72
+ path: ["wireless_blocklists/%1$s", id],
73
73
  body: parsed,
74
74
  model: Telnyx::Models::WirelessBlocklistUpdateResponse,
75
75
  options: options
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Telnyx
4
- VERSION = "5.68.2"
4
+ VERSION = "5.70.0"
5
5
  end
data/lib/telnyx.rb CHANGED
@@ -365,6 +365,8 @@ require_relative "telnyx/models/ai/missions/tool_update_tool_params"
365
365
  require_relative "telnyx/models/ai/missions/tool_update_tool_response"
366
366
  require_relative "telnyx/models/ai/mission_update_mission_params"
367
367
  require_relative "telnyx/models/ai/mission_update_mission_response"
368
+ require_relative "telnyx/models/ai/observability"
369
+ require_relative "telnyx/models/ai/observability_req"
368
370
  require_relative "telnyx/models/ai/openai/embedding_create_embeddings_params"
369
371
  require_relative "telnyx/models/ai/openai/embedding_create_embeddings_response"
370
372
  require_relative "telnyx/models/ai/openai/embedding_list_embedding_models_params"
@@ -838,17 +840,17 @@ require_relative "telnyx/models/enterprise_public"
838
840
  require_relative "telnyx/models/enterprise_retrieve_params"
839
841
  require_relative "telnyx/models/enterprise_retrieve_response"
840
842
  require_relative "telnyx/models/enterprises/enterprise_reputation_public"
841
- require_relative "telnyx/models/enterprises/reputation/number_create_params"
842
- require_relative "telnyx/models/enterprises/reputation/number_create_response"
843
- require_relative "telnyx/models/enterprises/reputation/number_delete_params"
843
+ require_relative "telnyx/models/enterprises/reputation/number_associate_params"
844
+ require_relative "telnyx/models/enterprises/reputation/number_associate_response"
845
+ require_relative "telnyx/models/enterprises/reputation/number_disassociate_params"
844
846
  require_relative "telnyx/models/enterprises/reputation/number_list_params"
845
847
  require_relative "telnyx/models/enterprises/reputation/number_retrieve_params"
846
848
  require_relative "telnyx/models/enterprises/reputation/number_retrieve_response"
847
- require_relative "telnyx/models/enterprises/reputation_create_params"
848
- require_relative "telnyx/models/enterprises/reputation_create_response"
849
- require_relative "telnyx/models/enterprises/reputation_delete_all_params"
850
- require_relative "telnyx/models/enterprises/reputation_list_params"
851
- require_relative "telnyx/models/enterprises/reputation_list_response"
849
+ require_relative "telnyx/models/enterprises/reputation_disable_params"
850
+ require_relative "telnyx/models/enterprises/reputation_enable_params"
851
+ require_relative "telnyx/models/enterprises/reputation_enable_response"
852
+ require_relative "telnyx/models/enterprises/reputation_retrieve_params"
853
+ require_relative "telnyx/models/enterprises/reputation_retrieve_response"
852
854
  require_relative "telnyx/models/enterprises/reputation_update_frequency_params"
853
855
  require_relative "telnyx/models/enterprises/reputation_update_frequency_response"
854
856
  require_relative "telnyx/models/enterprise_update_params"
@@ -1751,6 +1753,15 @@ require_relative "telnyx/models/private_wireless_gateway_list_params"
1751
1753
  require_relative "telnyx/models/private_wireless_gateway_retrieve_params"
1752
1754
  require_relative "telnyx/models/private_wireless_gateway_retrieve_response"
1753
1755
  require_relative "telnyx/models/private_wireless_gateway_status"
1756
+ require_relative "telnyx/models/pronunciation_dict_create_params"
1757
+ require_relative "telnyx/models/pronunciation_dict_create_response"
1758
+ require_relative "telnyx/models/pronunciation_dict_delete_params"
1759
+ require_relative "telnyx/models/pronunciation_dict_list_params"
1760
+ require_relative "telnyx/models/pronunciation_dict_list_response"
1761
+ require_relative "telnyx/models/pronunciation_dict_retrieve_params"
1762
+ require_relative "telnyx/models/pronunciation_dict_retrieve_response"
1763
+ require_relative "telnyx/models/pronunciation_dict_update_params"
1764
+ require_relative "telnyx/models/pronunciation_dict_update_response"
1754
1765
  require_relative "telnyx/models/public_internet_gateway_create_params"
1755
1766
  require_relative "telnyx/models/public_internet_gateway_create_response"
1756
1767
  require_relative "telnyx/models/public_internet_gateway_delete_params"
@@ -2145,6 +2156,8 @@ require_relative "telnyx/models/texml_application_retrieve_params"
2145
2156
  require_relative "telnyx/models/texml_application_retrieve_response"
2146
2157
  require_relative "telnyx/models/texml_application_update_params"
2147
2158
  require_relative "telnyx/models/texml_application_update_response"
2159
+ require_relative "telnyx/models/texml_initiate_ai_call_params"
2160
+ require_relative "telnyx/models/texml_initiate_ai_call_response"
2148
2161
  require_relative "telnyx/models/texml_secrets_params"
2149
2162
  require_relative "telnyx/models/texml_secrets_response"
2150
2163
  require_relative "telnyx/models/text_to_speech_generate_params"
@@ -2198,6 +2211,7 @@ require_relative "telnyx/models/verifications/verify_meta"
2198
2211
  require_relative "telnyx/models/verification_trigger_call_params"
2199
2212
  require_relative "telnyx/models/verification_trigger_flashcall_params"
2200
2213
  require_relative "telnyx/models/verification_trigger_sms_params"
2214
+ require_relative "telnyx/models/verification_trigger_whatsapp_verification_params"
2201
2215
  require_relative "telnyx/models/verified_number"
2202
2216
  require_relative "telnyx/models/verified_number_create_params"
2203
2217
  require_relative "telnyx/models/verified_number_create_response"
@@ -2577,6 +2591,7 @@ require_relative "telnyx/resources/portouts/events"
2577
2591
  require_relative "telnyx/resources/portouts/reports"
2578
2592
  require_relative "telnyx/resources/portouts/supporting_documents"
2579
2593
  require_relative "telnyx/resources/private_wireless_gateways"
2594
+ require_relative "telnyx/resources/pronunciation_dicts"
2580
2595
  require_relative "telnyx/resources/public_internet_gateways"
2581
2596
  require_relative "telnyx/resources/queues"
2582
2597
  require_relative "telnyx/resources/queues/calls"
@@ -648,6 +648,12 @@ module Telnyx
648
648
  sig { returns(Telnyx::Resources::TermsOfService) }
649
649
  attr_reader :terms_of_service
650
650
 
651
+ # Manage pronunciation dictionaries for text-to-speech synthesis. Dictionaries
652
+ # contain alias items (text replacement) and phoneme items (IPA pronunciation
653
+ # notation) that control how specific words are spoken.
654
+ sig { returns(Telnyx::Resources::PronunciationDicts) }
655
+ attr_reader :pronunciation_dicts
656
+
651
657
  # @api private
652
658
  sig { override.returns(T::Hash[String, String]) }
653
659
  private def auth_headers
@@ -148,12 +148,20 @@ module Telnyx
148
148
  end
149
149
  end
150
150
 
151
+ # https://www.rfc-editor.org/rfc/rfc3986.html#section-3.3
152
+ RFC_3986_NOT_PCHARS = T.let(/[^A-Za-z0-9\-._~!$&'()*+,;=:@]+/, Regexp)
153
+
151
154
  class << self
152
155
  # @api private
153
156
  sig { params(uri: URI::Generic).returns(String) }
154
157
  def uri_origin(uri)
155
158
  end
156
159
 
160
+ # @api private
161
+ sig { params(path: T.any(String, Integer)).returns(String) }
162
+ def encode_path(path)
163
+ end
164
+
157
165
  # @api private
158
166
  sig { params(path: T.any(String, T::Array[String])).returns(String) }
159
167
  def interpolate_path(path)
@@ -100,6 +100,16 @@ module Telnyx
100
100
  end
101
101
  attr_writer :messaging_settings
102
102
 
103
+ sig { returns(T.nilable(Telnyx::AI::ObservabilityReq)) }
104
+ attr_reader :observability_settings
105
+
106
+ sig do
107
+ params(
108
+ observability_settings: Telnyx::AI::ObservabilityReq::OrHash
109
+ ).void
110
+ end
111
+ attr_writer :observability_settings
112
+
103
113
  sig { returns(T.nilable(Telnyx::AI::PrivacySettings)) }
104
114
  attr_reader :privacy_settings
105
115
 
@@ -201,6 +211,7 @@ module Telnyx
201
211
  insight_settings: Telnyx::AI::InsightSettings::OrHash,
202
212
  llm_api_key_ref: String,
203
213
  messaging_settings: Telnyx::AI::MessagingSettings::OrHash,
214
+ observability_settings: Telnyx::AI::ObservabilityReq::OrHash,
204
215
  privacy_settings: Telnyx::AI::PrivacySettings::OrHash,
205
216
  telephony_settings: Telnyx::AI::TelephonySettings::OrHash,
206
217
  tool_ids: T::Array[String],
@@ -258,6 +269,7 @@ module Telnyx
258
269
  # work with this integration.
259
270
  llm_api_key_ref: nil,
260
271
  messaging_settings: nil,
272
+ observability_settings: nil,
261
273
  privacy_settings: nil,
262
274
  telephony_settings: nil,
263
275
  tool_ids: nil,
@@ -286,6 +298,7 @@ module Telnyx
286
298
  insight_settings: Telnyx::AI::InsightSettings,
287
299
  llm_api_key_ref: String,
288
300
  messaging_settings: Telnyx::AI::MessagingSettings,
301
+ observability_settings: Telnyx::AI::ObservabilityReq,
289
302
  privacy_settings: Telnyx::AI::PrivacySettings,
290
303
  telephony_settings: Telnyx::AI::TelephonySettings,
291
304
  tool_ids: T::Array[String],
@@ -1769,18 +1769,28 @@ module Telnyx
1769
1769
  )
1770
1770
  end
1771
1771
 
1772
- sig { returns(T::Hash[Symbol, T.anything]) }
1773
- attr_accessor :send_message
1772
+ sig { returns(Telnyx::AI::AssistantTool::SendMessage::SendMessage) }
1773
+ attr_reader :send_message
1774
+
1775
+ sig do
1776
+ params(
1777
+ send_message:
1778
+ Telnyx::AI::AssistantTool::SendMessage::SendMessage::OrHash
1779
+ ).void
1780
+ end
1781
+ attr_writer :send_message
1774
1782
 
1775
1783
  sig { returns(Symbol) }
1776
1784
  attr_accessor :type
1777
1785
 
1778
1786
  # The send_message tool allows the assistant to send SMS or MMS messages to the
1779
1787
  # end user. The 'to' and 'from' addresses are automatically determined from the
1780
- # conversation context, and the message text is generated by the assistant.
1788
+ # conversation context, and the message text is generated by the assistant unless
1789
+ # a message_template is provided for runtime variable substitution.
1781
1790
  sig do
1782
1791
  params(
1783
- send_message: T::Hash[Symbol, T.anything],
1792
+ send_message:
1793
+ Telnyx::AI::AssistantTool::SendMessage::SendMessage::OrHash,
1784
1794
  type: Symbol
1785
1795
  ).returns(T.attached_class)
1786
1796
  end
@@ -1789,11 +1799,52 @@ module Telnyx
1789
1799
 
1790
1800
  sig do
1791
1801
  override.returns(
1792
- { send_message: T::Hash[Symbol, T.anything], type: Symbol }
1802
+ {
1803
+ send_message:
1804
+ Telnyx::AI::AssistantTool::SendMessage::SendMessage,
1805
+ type: Symbol
1806
+ }
1793
1807
  )
1794
1808
  end
1795
1809
  def to_hash
1796
1810
  end
1811
+
1812
+ class SendMessage < Telnyx::Internal::Type::BaseModel
1813
+ OrHash =
1814
+ T.type_alias do
1815
+ T.any(
1816
+ Telnyx::AI::AssistantTool::SendMessage::SendMessage,
1817
+ Telnyx::Internal::AnyHash
1818
+ )
1819
+ end
1820
+
1821
+ # Optional message template with dynamic variable support using mustache syntax
1822
+ # (e.g., {{variable_name}}). When set, the assistant will use this template for
1823
+ # the SMS body instead of generating one. Dynamic variables like
1824
+ # {{telnyx_end_user_target}}, {{telnyx_agent_target}}, and custom webhook-provided
1825
+ # variables will be resolved at runtime.
1826
+ sig { returns(T.nilable(String)) }
1827
+ attr_accessor :message_template
1828
+
1829
+ sig do
1830
+ params(message_template: T.nilable(String)).returns(
1831
+ T.attached_class
1832
+ )
1833
+ end
1834
+ def self.new(
1835
+ # Optional message template with dynamic variable support using mustache syntax
1836
+ # (e.g., {{variable_name}}). When set, the assistant will use this template for
1837
+ # the SMS body instead of generating one. Dynamic variables like
1838
+ # {{telnyx_end_user_target}}, {{telnyx_agent_target}}, and custom webhook-provided
1839
+ # variables will be resolved at runtime.
1840
+ message_template: nil
1841
+ )
1842
+ end
1843
+
1844
+ sig { override.returns({ message_template: T.nilable(String) }) }
1845
+ def to_hash
1846
+ end
1847
+ end
1797
1848
  end
1798
1849
 
1799
1850
  class SkipTurn < Telnyx::Internal::Type::BaseModel
@@ -112,6 +112,16 @@ module Telnyx
112
112
  sig { params(name: String).void }
113
113
  attr_writer :name
114
114
 
115
+ sig { returns(T.nilable(Telnyx::AI::ObservabilityReq)) }
116
+ attr_reader :observability_settings
117
+
118
+ sig do
119
+ params(
120
+ observability_settings: Telnyx::AI::ObservabilityReq::OrHash
121
+ ).void
122
+ end
123
+ attr_writer :observability_settings
124
+
115
125
  sig { returns(T.nilable(Telnyx::AI::PrivacySettings)) }
116
126
  attr_reader :privacy_settings
117
127
 
@@ -222,6 +232,7 @@ module Telnyx
222
232
  messaging_settings: Telnyx::AI::MessagingSettings::OrHash,
223
233
  model: String,
224
234
  name: String,
235
+ observability_settings: Telnyx::AI::ObservabilityReq::OrHash,
225
236
  privacy_settings: Telnyx::AI::PrivacySettings::OrHash,
226
237
  promote_to_main: T::Boolean,
227
238
  telephony_settings: Telnyx::AI::TelephonySettings::OrHash,
@@ -281,6 +292,7 @@ module Telnyx
281
292
  # to see all of your available models,
282
293
  model: nil,
283
294
  name: nil,
295
+ observability_settings: nil,
284
296
  privacy_settings: nil,
285
297
  # Indicates whether the assistant should be promoted to the main version. Defaults
286
298
  # to true.
@@ -313,6 +325,7 @@ module Telnyx
313
325
  messaging_settings: Telnyx::AI::MessagingSettings,
314
326
  model: String,
315
327
  name: String,
328
+ observability_settings: Telnyx::AI::ObservabilityReq,
316
329
  privacy_settings: Telnyx::AI::PrivacySettings,
317
330
  promote_to_main: T::Boolean,
318
331
  telephony_settings: Telnyx::AI::TelephonySettings,
@@ -114,6 +114,16 @@ module Telnyx
114
114
  sig { params(name: String).void }
115
115
  attr_writer :name
116
116
 
117
+ sig { returns(T.nilable(Telnyx::AI::ObservabilityReq)) }
118
+ attr_reader :observability_settings
119
+
120
+ sig do
121
+ params(
122
+ observability_settings: Telnyx::AI::ObservabilityReq::OrHash
123
+ ).void
124
+ end
125
+ attr_writer :observability_settings
126
+
117
127
  sig { returns(T.nilable(Telnyx::AI::PrivacySettings)) }
118
128
  attr_reader :privacy_settings
119
129
 
@@ -221,6 +231,7 @@ module Telnyx
221
231
  messaging_settings: Telnyx::AI::MessagingSettings::OrHash,
222
232
  model: String,
223
233
  name: String,
234
+ observability_settings: Telnyx::AI::ObservabilityReq::OrHash,
224
235
  privacy_settings: Telnyx::AI::PrivacySettings::OrHash,
225
236
  telephony_settings: Telnyx::AI::TelephonySettings::OrHash,
226
237
  tool_ids: T::Array[String],
@@ -277,6 +288,7 @@ module Telnyx
277
288
  # to see all of your available models,
278
289
  model: nil,
279
290
  name: nil,
291
+ observability_settings: nil,
280
292
  privacy_settings: nil,
281
293
  telephony_settings: nil,
282
294
  tool_ids: nil,
@@ -305,6 +317,7 @@ module Telnyx
305
317
  messaging_settings: Telnyx::AI::MessagingSettings,
306
318
  model: String,
307
319
  name: String,
320
+ observability_settings: Telnyx::AI::ObservabilityReq,
308
321
  privacy_settings: Telnyx::AI::PrivacySettings,
309
322
  telephony_settings: Telnyx::AI::TelephonySettings,
310
323
  tool_ids: T::Array[String],