telnyx 3.7.0a0__py3-none-any.whl → 3.8.0__py3-none-any.whl

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.

Potentially problematic release.


This version of telnyx might be problematic. Click here for more details.

Files changed (214) hide show
  1. telnyx/__init__.py +2 -0
  2. telnyx/_client.py +25 -756
  3. telnyx/_exceptions.py +4 -0
  4. telnyx/_version.py +1 -1
  5. telnyx/resources/advanced_orders.py +63 -63
  6. telnyx/resources/ai/assistants/assistants.py +15 -17
  7. telnyx/resources/ai/assistants/versions.py +13 -15
  8. telnyx/resources/brand/brand.py +8 -4
  9. telnyx/resources/calls/actions.py +10 -6
  10. telnyx/resources/calls/calls.py +16 -2
  11. telnyx/resources/documents.py +242 -37
  12. telnyx/resources/legacy/reporting/batch_detail_records/messaging.py +3 -2
  13. telnyx/resources/legacy/reporting/batch_detail_records/voice.py +3 -2
  14. telnyx/resources/messaging_profiles/messaging_profiles.py +16 -0
  15. telnyx/resources/messaging_tollfree/verification/requests.py +203 -1
  16. telnyx/resources/outbound_voice_profiles.py +24 -4
  17. telnyx/resources/sim_cards/actions.py +12 -12
  18. telnyx/resources/texml/accounts/calls/calls.py +11 -0
  19. telnyx/resources/texml/accounts/conferences/participants.py +11 -0
  20. telnyx/resources/verified_numbers/verified_numbers.py +25 -4
  21. telnyx/resources/verify_profiles.py +9 -10
  22. telnyx/resources/webhooks.py +57 -3
  23. telnyx/types/__init__.py +18 -15
  24. telnyx/types/access_ip_address_list_response.py +3 -12
  25. telnyx/types/access_ip_range_list_response.py +3 -12
  26. telnyx/types/addresses/action_validate_response.py +7 -2
  27. telnyx/types/{advanced_order_update_params.py → advanced_order_update_requirement_group_params.py} +2 -2
  28. telnyx/types/ai/__init__.py +1 -3
  29. telnyx/types/ai/assistant_import_params.py +1 -1
  30. telnyx/types/ai/assistants/__init__.py +0 -3
  31. telnyx/types/ai/assistants_list.py +4 -88
  32. telnyx/types/ai/import_metadata.py +1 -1
  33. telnyx/types/ai/{assistant_clone_response.py → inference_embedding.py} +2 -2
  34. telnyx/types/ai/inference_embedding_transfer_tool_params.py +6 -0
  35. telnyx/types/ai/inference_embedding_transfer_tool_params_param.py +6 -0
  36. telnyx/types/ai/voice_settings.py +49 -2
  37. telnyx/types/ai/voice_settings_param.py +49 -2
  38. telnyx/types/brand_create_params.py +2 -1
  39. telnyx/types/brand_update_params.py +2 -1
  40. telnyx/types/call_ai_gather_ended_webhook_event1.py +78 -0
  41. telnyx/types/call_ai_gather_message_history_updated_webhook_event1.py +69 -0
  42. telnyx/types/call_ai_gather_partial_results_webhook_event1.py +75 -0
  43. telnyx/types/call_answered_webhook_event1.py +75 -0
  44. telnyx/types/call_bridged_webhook_event1.py +58 -0
  45. telnyx/types/call_conversation_ended_webhook_event1.py +84 -0
  46. telnyx/types/call_conversation_insights_generated_webhook_event1.py +67 -0
  47. telnyx/types/call_dial_params.py +10 -1
  48. telnyx/types/call_dtmf_received_webhook_event1.py +61 -0
  49. telnyx/types/call_enqueued_webhook_event1.py +59 -0
  50. telnyx/types/call_fork_started_webhook_event1.py +53 -0
  51. telnyx/types/call_fork_stopped_webhook_event1.py +53 -0
  52. telnyx/types/call_gather_ended_webhook_event1.py +64 -0
  53. telnyx/types/call_hangup_webhook_event1.py +150 -0
  54. telnyx/types/call_initiated_webhook_event1.py +96 -0
  55. telnyx/types/call_left_queue_webhook_event1.py +62 -0
  56. telnyx/types/call_machine_detection_ended_webhook_event1.py +61 -0
  57. telnyx/types/call_machine_greeting_ended_webhook_event1.py +61 -0
  58. telnyx/types/call_machine_premium_detection_ended_webhook_event1.py +63 -0
  59. telnyx/types/call_machine_premium_greeting_ended_webhook_event1.py +61 -0
  60. telnyx/types/call_playback_ended_webhook_event1.py +70 -0
  61. telnyx/types/call_playback_started_webhook_event1.py +62 -0
  62. telnyx/types/call_recording_error_webhook_event1.py +60 -0
  63. telnyx/types/call_recording_saved_webhook_event1.py +94 -0
  64. telnyx/types/call_recording_transcription_saved_webhook_event1.py +71 -0
  65. telnyx/types/call_refer_completed_webhook_event1.py +61 -0
  66. telnyx/types/call_refer_failed_webhook_event1.py +61 -0
  67. telnyx/types/call_refer_started_webhook_event1.py +61 -0
  68. telnyx/types/call_siprec_failed_webhook_event1.py +53 -0
  69. telnyx/types/call_siprec_started_webhook_event1.py +50 -0
  70. telnyx/types/call_siprec_stopped_webhook_event1.py +53 -0
  71. telnyx/types/call_speak_ended_webhook_event1.py +53 -0
  72. telnyx/types/call_speak_started_webhook_event1.py +50 -0
  73. telnyx/types/call_streaming_failed_webhook_event1.py +70 -0
  74. telnyx/types/call_streaming_started_webhook_event1.py +53 -0
  75. telnyx/types/call_streaming_stopped_webhook_event1.py +53 -0
  76. telnyx/types/calls/__init__.py +1 -0
  77. telnyx/types/calls/action_start_streaming_params.py +2 -1
  78. telnyx/types/calls/action_start_transcription_params.py +160 -6
  79. telnyx/types/calls/telnyx_transcription_language.py +108 -0
  80. telnyx/types/calls/transcription_engine_b_config_param.py +3 -102
  81. telnyx/types/calls/transcription_start_request_param.py +161 -6
  82. telnyx/types/campaign_status_update_webhook_event1.py +26 -0
  83. telnyx/types/conference_created_webhook_event1.py +53 -0
  84. telnyx/types/conference_ended_webhook_event1.py +56 -0
  85. telnyx/types/conference_floor_changed_webhook_event1.py +45 -0
  86. telnyx/types/conference_participant_joined_webhook_event1.py +53 -0
  87. telnyx/types/conference_participant_left_webhook_event1.py +53 -0
  88. telnyx/types/conference_participant_playback_ended_webhook_event1.py +65 -0
  89. telnyx/types/conference_participant_playback_started_webhook_event1.py +65 -0
  90. telnyx/types/conference_participant_speak_ended_webhook_event1.py +56 -0
  91. telnyx/types/conference_participant_speak_started_webhook_event1.py +56 -0
  92. telnyx/types/conference_playback_ended_webhook_event1.py +49 -0
  93. telnyx/types/conference_playback_started_webhook_event1.py +49 -0
  94. telnyx/types/conference_recording_saved_webhook_event1.py +103 -0
  95. telnyx/types/conference_speak_ended_webhook_event1.py +40 -0
  96. telnyx/types/conference_speak_started_webhook_event1.py +40 -0
  97. telnyx/types/country_coverage_retrieve_country_response.py +7 -0
  98. telnyx/types/country_coverage_retrieve_response.py +7 -0
  99. telnyx/types/customer_service_record_status_changed_webhook_event1.py +55 -0
  100. telnyx/types/delivery_update_webhook_event1.py +40 -0
  101. telnyx/types/document_upload_json_params.py +39 -0
  102. telnyx/types/document_upload_json_response.py +12 -0
  103. telnyx/types/fax_delivered_webhook_event1.py +69 -0
  104. telnyx/types/fax_failed_webhook_event1.py +66 -0
  105. telnyx/types/fax_media_processed_webhook_event1.py +63 -0
  106. telnyx/types/fax_queued_webhook_event1.py +63 -0
  107. telnyx/types/fax_sending_started_webhook_event1.py +63 -0
  108. telnyx/types/inbound_message_webhook_event1.py +227 -0
  109. telnyx/types/legacy/reporting/__init__.py +2 -0
  110. telnyx/types/legacy/reporting/batch_detail_records/__init__.py +4 -0
  111. telnyx/types/legacy/reporting/batch_detail_records/batch_csv_pagination_meta.py +17 -0
  112. telnyx/types/legacy/reporting/batch_detail_records/cdr_detailed_req_response.py +63 -0
  113. telnyx/types/legacy/reporting/batch_detail_records/mdr_detail_report_response.py +42 -0
  114. telnyx/types/legacy/reporting/batch_detail_records/messaging_create_params.py +4 -26
  115. telnyx/types/legacy/reporting/batch_detail_records/messaging_create_response.py +4 -60
  116. telnyx/types/legacy/reporting/batch_detail_records/messaging_delete_response.py +4 -60
  117. telnyx/types/legacy/reporting/batch_detail_records/messaging_list_response.py +5 -70
  118. telnyx/types/legacy/reporting/batch_detail_records/messaging_retrieve_response.py +4 -60
  119. telnyx/types/legacy/reporting/batch_detail_records/speech_to_text_create_response.py +3 -22
  120. telnyx/types/legacy/reporting/batch_detail_records/speech_to_text_delete_response.py +3 -22
  121. telnyx/types/legacy/reporting/batch_detail_records/speech_to_text_list_response.py +3 -22
  122. telnyx/types/legacy/reporting/batch_detail_records/speech_to_text_retrieve_response.py +3 -22
  123. telnyx/types/legacy/reporting/batch_detail_records/stt_detail_report_response.py +27 -0
  124. telnyx/types/legacy/reporting/batch_detail_records/voice_create_params.py +4 -26
  125. telnyx/types/legacy/reporting/batch_detail_records/voice_create_response.py +4 -82
  126. telnyx/types/legacy/reporting/batch_detail_records/voice_delete_response.py +4 -82
  127. telnyx/types/legacy/reporting/batch_detail_records/voice_list_response.py +5 -92
  128. telnyx/types/legacy/reporting/batch_detail_records/voice_retrieve_response.py +4 -82
  129. telnyx/types/legacy/reporting/filter.py +31 -0
  130. telnyx/types/legacy/reporting/filter_param.py +30 -0
  131. telnyx/types/legacy/reporting/usage_reports/__init__.py +3 -0
  132. telnyx/types/legacy/reporting/usage_reports/cdr_usage_report_response_legacy.py +43 -0
  133. telnyx/types/legacy/reporting/usage_reports/mdr_usage_report_response_legacy.py +38 -0
  134. telnyx/types/legacy/reporting/usage_reports/messaging_create_response.py +4 -34
  135. telnyx/types/legacy/reporting/usage_reports/messaging_delete_response.py +4 -34
  136. telnyx/types/legacy/reporting/usage_reports/messaging_list_response.py +5 -44
  137. telnyx/types/legacy/reporting/usage_reports/messaging_retrieve_response.py +4 -34
  138. telnyx/types/legacy/reporting/usage_reports/standard_pagination_meta.py +17 -0
  139. telnyx/types/legacy/reporting/usage_reports/voice_create_response.py +4 -39
  140. telnyx/types/legacy/reporting/usage_reports/voice_delete_response.py +4 -39
  141. telnyx/types/legacy/reporting/usage_reports/voice_list_response.py +5 -49
  142. telnyx/types/legacy/reporting/usage_reports/voice_retrieve_response.py +4 -39
  143. telnyx/types/message_template.py +12 -0
  144. telnyx/types/messaging_profile.py +3 -0
  145. telnyx/types/messaging_profile_create_params.py +3 -0
  146. telnyx/types/messaging_profile_update_params.py +3 -0
  147. telnyx/types/messaging_tollfree/verification/__init__.py +1 -0
  148. telnyx/types/messaging_tollfree/verification/request_create_params.py +51 -1
  149. telnyx/types/messaging_tollfree/verification/request_update_params.py +51 -1
  150. telnyx/types/messaging_tollfree/verification/toll_free_verification_entity_type.py +9 -0
  151. telnyx/types/messaging_tollfree/verification/verification_request_egress.py +24 -0
  152. telnyx/types/messaging_tollfree/verification/verification_request_status.py +24 -0
  153. telnyx/types/number_order_status_update_webhook_event1.py +38 -0
  154. telnyx/types/oauth_client.py +59 -0
  155. telnyx/types/oauth_client_create_response.py +4 -55
  156. telnyx/types/oauth_client_list_response.py +5 -69
  157. telnyx/types/oauth_client_retrieve_response.py +4 -55
  158. telnyx/types/oauth_client_update_response.py +4 -55
  159. telnyx/types/oauth_grant.py +29 -0
  160. telnyx/types/oauth_grant_delete_response.py +4 -25
  161. telnyx/types/oauth_grant_list_response.py +5 -39
  162. telnyx/types/oauth_grant_retrieve_response.py +4 -25
  163. telnyx/types/outbound_voice_profile.py +27 -1
  164. telnyx/types/outbound_voice_profile_create_params.py +27 -1
  165. telnyx/types/outbound_voice_profile_list_params.py +1 -1
  166. telnyx/types/outbound_voice_profile_update_params.py +27 -1
  167. telnyx/types/pagination_meta_cloudflare_ip_list_sync.py +15 -0
  168. telnyx/types/pagination_meta_oauth.py +21 -0
  169. telnyx/types/phone_number_blocks/__init__.py +1 -0
  170. telnyx/types/phone_number_blocks/job.py +3 -34
  171. telnyx/types/phone_number_blocks/job_error.py +32 -0
  172. telnyx/types/phone_numbers/phone_numbers_job.py +3 -36
  173. telnyx/types/replaced_link_click_webhook_event1.py +32 -0
  174. telnyx/types/report_list_mdrs_response.py +3 -12
  175. telnyx/types/reports/__init__.py +1 -0
  176. telnyx/types/reports/mdr_usage_report_list_response.py +3 -12
  177. telnyx/types/reports/pagination_meta_reporting.py +17 -0
  178. telnyx/types/requirement_group.py +2 -2
  179. telnyx/types/requirement_group_list_params.py +1 -1
  180. telnyx/types/shared/__init__.py +1 -0
  181. telnyx/types/{api_error.py → shared/api_error.py} +1 -1
  182. telnyx/types/stream_bidirectional_sampling_rate.py +7 -0
  183. telnyx/types/streaming_failed_webhook_event1.py +70 -0
  184. telnyx/types/streaming_started_webhook_event1.py +53 -0
  185. telnyx/types/streaming_stopped_webhook_event1.py +53 -0
  186. telnyx/types/texml/accounts/call_calls_params.py +16 -1
  187. telnyx/types/texml/accounts/conferences/participant_participants_params.py +16 -1
  188. telnyx/types/transcription_webhook_event1.py +72 -0
  189. telnyx/types/unsafe_unwrap_webhook_event.py +138 -0
  190. telnyx/types/verifications/__init__.py +1 -0
  191. telnyx/types/verifications/by_phone_number_list_response.py +4 -13
  192. telnyx/types/verifications/verify_meta.py +17 -0
  193. telnyx/types/verified_number_create_params.py +10 -0
  194. telnyx/types/verify_profile.py +18 -3
  195. telnyx/types/verify_profile_list_response.py +4 -13
  196. telnyx/types/{verify_profile_create_template_response.py → verify_profile_message_template_response.py} +2 -6
  197. telnyx/types/verify_profile_retrieve_templates_response.py +4 -9
  198. {telnyx-3.7.0a0.dist-info → telnyx-3.8.0.dist-info}/METADATA +6 -4
  199. {telnyx-3.7.0a0.dist-info → telnyx-3.8.0.dist-info}/RECORD +201 -127
  200. telnyx/types/ai/assistant_create_response.py +0 -92
  201. telnyx/types/ai/assistant_retrieve_response.py +0 -92
  202. telnyx/types/ai/assistants/version_promote_response.py +0 -92
  203. telnyx/types/ai/assistants/version_retrieve_response.py +0 -92
  204. telnyx/types/ai/assistants/version_update_response.py +0 -92
  205. telnyx/types/client_create_bucket_params.py +0 -13
  206. telnyx/types/client_delete_objects_params.py +0 -20
  207. telnyx/types/client_get_object_params.py +0 -15
  208. telnyx/types/client_list_objects_params.py +0 -13
  209. telnyx/types/client_put_object_params.py +0 -20
  210. telnyx/types/list_buckets_response.py +0 -20
  211. telnyx/types/list_objects_response.py +0 -24
  212. telnyx/types/verify_profile_update_template_response.py +0 -17
  213. {telnyx-3.7.0a0.dist-info → telnyx-3.8.0.dist-info}/WHEEL +0 -0
  214. {telnyx-3.7.0a0.dist-info → telnyx-3.8.0.dist-info}/licenses/LICENSE +0 -0
