telnyx 5.57.0 → 5.59.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 +24 -0
- data/README.md +1 -1
- data/lib/telnyx/client.rb +8 -13
- data/lib/telnyx/models/ai/assistants/{tag_remove_params.rb → tag_create_params.rb} +2 -2
- data/lib/telnyx/models/ai/assistants/{tag_remove_response.rb → tag_create_response.rb} +2 -2
- data/lib/telnyx/models/ai/assistants/{tag_add_params.rb → tag_delete_params.rb} +2 -2
- data/lib/telnyx/models/ai/assistants/{tag_add_response.rb → tag_delete_response.rb} +2 -2
- data/lib/telnyx/models/porting/loa_configuration_preview_0_params.rb +143 -0
- data/lib/telnyx/models/stream_client_event.rb +42 -0
- data/lib/telnyx/models/stream_server_event.rb +200 -0
- data/lib/telnyx/models/text_to_speech_generate_params.rb +56 -21
- data/lib/telnyx/models/text_to_speech_list_voices_params.rb +0 -1
- data/lib/telnyx/models/text_to_speech_stream_params.rb +1 -99
- data/lib/telnyx/models/traffic_policy_profile_create_params.rb +76 -0
- data/lib/telnyx/models/traffic_policy_profile_create_response.rb +107 -0
- data/lib/telnyx/models/{whatsapp_message_template_delete_params.rb → traffic_policy_profile_delete_params.rb} +2 -2
- data/lib/telnyx/models/traffic_policy_profile_delete_response.rb +28 -0
- data/lib/telnyx/models/traffic_policy_profile_list_params.rb +84 -0
- data/lib/telnyx/models/traffic_policy_profile_list_response.rb +96 -0
- data/lib/telnyx/models/traffic_policy_profile_list_services_params.rb +46 -0
- data/lib/telnyx/models/traffic_policy_profile_list_services_response.rb +42 -0
- data/lib/telnyx/models/{whatsapp_message_template_retrieve_params.rb → traffic_policy_profile_retrieve_params.rb} +2 -2
- data/lib/telnyx/models/traffic_policy_profile_retrieve_response.rb +107 -0
- data/lib/telnyx/models/traffic_policy_profile_update_params.rb +84 -0
- data/lib/telnyx/models/traffic_policy_profile_update_response.rb +107 -0
- data/lib/telnyx/models/{voice_clone_create_params.rb → voice_clone_create_from_design_params.rb} +5 -5
- data/lib/telnyx/models/voice_clone_create_from_design_response.rb +137 -0
- data/lib/telnyx/models/voice_clone_create_from_upload_response.rb +121 -3
- data/lib/telnyx/models/{voice_clone_data.rb → voice_clone_list_response.rb} +10 -10
- data/lib/telnyx/models/voice_clone_update_response.rb +119 -3
- data/lib/telnyx/models/voice_design_create_response.rb +101 -3
- data/lib/telnyx/models/voice_design_retrieve_response.rb +101 -3
- data/lib/telnyx/models/{voice_design_rename_params.rb → voice_design_update_params.rb} +2 -2
- data/lib/telnyx/models/{voice_design_rename_response.rb → voice_design_update_response.rb} +10 -10
- data/lib/telnyx/models/whatsapp/business_accounts/{phone_number_initialize_verification_params.rb → phone_number_create_verification_params.rb} +5 -5
- data/lib/telnyx/models/whatsapp/{template_create_params.rb → message_template_create_params.rb} +5 -5
- data/lib/telnyx/models/whatsapp/{template_create_response.rb → message_template_create_response.rb} +2 -2
- data/lib/telnyx/models/whatsapp/message_template_delete_params.rb +22 -0
- data/lib/telnyx/models/whatsapp/{template_list_params.rb → message_template_list_params.rb} +5 -5
- data/lib/telnyx/models/whatsapp/message_template_retrieve_params.rb +22 -0
- data/lib/telnyx/models/whatsapp/message_template_retrieve_response.rb +18 -0
- data/lib/telnyx/models/whatsapp/message_template_update_params.rb +46 -0
- data/lib/telnyx/models/whatsapp/message_template_update_response.rb +18 -0
- data/lib/telnyx/models/whatsapp/phone_numbers/profile/photo_upload_response.rb +99 -3
- data/lib/telnyx/models/whatsapp/phone_numbers/profile_retrieve_response.rb +99 -3
- data/lib/telnyx/models/whatsapp/phone_numbers/profile_update_response.rb +99 -3
- data/lib/telnyx/models/x402/{credit_account_create_quote_params.rb → credit_account_create_payment_quote_params.rb} +2 -2
- data/lib/telnyx/models/x402/{credit_account_create_quote_response.rb → credit_account_create_payment_quote_response.rb} +33 -32
- data/lib/telnyx/models/x402/{credit_account_settle_params.rb → credit_account_settle_payment_params.rb} +10 -10
- data/lib/telnyx/models/x402/{credit_account_settle_response.rb → credit_account_settle_payment_response.rb} +15 -14
- data/lib/telnyx/models.rb +16 -16
- data/lib/telnyx/resources/ai/assistants/tags.rb +28 -28
- data/lib/telnyx/resources/porting/loa_configurations.rb +32 -0
- data/lib/telnyx/resources/text_to_speech.rb +10 -65
- data/lib/telnyx/resources/traffic_policy_profiles.rb +194 -0
- data/lib/telnyx/resources/voice_clones.rb +31 -31
- data/lib/telnyx/resources/voice_designs.rb +24 -24
- data/lib/telnyx/resources/whatsapp/business_accounts/phone_numbers.rb +5 -5
- data/lib/telnyx/resources/whatsapp/message_templates.rb +149 -0
- data/lib/telnyx/resources/whatsapp/phone_numbers/profile/models.rb +20 -0
- data/lib/telnyx/resources/whatsapp/phone_numbers/profile.rb +4 -0
- data/lib/telnyx/resources/whatsapp.rb +3 -3
- data/lib/telnyx/resources/x402/credit_account.rb +16 -16
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +40 -28
- data/rbi/telnyx/client.rbi +6 -10
- data/rbi/telnyx/models/ai/assistants/{tag_remove_params.rbi → tag_create_params.rbi} +2 -2
- data/rbi/telnyx/models/ai/assistants/{tag_remove_response.rbi → tag_create_response.rbi} +2 -2
- data/rbi/telnyx/models/ai/assistants/{tag_add_params.rbi → tag_delete_params.rbi} +2 -2
- data/rbi/telnyx/models/ai/assistants/{tag_add_response.rbi → tag_delete_response.rbi} +2 -2
- data/rbi/telnyx/models/porting/loa_configuration_preview_0_params.rbi +250 -0
- data/rbi/telnyx/models/stream_client_event.rbi +70 -0
- data/rbi/telnyx/models/stream_server_event.rbi +411 -0
- data/rbi/telnyx/models/text_to_speech_generate_params.rbi +122 -32
- data/rbi/telnyx/models/text_to_speech_list_voices_params.rbi +0 -5
- data/rbi/telnyx/models/text_to_speech_stream_params.rbi +4 -213
- data/rbi/telnyx/models/traffic_policy_profile_create_params.rbi +170 -0
- data/rbi/telnyx/models/traffic_policy_profile_create_response.rbi +219 -0
- data/rbi/telnyx/models/{whatsapp_message_template_delete_params.rbi → traffic_policy_profile_delete_params.rbi} +2 -2
- data/rbi/telnyx/models/traffic_policy_profile_delete_response.rbi +73 -0
- data/rbi/telnyx/models/traffic_policy_profile_list_params.rbi +194 -0
- data/rbi/telnyx/models/traffic_policy_profile_list_response.rbi +178 -0
- data/rbi/telnyx/models/traffic_policy_profile_list_services_params.rbi +82 -0
- data/rbi/telnyx/models/traffic_policy_profile_list_services_response.rbi +69 -0
- data/rbi/telnyx/models/{whatsapp_message_template_retrieve_params.rbi → traffic_policy_profile_retrieve_params.rbi} +2 -2
- data/rbi/telnyx/models/traffic_policy_profile_retrieve_response.rbi +221 -0
- data/rbi/telnyx/models/traffic_policy_profile_update_params.rbi +188 -0
- data/rbi/telnyx/models/traffic_policy_profile_update_response.rbi +219 -0
- data/rbi/telnyx/models/{voice_clone_create_params.rbi → voice_clone_create_from_design_params.rbi} +28 -10
- data/rbi/telnyx/models/voice_clone_create_from_design_response.rbi +270 -0
- data/rbi/telnyx/models/voice_clone_create_from_upload_response.rbi +238 -4
- data/rbi/telnyx/models/{voice_clone_data.rbi → voice_clone_list_response.rbi} +62 -17
- data/rbi/telnyx/models/voice_clone_update_response.rbi +234 -4
- data/rbi/telnyx/models/voice_design_create_response.rbi +197 -4
- data/rbi/telnyx/models/voice_design_retrieve_response.rbi +197 -4
- data/rbi/telnyx/models/{voice_design_rename_params.rbi → voice_design_update_params.rbi} +2 -2
- data/rbi/telnyx/models/{voice_design_rename_response.rbi → voice_design_update_response.rbi} +14 -14
- data/rbi/telnyx/models/whatsapp/business_accounts/{phone_number_initialize_verification_params.rbi → phone_number_create_verification_params.rbi} +10 -10
- data/rbi/telnyx/models/whatsapp/{template_create_params.rbi → message_template_create_params.rbi} +15 -10
- data/rbi/telnyx/models/whatsapp/{template_create_response.rbi → message_template_create_response.rbi} +2 -2
- data/rbi/telnyx/models/whatsapp/message_template_delete_params.rbi +40 -0
- data/rbi/telnyx/models/whatsapp/{template_list_params.rbi → message_template_list_params.rbi} +11 -11
- data/rbi/telnyx/models/whatsapp/message_template_retrieve_params.rbi +40 -0
- data/rbi/telnyx/models/whatsapp/message_template_retrieve_response.rbi +35 -0
- data/rbi/telnyx/models/whatsapp/message_template_update_params.rbi +111 -0
- data/rbi/telnyx/models/whatsapp/message_template_update_response.rbi +35 -0
- data/rbi/telnyx/models/whatsapp/phone_numbers/profile/photo_upload_response.rbi +155 -4
- data/rbi/telnyx/models/whatsapp/phone_numbers/profile_retrieve_response.rbi +157 -4
- data/rbi/telnyx/models/whatsapp/phone_numbers/profile_update_response.rbi +157 -4
- data/rbi/telnyx/models/x402/{credit_account_create_quote_params.rbi → credit_account_create_payment_quote_params.rbi} +2 -2
- data/rbi/telnyx/models/x402/{credit_account_create_quote_response.rbi → credit_account_create_payment_quote_response.rbi} +43 -42
- data/rbi/telnyx/models/x402/{credit_account_settle_params.rbi → credit_account_settle_payment_params.rbi} +14 -14
- data/rbi/telnyx/models/x402/{credit_account_settle_response.rbi → credit_account_settle_payment_response.rbi} +26 -21
- data/rbi/telnyx/models.rbi +23 -19
- data/rbi/telnyx/resources/ai/assistants/tags.rbi +13 -13
- data/rbi/telnyx/resources/porting/loa_configurations.rbi +29 -0
- data/rbi/telnyx/resources/text_to_speech.rbi +15 -70
- data/rbi/telnyx/resources/traffic_policy_profiles.rbi +161 -0
- data/rbi/telnyx/resources/voice_clones.rbi +27 -25
- data/rbi/telnyx/resources/voice_designs.rbi +17 -17
- data/rbi/telnyx/resources/whatsapp/business_accounts/phone_numbers.rbi +2 -2
- data/rbi/telnyx/resources/whatsapp/{templates.rbi → message_templates.rbi} +51 -4
- data/rbi/telnyx/resources/whatsapp/phone_numbers/profile/models.rbi +18 -0
- data/rbi/telnyx/resources/whatsapp/phone_numbers/profile.rbi +5 -0
- data/rbi/telnyx/resources/whatsapp.rbi +2 -2
- data/rbi/telnyx/resources/x402/credit_account.rbi +10 -8
- data/sig/telnyx/client.rbs +3 -5
- data/sig/telnyx/models/ai/assistants/{tag_remove_params.rbs → tag_create_params.rbs} +2 -2
- data/sig/telnyx/models/ai/assistants/{tag_remove_response.rbs → tag_create_response.rbs} +2 -2
- data/sig/telnyx/models/ai/assistants/{tag_add_params.rbs → tag_delete_params.rbs} +2 -2
- data/sig/telnyx/models/ai/assistants/{tag_add_response.rbs → tag_delete_response.rbs} +2 -2
- data/sig/telnyx/models/porting/loa_configuration_preview_0_params.rbs +114 -0
- data/sig/telnyx/models/stream_client_event.rbs +30 -0
- data/sig/telnyx/models/stream_server_event.rbs +180 -0
- data/sig/telnyx/models/text_to_speech_generate_params.rbs +37 -19
- data/sig/telnyx/models/text_to_speech_list_voices_params.rbs +1 -9
- data/sig/telnyx/models/text_to_speech_stream_params.rbs +3 -100
- data/sig/telnyx/models/traffic_policy_profile_create_params.rbs +78 -0
- data/sig/telnyx/models/traffic_policy_profile_create_response.rbs +109 -0
- data/sig/telnyx/models/{whatsapp_message_template_delete_params.rbs → traffic_policy_profile_delete_params.rbs} +2 -2
- data/sig/telnyx/models/traffic_policy_profile_delete_response.rbs +34 -0
- data/sig/telnyx/models/traffic_policy_profile_list_params.rbs +85 -0
- data/sig/telnyx/models/traffic_policy_profile_list_response.rbs +90 -0
- data/sig/telnyx/models/traffic_policy_profile_list_services_params.rbs +49 -0
- data/sig/telnyx/models/traffic_policy_profile_list_services_response.rbs +38 -0
- data/sig/telnyx/models/{whatsapp_message_template_retrieve_params.rbs → traffic_policy_profile_retrieve_params.rbs} +2 -2
- data/sig/telnyx/models/traffic_policy_profile_retrieve_response.rbs +109 -0
- data/sig/telnyx/models/traffic_policy_profile_update_params.rbs +84 -0
- data/sig/telnyx/models/traffic_policy_profile_update_response.rbs +109 -0
- data/sig/telnyx/models/{voice_clone_create_params.rbs → voice_clone_create_from_design_params.rbs} +7 -7
- data/sig/telnyx/models/voice_clone_create_from_design_response.rbs +118 -0
- data/sig/telnyx/models/voice_clone_create_from_upload_response.rbs +107 -5
- data/sig/telnyx/models/{voice_clone_data.rbs → voice_clone_list_response.rbs} +14 -14
- data/sig/telnyx/models/voice_clone_update_response.rbs +106 -5
- data/sig/telnyx/models/voice_design_create_response.rbs +104 -5
- data/sig/telnyx/models/voice_design_retrieve_response.rbs +106 -5
- data/sig/telnyx/models/{voice_design_rename_params.rbs → voice_design_update_params.rbs} +2 -2
- data/sig/telnyx/models/{voice_design_rename_response.rbs → voice_design_update_response.rbs} +15 -15
- data/sig/telnyx/models/whatsapp/business_accounts/{phone_number_initialize_verification_params.rbs → phone_number_create_verification_params.rbs} +9 -9
- data/sig/telnyx/models/whatsapp/{template_create_params.rbs → message_template_create_params.rbs} +7 -7
- data/sig/telnyx/models/whatsapp/{template_create_response.rbs → message_template_create_response.rbs} +3 -2
- data/sig/telnyx/models/whatsapp/message_template_delete_params.rbs +22 -0
- data/sig/telnyx/models/whatsapp/{template_list_params.rbs → message_template_list_params.rbs} +9 -9
- data/sig/telnyx/models/whatsapp/message_template_retrieve_params.rbs +22 -0
- data/sig/telnyx/models/whatsapp/message_template_retrieve_response.rbs +20 -0
- data/sig/telnyx/models/whatsapp/message_template_update_params.rbs +58 -0
- data/sig/telnyx/models/whatsapp/message_template_update_response.rbs +20 -0
- data/sig/telnyx/models/whatsapp/phone_numbers/profile/photo_upload_response.rbs +111 -6
- data/sig/telnyx/models/whatsapp/phone_numbers/profile_retrieve_response.rbs +111 -6
- data/sig/telnyx/models/whatsapp/phone_numbers/profile_update_response.rbs +111 -6
- data/sig/telnyx/models/x402/{credit_account_create_quote_params.rbs → credit_account_create_payment_quote_params.rbs} +2 -2
- data/sig/telnyx/models/x402/{credit_account_create_quote_response.rbs → credit_account_create_payment_quote_response.rbs} +49 -47
- data/sig/telnyx/models/x402/credit_account_settle_payment_params.rbs +42 -0
- data/sig/telnyx/models/x402/{credit_account_settle_response.rbs → credit_account_settle_payment_response.rbs} +22 -22
- data/sig/telnyx/models.rbs +16 -16
- data/sig/telnyx/resources/ai/assistants/tags.rbs +8 -8
- data/sig/telnyx/resources/porting/loa_configurations.rbs +9 -0
- data/sig/telnyx/resources/text_to_speech.rbs +0 -12
- data/sig/telnyx/resources/traffic_policy_profiles.rbs +53 -0
- data/sig/telnyx/resources/voice_clones.rbs +9 -9
- data/sig/telnyx/resources/voice_designs.rbs +6 -6
- data/sig/telnyx/resources/whatsapp/business_accounts/phone_numbers.rbs +2 -2
- data/sig/telnyx/resources/whatsapp/message_templates.rbs +42 -0
- data/sig/telnyx/resources/whatsapp/phone_numbers/profile/models.rbs +13 -0
- data/sig/telnyx/resources/whatsapp/phone_numbers/profile.rbs +2 -0
- data/sig/telnyx/resources/whatsapp.rbs +1 -1
- data/sig/telnyx/resources/x402/credit_account.rbs +6 -6
- metadata +122 -86
- data/lib/telnyx/models/speech_to_text_transcribe_params.rb +0 -140
- data/lib/telnyx/models/voice_clone_create_response.rb +0 -19
- data/lib/telnyx/models/voice_design_data.rb +0 -102
- data/lib/telnyx/models/whatsapp/phone_numbers/whatsapp_profile_data.rb +0 -104
- data/lib/telnyx/models/whatsapp_message_template_retrieve_response.rb +0 -16
- data/lib/telnyx/models/whatsapp_message_template_update_params.rb +0 -44
- data/lib/telnyx/models/whatsapp_message_template_update_response.rb +0 -16
- data/lib/telnyx/resources/speech_to_text.rb +0 -71
- data/lib/telnyx/resources/whatsapp/templates.rb +0 -83
- data/lib/telnyx/resources/whatsapp_message_templates.rb +0 -81
- data/rbi/telnyx/models/speech_to_text_transcribe_params.rbi +0 -318
- data/rbi/telnyx/models/voice_clone_create_response.rbi +0 -36
- data/rbi/telnyx/models/voice_design_data.rbi +0 -167
- data/rbi/telnyx/models/whatsapp/phone_numbers/whatsapp_profile_data.rbi +0 -155
- data/rbi/telnyx/models/whatsapp_message_template_retrieve_response.rbi +0 -33
- data/rbi/telnyx/models/whatsapp_message_template_update_params.rbi +0 -106
- data/rbi/telnyx/models/whatsapp_message_template_update_response.rbi +0 -33
- data/rbi/telnyx/resources/speech_to_text.rbi +0 -71
- data/rbi/telnyx/resources/whatsapp_message_templates.rbi +0 -57
- data/sig/telnyx/models/speech_to_text_transcribe_params.rbs +0 -141
- data/sig/telnyx/models/voice_clone_create_response.rbs +0 -15
- data/sig/telnyx/models/voice_design_data.rbs +0 -97
- data/sig/telnyx/models/whatsapp/phone_numbers/whatsapp_profile_data.rbs +0 -110
- data/sig/telnyx/models/whatsapp_message_template_retrieve_response.rbs +0 -16
- data/sig/telnyx/models/whatsapp_message_template_update_params.rbs +0 -56
- data/sig/telnyx/models/whatsapp_message_template_update_response.rbs +0 -16
- data/sig/telnyx/models/x402/credit_account_settle_params.rbs +0 -42
- data/sig/telnyx/resources/speech_to_text.rbs +0 -20
- data/sig/telnyx/resources/whatsapp/templates.rbs +0 -28
- data/sig/telnyx/resources/whatsapp_message_templates.rbs +0 -21
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ff2a9579527d16c495311572f44f61609005becc0eb8062bfa342bb97be43ba2
|
|
4
|
+
data.tar.gz: 8bd424965e38f9c82c70d083f59addc00b99fc85707b431f5628a4e38e12391c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f2775eb95017b5dc9ea81d5e7b69284e6f74ed2ddb342c5235f6b33c2218086406584586ec63b8ebffe6d748a0b3306f66b84333080795bc3d839b941f82b00d
|
|
7
|
+
data.tar.gz: ecdac5540274b2dd4acfbf37a09f9954d3f86417a115d950dcea0010dfcec163cfbde3417f71d4a81aa113d7be697f2de66d0d22bb9dc84deb151c81a9ede0c6
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.59.0 (2026-03-19)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v5.58.0...v5.59.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.58.0...v5.59.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** manual updates ([8105361](https://github.com/team-telnyx/telnyx-ruby/commit/81053613aee31cb01061ad1e55c4997d727ff9e8))
|
|
10
|
+
* **api:** manual updates ([bd1eab5](https://github.com/team-telnyx/telnyx-ruby/commit/bd1eab5de098d98d53fc00aefc35dbe825fcd825))
|
|
11
|
+
* TELAPPS-5668: Add call.cost webhook event documentation ([ad13577](https://github.com/team-telnyx/telnyx-ruby/commit/ad1357775aeffb088773216f099dc0ba7ac667e9))
|
|
12
|
+
* **wireless:** add traffic policy profiles endpoints to OpenAPI spec ([9d09743](https://github.com/team-telnyx/telnyx-ruby/commit/9d09743b1ddd22f8a9c296fc19636a0b07137554))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Documentation
|
|
16
|
+
|
|
17
|
+
* **tts:** Add Telnyx.Ultra model documentation ([fd748f2](https://github.com/team-telnyx/telnyx-ruby/commit/fd748f289da493776d1c1e35322abd2333e0b650))
|
|
18
|
+
|
|
19
|
+
## 5.58.0 (2026-03-18)
|
|
20
|
+
|
|
21
|
+
Full Changelog: [v5.57.0...v5.58.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.57.0...v5.58.0)
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
* **api:** manual updates ([75da4c3](https://github.com/team-telnyx/telnyx-ruby/commit/75da4c3c4172940b59f4bde26f7cf3f8e7530236))
|
|
26
|
+
|
|
3
27
|
## 5.57.0 (2026-03-18)
|
|
4
28
|
|
|
5
29
|
Full Changelog: [v5.56.0...v5.57.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.56.0...v5.57.0)
|
data/README.md
CHANGED
data/lib/telnyx/client.rb
CHANGED
|
@@ -620,12 +620,15 @@ module Telnyx
|
|
|
620
620
|
# @return [Telnyx::Resources::SessionAnalysis]
|
|
621
621
|
attr_reader :session_analysis
|
|
622
622
|
|
|
623
|
+
# Traffic Policy Profiles operations
|
|
624
|
+
# @return [Telnyx::Resources::TrafficPolicyProfiles]
|
|
625
|
+
attr_reader :traffic_policy_profiles
|
|
626
|
+
|
|
623
627
|
# @return [Telnyx::Resources::Whatsapp]
|
|
624
628
|
attr_reader :whatsapp
|
|
625
629
|
|
|
626
|
-
#
|
|
627
|
-
|
|
628
|
-
attr_reader :whatsapp_message_templates
|
|
630
|
+
# @return [Telnyx::Resources::X402]
|
|
631
|
+
attr_reader :x402
|
|
629
632
|
|
|
630
633
|
# Capture and manage voice identities as clones for use in text-to-speech
|
|
631
634
|
# synthesis.
|
|
@@ -636,13 +639,6 @@ module Telnyx
|
|
|
636
639
|
# @return [Telnyx::Resources::VoiceDesigns]
|
|
637
640
|
attr_reader :voice_designs
|
|
638
641
|
|
|
639
|
-
# @return [Telnyx::Resources::X402]
|
|
640
|
-
attr_reader :x402
|
|
641
|
-
|
|
642
|
-
# Speech to text command operations
|
|
643
|
-
# @return [Telnyx::Resources::SpeechToText]
|
|
644
|
-
attr_reader :speech_to_text
|
|
645
|
-
|
|
646
642
|
# @api private
|
|
647
643
|
#
|
|
648
644
|
# @return [Hash{String=>String}]
|
|
@@ -891,12 +887,11 @@ module Telnyx
|
|
|
891
887
|
@alphanumeric_sender_ids = Telnyx::Resources::AlphanumericSenderIDs.new(client: self)
|
|
892
888
|
@messaging_profile_metrics = Telnyx::Resources::MessagingProfileMetrics.new(client: self)
|
|
893
889
|
@session_analysis = Telnyx::Resources::SessionAnalysis.new(client: self)
|
|
890
|
+
@traffic_policy_profiles = Telnyx::Resources::TrafficPolicyProfiles.new(client: self)
|
|
894
891
|
@whatsapp = Telnyx::Resources::Whatsapp.new(client: self)
|
|
895
|
-
@
|
|
892
|
+
@x402 = Telnyx::Resources::X402.new(client: self)
|
|
896
893
|
@voice_clones = Telnyx::Resources::VoiceClones.new(client: self)
|
|
897
894
|
@voice_designs = Telnyx::Resources::VoiceDesigns.new(client: self)
|
|
898
|
-
@x402 = Telnyx::Resources::X402.new(client: self)
|
|
899
|
-
@speech_to_text = Telnyx::Resources::SpeechToText.new(client: self)
|
|
900
895
|
end
|
|
901
896
|
end
|
|
902
897
|
end
|
|
@@ -4,8 +4,8 @@ module Telnyx
|
|
|
4
4
|
module Models
|
|
5
5
|
module AI
|
|
6
6
|
module Assistants
|
|
7
|
-
# @see Telnyx::Resources::AI::Assistants::Tags#
|
|
8
|
-
class
|
|
7
|
+
# @see Telnyx::Resources::AI::Assistants::Tags#create
|
|
8
|
+
class TagCreateParams < Telnyx::Internal::Type::BaseModel
|
|
9
9
|
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
10
10
|
include Telnyx::Internal::Type::RequestParameters
|
|
11
11
|
|
|
@@ -4,8 +4,8 @@ module Telnyx
|
|
|
4
4
|
module Models
|
|
5
5
|
module AI
|
|
6
6
|
module Assistants
|
|
7
|
-
# @see Telnyx::Resources::AI::Assistants::Tags#
|
|
8
|
-
class
|
|
7
|
+
# @see Telnyx::Resources::AI::Assistants::Tags#create
|
|
8
|
+
class TagCreateResponse < Telnyx::Internal::Type::BaseModel
|
|
9
9
|
# @!attribute tags
|
|
10
10
|
#
|
|
11
11
|
# @return [Array<String>]
|
|
@@ -4,8 +4,8 @@ module Telnyx
|
|
|
4
4
|
module Models
|
|
5
5
|
module AI
|
|
6
6
|
module Assistants
|
|
7
|
-
# @see Telnyx::Resources::AI::Assistants::Tags#
|
|
8
|
-
class
|
|
7
|
+
# @see Telnyx::Resources::AI::Assistants::Tags#delete
|
|
8
|
+
class TagDeleteParams < Telnyx::Internal::Type::BaseModel
|
|
9
9
|
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
10
10
|
include Telnyx::Internal::Type::RequestParameters
|
|
11
11
|
|
|
@@ -4,8 +4,8 @@ module Telnyx
|
|
|
4
4
|
module Models
|
|
5
5
|
module AI
|
|
6
6
|
module Assistants
|
|
7
|
-
# @see Telnyx::Resources::AI::Assistants::Tags#
|
|
8
|
-
class
|
|
7
|
+
# @see Telnyx::Resources::AI::Assistants::Tags#delete
|
|
8
|
+
class TagDeleteResponse < Telnyx::Internal::Type::BaseModel
|
|
9
9
|
# @!attribute tags
|
|
10
10
|
#
|
|
11
11
|
# @return [Array<String>]
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Porting
|
|
6
|
+
# @see Telnyx::Resources::Porting::LoaConfigurations#preview_0
|
|
7
|
+
class LoaConfigurationPreview0Params < Telnyx::Internal::Type::BaseModel
|
|
8
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute address
|
|
12
|
+
# The address of the company.
|
|
13
|
+
#
|
|
14
|
+
# @return [Telnyx::Models::Porting::LoaConfigurationPreview0Params::Address]
|
|
15
|
+
required :address, -> { Telnyx::Porting::LoaConfigurationPreview0Params::Address }
|
|
16
|
+
|
|
17
|
+
# @!attribute company_name
|
|
18
|
+
# The name of the company
|
|
19
|
+
#
|
|
20
|
+
# @return [String]
|
|
21
|
+
required :company_name, String
|
|
22
|
+
|
|
23
|
+
# @!attribute contact
|
|
24
|
+
# The contact information of the company.
|
|
25
|
+
#
|
|
26
|
+
# @return [Telnyx::Models::Porting::LoaConfigurationPreview0Params::Contact]
|
|
27
|
+
required :contact, -> { Telnyx::Porting::LoaConfigurationPreview0Params::Contact }
|
|
28
|
+
|
|
29
|
+
# @!attribute logo
|
|
30
|
+
# The logo of the LOA configuration
|
|
31
|
+
#
|
|
32
|
+
# @return [Telnyx::Models::Porting::LoaConfigurationPreview0Params::Logo]
|
|
33
|
+
required :logo, -> { Telnyx::Porting::LoaConfigurationPreview0Params::Logo }
|
|
34
|
+
|
|
35
|
+
# @!attribute name
|
|
36
|
+
# The name of the LOA configuration
|
|
37
|
+
#
|
|
38
|
+
# @return [String]
|
|
39
|
+
required :name, String
|
|
40
|
+
|
|
41
|
+
# @!method initialize(address:, company_name:, contact:, logo:, name:, request_options: {})
|
|
42
|
+
# @param address [Telnyx::Models::Porting::LoaConfigurationPreview0Params::Address] The address of the company.
|
|
43
|
+
#
|
|
44
|
+
# @param company_name [String] The name of the company
|
|
45
|
+
#
|
|
46
|
+
# @param contact [Telnyx::Models::Porting::LoaConfigurationPreview0Params::Contact] The contact information of the company.
|
|
47
|
+
#
|
|
48
|
+
# @param logo [Telnyx::Models::Porting::LoaConfigurationPreview0Params::Logo] The logo of the LOA configuration
|
|
49
|
+
#
|
|
50
|
+
# @param name [String] The name of the LOA configuration
|
|
51
|
+
#
|
|
52
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
53
|
+
|
|
54
|
+
class Address < Telnyx::Internal::Type::BaseModel
|
|
55
|
+
# @!attribute city
|
|
56
|
+
# The locality of the company
|
|
57
|
+
#
|
|
58
|
+
# @return [String]
|
|
59
|
+
required :city, String
|
|
60
|
+
|
|
61
|
+
# @!attribute country_code
|
|
62
|
+
# The country code of the company
|
|
63
|
+
#
|
|
64
|
+
# @return [String]
|
|
65
|
+
required :country_code, String
|
|
66
|
+
|
|
67
|
+
# @!attribute state
|
|
68
|
+
# The administrative area of the company
|
|
69
|
+
#
|
|
70
|
+
# @return [String]
|
|
71
|
+
required :state, String
|
|
72
|
+
|
|
73
|
+
# @!attribute street_address
|
|
74
|
+
# The street address of the company
|
|
75
|
+
#
|
|
76
|
+
# @return [String]
|
|
77
|
+
required :street_address, String
|
|
78
|
+
|
|
79
|
+
# @!attribute zip_code
|
|
80
|
+
# The postal code of the company
|
|
81
|
+
#
|
|
82
|
+
# @return [String]
|
|
83
|
+
required :zip_code, String
|
|
84
|
+
|
|
85
|
+
# @!attribute extended_address
|
|
86
|
+
# The extended address of the company
|
|
87
|
+
#
|
|
88
|
+
# @return [String, nil]
|
|
89
|
+
optional :extended_address, String
|
|
90
|
+
|
|
91
|
+
# @!method initialize(city:, country_code:, state:, street_address:, zip_code:, extended_address: nil)
|
|
92
|
+
# The address of the company.
|
|
93
|
+
#
|
|
94
|
+
# @param city [String] The locality of the company
|
|
95
|
+
#
|
|
96
|
+
# @param country_code [String] The country code of the company
|
|
97
|
+
#
|
|
98
|
+
# @param state [String] The administrative area of the company
|
|
99
|
+
#
|
|
100
|
+
# @param street_address [String] The street address of the company
|
|
101
|
+
#
|
|
102
|
+
# @param zip_code [String] The postal code of the company
|
|
103
|
+
#
|
|
104
|
+
# @param extended_address [String] The extended address of the company
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
class Contact < Telnyx::Internal::Type::BaseModel
|
|
108
|
+
# @!attribute email
|
|
109
|
+
# The email address of the contact
|
|
110
|
+
#
|
|
111
|
+
# @return [String]
|
|
112
|
+
required :email, String
|
|
113
|
+
|
|
114
|
+
# @!attribute phone_number
|
|
115
|
+
# The phone number of the contact
|
|
116
|
+
#
|
|
117
|
+
# @return [String]
|
|
118
|
+
required :phone_number, String
|
|
119
|
+
|
|
120
|
+
# @!method initialize(email:, phone_number:)
|
|
121
|
+
# The contact information of the company.
|
|
122
|
+
#
|
|
123
|
+
# @param email [String] The email address of the contact
|
|
124
|
+
#
|
|
125
|
+
# @param phone_number [String] The phone number of the contact
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
class Logo < Telnyx::Internal::Type::BaseModel
|
|
129
|
+
# @!attribute document_id
|
|
130
|
+
# The document identification
|
|
131
|
+
#
|
|
132
|
+
# @return [String]
|
|
133
|
+
required :document_id, String
|
|
134
|
+
|
|
135
|
+
# @!method initialize(document_id:)
|
|
136
|
+
# The logo of the LOA configuration
|
|
137
|
+
#
|
|
138
|
+
# @param document_id [String] The document identification
|
|
139
|
+
end
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
end
|
|
143
|
+
end
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
class StreamClientEvent < Telnyx::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute text
|
|
7
|
+
# Text to convert to speech. Send `" "` (single space) as an initial handshake
|
|
8
|
+
# with optional `voice_settings`. Subsequent messages contain the actual text to
|
|
9
|
+
# synthesize.
|
|
10
|
+
#
|
|
11
|
+
# @return [String]
|
|
12
|
+
required :text, String
|
|
13
|
+
|
|
14
|
+
# @!attribute force
|
|
15
|
+
# When `true`, stops the current synthesis worker and starts a new one. Used to
|
|
16
|
+
# interrupt speech mid-stream and begin synthesizing new text.
|
|
17
|
+
#
|
|
18
|
+
# @return [Boolean, nil]
|
|
19
|
+
optional :force, Telnyx::Internal::Type::Boolean
|
|
20
|
+
|
|
21
|
+
# @!attribute voice_settings
|
|
22
|
+
# Provider-specific voice settings sent with the initial handshake. Contents vary
|
|
23
|
+
# by provider — e.g. `{"speed": 1.2}` for Minimax, `{"voice_speed": 1.5}` for
|
|
24
|
+
# Telnyx.
|
|
25
|
+
#
|
|
26
|
+
# @return [Hash{Symbol=>Object}, nil]
|
|
27
|
+
optional :voice_settings, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown]
|
|
28
|
+
|
|
29
|
+
# @!method initialize(text:, force: nil, voice_settings: nil)
|
|
30
|
+
# Some parameter documentations has been truncated, see
|
|
31
|
+
# {Telnyx::Models::StreamClientEvent} for more details.
|
|
32
|
+
#
|
|
33
|
+
# Client-to-server frame containing text to synthesize.
|
|
34
|
+
#
|
|
35
|
+
# @param text [String] Text to convert to speech. Send `" "` (single space) as an initial handshake wit
|
|
36
|
+
#
|
|
37
|
+
# @param force [Boolean] When `true`, stops the current synthesis worker and starts a new one. Used to in
|
|
38
|
+
#
|
|
39
|
+
# @param voice_settings [Hash{Symbol=>Object}] Provider-specific voice settings sent with the initial handshake. Contents vary
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
# Union of all server-to-client WebSocket events for TTS streaming.
|
|
6
|
+
module StreamServerEvent
|
|
7
|
+
extend Telnyx::Internal::Type::Union
|
|
8
|
+
|
|
9
|
+
discriminator :type
|
|
10
|
+
|
|
11
|
+
# Server-to-client frame containing a base64-encoded audio chunk.
|
|
12
|
+
variant :audio_chunk, -> { Telnyx::Models::StreamServerEvent::AudioChunk }
|
|
13
|
+
|
|
14
|
+
# Server-to-client frame indicating synthesis is complete for the current text.
|
|
15
|
+
variant :final, -> { Telnyx::Models::StreamServerEvent::FinalFrameEvent }
|
|
16
|
+
|
|
17
|
+
# Server-to-client frame indicating an error during synthesis. The connection is closed shortly after.
|
|
18
|
+
variant :error, -> { Telnyx::Models::StreamServerEvent::Error }
|
|
19
|
+
|
|
20
|
+
class AudioChunk < Telnyx::Internal::Type::BaseModel
|
|
21
|
+
# @!attribute audio
|
|
22
|
+
# Base64-encoded audio data. May be `null` for providers that use
|
|
23
|
+
# `drop_concatenated_audio` mode (Telnyx Natural/NaturalHD, Rime, Minimax, MurfAI,
|
|
24
|
+
# Resemble) — in that case only streamed chunks carry audio.
|
|
25
|
+
#
|
|
26
|
+
# @return [String, nil]
|
|
27
|
+
optional :audio, String, nil?: true
|
|
28
|
+
|
|
29
|
+
# @!attribute cached
|
|
30
|
+
# Whether this audio was served from cache.
|
|
31
|
+
#
|
|
32
|
+
# @return [Boolean, nil]
|
|
33
|
+
optional :cached, Telnyx::Internal::Type::Boolean
|
|
34
|
+
|
|
35
|
+
# @!attribute is_final
|
|
36
|
+
# Always `false` for audio chunk frames.
|
|
37
|
+
#
|
|
38
|
+
# @return [Boolean, nil]
|
|
39
|
+
optional :is_final, Telnyx::Internal::Type::Boolean, api_name: :isFinal
|
|
40
|
+
|
|
41
|
+
# @!attribute text
|
|
42
|
+
# The text segment that this audio chunk corresponds to.
|
|
43
|
+
#
|
|
44
|
+
# @return [String, nil]
|
|
45
|
+
optional :text, String, nil?: true
|
|
46
|
+
|
|
47
|
+
# @!attribute time_to_first_audio_frame_ms
|
|
48
|
+
# Milliseconds from the start-of-speech request to the first audio frame. Only
|
|
49
|
+
# present on the first audio chunk of a synthesis request.
|
|
50
|
+
#
|
|
51
|
+
# @return [Integer, nil]
|
|
52
|
+
optional :time_to_first_audio_frame_ms, Integer, api_name: :timeToFirstAudioFrameMs
|
|
53
|
+
|
|
54
|
+
# @!attribute type
|
|
55
|
+
# Frame type identifier.
|
|
56
|
+
#
|
|
57
|
+
# @return [Symbol, Telnyx::Models::StreamServerEvent::AudioChunk::Type, nil]
|
|
58
|
+
optional :type, enum: -> { Telnyx::Models::StreamServerEvent::AudioChunk::Type }
|
|
59
|
+
|
|
60
|
+
# @!method initialize(audio: nil, cached: nil, is_final: nil, text: nil, time_to_first_audio_frame_ms: nil, type: nil)
|
|
61
|
+
# Some parameter documentations has been truncated, see
|
|
62
|
+
# {Telnyx::Models::StreamServerEvent::AudioChunk} for more details.
|
|
63
|
+
#
|
|
64
|
+
# Server-to-client frame containing a base64-encoded audio chunk.
|
|
65
|
+
#
|
|
66
|
+
# @param audio [String, nil] Base64-encoded audio data. May be `null` for providers that use `drop_concatenat
|
|
67
|
+
#
|
|
68
|
+
# @param cached [Boolean] Whether this audio was served from cache.
|
|
69
|
+
#
|
|
70
|
+
# @param is_final [Boolean] Always `false` for audio chunk frames.
|
|
71
|
+
#
|
|
72
|
+
# @param text [String, nil] The text segment that this audio chunk corresponds to.
|
|
73
|
+
#
|
|
74
|
+
# @param time_to_first_audio_frame_ms [Integer] Milliseconds from the start-of-speech request to the first audio frame. Only pre
|
|
75
|
+
#
|
|
76
|
+
# @param type [Symbol, Telnyx::Models::StreamServerEvent::AudioChunk::Type] Frame type identifier.
|
|
77
|
+
|
|
78
|
+
# Frame type identifier.
|
|
79
|
+
#
|
|
80
|
+
# @see Telnyx::Models::StreamServerEvent::AudioChunk#type
|
|
81
|
+
module Type
|
|
82
|
+
extend Telnyx::Internal::Type::Enum
|
|
83
|
+
|
|
84
|
+
AUDIO_CHUNK = :audio_chunk
|
|
85
|
+
|
|
86
|
+
# @!method self.values
|
|
87
|
+
# @return [Array<Symbol>]
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
class FinalFrameEvent < Telnyx::Internal::Type::BaseModel
|
|
92
|
+
# @!attribute audio
|
|
93
|
+
# Always `null` for the final frame.
|
|
94
|
+
#
|
|
95
|
+
# @return [nil]
|
|
96
|
+
optional :audio, NilClass
|
|
97
|
+
|
|
98
|
+
# @!attribute is_final
|
|
99
|
+
# Always `true`.
|
|
100
|
+
#
|
|
101
|
+
# @return [Boolean, Telnyx::Models::StreamServerEvent::FinalFrameEvent::IsFinal, nil]
|
|
102
|
+
optional :is_final,
|
|
103
|
+
enum: -> { Telnyx::Models::StreamServerEvent::FinalFrameEvent::IsFinal },
|
|
104
|
+
api_name: :isFinal
|
|
105
|
+
|
|
106
|
+
# @!attribute text
|
|
107
|
+
# Empty string.
|
|
108
|
+
#
|
|
109
|
+
# @return [String, nil]
|
|
110
|
+
optional :text, String
|
|
111
|
+
|
|
112
|
+
# @!attribute time_to_first_audio_frame_ms
|
|
113
|
+
# Present if this was the first response frame.
|
|
114
|
+
#
|
|
115
|
+
# @return [Integer, nil]
|
|
116
|
+
optional :time_to_first_audio_frame_ms, Integer, api_name: :timeToFirstAudioFrameMs
|
|
117
|
+
|
|
118
|
+
# @!attribute type
|
|
119
|
+
# Frame type identifier.
|
|
120
|
+
#
|
|
121
|
+
# @return [Symbol, Telnyx::Models::StreamServerEvent::FinalFrameEvent::Type, nil]
|
|
122
|
+
optional :type, enum: -> { Telnyx::Models::StreamServerEvent::FinalFrameEvent::Type }
|
|
123
|
+
|
|
124
|
+
# @!method initialize(audio: nil, is_final: nil, text: nil, time_to_first_audio_frame_ms: nil, type: nil)
|
|
125
|
+
# Server-to-client frame indicating synthesis is complete for the current text.
|
|
126
|
+
#
|
|
127
|
+
# @param audio [nil] Always `null` for the final frame.
|
|
128
|
+
#
|
|
129
|
+
# @param is_final [Boolean, Telnyx::Models::StreamServerEvent::FinalFrameEvent::IsFinal] Always `true`.
|
|
130
|
+
#
|
|
131
|
+
# @param text [String] Empty string.
|
|
132
|
+
#
|
|
133
|
+
# @param time_to_first_audio_frame_ms [Integer] Present if this was the first response frame.
|
|
134
|
+
#
|
|
135
|
+
# @param type [Symbol, Telnyx::Models::StreamServerEvent::FinalFrameEvent::Type] Frame type identifier.
|
|
136
|
+
|
|
137
|
+
# Always `true`.
|
|
138
|
+
#
|
|
139
|
+
# @see Telnyx::Models::StreamServerEvent::FinalFrameEvent#is_final
|
|
140
|
+
module IsFinal
|
|
141
|
+
extend Telnyx::Internal::Type::Enum
|
|
142
|
+
|
|
143
|
+
TRUE = true
|
|
144
|
+
|
|
145
|
+
# @!method self.values
|
|
146
|
+
# @return [Array<Boolean>]
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# Frame type identifier.
|
|
150
|
+
#
|
|
151
|
+
# @see Telnyx::Models::StreamServerEvent::FinalFrameEvent#type
|
|
152
|
+
module Type
|
|
153
|
+
extend Telnyx::Internal::Type::Enum
|
|
154
|
+
|
|
155
|
+
FINAL = :final
|
|
156
|
+
|
|
157
|
+
# @!method self.values
|
|
158
|
+
# @return [Array<Symbol>]
|
|
159
|
+
end
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
class Error < Telnyx::Internal::Type::BaseModel
|
|
163
|
+
# @!attribute error
|
|
164
|
+
# Error message describing what went wrong.
|
|
165
|
+
#
|
|
166
|
+
# @return [String, nil]
|
|
167
|
+
optional :error, String
|
|
168
|
+
|
|
169
|
+
# @!attribute type
|
|
170
|
+
# Frame type identifier.
|
|
171
|
+
#
|
|
172
|
+
# @return [Symbol, Telnyx::Models::StreamServerEvent::Error::Type, nil]
|
|
173
|
+
optional :type, enum: -> { Telnyx::Models::StreamServerEvent::Error::Type }
|
|
174
|
+
|
|
175
|
+
# @!method initialize(error: nil, type: nil)
|
|
176
|
+
# Server-to-client frame indicating an error during synthesis. The connection is
|
|
177
|
+
# closed shortly after.
|
|
178
|
+
#
|
|
179
|
+
# @param error [String] Error message describing what went wrong.
|
|
180
|
+
#
|
|
181
|
+
# @param type [Symbol, Telnyx::Models::StreamServerEvent::Error::Type] Frame type identifier.
|
|
182
|
+
|
|
183
|
+
# Frame type identifier.
|
|
184
|
+
#
|
|
185
|
+
# @see Telnyx::Models::StreamServerEvent::Error#type
|
|
186
|
+
module Type
|
|
187
|
+
extend Telnyx::Internal::Type::Enum
|
|
188
|
+
|
|
189
|
+
ERROR = :error
|
|
190
|
+
|
|
191
|
+
# @!method self.values
|
|
192
|
+
# @return [Array<Symbol>]
|
|
193
|
+
end
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
# @!method self.variants
|
|
197
|
+
# @return [Array(Telnyx::Models::StreamServerEvent::AudioChunk, Telnyx::Models::StreamServerEvent::FinalFrameEvent, Telnyx::Models::StreamServerEvent::Error)]
|
|
198
|
+
end
|
|
199
|
+
end
|
|
200
|
+
end
|