@@ -2,6 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
+ from typing import Iterable
5
6
  from typing_extensions import Literal
6
7
 
7
8
  import httpx
@@ -251,6 +252,7 @@ class ParticipantsResource(SyncAPIResource):
251
252
  conference_status_callback_event: str | Omit = omit,
252
253
  conference_status_callback_method: Literal["GET", "POST"] | Omit = omit,
253
254
  conference_trim: Literal["trim-silence", "do-not-trim"] | Omit = omit,
255
+ custom_headers: Iterable[participant_participants_params.CustomHeader] | Omit = omit,
254
256
  early_media: bool | Omit = omit,
255
257
  end_conference_on_exit: bool | Omit = omit,
256
258
  from_: str | Omit = omit,
@@ -343,6 +345,9 @@ class ParticipantsResource(SyncAPIResource):
343
345
  conference_trim: Whether to trim any leading and trailing silence from the conference recording.
344
346
  Defaults to `trim-silence`.
345
347
 
348
+ custom_headers: Custom HTTP headers to be sent with the call. Each header should be an object
349
+ with 'name' and 'value' properties.
350
+
346
351
  early_media: Whether participant shall be bridged to conference before the participant
347
352
  answers (from early media if available). Defaults to `false`.
348
353
 
@@ -451,6 +456,7 @@ class ParticipantsResource(SyncAPIResource):
451
456
  "conference_status_callback_event": conference_status_callback_event,
452
457
  "conference_status_callback_method": conference_status_callback_method,
453
458
  "conference_trim": conference_trim,
459
+ "custom_headers": custom_headers,
454
460
  "early_media": early_media,
455
461
  "end_conference_on_exit": end_conference_on_exit,
456
462
  "from_": from_,
@@ -748,6 +754,7 @@ class AsyncParticipantsResource(AsyncAPIResource):
748
754
  conference_status_callback_event: str | Omit = omit,
749
755
  conference_status_callback_method: Literal["GET", "POST"] | Omit = omit,
750
756
  conference_trim: Literal["trim-silence", "do-not-trim"] | Omit = omit,
757
+ custom_headers: Iterable[participant_participants_params.CustomHeader] | Omit = omit,
751
758
  early_media: bool | Omit = omit,
752
759
  end_conference_on_exit: bool | Omit = omit,
753
760
  from_: str | Omit = omit,
@@ -840,6 +847,9 @@ class AsyncParticipantsResource(AsyncAPIResource):
840
847
  conference_trim: Whether to trim any leading and trailing silence from the conference recording.
841
848
  Defaults to `trim-silence`.
842
849
 
850
+ custom_headers: Custom HTTP headers to be sent with the call. Each header should be an object
851
+ with 'name' and 'value' properties.
852
+
843
853
  early_media: Whether participant shall be bridged to conference before the participant
844
854
  answers (from early media if available). Defaults to `false`.
845
855
 
@@ -948,6 +958,7 @@ class AsyncParticipantsResource(AsyncAPIResource):
948
958
  "conference_status_callback_event": conference_status_callback_event,
949
959
  "conference_status_callback_method": conference_status_callback_method,
950
960
  "conference_trim": conference_trim,
961
+ "custom_headers": custom_headers,
951
962
  "early_media": early_media,
952
963
  "end_conference_on_exit": end_conference_on_exit,
953
964
  "from_": from_,
@@ -2,6 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
+ from typing import Optional
5
6
  from typing_extensions import Literal
6
7
 
7
8
  import httpx
@@ -62,6 +63,7 @@ class VerifiedNumbersResource(SyncAPIResource):
62
63
  *,
63
64
  phone_number: str,
64
65
  verification_method: Literal["sms", "call"],
66
+ extension: Optional[str] | Omit = omit,
65
67
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
66
68
  # The extra values given here take precedence over values defined on the client or passed to this method.
67
69
  extra_headers: Headers | None = None,
@@ -69,12 +71,20 @@ class VerifiedNumbersResource(SyncAPIResource):
69
71
  extra_body: Body | None = None,
70
72
  timeout: float | httpx.Timeout | None | NotGiven = not_given,
71
73
  ) -> VerifiedNumberCreateResponse:
72
- """
73
- Initiates phone number verification procedure.
74
+ """Initiates phone number verification procedure.
75
+
76
+ Supports DTMF extension dialing
77
+ for voice calls to numbers behind IVR systems.
74
78
 
75
79
  Args:
76
80
  verification_method: Verification method.
77
81
 
82
+ extension: Optional DTMF extension sequence to dial after the call is answered. This
83
+ parameter enables verification of phone numbers behind IVR systems that require
84
+ extension dialing. Valid characters: digits 0-9, letters A-D, symbols \\** and #.
85
+ Pauses: w = 0.5 second pause, W = 1 second pause. Maximum length: 50 characters.
86
+ Only works with 'call' verification method.
87
+
78
88
  extra_headers: Send extra headers
79
89
 
80
90
  extra_query: Add additional query parameters to the request
@@ -89,6 +99,7 @@ class VerifiedNumbersResource(SyncAPIResource):
89
99
  {
90
100
  "phone_number": phone_number,
91
101
  "verification_method": verification_method,
102
+ "extension": extension,
92
103
  },
93
104
  verified_number_create_params.VerifiedNumberCreateParams,
94
105
  ),
@@ -236,6 +247,7 @@ class AsyncVerifiedNumbersResource(AsyncAPIResource):
236
247
  *,
237
248
  phone_number: str,
238
249
  verification_method: Literal["sms", "call"],
250
+ extension: Optional[str] | Omit = omit,
239
251
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
240
252
  # The extra values given here take precedence over values defined on the client or passed to this method.
241
253
  extra_headers: Headers | None = None,
@@ -243,12 +255,20 @@ class AsyncVerifiedNumbersResource(AsyncAPIResource):
243
255
  extra_body: Body | None = None,
244
256
  timeout: float | httpx.Timeout | None | NotGiven = not_given,
245
257
  ) -> VerifiedNumberCreateResponse:
246
- """
247
- Initiates phone number verification procedure.
258
+ """Initiates phone number verification procedure.
259
+
260
+ Supports DTMF extension dialing
261
+ for voice calls to numbers behind IVR systems.
248
262
 
249
263
  Args:
250
264
  verification_method: Verification method.
251
265
 
266
+ extension: Optional DTMF extension sequence to dial after the call is answered. This
267
+ parameter enables verification of phone numbers behind IVR systems that require
268
+ extension dialing. Valid characters: digits 0-9, letters A-D, symbols \\** and #.
269
+ Pauses: w = 0.5 second pause, W = 1 second pause. Maximum length: 50 characters.
270
+ Only works with 'call' verification method.
271
+
252
272
  extra_headers: Send extra headers
253
273
 
254
274
  extra_query: Add additional query parameters to the request
@@ -263,6 +283,7 @@ class AsyncVerifiedNumbersResource(AsyncAPIResource):
263
283
  {
264
284
  "phone_number": phone_number,
265
285
  "verification_method": verification_method,
286
+ "extension": extension,
266
287
  },
267
288
  verified_number_create_params.VerifiedNumberCreateParams,
268
289
  ),
@@ -22,10 +22,9 @@ from .._response import (
22
22
  async_to_streamed_response_wrapper,
23
23
  )
24
24
  from .._base_client import make_request_options
25
+ from ..types.message_template import MessageTemplate
25
26
  from ..types.verify_profile_data import VerifyProfileData
26
27
  from ..types.verify_profile_list_response import VerifyProfileListResponse
27
- from ..types.verify_profile_create_template_response import VerifyProfileCreateTemplateResponse
28
- from ..types.verify_profile_update_template_response import VerifyProfileUpdateTemplateResponse
29
28
  from ..types.verify_profile_retrieve_templates_response import VerifyProfileRetrieveTemplatesResponse
30
29
 
31
30
  __all__ = ["VerifyProfilesResource", "AsyncVerifyProfilesResource"]
@@ -275,7 +274,7 @@ class VerifyProfilesResource(SyncAPIResource):
275
274
  extra_query: Query | None = None,
276
275
  extra_body: Body | None = None,
277
276
  timeout: float | httpx.Timeout | None | NotGiven = not_given,
278
- ) -> VerifyProfileCreateTemplateResponse:
277
+ ) -> MessageTemplate:
279
278
  """
280
279
  Create a new Verify profile message template.
281
280
 
@@ -298,7 +297,7 @@ class VerifyProfilesResource(SyncAPIResource):
298
297
  options=make_request_options(
299
298
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
300
299
  ),
301
- cast_to=VerifyProfileCreateTemplateResponse,
300
+ cast_to=MessageTemplate,
302
301
  )
303
302
 
304
303
  def retrieve_templates(
@@ -331,7 +330,7 @@ class VerifyProfilesResource(SyncAPIResource):
331
330
  extra_query: Query | None = None,
332
331
  extra_body: Body | None = None,
333
332
  timeout: float | httpx.Timeout | None | NotGiven = not_given,
334
- ) -> VerifyProfileUpdateTemplateResponse:
333
+ ) -> MessageTemplate:
335
334
  """
336
335
  Update an existing Verify profile message template.
337
336
 
@@ -356,7 +355,7 @@ class VerifyProfilesResource(SyncAPIResource):
356
355
  options=make_request_options(
357
356
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
358
357
  ),
359
- cast_to=VerifyProfileUpdateTemplateResponse,
358
+ cast_to=MessageTemplate,
360
359
  )
361
360
 
362
361
 
@@ -604,7 +603,7 @@ class AsyncVerifyProfilesResource(AsyncAPIResource):
604
603
  extra_query: Query | None = None,
605
604
  extra_body: Body | None = None,
606
605
  timeout: float | httpx.Timeout | None | NotGiven = not_given,
607
- ) -> VerifyProfileCreateTemplateResponse:
606
+ ) -> MessageTemplate:
608
607
  """
609
608
  Create a new Verify profile message template.
610
609
 
@@ -627,7 +626,7 @@ class AsyncVerifyProfilesResource(AsyncAPIResource):
627
626
  options=make_request_options(
628
627
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
629
628
  ),
630
- cast_to=VerifyProfileCreateTemplateResponse,
629
+ cast_to=MessageTemplate,
631
630
  )
632
631
 
633
632
  async def retrieve_templates(
@@ -660,7 +659,7 @@ class AsyncVerifyProfilesResource(AsyncAPIResource):
660
659
  extra_query: Query | None = None,
661
660
  extra_body: Body | None = None,
662
661
  timeout: float | httpx.Timeout | None | NotGiven = not_given,
663
- ) -> VerifyProfileUpdateTemplateResponse:
662
+ ) -> MessageTemplate:
664
663
  """
665
664
  Update an existing Verify profile message template.
666
665
 
@@ -685,7 +684,7 @@ class AsyncVerifyProfilesResource(AsyncAPIResource):
685
684
  options=make_request_options(
686
685
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
687
686
  ),
688
- cast_to=VerifyProfileUpdateTemplateResponse,
687
+ cast_to=MessageTemplate,
689
688
  )
690
689
 
691
690
 
@@ -3,17 +3,45 @@
3
3
  from __future__ import annotations
4
4
 
5
5
  import json
6
- from typing import cast
6
+ from typing import Mapping, cast
7
7
 
8
8
  from .._models import construct_type
9
9
  from .._resource import SyncAPIResource, AsyncAPIResource
10
+ from .._exceptions import TelnyxError
10
11
  from ..types.unwrap_webhook_event import UnwrapWebhookEvent
12
+ from ..types.unsafe_unwrap_webhook_event import UnsafeUnwrapWebhookEvent
11
13
 
12
14
  __all__ = ["WebhooksResource", "AsyncWebhooksResource"]
13
15
 
14
16
 
15
17
  class WebhooksResource(SyncAPIResource):
16
- def unwrap(self, payload: str) -> UnwrapWebhookEvent:
18
+ def unsafe_unwrap(self, payload: str) -> UnsafeUnwrapWebhookEvent:
19
+ return cast(
20
+ UnsafeUnwrapWebhookEvent,
21
+ construct_type(
22
+ type_=UnsafeUnwrapWebhookEvent,
23
+ value=json.loads(payload),
24
+ ),
25
+ )
26
+
27
+ def unwrap(self, payload: str, *, headers: Mapping[str, str], key: str | bytes | None = None) -> UnwrapWebhookEvent:
28
+ try:
29
+ from standardwebhooks import Webhook
30
+ except ImportError as exc:
31
+ raise TelnyxError("You need to install `telnyx[webhooks]` to use this method") from exc
32
+
33
+ if key is None:
34
+ key = self._client.public_key
35
+ if key is None:
36
+ raise ValueError(
37
+ "Cannot verify a webhook without a key on either the client's public_key or passed in as an argument"
38
+ )
39
+
40
+ if not isinstance(headers, dict):
41
+ headers = dict(headers)
42
+
43
+ Webhook(key).verify(payload, headers)
44
+
17
45
  return cast(
18
46
  UnwrapWebhookEvent,
19
47
  construct_type(
@@ -24,7 +52,33 @@ class WebhooksResource(SyncAPIResource):
24
52
 
25
53
 
26
54
  class AsyncWebhooksResource(AsyncAPIResource):
27
- def unwrap(self, payload: str) -> UnwrapWebhookEvent:
55
+ def unsafe_unwrap(self, payload: str) -> UnsafeUnwrapWebhookEvent:
56
+ return cast(
57
+ UnsafeUnwrapWebhookEvent,
58
+ construct_type(
59
+ type_=UnsafeUnwrapWebhookEvent,
60
+ value=json.loads(payload),
61
+ ),
62
+ )
63
+
64
+ def unwrap(self, payload: str, *, headers: Mapping[str, str], key: str | bytes | None = None) -> UnwrapWebhookEvent:
65
+ try:
66
+ from standardwebhooks import Webhook
67
+ except ImportError as exc:
68
+ raise TelnyxError("You need to install `telnyx[webhooks]` to use this method") from exc
69
+
70
+ if key is None:
71
+ key = self._client.public_key
72
+ if key is None:
73
+ raise ValueError(
74
+ "Cannot verify a webhook without a key on either the client's public_key or passed in as an argument"
75
+ )
76
+
77
+ if not isinstance(headers, dict):
78
+ headers = dict(headers)
79
+
80
+ Webhook(key).verify(payload, headers)
81
+
28
82
  return cast(
29
83
  UnwrapWebhookEvent,
30
84
  construct_type(
telnyx/types/__init__.py CHANGED
@@ -10,6 +10,7 @@ from .fqdn import Fqdn as Fqdn
10
10
  from .room import Room as Room
11
11
  from .record import Record as Record
12
12
  from .shared import (
13
+ APIError as APIError,
13
14
  Metadata as Metadata,
14
15
  ShortCode as ShortCode,
15
16
  HostedNumber as HostedNumber,
@@ -29,7 +30,6 @@ from .shared import (
29
30
  from .address import Address as Address
30
31
  from .sim_card import SimCard as SimCard
31
32
  from .vertical import Vertical as Vertical
32
- from .api_error import APIError as APIError
33
33
  from .dtmf_type import DtmfType as DtmfType
34
34
  from .interface import Interface as Interface
35
35
  from .rcs_agent import RcsAgent as RcsAgent
@@ -38,10 +38,12 @@ from .conference import Conference as Conference
38
38
  from .inbound_ip import InboundIP as InboundIP
39
39
  from .sip_header import SipHeader as SipHeader
40
40
  from .entity_type import EntityType as EntityType
41
+ from .oauth_grant import OAuthGrant as OAuthGrant
41
42
  from .outbound_ip import OutboundIP as OutboundIP
42
43
  from .task_status import TaskStatus as TaskStatus
43
44
  from .inbound_fqdn import InboundFqdn as InboundFqdn
44
45
  from .month_detail import MonthDetail as MonthDetail
46
+ from .oauth_client import OAuthClient as OAuthClient
45
47
  from .phone_number import PhoneNumber as PhoneNumber
46
48
  from .record_param import RecordParam as RecordParam
47
49
  from .room_session import RoomSession as RoomSession
@@ -83,6 +85,7 @@ from .interface_status import InterfaceStatus as InterfaceStatus
83
85
  from .ip_create_params import IPCreateParams as IPCreateParams
84
86
  from .ip_list_response import IPListResponse as IPListResponse
85
87
  from .ip_update_params import IPUpdateParams as IPUpdateParams
88
+ from .message_template import MessageTemplate as MessageTemplate
86
89
  from .rcs_card_content import RcsCardContent as RcsCardContent
87
90
  from .rcs_content_info import RcsContentInfo as RcsContentInfo
88
91
  from .room_composition import RoomComposition as RoomComposition
@@ -181,8 +184,6 @@ from .credential_connection import CredentialConnection as CredentialConnection
181
184
  from .fax_retrieve_response import FaxRetrieveResponse as FaxRetrieveResponse
182
185
  from .global_ip_list_params import GlobalIPListParams as GlobalIPListParams
183
186
  from .invoice_list_response import InvoiceListResponse as InvoiceListResponse
184
- from .list_buckets_response import ListBucketsResponse as ListBucketsResponse
185
- from .list_objects_response import ListObjectsResponse as ListObjectsResponse
186
187
  from .media_update_response import MediaUpdateResponse as MediaUpdateResponse
187
188
  from .media_upload_response import MediaUploadResponse as MediaUploadResponse
188
189
  from .message_send_response import MessageSendResponse as MessageSendResponse
@@ -192,6 +193,7 @@ from .network_list_response import NetworkListResponse as NetworkListResponse
192
193
  from .network_update_params import NetworkUpdateParams as NetworkUpdateParams
193
194
  from .oauth_grants_response import OAuthGrantsResponse as OAuthGrantsResponse
194
195
  from .oauth_register_params import OAuthRegisterParams as OAuthRegisterParams
196
+ from .pagination_meta_oauth import PaginationMetaOAuth as PaginationMetaOAuth
195
197
  from .phone_number_campaign import PhoneNumberCampaign as PhoneNumberCampaign
196
198
  from .phone_number_detailed import PhoneNumberDetailed as PhoneNumberDetailed
197
199
  from .portout_list_response import PortoutListResponse as PortoutListResponse
@@ -261,8 +263,6 @@ from .azure_configuration_data import AzureConfigurationData as AzureConfigurati
261
263
  from .call_control_application import CallControlApplication as CallControlApplication
262
264
  from .call_event_list_response import CallEventListResponse as CallEventListResponse
263
265
  from .channel_zone_list_params import ChannelZoneListParams as ChannelZoneListParams
264
- from .client_get_object_params import ClientGetObjectParams as ClientGetObjectParams
265
- from .client_put_object_params import ClientPutObjectParams as ClientPutObjectParams
266
266
  from .conference_create_params import ConferenceCreateParams as ConferenceCreateParams
267
267
  from .conference_list_response import ConferenceListResponse as ConferenceListResponse
268
268
  from .connection_list_response import ConnectionListResponse as ConnectionListResponse
@@ -321,7 +321,6 @@ from .access_ip_address_response import AccessIPAddressResponse as AccessIPAddre
321
321
  from .call_bridged_webhook_event import CallBridgedWebhookEvent as CallBridgedWebhookEvent
322
322
  from .channel_zone_list_response import ChannelZoneListResponse as ChannelZoneListResponse
323
323
  from .channel_zone_update_params import ChannelZoneUpdateParams as ChannelZoneUpdateParams
324
- from .client_list_objects_params import ClientListObjectsParams as ClientListObjectsParams
325
324
  from .conference_create_response import ConferenceCreateResponse as ConferenceCreateResponse
326
325
  from .document_retrieve_response import DocumentRetrieveResponse as DocumentRetrieveResponse
327
326
  from .dynamic_emergency_endpoint import DynamicEmergencyEndpoint as DynamicEmergencyEndpoint
@@ -356,9 +355,9 @@ from .billing_group_update_params import BillingGroupUpdateParams as BillingGrou
356
355
  from .brand_get_feedback_response import BrandGetFeedbackResponse as BrandGetFeedbackResponse
357
356
  from .call_answered_webhook_event import CallAnsweredWebhookEvent as CallAnsweredWebhookEvent
358
357
  from .call_enqueued_webhook_event import CallEnqueuedWebhookEvent as CallEnqueuedWebhookEvent
359
- from .client_create_bucket_params import ClientCreateBucketParams as ClientCreateBucketParams
360
358
  from .detail_record_list_response import DetailRecordListResponse as DetailRecordListResponse
361
359
  from .document_link_list_response import DocumentLinkListResponse as DocumentLinkListResponse
360
+ from .document_upload_json_params import DocumentUploadJsonParams as DocumentUploadJsonParams
362
361
  from .fax_application_list_params import FaxApplicationListParams as FaxApplicationListParams
363
362
  from .fax_delivered_webhook_event import FaxDeliveredWebhookEvent as FaxDeliveredWebhookEvent
364
363
  from .fqdn_connection_list_params import FqdnConnectionListParams as FqdnConnectionListParams
@@ -377,13 +376,12 @@ from .recording_retrieve_response import RecordingRetrieveResponse as RecordingR
377
376
  from .reserved_phone_number_param import ReservedPhoneNumberParam as ReservedPhoneNumberParam
378
377
  from .s3_configuration_data_param import S3ConfigurationDataParam as S3ConfigurationDataParam
379
378
  from .transcription_webhook_event import TranscriptionWebhookEvent as TranscriptionWebhookEvent
379
+ from .unsafe_unwrap_webhook_event import UnsafeUnwrapWebhookEvent as UnsafeUnwrapWebhookEvent
380
380
  from .verified_number_list_params import VerifiedNumberListParams as VerifiedNumberListParams
381
381
  from .advanced_order_create_params import AdvancedOrderCreateParams as AdvancedOrderCreateParams
382
- from .advanced_order_update_params import AdvancedOrderUpdateParams as AdvancedOrderUpdateParams
383
382
  from .call_initiated_webhook_event import CallInitiatedWebhookEvent as CallInitiatedWebhookEvent
384
383
  from .campaign_deactivate_response import CampaignDeactivateResponse as CampaignDeactivateResponse
385
384
  from .channel_zone_update_response import ChannelZoneUpdateResponse as ChannelZoneUpdateResponse
386
- from .client_delete_objects_params import ClientDeleteObjectsParams as ClientDeleteObjectsParams
387
385
  from .conference_retrieve_response import ConferenceRetrieveResponse as ConferenceRetrieveResponse
388
386
  from .connection_retrieve_response import ConnectionRetrieveResponse as ConnectionRetrieveResponse
389
387
  from .create_verification_response import CreateVerificationResponse as CreateVerificationResponse
@@ -436,6 +434,7 @@ from .call_retrieve_status_response import CallRetrieveStatusResponse as CallRet
436
434
  from .campaign_submit_appeal_params import CampaignSubmitAppealParams as CampaignSubmitAppealParams
437
435
  from .comment_mark_as_read_response import CommentMarkAsReadResponse as CommentMarkAsReadResponse
438
436
  from .delivery_update_webhook_event import DeliveryUpdateWebhookEvent as DeliveryUpdateWebhookEvent
437
+ from .document_upload_json_response import DocumentUploadJsonResponse as DocumentUploadJsonResponse
439
438
  from .fax_application_create_params import FaxApplicationCreateParams as FaxApplicationCreateParams
440
439
  from .fax_application_list_response import FaxApplicationListResponse as FaxApplicationListResponse
441
440
  from .fax_application_update_params import FaxApplicationUpdateParams as FaxApplicationUpdateParams
@@ -672,6 +671,7 @@ from .requirement_type_retrieve_response import RequirementTypeRetrieveResponse
672
671
  from .room_composition_retrieve_response import RoomCompositionRetrieveResponse as RoomCompositionRetrieveResponse
673
672
  from .room_participant_retrieve_response import RoomParticipantRetrieveResponse as RoomParticipantRetrieveResponse
674
673
  from .siprec_connector_retrieve_response import SiprecConnectorRetrieveResponse as SiprecConnectorRetrieveResponse
674
+ from .stream_bidirectional_sampling_rate import StreamBidirectionalSamplingRate as StreamBidirectionalSamplingRate
675
675
  from .sub_number_order_retrieve_response import SubNumberOrderRetrieveResponse as SubNumberOrderRetrieveResponse
676
676
  from .telephony_credential_create_params import TelephonyCredentialCreateParams as TelephonyCredentialCreateParams
677
677
  from .telephony_credential_list_response import TelephonyCredentialListResponse as TelephonyCredentialListResponse
@@ -945,6 +945,9 @@ from .messaging_hosted_number_delete_response import (
945
945
  from .number_order_phone_number_list_response import (
946
946
  NumberOrderPhoneNumberListResponse as NumberOrderPhoneNumberListResponse,
947
947
  )
948
+ from .pagination_meta_cloudflare_ip_list_sync import (
949
+ PaginationMetaCloudflareIPListSync as PaginationMetaCloudflareIPListSync,
950
+ )
948
951
  from .public_internet_gateway_create_response import (
949
952
  PublicInternetGatewayCreateResponse as PublicInternetGatewayCreateResponse,
950
953
  )
@@ -960,12 +963,6 @@ from .sim_card_order_preview_preview_response import (
960
963
  from .sub_number_order_regulatory_requirement import (
961
964
  SubNumberOrderRegulatoryRequirement as SubNumberOrderRegulatoryRequirement,
962
965
  )
963
- from .verify_profile_create_template_response import (
964
- VerifyProfileCreateTemplateResponse as VerifyProfileCreateTemplateResponse,
965
- )
966
- from .verify_profile_update_template_response import (
967
- VerifyProfileUpdateTemplateResponse as VerifyProfileUpdateTemplateResponse,
968
- )
969
966
  from .virtual_cross_connect_retrieve_response import (
970
967
  VirtualCrossConnectRetrieveResponse as VirtualCrossConnectRetrieveResponse,
971
968
  )
@@ -1023,6 +1020,9 @@ from .regulatory_requirement_retrieve_response import (
1023
1020
  from .sub_number_orders_report_create_response import (
1024
1021
  SubNumberOrdersReportCreateResponse as SubNumberOrdersReportCreateResponse,
1025
1022
  )
1023
+ from .verify_profile_message_template_response import (
1024
+ VerifyProfileMessageTemplateResponse as VerifyProfileMessageTemplateResponse,
1025
+ )
1026
1026
  from .authentication_provider_retrieve_response import (
1027
1027
  AuthenticationProviderRetrieveResponse as AuthenticationProviderRetrieveResponse,
1028
1028
  )
@@ -1209,6 +1209,9 @@ from .seti_retrieve_black_box_test_results_response import (
1209
1209
  from .virtual_cross_connects_coverage_list_response import (
1210
1210
  VirtualCrossConnectsCoverageListResponse as VirtualCrossConnectsCoverageListResponse,
1211
1211
  )
1212
+ from .advanced_order_update_requirement_group_params import (
1213
+ AdvancedOrderUpdateRequirementGroupParams as AdvancedOrderUpdateRequirementGroupParams,
1214
+ )
1212
1215
  from .porting_order_phone_number_configuration_param import (
1213
1216
  PortingOrderPhoneNumberConfigurationParam as PortingOrderPhoneNumberConfigurationParam,
1214
1217
  )
@@ -4,21 +4,12 @@ from typing import List
4
4
 
5
5
  from .._models import BaseModel
6
6
  from .access_ip_address_response import AccessIPAddressResponse
7
+ from .pagination_meta_cloudflare_ip_list_sync import PaginationMetaCloudflareIPListSync
7
8
 
8
- __all__ = ["AccessIPAddressListResponse", "Meta"]
9
-
10
-
11
- class Meta(BaseModel):
12
- page_number: int
13
-
14
- page_size: int
15
-
16
- total_pages: int
17
-
18
- total_results: int
9
+ __all__ = ["AccessIPAddressListResponse"]
19
10
 
20
11
 
21
12
  class AccessIPAddressListResponse(BaseModel):
22
13
  data: List[AccessIPAddressResponse]
23
14
 
24
- meta: Meta
15
+ meta: PaginationMetaCloudflareIPListSync
@@ -4,21 +4,12 @@ from typing import List
4
4
 
5
5
  from .._models import BaseModel
6
6
  from .access_ip_range import AccessIPRange
7
+ from .pagination_meta_cloudflare_ip_list_sync import PaginationMetaCloudflareIPListSync
7
8
 
8
- __all__ = ["AccessIPRangeListResponse", "Meta"]
9
-
10
-
11
- class Meta(BaseModel):
12
- page_number: int
13
-
14
- page_size: int
15
-
16
- total_pages: int
17
-
18
- total_results: int
9
+ __all__ = ["AccessIPRangeListResponse"]
19
10
 
20
11
 
21
12
  class AccessIPRangeListResponse(BaseModel):
22
13
  data: List[AccessIPRange]
23
14
 
24
- meta: Meta
15
+ meta: PaginationMetaCloudflareIPListSync
@@ -6,7 +6,7 @@ from typing_extensions import Literal
6
6
  from pydantic import Field as FieldInfo
7
7
 
8
8
  from ..._models import BaseModel
9
- from ..api_error import APIError
9
+ from ..shared.api_error import APIError
10
10
 
11
11
  __all__ = ["ActionValidateResponse", "Data", "DataSuggested"]
12
12
 
@@ -39,12 +39,17 @@ class DataSuggested(BaseModel):
39
39
  street_address: Optional[str] = None
40
40
  """The primary street address information about the address."""
41
41
 
42
- __pydantic_extra__: Dict[str, object] = FieldInfo(init=False) # pyright: ignore[reportIncompatibleVariableOverride]
43
42
  if TYPE_CHECKING:
43
+ # Some versions of Pydantic <2.8.0 have a bug and don’t allow assigning a
44
+ # value to this field, so for compatibility we avoid doing it at runtime.
45
+ __pydantic_extra__: Dict[str, object] = FieldInfo(init=False) # pyright: ignore[reportIncompatibleVariableOverride]
46
+
44
47
  # Stub to indicate that arbitrary properties are accepted.
45
48
  # To access properties that are not valid identifiers you can use `getattr`, e.g.
46
49
  # `getattr(obj, '$type')`
47
50
  def __getattr__(self, attr: str) -> object: ...
51
+ else:
52
+ __pydantic_extra__: Dict[str, object]
48
53
 
49
54
 
50
55
  class Data(BaseModel):
@@ -5,10 +5,10 @@ from __future__ import annotations
5
5
  from typing import List
6
6
  from typing_extensions import Literal, TypedDict
7
7
 
8
- __all__ = ["AdvancedOrderUpdateParams"]
8
+ __all__ = ["AdvancedOrderUpdateRequirementGroupParams"]
9
9
 
10
10
 
11
- class AdvancedOrderUpdateParams(TypedDict, total=False):
11
+ class AdvancedOrderUpdateRequirementGroupParams(TypedDict, total=False):
12
12
  area_code: str
13
13
 
14
14
  comments: str
@@ -23,6 +23,7 @@ from .messaging_settings import MessagingSettings as MessagingSettings
23
23
  from .telephony_settings import TelephonySettings as TelephonySettings
24
24
  from .webhook_tool_param import WebhookToolParam as WebhookToolParam
25
25
  from .cluster_list_params import ClusterListParams as ClusterListParams
26
+ from .inference_embedding import InferenceEmbedding as InferenceEmbedding
26
27
  from .transfer_tool_param import TransferToolParam as TransferToolParam
27
28
  from .assistant_tool_param import AssistantToolParam as AssistantToolParam
28
29
  from .embedding_url_params import EmbeddingURLParams as EmbeddingURLParams
@@ -44,13 +45,11 @@ from .audio_transcribe_params import AudioTranscribeParams as AudioTranscribePar
44
45
  from .cluster_retrieve_params import ClusterRetrieveParams as ClusterRetrieveParams
45
46
  from .embedding_create_params import EmbeddingCreateParams as EmbeddingCreateParams
46
47
  from .embedding_list_response import EmbeddingListResponse as EmbeddingListResponse
47
- from .assistant_clone_response import AssistantCloneResponse as AssistantCloneResponse
48
48
  from .cluster_compute_response import ClusterComputeResponse as ClusterComputeResponse
49
49
  from .conversation_list_params import ConversationListParams as ConversationListParams
50
50
  from .hangup_tool_params_param import HangupToolParamsParam as HangupToolParamsParam
51
51
  from .messaging_settings_param import MessagingSettingsParam as MessagingSettingsParam
52
52
  from .telephony_settings_param import TelephonySettingsParam as TelephonySettingsParam
53
- from .assistant_create_response import AssistantCreateResponse as AssistantCreateResponse
54
53
  from .assistant_delete_response import AssistantDeleteResponse as AssistantDeleteResponse
55
54
  from .assistant_retrieve_params import AssistantRetrieveParams as AssistantRetrieveParams
56
55
  from .audio_transcribe_response import AudioTranscribeResponse as AudioTranscribeResponse
@@ -59,7 +58,6 @@ from .cluster_fetch_graph_params import ClusterFetchGraphParams as ClusterFetchG
59
58
  from .conversation_create_params import ConversationCreateParams as ConversationCreateParams
60
59
  from .conversation_list_response import ConversationListResponse as ConversationListResponse
61
60
  from .conversation_update_params import ConversationUpdateParams as ConversationUpdateParams
62
- from .assistant_retrieve_response import AssistantRetrieveResponse as AssistantRetrieveResponse
63
61
  from .embedding_retrieve_response import EmbeddingRetrieveResponse as EmbeddingRetrieveResponse
64
62
  from .assistant_get_texml_response import AssistantGetTexmlResponse as AssistantGetTexmlResponse
65
63
  from .conversation_update_response import ConversationUpdateResponse as ConversationUpdateResponse
@@ -15,5 +15,5 @@ class AssistantImportParams(TypedDict, total=False):
15
15
  /v2/integration_secrets.
16
16
  """
17
17
 
18
- provider: Required[Literal["elevenlabs", "vapi"]]
18
+ provider: Required[Literal["elevenlabs", "vapi", "retell"]]
19
19
  """The external provider to import assistants from."""
@@ -15,11 +15,8 @@ from .version_config_param import VersionConfigParam as VersionConfigParam
15
15
  from .version_update_params import VersionUpdateParams as VersionUpdateParams
16
16
  from .canary_deploy_response import CanaryDeployResponse as CanaryDeployResponse
17
17
  from .version_retrieve_params import VersionRetrieveParams as VersionRetrieveParams
18
- from .version_update_response import VersionUpdateResponse as VersionUpdateResponse
19
18
  from .scheduled_event_response import ScheduledEventResponse as ScheduledEventResponse
20
- from .version_promote_response import VersionPromoteResponse as VersionPromoteResponse
21
19
  from .conversation_channel_type import ConversationChannelType as ConversationChannelType
22
- from .version_retrieve_response import VersionRetrieveResponse as VersionRetrieveResponse
23
20
  from .canary_deploy_create_params import CanaryDeployCreateParams as CanaryDeployCreateParams
24
21
  from .canary_deploy_update_params import CanaryDeployUpdateParams as CanaryDeployUpdateParams
25
22
  from .scheduled_event_list_params import ScheduledEventListParams as ScheduledEventListParams